@everymatrix/player-profile-info 0.0.128 → 0.0.132

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.
@@ -4459,11 +4459,11 @@
4459
4459
 
4460
4460
  function get_each_context(ctx, list, i) {
4461
4461
  const child_ctx = ctx.slice();
4462
- child_ctx[62] = list[i];
4462
+ child_ctx[64] = list[i];
4463
4463
  return child_ctx;
4464
4464
  }
4465
4465
 
4466
- // (11292:0) {:else}
4466
+ // (11300:0) {:else}
4467
4467
  function create_else_block(ctx) {
4468
4468
  let form;
4469
4469
  let t0;
@@ -4585,10 +4585,11 @@
4585
4585
  let div21;
4586
4586
  let t60;
4587
4587
  let div21_class_value;
4588
+ let t61;
4588
4589
  let mounted;
4589
4590
  let dispose;
4590
- let if_block = /*isMobile*/ ctx[23] && create_if_block_2(ctx);
4591
- let each_value = /*prefixesArray*/ ctx[25];
4591
+ let if_block0 = /*isMobile*/ ctx[24] && create_if_block_3(ctx);
4592
+ let each_value = /*prefixesArray*/ ctx[26];
4592
4593
  validate_each_argument(each_value);
4593
4594
  let each_blocks = [];
4594
4595
 
@@ -4596,10 +4597,12 @@
4596
4597
  each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
4597
4598
  }
4598
4599
 
