@everymatrix/casino-tournaments-slider-controller 1.44.0 → 1.45.2
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-D_sBeKjB.js +963 -0
- package/components/CasinoTournamentsRank-Dlw6G47N.cjs +4 -0
- package/components/CasinoTournamentsSliderController-BZNOrb7P.js +4388 -0
- package/components/CasinoTournamentsSliderController-CE0sIOIW.cjs +11 -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 It=Object.defineProperty,Ot=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?It(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)=>Ot(e,jt(t));var A=(e,t,n)=>rt(e,typeof t!="symbol"?t+"":t,n);var gt=(e,t,n)=>new Promise((i,o)=>{var r=a=>{try{s(n.next(a))}catch(c){o(c)}},l=a=>{try{s(n.throw(a))}catch(c){o(c)}},s=a=>a.done?i(a.value):Promise.resolve(a.value).then(r,l);s((n=n.apply(e,t)).next())});function U(){}const bt=e=>e;function kt(e){return e()}function _t(){return Object.create(null)}function O(e){e.forEach(kt)}function st(e){return typeof e=="function"}function vt(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 U}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Bt(e,t,n){e.$$.on_destroy.push(xt(t,n))}const Ct=typeof window!="undefined";let qt=Ct?()=>window.performance.now():()=>Date.now(),at=Ct?e=>requestAnimationFrame(e):U;const q=new Set;function St(e){q.forEach(t=>{t.c(e)||(q.delete(t),t.f())}),q.size!==0&&at(St)}function Ft(e){let t;return q.size===0&&at(St),{promise:new Promise(n=>{q.add(t={c:e,f:n})}),abort(){q.delete(t)}}}function y(e,t){e.appendChild(t)}function At(e,t,n){const i=ut(e);if(!i.getElementById(t)){const o=C("style");o.id=t,o.textContent=n,Et(i,o)}}function ut(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Jt(e){const t=C("style");return t.textContent="/* empty */",Et(ut(e),t),t.sheet}function Et(e,t){return y(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 Vt(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 Zt(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function I(e){return document.createTextNode(e)}function D(){return I(" ")}function Gt(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 Kt(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 Qt(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}function Wt(e){return Array.from(e.childNodes)}function Z(e,t){t=""+t,e.data!==t&&(e.data=t)}function Xt(e,t,n,i){e.style.setProperty(t,n,"")}function Yt(e,t,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:i})}function te(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}const et=new Map;let nt=0;function ee(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function ne(e,t){const n={stylesheet:Jt(t),rules:{}};return et.set(e,n),n}function pt(e,t,n,i,o,r,l,s=0){const a=16.666/i;let c=`{
|
|
2
|
+
`;for(let _=0;_<=1;_+=a){const S=t+(n-t)*r(_);c+=_*100+`%{${l(S,1-S)}}
|
|
3
|
+
`}const p=c+`100% {${l(n,1-n)}}
|
|
4
|
+
}`,h=`__svelte_${ee(p)}_${s}`,g=ut(e),{stylesheet:w,rules:d}=et.get(g)||ne(g,e);d[h]||(d[h]=!0,w.insertRule(`@keyframes ${h} ${p}`,w.cssRules.length));const b=e.style.animation||"";return e.style.animation=`${b?`${b}, `:""}${h} ${i}ms linear ${o}ms 1 both`,nt+=1,h}function ie(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(", "),nt-=o,nt||se())}function se(){at(()=>{nt||(et.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&j(t)}),et.clear())})}let K;function G(e){K=e}function re(){if(!K)throw new Error("Function called outside component initialization");return K}function Rt(e){re().$$.on_mount.push(e)}const B=[],it=[];let F=[];const $t=[],oe=Promise.resolve();let ct=!1;function le(){ct||(ct=!0,oe.then(E))}function Q(e){F.push(e)}const ot=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),ce(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];ot.has(n)||(ot.add(n),n())}F.length=0}while(B.length);for(;$t.length;)$t.pop()();ct=!1,ot.clear(),G(e)}function ce(e){if(e.fragment!==null){e.update(),O(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Q)}}function ae(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 ue(){return V||(V=Promise.resolve(),V.then(()=>{V=null})),V}function lt(e,t,n){e.dispatchEvent(Yt(`${t?"intro":"outro"}${n}`))}const Y=new Set;let M;function fe(){M={r:0,c:[],p:M}}function de(){M.r||O(M.c),M=M.p}function zt(e,t){e&&e.i&&(Y.delete(e),e.i(t))}function he(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 ge={duration:0};function _e(e,t,n,i){let r=t(e,n,{direction:"both"}),l=i?0:1,s=null,a=null,c=null,p;function h(){c&&ie(e,c)}function g(d,b){const _=d.b-l;return b*=Math.abs(_),{a:l,b:d.b,d:_,duration:b,start:d.start,end:d.start+b,group:d.group}}function w(d){const{delay:b=0,duration:_=300,easing:S=bt,tick:R=U,css:v}=r||ge,k={start:qt()+b,b:d};d||(k.group=M,M.r+=1),"inert"in e&&(d?p!==void 0&&(e.inert=p):(p=e.inert,e.inert=!0)),s||a?a=k:(v&&(h(),c=pt(e,l,d,_,b,S,v)),d&&R(0,1),s=g(k,_),Q(()=>lt(e,d,"start")),Ft(P=>{if(a&&P>a.start&&(s=g(a,_),a=null,lt(e,s.b,"start"),v&&(h(),c=pt(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"),a||(s.b?h():--s.group.r||O(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||a)}))}return{run(d){st(r)?ue().then(()=>{r=r({direction:d?"in":"out"}),w(d)}):w(d)},end(){h(),s=a=null}}}function me(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function pe(e,t,n){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),Q(()=>{const r=e.$$.on_mount.map(kt).filter(st);e.$$.on_destroy?e.$$.on_destroy.push(...r):O(r),e.$$.on_mount=[]}),o.forEach(Q)}function $e(e,t){const n=e.$$;n.fragment!==null&&(ae(n.after_update),O(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function we(e,t){e.$$.dirty[0]===-1&&(B.push(e),le(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Pt(e,t,n,i,o,r,l=null,s=[-1]){const a=K;G(e);const c=e.$$={fragment:null,ctx:[],props:r,update:U,not_equal:o,bound:_t(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(a?a.$$.context:[])),callbacks:_t(),dirty:s,skip_bound:!1,root:t.target||a.$$.root};l&&l(c.root);let p=!1;if(c.ctx=n?n(e,t.props||{},(h,g,...w)=>{const d=w.length?w[0]:g;return c.ctx&&o(c.ctx[h],c.ctx[h]=d)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](d),p&&we(e,h)),g}):[],c.update(),p=!0,O(c.before_update),c.fragment=i?i(c.ctx):!1,t.target){if(t.hydrate){const h=Wt(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(a)}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 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 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,p){W(c,l,p)},d:function(c){c&&j(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=te(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 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=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(o),o();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 o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=tt(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 tt(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 Tt(e,t,n,i,o,r){let l=class extends Lt{constructor(){super(e,n,o),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(a){var c;a=tt(s,a,t),this.$$d[s]=a,(c=this.$$c)==null||c.$set({[s]:a})}})}),i.forEach(s=>{Object.defineProperty(l.prototype,s,{get(){var a;return(a=this.$$c)==null?void 0:a[s]}})}),e.element=l,l}class Mt{constructor(){A(this,"$$");A(this,"$$set")}$destroy(){$e(this,1),this.$destroy=U}$on(t,n){if(!st(n))return U;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&&!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",ve="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",xe="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 Ce(e){At(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 wt(e){let t;return{c(){t=C("span"),t.innerHTML=`<img alt="user" src="${ke}"/>`,f(t,"class","Icon UserIcon"),f(t,"part","Icon UserIcon")},m(n,i){W(n,t,i)},d(n){n&&j(t)}}}function yt(e){let t;return{c(){t=C("span"),t.innerHTML=`<img alt="prize" src="${be}"/>`,f(t,"class","Icon PrizeIcon"),f(t,"part","Icon PrizeIcon")},m(n,i){W(n,t,i)},d(n){n&&j(t)}}}function Se(e){let t,n,i,o,r,l=(e[1]==0?"-":e[0]?e[0]:"-")+"",s,a,c=(e[1]==0?"-":e[1])+"",p,h,g,w,d,b,_,S,R,v,k,P,T,J,H,u,L,m=e[4]=="true"&&wt(),x=e[4]=="true"&&yt();return{c(){t=C("div"),n=C("div"),m&&m.c(),i=D(),o=C("span"),r=I(e[3]),s=I(l),a=I("/"),p=I(c),h=D(),g=C("img"),b=D(),_=C("img"),v=D(),k=C("div"),x&&x.c(),P=D(),T=C("span"),J=I(e[2]),f(g,"part","Rank_Arror_UP"),f(g,"alt","Rank Up"),mt(g.src,w=ve)||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")),f(_,"part","Rank_Arror_Down"),f(_,"alt","Rank Down"),mt(_.src,S=xe)||f(_,"src",S),f(_,"width","10"),f(_,"height","10"),f(_,"class",R="svg Arrow Down "+(e[7]&&!e[8]?"Show":"Hidden")),f(o,"class","RankInfo"),f(o,"part","RankText"),f(n,"class","RankSec"),f(n,"part","Rank"),f(T,"class","RankInfo UserPrize"),f(T,"part","PrizeText"),f(k,"class",H=e[5]+" PrizeSec"),f(k,"part","Prize"),f(t,"class",u=e[5]+" casino-tournaments-rank"),f(t,"part",L=e[5]+" casino-tournaments-rank")},m($,z){W($,t,z),y(t,n),m&&m.m(n,null),y(n,i),y(n,o),y(o,r),y(o,s),y(o,a),y(o,p),y(o,h),y(o,g),y(o,b),y(o,_),y(t,v),y(t,k),x&&x.m(k,null),y(k,P),y(k,T),y(T,J),e[12](t)},p($,[z]){$[4]=="true"?m||(m=wt(),m.c(),m.m(n,i)):m&&(m.d(1),m=null),z&8&&Z(r,$[3]),z&3&&l!==(l=($[1]==0?"-":$[0]?$[0]:"-")+"")&&Z(s,l),z&2&&c!==(c=($[1]==0?"-":$[1])+"")&&Z(p,c),z&384&&d!==(d="svg Arrow Up "+($[7]&&$[8]?"Show":"Hidden"))&&f(g,"class",d),z&384&&R!==(R="svg Arrow Down "+($[7]&&!$[8]?"Show":"Hidden"))&&f(_,"class",R),$[4]=="true"?x||(x=yt(),x.c(),x.m(k,P)):x&&(x.d(1),x=null),z&4&&Z(J,$[2]),z&32&&H!==(H=$[5]+" PrizeSec")&&f(k,"class",H),z&32&&u!==(u=$[5]+" casino-tournaments-rank")&&f(t,"class",u),z&32&&L!==(L=$[5]+" casino-tournaments-rank")&&f(t,"part",L)},i:U,o:U,d($){$&&j(t),m&&m.d(),x&&x.d(),e[12](null)}}}function Ae(e,t,n){let{rankprefix:i="#"}=t,{showicon:o="true"}=t,{tournamentid:r=""}=t,{overallrank:l="0"}=t,{userrank:s="0"}=t,{prize:a="PrizeName"}=t,{displayin:c="row"}=t,{clientstyling:p=""}=t,{clientstylingurl:h=""}=t,g,w,d=!1,b=!0,_,S,R,v;const k=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,a=m.prize)};if(!v){v=w,L(u);return}w&&(n(7,d=v!=u.rank),n(8,b=v>u.rank),_=new Date().getTime(),R=setTimeout(()=>{S=new Date().getTime(),(S-_)/1e3>4&&n(7,d=!1),v=w},5e3),L(u))},T=()=>{let u=document.createElement("style");u.innerHTML=p,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),v=w,n(0,s=s==null?"-":s),window.addEventListener("message",k,!0),()=>{window.removeEventListener("message",k),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,o=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,a=u.prize),"displayin"in u&&n(5,c=u.displayin),"clientstyling"in u&&n(10,p=u.clientstyling),"clientstylingurl"in u&&n(11,h=u.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&1088&&g&&p&&T(),e.$$.dirty&2112&&g&&h&&J(),e.$$.dirty&1&&(w=parseInt(s))},[s,l,a,i,o,c,g,d,b,r,p,h,H]}class Ut extends Mt{constructor(t){super(),Pt(this,t,Ae,Se,vt,{rankprefix:3,showicon:4,tournamentid:9,overallrank:1,userrank:0,prize:2,displayin:5,clientstyling:10,clientstylingurl:11},Ce)}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(Ut,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},userrank:{},prize:{},displayin:{},clientstyling:{},clientstylingurl:{}},[],[],!0);const Ee=Object.freeze(Object.defineProperty({__proto__:null,default:Ut},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsRank_ce=Ee;exports.SvelteComponent=Mt;exports.add_render_callback=Q;exports.append=y;exports.append_styles=At;exports.attr=f;exports.binding_callbacks=it;exports.check_outros=de;exports.component_subscribe=Bt;exports.create_bidirectional_transition=_e;exports.create_custom_element=Tt;exports.destroy_each=Vt;exports.detach=j;exports.element=C;exports.ensure_array_like=me;exports.flush=E;exports.group_outros=fe;exports.identity=bt;exports.init=Pt;exports.insert=W;exports.is_function=st;exports.listen=Gt;exports.noop=U;exports.onMount=Rt;exports.run_all=O;exports.safe_not_equal=vt;exports.set_custom_element_data=Kt;exports.set_data=Z;exports.set_style=Xt;exports.space=D;exports.subscribe=xt;exports.svg_element=Zt;exports.text=I;exports.transition_in=zt;exports.transition_out=he;exports.xlink_attr=Qt;
|