@everymatrix/casino-tournaments-controller 0.0.119 → 0.0.123

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.
@@ -4679,10 +4679,10 @@
4679
4679
  tr: {
4680
4680
  tournamentsFilter: {
4681
4681
  tournaments: 'Turnuvalar',
4682
- all: 'Allll',
4683
- scheduled: 'Scheduleddd',
4684
- ongoing: 'OnGoinggg',
4685
- finished: 'Finisheddd'
4682
+ all: 'Hepsi',
4683
+ scheduled: 'Devam eden',
4684
+ ongoing: 'Planlanmış',
4685
+ finished: 'Sona Ermiş'
4686
4686
  }
4687
4687
  }
4688
4688
  };
@@ -11122,7 +11122,7 @@
11122
11122
  login: 'Giriş',
11123
11123
  register: 'Kayıt Ol',
11124
11124
  details: 'Detaylar',
11125
- enrolled: 'Kayıtlı',
11125
+ enrolled: 'Katıldın',
11126
11126
  join: 'Katıl',
11127
11127
  joinerror: 'Turnuvaya katılım ile ilgili bir hata oluştu - '
11128
11128
  }
@@ -11143,19 +11143,21 @@
11143
11143
  here: 'here',
11144
11144
  scheduled: 'Scheduled',
11145
11145
  ongoing: 'OnGoing',
11146
- finished: 'Finished'
11146
+ finished: 'Finished',
11147
+ startingAt: 'Starting at',
11147
11148
  }
11148
11149
  },
11149
11150
  tr: {
11150
11151
  tournamentsThumbnail: {
11151
- enrolled: 'Kayıtlı',
11152
+ enrolled: 'Katıldın',
11152
11153
  scoreCriteria: 'Skor kriteri',
11153
- minbet: 'en düşük bahis sayısı: ',
11154
- seegames: 'Oyunları görebilirsiniz',
11155
- here: 'burada',
11156
- scheduled: 'Scheduledddd',
11157
- ongoing: 'OnGoinggggg',
11158
- finished: 'Finisheddddd'
11154
+ minbet: 'en düşük bahis sayısı',
11155
+ seegames: 'Turnuvadaki oyunları görmek için',
11156
+ here: 'tıklayın',
11157
+ scheduled: 'Devam eden',
11158
+ ongoing: 'Planlanmış',
11159
+ finished: 'Sona Ermiş',
11160
+ startingAt: 'BAŞLAMA SAATİ:',
11159
11161
  }
11160
11162
  },
11161
11163
  };
@@ -11165,7 +11167,7 @@
11165
11167
  const { Object: Object_1$5 } = globals;
11166
11168
  const file$6 = "../casino-tournaments-thumbnail/src/CasinoTournamentsThumbnail.svelte";
11167
11169
 
11168
- // (74:2) {#if status}
11170
+ // (75:2) {#if status}
11169
11171
  function create_if_block_6$2(ctx) {
11170
11172
  let div;
11171
11173
  let t;
@@ -11177,7 +11179,7 @@
11177
11179
  div = element("div");
11178
11180
  t = text(/*shownStatus*/ ctx[12]);
11179
11181
  attr_dev(div, "class", "Status");
11180
- add_location(div, file$6, 74, 4, 2313);
11182
+ add_location(div, file$6, 75, 4, 2365);
11181
11183
  },
11182
11184
  m: function mount(target, anchor) {
11183
11185
  insert_dev(target, div, anchor);
@@ -11202,14 +11204,14 @@
11202
11204
  block,
11203
11205
  id: create_if_block_6$2.name,
11204
11206
  type: "if",
11205
- source: "(74:2) {#if status}",
11207
+ source: "(75:2) {#if status}",
11206
11208
  ctx
11207
11209
  });
11208
11210
 
11209
11211
  return block;
11210
11212
  }
11211
11213
 
11212
- // (78:2) {#if showenrolled == 'true'}
11214
+ // (79:2) {#if showenrolled == 'true'}
11213
11215
  function create_if_block_4$3(ctx) {
11214
11216
  let if_block_anchor;
11215
11217
  let if_block = /*userenrolled*/ ctx[5] && create_if_block_5$2(ctx);
@@ -11247,14 +11249,14 @@
11247
11249
  block,
11248
11250
  id: create_if_block_4$3.name,
11249
11251
  type: "if",
11250
- source: "(78:2) {#if showenrolled == 'true'}",
11252
+ source: "(79:2) {#if showenrolled == 'true'}",
11251
11253
  ctx
11252
11254
  });
11253
11255
 
11254
11256
  return block;
11255
11257
  }
11256
11258
 
11257
- // (79:4) {#if userenrolled}
11259
+ // (80:4) {#if userenrolled}
11258
11260
  function create_if_block_5$2(ctx) {
11259
11261
  let div;
11260
11262
  let t_value = /*$_*/ ctx[13]("tournamentsThumbnail.enrolled") + "";
@@ -11265,7 +11267,7 @@
11265
11267
  div = element("div");
11266
11268
  t = text(t_value);
11267
11269
  attr_dev(div, "class", "Enrolled");
11268
- add_location(div, file$6, 79, 6, 2438);
11270
+ add_location(div, file$6, 80, 6, 2490);
11269
11271
  },
11270
11272
  m: function mount(target, anchor) {
11271
11273
  insert_dev(target, div, anchor);
@@ -11283,14 +11285,14 @@
11283
11285
  block,
11284
11286
  id: create_if_block_5$2.name,
11285
11287
  type: "if",
11286
- source: "(79:4) {#if userenrolled}",
11288
+ source: "(80:4) {#if userenrolled}",
11287
11289
  ctx
11288
11290
  });
11289
11291
 
11290
11292
  return block;
11291
11293
  }
11292
11294
 
11293
- // (85:2) {:else}
11295
+ // (86:2) {:else}
11294
11296
  function create_else_block$5(ctx) {
11295
11297
  let div;
11296
11298
  let div_class_value;
@@ -11306,7 +11308,7 @@
11306
11308
  : ""));
11307
11309
 
11308
11310
  set_style(div, "background", "url('https://i.stack.imgur.com/y9DpT.jpg') center no-repeat");
11309
- add_location(div, file$6, 85, 4, 2712);
11311
+ add_location(div, file$6, 86, 4, 2764);
11310
11312
  },
11311
11313
  m: function mount(target, anchor) {
11312
11314
  insert_dev(target, div, anchor);
@@ -11334,14 +11336,14 @@
11334
11336
  block,
11335
11337
  id: create_else_block$5.name,
11336
11338
  type: "else",
11337
- source: "(85:2) {:else}",
11339
+ source: "(86:2) {:else}",
11338
11340
  ctx
11339
11341
  });
11340
11342
 
11341
11343
  return block;
11342
11344
  }
11343
11345
 
11344
- // (83:2) {#if thumbnail}
11346
+ // (84:2) {#if thumbnail}
11345
11347
  function create_if_block_3$3(ctx) {
11346
11348
  let div;
11347
11349
  let div_class_value;
@@ -11357,7 +11359,7 @@
11357
11359
  : ""));
11358
11360
 
11359
11361
  set_style(div, "background", "url('" + /*thumbnail*/ ctx[4] + "')");
11360
- add_location(div, file$6, 83, 4, 2544);
11362
+ add_location(div, file$6, 84, 4, 2596);
11361
11363
  },
11362
11364
  m: function mount(target, anchor) {
11363
11365
  insert_dev(target, div, anchor);
@@ -11389,14 +11391,14 @@
11389
11391
  block,
11390
11392
  id: create_if_block_3$3.name,
11391
11393
  type: "if",
11392
- source: "(83:2) {#if thumbnail}",
11394
+ source: "(84:2) {#if thumbnail}",
11393
11395
  ctx
11394
11396
  });
11395
11397
 
11396
11398
  return block;
11397
11399
  }
11398
11400
 
11399
- // (91:4) {#if startdate}
11401
+ // (92:4) {#if startdate}
11400
11402
  function create_if_block_2$3(ctx) {
11401
11403
  let div;
11402
11404
  let t;
@@ -11409,7 +11411,7 @@
11409
11411
  div = element("div");
11410
11412
  t = text(/*shownDate*/ ctx[10]);
11411
11413
  attr_dev(div, "class", "Date");
11412
- add_location(div, file$6, 91, 6, 3003);
11414
+ add_location(div, file$6, 92, 6, 3055);
11413
11415
  },
11414
11416
  m: function mount(target, anchor) {
11415
11417
  insert_dev(target, div, anchor);
@@ -11435,18 +11437,18 @@
11435
11437
  block,
11436
11438
  id: create_if_block_2$3.name,
11437
11439
  type: "if",
11438
- source: "(91:4) {#if startdate}",
11440
+ source: "(92:4) {#if startdate}",
11439
11441
  ctx
11440
11442
  });
11441
11443
 
11442
11444
  return block;
11443
11445
  }
11444
11446
 
11445
- // (95:4) {#if isLoggedIn}
11447
+ // (96:4) {#if isLoggedIn}
11446
11448
  function create_if_block$6(ctx) {
11447
11449
  let div0;
11448
11450
  let p0;
11449
- let t0_value = /*$_*/ ctx[13]("tournamentsThumbnail.enrolled") + "";
11451
+ let t0_value = /*$_*/ ctx[13]("tournamentsThumbnail.scoreCriteria") + "";
11450
11452
  let t0;
11451
11453
  let t1;
11452
11454
  let t2;
@@ -11480,15 +11482,15 @@
11480
11482
  t6 = space();
11481
11483
  a = element("a");
11482
11484
  t7 = text(t7_value);
11483
- add_location(p0, file$6, 96, 8, 3140);
11485
+ add_location(p0, file$6, 97, 8, 3192);
11484
11486
  attr_dev(div0, "class", "ScoreCriteria");
11485
- add_location(div0, file$6, 95, 6, 3104);
11487
+ add_location(div0, file$6, 96, 6, 3156);
11486
11488
  attr_dev(a, "href", /*gameurl*/ ctx[9]);
11487
11489
  attr_dev(a, "target", "_blank");
11488
- add_location(a, file$6, 105, 49, 3436);
11489
- add_location(p1, file$6, 105, 8, 3395);
11490
+ add_location(a, file$6, 106, 49, 3493);
11491
+ add_location(p1, file$6, 106, 8, 3452);
11490
11492
  attr_dev(div1, "class", "Games");
11491
- add_location(div1, file$6, 104, 6, 3367);
11493
+ add_location(div1, file$6, 105, 6, 3424);
11492
11494
  },
11493
11495
  m: function mount(target, anchor) {
11494
11496
  insert_dev(target, div0, anchor);
@@ -11507,12 +11509,12 @@
11507
11509
  append_dev(a, t7);
11508
11510
 
11509
11511
  if (!mounted) {
11510
- dispose = listen_dev(a, "click", /*click_handler*/ ctx[19], false, false, false);
11512
+ dispose = listen_dev(a, "click", /*click_handler*/ ctx[20], false, false, false);
11511
11513
  mounted = true;
11512
11514
  }
11513
11515
  },
