@everymatrix/casino-game-page 0.0.82 → 0.0.86

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.
@@ -465,10 +465,10 @@
465
465
  return iterator
466
466
  }
467
467
 
468
- function Headers(headers) {
468
+ function Headers$1(headers) {
469
469
  this.map = {};
470
470
 
471
- if (headers instanceof Headers) {
471
+ if (headers instanceof Headers$1) {
472
472
  headers.forEach(function(value, name) {
473
473
  this.append(name, value);
474
474
  }, this);
@@ -483,31 +483,31 @@
483
483
  }
484
484
  }
485
485
 
486
- Headers.prototype.append = function(name, value) {
486
+ Headers$1.prototype.append = function(name, value) {
487
487
  name = normalizeName(name);
488
488
  value = normalizeValue(value);
489
489
  var oldValue = this.map[name];
490
490
  this.map[name] = oldValue ? oldValue + ', ' + value : value;
491
491
  };
492
492
 
493
- Headers.prototype['delete'] = function(name) {
493
+ Headers$1.prototype['delete'] = function(name) {
494
494
  delete this.map[normalizeName(name)];
495
495
  };
496
496
 
497
- Headers.prototype.get = function(name) {
497
+ Headers$1.prototype.get = function(name) {
498
498
  name = normalizeName(name);
499
499
  return this.has(name) ? this.map[name] : null
500
500
  };
501
501
 
502
- Headers.prototype.has = function(name) {
502
+ Headers$1.prototype.has = function(name) {
503
503
  return this.map.hasOwnProperty(normalizeName(name))
504
504
  };
505
505
 
506
- Headers.prototype.set = function(name, value) {
506
+ Headers$1.prototype.set = function(name, value) {
507
507
  this.map[normalizeName(name)] = normalizeValue(value);
508
508
  };
509
509
 
510
- Headers.prototype.forEach = function(callback, thisArg) {
510
+ Headers$1.prototype.forEach = function(callback, thisArg) {
511
511
  for (var name in this.map) {
512
512
  if (this.map.hasOwnProperty(name)) {
513
513
  callback.call(thisArg, this.map[name], name, this);
@@ -515,7 +515,7 @@
515
515
  }
516
516
  };
517
517
 
518
- Headers.prototype.keys = function() {
518
+ Headers$1.prototype.keys = function() {
519
519
  var items = [];
520
520
  this.forEach(function(value, name) {
521
521
  items.push(name);
@@ -523,7 +523,7 @@
523
523
  return iteratorFor(items)
524
524
  };
525
525
 
526
- Headers.prototype.values = function() {
526
+ Headers$1.prototype.values = function() {
527
527
  var items = [];
528
528
  this.forEach(function(value) {
529
529
  items.push(value);
@@ -531,7 +531,7 @@
531
531
  return iteratorFor(items)
532
532
  };
533
533
 
534
- Headers.prototype.entries = function() {
534
+ Headers$1.prototype.entries = function() {
535
535
  var items = [];
536
536
  this.forEach(function(value, name) {
537
537
  items.push([name, value]);
@@ -540,7 +540,7 @@
540
540
  };
541
541
 
542
542
  if (support.iterable) {
543
- Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
543
+ Headers$1.prototype[Symbol.iterator] = Headers$1.prototype.entries;
544
544
  }
545
545
 
546
546
  function consumed(body) {
@@ -735,7 +735,7 @@
735
735
  this.url = input.url;
736
736
  this.credentials = input.credentials;
737
737
  if (!options.headers) {
738
- this.headers = new Headers(input.headers);
738
+ this.headers = new Headers$1(input.headers);
739
739
  }
740
740
  this.method = input.method;
741
741
  this.mode = input.mode;
@@ -750,7 +750,7 @@
750
750
 
751
751
  this.credentials = options.credentials || this.credentials || 'same-origin';
752
752
  if (options.headers || !this.headers) {
753
- this.headers = new Headers(options.headers);
753
+ this.headers = new Headers$1(options.headers);
754
754
  }
755
755
  this.method = normalizeMethod(options.method || this.method || 'GET');
756
756
  this.mode = options.mode || this.mode || null;
@@ -799,7 +799,7 @@
799
799
  }
800
800
 
801
801
  function parseHeaders(rawHeaders) {
802
- var headers = new Headers();
802
+ var headers = new Headers$1();
803
803
  // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space
804
804
  // https://tools.ietf.org/html/rfc7230#section-3.2
805
805
  var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ');
@@ -836,7 +836,7 @@
836
836
  this.status = options.status === undefined ? 200 : options.status;
837
837
  this.ok = this.status >= 200 && this.status < 300;
838
838
  this.statusText = options.statusText === undefined ? '' : '' + options.statusText;
839
- this.headers = new Headers(options.headers);
839
+ this.headers = new Headers$1(options.headers);
840
840
  this.url = options.url || '';
841
841
  this._initBody(bodyInit);
842
842
  }
@@ -847,7 +847,7 @@
847
847
  return new Response(this._bodyInit, {
848
848
  status: this.status,
849
849
  statusText: this.statusText,
850
- headers: new Headers(this.headers),
850
+ headers: new Headers$1(this.headers),
851
851
  url: this.url
852
852
  })
853
853
  };
@@ -955,7 +955,7 @@
955
955
  }
956
956
  }
957
957
 
958
- if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {
958
+ if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers$1)) {
959
959
  Object.getOwnPropertyNames(init.headers).forEach(function(name) {
960
960
  xhr.setRequestHeader(name, normalizeValue(init.headers[name]));
961
961
  });
@@ -984,7 +984,7 @@
984
984
 
985
985
  if (!global$1.fetch) {
986
986
  global$1.fetch = fetch$1;
987
- global$1.Headers = Headers;
987
+ global$1.Headers = Headers$1;
988
988
  global$1.Request = Request;
989
989
  global$1.Response = Response;
990
990
  }
@@ -1010,7 +1010,7 @@
1010
1010
  //
1011
1011
  // Return that as the export for use in Webpack, Browserify etc.
1012
1012
 
1013
- self.fetch.bind(self);
1013
+ var fetchNpmBrowserify = self.fetch.bind(self);
1014
1014
 
1015
1015
  /*! *****************************************************************************
1016
1016
  Copyright (c) Microsoft Corporation.
@@ -4452,6 +4452,24 @@
4452
4452
  );
4453
4453
  };
4454
4454
 
4455
+ function checkSession(endpoint, session) {
4456
+ return new Promise((resolve, reject) => {
4457
+ let reqHeaders = new Headers();
4458
+
4459
+ reqHeaders.append('X-SessionID', session);
4460
+
4461
+ let options = {
4462
+ method: 'GET',
4463
+ headers: reqHeaders
4464
+ };
4465
+
4466
+ fetchNpmBrowserify(`${endpoint}/player/session/player`, options)
4467
+ .then((res) => res.json())
4468
+ .then((data) => resolve(data))
4469
+ .catch((err) => reject(err));
4470
+ });
4471
+ }
4472
+
4455
4473
  function addNewMessages(lang, dict) {
4456
4474
  m(lang, dict);
4457
4475
  }
@@ -10200,7 +10218,7 @@
10200
10218
  const { Object: Object_1, console: console_1 } = globals;
10201
10219
  const file = "src/CasinoGamePage.svelte";
10202
10220
 
10203
- // (318:2) {:else}
10221
+ // (328:2) {:else}
10204
10222
  function create_else_block(ctx) {
10205
10223
  let div;
10206
10224
  let if_block = /*detailsObtained*/ ctx[6] && create_if_block_2(ctx);
@@ -10210,7 +10228,7 @@
10210
10228
  div = element("div");
10211
10229
  if (if_block) if_block.c();
10212
10230
  attr_dev(div, "class", "CasinoGamePageContainer");
10213
- add_location(div, file, 318, 4, 11014);
10231
+ add_location(div, file, 328, 4, 11371);
10214
10232
  },
10215
10233
  m: function mount(target, anchor) {
10216
10234
  insert_dev(target, div, anchor);
@@ -10242,14 +10260,14 @@
10242
10260
  block,
10243
10261
  id: create_else_block.name,
10244
10262
  type: "else",
10245
- source: "(318:2) {:else}",
10263
+ source: "(328:2) {:else}",
10246
10264
  ctx
10247
10265
  });
10248
10266
 
10249
10267
  return block;
10250
10268
  }
10251
10269
 
10252
- // (316:2) {#if hasErrors}
10270
+ // (326:2) {#if hasErrors}
10253
10271
  function create_if_block_1(ctx) {
10254
10272
  let p;
10255
10273
 
@@ -10258,7 +10276,7 @@
10258
10276
  p = element("p");
10259
10277
  p.textContent = "500 Error - Internal Server Error.";
10260
10278
  attr_dev(p, "class", "SearchLoading");
10261
- add_location(p, file, 316, 4, 10936);
10279
+ add_location(p, file, 326, 4, 11293);
10262
10280
  },
10263
10281
  m: function mount(target, anchor) {
10264
10282
  insert_dev(target, p, anchor);
@@ -10273,14 +10291,14 @@
10273
10291
  block,
10274
10292
  id: create_if_block_1.name,
10275
10293
  type: "if",
10276
- source: "(316:2) {#if hasErrors}",
10294
+ source: "(326:2) {#if hasErrors}",
10277
10295
  ctx
10278
10296
  });
10279
10297
 
10280
10298
  return block;
10281
10299
  }
10282
10300
 
10283
- // (313:0) {#if isLoading}
10301
+ // (323:0) {#if isLoading}
10284
10302
  function create_if_block(ctx) {
10285
10303
  let p;
10286
10304
 
@@ -10289,7 +10307,7 @@
10289
10307
  p = element("p");
10290
10308
  p.textContent = "Loading, please wait ...";
10291
10309
  attr_dev(p, "class", "SearchLoading");
10292
- add_location(p, file, 313, 2, 10852);
10310
+ add_location(p, file, 323, 2, 11209);
10293
10311
  },
10294
10312
  m: function mount(target, anchor) {
10295
10313
  insert_dev(target, p, anchor);
@@ -10304,14 +10322,14 @@
10304
10322
  block,
10305
10323
  id: create_if_block.name,
10306
10324
  type: "if",
10307
- source: "(313:0) {#if isLoading}",
10325
+ source: "(323:0) {#if isLoading}",
10308
10326
  ctx
10309
10327
  });
10310
10328
 
10311
10329
  return block;
10312
10330
  }
10313
10331
 
10314
- // (320:6) {#if detailsObtained}
10332
+ // (330:6) {#if detailsObtained}
10315
10333
  function create_if_block_2(ctx) {
10316
10334
  let if_block_anchor;
10317
10335
 
@@ -10357,14 +10375,14 @@
10357
10375
  block,
10358
10376
  id: create_if_block_2.name,
10359
10377
  type: "if",
10360
- source: "(320:6) {#if detailsObtained}",
10378
+ source: "(330:6) {#if detailsObtained}",
10361
10379
  ctx
10362
10380
  });
10363
10381
 
10364
10382
  return block;
10365
10383
  }
10366
10384
 
10367
- // (419:12) {:else}
10385
+ // (429:12) {:else}
10368
10386
  function create_else_block_5(ctx) {
10369
10387
  let div1;
10370
10388
  let h3;
@@ -10405,21 +10423,21 @@
10405
10423
  t6 = space();
10406
10424
  p = element("p");
10407
10425
  t7 = text(/*time*/ ctx[0]);
10408
- add_location(h3, file, 420, 16, 19962);
10426
+ add_location(h3, file, 430, 16, 20319);
10409
10427
  if (img.src !== (img_src_value = /*game*/ ctx[5].thumbnail)) attr_dev(img, "src", img_src_value);
10410
10428
  attr_dev(img, "class", "GameThumbnail");
10411
10429
  attr_dev(img, "alt", "game thumbnail");
10412
10430
  attr_dev(img, "loading", "lazy");
10413
- add_location(img, file, 421, 16, 19999);
10431
+ add_location(img, file, 431, 16, 20356);
10414
10432
  attr_dev(button0, "class", "LoginButton");
10415
- add_location(button0, file, 423, 18, 20152);
10433
+ add_location(button0, file, 433, 18, 20509);
10416
10434
  attr_dev(button1, "class", "RegisterButton");
10417
- add_location(button1, file, 424, 18, 20264);
10435
+ add_location(button1, file, 434, 18, 20621);
10418
10436
  attr_dev(div0, "class", "ButtonsContainer");
10419
- add_location(div0, file, 422, 16, 20103);
10420
- add_location(p, file, 426, 16, 20405);
10437
+ add_location(div0, file, 432, 16, 20460);
10438
+ add_location(p, file, 436, 16, 20762);
10421
10439
  attr_dev(div1, "class", "GameDetails");
10422
- add_location(div1, file, 419, 14, 19920);
10440
+ add_location(div1, file, 429, 14, 20277);
10423
10441
  },
10424
10442
  m: function mount(target, anchor) {
10425
10443
  insert_dev(target, div1, anchor);
@@ -10469,14 +10487,14 @@
10469
10487
  block,
10470
10488
  id: create_else_block_5.name,
10471
10489
  type: "else",
10472
- source: "(419:12) {:else}",
10490
+ source: "(429:12) {:else}",
10473
10491
  ctx
10474
10492
  });
10475
10493
 
10476
10494
  return block;
10477
10495
  }
10478
10496
 
10479
- // (397:12) {#if funMode}
10497
+ // (407:12) {#if funMode}
10480
10498
  function create_if_block_9(ctx) {
10481
10499
  let div3;
10482
10500
  let div2;
@@ -10531,18 +10549,18 @@
10531
10549
  attr_dev(iframe_1, "class", "GamesContainer");
10532
10550
  attr_dev(iframe_1, "aria-hidden", "false");
10533
10551
  if (iframe_1.src !== (iframe_1_src_value = /*game*/ ctx[5].launchUrl)) attr_dev(iframe_1, "src", iframe_1_src_value);
10534
- add_location(iframe_1, file, 399, 18, 18002);
10552
+ add_location(iframe_1, file, 409, 18, 18359);
10535
10553
  attr_dev(button0, "class", "LoginButton");
10536
- add_location(button0, file, 402, 22, 18225);
10554
+ add_location(button0, file, 412, 22, 18582);
10537
10555
  attr_dev(button1, "class", "RegisterButton");
10538
- add_location(button1, file, 403, 22, 18341);
10556
+ add_location(button1, file, 413, 22, 18698);
10539
10557
  attr_dev(div0, "class", "ButtonsContainer");
10540
- add_location(div0, file, 401, 20, 18172);
10541
- add_location(span, file, 405, 36, 18506);
10558
+ add_location(div0, file, 411, 20, 18529);
10559
+ add_location(span, file, 415, 36, 18863);
10542
10560
  attr_dev(p, "class", "Time");
10543
- add_location(p, file, 405, 20, 18490);
10561
+ add_location(p, file, 415, 20, 18847);
10544
10562
  attr_dev(div1, "class", "BottomGame");
10545
- add_location(div1, file, 400, 18, 18127);
10563
+ add_location(div1, file, 410, 18, 18484);
10546
10564
  attr_dev(div2, "id", "IframeGame");
10547
10565
 
10548
10566
  set_style(div2, "width", /*isFullscreen*/ ctx[11]
@@ -10561,12 +10579,12 @@
10561
10579
  ? "none"
10562
10580
  : /*game*/ ctx[5].height + 100 + "px");
10563
10581
 
10564
- add_location(div2, file, 398, 16, 17688);
10582
+ add_location(div2, file, 408, 16, 18045);
10565
10583
  attr_dev(div3, "id", "IframeContainer");
10566
10584
  set_style(div3, "width", /*modalFrameWidth*/ ctx[12]);
10567
10585
  set_style(div3, "height", /*modalFrameHeight*/ ctx[13]);
10568
10586
  toggle_class(div3, "FullsScreenLayout", /*isFullscreen*/ ctx[11]);
10569
- add_location(div3, file, 397, 14, 17514);
10587
+ add_location(div3, file, 407, 14, 17871);
10570
10588
  },
10571
10589
  m: function mount(target, anchor) {
10572
10590
  insert_dev(target, div3, anchor);
@@ -10671,14 +10689,14 @@
10671
10689
  block,
10672
10690
  id: create_if_block_9.name,
10673
10691
  type: "if",
10674
- source: "(397:12) {#if funMode}",
10692
+ source: "(407:12) {#if funMode}",
10675
10693
  ctx
10676
10694
  });
10677
10695
 
10678
10696
  return block;
10679
10697
  }
10680
10698
 
10681
- // (377:10) {#if isLoggedIn}
10699
+ // (387:10) {#if isLoggedIn}
10682
10700
  function create_if_block_7(ctx) {
10683
10701
  let div2;
10684
10702
  let div1;
@@ -10725,14 +10743,14 @@
10725
10743
  attr_dev(iframe_1, "class", "GamesContainer");
10726
10744
  attr_dev(iframe_1, "aria-hidden", "false");
10727
10745
  if (iframe_1.src !== (iframe_1_src_value = /*game*/ ctx[5].launchUrl)) attr_dev(iframe_1, "src", iframe_1_src_value);
10728
- add_location(iframe_1, file, 379, 16, 15707);
10746
+ add_location(iframe_1, file, 389, 16, 16064);
10729
10747
  attr_dev(button, "class", "DepositButton");
10730
- add_location(button, file, 381, 18, 15889);
10731
- add_location(span, file, 382, 34, 16022);
10748
+ add_location(button, file, 391, 18, 16246);
10749
+ add_location(span, file, 392, 34, 16379);
10732
10750
  attr_dev(p, "class", "Time");
10733
- add_location(p, file, 382, 18, 16006);
10751
+ add_location(p, file, 392, 18, 16363);
10734
10752
  attr_dev(div0, "class", "BottomGame");
10735
- add_location(div0, file, 380, 16, 15846);
10753
+ add_location(div0, file, 390, 16, 16203);
10736
10754
  attr_dev(div1, "id", "IframeGame");
10737
10755
 
10738
10756
  set_style(div1, "width", /*isFullscreen*/ ctx[11]
@@ -10751,12 +10769,12 @@
10751
10769
  ? "none"
10752
10770
  : /*game*/ ctx[5].height + 100 + "px");
10753
10771
 
10754
- add_location(div1, file, 378, 12, 15395);
10772
+ add_location(div1, file, 388, 12, 15752);
10755
10773
  attr_dev(div2, "id", "IframeContainer");
10756
10774
  set_style(div2, "width", /*modalFrameWidth*/ ctx[12]);
10757
10775
  set_style(div2, "height", /*modalFrameHeight*/ ctx[13]);
10758
10776
  toggle_class(div2, "FullsScreenLayout", /*isFullscreen*/ ctx[11]);
10759
- add_location(div2, file, 377, 12, 15225);
10777
+ add_location(div2, file, 387, 12, 15582);
10760
10778
  },
10761
10779
  m: function mount(target, anchor) {
10762
10780
  insert_dev(target, div2, anchor);
@@ -10852,14 +10870,14 @@
10852
10870
  block,
10853
10871
  id: create_if_block_7.name,
10854
10872
  type: "if",
10855
- source: "(377:10) {#if isLoggedIn}",
10873
+ source: "(387:10) {#if isLoggedIn}",
10856
10874
  ctx
10857
10875
  });
10858
10876
 
10859
10877
  return block;
10860
10878
  }
