@everymatrix/casino-tournaments-player-rank 0.0.2 → 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.
- package/components/CasinoTournamentsPlayerRank-B-8Wfdgh.cjs +20 -0
- package/components/{CasinoTournamentsPlayerRank-BAjspcvG.js → CasinoTournamentsPlayerRank-BjiPQ3D6.js} +2177 -2336
- package/components/{CasinoTournamentsRank-B-CEVOvk.cjs → CasinoTournamentsRank-CD8r9Cyv.cjs} +1 -1
- package/components/{CasinoTournamentsRank-CdJ9s_M7.js → CasinoTournamentsRank-Ccyk5NSV.js} +1 -1
- package/es2015/casino-tournaments-player-rank.cjs +1 -1
- package/es2015/casino-tournaments-player-rank.js +1 -1
- package/package.json +2 -2
- package/stencil/{casino-tournament-buttons-sxx8WSEA.cjs → casino-tournament-buttons-B-rLD4pb.cjs} +1 -1
- package/stencil/{casino-tournament-buttons-BRTQTVpZ.js → casino-tournament-buttons-DzzLdlRw.js} +4 -3
- package/stencil/{index-a1e049f1-DgBeUoMr.js → index-a1e049f1-BAny_rnG.js} +1 -1
- package/stencil/{index-a1e049f1-CgPlwQE2.cjs → index-a1e049f1-CX2zeTR9.cjs} +1 -1
- package/components/CasinoTournamentsPlayerRank-Dj6ibBMR.cjs +0 -20
package/components/{CasinoTournamentsRank-B-CEVOvk.cjs → CasinoTournamentsRank-CD8r9Cyv.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsPlayerRank-Dj6ibBMR.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-
|
|
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-
|
|
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-
|
|
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": "
|
|
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
|
}
|
package/stencil/{casino-tournament-buttons-sxx8WSEA.cjs → casino-tournament-buttons-B-rLD4pb.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var h=(e,i,t)=>new Promise((a,s)=>{var d=r=>{try{u(t.next(r))}catch(c){s(c)}},g=r=>{try{u(t.throw(r))}catch(c){s(c)}},u=r=>r.done?a(r.value):Promise.resolve(r.value).then(d,g);u((t=t.apply(e,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-a1e049f1-CgPlwQE2.cjs"),f=require("./app-globals-0f993ce5-sCt45RkC.cjs");var p=typeof document!="undefined"?document.currentScript:null,S=()=>{const e=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:p&&p.src||new URL("stencil/casino-tournament-buttons-sxx8WSEA.cjs",document.baseURI).href,i={};return e!==""&&(i.resourcesUrl=new URL(".",e).href),n.promiseResolve(i)};S().then(e=>h(exports,null,function*(){return yield f.globalScripts(),n.bootstrapLazy([["casino-tournament-buttons",[[1,"casino-tournament-buttons",{language:[1],tournamentId:[1,"tournament-id"],session:[1],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],endpoint:[1],currency:[1],bonusCode:[1,"bonus-code"],enrolled:[4],showReadMore:[4,"show-read-more"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],limitStylingAppends:[32],joinButtonLoading:[32],errorJoin:[32],errorJoinConcurrently:[32]}]]]],e)}));const A=()=>{let e=window.navigator.userAgent;return e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"},k="en",b={en:{joined:"Joined",join:"Join",enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts ",startedAtWithTime:"Started ",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Log in",register:"Register",details:"Details",joinerror:"An error occurred while registering in the tournament, please try again."},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月",login:"登錄",register:"登記",details:"細節",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Connexion",register:"Enregistre",details:"Détails",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",startingAtWithTime:"Începând de",startedAtWithTime:"A inceput:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie",login:"Autentificare",register:"Înregistrare",details:"Detalii",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",login:"Giriş",register:"Kayıt Ol",details:"Detaylar",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου",login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre",login:"Iniciar sesión",register:"Regístrate",details:"Detalles",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Entrar",register:"Registro",details:"Detalhes",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},hr:{joined:"Pridružen",enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac",login:"Prijaviti se",register:"Registracija",details:"Detalji",join:"join",joinerror:"Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"}},l=(e,i)=>{var t,a;return((t=b[i])===null||t===void 0?void 0:t[e])||((a=b[k])===null||a===void 0?void 0:a[e])},v=e=>{Object.keys(e).forEach(i=>{for(let t in e[i])b[i][t]=e[i][t]})},j=':host{display:block}.ButtonGroup{display:flex;gap:4px}.Button{padding:6px 8px;border-radius:2px;border:1px solid #fff;color:#fff;background:none;position:relative;cursor:pointer}.Button.NoBorder{border:0;padding:7px 8px}.Button::after{content:"";display:block;position:absolute;border-radius:2px;left:0;top:0;width:100%;height:100%;opacity:0;transition:all 0.5s;box-shadow:0 0 10px 10px white}.Button:active::after{box-shadow:0 0 0 0 white;position:absolute;border-radius:2px;left:0;top:0;opacity:1;transition:0s}.Button:active{top:1px}',R=j,y=class{constructor(e){n.registerInstance(this,e),this.userEnrolled=n.createEvent(this,"TournamentUserEnrolled",7),this.language=void 0,this.tournamentId=void 0,this.session=void 0,this.loginEvent=void 0,this.loginUrl=void 0,this.registerEvent=void 0,this.registerUrl=void 0,this.endpoint=void 0,this.currency=void 0,this.bonusCode=void 0,this.enrolled=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.translationData=void 0,this.limitStylingAppends=!1,this.joinButtonLoading=!1,this.errorJoin=!1,this.errorJoinConcurrently=!1}componentWillLoad(){this.translationData&&v(JSON.parse(this.translationData))}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const e=new CSSStyleSheet;e.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}setClientStylingURL(){let e=new URL(this.clientStylingUrl);fetch(e.href).then(i=>i.text()).then(i=>{const t=new CSSStyleSheet;t.replace(i),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]})}loginAction(){this.loginEvent&&(window.postMessage({type:this.loginEvent,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),this.loginUrl&&(location.href=this.loginUrl)}registerAction(){this.registerEvent&&(window.postMessage({type:this.registerEvent,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),this.registerUrl&&(location.href=this.registerUrl)}joinAction(e,i){return h(this,null,function*(){var t;this.errorJoin=!1,this.errorJoinConcurrently=!1,window.postMessage({type:"TournamentJoinRequest",tournamentId:e},window.location.href),this.joinButtonLoading=!0;let a=new URL(`${this.endpoint}/v1/bonus/claim`),s=new Headers,d={};a.searchParams.append("language",this.language),a.searchParams.append("platform",A()),s.append("Content-Type","application/json"),s.append("X-SessionID",this.session),i&&(d={language:this.language,bonusCode:i,currency:this.currency});let g={method:"PUT",headers:s,body:JSON.stringify(d)};const u=()=>{this.joinButtonLoading=!1,this.enrolled=!0,window.postMessage({type:"TournamentUserEnrolled",userenrolled:this.enrolled,tournamentId:e},window.location.href),this.userEnrolled.emit({userenrolled:this.enrolled,tournamentId:e})},r=()=>{this.joinButtonLoading=!1,this.errorJoin=!0},m=yield h(this,null,function*(){let o;try{o=yield fetch(`${this.endpoint}/v1/bonus/claim?${a.searchParams.toString()}`,g),o=yield o.json()}catch(w){r()}return o});if(m)if(m.success==!0)u();else if(m.errorMessage.match("VersionMismatchException")){let o;o=yield fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`,{headers:{"X-SessionID":this.session}}),o=yield o.json(),!((t=o==null?void 0:o.item)===null||t===void 0)&&t.playerEnrolled?u():(r(),this.errorJoinConcurrently=!0,this.errorJoin=!1)}else r()})}detailAction(e){window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)}moreAction(e){window.postMessage({type:"TournamentReadMoreClicked",tournamentId:e},window.location.href)}render(){return n.h("div",{key:"763ee14c366708587968c9dba99dfdca14f464aa",class:"TournamentButtons"},!this.session&&n.h("div",{key:"6cbf1242e6aaaaf1a4b22d225c851751d08e5235",class:"ButtonGroup"},n.h("button",{key:"430fdc44dbd2e87b580910222b87fd015bc8cdec",class:"LoginButton Button",part:"LoginButton",onClick:()=>this.loginAction()},l("login",this.language)),n.h("button",{key:"ff655fe2a0493a1806957a0c9809d78c0e3402c9",class:"RegisterButton Button",part:"RegisterButton",onClick:()=>this.registerAction()},l("register",this.language))),this.session&&n.h("div",{key:"7dd13f2bd91a8f0e36c01b9640906258fd037008"},!this.enrolled&&n.h("div",{key:"86f4e6e90f5ff54f5b7b49bbb96fcbf6f6abdbd1",class:"ButtonGroup"},n.h("button",{key:"3a7b08d6fd2a00b2ac54e16f7a1d30012bfb3552",class:"Button",onClick:()=>this.joinAction(this.tournamentId,this.bonusCode)},l("join",this.language)),this.showReadMore&&n.h("button",{key:"b0027a4d5c78b86ea87aded7f85a6321b47f59a9",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},l("readmore",this.language))),this.enrolled&&n.h("div",{key:"a69057c0e89fa520491e0cdc5541b9c9b81227d8",class:"ButtonGroup"},n.h("button",{key:"2f7c353d41122018c120114870956bb3cfd7ef20",class:"Button",onClick:()=>this.detailAction(this.tournamentId)},l("details",this.language)),this.showReadMore&&n.h("button",{key:"45bc2dbeb283b0c4f0cda9bb88b1495fb6a74b09",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},l("readmore",this.language)))),(this.errorJoin||this.errorJoinConcurrently)&&n.h("span",{key:"9b80c1e71632549dd1ee395a0cf12eea1d292e1a",class:"ErrorText",part:"ErrorText"},l("joinerror",this.language)))}get host(){return n.getElement(this)}};y.style=R;exports.casino_tournament_buttons=y;
|
|
1
|
+
"use strict";var h=(e,i,t)=>new Promise((a,s)=>{var d=r=>{try{u(t.next(r))}catch(c){s(c)}},g=r=>{try{u(t.throw(r))}catch(c){s(c)}},u=r=>r.done?a(r.value):Promise.resolve(r.value).then(d,g);u((t=t.apply(e,i)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-a1e049f1-CX2zeTR9.cjs"),f=require("./app-globals-0f993ce5-sCt45RkC.cjs");var p=typeof document!="undefined"?document.currentScript:null,S=()=>{const e=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:p&&p.src||new URL("stencil/casino-tournament-buttons-B-rLD4pb.cjs",document.baseURI).href,i={};return e!==""&&(i.resourcesUrl=new URL(".",e).href),n.promiseResolve(i)};S().then(e=>h(exports,null,function*(){return yield f.globalScripts(),n.bootstrapLazy([["casino-tournament-buttons",[[1,"casino-tournament-buttons",{language:[1],tournamentId:[1,"tournament-id"],session:[1],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],endpoint:[1],currency:[1],bonusCode:[1,"bonus-code"],enrolled:[4],showReadMore:[4,"show-read-more"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],limitStylingAppends:[32],joinButtonLoading:[32],errorJoin:[32],errorJoinConcurrently:[32]}]]]],e)}));const A=()=>{let e=window.navigator.userAgent;return e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"},k="en",b={en:{joined:"Joined",join:"Join",enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts ",startedAtWithTime:"Started ",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Log in",register:"Register",details:"Details",joinerror:"An error occurred while registering in the tournament, please try again."},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月",login:"登錄",register:"登記",details:"細節",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Connexion",register:"Enregistre",details:"Détails",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",startingAtWithTime:"Începând de",startedAtWithTime:"A inceput:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie",login:"Autentificare",register:"Înregistrare",details:"Detalii",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",login:"Giriş",register:"Kayıt Ol",details:"Detaylar",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου",login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre",login:"Iniciar sesión",register:"Regístrate",details:"Detalles",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Entrar",register:"Registro",details:"Detalhes",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},hr:{joined:"Pridružen",enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac",login:"Prijaviti se",register:"Registracija",details:"Detalji",join:"join",joinerror:"Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"}},l=(e,i)=>{var t,a;return((t=b[i])===null||t===void 0?void 0:t[e])||((a=b[k])===null||a===void 0?void 0:a[e])},v=e=>{Object.keys(e).forEach(i=>{for(let t in e[i])b[i][t]=e[i][t]})},j=':host{display:block}.ButtonGroup{display:flex;gap:4px}.Button{padding:6px 8px;border-radius:2px;border:1px solid #fff;color:#fff;background:none;position:relative;cursor:pointer}.Button.NoBorder{border:0;padding:7px 8px}.Button::after{content:"";display:block;position:absolute;border-radius:2px;left:0;top:0;width:100%;height:100%;opacity:0;transition:all 0.5s;box-shadow:0 0 10px 10px white}.Button:active::after{box-shadow:0 0 0 0 white;position:absolute;border-radius:2px;left:0;top:0;opacity:1;transition:0s}.Button:active{top:1px}',R=j,y=class{constructor(e){n.registerInstance(this,e),this.userEnrolled=n.createEvent(this,"TournamentUserEnrolled",7),this.language=void 0,this.tournamentId=void 0,this.session=void 0,this.loginEvent=void 0,this.loginUrl=void 0,this.registerEvent=void 0,this.registerUrl=void 0,this.endpoint=void 0,this.currency=void 0,this.bonusCode=void 0,this.enrolled=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.translationData=void 0,this.limitStylingAppends=!1,this.joinButtonLoading=!1,this.errorJoin=!1,this.errorJoinConcurrently=!1}componentWillLoad(){this.translationData&&v(JSON.parse(this.translationData))}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const e=new CSSStyleSheet;e.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}setClientStylingURL(){let e=new URL(this.clientStylingUrl);fetch(e.href).then(i=>i.text()).then(i=>{const t=new CSSStyleSheet;t.replace(i),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]})}loginAction(){this.loginEvent&&(window.postMessage({type:this.loginEvent,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),this.loginUrl&&(location.href=this.loginUrl)}registerAction(){this.registerEvent&&(window.postMessage({type:this.registerEvent,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),this.registerUrl&&(location.href=this.registerUrl)}joinAction(e,i){return h(this,null,function*(){var t;this.errorJoin=!1,this.errorJoinConcurrently=!1,window.postMessage({type:"TournamentJoinRequest",tournamentId:e},window.location.href),this.joinButtonLoading=!0;let a=new URL(`${this.endpoint}/v1/bonus/claim`),s=new Headers,d={};a.searchParams.append("language",this.language),a.searchParams.append("platform",A()),s.append("Content-Type","application/json"),s.append("X-SessionID",this.session),i&&(d={language:this.language,bonusCode:i,currency:this.currency,type:"tournament"});let g={method:"PUT",headers:s,body:JSON.stringify(d)};const u=()=>{this.joinButtonLoading=!1,this.enrolled=!0,window.postMessage({type:"TournamentUserEnrolled",userenrolled:this.enrolled,tournamentId:e},window.location.href),this.userEnrolled.emit({userenrolled:this.enrolled,tournamentId:e})},r=()=>{this.joinButtonLoading=!1,this.errorJoin=!0},m=yield h(this,null,function*(){let o;try{o=yield fetch(`${this.endpoint}/v1/bonus/claim?${a.searchParams.toString()}`,g),o=yield o.json()}catch(w){r()}return o});if(m)if(m.success==!0)u();else if(m.errorMessage.match("VersionMismatchException")){let o;o=yield fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`,{headers:{"X-SessionID":this.session}}),o=yield o.json(),!((t=o==null?void 0:o.item)===null||t===void 0)&&t.playerEnrolled?u():(r(),this.errorJoinConcurrently=!0,this.errorJoin=!1)}else r()})}detailAction(e){window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)}moreAction(e){window.postMessage({type:"TournamentReadMoreClicked",tournamentId:e},window.location.href)}render(){return n.h("div",{key:"d67f8cedc9bd513a74b4d9dc798c4c456d7b1d9f",class:"TournamentButtons"},!this.session&&n.h("div",{key:"7e79834abdd20bf694b096fad0734cc74ccb1f8e",class:"ButtonGroup"},n.h("button",{key:"273e73693f197ff25d116c3c2e7098d3e80138c7",class:"LoginButton Button",part:"LoginButton",onClick:()=>this.loginAction()},l("login",this.language)),n.h("button",{key:"72835739c177ce6e872a06183074d2266b3c3d5d",class:"RegisterButton Button",part:"RegisterButton",onClick:()=>this.registerAction()},l("register",this.language))),this.session&&n.h("div",{key:"746e7fb88ddd2bef5f59212d9f513b62943f80ae"},!this.enrolled&&n.h("div",{key:"7a33b63adc8255c267afdba2ffe700a0d2033e57",class:"ButtonGroup"},n.h("button",{key:"95f71a6f41cd65e4dd9dfca0896899f7b8c32dd5",class:"Button",onClick:()=>this.joinAction(this.tournamentId,this.bonusCode)},l("join",this.language)),this.showReadMore&&n.h("button",{key:"ac961bcbd5dc2a4f1e9267148ecc49a55b75515e",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},l("readmore",this.language))),this.enrolled&&n.h("div",{key:"f6a9170663e0aae26da9500fc5efc888bb2dc2ab",class:"ButtonGroup"},n.h("button",{key:"a94489a7bf6b178199f2d78dfdc41cca77859c96",class:"Button",onClick:()=>this.detailAction(this.tournamentId)},l("details",this.language)),this.showReadMore&&n.h("button",{key:"f23cefc77e04215e5beb6a39c2643348dce5e576",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},l("readmore",this.language)))),(this.errorJoin||this.errorJoinConcurrently)&&n.h("span",{key:"7accf63f478e52efc879da3775b07286fbc9801b",class:"ErrorText",part:"ErrorText"},l("joinerror",this.language)))}get host(){return n.getElement(this)}};y.style=R;exports.casino_tournament_buttons=y;
|
package/stencil/{casino-tournament-buttons-BRTQTVpZ.js → casino-tournament-buttons-DzzLdlRw.js}
RENAMED
|
@@ -14,7 +14,7 @@ var g = (e, i, t) => new Promise((a, s) => {
|
|
|
14
14
|
}, u = (r) => r.done ? a(r.value) : Promise.resolve(r.value).then(d, h);
|
|
15
15
|
u((t = t.apply(e, i)).next());
|
|
16
16
|
});
|
|
17
|
-
import { b as p, p as y, r as f, c as S, h as n, g as A } from "./index-a1e049f1-
|
|
17
|
+
import { b as p, p as y, r as f, c as S, h as n, g as A } from "./index-a1e049f1-BAny_rnG.js";
|
|
18
18
|
import { g as k } from "./app-globals-0f993ce5-D-kw1sls.js";
|
|
19
19
|
var v = () => {
|
|
20
20
|
const e = import.meta.url, i = {};
|
|
@@ -419,7 +419,8 @@ const j = () => {
|
|
|
419
419
|
a.searchParams.append("language", this.language), a.searchParams.append("platform", j()), s.append("Content-Type", "application/json"), s.append("X-SessionID", this.session), i && (d = {
|
|
420
420
|
language: this.language,
|
|
421
421
|
bonusCode: i,
|
|
422
|
-
currency: this.currency
|
|
422
|
+
currency: this.currency,
|
|
423
|
+
type: "tournament"
|
|
423
424
|
});
|
|
424
425
|
let h = {
|
|
425
426
|
method: "PUT",
|
|
@@ -460,7 +461,7 @@ const j = () => {
|
|
|
460
461
|
window.postMessage({ type: "TournamentReadMoreClicked", tournamentId: e }, window.location.href);
|
|
461
462
|
}
|
|
462
463
|
render() {
|
|
463
|
-
return n("div", { key: "
|
|
464
|
+
return n("div", { key: "d67f8cedc9bd513a74b4d9dc798c4c456d7b1d9f", class: "TournamentButtons" }, !this.session && n("div", { key: "7e79834abdd20bf694b096fad0734cc74ccb1f8e", class: "ButtonGroup" }, n("button", { key: "273e73693f197ff25d116c3c2e7098d3e80138c7", class: "LoginButton Button", part: "LoginButton", onClick: () => this.loginAction() }, l("login", this.language)), n("button", { key: "72835739c177ce6e872a06183074d2266b3c3d5d", class: "RegisterButton Button", part: "RegisterButton", onClick: () => this.registerAction() }, l("register", this.language))), this.session && n("div", { key: "746e7fb88ddd2bef5f59212d9f513b62943f80ae" }, !this.enrolled && n("div", { key: "7a33b63adc8255c267afdba2ffe700a0d2033e57", class: "ButtonGroup" }, n("button", { key: "95f71a6f41cd65e4dd9dfca0896899f7b8c32dd5", class: "Button", onClick: () => this.joinAction(this.tournamentId, this.bonusCode) }, l("join", this.language)), this.showReadMore && n("button", { key: "ac961bcbd5dc2a4f1e9267148ecc49a55b75515e", class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, l("readmore", this.language))), this.enrolled && n("div", { key: "f6a9170663e0aae26da9500fc5efc888bb2dc2ab", class: "ButtonGroup" }, n("button", { key: "a94489a7bf6b178199f2d78dfdc41cca77859c96", class: "Button", onClick: () => this.detailAction(this.tournamentId) }, l("details", this.language)), this.showReadMore && n("button", { key: "f23cefc77e04215e5beb6a39c2643348dce5e576", class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, l("readmore", this.language)))), (this.errorJoin || this.errorJoinConcurrently) && n("span", { key: "7accf63f478e52efc879da3775b07286fbc9801b", class: "ErrorText", part: "ErrorText" }, l("joinerror", this.language)));
|
|
464
465
|
}
|
|
465
466
|
get host() {
|
|
466
467
|
return A(this);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var w=(e,t,n)=>new Promise((s,r)=>{var a=o=>{try{i(n.next(o))}catch(c){r(c)}},l=o=>{try{i(n.throw(o))}catch(c){r(c)}},i=o=>o.done?s(o.value):Promise.resolve(o.value).then(a,l);i((n=n.apply(e,t)).next())});const me="casino-tournament-buttons",x={allRenderFn:!0,appendChildSlotFix:!1,asyncLoading:!0,asyncQueue:!1,attachStyles:!0,cloneNodeFix:!1,cmpDidLoad:!1,cmpDidRender:!0,cmpDidUnload:!1,cmpDidUpdate:!1,cmpShouldUpdate:!1,cmpWillLoad:!0,cmpWillRender:!1,cmpWillUpdate:!1,connectedCallback:!1,constructableCSS:!0,cssAnnotations:!0,devTools:!1,disconnectedCallback:!1,element:!1,event:!0,experimentalScopedSlotChanges:!1,experimentalSlotFixes:!1,formAssociated:!1,hasRenderFn:!0,hostListener:!1,hostListenerTarget:!1,hostListenerTargetBody:!1,hostListenerTargetDocument:!1,hostListenerTargetParent:!1,hostListenerTargetWindow:!1,hotModuleReplacement:!1,hydrateClientSide:!1,hydrateServerSide:!1,hydratedAttribute:!1,hydratedClass:!0,hydratedSelectorName:"hydrated",initializeNextTick:!1,invisiblePrehydration:!0,isDebug:!1,isDev:!1,isTesting:!1,lazyLoad:!0,lifecycle:!0,lifecycleDOMEvents:!1,member:!0,method:!1,mode:!1,observeAttribute:!0,profile:!1,prop:!0,propBoolean:!0,propMutable:!1,propNumber:!1,propString:!0,reflect:!0,scoped:!1,scopedSlotTextContentFix:!1,scriptDataOpts:!1,shadowDelegatesFocus:!1,shadowDom:!0,slot:!1,slotChildNodesFix:!1,slotRelocation:!1,state:!0,style:!0,svg:!1,taskQueue:!0,transformTagName:!1,updatable:!0,vdomAttribute:!0,vdomClass:!0,vdomFunctional:!1,vdomKey:!0,vdomListener:!0,vdomPropOrAttr:!0,vdomRef:!1,vdomRender:!0,vdomStyle:!1,vdomText:!0,vdomXlink:!1,watchCallback:!1};var ye=Object.defineProperty,Se=(e,t)=>{for(var n in t)ye(e,n,{get:t[n],enumerable:!0})},z=new WeakMap,S=e=>z.get(e),be=(e,t)=>z.set(t.$lazyInstance$=e,t),Ee=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onReadyPromise$=new Promise(s=>n.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],z.set(e,n)},q=(e,t)=>t in e,T=(e,t)=>(0,console.error)(e,t),j=new Map,ke=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const a=j.get(r);if(a)return a[s];{const l=i=>(j.set(r,i),i[s]);switch(r){case"casino-tournament-buttons":return Promise.resolve().then(()=>require("./casino-tournament-buttons-sxx8WSEA.cjs")).then(l,T)}}return import(`./${r}.entry.js`).then(l=>(j.set(r,l),l[s]),T)},_=new Map,Te="{visibility:hidden}.hydrated{visibility:inherit}",K="slot-fb{display:contents}slot-fb[hidden]{display:none}",O=typeof window!="undefined"?window:{},m=O.document||{head:{}},h={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},Z=e=>Promise.resolve(e),xe=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),U=!1,W=[],V=[],we=(e,t)=>n=>{e.push(n),U||(U=!0,h.$flags$&4?B(R):h.raf(R))},N=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){T(n)}e.length=0},R=()=>{N(W),N(V),(U=W.length>0)&&h.raf(R)},B=e=>Z().then(e),Le=we(V),X={},Pe=e=>e!=null,H=e=>(e=typeof e,e==="object"||e==="function");function ee(e){var t,n,s;return(s=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?s:void 0}var Ae={};Se(Ae,{err:()=>te,map:()=>_e,ok:()=>D,unwrap:()=>Ce,unwrapErr:()=>Oe});var D=e=>({isOk:!0,isErr:!1,value:e}),te=e=>({isOk:!1,isErr:!0,value:e});function _e(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(s=>D(s)):D(n)}if(e.isErr){const n=e.value;return te(n)}throw"should never get here"}var Ce=e=>{if(e.isOk)return e.value;throw e.value},Oe=e=>{if(e.isErr)return e.value;throw e.value},y=(e,t="")=>()=>{},je=(e,t)=>()=>{},se=(e,t,...n)=>{let s=null,r=null,a=!1,l=!1;const i=[],o=$=>{for(let f=0;f<$.length;f++)s=$[f],Array.isArray(s)?o(s):s!=null&&typeof s!="boolean"&&((a=typeof e!="function"&&!H(s))&&(s=String(s)),a&&l?i[i.length-1].$text$+=s:i.push(a?I(null,s):s),l=a)};if(o(n),t){t.key&&(r=t.key);{const $=t.className||t.class;$&&(t.class=typeof $!="object"?$:Object.keys($).filter(f=>$[f]).join(" "))}}const c=I(e,null);return c.$attrs$=t,i.length>0&&(c.$children$=i),c.$key$=r,c},I=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},Ue={},Re=e=>e&&e.$tag$===Ue,De=(e,t)=>e!=null&&!H(e)?t&4?e==="false"?!1:e===""||!!e:t&1?String(e):e:e,ne=e=>S(e).$hostElement$,Ie=(e,t,n)=>{const s=ne(e);return{emit:r=>re(s,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}},re=(e,t,n)=>{const s=h.ce(t,n);return e.dispatchEvent(s),s},G=new WeakMap,ze=(e,t,n)=>{let s=_.get(e);xe&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,_.set(e,s)},Be=(e,t,n)=>{var s;const r=le(t),a=_.get(r);if(e=e.nodeType===11?e:m,a)if(typeof a=="string"){e=e.head||e;let l=G.get(e),i;if(l||G.set(e,l=new Set),!l.has(r)){{i=m.createElement("style"),i.innerHTML=a;const o=(s=h.$nonce$)!=null?s:ee(m);o!=null&&i.setAttribute("nonce",o),(!(t.$flags$&1)||t.$flags$&1&&e.nodeName!=="HEAD")&&e.insertBefore(i,e.querySelector("link"))}t.$flags$&4&&(i.innerHTML+=K),l&&l.add(r)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return r},He=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=t.$flags$,r=y("attachStyles",t.$tagName$),a=Be(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);s&10&&s&2&&(n["s-sc"]=a,n.classList.add(a+"-h")),r()},le=(e,t)=>"sc-"+e.$tagName$,Q=(e,t,n,s,r,a)=>{if(n!==s){let l=q(e,t),i=t.toLowerCase();if(t==="class"){const o=e.classList,c=Y(n),$=Y(s);o.remove(...c.filter(f=>f&&!$.includes(f))),o.add(...$.filter(f=>f&&!c.includes(f)))}else if(t!=="key")if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):q(O,i)?t=i.slice(2):t=i[2]+t.slice(3),n||s){const o=t.endsWith(ae);t=t.replace(Me,""),n&&h.rel(e,t,n,o),s&&h.ael(e,t,s,o)}}else{const o=H(s);if((l||o&&s!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=s;else{const c=s==null?"":s;t==="list"?l=!1:(n==null||e[t]!=c)&&(e[t]=c)}}catch(c){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||a&4||r)&&!o&&(s=s===!0?"":s,e.setAttribute(t,s))}}},Fe=/\s/,Y=e=>e?e.split(Fe):[],ae="Capture",Me=new RegExp(ae+"$"),oe=(e,t,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||X,a=t.$attrs$||X;for(const l of J(Object.keys(r)))l in a||Q(s,l,r[l],void 0,n,t.$flags$);for(const l of J(Object.keys(a)))Q(s,l,r[l],a[l],n,t.$flags$)};function J(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var P,F,ie=!1,ce=!1,C=(e,t,n,s)=>{const r=t.$children$[n];let a=0,l,i;if(r.$text$!==null)l=r.$elm$=m.createTextNode(r.$text$);else if(l=r.$elm$=m.createElement(!ie&&x.slotRelocation&&r.$flags$&2?"slot-fb":r.$tag$),oe(null,r,ce),!!l.getRootNode().querySelector("body")&&x.scoped&&Pe(P)&&l["s-si"]!==P&&l.classList.add(l["s-si"]=P),r.$children$)for(a=0;a<r.$children$.length;++a)i=C(e,r,a),i&&l.appendChild(i);return l["s-hn"]=F,l},$e=(e,t,n,s,r,a)=>{let l=e,i;for(l.shadowRoot&&l.tagName===F&&(l=l.shadowRoot);r<=a;++r)s[r]&&(i=C(null,n,r),i&&(s[r].$elm$=i,A(l,i,t)))},fe=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const a=r.$elm$;a&&a.remove()}}},qe=(e,t,n,s,r=!1)=>{let a=0,l=0,i=0,o=0,c=t.length-1,$=t[0],f=t[c],d=s.length-1,u=s[0],p=s[d],g,v;for(;a<=c&&l<=d;)if($==null)$=t[++a];else if(f==null)f=t[--c];else if(u==null)u=s[++l];else if(p==null)p=s[--d];else if(L($,u,r))k($,u,r),$=t[++a],u=s[++l];else if(L(f,p,r))k(f,p,r),f=t[--c],p=s[--d];else if(L($,p,r))k($,p,r),A(e,$.$elm$,f.$elm$.nextSibling),$=t[++a],p=s[--d];else if(L(f,u,r))k(f,u,r),A(e,f.$elm$,$.$elm$),f=t[--c],u=s[++l];else{for(i=-1,o=a;o<=c;++o)if(t[o]&&t[o].$key$!==null&&t[o].$key$===u.$key$){i=o;break}i>=0?(v=t[i],v.$tag$!==u.$tag$?g=C(t&&t[l],n,i):(k(v,u,r),t[i]=void 0,g=v.$elm$),u=s[++l]):(g=C(t&&t[l],n,l),u=s[++l]),g&&A($.$elm$.parentNode,g,$.$elm$)}a>c?$e(e,s[d+1]==null?null:s[d+1].$elm$,n,s,l,d):l>d&&fe(t,a,c)},L=(e,t,n=!1)=>e.$tag$===t.$tag$?n?!0:e.$key$===t.$key$:!1,k=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,r=e.$children$,a=t.$children$,l=t.$text$;l===null?(oe(e,t,ce),r!==null&&a!==null?qe(s,r,t,a,n):a!==null?(e.$text$!==null&&(s.textContent=""),$e(s,null,t,a,0,a.length-1)):!n&&x.updatable&&r!==null&&fe(r,0,r.length-1)):e.$text$!==l&&(s.data=l)},A=(e,t,n)=>e==null?void 0:e.insertBefore(t,n),We=(e,t,n=!1)=>{const s=e.$hostElement$,r=e.$cmpMeta$,a=e.$vnode$||I(null,null),l=Re(t)?t:se(null,null,t);if(F=s.tagName,r.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},r.$attrsToReflect$.map(([i,o])=>l.$attrs$[o]=s[i])),n&&l.$attrs$)for(const i of Object.keys(l.$attrs$))s.hasAttribute(i)&&!["key","ref","style","class"].includes(i)&&(l.$attrs$[i]=s[i]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=a.$elm$=s.shadowRoot||s,P=s["s-sc"],ie=(r.$flags$&1)!==0,k(a,l,n)},de=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},M=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return de(e,e.$ancestorComponent$),Le(()=>Ne(e,t))},Ne=(e,t)=>{const n=e.$hostElement$,s=y("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;if(!r)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return t&&(a=pe(r,"componentWillLoad")),s(),Xe(a,()=>Qe(e,r,t))},Xe=(e,t)=>Ge(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),Ge=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Qe=(e,t,n)=>w(exports,null,function*(){var s;const r=e.$hostElement$,a=y("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];n&&He(e);const i=y("render",e.$cmpMeta$.$tagName$);Ye(e,t,r,n),l&&(l.map(o=>o()),r["s-rc"]=void 0),i(),a();{const o=(s=r["s-p"])!=null?s:[],c=()=>Je(e);o.length===0?c():(Promise.all(o).then(c),e.$flags$|=4,o.length=0)}}),Ye=(e,t,n,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,We(e,t,s)}catch(r){T(r,e.$hostElement$)}return null},Je=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=y("postUpdate",t),r=e.$lazyInstance$,a=e.$ancestorComponent$;pe(r,"componentDidRender"),e.$flags$&64?s():(e.$flags$|=64,ve(n),s(),e.$onReadyResolve$(n),a||ue()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&B(()=>M(e,!1)),e.$flags$&=-517},ue=e=>{ve(m.documentElement),B(()=>re(O,"appload",{detail:{namespace:me}}))},pe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(s){T(s)}},ve=e=>{var t;return e.classList.add((t=x.hydratedSelectorName)!=null?t:"hydrated")},Ke=(e,t)=>S(e).$instanceValues$.get(t),Ze=(e,t,n,s)=>{const r=S(e);if(!r)throw new Error(`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const a=r.$instanceValues$.get(t),l=r.$flags$,i=r.$lazyInstance$;n=De(n,s.$members$[t][0]);const o=Number.isNaN(a)&&Number.isNaN(n),c=n!==a&&!o;(!(l&8)||a===void 0)&&c&&(r.$instanceValues$.set(t,n),i&&(l&18)===2&&M(r,!1))},he=(e,t,n)=>{var s,r;const a=e.prototype;if(t.$members$||x.watchCallback){const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([i,[o]])=>{(o&31||n&2&&o&32)&&Object.defineProperty(a,i,{get(){return Ke(this,i)},set(c){Ze(this,i,c,t)},configurable:!0,enumerable:!0})}),n&1){const i=new Map;a.attributeChangedCallback=function(o,c,$){h.jmp(()=>{var f;const d=i.get(o);if(this.hasOwnProperty(d))$=this[d],delete this[d];else{if(a.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==$)return;if(d==null){const u=S(this),p=u==null?void 0:u.$flags$;if(p&&!(p&8)&&p&128&&$!==c){const g=u.$lazyInstance$,v=(f=t.$watchers$)==null?void 0:f[o];v==null||v.forEach(b=>{g[b]!=null&&g[b].call(g,$,c,o)})}return}}this[d]=$===null&&typeof this[d]=="boolean"?!1:$})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...l.filter(([o,c])=>c[0]&15).map(([o,c])=>{var $;const f=c[1]||o;return i.set(f,o),c[0]&512&&(($=t.$attrsToReflect$)==null||$.push([o,f])),f})]))}}return e},Ve=(e,t,n,s)=>w(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,n.$lazyBundleId$){const o=ke(n);if(o&&"then"in o){const $=je();r=yield o,$()}else r=o;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(he(r,n,2),r.isProxied=!0);const c=y("createInstance",n.$tagName$);t.$flags$|=8;try{new r(t)}catch($){T($)}t.$flags$&=-9,c()}else{r=e.constructor;const o=e.localName;customElements.whenDefined(o).then(()=>t.$flags$|=128)}if(r&&r.style){let o;typeof r.style=="string"&&(o=r.style);const c=le(n);if(!_.has(c)){const $=y("registerStyles",n.$tagName$);ze(c,o,!!(n.$flags$&1)),$()}}}const a=t.$ancestorComponent$,l=()=>M(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),et=e=>{},tt=e=>{if(!(h.$flags$&1)){const t=S(e),n=t.$cmpMeta$,s=y("connectedCallback",n.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>et());else{t.$flags$|=1;{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){de(t,t.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[a]])=>{if(a&31&&e.hasOwnProperty(r)){const l=e[r];delete e[r],e[r]=l}}),Ve(e,t,n)}s()}},st=e=>{},nt=e=>w(exports,null,function*(){if(!(h.$flags$&1)){const t=S(e);t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>st())}}),rt=(e,t={})=>{var n;const s=y(),r=[],a=t.exclude||[],l=O.customElements,i=m.head,o=i.querySelector("meta[charset]"),c=m.createElement("style"),$=[];let f,d=!0;Object.assign(h,t),h.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href;let u=!1;if(e.map(p=>{p[1].map(g=>{const v={$flags$:g[0],$tagName$:g[1],$members$:g[2],$listeners$:g[3]};v.$flags$&4&&(u=!0),v.$members$=g[2],v.$attrsToReflect$=[];const b=v.$tagName$,ge=class extends HTMLElement{constructor(E){if(super(E),this.hasRegisteredEventListeners=!1,E=this,Ee(E,v),v.$flags$&1){if(!E.shadowRoot)E.attachShadow({mode:"open"});else if(E.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${v.$tagName$}! Mode is set to ${E.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){S(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),d?$.push(this):h.jmp(()=>tt(this))}disconnectedCallback(){h.jmp(()=>nt(this))}componentOnReady(){return S(this).$onReadyPromise$}};v.$lazyBundleId$=p[0],!a.includes(b)&&!l.get(b)&&(r.push(b),l.define(b,he(ge,v,1)))})}),r.length>0&&(u&&(c.textContent+=K),c.textContent+=r.sort()+Te,c.innerHTML.length)){c.setAttribute("data-styles","");const p=(n=h.$nonce$)!=null?n:ee(m);p!=null&&c.setAttribute("nonce",p),i.insertBefore(c,o?o.nextSibling:i.firstChild)}d=!1,$.length?$.map(p=>p.connectedCallback()):h.jmp(()=>f=setTimeout(ue,30)),s()};exports.bootstrapLazy=rt;exports.createEvent=Ie;exports.getElement=ne;exports.h=se;exports.promiseResolve=Z;exports.registerInstance=be;
|
|
1
|
+
"use strict";var w=(e,t,n)=>new Promise((s,r)=>{var a=o=>{try{i(n.next(o))}catch(c){r(c)}},l=o=>{try{i(n.throw(o))}catch(c){r(c)}},i=o=>o.done?s(o.value):Promise.resolve(o.value).then(a,l);i((n=n.apply(e,t)).next())});const me="casino-tournament-buttons",x={allRenderFn:!0,appendChildSlotFix:!1,asyncLoading:!0,asyncQueue:!1,attachStyles:!0,cloneNodeFix:!1,cmpDidLoad:!1,cmpDidRender:!0,cmpDidUnload:!1,cmpDidUpdate:!1,cmpShouldUpdate:!1,cmpWillLoad:!0,cmpWillRender:!1,cmpWillUpdate:!1,connectedCallback:!1,constructableCSS:!0,cssAnnotations:!0,devTools:!1,disconnectedCallback:!1,element:!1,event:!0,experimentalScopedSlotChanges:!1,experimentalSlotFixes:!1,formAssociated:!1,hasRenderFn:!0,hostListener:!1,hostListenerTarget:!1,hostListenerTargetBody:!1,hostListenerTargetDocument:!1,hostListenerTargetParent:!1,hostListenerTargetWindow:!1,hotModuleReplacement:!1,hydrateClientSide:!1,hydrateServerSide:!1,hydratedAttribute:!1,hydratedClass:!0,hydratedSelectorName:"hydrated",initializeNextTick:!1,invisiblePrehydration:!0,isDebug:!1,isDev:!1,isTesting:!1,lazyLoad:!0,lifecycle:!0,lifecycleDOMEvents:!1,member:!0,method:!1,mode:!1,observeAttribute:!0,profile:!1,prop:!0,propBoolean:!0,propMutable:!1,propNumber:!1,propString:!0,reflect:!0,scoped:!1,scopedSlotTextContentFix:!1,scriptDataOpts:!1,shadowDelegatesFocus:!1,shadowDom:!0,slot:!1,slotChildNodesFix:!1,slotRelocation:!1,state:!0,style:!0,svg:!1,taskQueue:!0,transformTagName:!1,updatable:!0,vdomAttribute:!0,vdomClass:!0,vdomFunctional:!1,vdomKey:!0,vdomListener:!0,vdomPropOrAttr:!0,vdomRef:!1,vdomRender:!0,vdomStyle:!1,vdomText:!0,vdomXlink:!1,watchCallback:!1};var ye=Object.defineProperty,Se=(e,t)=>{for(var n in t)ye(e,n,{get:t[n],enumerable:!0})},z=new WeakMap,S=e=>z.get(e),be=(e,t)=>z.set(t.$lazyInstance$=e,t),Ee=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onReadyPromise$=new Promise(s=>n.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],z.set(e,n)},q=(e,t)=>t in e,T=(e,t)=>(0,console.error)(e,t),j=new Map,ke=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const a=j.get(r);if(a)return a[s];{const l=i=>(j.set(r,i),i[s]);switch(r){case"casino-tournament-buttons":return Promise.resolve().then(()=>require("./casino-tournament-buttons-B-rLD4pb.cjs")).then(l,T)}}return import(`./${r}.entry.js`).then(l=>(j.set(r,l),l[s]),T)},_=new Map,Te="{visibility:hidden}.hydrated{visibility:inherit}",K="slot-fb{display:contents}slot-fb[hidden]{display:none}",O=typeof window!="undefined"?window:{},m=O.document||{head:{}},h={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},Z=e=>Promise.resolve(e),xe=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),U=!1,W=[],V=[],we=(e,t)=>n=>{e.push(n),U||(U=!0,h.$flags$&4?B(R):h.raf(R))},N=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){T(n)}e.length=0},R=()=>{N(W),N(V),(U=W.length>0)&&h.raf(R)},B=e=>Z().then(e),Le=we(V),X={},Pe=e=>e!=null,H=e=>(e=typeof e,e==="object"||e==="function");function ee(e){var t,n,s;return(s=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?s:void 0}var Ae={};Se(Ae,{err:()=>te,map:()=>_e,ok:()=>D,unwrap:()=>Ce,unwrapErr:()=>Oe});var D=e=>({isOk:!0,isErr:!1,value:e}),te=e=>({isOk:!1,isErr:!0,value:e});function _e(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(s=>D(s)):D(n)}if(e.isErr){const n=e.value;return te(n)}throw"should never get here"}var Ce=e=>{if(e.isOk)return e.value;throw e.value},Oe=e=>{if(e.isErr)return e.value;throw e.value},y=(e,t="")=>()=>{},je=(e,t)=>()=>{},se=(e,t,...n)=>{let s=null,r=null,a=!1,l=!1;const i=[],o=$=>{for(let f=0;f<$.length;f++)s=$[f],Array.isArray(s)?o(s):s!=null&&typeof s!="boolean"&&((a=typeof e!="function"&&!H(s))&&(s=String(s)),a&&l?i[i.length-1].$text$+=s:i.push(a?I(null,s):s),l=a)};if(o(n),t){t.key&&(r=t.key);{const $=t.className||t.class;$&&(t.class=typeof $!="object"?$:Object.keys($).filter(f=>$[f]).join(" "))}}const c=I(e,null);return c.$attrs$=t,i.length>0&&(c.$children$=i),c.$key$=r,c},I=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},Ue={},Re=e=>e&&e.$tag$===Ue,De=(e,t)=>e!=null&&!H(e)?t&4?e==="false"?!1:e===""||!!e:t&1?String(e):e:e,ne=e=>S(e).$hostElement$,Ie=(e,t,n)=>{const s=ne(e);return{emit:r=>re(s,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}},re=(e,t,n)=>{const s=h.ce(t,n);return e.dispatchEvent(s),s},G=new WeakMap,ze=(e,t,n)=>{let s=_.get(e);xe&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,_.set(e,s)},Be=(e,t,n)=>{var s;const r=le(t),a=_.get(r);if(e=e.nodeType===11?e:m,a)if(typeof a=="string"){e=e.head||e;let l=G.get(e),i;if(l||G.set(e,l=new Set),!l.has(r)){{i=m.createElement("style"),i.innerHTML=a;const o=(s=h.$nonce$)!=null?s:ee(m);o!=null&&i.setAttribute("nonce",o),(!(t.$flags$&1)||t.$flags$&1&&e.nodeName!=="HEAD")&&e.insertBefore(i,e.querySelector("link"))}t.$flags$&4&&(i.innerHTML+=K),l&&l.add(r)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return r},He=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=t.$flags$,r=y("attachStyles",t.$tagName$),a=Be(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);s&10&&s&2&&(n["s-sc"]=a,n.classList.add(a+"-h")),r()},le=(e,t)=>"sc-"+e.$tagName$,Q=(e,t,n,s,r,a)=>{if(n!==s){let l=q(e,t),i=t.toLowerCase();if(t==="class"){const o=e.classList,c=Y(n),$=Y(s);o.remove(...c.filter(f=>f&&!$.includes(f))),o.add(...$.filter(f=>f&&!c.includes(f)))}else if(t!=="key")if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):q(O,i)?t=i.slice(2):t=i[2]+t.slice(3),n||s){const o=t.endsWith(ae);t=t.replace(Me,""),n&&h.rel(e,t,n,o),s&&h.ael(e,t,s,o)}}else{const o=H(s);if((l||o&&s!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=s;else{const c=s==null?"":s;t==="list"?l=!1:(n==null||e[t]!=c)&&(e[t]=c)}}catch(c){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||a&4||r)&&!o&&(s=s===!0?"":s,e.setAttribute(t,s))}}},Fe=/\s/,Y=e=>e?e.split(Fe):[],ae="Capture",Me=new RegExp(ae+"$"),oe=(e,t,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||X,a=t.$attrs$||X;for(const l of J(Object.keys(r)))l in a||Q(s,l,r[l],void 0,n,t.$flags$);for(const l of J(Object.keys(a)))Q(s,l,r[l],a[l],n,t.$flags$)};function J(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var P,F,ie=!1,ce=!1,C=(e,t,n,s)=>{const r=t.$children$[n];let a=0,l,i;if(r.$text$!==null)l=r.$elm$=m.createTextNode(r.$text$);else if(l=r.$elm$=m.createElement(!ie&&x.slotRelocation&&r.$flags$&2?"slot-fb":r.$tag$),oe(null,r,ce),!!l.getRootNode().querySelector("body")&&x.scoped&&Pe(P)&&l["s-si"]!==P&&l.classList.add(l["s-si"]=P),r.$children$)for(a=0;a<r.$children$.length;++a)i=C(e,r,a),i&&l.appendChild(i);return l["s-hn"]=F,l},$e=(e,t,n,s,r,a)=>{let l=e,i;for(l.shadowRoot&&l.tagName===F&&(l=l.shadowRoot);r<=a;++r)s[r]&&(i=C(null,n,r),i&&(s[r].$elm$=i,A(l,i,t)))},fe=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const a=r.$elm$;a&&a.remove()}}},qe=(e,t,n,s,r=!1)=>{let a=0,l=0,i=0,o=0,c=t.length-1,$=t[0],f=t[c],d=s.length-1,u=s[0],p=s[d],g,v;for(;a<=c&&l<=d;)if($==null)$=t[++a];else if(f==null)f=t[--c];else if(u==null)u=s[++l];else if(p==null)p=s[--d];else if(L($,u,r))k($,u,r),$=t[++a],u=s[++l];else if(L(f,p,r))k(f,p,r),f=t[--c],p=s[--d];else if(L($,p,r))k($,p,r),A(e,$.$elm$,f.$elm$.nextSibling),$=t[++a],p=s[--d];else if(L(f,u,r))k(f,u,r),A(e,f.$elm$,$.$elm$),f=t[--c],u=s[++l];else{for(i=-1,o=a;o<=c;++o)if(t[o]&&t[o].$key$!==null&&t[o].$key$===u.$key$){i=o;break}i>=0?(v=t[i],v.$tag$!==u.$tag$?g=C(t&&t[l],n,i):(k(v,u,r),t[i]=void 0,g=v.$elm$),u=s[++l]):(g=C(t&&t[l],n,l),u=s[++l]),g&&A($.$elm$.parentNode,g,$.$elm$)}a>c?$e(e,s[d+1]==null?null:s[d+1].$elm$,n,s,l,d):l>d&&fe(t,a,c)},L=(e,t,n=!1)=>e.$tag$===t.$tag$?n?!0:e.$key$===t.$key$:!1,k=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,r=e.$children$,a=t.$children$,l=t.$text$;l===null?(oe(e,t,ce),r!==null&&a!==null?qe(s,r,t,a,n):a!==null?(e.$text$!==null&&(s.textContent=""),$e(s,null,t,a,0,a.length-1)):!n&&x.updatable&&r!==null&&fe(r,0,r.length-1)):e.$text$!==l&&(s.data=l)},A=(e,t,n)=>e==null?void 0:e.insertBefore(t,n),We=(e,t,n=!1)=>{const s=e.$hostElement$,r=e.$cmpMeta$,a=e.$vnode$||I(null,null),l=Re(t)?t:se(null,null,t);if(F=s.tagName,r.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},r.$attrsToReflect$.map(([i,o])=>l.$attrs$[o]=s[i])),n&&l.$attrs$)for(const i of Object.keys(l.$attrs$))s.hasAttribute(i)&&!["key","ref","style","class"].includes(i)&&(l.$attrs$[i]=s[i]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=a.$elm$=s.shadowRoot||s,P=s["s-sc"],ie=(r.$flags$&1)!==0,k(a,l,n)},de=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},M=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return de(e,e.$ancestorComponent$),Le(()=>Ne(e,t))},Ne=(e,t)=>{const n=e.$hostElement$,s=y("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;if(!r)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return t&&(a=pe(r,"componentWillLoad")),s(),Xe(a,()=>Qe(e,r,t))},Xe=(e,t)=>Ge(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),Ge=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Qe=(e,t,n)=>w(exports,null,function*(){var s;const r=e.$hostElement$,a=y("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];n&&He(e);const i=y("render",e.$cmpMeta$.$tagName$);Ye(e,t,r,n),l&&(l.map(o=>o()),r["s-rc"]=void 0),i(),a();{const o=(s=r["s-p"])!=null?s:[],c=()=>Je(e);o.length===0?c():(Promise.all(o).then(c),e.$flags$|=4,o.length=0)}}),Ye=(e,t,n,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,We(e,t,s)}catch(r){T(r,e.$hostElement$)}return null},Je=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=y("postUpdate",t),r=e.$lazyInstance$,a=e.$ancestorComponent$;pe(r,"componentDidRender"),e.$flags$&64?s():(e.$flags$|=64,ve(n),s(),e.$onReadyResolve$(n),a||ue()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&B(()=>M(e,!1)),e.$flags$&=-517},ue=e=>{ve(m.documentElement),B(()=>re(O,"appload",{detail:{namespace:me}}))},pe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(s){T(s)}},ve=e=>{var t;return e.classList.add((t=x.hydratedSelectorName)!=null?t:"hydrated")},Ke=(e,t)=>S(e).$instanceValues$.get(t),Ze=(e,t,n,s)=>{const r=S(e);if(!r)throw new Error(`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const a=r.$instanceValues$.get(t),l=r.$flags$,i=r.$lazyInstance$;n=De(n,s.$members$[t][0]);const o=Number.isNaN(a)&&Number.isNaN(n),c=n!==a&&!o;(!(l&8)||a===void 0)&&c&&(r.$instanceValues$.set(t,n),i&&(l&18)===2&&M(r,!1))},he=(e,t,n)=>{var s,r;const a=e.prototype;if(t.$members$||x.watchCallback){const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([i,[o]])=>{(o&31||n&2&&o&32)&&Object.defineProperty(a,i,{get(){return Ke(this,i)},set(c){Ze(this,i,c,t)},configurable:!0,enumerable:!0})}),n&1){const i=new Map;a.attributeChangedCallback=function(o,c,$){h.jmp(()=>{var f;const d=i.get(o);if(this.hasOwnProperty(d))$=this[d],delete this[d];else{if(a.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==$)return;if(d==null){const u=S(this),p=u==null?void 0:u.$flags$;if(p&&!(p&8)&&p&128&&$!==c){const g=u.$lazyInstance$,v=(f=t.$watchers$)==null?void 0:f[o];v==null||v.forEach(b=>{g[b]!=null&&g[b].call(g,$,c,o)})}return}}this[d]=$===null&&typeof this[d]=="boolean"?!1:$})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...l.filter(([o,c])=>c[0]&15).map(([o,c])=>{var $;const f=c[1]||o;return i.set(f,o),c[0]&512&&(($=t.$attrsToReflect$)==null||$.push([o,f])),f})]))}}return e},Ve=(e,t,n,s)=>w(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,n.$lazyBundleId$){const o=ke(n);if(o&&"then"in o){const $=je();r=yield o,$()}else r=o;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(he(r,n,2),r.isProxied=!0);const c=y("createInstance",n.$tagName$);t.$flags$|=8;try{new r(t)}catch($){T($)}t.$flags$&=-9,c()}else{r=e.constructor;const o=e.localName;customElements.whenDefined(o).then(()=>t.$flags$|=128)}if(r&&r.style){let o;typeof r.style=="string"&&(o=r.style);const c=le(n);if(!_.has(c)){const $=y("registerStyles",n.$tagName$);ze(c,o,!!(n.$flags$&1)),$()}}}const a=t.$ancestorComponent$,l=()=>M(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),et=e=>{},tt=e=>{if(!(h.$flags$&1)){const t=S(e),n=t.$cmpMeta$,s=y("connectedCallback",n.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>et());else{t.$flags$|=1;{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){de(t,t.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[a]])=>{if(a&31&&e.hasOwnProperty(r)){const l=e[r];delete e[r],e[r]=l}}),Ve(e,t,n)}s()}},st=e=>{},nt=e=>w(exports,null,function*(){if(!(h.$flags$&1)){const t=S(e);t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>st())}}),rt=(e,t={})=>{var n;const s=y(),r=[],a=t.exclude||[],l=O.customElements,i=m.head,o=i.querySelector("meta[charset]"),c=m.createElement("style"),$=[];let f,d=!0;Object.assign(h,t),h.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href;let u=!1;if(e.map(p=>{p[1].map(g=>{const v={$flags$:g[0],$tagName$:g[1],$members$:g[2],$listeners$:g[3]};v.$flags$&4&&(u=!0),v.$members$=g[2],v.$attrsToReflect$=[];const b=v.$tagName$,ge=class extends HTMLElement{constructor(E){if(super(E),this.hasRegisteredEventListeners=!1,E=this,Ee(E,v),v.$flags$&1){if(!E.shadowRoot)E.attachShadow({mode:"open"});else if(E.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${v.$tagName$}! Mode is set to ${E.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){S(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),d?$.push(this):h.jmp(()=>tt(this))}disconnectedCallback(){h.jmp(()=>nt(this))}componentOnReady(){return S(this).$onReadyPromise$}};v.$lazyBundleId$=p[0],!a.includes(b)&&!l.get(b)&&(r.push(b),l.define(b,he(ge,v,1)))})}),r.length>0&&(u&&(c.textContent+=K),c.textContent+=r.sort()+Te,c.innerHTML.length)){c.setAttribute("data-styles","");const p=(n=h.$nonce$)!=null?n:ee(m);p!=null&&c.setAttribute("nonce",p),i.insertBefore(c,o?o.nextSibling:i.firstChild)}d=!1,$.length?$.map(p=>p.connectedCallback()):h.jmp(()=>f=setTimeout(ue,30)),s()};exports.bootstrapLazy=rt;exports.createEvent=Ie;exports.getElement=ne;exports.h=se;exports.promiseResolve=Z;exports.registerInstance=be;
|