@everymatrix/tournament-leaderboard-static 0.0.1 → 0.0.6

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.
@@ -6658,7 +6658,7 @@ function ul(e, t) {
6658
6658
  var Qs = tn(v);
6659
6659
  return n(), Qs;
6660
6660
  }
6661
- Zo(
6661
+ customElements.define("tournament-leaderboard-static", Zo(
6662
6662
  ul,
6663
6663
  {
6664
6664
  tournamentid: {},
@@ -6669,8 +6669,8 @@ Zo(
6669
6669
  },
6670
6670
  [],
6671
6671
  [],
6672
- !0
6673
- );
6672
+ !1
6673
+ ));
6674
6674
  export {
6675
6675
  ul as T
6676
6676
  };
@@ -119,4 +119,4 @@ PERFORMANCE OF THIS SOFTWARE.
119
119
  #000 2px,
120
120
  transparent 2px,
121
121
  transparent 4px
122
- );background-size:100% 2px;background-position:bottom;background-repeat:no-repeat;}}}`};function Ho(t,e){var En;hs(e,!0),$a(t,Qu);const r=()=>oh(_l,"$_",i),[i,n]=ah(),s=Ze(e,"tournamentid"),a=Ze(e,"endpoint"),o=Ze(e,"session"),h=Ze(e,"language"),l=Ze(e,"platformProp",7,null);$l({withLocale:"en",translations:{}}),Object.keys(Jn).forEach(N=>{tu(N,Jn[N])});let u=Et(!1),p=Et(te([])),c=Et(te([])),E=Et(te([]));const d=Iu()?(En=l())!=null?En:"dk":Eu(window.navigator.userAgent),I=()=>hi(this,null,function*(){_(u,!0);const N=new URL(`${a()}/v1/tournaments/${s()}`),At=new Headers;o()&&At.append("X-SessionId",o());const oe={method:"GET",headers:At};N.searchParams.append("language",h()),N.searchParams.append("expand","games"),N.searchParams.append("platform",d),fetch(N,oe).then(mt=>mt.json()).then(mt=>{var Dt,Gt,gt,Ft;_(p,(Dt=mt==null?void 0:mt.item)==null?void 0:Dt.prizes,!0),_(E,((Gt=R(p))==null?void 0:Gt.length)>3?(gt=R(p))==null?void 0:gt.slice(3,R(p).length-1):R(p),!0),_(c,(Ft=R(p))==null?void 0:Ft.slice(0,3),!0)}).catch(mt=>console.log(mt)).finally(()=>_(u,!1))});Xa(()=>{o()&&s()&&a()&&I()});var b={get tournamentid(){return s()},set tournamentid(N){s(N),Ue()},get endpoint(){return a()},set endpoint(N){a(N),Ue()},get session(){return o()},set session(N){o(N),Ue()},get language(){return h()},set language(N){h(N),Ue()},get platformProp(){return l()},set platformProp(N=null){l(N),Ue()}},y=Ru(),U=P(y),w=P(U),J=V(w,2),B=P(J),M=P(B,!0);q(B);var bt=V(B,2),vt=P(bt),K=P(vt,!0);q(vt);var De=V(vt,2),$r=P(De,!0);q(De);var an=V(De,2),yo=P(an,!0);q(an),q(bt),q(J);var hn=V(J,2),ln=P(hn),ti=P(ln),un=P(ti);ui(un,()=>vu);var ei=V(un,2),Uo=P(ei,!0);q(ei);var fn=V(ei,2),jo=P(fn,!0);q(fn),q(ti);var ri=V(ti,2),ii=P(ri),No=P(ii,!0);q(ii);var ni=V(ii,2),To=P(ni,!0);q(ni);var qo=V(ni,2);ui(qo,()=>bu),q(ri);var cn=V(ri,2),pn=P(cn);ui(pn,()=>mu);var si=V(pn,2),wo=P(si,!0);q(si);var dn=V(si,2),Po=P(dn,!0);q(dn),q(cn),q(ln),q(hn),q(U);var Oo=V(U,2);{var Go=N=>{var At=Cu(),oe=P(At),mt=P(oe,!0);q(oe);var Dt=V(oe,2);Za(Dt,21,()=>R(E),Da,(Gt,gt)=>{var Ft=gu(),Me=P(Ft),Ir=V(Me,2);q(Ft),xr(()=>{var In,Sn;st(Me,`${(In=R(gt).rank)!=null?In:""}${R(gt).count>1?`-${R(gt).rank+R(gt).count-1}`:""} `),st(Ir,` ${(Sn=R(gt).name)!=null?Sn:""}`)}),kr(Gt,Ft)}),q(Dt),q(At),xr(Gt=>st(mt,Gt),[()=>r()("allPrizes")]),kr(N,At)};Aa(Oo,N=>{R(E)&&N(Go)})}q(y),xr((N,At,oe,mt)=>{var Dt,Gt,gt,Ft,Me,Ir;rh(w,"src",Su),st(M,N),st(K,((Dt=R(c)[0])==null?void 0:Dt.name)||"-"),st($r,((Gt=R(c)[0])==null?void 0:Gt.name)||"-"),st(yo,((gt=R(c)[0])==null?void 0:gt.name)||"-"),st(Uo,At),st(jo,((Ft=R(c)[1])==null?void 0:Ft.name)||"-"),st(No,oe),st(To,((Me=R(c)[0])==null?void 0:Me.name)||"-"),st(wo,mt),st(Po,((Ir=R(c)[2])==null?void 0:Ir.name)||"-")},[()=>r()("totalPrizes"),()=>r()("rank2"),()=>r()("rank1"),()=>r()("rank3")]),kr(t,y);var Fo=ls(b);return n(),Fo}fh(Ho,{tournamentid:{},endpoint:{},session:{},language:{},platformProp:{}},[],[],!0);exports.default=Ho;
122
+ );background-size:100% 2px;background-position:bottom;background-repeat:no-repeat;}}}`};function Ho(t,e){var En;hs(e,!0),$a(t,Qu);const r=()=>oh(_l,"$_",i),[i,n]=ah(),s=Ze(e,"tournamentid"),a=Ze(e,"endpoint"),o=Ze(e,"session"),h=Ze(e,"language"),l=Ze(e,"platformProp",7,null);$l({withLocale:"en",translations:{}}),Object.keys(Jn).forEach(N=>{tu(N,Jn[N])});let u=Et(!1),p=Et(te([])),c=Et(te([])),E=Et(te([]));const d=Iu()?(En=l())!=null?En:"dk":Eu(window.navigator.userAgent),I=()=>hi(this,null,function*(){_(u,!0);const N=new URL(`${a()}/v1/tournaments/${s()}`),At=new Headers;o()&&At.append("X-SessionId",o());const oe={method:"GET",headers:At};N.searchParams.append("language",h()),N.searchParams.append("expand","games"),N.searchParams.append("platform",d),fetch(N,oe).then(mt=>mt.json()).then(mt=>{var Dt,Gt,gt,Ft;_(p,(Dt=mt==null?void 0:mt.item)==null?void 0:Dt.prizes,!0),_(E,((Gt=R(p))==null?void 0:Gt.length)>3?(gt=R(p))==null?void 0:gt.slice(3,R(p).length-1):R(p),!0),_(c,(Ft=R(p))==null?void 0:Ft.slice(0,3),!0)}).catch(mt=>console.log(mt)).finally(()=>_(u,!1))});Xa(()=>{o()&&s()&&a()&&I()});var b={get tournamentid(){return s()},set tournamentid(N){s(N),Ue()},get endpoint(){return a()},set endpoint(N){a(N),Ue()},get session(){return o()},set session(N){o(N),Ue()},get language(){return h()},set language(N){h(N),Ue()},get platformProp(){return l()},set platformProp(N=null){l(N),Ue()}},y=Ru(),U=P(y),w=P(U),J=V(w,2),B=P(J),M=P(B,!0);q(B);var bt=V(B,2),vt=P(bt),K=P(vt,!0);q(vt);var De=V(vt,2),$r=P(De,!0);q(De);var an=V(De,2),yo=P(an,!0);q(an),q(bt),q(J);var hn=V(J,2),ln=P(hn),ti=P(ln),un=P(ti);ui(un,()=>vu);var ei=V(un,2),Uo=P(ei,!0);q(ei);var fn=V(ei,2),jo=P(fn,!0);q(fn),q(ti);var ri=V(ti,2),ii=P(ri),No=P(ii,!0);q(ii);var ni=V(ii,2),To=P(ni,!0);q(ni);var qo=V(ni,2);ui(qo,()=>bu),q(ri);var cn=V(ri,2),pn=P(cn);ui(pn,()=>mu);var si=V(pn,2),wo=P(si,!0);q(si);var dn=V(si,2),Po=P(dn,!0);q(dn),q(cn),q(ln),q(hn),q(U);var Oo=V(U,2);{var Go=N=>{var At=Cu(),oe=P(At),mt=P(oe,!0);q(oe);var Dt=V(oe,2);Za(Dt,21,()=>R(E),Da,(Gt,gt)=>{var Ft=gu(),Me=P(Ft),Ir=V(Me,2);q(Ft),xr(()=>{var In,Sn;st(Me,`${(In=R(gt).rank)!=null?In:""}${R(gt).count>1?`-${R(gt).rank+R(gt).count-1}`:""} `),st(Ir,` ${(Sn=R(gt).name)!=null?Sn:""}`)}),kr(Gt,Ft)}),q(Dt),q(At),xr(Gt=>st(mt,Gt),[()=>r()("allPrizes")]),kr(N,At)};Aa(Oo,N=>{R(E)&&N(Go)})}q(y),xr((N,At,oe,mt)=>{var Dt,Gt,gt,Ft,Me,Ir;rh(w,"src",Su),st(M,N),st(K,((Dt=R(c)[0])==null?void 0:Dt.name)||"-"),st($r,((Gt=R(c)[0])==null?void 0:Gt.name)||"-"),st(yo,((gt=R(c)[0])==null?void 0:gt.name)||"-"),st(Uo,At),st(jo,((Ft=R(c)[1])==null?void 0:Ft.name)||"-"),st(No,oe),st(To,((Me=R(c)[0])==null?void 0:Me.name)||"-"),st(wo,mt),st(Po,((Ir=R(c)[2])==null?void 0:Ir.name)||"-")},[()=>r()("totalPrizes"),()=>r()("rank2"),()=>r()("rank1"),()=>r()("rank3")]),kr(t,y);var Fo=ls(b);return n(),Fo}customElements.define("tournament-leaderboard-static",fh(Ho,{tournamentid:{},endpoint:{},session:{},language:{},platformProp:{}},[],[],!1));exports.default=Ho;
@@ -6742,7 +6742,7 @@ function Qu(t, e) {
6742
6742
  var Go = ls(b);
6743
6743
  return n(), Go;
6744
6744
  }