10861
10879
 
10862
- // (321:8) {#if mobileView}
10880
+ // (331:8) {#if mobileView}
10863
10881
  function create_if_block_3(ctx) {
10864
10882
  let if_block_anchor;
10865
10883
 
@@ -10904,14 +10922,14 @@
10904
10922
  block,
10905
10923
  id: create_if_block_3.name,
10906
10924
  type: "if",
10907
- source: "(321:8) {#if mobileView}",
10925
+ source: "(331:8) {#if mobileView}",
10908
10926
  ctx
10909
10927
  });
10910
10928
 
10911
10929
  return block;
10912
10930
  }
10913
10931
 
10914
- // (411:20) {:else}
10932
+ // (421:20) {:else}
10915
10933
  function create_else_block_4(ctx) {
10916
10934
  let button;
10917
10935
  let svg;
@@ -10925,14 +10943,14 @@
10925
10943
  svg = svg_element("svg");
10926
10944
  path = svg_element("path");
10927
10945
  attr_dev(path, "d", "M21.414 18.586l2.586-2.586v8h-8l2.586-2.586-5.172-5.172 2.828-2.828 5.172 5.172zm-13.656-8l2.828-2.828-5.172-5.172 2.586-2.586h-8v8l2.586-2.586 5.172 5.172zm10.828-8l-2.586-2.586h8v8l-2.586-2.586-5.172 5.172-2.828-2.828 5.172-5.172zm-8 13.656l-2.828-2.828-5.172 5.172-2.586-2.586v8h8l-2.586-2.586 5.172-5.172z");
10928
- add_location(path, file, 412, 107, 19431);
10946
+ add_location(path, file, 422, 107, 19788);
10929
10947
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
10930
10948
  attr_dev(svg, "width", "24");
10931
10949
  attr_dev(svg, "height", "24");
10932
10950
  attr_dev(svg, "viewBox", "0 0 24 24");
10933
- add_location(svg, file, 412, 24, 19348);
10951
+ add_location(svg, file, 422, 24, 19705);
10934
10952
  attr_dev(button, "class", "FullscreenButton");
10935
- add_location(button, file, 411, 22, 19252);
10953
+ add_location(button, file, 421, 22, 19609);
10936
10954
  },
