@everymatrix/casino-header-controller 0.0.93 → 0.0.97
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.
- package/dist/casino-header-controller.js +422 -633
- package/dist/casino-header-controller.js.map +1 -1
- package/documentation.md +1 -0
- package/index.html +5 -4
- package/package.json +2 -2
- package/src/CasinoHeaderController.svelte +25 -35
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(factory) :
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@everymatrix/player-account-balance-modal')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['@everymatrix/player-account-balance-modal'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.app = factory());
|
|
5
5
|
}(this, (function () { 'use strict';
|
|
6
6
|
|
|
@@ -126,6 +126,19 @@
|
|
|
126
126
|
function set_style(node, key, value, important) {
|
|
127
127
|
node.style.setProperty(key, value, important ? 'important' : '');
|
|
128
128
|
}
|
|
129
|
+
function select_option(select, value) {
|
|
130
|
+
for (let i = 0; i < select.options.length; i += 1) {
|
|
131
|
+
const option = select.options[i];
|
|
132
|
+
if (option.__value === value) {
|
|
133
|
+
option.selected = true;
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function select_value(select) {
|
|
139
|
+
const selected_option = select.querySelector(':checked') || select.options[0];
|
|
140
|
+
return selected_option && selected_option.__value;
|
|
141
|
+
}
|
|
129
142
|
function toggle_class(element, name, toggle) {
|
|
130
143
|
element.classList[toggle ? 'add' : 'remove'](name);
|
|
131
144
|
}
|
|
@@ -6118,44 +6131,32 @@
|
|
|
6118
6131
|
const { console: console_1 } = globals;
|
|
6119
6132
|
const file = "src/CasinoHeaderController.svelte";
|
|
6120
6133
|
|
|
6121
|
-
function
|
|
6122
|
-
const child_ctx = ctx.slice();
|
|
6123
|
-
child_ctx[45] = list[i];
|
|
6124
|
-
return child_ctx;
|
|
6125
|
-
}
|
|
6126
|
-
|
|
6127
|
-
function get_each_context_5(ctx, list, i) {
|
|
6128
|
-
const child_ctx = ctx.slice();
|
|
6129
|
-
child_ctx[48] = list[i];
|
|
6130
|
-
return child_ctx;
|
|
6131
|
-
}
|
|
6132
|
-
|
|
6133
|
-
function get_each_context_1(ctx, list, i) {
|
|
6134
|
+
function get_each_context_2(ctx, list, i) {
|
|
6134
6135
|
const child_ctx = ctx.slice();
|
|
6135
|
-
child_ctx[
|
|
6136
|
+
child_ctx[47] = list[i];
|
|
6136
6137
|
return child_ctx;
|
|
6137
6138
|
}
|
|
6138
6139
|
|
|
6139
|
-
function
|
|
6140
|
+
function get_each_context_3(ctx, list, i) {
|
|
6140
6141
|
const child_ctx = ctx.slice();
|
|
6141
|
-
child_ctx[
|
|
6142
|
+
child_ctx[50] = list[i];
|
|
6142
6143
|
return child_ctx;
|
|
6143
6144
|
}
|
|
6144
6145
|
|
|
6145
|
-
function
|
|
6146
|
+
function get_each_context(ctx, list, i) {
|
|
6146
6147
|
const child_ctx = ctx.slice();
|
|
6147
|
-
child_ctx[
|
|
6148
|
+
child_ctx[47] = list[i];
|
|
6148
6149
|
return child_ctx;
|
|
6149
6150
|
}
|
|
6150
6151
|
|
|
6151
|
-
function
|
|
6152
|
+
function get_each_context_1(ctx, list, i) {
|
|
6152
6153
|
const child_ctx = ctx.slice();
|
|
6153
|
-
child_ctx[
|
|
6154
|
+
child_ctx[50] = list[i];
|
|
6154
6155
|
return child_ctx;
|
|
6155
6156
|
}
|
|
6156
6157
|
|
|
6157
|
-
// (
|
|
6158
|
-
function
|
|
6158
|
+
// (235:2) {:else}
|
|
6159
|
+
function create_else_block_2(ctx) {
|
|
6159
6160
|
let header;
|
|
6160
6161
|
let div5;
|
|
6161
6162
|
let div0;
|
|
@@ -6177,20 +6178,20 @@
|
|
|
6177
6178
|
let ul;
|
|
6178
6179
|
let mounted;
|
|
6179
6180
|
let dispose;
|
|
6180
|
-
let
|
|
6181
|
-
validate_each_argument(
|
|
6181
|
+
let each_value_3 = /*languagesArray*/ ctx[10];
|
|
6182
|
+
validate_each_argument(each_value_3);
|
|
6182
6183
|
let each_blocks_1 = [];
|
|
6183
6184
|
|
|
6184
|
-
for (let i = 0; i <
|
|
6185
|
-
each_blocks_1[i] =
|
|
6185
|
+
for (let i = 0; i < each_value_3.length; i += 1) {
|
|
6186
|
+
each_blocks_1[i] = create_each_block_3(get_each_context_3(ctx, each_value_3, i));
|
|
6186
6187
|
}
|
|
6187
6188
|
|
|
6188
|
-
let
|
|
6189
|
-
validate_each_argument(
|
|
6189
|
+
let each_value_2 = /*secondaryMenuArray*/ ctx[3];
|
|
6190
|
+
validate_each_argument(each_value_2);
|
|
6190
6191
|
let each_blocks = [];
|
|
6191
6192
|
|
|
6192
|
-
for (let i = 0; i <
|
|
6193
|
-
each_blocks[i] =
|
|
6193
|
+
for (let i = 0; i < each_value_2.length; i += 1) {
|
|
6194
|
+
each_blocks[i] = create_each_block_2(get_each_context_2(ctx, each_value_2, i));
|
|
6194
6195
|
}
|
|
6195
6196
|
|
|
6196
6197
|
const block = {
|
|
@@ -6227,34 +6228,35 @@
|
|
|
6227
6228
|
|
|
6228
6229
|
if (img.src !== (img_src_value = img$1)) attr_dev(img, "src", img_src_value);
|
|
6229
6230
|
attr_dev(img, "alt", "Everymatrix logo");
|
|
6230
|
-
add_location(img, file,
|
|
6231
|
+
add_location(img, file, 238, 10, 11053);
|
|
6231
6232
|
attr_dev(div0, "class", "HeaderBranding");
|
|
6232
|
-
add_location(div0, file,
|
|
6233
|
+
add_location(div0, file, 237, 8, 10979);
|
|
6233
6234
|
set_custom_element_data(casino_slider, "class", "HeaderItemsMenu");
|
|
6234
|
-
set_custom_element_data(casino_slider, "sliderdata", /*mainMenuArray*/ ctx[
|
|
6235
|
+
set_custom_element_data(casino_slider, "sliderdata", /*mainMenuArray*/ ctx[2]);
|
|
6235
6236
|
set_custom_element_data(casino_slider, "onclickeventname", "");
|
|
6236
6237
|
set_custom_element_data(casino_slider, "location", "headerMain");
|
|
6237
|
-
add_location(casino_slider, file,
|
|
6238
|
+
add_location(casino_slider, file, 242, 10, 11166);
|
|
6238
6239
|
attr_dev(nav0, "class", "HeaderMainNav");
|
|
6239
|
-
add_location(nav0, file,
|
|
6240
|
+
add_location(nav0, file, 241, 8, 11128);
|
|
6240
6241
|
attr_dev(div1, "class", "Item ItemLogin");
|
|
6241
|
-
add_location(div1, file,
|
|
6242
|
+
add_location(div1, file, 246, 12, 11382);
|
|
6242
6243
|
attr_dev(div2, "class", "Item ItemRegister");
|
|
6243
|
-
add_location(div2, file,
|
|
6244
|
+
add_location(div2, file, 247, 12, 11469);
|
|
6244
6245
|
attr_dev(select, "class", "Item ItemLanguage");
|
|
6245
|
-
|
|
6246
|
+
if (/*selectedLanguage*/ ctx[4] === void 0) add_render_callback(() => /*select_change_handler_1*/ ctx[33].call(select));
|
|
6247
|
+
add_location(select, file, 248, 12, 11565);
|
|
6246
6248
|
attr_dev(div3, "class", "HeaderItemsMenu");
|
|
6247
|
-
add_location(div3, file,
|
|
6249
|
+
add_location(div3, file, 245, 10, 11340);
|
|
6248
6250
|
attr_dev(div4, "class", "HeaderTopActions");
|
|
6249
|
-
add_location(div4, file,
|
|
6251
|
+
add_location(div4, file, 244, 8, 11299);
|
|
6250
6252
|
attr_dev(div5, "class", "HeaderContainer");
|
|
6251
|
-
add_location(div5, file,
|
|
6253
|
+
add_location(div5, file, 236, 6, 10941);
|
|
6252
6254
|
attr_dev(ul, "class", "HeaderItemsMenuSecondary");
|
|
6253
|
-
add_location(ul, file,
|
|
6255
|
+
add_location(ul, file, 261, 8, 12067);
|
|
6254
6256
|
attr_dev(nav1, "class", "HeaderSecondaryNav");
|
|
6255
|
-
add_location(nav1, file,
|
|
6257
|
+
add_location(nav1, file, 260, 6, 12026);
|
|
6256
6258
|
attr_dev(header, "class", "HeaderWrapper");
|
|
6257
|
-
add_location(header, file,
|
|
6259
|
+
add_location(header, file, 235, 4, 10904);
|
|
6258
6260
|
},
|
|
6259
6261
|
m: function mount(target, anchor) {
|
|
6260
6262
|
insert_dev(target, header, anchor);
|
|
@@ -6277,6 +6279,7 @@
|
|
|
6277
6279
|
each_blocks_1[i].m(select, null);
|
|
6278
6280
|
}
|
|
6279
6281
|
|
|
6282
|
+
select_option(select, /*selectedLanguage*/ ctx[4]);
|
|
6280
6283
|
append_dev(header, t6);
|
|
6281
6284
|
append_dev(header, nav1);
|
|
6282
6285
|
append_dev(nav1, ul);
|
|
@@ -6287,32 +6290,33 @@
|
|
|
6287
6290
|
|
|
6288
6291
|
if (!mounted) {
|
|
6289
6292
|
dispose = [
|
|
6290
|
-
listen_dev(div0, "click", /*click_handler_11*/ ctx[
|
|
6291
|
-
listen_dev(div1, "click", /*click_handler_12*/ ctx[
|
|
6292
|
-
listen_dev(div2, "click", /*click_handler_13*/ ctx[
|
|
6293
|
-
listen_dev(select, "change", /*
|
|
6293
|
+
listen_dev(div0, "click", /*click_handler_11*/ ctx[30], false, false, false),
|
|
6294
|
+
listen_dev(div1, "click", /*click_handler_12*/ ctx[31], false, false, false),
|
|
6295
|
+
listen_dev(div2, "click", /*click_handler_13*/ ctx[32], false, false, false),
|
|
6296
|
+
listen_dev(select, "change", /*select_change_handler_1*/ ctx[33]),
|
|
6297
|
+
listen_dev(select, "change", /*change_handler_1*/ ctx[34], false, false, false)
|
|
6294
6298
|
];
|
|
6295
6299
|
|
|
6296
6300
|
mounted = true;
|
|
6297
6301
|
}
|
|
6298
6302
|
},
|
|
6299
6303
|
p: function update(ctx, dirty) {
|
|
6300
|
-
if (dirty[0] & /*mainMenuArray*/
|
|
6301
|
-
set_custom_element_data(casino_slider, "sliderdata", /*mainMenuArray*/ ctx[
|
|
6304
|
+
if (dirty[0] & /*mainMenuArray*/ 4) {
|
|
6305
|
+
set_custom_element_data(casino_slider, "sliderdata", /*mainMenuArray*/ ctx[2]);
|
|
6302
6306
|
}
|
|
6303
6307
|
|
|
6304
|
-
if (dirty[0] & /*languagesArray*/
|
|
6305
|
-
|
|
6306
|
-
validate_each_argument(
|
|
6308
|
+
if (dirty[0] & /*languagesArray*/ 1024) {
|
|
6309
|
+
each_value_3 = /*languagesArray*/ ctx[10];
|
|
6310
|
+
validate_each_argument(each_value_3);
|
|
6307
6311
|
let i;
|
|
6308
6312
|
|
|
6309
|
-
for (i = 0; i <
|
|
6310
|
-
const child_ctx =
|
|
6313
|
+
for (i = 0; i < each_value_3.length; i += 1) {
|
|
6314
|
+
const child_ctx = get_each_context_3(ctx, each_value_3, i);
|
|
6311
6315
|
|
|
6312
6316
|
if (each_blocks_1[i]) {
|
|
6313
6317
|
each_blocks_1[i].p(child_ctx, dirty);
|
|
6314
6318
|
} else {
|
|
6315
|
-
each_blocks_1[i] =
|
|
6319
|
+
each_blocks_1[i] = create_each_block_3(child_ctx);
|
|
6316
6320
|
each_blocks_1[i].c();
|
|
6317
6321
|
each_blocks_1[i].m(select, null);
|
|
6318
6322
|
}
|
|
@@ -6322,21 +6326,25 @@
|
|
|
6322
6326
|
each_blocks_1[i].d(1);
|
|
6323
6327
|
}
|
|
6324
6328
|
|
|
6325
|
-
each_blocks_1.length =
|
|
6329
|
+
each_blocks_1.length = each_value_3.length;
|
|
6330
|
+
}
|
|
6331
|
+
|
|
6332
|
+
if (dirty[0] & /*selectedLanguage, languagesArray*/ 1040) {
|
|
6333
|
+
select_option(select, /*selectedLanguage*/ ctx[4]);
|
|
6326
6334
|
}
|
|
6327
6335
|
|
|
6328
|
-
if (dirty[0] & /*secondaryMenuArray*/
|
|
6329
|
-
|
|
6330
|
-
validate_each_argument(
|
|
6336
|
+
if (dirty[0] & /*secondaryMenuArray*/ 8) {
|
|
6337
|
+
each_value_2 = /*secondaryMenuArray*/ ctx[3];
|
|
6338
|
+
validate_each_argument(each_value_2);
|
|
6331
6339
|
let i;
|
|
6332
6340
|
|
|
6333
|
-
for (i = 0; i <
|
|
6334
|
-
const child_ctx =
|
|
6341
|
+
for (i = 0; i < each_value_2.length; i += 1) {
|
|
6342
|
+
const child_ctx = get_each_context_2(ctx, each_value_2, i);
|
|
6335
6343
|
|
|
6336
6344
|
if (each_blocks[i]) {
|
|
6337
6345
|
each_blocks[i].p(child_ctx, dirty);
|
|
6338
6346
|
} else {
|
|
6339
|
-
each_blocks[i] =
|
|
6347
|
+
each_blocks[i] = create_each_block_2(child_ctx);
|
|
6340
6348
|
each_blocks[i].c();
|
|
6341
6349
|
each_blocks[i].m(ul, null);
|
|
6342
6350
|
}
|
|
@@ -6346,7 +6354,7 @@
|
|
|
6346
6354
|
each_blocks[i].d(1);
|
|
6347
6355
|
}
|
|
6348
6356
|
|
|
6349
|
-
each_blocks.length =
|
|
6357
|
+
each_blocks.length = each_value_2.length;
|
|
6350
6358
|
}
|
|
6351
6359
|
},
|
|
6352
6360
|
d: function destroy(detaching) {
|
|
@@ -6360,17 +6368,17 @@
|
|
|
6360
6368
|
|
|
6361
6369
|
dispatch_dev("SvelteRegisterBlock", {
|
|
6362
6370
|
block,
|
|
6363
|
-
id:
|
|
6371
|
+
id: create_else_block_2.name,
|
|
6364
6372
|
type: "else",
|
|
6365
|
-
source: "(
|
|
6373
|
+
source: "(235:2) {:else}",
|
|
6366
6374
|
ctx
|
|
6367
6375
|
});
|
|
6368
6376
|
|
|
6369
6377
|
return block;
|
|
6370
6378
|
}
|
|
6371
6379
|
|
|
6372
|
-
// (
|
|
6373
|
-
function
|
|
6380
|
+
// (217:2) {#if mobileView}
|
|
6381
|
+
function create_if_block_5(ctx) {
|
|
6374
6382
|
let header;
|
|
6375
6383
|
let div6;
|
|
6376
6384
|
let div0;
|
|
@@ -6419,49 +6427,49 @@
|
|
|
6419
6427
|
t4 = space();
|
|
6420
6428
|
div3 = element("div");
|
|
6421
6429
|
div3.textContent = "Register";
|
|
6422
|
-
add_location(style, file,
|
|
6423
|
-
add_location(defs, file,
|
|
6430
|
+
add_location(style, file, 220, 128, 10120);
|
|
6431
|
+
add_location(defs, file, 220, 122, 10114);
|
|
6424
6432
|
attr_dev(rect0, "class", "a");
|
|
6425
6433
|
attr_dev(rect0, "width", "18");
|
|
6426
6434
|
attr_dev(rect0, "height", "2");
|
|
6427
6435
|
attr_dev(rect0, "transform", "translate(14 13)");
|
|
6428
|
-
add_location(rect0, file,
|
|
6436
|
+
add_location(rect0, file, 220, 198, 10190);
|
|
6429
6437
|
attr_dev(rect1, "class", "a");
|
|
6430
6438
|
attr_dev(rect1, "width", "22");
|
|
6431
6439
|
attr_dev(rect1, "height", "2");
|
|
6432
6440
|
attr_dev(rect1, "transform", "translate(14 20)");
|
|
6433
|
-
add_location(rect1, file,
|
|
6441
|
+
add_location(rect1, file, 220, 266, 10258);
|
|
6434
6442
|
attr_dev(rect2, "class", "a");
|
|
6435
6443
|
attr_dev(rect2, "width", "22");
|
|
6436
6444
|
attr_dev(rect2, "height", "2");
|
|
6437
6445
|
attr_dev(rect2, "transform", "translate(14 27)");
|
|
6438
|
-
add_location(rect2, file,
|
|
6446
|
+
add_location(rect2, file, 220, 334, 10326);
|
|
6439
6447
|
attr_dev(g, "transform", "translate(-14 -13)");
|
|
6440
|
-
add_location(g, file,
|
|
6448
|
+
add_location(g, file, 220, 164, 10156);
|
|
6441
6449
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
6442
6450
|
attr_dev(svg, "width", "22");
|
|
6443
6451
|
attr_dev(svg, "height", "16");
|
|
6444
6452
|
attr_dev(svg, "viewBox", "0 0 22 16");
|
|
6445
|
-
add_location(svg, file,
|
|
6453
|
+
add_location(svg, file, 220, 10, 10002);
|
|
6446
6454
|
attr_dev(div0, "class", "HeaderMobileMainNav");
|
|
6447
|
-
add_location(div0, file,
|
|
6455
|
+
add_location(div0, file, 219, 8, 9958);
|
|
6448
6456
|
if (img.src !== (img_src_value = img$1)) attr_dev(img, "src", img_src_value);
|
|
6449
6457
|
attr_dev(img, "alt", "Everymatrix logo");
|
|
6450
|
-
add_location(img, file,
|
|
6458
|
+
add_location(img, file, 223, 10, 10502);
|
|
6451
6459
|
attr_dev(div1, "class", "HeaderBranding");
|
|
6452
|
-
add_location(div1, file,
|
|
6460
|
+
add_location(div1, file, 222, 8, 10428);
|
|
6453
6461
|
attr_dev(div2, "class", "Item ItemLogin");
|
|
6454
|
-
add_location(div2, file,
|
|
6462
|
+
add_location(div2, file, 228, 12, 10660);
|
|
6455
6463
|
attr_dev(div3, "class", "Item ItemRegister");
|
|
6456
|
-
add_location(div3, file,
|
|
6464
|
+
add_location(div3, file, 229, 12, 10747);
|
|
6457
6465
|
attr_dev(div4, "class", "HeaderItemsMenu");
|
|
6458
|
-
add_location(div4, file,
|
|
6466
|
+
add_location(div4, file, 227, 10, 10618);
|
|
6459
6467
|
attr_dev(div5, "class", "HeaderTopActions");
|
|
6460
|
-
add_location(div5, file,
|
|
6468
|
+
add_location(div5, file, 226, 8, 10577);
|
|
6461
6469
|
attr_dev(div6, "class", "HeaderContainer");
|
|
6462
|
-
add_location(div6, file,
|
|
6470
|
+
add_location(div6, file, 218, 6, 9920);
|
|
6463
6471
|
attr_dev(header, "class", "HeaderWrapper HeaderMobileWrapper");
|
|
6464
|
-
add_location(header, file,
|
|
6472
|
+
add_location(header, file, 217, 4, 9863);
|
|
6465
6473
|
},
|
|
6466
6474
|
m: function mount(target, anchor) {
|
|
6467
6475
|
insert_dev(target, header, anchor);
|
|
@@ -6487,10 +6495,10 @@
|
|
|
6487
6495
|
|
|
6488
6496
|
if (!mounted) {
|
|
6489
6497
|
dispose = [
|
|
6490
|
-
listen_dev(svg, "click", /*click_handler_7*/ ctx[
|
|
6491
|
-
listen_dev(div1, "click", /*click_handler_8*/ ctx[
|
|
6492
|
-
listen_dev(div2, "click", /*click_handler_9*/ ctx[
|
|
6493
|
-
listen_dev(div3, "click", /*click_handler_10*/ ctx[
|
|
6498
|
+
listen_dev(svg, "click", /*click_handler_7*/ ctx[26], false, false, false),
|
|
6499
|
+
listen_dev(div1, "click", /*click_handler_8*/ ctx[27], false, false, false),
|
|
6500
|
+
listen_dev(div2, "click", /*click_handler_9*/ ctx[28], false, false, false),
|
|
6501
|
+
listen_dev(div3, "click", /*click_handler_10*/ ctx[29], false, false, false)
|
|
6494
6502
|
];
|
|
6495
6503
|
|
|
6496
6504
|
mounted = true;
|
|
@@ -6506,22 +6514,22 @@
|
|
|
6506
6514
|
|
|
6507
6515
|
dispatch_dev("SvelteRegisterBlock", {
|
|
6508
6516
|
block,
|
|
6509
|
-
id:
|
|
6517
|
+
id: create_if_block_5.name,
|
|
6510
6518
|
type: "if",
|
|
6511
|
-
source: "(
|
|
6519
|
+
source: "(217:2) {#if mobileView}",
|
|
6512
6520
|
ctx
|
|
6513
6521
|
});
|
|
6514
6522
|
|
|
6515
6523
|
return block;
|
|
6516
6524
|
}
|
|
6517
6525
|
|
|
6518
|
-
// (
|
|
6526
|
+
// (142:0) {#if isLoggedIn}
|
|
6519
6527
|
function create_if_block_1(ctx) {
|
|
6520
6528
|
let if_block_anchor;
|
|
6521
6529
|
|
|
6522
6530
|
function select_block_type_1(ctx, dirty) {
|
|
6523
|
-
if (/*mobileView*/ ctx[
|
|
6524
|
-
return
|
|
6531
|
+
if (/*mobileView*/ ctx[5]) return create_if_block_2;
|
|
6532
|
+
return create_else_block;
|
|
6525
6533
|
}
|
|
6526
6534
|
|
|
6527
6535
|
let current_block_type = select_block_type_1(ctx);
|
|
@@ -6559,26 +6567,26 @@
|
|
|
6559
6567
|
block,
|
|
6560
6568
|
id: create_if_block_1.name,
|
|
6561
6569
|
type: "if",
|
|
6562
|
-
source: "(
|
|
6570
|
+
source: "(142:0) {#if isLoggedIn}",
|
|
6563
6571
|
ctx
|
|
6564
6572
|
});
|
|
6565
6573
|
|
|
6566
6574
|
return block;
|
|
6567
6575
|
}
|
|
6568
6576
|
|
|
6569
|
-
// (
|
|
6570
|
-
function
|
|
6577
|
+
// (253:16) {:else}
|
|
6578
|
+
function create_else_block_3(ctx) {
|
|
6571
6579
|
let option;
|
|
6572
|
-
let t_value = /*lang*/ ctx[
|
|
6580
|
+
let t_value = /*lang*/ ctx[50].code + "";
|
|
6573
6581
|
let t;
|
|
6574
6582
|
|
|
6575
6583
|
const block = {
|
|
6576
6584
|
c: function create() {
|
|
6577
6585
|
option = element("option");
|
|
6578
6586
|
t = text(t_value);
|
|
6579
|
-
option.__value = /*lang*/ ctx[
|
|
6587
|
+
option.__value = /*lang*/ ctx[50].code;
|
|
6580
6588
|
option.value = option.__value;
|
|
6581
|
-
add_location(option, file,
|
|
6589
|
+
add_location(option, file, 253, 18, 11862);
|
|
6582
6590
|
},
|
|
6583
6591
|
m: function mount(target, anchor) {
|
|
6584
6592
|
insert_dev(target, option, anchor);
|
|
@@ -6592,29 +6600,28 @@
|
|
|
6592
6600
|
|
|
6593
6601
|
dispatch_dev("SvelteRegisterBlock", {
|
|
6594
6602
|
block,
|
|
6595
|
-
id:
|
|
6603
|
+
id: create_else_block_3.name,
|
|
6596
6604
|
type: "else",
|
|
6597
|
-
source: "(
|
|
6605
|
+
source: "(253:16) {:else}",
|
|
6598
6606
|
ctx
|
|
6599
6607
|
});
|
|
6600
6608
|
|
|
6601
6609
|
return block;
|
|
6602
6610
|
}
|
|
6603
6611
|
|
|
6604
|
-
// (
|
|
6605
|
-
function
|
|
6612
|
+
// (251:16) {#if lang.code === 'EN'}
|
|
6613
|
+
function create_if_block_6(ctx) {
|
|
6606
6614
|
let option;
|
|
6607
|
-
let t_value = /*lang*/ ctx[
|
|
6615
|
+
let t_value = /*lang*/ ctx[50].code + "";
|
|
6608
6616
|
let t;
|
|
6609
6617
|
|
|
6610
6618
|
const block = {
|
|
6611
6619
|
c: function create() {
|
|
6612
6620
|
option = element("option");
|
|
6613
6621
|
t = text(t_value);
|
|
6614
|
-
option.
|
|
6615
|
-
option.__value = /*lang*/ ctx[48];
|
|
6622
|
+
option.__value = /*lang*/ ctx[50].code;
|
|
6616
6623
|
option.value = option.__value;
|
|
6617
|
-
add_location(option, file,
|
|
6624
|
+
add_location(option, file, 251, 18, 11773);
|
|
6618
6625
|
},
|
|
6619
6626
|
m: function mount(target, anchor) {
|
|
6620
6627
|
insert_dev(target, option, anchor);
|
|
@@ -6628,25 +6635,25 @@
|
|
|
6628
6635
|
|
|
6629
6636
|
dispatch_dev("SvelteRegisterBlock", {
|
|
6630
6637
|
block,
|
|
6631
|
-
id:
|
|
6638
|
+
id: create_if_block_6.name,
|
|
6632
6639
|
type: "if",
|
|
6633
|
-
source: "(
|
|
6640
|
+
source: "(251:16) {#if lang.code === 'EN'}",
|
|
6634
6641
|
ctx
|
|
6635
6642
|
});
|
|
6636
6643
|
|
|
6637
6644
|
return block;
|
|
6638
6645
|
}
|
|
6639
6646
|
|
|
6640
|
-
// (
|
|
6641
|
-
function
|
|
6647
|
+
// (250:14) {#each languagesArray as lang}
|
|
6648
|
+
function create_each_block_3(ctx) {
|
|
6642
6649
|
let if_block_anchor;
|
|
6643
6650
|
|
|
6644
|
-
function
|
|
6645
|
-
if (/*lang*/ ctx[
|
|
6646
|
-
return
|
|
6651
|
+
function select_block_type_3(ctx, dirty) {
|
|
6652
|
+
if (/*lang*/ ctx[50].code === "EN") return create_if_block_6;
|
|
6653
|
+
return create_else_block_3;
|
|
6647
6654
|
}
|
|
6648
6655
|
|
|
6649
|
-
let current_block_type =
|
|
6656
|
+
let current_block_type = select_block_type_3(ctx);
|
|
6650
6657
|
let if_block = current_block_type(ctx);
|
|
6651
6658
|
|
|
6652
6659
|
const block = {
|
|
@@ -6669,20 +6676,20 @@
|
|
|
6669
6676
|
|
|
6670
6677
|
dispatch_dev("SvelteRegisterBlock", {
|
|
6671
6678
|
block,
|
|
6672
|
-
id:
|
|
6679
|
+
id: create_each_block_3.name,
|
|
6673
6680
|
type: "each",
|
|
6674
|
-
source: "(
|
|
6681
|
+
source: "(250:14) {#each languagesArray as lang}",
|
|
6675
6682
|
ctx
|
|
6676
6683
|
});
|
|
6677
6684
|
|
|
6678
6685
|
return block;
|
|
6679
6686
|
}
|
|
6680
6687
|
|
|
6681
|
-
// (
|
|
6682
|
-
function
|
|
6688
|
+
// (263:10) {#each secondaryMenuArray as secondaryItem}
|
|
6689
|
+
function create_each_block_2(ctx) {
|
|
6683
6690
|
let li;
|
|
6684
6691
|
let a;
|
|
6685
|
-
let t_value = /*secondaryItem*/ ctx[
|
|
6692
|
+
let t_value = /*secondaryItem*/ ctx[47].label + "";
|
|
6686
6693
|
let t;
|
|
6687
6694
|
let a_href_value;
|
|
6688
6695
|
|
|
@@ -6691,10 +6698,10 @@
|
|
|
6691
6698
|
li = element("li");
|
|
6692
6699
|
a = element("a");
|
|
6693
6700
|
t = text(t_value);
|
|
6694
|
-
attr_dev(a, "href", a_href_value = /*secondaryItem*/ ctx[
|
|
6695
|
-
add_location(a, file,
|
|
6701
|
+
attr_dev(a, "href", a_href_value = /*secondaryItem*/ ctx[47].path);
|
|
6702
|
+
add_location(a, file, 263, 38, 12197);
|
|
6696
6703
|
attr_dev(li, "class", "ItemSecondary");
|
|
6697
|
-
add_location(li, file,
|
|
6704
|
+
add_location(li, file, 263, 12, 12171);
|
|
6698
6705
|
},
|
|
6699
6706
|
m: function mount(target, anchor) {
|
|
6700
6707
|
insert_dev(target, li, anchor);
|
|
@@ -6702,9 +6709,9 @@
|
|
|
6702
6709
|
append_dev(a, t);
|
|
6703
6710
|
},
|
|
6704
6711
|
p: function update(ctx, dirty) {
|
|
6705
|
-
if (dirty[0] & /*secondaryMenuArray*/
|
|
6712
|
+
if (dirty[0] & /*secondaryMenuArray*/ 8 && t_value !== (t_value = /*secondaryItem*/ ctx[47].label + "")) set_data_dev(t, t_value);
|
|
6706
6713
|
|
|
6707
|
-
if (dirty[0] & /*secondaryMenuArray*/
|
|
6714
|
+
if (dirty[0] & /*secondaryMenuArray*/ 8 && a_href_value !== (a_href_value = /*secondaryItem*/ ctx[47].path)) {
|
|
6708
6715
|
attr_dev(a, "href", a_href_value);
|
|
6709
6716
|
}
|
|
6710
6717
|
},
|
|
@@ -6715,17 +6722,17 @@
|
|
|
6715
6722
|
|
|
6716
6723
|
dispatch_dev("SvelteRegisterBlock", {
|
|
6717
6724
|
block,
|
|
6718
|
-
id:
|
|
6725
|
+
id: create_each_block_2.name,
|
|
6719
6726
|
type: "each",
|
|
6720
|
-
source: "(
|
|
6727
|
+
source: "(263:10) {#each secondaryMenuArray as secondaryItem}",
|
|
6721
6728
|
ctx
|
|
6722
6729
|
});
|
|
6723
6730
|
|
|
6724
6731
|
return block;
|
|
6725
6732
|
}
|
|
6726
6733
|
|
|
6727
|
-
// (
|
|
6728
|
-
function
|
|
6734
|
+
// (166:2) {:else}
|
|
6735
|
+
function create_else_block(ctx) {
|
|
6729
6736
|
let header;
|
|
6730
6737
|
let div5;
|
|
6731
6738
|
let div0;
|
|
@@ -6737,7 +6744,7 @@
|
|
|
6737
6744
|
let t1;
|
|
6738
6745
|
let div4;
|
|
6739
6746
|
let div3;
|
|
6740
|
-
let
|
|
6747
|
+
let player_account_balance_modal;
|
|
6741
6748
|
let t2;
|
|
6742
6749
|
let div1;
|
|
6743
6750
|
let t4;
|
|
@@ -6749,34 +6756,26 @@
|
|
|
6749
6756
|
let g;
|
|
6750
6757
|
let path;
|
|
6751
6758
|
let t6;
|
|
6752
|
-
let
|
|
6759
|
+
let select;
|
|
6753
6760
|
let t7;
|
|
6754
6761
|
let nav1;
|
|
6755
6762
|
let ul;
|
|
6756
6763
|
let mounted;
|
|
6757
6764
|
let dispose;
|
|
6758
|
-
let
|
|
6759
|
-
validate_each_argument(
|
|
6760
|
-
let each_blocks_2 = [];
|
|
6761
|
-
|
|
6762
|
-
for (let i = 0; i < each_value_3.length; i += 1) {
|
|
6763
|
-
each_blocks_2[i] = create_each_block_3(get_each_context_3(ctx, each_value_3, i));
|
|
6764
|
-
}
|
|
6765
|
-
|
|
6766
|
-
let each_value_2 = /*languagesArray*/ ctx[6];
|
|
6767
|
-
validate_each_argument(each_value_2);
|
|
6765
|
+
let each_value_1 = /*languagesArray*/ ctx[10];
|
|
6766
|
+
validate_each_argument(each_value_1);
|
|
6768
6767
|
let each_blocks_1 = [];
|
|
6769
6768
|
|
|
6770
|
-
for (let i = 0; i <
|
|
6771
|
-
each_blocks_1[i] =
|
|
6769
|
+
for (let i = 0; i < each_value_1.length; i += 1) {
|
|
6770
|
+
each_blocks_1[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
|
|
6772
6771
|
}
|
|
6773
6772
|
|
|
6774
|
-
let
|
|
6775
|
-
validate_each_argument(
|
|
6773
|
+
let each_value = /*secondaryMenuArray*/ ctx[3];
|
|
6774
|
+
validate_each_argument(each_value);
|
|
6776
6775
|
let each_blocks = [];
|
|
6777
6776
|
|
|
6778
|
-
for (let i = 0; i <
|
|
6779
|
-
each_blocks[i] =
|
|
6777
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
6778
|
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
|
6780
6779
|
}
|
|
6781
6780
|
|
|
6782
6781
|
const block = {
|
|
@@ -6791,12 +6790,7 @@
|
|
|
6791
6790
|
t1 = space();
|
|
6792
6791
|
div4 = element("div");
|
|
6793
6792
|
div3 = element("div");
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
for (let i = 0; i < each_blocks_2.length; i += 1) {
|
|
6797
|
-
each_blocks_2[i].c();
|
|
6798
|
-
}
|
|
6799
|
-
|
|
6793
|
+
player_account_balance_modal = element("player-account-balance-modal");
|
|
6800
6794
|
t2 = space();
|
|
6801
6795
|
div1 = element("div");
|
|
6802
6796
|
div1.textContent = "Deposit";
|
|
@@ -6809,7 +6803,7 @@
|
|
|
6809
6803
|
g = svg_element("g");
|
|
6810
6804
|
path = svg_element("path");
|
|
6811
6805
|
t6 = space();
|
|
6812
|
-
|
|
6806
|
+
select = element("select");
|
|
6813
6807
|
|
|
6814
6808
|
for (let i = 0; i < each_blocks_1.length; i += 1) {
|
|
6815
6809
|
each_blocks_1[i].c();
|
|
@@ -6825,49 +6819,52 @@
|
|
|
6825
6819
|
|
|
6826
6820
|
if (img.src !== (img_src_value = img$1)) attr_dev(img, "src", img_src_value);
|
|
6827
6821
|
attr_dev(img, "alt", "Everymatrix logo");
|
|
6828
|
-
add_location(img, file,
|
|
6822
|
+
add_location(img, file, 169, 10, 7663);
|
|
6829
6823
|
attr_dev(div0, "class", "HeaderBranding");
|
|
6830
|
-
add_location(div0, file,
|
|
6824
|
+
add_location(div0, file, 168, 8, 7589);
|
|
6831
6825
|
set_custom_element_data(casino_slider, "class", "HeaderItemsMenu");
|
|
6832
|
-
set_custom_element_data(casino_slider, "sliderdata", /*mainMenuArray*/ ctx[
|
|
6826
|
+
set_custom_element_data(casino_slider, "sliderdata", /*mainMenuArray*/ ctx[2]);
|
|
6833
6827
|
set_custom_element_data(casino_slider, "onclickeventname", "");
|
|
6834
6828
|
set_custom_element_data(casino_slider, "location", "headerMain");
|
|
6835
|
-
add_location(casino_slider, file,
|
|
6829
|
+
add_location(casino_slider, file, 173, 10, 7776);
|
|
6836
6830
|
attr_dev(nav0, "class", "HeaderMainNav");
|
|
6837
|
-
add_location(nav0, file,
|
|
6838
|
-
|
|
6839
|
-
|
|
6831
|
+
add_location(nav0, file, 172, 8, 7738);
|
|
6832
|
+
set_custom_element_data(player_account_balance_modal, "sessionid", /*sessionID*/ ctx[8]);
|
|
6833
|
+
set_custom_element_data(player_account_balance_modal, "playerid", /*playerID*/ ctx[7]);
|
|
6834
|
+
set_custom_element_data(player_account_balance_modal, "profileurl", /*profileurl*/ ctx[1]);
|
|
6835
|
+
add_location(player_account_balance_modal, file, 177, 12, 8004);
|
|
6840
6836
|
attr_dev(div1, "class", "Item ItemDeposit");
|
|
6841
|
-
add_location(div1, file,
|
|
6842
|
-
add_location(style, file,
|
|
6843
|
-
add_location(defs, file,
|
|
6837
|
+
add_location(div1, file, 178, 12, 8104);
|
|
6838
|
+
add_location(style, file, 182, 18, 8414);
|
|
6839
|
+
add_location(defs, file, 181, 16, 8389);
|
|
6844
6840
|
attr_dev(path, "class", "a");
|
|
6845
6841
|
attr_dev(path, "d", "M15.5,4a3.75,3.75,0,1,0,3.75,3.75A3.761,3.761,0,0,0,15.5,4Zm0,1.429A2.321,2.321,0,1,1,13.179,7.75,2.311,2.311,0,0,1,15.5,5.429Zm0,6.429A7.7,7.7,0,0,0,8,19.714a.714.714,0,0,0,.714.714H22.286A.714.714,0,0,0,23,19.714,7.7,7.7,0,0,0,15.5,11.857Zm0,1.429A6.18,6.18,0,0,1,21.5,19H9.5A6.18,6.18,0,0,1,15.5,13.286Z");
|
|
6846
6842
|
attr_dev(path, "transform", "translate(0 0)");
|
|
6847
|
-
add_location(path, file,
|
|
6843
|
+
add_location(path, file, 188, 18, 8596);
|
|
6848
6844
|
attr_dev(g, "transform", "translate(-8 -4)");
|
|
6849
|
-
add_location(g, file,
|
|
6845
|
+
add_location(g, file, 187, 16, 8545);
|
|
6850
6846
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
6851
6847
|
attr_dev(svg, "width", "15");
|
|
6852
6848
|
attr_dev(svg, "height", "16.429");
|
|
6853
6849
|
attr_dev(svg, "viewBox", "0 0 15 16.429");
|
|
6854
|
-
add_location(svg, file,
|
|
6850
|
+
add_location(svg, file, 180, 14, 8281);
|
|
6855
6851
|
attr_dev(div2, "class", "Item ItemAccount");
|
|
6856
|
-
add_location(div2, file,
|
|
6857
|
-
attr_dev(
|
|
6858
|
-
|
|
6852
|
+
add_location(div2, file, 179, 12, 8197);
|
|
6853
|
+
attr_dev(select, "class", "Item ItemLanguage");
|
|
6854
|
+
if (/*selectedLanguage*/ ctx[4] === void 0) add_render_callback(() => /*select_change_handler*/ ctx[24].call(select));
|
|
6855
|
+
add_location(select, file, 194, 12, 9073);
|
|
6859
6856
|
attr_dev(div3, "class", "HeaderItemsMenu PrimaryMenu");
|
|
6860
|
-
add_location(div3, file,
|
|
6857
|
+
add_location(div3, file, 176, 10, 7950);
|
|
6861
6858
|
attr_dev(div4, "class", "HeaderTopActions");
|
|
6862
|
-
add_location(div4, file,
|
|
6859
|
+
add_location(div4, file, 175, 8, 7909);
|
|
6863
6860
|
attr_dev(div5, "class", "HeaderContainer");
|
|
6864
|
-
add_location(div5, file,
|
|
6861
|
+
add_location(div5, file, 167, 6, 7551);
|
|
6865
6862
|
attr_dev(ul, "class", "HeaderItemsMenuSecondary");
|
|
6866
|
-
add_location(ul, file,
|
|
6863
|
+
add_location(ul, file, 207, 8, 9575);
|
|
6867
6864
|
attr_dev(nav1, "class", "HeaderSecondaryNav");
|
|
6868
|
-
add_location(nav1, file,
|
|
6865
|
+
add_location(nav1, file, 206, 6, 9534);
|
|
6869
6866
|
attr_dev(header, "class", "HeaderWrapper");
|
|
6870
|
-
add_location(header, file,
|
|
6867
|
+
add_location(header, file, 166, 4, 7514);
|
|
6871
6868
|
},
|
|
6872
6869
|
m: function mount(target, anchor) {
|
|
6873
6870
|
insert_dev(target, header, anchor);
|
|
@@ -6880,12 +6877,7 @@
|
|
|
6880
6877
|
append_dev(div5, t1);
|
|
6881
6878
|
append_dev(div5, div4);
|
|
6882
6879
|
append_dev(div4, div3);
|
|
6883
|
-
append_dev(div3,
|
|
6884
|
-
|
|
6885
|
-
for (let i = 0; i < each_blocks_2.length; i += 1) {
|
|
6886
|
-
each_blocks_2[i].m(select0, null);
|
|
6887
|
-
}
|
|
6888
|
-
|
|
6880
|
+
append_dev(div3, player_account_balance_modal);
|
|
6889
6881
|
append_dev(div3, t2);
|
|
6890
6882
|
append_dev(div3, div1);
|
|
6891
6883
|
append_dev(div3, t4);
|
|
@@ -6897,12 +6889,13 @@
|
|
|
6897
6889
|
append_dev(svg, g);
|
|
6898
6890
|
append_dev(g, path);
|
|
6899
6891
|
append_dev(div3, t6);
|
|
6900
|
-
append_dev(div3,
|
|
6892
|
+
append_dev(div3, select);
|
|
6901
6893
|
|
|
6902
6894
|
for (let i = 0; i < each_blocks_1.length; i += 1) {
|
|
6903
|
-
each_blocks_1[i].m(
|
|
6895
|
+
each_blocks_1[i].m(select, null);
|
|
6904
6896
|
}
|
|
6905
6897
|
|
|
6898
|
+
select_option(select, /*selectedLanguage*/ ctx[4]);
|
|
6906
6899
|
append_dev(header, t7);
|
|
6907
6900
|
append_dev(header, nav1);
|
|
6908
6901
|
append_dev(nav1, ul);
|
|
@@ -6913,59 +6906,47 @@
|
|
|
6913
6906
|
|
|
6914
6907
|
if (!mounted) {
|
|
6915
6908
|
dispose = [
|
|
6916
|
-
listen_dev(div0, "click", /*click_handler_4*/ ctx[
|
|
6917
|
-
listen_dev(
|
|
6918
|
-
listen_dev(
|
|
6919
|
-
listen_dev(
|
|
6920
|
-
listen_dev(
|
|
6909
|
+
listen_dev(div0, "click", /*click_handler_4*/ ctx[21], false, false, false),
|
|
6910
|
+
listen_dev(div1, "click", /*click_handler_5*/ ctx[22], false, false, false),
|
|
6911
|
+
listen_dev(div2, "click", /*click_handler_6*/ ctx[23], false, false, false),
|
|
6912
|
+
listen_dev(select, "change", /*select_change_handler*/ ctx[24]),
|
|
6913
|
+
listen_dev(select, "change", /*change_handler*/ ctx[25], false, false, false)
|
|
6921
6914
|
];
|
|
6922
6915
|
|
|
6923
6916
|
mounted = true;
|
|
6924
6917
|
}
|
|
6925
6918
|
},
|
|
6926
6919
|
p: function update(ctx, dirty) {
|
|
6927
|
-
if (dirty[0] & /*mainMenuArray*/
|
|
6928
|
-
set_custom_element_data(casino_slider, "sliderdata", /*mainMenuArray*/ ctx[
|
|
6920
|
+
if (dirty[0] & /*mainMenuArray*/ 4) {
|
|
6921
|
+
set_custom_element_data(casino_slider, "sliderdata", /*mainMenuArray*/ ctx[2]);
|
|
6929
6922
|
}
|
|
6930
6923
|
|
|
6931
|
-
if (dirty[0] & /*
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
let i;
|
|
6935
|
-
|
|
6936
|
-
for (i = 0; i < each_value_3.length; i += 1) {
|
|
6937
|
-
const child_ctx = get_each_context_3(ctx, each_value_3, i);
|
|
6938
|
-
|
|
6939
|
-
if (each_blocks_2[i]) {
|
|
6940
|
-
each_blocks_2[i].p(child_ctx, dirty);
|
|
6941
|
-
} else {
|
|
6942
|
-
each_blocks_2[i] = create_each_block_3(child_ctx);
|
|
6943
|
-
each_blocks_2[i].c();
|
|
6944
|
-
each_blocks_2[i].m(select0, null);
|
|
6945
|
-
}
|
|
6946
|
-
}
|
|
6924
|
+
if (dirty[0] & /*sessionID*/ 256) {
|
|
6925
|
+
set_custom_element_data(player_account_balance_modal, "sessionid", /*sessionID*/ ctx[8]);
|
|
6926
|
+
}
|
|
6947
6927
|
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6928
|
+
if (dirty[0] & /*playerID*/ 128) {
|
|
6929
|
+
set_custom_element_data(player_account_balance_modal, "playerid", /*playerID*/ ctx[7]);
|
|
6930
|
+
}
|
|
6951
6931
|
|
|
6952
|
-
|
|
6932
|
+
if (dirty[0] & /*profileurl*/ 2) {
|
|
6933
|
+
set_custom_element_data(player_account_balance_modal, "profileurl", /*profileurl*/ ctx[1]);
|
|
6953
6934
|
}
|
|
6954
6935
|
|
|
6955
|
-
if (dirty[0] & /*languagesArray*/
|
|
6956
|
-
|
|
6957
|
-
validate_each_argument(
|
|
6936
|
+
if (dirty[0] & /*languagesArray*/ 1024) {
|
|
6937
|
+
each_value_1 = /*languagesArray*/ ctx[10];
|
|
6938
|
+
validate_each_argument(each_value_1);
|
|
6958
6939
|
let i;
|
|
6959
6940
|
|
|
6960
|
-
for (i = 0; i <
|
|
6961
|
-
const child_ctx =
|
|
6941
|
+
for (i = 0; i < each_value_1.length; i += 1) {
|
|
6942
|
+
const child_ctx = get_each_context_1(ctx, each_value_1, i);
|
|
6962
6943
|
|
|
6963
6944
|
if (each_blocks_1[i]) {
|
|
6964
6945
|
each_blocks_1[i].p(child_ctx, dirty);
|
|
6965
6946
|
} else {
|
|
6966
|
-
each_blocks_1[i] =
|
|
6947
|
+
each_blocks_1[i] = create_each_block_1(child_ctx);
|
|
6967
6948
|
each_blocks_1[i].c();
|
|
6968
|
-
each_blocks_1[i].m(
|
|
6949
|
+
each_blocks_1[i].m(select, null);
|
|
6969
6950
|
}
|
|
6970
6951
|
}
|
|
6971
6952
|
|
|
@@ -6973,21 +6954,25 @@
|
|
|
6973
6954
|
each_blocks_1[i].d(1);
|
|
6974
6955
|
}
|
|
6975
6956
|
|
|
6976
|
-
each_blocks_1.length =
|
|
6957
|
+
each_blocks_1.length = each_value_1.length;
|
|
6977
6958
|
}
|
|
6978
6959
|
|
|
6979
|
-
if (dirty[0] & /*
|
|
6980
|
-
|
|
6981
|
-
|
|
6960
|
+
if (dirty[0] & /*selectedLanguage, languagesArray*/ 1040) {
|
|
6961
|
+
select_option(select, /*selectedLanguage*/ ctx[4]);
|
|
6962
|
+
}
|
|
6963
|
+
|
|
6964
|
+
if (dirty[0] & /*secondaryMenuArray*/ 8) {
|
|
6965
|
+
each_value = /*secondaryMenuArray*/ ctx[3];
|
|
6966
|
+
validate_each_argument(each_value);
|
|
6982
6967
|
let i;
|
|
6983
6968
|
|
|
6984
|
-
for (i = 0; i <
|
|
6985
|
-
const child_ctx =
|
|
6969
|
+
for (i = 0; i < each_value.length; i += 1) {
|
|
6970
|
+
const child_ctx = get_each_context(ctx, each_value, i);
|
|
6986
6971
|
|
|
6987
6972
|
if (each_blocks[i]) {
|
|
6988
6973
|
each_blocks[i].p(child_ctx, dirty);
|
|
6989
6974
|
} else {
|
|
6990
|
-
each_blocks[i] =
|
|
6975
|
+
each_blocks[i] = create_each_block(child_ctx);
|
|
6991
6976
|
each_blocks[i].c();
|
|
6992
6977
|
each_blocks[i].m(ul, null);
|
|
6993
6978
|
}
|
|
@@ -6997,12 +6982,11 @@
|
|
|
6997
6982
|
each_blocks[i].d(1);
|
|
6998
6983
|
}
|
|
6999
6984
|
|
|
7000
|
-
each_blocks.length =
|
|
6985
|
+
each_blocks.length = each_value.length;
|
|
7001
6986
|
}
|
|
7002
6987
|
},
|
|
7003
6988
|
d: function destroy(detaching) {
|
|
7004
6989
|
if (detaching) detach_dev(header);
|
|
7005
|
-
destroy_each(each_blocks_2, detaching);
|
|
7006
6990
|
destroy_each(each_blocks_1, detaching);
|
|
7007
6991
|
destroy_each(each_blocks, detaching);
|
|
7008
6992
|
mounted = false;
|
|
@@ -7012,16 +6996,16 @@
|
|
|
7012
6996
|
|
|
7013
6997
|
dispatch_dev("SvelteRegisterBlock", {
|
|
7014
6998
|
block,
|
|
7015
|
-
id:
|
|
6999
|
+
id: create_else_block.name,
|
|
7016
7000
|
type: "else",
|
|
7017
|
-
source: "(
|
|
7001
|
+
source: "(166:2) {:else}",
|
|
7018
7002
|
ctx
|
|
7019
7003
|
});
|
|
7020
7004
|
|
|
7021
7005
|
return block;
|
|
7022
7006
|
}
|
|
7023
7007
|
|
|
7024
|
-
// (
|
|
7008
|
+
// (143:2) {#if mobileView}
|
|
7025
7009
|
function create_if_block_2(ctx) {
|
|
7026
7010
|
let header;
|
|
7027
7011
|
let div6;
|
|
@@ -7033,7 +7017,7 @@
|
|
|
7033
7017
|
let t1;
|
|
7034
7018
|
let div5;
|
|
7035
7019
|
let div4;
|
|
7036
|
-
let
|
|
7020
|
+
let player_account_balance_modal;
|
|
7037
7021
|
let t2;
|
|
7038
7022
|
let div2;
|
|
7039
7023
|
let t4;
|
|
@@ -7046,14 +7030,7 @@
|
|
|
7046
7030
|
let path;
|
|
7047
7031
|
let mounted;
|
|
7048
7032
|
let dispose;
|
|
7049
|
-
let if_block = !/*hamburgerMenuActive*/ ctx[
|
|
7050
|
-
let each_value = /*balanceArray*/ ctx[7];
|
|
7051
|
-
validate_each_argument(each_value);
|
|
7052
|
-
let each_blocks = [];
|
|
7053
|
-
|
|
7054
|
-
for (let i = 0; i < each_value.length; i += 1) {
|
|
7055
|
-
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
|
7056
|
-
}
|
|
7033
|
+
let if_block = !/*hamburgerMenuActive*/ ctx[9] && create_if_block_3(ctx);
|
|
7057
7034
|
|
|
7058
7035
|
const block = {
|
|
7059
7036
|
c: function create() {
|
|
@@ -7067,12 +7044,7 @@
|
|
|
7067
7044
|
t1 = space();
|
|
7068
7045
|
div5 = element("div");
|
|
7069
7046
|
div4 = element("div");
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
7073
|
-
each_blocks[i].c();
|
|
7074
|
-
}
|
|
7075
|
-
|
|
7047
|
+
player_account_balance_modal = element("player-account-balance-modal");
|
|
7076
7048
|
t2 = space();
|
|
7077
7049
|
div2 = element("div");
|
|
7078
7050
|
div2.textContent = "Deposit";
|
|
@@ -7085,39 +7057,41 @@
|
|
|
7085
7057
|
g = svg_element("g");
|
|
7086
7058
|
path = svg_element("path");
|
|
7087
7059
|
attr_dev(div0, "class", "HeaderMobileMainNav");
|
|
7088
|
-
add_location(div0, file,
|
|
7060
|
+
add_location(div0, file, 145, 8, 5846);
|
|
7089
7061
|
if (img.src !== (img_src_value = img$1)) attr_dev(img, "src", img_src_value);
|
|
7090
7062
|
attr_dev(img, "alt", "Everymatrix logo");
|
|
7091
|
-
add_location(img, file,
|
|
7063
|
+
add_location(img, file, 151, 10, 6444);
|
|
7092
7064
|
attr_dev(div1, "class", "HeaderBranding");
|
|
7093
|
-
add_location(div1, file,
|
|
7094
|
-
|
|
7095
|
-
|
|
7065
|
+
add_location(div1, file, 150, 8, 6370);
|
|
7066
|
+
set_custom_element_data(player_account_balance_modal, "sessionid", /*sessionID*/ ctx[8]);
|
|
7067
|
+
set_custom_element_data(player_account_balance_modal, "playerid", /*playerID*/ ctx[7]);
|
|
7068
|
+
set_custom_element_data(player_account_balance_modal, "profileurl", /*profileurl*/ ctx[1]);
|
|
7069
|
+
add_location(player_account_balance_modal, file, 156, 12, 6614);
|
|
7096
7070
|
attr_dev(div2, "class", "Item ItemDeposit");
|
|
7097
|
-
add_location(div2, file,
|
|
7098
|
-
add_location(style, file,
|
|
7099
|
-
add_location(defs, file,
|
|
7071
|
+
add_location(div2, file, 157, 12, 6714);
|
|
7072
|
+
add_location(style, file, 159, 111, 6988);
|
|
7073
|
+
add_location(defs, file, 159, 105, 6982);
|
|
7100
7074
|
attr_dev(path, "class", "a");
|
|
7101
7075
|
attr_dev(path, "d", "M15.5,4a3.75,3.75,0,1,0,3.75,3.75A3.761,3.761,0,0,0,15.5,4Zm0,1.429A2.321,2.321,0,1,1,13.179,7.75,2.311,2.311,0,0,1,15.5,5.429Zm0,6.429A7.7,7.7,0,0,0,8,19.714a.714.714,0,0,0,.714.714H22.286A.714.714,0,0,0,23,19.714,7.7,7.7,0,0,0,15.5,11.857Zm0,1.429A6.18,6.18,0,0,1,21.5,19H9.5A6.18,6.18,0,0,1,15.5,13.286Z");
|
|
7102
7076
|
attr_dev(path, "transform", "translate(0 0)");
|
|
7103
|
-
add_location(path, file,
|
|
7077
|
+
add_location(path, file, 159, 179, 7056);
|
|
7104
7078
|
attr_dev(g, "transform", "translate(-8 -4)");
|
|
7105
|
-
add_location(g, file,
|
|
7079
|
+
add_location(g, file, 159, 147, 7024);
|
|
7106
7080
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
7107
7081
|
attr_dev(svg, "width", "15");
|
|
7108
7082
|
attr_dev(svg, "height", "16.429");
|
|
7109
7083
|
attr_dev(svg, "viewBox", "0 0 15 16.429");
|
|
7110
|
-
add_location(svg, file,
|
|
7084
|
+
add_location(svg, file, 159, 14, 6891);
|
|
7111
7085
|
attr_dev(div3, "class", "Item ItemAccount");
|
|
7112
|
-
add_location(div3, file,
|
|
7086
|
+
add_location(div3, file, 158, 12, 6807);
|
|
7113
7087
|
attr_dev(div4, "class", "HeaderItemsMenu PrimaryMenu");
|
|
7114
|
-
add_location(div4, file,
|
|
7088
|
+
add_location(div4, file, 155, 10, 6560);
|
|
7115
7089
|
attr_dev(div5, "class", "HeaderTopActions");
|
|
7116
|
-
add_location(div5, file,
|
|
7090
|
+
add_location(div5, file, 154, 8, 6519);
|
|
7117
7091
|
attr_dev(div6, "class", "HeaderContainer");
|
|
7118
|
-
add_location(div6, file,
|
|
7092
|
+
add_location(div6, file, 144, 6, 5808);
|
|
7119
7093
|
attr_dev(header, "class", "HeaderWrapper HeaderMobileWrapper");
|
|
7120
|
-
add_location(header, file,
|
|
7094
|
+
add_location(header, file, 143, 4, 5751);
|
|
7121
7095
|
},
|
|
7122
7096
|
m: function mount(target, anchor) {
|
|
7123
7097
|
insert_dev(target, header, anchor);
|
|
@@ -7130,12 +7104,7 @@
|
|
|
7130
7104
|
append_dev(div6, t1);
|
|
7131
7105
|
append_dev(div6, div5);
|
|
7132
7106
|
append_dev(div5, div4);
|
|
7133
|
-
append_dev(div4,
|
|
7134
|
-
|
|
7135
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
7136
|
-
each_blocks[i].m(select, null);
|
|
7137
|
-
}
|
|
7138
|
-
|
|
7107
|
+
append_dev(div4, player_account_balance_modal);
|
|
7139
7108
|
append_dev(div4, t2);
|
|
7140
7109
|
append_dev(div4, div2);
|
|
7141
7110
|
append_dev(div4, t4);
|
|
@@ -7149,21 +7118,20 @@
|
|
|
7149
7118
|
|
|
7150
7119
|
if (!mounted) {
|
|
7151
7120
|
dispose = [
|
|
7152
|
-
listen_dev(div1, "click", /*click_handler_1*/ ctx[
|
|
7153
|
-
listen_dev(
|
|
7154
|
-
listen_dev(
|
|
7155
|
-
listen_dev(div3, "click", /*click_handler_3*/ ctx[18], false, false, false)
|
|
7121
|
+
listen_dev(div1, "click", /*click_handler_1*/ ctx[18], false, false, false),
|
|
7122
|
+
listen_dev(div2, "click", /*click_handler_2*/ ctx[19], false, false, false),
|
|
7123
|
+
listen_dev(div3, "click", /*click_handler_3*/ ctx[20], false, false, false)
|
|
7156
7124
|
];
|
|
7157
7125
|
|
|
7158
7126
|
mounted = true;
|
|
7159
7127
|
}
|
|
7160
7128
|
},
|
|
7161
7129
|
p: function update(ctx, dirty) {
|
|
7162
|
-
if (!/*hamburgerMenuActive*/ ctx[
|
|
7130
|
+
if (!/*hamburgerMenuActive*/ ctx[9]) {
|
|
7163
7131
|
if (if_block) {
|
|
7164
7132
|
if_block.p(ctx, dirty);
|
|
7165
7133
|
} else {
|
|
7166
|
-
if_block =
|
|
7134
|
+
if_block = create_if_block_3(ctx);
|
|
7167
7135
|
if_block.c();
|
|
7168
7136
|
if_block.m(div0, null);
|
|
7169
7137
|
}
|
|
@@ -7172,34 +7140,21 @@
|
|
|
7172
7140
|
if_block = null;
|
|
7173
7141
|
}
|
|
7174
7142
|
|
|
7175
|
-
if (dirty[0] & /*
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
let i;
|
|
7179
|
-
|
|
7180
|
-
for (i = 0; i < each_value.length; i += 1) {
|
|
7181
|
-
const child_ctx = get_each_context(ctx, each_value, i);
|
|
7182
|
-
|
|
7183
|
-
if (each_blocks[i]) {
|
|
7184
|
-
each_blocks[i].p(child_ctx, dirty);
|
|
7185
|
-
} else {
|
|
7186
|
-
each_blocks[i] = create_each_block(child_ctx);
|
|
7187
|
-
each_blocks[i].c();
|
|
7188
|
-
each_blocks[i].m(select, null);
|
|
7189
|
-
}
|
|
7190
|
-
}
|
|
7143
|
+
if (dirty[0] & /*sessionID*/ 256) {
|
|
7144
|
+
set_custom_element_data(player_account_balance_modal, "sessionid", /*sessionID*/ ctx[8]);
|
|
7145
|
+
}
|
|
7191
7146
|
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7147
|
+
if (dirty[0] & /*playerID*/ 128) {
|
|
7148
|
+
set_custom_element_data(player_account_balance_modal, "playerid", /*playerID*/ ctx[7]);
|
|
7149
|
+
}
|
|
7195
7150
|
|
|
7196
|
-
|
|
7151
|
+
if (dirty[0] & /*profileurl*/ 2) {
|
|
7152
|
+
set_custom_element_data(player_account_balance_modal, "profileurl", /*profileurl*/ ctx[1]);
|
|
7197
7153
|
}
|
|
7198
7154
|
},
|
|
7199
7155
|
d: function destroy(detaching) {
|
|
7200
7156
|
if (detaching) detach_dev(header);
|
|
7201
7157
|
if (if_block) if_block.d();
|
|
7202
|
-
destroy_each(each_blocks, detaching);
|
|
7203
7158
|
mounted = false;
|
|
7204
7159
|
run_all(dispose);
|
|
7205
7160
|
}
|
|
@@ -7209,138 +7164,26 @@
|
|
|
7209
7164
|
block,
|
|
7210
7165
|
id: create_if_block_2.name,
|
|
7211
7166
|
type: "if",
|
|
7212
|
-
source: "(
|
|
7213
|
-
ctx
|
|
7214
|
-
});
|
|
7215
|
-
|
|
7216
|
-
return block;
|
|
7217
|
-
}
|
|
7218
|
-
|
|
7219
|
-
// (185:16) {:else}
|
|
7220
|
-
function create_else_block_3(ctx) {
|
|
7221
|
-
let option;
|
|
7222
|
-
let t_value = /*val*/ ctx[42] + "";
|
|
7223
|
-
let t;
|
|
7224
|
-
|
|
7225
|
-
const block = {
|
|
7226
|
-
c: function create() {
|
|
7227
|
-
option = element("option");
|
|
7228
|
-
t = text(t_value);
|
|
7229
|
-
option.__value = /*val*/ ctx[42];
|
|
7230
|
-
option.value = option.__value;
|
|
7231
|
-
add_location(option, file, 185, 18, 8134);
|
|
7232
|
-
},
|
|
7233
|
-
m: function mount(target, anchor) {
|
|
7234
|
-
insert_dev(target, option, anchor);
|
|
7235
|
-
append_dev(option, t);
|
|
7236
|
-
},
|
|
7237
|
-
p: noop$1,
|
|
7238
|
-
d: function destroy(detaching) {
|
|
7239
|
-
if (detaching) detach_dev(option);
|
|
7240
|
-
}
|
|
7241
|
-
};
|
|
7242
|
-
|
|
7243
|
-
dispatch_dev("SvelteRegisterBlock", {
|
|
7244
|
-
block,
|
|
7245
|
-
id: create_else_block_3.name,
|
|
7246
|
-
type: "else",
|
|
7247
|
-
source: "(185:16) {:else}",
|
|
7248
|
-
ctx
|
|
7249
|
-
});
|
|
7250
|
-
|
|
7251
|
-
return block;
|
|
7252
|
-
}
|
|
7253
|
-
|
|
7254
|
-
// (183:16) {#if val.includes('€')}
|
|
7255
|
-
function create_if_block_6(ctx) {
|
|
7256
|
-
let option;
|
|
7257
|
-
let t_value = /*val*/ ctx[42] + "";
|
|
7258
|
-
let t;
|
|
7259
|
-
|
|
7260
|
-
const block = {
|
|
7261
|
-
c: function create() {
|
|
7262
|
-
option = element("option");
|
|
7263
|
-
t = text(t_value);
|
|
7264
|
-
option.selected = true;
|
|
7265
|
-
option.__value = /*val*/ ctx[42];
|
|
7266
|
-
option.value = option.__value;
|
|
7267
|
-
add_location(option, file, 183, 18, 8060);
|
|
7268
|
-
},
|
|
7269
|
-
m: function mount(target, anchor) {
|
|
7270
|
-
insert_dev(target, option, anchor);
|
|
7271
|
-
append_dev(option, t);
|
|
7272
|
-
},
|
|
7273
|
-
p: noop$1,
|
|
7274
|
-
d: function destroy(detaching) {
|
|
7275
|
-
if (detaching) detach_dev(option);
|
|
7276
|
-
}
|
|
7277
|
-
};
|
|
7278
|
-
|
|
7279
|
-
dispatch_dev("SvelteRegisterBlock", {
|
|
7280
|
-
block,
|
|
7281
|
-
id: create_if_block_6.name,
|
|
7282
|
-
type: "if",
|
|
7283
|
-
source: "(183:16) {#if val.includes('€')}",
|
|
7167
|
+
source: "(143:2) {#if mobileView}",
|
|
7284
7168
|
ctx
|
|
7285
7169
|
});
|
|
7286
7170
|
|
|
7287
7171
|
return block;
|
|
7288
7172
|
}
|
|
7289
7173
|
|
|
7290
|
-
// (
|
|
7291
|
-
function
|
|
7292
|
-
let if_block_anchor;
|
|
7293
|
-
|
|
7294
|
-
function select_block_type_3(ctx, dirty) {
|
|
7295
|
-
if (/*val*/ ctx[42].includes("€")) return create_if_block_6;
|
|
7296
|
-
return create_else_block_3;
|
|
7297
|
-
}
|
|
7298
|
-
|
|
7299
|
-
let current_block_type = select_block_type_3(ctx);
|
|
7300
|
-
let if_block = current_block_type(ctx);
|
|
7301
|
-
|
|
7302
|
-
const block = {
|
|
7303
|
-
c: function create() {
|
|
7304
|
-
if_block.c();
|
|
7305
|
-
if_block_anchor = empty();
|
|
7306
|
-
},
|
|
7307
|
-
m: function mount(target, anchor) {
|
|
7308
|
-
if_block.m(target, anchor);
|
|
7309
|
-
insert_dev(target, if_block_anchor, anchor);
|
|
7310
|
-
},
|
|
7311
|
-
p: function update(ctx, dirty) {
|
|
7312
|
-
if_block.p(ctx, dirty);
|
|
7313
|
-
},
|
|
7314
|
-
d: function destroy(detaching) {
|
|
7315
|
-
if_block.d(detaching);
|
|
7316
|
-
if (detaching) detach_dev(if_block_anchor);
|
|
7317
|
-
}
|
|
7318
|
-
};
|
|
7319
|
-
|
|
7320
|
-
dispatch_dev("SvelteRegisterBlock", {
|
|
7321
|
-
block,
|
|
7322
|
-
id: create_each_block_3.name,
|
|
7323
|
-
type: "each",
|
|
7324
|
-
source: "(182:14) {#each balanceArray as val}",
|
|
7325
|
-
ctx
|
|
7326
|
-
});
|
|
7327
|
-
|
|
7328
|
-
return block;
|
|
7329
|
-
}
|
|
7330
|
-
|
|
7331
|
-
// (210:16) {:else}
|
|
7332
|
-
function create_else_block_2(ctx) {
|
|
7174
|
+
// (199:16) {:else}
|
|
7175
|
+
function create_else_block_1(ctx) {
|
|
7333
7176
|
let option;
|
|
7334
|
-
let t_value = /*lang*/ ctx[
|
|
7177
|
+
let t_value = /*lang*/ ctx[50].code + "";
|
|
7335
7178
|
let t;
|
|
7336
7179
|
|
|
7337
7180
|
const block = {
|
|
7338
7181
|
c: function create() {
|
|
7339
7182
|
option = element("option");
|
|
7340
7183
|
t = text(t_value);
|
|
7341
|
-
option.__value = /*lang*/ ctx[
|
|
7184
|
+
option.__value = /*lang*/ ctx[50].code;
|
|
7342
7185
|
option.value = option.__value;
|
|
7343
|
-
add_location(option, file,
|
|
7186
|
+
add_location(option, file, 199, 18, 9370);
|
|
7344
7187
|
},
|
|
7345
7188
|
m: function mount(target, anchor) {
|
|
7346
7189
|
insert_dev(target, option, anchor);
|
|
@@ -7354,29 +7197,28 @@
|
|
|
7354
7197
|
|
|
7355
7198
|
dispatch_dev("SvelteRegisterBlock", {
|
|
7356
7199
|
block,
|
|
7357
|
-
id:
|
|
7200
|
+
id: create_else_block_1.name,
|
|
7358
7201
|
type: "else",
|
|
7359
|
-
source: "(
|
|
7202
|
+
source: "(199:16) {:else}",
|
|
7360
7203
|
ctx
|
|
7361
7204
|
});
|
|
7362
7205
|
|
|
7363
7206
|
return block;
|
|
7364
7207
|
}
|
|
7365
7208
|
|
|
7366
|
-
// (
|
|
7367
|
-
function
|
|
7209
|
+
// (197:16) {#if lang.code === 'EN'}
|
|
7210
|
+
function create_if_block_4(ctx) {
|
|
7368
7211
|
let option;
|
|
7369
|
-
let t_value = /*lang*/ ctx[
|
|
7212
|
+
let t_value = /*lang*/ ctx[50].code + "";
|
|
7370
7213
|
let t;
|
|
7371
7214
|
|
|
7372
7215
|
const block = {
|
|
7373
7216
|
c: function create() {
|
|
7374
7217
|
option = element("option");
|
|
7375
7218
|
t = text(t_value);
|
|
7376
|
-
option.
|
|
7377
|
-
option.__value = /*lang*/ ctx[48];
|
|
7219
|
+
option.__value = /*lang*/ ctx[50].code;
|
|
7378
7220
|
option.value = option.__value;
|
|
7379
|
-
add_location(option, file,
|
|
7221
|
+
add_location(option, file, 197, 18, 9281);
|
|
7380
7222
|
},
|
|
7381
7223
|
m: function mount(target, anchor) {
|
|
7382
7224
|
insert_dev(target, option, anchor);
|
|
@@ -7390,25 +7232,25 @@
|
|
|
7390
7232
|
|
|
7391
7233
|
dispatch_dev("SvelteRegisterBlock", {
|
|
7392
7234
|
block,
|
|
7393
|
-
id:
|
|
7235
|
+
id: create_if_block_4.name,
|
|
7394
7236
|
type: "if",
|
|
7395
|
-
source: "(
|
|
7237
|
+
source: "(197:16) {#if lang.code === 'EN'}",
|
|
7396
7238
|
ctx
|
|
7397
7239
|
});
|
|
7398
7240
|
|
|
7399
7241
|
return block;
|
|
7400
7242
|
}
|
|
7401
7243
|
|
|
7402
|
-
// (
|
|
7403
|
-
function
|
|
7244
|
+
// (196:14) {#each languagesArray as lang}
|
|
7245
|
+
function create_each_block_1(ctx) {
|
|
7404
7246
|
let if_block_anchor;
|
|
7405
7247
|
|
|
7406
|
-
function
|
|
7407
|
-
if (/*lang*/ ctx[
|
|
7408
|
-
return
|
|
7248
|
+
function select_block_type_2(ctx, dirty) {
|
|
7249
|
+
if (/*lang*/ ctx[50].code === "EN") return create_if_block_4;
|
|
7250
|
+
return create_else_block_1;
|
|
7409
7251
|
}
|
|
7410
7252
|
|
|
7411
|
-
let current_block_type =
|
|
7253
|
+
let current_block_type = select_block_type_2(ctx);
|
|
7412
7254
|
let if_block = current_block_type(ctx);
|
|
7413
7255
|
|
|
7414
7256
|
const block = {
|
|
@@ -7431,20 +7273,20 @@
|
|
|
7431
7273
|
|
|
7432
7274
|
dispatch_dev("SvelteRegisterBlock", {
|
|
7433
7275
|
block,
|
|
7434
|
-
id:
|
|
7276
|
+
id: create_each_block_1.name,
|
|
7435
7277
|
type: "each",
|
|
7436
|
-
source: "(
|
|
7278
|
+
source: "(196:14) {#each languagesArray as lang}",
|
|
7437
7279
|
ctx
|
|
7438
7280
|
});
|
|
7439
7281
|
|
|
7440
7282
|
return block;
|
|
7441
7283
|
}
|
|
7442
7284
|
|
|
7443
|
-
// (
|
|
7444
|
-
function
|
|
7285
|
+
// (209:10) {#each secondaryMenuArray as secondaryItem}
|
|
7286
|
+
function create_each_block(ctx) {
|
|
7445
7287
|
let li;
|
|
7446
7288
|
let a;
|
|
7447
|
-
let t_value = /*secondaryItem*/ ctx[
|
|
7289
|
+
let t_value = /*secondaryItem*/ ctx[47].label + "";
|
|
7448
7290
|
let t;
|
|
7449
7291
|
let a_href_value;
|
|
7450
7292
|
|
|
@@ -7453,10 +7295,10 @@
|
|
|
7453
7295
|
li = element("li");
|
|
7454
7296
|
a = element("a");
|
|
7455
7297
|
t = text(t_value);
|
|
7456
|
-
attr_dev(a, "href", a_href_value = /*secondaryItem*/ ctx[
|
|
7457
|
-
add_location(a, file,
|
|
7298
|
+
attr_dev(a, "href", a_href_value = /*secondaryItem*/ ctx[47].path);
|
|
7299
|
+
add_location(a, file, 209, 38, 9705);
|
|
7458
7300
|
attr_dev(li, "class", "ItemSecondary");
|
|
7459
|
-
add_location(li, file,
|
|
7301
|
+
add_location(li, file, 209, 12, 9679);
|
|
7460
7302
|
},
|
|
7461
7303
|
m: function mount(target, anchor) {
|
|
7462
7304
|
insert_dev(target, li, anchor);
|
|
@@ -7464,9 +7306,9 @@
|
|
|
7464
7306
|
append_dev(a, t);
|
|
7465
7307
|
},
|
|
7466
7308
|
p: function update(ctx, dirty) {
|
|
7467
|
-
if (dirty[0] & /*secondaryMenuArray*/
|
|
7309
|
+
if (dirty[0] & /*secondaryMenuArray*/ 8 && t_value !== (t_value = /*secondaryItem*/ ctx[47].label + "")) set_data_dev(t, t_value);
|
|
7468
7310
|
|
|
7469
|
-
if (dirty[0] & /*secondaryMenuArray*/
|
|
7311
|
+
if (dirty[0] & /*secondaryMenuArray*/ 8 && a_href_value !== (a_href_value = /*secondaryItem*/ ctx[47].path)) {
|
|
7470
7312
|
attr_dev(a, "href", a_href_value);
|
|
7471
7313
|
}
|
|
7472
7314
|
},
|
|
@@ -7477,17 +7319,17 @@
|
|
|
7477
7319
|
|
|
7478
7320
|
dispatch_dev("SvelteRegisterBlock", {
|
|
7479
7321
|
block,
|
|
7480
|
-
id:
|
|
7322
|
+
id: create_each_block.name,
|
|
7481
7323
|
type: "each",
|
|
7482
|
-
source: "(
|
|
7324
|
+
source: "(209:10) {#each secondaryMenuArray as secondaryItem}",
|
|
7483
7325
|
ctx
|
|
7484
7326
|
});
|
|
7485
7327
|
|
|
7486
7328
|
return block;
|
|
7487
7329
|
}
|
|
7488
7330
|
|
|
7489
|
-
// (
|
|
7490
|
-
function
|
|
7331
|
+
// (147:10) {#if !hamburgerMenuActive}
|
|
7332
|
+
function create_if_block_3(ctx) {
|
|
7491
7333
|
let svg;
|
|
7492
7334
|
let defs;
|
|
7493
7335
|
let style;
|
|
@@ -7509,30 +7351,30 @@
|
|
|
7509
7351
|
rect0 = svg_element("rect");
|
|
7510
7352
|
rect1 = svg_element("rect");
|
|
7511
7353
|
rect2 = svg_element("rect");
|
|
7512
|
-
add_location(style, file,
|
|
7513
|
-
add_location(defs, file,
|
|
7354
|
+
add_location(style, file, 147, 129, 6046);
|
|
7355
|
+
add_location(defs, file, 147, 123, 6040);
|
|
7514
7356
|
attr_dev(rect0, "class", "a");
|
|
7515
7357
|
attr_dev(rect0, "width", "18");
|
|
7516
7358
|
attr_dev(rect0, "height", "2");
|
|
7517
7359
|
attr_dev(rect0, "transform", "translate(14 13)");
|
|
7518
|
-
add_location(rect0, file,
|
|
7360
|
+
add_location(rect0, file, 147, 199, 6116);
|
|
7519
7361
|
attr_dev(rect1, "class", "a");
|
|
7520
7362
|
attr_dev(rect1, "width", "22");
|
|
7521
7363
|
attr_dev(rect1, "height", "2");
|
|
7522
7364
|
attr_dev(rect1, "transform", "translate(14 20)");
|
|
7523
|
-
add_location(rect1, file,
|
|
7365
|
+
add_location(rect1, file, 147, 267, 6184);
|
|
7524
7366
|
attr_dev(rect2, "class", "a");
|
|
7525
7367
|
attr_dev(rect2, "width", "22");
|
|
7526
7368
|
attr_dev(rect2, "height", "2");
|
|
7527
7369
|
attr_dev(rect2, "transform", "translate(14 27)");
|
|
7528
|
-
add_location(rect2, file,
|
|
7370
|
+
add_location(rect2, file, 147, 335, 6252);
|
|
7529
7371
|
attr_dev(g, "transform", "translate(-14 -13)");
|
|
7530
|
-
add_location(g, file,
|
|
7372
|
+
add_location(g, file, 147, 165, 6082);
|
|
7531
7373
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
7532
7374
|
attr_dev(svg, "width", "22");
|
|
7533
7375
|
attr_dev(svg, "height", "16");
|
|
7534
7376
|
attr_dev(svg, "viewBox", "0 0 22 16");
|
|
7535
|
-
add_location(svg, file,
|
|
7377
|
+
add_location(svg, file, 147, 12, 5929);
|
|
7536
7378
|
},
|
|
7537
7379
|
m: function mount(target, anchor) {
|
|
7538
7380
|
insert_dev(target, svg, anchor);
|
|
@@ -7545,7 +7387,7 @@
|
|
|
7545
7387
|
append_dev(g, rect2);
|
|
7546
7388
|
|
|
7547
7389
|
if (!mounted) {
|
|
7548
|
-
dispose = listen_dev(svg, "click", /*click_handler*/ ctx[
|
|
7390
|
+
dispose = listen_dev(svg, "click", /*click_handler*/ ctx[17], false, false, false);
|
|
7549
7391
|
mounted = true;
|
|
7550
7392
|
}
|
|
7551
7393
|
},
|
|
@@ -7557,130 +7399,18 @@
|
|
|
7557
7399
|
}
|
|
7558
7400
|
};
|
|
7559
7401
|
|
|
7560
|
-
dispatch_dev("SvelteRegisterBlock", {
|
|
7561
|
-
block,
|
|
7562
|
-
id: create_if_block_4.name,
|
|
7563
|
-
type: "if",
|
|
7564
|
-
source: "(142:10) {#if !hamburgerMenuActive}",
|
|
7565
|
-
ctx
|
|
7566
|
-
});
|
|
7567
|
-
|
|
7568
|
-
return block;
|
|
7569
|
-
}
|
|
7570
|
-
|
|
7571
|
-
// (156:16) {:else}
|
|
7572
|
-
function create_else_block(ctx) {
|
|
7573
|
-
let option;
|
|
7574
|
-
let t_value = /*val*/ ctx[42] + "";
|
|
7575
|
-
let t;
|
|
7576
|
-
|
|
7577
|
-
const block = {
|
|
7578
|
-
c: function create() {
|
|
7579
|
-
option = element("option");
|
|
7580
|
-
t = text(t_value);
|
|
7581
|
-
option.__value = /*val*/ ctx[42];
|
|
7582
|
-
option.value = option.__value;
|
|
7583
|
-
add_location(option, file, 156, 18, 6497);
|
|
7584
|
-
},
|
|
7585
|
-
m: function mount(target, anchor) {
|
|
7586
|
-
insert_dev(target, option, anchor);
|
|
7587
|
-
append_dev(option, t);
|
|
7588
|
-
},
|
|
7589
|
-
p: noop$1,
|
|
7590
|
-
d: function destroy(detaching) {
|
|
7591
|
-
if (detaching) detach_dev(option);
|
|
7592
|
-
}
|
|
7593
|
-
};
|
|
7594
|
-
|
|
7595
|
-
dispatch_dev("SvelteRegisterBlock", {
|
|
7596
|
-
block,
|
|
7597
|
-
id: create_else_block.name,
|
|
7598
|
-
type: "else",
|
|
7599
|
-
source: "(156:16) {:else}",
|
|
7600
|
-
ctx
|
|
7601
|
-
});
|
|
7602
|
-
|
|
7603
|
-
return block;
|
|
7604
|
-
}
|
|
7605
|
-
|
|
7606
|
-
// (154:16) {#if val.includes('€')}
|
|
7607
|
-
function create_if_block_3(ctx) {
|
|
7608
|
-
let option;
|
|
7609
|
-
let t_value = /*val*/ ctx[42] + "";
|
|
7610
|
-
let t;
|
|
7611
|
-
|
|
7612
|
-
const block = {
|
|
7613
|
-
c: function create() {
|
|
7614
|
-
option = element("option");
|
|
7615
|
-
t = text(t_value);
|
|
7616
|
-
option.selected = true;
|
|
7617
|
-
option.__value = /*val*/ ctx[42];
|
|
7618
|
-
option.value = option.__value;
|
|
7619
|
-
add_location(option, file, 154, 18, 6423);
|
|
7620
|
-
},
|
|
7621
|
-
m: function mount(target, anchor) {
|
|
7622
|
-
insert_dev(target, option, anchor);
|
|
7623
|
-
append_dev(option, t);
|
|
7624
|
-
},
|
|
7625
|
-
p: noop$1,
|
|
7626
|
-
d: function destroy(detaching) {
|
|
7627
|
-
if (detaching) detach_dev(option);
|
|
7628
|
-
}
|
|
7629
|
-
};
|
|
7630
|
-
|
|
7631
7402
|
dispatch_dev("SvelteRegisterBlock", {
|
|
7632
7403
|
block,
|
|
7633
7404
|
id: create_if_block_3.name,
|
|
7634
7405
|
type: "if",
|
|
7635
|
-
source: "(
|
|
7636
|
-
ctx
|
|
7637
|
-
});
|
|
7638
|
-
|
|
7639
|
-
return block;
|
|
7640
|
-
}
|
|
7641
|
-
|
|
7642
|
-
// (153:14) {#each balanceArray as val}
|
|
7643
|
-
function create_each_block(ctx) {
|
|
7644
|
-
let if_block_anchor;
|
|
7645
|
-
|
|
7646
|
-
function select_block_type_2(ctx, dirty) {
|
|
7647
|
-
if (/*val*/ ctx[42].includes("€")) return create_if_block_3;
|
|
7648
|
-
return create_else_block;
|
|
7649
|
-
}
|
|
7650
|
-
|
|
7651
|
-
let current_block_type = select_block_type_2(ctx);
|
|
7652
|
-
let if_block = current_block_type(ctx);
|
|
7653
|
-
|
|
7654
|
-
const block = {
|
|
7655
|
-
c: function create() {
|
|
7656
|
-
if_block.c();
|
|
7657
|
-
if_block_anchor = empty();
|
|
7658
|
-
},
|
|
7659
|
-
m: function mount(target, anchor) {
|
|
7660
|
-
if_block.m(target, anchor);
|
|
7661
|
-
insert_dev(target, if_block_anchor, anchor);
|
|
7662
|
-
},
|
|
7663
|
-
p: function update(ctx, dirty) {
|
|
7664
|
-
if_block.p(ctx, dirty);
|
|
7665
|
-
},
|
|
7666
|
-
d: function destroy(detaching) {
|
|
7667
|
-
if_block.d(detaching);
|
|
7668
|
-
if (detaching) detach_dev(if_block_anchor);
|
|
7669
|
-
}
|
|
7670
|
-
};
|
|
7671
|
-
|
|
7672
|
-
dispatch_dev("SvelteRegisterBlock", {
|
|
7673
|
-
block,
|
|
7674
|
-
id: create_each_block.name,
|
|
7675
|
-
type: "each",
|
|
7676
|
-
source: "(153:14) {#each balanceArray as val}",
|
|
7406
|
+
source: "(147:10) {#if !hamburgerMenuActive}",
|
|
7677
7407
|
ctx
|
|
7678
7408
|
});
|
|
7679
7409
|
|
|
7680
7410
|
return block;
|
|
7681
7411
|
}
|
|
7682
7412
|
|
|
7683
|
-
// (
|
|
7413
|
+
// (272:0) {#if !mobileView}
|
|
7684
7414
|
function create_if_block(ctx) {
|
|
7685
7415
|
let div;
|
|
7686
7416
|
let div_class_value;
|
|
@@ -7688,15 +7418,15 @@
|
|
|
7688
7418
|
const block = {
|
|
7689
7419
|
c: function create() {
|
|
7690
7420
|
div = element("div");
|
|
7691
|
-
attr_dev(div, "class", div_class_value = "HeaderSlider " + (/*mobileView*/ ctx[
|
|
7421
|
+
attr_dev(div, "class", div_class_value = "HeaderSlider " + (/*mobileView*/ ctx[5] ? "HeaderSliderMobile" : ""));
|
|
7692
7422
|
set_style(div, "background-image", "url(" + img + ")");
|
|
7693
|
-
add_location(div, file,
|
|
7423
|
+
add_location(div, file, 272, 2, 12351);
|
|
7694
7424
|
},
|
|
7695
7425
|
m: function mount(target, anchor) {
|
|
7696
7426
|
insert_dev(target, div, anchor);
|
|
7697
7427
|
},
|
|
7698
7428
|
p: function update(ctx, dirty) {
|
|
7699
|
-
if (dirty[0] & /*mobileView*/
|
|
7429
|
+
if (dirty[0] & /*mobileView*/ 32 && div_class_value !== (div_class_value = "HeaderSlider " + (/*mobileView*/ ctx[5] ? "HeaderSliderMobile" : ""))) {
|
|
7700
7430
|
attr_dev(div, "class", div_class_value);
|
|
7701
7431
|
}
|
|
7702
7432
|
},
|
|
@@ -7709,7 +7439,7 @@
|
|
|
7709
7439
|
block,
|
|
7710
7440
|
id: create_if_block.name,
|
|
7711
7441
|
type: "if",
|
|
7712
|
-
source: "(
|
|
7442
|
+
source: "(272:0) {#if !mobileView}",
|
|
7713
7443
|
ctx
|
|
7714
7444
|
});
|
|
7715
7445
|
|
|
@@ -7722,14 +7452,14 @@
|
|
|
7722
7452
|
let casino_hamburger_menu;
|
|
7723
7453
|
|
|
7724
7454
|
function select_block_type(ctx, dirty) {
|
|
7725
|
-
if (/*isLoggedIn*/ ctx[
|
|
7726
|
-
if (/*mobileView*/ ctx[
|
|
7727
|
-
return
|
|
7455
|
+
if (/*isLoggedIn*/ ctx[6]) return create_if_block_1;
|
|
7456
|
+
if (/*mobileView*/ ctx[5]) return create_if_block_5;
|
|
7457
|
+
return create_else_block_2;
|
|
7728
7458
|
}
|
|
7729
7459
|
|
|
7730
7460
|
let current_block_type = select_block_type(ctx);
|
|
7731
7461
|
let if_block0 = current_block_type(ctx);
|
|
7732
|
-
let if_block1 = !/*mobileView*/ ctx[
|
|
7462
|
+
let if_block1 = !/*mobileView*/ ctx[5] && create_if_block(ctx);
|
|
7733
7463
|
|
|
7734
7464
|
const block = {
|
|
7735
7465
|
c: function create() {
|
|
@@ -7740,8 +7470,8 @@
|
|
|
7740
7470
|
casino_hamburger_menu = element("casino-hamburger-menu");
|
|
7741
7471
|
this.c = noop$1;
|
|
7742
7472
|
set_custom_element_data(casino_hamburger_menu, "menuitemsurl", /*cmshamburgermenuurl*/ ctx[0]);
|
|
7743
|
-
set_custom_element_data(casino_hamburger_menu, "language", /*language*/ ctx[
|
|
7744
|
-
add_location(casino_hamburger_menu, file,
|
|
7473
|
+
set_custom_element_data(casino_hamburger_menu, "language", /*language*/ ctx[11]);
|
|
7474
|
+
add_location(casino_hamburger_menu, file, 275, 0, 12488);
|
|
7745
7475
|
},
|
|
7746
7476
|
l: function claim(nodes) {
|
|
7747
7477
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -7766,7 +7496,7 @@
|
|
|
7766
7496
|
}
|
|
7767
7497
|
}
|
|
7768
7498
|
|
|
7769
|
-
if (!/*mobileView*/ ctx[
|
|
7499
|
+
if (!/*mobileView*/ ctx[5]) {
|
|
7770
7500
|
if (if_block1) {
|
|
7771
7501
|
if_block1.p(ctx, dirty);
|
|
7772
7502
|
} else {
|
|
@@ -7849,6 +7579,7 @@
|
|
|
7849
7579
|
let { userid = "" } = $$props;
|
|
7850
7580
|
let { cmsmenuurl = "" } = $$props;
|
|
7851
7581
|
let { cmshamburgermenuurl = "" } = $$props;
|
|
7582
|
+
let { profileurl = "" } = $$props;
|
|
7852
7583
|
|
|
7853
7584
|
const genericIcon = `<svg version="1.1" fill="#fff" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="width: 30px; color: #fff;" x="0px" y="0px"
|
|
7854
7585
|
viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;" xml:space="preserve">
|
|
@@ -7862,8 +7593,20 @@
|
|
|
7862
7593
|
|
|
7863
7594
|
let mainMenuArray = [];
|
|
7864
7595
|
let secondaryMenuArray = [];
|
|
7865
|
-
|
|
7866
|
-
let
|
|
7596
|
+
|
|
7597
|
+
let languagesArray = [
|
|
7598
|
+
{ code: "EN" },
|
|
7599
|
+
{ code: "DE" },
|
|
7600
|
+
{ code: "HR" },
|
|
7601
|
+
{ code: "HU" },
|
|
7602
|
+
{ code: "IT" },
|
|
7603
|
+
{ code: "PL" },
|
|
7604
|
+
{ code: "PT" },
|
|
7605
|
+
{ code: "SL" },
|
|
7606
|
+
{ code: "SR" }
|
|
7607
|
+
];
|
|
7608
|
+
|
|
7609
|
+
let selectedLanguage = "";
|
|
7867
7610
|
let mobileView = false;
|
|
7868
7611
|
let userAgent = window.navigator.userAgent;
|
|
7869
7612
|
let isLoggedIn = false;
|
|
@@ -7876,6 +7619,11 @@
|
|
|
7876
7619
|
// const mediaQuery = window.matchMedia('(min-width: 768px)');
|
|
7877
7620
|
let hamburgerMenuActive = false;
|
|
7878
7621
|
|
|
7622
|
+
let totalBalance = "";
|
|
7623
|
+
let cashBalance = "";
|
|
7624
|
+
let bonusBalance = "";
|
|
7625
|
+
let currency = "";
|
|
7626
|
+
|
|
7879
7627
|
const menuAction = data => {
|
|
7880
7628
|
switch (data) {
|
|
7881
7629
|
case "login":
|
|
@@ -7902,9 +7650,8 @@
|
|
|
7902
7650
|
break;
|
|
7903
7651
|
case "lobby":
|
|
7904
7652
|
console.log("lobby");
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
console.log("balance");
|
|
7653
|
+
// move this inline if no other logic is added here
|
|
7654
|
+
location.reload();
|
|
7908
7655
|
break;
|
|
7909
7656
|
case "myaccount":
|
|
7910
7657
|
console.log("myaccount");
|
|
@@ -7914,13 +7661,19 @@
|
|
|
7914
7661
|
console.log("deposit");
|
|
7915
7662
|
break;
|
|
7916
7663
|
case "language":
|
|
7917
|
-
|
|
7664
|
+
window.postMessage(
|
|
7665
|
+
{
|
|
7666
|
+
type: "LanguageChanged",
|
|
7667
|
+
selectedLanguage
|
|
7668
|
+
},
|
|
7669
|
+
window.location.href
|
|
7670
|
+
);
|
|
7918
7671
|
break;
|
|
7919
7672
|
}
|
|
7920
7673
|
};
|
|
7921
7674
|
|
|
7922
7675
|
const toggleMenu = () => {
|
|
7923
|
-
$$invalidate(
|
|
7676
|
+
$$invalidate(9, hamburgerMenuActive = true);
|
|
7924
7677
|
window.postMessage({ type: "OpenHamburgerMenuModal" }, window.location.href);
|
|
7925
7678
|
};
|
|
7926
7679
|
|
|
@@ -7928,25 +7681,25 @@
|
|
|
7928
7681
|
if (e.data) {
|
|
7929
7682
|
switch (e.data.type) {
|
|
7930
7683
|
case "UserSessionID":
|
|
7931
|
-
playerID = e.data.userid;
|
|
7932
|
-
sessionID = e.data.session;
|
|
7933
|
-
$$invalidate(
|
|
7684
|
+
$$invalidate(7, playerID = e.data.userid);
|
|
7685
|
+
$$invalidate(8, sessionID = e.data.session);
|
|
7686
|
+
$$invalidate(6, isLoggedIn = true);
|
|
7934
7687
|
break;
|
|
7935
7688
|
case "CloseHamburgerMenu":
|
|
7936
7689
|
if (e.data.showhamburger) {
|
|
7937
|
-
$$invalidate(
|
|
7690
|
+
$$invalidate(9, hamburgerMenuActive = false);
|
|
7938
7691
|
}
|
|
7939
7692
|
break;
|
|
7940
7693
|
case "LogoutSuccessfull":
|
|
7941
|
-
$$invalidate(
|
|
7694
|
+
$$invalidate(6, isLoggedIn = false);
|
|
7942
7695
|
break;
|
|
7943
7696
|
}
|
|
7944
7697
|
}
|
|
7945
7698
|
};
|
|
7946
7699
|
|
|
7947
7700
|
const setSession = () => {
|
|
7948
|
-
$$invalidate(
|
|
7949
|
-
sessionID = session;
|
|
7701
|
+
$$invalidate(6, isLoggedIn = true);
|
|
7702
|
+
$$invalidate(8, sessionID = session);
|
|
7950
7703
|
};
|
|
7951
7704
|
|
|
7952
7705
|
const initialLoad = () => {
|
|
@@ -7959,8 +7712,8 @@
|
|
|
7959
7712
|
return res.json();
|
|
7960
7713
|
}).then(
|
|
7961
7714
|
data => {
|
|
7962
|
-
$$invalidate(
|
|
7963
|
-
$$invalidate(
|
|
7715
|
+
$$invalidate(2, mainMenuArray = data.desktop.primary);
|
|
7716
|
+
$$invalidate(3, secondaryMenuArray = data.desktop.secondary);
|
|
7964
7717
|
resolve(data);
|
|
7965
7718
|
},
|
|
7966
7719
|
err => {
|
|
@@ -7975,7 +7728,7 @@
|
|
|
7975
7728
|
window.addEventListener("message", messageHandler, false);
|
|
7976
7729
|
|
|
7977
7730
|
if (isMobile(userAgent)) {
|
|
7978
|
-
$$invalidate(
|
|
7731
|
+
$$invalidate(5, mobileView = true);
|
|
7979
7732
|
}
|
|
7980
7733
|
|
|
7981
7734
|
return () => {
|
|
@@ -7983,7 +7736,7 @@
|
|
|
7983
7736
|
};
|
|
7984
7737
|
}));
|
|
7985
7738
|
|
|
7986
|
-
const writable_props = ["session", "userid", "cmsmenuurl", "cmshamburgermenuurl"];
|
|
7739
|
+
const writable_props = ["session", "userid", "cmsmenuurl", "cmshamburgermenuurl", "profileurl"];
|
|
7987
7740
|
|
|
7988
7741
|
Object.keys($$props).forEach(key => {
|
|
7989
7742
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console_1.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
@@ -7991,14 +7744,19 @@
|
|
|
7991
7744
|
|
|
7992
7745
|
const click_handler = () => toggleMenu();
|
|
7993
7746
|
const click_handler_1 = () => menuAction("lobby");
|
|
7994
|
-
const change_handler = () => menuAction("balance");
|
|
7995
7747
|
const click_handler_2 = () => menuAction("deposit");
|
|
7996
7748
|
const click_handler_3 = () => menuAction("myaccount");
|
|
7997
7749
|
const click_handler_4 = () => menuAction("lobby");
|
|
7998
|
-
const change_handler_1 = () => menuAction("balance");
|
|
7999
7750
|
const click_handler_5 = () => menuAction("deposit");
|
|
8000
7751
|
const click_handler_6 = () => menuAction("myaccount");
|
|
8001
|
-
|
|
7752
|
+
|
|
7753
|
+
function select_change_handler() {
|
|
7754
|
+
selectedLanguage = select_value(this);
|
|
7755
|
+
$$invalidate(4, selectedLanguage);
|
|
7756
|
+
$$invalidate(10, languagesArray);
|
|
7757
|
+
}
|
|
7758
|
+
|
|
7759
|
+
const change_handler = () => menuAction("language");
|
|
8002
7760
|
const click_handler_7 = () => toggleMenu();
|
|
8003
7761
|
const click_handler_8 = () => menuAction("lobby");
|
|
8004
7762
|
const click_handler_9 = () => menuAction("login");
|
|
@@ -8006,13 +7764,21 @@
|
|
|
8006
7764
|
const click_handler_11 = () => menuAction("lobby");
|
|
8007
7765
|
const click_handler_12 = () => menuAction("login");
|
|
8008
7766
|
const click_handler_13 = () => menuAction("register");
|
|
8009
|
-
|
|
7767
|
+
|
|
7768
|
+
function select_change_handler_1() {
|
|
7769
|
+
selectedLanguage = select_value(this);
|
|
7770
|
+
$$invalidate(4, selectedLanguage);
|
|
7771
|
+
$$invalidate(10, languagesArray);
|
|
7772
|
+
}
|
|
7773
|
+
|
|
7774
|
+
const change_handler_1 = () => menuAction("language");
|
|
8010
7775
|
|
|
8011
7776
|
$$self.$$set = $$props => {
|
|
8012
|
-
if ("session" in $$props) $$invalidate(
|
|
8013
|
-
if ("userid" in $$props) $$invalidate(
|
|
8014
|
-
if ("cmsmenuurl" in $$props) $$invalidate(
|
|
7777
|
+
if ("session" in $$props) $$invalidate(14, session = $$props.session);
|
|
7778
|
+
if ("userid" in $$props) $$invalidate(15, userid = $$props.userid);
|
|
7779
|
+
if ("cmsmenuurl" in $$props) $$invalidate(16, cmsmenuurl = $$props.cmsmenuurl);
|
|
8015
7780
|
if ("cmshamburgermenuurl" in $$props) $$invalidate(0, cmshamburgermenuurl = $$props.cmshamburgermenuurl);
|
|
7781
|
+
if ("profileurl" in $$props) $$invalidate(1, profileurl = $$props.profileurl);
|
|
8016
7782
|
};
|
|
8017
7783
|
|
|
8018
7784
|
$$self.$capture_state = () => ({
|
|
@@ -8025,11 +7791,12 @@
|
|
|
8025
7791
|
userid,
|
|
8026
7792
|
cmsmenuurl,
|
|
8027
7793
|
cmshamburgermenuurl,
|
|
7794
|
+
profileurl,
|
|
8028
7795
|
genericIcon,
|
|
8029
7796
|
mainMenuArray,
|
|
8030
7797
|
secondaryMenuArray,
|
|
8031
7798
|
languagesArray,
|
|
8032
|
-
|
|
7799
|
+
selectedLanguage,
|
|
8033
7800
|
mobileView,
|
|
8034
7801
|
userAgent,
|
|
8035
7802
|
isLoggedIn,
|
|
@@ -8038,6 +7805,10 @@
|
|
|
8038
7805
|
loginActive,
|
|
8039
7806
|
language,
|
|
8040
7807
|
hamburgerMenuActive,
|
|
7808
|
+
totalBalance,
|
|
7809
|
+
cashBalance,
|
|
7810
|
+
bonusBalance,
|
|
7811
|
+
currency,
|
|
8041
7812
|
menuAction,
|
|
8042
7813
|
toggleMenu,
|
|
8043
7814
|
messageHandler,
|
|
@@ -8048,22 +7819,27 @@
|
|
|
8048
7819
|
|
|
8049
7820
|
$$self.$inject_state = $$props => {
|
|
8050
7821
|
if ("__awaiter" in $$props) __awaiter = $$props.__awaiter;
|
|
8051
|
-
if ("session" in $$props) $$invalidate(
|
|
8052
|
-
if ("userid" in $$props) $$invalidate(
|
|
8053
|
-
if ("cmsmenuurl" in $$props) $$invalidate(
|
|
7822
|
+
if ("session" in $$props) $$invalidate(14, session = $$props.session);
|
|
7823
|
+
if ("userid" in $$props) $$invalidate(15, userid = $$props.userid);
|
|
7824
|
+
if ("cmsmenuurl" in $$props) $$invalidate(16, cmsmenuurl = $$props.cmsmenuurl);
|
|
8054
7825
|
if ("cmshamburgermenuurl" in $$props) $$invalidate(0, cmshamburgermenuurl = $$props.cmshamburgermenuurl);
|
|
8055
|
-
if ("
|
|
8056
|
-
if ("
|
|
8057
|
-
if ("
|
|
8058
|
-
if ("
|
|
8059
|
-
if ("
|
|
7826
|
+
if ("profileurl" in $$props) $$invalidate(1, profileurl = $$props.profileurl);
|
|
7827
|
+
if ("mainMenuArray" in $$props) $$invalidate(2, mainMenuArray = $$props.mainMenuArray);
|
|
7828
|
+
if ("secondaryMenuArray" in $$props) $$invalidate(3, secondaryMenuArray = $$props.secondaryMenuArray);
|
|
7829
|
+
if ("languagesArray" in $$props) $$invalidate(10, languagesArray = $$props.languagesArray);
|
|
7830
|
+
if ("selectedLanguage" in $$props) $$invalidate(4, selectedLanguage = $$props.selectedLanguage);
|
|
7831
|
+
if ("mobileView" in $$props) $$invalidate(5, mobileView = $$props.mobileView);
|
|
8060
7832
|
if ("userAgent" in $$props) userAgent = $$props.userAgent;
|
|
8061
|
-
if ("isLoggedIn" in $$props) $$invalidate(
|
|
8062
|
-
if ("playerID" in $$props) playerID = $$props.playerID;
|
|
8063
|
-
if ("sessionID" in $$props) sessionID = $$props.sessionID;
|
|
7833
|
+
if ("isLoggedIn" in $$props) $$invalidate(6, isLoggedIn = $$props.isLoggedIn);
|
|
7834
|
+
if ("playerID" in $$props) $$invalidate(7, playerID = $$props.playerID);
|
|
7835
|
+
if ("sessionID" in $$props) $$invalidate(8, sessionID = $$props.sessionID);
|
|
8064
7836
|
if ("loginActive" in $$props) loginActive = $$props.loginActive;
|
|
8065
|
-
if ("language" in $$props) $$invalidate(
|
|
8066
|
-
if ("hamburgerMenuActive" in $$props) $$invalidate(
|
|
7837
|
+
if ("language" in $$props) $$invalidate(11, language = $$props.language);
|
|
7838
|
+
if ("hamburgerMenuActive" in $$props) $$invalidate(9, hamburgerMenuActive = $$props.hamburgerMenuActive);
|
|
7839
|
+
if ("totalBalance" in $$props) totalBalance = $$props.totalBalance;
|
|
7840
|
+
if ("cashBalance" in $$props) cashBalance = $$props.cashBalance;
|
|
7841
|
+
if ("bonusBalance" in $$props) bonusBalance = $$props.bonusBalance;
|
|
7842
|
+
if ("currency" in $$props) currency = $$props.currency;
|
|
8067
7843
|
};
|
|
8068
7844
|
|
|
8069
7845
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -8071,24 +7847,27 @@
|
|
|
8071
7847
|
}
|
|
8072
7848
|
|
|
8073
7849
|
$$self.$$.update = () => {
|
|
8074
|
-
if ($$self.$$.dirty[0] & /*session*/
|
|
7850
|
+
if ($$self.$$.dirty[0] & /*session*/ 16384) {
|
|
8075
7851
|
session && setSession();
|
|
8076
7852
|
}
|
|
8077
7853
|
|
|
8078
|
-
if ($$self.$$.dirty[0] & /*cmsmenuurl, cmshamburgermenuurl*/
|
|
8079
|
-
cmsmenuurl && cmshamburgermenuurl && initialLoad();
|
|
7854
|
+
if ($$self.$$.dirty[0] & /*cmsmenuurl, cmshamburgermenuurl, profileurl*/ 65539) {
|
|
7855
|
+
cmsmenuurl && cmshamburgermenuurl && profileurl && initialLoad();
|
|
8080
7856
|
}
|
|
8081
7857
|
};
|
|
8082
7858
|
|
|
8083
7859
|
return [
|
|
8084
7860
|
cmshamburgermenuurl,
|
|
7861
|
+
profileurl,
|
|
8085
7862
|
mainMenuArray,
|
|
8086
7863
|
secondaryMenuArray,
|
|
7864
|
+
selectedLanguage,
|
|
8087
7865
|
mobileView,
|
|
8088
7866
|
isLoggedIn,
|
|
7867
|
+
playerID,
|
|
7868
|
+
sessionID,
|
|
8089
7869
|
hamburgerMenuActive,
|
|
8090
7870
|
languagesArray,
|
|
8091
|
-
balanceArray,
|
|
8092
7871
|
language,
|
|
8093
7872
|
menuAction,
|
|
8094
7873
|
toggleMenu,
|
|
@@ -8097,14 +7876,13 @@
|
|
|
8097
7876
|
cmsmenuurl,
|
|
8098
7877
|
click_handler,
|
|
8099
7878
|
click_handler_1,
|
|
8100
|
-
change_handler,
|
|
8101
7879
|
click_handler_2,
|
|
8102
7880
|
click_handler_3,
|
|
8103
7881
|
click_handler_4,
|
|
8104
|
-
change_handler_1,
|
|
8105
7882
|
click_handler_5,
|
|
8106
7883
|
click_handler_6,
|
|
8107
|
-
|
|
7884
|
+
select_change_handler,
|
|
7885
|
+
change_handler,
|
|
8108
7886
|
click_handler_7,
|
|
8109
7887
|
click_handler_8,
|
|
8110
7888
|
click_handler_9,
|
|
@@ -8112,14 +7890,15 @@
|
|
|
8112
7890
|
click_handler_11,
|
|
8113
7891
|
click_handler_12,
|
|
8114
7892
|
click_handler_13,
|
|
8115
|
-
|
|
7893
|
+
select_change_handler_1,
|
|
7894
|
+
change_handler_1
|
|
8116
7895
|
];
|
|
8117
7896
|
}
|
|
8118
7897
|
|
|
8119
7898
|
class CasinoHeaderController extends SvelteElement {
|
|
8120
7899
|
constructor(options) {
|
|
8121
7900
|
super();
|
|
8122
|
-
this.shadowRoot.innerHTML = `<style>.HeaderSlider{width:100%;height:400px}.HeaderWrapper{background:#050518}.HeaderContainer{max-width:1280px;display:flex;flex-direction:row;align-items:center;height:84px;margin:0 auto}.HeaderBranding{width:150px}.HeaderMainNav{text-align:left}.HeaderTopActions{text-align:right;margin-left:auto}.HeaderSecondaryNav{flex-direction:row;width:100%;background:#050518;border-top:1px solid #58586B}.HeaderItemsMenu{display:flex;align-content:flex-start;list-style:none;text-transform:uppercase;color:#FFF;font-size:16px;align-items:center}.HeaderItemsMenu .Item{padding:0 15px;display:flex;align-items:center}.HeaderItemsMenu.PrimaryMenu{gap:10px}.ItemLogin{border-radius:5px;background:transparent;font-size:14px;border:solid 1px #FFF;height:44px;text-align:center;line-height:44px;margin-right:20px;cursor:pointer}.ItemRegister,.ItemDeposit{border-radius:5px;background:#E32D2C;font-size:14px;height:44px;text-align:center;line-height:44px;cursor:pointer}.ItemDeposit{background:#D0046C}.ItemLanguage{height:44px;width:68px;text-align:center;line-height:44px;background:transparent;color:#fff;border:none;cursor:pointer}.
|
|
7901
|
+
this.shadowRoot.innerHTML = `<style>.HeaderSlider{width:100%;height:400px}.HeaderWrapper{background:#050518}.HeaderContainer{max-width:1280px;display:flex;flex-direction:row;align-items:center;height:84px;margin:0 auto}.HeaderBranding{width:150px}.HeaderMainNav{text-align:left}.HeaderTopActions{text-align:right;margin-left:auto}.HeaderSecondaryNav{flex-direction:row;width:100%;background:#050518;border-top:1px solid #58586B}.HeaderItemsMenu{display:flex;align-content:flex-start;list-style:none;text-transform:uppercase;color:#FFF;font-size:16px;align-items:center}.HeaderItemsMenu .Item{padding:0 15px;display:flex;align-items:center}.HeaderItemsMenu.PrimaryMenu{gap:10px}.ItemLogin{border-radius:5px;background:transparent;font-size:14px;border:solid 1px #FFF;height:44px;text-align:center;line-height:44px;margin-right:20px;cursor:pointer}.ItemRegister,.ItemDeposit{border-radius:5px;background:#E32D2C;font-size:14px;height:44px;text-align:center;line-height:44px;cursor:pointer}.ItemDeposit{background:#D0046C}.ItemLanguage{height:44px;width:68px;text-align:center;line-height:44px;background:transparent;color:#fff;border:none;cursor:pointer}.ItemAccount{cursor:pointer}.ItemAccount svg{width:20px;height:20px}.HeaderItemsMenuSecondary{display:flex;flex-direction:row;align-content:flex-start;align-items:center;height:60px;list-style:none;text-transform:uppercase;color:#FFF;font-size:14px;max-width:1280px;margin:0 auto;overflow-y:hidden;overflow-x:auto;padding:0}.HeaderItemsMenuSecondary .ItemSecondary{padding:0 15px;cursor:pointer;transition-duration:0.15s}.HeaderItemsMenuSecondary .ItemSecondary a{color:#fff;text-decoration:none}.HeaderItemsMenuSecondary .ItemSecondary:hover a{color:#D0046C}.HeaderSliderMobile{background-position:bottom}.HeaderMobileWrapper .HeaderContainer{height:55px;padding:0 15px;gap:10px}.HeaderMobileWrapper .HeaderBranding{width:60px}.HeaderMobileWrapper .HeaderBranding img{width:100%}.HeaderMobileWrapper .HeaderItemsMenu .Item{display:block;width:unset}.HeaderMobileWrapper .HeaderItemsMenu .ItemAccount{padding:0}.HeaderMobileWrapper .ItemRegister,.HeaderMobileWrapper .ItemDeposit,.HeaderMobileWrapper .ItemLogin{height:30px;line-height:30px;font-size:12px}.HeaderMobileWrapper .ItemLogin{margin-right:10px}</style>`;
|
|
8123
7902
|
|
|
8124
7903
|
init(
|
|
8125
7904
|
this,
|
|
@@ -8132,10 +7911,11 @@
|
|
|
8132
7911
|
create_fragment,
|
|
8133
7912
|
safe_not_equal,
|
|
8134
7913
|
{
|
|
8135
|
-
session:
|
|
8136
|
-
userid:
|
|
8137
|
-
cmsmenuurl:
|
|
8138
|
-
cmshamburgermenuurl: 0
|
|
7914
|
+
session: 14,
|
|
7915
|
+
userid: 15,
|
|
7916
|
+
cmsmenuurl: 16,
|
|
7917
|
+
cmshamburgermenuurl: 0,
|
|
7918
|
+
profileurl: 1
|
|
8139
7919
|
},
|
|
8140
7920
|
[-1, -1]
|
|
8141
7921
|
);
|
|
@@ -8153,11 +7933,11 @@
|
|
|
8153
7933
|
}
|
|
8154
7934
|
|
|
8155
7935
|
static get observedAttributes() {
|
|
8156
|
-
return ["session", "userid", "cmsmenuurl", "cmshamburgermenuurl"];
|
|
7936
|
+
return ["session", "userid", "cmsmenuurl", "cmshamburgermenuurl", "profileurl"];
|
|
8157
7937
|
}
|
|
8158
7938
|
|
|
8159
7939
|
get session() {
|
|
8160
|
-
return this.$$.ctx[
|
|
7940
|
+
return this.$$.ctx[14];
|
|
8161
7941
|
}
|
|
8162
7942
|
|
|
8163
7943
|
set session(session) {
|
|
@@ -8166,7 +7946,7 @@
|
|
|
8166
7946
|
}
|
|
8167
7947
|
|
|
8168
7948
|
get userid() {
|
|
8169
|
-
return this.$$.ctx[
|
|
7949
|
+
return this.$$.ctx[15];
|
|
8170
7950
|
}
|
|
8171
7951
|
|
|
8172
7952
|
set userid(userid) {
|
|
@@ -8175,7 +7955,7 @@
|
|
|
8175
7955
|
}
|
|
8176
7956
|
|
|
8177
7957
|
get cmsmenuurl() {
|
|
8178
|
-
return this.$$.ctx[
|
|
7958
|
+
return this.$$.ctx[16];
|
|
8179
7959
|
}
|
|
8180
7960
|
|
|
8181
7961
|
set cmsmenuurl(cmsmenuurl) {
|
|
@@ -8191,6 +7971,15 @@
|
|
|
8191
7971
|
this.$set({ cmshamburgermenuurl });
|
|
8192
7972
|
flush();
|
|
8193
7973
|
}
|
|
7974
|
+
|
|
7975
|
+
get profileurl() {
|
|
7976
|
+
return this.$$.ctx[1];
|
|
7977
|
+
}
|
|
7978
|
+
|
|
7979
|
+
set profileurl(profileurl) {
|
|
7980
|
+
this.$set({ profileurl });
|
|
7981
|
+
flush();
|
|
7982
|
+
}
|
|
8194
7983
|
}
|
|
8195
7984
|
|
|
8196
7985
|
!customElements.get('casino-header-controller') && customElements.define('casino-header-controller', CasinoHeaderController);
|