@everymatrix/casino-tournament-desc 1.55.0 → 1.56.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.
Files changed (24) hide show
  1. package/dist/casino-tournament-desc/casino-tournament-desc.esm.js +1 -1
  2. package/dist/casino-tournament-desc/p-26564c10.entry.js +1 -0
  3. package/dist/casino-tournament-desc/p-61a8944b.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-58c4c03b.js} +173 -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-169a4179.js} +173 -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
  21. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -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-61a8944b.js";export{s as setNonce}from"./p-61a8944b.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-26564c10",[[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-61a8944b.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?R(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=R(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},R=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),A={},N=(t,e)=>null==t||S(t)?t:4&e?"false"!==t&&(""===t||!!t):1&e?t+"":t,T=t=>n(t).$hostElement$,D=new WeakMap,H=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=H(e),l=r.get(o);if(t=11===t.nodeType?t:a,l)if("string"==typeof l){let s,i=D.get(t=t.head||t);if(i||D.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&&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||128&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||R(null,null),i=(t=>t&&t.m===A)(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=()=>{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.R.get(e),r=s.o,c=s.t;o=N(o,l.A[e][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.R.set(e,o),c&&2==(18&r)&&Y(s,!1))},ut=(t,e,o)=>{var l,s;const i=t.prototype;if(e.A){const r=Object.entries(null!=(l=e.A)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.A[t][0]|=2048),r&&(e.A[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.A[t][0]))return((t,e)=>n(this).R.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.R.get(t)?s=i.R.get(t):!i.R.get(t)&&n&&i.R.set(t,n),r.call(this,N(s,l)),void ct(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.A[t][0]))return ct(this,t,s,e),void(1&o&&!i.t&&i.N.then((()=>{4096&e.A[t][0]&&i.t[t]!==i.R.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.R.get(t)&&n&&i.R.set(t,n),i.t[t]=N(s,l),ct(this,t,i.t[t],e)};i.t?n():i.N.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.T)?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.T)?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],A:o[2],D:o[3]};4&l.o&&(S=!0),l.A=o[2],l.D=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,R:new Map};o.N=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.D)),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.D),(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.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.A&&Object.entries(o.A).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.H){const l=((t,e)=>{const n=t.$.replace(/-/g,"_"),o=t.H;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()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=H(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.N)&&e.N.then((()=>{}))}D.has(t)&&D.delete(t),t.shadowRoot&&D.has(t.shadowRoot)&&D.delete(t.shadowRoot)})(this))),f.raf((()=>{var t;const e=n(this),o=$.findIndex((t=>t===this));o>-1&&$.splice(o,1),(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).N}};l.H=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,T 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-58c4c03b.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-58c4c03b.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.26.0 | 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.26.0 | 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();
@@ -387,7 +397,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
387
397
  styleContainerNode.append(styleElm);
388
398
  }
389
399
  }
390
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
400
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
391
401
  styleContainerNode.insertBefore(styleElm, null);
392
402
  }
393
403
  }
@@ -412,23 +422,25 @@ var attachStyles = (hostRef) => {
412
422
  const scopeId2 = addStyle(
413
423
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
414
424
  cmpMeta);
415
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
425
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
416
426
  elm["s-sc"] = scopeId2;
417
427
  elm.classList.add(scopeId2 + "-h");
418
428
  }
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,17 +768,21 @@ 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
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
771
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
747
772
  patch(oldVNode, rootVnode, isInitialLoad);
748
773
  };
749
774
 
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 */;
@@ -882,17 +914,14 @@ var postUpdateComponent = (hostRef) => {
882
914
  }
883
915
  };
884
916
  var appDidLoad = (who) => {
885
- {
886
- addHydratedFlag(doc.documentElement);
887
- }
888
917
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
889
918
  };
