@everymatrix/casino-tournaments-page-controller 0.0.90 → 0.0.94

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.
@@ -192,12 +192,6 @@
192
192
  block.i(local);
193
193
  }
194
194
  }
195
-
196
- const globals = (typeof window !== 'undefined'
197
- ? window
198
- : typeof globalThis !== 'undefined'
199
- ? globalThis
200
- : global);
201
195
  function mount_component(component, target, anchor, customElement) {
202
196
  const { fragment, on_mount, on_destroy, after_update } = component.$$;
203
197
  fragment && fragment.m(target, anchor);
@@ -405,17 +399,17 @@
405
399
  }
406
400
  }
407
401
 
408
- var global$1 =
402
+ var global =
409
403
  (typeof globalThis !== 'undefined' && globalThis) ||
410
404
  (typeof self !== 'undefined' && self) ||
411
- (typeof global$1 !== 'undefined' && global$1);
405
+ (typeof global !== 'undefined' && global);
412
406
 
413
407
  var support = {
414
- searchParams: 'URLSearchParams' in global$1,
415
- iterable: 'Symbol' in global$1 && 'iterator' in Symbol,
408
+ searchParams: 'URLSearchParams' in global,
409
+ iterable: 'Symbol' in global && 'iterator' in Symbol,
416
410
  blob:
417
- 'FileReader' in global$1 &&
418
- 'Blob' in global$1 &&
411
+ 'FileReader' in global &&
412
+ 'Blob' in global &&
419
413
  (function() {
420
414
  try {
421
415
  new Blob();
@@ -424,8 +418,8 @@
424
418
  return false
425
419
  }
426
420
  })(),
427
- formData: 'FormData' in global$1,
428
- arrayBuffer: 'ArrayBuffer' in global$1
421
+ formData: 'FormData' in global,
422
+ arrayBuffer: 'ArrayBuffer' in global
429
423
  };
430
424
 
431
425
  function isDataView(obj) {
@@ -890,7 +884,7 @@
890
884
  return new Response(null, {status: status, headers: {location: url}})
891
885
  };
892
886
 
