@everymatrix/casino-tournaments-controller 0.0.108 → 0.0.112

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.
@@ -12832,32 +12832,32 @@
12832
12832
  attr_dev(path0, "stroke-linejoin", "round");
12833
12833
  attr_dev(path0, "stroke-width", "2");
12834
12834
  attr_dev(path0, "d", "M15 19l-7-7 7-7");
12835
- add_location(path0, file$3, 113, 8, 3422);
12835
+ add_location(path0, file$3, 113, 8, 3428);
12836
12836
  attr_dev(svg0, "fill", "none");
12837
12837
  attr_dev(svg0, "stroke", "currentColor");
12838
12838
  attr_dev(svg0, "viewBox", "0 0 24 24");
12839
12839
  attr_dev(svg0, "xmlns", "http://www.w3.org/2000/svg");
12840
- add_location(svg0, file$3, 112, 6, 3319);
12840
+ add_location(svg0, file$3, 112, 6, 3325);
12841
12841
  attr_dev(div0, "class", "SliderNavButton");
12842
12842
  toggle_class(div0, "disabled", /*atStart*/ ctx[5]);
12843
- add_location(div0, file$3, 111, 4, 3230);
12843
+ add_location(div0, file$3, 111, 4, 3236);
12844
12844
  attr_dev(div1, "class", "items");
12845
12845
  set_style(div1, "transform", "translateX(" + /*offset*/ ctx[1] + "px)");
12846
- add_location(div1, file$3, 117, 6, 3561);
12847
- add_location(main, file$3, 116, 4, 3548);
12846
+ add_location(div1, file$3, 117, 6, 3567);
12847
+ add_location(main, file$3, 116, 4, 3554);
12848
12848
  attr_dev(path1, "stroke-linecap", "round");
12849
12849
  attr_dev(path1, "stroke-linejoin", "round");
12850
12850
  attr_dev(path1, "stroke-width", "2");
12851
12851
  attr_dev(path1, "d", "M9 5l7 7-7 7");
12852
- add_location(path1, file$3, 128, 8, 4239);
12852
+ add_location(path1, file$3, 128, 8, 4245);
12853
12853
  attr_dev(svg1, "fill", "none");
12854
12854
  attr_dev(svg1, "stroke", "currentColor");
12855
12855
  attr_dev(svg1, "viewBox", "0 0 24 24");
12856
12856
  attr_dev(svg1, "xmlns", "http://www.w3.org/2000/svg");
12857
- add_location(svg1, file$3, 127, 6, 4136);
12857
+ add_location(svg1, file$3, 127, 6, 4142);
12858
12858
  attr_dev(div2, "class", "SliderNavButton");
12859
12859
  toggle_class(div2, "disabled", /*atEnd*/ ctx[6]);
12860
- add_location(div2, file$3, 126, 4, 4050);
12860
+ add_location(div2, file$3, 126, 4, 4056);
12861
12861
  },
12862
12862
  m: function mount(target, anchor) {
12863
12863
  insert_dev(target, div0, anchor);
@@ -12981,15 +12981,15 @@
12981
12981
  ? "itemHover"
12982
12982
  : ""));
12983
12983
 
12984
- add_location(span, file$3, 120, 12, 3794);
12984
+ add_location(span, file$3, 120, 12, 3800);
12985
12985
  if (img.src !== (img_src_value = /*game*/ ctx[34].thumbnail)) attr_dev(img, "src", img_src_value);
12986
12986
  attr_dev(img, "width", "132px");
12987
12987
  attr_dev(img, "height", "100px");
12988
12988
  attr_dev(img, "alt", img_alt_value = /*game*/ ctx[34].name);
12989
12989
  attr_dev(img, "title", img_title_value = /*game*/ ctx[34].name);
12990
- add_location(img, file$3, 121, 12, 3897);
12990
+ add_location(img, file$3, 121, 12, 3903);
12991
12991
  attr_dev(div, "class", "item");
