@everymatrix/casino-tournament-desc 1.53.0 → 1.53.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. package/dist/casino-tournament-desc/casino-tournament-desc.esm.js +1 -1
  2. package/dist/casino-tournament-desc/p-162fe1a6.entry.js +1 -0
  3. package/dist/casino-tournament-desc/p-20632e28.js +2 -0
  4. package/dist/cjs/casino-tournament-desc.cjs.entry.js +10 -4
  5. package/dist/cjs/casino-tournament-desc.cjs.js +2 -2
  6. package/dist/cjs/{index-481aea9b.js → index-dcdffcf2.js} +167 -70
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/casino-tournament-desc/casino-tournament-desc.js +19 -3
  10. package/dist/esm/casino-tournament-desc.entry.js +10 -4
  11. package/dist/esm/casino-tournament-desc.js +3 -3
  12. package/dist/esm/{index-c561c827.js → index-af38171b.js} +167 -70
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/packages/stencil/casino-tournament-desc/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/packages/stencil/casino-tournament-desc/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/casino-tournament-desc/p-d3d46e38.entry.js +0 -1
  18. package/dist/casino-tournament-desc/p-e55bdc7b.js +0 -2
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/packages/stencil/casino-tournament-desc/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/packages/stencil/casino-tournament-desc/stencil.config.dev.d.ts +0 -2
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-e55bdc7b.js";export{s as setNonce}from"./p-e55bdc7b.js";import{g as n}from"./p-e1255160.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["p-d3d46e38",[[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-20632e28.js";export{s as setNonce}from"./p-20632e28.js";import{g as n}from"./p-e1255160.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["p-162fe1a6",[[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
+ import{r as t,h as s,g as i}from"./p-20632e28.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",{key:"58eb843db2f73c1549d703040cb13b4a0ce6ed5c",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(--emw--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(--emw--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(--emw--color-white, #FFFFFF);border-radius:10px}";export{e as casino_tournament_desc}
@@ -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,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=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),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),p=!1,m=[],y=[],v=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&f.o?b($):f.raf($))},w=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},$=()=>{w(m),w(y),(p=m.length>0)&&f.raf($)},b=t=>h().then(t),g=v(y,!0),S=t=>"object"==(t=typeof t)||"function"===t;function j(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:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>O(t))):O(n)}if(t.isErr)return k(t.value);throw"should never get here"}var C,M=t=>{if(t.isOk)return t.value;throw t.value},x=t=>{if(t.isErr)return t.value;throw t.value},P=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(null,o):o),i=s)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=A(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},A=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),R={},D=(t,e)=>null==t||S(t)?t:4&e?"false"!==t&&(""===t||!!t):1&e?t+"":t,H=t=>n(t).$hostElement$,N=new WeakMap,T=t=>"sc-"+t.$,L=(t,e,n,o,s,i)=>{if(n!==o){let r=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=W(n);let s=W(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("key"===e);else if(r||"o"!==e[0]||"n"!==e[1]){const l=S(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&i||s)&&!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(F);e=e.replace(V,""),n&&f.rel(t,e,n,l),o&&f.ael(t,e,o,l)}}},U=/\s/,W=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(U):[]),F="Capture",V=RegExp(F+"$"),q=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},s=e.u||{};for(const t of G(Object.keys(l)))t in s||L(o,t,l[t],void 0,n,e.o);for(const t of G(Object.keys(s)))L(o,t,l[t],s[t],n,e.o)};function G(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,s,i=0;if(null!==o.i)l=o.v=a.createTextNode(o.i);else{if(_||(_="svg"===o.m),l=o.v=a.createElementNS(_?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),_&&"foreignObject"===o.m&&(_=!1),q(null,o,_),o.h)for(i=0;i<o.h.length;++i)s=z(t,o,i),s&&l.appendChild(s);"svg"===o.m?_=!1:"foreignObject"===l.tagName&&(_=!0)}return l["s-hn"]=C,l},B=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=z(null,n,l),i&&(o[l].v=i,Q(r,i,e)))},I=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},J=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),K=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.m,r=e.i;null===r?(q(t,e,_="svg"===i||"foreignObject"!==i&&_),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=e.length-1,h=e[0],d=e[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=e[++r];else if(null==d)d=e[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(J(h,m,l))K(h,m,l),h=e[++r],m=o[++c];else if(J(d,y,l))K(d,y,l),d=e[--f],y=o[--p];else if(J(h,y,l))K(h,y,l),Q(t,h.v,d.v.nextSibling),h=e[++r],y=o[--p];else if(J(d,m,l))K(d,m,l),Q(t,d.v,h.v),d=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].p&&e[a].p===m.p){u=a;break}u>=0?(i=e[u],i.m!==m.m?s=z(e&&e[c],n,u):(K(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=z(e&&e[c],n,c),m=o[++c]),s&&Q(h.v.parentNode,s,h.v)}r>f?B(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&I(e,r,f)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),B(o,null,e,s,0,s.length-1)):!n&&null!==l&&I(l,0,l.length-1),_&&"svg"===i&&(_=!1)):t.i!==r&&(o.data=r)},Q=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),X=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},Y=(t,e)=>{if(t.o|=16,!(4&t.o))return X(t,t.j),g((()=>Z(t,e)));t.o|=512},Z=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.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 l;return e&&(t.o|=256,t.O&&(t.O.map((([t,e])=>it(o,t,e,n))),t.O=void 0),l=it(o,"componentWillLoad",void 0,n)),tt(l,(()=>nt(t,o,e)))},tt=(t,e)=>et(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),et=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,nt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.k,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=T(e),l=r.get(o);if(t=11===t.nodeType?t:a,l)if("string"==typeof l){let s,i=N.get(t=t.head||t);if(i||N.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),s.innerHTML=l;const i=null!=(n=f.C)?n:j(a);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(d){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&"HEAD"!==t.nodeName&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=c),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);ot(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>lt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},ot=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.k,s=t.M||A(null,null),i=(t=>t&&t.m===R)(e)?e:P(null,null,e);if(C=o.tagName,n&&i.u)for(const t of Object.keys(i.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.u[t]=o[t]);i.m=null,i.o|=4,t.M=i,i.v=s.v=o.shadowRoot||o,K(s,i,n)})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},lt=t=>{const e=t.$hostElement$,n=t.j;it(t.t,"componentDidRender",void 0,e),64&t.o||(t.o|=64,rt(e),t.P(e),n||st()),t.S&&(t.S(),t.S=void 0),512&t.o&&b((()=>Y(t,!1))),t.o&=-517},st=()=>{rt(a.documentElement),b((()=>(t=>{const e=f.ce("appload",{detail:{namespace:"casino-tournament-desc"}});return t.dispatchEvent(e),e})(u)))},it=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},rt=t=>t.classList.add("hydrated"),ct=(t,e,o,l)=>{const s=n(t);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 i=s.A.get(e),r=s.o,c=s.t;o=D(o,l.R[e][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.A.set(e,o),c&&2==(18&r)&&Y(s,!1))},ut=(t,e,o)=>{var l,s;const i=t.prototype;if(e.R){const r=Object.entries(null!=(l=e.R)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.R[t][0]|=2048),r&&(e.R[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.R[t][0]))return((t,e)=>n(this).A.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.A.get(t)?s=i.A.get(t):!i.A.get(t)&&n&&i.A.set(t,n),r.call(this,D(s,l)),void ct(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.R[t][0]))return ct(this,t,s,e),void(1&o&&!i.t&&i.D.then((()=>{4096&e.R[t][0]&&i.t[t]!==i.A.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.A.get(t)&&n&&i.A.set(t,n),i.t[t]=D(s,l),ct(this,t,i.t[t],e)};i.t?n():i.D.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){f.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.H)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.H)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},at=(t,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=a.head,v=y.querySelector("meta[charset]"),w=a.createElement("style"),$=[];let b,g=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((o=>{const l={o:o[0],$:o[1],R:o[2],N:o[3]};4&l.o&&(S=!0),l.R=o[2],l.N=o[3];const c=l.$,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,k:n,A:new Map};o.D=new Promise((t=>o.P=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(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,ft(this,t,l.N)),b&&(clearTimeout(b),b=null),g?$.push(this):f.jmp((()=>(t=>{if(!(1&f.o)){const e=n(t),o=e.k,l=()=>{};if(1&e.o)ft(t,e,o.N),(null==e?void 0:e.t)||(null==e?void 0:e.D)&&e.D.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){X(e,e.j=n);break}}o.R&&Object.entries(o.R).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)){e.o|=32;{const l=((t,e)=>{const n=t.$.replace(/-/g,"_"),o=t.T;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.$}#${e.L}" was not found`);o.isProxied||(ut(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,r()}if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=T(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.j,c=()=>Y(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async t=>{if(!(1&f.o)){const e=n(t);e.U&&(e.U.map((t=>t())),e.U=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.D)&&e.D.then((()=>{}))}N.has(t)&&N.delete(t),t.shadowRoot&&N.has(t.shadowRoot)&&N.delete(t.shadowRoot)})(this))),f.raf((()=>{var t;const e=n(this);(null==(t=null==e?void 0:e.M)?void 0:t.v)instanceof Node&&!e.M.v.isConnected&&delete e.M.v}))}componentOnReady(){return n(this).D}};l.T=t[0],p.includes(c)||m.get(c)||(h.push(c),m.define(c,ut(u,l,1)))}))})),h.length>0&&(S&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(l=f.C)?l:j(a);null!=t&&w.setAttribute("nonce",t),y.insertBefore(w,v?v.nextSibling:y.firstChild)}g=!1,$.length?$.map((t=>t.connectedCallback())):f.jmp((()=>b=setTimeout(st,30)))},ft=(t,e,n)=>{n&&n.map((([n,o,l])=>{const s=dt(t,n),i=ht(e,l),r=pt(n);f.ael(s,o,i,r),(e.U=e.U||[]).push((()=>f.rel(s,o,i,r)))}))},ht=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.O=t.O||[]).push([e,n])}catch(e){s(e,t.$hostElement$)}},dt=(t,e)=>8&e?u:t,pt=t=>({passive:!!(1&t),capture:!!(2&t)}),mt=t=>f.C=t;export{at as b,H as g,P as h,h as p,o as r,mt as s}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-481aea9b.js');
5
+ const index = require('./index-dcdffcf2.js');
6
6
 
7
7
  const casinoTournamentDescCss = ":host{display:block}.DetailsCard{color:var(--emw--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(--emw--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(--emw--color-white, #FFFFFF);border-radius:10px}";
8
8
  const CasinoTournamentDescStyle0 = casinoTournamentDescCss;
@@ -10,13 +10,19 @@ const CasinoTournamentDescStyle0 = casinoTournamentDescCss;
10
10
  const CasinoTournamentDesc = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
- this.desc = undefined;
14
- this.descTitle = undefined;
13
+ /**
14
+ * Use event to get data
15
+ */
15
16
  this.useEvent = true;
17
+ /**
18
+ * Client custom styling via inline styles
19
+ */
16
20
  this.clientStyling = '';
21
+ /**
22
+ * Client custom styling via url
23
+ */
17
24
  this.clientStylingUrl = '';
18
25
  this.limitStylingAppends = false;
19
- this.stylingContainer = undefined;
20
26
  this.collapsed = [];
21
27
  this.tournamentDescriptions = [];
22
28
  }
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-481aea9b.js');
5
+ const index = require('./index-dcdffcf2.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.25.1 | 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('casino-tournament-desc.cjs.js', document.baseURI).href));
@@ -21,19 +21,27 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'casino-tournament-desc';
24
- const BUILD = /* casino-tournament-desc */ { 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: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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: true, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
24
+ const BUILD = /* casino-tournament-desc */ { 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: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, 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.25.1 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
+
35
+ // src/utils/constants.ts
36
+ var SVG_NS = "http://www.w3.org/2000/svg";
37
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
38
+
39
+ // src/client/client-host-ref.ts
34
40
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
41
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
42
+ var registerInstance = (lazyInstance, hostRef) => {
43
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
44
+ };
37
45
  var registerHost = (hostElement, cmpMeta) => {
38
46
  const hostRef = {
39
47
  $flags$: 0,
@@ -46,7 +54,8 @@ var registerHost = (hostElement, cmpMeta) => {
46
54
  hostElement["s-p"] = [];
47
55
  hostElement["s-rc"] = [];
48
56
  }
49
- return hostRefs.set(hostElement, hostRef);
57
+ const ref = hostRefs.set(hostElement, hostRef);
58
+ return ref;
50
59
  };
51
60
  var isMemberInElement = (elm, memberName) => memberName in elm;
52
61
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -83,16 +92,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
83
92
  /* webpackExclude: /\.system\.entry\.js$/ */
84
93
  /* webpackMode: "lazy" */
85
94
  `./${bundleId}.entry.js${""}`
86
- )); }).then((importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
95
+ )); }).then(
96
+ (importedModule) => {
97
+ {
98
+ cmpModules.set(bundleId, importedModule);
99
+ }
100
+ return importedModule[exportName];
101
+ },
102
+ (e) => {
103
+ consoleError(e, hostRef.$hostElement$);
89
104
  }
90
- return importedModule[exportName];
91
- }, consoleError);
105
+ );
92
106
  };
93
107
 
94
108
  // src/client/client-style.ts
95
109
  var styles = /* @__PURE__ */ new Map();
110
+ var HYDRATED_STYLE_ID = "sty-id";
96
111
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
97
112
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
98
113
  var win = typeof window !== "undefined" ? window : {};
@@ -166,14 +181,6 @@ var flush = () => {
166
181
  };
167
182
  var nextTick = (cb) => promiseResolve().then(cb);
168
183
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
169
-
170
- // src/utils/constants.ts
171
- var EMPTY_OBJ = {};
172
- var SVG_NS = "http://www.w3.org/2000/svg";
173
- var HTML_NS = "http://www.w3.org/1999/xhtml";
174
-
175
- // src/utils/helpers.ts
176
- var isDef = (v) => v != null;
177
184
  var isComplexType = (o) => {
178
185
  o = typeof o;
179
186
  return o === "object" || o === "function";
@@ -359,7 +366,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
359
366
  }
360
367
  if (!appliedStyles.has(scopeId2)) {
361
368
  {
362
- styleElm = doc.createElement("style");
369
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
363
370
  styleElm.innerHTML = style;
364
371
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
365
372
  if (nonce != null) {
@@ -369,7 +376,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
369
376
  if (styleContainerNode.nodeName === "HEAD") {
370
377
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
371
378
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
372
- styleContainerNode.insertBefore(styleElm, referenceNode2);
379
+ styleContainerNode.insertBefore(
380
+ styleElm,
381
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
382
+ );
373
383
  } else if ("host" in styleContainerNode) {
374
384
  if (supportsConstructableStylesheets) {
375
385
  const stylesheet = new CSSStyleSheet();
@@ -419,16 +429,18 @@ var attachStyles = (hostRef) => {
419
429
  endAttachStyles();
420
430
  };
421
431
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
422
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
432
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
423
433
  if (oldValue !== newValue) {
424
434
  let isProp = isMemberInElement(elm, memberName);
425
435
  let ln = memberName.toLowerCase();
426
436
  if (memberName === "class") {
427
437
  const classList = elm.classList;
428
438
  const oldClasses = parseClassList(oldValue);
429
- const newClasses = parseClassList(newValue);
430
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
431
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
439
+ let newClasses = parseClassList(newValue);
440
+ {
441
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
442
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
443
+ }
432
444
  } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
433
445
  if (memberName[2] === "-") {
434
446
  memberName = memberName.slice(3);
@@ -462,7 +474,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
462
474
  elm.setAttribute(memberName, n);
463
475
  }
464
476
  }
465
- } else {
477
+ } else if (elm[memberName] !== newValue) {
466
478
  elm[memberName] = newValue;
467
479
  }
468
480
  } catch (e) {
@@ -484,24 +496,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
484
496
  }
485
497
  };
486
498
  var parseClassListRegex = /\s/;
487
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
499
+ var parseClassList = (value) => {
500
+ if (typeof value === "object" && value && "baseVal" in value) {
501
+ value = value.baseVal;
502
+ }
503
+ if (!value || typeof value !== "string") {
504
+ return [];
505
+ }
506
+ return value.split(parseClassListRegex);
507
+ };
488
508
  var CAPTURE_EVENT_SUFFIX = "Capture";
489
509
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
490
510
 
491
511
  // src/runtime/vdom/update-element.ts
492
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
512
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
493
513
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
494
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
495
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
514
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
515
+ const newVnodeAttrs = newVnode.$attrs$ || {};
496
516
  {
497
517
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
498
518
  if (!(memberName in newVnodeAttrs)) {
499
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
519
+ setAccessor(
520
+ elm,
521
+ memberName,
522
+ oldVnodeAttrs[memberName],
523
+ void 0,
524
+ isSvgMode2,
525
+ newVnode.$flags$);
500
526
  }
501
527
  }
502
528
  }
503
529
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
504
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
530
+ setAccessor(
531
+ elm,
532
+ memberName,
533
+ oldVnodeAttrs[memberName],
534
+ newVnodeAttrs[memberName],
535
+ isSvgMode2,
536
+ newVnode.$flags$);
505
537
  }
506
538
  };
507
539
  function sortedAttrNames(attrNames) {
@@ -513,13 +545,10 @@ function sortedAttrNames(attrNames) {
513
545
  attrNames
514
546
  );
515
547
  }
516
-
517
- // src/runtime/vdom/vdom-render.ts
518
- var scopeId;
519
548
  var hostTagName;
520
549
  var useNativeShadowDom = false;
521
550
  var isSvgMode = false;
522
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
551
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
523
552
  const newVNode2 = newParentVNode.$children$[childIndex];
524
553
  let i2 = 0;
525
554
  let elm;
@@ -540,11 +569,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
540
569
  {
541
570
  updateElement(null, newVNode2, isSvgMode);
542
571
  }
543
- const rootNode = elm.getRootNode();
544
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
545
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
546
- elm.classList.add(elm["s-si"] = scopeId);
547
- }
548
572
  if (newVNode2.$children$) {
549
573
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
550
574
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -680,6 +704,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
680
704
  if (!isInitialRender) {
681
705
  return leftVNode.$key$ === rightVNode.$key$;
682
706
  }
707
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
708
+ leftVNode.$key$ = rightVNode.$key$;
709
+ }
683
710
  return true;
684
711
  }
685
712
  return false;
@@ -720,8 +747,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
720
747
  }
721
748
  };
722
749
  var insertBefore = (parent, newNode, reference) => {
723
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
724
- return inserted;
750
+ {
751
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
752
+ }
725
753
  };
726
754
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
727
755
  const hostElm = hostRef.$hostElement$;
@@ -740,9 +768,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
740
768
  rootVnode.$flags$ |= 4 /* isHost */;
741
769
  hostRef.$vnode$ = rootVnode;
742
770
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
743
- {
744
- scopeId = hostElm["s-sc"];
745
- }
746
771
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
747
772
  patch(oldVNode, rootVnode, isInitialLoad);
748
773
  };
