@everymatrix/casino-tournaments-controller 1.54.12 → 1.55.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.
Files changed (29) hide show
  1. package/components/{CasinoTournamentsController-CD_5uyUc.js → CasinoTournamentsController-B87iHebe.js} +835 -813
  2. package/components/{CasinoTournamentsController-UUtBZIFh.js → CasinoTournamentsController-D4fqxCja.js} +681 -659
  3. package/components/CasinoTournamentsController-WRSyK2QY.cjs +14 -0
  4. package/components/{CasinoTournamentsFilterController-CDD660uA.cjs → CasinoTournamentsFilterController-D0T7rVhL.cjs} +1 -1
  5. package/components/{CasinoTournamentsFilterController-C6PNRuAN.js → CasinoTournamentsFilterController-D9Tidq8w.js} +20 -20
  6. package/components/{CasinoTournamentsFilterController-C8EhVpC4.js → CasinoTournamentsFilterController-Dxau0WQ7.js} +22 -22
  7. package/components/{CasinoTournamentsListController-wgytIhYX.js → CasinoTournamentsListController-Bj5LNl9h.js} +21 -21
  8. package/components/{CasinoTournamentsListController-fm8TCneo.cjs → CasinoTournamentsListController-CWi9-FPc.cjs} +2 -2
  9. package/components/{CasinoTournamentsListController-l8AH-AQy.js → CasinoTournamentsListController-e7qQuaaY.js} +21 -21
  10. package/components/{CasinoTournamentsThumbnail-C1PdhLiD.js → CasinoTournamentsThumbnail-C51R2INs.js} +36 -36
  11. package/components/{CasinoTournamentsThumbnail-BVAQJY4f.cjs → CasinoTournamentsThumbnail-CXUAscGP.cjs} +1 -1
  12. package/components/{CasinoTournamentsThumbnail-CfBfOQ6y.js → CasinoTournamentsThumbnail-Dq4yRdNG.js} +41 -41
  13. package/components/{CasinoTournamentsThumbnailController-B5QfYW6Q.cjs → CasinoTournamentsThumbnailController-BHFgnbwb.cjs} +1 -1
  14. package/components/{CasinoTournamentsThumbnailController-neX5M-sd.js → CasinoTournamentsThumbnailController-BQ6_5mnS.js} +73 -73
  15. package/components/{CasinoTournamentsThumbnailController-DBjAq9-k.js → CasinoTournamentsThumbnailController-cb4JbcxA.js} +43 -43
  16. package/components/{CasinoTournamentsThumbnailDuration-CGgR5XoL.js → CasinoTournamentsThumbnailDuration-COqsPwJj.js} +40 -40
  17. package/components/{CasinoTournamentsThumbnailDuration-DFP9BWRc.cjs → CasinoTournamentsThumbnailDuration-CQkAFLBa.cjs} +1 -1
  18. package/components/{CasinoTournamentsThumbnailDuration-sMRWK6Da.js → CasinoTournamentsThumbnailDuration-DSbhjj1f.js} +46 -46
  19. package/components/{CasinoTournamentsThumbnailGamesSlider-BUainTMh.js → CasinoTournamentsThumbnailGamesSlider--YAPEoXl.js} +37 -37
  20. package/components/{CasinoTournamentsThumbnailGamesSlider-Bcgbm6UZ.js → CasinoTournamentsThumbnailGamesSlider-B1lnmQeN.js} +54 -54
  21. package/components/{CasinoTournamentsThumbnailGamesSlider-CU3QiSRS.cjs → CasinoTournamentsThumbnailGamesSlider-LY1F0kxk.cjs} +1 -1
  22. package/components/{CasinoTournamentsThumbnailPrizes-Cb6ucU30.js → CasinoTournamentsThumbnailPrizes-BbCxQeLs.js} +15 -15
  23. package/components/{CasinoTournamentsThumbnailPrizes-D5o6hcAd.cjs → CasinoTournamentsThumbnailPrizes-CY5bdmwv.cjs} +1 -1
  24. package/components/{CasinoTournamentsThumbnailPrizes-pB7CeUbv.js → CasinoTournamentsThumbnailPrizes-CcMFztse.js} +15 -15
  25. package/es2015/casino-tournaments-controller.cjs +1 -1
  26. package/es2015/casino-tournaments-controller.js +1 -1
  27. package/esnext/casino-tournaments-controller.js +1 -1
  28. package/package.json +1 -1
  29. package/components/CasinoTournamentsController-C1dCP4c5.cjs +0 -14
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsController-C1dCP4c5.cjs");function C(r,e){t.addMessages(r,e)}const M={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Bitti",starting:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"},"en-us":{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}};function L(r){t.append_styles(r,"svelte-6h4bfy","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}")}function E(r){let e,n,a=r[10](r[0])+"",l,u,o,d=r[10](r[1])+"",g,T,y,h,b,v,S;function P(s,_){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?U:O}let w=P(r),m=w(r);function B(s,_){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return H;if(s[5]>0)return A;if(s[4]>0)return q}let D=B(r),f=D&&D(r);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),g=t.text(d),T=t.space(),y=t.element("div"),h=t.element("div"),m.c(),b=t.space(),f&&f.c(),t.attr(n,"class","StartDate"),t.attr(n,"part","StartDate"),t.attr(o,"class","EndDate"),t.attr(o,"part","EndDate"),t.attr(e,"class","TournamentDates"),t.attr(e,"part","TournamentDates"),t.attr(h,"class","ProgressBar"),t.attr(h,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,_){t.insert(s,e,_),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,g),t.insert(s,T,_),t.insert(s,y,_),t.append(y,h),m.m(h,null),t.append(h,b),f&&f.m(h,null),v||(S=t.action_destroyer(r[9].call(null,y)),v=!0)},p(s,_){_&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),_&2&&d!==(d=s[10](s[1])+"")&&t.set_data(g,d),w===(w=P(s))&&m?m.p(s,_):(m.d(1),m=w(s),m&&(m.c(),m.m(h,b))),D===(D=B(s))&&f?f.p(s,_):(f&&f.d(1),f=D&&D(s),f&&(f.c(),f.m(h,null)))},d(s){s&&(t.detach(e),t.detach(T),t.detach(y)),m.d(),f&&f.d(),v=!1,S()}}}function O(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",r[7]()+"%")},m(n,a){t.insert(n,e,a)},p(n,a){a&128&&t.set_style(e,"width",n[7]()+"%")},d(n){n&&t.detach(e)}}}function U(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillStarting"),t.attr(e,"part","ProgressBarFillStarting")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function N(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillEnd"),t.attr(e,"part","ProgressBarFillEnd")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function q(r){let e,n,a,l=r[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(r[6]),a=t.space(),u=t.text(l),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(o,d){t.insert(o,e,d),t.append(e,n),t.append(e,a),t.append(e,u)},p(o,d){d&64&&t.set_data(n,o[6]),d&256&&l!==(l=o[8]("left")+"")&&t.set_data(u,l)},d(o){o&&t.detach(e)}}}function A(r){let e,n=r[8]("starting")+"",a,l,u=r[11](r[5])+"",o;return{c(){e=t.element("div"),a=t.text(n),l=t.space(),o=t.text(u),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(d,g){t.insert(d,e,g),t.append(e,a),t.append(e,l),t.append(e,o)},p(d,g){g&256&&n!==(n=d[8]("starting")+"")&&t.set_data(a,n),g&32&&u!==(u=d[11](d[5])+"")&&t.set_data(o,u)},d(d){d&&t.detach(e)}}}function H(r){let e,n=r[8]("finished")+"",a;return{c(){e=t.element("div"),a=t.text(n),t.attr(e,"class","Finished"),t.attr(e,"part","Finished")},m(l,u){t.insert(l,e,u),t.append(e,a)},p(l,u){u&256&&n!==(n=l[8]("finished")+"")&&t.set_data(a,n)},d(l){l&&t.detach(e)}}}function W(r){let e,n=r[0]&&r[1]&&E(r);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration"),t.attr(e,"part","TournamentDuration")},m(a,l){t.insert(a,e,l),n&&n.m(e,null),r[16](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=E(a),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),n&&n.d(),r[16](null)}}}function G(r,e,n){let a,l;t.component_subscribe(r,t.$format,i=>n(8,l=i));let{startdate:u=""}=e,{enddate:o=""}=e,{status:d=""}=e,{lang:g="en"}=e,{clientstyling:T=""}=e,{clientstylingurl:y=""}=e,{translationurl:h=""}=e,b,v="",S="",P="";const w=()=>{fetch(h).then(c=>c.json()).then(c=>{Object.keys(c).forEach(p=>{C(p,c[p])})}).catch(c=>{console.log(c)})};Object.keys(M).forEach(i=>{C(i,M[i])});const m=i=>new Date(i).getTime(),B=(i,c)=>(m(c)-m(i))/(1e3*60),D=()=>{const i=new Date;n(4,v=B(i,o)),n(5,S=B(i,u)),n(6,P=s(v))},f=i=>{const c={month:"long"};let p=new Date(i),k=new Intl.DateTimeFormat(g,c).format(p);return`${p.getDate()} ${k}, ${p.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${p.getUTCFullYear()}`},s=i=>{const c=(k,F)=>k+" "+l(F),p=k=>{const F=Math.floor(k);return F<10?`0${F}`:`${F}`};if(i<1440){const k=i/60,F=i%60,x=(F-Math.floor(F))*60;return[k,F,x].map(I=>p(I)).join(":")}return c(Math.ceil(i/(60*24)),"days")},_=()=>{let i=document.createElement("style");i.innerHTML=T,b.appendChild(i)},R=()=>{let i=new URL(y),c=document.createElement("style");fetch(i.href).then(p=>p.text()).then(p=>{c.innerHTML=p,setTimeout(()=>{b.appendChild(c)},1),setTimeout(()=>{},500)})};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const i=setInterval(()=>{u&&o&&D()},1e3);return()=>clearInterval(i)});function j(i){t.binding_callbacks[i?"unshift":"push"](()=>{b=i,n(3,b)})}return r.$$set=i=>{"startdate"in i&&n(0,u=i.startdate),"enddate"in i&&n(1,o=i.enddate),"status"in i&&n(2,d=i.status),"lang"in i&&n(12,g=i.lang),"clientstyling"in i&&n(13,T=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,h=i.translationurl)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(v<=0)return 100;const i=B(u,o),c=100/i;return Math.floor((i-v)*c)}),r.$$.dirty&19&&u&&o&&D()&&s(v),r.$$.dirty&4096&&g&&D(),r.$$.dirty&4112&&g&&s(v),r.$$.dirty&32768&&h&&w(),r.$$.dirty&8200&&b&&T&&_(),r.$$.dirty&16392&&b&&y&&R()},[u,o,d,b,v,S,P,a,l,D,f,s,g,T,y,h,j]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,G,W,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},L)}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),t.flush()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),t.flush()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(z,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsController-WRSyK2QY.cjs");function C(r,e){t.addMessages(r,e)}const M={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Bitti",starting:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"},"en-us":{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}};function L(r){t.append_styles(r,"svelte-6h4bfy","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}")}function E(r){let e,n,a=r[10](r[0])+"",l,u,o,d=r[10](r[1])+"",g,T,y,h,b,v,S;function P(s,_){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?U:O}let w=P(r),m=w(r);function B(s,_){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return H;if(s[5]>0)return A;if(s[4]>0)return q}let D=B(r),f=D&&D(r);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),g=t.text(d),T=t.space(),y=t.element("div"),h=t.element("div"),m.c(),b=t.space(),f&&f.c(),t.attr(n,"class","StartDate"),t.attr(n,"part","StartDate"),t.attr(o,"class","EndDate"),t.attr(o,"part","EndDate"),t.attr(e,"class","TournamentDates"),t.attr(e,"part","TournamentDates"),t.attr(h,"class","ProgressBar"),t.attr(h,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,_){t.insert(s,e,_),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,g),t.insert(s,T,_),t.insert(s,y,_),t.append(y,h),m.m(h,null),t.append(h,b),f&&f.m(h,null),v||(S=t.action_destroyer(r[9].call(null,y)),v=!0)},p(s,_){_&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),_&2&&d!==(d=s[10](s[1])+"")&&t.set_data(g,d),w===(w=P(s))&&m?m.p(s,_):(m.d(1),m=w(s),m&&(m.c(),m.m(h,b))),D===(D=B(s))&&f?f.p(s,_):(f&&f.d(1),f=D&&D(s),f&&(f.c(),f.m(h,null)))},d(s){s&&(t.detach(e),t.detach(T),t.detach(y)),m.d(),f&&f.d(),v=!1,S()}}}function O(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",r[7]()+"%")},m(n,a){t.insert(n,e,a)},p(n,a){a&128&&t.set_style(e,"width",n[7]()+"%")},d(n){n&&t.detach(e)}}}function U(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillStarting"),t.attr(e,"part","ProgressBarFillStarting")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function N(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillEnd"),t.attr(e,"part","ProgressBarFillEnd")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function q(r){let e,n,a,l=r[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(r[6]),a=t.space(),u=t.text(l),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(o,d){t.insert(o,e,d),t.append(e,n),t.append(e,a),t.append(e,u)},p(o,d){d&64&&t.set_data(n,o[6]),d&256&&l!==(l=o[8]("left")+"")&&t.set_data(u,l)},d(o){o&&t.detach(e)}}}function A(r){let e,n=r[8]("starting")+"",a,l,u=r[11](r[5])+"",o;return{c(){e=t.element("div"),a=t.text(n),l=t.space(),o=t.text(u),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(d,g){t.insert(d,e,g),t.append(e,a),t.append(e,l),t.append(e,o)},p(d,g){g&256&&n!==(n=d[8]("starting")+"")&&t.set_data(a,n),g&32&&u!==(u=d[11](d[5])+"")&&t.set_data(o,u)},d(d){d&&t.detach(e)}}}function H(r){let e,n=r[8]("finished")+"",a;return{c(){e=t.element("div"),a=t.text(n),t.attr(e,"class","Finished"),t.attr(e,"part","Finished")},m(l,u){t.insert(l,e,u),t.append(e,a)},p(l,u){u&256&&n!==(n=l[8]("finished")+"")&&t.set_data(a,n)},d(l){l&&t.detach(e)}}}function W(r){let e,n=r[0]&&r[1]&&E(r);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration"),t.attr(e,"part","TournamentDuration")},m(a,l){t.insert(a,e,l),n&&n.m(e,null),r[16](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=E(a),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),n&&n.d(),r[16](null)}}}function G(r,e,n){let a,l;t.component_subscribe(r,t.$format,i=>n(8,l=i));let{startdate:u=""}=e,{enddate:o=""}=e,{status:d=""}=e,{lang:g="en"}=e,{clientstyling:T=""}=e,{clientstylingurl:y=""}=e,{translationurl:h=""}=e,b,v="",S="",P="";const w=()=>{fetch(h).then(c=>c.json()).then(c=>{Object.keys(c).forEach(p=>{C(p,c[p])})}).catch(c=>{console.log(c)})};Object.keys(M).forEach(i=>{C(i,M[i])});const m=i=>new Date(i).getTime(),B=(i,c)=>(m(c)-m(i))/(1e3*60),D=()=>{const i=new Date;n(4,v=B(i,o)),n(5,S=B(i,u)),n(6,P=s(v))},f=i=>{const c={month:"long"};let p=new Date(i),k=new Intl.DateTimeFormat(g,c).format(p);return`${p.getDate()} ${k}, ${p.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${p.getUTCFullYear()}`},s=i=>{const c=(k,F)=>k+" "+l(F),p=k=>{const F=Math.floor(k);return F<10?`0${F}`:`${F}`};if(i<1440){const k=i/60,F=i%60,x=(F-Math.floor(F))*60;return[k,F,x].map(I=>p(I)).join(":")}return c(Math.ceil(i/(60*24)),"days")},_=()=>{let i=document.createElement("style");i.innerHTML=T,b.appendChild(i)},R=()=>{let i=new URL(y),c=document.createElement("style");fetch(i.href).then(p=>p.text()).then(p=>{c.innerHTML=p,setTimeout(()=>{b.appendChild(c)},1),setTimeout(()=>{},500)})};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const i=setInterval(()=>{u&&o&&D()},1e3);return()=>clearInterval(i)});function j(i){t.binding_callbacks[i?"unshift":"push"](()=>{b=i,n(3,b)})}return r.$$set=i=>{"startdate"in i&&n(0,u=i.startdate),"enddate"in i&&n(1,o=i.enddate),"status"in i&&n(2,d=i.status),"lang"in i&&n(12,g=i.lang),"clientstyling"in i&&n(13,T=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,h=i.translationurl)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(v<=0)return 100;const i=B(u,o),c=100/i;return Math.floor((i-v)*c)}),r.$$.dirty&19&&u&&o&&D()&&s(v),r.$$.dirty&4096&&g&&D(),r.$$.dirty&4112&&g&&s(v),r.$$.dirty&32768&&h&&w(),r.$$.dirty&8200&&b&&T&&_(),r.$$.dirty&16392&&b&&y&&R()},[u,o,d,b,v,S,P,a,l,D,f,s,g,T,y,h,j]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,G,W,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},L)}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),t.flush()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),t.flush()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(z,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=z;
@@ -1,4 +1,4 @@
1
- import { a as K, S as Y, i as Z, s as J, f as C, b as Q, n as U, d as T, c as B, e as v, g as l, j as V, w as X, m as E, o as h, A as $, t as M, p as L, q as tt, C as A, v as et, $ as nt } from "./CasinoTournamentsController-UUtBZIFh.js";
1
+ import { a as K, S as Y, i as Z, f as C, c as J, s as Q, b as V, e as v, d as l, h as T, n as U, j as B, k as X, w as $, t as E, m as L, o as m, A as tt, p as M, u as et, D as A, $ as nt } from "./CasinoTournamentsController-B87iHebe.js";
2
2
  function N(i, t) {
3
3
  K(i, t);
4
4
  }
@@ -93,9 +93,9 @@ const O = {
93
93
  }
94
94
  };
