@everymatrix/casino-tournaments-limited-controller 1.0.15 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -7542,7 +7542,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
7542
7542
|
return child_ctx;
|
7543
7543
|
}
|
7544
7544
|
|
7545
|
-
// (
|
7545
|
+
// (58:8) {#if totalReceiver[_tab] >= 0}
|
7546
7546
|
function create_if_block$1(ctx) {
|
7547
7547
|
let sup;
|
7548
7548
|
let span;
|
@@ -7555,9 +7555,9 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
7555
7555
|
span = element("span");
|
7556
7556
|
t = text(t_value);
|
7557
7557
|
attr_dev(span, "part", "SupText");
|
7558
|
-
add_location(span, file$1,
|
7558
|
+
add_location(span, file$1, 59, 10, 2019);
|
7559
7559
|
attr_dev(sup, "part", "sup");
|
7560
|
-
add_location(sup, file$1,
|
7560
|
+
add_location(sup, file$1, 58, 8, 1992);
|
7561
7561
|
},
|
7562
7562
|
m: function mount(target, anchor) {
|
7563
7563
|
insert_dev(target, sup, anchor);
|
@@ -7576,14 +7576,14 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
7576
7576
|
block,
|
7577
7577
|
id: create_if_block$1.name,
|
7578
7578
|
type: "if",
|
7579
|
-
source: "(
|
7579
|
+
source: "(58:8) {#if totalReceiver[_tab] >= 0}",
|
7580
7580
|
ctx
|
7581
7581
|
});
|
7582
7582
|
|
7583
7583
|
return block;
|
7584
7584
|
}
|
7585
7585
|
|
7586
|
-
// (
|
7586
|
+
// (45:4) {#each __tabs as _tab}
|
7587
7587
|
function create_each_block$1(ctx) {
|
7588
7588
|
let li;
|
7589
7589
|
let span;
|
@@ -7610,10 +7610,10 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
7610
7610
|
if (if_block) if_block.c();
|
7611
7611
|
t2 = space();
|
7612
7612
|
attr_dev(span, "part", "LiText");
|
7613
|
-
add_location(span, file$1,
|
7613
|
+
add_location(span, file$1, 53, 8, 1876);
|
7614
7614
|
attr_dev(li, "class", li_class_value = /*__tab*/ ctx[3] === /*_tab*/ ctx[14] ? 'active' : '');
|
7615
7615
|
attr_dev(li, "part", li_part_value = "" + (`${/*_tab*/ ctx[14]} li` + " " + (/*__tab*/ ctx[3] === /*_tab*/ ctx[14] ? 'active' : '')));
|
7616
|
-
add_location(li, file$1,
|
7616
|
+
add_location(li, file$1, 45, 6, 1613);
|
7617
7617
|
},
|
7618
7618
|
m: function mount(target, anchor) {
|
7619
7619
|
insert_dev(target, li, anchor);
|
@@ -7665,7 +7665,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
7665
7665
|
block,
|
7666
7666
|
id: create_each_block$1.name,
|
7667
7667
|
type: "each",
|
7668
|
-
source: "(
|
7668
|
+
source: "(45:4) {#each __tabs as _tab}",
|
7669
7669
|
ctx
|
7670
7670
|
});
|
7671
7671
|
|
@@ -7694,10 +7694,10 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
7694
7694
|
|
7695
7695
|
this.c = noop$1;
|
7696
7696
|
attr_dev(ul, "part", "ul");
|
7697
|
-
add_location(ul, file$1,
|
7697
|
+
add_location(ul, file$1, 43, 2, 1565);
|
7698
7698
|
attr_dev(div, "class", "casino-tournaments-tab");
|
7699
7699
|
attr_dev(div, "part", "CustomStylingContainer");
|
7700
|
-
add_location(div, file$1,
|
7700
|
+
add_location(div, file$1, 42, 0, 1461);
|
7701
7701
|
},
|
7702
7702
|
l: function claim(nodes) {
|
7703
7703
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
@@ -7785,21 +7785,19 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
7785
7785
|
fetch(url.href).then(res => res.text()).then(data => {
|
7786
7786
|
cssFile.innerHTML = data;
|
7787
7787
|
|
7788
|
-
|
7789
|
-
|
7790
|
-
()
|
7791
|
-
|
7792
|
-
|
7793
|
-
|
7794
|
-
|
7795
|
-
|
7796
|
-
|
7797
|
-
|
7798
|
-
|
7799
|
-
|
7800
|
-
|
7801
|
-
);
|
7802
|
-
}
|
7788
|
+
setTimeout(
|
7789
|
+
() => {
|
7790
|
+
customStylingContainer.appendChild(cssFile);
|
7791
|
+
},
|
7792
|
+
1
|
7793
|
+
);
|
7794
|
+
|
7795
|
+
setTimeout(
|
7796
|
+
() => {
|
7797
|
+
displayNone = false;
|
7798
|
+
},
|
7799
|
+
500
|
7800
|
+
);
|
7803
7801
|
});
|
7804
7802
|
};
|
7805
7803
|
|
@@ -7989,25 +7987,25 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
7989
7987
|
|
7990
7988
|
function get_each_context(ctx, list, i) {
|
7991
7989
|
const child_ctx = ctx.slice();
|
7992
|
-
child_ctx[
|
7993
|
-
child_ctx[
|
7990
|
+
child_ctx[28] = list[i];
|
7991
|
+
child_ctx[30] = i;
|
7994
7992
|
return child_ctx;
|
7995
7993
|
}
|
7996
7994
|
|
7997
7995
|
function get_each_context_1(ctx, list, i) {
|
7998
7996
|
const child_ctx = ctx.slice();
|
7999
|
-
child_ctx[
|
8000
|
-
child_ctx[
|
7997
|
+
child_ctx[31] = list[i];
|
7998
|
+
child_ctx[30] = i;
|
8001
7999
|
return child_ctx;
|
8002
8000
|
}
|
8003
8001
|
|
8004
8002
|
function get_each_context_2(ctx, list, i) {
|
8005
8003
|
const child_ctx = ctx.slice();
|
8006
|
-
child_ctx[
|
8004
|
+
child_ctx[28] = list[i];
|
8007
8005
|
return child_ctx;
|
8008
8006
|
}
|
8009
8007
|
|
8010
|
-
// (
|
8008
|
+
// (131:10) {#if href}
|
8011
8009
|
function create_if_block_7(ctx) {
|
8012
8010
|
let image;
|
8013
8011
|
|
@@ -8017,8 +8015,8 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8017
8015
|
attr_dev(image, "id", "image0_2606_356");
|
8018
8016
|
attr_dev(image, "width", "512");
|
8019
8017
|
attr_dev(image, "height", "512");
|
8020
|
-
xlink_attr(image, "xlink:href", /*href*/ ctx[
|
8021
|
-
add_location(image, file,
|
8018
|
+
xlink_attr(image, "xlink:href", /*href*/ ctx[6]);
|
8019
|
+
add_location(image, file, 131, 10, 5461);
|
8022
8020
|
},
|
8023
8021
|
m: function mount(target, anchor) {
|
8024
8022
|
insert_dev(target, image, anchor);
|
@@ -8033,31 +8031,31 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8033
8031
|
block,
|
8034
8032
|
id: create_if_block_7.name,
|
8035
8033
|
type: "if",
|
8036
|
-
source: "(
|
8034
|
+
source: "(131:10) {#if href}",
|
8037
8035
|
ctx
|
8038
8036
|
});
|
8039
8037
|
|
8040
8038
|
return block;
|
8041
8039
|
}
|
8042
8040
|
|
8043
|
-
// (
|
8041
|
+
// (161:6) {#each [ $_('tournamentsLimitedController.name'), $_('tournamentsLimitedController.rank'), $_('tournamentsLimitedController.enddate'), $_('tournamentsLimitedController.prize') ] as item}
|
8044
8042
|
function create_each_block_2(ctx) {
|
8045
8043
|
let div;
|
8046
|
-
let t_value = /*item*/ ctx[
|
8044
|
+
let t_value = /*item*/ ctx[28] + "";
|
8047
8045
|
let t;
|
8048
8046
|
|
8049
8047
|
const block = {
|
8050
8048
|
c: function create() {
|
8051
8049
|
div = element("div");
|
8052
8050
|
t = text(t_value);
|
8053
|
-
add_location(div, file,
|
8051
|
+
add_location(div, file, 166, 8, 6292);
|
8054
8052
|
},
|
8055
8053
|
m: function mount(target, anchor) {
|
8056
8054
|
insert_dev(target, div, anchor);
|
8057
8055
|
append_dev(div, t);
|
8058
8056
|
},
|
8059
8057
|
p: function update(ctx, dirty) {
|
8060
|
-
if (dirty & /*$_*/
|
8058
|
+
if (dirty[0] & /*$_*/ 32 && t_value !== (t_value = /*item*/ ctx[28] + "")) set_data_dev(t, t_value);
|
8061
8059
|
},
|
8062
8060
|
d: function destroy(detaching) {
|
8063
8061
|
if (detaching) detach_dev(div);
|
@@ -8068,17 +8066,17 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8068
8066
|
block,
|
8069
8067
|
id: create_each_block_2.name,
|
8070
8068
|
type: "each",
|
8071
|
-
source: "(
|
8069
|
+
source: "(161:6) {#each [ $_('tournamentsLimitedController.name'), $_('tournamentsLimitedController.rank'), $_('tournamentsLimitedController.enddate'), $_('tournamentsLimitedController.prize') ] as item}",
|
8072
8070
|
ctx
|
8073
8071
|
});
|
8074
8072
|
|
8075
8073
|
return block;
|
8076
8074
|
}
|
8077
8075
|
|
8078
|
-
// (
|
8076
|
+
// (171:4) {#if list}
|
8079
8077
|
function create_if_block(ctx) {
|
8080
8078
|
let each_1_anchor;
|
8081
|
-
let each_value = /*list*/ ctx[
|
8079
|
+
let each_value = /*list*/ ctx[4];
|
8082
8080
|
validate_each_argument(each_value);
|
8083
8081
|
let each_blocks = [];
|
8084
8082
|
|
@@ -8102,8 +8100,8 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8102
8100
|
insert_dev(target, each_1_anchor, anchor);
|
8103
8101
|
},
|
8104
8102
|
p: function update(ctx, dirty) {
|
8105
|
-
if (dirty & /*
|
8106
|
-
each_value = /*list*/ ctx[
|
8103
|
+
if (dirty[0] & /*list*/ 16) {
|
8104
|
+
each_value = /*list*/ ctx[4];
|
8107
8105
|
validate_each_argument(each_value);
|
8108
8106
|
let i;
|
8109
8107
|
|
@@ -8136,17 +8134,17 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8136
8134
|
block,
|
8137
8135
|
id: create_if_block.name,
|
8138
8136
|
type: "if",
|
8139
|
-
source: "(
|
8137
|
+
source: "(171:4) {#if list}",
|
8140
8138
|
ctx
|
8141
8139
|
});
|
8142
8140
|
|
8143
8141
|
return block;
|
8144
8142
|
}
|
8145
8143
|
|
8146
|
-
// (
|
8144
|
+
// (175:10) {#if item}
|
8147
8145
|
function create_if_block_1(ctx) {
|
8148
8146
|
let each_1_anchor;
|
8149
|
-
let each_value_1 = Object.keys(/*item*/ ctx[
|
8147
|
+
let each_value_1 = Object.keys(/*item*/ ctx[28]).filter(func);
|
8150
8148
|
validate_each_argument(each_value_1);
|
8151
8149
|
let each_blocks = [];
|
8152
8150
|
|
@@ -8170,8 +8168,8 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8170
8168
|
insert_dev(target, each_1_anchor, anchor);
|
8171
8169
|
},
|
8172
8170
|
p: function update(ctx, dirty) {
|
8173
|
-
if (dirty & /*
|
8174
|
-
each_value_1 = Object.keys(/*item*/ ctx[
|
8171
|
+
if (dirty[0] & /*list*/ 16) {
|
8172
|
+
each_value_1 = Object.keys(/*item*/ ctx[28]).filter(func);
|
8175
8173
|
validate_each_argument(each_value_1);
|
8176
8174
|
let i;
|
8177
8175
|
|
@@ -8204,19 +8202,19 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8204
8202
|
block,
|
8205
8203
|
id: create_if_block_1.name,
|
8206
8204
|
type: "if",
|
8207
|
-
source: "(
|
8205
|
+
source: "(175:10) {#if item}",
|
8208
8206
|
ctx
|
8209
8207
|
});
|
8210
8208
|
|
8211
8209
|
return block;
|
8212
8210
|
}
|
8213
8211
|
|
8214
|
-
// (
|
8212
|
+
// (179:16) {#if item[key]}
|
8215
8213
|
function create_if_block_4(ctx) {
|
8216
8214
|
let t;
|
8217
8215
|
let if_block1_anchor;
|
8218
|
-
let if_block0 = /*key*/ ctx[
|
8219
|
-
let if_block1 = /*key*/ ctx[
|
8216
|
+
let if_block0 = /*key*/ ctx[31] === 'title' && create_if_block_6(ctx);
|
8217
|
+
let if_block1 = /*key*/ ctx[31] === 'enddate' && create_if_block_5(ctx);
|
8220
8218
|
|
8221
8219
|
const block = {
|
8222
8220
|
c: function create() {
|
@@ -8232,7 +8230,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8232
8230
|
insert_dev(target, if_block1_anchor, anchor);
|
8233
8231
|
},
|
8234
8232
|
p: function update(ctx, dirty) {
|
8235
|
-
if (/*key*/ ctx[
|
8233
|
+
if (/*key*/ ctx[31] === 'title') {
|
8236
8234
|
if (if_block0) {
|
8237
8235
|
if_block0.p(ctx, dirty);
|
8238
8236
|
} else {
|
@@ -8245,7 +8243,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8245
8243
|
if_block0 = null;
|
8246
8244
|
}
|
8247
8245
|
|
8248
|
-
if (/*key*/ ctx[
|
8246
|
+
if (/*key*/ ctx[31] === 'enddate') {
|
8249
8247
|
if (if_block1) {
|
8250
8248
|
if_block1.p(ctx, dirty);
|
8251
8249
|
} else {
|
@@ -8270,30 +8268,30 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8270
8268
|
block,
|
8271
8269
|
id: create_if_block_4.name,
|
8272
8270
|
type: "if",
|
8273
|
-
source: "(
|
8271
|
+
source: "(179:16) {#if item[key]}",
|
8274
8272
|
ctx
|
8275
8273
|
});
|
8276
8274
|
|
8277
8275
|
return block;
|
8278
8276
|
}
|
8279
8277
|
|
8280
|
-
// (
|
8278
|
+
// (181:18) {#if key === 'title'}
|
8281
8279
|
function create_if_block_6(ctx) {
|
8282
8280
|
let span;
|
8283
|
-
let t_value = /*item*/ ctx[
|
8281
|
+
let t_value = /*item*/ ctx[28].title + "";
|
8284
8282
|
let t;
|
8285
8283
|
let mounted;
|
8286
8284
|
let dispose;
|
8287
8285
|
|
8288
8286
|
function click_handler_1() {
|
8289
|
-
return /*click_handler_1*/ ctx[
|
8287
|
+
return /*click_handler_1*/ ctx[18](/*item*/ ctx[28]);
|
8290
8288
|
}
|
8291
8289
|
|
8292
8290
|
const block = {
|
8293
8291
|
c: function create() {
|
8294
8292
|
span = element("span");
|
8295
8293
|
t = text(t_value);
|
8296
|
-
add_location(span, file,
|
8294
|
+
add_location(span, file, 181, 20, 6646);
|
8297
8295
|
},
|
8298
8296
|
m: function mount(target, anchor) {
|
8299
8297
|
insert_dev(target, span, anchor);
|
@@ -8306,7 +8304,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8306
8304
|
},
|
8307
8305
|
p: function update(new_ctx, dirty) {
|
8308
8306
|
ctx = new_ctx;
|
8309
|
-
if (dirty & /*list*/
|
8307
|
+
if (dirty[0] & /*list*/ 16 && t_value !== (t_value = /*item*/ ctx[28].title + "")) set_data_dev(t, t_value);
|
8310
8308
|
},
|
8311
8309
|
d: function destroy(detaching) {
|
8312
8310
|
if (detaching) detach_dev(span);
|
@@ -8319,16 +8317,16 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8319
8317
|
block,
|
8320
8318
|
id: create_if_block_6.name,
|
8321
8319
|
type: "if",
|
8322
|
-
source: "(
|
8320
|
+
source: "(181:18) {#if key === 'title'}",
|
8323
8321
|
ctx
|
8324
8322
|
});
|
8325
8323
|
|
8326
8324
|
return block;
|
8327
8325
|
}
|
8328
8326
|
|
8329
|
-
// (
|
8327
|
+
// (193:18) {#if key === 'enddate'}
|
8330
8328
|
function create_if_block_5(ctx) {
|
8331
|
-
let t_value = formatDate(/*item*/ ctx[
|
8329
|
+
let t_value = formatDate(/*item*/ ctx[28].enddate) + "";
|
8332
8330
|
let t;
|
8333
8331
|
|
8334
8332
|
const block = {
|
@@ -8339,7 +8337,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8339
8337
|
insert_dev(target, t, anchor);
|
8340
8338
|
},
|
8341
8339
|
p: function update(ctx, dirty) {
|
8342
|
-
if (dirty & /*list*/
|
8340
|
+
if (dirty[0] & /*list*/ 16 && t_value !== (t_value = formatDate(/*item*/ ctx[28].enddate) + "")) set_data_dev(t, t_value);
|
8343
8341
|
},
|
8344
8342
|
d: function destroy(detaching) {
|
8345
8343
|
if (detaching) detach_dev(t);
|
@@ -8350,17 +8348,17 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8350
8348
|
block,
|
8351
8349
|
id: create_if_block_5.name,
|
8352
8350
|
type: "if",
|
8353
|
-
source: "(
|
8351
|
+
source: "(193:18) {#if key === 'enddate'}",
|
8354
8352
|
ctx
|
8355
8353
|
});
|
8356
8354
|
|
8357
8355
|
return block;
|
8358
8356
|
}
|
8359
8357
|
|
8360
|
-
// (
|
8358
|
+
// (198:16) {#if key === 'rank'}
|
8361
8359
|
function create_if_block_3(ctx) {
|
8362
8360
|
let span;
|
8363
|
-
let t_value = (/*item*/ ctx[
|
8361
|
+
let t_value = (/*item*/ ctx[28].rank || ' -') + "";
|
8364
8362
|
let t;
|
8365
8363
|
let span_class_value;
|
8366
8364
|
|
@@ -8368,17 +8366,17 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8368
8366
|
c: function create() {
|
8369
8367
|
span = element("span");
|
8370
8368
|
t = text(t_value);
|
8371
|
-
attr_dev(span, "class", span_class_value = /*item*/ ctx[
|
8372
|
-
add_location(span, file,
|
8369
|
+
attr_dev(span, "class", span_class_value = /*item*/ ctx[28].prize ? "prize-active" : '');
|
8370
|
+
add_location(span, file, 198, 18, 7219);
|
8373
8371
|
},
|
8374
8372
|
m: function mount(target, anchor) {
|
8375
8373
|
insert_dev(target, span, anchor);
|
8376
8374
|
append_dev(span, t);
|
8377
8375
|
},
|
8378
8376
|
p: function update(ctx, dirty) {
|
8379
|
-
if (dirty & /*list*/
|
8377
|
+
if (dirty[0] & /*list*/ 16 && t_value !== (t_value = (/*item*/ ctx[28].rank || ' -') + "")) set_data_dev(t, t_value);
|
8380
8378
|
|
8381
|
-
if (dirty & /*list*/
|
8379
|
+
if (dirty[0] & /*list*/ 16 && span_class_value !== (span_class_value = /*item*/ ctx[28].prize ? "prize-active" : '')) {
|
8382
8380
|
attr_dev(span, "class", span_class_value);
|
8383
8381
|
}
|
8384
8382
|
},
|
@@ -8391,17 +8389,17 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8391
8389
|
block,
|
8392
8390
|
id: create_if_block_3.name,
|
8393
8391
|
type: "if",
|
8394
|
-
source: "(
|
8392
|
+
source: "(198:16) {#if key === 'rank'}",
|
8395
8393
|
ctx
|
8396
8394
|
});
|
8397
8395
|
|
8398
8396
|
return block;
|
8399
8397
|
}
|
8400
8398
|
|
8401
|
-
// (
|
8399
|
+
// (202:16) {#if key === 'prize'}
|
8402
8400
|
function create_if_block_2(ctx) {
|
8403
8401
|
let span;
|
8404
|
-
let t_value = (/*item*/ ctx[
|
8402
|
+
let t_value = (/*item*/ ctx[28].prize || ' -') + "";
|
8405
8403
|
let t;
|
8406
8404
|
let span_class_value;
|
8407
8405
|
|
@@ -8409,17 +8407,17 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8409
8407
|
c: function create() {
|
8410
8408
|
span = element("span");
|
8411
8409
|
t = text(t_value);
|
8412
|
-
attr_dev(span, "class", span_class_value = /*item*/ ctx[
|
8413
|
-
add_location(span, file,
|
8410
|
+
attr_dev(span, "class", span_class_value = /*item*/ ctx[28].prize ? "prize-active" : '');
|
8411
|
+
add_location(span, file, 202, 18, 7372);
|
8414
8412
|
},
|
8415
8413
|
m: function mount(target, anchor) {
|
8416
8414
|
insert_dev(target, span, anchor);
|
8417
8415
|
append_dev(span, t);
|
8418
8416
|
},
|
8419
8417
|
p: function update(ctx, dirty) {
|
8420
|
-
if (dirty & /*list*/
|
8418
|
+
if (dirty[0] & /*list*/ 16 && t_value !== (t_value = (/*item*/ ctx[28].prize || ' -') + "")) set_data_dev(t, t_value);
|
8421
8419
|
|
8422
|
-
if (dirty & /*list*/
|
8420
|
+
if (dirty[0] & /*list*/ 16 && span_class_value !== (span_class_value = /*item*/ ctx[28].prize ? "prize-active" : '')) {
|
8423
8421
|
attr_dev(span, "class", span_class_value);
|
8424
8422
|
}
|
8425
8423
|
},
|
@@ -8432,23 +8430,23 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8432
8430
|
block,
|
8433
8431
|
id: create_if_block_2.name,
|
8434
8432
|
type: "if",
|
8435
|
-
source: "(
|
8433
|
+
source: "(202:16) {#if key === 'prize'}",
|
8436
8434
|
ctx
|
8437
8435
|
});
|
8438
8436
|
|
8439
8437
|
return block;
|
8440
8438
|
}
|
8441
8439
|
|
8442
|
-
// (
|
8440
|
+
// (176:12) {#each Object.keys(item).filter(_key => _key !== 'id') as key, i}
|
8443
8441
|
function create_each_block_1(ctx) {
|
8444
8442
|
let div;
|
8445
8443
|
let t0;
|
8446
8444
|
let t1;
|
8447
8445
|
let t2;
|
8448
8446
|
let div_class_value;
|
8449
|
-
let if_block0 = /*item*/ ctx[
|
8450
|
-
let if_block1 = /*key*/ ctx[
|
8451
|
-
let if_block2 = /*key*/ ctx[
|
8447
|
+
let if_block0 = /*item*/ ctx[28][/*key*/ ctx[31]] && create_if_block_4(ctx);
|
8448
|
+
let if_block1 = /*key*/ ctx[31] === 'rank' && create_if_block_3(ctx);
|
8449
|
+
let if_block2 = /*key*/ ctx[31] === 'prize' && create_if_block_2(ctx);
|
8452
8450
|
|
8453
8451
|
const block = {
|
8454
8452
|
c: function create() {
|
@@ -8459,8 +8457,8 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8459
8457
|
t1 = space();
|
8460
8458
|
if (if_block2) if_block2.c();
|
8461
8459
|
t2 = space();
|
8462
|
-
attr_dev(div, "class", div_class_value = /*key*/ ctx[
|
8463
|
-
add_location(div, file,
|
8460
|
+
attr_dev(div, "class", div_class_value = /*key*/ ctx[31]);
|
8461
|
+
add_location(div, file, 177, 14, 6535);
|
8464
8462
|
},
|
8465
8463
|
m: function mount(target, anchor) {
|
8466
8464
|
insert_dev(target, div, anchor);
|
@@ -8472,7 +8470,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8472
8470
|
append_dev(div, t2);
|
8473
8471
|
},
|
8474
8472
|
p: function update(ctx, dirty) {
|
8475
|
-
if (/*item*/ ctx[
|
8473
|
+
if (/*item*/ ctx[28][/*key*/ ctx[31]]) {
|
8476
8474
|
if (if_block0) {
|
8477
8475
|
if_block0.p(ctx, dirty);
|
8478
8476
|
} else {
|
@@ -8485,7 +8483,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8485
8483
|
if_block0 = null;
|
8486
8484
|
}
|
8487
8485
|
|
8488
|
-
if (/*key*/ ctx[
|
8486
|
+
if (/*key*/ ctx[31] === 'rank') {
|
8489
8487
|
if (if_block1) {
|
8490
8488
|
if_block1.p(ctx, dirty);
|
8491
8489
|
} else {
|
@@ -8498,7 +8496,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8498
8496
|
if_block1 = null;
|
8499
8497
|
}
|
8500
8498
|
|
8501
|
-
if (/*key*/ ctx[
|
8499
|
+
if (/*key*/ ctx[31] === 'prize') {
|
8502
8500
|
if (if_block2) {
|
8503
8501
|
if_block2.p(ctx, dirty);
|
8504
8502
|
} else {
|
@@ -8511,7 +8509,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8511
8509
|
if_block2 = null;
|
8512
8510
|
}
|
8513
8511
|
|
8514
|
-
if (dirty & /*list*/
|
8512
|
+
if (dirty[0] & /*list*/ 16 && div_class_value !== (div_class_value = /*key*/ ctx[31])) {
|
8515
8513
|
attr_dev(div, "class", div_class_value);
|
8516
8514
|
}
|
8517
8515
|
},
|
@@ -8527,18 +8525,18 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8527
8525
|
block,
|
8528
8526
|
id: create_each_block_1.name,
|
8529
8527
|
type: "each",
|
8530
|
-
source: "(
|
8528
|
+
source: "(176:12) {#each Object.keys(item).filter(_key => _key !== 'id') as key, i}",
|
8531
8529
|
ctx
|
8532
8530
|
});
|
8533
8531
|
|
8534
8532
|
return block;
|
8535
8533
|
}
|
8536
8534
|
|
8537
|
-
// (
|
8535
|
+
// (172:6) {#each list as item, i}
|
8538
8536
|
function create_each_block(ctx) {
|
8539
8537
|
let div;
|
8540
8538
|
let t;
|
8541
|
-
let if_block = /*item*/ ctx[
|
8539
|
+
let if_block = /*item*/ ctx[28] && create_if_block_1(ctx);
|
8542
8540
|
|
8543
8541
|
const block = {
|
8544
8542
|
c: function create() {
|
@@ -8546,7 +8544,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8546
8544
|
if (if_block) if_block.c();
|
8547
8545
|
t = space();
|
8548
8546
|
attr_dev(div, "class", "list");
|
8549
|
-
add_location(div, file,
|
8547
|
+
add_location(div, file, 173, 8, 6390);
|
8550
8548
|
},
|
8551
8549
|
m: function mount(target, anchor) {
|
8552
8550
|
insert_dev(target, div, anchor);
|
@@ -8554,7 +8552,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8554
8552
|
append_dev(div, t);
|
8555
8553
|
},
|
8556
8554
|
p: function update(ctx, dirty) {
|
8557
|
-
if (/*item*/ ctx[
|
8555
|
+
if (/*item*/ ctx[28]) {
|
8558
8556
|
if (if_block) {
|
8559
8557
|
if_block.p(ctx, dirty);
|
8560
8558
|
} else {
|
@@ -8577,7 +8575,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8577
8575
|
block,
|
8578
8576
|
id: create_each_block.name,
|
8579
8577
|
type: "each",
|
8580
|
-
source: "(
|
8578
|
+
source: "(172:6) {#each list as item, i}",
|
8581
8579
|
ctx
|
8582
8580
|
});
|
8583
8581
|
|
@@ -8597,7 +8595,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8597
8595
|
let div0_resize_listener;
|
8598
8596
|
let t0;
|
8599
8597
|
let div1;
|
8600
|
-
let t1_value = /*$_*/ ctx[
|
8598
|
+
let t1_value = /*$_*/ ctx[5]('tournamentsLimitedController.myTournaments') + "";
|
8601
8599
|
let t1;
|
8602
8600
|
let t2;
|
8603
8601
|
let div2;
|
@@ -8609,13 +8607,13 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8609
8607
|
let t6;
|
8610
8608
|
let mounted;
|
8611
8609
|
let dispose;
|
8612
|
-
let if_block0 = /*href*/ ctx[
|
8610
|
+
let if_block0 = /*href*/ ctx[6] && create_if_block_7(ctx);
|
8613
8611
|
|
8614
8612
|
let each_value_2 = [
|
8615
|
-
/*$_*/ ctx[
|
8616
|
-
/*$_*/ ctx[
|
8617
|
-
/*$_*/ ctx[
|
8618
|
-
/*$_*/ ctx[
|
8613
|
+
/*$_*/ ctx[5]('tournamentsLimitedController.name'),
|
8614
|
+
/*$_*/ ctx[5]('tournamentsLimitedController.rank'),
|
8615
|
+
/*$_*/ ctx[5]('tournamentsLimitedController.enddate'),
|
8616
|
+
/*$_*/ ctx[5]('tournamentsLimitedController.prize')
|
8619
8617
|
];
|
8620
8618
|
|
8621
8619
|
validate_each_argument(each_value_2);
|
@@ -8625,7 +8623,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8625
8623
|
each_blocks[i] = create_each_block_2(get_each_context_2(ctx, each_value_2, i));
|
8626
8624
|
}
|
8627
8625
|
|
8628
|
-
let if_block1 = /*list*/ ctx[
|
8626
|
+
let if_block1 = /*list*/ ctx[4] && create_if_block(ctx);
|
8629
8627
|
|
8630
8628
|
const block = {
|
8631
8629
|
c: function create() {
|
@@ -8657,44 +8655,44 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8657
8655
|
t6 = space();
|
8658
8656
|
if (if_block1) if_block1.c();
|
8659
8657
|
this.c = noop$1;
|
8660
|
-
attr_dev(rect, "width", /*svgSize*/ ctx[
|
8661
|
-
attr_dev(rect, "height", /*svgSize*/ ctx[
|
8658
|
+
attr_dev(rect, "width", /*svgSize*/ ctx[3]);
|
8659
|
+
attr_dev(rect, "height", /*svgSize*/ ctx[3]);
|
8662
8660
|
attr_dev(rect, "fill", "url(#pattern0)");
|
8663
|
-
add_location(rect, file,
|
8661
|
+
add_location(rect, file, 125, 8, 5157);
|
8664
8662
|
xlink_attr(use, "xlink:href", "#image0_2606_356");
|
8665
8663
|
attr_dev(use, "transform", "scale(0.00195312)");
|
8666
|
-
add_location(use, file,
|
8664
|
+
add_location(use, file, 128, 12, 5342);
|
8667
8665
|
attr_dev(pattern, "id", "pattern0");
|
8668
8666
|
attr_dev(pattern, "patternContentUnits", "objectBoundingBox");
|
8669
8667
|
attr_dev(pattern, "width", "1");
|
8670
8668
|
attr_dev(pattern, "height", "1");
|
8671
|
-
add_location(pattern, file,
|
8672
|
-
add_location(defs, file,
|
8673
|
-
attr_dev(svg, "width", /*svgSize*/ ctx[
|
8674
|
-
attr_dev(svg, "height", /*svgSize*/ ctx[
|
8675
|
-
attr_dev(svg, "viewBox", svg_viewBox_value = `0 0 ${/*svgSize*/ ctx[
|
8669
|
+
add_location(pattern, file, 127, 10, 5245);
|
8670
|
+
add_location(defs, file, 126, 8, 5228);
|
8671
|
+
attr_dev(svg, "width", /*svgSize*/ ctx[3]);
|
8672
|
+
attr_dev(svg, "height", /*svgSize*/ ctx[3]);
|
8673
|
+
attr_dev(svg, "viewBox", svg_viewBox_value = `0 0 ${/*svgSize*/ ctx[3]} ${/*svgSize*/ ctx[3]}`);
|
8676
8674
|
attr_dev(svg, "fill", "none");
|
8677
8675
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
8678
8676
|
attr_dev(svg, "xmlns:xlink", "http://www.w3.org/1999/xlink");
|
8679
|
-
add_location(svg, file,
|
8677
|
+
add_location(svg, file, 124, 6, 4982);
|
8680
8678
|
attr_dev(div0, "class", "svg");
|
8681
|
-
add_render_callback(() => /*div0_elementresize_handler*/ ctx[
|
8682
|
-
add_location(div0, file,
|
8679
|
+
add_render_callback(() => /*div0_elementresize_handler*/ ctx[16].call(div0));
|
8680
|
+
add_location(div0, file, 123, 4, 4931);
|
8683
8681
|
attr_dev(div1, "class", "text");
|
8684
|
-
add_location(div1, file,
|
8682
|
+
add_location(div1, file, 142, 4, 5658);
|
8685
8683
|
attr_dev(div2, "class", "CloseButton");
|
8686
8684
|
attr_dev(div2, "part", "CloseButton");
|
8687
|
-
add_location(div2, file,
|
8685
|
+
add_location(div2, file, 146, 4, 5754);
|
8688
8686
|
attr_dev(div3, "class", "top-wrapper");
|
8689
|
-
add_location(div3, file,
|
8687
|
+
add_location(div3, file, 122, 2, 4901);
|
8690
8688
|
set_custom_element_data(casino_tournaments_tab, "tabs", /*states*/ ctx[1]);
|
8691
8689
|
set_custom_element_data(casino_tournaments_tab, "tab", /*state*/ ctx[0]);
|
8692
|
-
add_location(casino_tournaments_tab, file,
|
8690
|
+
add_location(casino_tournaments_tab, file, 154, 4, 5950);
|
8693
8691
|
attr_dev(div4, "class", "list header");
|
8694
|
-
add_location(div4, file,
|
8695
|
-
add_location(section, file,
|
8692
|
+
add_location(div4, file, 159, 4, 6024);
|
8693
|
+
add_location(section, file, 153, 2, 5936);
|
8696
8694
|
attr_dev(div5, "class", "casino-tournaments-limited-controller");
|
8697
|
-
add_location(div5, file,
|
8695
|
+
add_location(div5, file, 120, 0, 4810);
|
8698
8696
|
},
|
8699
8697
|
l: function claim(nodes) {
|
8700
8698
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
@@ -8709,7 +8707,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8709
8707
|
append_dev(defs, pattern);
|
8710
8708
|
append_dev(pattern, use);
|
8711
8709
|
if (if_block0) if_block0.m(defs, null);
|
8712
|
-
div0_resize_listener = add_resize_listener(div0, /*div0_elementresize_handler*/ ctx[
|
8710
|
+
div0_resize_listener = add_resize_listener(div0, /*div0_elementresize_handler*/ ctx[16].bind(div0));
|
8713
8711
|
append_dev(div3, t0);
|
8714
8712
|
append_dev(div3, div1);
|
8715
8713
|
append_dev(div1, t1);
|
@@ -8727,51 +8725,52 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8727
8725
|
|
8728
8726
|
append_dev(section, t6);
|
8729
8727
|
if (if_block1) if_block1.m(section, null);
|
8728
|
+
/*div5_binding*/ ctx[19](div5);
|
8730
8729
|
|
8731
8730
|
if (!mounted) {
|
8732
|
-
dispose = listen_dev(div2, "click", /*click_handler*/ ctx[
|
8731
|
+
dispose = listen_dev(div2, "click", /*click_handler*/ ctx[17], false, false, false);
|
8733
8732
|
mounted = true;
|
8734
8733
|
}
|
8735
8734
|
},
|
8736
|
-
p: function update(ctx,
|
8737
|
-
if (dirty & /*svgSize*/
|
8738
|
-
attr_dev(rect, "width", /*svgSize*/ ctx[
|
8735
|
+
p: function update(ctx, dirty) {
|
8736
|
+
if (dirty[0] & /*svgSize*/ 8) {
|
8737
|
+
attr_dev(rect, "width", /*svgSize*/ ctx[3]);
|
8739
8738
|
}
|
8740
8739
|
|
8741
|
-
if (dirty & /*svgSize*/
|
8742
|
-
attr_dev(rect, "height", /*svgSize*/ ctx[
|
8740
|
+
if (dirty[0] & /*svgSize*/ 8) {
|
8741
|
+
attr_dev(rect, "height", /*svgSize*/ ctx[3]);
|
8743
8742
|
}
|
8744
8743
|
|
8745
|
-
if (/*href*/ ctx[
|
8744
|
+
if (/*href*/ ctx[6]) if_block0.p(ctx, dirty);
|
8746
8745
|
|
8747
|
-
if (dirty & /*svgSize*/
|
8748
|
-
attr_dev(svg, "width", /*svgSize*/ ctx[
|
8746
|
+
if (dirty[0] & /*svgSize*/ 8) {
|
8747
|
+
attr_dev(svg, "width", /*svgSize*/ ctx[3]);
|
8749
8748
|
}
|
8750
8749
|
|
8751
|
-
if (dirty & /*svgSize*/
|
8752
|
-
attr_dev(svg, "height", /*svgSize*/ ctx[
|
8750
|
+
if (dirty[0] & /*svgSize*/ 8) {
|
8751
|
+
attr_dev(svg, "height", /*svgSize*/ ctx[3]);
|
8753
8752
|
}
|
8754
8753
|
|
8755
|
-
if (dirty & /*svgSize*/
|
8754
|
+
if (dirty[0] & /*svgSize*/ 8 && svg_viewBox_value !== (svg_viewBox_value = `0 0 ${/*svgSize*/ ctx[3]} ${/*svgSize*/ ctx[3]}`)) {
|
8756
8755
|
attr_dev(svg, "viewBox", svg_viewBox_value);
|
8757
8756
|
}
|
8758
8757
|
|
8759
|
-
if (dirty & /*$_*/
|
8758
|
+
if (dirty[0] & /*$_*/ 32 && t1_value !== (t1_value = /*$_*/ ctx[5]('tournamentsLimitedController.myTournaments') + "")) set_data_dev(t1, t1_value);
|
8760
8759
|
|
8761
|
-
if (dirty & /*states*/ 2) {
|
8760
|
+
if (dirty[0] & /*states*/ 2) {
|
8762
8761
|
set_custom_element_data(casino_tournaments_tab, "tabs", /*states*/ ctx[1]);
|
8763
8762
|
}
|
8764
8763
|
|
8765
|
-
if (dirty & /*state*/ 1) {
|
8764
|
+
if (dirty[0] & /*state*/ 1) {
|
8766
8765
|
set_custom_element_data(casino_tournaments_tab, "tab", /*state*/ ctx[0]);
|
8767
8766
|
}
|
8768
8767
|
|
8769
|
-
if (dirty & /*$_*/
|
8768
|
+
if (dirty[0] & /*$_*/ 32) {
|
8770
8769
|
each_value_2 = [
|
8771
|
-
/*$_*/ ctx[
|
8772
|
-
/*$_*/ ctx[
|
8773
|
-
/*$_*/ ctx[
|
8774
|
-
/*$_*/ ctx[
|
8770
|
+
/*$_*/ ctx[5]('tournamentsLimitedController.name'),
|
8771
|
+
/*$_*/ ctx[5]('tournamentsLimitedController.rank'),
|
8772
|
+
/*$_*/ ctx[5]('tournamentsLimitedController.enddate'),
|
8773
|
+
/*$_*/ ctx[5]('tournamentsLimitedController.prize')
|
8775
8774
|
];
|
8776
8775
|
|
8777
8776
|
validate_each_argument(each_value_2);
|
@@ -8794,7 +8793,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8794
8793
|
}
|
8795
8794
|
}
|
8796
8795
|
|
8797
|
-
if (/*list*/ ctx[
|
8796
|
+
if (/*list*/ ctx[4]) {
|
8798
8797
|
if (if_block1) {
|
8799
8798
|
if_block1.p(ctx, dirty);
|
8800
8799
|
} else {
|
@@ -8815,6 +8814,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8815
8814
|
div0_resize_listener();
|
8816
8815
|
destroy_each(each_blocks, detaching);
|
8817
8816
|
if (if_block1) if_block1.d();
|
8817
|
+
/*div5_binding*/ ctx[19](null);
|
8818
8818
|
mounted = false;
|
8819
8819
|
dispose();
|
8820
8820
|
}
|
@@ -8840,7 +8840,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8840
8840
|
let list;
|
8841
8841
|
let $_;
|
8842
8842
|
validate_store(Y, '_');
|
8843
|
-
component_subscribe($$self, Y, $$value => $$invalidate(
|
8843
|
+
component_subscribe($$self, Y, $$value => $$invalidate(5, $_ = $$value));
|
8844
8844
|
let { $$slots: slots = {}, $$scope } = $$props;
|
8845
8845
|
validate_slots('undefined', slots, []);
|
8846
8846
|
let { endpoint = '' } = $$props;
|
@@ -8849,6 +8849,10 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8849
8849
|
let { state = undefined } = $$props;
|
8850
8850
|
let { states = '' } = $$props;
|
8851
8851
|
let { filter = '' } = $$props;
|
8852
|
+
let { clientstyling = '' } = $$props;
|
8853
|
+
let { clientstylingurl = '' } = $$props;
|
8854
|
+
let customStylingContainer;
|
8855
|
+
let displayNone = false;
|
8852
8856
|
let eventSource = undefined;
|
8853
8857
|
let svgSize = 0;
|
8854
8858
|
let href = icon;
|
@@ -8878,7 +8882,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8878
8882
|
_tournamentsMatrix[matchStatusFromApiToView(_item.tournament.state)].push(tournamentComposed);
|
8879
8883
|
});
|
8880
8884
|
|
8881
|
-
$$invalidate(
|
8885
|
+
$$invalidate(13, tournamentsMatrix = _tournamentsMatrix);
|
8882
8886
|
|
8883
8887
|
statesNeedSubscribe.map(s => {
|
8884
8888
|
postMessageTabTotalUpdate(s, tournamentsMatrix[s].length);
|
@@ -8889,7 +8893,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8889
8893
|
const tournament = data.item;
|
8890
8894
|
let _state = matchStatusFromApiToView(tournament.state);
|
8891
8895
|
|
8892
|
-
$$invalidate(
|
8896
|
+
$$invalidate(13, tournamentsMatrix = Object.assign(Object.assign({}, tournamentsMatrix), {
|
8893
8897
|
[_state]: tournamentsMatrix[_state].map(t => {
|
8894
8898
|
if (t.id === tournament.id) {
|
8895
8899
|
return Object.assign(Object.assign({}, t), {
|
@@ -8932,6 +8936,36 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8932
8936
|
postMessageTabLocaleTextUpdate('Finished', `${$_(`tournamentsLimitedController.Finished`)} (${$_('tournamentsLimitedController.last')} 48h)`);
|
8933
8937
|
};
|
8934
8938
|
|
8939
|
+
const setClientStyling = () => {
|
8940
|
+
let sheet = document.createElement('style');
|
8941
|
+
sheet.innerHTML = clientstyling;
|
8942
|
+
customStylingContainer.appendChild(sheet);
|
8943
|
+
};
|
8944
|
+
|
8945
|
+
const setClientStylingURL = () => {
|
8946
|
+
displayNone = true;
|
8947
|
+
let url = new URL(clientstylingurl);
|
8948
|
+
let cssFile = document.createElement('style');
|
8949
|
+
|
8950
|
+
fetch(url.href).then(res => res.text()).then(data => {
|
8951
|
+
cssFile.innerHTML = data;
|
8952
|
+
|
8953
|
+
setTimeout(
|
8954
|
+
() => {
|
8955
|
+
customStylingContainer.appendChild(cssFile);
|
8956
|
+
},
|
8957
|
+
1
|
8958
|
+
);
|
8959
|
+
|
8960
|
+
setTimeout(
|
8961
|
+
() => {
|
8962
|
+
displayNone = false;
|
8963
|
+
},
|
8964
|
+
500
|
8965
|
+
);
|
8966
|
+
});
|
8967
|
+
};
|
8968
|
+
|
8935
8969
|
onMount(() => {
|
8936
8970
|
return () => {
|
8937
8971
|
if (eventSource) {
|
@@ -8941,10 +8975,19 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8941
8975
|
});
|
8942
8976
|
|
8943
8977
|
onMountMessageLifeCycle$1({
|
8944
|
-
TournamentsTabSwitch: async data => $$invalidate(
|
8978
|
+
TournamentsTabSwitch: async data => $$invalidate(14, __state = data.tab)
|
8945
8979
|
});
|
8946
8980
|
|
8947
|
-
const writable_props = [
|
8981
|
+
const writable_props = [
|
8982
|
+
'endpoint',
|
8983
|
+
'lang',
|
8984
|
+
'session',
|
8985
|
+
'state',
|
8986
|
+
'states',
|
8987
|
+
'filter',
|
8988
|
+
'clientstyling',
|
8989
|
+
'clientstylingurl'
|
8990
|
+
];
|
8948
8991
|
|
8949
8992
|
Object_1.keys($$props).forEach(key => {
|
8950
8993
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<undefined> was created with unknown prop '${key}'`);
|
@@ -8952,7 +8995,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8952
8995
|
|
8953
8996
|
function div0_elementresize_handler() {
|
8954
8997
|
svgSize = this.clientWidth;
|
8955
|
-
$$invalidate(
|
8998
|
+
$$invalidate(3, svgSize);
|
8956
8999
|
}
|
8957
9000
|
|
8958
9001
|
const click_handler = () => window.postMessage({ type: 'OnCloseThumbnail' }, window.location.href);
|
@@ -8968,13 +9011,22 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8968
9011
|
);
|
8969
9012
|
};
|
8970
9013
|
|
9014
|
+
function div5_binding($$value) {
|
9015
|
+
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
9016
|
+
customStylingContainer = $$value;
|
9017
|
+
$$invalidate(2, customStylingContainer);
|
9018
|
+
});
|
9019
|
+
}
|
9020
|
+
|
8971
9021
|
$$self.$$set = $$props => {
|
8972
|
-
if ('endpoint' in $$props) $$invalidate(
|
8973
|
-
if ('lang' in $$props) $$invalidate(
|
8974
|
-
if ('session' in $$props) $$invalidate(
|
9022
|
+
if ('endpoint' in $$props) $$invalidate(7, endpoint = $$props.endpoint);
|
9023
|
+
if ('lang' in $$props) $$invalidate(8, lang = $$props.lang);
|
9024
|
+
if ('session' in $$props) $$invalidate(9, session = $$props.session);
|
8975
9025
|
if ('state' in $$props) $$invalidate(0, state = $$props.state);
|
8976
9026
|
if ('states' in $$props) $$invalidate(1, states = $$props.states);
|
8977
|
-
if ('filter' in $$props) $$invalidate(
|
9027
|
+
if ('filter' in $$props) $$invalidate(10, filter = $$props.filter);
|
9028
|
+
if ('clientstyling' in $$props) $$invalidate(11, clientstyling = $$props.clientstyling);
|
9029
|
+
if ('clientstylingurl' in $$props) $$invalidate(12, clientstylingurl = $$props.clientstylingurl);
|
8978
9030
|
};
|
8979
9031
|
|
8980
9032
|
$$self.$capture_state = () => ({
|
@@ -8997,6 +9049,10 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
8997
9049
|
state,
|
8998
9050
|
states,
|
8999
9051
|
filter,
|
9052
|
+
clientstyling,
|
9053
|
+
clientstylingurl,
|
9054
|
+
customStylingContainer,
|
9055
|
+
displayNone,
|
9000
9056
|
eventSource,
|
9001
9057
|
svgSize,
|
9002
9058
|
href,
|
@@ -9004,6 +9060,8 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
9004
9060
|
eventSourceHandler,
|
9005
9061
|
subscribeApi,
|
9006
9062
|
init,
|
9063
|
+
setClientStyling,
|
9064
|
+
setClientStylingURL,
|
9007
9065
|
__state,
|
9008
9066
|
list,
|
9009
9067
|
__states,
|
@@ -9012,19 +9070,23 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
9012
9070
|
});
|
9013
9071
|
|
9014
9072
|
$$self.$inject_state = $$props => {
|
9015
|
-
if ('endpoint' in $$props) $$invalidate(
|
9016
|
-
if ('lang' in $$props) $$invalidate(
|
9017
|
-
if ('session' in $$props) $$invalidate(
|
9073
|
+
if ('endpoint' in $$props) $$invalidate(7, endpoint = $$props.endpoint);
|
9074
|
+
if ('lang' in $$props) $$invalidate(8, lang = $$props.lang);
|
9075
|
+
if ('session' in $$props) $$invalidate(9, session = $$props.session);
|
9018
9076
|
if ('state' in $$props) $$invalidate(0, state = $$props.state);
|
9019
9077
|
if ('states' in $$props) $$invalidate(1, states = $$props.states);
|
9020
|
-
if ('filter' in $$props) $$invalidate(
|
9078
|
+
if ('filter' in $$props) $$invalidate(10, filter = $$props.filter);
|
9079
|
+
if ('clientstyling' in $$props) $$invalidate(11, clientstyling = $$props.clientstyling);
|
9080
|
+
if ('clientstylingurl' in $$props) $$invalidate(12, clientstylingurl = $$props.clientstylingurl);
|
9081
|
+
if ('customStylingContainer' in $$props) $$invalidate(2, customStylingContainer = $$props.customStylingContainer);
|
9082
|
+
if ('displayNone' in $$props) displayNone = $$props.displayNone;
|
9021
9083
|
if ('eventSource' in $$props) eventSource = $$props.eventSource;
|
9022
|
-
if ('svgSize' in $$props) $$invalidate(
|
9023
|
-
if ('href' in $$props) $$invalidate(
|
9024
|
-
if ('tournamentsMatrix' in $$props) $$invalidate(
|
9025
|
-
if ('__state' in $$props) $$invalidate(
|
9026
|
-
if ('list' in $$props) $$invalidate(
|
9027
|
-
if ('__states' in $$props) $$invalidate(
|
9084
|
+
if ('svgSize' in $$props) $$invalidate(3, svgSize = $$props.svgSize);
|
9085
|
+
if ('href' in $$props) $$invalidate(6, href = $$props.href);
|
9086
|
+
if ('tournamentsMatrix' in $$props) $$invalidate(13, tournamentsMatrix = $$props.tournamentsMatrix);
|
9087
|
+
if ('__state' in $$props) $$invalidate(14, __state = $$props.__state);
|
9088
|
+
if ('list' in $$props) $$invalidate(4, list = $$props.list);
|
9089
|
+
if ('__states' in $$props) $$invalidate(15, __states = $$props.__states);
|
9028
9090
|
if ('statesNeedSubscribe' in $$props) statesNeedSubscribe = $$props.statesNeedSubscribe;
|
9029
9091
|
};
|
9030
9092
|
|
@@ -9033,30 +9095,39 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
9033
9095
|
}
|
9034
9096
|
|
9035
9097
|
$$self.$$.update = () => {
|
9036
|
-
if ($$self.$$.dirty & /*state*/ 1) {
|
9037
|
-
$$invalidate(
|
9098
|
+
if ($$self.$$.dirty[0] & /*state*/ 1) {
|
9099
|
+
$$invalidate(14, __state = state);
|
9038
9100
|
}
|
9039
9101
|
|
9040
|
-
if ($$self.$$.dirty & /*states*/ 2) {
|
9041
|
-
$$invalidate(
|
9102
|
+
if ($$self.$$.dirty[0] & /*states*/ 2) {
|
9103
|
+
$$invalidate(15, __states = states.split(','));
|
9042
9104
|
}
|
9043
9105
|
|
9044
|
-
if ($$self.$$.dirty & /*__states*/
|
9106
|
+
if ($$self.$$.dirty[0] & /*__states*/ 32768) {
|
9045
9107
|
statesNeedSubscribe = __states.filter(s => s !== 'Finished');
|
9046
9108
|
}
|
9047
9109
|
|
9048
|
-
if ($$self.$$.dirty & /*tournamentsMatrix, __state*/
|
9049
|
-
$$invalidate(
|
9110
|
+
if ($$self.$$.dirty[0] & /*tournamentsMatrix, __state*/ 24576) {
|
9111
|
+
$$invalidate(4, list = tournamentsMatrix[__state]);
|
9050
9112
|
}
|
9051
9113
|
|
9052
|
-
if ($$self.$$.dirty & /*endpoint, filter, lang, session*/
|
9114
|
+
if ($$self.$$.dirty[0] & /*endpoint, filter, lang, session*/ 1920) {
|
9053
9115
|
endpoint && filter && lang && session && init();
|
9054
9116
|
}
|
9117
|
+
|
9118
|
+
if ($$self.$$.dirty[0] & /*clientstyling, customStylingContainer*/ 2052) {
|
9119
|
+
clientstyling && customStylingContainer && setClientStyling();
|
9120
|
+
}
|
9121
|
+
|
9122
|
+
if ($$self.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/ 4100) {
|
9123
|
+
clientstylingurl && customStylingContainer && setClientStylingURL();
|
9124
|
+
}
|
9055
9125
|
};
|
9056
9126
|
|
9057
9127
|
return [
|
9058
9128
|
state,
|
9059
9129
|
states,
|
9130
|
+
customStylingContainer,
|
9060
9131
|
svgSize,
|
9061
9132
|
list,
|
9062
9133
|
$_,
|
@@ -9065,12 +9136,15 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
9065
9136
|
lang,
|
9066
9137
|
session,
|
9067
9138
|
filter,
|
9139
|
+
clientstyling,
|
9140
|
+
clientstylingurl,
|
9068
9141
|
tournamentsMatrix,
|
9069
9142
|
__state,
|
9070
9143
|
__states,
|
9071
9144
|
div0_elementresize_handler,
|
9072
9145
|
click_handler,
|
9073
|
-
click_handler_1
|
9146
|
+
click_handler_1,
|
9147
|
+
div5_binding
|
9074
9148
|
];
|
9075
9149
|
}
|
9076
9150
|
|
@@ -9090,14 +9164,17 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
9090
9164
|
create_fragment,
|
9091
9165
|
safe_not_equal,
|
9092
9166
|
{
|
9093
|
-
endpoint:
|
9094
|
-
lang:
|
9095
|
-
session:
|
9167
|
+
endpoint: 7,
|
9168
|
+
lang: 8,
|
9169
|
+
session: 9,
|
9096
9170
|
state: 0,
|
9097
9171
|
states: 1,
|
9098
|
-
filter:
|
9172
|
+
filter: 10,
|
9173
|
+
clientstyling: 11,
|
9174
|
+
clientstylingurl: 12
|
9099
9175
|
},
|
9100
|
-
null
|
9176
|
+
null,
|
9177
|
+
[-1, -1]
|
9101
9178
|
);
|
9102
9179
|
|
9103
9180
|
if (options) {
|
@@ -9113,11 +9190,20 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
9113
9190
|
}
|
9114
9191
|
|
9115
9192
|
static get observedAttributes() {
|
9116
|
-
return [
|
9193
|
+
return [
|
9194
|
+
"endpoint",
|
9195
|
+
"lang",
|
9196
|
+
"session",
|
9197
|
+
"state",
|
9198
|
+
"states",
|
9199
|
+
"filter",
|
9200
|
+
"clientstyling",
|
9201
|
+
"clientstylingurl"
|
9202
|
+
];
|
9117
9203
|
}
|
9118
9204
|
|
9119
9205
|
get endpoint() {
|
9120
|
-
return this.$$.ctx[
|
9206
|
+
return this.$$.ctx[7];
|
9121
9207
|
}
|
9122
9208
|
|
9123
9209
|
set endpoint(endpoint) {
|
@@ -9126,7 +9212,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
9126
9212
|
}
|
9127
9213
|
|
9128
9214
|
get lang() {
|
9129
|
-
return this.$$.ctx[
|
9215
|
+
return this.$$.ctx[8];
|
9130
9216
|
}
|
9131
9217
|
|
9132
9218
|
set lang(lang) {
|
@@ -9135,7 +9221,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
9135
9221
|
}
|
9136
9222
|
|
9137
9223
|
get session() {
|
9138
|
-
return this.$$.ctx[
|
9224
|
+
return this.$$.ctx[9];
|
9139
9225
|
}
|
9140
9226
|
|
9141
9227
|
set session(session) {
|
@@ -9162,13 +9248,31 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
9162
9248
|
}
|
9163
9249
|
|
9164
9250
|
get filter() {
|
9165
|
-
return this.$$.ctx[
|
9251
|
+
return this.$$.ctx[10];
|
9166
9252
|
}
|
9167
9253
|
|
9168
9254
|
set filter(filter) {
|
9169
9255
|
this.$$set({ filter });
|
9170
9256
|
flush();
|
9171
9257
|
}
|
9258
|
+
|
9259
|
+
get clientstyling() {
|
9260
|
+
return this.$$.ctx[11];
|
9261
|
+
}
|
9262
|
+
|
9263
|
+
set clientstyling(clientstyling) {
|
9264
|
+
this.$$set({ clientstyling });
|
9265
|
+
flush();
|
9266
|
+
}
|
9267
|
+
|
9268
|
+
get clientstylingurl() {
|
9269
|
+
return this.$$.ctx[12];
|
9270
|
+
}
|
9271
|
+
|
9272
|
+
set clientstylingurl(clientstylingurl) {
|
9273
|
+
this.$$set({ clientstylingurl });
|
9274
|
+
flush();
|
9275
|
+
}
|
9172
9276
|
}
|
9173
9277
|
|
9174
9278
|
!customElements.get('casino-tournaments-limited-controller') && customElements.define('casino-tournaments-limited-controller', CasinoTournamentsLimitedController);
|