893
- var DOMException = global$1.DOMException;
887
+ var DOMException = global.DOMException;
894
888
  try {
895
889
  new DOMException();
896
890
  } catch (err) {
@@ -951,7 +945,7 @@
951
945
 
952
946
  function fixUrl(url) {
953
947
  try {
954
- return url === '' && global$1.location.href ? global$1.location.href : url
948
+ return url === '' && global.location.href ? global.location.href : url
955
949
  } catch (e) {
956
950
  return url
957
951
  }
@@ -1004,11 +998,11 @@
1004
998
 
1005
999
  fetch$1.polyfill = true;
1006
1000
 
1007
- if (!global$1.fetch) {
1008
- global$1.fetch = fetch$1;
1009
- global$1.Headers = Headers$1;
1010
- global$1.Request = Request$1;
1011
- global$1.Response = Response;
1001
+ if (!global.fetch) {
1002
+ global.fetch = fetch$1;
1003
+ global.Headers = Headers$1;
1004
+ global.Request = Request$1;
1005
+ global.Response = Response;
1012
1006
  }
1013
1007
 
1014
1008
  // the whatwg-fetch polyfill installs the fetch() function
@@ -7093,12 +7087,12 @@
7093
7087
 
7094
7088
  function get_each_context$2(ctx, list, i) {
7095
7089
  const child_ctx = ctx.slice();
7096
- child_ctx[28] = list[i];
7097
- child_ctx[30] = i;
7090
+ child_ctx[34] = list[i];
7091
+ child_ctx[36] = i;
7098
7092
  return child_ctx;
7099
7093
  }
7100
7094
 
7101
- // (101:2) {#if games}
7095
+ // (111:2) {#if games}
7102
7096
  function create_if_block$3(ctx) {
7103
7097
  let div0;
7104
7098
  let svg0;
@@ -7141,32 +7135,32 @@
7141
7135
  attr_dev(path0, "stroke-linejoin", "round");
7142
7136
  attr_dev(path0, "stroke-width", "2");
7143
7137
  attr_dev(path0, "d", "M15 19l-7-7 7-7");
7144
- add_location(path0, file$3, 103, 8, 3245);
7138
+ add_location(path0, file$3, 113, 8, 3422);
7145
7139
  attr_dev(svg0, "fill", "none");
7146
7140
  attr_dev(svg0, "stroke", "currentColor");
7147
7141
  attr_dev(svg0, "viewBox", "0 0 24 24");
7148
7142
  attr_dev(svg0, "xmlns", "http://www.w3.org/2000/svg");
7149
- add_location(svg0, file$3, 102, 6, 3142);
7143
+ add_location(svg0, file$3, 112, 6, 3319);
7150
7144
  attr_dev(div0, "class", "SliderNavButton");
7151
- toggle_class(div0, "disabled", /*atStart*/ ctx[3]);
7152
- add_location(div0, file$3, 101, 4, 3053);
7145
+ toggle_class(div0, "disabled", /*atStart*/ ctx[5]);
7146
+ add_location(div0, file$3, 111, 4, 3230);
7153
7147
  attr_dev(div1, "class", "items");
7154
7148
  set_style(div1, "transform", "translateX(" + /*offset*/ ctx[1] + "px)");
7155
- add_location(div1, file$3, 107, 6, 3384);
7156
- add_location(main, file$3, 106, 4, 3371);
7149
+ add_location(div1, file$3, 117, 6, 3561);
7150
+ add_location(main, file$3, 116, 4, 3548);
7157
7151
  attr_dev(path1, "stroke-linecap", "round");
7158
7152
  attr_dev(path1, "stroke-linejoin", "round");
7159
7153
  attr_dev(path1, "stroke-width", "2");
7160
7154
  attr_dev(path1, "d", "M9 5l7 7-7 7");
7161
- add_location(path1, file$3, 117, 8, 3898);
7155
+ add_location(path1, file$3, 128, 8, 4239);
7162
7156
  attr_dev(svg1, "fill", "none");
7163
7157
  attr_dev(svg1, "stroke", "currentColor");
7164
7158
  attr_dev(svg1, "viewBox", "0 0 24 24");
7165
7159
  attr_dev(svg1, "xmlns", "http://www.w3.org/2000/svg");
7166
- add_location(svg1, file$3, 116, 6, 3795);
7160
+ add_location(svg1, file$3, 127, 6, 4136);
7167
7161
  attr_dev(div2, "class", "SliderNavButton");
7168
- toggle_class(div2, "disabled", /*atEnd*/ ctx[4]);
7169
- add_location(div2, file$3, 115, 4, 3709);
7162
+ toggle_class(div2, "disabled", /*atEnd*/ ctx[6]);
7163
+ add_location(div2, file$3, 126, 4, 4050);
7170
7164
  },
7171
7165
  m: function mount(target, anchor) {
7172
7166
  insert_dev(target, div0, anchor);
@@ -7187,19 +7181,19 @@
7187
7181
 
7188
7182
  if (!mounted) {
7189
7183
  dispose = [
7190
- listen_dev(div0, "click", /*click_handler*/ ctx[11], false, false, false),
7191
- listen_dev(div2, "click", /*click_handler_2*/ ctx[13], false, false, false)
7184
+ listen_dev(div0, "click", /*click_handler*/ ctx[15], false, false, false),
7185
+ listen_dev(div2, "click", /*click_handler_2*/ ctx[19], false, false, false)
7192
7186
  ];
7193
7187
 
7194
7188
  mounted = true;
7195
7189
  }
7196
7190
  },
7197
7191
  p: function update(ctx, dirty) {
7198
- if (dirty & /*atStart*/ 8) {
7199
- toggle_class(div0, "disabled", /*atStart*/ ctx[3]);
7192
+ if (dirty[0] & /*atStart*/ 32) {
7193
+ toggle_class(div0, "disabled", /*atStart*/ ctx[5]);
7200
7194
  }
7201
7195
 
7202
- if (dirty & /*gameClicked, games*/ 65) {
7196
+ if (dirty[0] & /*gameClicked, games, enter, leave, hover, hoverIndex*/ 1433) {
7203
7197
  each_value = /*games*/ ctx[0];
7204
7198
  validate_each_argument(each_value);
7205
7199
  let i;
@@ -7223,12 +7217,12 @@
7223
7217
  each_blocks.length = each_value.length;
7224
7218
  }
7225
7219
 
7226
- if (dirty & /*offset*/ 2) {
7220
+ if (dirty[0] & /*offset*/ 2) {
7227
7221
  set_style(div1, "transform", "translateX(" + /*offset*/ ctx[1] + "px)");
7228
7222
  }
7229
7223
 
7230
- if (dirty & /*atEnd*/ 16) {
7231
- toggle_class(div2, "disabled", /*atEnd*/ ctx[4]);
7224
+ if (dirty[0] & /*atEnd*/ 64) {
7225
+ toggle_class(div2, "disabled", /*atEnd*/ ctx[6]);
7232
7226
  }
7233
7227
  },
7234
7228
  d: function destroy(detaching) {
@@ -7247,71 +7241,102 @@
7247
7241
  block,
7248
7242
  id: create_if_block$3.name,
7249
7243
  type: "if",
7250
- source: "(101:2) {#if games}",
7244
+ source: "(111:2) {#if games}",
7251
7245
  ctx
7252
7246
  });
7253
7247
 
7254
7248
  return block;
7255
7249
  }
7256
7250
 
7257
- // (109:8) {#each games as game, i}
7251
+ // (119:8) {#each games as game, i}
7258
7252
  function create_each_block$2(ctx) {
7259
7253
  let div;
7254
+ let span;
7255
+ let t0;
7256
+ let span_class_value;
7257
+ let t1;
7260
7258
  let img;
7261
7259
  let img_src_value;
7262
7260
  let img_alt_value;
7263
7261
  let img_title_value;
7264
- let t;
7262
+ let t2;
7265
7263
  let mounted;
7266
7264
  let dispose;
7267
7265
 
7268
7266
  function click_handler_1() {
7269
- return /*click_handler_1*/ ctx[12](/*game*/ ctx[28]);
7267
+ return /*click_handler_1*/ ctx[16](/*game*/ ctx[34]);
7268
+ }
7269
+
7270
+ function mouseenter_handler() {
7271
+ return /*mouseenter_handler*/ ctx[17](/*i*/ ctx[36]);
7270
7272
  }
7271
7273
 
7272
7274
  const block = {
7273
7275
  c: function create() {
7274
7276
  div = element("div");
7277
+ span = element("span");
7278
+ t0 = text("Play now");
7279
+ t1 = space();
7275
7280
  img = element("img");
7276
- t = space();
7277
- if (img.src !== (img_src_value = /*game*/ ctx[28].thumbnail)) attr_dev(img, "src", img_src_value);
7281
+ t2 = space();
7282
+
7283
+ attr_dev(span, "class", span_class_value = "PlayNowButton " + (/*hover*/ ctx[3] && /*hoverIndex*/ ctx[4] == /*i*/ ctx[36]
7284
+ ? "itemHover"
7285
+ : ""));
7286
+
7287
+ add_location(span, file$3, 120, 12, 3794);
7288
+ if (img.src !== (img_src_value = /*game*/ ctx[34].thumbnail)) attr_dev(img, "src", img_src_value);
7278
7289
  attr_dev(img, "width", "132px");
7279
7290
  attr_dev(img, "height", "100px");
7280
- attr_dev(img, "alt", img_alt_value = /*game*/ ctx[28].name);
7281
- attr_dev(img, "title", img_title_value = /*game*/ ctx[28].name);
7282
- add_location(img, file$3, 110, 12, 3556);
7291
+ attr_dev(img, "alt", img_alt_value = /*game*/ ctx[34].name);
7292
+ attr_dev(img, "title", img_title_value = /*game*/ ctx[34].name);
7293
+ add_location(img, file$3, 121, 12, 3897);
7283
7294
  attr_dev(div, "class", "item");
7284
- add_location(div, file$3, 109, 10, 3490);
7295
+ add_location(div, file$3, 119, 10, 3667);
7285
7296
  },
7286
7297
  m: function mount(target, anchor) {
7287
7298
  insert_dev(target, div, anchor);
7299
+ append_dev(div, span);
7300
+ append_dev(span, t0);
7301
+ append_dev(div, t1);
7288
7302
  append_dev(div, img);
7289
- append_dev(div, t);
7303
+ append_dev(div, t2);
7290
7304
 
7291
7305
  if (!mounted) {
7292
- dispose = listen_dev(div, "click", click_handler_1, false, false, false);
7306
+ dispose = [
7307
+ listen_dev(div, "click", click_handler_1, false, false, false),
7308
+ listen_dev(div, "mouseenter", mouseenter_handler, false, false, false),
7309
+ listen_dev(div, "mouseleave", /*mouseleave_handler*/ ctx[18], false, false, false)
7310
+ ];
7311
+
7293
7312
  mounted = true;
7294
7313
  }
7295
7314
  },
7296
7315
  p: function update(new_ctx, dirty) {
7297
7316
  ctx = new_ctx;
7298
7317
 
7299
- if (dirty & /*games*/ 1 && img.src !== (img_src_value = /*game*/ ctx[28].thumbnail)) {
7318
+ if (dirty[0] & /*hover, hoverIndex*/ 24 && span_class_value !== (span_class_value = "PlayNowButton " + (/*hover*/ ctx[3] && /*hoverIndex*/ ctx[4] == /*i*/ ctx[36]
7319
+ ? "itemHover"
7320
+ : ""))) {
7321
+ attr_dev(span, "class", span_class_value);
7322
+ }
7323
+
7324
+ if (dirty[0] & /*games*/ 1 && img.src !== (img_src_value = /*game*/ ctx[34].thumbnail)) {
7300
7325
  attr_dev(img, "src", img_src_value);
7301
7326
  }
7302
7327
 
7303
- if (dirty & /*games*/ 1 && img_alt_value !== (img_alt_value = /*game*/ ctx[28].name)) {
7328
+ if (dirty[0] & /*games*/ 1 && img_alt_value !== (img_alt_value = /*game*/ ctx[34].name)) {
7304
7329
  attr_dev(img, "alt", img_alt_value);
7305
7330
  }
7306
7331
 
7307
- if (dirty & /*games*/ 1 && img_title_value !== (img_title_value = /*game*/ ctx[28].name)) {
7332
+ if (dirty[0] & /*games*/ 1 && img_title_value !== (img_title_value = /*game*/ ctx[34].name)) {
7308
7333
  attr_dev(img, "title", img_title_value);
7309
7334
  }
7310
7335
  },
7311
7336
  d: function destroy(detaching) {
7312
7337
  if (detaching) detach_dev(div);
7313
7338
  mounted = false;
7314
- dispose();
7339
+ run_all(dispose);
7315
7340
  }
7316
7341
  };
7317
7342
 
@@ -7319,7 +7344,7 @@
7319
7344
  block,
7320
7345
  id: create_each_block$2.name,
7321
7346
  type: "each",
7322
- source: "(109:8) {#each games as game, i}",
7347
+ source: "(119:8) {#each games as game, i}",
7323
7348
  ctx
7324
7349
  });
7325
7350
 
@@ -7336,7 +7361,7 @@
7336
7361
  if (if_block) if_block.c();
7337
7362
  this.c = noop$1;
7338
7363
  attr_dev(div, "class", "TournamentsGamesSlider");
7339
- add_location(div, file$3, 99, 0, 2979);
7364
+ add_location(div, file$3, 109, 0, 3156);
7340
7365
  },
7341
7366
  l: function claim(nodes) {
7342
7367
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -7344,9 +7369,9 @@
7344
7369
  m: function mount(target, anchor) {
7345
7370
  insert_dev(target, div, anchor);
7346
7371
  if (if_block) if_block.m(div, null);
7347
- /*div_binding*/ ctx[14](div);
7372
+ /*div_binding*/ ctx[20](div);
7348
7373
  },
7349
- p: function update(ctx, [dirty]) {
7374
+ p: function update(ctx, dirty) {
7350
7375
  if (/*games*/ ctx[0]) {
7351
7376
  if (if_block) {
7352
7377
  if_block.p(ctx, dirty);
@@ -7365,7 +7390,7 @@
7365
7390
  d: function destroy(detaching) {
7366
7391
  if (detaching) detach_dev(div);
7367
7392
  if (if_block) if_block.d();
7368
- /*div_binding*/ ctx[14](null);
7393
+ /*div_binding*/ ctx[20](null);
7369
7394
  }
7370
7395
  };
7371
7396
 
@@ -7399,6 +7424,18 @@
7399
7424
  let slider;
7400
7425
  let xDown = null;
7401
7426
  let yDown = null;
7427
+ let hover = false;
7428
+ let hoverIndex = "";
7429
+
7430
+ const enter = index => {
7431
+ $$invalidate(3, hover = true);
7432
+ $$invalidate(4, hoverIndex = index);
7433
+ };
7434
+
7435
+ const leave = () => {
7436
+ $$invalidate(3, hover = false);
7437
+ $$invalidate(4, hoverIndex = -1);
7438
+ };
7402
7439
 
7403
7440
  const getTouches = evt => {
7404
7441
  return evt.touches || evt.originalEvent.touches;
@@ -7491,6 +7528,8 @@
7491
7528
 
7492
7529
  const click_handler = () => move(-1);
7493
7530
  const click_handler_1 = game => gameClicked(game);
7531
+ const mouseenter_handler = i => enter(i);
7532
+ const mouseleave_handler = () => leave();
7494
7533
  const click_handler_2 = () => move(1);
7495
7534
 
7496
7535
  function div_binding($$value) {
@@ -7501,10 +7540,10 @@
7501
7540
  }
7502
7541
 
7503
7542
  $$self.$$set = $$props => {
7504
- if ("tournamenturl" in $$props) $$invalidate(7, tournamenturl = $$props.tournamenturl);
7505
- if ("scrollby" in $$props) $$invalidate(8, scrollby = $$props.scrollby);
7506
- if ("pagfactor" in $$props) $$invalidate(9, pagfactor = $$props.pagfactor);
7507
- if ("lang" in $$props) $$invalidate(10, lang = $$props.lang);
7543
+ if ("tournamenturl" in $$props) $$invalidate(11, tournamenturl = $$props.tournamenturl);
7544
+ if ("scrollby" in $$props) $$invalidate(12, scrollby = $$props.scrollby);
7545
+ if ("pagfactor" in $$props) $$invalidate(13, pagfactor = $$props.pagfactor);
7546
+ if ("lang" in $$props) $$invalidate(14, lang = $$props.lang);
7508
7547
  };
7509
7548
 
7510
7549
  $$self.$capture_state = () => ({
@@ -7524,6 +7563,10 @@
7524
7563
  slider,
7525
7564
  xDown,
7526
7565
  yDown,
7566
+ hover,
7567
+ hoverIndex,
7568
+ enter,
7569
+ leave,
7527
7570
  getTouches,
7528
7571
  handleTouchStart,
7529
7572
  handleTouchMove,
@@ -7537,10 +7580,10 @@
7537
7580
  });
7538
7581
 
7539
7582
  $$self.$inject_state = $$props => {
7540
- if ("tournamenturl" in $$props) $$invalidate(7, tournamenturl = $$props.tournamenturl);
7541
- if ("scrollby" in $$props) $$invalidate(8, scrollby = $$props.scrollby);
7542
- if ("pagfactor" in $$props) $$invalidate(9, pagfactor = $$props.pagfactor);
7543
- if ("lang" in $$props) $$invalidate(10, lang = $$props.lang);
7583
+ if ("tournamenturl" in $$props) $$invalidate(11, tournamenturl = $$props.tournamenturl);
7584
+ if ("scrollby" in $$props) $$invalidate(12, scrollby = $$props.scrollby);
7585
+ if ("pagfactor" in $$props) $$invalidate(13, pagfactor = $$props.pagfactor);
7586
+ if ("lang" in $$props) $$invalidate(14, lang = $$props.lang);
7544
7587
  if ("userAgent" in $$props) userAgent = $$props.userAgent;
7545
7588
  if ("items" in $$props) items = $$props.items;
7546
7589
  if ("totalPaginationPixels" in $$props) totalPaginationPixels = $$props.totalPaginationPixels;
@@ -7551,8 +7594,10 @@
7551
7594
  if ("slider" in $$props) $$invalidate(2, slider = $$props.slider);
7552
7595
  if ("xDown" in $$props) xDown = $$props.xDown;
7553
7596
  if ("yDown" in $$props) yDown = $$props.yDown;
7554
- if ("atStart" in $$props) $$invalidate(3, atStart = $$props.atStart);
7555
- if ("atEnd" in $$props) $$invalidate(4, atEnd = $$props.atEnd);
7597
+ if ("hover" in $$props) $$invalidate(3, hover = $$props.hover);
7598
+ if ("hoverIndex" in $$props) $$invalidate(4, hoverIndex = $$props.hoverIndex);
7599
+ if ("atStart" in $$props) $$invalidate(5, atStart = $$props.atStart);
7600
+ if ("atEnd" in $$props) $$invalidate(6, atEnd = $$props.atEnd);
7556
7601
  };
7557
7602
 
7558
7603
  if ($$props && "$$inject" in $$props) {
@@ -7560,19 +7605,19 @@
7560
7605
  }
7561
7606
 
7562
7607
  $$self.$$.update = () => {
7563
- if ($$self.$$.dirty & /*offset*/ 2) {
7564
- $$invalidate(3, atStart = offset === 0);
7608
+ if ($$self.$$.dirty[0] & /*offset*/ 2) {
7609
+ $$invalidate(5, atStart = offset === 0);
7565
7610
  }
7566
7611
 
7567
- if ($$self.$$.dirty & /*offset, pagfactor, games, scrollby*/ 771) {
7568
- $$invalidate(4, atEnd = offset <= parseInt(pagfactor, 10) * (games.length - parseInt(scrollby, 10)) * -1);
7612
+ if ($$self.$$.dirty[0] & /*offset, pagfactor, games, scrollby*/ 12291) {
7613
+ $$invalidate(6, atEnd = offset <= parseInt(pagfactor, 10) * (games.length - parseInt(scrollby, 10)) * -1);
7569
7614
  }
7570
7615
 
7571
- if ($$self.$$.dirty & /*tournamenturl*/ 128) {
7616
+ if ($$self.$$.dirty[0] & /*tournamenturl*/ 2048) {
7572
7617
  tournamenturl && fetchData();
7573
7618
  }
7574
7619
 
7575
- if ($$self.$$.dirty & /*slider*/ 4) {
7620
+ if ($$self.$$.dirty[0] & /*slider*/ 4) {
7576
7621
  // @TODO
7577
7622
  // $: scrollby && pagfactor && getTotalPixels();
7578
7623
  slider && addEventListeners();
@@ -7585,8 +7630,12 @@
7585
7630
  games,
7586
7631
  offset,
7587
7632
  slider,
7633
+ hover,
7634
+ hoverIndex,
7588
7635
  atStart,
7589
7636
  atEnd,
7637
+ enter,
7638
+ leave,
7590
7639
  move,
7591
7640
  gameClicked,
7592
7641
  tournamenturl,
@@ -7595,6 +7644,8 @@
7595
7644
  lang,
7596
7645
  click_handler,
7597
7646
  click_handler_1,
7647
+ mouseenter_handler,
7648
+ mouseleave_handler,
7598
7649
  click_handler_2,
7599
7650
  div_binding
7600
7651
  ];
@@ -7603,7 +7654,7 @@
7603
7654
  class CasinoTournamentsThumbnailGamesSlider extends SvelteElement {
7604
7655
  constructor(options) {
7605
7656
  super();
7606
- 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}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}</style>`;
7657
+ 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>`;
7607
7658
 
7608
7659
  init(
7609
7660
  this,
@@ -7616,11 +7667,12 @@
7616
7667
  create_fragment$3,
7617
7668
  safe_not_equal,
7618
7669
  {
7619
- tournamenturl: 7,
7620
- scrollby: 8,
7621
- pagfactor: 9,
7622
- lang: 10
7623
- }
7670
+ tournamenturl: 11,
7671
+ scrollby: 12,
7672
+ pagfactor: 13,
7673
+ lang: 14
7674
+ },
7675
+ [-1, -1]
7624
7676
  );
7625
7677
 
7626
7678
  if (options) {
@@ -7640,7 +7692,7 @@
7640
7692
  }
7641
7693
 
7642
7694
  get tournamenturl() {
7643
- return this.$$.ctx[7];
7695
+ return this.$$.ctx[11];
7644
7696
  }
7645
7697
 
7646
7698
  set tournamenturl(tournamenturl) {
@@ -7649,7 +7701,7 @@
7649
7701
  }
7650
7702
 
7651
7703
  get scrollby() {
7652
- return this.$$.ctx[8];
7704
+ return this.$$.ctx[12];
7653
7705
  }
7654
7706
 
7655
7707
  set scrollby(scrollby) {
@@ -7658,7 +7710,7 @@
7658
7710
  }
7659
7711
 
7660
7712
  get pagfactor() {
7661
- return this.$$.ctx[9];
7713
+ return this.$$.ctx[13];
7662
7714
  }
7663
7715
 
7664
7716
  set pagfactor(pagfactor) {
@@ -7667,7 +7719,7 @@
7667
7719
  }
7668
7720
 
7669
7721
  get lang() {
7670
- return this.$$.ctx[10];
7722
+ return this.$$.ctx[14];
7671
7723
  }
7672
7724
 
7673
7725
  set lang(lang) {
@@ -11198,8 +11250,6 @@
11198
11250
  !customElements.get('casino-tournaments-table') && customElements.define('casino-tournaments-table', CasinoTournamentsTable);
11199
11251
 
11200
11252
  /* src/CasinoTournamentsPageController.svelte generated by Svelte v3.37.0 */
11201
-
11202
- const { console: console_1 } = globals;
11203
11253
  const file = "src/CasinoTournamentsPageController.svelte";
11204
11254
 
11205
11255
  function get_each_context(ctx, list, i) {
@@ -11208,7 +11258,7 @@
11208
11258
  return child_ctx;
11209
11259
  }
11210
11260
 
11211
- // (162:0) {:else}
11261
+ // (156:0) {:else}
11212
11262
  function create_else_block(ctx) {
11213
11263
  let div5;
11214
11264
  let div1;
@@ -11254,35 +11304,35 @@
11254
11304
  attr_dev(path, "stroke-linejoin", "round");
11255
11305
  attr_dev(path, "stroke-width", "2");
11256
11306
  attr_dev(path, "d", "M15 19l-7-7 7-7");
11257
- add_location(path, file, 167, 10, 5575);
11307
+ add_location(path, file, 161, 10, 5384);
11258
11308
  attr_dev(svg, "fill", "none");
11259
11309
  attr_dev(svg, "stroke", "currentColor");
11260
11310
  attr_dev(svg, "width", "24");
11261
11311
  attr_dev(svg, "height", "24");
11262
11312
  attr_dev(svg, "viewBox", "0 0 24 24");
11263
11313
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
11264
- add_location(svg, file, 166, 8, 5447);
11265
- add_location(p, file, 169, 8, 5696);
11314
+ add_location(svg, file, 160, 8, 5256);
11315
+ add_location(p, file, 163, 8, 5505);
11266
11316
  attr_dev(div0, "class", "BackButton");
11267
- add_location(div0, file, 165, 6, 5388);
11317
+ add_location(div0, file, 159, 6, 5197);
11268
11318
  attr_dev(div1, "class", "TopButtons");
11269
- add_location(div1, file, 164, 4, 5357);
11319
+ add_location(div1, file, 158, 4, 5166);
11270
11320
 
11271
11321
  attr_dev(div2, "class", div2_class_value = "" + ((isMobile(/*userAgent*/ ctx[8]) ? "MobileClass" : "") + (/*showleaderboard*/ ctx[0] == "true"
11272
11322
  ? "TournamentCardDetails"
11273
11323
  : "FullSize")));
11274
11324
 
11275
- add_location(div2, file, 188, 6, 6504);
11325
+ add_location(div2, file, 182, 6, 6313);
11276
11326
 
11277
11327
  attr_dev(div3, "class", div3_class_value = /*showleaderboard*/ ctx[0] == "true"
11278
11328
  ? "TournamentTableDetails "
11279
11329
  : "DisplayNone");
11280
11330
 
11281
- add_location(div3, file, 209, 6, 7327);
11331
+ add_location(div3, file, 203, 6, 7136);
11282
11332
  attr_dev(div4, "class", "TournamentContentDetails " + (isMobile(/*userAgent*/ ctx[8]) ? "MobileClass" : ""));
11283
- add_location(div4, file, 187, 4, 6416);
11333
+ add_location(div4, file, 181, 4, 6225);
11284
11334
  attr_dev(div5, "class", "TournamentsPage");
11285
- add_location(div5, file, 162, 2, 5322);
11335
+ add_location(div5, file, 156, 2, 5131);
11286
11336
  },
11287
11337
  m: function mount(target, anchor) {
11288
11338
  insert_dev(target, div5, anchor);
@@ -11373,14 +11423,14 @@
11373
11423
  block,
11374
11424
  id: create_else_block.name,
11375
11425
  type: "else",
11376
- source: "(162:0) {:else}",
11426
+ source: "(156:0) {:else}",
11377
11427
  ctx
11378
11428
  });
11379
11429
 
11380
11430
  return block;
11381
11431
  }
11382
11432
 
11383
- // (160:0) {#if isLoading}
11433
+ // (154:0) {#if isLoading}
11384
11434
  function create_if_block(ctx) {
11385
11435
  let p;
11386
11436
 
@@ -11388,7 +11438,7 @@
11388
11438
  c: function create() {
11389
11439
  p = element("p");
11390
11440
  p.textContent = "Loading, please wait ...";
11391
- add_location(p, file, 160, 2, 5280);
11441
+ add_location(p, file, 154, 2, 5089);
11392
11442
  },
11393
11443
  m: function mount(target, anchor) {
11394
11444
  insert_dev(target, p, anchor);
@@ -11403,14 +11453,14 @@
11403
11453
  block,
11404
11454
  id: create_if_block.name,
11405
11455
  type: "if",
11406
- source: "(160:0) {#if isLoading}",
11456
+ source: "(154:0) {#if isLoading}",
11407
11457
  ctx
11408
11458
  });
11409
11459
 
11410
11460
  return block;
11411
11461
  }
11412
11462
 
11413
- // (190:8) {#if tournamentDetails}
11463
+ // (184:8) {#if tournamentDetails}
11414
11464
  function create_if_block_4(ctx) {
11415
11465
  let casino_tournaments_thumbnail_controller;
11416
11466
  let casino_tournaments_thumbnail_controller_tournamenturl_value;
@@ -11427,7 +11477,7 @@
11427
11477
  set_custom_element_data(casino_tournaments_thumbnail_controller, "showslider", "true");
11428
11478
  set_custom_element_data(casino_tournaments_thumbnail_controller, "showenrolled", "true");
11429
11479
  set_custom_element_data(casino_tournaments_thumbnail_controller, "fullsize", casino_tournaments_thumbnail_controller_fullsize_value = !!/*showleaderboard*/ ctx[0]);
11430
- add_location(casino_tournaments_thumbnail_controller, file, 190, 10, 6669);
11480
+ add_location(casino_tournaments_thumbnail_controller, file, 184, 10, 6478);
11431
11481
  },
11432
11482
  m: function mount(target, anchor) {
11433
11483
  insert_dev(target, casino_tournaments_thumbnail_controller, anchor);
@@ -11462,14 +11512,14 @@
11462
11512
  block,
11463
11513
  id: create_if_block_4.name,
11464
11514
  type: "if",
11465
- source: "(190:8) {#if tournamentDetails}",
11515
+ source: "(184:8) {#if tournamentDetails}",
11466
11516
  ctx
11467
11517
  });
11468
11518
 
11469
11519
  return block;
11470
11520
  }
11471
11521
 
11472
- // (202:8) {#if tournamentDescription.length > 0}
11522
+ // (196:8) {#if tournamentDescription.length > 0}
11473
11523
  function create_if_block_3(ctx) {
11474
11524
  let each_1_anchor;
11475
11525
  let each_value = /*tournamentDescription*/ ctx[5];
@@ -11530,14 +11580,14 @@
11530
11580
  block,
11531
11581
  id: create_if_block_3.name,
11532
11582
  type: "if",
11533
- source: "(202:8) {#if tournamentDescription.length > 0}",
11583
+ source: "(196:8) {#if tournamentDescription.length > 0}",
11534
11584
  ctx
11535
11585
  });
11536
11586
 
11537
11587
  return block;
11538
11588
  }
11539
11589
 
11540
- // (203:10) {#each tournamentDescription as desc}
11590
+ // (197:10) {#each tournamentDescription as desc}
11541
11591
  function create_each_block(ctx) {
11542
11592
  let casino_tournaments_details;
11543
11593
  let casino_tournaments_details_title_value;
@@ -11548,7 +11598,7 @@
11548
11598
  casino_tournaments_details = element("casino-tournaments-details");
11549
11599
  set_custom_element_data(casino_tournaments_details, "title", casino_tournaments_details_title_value = /*desc*/ ctx[30].title);
11550
11600
  set_custom_element_data(casino_tournaments_details, "text", casino_tournaments_details_text_value = /*desc*/ ctx[30].description);
11551
- add_location(casino_tournaments_details, file, 203, 12, 7161);
11601
+ add_location(casino_tournaments_details, file, 197, 12, 6970);
11552
11602
  },
11553
11603
  m: function mount(target, anchor) {
11554
11604
  insert_dev(target, casino_tournaments_details, anchor);
@@ -11571,14 +11621,14 @@
11571
11621
  block,
11572
11622
  id: create_each_block.name,
11573
11623
  type: "each",
11574
- source: "(203:10) {#each tournamentDescription as desc}",
11624
+ source: "(197:10) {#each tournamentDescription as desc}",
11575
11625
  ctx
11576
11626
  });
11577
11627
 
11578
11628
  return block;
11579
11629
  }
11580
11630
 
11581
- // (211:8) {#if showleaderboard == "true"}
11631
+ // (205:8) {#if showleaderboard == "true"}
11582
11632
  function create_if_block_1(ctx) {
11583
11633
  let if_block_anchor;
11584
11634
  let if_block = /*showTable*/ ctx[7] == true && create_if_block_2(ctx);
@@ -11614,14 +11664,14 @@
11614
11664
  block,
11615
11665
  id: create_if_block_1.name,
11616
11666
  type: "if",
11617
- source: "(211:8) {#if showleaderboard == \\\"true\\\"}",
11667
+ source: "(205:8) {#if showleaderboard == \\\"true\\\"}",
11618
11668
  ctx
11619
11669
  });
11620
11670
 
11621
11671
  return block;
11622
11672
  }
11623
11673
 
11624
- // (212:10) {#if showTable == true}
11674
+ // (206:10) {#if showTable == true}
11625
11675
  function create_if_block_2(ctx) {
11626
11676
  let casino_tournaments_table;
11627
11677
 
@@ -11630,7 +11680,7 @@
11630
11680
  casino_tournaments_table = element("casino-tournaments-table");
11631
11681
  set_custom_element_data(casino_tournaments_table, "firstrow", "true");
11632
11682
  set_custom_element_data(casino_tournaments_table, "sortable", "false");
11633
- add_location(casino_tournaments_table, file, 212, 12, 7499);
11683
+ add_location(casino_tournaments_table, file, 206, 12, 7308);
11634
11684
  },
11635
11685
  m: function mount(target, anchor) {
11636
11686
  insert_dev(target, casino_tournaments_table, anchor);
@@ -11644,7 +11694,7 @@
11644
11694
  block,
11645
11695
  id: create_if_block_2.name,
11646
11696
  type: "if",
11647
- source: "(212:10) {#if showTable == true}",
11697
+ source: "(206:10) {#if showTable == true}",
11648
11698
  ctx
11649
11699
  });
11650
11700
 
@@ -11788,44 +11838,33 @@
11788
11838
  let reqHeaders = new Headers();
11789
11839
  reqHeaders.append("language", lang);
11790
11840
  reqHeaders.append("platform", getDevice(userAgent));
11791
-
11792
- if (isLoggedIn) {
11793
- reqHeaders.append("X-SessionID", sessionID);
11794
- }
11795
-
11796
11841
  let requestOptions = { method: "GET", headers: reqHeaders };
11797
11842
 
11798
- setTimeout(
11799
- () => {
11800
- fetch(url, requestOptions).then(res => res.json()).then(res => {
11801
- console.log("res", res);
11802
- tournamentTableData = transformTableData(res.items);
11803
- $$invalidate(7, showTable = true);
11804
-
11805
- // @TODO data is not iterable error fix
11806
- window.postMessage(
11807
- {
11808
- type: "CasinoTableData",
11809
- tableData: tournamentTableData
11810
- },
11811
- window.location.href
11812
- );
11813
-
11814
- window.postMessage({ type: "CasinoTableColumns", tableColumns }, window.location.href);
11815
-
11816
- if (firstRowAvailable) {
11817
- window.postMessage(
11818
- {
11819
- type: "CasinoTableFirstRowData",
11820
- tableData: firstRowData
11821
- },
11822
- window.location.href
11823
- );
11824
- }
11825
- });
11826
- },
11827
- 100
11828
- );
11843
+ fetch(url, requestOptions).then(res => res.json()).then(res => {
11844
+ tournamentTableData = transformTableData(res.items);
11845
+ $$invalidate(7, showTable = true);
11846
+
11847
+ // @TODO data is not iterable error fix
11848
+ window.postMessage(
11849
+ {
11850
+ type: "CasinoTableData",
11851
+ tableData: tournamentTableData
11852
+ },
11853
+ window.location.href
11854
+ );
11855
+
11856
+ window.postMessage({ type: "CasinoTableColumns", tableColumns }, window.location.href);
11857
+
11858
+ if (firstRowAvailable) {
11859
+ window.postMessage(
11860
+ {
11861
+ type: "CasinoTableFirstRowData",
11862
+ tableData: firstRowData
11863
+ },
11864
+ window.location.href
11865
+ );
11866
+ }
11867
+ });
11829
11868
  };
11830
11869
 
11831
11870
  const messageHandler = e => {
@@ -11895,7 +11934,7 @@
11895
11934
  ];
11896
11935
 
11897
11936
  Object.keys($$props).forEach(key => {
11898
- if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console_1.warn(`<undefined> was created with unknown prop '${key}'`);
11937
+ if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
11899
11938
  });
11900
11939
 
11901
11940
  const click_handler = () => goBack();
@@ -11979,8 +12018,8 @@
11979
12018
  session && userid && setSession();
11980
12019
  }
11981
12020
 
11982
- if ($$self.$$.dirty[0] & /*tourid, endpoint*/ 1032) {
11983
- tourid && endpoint && initialLoad();
12021
+ if ($$self.$$.dirty[0] & /*tourid, endpoint, session*/ 1034) {
12022
+ tourid && endpoint && session && initialLoad();
11984
12023
  }
11985
12024
 
11986
12025
  if ($$self.$$.dirty[0] & /*tourid, cmsendpoint*/ 3072) {