@everymatrix/casino-tournaments-controller 0.0.168 → 0.0.172

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.
@@ -4695,8 +4695,8 @@
4695
4695
  tournamentsFilter: {
4696
4696
  tournaments: 'Turnuvalar',
4697
4697
  all: 'Hepsi',
4698
- scheduled: 'Devam eden',
4699
- ongoing: 'Planlanmış',
4698
+ scheduled: 'Planlanmış',
4699
+ ongoing: 'Devam Eden',
4700
4700
  finished: 'Sona Ermiş'
4701
4701
  }
4702
4702
  },
@@ -11194,8 +11194,8 @@
11194
11194
  minbet: 'en düşük bahis sayısı',
11195
11195
  seegames: 'Turnuvadaki oyunları görmek için',
11196
11196
  here: 'tıklayın',
11197
- scheduled: 'Devam eden',
11198
- ongoing: 'Planlanmış',
11197
+ scheduled: 'Planlanmış',
11198
+ ongoing: 'Devam Eden',
11199
11199
  finished: 'Sona Ermiş',
11200
11200
  startingAt: 'BAŞLAMA SAATİ:',
11201
11201
  mostRounds: 'MostRounds',
@@ -13572,12 +13572,12 @@
13572
13572
 
13573
13573
  function get_each_context$1(ctx, list, i) {
13574
13574
  const child_ctx = ctx.slice();
13575
- child_ctx[34] = list[i];
13576
- child_ctx[36] = i;
13575
+ child_ctx[38] = list[i];
13576
+ child_ctx[40] = i;
13577
13577
  return child_ctx;
13578
13578
  }
13579
13579
 
13580
- // (111:2) {#if games}
13580
+ // (124:2) {#if games}
13581
13581
  function create_if_block$3(ctx) {
13582
13582
  let div0;
13583
13583
  let svg0;
@@ -13620,32 +13620,32 @@
13620
13620
  attr_dev(path0, "stroke-linejoin", "round");
13621
13621
  attr_dev(path0, "stroke-width", "2");
13622
13622
  attr_dev(path0, "d", "M15 19l-7-7 7-7");
13623
- add_location(path0, file$3, 113, 8, 3423);
13623
+ add_location(path0, file$3, 126, 8, 3982);
13624
13624
  attr_dev(svg0, "fill", "none");
13625
13625
  attr_dev(svg0, "stroke", "currentColor");
13626
13626
  attr_dev(svg0, "viewBox", "0 0 24 24");
13627
13627
  attr_dev(svg0, "xmlns", "http://www.w3.org/2000/svg");
13628
- add_location(svg0, file$3, 112, 6, 3320);
13628
+ add_location(svg0, file$3, 125, 6, 3879);
13629
13629
  attr_dev(div0, "class", "SliderNavButton");
13630
- toggle_class(div0, "disabled", /*atStart*/ ctx[5]);
13631
- add_location(div0, file$3, 111, 4, 3231);
13630
+ toggle_class(div0, "disabled", /*atStart*/ ctx[6]);
13631
+ add_location(div0, file$3, 124, 4, 3790);
13632
13632
  attr_dev(div1, "class", "items");
13633
13633
  set_style(div1, "transform", "translateX(" + /*offset*/ ctx[1] + "px)");
13634
- add_location(div1, file$3, 117, 6, 3562);
13635
- add_location(main, file$3, 116, 4, 3549);
13634
+ add_location(div1, file$3, 130, 6, 4121);
13635
+ add_location(main, file$3, 129, 4, 4108);
13636
13636
  attr_dev(path1, "stroke-linecap", "round");
13637
13637
  attr_dev(path1, "stroke-linejoin", "round");
13638
13638
  attr_dev(path1, "stroke-width", "2");
13639
13639
  attr_dev(path1, "d", "M9 5l7 7-7 7");
13640
- add_location(path1, file$3, 128, 8, 4240);
13640
+ add_location(path1, file$3, 141, 8, 4824);
13641
13641
  attr_dev(svg1, "fill", "none");
13642
13642
  attr_dev(svg1, "stroke", "currentColor");
13643
13643
  attr_dev(svg1, "viewBox", "0 0 24 24");
13644
13644
  attr_dev(svg1, "xmlns", "http://www.w3.org/2000/svg");
13645
- add_location(svg1, file$3, 127, 6, 4137);
13645
+ add_location(svg1, file$3, 140, 6, 4721);
13646
13646
  attr_dev(div2, "class", "SliderNavButton");
13647
- toggle_class(div2, "disabled", /*atEnd*/ ctx[6]);
13648
- add_location(div2, file$3, 126, 4, 4051);
13647
+ toggle_class(div2, "disabled", /*atEnd*/ ctx[7]);
13648
+ add_location(div2, file$3, 139, 4, 4635);
13649
13649
  },
