@everymatrix/casino-tournament-prizes 1.56.0 → 1.56.3

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 (25) hide show
  1. package/dist/casino-tournament-prizes/casino-tournament-prizes.esm.js +1 -1
  2. package/dist/casino-tournament-prizes/p-0847d240.js +2 -0
  3. package/dist/casino-tournament-prizes/p-0b1b4c9e.entry.js +1 -0
  4. package/dist/cjs/casino-tournament-prizes.cjs.entry.js +6 -1
  5. package/dist/cjs/casino-tournament-prizes.cjs.js +2 -2
  6. package/dist/cjs/{index-0c084c74.js → index-392c79a4.js} +70 -207
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +2 -2
  9. package/dist/collection/components/casino-tournament-prizes/casino-tournament-prizes.js +5 -18
  10. package/dist/esm/casino-tournament-prizes.entry.js +6 -1
  11. package/dist/esm/casino-tournament-prizes.js +3 -3
  12. package/dist/esm/{index-30effb08.js → index-37898de2.js} +70 -207
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/casino-tournament-prizes/p-dea4ad64.entry.js +0 -1
  19. package/dist/casino-tournament-prizes/p-e83ebab2.js +0 -2
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.d.ts +0 -2
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.dev.d.ts +0 -2
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/tools/plugins/index.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1 +1 @@
1
- import{p as e,b as n}from"./p-e83ebab2.js";export{s as setNonce}from"./p-e83ebab2.js";import{g as t}from"./p-e1255160.js";(()=>{const n=import.meta.url,t={};return""!==n&&(t.resourcesUrl=new URL(".",n).href),e(t)})().then((async e=>(await t(),n([["p-dea4ad64",[[1,"casino-tournament-prizes",{language:[1],useGroup:[4,"use-group"],useEvent:[4,"use-event"],endpoint:[1],session:[1],rawPrizes:[1,"raw-prizes"],tournamentId:[1,"tournament-id"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],limitStylingAppends:[32],prizes:[32],prizeGroups:[32],initialLoad:[32]},[[10,"getTournamentInfoCompleted","infoCompletedHandler"]]]]]],e))));
1
+ import{p as e,b as n}from"./p-0847d240.js";export{s as setNonce}from"./p-0847d240.js";import{g as t}from"./p-e1255160.js";(()=>{const n=import.meta.url,t={};return""!==n&&(t.resourcesUrl=new URL(".",n).href),e(t)})().then((async e=>(await t(),n([["p-0b1b4c9e",[[1,"casino-tournament-prizes",{language:[1],useGroup:[4,"use-group"],useEvent:[4,"use-event"],endpoint:[1],session:[1],rawPrizes:[1,"raw-prizes"],tournamentId:[1,"tournament-id"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],limitStylingAppends:[32],prizes:[32],prizeGroups:[32],initialLoad:[32]},[[10,"getTournamentInfoCompleted","infoCompletedHandler"]]]]]],e))));
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>(0,console.error)(e,t),s=new Map,r=new Map,i="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],d=[],w=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&a.l?$(v):a.raf(v))},y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){o(e)}e.length=0},v=()=>{y(m),y(d),(p=m.length>0)&&a.raf(v)},$=e=>f().then(e),b=w(d,!0),g={},S=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>x,unwrapErr:()=>P});var O=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return k(e.value);throw"should never get here"}var M,C,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!S(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?T(null,l):l),r=s)};if(c(n),t){t.key&&(o=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=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},T=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},L=e=>n(e).$hostElement$,N=new WeakMap,U=e=>"sc-"+e.$,W=(e,t,n,l,o,s)=>{if(n!==l){let r=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,o=F(n),s=F(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else{const i=S(l);if((r||i&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||o)&&!i&&e.setAttribute(t,l=!0===l?"":l)}}},D=/\s/,F=e=>e?e.split(D):[],H=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||g,s=t.u||g;for(const e of q(Object.keys(o)))e in s||W(l,e,o[e],void 0,n,t.l);for(const e of q(Object.keys(s)))W(l,e,o[e],s[e],n,t.l)};function q(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var z=!1,G=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=u.createTextNode(l.i);else{if(z||(z="svg"===l.m),o=l.v=u.createElementNS(z?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),z&&"foreignObject"===l.m&&(z=!1),H(null,l,z),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=G(e,l,r),s&&o.appendChild(s);"svg"===l.m?z=!1:"foreignObject"===o.tagName&&(z=!0)}return o["s-hn"]=C,o},V=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===C&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=G(null,n,o),r&&(l[o].v=r,J(i,r,t)))},_=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;e&&e.remove()}}},B=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),I=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(H(e,t,z="svg"===r||"foreignObject"!==r&&z),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],m=l.length-1,d=l[0],w=l[m];for(;i<=f&&c<=m;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==d)d=l[++c];else if(null==w)w=l[--m];else if(B(h,d,o))I(h,d,o),h=t[++i],d=l[++c];else if(B(p,w,o))I(p,w,o),p=t[--f],w=l[--m];else if(B(h,w,o))I(h,w,o),J(e,h.v,p.v.nextSibling),h=t[++i],w=l[--m];else if(B(p,d,o))I(p,d,o),J(e,p.v,h.v),p=t[--f],d=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===d.p){u=a;break}u>=0?(r=t[u],r.m!==d.m?s=G(t&&t[c],n,u):(I(r,d,o),t[u]=void 0,s=r.v),d=l[++c]):(s=G(t&&t[c],n,c),d=l[++c]),s&&J(h.v.parentNode,s,h.v)}i>f?V(e,null==l[m+1]?null:l[m+1].v,n,l,c,m):c>m&&_(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),V(l,null,t,s,0,s.length-1)):null!==o&&_(o,0,o.length-1),z&&"svg"===r&&(z=!1)):e.i!==i&&(l.data=i)},J=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),K=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Q=(e,t)=>{if(e.l|=16,!(4&e.l))return K(e,e.j),b((()=>X(e,t)));e.l|=512},X=(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 l;return t&&(e.l|=256,e.O&&(e.O.map((([e,t])=>oe(n,e,t))),e.O=void 0),l=oe(n,"componentWillLoad")),Y(l,(()=>ee(e,n,t)))},Y=(e,t)=>Z(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),Z=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ee=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=U(t),o=r.get(l);if(e=11===e.nodeType?e:u,o)if("string"==typeof o){let s,r=N.get(e=e.head||e);if(r||N.set(e,r=new Set),!r.has(l)){{s=u.createElement("style"),s.innerHTML=o;const t=null!=(n=a.M)?n:j(u);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=i),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);te(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ne(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},te=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.C||T(null,null),r=(e=>e&&e.m===A)(t)?t:R(null,null,t);if(C=l.tagName,n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.C=r,r.v=s.v=l.shadowRoot||l,M=l["s-sc"],I(s,r,n)})(e,t,l)}catch(t){o(t,e.$hostElement$)}return null},ne=e=>{const t=e.$hostElement$,n=e.j;oe(e.t,"componentDidRender"),64&e.l||(e.l|=64,se(t),e.P(t),n||le()),e.S&&(e.S(),e.S=void 0),512&e.l&&$((()=>Q(e,!1))),e.l&=-517},le=()=>{se(u.documentElement),$((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"casino-tournament-prizes"}});return e.dispatchEvent(t),t})(c)))},oe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){o(e)}},se=e=>e.classList.add("hydrated"),re=(e,t,l)=>{var o,s;const r=e.prototype;if(t.R){const i=Object.entries(null!=(o=t.R)?o:{});if(i.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).T.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=s.T.get(t),i=s.l,c=s.t;l=((e,t)=>null==e||S(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.R[t][0]),8&i&&void 0!==r||l===r||Number.isNaN(r)&&Number.isNaN(l)||(s.T.set(t,l),c&&2==(18&i)&&Q(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){a.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.A)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.A)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return l.set(n,e),n}))]))}}return e},ie=(e,l={})=>{var f;const p=[],m=l.exclude||[],d=c.customElements,w=u.head,y=w.querySelector("meta[charset]"),v=u.createElement("style"),$=[];let b,g=!0;Object.assign(a,l),a.o=new URL(l.resourcesUrl||"./",u.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{const i={l:l[0],$:l[1],R:l[2],L:l[3]};4&i.l&&(S=!0),i.R=l[2],i.L=l[3];const c=i.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,T:new Map};l.N=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,i),1&i.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${i.$}! 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,ce(this,e,i.L)),b&&(clearTimeout(b),b=null),g?$.push(this):a.jmp((()=>(e=>{if(!(1&a.l)){const t=n(e),l=t.k,i=()=>{};if(1&t.l)ce(e,t,l.L),(null==t?void 0:t.t)||(null==t?void 0:t.N)&&t.N.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){K(t,t.j=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.U){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.U;if(!n)return;const l=s.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),o)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.$}#${t.W}" was not found`);l.isProxied||(re(l,n,2),l.isProxied=!0);const r=()=>{};t.l|=8;try{new l(t)}catch(e){o(e)}t.l&=-9,r()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=U(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);h&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const i=t.j,c=()=>Q(t,!0);i&&i["s-rc"]?i["s-rc"].push(c):c()})(e,t,l)}i()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.l)){const e=n(this);e.D&&(e.D.map((e=>e())),e.D=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}))}})()))}componentOnReady(){return n(this).N}};i.U=e[0],m.includes(c)||d.get(c)||(p.push(c),d.define(c,re(u,i,1)))}))})),p.length>0&&(S&&(v.textContent+=i),v.textContent+=p.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(f=a.M)?f:j(u);null!=e&&v.setAttribute("nonce",e),w.insertBefore(v,y?y.nextSibling:w.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):a.jmp((()=>b=setTimeout(le,30)))},ce=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=ae(e,n),r=ue(t,o),i=fe(n);a.ael(s,l,r,i),(t.D=t.D||[]).push((()=>a.rel(s,l,r,i)))}))},ue=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.O=e.O||[]).push([t,n])}catch(e){o(e)}},ae=(e,t)=>8&t?c:e,fe=e=>({passive:!!(1&e),capture:!!(2&e)}),he=e=>a.M=e;export{ie as b,L as g,R as h,f as p,l as r,he as s}
@@ -0,0 +1 @@
1
+ import{r as e,h as i,g as s}from"./p-0847d240.js";const t={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"place"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"Sıra"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"posición"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},a=(e,i)=>{var s,a;return(null===(s=t[i])||void 0===s?void 0:s[e])||(null===(a=t.en)||void 0===a?void 0:a[e])},r=class{constructor(i){e(this,i),this.language=void 0,this.useGroup=!1,this.useEvent=!1,this.endpoint=void 0,this.session=void 0,this.rawPrizes=void 0,this.tournamentId=void 0,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.prizes=[],this.prizeGroups=[],this.initialLoad=!1}infoCompletedHandler(e){e.detail&&(this.prizes=e.detail.prizes,this.formatGroup(),this.initialLoad=!0)}formatGroup(){this.prizes.forEach((e=>{let i=[];if(e.count>0)for(let s=0;s<e.count;s++)i.push({name:e.name,rank:e.rank+s});this.prizeGroups.push(i)}))}getTournamentInfo(){let e=new URL(this.endpoint+`/v1/tournaments/${this.tournamentId}`),i=new Headers;e.searchParams.append("expand","games"),e.searchParams.append("language",this.language),e.searchParams.append("fields","playerEnrolled,games(id,name,thumbnail)"),this.session&&i.append("X-SessionId",this.session),fetch(e.href,{method:"GET",headers:i}).then((e=>e.json())).then((e=>{this.prizes=e.item.prizes,this.useGroup&&this.formatGroup(),this.initialLoad=!0}))}componentWillLoad(){!this.useEvent&&this.rawPrizes&&(this.prizes=JSON.parse(this.rawPrizes),this.useGroup&&this.formatGroup(),this.initialLoad=!0),!this.useEvent&&this.endpoint&&this.tournamentId&&this.getTournamentInfo()}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const e=new CSSStyleSheet;e.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}setClientStylingURL(){let e=new URL(this.clientStylingUrl);fetch(e.href).then((e=>e.text())).then((e=>{const i=new CSSStyleSheet;i.replace(e),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,i]}))}render(){return i("div",{key:"6f6d6a40e0374ad146b0eda343d963679fbd11f0",class:"TournamentPrizes "+(this.useGroup?"":"PrizeView")},this.initialLoad&&!this.useGroup&&i("div",{key:"28edb876913c67479b4fb5c885244cea36a073ea",class:"PrizeTitle"},i("svg",{key:"6cd86bf5db8eacee01a9577458c136cbe78684bc",class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"27.454",viewBox:"0 0 30 27.454"},i("path",{key:"744e27a1ee73240f5876abd14b2e912b8dbc979e",d:"M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z",transform:"translate(-5.999 -9.76)"})),i("div",{key:"ddd4dd055f8441b1b0355e95e88b43049a108b2c",class:"Title"},a("prizes",this.language))),this.initialLoad&&this.useGroup&&i("div",{key:"83b846fe441de36598d01742fd6730de4c5920bf",class:"GroupPrizeTitle"},i("svg",{key:"e6b379df8cc991173b588e8dd9408b0c6716de7a",class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"16",viewBox:"0 0 19 16",fill:"none"},i("g",{key:"0332923cca76d7ccbe779cb367abb4e8952842b5","clip-path":"url(#clip0_2459_42455)"},i("path",{key:"607a3379976189ca332117ec968c34046b3dcb46",d:"M14.7476 2.84132V0.664551H4.03327V2.84132H0.818359V5.01946C0.818359 6.8229 2.2568 8.28496 4.0326 8.28496C4.36862 8.28496 4.69326 8.23192 4.99647 8.13399C5.76958 9.25604 6.94898 10.07 8.31782 10.3516V13.7266H7.24685C6.06276 13.7266 5.1029 14.701 5.1029 15.9026H13.6753C13.6753 14.7004 12.7168 13.7266 11.5327 13.7266H10.4611V10.3516C11.8293 10.07 13.0087 9.25672 13.7818 8.13399C14.0863 8.23124 14.4116 8.28496 14.7463 8.28496C16.5214 8.28496 17.9612 6.8229 17.9612 5.01946V2.84132H14.7476ZM4.03327 6.99222C2.9623 6.99222 2.0908 6.10751 2.0908 5.01946V3.93005H4.03327V5.01946C4.03327 5.70221 4.15844 6.3564 4.38401 6.9589C4.27089 6.9793 4.15175 6.99086 4.03327 6.99086V6.99222ZM11.0207 5.88989L12.0414 9.06223L9.38945 7.09355L6.7368 9.06223L7.75757 5.88989L5.09688 3.93481L8.3814 3.94229L9.38945 0.767235L10.3968 3.94229L13.6814 3.93481L11.0207 5.88989ZM16.6901 5.01946C16.6901 6.10683 15.8193 6.99222 14.7483 6.99222C14.6285 6.99222 14.512 6.9793 14.3982 6.95958C14.6245 6.3564 14.7483 5.70357 14.7483 5.02014V3.93073H16.6901V5.02014V5.01946Z",fill:"white"})),i("defs",{key:"66f11be400aac05c7f334a48b82cfb1aabdead8c"},i("clipPath",{key:"65e879523cff89288af691d5f705ef55996f3107",id:"clip0_2459_42455"},i("rect",{key:"382441f3ade90fa866096c5f25dfc3cb49d82132",width:"18.2857",height:"16",fill:"white",transform:"translate(0.5)"})))),i("div",{key:"8610b8361faa0d2316415e39a21162dfcdcaeccf",class:"Title"},a("prizes",this.language))),i("div",{key:"76d9452769046d3c9cd4d0dd7a65396c5083ebc6",class:"PrizeGroups"},1==this.useGroup&&this.prizeGroups&&this.prizeGroups.map(((e,s)=>i("div",{class:`PrizeGroup Group${s+1}`},e&&e.map(((e,s)=>i("div",{class:"PrizeRow"},i("div",{class:`PrizeItem Rank${s+1}`},i("span",{class:"PrizeRank"},e.rank," ",a("place",this.language)," "),i("span",{class:"PrizeName"},e.name)))))))),0==this.useGroup&&this.prizes&&this.prizes.map(((e,s)=>i("div",{class:`Prize Prize${s}`},i("p",{class:"PrizeText"},i("span",{class:"PrizeRank"},e.count>1?`${e.rank}~${e.rank+e.count-1}`:e.rank)," ",a("place",this.language),": ",e.name)))),!this.prizes&&i("p",{key:"2df9ce5a0f56928a550f0ebf3de962835df0d6f2"},a("noprizes",this.language))))}get host(){return s(this)}};r.style=":host{display:block}.PrizeGroups{color:var(--emw--color-white, #FFFFFF);display:flex;gap:20px;font-size:14px}.PrizeGroup{flex:1;background:var(--emw--tournament-color-bg, #153a5c)}.PrizeTitle{text-align:center;width:100%}.GroupPrizeTitle{width:100%;display:flex;padding:8px 6px;gap:8px;justify-content:center}.PrizeView{display:flex;gap:10px;font-size:12px}.PrizeView .PrizeTitle{display:inline-block;width:auto}.PrizeView .PrizeGroups{display:inline-flex}.Title{text-align:center;color:var(--emw--color-white, #FFFFFF)}.PrizeIcon path{fill:var(--emw--color-white, #FFFFFF)}.PrizeRow{padding:8px;border-bottom:1px solid rgba(206, 210, 214, 0.15)}.PrizeItem{display:flex;justify-content:space-between;padding:6px;font-size:12px;border-radius:2px}.Group1 .Rank1{background:#7e6c22}.Group1 .Rank2{background:#666}.Group1 .Rank3{background:#6a5446}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}";export{r as casino_tournament_prizes}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0c084c74.js');
5
+ const index = require('./index-392c79a4.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const TRANSLATIONS = {
@@ -69,8 +69,13 @@ const CasinoTournamentPrizesStyle0 = casinoTournamentPrizesCss;
69
69
  const CasinoTournamentPrizes = class {
70
70
  constructor(hostRef) {
71
71
  index.registerInstance(this, hostRef);
72
+ this.language = undefined;
72
73
  this.useGroup = false;
73
74
  this.useEvent = false;
75
+ this.endpoint = undefined;
76
+ this.session = undefined;
77
+ this.rawPrizes = undefined;
78
+ this.tournamentId = undefined;
74
79
  this.clientStyling = '';
75
80
  this.clientStylingUrl = '';
76
81
  this.limitStylingAppends = false;
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0c084c74.js');
5
+ const index = require('./index-392c79a4.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('casino-tournament-prizes.cjs.js', document.baseURI).href));
@@ -21,27 +21,19 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'casino-tournament-prizes';
24
- const BUILD = /* casino-tournament-prizes */ { 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: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
24
+ const BUILD = /* casino-tournament-prizes */ { 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: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
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
40
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
41
35
  var getHostRef = (ref) => hostRefs.get(ref);
42
- var registerInstance = (lazyInstance, hostRef) => {
43
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
44
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
45
37
  var registerHost = (hostElement, cmpMeta) => {
46
38
  const hostRef = {
47
39
  $flags$: 0,
@@ -54,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
54
46
  hostElement["s-p"] = [];
55
47
  hostElement["s-rc"] = [];
56
48
  }
57
- const ref = hostRefs.set(hostElement, hostRef);
58
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
59
50
  };
60
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
61
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -92,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
92
83
  /* webpackExclude: /\.system\.entry\.js$/ */
93
84
  /* webpackMode: "lazy" */
94
85
  `./${bundleId}.entry.js${""}`
95
- )); }).then(
96
- (importedModule) => {
97
- {
98
- cmpModules.set(bundleId, importedModule);
99
- }
100
- return importedModule[exportName];
101
- },
102
- (e) => {
103
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
104
89
  }
105
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
106
92
  };
107
93
 
108
94
  // src/client/client-style.ts
109
95
  var styles = /* @__PURE__ */ new Map();
110
- var HYDRATED_STYLE_ID = "sty-id";
111
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
112
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
113
98
  var win = typeof window !== "undefined" ? window : {};
@@ -181,6 +166,14 @@ var flush = () => {
181
166
  };
182
167
  var nextTick = (cb) => promiseResolve().then(cb);
183
168
  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;
184
177
  var isComplexType = (o) => {
185
178
  o = typeof o;
186
179
  return o === "object" || o === "function";
@@ -366,40 +359,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
366
359
  }
367
360
  if (!appliedStyles.has(scopeId2)) {
368
361
  {
369
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
362
+ styleElm = doc.createElement("style");
370
363
  styleElm.innerHTML = style;
371
364
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
372
365
  if (nonce != null) {
373
366
  styleElm.setAttribute("nonce", nonce);
374
367
  }
375
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
376
- if (styleContainerNode.nodeName === "HEAD") {
377
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
378
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
379
- styleContainerNode.insertBefore(
380
- styleElm,
381
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
382
- );
383
- } else if ("host" in styleContainerNode) {
384
- if (supportsConstructableStylesheets) {
385
- const stylesheet = new CSSStyleSheet();
386
- stylesheet.replaceSync(style);
387
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
388
- } else {
389
- const existingStyleContainer = styleContainerNode.querySelector("style");
390
- if (existingStyleContainer) {
391
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
392
- } else {
393
- styleContainerNode.prepend(styleElm);
394
- }
395
- }
396
- } else {
397
- styleContainerNode.append(styleElm);
398
- }
399
- }
400
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
401
- styleContainerNode.insertBefore(styleElm, null);
402
- }
368
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
403
369
  }
404
370
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
405
371
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -422,25 +388,23 @@ var attachStyles = (hostRef) => {
422
388
  const scopeId2 = addStyle(
423
389
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
424
390
  cmpMeta);
425
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
391
+ if (flags & 10 /* needsScopedEncapsulation */) {
426
392
  elm["s-sc"] = scopeId2;
427
393
  elm.classList.add(scopeId2 + "-h");
428
394
  }
429
395
  endAttachStyles();
430
396
  };
431
397
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
432
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
398
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
433
399
  if (oldValue !== newValue) {
434
400
  let isProp = isMemberInElement(elm, memberName);
435
401
  memberName.toLowerCase();
436
402
  if (memberName === "class") {
437
403
  const classList = elm.classList;
438
404
  const oldClasses = parseClassList(oldValue);
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
- }
405
+ const newClasses = parseClassList(newValue);
406
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
407
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
444
408
  } else if (memberName === "key") ; else {
445
409
  const isComplex = isComplexType(newValue);
446
410
  if ((isProp || isComplex && newValue !== null) && !isSvg) {
@@ -450,13 +414,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
450
414
  if (memberName === "list") {
451
415
  isProp = false;
452
416
  } else if (oldValue == null || elm[memberName] != n) {
453
- if (typeof elm.__lookupSetter__(memberName) === "function") {
454
- elm[memberName] = n;
455
- } else {
456
- elm.setAttribute(memberName, n);
457
- }
417
+ elm[memberName] = n;
458
418
  }
459
- } else if (elm[memberName] !== newValue) {
419
+ } else {
460
420
  elm[memberName] = newValue;
461
421
  }
462
422
  } catch (e) {
@@ -478,42 +438,22 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
478
438
  }
479
439
  };
480
440
  var parseClassListRegex = /\s/;
481
- var parseClassList = (value) => {
482
- if (typeof value === "object" && value && "baseVal" in value) {
483
- value = value.baseVal;
484
- }
485
- if (!value || typeof value !== "string") {
486
- return [];
487
- }
488
- return value.split(parseClassListRegex);
489
- };
441
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
490
442
 
491
443
  // src/runtime/vdom/update-element.ts
492
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
444
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
493
445
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
494
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
495
- const newVnodeAttrs = newVnode.$attrs$ || {};
446
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
447
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
496
448
  {
497
449
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
498
450
  if (!(memberName in newVnodeAttrs)) {
499
- setAccessor(
500
- elm,
501
- memberName,
502
- oldVnodeAttrs[memberName],
503
- void 0,
504
- isSvgMode2,
505
- newVnode.$flags$);
451
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
506
452
  }
507
453
  }
508
454
  }
509
455
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
510
- setAccessor(
511
- elm,
512
- memberName,
513
- oldVnodeAttrs[memberName],
514
- newVnodeAttrs[memberName],
515
- isSvgMode2,
516
- newVnode.$flags$);
456
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
517
457
  }
518
458
  };
519
459
  function sortedAttrNames(attrNames) {
@@ -525,10 +465,13 @@ function sortedAttrNames(attrNames) {
525
465
  attrNames
526
466
  );
527
467
  }
468
+
469
+ // src/runtime/vdom/vdom-render.ts
470
+ var scopeId;
528
471
  var hostTagName;
529
472
  var useNativeShadowDom = false;
530
473
  var isSvgMode = false;
531
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
474
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
532
475
  const newVNode2 = newParentVNode.$children$[childIndex];
533
476
  let i2 = 0;
534
477
  let elm;
@@ -549,6 +492,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
549
492
  {
550
493
  updateElement(null, newVNode2, isSvgMode);
551
494
  }
495
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
496
+ elm.classList.add(elm["s-si"] = scopeId);
497
+ }
552
498
  if (newVNode2.$children$) {
553
499
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
554
500
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -684,9 +630,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
684
630
  if (!isInitialRender) {
685
631
  return leftVNode.$key$ === rightVNode.$key$;
686
632
  }
687
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
688
- leftVNode.$key$ = rightVNode.$key$;
689
- }
690
633
  return true;
691
634
  }
692
635
  return false;
@@ -713,10 +656,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
713
656
  elm.textContent = "";
714
657
  }
715
658
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
716
- } else if (
717
- // don't do this on initial render as it can cause non-hydrated content to be removed
718
- !isInitialRender && BUILD.updatable && oldChildren !== null
719
- ) {
659
+ } else if (oldChildren !== null) {
720
660
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
721
661
  }
722
662
  if (isSvgMode && tag === "svg") {
@@ -727,9 +667,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
727
667
  }
728
668
  };
729
669
  var insertBefore = (parent, newNode, reference) => {
730
- {
731
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
732
- }
670
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
671
+ return inserted;
733
672
  };
734
673
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
735
674
  const hostElm = hostRef.$hostElement$;
@@ -748,21 +687,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
748
687
  rootVnode.$flags$ |= 4 /* isHost */;
749
688
  hostRef.$vnode$ = rootVnode;
750
689
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
751
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
690
+ {
691
+ scopeId = hostElm["s-sc"];
692
+ }
693
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
752
694
  patch(oldVNode, rootVnode, isInitialLoad);
753
695
  };
754
696
 
755
697
  // src/runtime/update-component.ts
756
698
  var attachToAncestor = (hostRef, ancestorComponent) => {
757
699
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
758
- const index = ancestorComponent["s-p"].push(
759
- new Promise(
760
- (r) => hostRef.$onRenderResolve$ = () => {
761
- ancestorComponent["s-p"].splice(index - 1, 1);
762
- r();
763
- }
764
- )
765
- );
700
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
766
701
  }
767
702
  };
768
703
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -791,12 +726,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
791
726
  {
792
727
  hostRef.$flags$ |= 256 /* isListenReady */;
793
728
  if (hostRef.$queuedListeners$) {
794
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
729
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
795
730
  hostRef.$queuedListeners$ = void 0;
796
731
  }
797
732
  }
798
733
  {
799
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
734
+ maybePromise = safeCall(instance, "componentWillLoad");
800
735
  }
801
736
  }
802
737
  endSchedule();
@@ -865,7 +800,7 @@ var postUpdateComponent = (hostRef) => {
865
800
  const instance = hostRef.$lazyInstance$ ;
866
801
  const ancestorComponent = hostRef.$ancestorComponent$;
867
802
  {
868
- safeCall(instance, "componentDidRender", void 0, elm);
803
+ safeCall(instance, "componentDidRender");
869
804
  }
870
805
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
871
806
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -894,14 +829,17 @@ var postUpdateComponent = (hostRef) => {
894
829
  }
895
830
  };
896
831
  var appDidLoad = (who) => {
832
+ {
833
+ addHydratedFlag(doc.documentElement);
834
+ }
897
835
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
898
836
  };
899
- var safeCall = (instance, method, arg, elm) => {
837
+ var safeCall = (instance, method, arg) => {
900
838
  if (instance && instance[method]) {
901
839
  try {
902
840
  return instance[method](arg);
903
841
  } catch (e) {
904
- consoleError(e, elm);
842
+ consoleError(e);
905
843
  }
906
844
  }
907
845
  return void 0;
@@ -944,68 +882,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
944
882
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
945
883
  members.map(([memberName, [memberFlags]]) => {
946
884
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
947
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
948
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
949
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
950
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
951
- Object.defineProperty(prototype, memberName, {
952
- get() {
953
- {
954
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
955
- return getValue(this, memberName);
956
- }
957
- const ref = getHostRef(this);
958
- const instance = ref ? ref.$lazyInstance$ : prototype;
959
- if (!instance) return;
960
- return instance[memberName];
961
- }
962
- },
963
- configurable: true,
964
- enumerable: true
965
- });
966
- }
967
885
  Object.defineProperty(prototype, memberName, {
886
+ get() {
887
+ return getValue(this, memberName);
888
+ },
968
889
  set(newValue) {
969
- const ref = getHostRef(this);
970
- if (origSetter) {
971
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
972
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
973
- newValue = ref.$instanceValues$.get(memberName);
974
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
975
- ref.$instanceValues$.set(memberName, currentValue);
976
- }
977
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
978
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
979
- setValue(this, memberName, newValue, cmpMeta);
980
- return;
981
- }
982
- {
983
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
984
- setValue(this, memberName, newValue, cmpMeta);
985
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
986
- ref.$onReadyPromise$.then(() => {
987
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
988
- ref.$lazyInstance$[memberName] = newValue;
989
- }
990
- });
991
- }
992
- return;
993
- }
994
- const setterSetVal = () => {
995
- const currentValue = ref.$lazyInstance$[memberName];
996
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
997
- ref.$instanceValues$.set(memberName, currentValue);
998
- }
999
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1000
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1001
- };
1002
- if (ref.$lazyInstance$) {
1003
- setterSetVal();
1004
- } else {
1005
- ref.$onReadyPromise$.then(() => setterSetVal());
1006
- }
1007
- }
1008
- }
890
+ setValue(this, memberName, newValue, cmpMeta);
891
+ },
892
+ configurable: true,
893
+ enumerable: true
1009
894
  });
1010
895
  }
1011
896
  });
@@ -1015,11 +900,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1015
900
  plt.jmp(() => {
1016
901
  var _a2;
1017
902
  const propName = attrNameToPropName.get(attrName);
1018
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
903
+ if (this.hasOwnProperty(propName)) {
1019
904
  newValue = this[propName];
1020
905
  delete this[propName];
1021
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1022
- this[propName] == newValue) {
906
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1023
907
  return;
1024
908
  } else if (propName == null) {
1025
909
  const hostRef = getHostRef(this);
@@ -1035,11 +919,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1035
919
  }
1036
920
  return;
1037
921
  }
1038
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1039
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1040
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1041
- this[propName] = newValue;
1042
- }
922
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1043
923
  });
1044
924
  };
1045
925
  Cstr.observedAttributes = Array.from(
@@ -1064,7 +944,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1064
944
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1065
945
  const bundleId = cmpMeta.$lazyBundleId$;
1066
946
  if (bundleId) {
1067
- const CstrImport = loadModule(cmpMeta, hostRef);
947
+ const CstrImport = loadModule(cmpMeta);
1068
948
  if (CstrImport && "then" in CstrImport) {
1069
949
  const endLoad = uniqueTime();
1070
950
  Cstr = await CstrImport;
@@ -1086,7 +966,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1086
966
  try {
1087
967
  new Cstr(hostRef);
1088
968
  } catch (e) {
1089
- consoleError(e, elm);
969
+ consoleError(e);
1090
970
  }
1091
971
  {
1092
972
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1118,7 +998,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1118
998
  schedule();
1119
999
  }
1120
1000
  };
1121
- var fireConnectedCallback = (instance, elm) => {
1001
+ var fireConnectedCallback = (instance) => {
1122
1002
  };
1123
1003
 
1124
1004
  // src/runtime/connected-callback.ts
@@ -1159,7 +1039,7 @@ var connectedCallback = (elm) => {
1159
1039
  endConnected();
1160
1040
  }
1161
1041
  };
1162
- var disconnectInstance = (instance, elm) => {
1042
+ var disconnectInstance = (instance) => {
1163
1043
  };
1164
1044
  var disconnectedCallback = async (elm) => {
1165
1045
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1174,12 +1054,6 @@ var disconnectedCallback = async (elm) => {
1174
1054
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1175
1055
  }
1176
1056
  }
1177
- if (rootAppliedStyles.has(elm)) {
1178
- rootAppliedStyles.delete(elm);
1179
- }
1180
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1181
- rootAppliedStyles.delete(elm.shadowRoot);
1182
- }
1183
1057
  };
1184
1058
 
1185
1059
  // src/runtime/bootstrap-lazy.ts
@@ -1257,17 +1131,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1257
1131
  }
1258
1132
  disconnectedCallback() {
1259
1133
  plt.jmp(() => disconnectedCallback(this));
1260
- plt.raf(() => {
1261
- var _a3;
1262
- const hostRef = getHostRef(this);
1263
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1264
- if (i2 > -1) {
1265
- deferredConnectedCallbacks.splice(i2, 1);
1266
- }
1267
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1268
- delete hostRef.$vnode$.$elm$;
1269
- }
1270
- });
1271
1134
  }
1272
1135
  componentOnReady() {
1273
1136
  return getHostRef(this).$onReadyPromise$;
@@ -1331,7 +1194,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1331
1194
  }
1332
1195
  }
1333
1196
  } catch (e) {
1334
- consoleError(e, hostRef.$hostElement$);
1197
+ consoleError(e);
1335
1198
  }
1336
1199
  };
1337
1200
  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-0c084c74.js');
5
+ const index = require('./index-392c79a4.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
8
- "typescriptVersion": "5.5.4"
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []