@everymatrix/casino-tournaments-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.
|
@@ -12784,12 +12784,12 @@
|
|
|
12784
12784
|
|
|
12785
12785
|
function get_each_context$1(ctx, list, i) {
|
|
12786
12786
|
const child_ctx = ctx.slice();
|
|
12787
|
-
child_ctx[
|
|
12788
|
-
child_ctx[
|
|
12787
|
+
child_ctx[34] = list[i];
|
|
12788
|
+
child_ctx[36] = i;
|
|
12789
12789
|
return child_ctx;
|
|
12790
12790
|
}
|
|
12791
12791
|
|
|
12792
|
-
// (
|
|
12792
|
+
// (111:2) {#if games}
|
|
12793
12793
|
function create_if_block$3(ctx) {
|
|
12794
12794
|
let div0;
|
|
12795
12795
|
let svg0;
|
|
@@ -12832,32 +12832,32 @@
|
|
|
12832
12832
|
attr_dev(path0, "stroke-linejoin", "round");
|
|
12833
12833
|
attr_dev(path0, "stroke-width", "2");
|
|
12834
12834
|
attr_dev(path0, "d", "M15 19l-7-7 7-7");
|
|
12835
|
-
add_location(path0, file$3,
|
|
12835
|
+
add_location(path0, file$3, 113, 8, 3422);
|
|
12836
12836
|
attr_dev(svg0, "fill", "none");
|
|
12837
12837
|
attr_dev(svg0, "stroke", "currentColor");
|
|
12838
12838
|
attr_dev(svg0, "viewBox", "0 0 24 24");
|
|
12839
12839
|
attr_dev(svg0, "xmlns", "http://www.w3.org/2000/svg");
|
|
12840
|
-
add_location(svg0, file$3,
|
|
12840
|
+
add_location(svg0, file$3, 112, 6, 3319);
|
|
12841
12841
|
attr_dev(div0, "class", "SliderNavButton");
|
|
12842
|
-
toggle_class(div0, "disabled", /*atStart*/ ctx[
|
|
12843
|
-
add_location(div0, file$3,
|
|
12842
|
+
toggle_class(div0, "disabled", /*atStart*/ ctx[5]);
|
|
12843
|
+
add_location(div0, file$3, 111, 4, 3230);
|
|
12844
12844
|
attr_dev(div1, "class", "items");
|
|
12845
12845
|
set_style(div1, "transform", "translateX(" + /*offset*/ ctx[1] + "px)");
|
|
12846
|
-
add_location(div1, file$3,
|
|
12847
|
-
add_location(main, file$3,
|
|
12846
|
+
add_location(div1, file$3, 117, 6, 3561);
|
|
12847
|
+
add_location(main, file$3, 116, 4, 3548);
|
|
12848
12848
|
attr_dev(path1, "stroke-linecap", "round");
|
|
12849
12849
|
attr_dev(path1, "stroke-linejoin", "round");
|
|
12850
12850
|
attr_dev(path1, "stroke-width", "2");
|
|
12851
12851
|
attr_dev(path1, "d", "M9 5l7 7-7 7");
|
|
12852
|
-
add_location(path1, file$3,
|
|
12852
|
+
add_location(path1, file$3, 128, 8, 4239);
|
|
12853
12853
|
attr_dev(svg1, "fill", "none");
|
|
12854
12854
|
attr_dev(svg1, "stroke", "currentColor");
|
|
12855
12855
|
attr_dev(svg1, "viewBox", "0 0 24 24");
|
|
12856
12856
|
attr_dev(svg1, "xmlns", "http://www.w3.org/2000/svg");
|
|
12857
|
-
add_location(svg1, file$3,
|
|
12857
|
+
add_location(svg1, file$3, 127, 6, 4136);
|
|
12858
12858
|
attr_dev(div2, "class", "SliderNavButton");
|
|
12859
|
-
toggle_class(div2, "disabled", /*atEnd*/ ctx[
|
|
12860
|
-
add_location(div2, file$3,
|
|
12859
|
+
toggle_class(div2, "disabled", /*atEnd*/ ctx[6]);
|
|
12860
|
+
add_location(div2, file$3, 126, 4, 4050);
|
|
12861
12861
|
},
|
|
12862
12862
|
m: function mount(target, anchor) {
|
|
12863
12863
|
insert_dev(target, div0, anchor);
|
|
@@ -12878,19 +12878,19 @@
|
|
|
12878
12878
|
|
|
12879
12879
|
if (!mounted) {
|
|
12880
12880
|
dispose = [
|
|
12881
|
-
listen_dev(div0, "click", /*click_handler*/ ctx[
|
|
12882
|
-
listen_dev(div2, "click", /*click_handler_2*/ ctx[
|
|
12881
|
+
listen_dev(div0, "click", /*click_handler*/ ctx[15], false, false, false),
|
|
12882
|
+
listen_dev(div2, "click", /*click_handler_2*/ ctx[19], false, false, false)
|
|
12883
12883
|
];
|
|
12884
12884
|
|
|
12885
12885
|
mounted = true;
|
|
12886
12886
|
}
|
|
12887
12887
|
},
|
|
12888
12888
|
p: function update(ctx, dirty) {
|
|
12889
|
-
if (dirty & /*atStart*/
|
|
12890
|
-
toggle_class(div0, "disabled", /*atStart*/ ctx[
|
|
12889
|
+
if (dirty[0] & /*atStart*/ 32) {
|
|
12890
|
+
toggle_class(div0, "disabled", /*atStart*/ ctx[5]);
|
|
12891
12891
|
}
|
|
12892
12892
|
|
|
12893
|
-
if (dirty & /*gameClicked, games*/
|
|
12893
|
+
if (dirty[0] & /*gameClicked, games, enter, leave, hover, hoverIndex*/ 1433) {
|
|
12894
12894
|
each_value = /*games*/ ctx[0];
|
|
12895
12895
|
validate_each_argument(each_value);
|
|
12896
12896
|
let i;
|
|
@@ -12914,12 +12914,12 @@
|
|
|
12914
12914
|
each_blocks.length = each_value.length;
|
|
12915
12915
|
}
|
|
12916
12916
|
|
|
12917
|
-
if (dirty & /*offset*/ 2) {
|
|
12917
|
+
if (dirty[0] & /*offset*/ 2) {
|
|
12918
12918
|
set_style(div1, "transform", "translateX(" + /*offset*/ ctx[1] + "px)");
|
|
12919
12919
|
}
|
|
12920
12920
|
|
|
12921
|
-
if (dirty & /*atEnd*/
|
|
12922
|
-
toggle_class(div2, "disabled", /*atEnd*/ ctx[
|
|
12921
|
+
if (dirty[0] & /*atEnd*/ 64) {
|
|
12922
|
+
toggle_class(div2, "disabled", /*atEnd*/ ctx[6]);
|
|
12923
12923
|
}
|
|
12924
12924
|
},
|
|
12925
12925
|
d: function destroy(detaching) {
|
|
@@ -12938,71 +12938,102 @@
|
|
|
12938
12938
|
block,
|
|
12939
12939
|
id: create_if_block$3.name,
|
|
12940
12940
|
type: "if",
|
|
12941
|
-
source: "(
|
|
12941
|
+
source: "(111:2) {#if games}",
|
|
12942
12942
|
ctx
|
|
12943
12943
|
});
|
|
12944
12944
|
|
|
12945
12945
|
return block;
|
|
12946
12946
|
}
|
|
12947
12947
|
|
|
12948
|
-
// (
|
|
12948
|
+
// (119:8) {#each games as game, i}
|
|
12949
12949
|
function create_each_block$1(ctx) {
|
|
12950
12950
|
let div;
|
|
12951
|
+
let span;
|
|
12952
|
+
let t0;
|
|
12953
|
+
let span_class_value;
|
|
12954
|
+
let t1;
|
|
12951
12955
|
let img;
|
|
12952
12956
|
let img_src_value;
|
|
12953
12957
|
let img_alt_value;
|
|
12954
12958
|
let img_title_value;
|
|
12955
|
-
let
|
|
12959
|
+
let t2;
|
|
12956
12960
|
let mounted;
|
|
12957
12961
|
let dispose;
|
|
12958
12962
|
|
|
12959
12963
|
function click_handler_1() {
|
|
12960
|
-
return /*click_handler_1*/ ctx[
|
|
12964
|
+
return /*click_handler_1*/ ctx[16](/*game*/ ctx[34]);
|
|
12965
|
+
}
|
|
12966
|
+
|
|
12967
|
+
function mouseenter_handler() {
|
|
12968
|
+
return /*mouseenter_handler*/ ctx[17](/*i*/ ctx[36]);
|
|
12961
12969
|
}
|
|
12962
12970
|
|
|
12963
12971
|
const block = {
|
|
12964
12972
|
c: function create() {
|
|
12965
12973
|
div = element("div");
|
|
12974
|
+
span = element("span");
|
|
12975
|
+
t0 = text("Play now");
|
|
12976
|
+
t1 = space();
|
|
12966
12977
|
img = element("img");
|
|
12967
|
-
|
|
12968
|
-
|
|
12978
|
+
t2 = space();
|
|
12979
|
+
|
|
12980
|
+
attr_dev(span, "class", span_class_value = "PlayNowButton " + (/*hover*/ ctx[3] && /*hoverIndex*/ ctx[4] == /*i*/ ctx[36]
|
|
12981
|
+
? "itemHover"
|
|
12982
|
+
: ""));
|
|
12983
|
+
|
|
12984
|
+
add_location(span, file$3, 120, 12, 3794);
|
|
12985
|
+
if (img.src !== (img_src_value = /*game*/ ctx[34].thumbnail)) attr_dev(img, "src", img_src_value);
|
|
12969
12986
|
attr_dev(img, "width", "132px");
|
|
12970
12987
|
attr_dev(img, "height", "100px");
|
|
12971
|
-
attr_dev(img, "alt", img_alt_value = /*game*/ ctx[
|
|
12972
|
-
attr_dev(img, "title", img_title_value = /*game*/ ctx[
|
|
12973
|
-
add_location(img, file$3,
|
|
12988
|
+
attr_dev(img, "alt", img_alt_value = /*game*/ ctx[34].name);
|
|
12989
|
+
attr_dev(img, "title", img_title_value = /*game*/ ctx[34].name);
|
|
12990
|
+
add_location(img, file$3, 121, 12, 3897);
|
|
12974
12991
|
attr_dev(div, "class", "item");
|
|
12975
|
-
add_location(div, file$3,
|
|
12992
|
+
add_location(div, file$3, 119, 10, 3667);
|
|
12976
12993
|
},
|
|
12977
12994
|
m: function mount(target, anchor) {
|
|
12978
12995
|
insert_dev(target, div, anchor);
|
|
12996
|
+
append_dev(div, span);
|
|
12997
|
+
append_dev(span, t0);
|
|
12998
|
+
append_dev(div, t1);
|
|
12979
12999
|
append_dev(div, img);
|
|
12980
|
-
append_dev(div,
|
|
13000
|
+
append_dev(div, t2);
|
|
12981
13001
|
|
|
12982
13002
|
if (!mounted) {
|
|
12983
|
-
dispose =
|
|
13003
|
+
dispose = [
|
|
13004
|
+
listen_dev(div, "click", click_handler_1, false, false, false),
|
|
13005
|
+
listen_dev(div, "mouseenter", mouseenter_handler, false, false, false),
|
|
13006
|
+
listen_dev(div, "mouseleave", /*mouseleave_handler*/ ctx[18], false, false, false)
|
|
13007
|
+
];
|
|
13008
|
+
|
|
12984
13009
|
mounted = true;
|
|
12985
13010
|
}
|
|
12986
13011
|
},
|
|
12987
13012
|
p: function update(new_ctx, dirty) {
|
|
12988
13013
|
ctx = new_ctx;
|
|
12989
13014
|
|
|
12990
|
-
if (dirty & /*
|
|
13015
|
+
if (dirty[0] & /*hover, hoverIndex*/ 24 && span_class_value !== (span_class_value = "PlayNowButton " + (/*hover*/ ctx[3] && /*hoverIndex*/ ctx[4] == /*i*/ ctx[36]
|
|
13016
|
+
? "itemHover"
|
|
13017
|
+
: ""))) {
|
|
13018
|
+
attr_dev(span, "class", span_class_value);
|
|
13019
|
+
}
|
|
13020
|
+
|
|
13021
|
+
if (dirty[0] & /*games*/ 1 && img.src !== (img_src_value = /*game*/ ctx[34].thumbnail)) {
|
|
12991
13022
|
attr_dev(img, "src", img_src_value);
|
|
12992
13023
|
}
|
|
12993
13024
|
|
|
12994
|
-
if (dirty & /*games*/ 1 && img_alt_value !== (img_alt_value = /*game*/ ctx[
|
|
13025
|
+
if (dirty[0] & /*games*/ 1 && img_alt_value !== (img_alt_value = /*game*/ ctx[34].name)) {
|
|
12995
13026
|
attr_dev(img, "alt", img_alt_value);
|
|
12996
13027
|
}
|
|
12997
13028
|
|
|
12998
|
-
if (dirty & /*games*/ 1 && img_title_value !== (img_title_value = /*game*/ ctx[
|
|
13029
|
+
if (dirty[0] & /*games*/ 1 && img_title_value !== (img_title_value = /*game*/ ctx[34].name)) {
|
|
12999
13030
|
attr_dev(img, "title", img_title_value);
|
|
13000
13031
|
}
|
|
13001
13032
|
},
|
|
13002
13033
|
d: function destroy(detaching) {
|
|
13003
13034
|
if (detaching) detach_dev(div);
|
|
13004
13035
|
mounted = false;
|
|
13005
|
-
dispose
|
|
13036
|
+
run_all(dispose);
|
|
13006
13037
|
}
|
|
13007
13038
|
};
|
|
13008
13039
|
|
|
@@ -13010,7 +13041,7 @@
|
|
|
13010
13041
|
block,
|
|
13011
13042
|
id: create_each_block$1.name,
|
|
13012
13043
|
type: "each",
|
|
13013
|
-
source: "(
|
|
13044
|
+
source: "(119:8) {#each games as game, i}",
|
|
13014
13045
|
ctx
|
|
13015
13046
|
});
|
|
13016
13047
|
|
|
@@ -13027,7 +13058,7 @@
|
|
|
13027
13058
|
if (if_block) if_block.c();
|
|
13028
13059
|
this.c = noop$1;
|
|
13029
13060
|
attr_dev(div, "class", "TournamentsGamesSlider");
|
|
13030
|
-
add_location(div, file$3,
|
|
13061
|
+
add_location(div, file$3, 109, 0, 3156);
|
|
13031
13062
|
},
|
|
13032
13063
|
l: function claim(nodes) {
|
|
13033
13064
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -13035,9 +13066,9 @@
|
|
|
13035
13066
|
m: function mount(target, anchor) {
|
|
13036
13067
|
insert_dev(target, div, anchor);
|
|
13037
13068
|
if (if_block) if_block.m(div, null);
|
|
13038
|
-
/*div_binding*/ ctx[
|
|
13069
|
+
/*div_binding*/ ctx[20](div);
|
|
13039
13070
|
},
|
|
13040
|
-
p: function update(ctx,
|
|
13071
|
+
p: function update(ctx, dirty) {
|
|
13041
13072
|
if (/*games*/ ctx[0]) {
|
|
13042
13073
|
if (if_block) {
|
|
13043
13074
|
if_block.p(ctx, dirty);
|
|
@@ -13056,7 +13087,7 @@
|
|
|
13056
13087
|
d: function destroy(detaching) {
|
|
13057
13088
|
if (detaching) detach_dev(div);
|
|
13058
13089
|
if (if_block) if_block.d();
|
|
13059
|
-
/*div_binding*/ ctx[
|
|
13090
|
+
/*div_binding*/ ctx[20](null);
|
|
13060
13091
|
}
|
|
13061
13092
|
};
|
|
13062
13093
|
|
|
@@ -13090,6 +13121,18 @@
|
|
|
13090
13121
|
let slider;
|
|
13091
13122
|
let xDown = null;
|
|
13092
13123
|
let yDown = null;
|
|
13124
|
+
let hover = false;
|
|
13125
|
+
let hoverIndex = "";
|
|
13126
|
+
|
|
13127
|
+
const enter = index => {
|
|
13128
|
+
$$invalidate(3, hover = true);
|
|
13129
|
+
$$invalidate(4, hoverIndex = index);
|
|
13130
|
+
};
|
|
13131
|
+
|
|
13132
|
+
const leave = () => {
|
|
13133
|
+
$$invalidate(3, hover = false);
|
|
13134
|
+
$$invalidate(4, hoverIndex = -1);
|
|
13135
|
+
};
|
|
13093
13136
|
|
|
13094
13137
|
const getTouches = evt => {
|
|
13095
13138
|
return evt.touches || evt.originalEvent.touches;
|
|
@@ -13182,6 +13225,8 @@
|
|
|
13182
13225
|
|
|
13183
13226
|
const click_handler = () => move(-1);
|
|
13184
13227
|
const click_handler_1 = game => gameClicked(game);
|
|
13228
|
+
const mouseenter_handler = i => enter(i);
|
|
13229
|
+
const mouseleave_handler = () => leave();
|
|
13185
13230
|
const click_handler_2 = () => move(1);
|
|
13186
13231
|
|
|
13187
13232
|
function div_binding($$value) {
|
|
@@ -13192,10 +13237,10 @@
|
|
|
13192
13237
|
}
|
|
13193
13238
|
|
|
13194
13239
|
$$self.$$set = $$props => {
|
|
13195
|
-
if ("tournamenturl" in $$props) $$invalidate(
|
|
13196
|
-
if ("scrollby" in $$props) $$invalidate(
|
|
13197
|
-
if ("pagfactor" in $$props) $$invalidate(
|
|
13198
|
-
if ("lang" in $$props) $$invalidate(
|
|
13240
|
+
if ("tournamenturl" in $$props) $$invalidate(11, tournamenturl = $$props.tournamenturl);
|
|
13241
|
+
if ("scrollby" in $$props) $$invalidate(12, scrollby = $$props.scrollby);
|
|
13242
|
+
if ("pagfactor" in $$props) $$invalidate(13, pagfactor = $$props.pagfactor);
|
|
13243
|
+
if ("lang" in $$props) $$invalidate(14, lang = $$props.lang);
|
|
13199
13244
|
};
|
|
13200
13245
|
|
|
13201
13246
|
$$self.$capture_state = () => ({
|
|
@@ -13215,6 +13260,10 @@
|
|
|
13215
13260
|
slider,
|
|
13216
13261
|
xDown,
|
|
13217
13262
|
yDown,
|
|
13263
|
+
hover,
|
|
13264
|
+
hoverIndex,
|
|
13265
|
+
enter,
|
|
13266
|
+
leave,
|
|
13218
13267
|
getTouches,
|
|
13219
13268
|
handleTouchStart,
|
|
13220
13269
|
handleTouchMove,
|
|
@@ -13228,10 +13277,10 @@
|
|
|
13228
13277
|
});
|
|
13229
13278
|
|
|
13230
13279
|
$$self.$inject_state = $$props => {
|
|
13231
|
-
if ("tournamenturl" in $$props) $$invalidate(
|
|
13232
|
-
if ("scrollby" in $$props) $$invalidate(
|
|
13233
|
-
if ("pagfactor" in $$props) $$invalidate(
|
|
13234
|
-
if ("lang" in $$props) $$invalidate(
|
|
13280
|
+
if ("tournamenturl" in $$props) $$invalidate(11, tournamenturl = $$props.tournamenturl);
|
|
13281
|
+
if ("scrollby" in $$props) $$invalidate(12, scrollby = $$props.scrollby);
|
|
13282
|
+
if ("pagfactor" in $$props) $$invalidate(13, pagfactor = $$props.pagfactor);
|
|
13283
|
+
if ("lang" in $$props) $$invalidate(14, lang = $$props.lang);
|
|
13235
13284
|
if ("userAgent" in $$props) userAgent = $$props.userAgent;
|
|
13236
13285
|
if ("items" in $$props) items = $$props.items;
|
|
13237
13286
|
if ("totalPaginationPixels" in $$props) totalPaginationPixels = $$props.totalPaginationPixels;
|
|
@@ -13242,8 +13291,10 @@
|
|
|
13242
13291
|
if ("slider" in $$props) $$invalidate(2, slider = $$props.slider);
|
|
13243
13292
|
if ("xDown" in $$props) xDown = $$props.xDown;
|
|
13244
13293
|
if ("yDown" in $$props) yDown = $$props.yDown;
|
|
13245
|
-
if ("
|
|
13246
|
-
if ("
|
|
13294
|
+
if ("hover" in $$props) $$invalidate(3, hover = $$props.hover);
|
|
13295
|
+
if ("hoverIndex" in $$props) $$invalidate(4, hoverIndex = $$props.hoverIndex);
|
|
13296
|
+
if ("atStart" in $$props) $$invalidate(5, atStart = $$props.atStart);
|
|
13297
|
+
if ("atEnd" in $$props) $$invalidate(6, atEnd = $$props.atEnd);
|
|
13247
13298
|
};
|
|
13248
13299
|
|
|
13249
13300
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -13251,19 +13302,19 @@
|
|
|
13251
13302
|
}
|
|
13252
13303
|
|
|
13253
13304
|
$$self.$$.update = () => {
|
|
13254
|
-
if ($$self.$$.dirty & /*offset*/ 2) {
|
|
13255
|
-
$$invalidate(
|
|
13305
|
+
if ($$self.$$.dirty[0] & /*offset*/ 2) {
|
|
13306
|
+
$$invalidate(5, atStart = offset === 0);
|
|
13256
13307
|
}
|
|
13257
13308
|
|
|
13258
|
-
if ($$self.$$.dirty & /*offset, pagfactor, games, scrollby*/
|
|
13259
|
-
$$invalidate(
|
|
13309
|
+
if ($$self.$$.dirty[0] & /*offset, pagfactor, games, scrollby*/ 12291) {
|
|
13310
|
+
$$invalidate(6, atEnd = offset <= parseInt(pagfactor, 10) * (games.length - parseInt(scrollby, 10)) * -1);
|
|
13260
13311
|
}
|
|
13261
13312
|
|
|
13262
|
-
if ($$self.$$.dirty & /*tournamenturl*/
|
|
13313
|
+
if ($$self.$$.dirty[0] & /*tournamenturl*/ 2048) {
|
|
13263
13314
|
tournamenturl && fetchData();
|
|
13264
13315
|
}
|
|
13265
13316
|
|
|
13266
|
-
if ($$self.$$.dirty & /*slider*/ 4) {
|
|
13317
|
+
if ($$self.$$.dirty[0] & /*slider*/ 4) {
|
|
13267
13318
|
// @TODO
|
|
13268
13319
|
// $: scrollby && pagfactor && getTotalPixels();
|
|
13269
13320
|
slider && addEventListeners();
|
|
@@ -13276,8 +13327,12 @@
|
|
|
13276
13327
|
games,
|
|
13277
13328
|
offset,
|
|
13278
13329
|
slider,
|
|
13330
|
+
hover,
|
|
13331
|
+
hoverIndex,
|
|
13279
13332
|
atStart,
|
|
13280
13333
|
atEnd,
|
|
13334
|
+
enter,
|
|
13335
|
+
leave,
|
|
13281
13336
|
move,
|
|
13282
13337
|
gameClicked,
|
|
13283
13338
|
tournamenturl,
|
|
@@ -13286,6 +13341,8 @@
|
|
|
13286
13341
|
lang,
|
|
13287
13342
|
click_handler,
|
|
13288
13343
|
click_handler_1,
|
|
13344
|
+
mouseenter_handler,
|
|
13345
|
+
mouseleave_handler,
|
|
13289
13346
|
click_handler_2,
|
|
13290
13347
|
div_binding
|
|
13291
13348
|
];
|
|
@@ -13294,7 +13351,7 @@
|
|
|
13294
13351
|
class CasinoTournamentsThumbnailGamesSlider extends SvelteElement {
|
|
13295
13352
|
constructor(options) {
|
|
13296
13353
|
super();
|
|
13297
|
-
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>`;
|
|
13354
|
+
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>`;
|
|
13298
13355
|
|
|
13299
13356
|
init(
|
|
13300
13357
|
this,
|
|
@@ -13307,11 +13364,12 @@
|
|
|
13307
13364
|
create_fragment$3,
|
|
13308
13365
|
safe_not_equal,
|
|
13309
13366
|
{
|
|
13310
|
-
tournamenturl:
|
|
13311
|
-
scrollby:
|
|
13312
|
-
pagfactor:
|
|
13313
|
-
lang:
|
|
13314
|
-
}
|
|
13367
|
+
tournamenturl: 11,
|
|
13368
|
+
scrollby: 12,
|
|
13369
|
+
pagfactor: 13,
|
|
13370
|
+
lang: 14
|
|
13371
|
+
},
|
|
13372
|
+
[-1, -1]
|
|
13315
13373
|
);
|
|
13316
13374
|
|
|
13317
13375
|
if (options) {
|
|
@@ -13331,7 +13389,7 @@
|
|
|
13331
13389
|
}
|
|
13332
13390
|
|
|
13333
13391
|
get tournamenturl() {
|
|
13334
|
-
return this.$$.ctx[
|
|
13392
|
+
return this.$$.ctx[11];
|
|
13335
13393
|
}
|
|
13336
13394
|
|
|
13337
13395
|
set tournamenturl(tournamenturl) {
|
|
@@ -13340,7 +13398,7 @@
|
|
|
13340
13398
|
}
|
|
13341
13399
|
|
|
13342
13400
|
get scrollby() {
|
|
13343
|
-
return this.$$.ctx[
|
|
13401
|
+
return this.$$.ctx[12];
|
|
13344
13402
|
}
|
|
13345
13403
|
|
|
13346
13404
|
set scrollby(scrollby) {
|
|
@@ -13349,7 +13407,7 @@
|
|
|
13349
13407
|
}
|
|
13350
13408
|
|
|
13351
13409
|
get pagfactor() {
|
|
13352
|
-
return this.$$.ctx[
|
|
13410
|
+
return this.$$.ctx[13];
|
|
13353
13411
|
}
|
|
13354
13412
|
|
|
13355
13413
|
set pagfactor(pagfactor) {
|
|
@@ -13358,7 +13416,7 @@
|
|
|
13358
13416
|
}
|
|
13359
13417
|
|
|
13360
13418
|
get lang() {
|
|
13361
|
-
return this.$$.ctx[
|
|
13419
|
+
return this.$$.ctx[14];
|
|
13362
13420
|
}
|
|
13363
13421
|
|
|
13364
13422
|
set lang(lang) {
|
|
@@ -15523,7 +15581,7 @@
|
|
|
15523
15581
|
const { console: console_1 } = globals;
|
|
15524
15582
|
const file = "src/CasinoTournamentsController.svelte";
|
|
15525
15583
|
|
|
15526
|
-
// (
|
|
15584
|
+
// (166:0) {:else}
|
|
15527
15585
|
function create_else_block(ctx) {
|
|
15528
15586
|
let div2;
|
|
15529
15587
|
let div0;
|
|
@@ -15552,11 +15610,11 @@
|
|
|
15552
15610
|
t1 = space();
|
|
15553
15611
|
if (if_block2) if_block2.c();
|
|
15554
15612
|
attr_dev(div0, "class", "FirstRow");
|
|
15555
|
-
add_location(div0, file,
|
|
15613
|
+
add_location(div0, file, 167, 4, 5470);
|
|
15556
15614
|
attr_dev(div1, "class", "SecondRow");
|
|
15557
|
-
add_location(div1, file,
|
|
15615
|
+
add_location(div1, file, 175, 4, 5708);
|
|
15558
15616
|
attr_dev(div2, "class", "Tournaments");
|
|
15559
|
-
add_location(div2, file,
|
|
15617
|
+
add_location(div2, file, 166, 2, 5440);
|
|
15560
15618
|
},
|
|
15561
15619
|
m: function mount(target, anchor) {
|
|
15562
15620
|
insert_dev(target, div2, anchor);
|
|
@@ -15619,14 +15677,14 @@
|
|
|
15619
15677
|
block,
|
|
15620
15678
|
id: create_else_block.name,
|
|
15621
15679
|
type: "else",
|
|
15622
|
-
source: "(
|
|
15680
|
+
source: "(166:0) {:else}",
|
|
15623
15681
|
ctx
|
|
15624
15682
|
});
|
|
15625
15683
|
|
|
15626
15684
|
return block;
|
|
15627
15685
|
}
|
|
15628
15686
|
|
|
15629
|
-
// (
|
|
15687
|
+
// (163:0) {#if hasErrors}
|
|
15630
15688
|
function create_if_block(ctx) {
|
|
15631
15689
|
let p0;
|
|
15632
15690
|
let t1;
|
|
@@ -15640,8 +15698,8 @@
|
|
|
15640
15698
|
t1 = space();
|
|
15641
15699
|
p1 = element("p");
|
|
15642
15700
|
t2 = text(/*error*/ ctx[10]);
|
|
15643
|
-
add_location(p0, file,
|
|
15644
|
-
add_location(p1, file,
|
|
15701
|
+
add_location(p0, file, 163, 2, 5378);
|
|
15702
|
+
add_location(p1, file, 164, 2, 5415);
|
|
15645
15703
|
},
|
|
15646
15704
|
m: function mount(target, anchor) {
|
|
15647
15705
|
insert_dev(target, p0, anchor);
|
|
@@ -15663,14 +15721,14 @@
|
|
|
15663
15721
|
block,
|
|
15664
15722
|
id: create_if_block.name,
|
|
15665
15723
|
type: "if",
|
|
15666
|
-
source: "(
|
|
15724
|
+
source: "(163:0) {#if hasErrors}",
|
|
15667
15725
|
ctx
|
|
15668
15726
|
});
|
|
15669
15727
|
|
|
15670
15728
|
return block;
|
|
15671
15729
|
}
|
|
15672
15730
|
|
|
15673
|
-
// (
|
|
15731
|
+
// (169:6) {#if filtersLoaded}
|
|
15674
15732
|
function create_if_block_4(ctx) {
|
|
15675
15733
|
let casino_tournaments_filter_controller;
|
|
15676
15734
|
|
|
@@ -15679,7 +15737,7 @@
|
|
|
15679
15737
|
casino_tournaments_filter_controller = element("casino-tournaments-filter-controller");
|
|
15680
15738
|
set_custom_element_data(casino_tournaments_filter_controller, "filters", /*filtersArray*/ ctx[15]);
|
|
15681
15739
|
set_custom_element_data(casino_tournaments_filter_controller, "activefilters", /*filters*/ ctx[4]);
|
|
15682
|
-
add_location(casino_tournaments_filter_controller, file,
|
|
15740
|
+
add_location(casino_tournaments_filter_controller, file, 169, 8, 5527);
|
|
15683
15741
|
},
|
|
15684
15742
|
m: function mount(target, anchor) {
|
|
15685
15743
|
insert_dev(target, casino_tournaments_filter_controller, anchor);
|
|
@@ -15698,14 +15756,14 @@
|
|
|
15698
15756
|
block,
|
|
15699
15757
|
id: create_if_block_4.name,
|
|
15700
15758
|
type: "if",
|
|
15701
|
-
source: "(
|
|
15759
|
+
source: "(169:6) {#if filtersLoaded}",
|
|
15702
15760
|
ctx
|
|
15703
15761
|
});
|
|
15704
15762
|
|
|
15705
15763
|
return block;
|
|
15706
15764
|
}
|
|
15707
15765
|
|
|
15708
|
-
// (
|
|
15766
|
+
// (183:6) {:else}
|
|
15709
15767
|
function create_else_block_2(ctx) {
|
|
15710
15768
|
let casino_tournaments_list_controller;
|
|
15711
15769
|
|
|
@@ -15720,7 +15778,7 @@
|
|
|
15720
15778
|
set_custom_element_data(casino_tournaments_list_controller, "loginevent", /*loginevent*/ ctx[5]);
|
|
15721
15779
|
set_custom_element_data(casino_tournaments_list_controller, "registerurl", /*registerurl*/ ctx[8]);
|
|
15722
15780
|
set_custom_element_data(casino_tournaments_list_controller, "registerevent", /*registerevent*/ ctx[6]);
|
|
15723
|
-
add_location(casino_tournaments_list_controller, file,
|
|
15781
|
+
add_location(casino_tournaments_list_controller, file, 183, 8, 5923);
|
|
15724
15782
|
},
|
|
15725
15783
|
m: function mount(target, anchor) {
|
|
15726
15784
|
insert_dev(target, casino_tournaments_list_controller, anchor);
|
|
@@ -15767,14 +15825,14 @@
|
|
|
15767
15825
|
block,
|
|
15768
15826
|
id: create_else_block_2.name,
|
|
15769
15827
|
type: "else",
|
|
15770
|
-
source: "(
|
|
15828
|
+
source: "(183:6) {:else}",
|
|
15771
15829
|
ctx
|
|
15772
15830
|
});
|
|
15773
15831
|
|
|
15774
15832
|
return block;
|
|
15775
15833
|
}
|
|
15776
15834
|
|
|
15777
|
-
// (
|
|
15835
|
+
// (177:6) {#if tournamentsNumber == 0}
|
|
15778
15836
|
function create_if_block_2(ctx) {
|
|
15779
15837
|
let if_block_anchor;
|
|
15780
15838
|
|
|
@@ -15816,14 +15874,14 @@
|
|
|
15816
15874
|
block,
|
|
15817
15875
|
id: create_if_block_2.name,
|
|
15818
15876
|
type: "if",
|
|
15819
|
-
source: "(
|
|
15877
|
+
source: "(177:6) {#if tournamentsNumber == 0}",
|
|
15820
15878
|
ctx
|
|
15821
15879
|
});
|
|
15822
15880
|
|
|
15823
15881
|
return block;
|
|
15824
15882
|
}
|
|
15825
15883
|
|
|
15826
|
-
// (
|
|
15884
|
+
// (180:8) {:else}
|
|
15827
15885
|
function create_else_block_1(ctx) {
|
|
15828
15886
|
let p;
|
|
15829
15887
|
|
|
@@ -15831,7 +15889,7 @@
|
|
|
15831
15889
|
c: function create() {
|
|
15832
15890
|
p = element("p");
|
|
15833
15891
|
p.textContent = "No tournaments found";
|
|
15834
|
-
add_location(p, file,
|
|
15892
|
+
add_location(p, file, 180, 10, 5859);
|
|
15835
15893
|
},
|
|
15836
15894
|
m: function mount(target, anchor) {
|
|
15837
15895
|
insert_dev(target, p, anchor);
|
|
@@ -15845,14 +15903,14 @@
|
|
|
15845
15903
|
block,
|
|
15846
15904
|
id: create_else_block_1.name,
|
|
15847
15905
|
type: "else",
|
|
15848
|
-
source: "(
|
|
15906
|
+
source: "(180:8) {:else}",
|
|
15849
15907
|
ctx
|
|
15850
15908
|
});
|
|
15851
15909
|
|
|
15852
15910
|
return block;
|
|
15853
15911
|
}
|
|
15854
15912
|
|
|
15855
|
-
// (
|
|
15913
|
+
// (178:8) {#if isLoading}
|
|
15856
15914
|
function create_if_block_3(ctx) {
|
|
15857
15915
|
let p;
|
|
15858
15916
|
|
|
@@ -15860,7 +15918,7 @@
|
|
|
15860
15918
|
c: function create() {
|
|
15861
15919
|
p = element("p");
|
|
15862
15920
|
p.textContent = "Loading, please wait ...";
|
|
15863
|
-
add_location(p, file,
|
|
15921
|
+
add_location(p, file, 178, 10, 5801);
|
|
15864
15922
|
},
|
|
15865
15923
|
m: function mount(target, anchor) {
|
|
15866
15924
|
insert_dev(target, p, anchor);
|
|
@@ -15874,14 +15932,14 @@
|
|
|
15874
15932
|
block,
|
|
15875
15933
|
id: create_if_block_3.name,
|
|
15876
15934
|
type: "if",
|
|
15877
|
-
source: "(
|
|
15935
|
+
source: "(178:8) {#if isLoading}",
|
|
15878
15936
|
ctx
|
|
15879
15937
|
});
|
|
15880
15938
|
|
|
15881
15939
|
return block;
|
|
15882
15940
|
}
|
|
15883
15941
|
|
|
15884
|
-
// (
|
|
15942
|
+
// (196:4) {#if !allTournamentsShown}
|
|
15885
15943
|
function create_if_block_1(ctx) {
|
|
15886
15944
|
let div1;
|
|
15887
15945
|
let div0;
|
|
@@ -15897,11 +15955,11 @@
|
|
|
15897
15955
|
button.textContent = "Show more";
|
|
15898
15956
|
attr_dev(button, "class", "ShowMoreButton");
|
|
15899
15957
|
attr_dev(button, "title", "Show More");
|
|
15900
|
-
add_location(button, file,
|
|
15958
|
+
add_location(button, file, 198, 10, 6410);
|
|
15901
15959
|
attr_dev(div0, "class", "CenterButton");
|
|
15902
|
-
add_location(div0, file,
|
|
15960
|
+
add_location(div0, file, 197, 8, 6373);
|
|
15903
15961
|
attr_dev(div1, "class", "ThirdRow");
|
|
15904
|
-
add_location(div1, file,
|
|
15962
|
+
add_location(div1, file, 196, 6, 6342);
|
|
15905
15963
|
},
|
|
15906
15964
|
m: function mount(target, anchor) {
|
|
15907
15965
|
insert_dev(target, div1, anchor);
|
|
@@ -15925,7 +15983,7 @@
|
|
|
15925
15983
|
block,
|
|
15926
15984
|
id: create_if_block_1.name,
|
|
15927
15985
|
type: "if",
|
|
15928
|
-
source: "(
|
|
15986
|
+
source: "(196:4) {#if !allTournamentsShown}",
|
|
15929
15987
|
ctx
|
|
15930
15988
|
});
|
|
15931
15989
|
|
|
@@ -16065,10 +16123,11 @@
|
|
|
16065
16123
|
|
|
16066
16124
|
if (activeFilters.length > 0 && activeFilters[0] != "All") {
|
|
16067
16125
|
let state = activeFilters.map(item => matchStatus(item)).join("|");
|
|
16068
|
-
tournamentsUrl.searchParams.append("filter", `state=${state}`);
|
|
16126
|
+
tournamentsUrl.searchParams.append("filter", `state=${state},StartTimeAfter=${lastMonthDate}`);
|
|
16127
|
+
} else {
|
|
16128
|
+
tournamentsUrl.searchParams.append("filter", `StartTimeAfter=${lastMonthDate}`);
|
|
16069
16129
|
}
|
|
16070
16130
|
|
|
16071
|
-
tournamentsUrl.searchParams.append("filter", `StartTimeAfter=${lastMonthDate}`);
|
|
16072
16131
|
reqHeaders.append("language", lang);
|
|
16073
16132
|
reqHeaders.append("platform", getDevice(userAgent));
|
|
16074
16133
|
reqHeaders.append("sortType", sortByStatus);
|