13650
13650
  m: function mount(target, anchor) {
13651
13651
  insert_dev(target, div0, anchor);
@@ -13659,6 +13659,7 @@
13659
13659
  each_blocks[i].m(div1, null);
13660
13660
  }
13661
13661
 
13662
+ /*div1_binding*/ ctx[21](div1);
13662
13663
  insert_dev(target, t1, anchor);
13663
13664
  insert_dev(target, div2, anchor);
13664
13665
  append_dev(div2, svg1);
@@ -13666,19 +13667,19 @@
13666
13667
 
13667
13668
  if (!mounted) {
13668
13669
  dispose = [
13669
- listen_dev(div0, "click", /*click_handler*/ ctx[15], false, false, false),
13670
- listen_dev(div2, "click", /*click_handler_2*/ ctx[19], false, false, false)
13670
+ listen_dev(div0, "click", /*click_handler*/ ctx[17], false, false, false),
13671
+ listen_dev(div2, "click", /*click_handler_2*/ ctx[22], false, false, false)
13671
13672
  ];
13672
13673
 
13673
13674
  mounted = true;
13674
13675
  }
13675
13676
  },
13676
13677
  p: function update(ctx, dirty) {
13677
- if (dirty[0] & /*atStart*/ 32) {
13678
- toggle_class(div0, "disabled", /*atStart*/ ctx[5]);
13678
+ if (dirty[0] & /*atStart*/ 64) {
13679
+ toggle_class(div0, "disabled", /*atStart*/ ctx[6]);
13679
13680
  }
13680
13681
 
13681
- if (dirty[0] & /*gameClicked, games, enter, leave, hover, hoverIndex*/ 1433) {
13682
+ if (dirty[0] & /*gameClicked, games, enter, leave, hover, hoverIndex*/ 2841) {
13682
13683
  each_value = /*games*/ ctx[0];
13683
13684
  validate_each_argument(each_value);
13684
13685
  let i;
@@ -13706,8 +13707,8 @@
13706
13707
  set_style(div1, "transform", "translateX(" + /*offset*/ ctx[1] + "px)");
13707
13708
  }
13708
13709
 
13709
- if (dirty[0] & /*atEnd*/ 64) {
13710
- toggle_class(div2, "disabled", /*atEnd*/ ctx[6]);
13710
+ if (dirty[0] & /*atEnd*/ 128) {
13711
+ toggle_class(div2, "disabled", /*atEnd*/ ctx[7]);
13711
13712
  }
13712
13713
  },
13713
13714
  d: function destroy(detaching) {
@@ -13715,6 +13716,7 @@
13715
13716
  if (detaching) detach_dev(t0);
13716
13717
  if (detaching) detach_dev(main);
13717
13718
  destroy_each(each_blocks, detaching);
13719
+ /*div1_binding*/ ctx[21](null);
13718
13720
  if (detaching) detach_dev(t1);
13719
13721
  if (detaching) detach_dev(div2);
13720
13722
  mounted = false;
@@ -13726,14 +13728,14 @@
13726
13728
  block,
13727
13729
  id: create_if_block$3.name,
13728
13730
  type: "if",
13729
- source: "(111:2) {#if games}",
13731
+ source: "(124:2) {#if games}",
13730
13732
  ctx
13731
13733
  });
13732
13734
 
13733
13735
  return block;
13734
13736
  }
13735
13737
 
13736
- // (119:8) {#each games as game, i}
13738
+ // (132:8) {#each games as game, i}
13737
13739
  function create_each_block$1(ctx) {
13738
13740
  let div;
13739
13741
  let span;
@@ -13749,11 +13751,11 @@
13749
13751
  let dispose;
13750
13752
 
13751
13753
  function click_handler_1() {
13752
- return /*click_handler_1*/ ctx[16](/*game*/ ctx[34]);
13754
+ return /*click_handler_1*/ ctx[18](/*game*/ ctx[38]);
13753
13755
  }
13754
13756
 
13755
13757
  function mouseenter_handler() {
13756
- return /*mouseenter_handler*/ ctx[17](/*i*/ ctx[36]);
13758
+ return /*mouseenter_handler*/ ctx[19](/*i*/ ctx[40]);
13757
13759
  }
13758
13760
 
13759
13761
  const block = {
@@ -13765,19 +13767,19 @@
13765
13767
  img = element("img");
13766
13768
  t2 = space();
13767
13769
 
13768
- attr_dev(span, "class", span_class_value = "PlayNowButton " + (/*hover*/ ctx[3] && /*hoverIndex*/ ctx[4] == /*i*/ ctx[36]
13770
+ attr_dev(span, "class", span_class_value = "PlayNowButton " + (/*hover*/ ctx[3] && /*hoverIndex*/ ctx[4] == /*i*/ ctx[40]
13769
13771
  ? "itemHover"
13770
13772
  : ""));
13771
13773
 
13772
- add_location(span, file$3, 120, 12, 3795);
13773
- if (img.src !== (img_src_value = /*game*/ ctx[34].thumbnail)) attr_dev(img, "src", img_src_value);
13774
+ add_location(span, file$3, 133, 12, 4379);
13775
+ if (img.src !== (img_src_value = /*game*/ ctx[38].thumbnail)) attr_dev(img, "src", img_src_value);
13774
13776
  attr_dev(img, "width", "132px");
13775
13777
  attr_dev(img, "height", "100px");
13776
- attr_dev(img, "alt", img_alt_value = /*game*/ ctx[34].name);
13777
- attr_dev(img, "title", img_title_value = /*game*/ ctx[34].name);
13778
- add_location(img, file$3, 121, 12, 3898);
13778
+ attr_dev(img, "alt", img_alt_value = /*game*/ ctx[38].name);
13779
+ attr_dev(img, "title", img_title_value = /*game*/ ctx[38].name);
13780
+ add_location(img, file$3, 134, 12, 4482);
13779
13781
  attr_dev(div, "class", "item");
13780
- add_location(div, file$3, 119, 10, 3668);
13782
+ add_location(div, file$3, 132, 10, 4252);
13781
13783
  },
13782
13784
  m: function mount(target, anchor) {
13783
13785
  insert_dev(target, div, anchor);
@@ -13791,7 +13793,7 @@
13791
13793
  dispose = [
13792
13794
  listen_dev(div, "click", click_handler_1, false, false, false),
13793
13795
  listen_dev(div, "mouseenter", mouseenter_handler, false, false, false),
13794
- listen_dev(div, "mouseleave", /*mouseleave_handler*/ ctx[18], false, false, false)
13796
+ listen_dev(div, "mouseleave", /*mouseleave_handler*/ ctx[20], false, false, false)
13795
13797
  ];
13796
13798
 
13797
13799
  mounted = true;
@@ -13800,21 +13802,21 @@
13800
13802
  p: function update(new_ctx, dirty) {
13801
13803
  ctx = new_ctx;
13802
13804
 
13803
- if (dirty[0] & /*hover, hoverIndex*/ 24 && span_class_value !== (span_class_value = "PlayNowButton " + (/*hover*/ ctx[3] && /*hoverIndex*/ ctx[4] == /*i*/ ctx[36]
13805
+ if (dirty[0] & /*hover, hoverIndex*/ 24 && span_class_value !== (span_class_value = "PlayNowButton " + (/*hover*/ ctx[3] && /*hoverIndex*/ ctx[4] == /*i*/ ctx[40]
13804
13806
  ? "itemHover"
13805
13807
  : ""))) {
13806
13808
  attr_dev(span, "class", span_class_value);
13807
13809
  }
13808
13810
 
13809
- if (dirty[0] & /*games*/ 1 && img.src !== (img_src_value = /*game*/ ctx[34].thumbnail)) {
13811
+ if (dirty[0] & /*games*/ 1 && img.src !== (img_src_value = /*game*/ ctx[38].thumbnail)) {
13810
13812
  attr_dev(img, "src", img_src_value);
13811
13813
  }
13812
13814
 
13813
- if (dirty[0] & /*games*/ 1 && img_alt_value !== (img_alt_value = /*game*/ ctx[34].name)) {
13815
+ if (dirty[0] & /*games*/ 1 && img_alt_value !== (img_alt_value = /*game*/ ctx[38].name)) {
13814
13816
  attr_dev(img, "alt", img_alt_value);
13815
13817
  }
13816
13818
 
13817
- if (dirty[0] & /*games*/ 1 && img_title_value !== (img_title_value = /*game*/ ctx[34].name)) {
13819
+ if (dirty[0] & /*games*/ 1 && img_title_value !== (img_title_value = /*game*/ ctx[38].name)) {
13818
13820
  attr_dev(img, "title", img_title_value);
13819
13821
  }
13820
13822
  },
@@ -13829,7 +13831,7 @@
13829
13831
  block,
13830
13832
  id: create_each_block$1.name,
13831
13833
  type: "each",
13832
- source: "(119:8) {#each games as game, i}",
13834
+ source: "(132:8) {#each games as game, i}",
13833
13835
  ctx
13834
13836
  });
13835
13837
 
@@ -13846,7 +13848,7 @@
13846
13848
  if (if_block) if_block.c();
13847
13849
  this.c = noop$1;
13848
13850
  attr_dev(div, "class", "TournamentsGamesSlider");
13849
- add_location(div, file$3, 109, 0, 3157);
13851
+ add_location(div, file$3, 122, 0, 3716);
13850
13852
  },
13851
13853
  l: function claim(nodes) {
13852
13854
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -13854,7 +13856,7 @@
13854
13856
  m: function mount(target, anchor) {
13855
13857
  insert_dev(target, div, anchor);
13856
13858
  if (if_block) if_block.m(div, null);
13857
- /*div_binding*/ ctx[20](div);
13859
+ /*div_binding*/ ctx[23](div);
13858
13860
  },
13859
13861
  p: function update(ctx, dirty) {
13860
13862
  if (/*games*/ ctx[0]) {
@@ -13875,7 +13877,7 @@
13875
13877
  d: function destroy(detaching) {
13876
13878
  if (detaching) detach_dev(div);
13877
13879
  if (if_block) if_block.d();
13878
- /*div_binding*/ ctx[20](null);
13880
+ /*div_binding*/ ctx[23](null);
13879
13881
  }
13880
13882
  };
13881
13883
 
@@ -13911,6 +13913,8 @@
13911
13913
  let yDown = null;
13912
13914
  let hover = false;
13913
13915
  let hoverIndex;
13916
+ let gamesElement;
13917
+ let gamesElementWidth = 0;
13914
13918
 
13915
13919
  const enter = index => {
13916
13920
  $$invalidate(3, hover = true);
@@ -13954,8 +13958,10 @@
13954
13958
  const move = direction => {
13955
13959
  if (direction > 0 && !atEnd) {
13956
13960
  $$invalidate(1, offset -= totalPaginationPixels);
13961
+ $$invalidate(1, offset = offset < gamesElementWidth ? gamesElementWidth : offset);
13957
13962
  } else if (direction < 0 && !atStart) {
13958
13963
  $$invalidate(1, offset += totalPaginationPixels);
13964
+ $$invalidate(1, offset = offset > 0 ? 0 : offset);
13959
13965
  }
13960
13966
  };
13961
13967
 
@@ -13977,7 +13983,7 @@
13977
13983
  url.searchParams.append("pagination", `games(limit=${limit},offset=${offset})`);
13978
13984
  url.searchParams.append("fields", "games(id,name,thumbnail)");
13979
13985
  url.searchParams.append("language", lang);
13980
- reqHeaders.append("platform", getDevice(userAgent));
13986
+ url.searchParams.append("platform", getDevice(userAgent));
13981
13987
  let requestOptions = { method: "GET", headers: reqHeaders };
13982
13988
 
13983
13989
  fetch(url, requestOptions).then(res => res.json()).then(data => {
@@ -13995,6 +14001,18 @@
13995
14001
  slider.addEventListener("touchmove", handleTouchMove, { passive: true });
13996
14002
  };
13997
14003
 
14004
+ //calculate pagfactor by games length to avoid empty in the games end
14005
+ const recalculatePagfactor = () => {
14006
+ setTimeout(
14007
+ () => {
14008
+ $$invalidate(16, gamesElementWidth = (gamesElement.scrollWidth - gamesElement.clientWidth) * -1);
14009
+ $$invalidate(12, pagfactor = new String(gamesElement.scrollWidth / games.length));
14010
+ totalPaginationPixels = parseInt(scrollby, 10) * parseFloat(pagfactor, 2).toFixed(2);
14011
+ },
14012
+ 1000
14013
+ );
14014
+ };
14015
+
13998
14016
  onMount(() => {
13999
14017
  totalPaginationPixels = parseInt(scrollby, 10) * parseInt(pagfactor, 10);
14000
14018
 
@@ -14015,6 +14033,14 @@
14015
14033
  const click_handler_1 = game => gameClicked(game);
14016
14034
  const mouseenter_handler = i => enter(i);
14017
14035
  const mouseleave_handler = () => leave();
14036
+
14037
+ function div1_binding($$value) {
14038
+ binding_callbacks[$$value ? "unshift" : "push"](() => {
14039
+ gamesElement = $$value;
14040
+ $$invalidate(5, gamesElement);
14041
+ });
14042
+ }
14043
+
14018
14044
  const click_handler_2 = () => move(1);
14019
14045
 
14020
14046
  function div_binding($$value) {
@@ -14025,10 +14051,10 @@
14025
14051
  }
14026
14052
 
14027
14053
  $$self.$$set = $$props => {
14028
- if ("tournamenturl" in $$props) $$invalidate(11, tournamenturl = $$props.tournamenturl);
14029
- if ("scrollby" in $$props) $$invalidate(12, scrollby = $$props.scrollby);
14030
- if ("pagfactor" in $$props) $$invalidate(13, pagfactor = $$props.pagfactor);
14031
- if ("lang" in $$props) $$invalidate(14, lang = $$props.lang);
14054
+ if ("tournamenturl" in $$props) $$invalidate(13, tournamenturl = $$props.tournamenturl);
14055
+ if ("scrollby" in $$props) $$invalidate(14, scrollby = $$props.scrollby);
14056
+ if ("pagfactor" in $$props) $$invalidate(12, pagfactor = $$props.pagfactor);
14057
+ if ("lang" in $$props) $$invalidate(15, lang = $$props.lang);
14032
14058
  };
14033
14059
 
14034
14060
  $$self.$capture_state = () => ({
@@ -14050,6 +14076,8 @@
14050
14076
  yDown,
14051
14077
  hover,
14052
14078
  hoverIndex,
14079
+ gamesElement,
14080
+ gamesElementWidth,
14053
14081
  enter,
14054
14082
  leave,
14055
14083
  getTouches,
@@ -14060,15 +14088,16 @@
14060
14088
  fetchData,
14061
14089
  getTotalPixels,
14062
14090
  addEventListeners,
14091
+ recalculatePagfactor,
14063
14092
  atStart,
14064
14093
  atEnd
14065
14094
  });
14066
14095
 
14067
14096
  $$self.$inject_state = $$props => {
14068
- if ("tournamenturl" in $$props) $$invalidate(11, tournamenturl = $$props.tournamenturl);
14069
- if ("scrollby" in $$props) $$invalidate(12, scrollby = $$props.scrollby);
14070
- if ("pagfactor" in $$props) $$invalidate(13, pagfactor = $$props.pagfactor);
14071
- if ("lang" in $$props) $$invalidate(14, lang = $$props.lang);
14097
+ if ("tournamenturl" in $$props) $$invalidate(13, tournamenturl = $$props.tournamenturl);
14098
+ if ("scrollby" in $$props) $$invalidate(14, scrollby = $$props.scrollby);
14099
+ if ("pagfactor" in $$props) $$invalidate(12, pagfactor = $$props.pagfactor);
14100
+ if ("lang" in $$props) $$invalidate(15, lang = $$props.lang);
14072
14101
  if ("userAgent" in $$props) userAgent = $$props.userAgent;
14073
14102
  if ("items" in $$props) items = $$props.items;
14074
14103
  if ("totalPaginationPixels" in $$props) totalPaginationPixels = $$props.totalPaginationPixels;
@@ -14081,8 +14110,10 @@
14081
14110
  if ("yDown" in $$props) yDown = $$props.yDown;
14082
14111
  if ("hover" in $$props) $$invalidate(3, hover = $$props.hover);
14083
14112
  if ("hoverIndex" in $$props) $$invalidate(4, hoverIndex = $$props.hoverIndex);
14084
- if ("atStart" in $$props) $$invalidate(5, atStart = $$props.atStart);
14085
- if ("atEnd" in $$props) $$invalidate(6, atEnd = $$props.atEnd);
14113
+ if ("gamesElement" in $$props) $$invalidate(5, gamesElement = $$props.gamesElement);
14114
+ if ("gamesElementWidth" in $$props) $$invalidate(16, gamesElementWidth = $$props.gamesElementWidth);
14115
+ if ("atStart" in $$props) $$invalidate(6, atStart = $$props.atStart);
14116
+ if ("atEnd" in $$props) $$invalidate(7, atEnd = $$props.atEnd);
14086
14117
  };
14087
14118
 
14088
14119
  if ($$props && "$$inject" in $$props) {
@@ -14091,14 +14122,14 @@
14091
14122
 
14092
14123
  $$self.$$.update = () => {
14093
14124
  if ($$self.$$.dirty[0] & /*offset*/ 2) {
14094
- $$invalidate(5, atStart = offset === 0);
14125
+ $$invalidate(6, atStart = offset === 0);
14095
14126
  }
14096
14127
 
14097
- if ($$self.$$.dirty[0] & /*offset, pagfactor, games, scrollby*/ 12291) {
14098
- $$invalidate(6, atEnd = offset <= parseInt(pagfactor, 10) * (games.length - parseInt(scrollby, 10)) * -1);
14128
+ if ($$self.$$.dirty[0] & /*offset, gamesElementWidth*/ 65538) {
14129
+ $$invalidate(7, atEnd = offset <= gamesElementWidth);
14099
14130
  }
14100
14131
 
14101
- if ($$self.$$.dirty[0] & /*tournamenturl*/ 2048) {
14132
+ if ($$self.$$.dirty[0] & /*tournamenturl*/ 8192) {
14102
14133
  tournamenturl && fetchData();
14103
14134
  }
14104
14135
 
@@ -14107,6 +14138,10 @@
14107
14138
  // $: scrollby && pagfactor && getTotalPixels();
14108
14139
  slider && addEventListeners();
14109
14140
  }
14141
+
14142
+ if ($$self.$$.dirty[0] & /*games*/ 1) {
14143
+ games.length && recalculatePagfactor();
14144
+ }
14110
14145
  };
14111
14146
 
14112
14147
  $$invalidate(1, offset = 0);
@@ -14117,20 +14152,23 @@
14117
14152
  slider,
14118
14153
  hover,
14119
14154
  hoverIndex,
14155
+ gamesElement,
14120
14156
  atStart,
14121
14157
  atEnd,
14122
14158
  enter,
14123
14159
  leave,
14124
14160
  move,
14125
14161
  gameClicked,
14162
+ pagfactor,
14126
14163
  tournamenturl,
14127
14164
  scrollby,
14128
- pagfactor,
14129
14165
  lang,
14166
+ gamesElementWidth,
14130
14167
  click_handler,
14131
14168
  click_handler_1,
14132
14169
  mouseenter_handler,
14133
14170
  mouseleave_handler,
14171
+ div1_binding,
14134
14172
  click_handler_2,
14135
14173
  div_binding
14136
14174
  ];
@@ -14139,7 +14177,7 @@
14139
14177
  class CasinoTournamentsThumbnailGamesSlider extends SvelteElement {
14140
14178
  constructor(options) {
14141
14179
  super();
14142
- this.shadowRoot.innerHTML = `<style>*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Helvetica Neue", "Helvetica", sans-serif}.TournamentsGamesSlider{background:#0a0c19;color:#fff;display:flex;justify-content:center}.disabled{color:#3B3C47}.SliderNavButton{background:#0a0c19;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:#ef4322;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:#28a745;display:block;box-sizing:border-box;padding:0.8rem .5rem;color:#fff;text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity .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}</style>`;
14180
+ this.shadowRoot.innerHTML = `<style>*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Helvetica Neue", "Helvetica", sans-serif}.TournamentsGamesSlider{background:#0a0c19;color:#fff;display:flex;justify-content:center}.disabled{color:#3B3C47}.SliderNavButton{background:#0a0c19;border:0px;width:25px;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:#ef4322;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:#28a745;display:block;box-sizing:border-box;padding:0.8rem .5rem;color:#fff;text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity .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}</style>`;
14143
14181
 
14144
14182
  init(
14145
14183
  this,
@@ -14152,10 +14190,10 @@
14152
14190
  create_fragment$3,
14153
14191
  safe_not_equal,
14154
14192
  {
14155
- tournamenturl: 11,
14156
- scrollby: 12,
14157
- pagfactor: 13,
14158
- lang: 14
14193
+ tournamenturl: 13,
14194
+ scrollby: 14,
14195
+ pagfactor: 12,
14196
+ lang: 15
14159
14197
  },
14160
14198
  [-1, -1]
14161
14199
  );
@@ -14177,7 +14215,7 @@
14177
14215
  }
14178
14216
 
14179
14217
  get tournamenturl() {
14180
- return this.$$.ctx[11];
14218
+ return this.$$.ctx[13];
14181
14219
  }
14182
14220
 
14183
14221
  set tournamenturl(tournamenturl) {
@@ -14186,7 +14224,7 @@
14186
14224
  }
14187
14225
 
14188
14226
  get scrollby() {
14189
- return this.$$.ctx[12];
14227
+ return this.$$.ctx[14];
14190
14228
  }
14191
14229
 
14192
14230
  set scrollby(scrollby) {
@@ -14195,7 +14233,7 @@
14195
14233
  }
14196
14234
 
14197
14235
  get pagfactor() {
14198
- return this.$$.ctx[13];
14236
+ return this.$$.ctx[12];
14199
14237
  }
14200
14238
 
14201
14239
  set pagfactor(pagfactor) {
@@ -14204,7 +14242,7 @@
14204
14242
  }
14205
14243
 
14206
14244
  get lang() {
14207
- return this.$$.ctx[14];
14245
+ return this.$$.ctx[15];
14208
14246
  }
14209
14247
 
14210
14248
  set lang(lang) {
@@ -15188,7 +15226,6 @@
15188
15226
  set_custom_element_data(casino_tournaments_thumbnail_games_slider, "tournamenturl", /*tournamenturl*/ ctx[2]);
15189
15227
  set_custom_element_data(casino_tournaments_thumbnail_games_slider, "lang", /*lang*/ ctx[8]);
15190
15228
  set_custom_element_data(casino_tournaments_thumbnail_games_slider, "scrollby", "2");
15191
- set_custom_element_data(casino_tournaments_thumbnail_games_slider, "pagfactor", "130");
15192
15229
  add_location(casino_tournaments_thumbnail_games_slider, file$2, 266, 6, 8864);
15193
15230
  },
15194
15231
  m: function mount(target, anchor) {
@@ -16718,7 +16755,7 @@
16718
16755
  set_custom_element_data(casino_tournaments_list_controller, "registerevent", /*registerevent*/ ctx[7]);
16719
16756
  set_custom_element_data(casino_tournaments_list_controller, "lang", /*lang*/ ctx[3]);
16720
16757
  set_custom_element_data(casino_tournaments_list_controller, "currency", /*currency*/ ctx[10]);
16721
- add_location(casino_tournaments_list_controller, file, 193, 10, 6498);
16758
+ add_location(casino_tournaments_list_controller, file, 193, 10, 6521);
16722
16759
  },
16723
16760
  m: function mount(target, anchor) {
16724
16761
  insert_dev(target, casino_tournaments_list_controller, anchor);
@@ -16834,17 +16871,22 @@
16834
16871
  // (190:10) {:else}
16835
16872
  function create_else_block_1(ctx) {
16836
16873
  let p;
16874
+ let t_value = /*$_*/ ctx[18]("tournamentsController.noTournaments") + "";
16875
+ let t;
16837
16876
 
16838
16877
  const block = {
16839
16878
  c: function create() {
16840
16879
  p = element("p");
16841
- p.textContent = "No tournaments found";
16880
+ t = text(t_value);
16842
16881
  add_location(p, file, 190, 12, 6428);
16843
16882
  },
16844
16883
  m: function mount(target, anchor) {
16845
16884
  insert_dev(target, p, anchor);
16885
+ append_dev(p, t);
16886
+ },
16887
+ p: function update(ctx, dirty) {
16888
+ if (dirty[0] & /*$_*/ 262144 && t_value !== (t_value = /*$_*/ ctx[18]("tournamentsController.noTournaments") + "")) set_data_dev(t, t_value);
16846
16889
  },
16847
- p: noop$1,
16848
16890
  d: function destroy(detaching) {
16849
16891
  if (detaching) detach_dev(p);
16850
16892
  }
@@ -16914,11 +16956,11 @@
16914
16956
  t = text(t_value);
16915
16957
  attr_dev(button, "class", "ShowMoreButton");
16916
16958
  attr_dev(button, "title", "Show More");
16917
- add_location(button, file, 210, 12, 7117);
16959
+ add_location(button, file, 210, 12, 7140);
16918
16960
  attr_dev(div0, "class", "CenterButton");
16919
- add_location(div0, file, 209, 10, 7078);
16961
+ add_location(div0, file, 209, 10, 7101);
16920
16962
  attr_dev(div1, "class", "ThirdRow");
16921
- add_location(div1, file, 208, 8, 7045);
16963
+ add_location(div1, file, 208, 8, 7068);
16922
16964
  },
16923
16965
  m: function mount(target, anchor) {
16924
16966
  insert_dev(target, div1, anchor);