12992
- add_location(div, file$3, 119, 10, 3667);
12992
+ add_location(div, file$3, 119, 10, 3673);
12993
12993
  },
12994
12994
  m: function mount(target, anchor) {
12995
12995
  insert_dev(target, div, anchor);
@@ -13058,7 +13058,7 @@
13058
13058
  if (if_block) if_block.c();
13059
13059
  this.c = noop$1;
13060
13060
  attr_dev(div, "class", "TournamentsGamesSlider");
13061
- add_location(div, file$3, 109, 0, 3156);
13061
+ add_location(div, file$3, 109, 0, 3162);
13062
13062
  },
13063
13063
  l: function claim(nodes) {
13064
13064
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -13188,7 +13188,7 @@
13188
13188
  url.searchParams.append("expand", "games");
13189
13189
  url.searchParams.append("pagination", `games(limit=${limit},offset=${offset})`);
13190
13190
  url.searchParams.append("fields", "games(id,name,thumbnail)");
13191
- reqHeaders.append("language", lang);
13191
+ url.searchParams.append("language", lang);
13192
13192
  reqHeaders.append("platform", getDevice(userAgent));
13193
13193
  let requestOptions = { method: "GET", headers: reqHeaders };
13194
13194
 
@@ -13478,11 +13478,11 @@
13478
13478
  set_custom_element_data(casino_tournaments_thumbnail, "userenrolled", /*userenrolled*/ ctx[19]);
13479
13479
  set_custom_element_data(casino_tournaments_thumbnail, "showenrolled", /*showenrolled*/ ctx[5]);
13480
13480
  set_custom_element_data(casino_tournaments_thumbnail, "gameurl", /*gameurl*/ ctx[23]);
13481
- add_location(casino_tournaments_thumbnail, file$2, 194, 4, 5781);
13481
+ add_location(casino_tournaments_thumbnail, file$2, 194, 4, 5807);
13482
13482
  attr_dev(div0, "class", "TournamentButtons");
13483
- add_location(div0, file$2, 223, 4, 6592);
13483
+ add_location(div0, file$2, 223, 4, 6618);
13484
13484
  attr_dev(div1, "class", div1_class_value = "TournamentCard " + (/*maxwidth*/ ctx[6] ? "CardMaxWidth" : "") + (/*fullsize*/ ctx[7] ? "CardFullSize" : ""));
13485
- add_location(div1, file$2, 193, 2, 5683);
13485
+ add_location(div1, file$2, 193, 2, 5709);
13486
13486
  },
13487
13487
  m: function mount(target, anchor) {
13488
13488
  insert_dev(target, div1, anchor);
@@ -13670,29 +13670,29 @@
13670
13670
  t6 = space();
13671
13671
  div7 = element("div");
13672
13672
  attr_dev(div0, "class", "ph-picture");
13673
- add_location(div0, file$2, 179, 10, 5245);
13673
+ add_location(div0, file$2, 179, 10, 5271);
13674
13674
  attr_dev(div1, "class", "ph-col-6 big");
13675
- add_location(div1, file$2, 181, 12, 5319);
13675
+ add_location(div1, file$2, 181, 12, 5345);
13676
13676
  attr_dev(div2, "class", "ph-col-4 empty big");
13677
- add_location(div2, file$2, 182, 12, 5364);
13677
+ add_location(div2, file$2, 182, 12, 5390);
13678
13678
  attr_dev(div3, "class", "ph-col-4");
13679
- add_location(div3, file$2, 183, 12, 5415);
13679
+ add_location(div3, file$2, 183, 12, 5441);
13680
13680
  attr_dev(div4, "class", "ph-col-8 empty");
13681
- add_location(div4, file$2, 184, 12, 5456);
13681
+ add_location(div4, file$2, 184, 12, 5482);
13682
13682
  attr_dev(div5, "class", "ph-col-6");
13683
- add_location(div5, file$2, 185, 12, 5503);
13683
+ add_location(div5, file$2, 185, 12, 5529);
13684
13684
  attr_dev(div6, "class", "ph-col-6 empty");
13685
- add_location(div6, file$2, 186, 12, 5544);
13685
+ add_location(div6, file$2, 186, 12, 5570);
13686
13686
  attr_dev(div7, "class", "ph-col-12");
13687
- add_location(div7, file$2, 187, 12, 5591);
13687
+ add_location(div7, file$2, 187, 12, 5617);
13688
13688
  attr_dev(div8, "class", "ph-row");
13689
- add_location(div8, file$2, 180, 10, 5286);
13689
+ add_location(div8, file$2, 180, 10, 5312);
13690
13690
  attr_dev(div9, "class", "ph-col-12");
13691
- add_location(div9, file$2, 178, 8, 5211);
13691
+ add_location(div9, file$2, 178, 8, 5237);
13692
13692
  attr_dev(div10, "class", "ph-item");
13693
- add_location(div10, file$2, 177, 6, 5181);
13693
+ add_location(div10, file$2, 177, 6, 5207);
13694
13694
  attr_dev(div11, "class", div11_class_value = "TournamentCard " + (/*maxwidth*/ ctx[6] ? "CardMaxWidth" : "") + (/*fullsize*/ ctx[7] ? "CardFullSize" : ""));
13695
- add_location(div11, file$2, 176, 2, 5081);
13695
+ add_location(div11, file$2, 176, 2, 5107);
13696
13696
  },
