@everymatrix/casino-tournaments-controller 0.0.102 → 0.0.106

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.
@@ -13430,7 +13430,7 @@
13430
13430
  /* ../casino-tournaments-thumbnail-controller/src/CasinoTournamentsThumbnailController.svelte generated by Svelte v3.37.0 */
13431
13431
  const file$2 = "../casino-tournaments-thumbnail-controller/src/CasinoTournamentsThumbnailController.svelte";
13432
13432
 
13433
- // (192:0) {:else}
13433
+ // (193:0) {:else}
13434
13434
  function create_else_block$2(ctx) {
13435
13435
  let div1;
13436
13436
  let casino_tournaments_thumbnail;
@@ -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, 193, 4, 5762);
13481
+ add_location(casino_tournaments_thumbnail, file$2, 194, 4, 5781);
13482
13482
  attr_dev(div0, "class", "TournamentButtons");
13483
- add_location(div0, file$2, 222, 4, 6573);
13483
+ add_location(div0, file$2, 223, 4, 6592);
13484
13484
  attr_dev(div1, "class", div1_class_value = "TournamentCard " + (/*maxwidth*/ ctx[6] ? "CardMaxWidth" : "") + (/*fullsize*/ ctx[7] ? "CardFullSize" : ""));
13485
- add_location(div1, file$2, 192, 2, 5664);
13485
+ add_location(div1, file$2, 193, 2, 5683);
13486
13486
  },
13487
13487
  m: function mount(target, anchor) {
13488
13488
  insert_dev(target, div1, anchor);
@@ -13618,14 +13618,14 @@
13618
13618
  block,
13619
13619
  id: create_else_block$2.name,
13620
13620
  type: "else",
13621
- source: "(192:0) {:else}",
13621
+ source: "(193:0) {:else}",
13622
13622
  ctx
13623
13623
  });
13624
13624
 
13625
13625
  return block;
13626
13626
  }
13627
13627
 
13628
- // (175:0) {#if isLoading}
13628
+ // (176:0) {#if isLoading}
13629
13629
  function create_if_block$2(ctx) {
13630
13630
  let div11;
13631
13631
  let div10;
@@ -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, 178, 10, 5226);
13673
+ add_location(div0, file$2, 179, 10, 5245);
13674
13674
  attr_dev(div1, "class", "ph-col-6 big");
13675
- add_location(div1, file$2, 180, 12, 5300);
13675
+ add_location(div1, file$2, 181, 12, 5319);
13676
13676
  attr_dev(div2, "class", "ph-col-4 empty big");
13677
- add_location(div2, file$2, 181, 12, 5345);
13677
+ add_location(div2, file$2, 182, 12, 5364);
13678
13678
  attr_dev(div3, "class", "ph-col-4");
13679
- add_location(div3, file$2, 182, 12, 5396);
13679
+ add_location(div3, file$2, 183, 12, 5415);
13680
13680
  attr_dev(div4, "class", "ph-col-8 empty");
13681
- add_location(div4, file$2, 183, 12, 5437);
13681
+ add_location(div4, file$2, 184, 12, 5456);
13682
13682
  attr_dev(div5, "class", "ph-col-6");
13683
- add_location(div5, file$2, 184, 12, 5484);
13683
+ add_location(div5, file$2, 185, 12, 5503);
13684
13684
  attr_dev(div6, "class", "ph-col-6 empty");
13685
- add_location(div6, file$2, 185, 12, 5525);
13685
+ add_location(div6, file$2, 186, 12, 5544);
13686
13686
  attr_dev(div7, "class", "ph-col-12");
13687
- add_location(div7, file$2, 186, 12, 5572);
13687
+ add_location(div7, file$2, 187, 12, 5591);
13688
13688
  attr_dev(div8, "class", "ph-row");
13689
- add_location(div8, file$2, 179, 10, 5267);
13689
+ add_location(div8, file$2, 180, 10, 5286);
13690
13690
  attr_dev(div9, "class", "ph-col-12");
13691
- add_location(div9, file$2, 177, 8, 5192);
13691
+ add_location(div9, file$2, 178, 8, 5211);
13692
13692
  attr_dev(div10, "class", "ph-item");
13693
- add_location(div10, file$2, 176, 6, 5162);
13693
+ add_location(div10, file$2, 177, 6, 5181);
13694
13694
  attr_dev(div11, "class", div11_class_value = "TournamentCard " + (/*maxwidth*/ ctx[6] ? "CardMaxWidth" : "") + (/*fullsize*/ ctx[7] ? "CardFullSize" : ""));
13695
- add_location(div11, file$2, 175, 2, 5062);
13695
+ add_location(div11, file$2, 176, 2, 5081);
13696
13696
  },
13697
13697
  m: function mount(target, anchor) {
13698
13698
  insert_dev(target, div11, anchor);
@@ -13729,14 +13729,14 @@
13729
13729
  block,
13730
13730
  id: create_if_block$2.name,
13731
13731
  type: "if",
13732
- source: "(175:0) {#if isLoading}",
13732
+ source: "(176:0) {#if isLoading}",
13733
13733
  ctx
13734
13734
  });
13735
13735
 
13736
13736
  return block;
13737
13737
  }
13738
13738
 
13739
- // (209:4) {#if isLoggedIn}
13739
+ // (210:4) {#if isLoggedIn}
13740
13740
  function create_if_block_10(ctx) {
13741
13741
  let t;
13742
13742
  let casino_tournaments_thumbnail_duration;
@@ -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, 216, 6, 6392);
13753
+ add_location(casino_tournaments_thumbnail_duration, file$2, 217, 6, 6411);
13754
13754
  },
13755
13755
  m: function mount(target, anchor) {
13756
13756
  if (if_block) if_block.m(target, anchor);
@@ -13794,14 +13794,14 @@
13794
13794
  block,
13795
13795
  id: create_if_block_10.name,
13796
13796
  type: "if",
13797
- source: "(209:4) {#if isLoggedIn}",
13797
+ source: "(210:4) {#if isLoggedIn}",
13798
13798
  ctx
13799
13799
  });
13800
13800
 
13801
13801
  return block;
13802
13802
  }
13803
13803
 
13804
- // (210:6) {#if tourid}
13804
+ // (211:6) {#if tourid}
13805
13805
  function create_if_block_11(ctx) {
13806
13806
  let casino_tournaments_thumbnail_prizes;
13807
13807
  let sendTournamentPrizes_action;
@@ -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, 210, 8, 6210);
13815
+ add_location(casino_tournaments_thumbnail_prizes, file$2, 211, 8, 6229);
13816
13816
  },
13817
13817
  m: function mount(target, anchor) {
13818
13818
  insert_dev(target, casino_tournaments_thumbnail_prizes, anchor);
@@ -13840,14 +13840,14 @@
13840
13840
  block,
13841
13841
  id: create_if_block_11.name,
13842
13842
  type: "if",
13843
- source: "(210:6) {#if tourid}",
13843
+ source: "(211:6) {#if tourid}",
13844
13844
  ctx
13845
13845
  });
13846
13846
 
13847
13847
  return block;
13848
13848
  }
13849
13849
 
13850
- // (249:10) {#if showdetails == 'true'}
13850
+ // (250:10) {#if showdetails == 'true'}
13851
13851
  function create_if_block_9(ctx) {
13852
13852
  let button;
13853
13853
  let mounted;
@@ -13858,13 +13858,13 @@
13858
13858
  button = element("button");
13859
13859
  button.textContent = "Details";
13860
13860
  attr_dev(button, "class", "DetailsLargeButton");
13861
- add_location(button, file$2, 249, 12, 8030);
13861
+ add_location(button, file$2, 250, 12, 8049);
13862
13862
  },
13863
13863
  m: function mount(target, anchor) {
13864
13864
  insert_dev(target, button, anchor);
13865
13865
 
13866
13866
  if (!mounted) {
13867
- dispose = listen_dev(button, "click", /*click_handler_4*/ ctx[39], false, false, false);
13867
+ dispose = listen_dev(button, "click", /*click_handler_4*/ ctx[40], false, false, false);
13868
13868
  mounted = true;
13869
13869
  }
13870
13870
  },
@@ -13880,14 +13880,14 @@
13880
13880
  block,
13881
13881
  id: create_if_block_9.name,
13882
13882
  type: "if",
13883
- source: "(249:10) {#if showdetails == 'true'}",
13883
+ source: "(250:10) {#if showdetails == 'true'}",
13884
13884
  ctx
13885
13885
  });
13886
13886
 
13887
13887
  return block;
13888
13888
  }
13889
13889
 
13890
- // (228:8) {#if status != 'Closed' && status != 'Closing'}
13890
+ // (229:8) {#if status != 'Closed' && status != 'Closing'}
13891
13891
  function create_if_block_4$1(ctx) {
13892
13892
  let t;
13893
13893
  let if_block1_anchor;
@@ -13952,14 +13952,14 @@
13952
13952
  block,
13953
13953
  id: create_if_block_4$1.name,
13954
13954
  type: "if",
13955
- source: "(228:8) {#if status != 'Closed' && status != 'Closing'}",
13955
+ source: "(229:8) {#if status != 'Closed' && status != 'Closing'}",
13956
13956
  ctx
13957
13957
  });
13958
13958
 
13959
13959
  return block;
13960
13960
  }
13961
13961
 
13962
- // (224:6) {#if !isLoggedIn}
13962
+ // (225:6) {#if !isLoggedIn}
13963
13963
  function create_if_block_3$1(ctx) {
13964
13964
  let button0;
13965
13965
  let t1;
@@ -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, 224, 8, 6637);
13978
+ add_location(button0, file$2, 225, 8, 6656);
13979
13979
  attr_dev(button1, "class", "RegisterButton");
13980
- add_location(button1, file$2, 225, 8, 6720);
13980
+ add_location(button1, file$2, 226, 8, 6739);
13981
13981
  },
13982
13982
  m: function mount(target, anchor) {
13983
13983
  insert_dev(target, button0, anchor);
@@ -13986,8 +13986,8 @@
13986
13986
 
13987
13987
  if (!mounted) {
13988
13988
  dispose = [
13989
- listen_dev(button0, "click", /*click_handler*/ ctx[35], false, false, false),
13990
- listen_dev(button1, "click", /*click_handler_1*/ ctx[36], false, false, false)
13989
+ listen_dev(button0, "click", /*click_handler*/ ctx[36], false, false, false),
13990
+ listen_dev(button1, "click", /*click_handler_1*/ ctx[37], false, false, false)
13991
13991
  ];
13992
13992
 
13993
13993
  mounted = true;
@@ -14007,14 +14007,14 @@
14007
14007
  block,
14008
14008
  id: create_if_block_3$1.name,
14009
14009
  type: "if",
14010
- source: "(224:6) {#if !isLoggedIn}",
14010
+ source: "(225:6) {#if !isLoggedIn}",
14011
14011
  ctx
14012
14012
  });
14013
14013
 
14014
14014
  return block;
14015
14015
  }
14016
14016
 
14017
- // (229:10) {#if showdetails == 'true'}
14017
+ // (230:10) {#if showdetails == 'true'}
14018
14018
  function create_if_block_8(ctx) {
14019
14019
  let button;
14020
14020
  let mounted;
@@ -14025,13 +14025,13 @@
14025
14025
  button = element("button");
14026
14026
  button.textContent = "Details";
14027
14027
  attr_dev(button, "class", "DetailsButton");
14028
- add_location(button, file$2, 229, 12, 6923);
14028
+ add_location(button, file$2, 230, 12, 6942);
14029
14029
  },
14030
14030
  m: function mount(target, anchor) {
14031
14031
  insert_dev(target, button, anchor);
14032
14032
 
14033
14033
  if (!mounted) {
14034
- dispose = listen_dev(button, "click", /*click_handler_2*/ ctx[37], false, false, false);
14034
+ dispose = listen_dev(button, "click", /*click_handler_2*/ ctx[38], false, false, false);
14035
14035
  mounted = true;
14036
14036
  }
14037
14037
  },
@@ -14047,14 +14047,14 @@
14047
14047
  block,
14048
14048
  id: create_if_block_8.name,
14049
14049
  type: "if",
14050
- source: "(229:10) {#if showdetails == 'true'}",
14050
+ source: "(230:10) {#if showdetails == 'true'}",
14051
14051
  ctx
14052
14052
  });
14053
14053
 
14054
14054
  return block;
14055
14055
  }
14056
14056
 
14057
- // (236:10) {:else}
14057
+ // (237:10) {:else}
14058
14058
  function create_else_block_1$1(ctx) {
14059
14059
  let button;
14060
14060
  let button_class_value;
@@ -14075,14 +14075,14 @@
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, 236, 12, 7222);
14078
+ add_location(button, file$2, 237, 12, 7241);
14079
14079
  },
14080
14080
  m: function mount(target, anchor) {
14081
14081
  insert_dev(target, button, anchor);
14082
14082
  if_block.m(button, null);
14083
14083
 
14084
14084
  if (!mounted) {
14085
- dispose = listen_dev(button, "click", /*click_handler_3*/ ctx[38], false, false, false);
14085
+ dispose = listen_dev(button, "click", /*click_handler_3*/ ctx[39], false, false, false);
14086
14086
  mounted = true;
14087
14087
  }
14088
14088
  },
@@ -14117,14 +14117,14 @@
14117
14117
  block,
14118
14118
  id: create_else_block_1$1.name,
14119
14119
  type: "else",
14120
- source: "(236:10) {:else}",
14120
+ source: "(237:10) {:else}",
14121
14121
  ctx
14122
14122
  });
14123
14123
 
14124
14124
  return block;
14125
14125
  }
14126
14126
 
14127
- // (232:10) {#if userenrolled == true}
14127
+ // (233:10) {#if userenrolled == true}
14128
14128
  function create_if_block_5(ctx) {
14129
14129
  let if_block_anchor;
14130
14130
  let if_block = /*showdetails*/ ctx[3] == "true" && create_if_block_6(ctx);
@@ -14160,14 +14160,14 @@
14160
14160
  block,
14161
14161
  id: create_if_block_5.name,
14162
14162
  type: "if",
14163
- source: "(232:10) {#if userenrolled == true}",
14163
+ source: "(233:10) {#if userenrolled == true}",
14164
14164
  ctx
14165
14165
  });
14166
14166
 
14167
14167
  return block;
14168
14168
  }
14169
14169
 
14170
- // (242:14) {:else}
14170
+ // (243:14) {:else}
14171
14171
  function create_else_block_2$1(ctx) {
14172
14172
  let span;
14173
14173
  let t1;
@@ -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, 242, 16, 7558);
14193
- add_location(style, file$2, 243, 105, 7681);
14194
- add_location(defs, file$2, 243, 99, 7675);
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);
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, 243, 185, 7761);
14198
+ add_location(path, file$2, 244, 185, 7780);
14199
14199
  attr_dev(g, "transform", "translate(26 26) rotate(180)");
14200
- add_location(g, file$2, 243, 141, 7717);
14200
+ add_location(g, file$2, 244, 141, 7736);
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, 243, 16, 7592);
14205
+ add_location(svg, file$2, 244, 16, 7611);
14206
14206
  },
14207
14207
  m: function mount(target, anchor) {
14208
14208
  insert_dev(target, span, anchor);
@@ -14225,14 +14225,14 @@
14225
14225
  block,
14226
14226
  id: create_else_block_2$1.name,
14227
14227
  type: "else",
14228
- source: "(242:14) {:else}",
14228
+ source: "(243:14) {:else}",
14229
14229
  ctx
14230
14230
  });
14231
14231
 
14232
14232
  return block;
14233
14233
  }
14234
14234
 
14235
- // (238:14) {#if joinButtonLoading == true}
14235
+ // (239:14) {#if joinButtonLoading == true}
14236
14236
  function create_if_block_7(ctx) {
14237
14237
  let svg;
14238
14238
  let circle;
@@ -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, 239, 18, 7456);
14247
+ add_location(circle, file$2, 240, 18, 7475);
14248
14248
  attr_dev(svg, "class", "spinner");
14249
- add_location(svg, file$2, 238, 16, 7416);
14249
+ add_location(svg, file$2, 239, 16, 7435);
14250
14250
  },
14251
14251
  m: function mount(target, anchor) {
14252
14252
  insert_dev(target, svg, anchor);
@@ -14261,14 +14261,14 @@
14261
14261
  block,
14262
14262
  id: create_if_block_7.name,
14263
14263
  type: "if",
14264
- source: "(238:14) {#if joinButtonLoading == true}",
14264
+ source: "(239:14) {#if joinButtonLoading == true}",
14265
14265
  ctx
14266
14266
  });
14267
14267
 
14268
14268
  return block;
14269
14269
  }
14270
14270
 
14271
- // (233:12) {#if showdetails == 'true'}
14271
+ // (234:12) {#if showdetails == 'true'}
14272
14272
  function create_if_block_6(ctx) {
14273
14273
  let button;
14274
14274
 
@@ -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, 233, 14, 7116);
14281
+ add_location(button, file$2, 234, 14, 7135);
14282
14282
  },
14283
14283
  m: function mount(target, anchor) {
14284
14284
  insert_dev(target, button, anchor);
@@ -14292,14 +14292,14 @@
14292
14292
  block,
14293
14293
  id: create_if_block_6.name,
14294
14294
  type: "if",
14295
- source: "(233:12) {#if showdetails == 'true'}",
14295
+ source: "(234:12) {#if showdetails == 'true'}",
14296
14296
  ctx
14297
14297
  });
14298
14298
 
14299
14299
  return block;
14300
14300
  }
14301
14301
 
14302
- // (255:4) {#if errorJoin}
14302
+ // (256:4) {#if errorJoin}
14303
14303
  function create_if_block_2$1(ctx) {
14304
14304
  let span;
14305
14305
  let t0;
@@ -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, 255, 6, 8200);
14314
+ add_location(span, file$2, 256, 6, 8219);
14315
14315
  },
14316
14316
  m: function mount(target, anchor) {
14317
14317
  insert_dev(target, span, anchor);
@@ -14330,14 +14330,14 @@
14330
14330
  block,
14331
14331
  id: create_if_block_2$1.name,
14332
14332
  type: "if",
14333
- source: "(255:4) {#if errorJoin}",
14333
+ source: "(256:4) {#if errorJoin}",
14334
14334
  ctx
14335
14335
  });
14336
14336
 
14337
14337
  return block;
14338
14338
  }
14339
14339
 
14340
- // (258:4) {#if showslider == "true"}
14340
+ // (259:4) {#if showslider == "true"}
14341
14341
  function create_if_block_1$1(ctx) {
14342
14342
  let casino_tournaments_thumbnail_games_slider;
14343
14343
 
@@ -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, 258, 6, 8338);
14350
+ add_location(casino_tournaments_thumbnail_games_slider, file$2, 259, 6, 8357);
14351
14351
  },
14352
14352
  m: function mount(target, anchor) {
14353
14353
  insert_dev(target, casino_tournaments_thumbnail_games_slider, anchor);
@@ -14366,7 +14366,7 @@
14366
14366
  block,
14367
14367
  id: create_if_block_1$1.name,
14368
14368
  type: "if",
14369
- source: "(258:4) {#if showslider == \\\"true\\\"}",
14369
+ source: "(259:4) {#if showslider == \\\"true\\\"}",
14370
14370
  ctx
14371
14371
  });
14372
14372
 
@@ -14446,6 +14446,7 @@
14446
14446
  let { registerevent = "" } = $$props;
14447
14447
  let { loginurl = "" } = $$props;
14448
14448
  let { registerurl = "" } = $$props;
14449
+ let { currency = "" } = $$props;
14449
14450
 
14450
14451
  // Variables of topics for communication
14451
14452
  let sessionTopic;
@@ -14533,7 +14534,7 @@
14533
14534
  body = {
14534
14535
  language: "en",
14535
14536
  bonusCode: wallet[0].code,
14536
- currency: "EUR"
14537
+ currency
14537
14538
  };
14538
14539
  }
14539
14540
 
@@ -14644,7 +14645,8 @@
14644
14645
  "loginevent",
14645
14646
  "registerevent",
14646
14647
  "loginurl",
14647
- "registerurl"
14648
+ "registerurl",
14649
+ "currency"
14648
14650
  ];
14649
14651
 
14650
14652
  Object.keys($$props).forEach(key => {
@@ -14672,6 +14674,7 @@
14672
14674
  if ("registerevent" in $$props) $$invalidate(32, registerevent = $$props.registerevent);
14673
14675
  if ("loginurl" in $$props) $$invalidate(33, loginurl = $$props.loginurl);
14674
14676
  if ("registerurl" in $$props) $$invalidate(34, registerurl = $$props.registerurl);
14677
+ if ("currency" in $$props) $$invalidate(35, currency = $$props.currency);
14675
14678
  };
14676
14679
 
14677
14680
  $$self.$capture_state = () => ({
@@ -14692,6 +14695,7 @@
14692
14695
  registerevent,
14693
14696
  loginurl,
14694
14697
  registerurl,
14698
+ currency,
14695
14699
  sessionTopic,
14696
14700
  isLoggedIn,
14697
14701
  sessionID,
@@ -14740,6 +14744,7 @@
14740
14744
  if ("registerevent" in $$props) $$invalidate(32, registerevent = $$props.registerevent);
14741
14745
  if ("loginurl" in $$props) $$invalidate(33, loginurl = $$props.loginurl);
14742
14746
  if ("registerurl" in $$props) $$invalidate(34, registerurl = $$props.registerurl);
14747
+ if ("currency" in $$props) $$invalidate(35, currency = $$props.currency);
14743
14748
  if ("sessionTopic" in $$props) sessionTopic = $$props.sessionTopic;
14744
14749
  if ("isLoggedIn" in $$props) $$invalidate(8, isLoggedIn = $$props.isLoggedIn);
14745
14750
  if ("sessionID" in $$props) sessionID = $$props.sessionID;
@@ -14813,6 +14818,7 @@
14813
14818
  registerevent,
14814
14819
  loginurl,
14815
14820
  registerurl,
14821
+ currency,
14816
14822
  click_handler,
14817
14823
  click_handler_1,
14818
14824
  click_handler_2,
@@ -14850,7 +14856,8 @@
14850
14856
  loginevent: 31,
14851
14857
  registerevent: 32,
14852
14858
  loginurl: 33,
14853
- registerurl: 34
14859
+ registerurl: 34,
14860
+ currency: 35
14854
14861
  },
14855
14862
  [-1, -1]
14856
14863
  );
@@ -14882,7 +14889,8 @@
14882
14889
  "loginevent",
14883
14890
  "registerevent",
14884
14891
  "loginurl",
14885
- "registerurl"
14892
+ "registerurl",
14893
+ "currency"
14886
14894
  ];
14887
14895
  }
14888
14896
 
@@ -15011,6 +15019,15 @@
15011
15019
  this.$set({ registerurl });
15012
15020
  flush();
15013
15021
  }
15022
+
15023
+ get currency() {
15024
+ return this.$$.ctx[35];
15025
+ }
15026
+
15027
+ set currency(currency) {
15028
+ this.$set({ currency });
15029
+ flush();
15030
+ }
15014
15031
  }
15015
15032
 
15016
15033
  !customElements.get('casino-tournaments-thumbnail-controller') && customElements.define('casino-tournaments-thumbnail-controller', CasinoTournamentsThumbnailController);
@@ -15020,15 +15037,15 @@
15020
15037
 
15021
15038
  function get_each_context(ctx, list, i) {
15022
15039
  const child_ctx = ctx.slice();
15023
- child_ctx[17] = list[i];
15024
- child_ctx[19] = i;
15040
+ child_ctx[18] = list[i];
15041
+ child_ctx[20] = i;
15025
15042
  return child_ctx;
15026
15043
  }
15027
15044
 
15028
- // (77:2) {#if !isLoading}
15045
+ // (62:2) {#if !isLoading}
15029
15046
  function create_if_block$1(ctx) {
15030
15047
  let each_1_anchor;
15031
- let each_value = /*tournamentList*/ ctx[8];
15048
+ let each_value = /*tournamentList*/ ctx[9];
15032
15049
  validate_each_argument(each_value);
15033
15050
  let each_blocks = [];
15034
15051
 
@@ -15066,8 +15083,8 @@
15066
15083
  }
15067
15084
  },
15068
15085
  p: function update(ctx, dirty) {
15069
- if (dirty & /*session, userid, endpoint, tournamentList, loginurl, loginevent, registerurl, registerevent*/ 383) {
15070
- each_value = /*tournamentList*/ ctx[8];
15086
+ if (dirty & /*session, userid, endpoint, tournamentList, loginurl, loginevent, registerurl, registerevent, currency*/ 767) {
15087
+ each_value = /*tournamentList*/ ctx[9];
15071
15088
  validate_each_argument(each_value);
15072
15089
  let i;
15073
15090
 
@@ -15112,14 +15129,14 @@
15112
15129
  block,
15113
15130
  id: create_if_block$1.name,
15114
15131
  type: "if",
15115
- source: "(77:2) {#if !isLoading}",
15132
+ source: "(62:2) {#if !isLoading}",
15116
15133
  ctx
15117
15134
  });
15118
15135
 
15119
15136
  return block;
15120
15137
  }
15121
15138
 
15122
- // (92:4) {:else}
15139
+ // (78:4) {:else}
15123
15140
  function create_else_block$1(ctx) {
15124
15141
  let p;
15125
15142
 
@@ -15127,7 +15144,7 @@
15127
15144
  c: function create() {
15128
15145
  p = element("p");
15129
15146
  p.textContent = "Nothing to show here";
15130
- add_location(p, file$1, 92, 6, 2914);
15147
+ add_location(p, file$1, 78, 6, 2166);
15131
15148
  },
15132
15149
  m: function mount(target, anchor) {
15133
15150
  insert_dev(target, p, anchor);
@@ -15141,14 +15158,14 @@
15141
15158
  block,
15142
15159
  id: create_else_block$1.name,
15143
15160
  type: "else",
15144
- source: "(92:4) {:else}",
15161
+ source: "(78:4) {:else}",
15145
15162
  ctx
15146
15163
  });