95
95
  function it(i) {
96
- Q(i, "svelte-6h4bfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}");
96
+ V(i, "svelte-6h4bfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}");
97
97
  }
98
- function q(i) {
98
+ function H(i) {
99
99
  let t, e, s = (
100
100
  /*formatDate*/
101
101
  i[10](
@@ -108,7 +108,7 @@ function q(i) {
108
108
  /*enddate*/
109
109
  i[1]
110
110
  ) + ""
111
- ), g, S, p, m, D, F, j;
111
+ ), g, S, p, h, D, F, j;
112
112
  function I(r, b) {
113
113
  return (
114
114
  /*status*/
@@ -140,10 +140,10 @@ function q(i) {
140
140
  let k = R(i), f = k && k(i);
141
141
  return {
142
142
  c() {
143
- t = v("div"), e = v("div"), a = M(s), u = L(), o = v("div"), g = M(d), S = L(), p = v("div"), m = v("div"), y.c(), D = L(), f && f.c(), l(e, "class", "StartDate"), l(e, "part", "StartDate"), l(o, "class", "EndDate"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates"), l(t, "part", "TournamentDates"), l(m, "class", "ProgressBar"), l(m, "part", "ProgressBar"), l(p, "class", "ProgressBarWrapper"), l(p, "part", "ProgressBarWrapper");
143
+ t = v("div"), e = v("div"), a = E(s), u = L(), o = v("div"), g = E(d), S = L(), p = v("div"), h = v("div"), y.c(), D = L(), f && f.c(), l(e, "class", "StartDate"), l(e, "part", "StartDate"), l(o, "class", "EndDate"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates"), l(t, "part", "TournamentDates"), l(h, "class", "ProgressBar"), l(h, "part", "ProgressBar"), l(p, "class", "ProgressBarWrapper"), l(p, "part", "ProgressBarWrapper");
144
144
  },
145
145
  m(r, b) {
146
- B(r, t, b), h(t, e), h(e, a), h(t, u), h(t, o), h(o, g), B(r, S, b), B(r, p, b), h(p, m), y.m(m, null), h(m, D), f && f.m(m, null), F || (j = $(
146
+ T(r, t, b), m(t, e), m(e, a), m(t, u), m(t, o), m(o, g), T(r, S, b), T(r, p, b), m(p, h), y.m(h, null), m(h, D), f && f.m(h, null), F || (j = tt(
147
147
  /*getDuration*/
148
148
  i[9].call(null, p)
149
149
  ), F = !0);
@@ -154,15 +154,15 @@ function q(i) {
154
154
  r[10](
155
155
  /*startdate*/
156
156
  r[0]
157
- ) + "") && E(a, s), b & /*enddate*/
157
+ ) + "") && M(a, s), b & /*enddate*/
158
158
  2 && d !== (d = /*formatDate*/
159
159
  r[10](
160
160
  /*enddate*/
161
161
  r[1]
162
- ) + "") && E(g, d), z === (z = I(r)) && y ? y.p(r, b) : (y.d(1), y = z(r), y && (y.c(), y.m(m, D))), k === (k = R(r)) && f ? f.p(r, b) : (f && f.d(1), f = k && k(r), f && (f.c(), f.m(m, null)));
162
+ ) + "") && M(g, d), z === (z = I(r)) && y ? y.p(r, b) : (y.d(1), y = z(r), y && (y.c(), y.m(h, D))), k === (k = R(r)) && f ? f.p(r, b) : (f && f.d(1), f = k && k(r), f && (f.c(), f.m(h, null)));
163
163
  },
164
164
  d(r) {
165
- r && (T(t), T(S), T(p)), y.d(), f && f.d(), F = !1, j();
165
+ r && (B(t), B(S), B(p)), y.d(), f && f.d(), F = !1, j();
166
166
  }
167
167
  };
168
168
  }
@@ -178,7 +178,7 @@ function st(i) {
178
178
  );
179
179
  },
180
180
  m(e, s) {
181
- B(e, t, s);
181
+ T(e, t, s);
182
182
  },
183
183
  p(e, s) {
184
184
  s & /*getProgress*/
@@ -190,7 +190,7 @@ function st(i) {
190
190
  );
191
191
  },
192
192
  d(e) {
193
- e && T(t);
193
+ e && B(t);
194
194
  }
195
195
  };
196
196
  }
@@ -201,11 +201,11 @@ function rt(i) {
201
201
  t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
202
202
  },
203
203
  m(e, s) {
204
- B(e, t, s);
204
+ T(e, t, s);
205
205
  },
206
206
  p: U,
207
207
  d(e) {
208
- e && T(t);
208
+ e && B(t);
209
209
  }
210
210
  };
