@everymatrix/casino-tournaments-slider-controller 1.87.26 → 1.87.28

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.
@@ -1,4 +0,0 @@
1
- "use strict";var jt=Object.defineProperty,Ht=Object.defineProperties;var Nt=Object.getOwnPropertyDescriptors;var ut=Object.getOwnPropertySymbols;var Dt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable;var it=(e,t,n)=>t in e?jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ft=(e,t)=>{for(var n in t||(t={}))Dt.call(t,n)&&it(e,n,t[n]);if(ut)for(var n of ut(t))Bt.call(t,n)&&it(e,n,t[n]);return e},ht=(e,t)=>Ht(e,Nt(t));var E=(e,t,n)=>(it(e,typeof t!="symbol"?t+"":t,n),n);var dt=(e,t,n)=>new Promise((i,o)=>{var r=s=>{try{c(n.next(s))}catch(a){o(a)}},l=s=>{try{c(n.throw(s))}catch(a){o(a)}},c=s=>s.done?i(s.value):Promise.resolve(s.value).then(r,l);c((n=n.apply(e,t)).next())});function T(){}const yt=e=>e;function bt(e){return e()}function gt(){return Object.create(null)}function U(e){e.forEach(bt)}function nt(e){return typeof e=="function"}function kt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let K;function mt(e,t){return e===t?!0:(K||(K=document.createElement("a")),K.href=t,e===K.href)}function qt(e){return Object.keys(e).length===0}function xt(e,...t){if(e==null){for(const i of t)i(void 0);return T}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Ft(e,t,n){e.$$.on_destroy.push(xt(t,n))}const vt=typeof window!="undefined";let Jt=vt?()=>window.performance.now():()=>Date.now(),ct=vt?e=>requestAnimationFrame(e):T;const N=new Set;function St(e){N.forEach(t=>{t.c(e)||(N.delete(t),t.f())}),N.size!==0&&ct(St)}function Vt(e){let t;return N.size===0&&ct(St),{promise:new Promise(n=>{N.add(t={c:e,f:n})}),abort(){N.delete(t)}}}function k(e,t){e.appendChild(t)}function Ct(e,t,n){const i=lt(e);if(!i.getElementById(t)){const o=C("style");o.id=t,o.textContent=n,At(i,o)}}function lt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Zt(e){const t=C("style");return t.textContent="/* empty */",At(lt(e),t),t.sheet}function At(e,t){return k(e.head||e,t),t.sheet}function Z(e,t,n){e.insertBefore(t,n||null)}function I(e){e.parentNode&&e.parentNode.removeChild(e)}function Gt(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function C(e){return document.createElement(e)}function Kt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function q(e){return document.createTextNode(e)}function j(){return q(" ")}function Qt(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function h(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Wt(e,t,n){const i=t.toLowerCase();i in e?e[i]=typeof e[i]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:h(e,t,n)}function Xt(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}function Yt(e){return Array.from(e.childNodes)}function Q(e,t){t=""+t,e.data!==t&&(e.data=t)}function te(e,t,n,i){e.style.setProperty(t,n,"")}function ee(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function ne(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const Y=new Map;let tt=0;function ie(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function se(e,t){const n={stylesheet:Zt(t),rules:{}};return Y.set(e,n),n}function _t(e,t,n,i,o,r,l,c=0){const s=16.666/i;let a=`{
2
- `;for(let g=0;g<=1;g+=s){const S=t+(n-t)*r(g);a+=g*100+`%{${l(S,1-S)}}
3
- `}const _=a+`100% {${l(n,1-n)}}
4
- }`,d=`__svelte_${ie(_)}_${c}`,m=lt(e),{stylesheet:w,rules:u}=Y.get(m)||se(m,e);u[d]||(u[d]=!0,w.insertRule(`@keyframes ${d} ${_}`,w.cssRules.length));const p=e.style.animation||"";return e.style.animation=`${p?`${p}, `:""}${d} ${i}ms linear ${o}ms 1 both`,tt+=1,d}function re(e,t){const n=(e.style.animation||"").split(", "),i=n.filter(t?r=>r.indexOf(t)<0:r=>r.indexOf("__svelte")===-1),o=n.length-i.length;o&&(e.style.animation=i.join(", "),tt-=o,tt||oe())}function oe(){ct(()=>{tt||(Y.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&I(t)}),Y.clear())})}let J;function F(e){J=e}function ce(){if(!J)throw new Error("Function called outside component initialization");return J}function Rt(e){ce().$$.on_mount.push(e)}const H=[],et=[];let D=[];const $t=[],le=Promise.resolve();let ot=!1;function ae(){ot||(ot=!0,le.then(v))}function V(e){D.push(e)}const st=new Set;let O=0;function v(){if(O!==0)return;const e=J;do{try{for(;O<H.length;){const t=H[O];O++,F(t),ue(t.$$)}}catch(t){throw H.length=0,O=0,t}for(F(null),H.length=0,O=0;et.length;)et.pop()();for(let t=0;t<D.length;t+=1){const n=D[t];st.has(n)||(st.add(n),n())}D.length=0}while(H.length);for(;$t.length;)$t.pop()();ot=!1,st.clear(),F(e)}function ue(e){if(e.fragment!==null){e.update(),U(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(V)}}function fe(e){const t=[],n=[];D.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),D=t}let B;function he(){return B||(B=Promise.resolve(),B.then(()=>{B=null})),B}function rt(e,t,n){e.dispatchEvent(ee(`${t?"intro":"outro"}${n}`))}const W=new Set;let M;function de(){M={r:0,c:[],p:M}}function ge(){M.r||U(M.c),M=M.p}function Et(e,t){e&&e.i&&(W.delete(e),e.i(t))}function me(e,t,n,i){if(e&&e.o){if(W.has(e))return;W.add(e),M.c.push(()=>{W.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}const _e={duration:0};function $e(e,t,n,i){let r=t(e,n,{direction:"both"}),l=i?0:1,c=null,s=null,a=null,_;function d(){a&&re(e,a)}function m(u,p){const g=u.b-l;return p*=Math.abs(g),{a:l,b:u.b,d:g,duration:p,start:u.start,end:u.start+p,group:u.group}}function w(u){const{delay:p=0,duration:g=300,easing:S=yt,tick:A=T,css:z}=r||_e,L={start:Jt()+p,b:u};u||(L.group=M,M.r+=1),"inert"in e&&(u?_!==void 0&&(e.inert=_):(_=e.inert,e.inert=!0)),c||s?s=L:(z&&(d(),a=_t(e,l,u,g,p,S,z)),u&&A(0,1),c=m(L,g),V(()=>rt(e,u,"start")),Vt(y=>{if(s&&y>s.start&&(c=m(s,g),s=null,rt(e,c.b,"start"),z&&(d(),a=_t(e,l,c.b,c.duration,0,S,r.css))),c){if(y>=c.end)A(l=c.b,1-l),rt(e,c.b,"end"),s||(c.b?d():--c.group.r||U(c.group.c)),c=null;else if(y>=c.start){const P=y-c.start;l=c.a+c.d*S(P/c.duration),A(l,1-l)}}return!!(c||s)}))}return{run(u){nt(r)?he().then(()=>{r=r({direction:u?"in":"out"}),w(u)}):w(u)},end(){d(),c=s=null}}}function pe(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function we(e,t,n){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),V(()=>{const r=e.$$.on_mount.map(bt).filter(nt);e.$$.on_destroy?e.$$.on_destroy.push(...r):U(r),e.$$.on_mount=[]}),o.forEach(V)}function ye(e,t){const n=e.$$;n.fragment!==null&&(fe(n.after_update),U(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function be(e,t){e.$$.dirty[0]===-1&&(H.push(e),ae(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Lt(e,t,n,i,o,r,l=null,c=[-1]){const s=J;F(e);const a=e.$$={fragment:null,ctx:[],props:r,update:T,not_equal:o,bound:gt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(s?s.$$.context:[])),callbacks:gt(),dirty:c,skip_bound:!1,root:t.target||s.$$.root};l&&l(a.root);let _=!1;if(a.ctx=n?n(e,t.props||{},(d,m,...w)=>{const u=w.length?w[0]:m;return a.ctx&&o(a.ctx[d],a.ctx[d]=u)&&(!a.skip_bound&&a.bound[d]&&a.bound[d](u),_&&be(e,d)),m}):[],a.update(),_=!0,U(a.before_update),a.fragment=i?i(a.ctx):!1,t.target){if(t.hydrate){const d=Yt(t.target);a.fragment&&a.fragment.l(d),d.forEach(I)}else a.fragment&&a.fragment.c();t.intro&&Et(e.$$.fragment),we(e,t.target,t.anchor),v()}F(s)}let zt;typeof HTMLElement=="function"&&(zt=class extends HTMLElement{constructor(t,n,i){super();E(this,"$$ctor");E(this,"$$s");E(this,"$$c");E(this,"$$cn",!1);E(this,"$$d",{});E(this,"$$r",!1);E(this,"$$p_d",{});E(this,"$$l",{});E(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 o=this.$$c.$on(t,n);this.$$l_u.set(n,o)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return dt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(r){return()=>{let l;return{c:function(){l=C("slot"),r!=="default"&&h(l,"name",r)},m:function(a,_){Z(a,l,_)},d:function(a){a&&I(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=ne(this);for(const r of this.$$s)r in i&&(n[r]=[t(r)]);for(const r of this.attributes){const l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=X(l,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:ht(ft({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const r in this.$$p_d)if(this.$$d[r]=this.$$c.$$.ctx[this.$$c.$$.props[r]],this.$$p_d[r].reflect){const l=X(r,this.$$d[r],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const r in this.$$l)for(const l of this.$$l[r]){const c=this.$$c.$on(r,l);this.$$l_u.set(l,c)}this.$$l={}}})}attributeChangedCallback(t,n,i){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=X(t,i,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$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 X(e,t,n,i){var r;const o=(r=n[e])==null?void 0:r.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(o){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(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Pt(e,t,n,i,o,r){let l=class extends zt{constructor(){super(e,n,o),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(c=>(t[c].attribute||c).toLowerCase())}};return Object.keys(t).forEach(c=>{Object.defineProperty(l.prototype,c,{get(){return this.$$c&&c in this.$$c?this.$$c[c]:this.$$d[c]},set(s){var a;s=X(c,s,t),this.$$d[c]=s,(a=this.$$c)==null||a.$set({[c]:s})}})}),i.forEach(c=>{Object.defineProperty(l.prototype,c,{get(){var s;return(s=this.$$c)==null?void 0:s[c]}})}),e.element=l,l}class Mt{constructor(){E(this,"$$");E(this,"$$set")}$destroy(){ye(this,1),this.$destroy=T}$on(t,n){if(!nt(n))return T;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(t){this.$$set&&!qt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ke="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ke);function Tt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Ut(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,e&&e.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function It(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,o=>{i.innerHTML=o,e&&e.appendChild(i)})}}const xe="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",ve="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 Se(e){Ct(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 pt(e){let t;return{c(){t=C("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>',h(t,"class","Icon UserIcon"),h(t,"part","Icon UserIcon")},m(n,i){Z(n,t,i)},d(n){n&&I(t)}}}function wt(e){let t;return{c(){t=C("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>',h(t,"class","Icon PrizeIcon"),h(t,"part","Icon PrizeIcon")},m(n,i){Z(n,t,i)},d(n){n&&I(t)}}}function Ce(e){let t,n,i,o,r,l,c,s,a,_,d,m,w,u,p,g,S,A,z,L,y,P,b=e[2]=="true"&&pt(),x=e[2]=="true"&&wt();return{c(){t=C("div"),n=C("div"),b&&b.c(),i=j(),o=C("span"),r=q(e[1]),l=q(e[7]),c=j(),s=C("img"),d=j(),m=C("img"),p=j(),g=C("div"),x&&x.c(),S=j(),A=C("span"),z=q(e[0]),h(s,"part","Rank_Arror_UP"),h(s,"alt","Rank Up"),mt(s.src,a=xe)||h(s,"src",a),h(s,"width","20"),h(s,"height","20"),h(s,"class",_="svg Arrow Up "+(e[5]&&e[6]?"Show":"Hidden")),h(m,"part","Rank_Arror_Down"),h(m,"alt","Rank Down"),mt(m.src,w=ve)||h(m,"src",w),h(m,"width","10"),h(m,"height","10"),h(m,"class",u="svg Arrow Down "+(e[5]&&!e[6]?"Show":"Hidden")),h(o,"class","RankInfo"),h(o,"part","RankText"),h(n,"class","RankSec"),h(n,"part","Rank"),h(A,"class","RankInfo UserPrize"),h(A,"part","PrizeText"),h(g,"class",L=e[3]+" PrizeSec"),h(g,"part","Prize"),h(t,"class",y=e[3]+" casino-tournaments-rank"),h(t,"part",P=e[3]+" casino-tournaments-rank")},m($,R){Z($,t,R),k(t,n),b&&b.m(n,null),k(n,i),k(n,o),k(o,r),k(o,l),k(o,c),k(o,s),k(o,d),k(o,m),k(t,p),k(t,g),x&&x.m(g,null),k(g,S),k(g,A),k(A,z),e[15](t)},p($,[R]){$[2]=="true"?b||(b=pt(),b.c(),b.m(n,i)):b&&(b.d(1),b=null),R&2&&Q(r,$[1]),R&128&&Q(l,$[7]),R&96&&_!==(_="svg Arrow Up "+($[5]&&$[6]?"Show":"Hidden"))&&h(s,"class",_),R&96&&u!==(u="svg Arrow Down "+($[5]&&!$[6]?"Show":"Hidden"))&&h(m,"class",u),$[2]=="true"?x||(x=wt(),x.c(),x.m(g,S)):x&&(x.d(1),x=null),R&1&&Q(z,$[0]),R&8&&L!==(L=$[3]+" PrizeSec")&&h(g,"class",L),R&8&&y!==(y=$[3]+" casino-tournaments-rank")&&h(t,"class",y),R&8&&P!==(P=$[3]+" casino-tournaments-rank")&&h(t,"part",P)},i:T,o:T,d($){$&&I(t),b&&b.d(),x&&x.d(),e[15](null)}}}function Ae(e,t,n){let{rankprefix:i="#"}=t,{showicon:o="true"}=t,{tournamentid:r=""}=t,{overallrank:l="0"}=t,{showoverallrank:c="true"}=t,{userrank:s="0"}=t,{prize:a="PrizeName"}=t,{mbsource:_}=t,{displayin:d="row"}=t,{clientstyling:m=""}=t,{clientstylingurl:w=""}=t,u,p,g=!1,S=!0,A,z,L,y,P="";const b=f=>{f.data&&f.data.type==`TournamentRankInfo_${r}`&&(x(f.data.rankInfo),$())},x=f=>{let at=G=>{n(9,s=G.rank),n(8,l=G.overallRank),n(0,a=G.prize)};if(!y){y=p,at(f);return}p&&(n(5,g=y!=f.rank),n(6,S=y>f.rank),A=new Date().getTime(),L=setTimeout(()=>{z=new Date().getTime(),(z-A)/1e3>4&&n(5,g=!1),y=p},5e3),at(f))},$=()=>{n(7,P=c=="true"?`${+s==0?"-":s||"-"}/${+l==0?"-":l}`:s)};Rt(()=>(p=s==null?void 0:parseInt(s),y=p,n(9,s=s==null?"-":s),window.addEventListener("message",b,!0),$(),()=>{window.removeEventListener("message",b),clearTimeout(L)}));function R(f){et[f?"unshift":"push"](()=>{u=f,n(4,u)})}return e.$$set=f=>{"rankprefix"in f&&n(1,i=f.rankprefix),"showicon"in f&&n(2,o=f.showicon),"tournamentid"in f&&n(10,r=f.tournamentid),"overallrank"in f&&n(8,l=f.overallrank),"showoverallrank"in f&&n(11,c=f.showoverallrank),"userrank"in f&&n(9,s=f.userrank),"prize"in f&&n(0,a=f.prize),"mbsource"in f&&n(12,_=f.mbsource),"displayin"in f&&n(3,d=f.displayin),"clientstyling"in f&&n(13,m=f.clientstyling),"clientstylingurl"in f&&n(14,w=f.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&8208&&m&&u&&Tt(u,m),e.$$.dirty&16400&&w&&u&&Ut(u,w),e.$$.dirty&4112&&_&&u&&It(u,`${_}.Style`),e.$$.dirty&512&&(p=parseInt(s)),e.$$.dirty&512&&s&&$(),e.$$.dirty&256&&l&&$()},[a,i,o,d,u,g,S,P,l,s,r,c,_,m,w,R]}class Ot extends Mt{constructor(t){super(),Lt(this,t,Ae,Ce,kt,{rankprefix:1,showicon:2,tournamentid:10,overallrank:8,showoverallrank:11,userrank:9,prize:0,mbsource:12,displayin:3,clientstyling:13,clientstylingurl:14},Se)}get rankprefix(){return this.$$.ctx[1]}set rankprefix(t){this.$$set({rankprefix:t}),v()}get showicon(){return this.$$.ctx[2]}set showicon(t){this.$$set({showicon:t}),v()}get tournamentid(){return this.$$.ctx[10]}set tournamentid(t){this.$$set({tournamentid:t}),v()}get overallrank(){return this.$$.ctx[8]}set overallrank(t){this.$$set({overallrank:t}),v()}get showoverallrank(){return this.$$.ctx[11]}set showoverallrank(t){this.$$set({showoverallrank:t}),v()}get userrank(){return this.$$.ctx[9]}set userrank(t){this.$$set({userrank:t}),v()}get prize(){return this.$$.ctx[0]}set prize(t){this.$$set({prize:t}),v()}get mbsource(){return this.$$.ctx[12]}set mbsource(t){this.$$set({mbsource:t}),v()}get displayin(){return this.$$.ctx[3]}set displayin(t){this.$$set({displayin:t}),v()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),v()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),v()}}Pt(Ot,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},showoverallrank:{},userrank:{},prize:{},mbsource:{},displayin:{},clientstyling:{},clientstylingurl:{}},[],[],!0);const Re=Object.freeze(Object.defineProperty({__proto__:null,default:Ot},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsRank_ce=Re;exports.SvelteComponent=Mt;exports.add_render_callback=V;exports.append=k;exports.append_styles=Ct;exports.attr=h;exports.binding_callbacks=et;exports.check_outros=ge;exports.component_subscribe=Ft;exports.create_bidirectional_transition=$e;exports.create_custom_element=Pt;exports.destroy_each=Gt;exports.detach=I;exports.element=C;exports.ensure_array_like=pe;exports.flush=v;exports.group_outros=de;exports.identity=yt;exports.init=Lt;exports.insert=Z;exports.is_function=nt;exports.listen=Qt;exports.noop=T;exports.onMount=Rt;exports.run_all=U;exports.safe_not_equal=kt;exports.setClientStyling=Tt;exports.setClientStylingURL=Ut;exports.setStreamStyling=It;exports.set_custom_element_data=Wt;exports.set_data=Q;exports.set_style=te;exports.space=j;exports.subscribe=xt;exports.svg_element=Kt;exports.text=q;exports.transition_in=Et;exports.transition_out=me;exports.xlink_attr=Xt;