15147
15164
 
15148
15165
  return block;
15149
15166
  }
15150
15167
 
15151
- // (78:4) {#each tournamentList as tournament, i}
15168
+ // (63:4) {#each tournamentList as tournament, i}
15152
15169
  function create_each_block(ctx) {
15153
15170
  let casino_tournaments_thumbnail_controller;
15154
15171
  let casino_tournaments_thumbnail_controller_tournamenturl_value;
@@ -15162,13 +15179,14 @@
15162
15179
  set_custom_element_data(casino_tournaments_thumbnail_controller, "endpoint", /*endpoint*/ ctx[2]);
15163
15180
  set_custom_element_data(casino_tournaments_thumbnail_controller, "showdetails", "true");
15164
15181
  set_custom_element_data(casino_tournaments_thumbnail_controller, "showslider", "false");
15165
- set_custom_element_data(casino_tournaments_thumbnail_controller, "tournamenturl", casino_tournaments_thumbnail_controller_tournamenturl_value = /*tournament*/ ctx[17].href);
15166
- set_custom_element_data(casino_tournaments_thumbnail_controller, "maxwidth", casino_tournaments_thumbnail_controller_maxwidth_value = /*tournamentList*/ ctx[8].length <= 2);
15182
+ set_custom_element_data(casino_tournaments_thumbnail_controller, "tournamenturl", casino_tournaments_thumbnail_controller_tournamenturl_value = /*tournament*/ ctx[18].href);
15183
+ set_custom_element_data(casino_tournaments_thumbnail_controller, "maxwidth", casino_tournaments_thumbnail_controller_maxwidth_value = /*tournamentList*/ ctx[9].length <= 2);
15167
15184
  set_custom_element_data(casino_tournaments_thumbnail_controller, "loginurl", /*loginurl*/ ctx[5]);
15168
15185
  set_custom_element_data(casino_tournaments_thumbnail_controller, "loginevent", /*loginevent*/ ctx[3]);
15169
15186
  set_custom_element_data(casino_tournaments_thumbnail_controller, "registerurl", /*registerurl*/ ctx[6]);
15170
15187
  set_custom_element_data(casino_tournaments_thumbnail_controller, "registerevent", /*registerevent*/ ctx[4]);
15171
- add_location(casino_tournaments_thumbnail_controller, file$1, 78, 6, 2455);
15188
+ set_custom_element_data(casino_tournaments_thumbnail_controller, "currency", /*currency*/ ctx[7]);
15189
+ add_location(casino_tournaments_thumbnail_controller, file$1, 63, 6, 1688);
15172
15190
  },
15173
15191
  m: function mount(target, anchor) {
15174
15192
  insert_dev(target, casino_tournaments_thumbnail_controller, anchor);
@@ -15186,11 +15204,11 @@
15186
15204
  set_custom_element_data(casino_tournaments_thumbnail_controller, "endpoint", /*endpoint*/ ctx[2]);
15187
15205
  }
15188
15206
 
15189
- if (dirty & /*tournamentList*/ 256 && casino_tournaments_thumbnail_controller_tournamenturl_value !== (casino_tournaments_thumbnail_controller_tournamenturl_value = /*tournament*/ ctx[17].href)) {
15207
+ if (dirty & /*tournamentList*/ 512 && casino_tournaments_thumbnail_controller_tournamenturl_value !== (casino_tournaments_thumbnail_controller_tournamenturl_value = /*tournament*/ ctx[18].href)) {
15190
15208
  set_custom_element_data(casino_tournaments_thumbnail_controller, "tournamenturl", casino_tournaments_thumbnail_controller_tournamenturl_value);
15191
15209
  }
15192
15210
 
15193
- if (dirty & /*tournamentList*/ 256 && casino_tournaments_thumbnail_controller_maxwidth_value !== (casino_tournaments_thumbnail_controller_maxwidth_value = /*tournamentList*/ ctx[8].length <= 2)) {
15211
+ if (dirty & /*tournamentList*/ 512 && casino_tournaments_thumbnail_controller_maxwidth_value !== (casino_tournaments_thumbnail_controller_maxwidth_value = /*tournamentList*/ ctx[9].length <= 2)) {
15194
15212
  set_custom_element_data(casino_tournaments_thumbnail_controller, "maxwidth", casino_tournaments_thumbnail_controller_maxwidth_value);
15195
15213
  }
15196
15214
 
@@ -15209,6 +15227,10 @@
15209
15227
  if (dirty & /*registerevent*/ 16) {
15210
15228
  set_custom_element_data(casino_tournaments_thumbnail_controller, "registerevent", /*registerevent*/ ctx[4]);
15211
15229
  }
15230
+
15231
+ if (dirty & /*currency*/ 128) {
15232
+ set_custom_element_data(casino_tournaments_thumbnail_controller, "currency", /*currency*/ ctx[7]);
15233
+ }
15212
15234
  },
15213
15235
  d: function destroy(detaching) {
15214
15236
  if (detaching) detach_dev(casino_tournaments_thumbnail_controller);
@@ -15219,7 +15241,7 @@
15219
15241
  block,
15220
15242
  id: create_each_block.name,
15221
15243
  type: "each",
15222
- source: "(78:4) {#each tournamentList as tournament, i}",
15244
+ source: "(63:4) {#each tournamentList as tournament, i}",
15223
15245
  ctx
15224
15246
  });
15225
15247
 
@@ -15228,7 +15250,7 @@
15228
15250
 