211
211
  }
@@ -216,11 +216,11 @@ function at(i) {
216
216
  t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
217
217
  },
218
218
  m(e, s) {
219
- B(e, t, s);
219
+ T(e, t, s);
220
220
  },
221
221
  p: U,
222
222
  d(e) {
223
- e && T(t);
223
+ e && B(t);
224
224
  }
225
225
  };
226
226
  }
@@ -231,26 +231,26 @@ function lt(i) {
231
231
  ), u;
232
232
  return {
233
233
  c() {
234
- t = v("div"), e = M(
234
+ t = v("div"), e = E(
235
235
  /*showRemain*/
236
236
  i[6]
237
- ), s = L(), u = M(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
237
+ ), s = L(), u = E(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
238
238
  },
239
239
  m(o, d) {
240
- B(o, t, d), h(t, e), h(t, s), h(t, u);
240
+ T(o, t, d), m(t, e), m(t, s), m(t, u);
241
241
  },
242
242
  p(o, d) {
243
243
  d & /*showRemain*/
244
- 64 && E(
244
+ 64 && M(
245
245
  e,
246
246
  /*showRemain*/
247
247
  o[6]
248
248
  ), d & /*$_*/
249
249
  256 && a !== (a = /*$_*/
250
- o[8]("left") + "") && E(u, a);
250
+ o[8]("left") + "") && M(u, a);
251
251
  },
252
252
  d(o) {
253
- o && T(t);
253
+ o && B(t);
254
254
  }
255
255
  };
256
256
  }
@@ -267,23 +267,23 @@ function ot(i) {
267
267
  ), o;
268
268
  return {
269
269
  c() {
270
- t = v("div"), s = M(e), a = L(), o = M(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
270
+ t = v("div"), s = E(e), a = L(), o = E(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
271
271
  },
272
272
  m(d, g) {
273
- B(d, t, g), h(t, s), h(t, a), h(t, o);
273
+ T(d, t, g), m(t, s), m(t, a), m(t, o);
274
274
  },
275
275
  p(d, g) {
276
276
  g & /*$_*/
277
277
  256 && e !== (e = /*$_*/
278
- d[8]("starting") + "") && E(s, e), g & /*tournamentUntilStartDays*/
278
+ d[8]("starting") + "") && M(s, e), g & /*tournamentUntilStartDays*/
279
279
  32 && u !== (u = /*getTextByDiff*/
280
280
  d[11](
281
281
  /*tournamentUntilStartDays*/
282
282
  d[5]
283
- ) + "") && E(o, u);
283
+ ) + "") && M(o, u);
284
284
  },
285
285
  d(d) {
286
- d && T(t);
286
+ d && B(t);
287
287
  }
288
288
  };
