@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.cjs
CHANGED
|
@@ -16730,6 +16730,8 @@ var backToDefault = "Back to Sign In";
|
|
|
16730
16730
|
var backToLogin = "Back to Sign In";
|
|
16731
16731
|
var dontHaveAnAccount = "No account? <a href='?journey=Registration'>Register here!</a>";
|
|
16732
16732
|
var closeModal = "Close";
|
|
16733
|
+
var charactersCannotRepeatMoreThan = "Character cannot repeat more than {max} times";
|
|
16734
|
+
var charactersCannotRepeatMoreThanCaseInsensitive = "Character cannot repeat more than {max} times (case insensitive)";
|
|
16733
16735
|
var chooseDifferentUsername = "Please choose a different username.";
|
|
16734
16736
|
var confirmPassword = "Confirm password";
|
|
16735
16737
|
var constraintViolationForPassword = "Password does not meet the requirements.";
|
|
@@ -16762,6 +16764,9 @@ var nextButton = "Next";
|
|
|
16762
16764
|
var notToExceedMaximumCharacterLength = "No more than {max} characters";
|
|
16763
16765
|
var noLessThanMinimumCharacterLength = "At least {min} character(s)";
|
|
16764
16766
|
var passwordCallback = "Password";
|
|
16767
|
+
var passwordCannotContainCommonPasswords = "Password cannot contain common passwords";
|
|
16768
|
+
var passwordCannotContainCommonPasswordsOrBeReversible = "Password cannot contain common passwords or reversible text";
|
|
16769
|
+
var passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan = "Password cannot contain common passwords or reversible text less than {min} characters";
|
|
16765
16770
|
var passwordRequirements = "Password requirements:";
|
|
16766
16771
|
var pleaseCheckValue = "Please check this value";
|
|
16767
16772
|
var pleaseConfirm = "Please confirm";
|
|
@@ -16775,7 +16780,11 @@ var registerSuccess = "Registration successful!";
|
|
|
16775
16780
|
var requiredField = "Value is required";
|
|
16776
16781
|
var securityAnswer = "Security answer";
|
|
16777
16782
|
var securityQuestions = "Security question(s)";
|
|
16778
|
-
var securityQuestionsPrompt = "Provide
|
|
16783
|
+
var securityQuestionsPrompt = "Provide security question(s) and answer(s):";
|
|
16784
|
+
var shouldContainANumber = "Should contain a number";
|
|
16785
|
+
var shouldContainAnUppercase = "Should contain an uppercase letter";
|
|
16786
|
+
var shouldContainALowercase = "Should contain a lowercase letter";
|
|
16787
|
+
var shouldContainASymbol = "Should contain a symbol";
|
|
16779
16788
|
var showPassword = "Show password";
|
|
16780
16789
|
var sn = "Last name";
|
|
16781
16790
|
var submitButton = "Submit";
|
|
@@ -16799,6 +16808,8 @@ var fallback = {
|
|
|
16799
16808
|
backToLogin: backToLogin,
|
|
16800
16809
|
dontHaveAnAccount: dontHaveAnAccount,
|
|
16801
16810
|
closeModal: closeModal,
|
|
16811
|
+
charactersCannotRepeatMoreThan: charactersCannotRepeatMoreThan,
|
|
16812
|
+
charactersCannotRepeatMoreThanCaseInsensitive: charactersCannotRepeatMoreThanCaseInsensitive,
|
|
16802
16813
|
chooseDifferentUsername: chooseDifferentUsername,
|
|
16803
16814
|
confirmPassword: confirmPassword,
|
|
16804
16815
|
constraintViolationForPassword: constraintViolationForPassword,
|
|
@@ -16831,6 +16842,9 @@ var fallback = {
|
|
|
16831
16842
|
notToExceedMaximumCharacterLength: notToExceedMaximumCharacterLength,
|
|
16832
16843
|
noLessThanMinimumCharacterLength: noLessThanMinimumCharacterLength,
|
|
16833
16844
|
passwordCallback: passwordCallback,
|
|
16845
|
+
passwordCannotContainCommonPasswords: passwordCannotContainCommonPasswords,
|
|
16846
|
+
passwordCannotContainCommonPasswordsOrBeReversible: passwordCannotContainCommonPasswordsOrBeReversible,
|
|
16847
|
+
passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan: passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan,
|
|
16834
16848
|
passwordRequirements: passwordRequirements,
|
|
16835
16849
|
pleaseCheckValue: pleaseCheckValue,
|
|
16836
16850
|
pleaseConfirm: pleaseConfirm,
|
|
@@ -16845,6 +16859,10 @@ var fallback = {
|
|
|
16845
16859
|
securityAnswer: securityAnswer,
|
|
16846
16860
|
securityQuestions: securityQuestions,
|
|
16847
16861
|
securityQuestionsPrompt: securityQuestionsPrompt,
|
|
16862
|
+
shouldContainANumber: shouldContainANumber,
|
|
16863
|
+
shouldContainAnUppercase: shouldContainAnUppercase,
|
|
16864
|
+
shouldContainALowercase: shouldContainALowercase,
|
|
16865
|
+
shouldContainASymbol: shouldContainASymbol,
|
|
16848
16866
|
showPassword: showPassword,
|
|
16849
16867
|
sn: sn,
|
|
16850
16868
|
submitButton: submitButton,
|
|
@@ -16871,6 +16889,8 @@ const stringsSchema = z
|
|
|
16871
16889
|
backToLogin: z.string(),
|
|
16872
16890
|
dontHaveAnAccount: z.string(),
|
|
16873
16891
|
closeModal: z.string(),
|
|
16892
|
+
charactersCannotRepeatMoreThan: z.string(),
|
|
16893
|
+
charactersCannotRepeatMoreThanCaseInsensitive: z.string(),
|
|
16874
16894
|
chooseDifferentUsername: z.string(),
|
|
16875
16895
|
confirmPassword: z.string(),
|
|
16876
16896
|
constraintViolationForPassword: z.string(),
|
|
@@ -16903,6 +16923,9 @@ const stringsSchema = z
|
|
|
16903
16923
|
notToExceedMaximumCharacterLength: z.string(),
|
|
16904
16924
|
noLessThanMinimumCharacterLength: z.string(),
|
|
16905
16925
|
passwordCallback: z.string(),
|
|
16926
|
+
passwordCannotContainCommonPasswords: z.string(),
|
|
16927
|
+
passwordCannotContainCommonPasswordsOrBeReversible: z.string(),
|
|
16928
|
+
passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan: z.string(),
|
|
16906
16929
|
passwordRequirements: z.string(),
|
|
16907
16930
|
pleaseCheckValue: z.string(),
|
|
16908
16931
|
pleaseConfirm: z.string(),
|
|
@@ -16917,6 +16940,10 @@ const stringsSchema = z
|
|
|
16917
16940
|
securityAnswer: z.string(),
|
|
16918
16941
|
securityQuestions: z.string(),
|
|
16919
16942
|
securityQuestionsPrompt: z.string(),
|
|
16943
|
+
shouldContainANumber: z.string(),
|
|
16944
|
+
shouldContainAnUppercase: z.string(),
|
|
16945
|
+
shouldContainALowercase: z.string(),
|
|
16946
|
+
shouldContainASymbol: z.string(),
|
|
16920
16947
|
showPassword: z.string(),
|
|
16921
16948
|
sn: z.string(),
|
|
16922
16949
|
submitButton: z.string(),
|
|
@@ -17875,9 +17902,9 @@ styleSchema.partial();
|
|
|
17875
17902
|
const fallbackStyles = {
|
|
17876
17903
|
checksAndRadios: 'animated',
|
|
17877
17904
|
labels: 'floating',
|
|
17878
|
-
logo:
|
|
17879
|
-
sections:
|
|
17880
|
-
stage:
|
|
17905
|
+
logo: undefined,
|
|
17906
|
+
sections: undefined,
|
|
17907
|
+
stage: undefined,
|
|
17881
17908
|
};
|
|
17882
17909
|
const styleStore = writable(fallbackStyles);
|
|
17883
17910
|
function initialize(customStyle) {
|
|
@@ -18528,7 +18555,7 @@ function create_else_block$9(ctx) {
|
|
|
18528
18555
|
attr(button, "aria-controls", /*dialogId*/ ctx[1]);
|
|
18529
18556
|
|
|
18530
18557
|
attr(div, "class", div_class_value = `tw_pt-10 md:tw_pt-10 tw_text-right ${(/*$styleStore*/ ctx[5]?.logo)
|
|
18531
|
-
? 'tw_h-32 md:tw_h-36
|
|
18558
|
+
? 'tw_h-32 md:tw_h-36 tw_pb-6'
|
|
18532
18559
|
: ''}`);
|
|
18533
18560
|
},
|
|
18534
18561
|
m(target, anchor) {
|
|
@@ -18571,7 +18598,7 @@ function create_else_block$9(ctx) {
|
|
|
18571
18598
|
}
|
|
18572
18599
|
|
|
18573
18600
|
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)
|
|
18574
|
-
? 'tw_h-32 md:tw_h-36
|
|
18601
|
+
? 'tw_h-32 md:tw_h-36 tw_pb-6'
|
|
18575
18602
|
: ''}`)) {
|
|
18576
18603
|
attr(div, "class", div_class_value);
|
|
18577
18604
|
}
|
|
@@ -20610,12 +20637,41 @@ function getInputTypeFromPolicies(policies) {
|
|
|
20610
20637
|
return 'text';
|
|
20611
20638
|
}
|
|
20612
20639
|
function getValidationFailureParams(failedPolicy) {
|
|
20613
|
-
if (failedPolicy?.policyRequirement === '
|
|
20614
|
-
const params = failedPolicy
|
|
20640
|
+
if (failedPolicy?.policyRequirement === 'DICTIONARY') {
|
|
20641
|
+
const params = failedPolicy.params;
|
|
20642
|
+
const min = params?.['min-substring-length'] || 0;
|
|
20643
|
+
const arr = [];
|
|
20644
|
+
if (params?.['check-substrings'] && params?.['test-reversed-password']) {
|
|
20645
|
+
arr.push({
|
|
20646
|
+
length: min,
|
|
20647
|
+
message: interpolate('passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan', {
|
|
20648
|
+
min: String(min),
|
|
20649
|
+
}),
|
|
20650
|
+
rule: 'reversibleSubstrings',
|
|
20651
|
+
});
|
|
20652
|
+
}
|
|
20653
|
+
else if (params?.['test-reversed-password']) {
|
|
20654
|
+
arr.push({
|
|
20655
|
+
length: null,
|
|
20656
|
+
message: interpolate('passwordCannotContainCommonPasswordsOrBeReversible'),
|
|
20657
|
+
rule: 'reversibleSubstrings',
|
|
20658
|
+
});
|
|
20659
|
+
}
|
|
20660
|
+
else {
|
|
20661
|
+
arr.push({
|
|
20662
|
+
length: null,
|
|
20663
|
+
message: interpolate('passwordCannotContainCommonPasswords'),
|
|
20664
|
+
rule: 'reversibleSubstrings',
|
|
20665
|
+
});
|
|
20666
|
+
}
|
|
20667
|
+
return arr;
|
|
20668
|
+
}
|
|
20669
|
+
else if (failedPolicy?.policyRequirement === 'CHARACTER_SET') {
|
|
20670
|
+
const params = failedPolicy.params;
|
|
20615
20671
|
return params?.['character-sets'].map(convertCharacterSetToRuleObj);
|
|
20616
20672
|
}
|
|
20617
20673
|
else if (failedPolicy?.policyRequirement === 'LENGTH_BASED') {
|
|
20618
|
-
const params = failedPolicy
|
|
20674
|
+
const params = failedPolicy.params;
|
|
20619
20675
|
const min = params?.['min-password-length'] || 0;
|
|
20620
20676
|
const max = params?.['max-password-length'] || null;
|
|
20621
20677
|
const arr = [];
|
|
@@ -20635,6 +20691,26 @@ function getValidationFailureParams(failedPolicy) {
|
|
|
20635
20691
|
}
|
|
20636
20692
|
return arr;
|
|
20637
20693
|
}
|
|
20694
|
+
else if (failedPolicy?.policyRequirement === 'REPEATED_CHARACTERS') {
|
|
20695
|
+
const params = failedPolicy.params;
|
|
20696
|
+
const max = params['max-consecutive-length'] || 0;
|
|
20697
|
+
const arr = [];
|
|
20698
|
+
if (!params['case-sensitive-validation']) {
|
|
20699
|
+
arr.push({
|
|
20700
|
+
length: max,
|
|
20701
|
+
message: interpolate('charactersCannotRepeatMoreThanCaseInsensitive', { max: String(max) }),
|
|
20702
|
+
rule: 'repeatedCharactersCaseInsensitive',
|
|
20703
|
+
});
|
|
20704
|
+
}
|
|
20705
|
+
else {
|
|
20706
|
+
arr.push({
|
|
20707
|
+
length: max,
|
|
20708
|
+
message: interpolate('charactersCannotRepeatMoreThan', { max: String(max) }),
|
|
20709
|
+
rule: 'repeatedCharacters',
|
|
20710
|
+
});
|
|
20711
|
+
}
|
|
20712
|
+
return arr;
|
|
20713
|
+
}
|
|
20638
20714
|
else if (failedPolicy?.policyRequirement === 'VALID_USERNAME') {
|
|
20639
20715
|
return [
|
|
20640
20716
|
{
|
|
@@ -20791,36 +20867,72 @@ function convertCharacterSetToRuleObj(set) {
|
|
|
20791
20867
|
const num = arr[0];
|
|
20792
20868
|
const type = arr[1];
|
|
20793
20869
|
if (type === '0123456789') {
|
|
20794
|
-
|
|
20795
|
-
|
|
20796
|
-
|
|
20797
|
-
|
|
20798
|
-
|
|
20870
|
+
if (num === '0') {
|
|
20871
|
+
return {
|
|
20872
|
+
length: null,
|
|
20873
|
+
message: interpolate('shouldContainANumber'),
|
|
20874
|
+
rule: 'numbers',
|
|
20875
|
+
};
|
|
20876
|
+
}
|
|
20877
|
+
else {
|
|
20878
|
+
return {
|
|
20879
|
+
length: Number(num),
|
|
20880
|
+
message: interpolate('minimumNumberOfNumbers', { num: String(num) }),
|
|
20881
|
+
rule: 'numbers',
|
|
20882
|
+
};
|
|
20883
|
+
}
|
|
20799
20884
|
}
|
|
20800
20885
|
else if (type === 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') {
|
|
20801
|
-
|
|
20802
|
-
|
|
20803
|
-
|
|
20804
|
-
|
|
20805
|
-
|
|
20886
|
+
if (num === '0') {
|
|
20887
|
+
return {
|
|
20888
|
+
length: null,
|
|
20889
|
+
message: interpolate('shouldContainAnUppercase'),
|
|
20890
|
+
rule: 'uppercase',
|
|
20891
|
+
};
|
|
20892
|
+
}
|
|
20893
|
+
else {
|
|
20894
|
+
return {
|
|
20895
|
+
length: Number(num),
|
|
20896
|
+
message: interpolate('minimumNumberOfUppercase', { num: String(num) }),
|
|
20897
|
+
rule: 'uppercase',
|
|
20898
|
+
};
|
|
20899
|
+
}
|
|
20806
20900
|
}
|
|
20807
20901
|
else if (type === 'abcdefghijklmnopqrstuvwxyz') {
|
|
20808
|
-
|
|
20809
|
-
|
|
20810
|
-
|
|
20811
|
-
|
|
20812
|
-
|
|
20902
|
+
if (num === '0') {
|
|
20903
|
+
return {
|
|
20904
|
+
length: null,
|
|
20905
|
+
message: interpolate('shouldContainALowercase'),
|
|
20906
|
+
rule: 'lowercase',
|
|
20907
|
+
};
|
|
20908
|
+
}
|
|
20909
|
+
else {
|
|
20910
|
+
return {
|
|
20911
|
+
length: Number(num),
|
|
20912
|
+
message: interpolate('minimumNumberOfLowercase', { num: String(num) }),
|
|
20913
|
+
rule: 'lowercase',
|
|
20914
|
+
};
|
|
20915
|
+
}
|
|
20813
20916
|
}
|
|
20814
20917
|
else if (type.includes('@') || type.includes('!') || type.includes('*') || type.includes('#')) {
|
|
20815
|
-
|
|
20816
|
-
|
|
20817
|
-
|
|
20818
|
-
|
|
20819
|
-
|
|
20918
|
+
if (num === '0') {
|
|
20919
|
+
return {
|
|
20920
|
+
length: null,
|
|
20921
|
+
message: interpolate('shouldContainASymbol'),
|
|
20922
|
+
rule: 'symbols',
|
|
20923
|
+
};
|
|
20924
|
+
}
|
|
20925
|
+
else {
|
|
20926
|
+
return {
|
|
20927
|
+
length: Number(num),
|
|
20928
|
+
message: interpolate('minimumNumberOfSymbols', { num: String(num) }),
|
|
20929
|
+
rule: 'symbols',
|
|
20930
|
+
};
|
|
20931
|
+
}
|
|
20820
20932
|
}
|
|
20821
20933
|
else {
|
|
20822
20934
|
return {
|
|
20823
|
-
length:
|
|
20935
|
+
length: null,
|
|
20824
20936
|
message: interpolate('pleaseCheckValue'),
|
|
20825
20937
|
rule: 'unknown',
|
|
20826
20938
|
};
|
|
@@ -24913,7 +25025,7 @@ function create_if_block_5$1(ctx) {
|
|
|
24913
25025
|
}
|
|
24914
25026
|
|
|
24915
25027
|
// (65:0) {#if type === 'number'}
|
|
24916
|
-
function create_if_block_4$
|
|
25028
|
+
function create_if_block_4$2(ctx) {
|
|
24917
25029
|
let input;
|
|
24918
25030
|
let input_aria_describedby_value;
|
|
24919
25031
|
let input_class_value;
|
|
@@ -24993,7 +25105,7 @@ function create_if_block_4$1(ctx) {
|
|
|
24993
25105
|
}
|
|
24994
25106
|
|
|
24995
25107
|
// (81:0) {#if type === 'password'}
|
|
24996
|
-
function create_if_block_3$
|
|
25108
|
+
function create_if_block_3$6(ctx) {
|
|
24997
25109
|
let input;
|
|
24998
25110
|
let input_aria_describedby_value;
|
|
24999
25111
|
let input_class_value;
|
|
@@ -25313,8 +25425,8 @@ function create_fragment$x(ctx) {
|
|
|
25313
25425
|
let if_block0 = /*labelOrder*/ ctx[6] === 'first' && create_if_block_7$1(ctx);
|
|
25314
25426
|
let if_block1 = /*type*/ ctx[11] === 'date' && create_if_block_6$1(ctx);
|
|
25315
25427
|
let if_block2 = /*type*/ ctx[11] === 'email' && create_if_block_5$1(ctx);
|
|
25316
|
-
let if_block3 = /*type*/ ctx[11] === 'number' && create_if_block_4$
|
|
25317
|
-
let if_block4 = /*type*/ ctx[11] === 'password' && create_if_block_3$
|
|
25428
|
+
let if_block3 = /*type*/ ctx[11] === 'number' && create_if_block_4$2(ctx);
|
|
25429
|
+
let if_block4 = /*type*/ ctx[11] === 'password' && create_if_block_3$6(ctx);
|
|
25318
25430
|
let if_block5 = /*type*/ ctx[11] === 'phone' && create_if_block_2$7(ctx);
|
|
25319
25431
|
let if_block6 = /*type*/ ctx[11] === 'text' && create_if_block_1$8(ctx);
|
|
25320
25432
|
let if_block7 = /*labelOrder*/ ctx[6] === 'last' && create_if_block$d(ctx);
|
|
@@ -25411,7 +25523,7 @@ function create_fragment$x(ctx) {
|
|
|
25411
25523
|
if (if_block3) {
|
|
25412
25524
|
if_block3.p(ctx, dirty);
|
|
25413
25525
|
} else {
|
|
25414
|
-
if_block3 = create_if_block_4$
|
|
25526
|
+
if_block3 = create_if_block_4$2(ctx);
|
|
25415
25527
|
if_block3.c();
|
|
25416
25528
|
if_block3.m(t3.parentNode, t3);
|
|
25417
25529
|
}
|
|
@@ -25424,7 +25536,7 @@ function create_fragment$x(ctx) {
|
|
|
25424
25536
|
if (if_block4) {
|
|
25425
25537
|
if_block4.p(ctx, dirty);
|
|
25426
25538
|
} else {
|
|
25427
|
-
if_block4 = create_if_block_3$
|
|
25539
|
+
if_block4 = create_if_block_3$6(ctx);
|
|
25428
25540
|
if_block4.c();
|
|
25429
25541
|
if_block4.m(t4.parentNode, t4);
|
|
25430
25542
|
}
|
|
@@ -27135,8 +27247,8 @@ class Eye_icon extends SvelteComponent {
|
|
|
27135
27247
|
|
|
27136
27248
|
function create_default_slot_1$8(ctx) {
|
|
27137
27249
|
let current;
|
|
27138
|
-
const default_slot_template = /*#slots*/ ctx[
|
|
27139
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
|
27250
|
+
const default_slot_template = /*#slots*/ ctx[14].default;
|
|
27251
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[15], null);
|
|
27140
27252
|
|
|
27141
27253
|
return {
|
|
27142
27254
|
c() {
|
|
@@ -27151,15 +27263,15 @@ function create_default_slot_1$8(ctx) {
|
|
|
27151
27263
|
},
|
|
27152
27264
|
p(ctx, dirty) {
|
|
27153
27265
|
if (default_slot) {
|
|
27154
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
27266
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 32768)) {
|
|
27155
27267
|
update_slot_base(
|
|
27156
27268
|
default_slot,
|
|
27157
27269
|
default_slot_template,
|
|
27158
27270
|
ctx,
|
|
27159
|
-
/*$$scope*/ ctx[
|
|
27271
|
+
/*$$scope*/ ctx[15],
|
|
27160
27272
|
!current
|
|
27161
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
27162
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
27273
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[15])
|
|
27274
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[15], dirty, null),
|
|
27163
27275
|
null
|
|
27164
27276
|
);
|
|
27165
27277
|
}
|
|
@@ -27180,7 +27292,7 @@ function create_default_slot_1$8(ctx) {
|
|
|
27180
27292
|
};
|
|
27181
27293
|
}
|
|
27182
27294
|
|
|
27183
|
-
// (
|
|
27295
|
+
// (59:4) <EyeIcon classes="tw_password-icon dark:tw_password-icon_dark" visible={isVisible}>
|
|
27184
27296
|
function create_default_slot$f(ctx) {
|
|
27185
27297
|
let t;
|
|
27186
27298
|
let current;
|
|
@@ -27210,7 +27322,7 @@ function create_default_slot$f(ctx) {
|
|
|
27210
27322
|
};
|
|
27211
27323
|
}
|
|
27212
27324
|
|
|
27213
|
-
// (
|
|
27325
|
+
// (53:2)
|
|
27214
27326
|
function create_input_button_slot$1(ctx) {
|
|
27215
27327
|
let button;
|
|
27216
27328
|
let eyeicon;
|
|
@@ -27249,7 +27361,7 @@ function create_input_button_slot$1(ctx) {
|
|
|
27249
27361
|
const eyeicon_changes = {};
|
|
27250
27362
|
if (dirty & /*isVisible*/ 64) eyeicon_changes.visible = /*isVisible*/ ctx[6];
|
|
27251
27363
|
|
|
27252
|
-
if (dirty & /*$$scope*/
|
|
27364
|
+
if (dirty & /*$$scope*/ 32768) {
|
|
27253
27365
|
eyeicon_changes.$$scope = { dirty, ctx };
|
|
27254
27366
|
}
|
|
27255
27367
|
|
|
@@ -27282,18 +27394,18 @@ function create_fragment$q(ctx) {
|
|
|
27282
27394
|
forceValidityFailure: /*forceValidityFailure*/ ctx[0],
|
|
27283
27395
|
isFirstInvalidInput: false,
|
|
27284
27396
|
hasRightIcon: true,
|
|
27285
|
-
key: `${/*key*/ ctx[
|
|
27397
|
+
key: `${/*key*/ ctx[3]}-confirm`,
|
|
27286
27398
|
label: interpolate('confirmPassword', null, 'Confirm Password'),
|
|
27287
|
-
message: /*isInvalid*/ ctx[
|
|
27399
|
+
message: /*isInvalid*/ ctx[1]
|
|
27288
27400
|
? interpolate('passwordConfirmationError', null, 'Passwords do not match')
|
|
27289
27401
|
: undefined,
|
|
27290
|
-
onChange: /*
|
|
27291
|
-
isInvalid: /*isInvalid*/ ctx[
|
|
27292
|
-
isRequired: /*isRequired*/ ctx[
|
|
27293
|
-
showMessage: /*showMessage*/ ctx[
|
|
27402
|
+
onChange: /*onChangeWrapper*/ ctx[9],
|
|
27403
|
+
isInvalid: /*isInvalid*/ ctx[1],
|
|
27404
|
+
isRequired: /*isRequired*/ ctx[2],
|
|
27405
|
+
showMessage: /*showMessage*/ ctx[4],
|
|
27294
27406
|
type: /*type*/ ctx[7],
|
|
27295
|
-
value: typeof /*value*/ ctx[
|
|
27296
|
-
? /*value*/ ctx[
|
|
27407
|
+
value: typeof /*value*/ ctx[5] === 'string'
|
|
27408
|
+
? /*value*/ ctx[5]
|
|
27297
27409
|
: '',
|
|
27298
27410
|
$$slots: {
|
|
27299
27411
|
"input-button": [create_input_button_slot$1],
|
|
@@ -27314,19 +27426,22 @@ function create_fragment$q(ctx) {
|
|
|
27314
27426
|
p(ctx, [dirty]) {
|
|
27315
27427
|
const input_changes = {};
|
|
27316
27428
|
if (dirty & /*forceValidityFailure*/ 1) input_changes.forceValidityFailure = /*forceValidityFailure*/ ctx[0];
|
|
27317
|
-
if (dirty & /*key*/
|
|
27429
|
+
if (dirty & /*key*/ 8) input_changes.key = `${/*key*/ ctx[3]}-confirm`;
|
|
27318
27430
|
|
|
27319
|
-
if (dirty & /*isInvalid*/
|
|
27431
|
+
if (dirty & /*isInvalid*/ 2) input_changes.message = /*isInvalid*/ ctx[1]
|
|
27320
27432
|
? interpolate('passwordConfirmationError', null, 'Passwords do not match')
|
|
27321
27433
|
: undefined;
|
|
27322
27434
|
|
|
27323
|
-
if (dirty & /*
|
|
27324
|
-
if (dirty & /*
|
|
27325
|
-
if (dirty & /*
|
|
27326
|
-
if (dirty & /*showMessage*/ 32) input_changes.showMessage = /*showMessage*/ ctx[5];
|
|
27435
|
+
if (dirty & /*isInvalid*/ 2) input_changes.isInvalid = /*isInvalid*/ ctx[1];
|
|
27436
|
+
if (dirty & /*isRequired*/ 4) input_changes.isRequired = /*isRequired*/ ctx[2];
|
|
27437
|
+
if (dirty & /*showMessage*/ 16) input_changes.showMessage = /*showMessage*/ ctx[4];
|
|
27327
27438
|
if (dirty & /*type*/ 128) input_changes.type = /*type*/ ctx[7];
|
|
27328
27439
|
|
|
27329
|
-
if (dirty &
|
|
27440
|
+
if (dirty & /*value*/ 32) input_changes.value = typeof /*value*/ ctx[5] === 'string'
|
|
27441
|
+
? /*value*/ ctx[5]
|
|
27442
|
+
: '';
|
|
27443
|
+
|
|
27444
|
+
if (dirty & /*$$scope, isVisible*/ 32832) {
|
|
27330
27445
|
input_changes.$$scope = { dirty, ctx };
|
|
27331
27446
|
}
|
|
27332
27447
|
|
|
@@ -27350,10 +27465,11 @@ function create_fragment$q(ctx) {
|
|
|
27350
27465
|
function instance$q($$self, $$props, $$invalidate) {
|
|
27351
27466
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
27352
27467
|
let { forceValidityFailure = false } = $$props;
|
|
27353
|
-
let { key } = $$props;
|
|
27354
|
-
let { onChange } = $$props;
|
|
27355
27468
|
let { isInvalid = false } = $$props;
|
|
27356
27469
|
let { isRequired = true } = $$props;
|
|
27470
|
+
let { key } = $$props;
|
|
27471
|
+
let { onChange } = $$props;
|
|
27472
|
+
let { resetValue } = $$props;
|
|
27357
27473
|
let { style = {} } = $$props;
|
|
27358
27474
|
const Input = style.labels === 'stacked' ? Stacked_label : Floating_label;
|
|
27359
27475
|
let { showMessage = undefined } = $$props;
|
|
@@ -27361,6 +27477,13 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
|
27361
27477
|
let type = 'password';
|
|
27362
27478
|
let value;
|
|
27363
27479
|
|
|
27480
|
+
function onChangeWrapper(event) {
|
|
27481
|
+
$$invalidate(5, value = event.target?.value);
|
|
27482
|
+
|
|
27483
|
+
// TODO: revisit this logic to avoid unnecessary ternary
|
|
27484
|
+
onChange(typeof value === 'string' ? value : undefined);
|
|
27485
|
+
}
|
|
27486
|
+
|
|
27364
27487
|
/**
|
|
27365
27488
|
* @function toggleVisibility - toggles the password from masked to plaintext
|
|
27366
27489
|
*/
|
|
@@ -27371,27 +27494,41 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
|
27371
27494
|
|
|
27372
27495
|
$$self.$$set = $$props => {
|
|
27373
27496
|
if ('forceValidityFailure' in $$props) $$invalidate(0, forceValidityFailure = $$props.forceValidityFailure);
|
|
27374
|
-
if ('
|
|
27375
|
-
if ('
|
|
27376
|
-
if ('
|
|
27377
|
-
if ('
|
|
27378
|
-
if ('
|
|
27379
|
-
if ('
|
|
27380
|
-
if ('
|
|
27497
|
+
if ('isInvalid' in $$props) $$invalidate(1, isInvalid = $$props.isInvalid);
|
|
27498
|
+
if ('isRequired' in $$props) $$invalidate(2, isRequired = $$props.isRequired);
|
|
27499
|
+
if ('key' in $$props) $$invalidate(3, key = $$props.key);
|
|
27500
|
+
if ('onChange' in $$props) $$invalidate(11, onChange = $$props.onChange);
|
|
27501
|
+
if ('resetValue' in $$props) $$invalidate(12, resetValue = $$props.resetValue);
|
|
27502
|
+
if ('style' in $$props) $$invalidate(13, style = $$props.style);
|
|
27503
|
+
if ('showMessage' in $$props) $$invalidate(4, showMessage = $$props.showMessage);
|
|
27504
|
+
if ('$$scope' in $$props) $$invalidate(15, $$scope = $$props.$$scope);
|
|
27505
|
+
};
|
|
27506
|
+
|
|
27507
|
+
$$self.$$.update = () => {
|
|
27508
|
+
if ($$self.$$.dirty & /*resetValue, onChange, value*/ 6176) {
|
|
27509
|
+
{
|
|
27510
|
+
if (resetValue) {
|
|
27511
|
+
$$invalidate(5, value = undefined);
|
|
27512
|
+
onChange(value);
|
|
27513
|
+
}
|
|
27514
|
+
}
|
|
27515
|
+
}
|
|
27381
27516
|
};
|
|
27382
27517
|
|
|
27383
27518
|
return [
|
|
27384
27519
|
forceValidityFailure,
|
|
27385
|
-
key,
|
|
27386
|
-
onChange,
|
|
27387
27520
|
isInvalid,
|
|
27388
27521
|
isRequired,
|
|
27522
|
+
key,
|
|
27389
27523
|
showMessage,
|
|
27524
|
+
value,
|
|
27390
27525
|
isVisible,
|
|
27391
27526
|
type,
|
|
27392
27527
|
Input,
|
|
27393
|
-
|
|
27528
|
+
onChangeWrapper,
|
|
27394
27529
|
toggleVisibility,
|
|
27530
|
+
onChange,
|
|
27531
|
+
resetValue,
|
|
27395
27532
|
style,
|
|
27396
27533
|
slots,
|
|
27397
27534
|
$$scope
|
|
@@ -27404,12 +27541,13 @@ class Confirm_input extends SvelteComponent {
|
|
|
27404
27541
|
|
|
27405
27542
|
init(this, options, instance$q, create_fragment$q, safe_not_equal, {
|
|
27406
27543
|
forceValidityFailure: 0,
|
|
27407
|
-
|
|
27408
|
-
|
|
27409
|
-
|
|
27410
|
-
|
|
27411
|
-
|
|
27412
|
-
|
|
27544
|
+
isInvalid: 1,
|
|
27545
|
+
isRequired: 2,
|
|
27546
|
+
key: 3,
|
|
27547
|
+
onChange: 11,
|
|
27548
|
+
resetValue: 12,
|
|
27549
|
+
style: 13,
|
|
27550
|
+
showMessage: 4
|
|
27413
27551
|
});
|
|
27414
27552
|
}
|
|
27415
27553
|
}
|
|
@@ -27418,8 +27556,8 @@ class Confirm_input extends SvelteComponent {
|
|
|
27418
27556
|
|
|
27419
27557
|
function create_default_slot_1$7(ctx) {
|
|
27420
27558
|
let current;
|
|
27421
|
-
const default_slot_template = /*#slots*/ ctx[
|
|
27422
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
|
27559
|
+
const default_slot_template = /*#slots*/ ctx[21].default;
|
|
27560
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[22], null);
|
|
27423
27561
|
|
|
27424
27562
|
return {
|
|
27425
27563
|
c() {
|
|
@@ -27434,15 +27572,15 @@ function create_default_slot_1$7(ctx) {
|
|
|
27434
27572
|
},
|
|
27435
27573
|
p(ctx, dirty) {
|
|
27436
27574
|
if (default_slot) {
|
|
27437
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
27575
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 4194304)) {
|
|
27438
27576
|
update_slot_base(
|
|
27439
27577
|
default_slot,
|
|
27440
27578
|
default_slot_template,
|
|
27441
27579
|
ctx,
|
|
27442
|
-
/*$$scope*/ ctx[
|
|
27580
|
+
/*$$scope*/ ctx[22],
|
|
27443
27581
|
!current
|
|
27444
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
27445
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
27582
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[22])
|
|
27583
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[22], dirty, null),
|
|
27446
27584
|
null
|
|
27447
27585
|
);
|
|
27448
27586
|
}
|
|
@@ -27463,7 +27601,7 @@ function create_default_slot_1$7(ctx) {
|
|
|
27463
27601
|
};
|
|
27464
27602
|
}
|
|
27465
27603
|
|
|
27466
|
-
// (
|
|
27604
|
+
// (94:4) <EyeIcon classes="tw_password-icon dark:tw_password-icon_dark" visible={isVisible}>
|
|
27467
27605
|
function create_default_slot$e(ctx) {
|
|
27468
27606
|
let t;
|
|
27469
27607
|
let current;
|
|
@@ -27493,7 +27631,7 @@ function create_default_slot$e(ctx) {
|
|
|
27493
27631
|
};
|
|
27494
27632
|
}
|
|
27495
27633
|
|
|
27496
|
-
// (
|
|
27634
|
+
// (88:2)
|
|
27497
27635
|
function create_input_button_slot(ctx) {
|
|
27498
27636
|
let button;
|
|
27499
27637
|
let eyeicon;
|
|
@@ -27524,7 +27662,7 @@ function create_input_button_slot(ctx) {
|
|
|
27524
27662
|
current = true;
|
|
27525
27663
|
|
|
27526
27664
|
if (!mounted) {
|
|
27527
|
-
dispose = listen(button, "click", /*toggleVisibility*/ ctx[
|
|
27665
|
+
dispose = listen(button, "click", /*toggleVisibility*/ ctx[17]);
|
|
27528
27666
|
mounted = true;
|
|
27529
27667
|
}
|
|
27530
27668
|
},
|
|
@@ -27532,7 +27670,7 @@ function create_input_button_slot(ctx) {
|
|
|
27532
27670
|
const eyeicon_changes = {};
|
|
27533
27671
|
if (dirty & /*isVisible*/ 1024) eyeicon_changes.visible = /*isVisible*/ ctx[10];
|
|
27534
27672
|
|
|
27535
|
-
if (dirty & /*$$scope*/
|
|
27673
|
+
if (dirty & /*$$scope*/ 4194304) {
|
|
27536
27674
|
eyeicon_changes.$$scope = { dirty, ctx };
|
|
27537
27675
|
}
|
|
27538
27676
|
|
|
@@ -27556,7 +27694,7 @@ function create_input_button_slot(ctx) {
|
|
|
27556
27694
|
};
|
|
27557
27695
|
}
|
|
27558
27696
|
|
|
27559
|
-
// (
|
|
27697
|
+
// (101:0) {#if callbackMetadata?.platform?.confirmPassword}
|
|
27560
27698
|
function create_if_block$a(ctx) {
|
|
27561
27699
|
let confirminput;
|
|
27562
27700
|
let current;
|
|
@@ -27566,7 +27704,8 @@ function create_if_block$a(ctx) {
|
|
|
27566
27704
|
forceValidityFailure: /*doPasswordsMatch*/ ctx[9] === false,
|
|
27567
27705
|
isInvalid: /*doPasswordsMatch*/ ctx[9] === false,
|
|
27568
27706
|
key: /*key*/ ctx[0],
|
|
27569
|
-
onChange: /*confirmInput*/ ctx[
|
|
27707
|
+
onChange: /*confirmInput*/ ctx[15],
|
|
27708
|
+
resetValue: /*resetValue*/ ctx[11],
|
|
27570
27709
|
showMessage: /*doPasswordsMatch*/ ctx[9] === false,
|
|
27571
27710
|
style: /*style*/ ctx[4]
|
|
27572
27711
|
}
|
|
@@ -27585,6 +27724,7 @@ function create_if_block$a(ctx) {
|
|
|
27585
27724
|
if (dirty & /*doPasswordsMatch*/ 512) confirminput_changes.forceValidityFailure = /*doPasswordsMatch*/ ctx[9] === false;
|
|
27586
27725
|
if (dirty & /*doPasswordsMatch*/ 512) confirminput_changes.isInvalid = /*doPasswordsMatch*/ ctx[9] === false;
|
|
27587
27726
|
if (dirty & /*key*/ 1) confirminput_changes.key = /*key*/ ctx[0];
|
|
27727
|
+
if (dirty & /*resetValue*/ 2048) confirminput_changes.resetValue = /*resetValue*/ ctx[11];
|
|
27588
27728
|
if (dirty & /*doPasswordsMatch*/ 512) confirminput_changes.showMessage = /*doPasswordsMatch*/ ctx[9] === false;
|
|
27589
27729
|
if (dirty & /*style*/ 16) confirminput_changes.style = /*style*/ ctx[4];
|
|
27590
27730
|
confirminput.$set(confirminput_changes);
|
|
@@ -27610,20 +27750,20 @@ function create_fragment$p(ctx) {
|
|
|
27610
27750
|
let if_block_anchor;
|
|
27611
27751
|
let current;
|
|
27612
27752
|
|
|
27613
|
-
input = new /*Input*/ ctx[
|
|
27753
|
+
input = new /*Input*/ ctx[14]({
|
|
27614
27754
|
props: {
|
|
27615
27755
|
isFirstInvalidInput: /*callbackMetadata*/ ctx[1]?.derived.isFirstInvalidInput || false,
|
|
27616
27756
|
hasRightIcon: true,
|
|
27617
27757
|
key: /*key*/ ctx[0],
|
|
27618
|
-
label: interpolate(textToKey(/*callbackType*/ ctx[8]), null, /*textInputLabel*/ ctx[
|
|
27758
|
+
label: interpolate(textToKey(/*callbackType*/ ctx[8]), null, /*textInputLabel*/ ctx[12]),
|
|
27619
27759
|
message: /*validationFailure*/ ctx[6] || (/*isRequired*/ ctx[3]
|
|
27620
27760
|
? interpolate('inputRequiredError')
|
|
27621
27761
|
: undefined),
|
|
27622
|
-
onChange: /*setValue*/ ctx[
|
|
27762
|
+
onChange: /*setValue*/ ctx[16],
|
|
27623
27763
|
isInvalid: /*isInvalid*/ ctx[2],
|
|
27624
27764
|
isRequired: /*isRequired*/ ctx[3],
|
|
27625
27765
|
showMessage: /*showMessage*/ ctx[5],
|
|
27626
|
-
type: /*type*/ ctx[
|
|
27766
|
+
type: /*type*/ ctx[13],
|
|
27627
27767
|
value: typeof /*value*/ ctx[7] === 'string'
|
|
27628
27768
|
? /*value*/ ctx[7]
|
|
27629
27769
|
: '',
|
|
@@ -27655,7 +27795,7 @@ function create_fragment$p(ctx) {
|
|
|
27655
27795
|
const input_changes = {};
|
|
27656
27796
|
if (dirty & /*callbackMetadata*/ 2) input_changes.isFirstInvalidInput = /*callbackMetadata*/ ctx[1]?.derived.isFirstInvalidInput || false;
|
|
27657
27797
|
if (dirty & /*key*/ 1) input_changes.key = /*key*/ ctx[0];
|
|
27658
|
-
if (dirty & /*callbackType, textInputLabel*/
|
|
27798
|
+
if (dirty & /*callbackType, textInputLabel*/ 4352) input_changes.label = interpolate(textToKey(/*callbackType*/ ctx[8]), null, /*textInputLabel*/ ctx[12]);
|
|
27659
27799
|
|
|
27660
27800
|
if (dirty & /*validationFailure, isRequired*/ 72) input_changes.message = /*validationFailure*/ ctx[6] || (/*isRequired*/ ctx[3]
|
|
27661
27801
|
? interpolate('inputRequiredError')
|
|
@@ -27664,13 +27804,13 @@ function create_fragment$p(ctx) {
|
|
|
27664
27804
|
if (dirty & /*isInvalid*/ 4) input_changes.isInvalid = /*isInvalid*/ ctx[2];
|
|
27665
27805
|
if (dirty & /*isRequired*/ 8) input_changes.isRequired = /*isRequired*/ ctx[3];
|
|
27666
27806
|
if (dirty & /*showMessage*/ 32) input_changes.showMessage = /*showMessage*/ ctx[5];
|
|
27667
|
-
if (dirty & /*type*/
|
|
27807
|
+
if (dirty & /*type*/ 8192) input_changes.type = /*type*/ ctx[13];
|
|
27668
27808
|
|
|
27669
27809
|
if (dirty & /*value*/ 128) input_changes.value = typeof /*value*/ ctx[7] === 'string'
|
|
27670
27810
|
? /*value*/ ctx[7]
|
|
27671
27811
|
: '';
|
|
27672
27812
|
|
|
27673
|
-
if (dirty & /*$$scope, isVisible*/
|
|
27813
|
+
if (dirty & /*$$scope, isVisible*/ 4195328) {
|
|
27674
27814
|
input_changes.$$scope = { dirty, ctx };
|
|
27675
27815
|
}
|
|
27676
27816
|
|
|
@@ -27734,6 +27874,8 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
27734
27874
|
let callbackType;
|
|
27735
27875
|
let doPasswordsMatch;
|
|
27736
27876
|
let isVisible = false;
|
|
27877
|
+
let resetValue = false;
|
|
27878
|
+
let savedValue = '';
|
|
27737
27879
|
let textInputLabel;
|
|
27738
27880
|
let type = 'password';
|
|
27739
27881
|
let value;
|
|
@@ -27742,8 +27884,8 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
27742
27884
|
* @function confirmInput - ensures the second password input matches the first
|
|
27743
27885
|
* @param event
|
|
27744
27886
|
*/
|
|
27745
|
-
function confirmInput(
|
|
27746
|
-
$$invalidate(
|
|
27887
|
+
function confirmInput(val) {
|
|
27888
|
+
$$invalidate(19, confirmValue = val);
|
|
27747
27889
|
}
|
|
27748
27890
|
|
|
27749
27891
|
/**
|
|
@@ -27761,6 +27903,8 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
27761
27903
|
* for writing values to the callbacks received from AM
|
|
27762
27904
|
*********************************************************************** */
|
|
27763
27905
|
callback.setInputValue(value);
|
|
27906
|
+
|
|
27907
|
+
$$invalidate(20, savedValue = String(value));
|
|
27764
27908
|
}
|
|
27765
27909
|
|
|
27766
27910
|
/**
|
|
@@ -27768,11 +27912,11 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
27768
27912
|
*/
|
|
27769
27913
|
function toggleVisibility() {
|
|
27770
27914
|
$$invalidate(10, isVisible = !isVisible);
|
|
27771
|
-
$$invalidate(
|
|
27915
|
+
$$invalidate(13, type = isVisible ? 'text' : 'password');
|
|
27772
27916
|
}
|
|
27773
27917
|
|
|
27774
27918
|
$$self.$$set = $$props => {
|
|
27775
|
-
if ('callback' in $$props) $$invalidate(
|
|
27919
|
+
if ('callback' in $$props) $$invalidate(18, callback = $$props.callback);
|
|
27776
27920
|
if ('callbackMetadata' in $$props) $$invalidate(1, callbackMetadata = $$props.callbackMetadata);
|
|
27777
27921
|
if ('key' in $$props) $$invalidate(0, key = $$props.key);
|
|
27778
27922
|
if ('isInvalid' in $$props) $$invalidate(2, isInvalid = $$props.isInvalid);
|
|
@@ -27780,18 +27924,28 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
27780
27924
|
if ('style' in $$props) $$invalidate(4, style = $$props.style);
|
|
27781
27925
|
if ('showMessage' in $$props) $$invalidate(5, showMessage = $$props.showMessage);
|
|
27782
27926
|
if ('validationFailure' in $$props) $$invalidate(6, validationFailure = $$props.validationFailure);
|
|
27783
|
-
if ('$$scope' in $$props) $$invalidate(
|
|
27927
|
+
if ('$$scope' in $$props) $$invalidate(22, $$scope = $$props.$$scope);
|
|
27784
27928
|
};
|
|
27785
27929
|
|
|
27786
27930
|
$$self.$$.update = () => {
|
|
27787
|
-
if ($$self.$$.dirty & /*callback, callbackMetadata,
|
|
27931
|
+
if ($$self.$$.dirty & /*callback, callbackMetadata, savedValue, value, confirmValue*/ 1835138) {
|
|
27788
27932
|
{
|
|
27789
27933
|
$$invalidate(8, callbackType = callback.getType());
|
|
27790
27934
|
$$invalidate(0, key = callback?.payload?.input?.[0].name || `password-${callbackMetadata?.idx}`);
|
|
27791
|
-
$$invalidate(
|
|
27935
|
+
$$invalidate(12, textInputLabel = callback.getPrompt());
|
|
27792
27936
|
$$invalidate(7, value = callback?.getInputValue());
|
|
27793
27937
|
|
|
27794
|
-
|
|
27938
|
+
/**
|
|
27939
|
+
* `savedValue` represents what the user set after blur (local component state)
|
|
27940
|
+
* `value` represents what's in the callback (empties from AM response)
|
|
27941
|
+
*
|
|
27942
|
+
* This unique combination is what produces the most reliable reset flag
|
|
27943
|
+
*/
|
|
27944
|
+
$$invalidate(11, resetValue = !!savedValue && value === '');
|
|
27945
|
+
|
|
27946
|
+
/**
|
|
27947
|
+
* Only assign a boolean if the confirm input has an actual value.
|
|
27948
|
+
*/
|
|
27795
27949
|
$$invalidate(9, doPasswordsMatch = confirmValue !== undefined
|
|
27796
27950
|
? confirmValue === value
|
|
27797
27951
|
: undefined);
|
|
@@ -27811,6 +27965,7 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
27811
27965
|
callbackType,
|
|
27812
27966
|
doPasswordsMatch,
|
|
27813
27967
|
isVisible,
|
|
27968
|
+
resetValue,
|
|
27814
27969
|
textInputLabel,
|
|
27815
27970
|
type,
|
|
27816
27971
|
Input,
|
|
@@ -27819,6 +27974,7 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
27819
27974
|
toggleVisibility,
|
|
27820
27975
|
callback,
|
|
27821
27976
|
confirmValue,
|
|
27977
|
+
savedValue,
|
|
27822
27978
|
slots,
|
|
27823
27979
|
$$scope
|
|
27824
27980
|
];
|
|
@@ -27829,7 +27985,7 @@ class Base extends SvelteComponent {
|
|
|
27829
27985
|
super();
|
|
27830
27986
|
|
|
27831
27987
|
init(this, options, instance$p, create_fragment$p, safe_not_equal, {
|
|
27832
|
-
callback:
|
|
27988
|
+
callback: 18,
|
|
27833
27989
|
callbackMetadata: 1,
|
|
27834
27990
|
key: 0,
|
|
27835
27991
|
isInvalid: 2,
|
|
@@ -28521,7 +28677,7 @@ function get_each_context$5(ctx, list, i) {
|
|
|
28521
28677
|
}
|
|
28522
28678
|
|
|
28523
28679
|
// (66:56)
|
|
28524
|
-
function create_if_block_3$
|
|
28680
|
+
function create_if_block_3$5(ctx) {
|
|
28525
28681
|
let button;
|
|
28526
28682
|
let current;
|
|
28527
28683
|
|
|
@@ -28865,7 +29021,7 @@ function create_default_slot_1$6(ctx) {
|
|
|
28865
29021
|
let if_block;
|
|
28866
29022
|
let if_block_anchor;
|
|
28867
29023
|
let current;
|
|
28868
|
-
const if_block_creators = [create_if_block_1$7, create_if_block_2$6, create_if_block_3$
|
|
29024
|
+
const if_block_creators = [create_if_block_1$7, create_if_block_2$6, create_if_block_3$5];
|
|
28869
29025
|
const if_blocks = [];
|
|
28870
29026
|
|
|
28871
29027
|
function select_block_type(ctx, dirty) {
|
|
@@ -31573,7 +31729,7 @@ function create_if_block_5(ctx) {
|
|
|
31573
31729
|
}
|
|
31574
31730
|
|
|
31575
31731
|
// (126:52)
|
|
31576
|
-
function create_if_block_4(ctx) {
|
|
31732
|
+
function create_if_block_4$1(ctx) {
|
|
31577
31733
|
let kbacreate;
|
|
31578
31734
|
let current;
|
|
31579
31735
|
const kbacreate_spread_levels = [/*newProps*/ ctx[19]];
|
|
@@ -31616,7 +31772,7 @@ function create_if_block_4(ctx) {
|
|
|
31616
31772
|
}
|
|
31617
31773
|
|
|
31618
31774
|
// (120:54)
|
|
31619
|
-
function create_if_block_3$
|
|
31775
|
+
function create_if_block_3$4(ctx) {
|
|
31620
31776
|
let hiddenvalue;
|
|
31621
31777
|
let current;
|
|
31622
31778
|
const hiddenvalue_spread_levels = [/*newProps*/ ctx[19]];
|
|
@@ -31797,8 +31953,8 @@ function create_fragment$8(ctx) {
|
|
|
31797
31953
|
create_if_block$6,
|
|
31798
31954
|
create_if_block_1$5,
|
|
31799
31955
|
create_if_block_2$5,
|
|
31800
|
-
create_if_block_3$
|
|
31801
|
-
create_if_block_4,
|
|
31956
|
+
create_if_block_3$4,
|
|
31957
|
+
create_if_block_4$1,
|
|
31802
31958
|
create_if_block_5,
|
|
31803
31959
|
create_if_block_6,
|
|
31804
31960
|
create_if_block_7,
|
|
@@ -32031,12 +32187,12 @@ class Callback_mapper extends SvelteComponent {
|
|
|
32031
32187
|
|
|
32032
32188
|
function get_each_context$3(ctx, list, i) {
|
|
32033
32189
|
const child_ctx = ctx.slice();
|
|
32034
|
-
child_ctx[
|
|
32035
|
-
child_ctx[
|
|
32190
|
+
child_ctx[16] = list[i];
|
|
32191
|
+
child_ctx[18] = i;
|
|
32036
32192
|
return child_ctx;
|
|
32037
32193
|
}
|
|
32038
32194
|
|
|
32039
|
-
// (70:2) {#if form?.icon}
|
|
32195
|
+
// (70:2) {#if form?.icon && componentStyle !== 'inline'}
|
|
32040
32196
|
function create_if_block_2$4(ctx) {
|
|
32041
32197
|
let div;
|
|
32042
32198
|
let shieldicon;
|
|
@@ -32084,7 +32240,7 @@ function create_if_block_1$4(ctx) {
|
|
|
32084
32240
|
alert = new Alert({
|
|
32085
32241
|
props: {
|
|
32086
32242
|
id: formFailureMessageId,
|
|
32087
|
-
needsFocus: /*alertNeedsFocus*/ ctx[
|
|
32243
|
+
needsFocus: /*alertNeedsFocus*/ ctx[6],
|
|
32088
32244
|
type: "error",
|
|
32089
32245
|
$$slots: { default: [create_default_slot_2$3] },
|
|
32090
32246
|
$$scope: { ctx }
|
|
@@ -32101,9 +32257,9 @@ function create_if_block_1$4(ctx) {
|
|
|
32101
32257
|
},
|
|
32102
32258
|
p(ctx, dirty) {
|
|
32103
32259
|
const alert_changes = {};
|
|
32104
|
-
if (dirty & /*alertNeedsFocus*/
|
|
32260
|
+
if (dirty & /*alertNeedsFocus*/ 64) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[6];
|
|
32105
32261
|
|
|
32106
|
-
if (dirty & /*$$scope, formMessageKey, form*/
|
|
32262
|
+
if (dirty & /*$$scope, formMessageKey, form*/ 524420) {
|
|
32107
32263
|
alert_changes.$$scope = { dirty, ctx };
|
|
32108
32264
|
}
|
|
32109
32265
|
|
|
@@ -32126,7 +32282,7 @@ function create_if_block_1$4(ctx) {
|
|
|
32126
32282
|
|
|
32127
32283
|
// (87:4) <Alert id={formFailureMessageId} needsFocus={alertNeedsFocus} type="error">
|
|
32128
32284
|
function create_default_slot_2$3(ctx) {
|
|
32129
|
-
let t_value = interpolate(/*formMessageKey*/ ctx[
|
|
32285
|
+
let t_value = interpolate(/*formMessageKey*/ ctx[7], null, /*form*/ ctx[2]?.message) + "";
|
|
32130
32286
|
let t;
|
|
32131
32287
|
|
|
32132
32288
|
return {
|
|
@@ -32137,7 +32293,7 @@ function create_default_slot_2$3(ctx) {
|
|
|
32137
32293
|
insert(target, t, anchor);
|
|
32138
32294
|
},
|
|
32139
32295
|
p(ctx, dirty) {
|
|
32140
|
-
if (dirty & /*formMessageKey, form*/
|
|
32296
|
+
if (dirty & /*formMessageKey, form*/ 132 && t_value !== (t_value = interpolate(/*formMessageKey*/ ctx[7], null, /*form*/ ctx[2]?.message) + "")) set_data(t, t_value);
|
|
32141
32297
|
},
|
|
32142
32298
|
d(detaching) {
|
|
32143
32299
|
if (detaching) detach(t);
|
|
@@ -32153,11 +32309,11 @@ function create_each_block$3(ctx) {
|
|
|
32153
32309
|
callbackmapper = new Callback_mapper({
|
|
32154
32310
|
props: {
|
|
32155
32311
|
props: {
|
|
32156
|
-
callback: /*callback*/ ctx[
|
|
32157
|
-
callbackMetadata: /*metadata*/ ctx[
|
|
32158
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
32159
|
-
stepMetadata: /*metadata*/ ctx[
|
|
32160
|
-
style: /*$styleStore*/ ctx[
|
|
32312
|
+
callback: /*callback*/ ctx[16],
|
|
32313
|
+
callbackMetadata: /*metadata*/ ctx[4]?.callbacks[/*idx*/ ctx[18]],
|
|
32314
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[12],
|
|
32315
|
+
stepMetadata: /*metadata*/ ctx[4]?.step && { .../*metadata*/ ctx[4].step },
|
|
32316
|
+
style: /*$styleStore*/ ctx[11]
|
|
32161
32317
|
}
|
|
32162
32318
|
}
|
|
32163
32319
|
});
|
|
@@ -32173,12 +32329,12 @@ function create_each_block$3(ctx) {
|
|
|
32173
32329
|
p(ctx, dirty) {
|
|
32174
32330
|
const callbackmapper_changes = {};
|
|
32175
32331
|
|
|
32176
|
-
if (dirty & /*step, metadata, $styleStore*/
|
|
32177
|
-
callback: /*callback*/ ctx[
|
|
32178
|
-
callbackMetadata: /*metadata*/ ctx[
|
|
32179
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
32180
|
-
stepMetadata: /*metadata*/ ctx[
|
|
32181
|
-
style: /*$styleStore*/ ctx[
|
|
32332
|
+
if (dirty & /*step, metadata, $styleStore*/ 2096) callbackmapper_changes.props = {
|
|
32333
|
+
callback: /*callback*/ ctx[16],
|
|
32334
|
+
callbackMetadata: /*metadata*/ ctx[4]?.callbacks[/*idx*/ ctx[18]],
|
|
32335
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[12],
|
|
32336
|
+
stepMetadata: /*metadata*/ ctx[4]?.step && { .../*metadata*/ ctx[4].step },
|
|
32337
|
+
style: /*$styleStore*/ ctx[11]
|
|
32182
32338
|
};
|
|
32183
32339
|
|
|
32184
32340
|
callbackmapper.$set(callbackmapper_changes);
|
|
@@ -32205,7 +32361,7 @@ function create_if_block$5(ctx) {
|
|
|
32205
32361
|
|
|
32206
32362
|
button = new Button({
|
|
32207
32363
|
props: {
|
|
32208
|
-
busy: /*journey*/ ctx[
|
|
32364
|
+
busy: /*journey*/ ctx[3]?.loading,
|
|
32209
32365
|
style: "primary",
|
|
32210
32366
|
type: "submit",
|
|
32211
32367
|
width: "full",
|
|
@@ -32224,9 +32380,9 @@ function create_if_block$5(ctx) {
|
|
|
32224
32380
|
},
|
|
32225
32381
|
p(ctx, dirty) {
|
|
32226
32382
|
const button_changes = {};
|
|
32227
|
-
if (dirty & /*journey*/
|
|
32383
|
+
if (dirty & /*journey*/ 8) button_changes.busy = /*journey*/ ctx[3]?.loading;
|
|
32228
32384
|
|
|
32229
|
-
if (dirty & /*$$scope*/
|
|
32385
|
+
if (dirty & /*$$scope*/ 524288) {
|
|
32230
32386
|
button_changes.$$scope = { dirty, ctx };
|
|
32231
32387
|
}
|
|
32232
32388
|
|
|
@@ -32292,24 +32448,24 @@ function create_default_slot$5(ctx) {
|
|
|
32292
32448
|
let t5;
|
|
32293
32449
|
let backto;
|
|
32294
32450
|
let current;
|
|
32295
|
-
let if_block0 = /*form*/ ctx[
|
|
32451
|
+
let if_block0 = /*form*/ ctx[2]?.icon && /*componentStyle*/ ctx[1] !== 'inline' && create_if_block_2$4();
|
|
32296
32452
|
|
|
32297
32453
|
sanitize0 = new Server_strings({
|
|
32298
32454
|
props: {
|
|
32299
32455
|
html: true,
|
|
32300
|
-
string: /*step*/ ctx[
|
|
32456
|
+
string: /*step*/ ctx[5]?.getHeader() || ''
|
|
32301
32457
|
}
|
|
32302
32458
|
});
|
|
32303
32459
|
|
|
32304
32460
|
sanitize1 = new Server_strings({
|
|
32305
32461
|
props: {
|
|
32306
32462
|
html: true,
|
|
32307
|
-
string: /*step*/ ctx[
|
|
32463
|
+
string: /*step*/ ctx[5]?.getDescription() || ''
|
|
32308
32464
|
}
|
|
32309
32465
|
});
|
|
32310
32466
|
|
|
32311
|
-
let if_block1 = /*form*/ ctx[
|
|
32312
|
-
let each_value = /*step*/ ctx[
|
|
32467
|
+
let if_block1 = /*form*/ ctx[2]?.message && create_if_block_1$4(ctx);
|
|
32468
|
+
let each_value = /*step*/ ctx[5]?.callbacks;
|
|
32313
32469
|
let each_blocks = [];
|
|
32314
32470
|
|
|
32315
32471
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -32320,8 +32476,8 @@ function create_default_slot$5(ctx) {
|
|
|
32320
32476
|
each_blocks[i] = null;
|
|
32321
32477
|
});
|
|
32322
32478
|
|
|
32323
|
-
let if_block2 = (/*metadata*/ ctx[
|
|
32324
|
-
backto = new Back_to({ props: { journey: /*journey*/ ctx[
|
|
32479
|
+
let if_block2 = (/*metadata*/ ctx[4]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[4]?.step?.derived.isStepSelfSubmittable) && create_if_block$5(ctx);
|
|
32480
|
+
backto = new Back_to({ props: { journey: /*journey*/ ctx[3] } });
|
|
32325
32481
|
|
|
32326
32482
|
return {
|
|
32327
32483
|
c() {
|
|
@@ -32358,7 +32514,7 @@ function create_default_slot$5(ctx) {
|
|
|
32358
32514
|
append(header, t1);
|
|
32359
32515
|
append(header, p);
|
|
32360
32516
|
mount_component(sanitize1, p, null);
|
|
32361
|
-
/*header_binding*/ ctx[
|
|
32517
|
+
/*header_binding*/ ctx[14](header);
|
|
32362
32518
|
insert(target, t2, anchor);
|
|
32363
32519
|
if (if_block1) if_block1.m(target, anchor);
|
|
32364
32520
|
insert(target, t3, anchor);
|
|
@@ -32374,9 +32530,9 @@ function create_default_slot$5(ctx) {
|
|
|
32374
32530
|
current = true;
|
|
32375
32531
|
},
|
|
32376
32532
|
p(ctx, dirty) {
|
|
32377
|
-
if (/*form*/ ctx[
|
|
32533
|
+
if (/*form*/ ctx[2]?.icon && /*componentStyle*/ ctx[1] !== 'inline') {
|
|
32378
32534
|
if (if_block0) {
|
|
32379
|
-
if (dirty & /*form*/
|
|
32535
|
+
if (dirty & /*form, componentStyle*/ 6) {
|
|
32380
32536
|
transition_in(if_block0, 1);
|
|
32381
32537
|
}
|
|
32382
32538
|
} else {
|
|
@@ -32396,17 +32552,17 @@ function create_default_slot$5(ctx) {
|
|
|
32396
32552
|
}
|
|
32397
32553
|
|
|
32398
32554
|
const sanitize0_changes = {};
|
|
32399
|
-
if (dirty & /*step*/
|
|
32555
|
+
if (dirty & /*step*/ 32) sanitize0_changes.string = /*step*/ ctx[5]?.getHeader() || '';
|
|
32400
32556
|
sanitize0.$set(sanitize0_changes);
|
|
32401
32557
|
const sanitize1_changes = {};
|
|
32402
|
-
if (dirty & /*step*/
|
|
32558
|
+
if (dirty & /*step*/ 32) sanitize1_changes.string = /*step*/ ctx[5]?.getDescription() || '';
|
|
32403
32559
|
sanitize1.$set(sanitize1_changes);
|
|
32404
32560
|
|
|
32405
|
-
if (/*form*/ ctx[
|
|
32561
|
+
if (/*form*/ ctx[2]?.message) {
|
|
32406
32562
|
if (if_block1) {
|
|
32407
32563
|
if_block1.p(ctx, dirty);
|
|
32408
32564
|
|
|
32409
|
-
if (dirty & /*form*/
|
|
32565
|
+
if (dirty & /*form*/ 4) {
|
|
32410
32566
|
transition_in(if_block1, 1);
|
|
32411
32567
|
}
|
|
32412
32568
|
} else {
|
|
@@ -32425,8 +32581,8 @@ function create_default_slot$5(ctx) {
|
|
|
32425
32581
|
check_outros();
|
|
32426
32582
|
}
|
|
32427
32583
|
|
|
32428
|
-
if (dirty & /*step, metadata, determineSubmission, $styleStore*/
|
|
32429
|
-
each_value = /*step*/ ctx[
|
|
32584
|
+
if (dirty & /*step, metadata, determineSubmission, $styleStore*/ 6192) {
|
|
32585
|
+
each_value = /*step*/ ctx[5]?.callbacks;
|
|
32430
32586
|
let i;
|
|
32431
32587
|
|
|
32432
32588
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -32452,11 +32608,11 @@ function create_default_slot$5(ctx) {
|
|
|
32452
32608
|
check_outros();
|
|
32453
32609
|
}
|
|
32454
32610
|
|
|
32455
|
-
if (/*metadata*/ ctx[
|
|
32611
|
+
if (/*metadata*/ ctx[4]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[4]?.step?.derived.isStepSelfSubmittable) {
|
|
32456
32612
|
if (if_block2) {
|
|
32457
32613
|
if_block2.p(ctx, dirty);
|
|
32458
32614
|
|
|
32459
|
-
if (dirty & /*metadata*/
|
|
32615
|
+
if (dirty & /*metadata*/ 16) {
|
|
32460
32616
|
transition_in(if_block2, 1);
|
|
32461
32617
|
}
|
|
32462
32618
|
} else {
|
|
@@ -32476,7 +32632,7 @@ function create_default_slot$5(ctx) {
|
|
|
32476
32632
|
}
|
|
32477
32633
|
|
|
32478
32634
|
const backto_changes = {};
|
|
32479
|
-
if (dirty & /*journey*/
|
|
32635
|
+
if (dirty & /*journey*/ 8) backto_changes.journey = /*journey*/ ctx[3];
|
|
32480
32636
|
backto.$set(backto_changes);
|
|
32481
32637
|
},
|
|
32482
32638
|
i(local) {
|
|
@@ -32515,7 +32671,7 @@ function create_default_slot$5(ctx) {
|
|
|
32515
32671
|
if (detaching) detach(header);
|
|
32516
32672
|
destroy_component(sanitize0);
|
|
32517
32673
|
destroy_component(sanitize1);
|
|
32518
|
-
/*header_binding*/ ctx[
|
|
32674
|
+
/*header_binding*/ ctx[14](null);
|
|
32519
32675
|
if (detaching) detach(t2);
|
|
32520
32676
|
if (if_block1) if_block1.d(detaching);
|
|
32521
32677
|
if (detaching) detach(t3);
|
|
@@ -32534,14 +32690,14 @@ function create_fragment$7(ctx) {
|
|
|
32534
32690
|
let current;
|
|
32535
32691
|
|
|
32536
32692
|
function form_1_formEl_binding(value) {
|
|
32537
|
-
/*form_1_formEl_binding*/ ctx[
|
|
32693
|
+
/*form_1_formEl_binding*/ ctx[15](value);
|
|
32538
32694
|
}
|
|
32539
32695
|
|
|
32540
32696
|
let form_1_props = {
|
|
32541
|
-
ariaDescribedBy: /*formAriaDescriptor*/ ctx[
|
|
32697
|
+
ariaDescribedBy: /*formAriaDescriptor*/ ctx[8],
|
|
32542
32698
|
id: formElementId,
|
|
32543
|
-
needsFocus: /*formNeedsFocus*/ ctx[
|
|
32544
|
-
onSubmitWhenValid: /*submitFormWrapper*/ ctx[
|
|
32699
|
+
needsFocus: /*formNeedsFocus*/ ctx[9],
|
|
32700
|
+
onSubmitWhenValid: /*submitFormWrapper*/ ctx[13],
|
|
32545
32701
|
$$slots: { default: [create_default_slot$5] },
|
|
32546
32702
|
$$scope: { ctx }
|
|
32547
32703
|
};
|
|
@@ -32563,10 +32719,10 @@ function create_fragment$7(ctx) {
|
|
|
32563
32719
|
},
|
|
32564
32720
|
p(ctx, [dirty]) {
|
|
32565
32721
|
const form_1_changes = {};
|
|
32566
|
-
if (dirty & /*formAriaDescriptor*/
|
|
32567
|
-
if (dirty & /*formNeedsFocus*/
|
|
32722
|
+
if (dirty & /*formAriaDescriptor*/ 256) form_1_changes.ariaDescribedBy = /*formAriaDescriptor*/ ctx[8];
|
|
32723
|
+
if (dirty & /*formNeedsFocus*/ 512) form_1_changes.needsFocus = /*formNeedsFocus*/ ctx[9];
|
|
32568
32724
|
|
|
32569
|
-
if (dirty & /*$$scope, journey, metadata, step, $styleStore, alertNeedsFocus, formMessageKey, form, linkWrapper*/
|
|
32725
|
+
if (dirty & /*$$scope, journey, metadata, step, $styleStore, alertNeedsFocus, formMessageKey, form, linkWrapper, componentStyle*/ 527614) {
|
|
32570
32726
|
form_1_changes.$$scope = { dirty, ctx };
|
|
32571
32727
|
}
|
|
32572
32728
|
|
|
@@ -32599,7 +32755,8 @@ const formElementId = 'genericStepForm';
|
|
|
32599
32755
|
|
|
32600
32756
|
function instance$7($$self, $$props, $$invalidate) {
|
|
32601
32757
|
let $styleStore;
|
|
32602
|
-
component_subscribe($$self, styleStore, $$value => $$invalidate(
|
|
32758
|
+
component_subscribe($$self, styleStore, $$value => $$invalidate(11, $styleStore = $$value));
|
|
32759
|
+
let { componentStyle } = $$props;
|
|
32603
32760
|
let { form } = $$props;
|
|
32604
32761
|
let { formEl = null } = $$props;
|
|
32605
32762
|
let { journey } = $$props;
|
|
@@ -32621,20 +32778,20 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
32621
32778
|
}
|
|
32622
32779
|
|
|
32623
32780
|
function submitFormWrapper() {
|
|
32624
|
-
$$invalidate(
|
|
32625
|
-
$$invalidate(
|
|
32781
|
+
$$invalidate(6, alertNeedsFocus = false);
|
|
32782
|
+
$$invalidate(9, formNeedsFocus = false);
|
|
32626
32783
|
form?.submit();
|
|
32627
32784
|
}
|
|
32628
32785
|
|
|
32629
32786
|
afterUpdate(() => {
|
|
32630
32787
|
if (form?.message) {
|
|
32631
|
-
$$invalidate(
|
|
32632
|
-
$$invalidate(
|
|
32633
|
-
$$invalidate(
|
|
32788
|
+
$$invalidate(8, formAriaDescriptor = formFailureMessageId);
|
|
32789
|
+
$$invalidate(6, alertNeedsFocus = true);
|
|
32790
|
+
$$invalidate(9, formNeedsFocus = false);
|
|
32634
32791
|
} else {
|
|
32635
|
-
$$invalidate(
|
|
32636
|
-
$$invalidate(
|
|
32637
|
-
$$invalidate(
|
|
32792
|
+
$$invalidate(8, formAriaDescriptor = formHeaderId);
|
|
32793
|
+
$$invalidate(6, alertNeedsFocus = false);
|
|
32794
|
+
$$invalidate(9, formNeedsFocus = true);
|
|
32638
32795
|
}
|
|
32639
32796
|
});
|
|
32640
32797
|
|
|
@@ -32643,7 +32800,7 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
32643
32800
|
function header_binding($$value) {
|
|
32644
32801
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
32645
32802
|
linkWrapper = $$value;
|
|
32646
|
-
$$invalidate(
|
|
32803
|
+
$$invalidate(10, linkWrapper);
|
|
32647
32804
|
});
|
|
32648
32805
|
}
|
|
32649
32806
|
|
|
@@ -32653,24 +32810,26 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
32653
32810
|
}
|
|
32654
32811
|
|
|
32655
32812
|
$$self.$$set = $$props => {
|
|
32656
|
-
if ('
|
|
32813
|
+
if ('componentStyle' in $$props) $$invalidate(1, componentStyle = $$props.componentStyle);
|
|
32814
|
+
if ('form' in $$props) $$invalidate(2, form = $$props.form);
|
|
32657
32815
|
if ('formEl' in $$props) $$invalidate(0, formEl = $$props.formEl);
|
|
32658
|
-
if ('journey' in $$props) $$invalidate(
|
|
32659
|
-
if ('metadata' in $$props) $$invalidate(
|
|
32660
|
-
if ('step' in $$props) $$invalidate(
|
|
32816
|
+
if ('journey' in $$props) $$invalidate(3, journey = $$props.journey);
|
|
32817
|
+
if ('metadata' in $$props) $$invalidate(4, metadata = $$props.metadata);
|
|
32818
|
+
if ('step' in $$props) $$invalidate(5, step = $$props.step);
|
|
32661
32819
|
};
|
|
32662
32820
|
|
|
32663
32821
|
$$self.$$.update = () => {
|
|
32664
|
-
if ($$self.$$.dirty & /*step, form*/
|
|
32822
|
+
if ($$self.$$.dirty & /*step, form*/ 36) {
|
|
32665
32823
|
{
|
|
32666
32824
|
shouldRedirectFromStep(step) && FRAuth$1.redirect(step);
|
|
32667
|
-
$$invalidate(
|
|
32825
|
+
$$invalidate(7, formMessageKey = convertStringToKey(form?.message));
|
|
32668
32826
|
}
|
|
32669
32827
|
}
|
|
32670
32828
|
};
|
|
32671
32829
|
|
|
32672
32830
|
return [
|
|
32673
32831
|
formEl,
|
|
32832
|
+
componentStyle,
|
|
32674
32833
|
form,
|
|
32675
32834
|
journey,
|
|
32676
32835
|
metadata,
|
|
@@ -32693,11 +32852,12 @@ class Generic extends SvelteComponent {
|
|
|
32693
32852
|
super();
|
|
32694
32853
|
|
|
32695
32854
|
init(this, options, instance$7, create_fragment$7, safe_not_equal, {
|
|
32696
|
-
|
|
32855
|
+
componentStyle: 1,
|
|
32856
|
+
form: 2,
|
|
32697
32857
|
formEl: 0,
|
|
32698
|
-
journey:
|
|
32699
|
-
metadata:
|
|
32700
|
-
step:
|
|
32858
|
+
journey: 3,
|
|
32859
|
+
metadata: 4,
|
|
32860
|
+
step: 5
|
|
32701
32861
|
});
|
|
32702
32862
|
}
|
|
32703
32863
|
}
|
|
@@ -32810,13 +32970,101 @@ class Key_icon extends SvelteComponent {
|
|
|
32810
32970
|
|
|
32811
32971
|
function get_each_context$2(ctx, list, i) {
|
|
32812
32972
|
const child_ctx = ctx.slice();
|
|
32813
|
-
child_ctx[
|
|
32814
|
-
child_ctx[
|
|
32973
|
+
child_ctx[11] = list[i];
|
|
32974
|
+
child_ctx[13] = i;
|
|
32815
32975
|
return child_ctx;
|
|
32816
32976
|
}
|
|
32817
32977
|
|
|
32818
|
-
// (
|
|
32978
|
+
// (38:2) {#if componentStyle !== 'inline'}
|
|
32819
32979
|
function create_if_block_2$3(ctx) {
|
|
32980
|
+
let t0;
|
|
32981
|
+
let h1;
|
|
32982
|
+
let t1;
|
|
32983
|
+
let t2;
|
|
32984
|
+
let p;
|
|
32985
|
+
let t3;
|
|
32986
|
+
let current;
|
|
32987
|
+
let if_block = /*form*/ ctx[2]?.icon && create_if_block_3$3();
|
|
32988
|
+
|
|
32989
|
+
t1 = new Locale_strings({
|
|
32990
|
+
props: { key: "twoFactorAuthentication" }
|
|
32991
|
+
});
|
|
32992
|
+
|
|
32993
|
+
t3 = new Locale_strings({
|
|
32994
|
+
props: { key: "useTheAuthenticatorAppOnYourPhone" }
|
|
32995
|
+
});
|
|
32996
|
+
|
|
32997
|
+
return {
|
|
32998
|
+
c() {
|
|
32999
|
+
if (if_block) if_block.c();
|
|
33000
|
+
t0 = space();
|
|
33001
|
+
h1 = element("h1");
|
|
33002
|
+
create_component(t1.$$.fragment);
|
|
33003
|
+
t2 = space();
|
|
33004
|
+
p = element("p");
|
|
33005
|
+
create_component(t3.$$.fragment);
|
|
33006
|
+
attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
|
|
33007
|
+
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");
|
|
33008
|
+
},
|
|
33009
|
+
m(target, anchor) {
|
|
33010
|
+
if (if_block) if_block.m(target, anchor);
|
|
33011
|
+
insert(target, t0, anchor);
|
|
33012
|
+
insert(target, h1, anchor);
|
|
33013
|
+
mount_component(t1, h1, null);
|
|
33014
|
+
insert(target, t2, anchor);
|
|
33015
|
+
insert(target, p, anchor);
|
|
33016
|
+
mount_component(t3, p, null);
|
|
33017
|
+
current = true;
|
|
33018
|
+
},
|
|
33019
|
+
p(ctx, dirty) {
|
|
33020
|
+
if (/*form*/ ctx[2]?.icon) {
|
|
33021
|
+
if (if_block) {
|
|
33022
|
+
if (dirty & /*form*/ 4) {
|
|
33023
|
+
transition_in(if_block, 1);
|
|
33024
|
+
}
|
|
33025
|
+
} else {
|
|
33026
|
+
if_block = create_if_block_3$3();
|
|
33027
|
+
if_block.c();
|
|
33028
|
+
transition_in(if_block, 1);
|
|
33029
|
+
if_block.m(t0.parentNode, t0);
|
|
33030
|
+
}
|
|
33031
|
+
} else if (if_block) {
|
|
33032
|
+
group_outros();
|
|
33033
|
+
|
|
33034
|
+
transition_out(if_block, 1, 1, () => {
|
|
33035
|
+
if_block = null;
|
|
33036
|
+
});
|
|
33037
|
+
|
|
33038
|
+
check_outros();
|
|
33039
|
+
}
|
|
33040
|
+
},
|
|
33041
|
+
i(local) {
|
|
33042
|
+
if (current) return;
|
|
33043
|
+
transition_in(if_block);
|
|
33044
|
+
transition_in(t1.$$.fragment, local);
|
|
33045
|
+
transition_in(t3.$$.fragment, local);
|
|
33046
|
+
current = true;
|
|
33047
|
+
},
|
|
33048
|
+
o(local) {
|
|
33049
|
+
transition_out(if_block);
|
|
33050
|
+
transition_out(t1.$$.fragment, local);
|
|
33051
|
+
transition_out(t3.$$.fragment, local);
|
|
33052
|
+
current = false;
|
|
33053
|
+
},
|
|
33054
|
+
d(detaching) {
|
|
33055
|
+
if (if_block) if_block.d(detaching);
|
|
33056
|
+
if (detaching) detach(t0);
|
|
33057
|
+
if (detaching) detach(h1);
|
|
33058
|
+
destroy_component(t1);
|
|
33059
|
+
if (detaching) detach(t2);
|
|
33060
|
+
if (detaching) detach(p);
|
|
33061
|
+
destroy_component(t3);
|
|
33062
|
+
}
|
|
33063
|
+
};
|
|
33064
|
+
}
|
|
33065
|
+
|
|
33066
|
+
// (39:4) {#if form?.icon}
|
|
33067
|
+
function create_if_block_3$3(ctx) {
|
|
32820
33068
|
let div;
|
|
32821
33069
|
let keyicon;
|
|
32822
33070
|
let current;
|
|
@@ -32855,7 +33103,7 @@ function create_if_block_2$3(ctx) {
|
|
|
32855
33103
|
};
|
|
32856
33104
|
}
|
|
32857
33105
|
|
|
32858
|
-
// (
|
|
33106
|
+
// (54:2) {#if form?.message}
|
|
32859
33107
|
function create_if_block_1$3(ctx) {
|
|
32860
33108
|
let alert;
|
|
32861
33109
|
let current;
|
|
@@ -32863,7 +33111,7 @@ function create_if_block_1$3(ctx) {
|
|
|
32863
33111
|
alert = new Alert({
|
|
32864
33112
|
props: {
|
|
32865
33113
|
id: "formFailureMessageAlert",
|
|
32866
|
-
needsFocus: /*alertNeedsFocus*/ ctx[
|
|
33114
|
+
needsFocus: /*alertNeedsFocus*/ ctx[6],
|
|
32867
33115
|
type: "error",
|
|
32868
33116
|
$$slots: { default: [create_default_slot_2$2] },
|
|
32869
33117
|
$$scope: { ctx }
|
|
@@ -32880,9 +33128,9 @@ function create_if_block_1$3(ctx) {
|
|
|
32880
33128
|
},
|
|
32881
33129
|
p(ctx, dirty) {
|
|
32882
33130
|
const alert_changes = {};
|
|
32883
|
-
if (dirty & /*alertNeedsFocus*/
|
|
33131
|
+
if (dirty & /*alertNeedsFocus*/ 64) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[6];
|
|
32884
33132
|
|
|
32885
|
-
if (dirty & /*$$scope, formMessageKey, form*/
|
|
33133
|
+
if (dirty & /*$$scope, formMessageKey, form*/ 16516) {
|
|
32886
33134
|
alert_changes.$$scope = { dirty, ctx };
|
|
32887
33135
|
}
|
|
32888
33136
|
|
|
@@ -32903,9 +33151,9 @@ function create_if_block_1$3(ctx) {
|
|
|
32903
33151
|
};
|
|
32904
33152
|
}
|
|
32905
33153
|
|
|
32906
|
-
// (
|
|
33154
|
+
// (55:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
|
|
32907
33155
|
function create_default_slot_2$2(ctx) {
|
|
32908
|
-
let t_value = interpolate(/*formMessageKey*/ ctx[
|
|
33156
|
+
let t_value = interpolate(/*formMessageKey*/ ctx[7], null, /*form*/ ctx[2]?.message) + "";
|
|
32909
33157
|
let t;
|
|
32910
33158
|
|
|
32911
33159
|
return {
|
|
@@ -32916,7 +33164,7 @@ function create_default_slot_2$2(ctx) {
|
|
|
32916
33164
|
insert(target, t, anchor);
|
|
32917
33165
|
},
|
|
32918
33166
|
p(ctx, dirty) {
|
|
32919
|
-
if (dirty & /*formMessageKey, form*/
|
|
33167
|
+
if (dirty & /*formMessageKey, form*/ 132 && t_value !== (t_value = interpolate(/*formMessageKey*/ ctx[7], null, /*form*/ ctx[2]?.message) + "")) set_data(t, t_value);
|
|
32920
33168
|
},
|
|
32921
33169
|
d(detaching) {
|
|
32922
33170
|
if (detaching) detach(t);
|
|
@@ -32924,7 +33172,7 @@ function create_default_slot_2$2(ctx) {
|
|
|
32924
33172
|
};
|
|
32925
33173
|
}
|
|
32926
33174
|
|
|
32927
|
-
// (
|
|
33175
|
+
// (60:2) {#each step?.callbacks as callback, idx}
|
|
32928
33176
|
function create_each_block$2(ctx) {
|
|
32929
33177
|
let callbackmapper;
|
|
32930
33178
|
let current;
|
|
@@ -32932,11 +33180,11 @@ function create_each_block$2(ctx) {
|
|
|
32932
33180
|
callbackmapper = new Callback_mapper({
|
|
32933
33181
|
props: {
|
|
32934
33182
|
props: {
|
|
32935
|
-
callback: /*callback*/ ctx[
|
|
32936
|
-
callbackMetadata: /*metadata*/ ctx[
|
|
32937
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
32938
|
-
stepMetadata: /*metadata*/ ctx[
|
|
32939
|
-
style: /*$style*/ ctx[
|
|
33183
|
+
callback: /*callback*/ ctx[11],
|
|
33184
|
+
callbackMetadata: /*metadata*/ ctx[4]?.callbacks[/*idx*/ ctx[13]],
|
|
33185
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[9],
|
|
33186
|
+
stepMetadata: /*metadata*/ ctx[4]?.step && { .../*metadata*/ ctx[4].step },
|
|
33187
|
+
style: /*$style*/ ctx[8]
|
|
32940
33188
|
}
|
|
32941
33189
|
}
|
|
32942
33190
|
});
|
|
@@ -32952,12 +33200,12 @@ function create_each_block$2(ctx) {
|
|
|
32952
33200
|
p(ctx, dirty) {
|
|
32953
33201
|
const callbackmapper_changes = {};
|
|
32954
33202
|
|
|
32955
|
-
if (dirty & /*step, metadata, $style*/
|
|
32956
|
-
callback: /*callback*/ ctx[
|
|
32957
|
-
callbackMetadata: /*metadata*/ ctx[
|
|
32958
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
32959
|
-
stepMetadata: /*metadata*/ ctx[
|
|
32960
|
-
style: /*$style*/ ctx[
|
|
33203
|
+
if (dirty & /*step, metadata, $style*/ 304) callbackmapper_changes.props = {
|
|
33204
|
+
callback: /*callback*/ ctx[11],
|
|
33205
|
+
callbackMetadata: /*metadata*/ ctx[4]?.callbacks[/*idx*/ ctx[13]],
|
|
33206
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[9],
|
|
33207
|
+
stepMetadata: /*metadata*/ ctx[4]?.step && { .../*metadata*/ ctx[4].step },
|
|
33208
|
+
style: /*$style*/ ctx[8]
|
|
32961
33209
|
};
|
|
32962
33210
|
|
|
32963
33211
|
callbackmapper.$set(callbackmapper_changes);
|
|
@@ -32977,14 +33225,14 @@ function create_each_block$2(ctx) {
|
|
|
32977
33225
|
};
|
|
32978
33226
|
}
|
|
32979
33227
|
|
|
32980
|
-
// (
|
|
33228
|
+
// (72:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
|
|
32981
33229
|
function create_if_block$4(ctx) {
|
|
32982
33230
|
let button;
|
|
32983
33231
|
let current;
|
|
32984
33232
|
|
|
32985
33233
|
button = new Button({
|
|
32986
33234
|
props: {
|
|
32987
|
-
busy: /*journey*/ ctx[
|
|
33235
|
+
busy: /*journey*/ ctx[3]?.loading,
|
|
32988
33236
|
style: "primary",
|
|
32989
33237
|
type: "submit",
|
|
32990
33238
|
width: "full",
|
|
@@ -33003,9 +33251,9 @@ function create_if_block$4(ctx) {
|
|
|
33003
33251
|
},
|
|
33004
33252
|
p(ctx, dirty) {
|
|
33005
33253
|
const button_changes = {};
|
|
33006
|
-
if (dirty & /*journey*/
|
|
33254
|
+
if (dirty & /*journey*/ 8) button_changes.busy = /*journey*/ ctx[3]?.loading;
|
|
33007
33255
|
|
|
33008
|
-
if (dirty & /*$$scope*/
|
|
33256
|
+
if (dirty & /*$$scope*/ 16384) {
|
|
33009
33257
|
button_changes.$$scope = { dirty, ctx };
|
|
33010
33258
|
}
|
|
33011
33259
|
|
|
@@ -33026,7 +33274,7 @@ function create_if_block$4(ctx) {
|
|
|
33026
33274
|
};
|
|
33027
33275
|
}
|
|
33028
33276
|
|
|
33029
|
-
// (
|
|
33277
|
+
// (73:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
|
|
33030
33278
|
function create_default_slot_1$3(ctx) {
|
|
33031
33279
|
let t;
|
|
33032
33280
|
let current;
|
|
@@ -33056,31 +33304,16 @@ function create_default_slot_1$3(ctx) {
|
|
|
33056
33304
|
};
|
|
33057
33305
|
}
|
|
33058
33306
|
|
|
33059
|
-
// (
|
|
33307
|
+
// (37:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
|
|
33060
33308
|
function create_default_slot$4(ctx) {
|
|
33061
33309
|
let t0;
|
|
33062
|
-
let h1;
|
|
33063
33310
|
let t1;
|
|
33064
33311
|
let t2;
|
|
33065
|
-
let p;
|
|
33066
|
-
let t3;
|
|
33067
|
-
let t4;
|
|
33068
|
-
let t5;
|
|
33069
|
-
let t6;
|
|
33070
33312
|
let if_block2_anchor;
|
|
33071
33313
|
let current;
|
|
33072
|
-
let if_block0 = /*
|
|
33073
|
-
|
|
33074
|
-
|
|
33075
|
-
props: { key: "twoFactorAuthentication" }
|
|
33076
|
-
});
|
|
33077
|
-
|
|
33078
|
-
t3 = new Locale_strings({
|
|
33079
|
-
props: { key: "useTheAuthenticatorAppOnYourPhone" }
|
|
33080
|
-
});
|
|
33081
|
-
|
|
33082
|
-
let if_block1 = /*form*/ ctx[1]?.message && create_if_block_1$3(ctx);
|
|
33083
|
-
let each_value = /*step*/ ctx[4]?.callbacks;
|
|
33314
|
+
let if_block0 = /*componentStyle*/ ctx[1] !== 'inline' && create_if_block_2$3(ctx);
|
|
33315
|
+
let if_block1 = /*form*/ ctx[2]?.message && create_if_block_1$3(ctx);
|
|
33316
|
+
let each_value = /*step*/ ctx[5]?.callbacks;
|
|
33084
33317
|
let each_blocks = [];
|
|
33085
33318
|
|
|
33086
33319
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -33091,60 +33324,48 @@ function create_default_slot$4(ctx) {
|
|
|
33091
33324
|
each_blocks[i] = null;
|
|
33092
33325
|
});
|
|
33093
33326
|
|
|
33094
|
-
let if_block2 = (/*metadata*/ ctx[
|
|
33327
|
+
let if_block2 = (/*metadata*/ ctx[4]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[4]?.step?.derived.isStepSelfSubmittable) && create_if_block$4(ctx);
|
|
33095
33328
|
|
|
33096
33329
|
return {
|
|
33097
33330
|
c() {
|
|
33098
33331
|
if (if_block0) if_block0.c();
|
|
33099
33332
|
t0 = space();
|
|
33100
|
-
h1 = element("h1");
|
|
33101
|
-
create_component(t1.$$.fragment);
|
|
33102
|
-
t2 = space();
|
|
33103
|
-
p = element("p");
|
|
33104
|
-
create_component(t3.$$.fragment);
|
|
33105
|
-
t4 = space();
|
|
33106
33333
|
if (if_block1) if_block1.c();
|
|
33107
|
-
|
|
33334
|
+
t1 = space();
|
|
33108
33335
|
|
|
33109
33336
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
33110
33337
|
each_blocks[i].c();
|
|
33111
33338
|
}
|
|
33112
33339
|
|
|
33113
|
-
|
|
33340
|
+
t2 = space();
|
|
33114
33341
|
if (if_block2) if_block2.c();
|
|
33115
33342
|
if_block2_anchor = empty();
|
|
33116
|
-
attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
|
|
33117
|
-
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");
|
|
33118
33343
|
},
|
|
33119
33344
|
m(target, anchor) {
|
|
33120
33345
|
if (if_block0) if_block0.m(target, anchor);
|
|
33121
33346
|
insert(target, t0, anchor);
|
|
33122
|
-
insert(target, h1, anchor);
|
|
33123
|
-
mount_component(t1, h1, null);
|
|
33124
|
-
insert(target, t2, anchor);
|
|
33125
|
-
insert(target, p, anchor);
|
|
33126
|
-
mount_component(t3, p, null);
|
|
33127
|
-
insert(target, t4, anchor);
|
|
33128
33347
|
if (if_block1) if_block1.m(target, anchor);
|
|
33129
|
-
insert(target,
|
|
33348
|
+
insert(target, t1, anchor);
|
|
33130
33349
|
|
|
33131
33350
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
33132
33351
|
each_blocks[i].m(target, anchor);
|
|
33133
33352
|
}
|
|
33134
33353
|
|
|
33135
|
-
insert(target,
|
|
33354
|
+
insert(target, t2, anchor);
|
|
33136
33355
|
if (if_block2) if_block2.m(target, anchor);
|
|
33137
33356
|
insert(target, if_block2_anchor, anchor);
|
|
33138
33357
|
current = true;
|
|
33139
33358
|
},
|
|
33140
33359
|
p(ctx, dirty) {
|
|
33141
|
-
if (/*
|
|
33360
|
+
if (/*componentStyle*/ ctx[1] !== 'inline') {
|
|
33142
33361
|
if (if_block0) {
|
|
33143
|
-
|
|
33362
|
+
if_block0.p(ctx, dirty);
|
|
33363
|
+
|
|
33364
|
+
if (dirty & /*componentStyle*/ 2) {
|
|
33144
33365
|
transition_in(if_block0, 1);
|
|
33145
33366
|
}
|
|
33146
33367
|
} else {
|
|
33147
|
-
if_block0 = create_if_block_2$3();
|
|
33368
|
+
if_block0 = create_if_block_2$3(ctx);
|
|
33148
33369
|
if_block0.c();
|
|
33149
33370
|
transition_in(if_block0, 1);
|
|
33150
33371
|
if_block0.m(t0.parentNode, t0);
|
|
@@ -33159,18 +33380,18 @@ function create_default_slot$4(ctx) {
|
|
|
33159
33380
|
check_outros();
|
|
33160
33381
|
}
|
|
33161
33382
|
|
|
33162
|
-
if (/*form*/ ctx[
|
|
33383
|
+
if (/*form*/ ctx[2]?.message) {
|
|
33163
33384
|
if (if_block1) {
|
|
33164
33385
|
if_block1.p(ctx, dirty);
|
|
33165
33386
|
|
|
33166
|
-
if (dirty & /*form*/
|
|
33387
|
+
if (dirty & /*form*/ 4) {
|
|
33167
33388
|
transition_in(if_block1, 1);
|
|
33168
33389
|
}
|
|
33169
33390
|
} else {
|
|
33170
33391
|
if_block1 = create_if_block_1$3(ctx);
|
|
33171
33392
|
if_block1.c();
|
|
33172
33393
|
transition_in(if_block1, 1);
|
|
33173
|
-
if_block1.m(
|
|
33394
|
+
if_block1.m(t1.parentNode, t1);
|
|
33174
33395
|
}
|
|
33175
33396
|
} else if (if_block1) {
|
|
33176
33397
|
group_outros();
|
|
@@ -33182,8 +33403,8 @@ function create_default_slot$4(ctx) {
|
|
|
33182
33403
|
check_outros();
|
|
33183
33404
|
}
|
|
33184
33405
|
|
|
33185
|
-
if (dirty & /*step, metadata, determineSubmission, $style*/
|
|
33186
|
-
each_value = /*step*/ ctx[
|
|
33406
|
+
if (dirty & /*step, metadata, determineSubmission, $style*/ 816) {
|
|
33407
|
+
each_value = /*step*/ ctx[5]?.callbacks;
|
|
33187
33408
|
let i;
|
|
33188
33409
|
|
|
33189
33410
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -33196,7 +33417,7 @@ function create_default_slot$4(ctx) {
|
|
|
33196
33417
|
each_blocks[i] = create_each_block$2(child_ctx);
|
|
33197
33418
|
each_blocks[i].c();
|
|
33198
33419
|
transition_in(each_blocks[i], 1);
|
|
33199
|
-
each_blocks[i].m(
|
|
33420
|
+
each_blocks[i].m(t2.parentNode, t2);
|
|
33200
33421
|
}
|
|
33201
33422
|
}
|
|
33202
33423
|
|
|
@@ -33209,11 +33430,11 @@ function create_default_slot$4(ctx) {
|
|
|
33209
33430
|
check_outros();
|
|
33210
33431
|
}
|
|
33211
33432
|
|
|
33212
|
-
if (/*metadata*/ ctx[
|
|
33433
|
+
if (/*metadata*/ ctx[4]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[4]?.step?.derived.isStepSelfSubmittable) {
|
|
33213
33434
|
if (if_block2) {
|
|
33214
33435
|
if_block2.p(ctx, dirty);
|
|
33215
33436
|
|
|
33216
|
-
if (dirty & /*metadata*/
|
|
33437
|
+
if (dirty & /*metadata*/ 16) {
|
|
33217
33438
|
transition_in(if_block2, 1);
|
|
33218
33439
|
}
|
|
33219
33440
|
} else {
|
|
@@ -33235,8 +33456,6 @@ function create_default_slot$4(ctx) {
|
|
|
33235
33456
|
i(local) {
|
|
33236
33457
|
if (current) return;
|
|
33237
33458
|
transition_in(if_block0);
|
|
33238
|
-
transition_in(t1.$$.fragment, local);
|
|
33239
|
-
transition_in(t3.$$.fragment, local);
|
|
33240
33459
|
transition_in(if_block1);
|
|
33241
33460
|
|
|
33242
33461
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -33248,8 +33467,6 @@ function create_default_slot$4(ctx) {
|
|
|
33248
33467
|
},
|
|
33249
33468
|
o(local) {
|
|
33250
33469
|
transition_out(if_block0);
|
|
33251
|
-
transition_out(t1.$$.fragment, local);
|
|
33252
|
-
transition_out(t3.$$.fragment, local);
|
|
33253
33470
|
transition_out(if_block1);
|
|
33254
33471
|
each_blocks = each_blocks.filter(Boolean);
|
|
33255
33472
|
|
|
@@ -33263,16 +33480,10 @@ function create_default_slot$4(ctx) {
|
|
|
33263
33480
|
d(detaching) {
|
|
33264
33481
|
if (if_block0) if_block0.d(detaching);
|
|
33265
33482
|
if (detaching) detach(t0);
|
|
33266
|
-
if (detaching) detach(h1);
|
|
33267
|
-
destroy_component(t1);
|
|
33268
|
-
if (detaching) detach(t2);
|
|
33269
|
-
if (detaching) detach(p);
|
|
33270
|
-
destroy_component(t3);
|
|
33271
|
-
if (detaching) detach(t4);
|
|
33272
33483
|
if (if_block1) if_block1.d(detaching);
|
|
33273
|
-
if (detaching) detach(
|
|
33484
|
+
if (detaching) detach(t1);
|
|
33274
33485
|
destroy_each(each_blocks, detaching);
|
|
33275
|
-
if (detaching) detach(
|
|
33486
|
+
if (detaching) detach(t2);
|
|
33276
33487
|
if (if_block2) if_block2.d(detaching);
|
|
33277
33488
|
if (detaching) detach(if_block2_anchor);
|
|
33278
33489
|
}
|
|
@@ -33285,12 +33496,12 @@ function create_fragment$5(ctx) {
|
|
|
33285
33496
|
let current;
|
|
33286
33497
|
|
|
33287
33498
|
function form_1_formEl_binding(value) {
|
|
33288
|
-
/*form_1_formEl_binding*/ ctx[
|
|
33499
|
+
/*form_1_formEl_binding*/ ctx[10](value);
|
|
33289
33500
|
}
|
|
33290
33501
|
|
|
33291
33502
|
let form_1_props = {
|
|
33292
33503
|
ariaDescribedBy: "formFailureMessageAlert",
|
|
33293
|
-
onSubmitWhenValid: /*form*/ ctx[
|
|
33504
|
+
onSubmitWhenValid: /*form*/ ctx[2]?.submit,
|
|
33294
33505
|
$$slots: { default: [create_default_slot$4] },
|
|
33295
33506
|
$$scope: { ctx }
|
|
33296
33507
|
};
|
|
@@ -33312,9 +33523,9 @@ function create_fragment$5(ctx) {
|
|
|
33312
33523
|
},
|
|
33313
33524
|
p(ctx, [dirty]) {
|
|
33314
33525
|
const form_1_changes = {};
|
|
33315
|
-
if (dirty & /*form*/
|
|
33526
|
+
if (dirty & /*form*/ 4) form_1_changes.onSubmitWhenValid = /*form*/ ctx[2]?.submit;
|
|
33316
33527
|
|
|
33317
|
-
if (dirty & /*$$scope, journey, metadata, step, $style, alertNeedsFocus, formMessageKey, form*/
|
|
33528
|
+
if (dirty & /*$$scope, journey, metadata, step, $style, alertNeedsFocus, formMessageKey, form, componentStyle*/ 16894) {
|
|
33318
33529
|
form_1_changes.$$scope = { dirty, ctx };
|
|
33319
33530
|
}
|
|
33320
33531
|
|
|
@@ -33343,7 +33554,8 @@ function create_fragment$5(ctx) {
|
|
|
33343
33554
|
|
|
33344
33555
|
function instance$5($$self, $$props, $$invalidate) {
|
|
33345
33556
|
let $style;
|
|
33346
|
-
component_subscribe($$self, styleStore, $$value => $$invalidate(
|
|
33557
|
+
component_subscribe($$self, styleStore, $$value => $$invalidate(8, $style = $$value));
|
|
33558
|
+
let { componentStyle } = $$props;
|
|
33347
33559
|
let { form } = $$props;
|
|
33348
33560
|
let { formEl = null } = $$props;
|
|
33349
33561
|
let { journey } = $$props;
|
|
@@ -33362,7 +33574,7 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
33362
33574
|
}
|
|
33363
33575
|
|
|
33364
33576
|
afterUpdate(() => {
|
|
33365
|
-
$$invalidate(
|
|
33577
|
+
$$invalidate(6, alertNeedsFocus = !!form?.message);
|
|
33366
33578
|
});
|
|
33367
33579
|
|
|
33368
33580
|
function form_1_formEl_binding(value) {
|
|
@@ -33371,23 +33583,25 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
33371
33583
|
}
|
|
33372
33584
|
|
|
33373
33585
|
$$self.$$set = $$props => {
|
|
33374
|
-
if ('
|
|
33586
|
+
if ('componentStyle' in $$props) $$invalidate(1, componentStyle = $$props.componentStyle);
|
|
33587
|
+
if ('form' in $$props) $$invalidate(2, form = $$props.form);
|
|
33375
33588
|
if ('formEl' in $$props) $$invalidate(0, formEl = $$props.formEl);
|
|
33376
|
-
if ('journey' in $$props) $$invalidate(
|
|
33377
|
-
if ('metadata' in $$props) $$invalidate(
|
|
33378
|
-
if ('step' in $$props) $$invalidate(
|
|
33589
|
+
if ('journey' in $$props) $$invalidate(3, journey = $$props.journey);
|
|
33590
|
+
if ('metadata' in $$props) $$invalidate(4, metadata = $$props.metadata);
|
|
33591
|
+
if ('step' in $$props) $$invalidate(5, step = $$props.step);
|
|
33379
33592
|
};
|
|
33380
33593
|
|
|
33381
33594
|
$$self.$$.update = () => {
|
|
33382
|
-
if ($$self.$$.dirty & /*form*/
|
|
33595
|
+
if ($$self.$$.dirty & /*form*/ 4) {
|
|
33383
33596
|
{
|
|
33384
|
-
$$invalidate(
|
|
33597
|
+
$$invalidate(7, formMessageKey = convertStringToKey(form?.message));
|
|
33385
33598
|
}
|
|
33386
33599
|
}
|
|
33387
33600
|
};
|
|
33388
33601
|
|
|
33389
33602
|
return [
|
|
33390
33603
|
formEl,
|
|
33604
|
+
componentStyle,
|
|
33391
33605
|
form,
|
|
33392
33606
|
journey,
|
|
33393
33607
|
metadata,
|
|
@@ -33405,11 +33619,12 @@ class One_time_password extends SvelteComponent {
|
|
|
33405
33619
|
super();
|
|
33406
33620
|
|
|
33407
33621
|
init(this, options, instance$5, create_fragment$5, safe_not_equal, {
|
|
33408
|
-
|
|
33622
|
+
componentStyle: 1,
|
|
33623
|
+
form: 2,
|
|
33409
33624
|
formEl: 0,
|
|
33410
|
-
journey:
|
|
33411
|
-
metadata:
|
|
33412
|
-
step:
|
|
33625
|
+
journey: 3,
|
|
33626
|
+
metadata: 4,
|
|
33627
|
+
step: 5
|
|
33413
33628
|
});
|
|
33414
33629
|
}
|
|
33415
33630
|
}
|
|
@@ -33522,13 +33737,100 @@ class New_user_icon extends SvelteComponent {
|
|
|
33522
33737
|
|
|
33523
33738
|
function get_each_context$1(ctx, list, i) {
|
|
33524
33739
|
const child_ctx = ctx.slice();
|
|
33525
|
-
child_ctx[
|
|
33526
|
-
child_ctx[
|
|
33740
|
+
child_ctx[13] = list[i];
|
|
33741
|
+
child_ctx[15] = i;
|
|
33527
33742
|
return child_ctx;
|
|
33528
33743
|
}
|
|
33529
33744
|
|
|
33530
|
-
// (
|
|
33745
|
+
// (50:2) {#if componentStyle !== 'inline'}
|
|
33531
33746
|
function create_if_block_2$2(ctx) {
|
|
33747
|
+
let t0;
|
|
33748
|
+
let h1;
|
|
33749
|
+
let t1;
|
|
33750
|
+
let t2;
|
|
33751
|
+
let p;
|
|
33752
|
+
let t3;
|
|
33753
|
+
let current;
|
|
33754
|
+
let if_block = /*form*/ ctx[2]?.icon && create_if_block_3$2();
|
|
33755
|
+
t1 = new Locale_strings({ props: { key: "registerHeader" } });
|
|
33756
|
+
|
|
33757
|
+
t3 = new Locale_strings({
|
|
33758
|
+
props: { key: "alreadyHaveAnAccount", html: true }
|
|
33759
|
+
});
|
|
33760
|
+
|
|
33761
|
+
return {
|
|
33762
|
+
c() {
|
|
33763
|
+
if (if_block) if_block.c();
|
|
33764
|
+
t0 = space();
|
|
33765
|
+
h1 = element("h1");
|
|
33766
|
+
create_component(t1.$$.fragment);
|
|
33767
|
+
t2 = space();
|
|
33768
|
+
p = element("p");
|
|
33769
|
+
create_component(t3.$$.fragment);
|
|
33770
|
+
attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
|
|
33771
|
+
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");
|
|
33772
|
+
},
|
|
33773
|
+
m(target, anchor) {
|
|
33774
|
+
if (if_block) if_block.m(target, anchor);
|
|
33775
|
+
insert(target, t0, anchor);
|
|
33776
|
+
insert(target, h1, anchor);
|
|
33777
|
+
mount_component(t1, h1, null);
|
|
33778
|
+
insert(target, t2, anchor);
|
|
33779
|
+
insert(target, p, anchor);
|
|
33780
|
+
mount_component(t3, p, null);
|
|
33781
|
+
/*p_binding*/ ctx[11](p);
|
|
33782
|
+
current = true;
|
|
33783
|
+
},
|
|
33784
|
+
p(ctx, dirty) {
|
|
33785
|
+
if (/*form*/ ctx[2]?.icon) {
|
|
33786
|
+
if (if_block) {
|
|
33787
|
+
if (dirty & /*form*/ 4) {
|
|
33788
|
+
transition_in(if_block, 1);
|
|
33789
|
+
}
|
|
33790
|
+
} else {
|
|
33791
|
+
if_block = create_if_block_3$2();
|
|
33792
|
+
if_block.c();
|
|
33793
|
+
transition_in(if_block, 1);
|
|
33794
|
+
if_block.m(t0.parentNode, t0);
|
|
33795
|
+
}
|
|
33796
|
+
} else if (if_block) {
|
|
33797
|
+
group_outros();
|
|
33798
|
+
|
|
33799
|
+
transition_out(if_block, 1, 1, () => {
|
|
33800
|
+
if_block = null;
|
|
33801
|
+
});
|
|
33802
|
+
|
|
33803
|
+
check_outros();
|
|
33804
|
+
}
|
|
33805
|
+
},
|
|
33806
|
+
i(local) {
|
|
33807
|
+
if (current) return;
|
|
33808
|
+
transition_in(if_block);
|
|
33809
|
+
transition_in(t1.$$.fragment, local);
|
|
33810
|
+
transition_in(t3.$$.fragment, local);
|
|
33811
|
+
current = true;
|
|
33812
|
+
},
|
|
33813
|
+
o(local) {
|
|
33814
|
+
transition_out(if_block);
|
|
33815
|
+
transition_out(t1.$$.fragment, local);
|
|
33816
|
+
transition_out(t3.$$.fragment, local);
|
|
33817
|
+
current = false;
|
|
33818
|
+
},
|
|
33819
|
+
d(detaching) {
|
|
33820
|
+
if (if_block) if_block.d(detaching);
|
|
33821
|
+
if (detaching) detach(t0);
|
|
33822
|
+
if (detaching) detach(h1);
|
|
33823
|
+
destroy_component(t1);
|
|
33824
|
+
if (detaching) detach(t2);
|
|
33825
|
+
if (detaching) detach(p);
|
|
33826
|
+
destroy_component(t3);
|
|
33827
|
+
/*p_binding*/ ctx[11](null);
|
|
33828
|
+
}
|
|
33829
|
+
};
|
|
33830
|
+
}
|
|
33831
|
+
|
|
33832
|
+
// (51:4) {#if form?.icon}
|
|
33833
|
+
function create_if_block_3$2(ctx) {
|
|
33532
33834
|
let div;
|
|
33533
33835
|
let newusericon;
|
|
33534
33836
|
let current;
|
|
@@ -33567,7 +33869,7 @@ function create_if_block_2$2(ctx) {
|
|
|
33567
33869
|
};
|
|
33568
33870
|
}
|
|
33569
33871
|
|
|
33570
|
-
// (
|
|
33872
|
+
// (67:2) {#if form.message}
|
|
33571
33873
|
function create_if_block_1$2(ctx) {
|
|
33572
33874
|
let alert;
|
|
33573
33875
|
let current;
|
|
@@ -33575,7 +33877,7 @@ function create_if_block_1$2(ctx) {
|
|
|
33575
33877
|
alert = new Alert({
|
|
33576
33878
|
props: {
|
|
33577
33879
|
id: "formFailureMessageAlert",
|
|
33578
|
-
needsFocus: /*alertNeedsFocus*/ ctx[
|
|
33880
|
+
needsFocus: /*alertNeedsFocus*/ ctx[6],
|
|
33579
33881
|
type: "error",
|
|
33580
33882
|
$$slots: { default: [create_default_slot_2$1] },
|
|
33581
33883
|
$$scope: { ctx }
|
|
@@ -33592,9 +33894,9 @@ function create_if_block_1$2(ctx) {
|
|
|
33592
33894
|
},
|
|
33593
33895
|
p(ctx, dirty) {
|
|
33594
33896
|
const alert_changes = {};
|
|
33595
|
-
if (dirty & /*alertNeedsFocus*/
|
|
33897
|
+
if (dirty & /*alertNeedsFocus*/ 64) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[6];
|
|
33596
33898
|
|
|
33597
|
-
if (dirty & /*$$scope, formMessageKey, form*/
|
|
33899
|
+
if (dirty & /*$$scope, formMessageKey, form*/ 65668) {
|
|
33598
33900
|
alert_changes.$$scope = { dirty, ctx };
|
|
33599
33901
|
}
|
|
33600
33902
|
|
|
@@ -33615,9 +33917,9 @@ function create_if_block_1$2(ctx) {
|
|
|
33615
33917
|
};
|
|
33616
33918
|
}
|
|
33617
33919
|
|
|
33618
|
-
// (
|
|
33920
|
+
// (68:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
|
|
33619
33921
|
function create_default_slot_2$1(ctx) {
|
|
33620
|
-
let t_value = interpolate(/*formMessageKey*/ ctx[
|
|
33922
|
+
let t_value = interpolate(/*formMessageKey*/ ctx[7], null, /*form*/ ctx[2]?.message) + "";
|
|
33621
33923
|
let t;
|
|
33622
33924
|
|
|
33623
33925
|
return {
|
|
@@ -33628,7 +33930,7 @@ function create_default_slot_2$1(ctx) {
|
|
|
33628
33930
|
insert(target, t, anchor);
|
|
33629
33931
|
},
|
|
33630
33932
|
p(ctx, dirty) {
|
|
33631
|
-
if (dirty & /*formMessageKey, form*/
|
|
33933
|
+
if (dirty & /*formMessageKey, form*/ 132 && t_value !== (t_value = interpolate(/*formMessageKey*/ ctx[7], null, /*form*/ ctx[2]?.message) + "")) set_data(t, t_value);
|
|
33632
33934
|
},
|
|
33633
33935
|
d(detaching) {
|
|
33634
33936
|
if (detaching) detach(t);
|
|
@@ -33636,7 +33938,7 @@ function create_default_slot_2$1(ctx) {
|
|
|
33636
33938
|
};
|
|
33637
33939
|
}
|
|
33638
33940
|
|
|
33639
|
-
// (
|
|
33941
|
+
// (73:2) {#each step?.callbacks as callback, idx}
|
|
33640
33942
|
function create_each_block$1(ctx) {
|
|
33641
33943
|
let callbackmapper;
|
|
33642
33944
|
let current;
|
|
@@ -33644,11 +33946,11 @@ function create_each_block$1(ctx) {
|
|
|
33644
33946
|
callbackmapper = new Callback_mapper({
|
|
33645
33947
|
props: {
|
|
33646
33948
|
props: {
|
|
33647
|
-
callback: /*callback*/ ctx[
|
|
33648
|
-
callbackMetadata: /*metadata*/ ctx[
|
|
33649
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
33650
|
-
stepMetadata: /*metadata*/ ctx[
|
|
33651
|
-
style: /*$styleStore*/ ctx[
|
|
33949
|
+
callback: /*callback*/ ctx[13],
|
|
33950
|
+
callbackMetadata: /*metadata*/ ctx[4]?.callbacks[/*idx*/ ctx[15]],
|
|
33951
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[10],
|
|
33952
|
+
stepMetadata: /*metadata*/ ctx[4]?.step && { .../*metadata*/ ctx[4].step },
|
|
33953
|
+
style: /*$styleStore*/ ctx[9]
|
|
33652
33954
|
}
|
|
33653
33955
|
}
|
|
33654
33956
|
});
|
|
@@ -33664,12 +33966,12 @@ function create_each_block$1(ctx) {
|
|
|
33664
33966
|
p(ctx, dirty) {
|
|
33665
33967
|
const callbackmapper_changes = {};
|
|
33666
33968
|
|
|
33667
|
-
if (dirty & /*step, metadata, $styleStore*/
|
|
33668
|
-
callback: /*callback*/ ctx[
|
|
33669
|
-
callbackMetadata: /*metadata*/ ctx[
|
|
33670
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
33671
|
-
stepMetadata: /*metadata*/ ctx[
|
|
33672
|
-
style: /*$styleStore*/ ctx[
|
|
33969
|
+
if (dirty & /*step, metadata, $styleStore*/ 560) callbackmapper_changes.props = {
|
|
33970
|
+
callback: /*callback*/ ctx[13],
|
|
33971
|
+
callbackMetadata: /*metadata*/ ctx[4]?.callbacks[/*idx*/ ctx[15]],
|
|
33972
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[10],
|
|
33973
|
+
stepMetadata: /*metadata*/ ctx[4]?.step && { .../*metadata*/ ctx[4].step },
|
|
33974
|
+
style: /*$styleStore*/ ctx[9]
|
|
33673
33975
|
};
|
|
33674
33976
|
|
|
33675
33977
|
callbackmapper.$set(callbackmapper_changes);
|
|
@@ -33689,14 +33991,14 @@ function create_each_block$1(ctx) {
|
|
|
33689
33991
|
};
|
|
33690
33992
|
}
|
|
33691
33993
|
|
|
33692
|
-
// (
|
|
33994
|
+
// (85:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
|
|
33693
33995
|
function create_if_block$3(ctx) {
|
|
33694
33996
|
let button;
|
|
33695
33997
|
let current;
|
|
33696
33998
|
|
|
33697
33999
|
button = new Button({
|
|
33698
34000
|
props: {
|
|
33699
|
-
busy: /*journey*/ ctx[
|
|
34001
|
+
busy: /*journey*/ ctx[3]?.loading,
|
|
33700
34002
|
style: "primary",
|
|
33701
34003
|
type: "submit",
|
|
33702
34004
|
width: "full",
|
|
@@ -33715,9 +34017,9 @@ function create_if_block$3(ctx) {
|
|
|
33715
34017
|
},
|
|
33716
34018
|
p(ctx, dirty) {
|
|
33717
34019
|
const button_changes = {};
|
|
33718
|
-
if (dirty & /*journey*/
|
|
34020
|
+
if (dirty & /*journey*/ 8) button_changes.busy = /*journey*/ ctx[3]?.loading;
|
|
33719
34021
|
|
|
33720
|
-
if (dirty & /*$$scope*/
|
|
34022
|
+
if (dirty & /*$$scope*/ 65536) {
|
|
33721
34023
|
button_changes.$$scope = { dirty, ctx };
|
|
33722
34024
|
}
|
|
33723
34025
|
|
|
@@ -33738,7 +34040,7 @@ function create_if_block$3(ctx) {
|
|
|
33738
34040
|
};
|
|
33739
34041
|
}
|
|
33740
34042
|
|
|
33741
|
-
// (
|
|
34043
|
+
// (86:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
|
|
33742
34044
|
function create_default_slot_1$2(ctx) {
|
|
33743
34045
|
let t;
|
|
33744
34046
|
let current;
|
|
@@ -33768,28 +34070,16 @@ function create_default_slot_1$2(ctx) {
|
|
|
33768
34070
|
};
|
|
33769
34071
|
}
|
|
33770
34072
|
|
|
33771
|
-
// (
|
|
34073
|
+
// (49:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
|
|
33772
34074
|
function create_default_slot$3(ctx) {
|
|
33773
34075
|
let t0;
|
|
33774
|
-
let h1;
|
|
33775
34076
|
let t1;
|
|
33776
34077
|
let t2;
|
|
33777
|
-
let p;
|
|
33778
|
-
let t3;
|
|
33779
|
-
let t4;
|
|
33780
|
-
let t5;
|
|
33781
|
-
let t6;
|
|
33782
34078
|
let if_block2_anchor;
|
|
33783
34079
|
let current;
|
|
33784
|
-
let if_block0 = /*
|
|
33785
|
-
|
|
33786
|
-
|
|
33787
|
-
t3 = new Locale_strings({
|
|
33788
|
-
props: { key: "alreadyHaveAnAccount", html: true }
|
|
33789
|
-
});
|
|
33790
|
-
|
|
33791
|
-
let if_block1 = /*form*/ ctx[1].message && create_if_block_1$2(ctx);
|
|
33792
|
-
let each_value = /*step*/ ctx[4]?.callbacks;
|
|
34080
|
+
let if_block0 = /*componentStyle*/ ctx[1] !== 'inline' && create_if_block_2$2(ctx);
|
|
34081
|
+
let if_block1 = /*form*/ ctx[2].message && create_if_block_1$2(ctx);
|
|
34082
|
+
let each_value = /*step*/ ctx[5]?.callbacks;
|
|
33793
34083
|
let each_blocks = [];
|
|
33794
34084
|
|
|
33795
34085
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -33800,61 +34090,48 @@ function create_default_slot$3(ctx) {
|
|
|
33800
34090
|
each_blocks[i] = null;
|
|
33801
34091
|
});
|
|
33802
34092
|
|
|
33803
|
-
let if_block2 = (/*metadata*/ ctx[
|
|
34093
|
+
let if_block2 = (/*metadata*/ ctx[4]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[4]?.step?.derived.isStepSelfSubmittable) && create_if_block$3(ctx);
|
|
33804
34094
|
|
|
33805
34095
|
return {
|
|
33806
34096
|
c() {
|
|
33807
34097
|
if (if_block0) if_block0.c();
|
|
33808
34098
|
t0 = space();
|
|
33809
|
-
h1 = element("h1");
|
|
33810
|
-
create_component(t1.$$.fragment);
|
|
33811
|
-
t2 = space();
|
|
33812
|
-
p = element("p");
|
|
33813
|
-
create_component(t3.$$.fragment);
|
|
33814
|
-
t4 = space();
|
|
33815
34099
|
if (if_block1) if_block1.c();
|
|
33816
|
-
|
|
34100
|
+
t1 = space();
|
|
33817
34101
|
|
|
33818
34102
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
33819
34103
|
each_blocks[i].c();
|
|
33820
34104
|
}
|
|
33821
34105
|
|
|
33822
|
-
|
|
34106
|
+
t2 = space();
|
|
33823
34107
|
if (if_block2) if_block2.c();
|
|
33824
34108
|
if_block2_anchor = empty();
|
|
33825
|
-
attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
|
|
33826
|
-
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");
|
|
33827
34109
|
},
|
|
33828
34110
|
m(target, anchor) {
|
|
33829
34111
|
if (if_block0) if_block0.m(target, anchor);
|
|
33830
34112
|
insert(target, t0, anchor);
|
|
33831
|
-
insert(target, h1, anchor);
|
|
33832
|
-
mount_component(t1, h1, null);
|
|
33833
|
-
insert(target, t2, anchor);
|
|
33834
|
-
insert(target, p, anchor);
|
|
33835
|
-
mount_component(t3, p, null);
|
|
33836
|
-
/*p_binding*/ ctx[10](p);
|
|
33837
|
-
insert(target, t4, anchor);
|
|
33838
34113
|
if (if_block1) if_block1.m(target, anchor);
|
|
33839
|
-
insert(target,
|
|
34114
|
+
insert(target, t1, anchor);
|
|
33840
34115
|
|
|
33841
34116
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
33842
34117
|
each_blocks[i].m(target, anchor);
|
|
33843
34118
|
}
|
|
33844
34119
|
|
|
33845
|
-
insert(target,
|
|
34120
|
+
insert(target, t2, anchor);
|
|
33846
34121
|
if (if_block2) if_block2.m(target, anchor);
|
|
33847
34122
|
insert(target, if_block2_anchor, anchor);
|
|
33848
34123
|
current = true;
|
|
33849
34124
|
},
|
|
33850
34125
|
p(ctx, dirty) {
|
|
33851
|
-
if (/*
|
|
34126
|
+
if (/*componentStyle*/ ctx[1] !== 'inline') {
|
|
33852
34127
|
if (if_block0) {
|
|
33853
|
-
|
|
34128
|
+
if_block0.p(ctx, dirty);
|
|
34129
|
+
|
|
34130
|
+
if (dirty & /*componentStyle*/ 2) {
|
|
33854
34131
|
transition_in(if_block0, 1);
|
|
33855
34132
|
}
|
|
33856
34133
|
} else {
|
|
33857
|
-
if_block0 = create_if_block_2$2();
|
|
34134
|
+
if_block0 = create_if_block_2$2(ctx);
|
|
33858
34135
|
if_block0.c();
|
|
33859
34136
|
transition_in(if_block0, 1);
|
|
33860
34137
|
if_block0.m(t0.parentNode, t0);
|
|
@@ -33869,18 +34146,18 @@ function create_default_slot$3(ctx) {
|
|
|
33869
34146
|
check_outros();
|
|
33870
34147
|
}
|
|
33871
34148
|
|
|
33872
|
-
if (/*form*/ ctx[
|
|
34149
|
+
if (/*form*/ ctx[2].message) {
|
|
33873
34150
|
if (if_block1) {
|
|
33874
34151
|
if_block1.p(ctx, dirty);
|
|
33875
34152
|
|
|
33876
|
-
if (dirty & /*form*/
|
|
34153
|
+
if (dirty & /*form*/ 4) {
|
|
33877
34154
|
transition_in(if_block1, 1);
|
|
33878
34155
|
}
|
|
33879
34156
|
} else {
|
|
33880
34157
|
if_block1 = create_if_block_1$2(ctx);
|
|
33881
34158
|
if_block1.c();
|
|
33882
34159
|
transition_in(if_block1, 1);
|
|
33883
|
-
if_block1.m(
|
|
34160
|
+
if_block1.m(t1.parentNode, t1);
|
|
33884
34161
|
}
|
|
33885
34162
|
} else if (if_block1) {
|
|
33886
34163
|
group_outros();
|
|
@@ -33892,8 +34169,8 @@ function create_default_slot$3(ctx) {
|
|
|
33892
34169
|
check_outros();
|
|
33893
34170
|
}
|
|
33894
34171
|
|
|
33895
|
-
if (dirty & /*step, metadata, determineSubmission, $styleStore*/
|
|
33896
|
-
each_value = /*step*/ ctx[
|
|
34172
|
+
if (dirty & /*step, metadata, determineSubmission, $styleStore*/ 1584) {
|
|
34173
|
+
each_value = /*step*/ ctx[5]?.callbacks;
|
|
33897
34174
|
let i;
|
|
33898
34175
|
|
|
33899
34176
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -33906,7 +34183,7 @@ function create_default_slot$3(ctx) {
|
|
|
33906
34183
|
each_blocks[i] = create_each_block$1(child_ctx);
|
|
33907
34184
|
each_blocks[i].c();
|
|
33908
34185
|
transition_in(each_blocks[i], 1);
|
|
33909
|
-
each_blocks[i].m(
|
|
34186
|
+
each_blocks[i].m(t2.parentNode, t2);
|
|
33910
34187
|
}
|
|
33911
34188
|
}
|
|
33912
34189
|
|
|
@@ -33919,11 +34196,11 @@ function create_default_slot$3(ctx) {
|
|
|
33919
34196
|
check_outros();
|
|
33920
34197
|
}
|
|
33921
34198
|
|
|
33922
|
-
if (/*metadata*/ ctx[
|
|
34199
|
+
if (/*metadata*/ ctx[4]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[4]?.step?.derived.isStepSelfSubmittable) {
|
|
33923
34200
|
if (if_block2) {
|
|
33924
34201
|
if_block2.p(ctx, dirty);
|
|
33925
34202
|
|
|
33926
|
-
if (dirty & /*metadata*/
|
|
34203
|
+
if (dirty & /*metadata*/ 16) {
|
|
33927
34204
|
transition_in(if_block2, 1);
|
|
33928
34205
|
}
|
|
33929
34206
|
} else {
|
|
@@ -33945,8 +34222,6 @@ function create_default_slot$3(ctx) {
|
|
|
33945
34222
|
i(local) {
|
|
33946
34223
|
if (current) return;
|
|
33947
34224
|
transition_in(if_block0);
|
|
33948
|
-
transition_in(t1.$$.fragment, local);
|
|
33949
|
-
transition_in(t3.$$.fragment, local);
|
|
33950
34225
|
transition_in(if_block1);
|
|
33951
34226
|
|
|
33952
34227
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -33958,8 +34233,6 @@ function create_default_slot$3(ctx) {
|
|
|
33958
34233
|
},
|
|
33959
34234
|
o(local) {
|
|
33960
34235
|
transition_out(if_block0);
|
|
33961
|
-
transition_out(t1.$$.fragment, local);
|
|
33962
|
-
transition_out(t3.$$.fragment, local);
|
|
33963
34236
|
transition_out(if_block1);
|
|
33964
34237
|
each_blocks = each_blocks.filter(Boolean);
|
|
33965
34238
|
|
|
@@ -33973,17 +34246,10 @@ function create_default_slot$3(ctx) {
|
|
|
33973
34246
|
d(detaching) {
|
|
33974
34247
|
if (if_block0) if_block0.d(detaching);
|
|
33975
34248
|
if (detaching) detach(t0);
|
|
33976
|
-
if (detaching) detach(h1);
|
|
33977
|
-
destroy_component(t1);
|
|
33978
|
-
if (detaching) detach(t2);
|
|
33979
|
-
if (detaching) detach(p);
|
|
33980
|
-
destroy_component(t3);
|
|
33981
|
-
/*p_binding*/ ctx[10](null);
|
|
33982
|
-
if (detaching) detach(t4);
|
|
33983
34249
|
if (if_block1) if_block1.d(detaching);
|
|
33984
|
-
if (detaching) detach(
|
|
34250
|
+
if (detaching) detach(t1);
|
|
33985
34251
|
destroy_each(each_blocks, detaching);
|
|
33986
|
-
if (detaching) detach(
|
|
34252
|
+
if (detaching) detach(t2);
|
|
33987
34253
|
if (if_block2) if_block2.d(detaching);
|
|
33988
34254
|
if (detaching) detach(if_block2_anchor);
|
|
33989
34255
|
}
|
|
@@ -33996,12 +34262,12 @@ function create_fragment$3(ctx) {
|
|
|
33996
34262
|
let current;
|
|
33997
34263
|
|
|
33998
34264
|
function form_1_formEl_binding(value) {
|
|
33999
|
-
/*form_1_formEl_binding*/ ctx[
|
|
34265
|
+
/*form_1_formEl_binding*/ ctx[12](value);
|
|
34000
34266
|
}
|
|
34001
34267
|
|
|
34002
34268
|
let form_1_props = {
|
|
34003
34269
|
ariaDescribedBy: "formFailureMessageAlert",
|
|
34004
|
-
onSubmitWhenValid: /*form*/ ctx[
|
|
34270
|
+
onSubmitWhenValid: /*form*/ ctx[2]?.submit,
|
|
34005
34271
|
$$slots: { default: [create_default_slot$3] },
|
|
34006
34272
|
$$scope: { ctx }
|
|
34007
34273
|
};
|
|
@@ -34023,9 +34289,9 @@ function create_fragment$3(ctx) {
|
|
|
34023
34289
|
},
|
|
34024
34290
|
p(ctx, [dirty]) {
|
|
34025
34291
|
const form_1_changes = {};
|
|
34026
|
-
if (dirty & /*form*/
|
|
34292
|
+
if (dirty & /*form*/ 4) form_1_changes.onSubmitWhenValid = /*form*/ ctx[2]?.submit;
|
|
34027
34293
|
|
|
34028
|
-
if (dirty & /*$$scope, journey, metadata, step, $styleStore, alertNeedsFocus, formMessageKey, form, linkWrapper*/
|
|
34294
|
+
if (dirty & /*$$scope, journey, metadata, step, $styleStore, alertNeedsFocus, formMessageKey, form, linkWrapper, componentStyle*/ 66558) {
|
|
34029
34295
|
form_1_changes.$$scope = { dirty, ctx };
|
|
34030
34296
|
}
|
|
34031
34297
|
|
|
@@ -34054,7 +34320,8 @@ function create_fragment$3(ctx) {
|
|
|
34054
34320
|
|
|
34055
34321
|
function instance$3($$self, $$props, $$invalidate) {
|
|
34056
34322
|
let $styleStore;
|
|
34057
|
-
component_subscribe($$self, styleStore, $$value => $$invalidate(
|
|
34323
|
+
component_subscribe($$self, styleStore, $$value => $$invalidate(9, $styleStore = $$value));
|
|
34324
|
+
let { componentStyle } = $$props;
|
|
34058
34325
|
let { form } = $$props;
|
|
34059
34326
|
let { formEl = null } = $$props;
|
|
34060
34327
|
let { journey } = $$props;
|
|
@@ -34074,15 +34341,25 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
34074
34341
|
}
|
|
34075
34342
|
|
|
34076
34343
|
afterUpdate(() => {
|
|
34077
|
-
$$invalidate(
|
|
34344
|
+
$$invalidate(6, alertNeedsFocus = !!form?.message);
|
|
34078
34345
|
});
|
|
34079
34346
|
|
|
34080
|
-
onMount(() =>
|
|
34347
|
+
onMount(() => {
|
|
34348
|
+
if (componentStyle === 'modal') {
|
|
34349
|
+
captureLinks(linkWrapper, journey);
|
|
34350
|
+
}
|
|
34351
|
+
});
|
|
34352
|
+
|
|
34353
|
+
onMount(() => {
|
|
34354
|
+
if (componentStyle === 'modal') {
|
|
34355
|
+
captureLinks(linkWrapper, journey);
|
|
34356
|
+
}
|
|
34357
|
+
});
|
|
34081
34358
|
|
|
34082
34359
|
function p_binding($$value) {
|
|
34083
34360
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
34084
34361
|
linkWrapper = $$value;
|
|
34085
|
-
$$invalidate(
|
|
34362
|
+
$$invalidate(8, linkWrapper);
|
|
34086
34363
|
});
|
|
34087
34364
|
}
|
|
34088
34365
|
|
|
@@ -34092,23 +34369,25 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
34092
34369
|
}
|
|
34093
34370
|
|
|
34094
34371
|
$$self.$$set = $$props => {
|
|
34095
|
-
if ('
|
|
34372
|
+
if ('componentStyle' in $$props) $$invalidate(1, componentStyle = $$props.componentStyle);
|
|
34373
|
+
if ('form' in $$props) $$invalidate(2, form = $$props.form);
|
|
34096
34374
|
if ('formEl' in $$props) $$invalidate(0, formEl = $$props.formEl);
|
|
34097
|
-
if ('journey' in $$props) $$invalidate(
|
|
34098
|
-
if ('metadata' in $$props) $$invalidate(
|
|
34099
|
-
if ('step' in $$props) $$invalidate(
|
|
34375
|
+
if ('journey' in $$props) $$invalidate(3, journey = $$props.journey);
|
|
34376
|
+
if ('metadata' in $$props) $$invalidate(4, metadata = $$props.metadata);
|
|
34377
|
+
if ('step' in $$props) $$invalidate(5, step = $$props.step);
|
|
34100
34378
|
};
|
|
34101
34379
|
|
|
34102
34380
|
$$self.$$.update = () => {
|
|
34103
|
-
if ($$self.$$.dirty & /*form*/
|
|
34381
|
+
if ($$self.$$.dirty & /*form*/ 4) {
|
|
34104
34382
|
{
|
|
34105
|
-
$$invalidate(
|
|
34383
|
+
$$invalidate(7, formMessageKey = convertStringToKey(form?.message));
|
|
34106
34384
|
}
|
|
34107
34385
|
}
|
|
34108
34386
|
};
|
|
34109
34387
|
|
|
34110
34388
|
return [
|
|
34111
34389
|
formEl,
|
|
34390
|
+
componentStyle,
|
|
34112
34391
|
form,
|
|
34113
34392
|
journey,
|
|
34114
34393
|
metadata,
|
|
@@ -34128,11 +34407,12 @@ class Registration extends SvelteComponent {
|
|
|
34128
34407
|
super();
|
|
34129
34408
|
|
|
34130
34409
|
init(this, options, instance$3, create_fragment$3, safe_not_equal, {
|
|
34131
|
-
|
|
34410
|
+
componentStyle: 1,
|
|
34411
|
+
form: 2,
|
|
34132
34412
|
formEl: 0,
|
|
34133
|
-
journey:
|
|
34134
|
-
metadata:
|
|
34135
|
-
step:
|
|
34413
|
+
journey: 3,
|
|
34414
|
+
metadata: 4,
|
|
34415
|
+
step: 5
|
|
34136
34416
|
});
|
|
34137
34417
|
}
|
|
34138
34418
|
}
|
|
@@ -34141,13 +34421,79 @@ class Registration extends SvelteComponent {
|
|
|
34141
34421
|
|
|
34142
34422
|
function get_each_context(ctx, list, i) {
|
|
34143
34423
|
const child_ctx = ctx.slice();
|
|
34144
|
-
child_ctx[
|
|
34145
|
-
child_ctx[
|
|
34424
|
+
child_ctx[15] = list[i];
|
|
34425
|
+
child_ctx[17] = i;
|
|
34146
34426
|
return child_ctx;
|
|
34147
34427
|
}
|
|
34148
34428
|
|
|
34149
|
-
// (
|
|
34150
|
-
function
|
|
34429
|
+
// (45:2) {#if componentStyle !== 'inline'}
|
|
34430
|
+
function create_if_block_3$1(ctx) {
|
|
34431
|
+
let t0;
|
|
34432
|
+
let h1;
|
|
34433
|
+
let t1;
|
|
34434
|
+
let current;
|
|
34435
|
+
let if_block = /*form*/ ctx[2]?.icon && create_if_block_4();
|
|
34436
|
+
t1 = new Locale_strings({ props: { key: "loginHeader" } });
|
|
34437
|
+
|
|
34438
|
+
return {
|
|
34439
|
+
c() {
|
|
34440
|
+
if (if_block) if_block.c();
|
|
34441
|
+
t0 = space();
|
|
34442
|
+
h1 = element("h1");
|
|
34443
|
+
create_component(t1.$$.fragment);
|
|
34444
|
+
attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
|
|
34445
|
+
},
|
|
34446
|
+
m(target, anchor) {
|
|
34447
|
+
if (if_block) if_block.m(target, anchor);
|
|
34448
|
+
insert(target, t0, anchor);
|
|
34449
|
+
insert(target, h1, anchor);
|
|
34450
|
+
mount_component(t1, h1, null);
|
|
34451
|
+
current = true;
|
|
34452
|
+
},
|
|
34453
|
+
p(ctx, dirty) {
|
|
34454
|
+
if (/*form*/ ctx[2]?.icon) {
|
|
34455
|
+
if (if_block) {
|
|
34456
|
+
if (dirty & /*form*/ 4) {
|
|
34457
|
+
transition_in(if_block, 1);
|
|
34458
|
+
}
|
|
34459
|
+
} else {
|
|
34460
|
+
if_block = create_if_block_4();
|
|
34461
|
+
if_block.c();
|
|
34462
|
+
transition_in(if_block, 1);
|
|
34463
|
+
if_block.m(t0.parentNode, t0);
|
|
34464
|
+
}
|
|
34465
|
+
} else if (if_block) {
|
|
34466
|
+
group_outros();
|
|
34467
|
+
|
|
34468
|
+
transition_out(if_block, 1, 1, () => {
|
|
34469
|
+
if_block = null;
|
|
34470
|
+
});
|
|
34471
|
+
|
|
34472
|
+
check_outros();
|
|
34473
|
+
}
|
|
34474
|
+
},
|
|
34475
|
+
i(local) {
|
|
34476
|
+
if (current) return;
|
|
34477
|
+
transition_in(if_block);
|
|
34478
|
+
transition_in(t1.$$.fragment, local);
|
|
34479
|
+
current = true;
|
|
34480
|
+
},
|
|
34481
|
+
o(local) {
|
|
34482
|
+
transition_out(if_block);
|
|
34483
|
+
transition_out(t1.$$.fragment, local);
|
|
34484
|
+
current = false;
|
|
34485
|
+
},
|
|
34486
|
+
d(detaching) {
|
|
34487
|
+
if (if_block) if_block.d(detaching);
|
|
34488
|
+
if (detaching) detach(t0);
|
|
34489
|
+
if (detaching) detach(h1);
|
|
34490
|
+
destroy_component(t1);
|
|
34491
|
+
}
|
|
34492
|
+
};
|
|
34493
|
+
}
|
|
34494
|
+
|
|
34495
|
+
// (46:4) {#if form?.icon}
|
|
34496
|
+
function create_if_block_4(ctx) {
|
|
34151
34497
|
let div;
|
|
34152
34498
|
let keyicon;
|
|
34153
34499
|
let current;
|
|
@@ -34186,15 +34532,15 @@ function create_if_block_2$1(ctx) {
|
|
|
34186
34532
|
};
|
|
34187
34533
|
}
|
|
34188
34534
|
|
|
34189
|
-
// (
|
|
34190
|
-
function
|
|
34535
|
+
// (56:2) {#if form?.message}
|
|
34536
|
+
function create_if_block_2$1(ctx) {
|
|
34191
34537
|
let alert;
|
|
34192
34538
|
let current;
|
|
34193
34539
|
|
|
34194
34540
|
alert = new Alert({
|
|
34195
34541
|
props: {
|
|
34196
34542
|
id: "formFailureMessageAlert",
|
|
34197
|
-
needsFocus: /*alertNeedsFocus*/ ctx[
|
|
34543
|
+
needsFocus: /*alertNeedsFocus*/ ctx[6],
|
|
34198
34544
|
type: "error",
|
|
34199
34545
|
$$slots: { default: [create_default_slot_2] },
|
|
34200
34546
|
$$scope: { ctx }
|
|
@@ -34211,9 +34557,9 @@ function create_if_block_1$1(ctx) {
|
|
|
34211
34557
|
},
|
|
34212
34558
|
p(ctx, dirty) {
|
|
34213
34559
|
const alert_changes = {};
|
|
34214
|
-
if (dirty & /*alertNeedsFocus*/
|
|
34560
|
+
if (dirty & /*alertNeedsFocus*/ 64) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[6];
|
|
34215
34561
|
|
|
34216
|
-
if (dirty & /*$$scope, formMessageKey, form*/
|
|
34562
|
+
if (dirty & /*$$scope, formMessageKey, form*/ 262276) {
|
|
34217
34563
|
alert_changes.$$scope = { dirty, ctx };
|
|
34218
34564
|
}
|
|
34219
34565
|
|
|
@@ -34234,9 +34580,9 @@ function create_if_block_1$1(ctx) {
|
|
|
34234
34580
|
};
|
|
34235
34581
|
}
|
|
34236
34582
|
|
|
34237
|
-
// (
|
|
34583
|
+
// (57:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
|
|
34238
34584
|
function create_default_slot_2(ctx) {
|
|
34239
|
-
let t_value = interpolate(/*formMessageKey*/ ctx[
|
|
34585
|
+
let t_value = interpolate(/*formMessageKey*/ ctx[7], null, /*form*/ ctx[2]?.message) + "";
|
|
34240
34586
|
let t;
|
|
34241
34587
|
|
|
34242
34588
|
return {
|
|
@@ -34247,7 +34593,7 @@ function create_default_slot_2(ctx) {
|
|
|
34247
34593
|
insert(target, t, anchor);
|
|
34248
34594
|
},
|
|
34249
34595
|
p(ctx, dirty) {
|
|
34250
|
-
if (dirty & /*formMessageKey, form*/
|
|
34596
|
+
if (dirty & /*formMessageKey, form*/ 132 && t_value !== (t_value = interpolate(/*formMessageKey*/ ctx[7], null, /*form*/ ctx[2]?.message) + "")) set_data(t, t_value);
|
|
34251
34597
|
},
|
|
34252
34598
|
d(detaching) {
|
|
34253
34599
|
if (detaching) detach(t);
|
|
@@ -34255,7 +34601,7 @@ function create_default_slot_2(ctx) {
|
|
|
34255
34601
|
};
|
|
34256
34602
|
}
|
|
34257
34603
|
|
|
34258
|
-
// (
|
|
34604
|
+
// (62:2) {#each step?.callbacks as callback, idx}
|
|
34259
34605
|
function create_each_block(ctx) {
|
|
34260
34606
|
let callbackmapper;
|
|
34261
34607
|
let current;
|
|
@@ -34263,11 +34609,11 @@ function create_each_block(ctx) {
|
|
|
34263
34609
|
callbackmapper = new Callback_mapper({
|
|
34264
34610
|
props: {
|
|
34265
34611
|
props: {
|
|
34266
|
-
callback: /*callback*/ ctx[
|
|
34267
|
-
callbackMetadata: /*metadata*/ ctx[
|
|
34268
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
34269
|
-
stepMetadata: /*metadata*/ ctx[
|
|
34270
|
-
style: /*$styleStore*/ ctx[
|
|
34612
|
+
callback: /*callback*/ ctx[15],
|
|
34613
|
+
callbackMetadata: /*metadata*/ ctx[4]?.callbacks[/*idx*/ ctx[17]],
|
|
34614
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[10],
|
|
34615
|
+
stepMetadata: /*metadata*/ ctx[4]?.step && { .../*metadata*/ ctx[4].step },
|
|
34616
|
+
style: /*$styleStore*/ ctx[9]
|
|
34271
34617
|
}
|
|
34272
34618
|
}
|
|
34273
34619
|
});
|
|
@@ -34283,12 +34629,12 @@ function create_each_block(ctx) {
|
|
|
34283
34629
|
p(ctx, dirty) {
|
|
34284
34630
|
const callbackmapper_changes = {};
|
|
34285
34631
|
|
|
34286
|
-
if (dirty & /*step, metadata, $styleStore*/
|
|
34287
|
-
callback: /*callback*/ ctx[
|
|
34288
|
-
callbackMetadata: /*metadata*/ ctx[
|
|
34289
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
34290
|
-
stepMetadata: /*metadata*/ ctx[
|
|
34291
|
-
style: /*$styleStore*/ ctx[
|
|
34632
|
+
if (dirty & /*step, metadata, $styleStore*/ 560) callbackmapper_changes.props = {
|
|
34633
|
+
callback: /*callback*/ ctx[15],
|
|
34634
|
+
callbackMetadata: /*metadata*/ ctx[4]?.callbacks[/*idx*/ ctx[17]],
|
|
34635
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[10],
|
|
34636
|
+
stepMetadata: /*metadata*/ ctx[4]?.step && { .../*metadata*/ ctx[4].step },
|
|
34637
|
+
style: /*$styleStore*/ ctx[9]
|
|
34292
34638
|
};
|
|
34293
34639
|
|
|
34294
34640
|
callbackmapper.$set(callbackmapper_changes);
|
|
@@ -34308,14 +34654,14 @@ function create_each_block(ctx) {
|
|
|
34308
34654
|
};
|
|
34309
34655
|
}
|
|
34310
34656
|
|
|
34311
|
-
// (
|
|
34312
|
-
function
|
|
34657
|
+
// (74:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
|
|
34658
|
+
function create_if_block_1$1(ctx) {
|
|
34313
34659
|
let button;
|
|
34314
34660
|
let current;
|
|
34315
34661
|
|
|
34316
34662
|
button = new Button({
|
|
34317
34663
|
props: {
|
|
34318
|
-
busy: /*journey*/ ctx[
|
|
34664
|
+
busy: /*journey*/ ctx[3]?.loading,
|
|
34319
34665
|
style: "primary",
|
|
34320
34666
|
type: "submit",
|
|
34321
34667
|
width: "full",
|
|
@@ -34334,9 +34680,9 @@ function create_if_block$2(ctx) {
|
|
|
34334
34680
|
},
|
|
34335
34681
|
p(ctx, dirty) {
|
|
34336
34682
|
const button_changes = {};
|
|
34337
|
-
if (dirty & /*journey*/
|
|
34683
|
+
if (dirty & /*journey*/ 8) button_changes.busy = /*journey*/ ctx[3]?.loading;
|
|
34338
34684
|
|
|
34339
|
-
if (dirty & /*$$scope*/
|
|
34685
|
+
if (dirty & /*$$scope*/ 262144) {
|
|
34340
34686
|
button_changes.$$scope = { dirty, ctx };
|
|
34341
34687
|
}
|
|
34342
34688
|
|
|
@@ -34357,7 +34703,7 @@ function create_if_block$2(ctx) {
|
|
|
34357
34703
|
};
|
|
34358
34704
|
}
|
|
34359
34705
|
|
|
34360
|
-
// (
|
|
34706
|
+
// (75:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
|
|
34361
34707
|
function create_default_slot_1$1(ctx) {
|
|
34362
34708
|
let t;
|
|
34363
34709
|
let current;
|
|
@@ -34387,31 +34733,99 @@ function create_default_slot_1$1(ctx) {
|
|
|
34387
34733
|
};
|
|
34388
34734
|
}
|
|
34389
34735
|
|
|
34390
|
-
// (
|
|
34391
|
-
function
|
|
34392
|
-
let t0;
|
|
34393
|
-
let h1;
|
|
34394
|
-
let t1;
|
|
34395
|
-
let t2;
|
|
34396
|
-
let t3;
|
|
34397
|
-
let t4;
|
|
34398
|
-
let t5;
|
|
34736
|
+
// (80:2) {#if componentStyle !== 'inline'}
|
|
34737
|
+
function create_if_block$2(ctx) {
|
|
34399
34738
|
let p0;
|
|
34400
34739
|
let button0;
|
|
34401
|
-
let
|
|
34740
|
+
let t1;
|
|
34402
34741
|
let button1;
|
|
34403
|
-
let
|
|
34742
|
+
let t3;
|
|
34404
34743
|
let hr;
|
|
34405
|
-
let
|
|
34744
|
+
let t4;
|
|
34406
34745
|
let p1;
|
|
34407
|
-
let
|
|
34746
|
+
let t5;
|
|
34408
34747
|
let current;
|
|
34409
34748
|
let mounted;
|
|
34410
34749
|
let dispose;
|
|
34411
|
-
|
|
34412
|
-
|
|
34413
|
-
|
|
34414
|
-
|
|
34750
|
+
|
|
34751
|
+
t5 = new Locale_strings({
|
|
34752
|
+
props: { key: "dontHaveAnAccount", html: true }
|
|
34753
|
+
});
|
|
34754
|
+
|
|
34755
|
+
return {
|
|
34756
|
+
c() {
|
|
34757
|
+
p0 = element("p");
|
|
34758
|
+
button0 = element("button");
|
|
34759
|
+
button0.textContent = `${interpolate('forgotPassword', null, 'Forgot Password?')}`;
|
|
34760
|
+
t1 = text("\n \n ");
|
|
34761
|
+
button1 = element("button");
|
|
34762
|
+
button1.textContent = `${interpolate('forgotUsername', null, 'Forgot Username?')}`;
|
|
34763
|
+
t3 = space();
|
|
34764
|
+
hr = element("hr");
|
|
34765
|
+
t4 = space();
|
|
34766
|
+
p1 = element("p");
|
|
34767
|
+
create_component(t5.$$.fragment);
|
|
34768
|
+
attr(p0, "class", "tw_my-4 tw_text-base tw_text-center tw_text-link-dark dark:tw_text-link-light");
|
|
34769
|
+
attr(hr, "class", "tw_border-0 tw_border-b tw_border-secondary-light dark:tw_border-secondary-dark");
|
|
34770
|
+
attr(p1, "class", "tw_text-base tw_text-center tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light");
|
|
34771
|
+
},
|
|
34772
|
+
m(target, anchor) {
|
|
34773
|
+
insert(target, p0, anchor);
|
|
34774
|
+
append(p0, button0);
|
|
34775
|
+
append(p0, t1);
|
|
34776
|
+
append(p0, button1);
|
|
34777
|
+
insert(target, t3, anchor);
|
|
34778
|
+
insert(target, hr, anchor);
|
|
34779
|
+
insert(target, t4, anchor);
|
|
34780
|
+
insert(target, p1, anchor);
|
|
34781
|
+
mount_component(t5, p1, null);
|
|
34782
|
+
/*p1_binding*/ ctx[13](p1);
|
|
34783
|
+
current = true;
|
|
34784
|
+
|
|
34785
|
+
if (!mounted) {
|
|
34786
|
+
dispose = [
|
|
34787
|
+
listen(button0, "click", prevent_default(/*click_handler*/ ctx[11])),
|
|
34788
|
+
listen(button1, "click", prevent_default(/*click_handler_1*/ ctx[12]))
|
|
34789
|
+
];
|
|
34790
|
+
|
|
34791
|
+
mounted = true;
|
|
34792
|
+
}
|
|
34793
|
+
},
|
|
34794
|
+
p: noop,
|
|
34795
|
+
i(local) {
|
|
34796
|
+
if (current) return;
|
|
34797
|
+
transition_in(t5.$$.fragment, local);
|
|
34798
|
+
current = true;
|
|
34799
|
+
},
|
|
34800
|
+
o(local) {
|
|
34801
|
+
transition_out(t5.$$.fragment, local);
|
|
34802
|
+
current = false;
|
|
34803
|
+
},
|
|
34804
|
+
d(detaching) {
|
|
34805
|
+
if (detaching) detach(p0);
|
|
34806
|
+
if (detaching) detach(t3);
|
|
34807
|
+
if (detaching) detach(hr);
|
|
34808
|
+
if (detaching) detach(t4);
|
|
34809
|
+
if (detaching) detach(p1);
|
|
34810
|
+
destroy_component(t5);
|
|
34811
|
+
/*p1_binding*/ ctx[13](null);
|
|
34812
|
+
mounted = false;
|
|
34813
|
+
run_all(dispose);
|
|
34814
|
+
}
|
|
34815
|
+
};
|
|
34816
|
+
}
|
|
34817
|
+
|
|
34818
|
+
// (44:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
|
|
34819
|
+
function create_default_slot$2(ctx) {
|
|
34820
|
+
let t0;
|
|
34821
|
+
let t1;
|
|
34822
|
+
let t2;
|
|
34823
|
+
let t3;
|
|
34824
|
+
let if_block3_anchor;
|
|
34825
|
+
let current;
|
|
34826
|
+
let if_block0 = /*componentStyle*/ ctx[1] !== 'inline' && create_if_block_3$1(ctx);
|
|
34827
|
+
let if_block1 = /*form*/ ctx[2]?.message && create_if_block_2$1(ctx);
|
|
34828
|
+
let each_value = /*step*/ ctx[5]?.callbacks;
|
|
34415
34829
|
let each_blocks = [];
|
|
34416
34830
|
|
|
34417
34831
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -34422,90 +34836,53 @@ function create_default_slot$2(ctx) {
|
|
|
34422
34836
|
each_blocks[i] = null;
|
|
34423
34837
|
});
|
|
34424
34838
|
|
|
34425
|
-
let if_block2 = (/*metadata*/ ctx[
|
|
34426
|
-
|
|
34427
|
-
t11 = new Locale_strings({
|
|
34428
|
-
props: { key: "dontHaveAnAccount", html: true }
|
|
34429
|
-
});
|
|
34839
|
+
let if_block2 = (/*metadata*/ ctx[4]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[4]?.step?.derived.isStepSelfSubmittable) && create_if_block_1$1(ctx);
|
|
34840
|
+
let if_block3 = /*componentStyle*/ ctx[1] !== 'inline' && create_if_block$2(ctx);
|
|
34430
34841
|
|
|
34431
34842
|
return {
|
|
34432
34843
|
c() {
|
|
34433
34844
|
if (if_block0) if_block0.c();
|
|
34434
34845
|
t0 = space();
|
|
34435
|
-
h1 = element("h1");
|
|
34436
|
-
create_component(t1.$$.fragment);
|
|
34437
|
-
t2 = space();
|
|
34438
34846
|
if (if_block1) if_block1.c();
|
|
34439
|
-
|
|
34847
|
+
t1 = space();
|
|
34440
34848
|
|
|
34441
34849
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
34442
34850
|
each_blocks[i].c();
|
|
34443
34851
|
}
|
|
34444
34852
|
|
|
34445
|
-
|
|
34853
|
+
t2 = space();
|
|
34446
34854
|
if (if_block2) if_block2.c();
|
|
34447
|
-
|
|
34448
|
-
|
|
34449
|
-
|
|
34450
|
-
button0.textContent = `${interpolate('forgotPassword', null, 'Forgot Password?')}`;
|
|
34451
|
-
t7 = text("\n \n ");
|
|
34452
|
-
button1 = element("button");
|
|
34453
|
-
button1.textContent = `${interpolate('forgotUsername', null, 'Forgot Username?')}`;
|
|
34454
|
-
t9 = space();
|
|
34455
|
-
hr = element("hr");
|
|
34456
|
-
t10 = space();
|
|
34457
|
-
p1 = element("p");
|
|
34458
|
-
create_component(t11.$$.fragment);
|
|
34459
|
-
attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
|
|
34460
|
-
attr(p0, "class", "tw_my-4 tw_text-base tw_text-center tw_text-link-dark dark:tw_text-link-light");
|
|
34461
|
-
attr(hr, "class", "tw_border-0 tw_border-b tw_border-secondary-light dark:tw_border-secondary-dark");
|
|
34462
|
-
attr(p1, "class", "tw_text-base tw_text-center tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light");
|
|
34855
|
+
t3 = space();
|
|
34856
|
+
if (if_block3) if_block3.c();
|
|
34857
|
+
if_block3_anchor = empty();
|
|
34463
34858
|
},
|
|
34464
34859
|
m(target, anchor) {
|
|
34465
34860
|
if (if_block0) if_block0.m(target, anchor);
|
|
34466
34861
|
insert(target, t0, anchor);
|
|
34467
|
-
insert(target, h1, anchor);
|
|
34468
|
-
mount_component(t1, h1, null);
|
|
34469
|
-
insert(target, t2, anchor);
|
|
34470
34862
|
if (if_block1) if_block1.m(target, anchor);
|
|
34471
|
-
insert(target,
|
|
34863
|
+
insert(target, t1, anchor);
|
|
34472
34864
|
|
|
34473
34865
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
34474
34866
|
each_blocks[i].m(target, anchor);
|
|
34475
34867
|
}
|
|
34476
34868
|
|
|
34477
|
-
insert(target,
|
|
34869
|
+
insert(target, t2, anchor);
|
|
34478
34870
|
if (if_block2) if_block2.m(target, anchor);
|
|
34479
|
-
insert(target,
|
|
34480
|
-
|
|
34481
|
-
|
|
34482
|
-
append(p0, t7);
|
|
34483
|
-
append(p0, button1);
|
|
34484
|
-
insert(target, t9, anchor);
|
|
34485
|
-
insert(target, hr, anchor);
|
|
34486
|
-
insert(target, t10, anchor);
|
|
34487
|
-
insert(target, p1, anchor);
|
|
34488
|
-
mount_component(t11, p1, null);
|
|
34489
|
-
/*p1_binding*/ ctx[12](p1);
|
|
34871
|
+
insert(target, t3, anchor);
|
|
34872
|
+
if (if_block3) if_block3.m(target, anchor);
|
|
34873
|
+
insert(target, if_block3_anchor, anchor);
|
|
34490
34874
|
current = true;
|
|
34491
|
-
|
|
34492
|
-
if (!mounted) {
|
|
34493
|
-
dispose = [
|
|
34494
|
-
listen(button0, "click", prevent_default(/*click_handler*/ ctx[10])),
|
|
34495
|
-
listen(button1, "click", prevent_default(/*click_handler_1*/ ctx[11]))
|
|
34496
|
-
];
|
|
34497
|
-
|
|
34498
|
-
mounted = true;
|
|
34499
|
-
}
|
|
34500
34875
|
},
|
|
34501
34876
|
p(ctx, dirty) {
|
|
34502
|
-
if (/*
|
|
34877
|
+
if (/*componentStyle*/ ctx[1] !== 'inline') {
|
|
34503
34878
|
if (if_block0) {
|
|
34504
|
-
|
|
34879
|
+
if_block0.p(ctx, dirty);
|
|
34880
|
+
|
|
34881
|
+
if (dirty & /*componentStyle*/ 2) {
|
|
34505
34882
|
transition_in(if_block0, 1);
|
|
34506
34883
|
}
|
|
34507
34884
|
} else {
|
|
34508
|
-
if_block0 =
|
|
34885
|
+
if_block0 = create_if_block_3$1(ctx);
|
|
34509
34886
|
if_block0.c();
|
|
34510
34887
|
transition_in(if_block0, 1);
|
|
34511
34888
|
if_block0.m(t0.parentNode, t0);
|
|
@@ -34520,18 +34897,18 @@ function create_default_slot$2(ctx) {
|
|
|
34520
34897
|
check_outros();
|
|
34521
34898
|
}
|
|
34522
34899
|
|
|
34523
|
-
if (/*form*/ ctx[
|
|
34900
|
+
if (/*form*/ ctx[2]?.message) {
|
|
34524
34901
|
if (if_block1) {
|
|
34525
34902
|
if_block1.p(ctx, dirty);
|
|
34526
34903
|
|
|
34527
|
-
if (dirty & /*form*/
|
|
34904
|
+
if (dirty & /*form*/ 4) {
|
|
34528
34905
|
transition_in(if_block1, 1);
|
|
34529
34906
|
}
|
|
34530
34907
|
} else {
|
|
34531
|
-
if_block1 =
|
|
34908
|
+
if_block1 = create_if_block_2$1(ctx);
|
|
34532
34909
|
if_block1.c();
|
|
34533
34910
|
transition_in(if_block1, 1);
|
|
34534
|
-
if_block1.m(
|
|
34911
|
+
if_block1.m(t1.parentNode, t1);
|
|
34535
34912
|
}
|
|
34536
34913
|
} else if (if_block1) {
|
|
34537
34914
|
group_outros();
|
|
@@ -34543,8 +34920,8 @@ function create_default_slot$2(ctx) {
|
|
|
34543
34920
|
check_outros();
|
|
34544
34921
|
}
|
|
34545
34922
|
|
|
34546
|
-
if (dirty & /*step, metadata, determineSubmission, $styleStore*/
|
|
34547
|
-
each_value = /*step*/ ctx[
|
|
34923
|
+
if (dirty & /*step, metadata, determineSubmission, $styleStore*/ 1584) {
|
|
34924
|
+
each_value = /*step*/ ctx[5]?.callbacks;
|
|
34548
34925
|
let i;
|
|
34549
34926
|
|
|
34550
34927
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -34557,7 +34934,7 @@ function create_default_slot$2(ctx) {
|
|
|
34557
34934
|
each_blocks[i] = create_each_block(child_ctx);
|
|
34558
34935
|
each_blocks[i].c();
|
|
34559
34936
|
transition_in(each_blocks[i], 1);
|
|
34560
|
-
each_blocks[i].m(
|
|
34937
|
+
each_blocks[i].m(t2.parentNode, t2);
|
|
34561
34938
|
}
|
|
34562
34939
|
}
|
|
34563
34940
|
|
|
@@ -34570,18 +34947,18 @@ function create_default_slot$2(ctx) {
|
|
|
34570
34947
|
check_outros();
|
|
34571
34948
|
}
|
|
34572
34949
|
|
|
34573
|
-
if (/*metadata*/ ctx[
|
|
34950
|
+
if (/*metadata*/ ctx[4]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[4]?.step?.derived.isStepSelfSubmittable) {
|
|
34574
34951
|
if (if_block2) {
|
|
34575
34952
|
if_block2.p(ctx, dirty);
|
|
34576
34953
|
|
|
34577
|
-
if (dirty & /*metadata*/
|
|
34954
|
+
if (dirty & /*metadata*/ 16) {
|
|
34578
34955
|
transition_in(if_block2, 1);
|
|
34579
34956
|
}
|
|
34580
34957
|
} else {
|
|
34581
|
-
if_block2 =
|
|
34958
|
+
if_block2 = create_if_block_1$1(ctx);
|
|
34582
34959
|
if_block2.c();
|
|
34583
34960
|
transition_in(if_block2, 1);
|
|
34584
|
-
if_block2.m(
|
|
34961
|
+
if_block2.m(t3.parentNode, t3);
|
|
34585
34962
|
}
|
|
34586
34963
|
} else if (if_block2) {
|
|
34587
34964
|
group_outros();
|
|
@@ -34592,11 +34969,33 @@ function create_default_slot$2(ctx) {
|
|
|
34592
34969
|
|
|
34593
34970
|
check_outros();
|
|
34594
34971
|
}
|
|
34972
|
+
|
|
34973
|
+
if (/*componentStyle*/ ctx[1] !== 'inline') {
|
|
34974
|
+
if (if_block3) {
|
|
34975
|
+
if_block3.p(ctx, dirty);
|
|
34976
|
+
|
|
34977
|
+
if (dirty & /*componentStyle*/ 2) {
|
|
34978
|
+
transition_in(if_block3, 1);
|
|
34979
|
+
}
|
|
34980
|
+
} else {
|
|
34981
|
+
if_block3 = create_if_block$2(ctx);
|
|
34982
|
+
if_block3.c();
|
|
34983
|
+
transition_in(if_block3, 1);
|
|
34984
|
+
if_block3.m(if_block3_anchor.parentNode, if_block3_anchor);
|
|
34985
|
+
}
|
|
34986
|
+
} else if (if_block3) {
|
|
34987
|
+
group_outros();
|
|
34988
|
+
|
|
34989
|
+
transition_out(if_block3, 1, 1, () => {
|
|
34990
|
+
if_block3 = null;
|
|
34991
|
+
});
|
|
34992
|
+
|
|
34993
|
+
check_outros();
|
|
34994
|
+
}
|
|
34595
34995
|
},
|
|
34596
34996
|
i(local) {
|
|
34597
34997
|
if (current) return;
|
|
34598
34998
|
transition_in(if_block0);
|
|
34599
|
-
transition_in(t1.$$.fragment, local);
|
|
34600
34999
|
transition_in(if_block1);
|
|
34601
35000
|
|
|
34602
35001
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -34604,12 +35003,11 @@ function create_default_slot$2(ctx) {
|
|
|
34604
35003
|
}
|
|
34605
35004
|
|
|
34606
35005
|
transition_in(if_block2);
|
|
34607
|
-
transition_in(
|
|
35006
|
+
transition_in(if_block3);
|
|
34608
35007
|
current = true;
|
|
34609
35008
|
},
|
|
34610
35009
|
o(local) {
|
|
34611
35010
|
transition_out(if_block0);
|
|
34612
|
-
transition_out(t1.$$.fragment, local);
|
|
34613
35011
|
transition_out(if_block1);
|
|
34614
35012
|
each_blocks = each_blocks.filter(Boolean);
|
|
34615
35013
|
|
|
@@ -34618,30 +35016,20 @@ function create_default_slot$2(ctx) {
|
|
|
34618
35016
|
}
|
|
34619
35017
|
|
|
34620
35018
|
transition_out(if_block2);
|
|
34621
|
-
transition_out(
|
|
35019
|
+
transition_out(if_block3);
|
|
34622
35020
|
current = false;
|
|
34623
35021
|
},
|
|
34624
35022
|
d(detaching) {
|
|
34625
35023
|
if (if_block0) if_block0.d(detaching);
|
|
34626
35024
|
if (detaching) detach(t0);
|
|
34627
|
-
if (detaching) detach(h1);
|
|
34628
|
-
destroy_component(t1);
|
|
34629
|
-
if (detaching) detach(t2);
|
|
34630
35025
|
if (if_block1) if_block1.d(detaching);
|
|
34631
|
-
if (detaching) detach(
|
|
35026
|
+
if (detaching) detach(t1);
|
|
34632
35027
|
destroy_each(each_blocks, detaching);
|
|
34633
|
-
if (detaching) detach(
|
|
35028
|
+
if (detaching) detach(t2);
|
|
34634
35029
|
if (if_block2) if_block2.d(detaching);
|
|
34635
|
-
if (detaching) detach(
|
|
34636
|
-
if (
|
|
34637
|
-
if (detaching) detach(
|
|
34638
|
-
if (detaching) detach(hr);
|
|
34639
|
-
if (detaching) detach(t10);
|
|
34640
|
-
if (detaching) detach(p1);
|
|
34641
|
-
destroy_component(t11);
|
|
34642
|
-
/*p1_binding*/ ctx[12](null);
|
|
34643
|
-
mounted = false;
|
|
34644
|
-
run_all(dispose);
|
|
35030
|
+
if (detaching) detach(t3);
|
|
35031
|
+
if (if_block3) if_block3.d(detaching);
|
|
35032
|
+
if (detaching) detach(if_block3_anchor);
|
|
34645
35033
|
}
|
|
34646
35034
|
};
|
|
34647
35035
|
}
|
|
@@ -34652,12 +35040,12 @@ function create_fragment$2(ctx) {
|
|
|
34652
35040
|
let current;
|
|
34653
35041
|
|
|
34654
35042
|
function form_1_formEl_binding(value) {
|
|
34655
|
-
/*form_1_formEl_binding*/ ctx[
|
|
35043
|
+
/*form_1_formEl_binding*/ ctx[14](value);
|
|
34656
35044
|
}
|
|
34657
35045
|
|
|
34658
35046
|
let form_1_props = {
|
|
34659
35047
|
ariaDescribedBy: "formFailureMessageAlert",
|
|
34660
|
-
onSubmitWhenValid: /*form*/ ctx[
|
|
35048
|
+
onSubmitWhenValid: /*form*/ ctx[2]?.submit,
|
|
34661
35049
|
$$slots: { default: [create_default_slot$2] },
|
|
34662
35050
|
$$scope: { ctx }
|
|
34663
35051
|
};
|
|
@@ -34679,9 +35067,9 @@ function create_fragment$2(ctx) {
|
|
|
34679
35067
|
},
|
|
34680
35068
|
p(ctx, [dirty]) {
|
|
34681
35069
|
const form_1_changes = {};
|
|
34682
|
-
if (dirty & /*form*/
|
|
35070
|
+
if (dirty & /*form*/ 4) form_1_changes.onSubmitWhenValid = /*form*/ ctx[2]?.submit;
|
|
34683
35071
|
|
|
34684
|
-
if (dirty & /*$$scope, linkWrapper, journey, metadata, step, $styleStore, alertNeedsFocus, formMessageKey, form*/
|
|
35072
|
+
if (dirty & /*$$scope, linkWrapper, journey, componentStyle, metadata, step, $styleStore, alertNeedsFocus, formMessageKey, form*/ 263166) {
|
|
34685
35073
|
form_1_changes.$$scope = { dirty, ctx };
|
|
34686
35074
|
}
|
|
34687
35075
|
|
|
@@ -34710,7 +35098,8 @@ function create_fragment$2(ctx) {
|
|
|
34710
35098
|
|
|
34711
35099
|
function instance$2($$self, $$props, $$invalidate) {
|
|
34712
35100
|
let $styleStore;
|
|
34713
|
-
component_subscribe($$self, styleStore, $$value => $$invalidate(
|
|
35101
|
+
component_subscribe($$self, styleStore, $$value => $$invalidate(9, $styleStore = $$value));
|
|
35102
|
+
let { componentStyle } = $$props;
|
|
34714
35103
|
let { form } = $$props;
|
|
34715
35104
|
let { formEl = null } = $$props;
|
|
34716
35105
|
let { journey } = $$props;
|
|
@@ -34730,10 +35119,14 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
34730
35119
|
}
|
|
34731
35120
|
|
|
34732
35121
|
afterUpdate(() => {
|
|
34733
|
-
$$invalidate(
|
|
35122
|
+
$$invalidate(6, alertNeedsFocus = !!form?.message);
|
|
34734
35123
|
});
|
|
34735
35124
|
|
|
34736
|
-
onMount(() =>
|
|
35125
|
+
onMount(() => {
|
|
35126
|
+
if (componentStyle === 'modal') {
|
|
35127
|
+
captureLinks(linkWrapper, journey);
|
|
35128
|
+
}
|
|
35129
|
+
});
|
|
34737
35130
|
|
|
34738
35131
|
const click_handler = () => {
|
|
34739
35132
|
journey.push({ tree: 'ResetPassword' });
|
|
@@ -34746,7 +35139,7 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
34746
35139
|
function p1_binding($$value) {
|
|
34747
35140
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
34748
35141
|
linkWrapper = $$value;
|
|
34749
|
-
$$invalidate(
|
|
35142
|
+
$$invalidate(8, linkWrapper);
|
|
34750
35143
|
});
|
|
34751
35144
|
}
|
|
34752
35145
|
|
|
@@ -34756,23 +35149,25 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
34756
35149
|
}
|
|
34757
35150
|
|
|
34758
35151
|
$$self.$$set = $$props => {
|
|
34759
|
-
if ('
|
|
35152
|
+
if ('componentStyle' in $$props) $$invalidate(1, componentStyle = $$props.componentStyle);
|
|
35153
|
+
if ('form' in $$props) $$invalidate(2, form = $$props.form);
|
|
34760
35154
|
if ('formEl' in $$props) $$invalidate(0, formEl = $$props.formEl);
|
|
34761
|
-
if ('journey' in $$props) $$invalidate(
|
|
34762
|
-
if ('metadata' in $$props) $$invalidate(
|
|
34763
|
-
if ('step' in $$props) $$invalidate(
|
|
35155
|
+
if ('journey' in $$props) $$invalidate(3, journey = $$props.journey);
|
|
35156
|
+
if ('metadata' in $$props) $$invalidate(4, metadata = $$props.metadata);
|
|
35157
|
+
if ('step' in $$props) $$invalidate(5, step = $$props.step);
|
|
34764
35158
|
};
|
|
34765
35159
|
|
|
34766
35160
|
$$self.$$.update = () => {
|
|
34767
|
-
if ($$self.$$.dirty & /*form*/
|
|
35161
|
+
if ($$self.$$.dirty & /*form*/ 4) {
|
|
34768
35162
|
{
|
|
34769
|
-
$$invalidate(
|
|
35163
|
+
$$invalidate(7, formMessageKey = convertStringToKey(form?.message));
|
|
34770
35164
|
}
|
|
34771
35165
|
}
|
|
34772
35166
|
};
|
|
34773
35167
|
|
|
34774
35168
|
return [
|
|
34775
35169
|
formEl,
|
|
35170
|
+
componentStyle,
|
|
34776
35171
|
form,
|
|
34777
35172
|
journey,
|
|
34778
35173
|
metadata,
|
|
@@ -34794,11 +35189,12 @@ class Login extends SvelteComponent {
|
|
|
34794
35189
|
super();
|
|
34795
35190
|
|
|
34796
35191
|
init(this, options, instance$2, create_fragment$2, safe_not_equal, {
|
|
34797
|
-
|
|
35192
|
+
componentStyle: 1,
|
|
35193
|
+
form: 2,
|
|
34798
35194
|
formEl: 0,
|
|
34799
|
-
journey:
|
|
34800
|
-
metadata:
|
|
34801
|
-
step:
|
|
35195
|
+
journey: 3,
|
|
35196
|
+
metadata: 4,
|
|
35197
|
+
step: 5
|
|
34802
35198
|
});
|
|
34803
35199
|
}
|
|
34804
35200
|
}
|
|
@@ -34837,7 +35233,7 @@ function create_else_block$1(ctx) {
|
|
|
34837
35233
|
alert = new Alert({
|
|
34838
35234
|
props: {
|
|
34839
35235
|
id: "unrecoverableStepError",
|
|
34840
|
-
needsFocus: /*alertNeedsFocus*/ ctx[
|
|
35236
|
+
needsFocus: /*alertNeedsFocus*/ ctx[4],
|
|
34841
35237
|
type: "error",
|
|
34842
35238
|
$$slots: { default: [create_default_slot_1] },
|
|
34843
35239
|
$$scope: { ctx }
|
|
@@ -34847,7 +35243,7 @@ function create_else_block$1(ctx) {
|
|
|
34847
35243
|
button = new Button({
|
|
34848
35244
|
props: {
|
|
34849
35245
|
style: "secondary",
|
|
34850
|
-
onClick: /*tryAgain*/ ctx[
|
|
35246
|
+
onClick: /*tryAgain*/ ctx[7],
|
|
34851
35247
|
$$slots: { default: [create_default_slot$1] },
|
|
34852
35248
|
$$scope: { ctx }
|
|
34853
35249
|
}
|
|
@@ -34867,16 +35263,16 @@ function create_else_block$1(ctx) {
|
|
|
34867
35263
|
},
|
|
34868
35264
|
p(ctx, dirty) {
|
|
34869
35265
|
const alert_changes = {};
|
|
34870
|
-
if (dirty & /*alertNeedsFocus*/
|
|
35266
|
+
if (dirty & /*alertNeedsFocus*/ 16) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[4];
|
|
34871
35267
|
|
|
34872
|
-
if (dirty & /*$$scope*/
|
|
35268
|
+
if (dirty & /*$$scope*/ 512) {
|
|
34873
35269
|
alert_changes.$$scope = { dirty, ctx };
|
|
34874
35270
|
}
|
|
34875
35271
|
|
|
34876
35272
|
alert.$set(alert_changes);
|
|
34877
35273
|
const button_changes = {};
|
|
34878
35274
|
|
|
34879
|
-
if (dirty & /*$$scope*/
|
|
35275
|
+
if (dirty & /*$$scope*/ 512) {
|
|
34880
35276
|
button_changes.$$scope = { dirty, ctx };
|
|
34881
35277
|
}
|
|
34882
35278
|
|
|
@@ -34901,7 +35297,7 @@ function create_else_block$1(ctx) {
|
|
|
34901
35297
|
};
|
|
34902
35298
|
}
|
|
34903
35299
|
|
|
34904
|
-
// (
|
|
35300
|
+
// (53:36)
|
|
34905
35301
|
function create_if_block_3(ctx) {
|
|
34906
35302
|
let div;
|
|
34907
35303
|
let spinner;
|
|
@@ -34942,7 +35338,7 @@ function create_if_block_3(ctx) {
|
|
|
34942
35338
|
};
|
|
34943
35339
|
}
|
|
34944
35340
|
|
|
34945
|
-
// (
|
|
35341
|
+
// (27:0) {#if !$journeyStore?.completed}
|
|
34946
35342
|
function create_if_block$1(ctx) {
|
|
34947
35343
|
let current_block_type_index;
|
|
34948
35344
|
let if_block;
|
|
@@ -34952,8 +35348,8 @@ function create_if_block$1(ctx) {
|
|
|
34952
35348
|
const if_blocks = [];
|
|
34953
35349
|
|
|
34954
35350
|
function select_block_type_1(ctx, dirty) {
|
|
34955
|
-
if (!/*$journeyStore*/ ctx[
|
|
34956
|
-
if (/*$journeyStore*/ ctx[
|
|
35351
|
+
if (!/*$journeyStore*/ ctx[5].step) return 0;
|
|
35352
|
+
if (/*$journeyStore*/ ctx[5].step.type === StepType$1.Step) return 1;
|
|
34957
35353
|
return -1;
|
|
34958
35354
|
}
|
|
34959
35355
|
|
|
@@ -35029,7 +35425,7 @@ function create_if_block$1(ctx) {
|
|
|
35029
35425
|
};
|
|
35030
35426
|
}
|
|
35031
35427
|
|
|
35032
|
-
// (
|
|
35428
|
+
// (58:2) <Alert id="unrecoverableStepError" needsFocus={alertNeedsFocus} type="error">
|
|
35033
35429
|
function create_default_slot_1(ctx) {
|
|
35034
35430
|
let t;
|
|
35035
35431
|
let current;
|
|
@@ -35062,7 +35458,7 @@ function create_default_slot_1(ctx) {
|
|
|
35062
35458
|
};
|
|
35063
35459
|
}
|
|
35064
35460
|
|
|
35065
|
-
// (
|
|
35461
|
+
// (61:2) <Button style="secondary" onClick={tryAgain}>
|
|
35066
35462
|
function create_default_slot$1(ctx) {
|
|
35067
35463
|
let t;
|
|
35068
35464
|
let current;
|
|
@@ -35092,7 +35488,7 @@ function create_default_slot$1(ctx) {
|
|
|
35092
35488
|
};
|
|
35093
35489
|
}
|
|
35094
35490
|
|
|
35095
|
-
// (
|
|
35491
|
+
// (32:54)
|
|
35096
35492
|
function create_if_block_2(ctx) {
|
|
35097
35493
|
let switch_instance;
|
|
35098
35494
|
let updating_formEl;
|
|
@@ -35100,27 +35496,28 @@ function create_if_block_2(ctx) {
|
|
|
35100
35496
|
let current;
|
|
35101
35497
|
|
|
35102
35498
|
function switch_instance_formEl_binding(value) {
|
|
35103
|
-
/*switch_instance_formEl_binding*/ ctx[
|
|
35499
|
+
/*switch_instance_formEl_binding*/ ctx[8](value);
|
|
35104
35500
|
}
|
|
35105
35501
|
|
|
35106
|
-
var switch_value = mapStepToStage(/*$journeyStore*/ ctx[
|
|
35502
|
+
var switch_value = mapStepToStage(/*$journeyStore*/ ctx[5].step);
|
|
35107
35503
|
|
|
35108
35504
|
function switch_props(ctx) {
|
|
35109
35505
|
let switch_instance_props = {
|
|
35506
|
+
componentStyle: /*componentStyle*/ ctx[1],
|
|
35110
35507
|
form: {
|
|
35111
|
-
icon: /*displayIcon*/ ctx[
|
|
35112
|
-
message: /*$journeyStore*/ ctx[
|
|
35113
|
-
status: (/*$journeyStore*/ ctx[
|
|
35114
|
-
submit: /*submitForm*/ ctx[
|
|
35508
|
+
icon: /*displayIcon*/ ctx[2],
|
|
35509
|
+
message: /*$journeyStore*/ ctx[5].error?.message || '',
|
|
35510
|
+
status: (/*$journeyStore*/ ctx[5].error?.code) ? 'error' : 'ok',
|
|
35511
|
+
submit: /*submitForm*/ ctx[6]
|
|
35115
35512
|
},
|
|
35116
35513
|
journey: {
|
|
35117
|
-
loading: /*$journeyStore*/ ctx[
|
|
35118
|
-
pop: /*journeyStore*/ ctx[
|
|
35119
|
-
push: /*journeyStore*/ ctx[
|
|
35514
|
+
loading: /*$journeyStore*/ ctx[5].loading,
|
|
35515
|
+
pop: /*journeyStore*/ ctx[3].pop,
|
|
35516
|
+
push: /*journeyStore*/ ctx[3].push,
|
|
35120
35517
|
stack
|
|
35121
35518
|
},
|
|
35122
|
-
metadata: /*$journeyStore*/ ctx[
|
|
35123
|
-
step: /*$journeyStore*/ ctx[
|
|
35519
|
+
metadata: /*$journeyStore*/ ctx[5].metadata,
|
|
35520
|
+
step: /*$journeyStore*/ ctx[5].step
|
|
35124
35521
|
};
|
|
35125
35522
|
|
|
35126
35523
|
if (/*formEl*/ ctx[0] !== void 0) {
|
|
@@ -35147,23 +35544,24 @@ function create_if_block_2(ctx) {
|
|
|
35147
35544
|
},
|
|
35148
35545
|
p(ctx, dirty) {
|
|
35149
35546
|
const switch_instance_changes = {};
|
|
35547
|
+
if (dirty & /*componentStyle*/ 2) switch_instance_changes.componentStyle = /*componentStyle*/ ctx[1];
|
|
35150
35548
|
|
|
35151
|
-
if (dirty & /*displayIcon, $journeyStore*/
|
|
35152
|
-
icon: /*displayIcon*/ ctx[
|
|
35153
|
-
message: /*$journeyStore*/ ctx[
|
|
35154
|
-
status: (/*$journeyStore*/ ctx[
|
|
35155
|
-
submit: /*submitForm*/ ctx[
|
|
35549
|
+
if (dirty & /*displayIcon, $journeyStore*/ 36) switch_instance_changes.form = {
|
|
35550
|
+
icon: /*displayIcon*/ ctx[2],
|
|
35551
|
+
message: /*$journeyStore*/ ctx[5].error?.message || '',
|
|
35552
|
+
status: (/*$journeyStore*/ ctx[5].error?.code) ? 'error' : 'ok',
|
|
35553
|
+
submit: /*submitForm*/ ctx[6]
|
|
35156
35554
|
};
|
|
35157
35555
|
|
|
35158
|
-
if (dirty & /*$journeyStore, journeyStore*/
|
|
35159
|
-
loading: /*$journeyStore*/ ctx[
|
|
35160
|
-
pop: /*journeyStore*/ ctx[
|
|
35161
|
-
push: /*journeyStore*/ ctx[
|
|
35556
|
+
if (dirty & /*$journeyStore, journeyStore*/ 40) switch_instance_changes.journey = {
|
|
35557
|
+
loading: /*$journeyStore*/ ctx[5].loading,
|
|
35558
|
+
pop: /*journeyStore*/ ctx[3].pop,
|
|
35559
|
+
push: /*journeyStore*/ ctx[3].push,
|
|
35162
35560
|
stack
|
|
35163
35561
|
};
|
|
35164
35562
|
|
|
35165
|
-
if (dirty & /*$journeyStore*/
|
|
35166
|
-
if (dirty & /*$journeyStore*/
|
|
35563
|
+
if (dirty & /*$journeyStore*/ 32) switch_instance_changes.metadata = /*$journeyStore*/ ctx[5].metadata;
|
|
35564
|
+
if (dirty & /*$journeyStore*/ 32) switch_instance_changes.step = /*$journeyStore*/ ctx[5].step;
|
|
35167
35565
|
|
|
35168
35566
|
if (!updating_formEl && dirty & /*formEl*/ 1) {
|
|
35169
35567
|
updating_formEl = true;
|
|
@@ -35171,7 +35569,7 @@ function create_if_block_2(ctx) {
|
|
|
35171
35569
|
add_flush_callback(() => updating_formEl = false);
|
|
35172
35570
|
}
|
|
35173
35571
|
|
|
35174
|
-
if (switch_value !== (switch_value = mapStepToStage(/*$journeyStore*/ ctx[
|
|
35572
|
+
if (switch_value !== (switch_value = mapStepToStage(/*$journeyStore*/ ctx[5].step))) {
|
|
35175
35573
|
if (switch_instance) {
|
|
35176
35574
|
group_outros();
|
|
35177
35575
|
const old_component = switch_instance;
|
|
@@ -35212,7 +35610,7 @@ function create_if_block_2(ctx) {
|
|
|
35212
35610
|
};
|
|
35213
35611
|
}
|
|
35214
35612
|
|
|
35215
|
-
// (
|
|
35613
|
+
// (28:2) {#if !$journeyStore.step}
|
|
35216
35614
|
function create_if_block_1(ctx) {
|
|
35217
35615
|
let div;
|
|
35218
35616
|
let spinner;
|
|
@@ -35262,8 +35660,8 @@ function create_fragment$1(ctx) {
|
|
|
35262
35660
|
const if_blocks = [];
|
|
35263
35661
|
|
|
35264
35662
|
function select_block_type(ctx, dirty) {
|
|
35265
|
-
if (!/*$journeyStore*/ ctx[
|
|
35266
|
-
if (/*$journeyStore*/ ctx[
|
|
35663
|
+
if (!/*$journeyStore*/ ctx[5]?.completed) return 0;
|
|
35664
|
+
if (/*$journeyStore*/ ctx[5]?.successful) return 1;
|
|
35267
35665
|
return 2;
|
|
35268
35666
|
}
|
|
35269
35667
|
|
|
@@ -35326,9 +35724,10 @@ function create_fragment$1(ctx) {
|
|
|
35326
35724
|
function instance$1($$self, $$props, $$invalidate) {
|
|
35327
35725
|
let $journeyStore,
|
|
35328
35726
|
$$unsubscribe_journeyStore = noop,
|
|
35329
|
-
$$subscribe_journeyStore = () => ($$unsubscribe_journeyStore(), $$unsubscribe_journeyStore = subscribe(journeyStore, $$value => $$invalidate(
|
|
35727
|
+
$$subscribe_journeyStore = () => ($$unsubscribe_journeyStore(), $$unsubscribe_journeyStore = subscribe(journeyStore, $$value => $$invalidate(5, $journeyStore = $$value)), journeyStore);
|
|
35330
35728
|
|
|
35331
35729
|
$$self.$$.on_destroy.push(() => $$unsubscribe_journeyStore());
|
|
35730
|
+
let { componentStyle } = $$props;
|
|
35332
35731
|
let { displayIcon } = $$props;
|
|
35333
35732
|
let { formEl = null } = $$props;
|
|
35334
35733
|
let { journeyStore } = $$props;
|
|
@@ -35346,7 +35745,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
35346
35745
|
}
|
|
35347
35746
|
|
|
35348
35747
|
afterUpdate(() => {
|
|
35349
|
-
$$invalidate(
|
|
35748
|
+
$$invalidate(4, alertNeedsFocus = !$journeyStore.successful);
|
|
35350
35749
|
});
|
|
35351
35750
|
|
|
35352
35751
|
function switch_instance_formEl_binding(value) {
|
|
@@ -35355,13 +35754,15 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
35355
35754
|
}
|
|
35356
35755
|
|
|
35357
35756
|
$$self.$$set = $$props => {
|
|
35358
|
-
if ('
|
|
35757
|
+
if ('componentStyle' in $$props) $$invalidate(1, componentStyle = $$props.componentStyle);
|
|
35758
|
+
if ('displayIcon' in $$props) $$invalidate(2, displayIcon = $$props.displayIcon);
|
|
35359
35759
|
if ('formEl' in $$props) $$invalidate(0, formEl = $$props.formEl);
|
|
35360
|
-
if ('journeyStore' in $$props) $$subscribe_journeyStore($$invalidate(
|
|
35760
|
+
if ('journeyStore' in $$props) $$subscribe_journeyStore($$invalidate(3, journeyStore = $$props.journeyStore));
|
|
35361
35761
|
};
|
|
35362
35762
|
|
|
35363
35763
|
return [
|
|
35364
35764
|
formEl,
|
|
35765
|
+
componentStyle,
|
|
35365
35766
|
displayIcon,
|
|
35366
35767
|
journeyStore,
|
|
35367
35768
|
alertNeedsFocus,
|
|
@@ -35377,9 +35778,10 @@ class Journey extends SvelteComponent {
|
|
|
35377
35778
|
super();
|
|
35378
35779
|
|
|
35379
35780
|
init(this, options, instance$1, create_fragment$1, safe_not_equal, {
|
|
35380
|
-
|
|
35781
|
+
componentStyle: 1,
|
|
35782
|
+
displayIcon: 2,
|
|
35381
35783
|
formEl: 0,
|
|
35382
|
-
journeyStore:
|
|
35784
|
+
journeyStore: 3
|
|
35383
35785
|
});
|
|
35384
35786
|
}
|
|
35385
35787
|
}
|
|
@@ -35397,6 +35799,7 @@ function create_else_block(ctx) {
|
|
|
35397
35799
|
}
|
|
35398
35800
|
|
|
35399
35801
|
let journey_1_props = {
|
|
35802
|
+
componentStyle: "inline",
|
|
35400
35803
|
displayIcon: /*$styleStore*/ ctx[4]?.stage?.icon ?? true,
|
|
35401
35804
|
journeyStore: /*journeyStore*/ ctx[5]
|
|
35402
35805
|
};
|
|
@@ -35528,6 +35931,7 @@ function create_default_slot(ctx) {
|
|
|
35528
35931
|
}
|
|
35529
35932
|
|
|
35530
35933
|
let journey_1_props = {
|
|
35934
|
+
componentStyle: "modal",
|
|
35531
35935
|
displayIcon: /*$styleStore*/ ctx[4]?.stage?.icon ?? !/*$styleStore*/ ctx[4]?.logo,
|
|
35532
35936
|
journeyStore: /*journeyStore*/ ctx[5]
|
|
35533
35937
|
};
|