10937
10955
  m: function mount(target, anchor) {
10938
10956
  insert_dev(target, button, anchor);
@@ -10956,14 +10974,14 @@
10956
10974
  block,
10957
10975
  id: create_else_block_4.name,
10958
10976
  type: "else",
10959
- source: "(411:20) {:else}",
10977
+ source: "(421:20) {:else}",
10960
10978
  ctx
10961
10979
  });
10962
10980
 
10963
10981
  return block;
10964
10982
  }
10965
10983
 
10966
- // (407:20) {#if isFullscreen}
10984
+ // (417:20) {#if isFullscreen}
10967
10985
  function create_if_block_10(ctx) {
10968
10986
  let button;
10969
10987
  let svg;
@@ -10984,22 +11002,22 @@
10984
11002
  polygon3 = svg_element("polygon");
10985
11003
  set_style(polygon0, "fill", "#fff");
10986
11004
  attr_dev(polygon0, "points", "24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t");
10987
- add_location(polygon0, file, 408, 72, 18735);
11005
+ add_location(polygon0, file, 418, 72, 19092);
10988
11006
  set_style(polygon1, "fill", "#fff");
10989
11007
  attr_dev(polygon1, "points", "0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t");
10990
- add_location(polygon1, file, 408, 180, 18843);
11008
+ add_location(polygon1, file, 418, 180, 19200);
10991
11009
  set_style(polygon2, "fill", "#fff");
10992
11010
  attr_dev(polygon2, "points", "0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t");
10993
- add_location(polygon2, file, 408, 286, 18949);
11011
+ add_location(polygon2, file, 418, 286, 19306);
10994
11012
  set_style(polygon3, "fill", "#fff");
10995
11013
  attr_dev(polygon3, "points", "20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t");
10996
- add_location(polygon3, file, 408, 389, 19052);
11014
+ add_location(polygon3, file, 418, 389, 19409);
10997
11015
  attr_dev(svg, "width", "24");
10998
11016
  attr_dev(svg, "height", "24");
10999
11017
  attr_dev(svg, "viewBox", "0 0 31 31");
11000
- add_location(svg, file, 408, 24, 18687);
11018
+ add_location(svg, file, 418, 24, 19044);
11001
11019
  attr_dev(button, "class", "FullscreenButton");
11002
- add_location(button, file, 407, 22, 18591);
11020
+ add_location(button, file, 417, 22, 18948);
11003
11021
  },
11004
11022
  m: function mount(target, anchor) {
11005
11023
  insert_dev(target, button, anchor);
@@ -11026,14 +11044,14 @@
11026
11044
  block,
11027
11045
  id: create_if_block_10.name,
11028
11046
  type: "if",
11029
- source: "(407:20) {#if isFullscreen}",
11047
+ source: "(417:20) {#if isFullscreen}",
11030
11048
  ctx
11031
11049
  });
11032
11050
 
11033
11051
  return block;
11034
11052
  }
11035
11053
 
11036
- // (388:18) {:else}
11054
+ // (398:18) {:else}
11037
11055
  function create_else_block_3(ctx) {
11038
11056
  let button;
11039
11057
  let svg;
@@ -11047,14 +11065,14 @@
11047
11065
  svg = svg_element("svg");
11048
11066
  path = svg_element("path");
11049
11067
  attr_dev(path, "d", "M21.414 18.586l2.586-2.586v8h-8l2.586-2.586-5.172-5.172 2.828-2.828 5.172 5.172zm-13.656-8l2.828-2.828-5.172-5.172 2.586-2.586h-8v8l2.586-2.586 5.172 5.172zm10.828-8l-2.586-2.586h8v8l-2.586-2.586-5.172 5.172-2.828-2.828 5.172-5.172zm-8 13.656l-2.828-2.828-5.172 5.172-2.586-2.586v8h8l-2.586-2.586 5.172-5.172z");
11050
- add_location(path, file, 389, 105, 17011);
11068
+ add_location(path, file, 399, 105, 17368);
11051
11069
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
11052
11070
  attr_dev(svg, "width", "24");
11053
11071
  attr_dev(svg, "height", "24");
11054
11072
  attr_dev(svg, "viewBox", "0 0 24 24");
11055
- add_location(svg, file, 389, 22, 16928);
11073
+ add_location(svg, file, 399, 22, 17285);
11056
11074
  attr_dev(button, "class", "FullscreenButton");
11057
- add_location(button, file, 388, 20, 16834);
11075
+ add_location(button, file, 398, 20, 17191);
11058
11076
  },