@@ -750,7 +775,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
750
775
  // src/runtime/update-component.ts
751
776
  var attachToAncestor = (hostRef, ancestorComponent) => {
752
777
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
753
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
778
+ const index = ancestorComponent["s-p"].push(
779
+ new Promise(
780
+ (r) => hostRef.$onRenderResolve$ = () => {
781
+ ancestorComponent["s-p"].splice(index - 1, 1);
782
+ r();
783
+ }
784
+ )
785
+ );
754
786
  }
755
787
  };
756
788
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -779,12 +811,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
779
811
  {
780
812
  hostRef.$flags$ |= 256 /* isListenReady */;
781
813
  if (hostRef.$queuedListeners$) {
782
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
814
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
783
815
  hostRef.$queuedListeners$ = void 0;
784
816
  }
785
817
  }
786
818
  {
787
- maybePromise = safeCall(instance, "componentWillLoad");
819
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
788
820
  }
789
821
  }
790
822
  endSchedule();
@@ -853,7 +885,7 @@ var postUpdateComponent = (hostRef) => {
853
885
  const instance = hostRef.$lazyInstance$ ;
854
886
  const ancestorComponent = hostRef.$ancestorComponent$;
855
887
  {
856
- safeCall(instance, "componentDidRender");
888
+ safeCall(instance, "componentDidRender", void 0, elm);
857
889
  }
858
890
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
859
891
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -887,12 +919,12 @@ var appDidLoad = (who) => {
887
919
  }
888
920
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
889
921
  };