15229
15251
  function create_fragment$1(ctx) {
15230
15252
  let div;
15231
- let if_block = !/*isLoading*/ ctx[7] && create_if_block$1(ctx);
15253
+ let if_block = !/*isLoading*/ ctx[8] && create_if_block$1(ctx);
15232
15254
 
15233
15255
  const block = {
15234
15256
  c: function create() {
@@ -15236,7 +15258,7 @@
15236
15258
  if (if_block) if_block.c();
15237
15259
  this.c = noop$1;
15238
15260
  attr_dev(div, "class", "TournamentList");
15239
- add_location(div, file$1, 75, 0, 2357);
15261
+ add_location(div, file$1, 60, 0, 1590);
15240
15262
  },
15241
15263
  l: function claim(nodes) {
15242
15264
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -15246,7 +15268,7 @@
15246
15268
  if (if_block) if_block.m(div, null);
15247
15269
  },
15248
15270
  p: function update(ctx, [dirty]) {
15249
- if (!/*isLoading*/ ctx[7]) {
15271
+ if (!/*isLoading*/ ctx[8]) {
15250
15272
  if (if_block) {
15251
15273
  if_block.p(ctx, dirty);
15252
15274
  } else {
@@ -15289,6 +15311,7 @@
15289
15311
  let { registerevent = "" } = $$props;
15290
15312
  let { loginurl = "" } = $$props;
15291
15313
  let { registerurl = "" } = $$props;
15314
+ let { currency = "" } = $$props;
15292
15315
  let isLoading = false;
15293
15316
  let currentDate = moment(); // current day
15294
15317
 
@@ -15301,34 +15324,19 @@
15301
15324
 
15302
15325
  const messageHandler = e => {
15303
15326
  if (e.data && e.data.type == "TournamentList") {
15304
- $$invalidate(8, tournamentList = []);
15305
- $$invalidate(7, isLoading = true);
15327
+ $$invalidate(9, tournamentList = []);
15328
+ $$invalidate(8, isLoading = true);
15306
15329
 
15307
- $$invalidate(8, tournamentList = e.data.tournamentList);
15330
+ $$invalidate(9, tournamentList = e.data.tournamentList);
15308
15331
 
15309
15332
  setTimeout(
15310
15333
  () => {
15311
- $$invalidate(7, isLoading = false);
15334
+ $$invalidate(8, isLoading = false);
15312
15335
  },
15313
15336
  10
15314
15337
  );
15315
- } // added limits to the number of finished tournaments displayed: max of 30 days old & at most 20 shown closed tournaments
15316
- // Removed for now - we need a number of total filtered tournaments or the user will click `show more` for nothing
15317
-
15318
- /*tournamentList = tournamentList.filter((el) => {
15319
- if (el.state === "Closed" || el.state === "Closing") {
15320
- let tourneyCloseTime = moment(el.closeTime);
15321
- let dateOfTourneyEnd = moment(tourneyCloseTime, 'DD-MM-YYYY'); // formatted tourney end day
15322
-
15323
- if (currentDate.diff(dateOfTourneyEnd, 'days') < 30 && finishedTournamentsCounter < 20) {
15324
- finishedTournamentsCounter++;
15338
+ }
15325
15339
 
15326
- return el;
15327
- }
15328
- } else {
15329
- return el;
15330
- }
15331
- });*/
15332
15340
  if (e.data && e.data.type == "UserSessionID") {
15333
15341
  isLoggedIn = true;
15334
15342
  sessionID = e.data.session;
@@ -15364,7 +15372,8 @@
15364
15372
  "loginevent",
15365
15373
  "registerevent",
15366
15374
  "loginurl",
15367
- "registerurl"
15375
+ "registerurl",
15376
+ "currency"
15368
15377
  ];
15369
15378
 
15370
15379
  Object.keys($$props).forEach(key => {
@@ -15374,12 +15383,13 @@
15374
15383
  $$self.$$set = $$props => {
15375
15384
  if ("session" in $$props) $$invalidate(0, session = $$props.session);
15376
15385
  if ("userid" in $$props) $$invalidate(1, userid = $$props.userid);
15377
- if ("numberoftournaments" in $$props) $$invalidate(9, numberoftournaments = $$props.numberoftournaments);
15386
+ if ("numberoftournaments" in $$props) $$invalidate(10, numberoftournaments = $$props.numberoftournaments);
15378
15387
  if ("endpoint" in $$props) $$invalidate(2, endpoint = $$props.endpoint);
15379
15388
  if ("loginevent" in $$props) $$invalidate(3, loginevent = $$props.loginevent);
15380
15389
  if ("registerevent" in $$props) $$invalidate(4, registerevent = $$props.registerevent);
15381
15390
  if ("loginurl" in $$props) $$invalidate(5, loginurl = $$props.loginurl);
15382
15391
  if ("registerurl" in $$props) $$invalidate(6, registerurl = $$props.registerurl);
15392
+ if ("currency" in $$props) $$invalidate(7, currency = $$props.currency);
15383
15393
  };
15384
15394
 
15385
15395
  $$self.$capture_state = () => ({
@@ -15393,6 +15403,7 @@
15393
15403
  registerevent,
15394
15404
  loginurl,
15395
15405
  registerurl,
15406
+ currency,
15396
15407
  isLoading,
15397
15408
  currentDate,
15398
15409
  isLoggedIn,
@@ -15407,18 +15418,19 @@
15407
15418
  $$self.$inject_state = $$props => {
15408
15419
  if ("session" in $$props) $$invalidate(0, session = $$props.session);
15409
15420
  if ("userid" in $$props) $$invalidate(1, userid = $$props.userid);
15410
- if ("numberoftournaments" in $$props) $$invalidate(9, numberoftournaments = $$props.numberoftournaments);
15421
+ if ("numberoftournaments" in $$props) $$invalidate(10, numberoftournaments = $$props.numberoftournaments);
15411
15422
  if ("endpoint" in $$props) $$invalidate(2, endpoint = $$props.endpoint);
15412
15423
  if ("loginevent" in $$props) $$invalidate(3, loginevent = $$props.loginevent);
15413
15424
  if ("registerevent" in $$props) $$invalidate(4, registerevent = $$props.registerevent);
15414
15425
  if ("loginurl" in $$props) $$invalidate(5, loginurl = $$props.loginurl);
15415
15426
  if ("registerurl" in $$props) $$invalidate(6, registerurl = $$props.registerurl);
15416
- if ("isLoading" in $$props) $$invalidate(7, isLoading = $$props.isLoading);
15427
+ if ("currency" in $$props) $$invalidate(7, currency = $$props.currency);
15428
+ if ("isLoading" in $$props) $$invalidate(8, isLoading = $$props.isLoading);
15417
15429
  if ("currentDate" in $$props) currentDate = $$props.currentDate;
15418
15430
  if ("isLoggedIn" in $$props) isLoggedIn = $$props.isLoggedIn;
15419
15431
  if ("sessionID" in $$props) sessionID = $$props.sessionID;
15420
15432
  if ("playerID" in $$props) playerID = $$props.playerID;
15421
- if ("tournamentList" in $$props) $$invalidate(8, tournamentList = $$props.tournamentList);
15433
+ if ("tournamentList" in $$props) $$invalidate(9, tournamentList = $$props.tournamentList);
15422
15434
  };
15423
15435
 
15424
15436
  if ($$props && "$$inject" in $$props) {
@@ -15443,6 +15455,7 @@
15443
15455
  registerevent,
15444
15456
  loginurl,
15445
15457
  registerurl,
15458
+ currency,
15446
15459
  isLoading,
15447
15460
  tournamentList,
15448
15461
  numberoftournaments
@@ -15467,12 +15480,13 @@
15467
15480
  {
15468
15481
  session: 0,
15469
15482
  userid: 1,
15470
- numberoftournaments: 9,
15483
+ numberoftournaments: 10,
15471
15484
  endpoint: 2,
15472
15485
  loginevent: 3,
15473
15486
  registerevent: 4,
15474
15487
  loginurl: 5,
15475
- registerurl: 6
15488
+ registerurl: 6,
15489
+ currency: 7
15476
15490
  }
15477
15491
  );
15478
15492
 
@@ -15497,7 +15511,8 @@
15497
15511
  "loginevent",
15498
15512
  "registerevent",
15499
15513
  "loginurl",
15500
- "registerurl"
15514
+ "registerurl",
15515
+ "currency"
15501
15516
  ];
15502
15517
  }
15503
15518
 
@@ -15520,7 +15535,7 @@
15520
15535
  }
15521
15536
 
15522
15537
  get numberoftournaments() {
15523
- return this.$$.ctx[9];
15538
+ return this.$$.ctx[10];
15524
15539
  }
15525
15540
 
15526
15541
  set numberoftournaments(numberoftournaments) {
@@ -15572,6 +15587,15 @@
15572
15587
  this.$set({ registerurl });
15573
15588
  flush();
15574
15589
  }
15590
+
15591
+ get currency() {
15592
+ return this.$$.ctx[7];
15593
+ }
15594
+
15595
+ set currency(currency) {
15596
+ this.$set({ currency });
15597
+ flush();
15598
+ }
15575
15599
  }
15576
15600
 
15577
15601
  !customElements.get('casino-tournaments-list-controller') && customElements.define('casino-tournaments-list-controller', CasinoTournamentsListController);
@@ -15581,23 +15605,23 @@
15581
15605
  const { console: console_1 } = globals;
15582
15606
  const file = "src/CasinoTournamentsController.svelte";
15583
15607
 
15584
- // (166:0) {:else}
15608
+ // (167:0) {:else}
15585
15609
  function create_else_block(ctx) {
15586
15610
  let div2;
15587
15611
  let div0;
15588
15612
  let t0;
15589
15613
  let div1;
15590
15614
  let t1;
15591
- let if_block0 = /*filtersLoaded*/ ctx[12] && create_if_block_4(ctx);
15615
+ let if_block0 = /*filtersLoaded*/ ctx[13] && create_if_block_4(ctx);
15592
15616
 
15593
15617
  function select_block_type_1(ctx, dirty) {
15594
- if (/*tournamentsNumber*/ ctx[13] == 0) return create_if_block_2;
15618
+ if (/*tournamentsNumber*/ ctx[14] == 0) return create_if_block_2;
15595
15619
  return create_else_block_2;
15596
15620
  }
15597
15621
 
15598
15622
  let current_block_type = select_block_type_1(ctx);
15599
15623
  let if_block1 = current_block_type(ctx);
15600
- let if_block2 = !/*allTournamentsShown*/ ctx[14] && create_if_block_1(ctx);
15624
+ let if_block2 = !/*allTournamentsShown*/ ctx[15] && create_if_block_1(ctx);
15601
15625
 
15602
15626
  const block = {
15603
15627
  c: function create() {
@@ -15610,11 +15634,11 @@
15610
15634
  t1 = space();
15611
15635
  if (if_block2) if_block2.c();
15612
15636
  attr_dev(div0, "class", "FirstRow");
15613
- add_location(div0, file, 167, 4, 5470);
15637
+ add_location(div0, file, 168, 4, 5499);
15614
15638
  attr_dev(div1, "class", "SecondRow");
15615
- add_location(div1, file, 175, 4, 5708);
15639
+ add_location(div1, file, 176, 4, 5737);
15616
15640
  attr_dev(div2, "class", "Tournaments");
15617
- add_location(div2, file, 166, 2, 5440);
15641
+ add_location(div2, file, 167, 2, 5469);
15618
15642
  },
15619
15643
  m: function mount(target, anchor) {
15620
15644
  insert_dev(target, div2, anchor);
@@ -15627,7 +15651,7 @@
15627
15651
  if (if_block2) if_block2.m(div2, null);
15628
15652
  },
15629
15653
  p: function update(ctx, dirty) {
15630
- if (/*filtersLoaded*/ ctx[12]) {
15654
+ if (/*filtersLoaded*/ ctx[13]) {
15631
15655
  if (if_block0) {
15632
15656
  if_block0.p(ctx, dirty);
15633
15657
  } else {
@@ -15652,7 +15676,7 @@
15652
15676
  }
15653
15677
  }
15654
15678
 
15655
- if (!/*allTournamentsShown*/ ctx[14]) {
15679
+ if (!/*allTournamentsShown*/ ctx[15]) {
15656
15680
  if (if_block2) {
15657
15681
  if_block2.p(ctx, dirty);
15658
15682
  } else {
@@ -15677,14 +15701,14 @@
15677
15701
  block,
15678
15702
  id: create_else_block.name,
15679
15703
  type: "else",
15680
- source: "(166:0) {:else}",
15704
+ source: "(167:0) {:else}",
15681
15705
  ctx
15682
15706
  });
15683
15707
 
15684
15708
  return block;
15685
15709
  }
15686
15710
 
15687
- // (163:0) {#if hasErrors}
15711
+ // (164:0) {#if hasErrors}
15688
15712
  function create_if_block(ctx) {
15689
15713
  let p0;
15690
15714
  let t1;
@@ -15697,9 +15721,9 @@
15697
15721
  p0.textContent = "500 - Internal server error";
15698
15722
  t1 = space();
15699
15723
  p1 = element("p");
15700
- t2 = text(/*error*/ ctx[10]);
15701
- add_location(p0, file, 163, 2, 5378);
15702
- add_location(p1, file, 164, 2, 5415);
15724
+ t2 = text(/*error*/ ctx[11]);
15725
+ add_location(p0, file, 164, 2, 5407);
15726
+ add_location(p1, file, 165, 2, 5444);
15703
15727
  },
15704
15728
  m: function mount(target, anchor) {
15705
15729
  insert_dev(target, p0, anchor);
@@ -15708,7 +15732,7 @@
15708
15732
  append_dev(p1, t2);
15709
15733
  },
15710
15734
  p: function update(ctx, dirty) {
15711
- if (dirty[0] & /*error*/ 1024) set_data_dev(t2, /*error*/ ctx[10]);
15735
+ if (dirty[0] & /*error*/ 2048) set_data_dev(t2, /*error*/ ctx[11]);
15712
15736
  },
15713
15737
  d: function destroy(detaching) {
15714
15738
  if (detaching) detach_dev(p0);
@@ -15721,23 +15745,23 @@
15721
15745
  block,
15722
15746
  id: create_if_block.name,
15723
15747
  type: "if",
15724
- source: "(163:0) {#if hasErrors}",
15748
+ source: "(164:0) {#if hasErrors}",
15725
15749
  ctx
15726
15750
  });
15727
15751
 
15728
15752
  return block;
15729
15753
  }
15730
15754
 
15731
- // (169:6) {#if filtersLoaded}
15755
+ // (170:6) {#if filtersLoaded}
15732
15756
  function create_if_block_4(ctx) {
15733
15757
  let casino_tournaments_filter_controller;
15734
15758
 
15735
15759
  const block = {
15736
15760
  c: function create() {
15737
15761
  casino_tournaments_filter_controller = element("casino-tournaments-filter-controller");
15738
- set_custom_element_data(casino_tournaments_filter_controller, "filters", /*filtersArray*/ ctx[15]);
15762
+ set_custom_element_data(casino_tournaments_filter_controller, "filters", /*filtersArray*/ ctx[16]);
15739
15763
  set_custom_element_data(casino_tournaments_filter_controller, "activefilters", /*filters*/ ctx[4]);
15740
- add_location(casino_tournaments_filter_controller, file, 169, 8, 5527);
15764
+ add_location(casino_tournaments_filter_controller, file, 170, 8, 5556);
15741
15765
  },
15742
15766
  m: function mount(target, anchor) {
15743
15767
  insert_dev(target, casino_tournaments_filter_controller, anchor);
@@ -15756,14 +15780,14 @@
15756
15780
  block,
15757
15781
  id: create_if_block_4.name,
15758
15782
  type: "if",
15759
- source: "(169:6) {#if filtersLoaded}",
15783
+ source: "(170:6) {#if filtersLoaded}",
15760
15784
  ctx
15761
15785
  });
15762
15786
 
15763
15787
  return block;
15764
15788
  }
15765
15789
 
15766
- // (183:6) {:else}
15790
+ // (184:6) {:else}
15767
15791
  function create_else_block_2(ctx) {
15768
15792
  let casino_tournaments_list_controller;
15769
15793
 
@@ -15778,7 +15802,8 @@
15778
15802
  set_custom_element_data(casino_tournaments_list_controller, "loginevent", /*loginevent*/ ctx[5]);
15779
15803
  set_custom_element_data(casino_tournaments_list_controller, "registerurl", /*registerurl*/ ctx[8]);
15780
15804
  set_custom_element_data(casino_tournaments_list_controller, "registerevent", /*registerevent*/ ctx[6]);
15781
- add_location(casino_tournaments_list_controller, file, 183, 8, 5923);
15805
+ set_custom_element_data(casino_tournaments_list_controller, "currency", /*currency*/ ctx[9]);
15806
+ add_location(casino_tournaments_list_controller, file, 184, 8, 5952);
15782
15807
  },
15783
15808
  m: function mount(target, anchor) {
15784
15809
  insert_dev(target, casino_tournaments_list_controller, anchor);
@@ -15815,6 +15840,10 @@
15815
15840
  if (dirty[0] & /*registerevent*/ 64) {
15816
15841
  set_custom_element_data(casino_tournaments_list_controller, "registerevent", /*registerevent*/ ctx[6]);
15817
15842
  }
15843
+
15844
+ if (dirty[0] & /*currency*/ 512) {
15845
+ set_custom_element_data(casino_tournaments_list_controller, "currency", /*currency*/ ctx[9]);
15846
+ }
15818
15847
  },
15819
15848
  d: function destroy(detaching) {
15820
15849
  if (detaching) detach_dev(casino_tournaments_list_controller);
@@ -15825,19 +15854,19 @@
15825
15854
  block,
15826
15855
  id: create_else_block_2.name,
15827
15856
  type: "else",
15828
- source: "(183:6) {:else}",
15857
+ source: "(184:6) {:else}",
15829
15858
  ctx
15830
15859
  });
15831
15860
 
15832
15861
  return block;
15833
15862
  }
15834
15863
 
15835
- // (177:6) {#if tournamentsNumber == 0}
15864
+ // (178:6) {#if tournamentsNumber == 0}
15836
15865
  function create_if_block_2(ctx) {
15837
15866
  let if_block_anchor;
15838
15867
 
15839
15868
  function select_block_type_2(ctx, dirty) {
15840
- if (/*isLoading*/ ctx[11]) return create_if_block_3;
15869
+ if (/*isLoading*/ ctx[12]) return create_if_block_3;
15841
15870
  return create_else_block_1;
15842
15871
  }
15843
15872
 
@@ -15874,14 +15903,14 @@
15874
15903
  block,
15875
15904
  id: create_if_block_2.name,
15876
15905
  type: "if",
15877
- source: "(177:6) {#if tournamentsNumber == 0}",
15906
+ source: "(178:6) {#if tournamentsNumber == 0}",
15878
15907
  ctx
15879
15908
  });
15880
15909
 
15881
15910
  return block;
15882
15911
  }
15883
15912
 
15884
- // (180:8) {:else}
15913
+ // (181:8) {:else}
15885
15914
  function create_else_block_1(ctx) {
15886
15915
  let p;
15887
15916
 
@@ -15889,7 +15918,7 @@
15889
15918
  c: function create() {
15890
15919
  p = element("p");
15891
15920
  p.textContent = "No tournaments found";
15892
- add_location(p, file, 180, 10, 5859);
15921
+ add_location(p, file, 181, 10, 5888);
15893
15922
  },
15894
15923
  m: function mount(target, anchor) {
15895
15924
  insert_dev(target, p, anchor);
@@ -15903,14 +15932,14 @@
15903
15932
  block,
15904
15933
  id: create_else_block_1.name,
15905
15934
  type: "else",
15906
- source: "(180:8) {:else}",
15935
+ source: "(181:8) {:else}",
15907
15936
  ctx
15908
15937
  });
15909
15938
 
15910
15939
  return block;
15911
15940
  }
15912
15941
 
15913
- // (178:8) {#if isLoading}
15942
+ // (179:8) {#if isLoading}
15914
15943
  function create_if_block_3(ctx) {
15915
15944
  let p;
15916
15945
 
@@ -15918,7 +15947,7 @@
15918
15947
  c: function create() {
15919
15948
  p = element("p");
15920
15949
  p.textContent = "Loading, please wait ...";
15921
- add_location(p, file, 178, 10, 5801);
15950
+ add_location(p, file, 179, 10, 5830);
15922
15951
  },
15923
15952
  m: function mount(target, anchor) {
15924
15953
  insert_dev(target, p, anchor);
@@ -15932,14 +15961,14 @@
15932
15961
  block,
15933
15962
  id: create_if_block_3.name,
15934
15963
  type: "if",
15935
- source: "(178:8) {#if isLoading}",
15964
+ source: "(179:8) {#if isLoading}",
15936
15965
  ctx
15937
15966
  });
15938
15967
 
15939
15968
  return block;
15940
15969
  }
15941
15970
 
15942
- // (196:4) {#if !allTournamentsShown}
15971
+ // (198:4) {#if !allTournamentsShown}
15943
15972
  function create_if_block_1(ctx) {
15944
15973
  let div1;
15945
15974
  let div0;
@@ -15955,11 +15984,11 @@
15955
15984
  button.textContent = "Show more";
15956
15985
  attr_dev(button, "class", "ShowMoreButton");
15957
15986
  attr_dev(button, "title", "Show More");
15958
- add_location(button, file, 198, 10, 6410);
15987
+ add_location(button, file, 200, 10, 6460);
15959
15988
  attr_dev(div0, "class", "CenterButton");
15960
- add_location(div0, file, 197, 8, 6373);
15989
+ add_location(div0, file, 199, 8, 6423);
15961
15990
  attr_dev(div1, "class", "ThirdRow");
15962
- add_location(div1, file, 196, 6, 6342);
15991
+ add_location(div1, file, 198, 6, 6392);
15963
15992
  },
15964
15993
  m: function mount(target, anchor) {
15965
15994
  insert_dev(target, div1, anchor);
@@ -15967,7 +15996,7 @@
15967
15996
  append_dev(div0, button);
15968
15997
 
15969
15998
  if (!mounted) {
15970
- dispose = listen_dev(button, "click", /*click_handler*/ ctx[20], false, false, false);
15999
+ dispose = listen_dev(button, "click", /*click_handler*/ ctx[21], false, false, false);
15971
16000
  mounted = true;
15972
16001
  }
15973
16002
  },
@@ -15983,7 +16012,7 @@
15983
16012
  block,
15984
16013
  id: create_if_block_1.name,
15985
16014
  type: "if",
15986
- source: "(196:4) {#if !allTournamentsShown}",
16015
+ source: "(198:4) {#if !allTournamentsShown}",
15987
16016
  ctx
15988
16017
  });
15989
16018
 
@@ -15994,7 +16023,7 @@
15994
16023
  let if_block_anchor;
15995
16024
 
15996
16025
  function select_block_type(ctx, dirty) {
15997
- if (/*hasErrors*/ ctx[9]) return create_if_block;
16026
+ if (/*hasErrors*/ ctx[10]) return create_if_block;
15998
16027
  return create_else_block;
15999
16028
  }
16000
16029
 
@@ -16063,6 +16092,7 @@
16063
16092
  let { registerevent = "" } = $$props;
16064
16093
  let { loginurl = "" } = $$props;
16065
16094
  let { registerurl = "" } = $$props;
16095
+ let { currency = "EUR" } = $$props;
16066
16096
 
16067
16097
  // Variables of topics for communication
16068
16098
  let hasErrors = false;
@@ -16113,8 +16143,8 @@
16113
16143
  };
