@everymatrix/casino-tournament-desc 1.27.9 → 1.28.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.
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-706aec6b.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((e=>t([["p-bd145b3e",[[1,"casino-tournament-desc",{desc:[1],descTitle:[1,"desc-title"],useEvent:[4,"use-event"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],limitStylingAppends:[32],stylingContainer:[32],collapsed:[32],tournamentDescriptions:[32]},[[8,"getTournamentDescriptionCompleted","descCompletedHandler"]]]]]],e)));
1
+ import{p as e,b as t}from"./p-5b0f0cea.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((e=>t([["p-ff3568fd",[[1,"casino-tournament-desc",{desc:[1],descTitle:[1,"desc-title"],useEvent:[4,"use-event"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],limitStylingAppends:[32],stylingContainer:[32],collapsed:[32],tournamentDescriptions:[32]},[[8,"getTournamentDescriptionCompleted","descCompletedHandler"]]]]]],e)));
@@ -0,0 +1 @@
1
+ let e,t,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},r={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},c=e=>Promise.resolve(e),i=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),u=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=f(e,n),c=a(t,s),i=h(n);r.ael(o,l,c,i),(t.o=t.o||[]).push((()=>r.rel(o,l,c,i)))}))},a=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){I(e)}},f=(e,t)=>8&t?s:e,h=e=>0!=(2&e),$=new WeakMap,d=e=>"sc-"+e.h,m={},p=e=>"object"==(e=typeof e)||"function"===e,y=(e,t,...n)=>{let l=null,s=!1,o=!1,r=[];const c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!p(l))&&(l+=""),s&&o?r[r.length-1].$+=l:r.push(s?w(null,l):l),o=s)};if(c(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const i=w(e,null);return i.m=t,r.length>0&&(i.p=r),i},w=(e,t)=>({t:0,g:e,$:t,v:null,p:null,m:null}),b={},g=(e,t,n,l,o,c)=>{if(n!==l){let i=G(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,s=S(n),o=S(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if(i||"o"!==t[0]||"n"!==t[1]){const s=p(l);if((i||s&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{let s=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&c||o)&&!s&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):G(s,u)?u.slice(2):u[2]+t.slice(3),n&&r.rel(e,t,n,!1),l&&r.ael(e,t,l,!1)}},v=/\s/,S=e=>e?e.split(v):[],j=(e,t,n,l)=>{const s=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.m||m,r=t.m||m;for(l in o)l in r||g(s,l,o[l],void 0,n,t.t);for(l in r)g(s,l,o[l],r[l],n,t.t)},O=(t,l,s)=>{let r,c,i=l.p[s],u=0;if(null!==i.$)r=i.v=o.createTextNode(i.$);else{if(n||(n="svg"===i.g),r=i.v=o.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.g),n&&"foreignObject"===i.g&&(n=!1),j(null,i,n),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),i.p)for(u=0;u<i.p.length;++u)c=O(t,i,u),c&&r.appendChild(c);"svg"===i.g?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},M=(e,n,l,s,o,r)=>{let c,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);o<=r;++o)s[o]&&(c=O(null,l,o),c&&(s[o].v=c,i.insertBefore(c,n)))},k=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.v.remove()},C=(e,t)=>e.g===t.g,x=(e,t)=>{const l=t.v=e.v,s=e.p,o=t.p,r=t.g,c=t.$;null===c?(n="svg"===r||"foreignObject"!==r&&n,j(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o=0,r=0,c=t.length-1,i=t[0],u=t[c],a=l.length-1,f=l[0],h=l[a];for(;o<=c&&r<=a;)null==i?i=t[++o]:null==u?u=t[--c]:null==f?f=l[++r]:null==h?h=l[--a]:C(i,f)?(x(i,f),i=t[++o],f=l[++r]):C(u,h)?(x(u,h),u=t[--c],h=l[--a]):C(i,h)?(x(i,h),e.insertBefore(i.v,u.v.nextSibling),i=t[++o],h=l[--a]):C(u,f)?(x(u,f),e.insertBefore(u.v,i.v),u=t[--c],f=l[++r]):(s=O(t&&t[r],n,r),f=l[++r],s&&i.v.parentNode.insertBefore(s,i.v));o>c?M(e,null==l[a+1]?null:l[a+1].v,n,l,r,a):r>a&&k(t,o,c)})(l,s,t,o):null!==o?(null!==e.$&&(l.textContent=""),M(l,null,t,o,0,o.length-1)):null!==s&&k(s,0,s.length-1),n&&"svg"===r&&(n=!1)):e.$!==c&&(l.data=c)},P=e=>_(e).S,E=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},L=(e,t)=>{if(e.t|=16,!(4&e.t))return E(e,e.O),le((()=>N(e,t)));e.t|=512},N=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>U(n,e,t))),e.u=null),l=U(n,"componentWillLoad")),q(l,(()=>R(e,n,t)))},R=async(e,t,n)=>{const l=e.S,s=l["s-rc"];n&&(e=>{const t=e.M,n=e.S,l=t.t,s=((e,t)=>{let n=d(t),l=Q.get(n);if(e=11===e.nodeType?e:o,l)if("string"==typeof l){let t,s=$.get(e=e.head||e);s||$.set(e,s=new Set),s.has(n)||(t=o.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);T(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>W(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},T=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.S,o=n.k||w(null,null),r=(e=>e&&e.g===b)(l)?l:y(null,null,l);t=s.tagName,r.g=null,r.t|=4,n.k=r,r.v=o.v=s.shadowRoot||s,e=s["s-sc"],x(o,r)})(n,l)}catch(e){I(e,n.S)}return null},W=e=>{const t=e.S,n=e.O;U(e.i,"componentDidRender"),64&e.t||(e.t|=64,D(t),e.C(t),n||A()),e.j&&(e.j(),e.j=void 0),512&e.t&&ne((()=>L(e,!1))),e.t&=-517},A=()=>{D(o.documentElement),ne((()=>(e=>{const t=r.ce("appload",{detail:{namespace:"casino-tournament-desc"}});return e.dispatchEvent(t),t})(s)))},U=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){I(e)}},q=(e,t)=>e&&e.then?e.then(t):t(),D=e=>e.classList.add("hydrated"),F=(e,t,n)=>{if(t.P){const l=Object.entries(t.P),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>_(this).L.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=_(e),o=s.L.get(t),r=s.t,c=s.i;n=((e,t)=>null==e||p(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(n,l.P[t][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.L.set(t,n),c&&2==(18&r)&&L(s,!1))})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){r.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},H=(e,t={})=>{const n=[],l=t.exclude||[],c=s.customElements,a=o.head,f=a.querySelector("meta[charset]"),h=o.createElement("style"),$=[];let m,p=!0;Object.assign(r,t),r.l=new URL(t.resourcesUrl||"./",o.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],h:t[1],P:t[2],N:t[3]};s.P=t[2],s.N=t[3];const o=s.h,a=class extends HTMLElement{constructor(e){super(e),B(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){m&&(clearTimeout(m),m=null),p?$.push(this):r.jmp((()=>(e=>{if(0==(1&r.t)){const t=_(e),n=t.M,l=()=>{};if(1&t.t)u(e,t,n.N);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){E(t,t.O=n);break}}n.P&&Object.entries(n.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=K(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(F(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){I(e)}t.t&=-9,e()}if(s.style){let e=s.style;const t=d(n);if(!Q.has(t)){const l=()=>{};((e,t,n)=>{let l=Q.get(e);i&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,Q.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.O,r=()=>L(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{if(0==(1&r.t)){const e=_(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return _(this).R}};s.T=e[0],l.includes(o)||c.get(o)||(n.push(o),c.define(o,F(a,s,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),a.insertBefore(h,f?f.nextSibling:a.firstChild),p=!1,$.length?$.map((e=>e.connectedCallback())):r.jmp((()=>m=setTimeout(A,30)))},V=new WeakMap,_=e=>V.get(e),z=(e,t)=>V.set(t.i=e,t),B=(e,t)=>{const n={t:0,S:e,M:t,L:new Map};return n.R=new Promise((e=>n.C=e)),e["s-p"]=[],e["s-rc"]=[],u(e,n,t.N),V.set(e,n)},G=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),J=new Map,K=e=>{const t=e.h.replace(/-/g,"_"),n=e.T,l=J.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(J.set(n,e),e[t])),I)},Q=new Map,X=[],Y=[],Z=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&r.t?ne(te):r.raf(te))},ee=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){I(e)}e.length=0},te=()=>{ee(X),ee(Y),(l=X.length>0)&&r.raf(te)},ne=e=>c().then(e),le=Z(Y,!0);export{H as b,P as g,y as h,c as p,z as r}
@@ -0,0 +1 @@
1
+ import{r as t,h as s,g as i}from"./p-5b0f0cea.js";const e=class{constructor(s){t(this,s),this.useEvent=!0,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.collapsed=[],this.tournamentDescriptions=[]}descCompletedHandler(t){t.detail&&this.useEvent&&(this.tournamentDescriptions=t.detail)}collapseText(t){this.collapsed[t]=!this.collapsed[t],this.collapsed=[...this.collapsed]}componentWillLoad(){0==this.useEvent&&this.desc&&this.descTitle&&this.tournamentDescriptions.push({title:this.descTitle,text:this.desc})}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const s=new CSSStyleSheet;s.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,s]}))}render(){return s("div",{class:"TournamentDescription"},this.tournamentDescriptions&&this.tournamentDescriptions.map(((t,i)=>s("div",{class:"DetailsCard"},t.title&&s("div",{class:"DetailsTitle"},s("p",{class:"Title"},t.title),s("div",{class:"CollapseButtonDetails",onClick:()=>this.collapseText(i)},s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"#ffffff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},s("path",this.collapsed[i]?{d:"M18 15l-6-6-6 6"}:{d:"M6 9l6 6 6-6"})))),t.text&&!this.collapsed[i]&&s("div",{class:"DetailsContent sc",innerHTML:t.text})))))}get host(){return i(this)}};e.style=":host{display:block}.DetailsCard{color:var(--emfe-w-color-white, #FFFFFF);width:100%;margin:0 0 25px 0}.DetailsTitle{padding:0 8px;height:36px;display:flex;align-items:center;justify-content:space-between;background:var(--emfe-w-tournament-color-bg, #153a5c)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.CollapseButtonDetails svg{width:24px;height:24px}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.sc::-webkit-scrollbar-thumb{background-color:var(--emfe-w-color-white, #FFFFFF);border-radius:10px}";export{e as casino_tournament_desc}
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-24e86f34.js');
5
+ const index = require('./index-afa05e05.js');
6
6
 
7
- const casinoTournamentDescCss = ":host{display:block}.DetailsCard{color:var(--emfe-w-color-white, #FFFFFF);width:100%;margin:0 0 25px 0}.DetailsTitle{padding:0 8px;height:36px;display:flex;align-items:center;justify-content:space-between;background:var(--emfe-w-tournament-color-bg, #153a5c)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.sc::-webkit-scrollbar-thumb{background-color:var(--emfe-w-color-white, #FFFFFF);border-radius:10px}";
7
+ const casinoTournamentDescCss = ":host{display:block}.DetailsCard{color:var(--emfe-w-color-white, #FFFFFF);width:100%;margin:0 0 25px 0}.DetailsTitle{padding:0 8px;height:36px;display:flex;align-items:center;justify-content:space-between;background:var(--emfe-w-tournament-color-bg, #153a5c)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.CollapseButtonDetails svg{width:24px;height:24px}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.sc::-webkit-scrollbar-thumb{background-color:var(--emfe-w-color-white, #FFFFFF);border-radius:10px}";
8
8
 
9
9
  const CasinoTournamentDesc = class {
10
10
  constructor(hostRef) {
@@ -44,7 +44,7 @@ const CasinoTournamentDesc = class {
44
44
  }
45
45
  }
46
46
  componentDidRender() {
47
- if (!this.limitStylingAppends && this.stylingContainer) {
47
+ if (!this.limitStylingAppends && this.host) {
48
48
  if (this.clientStyling)
49
49
  this.setClientStyling();
50
50
  if (this.clientStylingUrl)
@@ -53,27 +53,35 @@ const CasinoTournamentDesc = class {
53
53
  }
54
54
  }
55
55
  setClientStyling() {
56
- let sheet = document.createElement('style');
57
- sheet.innerHTML = this.clientStyling;
58
- this.stylingContainer.prepend(sheet);
56
+ const sheet = new CSSStyleSheet();
57
+ // @ts-ignore
58
+ sheet.replace(this.clientStyling);
59
+ // @ts-ignore
60
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
59
61
  }
60
62
  setClientStylingURL() {
61
- let cssFile = document.createElement('style');
62
- setTimeout(() => {
63
- cssFile.innerHTML = this.clientStylingUrl;
64
- this.stylingContainer.prepend(cssFile);
65
- }, 1);
63
+ let url = new URL(this.clientStylingUrl);
64
+ fetch(url.href)
65
+ .then((res) => res.text())
66
+ .then((data) => {
67
+ const sheet = new CSSStyleSheet();
68
+ // @ts-ignore
69
+ sheet.replace(data);
70
+ // @ts-ignore
71
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
72
+ });
66
73
  }
67
74
  render() {
68
- return index.h("div", { ref: el => this.stylingContainer = el }, this.tournamentDescriptions && this.tournamentDescriptions.map((item, index$1) => {
75
+ return index.h("div", { class: "TournamentDescription" }, this.tournamentDescriptions && this.tournamentDescriptions.map((item, index$1) => {
69
76
  return index.h("div", { class: "DetailsCard" }, item.title &&
70
77
  index.h("div", { class: "DetailsTitle" }, index.h("p", { class: "Title" }, item.title), index.h("div", { class: "CollapseButtonDetails", onClick: () => this.collapseText(index$1) }, this.collapsed[index$1] ?
71
- index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("path", { d: "M18 15l-6-6-6 6" }))
78
+ index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("path", { d: "M18 15l-6-6-6 6" }))
72
79
  :
73
- index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("path", { d: "M6 9l6 6 6-6" })))), item.text && !this.collapsed[index$1] &&
80
+ index.h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("path", { d: "M6 9l6 6 6-6" })))), item.text && !this.collapsed[index$1] &&
74
81
  index.h("div", { class: "DetailsContent sc", innerHTML: item.text }));
75
82
  }));
76
83
  }
84
+ get host() { return index.getElement(this); }
77
85
  };
78
86
  CasinoTournamentDesc.style = casinoTournamentDescCss;
79
87
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-24e86f34.js');
3
+ const index = require('./index-afa05e05.js');
4
4
 
5
5
  /*
6
6
  Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -273,12 +273,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
273
273
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
274
274
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
275
275
  }
276
- else if (memberName === 'ref') {
277
- // minifier will clean this up
278
- if (newValue) {
279
- newValue(elm);
280
- }
281
- }
282
276
  else if ((!isProp ) &&
283
277
  memberName[0] === 'o' &&
284
278
  memberName[1] === 'n') {
@@ -452,7 +446,6 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
452
446
  for (; startIdx <= endIdx; ++startIdx) {
453
447
  if ((vnode = vnodes[startIdx])) {
454
448
  elm = vnode.$elm$;
455
- callNodeRefs(vnode);
456
449
  // remove the vnode's element from the dom
457
450
  elm.remove();
458
451
  }
@@ -580,12 +573,6 @@ const patch = (oldVNode, newVNode) => {
580
573
  elm.data = text;
581
574
  }
582
575
  };
583
- const callNodeRefs = (vNode) => {
584
- {
585
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
586
- vNode.$children$ && vNode.$children$.map(callNodeRefs);
587
- }
588
- };
589
576
  const renderVdom = (hostRef, renderFnResults) => {
590
577
  const hostElm = hostRef.$hostElement$;
591
578
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -601,6 +588,7 @@ const renderVdom = (hostRef, renderFnResults) => {
601
588
  // synchronous patch
602
589
  patch(oldVNode, rootVnode);
603
590
  };
591
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
604
592
  /**
605
593
  * Helper function to create & dispatch a custom Event on a provided target
606
594
  * @param elm the target of the Event
@@ -1240,6 +1228,7 @@ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1240
1228
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1241
1229
 
1242
1230
  exports.bootstrapLazy = bootstrapLazy;
1231
+ exports.getElement = getElement;
1243
1232
  exports.h = h;
1244
1233
  exports.promiseResolve = promiseResolve;
1245
1234
  exports.registerInstance = registerInstance;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-24e86f34.js');
5
+ const index = require('./index-afa05e05.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -25,6 +25,11 @@
25
25
  margin: 10px 20px 10px 0;
26
26
  }
27
27
 
28
+ .CollapseButtonDetails svg {
29
+ width: 24px;
30
+ height: 24px;
31
+ }
32
+
28
33
  .sc::-webkit-scrollbar {
29
34
  width: 5px;
30
35
  height: 5px;
@@ -1,4 +1,4 @@
1
- import { Component, Prop, State, h, Listen } from '@stencil/core';
1
+ import { Component, Prop, State, h, Listen, Element } from '@stencil/core';
2
2
  export class CasinoTournamentDesc {
3
3
  constructor() {
4
4
  /**
@@ -36,7 +36,7 @@ export class CasinoTournamentDesc {
36
36
  }
37
37
  }
38
38
  componentDidRender() {
39
- if (!this.limitStylingAppends && this.stylingContainer) {
39
+ if (!this.limitStylingAppends && this.host) {
40
40
  if (this.clientStyling)
41
41
  this.setClientStyling();
42
42
  if (this.clientStylingUrl)
@@ -45,28 +45,35 @@ export class CasinoTournamentDesc {
45
45
  }
46
46
  }
47
47
  setClientStyling() {
48
- let sheet = document.createElement('style');
49
- sheet.innerHTML = this.clientStyling;
50
- this.stylingContainer.prepend(sheet);
48
+ const sheet = new CSSStyleSheet();
49
+ // @ts-ignore
50
+ sheet.replace(this.clientStyling);
51
+ // @ts-ignore
52
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
51
53
  }
52
54
  setClientStylingURL() {
53
- let cssFile = document.createElement('style');
54
- setTimeout(() => {
55
- cssFile.innerHTML = this.clientStylingUrl;
56
- this.stylingContainer.prepend(cssFile);
57
- }, 1);
55
+ let url = new URL(this.clientStylingUrl);
56
+ fetch(url.href)
57
+ .then((res) => res.text())
58
+ .then((data) => {
59
+ const sheet = new CSSStyleSheet();
60
+ // @ts-ignore
61
+ sheet.replace(data);
62
+ // @ts-ignore
63
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
64
+ });
58
65
  }
59
66
  render() {
60
- return h("div", { ref: el => this.stylingContainer = el }, this.tournamentDescriptions && this.tournamentDescriptions.map((item, index) => {
67
+ return h("div", { class: "TournamentDescription" }, this.tournamentDescriptions && this.tournamentDescriptions.map((item, index) => {
61
68
  return h("div", { class: "DetailsCard" },
62
69
  item.title &&
63
70
  h("div", { class: "DetailsTitle" },
64
71
  h("p", { class: "Title" }, item.title),
65
72
  h("div", { class: "CollapseButtonDetails", onClick: () => this.collapseText(index) }, this.collapsed[index] ?
66
- h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" },
73
+ h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" },
67
74
  h("path", { d: "M18 15l-6-6-6 6" }))
68
75
  :
69
- h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" },
76
+ h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" },
70
77
  h("path", { d: "M6 9l6 6 6-6" })))),
71
78
  item.text && !this.collapsed[index] &&
72
79
  h("div", { class: "DetailsContent sc", innerHTML: item.text }));
@@ -176,6 +183,7 @@ export class CasinoTournamentDesc {
176
183
  "collapsed": {},
177
184
  "tournamentDescriptions": {}
178
185
  }; }
186
+ static get elementRef() { return "host"; }
179
187
  static get listeners() { return [{
180
188
  "name": "getTournamentDescriptionCompleted",
181
189
  "method": "descCompletedHandler",
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
2
 
3
- const casinoTournamentDescCss = ":host{display:block}.DetailsCard{color:var(--emfe-w-color-white, #FFFFFF);width:100%;margin:0 0 25px 0}.DetailsTitle{padding:0 8px;height:36px;display:flex;align-items:center;justify-content:space-between;background:var(--emfe-w-tournament-color-bg, #153a5c)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.sc::-webkit-scrollbar-thumb{background-color:var(--emfe-w-color-white, #FFFFFF);border-radius:10px}";
3
+ const casinoTournamentDescCss = ":host{display:block}.DetailsCard{color:var(--emfe-w-color-white, #FFFFFF);width:100%;margin:0 0 25px 0}.DetailsTitle{padding:0 8px;height:36px;display:flex;align-items:center;justify-content:space-between;background:var(--emfe-w-tournament-color-bg, #153a5c)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.CollapseButtonDetails svg{width:24px;height:24px}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.sc::-webkit-scrollbar-thumb{background-color:var(--emfe-w-color-white, #FFFFFF);border-radius:10px}";
4
4
 
5
5
  const CasinoTournamentDesc$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
6
  constructor() {
@@ -42,7 +42,7 @@ const CasinoTournamentDesc$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
42
42
  }
43
43
  }
44
44
  componentDidRender() {
45
- if (!this.limitStylingAppends && this.stylingContainer) {
45
+ if (!this.limitStylingAppends && this.host) {
46
46
  if (this.clientStyling)
47
47
  this.setClientStyling();
48
48
  if (this.clientStylingUrl)
@@ -51,27 +51,35 @@ const CasinoTournamentDesc$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
51
51
  }
52
52
  }
53
53
  setClientStyling() {
54
- let sheet = document.createElement('style');
55
- sheet.innerHTML = this.clientStyling;
56
- this.stylingContainer.prepend(sheet);
54
+ const sheet = new CSSStyleSheet();
55
+ // @ts-ignore
56
+ sheet.replace(this.clientStyling);
57
+ // @ts-ignore
58
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
57
59
  }
58
60
  setClientStylingURL() {
59
- let cssFile = document.createElement('style');
60
- setTimeout(() => {
61
- cssFile.innerHTML = this.clientStylingUrl;
62
- this.stylingContainer.prepend(cssFile);
63
- }, 1);
61
+ let url = new URL(this.clientStylingUrl);
62
+ fetch(url.href)
63
+ .then((res) => res.text())
64
+ .then((data) => {
65
+ const sheet = new CSSStyleSheet();
66
+ // @ts-ignore
67
+ sheet.replace(data);
68
+ // @ts-ignore
69
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
70
+ });
64
71
  }
65
72
  render() {
66
- return h("div", { ref: el => this.stylingContainer = el }, this.tournamentDescriptions && this.tournamentDescriptions.map((item, index) => {
73
+ return h("div", { class: "TournamentDescription" }, this.tournamentDescriptions && this.tournamentDescriptions.map((item, index) => {
67
74
  return h("div", { class: "DetailsCard" }, item.title &&
68
75
  h("div", { class: "DetailsTitle" }, h("p", { class: "Title" }, item.title), h("div", { class: "CollapseButtonDetails", onClick: () => this.collapseText(index) }, this.collapsed[index] ?
69
- h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M18 15l-6-6-6 6" }))
76
+ h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M18 15l-6-6-6 6" }))
70
77
  :
71
- h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M6 9l6 6 6-6" })))), item.text && !this.collapsed[index] &&
78
+ h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M6 9l6 6 6-6" })))), item.text && !this.collapsed[index] &&
72
79
  h("div", { class: "DetailsContent sc", innerHTML: item.text }));
73
80
  }));
74
81
  }
82
+ get host() { return this; }
75
83
  static get style() { return casinoTournamentDescCss; }
76
84
  }, [1, "casino-tournament-desc", {
77
85
  "desc": [1],
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h } from './index-0f125200.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-eab47682.js';
2
2
 
3
- const casinoTournamentDescCss = ":host{display:block}.DetailsCard{color:var(--emfe-w-color-white, #FFFFFF);width:100%;margin:0 0 25px 0}.DetailsTitle{padding:0 8px;height:36px;display:flex;align-items:center;justify-content:space-between;background:var(--emfe-w-tournament-color-bg, #153a5c)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.sc::-webkit-scrollbar-thumb{background-color:var(--emfe-w-color-white, #FFFFFF);border-radius:10px}";
3
+ const casinoTournamentDescCss = ":host{display:block}.DetailsCard{color:var(--emfe-w-color-white, #FFFFFF);width:100%;margin:0 0 25px 0}.DetailsTitle{padding:0 8px;height:36px;display:flex;align-items:center;justify-content:space-between;background:var(--emfe-w-tournament-color-bg, #153a5c)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.CollapseButtonDetails svg{width:24px;height:24px}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.sc::-webkit-scrollbar-thumb{background-color:var(--emfe-w-color-white, #FFFFFF);border-radius:10px}";
4
4
 
5
5
  const CasinoTournamentDesc = class {
6
6
  constructor(hostRef) {
@@ -40,7 +40,7 @@ const CasinoTournamentDesc = class {
40
40
  }
41
41
  }
42
42
  componentDidRender() {
43
- if (!this.limitStylingAppends && this.stylingContainer) {
43
+ if (!this.limitStylingAppends && this.host) {
44
44
  if (this.clientStyling)
45
45
  this.setClientStyling();
46
46
  if (this.clientStylingUrl)
@@ -49,27 +49,35 @@ const CasinoTournamentDesc = class {
49
49
  }
50
50
  }
51
51
  setClientStyling() {
52
- let sheet = document.createElement('style');
53
- sheet.innerHTML = this.clientStyling;
54
- this.stylingContainer.prepend(sheet);
52
+ const sheet = new CSSStyleSheet();
53
+ // @ts-ignore
54
+ sheet.replace(this.clientStyling);
55
+ // @ts-ignore
56
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
55
57
  }
56
58
  setClientStylingURL() {
57
- let cssFile = document.createElement('style');
58
- setTimeout(() => {
59
- cssFile.innerHTML = this.clientStylingUrl;
60
- this.stylingContainer.prepend(cssFile);
61
- }, 1);
59
+ let url = new URL(this.clientStylingUrl);
60
+ fetch(url.href)
61
+ .then((res) => res.text())
62
+ .then((data) => {
63
+ const sheet = new CSSStyleSheet();
64
+ // @ts-ignore
65
+ sheet.replace(data);
66
+ // @ts-ignore
67
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
68
+ });
62
69
  }
63
70
  render() {
64
- return h("div", { ref: el => this.stylingContainer = el }, this.tournamentDescriptions && this.tournamentDescriptions.map((item, index) => {
71
+ return h("div", { class: "TournamentDescription" }, this.tournamentDescriptions && this.tournamentDescriptions.map((item, index) => {
65
72
  return h("div", { class: "DetailsCard" }, item.title &&
66
73
  h("div", { class: "DetailsTitle" }, h("p", { class: "Title" }, item.title), h("div", { class: "CollapseButtonDetails", onClick: () => this.collapseText(index) }, this.collapsed[index] ?
67
- h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M18 15l-6-6-6 6" }))
74
+ h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M18 15l-6-6-6 6" }))
68
75
  :
69
- h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M6 9l6 6 6-6" })))), item.text && !this.collapsed[index] &&
76
+ h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "#ffffff", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M6 9l6 6 6-6" })))), item.text && !this.collapsed[index] &&
70
77
  h("div", { class: "DetailsContent sc", innerHTML: item.text }));
71
78
  }));
72
79
  }
80
+ get host() { return getElement(this); }
73
81
  };
74
82
  CasinoTournamentDesc.style = casinoTournamentDescCss;
75
83
 
@@ -1,4 +1,4 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-0f125200.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-eab47682.js';
2
2
 
3
3
  /*
4
4
  Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -251,12 +251,6 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
251
251
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
252
252
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
253
253
  }
254
- else if (memberName === 'ref') {
255
- // minifier will clean this up
256
- if (newValue) {
257
- newValue(elm);
258
- }
259
- }
260
254
  else if ((!isProp ) &&
261
255
  memberName[0] === 'o' &&
262
256
  memberName[1] === 'n') {
@@ -430,7 +424,6 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
430
424
  for (; startIdx <= endIdx; ++startIdx) {
431
425
  if ((vnode = vnodes[startIdx])) {
432
426
  elm = vnode.$elm$;
433
- callNodeRefs(vnode);
434
427
  // remove the vnode's element from the dom
435
428
  elm.remove();
436
429
  }
@@ -558,12 +551,6 @@ const patch = (oldVNode, newVNode) => {
558
551
  elm.data = text;
559
552
  }
560
553
  };
561
- const callNodeRefs = (vNode) => {
562
- {
563
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
564
- vNode.$children$ && vNode.$children$.map(callNodeRefs);
565
- }
566
- };
567
554
  const renderVdom = (hostRef, renderFnResults) => {
568
555
  const hostElm = hostRef.$hostElement$;
569
556
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -579,6 +566,7 @@ const renderVdom = (hostRef, renderFnResults) => {
579
566
  // synchronous patch
580
567
  patch(oldVNode, rootVnode);
581
568
  };
569
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
582
570
  /**
583
571
  * Helper function to create & dispatch a custom Event on a provided target
584
572
  * @param elm the target of the Event
@@ -1217,4 +1205,4 @@ const flush = () => {
1217
1205
  const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1218
1206
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1219
1207
 
1220
- export { bootstrapLazy as b, h, promiseResolve as p, registerInstance as r };
1208
+ export { bootstrapLazy as b, getElement as g, h, promiseResolve as p, registerInstance as r };
@@ -1,4 +1,4 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-0f125200.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-eab47682.js';
2
2
 
3
3
  /*
4
4
  Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -23,6 +23,7 @@ export declare class CasinoTournamentDesc {
23
23
  stylingContainer: HTMLElement;
24
24
  collapsed: any[];
25
25
  tournamentDescriptions: any[];
26
+ host: HTMLElement;
26
27
  descCompletedHandler(event: CustomEvent<any>): void;
27
28
  collapseText(index: any): void;
28
29
  componentWillLoad(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournament-desc",
3
- "version": "1.27.9",
3
+ "version": "1.28.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- let e,t,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},r={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},i=e=>Promise.resolve(e),c=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),u=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=f(e,n),i=a(t,s),c=h(n);r.ael(o,l,i,c),(t.o=t.o||[]).push((()=>r.rel(o,l,i,c)))}))},a=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){I(e)}},f=(e,t)=>8&t?s:e,h=e=>0!=(2&e),$=new WeakMap,d=e=>"sc-"+e.h,m={},p=e=>"object"==(e=typeof e)||"function"===e,y=(e,t,...n)=>{let l=null,s=!1,o=!1,r=[];const i=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!p(l))&&(l+=""),s&&o?r[r.length-1].$+=l:r.push(s?w(null,l):l),o=s)};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=w(e,null);return c.m=t,r.length>0&&(c.p=r),c},w=(e,t)=>({t:0,g:e,$:t,v:null,p:null,m:null}),b={},g=(e,t,n,l,o,i)=>{if(n!==l){let c=G(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,s=S(n),o=S(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("ref"===t)l&&l(e);else if(c||"o"!==t[0]||"n"!==t[1]){const s=p(l);if((c||s&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{let s=null==l?"":l;"list"===t?c=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!c||4&i||o)&&!s&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):G(s,u)?u.slice(2):u[2]+t.slice(3),n&&r.rel(e,t,n,!1),l&&r.ael(e,t,l,!1)}},v=/\s/,S=e=>e?e.split(v):[],j=(e,t,n,l)=>{const s=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.m||m,r=t.m||m;for(l in o)l in r||g(s,l,o[l],void 0,n,t.t);for(l in r)g(s,l,o[l],r[l],n,t.t)},O=(t,l,s)=>{let r,i,c=l.p[s],u=0;if(null!==c.$)r=c.v=o.createTextNode(c.$);else{if(n||(n="svg"===c.g),r=c.v=o.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",c.g),n&&"foreignObject"===c.g&&(n=!1),j(null,c,n),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),c.p)for(u=0;u<c.p.length;++u)i=O(t,c,u),i&&r.appendChild(i);"svg"===c.g?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},M=(e,n,l,s,o,r)=>{let i,c=e;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);o<=r;++o)s[o]&&(i=O(null,l,o),i&&(s[o].v=i,c.insertBefore(i,n)))},k=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.v,P(l),s.remove())},C=(e,t)=>e.g===t.g,x=(e,t)=>{const l=t.v=e.v,s=e.p,o=t.p,r=t.g,i=t.$;null===i?(n="svg"===r||"foreignObject"!==r&&n,j(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o=0,r=0,i=t.length-1,c=t[0],u=t[i],a=l.length-1,f=l[0],h=l[a];for(;o<=i&&r<=a;)null==c?c=t[++o]:null==u?u=t[--i]:null==f?f=l[++r]:null==h?h=l[--a]:C(c,f)?(x(c,f),c=t[++o],f=l[++r]):C(u,h)?(x(u,h),u=t[--i],h=l[--a]):C(c,h)?(x(c,h),e.insertBefore(c.v,u.v.nextSibling),c=t[++o],h=l[--a]):C(u,f)?(x(u,f),e.insertBefore(u.v,c.v),u=t[--i],f=l[++r]):(s=O(t&&t[r],n,r),f=l[++r],s&&c.v.parentNode.insertBefore(s,c.v));o>i?M(e,null==l[a+1]?null:l[a+1].v,n,l,r,a):r>a&&k(t,o,i)})(l,s,t,o):null!==o?(null!==e.$&&(l.textContent=""),M(l,null,t,o,0,o.length-1)):null!==s&&k(s,0,s.length-1),n&&"svg"===r&&(n=!1)):e.$!==i&&(l.data=i)},P=e=>{e.m&&e.m.ref&&e.m.ref(null),e.p&&e.p.map(P)},E=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},L=(e,t)=>{if(e.t|=16,!(4&e.t))return E(e,e.j),le((()=>N(e,t)));e.t|=512},N=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>U(n,e,t))),e.u=null),l=U(n,"componentWillLoad")),q(l,(()=>R(e,n,t)))},R=async(e,t,n)=>{const l=e.O,s=l["s-rc"];n&&(e=>{const t=e.M,n=e.O,l=t.t,s=((e,t)=>{let n=d(t),l=Q.get(n);if(e=11===e.nodeType?e:o,l)if("string"==typeof l){let t,s=$.get(e=e.head||e);s||$.set(e,s=new Set),s.has(n)||(t=o.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);T(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>W(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},T=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.O,o=n.k||w(null,null),r=(e=>e&&e.g===b)(l)?l:y(null,null,l);t=s.tagName,r.g=null,r.t|=4,n.k=r,r.v=o.v=s.shadowRoot||s,e=s["s-sc"],x(o,r)})(n,l)}catch(e){I(e,n.O)}return null},W=e=>{const t=e.O,n=e.j;U(e.i,"componentDidRender"),64&e.t||(e.t|=64,D(t),e.C(t),n||A()),e.S&&(e.S(),e.S=void 0),512&e.t&&ne((()=>L(e,!1))),e.t&=-517},A=()=>{D(o.documentElement),ne((()=>(e=>{const t=r.ce("appload",{detail:{namespace:"casino-tournament-desc"}});return e.dispatchEvent(t),t})(s)))},U=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){I(e)}},q=(e,t)=>e&&e.then?e.then(t):t(),D=e=>e.classList.add("hydrated"),F=(e,t,n)=>{if(t.P){const l=Object.entries(t.P),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>_(this).L.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=_(e),o=s.L.get(t),r=s.t,i=s.i;n=((e,t)=>null==e||p(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(n,l.P[t][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.L.set(t,n),i&&2==(18&r)&&L(s,!1))})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){r.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},H=(e,t={})=>{const n=[],l=t.exclude||[],i=s.customElements,a=o.head,f=a.querySelector("meta[charset]"),h=o.createElement("style"),$=[];let m,p=!0;Object.assign(r,t),r.l=new URL(t.resourcesUrl||"./",o.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],h:t[1],P:t[2],N:t[3]};s.P=t[2],s.N=t[3];const o=s.h,a=class extends HTMLElement{constructor(e){super(e),B(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){m&&(clearTimeout(m),m=null),p?$.push(this):r.jmp((()=>(e=>{if(0==(1&r.t)){const t=_(e),n=t.M,l=()=>{};if(1&t.t)u(e,t,n.N);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){E(t,t.j=n);break}}n.P&&Object.entries(n.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=K(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(F(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){I(e)}t.t&=-9,e()}if(s.style){let e=s.style;const t=d(n);if(!Q.has(t)){const l=()=>{};((e,t,n)=>{let l=Q.get(e);c&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,Q.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.j,r=()=>L(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{if(0==(1&r.t)){const e=_(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return _(this).R}};s.T=e[0],l.includes(o)||i.get(o)||(n.push(o),i.define(o,F(a,s,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),a.insertBefore(h,f?f.nextSibling:a.firstChild),p=!1,$.length?$.map((e=>e.connectedCallback())):r.jmp((()=>m=setTimeout(A,30)))},V=new WeakMap,_=e=>V.get(e),z=(e,t)=>V.set(t.i=e,t),B=(e,t)=>{const n={t:0,O:e,M:t,L:new Map};return n.R=new Promise((e=>n.C=e)),e["s-p"]=[],e["s-rc"]=[],u(e,n,t.N),V.set(e,n)},G=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),J=new Map,K=e=>{const t=e.h.replace(/-/g,"_"),n=e.T,l=J.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(J.set(n,e),e[t])),I)},Q=new Map,X=[],Y=[],Z=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&r.t?ne(te):r.raf(te))},ee=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){I(e)}e.length=0},te=()=>{ee(X),ee(Y),(l=X.length>0)&&r.raf(te)},ne=e=>i().then(e),le=Z(Y,!0);export{H as b,y as h,i as p,z as r}
@@ -1 +0,0 @@
1
- import{r as t,h as i}from"./p-706aec6b.js";const s=class{constructor(i){t(this,i),this.useEvent=!0,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.collapsed=[],this.tournamentDescriptions=[]}descCompletedHandler(t){t.detail&&this.useEvent&&(this.tournamentDescriptions=t.detail)}collapseText(t){this.collapsed[t]=!this.collapsed[t],this.collapsed=[...this.collapsed]}componentWillLoad(){0==this.useEvent&&this.desc&&this.descTitle&&this.tournamentDescriptions.push({title:this.descTitle,text:this.desc})}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}setClientStylingURL(){let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrl,this.stylingContainer.prepend(t)}),1)}render(){return i("div",{ref:t=>this.stylingContainer=t},this.tournamentDescriptions&&this.tournamentDescriptions.map(((t,s)=>i("div",{class:"DetailsCard"},t.title&&i("div",{class:"DetailsTitle"},i("p",{class:"Title"},t.title),i("div",{class:"CollapseButtonDetails",onClick:()=>this.collapseText(s)},i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#ffffff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},i("path",this.collapsed[s]?{d:"M18 15l-6-6-6 6"}:{d:"M6 9l6 6 6-6"})))),t.text&&!this.collapsed[s]&&i("div",{class:"DetailsContent sc",innerHTML:t.text})))))}};s.style=":host{display:block}.DetailsCard{color:var(--emfe-w-color-white, #FFFFFF);width:100%;margin:0 0 25px 0}.DetailsTitle{padding:0 8px;height:36px;display:flex;align-items:center;justify-content:space-between;background:var(--emfe-w-tournament-color-bg, #153a5c)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.sc::-webkit-scrollbar-thumb{background-color:var(--emfe-w-color-white, #FFFFFF);border-radius:10px}";export{s as casino_tournament_desc}
@@ -1,2 +0,0 @@
1
- import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
- export declare const config: Config;