890
- var safeCall = (instance, method, arg) => {
922
+ var safeCall = (instance, method, arg, elm) => {
891
923
  if (instance && instance[method]) {
892
924
  try {
893
925
  return instance[method](arg);
894
926
  } catch (e) {
895
- consoleError(e);
927
+ consoleError(e, elm);
896
928
  }
897
929
  }
898
930
  return void 0;
@@ -935,15 +967,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
935
967
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
936
968
  members.map(([memberName, [memberFlags]]) => {
937
969
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
970
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
971
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
972
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
973
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
974
+ Object.defineProperty(prototype, memberName, {
975
+ get() {
976
+ {
977
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
978
+ return getValue(this, memberName);
979
+ }
980
+ const ref = getHostRef(this);
981
+ const instance = ref ? ref.$lazyInstance$ : prototype;
982
+ if (!instance) return;
983
+ return instance[memberName];
984
+ }
985
+ },
986
+ configurable: true,
987
+ enumerable: true
988
+ });
989
+ }
938
990
  Object.defineProperty(prototype, memberName, {
939
- get() {
940
- return getValue(this, memberName);
941
- },
942
991
  set(newValue) {
943
- setValue(this, memberName, newValue, cmpMeta);
944
- },
945
- configurable: true,
946
- enumerable: true
992
+ const ref = getHostRef(this);
993
+ if (origSetter) {
994
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
995
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
996
+ newValue = ref.$instanceValues$.get(memberName);
997
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
998
+ ref.$instanceValues$.set(memberName, currentValue);
999
+ }
1000
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1001
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1002
+ setValue(this, memberName, newValue, cmpMeta);
1003
+ return;
1004
+ }
1005
+ {
1006
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1007
+ setValue(this, memberName, newValue, cmpMeta);
1008
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1009
+ ref.$onReadyPromise$.then(() => {
1010
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1011
+ ref.$lazyInstance$[memberName] = newValue;
1012
+ }
1013
+ });
1014
+ }
1015
+ return;
1016
+ }
1017
+ const setterSetVal = () => {
1018
+ const currentValue = ref.$lazyInstance$[memberName];
1019
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1020
+ ref.$instanceValues$.set(memberName, currentValue);
1021
+ }
1022
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1023
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1024
+ };
1025
+ if (ref.$lazyInstance$) {
1026
+ setterSetVal();
1027
+ } else {
1028
+ ref.$onReadyPromise$.then(() => setterSetVal());
1029
+ }
1030
+ }
1031
+ }
947
1032
  });