6745
- uh(
6745
+ customElements.define("tournament-leaderboard-static", uh(
6746
6746
  Qu,
6747
6747
  {
6748
6748
  tournamentid: {},
@@ -6753,8 +6753,8 @@ uh(
6753
6753
  },
6754
6754
  [],
6755
6755
  [],
6756
- !0
6757
- );
6756
+ !1
6757
+ ));
6758
6758
  export {
6759
6759
  Qu as default
6760
6760
  };
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/TournamentLeaderBoardStatic-pC8IKwnb.cjs")).then(({default:t})=>{!customElements.get("tournament-leaderboard-static")&&customElements.define("tournament-leaderboard-static",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/TournamentLeaderBoardStatic-D2Twfc7r.cjs")).then(({default:t})=>{!customElements.get("tournament-leaderboard-static")&&customElements.define("tournament-leaderboard-static",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/TournamentLeaderBoardStatic-ChXUYE-A.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/TournamentLeaderBoardStatic-DJc5WwhH.js").then(({ default: t }) => {
14
14
  !customElements.get("tournament-leaderboard-static") && customElements.define("tournament-leaderboard-static", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { T as a } from "../components/TournamentLeaderBoardStatic-Dj_MJ2lf.js";
1
+ import { T as a } from "../components/TournamentLeaderBoardStatic-Cs9RkKxL.js";
2
2
  function s(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/tournament-leaderboard-static",
3
- "version": "0.0.1",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "main": "es2015/tournament-leaderboard-static.cjs",
6
6
  "module": "esnext/tournament-leaderboard-static.js",