@everymatrix/general-player-login-form 0.0.165 → 0.0.169
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.
|
@@ -354,6 +354,10 @@
|
|
|
354
354
|
else
|
|
355
355
|
dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });
|
|
356
356
|
}
|
|
357
|
+
function prop_dev(node, property, value) {
|
|
358
|
+
node[property] = value;
|
|
359
|
+
dispatch_dev('SvelteDOMSetProperty', { node, property, value });
|
|
360
|
+
}
|
|
357
361
|
function set_data_dev(text, data) {
|
|
358
362
|
data = '' + data;
|
|
359
363
|
if (text.wholeText === data)
|
|
@@ -4425,7 +4429,7 @@
|
|
|
4425
4429
|
/* src/GeneralPlayerLoginForm.svelte generated by Svelte v3.37.0 */
|
|
4426
4430
|
const file = "src/GeneralPlayerLoginForm.svelte";
|
|
4427
4431
|
|
|
4428
|
-
// (
|
|
4432
|
+
// (137:0) {:else}
|
|
4429
4433
|
function create_else_block(ctx) {
|
|
4430
4434
|
let div5;
|
|
4431
4435
|
let div4;
|
|
@@ -4458,6 +4462,7 @@
|
|
|
4458
4462
|
let t15;
|
|
4459
4463
|
let t16;
|
|
4460
4464
|
let button0;
|
|
4465
|
+
let t17;
|
|
4461
4466
|
let t18;
|
|
4462
4467
|
let button1;
|
|
4463
4468
|
let t20;
|
|
@@ -4516,48 +4521,49 @@
|
|
|
4516
4521
|
if (if_block3) if_block3.c();
|
|
4517
4522
|
t16 = space();
|
|
4518
4523
|
button0 = element("button");
|
|
4519
|
-
|
|
4524
|
+
t17 = text("Sign In");
|
|
4520
4525
|
t18 = space();
|
|
4521
4526
|
button1 = element("button");
|
|
4522
4527
|
button1.textContent = "I forgot my password";
|
|
4523
4528
|
t20 = space();
|
|
4524
4529
|
if (if_block4) if_block4.c();
|
|
4525
4530
|
attr_dev(h4, "class", "FormHeaderTitle");
|
|
4526
|
-
add_location(h4, file,
|
|
4531
|
+
add_location(h4, file, 140, 8, 4709);
|
|
4527
4532
|
attr_dev(span0, "class", "FormRegisterCallToAction");
|
|
4528
|
-
add_location(span0, file,
|
|
4533
|
+
add_location(span0, file, 141, 65, 4815);
|
|
4529
4534
|
attr_dev(p, "class", "FormHeaderSubtitle");
|
|
4530
|
-
add_location(p, file,
|
|
4535
|
+
add_location(p, file, 141, 8, 4758);
|
|
4531
4536
|
attr_dev(div0, "class", "FormHeader");
|
|
4532
|
-
add_location(div0, file,
|
|
4537
|
+
add_location(div0, file, 139, 6, 4676);
|
|
4533
4538
|
attr_dev(span1, "class", "FormRequired");
|
|
4534
|
-
add_location(span1, file,
|
|
4539
|
+
add_location(span1, file, 145, 50, 5081);
|
|
4535
4540
|
attr_dev(label0, "for", "UserName");
|
|
4536
|
-
add_location(label0, file,
|
|
4541
|
+
add_location(label0, file, 145, 10, 5041);
|
|
4537
4542
|
attr_dev(input0, "type", "text");
|
|
4538
4543
|
attr_dev(input0, "id", "UserName");
|
|
4539
|
-
add_location(input0, file,
|
|
4544
|
+
add_location(input0, file, 146, 10, 5135);
|
|
4540
4545
|
attr_dev(div1, "class", div1_class_value = "UserContainer " + (/*invalidName*/ ctx[4] ? "InvalidField" : ""));
|
|
4541
|
-
add_location(div1, file,
|
|
4546
|
+
add_location(div1, file, 144, 8, 4967);
|
|
4542
4547
|
attr_dev(span2, "class", "FormRequired");
|
|
4543
|
-
add_location(span2, file,
|
|
4548
|
+
add_location(span2, file, 152, 41, 5572);
|
|
4544
4549
|
attr_dev(label1, "for", "Password");
|
|
4545
|
-
add_location(label1, file,
|
|
4550
|
+
add_location(label1, file, 152, 10, 5541);
|
|
4546
4551
|
attr_dev(input1, "type", "password");
|
|
4547
4552
|
attr_dev(input1, "id", "Password");
|
|
4548
|
-
add_location(input1, file,
|
|
4553
|
+
add_location(input1, file, 153, 10, 5626);
|
|
4549
4554
|
attr_dev(div2, "class", div2_class_value = "PasswordContainer " + (/*invalidPassword*/ ctx[5] ? "InvalidField" : ""));
|
|
4550
|
-
add_location(div2, file,
|
|
4551
|
-
attr_dev(button0, "class", "
|
|
4552
|
-
|
|
4555
|
+
add_location(div2, file, 151, 8, 5459);
|
|
4556
|
+
attr_dev(button0, "class", "SignInButton");
|
|
4557
|
+
button0.disabled = /*isFormDataInvalid*/ ctx[10];
|
|
4558
|
+
add_location(button0, file, 166, 8, 8967);
|
|
4553
4559
|
attr_dev(button1, "class", "ForgotPasswordButton");
|
|
4554
|
-
add_location(button1, file,
|
|
4560
|
+
add_location(button1, file, 167, 8, 9085);
|
|
4555
4561
|
attr_dev(div3, "class", "FormContent");
|
|
4556
|
-
add_location(div3, file,
|
|
4562
|
+
add_location(div3, file, 143, 6, 4933);
|
|
4557
4563
|
attr_dev(div4, "class", "FormLeftSide");
|
|
4558
|
-
add_location(div4, file,
|
|
4564
|
+
add_location(div4, file, 138, 4, 4643);
|
|
4559
4565
|
attr_dev(div5, "class", div5_class_value = "FormContainer " + (/*mobileView*/ ctx[1] ? "FormMobileContainer" : ""));
|
|
4560
|
-
add_location(div5, file,
|
|
4566
|
+
add_location(div5, file, 137, 2, 4569);
|
|
4561
4567
|
},
|
|
4562
4568
|
m: function mount(target, anchor) {
|
|
4563
4569
|
insert_dev(target, div5, anchor);
|
|
@@ -4587,7 +4593,7 @@
|
|
|
4587
4593
|
append_dev(div2, t12);
|
|
4588
4594
|
append_dev(div2, input1);
|
|
4589
4595
|
set_input_value(input1, /*userPassword*/ ctx[3]);
|
|
4590
|
-
/*input1_binding*/ ctx[
|
|
4596
|
+
/*input1_binding*/ ctx[21](input1);
|
|
4591
4597
|
append_dev(div2, t13);
|
|
4592
4598
|
if_block1.m(div2, null);
|
|
4593
4599
|
append_dev(div2, t14);
|
|
@@ -4596,6 +4602,7 @@
|
|
|
4596
4602
|
if (if_block3) if_block3.m(div3, null);
|
|
4597
4603
|
append_dev(div3, t16);
|
|
4598
4604
|
append_dev(div3, button0);
|
|
4605
|
+
append_dev(button0, t17);
|
|
4599
4606
|
append_dev(div3, t18);
|
|
4600
4607
|
append_dev(div3, button1);
|
|
4601
4608
|
append_dev(div5, t20);
|
|
@@ -4603,13 +4610,13 @@
|
|
|
4603
4610
|
|
|
4604
4611
|
if (!mounted) {
|
|
4605
4612
|
dispose = [
|
|
4606
|
-
listen_dev(span0, "click", /*click_handler*/ ctx[
|
|
4607
|
-
listen_dev(input0, "input", /*input0_input_handler*/ ctx[
|
|
4608
|
-
listen_dev(input0, "blur", /*validateUserName*/ ctx[
|
|
4609
|
-
listen_dev(input1, "input", /*input1_input_handler*/ ctx[
|
|
4610
|
-
listen_dev(input1, "blur", /*validatePassword*/ ctx[
|
|
4611
|
-
listen_dev(button0, "click", /*click_handler_3*/ ctx[
|
|
4612
|
-
listen_dev(button1, "click", /*click_handler_4*/ ctx[
|
|
4613
|
+
listen_dev(span0, "click", /*click_handler*/ ctx[18], false, false, false),
|
|
4614
|
+
listen_dev(input0, "input", /*input0_input_handler*/ ctx[19]),
|
|
4615
|
+
listen_dev(input0, "blur", /*validateUserName*/ ctx[16], false, false, false),
|
|
4616
|
+
listen_dev(input1, "input", /*input1_input_handler*/ ctx[20]),
|
|
4617
|
+
listen_dev(input1, "blur", /*validatePassword*/ ctx[17], false, false, false),
|
|
4618
|
+
listen_dev(button0, "click", /*click_handler_3*/ ctx[24], false, false, false),
|
|
4619
|
+
listen_dev(button1, "click", /*click_handler_4*/ ctx[25], false, false, false)
|
|
4613
4620
|
];
|
|
4614
4621
|
|
|
4615
4622
|
mounted = true;
|
|
@@ -4679,6 +4686,10 @@
|
|
|
4679
4686
|
if_block3 = null;
|
|
4680
4687
|
}
|
|
4681
4688
|
|
|
4689
|
+
if (dirty[0] & /*isFormDataInvalid*/ 1024) {
|
|
4690
|
+
prop_dev(button0, "disabled", /*isFormDataInvalid*/ ctx[10]);
|
|
4691
|
+
}
|
|
4692
|
+
|
|
4682
4693
|
if (!/*mobileView*/ ctx[1]) {
|
|
4683
4694
|
if (if_block4) {
|
|
4684
4695
|
if_block4.p(ctx, dirty);
|
|
@@ -4699,7 +4710,7 @@
|
|
|
4699
4710
|
d: function destroy(detaching) {
|
|
4700
4711
|
if (detaching) detach_dev(div5);
|
|
4701
4712
|
if (if_block0) if_block0.d();
|
|
4702
|
-
/*input1_binding*/ ctx[
|
|
4713
|
+
/*input1_binding*/ ctx[21](null);
|
|
4703
4714
|
if_block1.d();
|
|
4704
4715
|
if (if_block2) if_block2.d();
|
|
4705
4716
|
if (if_block3) if_block3.d();
|
|
@@ -4713,14 +4724,14 @@
|
|
|
4713
4724
|
block,
|
|
4714
4725
|
id: create_else_block.name,
|
|
4715
4726
|
type: "else",
|
|
4716
|
-
source: "(
|
|
4727
|
+
source: "(137:0) {:else}",
|
|
4717
4728
|
ctx
|
|
4718
4729
|
});
|
|
4719
4730
|
|
|
4720
4731
|
return block;
|
|
4721
4732
|
}
|
|
4722
4733
|
|
|
4723
|
-
// (
|
|
4734
|
+
// (135:0) {#if isLoading}
|
|
4724
4735
|
function create_if_block(ctx) {
|
|
4725
4736
|
let div;
|
|
4726
4737
|
|
|
@@ -4728,7 +4739,7 @@
|
|
|
4728
4739
|
c: function create() {
|
|
4729
4740
|
div = element("div");
|
|
4730
4741
|
attr_dev(div, "class", "ModalLoader");
|
|
4731
|
-
add_location(div, file,
|
|
4742
|
+
add_location(div, file, 135, 2, 4527);
|
|
4732
4743
|
},
|
|
4733
4744
|
m: function mount(target, anchor) {
|
|
4734
4745
|
insert_dev(target, div, anchor);
|
|
@@ -4743,14 +4754,14 @@
|
|
|
4743
4754
|
block,
|
|
4744
4755
|
id: create_if_block.name,
|
|
4745
4756
|
type: "if",
|
|
4746
|
-
source: "(
|
|
4757
|
+
source: "(135:0) {#if isLoading}",
|
|
4747
4758
|
ctx
|
|
4748
4759
|
});
|
|
4749
4760
|
|
|
4750
4761
|
return block;
|
|
4751
4762
|
}
|
|
4752
4763
|
|
|
4753
|
-
// (
|
|
4764
|
+
// (148:10) {#if invalidName}
|
|
4754
4765
|
function create_if_block_5(ctx) {
|
|
4755
4766
|
let p;
|
|
4756
4767
|
|
|
@@ -4759,7 +4770,7 @@
|
|
|
4759
4770
|
p = element("p");
|
|
4760
4771
|
p.textContent = "Name must be at least 2 characters long, and contain no special characters. Email should contain '@' and a 2-3 letter long domain.";
|
|
4761
4772
|
attr_dev(p, "class", "InvalidInput");
|
|
4762
|
-
add_location(p, file,
|
|
4773
|
+
add_location(p, file, 148, 12, 5261);
|
|
4763
4774
|
},
|
|
4764
4775
|
m: function mount(target, anchor) {
|
|
4765
4776
|
insert_dev(target, p, anchor);
|
|
@@ -4773,14 +4784,14 @@
|
|
|
4773
4784
|
block,
|
|
4774
4785
|
id: create_if_block_5.name,
|
|
4775
4786
|
type: "if",
|
|
4776
|
-
source: "(
|
|
4787
|
+
source: "(148:10) {#if invalidName}",
|
|
4777
4788
|
ctx
|
|
4778
4789
|
});
|
|
4779
4790
|
|
|
4780
4791
|
return block;
|
|
4781
4792
|
}
|
|
4782
4793
|
|
|
4783
|
-
// (
|
|
4794
|
+
// (157:10) {:else}
|
|
4784
4795
|
function create_else_block_1(ctx) {
|
|
4785
4796
|
let svg;
|
|
4786
4797
|
let defs;
|
|
@@ -4801,26 +4812,26 @@
|
|
|
4801
4812
|
g = svg_element("g");
|
|
4802
4813
|
path = svg_element("path");
|
|
4803
4814
|
circle = svg_element("circle");
|
|
4804
|
-
add_location(style, file,
|
|
4805
|
-
add_location(defs, file,
|
|
4815
|
+
add_location(style, file, 157, 178, 7682);
|
|
4816
|
+
add_location(defs, file, 157, 172, 7676);
|
|
4806
4817
|
attr_dev(path, "class", "a");
|
|
4807
4818
|
attr_dev(path, "d", "M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z");
|
|
4808
4819
|
attr_dev(path, "transform", "translate(0)");
|
|
4809
|
-
add_location(path, file,
|
|
4820
|
+
add_location(path, file, 157, 259, 7763);
|
|
4810
4821
|
attr_dev(circle, "class", "a");
|
|
4811
4822
|
attr_dev(circle, "cx", "2.779");
|
|
4812
4823
|
attr_dev(circle, "cy", "2.779");
|
|
4813
4824
|
attr_dev(circle, "r", "2.779");
|
|
4814
4825
|
attr_dev(circle, "transform", "translate(20.827 30.303)");
|
|
4815
|
-
add_location(circle, file,
|
|
4826
|
+
add_location(circle, file, 157, 1029, 8533);
|
|
4816
4827
|
attr_dev(g, "transform", "translate(-14.185 -27.832)");
|
|
4817
|
-
add_location(g, file,
|
|
4828
|
+
add_location(g, file, 157, 217, 7721);
|
|
4818
4829
|
attr_dev(svg, "class", "TogglePasswordVisibility");
|
|
4819
4830
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
4820
4831
|
attr_dev(svg, "width", "18.843");
|
|
4821
4832
|
attr_dev(svg, "height", "10.5");
|
|
4822
4833
|
attr_dev(svg, "viewBox", "0 0 18.843 10.5");
|
|
4823
|
-
add_location(svg, file,
|
|
4834
|
+
add_location(svg, file, 157, 12, 7516);
|
|
4824
4835
|
},
|
|
4825
4836
|
m: function mount(target, anchor) {
|
|
4826
4837
|
insert_dev(target, svg, anchor);
|
|
@@ -4832,7 +4843,7 @@
|
|
|
4832
4843
|
append_dev(g, circle);
|
|
4833
4844
|
|
|
4834
4845
|
if (!mounted) {
|
|
4835
|
-
dispose = listen_dev(svg, "click", /*click_handler_2*/ ctx[
|
|
4846
|
+
dispose = listen_dev(svg, "click", /*click_handler_2*/ ctx[23], false, false, false);
|
|
4836
4847
|
mounted = true;
|
|
4837
4848
|
}
|
|
4838
4849
|
},
|
|
@@ -4848,14 +4859,14 @@
|
|
|
4848
4859
|
block,
|
|
4849
4860
|
id: create_else_block_1.name,
|
|
4850
4861
|
type: "else",
|
|
4851
|
-
source: "(
|
|
4862
|
+
source: "(157:10) {:else}",
|
|
4852
4863
|
ctx
|
|
4853
4864
|
});
|
|
4854
4865
|
|
|
4855
4866
|
return block;
|
|
4856
4867
|
}
|
|
4857
4868
|
|
|
4858
|
-
// (
|
|
4869
|
+
// (155:10) {#if isPasswordVisible}
|
|
4859
4870
|
function create_if_block_4(ctx) {
|
|
4860
4871
|
let svg;
|
|
4861
4872
|
let defs;
|
|
@@ -4888,48 +4899,48 @@
|
|
|
4888
4899
|
path2 = svg_element("path");
|
|
4889
4900
|
path3 = svg_element("path");
|
|
4890
4901
|
rect = svg_element("rect");
|
|
4891
|
-
add_location(style, file,
|
|
4892
|
-
add_location(defs, file,
|
|
4902
|
+
add_location(style, file, 155, 182, 5972);
|
|
4903
|
+
add_location(defs, file, 155, 176, 5966);
|
|
4893
4904
|
attr_dev(circle, "class", "a");
|
|
4894
4905
|
attr_dev(circle, "cx", "0.05");
|
|
4895
4906
|
attr_dev(circle, "cy", "0.05");
|
|
4896
4907
|
attr_dev(circle, "r", "0.05");
|
|
4897
4908
|
attr_dev(circle, "transform", "translate(121.017 31.148)");
|
|
4898
|
-
add_location(circle, file,
|
|
4909
|
+
add_location(circle, file, 155, 264, 6054);
|
|
4899
4910
|
attr_dev(path0, "class", "a");
|
|
4900
4911
|
attr_dev(path0, "d", "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z");
|
|
4901
4912
|
attr_dev(path0, "transform", "translate(-142.164 -39.123)");
|
|
4902
|
-
add_location(path0, file,
|
|
4913
|
+
add_location(path0, file, 155, 390, 6180);
|
|
4903
4914
|
attr_dev(path1, "class", "a");
|
|
4904
4915
|
attr_dev(path1, "d", "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z");
|
|
4905
4916
|
attr_dev(path1, "transform", "translate(-136.413 -42.068)");
|
|
4906
|
-
add_location(path1, file,
|
|
4917
|
+
add_location(path1, file, 155, 498, 6288);
|
|
4907
4918
|
attr_dev(g0, "transform", "translate(117.499 27.37)");
|
|
4908
|
-
add_location(g0, file,
|
|
4919
|
+
add_location(g0, file, 155, 350, 6140);
|
|
4909
4920
|
attr_dev(path2, "class", "a");
|
|
4910
4921
|
attr_dev(path2, "d", "M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z");
|
|
4911
4922
|
attr_dev(path2, "transform", "translate(-110.856 -33.157)");
|
|
4912
|
-
add_location(path2, file,
|
|
4923
|
+
add_location(path2, file, 155, 649, 6439);
|
|
4913
4924
|
attr_dev(path3, "class", "a");
|
|
4914
4925
|
attr_dev(path3, "d", "M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z");
|
|
4915
4926
|
attr_dev(path3, "transform", "translate(-130.743 -29.617)");
|
|
4916
|
-
add_location(path3, file,
|
|
4927
|
+
add_location(path3, file, 155, 1108, 6898);
|
|
4917
4928
|
attr_dev(g1, "transform", "translate(110.856 24.899)");
|
|
4918
|
-
add_location(g1, file,
|
|
4929
|
+
add_location(g1, file, 155, 608, 6398);
|
|
4919
4930
|
attr_dev(rect, "class", "a");
|
|
4920
4931
|
attr_dev(rect, "width", "0.972");
|
|
4921
4932
|
attr_dev(rect, "height", "15.861");
|
|
4922
4933
|
attr_dev(rect, "rx", "0.486");
|
|
4923
4934
|
attr_dev(rect, "transform", "translate(114.827 23.858) rotate(-39.315)");
|
|
4924
|
-
add_location(rect, file,
|
|
4935
|
+
add_location(rect, file, 155, 1573, 7363);
|
|
4925
4936
|
attr_dev(g2, "transform", "translate(-110.856 -23.242)");
|
|
4926
|
-
add_location(g2, file,
|
|
4937
|
+
add_location(g2, file, 155, 221, 6011);
|
|
4927
4938
|
attr_dev(svg, "class", "TogglePasswordVisibility");
|
|
4928
4939
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
4929
4940
|
attr_dev(svg, "width", "18.844");
|
|
4930
4941
|
attr_dev(svg, "height", "12.887");
|
|
4931
4942
|
attr_dev(svg, "viewBox", "0 0 18.844 12.887");
|
|
4932
|
-
add_location(svg, file,
|
|
4943
|
+
add_location(svg, file, 155, 12, 5802);
|
|
4933
4944
|
},
|
|
4934
4945
|
m: function mount(target, anchor) {
|
|
4935
4946
|
insert_dev(target, svg, anchor);
|
|
@@ -4947,7 +4958,7 @@
|
|
|
4947
4958
|
append_dev(g2, rect);
|
|
4948
4959
|
|
|
4949
4960
|
if (!mounted) {
|
|
4950
|
-
dispose = listen_dev(svg, "click", /*click_handler_1*/ ctx[
|
|
4961
|
+
dispose = listen_dev(svg, "click", /*click_handler_1*/ ctx[22], false, false, false);
|
|
4951
4962
|
mounted = true;
|
|
4952
4963
|
}
|
|
4953
4964
|
},
|
|
@@ -4963,14 +4974,14 @@
|
|
|
4963
4974
|
block,
|
|
4964
4975
|
id: create_if_block_4.name,
|
|
4965
4976
|
type: "if",
|
|
4966
|
-
source: "(
|
|
4977
|
+
source: "(155:10) {#if isPasswordVisible}",
|
|
4967
4978
|
ctx
|
|
4968
4979
|
});
|
|
4969
4980
|
|
|
4970
4981
|
return block;
|
|
4971
4982
|
}
|
|
4972
4983
|
|
|
4973
|
-
// (
|
|
4984
|
+
// (160:10) {#if invalidPassword}
|
|
4974
4985
|
function create_if_block_3(ctx) {
|
|
4975
4986
|
let p;
|
|
4976
4987
|
|
|
@@ -4979,7 +4990,7 @@
|
|
|
4979
4990
|
p = element("p");
|
|
4980
4991
|
p.textContent = "Password must be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.";
|
|
4981
4992
|
attr_dev(p, "class", "InvalidInput");
|
|
4982
|
-
add_location(p, file,
|
|
4993
|
+
add_location(p, file, 160, 12, 8692);
|
|
4983
4994
|
},
|
|
4984
4995
|
m: function mount(target, anchor) {
|
|
4985
4996
|
insert_dev(target, p, anchor);
|
|
@@ -4993,14 +5004,14 @@
|
|
|
4993
5004
|
block,
|
|
4994
5005
|
id: create_if_block_3.name,
|
|
4995
5006
|
type: "if",
|
|
4996
|
-
source: "(
|
|
5007
|
+
source: "(160:10) {#if invalidPassword}",
|
|
4997
5008
|
ctx
|
|
4998
5009
|
});
|
|
4999
5010
|
|
|
5000
5011
|
return block;
|
|
5001
5012
|
}
|
|
5002
5013
|
|
|
5003
|
-
// (
|
|
5014
|
+
// (164:8) {#if errorMessage}
|
|
5004
5015
|
function create_if_block_2(ctx) {
|
|
5005
5016
|
let p;
|
|
5006
5017
|
let t;
|
|
@@ -5010,7 +5021,7 @@
|
|
|
5010
5021
|
p = element("p");
|
|
5011
5022
|
t = text(/*errorMessage*/ ctx[6]);
|
|
5012
5023
|
attr_dev(p, "class", "ErrorMessage");
|
|
5013
|
-
add_location(p, file,
|
|
5024
|
+
add_location(p, file, 164, 10, 8902);
|
|
5014
5025
|
},
|
|
5015
5026
|
m: function mount(target, anchor) {
|
|
5016
5027
|
insert_dev(target, p, anchor);
|
|
@@ -5028,14 +5039,14 @@
|
|
|
5028
5039
|
block,
|
|
5029
5040
|
id: create_if_block_2.name,
|
|
5030
5041
|
type: "if",
|
|
5031
|
-
source: "(
|
|
5042
|
+
source: "(164:8) {#if errorMessage}",
|
|
5032
5043
|
ctx
|
|
5033
5044
|
});
|
|
5034
5045
|
|
|
5035
5046
|
return block;
|
|
5036
5047
|
}
|
|
5037
5048
|
|
|
5038
|
-
// (
|
|
5049
|
+
// (171:4) {#if !mobileView}
|
|
5039
5050
|
function create_if_block_1(ctx) {
|
|
5040
5051
|
let div;
|
|
5041
5052
|
|
|
@@ -5044,7 +5055,7 @@
|
|
|
5044
5055
|
div = element("div");
|
|
5045
5056
|
attr_dev(div, "class", "FormRightSide");
|
|
5046
5057
|
set_style(div, "background-image", "url('" + /*imagedesktop*/ ctx[0] + "')");
|
|
5047
|
-
add_location(div, file,
|
|
5058
|
+
add_location(div, file, 171, 6, 9246);
|
|
5048
5059
|
},
|
|
5049
5060
|
m: function mount(target, anchor) {
|
|
5050
5061
|
insert_dev(target, div, anchor);
|
|
@@ -5063,7 +5074,7 @@
|
|
|
5063
5074
|
block,
|
|
5064
5075
|
id: create_if_block_1.name,
|
|
5065
5076
|
type: "if",
|
|
5066
|
-
source: "(
|
|
5077
|
+
source: "(171:4) {#if !mobileView}",
|
|
5067
5078
|
ctx
|
|
5068
5079
|
});
|
|
5069
5080
|
|
|
@@ -5098,10 +5109,10 @@
|
|
|
5098
5109
|
if (script.src !== (script_src_value = "//www.google.com/recaptcha/api.js?render=" + captchaKey)) attr_dev(script, "src", script_src_value);
|
|
5099
5110
|
script.async = true;
|
|
5100
5111
|
script.defer = true;
|
|
5101
|
-
add_location(script, file,
|
|
5112
|
+
add_location(script, file, 130, 2, 4347);
|
|
5102
5113
|
attr_dev(div, "class", "g-recaptcha");
|
|
5103
5114
|
attr_dev(div, "data-sitekey", captchaKey);
|
|
5104
|
-
add_location(div, file,
|
|
5115
|
+
add_location(div, file, 133, 0, 4453);
|
|
5105
5116
|
},
|
|
5106
5117
|
l: function claim(nodes) {
|
|
5107
5118
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -5204,6 +5215,7 @@
|
|
|
5204
5215
|
let isLoading = false;
|
|
5205
5216
|
let passwordVisibilityToggle;
|
|
5206
5217
|
let isPasswordVisible = false;
|
|
5218
|
+
let isFormDataInvalid = true;
|
|
5207
5219
|
|
|
5208
5220
|
const regexValidators = {
|
|
5209
5221
|
user: /^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){2})^[a-zA-Z\d]*$/,
|
|
@@ -5244,8 +5256,6 @@
|
|
|
5244
5256
|
};
|
|
5245
5257
|
|
|
5246
5258
|
const submitLoginForm = () => {
|
|
5247
|
-
$$invalidate(7, isLoading = true);
|
|
5248
|
-
|
|
5249
5259
|
doRecaptcha().then(token => {
|
|
5250
5260
|
if (checkUserIdentifier(userValue) && checkUserPassword(userPassword)) {
|
|
5251
5261
|
loginFormData = {
|
|
@@ -5254,6 +5264,8 @@
|
|
|
5254
5264
|
token
|
|
5255
5265
|
};
|
|
5256
5266
|
|
|
5267
|
+
$$invalidate(7, isLoading = true);
|
|
5268
|
+
|
|
5257
5269
|
window.postMessage(
|
|
5258
5270
|
{
|
|
5259
5271
|
type: "SubmitLoginForm",
|
|
@@ -5283,10 +5295,18 @@
|
|
|
5283
5295
|
|
|
5284
5296
|
const validateUserName = () => {
|
|
5285
5297
|
$$invalidate(4, invalidName = !checkUserIdentifier(userValue));
|
|
5298
|
+
|
|
5299
|
+
$$invalidate(10, isFormDataInvalid = !invalidName && !invalidPassword && userPassword
|
|
5300
|
+
? false
|
|
5301
|
+
: true);
|
|
5286
5302
|
};
|
|
5287
5303
|
|
|
5288
5304
|
const validatePassword = () => {
|
|
5289
5305
|
$$invalidate(5, invalidPassword = !checkUserPassword(userPassword));
|
|
5306
|
+
|
|
5307
|
+
$$invalidate(10, isFormDataInvalid = !invalidName && !invalidPassword && userValue
|
|
5308
|
+
? false
|
|
5309
|
+
: true);
|
|
5290
5310
|
};
|
|
5291
5311
|
|
|
5292
5312
|
const messageHandler = e => {
|
|
@@ -5369,6 +5389,7 @@
|
|
|
5369
5389
|
isLoading,
|
|
5370
5390
|
passwordVisibilityToggle,
|
|
5371
5391
|
isPasswordVisible,
|
|
5392
|
+
isFormDataInvalid,
|
|
5372
5393
|
captchaKey,
|
|
5373
5394
|
regexValidators,
|
|
5374
5395
|
doRecaptcha,
|
|
@@ -5399,6 +5420,7 @@
|
|
|
5399
5420
|
if ("isLoading" in $$props) $$invalidate(7, isLoading = $$props.isLoading);
|
|
5400
5421
|
if ("passwordVisibilityToggle" in $$props) $$invalidate(8, passwordVisibilityToggle = $$props.passwordVisibilityToggle);
|
|
5401
5422
|
if ("isPasswordVisible" in $$props) $$invalidate(9, isPasswordVisible = $$props.isPasswordVisible);
|
|
5423
|
+
if ("isFormDataInvalid" in $$props) $$invalidate(10, isFormDataInvalid = $$props.isFormDataInvalid);
|
|
5402
5424
|
};
|
|
5403
5425
|
|
|
5404
5426
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -5416,6 +5438,7 @@
|
|
|
5416
5438
|
isLoading,
|
|
5417
5439
|
passwordVisibilityToggle,
|
|
5418
5440
|
isPasswordVisible,
|
|
5441
|
+
isFormDataInvalid,
|
|
5419
5442
|
showPassword,
|
|
5420
5443
|
hidePassword,
|
|
5421
5444
|
switchToRegister,
|
|
@@ -5437,7 +5460,7 @@
|
|
|
5437
5460
|
class GeneralPlayerLoginForm extends SvelteElement {
|
|
5438
5461
|
constructor(options) {
|
|
5439
5462
|
super();
|
|
5440
|
-
this.shadowRoot.innerHTML = `<style>.FormContainer{display:inline-flex;width:100%}.FormLeftSide,.FormRightSide{flex:1 1 100%;padding:50px}.FormLeftSide{background:#F9F8F8}.FormRightSide{background-size:cover;background-position:center;background-repeat:no-repeat}.FormHeaderTitle{color:#000000;font-size:28px;font-weight:300;padding:0;text-transform:uppercase;margin:0}.PasswordContainer{position:relative}.FormRequired{color:#FD2839}.FormHeaderSubtitle{color:#58586B;font-size:14px;font-weight:300;margin:5px 0 0 0}.FormRegisterCallToAction{color:#D0046C;font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.FormContent{padding-top:20px}.UserContainer,.PasswordContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:20px;position:relative}.UserContainer label,.PasswordContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.UserContainer input,.PasswordContainer input{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}.UserContainer.InvalidField input,.PasswordContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.PasswordContainer input{padding:5px 30px 5px 15px}.TogglePasswordVisibility{height:13px;position:absolute;right:8px;bottom:45px}.
|
|
5463
|
+
this.shadowRoot.innerHTML = `<style>.FormContainer{display:inline-flex;width:100%}.FormLeftSide,.FormRightSide{flex:1 1 100%;padding:50px}.FormLeftSide{background:#F9F8F8}.FormRightSide{background-size:cover;background-position:center;background-repeat:no-repeat}.FormHeaderTitle{color:#000000;font-size:28px;font-weight:300;padding:0;text-transform:uppercase;margin:0}.PasswordContainer{position:relative}.FormRequired{color:#FD2839}.FormHeaderSubtitle{color:#58586B;font-size:14px;font-weight:300;margin:5px 0 0 0}.FormRegisterCallToAction{color:#D0046C;font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.FormContent{padding-top:20px}.UserContainer,.PasswordContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:20px;position:relative}.UserContainer label,.PasswordContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.UserContainer input,.PasswordContainer input{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}.UserContainer.InvalidField input,.PasswordContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.PasswordContainer input{padding:5px 30px 5px 15px}.TogglePasswordVisibility{height:13px;position:absolute;right:8px;bottom:45px}.SignInButton{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}.SignInButton[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}.ForgotPasswordButton{border:0;background:transparent;font-size:14px;font-weight:300;font-family:'Helvetica Neue', 'Helvetica', sans-serif;color:#D0046C;margin-top:15px;cursor:pointer}.PasswordContainer,.UserContainer{padding-bottom:30px}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;top:55px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:#D0046C}.FormMobileContainer{height:100%}.FormMobileContainer .FormLeftSide{padding:40px 20px}.FormMobileContainer .SignInButton,.FormMobileContainer .UserContainer input,.FormMobileContainer .PasswordContainer input{max-width:unset}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid #D0046C;border-color:#D0046C transparent #D0046C transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}</style>`;
|
|
5441
5464
|
|
|
5442
5465
|
init(
|
|
5443
5466
|
this,
|