948
1033
  }
949
1034
  });
@@ -953,7 +1038,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
953
1038
  plt.jmp(() => {
954
1039
  var _a2;
955
1040
  const propName = attrNameToPropName.get(attrName);
956
- if (this.hasOwnProperty(propName)) {
1041
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
957
1042
  newValue = this[propName];
958
1043
  delete this[propName];
959
1044
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -973,7 +1058,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
973
1058
  }
974
1059
  return;
975
1060
  }
976
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1061
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1062
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1063
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1064
+ this[propName] = newValue;
1065
+ }
977
1066
  });
978
1067
  };
979
1068
  Cstr.observedAttributes = Array.from(
@@ -996,9 +1085,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
996
1085
  let Cstr;
997
1086
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
998
1087
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
999
- const bundleId = cmpMeta.$lazyBundleId$;
1000
- if (bundleId) {
1001
- const CstrImport = loadModule(cmpMeta);
1088
+ {
1089
+ const CstrImport = loadModule(cmpMeta, hostRef);
1002
1090
  if (CstrImport && "then" in CstrImport) {
1003
1091
  const endLoad = uniqueTime();
1004
1092
  Cstr = await CstrImport;
@@ -1020,16 +1108,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1020
1108
  try {
1021
1109
  new Cstr(hostRef);
1022
1110
  } catch (e) {
1023
- consoleError(e);
1111
+ consoleError(e, elm);
1024
1112
  }
1025
1113
  {
1026
1114
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1027
1115
  }
1028
1116
  endNewInstance();
1029
- } else {
1030
- Cstr = elm.constructor;
1031
- const cmpTag = elm.localName;
1032
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1033
1117
  }
1034
1118
  if (Cstr && Cstr.style) {
1035
1119
  let style;
@@ -1052,7 +1136,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1052
1136
  schedule();
1053
1137
  }
1054
1138
  };
1055
- var fireConnectedCallback = (instance) => {
1139
+ var fireConnectedCallback = (instance, elm) => {
1056
1140
  };
1057
1141
 
1058
1142
  // src/runtime/connected-callback.ts
@@ -1093,7 +1177,7 @@ var connectedCallback = (elm) => {
1093
1177
  endConnected();
1094
1178
  }
1095
1179
  };
1096
- var disconnectInstance = (instance) => {
1180
+ var disconnectInstance = (instance, elm) => {
1097
1181
  };
1098
1182
  var disconnectedCallback = async (elm) => {
1099
1183
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1108,6 +1192,12 @@ var disconnectedCallback = async (elm) => {
1108
1192
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1109
1193
  }
1110
1194
  }
1195
+ if (rootAppliedStyles.has(elm)) {
1196
+ rootAppliedStyles.delete(elm);
1197
+ }
1198
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1199
+ rootAppliedStyles.delete(elm.shadowRoot);
1200
+ }
1111
1201
  };
1112
1202
 
1113
1203
  // src/runtime/bootstrap-lazy.ts
@@ -1185,6 +1275,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1185
1275
  }
1186
1276
  disconnectedCallback() {
1187
1277
  plt.jmp(() => disconnectedCallback(this));
1278
+ plt.raf(() => {
1279
+ var _a3;
1280
+ const hostRef = getHostRef(this);
1281
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1282
+ delete hostRef.$vnode$.$elm$;
1283
+ }
1284
+ });
1188
1285
  }
1189
1286
  componentOnReady() {
1190
1287
  return getHostRef(this).$onReadyPromise$;
@@ -1248,7 +1345,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1248
1345
  }
1249
1346
  }
1250
1347
  } catch (e) {
1251
- consoleError(e);
1348
+ consoleError(e, hostRef.$hostElement$);
1252
1349
  }