11059
11077
  m: function mount(target, anchor) {
11060
11078
  insert_dev(target, button, anchor);
@@ -11078,14 +11096,14 @@
11078
11096
  block,
11079
11097
  id: create_else_block_3.name,
11080
11098
  type: "else",
11081
- source: "(388:18) {:else}",
11099
+ source: "(398:18) {:else}",
11082
11100
  ctx
11083
11101
  });
11084
11102
 
11085
11103
  return block;
11086
11104
  }
11087
11105
 
11088
- // (384:18) {#if isFullscreen}
11106
+ // (394:18) {#if isFullscreen}
11089
11107
  function create_if_block_8(ctx) {
11090
11108
  let button;
11091
11109
  let svg;
@@ -11106,24 +11124,24 @@
11106
11124
  polygon3 = svg_element("polygon");
11107
11125
  set_style(polygon0, "fill", "#fff");
11108
11126
  attr_dev(polygon0, "points", "24.586,27.414 29.172,32 32,29.172 27.414,24.586 32,20 20,20 20,32 \t\t\t");
11109
- add_location(polygon0, file, 385, 148, 16323);
11127
+ add_location(polygon0, file, 395, 148, 16680);
11110
11128
  set_style(polygon1, "fill", "#fff");
11111
11129
  attr_dev(polygon1, "points", "0,12 12,12 12,0 7.414,4.586 2.875,0.043 0.047,2.871 4.586,7.414 \t\t\t");
11112
- add_location(polygon1, file, 385, 256, 16431);
11130
+ add_location(polygon1, file, 395, 256, 16788);
11113
11131
  set_style(polygon2, "fill", "#fff");
11114
11132
  attr_dev(polygon2, "points", "0,29.172 2.828,32 7.414,27.414 12,32 12,20 0,20 4.586,24.586 \t\t\t");
11115
- add_location(polygon2, file, 385, 362, 16537);
11133
+ add_location(polygon2, file, 395, 362, 16894);
11116
11134
  set_style(polygon3, "fill", "#fff");
11117
11135
  attr_dev(polygon3, "points", "20,12 32,12 27.414,7.414 31.961,2.871 29.133,0.043 24.586,4.586 20,0 \t\t\t");
11118
- add_location(polygon3, file, 385, 465, 16640);
11136
+ add_location(polygon3, file, 395, 465, 16997);
11119
11137
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
11120
11138
  attr_dev(svg, "xmlns:xlink", "http://www.w3.org/1999/xlink");
11121
11139
  attr_dev(svg, "width", "24");
11122
11140
  attr_dev(svg, "height", "24");
11123
11141
  attr_dev(svg, "viewBox", "0 0 31 31");
11124
- add_location(svg, file, 385, 22, 16197);
11142
+ add_location(svg, file, 395, 22, 16554);
11125
11143
  attr_dev(button, "class", "FullscreenButton");
11126
- add_location(button, file, 384, 20, 16103);
11144
+ add_location(button, file, 394, 20, 16460);
11127
11145
  },
