@everymatrix/casino-tournaments-controller 1.53.11 → 1.54.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 (20) hide show
  1. package/components/{CasinoTournamentsController-B6mh3T8V.js → CasinoTournamentsController-BRHh1Qjt.js} +1211 -1170
  2. package/components/CasinoTournamentsController-C_KNfkit.cjs +14 -0
  3. package/components/{CasinoTournamentsFilterController-crq752J3.js → CasinoTournamentsFilterController-DLpCI6AW.js} +1 -1
  4. package/components/CasinoTournamentsFilterController-pSaDVRpk.cjs +1 -0
  5. package/components/CasinoTournamentsListController-CKXsySHE.cjs +13 -0
  6. package/components/{CasinoTournamentsListController-BHaCpLNs.js → CasinoTournamentsListController-CkqQPCZb.js} +12 -12
  7. package/components/{CasinoTournamentsThumbnail-BpY5tzvh.js → CasinoTournamentsThumbnail-BmY3slCQ.js} +1 -1
  8. package/components/CasinoTournamentsThumbnail-CTilgcJR.cjs +4 -0
  9. package/components/{CasinoTournamentsThumbnailController-CmauHmt0.js → CasinoTournamentsThumbnailController-BM-oOy9w.js} +386 -369
  10. package/components/CasinoTournamentsThumbnailController-D7yd4p3c.cjs +1 -0
  11. package/components/{CasinoTournamentsThumbnailDuration-Bl9YXTWz.js → CasinoTournamentsThumbnailDuration-U4e250jT.js} +1 -1
  12. package/components/CasinoTournamentsThumbnailDuration-YauqtylV.cjs +1 -0
  13. package/components/CasinoTournamentsThumbnailGamesSlider-Vv2VY9lf.cjs +1 -0
  14. package/components/{CasinoTournamentsThumbnailGamesSlider-7LdDhi2Q.js → CasinoTournamentsThumbnailGamesSlider-yRwAgdKd.js} +1 -1
  15. package/components/CasinoTournamentsThumbnailPrizes-BrpTWmKe.cjs +1 -0
  16. package/components/{CasinoTournamentsThumbnailPrizes-nDu0SMUv.js → CasinoTournamentsThumbnailPrizes-CxecGedD.js} +1 -1
  17. package/es2015/casino-tournaments-controller.cjs +1 -0
  18. package/es2015/casino-tournaments-controller.js +16 -0
  19. package/package.json +12 -12
  20. package/esnext/casino-tournaments-controller.js +0 -14
@@ -1,4 +1,4 @@
1
- import { a as Ks, S as $s, i as er, f as N, c as tr, s as sr, b as rr, e as _t, d as Ht, h as je, n as At, j as ze, k as nr, w as ar, l as Vt, x as ir, q as or, t as lr, o as ur, p as dr, y, u as hr, $ as fr } from "./CasinoTournamentsController-B6mh3T8V.js";
1
+ import { a as Ks, S as $s, i as er, f as N, c as tr, s as sr, b as rr, e as _t, d as Ht, h as je, n as At, j as ze, k as nr, w as ar, l as Vt, x as ir, q as or, t as lr, o as ur, p as dr, y, u as hr, $ as fr } from "./CasinoTournamentsController-BRHh1Qjt.js";
2
2
  function cr(e) {
3
3
  throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }
@@ -115,7 +115,7 @@ function H(e) {
115
115
  return e instanceof be || e != null && e._isAMomentObject != null;
116
116
  }
117
117
  function rs(e) {
118
- u.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
118
+ u.suppressDeprecationWarnings === !1 && typeof console != "undefined" && console.warn && console.warn("Deprecation warning: " + e);
119
119
  }