1253
1350
  };
1254
1351
  var getHostListenerTarget = (elm, flags) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-481aea9b.js');
5
+ const index = require('./index-dcdffcf2.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
7
+ "version": "4.25.1",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],
@@ -1,13 +1,19 @@
1
1
  import { h } from "@stencil/core";
2
2
  export class CasinoTournamentDesc {
3
3
  constructor() {
4
- this.desc = undefined;
5
- this.descTitle = undefined;
4
+ /**
5
+ * Use event to get data
6
+ */
6
7
  this.useEvent = true;
8
+ /**
9
+ * Client custom styling via inline styles
10
+ */
7
11
  this.clientStyling = '';
12
+ /**
13
+ * Client custom styling via url
14
+ */
8
15
  this.clientStylingUrl = '';
9
16
  this.limitStylingAppends = false;
10
- this.stylingContainer = undefined;
11
17
  this.collapsed = [];
12
18
  this.tournamentDescriptions = [];
13
19
  }
@@ -95,6 +101,8 @@ export class CasinoTournamentDesc {
95
101
  "tags": [],
96
102
  "text": "Description content as HTML"
97
103
  },
104
+ "getter": false,
105
+ "setter": false,
98
106
  "attribute": "desc",
99
107
  "reflect": false
100
108
  },
@@ -112,6 +120,8 @@ export class CasinoTournamentDesc {
112
120
  "tags": [],
113
121
  "text": "Description title"
114
122
  },
123
+ "getter": false,
124
+ "setter": false,
115
125
  "attribute": "desc-title",
116
126
  "reflect": false
117
127
  },
@@ -129,6 +139,8 @@ export class CasinoTournamentDesc {
129
139
  "tags": [],
130
140
  "text": "Use event to get data"
131
141
  },
142
+ "getter": false,
143
+ "setter": false,
132
144
  "attribute": "use-event",
133
145
  "reflect": false,
134
146
  "defaultValue": "true"
@@ -147,6 +159,8 @@ export class CasinoTournamentDesc {
147
159
  "tags": [],
148
160
  "text": "Client custom styling via inline styles"
149
161
  },
162
+ "getter": false,
163
+ "setter": false,
150
164
  "attribute": "client-styling",
151
165
  "reflect": false,
152
166
  "defaultValue": "''"
@@ -165,6 +179,8 @@ export class CasinoTournamentDesc {
165
179
  "tags": [],
166
180
  "text": "Client custom styling via url"
167
181
  },
182
+ "getter": false,
183
+ "setter": false,
168
184
  "attribute": "client-styling-url",
169
185
  "reflect": false,
170
186
  "defaultValue": "''"
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, g as getElement } from './index-c561c827.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-af38171b.js';
2
2
 
3
3
  const casinoTournamentDescCss = ":host{display:block}.DetailsCard{color:var(--emw--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(--emw--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(--emw--color-white, #FFFFFF);border-radius:10px}";
4
4
  const CasinoTournamentDescStyle0 = casinoTournamentDescCss;
@@ -6,13 +6,19 @@ const CasinoTournamentDescStyle0 = casinoTournamentDescCss;
6
6
  const CasinoTournamentDesc = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
- this.desc = undefined;
10
- this.descTitle = undefined;
9
+ /**
10
+ * Use event to get data
11
+ */
11
12
  this.useEvent = true;
13
+ /**
14
+ * Client custom styling via inline styles
15
+ */
12
16
  this.clientStyling = '';
17
+ /**
18
+ * Client custom styling via url
19
+ */
13
20
  this.clientStylingUrl = '';
14
21
  this.limitStylingAppends = false;
15
- this.stylingContainer = undefined;
16
22
  this.collapsed = [];
17
23
  this.tournamentDescriptions = [];
18
24
  }
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-c561c827.js';
2
- export { s as setNonce } from './index-c561c827.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-af38171b.js';
2
+ export { s as setNonce } from './index-af38171b.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.25.1 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1,17 +1,25 @@
1
1
  const NAMESPACE = 'casino-tournament-desc';
