@everymatrix/general-player-register-form 0.0.176 → 0.0.178
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.
|
@@ -7265,17 +7265,17 @@
|
|
|
7265
7265
|
|
|
7266
7266
|
function get_each_context(ctx, list, i) {
|
|
7267
7267
|
const child_ctx = ctx.slice();
|
|
7268
|
-
child_ctx[
|
|
7268
|
+
child_ctx[55] = list[i];
|
|
7269
7269
|
return child_ctx;
|
|
7270
7270
|
}
|
|
7271
7271
|
|
|
7272
7272
|
function get_each_context_1(ctx, list, i) {
|
|
7273
7273
|
const child_ctx = ctx.slice();
|
|
7274
|
-
child_ctx[
|
|
7274
|
+
child_ctx[58] = list[i];
|
|
7275
7275
|
return child_ctx;
|
|
7276
7276
|
}
|
|
7277
7277
|
|
|
7278
|
-
// (
|
|
7278
|
+
// (230:6) {#if invalidAddress}
|
|
7279
7279
|
function create_if_block_7(ctx) {
|
|
7280
7280
|
let p;
|
|
7281
7281
|
|
|
@@ -7284,7 +7284,7 @@
|
|
|
7284
7284
|
p = element("p");
|
|
7285
7285
|
p.textContent = "Address must be at least 1 character long and 100 characters maximum.";
|
|
7286
7286
|
attr_dev(p, "class", "InvalidInput");
|
|
7287
|
-
add_location(p, file$1,
|
|
7287
|
+
add_location(p, file$1, 230, 8, 6685);
|
|
7288
7288
|
},
|
|
7289
7289
|
m: function mount(target, anchor) {
|
|
7290
7290
|
insert_dev(target, p, anchor);
|
|
@@ -7298,14 +7298,14 @@
|
|
|
7298
7298
|
block,
|
|
7299
7299
|
id: create_if_block_7.name,
|
|
7300
7300
|
type: "if",
|
|
7301
|
-
source: "(
|
|
7301
|
+
source: "(230:6) {#if invalidAddress}",
|
|
7302
7302
|
ctx
|
|
7303
7303
|
});
|
|
7304
7304
|
|
|
7305
7305
|
return block;
|
|
7306
7306
|
}
|
|
7307
7307
|
|
|
7308
|
-
// (
|
|
7308
|
+
// (237:6) {#if invalidPostalCode}
|
|
7309
7309
|
function create_if_block_6$1(ctx) {
|
|
7310
7310
|
let p;
|
|
7311
7311
|
|
|
@@ -7314,7 +7314,7 @@
|
|
|
7314
7314
|
p = element("p");
|
|
7315
7315
|
p.textContent = "Postal Code must be at least 1 character long and 20 characters maximum.";
|
|
7316
7316
|
attr_dev(p, "class", "InvalidInput");
|
|
7317
|
-
add_location(p, file$1,
|
|
7317
|
+
add_location(p, file$1, 237, 8, 7107);
|
|
7318
7318
|
},
|
|
7319
7319
|
m: function mount(target, anchor) {
|
|
7320
7320
|
insert_dev(target, p, anchor);
|
|
@@ -7328,14 +7328,14 @@
|
|
|
7328
7328
|
block,
|
|
7329
7329
|
id: create_if_block_6$1.name,
|
|
7330
7330
|
type: "if",
|
|
7331
|
-
source: "(
|
|
7331
|
+
source: "(237:6) {#if invalidPostalCode}",
|
|
7332
7332
|
ctx
|
|
7333
7333
|
});
|
|
7334
7334
|
|
|
7335
7335
|
return block;
|
|
7336
7336
|
}
|
|
7337
7337
|
|
|
7338
|
-
// (
|
|
7338
|
+
// (245:4) {#if invalidCity}
|
|
7339
7339
|
function create_if_block_5$1(ctx) {
|
|
7340
7340
|
let p;
|
|
7341
7341
|
|
|
@@ -7344,7 +7344,7 @@
|
|
|
7344
7344
|
p = element("p");
|
|
7345
7345
|
p.textContent = "City must be at least 1 character long and 50 characters maximum.";
|
|
7346
7346
|
attr_dev(p, "class", "InvalidInput");
|
|
7347
|
-
add_location(p, file$1,
|
|
7347
|
+
add_location(p, file$1, 245, 6, 7482);
|
|
7348
7348
|
},
|
|
7349
7349
|
m: function mount(target, anchor) {
|
|
7350
7350
|
insert_dev(target, p, anchor);
|
|
@@ -7358,32 +7358,40 @@
|
|
|
7358
7358
|
block,
|
|
7359
7359
|
id: create_if_block_5$1.name,
|
|
7360
7360
|
type: "if",
|
|
7361
|
-
source: "(
|
|
7361
|
+
source: "(245:4) {#if invalidCity}",
|
|
7362
7362
|
ctx
|
|
7363
7363
|
});
|
|
7364
7364
|
|
|
7365
7365
|
return block;
|
|
7366
7366
|
}
|
|
7367
7367
|
|
|
7368
|
-
// (
|
|
7368
|
+
// (252:6) {#each countries as country}
|
|
7369
7369
|
function create_each_block_1(ctx) {
|
|
7370
7370
|
let option;
|
|
7371
|
-
let t_value = /*country*/ ctx[
|
|
7371
|
+
let t_value = /*country*/ ctx[58].Name + "";
|
|
7372
7372
|
let t;
|
|
7373
|
+
let option_value_value;
|
|
7373
7374
|
|
|
7374
7375
|
const block = {
|
|
7375
7376
|
c: function create() {
|
|
7376
7377
|
option = element("option");
|
|
7377
7378
|
t = text(t_value);
|
|
7378
|
-
option.__value = /*country*/ ctx[
|
|
7379
|
+
option.__value = option_value_value = /*country*/ ctx[58].Alpha2Code;
|
|
7379
7380
|
option.value = option.__value;
|
|
7380
|
-
add_location(option, file$1,
|
|
7381
|
+
add_location(option, file$1, 252, 8, 7803);
|
|
7381
7382
|
},
|
|
7382
7383
|
m: function mount(target, anchor) {
|
|
7383
7384
|
insert_dev(target, option, anchor);
|
|
7384
7385
|
append_dev(option, t);
|
|
7385
7386
|
},
|
|
7386
|
-
p:
|
|
7387
|
+
p: function update(ctx, dirty) {
|
|
7388
|
+
if (dirty[0] & /*countries*/ 2048 && t_value !== (t_value = /*country*/ ctx[58].Name + "")) set_data_dev(t, t_value);
|
|
7389
|
+
|
|
7390
|
+
if (dirty[0] & /*countries*/ 2048 && option_value_value !== (option_value_value = /*country*/ ctx[58].Alpha2Code)) {
|
|
7391
|
+
prop_dev(option, "__value", option_value_value);
|
|
7392
|
+
option.value = option.__value;
|
|
7393
|
+
}
|
|
7394
|
+
},
|
|
7387
7395
|
d: function destroy(detaching) {
|
|
7388
7396
|
if (detaching) detach_dev(option);
|
|
7389
7397
|
}
|
|
@@ -7393,14 +7401,14 @@
|
|
|
7393
7401
|
block,
|
|
7394
7402
|
id: create_each_block_1.name,
|
|
7395
7403
|
type: "each",
|
|
7396
|
-
source: "(
|
|
7404
|
+
source: "(252:6) {#each countries as country}",
|
|
7397
7405
|
ctx
|
|
7398
7406
|
});
|
|
7399
7407
|
|
|
7400
7408
|
return block;
|
|
7401
7409
|
}
|
|
7402
7410
|
|
|
7403
|
-
// (
|
|
7411
|
+
// (260:4) {#if invalidNationality}
|
|
7404
7412
|
function create_if_block_4$1(ctx) {
|
|
7405
7413
|
let p;
|
|
7406
7414
|
|
|
@@ -7409,7 +7417,7 @@
|
|
|
7409
7417
|
p = element("p");
|
|
7410
7418
|
p.textContent = "Nationality must be at least 1 character long.";
|
|
7411
7419
|
attr_dev(p, "class", "InvalidInput");
|
|
7412
|
-
add_location(p, file$1,
|
|
7420
|
+
add_location(p, file$1, 260, 6, 8197);
|
|
7413
7421
|
},
|
|
7414
7422
|
m: function mount(target, anchor) {
|
|
7415
7423
|
insert_dev(target, p, anchor);
|
|
@@ -7423,32 +7431,40 @@
|
|
|
7423
7431
|
block,
|
|
7424
7432
|
id: create_if_block_4$1.name,
|
|
7425
7433
|
type: "if",
|
|
7426
|
-
source: "(
|
|
7434
|
+
source: "(260:4) {#if invalidNationality}",
|
|
7427
7435
|
ctx
|
|
7428
7436
|
});
|
|
7429
7437
|
|
|
7430
7438
|
return block;
|
|
7431
7439
|
}
|
|
7432
7440
|
|
|
7433
|
-
// (
|
|
7441
|
+
// (268:8) {#each mobilePrefixes as mobilePrefix}
|
|
7434
7442
|
function create_each_block(ctx) {
|
|
7435
7443
|
let option;
|
|
7436
|
-
let t_value = /*mobilePrefix*/ ctx[
|
|
7444
|
+
let t_value = /*mobilePrefix*/ ctx[55].Prefix + "";
|
|
7437
7445
|
let t;
|
|
7446
|
+
let option_value_value;
|
|
7438
7447
|
|
|
7439
7448
|
const block = {
|
|
7440
7449
|
c: function create() {
|
|
7441
7450
|
option = element("option");
|
|
7442
7451
|
t = text(t_value);
|
|
7443
|
-
option.__value = /*mobilePrefix*/ ctx[
|
|
7452
|
+
option.__value = option_value_value = /*mobilePrefix*/ ctx[55].Prefix;
|
|
7444
7453
|
option.value = option.__value;
|
|
7445
|
-
add_location(option, file$1,
|
|
7454
|
+
add_location(option, file$1, 268, 10, 8603);
|
|
7446
7455
|
},
|
|
7447
7456
|
m: function mount(target, anchor) {
|
|
7448
7457
|
insert_dev(target, option, anchor);
|
|
7449
7458
|
append_dev(option, t);
|
|
7450
7459
|
},
|
|
7451
|
-
p:
|
|
7460
|
+
p: function update(ctx, dirty) {
|
|
7461
|
+
if (dirty[0] & /*mobilePrefixes*/ 32768 && t_value !== (t_value = /*mobilePrefix*/ ctx[55].Prefix + "")) set_data_dev(t, t_value);
|
|
7462
|
+
|
|
7463
|
+
if (dirty[0] & /*mobilePrefixes*/ 32768 && option_value_value !== (option_value_value = /*mobilePrefix*/ ctx[55].Prefix)) {
|
|
7464
|
+
prop_dev(option, "__value", option_value_value);
|
|
7465
|
+
option.value = option.__value;
|
|
7466
|
+
}
|
|
7467
|
+
},
|
|
7452
7468
|
d: function destroy(detaching) {
|
|
7453
7469
|
if (detaching) detach_dev(option);
|
|
7454
7470
|
}
|
|
@@ -7458,14 +7474,14 @@
|
|
|
7458
7474
|
block,
|
|
7459
7475
|
id: create_each_block.name,
|
|
7460
7476
|
type: "each",
|
|
7461
|
-
source: "(
|
|
7477
|
+
source: "(268:8) {#each mobilePrefixes as mobilePrefix}",
|
|
7462
7478
|
ctx
|
|
7463
7479
|
});
|
|
7464
7480
|
|
|
7465
7481
|
return block;
|
|
7466
7482
|
}
|
|
7467
7483
|
|
|
7468
|
-
// (
|
|
7484
|
+
// (273:6) {#if invalidMobile}
|
|
7469
7485
|
function create_if_block_3$1(ctx) {
|
|
7470
7486
|
let p;
|
|
7471
7487
|
|
|
@@ -7474,7 +7490,7 @@
|
|
|
7474
7490
|
p = element("p");
|
|
7475
7491
|
p.textContent = "Mobile must be at least 5 character long and 20 characters maximum.";
|
|
7476
7492
|
attr_dev(p, "class", "InvalidInput");
|
|
7477
|
-
add_location(p, file$1,
|
|
7493
|
+
add_location(p, file$1, 273, 8, 8953);
|
|
7478
7494
|
},
|
|
7479
7495
|
m: function mount(target, anchor) {
|
|
7480
7496
|
insert_dev(target, p, anchor);
|
|
@@ -7488,14 +7504,14 @@
|
|
|
7488
7504
|
block,
|
|
7489
7505
|
id: create_if_block_3$1.name,
|
|
7490
7506
|
type: "if",
|
|
7491
|
-
source: "(
|
|
7507
|
+
source: "(273:6) {#if invalidMobile}",
|
|
7492
7508
|
ctx
|
|
7493
7509
|
});
|
|
7494
7510
|
|
|
7495
7511
|
return block;
|
|
7496
7512
|
}
|
|
7497
7513
|
|
|
7498
|
-
// (
|
|
7514
|
+
// (278:2) {#if userconsentexists}
|
|
7499
7515
|
function create_if_block_1$1(ctx) {
|
|
7500
7516
|
let div1;
|
|
7501
7517
|
let label0;
|
|
@@ -7531,7 +7547,7 @@
|
|
|
7531
7547
|
let if_block_anchor;
|
|
7532
7548
|
let mounted;
|
|
7533
7549
|
let dispose;
|
|
7534
|
-
let if_block = !/*consentTerms*/ ctx[
|
|
7550
|
+
let if_block = !/*consentTerms*/ ctx[20] && create_if_block_2$1(ctx);
|
|
7535
7551
|
|
|
7536
7552
|
const block = {
|
|
7537
7553
|
c: function create() {
|
|
@@ -7566,43 +7582,43 @@
|
|
|
7566
7582
|
t12 = space();
|
|
7567
7583
|
if (if_block) if_block.c();
|
|
7568
7584
|
if_block_anchor = empty();
|
|
7569
|
-
add_location(br, file$1,
|
|
7585
|
+
add_location(br, file$1, 279, 75, 9216);
|
|
7570
7586
|
attr_dev(input0, "type", "Checkbox");
|
|
7571
|
-
input0.checked = /*consentOffers*/ ctx[
|
|
7572
|
-
add_location(input0, file$1,
|
|
7587
|
+
input0.checked = /*consentOffers*/ ctx[17];
|
|
7588
|
+
add_location(input0, file$1, 280, 8, 9283);
|
|
7573
7589
|
attr_dev(span0, "class", "Checkmark");
|
|
7574
|
-
add_location(span0, file$1,
|
|
7590
|
+
add_location(span0, file$1, 281, 8, 9373);
|
|
7575
7591
|
attr_dev(label0, "class", "Offers");
|
|
7576
|
-
add_location(label0, file$1,
|
|
7592
|
+
add_location(label0, file$1, 279, 6, 9147);
|
|
7577
7593
|
attr_dev(input1, "type", "Checkbox");
|
|
7578
|
-
input1.disabled = input1_disabled_value = !/*consentOffers*/ ctx[
|
|
7579
|
-
input1.checked = /*consentOffersSms*/ ctx[
|
|
7580
|
-
add_location(input1, file$1,
|
|
7594
|
+
input1.disabled = input1_disabled_value = !/*consentOffers*/ ctx[17];
|
|
7595
|
+
input1.checked = /*consentOffersSms*/ ctx[18];
|
|
7596
|
+
add_location(input1, file$1, 285, 10, 9511);
|
|
7581
7597
|
attr_dev(span1, "class", "Checkmark");
|
|
7582
|
-
add_location(span1, file$1,
|
|
7598
|
+
add_location(span1, file$1, 286, 10, 9635);
|
|
7583
7599
|
attr_dev(label1, "class", "OffersMethod");
|
|
7584
|
-
add_location(label1, file$1,
|
|
7600
|
+
add_location(label1, file$1, 284, 8, 9469);
|
|
7585
7601
|
attr_dev(input2, "type", "Checkbox");
|
|
7586
|
-
input2.disabled = input2_disabled_value = !/*consentOffers*/ ctx[
|
|
7587
|
-
input2.checked = /*consentOffersEmail*/ ctx[
|
|
7588
|
-
add_location(input2, file$1,
|
|
7602
|
+
input2.disabled = input2_disabled_value = !/*consentOffers*/ ctx[17];
|
|
7603
|
+
input2.checked = /*consentOffersEmail*/ ctx[19];
|
|
7604
|
+
add_location(input2, file$1, 289, 10, 9737);
|
|
7589
7605
|
attr_dev(span2, "class", "Checkmark");
|
|
7590
|
-
add_location(span2, file$1,
|
|
7606
|
+
add_location(span2, file$1, 290, 10, 9865);
|
|
7591
7607
|
attr_dev(label2, "class", "OffersMethod");
|
|
7592
|
-
add_location(label2, file$1,
|
|
7608
|
+
add_location(label2, file$1, 288, 8, 9692);
|
|
7593
7609
|
attr_dev(div0, "class", "OffersMethodsWrapper");
|
|
7594
|
-
add_location(div0, file$1,
|
|
7610
|
+
add_location(div0, file$1, 283, 6, 9426);
|
|
7595
7611
|
attr_dev(div1, "class", "OffersContainer");
|
|
7596
|
-
add_location(div1, file$1,
|
|
7612
|
+
add_location(div1, file$1, 278, 4, 9111);
|
|
7597
7613
|
attr_dev(input3, "type", "Checkbox");
|
|
7598
|
-
input3.checked = /*consentTerms*/ ctx[
|
|
7599
|
-
add_location(input3, file$1,
|
|
7614
|
+
input3.checked = /*consentTerms*/ ctx[20];
|
|
7615
|
+
add_location(input3, file$1, 296, 8, 10090);
|
|
7600
7616
|
attr_dev(span3, "class", "Checkmark");
|
|
7601
|
-
add_location(span3, file$1,
|
|
7617
|
+
add_location(span3, file$1, 297, 8, 10178);
|
|
7602
7618
|
attr_dev(label3, "class", "AgeConsent");
|
|
7603
|
-
add_location(label3, file$1,
|
|
7619
|
+
add_location(label3, file$1, 295, 6, 9975);
|
|
7604
7620
|
attr_dev(div2, "class", "AgeContainer");
|
|
7605
|
-
add_location(div2, file$1,
|
|
7621
|
+
add_location(div2, file$1, 294, 4, 9942);
|
|
7606
7622
|
},
|
|
7607
7623
|
m: function mount(target, anchor) {
|
|
7608
7624
|
insert_dev(target, div1, anchor);
|
|
@@ -7639,41 +7655,41 @@
|
|
|
7639
7655
|
|
|
7640
7656
|
if (!mounted) {
|
|
7641
7657
|
dispose = [
|
|
7642
|
-
listen_dev(input0, "click", /*click_handler*/ ctx[
|
|
7643
|
-
listen_dev(input1, "click", /*click_handler_1*/ ctx[
|
|
7644
|
-
listen_dev(input2, "click", /*click_handler_2*/ ctx[
|
|
7645
|
-
listen_dev(input3, "click", /*click_handler_3*/ ctx[
|
|
7658
|
+
listen_dev(input0, "click", /*click_handler*/ ctx[41], false, false, false),
|
|
7659
|
+
listen_dev(input1, "click", /*click_handler_1*/ ctx[42], false, false, false),
|
|
7660
|
+
listen_dev(input2, "click", /*click_handler_2*/ ctx[43], false, false, false),
|
|
7661
|
+
listen_dev(input3, "click", /*click_handler_3*/ ctx[44], false, false, false)
|
|
7646
7662
|
];
|
|
7647
7663
|
|
|
7648
7664
|
mounted = true;
|
|
7649
7665
|
}
|
|
7650
7666
|
},
|
|
7651
7667
|
p: function update(ctx, dirty) {
|
|
7652
|
-
if (dirty[0] & /*consentOffers*/
|
|
7653
|
-
prop_dev(input0, "checked", /*consentOffers*/ ctx[
|
|
7668
|
+
if (dirty[0] & /*consentOffers*/ 131072) {
|
|
7669
|
+
prop_dev(input0, "checked", /*consentOffers*/ ctx[17]);
|
|
7654
7670
|
}
|
|
7655
7671
|
|
|
7656
|
-
if (dirty[0] & /*consentOffers*/
|
|
7672
|
+
if (dirty[0] & /*consentOffers*/ 131072 && input1_disabled_value !== (input1_disabled_value = !/*consentOffers*/ ctx[17])) {
|
|
7657
7673
|
prop_dev(input1, "disabled", input1_disabled_value);
|
|
7658
7674
|
}
|
|
7659
7675
|
|
|
7660
|
-
if (dirty[0] & /*consentOffersSms*/
|
|
7661
|
-
prop_dev(input1, "checked", /*consentOffersSms*/ ctx[
|
|
7676
|
+
if (dirty[0] & /*consentOffersSms*/ 262144) {
|
|
7677
|
+
prop_dev(input1, "checked", /*consentOffersSms*/ ctx[18]);
|
|
7662
7678
|
}
|
|
7663
7679
|
|
|
7664
|
-
if (dirty[0] & /*consentOffers*/
|
|
7680
|
+
if (dirty[0] & /*consentOffers*/ 131072 && input2_disabled_value !== (input2_disabled_value = !/*consentOffers*/ ctx[17])) {
|
|
7665
7681
|
prop_dev(input2, "disabled", input2_disabled_value);
|
|
7666
7682
|
}
|
|
7667
7683
|
|
|
7668
|
-
if (dirty[0] & /*consentOffersEmail*/
|
|
7669
|
-
prop_dev(input2, "checked", /*consentOffersEmail*/ ctx[
|
|
7684
|
+
if (dirty[0] & /*consentOffersEmail*/ 524288) {
|
|
7685
|
+
prop_dev(input2, "checked", /*consentOffersEmail*/ ctx[19]);
|
|
7670
7686
|
}
|
|
7671
7687
|
|
|
7672
|
-
if (dirty[0] & /*consentTerms*/
|
|
7673
|
-
prop_dev(input3, "checked", /*consentTerms*/ ctx[
|
|
7688
|
+
if (dirty[0] & /*consentTerms*/ 1048576) {
|
|
7689
|
+
prop_dev(input3, "checked", /*consentTerms*/ ctx[20]);
|
|
7674
7690
|
}
|
|
7675
7691
|
|
|
7676
|
-
if (!/*consentTerms*/ ctx[
|
|
7692
|
+
if (!/*consentTerms*/ ctx[20]) {
|
|
7677
7693
|
if (if_block) ; else {
|
|
7678
7694
|
if_block = create_if_block_2$1(ctx);
|
|
7679
7695
|
if_block.c();
|
|
@@ -7700,14 +7716,14 @@
|
|
|
7700
7716
|
block,
|
|
7701
7717
|
id: create_if_block_1$1.name,
|
|
7702
7718
|
type: "if",
|
|
7703
|
-
source: "(
|
|
7719
|
+
source: "(278:2) {#if userconsentexists}",
|
|
7704
7720
|
ctx
|
|
7705
7721
|
});
|
|
7706
7722
|
|
|
7707
7723
|
return block;
|
|
7708
7724
|
}
|
|
7709
7725
|
|
|
7710
|
-
// (
|
|
7726
|
+
// (301:4) {#if !consentTerms}
|
|
7711
7727
|
function create_if_block_2$1(ctx) {
|
|
7712
7728
|
let div;
|
|
7713
7729
|
let p;
|
|
@@ -7717,9 +7733,9 @@
|
|
|
7717
7733
|
div = element("div");
|
|
7718
7734
|
p = element("p");
|
|
7719
7735
|
p.textContent = "Please accept the Terms and Conditions before proceeding.";
|
|
7720
|
-
add_location(p, file$1,
|
|
7736
|
+
add_location(p, file$1, 302, 8, 10310);
|
|
7721
7737
|
attr_dev(div, "class", "NotificationContainer");
|
|
7722
|
-
add_location(div, file$1,
|
|
7738
|
+
add_location(div, file$1, 301, 6, 10266);
|
|
7723
7739
|
},
|
|
7724
7740
|
m: function mount(target, anchor) {
|
|
7725
7741
|
insert_dev(target, div, anchor);
|
|
@@ -7734,14 +7750,14 @@
|
|
|
7734
7750
|
block,
|
|
7735
7751
|
id: create_if_block_2$1.name,
|
|
7736
7752
|
type: "if",
|
|
7737
|
-
source: "(
|
|
7753
|
+
source: "(301:4) {#if !consentTerms}",
|
|
7738
7754
|
ctx
|
|
7739
7755
|
});
|
|
7740
7756
|
|
|
7741
7757
|
return block;
|
|
7742
7758
|
}
|
|
7743
7759
|
|
|
7744
|
-
// (
|
|
7760
|
+
// (308:0) {#if showError}
|
|
7745
7761
|
function create_if_block$1(ctx) {
|
|
7746
7762
|
let div;
|
|
7747
7763
|
let p;
|
|
@@ -7753,8 +7769,8 @@
|
|
|
7753
7769
|
p = element("p");
|
|
7754
7770
|
t = text(/*error*/ ctx[7]);
|
|
7755
7771
|
attr_dev(p, "class", "RegisterError");
|
|
7756
|
-
add_location(p, file$1,
|
|
7757
|
-
add_location(div, file$1,
|
|
7772
|
+
add_location(p, file$1, 309, 4, 10441);
|
|
7773
|
+
add_location(div, file$1, 308, 2, 10431);
|
|
7758
7774
|
},
|
|
7759
7775
|
m: function mount(target, anchor) {
|
|
7760
7776
|
insert_dev(target, div, anchor);
|
|
@@ -7773,7 +7789,7 @@
|
|
|
7773
7789
|
block,
|
|
7774
7790
|
id: create_if_block$1.name,
|
|
7775
7791
|
type: "if",
|
|
7776
|
-
source: "(
|
|
7792
|
+
source: "(308:0) {#if showError}",
|
|
7777
7793
|
ctx
|
|
7778
7794
|
});
|
|
7779
7795
|
|
|
@@ -7862,7 +7878,7 @@
|
|
|
7862
7878
|
let if_block0 = /*invalidAddress*/ ctx[1] && create_if_block_7(ctx);
|
|
7863
7879
|
let if_block1 = /*invalidPostalCode*/ ctx[2] && create_if_block_6$1(ctx);
|
|
7864
7880
|
let if_block2 = /*invalidCity*/ ctx[4] && create_if_block_5$1(ctx);
|
|
7865
|
-
let each_value_1 = /*countries*/ ctx[
|
|
7881
|
+
let each_value_1 = /*countries*/ ctx[11];
|
|
7866
7882
|
validate_each_argument(each_value_1);
|
|
7867
7883
|
let each_blocks_1 = [];
|
|
7868
7884
|
|
|
@@ -7871,7 +7887,7 @@
|
|
|
7871
7887
|
}
|
|
7872
7888
|
|
|
7873
7889
|
let if_block3 = /*invalidNationality*/ ctx[5] && create_if_block_4$1(ctx);
|
|
7874
|
-
let each_value = /*mobilePrefixes*/ ctx[
|
|
7890
|
+
let each_value = /*mobilePrefixes*/ ctx[15];
|
|
7875
7891
|
validate_each_argument(each_value);
|
|
7876
7892
|
let each_blocks = [];
|
|
7877
7893
|
|
|
@@ -7981,91 +7997,91 @@
|
|
|
7981
7997
|
if (script.src !== (script_src_value = "//www.google.com/recaptcha/api.js?render=" + captchaKey)) attr_dev(script, "src", script_src_value);
|
|
7982
7998
|
script.async = true;
|
|
7983
7999
|
script.defer = true;
|
|
7984
|
-
add_location(script, file$1,
|
|
8000
|
+
add_location(script, file$1, 213, 2, 5815);
|
|
7985
8001
|
attr_dev(div0, "class", "g-recaptcha");
|
|
7986
8002
|
attr_dev(div0, "data-sitekey", captchaKey);
|
|
7987
|
-
add_location(div0, file$1,
|
|
7988
|
-
add_location(style, file$1,
|
|
7989
|
-
add_location(defs, file$1,
|
|
8003
|
+
add_location(div0, file$1, 216, 0, 5921);
|
|
8004
|
+
add_location(style, file$1, 220, 70, 6129);
|
|
8005
|
+
add_location(defs, file$1, 220, 64, 6123);
|
|
7990
8006
|
attr_dev(path, "class", "a");
|
|
7991
8007
|
attr_dev(path, "d", "M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z");
|
|
7992
8008
|
attr_dev(path, "transform", "translate(24 24) rotate(180)");
|
|
7993
|
-
add_location(path, file$1,
|
|
8009
|
+
add_location(path, file$1, 220, 109, 6168);
|
|
7994
8010
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
7995
8011
|
attr_dev(svg, "viewBox", "0 0 24 24");
|
|
7996
|
-
add_location(svg, file$1,
|
|
8012
|
+
add_location(svg, file$1, 220, 4, 6063);
|
|
7997
8013
|
attr_dev(button0, "class", "BackButton");
|
|
7998
|
-
add_location(button0, file$1,
|
|
8014
|
+
add_location(button0, file$1, 219, 2, 6013);
|
|
7999
8015
|
attr_dev(div1, "class", "RegisterFormHeader");
|
|
8000
|
-
add_location(div1, file$1,
|
|
8016
|
+
add_location(div1, file$1, 218, 0, 5978);
|
|
8001
8017
|
attr_dev(span0, "class", "FormRequired");
|
|
8002
|
-
add_location(span0, file$1,
|
|
8018
|
+
add_location(span0, file$1, 227, 35, 6518);
|
|
8003
8019
|
attr_dev(label0, "for", "Address");
|
|
8004
|
-
add_location(label0, file$1,
|
|
8020
|
+
add_location(label0, file$1, 227, 6, 6489);
|
|
8005
8021
|
attr_dev(input0, "type", "text");
|
|
8006
8022
|
attr_dev(input0, "id", "Address");
|
|
8007
|
-
add_location(input0, file$1,
|
|
8023
|
+
add_location(input0, file$1, 228, 6, 6568);
|
|
8008
8024
|
attr_dev(div2, "class", div2_class_value = "AddressContainer " + (/*invalidAddress*/ ctx[1] ? "InvalidField" : ""));
|
|
8009
|
-
add_location(div2, file$1,
|
|
8025
|
+
add_location(div2, file$1, 226, 4, 6413);
|
|
8010
8026
|
attr_dev(span1, "class", "FormRequired");
|
|
8011
|
-
add_location(span1, file$1,
|
|
8027
|
+
add_location(span1, file$1, 234, 42, 6928);
|
|
8012
8028
|
attr_dev(label1, "for", "PostalCode");
|
|
8013
|
-
add_location(label1, file$1,
|
|
8029
|
+
add_location(label1, file$1, 234, 6, 6892);
|
|
8014
8030
|
attr_dev(input1, "type", "text");
|
|
8015
8031
|
attr_dev(input1, "id", "PostalCode");
|
|
8016
|
-
add_location(input1, file$1,
|
|
8032
|
+
add_location(input1, file$1, 235, 6, 6978);
|
|
8017
8033
|
attr_dev(div3, "class", div3_class_value = "PostalCodeContainer " + (/*invalidPostalCode*/ ctx[2] ? "InvalidField" : ""));
|
|
8018
|
-
add_location(div3, file$1,
|
|
8034
|
+
add_location(div3, file$1, 233, 4, 6810);
|
|
8019
8035
|
attr_dev(div4, "class", "AddressPostalCodeContainer");
|
|
8020
|
-
add_location(div4, file$1,
|
|
8036
|
+
add_location(div4, file$1, 225, 2, 6368);
|
|
8021
8037
|
attr_dev(span2, "class", "FormRequired");
|
|
8022
|
-
add_location(span2, file$1,
|
|
8038
|
+
add_location(span2, file$1, 242, 27, 7333);
|
|
8023
8039
|
attr_dev(label2, "for", "City");
|
|
8024
|
-
add_location(label2, file$1,
|
|
8040
|
+
add_location(label2, file$1, 242, 4, 7310);
|
|
8025
8041
|
attr_dev(input2, "type", "text");
|
|
8026
8042
|
attr_dev(input2, "id", "City");
|
|
8027
|
-
add_location(input2, file$1,
|
|
8043
|
+
add_location(input2, file$1, 243, 4, 7381);
|
|
8028
8044
|
attr_dev(div5, "class", div5_class_value = "CityContainer " + (/*invalidCity*/ ctx[4] ? "InvalidField" : ""));
|
|
8029
|
-
add_location(div5, file$1,
|
|
8045
|
+
add_location(div5, file$1, 241, 2, 7242);
|
|
8030
8046
|
attr_dev(span3, "class", "FormRequired");
|
|
8031
|
-
add_location(span3, file$1,
|
|
8047
|
+
add_location(span3, file$1, 249, 33, 7661);
|
|
8032
8048
|
attr_dev(label3, "for", "Country");
|
|
8033
|
-
add_location(label3, file$1,
|
|
8049
|
+
add_location(label3, file$1, 249, 4, 7632);
|
|
8034
8050
|
attr_dev(select0, "id", "Country");
|
|
8035
|
-
if (/*countrySelected*/ ctx[
|
|
8036
|
-
add_location(select0, file$1,
|
|
8051
|
+
if (/*countrySelected*/ ctx[12] === void 0) add_render_callback(() => /*select0_change_handler*/ ctx[37].call(select0));
|
|
8052
|
+
add_location(select0, file$1, 250, 4, 7709);
|
|
8037
8053
|
attr_dev(div6, "class", "CountryContainer");
|
|
8038
|
-
add_location(div6, file$1,
|
|
8054
|
+
add_location(div6, file$1, 248, 2, 7597);
|
|
8039
8055
|
attr_dev(span4, "class", "FormRequired");
|
|
8040
|
-
add_location(span4, file$1,
|
|
8056
|
+
add_location(span4, file$1, 257, 41, 8020);
|
|
8041
8057
|
attr_dev(label4, "for", "Nationality");
|
|
8042
|
-
add_location(label4, file$1,
|
|
8058
|
+
add_location(label4, file$1, 257, 4, 7983);
|
|
8043
8059
|
attr_dev(input3, "type", "text");
|
|
8044
8060
|
attr_dev(input3, "id", "Nationality");
|
|
8045
|
-
add_location(input3, file$1,
|
|
8061
|
+
add_location(input3, file$1, 258, 4, 8068);
|
|
8046
8062
|
attr_dev(div7, "class", div7_class_value = "NationalityContainer " + (/*invalidNationality*/ ctx[5] ? "InvalidField" : ""));
|
|
8047
|
-
add_location(div7, file$1,
|
|
8063
|
+
add_location(div7, file$1, 256, 2, 7901);
|
|
8048
8064
|
attr_dev(span5, "class", "FormRequired");
|
|
8049
|
-
add_location(span5, file$1,
|
|
8065
|
+
add_location(span5, file$1, 264, 31, 8392);
|
|
8050
8066
|
attr_dev(label5, "for", "Mobile");
|
|
8051
|
-
add_location(label5, file$1,
|
|
8067
|
+
add_location(label5, file$1, 264, 4, 8365);
|
|
8052
8068
|
attr_dev(select1, "class", "MobilePrefixSelected");
|
|
8053
|
-
if (/*mobilePrefixSelected*/ ctx[
|
|
8054
|
-
add_location(select1, file$1,
|
|
8069
|
+
if (/*mobilePrefixSelected*/ ctx[16] === void 0) add_render_callback(() => /*select1_change_handler*/ ctx[39].call(select1));
|
|
8070
|
+
add_location(select1, file$1, 266, 6, 8474);
|
|
8055
8071
|
attr_dev(input4, "type", "text");
|
|
8056
8072
|
attr_dev(input4, "oninput", "this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');");
|
|
8057
8073
|
attr_dev(input4, "id", "Mobile");
|
|
8058
8074
|
attr_dev(input4, "class", "MobileInput");
|
|
8059
|
-
add_location(input4, file$1,
|
|
8075
|
+
add_location(input4, file$1, 271, 6, 8708);
|
|
8060
8076
|
attr_dev(div8, "class", "MobileWrapper");
|
|
8061
|
-
add_location(div8, file$1,
|
|
8077
|
+
add_location(div8, file$1, 265, 4, 8440);
|
|
8062
8078
|
attr_dev(div9, "class", div9_class_value = "MobileContainer " + (/*invalidMobile*/ ctx[3] ? "InvalidField" : ""));
|
|
8063
|
-
add_location(div9, file$1,
|
|
8079
|
+
add_location(div9, file$1, 263, 2, 8293);
|
|
8064
8080
|
attr_dev(div10, "class", "RegisterFormContent");
|
|
8065
|
-
add_location(div10, file$1,
|
|
8081
|
+
add_location(div10, file$1, 224, 0, 6332);
|
|
8066
8082
|
attr_dev(button1, "class", "RegisterStepNext");
|
|
8067
|
-
button1.disabled = button1_disabled_value = !/*isValid*/ ctx[
|
|
8068
|
-
add_location(button1, file$1,
|
|
8083
|
+
button1.disabled = button1_disabled_value = !/*isValid*/ ctx[21];
|
|
8084
|
+
add_location(button1, file$1, 312, 0, 10493);
|
|
8069
8085
|
},
|
|
8070
8086
|
l: function claim(nodes) {
|
|
8071
8087
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -8127,7 +8143,7 @@
|
|
|
8127
8143
|
each_blocks_1[i].m(select0, null);
|
|
8128
8144
|
}
|
|
8129
8145
|
|
|
8130
|
-
select_option(select0, /*countrySelected*/ ctx[
|
|
8146
|
+
select_option(select0, /*countrySelected*/ ctx[12]);
|
|
8131
8147
|
append_dev(div10, t23);
|
|
8132
8148
|
append_dev(div10, div7);
|
|
8133
8149
|
append_dev(div7, label4);
|
|
@@ -8135,7 +8151,7 @@
|
|
|
8135
8151
|
append_dev(label4, span4);
|
|
8136
8152
|
append_dev(div7, t26);
|
|
8137
8153
|
append_dev(div7, input3);
|
|
8138
|
-
set_input_value(input3, /*nationality*/ ctx[
|
|
8154
|
+
set_input_value(input3, /*nationality*/ ctx[13]);
|
|
8139
8155
|
append_dev(div7, t27);
|
|
8140
8156
|
if (if_block3) if_block3.m(div7, null);
|
|
8141
8157
|
append_dev(div10, t28);
|
|
@@ -8151,10 +8167,10 @@
|
|
|
8151
8167
|
each_blocks[i].m(select1, null);
|
|
8152
8168
|
}
|
|
8153
8169
|
|
|
8154
|
-
select_option(select1, /*mobilePrefixSelected*/ ctx[
|
|
8170
|
+
select_option(select1, /*mobilePrefixSelected*/ ctx[16]);
|
|
8155
8171
|
append_dev(div8, t32);
|
|
8156
8172
|
append_dev(div8, input4);
|
|
8157
|
-
set_input_value(input4, /*mobile*/ ctx[
|
|
8173
|
+
set_input_value(input4, /*mobile*/ ctx[14]);
|
|
8158
8174
|
append_dev(div8, t33);
|
|
8159
8175
|
if (if_block4) if_block4.m(div8, null);
|
|
8160
8176
|
append_dev(div10, t34);
|
|
@@ -8168,17 +8184,17 @@
|
|
|
8168
8184
|
if (!mounted) {
|
|
8169
8185
|
dispose = [
|
|
8170
8186
|
listen_dev(button0, "click", /*goBack*/ ctx[32], false, false, false),
|
|
8171
|
-
listen_dev(input0, "input", /*input0_input_handler*/ ctx[
|
|
8187
|
+
listen_dev(input0, "input", /*input0_input_handler*/ ctx[34]),
|
|
8172
8188
|
listen_dev(input0, "blur", /*validateAddress*/ ctx[22], false, false, false),
|
|
8173
|
-
listen_dev(input1, "input", /*input1_input_handler*/ ctx[
|
|
8189
|
+
listen_dev(input1, "input", /*input1_input_handler*/ ctx[35]),
|
|
8174
8190
|
listen_dev(input1, "blur", /*validatePostalCode*/ ctx[23], false, false, false),
|
|
8175
|
-
listen_dev(input2, "input", /*input2_input_handler*/ ctx[
|
|
8191
|
+
listen_dev(input2, "input", /*input2_input_handler*/ ctx[36]),
|
|
8176
8192
|
listen_dev(input2, "blur", /*validateCity*/ ctx[24], false, false, false),
|
|
8177
|
-
listen_dev(select0, "change", /*select0_change_handler*/ ctx[
|
|
8178
|
-
listen_dev(input3, "input", /*input3_input_handler*/ ctx[
|
|
8193
|
+
listen_dev(select0, "change", /*select0_change_handler*/ ctx[37]),
|
|
8194
|
+
listen_dev(input3, "input", /*input3_input_handler*/ ctx[38]),
|
|
8179
8195
|
listen_dev(input3, "blur", /*validateNationality*/ ctx[25], false, false, false),
|
|
8180
|
-
listen_dev(select1, "change", /*select1_change_handler*/ ctx[
|
|
8181
|
-
listen_dev(input4, "input", /*input4_input_handler*/ ctx[
|
|
8196
|
+
listen_dev(select1, "change", /*select1_change_handler*/ ctx[39]),
|
|
8197
|
+
listen_dev(input4, "input", /*input4_input_handler*/ ctx[40]),
|
|
8182
8198
|
listen_dev(input4, "keyup", /*validateMobile*/ ctx[26], false, false, false),
|
|
8183
8199
|
listen_dev(button1, "click", /*goNext*/ ctx[31], false, false, false)
|
|
8184
8200
|
];
|
|
@@ -8244,8 +8260,8 @@
|
|
|
8244
8260
|
attr_dev(div5, "class", div5_class_value);
|
|
8245
8261
|
}
|
|
8246
8262
|
|
|
8247
|
-
if (dirty[0] & /*countries*/
|
|
8248
|
-
each_value_1 = /*countries*/ ctx[
|
|
8263
|
+
if (dirty[0] & /*countries*/ 2048) {
|
|
8264
|
+
each_value_1 = /*countries*/ ctx[11];
|
|
8249
8265
|
validate_each_argument(each_value_1);
|
|
8250
8266
|
let i;
|
|
8251
8267
|
|
|
@@ -8268,12 +8284,12 @@
|
|
|
8268
8284
|
each_blocks_1.length = each_value_1.length;
|
|
8269
8285
|
}
|
|
8270
8286
|
|
|
8271
|
-
if (dirty[0] & /*countrySelected, countries*/
|
|
8272
|
-
select_option(select0, /*countrySelected*/ ctx[
|
|
8287
|
+
if (dirty[0] & /*countrySelected, countries*/ 6144) {
|
|
8288
|
+
select_option(select0, /*countrySelected*/ ctx[12]);
|
|
8273
8289
|
}
|
|
8274
8290
|
|
|
8275
|
-
if (dirty[0] & /*nationality*/
|
|
8276
|
-
set_input_value(input3, /*nationality*/ ctx[
|
|
8291
|
+
if (dirty[0] & /*nationality*/ 8192 && input3.value !== /*nationality*/ ctx[13]) {
|
|
8292
|
+
set_input_value(input3, /*nationality*/ ctx[13]);
|
|
8277
8293
|
}
|
|
8278
8294
|
|
|
8279
8295
|
if (/*invalidNationality*/ ctx[5]) {
|
|
@@ -8291,8 +8307,8 @@
|
|
|
8291
8307
|
attr_dev(div7, "class", div7_class_value);
|
|
8292
8308
|
}
|
|
8293
8309
|
|
|
8294
|
-
if (dirty[0] & /*mobilePrefixes*/
|
|
8295
|
-
each_value = /*mobilePrefixes*/ ctx[
|
|
8310
|
+
if (dirty[0] & /*mobilePrefixes*/ 32768) {
|
|
8311
|
+
each_value = /*mobilePrefixes*/ ctx[15];
|
|
8296
8312
|
validate_each_argument(each_value);
|
|
8297
8313
|
let i;
|
|
8298
8314
|
|
|
@@ -8315,12 +8331,12 @@
|
|
|
8315
8331
|
each_blocks.length = each_value.length;
|
|
8316
8332
|
}
|
|
8317
8333
|
|
|
8318
|
-
if (dirty[0] & /*mobilePrefixSelected, mobilePrefixes*/
|
|
8319
|
-
select_option(select1, /*mobilePrefixSelected*/ ctx[
|
|
8334
|
+
if (dirty[0] & /*mobilePrefixSelected, mobilePrefixes*/ 98304) {
|
|
8335
|
+
select_option(select1, /*mobilePrefixSelected*/ ctx[16]);
|
|
8320
8336
|
}
|
|
8321
8337
|
|
|
8322
|
-
if (dirty[0] & /*mobile*/
|
|
8323
|
-
set_input_value(input4, /*mobile*/ ctx[
|
|
8338
|
+
if (dirty[0] & /*mobile*/ 16384 && input4.value !== /*mobile*/ ctx[14]) {
|
|
8339
|
+
set_input_value(input4, /*mobile*/ ctx[14]);
|
|
8324
8340
|
}
|
|
8325
8341
|
|
|
8326
8342
|
if (/*invalidMobile*/ ctx[3]) {
|
|
@@ -8364,7 +8380,7 @@
|
|
|
8364
8380
|
if_block6 = null;
|
|
8365
8381
|
}
|
|
8366
8382
|
|
|
8367
|
-
if (dirty[0] & /*isValid*/
|
|
8383
|
+
if (dirty[0] & /*isValid*/ 2097152 && button1_disabled_value !== (button1_disabled_value = !/*isValid*/ ctx[21])) {
|
|
8368
8384
|
prop_dev(button1, "disabled", button1_disabled_value);
|
|
8369
8385
|
}
|
|
8370
8386
|
},
|
|
@@ -8412,6 +8428,7 @@
|
|
|
8412
8428
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
8413
8429
|
validate_slots("undefined", slots, []);
|
|
8414
8430
|
let { userconsentexists = false } = $$props;
|
|
8431
|
+
let { endpoint = "" } = $$props;
|
|
8415
8432
|
let invalidAddress = "";
|
|
8416
8433
|
let invalidPostalCode = "";
|
|
8417
8434
|
let invalidMobile = "";
|
|
@@ -8422,23 +8439,37 @@
|
|
|
8422
8439
|
let address = "";
|
|
8423
8440
|
let postalCode = "";
|
|
8424
8441
|
let city = "";
|
|
8425
|
-
let countries = [
|
|
8426
|
-
let countrySelected =
|
|
8442
|
+
let countries = [];
|
|
8443
|
+
let countrySelected = "";
|
|
8427
8444
|
let nationality = "";
|
|
8428
8445
|
let mobile = "";
|
|
8429
|
-
let mobilePrefixes = [
|
|
8430
|
-
let mobilePrefixSelected =
|
|
8446
|
+
let mobilePrefixes = [];
|
|
8447
|
+
let mobilePrefixSelected = "";
|
|
8431
8448
|
let consentOffers = false;
|
|
8432
8449
|
let consentOffersSms = false;
|
|
8433
8450
|
let consentOffersEmail = false;
|
|
8434
8451
|
let consentTerms = false;
|
|
8435
8452
|
let isValid = false;
|
|
8436
8453
|
|
|
8454
|
+
const getCountriesList = () => {
|
|
8455
|
+
fetch(`${endpoint}/player/countries`).then(res => res.json()).then(data => {
|
|
8456
|
+
$$invalidate(11, countries = data.countries);
|
|
8457
|
+
$$invalidate(12, countrySelected = countries[0].Alpha2Code);
|
|
8458
|
+
});
|
|
8459
|
+
};
|
|
8460
|
+
|
|
8461
|
+
const getPhoneCodes = () => {
|
|
8462
|
+
fetch(`${endpoint}/player/phonecodes`).then(res => res.json()).then(data => {
|
|
8463
|
+
$$invalidate(15, mobilePrefixes = data.phoneCodes);
|
|
8464
|
+
$$invalidate(16, mobilePrefixSelected = mobilePrefixes[0].Prefix);
|
|
8465
|
+
});
|
|
8466
|
+
};
|
|
8467
|
+
|
|
8437
8468
|
const checkIsValid = () => {
|
|
8438
|
-
$$invalidate(
|
|
8469
|
+
$$invalidate(21, isValid = !(invalidAddress || invalidPostalCode || invalidCity || invalidNationality || invalidMobile || showError || userconsentexists && consentTerms));
|
|
8439
8470
|
|
|
8440
8471
|
if (address.length <= 0 || postalCode.length <= 0 || city.length <= 0 || nationality.length <= 0 || mobile.length <= 0) {
|
|
8441
|
-
$$invalidate(
|
|
8472
|
+
$$invalidate(21, isValid = false);
|
|
8442
8473
|
}
|
|
8443
8474
|
};
|
|
8444
8475
|
|
|
@@ -8509,35 +8540,35 @@
|
|
|
8509
8540
|
|
|
8510
8541
|
const toggleOffers = () => {
|
|
8511
8542
|
if (consentOffers === false) {
|
|
8512
|
-
$$invalidate(
|
|
8543
|
+
$$invalidate(17, consentOffers = true);
|
|
8513
8544
|
} else {
|
|
8514
|
-
$$invalidate(
|
|
8515
|
-
$$invalidate(
|
|
8516
|
-
$$invalidate(
|
|
8545
|
+
$$invalidate(17, consentOffers = false);
|
|
8546
|
+
$$invalidate(18, consentOffersSms = false);
|
|
8547
|
+
$$invalidate(19, consentOffersEmail = false);
|
|
8517
8548
|
}
|
|
8518
8549
|
};
|
|
8519
8550
|
|
|
8520
8551
|
const toggleOffersSms = () => {
|
|
8521
8552
|
if (consentOffersSms === false) {
|
|
8522
|
-
$$invalidate(
|
|
8553
|
+
$$invalidate(18, consentOffersSms = true);
|
|
8523
8554
|
} else {
|
|
8524
|
-
$$invalidate(
|
|
8555
|
+
$$invalidate(18, consentOffersSms = false);
|
|
8525
8556
|
}
|
|
8526
8557
|
};
|
|
8527
8558
|
|
|
8528
8559
|
const toggleOffersEmail = () => {
|
|
8529
8560
|
if (consentOffersEmail === false) {
|
|
8530
|
-
$$invalidate(
|
|
8561
|
+
$$invalidate(19, consentOffersEmail = true);
|
|
8531
8562
|
} else {
|
|
8532
|
-
$$invalidate(
|
|
8563
|
+
$$invalidate(19, consentOffersEmail = false);
|
|
8533
8564
|
}
|
|
8534
8565
|
};
|
|
8535
8566
|
|
|
8536
8567
|
const toggleTerms = () => {
|
|
8537
8568
|
if (consentTerms === false) {
|
|
8538
|
-
$$invalidate(
|
|
8569
|
+
$$invalidate(20, consentTerms = true);
|
|
8539
8570
|
} else {
|
|
8540
|
-
$$invalidate(
|
|
8571
|
+
$$invalidate(20, consentTerms = false);
|
|
8541
8572
|
}
|
|
8542
8573
|
|
|
8543
8574
|
checkIsValid();
|
|
@@ -8611,13 +8642,13 @@
|
|
|
8611
8642
|
$$invalidate(8, address = e.data.userData.address1);
|
|
8612
8643
|
$$invalidate(9, postalCode = e.data.userData.postalCode);
|
|
8613
8644
|
$$invalidate(10, city = e.data.userData.city);
|
|
8614
|
-
$$invalidate(
|
|
8615
|
-
$$invalidate(
|
|
8616
|
-
$$invalidate(
|
|
8617
|
-
$$invalidate(
|
|
8618
|
-
$$invalidate(
|
|
8619
|
-
$$invalidate(
|
|
8620
|
-
$$invalidate(
|
|
8645
|
+
$$invalidate(12, countrySelected = e.data.userData.country);
|
|
8646
|
+
$$invalidate(13, nationality = e.data.userData.nationality);
|
|
8647
|
+
$$invalidate(16, mobilePrefixSelected = e.data.userData.mobile.prefix);
|
|
8648
|
+
$$invalidate(14, mobile = e.data.userData.mobile.number);
|
|
8649
|
+
$$invalidate(18, consentOffersSms = e.data.userData.userConsents.additionalProp1);
|
|
8650
|
+
$$invalidate(19, consentOffersEmail = e.data.userData.userConsents.additionalProp2);
|
|
8651
|
+
$$invalidate(20, consentTerms = e.data.userData.userConsents.additionalProp3);
|
|
8621
8652
|
checkIsValid();
|
|
8622
8653
|
break;
|
|
8623
8654
|
case "ShowRegistrationError":
|
|
@@ -8635,7 +8666,7 @@
|
|
|
8635
8666
|
};
|
|
8636
8667
|
});
|
|
8637
8668
|
|
|
8638
|
-
const writable_props = ["userconsentexists"];
|
|
8669
|
+
const writable_props = ["userconsentexists", "endpoint"];
|
|
8639
8670
|
|
|
8640
8671
|
Object.keys($$props).forEach(key => {
|
|
8641
8672
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
@@ -8658,24 +8689,24 @@
|
|
|
8658
8689
|
|
|
8659
8690
|
function select0_change_handler() {
|
|
8660
8691
|
countrySelected = select_value(this);
|
|
8661
|
-
$$invalidate(
|
|
8662
|
-
$$invalidate(
|
|
8692
|
+
$$invalidate(12, countrySelected);
|
|
8693
|
+
$$invalidate(11, countries);
|
|
8663
8694
|
}
|
|
8664
8695
|
|
|
8665
8696
|
function input3_input_handler() {
|
|
8666
8697
|
nationality = this.value;
|
|
8667
|
-
$$invalidate(
|
|
8698
|
+
$$invalidate(13, nationality);
|
|
8668
8699
|
}
|
|
8669
8700
|
|
|
8670
8701
|
function select1_change_handler() {
|
|
8671
8702
|
mobilePrefixSelected = select_value(this);
|
|
8672
|
-
$$invalidate(
|
|
8673
|
-
$$invalidate(
|
|
8703
|
+
$$invalidate(16, mobilePrefixSelected);
|
|
8704
|
+
$$invalidate(15, mobilePrefixes);
|
|
8674
8705
|
}
|
|
8675
8706
|
|
|
8676
8707
|
function input4_input_handler() {
|
|
8677
8708
|
mobile = this.value;
|
|
8678
|
-
$$invalidate(
|
|
8709
|
+
$$invalidate(14, mobile);
|
|
8679
8710
|
}
|
|
8680
8711
|
|
|
8681
8712
|
const click_handler = () => toggleOffers();
|
|
@@ -8685,11 +8716,13 @@
|
|
|
8685
8716
|
|
|
8686
8717
|
$$self.$$set = $$props => {
|
|
8687
8718
|
if ("userconsentexists" in $$props) $$invalidate(0, userconsentexists = $$props.userconsentexists);
|
|
8719
|
+
if ("endpoint" in $$props) $$invalidate(33, endpoint = $$props.endpoint);
|
|
8688
8720
|
};
|
|
8689
8721
|
|
|
8690
8722
|
$$self.$capture_state = () => ({
|
|
8691
8723
|
onMount,
|
|
8692
8724
|
userconsentexists,
|
|
8725
|
+
endpoint,
|
|
8693
8726
|
invalidAddress,
|
|
8694
8727
|
invalidPostalCode,
|
|
8695
8728
|
invalidMobile,
|
|
@@ -8712,6 +8745,8 @@
|
|
|
8712
8745
|
consentTerms,
|
|
8713
8746
|
isValid,
|
|
8714
8747
|
captchaKey,
|
|
8748
|
+
getCountriesList,
|
|
8749
|
+
getPhoneCodes,
|
|
8715
8750
|
checkIsValid,
|
|
8716
8751
|
checkAddress,
|
|
8717
8752
|
validateAddress,
|
|
@@ -8735,6 +8770,7 @@
|
|
|
8735
8770
|
|
|
8736
8771
|
$$self.$inject_state = $$props => {
|
|
8737
8772
|
if ("userconsentexists" in $$props) $$invalidate(0, userconsentexists = $$props.userconsentexists);
|
|
8773
|
+
if ("endpoint" in $$props) $$invalidate(33, endpoint = $$props.endpoint);
|
|
8738
8774
|
if ("invalidAddress" in $$props) $$invalidate(1, invalidAddress = $$props.invalidAddress);
|
|
8739
8775
|
if ("invalidPostalCode" in $$props) $$invalidate(2, invalidPostalCode = $$props.invalidPostalCode);
|
|
8740
8776
|
if ("invalidMobile" in $$props) $$invalidate(3, invalidMobile = $$props.invalidMobile);
|
|
@@ -8745,23 +8781,33 @@
|
|
|
8745
8781
|
if ("address" in $$props) $$invalidate(8, address = $$props.address);
|
|
8746
8782
|
if ("postalCode" in $$props) $$invalidate(9, postalCode = $$props.postalCode);
|
|
8747
8783
|
if ("city" in $$props) $$invalidate(10, city = $$props.city);
|
|
8748
|
-
if ("countries" in $$props) $$invalidate(
|
|
8749
|
-
if ("countrySelected" in $$props) $$invalidate(
|
|
8750
|
-
if ("nationality" in $$props) $$invalidate(
|
|
8751
|
-
if ("mobile" in $$props) $$invalidate(
|
|
8752
|
-
if ("mobilePrefixes" in $$props) $$invalidate(
|
|
8753
|
-
if ("mobilePrefixSelected" in $$props) $$invalidate(
|
|
8754
|
-
if ("consentOffers" in $$props) $$invalidate(
|
|
8755
|
-
if ("consentOffersSms" in $$props) $$invalidate(
|
|
8756
|
-
if ("consentOffersEmail" in $$props) $$invalidate(
|
|
8757
|
-
if ("consentTerms" in $$props) $$invalidate(
|
|
8758
|
-
if ("isValid" in $$props) $$invalidate(
|
|
8784
|
+
if ("countries" in $$props) $$invalidate(11, countries = $$props.countries);
|
|
8785
|
+
if ("countrySelected" in $$props) $$invalidate(12, countrySelected = $$props.countrySelected);
|
|
8786
|
+
if ("nationality" in $$props) $$invalidate(13, nationality = $$props.nationality);
|
|
8787
|
+
if ("mobile" in $$props) $$invalidate(14, mobile = $$props.mobile);
|
|
8788
|
+
if ("mobilePrefixes" in $$props) $$invalidate(15, mobilePrefixes = $$props.mobilePrefixes);
|
|
8789
|
+
if ("mobilePrefixSelected" in $$props) $$invalidate(16, mobilePrefixSelected = $$props.mobilePrefixSelected);
|
|
8790
|
+
if ("consentOffers" in $$props) $$invalidate(17, consentOffers = $$props.consentOffers);
|
|
8791
|
+
if ("consentOffersSms" in $$props) $$invalidate(18, consentOffersSms = $$props.consentOffersSms);
|
|
8792
|
+
if ("consentOffersEmail" in $$props) $$invalidate(19, consentOffersEmail = $$props.consentOffersEmail);
|
|
8793
|
+
if ("consentTerms" in $$props) $$invalidate(20, consentTerms = $$props.consentTerms);
|
|
8794
|
+
if ("isValid" in $$props) $$invalidate(21, isValid = $$props.isValid);
|
|
8759
8795
|
};
|
|
8760
8796
|
|
|
8761
8797
|
if ($$props && "$$inject" in $$props) {
|
|
8762
8798
|
$$self.$inject_state($$props.$$inject);
|
|
8763
8799
|
}
|
|
8764
8800
|
|
|
8801
|
+
$$self.$$.update = () => {
|
|
8802
|
+
if ($$self.$$.dirty[1] & /*endpoint*/ 4) {
|
|
8803
|
+
endpoint && getCountriesList();
|
|
8804
|
+
}
|
|
8805
|
+
|
|
8806
|
+
if ($$self.$$.dirty[1] & /*endpoint*/ 4) {
|
|
8807
|
+
endpoint && getPhoneCodes();
|
|
8808
|
+
}
|
|
8809
|
+
};
|
|
8810
|
+
|
|
8765
8811
|
return [
|
|
8766
8812
|
userconsentexists,
|
|
8767
8813
|
invalidAddress,
|
|
@@ -8774,17 +8820,17 @@
|
|
|
8774
8820
|
address,
|
|
8775
8821
|
postalCode,
|
|
8776
8822
|
city,
|
|
8823
|
+
countries,
|
|
8777
8824
|
countrySelected,
|
|
8778
8825
|
nationality,
|
|
8779
8826
|
mobile,
|
|
8827
|
+
mobilePrefixes,
|
|
8780
8828
|
mobilePrefixSelected,
|
|
8781
8829
|
consentOffers,
|
|
8782
8830
|
consentOffersSms,
|
|
8783
8831
|
consentOffersEmail,
|
|
8784
8832
|
consentTerms,
|
|
8785
8833
|
isValid,
|
|
8786
|
-
countries,
|
|
8787
|
-
mobilePrefixes,
|
|
8788
8834
|
validateAddress,
|
|
8789
8835
|
validatePostalCode,
|
|
8790
8836
|
validateCity,
|
|
@@ -8796,6 +8842,7 @@
|
|
|
8796
8842
|
toggleTerms,
|
|
8797
8843
|
goNext,
|
|
8798
8844
|
goBack,
|
|
8845
|
+
endpoint,
|
|
8799
8846
|
input0_input_handler,
|
|
8800
8847
|
input1_input_handler,
|
|
8801
8848
|
input2_input_handler,
|
|
@@ -8825,7 +8872,7 @@
|
|
|
8825
8872
|
instance$1,
|
|
8826
8873
|
create_fragment$1,
|
|
8827
8874
|
safe_not_equal,
|
|
8828
|
-
{ userconsentexists: 0 },
|
|
8875
|
+
{ userconsentexists: 0, endpoint: 33 },
|
|
8829
8876
|
[-1, -1]
|
|
8830
8877
|
);
|
|
8831
8878
|
|
|
@@ -8842,7 +8889,7 @@
|
|
|
8842
8889
|
}
|
|
8843
8890
|
|
|
8844
8891
|
static get observedAttributes() {
|
|
8845
|
-
return ["userconsentexists"];
|
|
8892
|
+
return ["userconsentexists", "endpoint"];
|
|
8846
8893
|
}
|
|
8847
8894
|
|
|
8848
8895
|
get userconsentexists() {
|
|
@@ -8853,6 +8900,15 @@
|
|
|
8853
8900
|
this.$set({ userconsentexists });
|
|
8854
8901
|
flush();
|
|
8855
8902
|
}
|
|
8903
|
+
|
|
8904
|
+
get endpoint() {
|
|
8905
|
+
return this.$$.ctx[33];
|
|
8906
|
+
}
|
|
8907
|
+
|
|
8908
|
+
set endpoint(endpoint) {
|
|
8909
|
+
this.$set({ endpoint });
|
|
8910
|
+
flush();
|
|
8911
|
+
}
|
|
8856
8912
|
}
|
|
8857
8913
|
|
|
8858
8914
|
!customElements.get('general-player-register-form-step3') && customElements.define('general-player-register-form-step3', GeneralPlayerRegisterFormStep3);
|
|
@@ -8871,12 +8927,12 @@
|
|
|
8871
8927
|
let t2;
|
|
8872
8928
|
let t3;
|
|
8873
8929
|
let t4;
|
|
8874
|
-
let if_block0 = !/*isMobile*/ ctx[
|
|
8875
|
-
let if_block1 = (/*showRegisterStepOne*/ ctx[
|
|
8876
|
-
let if_block2 = /*showRegisterStepOne*/ ctx[
|
|
8877
|
-
let if_block3 = /*showRegisterStepTwo*/ ctx[
|
|
8878
|
-
let if_block4 = /*showRegisterStepThree*/ ctx[
|
|
8879
|
-
let if_block5 = /*showConfirmation*/ ctx[
|
|
8930
|
+
let if_block0 = !/*isMobile*/ ctx[12] && create_if_block_6(ctx);
|
|
8931
|
+
let if_block1 = (/*showRegisterStepOne*/ ctx[2] || /*showRegisterStepTwo*/ ctx[3] || /*showRegisterStepThree*/ ctx[4]) && create_if_block_5(ctx);
|
|
8932
|
+
let if_block2 = /*showRegisterStepOne*/ ctx[2] && create_if_block_4(ctx);
|
|
8933
|
+
let if_block3 = /*showRegisterStepTwo*/ ctx[3] && create_if_block_3(ctx);
|
|
8934
|
+
let if_block4 = /*showRegisterStepThree*/ ctx[4] && create_if_block_2(ctx);
|
|
8935
|
+
let if_block5 = /*showConfirmation*/ ctx[5] && create_if_block_1(ctx);
|
|
8880
8936
|
|
|
8881
8937
|
const block = {
|
|
8882
8938
|
c: function create() {
|
|
@@ -8894,7 +8950,7 @@
|
|
|
8894
8950
|
t4 = space();
|
|
8895
8951
|
if (if_block5) if_block5.c();
|
|
8896
8952
|
|
|
8897
|
-
attr_dev(div0, "class", "RegisterFormContainer " + (/*isMobile*/ ctx[
|
|
8953
|
+
attr_dev(div0, "class", "RegisterFormContainer " + (/*isMobile*/ ctx[12]
|
|
8898
8954
|
? "RegisterFormContainerMobile"
|
|
8899
8955
|
: ""));
|
|
8900
8956
|
|
|
@@ -8918,9 +8974,9 @@
|
|
|
8918
8974
|
if (if_block5) if_block5.m(div0, null);
|
|
8919
8975
|
},
|
|
8920
8976
|
p: function update(ctx, dirty) {
|
|
8921
|
-
if (!/*isMobile*/ ctx[
|
|
8977
|
+
if (!/*isMobile*/ ctx[12]) if_block0.p(ctx, dirty);
|
|
8922
8978
|
|
|
8923
|
-
if (/*showRegisterStepOne*/ ctx[
|
|
8979
|
+
if (/*showRegisterStepOne*/ ctx[2] || /*showRegisterStepTwo*/ ctx[3] || /*showRegisterStepThree*/ ctx[4]) {
|
|
8924
8980
|
if (if_block1) {
|
|
8925
8981
|
if_block1.p(ctx, dirty);
|
|
8926
8982
|
} else {
|
|
@@ -8933,7 +8989,7 @@
|
|
|
8933
8989
|
if_block1 = null;
|
|
8934
8990
|
}
|
|
8935
8991
|
|
|
8936
|
-
if (/*showRegisterStepOne*/ ctx[
|
|
8992
|
+
if (/*showRegisterStepOne*/ ctx[2]) {
|
|
8937
8993
|
if (if_block2) ; else {
|
|
8938
8994
|
if_block2 = create_if_block_4(ctx);
|
|
8939
8995
|
if_block2.c();
|
|
@@ -8944,7 +9000,7 @@
|
|
|
8944
9000
|
if_block2 = null;
|
|
8945
9001
|
}
|
|
8946
9002
|
|
|
8947
|
-
if (/*showRegisterStepTwo*/ ctx[
|
|
9003
|
+
if (/*showRegisterStepTwo*/ ctx[3]) {
|
|
8948
9004
|
if (if_block3) ; else {
|
|
8949
9005
|
if_block3 = create_if_block_3(ctx);
|
|
8950
9006
|
if_block3.c();
|
|
@@ -8955,7 +9011,7 @@
|
|
|
8955
9011
|
if_block3 = null;
|
|
8956
9012
|
}
|
|
8957
9013
|
|
|
8958
|
-
if (/*showRegisterStepThree*/ ctx[
|
|
9014
|
+
if (/*showRegisterStepThree*/ ctx[4]) {
|
|
8959
9015
|
if (if_block4) {
|
|
8960
9016
|
if_block4.p(ctx, dirty);
|
|
8961
9017
|
} else {
|
|
@@ -8968,7 +9024,7 @@
|
|
|
8968
9024
|
if_block4 = null;
|
|
8969
9025
|
}
|
|
8970
9026
|
|
|
8971
|
-
if (/*showConfirmation*/ ctx[
|
|
9027
|
+
if (/*showConfirmation*/ ctx[5]) {
|
|
8972
9028
|
if (if_block5) {
|
|
8973
9029
|
if_block5.p(ctx, dirty);
|
|
8974
9030
|
} else {
|
|
@@ -9041,15 +9097,15 @@
|
|
|
9041
9097
|
c: function create() {
|
|
9042
9098
|
div = element("div");
|
|
9043
9099
|
attr_dev(div, "class", "RegisterFormImage");
|
|
9044
|
-
set_style(div, "background-image", "url('" + /*imagedesktop*/ ctx[
|
|
9100
|
+
set_style(div, "background-image", "url('" + /*imagedesktop*/ ctx[1] + "')");
|
|
9045
9101
|
add_location(div, file, 201, 6, 7581);
|
|
9046
9102
|
},
|
|
9047
9103
|
m: function mount(target, anchor) {
|
|
9048
9104
|
insert_dev(target, div, anchor);
|
|
9049
9105
|
},
|
|
9050
9106
|
p: function update(ctx, dirty) {
|
|
9051
|
-
if (dirty[0] & /*imagedesktop*/
|
|
9052
|
-
set_style(div, "background-image", "url('" + /*imagedesktop*/ ctx[
|
|
9107
|
+
if (dirty[0] & /*imagedesktop*/ 2) {
|
|
9108
|
+
set_style(div, "background-image", "url('" + /*imagedesktop*/ ctx[1] + "')");
|
|
9053
9109
|
}
|
|
9054
9110
|
},
|
|
9055
9111
|
d: function destroy(detaching) {
|
|
@@ -9089,19 +9145,19 @@
|
|
|
9089
9145
|
t1 = space();
|
|
9090
9146
|
div2 = element("div");
|
|
9091
9147
|
|
|
9092
|
-
attr_dev(div0, "class", div0_class_value = "RegisterFirstStepDash " + (/*showRegisterStepOne*/ ctx[
|
|
9148
|
+
attr_dev(div0, "class", div0_class_value = "RegisterFirstStepDash " + (/*showRegisterStepOne*/ ctx[2] || !/*showRegisterStepOne*/ ctx[2] && /*showRegisterStepTwo*/ ctx[3] || !/*showRegisterStepOne*/ ctx[2] && !/*showRegisterStepTwo*/ ctx[3] && /*showRegisterStepThree*/ ctx[4]
|
|
9093
9149
|
? "RegisterStepDashColor"
|
|
9094
9150
|
: ""));
|
|
9095
9151
|
|
|
9096
9152
|
add_location(div0, file, 206, 10, 7915);
|
|
9097
9153
|
|
|
9098
|
-
attr_dev(div1, "class", div1_class_value = "RegisterSecondStepDash " + (/*showRegisterStepTwo*/ ctx[
|
|
9154
|
+
attr_dev(div1, "class", div1_class_value = "RegisterSecondStepDash " + (/*showRegisterStepTwo*/ ctx[3] || !/*showRegisterStepOne*/ ctx[2] && !/*showRegisterStepTwo*/ ctx[3] && /*showRegisterStepThree*/ ctx[4]
|
|
9099
9155
|
? "RegisterStepDashColor"
|
|
9100
9156
|
: ""));
|
|
9101
9157
|
|
|
9102
9158
|
add_location(div1, file, 207, 10, 8144);
|
|
9103
9159
|
|
|
9104
|
-
attr_dev(div2, "class", div2_class_value = "RegisterThirdStepDash " + (/*showRegisterStepThree*/ ctx[
|
|
9160
|
+
attr_dev(div2, "class", div2_class_value = "RegisterThirdStepDash " + (/*showRegisterStepThree*/ ctx[4]
|
|
9105
9161
|
? "RegisterStepDashColor"
|
|
9106
9162
|
: ""));
|
|
9107
9163
|
|
|
@@ -9119,19 +9175,19 @@
|
|
|
9119
9175
|
/*div3_binding*/ ctx[18](div3);
|
|
9120
9176
|
},
|
|
9121
9177
|
p: function update(ctx, dirty) {
|
|
9122
|
-
if (dirty[0] & /*showRegisterStepOne, showRegisterStepTwo, showRegisterStepThree*/
|
|
9178
|
+
if (dirty[0] & /*showRegisterStepOne, showRegisterStepTwo, showRegisterStepThree*/ 28 && div0_class_value !== (div0_class_value = "RegisterFirstStepDash " + (/*showRegisterStepOne*/ ctx[2] || !/*showRegisterStepOne*/ ctx[2] && /*showRegisterStepTwo*/ ctx[3] || !/*showRegisterStepOne*/ ctx[2] && !/*showRegisterStepTwo*/ ctx[3] && /*showRegisterStepThree*/ ctx[4]
|
|
9123
9179
|
? "RegisterStepDashColor"
|
|
9124
9180
|
: ""))) {
|
|
9125
9181
|
attr_dev(div0, "class", div0_class_value);
|
|
9126
9182
|
}
|
|
9127
9183
|
|
|
9128
|
-
if (dirty[0] & /*showRegisterStepTwo, showRegisterStepOne, showRegisterStepThree*/
|
|
9184
|
+
if (dirty[0] & /*showRegisterStepTwo, showRegisterStepOne, showRegisterStepThree*/ 28 && div1_class_value !== (div1_class_value = "RegisterSecondStepDash " + (/*showRegisterStepTwo*/ ctx[3] || !/*showRegisterStepOne*/ ctx[2] && !/*showRegisterStepTwo*/ ctx[3] && /*showRegisterStepThree*/ ctx[4]
|
|
9129
9185
|
? "RegisterStepDashColor"
|
|
9130
9186
|
: ""))) {
|
|
9131
9187
|
attr_dev(div1, "class", div1_class_value);
|
|
9132
9188
|
}
|
|
9133
9189
|
|
|
9134
|
-
if (dirty[0] & /*showRegisterStepThree*/
|
|
9190
|
+
if (dirty[0] & /*showRegisterStepThree*/ 16 && div2_class_value !== (div2_class_value = "RegisterThirdStepDash " + (/*showRegisterStepThree*/ ctx[4]
|
|
9135
9191
|
? "RegisterStepDashColor"
|
|
9136
9192
|
: ""))) {
|
|
9137
9193
|
attr_dev(div2, "class", div2_class_value);
|
|
@@ -9229,7 +9285,8 @@
|
|
|
9229
9285
|
c: function create() {
|
|
9230
9286
|
div = element("div");
|
|
9231
9287
|
general_player_register_form_step3 = element("general-player-register-form-step3");
|
|
9232
|
-
set_custom_element_data(general_player_register_form_step3, "userconsentsexist", /*userconsentsexist*/ ctx[
|
|
9288
|
+
set_custom_element_data(general_player_register_form_step3, "userconsentsexist", /*userconsentsexist*/ ctx[9]);
|
|
9289
|
+
set_custom_element_data(general_player_register_form_step3, "endpoint", /*endpoint*/ ctx[0]);
|
|
9233
9290
|
add_location(general_player_register_form_step3, file, 223, 10, 8829);
|
|
9234
9291
|
attr_dev(div, "class", "RegisterFormStep3");
|
|
9235
9292
|
add_location(div, file, 222, 8, 8787);
|
|
@@ -9239,8 +9296,12 @@
|
|
|
9239
9296
|
append_dev(div, general_player_register_form_step3);
|
|
9240
9297
|
},
|
|
9241
9298
|
p: function update(ctx, dirty) {
|
|
9242
|
-
if (dirty[0] & /*userconsentsexist*/
|
|
9243
|
-
set_custom_element_data(general_player_register_form_step3, "userconsentsexist", /*userconsentsexist*/ ctx[
|
|
9299
|
+
if (dirty[0] & /*userconsentsexist*/ 512) {
|
|
9300
|
+
set_custom_element_data(general_player_register_form_step3, "userconsentsexist", /*userconsentsexist*/ ctx[9]);
|
|
9301
|
+
}
|
|
9302
|
+
|
|
9303
|
+
if (dirty[0] & /*endpoint*/ 1) {
|
|
9304
|
+
set_custom_element_data(general_player_register_form_step3, "endpoint", /*endpoint*/ ctx[0]);
|
|
9244
9305
|
}
|
|
9245
9306
|
},
|
|
9246
9307
|
d: function destroy(detaching) {
|
|
@@ -9291,34 +9352,34 @@
|
|
|
9291
9352
|
path = svg_element("path");
|
|
9292
9353
|
t1 = space();
|
|
9293
9354
|
h2 = element("h2");
|
|
9294
|
-
t2 = text(/*accountCreationTitle*/ ctx[
|
|
9355
|
+
t2 = text(/*accountCreationTitle*/ ctx[6]);
|
|
9295
9356
|
t3 = space();
|
|
9296
9357
|
p0 = element("p");
|
|
9297
|
-
t4 = text(/*accountCreationSubTitle*/ ctx[
|
|
9358
|
+
t4 = text(/*accountCreationSubTitle*/ ctx[7]);
|
|
9298
9359
|
t5 = space();
|
|
9299
9360
|
p1 = element("p");
|
|
9300
|
-
t6 = text(/*accountCreationMessage*/ ctx[
|
|
9361
|
+
t6 = text(/*accountCreationMessage*/ ctx[8]);
|
|
9301
9362
|
t7 = space();
|
|
9302
9363
|
button = element("button");
|
|
9303
9364
|
button.textContent = "Go To Login";
|
|
9304
|
-
add_location(style, file, 228, 79,
|
|
9305
|
-
add_location(defs, file, 228, 73,
|
|
9365
|
+
add_location(style, file, 228, 79, 9077);
|
|
9366
|
+
add_location(defs, file, 228, 73, 9071);
|
|
9306
9367
|
attr_dev(path, "class", "a");
|
|
9307
9368
|
attr_dev(path, "d", "M29.325,51,0,21.675l5.95-5.95,23.375,22.95L68,0l5.95,5.95Z");
|
|
9308
|
-
add_location(path, file, 228, 118,
|
|
9369
|
+
add_location(path, file, 228, 118, 9116);
|
|
9309
9370
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
9310
9371
|
attr_dev(svg, "viewBox", "0 0 73.95 51");
|
|
9311
|
-
add_location(svg, file, 228, 10,
|
|
9372
|
+
add_location(svg, file, 228, 10, 9008);
|
|
9312
9373
|
attr_dev(h2, "class", "RegisterConfirmationTitle");
|
|
9313
|
-
add_location(h2, file, 229, 10,
|
|
9374
|
+
add_location(h2, file, 229, 10, 9213);
|
|
9314
9375
|
attr_dev(p0, "class", "RegisterConfirmationSubtitle");
|
|
9315
|
-
add_location(p0, file, 230, 10,
|
|
9376
|
+
add_location(p0, file, 230, 10, 9289);
|
|
9316
9377
|
attr_dev(p1, "class", "RegisterConfirmationNote");
|
|
9317
|
-
add_location(p1, file, 231, 10,
|
|
9378
|
+
add_location(p1, file, 231, 10, 9369);
|
|
9318
9379
|
attr_dev(button, "class", "RegisterConfirmationGoToLogin");
|
|
9319
|
-
add_location(button, file, 232, 10,
|
|
9380
|
+
add_location(button, file, 232, 10, 9444);
|
|
9320
9381
|
attr_dev(div, "class", "RegisterConfirmation");
|
|
9321
|
-
add_location(div, file, 227, 8,
|
|
9382
|
+
add_location(div, file, 227, 8, 8963);
|
|
9322
9383
|
},
|
|
9323
9384
|
m: function mount(target, anchor) {
|
|
9324
9385
|
insert_dev(target, div, anchor);
|
|
@@ -9340,14 +9401,14 @@
|
|
|
9340
9401
|
append_dev(div, button);
|
|
9341
9402
|
|
|
9342
9403
|
if (!mounted) {
|
|
9343
|
-
dispose = listen_dev(button, "click", /*switchToLogin*/ ctx[
|
|
9404
|
+
dispose = listen_dev(button, "click", /*switchToLogin*/ ctx[13], false, false, false);
|
|
9344
9405
|
mounted = true;
|
|
9345
9406
|
}
|
|
9346
9407
|
},
|
|
9347
9408
|
p: function update(ctx, dirty) {
|
|
9348
|
-
if (dirty[0] & /*accountCreationTitle*/
|
|
9349
|
-
if (dirty[0] & /*accountCreationSubTitle*/
|
|
9350
|
-
if (dirty[0] & /*accountCreationMessage*/
|
|
9409
|
+
if (dirty[0] & /*accountCreationTitle*/ 64) set_data_dev(t2, /*accountCreationTitle*/ ctx[6]);
|
|
9410
|
+
if (dirty[0] & /*accountCreationSubTitle*/ 128) set_data_dev(t4, /*accountCreationSubTitle*/ ctx[7]);
|
|
9411
|
+
if (dirty[0] & /*accountCreationMessage*/ 256) set_data_dev(t6, /*accountCreationMessage*/ ctx[8]);
|
|
9351
9412
|
},
|
|
9352
9413
|
d: function destroy(detaching) {
|
|
9353
9414
|
if (detaching) detach_dev(div);
|
|
@@ -9371,7 +9432,7 @@
|
|
|
9371
9432
|
let if_block_anchor;
|
|
9372
9433
|
|
|
9373
9434
|
function select_block_type(ctx, dirty) {
|
|
9374
|
-
if (/*isLoading*/ ctx[
|
|
9435
|
+
if (/*isLoading*/ ctx[11]) return create_if_block;
|
|
9375
9436
|
return create_else_block;
|
|
9376
9437
|
}
|
|
9377
9438
|
|
|
@@ -9482,9 +9543,9 @@
|
|
|
9482
9543
|
const verifyUserConsents = () => {
|
|
9483
9544
|
fetch(`${endpoint}/player/consentRequirements`).then(res => res.json()).then(data => {
|
|
9484
9545
|
if (data.items.length > 0) {
|
|
9485
|
-
$$invalidate(
|
|
9546
|
+
$$invalidate(9, userconsentsexist = true);
|
|
9486
9547
|
} else {
|
|
9487
|
-
$$invalidate(
|
|
9548
|
+
$$invalidate(9, userconsentsexist = false);
|
|
9488
9549
|
}
|
|
9489
9550
|
});
|
|
9490
9551
|
};
|
|
@@ -9492,9 +9553,9 @@
|
|
|
9492
9553
|
const getCmsData = () => {
|
|
9493
9554
|
fetch(cmsendpoint).then(res => res.json()).then(data => {
|
|
9494
9555
|
cmsData = data.REGULAR_REGISTRATION[0];
|
|
9495
|
-
$$invalidate(
|
|
9496
|
-
$$invalidate(
|
|
9497
|
-
$$invalidate(
|
|
9556
|
+
$$invalidate(6, accountCreationTitle = cmsData.congrats);
|
|
9557
|
+
$$invalidate(7, accountCreationSubTitle = cmsData.accCreated);
|
|
9558
|
+
$$invalidate(8, accountCreationMessage = cmsData.accCreatedMsg);
|
|
9498
9559
|
}).catch(err => {
|
|
9499
9560
|
console.error(err);
|
|
9500
9561
|
});
|
|
@@ -9555,8 +9616,8 @@
|
|
|
9555
9616
|
case "RegisterStepOne":
|
|
9556
9617
|
createData("RegisterStepOne", e.data.registerStepOneData);
|
|
9557
9618
|
scrollTop();
|
|
9558
|
-
$$invalidate(
|
|
9559
|
-
$$invalidate(
|
|
9619
|
+
$$invalidate(2, showRegisterStepOne = false);
|
|
9620
|
+
$$invalidate(3, showRegisterStepTwo = true);
|
|
9560
9621
|
if (stepTwoVisited == false) {
|
|
9561
9622
|
stepTwoVisited = true;
|
|
9562
9623
|
} else {
|
|
@@ -9566,8 +9627,8 @@
|
|
|
9566
9627
|
case "RegisterStepTwo":
|
|
9567
9628
|
createData("RegisterStepTwo", e.data.registerStepTwoData);
|
|
9568
9629
|
scrollTop();
|
|
9569
|
-
$$invalidate(
|
|
9570
|
-
$$invalidate(
|
|
9630
|
+
$$invalidate(3, showRegisterStepTwo = false);
|
|
9631
|
+
$$invalidate(4, showRegisterStepThree = true);
|
|
9571
9632
|
if (stepThreeVisited == false) {
|
|
9572
9633
|
stepThreeVisited = true;
|
|
9573
9634
|
} else {
|
|
@@ -9581,15 +9642,15 @@
|
|
|
9581
9642
|
case "GoBackStepTwo":
|
|
9582
9643
|
createData("RegisterStepTwo", e.data.registerStepTwoData);
|
|
9583
9644
|
scrollTop();
|
|
9584
|
-
$$invalidate(
|
|
9585
|
-
$$invalidate(
|
|
9645
|
+
$$invalidate(2, showRegisterStepOne = true);
|
|
9646
|
+
$$invalidate(3, showRegisterStepTwo = false);
|
|
9586
9647
|
window.postMessage({ type: "StepOneDataBackup", userData }, window.location.href);
|
|
9587
9648
|
break;
|
|
9588
9649
|
case "GoBackStepThree":
|
|
9589
9650
|
createData("RegisterStepThree", e.data.registerStepThreeData);
|
|
9590
9651
|
scrollTop();
|
|
9591
|
-
$$invalidate(
|
|
9592
|
-
$$invalidate(
|
|
9652
|
+
$$invalidate(3, showRegisterStepTwo = true);
|
|
9653
|
+
$$invalidate(4, showRegisterStepThree = false);
|
|
9593
9654
|
window.postMessage({ type: "StepTwoDataBackup", userData }, window.location.href);
|
|
9594
9655
|
break;
|
|
9595
9656
|
}
|
|
@@ -9611,8 +9672,8 @@
|
|
|
9611
9672
|
let data = yield response.json();
|
|
9612
9673
|
|
|
9613
9674
|
if (response.ok) {
|
|
9614
|
-
$$invalidate(
|
|
9615
|
-
$$invalidate(
|
|
9675
|
+
$$invalidate(4, showRegisterStepThree = false);
|
|
9676
|
+
$$invalidate(5, showConfirmation = true);
|
|
9616
9677
|
} else {
|
|
9617
9678
|
// Parsing GMCore message 'cuz it's stupid and it doesn't know how to send error messages in 2021 ffs
|
|
9618
9679
|
error = data.error.substring(data.error.indexOf("errorMessage") + 13, data.error.length);
|
|
@@ -9660,14 +9721,14 @@
|
|
|
9660
9721
|
function div3_binding($$value) {
|
|
9661
9722
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
9662
9723
|
scrollSteps = $$value;
|
|
9663
|
-
$$invalidate(
|
|
9724
|
+
$$invalidate(10, scrollSteps);
|
|
9664
9725
|
});
|
|
9665
9726
|
}
|
|
9666
9727
|
|
|
9667
9728
|
$$self.$$set = $$props => {
|
|
9668
|
-
if ("endpoint" in $$props) $$invalidate(
|
|
9729
|
+
if ("endpoint" in $$props) $$invalidate(0, endpoint = $$props.endpoint);
|
|
9669
9730
|
if ("cmsendpoint" in $$props) $$invalidate(14, cmsendpoint = $$props.cmsendpoint);
|
|
9670
|
-
if ("imagedesktop" in $$props) $$invalidate(
|
|
9731
|
+
if ("imagedesktop" in $$props) $$invalidate(1, imagedesktop = $$props.imagedesktop);
|
|
9671
9732
|
if ("playerid" in $$props) $$invalidate(15, playerid = $$props.playerid);
|
|
9672
9733
|
if ("session" in $$props) $$invalidate(16, session = $$props.session);
|
|
9673
9734
|
if ("trackedanalyticsdata" in $$props) $$invalidate(17, trackedanalyticsdata = $$props.trackedanalyticsdata);
|
|
@@ -9713,31 +9774,31 @@
|
|
|
9713
9774
|
|
|
9714
9775
|
$$self.$inject_state = $$props => {
|
|
9715
9776
|
if ("__awaiter" in $$props) __awaiter = $$props.__awaiter;
|
|
9716
|
-
if ("endpoint" in $$props) $$invalidate(
|
|
9777
|
+
if ("endpoint" in $$props) $$invalidate(0, endpoint = $$props.endpoint);
|
|
9717
9778
|
if ("cmsendpoint" in $$props) $$invalidate(14, cmsendpoint = $$props.cmsendpoint);
|
|
9718
|
-
if ("imagedesktop" in $$props) $$invalidate(
|
|
9779
|
+
if ("imagedesktop" in $$props) $$invalidate(1, imagedesktop = $$props.imagedesktop);
|
|
9719
9780
|
if ("playerid" in $$props) $$invalidate(15, playerid = $$props.playerid);
|
|
9720
9781
|
if ("session" in $$props) $$invalidate(16, session = $$props.session);
|
|
9721
9782
|
if ("trackedanalyticsdata" in $$props) $$invalidate(17, trackedanalyticsdata = $$props.trackedanalyticsdata);
|
|
9722
|
-
if ("isLoading" in $$props) $$invalidate(
|
|
9723
|
-
if ("showRegisterStepOne" in $$props) $$invalidate(
|
|
9724
|
-
if ("showRegisterStepTwo" in $$props) $$invalidate(
|
|
9725
|
-
if ("showRegisterStepThree" in $$props) $$invalidate(
|
|
9726
|
-
if ("showConfirmation" in $$props) $$invalidate(
|
|
9783
|
+
if ("isLoading" in $$props) $$invalidate(11, isLoading = $$props.isLoading);
|
|
9784
|
+
if ("showRegisterStepOne" in $$props) $$invalidate(2, showRegisterStepOne = $$props.showRegisterStepOne);
|
|
9785
|
+
if ("showRegisterStepTwo" in $$props) $$invalidate(3, showRegisterStepTwo = $$props.showRegisterStepTwo);
|
|
9786
|
+
if ("showRegisterStepThree" in $$props) $$invalidate(4, showRegisterStepThree = $$props.showRegisterStepThree);
|
|
9787
|
+
if ("showConfirmation" in $$props) $$invalidate(5, showConfirmation = $$props.showConfirmation);
|
|
9727
9788
|
if ("cmsData" in $$props) cmsData = $$props.cmsData;
|
|
9728
9789
|
if ("showError" in $$props) showError = $$props.showError;
|
|
9729
|
-
if ("accountCreationTitle" in $$props) $$invalidate(
|
|
9730
|
-
if ("accountCreationSubTitle" in $$props) $$invalidate(
|
|
9731
|
-
if ("accountCreationMessage" in $$props) $$invalidate(
|
|
9790
|
+
if ("accountCreationTitle" in $$props) $$invalidate(6, accountCreationTitle = $$props.accountCreationTitle);
|
|
9791
|
+
if ("accountCreationSubTitle" in $$props) $$invalidate(7, accountCreationSubTitle = $$props.accountCreationSubTitle);
|
|
9792
|
+
if ("accountCreationMessage" in $$props) $$invalidate(8, accountCreationMessage = $$props.accountCreationMessage);
|
|
9732
9793
|
if ("image" in $$props) image = $$props.image;
|
|
9733
9794
|
if ("userAgent" in $$props) userAgent = $$props.userAgent;
|
|
9734
|
-
if ("isMobile" in $$props) $$invalidate(
|
|
9795
|
+
if ("isMobile" in $$props) $$invalidate(12, isMobile = $$props.isMobile);
|
|
9735
9796
|
if ("userData" in $$props) userData = $$props.userData;
|
|
9736
9797
|
if ("stepTwoVisited" in $$props) stepTwoVisited = $$props.stepTwoVisited;
|
|
9737
9798
|
if ("stepThreeVisited" in $$props) stepThreeVisited = $$props.stepThreeVisited;
|
|
9738
|
-
if ("userconsentsexist" in $$props) $$invalidate(
|
|
9799
|
+
if ("userconsentsexist" in $$props) $$invalidate(9, userconsentsexist = $$props.userconsentsexist);
|
|
9739
9800
|
if ("error" in $$props) error = $$props.error;
|
|
9740
|
-
if ("scrollSteps" in $$props) $$invalidate(
|
|
9801
|
+
if ("scrollSteps" in $$props) $$invalidate(10, scrollSteps = $$props.scrollSteps);
|
|
9741
9802
|
};
|
|
9742
9803
|
|
|
9743
9804
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -9749,6 +9810,7 @@
|
|
|
9749
9810
|
};
|
|
9750
9811
|
|
|
9751
9812
|
return [
|
|
9813
|
+
endpoint,
|
|
9752
9814
|
imagedesktop,
|
|
9753
9815
|
showRegisterStepOne,
|
|
9754
9816
|
showRegisterStepTwo,
|
|
@@ -9762,7 +9824,6 @@
|
|
|
9762
9824
|
isLoading,
|
|
9763
9825
|
isMobile,
|
|
9764
9826
|
switchToLogin,
|
|
9765
|
-
endpoint,
|
|
9766
9827
|
cmsendpoint,
|
|
9767
9828
|
playerid,
|
|
9768
9829
|
session,
|
|
@@ -9787,9 +9848,9 @@
|
|
|
9787
9848
|
create_fragment,
|
|
9788
9849
|
safe_not_equal,
|
|
9789
9850
|
{
|
|
9790
|
-
endpoint:
|
|
9851
|
+
endpoint: 0,
|
|
9791
9852
|
cmsendpoint: 14,
|
|
9792
|
-
imagedesktop:
|
|
9853
|
+
imagedesktop: 1,
|
|
9793
9854
|
playerid: 15,
|
|
9794
9855
|
session: 16,
|
|
9795
9856
|
trackedanalyticsdata: 17
|
|
@@ -9821,7 +9882,7 @@
|
|
|
9821
9882
|
}
|
|
9822
9883
|
|
|
9823
9884
|
get endpoint() {
|
|
9824
|
-
return this.$$.ctx[
|
|
9885
|
+
return this.$$.ctx[0];
|
|
9825
9886
|
}
|
|
9826
9887
|
|
|
9827
9888
|
set endpoint(endpoint) {
|
|
@@ -9839,7 +9900,7 @@
|
|
|
9839
9900
|
}
|
|
9840
9901
|
|
|
9841
9902
|
get imagedesktop() {
|
|
9842
|
-
return this.$$.ctx[
|
|
9903
|
+
return this.$$.ctx[1];
|
|
9843
9904
|
}
|
|
9844
9905
|
|
|
9845
9906
|
set imagedesktop(imagedesktop) {
|