16114
16144
 
16115
16145
  const getData = (url, offset, limit) => {
16116
- $$invalidate(11, isLoading = true);
16117
- $$invalidate(13, tournamentsNumber = 0);
16146
+ $$invalidate(12, isLoading = true);
16147
+ $$invalidate(14, tournamentsNumber = 0);
16118
16148
  let tournamentsUrl = new URL(`${url}/tournaments`);
16119
16149
  let reqHeaders = new Headers();
16120
16150
  tournamentsUrl.searchParams.append("pagination", `offset=${offset},limit=${limit}`);
@@ -16143,16 +16173,16 @@
16143
16173
  };
16144
16174
 
16145
16175
  fetch(tournamentsUrl, requestOptions).then(res => res.json()).then(res => {
16146
- $$invalidate(13, tournamentsNumber = 0);
16176
+ $$invalidate(14, tournamentsNumber = 0);
16147
16177
 
16148
16178
  setTimeout(
16149
16179
  () => {
16150
- $$invalidate(13, tournamentsNumber = res.total);
16180
+ $$invalidate(14, tournamentsNumber = res.total);
16151
16181
 
16152
16182
  if (tournamentsShownNumber >= tournamentsNumber) {
16153
- $$invalidate(14, allTournamentsShown = true);
16183
+ $$invalidate(15, allTournamentsShown = true);
16154
16184
  } else {
16155
- $$invalidate(14, allTournamentsShown = false);
16185
+ $$invalidate(15, allTournamentsShown = false);
16156
16186
  }
16157
16187
 
16158
16188
  window.postMessage(
@@ -16163,7 +16193,7 @@
16163
16193
  window.location.href
16164
16194
  );
16165
16195
 
16166
- $$invalidate(11, isLoading = false);
16196
+ $$invalidate(12, isLoading = false);
16167
16197
  },
16168
16198
  50
16169
16199
  );
@@ -16185,20 +16215,20 @@
16185
16215
  getData(endpoint, 0, tournamentsShownNumber);
16186
16216
 
16187
16217
  if (tournamentsShownNumber >= tournamentsNumber) {
16188
- $$invalidate(14, allTournamentsShown = true);
16218
+ $$invalidate(15, allTournamentsShown = true);
16189
16219
  }
16190
16220
  };
16191
16221
 
16192
16222
  const checkAttrs = () => {
16193
16223
  if (!endpoint) {
16194
- $$invalidate(10, error = "Endpoint is missing! Please provide a valid endpointURL.");
16195
- $$invalidate(9, hasErrors = true);
16224
+ $$invalidate(11, error = "Endpoint is missing! Please provide a valid endpointURL.");
16225
+ $$invalidate(10, hasErrors = true);
16196
16226
  console.error(error);
16197
16227
  }
16198
16228
 
16199
16229
  if (!lang || lang.length != 2) {
16200
- $$invalidate(10, error = "Language is missing! Please provide a valid language (alpha2code)");
16201
- $$invalidate(9, hasErrors = true);
16230
+ $$invalidate(11, error = "Language is missing! Please provide a valid language (alpha2code)");
16231
+ $$invalidate(10, hasErrors = true);
16202
16232
  console.error(error);
16203
16233
  }
16204
16234
 
@@ -16214,13 +16244,13 @@
16214
16244
 
16215
16245
  const setActiveFilters = () => {
16216
16246
  activeFilters = filters.split(",");
16217
- $$invalidate(12, filtersLoaded = true);
16247
+ $$invalidate(13, filtersLoaded = true);
16218
16248
  };
16219
16249
 
16220
16250
  const setSession = () => {
16221
16251
  if (session.length > 0 && session != "false") {
16222
16252
  isLoggedIn = true;
16223
- $$invalidate(11, isLoading = true);
16253
+ $$invalidate(12, isLoading = true);
16224
16254
  sessionID = session;
16225
16255
  } else {
16226
16256
  isLoggedIn = false;
@@ -16252,7 +16282,8 @@
16252
16282
  "loginevent",
16253
16283
  "registerevent",
16254
16284
  "loginurl",
16255
- "registerurl"
16285
+ "registerurl",
16286
+ "currency"
16256
16287
  ];
16257
16288
 
16258
16289
  Object.keys($$props).forEach(key => {
@@ -16265,15 +16296,16 @@
16265
16296
  if ("session" in $$props) $$invalidate(0, session = $$props.session);
16266
16297
  if ("userid" in $$props) $$invalidate(1, userid = $$props.userid);
16267
16298
  if ("endpoint" in $$props) $$invalidate(2, endpoint = $$props.endpoint);
16268
- if ("lang" in $$props) $$invalidate(17, lang = $$props.lang);
16299
+ if ("lang" in $$props) $$invalidate(18, lang = $$props.lang);
16269
16300
  if ("numberoftournaments" in $$props) $$invalidate(3, numberoftournaments = $$props.numberoftournaments);
16270
- if ("showmorestep" in $$props) $$invalidate(18, showmorestep = $$props.showmorestep);
16271
- if ("cmsendpoint" in $$props) $$invalidate(19, cmsendpoint = $$props.cmsendpoint);
16301
+ if ("showmorestep" in $$props) $$invalidate(19, showmorestep = $$props.showmorestep);
16302
+ if ("cmsendpoint" in $$props) $$invalidate(20, cmsendpoint = $$props.cmsendpoint);
16272
16303
  if ("filters" in $$props) $$invalidate(4, filters = $$props.filters);
16273
16304
  if ("loginevent" in $$props) $$invalidate(5, loginevent = $$props.loginevent);
16274
16305
  if ("registerevent" in $$props) $$invalidate(6, registerevent = $$props.registerevent);
16275
16306
  if ("loginurl" in $$props) $$invalidate(7, loginurl = $$props.loginurl);
16276
16307
  if ("registerurl" in $$props) $$invalidate(8, registerurl = $$props.registerurl);
16308
+ if ("currency" in $$props) $$invalidate(9, currency = $$props.currency);
16277
16309
  };
16278
16310
 
16279
16311
  $$self.$capture_state = () => ({
@@ -16291,6 +16323,7 @@
16291
16323
  registerevent,
16292
16324
  loginurl,
16293
16325
  registerurl,
16326
+ currency,
16294
16327
  sortByStatus,
16295
16328
  hasErrors,
16296
16329
  error,
@@ -16321,27 +16354,28 @@
16321
16354
  if ("session" in $$props) $$invalidate(0, session = $$props.session);
16322
16355
  if ("userid" in $$props) $$invalidate(1, userid = $$props.userid);
16323
16356
  if ("endpoint" in $$props) $$invalidate(2, endpoint = $$props.endpoint);
16324
- if ("lang" in $$props) $$invalidate(17, lang = $$props.lang);
16357
+ if ("lang" in $$props) $$invalidate(18, lang = $$props.lang);
16325
16358
  if ("numberoftournaments" in $$props) $$invalidate(3, numberoftournaments = $$props.numberoftournaments);
16326
- if ("showmorestep" in $$props) $$invalidate(18, showmorestep = $$props.showmorestep);
16327
- if ("cmsendpoint" in $$props) $$invalidate(19, cmsendpoint = $$props.cmsendpoint);
16359
+ if ("showmorestep" in $$props) $$invalidate(19, showmorestep = $$props.showmorestep);
16360
+ if ("cmsendpoint" in $$props) $$invalidate(20, cmsendpoint = $$props.cmsendpoint);
16328
16361
  if ("filters" in $$props) $$invalidate(4, filters = $$props.filters);
16329
16362
  if ("loginevent" in $$props) $$invalidate(5, loginevent = $$props.loginevent);
16330
16363
  if ("registerevent" in $$props) $$invalidate(6, registerevent = $$props.registerevent);
16331
16364
  if ("loginurl" in $$props) $$invalidate(7, loginurl = $$props.loginurl);
16332
16365
  if ("registerurl" in $$props) $$invalidate(8, registerurl = $$props.registerurl);
16333
- if ("hasErrors" in $$props) $$invalidate(9, hasErrors = $$props.hasErrors);
16334
- if ("error" in $$props) $$invalidate(10, error = $$props.error);
16366
+ if ("currency" in $$props) $$invalidate(9, currency = $$props.currency);
16367
+ if ("hasErrors" in $$props) $$invalidate(10, hasErrors = $$props.hasErrors);
16368
+ if ("error" in $$props) $$invalidate(11, error = $$props.error);
16335
16369
  if ("isLoggedIn" in $$props) isLoggedIn = $$props.isLoggedIn;
16336
16370
  if ("sessionID" in $$props) sessionID = $$props.sessionID;
16337
16371
  if ("playerID" in $$props) playerID = $$props.playerID;
16338
16372
  if ("userAgent" in $$props) userAgent = $$props.userAgent;
16339
- if ("isLoading" in $$props) $$invalidate(11, isLoading = $$props.isLoading);
16340
- if ("filtersLoaded" in $$props) $$invalidate(12, filtersLoaded = $$props.filtersLoaded);
16341
- if ("filtersArray" in $$props) $$invalidate(15, filtersArray = $$props.filtersArray);
16342
- if ("tournamentsNumber" in $$props) $$invalidate(13, tournamentsNumber = $$props.tournamentsNumber);
16373
+ if ("isLoading" in $$props) $$invalidate(12, isLoading = $$props.isLoading);
16374
+ if ("filtersLoaded" in $$props) $$invalidate(13, filtersLoaded = $$props.filtersLoaded);
16375
+ if ("filtersArray" in $$props) $$invalidate(16, filtersArray = $$props.filtersArray);
16376
+ if ("tournamentsNumber" in $$props) $$invalidate(14, tournamentsNumber = $$props.tournamentsNumber);
16343
16377
  if ("tournamentsShownNumber" in $$props) tournamentsShownNumber = $$props.tournamentsShownNumber;
16344
- if ("allTournamentsShown" in $$props) $$invalidate(14, allTournamentsShown = $$props.allTournamentsShown);
16378
+ if ("allTournamentsShown" in $$props) $$invalidate(15, allTournamentsShown = $$props.allTournamentsShown);
16345
16379
  if ("activeFilters" in $$props) activeFilters = $$props.activeFilters;
16346
16380
  if ("lastMonthDate" in $$props) lastMonthDate = $$props.lastMonthDate;
16347
16381
  };
@@ -16363,11 +16397,11 @@
16363
16397
  filters && setActiveFilters();
16364
16398
  }
16365
16399
 
16366
- if ($$self.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang*/ 393228) {
16400
+ if ($$self.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang*/ 786444) {
16367
16401
  endpoint && numberoftournaments && showmorestep && lang && initialLoad();
16368
16402
  }
16369
16403
 
16370
- if ($$self.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang, session*/ 393229) {
16404
+ if ($$self.$$.dirty[0] & /*endpoint, numberoftournaments, showmorestep, lang, session*/ 786445) {
16371
16405
  endpoint && numberoftournaments && showmorestep && lang && session && initialLoad();
16372
16406
  }
16373
16407
  };
@@ -16382,6 +16416,7 @@
16382
16416
  registerevent,
16383
16417
  loginurl,
16384
16418
  registerurl,
16419
+ currency,
16385
16420
  hasErrors,
16386
16421
  error,
16387
16422
  isLoading,
@@ -16416,15 +16451,16 @@
16416
16451
  session: 0,
16417
16452
  userid: 1,
16418
16453
  endpoint: 2,
16419
- lang: 17,
16454
+ lang: 18,
16420
16455
  numberoftournaments: 3,
16421
- showmorestep: 18,
16422
- cmsendpoint: 19,
16456
+ showmorestep: 19,
16457
+ cmsendpoint: 20,
16423
16458
  filters: 4,
16424
16459
  loginevent: 5,
16425
16460
  registerevent: 6,
16426
16461
  loginurl: 7,
16427
- registerurl: 8
16462
+ registerurl: 8,
16463
+ currency: 9
16428
16464
  },
16429
16465
  [-1, -1]
16430
16466
  );
@@ -16454,7 +16490,8 @@
16454
16490
  "loginevent",
16455
16491
  "registerevent",
16456
16492
  "loginurl",
16457
- "registerurl"
16493
+ "registerurl",
16494
+ "currency"
16458
16495
  ];
16459
16496
  }
16460
16497
 
@@ -16486,7 +16523,7 @@
16486
16523
  }