2
- const BUILD = /* casino-tournament-desc */ { 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: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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: true, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
2
+ const BUILD = /* casino-tournament-desc */ { 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: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, 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.25.1 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
+
13
+ // src/utils/constants.ts
14
+ var SVG_NS = "http://www.w3.org/2000/svg";
15
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
16
+
17
+ // src/client/client-host-ref.ts
12
18
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
19
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
20
+ var registerInstance = (lazyInstance, hostRef) => {
21
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
22
+ };
15
23
  var registerHost = (hostElement, cmpMeta) => {
16
24
  const hostRef = {
17
25
  $flags$: 0,
@@ -24,7 +32,8 @@ var registerHost = (hostElement, cmpMeta) => {
24
32
  hostElement["s-p"] = [];
25
33
  hostElement["s-rc"] = [];
26
34
  }
27
- return hostRefs.set(hostElement, hostRef);
35
+ const ref = hostRefs.set(hostElement, hostRef);
36
+ return ref;
28
37
  };
29
38
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
39
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -61,16 +70,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
61
70
  /* webpackExclude: /\.system\.entry\.js$/ */
62
71
  /* webpackMode: "lazy" */
63
72
  `./${bundleId}.entry.js${""}`
64
- ).then((importedModule) => {
65
- {
66
- cmpModules.set(bundleId, importedModule);
73
+ ).then(
74
+ (importedModule) => {
75
+ {
76
+ cmpModules.set(bundleId, importedModule);
77
+ }
78
+ return importedModule[exportName];
79
+ },
80
+ (e) => {
81
+ consoleError(e, hostRef.$hostElement$);
67
82
  }
68
- return importedModule[exportName];
69
- }, consoleError);
83
+ );
70
84
  };
71
85
 
72
86
  // src/client/client-style.ts
73
87
  var styles = /* @__PURE__ */ new Map();
88
+ var HYDRATED_STYLE_ID = "sty-id";
74
89
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
75
90
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
76
91
  var win = typeof window !== "undefined" ? window : {};
@@ -144,14 +159,6 @@ var flush = () => {
144
159
  };
145
160
  var nextTick = (cb) => promiseResolve().then(cb);
146
161
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
147
-
148
- // src/utils/constants.ts
149
- var EMPTY_OBJ = {};
150
- var SVG_NS = "http://www.w3.org/2000/svg";
151
- var HTML_NS = "http://www.w3.org/1999/xhtml";
152
-
153
- // src/utils/helpers.ts
154
- var isDef = (v) => v != null;
155
162
  var isComplexType = (o) => {
156
163
  o = typeof o;
157
164
  return o === "object" || o === "function";
@@ -337,7 +344,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
337
344
  }
338
345
  if (!appliedStyles.has(scopeId2)) {
339
346
  {
340
- styleElm = doc.createElement("style");
347
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
341
348
  styleElm.innerHTML = style;
342
349
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
343
350
  if (nonce != null) {
@@ -347,7 +354,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
347
354
  if (styleContainerNode.nodeName === "HEAD") {
348
355
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
349
356
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
350
- styleContainerNode.insertBefore(styleElm, referenceNode2);
357
+ styleContainerNode.insertBefore(
358
+ styleElm,
359
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
360
+ );
351
361
  } else if ("host" in styleContainerNode) {
352
362
  if (supportsConstructableStylesheets) {
353
363
  const stylesheet = new CSSStyleSheet();
@@ -397,16 +407,18 @@ var attachStyles = (hostRef) => {
397
407
  endAttachStyles();
398
408
  };
399
409
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
400
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
410
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
401
411
  if (oldValue !== newValue) {
402
412
  let isProp = isMemberInElement(elm, memberName);
403
413
  let ln = memberName.toLowerCase();
404
414
  if (memberName === "class") {
405
415
  const classList = elm.classList;
406
416
  const oldClasses = parseClassList(oldValue);
407
- const newClasses = parseClassList(newValue);
408
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
409
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
417
+ let newClasses = parseClassList(newValue);
418
+ {
419
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
420
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
421
+ }
410
422
  } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
411
423
  if (memberName[2] === "-") {
412
424
  memberName = memberName.slice(3);
@@ -440,7 +452,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
440
452
  elm.setAttribute(memberName, n);
441
453
  }
442
454
  }
443
- } else {
455
+ } else if (elm[memberName] !== newValue) {
444
456
  elm[memberName] = newValue;
445
457
  }
446
458
  } catch (e) {
@@ -462,24 +474,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
462
474
  }
463
475
  };
464
476
  var parseClassListRegex = /\s/;
465
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
477
+ var parseClassList = (value) => {
478
+ if (typeof value === "object" && value && "baseVal" in value) {
479
+ value = value.baseVal;
480
+ }
481
+ if (!value || typeof value !== "string") {
482
+ return [];
483
+ }
484
+ return value.split(parseClassListRegex);
485
+ };
466
486
  var CAPTURE_EVENT_SUFFIX = "Capture";
467
487
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
468
488
 
469
489
  // src/runtime/vdom/update-element.ts
470
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
490
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
471
491
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
472
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
473
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
492
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
493
+ const newVnodeAttrs = newVnode.$attrs$ || {};
474
494
  {
475
495
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
476
496
  if (!(memberName in newVnodeAttrs)) {
477
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
497
+ setAccessor(
498
+ elm,
499
+ memberName,
500
+ oldVnodeAttrs[memberName],
501
+ void 0,
502
+ isSvgMode2,
503
+ newVnode.$flags$);
478
504
  }
479
505
  }
480
506
  }
481
507
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
482
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
508
+ setAccessor(
509
+ elm,
510
+ memberName,
511
+ oldVnodeAttrs[memberName],
512
+ newVnodeAttrs[memberName],
513
+ isSvgMode2,
514
+ newVnode.$flags$);
483
515
  }
484
516
  };
485
517
  function sortedAttrNames(attrNames) {
@@ -491,13 +523,10 @@ function sortedAttrNames(attrNames) {
491
523
  attrNames
492
524
  );
493
525
  }
494
-
495
- // src/runtime/vdom/vdom-render.ts
496
- var scopeId;
497
526
  var hostTagName;
498
527
  var useNativeShadowDom = false;
499
528
  var isSvgMode = false;
500
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
529
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
501
530
  const newVNode2 = newParentVNode.$children$[childIndex];
502
531
  let i2 = 0;
503
532
  let elm;
@@ -518,11 +547,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
518
547
  {
519
548
  updateElement(null, newVNode2, isSvgMode);
520
549
  }
521
- const rootNode = elm.getRootNode();
522
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
523
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
524
- elm.classList.add(elm["s-si"] = scopeId);
525
- }
526
550
  if (newVNode2.$children$) {
527
551
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
528
552
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -658,6 +682,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
658
682
  if (!isInitialRender) {
659
683
  return leftVNode.$key$ === rightVNode.$key$;
660
684
  }
685
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
686
+ leftVNode.$key$ = rightVNode.$key$;
687
+ }
661
688
  return true;
662
689
  }
663
690
  return false;
@@ -698,8 +725,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
698
725
  }
699
726
  };
700
727
  var insertBefore = (parent, newNode, reference) => {
701
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
702
- return inserted;
728
+ {
729
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
730
+ }
703
731
  };
704
732
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
705
733
  const hostElm = hostRef.$hostElement$;
@@ -718,9 +746,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
718
746
  rootVnode.$flags$ |= 4 /* isHost */;
719
747
  hostRef.$vnode$ = rootVnode;
720
748
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
721
- {
722
- scopeId = hostElm["s-sc"];
723
- }
724
749
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
725
750
  patch(oldVNode, rootVnode, isInitialLoad);
726
751
  };
@@ -728,7 +753,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
728
753
  // src/runtime/update-component.ts
729
754
  var attachToAncestor = (hostRef, ancestorComponent) => {
730
755
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
731
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
756
+ const index = ancestorComponent["s-p"].push(
757
+ new Promise(
758
+ (r) => hostRef.$onRenderResolve$ = () => {
759
+ ancestorComponent["s-p"].splice(index - 1, 1);
760
+ r();
761
+ }
762
+ )
763
+ );
732
764
  }
733
765
  };
734
766
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -757,12 +789,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
757
789
  {
758
790
  hostRef.$flags$ |= 256 /* isListenReady */;
759
791
  if (hostRef.$queuedListeners$) {
760
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
792
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
761
793
  hostRef.$queuedListeners$ = void 0;
762
794
  }
763
795
  }
764
796
  {
765
- maybePromise = safeCall(instance, "componentWillLoad");
797
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
766
798
  }
767
799
  }
768
800
  endSchedule();
@@ -831,7 +863,7 @@ var postUpdateComponent = (hostRef) => {
831
863
  const instance = hostRef.$lazyInstance$ ;
832
864
  const ancestorComponent = hostRef.$ancestorComponent$;
833
865
  {
834
- safeCall(instance, "componentDidRender");
866
+ safeCall(instance, "componentDidRender", void 0, elm);
835
867
  }
836
868
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
837
869
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -865,12 +897,12 @@ var appDidLoad = (who) => {
865
897
  }
866
898
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
867
899
  };