11514
11516
  p: function update(ctx, dirty) {
11515
- if (dirty & /*$_*/ 8192 && t0_value !== (t0_value = /*$_*/ ctx[13]("tournamentsThumbnail.enrolled") + "")) set_data_dev(t0, t0_value);
11517
+ if (dirty & /*$_*/ 8192 && t0_value !== (t0_value = /*$_*/ ctx[13]("tournamentsThumbnail.scoreCriteria") + "")) set_data_dev(t0, t0_value);
11516
11518
  if (dirty & /*scorecriteria*/ 64) set_data_dev(t2, /*scorecriteria*/ ctx[6]);
11517
11519
 
11518
11520
  if (/*scorecriteria*/ ctx[6] == "BetCount") {
@@ -11549,14 +11551,14 @@
11549
11551
  block,
11550
11552
  id: create_if_block$6.name,
11551
11553
  type: "if",
11552
- source: "(95:4) {#if isLoggedIn}",
11554
+ source: "(96:4) {#if isLoggedIn}",
11553
11555
  ctx
11554
11556
  });
11555
11557
 
11556
11558
  return block;
11557
11559
  }
11558
11560
 
11559
- // (99:10) {#if scorecriteria == 'BetCount'}
11561
+ // (100:10) {#if scorecriteria == 'BetCount'}
11560
11562
  function create_if_block_1$3(ctx) {
11561
11563
  let t0;
11562
11564
  let t1_value = /*$_*/ ctx[13]("tournamentsThumbnail.minbet") + "";
@@ -11597,7 +11599,7 @@
11597
11599
  block,
11598
11600
  id: create_if_block_1$3.name,
11599
11601
  type: "if",
11600
- source: "(99:10) {#if scorecriteria == 'BetCount'}",
11602
+ source: "(100:10) {#if scorecriteria == 'BetCount'}",
11601
11603
  ctx
11602
11604
  });
11603
11605
 
@@ -11645,11 +11647,11 @@
11645
11647
  if (if_block4) if_block4.c();
11646
11648
  this.c = noop$1;
11647
11649
  attr_dev(div0, "class", "Title");
11648
- add_location(div0, file$6, 89, 4, 2944);
11650
+ add_location(div0, file$6, 90, 4, 2996);
11649
11651
  attr_dev(div1, "class", "Details");
11650
- add_location(div1, file$6, 88, 2, 2918);
11652
+ add_location(div1, file$6, 89, 2, 2970);
11651
11653
  attr_dev(div2, "class", "Thumbnail");
11652
- add_location(div2, file$6, 72, 0, 2270);
11654
+ add_location(div2, file$6, 73, 0, 2322);
11653
11655
  },
11654
11656
  l: function claim(nodes) {
11655
11657
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -11778,6 +11780,7 @@
11778
11780
  let { minbetcount = "" } = $$props;
11779
11781
  let { showenrolled = "false" } = $$props;
11780
11782
  let { gameurl = "" } = $$props;
11783
+ let { lang = "en" } = $$props;
11781
11784
 
11782
11785
  // Variables of topics for communication
11783
11786
  let sessionTopic;
@@ -11799,18 +11802,18 @@
11799
11802
  };
11800
11803
 
11801
11804
  const formatDate = () => {
11802
- const dateOptions = { month: "short" };
11805
+ const dateOptions = { month: "long" };
11803
11806
  let currentDate = new Date(startdate);
11804
- let currentMonth = new Intl.DateTimeFormat("en-GB", dateOptions).format(currentDate);
11807
+ let currentMonth = new Intl.DateTimeFormat(lang, dateOptions).format(currentDate);
11805
11808
  let currentDay = currentDate.getDate();
11806
11809
 
11807
- let currentHour = currentDate.toLocaleString("en-US", {
11810
+ let currentHour = currentDate.toLocaleString(lang, {
11808
11811
  hour: "numeric",
11809
11812
  minute: "numeric",
11810
- hour12: true
11813
+ hour12: false
11811
11814
  });
11812
11815
 
11813
- $$invalidate(10, shownDate = `${currentMonth} ${currentDay}, Starting at ${currentHour}`);
11816
+ $$invalidate(10, shownDate = `${currentDay} ${currentMonth}, ` + $_("tournamentsThumbnail.startingAt") + ` ${currentHour}`);
11814
11817
  };
11815
11818
 
11816
11819
  const matchStatus = () => {
@@ -11860,7 +11863,8 @@
11860
11863
  "scorecriteria",
11861
11864
  "minbetcount",
11862
11865
  "showenrolled",
11863
- "gameurl"
11866
+ "gameurl",
11867
+ "lang"
11864
11868
  ];
11865
11869
 
11866
11870
  Object_1$5.keys($$props).forEach(key => {
@@ -11882,6 +11886,7 @@
11882
11886
  if ("minbetcount" in $$props) $$invalidate(7, minbetcount = $$props.minbetcount);
11883
11887
  if ("showenrolled" in $$props) $$invalidate(8, showenrolled = $$props.showenrolled);
11884
11888
  if ("gameurl" in $$props) $$invalidate(9, gameurl = $$props.gameurl);
11889
+ if ("lang" in $$props) $$invalidate(19, lang = $$props.lang);
11885
11890
  };
11886
11891
 
11887
11892
  $$self.$capture_state = () => ({
@@ -11901,6 +11906,7 @@
11901
11906
  minbetcount,
11902
11907
  showenrolled,
11903
11908
  gameurl,
11909
+ lang,
11904
11910
  sessionTopic,
11905
11911
  shownDate,
11906
11912
  isLoggedIn,
@@ -11928,6 +11934,7 @@
11928
11934
  if ("minbetcount" in $$props) $$invalidate(7, minbetcount = $$props.minbetcount);
11929
11935
  if ("showenrolled" in $$props) $$invalidate(8, showenrolled = $$props.showenrolled);
11930
11936
  if ("gameurl" in $$props) $$invalidate(9, gameurl = $$props.gameurl);
11937
+ if ("lang" in $$props) $$invalidate(19, lang = $$props.lang);
11931
11938
  if ("sessionTopic" in $$props) sessionTopic = $$props.sessionTopic;
11932
11939
  if ("shownDate" in $$props) $$invalidate(10, shownDate = $$props.shownDate);
11933
11940
  if ("isLoggedIn" in $$props) $$invalidate(11, isLoggedIn = $$props.isLoggedIn);
@@ -11966,6 +11973,7 @@
11966
11973
  tournamentGamesClicked,
11967
11974
  session,
11968
11975
  userid,
11976
+ lang,
11969
11977
  click_handler
11970
11978
  ];
11971
11979
  }
@@ -11997,7 +12005,8 @@
11997
12005
  scorecriteria: 6,
11998
12006
  minbetcount: 7,
11999
12007
  showenrolled: 8,
12000
- gameurl: 9
12008
+ gameurl: 9,
12009
+ lang: 19
12001
12010
  }
12002
12011
  );
12003
12012
 
@@ -12026,7 +12035,8 @@
12026
12035
  "scorecriteria",
12027
12036
  "minbetcount",
12028
12037
  "showenrolled",
12029
- "gameurl"
12038
+ "gameurl",
12039
+ "lang"
12030
12040
  ];
