@everymatrix/casino-tournaments-controller 1.44.0 → 1.45.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/components/CasinoTournamentsController-CQ5C1jDl.cjs +14 -0
  2. package/components/CasinoTournamentsController-Cr8b4j7l.js +5627 -0
  3. package/components/CasinoTournamentsFilterController-BtuK-ddv.cjs +1 -0
  4. package/components/CasinoTournamentsFilterController-Chy_sE0V.js +529 -0
  5. package/components/CasinoTournamentsListController-BinvLjvx.cjs +13 -0
  6. package/components/CasinoTournamentsListController-DXHqP9An.js +3103 -0
  7. package/components/CasinoTournamentsThumbnail-BFS6MlWH.js +865 -0
  8. package/components/CasinoTournamentsThumbnail-CM3Rfdn3.cjs +4 -0
  9. package/components/CasinoTournamentsThumbnailController-C71hXcQP.cjs +1 -0
  10. package/components/CasinoTournamentsThumbnailController-NEf6XMRB.js +1405 -0
  11. package/components/CasinoTournamentsThumbnailDuration-CrS_PUCZ.cjs +1 -0
  12. package/components/CasinoTournamentsThumbnailDuration-bu3Mm2Ay.js +495 -0
  13. package/components/CasinoTournamentsThumbnailGamesSlider-DNrAc-zm.cjs +1 -0
  14. package/components/CasinoTournamentsThumbnailGamesSlider-_haSuIUI.js +438 -0
  15. package/components/CasinoTournamentsThumbnailPrizes-BRcfU1P4.js +310 -0
  16. package/components/CasinoTournamentsThumbnailPrizes-E5pafLaj.cjs +1 -0
  17. package/es2015/casino-tournaments-controller.cjs +1 -0
  18. package/es2015/casino-tournaments-controller.js +16 -0
  19. package/package.json +18 -32
  20. package/.eslintrc +0 -84
  21. package/CHANGELOG.md +0 -11
  22. package/README.md +0 -0
  23. package/dist/casino-tournaments-controller.js +0 -2
  24. package/dist/casino-tournaments-controller.js.map +0 -1
  25. package/documentation.md +0 -170
  26. package/index.html +0 -29
  27. package/index.js +0 -1
  28. package/public/favicon.png +0 -0
  29. package/public/reset.css +0 -48
  30. package/rollup.config.js +0 -67
  31. package/src/CasinoTournamentsController.svelte +0 -527
  32. package/src/i18n.js +0 -27
  33. package/src/index.ts +0 -4
  34. package/src/translations.js +0 -62
  35. package/src/util.ts +0 -2
  36. package/stories/CasinoTournamentsController.stories.js +0 -13
  37. package/svelte.config.js +0 -7
  38. package/tsconfig.json +0 -6
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-CQ5C1jDl.cjs");function T(t,l){e.addMessages(t,l)}const A={en:{tournaments:"Tournaments",all:"All",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished"},hr:{tournaments:"Turniri",all:"Svi",scheduled:"Planirani",ongoing:"U tijeku",finished:"Završeni"},"zh-hk":{tournaments:"錦標賽",all:"全部",scheduled:"預定的",ongoing:"進行中",finished:"完成的"},fr:{tournaments:"Tournois",all:"Tous",scheduled:"Programmé",ongoing:"En cours",finished:"Fini"},ro:{tournaments:"Turnee",all:"Toate",scheduled:"Programate",ongoing:"În curs",finished:"Finalizat"},tr:{tournaments:"Turnuvalar",all:"Hepsi",scheduled:"Planlanmış",ongoing:"Devam ediyor",finished:"Tamamlanmış"},el:{tournaments:"Τουρνουά",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα"},es:{tournaments:"Torneos",all:"Todos",scheduled:"Programado",ongoing:"En vivo",finished:"Finalizado"},hu:{tournaments:"Versenyek",all:"Mind",scheduled:"Ütemezés",ongoing:"Folyamatban",finished:"Befejezett"},pt:{tournaments:"Torneios",all:"Tudo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado"}};function H(t){e.append_styles(t,"svelte-ucbx5v","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}ul{display:flex;gap:10px;overflow-x:auto}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emfe-w-color-white, #FFFFFF);opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}button{display:flex;align-items:center;background-color:transparent;justify-content:center;padding:10px;height:40px;border:1px solid var(--emfe-w-color-white, #FFFFFF);min-width:40px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}button.MobileClass{height:30px}button:hover{background-color:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);cursor:pointer}.FiltersController{color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:flex-end;margin-bottom:20px}.FiltersController.MobileClass{justify-content:flex-start;margin-bottom:10px}.FiltersController .FilterButton{font-size:14px;letter-spacing:0px;opacity:1;text-transform:uppercase}.FiltersController .FilterButton.MobileClass{font-size:10px}.FiltersController .Active{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}.FiltersController .Active:hover{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}")}function N(t,l,i){const n=t.slice();return n[22]=l[i],n[24]=i,n}function S(t){let l,i,n=t[4]("tournaments")+"",s,F,M,b=e.ensure_array_like(t[1]),a=[];for(let o=0;o<b.length;o+=1)a[o]=L(N(t,b,o));return{c(){l=e.element("ul"),i=e.element("li"),s=e.text(n),F=e.text(":"),M=e.space();for(let o=0;o<a.length;o+=1)a[o].c();e.attr(i,"class","FiltersTitle "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"part","FiltersTitle "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"class","FiltersList "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"part","FiltersList "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))},m(o,_){e.insert(o,l,_),e.append(l,i),e.append(i,s),e.append(i,F),e.append(l,M);for(let f=0;f<a.length;f+=1)a[f]&&a[f].m(l,null)},p(o,_){if(_&16&&n!==(n=o[4]("tournaments")+"")&&e.set_data(s,n),_&126){b=e.ensure_array_like(o[1]);let f;for(f=0;f<b.length;f+=1){const c=N(o,b,f);a[f]?a[f].p(c,_):(a[f]=L(c),a[f].c(),a[f].m(l,null))}for(;f<a.length;f+=1)a[f].d(1);a.length=b.length}},d(o){o&&e.detach(l),e.destroy_each(a,o)}}}function E(t){let l,i;return{c(){l=e.svg_element("svg"),i=e.svg_element("path"),e.attr(i,"d","M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"),e.attr(l,"xmlns","http://www.w3.org/2000/svg"),e.attr(l,"width","16"),e.attr(l,"height","16"),e.attr(l,"fill","currentColor"),e.attr(l,"class","bi bi-check"),e.attr(l,"part","bi bi-check"),e.attr(l,"viewBox","0 0 16 16")},m(n,s){e.insert(n,l,s),e.append(l,i)},d(n){n&&e.detach(l)}}}function z(t){let l=t[4]("scheduled")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("scheduled")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function B(t){let l=t[4]("ongoing")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("ongoing")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function O(t){let l=t[4]("finished")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("finished")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function j(t){let l=t[4]("all")+"",i;return{c(){i=e.text(l)},m(n,s){e.insert(n,i,s)},p(n,s){s&16&&l!==(l=n[4]("all")+"")&&e.set_data(i,l)},d(n){n&&e.detach(i)}}}function L(t){let l,i,n,s,F,M,b,a,o,_,f,c,u=(t[2][t[24]]==1||t[3]&&t[24]==0)&&E(),g=t[22]=="Scheduled"&&z(t),m=t[22]=="Ongoing"&&B(t),h=t[22]=="Finished"&&O(t),p=t[22]=="All"&&j(t);function k(){return t[12](t[22],t[24])}return{c(){l=e.element("li"),i=e.element("button"),u&&u.c(),n=e.space(),s=e.element("div"),g&&g.c(),F=e.space(),m&&m.c(),M=e.space(),h&&h.c(),b=e.space(),p&&p.c(),_=e.space(),e.attr(s,"class","FilterButton "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(s,"part","FilterButton "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"class",a=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(i,"part",o=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"class","FiltersItem"),e.attr(l,"part","FiltersItem")},m(v,C){e.insert(v,l,C),e.append(l,i),u&&u.m(i,null),e.append(i,n),e.append(i,s),g&&g.m(s,null),e.append(s,F),m&&m.m(s,null),e.append(s,M),h&&h.m(s,null),e.append(s,b),p&&p.m(s,null),e.append(l,_),f||(c=e.listen(l,"click",k),f=!0)},p(v,C){t=v,t[2][t[24]]==1||t[3]&&t[24]==0?u||(u=E(),u.c(),u.m(i,n)):u&&(u.d(1),u=null),t[22]=="Scheduled"?g?g.p(t,C):(g=z(t),g.c(),g.m(s,F)):g&&(g.d(1),g=null),t[22]=="Ongoing"?m?m.p(t,C):(m=B(t),m.c(),m.m(s,M)):m&&(m.d(1),m=null),t[22]=="Finished"?h?h.p(t,C):(h=O(t),h.c(),h.m(s,b)):h&&(h.d(1),h=null),t[22]=="All"?p?p.p(t,C):(p=j(t),p.c(),p.m(s,null)):p&&(p.d(1),p=null),C&12&&a!==(a=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))&&e.attr(i,"class",a),C&12&&o!==(o=(t[2][t[24]]==1||t[3]&&t[24]==0?"Active":"")+" "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))&&e.attr(i,"part",o)},d(v){v&&e.detach(l),u&&u.d(),g&&g.d(),m&&m.d(),h&&h.d(),p&&p.d(),f=!1,c()}}}function R(t){let l,i=t[1].length>0&&S(t);return{c(){l=e.element("div"),i&&i.c(),e.attr(l,"class","FiltersController "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty")),e.attr(l,"part","FiltersController "+(e.isMobile(t[5])?"MobileClass":"Non-MobileClass/empty"))},m(n,s){e.insert(n,l,s),i&&i.m(l,null),t[13](l)},p(n,[s]){n[1].length>0?i?i.p(n,s):(i=S(n),i.c(),i.m(l,null)):i&&(i.d(1),i=null)},i:e.noop,o:e.noop,d(n){n&&e.detach(l),i&&i.d(),t[13](null)}}}function q(t,l,i){let n;e.component_subscribe(t,e.$format,r=>i(4,n=r));let{filters:s=""}=l,{activefilters:F=""}=l,{translationurl:M=""}=l,{clientstyling:b=""}=l,{clientstylingurl:a=""}=l,o,_=[],f=0,c=new Array(100),u=!0,g=window.navigator.userAgent;const m=()=>{fetch(M).then(d=>d.json()).then(d=>{Object.keys(d).forEach(y=>{T(y,d[y])})}).catch(d=>{console.log(d)})};Object.keys(A).forEach(r=>{T(r,A[r])});const h=(r,d)=>{if(d==0)i(3,u=!0),i(2,c=new Array(f)),window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else if(i(3,u=!1),c[d]==1?(i(2,c[d]=0,c),c.indexOf(1)==-1&&i(3,u=!0)):i(2,c[d]=1,c),c.indexOf(1)==-1)window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else{let y=[];for(let w=0;w<_.length;w++)c[w]==1&&y.push(_[w]);window.postMessage({type:"TournamentsFiltersSelected",filters:y},window.location.href)}},p=()=>{i(1,_=s.split(",")),f=_.length},k=()=>{let r=F.split(",");i(2,c=new Array(f)),r.indexOf("All")!=-1?i(3,u=!0):(i(3,u=!1),r.forEach(d=>{let y=_.indexOf(d);y>0&&i(2,c[y]=1,c)}))},v=()=>{let r=document.createElement("style");r.innerHTML=b,o.appendChild(r)},C=()=>{let r=new URL(a),d=document.createElement("style");fetch(r.href).then(y=>y.text()).then(y=>{d.innerHTML=y,setTimeout(()=>{o.appendChild(d)},1),setTimeout(()=>{},500)})},I=(r,d)=>h(r,d);function U(r){e.binding_callbacks[r?"unshift":"push"](()=>{o=r,i(0,o)})}return t.$$set=r=>{"filters"in r&&i(7,s=r.filters),"activefilters"in r&&i(8,F=r.activefilters),"translationurl"in r&&i(9,M=r.translationurl),"clientstyling"in r&&i(10,b=r.clientstyling),"clientstylingurl"in r&&i(11,a=r.clientstylingurl)},t.$$.update=()=>{t.$$.dirty&1025&&o&&b&&v(),t.$$.dirty&2049&&o&&a&&C(),t.$$.dirty&512&&M&&m(),t.$$.dirty&128&&s&&p(),t.$$.dirty&256&&F&&k()},[o,_,c,u,n,g,h,s,F,M,b,a,I,U]}class P extends e.SvelteComponent{constructor(l){super(),e.init(this,l,q,R,e.safe_not_equal,{filters:7,activefilters:8,translationurl:9,clientstyling:10,clientstylingurl:11},H)}get filters(){return this.$$.ctx[7]}set filters(l){this.$$set({filters:l}),e.flush()}get activefilters(){return this.$$.ctx[8]}set activefilters(l){this.$$set({activefilters:l}),e.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(l){this.$$set({translationurl:l}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(l){this.$$set({clientstyling:l}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(l){this.$$set({clientstylingurl:l}),e.flush()}}e.create_custom_element(P,{filters:{},activefilters:{},translationurl:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=P;
@@ -0,0 +1,529 @@
1
+ import { a as X, S as Y, i as x, f as z, c as $, s as ee, b as le, e as E, d as f, g as C, h as k, n as L, j as T, k as te, l as I, t as S, m as N, o as F, p as B, q as ie, r as ne, u as se, v as P, $ as oe } from "./CasinoTournamentsController-Cr8b4j7l.js";
2
+ function U(e, l) {
3
+ X(e, l);
4
+ }
5
+ const H = {
6
+ en: {
7
+ tournaments: "Tournaments",
8
+ all: "All",
9
+ scheduled: "Scheduled",
10
+ ongoing: "Ongoing",
11
+ finished: "Finished"
12
+ },
13
+ hr: {
14
+ tournaments: "Turniri",
15
+ all: "Svi",
16
+ scheduled: "Planirani",
17
+ ongoing: "U tijeku",
18
+ finished: "Završeni"
19
+ },
20
+ "zh-hk": {
21
+ tournaments: "錦標賽",
22
+ all: "全部",
23
+ scheduled: "預定的",
24
+ ongoing: "進行中",
25
+ finished: "完成的"
26
+ },
27
+ fr: {
28
+ tournaments: "Tournois",
29
+ all: "Tous",
30
+ scheduled: "Programmé",
31
+ ongoing: "En cours",
32
+ finished: "Fini"
33
+ },
34
+ ro: {
35
+ tournaments: "Turnee",
36
+ all: "Toate",
37
+ scheduled: "Programate",
38
+ ongoing: "În curs",
39
+ finished: "Finalizat"
40
+ },
41
+ tr: {
42
+ tournaments: "Turnuvalar",
43
+ all: "Hepsi",
44
+ scheduled: "Planlanmış",
45
+ ongoing: "Devam ediyor",
46
+ finished: "Tamamlanmış"
47
+ },
48
+ el: {
49
+ tournaments: "Τουρνουά",
50
+ all: "Όλα",
51
+ scheduled: "Προγραμματισμένα",
52
+ ongoing: "Τρέχοντα",
53
+ finished: "Ολοκληρωμένα"
54
+ },
55
+ es: {
56
+ tournaments: "Torneos",
57
+ all: "Todos",
58
+ scheduled: "Programado",
59
+ ongoing: "En vivo",
60
+ finished: "Finalizado"
61
+ },
62
+ hu: {
63
+ tournaments: "Versenyek",
64
+ all: "Mind",
65
+ scheduled: "Ütemezés",
66
+ ongoing: "Folyamatban",
67
+ finished: "Befejezett"
68
+ },
69
+ pt: {
70
+ tournaments: "Torneios",
71
+ all: "Tudo",
72
+ scheduled: "Agendado",
73
+ ongoing: "Em progresso",
74
+ finished: "Finalizado"
75
+ }
76
+ };
77
+ function re(e) {
78
+ le(e, "svelte-ucbx5v", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}ul{display:flex;gap:10px;overflow-x:auto}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emfe-w-color-white, #FFFFFF);opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}button{display:flex;align-items:center;background-color:transparent;justify-content:center;padding:10px;height:40px;border:1px solid var(--emfe-w-color-white, #FFFFFF);min-width:40px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}button.MobileClass{height:30px}button:hover{background-color:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);cursor:pointer}.FiltersController{color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:flex-end;margin-bottom:20px}.FiltersController.MobileClass{justify-content:flex-start;margin-bottom:10px}.FiltersController .FilterButton{font-size:14px;letter-spacing:0px;opacity:1;text-transform:uppercase}.FiltersController .FilterButton.MobileClass{font-size:10px}.FiltersController .Active{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}.FiltersController .Active:hover{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}");
79
+ }
80
+ function R(e, l, t) {
81
+ const i = e.slice();
82
+ return i[22] = l[t], i[24] = t, i;
83
+ }
84
+ function q(e) {
85
+ let l, t, i = (
86
+ /*$_*/
87
+ e[4]("tournaments") + ""
88
+ ), n, v, w, b = I(
89
+ /*filterItems*/
90
+ e[1]
91
+ ), r = [];
92
+ for (let s = 0; s < b.length; s += 1)
93
+ r[s] = K(R(e, b, s));
94
+ return {
95
+ c() {
96
+ l = E("ul"), t = E("li"), n = S(i), v = S(":"), w = N();
97
+ for (let s = 0; s < r.length; s += 1)
98
+ r[s].c();
99
+ f(t, "class", "FiltersTitle " + (C(
100
+ /*userAgent*/
101
+ e[5]
102
+ ) ? "MobileClass" : "Non-MobileClass/empty")), f(t, "part", "FiltersTitle " + (C(
103
+ /*userAgent*/
104
+ e[5]
105
+ ) ? "MobileClass" : "Non-MobileClass/empty")), f(l, "class", "FiltersList " + (C(
106
+ /*userAgent*/
107
+ e[5]
108
+ ) ? "MobileClass" : "Non-MobileClass/empty")), f(l, "part", "FiltersList " + (C(
109
+ /*userAgent*/
110
+ e[5]
111
+ ) ? "MobileClass" : "Non-MobileClass/empty"));
112
+ },
113
+ m(s, _) {
114
+ k(s, l, _), F(l, t), F(t, n), F(t, v), F(l, w);
115
+ for (let a = 0; a < r.length; a += 1)
116
+ r[a] && r[a].m(l, null);
117
+ },
118
+ p(s, _) {
119
+ if (_ & /*$_*/
120
+ 16 && i !== (i = /*$_*/
121
+ s[4]("tournaments") + "") && B(n, i), _ & /*makeButtonActive, filterItems, activeIndexes, allActive, userAgent, $_*/
122
+ 126) {
123
+ b = I(
124
+ /*filterItems*/
125
+ s[1]
126
+ );
127
+ let a;
128
+ for (a = 0; a < b.length; a += 1) {
129
+ const c = R(s, b, a);
130
+ r[a] ? r[a].p(c, _) : (r[a] = K(c), r[a].c(), r[a].m(l, null));
131
+ }
132
+ for (; a < r.length; a += 1)
133
+ r[a].d(1);
134
+ r.length = b.length;
135
+ }
136
+ },
137
+ d(s) {
138
+ s && T(l), ie(r, s);
139
+ }
140
+ };
141
+ }
142
+ function D(e) {
143
+ let l, t;
144
+ return {
145
+ c() {
146
+ l = P("svg"), t = P("path"), f(t, "d", "M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"), f(l, "xmlns", "http://www.w3.org/2000/svg"), f(l, "width", "16"), f(l, "height", "16"), f(l, "fill", "currentColor"), f(l, "class", "bi bi-check"), f(l, "part", "bi bi-check"), f(l, "viewBox", "0 0 16 16");
147
+ },
148
+ m(i, n) {
149
+ k(i, l, n), F(l, t);
150
+ },
151
+ d(i) {
152
+ i && T(l);
153
+ }
154
+ };
155
+ }
156
+ function V(e) {
157
+ let l = (
158
+ /*$_*/
159
+ e[4]("scheduled") + ""
160
+ ), t;
161
+ return {
162
+ c() {
163
+ t = S(l);
164
+ },
165
+ m(i, n) {
166
+ k(i, t, n);
167
+ },
168
+ p(i, n) {
169
+ n & /*$_*/
170
+ 16 && l !== (l = /*$_*/
171
+ i[4]("scheduled") + "") && B(t, l);
172
+ },
173
+ d(i) {
174
+ i && T(t);
175
+ }
176
+ };
177
+ }
178
+ function Z(e) {
179
+ let l = (
180
+ /*$_*/
181
+ e[4]("ongoing") + ""
182
+ ), t;
183
+ return {
184
+ c() {
185
+ t = S(l);
186
+ },
187
+ m(i, n) {
188
+ k(i, t, n);
189
+ },
190
+ p(i, n) {
191
+ n & /*$_*/
192
+ 16 && l !== (l = /*$_*/
193
+ i[4]("ongoing") + "") && B(t, l);
194
+ },
195
+ d(i) {
196
+ i && T(t);
197
+ }
198
+ };
199
+ }
200
+ function G(e) {
201
+ let l = (
202
+ /*$_*/
203
+ e[4]("finished") + ""
204
+ ), t;
205
+ return {
206
+ c() {
207
+ t = S(l);
208
+ },
209
+ m(i, n) {
210
+ k(i, t, n);
211
+ },
212
+ p(i, n) {
213
+ n & /*$_*/
214
+ 16 && l !== (l = /*$_*/
215
+ i[4]("finished") + "") && B(t, l);
216
+ },
217
+ d(i) {
218
+ i && T(t);
219
+ }
220
+ };
221
+ }
222
+ function J(e) {
223
+ let l = (
224
+ /*$_*/
225
+ e[4]("all") + ""
226
+ ), t;
227
+ return {
228
+ c() {
229
+ t = S(l);
230
+ },
231
+ m(i, n) {
232
+ k(i, t, n);
233
+ },
234
+ p(i, n) {
235
+ n & /*$_*/
236
+ 16 && l !== (l = /*$_*/
237
+ i[4]("all") + "") && B(t, l);
238
+ },
239
+ d(i) {
240
+ i && T(t);
241
+ }
242
+ };
243
+ }
244
+ function K(e) {
245
+ let l, t, i, n, v, w, b, r, s, _, a, c, u = (
246
+ /*activeIndexes*/
247
+ (e[2][
248
+ /*index*/
249
+ e[24]
250
+ ] == 1 || /*allActive*/
251
+ e[3] && /*index*/
252
+ e[24] == 0) && D()
253
+ ), h = (
254
+ /*filter*/
255
+ e[22] == "Scheduled" && V(e)
256
+ ), m = (
257
+ /*filter*/
258
+ e[22] == "Ongoing" && Z(e)
259
+ ), g = (
260
+ /*filter*/
261
+ e[22] == "Finished" && G(e)
262
+ ), p = (
263
+ /*filter*/
264
+ e[22] == "All" && J(e)
265
+ );
266
+ function j() {
267
+ return (
268
+ /*click_handler*/
269
+ e[12](
270
+ /*filter*/
271
+ e[22],
272
+ /*index*/
273
+ e[24]
274
+ )
275
+ );
276
+ }
277
+ return {
278
+ c() {
279
+ l = E("li"), t = E("button"), u && u.c(), i = N(), n = E("div"), h && h.c(), v = N(), m && m.c(), w = N(), g && g.c(), b = N(), p && p.c(), _ = N(), f(n, "class", "FilterButton " + (C(
280
+ /*userAgent*/
281
+ e[5]
282
+ ) ? "MobileClass" : "Non-MobileClass/empty")), f(n, "part", "FilterButton " + (C(
283
+ /*userAgent*/
284
+ e[5]
285
+ ) ? "MobileClass" : "Non-MobileClass/empty")), f(t, "class", r = /*activeIndexes*/
286
+ (e[2][
287
+ /*index*/
288
+ e[24]
289
+ ] == 1 || /*allActive*/
290
+ e[3] && /*index*/
291
+ e[24] == 0 ? "Active" : "") + " " + (C(
292
+ /*userAgent*/
293
+ e[5]
294
+ ) ? "MobileClass" : "Non-MobileClass/empty")), f(t, "part", s = /*activeIndexes*/
295
+ (e[2][
296
+ /*index*/
297
+ e[24]
298
+ ] == 1 || /*allActive*/
299
+ e[3] && /*index*/
300
+ e[24] == 0 ? "Active" : "") + " " + (C(
301
+ /*userAgent*/
302
+ e[5]
303
+ ) ? "MobileClass" : "Non-MobileClass/empty")), f(l, "class", "FiltersItem"), f(l, "part", "FiltersItem");
304
+ },
305
+ m(A, M) {
306
+ k(A, l, M), F(l, t), u && u.m(t, null), F(t, i), F(t, n), h && h.m(n, null), F(n, v), m && m.m(n, null), F(n, w), g && g.m(n, null), F(n, b), p && p.m(n, null), F(l, _), a || (c = ne(l, "click", j), a = !0);
307
+ },
308
+ p(A, M) {
309
+ e = A, /*activeIndexes*/
310
+ e[2][
311
+ /*index*/
312
+ e[24]
313
+ ] == 1 || /*allActive*/
314
+ e[3] && /*index*/
315
+ e[24] == 0 ? u || (u = D(), u.c(), u.m(t, i)) : u && (u.d(1), u = null), /*filter*/
316
+ e[22] == "Scheduled" ? h ? h.p(e, M) : (h = V(e), h.c(), h.m(n, v)) : h && (h.d(1), h = null), /*filter*/
317
+ e[22] == "Ongoing" ? m ? m.p(e, M) : (m = Z(e), m.c(), m.m(n, w)) : m && (m.d(1), m = null), /*filter*/
318
+ e[22] == "Finished" ? g ? g.p(e, M) : (g = G(e), g.c(), g.m(n, b)) : g && (g.d(1), g = null), /*filter*/
319
+ e[22] == "All" ? p ? p.p(e, M) : (p = J(e), p.c(), p.m(n, null)) : p && (p.d(1), p = null), M & /*activeIndexes, allActive*/
320
+ 12 && r !== (r = /*activeIndexes*/
321
+ (e[2][
322
+ /*index*/
323
+ e[24]
324
+ ] == 1 || /*allActive*/
325
+ e[3] && /*index*/
326
+ e[24] == 0 ? "Active" : "") + " " + (C(
327
+ /*userAgent*/
328
+ e[5]
329
+ ) ? "MobileClass" : "Non-MobileClass/empty")) && f(t, "class", r), M & /*activeIndexes, allActive*/
330
+ 12 && s !== (s = /*activeIndexes*/
331
+ (e[2][
332
+ /*index*/
333
+ e[24]
334
+ ] == 1 || /*allActive*/
335
+ e[3] && /*index*/
336
+ e[24] == 0 ? "Active" : "") + " " + (C(
337
+ /*userAgent*/
338
+ e[5]
339
+ ) ? "MobileClass" : "Non-MobileClass/empty")) && f(t, "part", s);
340
+ },
341
+ d(A) {
342
+ A && T(l), u && u.d(), h && h.d(), m && m.d(), g && g.d(), p && p.d(), a = !1, c();
343
+ }
344
+ };
345
+ }
346
+ function ae(e) {
347
+ let l, t = (
348
+ /*filterItems*/
349
+ e[1].length > 0 && q(e)
350
+ );
351
+ return {
352
+ c() {
353
+ l = E("div"), t && t.c(), f(l, "class", "FiltersController " + (C(
354
+ /*userAgent*/
355
+ e[5]
356
+ ) ? "MobileClass" : "Non-MobileClass/empty")), f(l, "part", "FiltersController " + (C(
357
+ /*userAgent*/
358
+ e[5]
359
+ ) ? "MobileClass" : "Non-MobileClass/empty"));
360
+ },
361
+ m(i, n) {
362
+ k(i, l, n), t && t.m(l, null), e[13](l);
363
+ },
364
+ p(i, [n]) {
365
+ /*filterItems*/
366
+ i[1].length > 0 ? t ? t.p(i, n) : (t = q(i), t.c(), t.m(l, null)) : t && (t.d(1), t = null);
367
+ },
368
+ i: L,
369
+ o: L,
370
+ d(i) {
371
+ i && T(l), t && t.d(), e[13](null);
372
+ }
373
+ };
374
+ }
375
+ function fe(e, l, t) {
376
+ let i;
377
+ te(e, oe, (o) => t(4, i = o));
378
+ let { filters: n = "" } = l, { activefilters: v = "" } = l, { translationurl: w = "" } = l, { clientstyling: b = "" } = l, { clientstylingurl: r = "" } = l, s, _ = [], a = 0, c = new Array(100), u = !0, h = window.navigator.userAgent;
379
+ const m = () => {
380
+ fetch(w).then((d) => d.json()).then((d) => {
381
+ Object.keys(d).forEach((y) => {
382
+ U(y, d[y]);
383
+ });
384
+ }).catch((d) => {
385
+ console.log(d);
386
+ });
387
+ };
388
+ Object.keys(H).forEach((o) => {
389
+ U(o, H[o]);
390
+ });
391
+ const g = (o, d) => {
392
+ if (d == 0)
393
+ t(3, u = !0), t(2, c = new Array(a)), window.postMessage(
394
+ {
395
+ type: "TournamentsFiltersSelected",
396
+ filters: ["All"]
397
+ },
398
+ window.location.href
399
+ );
400
+ else if (t(3, u = !1), c[d] == 1 ? (t(2, c[d] = 0, c), c.indexOf(1) == -1 && t(3, u = !0)) : t(2, c[d] = 1, c), c.indexOf(1) == -1)
401
+ window.postMessage(
402
+ {
403
+ type: "TournamentsFiltersSelected",
404
+ filters: ["All"]
405
+ },
406
+ window.location.href
407
+ );
408
+ else {
409
+ let y = [];
410
+ for (let O = 0; O < _.length; O++)
411
+ c[O] == 1 && y.push(_[O]);
412
+ window.postMessage(
413
+ {
414
+ type: "TournamentsFiltersSelected",
415
+ filters: y
416
+ },
417
+ window.location.href
418
+ );
419
+ }
420
+ }, p = () => {
421
+ t(1, _ = n.split(",")), a = _.length;
422
+ }, j = () => {
423
+ let o = v.split(",");
424
+ t(2, c = new Array(a)), o.indexOf("All") != -1 ? t(3, u = !0) : (t(3, u = !1), o.forEach((d) => {
425
+ let y = _.indexOf(d);
426
+ y > 0 && t(2, c[y] = 1, c);
427
+ }));
428
+ }, A = () => {
429
+ let o = document.createElement("style");
430
+ o.innerHTML = b, s.appendChild(o);
431
+ }, M = () => {
432
+ let o = new URL(r), d = document.createElement("style");
433
+ fetch(o.href).then((y) => y.text()).then((y) => {
434
+ d.innerHTML = y, setTimeout(
435
+ () => {
436
+ s.appendChild(d);
437
+ },
438
+ 1
439
+ ), setTimeout(
440
+ () => {
441
+ },
442
+ 500
443
+ );
444
+ });
445
+ }, Q = (o, d) => g(o, d);
446
+ function W(o) {
447
+ se[o ? "unshift" : "push"](() => {
448
+ s = o, t(0, s);
449
+ });
450
+ }
451
+ return e.$$set = (o) => {
452
+ "filters" in o && t(7, n = o.filters), "activefilters" in o && t(8, v = o.activefilters), "translationurl" in o && t(9, w = o.translationurl), "clientstyling" in o && t(10, b = o.clientstyling), "clientstylingurl" in o && t(11, r = o.clientstylingurl);
453
+ }, e.$$.update = () => {
454
+ e.$$.dirty & /*customStylingContainer, clientstyling*/
455
+ 1025 && s && b && A(), e.$$.dirty & /*customStylingContainer, clientstylingurl*/
456
+ 2049 && s && r && M(), e.$$.dirty & /*translationurl*/
457
+ 512 && w && m(), e.$$.dirty & /*filters*/
458
+ 128 && n && p(), e.$$.dirty & /*activefilters*/
459
+ 256 && v && j();
460
+ }, [
461
+ s,
462
+ _,
463
+ c,
464
+ u,
465
+ i,
466
+ h,
467
+ g,
468
+ n,
469
+ v,
470
+ w,
471
+ b,
472
+ r,
473
+ Q,
474
+ W
475
+ ];
476
+ }
477
+ class ue extends Y {
478
+ constructor(l) {
479
+ super(), x(
480
+ this,
481
+ l,
482
+ fe,
483
+ ae,
484
+ ee,
485
+ {
486
+ filters: 7,
487
+ activefilters: 8,
488
+ translationurl: 9,
489
+ clientstyling: 10,
490
+ clientstylingurl: 11
491
+ },
492
+ re
493
+ );
494
+ }
495
+ get filters() {
496
+ return this.$$.ctx[7];
497
+ }
498
+ set filters(l) {
499
+ this.$$set({ filters: l }), z();
500
+ }
501
+ get activefilters() {
502
+ return this.$$.ctx[8];
503
+ }
504
+ set activefilters(l) {
505
+ this.$$set({ activefilters: l }), z();
506
+ }
507
+ get translationurl() {
508
+ return this.$$.ctx[9];
509
+ }
510
+ set translationurl(l) {
511
+ this.$$set({ translationurl: l }), z();
512
+ }
513
+ get clientstyling() {
514
+ return this.$$.ctx[10];
515
+ }
516
+ set clientstyling(l) {
517
+ this.$$set({ clientstyling: l }), z();
518
+ }
519
+ get clientstylingurl() {
520
+ return this.$$.ctx[11];
521
+ }
522
+ set clientstylingurl(l) {
523
+ this.$$set({ clientstylingurl: l }), z();
524
+ }
525
+ }
526
+ $(ue, { filters: {}, activefilters: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
527
+ export {
528
+ ue as default
529
+ };