@everymatrix/casino-tournaments-rank 1.85.17 → 1.85.19
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.
- package/components/{CasinoTournamentsRank-DwQElvz9.js → CasinoTournamentsRank-BAY7wV5b.js} +16 -14
- package/components/CasinoTournamentsRank-BjifUkH2.cjs +1 -0
- package/components/{CasinoTournamentsRank-CtMtyEbG.js → CasinoTournamentsRank-r6VE5uW0.js} +53 -51
- package/es2015/casino-tournaments-rank.cjs +1 -1
- package/es2015/casino-tournaments-rank.js +1 -1
- package/esnext/casino-tournaments-rank.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsRank-DjmXz_3C.cjs +0 -1
|
@@ -376,7 +376,7 @@ function St(e, t, n, r, i, l) {
|
|
|
376
376
|
}), e.element = /** @type {any} */
|
|
377
377
|
f, f;
|
|
378
378
|
}
|
|
379
|
-
class
|
|
379
|
+
class At {
|
|
380
380
|
/**
|
|
381
381
|
* ### PRIVATE API
|
|
382
382
|
*
|
|
@@ -420,8 +420,8 @@ class Ct {
|
|
|
420
420
|
this.$$set && !ot(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
const
|
|
424
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
423
|
+
const Ct = "4";
|
|
424
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ct);
|
|
425
425
|
function Rt(e, t) {
|
|
426
426
|
if (e) {
|
|
427
427
|
const n = document.createElement("style");
|
|
@@ -429,6 +429,8 @@ function Rt(e, t) {
|
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
function zt(e, t) {
|
|
432
|
+
if (!e || !t)
|
|
433
|
+
return;
|
|
432
434
|
const n = new URL(t);
|
|
433
435
|
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
434
436
|
const i = document.createElement("style");
|
|
@@ -478,7 +480,7 @@ function nt(e) {
|
|
|
478
480
|
};
|
|
479
481
|
}
|
|
480
482
|
function Tt(e) {
|
|
481
|
-
let t, n, r, i, l, f, a, s, u, y, _, d, S, g,
|
|
483
|
+
let t, n, r, i, l, f, a, s, u, y, _, d, S, g, A, p, E, C, L, R, x, z, $ = (
|
|
482
484
|
/*showicon*/
|
|
483
485
|
e[2] == "true" && et()
|
|
484
486
|
), m = (
|
|
@@ -493,20 +495,20 @@ function Tt(e) {
|
|
|
493
495
|
), f = B(
|
|
494
496
|
/*rankinfo*/
|
|
495
497
|
e[7]
|
|
496
|
-
), a = U(), s = v("img"), _ = U(), d = v("img"),
|
|
498
|
+
), a = U(), s = v("img"), _ = U(), d = v("img"), A = U(), p = v("div"), m && m.c(), E = U(), C = v("span"), L = B(
|
|
497
499
|
/*prize*/
|
|
498
500
|
e[0]
|
|
499
501
|
), o(s, "part", "Rank_Arror_UP"), o(s, "alt", "Rank Up"), Y(s.src, u = Lt) || o(s, "src", u), o(s, "width", "20"), o(s, "height", "20"), o(s, "class", y = "svg Arrow Up " + /*userRankChanged*/
|
|
500
502
|
(e[5] && /*isRankingUp*/
|
|
501
503
|
e[6] ? "Show" : "Hidden")), o(d, "part", "Rank_Arror_Down"), o(d, "alt", "Rank Down"), Y(d.src, S = Pt) || o(d, "src", S), o(d, "width", "10"), o(d, "height", "10"), o(d, "class", g = "svg Arrow Down " + /*userRankChanged*/
|
|
502
504
|
(e[5] && !/*isRankingUp*/
|
|
503
|
-
e[6] ? "Show" : "Hidden")), o(i, "class", "RankInfo"), o(i, "part", "RankText"), o(n, "class", "RankSec"), o(n, "part", "Rank"), o(
|
|
505
|
+
e[6] ? "Show" : "Hidden")), o(i, "class", "RankInfo"), o(i, "part", "RankText"), o(n, "class", "RankSec"), o(n, "part", "Rank"), o(C, "class", "RankInfo UserPrize"), o(C, "part", "PrizeText"), o(p, "class", R = /*displayin*/
|
|
504
506
|
e[3] + " PrizeSec"), o(p, "part", "Prize"), o(t, "class", x = /*displayin*/
|
|
505
507
|
e[3] + " casino-tournaments-rank"), o(t, "part", z = /*displayin*/
|
|
506
508
|
e[3] + " casino-tournaments-rank");
|
|
507
509
|
},
|
|
508
510
|
m(h, b) {
|
|
509
|
-
J(h, t, b), w(t, n), $ && $.m(n, null), w(n, r), w(n, i), w(i, l), w(i, f), w(i, a), w(i, s), w(i, _), w(i, d), w(t,
|
|
511
|
+
J(h, t, b), w(t, n), $ && $.m(n, null), w(n, r), w(n, i), w(i, l), w(i, f), w(i, a), w(i, s), w(i, _), w(i, d), w(t, A), w(t, p), m && m.m(p, null), w(p, E), w(p, C), w(C, L), e[15](t);
|
|
510
512
|
},
|
|
511
513
|
p(h, [b]) {
|
|
512
514
|
/*showicon*/
|
|
@@ -548,7 +550,7 @@ function Tt(e) {
|
|
|
548
550
|
};
|
|
549
551
|
}
|
|
550
552
|
function Ut(e, t, n) {
|
|
551
|
-
let { rankprefix: r = "#" } = t, { showicon: i = "true" } = t, { tournamentid: l = "" } = t, { overallrank: f = "0" } = t, { showoverallrank: a = "true" } = t, { userrank: s = "0" } = t, { prize: u = "PrizeName" } = t, { mbsource: y } = t, { displayin: _ = "row" } = t, { clientstyling: d = "" } = t, { clientstylingurl: S = "" } = t, g,
|
|
553
|
+
let { rankprefix: r = "#" } = t, { showicon: i = "true" } = t, { tournamentid: l = "" } = t, { overallrank: f = "0" } = t, { showoverallrank: a = "true" } = t, { userrank: s = "0" } = t, { prize: u = "PrizeName" } = t, { mbsource: y } = t, { displayin: _ = "row" } = t, { clientstyling: d = "" } = t, { clientstylingurl: S = "" } = t, g, A, p = !1, E = !0, C, L, R, x, z = "";
|
|
552
554
|
const $ = (c) => {
|
|
553
555
|
c.data && c.data.type == `TournamentRankInfo_${l}` && (m(c.data.rankInfo), h());
|
|
554
556
|
}, m = (c) => {
|
|
@@ -556,19 +558,19 @@ function Ut(e, t, n) {
|
|
|
556
558
|
n(9, s = O.rank), n(8, f = O.overallRank), n(0, u = O.prize);
|
|
557
559
|
};
|
|
558
560
|
if (!x) {
|
|
559
|
-
x =
|
|
561
|
+
x = A, W(c);
|
|
560
562
|
return;
|
|
561
563
|
}
|
|
562
|
-
|
|
564
|
+
A && (n(5, p = x != c.rank), n(6, E = x > c.rank), C = (/* @__PURE__ */ new Date()).getTime(), R = setTimeout(
|
|
563
565
|
() => {
|
|
564
|
-
L = (/* @__PURE__ */ new Date()).getTime(), (L -
|
|
566
|
+
L = (/* @__PURE__ */ new Date()).getTime(), (L - C) / 1e3 > 4 && n(5, p = !1), x = A;
|
|
565
567
|
},
|
|
566
568
|
5e3
|
|
567
569
|
), W(c));
|
|
568
570
|
}, h = () => {
|
|
569
571
|
n(7, z = a == "true" ? `${+s == 0 ? "-" : s || "-"}/${+f == 0 ? "-" : f}` : s);
|
|
570
572
|
};
|
|
571
|
-
gt(() => (
|
|
573
|
+
gt(() => (A = s == null ? void 0 : parseInt(s), x = A, n(9, s = s ?? "-"), window.addEventListener("message", $, !0), h(), () => {
|
|
572
574
|
window.removeEventListener("message", $), clearTimeout(R);
|
|
573
575
|
}));
|
|
574
576
|
function b(c) {
|
|
@@ -583,7 +585,7 @@ function Ut(e, t, n) {
|
|
|
583
585
|
8208 && d && g && Rt(g, d), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
584
586
|
16400 && S && g && zt(g, S), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
585
587
|
4112 && y && g && Et(g, `${y}.Style`), e.$$.dirty & /*userrank*/
|
|
586
|
-
512 && (
|
|
588
|
+
512 && (A = parseInt(s)), e.$$.dirty & /*userrank*/
|
|
587
589
|
512 && s && h(), e.$$.dirty & /*overallrank*/
|
|
588
590
|
256 && f && h();
|
|
589
591
|
}, [
|
|
@@ -605,7 +607,7 @@ function Ut(e, t, n) {
|
|
|
605
607
|
b
|
|
606
608
|
];
|
|
607
609
|
}
|
|
608
|
-
class It extends
|
|
610
|
+
class It extends At {
|
|
609
611
|
constructor(t) {
|
|
610
612
|
super(), vt(
|
|
611
613
|
this,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var dt=Object.defineProperty,gt=Object.defineProperties;var $t=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var mt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable;var Z=(e,t,n)=>t in e?dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t)=>{for(var n in t||(t={}))mt.call(t,n)&&Z(e,n,t[n]);if(tt)for(var n of tt(t))wt.call(t,n)&&Z(e,n,t[n]);return e},nt=(e,t)=>gt(e,$t(t));var x=(e,t,n)=>(Z(e,typeof t!="symbol"?t+"":t,n),n);var it=(e,t,n)=>new Promise((i,r)=>{var c=s=>{try{f(n.next(s))}catch(l){r(l)}},o=s=>{try{f(n.throw(s))}catch(l){r(l)}},f=s=>s.done?i(s.value):Promise.resolve(s.value).then(c,o);f((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function j(){}function at(e){return e()}function rt(){return Object.create(null)}function J(e){e.forEach(at)}function ut(e){return typeof e=="function"}function _t(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let B;function st(e,t){return e===t?!0:(B||(B=document.createElement("a")),B.href=t,e===B.href)}function pt(e){return Object.keys(e).length===0}function w(e,t){e.appendChild(t)}function kt(e,t,n){const i=yt(e);if(!i.getElementById(t)){const r=S("style");r.id=t,r.textContent=n,bt(i,r)}}function yt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function bt(e,t){return w(e.head||e,t),t.sheet}function V(e,t,n){e.insertBefore(t,n||null)}function D(e){e.parentNode&&e.parentNode.removeChild(e)}function S(e){return document.createElement(e)}function q(e){return document.createTextNode(e)}function I(){return q(" ")}function u(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function xt(e){return Array.from(e.childNodes)}function G(e,t){t=""+t,e.data!==t&&(e.data=t)}function vt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let O;function H(e){O=e}function St(){if(!O)throw new Error("Function called outside component initialization");return O}function At(e){St().$$.on_mount.push(e)}const T=[],Q=[];let U=[];const ct=[],Ct=Promise.resolve();let W=!1;function Rt(){W||(W=!0,Ct.then(y))}function X(e){U.push(e)}const K=new Set;let M=0;function y(){if(M!==0)return;const e=O;do{try{for(;M<T.length;){const t=T[M];M++,H(t),zt(t.$$)}}catch(t){throw T.length=0,M=0,t}for(H(null),T.length=0,M=0;Q.length;)Q.pop()();for(let t=0;t<U.length;t+=1){const n=U[t];K.has(n)||(K.add(n),n())}U.length=0}while(T.length);for(;ct.length;)ct.pop()();W=!1,K.clear(),H(e)}function zt(e){if(e.fragment!==null){e.update(),J(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(X)}}function Et(e){const t=[],n=[];U.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),U=t}const Lt=new Set;function Pt(e,t){e&&e.i&&(Lt.delete(e),e.i(t))}function Mt(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),X(()=>{const c=e.$$.on_mount.map(at).filter(ut);e.$$.on_destroy?e.$$.on_destroy.push(...c):J(c),e.$$.on_mount=[]}),r.forEach(X)}function Tt(e,t){const n=e.$$;n.fragment!==null&&(Et(n.after_update),J(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Ut(e,t){e.$$.dirty[0]===-1&&(T.push(e),Rt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function It(e,t,n,i,r,c,o=null,f=[-1]){const s=O;H(e);const l=e.$$={fragment:null,ctx:[],props:c,update:j,not_equal:r,bound:rt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(s?s.$$.context:[])),callbacks:rt(),dirty:f,skip_bound:!1,root:t.target||s.$$.root};o&&o(l.root);let _=!1;if(l.ctx=n?n(e,t.props||{},(p,d,...A)=>{const g=A.length?A[0]:d;return l.ctx&&r(l.ctx[p],l.ctx[p]=g)&&(!l.skip_bound&&l.bound[p]&&l.bound[p](g),_&&Ut(e,p)),d}):[],l.update(),_=!0,J(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const p=xt(t.target);l.fragment&&l.fragment.l(p),p.forEach(D)}else l.fragment&&l.fragment.c();t.intro&&Pt(e.$$.fragment),Mt(e,t.target,t.anchor),y()}H(s)}let ft;typeof HTMLElement=="function"&&(ft=class extends HTMLElement{constructor(t,n,i){super();x(this,"$$ctor");x(this,"$$s");x(this,"$$c");x(this,"$$cn",!1);x(this,"$$d",{});x(this,"$$r",!1);x(this,"$$p_d",{});x(this,"$$l",{});x(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return it(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(c){return()=>{let o;return{c:function(){o=S("slot"),c!=="default"&&u(o,"name",c)},m:function(l,_){V(l,o,_)},d:function(l){l&&D(o)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=vt(this);for(const c of this.$$s)c in i&&(n[c]=[t(c)]);for(const c of this.attributes){const o=this.$$g_p(c.name);o in this.$$d||(this.$$d[o]=F(o,c.value,this.$$p_d,"toProp"))}for(const c in this.$$p_d)!(c in this.$$d)&&this[c]!==void 0&&(this.$$d[c]=this[c],delete this[c]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:nt(et({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const c in this.$$p_d)if(this.$$d[c]=this.$$c.$$.ctx[this.$$c.$$.props[c]],this.$$p_d[c].reflect){const o=F(c,this.$$d[c],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[c].attribute||c):this.setAttribute(this.$$p_d[c].attribute||c,o)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const c in this.$$l)for(const o of this.$$l[c]){const f=this.$$c.$on(c,o);this.$$l_u.set(o,f)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=F(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function F(e,t,n,i){var c;const r=(c=n[e])==null?void 0:c.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ht(e,t,n,i,r,c){let o=class extends ft{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(f=>(t[f].attribute||f).toLowerCase())}};return Object.keys(t).forEach(f=>{Object.defineProperty(o.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(s){var l;s=F(f,s,t),this.$$d[f]=s,(l=this.$$c)==null||l.$set({[f]:s})}})}),i.forEach(f=>{Object.defineProperty(o.prototype,f,{get(){var s;return(s=this.$$c)==null?void 0:s[f]}})}),e.element=o,o}class jt{constructor(){x(this,"$$");x(this,"$$set")}$destroy(){Tt(this,1),this.$destroy=j}$on(t,n){if(!ut(n))return j;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!pt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ot="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ot);function Dt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Nt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const r=document.createElement("style");r.innerHTML=i,e&&e.appendChild(r)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Bt(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,r=>{i.innerHTML=r,e&&e.appendChild(i)})}}const qt="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='4.9999'%20cy='4.9999'%20r='4.9999'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1149)'%3e%3cline%20x1='4.93332'%20y1='4'%20x2='4.93332'%20y2='7.99992'%20stroke='%2359CA00'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%202L7.59699%204.99994H2.40094L4.99896%202Z'%20fill='%2359CA00'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1149'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='translate(1.99902%202)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Ft="data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20r='4.9999'%20transform='matrix(1%200%200%20-1%204.9999%205.0001)'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1154)'%3e%3cline%20y1='-0.933315'%20x2='3.99992'%20y2='-0.933315'%20transform='matrix(0%20-1%20-1%200%204%206)'%20stroke='%23CA0000'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%208L7.59699%205.00006H2.40094L4.99896%208Z'%20fill='%23CA0000'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1154'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='matrix(1%200%200%20-1%201.99902%208)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";function Jt(e){kt(e,"svelte-1njm5xr",".row{display:flex}.row .RankSec,.row .PrizeSec{width:49%}.col{display:inline-block}.RankSec,.PrizeSec{background-color:#c4c4c4;display:flex;padding:5px;margin:5px}.RankSec span,.PrizeSec span{text-align:center}.casino-tournaments-rank{background:transparent;min-height:22px;width:100%}.Icon{width:22px;height:22px;display:flex;border-right:2px solid;margin-right:5px;padding-right:3px}.Icon svg{width:15px;height:15px;margin:auto}.RankInfo{vertical-align:middle;line-height:22px;font-weight:bold;padding-left:5px;padding-right:10px}.svg.Arrow.Up,.svg.Arrow.Down{position:absolute;width:15px;height:15px;vertical-align:bottom;padding-left:3px;display:none;padding:3px;padding:3px}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}svg.Arrow.Up,svg.Arrow.Down,.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}")}function ot(e){let t;return{c(){t=S("span"),t.innerHTML='<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user" class="svg-inline--fa fa-user" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304z"></path></svg>',u(t,"class","Icon UserIcon"),u(t,"part","Icon UserIcon")},m(n,i){V(n,t,i)},d(n){n&&D(t)}}}function lt(e){let t;return{c(){t=S("span"),t.innerHTML='<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="award" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="svg-inline--fa fa-award fa-w-12 fa-3x"><path fill="currentColor" d="M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z" class=""></path></svg>',u(t,"class","Icon PrizeIcon"),u(t,"part","Icon PrizeIcon")},m(n,i){V(n,t,i)},d(n){n&&D(t)}}}function Vt(e){let t,n,i,r,c,o,f,s,l,_,p,d,A,g,C,k,L,R,P,z,v,E,$=e[2]=="true"&&ot(),m=e[2]=="true"&<();return{c(){t=S("div"),n=S("div"),$&&$.c(),i=I(),r=S("span"),c=q(e[1]),o=q(e[7]),f=I(),s=S("img"),p=I(),d=S("img"),C=I(),k=S("div"),m&&m.c(),L=I(),R=S("span"),P=q(e[0]),u(s,"part","Rank_Arror_UP"),u(s,"alt","Rank Up"),st(s.src,l=qt)||u(s,"src",l),u(s,"width","20"),u(s,"height","20"),u(s,"class",_="svg Arrow Up "+(e[5]&&e[6]?"Show":"Hidden")),u(d,"part","Rank_Arror_Down"),u(d,"alt","Rank Down"),st(d.src,A=Ft)||u(d,"src",A),u(d,"width","10"),u(d,"height","10"),u(d,"class",g="svg Arrow Down "+(e[5]&&!e[6]?"Show":"Hidden")),u(r,"class","RankInfo"),u(r,"part","RankText"),u(n,"class","RankSec"),u(n,"part","Rank"),u(R,"class","RankInfo UserPrize"),u(R,"part","PrizeText"),u(k,"class",z=e[3]+" PrizeSec"),u(k,"part","Prize"),u(t,"class",v=e[3]+" casino-tournaments-rank"),u(t,"part",E=e[3]+" casino-tournaments-rank")},m(h,b){V(h,t,b),w(t,n),$&&$.m(n,null),w(n,i),w(n,r),w(r,c),w(r,o),w(r,f),w(r,s),w(r,p),w(r,d),w(t,C),w(t,k),m&&m.m(k,null),w(k,L),w(k,R),w(R,P),e[15](t)},p(h,[b]){h[2]=="true"?$||($=ot(),$.c(),$.m(n,i)):$&&($.d(1),$=null),b&2&&G(c,h[1]),b&128&&G(o,h[7]),b&96&&_!==(_="svg Arrow Up "+(h[5]&&h[6]?"Show":"Hidden"))&&u(s,"class",_),b&96&&g!==(g="svg Arrow Down "+(h[5]&&!h[6]?"Show":"Hidden"))&&u(d,"class",g),h[2]=="true"?m||(m=lt(),m.c(),m.m(k,L)):m&&(m.d(1),m=null),b&1&&G(P,h[0]),b&8&&z!==(z=h[3]+" PrizeSec")&&u(k,"class",z),b&8&&v!==(v=h[3]+" casino-tournaments-rank")&&u(t,"class",v),b&8&&E!==(E=h[3]+" casino-tournaments-rank")&&u(t,"part",E)},i:j,o:j,d(h){h&&D(t),$&&$.d(),m&&m.d(),e[15](null)}}}function Zt(e,t,n){let{rankprefix:i="#"}=t,{showicon:r="true"}=t,{tournamentid:c=""}=t,{overallrank:o="0"}=t,{showoverallrank:f="true"}=t,{userrank:s="0"}=t,{prize:l="PrizeName"}=t,{mbsource:_}=t,{displayin:p="row"}=t,{clientstyling:d=""}=t,{clientstylingurl:A=""}=t,g,C,k=!1,L=!0,R,P,z,v,E="";const $=a=>{a.data&&a.data.type==`TournamentRankInfo_${c}`&&(m(a.data.rankInfo),h())},m=a=>{let Y=N=>{n(9,s=N.rank),n(8,o=N.overallRank),n(0,l=N.prize)};if(!v){v=C,Y(a);return}C&&(n(5,k=v!=a.rank),n(6,L=v>a.rank),R=new Date().getTime(),z=setTimeout(()=>{P=new Date().getTime(),(P-R)/1e3>4&&n(5,k=!1),v=C},5e3),Y(a))},h=()=>{n(7,E=f=="true"?`${+s==0?"-":s||"-"}/${+o==0?"-":o}`:s)};At(()=>(C=s==null?void 0:parseInt(s),v=C,n(9,s=s==null?"-":s),window.addEventListener("message",$,!0),h(),()=>{window.removeEventListener("message",$),clearTimeout(z)}));function b(a){Q[a?"unshift":"push"](()=>{g=a,n(4,g)})}return e.$$set=a=>{"rankprefix"in a&&n(1,i=a.rankprefix),"showicon"in a&&n(2,r=a.showicon),"tournamentid"in a&&n(10,c=a.tournamentid),"overallrank"in a&&n(8,o=a.overallrank),"showoverallrank"in a&&n(11,f=a.showoverallrank),"userrank"in a&&n(9,s=a.userrank),"prize"in a&&n(0,l=a.prize),"mbsource"in a&&n(12,_=a.mbsource),"displayin"in a&&n(3,p=a.displayin),"clientstyling"in a&&n(13,d=a.clientstyling),"clientstylingurl"in a&&n(14,A=a.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&8208&&d&&g&&Dt(g,d),e.$$.dirty&16400&&A&&g&&Nt(g,A),e.$$.dirty&4112&&_&&g&&Bt(g,`${_}.Style`),e.$$.dirty&512&&(C=parseInt(s)),e.$$.dirty&512&&s&&h(),e.$$.dirty&256&&o&&h()},[l,i,r,p,g,k,L,E,o,s,c,f,_,d,A,b]}class ht extends jt{constructor(t){super(),It(this,t,Zt,Vt,_t,{rankprefix:1,showicon:2,tournamentid:10,overallrank:8,showoverallrank:11,userrank:9,prize:0,mbsource:12,displayin:3,clientstyling:13,clientstylingurl:14},Jt)}get rankprefix(){return this.$$.ctx[1]}set rankprefix(t){this.$$set({rankprefix:t}),y()}get showicon(){return this.$$.ctx[2]}set showicon(t){this.$$set({showicon:t}),y()}get tournamentid(){return this.$$.ctx[10]}set tournamentid(t){this.$$set({tournamentid:t}),y()}get overallrank(){return this.$$.ctx[8]}set overallrank(t){this.$$set({overallrank:t}),y()}get showoverallrank(){return this.$$.ctx[11]}set showoverallrank(t){this.$$set({showoverallrank:t}),y()}get userrank(){return this.$$.ctx[9]}set userrank(t){this.$$set({userrank:t}),y()}get prize(){return this.$$.ctx[0]}set prize(t){this.$$set({prize:t}),y()}get mbsource(){return this.$$.ctx[12]}set mbsource(t){this.$$set({mbsource:t}),y()}get displayin(){return this.$$.ctx[3]}set displayin(t){this.$$set({displayin:t}),y()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),y()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),y()}}Ht(ht,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},showoverallrank:{},userrank:{},prize:{},mbsource:{},displayin:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=ht;
|
|
@@ -15,16 +15,16 @@ var it = (e, t, n) => new Promise((i, r) => {
|
|
|
15
15
|
var c = (s) => {
|
|
16
16
|
try {
|
|
17
17
|
f(n.next(s));
|
|
18
|
-
} catch (
|
|
19
|
-
r(
|
|
18
|
+
} catch (l) {
|
|
19
|
+
r(l);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, o = (s) => {
|
|
22
22
|
try {
|
|
23
23
|
f(n.throw(s));
|
|
24
|
-
} catch (
|
|
25
|
-
r(
|
|
24
|
+
} catch (l) {
|
|
25
|
+
r(l);
|
|
26
26
|
}
|
|
27
|
-
}, f = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(c,
|
|
27
|
+
}, f = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(c, o);
|
|
28
28
|
f((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function j() {
|
|
@@ -190,10 +190,10 @@ function Mt(e, t) {
|
|
|
190
190
|
function Tt(e, t) {
|
|
191
191
|
e.$$.dirty[0] === -1 && (T.push(e), Ct(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
192
192
|
}
|
|
193
|
-
function Ut(e, t, n, i, r, c,
|
|
193
|
+
function Ut(e, t, n, i, r, c, o = null, f = [-1]) {
|
|
194
194
|
const s = D;
|
|
195
195
|
H(e);
|
|
196
|
-
const
|
|
196
|
+
const l = e.$$ = {
|
|
197
197
|
fragment: null,
|
|
198
198
|
ctx: [],
|
|
199
199
|
// state
|
|
@@ -214,17 +214,17 @@ function Ut(e, t, n, i, r, c, l = null, f = [-1]) {
|
|
|
214
214
|
skip_bound: !1,
|
|
215
215
|
root: t.target || s.$$.root
|
|
216
216
|
};
|
|
217
|
-
|
|
217
|
+
o && o(l.root);
|
|
218
218
|
let _ = !1;
|
|
219
|
-
if (
|
|
219
|
+
if (l.ctx = n ? n(e, t.props || {}, (p, d, ...A) => {
|
|
220
220
|
const g = A.length ? A[0] : d;
|
|
221
|
-
return
|
|
222
|
-
}) : [],
|
|
221
|
+
return l.ctx && r(l.ctx[p], l.ctx[p] = g) && (!l.skip_bound && l.bound[p] && l.bound[p](g), _ && Tt(e, p)), d;
|
|
222
|
+
}) : [], l.update(), _ = !0, J(l.before_update), l.fragment = i ? i(l.ctx) : !1, t.target) {
|
|
223
223
|
if (t.hydrate) {
|
|
224
224
|
const p = bt(t.target);
|
|
225
|
-
|
|
225
|
+
l.fragment && l.fragment.l(p), p.forEach(O);
|
|
226
226
|
} else
|
|
227
|
-
|
|
227
|
+
l.fragment && l.fragment.c();
|
|
228
228
|
t.intro && Lt(e.$$.fragment), Pt(e, t.target, t.anchor), y();
|
|
229
229
|
}
|
|
230
230
|
H(s);
|
|
@@ -271,20 +271,20 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
271
271
|
if (this.$$cn = !0, !this.$$c) {
|
|
272
272
|
let t = function(c) {
|
|
273
273
|
return () => {
|
|
274
|
-
let
|
|
274
|
+
let o;
|
|
275
275
|
return {
|
|
276
276
|
c: function() {
|
|
277
|
-
|
|
277
|
+
o = S("slot"), c !== "default" && u(o, "name", c);
|
|
278
278
|
},
|
|
279
279
|
/**
|
|
280
280
|
* @param {HTMLElement} target
|
|
281
281
|
* @param {HTMLElement} [anchor]
|
|
282
282
|
*/
|
|
283
|
-
m: function(
|
|
284
|
-
V(
|
|
283
|
+
m: function(l, _) {
|
|
284
|
+
V(l, o, _);
|
|
285
285
|
},
|
|
286
|
-
d: function(
|
|
287
|
-
|
|
286
|
+
d: function(l) {
|
|
287
|
+
l && O(o);
|
|
288
288
|
}
|
|
289
289
|
};
|
|
290
290
|
};
|
|
@@ -295,8 +295,8 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
295
295
|
for (const c of this.$$s)
|
|
296
296
|
c in i && (n[c] = [t(c)]);
|
|
297
297
|
for (const c of this.attributes) {
|
|
298
|
-
const
|
|
299
|
-
|
|
298
|
+
const o = this.$$g_p(c.name);
|
|
299
|
+
o in this.$$d || (this.$$d[o] = F(o, c.value, this.$$p_d, "toProp"));
|
|
300
300
|
}
|
|
301
301
|
for (const c in this.$$p_d)
|
|
302
302
|
!(c in this.$$d) && this[c] !== void 0 && (this.$$d[c] = this[c], delete this[c]);
|
|
@@ -313,21 +313,21 @@ typeof HTMLElement == "function" && (ft = class extends HTMLElement {
|
|
|
313
313
|
this.$$r = !0;
|
|
314
314
|
for (const c in this.$$p_d)
|
|
315
315
|
if (this.$$d[c] = this.$$c.$$.ctx[this.$$c.$$.props[c]], this.$$p_d[c].reflect) {
|
|
316
|
-
const
|
|
316
|
+
const o = F(
|
|
317
317
|
c,
|
|
318
318
|
this.$$d[c],
|
|
319
319
|
this.$$p_d,
|
|
320
320
|
"toAttribute"
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
o == null ? this.removeAttribute(this.$$p_d[c].attribute || c) : this.setAttribute(this.$$p_d[c].attribute || c, o);
|
|
323
323
|
}
|
|
324
324
|
this.$$r = !1;
|
|
325
325
|
};
|
|
326
326
|
this.$$c.$$.after_update.push(r), r();
|
|
327
327
|
for (const c in this.$$l)
|
|
328
|
-
for (const
|
|
329
|
-
const f = this.$$c.$on(c,
|
|
330
|
-
this.$$l_u.set(
|
|
328
|
+
for (const o of this.$$l[c]) {
|
|
329
|
+
const f = this.$$c.$on(c, o);
|
|
330
|
+
this.$$l_u.set(o, f);
|
|
331
331
|
}
|
|
332
332
|
this.$$l = {};
|
|
333
333
|
}
|
|
@@ -381,7 +381,7 @@ function F(e, t, n, i) {
|
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
function It(e, t, n, i, r, c) {
|
|
384
|
-
let
|
|
384
|
+
let o = class extends ft {
|
|
385
385
|
constructor() {
|
|
386
386
|
super(e, n, r), this.$$p_d = t;
|
|
387
387
|
}
|
|
@@ -392,24 +392,24 @@ function It(e, t, n, i, r, c) {
|
|
|
392
392
|
}
|
|
393
393
|
};
|
|
394
394
|
return Object.keys(t).forEach((f) => {
|
|
395
|
-
Object.defineProperty(
|
|
395
|
+
Object.defineProperty(o.prototype, f, {
|
|
396
396
|
get() {
|
|
397
397
|
return this.$$c && f in this.$$c ? this.$$c[f] : this.$$d[f];
|
|
398
398
|
},
|
|
399
399
|
set(s) {
|
|
400
|
-
var
|
|
401
|
-
s = F(f, s, t), this.$$d[f] = s, (
|
|
400
|
+
var l;
|
|
401
|
+
s = F(f, s, t), this.$$d[f] = s, (l = this.$$c) == null || l.$set({ [f]: s });
|
|
402
402
|
}
|
|
403
403
|
});
|
|
404
404
|
}), i.forEach((f) => {
|
|
405
|
-
Object.defineProperty(
|
|
405
|
+
Object.defineProperty(o.prototype, f, {
|
|
406
406
|
get() {
|
|
407
407
|
var s;
|
|
408
408
|
return (s = this.$$c) == null ? void 0 : s[f];
|
|
409
409
|
}
|
|
410
410
|
});
|
|
411
411
|
}), e.element = /** @type {any} */
|
|
412
|
-
|
|
412
|
+
o, o;
|
|
413
413
|
}
|
|
414
414
|
class Ht {
|
|
415
415
|
constructor() {
|
|
@@ -466,6 +466,8 @@ function Dt(e, t) {
|
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
function Ot(e, t) {
|
|
469
|
+
if (!e || !t)
|
|
470
|
+
return;
|
|
469
471
|
const n = new URL(t);
|
|
470
472
|
fetch(n.href).then((i) => i.text()).then((i) => {
|
|
471
473
|
const r = document.createElement("style");
|
|
@@ -486,7 +488,7 @@ const Bt = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%20
|
|
|
486
488
|
function Ft(e) {
|
|
487
489
|
pt(e, "svelte-1njm5xr", ".row{display:flex}.row .RankSec,.row .PrizeSec{width:49%}.col{display:inline-block}.RankSec,.PrizeSec{background-color:#c4c4c4;display:flex;padding:5px;margin:5px}.RankSec span,.PrizeSec span{text-align:center}.casino-tournaments-rank{background:transparent;min-height:22px;width:100%}.Icon{width:22px;height:22px;display:flex;border-right:2px solid;margin-right:5px;padding-right:3px}.Icon svg{width:15px;height:15px;margin:auto}.RankInfo{vertical-align:middle;line-height:22px;font-weight:bold;padding-left:5px;padding-right:10px}.svg.Arrow.Up,.svg.Arrow.Down{position:absolute;width:15px;height:15px;vertical-align:bottom;padding-left:3px;display:none;padding:3px;padding:3px}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}svg.Arrow.Up,svg.Arrow.Down,.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}");
|
|
488
490
|
}
|
|
489
|
-
function
|
|
491
|
+
function ot(e) {
|
|
490
492
|
let t;
|
|
491
493
|
return {
|
|
492
494
|
c() {
|
|
@@ -500,7 +502,7 @@ function lt(e) {
|
|
|
500
502
|
}
|
|
501
503
|
};
|
|
502
504
|
}
|
|
503
|
-
function
|
|
505
|
+
function lt(e) {
|
|
504
506
|
let t;
|
|
505
507
|
return {
|
|
506
508
|
c() {
|
|
@@ -515,25 +517,25 @@ function ot(e) {
|
|
|
515
517
|
};
|
|
516
518
|
}
|
|
517
519
|
function Jt(e) {
|
|
518
|
-
let t, n, i, r, c,
|
|
520
|
+
let t, n, i, r, c, o, f, s, l, _, p, d, A, g, C, k, L, R, P, z, v, E, $ = (
|
|
519
521
|
/*showicon*/
|
|
520
|
-
e[2] == "true" &&
|
|
522
|
+
e[2] == "true" && ot()
|
|
521
523
|
), m = (
|
|
522
524
|
/*showicon*/
|
|
523
|
-
e[2] == "true" &&
|
|
525
|
+
e[2] == "true" && lt()
|
|
524
526
|
);
|
|
525
527
|
return {
|
|
526
528
|
c() {
|
|
527
529
|
t = S("div"), n = S("div"), $ && $.c(), i = I(), r = S("span"), c = q(
|
|
528
530
|
/*rankprefix*/
|
|
529
531
|
e[1]
|
|
530
|
-
),
|
|
532
|
+
), o = q(
|
|
531
533
|
/*rankinfo*/
|
|
532
534
|
e[7]
|
|
533
535
|
), f = I(), s = S("img"), p = I(), d = S("img"), C = I(), k = S("div"), m && m.c(), L = I(), R = S("span"), P = q(
|
|
534
536
|
/*prize*/
|
|
535
537
|
e[0]
|
|
536
|
-
), u(s, "part", "Rank_Arror_UP"), u(s, "alt", "Rank Up"), st(s.src,
|
|
538
|
+
), u(s, "part", "Rank_Arror_UP"), u(s, "alt", "Rank Up"), st(s.src, l = Bt) || u(s, "src", l), u(s, "width", "20"), u(s, "height", "20"), u(s, "class", _ = "svg Arrow Up " + /*userRankChanged*/
|
|
537
539
|
(e[5] && /*isRankingUp*/
|
|
538
540
|
e[6] ? "Show" : "Hidden")), u(d, "part", "Rank_Arror_Down"), u(d, "alt", "Rank Down"), st(d.src, A = qt) || u(d, "src", A), u(d, "width", "10"), u(d, "height", "10"), u(d, "class", g = "svg Arrow Down " + /*userRankChanged*/
|
|
539
541
|
(e[5] && !/*isRankingUp*/
|
|
@@ -543,18 +545,18 @@ function Jt(e) {
|
|
|
543
545
|
e[3] + " casino-tournaments-rank");
|
|
544
546
|
},
|
|
545
547
|
m(h, b) {
|
|
546
|
-
V(h, t, b), w(t, n), $ && $.m(n, null), w(n, i), w(n, r), w(r, c), w(r,
|
|
548
|
+
V(h, t, b), w(t, n), $ && $.m(n, null), w(n, i), w(n, r), w(r, c), w(r, o), w(r, f), w(r, s), w(r, p), w(r, d), w(t, C), w(t, k), m && m.m(k, null), w(k, L), w(k, R), w(R, P), e[15](t);
|
|
547
549
|
},
|
|
548
550
|
p(h, [b]) {
|
|
549
551
|
/*showicon*/
|
|
550
|
-
h[2] == "true" ? $ || ($ =
|
|
552
|
+
h[2] == "true" ? $ || ($ = ot(), $.c(), $.m(n, i)) : $ && ($.d(1), $ = null), b & /*rankprefix*/
|
|
551
553
|
2 && G(
|
|
552
554
|
c,
|
|
553
555
|
/*rankprefix*/
|
|
554
556
|
h[1]
|
|
555
557
|
), b & /*rankinfo*/
|
|
556
558
|
128 && G(
|
|
557
|
-
|
|
559
|
+
o,
|
|
558
560
|
/*rankinfo*/
|
|
559
561
|
h[7]
|
|
560
562
|
), b & /*userRankChanged, isRankingUp*/
|
|
@@ -564,7 +566,7 @@ function Jt(e) {
|
|
|
564
566
|
96 && g !== (g = "svg Arrow Down " + /*userRankChanged*/
|
|
565
567
|
(h[5] && !/*isRankingUp*/
|
|
566
568
|
h[6] ? "Show" : "Hidden")) && u(d, "class", g), /*showicon*/
|
|
567
|
-
h[2] == "true" ? m || (m =
|
|
569
|
+
h[2] == "true" ? m || (m = lt(), m.c(), m.m(k, L)) : m && (m.d(1), m = null), b & /*prize*/
|
|
568
570
|
1 && G(
|
|
569
571
|
P,
|
|
570
572
|
/*prize*/
|
|
@@ -585,12 +587,12 @@ function Jt(e) {
|
|
|
585
587
|
};
|
|
586
588
|
}
|
|
587
589
|
function Vt(e, t, n) {
|
|
588
|
-
let { rankprefix: i = "#" } = t, { showicon: r = "true" } = t, { tournamentid: c = "" } = t, { overallrank:
|
|
590
|
+
let { rankprefix: i = "#" } = t, { showicon: r = "true" } = t, { tournamentid: c = "" } = t, { overallrank: o = "0" } = t, { showoverallrank: f = "true" } = t, { userrank: s = "0" } = t, { prize: l = "PrizeName" } = t, { mbsource: _ } = t, { displayin: p = "row" } = t, { clientstyling: d = "" } = t, { clientstylingurl: A = "" } = t, g, C, k = !1, L = !0, R, P, z, v, E = "";
|
|
589
591
|
const $ = (a) => {
|
|
590
592
|
a.data && a.data.type == `TournamentRankInfo_${c}` && (m(a.data.rankInfo), h());
|
|
591
593
|
}, m = (a) => {
|
|
592
594
|
let Y = (N) => {
|
|
593
|
-
n(9, s = N.rank), n(8,
|
|
595
|
+
n(9, s = N.rank), n(8, o = N.overallRank), n(0, l = N.prize);
|
|
594
596
|
};
|
|
595
597
|
if (!v) {
|
|
596
598
|
v = C, Y(a);
|
|
@@ -603,7 +605,7 @@ function Vt(e, t, n) {
|
|
|
603
605
|
5e3
|
|
604
606
|
), Y(a));
|
|
605
607
|
}, h = () => {
|
|
606
|
-
n(7, E = f == "true" ? `${+s == 0 ? "-" : s || "-"}/${+
|
|
608
|
+
n(7, E = f == "true" ? `${+s == 0 ? "-" : s || "-"}/${+o == 0 ? "-" : o}` : s);
|
|
607
609
|
};
|
|
608
610
|
St(() => (C = s == null ? void 0 : parseInt(s), v = C, n(9, s = s == null ? "-" : s), window.addEventListener("message", $, !0), h(), () => {
|
|
609
611
|
window.removeEventListener("message", $), clearTimeout(z);
|
|
@@ -614,7 +616,7 @@ function Vt(e, t, n) {
|
|
|
614
616
|
});
|
|
615
617
|
}
|
|
616
618
|
return e.$$set = (a) => {
|
|
617
|
-
"rankprefix" in a && n(1, i = a.rankprefix), "showicon" in a && n(2, r = a.showicon), "tournamentid" in a && n(10, c = a.tournamentid), "overallrank" in a && n(8,
|
|
619
|
+
"rankprefix" in a && n(1, i = a.rankprefix), "showicon" in a && n(2, r = a.showicon), "tournamentid" in a && n(10, c = a.tournamentid), "overallrank" in a && n(8, o = a.overallrank), "showoverallrank" in a && n(11, f = a.showoverallrank), "userrank" in a && n(9, s = a.userrank), "prize" in a && n(0, l = a.prize), "mbsource" in a && n(12, _ = a.mbsource), "displayin" in a && n(3, p = a.displayin), "clientstyling" in a && n(13, d = a.clientstyling), "clientstylingurl" in a && n(14, A = a.clientstylingurl);
|
|
618
620
|
}, e.$$.update = () => {
|
|
619
621
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
620
622
|
8208 && d && g && Dt(g, d), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
@@ -622,9 +624,9 @@ function Vt(e, t, n) {
|
|
|
622
624
|
4112 && _ && g && Nt(g, `${_}.Style`), e.$$.dirty & /*userrank*/
|
|
623
625
|
512 && (C = parseInt(s)), e.$$.dirty & /*userrank*/
|
|
624
626
|
512 && s && h(), e.$$.dirty & /*overallrank*/
|
|
625
|
-
256 &&
|
|
627
|
+
256 && o && h();
|
|
626
628
|
}, [
|
|
627
|
-
|
|
629
|
+
l,
|
|
628
630
|
i,
|
|
629
631
|
r,
|
|
630
632
|
p,
|
|
@@ -632,7 +634,7 @@ function Vt(e, t, n) {
|
|
|
632
634
|
k,
|
|
633
635
|
L,
|
|
634
636
|
E,
|
|
635
|
-
|
|
637
|
+
o,
|
|
636
638
|
s,
|
|
637
639
|
c,
|
|
638
640
|
f,
|
|
@@ -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/CasinoTournamentsRank-
|
|
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/CasinoTournamentsRank-BjifUkH2.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-rank")&&customElements.define("casino-tournaments-rank",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoTournamentsRank-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoTournamentsRank-r6VE5uW0.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("casino-tournaments-rank") && customElements.define("casino-tournaments-rank", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var dt=Object.defineProperty,gt=Object.defineProperties;var $t=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var mt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable;var Z=(e,t,n)=>t in e?dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t)=>{for(var n in t||(t={}))mt.call(t,n)&&Z(e,n,t[n]);if(tt)for(var n of tt(t))wt.call(t,n)&&Z(e,n,t[n]);return e},nt=(e,t)=>gt(e,$t(t));var x=(e,t,n)=>(Z(e,typeof t!="symbol"?t+"":t,n),n);var it=(e,t,n)=>new Promise((i,r)=>{var c=s=>{try{f(n.next(s))}catch(o){r(o)}},l=s=>{try{f(n.throw(s))}catch(o){r(o)}},f=s=>s.done?i(s.value):Promise.resolve(s.value).then(c,l);f((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function j(){}function at(e){return e()}function rt(){return Object.create(null)}function J(e){e.forEach(at)}function ut(e){return typeof e=="function"}function _t(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let B;function st(e,t){return e===t?!0:(B||(B=document.createElement("a")),B.href=t,e===B.href)}function pt(e){return Object.keys(e).length===0}function w(e,t){e.appendChild(t)}function kt(e,t,n){const i=yt(e);if(!i.getElementById(t)){const r=S("style");r.id=t,r.textContent=n,bt(i,r)}}function yt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function bt(e,t){return w(e.head||e,t),t.sheet}function V(e,t,n){e.insertBefore(t,n||null)}function D(e){e.parentNode&&e.parentNode.removeChild(e)}function S(e){return document.createElement(e)}function q(e){return document.createTextNode(e)}function I(){return q(" ")}function u(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function xt(e){return Array.from(e.childNodes)}function G(e,t){t=""+t,e.data!==t&&(e.data=t)}function vt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let O;function H(e){O=e}function St(){if(!O)throw new Error("Function called outside component initialization");return O}function At(e){St().$$.on_mount.push(e)}const T=[],Q=[];let U=[];const ct=[],Ct=Promise.resolve();let W=!1;function Rt(){W||(W=!0,Ct.then(y))}function X(e){U.push(e)}const K=new Set;let M=0;function y(){if(M!==0)return;const e=O;do{try{for(;M<T.length;){const t=T[M];M++,H(t),zt(t.$$)}}catch(t){throw T.length=0,M=0,t}for(H(null),T.length=0,M=0;Q.length;)Q.pop()();for(let t=0;t<U.length;t+=1){const n=U[t];K.has(n)||(K.add(n),n())}U.length=0}while(T.length);for(;ct.length;)ct.pop()();W=!1,K.clear(),H(e)}function zt(e){if(e.fragment!==null){e.update(),J(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(X)}}function Et(e){const t=[],n=[];U.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),U=t}const Lt=new Set;function Pt(e,t){e&&e.i&&(Lt.delete(e),e.i(t))}function Mt(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),X(()=>{const c=e.$$.on_mount.map(at).filter(ut);e.$$.on_destroy?e.$$.on_destroy.push(...c):J(c),e.$$.on_mount=[]}),r.forEach(X)}function Tt(e,t){const n=e.$$;n.fragment!==null&&(Et(n.after_update),J(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Ut(e,t){e.$$.dirty[0]===-1&&(T.push(e),Rt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function It(e,t,n,i,r,c,l=null,f=[-1]){const s=O;H(e);const o=e.$$={fragment:null,ctx:[],props:c,update:j,not_equal:r,bound:rt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(s?s.$$.context:[])),callbacks:rt(),dirty:f,skip_bound:!1,root:t.target||s.$$.root};l&&l(o.root);let _=!1;if(o.ctx=n?n(e,t.props||{},(p,d,...A)=>{const g=A.length?A[0]:d;return o.ctx&&r(o.ctx[p],o.ctx[p]=g)&&(!o.skip_bound&&o.bound[p]&&o.bound[p](g),_&&Ut(e,p)),d}):[],o.update(),_=!0,J(o.before_update),o.fragment=i?i(o.ctx):!1,t.target){if(t.hydrate){const p=xt(t.target);o.fragment&&o.fragment.l(p),p.forEach(D)}else o.fragment&&o.fragment.c();t.intro&&Pt(e.$$.fragment),Mt(e,t.target,t.anchor),y()}H(s)}let ft;typeof HTMLElement=="function"&&(ft=class extends HTMLElement{constructor(t,n,i){super();x(this,"$$ctor");x(this,"$$s");x(this,"$$c");x(this,"$$cn",!1);x(this,"$$d",{});x(this,"$$r",!1);x(this,"$$p_d",{});x(this,"$$l",{});x(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}connectedCallback(){return it(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(c){return()=>{let l;return{c:function(){l=S("slot"),c!=="default"&&u(l,"name",c)},m:function(o,_){V(o,l,_)},d:function(o){o&&D(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=vt(this);for(const c of this.$$s)c in i&&(n[c]=[t(c)]);for(const c of this.attributes){const l=this.$$g_p(c.name);l in this.$$d||(this.$$d[l]=F(l,c.value,this.$$p_d,"toProp"))}for(const c in this.$$p_d)!(c in this.$$d)&&this[c]!==void 0&&(this.$$d[c]=this[c],delete this[c]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:nt(et({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const c in this.$$p_d)if(this.$$d[c]=this.$$c.$$.ctx[this.$$c.$$.props[c]],this.$$p_d[c].reflect){const l=F(c,this.$$d[c],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[c].attribute||c):this.setAttribute(this.$$p_d[c].attribute||c,l)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const c in this.$$l)for(const l of this.$$l[c]){const f=this.$$c.$on(c,l);this.$$l_u.set(l,f)}this.$$l={}}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=F(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function F(e,t,n,i){var c;const r=(c=n[e])==null?void 0:c.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Ht(e,t,n,i,r,c){let l=class extends ft{constructor(){super(e,n,r),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(f=>(t[f].attribute||f).toLowerCase())}};return Object.keys(t).forEach(f=>{Object.defineProperty(l.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(s){var o;s=F(f,s,t),this.$$d[f]=s,(o=this.$$c)==null||o.$set({[f]:s})}})}),i.forEach(f=>{Object.defineProperty(l.prototype,f,{get(){var s;return(s=this.$$c)==null?void 0:s[f]}})}),e.element=l,l}class jt{constructor(){x(this,"$$");x(this,"$$set")}$destroy(){Tt(this,1),this.$destroy=j}$on(t,n){if(!ut(n))return j;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!pt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ot="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ot);function Dt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Nt(e,t){const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const r=document.createElement("style");r.innerHTML=i,e&&e.appendChild(r)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Bt(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,r=>{i.innerHTML=r,e&&e.appendChild(i)})}}const qt="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='4.9999'%20cy='4.9999'%20r='4.9999'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1149)'%3e%3cline%20x1='4.93332'%20y1='4'%20x2='4.93332'%20y2='7.99992'%20stroke='%2359CA00'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%202L7.59699%204.99994H2.40094L4.99896%202Z'%20fill='%2359CA00'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1149'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='translate(1.99902%202)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Ft="data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20r='4.9999'%20transform='matrix(1%200%200%20-1%204.9999%205.0001)'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1154)'%3e%3cline%20y1='-0.933315'%20x2='3.99992'%20y2='-0.933315'%20transform='matrix(0%20-1%20-1%200%204%206)'%20stroke='%23CA0000'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%208L7.59699%205.00006H2.40094L4.99896%208Z'%20fill='%23CA0000'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1154'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='matrix(1%200%200%20-1%201.99902%208)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";function Jt(e){kt(e,"svelte-1njm5xr",".row{display:flex}.row .RankSec,.row .PrizeSec{width:49%}.col{display:inline-block}.RankSec,.PrizeSec{background-color:#c4c4c4;display:flex;padding:5px;margin:5px}.RankSec span,.PrizeSec span{text-align:center}.casino-tournaments-rank{background:transparent;min-height:22px;width:100%}.Icon{width:22px;height:22px;display:flex;border-right:2px solid;margin-right:5px;padding-right:3px}.Icon svg{width:15px;height:15px;margin:auto}.RankInfo{vertical-align:middle;line-height:22px;font-weight:bold;padding-left:5px;padding-right:10px}.svg.Arrow.Up,.svg.Arrow.Down{position:absolute;width:15px;height:15px;vertical-align:bottom;padding-left:3px;display:none;padding:3px;padding:3px}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}svg.Arrow.Up,svg.Arrow.Down,.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}")}function lt(e){let t;return{c(){t=S("span"),t.innerHTML='<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user" class="svg-inline--fa fa-user" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304z"></path></svg>',u(t,"class","Icon UserIcon"),u(t,"part","Icon UserIcon")},m(n,i){V(n,t,i)},d(n){n&&D(t)}}}function ot(e){let t;return{c(){t=S("span"),t.innerHTML='<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="award" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="svg-inline--fa fa-award fa-w-12 fa-3x"><path fill="currentColor" d="M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z" class=""></path></svg>',u(t,"class","Icon PrizeIcon"),u(t,"part","Icon PrizeIcon")},m(n,i){V(n,t,i)},d(n){n&&D(t)}}}function Vt(e){let t,n,i,r,c,l,f,s,o,_,p,d,A,g,C,k,L,R,P,z,v,E,$=e[2]=="true"&<(),m=e[2]=="true"&&ot();return{c(){t=S("div"),n=S("div"),$&&$.c(),i=I(),r=S("span"),c=q(e[1]),l=q(e[7]),f=I(),s=S("img"),p=I(),d=S("img"),C=I(),k=S("div"),m&&m.c(),L=I(),R=S("span"),P=q(e[0]),u(s,"part","Rank_Arror_UP"),u(s,"alt","Rank Up"),st(s.src,o=qt)||u(s,"src",o),u(s,"width","20"),u(s,"height","20"),u(s,"class",_="svg Arrow Up "+(e[5]&&e[6]?"Show":"Hidden")),u(d,"part","Rank_Arror_Down"),u(d,"alt","Rank Down"),st(d.src,A=Ft)||u(d,"src",A),u(d,"width","10"),u(d,"height","10"),u(d,"class",g="svg Arrow Down "+(e[5]&&!e[6]?"Show":"Hidden")),u(r,"class","RankInfo"),u(r,"part","RankText"),u(n,"class","RankSec"),u(n,"part","Rank"),u(R,"class","RankInfo UserPrize"),u(R,"part","PrizeText"),u(k,"class",z=e[3]+" PrizeSec"),u(k,"part","Prize"),u(t,"class",v=e[3]+" casino-tournaments-rank"),u(t,"part",E=e[3]+" casino-tournaments-rank")},m(h,b){V(h,t,b),w(t,n),$&&$.m(n,null),w(n,i),w(n,r),w(r,c),w(r,l),w(r,f),w(r,s),w(r,p),w(r,d),w(t,C),w(t,k),m&&m.m(k,null),w(k,L),w(k,R),w(R,P),e[15](t)},p(h,[b]){h[2]=="true"?$||($=lt(),$.c(),$.m(n,i)):$&&($.d(1),$=null),b&2&&G(c,h[1]),b&128&&G(l,h[7]),b&96&&_!==(_="svg Arrow Up "+(h[5]&&h[6]?"Show":"Hidden"))&&u(s,"class",_),b&96&&g!==(g="svg Arrow Down "+(h[5]&&!h[6]?"Show":"Hidden"))&&u(d,"class",g),h[2]=="true"?m||(m=ot(),m.c(),m.m(k,L)):m&&(m.d(1),m=null),b&1&&G(P,h[0]),b&8&&z!==(z=h[3]+" PrizeSec")&&u(k,"class",z),b&8&&v!==(v=h[3]+" casino-tournaments-rank")&&u(t,"class",v),b&8&&E!==(E=h[3]+" casino-tournaments-rank")&&u(t,"part",E)},i:j,o:j,d(h){h&&D(t),$&&$.d(),m&&m.d(),e[15](null)}}}function Zt(e,t,n){let{rankprefix:i="#"}=t,{showicon:r="true"}=t,{tournamentid:c=""}=t,{overallrank:l="0"}=t,{showoverallrank:f="true"}=t,{userrank:s="0"}=t,{prize:o="PrizeName"}=t,{mbsource:_}=t,{displayin:p="row"}=t,{clientstyling:d=""}=t,{clientstylingurl:A=""}=t,g,C,k=!1,L=!0,R,P,z,v,E="";const $=a=>{a.data&&a.data.type==`TournamentRankInfo_${c}`&&(m(a.data.rankInfo),h())},m=a=>{let Y=N=>{n(9,s=N.rank),n(8,l=N.overallRank),n(0,o=N.prize)};if(!v){v=C,Y(a);return}C&&(n(5,k=v!=a.rank),n(6,L=v>a.rank),R=new Date().getTime(),z=setTimeout(()=>{P=new Date().getTime(),(P-R)/1e3>4&&n(5,k=!1),v=C},5e3),Y(a))},h=()=>{n(7,E=f=="true"?`${+s==0?"-":s||"-"}/${+l==0?"-":l}`:s)};At(()=>(C=s==null?void 0:parseInt(s),v=C,n(9,s=s==null?"-":s),window.addEventListener("message",$,!0),h(),()=>{window.removeEventListener("message",$),clearTimeout(z)}));function b(a){Q[a?"unshift":"push"](()=>{g=a,n(4,g)})}return e.$$set=a=>{"rankprefix"in a&&n(1,i=a.rankprefix),"showicon"in a&&n(2,r=a.showicon),"tournamentid"in a&&n(10,c=a.tournamentid),"overallrank"in a&&n(8,l=a.overallrank),"showoverallrank"in a&&n(11,f=a.showoverallrank),"userrank"in a&&n(9,s=a.userrank),"prize"in a&&n(0,o=a.prize),"mbsource"in a&&n(12,_=a.mbsource),"displayin"in a&&n(3,p=a.displayin),"clientstyling"in a&&n(13,d=a.clientstyling),"clientstylingurl"in a&&n(14,A=a.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&8208&&d&&g&&Dt(g,d),e.$$.dirty&16400&&A&&g&&Nt(g,A),e.$$.dirty&4112&&_&&g&&Bt(g,`${_}.Style`),e.$$.dirty&512&&(C=parseInt(s)),e.$$.dirty&512&&s&&h(),e.$$.dirty&256&&l&&h()},[o,i,r,p,g,k,L,E,l,s,c,f,_,d,A,b]}class ht extends jt{constructor(t){super(),It(this,t,Zt,Vt,_t,{rankprefix:1,showicon:2,tournamentid:10,overallrank:8,showoverallrank:11,userrank:9,prize:0,mbsource:12,displayin:3,clientstyling:13,clientstylingurl:14},Jt)}get rankprefix(){return this.$$.ctx[1]}set rankprefix(t){this.$$set({rankprefix:t}),y()}get showicon(){return this.$$.ctx[2]}set showicon(t){this.$$set({showicon:t}),y()}get tournamentid(){return this.$$.ctx[10]}set tournamentid(t){this.$$set({tournamentid:t}),y()}get overallrank(){return this.$$.ctx[8]}set overallrank(t){this.$$set({overallrank:t}),y()}get showoverallrank(){return this.$$.ctx[11]}set showoverallrank(t){this.$$set({showoverallrank:t}),y()}get userrank(){return this.$$.ctx[9]}set userrank(t){this.$$set({userrank:t}),y()}get prize(){return this.$$.ctx[0]}set prize(t){this.$$set({prize:t}),y()}get mbsource(){return this.$$.ctx[12]}set mbsource(t){this.$$set({mbsource:t}),y()}get displayin(){return this.$$.ctx[3]}set displayin(t){this.$$set({displayin:t}),y()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),y()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),y()}}Ht(ht,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},showoverallrank:{},userrank:{},prize:{},mbsource:{},displayin:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=ht;
|