12031
12041
  }
12032
12042
 
@@ -12137,6 +12147,15 @@
12137
12147
  this.$set({ gameurl });
12138
12148
  flush();
12139
12149
  }
12150
+
12151
+ get lang() {
12152
+ return this.$$.ctx[19];
12153
+ }
12154
+
12155
+ set lang(lang) {
12156
+ this.$set({ lang });
12157
+ flush();
12158
+ }
12140
12159
  }
12141
12160
 
12142
12161
  !customElements.get('casino-tournaments-thumbnail') && customElements.define('casino-tournaments-thumbnail', CasinoTournamentsThumbnail);
@@ -12978,6 +12997,13 @@
12978
12997
  return child_ctx;
12979
12998
  }
12980
12999
 
13000
+ function get_each_context_1(ctx, list, i) {
13001
+ const child_ctx = ctx.slice();
13002
+ child_ctx[7] = list[i];
13003
+ child_ctx[9] = i;
13004
+ return child_ctx;
13005
+ }
13006
+
12981
13007
  // (28:2) {#if prizes}
12982
13008
  function create_if_block$4(ctx) {
12983
13009
  let div;
@@ -13075,7 +13101,7 @@
13075
13101
  return block;
13076
13102
  }
13077
13103
 
13078
- // (34:6) {:else}
13104
+ // (36:6) {:else}
13079
13105
  function create_else_block$3(ctx) {
13080
13106
  let p;
13081
13107
  let t_value = /*$_*/ ctx[1]("tournamentsPrizes.noprizes") + "";
@@ -13085,7 +13111,7 @@
13085
13111
  c: function create() {
13086
13112
  p = element("p");
13087
13113
  t = text(t_value);
13088
- add_location(p, file$4, 34, 8, 1973);
13114
+ add_location(p, file$4, 36, 8, 2044);
13089
13115
  },
13090
13116
  m: function mount(target, anchor) {
13091
13117
  insert_dev(target, p, anchor);
@@ -13103,19 +13129,19 @@
13103
13129
  block,
13104
13130
  id: create_else_block$3.name,
13105
13131
  type: "else",
13106
- source: "(34:6) {:else}",
13132
+ source: "(36:6) {:else}",
13107
13133
  ctx
13108
13134
  });
13109
13135
 
13110
13136
  return block;
13111
13137
  }
13112
13138
 
13113
- // (30:6) {#each prizes as prize, index}
13114
- function create_each_block$2(ctx) {
13139
+ // (31:8) {#each {length:prize.count} as _, i}
13140
+ function create_each_block_1(ctx) {
13115
13141
  let div;
13116
13142
  let p;
13117
13143
  let span;
13118
- let t0_value = /*prize*/ ctx[4].rank + "";
13144
+ let t0_value = /*prize*/ ctx[4].rank + /*i*/ ctx[9] + "";
13119
13145
  let t0;
13120
13146
  let t1;
13121
13147
  let t2_value = /*prize*/ ctx[4].name + "";
@@ -13131,10 +13157,10 @@
13131
13157
  t1 = space();
13132
13158
  t2 = text(t2_value);
13133
13159
  t3 = space();
13134
- add_location(span, file$4, 31, 13, 1893);
13135
- add_location(p, file$4, 31, 10, 1890);
13160
+ add_location(span, file$4, 32, 15, 1942);
13161
+ add_location(p, file$4, 32, 12, 1939);
13136
13162
  attr_dev(div, "class", "Prize Prize" + /*index*/ ctx[6]);
13137
- add_location(div, file$4, 30, 8, 1847);
13163
+ add_location(div, file$4, 31, 10, 1894);
13138
13164
  },
13139
13165
  m: function mount(target, anchor) {
13140
13166
  insert_dev(target, div, anchor);
@@ -13146,7 +13172,7 @@
13146
13172
  append_dev(div, t3);
13147
13173
  },
13148
13174
  p: function update(ctx, dirty) {
13149
- if (dirty & /*prizes*/ 1 && t0_value !== (t0_value = /*prize*/ ctx[4].rank + "")) set_data_dev(t0, t0_value);
13175
+ if (dirty & /*prizes*/ 1 && t0_value !== (t0_value = /*prize*/ ctx[4].rank + /*i*/ ctx[9] + "")) set_data_dev(t0, t0_value);
13150
13176
  if (dirty & /*prizes*/ 1 && t2_value !== (t2_value = /*prize*/ ctx[4].name + "")) set_data_dev(t2, t2_value);
13151
13177
  },
13152
13178
  d: function destroy(detaching) {
@@ -13154,6 +13180,74 @@
13154
13180
  }
13155
13181
  };
