@everymatrix/general-player-login-form 0.0.167 → 0.0.171
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,44 +4429,43 @@
|
|
|
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
|
-
let a;
|
|
4431
|
-
let t1;
|
|
4432
4434
|
let div5;
|
|
4433
4435
|
let div4;
|
|
4434
4436
|
let div0;
|
|
4435
4437
|
let h4;
|
|
4436
|
-
let
|
|
4438
|
+
let t1;
|
|
4437
4439
|
let p;
|
|
4438
|
-
let
|
|
4440
|
+
let t2;
|
|
4439
4441
|
let span0;
|
|
4440
|
-
let
|
|
4442
|
+
let t4;
|
|
4441
4443
|
let div3;
|
|
4442
4444
|
let div1;
|
|
4443
4445
|
let label0;
|
|
4444
|
-
let
|
|
4446
|
+
let t5;
|
|
4445
4447
|
let span1;
|
|
4446
|
-
let
|
|
4448
|
+
let t7;
|
|
4447
4449
|
let input0;
|
|
4448
|
-
let
|
|
4450
|
+
let t8;
|
|
4449
4451
|
let div1_class_value;
|
|
4450
|
-
let
|
|
4452
|
+
let t9;
|
|
4451
4453
|
let div2;
|
|
4452
4454
|
let label1;
|
|
4453
|
-
let
|
|
4455
|
+
let t10;
|
|
4454
4456
|
let span2;
|
|
4455
|
-
let
|
|
4457
|
+
let t12;
|
|
4456
4458
|
let input1;
|
|
4459
|
+
let t13;
|
|
4460
|
+
let t14;
|
|
4461
|
+
let div2_class_value;
|
|
4457
4462
|
let t15;
|
|
4458
4463
|
let t16;
|
|
4459
|
-
let
|
|
4464
|
+
let button0;
|
|
4460
4465
|
let t17;
|
|
4461
4466
|
let t18;
|
|
4462
|
-
let button0;
|
|
4463
|
-
let t20;
|
|
4464
4467
|
let button1;
|
|
4465
|
-
let
|
|
4468
|
+
let t20;
|
|
4466
4469
|
let div5_class_value;
|
|
4467
4470
|
let mounted;
|
|
4468
4471
|
let dispose;
|
|
@@ -4481,144 +4484,139 @@
|
|
|
4481
4484
|
|
|
4482
4485
|
const block = {
|
|
4483
4486
|
c: function create() {
|
|
4484
|
-
a = element("a");
|
|
4485
|
-
a.textContent = "Open template";
|
|
4486
|
-
t1 = space();
|
|
4487
4487
|
div5 = element("div");
|
|
4488
4488
|
div4 = element("div");
|
|
4489
4489
|
div0 = element("div");
|
|
4490
4490
|
h4 = element("h4");
|
|
4491
4491
|
h4.textContent = "Welcome";
|
|
4492
|
-
|
|
4492
|
+
t1 = space();
|
|
4493
4493
|
p = element("p");
|
|
4494
|
-
|
|
4494
|
+
t2 = text("Don't have an account yet? ");
|
|
4495
4495
|
span0 = element("span");
|
|
4496
4496
|
span0.textContent = "Register now";
|
|
4497
|
-
|
|
4497
|
+
t4 = space();
|
|
4498
4498
|
div3 = element("div");
|
|
4499
4499
|
div1 = element("div");
|
|
4500
4500
|
label0 = element("label");
|
|
4501
|
-
|
|
4501
|
+
t5 = text("Username or Email:");
|
|
4502
4502
|
span1 = element("span");
|
|
4503
4503
|
span1.textContent = "*";
|
|
4504
|
-
|
|
4504
|
+
t7 = space();
|
|
4505
4505
|
input0 = element("input");
|
|
4506
|
-
|
|
4506
|
+
t8 = space();
|
|
4507
4507
|
if (if_block0) if_block0.c();
|
|
4508
|
-
|
|
4508
|
+
t9 = space();
|
|
4509
4509
|
div2 = element("div");
|
|
4510
4510
|
label1 = element("label");
|
|
4511
|
-
|
|
4511
|
+
t10 = text("Password:");
|
|
4512
4512
|
span2 = element("span");
|
|
4513
4513
|
span2.textContent = "*";
|
|
4514
|
-
|
|
4514
|
+
t12 = space();
|
|
4515
4515
|
input1 = element("input");
|
|
4516
|
-
|
|
4516
|
+
t13 = space();
|
|
4517
4517
|
if_block1.c();
|
|
4518
|
-
|
|
4518
|
+
t14 = space();
|
|
4519
4519
|
if (if_block2) if_block2.c();
|
|
4520
|
-
|
|
4520
|
+
t15 = space();
|
|
4521
4521
|
if (if_block3) if_block3.c();
|
|
4522
|
-
|
|
4522
|
+
t16 = space();
|
|
4523
4523
|
button0 = element("button");
|
|
4524
|
-
|
|
4525
|
-
|
|
4524
|
+
t17 = text("Sign In");
|
|
4525
|
+
t18 = space();
|
|
4526
4526
|
button1 = element("button");
|
|
4527
4527
|
button1.textContent = "I forgot my password";
|
|
4528
|
-
|
|
4528
|
+
t20 = space();
|
|
4529
4529
|
if (if_block4) if_block4.c();
|
|
4530
|
-
attr_dev(a, "href", "https://widgets.everymatrix.com/showcase/player-register");
|
|
4531
|
-
add_location(a, file, 134, 2, 4352);
|
|
4532
4530
|
attr_dev(h4, "class", "FormHeaderTitle");
|
|
4533
|
-
add_location(h4, file,
|
|
4531
|
+
add_location(h4, file, 140, 8, 4709);
|
|
4534
4532
|
attr_dev(span0, "class", "FormRegisterCallToAction");
|
|
4535
|
-
add_location(span0, file,
|
|
4533
|
+
add_location(span0, file, 141, 65, 4815);
|
|
4536
4534
|
attr_dev(p, "class", "FormHeaderSubtitle");
|
|
4537
|
-
add_location(p, file,
|
|
4535
|
+
add_location(p, file, 141, 8, 4758);
|
|
4538
4536
|
attr_dev(div0, "class", "FormHeader");
|
|
4539
|
-
add_location(div0, file,
|
|
4537
|
+
add_location(div0, file, 139, 6, 4676);
|
|
4540
4538
|
attr_dev(span1, "class", "FormRequired");
|
|
4541
|
-
add_location(span1, file,
|
|
4539
|
+
add_location(span1, file, 145, 50, 5081);
|
|
4542
4540
|
attr_dev(label0, "for", "UserName");
|
|
4543
|
-
add_location(label0, file,
|
|
4541
|
+
add_location(label0, file, 145, 10, 5041);
|
|
4544
4542
|
attr_dev(input0, "type", "text");
|
|
4545
4543
|
attr_dev(input0, "id", "UserName");
|
|
4546
|
-
add_location(input0, file,
|
|
4544
|
+
add_location(input0, file, 146, 10, 5135);
|
|
4547
4545
|
attr_dev(div1, "class", div1_class_value = "UserContainer " + (/*invalidName*/ ctx[4] ? "InvalidField" : ""));
|
|
4548
|
-
add_location(div1, file,
|
|
4546
|
+
add_location(div1, file, 144, 8, 4967);
|
|
4549
4547
|
attr_dev(span2, "class", "FormRequired");
|
|
4550
|
-
add_location(span2, file,
|
|
4548
|
+
add_location(span2, file, 152, 41, 5572);
|
|
4551
4549
|
attr_dev(label1, "for", "Password");
|
|
4552
|
-
add_location(label1, file,
|
|
4550
|
+
add_location(label1, file, 152, 10, 5541);
|
|
4553
4551
|
attr_dev(input1, "type", "password");
|
|
4554
4552
|
attr_dev(input1, "id", "Password");
|
|
4555
|
-
add_location(input1, file,
|
|
4553
|
+
add_location(input1, file, 153, 10, 5626);
|
|
4556
4554
|
attr_dev(div2, "class", div2_class_value = "PasswordContainer " + (/*invalidPassword*/ ctx[5] ? "InvalidField" : ""));
|
|
4557
|
-
add_location(div2, file,
|
|
4558
|
-
attr_dev(button0, "class", "
|
|
4559
|
-
|
|
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);
|
|
4560
4559
|
attr_dev(button1, "class", "ForgotPasswordButton");
|
|
4561
|
-
add_location(button1, file,
|
|
4560
|
+
add_location(button1, file, 167, 8, 9085);
|
|
4562
4561
|
attr_dev(div3, "class", "FormContent");
|
|
4563
|
-
add_location(div3, file,
|
|
4562
|
+
add_location(div3, file, 143, 6, 4933);
|
|
4564
4563
|
attr_dev(div4, "class", "FormLeftSide");
|
|
4565
|
-
add_location(div4, file,
|
|
4564
|
+
add_location(div4, file, 138, 4, 4643);
|
|
4566
4565
|
attr_dev(div5, "class", div5_class_value = "FormContainer " + (/*mobileView*/ ctx[1] ? "FormMobileContainer" : ""));
|
|
4567
|
-
add_location(div5, file,
|
|
4566
|
+
add_location(div5, file, 137, 2, 4569);
|
|
4568
4567
|
},
|
|
4569
4568
|
m: function mount(target, anchor) {
|
|
4570
|
-
insert_dev(target, a, anchor);
|
|
4571
|
-
insert_dev(target, t1, anchor);
|
|
4572
4569
|
insert_dev(target, div5, anchor);
|
|
4573
4570
|
append_dev(div5, div4);
|
|
4574
4571
|
append_dev(div4, div0);
|
|
4575
4572
|
append_dev(div0, h4);
|
|
4576
|
-
append_dev(div0,
|
|
4573
|
+
append_dev(div0, t1);
|
|
4577
4574
|
append_dev(div0, p);
|
|
4578
|
-
append_dev(p,
|
|
4575
|
+
append_dev(p, t2);
|
|
4579
4576
|
append_dev(p, span0);
|
|
4580
|
-
append_dev(div4,
|
|
4577
|
+
append_dev(div4, t4);
|
|
4581
4578
|
append_dev(div4, div3);
|
|
4582
4579
|
append_dev(div3, div1);
|
|
4583
4580
|
append_dev(div1, label0);
|
|
4584
|
-
append_dev(label0,
|
|
4581
|
+
append_dev(label0, t5);
|
|
4585
4582
|
append_dev(label0, span1);
|
|
4586
|
-
append_dev(div1,
|
|
4583
|
+
append_dev(div1, t7);
|
|
4587
4584
|
append_dev(div1, input0);
|
|
4588
4585
|
set_input_value(input0, /*userValue*/ ctx[2]);
|
|
4589
|
-
append_dev(div1,
|
|
4586
|
+
append_dev(div1, t8);
|
|
4590
4587
|
if (if_block0) if_block0.m(div1, null);
|
|
4591
|
-
append_dev(div3,
|
|
4588
|
+
append_dev(div3, t9);
|
|
4592
4589
|
append_dev(div3, div2);
|
|
4593
4590
|
append_dev(div2, label1);
|
|
4594
|
-
append_dev(label1,
|
|
4591
|
+
append_dev(label1, t10);
|
|
4595
4592
|
append_dev(label1, span2);
|
|
4596
|
-
append_dev(div2,
|
|
4593
|
+
append_dev(div2, t12);
|
|
4597
4594
|
append_dev(div2, input1);
|
|
4598
4595
|
set_input_value(input1, /*userPassword*/ ctx[3]);
|
|
4599
|
-
/*input1_binding*/ ctx[
|
|
4600
|
-
append_dev(div2,
|
|
4596
|
+
/*input1_binding*/ ctx[21](input1);
|
|
4597
|
+
append_dev(div2, t13);
|
|
4601
4598
|
if_block1.m(div2, null);
|
|
4602
|
-
append_dev(div2,
|
|
4599
|
+
append_dev(div2, t14);
|
|
4603
4600
|
if (if_block2) if_block2.m(div2, null);
|
|
4604
|
-
append_dev(div3,
|
|
4601
|
+
append_dev(div3, t15);
|
|
4605
4602
|
if (if_block3) if_block3.m(div3, null);
|
|
4606
|
-
append_dev(div3,
|
|
4603
|
+
append_dev(div3, t16);
|
|
4607
4604
|
append_dev(div3, button0);
|
|
4608
|
-
append_dev(
|
|
4605
|
+
append_dev(button0, t17);
|
|
4606
|
+
append_dev(div3, t18);
|
|
4609
4607
|
append_dev(div3, button1);
|
|
4610
|
-
append_dev(div5,
|
|
4608
|
+
append_dev(div5, t20);
|
|
4611
4609
|
if (if_block4) if_block4.m(div5, null);
|
|
4612
4610
|
|
|
4613
4611
|
if (!mounted) {
|
|
4614
4612
|
dispose = [
|
|
4615
|
-
listen_dev(span0, "click", /*click_handler*/ ctx[
|
|
4616
|
-
listen_dev(input0, "input", /*input0_input_handler*/ ctx[
|
|
4617
|
-
listen_dev(input0, "blur", /*validateUserName*/ ctx[
|
|
4618
|
-
listen_dev(input1, "input", /*input1_input_handler*/ ctx[
|
|
4619
|
-
listen_dev(input1, "blur", /*validatePassword*/ ctx[
|
|
4620
|
-
listen_dev(button0, "click", /*click_handler_3*/ ctx[
|
|
4621
|
-
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)
|
|
4622
4620
|
];
|
|
4623
4621
|
|
|
4624
4622
|
mounted = true;
|
|
@@ -4656,7 +4654,7 @@
|
|
|
4656
4654
|
|
|
4657
4655
|
if (if_block1) {
|
|
4658
4656
|
if_block1.c();
|
|
4659
|
-
if_block1.m(div2,
|
|
4657
|
+
if_block1.m(div2, t14);
|
|
4660
4658
|
}
|
|
4661
4659
|
}
|
|
4662
4660
|
|
|
@@ -4681,13 +4679,17 @@
|
|
|
4681
4679
|
} else {
|
|
4682
4680
|
if_block3 = create_if_block_2(ctx);
|
|
4683
4681
|
if_block3.c();
|
|
4684
|
-
if_block3.m(div3,
|
|
4682
|
+
if_block3.m(div3, t16);
|
|
4685
4683
|
}
|
|
4686
4684
|
} else if (if_block3) {
|
|
4687
4685
|
if_block3.d(1);
|
|
4688
4686
|
if_block3 = null;
|
|
4689
4687
|
}
|
|
4690
4688
|
|
|
4689
|
+
if (dirty[0] & /*isFormDataInvalid*/ 1024) {
|
|
4690
|
+
prop_dev(button0, "disabled", /*isFormDataInvalid*/ ctx[10]);
|
|
4691
|
+
}
|
|
4692
|
+
|
|
4691
4693
|
if (!/*mobileView*/ ctx[1]) {
|
|
4692
4694
|
if (if_block4) {
|
|
4693
4695
|
if_block4.p(ctx, dirty);
|
|
@@ -4706,11 +4708,9 @@
|
|
|
4706
4708
|
}
|
|
4707
4709
|
},
|
|
4708
4710
|
d: function destroy(detaching) {
|
|
4709
|
-
if (detaching) detach_dev(a);
|
|
4710
|
-
if (detaching) detach_dev(t1);
|
|
4711
4711
|
if (detaching) detach_dev(div5);
|
|
4712
4712
|
if (if_block0) if_block0.d();
|
|
4713
|
-
/*input1_binding*/ ctx[
|
|
4713
|
+
/*input1_binding*/ ctx[21](null);
|
|
4714
4714
|
if_block1.d();
|
|
4715
4715
|
if (if_block2) if_block2.d();
|
|
4716
4716
|
if (if_block3) if_block3.d();
|
|
@@ -4724,14 +4724,14 @@
|
|
|
4724
4724
|
block,
|
|
4725
4725
|
id: create_else_block.name,
|
|
4726
4726
|
type: "else",
|
|
4727
|
-
source: "(
|
|
4727
|
+
source: "(137:0) {:else}",
|
|
4728
4728
|
ctx
|
|
4729
4729
|
});
|
|
4730
4730
|
|
|
4731
4731
|
return block;
|
|
4732
4732
|
}
|
|
4733
4733
|
|
|
4734
|
-
// (
|
|
4734
|
+
// (135:0) {#if isLoading}
|
|
4735
4735
|
function create_if_block(ctx) {
|
|
4736
4736
|
let div;
|
|
4737
4737
|
|
|
@@ -4739,7 +4739,7 @@
|
|
|
4739
4739
|
c: function create() {
|
|
4740
4740
|
div = element("div");
|
|
4741
4741
|
attr_dev(div, "class", "ModalLoader");
|
|
4742
|
-
add_location(div, file,
|
|
4742
|
+
add_location(div, file, 135, 2, 4527);
|
|
4743
4743
|
},
|
|
4744
4744
|
m: function mount(target, anchor) {
|
|
4745
4745
|
insert_dev(target, div, anchor);
|
|
@@ -4754,14 +4754,14 @@
|
|
|
4754
4754
|
block,
|
|
4755
4755
|
id: create_if_block.name,
|
|
4756
4756
|
type: "if",
|
|
4757
|
-
source: "(
|
|
4757
|
+
source: "(135:0) {#if isLoading}",
|
|
4758
4758
|
ctx
|
|
4759
4759
|
});
|
|
4760
4760
|
|
|
4761
4761
|
return block;
|
|
4762
4762
|
}
|
|
4763
4763
|
|
|
4764
|
-
// (
|
|
4764
|
+
// (148:10) {#if invalidName}
|
|
4765
4765
|
function create_if_block_5(ctx) {
|
|
4766
4766
|
let p;
|
|
4767
4767
|
|
|
@@ -4770,7 +4770,7 @@
|
|
|
4770
4770
|
p = element("p");
|
|
4771
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.";
|
|
4772
4772
|
attr_dev(p, "class", "InvalidInput");
|
|
4773
|
-
add_location(p, file,
|
|
4773
|
+
add_location(p, file, 148, 12, 5261);
|
|
4774
4774
|
},
|
|
4775
4775
|
m: function mount(target, anchor) {
|
|
4776
4776
|
insert_dev(target, p, anchor);
|
|
@@ -4784,14 +4784,14 @@
|
|
|
4784
4784
|
block,
|
|
4785
4785
|
id: create_if_block_5.name,
|
|
4786
4786
|
type: "if",
|
|
4787
|
-
source: "(
|
|
4787
|
+
source: "(148:10) {#if invalidName}",
|
|
4788
4788
|
ctx
|
|
4789
4789
|
});
|
|
4790
4790
|
|
|
4791
4791
|
return block;
|
|
4792
4792
|
}
|
|
4793
4793
|
|
|
4794
|
-
// (
|
|
4794
|
+
// (157:10) {:else}
|
|
4795
4795
|
function create_else_block_1(ctx) {
|
|
4796
4796
|
let svg;
|
|
4797
4797
|
let defs;
|
|
@@ -4812,26 +4812,26 @@
|
|
|
4812
4812
|
g = svg_element("g");
|
|
4813
4813
|
path = svg_element("path");
|
|
4814
4814
|
circle = svg_element("circle");
|
|
4815
|
-
add_location(style, file,
|
|
4816
|
-
add_location(defs, file,
|
|
4815
|
+
add_location(style, file, 157, 178, 7682);
|
|
4816
|
+
add_location(defs, file, 157, 172, 7676);
|
|
4817
4817
|
attr_dev(path, "class", "a");
|
|
4818
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");
|
|
4819
4819
|
attr_dev(path, "transform", "translate(0)");
|
|
4820
|
-
add_location(path, file,
|
|
4820
|
+
add_location(path, file, 157, 259, 7763);
|
|
4821
4821
|
attr_dev(circle, "class", "a");
|
|
4822
4822
|
attr_dev(circle, "cx", "2.779");
|
|
4823
4823
|
attr_dev(circle, "cy", "2.779");
|
|
4824
4824
|
attr_dev(circle, "r", "2.779");
|
|
4825
4825
|
attr_dev(circle, "transform", "translate(20.827 30.303)");
|
|
4826
|
-
add_location(circle, file,
|
|
4826
|
+
add_location(circle, file, 157, 1029, 8533);
|
|
4827
4827
|
attr_dev(g, "transform", "translate(-14.185 -27.832)");
|
|
4828
|
-
add_location(g, file,
|
|
4828
|
+
add_location(g, file, 157, 217, 7721);
|
|
4829
4829
|
attr_dev(svg, "class", "TogglePasswordVisibility");
|
|
4830
4830
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
4831
4831
|
attr_dev(svg, "width", "18.843");
|
|
4832
4832
|
attr_dev(svg, "height", "10.5");
|
|
4833
4833
|
attr_dev(svg, "viewBox", "0 0 18.843 10.5");
|
|
4834
|
-
add_location(svg, file,
|
|
4834
|
+
add_location(svg, file, 157, 12, 7516);
|
|
4835
4835
|
},
|
|
4836
4836
|
m: function mount(target, anchor) {
|
|
4837
4837
|
insert_dev(target, svg, anchor);
|
|
@@ -4843,7 +4843,7 @@
|
|
|
4843
4843
|
append_dev(g, circle);
|
|
4844
4844
|
|
|
4845
4845
|
if (!mounted) {
|
|
4846
|
-
dispose = listen_dev(svg, "click", /*click_handler_2*/ ctx[
|
|
4846
|
+
dispose = listen_dev(svg, "click", /*click_handler_2*/ ctx[23], false, false, false);
|
|
4847
4847
|
mounted = true;
|
|
4848
4848
|
}
|
|
4849
4849
|
},
|
|
@@ -4859,14 +4859,14 @@
|
|
|
4859
4859
|
block,
|
|
4860
4860
|
id: create_else_block_1.name,
|
|
4861
4861
|
type: "else",
|
|
4862
|
-
source: "(
|
|
4862
|
+
source: "(157:10) {:else}",
|
|
4863
4863
|
ctx
|
|
4864
4864
|
});
|
|
4865
4865
|
|
|
4866
4866
|
return block;
|
|
4867
4867
|
}
|
|
4868
4868
|
|
|
4869
|
-
// (
|
|
4869
|
+
// (155:10) {#if isPasswordVisible}
|
|
4870
4870
|
function create_if_block_4(ctx) {
|
|
4871
4871
|
let svg;
|
|
4872
4872
|
let defs;
|
|
@@ -4899,48 +4899,48 @@
|
|
|
4899
4899
|
path2 = svg_element("path");
|
|
4900
4900
|
path3 = svg_element("path");
|
|
4901
4901
|
rect = svg_element("rect");
|
|
4902
|
-
add_location(style, file,
|
|
4903
|
-
add_location(defs, file,
|
|
4902
|
+
add_location(style, file, 155, 182, 5972);
|
|
4903
|
+
add_location(defs, file, 155, 176, 5966);
|
|
4904
4904
|
attr_dev(circle, "class", "a");
|
|
4905
4905
|
attr_dev(circle, "cx", "0.05");
|
|
4906
4906
|
attr_dev(circle, "cy", "0.05");
|
|
4907
4907
|
attr_dev(circle, "r", "0.05");
|
|
4908
4908
|
attr_dev(circle, "transform", "translate(121.017 31.148)");
|
|
4909
|
-
add_location(circle, file,
|
|
4909
|
+
add_location(circle, file, 155, 264, 6054);
|
|
4910
4910
|
attr_dev(path0, "class", "a");
|
|
4911
4911
|
attr_dev(path0, "d", "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z");
|
|
4912
4912
|
attr_dev(path0, "transform", "translate(-142.164 -39.123)");
|
|
4913
|
-
add_location(path0, file,
|
|
4913
|
+
add_location(path0, file, 155, 390, 6180);
|
|
4914
4914
|
attr_dev(path1, "class", "a");
|
|
4915
4915
|
attr_dev(path1, "d", "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z");
|
|
4916
4916
|
attr_dev(path1, "transform", "translate(-136.413 -42.068)");
|
|
4917
|
-
add_location(path1, file,
|
|
4917
|
+
add_location(path1, file, 155, 498, 6288);
|
|
4918
4918
|
attr_dev(g0, "transform", "translate(117.499 27.37)");
|
|
4919
|
-
add_location(g0, file,
|
|
4919
|
+
add_location(g0, file, 155, 350, 6140);
|
|
4920
4920
|
attr_dev(path2, "class", "a");
|
|
4921
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");
|
|
4922
4922
|
attr_dev(path2, "transform", "translate(-110.856 -33.157)");
|
|
4923
|
-
add_location(path2, file,
|
|
4923
|
+
add_location(path2, file, 155, 649, 6439);
|
|
4924
4924
|
attr_dev(path3, "class", "a");
|
|
4925
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");
|
|
4926
4926
|
attr_dev(path3, "transform", "translate(-130.743 -29.617)");
|
|
4927
|
-
add_location(path3, file,
|
|
4927
|
+
add_location(path3, file, 155, 1108, 6898);
|
|
4928
4928
|
attr_dev(g1, "transform", "translate(110.856 24.899)");
|
|
4929
|
-
add_location(g1, file,
|
|
4929
|
+
add_location(g1, file, 155, 608, 6398);
|
|
4930
4930
|
attr_dev(rect, "class", "a");
|
|
4931
4931
|
attr_dev(rect, "width", "0.972");
|
|
4932
4932
|
attr_dev(rect, "height", "15.861");
|
|
4933
4933
|
attr_dev(rect, "rx", "0.486");
|
|
4934
4934
|
attr_dev(rect, "transform", "translate(114.827 23.858) rotate(-39.315)");
|
|
4935
|
-
add_location(rect, file,
|
|
4935
|
+
add_location(rect, file, 155, 1573, 7363);
|
|
4936
4936
|
attr_dev(g2, "transform", "translate(-110.856 -23.242)");
|
|
4937
|
-
add_location(g2, file,
|
|
4937
|
+
add_location(g2, file, 155, 221, 6011);
|
|
4938
4938
|
attr_dev(svg, "class", "TogglePasswordVisibility");
|
|
4939
4939
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
4940
4940
|
attr_dev(svg, "width", "18.844");
|
|
4941
4941
|
attr_dev(svg, "height", "12.887");
|
|
4942
4942
|
attr_dev(svg, "viewBox", "0 0 18.844 12.887");
|
|
4943
|
-
add_location(svg, file,
|
|
4943
|
+
add_location(svg, file, 155, 12, 5802);
|
|
4944
4944
|
},
|
|
4945
4945
|
m: function mount(target, anchor) {
|
|
4946
4946
|
insert_dev(target, svg, anchor);
|
|
@@ -4958,7 +4958,7 @@
|
|
|
4958
4958
|
append_dev(g2, rect);
|
|
4959
4959
|
|
|
4960
4960
|
if (!mounted) {
|
|
4961
|
-
dispose = listen_dev(svg, "click", /*click_handler_1*/ ctx[
|
|
4961
|
+
dispose = listen_dev(svg, "click", /*click_handler_1*/ ctx[22], false, false, false);
|
|
4962
4962
|
mounted = true;
|
|
4963
4963
|
}
|
|
4964
4964
|
},
|
|
@@ -4974,14 +4974,14 @@
|
|
|
4974
4974
|
block,
|
|
4975
4975
|
id: create_if_block_4.name,
|
|
4976
4976
|
type: "if",
|
|
4977
|
-
source: "(
|
|
4977
|
+
source: "(155:10) {#if isPasswordVisible}",
|
|
4978
4978
|
ctx
|
|
4979
4979
|
});
|
|
4980
4980
|
|
|
4981
4981
|
return block;
|
|
4982
4982
|
}
|
|
4983
4983
|
|
|
4984
|
-
// (
|
|
4984
|
+
// (160:10) {#if invalidPassword}
|
|
4985
4985
|
function create_if_block_3(ctx) {
|
|
4986
4986
|
let p;
|
|
4987
4987
|
|
|
@@ -4990,7 +4990,7 @@
|
|
|
4990
4990
|
p = element("p");
|
|
4991
4991
|
p.textContent = "Password must be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.";
|
|
4992
4992
|
attr_dev(p, "class", "InvalidInput");
|
|
4993
|
-
add_location(p, file,
|
|
4993
|
+
add_location(p, file, 160, 12, 8692);
|
|
4994
4994
|
},
|
|
4995
4995
|
m: function mount(target, anchor) {
|
|
4996
4996
|
insert_dev(target, p, anchor);
|
|
@@ -5004,14 +5004,14 @@
|
|
|
5004
5004
|
block,
|
|
5005
5005
|
id: create_if_block_3.name,
|
|
5006
5006
|
type: "if",
|
|
5007
|
-
source: "(
|
|
5007
|
+
source: "(160:10) {#if invalidPassword}",
|
|
5008
5008
|
ctx
|
|
5009
5009
|
});
|
|
5010
5010
|
|
|
5011
5011
|
return block;
|
|
5012
5012
|
}
|
|
5013
5013
|
|
|
5014
|
-
// (
|
|
5014
|
+
// (164:8) {#if errorMessage}
|
|
5015
5015
|
function create_if_block_2(ctx) {
|
|
5016
5016
|
let p;
|
|
5017
5017
|
let t;
|
|
@@ -5021,7 +5021,7 @@
|
|
|
5021
5021
|
p = element("p");
|
|
5022
5022
|
t = text(/*errorMessage*/ ctx[6]);
|
|
5023
5023
|
attr_dev(p, "class", "ErrorMessage");
|
|
5024
|
-
add_location(p, file,
|
|
5024
|
+
add_location(p, file, 164, 10, 8902);
|
|
5025
5025
|
},
|
|
5026
5026
|
m: function mount(target, anchor) {
|
|
5027
5027
|
insert_dev(target, p, anchor);
|
|
@@ -5039,14 +5039,14 @@
|
|
|
5039
5039
|
block,
|
|
5040
5040
|
id: create_if_block_2.name,
|
|
5041
5041
|
type: "if",
|
|
5042
|
-
source: "(
|
|
5042
|
+
source: "(164:8) {#if errorMessage}",
|
|
5043
5043
|
ctx
|
|
5044
5044
|
});
|
|
5045
5045
|
|
|
5046
5046
|
return block;
|
|
5047
5047
|
}
|
|
5048
5048
|
|
|
5049
|
-
// (
|
|
5049
|
+
// (171:4) {#if !mobileView}
|
|
5050
5050
|
function create_if_block_1(ctx) {
|
|
5051
5051
|
let div;
|
|
5052
5052
|
|
|
@@ -5055,7 +5055,7 @@
|
|
|
5055
5055
|
div = element("div");
|
|
5056
5056
|
attr_dev(div, "class", "FormRightSide");
|
|
5057
5057
|
set_style(div, "background-image", "url('" + /*imagedesktop*/ ctx[0] + "')");
|
|
5058
|
-
add_location(div, file,
|
|
5058
|
+
add_location(div, file, 171, 6, 9246);
|
|
5059
5059
|
},
|
|
5060
5060
|
m: function mount(target, anchor) {
|
|
5061
5061
|
insert_dev(target, div, anchor);
|
|
@@ -5074,7 +5074,7 @@
|
|
|
5074
5074
|
block,
|
|
5075
5075
|
id: create_if_block_1.name,
|
|
5076
5076
|
type: "if",
|
|
5077
|
-
source: "(
|
|
5077
|
+
source: "(171:4) {#if !mobileView}",
|
|
5078
5078
|
ctx
|
|
5079
5079
|
});
|
|
5080
5080
|
|
|
@@ -5109,10 +5109,10 @@
|
|
|
5109
5109
|
if (script.src !== (script_src_value = "//www.google.com/recaptcha/api.js?render=" + captchaKey)) attr_dev(script, "src", script_src_value);
|
|
5110
5110
|
script.async = true;
|
|
5111
5111
|
script.defer = true;
|
|
5112
|
-
add_location(script, file,
|
|
5112
|
+
add_location(script, file, 130, 2, 4347);
|
|
5113
5113
|
attr_dev(div, "class", "g-recaptcha");
|
|
5114
5114
|
attr_dev(div, "data-sitekey", captchaKey);
|
|
5115
|
-
add_location(div, file,
|
|
5115
|
+
add_location(div, file, 133, 0, 4453);
|
|
5116
5116
|
},
|
|
5117
5117
|
l: function claim(nodes) {
|
|
5118
5118
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -5215,6 +5215,7 @@
|
|
|
5215
5215
|
let isLoading = false;
|
|
5216
5216
|
let passwordVisibilityToggle;
|
|
5217
5217
|
let isPasswordVisible = false;
|
|
5218
|
+
let isFormDataInvalid = true;
|
|
5218
5219
|
|
|
5219
5220
|
const regexValidators = {
|
|
5220
5221
|
user: /^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){2})^[a-zA-Z\d]*$/,
|
|
@@ -5255,8 +5256,6 @@
|
|
|
5255
5256
|
};
|
|
5256
5257
|
|
|
5257
5258
|
const submitLoginForm = () => {
|
|
5258
|
-
$$invalidate(7, isLoading = true);
|
|
5259
|
-
|
|
5260
5259
|
doRecaptcha().then(token => {
|
|
5261
5260
|
if (checkUserIdentifier(userValue) && checkUserPassword(userPassword)) {
|
|
5262
5261
|
loginFormData = {
|
|
@@ -5265,6 +5264,8 @@
|
|
|
5265
5264
|
token
|
|
5266
5265
|
};
|
|
5267
5266
|
|
|
5267
|
+
$$invalidate(7, isLoading = true);
|
|
5268
|
+
|
|
5268
5269
|
window.postMessage(
|
|
5269
5270
|
{
|
|
5270
5271
|
type: "SubmitLoginForm",
|
|
@@ -5294,10 +5295,18 @@
|
|
|
5294
5295
|
|
|
5295
5296
|
const validateUserName = () => {
|
|
5296
5297
|
$$invalidate(4, invalidName = !checkUserIdentifier(userValue));
|
|
5298
|
+
|
|
5299
|
+
$$invalidate(10, isFormDataInvalid = !invalidName && !invalidPassword && userPassword
|
|
5300
|
+
? false
|
|
5301
|
+
: true);
|
|
5297
5302
|
};
|
|
5298
5303
|
|
|
5299
5304
|
const validatePassword = () => {
|
|
5300
5305
|
$$invalidate(5, invalidPassword = !checkUserPassword(userPassword));
|
|
5306
|
+
|
|
5307
|
+
$$invalidate(10, isFormDataInvalid = !invalidName && !invalidPassword && userValue
|
|
5308
|
+
? false
|
|
5309
|
+
: true);
|
|
5301
5310
|
};
|
|
5302
5311
|
|
|
5303
5312
|
const messageHandler = e => {
|
|
@@ -5380,6 +5389,7 @@
|
|
|
5380
5389
|
isLoading,
|
|
5381
5390
|
passwordVisibilityToggle,
|
|
5382
5391
|
isPasswordVisible,
|
|
5392
|
+
isFormDataInvalid,
|
|
5383
5393
|
captchaKey,
|
|
5384
5394
|
regexValidators,
|
|
5385
5395
|
doRecaptcha,
|
|
@@ -5410,6 +5420,7 @@
|
|
|
5410
5420
|
if ("isLoading" in $$props) $$invalidate(7, isLoading = $$props.isLoading);
|
|
5411
5421
|
if ("passwordVisibilityToggle" in $$props) $$invalidate(8, passwordVisibilityToggle = $$props.passwordVisibilityToggle);
|
|
5412
5422
|
if ("isPasswordVisible" in $$props) $$invalidate(9, isPasswordVisible = $$props.isPasswordVisible);
|
|
5423
|
+
if ("isFormDataInvalid" in $$props) $$invalidate(10, isFormDataInvalid = $$props.isFormDataInvalid);
|
|
5413
5424
|
};
|
|
5414
5425
|
|
|
5415
5426
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -5427,6 +5438,7 @@
|
|
|
5427
5438
|
isLoading,
|
|
5428
5439
|
passwordVisibilityToggle,
|
|
5429
5440
|
isPasswordVisible,
|
|
5441
|
+
isFormDataInvalid,
|
|
5430
5442
|
showPassword,
|
|
5431
5443
|
hidePassword,
|
|
5432
5444
|
switchToRegister,
|
|
@@ -5448,7 +5460,7 @@
|
|
|
5448
5460
|
class GeneralPlayerLoginForm extends SvelteElement {
|
|
5449
5461
|
constructor(options) {
|
|
5450
5462
|
super();
|
|
5451
|
-
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>`;
|
|
5452
5464
|
|
|
5453
5465
|
init(
|
|
5454
5466
|
this,
|