@everymatrix/general-player-register-form-step3 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.
|
@@ -396,17 +396,17 @@
|
|
|
396
396
|
|
|
397
397
|
function get_each_context(ctx, list, i) {
|
|
398
398
|
const child_ctx = ctx.slice();
|
|
399
|
-
child_ctx[
|
|
399
|
+
child_ctx[55] = list[i];
|
|
400
400
|
return child_ctx;
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
function get_each_context_1(ctx, list, i) {
|
|
404
404
|
const child_ctx = ctx.slice();
|
|
405
|
-
child_ctx[
|
|
405
|
+
child_ctx[58] = list[i];
|
|
406
406
|
return child_ctx;
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
-
// (
|
|
409
|
+
// (230:6) {#if invalidAddress}
|
|
410
410
|
function create_if_block_7(ctx) {
|
|
411
411
|
let p;
|
|
412
412
|
|
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
p = element("p");
|
|
416
416
|
p.textContent = "Address must be at least 1 character long and 100 characters maximum.";
|
|
417
417
|
attr_dev(p, "class", "InvalidInput");
|
|
418
|
-
add_location(p, file,
|
|
418
|
+
add_location(p, file, 230, 8, 6685);
|
|
419
419
|
},
|
|
420
420
|
m: function mount(target, anchor) {
|
|
421
421
|
insert_dev(target, p, anchor);
|
|
@@ -429,14 +429,14 @@
|
|
|
429
429
|
block,
|
|
430
430
|
id: create_if_block_7.name,
|
|
431
431
|
type: "if",
|
|
432
|
-
source: "(
|
|
432
|
+
source: "(230:6) {#if invalidAddress}",
|
|
433
433
|
ctx
|
|
434
434
|
});
|
|
435
435
|
|
|
436
436
|
return block;
|
|
437
437
|
}
|
|
438
438
|
|
|
439
|
-
// (
|
|
439
|
+
// (237:6) {#if invalidPostalCode}
|
|
440
440
|
function create_if_block_6(ctx) {
|
|
441
441
|
let p;
|
|
442
442
|
|
|
@@ -445,7 +445,7 @@
|
|
|
445
445
|
p = element("p");
|
|
446
446
|
p.textContent = "Postal Code must be at least 1 character long and 20 characters maximum.";
|
|
447
447
|
attr_dev(p, "class", "InvalidInput");
|
|
448
|
-
add_location(p, file,
|
|
448
|
+
add_location(p, file, 237, 8, 7107);
|
|
449
449
|
},
|
|
450
450
|
m: function mount(target, anchor) {
|
|
451
451
|
insert_dev(target, p, anchor);
|
|
@@ -459,14 +459,14 @@
|
|
|
459
459
|
block,
|
|
460
460
|
id: create_if_block_6.name,
|
|
461
461
|
type: "if",
|
|
462
|
-
source: "(
|
|
462
|
+
source: "(237:6) {#if invalidPostalCode}",
|
|
463
463
|
ctx
|
|
464
464
|
});
|
|
465
465
|
|
|
466
466
|
return block;
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
-
// (
|
|
469
|
+
// (245:4) {#if invalidCity}
|
|
470
470
|
function create_if_block_5(ctx) {
|
|
471
471
|
let p;
|
|
472
472
|
|
|
@@ -475,7 +475,7 @@
|
|
|
475
475
|
p = element("p");
|
|
476
476
|
p.textContent = "City must be at least 1 character long and 50 characters maximum.";
|
|
477
477
|
attr_dev(p, "class", "InvalidInput");
|
|
478
|
-
add_location(p, file,
|
|
478
|
+
add_location(p, file, 245, 6, 7482);
|
|
479
479
|
},
|
|
480
480
|
m: function mount(target, anchor) {
|
|
481
481
|
insert_dev(target, p, anchor);
|
|
@@ -489,32 +489,40 @@
|
|
|
489
489
|
block,
|
|
490
490
|
id: create_if_block_5.name,
|
|
491
491
|
type: "if",
|
|
492
|
-
source: "(
|
|
492
|
+
source: "(245:4) {#if invalidCity}",
|
|
493
493
|
ctx
|
|
494
494
|
});
|
|
495
495
|
|
|
496
496
|
return block;
|
|
497
497
|
}
|
|
498
498
|
|
|
499
|
-
// (
|
|
499
|
+
// (252:6) {#each countries as country}
|
|
500
500
|
function create_each_block_1(ctx) {
|
|
501
501
|
let option;
|
|
502
|
-
let t_value = /*country*/ ctx[
|
|
502
|
+
let t_value = /*country*/ ctx[58].Name + "";
|
|
503
503
|
let t;
|
|
504
|
+
let option_value_value;
|
|
504
505
|
|
|
505
506
|
const block = {
|
|
506
507
|
c: function create() {
|
|
507
508
|
option = element("option");
|
|
508
509
|
t = text(t_value);
|
|
509
|
-
option.__value = /*country*/ ctx[
|
|
510
|
+
option.__value = option_value_value = /*country*/ ctx[58].Alpha2Code;
|
|
510
511
|
option.value = option.__value;
|
|
511
|
-
add_location(option, file,
|
|
512
|
+
add_location(option, file, 252, 8, 7803);
|
|
512
513
|
},
|
|
513
514
|
m: function mount(target, anchor) {
|
|
514
515
|
insert_dev(target, option, anchor);
|
|
515
516
|
append_dev(option, t);
|
|
516
517
|
},
|
|
517
|
-
p:
|
|
518
|
+
p: function update(ctx, dirty) {
|
|
519
|
+
if (dirty[0] & /*countries*/ 2048 && t_value !== (t_value = /*country*/ ctx[58].Name + "")) set_data_dev(t, t_value);
|
|
520
|
+
|
|
521
|
+
if (dirty[0] & /*countries*/ 2048 && option_value_value !== (option_value_value = /*country*/ ctx[58].Alpha2Code)) {
|
|
522
|
+
prop_dev(option, "__value", option_value_value);
|
|
523
|
+
option.value = option.__value;
|
|
524
|
+
}
|
|
525
|
+
},
|
|
518
526
|
d: function destroy(detaching) {
|
|
519
527
|
if (detaching) detach_dev(option);
|
|
520
528
|
}
|
|
@@ -524,14 +532,14 @@
|
|
|
524
532
|
block,
|
|
525
533
|
id: create_each_block_1.name,
|
|
526
534
|
type: "each",
|
|
527
|
-
source: "(
|
|
535
|
+
source: "(252:6) {#each countries as country}",
|
|
528
536
|
ctx
|
|
529
537
|
});
|
|
530
538
|
|
|
531
539
|
return block;
|
|
532
540
|
}
|
|
533
541
|
|
|
534
|
-
// (
|
|
542
|
+
// (260:4) {#if invalidNationality}
|
|
535
543
|
function create_if_block_4(ctx) {
|
|
536
544
|
let p;
|
|
537
545
|
|
|
@@ -540,7 +548,7 @@
|
|
|
540
548
|
p = element("p");
|
|
541
549
|
p.textContent = "Nationality must be at least 1 character long.";
|
|
542
550
|
attr_dev(p, "class", "InvalidInput");
|
|
543
|
-
add_location(p, file,
|
|
551
|
+
add_location(p, file, 260, 6, 8197);
|
|
544
552
|
},
|
|
545
553
|
m: function mount(target, anchor) {
|
|
546
554
|
insert_dev(target, p, anchor);
|
|
@@ -554,32 +562,40 @@
|
|
|
554
562
|
block,
|
|
555
563
|
id: create_if_block_4.name,
|
|
556
564
|
type: "if",
|
|
557
|
-
source: "(
|
|
565
|
+
source: "(260:4) {#if invalidNationality}",
|
|
558
566
|
ctx
|
|
559
567
|
});
|
|
560
568
|
|
|
561
569
|
return block;
|
|
562
570
|
}
|
|
563
571
|
|
|
564
|
-
// (
|
|
572
|
+
// (268:8) {#each mobilePrefixes as mobilePrefix}
|
|
565
573
|
function create_each_block(ctx) {
|
|
566
574
|
let option;
|
|
567
|
-
let t_value = /*mobilePrefix*/ ctx[
|
|
575
|
+
let t_value = /*mobilePrefix*/ ctx[55].Prefix + "";
|
|
568
576
|
let t;
|
|
577
|
+
let option_value_value;
|
|
569
578
|
|
|
570
579
|
const block = {
|
|
571
580
|
c: function create() {
|
|
572
581
|
option = element("option");
|
|
573
582
|
t = text(t_value);
|
|
574
|
-
option.__value = /*mobilePrefix*/ ctx[
|
|
583
|
+
option.__value = option_value_value = /*mobilePrefix*/ ctx[55].Prefix;
|
|
575
584
|
option.value = option.__value;
|
|
576
|
-
add_location(option, file,
|
|
585
|
+
add_location(option, file, 268, 10, 8603);
|
|
577
586
|
},
|
|
578
587
|
m: function mount(target, anchor) {
|
|
579
588
|
insert_dev(target, option, anchor);
|
|
580
589
|
append_dev(option, t);
|
|
581
590
|
},
|
|
582
|
-
p:
|
|
591
|
+
p: function update(ctx, dirty) {
|
|
592
|
+
if (dirty[0] & /*mobilePrefixes*/ 32768 && t_value !== (t_value = /*mobilePrefix*/ ctx[55].Prefix + "")) set_data_dev(t, t_value);
|
|
593
|
+
|
|
594
|
+
if (dirty[0] & /*mobilePrefixes*/ 32768 && option_value_value !== (option_value_value = /*mobilePrefix*/ ctx[55].Prefix)) {
|
|
595
|
+
prop_dev(option, "__value", option_value_value);
|
|
596
|
+
option.value = option.__value;
|
|
597
|
+
}
|
|
598
|
+
},
|
|
583
599
|
d: function destroy(detaching) {
|
|
584
600
|
if (detaching) detach_dev(option);
|
|
585
601
|
}
|
|
@@ -589,14 +605,14 @@
|
|
|
589
605
|
block,
|
|
590
606
|
id: create_each_block.name,
|
|
591
607
|
type: "each",
|
|
592
|
-
source: "(
|
|
608
|
+
source: "(268:8) {#each mobilePrefixes as mobilePrefix}",
|
|
593
609
|
ctx
|
|
594
610
|
});
|
|
595
611
|
|
|
596
612
|
return block;
|
|
597
613
|
}
|
|
598
614
|
|
|
599
|
-
// (
|
|
615
|
+
// (273:6) {#if invalidMobile}
|
|
600
616
|
function create_if_block_3(ctx) {
|
|
601
617
|
let p;
|
|
602
618
|
|
|
@@ -605,7 +621,7 @@
|
|
|
605
621
|
p = element("p");
|
|
606
622
|
p.textContent = "Mobile must be at least 5 character long and 20 characters maximum.";
|
|
607
623
|
attr_dev(p, "class", "InvalidInput");
|
|
608
|
-
add_location(p, file,
|
|
624
|
+
add_location(p, file, 273, 8, 8953);
|
|
609
625
|
},
|
|
610
626
|
m: function mount(target, anchor) {
|
|
611
627
|
insert_dev(target, p, anchor);
|
|
@@ -619,14 +635,14 @@
|
|
|
619
635
|
block,
|
|
620
636
|
id: create_if_block_3.name,
|
|
621
637
|
type: "if",
|
|
622
|
-
source: "(
|
|
638
|
+
source: "(273:6) {#if invalidMobile}",
|
|
623
639
|
ctx
|
|
624
640
|
});
|
|
625
641
|
|
|
626
642
|
return block;
|
|
627
643
|
}
|
|
628
644
|
|
|
629
|
-
// (
|
|
645
|
+
// (278:2) {#if userconsentexists}
|
|
630
646
|
function create_if_block_1(ctx) {
|
|
631
647
|
let div1;
|
|
632
648
|
let label0;
|
|
@@ -662,7 +678,7 @@
|
|
|
662
678
|
let if_block_anchor;
|
|
663
679
|
let mounted;
|
|
664
680
|
let dispose;
|
|
665
|
-
let if_block = !/*consentTerms*/ ctx[
|
|
681
|
+
let if_block = !/*consentTerms*/ ctx[20] && create_if_block_2(ctx);
|
|
666
682
|
|
|
667
683
|
const block = {
|
|
668
684
|
c: function create() {
|
|
@@ -697,43 +713,43 @@
|
|
|
697
713
|
t12 = space();
|
|
698
714
|
if (if_block) if_block.c();
|
|
699
715
|
if_block_anchor = empty();
|
|
700
|
-
add_location(br, file,
|
|
716
|
+
add_location(br, file, 279, 75, 9216);
|
|
701
717
|
attr_dev(input0, "type", "Checkbox");
|
|
702
|
-
input0.checked = /*consentOffers*/ ctx[
|
|
703
|
-
add_location(input0, file,
|
|
718
|
+
input0.checked = /*consentOffers*/ ctx[17];
|
|
719
|
+
add_location(input0, file, 280, 8, 9283);
|
|
704
720
|
attr_dev(span0, "class", "Checkmark");
|
|
705
|
-
add_location(span0, file,
|
|
721
|
+
add_location(span0, file, 281, 8, 9373);
|
|
706
722
|
attr_dev(label0, "class", "Offers");
|
|
707
|
-
add_location(label0, file,
|
|
723
|
+
add_location(label0, file, 279, 6, 9147);
|
|
708
724
|
attr_dev(input1, "type", "Checkbox");
|
|
709
|
-
input1.disabled = input1_disabled_value = !/*consentOffers*/ ctx[
|
|
710
|
-
input1.checked = /*consentOffersSms*/ ctx[
|
|
711
|
-
add_location(input1, file,
|
|
725
|
+
input1.disabled = input1_disabled_value = !/*consentOffers*/ ctx[17];
|
|
726
|
+
input1.checked = /*consentOffersSms*/ ctx[18];
|
|
727
|
+
add_location(input1, file, 285, 10, 9511);
|
|
712
728
|
attr_dev(span1, "class", "Checkmark");
|
|
713
|
-
add_location(span1, file,
|
|
729
|
+
add_location(span1, file, 286, 10, 9635);
|
|
714
730
|
attr_dev(label1, "class", "OffersMethod");
|
|
715
|
-
add_location(label1, file,
|
|
731
|
+
add_location(label1, file, 284, 8, 9469);
|
|
716
732
|
attr_dev(input2, "type", "Checkbox");
|
|
717
|
-
input2.disabled = input2_disabled_value = !/*consentOffers*/ ctx[
|
|
718
|
-
input2.checked = /*consentOffersEmail*/ ctx[
|
|
719
|
-
add_location(input2, file,
|
|
733
|
+
input2.disabled = input2_disabled_value = !/*consentOffers*/ ctx[17];
|
|
734
|
+
input2.checked = /*consentOffersEmail*/ ctx[19];
|
|
735
|
+
add_location(input2, file, 289, 10, 9737);
|
|
720
736
|
attr_dev(span2, "class", "Checkmark");
|
|
721
|
-
add_location(span2, file,
|
|
737
|
+
add_location(span2, file, 290, 10, 9865);
|
|
722
738
|
attr_dev(label2, "class", "OffersMethod");
|
|
723
|
-
add_location(label2, file,
|
|
739
|
+
add_location(label2, file, 288, 8, 9692);
|
|
724
740
|
attr_dev(div0, "class", "OffersMethodsWrapper");
|
|
725
|
-
add_location(div0, file,
|
|
741
|
+
add_location(div0, file, 283, 6, 9426);
|
|
726
742
|
attr_dev(div1, "class", "OffersContainer");
|
|
727
|
-
add_location(div1, file,
|
|
743
|
+
add_location(div1, file, 278, 4, 9111);
|
|
728
744
|
attr_dev(input3, "type", "Checkbox");
|
|
729
|
-
input3.checked = /*consentTerms*/ ctx[
|
|
730
|
-
add_location(input3, file,
|
|
745
|
+
input3.checked = /*consentTerms*/ ctx[20];
|
|
746
|
+
add_location(input3, file, 296, 8, 10090);
|
|
731
747
|
attr_dev(span3, "class", "Checkmark");
|
|
732
|
-
add_location(span3, file,
|
|
748
|
+
add_location(span3, file, 297, 8, 10178);
|
|
733
749
|
attr_dev(label3, "class", "AgeConsent");
|
|
734
|
-
add_location(label3, file,
|
|
750
|
+
add_location(label3, file, 295, 6, 9975);
|
|
735
751
|
attr_dev(div2, "class", "AgeContainer");
|
|
736
|
-
add_location(div2, file,
|
|
752
|
+
add_location(div2, file, 294, 4, 9942);
|
|
737
753
|
},
|
|
738
754
|
m: function mount(target, anchor) {
|
|
739
755
|
insert_dev(target, div1, anchor);
|
|
@@ -770,41 +786,41 @@
|
|
|
770
786
|
|
|
771
787
|
if (!mounted) {
|
|
772
788
|
dispose = [
|
|
773
|
-
listen_dev(input0, "click", /*click_handler*/ ctx[
|
|
774
|
-
listen_dev(input1, "click", /*click_handler_1*/ ctx[
|
|
775
|
-
listen_dev(input2, "click", /*click_handler_2*/ ctx[
|
|
776
|
-
listen_dev(input3, "click", /*click_handler_3*/ ctx[
|
|
789
|
+
listen_dev(input0, "click", /*click_handler*/ ctx[41], false, false, false),
|
|
790
|
+
listen_dev(input1, "click", /*click_handler_1*/ ctx[42], false, false, false),
|
|
791
|
+
listen_dev(input2, "click", /*click_handler_2*/ ctx[43], false, false, false),
|
|
792
|
+
listen_dev(input3, "click", /*click_handler_3*/ ctx[44], false, false, false)
|
|
777
793
|
];
|
|
778
794
|
|
|
779
795
|
mounted = true;
|
|
780
796
|
}
|
|
781
797
|
},
|
|
782
798
|
p: function update(ctx, dirty) {
|
|
783
|
-
if (dirty[0] & /*consentOffers*/
|
|
784
|
-
prop_dev(input0, "checked", /*consentOffers*/ ctx[
|
|
799
|
+
if (dirty[0] & /*consentOffers*/ 131072) {
|
|
800
|
+
prop_dev(input0, "checked", /*consentOffers*/ ctx[17]);
|
|
785
801
|
}
|
|
786
802
|
|
|
787
|
-
if (dirty[0] & /*consentOffers*/
|
|
803
|
+
if (dirty[0] & /*consentOffers*/ 131072 && input1_disabled_value !== (input1_disabled_value = !/*consentOffers*/ ctx[17])) {
|
|
788
804
|
prop_dev(input1, "disabled", input1_disabled_value);
|
|
789
805
|
}
|
|
790
806
|
|
|
791
|
-
if (dirty[0] & /*consentOffersSms*/
|
|
792
|
-
prop_dev(input1, "checked", /*consentOffersSms*/ ctx[
|
|
807
|
+
if (dirty[0] & /*consentOffersSms*/ 262144) {
|
|
808
|
+
prop_dev(input1, "checked", /*consentOffersSms*/ ctx[18]);
|
|
793
809
|
}
|
|
794
810
|
|
|
795
|
-
if (dirty[0] & /*consentOffers*/
|
|
811
|
+
if (dirty[0] & /*consentOffers*/ 131072 && input2_disabled_value !== (input2_disabled_value = !/*consentOffers*/ ctx[17])) {
|
|
796
812
|
prop_dev(input2, "disabled", input2_disabled_value);
|
|
797
813
|
}
|
|
798
814
|
|
|
799
|
-
if (dirty[0] & /*consentOffersEmail*/
|
|
800
|
-
prop_dev(input2, "checked", /*consentOffersEmail*/ ctx[
|
|
815
|
+
if (dirty[0] & /*consentOffersEmail*/ 524288) {
|
|
816
|
+
prop_dev(input2, "checked", /*consentOffersEmail*/ ctx[19]);
|
|
801
817
|
}
|
|
802
818
|
|
|
803
|
-
if (dirty[0] & /*consentTerms*/
|
|
804
|
-
prop_dev(input3, "checked", /*consentTerms*/ ctx[
|
|
819
|
+
if (dirty[0] & /*consentTerms*/ 1048576) {
|
|
820
|
+
prop_dev(input3, "checked", /*consentTerms*/ ctx[20]);
|
|
805
821
|
}
|
|
806
822
|
|
|
807
|
-
if (!/*consentTerms*/ ctx[
|
|
823
|
+
if (!/*consentTerms*/ ctx[20]) {
|
|
808
824
|
if (if_block) ; else {
|
|
809
825
|
if_block = create_if_block_2(ctx);
|
|
810
826
|
if_block.c();
|
|
@@ -831,14 +847,14 @@
|
|
|
831
847
|
block,
|
|
832
848
|
id: create_if_block_1.name,
|
|
833
849
|
type: "if",
|
|
834
|
-
source: "(
|
|
850
|
+
source: "(278:2) {#if userconsentexists}",
|
|
835
851
|
ctx
|
|
836
852
|
});
|
|
837
853
|
|
|
838
854
|
return block;
|
|
839
855
|
}
|
|
840
856
|
|
|
841
|
-
// (
|
|
857
|
+
// (301:4) {#if !consentTerms}
|
|
842
858
|
function create_if_block_2(ctx) {
|
|
843
859
|
let div;
|
|
844
860
|
let p;
|
|
@@ -848,9 +864,9 @@
|
|
|
848
864
|
div = element("div");
|
|
849
865
|
p = element("p");
|
|
850
866
|
p.textContent = "Please accept the Terms and Conditions before proceeding.";
|
|
851
|
-
add_location(p, file,
|
|
867
|
+
add_location(p, file, 302, 8, 10310);
|
|
852
868
|
attr_dev(div, "class", "NotificationContainer");
|
|
853
|
-
add_location(div, file,
|
|
869
|
+
add_location(div, file, 301, 6, 10266);
|
|
854
870
|
},
|
|
855
871
|
m: function mount(target, anchor) {
|
|
856
872
|
insert_dev(target, div, anchor);
|
|
@@ -865,14 +881,14 @@
|
|
|
865
881
|
block,
|
|
866
882
|
id: create_if_block_2.name,
|
|
867
883
|
type: "if",
|
|
868
|
-
source: "(
|
|
884
|
+
source: "(301:4) {#if !consentTerms}",
|
|
869
885
|
ctx
|
|
870
886
|
});
|
|
871
887
|
|
|
872
888
|
return block;
|
|
873
889
|
}
|
|
874
890
|
|
|
875
|
-
// (
|
|
891
|
+
// (308:0) {#if showError}
|
|
876
892
|
function create_if_block(ctx) {
|
|
877
893
|
let div;
|
|
878
894
|
let p;
|
|
@@ -884,8 +900,8 @@
|
|
|
884
900
|
p = element("p");
|
|
885
901
|
t = text(/*error*/ ctx[7]);
|
|
886
902
|
attr_dev(p, "class", "RegisterError");
|
|
887
|
-
add_location(p, file,
|
|
888
|
-
add_location(div, file,
|
|
903
|
+
add_location(p, file, 309, 4, 10441);
|
|
904
|
+
add_location(div, file, 308, 2, 10431);
|
|
889
905
|
},
|
|
890
906
|
m: function mount(target, anchor) {
|
|
891
907
|
insert_dev(target, div, anchor);
|
|
@@ -904,7 +920,7 @@
|
|
|
904
920
|
block,
|
|
905
921
|
id: create_if_block.name,
|
|
906
922
|
type: "if",
|
|
907
|
-
source: "(
|
|
923
|
+
source: "(308:0) {#if showError}",
|
|
908
924
|
ctx
|
|
909
925
|
});
|
|
910
926
|
|
|
@@ -993,7 +1009,7 @@
|
|
|
993
1009
|
let if_block0 = /*invalidAddress*/ ctx[1] && create_if_block_7(ctx);
|
|
994
1010
|
let if_block1 = /*invalidPostalCode*/ ctx[2] && create_if_block_6(ctx);
|
|
995
1011
|
let if_block2 = /*invalidCity*/ ctx[4] && create_if_block_5(ctx);
|
|
996
|
-
let each_value_1 = /*countries*/ ctx[
|
|
1012
|
+
let each_value_1 = /*countries*/ ctx[11];
|
|
997
1013
|
validate_each_argument(each_value_1);
|
|
998
1014
|
let each_blocks_1 = [];
|
|
999
1015
|
|
|
@@ -1002,7 +1018,7 @@
|
|
|
1002
1018
|
}
|
|
1003
1019
|
|
|
1004
1020
|
let if_block3 = /*invalidNationality*/ ctx[5] && create_if_block_4(ctx);
|
|
1005
|
-
let each_value = /*mobilePrefixes*/ ctx[
|
|
1021
|
+
let each_value = /*mobilePrefixes*/ ctx[15];
|
|
1006
1022
|
validate_each_argument(each_value);
|
|
1007
1023
|
let each_blocks = [];
|
|
1008
1024
|
|
|
@@ -1112,91 +1128,91 @@
|
|
|
1112
1128
|
if (script.src !== (script_src_value = "//www.google.com/recaptcha/api.js?render=" + captchaKey)) attr_dev(script, "src", script_src_value);
|
|
1113
1129
|
script.async = true;
|
|
1114
1130
|
script.defer = true;
|
|
1115
|
-
add_location(script, file,
|
|
1131
|
+
add_location(script, file, 213, 2, 5815);
|
|
1116
1132
|
attr_dev(div0, "class", "g-recaptcha");
|
|
1117
1133
|
attr_dev(div0, "data-sitekey", captchaKey);
|
|
1118
|
-
add_location(div0, file,
|
|
1119
|
-
add_location(style, file,
|
|
1120
|
-
add_location(defs, file,
|
|
1134
|
+
add_location(div0, file, 216, 0, 5921);
|
|
1135
|
+
add_location(style, file, 220, 70, 6129);
|
|
1136
|
+
add_location(defs, file, 220, 64, 6123);
|
|
1121
1137
|
attr_dev(path, "class", "a");
|
|
1122
1138
|
attr_dev(path, "d", "M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z");
|
|
1123
1139
|
attr_dev(path, "transform", "translate(24 24) rotate(180)");
|
|
1124
|
-
add_location(path, file,
|
|
1140
|
+
add_location(path, file, 220, 109, 6168);
|
|
1125
1141
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
1126
1142
|
attr_dev(svg, "viewBox", "0 0 24 24");
|
|
1127
|
-
add_location(svg, file,
|
|
1143
|
+
add_location(svg, file, 220, 4, 6063);
|
|
1128
1144
|
attr_dev(button0, "class", "BackButton");
|
|
1129
|
-
add_location(button0, file,
|
|
1145
|
+
add_location(button0, file, 219, 2, 6013);
|
|
1130
1146
|
attr_dev(div1, "class", "RegisterFormHeader");
|
|
1131
|
-
add_location(div1, file,
|
|
1147
|
+
add_location(div1, file, 218, 0, 5978);
|
|
1132
1148
|
attr_dev(span0, "class", "FormRequired");
|
|
1133
|
-
add_location(span0, file,
|
|
1149
|
+
add_location(span0, file, 227, 35, 6518);
|
|
1134
1150
|
attr_dev(label0, "for", "Address");
|
|
1135
|
-
add_location(label0, file,
|
|
1151
|
+
add_location(label0, file, 227, 6, 6489);
|
|
1136
1152
|
attr_dev(input0, "type", "text");
|
|
1137
1153
|
attr_dev(input0, "id", "Address");
|
|
1138
|
-
add_location(input0, file,
|
|
1154
|
+
add_location(input0, file, 228, 6, 6568);
|
|
1139
1155
|
attr_dev(div2, "class", div2_class_value = "AddressContainer " + (/*invalidAddress*/ ctx[1] ? "InvalidField" : ""));
|
|
1140
|
-
add_location(div2, file,
|
|
1156
|
+
add_location(div2, file, 226, 4, 6413);
|
|
1141
1157
|
attr_dev(span1, "class", "FormRequired");
|
|
1142
|
-
add_location(span1, file,
|
|
1158
|
+
add_location(span1, file, 234, 42, 6928);
|
|
1143
1159
|
attr_dev(label1, "for", "PostalCode");
|
|
1144
|
-
add_location(label1, file,
|
|
1160
|
+
add_location(label1, file, 234, 6, 6892);
|
|
1145
1161
|
attr_dev(input1, "type", "text");
|
|
1146
1162
|
attr_dev(input1, "id", "PostalCode");
|
|
1147
|
-
add_location(input1, file,
|
|
1163
|
+
add_location(input1, file, 235, 6, 6978);
|
|
1148
1164
|
attr_dev(div3, "class", div3_class_value = "PostalCodeContainer " + (/*invalidPostalCode*/ ctx[2] ? "InvalidField" : ""));
|
|
1149
|
-
add_location(div3, file,
|
|
1165
|
+
add_location(div3, file, 233, 4, 6810);
|
|
1150
1166
|
attr_dev(div4, "class", "AddressPostalCodeContainer");
|
|
1151
|
-
add_location(div4, file,
|
|
1167
|
+
add_location(div4, file, 225, 2, 6368);
|
|
1152
1168
|
attr_dev(span2, "class", "FormRequired");
|
|
1153
|
-
add_location(span2, file,
|
|
1169
|
+
add_location(span2, file, 242, 27, 7333);
|
|
1154
1170
|
attr_dev(label2, "for", "City");
|
|
1155
|
-
add_location(label2, file,
|
|
1171
|
+
add_location(label2, file, 242, 4, 7310);
|
|
1156
1172
|
attr_dev(input2, "type", "text");
|
|
1157
1173
|
attr_dev(input2, "id", "City");
|
|
1158
|
-
add_location(input2, file,
|
|
1174
|
+
add_location(input2, file, 243, 4, 7381);
|
|
1159
1175
|
attr_dev(div5, "class", div5_class_value = "CityContainer " + (/*invalidCity*/ ctx[4] ? "InvalidField" : ""));
|
|
1160
|
-
add_location(div5, file,
|
|
1176
|
+
add_location(div5, file, 241, 2, 7242);
|
|
1161
1177
|
attr_dev(span3, "class", "FormRequired");
|
|
1162
|
-
add_location(span3, file,
|
|
1178
|
+
add_location(span3, file, 249, 33, 7661);
|
|
1163
1179
|
attr_dev(label3, "for", "Country");
|
|
1164
|
-
add_location(label3, file,
|
|
1180
|
+
add_location(label3, file, 249, 4, 7632);
|
|
1165
1181
|
attr_dev(select0, "id", "Country");
|
|
1166
|
-
if (/*countrySelected*/ ctx[
|
|
1167
|
-
add_location(select0, file,
|
|
1182
|
+
if (/*countrySelected*/ ctx[12] === void 0) add_render_callback(() => /*select0_change_handler*/ ctx[37].call(select0));
|
|
1183
|
+
add_location(select0, file, 250, 4, 7709);
|
|
1168
1184
|
attr_dev(div6, "class", "CountryContainer");
|
|
1169
|
-
add_location(div6, file,
|
|
1185
|
+
add_location(div6, file, 248, 2, 7597);
|
|
1170
1186
|
attr_dev(span4, "class", "FormRequired");
|
|
1171
|
-
add_location(span4, file,
|
|
1187
|
+
add_location(span4, file, 257, 41, 8020);
|
|
1172
1188
|
attr_dev(label4, "for", "Nationality");
|
|
1173
|
-
add_location(label4, file,
|
|
1189
|
+
add_location(label4, file, 257, 4, 7983);
|
|
1174
1190
|
attr_dev(input3, "type", "text");
|
|
1175
1191
|
attr_dev(input3, "id", "Nationality");
|
|
1176
|
-
add_location(input3, file,
|
|
1192
|
+
add_location(input3, file, 258, 4, 8068);
|
|
1177
1193
|
attr_dev(div7, "class", div7_class_value = "NationalityContainer " + (/*invalidNationality*/ ctx[5] ? "InvalidField" : ""));
|
|
1178
|
-
add_location(div7, file,
|
|
1194
|
+
add_location(div7, file, 256, 2, 7901);
|
|
1179
1195
|
attr_dev(span5, "class", "FormRequired");
|
|
1180
|
-
add_location(span5, file,
|
|
1196
|
+
add_location(span5, file, 264, 31, 8392);
|
|
1181
1197
|
attr_dev(label5, "for", "Mobile");
|
|
1182
|
-
add_location(label5, file,
|
|
1198
|
+
add_location(label5, file, 264, 4, 8365);
|
|
1183
1199
|
attr_dev(select1, "class", "MobilePrefixSelected");
|
|
1184
|
-
if (/*mobilePrefixSelected*/ ctx[
|
|
1185
|
-
add_location(select1, file,
|
|
1200
|
+
if (/*mobilePrefixSelected*/ ctx[16] === void 0) add_render_callback(() => /*select1_change_handler*/ ctx[39].call(select1));
|
|
1201
|
+
add_location(select1, file, 266, 6, 8474);
|
|
1186
1202
|
attr_dev(input4, "type", "text");
|
|
1187
1203
|
attr_dev(input4, "oninput", "this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');");
|
|
1188
1204
|
attr_dev(input4, "id", "Mobile");
|
|
1189
1205
|
attr_dev(input4, "class", "MobileInput");
|
|
1190
|
-
add_location(input4, file,
|
|
1206
|
+
add_location(input4, file, 271, 6, 8708);
|
|
1191
1207
|
attr_dev(div8, "class", "MobileWrapper");
|
|
1192
|
-
add_location(div8, file,
|
|
1208
|
+
add_location(div8, file, 265, 4, 8440);
|
|
1193
1209
|
attr_dev(div9, "class", div9_class_value = "MobileContainer " + (/*invalidMobile*/ ctx[3] ? "InvalidField" : ""));
|
|
1194
|
-
add_location(div9, file,
|
|
1210
|
+
add_location(div9, file, 263, 2, 8293);
|
|
1195
1211
|
attr_dev(div10, "class", "RegisterFormContent");
|
|
1196
|
-
add_location(div10, file,
|
|
1212
|
+
add_location(div10, file, 224, 0, 6332);
|
|
1197
1213
|
attr_dev(button1, "class", "RegisterStepNext");
|
|
1198
|
-
button1.disabled = button1_disabled_value = !/*isValid*/ ctx[
|
|
1199
|
-
add_location(button1, file,
|
|
1214
|
+
button1.disabled = button1_disabled_value = !/*isValid*/ ctx[21];
|
|
1215
|
+
add_location(button1, file, 312, 0, 10493);
|
|
1200
1216
|
},
|
|
1201
1217
|
l: function claim(nodes) {
|
|
1202
1218
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -1258,7 +1274,7 @@
|
|
|
1258
1274
|
each_blocks_1[i].m(select0, null);
|
|
1259
1275
|
}
|
|
1260
1276
|
|
|
1261
|
-
select_option(select0, /*countrySelected*/ ctx[
|
|
1277
|
+
select_option(select0, /*countrySelected*/ ctx[12]);
|
|
1262
1278
|
append_dev(div10, t23);
|
|
1263
1279
|
append_dev(div10, div7);
|
|
1264
1280
|
append_dev(div7, label4);
|
|
@@ -1266,7 +1282,7 @@
|
|
|
1266
1282
|
append_dev(label4, span4);
|
|
1267
1283
|
append_dev(div7, t26);
|
|
1268
1284
|
append_dev(div7, input3);
|
|
1269
|
-
set_input_value(input3, /*nationality*/ ctx[
|
|
1285
|
+
set_input_value(input3, /*nationality*/ ctx[13]);
|
|
1270
1286
|
append_dev(div7, t27);
|
|
1271
1287
|
if (if_block3) if_block3.m(div7, null);
|
|
1272
1288
|
append_dev(div10, t28);
|
|
@@ -1282,10 +1298,10 @@
|
|
|
1282
1298
|
each_blocks[i].m(select1, null);
|
|
1283
1299
|
}
|
|
1284
1300
|
|
|
1285
|
-
select_option(select1, /*mobilePrefixSelected*/ ctx[
|
|
1301
|
+
select_option(select1, /*mobilePrefixSelected*/ ctx[16]);
|
|
1286
1302
|
append_dev(div8, t32);
|
|
1287
1303
|
append_dev(div8, input4);
|
|
1288
|
-
set_input_value(input4, /*mobile*/ ctx[
|
|
1304
|
+
set_input_value(input4, /*mobile*/ ctx[14]);
|
|
1289
1305
|
append_dev(div8, t33);
|
|
1290
1306
|
if (if_block4) if_block4.m(div8, null);
|
|
1291
1307
|
append_dev(div10, t34);
|
|
@@ -1299,17 +1315,17 @@
|
|
|
1299
1315
|
if (!mounted) {
|
|
1300
1316
|
dispose = [
|
|
1301
1317
|
listen_dev(button0, "click", /*goBack*/ ctx[32], false, false, false),
|
|
1302
|
-
listen_dev(input0, "input", /*input0_input_handler*/ ctx[
|
|
1318
|
+
listen_dev(input0, "input", /*input0_input_handler*/ ctx[34]),
|
|
1303
1319
|
listen_dev(input0, "blur", /*validateAddress*/ ctx[22], false, false, false),
|
|
1304
|
-
listen_dev(input1, "input", /*input1_input_handler*/ ctx[
|
|
1320
|
+
listen_dev(input1, "input", /*input1_input_handler*/ ctx[35]),
|
|
1305
1321
|
listen_dev(input1, "blur", /*validatePostalCode*/ ctx[23], false, false, false),
|
|
1306
|
-
listen_dev(input2, "input", /*input2_input_handler*/ ctx[
|
|
1322
|
+
listen_dev(input2, "input", /*input2_input_handler*/ ctx[36]),
|
|
1307
1323
|
listen_dev(input2, "blur", /*validateCity*/ ctx[24], false, false, false),
|
|
1308
|
-
listen_dev(select0, "change", /*select0_change_handler*/ ctx[
|
|
1309
|
-
listen_dev(input3, "input", /*input3_input_handler*/ ctx[
|
|
1324
|
+
listen_dev(select0, "change", /*select0_change_handler*/ ctx[37]),
|
|
1325
|
+
listen_dev(input3, "input", /*input3_input_handler*/ ctx[38]),
|
|
1310
1326
|
listen_dev(input3, "blur", /*validateNationality*/ ctx[25], false, false, false),
|
|
1311
|
-
listen_dev(select1, "change", /*select1_change_handler*/ ctx[
|
|
1312
|
-
listen_dev(input4, "input", /*input4_input_handler*/ ctx[
|
|
1327
|
+
listen_dev(select1, "change", /*select1_change_handler*/ ctx[39]),
|
|
1328
|
+
listen_dev(input4, "input", /*input4_input_handler*/ ctx[40]),
|
|
1313
1329
|
listen_dev(input4, "keyup", /*validateMobile*/ ctx[26], false, false, false),
|
|
1314
1330
|
listen_dev(button1, "click", /*goNext*/ ctx[31], false, false, false)
|
|
1315
1331
|
];
|
|
@@ -1375,8 +1391,8 @@
|
|
|
1375
1391
|
attr_dev(div5, "class", div5_class_value);
|
|
1376
1392
|
}
|
|
1377
1393
|
|
|
1378
|
-
if (dirty[0] & /*countries*/
|
|
1379
|
-
each_value_1 = /*countries*/ ctx[
|
|
1394
|
+
if (dirty[0] & /*countries*/ 2048) {
|
|
1395
|
+
each_value_1 = /*countries*/ ctx[11];
|
|
1380
1396
|
validate_each_argument(each_value_1);
|
|
1381
1397
|
let i;
|
|
1382
1398
|
|
|
@@ -1399,12 +1415,12 @@
|
|
|
1399
1415
|
each_blocks_1.length = each_value_1.length;
|
|
1400
1416
|
}
|
|
1401
1417
|
|
|
1402
|
-
if (dirty[0] & /*countrySelected, countries*/
|
|
1403
|
-
select_option(select0, /*countrySelected*/ ctx[
|
|
1418
|
+
if (dirty[0] & /*countrySelected, countries*/ 6144) {
|
|
1419
|
+
select_option(select0, /*countrySelected*/ ctx[12]);
|
|
1404
1420
|
}
|
|
1405
1421
|
|
|
1406
|
-
if (dirty[0] & /*nationality*/
|
|
1407
|
-
set_input_value(input3, /*nationality*/ ctx[
|
|
1422
|
+
if (dirty[0] & /*nationality*/ 8192 && input3.value !== /*nationality*/ ctx[13]) {
|
|
1423
|
+
set_input_value(input3, /*nationality*/ ctx[13]);
|
|
1408
1424
|
}
|
|
1409
1425
|
|
|
1410
1426
|
if (/*invalidNationality*/ ctx[5]) {
|
|
@@ -1422,8 +1438,8 @@
|
|
|
1422
1438
|
attr_dev(div7, "class", div7_class_value);
|
|
1423
1439
|
}
|
|
1424
1440
|
|
|
1425
|
-
if (dirty[0] & /*mobilePrefixes*/
|
|
1426
|
-
each_value = /*mobilePrefixes*/ ctx[
|
|
1441
|
+
if (dirty[0] & /*mobilePrefixes*/ 32768) {
|
|
1442
|
+
each_value = /*mobilePrefixes*/ ctx[15];
|
|
1427
1443
|
validate_each_argument(each_value);
|
|
1428
1444
|
let i;
|
|
1429
1445
|
|
|
@@ -1446,12 +1462,12 @@
|
|
|
1446
1462
|
each_blocks.length = each_value.length;
|
|
1447
1463
|
}
|
|
1448
1464
|
|
|
1449
|
-
if (dirty[0] & /*mobilePrefixSelected, mobilePrefixes*/
|
|
1450
|
-
select_option(select1, /*mobilePrefixSelected*/ ctx[
|
|
1465
|
+
if (dirty[0] & /*mobilePrefixSelected, mobilePrefixes*/ 98304) {
|
|
1466
|
+
select_option(select1, /*mobilePrefixSelected*/ ctx[16]);
|
|
1451
1467
|
}
|
|
1452
1468
|
|
|
1453
|
-
if (dirty[0] & /*mobile*/
|
|
1454
|
-
set_input_value(input4, /*mobile*/ ctx[
|
|
1469
|
+
if (dirty[0] & /*mobile*/ 16384 && input4.value !== /*mobile*/ ctx[14]) {
|
|
1470
|
+
set_input_value(input4, /*mobile*/ ctx[14]);
|
|
1455
1471
|
}
|
|
1456
1472
|
|
|
1457
1473
|
if (/*invalidMobile*/ ctx[3]) {
|
|
@@ -1495,7 +1511,7 @@
|
|
|
1495
1511
|
if_block6 = null;
|
|
1496
1512
|
}
|
|
1497
1513
|
|
|
1498
|
-
if (dirty[0] & /*isValid*/
|
|
1514
|
+
if (dirty[0] & /*isValid*/ 2097152 && button1_disabled_value !== (button1_disabled_value = !/*isValid*/ ctx[21])) {
|
|
1499
1515
|
prop_dev(button1, "disabled", button1_disabled_value);
|
|
1500
1516
|
}
|
|
1501
1517
|
},
|
|
@@ -1543,6 +1559,7 @@
|
|
|
1543
1559
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
1544
1560
|
validate_slots("undefined", slots, []);
|
|
1545
1561
|
let { userconsentexists = false } = $$props;
|
|
1562
|
+
let { endpoint = "" } = $$props;
|
|
1546
1563
|
let invalidAddress = "";
|
|
1547
1564
|
let invalidPostalCode = "";
|
|
1548
1565
|
let invalidMobile = "";
|
|
@@ -1553,23 +1570,37 @@
|
|
|
1553
1570
|
let address = "";
|
|
1554
1571
|
let postalCode = "";
|
|
1555
1572
|
let city = "";
|
|
1556
|
-
let countries = [
|
|
1557
|
-
let countrySelected =
|
|
1573
|
+
let countries = [];
|
|
1574
|
+
let countrySelected = "";
|
|
1558
1575
|
let nationality = "";
|
|
1559
1576
|
let mobile = "";
|
|
1560
|
-
let mobilePrefixes = [
|
|
1561
|
-
let mobilePrefixSelected =
|
|
1577
|
+
let mobilePrefixes = [];
|
|
1578
|
+
let mobilePrefixSelected = "";
|
|
1562
1579
|
let consentOffers = false;
|
|
1563
1580
|
let consentOffersSms = false;
|
|
1564
1581
|
let consentOffersEmail = false;
|
|
1565
1582
|
let consentTerms = false;
|
|
1566
1583
|
let isValid = false;
|
|
1567
1584
|
|
|
1585
|
+
const getCountriesList = () => {
|
|
1586
|
+
fetch(`${endpoint}/player/countries`).then(res => res.json()).then(data => {
|
|
1587
|
+
$$invalidate(11, countries = data.countries);
|
|
1588
|
+
$$invalidate(12, countrySelected = countries[0].Alpha2Code);
|
|
1589
|
+
});
|
|
1590
|
+
};
|
|
1591
|
+
|
|
1592
|
+
const getPhoneCodes = () => {
|
|
1593
|
+
fetch(`${endpoint}/player/phonecodes`).then(res => res.json()).then(data => {
|
|
1594
|
+
$$invalidate(15, mobilePrefixes = data.phoneCodes);
|
|
1595
|
+
$$invalidate(16, mobilePrefixSelected = mobilePrefixes[0].Prefix);
|
|
1596
|
+
});
|
|
1597
|
+
};
|
|
1598
|
+
|
|
1568
1599
|
const checkIsValid = () => {
|
|
1569
|
-
$$invalidate(
|
|
1600
|
+
$$invalidate(21, isValid = !(invalidAddress || invalidPostalCode || invalidCity || invalidNationality || invalidMobile || showError || userconsentexists && consentTerms));
|
|
1570
1601
|
|
|
1571
1602
|
if (address.length <= 0 || postalCode.length <= 0 || city.length <= 0 || nationality.length <= 0 || mobile.length <= 0) {
|
|
1572
|
-
$$invalidate(
|
|
1603
|
+
$$invalidate(21, isValid = false);
|
|
1573
1604
|
}
|
|
1574
1605
|
};
|
|
1575
1606
|
|
|
@@ -1640,35 +1671,35 @@
|
|
|
1640
1671
|
|
|
1641
1672
|
const toggleOffers = () => {
|
|
1642
1673
|
if (consentOffers === false) {
|
|
1643
|
-
$$invalidate(
|
|
1674
|
+
$$invalidate(17, consentOffers = true);
|
|
1644
1675
|
} else {
|
|
1645
|
-
$$invalidate(
|
|
1646
|
-
$$invalidate(
|
|
1647
|
-
$$invalidate(
|
|
1676
|
+
$$invalidate(17, consentOffers = false);
|
|
1677
|
+
$$invalidate(18, consentOffersSms = false);
|
|
1678
|
+
$$invalidate(19, consentOffersEmail = false);
|
|
1648
1679
|
}
|
|
1649
1680
|
};
|
|
1650
1681
|
|
|
1651
1682
|
const toggleOffersSms = () => {
|
|
1652
1683
|
if (consentOffersSms === false) {
|
|
1653
|
-
$$invalidate(
|
|
1684
|
+
$$invalidate(18, consentOffersSms = true);
|
|
1654
1685
|
} else {
|
|
1655
|
-
$$invalidate(
|
|
1686
|
+
$$invalidate(18, consentOffersSms = false);
|
|
1656
1687
|
}
|
|
1657
1688
|
};
|
|
1658
1689
|
|
|
1659
1690
|
const toggleOffersEmail = () => {
|
|
1660
1691
|
if (consentOffersEmail === false) {
|
|
1661
|
-
$$invalidate(
|
|
1692
|
+
$$invalidate(19, consentOffersEmail = true);
|
|
1662
1693
|
} else {
|
|
1663
|
-
$$invalidate(
|
|
1694
|
+
$$invalidate(19, consentOffersEmail = false);
|
|
1664
1695
|
}
|
|
1665
1696
|
};
|
|
1666
1697
|
|
|
1667
1698
|
const toggleTerms = () => {
|
|
1668
1699
|
if (consentTerms === false) {
|
|
1669
|
-
$$invalidate(
|
|
1700
|
+
$$invalidate(20, consentTerms = true);
|
|
1670
1701
|
} else {
|
|
1671
|
-
$$invalidate(
|
|
1702
|
+
$$invalidate(20, consentTerms = false);
|
|
1672
1703
|
}
|
|
1673
1704
|
|
|
1674
1705
|
checkIsValid();
|
|
@@ -1742,13 +1773,13 @@
|
|
|
1742
1773
|
$$invalidate(8, address = e.data.userData.address1);
|
|
1743
1774
|
$$invalidate(9, postalCode = e.data.userData.postalCode);
|
|
1744
1775
|
$$invalidate(10, city = e.data.userData.city);
|
|
1745
|
-
$$invalidate(
|
|
1746
|
-
$$invalidate(
|
|
1747
|
-
$$invalidate(
|
|
1748
|
-
$$invalidate(
|
|
1749
|
-
$$invalidate(
|
|
1750
|
-
$$invalidate(
|
|
1751
|
-
$$invalidate(
|
|
1776
|
+
$$invalidate(12, countrySelected = e.data.userData.country);
|
|
1777
|
+
$$invalidate(13, nationality = e.data.userData.nationality);
|
|
1778
|
+
$$invalidate(16, mobilePrefixSelected = e.data.userData.mobile.prefix);
|
|
1779
|
+
$$invalidate(14, mobile = e.data.userData.mobile.number);
|
|
1780
|
+
$$invalidate(18, consentOffersSms = e.data.userData.userConsents.additionalProp1);
|
|
1781
|
+
$$invalidate(19, consentOffersEmail = e.data.userData.userConsents.additionalProp2);
|
|
1782
|
+
$$invalidate(20, consentTerms = e.data.userData.userConsents.additionalProp3);
|
|
1752
1783
|
checkIsValid();
|
|
1753
1784
|
break;
|
|
1754
1785
|
case "ShowRegistrationError":
|
|
@@ -1766,7 +1797,7 @@
|
|
|
1766
1797
|
};
|
|
1767
1798
|
});
|
|
1768
1799
|
|
|
1769
|
-
const writable_props = ["userconsentexists"];
|
|
1800
|
+
const writable_props = ["userconsentexists", "endpoint"];
|
|
1770
1801
|
|
|
1771
1802
|
Object.keys($$props).forEach(key => {
|
|
1772
1803
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
@@ -1789,24 +1820,24 @@
|
|
|
1789
1820
|
|
|
1790
1821
|
function select0_change_handler() {
|
|
1791
1822
|
countrySelected = select_value(this);
|
|
1792
|
-
$$invalidate(
|
|
1793
|
-
$$invalidate(
|
|
1823
|
+
$$invalidate(12, countrySelected);
|
|
1824
|
+
$$invalidate(11, countries);
|
|
1794
1825
|
}
|
|
1795
1826
|
|
|
1796
1827
|
function input3_input_handler() {
|
|
1797
1828
|
nationality = this.value;
|
|
1798
|
-
$$invalidate(
|
|
1829
|
+
$$invalidate(13, nationality);
|
|
1799
1830
|
}
|
|
1800
1831
|
|
|
1801
1832
|
function select1_change_handler() {
|
|
1802
1833
|
mobilePrefixSelected = select_value(this);
|
|
1803
|
-
$$invalidate(
|
|
1804
|
-
$$invalidate(
|
|
1834
|
+
$$invalidate(16, mobilePrefixSelected);
|
|
1835
|
+
$$invalidate(15, mobilePrefixes);
|
|
1805
1836
|
}
|
|
1806
1837
|
|
|
1807
1838
|
function input4_input_handler() {
|
|
1808
1839
|
mobile = this.value;
|
|
1809
|
-
$$invalidate(
|
|
1840
|
+
$$invalidate(14, mobile);
|
|
1810
1841
|
}
|
|
1811
1842
|
|
|
1812
1843
|
const click_handler = () => toggleOffers();
|
|
@@ -1816,11 +1847,13 @@
|
|
|
1816
1847
|
|
|
1817
1848
|
$$self.$$set = $$props => {
|
|
1818
1849
|
if ("userconsentexists" in $$props) $$invalidate(0, userconsentexists = $$props.userconsentexists);
|
|
1850
|
+
if ("endpoint" in $$props) $$invalidate(33, endpoint = $$props.endpoint);
|
|
1819
1851
|
};
|
|
1820
1852
|
|
|
1821
1853
|
$$self.$capture_state = () => ({
|
|
1822
1854
|
onMount,
|
|
1823
1855
|
userconsentexists,
|
|
1856
|
+
endpoint,
|
|
1824
1857
|
invalidAddress,
|
|
1825
1858
|
invalidPostalCode,
|
|
1826
1859
|
invalidMobile,
|
|
@@ -1843,6 +1876,8 @@
|
|
|
1843
1876
|
consentTerms,
|
|
1844
1877
|
isValid,
|
|
1845
1878
|
captchaKey,
|
|
1879
|
+
getCountriesList,
|
|
1880
|
+
getPhoneCodes,
|
|
1846
1881
|
checkIsValid,
|
|
1847
1882
|
checkAddress,
|
|
1848
1883
|
validateAddress,
|
|
@@ -1866,6 +1901,7 @@
|
|
|
1866
1901
|
|
|
1867
1902
|
$$self.$inject_state = $$props => {
|
|
1868
1903
|
if ("userconsentexists" in $$props) $$invalidate(0, userconsentexists = $$props.userconsentexists);
|
|
1904
|
+
if ("endpoint" in $$props) $$invalidate(33, endpoint = $$props.endpoint);
|
|
1869
1905
|
if ("invalidAddress" in $$props) $$invalidate(1, invalidAddress = $$props.invalidAddress);
|
|
1870
1906
|
if ("invalidPostalCode" in $$props) $$invalidate(2, invalidPostalCode = $$props.invalidPostalCode);
|
|
1871
1907
|
if ("invalidMobile" in $$props) $$invalidate(3, invalidMobile = $$props.invalidMobile);
|
|
@@ -1876,23 +1912,33 @@
|
|
|
1876
1912
|
if ("address" in $$props) $$invalidate(8, address = $$props.address);
|
|
1877
1913
|
if ("postalCode" in $$props) $$invalidate(9, postalCode = $$props.postalCode);
|
|
1878
1914
|
if ("city" in $$props) $$invalidate(10, city = $$props.city);
|
|
1879
|
-
if ("countries" in $$props) $$invalidate(
|
|
1880
|
-
if ("countrySelected" in $$props) $$invalidate(
|
|
1881
|
-
if ("nationality" in $$props) $$invalidate(
|
|
1882
|
-
if ("mobile" in $$props) $$invalidate(
|
|
1883
|
-
if ("mobilePrefixes" in $$props) $$invalidate(
|
|
1884
|
-
if ("mobilePrefixSelected" in $$props) $$invalidate(
|
|
1885
|
-
if ("consentOffers" in $$props) $$invalidate(
|
|
1886
|
-
if ("consentOffersSms" in $$props) $$invalidate(
|
|
1887
|
-
if ("consentOffersEmail" in $$props) $$invalidate(
|
|
1888
|
-
if ("consentTerms" in $$props) $$invalidate(
|
|
1889
|
-
if ("isValid" in $$props) $$invalidate(
|
|
1915
|
+
if ("countries" in $$props) $$invalidate(11, countries = $$props.countries);
|
|
1916
|
+
if ("countrySelected" in $$props) $$invalidate(12, countrySelected = $$props.countrySelected);
|
|
1917
|
+
if ("nationality" in $$props) $$invalidate(13, nationality = $$props.nationality);
|
|
1918
|
+
if ("mobile" in $$props) $$invalidate(14, mobile = $$props.mobile);
|
|
1919
|
+
if ("mobilePrefixes" in $$props) $$invalidate(15, mobilePrefixes = $$props.mobilePrefixes);
|
|
1920
|
+
if ("mobilePrefixSelected" in $$props) $$invalidate(16, mobilePrefixSelected = $$props.mobilePrefixSelected);
|
|
1921
|
+
if ("consentOffers" in $$props) $$invalidate(17, consentOffers = $$props.consentOffers);
|
|
1922
|
+
if ("consentOffersSms" in $$props) $$invalidate(18, consentOffersSms = $$props.consentOffersSms);
|
|
1923
|
+
if ("consentOffersEmail" in $$props) $$invalidate(19, consentOffersEmail = $$props.consentOffersEmail);
|
|
1924
|
+
if ("consentTerms" in $$props) $$invalidate(20, consentTerms = $$props.consentTerms);
|
|
1925
|
+
if ("isValid" in $$props) $$invalidate(21, isValid = $$props.isValid);
|
|
1890
1926
|
};
|
|
1891
1927
|
|
|
1892
1928
|
if ($$props && "$$inject" in $$props) {
|
|
1893
1929
|
$$self.$inject_state($$props.$$inject);
|
|
1894
1930
|
}
|
|
1895
1931
|
|
|
1932
|
+
$$self.$$.update = () => {
|
|
1933
|
+
if ($$self.$$.dirty[1] & /*endpoint*/ 4) {
|
|
1934
|
+
endpoint && getCountriesList();
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
if ($$self.$$.dirty[1] & /*endpoint*/ 4) {
|
|
1938
|
+
endpoint && getPhoneCodes();
|
|
1939
|
+
}
|
|
1940
|
+
};
|
|
1941
|
+
|
|
1896
1942
|
return [
|
|
1897
1943
|
userconsentexists,
|
|
1898
1944
|
invalidAddress,
|
|
@@ -1905,17 +1951,17 @@
|
|
|
1905
1951
|
address,
|
|
1906
1952
|
postalCode,
|
|
1907
1953
|
city,
|
|
1954
|
+
countries,
|
|
1908
1955
|
countrySelected,
|
|
1909
1956
|
nationality,
|
|
1910
1957
|
mobile,
|
|
1958
|
+
mobilePrefixes,
|
|
1911
1959
|
mobilePrefixSelected,
|
|
1912
1960
|
consentOffers,
|
|
1913
1961
|
consentOffersSms,
|
|
1914
1962
|
consentOffersEmail,
|
|
1915
1963
|
consentTerms,
|
|
1916
1964
|
isValid,
|
|
1917
|
-
countries,
|
|
1918
|
-
mobilePrefixes,
|
|
1919
1965
|
validateAddress,
|
|
1920
1966
|
validatePostalCode,
|
|
1921
1967
|
validateCity,
|
|
@@ -1927,6 +1973,7 @@
|
|
|
1927
1973
|
toggleTerms,
|
|
1928
1974
|
goNext,
|
|
1929
1975
|
goBack,
|
|
1976
|
+
endpoint,
|
|
1930
1977
|
input0_input_handler,
|
|
1931
1978
|
input1_input_handler,
|
|
1932
1979
|
input2_input_handler,
|
|
@@ -1956,7 +2003,7 @@
|
|
|
1956
2003
|
instance,
|
|
1957
2004
|
create_fragment,
|
|
1958
2005
|
safe_not_equal,
|
|
1959
|
-
{ userconsentexists: 0 },
|
|
2006
|
+
{ userconsentexists: 0, endpoint: 33 },
|
|
1960
2007
|
[-1, -1]
|
|
1961
2008
|
);
|
|
1962
2009
|
|
|
@@ -1973,7 +2020,7 @@
|
|
|
1973
2020
|
}
|
|
1974
2021
|
|
|
1975
2022
|
static get observedAttributes() {
|
|
1976
|
-
return ["userconsentexists"];
|
|
2023
|
+
return ["userconsentexists", "endpoint"];
|
|
1977
2024
|
}
|
|
1978
2025
|
|
|
1979
2026
|
get userconsentexists() {
|
|
@@ -1984,6 +2031,15 @@
|
|
|
1984
2031
|
this.$set({ userconsentexists });
|
|
1985
2032
|
flush();
|
|
1986
2033
|
}
|
|
2034
|
+
|
|
2035
|
+
get endpoint() {
|
|
2036
|
+
return this.$$.ctx[33];
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
set endpoint(endpoint) {
|
|
2040
|
+
this.$set({ endpoint });
|
|
2041
|
+
flush();
|
|
2042
|
+
}
|
|
1987
2043
|
}
|
|
1988
2044
|
|
|
1989
2045
|
!customElements.get('general-player-register-form-step3') && customElements.define('general-player-register-form-step3', GeneralPlayerRegisterFormStep3);
|