13156
13182
 
13183
+ dispatch_dev("SvelteRegisterBlock", {
13184
+ block,
13185
+ id: create_each_block_1.name,
13186
+ type: "each",
13187
+ source: "(31:8) {#each {length:prize.count} as _, i}",
13188
+ ctx
13189
+ });
13190
+
13191
+ return block;
13192
+ }
13193
+
13194
+ // (30:6) {#each prizes as prize, index}
13195
+ function create_each_block$2(ctx) {
13196
+ let each_1_anchor;
13197
+ let each_value_1 = { length: /*prize*/ ctx[4].count };
13198
+ validate_each_argument(each_value_1);
13199
+ let each_blocks = [];
13200
+
13201
+ for (let i = 0; i < each_value_1.length; i += 1) {
13202
+ each_blocks[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
13203
+ }
13204
+
13205
+ const block = {
13206
+ c: function create() {
13207
+ for (let i = 0; i < each_blocks.length; i += 1) {
13208
+ each_blocks[i].c();
13209
+ }
13210
+
13211
+ each_1_anchor = empty();
13212
+ },
13213
+ m: function mount(target, anchor) {
13214
+ for (let i = 0; i < each_blocks.length; i += 1) {
13215
+ each_blocks[i].m(target, anchor);
13216
+ }
13217
+
13218
+ insert_dev(target, each_1_anchor, anchor);
13219
+ },
13220
+ p: function update(ctx, dirty) {
13221
+ if (dirty & /*prizes*/ 1) {
13222
+ each_value_1 = { length: /*prize*/ ctx[4].count };
13223
+ validate_each_argument(each_value_1);
13224
+ let i;
13225
+
13226
+ for (i = 0; i < each_value_1.length; i += 1) {
13227
+ const child_ctx = get_each_context_1(ctx, each_value_1, i);
13228
+
13229
+ if (each_blocks[i]) {
13230
+ each_blocks[i].p(child_ctx, dirty);
13231
+ } else {
13232
+ each_blocks[i] = create_each_block_1(child_ctx);
13233
+ each_blocks[i].c();
13234
+ each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
13235
+ }
13236
+ }
13237
+
13238
+ for (; i < each_blocks.length; i += 1) {
13239
+ each_blocks[i].d(1);
13240
+ }
13241
+
13242
+ each_blocks.length = each_value_1.length;
13243
+ }
13244
+ },
13245
+ d: function destroy(detaching) {
13246
+ destroy_each(each_blocks, detaching);
13247
+ if (detaching) detach_dev(each_1_anchor);
13248
+ }
13249
+ };
13250
+
13157
13251
  dispatch_dev("SvelteRegisterBlock", {
13158
13252
  block,
13159
13253
  id: create_each_block$2.name,
@@ -14067,9 +14161,10 @@
14067
14161
  set_custom_element_data(casino_tournaments_thumbnail, "userenrolled", /*userenrolled*/ ctx[20]);
14068
14162
  set_custom_element_data(casino_tournaments_thumbnail, "showenrolled", /*showenrolled*/ ctx[5]);
14069
14163
  set_custom_element_data(casino_tournaments_thumbnail, "gameurl", /*gameurl*/ ctx[24]);
14164
+ set_custom_element_data(casino_tournaments_thumbnail, "lang", /*lang*/ ctx[8]);
14070
14165
  add_location(casino_tournaments_thumbnail, file$2, 199, 4, 6071);
14071
14166
  attr_dev(div0, "class", "TournamentButtons");
14072
- add_location(div0, file$2, 229, 4, 6897);
14167
+ add_location(div0, file$2, 230, 4, 6910);
14073
14168
  attr_dev(div1, "class", div1_class_value = "TournamentCard " + (/*maxwidth*/ ctx[6] ? "CardMaxWidth" : "") + (/*fullsize*/ ctx[7] ? "CardFullSize" : ""));
14074
14169
  add_location(div1, file$2, 198, 2, 5973);
14075
14170
  },
@@ -14135,6 +14230,10 @@
14135
14230
  set_custom_element_data(casino_tournaments_thumbnail, "gameurl", /*gameurl*/ ctx[24]);
14136
14231
  }
14137
14232
 
14233
+ if (dirty[0] & /*lang*/ 256) {
14234
+ set_custom_element_data(casino_tournaments_thumbnail, "lang", /*lang*/ ctx[8]);
14235
+ }
14236
+
14138
14237
  if (/*isLoggedIn*/ ctx[9]) {
14139
14238
  if (if_block0) {
14140
14239
  if_block0.p(ctx, dirty);
@@ -14325,7 +14424,7 @@
14325
14424
  return block;
14326
14425
  }
14327
14426
 
14328
- // (215:4) {#if isLoggedIn}
14427
+ // (216:4) {#if isLoggedIn}
14329
14428
  function create_if_block_10(ctx) {
14330
14429
  let t;
14331
14430
  let casino_tournaments_thumbnail_duration;
@@ -14340,7 +14439,7 @@
14340
14439
  set_custom_element_data(casino_tournaments_thumbnail_duration, "startdate", /*startdate*/ ctx[15]);
14341
14440
  set_custom_element_data(casino_tournaments_thumbnail_duration, "lang", /*lang*/ ctx[8]);
14342
14441
  set_custom_element_data(casino_tournaments_thumbnail_duration, "enddate", /*enddate*/ ctx[16]);
14343
- add_location(casino_tournaments_thumbnail_duration, file$2, 222, 6, 6701);
14442
+ add_location(casino_tournaments_thumbnail_duration, file$2, 223, 6, 6714);
14344
14443
  },
14345
14444
  m: function mount(target, anchor) {
14346
14445
  if (if_block) if_block.m(target, anchor);
@@ -14388,14 +14487,14 @@
14388
14487
  block,
14389
14488
  id: create_if_block_10.name,
14390
14489
  type: "if",
14391
- source: "(215:4) {#if isLoggedIn}",
14490
+ source: "(216:4) {#if isLoggedIn}",
14392
14491
  ctx
14393
14492
  });
14394
14493
 
14395
14494
  return block;
14396
14495
  }
14397
14496
 
14398
- // (216:6) {#if tourid}
14497
+ // (217:6) {#if tourid}
14399
14498
  function create_if_block_11(ctx) {
14400
14499
  let casino_tournaments_thumbnail_prizes;
14401
14500
  let sendTournamentPrizes_action;
@@ -14406,7 +14505,7 @@
14406
14505
  c: function create() {
14407
14506
  casino_tournaments_thumbnail_prizes = element("casino-tournaments-thumbnail-prizes");
14408
14507
  set_custom_element_data(casino_tournaments_thumbnail_prizes, "tourid", /*tourid*/ ctx[18]);
14409
- add_location(casino_tournaments_thumbnail_prizes, file$2, 216, 8, 6519);
14508
+ add_location(casino_tournaments_thumbnail_prizes, file$2, 217, 8, 6532);
14410
14509
  },
14411
14510
  m: function mount(target, anchor) {
14412
14511
  insert_dev(target, casino_tournaments_thumbnail_prizes, anchor);
@@ -14434,14 +14533,14 @@
14434
14533
  block,
14435
14534
  id: create_if_block_11.name,
14436
14535
  type: "if",
14437
- source: "(216:6) {#if tourid}",
14536
+ source: "(217:6) {#if tourid}",
14438
14537
  ctx
14439
14538
  });
14440
14539
 
14441
14540
  return block;
14442
14541
  }