289
289
  }
@@ -294,18 +294,18 @@ function ut(i) {
294
294
  ), s;
295
295
  return {
296
296
  c() {
297
- t = v("div"), s = M(e), l(t, "class", "Finished"), l(t, "part", "Finished");
297
+ t = v("div"), s = E(e), l(t, "class", "Finished"), l(t, "part", "Finished");
298
298
  },
299
299
  m(a, u) {
300
- B(a, t, u), h(t, s);
300
+ T(a, t, u), m(t, s);
301
301
  },
302
302
  p(a, u) {
303
303
  u & /*$_*/
304
304
  256 && e !== (e = /*$_*/
305
- a[8]("finished") + "") && E(s, e);
305
+ a[8]("finished") + "") && M(s, e);
306
306
  },
307
307
  d(a) {
308
- a && T(t);
308
+ a && B(t);
309
309
  }
310
310
  };
311
311
  }
@@ -313,33 +313,33 @@ function dt(i) {
313
313
  let t, e = (
314
314
  /*startdate*/
315
315
  i[0] && /*enddate*/
316
- i[1] && q(i)
316
+ i[1] && H(i)
317
317
  );
318
318
  return {
319
319
  c() {
320
320
  t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
321
321
  },
322
322
  m(s, a) {
323
- B(s, t, a), e && e.m(t, null), i[16](t);
323
+ T(s, t, a), e && e.m(t, null), i[16](t);
324
324
  },
325
325
  p(s, [a]) {
326
326
  /*startdate*/
327
327
  s[0] && /*enddate*/
328
- s[1] ? e ? e.p(s, a) : (e = q(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
328
+ s[1] ? e ? e.p(s, a) : (e = H(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
329
329
  },
330
330
  i: U,
331
331
  o: U,
332
332
  d(s) {
333
- s && T(t), e && e.d(), i[16](null);
333
+ s && B(t), e && e.d(), i[16](null);
334
334
  }
335
335
  };
336
336
  }
337
337
  function ct(i, t, e) {
338
338
  let s, a;
339
- V(i, nt, (n) => e(8, a = n));
340
- let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: m = "" } = t, D, F = "", j = "", I = "";
339
+ X(i, nt, (n) => e(8, a = n));
340
+ let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: h = "" } = t, D, F = "", j = "", I = "";
341
341
  const z = () => {
342
- fetch(m).then((c) => c.json()).then((c) => {
342
+ fetch(h).then((c) => c.json()).then((c) => {
343
343
  Object.keys(c).forEach((_) => {
344
344
  N(_, c[_]);
345
345
  });
@@ -370,7 +370,7 @@ function ct(i, t, e) {
370
370
  }, b = () => {
371
371
  let n = document.createElement("style");
372
372
  n.innerHTML = S, D.appendChild(n);
373
- }, H = () => {
373
+ }, q = () => {
374
374
  let n = new URL(p), c = document.createElement("style");
375
375
  fetch(n.href).then((_) => _.text()).then((_) => {
376
376
  c.innerHTML = _, setTimeout(
@@ -385,7 +385,7 @@ function ct(i, t, e) {
385
385
  );
386
386
  });
387
387
  };
388
- X(() => {
388
+ $(() => {
389
389
  window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
390
390
  const n = setInterval(
391
391
  () => {
@@ -396,12 +396,12 @@ function ct(i, t, e) {
396
396
  return () => clearInterval(n);
397
397
  });
398
398
  function x(n) {
399
- tt[n ? "unshift" : "push"](() => {
399
+ et[n ? "unshift" : "push"](() => {
400
400
  D = n, e(3, D);
401
401
  });
402
402
  }
403
403
  return i.$$set = (n) => {
404
- "startdate" in n && e(0, u = n.startdate), "enddate" in n && e(1, o = n.enddate), "status" in n && e(2, d = n.status), "lang" in n && e(12, g = n.lang), "clientstyling" in n && e(13, S = n.clientstyling), "clientstylingurl" in n && e(14, p = n.clientstylingurl), "translationurl" in n && e(15, m = n.translationurl);
404
+ "startdate" in n && e(0, u = n.startdate), "enddate" in n && e(1, o = n.enddate), "status" in n && e(2, d = n.status), "lang" in n && e(12, g = n.lang), "clientstyling" in n && e(13, S = n.clientstyling), "clientstylingurl" in n && e(14, p = n.clientstylingurl), "translationurl" in n && e(15, h = n.translationurl);
405
405
  }, i.$$.update = () => {
406
406
  i.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
407
407
  19 && e(7, s = () => {
@@ -412,9 +412,9 @@ function ct(i, t, e) {
412
412
  19 && u && o && k() && r(F), i.$$.dirty & /*lang*/
413
413
  4096 && g && k(), i.$$.dirty & /*lang, tournamentLeftDays*/
414
414
  4112 && g && r(F), i.$$.dirty & /*translationurl*/
415
- 32768 && m && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
415
+ 32768 && h && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
416
416
  8200 && D && S && b(), i.$$.dirty & /*customStylingContainer, clientstylingurl*/
417
- 16392 && D && p && H();
417
+ 16392 && D && p && q();
418
418
  }, [
419
419
  u,
420
420
  o,
@@ -431,7 +431,7 @@ function ct(i, t, e) {
431
431
  g,
432
432
  S,
433
433
  p,
434
- m,
434
+ h,
435
435
  x
436
436
  ];
437
437
  }
@@ -442,7 +442,7 @@ class ft extends Y {
442
442
  t,
443
443
  ct,
444
444
  dt,
445
- J,
445
+ Q,
446
446
  {
447
447
  startdate: 0,
448
448
  enddate: 1,
@@ -498,7 +498,7 @@ class ft extends Y {
498
498
  this.$$set({ translationurl: t }), C();
499
499
  }
500
500
  }
501
- et(ft, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
501
+ J(ft, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
502
502
  export {
503
503
  ft as default
504
504
  };
@@ -1,4 +1,4 @@
1
- import { a as be, S as ve, i as ke, s as Ne, f as M, b as Se, n as X, d as D, e as G, g as S, k as Te, w as Fe, l as x, m as Me, B as te, G as j, C as Y, p as v, H as Be, u as L, q as z, h as c, I as Pe, F as Ee, r as I, o as Le, J as Z, t as He, c as Ce, $ as je } from "./CasinoTournamentsController-CD_5uyUc.js";
1
+ import { a as be, S as ve, i as ke, f as M, c as Ne, s as Se, b as Te, e as S, h as I, n as X, j as G, k as Fe, w as Me, l as x, m as z, d as c, G as C, D as Y, H as Pe, o as v, I as Be, r as L, q as Ee, C as te, t as Le, J as Z, p as He, F as je, u as D, $ as Ce } from "./CasinoTournamentsController-D4fqxCja.js";
2
2
  function K(e, l) {
3
3
  be(e, l);
4
4
  }
@@ -35,7 +35,7 @@ const Q = {
35
35
  }
36
36
  };
37
37
  function ze(e) {
38
- Se(e, "svelte-xgd67c", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}");
38
+ Te(e, "svelte-xgd67c", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}");
39
39
  }
40
40
  function V(e, l, t) {
41
41
  const a = e.slice();
@@ -53,7 +53,7 @@ function $(e) {
53
53
  l = S("div"), t = S("div"), t.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>', a = z(), d = S("main"), h = S("div");
54
54
  for (let s = 0; s < o.length; s += 1)
55
55
  o[s].c();
56
- y = z(), r = S("div"), r.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', c(t, "class", "SliderNavButton"), c(t, "part", "SliderNavButton"), j(
56
+ y = z(), r = S("div"), r.innerHTML = '<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>', c(t, "class", "SliderNavButton"), c(t, "part", "SliderNavButton"), C(
57
57
  t,
58
58
  "disabled",
59
59
  /*atStart*/
@@ -62,7 +62,7 @@ function $(e) {
62
62
  e[2] + "px)"), Pe(() => (
63
63
  /*main_elementresize_handler*/
64
64
  e[28].call(d)
65
- )), c(r, "class", "SliderNavButton"), c(r, "part", "SliderNavButton"), j(
65
+ )), c(r, "class", "SliderNavButton"), c(r, "part", "SliderNavButton"), C(
66
66
  r,
67
67
  "disabled",
68
68
  /*atEnd*/
@@ -70,7 +70,7 @@ function $(e) {
70
70
  ), c(l, "class", "TournamentsGamesSlider"), c(l, "part", "TournamentsGamesSlider");
71
71
  },
72
72
  m(s, b) {
73
- G(s, l, b), v(l, t), v(l, a), v(l, d), v(d, h);
73
+ I(s, l, b), v(l, t), v(l, a), v(l, d), v(d, h);
74
74
  for (let i = 0; i < o.length; i += 1)
75
75
  o[i] && o[i].m(h, null);
76
76
  e[27](h), p = Be(
@@ -94,7 +94,7 @@ function $(e) {
94
94
  },
95
95
  p(s, b) {
96
96
  if (b[0] & /*atStart*/
97
- 256 && j(
97
+ 256 && C(
98
98
  t,
99
99
  "disabled",
100
100
  /*atStart*/
@@ -117,7 +117,7 @@ function $(e) {
117
117
  b[0] & /*offset*/
118
118
  4 && Y(h, "transform", "translateX(" + /*offset*/
119
119
  s[2] + "px)"), b[0] & /*atEnd*/
120
- 512 && j(
120
+ 512 && C(
121
121
  r,
122
122
  "disabled",
123
123
  /*atEnd*/
@@ -125,7 +125,7 @@ function $(e) {
125
125
  );
126
126
  },
127
127
  d(s) {
128
- s && D(l), Me(o, s), e[27](null), p(), e[30](null), w = !1, te(_);
128
+ s && G(l), Ee(o, s), e[27](null), p(), e[30](null), w = !1, te(_);
129
129
  }
130
130
  };
131
131
  }
@@ -154,7 +154,7 @@ function ee(e) {
154
154
  }
155
155
  return {
156
156
  c() {
157
- l = S("div"), t = S("span"), d = He(a), y = z(), r = S("img"), o = z(), c(t, "class", h = "PlayNowButton " + /*hover*/
157
+ l = S("div"), t = S("span"), d = Le(a), y = z(), r = S("img"), o = z(), c(t, "class", h = "PlayNowButton " + /*hover*/
158
158
  (e[5] && /*hoverIndex*/
159
159
  e[6] == /*i*/
160
160
  e[52] ? "itemHover" : "")), c(t, "part", p = "PlayNowButton " + /*hover*/
@@ -166,7 +166,7 @@ function ee(e) {
166
166
  e[50].name), c(l, "class", "item"), c(l, "part", "item");
167
167
  },
168
168
  m(u, m) {
169
- G(u, l, m), v(l, t), v(t, d), v(l, y), v(l, r), v(l, o), s || (b = [
169
+ I(u, l, m), v(l, t), v(t, d), v(l, y), v(l, r), v(l, o), s || (b = [
170
170
  L(l, "click", i),
171
171
  L(l, "mouseenter", k),
172
172
  L(
@@ -180,7 +180,7 @@ function ee(e) {
180
180
  p(u, m) {
181
181
  e = u, m[0] & /*$_*/
182
182
  1024 && a !== (a = /*$_*/
183
- e[10]("playNow") + "") && Le(d, a), m[0] & /*hover, hoverIndex*/
183
+ e[10]("playNow") + "") && He(d, a), m[0] & /*hover, hoverIndex*/
184
184
  96 && h !== (h = "PlayNowButton " + /*hover*/
185
185
  (e[5] && /*hoverIndex*/
186
186
  e[6] == /*i*/
@@ -197,7 +197,7 @@ function ee(e) {
197
197
  e[50].name) && c(r, "title", f);
198
198
  },
199
199
  d(u) {
200
- u && D(l), s = !1, te(b);
200
+ u && G(l), s = !1, te(b);
201
201
  }
202
202
  };
203
203
  }
@@ -212,7 +212,7 @@ function Ae(e) {
212
212
  l = S("div"), t && t.c();
213
213
  },
214
214
  m(a, d) {
215
- G(a, l, d), t && t.m(l, null), e[31](l);
215
+ I(a, l, d), t && t.m(l, null), e[31](l);
216
216
  },
217
217
  p(a, d) {
218
218
  /*games*/
@@ -222,15 +222,15 @@ function Ae(e) {
222
222
  i: X,
223
223
  o: X,
224
224
  d(a) {
225
- a && D(l), t && t.d(), e[31](null);
225
+ a && G(l), t && t.d(), e[31](null);
226
226
  }
227
227
  };
228
228
  }
229
229
  let Ue = 30;
230
- function Ie(e, l, t) {
230
+ function De(e, l, t) {
231
231
  let a, d, h;
232
- Te(e, je, (n) => t(10, h = n));
233
- let { tournamenturl: p = "" } = l, { scrollby: y = "3" } = l, { pagfactor: r = "175" } = l, { lang: w = "" } = l, { translationurl: _ = "" } = l, { clientstyling: f = "" } = l, { clientstylingurl: o = "" } = l, s, b = window.navigator.userAgent, i, k = [], u = 0, m, H = null, C = null, A = !1, U, B, P = 0, T;
232
+ Fe(e, Ce, (n) => t(10, h = n));
233
+ let { tournamenturl: p = "" } = l, { scrollby: y = "3" } = l, { pagfactor: r = "175" } = l, { lang: w = "" } = l, { translationurl: _ = "" } = l, { clientstyling: f = "" } = l, { clientstylingurl: o = "" } = l, s, b = window.navigator.userAgent, i, k = [], u = 0, m, H = null, j = null, A = !1, U, P, B = 0, T;
234
234
  const ne = () => {
235
235
  fetch(_).then((g) => g.json()).then((g) => {
236
236
  Object.keys(g).forEach((N) => {
@@ -249,13 +249,13 @@ function Ie(e, l, t) {
249
249
  t(5, A = !1), t(6, U = -1);
250
250
  }, le = (n) => n.touches || n.originalEvent.touches, J = (n) => {
251
251
  const g = le(n)[0];
252
- H = g.clientX, C = g.clientY;
252
+ H = g.clientX, j = g.clientY;
253
253
  }, O = (n) => {
254
- if (!H || !C) return;
255
- let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e = C - N;
256
- Math.abs(F) > Math.abs(_e) && (F > 0 ? E(1) : E(-1)), H = null, C = null;
254
+ if (!H || !j) return;
255
+ let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e = j - N;
256
+ Math.abs(F) > Math.abs(_e) && (F > 0 ? E(1) : E(-1)), H = null, j = null;
257
257
  }, E = (n) => {
258
- n > 0 && !d ? (t(2, u -= i), t(2, u = u < P ? P : u)) : n < 0 && !a && (t(2, u += i), t(2, u = u > 0 ? 0 : u));
258
+ n > 0 && !d ? (t(2, u -= i), t(2, u = u < B ? B : u)) : n < 0 && !a && (t(2, u += i), t(2, u = u > 0 ? 0 : u));
259
259
  }, R = (n) => {
260
260
  window.postMessage(
261
261
  {
@@ -268,7 +268,7 @@ function Ie(e, l, t) {
268
268
  );
269
269
  }, se = () => {
270
270
  let n = new URL(p), g = new Headers();
271
- n.searchParams.append("expand", "games"), n.searchParams.append("pagination", `games(limit=${Ue},offset=${u})`), n.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), n.searchParams.append("language", w), n.searchParams.append("platform", Ee(b)), fetch(n, { method: "GET", headers: g }).then((F) => F.json()).then((F) => {
271
+ n.searchParams.append("expand", "games"), n.searchParams.append("pagination", `games(limit=${Ue},offset=${u})`), n.searchParams.append("fields", "games(id,name,thumbnail,launchUrl)"), n.searchParams.append("language", w), n.searchParams.append("platform", je(b)), fetch(n, { method: "GET", headers: g }).then((F) => F.json()).then((F) => {
272
272
  t(1, k = F.item.games.items), F.item.games.total;
273
273
  });
274
274
  }, re = () => {
@@ -276,7 +276,7 @@ function Ie(e, l, t) {
276
276
  }, ae = () => {
277
277
  setTimeout(
278
278
  () => {
279
- t(22, P = (B.scrollWidth - B.clientWidth) * -1), t(16, r = new String(B.scrollWidth / k.length)), i = parseInt(y, 10) * parseFloat(r, 2).toFixed(2);
279
+ t(22, B = (P.scrollWidth - P.clientWidth) * -1), t(16, r = new String(P.scrollWidth / k.length)), i = parseInt(y, 10) * parseFloat(r, 2).toFixed(2);
280
280
  },
281
281
  1e3
282
282
  );
@@ -300,13 +300,13 @@ function Ie(e, l, t) {
300
300
  }, ce = () => {
301
301
  T > 0 && T < Math.floor((parseInt(y) + 1) * r) && t(15, y = Math.ceil(T / r).toString());
302
302
  };
303
- Fe(() => (i = parseInt(y, 10) * parseInt(r, 10), () => {
303
+ Me(() => (i = parseInt(y, 10) * parseInt(r, 10), () => {
304
304
  m.removeEventListener("touchstart", J), m.removeEventListener("touchmove", O);
305
305
  }));
306
306
  const ue = () => E(-1), de = (n) => R(n), he = (n) => W(n), me = () => q();
307
307
  function fe(n) {
308
- I[n ? "unshift" : "push"](() => {
309
- B = n, t(7, B);
308
+ D[n ? "unshift" : "push"](() => {
309
+ P = n, t(7, P);
310
310
  });
311
311
  }
312
312
  function ge() {
@@ -314,12 +314,12 @@ function Ie(e, l, t) {
314
314
  }
315
315
  const pe = () => E(1);
316
316
  function ye(n) {
317
- I[n ? "unshift" : "push"](() => {
317
+ D[n ? "unshift" : "push"](() => {
318
318
  m = n, t(3, m);
319
319
  });
320
320
  }
321
321
  function we(n) {
322
- I[n ? "unshift" : "push"](() => {
322
+ D[n ? "unshift" : "push"](() => {
323
323
  s = n, t(0, s);
324
324
  });
325
325
  }
@@ -328,7 +328,7 @@ function Ie(e, l, t) {
328
328
  }, e.$$.update = () => {
329
329
  e.$$.dirty[0] & /*offset*/
330
330
  4 && t(8, a = u === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
331
- 4194308 && t(9, d = u <= P), e.$$.dirty[0] & /*sliderMainWidth*/
331
+ 4194308 && t(9, d = u <= B), e.$$.dirty[0] & /*sliderMainWidth*/
332
332
  16 && T && ce(), e.$$.dirty[0] & /*tournamenturl*/
333
333
  131072 && p && se(), e.$$.dirty[0] & /*slider*/
334
334
  8 && m && re(), e.$$.dirty[0] & /*translationurl*/
@@ -344,7 +344,7 @@ function Ie(e, l, t) {
344
344
  T,
345
345
  A,
346
346
  U,
347
- B,
347
+ P,
348
348
  a,
349
349
  d,
350
350
  h,
@@ -359,7 +359,7 @@ function Ie(e, l, t) {
359
359
  _,
360
360
  f,
361
361
  o,
362
- P,
362
+ B,
363
363
  ue,
364
364
  de,
365
365
  he,
@@ -371,14 +371,14 @@ function Ie(e, l, t) {
371
371
  we
372
372
  ];
373
373
  }
374
- class De extends ve {
374
+ class Ie extends ve {
375
375
  constructor(l) {
376
376
  super(), ke(
377
377
  this,
378
378
  l,
379
- Ie,
379
+ De,
380
380
  Ae,
381
- Ne,
381
+ Se,
382
382
  {
383
383
  tournamenturl: 17,
384
384
  scrollby: 15,
@@ -435,7 +435,7 @@ class De extends ve {
435
435
  this.$$set({ clientstylingurl: l }), M();
436
436
  }
437
437
  }
438
- Ce(De, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
438
+ Ne(Ie, { tournamenturl: {}, scrollby: {}, pagfactor: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
439
439
  export {
440
- De as default
440
+ Ie as default
441
441
  };