868
- var safeCall = (instance, method, arg) => {
900
+ var safeCall = (instance, method, arg, elm) => {
869
901
  if (instance && instance[method]) {
870
902
  try {
871
903
  return instance[method](arg);
872
904
  } catch (e) {
873
- consoleError(e);
905
+ consoleError(e, elm);
874
906
  }
875
907
  }
876
908
  return void 0;
@@ -913,15 +945,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
913
945
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
914
946
  members.map(([memberName, [memberFlags]]) => {
915
947
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
948
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
949
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
950
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
951
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
952
+ Object.defineProperty(prototype, memberName, {
953
+ get() {
954
+ {
955
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
956
+ return getValue(this, memberName);
957
+ }
958
+ const ref = getHostRef(this);
959
+ const instance = ref ? ref.$lazyInstance$ : prototype;
960
+ if (!instance) return;
961
+ return instance[memberName];
962
+ }
963
+ },
964
+ configurable: true,
965
+ enumerable: true
966
+ });
967
+ }
916
968
  Object.defineProperty(prototype, memberName, {
917
- get() {
918
- return getValue(this, memberName);
919
- },
920
969
  set(newValue) {
921
- setValue(this, memberName, newValue, cmpMeta);
922
- },
923
- configurable: true,
924
- enumerable: true
970
+ const ref = getHostRef(this);
971
+ if (origSetter) {
972
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
973
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
974
+ newValue = ref.$instanceValues$.get(memberName);
975
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
976
+ ref.$instanceValues$.set(memberName, currentValue);
977
+ }
978
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
979
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
980
+ setValue(this, memberName, newValue, cmpMeta);
981
+ return;
982
+ }
983
+ {
984
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
985
+ setValue(this, memberName, newValue, cmpMeta);
986
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
987
+ ref.$onReadyPromise$.then(() => {
988
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
989
+ ref.$lazyInstance$[memberName] = newValue;
990
+ }
991
+ });
992
+ }
993
+ return;
994
+ }
995
+ const setterSetVal = () => {
996
+ const currentValue = ref.$lazyInstance$[memberName];
997
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
998
+ ref.$instanceValues$.set(memberName, currentValue);
999
+ }
1000
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1001
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1002
+ };
1003
+ if (ref.$lazyInstance$) {
1004
+ setterSetVal();
1005
+ } else {
1006
+ ref.$onReadyPromise$.then(() => setterSetVal());
1007
+ }
1008
+ }
1009
+ }
925
1010
  });
926
1011
  }
927
1012
  });
@@ -931,7 +1016,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
931
1016
  plt.jmp(() => {
932
1017
  var _a2;
933
1018
  const propName = attrNameToPropName.get(attrName);
934
- if (this.hasOwnProperty(propName)) {
1019
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
935
1020
  newValue = this[propName];
936
1021
  delete this[propName];
937
1022
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -951,7 +1036,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
951
1036
  }
952
1037
  return;
953
1038
  }
954
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1039
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1040
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1041
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1042
+ this[propName] = newValue;
1043
+ }
955
1044
  });
956
1045
  };
957
1046
  Cstr.observedAttributes = Array.from(
@@ -974,9 +1063,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
974
1063
  let Cstr;
975
1064
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
976
1065
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
977
- const bundleId = cmpMeta.$lazyBundleId$;
978
- if (bundleId) {
979
- const CstrImport = loadModule(cmpMeta);
1066
+ {
1067
+ const CstrImport = loadModule(cmpMeta, hostRef);
980
1068
  if (CstrImport && "then" in CstrImport) {
981
1069
  const endLoad = uniqueTime();
982
1070
  Cstr = await CstrImport;
@@ -998,16 +1086,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
998
1086
  try {
999
1087
  new Cstr(hostRef);
1000
1088
  } catch (e) {
1001
- consoleError(e);
1089
+ consoleError(e, elm);
1002
1090
  }
1003
1091
  {
1004
1092
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1005
1093
  }
1006
1094
  endNewInstance();
1007
- } else {
1008
- Cstr = elm.constructor;
1009
- const cmpTag = elm.localName;
1010
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1011
1095
  }
1012
1096
  if (Cstr && Cstr.style) {
1013
1097
  let style;
@@ -1030,7 +1114,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1030
1114
  schedule();
1031
1115
  }
1032
1116
  };
1033
- var fireConnectedCallback = (instance) => {
1117
+ var fireConnectedCallback = (instance, elm) => {
1034
1118
  };
1035
1119
 
1036
1120
  // src/runtime/connected-callback.ts
@@ -1071,7 +1155,7 @@ var connectedCallback = (elm) => {
1071
1155
  endConnected();
1072
1156
  }
1073
1157
  };
1074
- var disconnectInstance = (instance) => {
1158
+ var disconnectInstance = (instance, elm) => {
1075
1159
  };
1076
1160
  var disconnectedCallback = async (elm) => {
1077
1161
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1086,6 +1170,12 @@ var disconnectedCallback = async (elm) => {
1086
1170
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1087
1171
  }
1088
1172
  }
1173
+ if (rootAppliedStyles.has(elm)) {
1174
+ rootAppliedStyles.delete(elm);
1175
+ }
1176
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1177
+ rootAppliedStyles.delete(elm.shadowRoot);
1178
+ }
1089
1179
  };
1090
1180
 
1091
1181
  // src/runtime/bootstrap-lazy.ts
@@ -1163,6 +1253,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1163
1253
  }
1164
1254
  disconnectedCallback() {
1165
1255
  plt.jmp(() => disconnectedCallback(this));
1256
+ plt.raf(() => {
1257
+ var _a3;
1258
+ const hostRef = getHostRef(this);
1259
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1260
+ delete hostRef.$vnode$.$elm$;
1261
+ }
1262
+ });
1166
1263
  }
1167
1264
  componentOnReady() {
1168
1265
  return getHostRef(this).$onReadyPromise$;
@@ -1226,7 +1323,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1226
1323
  }
1227
1324
  }
1228
1325
  } catch (e) {
1229
- consoleError(e);
1326
+ consoleError(e, hostRef.$hostElement$);
1230
1327
  }
1231
1328
  };