14443
14542
 
14444
- // (256:10) {#if showdetails == 'true'}
14543
+ // (257:10) {#if showdetails == 'true'}
14445
14544
  function create_if_block_9(ctx) {
14446
14545
  let button;
14447
14546
  let t_value = /*$_*/ ctx[25]("tournamentsThController.details") + "";
@@ -14454,7 +14553,7 @@
14454
14553
  button = element("button");
14455
14554
  t = text(t_value);
14456
14555
  attr_dev(button, "class", "DetailsLargeButton");
14457
- add_location(button, file$2, 256, 12, 8513);
14556
+ add_location(button, file$2, 257, 12, 8526);
14458
14557
  },
14459
14558
  m: function mount(target, anchor) {
14460
14559
  insert_dev(target, button, anchor);
@@ -14479,14 +14578,14 @@
14479
14578
  block,
14480
14579
  id: create_if_block_9.name,
14481
14580
  type: "if",
14482
- source: "(256:10) {#if showdetails == 'true'}",
14581
+ source: "(257:10) {#if showdetails == 'true'}",
14483
14582
  ctx
14484
14583
  });
14485
14584
 
14486
14585
  return block;
14487
14586
  }
14488
14587
 
14489
- // (235:8) {#if status != 'Closed' && status != 'Closing'}
14588
+ // (236:8) {#if status != 'Closed' && status != 'Closing'}
14490
14589
  function create_if_block_4$1(ctx) {
14491
14590
  let t;
14492
14591
  let if_block1_anchor;
@@ -14551,14 +14650,14 @@
14551
14650
  block,
14552
14651
  id: create_if_block_4$1.name,
14553
14652
  type: "if",
14554
- source: "(235:8) {#if status != 'Closed' && status != 'Closing'}",
14653
+ source: "(236:8) {#if status != 'Closed' && status != 'Closing'}",
14555
14654
  ctx
14556
14655
  });
14557
14656
 
14558
14657
  return block;
14559
14658
  }
14560
14659
 
14561
- // (231:6) {#if !isLoggedIn}
14660
+ // (232:6) {#if !isLoggedIn}
14562
14661
  function create_if_block_3$1(ctx) {
14563
14662
  let button0;
14564
14663
  let t0_value = /*$_*/ ctx[25]("tournamentsThController.login") + "";
@@ -14578,9 +14677,9 @@
14578
14677
  button1 = element("button");
14579
14678
  t2 = text(t2_value);
14580
14679
  attr_dev(button0, "class", "LoginButton");
14581
- add_location(button0, file$2, 231, 8, 6961);
14680
+ add_location(button0, file$2, 232, 8, 6974);
14582
14681
  attr_dev(button1, "class", "RegisterButton");
14583
- add_location(button1, file$2, 232, 8, 7075);
14682
+ add_location(button1, file$2, 233, 8, 7088);
14584
14683
  },