11128
11146
  m: function mount(target, anchor) {
11129
11147
  insert_dev(target, button, anchor);
@@ -11150,14 +11168,14 @@
11150
11168
  block,
11151
11169
  id: create_if_block_8.name,
11152
11170
  type: "if",
11153
- source: "(384:18) {#if isFullscreen}",
11171
+ source: "(394:18) {#if isFullscreen}",
11154
11172
  ctx
11155
11173
  });
11156
11174
 
11157
11175
  return block;
11158
11176
  }
11159
11177
 
11160
- // (365:10) {:else}
11178
+ // (375:10) {:else}
11161
11179
  function create_else_block_2(ctx) {
11162
11180
  let div1;
11163
11181
  let h3;
@@ -11198,21 +11216,21 @@
11198
11216
  t6 = space();
11199
11217
  p = element("p");
11200
11218
  t7 = text(/*time*/ ctx[0]);
11201
- add_location(h3, file, 366, 14, 14690);
11219
+ add_location(h3, file, 376, 14, 15047);
11202
11220
  if (img.src !== (img_src_value = /*game*/ ctx[5].thumbnail)) attr_dev(img, "src", img_src_value);
11203
11221
  attr_dev(img, "class", "GameThumbnail");
11204
11222
  attr_dev(img, "alt", "game thumbnail");
11205
11223
  attr_dev(img, "loading", "lazy");
11206
- add_location(img, file, 367, 14, 14725);
11224
+ add_location(img, file, 377, 14, 15082);
11207
11225
  attr_dev(button0, "class", "LoginButton");
11208
- add_location(button0, file, 369, 16, 14874);
11226
+ add_location(button0, file, 379, 16, 15231);
11209
11227
  attr_dev(button1, "class", "RegisterButton");
11210
- add_location(button1, file, 370, 16, 14984);
11228
+ add_location(button1, file, 380, 16, 15341);
11211
11229
  attr_dev(div0, "class", "ButtonsContainer");
11212
- add_location(div0, file, 368, 14, 14827);
11213
- add_location(p, file, 372, 14, 15121);
11230
+ add_location(div0, file, 378, 14, 15184);
11231
+ add_location(p, file, 382, 14, 15478);
11214
11232
  attr_dev(div1, "class", "GameDetails");
11215
- add_location(div1, file, 365, 12, 14650);
11233
+ add_location(div1, file, 375, 12, 15007);
11216
11234
  },
11217
11235
  m: function mount(target, anchor) {
11218
11236
  insert_dev(target, div1, anchor);
@@ -11262,14 +11280,14 @@
11262
11280
  block,
11263
11281
  id: create_else_block_2.name,
11264
11282
  type: "else",
11265
- source: "(365:10) {:else}",
11283
+ source: "(375:10) {:else}",
11266
11284
  ctx
11267
11285
  });
11268
11286
 
11269
11287
  return block;
11270
11288
  }
11271
11289
 
