@everymatrix/casino-tournaments-player-rank 0.0.3 → 1.48.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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsPlayerRank-Dr2SWOgB.cjs"),M="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",D="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",q="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",B="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 E(a){e.append_styles(a,"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 I(a){let t;return{c(){t=e.element("span"),t.innerHTML=`<img alt="user" src="${D}"/>`,e.attr(t,"class","Icon UserIcon"),e.attr(t,"part","Icon UserIcon")},m(i,p){e.insert(i,t,p)},d(i){i&&e.detach(t)}}}function L(a){let t;return{c(){t=e.element("span"),t.innerHTML=`<img alt="prize" src="${M}"/>`,e.attr(t,"class","Icon PrizeIcon"),e.attr(t,"part","Icon PrizeIcon")},m(i,p){e.insert(i,t,p)},d(i){i&&e.detach(t)}}}function j(a){let t,i,p,c,y,k=(a[1]==0?"-":a[0]?a[0]:"-")+"",o,C,x=(a[1]==0?"-":a[1])+"",v,z,s,m,_,T,d,b,S,w,u,P,R,U,A,n,f,r=a[4]=="true"&&I(),g=a[4]=="true"&&L();return{c(){t=e.element("div"),i=e.element("div"),r&&r.c(),p=e.space(),c=e.element("span"),y=e.text(a[3]),o=e.text(k),C=e.text("/"),v=e.text(x),z=e.space(),s=e.element("img"),T=e.space(),d=e.element("img"),w=e.space(),u=e.element("div"),g&&g.c(),P=e.space(),R=e.element("span"),U=e.text(a[2]),e.attr(s,"part","Rank_Arror_UP"),e.attr(s,"alt","Rank Up"),e.src_url_equal(s.src,m=q)||e.attr(s,"src",m),e.attr(s,"width","20"),e.attr(s,"height","20"),e.attr(s,"class",_="svg Arrow Up "+(a[7]&&a[8]?"Show":"Hidden")),e.attr(d,"part","Rank_Arror_Down"),e.attr(d,"alt","Rank Down"),e.src_url_equal(d.src,b=B)||e.attr(d,"src",b),e.attr(d,"width","10"),e.attr(d,"height","10"),e.attr(d,"class",S="svg Arrow Down "+(a[7]&&!a[8]?"Show":"Hidden")),e.attr(c,"class","RankInfo"),e.attr(c,"part","RankText"),e.attr(i,"class","RankSec"),e.attr(i,"part","Rank"),e.attr(R,"class","RankInfo UserPrize"),e.attr(R,"part","PrizeText"),e.attr(u,"class",A=a[5]+" PrizeSec"),e.attr(u,"part","Prize"),e.attr(t,"class",n=a[5]+" casino-tournaments-rank"),e.attr(t,"part",f=a[5]+" casino-tournaments-rank")},m(l,h){e.insert(l,t,h),e.append(t,i),r&&r.m(i,null),e.append(i,p),e.append(i,c),e.append(c,y),e.append(c,o),e.append(c,C),e.append(c,v),e.append(c,z),e.append(c,s),e.append(c,T),e.append(c,d),e.append(t,w),e.append(t,u),g&&g.m(u,null),e.append(u,P),e.append(u,R),e.append(R,U),a[12](t)},p(l,[h]){l[4]=="true"?r||(r=I(),r.c(),r.m(i,p)):r&&(r.d(1),r=null),h&8&&e.set_data(y,l[3]),h&3&&k!==(k=(l[1]==0?"-":l[0]?l[0]:"-")+"")&&e.set_data(o,k),h&2&&x!==(x=(l[1]==0?"-":l[1])+"")&&e.set_data(v,x),h&384&&_!==(_="svg Arrow Up "+(l[7]&&l[8]?"Show":"Hidden"))&&e.attr(s,"class",_),h&384&&S!==(S="svg Arrow Down "+(l[7]&&!l[8]?"Show":"Hidden"))&&e.attr(d,"class",S),l[4]=="true"?g||(g=L(),g.c(),g.m(u,P)):g&&(g.d(1),g=null),h&4&&e.set_data(U,l[2]),h&32&&A!==(A=l[5]+" PrizeSec")&&e.attr(u,"class",A),h&32&&n!==(n=l[5]+" casino-tournaments-rank")&&e.attr(t,"class",n),h&32&&f!==(f=l[5]+" casino-tournaments-rank")&&e.attr(t,"part",f)},i:e.noop,o:e.noop,d(l){l&&e.detach(t),r&&r.d(),g&&g.d(),a[12](null)}}}function Z(a,t,i){let{rankprefix:p="#"}=t,{showicon:c="true"}=t,{tournamentid:y=""}=t,{overallrank:k="0"}=t,{userrank:o="0"}=t,{prize:C="PrizeName"}=t,{displayin:x="row"}=t,{clientstyling:v=""}=t,{clientstylingurl:z=""}=t,s,m,_=!1,T=!0,d,b,S,w;const u=n=>{n.data&&n.data.type==`TournamentRankInfo_${y}`&&P(n.data.rankInfo)},P=n=>{let f=r=>{i(0,o=r.rank),i(1,k=r.overallRank),i(2,C=r.prize)};if(!w){w=m,f(n);return}m&&(i(7,_=w!=n.rank),i(8,T=w>n.rank),d=new Date().getTime(),S=setTimeout(()=>{b=new Date().getTime(),(b-d)/1e3>4&&i(7,_=!1),w=m},5e3),f(n))},R=()=>{let n=document.createElement("style");n.innerHTML=v,s.appendChild(n)},U=()=>{let n=new URL(z),f=document.createElement("style");fetch(n.href).then(r=>r.text()).then(r=>{f.innerHTML=r,setTimeout(()=>{s.appendChild(f)},1),setTimeout(()=>{},500)})};e.onMount(()=>(m=o==null?void 0:parseInt(o),w=m,i(0,o=o==null?"-":o),window.addEventListener("message",u,!0),()=>{window.removeEventListener("message",u),clearTimeout(S)}));function A(n){e.binding_callbacks[n?"unshift":"push"](()=>{s=n,i(6,s)})}return a.$$set=n=>{"rankprefix"in n&&i(3,p=n.rankprefix),"showicon"in n&&i(4,c=n.showicon),"tournamentid"in n&&i(9,y=n.tournamentid),"overallrank"in n&&i(1,k=n.overallrank),"userrank"in n&&i(0,o=n.userrank),"prize"in n&&i(2,C=n.prize),"displayin"in n&&i(5,x=n.displayin),"clientstyling"in n&&i(10,v=n.clientstyling),"clientstylingurl"in n&&i(11,z=n.clientstylingurl)},a.$$.update=()=>{a.$$.dirty&1088&&s&&v&&R(),a.$$.dirty&2112&&s&&z&&U(),a.$$.dirty&1&&(m=parseInt(o))},[o,k,C,p,c,x,s,_,T,y,v,z,A]}class H extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Z,j,e.safe_not_equal,{rankprefix:3,showicon:4,tournamentid:9,overallrank:1,userrank:0,prize:2,displayin:5,clientstyling:10,clientstylingurl:11},E)}get rankprefix(){return this.$$.ctx[3]}set rankprefix(t){this.$$set({rankprefix:t}),e.flush()}get showicon(){return this.$$.ctx[4]}set showicon(t){this.$$set({showicon:t}),e.flush()}get tournamentid(){return this.$$.ctx[9]}set tournamentid(t){this.$$set({tournamentid:t}),e.flush()}get overallrank(){return this.$$.ctx[1]}set overallrank(t){this.$$set({overallrank:t}),e.flush()}get userrank(){return this.$$.ctx[0]}set userrank(t){this.$$set({userrank:t}),e.flush()}get prize(){return this.$$.ctx[2]}set prize(t){this.$$set({prize:t}),e.flush()}get displayin(){return this.$$.ctx[5]}set displayin(t){this.$$set({displayin:t}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}}e.create_custom_element(H,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},userrank:{},prize:{},displayin:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=H;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsPlayerRank-B-8Wfdgh.cjs"),M="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",D="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",q="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",B="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 E(a){e.append_styles(a,"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 I(a){let t;return{c(){t=e.element("span"),t.innerHTML=`<img alt="user" src="${D}"/>`,e.attr(t,"class","Icon UserIcon"),e.attr(t,"part","Icon UserIcon")},m(i,p){e.insert(i,t,p)},d(i){i&&e.detach(t)}}}function L(a){let t;return{c(){t=e.element("span"),t.innerHTML=`<img alt="prize" src="${M}"/>`,e.attr(t,"class","Icon PrizeIcon"),e.attr(t,"part","Icon PrizeIcon")},m(i,p){e.insert(i,t,p)},d(i){i&&e.detach(t)}}}function j(a){let t,i,p,c,y,k=(a[1]==0?"-":a[0]?a[0]:"-")+"",o,C,x=(a[1]==0?"-":a[1])+"",v,z,s,m,_,T,d,b,S,w,u,P,R,U,A,n,f,r=a[4]=="true"&&I(),g=a[4]=="true"&&L();return{c(){t=e.element("div"),i=e.element("div"),r&&r.c(),p=e.space(),c=e.element("span"),y=e.text(a[3]),o=e.text(k),C=e.text("/"),v=e.text(x),z=e.space(),s=e.element("img"),T=e.space(),d=e.element("img"),w=e.space(),u=e.element("div"),g&&g.c(),P=e.space(),R=e.element("span"),U=e.text(a[2]),e.attr(s,"part","Rank_Arror_UP"),e.attr(s,"alt","Rank Up"),e.src_url_equal(s.src,m=q)||e.attr(s,"src",m),e.attr(s,"width","20"),e.attr(s,"height","20"),e.attr(s,"class",_="svg Arrow Up "+(a[7]&&a[8]?"Show":"Hidden")),e.attr(d,"part","Rank_Arror_Down"),e.attr(d,"alt","Rank Down"),e.src_url_equal(d.src,b=B)||e.attr(d,"src",b),e.attr(d,"width","10"),e.attr(d,"height","10"),e.attr(d,"class",S="svg Arrow Down "+(a[7]&&!a[8]?"Show":"Hidden")),e.attr(c,"class","RankInfo"),e.attr(c,"part","RankText"),e.attr(i,"class","RankSec"),e.attr(i,"part","Rank"),e.attr(R,"class","RankInfo UserPrize"),e.attr(R,"part","PrizeText"),e.attr(u,"class",A=a[5]+" PrizeSec"),e.attr(u,"part","Prize"),e.attr(t,"class",n=a[5]+" casino-tournaments-rank"),e.attr(t,"part",f=a[5]+" casino-tournaments-rank")},m(l,h){e.insert(l,t,h),e.append(t,i),r&&r.m(i,null),e.append(i,p),e.append(i,c),e.append(c,y),e.append(c,o),e.append(c,C),e.append(c,v),e.append(c,z),e.append(c,s),e.append(c,T),e.append(c,d),e.append(t,w),e.append(t,u),g&&g.m(u,null),e.append(u,P),e.append(u,R),e.append(R,U),a[12](t)},p(l,[h]){l[4]=="true"?r||(r=I(),r.c(),r.m(i,p)):r&&(r.d(1),r=null),h&8&&e.set_data(y,l[3]),h&3&&k!==(k=(l[1]==0?"-":l[0]?l[0]:"-")+"")&&e.set_data(o,k),h&2&&x!==(x=(l[1]==0?"-":l[1])+"")&&e.set_data(v,x),h&384&&_!==(_="svg Arrow Up "+(l[7]&&l[8]?"Show":"Hidden"))&&e.attr(s,"class",_),h&384&&S!==(S="svg Arrow Down "+(l[7]&&!l[8]?"Show":"Hidden"))&&e.attr(d,"class",S),l[4]=="true"?g||(g=L(),g.c(),g.m(u,P)):g&&(g.d(1),g=null),h&4&&e.set_data(U,l[2]),h&32&&A!==(A=l[5]+" PrizeSec")&&e.attr(u,"class",A),h&32&&n!==(n=l[5]+" casino-tournaments-rank")&&e.attr(t,"class",n),h&32&&f!==(f=l[5]+" casino-tournaments-rank")&&e.attr(t,"part",f)},i:e.noop,o:e.noop,d(l){l&&e.detach(t),r&&r.d(),g&&g.d(),a[12](null)}}}function Z(a,t,i){let{rankprefix:p="#"}=t,{showicon:c="true"}=t,{tournamentid:y=""}=t,{overallrank:k="0"}=t,{userrank:o="0"}=t,{prize:C="PrizeName"}=t,{displayin:x="row"}=t,{clientstyling:v=""}=t,{clientstylingurl:z=""}=t,s,m,_=!1,T=!0,d,b,S,w;const u=n=>{n.data&&n.data.type==`TournamentRankInfo_${y}`&&P(n.data.rankInfo)},P=n=>{let f=r=>{i(0,o=r.rank),i(1,k=r.overallRank),i(2,C=r.prize)};if(!w){w=m,f(n);return}m&&(i(7,_=w!=n.rank),i(8,T=w>n.rank),d=new Date().getTime(),S=setTimeout(()=>{b=new Date().getTime(),(b-d)/1e3>4&&i(7,_=!1),w=m},5e3),f(n))},R=()=>{let n=document.createElement("style");n.innerHTML=v,s.appendChild(n)},U=()=>{let n=new URL(z),f=document.createElement("style");fetch(n.href).then(r=>r.text()).then(r=>{f.innerHTML=r,setTimeout(()=>{s.appendChild(f)},1),setTimeout(()=>{},500)})};e.onMount(()=>(m=o==null?void 0:parseInt(o),w=m,i(0,o=o==null?"-":o),window.addEventListener("message",u,!0),()=>{window.removeEventListener("message",u),clearTimeout(S)}));function A(n){e.binding_callbacks[n?"unshift":"push"](()=>{s=n,i(6,s)})}return a.$$set=n=>{"rankprefix"in n&&i(3,p=n.rankprefix),"showicon"in n&&i(4,c=n.showicon),"tournamentid"in n&&i(9,y=n.tournamentid),"overallrank"in n&&i(1,k=n.overallrank),"userrank"in n&&i(0,o=n.userrank),"prize"in n&&i(2,C=n.prize),"displayin"in n&&i(5,x=n.displayin),"clientstyling"in n&&i(10,v=n.clientstyling),"clientstylingurl"in n&&i(11,z=n.clientstylingurl)},a.$$.update=()=>{a.$$.dirty&1088&&s&&v&&R(),a.$$.dirty&2112&&s&&z&&U(),a.$$.dirty&1&&(m=parseInt(o))},[o,k,C,p,c,x,s,_,T,y,v,z,A]}class H extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Z,j,e.safe_not_equal,{rankprefix:3,showicon:4,tournamentid:9,overallrank:1,userrank:0,prize:2,displayin:5,clientstyling:10,clientstylingurl:11},E)}get rankprefix(){return this.$$.ctx[3]}set rankprefix(t){this.$$set({rankprefix:t}),e.flush()}get showicon(){return this.$$.ctx[4]}set showicon(t){this.$$set({showicon:t}),e.flush()}get tournamentid(){return this.$$.ctx[9]}set tournamentid(t){this.$$set({tournamentid:t}),e.flush()}get overallrank(){return this.$$.ctx[1]}set overallrank(t){this.$$set({overallrank:t}),e.flush()}get userrank(){return this.$$.ctx[0]}set userrank(t){this.$$set({userrank:t}),e.flush()}get prize(){return this.$$.ctx[2]}set prize(t){this.$$set({prize:t}),e.flush()}get displayin(){return this.$$.ctx[5]}set displayin(t){this.$$set({displayin:t}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}}e.create_custom_element(H,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},userrank:{},prize:{},displayin:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=H;
@@ -1,4 +1,4 @@
1
- import { S as G, i as J, f as v, c as K, s as O, a as Q, e as _, b as M, t as D, d as n, g as q, h as E, j as c, k as B, n as Z, l as j, o as V, m as W } from "./CasinoTournamentsPlayerRank-Bzd1zY4m.js";
1
+ import { S as G, i as J, f as v, c as K, s as O, a as Q, e as _, b as M, t as D, d as n, g as q, h as E, j as c, k as B, n as Z, l as j, o as V, m as W } from "./CasinoTournamentsPlayerRank-BjiPQ3D6.js";
2
2
  const X = "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", Y = "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", $ = "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", e2 = "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
3
  function t2(a) {
4
4
  Q(a, "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}}");
@@ -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-Dr2SWOgB.cjs")).then(e=>e.CasinoTournamentsPlayerRank_ce).then(({default:e})=>{!customElements.get("casino-tournaments-player-rank")&&customElements.define("casino-tournaments-player-rank",e.element)})}
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-B-8Wfdgh.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-Bzd1zY4m.js").then((e) => e.C).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoTournamentsPlayerRank-BjiPQ3D6.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": "0.0.3",
3
+ "version": "1.48.0",
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
  }