@everymatrix/casino-tournaments-slider-controller 1.44.0 → 1.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoTournamentsRank-BKmXgc2v.cjs +4 -0
- package/components/CasinoTournamentsRank-CzoW1TIL.js +967 -0
- package/components/CasinoTournamentsSliderController-BOYo2AYn.cjs +11 -0
- package/components/CasinoTournamentsSliderController-Ch0c8JsO.js +4392 -0
- package/es2015/casino-tournaments-slider-controller.cjs +1 -0
- package/es2015/casino-tournaments-slider-controller.js +16 -0
- package/package.json +17 -32
- package/README.md +0 -30
- package/dist/casino-tournaments-slider-controller.js +0 -782
- package/dist/casino-tournaments-slider-controller.js.map +0 -1
- package/index.html +0 -47
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -61
- package/src/CasinoTournamentsSliderController.svelte +0 -565
- package/src/i18n.js +0 -27
- package/src/icon.js +0 -3
- package/src/index.ts +0 -4
- package/src/translations.js +0 -23
- package/stories/CasinoTournamentsSliderConstroller.stories.js +0 -13
- package/tsconfig.json +0 -6
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";var Ut=Object.defineProperty,It=Object.defineProperties;var jt=Object.getOwnPropertyDescriptors;var ft=Object.getOwnPropertySymbols;var Ht=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable;var rt=(e,t,n)=>t in e?Ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dt=(e,t)=>{for(var n in t||(t={}))Ht.call(t,n)&&rt(e,n,t[n]);if(ft)for(var n of ft(t))Nt.call(t,n)&&rt(e,n,t[n]);return e},ht=(e,t)=>It(e,jt(t));var A=(e,t,n)=>rt(e,typeof t!="symbol"?t+"":t,n);var gt=(e,t,n)=>new Promise((i,a)=>{var r=o=>{try{s(n.next(o))}catch(c){a(c)}},l=o=>{try{s(n.throw(o))}catch(c){a(c)}},s=o=>o.done?i(o.value):Promise.resolve(o.value).then(r,l);s((n=n.apply(e,t)).next())});function O(){}const yt=e=>e;function bt(e){return e()}function _t(){return Object.create(null)}function I(e){e.forEach(bt)}function st(e){return typeof e=="function"}function kt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let X;function mt(e,t){return e===t?!0:(X||(X=document.createElement("a")),X.href=t,e===X.href)}function Dt(e){return Object.keys(e).length===0}function xt(e,...t){if(e==null){for(const i of t)i(void 0);return O}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Bt(e,t,n){e.$$.on_destroy.push(xt(t,n))}function qt(e){return e==null?"":e}const Ct=typeof window!="undefined";let Ft=Ct?()=>window.performance.now():()=>Date.now(),ot=Ct?e=>requestAnimationFrame(e):O;const q=new Set;function St(e){q.forEach(t=>{t.c(e)||(q.delete(t),t.f())}),q.size!==0&&ot(St)}function Jt(e){let t;return q.size===0&&ot(St),{promise:new Promise(n=>{q.add(t={c:e,f:n})}),abort(){q.delete(t)}}}function v(e,t){e.appendChild(t)}function At(e,t,n){const i=ut(e);if(!i.getElementById(t)){const a=C("style");a.id=t,a.textContent=n,Et(i,a)}}function ut(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Vt(e){const t=C("style");return t.textContent="/* empty */",Et(ut(e),t),t.sheet}function Et(e,t){return v(e.head||e,t),t.sheet}function W(e,t,n){e.insertBefore(t,n||null)}function j(e){e.parentNode&&e.parentNode.removeChild(e)}function Zt(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 Gt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function U(e){return document.createTextNode(e)}function D(){return U(" ")}function Kt(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function f(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Qt(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:f(e,t,n)}function Wt(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}function Xt(e){return Array.from(e.childNodes)}function Z(e,t){t=""+t,e.data!==t&&(e.data=t)}function Yt(e,t,n,i){e.style.setProperty(t,n,"")}function te(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function ee(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const et=new Map;let nt=0;function ne(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function ie(e,t){const n={stylesheet:Vt(t),rules:{}};return et.set(e,n),n}function $t(e,t,n,i,a,r,l,s=0){const o=16.666/i;let c=`{
|
|
2
|
+
`;for(let _=0;_<=1;_+=o){const S=t+(n-t)*r(_);c+=_*100+`%{${l(S,1-S)}}
|
|
3
|
+
`}const $=c+`100% {${l(n,1-n)}}
|
|
4
|
+
}`,h=`__svelte_${ne($)}_${s}`,g=ut(e),{stylesheet:w,rules:d}=et.get(g)||ie(g,e);d[h]||(d[h]=!0,w.insertRule(`@keyframes ${h} ${$}`,w.cssRules.length));const y=e.style.animation||"";return e.style.animation=`${y?`${y}, `:""}${h} ${i}ms linear ${a}ms 1 both`,nt+=1,h}function se(e,t){const n=(e.style.animation||"").split(", "),i=n.filter(t?r=>r.indexOf(t)<0:r=>r.indexOf("__svelte")===-1),a=n.length-i.length;a&&(e.style.animation=i.join(", "),nt-=a,nt||re())}function re(){ot(()=>{nt||(et.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&j(t)}),et.clear())})}let K;function G(e){K=e}function ae(){if(!K)throw new Error("Function called outside component initialization");return K}function Rt(e){ae().$$.on_mount.push(e)}const B=[],it=[];let F=[];const pt=[],le=Promise.resolve();let ct=!1;function ce(){ct||(ct=!0,le.then(E))}function Q(e){F.push(e)}const at=new Set;let N=0;function E(){if(N!==0)return;const e=K;do{try{for(;N<B.length;){const t=B[N];N++,G(t),oe(t.$$)}}catch(t){throw B.length=0,N=0,t}for(G(null),B.length=0,N=0;it.length;)it.pop()();for(let t=0;t<F.length;t+=1){const n=F[t];at.has(n)||(at.add(n),n())}F.length=0}while(B.length);for(;pt.length;)pt.pop()();ct=!1,at.clear(),G(e)}function oe(e){if(e.fragment!==null){e.update(),I(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Q)}}function ue(e){const t=[],n=[];F.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),F=t}let V;function fe(){return V||(V=Promise.resolve(),V.then(()=>{V=null})),V}function lt(e,t,n){e.dispatchEvent(te(`${t?"intro":"outro"}${n}`))}const Y=new Set;let M;function de(){M={r:0,c:[],p:M}}function he(){M.r||I(M.c),M=M.p}function zt(e,t){e&&e.i&&(Y.delete(e),e.i(t))}function ge(e,t,n,i){if(e&&e.o){if(Y.has(e))return;Y.add(e),M.c.push(()=>{Y.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}const _e={duration:0};function me(e,t,n,i){let r=t(e,n,{direction:"both"}),l=i?0:1,s=null,o=null,c=null,$;function h(){c&&se(e,c)}function g(d,y){const _=d.b-l;return y*=Math.abs(_),{a:l,b:d.b,d:_,duration:y,start:d.start,end:d.start+y,group:d.group}}function w(d){const{delay:y=0,duration:_=300,easing:S=yt,tick:R=O,css:k}=r||_e,b={start:Ft()+y,b:d};d||(b.group=M,M.r+=1),"inert"in e&&(d?$!==void 0&&(e.inert=$):($=e.inert,e.inert=!0)),s||o?o=b:(k&&(h(),c=$t(e,l,d,_,y,S,k)),d&&R(0,1),s=g(b,_),Q(()=>lt(e,d,"start")),Jt(P=>{if(o&&P>o.start&&(s=g(o,_),o=null,lt(e,s.b,"start"),k&&(h(),c=$t(e,l,s.b,s.duration,0,S,r.css))),s){if(P>=s.end)R(l=s.b,1-l),lt(e,s.b,"end"),o||(s.b?h():--s.group.r||I(s.group.c)),s=null;else if(P>=s.start){const T=P-s.start;l=s.a+s.d*S(T/s.duration),R(l,1-l)}}return!!(s||o)}))}return{run(d){st(r)?fe().then(()=>{r=r({direction:d?"in":"out"}),w(d)}):w(d)},end(){h(),s=o=null}}}function $e(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function pe(e,t,n){const{fragment:i,after_update:a}=e.$$;i&&i.m(t,n),Q(()=>{const r=e.$$.on_mount.map(bt).filter(st);e.$$.on_destroy?e.$$.on_destroy.push(...r):I(r),e.$$.on_mount=[]}),a.forEach(Q)}function we(e,t){const n=e.$$;n.fragment!==null&&(ue(n.after_update),I(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ve(e,t){e.$$.dirty[0]===-1&&(B.push(e),ce(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Pt(e,t,n,i,a,r,l=null,s=[-1]){const o=K;G(e);const c=e.$$={fragment:null,ctx:[],props:r,update:O,not_equal:a,bound:_t(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:_t(),dirty:s,skip_bound:!1,root:t.target||o.$$.root};l&&l(c.root);let $=!1;if(c.ctx=n?n(e,t.props||{},(h,g,...w)=>{const d=w.length?w[0]:g;return c.ctx&&a(c.ctx[h],c.ctx[h]=d)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](d),$&&ve(e,h)),g}):[],c.update(),$=!0,I(c.before_update),c.fragment=i?i(c.ctx):!1,t.target){if(t.hydrate){const h=Xt(t.target);c.fragment&&c.fragment.l(h),h.forEach(j)}else c.fragment&&c.fragment.c();t.intro&&zt(e.$$.fragment),pe(e,t.target,t.anchor),E()}G(o)}let Lt;typeof HTMLElement=="function"&&(Lt=class extends HTMLElement{constructor(t,n,i){super();A(this,"$$ctor");A(this,"$$s");A(this,"$$c");A(this,"$$cn",!1);A(this,"$$d",{});A(this,"$$r",!1);A(this,"$$p_d",{});A(this,"$$l",{});A(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 a=this.$$c.$on(t,n);this.$$l_u.set(n,a)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const a=this.$$l_u.get(n);a&&(a(),this.$$l_u.delete(n))}}connectedCallback(){return gt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(r){return()=>{let l;return{c:function(){l=C("slot"),r!=="default"&&f(l,"name",r)},m:function(c,$){W(c,l,$)},d:function(c){c&&j(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=ee(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]=tt(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(dt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const a=()=>{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=tt(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(a),a();for(const r in this.$$l)for(const l of this.$$l[r]){const s=this.$$c.$on(r,l);this.$$l_u.set(l,s)}this.$$l={}}})}attributeChangedCallback(t,n,i){var a;this.$$r||(t=this.$$g_p(t),this.$$d[t]=tt(t,i,this.$$p_d,"toProp"),(a=this.$$c)==null||a.$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 tt(e,t,n,i){var r;const a=(r=n[e])==null?void 0:r.type;if(t=a==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(a){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(a){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Tt(e,t,n,i,a,r){let l=class extends Lt{constructor(){super(e,n,a),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Object.keys(t).forEach(s=>{Object.defineProperty(l.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(o){var c;o=tt(s,o,t),this.$$d[s]=o,(c=this.$$c)==null||c.$set({[s]:o})}})}),i.forEach(s=>{Object.defineProperty(l.prototype,s,{get(){var o;return(o=this.$$c)==null?void 0:o[s]}})}),e.element=l,l}class Mt{constructor(){A(this,"$$");A(this,"$$set")}$destroy(){we(this,1),this.$destroy=O}$on(t,n){if(!st(n))return O;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const a=i.indexOf(n);a!==-1&&i.splice(a,1)}}$set(t){this.$$set&&!Dt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ye="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ye);const be="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20aria-hidden='true'%20focusable='false'%20data-prefix='fas'%20data-icon='award'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20384%20512'%20class='svg-inline--fa%20fa-award%20fa-w-12%20fa-3x'%3e%3cpath%20fill='currentColor'%20d='M97.12%20362.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%20448.7c-4.39%2010.77%203.81%2022.47%2015.43%2022.03l52.69-2.01L105.56%20507c8%208.44%2022.04%205.81%2026.43-4.96l52.05-127.62c-10.84%206.04-22.87%209.58-35.31%209.58-19.5%200-37.82-7.59-51.61-21.37zM382.8%20448.7l-45.37-111.24c-7.56%205.88-15.92%2010.77-25.43%2013.32-21.07%205.64-16.45%203.18-25.12%2011.85-13.79%2013.78-32.12%2021.37-51.62%2021.37-12.44%200-24.47-3.55-35.31-9.58L252%20502.04c4.39%2010.77%2018.44%2013.4%2026.43%204.96l36.25-38.28%2052.69%202.01c11.62.44%2019.82-11.27%2015.43-22.03zM263%20340c15.28-15.55%2017.03-14.21%2038.79-20.14%2013.89-3.79%2024.75-14.84%2028.47-28.98%207.48-28.4%205.54-24.97%2025.95-45.75%2010.17-10.35%2014.14-25.44%2010.42-39.58-7.47-28.38-7.48-24.42%200-52.83%203.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%207.6-23.98%207.61-51.9%200-13.89-3.79-28.72.25-38.89%2010.61-20.41%2020.78-17.05%2018.8-44.94%2026.41-13.89%203.79-24.75%2014.84-28.47%2028.98-7.47%2028.39-5.54%2024.97-25.95%2045.75-10.17%2010.35-14.15%2025.44-10.42%2039.58%207.47%2028.36%207.48%2024.4%200%2052.82-3.72%2014.14.25%2029.23%2010.42%2039.59%2020.41%2020.78%2018.47%2017.35%2025.95%2045.75%203.72%2014.14%2014.58%2025.19%2028.47%2028.98C104.6%20325.96%20106.27%20325%20121%20340c13.23%2013.47%2033.84%2015.88%2049.74%205.82a39.676%2039.676%200%200%201%2042.53%200c15.89%2010.06%2036.5%207.65%2049.73-5.82zM97.66%20175.96c0-53.03%2042.24-96.02%2094.34-96.02s94.34%2042.99%2094.34%2096.02-42.24%2096.02-94.34%2096.02-94.34-42.99-94.34-96.02z'%20class=''%3e%3c/path%3e%3c/svg%3e",ke="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20aria-hidden='true'%20focusable='false'%20data-prefix='fas'%20data-icon='user'%20class='svg-inline--fa%20fa-user'%20role='img'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20448%20512'%3e%3cpath%20fill='currentColor'%20d='M224%20256c70.7%200%20128-57.31%20128-128s-57.3-128-128-128C153.3%200%2096%2057.31%2096%20128S153.3%20256%20224%20256zM274.7%20304H173.3C77.61%20304%200%20381.6%200%20477.3c0%2019.14%2015.52%2034.67%2034.66%2034.67h378.7C432.5%20512%20448%20496.5%20448%20477.3C448%20381.6%20370.4%20304%20274.7%20304z'%3e%3c/path%3e%3c/svg%3e",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",Ce="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){At(e,"svelte-1a60cag",".row.svelte-1a60cag.svelte-1a60cag{display:flex}.row.svelte-1a60cag .RankSec.svelte-1a60cag,.row.svelte-1a60cag .PrizeSec.svelte-1a60cag{width:49%}.col.svelte-1a60cag.svelte-1a60cag{display:inline-block}.RankSec.svelte-1a60cag.svelte-1a60cag,.PrizeSec.svelte-1a60cag.svelte-1a60cag{background-color:#c4c4c4;display:flex;padding:5px;margin:5px}.RankSec.svelte-1a60cag span.svelte-1a60cag,.PrizeSec.svelte-1a60cag span.svelte-1a60cag{text-align:center}.casino-tournaments-rank.svelte-1a60cag.svelte-1a60cag{background:transparent;min-height:22px;width:100%}.Icon.svelte-1a60cag.svelte-1a60cag{width:22px;height:22px;display:flex;border-right:2px solid;margin-right:5px;padding-right:3px}.RankInfo.svelte-1a60cag.svelte-1a60cag{vertical-align:middle;line-height:22px;font-weight:bold;padding-left:5px;padding-right:10px}.svg.Arrow.Up.svelte-1a60cag.svelte-1a60cag,.svg.Arrow.Down.svelte-1a60cag.svelte-1a60cag{position:absolute;width:15px;height:15px;vertical-align:bottom;padding-left:3px;display:none;padding:3px;padding:3px}.svg.Arrow.Up.Show.svelte-1a60cag.svelte-1a60cag,.svg.Arrow.Down.Show.svelte-1a60cag.svelte-1a60cag{display:inline-flex}.svg.Arrow.Up.Hidden.svelte-1a60cag.svelte-1a60cag,.svg.Arrow.Down.Hidden.svelte-1a60cag.svelte-1a60cag{display:none}.svg.Arrow.Up.svelte-1a60cag.svelte-1a60cag,.svg.Arrow.Down.svelte-1a60cag.svelte-1a60cag{animation-name:svelte-1a60cag-twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes svelte-1a60cag-twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}")}function wt(e){let t;return{c(){t=C("span"),t.innerHTML=`<img alt="user" src="${ke}"/>`,f(t,"class","Icon UserIcon svelte-1a60cag"),f(t,"part","Icon UserIcon")},m(n,i){W(n,t,i)},d(n){n&&j(t)}}}function vt(e){let t;return{c(){t=C("span"),t.innerHTML=`<img alt="prize" src="${be}"/>`,f(t,"class","Icon PrizeIcon svelte-1a60cag"),f(t,"part","Icon PrizeIcon")},m(n,i){W(n,t,i)},d(n){n&&j(t)}}}function Ae(e){let t,n,i,a,r,l=(e[1]==0?"-":e[0]?e[0]:"-")+"",s,o,c=(e[1]==0?"-":e[1])+"",$,h,g,w,d,y,_,S,R,k,b,P,T,J,H,u,L,m=e[4]=="true"&&wt(),x=e[4]=="true"&&vt();return{c(){t=C("div"),n=C("div"),m&&m.c(),i=D(),a=C("span"),r=U(e[3]),s=U(l),o=U("/"),$=U(c),h=D(),g=C("img"),y=D(),_=C("img"),k=D(),b=C("div"),x&&x.c(),P=D(),T=C("span"),J=U(e[2]),f(g,"part","Rank_Arror_UP"),f(g,"alt","Rank Up"),mt(g.src,w=xe)||f(g,"src",w),f(g,"width","20"),f(g,"height","20"),f(g,"class",d="svg Arrow Up "+(e[7]&&e[8]?"Show":"Hidden")+" svelte-1a60cag"),f(_,"part","Rank_Arror_Down"),f(_,"alt","Rank Down"),mt(_.src,S=Ce)||f(_,"src",S),f(_,"width","10"),f(_,"height","10"),f(_,"class",R="svg Arrow Down "+(e[7]&&!e[8]?"Show":"Hidden")+" svelte-1a60cag"),f(a,"class","RankInfo svelte-1a60cag"),f(a,"part","RankText"),f(n,"class","RankSec svelte-1a60cag"),f(n,"part","Rank"),f(T,"class","RankInfo UserPrize svelte-1a60cag"),f(T,"part","PrizeText"),f(b,"class",H=e[5]+" PrizeSec svelte-1a60cag"),f(b,"part","Prize"),f(t,"class",u=e[5]+" casino-tournaments-rank svelte-1a60cag"),f(t,"part",L=e[5]+" casino-tournaments-rank")},m(p,z){W(p,t,z),v(t,n),m&&m.m(n,null),v(n,i),v(n,a),v(a,r),v(a,s),v(a,o),v(a,$),v(a,h),v(a,g),v(a,y),v(a,_),v(t,k),v(t,b),x&&x.m(b,null),v(b,P),v(b,T),v(T,J),e[12](t)},p(p,[z]){p[4]=="true"?m||(m=wt(),m.c(),m.m(n,i)):m&&(m.d(1),m=null),z&8&&Z(r,p[3]),z&3&&l!==(l=(p[1]==0?"-":p[0]?p[0]:"-")+"")&&Z(s,l),z&2&&c!==(c=(p[1]==0?"-":p[1])+"")&&Z($,c),z&384&&d!==(d="svg Arrow Up "+(p[7]&&p[8]?"Show":"Hidden")+" svelte-1a60cag")&&f(g,"class",d),z&384&&R!==(R="svg Arrow Down "+(p[7]&&!p[8]?"Show":"Hidden")+" svelte-1a60cag")&&f(_,"class",R),p[4]=="true"?x||(x=vt(),x.c(),x.m(b,P)):x&&(x.d(1),x=null),z&4&&Z(J,p[2]),z&32&&H!==(H=p[5]+" PrizeSec svelte-1a60cag")&&f(b,"class",H),z&32&&u!==(u=p[5]+" casino-tournaments-rank svelte-1a60cag")&&f(t,"class",u),z&32&&L!==(L=p[5]+" casino-tournaments-rank")&&f(t,"part",L)},i:O,o:O,d(p){p&&j(t),m&&m.d(),x&&x.d(),e[12](null)}}}function Ee(e,t,n){let{rankprefix:i="#"}=t,{showicon:a="true"}=t,{tournamentid:r=""}=t,{overallrank:l="0"}=t,{userrank:s="0"}=t,{prize:o="PrizeName"}=t,{displayin:c="row"}=t,{clientstyling:$=""}=t,{clientstylingurl:h=""}=t,g,w,d=!1,y=!0,_,S,R,k;const b=u=>{u.data&&u.data.type==`TournamentRankInfo_${r}`&&P(u.data.rankInfo)},P=u=>{let L=m=>{n(0,s=m.rank),n(1,l=m.overallRank),n(2,o=m.prize)};if(!k){k=w,L(u);return}w&&(n(7,d=k!=u.rank),n(8,y=k>u.rank),_=new Date().getTime(),R=setTimeout(()=>{S=new Date().getTime(),(S-_)/1e3>4&&n(7,d=!1),k=w},5e3),L(u))},T=()=>{let u=document.createElement("style");u.innerHTML=$,g.appendChild(u)},J=()=>{let u=new URL(h),L=document.createElement("style");fetch(u.href).then(m=>m.text()).then(m=>{L.innerHTML=m,setTimeout(()=>{g.appendChild(L)},1),setTimeout(()=>{},500)})};Rt(()=>(w=s==null?void 0:parseInt(s),k=w,n(0,s=s==null?"-":s),window.addEventListener("message",b,!0),()=>{window.removeEventListener("message",b),clearTimeout(R)}));function H(u){it[u?"unshift":"push"](()=>{g=u,n(6,g)})}return e.$$set=u=>{"rankprefix"in u&&n(3,i=u.rankprefix),"showicon"in u&&n(4,a=u.showicon),"tournamentid"in u&&n(9,r=u.tournamentid),"overallrank"in u&&n(1,l=u.overallrank),"userrank"in u&&n(0,s=u.userrank),"prize"in u&&n(2,o=u.prize),"displayin"in u&&n(5,c=u.displayin),"clientstyling"in u&&n(10,$=u.clientstyling),"clientstylingurl"in u&&n(11,h=u.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&1088&&g&&$&&T(),e.$$.dirty&2112&&g&&h&&J(),e.$$.dirty&1&&(w=parseInt(s))},[s,l,o,i,a,c,g,d,y,r,$,h,H]}class Ot extends Mt{constructor(t){super(),Pt(this,t,Ee,Ae,kt,{rankprefix:3,showicon:4,tournamentid:9,overallrank:1,userrank:0,prize:2,displayin:5,clientstyling:10,clientstylingurl:11},Se)}get rankprefix(){return this.$$.ctx[3]}set rankprefix(t){this.$$set({rankprefix:t}),E()}get showicon(){return this.$$.ctx[4]}set showicon(t){this.$$set({showicon:t}),E()}get tournamentid(){return this.$$.ctx[9]}set tournamentid(t){this.$$set({tournamentid:t}),E()}get overallrank(){return this.$$.ctx[1]}set overallrank(t){this.$$set({overallrank:t}),E()}get userrank(){return this.$$.ctx[0]}set userrank(t){this.$$set({userrank:t}),E()}get prize(){return this.$$.ctx[2]}set prize(t){this.$$set({prize:t}),E()}get displayin(){return this.$$.ctx[5]}set displayin(t){this.$$set({displayin:t}),E()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),E()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),E()}}Tt(Ot,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},userrank:{},prize:{},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=Q;exports.append=v;exports.append_styles=At;exports.attr=f;exports.binding_callbacks=it;exports.check_outros=he;exports.component_subscribe=Bt;exports.create_bidirectional_transition=me;exports.create_custom_element=Tt;exports.destroy_each=Zt;exports.detach=j;exports.element=C;exports.ensure_array_like=$e;exports.flush=E;exports.group_outros=de;exports.identity=yt;exports.init=Pt;exports.insert=W;exports.is_function=st;exports.listen=Kt;exports.noop=O;exports.null_to_empty=qt;exports.onMount=Rt;exports.run_all=I;exports.safe_not_equal=kt;exports.set_custom_element_data=Qt;exports.set_data=Z;exports.set_style=Yt;exports.space=D;exports.subscribe=xt;exports.svg_element=Gt;exports.text=U;exports.transition_in=zt;exports.transition_out=ge;exports.xlink_attr=Wt;
|