11272
- // (353:37)
11290
+ // (363:37)
11273
11291
  function create_if_block_6(ctx) {
11274
11292
  let div1;
11275
11293
  let h3;
@@ -11317,23 +11335,23 @@
11317
11335
  t8 = space();
11318
11336
  p = element("p");
11319
11337
  t9 = text(/*time*/ ctx[0]);
11320
- add_location(h3, file, 354, 14, 14030);
11338
+ add_location(h3, file, 364, 14, 14387);
11321
11339
  if (img.src !== (img_src_value = /*game*/ ctx[5].thumbnail)) attr_dev(img, "src", img_src_value);
11322
11340
  attr_dev(img, "class", "GameThumbnail");
11323
11341
  attr_dev(img, "alt", "game thumbnail");
11324
11342
  attr_dev(img, "loading", "lazy");
11325
- add_location(img, file, 355, 14, 14065);
11343
+ add_location(img, file, 365, 14, 14422);
11326
11344
  attr_dev(button0, "class", "LoginButton");
11327
- add_location(button0, file, 357, 16, 14214);
11345
+ add_location(button0, file, 367, 16, 14571);
11328
11346
  attr_dev(button1, "class", "RegisterButton");
11329
- add_location(button1, file, 358, 16, 14324);
11347
+ add_location(button1, file, 368, 16, 14681);
11330
11348
  attr_dev(div0, "class", "ButtonsContainer");
11331
- add_location(div0, file, 356, 14, 14167);
11349
+ add_location(div0, file, 366, 14, 14524);
11332
11350
  attr_dev(button2, "class", "FullWidthButton");
11333
- add_location(button2, file, 360, 14, 14461);
11334
- add_location(p, file, 361, 14, 14586);
11351
+ add_location(button2, file, 370, 14, 14818);
11352
+ add_location(p, file, 371, 14, 14943);
11335
11353
  attr_dev(div1, "class", "GameDetails");
11336
- add_location(div1, file, 353, 12, 13990);
11354
+ add_location(div1, file, 363, 12, 14347);
11337
11355
  },
11338
11356
  m: function mount(target, anchor) {
11339
11357
  insert_dev(target, div1, anchor);
@@ -11388,14 +11406,14 @@
11388
11406
  block,
11389
11407
  id: create_if_block_6.name,
11390
11408
  type: "if",
11391
- source: "(353:37) ",
11409
+ source: "(363:37) ",
11392
11410
  ctx
11393
11411
  });
11394
11412
 
11395
11413
  return block;
11396
11414
  }
11397
11415
 
11398
- // (322:10) {#if isLoggedIn}
11416
+ // (332:10) {#if isLoggedIn}
11399
11417
  function create_if_block_4(ctx) {
11400
11418
  let t0;
11401
11419
  let div1;
@@ -11447,21 +11465,21 @@
11447
11465
  t7 = space();
11448
11466
  p = element("p");
11449
11467
  t8 = text(/*time*/ ctx[0]);
11450
- add_location(h3, file, 343, 14, 13466);
11468
+ add_location(h3, file, 353, 14, 13823);
11451
11469
  if (img.src !== (img_src_value = /*game*/ ctx[5].thumbnail)) attr_dev(img, "src", img_src_value);
11452
11470
  attr_dev(img, "class", "GameThumbnail");
11453
11471
  attr_dev(img, "alt", "game thumbnail");
11454
11472
  attr_dev(img, "loading", "lazy");
11455
- add_location(img, file, 344, 14, 13501);
11473
+ add_location(img, file, 354, 14, 13858);
11456
11474
  attr_dev(button0, "class", "DepositButton");
11457
- add_location(button0, file, 346, 16, 13650);
11475
+ add_location(button0, file, 356, 16, 14007);
11458
11476
  attr_dev(button1, "class", "PlayNowButton");
11459
- add_location(button1, file, 347, 16, 13765);
11477
+ add_location(button1, file, 357, 16, 14122);
11460
11478
  attr_dev(div0, "class", "ButtonsContainer");
11461
- add_location(div0, file, 345, 14, 13603);
11462
- add_location(p, file, 349, 14, 13906);
11479
+ add_location(div0, file, 355, 14, 13960);
11480
+ add_location(p, file, 359, 14, 14263);
11463
11481
  attr_dev(div1, "class", "GameDetails");
11464
- add_location(div1, file, 342, 12, 13426);
11482
+ add_location(div1, file, 352, 12, 13783);
11465
11483
  },
11466
11484
  m: function mount(target, anchor) {
11467
11485
  if_block.m(target, anchor);
@@ -11527,14 +11545,14 @@
11527
11545
  block,
11528
11546
  id: create_if_block_4.name,
11529
11547
  type: "if",
11530
- source: "(322:10) {#if isLoggedIn}",
11548
+ source: "(332:10) {#if isLoggedIn}",
11531
11549
  ctx
11532
11550
  });
11533
11551
 
11534
11552
  return block;
11535
11553
  }
11536
11554
 
11537
- // (329:12) {:else}
11555
+ // (339:12) {:else}
11538
11556
  function create_else_block_1(ctx) {
11539
11557
  let div;
11540
11558
  let svg;
@@ -11549,7 +11567,7 @@
11549
11567
  path = svg_element("path");
11550
11568
  set_style(path, "fill", "white");
11551
11569
  attr_dev(path, "d", "M511.266,197.256c-1.764-5.431-6.458-9.388-12.108-10.209l-158.722-23.065L269.452,20.155\n c-2.527-5.12-7.741-8.361-13.451-8.361c-5.709,0-10.924,3.242-13.451,8.361l-70.988,143.828L12.843,187.047\n c-5.65,0.821-10.344,4.779-12.108,10.209c-1.765,5.43-0.293,11.391,3.795,15.376l114.848,111.955L92.27,482.67\n c-0.965,5.627,1.349,11.315,5.968,14.67c4.618,3.355,10.74,3.798,15.797,1.142L256,423.846l141.961,74.637\n c2.195,1.154,4.591,1.723,6.979,1.723c3.11,0,6.206-0.966,8.818-2.865c4.619-3.356,6.933-9.043,5.968-14.671L392.61,324.587\n l114.86-111.954C511.559,208.647,513.031,202.686,511.266,197.256z M366.023,308.608c-3.536,3.446-5.15,8.412-4.314,13.278\n l23.311,135.898l-122.038-64.162c-4.37-2.297-9.591-2.297-13.961,0l-122.045,64.163l23.304-135.9\n c0.834-4.866-0.779-9.83-4.313-13.276l-98.731-96.244l136.445-19.829c4.886-0.71,9.108-3.778,11.294-8.205L256,60.685\n l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z");
11552
- add_location(path, file, 331, 114, 12276);
11570
+ add_location(path, file, 341, 114, 12633);
11553
11571
  attr_dev(svg, "version", "1.1");
11554
11572
  attr_dev(svg, "class", "UnfavoredIcon");
11555
11573
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
@@ -11559,9 +11577,9 @@
11559
11577
  attr_dev(svg, "viewBox", "0 0 512.001 512.001");
11560
11578
  set_style(svg, "enable-background", "new 0 0 512.001 512.001");
11561
11579
  attr_dev(svg, "xml:space", "preserve");
11562
- add_location(svg, file, 330, 16, 12025);
11580
+ add_location(svg, file, 340, 16, 12382);
11563
11581
  attr_dev(div, "class", "FavIconContainer");
11564
- add_location(div, file, 329, 14, 11931);
11582
+ add_location(div, file, 339, 14, 12288);
11565
11583
  },