4600
+ let if_block1 = /*showConfirmSave*/ ctx[12] && create_if_block_1(ctx);
4601
+
4599
4602
  const block = {
4600
4603
  c: function create() {
4601
4604
  form = element("form");
4602
- if (if_block) if_block.c();
4605
+ if (if_block0) if_block0.c();
4603
4606
  t0 = space();
4604
4607
  div0 = element("div");
4605
4608
  h30 = element("h3");
@@ -4732,200 +4735,202 @@
4732
4735
  t59 = space();
4733
4736
  div21 = element("div");
4734
4737
  t60 = text("Cancel");
4735
- add_location(h30, file, 11307, 4, 328178);
4738
+ t61 = space();
4739
+ if (if_block1) if_block1.c();
4740
+ add_location(h30, file, 11315, 4, 328412);
4736
4741
  attr_dev(div0, "class", "PlayerDetailsHeader");
4737
- add_location(div0, file, 11306, 2, 328140);
4738
- add_location(label0, file, 11311, 6, 328292);
4742
+ add_location(div0, file, 11314, 2, 328374);
4743
+ add_location(label0, file, 11319, 6, 328526);
4739
4744
  attr_dev(input0, "type", "text");
4740
4745
  attr_dev(input0, "class", "FieldDisabled");
4741
- input0.value = /*username*/ ctx[21];
4746
+ input0.value = /*username*/ ctx[22];
4742
4747
  input0.readOnly = true;
4743
- add_location(input0, file, 11312, 6, 328324);
4748
+ add_location(input0, file, 11320, 6, 328558);
4744
4749
  attr_dev(div1, "class", "PlayerInfoBox");
4745
- add_location(div1, file, 11310, 4, 328258);
4746
- add_location(label1, file, 11315, 6, 328443);
4747
- if (/*playerPrefix*/ ctx[8] === void 0) add_render_callback(() => /*select_change_handler*/ ctx[36].call(select));
4748
- add_location(select, file, 11317, 8, 328511);
4750
+ add_location(div1, file, 11318, 4, 328492);
4751
+ add_location(label1, file, 11323, 6, 328677);
4752
+ if (/*playerPrefix*/ ctx[8] === void 0) add_render_callback(() => /*select_change_handler*/ ctx[37].call(select));
4753
+ add_location(select, file, 11325, 8, 328745);
4749
4754
  attr_dev(input1, "type", "text");
4750
4755
  attr_dev(input1, "oninput", "this.value = this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');");
4751
- attr_dev(input1, "placeholder", input1_placeholder_value = /*noPlayerData*/ ctx[0] ? /*mobile*/ ctx[16].number : "");
4752
- add_location(input1, file, 11326, 6, 328881);
4756
+ attr_dev(input1, "placeholder", input1_placeholder_value = /*noPlayerData*/ ctx[0] ? /*mobile*/ ctx[17].number : "");
4757
+ add_location(input1, file, 11334, 6, 329115);
4753
4758
  attr_dev(div2, "class", "PlayerPhoneNumber");
4754
- add_location(div2, file, 11316, 6, 328471);
4759
+ add_location(div2, file, 11324, 6, 328705);
4755
4760
  attr_dev(div3, "class", "PlayerInfoBox");
4756
- add_location(div3, file, 11314, 4, 328409);
4757
- add_location(label2, file, 11330, 6, 329190);
4761
+ add_location(div3, file, 11322, 4, 328643);
4762
+ add_location(label2, file, 11338, 6, 329424);
4758
4763
  attr_dev(input2, "type", "email");
4759
4764
  attr_dev(input2, "class", "FieldDisabled");
4760
- input2.value = /*email*/ ctx[17];
4765
+ input2.value = /*email*/ ctx[18];
4761
4766
  input2.readOnly = true;
4762
- add_location(input2, file, 11331, 6, 329218);
4767
+ add_location(input2, file, 11339, 6, 329452);
4763
4768
  attr_dev(div4, "class", "PlayerInfoBox");
4764
- add_location(div4, file, 11329, 4, 329156);
4765
- add_location(label3, file, 11334, 6, 329335);
4769
+ add_location(div4, file, 11337, 4, 329390);
4770
+ add_location(label3, file, 11342, 6, 329569);
4766
4771
  attr_dev(input3, "type", "text");
4767
4772
 
4768
4773
  attr_dev(input3, "placeholder", input3_placeholder_value = /*noPlayerData*/ ctx[0]
4769
- ? /*securityQuestion*/ ctx[30]
4774
+ ? /*securityQuestion*/ ctx[31]
4770
4775
  : "");
4771
4776
 
4772
- add_location(input3, file, 11335, 6, 329375);
4777
+ add_location(input3, file, 11343, 6, 329609);
4773
4778
  attr_dev(div5, "class", "PlayerInfoBox");
4774
- add_location(div5, file, 11333, 4, 329301);
4775
- add_location(label4, file, 11338, 6, 329560);
4779
+ add_location(div5, file, 11341, 4, 329535);
4780
+ add_location(label4, file, 11346, 6, 329794);
4776
4781
  attr_dev(input4, "type", "text");
4777
4782
  attr_dev(input4, "class", "FieldDisabled");
4778
- input4.value = /*firstname*/ ctx[18];
4783
+ input4.value = /*firstname*/ ctx[19];
4779
4784
  input4.readOnly = true;
4780
- add_location(input4, file, 11339, 6, 329593);
4785
+ add_location(input4, file, 11347, 6, 329827);
4781
4786
  attr_dev(div6, "class", "PlayerInfoBox");
4782
- add_location(div6, file, 11337, 4, 329526);
4783
- add_location(label5, file, 11342, 6, 329713);
4787
+ add_location(div6, file, 11345, 4, 329760);
4788
+ add_location(label5, file, 11350, 6, 329947);
4784
4789
  attr_dev(input5, "type", "text");
4785
4790
 
4786
4791
  attr_dev(input5, "placeholder", input5_placeholder_value = /*noPlayerData*/ ctx[0]
4787
- ? /*securityAnswer*/ ctx[29]
4792
+ ? /*securityAnswer*/ ctx[30]
4788
4793
  : "");
4789
4794
 
4790
- add_location(input5, file, 11343, 6, 329751);
4795
+ add_location(input5, file, 11351, 6, 329985);
4791
4796
  attr_dev(div7, "class", "PlayerInfoBox");
4792
- add_location(div7, file, 11341, 4, 329679);
4793
- add_location(label6, file, 11346, 6, 329932);
4797
+ add_location(div7, file, 11349, 4, 329913);
4798
+ add_location(label6, file, 11354, 6, 330166);
4794
4799
  attr_dev(input6, "type", "text");
4795
4800
  attr_dev(input6, "class", "FieldDisabled");
4796
- input6.value = /*lastname*/ ctx[20];
4801
+ input6.value = /*lastname*/ ctx[21];
4797
4802
  input6.readOnly = true;
4798
- add_location(input6, file, 11347, 6, 329964);
4803
+ add_location(input6, file, 11355, 6, 330198);
4799
4804
  attr_dev(div8, "class", "PlayerInfoBox");
4800
- add_location(div8, file, 11345, 4, 329898);
4801
- add_location(label7, file, 11350, 6, 330083);
4805
+ add_location(div8, file, 11353, 4, 330132);
4806
+ add_location(label7, file, 11358, 6, 330317);
4802
4807
  attr_dev(input7, "type", "text");
4803
4808
  attr_dev(input7, "class", "FieldDisabled");
4804
- input7.value = /*birth*/ ctx[13];
4809
+ input7.value = /*birth*/ ctx[14];
4805
4810
  input7.readOnly = true;
4806
- add_location(input7, file, 11351, 4, 330117);
4811
+ add_location(input7, file, 11359, 4, 330351);
4807
4812
  attr_dev(div9, "class", "PlayerInfoBox");
4808
- add_location(div9, file, 11349, 4, 330049);
4809
- add_location(label8, file, 11354, 6, 330233);
4813
+ add_location(div9, file, 11357, 4, 330283);
4814
+ add_location(label8, file, 11362, 6, 330467);
4810
4815
  attr_dev(input8, "type", "text");
4811
4816
  attr_dev(input8, "class", "FieldDisabled");
4812
- input8.value = /*currency*/ ctx[15];
4817
+ input8.value = /*currency*/ ctx[16];
4813
4818
  input8.readOnly = true;
4814
- add_location(input8, file, 11355, 6, 330264);
4819
+ add_location(input8, file, 11363, 6, 330498);
4815
4820
  attr_dev(div10, "class", "PlayerInfoBox");
4816
- add_location(div10, file, 11353, 4, 330199);
4817
- add_location(label9, file, 11358, 6, 330383);
4821
+ add_location(div10, file, 11361, 4, 330433);
4822
+ add_location(label9, file, 11366, 6, 330617);
4818
4823
  attr_dev(input9, "type", "text");
4819
4824
  attr_dev(input9, "class", "FieldDisabled");
4820
- input9.value = /*gender*/ ctx[19];
4825
+ input9.value = /*gender*/ ctx[20];
4821
4826
  input9.readOnly = true;
4822
- add_location(input9, file, 11359, 6, 330412);
4827
+ add_location(input9, file, 11367, 6, 330646);
4823
4828
  attr_dev(div11, "class", "PlayerInfoBox");
4824
- add_location(div11, file, 11357, 4, 330349);
4829
+ add_location(div11, file, 11365, 4, 330583);
4825
4830
  attr_dev(section0, "class", "PlayerDetailsContent");
4826
- add_location(section0, file, 11309, 2, 328215);
4827
- add_location(h31, file, 11364, 4, 330546);
4831
+ add_location(section0, file, 11317, 2, 328449);
4832
+ add_location(h31, file, 11372, 4, 330780);
4828
4833
  attr_dev(div12, "class", "PlayerLocationHeader");
4829
- add_location(div12, file, 11363, 2, 330507);
4830
- add_location(label10, file, 11368, 6, 330661);
4834
+ add_location(div12, file, 11371, 2, 330741);
4835
+ add_location(label10, file, 11376, 6, 330895);
4831
4836
  attr_dev(input10, "type", "text");
4832
4837
  attr_dev(input10, "class", "PlayerCountry FieldDisabled");
4833
- attr_dev(input10, "placeholder", /*country*/ ctx[14]);
4838
+ attr_dev(input10, "placeholder", /*country*/ ctx[15]);
4834
4839
  input10.value = input10_value_value = /*selectedCountry*/ ctx[11].name;
4835
4840
  input10.readOnly = true;
4836
- add_location(input10, file, 11369, 6, 330691);
4841
+ add_location(input10, file, 11377, 6, 330925);
4837
4842
  attr_dev(div13, "class", "PlayerInfoBox");
4838
- add_location(div13, file, 11367, 4, 330627);
4839
- add_location(label11, file, 11372, 6, 330858);
4843
+ add_location(div13, file, 11375, 4, 330861);
4844
+ add_location(label11, file, 11380, 6, 331092);
4840
4845
  attr_dev(input11, "type", "text");
4841
- attr_dev(input11, "placeholder", input11_placeholder_value = /*noPlayerData*/ ctx[0] ? /*city*/ ctx[27] : "");
4846
+ attr_dev(input11, "placeholder", input11_placeholder_value = /*noPlayerData*/ ctx[0] ? /*city*/ ctx[28] : "");
4842
4847
 
4843
4848
  input11.value = input11_value_value = /*noPlayerData*/ ctx[0]
4844
4849
  ? ""
4845
- : /*initialValuesArray*/ ctx[12].city;
4850
+ : /*initialValuesArray*/ ctx[13].city;
4846
4851
 
4847
- add_location(input11, file, 11373, 4, 330883);
4852
+ add_location(input11, file, 11381, 4, 331117);
4848
4853
  attr_dev(div14, "class", "PlayerInfoBox");
4849
- add_location(div14, file, 11371, 4, 330824);
4850
- add_location(label12, file, 11376, 6, 331103);
4851
- attr_dev(input12, "placeholder", /*address1*/ ctx[26]);
4854
+ add_location(div14, file, 11379, 4, 331058);
4855
+ add_location(label12, file, 11384, 6, 331337);
4856
+ attr_dev(input12, "placeholder", /*address1*/ ctx[27]);
4852
4857
  attr_dev(input12, "type", "text");
4853
4858
 
4854
4859
  input12.value = input12_value_value = /*noPlayerData*/ ctx[0]
4855
4860
  ? ""
4856
- : /*initialValuesArray*/ ctx[12].address;
4861
+ : /*initialValuesArray*/ ctx[13].address;
4857
4862
 
4858
- add_location(input12, file, 11377, 4, 331131);
4863
+ add_location(input12, file, 11385, 4, 331365);
4859
4864
  attr_dev(div15, "class", "PlayerInfoBox");
4860
- add_location(div15, file, 11375, 4, 331069);
4861
- add_location(label13, file, 11380, 6, 331341);
4865
+ add_location(div15, file, 11383, 4, 331303);
4866
+ add_location(label13, file, 11388, 6, 331575);
4862
4867
  attr_dev(input13, "type", "number");
4863
- attr_dev(input13, "placeholder", input13_placeholder_value = /*noPlayerData*/ ctx[0] ? /*postalCode*/ ctx[28] : "");
4868
+ attr_dev(input13, "placeholder", input13_placeholder_value = /*noPlayerData*/ ctx[0] ? /*postalCode*/ ctx[29] : "");
4864
4869
 
4865
4870
  input13.value = input13_value_value = /*noPlayerData*/ ctx[0]
4866
4871
  ? ""
4867
- : /*initialValuesArray*/ ctx[12].postalCode;
4872
+ : /*initialValuesArray*/ ctx[13].postalCode;
4868
4873
 
4869
- add_location(input13, file, 11381, 6, 331375);
4874
+ add_location(input13, file, 11389, 6, 331609);
4870
4875
  attr_dev(div16, "class", "PlayerInfoBox");
4871
- add_location(div16, file, 11379, 4, 331307);
4876
+ add_location(div16, file, 11387, 4, 331541);
4872
4877
  attr_dev(section1, "class", "PlayerLocationContent");
4873
- add_location(section1, file, 11366, 2, 330583);
4874
- add_location(h32, file, 11386, 4, 331637);
4878
+ add_location(section1, file, 11374, 2, 330817);
4879
+ add_location(h32, file, 11394, 4, 331871);
4875
4880
  attr_dev(div17, "class", "PlayerNotificationsHeader");
4876
- add_location(div17, file, 11385, 2, 331593);
4881
+ add_location(div17, file, 11393, 2, 331827);
4877
4882
  attr_dev(input14, "type", "checkbox");
4878
4883
  attr_dev(input14, "id", "SMSNotification");
4879
4884
  attr_dev(input14, "name", "Enable SMS notifications");
4880
- add_location(input14, file, 11391, 8, 331805);
4885
+ add_location(input14, file, 11399, 8, 332039);
4881
4886
  attr_dev(span0, "class", "Checkmark");
4882
- add_location(span0, file, 11392, 8, 331951);
4883
- add_location(span1, file, 11393, 8, 331991);
4887
+ add_location(span0, file, 11400, 8, 332185);
4888
+ add_location(span1, file, 11401, 8, 332225);
4884
4889
  attr_dev(label14, "for", "SMSNotification");
4885
- add_location(label14, file, 11390, 6, 331767);
4890
+ add_location(label14, file, 11398, 6, 332001);
4886
4891
  attr_dev(div18, "class", "PlayerNotificationBox");
4887
- add_location(div18, file, 11389, 4, 331725);
4892
+ add_location(div18, file, 11397, 4, 331959);
4888
4893
  attr_dev(input15, "type", "checkbox");
4889
4894
  attr_dev(input15, "id", "EmailNotification");
4890
4895
  attr_dev(input15, "name", "Enable Emails");
4891
- add_location(input15, file, 11398, 8, 332141);
4896
+ add_location(input15, file, 11406, 8, 332375);
4892
4897
  attr_dev(span2, "class", "Checkmark");
4893
- add_location(span2, file, 11399, 8, 332279);
4894
- add_location(span3, file, 11400, 8, 332319);
4898
+ add_location(span2, file, 11407, 8, 332513);
4899
+ add_location(span3, file, 11408, 8, 332553);
4895
4900
  attr_dev(label15, "for", "EmailNotification");
4896
- add_location(label15, file, 11397, 6, 332101);
4901
+ add_location(label15, file, 11405, 6, 332335);
4897
4902
  attr_dev(div19, "class", "PlayerNotificationBox");
4898
- add_location(div19, file, 11396, 4, 332059);
4903
+ add_location(div19, file, 11404, 4, 332293);
4899
4904
  attr_dev(section2, "class", "PlayerNotificationsCheckboxArea");
4900
- add_location(section2, file, 11388, 2, 331671);
4905
+ add_location(section2, file, 11396, 2, 331905);
4901
4906
 
4902
4907
  attr_dev(div20, "class", div20_class_value = "PlayerDetailsSaveButton " + (/*differencesExist*/ ctx[10]
4903
4908
  ? ""
4904
4909
  : "PlayerButtonDisabled"));
4905
4910
 
4906
- add_location(div20, file, 11405, 4, 332485);
4911
+ add_location(div20, file, 11413, 4, 332719);
4907
4912
 
4908
4913
  attr_dev(div21, "class", div21_class_value = "PlayerDetailsCancelButton " + (/*differencesExist*/ ctx[10]
4909
4914
  ? ""
4910
4915
  : "PlayerButtonDisabled"));
4911
4916
 
4912
- add_location(div21, file, 11406, 4, 332630);
4917
+ add_location(div21, file, 11414, 4, 332864);
4913
4918
 
4914
- attr_dev(section3, "class", "PlayerDetailsButtonsArea " + (/*isMobile*/ ctx[23]
4919
+ attr_dev(section3, "class", "PlayerDetailsButtonsArea " + (/*isMobile*/ ctx[24]
4915
4920
  ? "PlayerDetailsButtonsAreaMobile"
4916
4921
  : ""));
4917
4922
 
4918
- add_location(section3, file, 11404, 2, 332387);
4923
+ add_location(section3, file, 11412, 2, 332621);
4919
4924
 
4920
- attr_dev(form, "class", "PlayerInfoWrapper " + (/*isMobile*/ ctx[23] ? "PlayerInfoWrapperMobile" : "") + " " + (/*mediaQuery*/ ctx[24].matches && /*isMobile*/ ctx[23]
4925
+ attr_dev(form, "class", "PlayerInfoWrapper " + (/*isMobile*/ ctx[24] ? "PlayerInfoWrapperMobile" : "") + " " + (/*mediaQuery*/ ctx[25].matches && /*isMobile*/ ctx[24]
4921
4926
  ? "PlayerInfoWrapperTablet"
4922
4927
  : ""));
4923
4928
 
4924
- add_location(form, file, 11292, 0, 327231);
4929
+ add_location(form, file, 11300, 0, 327465);
4925
4930
  },
4926
4931
  m: function mount(target, anchor) {
4927
4932
  insert_dev(target, form, anchor);
4928
- if (if_block) if_block.m(form, null);
4933
+ if (if_block0) if_block0.m(form, null);
4929
4934
  append_dev(form, t0);
4930
4935
  append_dev(form, div0);
4931
4936
  append_dev(div0, h30);
@@ -5006,19 +5011,19 @@
5006
5011
  append_dev(div14, label11);
5007
5012
  append_dev(div14, t40);
5008
5013
  append_dev(div14, input11);
5009
- /*input11_binding*/ ctx[44](input11);
5014
+ /*input11_binding*/ ctx[45](input11);
5010
5015
  append_dev(section1, t41);
5011
5016
  append_dev(section1, div15);
5012
5017
  append_dev(div15, label12);
5013
5018
  append_dev(div15, t43);
5014
5019
  append_dev(div15, input12);
5015
- /*input12_binding*/ ctx[46](input12);
5020
+ /*input12_binding*/ ctx[47](input12);
5016
5021
  append_dev(section1, t44);
5017
5022
  append_dev(section1, div16);
5018
5023
  append_dev(div16, label13);
5019
5024
  append_dev(div16, t46);
5020
5025
  append_dev(div16, input13);
5021
- /*input13_binding*/ ctx[48](input13);
5026
+ /*input13_binding*/ ctx[49](input13);
5022
5027
  append_dev(form, t47);
5023
5028
  append_dev(form, div17);
5024
5029
  append_dev(div17, h32);
@@ -5048,40 +5053,42 @@
5048
5053
  append_dev(section3, t59);
5049
5054
  append_dev(section3, div21);
5050
5055
  append_dev(div21, t60);
5056
+ append_dev(form, t61);
5057
+ if (if_block1) if_block1.m(form, null);
5051
5058
 
5052
5059
  if (!mounted) {
5053
5060
  dispose = [
5054
- listen_dev(select, "change", /*select_change_handler*/ ctx[36]),
5055
- listen_dev(select, "change", /*change_handler*/ ctx[37], false, false, false),
5056
- listen_dev(input1, "input", /*input1_input_handler*/ ctx[38]),
5057
- listen_dev(input1, "keyup", /*keyup_handler*/ ctx[39], false, false, false),
5058
- listen_dev(input3, "input", /*input3_input_handler*/ ctx[40]),
5059
- listen_dev(input3, "keyup", /*keyup_handler_1*/ ctx[41], false, false, false),
5060
- listen_dev(input5, "input", /*input5_input_handler*/ ctx[42]),
5061
- listen_dev(input5, "keyup", /*keyup_handler_2*/ ctx[43], false, false, false),
5062
- listen_dev(input11, "keyup", /*keyup_handler_3*/ ctx[45], false, false, false),
5063
- listen_dev(input12, "keyup", /*keyup_handler_4*/ ctx[47], false, false, false),
5064
- listen_dev(input13, "keyup", /*keyup_handler_5*/ ctx[49], false, false, false),
5065
- listen_dev(input14, "change", /*input14_change_handler*/ ctx[50]),
5066
- listen_dev(input14, "change", /*checkForChanges*/ ctx[33], false, false, false),
5067
- listen_dev(input15, "change", /*input15_change_handler*/ ctx[51]),
5068
- listen_dev(input15, "change", /*checkForChanges*/ ctx[33], false, false, false),
5069
- listen_dev(div20, "click", /*click_handler_1*/ ctx[52], false, false, false),
5070
- listen_dev(div21, "click", /*click_handler_2*/ ctx[53], false, false, false)
5061
+ listen_dev(select, "change", /*select_change_handler*/ ctx[37]),
5062
+ listen_dev(select, "change", /*change_handler*/ ctx[38], false, false, false),
5063
+ listen_dev(input1, "input", /*input1_input_handler*/ ctx[39]),
5064
+ listen_dev(input1, "keyup", /*keyup_handler*/ ctx[40], false, false, false),
5065
+ listen_dev(input3, "input", /*input3_input_handler*/ ctx[41]),
5066
+ listen_dev(input3, "keyup", /*keyup_handler_1*/ ctx[42], false, false, false),
5067
+ listen_dev(input5, "input", /*input5_input_handler*/ ctx[43]),
5068
+ listen_dev(input5, "keyup", /*keyup_handler_2*/ ctx[44], false, false, false),
5069
+ listen_dev(input11, "keyup", /*keyup_handler_3*/ ctx[46], false, false, false),
5070
+ listen_dev(input12, "keyup", /*keyup_handler_4*/ ctx[48], false, false, false),
5071
+ listen_dev(input13, "keyup", /*keyup_handler_5*/ ctx[50], false, false, false),
5072
+ listen_dev(input14, "change", /*input14_change_handler*/ ctx[51]),
5073
+ listen_dev(input14, "change", /*checkForChanges*/ ctx[34], false, false, false),
5074
+ listen_dev(input15, "change", /*input15_change_handler*/ ctx[52]),
5075
+ listen_dev(input15, "change", /*checkForChanges*/ ctx[34], false, false, false),
5076
+ listen_dev(div20, "click", /*click_handler_1*/ ctx[53], false, false, false),
5077
+ listen_dev(div21, "click", /*click_handler_2*/ ctx[54], false, false, false)
5071
5078
  ];
5072
5079
 
5073
5080
  mounted = true;
5074
5081
  }
5075
5082
  },
5076
5083
  p: function update(ctx, dirty) {
5077
- if (/*isMobile*/ ctx[23]) if_block.p(ctx, dirty);
5084
+ if (/*isMobile*/ ctx[24]) if_block0.p(ctx, dirty);
5078
5085
 
5079
- if (dirty[0] & /*username*/ 2097152 && input0.value !== /*username*/ ctx[21]) {
5080
- prop_dev(input0, "value", /*username*/ ctx[21]);
5086
+ if (dirty[0] & /*username*/ 4194304 && input0.value !== /*username*/ ctx[22]) {
5087
+ prop_dev(input0, "value", /*username*/ ctx[22]);
5081
5088
  }
5082
5089
 
5083
- if (dirty[0] & /*prefixesArray, initialValuesArray*/ 33558528) {
5084
- each_value = /*prefixesArray*/ ctx[25];
5090
+ if (dirty[0] & /*prefixesArray, initialValuesArray*/ 67117056) {
5091
+ each_value = /*prefixesArray*/ ctx[26];
5085
5092
  validate_each_argument(each_value);
5086
5093
  let i;
5087
5094
 
@@ -5104,11 +5111,11 @@
5104
5111
  each_blocks.length = each_value.length;
5105
5112
  }
5106
5113
 
5107
- if (dirty[0] & /*playerPrefix, prefixesArray*/ 33554688) {
5114
+ if (dirty[0] & /*playerPrefix, prefixesArray*/ 67109120) {
5108
5115
  select_option(select, /*playerPrefix*/ ctx[8]);
5109
5116
  }
5110
5117
 
5111
- if (dirty[0] & /*noPlayerData, mobile*/ 65537 && input1_placeholder_value !== (input1_placeholder_value = /*noPlayerData*/ ctx[0] ? /*mobile*/ ctx[16].number : "")) {
5118
+ if (dirty[0] & /*noPlayerData, mobile*/ 131073 && input1_placeholder_value !== (input1_placeholder_value = /*noPlayerData*/ ctx[0] ? /*mobile*/ ctx[17].number : "")) {
5112
5119
  attr_dev(input1, "placeholder", input1_placeholder_value);
5113
5120
  }
5114
5121
 
@@ -5116,12 +5123,12 @@
5116
5123
  set_input_value(input1, /*playerMobileNumber*/ ctx[9]);
5117
5124
  }
5118
5125
 
5119
- if (dirty[0] & /*email*/ 131072 && input2.value !== /*email*/ ctx[17]) {
5120
- prop_dev(input2, "value", /*email*/ ctx[17]);
5126
+ if (dirty[0] & /*email*/ 262144 && input2.value !== /*email*/ ctx[18]) {
5127
+ prop_dev(input2, "value", /*email*/ ctx[18]);
5121
5128
  }
5122
5129
 
5123
5130
  if (dirty[0] & /*noPlayerData*/ 1 && input3_placeholder_value !== (input3_placeholder_value = /*noPlayerData*/ ctx[0]
5124
- ? /*securityQuestion*/ ctx[30]
5131
+ ? /*securityQuestion*/ ctx[31]
5125
5132
  : "")) {
5126
5133
  attr_dev(input3, "placeholder", input3_placeholder_value);
5127
5134
  }
@@ -5130,12 +5137,12 @@
5130
5137
  set_input_value(input3, /*playerQuestion*/ ctx[6]);
5131
5138
  }
5132
5139
 
5133
- if (dirty[0] & /*firstname*/ 262144 && input4.value !== /*firstname*/ ctx[18]) {
5134
- prop_dev(input4, "value", /*firstname*/ ctx[18]);
5140
+ if (dirty[0] & /*firstname*/ 524288 && input4.value !== /*firstname*/ ctx[19]) {
5141
+ prop_dev(input4, "value", /*firstname*/ ctx[19]);
5135
5142
  }
5136
5143
 
5137
5144
  if (dirty[0] & /*noPlayerData*/ 1 && input5_placeholder_value !== (input5_placeholder_value = /*noPlayerData*/ ctx[0]
5138
- ? /*securityAnswer*/ ctx[29]
5145
+ ? /*securityAnswer*/ ctx[30]
5139
5146
  : "")) {
5140
5147
  attr_dev(input5, "placeholder", input5_placeholder_value);
5141
5148
  }
@@ -5144,53 +5151,53 @@
5144
5151
  set_input_value(input5, /*playerAnswer*/ ctx[7]);
5145
5152
  }
5146
5153
 
5147
- if (dirty[0] & /*lastname*/ 1048576 && input6.value !== /*lastname*/ ctx[20]) {
5148
- prop_dev(input6, "value", /*lastname*/ ctx[20]);
5154
+ if (dirty[0] & /*lastname*/ 2097152 && input6.value !== /*lastname*/ ctx[21]) {
5155
+ prop_dev(input6, "value", /*lastname*/ ctx[21]);
5149
5156
  }
5150
5157
 
5151
- if (dirty[0] & /*birth*/ 8192 && input7.value !== /*birth*/ ctx[13]) {
5152
- prop_dev(input7, "value", /*birth*/ ctx[13]);
5158
+ if (dirty[0] & /*birth*/ 16384 && input7.value !== /*birth*/ ctx[14]) {
5159
+ prop_dev(input7, "value", /*birth*/ ctx[14]);
5153
5160
  }
5154
5161
 
5155
- if (dirty[0] & /*currency*/ 32768 && input8.value !== /*currency*/ ctx[15]) {
5156
- prop_dev(input8, "value", /*currency*/ ctx[15]);
5162
+ if (dirty[0] & /*currency*/ 65536 && input8.value !== /*currency*/ ctx[16]) {
5163
+ prop_dev(input8, "value", /*currency*/ ctx[16]);
5157
5164
  }
5158
5165
 
5159
- if (dirty[0] & /*gender*/ 524288 && input9.value !== /*gender*/ ctx[19]) {
5160
- prop_dev(input9, "value", /*gender*/ ctx[19]);
5166
+ if (dirty[0] & /*gender*/ 1048576 && input9.value !== /*gender*/ ctx[20]) {
5167
+ prop_dev(input9, "value", /*gender*/ ctx[20]);
5161
5168
  }
5162
5169
 
5163
- if (dirty[0] & /*country*/ 16384) {
5164
- attr_dev(input10, "placeholder", /*country*/ ctx[14]);
5170
+ if (dirty[0] & /*country*/ 32768) {
5171
+ attr_dev(input10, "placeholder", /*country*/ ctx[15]);
5165
5172
  }
5166
5173
 
5167
5174
  if (dirty[0] & /*selectedCountry*/ 2048 && input10_value_value !== (input10_value_value = /*selectedCountry*/ ctx[11].name) && input10.value !== input10_value_value) {
5168
5175
  prop_dev(input10, "value", input10_value_value);
5169
5176
  }
5170
5177
 
5171
- if (dirty[0] & /*noPlayerData*/ 1 && input11_placeholder_value !== (input11_placeholder_value = /*noPlayerData*/ ctx[0] ? /*city*/ ctx[27] : "")) {
5178
+ if (dirty[0] & /*noPlayerData*/ 1 && input11_placeholder_value !== (input11_placeholder_value = /*noPlayerData*/ ctx[0] ? /*city*/ ctx[28] : "")) {
5172
5179
  attr_dev(input11, "placeholder", input11_placeholder_value);
5173
5180
  }
5174
5181
 
5175
- if (dirty[0] & /*noPlayerData, initialValuesArray*/ 4097 && input11_value_value !== (input11_value_value = /*noPlayerData*/ ctx[0]
5182
+ if (dirty[0] & /*noPlayerData, initialValuesArray*/ 8193 && input11_value_value !== (input11_value_value = /*noPlayerData*/ ctx[0]
5176
5183
  ? ""
5177
- : /*initialValuesArray*/ ctx[12].city) && input11.value !== input11_value_value) {
5184
+ : /*initialValuesArray*/ ctx[13].city) && input11.value !== input11_value_value) {
5178
5185
  prop_dev(input11, "value", input11_value_value);
5179
5186
  }
5180
5187
 
5181
- if (dirty[0] & /*noPlayerData, initialValuesArray*/ 4097 && input12_value_value !== (input12_value_value = /*noPlayerData*/ ctx[0]
5188
+ if (dirty[0] & /*noPlayerData, initialValuesArray*/ 8193 && input12_value_value !== (input12_value_value = /*noPlayerData*/ ctx[0]
5182
5189
  ? ""
5183
- : /*initialValuesArray*/ ctx[12].address) && input12.value !== input12_value_value) {
5190
+ : /*initialValuesArray*/ ctx[13].address) && input12.value !== input12_value_value) {
5184
5191
  prop_dev(input12, "value", input12_value_value);
5185
5192
  }
5186
5193
 
5187
- if (dirty[0] & /*noPlayerData*/ 1 && input13_placeholder_value !== (input13_placeholder_value = /*noPlayerData*/ ctx[0] ? /*postalCode*/ ctx[28] : "")) {
5194
+ if (dirty[0] & /*noPlayerData*/ 1 && input13_placeholder_value !== (input13_placeholder_value = /*noPlayerData*/ ctx[0] ? /*postalCode*/ ctx[29] : "")) {
5188
5195
  attr_dev(input13, "placeholder", input13_placeholder_value);
5189
5196
  }
5190
5197
 
5191
- if (dirty[0] & /*noPlayerData, initialValuesArray*/ 4097 && input13_value_value !== (input13_value_value = /*noPlayerData*/ ctx[0]
5198
+ if (dirty[0] & /*noPlayerData, initialValuesArray*/ 8193 && input13_value_value !== (input13_value_value = /*noPlayerData*/ ctx[0]
5192
5199
  ? ""
5193
- : /*initialValuesArray*/ ctx[12].postalCode)) {
5200
+ : /*initialValuesArray*/ ctx[13].postalCode)) {
5194
5201
  prop_dev(input13, "value", input13_value_value);
5195
5202
  }
5196
5203
 
@@ -5213,14 +5220,26 @@
5213
5220
  : "PlayerButtonDisabled"))) {
5214
5221
  attr_dev(div21, "class", div21_class_value);
5215
5222
  }
5223
+
5224
+ if (/*showConfirmSave*/ ctx[12]) {
5225
+ if (if_block1) ; else {
5226
+ if_block1 = create_if_block_1(ctx);
5227
+ if_block1.c();
5228
+ if_block1.m(form, null);
5229
+ }
5230
+ } else if (if_block1) {
5231
+ if_block1.d(1);
5232
+ if_block1 = null;
5233
+ }
5216
5234
  },
5217
5235
  d: function destroy(detaching) {
5218
5236
  if (detaching) detach_dev(form);
5219
- if (if_block) if_block.d();
5237
+ if (if_block0) if_block0.d();
5220
5238
  destroy_each(each_blocks, detaching);
5221
- /*input11_binding*/ ctx[44](null);
5222
- /*input12_binding*/ ctx[46](null);
5223
- /*input13_binding*/ ctx[48](null);
5239
+ /*input11_binding*/ ctx[45](null);
5240
+ /*input12_binding*/ ctx[47](null);
5241
+ /*input13_binding*/ ctx[49](null);
5242
+ if (if_block1) if_block1.d();
5224
5243
  mounted = false;
5225
5244
  run_all(dispose);
5226
5245
  }
@@ -5230,14 +5249,14 @@
5230
5249
  block,
5231
5250
  id: create_else_block.name,
5232
5251
  type: "else",
5233
- source: "(11292:0) {:else}",
5252
+ source: "(11300:0) {:else}",
5234
5253
  ctx
5235
5254
  });
5236
5255
 
5237
5256
  return block;
5238
5257
  }
5239
5258
 
5240
- // (11290:0) {#if isLoading}
5259
+ // (11298:0) {#if isLoading}
5241
5260
  function create_if_block(ctx) {
5242
5261
  let div;
5243
5262
 
@@ -5245,7 +5264,7 @@
5245
5264
  c: function create() {
5246
5265
  div = element("div");
5247
5266
  attr_dev(div, "class", "ModalLoader");
5248
- add_location(div, file, 11290, 2, 327191);
5267
+ add_location(div, file, 11298, 2, 327425);
5249
5268
  },
5250
5269
  m: function mount(target, anchor) {
5251
5270
  insert_dev(target, div, anchor);
@@ -5260,15 +5279,15 @@
5260
5279
  block,
5261
5280
  id: create_if_block.name,
5262
5281
  type: "if",
5263
- source: "(11290:0) {#if isLoading}",
5282
+ source: "(11298:0) {#if isLoading}",
5264
5283
  ctx
5265
5284
  });
5266
5285
 
5267
5286
  return block;
5268
5287
  }
5269
5288
 
5270
- // (11294:2) {#if isMobile}
5271
- function create_if_block_2(ctx) {
5289
+ // (11302:2) {#if isMobile}
5290
+ function create_if_block_3(ctx) {
5272
5291
  let div;
5273
5292
  let svg;
5274
5293
  let g;
@@ -5289,8 +5308,8 @@
5289
5308
  span.textContent = "Return to menu";
5290
5309
  attr_dev(path, "id", "Chevron_Right");
5291
5310
  attr_dev(path, "d", "M57.633,129.007L165.93,237.268c4.752,4.74,12.451,4.74,17.215,0c4.752-4.74,4.752-12.439,0-17.179\n l-99.707-99.671l99.695-99.671c4.752-4.74,4.752-12.439,0-17.191c-4.752-4.74-12.463-4.74-17.215,0L57.621,111.816\n C52.942,116.507,52.942,124.327,57.633,129.007z");
5292
- add_location(path, file, 11298, 10, 327750);
5293
- add_location(g, file, 11297, 8, 327736);
5311
+ add_location(path, file, 11306, 10, 327984);
5312
+ add_location(g, file, 11305, 8, 327970);
5294
5313
  attr_dev(svg, "version", "1.1");
5295
5314
  attr_dev(svg, "id", "Capa_1");
5296
5315
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
@@ -5302,10 +5321,10 @@
5302
5321
  attr_dev(svg, "xml:space", "preserve");
5303
5322
  attr_dev(svg, "width", "18px");
5304
5323
  attr_dev(svg, "fill", "#58586B");
5305
- add_location(svg, file, 11295, 6, 327464);
5306
- add_location(span, file, 11303, 6, 328091);
5324
+ add_location(svg, file, 11303, 6, 327698);
5325
+ add_location(span, file, 11311, 6, 328325);
5307
5326
  attr_dev(div, "class", "MenuReturnButton");
5308
- add_location(div, file, 11294, 4, 327395);
5327
+ add_location(div, file, 11302, 4, 327629);
5309
5328
  },
5310
5329
  m: function mount(target, anchor) {
5311
5330
  insert_dev(target, div, anchor);
@@ -5316,7 +5335,7 @@
5316
5335
  append_dev(div, span);
5317
5336
 
5318
5337
  if (!mounted) {
5319
- dispose = listen_dev(div, "click", /*click_handler*/ ctx[35], false, false, false);
5338
+ dispose = listen_dev(div, "click", /*click_handler*/ ctx[36], false, false, false);
5320
5339
  mounted = true;
5321
5340
  }
5322
5341
  },
@@ -5330,28 +5349,28 @@
5330
5349
 
5331
5350
  dispatch_dev("SvelteRegisterBlock", {
5332
5351
  block,
5333
- id: create_if_block_2.name,
5352
+ id: create_if_block_3.name,
5334
5353
  type: "if",
5335
- source: "(11294:2) {#if isMobile}",
5354
+ source: "(11302:2) {#if isMobile}",
5336
5355
  ctx
5337
5356
  });
5338
5357
 
5339
5358
  return block;
5340
5359
  }
5341
5360
 
5342
- // (11322:12) {:else}
5361
+ // (11330:12) {:else}
5343
5362
  function create_else_block_1(ctx) {
5344
5363
  let option;
5345
- let t_value = /*pref*/ ctx[62].callingCode + "";
5364
+ let t_value = /*pref*/ ctx[64].callingCode + "";
5346
5365
  let t;
5347
5366
 
5348
5367
  const block = {
5349
5368
  c: function create() {
5350
5369
  option = element("option");
5351
5370
  t = text(t_value);
5352
- option.__value = /*pref*/ ctx[62].callingCode;
5371
+ option.__value = /*pref*/ ctx[64].callingCode;
5353
5372
  option.value = option.__value;
5354
- add_location(option, file, 11322, 14, 328785);
5373
+ add_location(option, file, 11330, 14, 329019);
5355
5374
  },
5356
5375
  m: function mount(target, anchor) {
5357
5376
  insert_dev(target, option, anchor);
@@ -5367,17 +5386,17 @@
5367
5386
  block,
5368
5387
  id: create_else_block_1.name,
5369
5388
  type: "else",
5370
- source: "(11322:12) {:else}",
5389
+ source: "(11330:12) {:else}",
5371
5390
  ctx
5372
5391
  });
5373
5392
 
5374
5393
  return block;
5375
5394
  }
5376
5395
 
5377
- // (11320:12) {#if pref.callingCode === initialValuesArray.mobiePrefix}
5378
- function create_if_block_1(ctx) {
5396
+ // (11328:12) {#if pref.callingCode === initialValuesArray.mobiePrefix}
5397
+ function create_if_block_2(ctx) {
5379
5398
  let option;
5380
- let t_value = /*pref*/ ctx[62].callingCode + "";
5399
+ let t_value = /*pref*/ ctx[64].callingCode + "";
5381
5400
  let t;
5382
5401
 
5383
5402
  const block = {
@@ -5385,9 +5404,9 @@
5385
5404
  option = element("option");
5386
5405
  t = text(t_value);
5387
5406
  option.selected = true;
5388
- option.__value = /*pref*/ ctx[62].callingCode;
5407
+ option.__value = /*pref*/ ctx[64].callingCode;
5389
5408
  option.value = option.__value;
5390
- add_location(option, file, 11320, 14, 328706);
5409
+ add_location(option, file, 11328, 14, 328940);
5391
5410
  },
5392
5411
  m: function mount(target, anchor) {
5393
5412
  insert_dev(target, option, anchor);
@@ -5401,21 +5420,21 @@
5401
5420
 
5402
5421
  dispatch_dev("SvelteRegisterBlock", {
5403
5422
  block,
5404
- id: create_if_block_1.name,
5423
+ id: create_if_block_2.name,
5405
5424
  type: "if",
5406
- source: "(11320:12) {#if pref.callingCode === initialValuesArray.mobiePrefix}",
5425
+ source: "(11328:12) {#if pref.callingCode === initialValuesArray.mobiePrefix}",
5407
5426
  ctx
5408
5427
  });
5409
5428
 
5410
5429
  return block;
5411
5430
  }
5412
5431
 
5413
- // (11319:10) {#each prefixesArray as pref}
5432
+ // (11327:10) {#each prefixesArray as pref}
5414
5433
  function create_each_block(ctx) {
5415
5434
  let if_block_anchor;
5416
5435
 
5417
5436
  function select_block_type_1(ctx, dirty) {
5418
- if (/*pref*/ ctx[62].callingCode === /*initialValuesArray*/ ctx[12].mobiePrefix) return create_if_block_1;
5437
+ if (/*pref*/ ctx[64].callingCode === /*initialValuesArray*/ ctx[13].mobiePrefix) return create_if_block_2;
5419
5438
  return create_else_block_1;
5420
5439
  }
5421
5440
 
@@ -5454,7 +5473,42 @@
5454
5473
  block,
5455
5474
  id: create_each_block.name,
5456
5475
  type: "each",
5457
- source: "(11319:10) {#each prefixesArray as pref}",
5476
+ source: "(11327:10) {#each prefixesArray as pref}",
5477
+ ctx
5478
+ });
5479
+
5480
+ return block;
5481
+ }
5482
+
5483
+ // (11417:2) {#if showConfirmSave}
5484
+ function create_if_block_1(ctx) {
5485
+ let section;
5486
+ let p;
5487
+
5488
+ const block = {
5489
+ c: function create() {
5490
+ section = element("section");
5491
+ p = element("p");
5492
+ p.textContent = "Your changes have been saved!";
5493
+ attr_dev(p, "class", "PlayerDetailsConfirmSaveText");
5494
+ add_location(p, file, 11418, 6, 333090);
5495
+ attr_dev(section, "class", "PlayerDetailsConfirmSave");
5496
+ add_location(section, file, 11417, 4, 333041);
5497
+ },
5498
+ m: function mount(target, anchor) {
5499
+ insert_dev(target, section, anchor);
5500
+ append_dev(section, p);
5501
+ },
5502
+ d: function destroy(detaching) {
5503
+ if (detaching) detach_dev(section);
5504
+ }
5505
+ };
5506
+
5507
+ dispatch_dev("SvelteRegisterBlock", {
5508
+ block,
5509
+ id: create_if_block_1.name,
5510
+ type: "if",
5511
+ source: "(11417:2) {#if showConfirmSave}",
5458
5512
  ctx
5459
5513
  });
5460
5514
 
@@ -5465,7 +5519,7 @@
5465
5519
  let if_block_anchor;
5466
5520
 
5467
5521
  function select_block_type(ctx, dirty) {
5468
- if (/*isLoading*/ ctx[22]) return create_if_block;
5522
+ if (/*isLoading*/ ctx[23]) return create_if_block;
5469
5523
  return create_else_block;
5470
5524
  }
5471
5525
 
@@ -5523,6 +5577,7 @@
5523
5577
  let playerMobileNumber = "";
5524
5578
  let differencesExist = false;
5525
5579
  let selectedCountry = { name: "", code: "" };
5580
+ let showConfirmSave = false;
5526
5581
  const mediaQuery = window.matchMedia("(min-width: 768px)");
5527
5582
 
5528
5583
  // mock prefixes array
@@ -17960,17 +18015,17 @@
17960
18015
  profileDetails = e.data.profileDetails;
17961
18016
 
17962
18017
  // readonly field values
17963
- $$invalidate(21, username = profileDetails.username);
18018
+ $$invalidate(22, username = profileDetails.username);
17964
18019
 
17965
- $$invalidate(16, mobile = profileDetails.mobile);
17966
- $$invalidate(17, email = profileDetails.email);
17967
- $$invalidate(18, firstname = profileDetails.firstname);
17968
- $$invalidate(20, lastname = profileDetails.lastname);
18020
+ $$invalidate(17, mobile = profileDetails.mobile);
18021
+ $$invalidate(18, email = profileDetails.email);
18022
+ $$invalidate(19, firstname = profileDetails.firstname);
18023
+ $$invalidate(21, lastname = profileDetails.lastname);
17969
18024
  language = profileDetails.language;
17970
- $$invalidate(13, birth = profileDetails.birth.day + "/" + profileDetails.birth.month + "/" + profileDetails.birth.year);
17971
- $$invalidate(15, currency = profileDetails.currency);
17972
- $$invalidate(19, gender = profileDetails.gender);
17973
- $$invalidate(14, country = profileDetails.country);
18025
+ $$invalidate(14, birth = profileDetails.birth.day + "/" + profileDetails.birth.month + "/" + profileDetails.birth.year);
18026
+ $$invalidate(16, currency = profileDetails.currency);
18027
+ $$invalidate(20, gender = profileDetails.gender);
18028
+ $$invalidate(15, country = profileDetails.country);
17974
18029
 
17975
18030
  // match country code to country name
17976
18031
  $$invalidate(11, selectedCountry = countriesArray.find(country => country.code === profileDetails.country));
@@ -17985,7 +18040,7 @@
17985
18040
  $$invalidate(9, playerMobileNumber = profileDetails.mobile.number);
17986
18041
 
17987
18042
  // set values for the initial editable values object
17988
- $$invalidate(12, initialValuesArray = {
18043
+ $$invalidate(13, initialValuesArray = {
17989
18044
  address: profileDetails.address1,
17990
18045
  city: profileDetails.city,
17991
18046
  acceptNewsEmail: profileDetails.consents.acceptNewsEmail,
@@ -17998,23 +18053,37 @@
17998
18053
  });
17999
18054
  }
18000
18055
  break;
18001
- case "DisableProfileInfoButtons":
18056
+ case "ConfirmProfileInfoSave":
18002
18057
  $$invalidate(10, differencesExist = false);
18058
+ showConfirmMessage();
18003
18059
  break;
18004
18060
  }
18005
18061
  }
18006
18062
  };
18007
18063
 
18008
- const updatePlayerInfo = () => {
18009
- window.postMessage(
18010
- {
18011
- type: "UpdatePlayerInfo",
18012
- provisionalArray
18064
+ const showConfirmMessage = () => {
18065
+ $$invalidate(12, showConfirmSave = true);
18066
+
18067
+ setTimeout(
18068
+ () => {
18069
+ $$invalidate(12, showConfirmSave = false);
18013
18070
  },
18014
- window.location.href
18071
+ 3000
18015
18072
  );
18016
18073
  };
18017
18074
 
18075
+ const updatePlayerInfo = () => {
18076
+ if (differencesExist == true) {
18077
+ window.postMessage(
18078
+ {
18079
+ type: "UpdatePlayerInfo",
18080
+ provisionalArray
18081
+ },
18082
+ window.location.href
18083
+ );
18084
+ }
18085
+ };
18086
+
18018
18087
  const toggleScreen = () => {
18019
18088
  window.postMessage({ type: "ReturnToMenu" }, window.location.href);
18020
18089
  };
@@ -18077,7 +18146,7 @@
18077
18146
  function select_change_handler() {
18078
18147
  playerPrefix = select_value(this);
18079
18148
  $$invalidate(8, playerPrefix);
18080
- $$invalidate(25, prefixesArray);
18149
+ $$invalidate(26, prefixesArray);
18081
18150
  }
18082
18151
 
18083
18152
  const change_handler = () => checkForChanges();
@@ -18161,6 +18230,7 @@
18161
18230
  playerMobileNumber,
18162
18231
  differencesExist,
18163
18232
  selectedCountry,
18233
+ showConfirmSave,
18164
18234
  mediaQuery,
18165
18235
  prefixesArray,
18166
18236
  countriesArray,
@@ -18184,6 +18254,7 @@
18184
18254
  username,
18185
18255
  consents,
18186
18256
  messageHandler,
18257
+ showConfirmMessage,
18187
18258
  updatePlayerInfo,
18188
18259
  toggleScreen,
18189
18260
  checkForChanges,
@@ -18192,9 +18263,9 @@
18192
18263
  });
18193
18264
 
18194
18265
  $$self.$inject_state = $$props => {
18195
- if ("isLoading" in $$props) $$invalidate(22, isLoading = $$props.isLoading);
18266
+ if ("isLoading" in $$props) $$invalidate(23, isLoading = $$props.isLoading);
18196
18267
  if ("userAgent" in $$props) userAgent = $$props.userAgent;
18197
- if ("isMobile" in $$props) $$invalidate(23, isMobile = $$props.isMobile);
18268
+ if ("isMobile" in $$props) $$invalidate(24, isMobile = $$props.isMobile);
18198
18269
  if ("noPlayerData" in $$props) $$invalidate(0, noPlayerData = $$props.noPlayerData);
18199
18270
  if ("playerPostalCode" in $$props) $$invalidate(1, playerPostalCode = $$props.playerPostalCode);
18200
18271
  if ("playerAddress" in $$props) $$invalidate(2, playerAddress = $$props.playerAddress);
@@ -18207,24 +18278,25 @@
18207
18278
  if ("playerMobileNumber" in $$props) $$invalidate(9, playerMobileNumber = $$props.playerMobileNumber);
18208
18279
  if ("differencesExist" in $$props) $$invalidate(10, differencesExist = $$props.differencesExist);
18209
18280
  if ("selectedCountry" in $$props) $$invalidate(11, selectedCountry = $$props.selectedCountry);
18281
+ if ("showConfirmSave" in $$props) $$invalidate(12, showConfirmSave = $$props.showConfirmSave);
18210
18282
  if ("provisionalArray" in $$props) provisionalArray = $$props.provisionalArray;
18211
- if ("initialValuesArray" in $$props) $$invalidate(12, initialValuesArray = $$props.initialValuesArray);
18283
+ if ("initialValuesArray" in $$props) $$invalidate(13, initialValuesArray = $$props.initialValuesArray);
18212
18284
  if ("profileDetails" in $$props) profileDetails = $$props.profileDetails;
18213
- if ("address1" in $$props) $$invalidate(26, address1 = $$props.address1);
18214
- if ("birth" in $$props) $$invalidate(13, birth = $$props.birth);
18215
- if ("city" in $$props) $$invalidate(27, city = $$props.city);
18216
- if ("country" in $$props) $$invalidate(14, country = $$props.country);
18217
- if ("currency" in $$props) $$invalidate(15, currency = $$props.currency);
18218
- if ("mobile" in $$props) $$invalidate(16, mobile = $$props.mobile);
18219
- if ("email" in $$props) $$invalidate(17, email = $$props.email);
18220
- if ("firstname" in $$props) $$invalidate(18, firstname = $$props.firstname);
18221
- if ("gender" in $$props) $$invalidate(19, gender = $$props.gender);
18285
+ if ("address1" in $$props) $$invalidate(27, address1 = $$props.address1);
18286
+ if ("birth" in $$props) $$invalidate(14, birth = $$props.birth);
18287
+ if ("city" in $$props) $$invalidate(28, city = $$props.city);
18288
+ if ("country" in $$props) $$invalidate(15, country = $$props.country);
18289
+ if ("currency" in $$props) $$invalidate(16, currency = $$props.currency);
18290
+ if ("mobile" in $$props) $$invalidate(17, mobile = $$props.mobile);
18291
+ if ("email" in $$props) $$invalidate(18, email = $$props.email);
18292
+ if ("firstname" in $$props) $$invalidate(19, firstname = $$props.firstname);
18293
+ if ("gender" in $$props) $$invalidate(20, gender = $$props.gender);
18222
18294
  if ("language" in $$props) language = $$props.language;
18223
- if ("lastname" in $$props) $$invalidate(20, lastname = $$props.lastname);
18224
- if ("postalCode" in $$props) $$invalidate(28, postalCode = $$props.postalCode);
18225
- if ("securityAnswer" in $$props) $$invalidate(29, securityAnswer = $$props.securityAnswer);
18226
- if ("securityQuestion" in $$props) $$invalidate(30, securityQuestion = $$props.securityQuestion);
18227
- if ("username" in $$props) $$invalidate(21, username = $$props.username);
18295
+ if ("lastname" in $$props) $$invalidate(21, lastname = $$props.lastname);
18296
+ if ("postalCode" in $$props) $$invalidate(29, postalCode = $$props.postalCode);
18297
+ if ("securityAnswer" in $$props) $$invalidate(30, securityAnswer = $$props.securityAnswer);
18298
+ if ("securityQuestion" in $$props) $$invalidate(31, securityQuestion = $$props.securityQuestion);
18299
+ if ("username" in $$props) $$invalidate(22, username = $$props.username);
18228
18300
  if ("consents" in $$props) consents = $$props.consents;
18229
18301
  };
18230
18302
 
@@ -18245,6 +18317,7 @@
18245
18317
  playerMobileNumber,
18246
18318
  differencesExist,
18247
18319
  selectedCountry,
18320
+ showConfirmSave,
18248
18321
  initialValuesArray,
18249
18322
  birth,
18250
18323
  country,
@@ -18293,7 +18366,7 @@
18293
18366
  class PlayerProfileInfo extends SvelteElement {
18294
18367
  constructor(options) {
18295
18368
  super();
18296
- this.shadowRoot.innerHTML = `<style>.PlayerInfoWrapper{color:#07072A;padding:50px;max-width:760px}.PlayerNotificationsHeader h3,.PlayerDetailsHeader h3,.PlayerLocationHeader h3{font-size:24px;font-weight:300;text-transform:capitalize}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.MenuReturnButton{color:#58586B;display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.PlayerInfoBox{display:flex;flex-direction:column}.PlayerInfoBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerInfoBox input{font-size:14px;font-weight:300;color:#07072A;padding:10px;line-height:16px;background:transparent;border:1px solid #58586B;border-radius:5px;outline:none;transition-duration:0.3s}.PlayerInfoBox input:focus,.PlayerInfoBox input :focus-within,.PlayerInfoBox input :focus-visible,.PlayerInfoBox input :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.PlayerInfoBox .FieldDisabled{color:#58586B}.PlayerInfoBox .PlayerPhoneNumber{display:grid;grid-template-columns:1fr 5fr;column-gap:10px;position:relative}.PlayerInfoBox select{font-size:14px;font-weight:300;padding:10px;color:#07072A;background:transparent;border:1px solid #58586B;border-radius:5px;outline:none;transition-duration:0.3s}.PlayerInfoBox select:focus,.PlayerInfoBox select :focus-within,.PlayerInfoBox select :focus-visible,.PlayerInfoBox select :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.PlayerInfoBox input::-webkit-outer-spin-button,.PlayerInfoBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerInfoBox input[type=number]{-moz-appearance:textfield}.PlayerLocationContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.PlayerNotificationBox:first-child{margin-bottom:10px}.PlayerNotificationBox label{display:inline-flex;position:relative;align-items:center}.PlayerNotificationBox label span{font-size:14px;font-weight:300}.PlayerNotificationBox label input{height:20px;width:20px;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;border-radius:50px;outline:none;transition-duration:0.3s;background-color:#D1D1D1;cursor:pointer;margin-right:10px}.PlayerNotificationBox label input:checked{background-color:#D0046C}.PlayerNotificationBox label .Checkmark{left:11px;top:7px;width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:absolute}.PlayerDetailsButtonsArea{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:2fr 1fr;margin-top:20px;width:50%}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton,.PlayerDetailsButtonsArea .PlayerDetailsCancelButton{cursor:pointer;border-radius:5px;width:100%;height:60px;display:flex;align-items:center;justify-content:center;font-size:16px;color:#07072A;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{background:#D0046C;border:1px solid #D0046C;color:#fff}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{background:transparent;border:1px solid #58586B;cursor:not-allowed;color:#07072A;opacity:0.6}.PlayerDetailsButtonsArea .PlayerDetailsCancelButton{background:transparent;border:1px solid #58586B}.PlayerDetailsButtonsArea .PlayerDetailsCancelButton.PlayerButtonDisabled{background:transparent;border:1px solid #58586B;cursor:not-allowed;opacity:0.6}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile{width:100%;grid-template-columns:1fr 1fr}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsSaveButton,.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsCancelButton{height:40px;font-size:12px}.PlayerNotificationsCheckboxArea{padding-bottom:30px}.PlayerInfoWrapperMobile{padding:20px 15px;background:#fff;max-width:unset}.PlayerInfoWrapperMobile .PlayerDetailsContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsHeader h3,.PlayerInfoWrapperMobile .PlayerDetailsHeader h3,.PlayerInfoWrapperMobile .PlayerLocationHeader h3{color:#D0046C;font-size:14px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox label{color:#58586B;font-size:12px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox input{color:#58586B;font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerInfoBox select{color:#58586B}.PlayerInfoWrapperMobile .PlayerLocationContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsCheckboxArea .PlayerNotificationBox label{color:#07072A;font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerDetailsButtonsArea{grid-column-gap:10px}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton,.PlayerInfoWrapperMobile .PlayerDetailsCancelButton{font-size:12px;height:40px;color:#fff}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton.PlayerButtonDisabled,.PlayerInfoWrapperMobile .PlayerDetailsCancelButton.PlayerButtonDisabled{color:#58586B}.PlayerInfoWrapperMobile .PlayerDetailsCancelButton{color:#58586B}.PlayerInfoWrapperTablet{padding:40px 25% 40px 25%}.PlayerInfoWrapperTablet .PlayerDetailsContent{grid-row-gap:20px}.PlayerInfoWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerInfoWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerInfoWrapperTablet .PlayerDetailsHeader h3,.PlayerInfoWrapperTablet .PlayerLocationHeader h3,.PlayerInfoWrapperTablet .PlayerNotificationsHeader h3{font-size:24px}.PlayerInfoWrapperTablet .PlayerInfoBox label{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox input{height:30px;font-size:20px;line-height:30px}.PlayerInfoWrapperTablet .PlayerInfoBox select{font-size:20px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea{grid-column-gap:40px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton,.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsCancelButton{font-size:20px;height:56px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{color:#fff}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{color:#58586B}.PlayerInfoWrapperTablet .PlayerNotificationBox label span{font-size:20px}.PlayerInfoWrapperTablet .PlayerNotificationBox label input{height:26px;width:26px}.PlayerInfoWrapperTablet .PlayerNotificationBox label .Checkmark{left:50px;top:9px}</style>`;
18369
+ this.shadowRoot.innerHTML = `<style>.PlayerInfoWrapper{color:#07072A;padding:50px;max-width:760px}.PlayerNotificationsHeader h3,.PlayerDetailsHeader h3,.PlayerLocationHeader h3{font-size:24px;font-weight:300;text-transform:capitalize}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.MenuReturnButton{color:#58586B;display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.PlayerInfoBox{display:flex;flex-direction:column}.PlayerInfoBox label{font-size:14px;font-weight:300;margin-bottom:10px}.PlayerInfoBox input{font-size:14px;font-weight:300;color:#07072A;padding:10px;line-height:16px;background:transparent;border:1px solid #58586B;border-radius:5px;outline:none;transition-duration:0.3s}.PlayerInfoBox input:focus,.PlayerInfoBox input :focus-within,.PlayerInfoBox input :focus-visible,.PlayerInfoBox input :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.PlayerInfoBox .FieldDisabled{color:#58586B}.PlayerInfoBox .PlayerPhoneNumber{display:grid;grid-template-columns:1fr 5fr;column-gap:10px;position:relative}.PlayerInfoBox select{font-size:14px;font-weight:300;padding:10px;color:#07072A;background:transparent;border:1px solid #58586B;border-radius:5px;outline:none;transition-duration:0.3s}.PlayerInfoBox select:focus,.PlayerInfoBox select :focus-within,.PlayerInfoBox select :focus-visible,.PlayerInfoBox select :visited{border:1px solid #D0046C;box-shadow:0 0 0 1pt #D0046C}.PlayerInfoBox input::-webkit-outer-spin-button,.PlayerInfoBox input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.PlayerInfoBox input[type=number]{-moz-appearance:textfield}.PlayerLocationContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr 1fr;padding-bottom:30px}.PlayerNotificationBox:first-child{margin-bottom:10px}.PlayerNotificationBox label{display:inline-flex;position:relative;align-items:center}.PlayerNotificationBox label span{font-size:14px;font-weight:300}.PlayerNotificationBox label input{height:20px;width:20px;-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;appearance:none;border-radius:50px;outline:none;transition-duration:0.3s;background-color:#D1D1D1;cursor:pointer;margin-right:10px}.PlayerNotificationBox label input:checked{background-color:#D0046C}.PlayerNotificationBox label .Checkmark{left:11px;top:7px;width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);position:absolute}.PlayerDetailsButtonsArea{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:2fr 1fr;margin-top:20px;width:50%}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton,.PlayerDetailsButtonsArea .PlayerDetailsCancelButton{cursor:pointer;border-radius:5px;width:100%;height:60px;display:flex;align-items:center;justify-content:center;font-size:16px;color:#07072A;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton{background:#D0046C;border:1px solid #D0046C;color:#fff}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton:active{background:#9e0352}.PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{background:transparent;border:1px solid #58586B;cursor:not-allowed;color:#07072A;opacity:0.6}.PlayerDetailsButtonsArea .PlayerDetailsCancelButton{background:transparent;border:1px solid #58586B}.PlayerDetailsButtonsArea .PlayerDetailsCancelButton:active{background:#e6e6e6}.PlayerDetailsButtonsArea .PlayerDetailsCancelButton.PlayerButtonDisabled{background:transparent;border:1px solid #58586B;cursor:not-allowed;opacity:0.6}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile{width:100%;grid-template-columns:1fr 1fr}.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsSaveButton,.PlayerDetailsButtonsArea.PlayerDetailsButtonsAreaMobile .PlayerDetailsCancelButton{height:40px;font-size:12px}.PlayerNotificationsCheckboxArea{padding-bottom:30px}.PlayerInfoWrapperMobile{padding:20px 15px;background:#fff;max-width:unset}.PlayerInfoWrapperMobile .PlayerDetailsContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsHeader h3,.PlayerInfoWrapperMobile .PlayerDetailsHeader h3,.PlayerInfoWrapperMobile .PlayerLocationHeader h3{color:#D0046C;font-size:14px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox label{color:#58586B;font-size:12px;font-weight:400}.PlayerInfoWrapperMobile .PlayerInfoBox input{color:#58586B;font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerInfoBox select{color:#58586B}.PlayerInfoWrapperMobile .PlayerLocationContent{grid-template-columns:1fr}.PlayerInfoWrapperMobile .PlayerNotificationsCheckboxArea .PlayerNotificationBox label{color:#07072A;font-size:12px;font-weight:300}.PlayerInfoWrapperMobile .PlayerDetailsButtonsArea{grid-column-gap:10px}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton,.PlayerInfoWrapperMobile .PlayerDetailsCancelButton{font-size:12px;height:40px;color:#fff}.PlayerInfoWrapperMobile .PlayerDetailsSaveButton.PlayerButtonDisabled,.PlayerInfoWrapperMobile .PlayerDetailsCancelButton.PlayerButtonDisabled{color:#58586B}.PlayerInfoWrapperMobile .PlayerDetailsCancelButton{color:#58586B}.PlayerInfoWrapperTablet{padding:40px 25% 40px 25%}.PlayerInfoWrapperTablet .PlayerDetailsContent{grid-row-gap:20px}.PlayerInfoWrapperTablet .MenuReturnButton{margin-bottom:30px}.PlayerInfoWrapperTablet .MenuReturnButton span{font-size:20px}.PlayerInfoWrapperTablet .PlayerDetailsHeader h3,.PlayerInfoWrapperTablet .PlayerLocationHeader h3,.PlayerInfoWrapperTablet .PlayerNotificationsHeader h3{font-size:24px}.PlayerInfoWrapperTablet .PlayerInfoBox label{font-size:20px}.PlayerInfoWrapperTablet .PlayerInfoBox input{height:30px;font-size:20px;line-height:30px}.PlayerInfoWrapperTablet .PlayerInfoBox select{font-size:20px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea{grid-column-gap:40px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton,.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsCancelButton{font-size:20px;height:56px}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton{color:#fff}.PlayerInfoWrapperTablet .PlayerDetailsButtonsArea .PlayerDetailsSaveButton.PlayerButtonDisabled{color:#58586B}.PlayerInfoWrapperTablet .PlayerNotificationBox label span{font-size:20px}.PlayerInfoWrapperTablet .PlayerNotificationBox label input{height:26px;width:26px}.PlayerInfoWrapperTablet .PlayerNotificationBox label .Checkmark{left:50px;top:9px}.PlayerDetailsConfirmSave{background:#0cdc13;color:#fff;padding:16px;border-radius:5px;margin-top:16px}.PlayerDetailsConfirmSave .PlayerDetailsConfirmSaveText{padding:0;margin:0}</style>`;
18297
18370
 
18298
18371
  init(
18299
18372
  this,