890
- var safeCall = (instance, method, arg) => {
919
+ var safeCall = (instance, method, arg, elm) => {
891
920
  if (instance && instance[method]) {
892
921
  try {
893
922
  return instance[method](arg);
894
923
  } catch (e) {
895
- consoleError(e);
924
+ consoleError(e, elm);
896
925
  }
897
926
  }
898
927
  return void 0;
@@ -935,15 +964,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
935
964
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
936
965
  members.map(([memberName, [memberFlags]]) => {
937
966
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
967
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
968
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
969
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
970
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
971
+ Object.defineProperty(prototype, memberName, {
972
+ get() {
973
+ {
974
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
975
+ return getValue(this, memberName);
976
+ }
977
+ const ref = getHostRef(this);
978
+ const instance = ref ? ref.$lazyInstance$ : prototype;
979
+ if (!instance) return;
980
+ return instance[memberName];
981
+ }
982
+ },
983
+ configurable: true,
984
+ enumerable: true
985
+ });
986
+ }
938
987
  Object.defineProperty(prototype, memberName, {
939
- get() {
940
- return getValue(this, memberName);
941
- },
942
988
  set(newValue) {
943
- setValue(this, memberName, newValue, cmpMeta);
944
- },
945
- configurable: true,
946
- enumerable: true
989
+ const ref = getHostRef(this);
990
+ if (origSetter) {
991
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
992
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
993
+ newValue = ref.$instanceValues$.get(memberName);
994
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
995
+ ref.$instanceValues$.set(memberName, currentValue);
996
+ }
997
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
998
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
999
+ setValue(this, memberName, newValue, cmpMeta);
1000
+ return;
1001
+ }
1002
+ {
1003
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1004
+ setValue(this, memberName, newValue, cmpMeta);
1005
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1006
+ ref.$onReadyPromise$.then(() => {
1007
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1008
+ ref.$lazyInstance$[memberName] = newValue;
1009
+ }
1010
+ });
1011
+ }
1012
+ return;
1013
+ }
1014
+ const setterSetVal = () => {
1015
+ const currentValue = ref.$lazyInstance$[memberName];
1016
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1017
+ ref.$instanceValues$.set(memberName, currentValue);
1018
+ }
1019
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1020
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1021
+ };
1022
+ if (ref.$lazyInstance$) {
1023
+ setterSetVal();
1024
+ } else {
1025
+ ref.$onReadyPromise$.then(() => setterSetVal());
1026
+ }
1027
+ }
1028
+ }
947
1029
  });
948
1030
  }
949
1031
  });
@@ -953,7 +1035,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
953
1035
  plt.jmp(() => {
954
1036
  var _a2;
955
1037
  const propName = attrNameToPropName.get(attrName);
956
- if (this.hasOwnProperty(propName)) {
1038
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
957
1039
  newValue = this[propName];
958
1040
  delete this[propName];
959
1041
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -973,7 +1055,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
973
1055
  }
974
1056
  return;
975
1057
  }
976
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1058
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1059
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1060
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1061
+ this[propName] = newValue;
1062
+ }
977
1063
  });
978
1064
  };
979
1065
  Cstr.observedAttributes = Array.from(
@@ -998,7 +1084,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
998
1084
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
999
1085
  const bundleId = cmpMeta.$lazyBundleId$;
1000
1086
  if (bundleId) {
1001
- const CstrImport = loadModule(cmpMeta);
1087
+ const CstrImport = loadModule(cmpMeta, hostRef);
1002
1088
  if (CstrImport && "then" in CstrImport) {
1003
1089
  const endLoad = uniqueTime();
1004
1090
  Cstr = await CstrImport;
@@ -1020,7 +1106,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1020
1106
  try {
1021
1107
  new Cstr(hostRef);
1022
1108
  } catch (e) {
1023
- consoleError(e);
1109
+ consoleError(e, elm);
1024
1110
  }
1025
1111
  {
1026
1112
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1052,7 +1138,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1052
1138
  schedule();
1053
1139
  }
1054
1140
  };
1055
- var fireConnectedCallback = (instance) => {
1141
+ var fireConnectedCallback = (instance, elm) => {
1056
1142
  };
1057
1143
 
1058
1144
  // src/runtime/connected-callback.ts
@@ -1093,7 +1179,7 @@ var connectedCallback = (elm) => {
1093
1179
  endConnected();
1094
1180
  }
1095
1181
  };
1096
- var disconnectInstance = (instance) => {
1182
+ var disconnectInstance = (instance, elm) => {
1097
1183
  };
1098
1184
  var disconnectedCallback = async (elm) => {
1099
1185
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1108,6 +1194,12 @@ var disconnectedCallback = async (elm) => {
1108
1194
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1109
1195
  }
1110
1196
  }
1197
+ if (rootAppliedStyles.has(elm)) {
1198
+ rootAppliedStyles.delete(elm);
1199
+ }
1200
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1201
+ rootAppliedStyles.delete(elm.shadowRoot);
1202
+ }
1111
1203
  };
1112
1204
 
1113
1205
  // src/runtime/bootstrap-lazy.ts
@@ -1185,6 +1277,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1185
1277
  }
1186
1278
  disconnectedCallback() {
1187
1279
  plt.jmp(() => disconnectedCallback(this));
1280
+ plt.raf(() => {
1281
+ var _a3;
1282
+ const hostRef = getHostRef(this);
1283
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1284
+ if (i2 > -1) {
1285
+ deferredConnectedCallbacks.splice(i2, 1);
1286
+ }
1287
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1288
+ delete hostRef.$vnode$.$elm$;
1289
+ }
1290
+ });
1188
1291
  }
1189
1292
  componentOnReady() {
1190
1293
  return getHostRef(this).$onReadyPromise$;
@@ -1248,7 +1351,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1248
1351
  }
1249
1352
  }
1250
1353
  } catch (e) {
1251
- consoleError(e);
1354
+ consoleError(e, hostRef.$hostElement$);
1252
1355
  }
1253
1356
  };
1254
1357
  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-58c4c03b.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.26.0",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],