@everymatrix/casino-game-thumbnail 0.0.83 → 0.0.87
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.
|
@@ -462,10 +462,10 @@
|
|
|
462
462
|
return iterator
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
-
function Headers(headers) {
|
|
465
|
+
function Headers$1(headers) {
|
|
466
466
|
this.map = {};
|
|
467
467
|
|
|
468
|
-
if (headers instanceof Headers) {
|
|
468
|
+
if (headers instanceof Headers$1) {
|
|
469
469
|
headers.forEach(function(value, name) {
|
|
470
470
|
this.append(name, value);
|
|
471
471
|
}, this);
|
|
@@ -480,31 +480,31 @@
|
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
Headers.prototype.append = function(name, value) {
|
|
483
|
+
Headers$1.prototype.append = function(name, value) {
|
|
484
484
|
name = normalizeName(name);
|
|
485
485
|
value = normalizeValue(value);
|
|
486
486
|
var oldValue = this.map[name];
|
|
487
487
|
this.map[name] = oldValue ? oldValue + ', ' + value : value;
|
|
488
488
|
};
|
|
489
489
|
|
|
490
|
-
Headers.prototype['delete'] = function(name) {
|
|
490
|
+
Headers$1.prototype['delete'] = function(name) {
|
|
491
491
|
delete this.map[normalizeName(name)];
|
|
492
492
|
};
|
|
493
493
|
|
|
494
|
-
Headers.prototype.get = function(name) {
|
|
494
|
+
Headers$1.prototype.get = function(name) {
|
|
495
495
|
name = normalizeName(name);
|
|
496
496
|
return this.has(name) ? this.map[name] : null
|
|
497
497
|
};
|
|
498
498
|
|
|
499
|
-
Headers.prototype.has = function(name) {
|
|
499
|
+
Headers$1.prototype.has = function(name) {
|
|
500
500
|
return this.map.hasOwnProperty(normalizeName(name))
|
|
501
501
|
};
|
|
502
502
|
|
|
503
|
-
Headers.prototype.set = function(name, value) {
|
|
503
|
+
Headers$1.prototype.set = function(name, value) {
|
|
504
504
|
this.map[normalizeName(name)] = normalizeValue(value);
|
|
505
505
|
};
|
|
506
506
|
|
|
507
|
-
Headers.prototype.forEach = function(callback, thisArg) {
|
|
507
|
+
Headers$1.prototype.forEach = function(callback, thisArg) {
|
|
508
508
|
for (var name in this.map) {
|
|
509
509
|
if (this.map.hasOwnProperty(name)) {
|
|
510
510
|
callback.call(thisArg, this.map[name], name, this);
|
|
@@ -512,7 +512,7 @@
|
|
|
512
512
|
}
|
|
513
513
|
};
|
|
514
514
|
|
|
515
|
-
Headers.prototype.keys = function() {
|
|
515
|
+
Headers$1.prototype.keys = function() {
|
|
516
516
|
var items = [];
|
|
517
517
|
this.forEach(function(value, name) {
|
|
518
518
|
items.push(name);
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
return iteratorFor(items)
|
|
521
521
|
};
|
|
522
522
|
|
|
523
|
-
Headers.prototype.values = function() {
|
|
523
|
+
Headers$1.prototype.values = function() {
|
|
524
524
|
var items = [];
|
|
525
525
|
this.forEach(function(value) {
|
|
526
526
|
items.push(value);
|
|
@@ -528,7 +528,7 @@
|
|
|
528
528
|
return iteratorFor(items)
|
|
529
529
|
};
|
|
530
530
|
|
|
531
|
-
Headers.prototype.entries = function() {
|
|
531
|
+
Headers$1.prototype.entries = function() {
|
|
532
532
|
var items = [];
|
|
533
533
|
this.forEach(function(value, name) {
|
|
534
534
|
items.push([name, value]);
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
};
|
|
538
538
|
|
|
539
539
|
if (support.iterable) {
|
|
540
|
-
Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
|
|
540
|
+
Headers$1.prototype[Symbol.iterator] = Headers$1.prototype.entries;
|
|
541
541
|
}
|
|
542
542
|
|
|
543
543
|
function consumed(body) {
|
|
@@ -732,7 +732,7 @@
|
|
|
732
732
|
this.url = input.url;
|
|
733
733
|
this.credentials = input.credentials;
|
|
734
734
|
if (!options.headers) {
|
|
735
|
-
this.headers = new Headers(input.headers);
|
|
735
|
+
this.headers = new Headers$1(input.headers);
|
|
736
736
|
}
|
|
737
737
|
this.method = input.method;
|
|
738
738
|
this.mode = input.mode;
|
|
@@ -747,7 +747,7 @@
|
|
|
747
747
|
|
|
748
748
|
this.credentials = options.credentials || this.credentials || 'same-origin';
|
|
749
749
|
if (options.headers || !this.headers) {
|
|
750
|
-
this.headers = new Headers(options.headers);
|
|
750
|
+
this.headers = new Headers$1(options.headers);
|
|
751
751
|
}
|
|
752
752
|
this.method = normalizeMethod(options.method || this.method || 'GET');
|
|
753
753
|
this.mode = options.mode || this.mode || null;
|
|
@@ -796,7 +796,7 @@
|
|
|
796
796
|
}
|
|
797
797
|
|
|
798
798
|
function parseHeaders(rawHeaders) {
|
|
799
|
-
var headers = new Headers();
|
|
799
|
+
var headers = new Headers$1();
|
|
800
800
|
// Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space
|
|
801
801
|
// https://tools.ietf.org/html/rfc7230#section-3.2
|
|
802
802
|
var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' ');
|
|
@@ -833,7 +833,7 @@
|
|
|
833
833
|
this.status = options.status === undefined ? 200 : options.status;
|
|
834
834
|
this.ok = this.status >= 200 && this.status < 300;
|
|
835
835
|
this.statusText = options.statusText === undefined ? '' : '' + options.statusText;
|
|
836
|
-
this.headers = new Headers(options.headers);
|
|
836
|
+
this.headers = new Headers$1(options.headers);
|
|
837
837
|
this.url = options.url || '';
|
|
838
838
|
this._initBody(bodyInit);
|
|
839
839
|
}
|
|
@@ -844,7 +844,7 @@
|
|
|
844
844
|
return new Response(this._bodyInit, {
|
|
845
845
|
status: this.status,
|
|
846
846
|
statusText: this.statusText,
|
|
847
|
-
headers: new Headers(this.headers),
|
|
847
|
+
headers: new Headers$1(this.headers),
|
|
848
848
|
url: this.url
|
|
849
849
|
})
|
|
850
850
|
};
|
|
@@ -952,7 +952,7 @@
|
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
954
|
|
|
955
|
-
if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {
|
|
955
|
+
if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers$1)) {
|
|
956
956
|
Object.getOwnPropertyNames(init.headers).forEach(function(name) {
|
|
957
957
|
xhr.setRequestHeader(name, normalizeValue(init.headers[name]));
|
|
958
958
|
});
|
|
@@ -981,7 +981,7 @@
|
|
|
981
981
|
|
|
982
982
|
if (!global$1.fetch) {
|
|
983
983
|
global$1.fetch = fetch$1;
|
|
984
|
-
global$1.Headers = Headers;
|
|
984
|
+
global$1.Headers = Headers$1;
|
|
985
985
|
global$1.Request = Request;
|
|
986
986
|
global$1.Response = Response;
|
|
987
987
|
}
|
|
@@ -991,7 +991,7 @@
|
|
|
991
991
|
//
|
|
992
992
|
// Return that as the export for use in Webpack, Browserify etc.
|
|
993
993
|
|
|
994
|
-
self.fetch.bind(self);
|
|
994
|
+
var fetchNpmBrowserify = self.fetch.bind(self);
|
|
995
995
|
|
|
996
996
|
/*! *****************************************************************************
|
|
997
997
|
Copyright (c) Microsoft Corporation.
|
|
@@ -4433,6 +4433,24 @@
|
|
|
4433
4433
|
);
|
|
4434
4434
|
};
|
|
4435
4435
|
|
|
4436
|
+
function checkSession(endpoint, session) {
|
|
4437
|
+
return new Promise((resolve, reject) => {
|
|
4438
|
+
let reqHeaders = new Headers();
|
|
4439
|
+
|
|
4440
|
+
reqHeaders.append('X-SessionID', session);
|
|
4441
|
+
|
|
4442
|
+
let options = {
|
|
4443
|
+
method: 'GET',
|
|
4444
|
+
headers: reqHeaders
|
|
4445
|
+
};
|
|
4446
|
+
|
|
4447
|
+
fetchNpmBrowserify(`${endpoint}/player/session/player`, options)
|
|
4448
|
+
.then((res) => res.json())
|
|
4449
|
+
.then((data) => resolve(data))
|
|
4450
|
+
.catch((err) => reject(err));
|
|
4451
|
+
});
|
|
4452
|
+
}
|
|
4453
|
+
|
|
4436
4454
|
function addNewMessages(lang, dict) {
|
|
4437
4455
|
m(lang, dict);
|
|
4438
4456
|
}
|
|
@@ -4498,10 +4516,10 @@
|
|
|
4498
4516
|
|
|
4499
4517
|
/* src/CasinoGameThumbnail.svelte generated by Svelte v3.37.0 */
|
|
4500
4518
|
|
|
4501
|
-
const { Object: Object_1 } = globals;
|
|
4519
|
+
const { Object: Object_1, console: console_1 } = globals;
|
|
4502
4520
|
const file = "src/CasinoGameThumbnail.svelte";
|
|
4503
4521
|
|
|
4504
|
-
// (
|
|
4522
|
+
// (156:6) {#if fav}
|
|
4505
4523
|
function create_if_block_5(ctx) {
|
|
4506
4524
|
let show_if = !isMobile(/*userAgent*/ ctx[16]) && !/*gamefavorite*/ ctx[0] && /*isLoggedIn*/ ctx[9];
|
|
4507
4525
|
let if_block_anchor;
|
|
@@ -4542,14 +4560,14 @@
|
|
|
4542
4560
|
block,
|
|
4543
4561
|
id: create_if_block_5.name,
|
|
4544
4562
|
type: "if",
|
|
4545
|
-
source: "(
|
|
4563
|
+
source: "(156:6) {#if fav}",
|
|
4546
4564
|
ctx
|
|
4547
4565
|
});
|
|
4548
4566
|
|
|
4549
4567
|
return block;
|
|
4550
4568
|
}
|
|
4551
4569
|
|
|
4552
|
-
// (
|
|
4570
|
+
// (157:8) {#if !isMobile(userAgent) && !gamefavorite && isLoggedIn}
|
|
4553
4571
|
function create_if_block_6(ctx) {
|
|
4554
4572
|
let div;
|
|
4555
4573
|
let svg;
|
|
@@ -4564,7 +4582,7 @@
|
|
|
4564
4582
|
path = svg_element("path");
|
|
4565
4583
|
set_style(path, "fill", "white");
|
|
4566
4584
|
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");
|
|
4567
|
-
add_location(path, file,
|
|
4585
|
+
add_location(path, file, 159, 110, 5484);
|
|
4568
4586
|
attr_dev(svg, "version", "1.1");
|
|
4569
4587
|
attr_dev(svg, "class", "UnfavoredIcon");
|
|
4570
4588
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
@@ -4574,9 +4592,9 @@
|
|
|
4574
4592
|
attr_dev(svg, "viewBox", "0 0 512.001 512.001");
|
|
4575
4593
|
set_style(svg, "enable-background", "new 0 0 512.001 512.001");
|
|
4576
4594
|
attr_dev(svg, "xml:space", "preserve");
|
|
4577
|
-
add_location(svg, file,
|
|
4595
|
+
add_location(svg, file, 158, 12, 5237);
|
|
4578
4596
|
attr_dev(div, "class", "FavIconContainer");
|
|
4579
|
-
add_location(div, file,
|
|
4597
|
+
add_location(div, file, 157, 10, 5148);
|
|
4580
4598
|
},
|
|
4581
4599
|
m: function mount(target, anchor) {
|
|
4582
4600
|
insert_dev(target, div, anchor);
|
|
@@ -4584,7 +4602,7 @@
|
|
|
4584
4602
|
append_dev(svg, path);
|
|
4585
4603
|
|
|
4586
4604
|
if (!mounted) {
|
|
4587
|
-
dispose = listen_dev(div, "click", /*click_handler*/ ctx[
|
|
4605
|
+
dispose = listen_dev(div, "click", /*click_handler*/ ctx[35], false, false, false);
|
|
4588
4606
|
mounted = true;
|
|
4589
4607
|
}
|
|
4590
4608
|
},
|
|
@@ -4600,14 +4618,14 @@
|
|
|
4600
4618
|
block,
|
|
4601
4619
|
id: create_if_block_6.name,
|
|
4602
4620
|
type: "if",
|
|
4603
|
-
source: "(
|
|
4621
|
+
source: "(157:8) {#if !isMobile(userAgent) && !gamefavorite && isLoggedIn}",
|
|
4604
4622
|
ctx
|
|
4605
4623
|
});
|
|
4606
4624
|
|
|
4607
4625
|
return block;
|
|
4608
4626
|
}
|
|
4609
4627
|
|
|
4610
|
-
// (
|
|
4628
|
+
// (185:75)
|
|
4611
4629
|
function create_if_block_4(ctx) {
|
|
4612
4630
|
let div;
|
|
4613
4631
|
let svg;
|
|
@@ -4620,16 +4638,16 @@
|
|
|
4620
4638
|
path = svg_element("path");
|
|
4621
4639
|
set_style(path, "fill", "white");
|
|
4622
4640
|
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");
|
|
4623
|
-
add_location(path, file,
|
|
4641
|
+
add_location(path, file, 187, 8, 7910);
|
|
4624
4642
|
attr_dev(svg, "version", "1.1");
|
|
4625
4643
|
attr_dev(svg, "class", "FavoredIcon");
|
|
4626
4644
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
4627
4645
|
attr_dev(svg, "viewBox", "0 0 19.481 19.481");
|
|
4628
4646
|
attr_dev(svg, "xmlns:xlink", "http://www.w3.org/1999/xlink");
|
|
4629
4647
|
attr_dev(svg, "enable-background", "new 0 0 19.481 19.481");
|
|
4630
|
-
add_location(svg, file,
|
|
4648
|
+
add_location(svg, file, 186, 6, 7714);
|
|
4631
4649
|
attr_dev(div, "class", "FavIconContainer");
|
|
4632
|
-
add_location(div, file,
|
|
4650
|
+
add_location(div, file, 185, 4, 7677);
|
|
4633
4651
|
},
|
|
4634
4652
|
m: function mount(target, anchor) {
|
|
4635
4653
|
insert_dev(target, div, anchor);
|
|
@@ -4646,14 +4664,14 @@
|
|
|
4646
4664
|
block,
|
|
4647
4665
|
id: create_if_block_4.name,
|
|
4648
4666
|
type: "if",
|
|
4649
|
-
source: "(
|
|
4667
|
+
source: "(185:75) ",
|
|
4650
4668
|
ctx
|
|
4651
4669
|
});
|
|
4652
4670
|
|
|
4653
4671
|
return block;
|
|
4654
4672
|
}
|
|
4655
4673
|
|
|
4656
|
-
// (
|
|
4674
|
+
// (179:2) {#if !isMobile(userAgent) && gamefavorite && isLoggedIn && favorites}
|
|
4657
4675
|
function create_if_block_3(ctx) {
|
|
4658
4676
|
let div;
|
|
4659
4677
|
let svg;
|
|
@@ -4668,16 +4686,16 @@
|
|
|
4668
4686
|
path = svg_element("path");
|
|
4669
4687
|
set_style(path, "fill", "white");
|
|
4670
4688
|
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");
|
|
4671
|
-
add_location(path, file,
|
|
4689
|
+
add_location(path, file, 181, 8, 7234);
|
|
4672
4690
|
attr_dev(svg, "version", "1.1");
|
|
4673
4691
|
attr_dev(svg, "class", "FavoredIcon");
|
|
4674
4692
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
4675
4693
|
attr_dev(svg, "viewBox", "0 0 19.481 19.481");
|
|
4676
4694
|
attr_dev(svg, "xmlns:xlink", "http://www.w3.org/1999/xlink");
|
|
4677
4695
|
attr_dev(svg, "enable-background", "new 0 0 19.481 19.481");
|
|
4678
|
-
add_location(svg, file,
|
|
4696
|
+
add_location(svg, file, 180, 6, 7038);
|
|
4679
4697
|
attr_dev(div, "class", "FavIconContainer");
|
|
4680
|
-
add_location(div, file,
|
|
4698
|
+
add_location(div, file, 179, 4, 6955);
|
|
4681
4699
|
},
|
|
4682
4700
|
m: function mount(target, anchor) {
|
|
4683
4701
|
insert_dev(target, div, anchor);
|
|
@@ -4685,7 +4703,7 @@
|
|
|
4685
4703
|
append_dev(svg, path);
|
|
4686
4704
|
|
|
4687
4705
|
if (!mounted) {
|
|
4688
|
-
dispose = listen_dev(div, "click", /*click_handler_2*/ ctx[
|
|
4706
|
+
dispose = listen_dev(div, "click", /*click_handler_2*/ ctx[39], false, false, false);
|
|
4689
4707
|
mounted = true;
|
|
4690
4708
|
}
|
|
4691
4709
|
},
|
|
@@ -4701,14 +4719,14 @@
|
|
|
4701
4719
|
block,
|
|
4702
4720
|
id: create_if_block_3.name,
|
|
4703
4721
|
type: "if",
|
|
4704
|
-
source: "(
|
|
4722
|
+
source: "(179:2) {#if !isMobile(userAgent) && gamefavorite && isLoggedIn && favorites}",
|
|
4705
4723
|
ctx
|
|
4706
4724
|
});
|
|
4707
4725
|
|
|
4708
4726
|
return block;
|
|
4709
4727
|
}
|
|
4710
4728
|
|
|
4711
|
-
// (
|
|
4729
|
+
// (193:4) {#if gameisnew}
|
|
4712
4730
|
function create_if_block_2(ctx) {
|
|
4713
4731
|
let span;
|
|
4714
4732
|
let t_value = /*$_*/ ctx[15]("gameThumbnail.new") + "";
|
|
@@ -4719,7 +4737,7 @@
|
|
|
4719
4737
|
span = element("span");
|
|
4720
4738
|
t = text(t_value);
|
|
4721
4739
|
attr_dev(span, "class", "GameExtraInfoLabel NewGameTag");
|
|
4722
|
-
add_location(span, file,
|
|
4740
|
+
add_location(span, file, 193, 6, 8337);
|
|
4723
4741
|
},
|
|
4724
4742
|
m: function mount(target, anchor) {
|
|
4725
4743
|
insert_dev(target, span, anchor);
|
|
@@ -4737,14 +4755,14 @@
|
|
|
4737
4755
|
block,
|
|
4738
4756
|
id: create_if_block_2.name,
|
|
4739
4757
|
type: "if",
|
|
4740
|
-
source: "(
|
|
4758
|
+
source: "(193:4) {#if gameisnew}",
|
|
4741
4759
|
ctx
|
|
4742
4760
|
});
|
|
4743
4761
|
|
|
4744
4762
|
return block;
|
|
4745
4763
|
}
|
|
4746
4764
|
|
|
4747
|
-
// (
|
|
4765
|
+
// (196:4) {#if (parseInt(gamepopularity) > 0)}
|
|
4748
4766
|
function create_if_block_1(ctx) {
|
|
4749
4767
|
let span;
|
|
4750
4768
|
let t_value = /*$_*/ ctx[15]("gameThumbnail.hot") + "";
|
|
@@ -4755,7 +4773,7 @@
|
|
|
4755
4773
|
span = element("span");
|
|
4756
4774
|
t = text(t_value);
|
|
4757
4775
|
attr_dev(span, "class", "GameExtraInfoLabel PopularGameTag");
|
|
4758
|
-
add_location(span, file,
|
|
4776
|
+
add_location(span, file, 196, 6, 8471);
|
|
4759
4777
|
},
|
|
4760
4778
|
m: function mount(target, anchor) {
|
|
4761
4779
|
insert_dev(target, span, anchor);
|
|
@@ -4773,14 +4791,14 @@
|
|
|
4773
4791
|
block,
|
|
4774
4792
|
id: create_if_block_1.name,
|
|
4775
4793
|
type: "if",
|
|
4776
|
-
source: "(
|
|
4794
|
+
source: "(196:4) {#if (parseInt(gamepopularity) > 0)}",
|
|
4777
4795
|
ctx
|
|
4778
4796
|
});
|
|
4779
4797
|
|
|
4780
4798
|
return block;
|
|
4781
4799
|
}
|
|
4782
4800
|
|
|
4783
|
-
// (
|
|
4801
|
+
// (201:0) {#if showgamename}
|
|
4784
4802
|
function create_if_block(ctx) {
|
|
4785
4803
|
let p;
|
|
4786
4804
|
let t;
|
|
@@ -4791,7 +4809,7 @@
|
|
|
4791
4809
|
t = text(/*gamename*/ ctx[3]);
|
|
4792
4810
|
attr_dev(p, "class", "GameNameBelow");
|
|
4793
4811
|
attr_dev(p, "title", /*gamename*/ ctx[3]);
|
|
4794
|
-
add_location(p, file,
|
|
4812
|
+
add_location(p, file, 201, 2, 8599);
|
|
4795
4813
|
},
|
|
4796
4814
|
m: function mount(target, anchor) {
|
|
4797
4815
|
insert_dev(target, p, anchor);
|
|
@@ -4813,7 +4831,7 @@
|
|
|
4813
4831
|
block,
|
|
4814
4832
|
id: create_if_block.name,
|
|
4815
4833
|
type: "if",
|
|
4816
|
-
source: "(
|
|
4834
|
+
source: "(201:0) {#if showgamename}",
|
|
4817
4835
|
ctx
|
|
4818
4836
|
});
|
|
4819
4837
|
|
|
@@ -4898,22 +4916,22 @@
|
|
|
4898
4916
|
attr_dev(img, "class", img_class_value = "GameBg " + (/*hover*/ ctx[10] ? "GameContainerHovered" : "") + " " + (/*loaded*/ ctx[11] ? "Loaded" : ""));
|
|
4899
4917
|
attr_dev(img, "alt", "game thumbnail");
|
|
4900
4918
|
attr_dev(img, "loading", "lazy");
|
|
4901
|
-
add_location(img, file,
|
|
4919
|
+
add_location(img, file, 152, 2, 4747);
|
|
4902
4920
|
attr_dev(p, "class", "GameInfoName");
|
|
4903
4921
|
attr_dev(p, "title", /*gamename*/ ctx[3]);
|
|
4904
|
-
add_location(p, file,
|
|
4922
|
+
add_location(p, file, 171, 6, 6600);
|
|
4905
4923
|
attr_dev(button, "class", "GameInfoBtn");
|
|
4906
|
-
add_location(button, file,
|
|
4924
|
+
add_location(button, file, 172, 6, 6664);
|
|
4907
4925
|
attr_dev(div0, "class", div0_class_value = "GameInfo " + (/*hover*/ ctx[10] ? "GameHovered" : ""));
|
|
4908
|
-
add_location(div0, file,
|
|
4926
|
+
add_location(div0, file, 154, 4, 5004);
|
|
4909
4927
|
attr_dev(span, "class", "GameInfoVendor");
|
|
4910
|
-
add_location(span, file,
|
|
4928
|
+
add_location(span, file, 174, 4, 6789);
|
|
4911
4929
|
attr_dev(div1, "class", "GameInfoWrapper");
|
|
4912
|
-
add_location(div1, file,
|
|
4930
|
+
add_location(div1, file, 153, 2, 4910);
|
|
4913
4931
|
attr_dev(div2, "class", "GameExtraInfo");
|
|
4914
|
-
add_location(div2, file,
|
|
4932
|
+
add_location(div2, file, 191, 2, 8283);
|
|
4915
4933
|
attr_dev(div3, "class", "GameContainer");
|
|
4916
|
-
add_location(div3, file,
|
|
4934
|
+
add_location(div3, file, 151, 0, 4574);
|
|
4917
4935
|
},
|
|
4918
4936
|
l: function claim(nodes) {
|
|
4919
4937
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -4921,7 +4939,7 @@
|
|
|
4921
4939
|
m: function mount(target, anchor) {
|
|
4922
4940
|
insert_dev(target, div3, anchor);
|
|
4923
4941
|
append_dev(div3, img);
|
|
4924
|
-
/*img_binding*/ ctx[
|
|
4942
|
+
/*img_binding*/ ctx[34](img);
|
|
4925
4943
|
append_dev(div3, t0);
|
|
4926
4944
|
append_dev(div3, div1);
|
|
4927
4945
|
append_dev(div1, div0);
|
|
@@ -4942,16 +4960,16 @@
|
|
|
4942
4960
|
if (if_block2) if_block2.m(div2, null);
|
|
4943
4961
|
append_dev(div2, t9);
|
|
4944
4962
|
if (if_block3) if_block3.m(div2, null);
|
|
4945
|
-
/*div3_binding*/ ctx[
|
|
4963
|
+
/*div3_binding*/ ctx[40](div3);
|
|
4946
4964
|
insert_dev(target, t10, anchor);
|
|
4947
4965
|
if (if_block4) if_block4.m(target, anchor);
|
|
4948
4966
|
insert_dev(target, if_block4_anchor, anchor);
|
|
4949
4967
|
|
|
4950
4968
|
if (!mounted) {
|
|
4951
4969
|
dispose = [
|
|
4952
|
-
listen_dev(button, "click", /*click_handler_1*/ ctx[
|
|
4953
|
-
listen_dev(div1, "mouseenter", /*mouseenter_handler*/ ctx[
|
|
4954
|
-
listen_dev(div1, "mouseleave", /*mouseleave_handler*/ ctx[
|
|
4970
|
+
listen_dev(button, "click", /*click_handler_1*/ ctx[36], false, false, false),
|
|
4971
|
+
listen_dev(div1, "mouseenter", /*mouseenter_handler*/ ctx[37], false, false, false),
|
|
4972
|
+
listen_dev(div1, "mouseleave", /*mouseleave_handler*/ ctx[38], false, false, false),
|
|
4955
4973
|
listen_dev(div3, "mouseenter", /*gameHover*/ ctx[23], false, false, false),
|
|
4956
4974
|
listen_dev(div3, "mouseleave", /*gameBlur*/ ctx[24], false, false, false),
|
|
4957
4975
|
listen_dev(div3, "touchstart", /*gameTouch*/ ctx[21], { passive: true }, false, false),
|
|
@@ -5054,7 +5072,7 @@
|
|
|
5054
5072
|
o: noop$1,
|
|
5055
5073
|
d: function destroy(detaching) {
|
|
5056
5074
|
if (detaching) detach_dev(div3);
|
|
5057
|
-
/*img_binding*/ ctx[
|
|
5075
|
+
/*img_binding*/ ctx[34](null);
|
|
5058
5076
|
if (if_block0) if_block0.d();
|
|
5059
5077
|
|
|
5060
5078
|
if (if_block1) {
|
|
@@ -5063,7 +5081,7 @@
|
|
|
5063
5081
|
|
|
5064
5082
|
if (if_block2) if_block2.d();
|
|
5065
5083
|
if (if_block3) if_block3.d();
|
|
5066
|
-
/*div3_binding*/ ctx[
|
|
5084
|
+
/*div3_binding*/ ctx[40](null);
|
|
5067
5085
|
if (detaching) detach_dev(t10);
|
|
5068
5086
|
if (if_block4) if_block4.d(detaching);
|
|
5069
5087
|
if (detaching) detach_dev(if_block4_anchor);
|
|
@@ -5106,6 +5124,7 @@
|
|
|
5106
5124
|
let { gamefavorite = false } = $$props;
|
|
5107
5125
|
let { showfavoredcategory = false } = $$props;
|
|
5108
5126
|
let { showgamename = false } = $$props;
|
|
5127
|
+
let { endpoint = "" } = $$props;
|
|
5109
5128
|
let isLoggedIn = false;
|
|
5110
5129
|
let sessionID;
|
|
5111
5130
|
let playerID;
|
|
@@ -5213,6 +5232,20 @@
|
|
|
5213
5232
|
$$invalidate(9, isLoggedIn = true);
|
|
5214
5233
|
sessionID = session;
|
|
5215
5234
|
playerID = userid;
|
|
5235
|
+
|
|
5236
|
+
if (endpoint) {
|
|
5237
|
+
checkSession(endpoint, session).then(
|
|
5238
|
+
res => {
|
|
5239
|
+
sessionID = res.data.Guid;
|
|
5240
|
+
playerID = res.data.UserID;
|
|
5241
|
+
$$invalidate(9, isLoggedIn = true);
|
|
5242
|
+
},
|
|
5243
|
+
err => {
|
|
5244
|
+
$$invalidate(9, isLoggedIn = false);
|
|
5245
|
+
console.error("err on session", err);
|
|
5246
|
+
}
|
|
5247
|
+
);
|
|
5248
|
+
}
|
|
5216
5249
|
};
|
|
5217
5250
|
|
|
5218
5251
|
const setOnLoad = () => {
|
|
@@ -5253,7 +5286,9 @@
|
|
|
5253
5286
|
cssFile.innerHTML = data;
|
|
5254
5287
|
|
|
5255
5288
|
if (customStylingContainer) {
|
|
5256
|
-
|
|
5289
|
+
setTimeout(() => {
|
|
5290
|
+
customStylingContainer.appendChild(cssFile);
|
|
5291
|
+
});
|
|
5257
5292
|
}
|
|
5258
5293
|
});
|
|
5259
5294
|
}
|
|
@@ -5284,11 +5319,12 @@
|
|
|
5284
5319
|
"searchitem",
|
|
5285
5320
|
"gamefavorite",
|
|
5286
5321
|
"showfavoredcategory",
|
|
5287
|
-
"showgamename"
|
|
5322
|
+
"showgamename",
|
|
5323
|
+
"endpoint"
|
|
5288
5324
|
];
|
|
5289
5325
|
|
|
5290
5326
|
Object_1.keys($$props).forEach(key => {
|
|
5291
|
-
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$")
|
|
5327
|
+
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console_1.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
5292
5328
|
});
|
|
5293
5329
|
|
|
5294
5330
|
function img_binding($$value) {
|
|
@@ -5329,11 +5365,13 @@
|
|
|
5329
5365
|
if ("gamefavorite" in $$props) $$invalidate(0, gamefavorite = $$props.gamefavorite);
|
|
5330
5366
|
if ("showfavoredcategory" in $$props) $$invalidate(32, showfavoredcategory = $$props.showfavoredcategory);
|
|
5331
5367
|
if ("showgamename" in $$props) $$invalidate(8, showgamename = $$props.showgamename);
|
|
5368
|
+
if ("endpoint" in $$props) $$invalidate(33, endpoint = $$props.endpoint);
|
|
5332
5369
|
};
|
|
5333
5370
|
|
|
5334
5371
|
$$self.$capture_state = () => ({
|
|
5335
5372
|
onMount,
|
|
5336
5373
|
isMobile,
|
|
5374
|
+
checkSession,
|
|
5337
5375
|
_: X,
|
|
5338
5376
|
addNewMessages,
|
|
5339
5377
|
GameThumbnailTranslations,
|
|
@@ -5354,6 +5392,7 @@
|
|
|
5354
5392
|
gamefavorite,
|
|
5355
5393
|
showfavoredcategory,
|
|
5356
5394
|
showgamename,
|
|
5395
|
+
endpoint,
|
|
5357
5396
|
isLoggedIn,
|
|
5358
5397
|
sessionID,
|
|
5359
5398
|
playerID,
|
|
@@ -5399,6 +5438,7 @@
|
|
|
5399
5438
|
if ("gamefavorite" in $$props) $$invalidate(0, gamefavorite = $$props.gamefavorite);
|
|
5400
5439
|
if ("showfavoredcategory" in $$props) $$invalidate(32, showfavoredcategory = $$props.showfavoredcategory);
|
|
5401
5440
|
if ("showgamename" in $$props) $$invalidate(8, showgamename = $$props.showgamename);
|
|
5441
|
+
if ("endpoint" in $$props) $$invalidate(33, endpoint = $$props.endpoint);
|
|
5402
5442
|
if ("isLoggedIn" in $$props) $$invalidate(9, isLoggedIn = $$props.isLoggedIn);
|
|
5403
5443
|
if ("sessionID" in $$props) sessionID = $$props.sessionID;
|
|
5404
5444
|
if ("playerID" in $$props) playerID = $$props.playerID;
|
|
@@ -5417,8 +5457,8 @@
|
|
|
5417
5457
|
$$self.$$.update = () => {
|
|
5418
5458
|
if ($$self.$$.dirty[0] & /*lang*/ 134217728) ;
|
|
5419
5459
|
|
|
5420
|
-
if ($$self.$$.dirty[0] & /*session, userid*/ 100663296) {
|
|
5421
|
-
session && userid && setSession();
|
|
5460
|
+
if ($$self.$$.dirty[0] & /*session, userid*/ 100663296 | $$self.$$.dirty[1] & /*endpoint*/ 4) {
|
|
5461
|
+
session && userid && endpoint && setSession();
|
|
5422
5462
|
}
|
|
5423
5463
|
|
|
5424
5464
|
if ($$self.$$.dirty[0] & /*gamethumbnail*/ 4) {
|
|
@@ -5472,6 +5512,7 @@
|
|
|
5472
5512
|
gamefunmode,
|
|
5473
5513
|
searchitem,
|
|
5474
5514
|
showfavoredcategory,
|
|
5515
|
+
endpoint,
|
|
5475
5516
|
img_binding,
|
|
5476
5517
|
click_handler,
|
|
5477
5518
|
click_handler_1,
|
|
@@ -5514,7 +5555,8 @@
|
|
|
5514
5555
|
searchitem: 31,
|
|
5515
5556
|
gamefavorite: 0,
|
|
5516
5557
|
showfavoredcategory: 32,
|
|
5517
|
-
showgamename: 8
|
|
5558
|
+
showgamename: 8,
|
|
5559
|
+
endpoint: 33
|
|
5518
5560
|
},
|
|
5519
5561
|
[-1, -1]
|
|
5520
5562
|
);
|
|
@@ -5549,7 +5591,8 @@
|
|
|
5549
5591
|
"searchitem",
|
|
5550
5592
|
"gamefavorite",
|
|
5551
5593
|
"showfavoredcategory",
|
|
5552
|
-
"showgamename"
|
|
5594
|
+
"showgamename",
|
|
5595
|
+
"endpoint"
|
|
5553
5596
|
];
|
|
5554
5597
|
}
|
|
5555
5598
|
|
|
@@ -5705,6 +5748,15 @@
|
|
|
5705
5748
|
this.$set({ showgamename });
|
|
5706
5749
|
flush();
|
|
5707
5750
|
}
|
|
5751
|
+
|
|
5752
|
+
get endpoint() {
|
|
5753
|
+
return this.$$.ctx[33];
|
|
5754
|
+
}
|
|
5755
|
+
|
|
5756
|
+
set endpoint(endpoint) {
|
|
5757
|
+
this.$set({ endpoint });
|
|
5758
|
+
flush();
|
|
5759
|
+
}
|
|
5708
5760
|
}
|
|
5709
5761
|
|
|
5710
5762
|
!customElements.get('casino-game-thumbnail') && customElements.define('casino-game-thumbnail', CasinoGameThumbnail);
|