@everymatrix/casino-tournaments-controller 0.0.119 → 0.0.120
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.
|
@@ -12978,6 +12978,13 @@
|
|
|
12978
12978
|
return child_ctx;
|
|
12979
12979
|
}
|
|
12980
12980
|
|
|
12981
|
+
function get_each_context_1(ctx, list, i) {
|
|
12982
|
+
const child_ctx = ctx.slice();
|
|
12983
|
+
child_ctx[7] = list[i];
|
|
12984
|
+
child_ctx[9] = i;
|
|
12985
|
+
return child_ctx;
|
|
12986
|
+
}
|
|
12987
|
+
|
|
12981
12988
|
// (28:2) {#if prizes}
|
|
12982
12989
|
function create_if_block$4(ctx) {
|
|
12983
12990
|
let div;
|
|
@@ -13075,7 +13082,7 @@
|
|
|
13075
13082
|
return block;
|
|
13076
13083
|
}
|
|
13077
13084
|
|
|
13078
|
-
// (
|
|
13085
|
+
// (36:6) {:else}
|
|
13079
13086
|
function create_else_block$3(ctx) {
|
|
13080
13087
|
let p;
|
|
13081
13088
|
let t_value = /*$_*/ ctx[1]("tournamentsPrizes.noprizes") + "";
|
|
@@ -13085,7 +13092,7 @@
|
|
|
13085
13092
|
c: function create() {
|
|
13086
13093
|
p = element("p");
|
|
13087
13094
|
t = text(t_value);
|
|
13088
|
-
add_location(p, file$4,
|
|
13095
|
+
add_location(p, file$4, 36, 8, 2044);
|
|
13089
13096
|
},
|
|
13090
13097
|
m: function mount(target, anchor) {
|
|
13091
13098
|
insert_dev(target, p, anchor);
|
|
@@ -13103,19 +13110,19 @@
|
|
|
13103
13110
|
block,
|
|
13104
13111
|
id: create_else_block$3.name,
|
|
13105
13112
|
type: "else",
|
|
13106
|
-
source: "(
|
|
13113
|
+
source: "(36:6) {:else}",
|
|
13107
13114
|
ctx
|
|
13108
13115
|
});
|
|
13109
13116
|
|
|
13110
13117
|
return block;
|
|
13111
13118
|
}
|
|
13112
13119
|
|
|
13113
|
-
// (
|
|
13114
|
-
function
|
|
13120
|
+
// (31:8) {#each {length:prize.count} as _, i}
|
|
13121
|
+
function create_each_block_1(ctx) {
|
|
13115
13122
|
let div;
|
|
13116
13123
|
let p;
|
|
13117
13124
|
let span;
|
|
13118
|
-
let t0_value = /*prize*/ ctx[4].rank + "";
|
|
13125
|
+
let t0_value = /*prize*/ ctx[4].rank + /*i*/ ctx[9] + "";
|
|
13119
13126
|
let t0;
|
|
13120
13127
|
let t1;
|
|
13121
13128
|
let t2_value = /*prize*/ ctx[4].name + "";
|
|
@@ -13131,10 +13138,10 @@
|
|
|
13131
13138
|
t1 = space();
|
|
13132
13139
|
t2 = text(t2_value);
|
|
13133
13140
|
t3 = space();
|
|
13134
|
-
add_location(span, file$4,
|
|
13135
|
-
add_location(p, file$4,
|
|
13141
|
+
add_location(span, file$4, 32, 15, 1942);
|
|
13142
|
+
add_location(p, file$4, 32, 12, 1939);
|
|
13136
13143
|
attr_dev(div, "class", "Prize Prize" + /*index*/ ctx[6]);
|
|
13137
|
-
add_location(div, file$4,
|
|
13144
|
+
add_location(div, file$4, 31, 10, 1894);
|
|
13138
13145
|
},
|
|
13139
13146
|
m: function mount(target, anchor) {
|
|
13140
13147
|
insert_dev(target, div, anchor);
|
|
@@ -13146,7 +13153,7 @@
|
|
|
13146
13153
|
append_dev(div, t3);
|
|
13147
13154
|
},
|
|
13148
13155
|
p: function update(ctx, dirty) {
|
|
13149
|
-
if (dirty & /*prizes*/ 1 && t0_value !== (t0_value = /*prize*/ ctx[4].rank + "")) set_data_dev(t0, t0_value);
|
|
13156
|
+
if (dirty & /*prizes*/ 1 && t0_value !== (t0_value = /*prize*/ ctx[4].rank + /*i*/ ctx[9] + "")) set_data_dev(t0, t0_value);
|
|
13150
13157
|
if (dirty & /*prizes*/ 1 && t2_value !== (t2_value = /*prize*/ ctx[4].name + "")) set_data_dev(t2, t2_value);
|
|
13151
13158
|
},
|
|
13152
13159
|
d: function destroy(detaching) {
|
|
@@ -13154,6 +13161,74 @@
|
|
|
13154
13161
|
}
|
|
13155
13162
|
};
|
|
13156
13163
|
|
|
13164
|
+
dispatch_dev("SvelteRegisterBlock", {
|
|
13165
|
+
block,
|
|
13166
|
+
id: create_each_block_1.name,
|
|
13167
|
+
type: "each",
|
|
13168
|
+
source: "(31:8) {#each {length:prize.count} as _, i}",
|
|
13169
|
+
ctx
|
|
13170
|
+
});
|
|
13171
|
+
|
|
13172
|
+
return block;
|
|
13173
|
+
}
|
|
13174
|
+
|
|
13175
|
+
// (30:6) {#each prizes as prize, index}
|
|
13176
|
+
function create_each_block$2(ctx) {
|
|
13177
|
+
let each_1_anchor;
|
|
13178
|
+
let each_value_1 = { length: /*prize*/ ctx[4].count };
|
|
13179
|
+
validate_each_argument(each_value_1);
|
|
13180
|
+
let each_blocks = [];
|
|
13181
|
+
|
|
13182
|
+
for (let i = 0; i < each_value_1.length; i += 1) {
|
|
13183
|
+
each_blocks[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
|
|
13184
|
+
}
|
|
13185
|
+
|
|
13186
|
+
const block = {
|
|
13187
|
+
c: function create() {
|
|
13188
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
13189
|
+
each_blocks[i].c();
|
|
13190
|
+
}
|
|
13191
|
+
|
|
13192
|
+
each_1_anchor = empty();
|
|
13193
|
+
},
|
|
13194
|
+
m: function mount(target, anchor) {
|
|
13195
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
13196
|
+
each_blocks[i].m(target, anchor);
|
|
13197
|
+
}
|
|
13198
|
+
|
|
13199
|
+
insert_dev(target, each_1_anchor, anchor);
|
|
13200
|
+
},
|
|
13201
|
+
p: function update(ctx, dirty) {
|
|
13202
|
+
if (dirty & /*prizes*/ 1) {
|
|
13203
|
+
each_value_1 = { length: /*prize*/ ctx[4].count };
|
|
13204
|
+
validate_each_argument(each_value_1);
|
|
13205
|
+
let i;
|
|
13206
|
+
|
|
13207
|
+
for (i = 0; i < each_value_1.length; i += 1) {
|
|
13208
|
+
const child_ctx = get_each_context_1(ctx, each_value_1, i);
|
|
13209
|
+
|
|
13210
|
+
if (each_blocks[i]) {
|
|
13211
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
13212
|
+
} else {
|
|
13213
|
+
each_blocks[i] = create_each_block_1(child_ctx);
|
|
13214
|
+
each_blocks[i].c();
|
|
13215
|
+
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
|
13216
|
+
}
|
|
13217
|
+
}
|
|
13218
|
+
|
|
13219
|
+
for (; i < each_blocks.length; i += 1) {
|
|
13220
|
+
each_blocks[i].d(1);
|
|
13221
|
+
}
|
|
13222
|
+
|
|
13223
|
+
each_blocks.length = each_value_1.length;
|
|
13224
|
+
}
|
|
13225
|
+
},
|
|
13226
|
+
d: function destroy(detaching) {
|
|
13227
|
+
destroy_each(each_blocks, detaching);
|
|
13228
|
+
if (detaching) detach_dev(each_1_anchor);
|
|
13229
|
+
}
|
|
13230
|
+
};
|
|
13231
|
+
|
|
13157
13232
|
dispatch_dev("SvelteRegisterBlock", {
|
|
13158
13233
|
block,
|
|
13159
13234
|
id: create_each_block$2.name,
|