13697
13697
  m: function mount(target, anchor) {
13698
13698
  insert_dev(target, div11, anchor);
@@ -13750,7 +13750,7 @@
13750
13750
  set_custom_element_data(casino_tournaments_thumbnail_duration, "status", /*status*/ ctx[16]);
13751
13751
  set_custom_element_data(casino_tournaments_thumbnail_duration, "startdate", /*startdate*/ ctx[14]);
13752
13752
  set_custom_element_data(casino_tournaments_thumbnail_duration, "enddate", /*enddate*/ ctx[15]);
13753
- add_location(casino_tournaments_thumbnail_duration, file$2, 217, 6, 6411);
13753
+ add_location(casino_tournaments_thumbnail_duration, file$2, 217, 6, 6437);
13754
13754
  },
13755
13755
  m: function mount(target, anchor) {
13756
13756
  if (if_block) if_block.m(target, anchor);
@@ -13812,7 +13812,7 @@
13812
13812
  c: function create() {
13813
13813
  casino_tournaments_thumbnail_prizes = element("casino-tournaments-thumbnail-prizes");
13814
13814
  set_custom_element_data(casino_tournaments_thumbnail_prizes, "tourid", /*tourid*/ ctx[17]);
13815
- add_location(casino_tournaments_thumbnail_prizes, file$2, 211, 8, 6229);
13815
+ add_location(casino_tournaments_thumbnail_prizes, file$2, 211, 8, 6255);
13816
13816
  },
13817
13817
  m: function mount(target, anchor) {
13818
13818
  insert_dev(target, casino_tournaments_thumbnail_prizes, anchor);
@@ -13858,7 +13858,7 @@
13858
13858
  button = element("button");
13859
13859
  button.textContent = "Details";
13860
13860
  attr_dev(button, "class", "DetailsLargeButton");
13861
- add_location(button, file$2, 250, 12, 8049);
13861
+ add_location(button, file$2, 250, 12, 8075);
13862
13862
  },
13863
13863
  m: function mount(target, anchor) {
13864
13864
  insert_dev(target, button, anchor);
@@ -13975,9 +13975,9 @@
13975
13975
  button1 = element("button");
13976
13976
  button1.textContent = "Register";
13977
13977
  attr_dev(button0, "class", "LoginButton");
13978
- add_location(button0, file$2, 225, 8, 6656);
13978
+ add_location(button0, file$2, 225, 8, 6682);
13979
13979
  attr_dev(button1, "class", "RegisterButton");
13980
- add_location(button1, file$2, 226, 8, 6739);
13980
+ add_location(button1, file$2, 226, 8, 6765);
13981
13981
  },
13982
13982
  m: function mount(target, anchor) {
13983
13983
  insert_dev(target, button0, anchor);
@@ -14025,7 +14025,7 @@
14025
14025
  button = element("button");
14026
14026
  button.textContent = "Details";
14027
14027
  attr_dev(button, "class", "DetailsButton");
14028
- add_location(button, file$2, 230, 12, 6942);
14028
+ add_location(button, file$2, 230, 12, 6968);
14029
14029
  },
14030
14030
  m: function mount(target, anchor) {
14031
14031
  insert_dev(target, button, anchor);
@@ -14075,7 +14075,7 @@
14075
14075
  if_block.c();
14076
14076
  attr_dev(button, "class", button_class_value = "JoinButton " + (/*fullsize*/ ctx[7] ? "JoinButtonFullSize" : ""));
14077
14077
  button.disabled = /*errorJoin*/ ctx[11];
14078
- add_location(button, file$2, 237, 12, 7241);
14078
+ add_location(button, file$2, 237, 12, 7267);
14079
14079
  },
14080
14080
  m: function mount(target, anchor) {
14081
14081
  insert_dev(target, button, anchor);
@@ -14189,20 +14189,20 @@
14189
14189
  t2 = text(".a{fill:#fff;}");
14190
14190
  g = svg_element("g");
14191
14191
  path = svg_element("path");
14192
- add_location(span, file$2, 243, 16, 7577);
14193
- add_location(style, file$2, 244, 105, 7700);
14194
- add_location(defs, file$2, 244, 99, 7694);
14192
+ add_location(span, file$2, 243, 16, 7603);
14193
+ add_location(style, file$2, 244, 105, 7726);
14194
+ add_location(defs, file$2, 244, 99, 7720);
14195
14195
  attr_dev(path, "class", "a");
14196
14196
  attr_dev(path, "d", "M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z");
14197
14197
  attr_dev(path, "transform", "translate(26 26) rotate(180)");
14198
- add_location(path, file$2, 244, 185, 7780);
14198
+ add_location(path, file$2, 244, 185, 7806);
14199
14199
  attr_dev(g, "transform", "translate(26 26) rotate(180)");
14200
- add_location(g, file$2, 244, 141, 7736);
14200
+ add_location(g, file$2, 244, 141, 7762);
14201
14201
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
14202
14202
  attr_dev(svg, "width", "26");
14203
14203
  attr_dev(svg, "height", "26");
14204
14204
  attr_dev(svg, "viewBox", "0 0 26 26");
14205
- add_location(svg, file$2, 244, 16, 7611);
14205
+ add_location(svg, file$2, 244, 16, 7637);
14206
14206
  },
14207
14207
  m: function mount(target, anchor) {
14208
14208
  insert_dev(target, span, anchor);
@@ -14244,9 +14244,9 @@
14244
14244
  attr_dev(circle, "cx", "20");
14245
14245
  attr_dev(circle, "cy", "20");
14246
14246
  attr_dev(circle, "r", "18");
14247
- add_location(circle, file$2, 240, 18, 7475);
14247
+ add_location(circle, file$2, 240, 18, 7501);
14248
14248
  attr_dev(svg, "class", "spinner");
14249
- add_location(svg, file$2, 239, 16, 7435);
14249
+ add_location(svg, file$2, 239, 16, 7461);
14250
14250
  },
14251
14251
  m: function mount(target, anchor) {
14252
14252
  insert_dev(target, svg, anchor);
@@ -14278,7 +14278,7 @@
14278
14278
  button.textContent = "Enrolled";
14279
14279
  attr_dev(button, "class", "EnrolledButton");
14280
14280
  button.disabled = true;
14281
- add_location(button, file$2, 234, 14, 7135);
14281
+ add_location(button, file$2, 234, 14, 7161);
14282
14282
  },
14283
14283
  m: function mount(target, anchor) {
14284
14284
  insert_dev(target, button, anchor);
@@ -14311,7 +14311,7 @@
14311
14311
  t0 = text("There was an error joining the tournament - ");
14312
14312
  t1 = text(/*errorJoinText*/ ctx[12]);
14313
14313
  attr_dev(span, "class", "ErrorText");
14314
- add_location(span, file$2, 256, 6, 8219);
14314
+ add_location(span, file$2, 256, 6, 8245);
14315
14315
  },
14316
14316
  m: function mount(target, anchor) {
14317
14317
  insert_dev(target, span, anchor);
@@ -14347,7 +14347,7 @@
14347
14347
  set_custom_element_data(casino_tournaments_thumbnail_games_slider, "tournamenturl", /*tournamenturl*/ ctx[2]);
14348
14348
  set_custom_element_data(casino_tournaments_thumbnail_games_slider, "scrollby", "2");
14349
14349
  set_custom_element_data(casino_tournaments_thumbnail_games_slider, "pagfactor", "130");
14350
- add_location(casino_tournaments_thumbnail_games_slider, file$2, 259, 6, 8357);
14350
+ add_location(casino_tournaments_thumbnail_games_slider, file$2, 259, 6, 8383);
14351
14351
  },
14352
14352
  m: function mount(target, anchor) {
14353
14353
  insert_dev(target, casino_tournaments_thumbnail_games_slider, anchor);
@@ -14525,7 +14525,7 @@
14525
14525
  let joinUrl = new URL(`${endpoint}/bonus/claim`);
14526
14526
  let reqHeaders = new Headers();
14527
14527
  let body = {};
14528
- reqHeaders.append("language", lang);
14528
+ joinUrl.searchParams.append("language", lang);
14529
14529
  reqHeaders.append("platform", getDevice(userAgent));
14530
14530
  reqHeaders.append("Content-Type", "application/json");
14531
14531
  reqHeaders.append("X-SessionID", sessionID);
@@ -14593,7 +14593,7 @@
14593
14593
  $$invalidate(9, isLoading = true);
14594
14594
  let tournamentUrl = new URL(url);
14595
14595
  let reqHeaders = new Headers();
14596
- reqHeaders.append("language", lang);
14596
+ tournamentUrl.searchParams.append("language", lang);
14597
14597
  reqHeaders.append("platform", getDevice(userAgent));
14598
14598
 
14599
14599
  if (isLoggedIn) {
@@ -15634,11 +15634,11 @@
15634
15634
  t1 = space();
15635
15635
  if (if_block2) if_block2.c();
15636
15636
  attr_dev(div0, "class", "FirstRow");
15637
- add_location(div0, file, 168, 4, 5499);
15637
+ add_location(div0, file, 168, 4, 5516);
15638
15638
  attr_dev(div1, "class", "SecondRow");
15639
- add_location(div1, file, 176, 4, 5737);
15639
+ add_location(div1, file, 176, 4, 5754);
15640
15640
  attr_dev(div2, "class", "Tournaments");
15641
- add_location(div2, file, 167, 2, 5469);
15641
+ add_location(div2, file, 167, 2, 5486);
15642
15642
  },
15643
15643
  m: function mount(target, anchor) {
15644
15644
  insert_dev(target, div2, anchor);
@@ -15722,8 +15722,8 @@
15722
15722
  t1 = space();
15723
15723
  p1 = element("p");
15724
15724
  t2 = text(/*error*/ ctx[11]);
15725
- add_location(p0, file, 164, 2, 5407);
15726
- add_location(p1, file, 165, 2, 5444);
15725
+ add_location(p0, file, 164, 2, 5424);
15726
+ add_location(p1, file, 165, 2, 5461);
15727
15727
  },
15728
15728
  m: function mount(target, anchor) {
15729
15729
  insert_dev(target, p0, anchor);
@@ -15761,7 +15761,7 @@
15761
15761
  casino_tournaments_filter_controller = element("casino-tournaments-filter-controller");
15762
15762
  set_custom_element_data(casino_tournaments_filter_controller, "filters", /*filtersArray*/ ctx[16]);
15763
15763
  set_custom_element_data(casino_tournaments_filter_controller, "activefilters", /*filters*/ ctx[4]);
15764
- add_location(casino_tournaments_filter_controller, file, 170, 8, 5556);
15764
+ add_location(casino_tournaments_filter_controller, file, 170, 8, 5573);
15765
15765
  },
15766
15766
  m: function mount(target, anchor) {
15767
15767
  insert_dev(target, casino_tournaments_filter_controller, anchor);
@@ -15803,7 +15803,7 @@
15803
15803
  set_custom_element_data(casino_tournaments_list_controller, "registerurl", /*registerurl*/ ctx[8]);
15804
15804
  set_custom_element_data(casino_tournaments_list_controller, "registerevent", /*registerevent*/ ctx[6]);
15805
15805
  set_custom_element_data(casino_tournaments_list_controller, "currency", /*currency*/ ctx[9]);
15806
- add_location(casino_tournaments_list_controller, file, 184, 8, 5952);
15806
+ add_location(casino_tournaments_list_controller, file, 184, 8, 5969);
15807
15807
  },
15808
15808
  m: function mount(target, anchor) {
15809
15809
  insert_dev(target, casino_tournaments_list_controller, anchor);
@@ -15918,7 +15918,7 @@
15918
15918
  c: function create() {
15919
15919
  p = element("p");
15920
15920
  p.textContent = "No tournaments found";
15921
- add_location(p, file, 181, 10, 5888);
15921
+ add_location(p, file, 181, 10, 5905);
15922
15922
  },
15923
15923
  m: function mount(target, anchor) {
15924
15924
  insert_dev(target, p, anchor);
@@ -15947,7 +15947,7 @@
15947
15947
  c: function create() {
15948
15948
  p = element("p");
15949
15949
  p.textContent = "Loading, please wait ...";
15950
- add_location(p, file, 179, 10, 5830);
15950
+ add_location(p, file, 179, 10, 5847);
15951
15951
  },
15952
15952
  m: function mount(target, anchor) {
15953
15953
  insert_dev(target, p, anchor);
@@ -15984,11 +15984,11 @@
15984
15984
  button.textContent = "Show more";
15985
15985
  attr_dev(button, "class", "ShowMoreButton");
15986
15986
  attr_dev(button, "title", "Show More");
15987
- add_location(button, file, 200, 10, 6460);
15987
+ add_location(button, file, 200, 10, 6477);
15988
15988
  attr_dev(div0, "class", "CenterButton");
15989
- add_location(div0, file, 199, 8, 6423);
15989
+ add_location(div0, file, 199, 8, 6440);
15990
15990
  attr_dev(div1, "class", "ThirdRow");
15991
- add_location(div1, file, 198, 6, 6392);
15991
+ add_location(div1, file, 198, 6, 6409);
15992
15992
  },
15993
15993
  m: function mount(target, anchor) {
15994
15994
  insert_dev(target, div1, anchor);
@@ -16150,6 +16150,7 @@
16150
16150
  tournamentsUrl.searchParams.append("pagination", `offset=${offset},limit=${limit}`);
16151
16151
  tournamentsUrl.searchParams.append("sortField", "StartTime");
16152
16152
  tournamentsUrl.searchParams.append("sortOrder", "desc");
16153
+ tournamentsUrl.searchParams.append("language", lang);
16153
16154
 
16154
16155
  if (activeFilters.length > 0 && activeFilters[0] != "All") {
16155
16156
  let state = activeFilters.map(item => matchStatus(item)).join("|");
@@ -16158,7 +16159,6 @@
16158
16159
  tournamentsUrl.searchParams.append("filter", `StartTimeAfter=${lastMonthDate}`);
16159
16160
  }
16160
16161
 
16161
- reqHeaders.append("language", lang);
16162
16162
  reqHeaders.append("platform", getDevice(userAgent));
16163
16163
  reqHeaders.append("sortType", sortByStatus);
16164
16164