1232
1329
  var getHostListenerTarget = (elm, flags) => {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-c561c827.js';
2
- export { s as setNonce } from './index-c561c827.js';
1
+ import { b as bootstrapLazy } from './index-af38171b.js';
2
+ export { s as setNonce } from './index-af38171b.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournament-desc",
3
- "version": "1.53.0",
3
+ "version": "1.53.11",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- import{r as t,h as s,g as i}from"./p-e55bdc7b.js";const e=class{constructor(s){t(this,s),this.desc=void 0,this.descTitle=void 0,this.useEvent=!0,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.stylingContainer=void 0,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",{key:"58eb843db2f73c1549d703040cb13b4a0ce6ed5c",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(--emw--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(--emw--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(--emw--color-white, #FFFFFF);border-radius:10px}";export{e as casino_tournament_desc}
@@ -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),i=new Map,r=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})(),d=!1,m=[],y=[],w=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.o?b($):f.raf($))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},$=()=>{v(m),v(y),(d=m.length>0)&&f.raf($)},b=e=>h().then(e),g=w(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function O(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:()=>E,map:()=>C,ok:()=>k,unwrap:()=>x,unwrapErr:()=>P});var k=e=>({isOk:!0,isErr:!1,value:e}),E=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=>k(e))):k(n)}if(e.isErr)return E(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=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!j(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?R(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=R(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},R=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),D={},H=e=>n(e).$hostElement$,T=new WeakMap,L=e=>"sc-"+e.$,N=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=W(n),s=W(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("key"===t);else if(r||"o"!==t[0]||"n"!==t[1]){const l=j(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?r=!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):(!r||4&i||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(F);t=t.replace(q,""),n&&f.rel(e,t,n,l),o&&f.ael(e,t,o,l)}}},U=/\s/,W=e=>e?e.split(U):[],F="Capture",q=RegExp(F+"$"),G=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||S,s=t.u||S;for(const e of V(Object.keys(l)))e in s||N(o,e,l[e],void 0,n,t.o);for(const e of V(Object.keys(s)))N(o,e,l[e],s[e],n,t.o)};function V(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var _=!1,z=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.v=a.createTextNode(o.i);else{if(_||(_="svg"===o.m),l=o.v=a.createElementNS(_?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),_&&"foreignObject"===o.m&&(_=!1),G(null,o,_),l.getRootNode().querySelector("body"),o.h)for(i=0;i<o.h.length;++i)s=z(e,o,i),s&&l.appendChild(s);"svg"===o.m?_=!1:"foreignObject"===l.tagName&&(_=!0)}return l["s-hn"]=M,l},B=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===M&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=z(null,n,l),i&&(o[l].v=i,Q(r,i,t)))},I=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},J=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),K=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.m,r=t.i;null===r?(G(e,t,_="svg"===i||"foreignObject"!==i&&_),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=o.length-1,m=o[0],y=o[d];for(;r<=f&&c<=d;)if(null==h)h=t[++r];else if(null==p)p=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--d];else if(J(h,m,l))K(h,m,l),h=t[++r],m=o[++c];else if(J(p,y,l))K(p,y,l),p=t[--f],y=o[--d];else if(J(h,y,l))K(h,y,l),Q(e,h.v,p.v.nextSibling),h=t[++r],y=o[--d];else if(J(p,m,l))K(p,m,l),Q(e,p.v,h.v),p=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=z(t&&t[c],n,u):(K(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=z(t&&t[c],n,c),m=o[++c]),s&&Q(h.v.parentNode,s,h.v)}r>f?B(e,null==o[d+1]?null:o[d+1].v,n,o,c,d):c>d&&I(t,r,f)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),B(o,null,t,s,0,s.length-1)):!n&&null!==l&&I(l,0,l.length-1),_&&"svg"===i&&(_=!1)):e.i!==r&&(o.data=r)},Q=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),X=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Y=(e,t)=>{if(e.o|=16,!(4&e.o))return X(e,e.j),g((()=>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&&(e.o|=256,e.O&&(e.O.map((([e,t])=>ie(n,e,t))),e.O=void 0),o=ie(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.k,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=L(t),l=r.get(o);if(e=11===e.nodeType?e:a,l)if("string"==typeof l){let s,i=T.get(e=e.head||e);if(i||T.set(e,i=new Set),!i.has(o)){{s=a.createElement("style"),s.innerHTML=l;const o=null!=(n=f.C)?n:O(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),i&&i.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.k,s=e.M||R(null,null),i=(e=>e&&e.m===D)(t)?t:A(null,null,t);if(M=o.tagName,n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.M=i,i.v=s.v=o.shadowRoot||o,K(s,i,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},le=e=>{const t=e.$hostElement$,n=e.j;ie(e.t,"componentDidRender"),64&e.o||(e.o|=64,re(t),e.P(t),n||se()),e.S&&(e.S(),e.S=void 0),512&e.o&&b((()=>Y(e,!1))),e.o&=-517},se=()=>{re(a.documentElement),b((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"casino-tournament-desc"}});return e.dispatchEvent(t),t})(u)))},ie=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},re=e=>e.classList.add("hydrated"),ce=(e,t,o)=>{var l,s;const i=e.prototype;if(t.A){const r=Object.entries(null!=(l=t.A)?l:{});if(r.map((([e,[l]])=>{(31&l||2&o&&32&l)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).R.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 i=s.R.get(t),r=s.o,c=s.t;o=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(o,l.A[t][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.R.set(t,o),c&&2==(18&r)&&Y(s,!1))})(this,e,o,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){f.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.D)?void 0:r[e];null==i||i.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.D)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},ue=(e,o={})=>{var l;const h=[],d=o.exclude||[],m=u.customElements,y=a.head,w=y.querySelector("meta[charset]"),v=a.createElement("style"),$=[];let b,g=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],$:o[1],A:o[2],H:o[3]};4&l.o&&(S=!0),l.A=o[2],l.H=o[3];const c=l.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,k:n,R:new Map};o.T=new Promise((e=>o.P=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(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,ae(this,e,l.H)),b&&(clearTimeout(b),b=null),g?$.push(this):f.jmp((()=>(e=>{if(!(1&f.o)){const t=n(e),o=t.k,l=()=>{};if(1&t.o)ae(e,t,o.H),(null==t?void 0:t.t)||(null==t?void 0:t.T)&&t.T.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){X(t,t.j=n);break}}o.A&&Object.entries(o.A).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.L){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.L;if(!n)return;const o=i.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(i.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.N}" 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=L(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.j,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);e.U&&(e.U.map((e=>e())),e.U=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.T)&&e.T.then((()=>{}))}})()))}componentOnReady(){return n(this).T}};l.L=e[0],d.includes(c)||m.get(c)||(h.push(c),m.define(c,ce(u,l,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(l=f.C)?l:O(a);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):f.jmp((()=>b=setTimeout(se,30)))},ae=(e,t,n)=>{n&&n.map((([n,o,l])=>{const s=he(e,n),i=fe(t,l),r=pe(n);f.ael(s,o,i,r),(t.U=t.U||[]).push((()=>f.rel(s,o,i,r)))}))},fe=(e,t)=>n=>{var o;try{256&e.o?null==(o=e.t)||o[t](n):(e.O=e.O||[]).push([t,n])}catch(e){s(e)}},he=(e,t)=>8&t?u:e,pe=e=>({passive:!!(1&e),capture:!!(2&e)}),de=e=>f.C=e;export{ue as b,H as g,A as h,h as p,o as r,de as s}
@@ -1,2 +0,0 @@
1
- import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
- export declare const config: Config;
@@ -1,2 +0,0 @@
1
- import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
- export declare const config: Config;