120
120
  function F(e, t) {
121
121
  var s = !0;
@@ -149,7 +149,7 @@ function ns(e, t) {
149
149
  u.suppressDeprecationWarnings = !1;
150
150
  u.deprecationHandler = null;
151
151
  function B(e) {
152
- return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
152
+ return typeof Function != "undefined" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
153
153
  }
154
154
  function yr(e) {
155
155
  var t, s;
@@ -962,17 +962,17 @@ function Rn(e) {
962
962
  }
963
963
  function $e(e) {
964
964
  var t = null, s;
965
- if (p[e] === void 0 && typeof module < "u" && module && module.exports && Rn(e))
965
+ if (p[e] === void 0 && typeof module != "undefined" && module && module.exports && Rn(e))
966
966
  try {
967
967
  t = Oe._abbr, s = cr, s("./locale/" + e), ae(t);
968
- } catch {
968
+ } catch (r) {
969
969
  p[e] = null;
970
970
  }
971
971
  return p[e];
972
972
  }
973
973
  function ae(e, t) {
974
974
  var s;
975
- return e && (x(t) ? s = te(e) : s = xt(e, t), s ? Oe = s : typeof console < "u" && console.warn && console.warn(
975
+ return e && (x(t) ? s = te(e) : s = xt(e, t), s ? Oe = s : typeof console != "undefined" && console.warn && console.warn(
976
976
  "Locale " + e + " not found. Did you forget to load it?"
977
977
  )), Oe._abbr;
978
978
  }
@@ -1176,7 +1176,7 @@ u.createFromInputFallback = F(
1176
1176
  }
1177
1177
  );
1178
1178
  function fe(e, t, s) {
1179
- return e ?? t ?? s;
1179
+ return e != null ? e : t != null ? t : s;
1180
1180
  }
1181
1181
  function qn(e) {
1182
1182
  var t = new Date(u.now());
@@ -1196,7 +1196,7 @@ function Pt(e) {
1196
1196
  e._a[O] === 24 && e._a[I] === 0 && e._a[X] === 0 && e._a[le] === 0 && (e._nextDay = !0, e._a[O] = 0), e._d = (e._useUTC ? pe : en).apply(
1197
1197
  null,
1198
1198
  r
1199
- ), a = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[O] = 24), e._w && typeof e._w.d < "u" && e._w.d !== a && (m(e).weekdayMismatch = !0);
1199
+ ), a = e._useUTC ? e._d.getUTCDay() : e._d.getDay(), e._tzm != null && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), e._nextDay && (e._a[O] = 24), e._w && typeof e._w.d != "undefined" && e._w.d !== a && (m(e).weekdayMismatch = !0);
1200
1200
  }
1201
1201
  }
1202
1202
  function Jn(e) {
@@ -1494,7 +1494,7 @@ function xs(e, t) {
1494
1494
  }
1495
1495
  function Ns(e, t, s, r) {
1496
1496
  var n = t._milliseconds, a = ft(t._days), i = ft(t._months);
1497
- e.isValid() && (r = r ?? !0, i && ms(e, ve(e, "Month") + i * s), a && hs(e, "Date", ve(e, "Date") + a * s), n && e._d.setTime(e._d.valueOf() + n * s), r && u.updateOffset(e, a || i));
1497
+ e.isValid() && (r = r == null ? !0 : r, i && ms(e, ve(e, "Month") + i * s), a && hs(e, "Date", ve(e, "Date") + a * s), n && e._d.setTime(e._d.valueOf() + n * s), r && u.updateOffset(e, a || i));
1498
1498
  }
1499
1499
  var pa = xs(1, "add"), Ya = xs(-1, "subtract");
1500
1500
  function Ps(e) {
@@ -2177,7 +2177,7 @@ o.toObject = ei;
2177
2177
  o.toDate = Ka;
2178
2178
  o.toISOString = Aa;
2179
2179
  o.inspect = Va;
2180
- typeof Symbol < "u" && Symbol.for != null && (o[Symbol.for("nodejs.util.inspect.custom")] = function() {
2180
+ typeof Symbol != "undefined" && Symbol.for != null && (o[Symbol.for("nodejs.util.inspect.custom")] = function() {
2181
2181
  return "Moment<" + this.format() + ">";
2182
2182
  });
2183
2183
  o.toJSON = ti;
@@ -2615,7 +2615,7 @@ const Qt = {
2615
2615
  nothing: "Nothing to show here."
2616
2616
  }
2617
2617
  };
2618
- if (typeof window < "u") {
2618
+ if (typeof window != "undefined") {
2619
2619
  let e = function(t) {
2620
2620
  return function(...s) {
2621
2621
  try {
@@ -2627,7 +2627,7 @@ if (typeof window < "u") {
2627
2627
  }
2628
2628
  };
2629
2629
  };
2630
- customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailController-CmauHmt0.js").then(
2630
+ customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailController-BM-oOy9w.js").then(
2631
2631
  ({ default: t }) => {
2632
2632
  !customElements.get("casino-tournaments-thumbnail-controller") && customElements.define(
2633
2633
  "casino-tournaments-thumbnail-controller",
@@ -1,4 +1,4 @@
1
- import { a as me, z as de, S as ce, i as ge, f as S, c as be, s as fe, b as he, e as M, m as O, t as v, d as u, h as F, o as c, p as D, n as q, j as z, k as pe, w as ye, A as L, x as ke, B as Se, r as Ce, C as Ae, u as _e, D as K, $ as Te } from "./CasinoTournamentsController-B6mh3T8V.js";
1
+ import { a as me, z as de, S as ce, i as ge, f as S, c as be, s as fe, b as he, e as M, m as O, t as v, d as u, h as F, o as c, p as D, n as q, j as z, k as pe, w as ye, A as L, x as ke, B as Se, r as Ce, C as Ae, u as _e, D as K, $ as Te } from "./CasinoTournamentsController-BRHh1Qjt.js";
2
2
  function Y(i, e) {
3
3
  me(i, e);
4
4
  }
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-C_KNfkit.cjs");function x(i,t){e.addMessages(i,t)}function ee(i){e.$locale.set(i)}const E={en:{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 {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hr:{enrolled:"Sudjeluje",scoreCriteria:"Kriterij bodovanja",minbet:"Minimalni ulog",seegames:"Vidi igre",here:"ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Završeno",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj uloga",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Dobitak po ulogu",stake:"Ulog",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"},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},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",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",stake:"Turnover",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"},tr:{enrolled:"Kayıtlı",scoreCriteria:"Puan Kriterleri",minbet:"minimum bahis sayısı",seegames:"Oyunları görebilirsiniz",here:"Burada",scheduled:"planlanmış",ongoing:"devam ediyor",finished:"Bitti",startingAt:"Buradan başlayarak:",startedAt:"Başlangıç:",mostRounds:"En Çok Tur",betCount:"Bahis Sayısı",maxWinStakeRatio:"Bahis Başına Maksimum Kazanç",winStakeRatio:"Bahis Başına Toplam Kazanç",stake:"Devir",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",startingAtWithTime:"{startTime} başlar",startedAtWithTime:"{startTime} başlatıldı"},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"},es:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"},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",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},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",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},"en-us":{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 {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}};function te(i){e.append_styles(i,"svelte-1gxooas",':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}')}function P(i){let t,a,n,l,u,s;return{c(){t=e.element("div"),a=e.text(i[13]),e.attr(t,"class",n="Status "+i[15]),e.attr(t,"part",l="Status "+i[15])},m(o,g){e.insert(o,t,g),e.append(t,a),u||(s=e.action_destroyer(i[18].call(null,t)),u=!0)},p(o,g){g[0]&8192&&e.set_data(a,o[13]),g[0]&32768&&n!==(n="Status "+o[15])&&e.attr(t,"class",n),g[0]&32768&&l!==(l="Status "+o[15])&&e.attr(t,"part",l)},d(o){o&&e.detach(t),u=!1,s()}}}function B(i){let t,a=i[5]&&L(i);return{c(){a&&a.c(),t=e.empty()},m(n,l){a&&a.m(n,l),e.insert(n,t,l)},p(n,l){n[5]?a?a.p(n,l):(a=L(n),a.c(),a.m(t.parentNode,t)):a&&(a.d(1),a=null)},d(n){n&&e.detach(t),a&&a.d(n)}}}function L(i){let t,a=i[16]("enrolled")+"",n;return{c(){t=e.element("div"),n=e.text(a),e.attr(t,"class","Enrolled"),e.attr(t,"part","Enrolled")},m(l,u){e.insert(l,t,u),e.append(t,n)},p(l,u){u[0]&65536&&a!==(a=l[16]("enrolled")+"")&&e.set_data(n,a)},d(l){l&&e.detach(t)}}}function ae(i){let t,a,n,l,u;return{c(){t=e.element("div"),e.attr(t,"class",a="CardImg "+(i[0]=="Closing"||i[0]=="Closed"?"CardImgFinished":"")),e.attr(t,"part",n="CardImg "+(i[0]=="Closing"||i[0]=="Closed"?"CardImgFinished":"")),e.set_style(t,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(s,o){e.insert(s,t,o),l||(u=e.action_destroyer(i[18].call(null,t)),l=!0)},p(s,o){o[0]&1&&a!==(a="CardImg "+(s[0]=="Closing"||s[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"class",a),o[0]&1&&n!==(n="CardImg "+(s[0]=="Closing"||s[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",n)},d(s){s&&e.detach(t),l=!1,u()}}}function ie(i){let t,a,n,l,u;return{c(){t=e.element("div"),e.attr(t,"class",a="CardImg "+(i[0]=="Closing"||i[0]=="Closed"?"CardImgFinished":"")),e.attr(t,"part",n="CardImg "+(i[0]=="Closing"||i[0]=="Closed"?"CardImgFinished":"")),e.set_style(t,"background-image","url('"+i[4]+"')")},m(s,o){e.insert(s,t,o),l||(u=e.action_destroyer(i[18].call(null,t)),l=!0)},p(s,o){o[0]&1&&a!==(a="CardImg "+(s[0]=="Closing"||s[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"class",a),o[0]&1&&n!==(n="CardImg "+(s[0]=="Closing"||s[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",n),o[0]&16&&e.set_style(t,"background-image","url('"+s[4]+"')")},d(s){s&&e.detach(t),l=!1,u()}}}function G(i){let t,a,n,l,u;return{c(){t=e.element("div"),a=e.text(i[11]),e.attr(t,"class","Date"),e.attr(t,"part","Date")},m(s,o){e.insert(s,t,o),e.append(t,a),l||(u=e.action_destroyer(n=i[17].call(null,t,i[2])),l=!0)},p(s,o){o[0]&2048&&e.set_data(a,s[11]),n&&e.is_function(n.update)&&o[0]&4&&n.update.call(null,s[2])},d(s){s&&e.detach(t),l=!1,u()}}}function K(i){let t,a,n=i[16]("scoreCriteria")+"",l,u,s,o,g,A=i[16]("minbet")+"",h,b,S,M,y,c,m,d=i[16]("seegames")+"",p,D,C,T=i[16]("here")+"",F,v,R,w;return{c(){t=e.element("div"),a=e.element("p"),l=e.text(n),u=e.text(`:
2
+
3
+ `),s=e.element("span"),o=e.text(i[14]),g=e.text(`
4
+ (`),h=e.text(A),b=e.space(),S=e.text(i[6]),M=e.text(")"),y=e.space(),c=e.element("div"),m=e.element("p"),p=e.text(d),D=e.space(),C=e.element("a"),F=e.text(T),e.attr(s,"part","ScoreCriteriaSpan"),e.attr(a,"part","ScoreCriteriaP"),e.attr(t,"class","ScoreCriteria"),e.attr(t,"part","ScoreCriteria"),e.attr(C,"part","GamesAnchor"),e.attr(C,"href",i[8]),e.attr(C,"target",v=i[9]==="true"?"_self":"_blank"),e.attr(m,"part","GamesP"),e.attr(c,"class","Games"),e.attr(c,"part","Games")},m(f,_){e.insert(f,t,_),e.append(t,a),e.append(a,l),e.append(a,u),e.append(a,s),e.append(s,o),e.append(a,g),e.append(a,h),e.append(a,b),e.append(a,S),e.append(a,M),e.insert(f,y,_),e.insert(f,c,_),e.append(c,m),e.append(m,p),e.append(m,D),e.append(m,C),e.append(C,F),R||(w=[e.action_destroyer(i[19].call(null,s)),e.listen(C,"click",i[28])],R=!0)},p(f,_){_[0]&65536&&n!==(n=f[16]("scoreCriteria")+"")&&e.set_data(l,n),_[0]&16384&&e.set_data(o,f[14]),_[0]&65536&&A!==(A=f[16]("minbet")+"")&&e.set_data(h,A),_[0]&64&&e.set_data(S,f[6]),_[0]&65536&&d!==(d=f[16]("seegames")+"")&&e.set_data(p,d),_[0]&65536&&T!==(T=f[16]("here")+"")&&e.set_data(F,T),_[0]&256&&e.attr(C,"href",f[8]),_[0]&512&&v!==(v=f[9]==="true"?"_self":"_blank")&&e.attr(C,"target",v)},d(f){f&&(e.detach(t),e.detach(y),e.detach(c)),R=!1,e.run_all(w)}}}function re(i){let t,a,n,l,u,s,o,g,A,h=i[0]&&P(i),b=i[7]=="true"&&B(i);function S(d,p){return d[4]?ie:ae}let M=S(i),y=M(i),c=i[2]&&G(i),m=i[12]&&K(i);return{c(){t=e.element("div"),h&&h.c(),a=e.space(),b&&b.c(),n=e.space(),y.c(),l=e.space(),u=e.element("div"),s=e.element("div"),o=e.text(i[1]),g=e.space(),c&&c.c(),A=e.space(),m&&m.c(),e.attr(s,"class","Title"),e.attr(s,"part","Title"),e.attr(u,"class","Details"),e.attr(u,"part","Details"),e.attr(t,"class","Thumbnail"),e.attr(t,"part","Thumbnail")},m(d,p){e.insert(d,t,p),h&&h.m(t,null),e.append(t,a),b&&b.m(t,null),e.append(t,n),y.m(t,null),e.append(t,l),e.append(t,u),e.append(u,s),e.append(s,o),e.append(u,g),c&&c.m(u,null),e.append(u,A),m&&m.m(u,null),i[29](t)},p(d,p){d[0]?h?h.p(d,p):(h=P(d),h.c(),h.m(t,a)):h&&(h.d(1),h=null),d[7]=="true"?b?b.p(d,p):(b=B(d),b.c(),b.m(t,n)):b&&(b.d(1),b=null),M===(M=S(d))&&y?y.p(d,p):(y.d(1),y=M(d),y&&(y.c(),y.m(t,l))),p[0]&2&&e.set_data(o,d[1]),d[2]?c?c.p(d,p):(c=G(d),c.c(),c.m(u,A)):c&&(c.d(1),c=null),d[12]?m?m.p(d,p):(m=K(d),m.c(),m.m(u,null)):m&&(m.d(1),m=null)},i:e.noop,o:e.noop,d(d){d&&e.detach(t),h&&h.d(),b&&b.d(),y.d(),c&&c.d(),m&&m.d(),i[29](null)}}}function ne(i,t,a){let n;e.component_subscribe(i,e.$format,r=>a(16,n=r));let{session:l=""}=t,{userid:u=""}=t,{title:s=""}=t,{startdate:o=""}=t,{status:g=""}=t,{tourid:A=""}=t,{thumbnail:h=""}=t,{userenrolled:b=""}=t,{scorecriteria:S=""}=t,{minbetcount:M=""}=t,{showenrolled:y="false"}=t,{gameurl:c=""}=t,{lang:m="en"}=t,{keepbrowsercontext:d="false"}=t,{clientstyling:p=""}=t,{clientstylingurl:D=""}=t,{translationurl:C=""}=t,T,F="",v=!1,R="",w="",f="";const _=()=>{fetch(C).then(k=>k.json()).then(k=>{Object.keys(k).forEach(J=>{x(J,k[J])})}).catch(k=>{console.log(k)})};Object.keys(E).forEach(r=>{x(r,E[r])});const N=r=>{r.data&&(r.data&&r.data.type=="SessionID"&&a(12,v=!0),r.data.type==`TournamentStatus_${A}`&&a(0,g=r.data.status))},j=()=>{const r={month:"long"};let k=new Date(o),J=new Intl.DateTimeFormat("en",r).format(k),Q=k.getDate(),X=k.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});const $=()=>n(g==="Running"?"startedAt":"startingAt");a(11,F=`${Q} `+n(`${J}`)+", "+$()+` ${X}`)},z=()=>{g=="Unstarted"&&(a(13,R=n("scheduled")),a(15,f="StatusUnstarted")),g=="Running"&&(a(13,R=n("ongoing")),a(15,f="StatusRunning")),(g=="Closed"||g=="Closing")&&a(13,R=n("finished")),g=="Closed"&&a(15,f="StatusClosed"),g=="Closing"&&a(15,f="StatusClosing")},I=()=>{S=="BetCount"&&a(14,w=n("betCount")),S=="MaxWinStakeRatio"&&a(14,w=n("maxWinStakeRatio")),S=="WinStakeRatio"&&a(14,w=n("winStakeRatio")),S=="Stake"&&a(14,w=n("stake"))},O=(r,k)=>{window.postMessage({type:"tournamentGamesClicked",tourId:k},window.location.href)},V=()=>{l.length>0&&l!="false"?a(12,v=!0):a(12,v=!1)},H=()=>{let r=document.createElement("style");r.innerHTML=p,T.appendChild(r)},q=()=>{let r=new URL(D),k=document.createElement("style");fetch(r.href).then(J=>J.text()).then(J=>{k.innerHTML=J,setTimeout(()=>{T.appendChild(k)},1),setTimeout(()=>{},500)})};e.onMount(()=>(setTimeout(()=>W(),1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",N,!1),()=>{window.removeEventListener("message",N)}));const W=()=>{ee(m),I(),z(),o&&j()},Y=()=>O();function Z(r){e.binding_callbacks[r?"unshift":"push"](()=>{T=r,a(10,T)})}return i.$$set=r=>{"session"in r&&a(21,l=r.session),"userid"in r&&a(22,u=r.userid),"title"in r&&a(1,s=r.title),"startdate"in r&&a(2,o=r.startdate),"status"in r&&a(0,g=r.status),"tourid"in r&&a(3,A=r.tourid),"thumbnail"in r&&a(4,h=r.thumbnail),"userenrolled"in r&&a(5,b=r.userenrolled),"scorecriteria"in r&&a(23,S=r.scorecriteria),"minbetcount"in r&&a(6,M=r.minbetcount),"showenrolled"in r&&a(7,y=r.showenrolled),"gameurl"in r&&a(8,c=r.gameurl),"lang"in r&&a(24,m=r.lang),"keepbrowsercontext"in r&&a(9,d=r.keepbrowsercontext),"clientstyling"in r&&a(25,p=r.clientstyling),"clientstylingurl"in r&&a(26,D=r.clientstylingurl),"translationurl"in r&&a(27,C=r.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&33555456&&T&&p&&H(),i.$$.dirty[0]&67109888&&T&&D&&q(),i.$$.dirty[0]&134217728&&C&&_(),i.$$.dirty[0]&2097152&&l&&V(),i.$$.dirty[0]&1&&g&&z(),i.$$.dirty[0]&16777218&&s&&m&&W(),i.$$.dirty[0]&4&&o&&j(),i.$$.dirty[0]&8388608&&S&&I()},[g,s,o,A,h,b,M,y,c,d,T,F,v,R,w,f,n,j,z,I,O,l,u,S,m,p,D,C,Y,Z]}class U extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ne,re,e.safe_not_equal,{session:21,userid:22,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:23,minbetcount:6,showenrolled:7,gameurl:8,lang:24,keepbrowsercontext:9,clientstyling:25,clientstylingurl:26,translationurl:27},te,[-1,-1])}get session(){return this.$$.ctx[21]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[22]}set userid(t){this.$$set({userid:t}),e.flush()}get title(){return this.$$.ctx[1]}set title(t){this.$$set({title:t}),e.flush()}get startdate(){return this.$$.ctx[2]}set startdate(t){this.$$set({startdate:t}),e.flush()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),e.flush()}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),e.flush()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(t){this.$$set({thumbnail:t}),e.flush()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(t){this.$$set({userenrolled:t}),e.flush()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(t){this.$$set({scorecriteria:t}),e.flush()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(t){this.$$set({minbetcount:t}),e.flush()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(t){this.$$set({showenrolled:t}),e.flush()}get gameurl(){return this.$$.ctx[8]}set gameurl(t){this.$$set({gameurl:t}),e.flush()}get lang(){return this.$$.ctx[24]}set lang(t){this.$$set({lang:t}),e.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),e.flush()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[27]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(U,{session:{},userid:{},title:{},startdate:{},status:{},tourid:{},thumbnail:{},userenrolled:{},scorecriteria:{},minbetcount:{},showenrolled:{},gameurl:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=U;