@everymatrix/general-player-register-form-step3 0.0.129 → 0.0.133

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.
@@ -386,26 +386,26 @@
386
386
 
387
387
  function get_each_context(ctx, list, i) {
388
388
  const child_ctx = ctx.slice();
389
- child_ctx[38] = list[i];
389
+ child_ctx[49] = list[i];
390
390
  return child_ctx;
391
391
  }
392
392
 
393
393
  function get_each_context_1(ctx, list, i) {
394
394
  const child_ctx = ctx.slice();
395
- child_ctx[41] = list[i];
395
+ child_ctx[52] = list[i];
396
396
  return child_ctx;
397
397
  }
398
398
 
399
- // (155:6) {#if invalidAddress}
400
- function create_if_block_3(ctx) {
399
+ // (205:6) {#if invalidAddress}
400
+ function create_if_block_5(ctx) {
401
401
  let p;
402
402
 
403
403
  const block = {
404
404
  c: function create() {
405
405
  p = element("p");
406
- p.textContent = "Address must be at least 1 character long.";
406
+ p.textContent = "Address must be at least 1 character long and 100 characters maximum.";
407
407
  attr_dev(p, "class", "InvalidInput");
408
- add_location(p, file, 155, 8, 4395);
408
+ add_location(p, file, 205, 8, 5922);
409
409
  },
410
410
  m: function mount(target, anchor) {
411
411
  insert_dev(target, p, anchor);
@@ -417,25 +417,25 @@
417
417
 
418
418
  dispatch_dev("SvelteRegisterBlock", {
419
419
  block,
420
- id: create_if_block_3.name,
420
+ id: create_if_block_5.name,
421
421
  type: "if",
422
- source: "(155:6) {#if invalidAddress}",
422
+ source: "(205:6) {#if invalidAddress}",
423
423
  ctx
424
424
  });
425
425
 
426
426
  return block;
427
427
  }
428
428
 
429
- // (162:6) {#if invalidPostalCode}
430
- function create_if_block_2(ctx) {
429
+ // (212:6) {#if invalidPostalCode}
430
+ function create_if_block_4(ctx) {
431
431
  let p;
432
432
 
433
433
  const block = {
434
434
  c: function create() {
435
435
  p = element("p");
436
- p.textContent = "Postal Code must be at least 1 character long.";
436
+ p.textContent = "Postal Code must be at least 1 character long and 20 characters maximum.";
437
437
  attr_dev(p, "class", "InvalidInput");
438
- add_location(p, file, 162, 8, 4790);
438
+ add_location(p, file, 212, 8, 6344);
439
439
  },
440
440
  m: function mount(target, anchor) {
441
441
  insert_dev(target, p, anchor);
@@ -447,28 +447,58 @@
447
447
 
448
448
  dispatch_dev("SvelteRegisterBlock", {
449
449
  block,
450
- id: create_if_block_2.name,
450
+ id: create_if_block_4.name,
451
+ type: "if",
452
+ source: "(212:6) {#if invalidPostalCode}",
453
+ ctx
454
+ });
455
+
456
+ return block;
457
+ }
458
+
459
+ // (220:4) {#if invalidCity}
460
+ function create_if_block_3(ctx) {
461
+ let p;
462
+
463
+ const block = {
464
+ c: function create() {
465
+ p = element("p");
466
+ p.textContent = "City must be at least 1 character long and 50 characters maximum.";
467
+ attr_dev(p, "class", "InvalidInput");
468
+ add_location(p, file, 220, 6, 6719);
469
+ },
470
+ m: function mount(target, anchor) {
471
+ insert_dev(target, p, anchor);
472
+ },
473
+ d: function destroy(detaching) {
474
+ if (detaching) detach_dev(p);
475
+ }
476
+ };
477
+
478
+ dispatch_dev("SvelteRegisterBlock", {
479
+ block,
480
+ id: create_if_block_3.name,
451
481
  type: "if",
452
- source: "(162:6) {#if invalidPostalCode}",
482
+ source: "(220:4) {#if invalidCity}",
453
483
  ctx
454
484
  });
455
485
 
456
486
  return block;
457
487
  }
458
488
 
459
- // (170:6) {#each countries as country}
489
+ // (227:6) {#each countries as country}
460
490
  function create_each_block_1(ctx) {
461
491
  let option;
462
- let t_value = /*country*/ ctx[41] + "";
492
+ let t_value = /*country*/ ctx[52] + "";
463
493
  let t;
464
494
 
465
495
  const block = {
466
496
  c: function create() {
467
497
  option = element("option");
468
498
  t = text(t_value);
469
- option.__value = /*country*/ ctx[41];
499
+ option.__value = /*country*/ ctx[52];
470
500
  option.value = option.__value;
471
- add_location(option, file, 170, 8, 5105);
501
+ add_location(option, file, 227, 8, 7040);
472
502
  },
473
503
  m: function mount(target, anchor) {
474
504
  insert_dev(target, option, anchor);
@@ -484,26 +514,56 @@
484
514
  block,
485
515
  id: create_each_block_1.name,
486
516
  type: "each",
487
- source: "(170:6) {#each countries as country}",
517
+ source: "(227:6) {#each countries as country}",
488
518
  ctx
489
519
  });
490
520
 
491
521
  return block;
492
522
  }
493
523
 
494
- // (179:8) {#each mobilePrefixes as mobilePrefix}
524
+ // (235:4) {#if invalidNationality}
525
+ function create_if_block_2(ctx) {
526
+ let p;
527
+
528
+ const block = {
529
+ c: function create() {
530
+ p = element("p");
531
+ p.textContent = "Nationality must be at least 1 character long.";
532
+ attr_dev(p, "class", "InvalidInput");
533
+ add_location(p, file, 235, 6, 7418);
534
+ },
535
+ m: function mount(target, anchor) {
536
+ insert_dev(target, p, anchor);
537
+ },
538
+ d: function destroy(detaching) {
539
+ if (detaching) detach_dev(p);
540
+ }
541
+ };
542
+
543
+ dispatch_dev("SvelteRegisterBlock", {
544
+ block,
545
+ id: create_if_block_2.name,
546
+ type: "if",
547
+ source: "(235:4) {#if invalidNationality}",
548
+ ctx
549
+ });
550
+
551
+ return block;
552
+ }
553
+
554
+ // (243:8) {#each mobilePrefixes as mobilePrefix}
495
555
  function create_each_block(ctx) {
496
556
  let option;
497
- let t_value = /*mobilePrefix*/ ctx[38] + "";
557
+ let t_value = /*mobilePrefix*/ ctx[49] + "";
498
558
  let t;
499
559
 
500
560
  const block = {
501
561
  c: function create() {
502
562
  option = element("option");
503
563
  t = text(t_value);
504
- option.__value = /*mobilePrefix*/ ctx[38];
564
+ option.__value = /*mobilePrefix*/ ctx[49];
505
565
  option.value = option.__value;
506
- add_location(option, file, 179, 10, 5497);
566
+ add_location(option, file, 243, 10, 7824);
507
567
  },
508
568
  m: function mount(target, anchor) {
509
569
  insert_dev(target, option, anchor);
@@ -519,23 +579,23 @@
519
579
  block,
520
580
  id: create_each_block.name,
521
581
  type: "each",
522
- source: "(179:8) {#each mobilePrefixes as mobilePrefix}",
582
+ source: "(243:8) {#each mobilePrefixes as mobilePrefix}",
523
583
  ctx
524
584
  });
525
585
 
526
586
  return block;
527
587
  }
528
588
 
529
- // (184:6) {#if invalidMobile}
589
+ // (248:6) {#if invalidMobile}
530
590
  function create_if_block_1(ctx) {
531
591
  let p;
532
592
 
533
593
  const block = {
534
594
  c: function create() {
535
595
  p = element("p");
536
- p.textContent = "Mobile must be at least 1 character long.";
596
+ p.textContent = "Mobile must be at least 5 character long and 20 characters maximum.";
537
597
  attr_dev(p, "class", "InvalidInput");
538
- add_location(p, file, 184, 8, 5721);
598
+ add_location(p, file, 248, 8, 8048);
539
599
  },
540
600
  m: function mount(target, anchor) {
541
601
  insert_dev(target, p, anchor);
@@ -549,14 +609,14 @@
549
609
  block,
550
610
  id: create_if_block_1.name,
551
611
  type: "if",
552
- source: "(184:6) {#if invalidMobile}",
612
+ source: "(248:6) {#if invalidMobile}",
553
613
  ctx
554
614
  });
555
615
 
556
616
  return block;
557
617
  }
558
618
 
559
- // (211:2) {#if !consentTerms}
619
+ // (275:2) {#if !consentTerms}
560
620
  function create_if_block(ctx) {
561
621
  let div;
562
622
  let p;
@@ -566,9 +626,9 @@
566
626
  div = element("div");
567
627
  p = element("p");
568
628
  p.textContent = "Please accept the Terms and Conditions before proceeding.";
569
- add_location(p, file, 212, 6, 6976);
629
+ add_location(p, file, 276, 6, 9329);
570
630
  attr_dev(div, "class", "NotificationContainer");
571
- add_location(div, file, 211, 4, 6934);
631
+ add_location(div, file, 275, 4, 9287);
572
632
  },
573
633
  m: function mount(target, anchor) {
574
634
  insert_dev(target, div, anchor);
@@ -583,7 +643,7 @@
583
643
  block,
584
644
  id: create_if_block.name,
585
645
  type: "if",
586
- source: "(211:2) {#if !consentTerms}",
646
+ source: "(275:2) {#if !consentTerms}",
587
647
  ctx
588
648
  });
589
649
 
@@ -591,94 +651,118 @@
591
651
  }
592
652
 
593
653
  function create_fragment(ctx) {
654
+ let script;
655
+ let script_src_value;
656
+ let t0;
594
657
  let div0;
658
+ let t1;
659
+ let div1;
595
660
  let button0;
596
661
  let svg;
597
662
  let defs;
598
663
  let style;
599
- let t0;
600
- let path;
601
- let t1;
602
664
  let t2;
603
- let div10;
604
- let div3;
605
- let div1;
606
- let label0;
665
+ let path;
607
666
  let t3;
608
- let span0;
667
+ let t4;
668
+ let div13;
669
+ let div4;
670
+ let div2;
671
+ let label0;
609
672
  let t5;
610
- let input0;
611
- let t6;
612
- let div1_class_value;
673
+ let span0;
613
674
  let t7;
614
- let div2;
615
- let label1;
675
+ let input0;
616
676
  let t8;
617
- let span1;
618
- let t10;
619
- let input1;
620
- let t11;
621
677
  let div2_class_value;
678
+ let t9;
679
+ let div3;
680
+ let label1;
681
+ let t10;
682
+ let span1;
622
683
  let t12;
623
- let div4;
624
- let label2;
684
+ let input1;
625
685
  let t13;
626
- let span2;
686
+ let div3_class_value;
687
+ let t14;
688
+ let div5;
689
+ let label2;
627
690
  let t15;
628
- let select0;
629
- let t16;
630
- let div6;
631
- let label3;
691
+ let span2;
632
692
  let t17;
633
- let span3;
693
+ let input2;
694
+ let t18;
695
+ let div5_class_value;
634
696
  let t19;
635
- let div5;
636
- let select1;
697
+ let div6;
698
+ let label3;
637
699
  let t20;
638
- let input2;
639
- let t21;
640
- let div6_class_value;
700
+ let span3;
641
701
  let t22;
642
- let div8;
643
- let label4;
702
+ let select0;
644
703
  let t23;
645
- let br;
704
+ let div7;
705
+ let label4;
646
706
  let t24;
647
- let input3;
648
- let t25;
649
707
  let span4;
650
708
  let t26;
651
- let div7;
652
- let label5;
709
+ let input3;
653
710
  let t27;
654
- let input4;
655
- let input4_disabled_value;
711
+ let div7_class_value;
656
712
  let t28;
657
- let span5;
713
+ let div9;
714
+ let label5;
658
715
  let t29;
659
- let label6;
660
- let t30;
661
- let input5;
662
- let input5_disabled_value;
716
+ let span5;
663
717
  let t31;
664
- let span6;
718
+ let div8;
719
+ let select1;
665
720
  let t32;
666
- let div9;
667
- let label7;
721
+ let input4;
668
722
  let t33;
669
- let input6;
723
+ let div9_class_value;
670
724
  let t34;
671
- let span7;
725
+ let div11;
726
+ let label6;
672
727
  let t35;
728
+ let br;
673
729
  let t36;
674
- let button1;
730
+ let input5;
675
731
  let t37;
732
+ let span6;
733
+ let t38;
734
+ let div10;
735
+ let label7;
736
+ let t39;
737
+ let input6;
738
+ let input6_disabled_value;
739
+ let t40;
740
+ let span7;
741
+ let t41;
742
+ let label8;
743
+ let t42;
744
+ let input7;
745
+ let input7_disabled_value;
746
+ let t43;
747
+ let span8;
748
+ let t44;
749
+ let div12;
750
+ let label9;
751
+ let t45;
752
+ let input8;
753
+ let t46;
754
+ let span9;
755
+ let t47;
756
+ let t48;
757
+ let button1;
758
+ let t49;
676
759
  let button1_disabled_value;
677
760
  let mounted;
678
761
  let dispose;
679
- let if_block0 = /*invalidAddress*/ ctx[0] && create_if_block_3(ctx);
680
- let if_block1 = /*invalidPostalCode*/ ctx[1] && create_if_block_2(ctx);
681
- let each_value_1 = /*countries*/ ctx[13];
762
+ let if_block0 = /*invalidAddress*/ ctx[0] && create_if_block_5(ctx);
763
+ let if_block1 = /*invalidPostalCode*/ ctx[1] && create_if_block_4(ctx);
764
+ let if_block2 = /*invalidCity*/ ctx[3] && create_if_block_3(ctx);
765
+ let each_value_1 = /*countries*/ ctx[17];
682
766
  validate_each_argument(each_value_1);
683
767
  let each_blocks_1 = [];
684
768
 
@@ -686,7 +770,8 @@
686
770
  each_blocks_1[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
687
771
  }
688
772
 
689
- let each_value = /*mobilePrefixes*/ ctx[14];
773
+ let if_block3 = /*invalidNationality*/ ctx[4] && create_if_block_2(ctx);
774
+ let each_value = /*mobilePrefixes*/ ctx[18];
690
775
  validate_each_argument(each_value);
691
776
  let each_blocks = [];
692
777
 
@@ -694,370 +779,466 @@
694
779
  each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
695
780
  }
696
781
 
697
- let if_block2 = /*invalidMobile*/ ctx[2] && create_if_block_1(ctx);
698
- let if_block3 = !/*consentTerms*/ ctx[11] && create_if_block(ctx);
782
+ let if_block4 = /*invalidMobile*/ ctx[2] && create_if_block_1(ctx);
783
+ let if_block5 = !/*consentTerms*/ ctx[15] && create_if_block(ctx);
699
784
 
700
785
  const block = {
701
786
  c: function create() {
787
+ script = element("script");
788
+ t0 = space();
702
789
  div0 = element("div");
790
+ t1 = space();
791
+ div1 = element("div");
703
792
  button0 = element("button");
704
793
  svg = svg_element("svg");
705
794
  defs = svg_element("defs");
706
795
  style = svg_element("style");
707
- t0 = text(".a{fill:#d0046c;}");
796
+ t2 = text(".a{fill:#d0046c;}");
708
797
  path = svg_element("path");
709
- t1 = text("\n Back");
710
- t2 = space();
711
- div10 = element("div");
712
- div3 = element("div");
713
- div1 = element("div");
798
+ t3 = text("\n Back");
799
+ t4 = space();
800
+ div13 = element("div");
801
+ div4 = element("div");
802
+ div2 = element("div");
714
803
  label0 = element("label");
715
- t3 = text("Address:");
804
+ t5 = text("Address:");
716
805
  span0 = element("span");
717
806
  span0.textContent = "*";
718
- t5 = space();
807
+ t7 = space();
719
808
  input0 = element("input");
720
- t6 = space();
809
+ t8 = space();
721
810
  if (if_block0) if_block0.c();
722
- t7 = space();
723
- div2 = element("div");
811
+ t9 = space();
812
+ div3 = element("div");
724
813
  label1 = element("label");
725
- t8 = text("Postal Code:");
814
+ t10 = text("Postal Code:");
726
815
  span1 = element("span");
727
816
  span1.textContent = "*";
728
- t10 = space();
817
+ t12 = space();
729
818
  input1 = element("input");
730
- t11 = space();
819
+ t13 = space();
731
820
  if (if_block1) if_block1.c();
732
- t12 = space();
733
- div4 = element("div");
821
+ t14 = space();
822
+ div5 = element("div");
734
823
  label2 = element("label");
735
- t13 = text("Country:");
824
+ t15 = text("City:");
736
825
  span2 = element("span");
737
826
  span2.textContent = "*";
738
- t15 = space();
827
+ t17 = space();
828
+ input2 = element("input");
829
+ t18 = space();
830
+ if (if_block2) if_block2.c();
831
+ t19 = space();
832
+ div6 = element("div");
833
+ label3 = element("label");
834
+ t20 = text("Country:");
835
+ span3 = element("span");
836
+ span3.textContent = "*";
837
+ t22 = space();
739
838
  select0 = element("select");
740
839
 
741
840
  for (let i = 0; i < each_blocks_1.length; i += 1) {
742
841
  each_blocks_1[i].c();
743
842
  }
744
843
 
745
- t16 = space();
746
- div6 = element("div");
747
- label3 = element("label");
748
- t17 = text("Mobile:");
749
- span3 = element("span");
750
- span3.textContent = "*";
751
- t19 = space();
752
- div5 = element("div");
844
+ t23 = space();
845
+ div7 = element("div");
846
+ label4 = element("label");
847
+ t24 = text("Nationality:");
848
+ span4 = element("span");
849
+ span4.textContent = "*";
850
+ t26 = space();
851
+ input3 = element("input");
852
+ t27 = space();
853
+ if (if_block3) if_block3.c();
854
+ t28 = space();
855
+ div9 = element("div");
856
+ label5 = element("label");
857
+ t29 = text("Mobile:");
858
+ span5 = element("span");
859
+ span5.textContent = "*";
860
+ t31 = space();
861
+ div8 = element("div");
753
862
  select1 = element("select");
754
863
 
755
864
  for (let i = 0; i < each_blocks.length; i += 1) {
756
865
  each_blocks[i].c();
757
866
  }
758
867
 
759
- t20 = space();
760
- input2 = element("input");
761
- t21 = space();
762
- if (if_block2) if_block2.c();
763
- t22 = space();
764
- div8 = element("div");
765
- label4 = element("label");
766
- t23 = text("I want to receive exclusive offers and bonuses.");
767
- br = element("br");
768
- t24 = text("I am aware that I can unsubscribe whenever I want to.\n ");
769
- input3 = element("input");
770
- t25 = space();
771
- span4 = element("span");
772
- t26 = space();
773
- div7 = element("div");
774
- label5 = element("label");
775
- t27 = text("SMS\n ");
868
+ t32 = space();
776
869
  input4 = element("input");
777
- t28 = space();
778
- span5 = element("span");
779
- t29 = space();
870
+ t33 = space();
871
+ if (if_block4) if_block4.c();
872
+ t34 = space();
873
+ div11 = element("div");
780
874
  label6 = element("label");
781
- t30 = text("Emails\n ");
875
+ t35 = text("I want to receive exclusive offers and bonuses.");
876
+ br = element("br");
877
+ t36 = text("I am aware that I can unsubscribe whenever I want to.\n ");
782
878
  input5 = element("input");
783
- t31 = space();
879
+ t37 = space();
784
880
  span6 = element("span");
785
- t32 = space();
786
- div9 = element("div");
881
+ t38 = space();
882
+ div10 = element("div");
787
883
  label7 = element("label");
788
- t33 = text("I am at least 21 years old and I have read and accepted the Terms of Conditions.\n ");
884
+ t39 = text("SMS\n ");
789
885
  input6 = element("input");
790
- t34 = space();
886
+ t40 = space();
791
887
  span7 = element("span");
792
- t35 = space();
793
- if (if_block3) if_block3.c();
794
- t36 = space();
888
+ t41 = space();
889
+ label8 = element("label");
890
+ t42 = text("Emails\n ");
891
+ input7 = element("input");
892
+ t43 = space();
893
+ span8 = element("span");
894
+ t44 = space();
895
+ div12 = element("div");
896
+ label9 = element("label");
897
+ t45 = text("I am at least 21 years old and I have read and accepted the Terms of Conditions.\n ");
898
+ input8 = element("input");
899
+ t46 = space();
900
+ span9 = element("span");
901
+ t47 = space();
902
+ if (if_block5) if_block5.c();
903
+ t48 = space();
795
904
  button1 = element("button");
796
- t37 = text("Next");
905
+ t49 = text("Open Account");
797
906
  this.c = noop;
798
- add_location(style, file, 145, 70, 3839);
799
- add_location(defs, file, 145, 64, 3833);
907
+ if (script.src !== (script_src_value = "//www.google.com/recaptcha/api.js?render=" + captchaKey)) attr_dev(script, "src", script_src_value);
908
+ script.async = true;
909
+ script.defer = true;
910
+ add_location(script, file, 188, 2, 5052);
911
+ attr_dev(div0, "class", "g-recaptcha");
912
+ attr_dev(div0, "data-sitekey", captchaKey);
913
+ add_location(div0, file, 191, 0, 5158);
914
+ add_location(style, file, 195, 70, 5366);
915
+ add_location(defs, file, 195, 64, 5360);
800
916
  attr_dev(path, "class", "a");
801
917
  attr_dev(path, "d", "M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z");
802
918
  attr_dev(path, "transform", "translate(24 24) rotate(180)");
803
- add_location(path, file, 145, 109, 3878);
919
+ add_location(path, file, 195, 109, 5405);
804
920
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
805
921
  attr_dev(svg, "viewBox", "0 0 24 24");
806
- add_location(svg, file, 145, 4, 3773);
922
+ add_location(svg, file, 195, 4, 5300);
807
923
  attr_dev(button0, "class", "BackButton");
808
- add_location(button0, file, 144, 2, 3723);
809
- attr_dev(div0, "class", "RegisterFormHeader");
810
- add_location(div0, file, 143, 0, 3688);
924
+ add_location(button0, file, 194, 2, 5250);
925
+ attr_dev(div1, "class", "RegisterFormHeader");
926
+ add_location(div1, file, 193, 0, 5215);
811
927
  attr_dev(span0, "class", "FormRequired");
812
- add_location(span0, file, 152, 35, 4228);
928
+ add_location(span0, file, 202, 35, 5755);
813
929
  attr_dev(label0, "for", "Address");
814
- add_location(label0, file, 152, 6, 4199);
930
+ add_location(label0, file, 202, 6, 5726);
815
931
  attr_dev(input0, "type", "text");
816
932
  attr_dev(input0, "id", "Address");
817
- add_location(input0, file, 153, 6, 4278);
818
- attr_dev(div1, "class", div1_class_value = "AddressContainer " + (/*invalidAddress*/ ctx[0] ? "InvalidField" : ""));
819
- add_location(div1, file, 151, 4, 4123);
933
+ add_location(input0, file, 203, 6, 5805);
934
+ attr_dev(div2, "class", div2_class_value = "AddressContainer " + (/*invalidAddress*/ ctx[0] ? "InvalidField" : ""));
935
+ add_location(div2, file, 201, 4, 5650);
820
936
  attr_dev(span1, "class", "FormRequired");
821
- add_location(span1, file, 159, 42, 4611);
937
+ add_location(span1, file, 209, 42, 6165);
822
938
  attr_dev(label1, "for", "PostalCode");
823
- add_location(label1, file, 159, 6, 4575);
939
+ add_location(label1, file, 209, 6, 6129);
824
940
  attr_dev(input1, "type", "text");
825
941
  attr_dev(input1, "id", "PostalCode");
826
- add_location(input1, file, 160, 6, 4661);
827
- attr_dev(div2, "class", div2_class_value = "PostalCodeContainer " + (/*invalidPostalCode*/ ctx[1] ? "InvalidField" : ""));
828
- add_location(div2, file, 158, 4, 4493);
829
- attr_dev(div3, "class", "AddressPostalCodeContainer");
830
- add_location(div3, file, 150, 2, 4078);
942
+ add_location(input1, file, 210, 6, 6215);
943
+ attr_dev(div3, "class", div3_class_value = "PostalCodeContainer " + (/*invalidPostalCode*/ ctx[1] ? "InvalidField" : ""));
944
+ add_location(div3, file, 208, 4, 6047);
945
+ attr_dev(div4, "class", "AddressPostalCodeContainer");
946
+ add_location(div4, file, 200, 2, 5605);
831
947
  attr_dev(span2, "class", "FormRequired");
832
- add_location(span2, file, 167, 33, 4963);
833
- attr_dev(label2, "for", "Country");
834
- add_location(label2, file, 167, 4, 4934);
835
- attr_dev(select0, "id", "Country");
836
- if (/*countrySelected*/ ctx[5] === void 0) add_render_callback(() => /*select0_change_handler*/ ctx[26].call(select0));
837
- add_location(select0, file, 168, 4, 5011);
838
- attr_dev(div4, "class", "CountryContainer");
839
- add_location(div4, file, 166, 2, 4899);
948
+ add_location(span2, file, 217, 27, 6570);
949
+ attr_dev(label2, "for", "City");
950
+ add_location(label2, file, 217, 4, 6547);
951
+ attr_dev(input2, "type", "text");
952
+ attr_dev(input2, "id", "City");
953
+ add_location(input2, file, 218, 4, 6618);
954
+ attr_dev(div5, "class", div5_class_value = "CityContainer " + (/*invalidCity*/ ctx[3] ? "InvalidField" : ""));
955
+ add_location(div5, file, 216, 2, 6479);
840
956
  attr_dev(span3, "class", "FormRequired");
841
- add_location(span3, file, 175, 31, 5286);
842
- attr_dev(label3, "for", "Mobile");
843
- add_location(label3, file, 175, 4, 5259);
957
+ add_location(span3, file, 224, 33, 6898);
958
+ attr_dev(label3, "for", "Country");
959
+ add_location(label3, file, 224, 4, 6869);
960
+ attr_dev(select0, "id", "Country");
961
+ if (/*countrySelected*/ ctx[8] === void 0) add_render_callback(() => /*select0_change_handler*/ ctx[33].call(select0));
962
+ add_location(select0, file, 225, 4, 6946);
963
+ attr_dev(div6, "class", "CountryContainer");
964
+ add_location(div6, file, 223, 2, 6834);
965
+ attr_dev(span4, "class", "FormRequired");
966
+ add_location(span4, file, 232, 41, 7241);
967
+ attr_dev(label4, "for", "Nationality");
968
+ add_location(label4, file, 232, 4, 7204);
969
+ attr_dev(input3, "type", "text");
970
+ attr_dev(input3, "id", "Nationality");
971
+ add_location(input3, file, 233, 4, 7289);
972
+ attr_dev(div7, "class", div7_class_value = "NationalityContainer " + (/*invalidNationality*/ ctx[4] ? "InvalidField" : ""));
973
+ add_location(div7, file, 231, 2, 7122);
974
+ attr_dev(span5, "class", "FormRequired");
975
+ add_location(span5, file, 239, 31, 7613);
976
+ attr_dev(label5, "for", "Mobile");
977
+ add_location(label5, file, 239, 4, 7586);
844
978
  attr_dev(select1, "class", "MobilePrefixSelected");
845
- if (/*mobilePrefixSelected*/ ctx[7] === void 0) add_render_callback(() => /*select1_change_handler*/ ctx[27].call(select1));
846
- add_location(select1, file, 177, 6, 5368);
847
- attr_dev(input2, "type", "text");
848
- attr_dev(input2, "id", "Mobile");
849
- attr_dev(input2, "class", "MobileInput");
850
- add_location(input2, file, 182, 6, 5588);
851
- attr_dev(div5, "class", "MobileWrapper");
852
- add_location(div5, file, 176, 4, 5334);
853
- attr_dev(div6, "class", div6_class_value = "MobileContainer " + (/*invalidMobile*/ ctx[2] ? "InvalidField" : ""));
854
- add_location(div6, file, 174, 2, 5187);
855
- add_location(br, file, 189, 73, 5928);
856
- attr_dev(input3, "type", "Checkbox");
857
- input3.checked = /*consentOffers*/ ctx[8];
858
- add_location(input3, file, 190, 6, 5993);
859
- attr_dev(span4, "class", "Checkmark");
860
- add_location(span4, file, 191, 6, 6081);
861
- attr_dev(label4, "class", "Offers");
862
- add_location(label4, file, 189, 4, 5859);
863
- attr_dev(input4, "type", "Checkbox");
864
- input4.disabled = input4_disabled_value = !/*consentOffers*/ ctx[8];
865
- input4.checked = /*consentOffersSms*/ ctx[9];
866
- add_location(input4, file, 195, 8, 6211);
867
- attr_dev(span5, "class", "Checkmark");
868
- add_location(span5, file, 196, 8, 6333);
869
- attr_dev(label5, "class", "OffersMethod");
870
- add_location(label5, file, 194, 6, 6171);
979
+ if (/*mobilePrefixSelected*/ ctx[11] === void 0) add_render_callback(() => /*select1_change_handler*/ ctx[35].call(select1));
980
+ add_location(select1, file, 241, 6, 7695);
981
+ attr_dev(input4, "type", "text");
982
+ attr_dev(input4, "id", "Mobile");
983
+ attr_dev(input4, "class", "MobileInput");
984
+ add_location(input4, file, 246, 6, 7915);
985
+ attr_dev(div8, "class", "MobileWrapper");
986
+ add_location(div8, file, 240, 4, 7661);
987
+ attr_dev(div9, "class", div9_class_value = "MobileContainer " + (/*invalidMobile*/ ctx[2] ? "InvalidField" : ""));
988
+ add_location(div9, file, 238, 2, 7514);
989
+ add_location(br, file, 253, 73, 8281);
871
990
  attr_dev(input5, "type", "Checkbox");
872
- input5.disabled = input5_disabled_value = !/*consentOffers*/ ctx[8];
873
- input5.checked = /*consentOffersEmail*/ ctx[10];
874
- add_location(input5, file, 199, 8, 6429);
991
+ input5.checked = /*consentOffers*/ ctx[12];
992
+ add_location(input5, file, 254, 6, 8346);
875
993
  attr_dev(span6, "class", "Checkmark");
876
- add_location(span6, file, 200, 8, 6555);
877
- attr_dev(label6, "class", "OffersMethod");
878
- add_location(label6, file, 198, 6, 6386);
879
- attr_dev(div7, "class", "OffersMethodsWrapper");
880
- add_location(div7, file, 193, 4, 6130);
881
- attr_dev(div8, "class", "OffersContainer");
882
- add_location(div8, file, 188, 2, 5825);
994
+ add_location(span6, file, 255, 6, 8434);
995
+ attr_dev(label6, "class", "Offers");
996
+ add_location(label6, file, 253, 4, 8212);
883
997
  attr_dev(input6, "type", "Checkbox");
884
- input6.checked = /*consentTerms*/ ctx[11];
885
- add_location(input6, file, 206, 6, 6768);
998
+ input6.disabled = input6_disabled_value = !/*consentOffers*/ ctx[12];
999
+ input6.checked = /*consentOffersSms*/ ctx[13];
1000
+ add_location(input6, file, 259, 8, 8564);
886
1001
  attr_dev(span7, "class", "Checkmark");
887
- add_location(span7, file, 207, 6, 6854);
888
- attr_dev(label7, "class", "AgeConsent");
889
- add_location(label7, file, 205, 4, 6655);
890
- attr_dev(div9, "class", "AgeContainer");
891
- add_location(div9, file, 204, 2, 6624);
892
- attr_dev(div10, "class", "RegisterFormContent");
893
- add_location(div10, file, 149, 0, 4042);
1002
+ add_location(span7, file, 260, 8, 8686);
1003
+ attr_dev(label7, "class", "OffersMethod");
1004
+ add_location(label7, file, 258, 6, 8524);
1005
+ attr_dev(input7, "type", "Checkbox");
1006
+ input7.disabled = input7_disabled_value = !/*consentOffers*/ ctx[12];
1007
+ input7.checked = /*consentOffersEmail*/ ctx[14];
1008
+ add_location(input7, file, 263, 8, 8782);
1009
+ attr_dev(span8, "class", "Checkmark");
1010
+ add_location(span8, file, 264, 8, 8908);
1011
+ attr_dev(label8, "class", "OffersMethod");
1012
+ add_location(label8, file, 262, 6, 8739);
1013
+ attr_dev(div10, "class", "OffersMethodsWrapper");
1014
+ add_location(div10, file, 257, 4, 8483);
1015
+ attr_dev(div11, "class", "OffersContainer");
1016
+ add_location(div11, file, 252, 2, 8178);
1017
+ attr_dev(input8, "type", "Checkbox");
1018
+ input8.checked = /*consentTerms*/ ctx[15];
1019
+ add_location(input8, file, 270, 6, 9121);
1020
+ attr_dev(span9, "class", "Checkmark");
1021
+ add_location(span9, file, 271, 6, 9207);
1022
+ attr_dev(label9, "class", "AgeConsent");
1023
+ add_location(label9, file, 269, 4, 9008);
1024
+ attr_dev(div12, "class", "AgeContainer");
1025
+ add_location(div12, file, 268, 2, 8977);
1026
+ attr_dev(div13, "class", "RegisterFormContent");
1027
+ add_location(div13, file, 199, 0, 5569);
894
1028
  attr_dev(button1, "class", "RegisterStepNext");
895
- button1.disabled = button1_disabled_value = !/*isValid*/ ctx[12];
896
- add_location(button1, file, 216, 0, 7067);
1029
+ button1.disabled = button1_disabled_value = !/*isValid*/ ctx[16];
1030
+ add_location(button1, file, 280, 0, 9420);
897
1031
  },
898
1032
  l: function claim(nodes) {
899
1033
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
900
1034
  },
901
1035
  m: function mount(target, anchor) {
1036
+ append_dev(document.head, script);
1037
+ insert_dev(target, t0, anchor);
902
1038
  insert_dev(target, div0, anchor);
903
- append_dev(div0, button0);
1039
+ insert_dev(target, t1, anchor);
1040
+ insert_dev(target, div1, anchor);
1041
+ append_dev(div1, button0);
904
1042
  append_dev(button0, svg);
905
1043
  append_dev(svg, defs);
906
1044
  append_dev(defs, style);
907
- append_dev(style, t0);
1045
+ append_dev(style, t2);
908
1046
  append_dev(svg, path);
909
- append_dev(button0, t1);
910
- insert_dev(target, t2, anchor);
911
- insert_dev(target, div10, anchor);
912
- append_dev(div10, div3);
913
- append_dev(div3, div1);
914
- append_dev(div1, label0);
915
- append_dev(label0, t3);
1047
+ append_dev(button0, t3);
1048
+ insert_dev(target, t4, anchor);
1049
+ insert_dev(target, div13, anchor);
1050
+ append_dev(div13, div4);
1051
+ append_dev(div4, div2);
1052
+ append_dev(div2, label0);
1053
+ append_dev(label0, t5);
916
1054
  append_dev(label0, span0);
917
- append_dev(div1, t5);
918
- append_dev(div1, input0);
919
- set_input_value(input0, /*address*/ ctx[3]);
920
- append_dev(div1, t6);
921
- if (if_block0) if_block0.m(div1, null);
922
- append_dev(div3, t7);
923
- append_dev(div3, div2);
924
- append_dev(div2, label1);
925
- append_dev(label1, t8);
1055
+ append_dev(div2, t7);
1056
+ append_dev(div2, input0);
1057
+ set_input_value(input0, /*address*/ ctx[5]);
1058
+ append_dev(div2, t8);
1059
+ if (if_block0) if_block0.m(div2, null);
1060
+ append_dev(div4, t9);
1061
+ append_dev(div4, div3);
1062
+ append_dev(div3, label1);
1063
+ append_dev(label1, t10);
926
1064
  append_dev(label1, span1);
927
- append_dev(div2, t10);
928
- append_dev(div2, input1);
929
- set_input_value(input1, /*postalCode*/ ctx[4]);
930
- append_dev(div2, t11);
931
- if (if_block1) if_block1.m(div2, null);
932
- append_dev(div10, t12);
933
- append_dev(div10, div4);
934
- append_dev(div4, label2);
935
- append_dev(label2, t13);
1065
+ append_dev(div3, t12);
1066
+ append_dev(div3, input1);
1067
+ set_input_value(input1, /*postalCode*/ ctx[6]);
1068
+ append_dev(div3, t13);
1069
+ if (if_block1) if_block1.m(div3, null);
1070
+ append_dev(div13, t14);
1071
+ append_dev(div13, div5);
1072
+ append_dev(div5, label2);
1073
+ append_dev(label2, t15);
936
1074
  append_dev(label2, span2);
937
- append_dev(div4, t15);
938
- append_dev(div4, select0);
1075
+ append_dev(div5, t17);
1076
+ append_dev(div5, input2);
1077
+ set_input_value(input2, /*city*/ ctx[7]);
1078
+ append_dev(div5, t18);
1079
+ if (if_block2) if_block2.m(div5, null);
1080
+ append_dev(div13, t19);
1081
+ append_dev(div13, div6);
1082
+ append_dev(div6, label3);
1083
+ append_dev(label3, t20);
1084
+ append_dev(label3, span3);
1085
+ append_dev(div6, t22);
1086
+ append_dev(div6, select0);
939
1087
 
940
1088
  for (let i = 0; i < each_blocks_1.length; i += 1) {
941
1089
  each_blocks_1[i].m(select0, null);
942
1090
  }
943
1091
 
944
- select_option(select0, /*countrySelected*/ ctx[5]);
945
- append_dev(div10, t16);
946
- append_dev(div10, div6);
947
- append_dev(div6, label3);
948
- append_dev(label3, t17);
949
- append_dev(label3, span3);
950
- append_dev(div6, t19);
951
- append_dev(div6, div5);
952
- append_dev(div5, select1);
1092
+ select_option(select0, /*countrySelected*/ ctx[8]);
1093
+ append_dev(div13, t23);
1094
+ append_dev(div13, div7);
1095
+ append_dev(div7, label4);
1096
+ append_dev(label4, t24);
1097
+ append_dev(label4, span4);
1098
+ append_dev(div7, t26);
1099
+ append_dev(div7, input3);
1100
+ set_input_value(input3, /*nationality*/ ctx[9]);
1101
+ append_dev(div7, t27);
1102
+ if (if_block3) if_block3.m(div7, null);
1103
+ append_dev(div13, t28);
1104
+ append_dev(div13, div9);
1105
+ append_dev(div9, label5);
1106
+ append_dev(label5, t29);
1107
+ append_dev(label5, span5);
1108
+ append_dev(div9, t31);
1109
+ append_dev(div9, div8);
1110
+ append_dev(div8, select1);
953
1111
 
954
1112
  for (let i = 0; i < each_blocks.length; i += 1) {
955
1113
  each_blocks[i].m(select1, null);
956
1114
  }
957
1115
 
958
- select_option(select1, /*mobilePrefixSelected*/ ctx[7]);
959
- append_dev(div5, t20);
960
- append_dev(div5, input2);
961
- set_input_value(input2, /*mobile*/ ctx[6]);
962
- append_dev(div5, t21);
963
- if (if_block2) if_block2.m(div5, null);
964
- append_dev(div10, t22);
965
- append_dev(div10, div8);
966
- append_dev(div8, label4);
967
- append_dev(label4, t23);
968
- append_dev(label4, br);
969
- append_dev(label4, t24);
970
- append_dev(label4, input3);
971
- append_dev(label4, t25);
972
- append_dev(label4, span4);
973
- append_dev(div8, t26);
974
- append_dev(div8, div7);
975
- append_dev(div7, label5);
976
- append_dev(label5, t27);
977
- append_dev(label5, input4);
978
- append_dev(label5, t28);
979
- append_dev(label5, span5);
980
- append_dev(div7, t29);
981
- append_dev(div7, label6);
982
- append_dev(label6, t30);
1116
+ select_option(select1, /*mobilePrefixSelected*/ ctx[11]);
1117
+ append_dev(div8, t32);
1118
+ append_dev(div8, input4);
1119
+ set_input_value(input4, /*mobile*/ ctx[10]);
1120
+ append_dev(div8, t33);
1121
+ if (if_block4) if_block4.m(div8, null);
1122
+ append_dev(div13, t34);
1123
+ append_dev(div13, div11);
1124
+ append_dev(div11, label6);
1125
+ append_dev(label6, t35);
1126
+ append_dev(label6, br);
1127
+ append_dev(label6, t36);
983
1128
  append_dev(label6, input5);
984
- append_dev(label6, t31);
1129
+ append_dev(label6, t37);
985
1130
  append_dev(label6, span6);
986
- append_dev(div10, t32);
987
- append_dev(div10, div9);
988
- append_dev(div9, label7);
989
- append_dev(label7, t33);
1131
+ append_dev(div11, t38);
1132
+ append_dev(div11, div10);
1133
+ append_dev(div10, label7);
1134
+ append_dev(label7, t39);
990
1135
  append_dev(label7, input6);
991
- append_dev(label7, t34);
1136
+ append_dev(label7, t40);
992
1137
  append_dev(label7, span7);
993
- append_dev(div10, t35);
994
- if (if_block3) if_block3.m(div10, null);
995
- insert_dev(target, t36, anchor);
1138
+ append_dev(div10, t41);
1139
+ append_dev(div10, label8);
1140
+ append_dev(label8, t42);
1141
+ append_dev(label8, input7);
1142
+ append_dev(label8, t43);
1143
+ append_dev(label8, span8);
1144
+ append_dev(div13, t44);
1145
+ append_dev(div13, div12);
1146
+ append_dev(div12, label9);
1147
+ append_dev(label9, t45);
1148
+ append_dev(label9, input8);
1149
+ append_dev(label9, t46);
1150
+ append_dev(label9, span9);
1151
+ append_dev(div13, t47);
1152
+ if (if_block5) if_block5.m(div13, null);
1153
+ insert_dev(target, t48, anchor);
996
1154
  insert_dev(target, button1, anchor);
997
- append_dev(button1, t37);
1155
+ append_dev(button1, t49);
998
1156
 
999
1157
  if (!mounted) {
1000
1158
  dispose = [
1001
- listen_dev(button0, "click", /*goBack*/ ctx[23], false, false, false),
1002
- listen_dev(input0, "input", /*input0_input_handler*/ ctx[24]),
1003
- listen_dev(input0, "blur", /*validateAddress*/ ctx[15], false, false, false),
1004
- listen_dev(input1, "input", /*input1_input_handler*/ ctx[25]),
1005
- listen_dev(input1, "blur", /*validatePostalCode*/ ctx[16], false, false, false),
1006
- listen_dev(select0, "change", /*select0_change_handler*/ ctx[26]),
1007
- listen_dev(select1, "change", /*select1_change_handler*/ ctx[27]),
1008
- listen_dev(input2, "input", /*input2_input_handler*/ ctx[28]),
1009
- listen_dev(input2, "blur", /*validateMobile*/ ctx[17], false, false, false),
1010
- listen_dev(input3, "click", /*click_handler*/ ctx[29], false, false, false),
1011
- listen_dev(input4, "click", /*click_handler_1*/ ctx[30], false, false, false),
1012
- listen_dev(input5, "click", /*click_handler_2*/ ctx[31], false, false, false),
1013
- listen_dev(input6, "click", /*click_handler_3*/ ctx[32], false, false, false),
1014
- listen_dev(button1, "click", /*goNext*/ ctx[22], false, false, false)
1159
+ listen_dev(button0, "click", /*goBack*/ ctx[29], false, false, false),
1160
+ listen_dev(input0, "input", /*input0_input_handler*/ ctx[30]),
1161
+ listen_dev(input0, "blur", /*validateAddress*/ ctx[19], false, false, false),
1162
+ listen_dev(input1, "input", /*input1_input_handler*/ ctx[31]),
1163
+ listen_dev(input1, "blur", /*validatePostalCode*/ ctx[20], false, false, false),
1164
+ listen_dev(input2, "input", /*input2_input_handler*/ ctx[32]),
1165
+ listen_dev(input2, "blur", /*validateCity*/ ctx[21], false, false, false),
1166
+ listen_dev(select0, "change", /*select0_change_handler*/ ctx[33]),
1167
+ listen_dev(input3, "input", /*input3_input_handler*/ ctx[34]),
1168
+ listen_dev(input3, "blur", /*validateNationality*/ ctx[22], false, false, false),
1169
+ listen_dev(select1, "change", /*select1_change_handler*/ ctx[35]),
1170
+ listen_dev(input4, "input", /*input4_input_handler*/ ctx[36]),
1171
+ listen_dev(input4, "blur", /*validateMobile*/ ctx[23], false, false, false),
1172
+ listen_dev(input5, "click", /*click_handler*/ ctx[37], false, false, false),
1173
+ listen_dev(input6, "click", /*click_handler_1*/ ctx[38], false, false, false),
1174
+ listen_dev(input7, "click", /*click_handler_2*/ ctx[39], false, false, false),
1175
+ listen_dev(input8, "click", /*click_handler_3*/ ctx[40], false, false, false),
1176
+ listen_dev(button1, "click", /*goNext*/ ctx[28], false, false, false)
1015
1177
  ];
1016
1178
 
1017
1179
  mounted = true;
1018
1180
  }
1019
1181
  },
1020
1182
  p: function update(ctx, dirty) {
1021
- if (dirty[0] & /*address*/ 8 && input0.value !== /*address*/ ctx[3]) {
1022
- set_input_value(input0, /*address*/ ctx[3]);
1183
+ if (dirty[0] & /*address*/ 32 && input0.value !== /*address*/ ctx[5]) {
1184
+ set_input_value(input0, /*address*/ ctx[5]);
1023
1185
  }
1024
1186
 
1025
1187
  if (/*invalidAddress*/ ctx[0]) {
1026
1188
  if (if_block0) ; else {
1027
- if_block0 = create_if_block_3(ctx);
1189
+ if_block0 = create_if_block_5(ctx);
1028
1190
  if_block0.c();
1029
- if_block0.m(div1, null);
1191
+ if_block0.m(div2, null);
1030
1192
  }
1031
1193
  } else if (if_block0) {
1032
1194
  if_block0.d(1);
1033
1195
  if_block0 = null;
1034
1196
  }
1035
1197
 
1036
- if (dirty[0] & /*invalidAddress*/ 1 && div1_class_value !== (div1_class_value = "AddressContainer " + (/*invalidAddress*/ ctx[0] ? "InvalidField" : ""))) {
1037
- attr_dev(div1, "class", div1_class_value);
1198
+ if (dirty[0] & /*invalidAddress*/ 1 && div2_class_value !== (div2_class_value = "AddressContainer " + (/*invalidAddress*/ ctx[0] ? "InvalidField" : ""))) {
1199
+ attr_dev(div2, "class", div2_class_value);
1038
1200
  }
1039
1201
 
1040
- if (dirty[0] & /*postalCode*/ 16 && input1.value !== /*postalCode*/ ctx[4]) {
1041
- set_input_value(input1, /*postalCode*/ ctx[4]);
1202
+ if (dirty[0] & /*postalCode*/ 64 && input1.value !== /*postalCode*/ ctx[6]) {
1203
+ set_input_value(input1, /*postalCode*/ ctx[6]);
1042
1204
  }
1043
1205
 
1044
1206
  if (/*invalidPostalCode*/ ctx[1]) {
1045
1207
  if (if_block1) ; else {
1046
- if_block1 = create_if_block_2(ctx);
1208
+ if_block1 = create_if_block_4(ctx);
1047
1209
  if_block1.c();
1048
- if_block1.m(div2, null);
1210
+ if_block1.m(div3, null);
1049
1211
  }
1050
1212
  } else if (if_block1) {
1051
1213
  if_block1.d(1);
1052
1214
  if_block1 = null;
1053
1215
  }
1054
1216
 
1055
- if (dirty[0] & /*invalidPostalCode*/ 2 && div2_class_value !== (div2_class_value = "PostalCodeContainer " + (/*invalidPostalCode*/ ctx[1] ? "InvalidField" : ""))) {
1056
- attr_dev(div2, "class", div2_class_value);
1217
+ if (dirty[0] & /*invalidPostalCode*/ 2 && div3_class_value !== (div3_class_value = "PostalCodeContainer " + (/*invalidPostalCode*/ ctx[1] ? "InvalidField" : ""))) {
1218
+ attr_dev(div3, "class", div3_class_value);
1219
+ }
1220
+
1221
+ if (dirty[0] & /*city*/ 128 && input2.value !== /*city*/ ctx[7]) {
1222
+ set_input_value(input2, /*city*/ ctx[7]);
1223
+ }
1224
+
1225
+ if (/*invalidCity*/ ctx[3]) {
1226
+ if (if_block2) ; else {
1227
+ if_block2 = create_if_block_3(ctx);
1228
+ if_block2.c();
1229
+ if_block2.m(div5, null);
1230
+ }
1231
+ } else if (if_block2) {
1232
+ if_block2.d(1);
1233
+ if_block2 = null;
1234
+ }
1235
+
1236
+ if (dirty[0] & /*invalidCity*/ 8 && div5_class_value !== (div5_class_value = "CityContainer " + (/*invalidCity*/ ctx[3] ? "InvalidField" : ""))) {
1237
+ attr_dev(div5, "class", div5_class_value);
1057
1238
  }
1058
1239
 
1059
- if (dirty[0] & /*countries*/ 8192) {
1060
- each_value_1 = /*countries*/ ctx[13];
1240
+ if (dirty[0] & /*countries*/ 131072) {
1241
+ each_value_1 = /*countries*/ ctx[17];
1061
1242
  validate_each_argument(each_value_1);
1062
1243
  let i;
1063
1244
 
@@ -1080,12 +1261,31 @@
1080
1261
  each_blocks_1.length = each_value_1.length;
1081
1262
  }
1082
1263
 
1083
- if (dirty[0] & /*countrySelected, countries*/ 8224) {
1084
- select_option(select0, /*countrySelected*/ ctx[5]);
1264
+ if (dirty[0] & /*countrySelected, countries*/ 131328) {
1265
+ select_option(select0, /*countrySelected*/ ctx[8]);
1266
+ }
1267
+
1268
+ if (dirty[0] & /*nationality*/ 512 && input3.value !== /*nationality*/ ctx[9]) {
1269
+ set_input_value(input3, /*nationality*/ ctx[9]);
1085
1270
  }
1086
1271
 
1087
- if (dirty[0] & /*mobilePrefixes*/ 16384) {
1088
- each_value = /*mobilePrefixes*/ ctx[14];
1272
+ if (/*invalidNationality*/ ctx[4]) {
1273
+ if (if_block3) ; else {
1274
+ if_block3 = create_if_block_2(ctx);
1275
+ if_block3.c();
1276
+ if_block3.m(div7, null);
1277
+ }
1278
+ } else if (if_block3) {
1279
+ if_block3.d(1);
1280
+ if_block3 = null;
1281
+ }
1282
+
1283
+ if (dirty[0] & /*invalidNationality*/ 16 && div7_class_value !== (div7_class_value = "NationalityContainer " + (/*invalidNationality*/ ctx[4] ? "InvalidField" : ""))) {
1284
+ attr_dev(div7, "class", div7_class_value);
1285
+ }
1286
+
1287
+ if (dirty[0] & /*mobilePrefixes*/ 262144) {
1288
+ each_value = /*mobilePrefixes*/ ctx[18];
1089
1289
  validate_each_argument(each_value);
1090
1290
  let i;
1091
1291
 
@@ -1108,81 +1308,87 @@
1108
1308
  each_blocks.length = each_value.length;
1109
1309
  }
1110
1310
 
1111
- if (dirty[0] & /*mobilePrefixSelected, mobilePrefixes*/ 16512) {
1112
- select_option(select1, /*mobilePrefixSelected*/ ctx[7]);
1311
+ if (dirty[0] & /*mobilePrefixSelected, mobilePrefixes*/ 264192) {
1312
+ select_option(select1, /*mobilePrefixSelected*/ ctx[11]);
1113
1313
  }
1114
1314
 
1115
- if (dirty[0] & /*mobile*/ 64 && input2.value !== /*mobile*/ ctx[6]) {
1116
- set_input_value(input2, /*mobile*/ ctx[6]);
1315
+ if (dirty[0] & /*mobile*/ 1024 && input4.value !== /*mobile*/ ctx[10]) {
1316
+ set_input_value(input4, /*mobile*/ ctx[10]);
1117
1317
  }
1118
1318
 
1119
1319
  if (/*invalidMobile*/ ctx[2]) {
1120
- if (if_block2) ; else {
1121
- if_block2 = create_if_block_1(ctx);
1122
- if_block2.c();
1123
- if_block2.m(div5, null);
1320
+ if (if_block4) ; else {
1321
+ if_block4 = create_if_block_1(ctx);
1322
+ if_block4.c();
1323
+ if_block4.m(div8, null);
1124
1324
  }
1125
- } else if (if_block2) {
1126
- if_block2.d(1);
1127
- if_block2 = null;
1325
+ } else if (if_block4) {
1326
+ if_block4.d(1);
1327
+ if_block4 = null;
1128
1328
  }
1129
1329
 
1130
- if (dirty[0] & /*invalidMobile*/ 4 && div6_class_value !== (div6_class_value = "MobileContainer " + (/*invalidMobile*/ ctx[2] ? "InvalidField" : ""))) {
1131
- attr_dev(div6, "class", div6_class_value);
1330
+ if (dirty[0] & /*invalidMobile*/ 4 && div9_class_value !== (div9_class_value = "MobileContainer " + (/*invalidMobile*/ ctx[2] ? "InvalidField" : ""))) {
1331
+ attr_dev(div9, "class", div9_class_value);
1132
1332
  }
1133
1333
 
1134
- if (dirty[0] & /*consentOffers*/ 256) {
1135
- prop_dev(input3, "checked", /*consentOffers*/ ctx[8]);
1334
+ if (dirty[0] & /*consentOffers*/ 4096) {
1335
+ prop_dev(input5, "checked", /*consentOffers*/ ctx[12]);
1136
1336
  }
1137
1337
 
1138
- if (dirty[0] & /*consentOffers*/ 256 && input4_disabled_value !== (input4_disabled_value = !/*consentOffers*/ ctx[8])) {
1139
- prop_dev(input4, "disabled", input4_disabled_value);
1338
+ if (dirty[0] & /*consentOffers*/ 4096 && input6_disabled_value !== (input6_disabled_value = !/*consentOffers*/ ctx[12])) {
1339
+ prop_dev(input6, "disabled", input6_disabled_value);
1140
1340
  }
1141
1341
 
1142
- if (dirty[0] & /*consentOffersSms*/ 512) {
1143
- prop_dev(input4, "checked", /*consentOffersSms*/ ctx[9]);
1342
+ if (dirty[0] & /*consentOffersSms*/ 8192) {
1343
+ prop_dev(input6, "checked", /*consentOffersSms*/ ctx[13]);
1144
1344
  }
1145
1345
 
1146
- if (dirty[0] & /*consentOffers*/ 256 && input5_disabled_value !== (input5_disabled_value = !/*consentOffers*/ ctx[8])) {
1147
- prop_dev(input5, "disabled", input5_disabled_value);
1346
+ if (dirty[0] & /*consentOffers*/ 4096 && input7_disabled_value !== (input7_disabled_value = !/*consentOffers*/ ctx[12])) {
1347
+ prop_dev(input7, "disabled", input7_disabled_value);
1148
1348
  }
1149
1349
 
1150
- if (dirty[0] & /*consentOffersEmail*/ 1024) {
1151
- prop_dev(input5, "checked", /*consentOffersEmail*/ ctx[10]);
1350
+ if (dirty[0] & /*consentOffersEmail*/ 16384) {
1351
+ prop_dev(input7, "checked", /*consentOffersEmail*/ ctx[14]);
1152
1352
  }
1153
1353
 
1154
- if (dirty[0] & /*consentTerms*/ 2048) {
1155
- prop_dev(input6, "checked", /*consentTerms*/ ctx[11]);
1354
+ if (dirty[0] & /*consentTerms*/ 32768) {
1355
+ prop_dev(input8, "checked", /*consentTerms*/ ctx[15]);
1156
1356
  }
1157
1357
 
1158
- if (!/*consentTerms*/ ctx[11]) {
1159
- if (if_block3) ; else {
1160
- if_block3 = create_if_block(ctx);
1161
- if_block3.c();
1162
- if_block3.m(div10, null);
1358
+ if (!/*consentTerms*/ ctx[15]) {
1359
+ if (if_block5) ; else {
1360
+ if_block5 = create_if_block(ctx);
1361
+ if_block5.c();
1362
+ if_block5.m(div13, null);
1163
1363
  }
1164
- } else if (if_block3) {
1165
- if_block3.d(1);
1166
- if_block3 = null;
1364
+ } else if (if_block5) {
1365
+ if_block5.d(1);
1366
+ if_block5 = null;
1167
1367
  }
1168
1368
 
1169
- if (dirty[0] & /*isValid*/ 4096 && button1_disabled_value !== (button1_disabled_value = !/*isValid*/ ctx[12])) {
1369
+ if (dirty[0] & /*isValid*/ 65536 && button1_disabled_value !== (button1_disabled_value = !/*isValid*/ ctx[16])) {
1170
1370
  prop_dev(button1, "disabled", button1_disabled_value);
1171
1371
  }
1172
1372
  },
1173
1373
  i: noop,
1174
1374
  o: noop,
1175
1375
  d: function destroy(detaching) {
1376
+ detach_dev(script);
1377
+ if (detaching) detach_dev(t0);
1176
1378
  if (detaching) detach_dev(div0);
1177
- if (detaching) detach_dev(t2);
1178
- if (detaching) detach_dev(div10);
1379
+ if (detaching) detach_dev(t1);
1380
+ if (detaching) detach_dev(div1);
1381
+ if (detaching) detach_dev(t4);
1382
+ if (detaching) detach_dev(div13);
1179
1383
  if (if_block0) if_block0.d();
1180
1384
  if (if_block1) if_block1.d();
1181
- destroy_each(each_blocks_1, detaching);
1182
- destroy_each(each_blocks, detaching);
1183
1385
  if (if_block2) if_block2.d();
1386
+ destroy_each(each_blocks_1, detaching);
1184
1387
  if (if_block3) if_block3.d();
1185
- if (detaching) detach_dev(t36);
1388
+ destroy_each(each_blocks, detaching);
1389
+ if (if_block4) if_block4.d();
1390
+ if (if_block5) if_block5.d();
1391
+ if (detaching) detach_dev(t48);
1186
1392
  if (detaching) detach_dev(button1);
1187
1393
  mounted = false;
1188
1394
  run_all(dispose);
@@ -1200,18 +1406,24 @@
1200
1406
  return block;
1201
1407
  }
1202
1408
 
1409
+ const captchaKey = "6Lc7w8YcAAAAAEMHc_VNN9bqfVnILoUOHSHyZ0yn";
1410
+
1203
1411
  function instance($$self, $$props, $$invalidate) {
1204
1412
  let { $$slots: slots = {}, $$scope } = $$props;
1205
1413
  validate_slots("undefined", slots, []);
1206
1414
  let invalidAddress = "";
1207
1415
  let invalidPostalCode = "";
1208
1416
  let invalidMobile = "";
1417
+ let invalidCity = "";
1418
+ let invalidNationality = "";
1209
1419
  let address = "";
1210
1420
  let postalCode = "";
1211
- let countries = ["Romania", "Greece", "Turkey"];
1421
+ let city = "";
1422
+ let countries = ["RO"];
1212
1423
  let countrySelected = countries[0];
1424
+ let nationality = "";
1213
1425
  let mobile = "";
1214
- let mobilePrefixes = ["+1", "+30", "+40"];
1426
+ let mobilePrefixes = ["+40"];
1215
1427
  let mobilePrefixSelected = mobilePrefixes[0];
1216
1428
  let consentOffers = false;
1217
1429
  let consentOffersSms = false;
@@ -1220,15 +1432,15 @@
1220
1432
  let isValid = false;
1221
1433
 
1222
1434
  const checkIsValid = () => {
1223
- $$invalidate(12, isValid = !(invalidAddress || invalidPostalCode || invalidMobile));
1435
+ $$invalidate(16, isValid = !(invalidAddress || invalidPostalCode || invalidCity || invalidNationality || invalidMobile));
1224
1436
 
1225
- if (address.length <= 0 || postalCode.length <= 0 || mobile.length <= 0 || consentTerms == false) {
1226
- $$invalidate(12, isValid = false);
1437
+ if (address.length <= 0 || postalCode.length <= 0 || city.length <= 0 || nationality.length <= 0 || mobile.length <= 0 || consentTerms == false) {
1438
+ $$invalidate(16, isValid = false);
1227
1439
  }
1228
1440
  };
1229
1441
 
1230
1442
  const checkAddress = () => {
1231
- if (address) {
1443
+ if (address && address.length <= 100) {
1232
1444
  return true;
1233
1445
  }
1234
1446
 
@@ -1241,7 +1453,7 @@
1241
1453
  };
1242
1454
 
1243
1455
  const checkPostalCode = () => {
1244
- if (postalCode) {
1456
+ if (postalCode && postalCode.length <= 20) {
1245
1457
  return true;
1246
1458
  }
1247
1459
 
@@ -1253,8 +1465,34 @@
1253
1465
  checkIsValid();
1254
1466
  };
1255
1467
 
1468
+ const checkCity = () => {
1469
+ if (city && city.length <= 50) {
1470
+ return true;
1471
+ }
1472
+
1473
+ return false;
1474
+ };
1475
+
1476
+ const validateCity = () => {
1477
+ $$invalidate(3, invalidCity = !checkCity());
1478
+ checkIsValid();
1479
+ };
1480
+
1481
+ const checkNationality = () => {
1482
+ if (nationality) {
1483
+ return true;
1484
+ }
1485
+
1486
+ return false;
1487
+ };
1488
+
1489
+ const validateNationality = () => {
1490
+ $$invalidate(4, invalidNationality = !checkNationality());
1491
+ checkIsValid();
1492
+ };
1493
+
1256
1494
  const checkMobile = () => {
1257
- if (mobile) {
1495
+ if (mobile && mobile.length >= 5 && mobile.length <= 30) {
1258
1496
  return true;
1259
1497
  }
1260
1498
 
@@ -1268,60 +1506,85 @@
1268
1506
 
1269
1507
  const toggleOffers = () => {
1270
1508
  if (consentOffers === false) {
1271
- $$invalidate(8, consentOffers = true);
1509
+ $$invalidate(12, consentOffers = true);
1272
1510
  } else {
1273
- $$invalidate(8, consentOffers = false);
1274
- $$invalidate(9, consentOffersSms = false);
1275
- $$invalidate(10, consentOffersEmail = false);
1511
+ $$invalidate(12, consentOffers = false);
1512
+ $$invalidate(13, consentOffersSms = false);
1513
+ $$invalidate(14, consentOffersEmail = false);
1276
1514
  }
1277
1515
  };
1278
1516
 
1279
1517
  const toggleOffersSms = () => {
1280
1518
  if (consentOffersSms === false) {
1281
- $$invalidate(9, consentOffersSms = true);
1519
+ $$invalidate(13, consentOffersSms = true);
1282
1520
  } else {
1283
- $$invalidate(9, consentOffersSms = false);
1521
+ $$invalidate(13, consentOffersSms = false);
1284
1522
  }
1285
1523
  };
1286
1524
 
1287
1525
  const toggleOffersEmail = () => {
1288
1526
  if (consentOffersEmail === false) {
1289
- $$invalidate(10, consentOffersEmail = true);
1527
+ $$invalidate(14, consentOffersEmail = true);
1290
1528
  } else {
1291
- $$invalidate(10, consentOffersEmail = false);
1529
+ $$invalidate(14, consentOffersEmail = false);
1292
1530
  }
1293
1531
  };
1294
1532
 
1295
1533
  const toggleTerms = () => {
1296
1534
  if (consentTerms === false) {
1297
- $$invalidate(11, consentTerms = true);
1535
+ $$invalidate(15, consentTerms = true);
1298
1536
  } else {
1299
- $$invalidate(11, consentTerms = false);
1537
+ $$invalidate(15, consentTerms = false);
1300
1538
  }
1301
1539
 
1302
1540
  checkIsValid();
1303
1541
  };
1304
1542
 
1305
- const goNext = () => {
1306
- let Step3Data = {
1307
- address,
1308
- postalCode,
1309
- countrySelected,
1310
- mobilePrefixSelected,
1311
- mobile,
1312
- consentOffersSms,
1313
- consentOffersEmail,
1314
- consentTerms
1315
- };
1543
+ const doRecaptcha = () => {
1544
+ return new Promise((resolve, reject) => {
1545
+ grecaptcha.ready(() => {
1546
+ grecaptcha.execute(captchaKey, { action: "submit" }).then(token => {
1547
+ resolve(token);
1548
+ });
1549
+ });
1550
+ });
1551
+ };
1316
1552
 
1317
- window.postMessage({ type: "Step3", Step3Data }, window.location.href);
1553
+ const goNext = () => {
1554
+ let registerStepThreeData = {};
1555
+
1556
+ doRecaptcha().then(token => {
1557
+ registerStepThreeData = {
1558
+ address,
1559
+ postalCode,
1560
+ city,
1561
+ countrySelected,
1562
+ nationality,
1563
+ mobilePrefixSelected,
1564
+ mobile,
1565
+ consentOffersSms,
1566
+ consentOffersEmail,
1567
+ consentTerms,
1568
+ token
1569
+ };
1570
+
1571
+ window.postMessage(
1572
+ {
1573
+ type: "RegisterStepThree",
1574
+ registerStepThreeData
1575
+ },
1576
+ window.location.href
1577
+ );
1578
+ });
1318
1579
  };
1319
1580
 
1320
1581
  const goBack = () => {
1321
- let Step3Data = {
1582
+ let registerStepThreeData = {
1322
1583
  address,
1323
1584
  postalCode,
1585
+ city,
1324
1586
  countrySelected,
1587
+ nationality,
1325
1588
  mobilePrefixSelected,
1326
1589
  mobile,
1327
1590
  consentOffersSms,
@@ -1329,21 +1592,29 @@
1329
1592
  consentTerms
1330
1593
  };
1331
1594
 
1332
- window.postMessage({ type: "GoBackStep3", Step3Data }, window.location.href);
1595
+ window.postMessage(
1596
+ {
1597
+ type: "GoBackStepThree",
1598
+ registerStepThreeData
1599
+ },
1600
+ window.location.href
1601
+ );
1333
1602
  };
1334
1603
 
1335
1604
  const messageHandler = e => {
1336
1605
  if (e.data) {
1337
1606
  switch (e.data.type) {
1338
- case "Step3DataBackup":
1339
- $$invalidate(3, address = e.data.userData.address1);
1340
- $$invalidate(4, postalCode = e.data.userData.postalCode);
1341
- $$invalidate(5, countrySelected = e.data.userData.country);
1342
- $$invalidate(7, mobilePrefixSelected = e.data.userData.mobile.prefix);
1343
- $$invalidate(6, mobile = e.data.userData.mobile.number);
1344
- $$invalidate(9, consentOffersSms = e.data.userData.userConsents.additionalProp1);
1345
- $$invalidate(10, consentOffersEmail = e.data.userData.userConsents.additionalProp2);
1346
- $$invalidate(11, consentTerms = e.data.userData.userConsents.additionalProp3);
1607
+ case "StepThreeDataBackup":
1608
+ $$invalidate(5, address = e.data.userData.address1);
1609
+ $$invalidate(6, postalCode = e.data.userData.postalCode);
1610
+ $$invalidate(7, city = e.data.userData.city);
1611
+ $$invalidate(8, countrySelected = e.data.userData.country);
1612
+ $$invalidate(9, nationality = e.data.userData.nationality);
1613
+ $$invalidate(11, mobilePrefixSelected = e.data.userData.mobile.prefix);
1614
+ $$invalidate(10, mobile = e.data.userData.mobile.number);
1615
+ $$invalidate(13, consentOffersSms = e.data.userData.userConsents.additionalProp1);
1616
+ $$invalidate(14, consentOffersEmail = e.data.userData.userConsents.additionalProp2);
1617
+ $$invalidate(15, consentTerms = e.data.userData.userConsents.additionalProp3);
1347
1618
  checkIsValid();
1348
1619
  break;
1349
1620
  }
@@ -1366,29 +1637,39 @@
1366
1637
 
1367
1638
  function input0_input_handler() {
1368
1639
  address = this.value;
1369
- $$invalidate(3, address);
1640
+ $$invalidate(5, address);
1370
1641
  }
1371
1642
 
1372
1643
  function input1_input_handler() {
1373
1644
  postalCode = this.value;
1374
- $$invalidate(4, postalCode);
1645
+ $$invalidate(6, postalCode);
1646
+ }
1647
+
1648
+ function input2_input_handler() {
1649
+ city = this.value;
1650
+ $$invalidate(7, city);
1375
1651
  }
1376
1652
 
1377
1653
  function select0_change_handler() {
1378
1654
  countrySelected = select_value(this);
1379
- $$invalidate(5, countrySelected);
1380
- $$invalidate(13, countries);
1655
+ $$invalidate(8, countrySelected);
1656
+ $$invalidate(17, countries);
1657
+ }
1658
+
1659
+ function input3_input_handler() {
1660
+ nationality = this.value;
1661
+ $$invalidate(9, nationality);
1381
1662
  }
1382
1663
 
1383
1664
  function select1_change_handler() {
1384
1665
  mobilePrefixSelected = select_value(this);
1385
- $$invalidate(7, mobilePrefixSelected);
1386
- $$invalidate(14, mobilePrefixes);
1666
+ $$invalidate(11, mobilePrefixSelected);
1667
+ $$invalidate(18, mobilePrefixes);
1387
1668
  }
1388
1669
 
1389
- function input2_input_handler() {
1670
+ function input4_input_handler() {
1390
1671
  mobile = this.value;
1391
- $$invalidate(6, mobile);
1672
+ $$invalidate(10, mobile);
1392
1673
  }
1393
1674
 
1394
1675
  const click_handler = () => toggleOffers();
@@ -1401,10 +1682,14 @@
1401
1682
  invalidAddress,
1402
1683
  invalidPostalCode,
1403
1684
  invalidMobile,
1685
+ invalidCity,
1686
+ invalidNationality,
1404
1687
  address,
1405
1688
  postalCode,
1689
+ city,
1406
1690
  countries,
1407
1691
  countrySelected,
1692
+ nationality,
1408
1693
  mobile,
1409
1694
  mobilePrefixes,
1410
1695
  mobilePrefixSelected,
@@ -1413,17 +1698,23 @@
1413
1698
  consentOffersEmail,
1414
1699
  consentTerms,
1415
1700
  isValid,
1701
+ captchaKey,
1416
1702
  checkIsValid,
1417
1703
  checkAddress,
1418
1704
  validateAddress,
1419
1705
  checkPostalCode,
1420
1706
  validatePostalCode,
1707
+ checkCity,
1708
+ validateCity,
1709
+ checkNationality,
1710
+ validateNationality,
1421
1711
  checkMobile,
1422
1712
  validateMobile,
1423
1713
  toggleOffers,
1424
1714
  toggleOffersSms,
1425
1715
  toggleOffersEmail,
1426
1716
  toggleTerms,
1717
+ doRecaptcha,
1427
1718
  goNext,
1428
1719
  goBack,
1429
1720
  messageHandler
@@ -1433,18 +1724,22 @@
1433
1724
  if ("invalidAddress" in $$props) $$invalidate(0, invalidAddress = $$props.invalidAddress);
1434
1725
  if ("invalidPostalCode" in $$props) $$invalidate(1, invalidPostalCode = $$props.invalidPostalCode);
1435
1726
  if ("invalidMobile" in $$props) $$invalidate(2, invalidMobile = $$props.invalidMobile);
1436
- if ("address" in $$props) $$invalidate(3, address = $$props.address);
1437
- if ("postalCode" in $$props) $$invalidate(4, postalCode = $$props.postalCode);
1438
- if ("countries" in $$props) $$invalidate(13, countries = $$props.countries);
1439
- if ("countrySelected" in $$props) $$invalidate(5, countrySelected = $$props.countrySelected);
1440
- if ("mobile" in $$props) $$invalidate(6, mobile = $$props.mobile);
1441
- if ("mobilePrefixes" in $$props) $$invalidate(14, mobilePrefixes = $$props.mobilePrefixes);
1442
- if ("mobilePrefixSelected" in $$props) $$invalidate(7, mobilePrefixSelected = $$props.mobilePrefixSelected);
1443
- if ("consentOffers" in $$props) $$invalidate(8, consentOffers = $$props.consentOffers);
1444
- if ("consentOffersSms" in $$props) $$invalidate(9, consentOffersSms = $$props.consentOffersSms);
1445
- if ("consentOffersEmail" in $$props) $$invalidate(10, consentOffersEmail = $$props.consentOffersEmail);
1446
- if ("consentTerms" in $$props) $$invalidate(11, consentTerms = $$props.consentTerms);
1447
- if ("isValid" in $$props) $$invalidate(12, isValid = $$props.isValid);
1727
+ if ("invalidCity" in $$props) $$invalidate(3, invalidCity = $$props.invalidCity);
1728
+ if ("invalidNationality" in $$props) $$invalidate(4, invalidNationality = $$props.invalidNationality);
1729
+ if ("address" in $$props) $$invalidate(5, address = $$props.address);
1730
+ if ("postalCode" in $$props) $$invalidate(6, postalCode = $$props.postalCode);
1731
+ if ("city" in $$props) $$invalidate(7, city = $$props.city);
1732
+ if ("countries" in $$props) $$invalidate(17, countries = $$props.countries);
1733
+ if ("countrySelected" in $$props) $$invalidate(8, countrySelected = $$props.countrySelected);
1734
+ if ("nationality" in $$props) $$invalidate(9, nationality = $$props.nationality);
1735
+ if ("mobile" in $$props) $$invalidate(10, mobile = $$props.mobile);
1736
+ if ("mobilePrefixes" in $$props) $$invalidate(18, mobilePrefixes = $$props.mobilePrefixes);
1737
+ if ("mobilePrefixSelected" in $$props) $$invalidate(11, mobilePrefixSelected = $$props.mobilePrefixSelected);
1738
+ if ("consentOffers" in $$props) $$invalidate(12, consentOffers = $$props.consentOffers);
1739
+ if ("consentOffersSms" in $$props) $$invalidate(13, consentOffersSms = $$props.consentOffersSms);
1740
+ if ("consentOffersEmail" in $$props) $$invalidate(14, consentOffersEmail = $$props.consentOffersEmail);
1741
+ if ("consentTerms" in $$props) $$invalidate(15, consentTerms = $$props.consentTerms);
1742
+ if ("isValid" in $$props) $$invalidate(16, isValid = $$props.isValid);
1448
1743
  };
1449
1744
 
1450
1745
  if ($$props && "$$inject" in $$props) {
@@ -1455,9 +1750,13 @@
1455
1750
  invalidAddress,
1456
1751
  invalidPostalCode,
1457
1752
  invalidMobile,
1753
+ invalidCity,
1754
+ invalidNationality,
1458
1755
  address,
1459
1756
  postalCode,
1757
+ city,
1460
1758
  countrySelected,
1759
+ nationality,
1461
1760
  mobile,
1462
1761
  mobilePrefixSelected,
1463
1762
  consentOffers,
@@ -1469,6 +1768,8 @@
1469
1768
  mobilePrefixes,
1470
1769
  validateAddress,
1471
1770
  validatePostalCode,
1771
+ validateCity,
1772
+ validateNationality,
1472
1773
  validateMobile,
1473
1774
  toggleOffers,
1474
1775
  toggleOffersSms,
@@ -1478,9 +1779,11 @@
1478
1779
  goBack,
1479
1780
  input0_input_handler,
1480
1781
  input1_input_handler,
1782
+ input2_input_handler,
1481
1783
  select0_change_handler,
1784
+ input3_input_handler,
1482
1785
  select1_change_handler,
1483
- input2_input_handler,
1786
+ input4_input_handler,
1484
1787
  click_handler,
1485
1788
  click_handler_1,
1486
1789
  click_handler_2,
@@ -1491,7 +1794,7 @@
1491
1794
  class GeneralPlayerRegisterFormStep3 extends SvelteElement {
1492
1795
  constructor(options) {
1493
1796
  super();
1494
- this.shadowRoot.innerHTML = `<style>.BackButton{display:inline-flex;color:#07072A;height:24px;line-height:24px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:32px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:24px;height:24px;margin-right:20px;fill:#D0046C}.AddressPostalCodeContainer{display:flex;gap:16px}.AddressContainer,.PostalCodeContainer,.CountryContainer,.MobileContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.AddressContainer label,.PostalCodeContainer label,.CountryContainer label,.MobileContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.AddressContainer input,.PostalCodeContainer input,.CountryContainer select,.MobileContainer input,.MobileContainer select{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.AddressContainer.InvalidField input,.PostalCodeContainer.InvalidField input,.MobileContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.AddressContainer{width:65%}.PostalCodeContainer{width:35%}.MobileWrapper{display:flex;gap:16px}.MobileWrapper .MobilePrefixSelected{width:30%}.MobileWrapper .MobileInput{width:70%}.FormRequired{color:#FD2839}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.OffersMethodsWrapper{padding-left:32px}.Offers,.OffersMethod,.AgeConsent{display:block;position:relative;padding:5.008px 0 0 35.008px;margin-bottom:16px;font-size:16px;user-select:none;line-height:19.2px}.Offers input,.OffersMethod input,.AgeConsent input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.Offers .Checkmark,.OffersMethod .Checkmark,.AgeConsent .Checkmark{position:absolute;top:0;left:0;height:25.008px;width:25.008px;background-color:#D1D1D1;border-radius:50%}.Offers input:checked~.Checkmark,.OffersMethod input:checked~.Checkmark,.AgeConsent input:checked~.Checkmark{background-color:#D0046C}.Offers .Checkmark:after,.OffersMethod .Checkmark:after,.AgeConsent .Checkmark:after{content:"";position:absolute;display:none;left:9.008px;top:5.008px;width:5.008px;height:10px;border:solid white;border-width:0 3.008px 3.008px 0;transform:rotate(45deg)}.Offers input:checked~.Checkmark:after,.OffersMethod input:checked~.Checkmark:after,.AgeConsent input:checked~.Checkmark:after{display:block}.NotificationContainer{margin-top:32px}.NotificationContainer p{color:#FD2839;font-size:14px}.RegisterStepNext{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}</style>`;
1797
+ this.shadowRoot.innerHTML = `<style>.BackButton{display:inline-flex;color:#07072A;height:24px;line-height:24px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:32px;cursor:pointer;margin-bottom:30px}.BackButton svg{width:24px;height:24px;margin-right:20px;fill:#D0046C}.AddressPostalCodeContainer{display:flex;gap:16px}.AddressContainer,.PostalCodeContainer,.CityContainer,.CountryContainer,.NationalityContainer,.MobileContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.AddressContainer label,.PostalCodeContainer label,.CityContainer label,.CountryContainer label,.NationalityContainer label,.MobileContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.AddressContainer input,.PostalCodeContainer input,.CityContainer input,.CountryContainer select,.NationalityContainer input,.MobileContainer input,.MobileContainer select{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.AddressContainer.InvalidField input,.PostalCodeContainer.InvalidField input,.CityContainer.InvalidField input,.NationalityContainer.InvalidField input,.MobileContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.AddressContainer{width:65%}.PostalCodeContainer{width:35%}.MobileWrapper{display:flex;gap:16px}.MobileWrapper .MobilePrefixSelected{width:30%}.MobileWrapper .MobileInput{width:70%}.FormRequired{color:#FD2839}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.OffersMethodsWrapper{padding-left:32px}.Offers,.OffersMethod,.AgeConsent{display:block;position:relative;padding:5.008px 0 0 35.008px;margin-bottom:16px;font-size:16px;user-select:none;line-height:19.2px}.Offers input,.OffersMethod input,.AgeConsent input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.Offers .Checkmark,.OffersMethod .Checkmark,.AgeConsent .Checkmark{position:absolute;top:0;left:0;height:25.008px;width:25.008px;background-color:#D1D1D1;border-radius:50%}.Offers input:checked~.Checkmark,.OffersMethod input:checked~.Checkmark,.AgeConsent input:checked~.Checkmark{background-color:#D0046C}.Offers .Checkmark:after,.OffersMethod .Checkmark:after,.AgeConsent .Checkmark:after{content:"";position:absolute;display:none;left:9.008px;top:5.008px;width:5.008px;height:10px;border:solid white;border-width:0 3.008px 3.008px 0;transform:rotate(45deg)}.Offers input:checked~.Checkmark:after,.OffersMethod input:checked~.Checkmark:after,.AgeConsent input:checked~.Checkmark:after{display:block}.NotificationContainer{margin-top:32px}.NotificationContainer p{color:#FD2839;font-size:14px}.RegisterStepNext{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}</style>`;
1495
1798
 
1496
1799
  init(
1497
1800
  this,