14585
14684
  m: function mount(target, anchor) {
14586
14685
  insert_dev(target, button0, anchor);
@@ -14615,14 +14714,14 @@
14615
14714
  block,
14616
14715
  id: create_if_block_3$1.name,
14617
14716
  type: "if",
14618
- source: "(231:6) {#if !isLoggedIn}",
14717
+ source: "(232:6) {#if !isLoggedIn}",
14619
14718
  ctx
14620
14719
  });
14621
14720
 
14622
14721
  return block;
14623
14722
  }
14624
14723
 
14625
- // (236:10) {#if showdetails == 'true'}
14724
+ // (237:10) {#if showdetails == 'true'}
14626
14725
  function create_if_block_8(ctx) {
14627
14726
  let button;
14628
14727
  let t_value = /*$_*/ ctx[25]("tournamentsThController.details") + "";
@@ -14635,7 +14734,7 @@
14635
14734
  button = element("button");
14636
14735
  t = text(t_value);
14637
14736
  attr_dev(button, "class", "DetailsButton");
14638
- add_location(button, file$2, 236, 12, 7310);
14737
+ add_location(button, file$2, 237, 12, 7323);
14639
14738
  },
14640
14739
  m: function mount(target, anchor) {
14641
14740
  insert_dev(target, button, anchor);
@@ -14660,14 +14759,14 @@
14660
14759
  block,
14661
14760
  id: create_if_block_8.name,
14662
14761
  type: "if",
14663
- source: "(236:10) {#if showdetails == 'true'}",
14762
+ source: "(237:10) {#if showdetails == 'true'}",
14664
14763
  ctx
14665
14764
  });
14666
14765
 
14667
14766
  return block;
14668
14767
  }
14669
14768
 
14670
- // (243:10) {:else}
14769
+ // (244:10) {:else}
14671
14770
  function create_else_block_1$1(ctx) {
14672
14771
  let button;
14673
14772
  let button_class_value;
@@ -14688,7 +14787,7 @@
14688
14787
  if_block.c();
14689
14788
  attr_dev(button, "class", button_class_value = "JoinButton " + (/*fullsize*/ ctx[7] ? "JoinButtonFullSize" : ""));
14690
14789
  button.disabled = /*errorJoin*/ ctx[12];
14691
- add_location(button, file$2, 243, 12, 7673);
14790
+ add_location(button, file$2, 244, 12, 7686);
14692
14791
  },
14693
14792
  m: function mount(target, anchor) {
14694
14793
  insert_dev(target, button, anchor);
@@ -14732,14 +14831,14 @@
14732
14831
  block,
14733
14832
  id: create_else_block_1$1.name,
14734
14833
  type: "else",
14735
- source: "(243:10) {:else}",
14834
+ source: "(244:10) {:else}",
14736
14835
  ctx
14737
14836
  });
14738
14837
 
14739
14838
  return block;
14740
14839
  }
14741
14840
 
14742
- // (239:10) {#if userenrolled == true}
14841
+ // (240:10) {#if userenrolled == true}
14743
14842
  function create_if_block_5(ctx) {
14744
14843
  let if_block_anchor;
14745
14844
  let if_block = /*showdetails*/ ctx[3] == "true" && create_if_block_6(ctx);
@@ -14777,14 +14876,14 @@
14777
14876
  block,
14778
14877
  id: create_if_block_5.name,
14779
14878
  type: "if",
14780
- source: "(239:10) {#if userenrolled == true}",
14879
+ source: "(240:10) {#if userenrolled == true}",
14781
14880
  ctx
14782
14881
  });
14783
14882
 
14784
14883
  return block;
14785
14884
  }
14786
14885
 
14787
- // (249:14) {:else}
14886
+ // (250:14) {:else}
14788
14887
  function create_else_block_2$1(ctx) {
14789
14888
  let span;
14790
14889
  let t0_value = /*$_*/ ctx[25]("tournamentsThController.join") + "";
@@ -14808,20 +14907,20 @@
14808
14907
  t2 = text(".a{fill:#fff;}");
14809
14908
  g = svg_element("g");
14810
14909
  path = svg_element("path");
14811
- add_location(span, file$2, 249, 16, 8009);
14812
- add_location(style, file$2, 250, 105, 8164);
14813
- add_location(defs, file$2, 250, 99, 8158);
14910
+ add_location(span, file$2, 250, 16, 8022);
14911
+ add_location(style, file$2, 251, 105, 8177);
14912
+ add_location(defs, file$2, 251, 99, 8171);
14814
14913
  attr_dev(path, "class", "a");
14815
14914
  attr_dev(path, "d", "M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z");
14816
14915
  attr_dev(path, "transform", "translate(26 26) rotate(180)");
14817
- add_location(path, file$2, 250, 185, 8244);
14916
+ add_location(path, file$2, 251, 185, 8257);
14818
14917
  attr_dev(g, "transform", "translate(26 26) rotate(180)");
14819
- add_location(g, file$2, 250, 141, 8200);
14918
+ add_location(g, file$2, 251, 141, 8213);
14820
14919
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
14821
14920
  attr_dev(svg, "width", "26");
14822
14921
  attr_dev(svg, "height", "26");
14823
14922
  attr_dev(svg, "viewBox", "0 0 26 26");
14824
- add_location(svg, file$2, 250, 16, 8075);
14923
+ add_location(svg, file$2, 251, 16, 8088);
14825
14924
  },