11566
11584
  m: function mount(target, anchor) {
11567
11585
  insert_dev(target, div, anchor);
@@ -11585,14 +11603,14 @@
11585
11603
  block,
11586
11604
  id: create_else_block_1.name,
11587
11605
  type: "else",
11588
- source: "(329:12) {:else}",
11606
+ source: "(339:12) {:else}",
11589
11607
  ctx
11590
11608
  });
11591
11609
 
11592
11610
  return block;
11593
11611
  }
11594
11612
 
11595
- // (323:12) {#if game.isFavored}
11613
+ // (333:12) {#if game.isFavored}
11596
11614
  function create_if_block_5(ctx) {
11597
11615
  let div;
11598
11616
  let svg;
@@ -11607,16 +11625,16 @@
11607
11625
  path = svg_element("path");
11608
11626
  set_style(path, "fill", "white");
11609
11627
  attr_dev(path, "d", "m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z");
11610
- add_location(path, file, 325, 18, 11514);
11628
+ add_location(path, file, 335, 18, 11871);
11611
11629
  attr_dev(svg, "version", "1.1");
11612
11630
  attr_dev(svg, "class", "FavoredIcon");
11613
11631
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
11614
11632
  attr_dev(svg, "viewBox", "0 0 19.481 19.481");
11615
11633
  attr_dev(svg, "xmlns:xlink", "http://www.w3.org/1999/xlink");
11616
11634
  attr_dev(svg, "enable-background", "new 0 0 19.481 19.481");
11617
- add_location(svg, file, 324, 16, 11308);
11635
+ add_location(svg, file, 334, 16, 11665);
11618
11636
  attr_dev(div, "class", "FavIconContainer");
11619
- add_location(div, file, 323, 14, 11214);
11637
+ add_location(div, file, 333, 14, 11571);
11620
11638
  },
11621
11639
  m: function mount(target, anchor) {
11622
11640
  insert_dev(target, div, anchor);
@@ -11640,7 +11658,7 @@
11640
11658
  block,
11641
11659
  id: create_if_block_5.name,
11642
11660
  type: "if",
11643
- source: "(323:12) {#if game.isFavored}",
11661
+ source: "(333:12) {#if game.isFavored}",
11644
11662
  ctx
11645
11663
  });
11646
11664
 
@@ -12030,6 +12048,20 @@
12030
12048
  $$invalidate(2, isLoggedIn = true);
12031
12049
  sessionID = session;
12032
12050
  playerID = userid;
12051
+
12052
+ if (endpoint) {
12053
+ checkSession(endpoint, session).then(
12054
+ res => {
12055
+ sessionID = res.data.Guid;
12056
+ playerID = res.data.UserID;
12057
+ $$invalidate(2, isLoggedIn = true);
12058
+ },
12059
+ err => {
12060
+ $$invalidate(2, isLoggedIn = false);
12061
+ console.error("err on session", err);
12062
+ }
12063
+ );
12064
+ }
12033
12065
  };
12034
12066
 
12035
12067
  const setClientStyling = () => {
@@ -12047,7 +12079,9 @@
12047
12079
  cssFile.innerHTML = data;
12048
12080
 
12049
12081
  if (customStylingContainer) {
12050
- customStylingContainer.appendChild(cssFile);
12082
+ setTimeout(() => {
12083
+ customStylingContainer.appendChild(cssFile);
12084
+ });
12051
12085
  }
12052
12086
  });
12053
12087
  }
@@ -12182,6 +12216,7 @@
12182
12216
  $$self.$capture_state = () => ({
12183
12217
  onMount,
12184
12218
  isMobile,
12219
+ checkSession,
12185
12220
  _: X,
12186
12221
  addNewMessages,
12187
12222
  GamePageTranslations,
@@ -12295,8 +12330,8 @@
12295
12330
  endpoint && datasource && lang && initialSetup();
12296
12331
  }
12297
12332
 
12298
- if ($$self.$$.dirty[0] & /*session, userid*/ 805306368) {
12299
- session && userid && setSession();
12333
+ if ($$self.$$.dirty[0] & /*session, userid, endpoint*/ 838860800) {
12334
+ session && userid && endpoint && setSession();
12300
12335
  }
12301
12336
 
12302
12337
  if ($$self.$$.dirty[0] & /*clientstyling*/ 1073741824) {