16487
16524
 
16488
16525
  get lang() {
16489
- return this.$$.ctx[17];
16526
+ return this.$$.ctx[18];
16490
16527
  }
16491
16528
 
16492
16529
  set lang(lang) {
@@ -16504,7 +16541,7 @@
16504
16541
  }
16505
16542
 
16506
16543
  get showmorestep() {
16507
- return this.$$.ctx[18];
16544
+ return this.$$.ctx[19];
16508
16545
  }
16509
16546
 
16510
16547
  set showmorestep(showmorestep) {
@@ -16513,7 +16550,7 @@
16513
16550
  }
16514
16551
 
16515
16552
  get cmsendpoint() {
16516
- return this.$$.ctx[19];
16553
+ return this.$$.ctx[20];
16517
16554
  }
16518
16555
 
16519
16556
  set cmsendpoint(cmsendpoint) {
@@ -16565,6 +16602,15 @@
16565
16602
  this.$set({ registerurl });
16566
16603
  flush();
16567
16604
  }
16605
+
16606
+ get currency() {
16607
+ return this.$$.ctx[9];
16608
+ }
16609
+
16610
+ set currency(currency) {
16611
+ this.$set({ currency });
16612
+ flush();
16613
+ }
16568
16614
  }
16569
16615
 
16570
16616
  !customElements.get('casino-tournaments-controller') && customElements.define('casino-tournaments-controller', CasinoTournamentsController);