@forgerock/login-widget 1.0.0-beta.10 → 1.0.0-beta.12
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.
- package/CHANGELOG.md +16 -2
- package/index.cjs +987 -583
- package/index.cjs.map +1 -1
- package/index.d.ts +27 -0
- package/index.js +987 -583
- package/index.js.map +1 -1
- package/package.json +1 -8
- package/widget.css +24 -7
package/index.js
CHANGED
|
@@ -16726,6 +16726,8 @@ var backToDefault = "Back to Sign In";
|
|
|
16726
16726
|
var backToLogin = "Back to Sign In";
|
|
16727
16727
|
var dontHaveAnAccount = "No account? <a href='?journey=Registration'>Register here!</a>";
|
|
16728
16728
|
var closeModal = "Close";
|
|
16729
|
+
var charactersCannotRepeatMoreThan = "Character cannot repeat more than {max} times";
|
|
16730
|
+
var charactersCannotRepeatMoreThanCaseInsensitive = "Character cannot repeat more than {max} times (case insensitive)";
|
|
16729
16731
|
var chooseDifferentUsername = "Please choose a different username.";
|
|
16730
16732
|
var confirmPassword = "Confirm password";
|
|
16731
16733
|
var constraintViolationForPassword = "Password does not meet the requirements.";
|
|
@@ -16758,6 +16760,9 @@ var nextButton = "Next";
|
|
|
16758
16760
|
var notToExceedMaximumCharacterLength = "No more than {max} characters";
|
|
16759
16761
|
var noLessThanMinimumCharacterLength = "At least {min} character(s)";
|
|
16760
16762
|
var passwordCallback = "Password";
|
|
16763
|
+
var passwordCannotContainCommonPasswords = "Password cannot contain common passwords";
|
|
16764
|
+
var passwordCannotContainCommonPasswordsOrBeReversible = "Password cannot contain common passwords or reversible text";
|
|
16765
|
+
var passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan = "Password cannot contain common passwords or reversible text less than {min} characters";
|
|
16761
16766
|
var passwordRequirements = "Password requirements:";
|
|
16762
16767
|
var pleaseCheckValue = "Please check this value";
|
|
16763
16768
|
var pleaseConfirm = "Please confirm";
|
|
@@ -16771,7 +16776,11 @@ var registerSuccess = "Registration successful!";
|
|
|
16771
16776
|
var requiredField = "Value is required";
|
|
16772
16777
|
var securityAnswer = "Security answer";
|
|
16773
16778
|
var securityQuestions = "Security question(s)";
|
|
16774
|
-
var securityQuestionsPrompt = "Provide
|
|
16779
|
+
var securityQuestionsPrompt = "Provide security question(s) and answer(s):";
|
|
16780
|
+
var shouldContainANumber = "Should contain a number";
|
|
16781
|
+
var shouldContainAnUppercase = "Should contain an uppercase letter";
|
|
16782
|
+
var shouldContainALowercase = "Should contain a lowercase letter";
|
|
16783
|
+
var shouldContainASymbol = "Should contain a symbol";
|
|
16775
16784
|
var showPassword = "Show password";
|
|
16776
16785
|
var sn = "Last name";
|
|
16777
16786
|
var submitButton = "Submit";
|
|
@@ -16795,6 +16804,8 @@ var fallback = {
|
|
|
16795
16804
|
backToLogin: backToLogin,
|
|
16796
16805
|
dontHaveAnAccount: dontHaveAnAccount,
|
|
16797
16806
|
closeModal: closeModal,
|
|
16807
|
+
charactersCannotRepeatMoreThan: charactersCannotRepeatMoreThan,
|
|
16808
|
+
charactersCannotRepeatMoreThanCaseInsensitive: charactersCannotRepeatMoreThanCaseInsensitive,
|
|
16798
16809
|
chooseDifferentUsername: chooseDifferentUsername,
|
|
16799
16810
|
confirmPassword: confirmPassword,
|
|
16800
16811
|
constraintViolationForPassword: constraintViolationForPassword,
|
|
@@ -16827,6 +16838,9 @@ var fallback = {
|
|
|
16827
16838
|
notToExceedMaximumCharacterLength: notToExceedMaximumCharacterLength,
|
|
16828
16839
|
noLessThanMinimumCharacterLength: noLessThanMinimumCharacterLength,
|
|
16829
16840
|
passwordCallback: passwordCallback,
|
|
16841
|
+
passwordCannotContainCommonPasswords: passwordCannotContainCommonPasswords,
|
|
16842
|
+
passwordCannotContainCommonPasswordsOrBeReversible: passwordCannotContainCommonPasswordsOrBeReversible,
|
|
16843
|
+
passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan: passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan,
|
|
16830
16844
|
passwordRequirements: passwordRequirements,
|
|
16831
16845
|
pleaseCheckValue: pleaseCheckValue,
|
|
16832
16846
|
pleaseConfirm: pleaseConfirm,
|
|
@@ -16841,6 +16855,10 @@ var fallback = {
|
|
|
16841
16855
|
securityAnswer: securityAnswer,
|
|
16842
16856
|
securityQuestions: securityQuestions,
|
|
16843
16857
|
securityQuestionsPrompt: securityQuestionsPrompt,
|
|
16858
|
+
shouldContainANumber: shouldContainANumber,
|
|
16859
|
+
shouldContainAnUppercase: shouldContainAnUppercase,
|
|
16860
|
+
shouldContainALowercase: shouldContainALowercase,
|
|
16861
|
+
shouldContainASymbol: shouldContainASymbol,
|
|
16844
16862
|
showPassword: showPassword,
|
|
16845
16863
|
sn: sn,
|
|
16846
16864
|
submitButton: submitButton,
|
|
@@ -16867,6 +16885,8 @@ const stringsSchema = z
|
|
|
16867
16885
|
backToLogin: z.string(),
|
|
16868
16886
|
dontHaveAnAccount: z.string(),
|
|
16869
16887
|
closeModal: z.string(),
|
|
16888
|
+
charactersCannotRepeatMoreThan: z.string(),
|
|
16889
|
+
charactersCannotRepeatMoreThanCaseInsensitive: z.string(),
|
|
16870
16890
|
chooseDifferentUsername: z.string(),
|
|
16871
16891
|
confirmPassword: z.string(),
|
|
16872
16892
|
constraintViolationForPassword: z.string(),
|
|
@@ -16899,6 +16919,9 @@ const stringsSchema = z
|
|
|
16899
16919
|
notToExceedMaximumCharacterLength: z.string(),
|
|
16900
16920
|
noLessThanMinimumCharacterLength: z.string(),
|
|
16901
16921
|
passwordCallback: z.string(),
|
|
16922
|
+
passwordCannotContainCommonPasswords: z.string(),
|
|
16923
|
+
passwordCannotContainCommonPasswordsOrBeReversible: z.string(),
|
|
16924
|
+
passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan: z.string(),
|
|
16902
16925
|
passwordRequirements: z.string(),
|
|
16903
16926
|
pleaseCheckValue: z.string(),
|
|
16904
16927
|
pleaseConfirm: z.string(),
|
|
@@ -16913,6 +16936,10 @@ const stringsSchema = z
|
|
|
16913
16936
|
securityAnswer: z.string(),
|
|
16914
16937
|
securityQuestions: z.string(),
|
|
16915
16938
|
securityQuestionsPrompt: z.string(),
|
|
16939
|
+
shouldContainANumber: z.string(),
|
|
16940
|
+
shouldContainAnUppercase: z.string(),
|
|
16941
|
+
shouldContainALowercase: z.string(),
|
|
16942
|
+
shouldContainASymbol: z.string(),
|
|
16916
16943
|
showPassword: z.string(),
|
|
16917
16944
|
sn: z.string(),
|
|
16918
16945
|
submitButton: z.string(),
|
|
@@ -17871,9 +17898,9 @@ styleSchema.partial();
|
|
|
17871
17898
|
const fallbackStyles = {
|
|
17872
17899
|
checksAndRadios: 'animated',
|
|
17873
17900
|
labels: 'floating',
|
|
17874
|
-
logo:
|
|
17875
|
-
sections:
|
|
17876
|
-
stage:
|
|
17901
|
+
logo: undefined,
|
|
17902
|
+
sections: undefined,
|
|
17903
|
+
stage: undefined,
|
|
17877
17904
|
};
|
|
17878
17905
|
const styleStore = writable(fallbackStyles);
|
|
17879
17906
|
function initialize(customStyle) {
|
|
@@ -18524,7 +18551,7 @@ function create_else_block$9(ctx) {
|
|
|
18524
18551
|
attr(button, "aria-controls", /*dialogId*/ ctx[1]);
|
|
18525
18552
|
|
|
18526
18553
|
attr(div, "class", div_class_value = `tw_pt-10 md:tw_pt-10 tw_text-right ${(/*$styleStore*/ ctx[5]?.logo)
|
|
18527
|
-
? 'tw_h-32 md:tw_h-36
|
|
18554
|
+
? 'tw_h-32 md:tw_h-36 tw_pb-6'
|
|
18528
18555
|
: ''}`);
|
|
18529
18556
|
},
|
|
18530
18557
|
m(target, anchor) {
|
|
@@ -18567,7 +18594,7 @@ function create_else_block$9(ctx) {
|
|
|
18567
18594
|
}
|
|
18568
18595
|
|
|
18569
18596
|
if (!current || dirty & /*$styleStore*/ 32 && div_class_value !== (div_class_value = `tw_pt-10 md:tw_pt-10 tw_text-right ${(/*$styleStore*/ ctx[5]?.logo)
|
|
18570
|
-
? 'tw_h-32 md:tw_h-36
|
|
18597
|
+
? 'tw_h-32 md:tw_h-36 tw_pb-6'
|
|
18571
18598
|
: ''}`)) {
|
|
18572
18599
|
attr(div, "class", div_class_value);
|
|
18573
18600
|
}
|
|
@@ -20606,12 +20633,41 @@ function getInputTypeFromPolicies(policies) {
|
|
|
20606
20633
|
return 'text';
|
|
20607
20634
|
}
|
|
20608
20635
|
function getValidationFailureParams(failedPolicy) {
|
|
20609
|
-
if (failedPolicy?.policyRequirement === '
|
|
20610
|
-
const params = failedPolicy
|
|
20636
|
+
if (failedPolicy?.policyRequirement === 'DICTIONARY') {
|
|
20637
|
+
const params = failedPolicy.params;
|
|
20638
|
+
const min = params?.['min-substring-length'] || 0;
|
|
20639
|
+
const arr = [];
|
|
20640
|
+
if (params?.['check-substrings'] && params?.['test-reversed-password']) {
|
|
20641
|
+
arr.push({
|
|
20642
|
+
length: min,
|
|
20643
|
+
message: interpolate('passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan', {
|
|
20644
|
+
min: String(min),
|
|
20645
|
+
}),
|
|
20646
|
+
rule: 'reversibleSubstrings',
|
|
20647
|
+
});
|
|
20648
|
+
}
|
|
20649
|
+
else if (params?.['test-reversed-password']) {
|
|
20650
|
+
arr.push({
|
|
20651
|
+
length: null,
|
|
20652
|
+
message: interpolate('passwordCannotContainCommonPasswordsOrBeReversible'),
|
|
20653
|
+
rule: 'reversibleSubstrings',
|
|
20654
|
+
});
|
|
20655
|
+
}
|
|
20656
|
+
else {
|
|
20657
|
+
arr.push({
|
|
20658
|
+
length: null,
|
|
20659
|
+
message: interpolate('passwordCannotContainCommonPasswords'),
|
|
20660
|
+
rule: 'reversibleSubstrings',
|
|
20661
|
+
});
|
|
20662
|
+
}
|
|
20663
|
+
return arr;
|
|
20664
|
+
}
|
|
20665
|
+
else if (failedPolicy?.policyRequirement === 'CHARACTER_SET') {
|
|
20666
|
+
const params = failedPolicy.params;
|
|
20611
20667
|
return params?.['character-sets'].map(convertCharacterSetToRuleObj);
|
|
20612
20668
|
}
|
|
20613
20669
|
else if (failedPolicy?.policyRequirement === 'LENGTH_BASED') {
|
|
20614
|
-
const params = failedPolicy
|
|
20670
|
+
const params = failedPolicy.params;
|
|
20615
20671
|
const min = params?.['min-password-length'] || 0;
|
|
20616
20672
|
const max = params?.['max-password-length'] || null;
|
|
20617
20673
|
const arr = [];
|
|
@@ -20631,6 +20687,26 @@ function getValidationFailureParams(failedPolicy) {
|
|
|
20631
20687
|
}
|
|
20632
20688
|
return arr;
|
|
20633
20689
|
}
|
|
20690
|
+
else if (failedPolicy?.policyRequirement === 'REPEATED_CHARACTERS') {
|
|
20691
|
+
const params = failedPolicy.params;
|
|
20692
|
+
const max = params['max-consecutive-length'] || 0;
|
|
20693
|
+
const arr = [];
|
|
20694
|
+
if (!params['case-sensitive-validation']) {
|
|
20695
|
+
arr.push({
|
|
20696
|
+
length: max,
|
|
20697
|
+
message: interpolate('charactersCannotRepeatMoreThanCaseInsensitive', { max: String(max) }),
|
|
20698
|
+
rule: 'repeatedCharactersCaseInsensitive',
|
|
20699
|
+
});
|
|
20700
|
+
}
|
|
20701
|
+
else {
|
|
20702
|
+
arr.push({
|
|
20703
|
+
length: max,
|
|
20704
|
+
message: interpolate('charactersCannotRepeatMoreThan', { max: String(max) }),
|
|
20705
|
+
rule: 'repeatedCharacters',
|
|
20706
|
+
});
|
|
20707
|
+
}
|
|
20708
|
+
return arr;
|
|
20709
|
+
}
|
|
20634
20710
|
else if (failedPolicy?.policyRequirement === 'VALID_USERNAME') {
|
|
20635
20711
|
return [
|
|
20636
20712
|
{
|
|
@@ -20787,36 +20863,72 @@ function convertCharacterSetToRuleObj(set) {
|
|
|
20787
20863
|
const num = arr[0];
|
|
20788
20864
|
const type = arr[1];
|
|
20789
20865
|
if (type === '0123456789') {
|
|
20790
|
-
|
|
20791
|
-
|
|
20792
|
-
|
|
20793
|
-
|
|
20794
|
-
|
|
20866
|
+
if (num === '0') {
|
|
20867
|
+
return {
|
|
20868
|
+
length: null,
|
|
20869
|
+
message: interpolate('shouldContainANumber'),
|
|
20870
|
+
rule: 'numbers',
|
|
20871
|
+
};
|
|
20872
|
+
}
|
|
20873
|
+
else {
|
|
20874
|
+
return {
|
|
20875
|
+
length: Number(num),
|
|
20876
|
+
message: interpolate('minimumNumberOfNumbers', { num: String(num) }),
|
|
20877
|
+
rule: 'numbers',
|
|
20878
|
+
};
|
|
20879
|
+
}
|
|
20795
20880
|
}
|
|
20796
20881
|
else if (type === 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') {
|
|
20797
|
-
|
|
20798
|
-
|
|
20799
|
-
|
|
20800
|
-
|
|
20801
|
-
|
|
20882
|
+
if (num === '0') {
|
|
20883
|
+
return {
|
|
20884
|
+
length: null,
|
|
20885
|
+
message: interpolate('shouldContainAnUppercase'),
|
|
20886
|
+
rule: 'uppercase',
|
|
20887
|
+
};
|
|
20888
|
+
}
|
|
20889
|
+
else {
|
|
20890
|
+
return {
|
|
20891
|
+
length: Number(num),
|
|
20892
|
+
message: interpolate('minimumNumberOfUppercase', { num: String(num) }),
|
|
20893
|
+
rule: 'uppercase',
|
|
20894
|
+
};
|
|
20895
|
+
}
|
|
20802
20896
|
}
|
|
20803
20897
|
else if (type === 'abcdefghijklmnopqrstuvwxyz') {
|
|
20804
|
-
|
|
20805
|
-
|
|
20806
|
-
|
|
20807
|
-
|
|
20808
|
-
|
|
20898
|
+
if (num === '0') {
|
|
20899
|
+
return {
|
|
20900
|
+
length: null,
|
|
20901
|
+
message: interpolate('shouldContainALowercase'),
|
|
20902
|
+
rule: 'lowercase',
|
|
20903
|
+
};
|
|
20904
|
+
}
|
|
20905
|
+
else {
|
|
20906
|
+
return {
|
|
20907
|
+
length: Number(num),
|
|
20908
|
+
message: interpolate('minimumNumberOfLowercase', { num: String(num) }),
|
|
20909
|
+
rule: 'lowercase',
|
|
20910
|
+
};
|
|
20911
|
+
}
|
|
20809
20912
|
}
|
|
20810
20913
|
else if (type.includes('@') || type.includes('!') || type.includes('*') || type.includes('#')) {
|
|
20811
|
-
|
|
20812
|
-
|
|
20813
|
-
|
|
20814
|
-
|
|
20815
|
-
|
|
20914
|
+
if (num === '0') {
|
|
20915
|
+
return {
|
|
20916
|
+
length: null,
|
|
20917
|
+
message: interpolate('shouldContainASymbol'),
|
|
20918
|
+
rule: 'symbols',
|
|
20919
|
+
};
|
|
20920
|
+
}
|
|
20921
|
+
else {
|
|
20922
|
+
return {
|
|
20923
|
+
length: Number(num),
|
|
20924
|
+
message: interpolate('minimumNumberOfSymbols', { num: String(num) }),
|
|
20925
|
+
rule: 'symbols',
|
|
20926
|
+
};
|
|
20927
|
+
}
|
|
20816
20928
|
}
|
|
20817
20929
|
else {
|
|
20818
20930
|
return {
|
|
20819
|
-
length:
|
|
20931
|
+
length: null,
|
|
20820
20932
|
message: interpolate('pleaseCheckValue'),
|
|
20821
20933
|
rule: 'unknown',
|
|
20822
20934
|
};
|
|
@@ -24909,7 +25021,7 @@ function create_if_block_5$1(ctx) {
|
|
|
24909
25021
|
}
|
|
24910
25022
|
|
|
24911
25023
|
// (65:0) {#if type === 'number'}
|
|
24912
|
-
function create_if_block_4$
|
|
25024
|
+
function create_if_block_4$2(ctx) {
|
|
24913
25025
|
let input;
|
|
24914
25026
|
let input_aria_describedby_value;
|
|
24915
25027
|
let input_class_value;
|
|
@@ -24989,7 +25101,7 @@ function create_if_block_4$1(ctx) {
|
|
|
24989
25101
|
}
|
|
24990
25102
|
|
|
24991
25103
|
// (81:0) {#if type === 'password'}
|
|
24992
|
-
function create_if_block_3$
|
|
25104
|
+
function create_if_block_3$6(ctx) {
|
|
24993
25105
|
let input;
|
|
24994
25106
|
let input_aria_describedby_value;
|
|
24995
25107
|
let input_class_value;
|
|
@@ -25309,8 +25421,8 @@ function create_fragment$x(ctx) {
|
|
|
25309
25421
|
let if_block0 = /*labelOrder*/ ctx[6] === 'first' && create_if_block_7$1(ctx);
|
|
25310
25422
|
let if_block1 = /*type*/ ctx[11] === 'date' && create_if_block_6$1(ctx);
|
|
25311
25423
|
let if_block2 = /*type*/ ctx[11] === 'email' && create_if_block_5$1(ctx);
|
|
25312
|
-
let if_block3 = /*type*/ ctx[11] === 'number' && create_if_block_4$
|
|
25313
|
-
let if_block4 = /*type*/ ctx[11] === 'password' && create_if_block_3$
|
|
25424
|
+
let if_block3 = /*type*/ ctx[11] === 'number' && create_if_block_4$2(ctx);
|
|
25425
|
+
let if_block4 = /*type*/ ctx[11] === 'password' && create_if_block_3$6(ctx);
|
|
25314
25426
|
let if_block5 = /*type*/ ctx[11] === 'phone' && create_if_block_2$7(ctx);
|
|
25315
25427
|
let if_block6 = /*type*/ ctx[11] === 'text' && create_if_block_1$8(ctx);
|
|
25316
25428
|
let if_block7 = /*labelOrder*/ ctx[6] === 'last' && create_if_block$d(ctx);
|
|
@@ -25407,7 +25519,7 @@ function create_fragment$x(ctx) {
|
|
|
25407
25519
|
if (if_block3) {
|
|
25408
25520
|
if_block3.p(ctx, dirty);
|
|
25409
25521
|
} else {
|
|
25410
|
-
if_block3 = create_if_block_4$
|
|
25522
|
+
if_block3 = create_if_block_4$2(ctx);
|
|
25411
25523
|
if_block3.c();
|
|
25412
25524
|
if_block3.m(t3.parentNode, t3);
|
|
25413
25525
|
}
|
|
@@ -25420,7 +25532,7 @@ function create_fragment$x(ctx) {
|
|
|
25420
25532
|
if (if_block4) {
|
|
25421
25533
|
if_block4.p(ctx, dirty);
|
|
25422
25534
|
} else {
|
|
25423
|
-
if_block4 = create_if_block_3$
|
|
25535
|
+
if_block4 = create_if_block_3$6(ctx);
|
|
25424
25536
|
if_block4.c();
|
|
25425
25537
|
if_block4.m(t4.parentNode, t4);
|
|
25426
25538
|
}
|
|
@@ -27131,8 +27243,8 @@ class Eye_icon extends SvelteComponent {
|
|
|
27131
27243
|
|
|
27132
27244
|
function create_default_slot_1$8(ctx) {
|
|
27133
27245
|
let current;
|
|
27134
|
-
const default_slot_template = /*#slots*/ ctx[
|
|
27135
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
|
27246
|
+
const default_slot_template = /*#slots*/ ctx[14].default;
|
|
27247
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[15], null);
|
|
27136
27248
|
|
|
27137
27249
|
return {
|
|
27138
27250
|
c() {
|
|
@@ -27147,15 +27259,15 @@ function create_default_slot_1$8(ctx) {
|
|
|
27147
27259
|
},
|
|
27148
27260
|
p(ctx, dirty) {
|
|
27149
27261
|
if (default_slot) {
|
|
27150
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
27262
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 32768)) {
|
|
27151
27263
|
update_slot_base(
|
|
27152
27264
|
default_slot,
|
|
27153
27265
|
default_slot_template,
|
|
27154
27266
|
ctx,
|
|
27155
|
-
/*$$scope*/ ctx[
|
|
27267
|
+
/*$$scope*/ ctx[15],
|
|
27156
27268
|
!current
|
|
27157
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
27158
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
27269
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[15])
|
|
27270
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[15], dirty, null),
|
|
27159
27271
|
null
|
|
27160
27272
|
);
|
|
27161
27273
|
}
|
|
@@ -27176,7 +27288,7 @@ function create_default_slot_1$8(ctx) {
|
|
|
27176
27288
|
};
|
|
27177
27289
|
}
|
|
27178
27290
|
|
|
27179
|
-
// (
|
|
27291
|
+
// (59:4) <EyeIcon classes="tw_password-icon dark:tw_password-icon_dark" visible={isVisible}>
|
|
27180
27292
|
function create_default_slot$f(ctx) {
|
|
27181
27293
|
let t;
|
|
27182
27294
|
let current;
|
|
@@ -27206,7 +27318,7 @@ function create_default_slot$f(ctx) {
|
|
|
27206
27318
|
};
|
|
27207
27319
|
}
|
|
27208
27320
|
|
|
27209
|
-
// (
|
|
27321
|
+
// (53:2)
|
|
27210
27322
|
function create_input_button_slot$1(ctx) {
|
|
27211
27323
|
let button;
|
|
27212
27324
|
let eyeicon;
|
|
@@ -27245,7 +27357,7 @@ function create_input_button_slot$1(ctx) {
|
|
|
27245
27357
|
const eyeicon_changes = {};
|
|
27246
27358
|
if (dirty & /*isVisible*/ 64) eyeicon_changes.visible = /*isVisible*/ ctx[6];
|
|
27247
27359
|
|
|
27248
|
-
if (dirty & /*$$scope*/
|
|
27360
|
+
if (dirty & /*$$scope*/ 32768) {
|
|
27249
27361
|
eyeicon_changes.$$scope = { dirty, ctx };
|
|
27250
27362
|
}
|
|
27251
27363
|
|
|
@@ -27278,18 +27390,18 @@ function create_fragment$q(ctx) {
|
|
|
27278
27390
|
forceValidityFailure: /*forceValidityFailure*/ ctx[0],
|
|
27279
27391
|
isFirstInvalidInput: false,
|
|
27280
27392
|
hasRightIcon: true,
|
|
27281
|
-
key: `${/*key*/ ctx[
|
|
27393
|
+
key: `${/*key*/ ctx[3]}-confirm`,
|
|
27282
27394
|
label: interpolate('confirmPassword', null, 'Confirm Password'),
|
|
27283
|
-
message: /*isInvalid*/ ctx[
|
|
27395
|
+
message: /*isInvalid*/ ctx[1]
|
|
27284
27396
|
? interpolate('passwordConfirmationError', null, 'Passwords do not match')
|
|
27285
27397
|
: undefined,
|
|
27286
|
-
onChange: /*
|
|
27287
|
-
isInvalid: /*isInvalid*/ ctx[
|
|
27288
|
-
isRequired: /*isRequired*/ ctx[
|
|
27289
|
-
showMessage: /*showMessage*/ ctx[
|
|
27398
|
+
onChange: /*onChangeWrapper*/ ctx[9],
|
|
27399
|
+
isInvalid: /*isInvalid*/ ctx[1],
|
|
27400
|
+
isRequired: /*isRequired*/ ctx[2],
|
|
27401
|
+
showMessage: /*showMessage*/ ctx[4],
|
|
27290
27402
|
type: /*type*/ ctx[7],
|
|
27291
|
-
value: typeof /*value*/ ctx[
|
|
27292
|
-
? /*value*/ ctx[
|
|
27403
|
+
value: typeof /*value*/ ctx[5] === 'string'
|
|
27404
|
+
? /*value*/ ctx[5]
|
|
27293
27405
|
: '',
|
|
27294
27406
|
$$slots: {
|
|
27295
27407
|
"input-button": [create_input_button_slot$1],
|
|
@@ -27310,19 +27422,22 @@ function create_fragment$q(ctx) {
|
|
|
27310
27422
|
p(ctx, [dirty]) {
|
|
27311
27423
|
const input_changes = {};
|
|
27312
27424
|
if (dirty & /*forceValidityFailure*/ 1) input_changes.forceValidityFailure = /*forceValidityFailure*/ ctx[0];
|
|
27313
|
-
if (dirty & /*key*/
|
|
27425
|
+
if (dirty & /*key*/ 8) input_changes.key = `${/*key*/ ctx[3]}-confirm`;
|
|
27314
27426
|
|
|
27315
|
-
if (dirty & /*isInvalid*/
|
|
27427
|
+
if (dirty & /*isInvalid*/ 2) input_changes.message = /*isInvalid*/ ctx[1]
|
|
27316
27428
|
? interpolate('passwordConfirmationError', null, 'Passwords do not match')
|
|
27317
27429
|
: undefined;
|
|
27318
27430
|
|
|
27319
|
-
if (dirty & /*
|
|
27320
|
-
if (dirty & /*
|
|
27321
|
-
if (dirty & /*
|
|
27322
|
-
if (dirty & /*showMessage*/ 32) input_changes.showMessage = /*showMessage*/ ctx[5];
|
|
27431
|
+
if (dirty & /*isInvalid*/ 2) input_changes.isInvalid = /*isInvalid*/ ctx[1];
|
|
27432
|
+
if (dirty & /*isRequired*/ 4) input_changes.isRequired = /*isRequired*/ ctx[2];
|
|
27433
|
+
if (dirty & /*showMessage*/ 16) input_changes.showMessage = /*showMessage*/ ctx[4];
|
|
27323
27434
|
if (dirty & /*type*/ 128) input_changes.type = /*type*/ ctx[7];
|
|
27324
27435
|
|
|
27325
|
-
if (dirty &
|
|
27436
|
+
if (dirty & /*value*/ 32) input_changes.value = typeof /*value*/ ctx[5] === 'string'
|
|
27437
|
+
? /*value*/ ctx[5]
|
|
27438
|
+
: '';
|
|
27439
|
+
|
|
27440
|
+
if (dirty & /*$$scope, isVisible*/ 32832) {
|
|
27326
27441
|
input_changes.$$scope = { dirty, ctx };
|
|
27327
27442
|
}
|
|
27328
27443
|
|
|
@@ -27346,10 +27461,11 @@ function create_fragment$q(ctx) {
|
|
|
27346
27461
|
function instance$q($$self, $$props, $$invalidate) {
|
|
27347
27462
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
27348
27463
|
let { forceValidityFailure = false } = $$props;
|
|
27349
|
-
let { key } = $$props;
|
|
27350
|
-
let { onChange } = $$props;
|
|
27351
27464
|
let { isInvalid = false } = $$props;
|
|
27352
27465
|
let { isRequired = true } = $$props;
|
|
27466
|
+
let { key } = $$props;
|
|
27467
|
+
let { onChange } = $$props;
|
|
27468
|
+
let { resetValue } = $$props;
|
|
27353
27469
|
let { style = {} } = $$props;
|
|
27354
27470
|
const Input = style.labels === 'stacked' ? Stacked_label : Floating_label;
|
|
27355
27471
|
let { showMessage = undefined } = $$props;
|
|
@@ -27357,6 +27473,13 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
|
27357
27473
|
let type = 'password';
|
|
27358
27474
|
let value;
|
|
27359
27475
|
|
|
27476
|
+
function onChangeWrapper(event) {
|
|
27477
|
+
$$invalidate(5, value = event.target?.value);
|
|
27478
|
+
|
|
27479
|
+
// TODO: revisit this logic to avoid unnecessary ternary
|
|
27480
|
+
onChange(typeof value === 'string' ? value : undefined);
|
|
27481
|
+
}
|
|
27482
|
+
|
|
27360
27483
|
/**
|
|
27361
27484
|
* @function toggleVisibility - toggles the password from masked to plaintext
|
|
27362
27485
|
*/
|
|
@@ -27367,27 +27490,41 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
|
27367
27490
|
|
|
27368
27491
|
$$self.$$set = $$props => {
|
|
27369
27492
|
if ('forceValidityFailure' in $$props) $$invalidate(0, forceValidityFailure = $$props.forceValidityFailure);
|
|
27370
|
-
if ('
|
|
27371
|
-
if ('
|
|
27372
|
-
if ('
|
|
27373
|
-
if ('
|
|
27374
|
-
if ('
|
|
27375
|
-
if ('
|
|
27376
|
-
if ('
|
|
27493
|
+
if ('isInvalid' in $$props) $$invalidate(1, isInvalid = $$props.isInvalid);
|
|
27494
|
+
if ('isRequired' in $$props) $$invalidate(2, isRequired = $$props.isRequired);
|
|
27495
|
+
if ('key' in $$props) $$invalidate(3, key = $$props.key);
|
|
27496
|
+
if ('onChange' in $$props) $$invalidate(11, onChange = $$props.onChange);
|
|
27497
|
+
if ('resetValue' in $$props) $$invalidate(12, resetValue = $$props.resetValue);
|
|
27498
|
+
if ('style' in $$props) $$invalidate(13, style = $$props.style);
|
|
27499
|
+
if ('showMessage' in $$props) $$invalidate(4, showMessage = $$props.showMessage);
|
|
27500
|
+
if ('$$scope' in $$props) $$invalidate(15, $$scope = $$props.$$scope);
|
|
27501
|
+
};
|
|
27502
|
+
|
|
27503
|
+
$$self.$$.update = () => {
|
|
27504
|
+
if ($$self.$$.dirty & /*resetValue, onChange, value*/ 6176) {
|
|
27505
|
+
{
|
|
27506
|
+
if (resetValue) {
|
|
27507
|
+
$$invalidate(5, value = undefined);
|
|
27508
|
+
onChange(value);
|
|
27509
|
+
}
|
|
27510
|
+
}
|
|
27511
|
+
}
|
|
27377
27512
|
};
|
|
27378
27513
|
|
|
27379
27514
|
return [
|
|
27380
27515
|
forceValidityFailure,
|
|
27381
|
-
key,
|
|
27382
|
-
onChange,
|
|
27383
27516
|
isInvalid,
|
|
27384
27517
|
isRequired,
|
|
27518
|
+
key,
|
|
27385
27519
|
showMessage,
|
|
27520
|
+
value,
|
|
27386
27521
|
isVisible,
|
|
27387
27522
|
type,
|
|
27388
27523
|
Input,
|
|
27389
|
-
|
|
27524
|
+
onChangeWrapper,
|
|
27390
27525
|
toggleVisibility,
|
|
27526
|
+
onChange,
|
|
27527
|
+
resetValue,
|
|
27391
27528
|
style,
|
|
27392
27529
|
slots,
|
|
27393
27530
|
$$scope
|
|
@@ -27400,12 +27537,13 @@ class Confirm_input extends SvelteComponent {
|
|
|
27400
27537
|
|
|
27401
27538
|
init(this, options, instance$q, create_fragment$q, safe_not_equal, {
|
|
27402
27539
|
forceValidityFailure: 0,
|
|
27403
|
-
|
|
27404
|
-
|
|
27405
|
-
|
|
27406
|
-
|
|
27407
|
-
|
|
27408
|
-
|
|
27540
|
+
isInvalid: 1,
|
|
27541
|
+
isRequired: 2,
|
|
27542
|
+
key: 3,
|
|
27543
|
+
onChange: 11,
|
|
27544
|
+
resetValue: 12,
|
|
27545
|
+
style: 13,
|
|
27546
|
+
showMessage: 4
|
|
27409
27547
|
});
|
|
27410
27548
|
}
|
|
27411
27549
|
}
|
|
@@ -27414,8 +27552,8 @@ class Confirm_input extends SvelteComponent {
|
|
|
27414
27552
|
|
|
27415
27553
|
function create_default_slot_1$7(ctx) {
|
|
27416
27554
|
let current;
|
|
27417
|
-
const default_slot_template = /*#slots*/ ctx[
|
|
27418
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
|
27555
|
+
const default_slot_template = /*#slots*/ ctx[21].default;
|
|
27556
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[22], null);
|
|
27419
27557
|
|
|
27420
27558
|
return {
|
|
27421
27559
|
c() {
|
|
@@ -27430,15 +27568,15 @@ function create_default_slot_1$7(ctx) {
|
|
|
27430
27568
|
},
|
|
27431
27569
|
p(ctx, dirty) {
|
|
27432
27570
|
if (default_slot) {
|
|
27433
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
27571
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 4194304)) {
|
|
27434
27572
|
update_slot_base(
|
|
27435
27573
|
default_slot,
|
|
27436
27574
|
default_slot_template,
|
|
27437
27575
|
ctx,
|
|
27438
|
-
/*$$scope*/ ctx[
|
|
27576
|
+
/*$$scope*/ ctx[22],
|
|
27439
27577
|
!current
|
|
27440
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
27441
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
27578
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[22])
|
|
27579
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[22], dirty, null),
|
|
27442
27580
|
null
|
|
27443
27581
|
);
|
|
27444
27582
|
}
|
|
@@ -27459,7 +27597,7 @@ function create_default_slot_1$7(ctx) {
|
|
|
27459
27597
|
};
|
|
27460
27598
|
}
|
|
27461
27599
|
|
|
27462
|
-
// (
|
|
27600
|
+
// (94:4) <EyeIcon classes="tw_password-icon dark:tw_password-icon_dark" visible={isVisible}>
|
|
27463
27601
|
function create_default_slot$e(ctx) {
|
|
27464
27602
|
let t;
|
|
27465
27603
|
let current;
|
|
@@ -27489,7 +27627,7 @@ function create_default_slot$e(ctx) {
|
|
|
27489
27627
|
};
|
|
27490
27628
|
}
|
|
27491
27629
|
|
|
27492
|
-
// (
|
|
27630
|
+
// (88:2)
|
|
27493
27631
|
function create_input_button_slot(ctx) {
|
|
27494
27632
|
let button;
|
|
27495
27633
|
let eyeicon;
|
|
@@ -27520,7 +27658,7 @@ function create_input_button_slot(ctx) {
|
|
|
27520
27658
|
current = true;
|
|
27521
27659
|
|
|
27522
27660
|
if (!mounted) {
|
|
27523
|
-
dispose = listen(button, "click", /*toggleVisibility*/ ctx[
|
|
27661
|
+
dispose = listen(button, "click", /*toggleVisibility*/ ctx[17]);
|
|
27524
27662
|
mounted = true;
|
|
27525
27663
|
}
|
|
27526
27664
|
},
|
|
@@ -27528,7 +27666,7 @@ function create_input_button_slot(ctx) {
|
|
|
27528
27666
|
const eyeicon_changes = {};
|
|
27529
27667
|
if (dirty & /*isVisible*/ 1024) eyeicon_changes.visible = /*isVisible*/ ctx[10];
|
|
27530
27668
|
|
|
27531
|
-
if (dirty & /*$$scope*/
|
|
27669
|
+
if (dirty & /*$$scope*/ 4194304) {
|
|
27532
27670
|
eyeicon_changes.$$scope = { dirty, ctx };
|
|
27533
27671
|
}
|
|
27534
27672
|
|
|
@@ -27552,7 +27690,7 @@ function create_input_button_slot(ctx) {
|
|
|
27552
27690
|
};
|
|
27553
27691
|
}
|
|
27554
27692
|
|
|
27555
|
-
// (
|
|
27693
|
+
// (101:0) {#if callbackMetadata?.platform?.confirmPassword}
|
|
27556
27694
|
function create_if_block$a(ctx) {
|
|
27557
27695
|
let confirminput;
|
|
27558
27696
|
let current;
|
|
@@ -27562,7 +27700,8 @@ function create_if_block$a(ctx) {
|
|
|
27562
27700
|
forceValidityFailure: /*doPasswordsMatch*/ ctx[9] === false,
|
|
27563
27701
|
isInvalid: /*doPasswordsMatch*/ ctx[9] === false,
|
|
27564
27702
|
key: /*key*/ ctx[0],
|
|
27565
|
-
onChange: /*confirmInput*/ ctx[
|
|
27703
|
+
onChange: /*confirmInput*/ ctx[15],
|
|
27704
|
+
resetValue: /*resetValue*/ ctx[11],
|
|
27566
27705
|
showMessage: /*doPasswordsMatch*/ ctx[9] === false,
|
|
27567
27706
|
style: /*style*/ ctx[4]
|
|
27568
27707
|
}
|
|
@@ -27581,6 +27720,7 @@ function create_if_block$a(ctx) {
|
|
|
27581
27720
|
if (dirty & /*doPasswordsMatch*/ 512) confirminput_changes.forceValidityFailure = /*doPasswordsMatch*/ ctx[9] === false;
|
|
27582
27721
|
if (dirty & /*doPasswordsMatch*/ 512) confirminput_changes.isInvalid = /*doPasswordsMatch*/ ctx[9] === false;
|
|
27583
27722
|
if (dirty & /*key*/ 1) confirminput_changes.key = /*key*/ ctx[0];
|
|
27723
|
+
if (dirty & /*resetValue*/ 2048) confirminput_changes.resetValue = /*resetValue*/ ctx[11];
|
|
27584
27724
|
if (dirty & /*doPasswordsMatch*/ 512) confirminput_changes.showMessage = /*doPasswordsMatch*/ ctx[9] === false;
|
|
27585
27725
|
if (dirty & /*style*/ 16) confirminput_changes.style = /*style*/ ctx[4];
|
|
27586
27726
|
confirminput.$set(confirminput_changes);
|
|
@@ -27606,20 +27746,20 @@ function create_fragment$p(ctx) {
|
|
|
27606
27746
|
let if_block_anchor;
|
|
27607
27747
|
let current;
|
|
27608
27748
|
|
|
27609
|
-
input = new /*Input*/ ctx[
|
|
27749
|
+
input = new /*Input*/ ctx[14]({
|
|
27610
27750
|
props: {
|
|
27611
27751
|
isFirstInvalidInput: /*callbackMetadata*/ ctx[1]?.derived.isFirstInvalidInput || false,
|
|
27612
27752
|
hasRightIcon: true,
|
|
27613
27753
|
key: /*key*/ ctx[0],
|
|
27614
|
-
label: interpolate(textToKey(/*callbackType*/ ctx[8]), null, /*textInputLabel*/ ctx[
|
|
27754
|
+
label: interpolate(textToKey(/*callbackType*/ ctx[8]), null, /*textInputLabel*/ ctx[12]),
|
|
27615
27755
|
message: /*validationFailure*/ ctx[6] || (/*isRequired*/ ctx[3]
|
|
27616
27756
|
? interpolate('inputRequiredError')
|
|
27617
27757
|
: undefined),
|
|
27618
|
-
onChange: /*setValue*/ ctx[
|
|
27758
|
+
onChange: /*setValue*/ ctx[16],
|
|
27619
27759
|
isInvalid: /*isInvalid*/ ctx[2],
|
|
27620
27760
|
isRequired: /*isRequired*/ ctx[3],
|
|
27621
27761
|
showMessage: /*showMessage*/ ctx[5],
|
|
27622
|
-
type: /*type*/ ctx[
|
|
27762
|
+
type: /*type*/ ctx[13],
|
|
27623
27763
|
value: typeof /*value*/ ctx[7] === 'string'
|
|
27624
27764
|
? /*value*/ ctx[7]
|
|
27625
27765
|
: '',
|
|
@@ -27651,7 +27791,7 @@ function create_fragment$p(ctx) {
|
|
|
27651
27791
|
const input_changes = {};
|
|
27652
27792
|
if (dirty & /*callbackMetadata*/ 2) input_changes.isFirstInvalidInput = /*callbackMetadata*/ ctx[1]?.derived.isFirstInvalidInput || false;
|
|
27653
27793
|
if (dirty & /*key*/ 1) input_changes.key = /*key*/ ctx[0];
|
|
27654
|
-
if (dirty & /*callbackType, textInputLabel*/
|
|
27794
|
+
if (dirty & /*callbackType, textInputLabel*/ 4352) input_changes.label = interpolate(textToKey(/*callbackType*/ ctx[8]), null, /*textInputLabel*/ ctx[12]);
|
|
27655
27795
|
|
|
27656
27796
|
if (dirty & /*validationFailure, isRequired*/ 72) input_changes.message = /*validationFailure*/ ctx[6] || (/*isRequired*/ ctx[3]
|
|
27657
27797
|
? interpolate('inputRequiredError')
|
|
@@ -27660,13 +27800,13 @@ function create_fragment$p(ctx) {
|
|
|
27660
27800
|
if (dirty & /*isInvalid*/ 4) input_changes.isInvalid = /*isInvalid*/ ctx[2];
|
|
27661
27801
|
if (dirty & /*isRequired*/ 8) input_changes.isRequired = /*isRequired*/ ctx[3];
|
|
27662
27802
|
if (dirty & /*showMessage*/ 32) input_changes.showMessage = /*showMessage*/ ctx[5];
|
|
27663
|
-
if (dirty & /*type*/
|
|
27803
|
+
if (dirty & /*type*/ 8192) input_changes.type = /*type*/ ctx[13];
|
|
27664
27804
|
|
|
27665
27805
|
if (dirty & /*value*/ 128) input_changes.value = typeof /*value*/ ctx[7] === 'string'
|
|
27666
27806
|
? /*value*/ ctx[7]
|
|
27667
27807
|
: '';
|
|
27668
27808
|
|
|
27669
|
-
if (dirty & /*$$scope, isVisible*/
|
|
27809
|
+
if (dirty & /*$$scope, isVisible*/ 4195328) {
|
|
27670
27810
|
input_changes.$$scope = { dirty, ctx };
|
|
27671
27811
|
}
|
|
27672
27812
|
|
|
@@ -27730,6 +27870,8 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
27730
27870
|
let callbackType;
|
|
27731
27871
|
let doPasswordsMatch;
|
|
27732
27872
|
let isVisible = false;
|
|
27873
|
+
let resetValue = false;
|
|
27874
|
+
let savedValue = '';
|
|
27733
27875
|
let textInputLabel;
|
|
27734
27876
|
let type = 'password';
|
|
27735
27877
|
let value;
|
|
@@ -27738,8 +27880,8 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
27738
27880
|
* @function confirmInput - ensures the second password input matches the first
|
|
27739
27881
|
* @param event
|
|
27740
27882
|
*/
|
|
27741
|
-
function confirmInput(
|
|
27742
|
-
$$invalidate(
|
|
27883
|
+
function confirmInput(val) {
|
|
27884
|
+
$$invalidate(19, confirmValue = val);
|
|
27743
27885
|
}
|
|
27744
27886
|
|
|
27745
27887
|
/**
|
|
@@ -27757,6 +27899,8 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
27757
27899
|
* for writing values to the callbacks received from AM
|
|
27758
27900
|
*********************************************************************** */
|
|
27759
27901
|
callback.setInputValue(value);
|
|
27902
|
+
|
|
27903
|
+
$$invalidate(20, savedValue = String(value));
|
|
27760
27904
|
}
|
|
27761
27905
|
|
|
27762
27906
|
/**
|
|
@@ -27764,11 +27908,11 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
27764
27908
|
*/
|
|
27765
27909
|
function toggleVisibility() {
|
|
27766
27910
|
$$invalidate(10, isVisible = !isVisible);
|
|
27767
|
-
$$invalidate(
|
|
27911
|
+
$$invalidate(13, type = isVisible ? 'text' : 'password');
|
|
27768
27912
|
}
|
|
27769
27913
|
|
|
27770
27914
|
$$self.$$set = $$props => {
|
|
27771
|
-
if ('callback' in $$props) $$invalidate(
|
|
27915
|
+
if ('callback' in $$props) $$invalidate(18, callback = $$props.callback);
|
|
27772
27916
|
if ('callbackMetadata' in $$props) $$invalidate(1, callbackMetadata = $$props.callbackMetadata);
|
|
27773
27917
|
if ('key' in $$props) $$invalidate(0, key = $$props.key);
|
|
27774
27918
|
if ('isInvalid' in $$props) $$invalidate(2, isInvalid = $$props.isInvalid);
|
|
@@ -27776,18 +27920,28 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
27776
27920
|
if ('style' in $$props) $$invalidate(4, style = $$props.style);
|
|
27777
27921
|
if ('showMessage' in $$props) $$invalidate(5, showMessage = $$props.showMessage);
|
|
27778
27922
|
if ('validationFailure' in $$props) $$invalidate(6, validationFailure = $$props.validationFailure);
|
|
27779
|
-
if ('$$scope' in $$props) $$invalidate(
|
|
27923
|
+
if ('$$scope' in $$props) $$invalidate(22, $$scope = $$props.$$scope);
|
|
27780
27924
|
};
|
|
27781
27925
|
|
|
27782
27926
|
$$self.$$.update = () => {
|
|
27783
|
-
if ($$self.$$.dirty & /*callback, callbackMetadata,
|
|
27927
|
+
if ($$self.$$.dirty & /*callback, callbackMetadata, savedValue, value, confirmValue*/ 1835138) {
|
|
27784
27928
|
{
|
|
27785
27929
|
$$invalidate(8, callbackType = callback.getType());
|
|
27786
27930
|
$$invalidate(0, key = callback?.payload?.input?.[0].name || `password-${callbackMetadata?.idx}`);
|
|
27787
|
-
$$invalidate(
|
|
27931
|
+
$$invalidate(12, textInputLabel = callback.getPrompt());
|
|
27788
27932
|
$$invalidate(7, value = callback?.getInputValue());
|
|
27789
27933
|
|
|
27790
|
-
|
|
27934
|
+
/**
|
|
27935
|
+
* `savedValue` represents what the user set after blur (local component state)
|
|
27936
|
+
* `value` represents what's in the callback (empties from AM response)
|
|
27937
|
+
*
|
|
27938
|
+
* This unique combination is what produces the most reliable reset flag
|
|
27939
|
+
*/
|
|
27940
|
+
$$invalidate(11, resetValue = !!savedValue && value === '');
|
|
27941
|
+
|
|
27942
|
+
/**
|
|
27943
|
+
* Only assign a boolean if the confirm input has an actual value.
|
|
27944
|
+
*/
|
|
27791
27945
|
$$invalidate(9, doPasswordsMatch = confirmValue !== undefined
|
|
27792
27946
|
? confirmValue === value
|
|
27793
27947
|
: undefined);
|
|
@@ -27807,6 +27961,7 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
27807
27961
|
callbackType,
|
|
27808
27962
|
doPasswordsMatch,
|
|
27809
27963
|
isVisible,
|
|
27964
|
+
resetValue,
|
|
27810
27965
|
textInputLabel,
|
|
27811
27966
|
type,
|
|
27812
27967
|
Input,
|
|
@@ -27815,6 +27970,7 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
27815
27970
|
toggleVisibility,
|
|
27816
27971
|
callback,
|
|
27817
27972
|
confirmValue,
|
|
27973
|
+
savedValue,
|
|
27818
27974
|
slots,
|
|
27819
27975
|
$$scope
|
|
27820
27976
|
];
|
|
@@ -27825,7 +27981,7 @@ class Base extends SvelteComponent {
|
|
|
27825
27981
|
super();
|
|
27826
27982
|
|
|
27827
27983
|
init(this, options, instance$p, create_fragment$p, safe_not_equal, {
|
|
27828
|
-
callback:
|
|
27984
|
+
callback: 18,
|
|
27829
27985
|
callbackMetadata: 1,
|
|
27830
27986
|
key: 0,
|
|
27831
27987
|
isInvalid: 2,
|
|
@@ -28517,7 +28673,7 @@ function get_each_context$5(ctx, list, i) {
|
|
|
28517
28673
|
}
|
|
28518
28674
|
|
|
28519
28675
|
// (66:56)
|
|
28520
|
-
function create_if_block_3$
|
|
28676
|
+
function create_if_block_3$5(ctx) {
|
|
28521
28677
|
let button;
|
|
28522
28678
|
let current;
|
|
28523
28679
|
|
|
@@ -28861,7 +29017,7 @@ function create_default_slot_1$6(ctx) {
|
|
|
28861
29017
|
let if_block;
|
|
28862
29018
|
let if_block_anchor;
|
|
28863
29019
|
let current;
|
|
28864
|
-
const if_block_creators = [create_if_block_1$7, create_if_block_2$6, create_if_block_3$
|
|
29020
|
+
const if_block_creators = [create_if_block_1$7, create_if_block_2$6, create_if_block_3$5];
|
|
28865
29021
|
const if_blocks = [];
|
|
28866
29022
|
|
|
28867
29023
|
function select_block_type(ctx, dirty) {
|
|
@@ -31569,7 +31725,7 @@ function create_if_block_5(ctx) {
|
|
|
31569
31725
|
}
|
|
31570
31726
|
|
|
31571
31727
|
// (126:52)
|
|
31572
|
-
function create_if_block_4(ctx) {
|
|
31728
|
+
function create_if_block_4$1(ctx) {
|
|
31573
31729
|
let kbacreate;
|
|
31574
31730
|
let current;
|
|
31575
31731
|
const kbacreate_spread_levels = [/*newProps*/ ctx[19]];
|
|
@@ -31612,7 +31768,7 @@ function create_if_block_4(ctx) {
|
|
|
31612
31768
|
}
|
|
31613
31769
|
|
|
31614
31770
|
// (120:54)
|
|
31615
|
-
function create_if_block_3$
|
|
31771
|
+
function create_if_block_3$4(ctx) {
|
|
31616
31772
|
let hiddenvalue;
|
|
31617
31773
|
let current;
|
|
31618
31774
|
const hiddenvalue_spread_levels = [/*newProps*/ ctx[19]];
|
|
@@ -31793,8 +31949,8 @@ function create_fragment$8(ctx) {
|
|
|
31793
31949
|
create_if_block$6,
|
|
31794
31950
|
create_if_block_1$5,
|
|
31795
31951
|
create_if_block_2$5,
|
|
31796
|
-
create_if_block_3$
|
|
31797
|
-
create_if_block_4,
|
|
31952
|
+
create_if_block_3$4,
|
|
31953
|
+
create_if_block_4$1,
|
|
31798
31954
|
create_if_block_5,
|
|
31799
31955
|
create_if_block_6,
|
|
31800
31956
|
create_if_block_7,
|
|
@@ -32027,12 +32183,12 @@ class Callback_mapper extends SvelteComponent {
|
|
|
32027
32183
|
|
|
32028
32184
|
function get_each_context$3(ctx, list, i) {
|
|
32029
32185
|
const child_ctx = ctx.slice();
|
|
32030
|
-
child_ctx[
|
|
32031
|
-
child_ctx[
|
|
32186
|
+
child_ctx[16] = list[i];
|
|
32187
|
+
child_ctx[18] = i;
|
|
32032
32188
|
return child_ctx;
|
|
32033
32189
|
}
|
|
32034
32190
|
|
|
32035
|
-
// (70:2) {#if form?.icon}
|
|
32191
|
+
// (70:2) {#if form?.icon && componentStyle !== 'inline'}
|
|
32036
32192
|
function create_if_block_2$4(ctx) {
|
|
32037
32193
|
let div;
|
|
32038
32194
|
let shieldicon;
|
|
@@ -32080,7 +32236,7 @@ function create_if_block_1$4(ctx) {
|
|
|
32080
32236
|
alert = new Alert({
|
|
32081
32237
|
props: {
|
|
32082
32238
|
id: formFailureMessageId,
|
|
32083
|
-
needsFocus: /*alertNeedsFocus*/ ctx[
|
|
32239
|
+
needsFocus: /*alertNeedsFocus*/ ctx[6],
|
|
32084
32240
|
type: "error",
|
|
32085
32241
|
$$slots: { default: [create_default_slot_2$3] },
|
|
32086
32242
|
$$scope: { ctx }
|
|
@@ -32097,9 +32253,9 @@ function create_if_block_1$4(ctx) {
|
|
|
32097
32253
|
},
|
|
32098
32254
|
p(ctx, dirty) {
|
|
32099
32255
|
const alert_changes = {};
|
|
32100
|
-
if (dirty & /*alertNeedsFocus*/
|
|
32256
|
+
if (dirty & /*alertNeedsFocus*/ 64) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[6];
|
|
32101
32257
|
|
|
32102
|
-
if (dirty & /*$$scope, formMessageKey, form*/
|
|
32258
|
+
if (dirty & /*$$scope, formMessageKey, form*/ 524420) {
|
|
32103
32259
|
alert_changes.$$scope = { dirty, ctx };
|
|
32104
32260
|
}
|
|
32105
32261
|
|
|
@@ -32122,7 +32278,7 @@ function create_if_block_1$4(ctx) {
|
|
|
32122
32278
|
|
|
32123
32279
|
// (87:4) <Alert id={formFailureMessageId} needsFocus={alertNeedsFocus} type="error">
|
|
32124
32280
|
function create_default_slot_2$3(ctx) {
|
|
32125
|
-
let t_value = interpolate(/*formMessageKey*/ ctx[
|
|
32281
|
+
let t_value = interpolate(/*formMessageKey*/ ctx[7], null, /*form*/ ctx[2]?.message) + "";
|
|
32126
32282
|
let t;
|
|
32127
32283
|
|
|
32128
32284
|
return {
|
|
@@ -32133,7 +32289,7 @@ function create_default_slot_2$3(ctx) {
|
|
|
32133
32289
|
insert(target, t, anchor);
|
|
32134
32290
|
},
|
|
32135
32291
|
p(ctx, dirty) {
|
|
32136
|
-
if (dirty & /*formMessageKey, form*/
|
|
32292
|
+
if (dirty & /*formMessageKey, form*/ 132 && t_value !== (t_value = interpolate(/*formMessageKey*/ ctx[7], null, /*form*/ ctx[2]?.message) + "")) set_data(t, t_value);
|
|
32137
32293
|
},
|
|
32138
32294
|
d(detaching) {
|
|
32139
32295
|
if (detaching) detach(t);
|
|
@@ -32149,11 +32305,11 @@ function create_each_block$3(ctx) {
|
|
|
32149
32305
|
callbackmapper = new Callback_mapper({
|
|
32150
32306
|
props: {
|
|
32151
32307
|
props: {
|
|
32152
|
-
callback: /*callback*/ ctx[
|
|
32153
|
-
callbackMetadata: /*metadata*/ ctx[
|
|
32154
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
32155
|
-
stepMetadata: /*metadata*/ ctx[
|
|
32156
|
-
style: /*$styleStore*/ ctx[
|
|
32308
|
+
callback: /*callback*/ ctx[16],
|
|
32309
|
+
callbackMetadata: /*metadata*/ ctx[4]?.callbacks[/*idx*/ ctx[18]],
|
|
32310
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[12],
|
|
32311
|
+
stepMetadata: /*metadata*/ ctx[4]?.step && { .../*metadata*/ ctx[4].step },
|
|
32312
|
+
style: /*$styleStore*/ ctx[11]
|
|
32157
32313
|
}
|
|
32158
32314
|
}
|
|
32159
32315
|
});
|
|
@@ -32169,12 +32325,12 @@ function create_each_block$3(ctx) {
|
|
|
32169
32325
|
p(ctx, dirty) {
|
|
32170
32326
|
const callbackmapper_changes = {};
|
|
32171
32327
|
|
|
32172
|
-
if (dirty & /*step, metadata, $styleStore*/
|
|
32173
|
-
callback: /*callback*/ ctx[
|
|
32174
|
-
callbackMetadata: /*metadata*/ ctx[
|
|
32175
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
32176
|
-
stepMetadata: /*metadata*/ ctx[
|
|
32177
|
-
style: /*$styleStore*/ ctx[
|
|
32328
|
+
if (dirty & /*step, metadata, $styleStore*/ 2096) callbackmapper_changes.props = {
|
|
32329
|
+
callback: /*callback*/ ctx[16],
|
|
32330
|
+
callbackMetadata: /*metadata*/ ctx[4]?.callbacks[/*idx*/ ctx[18]],
|
|
32331
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[12],
|
|
32332
|
+
stepMetadata: /*metadata*/ ctx[4]?.step && { .../*metadata*/ ctx[4].step },
|
|
32333
|
+
style: /*$styleStore*/ ctx[11]
|
|
32178
32334
|
};
|
|
32179
32335
|
|
|
32180
32336
|
callbackmapper.$set(callbackmapper_changes);
|
|
@@ -32201,7 +32357,7 @@ function create_if_block$5(ctx) {
|
|
|
32201
32357
|
|
|
32202
32358
|
button = new Button({
|
|
32203
32359
|
props: {
|
|
32204
|
-
busy: /*journey*/ ctx[
|
|
32360
|
+
busy: /*journey*/ ctx[3]?.loading,
|
|
32205
32361
|
style: "primary",
|
|
32206
32362
|
type: "submit",
|
|
32207
32363
|
width: "full",
|
|
@@ -32220,9 +32376,9 @@ function create_if_block$5(ctx) {
|
|
|
32220
32376
|
},
|
|
32221
32377
|
p(ctx, dirty) {
|
|
32222
32378
|
const button_changes = {};
|
|
32223
|
-
if (dirty & /*journey*/
|
|
32379
|
+
if (dirty & /*journey*/ 8) button_changes.busy = /*journey*/ ctx[3]?.loading;
|
|
32224
32380
|
|
|
32225
|
-
if (dirty & /*$$scope*/
|
|
32381
|
+
if (dirty & /*$$scope*/ 524288) {
|
|
32226
32382
|
button_changes.$$scope = { dirty, ctx };
|
|
32227
32383
|
}
|
|
32228
32384
|
|
|
@@ -32288,24 +32444,24 @@ function create_default_slot$5(ctx) {
|
|
|
32288
32444
|
let t5;
|
|
32289
32445
|
let backto;
|
|
32290
32446
|
let current;
|
|
32291
|
-
let if_block0 = /*form*/ ctx[
|
|
32447
|
+
let if_block0 = /*form*/ ctx[2]?.icon && /*componentStyle*/ ctx[1] !== 'inline' && create_if_block_2$4();
|
|
32292
32448
|
|
|
32293
32449
|
sanitize0 = new Server_strings({
|
|
32294
32450
|
props: {
|
|
32295
32451
|
html: true,
|
|
32296
|
-
string: /*step*/ ctx[
|
|
32452
|
+
string: /*step*/ ctx[5]?.getHeader() || ''
|
|
32297
32453
|
}
|
|
32298
32454
|
});
|
|
32299
32455
|
|
|
32300
32456
|
sanitize1 = new Server_strings({
|
|
32301
32457
|
props: {
|
|
32302
32458
|
html: true,
|
|
32303
|
-
string: /*step*/ ctx[
|
|
32459
|
+
string: /*step*/ ctx[5]?.getDescription() || ''
|
|
32304
32460
|
}
|
|
32305
32461
|
});
|
|
32306
32462
|
|
|
32307
|
-
let if_block1 = /*form*/ ctx[
|
|
32308
|
-
let each_value = /*step*/ ctx[
|
|
32463
|
+
let if_block1 = /*form*/ ctx[2]?.message && create_if_block_1$4(ctx);
|
|
32464
|
+
let each_value = /*step*/ ctx[5]?.callbacks;
|
|
32309
32465
|
let each_blocks = [];
|
|
32310
32466
|
|
|
32311
32467
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -32316,8 +32472,8 @@ function create_default_slot$5(ctx) {
|
|
|
32316
32472
|
each_blocks[i] = null;
|
|
32317
32473
|
});
|
|
32318
32474
|
|
|
32319
|
-
let if_block2 = (/*metadata*/ ctx[
|
|
32320
|
-
backto = new Back_to({ props: { journey: /*journey*/ ctx[
|
|
32475
|
+
let if_block2 = (/*metadata*/ ctx[4]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[4]?.step?.derived.isStepSelfSubmittable) && create_if_block$5(ctx);
|
|
32476
|
+
backto = new Back_to({ props: { journey: /*journey*/ ctx[3] } });
|
|
32321
32477
|
|
|
32322
32478
|
return {
|
|
32323
32479
|
c() {
|
|
@@ -32354,7 +32510,7 @@ function create_default_slot$5(ctx) {
|
|
|
32354
32510
|
append(header, t1);
|
|
32355
32511
|
append(header, p);
|
|
32356
32512
|
mount_component(sanitize1, p, null);
|
|
32357
|
-
/*header_binding*/ ctx[
|
|
32513
|
+
/*header_binding*/ ctx[14](header);
|
|
32358
32514
|
insert(target, t2, anchor);
|
|
32359
32515
|
if (if_block1) if_block1.m(target, anchor);
|
|
32360
32516
|
insert(target, t3, anchor);
|
|
@@ -32370,9 +32526,9 @@ function create_default_slot$5(ctx) {
|
|
|
32370
32526
|
current = true;
|
|
32371
32527
|
},
|
|
32372
32528
|
p(ctx, dirty) {
|
|
32373
|
-
if (/*form*/ ctx[
|
|
32529
|
+
if (/*form*/ ctx[2]?.icon && /*componentStyle*/ ctx[1] !== 'inline') {
|
|
32374
32530
|
if (if_block0) {
|
|
32375
|
-
if (dirty & /*form*/
|
|
32531
|
+
if (dirty & /*form, componentStyle*/ 6) {
|
|
32376
32532
|
transition_in(if_block0, 1);
|
|
32377
32533
|
}
|
|
32378
32534
|
} else {
|
|
@@ -32392,17 +32548,17 @@ function create_default_slot$5(ctx) {
|
|
|
32392
32548
|
}
|
|
32393
32549
|
|
|
32394
32550
|
const sanitize0_changes = {};
|
|
32395
|
-
if (dirty & /*step*/
|
|
32551
|
+
if (dirty & /*step*/ 32) sanitize0_changes.string = /*step*/ ctx[5]?.getHeader() || '';
|
|
32396
32552
|
sanitize0.$set(sanitize0_changes);
|
|
32397
32553
|
const sanitize1_changes = {};
|
|
32398
|
-
if (dirty & /*step*/
|
|
32554
|
+
if (dirty & /*step*/ 32) sanitize1_changes.string = /*step*/ ctx[5]?.getDescription() || '';
|
|
32399
32555
|
sanitize1.$set(sanitize1_changes);
|
|
32400
32556
|
|
|
32401
|
-
if (/*form*/ ctx[
|
|
32557
|
+
if (/*form*/ ctx[2]?.message) {
|
|
32402
32558
|
if (if_block1) {
|
|
32403
32559
|
if_block1.p(ctx, dirty);
|
|
32404
32560
|
|
|
32405
|
-
if (dirty & /*form*/
|
|
32561
|
+
if (dirty & /*form*/ 4) {
|
|
32406
32562
|
transition_in(if_block1, 1);
|
|
32407
32563
|
}
|
|
32408
32564
|
} else {
|
|
@@ -32421,8 +32577,8 @@ function create_default_slot$5(ctx) {
|
|
|
32421
32577
|
check_outros();
|
|
32422
32578
|
}
|
|
32423
32579
|
|
|
32424
|
-
if (dirty & /*step, metadata, determineSubmission, $styleStore*/
|
|
32425
|
-
each_value = /*step*/ ctx[
|
|
32580
|
+
if (dirty & /*step, metadata, determineSubmission, $styleStore*/ 6192) {
|
|
32581
|
+
each_value = /*step*/ ctx[5]?.callbacks;
|
|
32426
32582
|
let i;
|
|
32427
32583
|
|
|
32428
32584
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -32448,11 +32604,11 @@ function create_default_slot$5(ctx) {
|
|
|
32448
32604
|
check_outros();
|
|
32449
32605
|
}
|
|
32450
32606
|
|
|
32451
|
-
if (/*metadata*/ ctx[
|
|
32607
|
+
if (/*metadata*/ ctx[4]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[4]?.step?.derived.isStepSelfSubmittable) {
|
|
32452
32608
|
if (if_block2) {
|
|
32453
32609
|
if_block2.p(ctx, dirty);
|
|
32454
32610
|
|
|
32455
|
-
if (dirty & /*metadata*/
|
|
32611
|
+
if (dirty & /*metadata*/ 16) {
|
|
32456
32612
|
transition_in(if_block2, 1);
|
|
32457
32613
|
}
|
|
32458
32614
|
} else {
|
|
@@ -32472,7 +32628,7 @@ function create_default_slot$5(ctx) {
|
|
|
32472
32628
|
}
|
|
32473
32629
|
|
|
32474
32630
|
const backto_changes = {};
|
|
32475
|
-
if (dirty & /*journey*/
|
|
32631
|
+
if (dirty & /*journey*/ 8) backto_changes.journey = /*journey*/ ctx[3];
|
|
32476
32632
|
backto.$set(backto_changes);
|
|
32477
32633
|
},
|
|
32478
32634
|
i(local) {
|
|
@@ -32511,7 +32667,7 @@ function create_default_slot$5(ctx) {
|
|
|
32511
32667
|
if (detaching) detach(header);
|
|
32512
32668
|
destroy_component(sanitize0);
|
|
32513
32669
|
destroy_component(sanitize1);
|
|
32514
|
-
/*header_binding*/ ctx[
|
|
32670
|
+
/*header_binding*/ ctx[14](null);
|
|
32515
32671
|
if (detaching) detach(t2);
|
|
32516
32672
|
if (if_block1) if_block1.d(detaching);
|
|
32517
32673
|
if (detaching) detach(t3);
|
|
@@ -32530,14 +32686,14 @@ function create_fragment$7(ctx) {
|
|
|
32530
32686
|
let current;
|
|
32531
32687
|
|
|
32532
32688
|
function form_1_formEl_binding(value) {
|
|
32533
|
-
/*form_1_formEl_binding*/ ctx[
|
|
32689
|
+
/*form_1_formEl_binding*/ ctx[15](value);
|
|
32534
32690
|
}
|
|
32535
32691
|
|
|
32536
32692
|
let form_1_props = {
|
|
32537
|
-
ariaDescribedBy: /*formAriaDescriptor*/ ctx[
|
|
32693
|
+
ariaDescribedBy: /*formAriaDescriptor*/ ctx[8],
|
|
32538
32694
|
id: formElementId,
|
|
32539
|
-
needsFocus: /*formNeedsFocus*/ ctx[
|
|
32540
|
-
onSubmitWhenValid: /*submitFormWrapper*/ ctx[
|
|
32695
|
+
needsFocus: /*formNeedsFocus*/ ctx[9],
|
|
32696
|
+
onSubmitWhenValid: /*submitFormWrapper*/ ctx[13],
|
|
32541
32697
|
$$slots: { default: [create_default_slot$5] },
|
|
32542
32698
|
$$scope: { ctx }
|
|
32543
32699
|
};
|
|
@@ -32559,10 +32715,10 @@ function create_fragment$7(ctx) {
|
|
|
32559
32715
|
},
|
|
32560
32716
|
p(ctx, [dirty]) {
|
|
32561
32717
|
const form_1_changes = {};
|
|
32562
|
-
if (dirty & /*formAriaDescriptor*/
|
|
32563
|
-
if (dirty & /*formNeedsFocus*/
|
|
32718
|
+
if (dirty & /*formAriaDescriptor*/ 256) form_1_changes.ariaDescribedBy = /*formAriaDescriptor*/ ctx[8];
|
|
32719
|
+
if (dirty & /*formNeedsFocus*/ 512) form_1_changes.needsFocus = /*formNeedsFocus*/ ctx[9];
|
|
32564
32720
|
|
|
32565
|
-
if (dirty & /*$$scope, journey, metadata, step, $styleStore, alertNeedsFocus, formMessageKey, form, linkWrapper*/
|
|
32721
|
+
if (dirty & /*$$scope, journey, metadata, step, $styleStore, alertNeedsFocus, formMessageKey, form, linkWrapper, componentStyle*/ 527614) {
|
|
32566
32722
|
form_1_changes.$$scope = { dirty, ctx };
|
|
32567
32723
|
}
|
|
32568
32724
|
|
|
@@ -32595,7 +32751,8 @@ const formElementId = 'genericStepForm';
|
|
|
32595
32751
|
|
|
32596
32752
|
function instance$7($$self, $$props, $$invalidate) {
|
|
32597
32753
|
let $styleStore;
|
|
32598
|
-
component_subscribe($$self, styleStore, $$value => $$invalidate(
|
|
32754
|
+
component_subscribe($$self, styleStore, $$value => $$invalidate(11, $styleStore = $$value));
|
|
32755
|
+
let { componentStyle } = $$props;
|
|
32599
32756
|
let { form } = $$props;
|
|
32600
32757
|
let { formEl = null } = $$props;
|
|
32601
32758
|
let { journey } = $$props;
|
|
@@ -32617,20 +32774,20 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
32617
32774
|
}
|
|
32618
32775
|
|
|
32619
32776
|
function submitFormWrapper() {
|
|
32620
|
-
$$invalidate(
|
|
32621
|
-
$$invalidate(
|
|
32777
|
+
$$invalidate(6, alertNeedsFocus = false);
|
|
32778
|
+
$$invalidate(9, formNeedsFocus = false);
|
|
32622
32779
|
form?.submit();
|
|
32623
32780
|
}
|
|
32624
32781
|
|
|
32625
32782
|
afterUpdate(() => {
|
|
32626
32783
|
if (form?.message) {
|
|
32627
|
-
$$invalidate(
|
|
32628
|
-
$$invalidate(
|
|
32629
|
-
$$invalidate(
|
|
32784
|
+
$$invalidate(8, formAriaDescriptor = formFailureMessageId);
|
|
32785
|
+
$$invalidate(6, alertNeedsFocus = true);
|
|
32786
|
+
$$invalidate(9, formNeedsFocus = false);
|
|
32630
32787
|
} else {
|
|
32631
|
-
$$invalidate(
|
|
32632
|
-
$$invalidate(
|
|
32633
|
-
$$invalidate(
|
|
32788
|
+
$$invalidate(8, formAriaDescriptor = formHeaderId);
|
|
32789
|
+
$$invalidate(6, alertNeedsFocus = false);
|
|
32790
|
+
$$invalidate(9, formNeedsFocus = true);
|
|
32634
32791
|
}
|
|
32635
32792
|
});
|
|
32636
32793
|
|
|
@@ -32639,7 +32796,7 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
32639
32796
|
function header_binding($$value) {
|
|
32640
32797
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
32641
32798
|
linkWrapper = $$value;
|
|
32642
|
-
$$invalidate(
|
|
32799
|
+
$$invalidate(10, linkWrapper);
|
|
32643
32800
|
});
|
|
32644
32801
|
}
|
|
32645
32802
|
|
|
@@ -32649,24 +32806,26 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
32649
32806
|
}
|
|
32650
32807
|
|
|
32651
32808
|
$$self.$$set = $$props => {
|
|
32652
|
-
if ('
|
|
32809
|
+
if ('componentStyle' in $$props) $$invalidate(1, componentStyle = $$props.componentStyle);
|
|
32810
|
+
if ('form' in $$props) $$invalidate(2, form = $$props.form);
|
|
32653
32811
|
if ('formEl' in $$props) $$invalidate(0, formEl = $$props.formEl);
|
|
32654
|
-
if ('journey' in $$props) $$invalidate(
|
|
32655
|
-
if ('metadata' in $$props) $$invalidate(
|
|
32656
|
-
if ('step' in $$props) $$invalidate(
|
|
32812
|
+
if ('journey' in $$props) $$invalidate(3, journey = $$props.journey);
|
|
32813
|
+
if ('metadata' in $$props) $$invalidate(4, metadata = $$props.metadata);
|
|
32814
|
+
if ('step' in $$props) $$invalidate(5, step = $$props.step);
|
|
32657
32815
|
};
|
|
32658
32816
|
|
|
32659
32817
|
$$self.$$.update = () => {
|
|
32660
|
-
if ($$self.$$.dirty & /*step, form*/
|
|
32818
|
+
if ($$self.$$.dirty & /*step, form*/ 36) {
|
|
32661
32819
|
{
|
|
32662
32820
|
shouldRedirectFromStep(step) && FRAuth$1.redirect(step);
|
|
32663
|
-
$$invalidate(
|
|
32821
|
+
$$invalidate(7, formMessageKey = convertStringToKey(form?.message));
|
|
32664
32822
|
}
|
|
32665
32823
|
}
|
|
32666
32824
|
};
|
|
32667
32825
|
|
|
32668
32826
|
return [
|
|
32669
32827
|
formEl,
|
|
32828
|
+
componentStyle,
|
|
32670
32829
|
form,
|
|
32671
32830
|
journey,
|
|
32672
32831
|
metadata,
|
|
@@ -32689,11 +32848,12 @@ class Generic extends SvelteComponent {
|
|
|
32689
32848
|
super();
|
|
32690
32849
|
|
|
32691
32850
|
init(this, options, instance$7, create_fragment$7, safe_not_equal, {
|
|
32692
|
-
|
|
32851
|
+
componentStyle: 1,
|
|
32852
|
+
form: 2,
|
|
32693
32853
|
formEl: 0,
|
|
32694
|
-
journey:
|
|
32695
|
-
metadata:
|
|
32696
|
-
step:
|
|
32854
|
+
journey: 3,
|
|
32855
|
+
metadata: 4,
|
|
32856
|
+
step: 5
|
|
32697
32857
|
});
|
|
32698
32858
|
}
|
|
32699
32859
|
}
|
|
@@ -32806,13 +32966,101 @@ class Key_icon extends SvelteComponent {
|
|
|
32806
32966
|
|
|
32807
32967
|
function get_each_context$2(ctx, list, i) {
|
|
32808
32968
|
const child_ctx = ctx.slice();
|
|
32809
|
-
child_ctx[
|
|
32810
|
-
child_ctx[
|
|
32969
|
+
child_ctx[11] = list[i];
|
|
32970
|
+
child_ctx[13] = i;
|
|
32811
32971
|
return child_ctx;
|
|
32812
32972
|
}
|
|
32813
32973
|
|
|
32814
|
-
// (
|
|
32974
|
+
// (38:2) {#if componentStyle !== 'inline'}
|
|
32815
32975
|
function create_if_block_2$3(ctx) {
|
|
32976
|
+
let t0;
|
|
32977
|
+
let h1;
|
|
32978
|
+
let t1;
|
|
32979
|
+
let t2;
|
|
32980
|
+
let p;
|
|
32981
|
+
let t3;
|
|
32982
|
+
let current;
|
|
32983
|
+
let if_block = /*form*/ ctx[2]?.icon && create_if_block_3$3();
|
|
32984
|
+
|
|
32985
|
+
t1 = new Locale_strings({
|
|
32986
|
+
props: { key: "twoFactorAuthentication" }
|
|
32987
|
+
});
|
|
32988
|
+
|
|
32989
|
+
t3 = new Locale_strings({
|
|
32990
|
+
props: { key: "useTheAuthenticatorAppOnYourPhone" }
|
|
32991
|
+
});
|
|
32992
|
+
|
|
32993
|
+
return {
|
|
32994
|
+
c() {
|
|
32995
|
+
if (if_block) if_block.c();
|
|
32996
|
+
t0 = space();
|
|
32997
|
+
h1 = element("h1");
|
|
32998
|
+
create_component(t1.$$.fragment);
|
|
32999
|
+
t2 = space();
|
|
33000
|
+
p = element("p");
|
|
33001
|
+
create_component(t3.$$.fragment);
|
|
33002
|
+
attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
|
|
33003
|
+
attr(p, "class", "tw_text-center tw_text-sm tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light");
|
|
33004
|
+
},
|
|
33005
|
+
m(target, anchor) {
|
|
33006
|
+
if (if_block) if_block.m(target, anchor);
|
|
33007
|
+
insert(target, t0, anchor);
|
|
33008
|
+
insert(target, h1, anchor);
|
|
33009
|
+
mount_component(t1, h1, null);
|
|
33010
|
+
insert(target, t2, anchor);
|
|
33011
|
+
insert(target, p, anchor);
|
|
33012
|
+
mount_component(t3, p, null);
|
|
33013
|
+
current = true;
|
|
33014
|
+
},
|
|
33015
|
+
p(ctx, dirty) {
|
|
33016
|
+
if (/*form*/ ctx[2]?.icon) {
|
|
33017
|
+
if (if_block) {
|
|
33018
|
+
if (dirty & /*form*/ 4) {
|
|
33019
|
+
transition_in(if_block, 1);
|
|
33020
|
+
}
|
|
33021
|
+
} else {
|
|
33022
|
+
if_block = create_if_block_3$3();
|
|
33023
|
+
if_block.c();
|
|
33024
|
+
transition_in(if_block, 1);
|
|
33025
|
+
if_block.m(t0.parentNode, t0);
|
|
33026
|
+
}
|
|
33027
|
+
} else if (if_block) {
|
|
33028
|
+
group_outros();
|
|
33029
|
+
|
|
33030
|
+
transition_out(if_block, 1, 1, () => {
|
|
33031
|
+
if_block = null;
|
|
33032
|
+
});
|
|
33033
|
+
|
|
33034
|
+
check_outros();
|
|
33035
|
+
}
|
|
33036
|
+
},
|
|
33037
|
+
i(local) {
|
|
33038
|
+
if (current) return;
|
|
33039
|
+
transition_in(if_block);
|
|
33040
|
+
transition_in(t1.$$.fragment, local);
|
|
33041
|
+
transition_in(t3.$$.fragment, local);
|
|
33042
|
+
current = true;
|
|
33043
|
+
},
|
|
33044
|
+
o(local) {
|
|
33045
|
+
transition_out(if_block);
|
|
33046
|
+
transition_out(t1.$$.fragment, local);
|
|
33047
|
+
transition_out(t3.$$.fragment, local);
|
|
33048
|
+
current = false;
|
|
33049
|
+
},
|
|
33050
|
+
d(detaching) {
|
|
33051
|
+
if (if_block) if_block.d(detaching);
|
|
33052
|
+
if (detaching) detach(t0);
|
|
33053
|
+
if (detaching) detach(h1);
|
|
33054
|
+
destroy_component(t1);
|
|
33055
|
+
if (detaching) detach(t2);
|
|
33056
|
+
if (detaching) detach(p);
|
|
33057
|
+
destroy_component(t3);
|
|
33058
|
+
}
|
|
33059
|
+
};
|
|
33060
|
+
}
|
|
33061
|
+
|
|
33062
|
+
// (39:4) {#if form?.icon}
|
|
33063
|
+
function create_if_block_3$3(ctx) {
|
|
32816
33064
|
let div;
|
|
32817
33065
|
let keyicon;
|
|
32818
33066
|
let current;
|
|
@@ -32851,7 +33099,7 @@ function create_if_block_2$3(ctx) {
|
|
|
32851
33099
|
};
|
|
32852
33100
|
}
|
|
32853
33101
|
|
|
32854
|
-
// (
|
|
33102
|
+
// (54:2) {#if form?.message}
|
|
32855
33103
|
function create_if_block_1$3(ctx) {
|
|
32856
33104
|
let alert;
|
|
32857
33105
|
let current;
|
|
@@ -32859,7 +33107,7 @@ function create_if_block_1$3(ctx) {
|
|
|
32859
33107
|
alert = new Alert({
|
|
32860
33108
|
props: {
|
|
32861
33109
|
id: "formFailureMessageAlert",
|
|
32862
|
-
needsFocus: /*alertNeedsFocus*/ ctx[
|
|
33110
|
+
needsFocus: /*alertNeedsFocus*/ ctx[6],
|
|
32863
33111
|
type: "error",
|
|
32864
33112
|
$$slots: { default: [create_default_slot_2$2] },
|
|
32865
33113
|
$$scope: { ctx }
|
|
@@ -32876,9 +33124,9 @@ function create_if_block_1$3(ctx) {
|
|
|
32876
33124
|
},
|
|
32877
33125
|
p(ctx, dirty) {
|
|
32878
33126
|
const alert_changes = {};
|
|
32879
|
-
if (dirty & /*alertNeedsFocus*/
|
|
33127
|
+
if (dirty & /*alertNeedsFocus*/ 64) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[6];
|
|
32880
33128
|
|
|
32881
|
-
if (dirty & /*$$scope, formMessageKey, form*/
|
|
33129
|
+
if (dirty & /*$$scope, formMessageKey, form*/ 16516) {
|
|
32882
33130
|
alert_changes.$$scope = { dirty, ctx };
|
|
32883
33131
|
}
|
|
32884
33132
|
|
|
@@ -32899,9 +33147,9 @@ function create_if_block_1$3(ctx) {
|
|
|
32899
33147
|
};
|
|
32900
33148
|
}
|
|
32901
33149
|
|
|
32902
|
-
// (
|
|
33150
|
+
// (55:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
|
|
32903
33151
|
function create_default_slot_2$2(ctx) {
|
|
32904
|
-
let t_value = interpolate(/*formMessageKey*/ ctx[
|
|
33152
|
+
let t_value = interpolate(/*formMessageKey*/ ctx[7], null, /*form*/ ctx[2]?.message) + "";
|
|
32905
33153
|
let t;
|
|
32906
33154
|
|
|
32907
33155
|
return {
|
|
@@ -32912,7 +33160,7 @@ function create_default_slot_2$2(ctx) {
|
|
|
32912
33160
|
insert(target, t, anchor);
|
|
32913
33161
|
},
|
|
32914
33162
|
p(ctx, dirty) {
|
|
32915
|
-
if (dirty & /*formMessageKey, form*/
|
|
33163
|
+
if (dirty & /*formMessageKey, form*/ 132 && t_value !== (t_value = interpolate(/*formMessageKey*/ ctx[7], null, /*form*/ ctx[2]?.message) + "")) set_data(t, t_value);
|
|
32916
33164
|
},
|
|
32917
33165
|
d(detaching) {
|
|
32918
33166
|
if (detaching) detach(t);
|
|
@@ -32920,7 +33168,7 @@ function create_default_slot_2$2(ctx) {
|
|
|
32920
33168
|
};
|
|
32921
33169
|
}
|
|
32922
33170
|
|
|
32923
|
-
// (
|
|
33171
|
+
// (60:2) {#each step?.callbacks as callback, idx}
|
|
32924
33172
|
function create_each_block$2(ctx) {
|
|
32925
33173
|
let callbackmapper;
|
|
32926
33174
|
let current;
|
|
@@ -32928,11 +33176,11 @@ function create_each_block$2(ctx) {
|
|
|
32928
33176
|
callbackmapper = new Callback_mapper({
|
|
32929
33177
|
props: {
|
|
32930
33178
|
props: {
|
|
32931
|
-
callback: /*callback*/ ctx[
|
|
32932
|
-
callbackMetadata: /*metadata*/ ctx[
|
|
32933
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
32934
|
-
stepMetadata: /*metadata*/ ctx[
|
|
32935
|
-
style: /*$style*/ ctx[
|
|
33179
|
+
callback: /*callback*/ ctx[11],
|
|
33180
|
+
callbackMetadata: /*metadata*/ ctx[4]?.callbacks[/*idx*/ ctx[13]],
|
|
33181
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[9],
|
|
33182
|
+
stepMetadata: /*metadata*/ ctx[4]?.step && { .../*metadata*/ ctx[4].step },
|
|
33183
|
+
style: /*$style*/ ctx[8]
|
|
32936
33184
|
}
|
|
32937
33185
|
}
|
|
32938
33186
|
});
|
|
@@ -32948,12 +33196,12 @@ function create_each_block$2(ctx) {
|
|
|
32948
33196
|
p(ctx, dirty) {
|
|
32949
33197
|
const callbackmapper_changes = {};
|
|
32950
33198
|
|
|
32951
|
-
if (dirty & /*step, metadata, $style*/
|
|
32952
|
-
callback: /*callback*/ ctx[
|
|
32953
|
-
callbackMetadata: /*metadata*/ ctx[
|
|
32954
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
32955
|
-
stepMetadata: /*metadata*/ ctx[
|
|
32956
|
-
style: /*$style*/ ctx[
|
|
33199
|
+
if (dirty & /*step, metadata, $style*/ 304) callbackmapper_changes.props = {
|
|
33200
|
+
callback: /*callback*/ ctx[11],
|
|
33201
|
+
callbackMetadata: /*metadata*/ ctx[4]?.callbacks[/*idx*/ ctx[13]],
|
|
33202
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[9],
|
|
33203
|
+
stepMetadata: /*metadata*/ ctx[4]?.step && { .../*metadata*/ ctx[4].step },
|
|
33204
|
+
style: /*$style*/ ctx[8]
|
|
32957
33205
|
};
|
|
32958
33206
|
|
|
32959
33207
|
callbackmapper.$set(callbackmapper_changes);
|
|
@@ -32973,14 +33221,14 @@ function create_each_block$2(ctx) {
|
|
|
32973
33221
|
};
|
|
32974
33222
|
}
|
|
32975
33223
|
|
|
32976
|
-
// (
|
|
33224
|
+
// (72:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
|
|
32977
33225
|
function create_if_block$4(ctx) {
|
|
32978
33226
|
let button;
|
|
32979
33227
|
let current;
|
|
32980
33228
|
|
|
32981
33229
|
button = new Button({
|
|
32982
33230
|
props: {
|
|
32983
|
-
busy: /*journey*/ ctx[
|
|
33231
|
+
busy: /*journey*/ ctx[3]?.loading,
|
|
32984
33232
|
style: "primary",
|
|
32985
33233
|
type: "submit",
|
|
32986
33234
|
width: "full",
|
|
@@ -32999,9 +33247,9 @@ function create_if_block$4(ctx) {
|
|
|
32999
33247
|
},
|
|
33000
33248
|
p(ctx, dirty) {
|
|
33001
33249
|
const button_changes = {};
|
|
33002
|
-
if (dirty & /*journey*/
|
|
33250
|
+
if (dirty & /*journey*/ 8) button_changes.busy = /*journey*/ ctx[3]?.loading;
|
|
33003
33251
|
|
|
33004
|
-
if (dirty & /*$$scope*/
|
|
33252
|
+
if (dirty & /*$$scope*/ 16384) {
|
|
33005
33253
|
button_changes.$$scope = { dirty, ctx };
|
|
33006
33254
|
}
|
|
33007
33255
|
|
|
@@ -33022,7 +33270,7 @@ function create_if_block$4(ctx) {
|
|
|
33022
33270
|
};
|
|
33023
33271
|
}
|
|
33024
33272
|
|
|
33025
|
-
// (
|
|
33273
|
+
// (73:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
|
|
33026
33274
|
function create_default_slot_1$3(ctx) {
|
|
33027
33275
|
let t;
|
|
33028
33276
|
let current;
|
|
@@ -33052,31 +33300,16 @@ function create_default_slot_1$3(ctx) {
|
|
|
33052
33300
|
};
|
|
33053
33301
|
}
|
|
33054
33302
|
|
|
33055
|
-
// (
|
|
33303
|
+
// (37:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
|
|
33056
33304
|
function create_default_slot$4(ctx) {
|
|
33057
33305
|
let t0;
|
|
33058
|
-
let h1;
|
|
33059
33306
|
let t1;
|
|
33060
33307
|
let t2;
|
|
33061
|
-
let p;
|
|
33062
|
-
let t3;
|
|
33063
|
-
let t4;
|
|
33064
|
-
let t5;
|
|
33065
|
-
let t6;
|
|
33066
33308
|
let if_block2_anchor;
|
|
33067
33309
|
let current;
|
|
33068
|
-
let if_block0 = /*
|
|
33069
|
-
|
|
33070
|
-
|
|
33071
|
-
props: { key: "twoFactorAuthentication" }
|
|
33072
|
-
});
|
|
33073
|
-
|
|
33074
|
-
t3 = new Locale_strings({
|
|
33075
|
-
props: { key: "useTheAuthenticatorAppOnYourPhone" }
|
|
33076
|
-
});
|
|
33077
|
-
|
|
33078
|
-
let if_block1 = /*form*/ ctx[1]?.message && create_if_block_1$3(ctx);
|
|
33079
|
-
let each_value = /*step*/ ctx[4]?.callbacks;
|
|
33310
|
+
let if_block0 = /*componentStyle*/ ctx[1] !== 'inline' && create_if_block_2$3(ctx);
|
|
33311
|
+
let if_block1 = /*form*/ ctx[2]?.message && create_if_block_1$3(ctx);
|
|
33312
|
+
let each_value = /*step*/ ctx[5]?.callbacks;
|
|
33080
33313
|
let each_blocks = [];
|
|
33081
33314
|
|
|
33082
33315
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -33087,60 +33320,48 @@ function create_default_slot$4(ctx) {
|
|
|
33087
33320
|
each_blocks[i] = null;
|
|
33088
33321
|
});
|
|
33089
33322
|
|
|
33090
|
-
let if_block2 = (/*metadata*/ ctx[
|
|
33323
|
+
let if_block2 = (/*metadata*/ ctx[4]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[4]?.step?.derived.isStepSelfSubmittable) && create_if_block$4(ctx);
|
|
33091
33324
|
|
|
33092
33325
|
return {
|
|
33093
33326
|
c() {
|
|
33094
33327
|
if (if_block0) if_block0.c();
|
|
33095
33328
|
t0 = space();
|
|
33096
|
-
h1 = element("h1");
|
|
33097
|
-
create_component(t1.$$.fragment);
|
|
33098
|
-
t2 = space();
|
|
33099
|
-
p = element("p");
|
|
33100
|
-
create_component(t3.$$.fragment);
|
|
33101
|
-
t4 = space();
|
|
33102
33329
|
if (if_block1) if_block1.c();
|
|
33103
|
-
|
|
33330
|
+
t1 = space();
|
|
33104
33331
|
|
|
33105
33332
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
33106
33333
|
each_blocks[i].c();
|
|
33107
33334
|
}
|
|
33108
33335
|
|
|
33109
|
-
|
|
33336
|
+
t2 = space();
|
|
33110
33337
|
if (if_block2) if_block2.c();
|
|
33111
33338
|
if_block2_anchor = empty();
|
|
33112
|
-
attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
|
|
33113
|
-
attr(p, "class", "tw_text-center tw_text-sm tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light");
|
|
33114
33339
|
},
|
|
33115
33340
|
m(target, anchor) {
|
|
33116
33341
|
if (if_block0) if_block0.m(target, anchor);
|
|
33117
33342
|
insert(target, t0, anchor);
|
|
33118
|
-
insert(target, h1, anchor);
|
|
33119
|
-
mount_component(t1, h1, null);
|
|
33120
|
-
insert(target, t2, anchor);
|
|
33121
|
-
insert(target, p, anchor);
|
|
33122
|
-
mount_component(t3, p, null);
|
|
33123
|
-
insert(target, t4, anchor);
|
|
33124
33343
|
if (if_block1) if_block1.m(target, anchor);
|
|
33125
|
-
insert(target,
|
|
33344
|
+
insert(target, t1, anchor);
|
|
33126
33345
|
|
|
33127
33346
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
33128
33347
|
each_blocks[i].m(target, anchor);
|
|
33129
33348
|
}
|
|
33130
33349
|
|
|
33131
|
-
insert(target,
|
|
33350
|
+
insert(target, t2, anchor);
|
|
33132
33351
|
if (if_block2) if_block2.m(target, anchor);
|
|
33133
33352
|
insert(target, if_block2_anchor, anchor);
|
|
33134
33353
|
current = true;
|
|
33135
33354
|
},
|
|
33136
33355
|
p(ctx, dirty) {
|
|
33137
|
-
if (/*
|
|
33356
|
+
if (/*componentStyle*/ ctx[1] !== 'inline') {
|
|
33138
33357
|
if (if_block0) {
|
|
33139
|
-
|
|
33358
|
+
if_block0.p(ctx, dirty);
|
|
33359
|
+
|
|
33360
|
+
if (dirty & /*componentStyle*/ 2) {
|
|
33140
33361
|
transition_in(if_block0, 1);
|
|
33141
33362
|
}
|
|
33142
33363
|
} else {
|
|
33143
|
-
if_block0 = create_if_block_2$3();
|
|
33364
|
+
if_block0 = create_if_block_2$3(ctx);
|
|
33144
33365
|
if_block0.c();
|
|
33145
33366
|
transition_in(if_block0, 1);
|
|
33146
33367
|
if_block0.m(t0.parentNode, t0);
|
|
@@ -33155,18 +33376,18 @@ function create_default_slot$4(ctx) {
|
|
|
33155
33376
|
check_outros();
|
|
33156
33377
|
}
|
|
33157
33378
|
|
|
33158
|
-
if (/*form*/ ctx[
|
|
33379
|
+
if (/*form*/ ctx[2]?.message) {
|
|
33159
33380
|
if (if_block1) {
|
|
33160
33381
|
if_block1.p(ctx, dirty);
|
|
33161
33382
|
|
|
33162
|
-
if (dirty & /*form*/
|
|
33383
|
+
if (dirty & /*form*/ 4) {
|
|
33163
33384
|
transition_in(if_block1, 1);
|
|
33164
33385
|
}
|
|
33165
33386
|
} else {
|
|
33166
33387
|
if_block1 = create_if_block_1$3(ctx);
|
|
33167
33388
|
if_block1.c();
|
|
33168
33389
|
transition_in(if_block1, 1);
|
|
33169
|
-
if_block1.m(
|
|
33390
|
+
if_block1.m(t1.parentNode, t1);
|
|
33170
33391
|
}
|
|
33171
33392
|
} else if (if_block1) {
|
|
33172
33393
|
group_outros();
|
|
@@ -33178,8 +33399,8 @@ function create_default_slot$4(ctx) {
|
|
|
33178
33399
|
check_outros();
|
|
33179
33400
|
}
|
|
33180
33401
|
|
|
33181
|
-
if (dirty & /*step, metadata, determineSubmission, $style*/
|
|
33182
|
-
each_value = /*step*/ ctx[
|
|
33402
|
+
if (dirty & /*step, metadata, determineSubmission, $style*/ 816) {
|
|
33403
|
+
each_value = /*step*/ ctx[5]?.callbacks;
|
|
33183
33404
|
let i;
|
|
33184
33405
|
|
|
33185
33406
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -33192,7 +33413,7 @@ function create_default_slot$4(ctx) {
|
|
|
33192
33413
|
each_blocks[i] = create_each_block$2(child_ctx);
|
|
33193
33414
|
each_blocks[i].c();
|
|
33194
33415
|
transition_in(each_blocks[i], 1);
|
|
33195
|
-
each_blocks[i].m(
|
|
33416
|
+
each_blocks[i].m(t2.parentNode, t2);
|
|
33196
33417
|
}
|
|
33197
33418
|
}
|
|
33198
33419
|
|
|
@@ -33205,11 +33426,11 @@ function create_default_slot$4(ctx) {
|
|
|
33205
33426
|
check_outros();
|
|
33206
33427
|
}
|
|
33207
33428
|
|
|
33208
|
-
if (/*metadata*/ ctx[
|
|
33429
|
+
if (/*metadata*/ ctx[4]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[4]?.step?.derived.isStepSelfSubmittable) {
|
|
33209
33430
|
if (if_block2) {
|
|
33210
33431
|
if_block2.p(ctx, dirty);
|
|
33211
33432
|
|
|
33212
|
-
if (dirty & /*metadata*/
|
|
33433
|
+
if (dirty & /*metadata*/ 16) {
|
|
33213
33434
|
transition_in(if_block2, 1);
|
|
33214
33435
|
}
|
|
33215
33436
|
} else {
|
|
@@ -33231,8 +33452,6 @@ function create_default_slot$4(ctx) {
|
|
|
33231
33452
|
i(local) {
|
|
33232
33453
|
if (current) return;
|
|
33233
33454
|
transition_in(if_block0);
|
|
33234
|
-
transition_in(t1.$$.fragment, local);
|
|
33235
|
-
transition_in(t3.$$.fragment, local);
|
|
33236
33455
|
transition_in(if_block1);
|
|
33237
33456
|
|
|
33238
33457
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -33244,8 +33463,6 @@ function create_default_slot$4(ctx) {
|
|
|
33244
33463
|
},
|
|
33245
33464
|
o(local) {
|
|
33246
33465
|
transition_out(if_block0);
|
|
33247
|
-
transition_out(t1.$$.fragment, local);
|
|
33248
|
-
transition_out(t3.$$.fragment, local);
|
|
33249
33466
|
transition_out(if_block1);
|
|
33250
33467
|
each_blocks = each_blocks.filter(Boolean);
|
|
33251
33468
|
|
|
@@ -33259,16 +33476,10 @@ function create_default_slot$4(ctx) {
|
|
|
33259
33476
|
d(detaching) {
|
|
33260
33477
|
if (if_block0) if_block0.d(detaching);
|
|
33261
33478
|
if (detaching) detach(t0);
|
|
33262
|
-
if (detaching) detach(h1);
|
|
33263
|
-
destroy_component(t1);
|
|
33264
|
-
if (detaching) detach(t2);
|
|
33265
|
-
if (detaching) detach(p);
|
|
33266
|
-
destroy_component(t3);
|
|
33267
|
-
if (detaching) detach(t4);
|
|
33268
33479
|
if (if_block1) if_block1.d(detaching);
|
|
33269
|
-
if (detaching) detach(
|
|
33480
|
+
if (detaching) detach(t1);
|
|
33270
33481
|
destroy_each(each_blocks, detaching);
|
|
33271
|
-
if (detaching) detach(
|
|
33482
|
+
if (detaching) detach(t2);
|
|
33272
33483
|
if (if_block2) if_block2.d(detaching);
|
|
33273
33484
|
if (detaching) detach(if_block2_anchor);
|
|
33274
33485
|
}
|
|
@@ -33281,12 +33492,12 @@ function create_fragment$5(ctx) {
|
|
|
33281
33492
|
let current;
|
|
33282
33493
|
|
|
33283
33494
|
function form_1_formEl_binding(value) {
|
|
33284
|
-
/*form_1_formEl_binding*/ ctx[
|
|
33495
|
+
/*form_1_formEl_binding*/ ctx[10](value);
|
|
33285
33496
|
}
|
|
33286
33497
|
|
|
33287
33498
|
let form_1_props = {
|
|
33288
33499
|
ariaDescribedBy: "formFailureMessageAlert",
|
|
33289
|
-
onSubmitWhenValid: /*form*/ ctx[
|
|
33500
|
+
onSubmitWhenValid: /*form*/ ctx[2]?.submit,
|
|
33290
33501
|
$$slots: { default: [create_default_slot$4] },
|
|
33291
33502
|
$$scope: { ctx }
|
|
33292
33503
|
};
|
|
@@ -33308,9 +33519,9 @@ function create_fragment$5(ctx) {
|
|
|
33308
33519
|
},
|
|
33309
33520
|
p(ctx, [dirty]) {
|
|
33310
33521
|
const form_1_changes = {};
|
|
33311
|
-
if (dirty & /*form*/
|
|
33522
|
+
if (dirty & /*form*/ 4) form_1_changes.onSubmitWhenValid = /*form*/ ctx[2]?.submit;
|
|
33312
33523
|
|
|
33313
|
-
if (dirty & /*$$scope, journey, metadata, step, $style, alertNeedsFocus, formMessageKey, form*/
|
|
33524
|
+
if (dirty & /*$$scope, journey, metadata, step, $style, alertNeedsFocus, formMessageKey, form, componentStyle*/ 16894) {
|
|
33314
33525
|
form_1_changes.$$scope = { dirty, ctx };
|
|
33315
33526
|
}
|
|
33316
33527
|
|
|
@@ -33339,7 +33550,8 @@ function create_fragment$5(ctx) {
|
|
|
33339
33550
|
|
|
33340
33551
|
function instance$5($$self, $$props, $$invalidate) {
|
|
33341
33552
|
let $style;
|
|
33342
|
-
component_subscribe($$self, styleStore, $$value => $$invalidate(
|
|
33553
|
+
component_subscribe($$self, styleStore, $$value => $$invalidate(8, $style = $$value));
|
|
33554
|
+
let { componentStyle } = $$props;
|
|
33343
33555
|
let { form } = $$props;
|
|
33344
33556
|
let { formEl = null } = $$props;
|
|
33345
33557
|
let { journey } = $$props;
|
|
@@ -33358,7 +33570,7 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
33358
33570
|
}
|
|
33359
33571
|
|
|
33360
33572
|
afterUpdate(() => {
|
|
33361
|
-
$$invalidate(
|
|
33573
|
+
$$invalidate(6, alertNeedsFocus = !!form?.message);
|
|
33362
33574
|
});
|
|
33363
33575
|
|
|
33364
33576
|
function form_1_formEl_binding(value) {
|
|
@@ -33367,23 +33579,25 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
33367
33579
|
}
|
|
33368
33580
|
|
|
33369
33581
|
$$self.$$set = $$props => {
|
|
33370
|
-
if ('
|
|
33582
|
+
if ('componentStyle' in $$props) $$invalidate(1, componentStyle = $$props.componentStyle);
|
|
33583
|
+
if ('form' in $$props) $$invalidate(2, form = $$props.form);
|
|
33371
33584
|
if ('formEl' in $$props) $$invalidate(0, formEl = $$props.formEl);
|
|
33372
|
-
if ('journey' in $$props) $$invalidate(
|
|
33373
|
-
if ('metadata' in $$props) $$invalidate(
|
|
33374
|
-
if ('step' in $$props) $$invalidate(
|
|
33585
|
+
if ('journey' in $$props) $$invalidate(3, journey = $$props.journey);
|
|
33586
|
+
if ('metadata' in $$props) $$invalidate(4, metadata = $$props.metadata);
|
|
33587
|
+
if ('step' in $$props) $$invalidate(5, step = $$props.step);
|
|
33375
33588
|
};
|
|
33376
33589
|
|
|
33377
33590
|
$$self.$$.update = () => {
|
|
33378
|
-
if ($$self.$$.dirty & /*form*/
|
|
33591
|
+
if ($$self.$$.dirty & /*form*/ 4) {
|
|
33379
33592
|
{
|
|
33380
|
-
$$invalidate(
|
|
33593
|
+
$$invalidate(7, formMessageKey = convertStringToKey(form?.message));
|
|
33381
33594
|
}
|
|
33382
33595
|
}
|
|
33383
33596
|
};
|
|
33384
33597
|
|
|
33385
33598
|
return [
|
|
33386
33599
|
formEl,
|
|
33600
|
+
componentStyle,
|
|
33387
33601
|
form,
|
|
33388
33602
|
journey,
|
|
33389
33603
|
metadata,
|
|
@@ -33401,11 +33615,12 @@ class One_time_password extends SvelteComponent {
|
|
|
33401
33615
|
super();
|
|
33402
33616
|
|
|
33403
33617
|
init(this, options, instance$5, create_fragment$5, safe_not_equal, {
|
|
33404
|
-
|
|
33618
|
+
componentStyle: 1,
|
|
33619
|
+
form: 2,
|
|
33405
33620
|
formEl: 0,
|
|
33406
|
-
journey:
|
|
33407
|
-
metadata:
|
|
33408
|
-
step:
|
|
33621
|
+
journey: 3,
|
|
33622
|
+
metadata: 4,
|
|
33623
|
+
step: 5
|
|
33409
33624
|
});
|
|
33410
33625
|
}
|
|
33411
33626
|
}
|
|
@@ -33518,13 +33733,100 @@ class New_user_icon extends SvelteComponent {
|
|
|
33518
33733
|
|
|
33519
33734
|
function get_each_context$1(ctx, list, i) {
|
|
33520
33735
|
const child_ctx = ctx.slice();
|
|
33521
|
-
child_ctx[
|
|
33522
|
-
child_ctx[
|
|
33736
|
+
child_ctx[13] = list[i];
|
|
33737
|
+
child_ctx[15] = i;
|
|
33523
33738
|
return child_ctx;
|
|
33524
33739
|
}
|
|
33525
33740
|
|
|
33526
|
-
// (
|
|
33741
|
+
// (50:2) {#if componentStyle !== 'inline'}
|
|
33527
33742
|
function create_if_block_2$2(ctx) {
|
|
33743
|
+
let t0;
|
|
33744
|
+
let h1;
|
|
33745
|
+
let t1;
|
|
33746
|
+
let t2;
|
|
33747
|
+
let p;
|
|
33748
|
+
let t3;
|
|
33749
|
+
let current;
|
|
33750
|
+
let if_block = /*form*/ ctx[2]?.icon && create_if_block_3$2();
|
|
33751
|
+
t1 = new Locale_strings({ props: { key: "registerHeader" } });
|
|
33752
|
+
|
|
33753
|
+
t3 = new Locale_strings({
|
|
33754
|
+
props: { key: "alreadyHaveAnAccount", html: true }
|
|
33755
|
+
});
|
|
33756
|
+
|
|
33757
|
+
return {
|
|
33758
|
+
c() {
|
|
33759
|
+
if (if_block) if_block.c();
|
|
33760
|
+
t0 = space();
|
|
33761
|
+
h1 = element("h1");
|
|
33762
|
+
create_component(t1.$$.fragment);
|
|
33763
|
+
t2 = space();
|
|
33764
|
+
p = element("p");
|
|
33765
|
+
create_component(t3.$$.fragment);
|
|
33766
|
+
attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
|
|
33767
|
+
attr(p, "class", "tw_text-base tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light");
|
|
33768
|
+
},
|
|
33769
|
+
m(target, anchor) {
|
|
33770
|
+
if (if_block) if_block.m(target, anchor);
|
|
33771
|
+
insert(target, t0, anchor);
|
|
33772
|
+
insert(target, h1, anchor);
|
|
33773
|
+
mount_component(t1, h1, null);
|
|
33774
|
+
insert(target, t2, anchor);
|
|
33775
|
+
insert(target, p, anchor);
|
|
33776
|
+
mount_component(t3, p, null);
|
|
33777
|
+
/*p_binding*/ ctx[11](p);
|
|
33778
|
+
current = true;
|
|
33779
|
+
},
|
|
33780
|
+
p(ctx, dirty) {
|
|
33781
|
+
if (/*form*/ ctx[2]?.icon) {
|
|
33782
|
+
if (if_block) {
|
|
33783
|
+
if (dirty & /*form*/ 4) {
|
|
33784
|
+
transition_in(if_block, 1);
|
|
33785
|
+
}
|
|
33786
|
+
} else {
|
|
33787
|
+
if_block = create_if_block_3$2();
|
|
33788
|
+
if_block.c();
|
|
33789
|
+
transition_in(if_block, 1);
|
|
33790
|
+
if_block.m(t0.parentNode, t0);
|
|
33791
|
+
}
|
|
33792
|
+
} else if (if_block) {
|
|
33793
|
+
group_outros();
|
|
33794
|
+
|
|
33795
|
+
transition_out(if_block, 1, 1, () => {
|
|
33796
|
+
if_block = null;
|
|
33797
|
+
});
|
|
33798
|
+
|
|
33799
|
+
check_outros();
|
|
33800
|
+
}
|
|
33801
|
+
},
|
|
33802
|
+
i(local) {
|
|
33803
|
+
if (current) return;
|
|
33804
|
+
transition_in(if_block);
|
|
33805
|
+
transition_in(t1.$$.fragment, local);
|
|
33806
|
+
transition_in(t3.$$.fragment, local);
|
|
33807
|
+
current = true;
|
|
33808
|
+
},
|
|
33809
|
+
o(local) {
|
|
33810
|
+
transition_out(if_block);
|
|
33811
|
+
transition_out(t1.$$.fragment, local);
|
|
33812
|
+
transition_out(t3.$$.fragment, local);
|
|
33813
|
+
current = false;
|
|
33814
|
+
},
|
|
33815
|
+
d(detaching) {
|
|
33816
|
+
if (if_block) if_block.d(detaching);
|
|
33817
|
+
if (detaching) detach(t0);
|
|
33818
|
+
if (detaching) detach(h1);
|
|
33819
|
+
destroy_component(t1);
|
|
33820
|
+
if (detaching) detach(t2);
|
|
33821
|
+
if (detaching) detach(p);
|
|
33822
|
+
destroy_component(t3);
|
|
33823
|
+
/*p_binding*/ ctx[11](null);
|
|
33824
|
+
}
|
|
33825
|
+
};
|
|
33826
|
+
}
|
|
33827
|
+
|
|
33828
|
+
// (51:4) {#if form?.icon}
|
|
33829
|
+
function create_if_block_3$2(ctx) {
|
|
33528
33830
|
let div;
|
|
33529
33831
|
let newusericon;
|
|
33530
33832
|
let current;
|
|
@@ -33563,7 +33865,7 @@ function create_if_block_2$2(ctx) {
|
|
|
33563
33865
|
};
|
|
33564
33866
|
}
|
|
33565
33867
|
|
|
33566
|
-
// (
|
|
33868
|
+
// (67:2) {#if form.message}
|
|
33567
33869
|
function create_if_block_1$2(ctx) {
|
|
33568
33870
|
let alert;
|
|
33569
33871
|
let current;
|
|
@@ -33571,7 +33873,7 @@ function create_if_block_1$2(ctx) {
|
|
|
33571
33873
|
alert = new Alert({
|
|
33572
33874
|
props: {
|
|
33573
33875
|
id: "formFailureMessageAlert",
|
|
33574
|
-
needsFocus: /*alertNeedsFocus*/ ctx[
|
|
33876
|
+
needsFocus: /*alertNeedsFocus*/ ctx[6],
|
|
33575
33877
|
type: "error",
|
|
33576
33878
|
$$slots: { default: [create_default_slot_2$1] },
|
|
33577
33879
|
$$scope: { ctx }
|
|
@@ -33588,9 +33890,9 @@ function create_if_block_1$2(ctx) {
|
|
|
33588
33890
|
},
|
|
33589
33891
|
p(ctx, dirty) {
|
|
33590
33892
|
const alert_changes = {};
|
|
33591
|
-
if (dirty & /*alertNeedsFocus*/
|
|
33893
|
+
if (dirty & /*alertNeedsFocus*/ 64) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[6];
|
|
33592
33894
|
|
|
33593
|
-
if (dirty & /*$$scope, formMessageKey, form*/
|
|
33895
|
+
if (dirty & /*$$scope, formMessageKey, form*/ 65668) {
|
|
33594
33896
|
alert_changes.$$scope = { dirty, ctx };
|
|
33595
33897
|
}
|
|
33596
33898
|
|
|
@@ -33611,9 +33913,9 @@ function create_if_block_1$2(ctx) {
|
|
|
33611
33913
|
};
|
|
33612
33914
|
}
|
|
33613
33915
|
|
|
33614
|
-
// (
|
|
33916
|
+
// (68:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
|
|
33615
33917
|
function create_default_slot_2$1(ctx) {
|
|
33616
|
-
let t_value = interpolate(/*formMessageKey*/ ctx[
|
|
33918
|
+
let t_value = interpolate(/*formMessageKey*/ ctx[7], null, /*form*/ ctx[2]?.message) + "";
|
|
33617
33919
|
let t;
|
|
33618
33920
|
|
|
33619
33921
|
return {
|
|
@@ -33624,7 +33926,7 @@ function create_default_slot_2$1(ctx) {
|
|
|
33624
33926
|
insert(target, t, anchor);
|
|
33625
33927
|
},
|
|
33626
33928
|
p(ctx, dirty) {
|
|
33627
|
-
if (dirty & /*formMessageKey, form*/
|
|
33929
|
+
if (dirty & /*formMessageKey, form*/ 132 && t_value !== (t_value = interpolate(/*formMessageKey*/ ctx[7], null, /*form*/ ctx[2]?.message) + "")) set_data(t, t_value);
|
|
33628
33930
|
},
|
|
33629
33931
|
d(detaching) {
|
|
33630
33932
|
if (detaching) detach(t);
|
|
@@ -33632,7 +33934,7 @@ function create_default_slot_2$1(ctx) {
|
|
|
33632
33934
|
};
|
|
33633
33935
|
}
|
|
33634
33936
|
|
|
33635
|
-
// (
|
|
33937
|
+
// (73:2) {#each step?.callbacks as callback, idx}
|
|
33636
33938
|
function create_each_block$1(ctx) {
|
|
33637
33939
|
let callbackmapper;
|
|
33638
33940
|
let current;
|
|
@@ -33640,11 +33942,11 @@ function create_each_block$1(ctx) {
|
|
|
33640
33942
|
callbackmapper = new Callback_mapper({
|
|
33641
33943
|
props: {
|
|
33642
33944
|
props: {
|
|
33643
|
-
callback: /*callback*/ ctx[
|
|
33644
|
-
callbackMetadata: /*metadata*/ ctx[
|
|
33645
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
33646
|
-
stepMetadata: /*metadata*/ ctx[
|
|
33647
|
-
style: /*$styleStore*/ ctx[
|
|
33945
|
+
callback: /*callback*/ ctx[13],
|
|
33946
|
+
callbackMetadata: /*metadata*/ ctx[4]?.callbacks[/*idx*/ ctx[15]],
|
|
33947
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[10],
|
|
33948
|
+
stepMetadata: /*metadata*/ ctx[4]?.step && { .../*metadata*/ ctx[4].step },
|
|
33949
|
+
style: /*$styleStore*/ ctx[9]
|
|
33648
33950
|
}
|
|
33649
33951
|
}
|
|
33650
33952
|
});
|
|
@@ -33660,12 +33962,12 @@ function create_each_block$1(ctx) {
|
|
|
33660
33962
|
p(ctx, dirty) {
|
|
33661
33963
|
const callbackmapper_changes = {};
|
|
33662
33964
|
|
|
33663
|
-
if (dirty & /*step, metadata, $styleStore*/
|
|
33664
|
-
callback: /*callback*/ ctx[
|
|
33665
|
-
callbackMetadata: /*metadata*/ ctx[
|
|
33666
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
33667
|
-
stepMetadata: /*metadata*/ ctx[
|
|
33668
|
-
style: /*$styleStore*/ ctx[
|
|
33965
|
+
if (dirty & /*step, metadata, $styleStore*/ 560) callbackmapper_changes.props = {
|
|
33966
|
+
callback: /*callback*/ ctx[13],
|
|
33967
|
+
callbackMetadata: /*metadata*/ ctx[4]?.callbacks[/*idx*/ ctx[15]],
|
|
33968
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[10],
|
|
33969
|
+
stepMetadata: /*metadata*/ ctx[4]?.step && { .../*metadata*/ ctx[4].step },
|
|
33970
|
+
style: /*$styleStore*/ ctx[9]
|
|
33669
33971
|
};
|
|
33670
33972
|
|
|
33671
33973
|
callbackmapper.$set(callbackmapper_changes);
|
|
@@ -33685,14 +33987,14 @@ function create_each_block$1(ctx) {
|
|
|
33685
33987
|
};
|
|
33686
33988
|
}
|
|
33687
33989
|
|
|
33688
|
-
// (
|
|
33990
|
+
// (85:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
|
|
33689
33991
|
function create_if_block$3(ctx) {
|
|
33690
33992
|
let button;
|
|
33691
33993
|
let current;
|
|
33692
33994
|
|
|
33693
33995
|
button = new Button({
|
|
33694
33996
|
props: {
|
|
33695
|
-
busy: /*journey*/ ctx[
|
|
33997
|
+
busy: /*journey*/ ctx[3]?.loading,
|
|
33696
33998
|
style: "primary",
|
|
33697
33999
|
type: "submit",
|
|
33698
34000
|
width: "full",
|
|
@@ -33711,9 +34013,9 @@ function create_if_block$3(ctx) {
|
|
|
33711
34013
|
},
|
|
33712
34014
|
p(ctx, dirty) {
|
|
33713
34015
|
const button_changes = {};
|
|
33714
|
-
if (dirty & /*journey*/
|
|
34016
|
+
if (dirty & /*journey*/ 8) button_changes.busy = /*journey*/ ctx[3]?.loading;
|
|
33715
34017
|
|
|
33716
|
-
if (dirty & /*$$scope*/
|
|
34018
|
+
if (dirty & /*$$scope*/ 65536) {
|
|
33717
34019
|
button_changes.$$scope = { dirty, ctx };
|
|
33718
34020
|
}
|
|
33719
34021
|
|
|
@@ -33734,7 +34036,7 @@ function create_if_block$3(ctx) {
|
|
|
33734
34036
|
};
|
|
33735
34037
|
}
|
|
33736
34038
|
|
|
33737
|
-
// (
|
|
34039
|
+
// (86:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
|
|
33738
34040
|
function create_default_slot_1$2(ctx) {
|
|
33739
34041
|
let t;
|
|
33740
34042
|
let current;
|
|
@@ -33764,28 +34066,16 @@ function create_default_slot_1$2(ctx) {
|
|
|
33764
34066
|
};
|
|
33765
34067
|
}
|
|
33766
34068
|
|
|
33767
|
-
// (
|
|
34069
|
+
// (49:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
|
|
33768
34070
|
function create_default_slot$3(ctx) {
|
|
33769
34071
|
let t0;
|
|
33770
|
-
let h1;
|
|
33771
34072
|
let t1;
|
|
33772
34073
|
let t2;
|
|
33773
|
-
let p;
|
|
33774
|
-
let t3;
|
|
33775
|
-
let t4;
|
|
33776
|
-
let t5;
|
|
33777
|
-
let t6;
|
|
33778
34074
|
let if_block2_anchor;
|
|
33779
34075
|
let current;
|
|
33780
|
-
let if_block0 = /*
|
|
33781
|
-
|
|
33782
|
-
|
|
33783
|
-
t3 = new Locale_strings({
|
|
33784
|
-
props: { key: "alreadyHaveAnAccount", html: true }
|
|
33785
|
-
});
|
|
33786
|
-
|
|
33787
|
-
let if_block1 = /*form*/ ctx[1].message && create_if_block_1$2(ctx);
|
|
33788
|
-
let each_value = /*step*/ ctx[4]?.callbacks;
|
|
34076
|
+
let if_block0 = /*componentStyle*/ ctx[1] !== 'inline' && create_if_block_2$2(ctx);
|
|
34077
|
+
let if_block1 = /*form*/ ctx[2].message && create_if_block_1$2(ctx);
|
|
34078
|
+
let each_value = /*step*/ ctx[5]?.callbacks;
|
|
33789
34079
|
let each_blocks = [];
|
|
33790
34080
|
|
|
33791
34081
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -33796,61 +34086,48 @@ function create_default_slot$3(ctx) {
|
|
|
33796
34086
|
each_blocks[i] = null;
|
|
33797
34087
|
});
|
|
33798
34088
|
|
|
33799
|
-
let if_block2 = (/*metadata*/ ctx[
|
|
34089
|
+
let if_block2 = (/*metadata*/ ctx[4]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[4]?.step?.derived.isStepSelfSubmittable) && create_if_block$3(ctx);
|
|
33800
34090
|
|
|
33801
34091
|
return {
|
|
33802
34092
|
c() {
|
|
33803
34093
|
if (if_block0) if_block0.c();
|
|
33804
34094
|
t0 = space();
|
|
33805
|
-
h1 = element("h1");
|
|
33806
|
-
create_component(t1.$$.fragment);
|
|
33807
|
-
t2 = space();
|
|
33808
|
-
p = element("p");
|
|
33809
|
-
create_component(t3.$$.fragment);
|
|
33810
|
-
t4 = space();
|
|
33811
34095
|
if (if_block1) if_block1.c();
|
|
33812
|
-
|
|
34096
|
+
t1 = space();
|
|
33813
34097
|
|
|
33814
34098
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
33815
34099
|
each_blocks[i].c();
|
|
33816
34100
|
}
|
|
33817
34101
|
|
|
33818
|
-
|
|
34102
|
+
t2 = space();
|
|
33819
34103
|
if (if_block2) if_block2.c();
|
|
33820
34104
|
if_block2_anchor = empty();
|
|
33821
|
-
attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
|
|
33822
|
-
attr(p, "class", "tw_text-base tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light");
|
|
33823
34105
|
},
|
|
33824
34106
|
m(target, anchor) {
|
|
33825
34107
|
if (if_block0) if_block0.m(target, anchor);
|
|
33826
34108
|
insert(target, t0, anchor);
|
|
33827
|
-
insert(target, h1, anchor);
|
|
33828
|
-
mount_component(t1, h1, null);
|
|
33829
|
-
insert(target, t2, anchor);
|
|
33830
|
-
insert(target, p, anchor);
|
|
33831
|
-
mount_component(t3, p, null);
|
|
33832
|
-
/*p_binding*/ ctx[10](p);
|
|
33833
|
-
insert(target, t4, anchor);
|
|
33834
34109
|
if (if_block1) if_block1.m(target, anchor);
|
|
33835
|
-
insert(target,
|
|
34110
|
+
insert(target, t1, anchor);
|
|
33836
34111
|
|
|
33837
34112
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
33838
34113
|
each_blocks[i].m(target, anchor);
|
|
33839
34114
|
}
|
|
33840
34115
|
|
|
33841
|
-
insert(target,
|
|
34116
|
+
insert(target, t2, anchor);
|
|
33842
34117
|
if (if_block2) if_block2.m(target, anchor);
|
|
33843
34118
|
insert(target, if_block2_anchor, anchor);
|
|
33844
34119
|
current = true;
|
|
33845
34120
|
},
|
|
33846
34121
|
p(ctx, dirty) {
|
|
33847
|
-
if (/*
|
|
34122
|
+
if (/*componentStyle*/ ctx[1] !== 'inline') {
|
|
33848
34123
|
if (if_block0) {
|
|
33849
|
-
|
|
34124
|
+
if_block0.p(ctx, dirty);
|
|
34125
|
+
|
|
34126
|
+
if (dirty & /*componentStyle*/ 2) {
|
|
33850
34127
|
transition_in(if_block0, 1);
|
|
33851
34128
|
}
|
|
33852
34129
|
} else {
|
|
33853
|
-
if_block0 = create_if_block_2$2();
|
|
34130
|
+
if_block0 = create_if_block_2$2(ctx);
|
|
33854
34131
|
if_block0.c();
|
|
33855
34132
|
transition_in(if_block0, 1);
|
|
33856
34133
|
if_block0.m(t0.parentNode, t0);
|
|
@@ -33865,18 +34142,18 @@ function create_default_slot$3(ctx) {
|
|
|
33865
34142
|
check_outros();
|
|
33866
34143
|
}
|
|
33867
34144
|
|
|
33868
|
-
if (/*form*/ ctx[
|
|
34145
|
+
if (/*form*/ ctx[2].message) {
|
|
33869
34146
|
if (if_block1) {
|
|
33870
34147
|
if_block1.p(ctx, dirty);
|
|
33871
34148
|
|
|
33872
|
-
if (dirty & /*form*/
|
|
34149
|
+
if (dirty & /*form*/ 4) {
|
|
33873
34150
|
transition_in(if_block1, 1);
|
|
33874
34151
|
}
|
|
33875
34152
|
} else {
|
|
33876
34153
|
if_block1 = create_if_block_1$2(ctx);
|
|
33877
34154
|
if_block1.c();
|
|
33878
34155
|
transition_in(if_block1, 1);
|
|
33879
|
-
if_block1.m(
|
|
34156
|
+
if_block1.m(t1.parentNode, t1);
|
|
33880
34157
|
}
|
|
33881
34158
|
} else if (if_block1) {
|
|
33882
34159
|
group_outros();
|
|
@@ -33888,8 +34165,8 @@ function create_default_slot$3(ctx) {
|
|
|
33888
34165
|
check_outros();
|
|
33889
34166
|
}
|
|
33890
34167
|
|
|
33891
|
-
if (dirty & /*step, metadata, determineSubmission, $styleStore*/
|
|
33892
|
-
each_value = /*step*/ ctx[
|
|
34168
|
+
if (dirty & /*step, metadata, determineSubmission, $styleStore*/ 1584) {
|
|
34169
|
+
each_value = /*step*/ ctx[5]?.callbacks;
|
|
33893
34170
|
let i;
|
|
33894
34171
|
|
|
33895
34172
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -33902,7 +34179,7 @@ function create_default_slot$3(ctx) {
|
|
|
33902
34179
|
each_blocks[i] = create_each_block$1(child_ctx);
|
|
33903
34180
|
each_blocks[i].c();
|
|
33904
34181
|
transition_in(each_blocks[i], 1);
|
|
33905
|
-
each_blocks[i].m(
|
|
34182
|
+
each_blocks[i].m(t2.parentNode, t2);
|
|
33906
34183
|
}
|
|
33907
34184
|
}
|
|
33908
34185
|
|
|
@@ -33915,11 +34192,11 @@ function create_default_slot$3(ctx) {
|
|
|
33915
34192
|
check_outros();
|
|
33916
34193
|
}
|
|
33917
34194
|
|
|
33918
|
-
if (/*metadata*/ ctx[
|
|
34195
|
+
if (/*metadata*/ ctx[4]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[4]?.step?.derived.isStepSelfSubmittable) {
|
|
33919
34196
|
if (if_block2) {
|
|
33920
34197
|
if_block2.p(ctx, dirty);
|
|
33921
34198
|
|
|
33922
|
-
if (dirty & /*metadata*/
|
|
34199
|
+
if (dirty & /*metadata*/ 16) {
|
|
33923
34200
|
transition_in(if_block2, 1);
|
|
33924
34201
|
}
|
|
33925
34202
|
} else {
|
|
@@ -33941,8 +34218,6 @@ function create_default_slot$3(ctx) {
|
|
|
33941
34218
|
i(local) {
|
|
33942
34219
|
if (current) return;
|
|
33943
34220
|
transition_in(if_block0);
|
|
33944
|
-
transition_in(t1.$$.fragment, local);
|
|
33945
|
-
transition_in(t3.$$.fragment, local);
|
|
33946
34221
|
transition_in(if_block1);
|
|
33947
34222
|
|
|
33948
34223
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -33954,8 +34229,6 @@ function create_default_slot$3(ctx) {
|
|
|
33954
34229
|
},
|
|
33955
34230
|
o(local) {
|
|
33956
34231
|
transition_out(if_block0);
|
|
33957
|
-
transition_out(t1.$$.fragment, local);
|
|
33958
|
-
transition_out(t3.$$.fragment, local);
|
|
33959
34232
|
transition_out(if_block1);
|
|
33960
34233
|
each_blocks = each_blocks.filter(Boolean);
|
|
33961
34234
|
|
|
@@ -33969,17 +34242,10 @@ function create_default_slot$3(ctx) {
|
|
|
33969
34242
|
d(detaching) {
|
|
33970
34243
|
if (if_block0) if_block0.d(detaching);
|
|
33971
34244
|
if (detaching) detach(t0);
|
|
33972
|
-
if (detaching) detach(h1);
|
|
33973
|
-
destroy_component(t1);
|
|
33974
|
-
if (detaching) detach(t2);
|
|
33975
|
-
if (detaching) detach(p);
|
|
33976
|
-
destroy_component(t3);
|
|
33977
|
-
/*p_binding*/ ctx[10](null);
|
|
33978
|
-
if (detaching) detach(t4);
|
|
33979
34245
|
if (if_block1) if_block1.d(detaching);
|
|
33980
|
-
if (detaching) detach(
|
|
34246
|
+
if (detaching) detach(t1);
|
|
33981
34247
|
destroy_each(each_blocks, detaching);
|
|
33982
|
-
if (detaching) detach(
|
|
34248
|
+
if (detaching) detach(t2);
|
|
33983
34249
|
if (if_block2) if_block2.d(detaching);
|
|
33984
34250
|
if (detaching) detach(if_block2_anchor);
|
|
33985
34251
|
}
|
|
@@ -33992,12 +34258,12 @@ function create_fragment$3(ctx) {
|
|
|
33992
34258
|
let current;
|
|
33993
34259
|
|
|
33994
34260
|
function form_1_formEl_binding(value) {
|
|
33995
|
-
/*form_1_formEl_binding*/ ctx[
|
|
34261
|
+
/*form_1_formEl_binding*/ ctx[12](value);
|
|
33996
34262
|
}
|
|
33997
34263
|
|
|
33998
34264
|
let form_1_props = {
|
|
33999
34265
|
ariaDescribedBy: "formFailureMessageAlert",
|
|
34000
|
-
onSubmitWhenValid: /*form*/ ctx[
|
|
34266
|
+
onSubmitWhenValid: /*form*/ ctx[2]?.submit,
|
|
34001
34267
|
$$slots: { default: [create_default_slot$3] },
|
|
34002
34268
|
$$scope: { ctx }
|
|
34003
34269
|
};
|
|
@@ -34019,9 +34285,9 @@ function create_fragment$3(ctx) {
|
|
|
34019
34285
|
},
|
|
34020
34286
|
p(ctx, [dirty]) {
|
|
34021
34287
|
const form_1_changes = {};
|
|
34022
|
-
if (dirty & /*form*/
|
|
34288
|
+
if (dirty & /*form*/ 4) form_1_changes.onSubmitWhenValid = /*form*/ ctx[2]?.submit;
|
|
34023
34289
|
|
|
34024
|
-
if (dirty & /*$$scope, journey, metadata, step, $styleStore, alertNeedsFocus, formMessageKey, form, linkWrapper*/
|
|
34290
|
+
if (dirty & /*$$scope, journey, metadata, step, $styleStore, alertNeedsFocus, formMessageKey, form, linkWrapper, componentStyle*/ 66558) {
|
|
34025
34291
|
form_1_changes.$$scope = { dirty, ctx };
|
|
34026
34292
|
}
|
|
34027
34293
|
|
|
@@ -34050,7 +34316,8 @@ function create_fragment$3(ctx) {
|
|
|
34050
34316
|
|
|
34051
34317
|
function instance$3($$self, $$props, $$invalidate) {
|
|
34052
34318
|
let $styleStore;
|
|
34053
|
-
component_subscribe($$self, styleStore, $$value => $$invalidate(
|
|
34319
|
+
component_subscribe($$self, styleStore, $$value => $$invalidate(9, $styleStore = $$value));
|
|
34320
|
+
let { componentStyle } = $$props;
|
|
34054
34321
|
let { form } = $$props;
|
|
34055
34322
|
let { formEl = null } = $$props;
|
|
34056
34323
|
let { journey } = $$props;
|
|
@@ -34070,15 +34337,25 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
34070
34337
|
}
|
|
34071
34338
|
|
|
34072
34339
|
afterUpdate(() => {
|
|
34073
|
-
$$invalidate(
|
|
34340
|
+
$$invalidate(6, alertNeedsFocus = !!form?.message);
|
|
34074
34341
|
});
|
|
34075
34342
|
|
|
34076
|
-
onMount(() =>
|
|
34343
|
+
onMount(() => {
|
|
34344
|
+
if (componentStyle === 'modal') {
|
|
34345
|
+
captureLinks(linkWrapper, journey);
|
|
34346
|
+
}
|
|
34347
|
+
});
|
|
34348
|
+
|
|
34349
|
+
onMount(() => {
|
|
34350
|
+
if (componentStyle === 'modal') {
|
|
34351
|
+
captureLinks(linkWrapper, journey);
|
|
34352
|
+
}
|
|
34353
|
+
});
|
|
34077
34354
|
|
|
34078
34355
|
function p_binding($$value) {
|
|
34079
34356
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
34080
34357
|
linkWrapper = $$value;
|
|
34081
|
-
$$invalidate(
|
|
34358
|
+
$$invalidate(8, linkWrapper);
|
|
34082
34359
|
});
|
|
34083
34360
|
}
|
|
34084
34361
|
|
|
@@ -34088,23 +34365,25 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
34088
34365
|
}
|
|
34089
34366
|
|
|
34090
34367
|
$$self.$$set = $$props => {
|
|
34091
|
-
if ('
|
|
34368
|
+
if ('componentStyle' in $$props) $$invalidate(1, componentStyle = $$props.componentStyle);
|
|
34369
|
+
if ('form' in $$props) $$invalidate(2, form = $$props.form);
|
|
34092
34370
|
if ('formEl' in $$props) $$invalidate(0, formEl = $$props.formEl);
|
|
34093
|
-
if ('journey' in $$props) $$invalidate(
|
|
34094
|
-
if ('metadata' in $$props) $$invalidate(
|
|
34095
|
-
if ('step' in $$props) $$invalidate(
|
|
34371
|
+
if ('journey' in $$props) $$invalidate(3, journey = $$props.journey);
|
|
34372
|
+
if ('metadata' in $$props) $$invalidate(4, metadata = $$props.metadata);
|
|
34373
|
+
if ('step' in $$props) $$invalidate(5, step = $$props.step);
|
|
34096
34374
|
};
|
|
34097
34375
|
|
|
34098
34376
|
$$self.$$.update = () => {
|
|
34099
|
-
if ($$self.$$.dirty & /*form*/
|
|
34377
|
+
if ($$self.$$.dirty & /*form*/ 4) {
|
|
34100
34378
|
{
|
|
34101
|
-
$$invalidate(
|
|
34379
|
+
$$invalidate(7, formMessageKey = convertStringToKey(form?.message));
|
|
34102
34380
|
}
|
|
34103
34381
|
}
|
|
34104
34382
|
};
|
|
34105
34383
|
|
|
34106
34384
|
return [
|
|
34107
34385
|
formEl,
|
|
34386
|
+
componentStyle,
|
|
34108
34387
|
form,
|
|
34109
34388
|
journey,
|
|
34110
34389
|
metadata,
|
|
@@ -34124,11 +34403,12 @@ class Registration extends SvelteComponent {
|
|
|
34124
34403
|
super();
|
|
34125
34404
|
|
|
34126
34405
|
init(this, options, instance$3, create_fragment$3, safe_not_equal, {
|
|
34127
|
-
|
|
34406
|
+
componentStyle: 1,
|
|
34407
|
+
form: 2,
|
|
34128
34408
|
formEl: 0,
|
|
34129
|
-
journey:
|
|
34130
|
-
metadata:
|
|
34131
|
-
step:
|
|
34409
|
+
journey: 3,
|
|
34410
|
+
metadata: 4,
|
|
34411
|
+
step: 5
|
|
34132
34412
|
});
|
|
34133
34413
|
}
|
|
34134
34414
|
}
|
|
@@ -34137,13 +34417,79 @@ class Registration extends SvelteComponent {
|
|
|
34137
34417
|
|
|
34138
34418
|
function get_each_context(ctx, list, i) {
|
|
34139
34419
|
const child_ctx = ctx.slice();
|
|
34140
|
-
child_ctx[
|
|
34141
|
-
child_ctx[
|
|
34420
|
+
child_ctx[15] = list[i];
|
|
34421
|
+
child_ctx[17] = i;
|
|
34142
34422
|
return child_ctx;
|
|
34143
34423
|
}
|
|
34144
34424
|
|
|
34145
|
-
// (
|
|
34146
|
-
function
|
|
34425
|
+
// (45:2) {#if componentStyle !== 'inline'}
|
|
34426
|
+
function create_if_block_3$1(ctx) {
|
|
34427
|
+
let t0;
|
|
34428
|
+
let h1;
|
|
34429
|
+
let t1;
|
|
34430
|
+
let current;
|
|
34431
|
+
let if_block = /*form*/ ctx[2]?.icon && create_if_block_4();
|
|
34432
|
+
t1 = new Locale_strings({ props: { key: "loginHeader" } });
|
|
34433
|
+
|
|
34434
|
+
return {
|
|
34435
|
+
c() {
|
|
34436
|
+
if (if_block) if_block.c();
|
|
34437
|
+
t0 = space();
|
|
34438
|
+
h1 = element("h1");
|
|
34439
|
+
create_component(t1.$$.fragment);
|
|
34440
|
+
attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
|
|
34441
|
+
},
|
|
34442
|
+
m(target, anchor) {
|
|
34443
|
+
if (if_block) if_block.m(target, anchor);
|
|
34444
|
+
insert(target, t0, anchor);
|
|
34445
|
+
insert(target, h1, anchor);
|
|
34446
|
+
mount_component(t1, h1, null);
|
|
34447
|
+
current = true;
|
|
34448
|
+
},
|
|
34449
|
+
p(ctx, dirty) {
|
|
34450
|
+
if (/*form*/ ctx[2]?.icon) {
|
|
34451
|
+
if (if_block) {
|
|
34452
|
+
if (dirty & /*form*/ 4) {
|
|
34453
|
+
transition_in(if_block, 1);
|
|
34454
|
+
}
|
|
34455
|
+
} else {
|
|
34456
|
+
if_block = create_if_block_4();
|
|
34457
|
+
if_block.c();
|
|
34458
|
+
transition_in(if_block, 1);
|
|
34459
|
+
if_block.m(t0.parentNode, t0);
|
|
34460
|
+
}
|
|
34461
|
+
} else if (if_block) {
|
|
34462
|
+
group_outros();
|
|
34463
|
+
|
|
34464
|
+
transition_out(if_block, 1, 1, () => {
|
|
34465
|
+
if_block = null;
|
|
34466
|
+
});
|
|
34467
|
+
|
|
34468
|
+
check_outros();
|
|
34469
|
+
}
|
|
34470
|
+
},
|
|
34471
|
+
i(local) {
|
|
34472
|
+
if (current) return;
|
|
34473
|
+
transition_in(if_block);
|
|
34474
|
+
transition_in(t1.$$.fragment, local);
|
|
34475
|
+
current = true;
|
|
34476
|
+
},
|
|
34477
|
+
o(local) {
|
|
34478
|
+
transition_out(if_block);
|
|
34479
|
+
transition_out(t1.$$.fragment, local);
|
|
34480
|
+
current = false;
|
|
34481
|
+
},
|
|
34482
|
+
d(detaching) {
|
|
34483
|
+
if (if_block) if_block.d(detaching);
|
|
34484
|
+
if (detaching) detach(t0);
|
|
34485
|
+
if (detaching) detach(h1);
|
|
34486
|
+
destroy_component(t1);
|
|
34487
|
+
}
|
|
34488
|
+
};
|
|
34489
|
+
}
|
|
34490
|
+
|
|
34491
|
+
// (46:4) {#if form?.icon}
|
|
34492
|
+
function create_if_block_4(ctx) {
|
|
34147
34493
|
let div;
|
|
34148
34494
|
let keyicon;
|
|
34149
34495
|
let current;
|
|
@@ -34182,15 +34528,15 @@ function create_if_block_2$1(ctx) {
|
|
|
34182
34528
|
};
|
|
34183
34529
|
}
|
|
34184
34530
|
|
|
34185
|
-
// (
|
|
34186
|
-
function
|
|
34531
|
+
// (56:2) {#if form?.message}
|
|
34532
|
+
function create_if_block_2$1(ctx) {
|
|
34187
34533
|
let alert;
|
|
34188
34534
|
let current;
|
|
34189
34535
|
|
|
34190
34536
|
alert = new Alert({
|
|
34191
34537
|
props: {
|
|
34192
34538
|
id: "formFailureMessageAlert",
|
|
34193
|
-
needsFocus: /*alertNeedsFocus*/ ctx[
|
|
34539
|
+
needsFocus: /*alertNeedsFocus*/ ctx[6],
|
|
34194
34540
|
type: "error",
|
|
34195
34541
|
$$slots: { default: [create_default_slot_2] },
|
|
34196
34542
|
$$scope: { ctx }
|
|
@@ -34207,9 +34553,9 @@ function create_if_block_1$1(ctx) {
|
|
|
34207
34553
|
},
|
|
34208
34554
|
p(ctx, dirty) {
|
|
34209
34555
|
const alert_changes = {};
|
|
34210
|
-
if (dirty & /*alertNeedsFocus*/
|
|
34556
|
+
if (dirty & /*alertNeedsFocus*/ 64) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[6];
|
|
34211
34557
|
|
|
34212
|
-
if (dirty & /*$$scope, formMessageKey, form*/
|
|
34558
|
+
if (dirty & /*$$scope, formMessageKey, form*/ 262276) {
|
|
34213
34559
|
alert_changes.$$scope = { dirty, ctx };
|
|
34214
34560
|
}
|
|
34215
34561
|
|
|
@@ -34230,9 +34576,9 @@ function create_if_block_1$1(ctx) {
|
|
|
34230
34576
|
};
|
|
34231
34577
|
}
|
|
34232
34578
|
|
|
34233
|
-
// (
|
|
34579
|
+
// (57:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
|
|
34234
34580
|
function create_default_slot_2(ctx) {
|
|
34235
|
-
let t_value = interpolate(/*formMessageKey*/ ctx[
|
|
34581
|
+
let t_value = interpolate(/*formMessageKey*/ ctx[7], null, /*form*/ ctx[2]?.message) + "";
|
|
34236
34582
|
let t;
|
|
34237
34583
|
|
|
34238
34584
|
return {
|
|
@@ -34243,7 +34589,7 @@ function create_default_slot_2(ctx) {
|
|
|
34243
34589
|
insert(target, t, anchor);
|
|
34244
34590
|
},
|
|
34245
34591
|
p(ctx, dirty) {
|
|
34246
|
-
if (dirty & /*formMessageKey, form*/
|
|
34592
|
+
if (dirty & /*formMessageKey, form*/ 132 && t_value !== (t_value = interpolate(/*formMessageKey*/ ctx[7], null, /*form*/ ctx[2]?.message) + "")) set_data(t, t_value);
|
|
34247
34593
|
},
|
|
34248
34594
|
d(detaching) {
|
|
34249
34595
|
if (detaching) detach(t);
|
|
@@ -34251,7 +34597,7 @@ function create_default_slot_2(ctx) {
|
|
|
34251
34597
|
};
|
|
34252
34598
|
}
|
|
34253
34599
|
|
|
34254
|
-
// (
|
|
34600
|
+
// (62:2) {#each step?.callbacks as callback, idx}
|
|
34255
34601
|
function create_each_block(ctx) {
|
|
34256
34602
|
let callbackmapper;
|
|
34257
34603
|
let current;
|
|
@@ -34259,11 +34605,11 @@ function create_each_block(ctx) {
|
|
|
34259
34605
|
callbackmapper = new Callback_mapper({
|
|
34260
34606
|
props: {
|
|
34261
34607
|
props: {
|
|
34262
|
-
callback: /*callback*/ ctx[
|
|
34263
|
-
callbackMetadata: /*metadata*/ ctx[
|
|
34264
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
34265
|
-
stepMetadata: /*metadata*/ ctx[
|
|
34266
|
-
style: /*$styleStore*/ ctx[
|
|
34608
|
+
callback: /*callback*/ ctx[15],
|
|
34609
|
+
callbackMetadata: /*metadata*/ ctx[4]?.callbacks[/*idx*/ ctx[17]],
|
|
34610
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[10],
|
|
34611
|
+
stepMetadata: /*metadata*/ ctx[4]?.step && { .../*metadata*/ ctx[4].step },
|
|
34612
|
+
style: /*$styleStore*/ ctx[9]
|
|
34267
34613
|
}
|
|
34268
34614
|
}
|
|
34269
34615
|
});
|
|
@@ -34279,12 +34625,12 @@ function create_each_block(ctx) {
|
|
|
34279
34625
|
p(ctx, dirty) {
|
|
34280
34626
|
const callbackmapper_changes = {};
|
|
34281
34627
|
|
|
34282
|
-
if (dirty & /*step, metadata, $styleStore*/
|
|
34283
|
-
callback: /*callback*/ ctx[
|
|
34284
|
-
callbackMetadata: /*metadata*/ ctx[
|
|
34285
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
34286
|
-
stepMetadata: /*metadata*/ ctx[
|
|
34287
|
-
style: /*$styleStore*/ ctx[
|
|
34628
|
+
if (dirty & /*step, metadata, $styleStore*/ 560) callbackmapper_changes.props = {
|
|
34629
|
+
callback: /*callback*/ ctx[15],
|
|
34630
|
+
callbackMetadata: /*metadata*/ ctx[4]?.callbacks[/*idx*/ ctx[17]],
|
|
34631
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[10],
|
|
34632
|
+
stepMetadata: /*metadata*/ ctx[4]?.step && { .../*metadata*/ ctx[4].step },
|
|
34633
|
+
style: /*$styleStore*/ ctx[9]
|
|
34288
34634
|
};
|
|
34289
34635
|
|
|
34290
34636
|
callbackmapper.$set(callbackmapper_changes);
|
|
@@ -34304,14 +34650,14 @@ function create_each_block(ctx) {
|
|
|
34304
34650
|
};
|
|
34305
34651
|
}
|
|
34306
34652
|
|
|
34307
|
-
// (
|
|
34308
|
-
function
|
|
34653
|
+
// (74:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
|
|
34654
|
+
function create_if_block_1$1(ctx) {
|
|
34309
34655
|
let button;
|
|
34310
34656
|
let current;
|
|
34311
34657
|
|
|
34312
34658
|
button = new Button({
|
|
34313
34659
|
props: {
|
|
34314
|
-
busy: /*journey*/ ctx[
|
|
34660
|
+
busy: /*journey*/ ctx[3]?.loading,
|
|
34315
34661
|
style: "primary",
|
|
34316
34662
|
type: "submit",
|
|
34317
34663
|
width: "full",
|
|
@@ -34330,9 +34676,9 @@ function create_if_block$2(ctx) {
|
|
|
34330
34676
|
},
|
|
34331
34677
|
p(ctx, dirty) {
|
|
34332
34678
|
const button_changes = {};
|
|
34333
|
-
if (dirty & /*journey*/
|
|
34679
|
+
if (dirty & /*journey*/ 8) button_changes.busy = /*journey*/ ctx[3]?.loading;
|
|
34334
34680
|
|
|
34335
|
-
if (dirty & /*$$scope*/
|
|
34681
|
+
if (dirty & /*$$scope*/ 262144) {
|
|
34336
34682
|
button_changes.$$scope = { dirty, ctx };
|
|
34337
34683
|
}
|
|
34338
34684
|
|
|
@@ -34353,7 +34699,7 @@ function create_if_block$2(ctx) {
|
|
|
34353
34699
|
};
|
|
34354
34700
|
}
|
|
34355
34701
|
|
|
34356
|
-
// (
|
|
34702
|
+
// (75:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
|
|
34357
34703
|
function create_default_slot_1$1(ctx) {
|
|
34358
34704
|
let t;
|
|
34359
34705
|
let current;
|
|
@@ -34383,31 +34729,99 @@ function create_default_slot_1$1(ctx) {
|
|
|
34383
34729
|
};
|
|
34384
34730
|
}
|
|
34385
34731
|
|
|
34386
|
-
// (
|
|
34387
|
-
function
|
|
34388
|
-
let t0;
|
|
34389
|
-
let h1;
|
|
34390
|
-
let t1;
|
|
34391
|
-
let t2;
|
|
34392
|
-
let t3;
|
|
34393
|
-
let t4;
|
|
34394
|
-
let t5;
|
|
34732
|
+
// (80:2) {#if componentStyle !== 'inline'}
|
|
34733
|
+
function create_if_block$2(ctx) {
|
|
34395
34734
|
let p0;
|
|
34396
34735
|
let button0;
|
|
34397
|
-
let
|
|
34736
|
+
let t1;
|
|
34398
34737
|
let button1;
|
|
34399
|
-
let
|
|
34738
|
+
let t3;
|
|
34400
34739
|
let hr;
|
|
34401
|
-
let
|
|
34740
|
+
let t4;
|
|
34402
34741
|
let p1;
|
|
34403
|
-
let
|
|
34742
|
+
let t5;
|
|
34404
34743
|
let current;
|
|
34405
34744
|
let mounted;
|
|
34406
34745
|
let dispose;
|
|
34407
|
-
|
|
34408
|
-
|
|
34409
|
-
|
|
34410
|
-
|
|
34746
|
+
|
|
34747
|
+
t5 = new Locale_strings({
|
|
34748
|
+
props: { key: "dontHaveAnAccount", html: true }
|
|
34749
|
+
});
|
|
34750
|
+
|
|
34751
|
+
return {
|
|
34752
|
+
c() {
|
|
34753
|
+
p0 = element("p");
|
|
34754
|
+
button0 = element("button");
|
|
34755
|
+
button0.textContent = `${interpolate('forgotPassword', null, 'Forgot Password?')}`;
|
|
34756
|
+
t1 = text("\n \n ");
|
|
34757
|
+
button1 = element("button");
|
|
34758
|
+
button1.textContent = `${interpolate('forgotUsername', null, 'Forgot Username?')}`;
|
|
34759
|
+
t3 = space();
|
|
34760
|
+
hr = element("hr");
|
|
34761
|
+
t4 = space();
|
|
34762
|
+
p1 = element("p");
|
|
34763
|
+
create_component(t5.$$.fragment);
|
|
34764
|
+
attr(p0, "class", "tw_my-4 tw_text-base tw_text-center tw_text-link-dark dark:tw_text-link-light");
|
|
34765
|
+
attr(hr, "class", "tw_border-0 tw_border-b tw_border-secondary-light dark:tw_border-secondary-dark");
|
|
34766
|
+
attr(p1, "class", "tw_text-base tw_text-center tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light");
|
|
34767
|
+
},
|
|
34768
|
+
m(target, anchor) {
|
|
34769
|
+
insert(target, p0, anchor);
|
|
34770
|
+
append(p0, button0);
|
|
34771
|
+
append(p0, t1);
|
|
34772
|
+
append(p0, button1);
|
|
34773
|
+
insert(target, t3, anchor);
|
|
34774
|
+
insert(target, hr, anchor);
|
|
34775
|
+
insert(target, t4, anchor);
|
|
34776
|
+
insert(target, p1, anchor);
|
|
34777
|
+
mount_component(t5, p1, null);
|
|
34778
|
+
/*p1_binding*/ ctx[13](p1);
|
|
34779
|
+
current = true;
|
|
34780
|
+
|
|
34781
|
+
if (!mounted) {
|
|
34782
|
+
dispose = [
|
|
34783
|
+
listen(button0, "click", prevent_default(/*click_handler*/ ctx[11])),
|
|
34784
|
+
listen(button1, "click", prevent_default(/*click_handler_1*/ ctx[12]))
|
|
34785
|
+
];
|
|
34786
|
+
|
|
34787
|
+
mounted = true;
|
|
34788
|
+
}
|
|
34789
|
+
},
|
|
34790
|
+
p: noop,
|
|
34791
|
+
i(local) {
|
|
34792
|
+
if (current) return;
|
|
34793
|
+
transition_in(t5.$$.fragment, local);
|
|
34794
|
+
current = true;
|
|
34795
|
+
},
|
|
34796
|
+
o(local) {
|
|
34797
|
+
transition_out(t5.$$.fragment, local);
|
|
34798
|
+
current = false;
|
|
34799
|
+
},
|
|
34800
|
+
d(detaching) {
|
|
34801
|
+
if (detaching) detach(p0);
|
|
34802
|
+
if (detaching) detach(t3);
|
|
34803
|
+
if (detaching) detach(hr);
|
|
34804
|
+
if (detaching) detach(t4);
|
|
34805
|
+
if (detaching) detach(p1);
|
|
34806
|
+
destroy_component(t5);
|
|
34807
|
+
/*p1_binding*/ ctx[13](null);
|
|
34808
|
+
mounted = false;
|
|
34809
|
+
run_all(dispose);
|
|
34810
|
+
}
|
|
34811
|
+
};
|
|
34812
|
+
}
|
|
34813
|
+
|
|
34814
|
+
// (44:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
|
|
34815
|
+
function create_default_slot$2(ctx) {
|
|
34816
|
+
let t0;
|
|
34817
|
+
let t1;
|
|
34818
|
+
let t2;
|
|
34819
|
+
let t3;
|
|
34820
|
+
let if_block3_anchor;
|
|
34821
|
+
let current;
|
|
34822
|
+
let if_block0 = /*componentStyle*/ ctx[1] !== 'inline' && create_if_block_3$1(ctx);
|
|
34823
|
+
let if_block1 = /*form*/ ctx[2]?.message && create_if_block_2$1(ctx);
|
|
34824
|
+
let each_value = /*step*/ ctx[5]?.callbacks;
|
|
34411
34825
|
let each_blocks = [];
|
|
34412
34826
|
|
|
34413
34827
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -34418,90 +34832,53 @@ function create_default_slot$2(ctx) {
|
|
|
34418
34832
|
each_blocks[i] = null;
|
|
34419
34833
|
});
|
|
34420
34834
|
|
|
34421
|
-
let if_block2 = (/*metadata*/ ctx[
|
|
34422
|
-
|
|
34423
|
-
t11 = new Locale_strings({
|
|
34424
|
-
props: { key: "dontHaveAnAccount", html: true }
|
|
34425
|
-
});
|
|
34835
|
+
let if_block2 = (/*metadata*/ ctx[4]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[4]?.step?.derived.isStepSelfSubmittable) && create_if_block_1$1(ctx);
|
|
34836
|
+
let if_block3 = /*componentStyle*/ ctx[1] !== 'inline' && create_if_block$2(ctx);
|
|
34426
34837
|
|
|
34427
34838
|
return {
|
|
34428
34839
|
c() {
|
|
34429
34840
|
if (if_block0) if_block0.c();
|
|
34430
34841
|
t0 = space();
|
|
34431
|
-
h1 = element("h1");
|
|
34432
|
-
create_component(t1.$$.fragment);
|
|
34433
|
-
t2 = space();
|
|
34434
34842
|
if (if_block1) if_block1.c();
|
|
34435
|
-
|
|
34843
|
+
t1 = space();
|
|
34436
34844
|
|
|
34437
34845
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
34438
34846
|
each_blocks[i].c();
|
|
34439
34847
|
}
|
|
34440
34848
|
|
|
34441
|
-
|
|
34849
|
+
t2 = space();
|
|
34442
34850
|
if (if_block2) if_block2.c();
|
|
34443
|
-
|
|
34444
|
-
|
|
34445
|
-
|
|
34446
|
-
button0.textContent = `${interpolate('forgotPassword', null, 'Forgot Password?')}`;
|
|
34447
|
-
t7 = text("\n \n ");
|
|
34448
|
-
button1 = element("button");
|
|
34449
|
-
button1.textContent = `${interpolate('forgotUsername', null, 'Forgot Username?')}`;
|
|
34450
|
-
t9 = space();
|
|
34451
|
-
hr = element("hr");
|
|
34452
|
-
t10 = space();
|
|
34453
|
-
p1 = element("p");
|
|
34454
|
-
create_component(t11.$$.fragment);
|
|
34455
|
-
attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
|
|
34456
|
-
attr(p0, "class", "tw_my-4 tw_text-base tw_text-center tw_text-link-dark dark:tw_text-link-light");
|
|
34457
|
-
attr(hr, "class", "tw_border-0 tw_border-b tw_border-secondary-light dark:tw_border-secondary-dark");
|
|
34458
|
-
attr(p1, "class", "tw_text-base tw_text-center tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light");
|
|
34851
|
+
t3 = space();
|
|
34852
|
+
if (if_block3) if_block3.c();
|
|
34853
|
+
if_block3_anchor = empty();
|
|
34459
34854
|
},
|
|
34460
34855
|
m(target, anchor) {
|
|
34461
34856
|
if (if_block0) if_block0.m(target, anchor);
|
|
34462
34857
|
insert(target, t0, anchor);
|
|
34463
|
-
insert(target, h1, anchor);
|
|
34464
|
-
mount_component(t1, h1, null);
|
|
34465
|
-
insert(target, t2, anchor);
|
|
34466
34858
|
if (if_block1) if_block1.m(target, anchor);
|
|
34467
|
-
insert(target,
|
|
34859
|
+
insert(target, t1, anchor);
|
|
34468
34860
|
|
|
34469
34861
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
34470
34862
|
each_blocks[i].m(target, anchor);
|
|
34471
34863
|
}
|
|
34472
34864
|
|
|
34473
|
-
insert(target,
|
|
34865
|
+
insert(target, t2, anchor);
|
|
34474
34866
|
if (if_block2) if_block2.m(target, anchor);
|
|
34475
|
-
insert(target,
|
|
34476
|
-
|
|
34477
|
-
|
|
34478
|
-
append(p0, t7);
|
|
34479
|
-
append(p0, button1);
|
|
34480
|
-
insert(target, t9, anchor);
|
|
34481
|
-
insert(target, hr, anchor);
|
|
34482
|
-
insert(target, t10, anchor);
|
|
34483
|
-
insert(target, p1, anchor);
|
|
34484
|
-
mount_component(t11, p1, null);
|
|
34485
|
-
/*p1_binding*/ ctx[12](p1);
|
|
34867
|
+
insert(target, t3, anchor);
|
|
34868
|
+
if (if_block3) if_block3.m(target, anchor);
|
|
34869
|
+
insert(target, if_block3_anchor, anchor);
|
|
34486
34870
|
current = true;
|
|
34487
|
-
|
|
34488
|
-
if (!mounted) {
|
|
34489
|
-
dispose = [
|
|
34490
|
-
listen(button0, "click", prevent_default(/*click_handler*/ ctx[10])),
|
|
34491
|
-
listen(button1, "click", prevent_default(/*click_handler_1*/ ctx[11]))
|
|
34492
|
-
];
|
|
34493
|
-
|
|
34494
|
-
mounted = true;
|
|
34495
|
-
}
|
|
34496
34871
|
},
|
|
34497
34872
|
p(ctx, dirty) {
|
|
34498
|
-
if (/*
|
|
34873
|
+
if (/*componentStyle*/ ctx[1] !== 'inline') {
|
|
34499
34874
|
if (if_block0) {
|
|
34500
|
-
|
|
34875
|
+
if_block0.p(ctx, dirty);
|
|
34876
|
+
|
|
34877
|
+
if (dirty & /*componentStyle*/ 2) {
|
|
34501
34878
|
transition_in(if_block0, 1);
|
|
34502
34879
|
}
|
|
34503
34880
|
} else {
|
|
34504
|
-
if_block0 =
|
|
34881
|
+
if_block0 = create_if_block_3$1(ctx);
|
|
34505
34882
|
if_block0.c();
|
|
34506
34883
|
transition_in(if_block0, 1);
|
|
34507
34884
|
if_block0.m(t0.parentNode, t0);
|
|
@@ -34516,18 +34893,18 @@ function create_default_slot$2(ctx) {
|
|
|
34516
34893
|
check_outros();
|
|
34517
34894
|
}
|
|
34518
34895
|
|
|
34519
|
-
if (/*form*/ ctx[
|
|
34896
|
+
if (/*form*/ ctx[2]?.message) {
|
|
34520
34897
|
if (if_block1) {
|
|
34521
34898
|
if_block1.p(ctx, dirty);
|
|
34522
34899
|
|
|
34523
|
-
if (dirty & /*form*/
|
|
34900
|
+
if (dirty & /*form*/ 4) {
|
|
34524
34901
|
transition_in(if_block1, 1);
|
|
34525
34902
|
}
|
|
34526
34903
|
} else {
|
|
34527
|
-
if_block1 =
|
|
34904
|
+
if_block1 = create_if_block_2$1(ctx);
|
|
34528
34905
|
if_block1.c();
|
|
34529
34906
|
transition_in(if_block1, 1);
|
|
34530
|
-
if_block1.m(
|
|
34907
|
+
if_block1.m(t1.parentNode, t1);
|
|
34531
34908
|
}
|
|
34532
34909
|
} else if (if_block1) {
|
|
34533
34910
|
group_outros();
|
|
@@ -34539,8 +34916,8 @@ function create_default_slot$2(ctx) {
|
|
|
34539
34916
|
check_outros();
|
|
34540
34917
|
}
|
|
34541
34918
|
|
|
34542
|
-
if (dirty & /*step, metadata, determineSubmission, $styleStore*/
|
|
34543
|
-
each_value = /*step*/ ctx[
|
|
34919
|
+
if (dirty & /*step, metadata, determineSubmission, $styleStore*/ 1584) {
|
|
34920
|
+
each_value = /*step*/ ctx[5]?.callbacks;
|
|
34544
34921
|
let i;
|
|
34545
34922
|
|
|
34546
34923
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -34553,7 +34930,7 @@ function create_default_slot$2(ctx) {
|
|
|
34553
34930
|
each_blocks[i] = create_each_block(child_ctx);
|
|
34554
34931
|
each_blocks[i].c();
|
|
34555
34932
|
transition_in(each_blocks[i], 1);
|
|
34556
|
-
each_blocks[i].m(
|
|
34933
|
+
each_blocks[i].m(t2.parentNode, t2);
|
|
34557
34934
|
}
|
|
34558
34935
|
}
|
|
34559
34936
|
|
|
@@ -34566,18 +34943,18 @@ function create_default_slot$2(ctx) {
|
|
|
34566
34943
|
check_outros();
|
|
34567
34944
|
}
|
|
34568
34945
|
|
|
34569
|
-
if (/*metadata*/ ctx[
|
|
34946
|
+
if (/*metadata*/ ctx[4]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[4]?.step?.derived.isStepSelfSubmittable) {
|
|
34570
34947
|
if (if_block2) {
|
|
34571
34948
|
if_block2.p(ctx, dirty);
|
|
34572
34949
|
|
|
34573
|
-
if (dirty & /*metadata*/
|
|
34950
|
+
if (dirty & /*metadata*/ 16) {
|
|
34574
34951
|
transition_in(if_block2, 1);
|
|
34575
34952
|
}
|
|
34576
34953
|
} else {
|
|
34577
|
-
if_block2 =
|
|
34954
|
+
if_block2 = create_if_block_1$1(ctx);
|
|
34578
34955
|
if_block2.c();
|
|
34579
34956
|
transition_in(if_block2, 1);
|
|
34580
|
-
if_block2.m(
|
|
34957
|
+
if_block2.m(t3.parentNode, t3);
|
|
34581
34958
|
}
|
|
34582
34959
|
} else if (if_block2) {
|
|
34583
34960
|
group_outros();
|
|
@@ -34588,11 +34965,33 @@ function create_default_slot$2(ctx) {
|
|
|
34588
34965
|
|
|
34589
34966
|
check_outros();
|
|
34590
34967
|
}
|
|
34968
|
+
|
|
34969
|
+
if (/*componentStyle*/ ctx[1] !== 'inline') {
|
|
34970
|
+
if (if_block3) {
|
|
34971
|
+
if_block3.p(ctx, dirty);
|
|
34972
|
+
|
|
34973
|
+
if (dirty & /*componentStyle*/ 2) {
|
|
34974
|
+
transition_in(if_block3, 1);
|
|
34975
|
+
}
|
|
34976
|
+
} else {
|
|
34977
|
+
if_block3 = create_if_block$2(ctx);
|
|
34978
|
+
if_block3.c();
|
|
34979
|
+
transition_in(if_block3, 1);
|
|
34980
|
+
if_block3.m(if_block3_anchor.parentNode, if_block3_anchor);
|
|
34981
|
+
}
|
|
34982
|
+
} else if (if_block3) {
|
|
34983
|
+
group_outros();
|
|
34984
|
+
|
|
34985
|
+
transition_out(if_block3, 1, 1, () => {
|
|
34986
|
+
if_block3 = null;
|
|
34987
|
+
});
|
|
34988
|
+
|
|
34989
|
+
check_outros();
|
|
34990
|
+
}
|
|
34591
34991
|
},
|
|
34592
34992
|
i(local) {
|
|
34593
34993
|
if (current) return;
|
|
34594
34994
|
transition_in(if_block0);
|
|
34595
|
-
transition_in(t1.$$.fragment, local);
|
|
34596
34995
|
transition_in(if_block1);
|
|
34597
34996
|
|
|
34598
34997
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -34600,12 +34999,11 @@ function create_default_slot$2(ctx) {
|
|
|
34600
34999
|
}
|
|
34601
35000
|
|
|
34602
35001
|
transition_in(if_block2);
|
|
34603
|
-
transition_in(
|
|
35002
|
+
transition_in(if_block3);
|
|
34604
35003
|
current = true;
|
|
34605
35004
|
},
|
|
34606
35005
|
o(local) {
|
|
34607
35006
|
transition_out(if_block0);
|
|
34608
|
-
transition_out(t1.$$.fragment, local);
|
|
34609
35007
|
transition_out(if_block1);
|
|
34610
35008
|
each_blocks = each_blocks.filter(Boolean);
|
|
34611
35009
|
|
|
@@ -34614,30 +35012,20 @@ function create_default_slot$2(ctx) {
|
|
|
34614
35012
|
}
|
|
34615
35013
|
|
|
34616
35014
|
transition_out(if_block2);
|
|
34617
|
-
transition_out(
|
|
35015
|
+
transition_out(if_block3);
|
|
34618
35016
|
current = false;
|
|
34619
35017
|
},
|
|
34620
35018
|
d(detaching) {
|
|
34621
35019
|
if (if_block0) if_block0.d(detaching);
|
|
34622
35020
|
if (detaching) detach(t0);
|
|
34623
|
-
if (detaching) detach(h1);
|
|
34624
|
-
destroy_component(t1);
|
|
34625
|
-
if (detaching) detach(t2);
|
|
34626
35021
|
if (if_block1) if_block1.d(detaching);
|
|
34627
|
-
if (detaching) detach(
|
|
35022
|
+
if (detaching) detach(t1);
|
|
34628
35023
|
destroy_each(each_blocks, detaching);
|
|
34629
|
-
if (detaching) detach(
|
|
35024
|
+
if (detaching) detach(t2);
|
|
34630
35025
|
if (if_block2) if_block2.d(detaching);
|
|
34631
|
-
if (detaching) detach(
|
|
34632
|
-
if (
|
|
34633
|
-
if (detaching) detach(
|
|
34634
|
-
if (detaching) detach(hr);
|
|
34635
|
-
if (detaching) detach(t10);
|
|
34636
|
-
if (detaching) detach(p1);
|
|
34637
|
-
destroy_component(t11);
|
|
34638
|
-
/*p1_binding*/ ctx[12](null);
|
|
34639
|
-
mounted = false;
|
|
34640
|
-
run_all(dispose);
|
|
35026
|
+
if (detaching) detach(t3);
|
|
35027
|
+
if (if_block3) if_block3.d(detaching);
|
|
35028
|
+
if (detaching) detach(if_block3_anchor);
|
|
34641
35029
|
}
|
|
34642
35030
|
};
|
|
34643
35031
|
}
|
|
@@ -34648,12 +35036,12 @@ function create_fragment$2(ctx) {
|
|
|
34648
35036
|
let current;
|
|
34649
35037
|
|
|
34650
35038
|
function form_1_formEl_binding(value) {
|
|
34651
|
-
/*form_1_formEl_binding*/ ctx[
|
|
35039
|
+
/*form_1_formEl_binding*/ ctx[14](value);
|
|
34652
35040
|
}
|
|
34653
35041
|
|
|
34654
35042
|
let form_1_props = {
|
|
34655
35043
|
ariaDescribedBy: "formFailureMessageAlert",
|
|
34656
|
-
onSubmitWhenValid: /*form*/ ctx[
|
|
35044
|
+
onSubmitWhenValid: /*form*/ ctx[2]?.submit,
|
|
34657
35045
|
$$slots: { default: [create_default_slot$2] },
|
|
34658
35046
|
$$scope: { ctx }
|
|
34659
35047
|
};
|
|
@@ -34675,9 +35063,9 @@ function create_fragment$2(ctx) {
|
|
|
34675
35063
|
},
|
|
34676
35064
|
p(ctx, [dirty]) {
|
|
34677
35065
|
const form_1_changes = {};
|
|
34678
|
-
if (dirty & /*form*/
|
|
35066
|
+
if (dirty & /*form*/ 4) form_1_changes.onSubmitWhenValid = /*form*/ ctx[2]?.submit;
|
|
34679
35067
|
|
|
34680
|
-
if (dirty & /*$$scope, linkWrapper, journey, metadata, step, $styleStore, alertNeedsFocus, formMessageKey, form*/
|
|
35068
|
+
if (dirty & /*$$scope, linkWrapper, journey, componentStyle, metadata, step, $styleStore, alertNeedsFocus, formMessageKey, form*/ 263166) {
|
|
34681
35069
|
form_1_changes.$$scope = { dirty, ctx };
|
|
34682
35070
|
}
|
|
34683
35071
|
|
|
@@ -34706,7 +35094,8 @@ function create_fragment$2(ctx) {
|
|
|
34706
35094
|
|
|
34707
35095
|
function instance$2($$self, $$props, $$invalidate) {
|
|
34708
35096
|
let $styleStore;
|
|
34709
|
-
component_subscribe($$self, styleStore, $$value => $$invalidate(
|
|
35097
|
+
component_subscribe($$self, styleStore, $$value => $$invalidate(9, $styleStore = $$value));
|
|
35098
|
+
let { componentStyle } = $$props;
|
|
34710
35099
|
let { form } = $$props;
|
|
34711
35100
|
let { formEl = null } = $$props;
|
|
34712
35101
|
let { journey } = $$props;
|
|
@@ -34726,10 +35115,14 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
34726
35115
|
}
|
|
34727
35116
|
|
|
34728
35117
|
afterUpdate(() => {
|
|
34729
|
-
$$invalidate(
|
|
35118
|
+
$$invalidate(6, alertNeedsFocus = !!form?.message);
|
|
34730
35119
|
});
|
|
34731
35120
|
|
|
34732
|
-
onMount(() =>
|
|
35121
|
+
onMount(() => {
|
|
35122
|
+
if (componentStyle === 'modal') {
|
|
35123
|
+
captureLinks(linkWrapper, journey);
|
|
35124
|
+
}
|
|
35125
|
+
});
|
|
34733
35126
|
|
|
34734
35127
|
const click_handler = () => {
|
|
34735
35128
|
journey.push({ tree: 'ResetPassword' });
|
|
@@ -34742,7 +35135,7 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
34742
35135
|
function p1_binding($$value) {
|
|
34743
35136
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
34744
35137
|
linkWrapper = $$value;
|
|
34745
|
-
$$invalidate(
|
|
35138
|
+
$$invalidate(8, linkWrapper);
|
|
34746
35139
|
});
|
|
34747
35140
|
}
|
|
34748
35141
|
|
|
@@ -34752,23 +35145,25 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
34752
35145
|
}
|
|
34753
35146
|
|
|
34754
35147
|
$$self.$$set = $$props => {
|
|
34755
|
-
if ('
|
|
35148
|
+
if ('componentStyle' in $$props) $$invalidate(1, componentStyle = $$props.componentStyle);
|
|
35149
|
+
if ('form' in $$props) $$invalidate(2, form = $$props.form);
|
|
34756
35150
|
if ('formEl' in $$props) $$invalidate(0, formEl = $$props.formEl);
|
|
34757
|
-
if ('journey' in $$props) $$invalidate(
|
|
34758
|
-
if ('metadata' in $$props) $$invalidate(
|
|
34759
|
-
if ('step' in $$props) $$invalidate(
|
|
35151
|
+
if ('journey' in $$props) $$invalidate(3, journey = $$props.journey);
|
|
35152
|
+
if ('metadata' in $$props) $$invalidate(4, metadata = $$props.metadata);
|
|
35153
|
+
if ('step' in $$props) $$invalidate(5, step = $$props.step);
|
|
34760
35154
|
};
|
|
34761
35155
|
|
|
34762
35156
|
$$self.$$.update = () => {
|
|
34763
|
-
if ($$self.$$.dirty & /*form*/
|
|
35157
|
+
if ($$self.$$.dirty & /*form*/ 4) {
|
|
34764
35158
|
{
|
|
34765
|
-
$$invalidate(
|
|
35159
|
+
$$invalidate(7, formMessageKey = convertStringToKey(form?.message));
|
|
34766
35160
|
}
|
|
34767
35161
|
}
|
|
34768
35162
|
};
|
|
34769
35163
|
|
|
34770
35164
|
return [
|
|
34771
35165
|
formEl,
|
|
35166
|
+
componentStyle,
|
|
34772
35167
|
form,
|
|
34773
35168
|
journey,
|
|
34774
35169
|
metadata,
|
|
@@ -34790,11 +35185,12 @@ class Login extends SvelteComponent {
|
|
|
34790
35185
|
super();
|
|
34791
35186
|
|
|
34792
35187
|
init(this, options, instance$2, create_fragment$2, safe_not_equal, {
|
|
34793
|
-
|
|
35188
|
+
componentStyle: 1,
|
|
35189
|
+
form: 2,
|
|
34794
35190
|
formEl: 0,
|
|
34795
|
-
journey:
|
|
34796
|
-
metadata:
|
|
34797
|
-
step:
|
|
35191
|
+
journey: 3,
|
|
35192
|
+
metadata: 4,
|
|
35193
|
+
step: 5
|
|
34798
35194
|
});
|
|
34799
35195
|
}
|
|
34800
35196
|
}
|
|
@@ -34833,7 +35229,7 @@ function create_else_block$1(ctx) {
|
|
|
34833
35229
|
alert = new Alert({
|
|
34834
35230
|
props: {
|
|
34835
35231
|
id: "unrecoverableStepError",
|
|
34836
|
-
needsFocus: /*alertNeedsFocus*/ ctx[
|
|
35232
|
+
needsFocus: /*alertNeedsFocus*/ ctx[4],
|
|
34837
35233
|
type: "error",
|
|
34838
35234
|
$$slots: { default: [create_default_slot_1] },
|
|
34839
35235
|
$$scope: { ctx }
|
|
@@ -34843,7 +35239,7 @@ function create_else_block$1(ctx) {
|
|
|
34843
35239
|
button = new Button({
|
|
34844
35240
|
props: {
|
|
34845
35241
|
style: "secondary",
|
|
34846
|
-
onClick: /*tryAgain*/ ctx[
|
|
35242
|
+
onClick: /*tryAgain*/ ctx[7],
|
|
34847
35243
|
$$slots: { default: [create_default_slot$1] },
|
|
34848
35244
|
$$scope: { ctx }
|
|
34849
35245
|
}
|
|
@@ -34863,16 +35259,16 @@ function create_else_block$1(ctx) {
|
|
|
34863
35259
|
},
|
|
34864
35260
|
p(ctx, dirty) {
|
|
34865
35261
|
const alert_changes = {};
|
|
34866
|
-
if (dirty & /*alertNeedsFocus*/
|
|
35262
|
+
if (dirty & /*alertNeedsFocus*/ 16) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[4];
|
|
34867
35263
|
|
|
34868
|
-
if (dirty & /*$$scope*/
|
|
35264
|
+
if (dirty & /*$$scope*/ 512) {
|
|
34869
35265
|
alert_changes.$$scope = { dirty, ctx };
|
|
34870
35266
|
}
|
|
34871
35267
|
|
|
34872
35268
|
alert.$set(alert_changes);
|
|
34873
35269
|
const button_changes = {};
|
|
34874
35270
|
|
|
34875
|
-
if (dirty & /*$$scope*/
|
|
35271
|
+
if (dirty & /*$$scope*/ 512) {
|
|
34876
35272
|
button_changes.$$scope = { dirty, ctx };
|
|
34877
35273
|
}
|
|
34878
35274
|
|
|
@@ -34897,7 +35293,7 @@ function create_else_block$1(ctx) {
|
|
|
34897
35293
|
};
|
|
34898
35294
|
}
|
|
34899
35295
|
|
|
34900
|
-
// (
|
|
35296
|
+
// (53:36)
|
|
34901
35297
|
function create_if_block_3(ctx) {
|
|
34902
35298
|
let div;
|
|
34903
35299
|
let spinner;
|
|
@@ -34938,7 +35334,7 @@ function create_if_block_3(ctx) {
|
|
|
34938
35334
|
};
|
|
34939
35335
|
}
|
|
34940
35336
|
|
|
34941
|
-
// (
|
|
35337
|
+
// (27:0) {#if !$journeyStore?.completed}
|
|
34942
35338
|
function create_if_block$1(ctx) {
|
|
34943
35339
|
let current_block_type_index;
|
|
34944
35340
|
let if_block;
|
|
@@ -34948,8 +35344,8 @@ function create_if_block$1(ctx) {
|
|
|
34948
35344
|
const if_blocks = [];
|
|
34949
35345
|
|
|
34950
35346
|
function select_block_type_1(ctx, dirty) {
|
|
34951
|
-
if (!/*$journeyStore*/ ctx[
|
|
34952
|
-
if (/*$journeyStore*/ ctx[
|
|
35347
|
+
if (!/*$journeyStore*/ ctx[5].step) return 0;
|
|
35348
|
+
if (/*$journeyStore*/ ctx[5].step.type === StepType$1.Step) return 1;
|
|
34953
35349
|
return -1;
|
|
34954
35350
|
}
|
|
34955
35351
|
|
|
@@ -35025,7 +35421,7 @@ function create_if_block$1(ctx) {
|
|
|
35025
35421
|
};
|
|
35026
35422
|
}
|
|
35027
35423
|
|
|
35028
|
-
// (
|
|
35424
|
+
// (58:2) <Alert id="unrecoverableStepError" needsFocus={alertNeedsFocus} type="error">
|
|
35029
35425
|
function create_default_slot_1(ctx) {
|
|
35030
35426
|
let t;
|
|
35031
35427
|
let current;
|
|
@@ -35058,7 +35454,7 @@ function create_default_slot_1(ctx) {
|
|
|
35058
35454
|
};
|
|
35059
35455
|
}
|
|
35060
35456
|
|
|
35061
|
-
// (
|
|
35457
|
+
// (61:2) <Button style="secondary" onClick={tryAgain}>
|
|
35062
35458
|
function create_default_slot$1(ctx) {
|
|
35063
35459
|
let t;
|
|
35064
35460
|
let current;
|
|
@@ -35088,7 +35484,7 @@ function create_default_slot$1(ctx) {
|
|
|
35088
35484
|
};
|
|
35089
35485
|
}
|
|
35090
35486
|
|
|
35091
|
-
// (
|
|
35487
|
+
// (32:54)
|
|
35092
35488
|
function create_if_block_2(ctx) {
|
|
35093
35489
|
let switch_instance;
|
|
35094
35490
|
let updating_formEl;
|
|
@@ -35096,27 +35492,28 @@ function create_if_block_2(ctx) {
|
|
|
35096
35492
|
let current;
|
|
35097
35493
|
|
|
35098
35494
|
function switch_instance_formEl_binding(value) {
|
|
35099
|
-
/*switch_instance_formEl_binding*/ ctx[
|
|
35495
|
+
/*switch_instance_formEl_binding*/ ctx[8](value);
|
|
35100
35496
|
}
|
|
35101
35497
|
|
|
35102
|
-
var switch_value = mapStepToStage(/*$journeyStore*/ ctx[
|
|
35498
|
+
var switch_value = mapStepToStage(/*$journeyStore*/ ctx[5].step);
|
|
35103
35499
|
|
|
35104
35500
|
function switch_props(ctx) {
|
|
35105
35501
|
let switch_instance_props = {
|
|
35502
|
+
componentStyle: /*componentStyle*/ ctx[1],
|
|
35106
35503
|
form: {
|
|
35107
|
-
icon: /*displayIcon*/ ctx[
|
|
35108
|
-
message: /*$journeyStore*/ ctx[
|
|
35109
|
-
status: (/*$journeyStore*/ ctx[
|
|
35110
|
-
submit: /*submitForm*/ ctx[
|
|
35504
|
+
icon: /*displayIcon*/ ctx[2],
|
|
35505
|
+
message: /*$journeyStore*/ ctx[5].error?.message || '',
|
|
35506
|
+
status: (/*$journeyStore*/ ctx[5].error?.code) ? 'error' : 'ok',
|
|
35507
|
+
submit: /*submitForm*/ ctx[6]
|
|
35111
35508
|
},
|
|
35112
35509
|
journey: {
|
|
35113
|
-
loading: /*$journeyStore*/ ctx[
|
|
35114
|
-
pop: /*journeyStore*/ ctx[
|
|
35115
|
-
push: /*journeyStore*/ ctx[
|
|
35510
|
+
loading: /*$journeyStore*/ ctx[5].loading,
|
|
35511
|
+
pop: /*journeyStore*/ ctx[3].pop,
|
|
35512
|
+
push: /*journeyStore*/ ctx[3].push,
|
|
35116
35513
|
stack
|
|
35117
35514
|
},
|
|
35118
|
-
metadata: /*$journeyStore*/ ctx[
|
|
35119
|
-
step: /*$journeyStore*/ ctx[
|
|
35515
|
+
metadata: /*$journeyStore*/ ctx[5].metadata,
|
|
35516
|
+
step: /*$journeyStore*/ ctx[5].step
|
|
35120
35517
|
};
|
|
35121
35518
|
|
|
35122
35519
|
if (/*formEl*/ ctx[0] !== void 0) {
|
|
@@ -35143,23 +35540,24 @@ function create_if_block_2(ctx) {
|
|
|
35143
35540
|
},
|
|
35144
35541
|
p(ctx, dirty) {
|
|
35145
35542
|
const switch_instance_changes = {};
|
|
35543
|
+
if (dirty & /*componentStyle*/ 2) switch_instance_changes.componentStyle = /*componentStyle*/ ctx[1];
|
|
35146
35544
|
|
|
35147
|
-
if (dirty & /*displayIcon, $journeyStore*/
|
|
35148
|
-
icon: /*displayIcon*/ ctx[
|
|
35149
|
-
message: /*$journeyStore*/ ctx[
|
|
35150
|
-
status: (/*$journeyStore*/ ctx[
|
|
35151
|
-
submit: /*submitForm*/ ctx[
|
|
35545
|
+
if (dirty & /*displayIcon, $journeyStore*/ 36) switch_instance_changes.form = {
|
|
35546
|
+
icon: /*displayIcon*/ ctx[2],
|
|
35547
|
+
message: /*$journeyStore*/ ctx[5].error?.message || '',
|
|
35548
|
+
status: (/*$journeyStore*/ ctx[5].error?.code) ? 'error' : 'ok',
|
|
35549
|
+
submit: /*submitForm*/ ctx[6]
|
|
35152
35550
|
};
|
|
35153
35551
|
|
|
35154
|
-
if (dirty & /*$journeyStore, journeyStore*/
|
|
35155
|
-
loading: /*$journeyStore*/ ctx[
|
|
35156
|
-
pop: /*journeyStore*/ ctx[
|
|
35157
|
-
push: /*journeyStore*/ ctx[
|
|
35552
|
+
if (dirty & /*$journeyStore, journeyStore*/ 40) switch_instance_changes.journey = {
|
|
35553
|
+
loading: /*$journeyStore*/ ctx[5].loading,
|
|
35554
|
+
pop: /*journeyStore*/ ctx[3].pop,
|
|
35555
|
+
push: /*journeyStore*/ ctx[3].push,
|
|
35158
35556
|
stack
|
|
35159
35557
|
};
|
|
35160
35558
|
|
|
35161
|
-
if (dirty & /*$journeyStore*/
|
|
35162
|
-
if (dirty & /*$journeyStore*/
|
|
35559
|
+
if (dirty & /*$journeyStore*/ 32) switch_instance_changes.metadata = /*$journeyStore*/ ctx[5].metadata;
|
|
35560
|
+
if (dirty & /*$journeyStore*/ 32) switch_instance_changes.step = /*$journeyStore*/ ctx[5].step;
|
|
35163
35561
|
|
|
35164
35562
|
if (!updating_formEl && dirty & /*formEl*/ 1) {
|
|
35165
35563
|
updating_formEl = true;
|
|
@@ -35167,7 +35565,7 @@ function create_if_block_2(ctx) {
|
|
|
35167
35565
|
add_flush_callback(() => updating_formEl = false);
|
|
35168
35566
|
}
|
|
35169
35567
|
|
|
35170
|
-
if (switch_value !== (switch_value = mapStepToStage(/*$journeyStore*/ ctx[
|
|
35568
|
+
if (switch_value !== (switch_value = mapStepToStage(/*$journeyStore*/ ctx[5].step))) {
|
|
35171
35569
|
if (switch_instance) {
|
|
35172
35570
|
group_outros();
|
|
35173
35571
|
const old_component = switch_instance;
|
|
@@ -35208,7 +35606,7 @@ function create_if_block_2(ctx) {
|
|
|
35208
35606
|
};
|
|
35209
35607
|
}
|
|
35210
35608
|
|
|
35211
|
-
// (
|
|
35609
|
+
// (28:2) {#if !$journeyStore.step}
|
|
35212
35610
|
function create_if_block_1(ctx) {
|
|
35213
35611
|
let div;
|
|
35214
35612
|
let spinner;
|
|
@@ -35258,8 +35656,8 @@ function create_fragment$1(ctx) {
|
|
|
35258
35656
|
const if_blocks = [];
|
|
35259
35657
|
|
|
35260
35658
|
function select_block_type(ctx, dirty) {
|
|
35261
|
-
if (!/*$journeyStore*/ ctx[
|
|
35262
|
-
if (/*$journeyStore*/ ctx[
|
|
35659
|
+
if (!/*$journeyStore*/ ctx[5]?.completed) return 0;
|
|
35660
|
+
if (/*$journeyStore*/ ctx[5]?.successful) return 1;
|
|
35263
35661
|
return 2;
|
|
35264
35662
|
}
|
|
35265
35663
|
|
|
@@ -35322,9 +35720,10 @@ function create_fragment$1(ctx) {
|
|
|
35322
35720
|
function instance$1($$self, $$props, $$invalidate) {
|
|
35323
35721
|
let $journeyStore,
|
|
35324
35722
|
$$unsubscribe_journeyStore = noop,
|
|
35325
|
-
$$subscribe_journeyStore = () => ($$unsubscribe_journeyStore(), $$unsubscribe_journeyStore = subscribe(journeyStore, $$value => $$invalidate(
|
|
35723
|
+
$$subscribe_journeyStore = () => ($$unsubscribe_journeyStore(), $$unsubscribe_journeyStore = subscribe(journeyStore, $$value => $$invalidate(5, $journeyStore = $$value)), journeyStore);
|
|
35326
35724
|
|
|
35327
35725
|
$$self.$$.on_destroy.push(() => $$unsubscribe_journeyStore());
|
|
35726
|
+
let { componentStyle } = $$props;
|
|
35328
35727
|
let { displayIcon } = $$props;
|
|
35329
35728
|
let { formEl = null } = $$props;
|
|
35330
35729
|
let { journeyStore } = $$props;
|
|
@@ -35342,7 +35741,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
35342
35741
|
}
|
|
35343
35742
|
|
|
35344
35743
|
afterUpdate(() => {
|
|
35345
|
-
$$invalidate(
|
|
35744
|
+
$$invalidate(4, alertNeedsFocus = !$journeyStore.successful);
|
|
35346
35745
|
});
|
|
35347
35746
|
|
|
35348
35747
|
function switch_instance_formEl_binding(value) {
|
|
@@ -35351,13 +35750,15 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
35351
35750
|
}
|
|
35352
35751
|
|
|
35353
35752
|
$$self.$$set = $$props => {
|
|
35354
|
-
if ('
|
|
35753
|
+
if ('componentStyle' in $$props) $$invalidate(1, componentStyle = $$props.componentStyle);
|
|
35754
|
+
if ('displayIcon' in $$props) $$invalidate(2, displayIcon = $$props.displayIcon);
|
|
35355
35755
|
if ('formEl' in $$props) $$invalidate(0, formEl = $$props.formEl);
|
|
35356
|
-
if ('journeyStore' in $$props) $$subscribe_journeyStore($$invalidate(
|
|
35756
|
+
if ('journeyStore' in $$props) $$subscribe_journeyStore($$invalidate(3, journeyStore = $$props.journeyStore));
|
|
35357
35757
|
};
|
|
35358
35758
|
|
|
35359
35759
|
return [
|
|
35360
35760
|
formEl,
|
|
35761
|
+
componentStyle,
|
|
35361
35762
|
displayIcon,
|
|
35362
35763
|
journeyStore,
|
|
35363
35764
|
alertNeedsFocus,
|
|
@@ -35373,9 +35774,10 @@ class Journey extends SvelteComponent {
|
|
|
35373
35774
|
super();
|
|
35374
35775
|
|
|
35375
35776
|
init(this, options, instance$1, create_fragment$1, safe_not_equal, {
|
|
35376
|
-
|
|
35777
|
+
componentStyle: 1,
|
|
35778
|
+
displayIcon: 2,
|
|
35377
35779
|
formEl: 0,
|
|
35378
|
-
journeyStore:
|
|
35780
|
+
journeyStore: 3
|
|
35379
35781
|
});
|
|
35380
35782
|
}
|
|
35381
35783
|
}
|
|
@@ -35393,6 +35795,7 @@ function create_else_block(ctx) {
|
|
|
35393
35795
|
}
|
|
35394
35796
|
|
|
35395
35797
|
let journey_1_props = {
|
|
35798
|
+
componentStyle: "inline",
|
|
35396
35799
|
displayIcon: /*$styleStore*/ ctx[4]?.stage?.icon ?? true,
|
|
35397
35800
|
journeyStore: /*journeyStore*/ ctx[5]
|
|
35398
35801
|
};
|
|
@@ -35524,6 +35927,7 @@ function create_default_slot(ctx) {
|
|
|
35524
35927
|
}
|
|
35525
35928
|
|
|
35526
35929
|
let journey_1_props = {
|
|
35930
|
+
componentStyle: "modal",
|
|
35527
35931
|
displayIcon: /*$styleStore*/ ctx[4]?.stage?.icon ?? !/*$styleStore*/ ctx[4]?.logo,
|
|
35528
35932
|
journeyStore: /*journeyStore*/ ctx[5]
|
|
35529
35933
|
};
|