14826
14925
  m: function mount(target, anchor) {
14827
14926
  insert_dev(target, span, anchor);
@@ -14848,14 +14947,14 @@
14848
14947
  block,
14849
14948
  id: create_else_block_2$1.name,
14850
14949
  type: "else",
14851
- source: "(249:14) {:else}",
14950
+ source: "(250:14) {:else}",
14852
14951
  ctx
14853
14952
  });
14854
14953
 
14855
14954
  return block;
14856
14955
  }
14857
14956
 
14858
- // (245:14) {#if joinButtonLoading == true}
14957
+ // (246:14) {#if joinButtonLoading == true}
14859
14958
  function create_if_block_7(ctx) {
14860
14959
  let svg;
14861
14960
  let circle;
@@ -14867,9 +14966,9 @@
14867
14966
  attr_dev(circle, "cx", "20");
14868
14967
  attr_dev(circle, "cy", "20");
14869
14968
  attr_dev(circle, "r", "18");
14870
- add_location(circle, file$2, 246, 18, 7907);
14969
+ add_location(circle, file$2, 247, 18, 7920);
14871
14970
  attr_dev(svg, "class", "spinner");
14872
- add_location(svg, file$2, 245, 16, 7867);
14971
+ add_location(svg, file$2, 246, 16, 7880);
14873
14972
  },
14874
14973
  m: function mount(target, anchor) {
14875
14974
  insert_dev(target, svg, anchor);
@@ -14885,14 +14984,14 @@
14885
14984
  block,
14886
14985
  id: create_if_block_7.name,
14887
14986
  type: "if",
14888
- source: "(245:14) {#if joinButtonLoading == true}",
14987
+ source: "(246:14) {#if joinButtonLoading == true}",
14889
14988
  ctx
14890
14989
  });
14891
14990
 
14892
14991
  return block;
14893
14992
  }
14894
14993
 
14895
- // (240:12) {#if showdetails == 'true'}
14994
+ // (241:12) {#if showdetails == 'true'}
14896
14995
  function create_if_block_6(ctx) {
14897
14996
  let button;
14898
14997
  let t_value = /*$_*/ ctx[25]("tournamentsThController.enrolled") + "";
@@ -14904,7 +15003,7 @@
14904
15003
  t = text(t_value);
14905
15004
  attr_dev(button, "class", "EnrolledButton");
14906
15005
  button.disabled = true;
14907
- add_location(button, file$2, 240, 14, 7535);
15006
+ add_location(button, file$2, 241, 14, 7548);
14908
15007
  },
14909
15008
  m: function mount(target, anchor) {
14910
15009
  insert_dev(target, button, anchor);
@@ -14922,14 +15021,14 @@
14922
15021
  block,
14923
15022
  id: create_if_block_6.name,
14924
15023
  type: "if",
14925
- source: "(240:12) {#if showdetails == 'true'}",
15024
+ source: "(241:12) {#if showdetails == 'true'}",
14926
15025
  ctx
14927
15026
  });
14928
15027
 
14929
15028
  return block;
14930
15029
  }
14931
15030
 
14932
- // (262:4) {#if errorJoin}
15031
+ // (263:4) {#if errorJoin}
14933
15032
  function create_if_block_2$1(ctx) {
14934
15033
  let span;
14935
15034
  let t0_value = /*$_*/ ctx[25]("tournamentsThController.joinerror") + "";
@@ -14944,7 +15043,7 @@
14944
15043
  t1 = space();
14945
15044
  t2 = text(/*errorJoinText*/ ctx[13]);
14946
15045
  attr_dev(span, "class", "ErrorText");
14947
- add_location(span, file$2, 262, 6, 8715);
15046
+ add_location(span, file$2, 263, 6, 8728);
14948
15047
  },
14949
15048
  m: function mount(target, anchor) {
14950
15049
  insert_dev(target, span, anchor);
@@ -14965,14 +15064,14 @@
14965
15064
  block,
14966
15065
  id: create_if_block_2$1.name,
14967
15066
  type: "if",
14968
- source: "(262:4) {#if errorJoin}",
15067
+ source: "(263:4) {#if errorJoin}",
14969
15068
  ctx
14970
15069
  });
14971
15070
 
14972
15071
  return block;
14973
15072
  }
14974
15073
 
14975
- // (265:4) {#if showslider == "true"}
15074
+ // (266:4) {#if showslider == "true"}
14976
15075
  function create_if_block_1$1(ctx) {
14977
15076
  let casino_tournaments_thumbnail_games_slider;
14978
15077
 
@@ -14983,7 +15082,7 @@
14983
15082
  set_custom_element_data(casino_tournaments_thumbnail_games_slider, "lang", /*lang*/ ctx[8]);
14984
15083
  set_custom_element_data(casino_tournaments_thumbnail_games_slider, "scrollby", "2");
14985
15084
  set_custom_element_data(casino_tournaments_thumbnail_games_slider, "pagfactor", "130");
14986
- add_location(casino_tournaments_thumbnail_games_slider, file$2, 265, 6, 8851);
15085
+ add_location(casino_tournaments_thumbnail_games_slider, file$2, 266, 6, 8864);
14987
15086
  },
14988
15087
  m: function mount(target, anchor) {
14989
15088
  insert_dev(target, casino_tournaments_thumbnail_games_slider, anchor);
@@ -15006,7 +15105,7 @@
15006
15105
  block,
15007
15106
  id: create_if_block_1$1.name,
15008
15107
  type: "if",
15009
- source: "(265:4) {#if showslider == \\\"true\\\"}",
15108
+ source: "(266:4) {#if showslider == \\\"true\\\"}",
15010
15109
  ctx
15011
15110
  });
15012
15111