@everymatrix/casino-tournaments-player-rank 0.0.3 → 1.47.91
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/CasinoTournamentsPlayerRank-DszfdHPS.cjs +28 -0
- package/components/{CasinoTournamentsPlayerRank-Bzd1zY4m.js → CasinoTournamentsPlayerRank-e1lhtKBi.js} +2349 -3187
- package/components/CasinoTournamentsRank-CGXwwlWW.cjs +1 -0
- package/components/CasinoTournamentsRank-OuV9uD9P.js +255 -0
- package/es2015/casino-tournaments-player-rank.cjs +1 -1
- package/es2015/casino-tournaments-player-rank.js +1 -1
- package/package.json +2 -2
- package/components/CasinoTournamentsPlayerRank-Dr2SWOgB.cjs +0 -20
- package/components/CasinoTournamentsRank-DMZcexOt.js +0 -271
- package/components/CasinoTournamentsRank-DsmTgVWD.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsPlayerRank-DszfdHPS.cjs"),H="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='%23f9c408'%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",M="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='%23f9c408'%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",D="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",F="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 q(a){e.append_styles(a,"svelte-36klt2",".row{display:flex}.row .RankSec,.row .PrizeSec{width:49%}.col{display:inline-block}.RankSec,.PrizeSec{background-color:#1d3707;border:solid 1px #132504;color:#FFFFFF;display:flex;padding:5px;margin:5px;border-radius: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:1px solid #132504;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 U(a){let t;return{c(){t=e.element("span"),t.innerHTML=`<img alt="user" src="${M}"/>`,e.attr(t,"class","Icon UserIcon"),e.attr(t,"part","Icon UserIcon")},m(i,u){e.insert(i,t,u)},d(i){i&&e.detach(t)}}}function I(a){let t;return{c(){t=e.element("span"),t.innerHTML=`<img alt="prize" src="${H}"/>`,e.attr(t,"class","Icon PrizeIcon"),e.attr(t,"part","Icon PrizeIcon")},m(i,u){e.insert(i,t,u)},d(i){i&&e.detach(t)}}}function B(a){let t,i,u,g,x,w=a[7]()+"",R,s,d,A,p,y,r,m,k,T,h,S,v,f,z,C,b,c=a[2]=="true"&&U(),o=a[2]=="true"&&I();return{c(){t=e.element("div"),i=e.element("div"),c&&c.c(),u=e.space(),g=e.element("span"),x=e.text(a[1]),R=e.text(w),s=e.space(),d=e.element("img"),y=e.space(),r=e.element("img"),T=e.space(),h=e.element("div"),o&&o.c(),S=e.space(),v=e.element("span"),f=e.text(a[0]),e.attr(d,"part","Rank_Arror_UP"),e.attr(d,"alt","Rank Up"),e.src_url_equal(d.src,A=D)||e.attr(d,"src",A),e.attr(d,"width","20"),e.attr(d,"height","20"),e.attr(d,"class",p="svg Arrow Up "+(a[5]&&a[6]?"Show":"Hidden")),e.attr(r,"part","Rank_Arror_Down"),e.attr(r,"alt","Rank Down"),e.src_url_equal(r.src,m=F)||e.attr(r,"src",m),e.attr(r,"width","10"),e.attr(r,"height","10"),e.attr(r,"class",k="svg Arrow Down "+(a[5]&&!a[6]?"Show":"Hidden")),e.attr(g,"class","RankInfo"),e.attr(g,"part","RankText"),e.attr(i,"class","RankSec"),e.attr(i,"part","Rank"),e.attr(v,"class","RankInfo UserPrize"),e.attr(v,"part","PrizeText"),e.attr(h,"class",z=a[3]+" PrizeSec"),e.attr(h,"part","Prize"),e.attr(t,"class",C=a[3]+" casino-tournaments-rank"),e.attr(t,"part",b=a[3]+" casino-tournaments-rank")},m(l,n){e.insert(l,t,n),e.append(t,i),c&&c.m(i,null),e.append(i,u),e.append(i,g),e.append(g,x),e.append(g,R),e.append(g,s),e.append(g,d),e.append(g,y),e.append(g,r),e.append(t,T),e.append(t,h),o&&o.m(h,null),e.append(h,S),e.append(h,v),e.append(v,f),a[14](t)},p(l,[n]){l[2]=="true"?c||(c=U(),c.c(),c.m(i,u)):c&&(c.d(1),c=null),n&2&&e.set_data(x,l[1]),n&96&&p!==(p="svg Arrow Up "+(l[5]&&l[6]?"Show":"Hidden"))&&e.attr(d,"class",p),n&96&&k!==(k="svg Arrow Down "+(l[5]&&!l[6]?"Show":"Hidden"))&&e.attr(r,"class",k),l[2]=="true"?o||(o=I(),o.c(),o.m(h,S)):o&&(o.d(1),o=null),n&1&&e.set_data(f,l[0]),n&8&&z!==(z=l[3]+" PrizeSec")&&e.attr(h,"class",z),n&8&&C!==(C=l[3]+" casino-tournaments-rank")&&e.attr(t,"class",C),n&8&&b!==(b=l[3]+" casino-tournaments-rank")&&e.attr(t,"part",b)},i:e.noop,o:e.noop,d(l){l&&e.detach(t),c&&c.d(),o&&o.d(),a[14](null)}}}function E(a,t,i){let{rankprefix:u="#"}=t,{showicon:g="true"}=t,{tournamentid:x=""}=t,{overallrank:w="0"}=t,{showoverallrank:R="true"}=t,{userrank:s="0"}=t,{prize:d="PrizeName"}=t,{displayin:A="row"}=t,{clientstyling:p=""}=t,{clientstylingurl:y=""}=t,r,m,k=!1,T=!0,h,S,v,f;const z=n=>{n.data&&n.data.type==`TournamentRankInfo_${x}`&&C(n.data.rankInfo)},C=n=>{let P=_=>{i(8,s=_.rank),i(9,w=_.overallRank),i(0,d=_.prize)};if(!f){f=m,P(n);return}m&&(i(5,k=f!=n.rank),i(6,T=f>n.rank),h=new Date().getTime(),v=setTimeout(()=>{S=new Date().getTime(),(S-h)/1e3>4&&i(5,k=!1),f=m},5e3),P(n))},b=()=>{let n=document.createElement("style");n.innerHTML=p,r.appendChild(n)},c=()=>{let n=new URL(y),P=document.createElement("style");fetch(n.href).then(_=>_.text()).then(_=>{P.innerHTML=_,setTimeout(()=>{r.appendChild(P)},1),setTimeout(()=>{},500)})},o=()=>R=="true"?`${+w==0?"-":s||"-"}/${+w==0?"-":w}`:s;e.onMount(()=>(m=s==null?void 0:parseInt(s),f=m,i(8,s=s==null?"-":s),window.addEventListener("message",z,!0),()=>{window.removeEventListener("message",z),clearTimeout(v)}));function l(n){e.binding_callbacks[n?"unshift":"push"](()=>{r=n,i(4,r)})}return a.$$set=n=>{"rankprefix"in n&&i(1,u=n.rankprefix),"showicon"in n&&i(2,g=n.showicon),"tournamentid"in n&&i(10,x=n.tournamentid),"overallrank"in n&&i(9,w=n.overallrank),"showoverallrank"in n&&i(11,R=n.showoverallrank),"userrank"in n&&i(8,s=n.userrank),"prize"in n&&i(0,d=n.prize),"displayin"in n&&i(3,A=n.displayin),"clientstyling"in n&&i(12,p=n.clientstyling),"clientstylingurl"in n&&i(13,y=n.clientstylingurl)},a.$$.update=()=>{a.$$.dirty&4112&&r&&p&&b(),a.$$.dirty&8208&&r&&y&&c(),a.$$.dirty&256&&(m=parseInt(s))},[d,u,g,A,r,k,T,o,s,w,x,R,p,y,l]}class L extends e.SvelteComponent{constructor(t){super(),e.init(this,t,E,B,e.safe_not_equal,{rankprefix:1,showicon:2,tournamentid:10,overallrank:9,showoverallrank:11,userrank:8,prize:0,displayin:3,clientstyling:12,clientstylingurl:13},q)}get rankprefix(){return this.$$.ctx[1]}set rankprefix(t){this.$$set({rankprefix:t}),e.flush()}get showicon(){return this.$$.ctx[2]}set showicon(t){this.$$set({showicon:t}),e.flush()}get tournamentid(){return this.$$.ctx[10]}set tournamentid(t){this.$$set({tournamentid:t}),e.flush()}get overallrank(){return this.$$.ctx[9]}set overallrank(t){this.$$set({overallrank:t}),e.flush()}get showoverallrank(){return this.$$.ctx[11]}set showoverallrank(t){this.$$set({showoverallrank:t}),e.flush()}get userrank(){return this.$$.ctx[8]}set userrank(t){this.$$set({userrank:t}),e.flush()}get prize(){return this.$$.ctx[0]}set prize(t){this.$$set({prize:t}),e.flush()}get displayin(){return this.$$.ctx[3]}set displayin(t){this.$$set({displayin:t}),e.flush()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}}e.create_custom_element(L,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},showoverallrank:{},userrank:{},prize:{},displayin:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=L;
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { S as N, i as G, f as m, c as J, s as K, a as O, e as v, b as H, t as M, d as i, g as B, h as D, j as d, k as E, n as q, l as F, o as Q, m as V } from "./CasinoTournamentsPlayerRank-e1lhtKBi.js";
|
|
2
|
+
const W = "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='%23f9c408'%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", X = "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='%23f9c408'%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", Y = "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", $ = "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";
|
|
3
|
+
function e2(a) {
|
|
4
|
+
O(a, "svelte-36klt2", ".row{display:flex}.row .RankSec,.row .PrizeSec{width:49%}.col{display:inline-block}.RankSec,.PrizeSec{background-color:#1d3707;border:solid 1px #132504;color:#FFFFFF;display:flex;padding:5px;margin:5px;border-radius: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:1px solid #132504;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}}");
|
|
5
|
+
}
|
|
6
|
+
function Z(a) {
|
|
7
|
+
let e;
|
|
8
|
+
return {
|
|
9
|
+
c() {
|
|
10
|
+
e = v("span"), e.innerHTML = `<img alt="user" src="${X}"/>`, i(e, "class", "Icon UserIcon"), i(e, "part", "Icon UserIcon");
|
|
11
|
+
},
|
|
12
|
+
m(n, f) {
|
|
13
|
+
D(n, e, f);
|
|
14
|
+
},
|
|
15
|
+
d(n) {
|
|
16
|
+
n && F(e);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function j(a) {
|
|
21
|
+
let e;
|
|
22
|
+
return {
|
|
23
|
+
c() {
|
|
24
|
+
e = v("span"), e.innerHTML = `<img alt="prize" src="${W}"/>`, i(e, "class", "Icon PrizeIcon"), i(e, "part", "Icon PrizeIcon");
|
|
25
|
+
},
|
|
26
|
+
m(n, f) {
|
|
27
|
+
D(n, e, f);
|
|
28
|
+
},
|
|
29
|
+
d(n) {
|
|
30
|
+
n && F(e);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function t2(a) {
|
|
35
|
+
let e, n, f, h, R, x = (
|
|
36
|
+
/*formatRank*/
|
|
37
|
+
a[7]() + ""
|
|
38
|
+
), A, l, g, P, p, S, r, k, _, I, u, b, y, w, C, U, T, c = (
|
|
39
|
+
/*showicon*/
|
|
40
|
+
a[2] == "true" && Z()
|
|
41
|
+
), o = (
|
|
42
|
+
/*showicon*/
|
|
43
|
+
a[2] == "true" && j()
|
|
44
|
+
);
|
|
45
|
+
return {
|
|
46
|
+
c() {
|
|
47
|
+
e = v("div"), n = v("div"), c && c.c(), f = H(), h = v("span"), R = M(
|
|
48
|
+
/*rankprefix*/
|
|
49
|
+
a[1]
|
|
50
|
+
), A = M(x), l = H(), g = v("img"), S = H(), r = v("img"), I = H(), u = v("div"), o && o.c(), b = H(), y = v("span"), w = M(
|
|
51
|
+
/*prize*/
|
|
52
|
+
a[0]
|
|
53
|
+
), i(g, "part", "Rank_Arror_UP"), i(g, "alt", "Rank Up"), B(g.src, P = Y) || i(g, "src", P), i(g, "width", "20"), i(g, "height", "20"), i(g, "class", p = "svg Arrow Up " + /*userRankChanged*/
|
|
54
|
+
(a[5] && /*isRankingUp*/
|
|
55
|
+
a[6] ? "Show" : "Hidden")), i(r, "part", "Rank_Arror_Down"), i(r, "alt", "Rank Down"), B(r.src, k = $) || i(r, "src", k), i(r, "width", "10"), i(r, "height", "10"), i(r, "class", _ = "svg Arrow Down " + /*userRankChanged*/
|
|
56
|
+
(a[5] && !/*isRankingUp*/
|
|
57
|
+
a[6] ? "Show" : "Hidden")), i(h, "class", "RankInfo"), i(h, "part", "RankText"), i(n, "class", "RankSec"), i(n, "part", "Rank"), i(y, "class", "RankInfo UserPrize"), i(y, "part", "PrizeText"), i(u, "class", C = /*displayin*/
|
|
58
|
+
a[3] + " PrizeSec"), i(u, "part", "Prize"), i(e, "class", U = /*displayin*/
|
|
59
|
+
a[3] + " casino-tournaments-rank"), i(e, "part", T = /*displayin*/
|
|
60
|
+
a[3] + " casino-tournaments-rank");
|
|
61
|
+
},
|
|
62
|
+
m(s, t) {
|
|
63
|
+
D(s, e, t), d(e, n), c && c.m(n, null), d(n, f), d(n, h), d(h, R), d(h, A), d(h, l), d(h, g), d(h, S), d(h, r), d(e, I), d(e, u), o && o.m(u, null), d(u, b), d(u, y), d(y, w), a[14](e);
|
|
64
|
+
},
|
|
65
|
+
p(s, [t]) {
|
|
66
|
+
/*showicon*/
|
|
67
|
+
s[2] == "true" ? c || (c = Z(), c.c(), c.m(n, f)) : c && (c.d(1), c = null), t & /*rankprefix*/
|
|
68
|
+
2 && E(
|
|
69
|
+
R,
|
|
70
|
+
/*rankprefix*/
|
|
71
|
+
s[1]
|
|
72
|
+
), t & /*userRankChanged, isRankingUp*/
|
|
73
|
+
96 && p !== (p = "svg Arrow Up " + /*userRankChanged*/
|
|
74
|
+
(s[5] && /*isRankingUp*/
|
|
75
|
+
s[6] ? "Show" : "Hidden")) && i(g, "class", p), t & /*userRankChanged, isRankingUp*/
|
|
76
|
+
96 && _ !== (_ = "svg Arrow Down " + /*userRankChanged*/
|
|
77
|
+
(s[5] && !/*isRankingUp*/
|
|
78
|
+
s[6] ? "Show" : "Hidden")) && i(r, "class", _), /*showicon*/
|
|
79
|
+
s[2] == "true" ? o || (o = j(), o.c(), o.m(u, b)) : o && (o.d(1), o = null), t & /*prize*/
|
|
80
|
+
1 && E(
|
|
81
|
+
w,
|
|
82
|
+
/*prize*/
|
|
83
|
+
s[0]
|
|
84
|
+
), t & /*displayin*/
|
|
85
|
+
8 && C !== (C = /*displayin*/
|
|
86
|
+
s[3] + " PrizeSec") && i(u, "class", C), t & /*displayin*/
|
|
87
|
+
8 && U !== (U = /*displayin*/
|
|
88
|
+
s[3] + " casino-tournaments-rank") && i(e, "class", U), t & /*displayin*/
|
|
89
|
+
8 && T !== (T = /*displayin*/
|
|
90
|
+
s[3] + " casino-tournaments-rank") && i(e, "part", T);
|
|
91
|
+
},
|
|
92
|
+
i: q,
|
|
93
|
+
o: q,
|
|
94
|
+
d(s) {
|
|
95
|
+
s && F(e), c && c.d(), o && o.d(), a[14](null);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function n2(a, e, n) {
|
|
100
|
+
let { rankprefix: f = "#" } = e, { showicon: h = "true" } = e, { tournamentid: R = "" } = e, { overallrank: x = "0" } = e, { showoverallrank: A = "true" } = e, { userrank: l = "0" } = e, { prize: g = "PrizeName" } = e, { displayin: P = "row" } = e, { clientstyling: p = "" } = e, { clientstylingurl: S = "" } = e, r, k, _ = !1, I = !0, u, b, y, w;
|
|
101
|
+
const C = (t) => {
|
|
102
|
+
t.data && t.data.type == `TournamentRankInfo_${R}` && U(t.data.rankInfo);
|
|
103
|
+
}, U = (t) => {
|
|
104
|
+
let L = (z) => {
|
|
105
|
+
n(8, l = z.rank), n(9, x = z.overallRank), n(0, g = z.prize);
|
|
106
|
+
};
|
|
107
|
+
if (!w) {
|
|
108
|
+
w = k, L(t);
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
k && (n(5, _ = w != t.rank), n(6, I = w > t.rank), u = (/* @__PURE__ */ new Date()).getTime(), y = setTimeout(
|
|
112
|
+
() => {
|
|
113
|
+
b = (/* @__PURE__ */ new Date()).getTime(), (b - u) / 1e3 > 4 && n(5, _ = !1), w = k;
|
|
114
|
+
},
|
|
115
|
+
5e3
|
|
116
|
+
), L(t));
|
|
117
|
+
}, T = () => {
|
|
118
|
+
let t = document.createElement("style");
|
|
119
|
+
t.innerHTML = p, r.appendChild(t);
|
|
120
|
+
}, c = () => {
|
|
121
|
+
let t = new URL(S), L = document.createElement("style");
|
|
122
|
+
fetch(t.href).then((z) => z.text()).then((z) => {
|
|
123
|
+
L.innerHTML = z, setTimeout(
|
|
124
|
+
() => {
|
|
125
|
+
r.appendChild(L);
|
|
126
|
+
},
|
|
127
|
+
1
|
|
128
|
+
), setTimeout(
|
|
129
|
+
() => {
|
|
130
|
+
},
|
|
131
|
+
500
|
|
132
|
+
);
|
|
133
|
+
});
|
|
134
|
+
}, o = () => A == "true" ? `${+x == 0 ? "-" : l || "-"}/${+x == 0 ? "-" : x}` : l;
|
|
135
|
+
Q(() => (k = l == null ? void 0 : parseInt(l), w = k, n(8, l = l == null ? "-" : l), window.addEventListener("message", C, !0), () => {
|
|
136
|
+
window.removeEventListener("message", C), clearTimeout(y);
|
|
137
|
+
}));
|
|
138
|
+
function s(t) {
|
|
139
|
+
V[t ? "unshift" : "push"](() => {
|
|
140
|
+
r = t, n(4, r);
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
return a.$$set = (t) => {
|
|
144
|
+
"rankprefix" in t && n(1, f = t.rankprefix), "showicon" in t && n(2, h = t.showicon), "tournamentid" in t && n(10, R = t.tournamentid), "overallrank" in t && n(9, x = t.overallrank), "showoverallrank" in t && n(11, A = t.showoverallrank), "userrank" in t && n(8, l = t.userrank), "prize" in t && n(0, g = t.prize), "displayin" in t && n(3, P = t.displayin), "clientstyling" in t && n(12, p = t.clientstyling), "clientstylingurl" in t && n(13, S = t.clientstylingurl);
|
|
145
|
+
}, a.$$.update = () => {
|
|
146
|
+
a.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
147
|
+
4112 && r && p && T(), a.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
148
|
+
8208 && r && S && c(), a.$$.dirty & /*userrank*/
|
|
149
|
+
256 && (k = parseInt(l));
|
|
150
|
+
}, [
|
|
151
|
+
g,
|
|
152
|
+
f,
|
|
153
|
+
h,
|
|
154
|
+
P,
|
|
155
|
+
r,
|
|
156
|
+
_,
|
|
157
|
+
I,
|
|
158
|
+
o,
|
|
159
|
+
l,
|
|
160
|
+
x,
|
|
161
|
+
R,
|
|
162
|
+
A,
|
|
163
|
+
p,
|
|
164
|
+
S,
|
|
165
|
+
s
|
|
166
|
+
];
|
|
167
|
+
}
|
|
168
|
+
class i2 extends N {
|
|
169
|
+
constructor(e) {
|
|
170
|
+
super(), G(
|
|
171
|
+
this,
|
|
172
|
+
e,
|
|
173
|
+
n2,
|
|
174
|
+
t2,
|
|
175
|
+
K,
|
|
176
|
+
{
|
|
177
|
+
rankprefix: 1,
|
|
178
|
+
showicon: 2,
|
|
179
|
+
tournamentid: 10,
|
|
180
|
+
overallrank: 9,
|
|
181
|
+
showoverallrank: 11,
|
|
182
|
+
userrank: 8,
|
|
183
|
+
prize: 0,
|
|
184
|
+
displayin: 3,
|
|
185
|
+
clientstyling: 12,
|
|
186
|
+
clientstylingurl: 13
|
|
187
|
+
},
|
|
188
|
+
e2
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
get rankprefix() {
|
|
192
|
+
return this.$$.ctx[1];
|
|
193
|
+
}
|
|
194
|
+
set rankprefix(e) {
|
|
195
|
+
this.$$set({ rankprefix: e }), m();
|
|
196
|
+
}
|
|
197
|
+
get showicon() {
|
|
198
|
+
return this.$$.ctx[2];
|
|
199
|
+
}
|
|
200
|
+
set showicon(e) {
|
|
201
|
+
this.$$set({ showicon: e }), m();
|
|
202
|
+
}
|
|
203
|
+
get tournamentid() {
|
|
204
|
+
return this.$$.ctx[10];
|
|
205
|
+
}
|
|
206
|
+
set tournamentid(e) {
|
|
207
|
+
this.$$set({ tournamentid: e }), m();
|
|
208
|
+
}
|
|
209
|
+
get overallrank() {
|
|
210
|
+
return this.$$.ctx[9];
|
|
211
|
+
}
|
|
212
|
+
set overallrank(e) {
|
|
213
|
+
this.$$set({ overallrank: e }), m();
|
|
214
|
+
}
|
|
215
|
+
get showoverallrank() {
|
|
216
|
+
return this.$$.ctx[11];
|
|
217
|
+
}
|
|
218
|
+
set showoverallrank(e) {
|
|
219
|
+
this.$$set({ showoverallrank: e }), m();
|
|
220
|
+
}
|
|
221
|
+
get userrank() {
|
|
222
|
+
return this.$$.ctx[8];
|
|
223
|
+
}
|
|
224
|
+
set userrank(e) {
|
|
225
|
+
this.$$set({ userrank: e }), m();
|
|
226
|
+
}
|
|
227
|
+
get prize() {
|
|
228
|
+
return this.$$.ctx[0];
|
|
229
|
+
}
|
|
230
|
+
set prize(e) {
|
|
231
|
+
this.$$set({ prize: e }), m();
|
|
232
|
+
}
|
|
233
|
+
get displayin() {
|
|
234
|
+
return this.$$.ctx[3];
|
|
235
|
+
}
|
|
236
|
+
set displayin(e) {
|
|
237
|
+
this.$$set({ displayin: e }), m();
|
|
238
|
+
}
|
|
239
|
+
get clientstyling() {
|
|
240
|
+
return this.$$.ctx[12];
|
|
241
|
+
}
|
|
242
|
+
set clientstyling(e) {
|
|
243
|
+
this.$$set({ clientstyling: e }), m();
|
|
244
|
+
}
|
|
245
|
+
get clientstylingurl() {
|
|
246
|
+
return this.$$.ctx[13];
|
|
247
|
+
}
|
|
248
|
+
set clientstylingurl(e) {
|
|
249
|
+
this.$$set({ clientstylingurl: e }), m();
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
J(i2, { rankprefix: {}, showicon: {}, tournamentid: {}, overallrank: {}, showoverallrank: {}, userrank: {}, prize: {}, displayin: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
253
|
+
export {
|
|
254
|
+
i2 as default
|
|
255
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsPlayerRank-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsPlayerRank-DszfdHPS.cjs")).then(e=>e.CasinoTournamentsPlayerRank_ce).then(({default:e})=>{!customElements.get("casino-tournaments-player-rank")&&customElements.define("casino-tournaments-player-rank",e.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoTournamentsPlayerRank-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoTournamentsPlayerRank-e1lhtKBi.js").then((e) => e.C).then(({ default: e }) => {
|
|
14
14
|
!customElements.get("casino-tournaments-player-rank") && customElements.define("casino-tournaments-player-rank", e.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-tournaments-player-rank",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.47.91",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "es2015/casino-tournaments-player-rank.cjs",
|
|
6
6
|
"module": "es2015/casino-tournaments-player-rank.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
|
-
"dependencies": {
|
|
23
|
+
"dependencies": {
|
|
24
24
|
"@everymatrix/casino-tournament-buttons": "*"
|
|
25
25
|
}
|
|
26
26
|
}
|