@forgerock/login-widget 1.0.0-beta.3 → 1.0.0-beta.5
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 +19 -0
- package/inline.cjs +1199 -492
- package/inline.cjs.map +1 -1
- package/inline.d.ts +12 -0
- package/inline.js +1199 -492
- package/inline.js.map +1 -1
- package/modal.cjs +1265 -558
- package/modal.cjs.map +1 -1
- package/modal.d.ts +12 -0
- package/modal.js +1265 -558
- package/modal.js.map +1 -1
- package/package.json +5 -1
- package/widget.css +4 -0
package/modal.cjs
CHANGED
|
@@ -14094,6 +14094,7 @@ function widgetApiFactory(modal) {
|
|
|
14094
14094
|
},
|
|
14095
14095
|
};
|
|
14096
14096
|
const user = {
|
|
14097
|
+
// TODO: add "scopes" to parameters for "true" authorization
|
|
14097
14098
|
async authorized(remote = false) {
|
|
14098
14099
|
if (remote) {
|
|
14099
14100
|
try {
|
|
@@ -14104,7 +14105,12 @@ function widgetApiFactory(modal) {
|
|
|
14104
14105
|
return;
|
|
14105
14106
|
}
|
|
14106
14107
|
}
|
|
14107
|
-
|
|
14108
|
+
try {
|
|
14109
|
+
return !!(await TokenManager$1.getTokens());
|
|
14110
|
+
}
|
|
14111
|
+
catch (err) {
|
|
14112
|
+
return;
|
|
14113
|
+
}
|
|
14108
14114
|
},
|
|
14109
14115
|
async info(remote = false) {
|
|
14110
14116
|
userStore = userStore;
|
|
@@ -15902,6 +15908,7 @@ var customSecurityQuestion = "Custom security question";
|
|
|
15902
15908
|
var doesNotMeetMinimumCharacterLength = "At least {min} character(s)";
|
|
15903
15909
|
var ensurePasswordIsMoreThan = "Password must contain at least {minPasswordLength} character(s).";
|
|
15904
15910
|
var ensurePasswordHasOne = "Password must contain at least 1 capital letter, 1 number, and 1 special character.";
|
|
15911
|
+
var enterVerificationCode = "Enter verification code";
|
|
15905
15912
|
var exceedsMaximumCharacterLength = "Exceeds maximum of {max} characters";
|
|
15906
15913
|
var fieldCanNotContainFollowingCharacters = "Cannot contain these character(s): {chars}";
|
|
15907
15914
|
var fieldCanNotContainFollowingValues = "Cannot contain these value(s): {fields}";
|
|
@@ -15945,10 +15952,13 @@ var successMessage = "Success!";
|
|
|
15945
15952
|
var termsAndConditions = "Please accept our Terms & Conditions";
|
|
15946
15953
|
var termsAndConditionsLinkText = "View full Terms & Conditions";
|
|
15947
15954
|
var tryAgain = "Please try again";
|
|
15955
|
+
var twoFactorAuthentication = "Two factor authentication";
|
|
15948
15956
|
var useValidEmail = "Please use a valid email address.";
|
|
15949
15957
|
var unrecoverableError = "There was an error in the form submission.";
|
|
15950
15958
|
var unknownNetworkError = "Unknown network request failure has occurred.";
|
|
15959
|
+
var userName = "Username";
|
|
15951
15960
|
var usernameRequirements = "Username requirements:";
|
|
15961
|
+
var useTheAuthenticatorAppOnYourPhone = "Find the verification code using the authenticator app on your phone.";
|
|
15952
15962
|
var validatedCreatePasswordCallback = "Password";
|
|
15953
15963
|
var validatedCreateUsernameCallback = "Username";
|
|
15954
15964
|
var valueRequirements = "Value requirements:";
|
|
@@ -15967,6 +15977,7 @@ var fallback = {
|
|
|
15967
15977
|
doesNotMeetMinimumCharacterLength: doesNotMeetMinimumCharacterLength,
|
|
15968
15978
|
ensurePasswordIsMoreThan: ensurePasswordIsMoreThan,
|
|
15969
15979
|
ensurePasswordHasOne: ensurePasswordHasOne,
|
|
15980
|
+
enterVerificationCode: enterVerificationCode,
|
|
15970
15981
|
exceedsMaximumCharacterLength: exceedsMaximumCharacterLength,
|
|
15971
15982
|
fieldCanNotContainFollowingCharacters: fieldCanNotContainFollowingCharacters,
|
|
15972
15983
|
fieldCanNotContainFollowingValues: fieldCanNotContainFollowingValues,
|
|
@@ -16010,10 +16021,13 @@ var fallback = {
|
|
|
16010
16021
|
termsAndConditions: termsAndConditions,
|
|
16011
16022
|
termsAndConditionsLinkText: termsAndConditionsLinkText,
|
|
16012
16023
|
tryAgain: tryAgain,
|
|
16024
|
+
twoFactorAuthentication: twoFactorAuthentication,
|
|
16013
16025
|
useValidEmail: useValidEmail,
|
|
16014
16026
|
unrecoverableError: unrecoverableError,
|
|
16015
16027
|
unknownNetworkError: unknownNetworkError,
|
|
16028
|
+
userName: userName,
|
|
16016
16029
|
usernameRequirements: usernameRequirements,
|
|
16030
|
+
useTheAuthenticatorAppOnYourPhone: useTheAuthenticatorAppOnYourPhone,
|
|
16017
16031
|
validatedCreatePasswordCallback: validatedCreatePasswordCallback,
|
|
16018
16032
|
validatedCreateUsernameCallback: validatedCreateUsernameCallback,
|
|
16019
16033
|
valueRequirements: valueRequirements
|
|
@@ -16035,6 +16049,7 @@ const stringsSchema = mod
|
|
|
16035
16049
|
doesNotMeetMinimumCharacterLength: mod.string(),
|
|
16036
16050
|
ensurePasswordIsMoreThan: mod.string(),
|
|
16037
16051
|
ensurePasswordHasOne: mod.string(),
|
|
16052
|
+
enterVerificationCode: mod.string(),
|
|
16038
16053
|
exceedsMaximumCharacterLength: mod.string(),
|
|
16039
16054
|
fieldCanNotContainFollowingCharacters: mod.string(),
|
|
16040
16055
|
fieldCanNotContainFollowingValues: mod.string(),
|
|
@@ -16078,10 +16093,13 @@ const stringsSchema = mod
|
|
|
16078
16093
|
termsAndConditions: mod.string(),
|
|
16079
16094
|
termsAndConditionsLinkText: mod.string(),
|
|
16080
16095
|
tryAgain: mod.string(),
|
|
16096
|
+
twoFactorAuthentication: mod.string(),
|
|
16081
16097
|
useValidEmail: mod.string(),
|
|
16082
16098
|
unrecoverableError: mod.string(),
|
|
16083
16099
|
unknownNetworkError: mod.string(),
|
|
16100
|
+
userName: mod.string(),
|
|
16084
16101
|
usernameRequirements: mod.string(),
|
|
16102
|
+
useTheAuthenticatorAppOnYourPhone: mod.string(),
|
|
16085
16103
|
validatedCreatePasswordCallback: mod.string(),
|
|
16086
16104
|
validatedCreateUsernameCallback: mod.string(),
|
|
16087
16105
|
valueRequirements: mod.string(),
|
|
@@ -16275,7 +16293,7 @@ function create_else_block$9(ctx) {
|
|
|
16275
16293
|
}
|
|
16276
16294
|
|
|
16277
16295
|
// (11:0) {#if html}
|
|
16278
|
-
function create_if_block$
|
|
16296
|
+
function create_if_block$m(ctx) {
|
|
16279
16297
|
let current;
|
|
16280
16298
|
const default_slot_template = /*#slots*/ ctx[5].default;
|
|
16281
16299
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[4], null);
|
|
@@ -16372,12 +16390,12 @@ function fallback_block$2(ctx) {
|
|
|
16372
16390
|
};
|
|
16373
16391
|
}
|
|
16374
16392
|
|
|
16375
|
-
function create_fragment$
|
|
16393
|
+
function create_fragment$W(ctx) {
|
|
16376
16394
|
let current_block_type_index;
|
|
16377
16395
|
let if_block;
|
|
16378
16396
|
let if_block_anchor;
|
|
16379
16397
|
let current;
|
|
16380
|
-
const if_block_creators = [create_if_block$
|
|
16398
|
+
const if_block_creators = [create_if_block$m, create_else_block$9];
|
|
16381
16399
|
const if_blocks = [];
|
|
16382
16400
|
|
|
16383
16401
|
function select_block_type(ctx, dirty) {
|
|
@@ -16441,7 +16459,7 @@ function create_fragment$V(ctx) {
|
|
|
16441
16459
|
};
|
|
16442
16460
|
}
|
|
16443
16461
|
|
|
16444
|
-
function instance$
|
|
16462
|
+
function instance$X($$self, $$props, $$invalidate) {
|
|
16445
16463
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
16446
16464
|
let { html = false } = $$props;
|
|
16447
16465
|
let { key } = $$props;
|
|
@@ -16469,13 +16487,13 @@ function instance$W($$self, $$props, $$invalidate) {
|
|
|
16469
16487
|
class Locale_strings extends SvelteComponent {
|
|
16470
16488
|
constructor(options) {
|
|
16471
16489
|
super();
|
|
16472
|
-
init(this, options, instance$
|
|
16490
|
+
init(this, options, instance$X, create_fragment$W, safe_not_equal, { html: 0, key: 2, values: 3 });
|
|
16473
16491
|
}
|
|
16474
16492
|
}
|
|
16475
16493
|
|
|
16476
16494
|
/* src/lib/components/icons/x-icon.svelte generated by Svelte v3.55.1 */
|
|
16477
16495
|
|
|
16478
|
-
function create_fragment$
|
|
16496
|
+
function create_fragment$V(ctx) {
|
|
16479
16497
|
let svg;
|
|
16480
16498
|
let path;
|
|
16481
16499
|
let title;
|
|
@@ -16551,7 +16569,7 @@ function create_fragment$U(ctx) {
|
|
|
16551
16569
|
};
|
|
16552
16570
|
}
|
|
16553
16571
|
|
|
16554
|
-
function instance$
|
|
16572
|
+
function instance$W($$self, $$props, $$invalidate) {
|
|
16555
16573
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
16556
16574
|
let { classes = '' } = $$props;
|
|
16557
16575
|
let { size = '24px' } = $$props;
|
|
@@ -16568,7 +16586,7 @@ function instance$V($$self, $$props, $$invalidate) {
|
|
|
16568
16586
|
class X_icon extends SvelteComponent {
|
|
16569
16587
|
constructor(options) {
|
|
16570
16588
|
super();
|
|
16571
|
-
init(this, options, instance$
|
|
16589
|
+
init(this, options, instance$W, create_fragment$V, safe_not_equal, { classes: 0, size: 1 });
|
|
16572
16590
|
}
|
|
16573
16591
|
}
|
|
16574
16592
|
|
|
@@ -16631,12 +16649,12 @@ function create_else_block$8(ctx) {
|
|
|
16631
16649
|
xicon = new X_icon({
|
|
16632
16650
|
props: {
|
|
16633
16651
|
classes: "tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light",
|
|
16634
|
-
$$slots: { default: [create_default_slot_1$
|
|
16652
|
+
$$slots: { default: [create_default_slot_1$c] },
|
|
16635
16653
|
$$scope: { ctx }
|
|
16636
16654
|
}
|
|
16637
16655
|
});
|
|
16638
16656
|
|
|
16639
|
-
let if_block = /*$style*/ ctx[5]?.logo && create_if_block_1$
|
|
16657
|
+
let if_block = /*$style*/ ctx[5]?.logo && create_if_block_1$c(ctx);
|
|
16640
16658
|
|
|
16641
16659
|
return {
|
|
16642
16660
|
c() {
|
|
@@ -16682,7 +16700,7 @@ function create_else_block$8(ctx) {
|
|
|
16682
16700
|
if (if_block) {
|
|
16683
16701
|
if_block.p(ctx, dirty);
|
|
16684
16702
|
} else {
|
|
16685
|
-
if_block = create_if_block_1$
|
|
16703
|
+
if_block = create_if_block_1$c(ctx);
|
|
16686
16704
|
if_block.c();
|
|
16687
16705
|
if_block.m(div, null);
|
|
16688
16706
|
}
|
|
@@ -16717,7 +16735,7 @@ function create_else_block$8(ctx) {
|
|
|
16717
16735
|
}
|
|
16718
16736
|
|
|
16719
16737
|
// (39:2) {#if withHeader}
|
|
16720
|
-
function create_if_block$
|
|
16738
|
+
function create_if_block$l(ctx) {
|
|
16721
16739
|
let div1;
|
|
16722
16740
|
let div0;
|
|
16723
16741
|
let div0_style_value;
|
|
@@ -16731,7 +16749,7 @@ function create_if_block$k(ctx) {
|
|
|
16731
16749
|
xicon = new X_icon({
|
|
16732
16750
|
props: {
|
|
16733
16751
|
classes: "tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light",
|
|
16734
|
-
$$slots: { default: [create_default_slot$
|
|
16752
|
+
$$slots: { default: [create_default_slot$o] },
|
|
16735
16753
|
$$scope: { ctx }
|
|
16736
16754
|
}
|
|
16737
16755
|
});
|
|
@@ -16808,7 +16826,7 @@ function create_if_block$k(ctx) {
|
|
|
16808
16826
|
}
|
|
16809
16827
|
|
|
16810
16828
|
// (71:8) <XIcon classes="tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light" >
|
|
16811
|
-
function create_default_slot_1$
|
|
16829
|
+
function create_default_slot_1$c(ctx) {
|
|
16812
16830
|
let t;
|
|
16813
16831
|
let current;
|
|
16814
16832
|
t = new Locale_strings({ props: { key: "closeModal" } });
|
|
@@ -16838,7 +16856,7 @@ function create_default_slot_1$b(ctx) {
|
|
|
16838
16856
|
}
|
|
16839
16857
|
|
|
16840
16858
|
// (76:6) {#if $style?.logo}
|
|
16841
|
-
function create_if_block_1$
|
|
16859
|
+
function create_if_block_1$c(ctx) {
|
|
16842
16860
|
let div;
|
|
16843
16861
|
let div_style_value;
|
|
16844
16862
|
|
|
@@ -16863,7 +16881,7 @@ function create_if_block_1$b(ctx) {
|
|
|
16863
16881
|
}
|
|
16864
16882
|
|
|
16865
16883
|
// (54:8) <XIcon classes="tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light" >
|
|
16866
|
-
function create_default_slot$
|
|
16884
|
+
function create_default_slot$o(ctx) {
|
|
16867
16885
|
let t;
|
|
16868
16886
|
let current;
|
|
16869
16887
|
t = new Locale_strings({ props: { key: "closeModal" } });
|
|
@@ -16892,7 +16910,7 @@ function create_default_slot$n(ctx) {
|
|
|
16892
16910
|
};
|
|
16893
16911
|
}
|
|
16894
16912
|
|
|
16895
|
-
function create_fragment$
|
|
16913
|
+
function create_fragment$U(ctx) {
|
|
16896
16914
|
let dialog;
|
|
16897
16915
|
let current_block_type_index;
|
|
16898
16916
|
let if_block;
|
|
@@ -16900,7 +16918,7 @@ function create_fragment$T(ctx) {
|
|
|
16900
16918
|
let div;
|
|
16901
16919
|
let dialog_class_value;
|
|
16902
16920
|
let current;
|
|
16903
|
-
const if_block_creators = [create_if_block$
|
|
16921
|
+
const if_block_creators = [create_if_block$l, create_else_block$8];
|
|
16904
16922
|
const if_blocks = [];
|
|
16905
16923
|
|
|
16906
16924
|
function select_block_type(ctx, dirty) {
|
|
@@ -17012,7 +17030,7 @@ function create_fragment$T(ctx) {
|
|
|
17012
17030
|
};
|
|
17013
17031
|
}
|
|
17014
17032
|
|
|
17015
|
-
function instance$
|
|
17033
|
+
function instance$V($$self, $$props, $$invalidate) {
|
|
17016
17034
|
let $style;
|
|
17017
17035
|
component_subscribe($$self, style, $$value => $$invalidate(5, $style = $$value));
|
|
17018
17036
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
@@ -17091,7 +17109,7 @@ class Dialog extends SvelteComponent {
|
|
|
17091
17109
|
constructor(options) {
|
|
17092
17110
|
super();
|
|
17093
17111
|
|
|
17094
|
-
init(this, options, instance$
|
|
17112
|
+
init(this, options, instance$V, create_fragment$U, safe_not_equal, {
|
|
17095
17113
|
closeCallback: 6,
|
|
17096
17114
|
dialogEl: 0,
|
|
17097
17115
|
dialogId: 1,
|
|
@@ -17108,7 +17126,7 @@ class Dialog extends SvelteComponent {
|
|
|
17108
17126
|
|
|
17109
17127
|
/* src/lib/components/icons/alert-icon.svelte generated by Svelte v3.55.1 */
|
|
17110
17128
|
|
|
17111
|
-
function create_fragment$
|
|
17129
|
+
function create_fragment$T(ctx) {
|
|
17112
17130
|
let svg;
|
|
17113
17131
|
let path;
|
|
17114
17132
|
let title;
|
|
@@ -17184,7 +17202,7 @@ function create_fragment$S(ctx) {
|
|
|
17184
17202
|
};
|
|
17185
17203
|
}
|
|
17186
17204
|
|
|
17187
|
-
function instance$
|
|
17205
|
+
function instance$U($$self, $$props, $$invalidate) {
|
|
17188
17206
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
17189
17207
|
let { classes = '' } = $$props;
|
|
17190
17208
|
let { size = '24px' } = $$props;
|
|
@@ -17201,13 +17219,13 @@ function instance$T($$self, $$props, $$invalidate) {
|
|
|
17201
17219
|
class Alert_icon extends SvelteComponent {
|
|
17202
17220
|
constructor(options) {
|
|
17203
17221
|
super();
|
|
17204
|
-
init(this, options, instance$
|
|
17222
|
+
init(this, options, instance$U, create_fragment$T, safe_not_equal, { classes: 0, size: 1 });
|
|
17205
17223
|
}
|
|
17206
17224
|
}
|
|
17207
17225
|
|
|
17208
17226
|
/* src/lib/components/icons/info-icon.svelte generated by Svelte v3.55.1 */
|
|
17209
17227
|
|
|
17210
|
-
function create_fragment$
|
|
17228
|
+
function create_fragment$S(ctx) {
|
|
17211
17229
|
let svg;
|
|
17212
17230
|
let path;
|
|
17213
17231
|
let title;
|
|
@@ -17283,7 +17301,7 @@ function create_fragment$R(ctx) {
|
|
|
17283
17301
|
};
|
|
17284
17302
|
}
|
|
17285
17303
|
|
|
17286
|
-
function instance$
|
|
17304
|
+
function instance$T($$self, $$props, $$invalidate) {
|
|
17287
17305
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
17288
17306
|
let { classes = '' } = $$props;
|
|
17289
17307
|
let { size = '24px' } = $$props;
|
|
@@ -17300,13 +17318,13 @@ function instance$S($$self, $$props, $$invalidate) {
|
|
|
17300
17318
|
class Info_icon extends SvelteComponent {
|
|
17301
17319
|
constructor(options) {
|
|
17302
17320
|
super();
|
|
17303
|
-
init(this, options, instance$
|
|
17321
|
+
init(this, options, instance$T, create_fragment$S, safe_not_equal, { classes: 0, size: 1 });
|
|
17304
17322
|
}
|
|
17305
17323
|
}
|
|
17306
17324
|
|
|
17307
17325
|
/* src/lib/components/icons/warning-icon.svelte generated by Svelte v3.55.1 */
|
|
17308
17326
|
|
|
17309
|
-
function create_fragment$
|
|
17327
|
+
function create_fragment$R(ctx) {
|
|
17310
17328
|
let svg;
|
|
17311
17329
|
let path;
|
|
17312
17330
|
let title;
|
|
@@ -17382,7 +17400,7 @@ function create_fragment$Q(ctx) {
|
|
|
17382
17400
|
};
|
|
17383
17401
|
}
|
|
17384
17402
|
|
|
17385
|
-
function instance$
|
|
17403
|
+
function instance$S($$self, $$props, $$invalidate) {
|
|
17386
17404
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
17387
17405
|
let { classes = '' } = $$props;
|
|
17388
17406
|
let { size = '24px' } = $$props;
|
|
@@ -17399,7 +17417,7 @@ function instance$R($$self, $$props, $$invalidate) {
|
|
|
17399
17417
|
class Warning_icon extends SvelteComponent {
|
|
17400
17418
|
constructor(options) {
|
|
17401
17419
|
super();
|
|
17402
|
-
init(this, options, instance$
|
|
17420
|
+
init(this, options, instance$S, create_fragment$R, safe_not_equal, { classes: 0, size: 1 });
|
|
17403
17421
|
}
|
|
17404
17422
|
}
|
|
17405
17423
|
|
|
@@ -17434,7 +17452,7 @@ function create_else_block$7(ctx) {
|
|
|
17434
17452
|
}
|
|
17435
17453
|
|
|
17436
17454
|
// (43:33)
|
|
17437
|
-
function create_if_block_1$
|
|
17455
|
+
function create_if_block_1$b(ctx) {
|
|
17438
17456
|
let warningicon;
|
|
17439
17457
|
let current;
|
|
17440
17458
|
warningicon = new Warning_icon({});
|
|
@@ -17463,7 +17481,7 @@ function create_if_block_1$a(ctx) {
|
|
|
17463
17481
|
}
|
|
17464
17482
|
|
|
17465
17483
|
// (41:4) {#if type === 'error'}
|
|
17466
|
-
function create_if_block$
|
|
17484
|
+
function create_if_block$k(ctx) {
|
|
17467
17485
|
let alerticon;
|
|
17468
17486
|
let current;
|
|
17469
17487
|
alerticon = new Alert_icon({});
|
|
@@ -17491,7 +17509,7 @@ function create_if_block$j(ctx) {
|
|
|
17491
17509
|
};
|
|
17492
17510
|
}
|
|
17493
17511
|
|
|
17494
|
-
function create_fragment$
|
|
17512
|
+
function create_fragment$Q(ctx) {
|
|
17495
17513
|
let div;
|
|
17496
17514
|
let p;
|
|
17497
17515
|
let current_block_type_index;
|
|
@@ -17500,7 +17518,7 @@ function create_fragment$P(ctx) {
|
|
|
17500
17518
|
let span;
|
|
17501
17519
|
let div_class_value;
|
|
17502
17520
|
let current;
|
|
17503
|
-
const if_block_creators = [create_if_block$
|
|
17521
|
+
const if_block_creators = [create_if_block$k, create_if_block_1$b, create_else_block$7];
|
|
17504
17522
|
const if_blocks = [];
|
|
17505
17523
|
|
|
17506
17524
|
function select_block_type(ctx, dirty) {
|
|
@@ -17627,7 +17645,7 @@ function generateClassString$3(...args) {
|
|
|
17627
17645
|
);
|
|
17628
17646
|
}
|
|
17629
17647
|
|
|
17630
|
-
function instance$
|
|
17648
|
+
function instance$R($$self, $$props, $$invalidate) {
|
|
17631
17649
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
17632
17650
|
let { id } = $$props;
|
|
17633
17651
|
let { needsFocus = false } = $$props;
|
|
@@ -17664,13 +17682,13 @@ function instance$Q($$self, $$props, $$invalidate) {
|
|
|
17664
17682
|
class Alert extends SvelteComponent {
|
|
17665
17683
|
constructor(options) {
|
|
17666
17684
|
super();
|
|
17667
|
-
init(this, options, instance$
|
|
17685
|
+
init(this, options, instance$R, create_fragment$Q, safe_not_equal, { id: 0, needsFocus: 3, type: 1 });
|
|
17668
17686
|
}
|
|
17669
17687
|
}
|
|
17670
17688
|
|
|
17671
17689
|
/* src/lib/components/primitives/spinner/spinner.svelte generated by Svelte v3.55.1 */
|
|
17672
17690
|
|
|
17673
|
-
function create_fragment$
|
|
17691
|
+
function create_fragment$P(ctx) {
|
|
17674
17692
|
let div;
|
|
17675
17693
|
let span;
|
|
17676
17694
|
let t;
|
|
@@ -17714,7 +17732,7 @@ function create_fragment$O(ctx) {
|
|
|
17714
17732
|
};
|
|
17715
17733
|
}
|
|
17716
17734
|
|
|
17717
|
-
function instance$
|
|
17735
|
+
function instance$Q($$self, $$props, $$invalidate) {
|
|
17718
17736
|
let { colorClass } = $$props;
|
|
17719
17737
|
let { layoutClasses } = $$props;
|
|
17720
17738
|
|
|
@@ -17729,13 +17747,13 @@ function instance$P($$self, $$props, $$invalidate) {
|
|
|
17729
17747
|
class Spinner extends SvelteComponent {
|
|
17730
17748
|
constructor(options) {
|
|
17731
17749
|
super();
|
|
17732
|
-
init(this, options, instance$
|
|
17750
|
+
init(this, options, instance$Q, create_fragment$P, safe_not_equal, { colorClass: 0, layoutClasses: 1 });
|
|
17733
17751
|
}
|
|
17734
17752
|
}
|
|
17735
17753
|
|
|
17736
17754
|
/* src/lib/components/primitives/button/button.svelte generated by Svelte v3.55.1 */
|
|
17737
17755
|
|
|
17738
|
-
function create_if_block$
|
|
17756
|
+
function create_if_block$j(ctx) {
|
|
17739
17757
|
let spinner;
|
|
17740
17758
|
let current;
|
|
17741
17759
|
|
|
@@ -17786,14 +17804,14 @@ function fallback_block$1(ctx) {
|
|
|
17786
17804
|
};
|
|
17787
17805
|
}
|
|
17788
17806
|
|
|
17789
|
-
function create_fragment$
|
|
17807
|
+
function create_fragment$O(ctx) {
|
|
17790
17808
|
let button;
|
|
17791
17809
|
let t;
|
|
17792
17810
|
let button_class_value;
|
|
17793
17811
|
let current;
|
|
17794
17812
|
let mounted;
|
|
17795
17813
|
let dispose;
|
|
17796
|
-
let if_block = /*busy*/ ctx[0] && create_if_block$
|
|
17814
|
+
let if_block = /*busy*/ ctx[0] && create_if_block$j();
|
|
17797
17815
|
const default_slot_template = /*#slots*/ ctx[7].default;
|
|
17798
17816
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
|
|
17799
17817
|
const default_slot_or_fallback = default_slot || fallback_block$1();
|
|
@@ -17835,7 +17853,7 @@ function create_fragment$N(ctx) {
|
|
|
17835
17853
|
transition_in(if_block, 1);
|
|
17836
17854
|
}
|
|
17837
17855
|
} else {
|
|
17838
|
-
if_block = create_if_block$
|
|
17856
|
+
if_block = create_if_block$j();
|
|
17839
17857
|
if_block.c();
|
|
17840
17858
|
transition_in(if_block, 1);
|
|
17841
17859
|
if_block.m(button, t);
|
|
@@ -17916,7 +17934,7 @@ function generateClassString$2(...args) {
|
|
|
17916
17934
|
);
|
|
17917
17935
|
}
|
|
17918
17936
|
|
|
17919
|
-
function instance$
|
|
17937
|
+
function instance$P($$self, $$props, $$invalidate) {
|
|
17920
17938
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
17921
17939
|
let { busy = false } = $$props;
|
|
17922
17940
|
let { classes = '' } = $$props;
|
|
@@ -17946,7 +17964,7 @@ class Button extends SvelteComponent {
|
|
|
17946
17964
|
constructor(options) {
|
|
17947
17965
|
super();
|
|
17948
17966
|
|
|
17949
|
-
init(this, options, instance$
|
|
17967
|
+
init(this, options, instance$P, create_fragment$O, safe_not_equal, {
|
|
17950
17968
|
busy: 0,
|
|
17951
17969
|
classes: 1,
|
|
17952
17970
|
onClick: 2,
|
|
@@ -18203,7 +18221,7 @@ function buildCallbackMetadata(step, checkValidation, stageJson) {
|
|
|
18203
18221
|
* @param {array} callbackMetadataArray - The array returned from buildCallbackMetadata
|
|
18204
18222
|
* @returns {object}
|
|
18205
18223
|
*/
|
|
18206
|
-
function buildStepMetadata(callbackMetadataArray, stageJson) {
|
|
18224
|
+
function buildStepMetadata(callbackMetadataArray, stageJson, stageName) {
|
|
18207
18225
|
const numOfUserInputCbs = callbackMetadataArray.filter((cb) => !!cb.derived.isUserInputRequired).length;
|
|
18208
18226
|
const userInputOptional = isUserInputOptional(callbackMetadataArray, numOfUserInputCbs);
|
|
18209
18227
|
let stageMetadata;
|
|
@@ -18231,6 +18249,12 @@ function buildStepMetadata(callbackMetadataArray, stageJson) {
|
|
|
18231
18249
|
...stageMetadata,
|
|
18232
18250
|
},
|
|
18233
18251
|
}),
|
|
18252
|
+
// stageName and stateMetadata are mutually exclusive
|
|
18253
|
+
...(stageName && {
|
|
18254
|
+
platform: {
|
|
18255
|
+
stageName,
|
|
18256
|
+
}
|
|
18257
|
+
}),
|
|
18234
18258
|
};
|
|
18235
18259
|
}
|
|
18236
18260
|
|
|
@@ -18280,7 +18304,7 @@ function initializeStack(initOptions) {
|
|
|
18280
18304
|
return stack;
|
|
18281
18305
|
}
|
|
18282
18306
|
function initialize$4(initOptions) {
|
|
18283
|
-
const
|
|
18307
|
+
const journeyStore = writable({
|
|
18284
18308
|
completed: false,
|
|
18285
18309
|
error: null,
|
|
18286
18310
|
loading: false,
|
|
@@ -18289,7 +18313,9 @@ function initialize$4(initOptions) {
|
|
|
18289
18313
|
successful: false,
|
|
18290
18314
|
response: null,
|
|
18291
18315
|
});
|
|
18316
|
+
const { set, subscribe } = journeyStore;
|
|
18292
18317
|
const stack = initializeStack();
|
|
18318
|
+
let restartOptions;
|
|
18293
18319
|
let stepNumber = 0;
|
|
18294
18320
|
async function next(prevStep = null, nextOptions, resumeUrl) {
|
|
18295
18321
|
/**
|
|
@@ -18300,6 +18326,14 @@ function initialize$4(initOptions) {
|
|
|
18300
18326
|
...initOptions,
|
|
18301
18327
|
...nextOptions,
|
|
18302
18328
|
};
|
|
18329
|
+
// These options are reserved only for restarting a journey after failure
|
|
18330
|
+
if (initOptions || nextOptions) {
|
|
18331
|
+
restartOptions = {
|
|
18332
|
+
// Prioritize next options over initialize options
|
|
18333
|
+
...initOptions,
|
|
18334
|
+
...nextOptions,
|
|
18335
|
+
};
|
|
18336
|
+
}
|
|
18303
18337
|
/**
|
|
18304
18338
|
* Save previous step information just in case we have a total
|
|
18305
18339
|
* form failure due to 400 response from ForgeRock.
|
|
@@ -18314,7 +18348,7 @@ function initialize$4(initOptions) {
|
|
|
18314
18348
|
completed: false,
|
|
18315
18349
|
error: null,
|
|
18316
18350
|
loading: true,
|
|
18317
|
-
metadata:
|
|
18351
|
+
metadata: get_store_value(journeyStore).metadata,
|
|
18318
18352
|
step: prevStep,
|
|
18319
18353
|
successful: false,
|
|
18320
18354
|
response: null,
|
|
@@ -18352,6 +18386,7 @@ function initialize$4(initOptions) {
|
|
|
18352
18386
|
if (nextStep.type === StepType$1.Step) {
|
|
18353
18387
|
const stageAttribute = nextStep.getStage();
|
|
18354
18388
|
let stageJson = null;
|
|
18389
|
+
let stageName = null;
|
|
18355
18390
|
// Check if stage attribute is serialized JSON
|
|
18356
18391
|
if (stageAttribute && stageAttribute.includes('{')) {
|
|
18357
18392
|
try {
|
|
@@ -18361,8 +18396,11 @@ function initialize$4(initOptions) {
|
|
|
18361
18396
|
console.warn('Stage attribute value was not parsable');
|
|
18362
18397
|
}
|
|
18363
18398
|
}
|
|
18399
|
+
else if (stageAttribute) {
|
|
18400
|
+
stageName = stageAttribute;
|
|
18401
|
+
}
|
|
18364
18402
|
const callbackMetadata = buildCallbackMetadata(nextStep, initCheckValidation(), stageJson);
|
|
18365
|
-
const stepMetadata = buildStepMetadata(callbackMetadata, stageJson);
|
|
18403
|
+
const stepMetadata = buildStepMetadata(callbackMetadata, stageJson, stageName);
|
|
18366
18404
|
// Iterate on a successful progression
|
|
18367
18405
|
stepNumber = stepNumber + 1;
|
|
18368
18406
|
set({
|
|
@@ -18405,7 +18443,7 @@ function initialize$4(initOptions) {
|
|
|
18405
18443
|
/**
|
|
18406
18444
|
* Restart tree to get fresh step
|
|
18407
18445
|
*/
|
|
18408
|
-
restartedStep = await FRAuth$1.next(undefined,
|
|
18446
|
+
restartedStep = await FRAuth$1.next(undefined, restartOptions);
|
|
18409
18447
|
}
|
|
18410
18448
|
catch (err) {
|
|
18411
18449
|
console.error(`Restart failed step request | ${err}`);
|
|
@@ -18461,6 +18499,7 @@ function initialize$4(initOptions) {
|
|
|
18461
18499
|
if (restartedStep.type === StepType$1.Step) {
|
|
18462
18500
|
const stageAttribute = restartedStep.getStage();
|
|
18463
18501
|
let stageJson = null;
|
|
18502
|
+
let stageName = null;
|
|
18464
18503
|
// Check if stage attribute is serialized JSON
|
|
18465
18504
|
if (stageAttribute && stageAttribute.includes('{')) {
|
|
18466
18505
|
try {
|
|
@@ -18470,8 +18509,11 @@ function initialize$4(initOptions) {
|
|
|
18470
18509
|
console.warn('Stage attribute value was not parsable');
|
|
18471
18510
|
}
|
|
18472
18511
|
}
|
|
18512
|
+
else if (stageAttribute) {
|
|
18513
|
+
stageName = stageAttribute;
|
|
18514
|
+
}
|
|
18473
18515
|
const callbackMetadata = buildCallbackMetadata(restartedStep, initCheckValidation(), stageJson);
|
|
18474
|
-
const stepMetadata = buildStepMetadata(callbackMetadata, stageJson);
|
|
18516
|
+
const stepMetadata = buildStepMetadata(callbackMetadata, stageJson, stageName);
|
|
18475
18517
|
set({
|
|
18476
18518
|
completed: false,
|
|
18477
18519
|
error: {
|
|
@@ -18562,7 +18604,7 @@ let stack;
|
|
|
18562
18604
|
|
|
18563
18605
|
/* src/lib/components/primitives/form/form.svelte generated by Svelte v3.55.1 */
|
|
18564
18606
|
|
|
18565
|
-
function create_fragment$
|
|
18607
|
+
function create_fragment$N(ctx) {
|
|
18566
18608
|
let form;
|
|
18567
18609
|
let form_class_value;
|
|
18568
18610
|
let current;
|
|
@@ -18649,7 +18691,7 @@ function create_fragment$M(ctx) {
|
|
|
18649
18691
|
};
|
|
18650
18692
|
}
|
|
18651
18693
|
|
|
18652
|
-
function instance$
|
|
18694
|
+
function instance$O($$self, $$props, $$invalidate) {
|
|
18653
18695
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
18654
18696
|
let { ariaDescribedBy } = $$props;
|
|
18655
18697
|
let { formEl = null } = $$props;
|
|
@@ -18777,7 +18819,7 @@ class Form extends SvelteComponent {
|
|
|
18777
18819
|
constructor(options) {
|
|
18778
18820
|
super();
|
|
18779
18821
|
|
|
18780
|
-
init(this, options, instance$
|
|
18822
|
+
init(this, options, instance$O, create_fragment$N, safe_not_equal, {
|
|
18781
18823
|
ariaDescribedBy: 1,
|
|
18782
18824
|
formEl: 0,
|
|
18783
18825
|
id: 2,
|
|
@@ -18842,7 +18884,7 @@ function create_else_block$6(ctx) {
|
|
|
18842
18884
|
}
|
|
18843
18885
|
|
|
18844
18886
|
// (10:0) {#if html}
|
|
18845
|
-
function create_if_block$
|
|
18887
|
+
function create_if_block$i(ctx) {
|
|
18846
18888
|
let current;
|
|
18847
18889
|
const default_slot_template = /*#slots*/ ctx[4].default;
|
|
18848
18890
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[3], null);
|
|
@@ -18939,12 +18981,12 @@ function fallback_block(ctx) {
|
|
|
18939
18981
|
};
|
|
18940
18982
|
}
|
|
18941
18983
|
|
|
18942
|
-
function create_fragment$
|
|
18984
|
+
function create_fragment$M(ctx) {
|
|
18943
18985
|
let current_block_type_index;
|
|
18944
18986
|
let if_block;
|
|
18945
18987
|
let if_block_anchor;
|
|
18946
18988
|
let current;
|
|
18947
|
-
const if_block_creators = [create_if_block$
|
|
18989
|
+
const if_block_creators = [create_if_block$i, create_else_block$6];
|
|
18948
18990
|
const if_blocks = [];
|
|
18949
18991
|
|
|
18950
18992
|
function select_block_type(ctx, dirty) {
|
|
@@ -19008,7 +19050,7 @@ function create_fragment$L(ctx) {
|
|
|
19008
19050
|
};
|
|
19009
19051
|
}
|
|
19010
19052
|
|
|
19011
|
-
function instance$
|
|
19053
|
+
function instance$N($$self, $$props, $$invalidate) {
|
|
19012
19054
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
19013
19055
|
let { html = false } = $$props;
|
|
19014
19056
|
let { string } = $$props;
|
|
@@ -19034,13 +19076,13 @@ function instance$M($$self, $$props, $$invalidate) {
|
|
|
19034
19076
|
class Server_strings extends SvelteComponent {
|
|
19035
19077
|
constructor(options) {
|
|
19036
19078
|
super();
|
|
19037
|
-
init(this, options, instance$
|
|
19079
|
+
init(this, options, instance$N, create_fragment$M, safe_not_equal, { html: 0, string: 2 });
|
|
19038
19080
|
}
|
|
19039
19081
|
}
|
|
19040
19082
|
|
|
19041
19083
|
/* src/lib/components/icons/shield-icon.svelte generated by Svelte v3.55.1 */
|
|
19042
19084
|
|
|
19043
|
-
function create_fragment$
|
|
19085
|
+
function create_fragment$L(ctx) {
|
|
19044
19086
|
let svg;
|
|
19045
19087
|
let path;
|
|
19046
19088
|
let title;
|
|
@@ -19116,7 +19158,7 @@ function create_fragment$K(ctx) {
|
|
|
19116
19158
|
};
|
|
19117
19159
|
}
|
|
19118
19160
|
|
|
19119
|
-
function instance$
|
|
19161
|
+
function instance$M($$self, $$props, $$invalidate) {
|
|
19120
19162
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
19121
19163
|
let { classes = '' } = $$props;
|
|
19122
19164
|
let { size = '24px' } = $$props;
|
|
@@ -19133,7 +19175,7 @@ function instance$L($$self, $$props, $$invalidate) {
|
|
|
19133
19175
|
class Shield_icon extends SvelteComponent {
|
|
19134
19176
|
constructor(options) {
|
|
19135
19177
|
super();
|
|
19136
|
-
init(this, options, instance$
|
|
19178
|
+
init(this, options, instance$M, create_fragment$L, safe_not_equal, { classes: 0, size: 1 });
|
|
19137
19179
|
}
|
|
19138
19180
|
}
|
|
19139
19181
|
|
|
@@ -19194,7 +19236,7 @@ function initialize$3(customJourneys) {
|
|
|
19194
19236
|
|
|
19195
19237
|
/* src/lib/journey/stages/_utilities/back-to.svelte generated by Svelte v3.55.1 */
|
|
19196
19238
|
|
|
19197
|
-
function create_if_block$
|
|
19239
|
+
function create_if_block$h(ctx) {
|
|
19198
19240
|
let p;
|
|
19199
19241
|
let button;
|
|
19200
19242
|
let t_value = interpolate(/*string*/ ctx[1]) + "";
|
|
@@ -19230,9 +19272,9 @@ function create_if_block$g(ctx) {
|
|
|
19230
19272
|
};
|
|
19231
19273
|
}
|
|
19232
19274
|
|
|
19233
|
-
function create_fragment$
|
|
19275
|
+
function create_fragment$K(ctx) {
|
|
19234
19276
|
let if_block_anchor;
|
|
19235
|
-
let if_block = /*$stack*/ ctx[2].length > 1 && create_if_block$
|
|
19277
|
+
let if_block = /*$stack*/ ctx[2].length > 1 && create_if_block$h(ctx);
|
|
19236
19278
|
|
|
19237
19279
|
return {
|
|
19238
19280
|
c() {
|
|
@@ -19248,7 +19290,7 @@ function create_fragment$J(ctx) {
|
|
|
19248
19290
|
if (if_block) {
|
|
19249
19291
|
if_block.p(ctx, dirty);
|
|
19250
19292
|
} else {
|
|
19251
|
-
if_block = create_if_block$
|
|
19293
|
+
if_block = create_if_block$h(ctx);
|
|
19252
19294
|
if_block.c();
|
|
19253
19295
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
19254
19296
|
}
|
|
@@ -19266,7 +19308,7 @@ function create_fragment$J(ctx) {
|
|
|
19266
19308
|
};
|
|
19267
19309
|
}
|
|
19268
19310
|
|
|
19269
|
-
function instance$
|
|
19311
|
+
function instance$L($$self, $$props, $$invalidate) {
|
|
19270
19312
|
let $stack;
|
|
19271
19313
|
let $configuredJourneys;
|
|
19272
19314
|
component_subscribe($$self, configuredJourneys, $$value => $$invalidate(5, $configuredJourneys = $$value));
|
|
@@ -19307,7 +19349,7 @@ function instance$K($$self, $$props, $$invalidate) {
|
|
|
19307
19349
|
class Back_to extends SvelteComponent {
|
|
19308
19350
|
constructor(options) {
|
|
19309
19351
|
super();
|
|
19310
|
-
init(this, options, instance$
|
|
19352
|
+
init(this, options, instance$L, create_fragment$K, safe_not_equal, { journey: 0 });
|
|
19311
19353
|
}
|
|
19312
19354
|
}
|
|
19313
19355
|
|
|
@@ -19624,7 +19666,7 @@ function getAttributeValidationFailureText(callback) {
|
|
|
19624
19666
|
|
|
19625
19667
|
/* src/lib/components/primitives/message/input-message.svelte generated by Svelte v3.55.1 */
|
|
19626
19668
|
|
|
19627
|
-
function create_if_block$
|
|
19669
|
+
function create_if_block$g(ctx) {
|
|
19628
19670
|
let p;
|
|
19629
19671
|
let p_class_value;
|
|
19630
19672
|
let p_id_value;
|
|
@@ -19655,9 +19697,9 @@ function create_if_block$f(ctx) {
|
|
|
19655
19697
|
};
|
|
19656
19698
|
}
|
|
19657
19699
|
|
|
19658
|
-
function create_fragment$
|
|
19700
|
+
function create_fragment$J(ctx) {
|
|
19659
19701
|
let if_block_anchor;
|
|
19660
|
-
let if_block = /*dirtyMessage*/ ctx[1] && create_if_block$
|
|
19702
|
+
let if_block = /*dirtyMessage*/ ctx[1] && create_if_block$g(ctx);
|
|
19661
19703
|
|
|
19662
19704
|
return {
|
|
19663
19705
|
c() {
|
|
@@ -19673,7 +19715,7 @@ function create_fragment$I(ctx) {
|
|
|
19673
19715
|
if (if_block) {
|
|
19674
19716
|
if_block.p(ctx, dirty);
|
|
19675
19717
|
} else {
|
|
19676
|
-
if_block = create_if_block$
|
|
19718
|
+
if_block = create_if_block$g(ctx);
|
|
19677
19719
|
if_block.c();
|
|
19678
19720
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
19679
19721
|
}
|
|
@@ -19705,7 +19747,7 @@ function generateClassString$1(...args) {
|
|
|
19705
19747
|
);
|
|
19706
19748
|
}
|
|
19707
19749
|
|
|
19708
|
-
function instance$
|
|
19750
|
+
function instance$K($$self, $$props, $$invalidate) {
|
|
19709
19751
|
let { classes = '' } = $$props;
|
|
19710
19752
|
let { dirtyMessage } = $$props;
|
|
19711
19753
|
let { key = undefined } = $$props;
|
|
@@ -19736,7 +19778,7 @@ class Input_message extends SvelteComponent {
|
|
|
19736
19778
|
constructor(options) {
|
|
19737
19779
|
super();
|
|
19738
19780
|
|
|
19739
|
-
init(this, options, instance$
|
|
19781
|
+
init(this, options, instance$K, create_fragment$J, safe_not_equal, {
|
|
19740
19782
|
classes: 0,
|
|
19741
19783
|
dirtyMessage: 1,
|
|
19742
19784
|
key: 2,
|
|
@@ -19748,7 +19790,7 @@ class Input_message extends SvelteComponent {
|
|
|
19748
19790
|
|
|
19749
19791
|
/* src/lib/components/primitives/label/label.svelte generated by Svelte v3.55.1 */
|
|
19750
19792
|
|
|
19751
|
-
function create_fragment$
|
|
19793
|
+
function create_fragment$I(ctx) {
|
|
19752
19794
|
let label;
|
|
19753
19795
|
let label_class_value;
|
|
19754
19796
|
let current;
|
|
@@ -19811,7 +19853,7 @@ function create_fragment$H(ctx) {
|
|
|
19811
19853
|
};
|
|
19812
19854
|
}
|
|
19813
19855
|
|
|
19814
|
-
function instance$
|
|
19856
|
+
function instance$J($$self, $$props, $$invalidate) {
|
|
19815
19857
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
19816
19858
|
let { key } = $$props;
|
|
19817
19859
|
let { classes = '' } = $$props;
|
|
@@ -19828,13 +19870,13 @@ function instance$I($$self, $$props, $$invalidate) {
|
|
|
19828
19870
|
class Label extends SvelteComponent {
|
|
19829
19871
|
constructor(options) {
|
|
19830
19872
|
super();
|
|
19831
|
-
init(this, options, instance$
|
|
19873
|
+
init(this, options, instance$J, create_fragment$I, safe_not_equal, { key: 0, classes: 1 });
|
|
19832
19874
|
}
|
|
19833
19875
|
}
|
|
19834
19876
|
|
|
19835
19877
|
/* src/lib/components/compositions/checkbox/animated.svelte generated by Svelte v3.55.1 */
|
|
19836
19878
|
|
|
19837
|
-
function create_default_slot$
|
|
19879
|
+
function create_default_slot$n(ctx) {
|
|
19838
19880
|
let span;
|
|
19839
19881
|
let t;
|
|
19840
19882
|
let current;
|
|
@@ -19891,7 +19933,7 @@ function create_default_slot$m(ctx) {
|
|
|
19891
19933
|
};
|
|
19892
19934
|
}
|
|
19893
19935
|
|
|
19894
|
-
function create_fragment$
|
|
19936
|
+
function create_fragment$H(ctx) {
|
|
19895
19937
|
let div1;
|
|
19896
19938
|
let input;
|
|
19897
19939
|
let input_data_message_value;
|
|
@@ -19908,7 +19950,7 @@ function create_fragment$G(ctx) {
|
|
|
19908
19950
|
props: {
|
|
19909
19951
|
key: /*key*/ ctx[3],
|
|
19910
19952
|
classes: "tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",
|
|
19911
|
-
$$slots: { default: [create_default_slot$
|
|
19953
|
+
$$slots: { default: [create_default_slot$n] },
|
|
19912
19954
|
$$scope: { ctx }
|
|
19913
19955
|
}
|
|
19914
19956
|
});
|
|
@@ -20015,7 +20057,7 @@ function create_fragment$G(ctx) {
|
|
|
20015
20057
|
};
|
|
20016
20058
|
}
|
|
20017
20059
|
|
|
20018
|
-
function instance$
|
|
20060
|
+
function instance$I($$self, $$props, $$invalidate) {
|
|
20019
20061
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
20020
20062
|
let { checkValidity = null } = $$props;
|
|
20021
20063
|
let { message = '' } = $$props;
|
|
@@ -20084,7 +20126,7 @@ let Animated$1 = class Animated extends SvelteComponent {
|
|
|
20084
20126
|
constructor(options) {
|
|
20085
20127
|
super();
|
|
20086
20128
|
|
|
20087
|
-
init(this, options, instance$
|
|
20129
|
+
init(this, options, instance$I, create_fragment$H, safe_not_equal, {
|
|
20088
20130
|
checkValidity: 8,
|
|
20089
20131
|
message: 1,
|
|
20090
20132
|
isFirstInvalidInput: 9,
|
|
@@ -20100,7 +20142,7 @@ let Animated$1 = class Animated extends SvelteComponent {
|
|
|
20100
20142
|
|
|
20101
20143
|
/* src/lib/components/primitives/checkbox/checkbox.svelte generated by Svelte v3.55.1 */
|
|
20102
20144
|
|
|
20103
|
-
function create_default_slot$
|
|
20145
|
+
function create_default_slot$m(ctx) {
|
|
20104
20146
|
let current;
|
|
20105
20147
|
const default_slot_template = /*#slots*/ ctx[7].default;
|
|
20106
20148
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[9], null);
|
|
@@ -20147,7 +20189,7 @@ function create_default_slot$l(ctx) {
|
|
|
20147
20189
|
};
|
|
20148
20190
|
}
|
|
20149
20191
|
|
|
20150
|
-
function create_fragment$
|
|
20192
|
+
function create_fragment$G(ctx) {
|
|
20151
20193
|
let input;
|
|
20152
20194
|
let input_aria_describedby_value;
|
|
20153
20195
|
let t;
|
|
@@ -20159,7 +20201,7 @@ function create_fragment$F(ctx) {
|
|
|
20159
20201
|
label = new Label({
|
|
20160
20202
|
props: {
|
|
20161
20203
|
key: /*key*/ ctx[2],
|
|
20162
|
-
$$slots: { default: [create_default_slot$
|
|
20204
|
+
$$slots: { default: [create_default_slot$m] },
|
|
20163
20205
|
$$scope: { ctx }
|
|
20164
20206
|
}
|
|
20165
20207
|
});
|
|
@@ -20244,7 +20286,7 @@ function create_fragment$F(ctx) {
|
|
|
20244
20286
|
};
|
|
20245
20287
|
}
|
|
20246
20288
|
|
|
20247
|
-
function instance$
|
|
20289
|
+
function instance$H($$self, $$props, $$invalidate) {
|
|
20248
20290
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
20249
20291
|
let { isFirstInvalidInput } = $$props;
|
|
20250
20292
|
let { isRequired = false } = $$props;
|
|
@@ -20295,7 +20337,7 @@ class Checkbox extends SvelteComponent {
|
|
|
20295
20337
|
constructor(options) {
|
|
20296
20338
|
super();
|
|
20297
20339
|
|
|
20298
|
-
init(this, options, instance$
|
|
20340
|
+
init(this, options, instance$H, create_fragment$G, safe_not_equal, {
|
|
20299
20341
|
isFirstInvalidInput: 6,
|
|
20300
20342
|
isRequired: 0,
|
|
20301
20343
|
isInvalid: 1,
|
|
@@ -20308,7 +20350,7 @@ class Checkbox extends SvelteComponent {
|
|
|
20308
20350
|
|
|
20309
20351
|
/* src/lib/components/compositions/checkbox/standard.svelte generated by Svelte v3.55.1 */
|
|
20310
20352
|
|
|
20311
|
-
function create_default_slot$
|
|
20353
|
+
function create_default_slot$l(ctx) {
|
|
20312
20354
|
let current;
|
|
20313
20355
|
const default_slot_template = /*#slots*/ ctx[10].default;
|
|
20314
20356
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[11], null);
|
|
@@ -20355,7 +20397,7 @@ function create_default_slot$k(ctx) {
|
|
|
20355
20397
|
};
|
|
20356
20398
|
}
|
|
20357
20399
|
|
|
20358
|
-
function create_fragment$
|
|
20400
|
+
function create_fragment$F(ctx) {
|
|
20359
20401
|
let div;
|
|
20360
20402
|
let checkbox;
|
|
20361
20403
|
let t;
|
|
@@ -20371,7 +20413,7 @@ function create_fragment$E(ctx) {
|
|
|
20371
20413
|
key: /*key*/ ctx[4],
|
|
20372
20414
|
onChange: /*onChangeWrapper*/ ctx[7],
|
|
20373
20415
|
value: /*value*/ ctx[6],
|
|
20374
|
-
$$slots: { default: [create_default_slot$
|
|
20416
|
+
$$slots: { default: [create_default_slot$l] },
|
|
20375
20417
|
$$scope: { ctx }
|
|
20376
20418
|
}
|
|
20377
20419
|
});
|
|
@@ -20442,7 +20484,7 @@ function create_fragment$E(ctx) {
|
|
|
20442
20484
|
};
|
|
20443
20485
|
}
|
|
20444
20486
|
|
|
20445
|
-
function instance$
|
|
20487
|
+
function instance$G($$self, $$props, $$invalidate) {
|
|
20446
20488
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
20447
20489
|
let { checkValidity = null } = $$props;
|
|
20448
20490
|
let { message = '' } = $$props;
|
|
@@ -20495,7 +20537,7 @@ class Standard extends SvelteComponent {
|
|
|
20495
20537
|
constructor(options) {
|
|
20496
20538
|
super();
|
|
20497
20539
|
|
|
20498
|
-
init(this, options, instance$
|
|
20540
|
+
init(this, options, instance$G, create_fragment$F, safe_not_equal, {
|
|
20499
20541
|
checkValidity: 8,
|
|
20500
20542
|
message: 1,
|
|
20501
20543
|
isFirstInvalidInput: 2,
|
|
@@ -20511,7 +20553,7 @@ class Standard extends SvelteComponent {
|
|
|
20511
20553
|
|
|
20512
20554
|
/* src/lib/journey/callbacks/boolean/boolean.svelte generated by Svelte v3.55.1 */
|
|
20513
20555
|
|
|
20514
|
-
function create_default_slot$
|
|
20556
|
+
function create_default_slot$k(ctx) {
|
|
20515
20557
|
let t_value = interpolate(textToKey(/*outputName*/ ctx[2]), null, /*prompt*/ ctx[4]) + "";
|
|
20516
20558
|
let t;
|
|
20517
20559
|
|
|
@@ -20531,7 +20573,7 @@ function create_default_slot$j(ctx) {
|
|
|
20531
20573
|
};
|
|
20532
20574
|
}
|
|
20533
20575
|
|
|
20534
|
-
function create_fragment$
|
|
20576
|
+
function create_fragment$E(ctx) {
|
|
20535
20577
|
let checkbox;
|
|
20536
20578
|
let current;
|
|
20537
20579
|
|
|
@@ -20543,7 +20585,7 @@ function create_fragment$D(ctx) {
|
|
|
20543
20585
|
message: /*validationFailure*/ ctx[5],
|
|
20544
20586
|
onChange: /*setValue*/ ctx[7],
|
|
20545
20587
|
value: /*previousValue*/ ctx[3],
|
|
20546
|
-
$$slots: { default: [create_default_slot$
|
|
20588
|
+
$$slots: { default: [create_default_slot$k] },
|
|
20547
20589
|
$$scope: { ctx }
|
|
20548
20590
|
}
|
|
20549
20591
|
});
|
|
@@ -20585,7 +20627,7 @@ function create_fragment$D(ctx) {
|
|
|
20585
20627
|
};
|
|
20586
20628
|
}
|
|
20587
20629
|
|
|
20588
|
-
function instance$
|
|
20630
|
+
function instance$F($$self, $$props, $$invalidate) {
|
|
20589
20631
|
let { callback } = $$props;
|
|
20590
20632
|
let { callbackMetadata } = $$props;
|
|
20591
20633
|
const stepMetadata = null;
|
|
@@ -20659,7 +20701,7 @@ let Boolean$1 = class Boolean extends SvelteComponent {
|
|
|
20659
20701
|
constructor(options) {
|
|
20660
20702
|
super();
|
|
20661
20703
|
|
|
20662
|
-
init(this, options, instance$
|
|
20704
|
+
init(this, options, instance$F, create_fragment$E, safe_not_equal, {
|
|
20663
20705
|
callback: 8,
|
|
20664
20706
|
callbackMetadata: 0,
|
|
20665
20707
|
stepMetadata: 9,
|
|
@@ -20679,14 +20721,14 @@ let Boolean$1 = class Boolean extends SvelteComponent {
|
|
|
20679
20721
|
|
|
20680
20722
|
/* src/lib/components/compositions/radio/animated.svelte generated by Svelte v3.55.1 */
|
|
20681
20723
|
|
|
20682
|
-
function get_each_context$
|
|
20724
|
+
function get_each_context$8(ctx, list, i) {
|
|
20683
20725
|
const child_ctx = ctx.slice();
|
|
20684
20726
|
child_ctx[13] = list[i];
|
|
20685
20727
|
return child_ctx;
|
|
20686
20728
|
}
|
|
20687
20729
|
|
|
20688
20730
|
// (41:8) <Label key={`${key}-${option.value}`} classes="tw_input-spacing tw_grid tw_grid-cols-[2.5em_1fr] tw_relative" >
|
|
20689
|
-
function create_default_slot$
|
|
20731
|
+
function create_default_slot$j(ctx) {
|
|
20690
20732
|
let span;
|
|
20691
20733
|
let t0;
|
|
20692
20734
|
let t1_value = /*option*/ ctx[13].text + "";
|
|
@@ -20716,7 +20758,7 @@ function create_default_slot$i(ctx) {
|
|
|
20716
20758
|
}
|
|
20717
20759
|
|
|
20718
20760
|
// (27:4) {#each options as option}
|
|
20719
|
-
function create_each_block$
|
|
20761
|
+
function create_each_block$8(ctx) {
|
|
20720
20762
|
let div;
|
|
20721
20763
|
let input;
|
|
20722
20764
|
let input_checked_value;
|
|
@@ -20733,7 +20775,7 @@ function create_each_block$7(ctx) {
|
|
|
20733
20775
|
props: {
|
|
20734
20776
|
key: `${/*key*/ ctx[5]}-${/*option*/ ctx[13].value}`,
|
|
20735
20777
|
classes: "tw_input-spacing tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",
|
|
20736
|
-
$$slots: { default: [create_default_slot$
|
|
20778
|
+
$$slots: { default: [create_default_slot$j] },
|
|
20737
20779
|
$$scope: { ctx }
|
|
20738
20780
|
}
|
|
20739
20781
|
});
|
|
@@ -20827,7 +20869,7 @@ function create_each_block$7(ctx) {
|
|
|
20827
20869
|
};
|
|
20828
20870
|
}
|
|
20829
20871
|
|
|
20830
|
-
function create_fragment$
|
|
20872
|
+
function create_fragment$D(ctx) {
|
|
20831
20873
|
let fieldset;
|
|
20832
20874
|
let legend;
|
|
20833
20875
|
let t0;
|
|
@@ -20841,7 +20883,7 @@ function create_fragment$C(ctx) {
|
|
|
20841
20883
|
let each_blocks = [];
|
|
20842
20884
|
|
|
20843
20885
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
20844
|
-
each_blocks[i] = create_each_block$
|
|
20886
|
+
each_blocks[i] = create_each_block$8(get_each_context$8(ctx, each_value, i));
|
|
20845
20887
|
}
|
|
20846
20888
|
|
|
20847
20889
|
const out = i => transition_out(each_blocks[i], 1, 1, () => {
|
|
@@ -20899,13 +20941,13 @@ function create_fragment$C(ctx) {
|
|
|
20899
20941
|
let i;
|
|
20900
20942
|
|
|
20901
20943
|
for (i = 0; i < each_value.length; i += 1) {
|
|
20902
|
-
const child_ctx = get_each_context$
|
|
20944
|
+
const child_ctx = get_each_context$8(ctx, each_value, i);
|
|
20903
20945
|
|
|
20904
20946
|
if (each_blocks[i]) {
|
|
20905
20947
|
each_blocks[i].p(child_ctx, dirty);
|
|
20906
20948
|
transition_in(each_blocks[i], 1);
|
|
20907
20949
|
} else {
|
|
20908
|
-
each_blocks[i] = create_each_block$
|
|
20950
|
+
each_blocks[i] = create_each_block$8(child_ctx);
|
|
20909
20951
|
each_blocks[i].c();
|
|
20910
20952
|
transition_in(each_blocks[i], 1);
|
|
20911
20953
|
each_blocks[i].m(div, t2);
|
|
@@ -20956,7 +20998,7 @@ function create_fragment$C(ctx) {
|
|
|
20956
20998
|
};
|
|
20957
20999
|
}
|
|
20958
21000
|
|
|
20959
|
-
function instance$
|
|
21001
|
+
function instance$E($$self, $$props, $$invalidate) {
|
|
20960
21002
|
let { defaultOption = null } = $$props;
|
|
20961
21003
|
let { message = '' } = $$props;
|
|
20962
21004
|
let { groupLabel = '' } = $$props;
|
|
@@ -21018,7 +21060,7 @@ class Animated extends SvelteComponent {
|
|
|
21018
21060
|
constructor(options) {
|
|
21019
21061
|
super();
|
|
21020
21062
|
|
|
21021
|
-
init(this, options, instance$
|
|
21063
|
+
init(this, options, instance$E, create_fragment$D, safe_not_equal, {
|
|
21022
21064
|
defaultOption: 0,
|
|
21023
21065
|
message: 1,
|
|
21024
21066
|
groupLabel: 2,
|
|
@@ -21036,14 +21078,14 @@ class Animated extends SvelteComponent {
|
|
|
21036
21078
|
|
|
21037
21079
|
/* src/lib/components/primitives/select/select.svelte generated by Svelte v3.55.1 */
|
|
21038
21080
|
|
|
21039
|
-
function get_each_context$
|
|
21081
|
+
function get_each_context$7(ctx, list, i) {
|
|
21040
21082
|
const child_ctx = ctx.slice();
|
|
21041
21083
|
child_ctx[15] = list[i];
|
|
21042
21084
|
return child_ctx;
|
|
21043
21085
|
}
|
|
21044
21086
|
|
|
21045
21087
|
// (40:0) {#if labelOrder === 'first'}
|
|
21046
|
-
function create_if_block_1$
|
|
21088
|
+
function create_if_block_1$a(ctx) {
|
|
21047
21089
|
let label_1;
|
|
21048
21090
|
let current;
|
|
21049
21091
|
|
|
@@ -21051,7 +21093,7 @@ function create_if_block_1$9(ctx) {
|
|
|
21051
21093
|
props: {
|
|
21052
21094
|
key: /*key*/ ctx[4],
|
|
21053
21095
|
classes: `${/*labelClasses*/ ctx[6]}`,
|
|
21054
|
-
$$slots: { default: [create_default_slot_1$
|
|
21096
|
+
$$slots: { default: [create_default_slot_1$b] },
|
|
21055
21097
|
$$scope: { ctx }
|
|
21056
21098
|
}
|
|
21057
21099
|
});
|
|
@@ -21091,7 +21133,7 @@ function create_if_block_1$9(ctx) {
|
|
|
21091
21133
|
}
|
|
21092
21134
|
|
|
21093
21135
|
// (41:2) <Label {key} classes={`${labelClasses}`}>
|
|
21094
|
-
function create_default_slot_1$
|
|
21136
|
+
function create_default_slot_1$b(ctx) {
|
|
21095
21137
|
let t;
|
|
21096
21138
|
|
|
21097
21139
|
return {
|
|
@@ -21111,7 +21153,7 @@ function create_default_slot_1$a(ctx) {
|
|
|
21111
21153
|
}
|
|
21112
21154
|
|
|
21113
21155
|
// (55:2) {#each options as option}
|
|
21114
|
-
function create_each_block$
|
|
21156
|
+
function create_each_block$7(ctx) {
|
|
21115
21157
|
let option;
|
|
21116
21158
|
let t0_value = /*option*/ ctx[15].text + "";
|
|
21117
21159
|
let t0;
|
|
@@ -21152,7 +21194,7 @@ function create_each_block$6(ctx) {
|
|
|
21152
21194
|
}
|
|
21153
21195
|
|
|
21154
21196
|
// (62:0) {#if labelOrder === 'last'}
|
|
21155
|
-
function create_if_block$
|
|
21197
|
+
function create_if_block$f(ctx) {
|
|
21156
21198
|
let label_1;
|
|
21157
21199
|
let current;
|
|
21158
21200
|
|
|
@@ -21162,7 +21204,7 @@ function create_if_block$e(ctx) {
|
|
|
21162
21204
|
classes: `${/*shouldDisplayOption*/ ctx[10]
|
|
21163
21205
|
? /*labelClasses*/ ctx[6]
|
|
21164
21206
|
: 'tw_sr-only'}`,
|
|
21165
|
-
$$slots: { default: [create_default_slot$
|
|
21207
|
+
$$slots: { default: [create_default_slot$i] },
|
|
21166
21208
|
$$scope: { ctx }
|
|
21167
21209
|
}
|
|
21168
21210
|
});
|
|
@@ -21205,7 +21247,7 @@ function create_if_block$e(ctx) {
|
|
|
21205
21247
|
}
|
|
21206
21248
|
|
|
21207
21249
|
// (63:2) <Label {key} classes={`${shouldDisplayOption ? labelClasses : 'tw_sr-only'}`}>
|
|
21208
|
-
function create_default_slot$
|
|
21250
|
+
function create_default_slot$i(ctx) {
|
|
21209
21251
|
let t;
|
|
21210
21252
|
|
|
21211
21253
|
return {
|
|
@@ -21224,7 +21266,7 @@ function create_default_slot$h(ctx) {
|
|
|
21224
21266
|
};
|
|
21225
21267
|
}
|
|
21226
21268
|
|
|
21227
|
-
function create_fragment$
|
|
21269
|
+
function create_fragment$C(ctx) {
|
|
21228
21270
|
let t0;
|
|
21229
21271
|
let select;
|
|
21230
21272
|
let select_aria_describedby_value;
|
|
@@ -21234,15 +21276,15 @@ function create_fragment$B(ctx) {
|
|
|
21234
21276
|
let current;
|
|
21235
21277
|
let mounted;
|
|
21236
21278
|
let dispose;
|
|
21237
|
-
let if_block0 = /*labelOrder*/ ctx[7] === 'first' && create_if_block_1$
|
|
21279
|
+
let if_block0 = /*labelOrder*/ ctx[7] === 'first' && create_if_block_1$a(ctx);
|
|
21238
21280
|
let each_value = /*options*/ ctx[8];
|
|
21239
21281
|
let each_blocks = [];
|
|
21240
21282
|
|
|
21241
21283
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
21242
|
-
each_blocks[i] = create_each_block$
|
|
21284
|
+
each_blocks[i] = create_each_block$7(get_each_context$7(ctx, each_value, i));
|
|
21243
21285
|
}
|
|
21244
21286
|
|
|
21245
|
-
let if_block1 = /*labelOrder*/ ctx[7] === 'last' && create_if_block$
|
|
21287
|
+
let if_block1 = /*labelOrder*/ ctx[7] === 'last' && create_if_block$f(ctx);
|
|
21246
21288
|
|
|
21247
21289
|
return {
|
|
21248
21290
|
c() {
|
|
@@ -21296,7 +21338,7 @@ function create_fragment$B(ctx) {
|
|
|
21296
21338
|
transition_in(if_block0, 1);
|
|
21297
21339
|
}
|
|
21298
21340
|
} else {
|
|
21299
|
-
if_block0 = create_if_block_1$
|
|
21341
|
+
if_block0 = create_if_block_1$a(ctx);
|
|
21300
21342
|
if_block0.c();
|
|
21301
21343
|
transition_in(if_block0, 1);
|
|
21302
21344
|
if_block0.m(t0.parentNode, t0);
|
|
@@ -21316,12 +21358,12 @@ function create_fragment$B(ctx) {
|
|
|
21316
21358
|
let i;
|
|
21317
21359
|
|
|
21318
21360
|
for (i = 0; i < each_value.length; i += 1) {
|
|
21319
|
-
const child_ctx = get_each_context$
|
|
21361
|
+
const child_ctx = get_each_context$7(ctx, each_value, i);
|
|
21320
21362
|
|
|
21321
21363
|
if (each_blocks[i]) {
|
|
21322
21364
|
each_blocks[i].p(child_ctx, dirty);
|
|
21323
21365
|
} else {
|
|
21324
|
-
each_blocks[i] = create_each_block$
|
|
21366
|
+
each_blocks[i] = create_each_block$7(child_ctx);
|
|
21325
21367
|
each_blocks[i].c();
|
|
21326
21368
|
each_blocks[i].m(select, null);
|
|
21327
21369
|
}
|
|
@@ -21364,7 +21406,7 @@ function create_fragment$B(ctx) {
|
|
|
21364
21406
|
transition_in(if_block1, 1);
|
|
21365
21407
|
}
|
|
21366
21408
|
} else {
|
|
21367
|
-
if_block1 = create_if_block$
|
|
21409
|
+
if_block1 = create_if_block$f(ctx);
|
|
21368
21410
|
if_block1.c();
|
|
21369
21411
|
transition_in(if_block1, 1);
|
|
21370
21412
|
if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
|
|
@@ -21405,7 +21447,7 @@ function create_fragment$B(ctx) {
|
|
|
21405
21447
|
};
|
|
21406
21448
|
}
|
|
21407
21449
|
|
|
21408
|
-
function instance$
|
|
21450
|
+
function instance$D($$self, $$props, $$invalidate) {
|
|
21409
21451
|
let { selectClasses = '' } = $$props;
|
|
21410
21452
|
let { defaultOption = null } = $$props;
|
|
21411
21453
|
let { isFirstInvalidInput } = $$props;
|
|
@@ -21494,7 +21536,7 @@ class Select extends SvelteComponent {
|
|
|
21494
21536
|
constructor(options) {
|
|
21495
21537
|
super();
|
|
21496
21538
|
|
|
21497
|
-
init(this, options, instance$
|
|
21539
|
+
init(this, options, instance$D, create_fragment$C, safe_not_equal, {
|
|
21498
21540
|
selectClasses: 0,
|
|
21499
21541
|
defaultOption: 1,
|
|
21500
21542
|
isFirstInvalidInput: 12,
|
|
@@ -21512,7 +21554,7 @@ class Select extends SvelteComponent {
|
|
|
21512
21554
|
|
|
21513
21555
|
/* src/lib/components/compositions/select-floating/floating-label.svelte generated by Svelte v3.55.1 */
|
|
21514
21556
|
|
|
21515
|
-
function create_fragment$
|
|
21557
|
+
function create_fragment$B(ctx) {
|
|
21516
21558
|
let div;
|
|
21517
21559
|
let select;
|
|
21518
21560
|
let t;
|
|
@@ -21595,7 +21637,7 @@ function create_fragment$A(ctx) {
|
|
|
21595
21637
|
};
|
|
21596
21638
|
}
|
|
21597
21639
|
|
|
21598
|
-
function instance$
|
|
21640
|
+
function instance$C($$self, $$props, $$invalidate) {
|
|
21599
21641
|
let { checkValidity = null } = $$props;
|
|
21600
21642
|
let { defaultOption = null } = $$props;
|
|
21601
21643
|
let { message = '' } = $$props;
|
|
@@ -21650,7 +21692,7 @@ let Floating_label$1 = class Floating_label extends SvelteComponent {
|
|
|
21650
21692
|
constructor(options) {
|
|
21651
21693
|
super();
|
|
21652
21694
|
|
|
21653
|
-
init(this, options, instance$
|
|
21695
|
+
init(this, options, instance$C, create_fragment$B, safe_not_equal, {
|
|
21654
21696
|
checkValidity: 10,
|
|
21655
21697
|
defaultOption: 1,
|
|
21656
21698
|
message: 2,
|
|
@@ -21717,7 +21759,7 @@ function create_else_block$5(ctx) {
|
|
|
21717
21759
|
}
|
|
21718
21760
|
|
|
21719
21761
|
// (62:0) {#if callbackMetadata?.platform?.displayType === 'radio'}
|
|
21720
|
-
function create_if_block$
|
|
21762
|
+
function create_if_block$e(ctx) {
|
|
21721
21763
|
let radio;
|
|
21722
21764
|
let current;
|
|
21723
21765
|
|
|
@@ -21767,12 +21809,12 @@ function create_if_block$d(ctx) {
|
|
|
21767
21809
|
};
|
|
21768
21810
|
}
|
|
21769
21811
|
|
|
21770
|
-
function create_fragment$
|
|
21812
|
+
function create_fragment$A(ctx) {
|
|
21771
21813
|
let current_block_type_index;
|
|
21772
21814
|
let if_block;
|
|
21773
21815
|
let if_block_anchor;
|
|
21774
21816
|
let current;
|
|
21775
|
-
const if_block_creators = [create_if_block$
|
|
21817
|
+
const if_block_creators = [create_if_block$e, create_else_block$5];
|
|
21776
21818
|
const if_blocks = [];
|
|
21777
21819
|
|
|
21778
21820
|
function select_block_type(ctx, dirty) {
|
|
@@ -21836,7 +21878,7 @@ function create_fragment$z(ctx) {
|
|
|
21836
21878
|
};
|
|
21837
21879
|
}
|
|
21838
21880
|
|
|
21839
|
-
function instance$
|
|
21881
|
+
function instance$B($$self, $$props, $$invalidate) {
|
|
21840
21882
|
const selfSubmitFunction = null;
|
|
21841
21883
|
const stepMetadata = null;
|
|
21842
21884
|
const style = {};
|
|
@@ -21926,7 +21968,7 @@ class Choice extends SvelteComponent {
|
|
|
21926
21968
|
constructor(options) {
|
|
21927
21969
|
super();
|
|
21928
21970
|
|
|
21929
|
-
init(this, options, instance$
|
|
21971
|
+
init(this, options, instance$B, create_fragment$A, safe_not_equal, {
|
|
21930
21972
|
selfSubmitFunction: 7,
|
|
21931
21973
|
stepMetadata: 8,
|
|
21932
21974
|
style: 9,
|
|
@@ -21950,7 +21992,7 @@ class Choice extends SvelteComponent {
|
|
|
21950
21992
|
|
|
21951
21993
|
/* src/lib/components/primitives/grid/grid.svelte generated by Svelte v3.55.1 */
|
|
21952
21994
|
|
|
21953
|
-
function create_fragment$
|
|
21995
|
+
function create_fragment$z(ctx) {
|
|
21954
21996
|
let div;
|
|
21955
21997
|
let div_class_value;
|
|
21956
21998
|
let current;
|
|
@@ -22026,7 +22068,7 @@ function generateClassString(...args) {
|
|
|
22026
22068
|
);
|
|
22027
22069
|
}
|
|
22028
22070
|
|
|
22029
|
-
function instance$
|
|
22071
|
+
function instance$A($$self, $$props, $$invalidate) {
|
|
22030
22072
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
22031
22073
|
let { num = 2 } = $$props;
|
|
22032
22074
|
|
|
@@ -22041,79 +22083,33 @@ function instance$z($$self, $$props, $$invalidate) {
|
|
|
22041
22083
|
class Grid extends SvelteComponent {
|
|
22042
22084
|
constructor(options) {
|
|
22043
22085
|
super();
|
|
22044
|
-
init(this, options, instance$
|
|
22086
|
+
init(this, options, instance$A, create_fragment$z, safe_not_equal, { num: 0 });
|
|
22045
22087
|
}
|
|
22046
22088
|
}
|
|
22047
22089
|
|
|
22048
22090
|
/* src/lib/journey/callbacks/confirmation/confirmation.svelte generated by Svelte v3.55.1 */
|
|
22049
22091
|
|
|
22050
|
-
function get_each_context$
|
|
22092
|
+
function get_each_context$6(ctx, list, i) {
|
|
22051
22093
|
const child_ctx = ctx.slice();
|
|
22052
22094
|
child_ctx[15] = list[i];
|
|
22053
22095
|
return child_ctx;
|
|
22054
22096
|
}
|
|
22055
22097
|
|
|
22056
|
-
// (
|
|
22057
|
-
function
|
|
22058
|
-
let grid;
|
|
22059
|
-
let current;
|
|
22060
|
-
|
|
22061
|
-
grid = new Grid({
|
|
22062
|
-
props: {
|
|
22063
|
-
num: /*options*/ ctx[3].length,
|
|
22064
|
-
$$slots: { default: [create_default_slot_1$9] },
|
|
22065
|
-
$$scope: { ctx }
|
|
22066
|
-
}
|
|
22067
|
-
});
|
|
22068
|
-
|
|
22069
|
-
return {
|
|
22070
|
-
c() {
|
|
22071
|
-
create_component(grid.$$.fragment);
|
|
22072
|
-
},
|
|
22073
|
-
m(target, anchor) {
|
|
22074
|
-
mount_component(grid, target, anchor);
|
|
22075
|
-
current = true;
|
|
22076
|
-
},
|
|
22077
|
-
p(ctx, dirty) {
|
|
22078
|
-
const grid_changes = {};
|
|
22079
|
-
if (dirty & /*options*/ 8) grid_changes.num = /*options*/ ctx[3].length;
|
|
22080
|
-
|
|
22081
|
-
if (dirty & /*$$scope, options, defaultChoice, buttonStyle*/ 262200) {
|
|
22082
|
-
grid_changes.$$scope = { dirty, ctx };
|
|
22083
|
-
}
|
|
22084
|
-
|
|
22085
|
-
grid.$set(grid_changes);
|
|
22086
|
-
},
|
|
22087
|
-
i(local) {
|
|
22088
|
-
if (current) return;
|
|
22089
|
-
transition_in(grid.$$.fragment, local);
|
|
22090
|
-
current = true;
|
|
22091
|
-
},
|
|
22092
|
-
o(local) {
|
|
22093
|
-
transition_out(grid.$$.fragment, local);
|
|
22094
|
-
current = false;
|
|
22095
|
-
},
|
|
22096
|
-
d(detaching) {
|
|
22097
|
-
destroy_component(grid, detaching);
|
|
22098
|
-
}
|
|
22099
|
-
};
|
|
22100
|
-
}
|
|
22101
|
-
|
|
22102
|
-
// (95:0) {#if !stepMetadata?.derived.isStepSelfSubmittable}
|
|
22103
|
-
function create_if_block$c(ctx) {
|
|
22098
|
+
// (96:0) {#if stepMetadata?.platform?.stageName !== 'OneTimePassword'}
|
|
22099
|
+
function create_if_block$d(ctx) {
|
|
22104
22100
|
let current_block_type_index;
|
|
22105
22101
|
let if_block;
|
|
22106
22102
|
let if_block_anchor;
|
|
22107
22103
|
let current;
|
|
22108
|
-
const if_block_creators = [create_if_block_1$
|
|
22104
|
+
const if_block_creators = [create_if_block_1$9, create_else_block_1];
|
|
22109
22105
|
const if_blocks = [];
|
|
22110
22106
|
|
|
22111
|
-
function
|
|
22112
|
-
if (
|
|
22107
|
+
function select_block_type(ctx, dirty) {
|
|
22108
|
+
if (!/*stepMetadata*/ ctx[1]?.derived.isStepSelfSubmittable) return 0;
|
|
22113
22109
|
return 1;
|
|
22114
22110
|
}
|
|
22115
22111
|
|
|
22116
|
-
current_block_type_index =
|
|
22112
|
+
current_block_type_index = select_block_type(ctx);
|
|
22117
22113
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
22118
22114
|
|
|
22119
22115
|
return {
|
|
@@ -22128,7 +22124,7 @@ function create_if_block$c(ctx) {
|
|
|
22128
22124
|
},
|
|
22129
22125
|
p(ctx, dirty) {
|
|
22130
22126
|
let previous_block_index = current_block_type_index;
|
|
22131
|
-
current_block_type_index =
|
|
22127
|
+
current_block_type_index = select_block_type(ctx);
|
|
22132
22128
|
|
|
22133
22129
|
if (current_block_type_index === previous_block_index) {
|
|
22134
22130
|
if_blocks[current_block_type_index].p(ctx, dirty);
|
|
@@ -22169,11 +22165,127 @@ function create_if_block$c(ctx) {
|
|
|
22169
22165
|
};
|
|
22170
22166
|
}
|
|
22171
22167
|
|
|
22172
|
-
// (
|
|
22173
|
-
function
|
|
22174
|
-
let
|
|
22175
|
-
let
|
|
22176
|
-
|
|
22168
|
+
// (118:2) {:else}
|
|
22169
|
+
function create_else_block_1(ctx) {
|
|
22170
|
+
let grid;
|
|
22171
|
+
let current;
|
|
22172
|
+
|
|
22173
|
+
grid = new Grid({
|
|
22174
|
+
props: {
|
|
22175
|
+
num: /*options*/ ctx[4].length,
|
|
22176
|
+
$$slots: { default: [create_default_slot_1$a] },
|
|
22177
|
+
$$scope: { ctx }
|
|
22178
|
+
}
|
|
22179
|
+
});
|
|
22180
|
+
|
|
22181
|
+
return {
|
|
22182
|
+
c() {
|
|
22183
|
+
create_component(grid.$$.fragment);
|
|
22184
|
+
},
|
|
22185
|
+
m(target, anchor) {
|
|
22186
|
+
mount_component(grid, target, anchor);
|
|
22187
|
+
current = true;
|
|
22188
|
+
},
|
|
22189
|
+
p(ctx, dirty) {
|
|
22190
|
+
const grid_changes = {};
|
|
22191
|
+
if (dirty & /*options*/ 16) grid_changes.num = /*options*/ ctx[4].length;
|
|
22192
|
+
|
|
22193
|
+
if (dirty & /*$$scope, options, defaultChoice, buttonStyle*/ 262196) {
|
|
22194
|
+
grid_changes.$$scope = { dirty, ctx };
|
|
22195
|
+
}
|
|
22196
|
+
|
|
22197
|
+
grid.$set(grid_changes);
|
|
22198
|
+
},
|
|
22199
|
+
i(local) {
|
|
22200
|
+
if (current) return;
|
|
22201
|
+
transition_in(grid.$$.fragment, local);
|
|
22202
|
+
current = true;
|
|
22203
|
+
},
|
|
22204
|
+
o(local) {
|
|
22205
|
+
transition_out(grid.$$.fragment, local);
|
|
22206
|
+
current = false;
|
|
22207
|
+
},
|
|
22208
|
+
d(detaching) {
|
|
22209
|
+
destroy_component(grid, detaching);
|
|
22210
|
+
}
|
|
22211
|
+
};
|
|
22212
|
+
}
|
|
22213
|
+
|
|
22214
|
+
// (97:2) {#if !stepMetadata?.derived.isStepSelfSubmittable}
|
|
22215
|
+
function create_if_block_1$9(ctx) {
|
|
22216
|
+
let current_block_type_index;
|
|
22217
|
+
let if_block;
|
|
22218
|
+
let if_block_anchor;
|
|
22219
|
+
let current;
|
|
22220
|
+
const if_block_creators = [create_if_block_2$8, create_else_block$4];
|
|
22221
|
+
const if_blocks = [];
|
|
22222
|
+
|
|
22223
|
+
function select_block_type_1(ctx, dirty) {
|
|
22224
|
+
if (/*options*/ ctx[4].length > 1) return 0;
|
|
22225
|
+
return 1;
|
|
22226
|
+
}
|
|
22227
|
+
|
|
22228
|
+
current_block_type_index = select_block_type_1(ctx);
|
|
22229
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
22230
|
+
|
|
22231
|
+
return {
|
|
22232
|
+
c() {
|
|
22233
|
+
if_block.c();
|
|
22234
|
+
if_block_anchor = empty();
|
|
22235
|
+
},
|
|
22236
|
+
m(target, anchor) {
|
|
22237
|
+
if_blocks[current_block_type_index].m(target, anchor);
|
|
22238
|
+
insert(target, if_block_anchor, anchor);
|
|
22239
|
+
current = true;
|
|
22240
|
+
},
|
|
22241
|
+
p(ctx, dirty) {
|
|
22242
|
+
let previous_block_index = current_block_type_index;
|
|
22243
|
+
current_block_type_index = select_block_type_1(ctx);
|
|
22244
|
+
|
|
22245
|
+
if (current_block_type_index === previous_block_index) {
|
|
22246
|
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
|
22247
|
+
} else {
|
|
22248
|
+
group_outros();
|
|
22249
|
+
|
|
22250
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
22251
|
+
if_blocks[previous_block_index] = null;
|
|
22252
|
+
});
|
|
22253
|
+
|
|
22254
|
+
check_outros();
|
|
22255
|
+
if_block = if_blocks[current_block_type_index];
|
|
22256
|
+
|
|
22257
|
+
if (!if_block) {
|
|
22258
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
22259
|
+
if_block.c();
|
|
22260
|
+
} else {
|
|
22261
|
+
if_block.p(ctx, dirty);
|
|
22262
|
+
}
|
|
22263
|
+
|
|
22264
|
+
transition_in(if_block, 1);
|
|
22265
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
22266
|
+
}
|
|
22267
|
+
},
|
|
22268
|
+
i(local) {
|
|
22269
|
+
if (current) return;
|
|
22270
|
+
transition_in(if_block);
|
|
22271
|
+
current = true;
|
|
22272
|
+
},
|
|
22273
|
+
o(local) {
|
|
22274
|
+
transition_out(if_block);
|
|
22275
|
+
current = false;
|
|
22276
|
+
},
|
|
22277
|
+
d(detaching) {
|
|
22278
|
+
if_blocks[current_block_type_index].d(detaching);
|
|
22279
|
+
if (detaching) detach(if_block_anchor);
|
|
22280
|
+
}
|
|
22281
|
+
};
|
|
22282
|
+
}
|
|
22283
|
+
|
|
22284
|
+
// (121:8) <Button style={options.length > 1 && defaultChoice === Number(opt.value) ? 'primary' : buttonStyle} type="button" width="auto" onClick={() => setBtnValue(Number(opt.value))} >
|
|
22285
|
+
function create_default_slot_2$5(ctx) {
|
|
22286
|
+
let t0_value = /*opt*/ ctx[15].text + "";
|
|
22287
|
+
let t0;
|
|
22288
|
+
let t1;
|
|
22177
22289
|
|
|
22178
22290
|
return {
|
|
22179
22291
|
c() {
|
|
@@ -22185,7 +22297,7 @@ function create_default_slot_2$4(ctx) {
|
|
|
22185
22297
|
insert(target, t1, anchor);
|
|
22186
22298
|
},
|
|
22187
22299
|
p(ctx, dirty) {
|
|
22188
|
-
if (dirty & /*options*/
|
|
22300
|
+
if (dirty & /*options*/ 16 && t0_value !== (t0_value = /*opt*/ ctx[15].text + "")) set_data(t0, t0_value);
|
|
22189
22301
|
},
|
|
22190
22302
|
d(detaching) {
|
|
22191
22303
|
if (detaching) detach(t0);
|
|
@@ -22194,8 +22306,8 @@ function create_default_slot_2$4(ctx) {
|
|
|
22194
22306
|
};
|
|
22195
22307
|
}
|
|
22196
22308
|
|
|
22197
|
-
// (
|
|
22198
|
-
function create_each_block$
|
|
22309
|
+
// (120:6) {#each options as opt}
|
|
22310
|
+
function create_each_block$6(ctx) {
|
|
22199
22311
|
let button;
|
|
22200
22312
|
let current;
|
|
22201
22313
|
|
|
@@ -22205,13 +22317,13 @@ function create_each_block$5(ctx) {
|
|
|
22205
22317
|
|
|
22206
22318
|
button = new Button({
|
|
22207
22319
|
props: {
|
|
22208
|
-
style: /*options*/ ctx[
|
|
22320
|
+
style: /*options*/ ctx[4].length > 1 && /*defaultChoice*/ ctx[2] === Number(/*opt*/ ctx[15].value)
|
|
22209
22321
|
? 'primary'
|
|
22210
|
-
: /*buttonStyle*/ ctx[
|
|
22322
|
+
: /*buttonStyle*/ ctx[5],
|
|
22211
22323
|
type: "button",
|
|
22212
22324
|
width: "auto",
|
|
22213
22325
|
onClick: func,
|
|
22214
|
-
$$slots: { default: [create_default_slot_2$
|
|
22326
|
+
$$slots: { default: [create_default_slot_2$5] },
|
|
22215
22327
|
$$scope: { ctx }
|
|
22216
22328
|
}
|
|
22217
22329
|
});
|
|
@@ -22228,13 +22340,13 @@ function create_each_block$5(ctx) {
|
|
|
22228
22340
|
ctx = new_ctx;
|
|
22229
22341
|
const button_changes = {};
|
|
22230
22342
|
|
|
22231
|
-
if (dirty & /*options, defaultChoice, buttonStyle*/
|
|
22343
|
+
if (dirty & /*options, defaultChoice, buttonStyle*/ 52) button_changes.style = /*options*/ ctx[4].length > 1 && /*defaultChoice*/ ctx[2] === Number(/*opt*/ ctx[15].value)
|
|
22232
22344
|
? 'primary'
|
|
22233
|
-
: /*buttonStyle*/ ctx[
|
|
22345
|
+
: /*buttonStyle*/ ctx[5];
|
|
22234
22346
|
|
|
22235
|
-
if (dirty & /*options*/
|
|
22347
|
+
if (dirty & /*options*/ 16) button_changes.onClick = func;
|
|
22236
22348
|
|
|
22237
|
-
if (dirty & /*$$scope, options*/
|
|
22349
|
+
if (dirty & /*$$scope, options*/ 262160) {
|
|
22238
22350
|
button_changes.$$scope = { dirty, ctx };
|
|
22239
22351
|
}
|
|
22240
22352
|
|
|
@@ -22255,15 +22367,15 @@ function create_each_block$5(ctx) {
|
|
|
22255
22367
|
};
|
|
22256
22368
|
}
|
|
22257
22369
|
|
|
22258
|
-
// (
|
|
22259
|
-
function create_default_slot_1$
|
|
22370
|
+
// (119:4) <Grid num={options.length}>
|
|
22371
|
+
function create_default_slot_1$a(ctx) {
|
|
22260
22372
|
let each_1_anchor;
|
|
22261
22373
|
let current;
|
|
22262
|
-
let each_value = /*options*/ ctx[
|
|
22374
|
+
let each_value = /*options*/ ctx[4];
|
|
22263
22375
|
let each_blocks = [];
|
|
22264
22376
|
|
|
22265
22377
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
22266
|
-
each_blocks[i] = create_each_block$
|
|
22378
|
+
each_blocks[i] = create_each_block$6(get_each_context$6(ctx, each_value, i));
|
|
22267
22379
|
}
|
|
22268
22380
|
|
|
22269
22381
|
const out = i => transition_out(each_blocks[i], 1, 1, () => {
|
|
@@ -22287,18 +22399,18 @@ function create_default_slot_1$9(ctx) {
|
|
|
22287
22399
|
current = true;
|
|
22288
22400
|
},
|
|
22289
22401
|
p(ctx, dirty) {
|
|
22290
|
-
if (dirty & /*options, defaultChoice, Number, buttonStyle, setBtnValue*/
|
|
22291
|
-
each_value = /*options*/ ctx[
|
|
22402
|
+
if (dirty & /*options, defaultChoice, Number, buttonStyle, setBtnValue*/ 308) {
|
|
22403
|
+
each_value = /*options*/ ctx[4];
|
|
22292
22404
|
let i;
|
|
22293
22405
|
|
|
22294
22406
|
for (i = 0; i < each_value.length; i += 1) {
|
|
22295
|
-
const child_ctx = get_each_context$
|
|
22407
|
+
const child_ctx = get_each_context$6(ctx, each_value, i);
|
|
22296
22408
|
|
|
22297
22409
|
if (each_blocks[i]) {
|
|
22298
22410
|
each_blocks[i].p(child_ctx, dirty);
|
|
22299
22411
|
transition_in(each_blocks[i], 1);
|
|
22300
22412
|
} else {
|
|
22301
|
-
each_blocks[i] = create_each_block$
|
|
22413
|
+
each_blocks[i] = create_each_block$6(child_ctx);
|
|
22302
22414
|
each_blocks[i].c();
|
|
22303
22415
|
transition_in(each_blocks[i], 1);
|
|
22304
22416
|
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
|
@@ -22339,7 +22451,7 @@ function create_default_slot_1$9(ctx) {
|
|
|
22339
22451
|
};
|
|
22340
22452
|
}
|
|
22341
22453
|
|
|
22342
|
-
// (
|
|
22454
|
+
// (107:4) {:else}
|
|
22343
22455
|
function create_else_block$4(ctx) {
|
|
22344
22456
|
let checkbox;
|
|
22345
22457
|
let current;
|
|
@@ -22351,7 +22463,7 @@ function create_else_block$4(ctx) {
|
|
|
22351
22463
|
key: /*inputName*/ ctx[6],
|
|
22352
22464
|
onChange: /*setCheckboxValue*/ ctx[10],
|
|
22353
22465
|
value: false,
|
|
22354
|
-
$$slots: { default: [create_default_slot$
|
|
22466
|
+
$$slots: { default: [create_default_slot$h] },
|
|
22355
22467
|
$$scope: { ctx }
|
|
22356
22468
|
}
|
|
22357
22469
|
});
|
|
@@ -22369,7 +22481,7 @@ function create_else_block$4(ctx) {
|
|
|
22369
22481
|
if (dirty & /*callbackMetadata*/ 1) checkbox_changes.isFirstInvalidInput = /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false;
|
|
22370
22482
|
if (dirty & /*inputName*/ 64) checkbox_changes.key = /*inputName*/ ctx[6];
|
|
22371
22483
|
|
|
22372
|
-
if (dirty & /*$$scope, options*/
|
|
22484
|
+
if (dirty & /*$$scope, options*/ 262160) {
|
|
22373
22485
|
checkbox_changes.$$scope = { dirty, ctx };
|
|
22374
22486
|
}
|
|
22375
22487
|
|
|
@@ -22390,8 +22502,8 @@ function create_else_block$4(ctx) {
|
|
|
22390
22502
|
};
|
|
22391
22503
|
}
|
|
22392
22504
|
|
|
22393
|
-
// (
|
|
22394
|
-
function
|
|
22505
|
+
// (98:4) {#if options.length > 1}
|
|
22506
|
+
function create_if_block_2$8(ctx) {
|
|
22395
22507
|
let select;
|
|
22396
22508
|
let current;
|
|
22397
22509
|
|
|
@@ -22400,9 +22512,9 @@ function create_if_block_1$8(ctx) {
|
|
|
22400
22512
|
isFirstInvalidInput: /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false,
|
|
22401
22513
|
isRequired: false,
|
|
22402
22514
|
key: /*inputName*/ ctx[6],
|
|
22403
|
-
label: /*label*/ ctx[
|
|
22515
|
+
label: /*label*/ ctx[3],
|
|
22404
22516
|
onChange: /*setOptionValue*/ ctx[9],
|
|
22405
|
-
options: /*options*/ ctx[
|
|
22517
|
+
options: /*options*/ ctx[4]
|
|
22406
22518
|
}
|
|
22407
22519
|
});
|
|
22408
22520
|
|
|
@@ -22418,8 +22530,8 @@ function create_if_block_1$8(ctx) {
|
|
|
22418
22530
|
const select_changes = {};
|
|
22419
22531
|
if (dirty & /*callbackMetadata*/ 1) select_changes.isFirstInvalidInput = /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false;
|
|
22420
22532
|
if (dirty & /*inputName*/ 64) select_changes.key = /*inputName*/ ctx[6];
|
|
22421
|
-
if (dirty & /*label*/
|
|
22422
|
-
if (dirty & /*options*/
|
|
22533
|
+
if (dirty & /*label*/ 8) select_changes.label = /*label*/ ctx[3];
|
|
22534
|
+
if (dirty & /*options*/ 16) select_changes.options = /*options*/ ctx[4];
|
|
22423
22535
|
select.$set(select_changes);
|
|
22424
22536
|
},
|
|
22425
22537
|
i(local) {
|
|
@@ -22437,9 +22549,9 @@ function create_if_block_1$8(ctx) {
|
|
|
22437
22549
|
};
|
|
22438
22550
|
}
|
|
22439
22551
|
|
|
22440
|
-
// (
|
|
22441
|
-
function create_default_slot$
|
|
22442
|
-
let t_value = /*options*/ ctx[
|
|
22552
|
+
// (108:6) <Checkbox isFirstInvalidInput={callbackMetadata?.derived.isFirstInvalidInput || false} isInvalid={false} key={inputName} onChange={setCheckboxValue} value={false} >
|
|
22553
|
+
function create_default_slot$h(ctx) {
|
|
22554
|
+
let t_value = /*options*/ ctx[4][0].text + "";
|
|
22443
22555
|
let t;
|
|
22444
22556
|
|
|
22445
22557
|
return {
|
|
@@ -22450,7 +22562,7 @@ function create_default_slot$g(ctx) {
|
|
|
22450
22562
|
insert(target, t, anchor);
|
|
22451
22563
|
},
|
|
22452
22564
|
p(ctx, dirty) {
|
|
22453
|
-
if (dirty & /*options*/
|
|
22565
|
+
if (dirty & /*options*/ 16 && t_value !== (t_value = /*options*/ ctx[4][0].text + "")) set_data(t, t_value);
|
|
22454
22566
|
},
|
|
22455
22567
|
d(detaching) {
|
|
22456
22568
|
if (detaching) detach(t);
|
|
@@ -22458,57 +22570,43 @@ function create_default_slot$g(ctx) {
|
|
|
22458
22570
|
};
|
|
22459
22571
|
}
|
|
22460
22572
|
|
|
22461
|
-
function create_fragment$
|
|
22462
|
-
let current_block_type_index;
|
|
22463
|
-
let if_block;
|
|
22573
|
+
function create_fragment$y(ctx) {
|
|
22464
22574
|
let if_block_anchor;
|
|
22465
22575
|
let current;
|
|
22466
|
-
|
|
22467
|
-
const if_blocks = [];
|
|
22468
|
-
|
|
22469
|
-
function select_block_type(ctx, dirty) {
|
|
22470
|
-
if (!/*stepMetadata*/ ctx[1]?.derived.isStepSelfSubmittable) return 0;
|
|
22471
|
-
return 1;
|
|
22472
|
-
}
|
|
22473
|
-
|
|
22474
|
-
current_block_type_index = select_block_type(ctx);
|
|
22475
|
-
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
22576
|
+
let if_block = /*stepMetadata*/ ctx[1]?.platform?.stageName !== 'OneTimePassword' && create_if_block$d(ctx);
|
|
22476
22577
|
|
|
22477
22578
|
return {
|
|
22478
22579
|
c() {
|
|
22479
|
-
if_block.c();
|
|
22580
|
+
if (if_block) if_block.c();
|
|
22480
22581
|
if_block_anchor = empty();
|
|
22481
22582
|
},
|
|
22482
22583
|
m(target, anchor) {
|
|
22483
|
-
|
|
22584
|
+
if (if_block) if_block.m(target, anchor);
|
|
22484
22585
|
insert(target, if_block_anchor, anchor);
|
|
22485
22586
|
current = true;
|
|
22486
22587
|
},
|
|
22487
22588
|
p(ctx, [dirty]) {
|
|
22488
|
-
|
|
22489
|
-
|
|
22589
|
+
if (/*stepMetadata*/ ctx[1]?.platform?.stageName !== 'OneTimePassword') {
|
|
22590
|
+
if (if_block) {
|
|
22591
|
+
if_block.p(ctx, dirty);
|
|
22490
22592
|
|
|
22491
|
-
|
|
22492
|
-
|
|
22493
|
-
|
|
22593
|
+
if (dirty & /*stepMetadata*/ 2) {
|
|
22594
|
+
transition_in(if_block, 1);
|
|
22595
|
+
}
|
|
22596
|
+
} else {
|
|
22597
|
+
if_block = create_if_block$d(ctx);
|
|
22598
|
+
if_block.c();
|
|
22599
|
+
transition_in(if_block, 1);
|
|
22600
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
22601
|
+
}
|
|
22602
|
+
} else if (if_block) {
|
|
22494
22603
|
group_outros();
|
|
22495
22604
|
|
|
22496
|
-
transition_out(
|
|
22497
|
-
|
|
22605
|
+
transition_out(if_block, 1, 1, () => {
|
|
22606
|
+
if_block = null;
|
|
22498
22607
|
});
|
|
22499
22608
|
|
|
22500
22609
|
check_outros();
|
|
22501
|
-
if_block = if_blocks[current_block_type_index];
|
|
22502
|
-
|
|
22503
|
-
if (!if_block) {
|
|
22504
|
-
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
22505
|
-
if_block.c();
|
|
22506
|
-
} else {
|
|
22507
|
-
if_block.p(ctx, dirty);
|
|
22508
|
-
}
|
|
22509
|
-
|
|
22510
|
-
transition_in(if_block, 1);
|
|
22511
|
-
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
22512
22610
|
}
|
|
22513
22611
|
},
|
|
22514
22612
|
i(local) {
|
|
@@ -22521,13 +22619,13 @@ function create_fragment$x(ctx) {
|
|
|
22521
22619
|
current = false;
|
|
22522
22620
|
},
|
|
22523
22621
|
d(detaching) {
|
|
22524
|
-
|
|
22622
|
+
if (if_block) if_block.d(detaching);
|
|
22525
22623
|
if (detaching) detach(if_block_anchor);
|
|
22526
22624
|
}
|
|
22527
22625
|
};
|
|
22528
22626
|
}
|
|
22529
22627
|
|
|
22530
|
-
function instance$
|
|
22628
|
+
function instance$z($$self, $$props, $$invalidate) {
|
|
22531
22629
|
const style = {};
|
|
22532
22630
|
let { callback } = $$props;
|
|
22533
22631
|
let { callbackMetadata } = $$props;
|
|
@@ -22595,14 +22693,6 @@ function instance$y($$self, $$props, $$invalidate) {
|
|
|
22595
22693
|
}
|
|
22596
22694
|
}
|
|
22597
22695
|
|
|
22598
|
-
if (callback.getInputValue() === 0) {
|
|
22599
|
-
/**
|
|
22600
|
-
* If input value is 0 (falsy value), then let's make sure it's set to the default value
|
|
22601
|
-
* There's a case when the input value is 100, and for that we leave it 100
|
|
22602
|
-
*/
|
|
22603
|
-
callback.setOptionIndex(defaultChoice);
|
|
22604
|
-
}
|
|
22605
|
-
|
|
22606
22696
|
const func = opt => setBtnValue(Number(opt.value));
|
|
22607
22697
|
|
|
22608
22698
|
$$self.$$set = $$props => {
|
|
@@ -22613,27 +22703,34 @@ function instance$y($$self, $$props, $$invalidate) {
|
|
|
22613
22703
|
};
|
|
22614
22704
|
|
|
22615
22705
|
$$self.$$.update = () => {
|
|
22616
|
-
if ($$self.$$.dirty & /*callback, callbackMetadata, options, stepMetadata, label*/
|
|
22706
|
+
if ($$self.$$.dirty & /*callback, callbackMetadata, options, defaultChoice, stepMetadata, label*/ 4127) {
|
|
22617
22707
|
// TODO: use selfSubmitFunction to communicate to step component that this callback is ready
|
|
22618
22708
|
{
|
|
22619
22709
|
$$invalidate(6, inputName = callback?.payload?.input?.[0].name || `confirmation-${callbackMetadata?.idx}`);
|
|
22620
|
-
$$invalidate(
|
|
22710
|
+
$$invalidate(4, options = callback.getOptions().map((option, index) => ({ value: `${index}`, text: option })));
|
|
22711
|
+
$$invalidate(2, defaultChoice = callback.getDefaultOption());
|
|
22712
|
+
$$invalidate(3, label = interpolate(textToKey('pleaseConfirm'), null, 'Please Confirm'));
|
|
22621
22713
|
|
|
22622
22714
|
if (callbackMetadata?.platform?.showOnlyPositiveAnswer) {
|
|
22623
|
-
// The positive option is always first in the options array
|
|
22624
|
-
$$invalidate(
|
|
22715
|
+
// The positive option is always first in the `options` array
|
|
22716
|
+
$$invalidate(4, options = options.slice(0, 1));
|
|
22625
22717
|
}
|
|
22626
22718
|
|
|
22627
|
-
|
|
22628
|
-
|
|
22719
|
+
if (callback.getInputValue() === 0) {
|
|
22720
|
+
/**
|
|
22721
|
+
* If input value is 0 (falsy value), then let's make sure it's set to the default value
|
|
22722
|
+
* There's a case when the input value is 100, and for that we leave it at 100
|
|
22723
|
+
*/
|
|
22724
|
+
callback.setOptionIndex(defaultChoice);
|
|
22725
|
+
}
|
|
22629
22726
|
|
|
22630
22727
|
if (!stepMetadata?.derived.isStepSelfSubmittable && options.length > 1) {
|
|
22631
|
-
// Since the user needs to confirm, add this
|
|
22728
|
+
// Since the user needs to confirm, add this empty `value` to force selection
|
|
22632
22729
|
options.unshift({ value: '', text: label });
|
|
22633
22730
|
} else if (options.length === 1) {
|
|
22634
|
-
$$invalidate(
|
|
22731
|
+
$$invalidate(5, buttonStyle = 'outline');
|
|
22635
22732
|
} else {
|
|
22636
|
-
$$invalidate(
|
|
22733
|
+
$$invalidate(5, buttonStyle = 'secondary');
|
|
22637
22734
|
}
|
|
22638
22735
|
}
|
|
22639
22736
|
}
|
|
@@ -22642,10 +22739,10 @@ function instance$y($$self, $$props, $$invalidate) {
|
|
|
22642
22739
|
return [
|
|
22643
22740
|
callbackMetadata,
|
|
22644
22741
|
stepMetadata,
|
|
22742
|
+
defaultChoice,
|
|
22645
22743
|
label,
|
|
22646
22744
|
options,
|
|
22647
22745
|
buttonStyle,
|
|
22648
|
-
defaultChoice,
|
|
22649
22746
|
inputName,
|
|
22650
22747
|
Checkbox,
|
|
22651
22748
|
setBtnValue,
|
|
@@ -22662,7 +22759,7 @@ class Confirmation extends SvelteComponent {
|
|
|
22662
22759
|
constructor(options) {
|
|
22663
22760
|
super();
|
|
22664
22761
|
|
|
22665
|
-
init(this, options, instance$
|
|
22762
|
+
init(this, options, instance$z, create_fragment$y, safe_not_equal, {
|
|
22666
22763
|
style: 11,
|
|
22667
22764
|
callback: 12,
|
|
22668
22765
|
callbackMetadata: 0,
|
|
@@ -22678,7 +22775,7 @@ class Confirmation extends SvelteComponent {
|
|
|
22678
22775
|
|
|
22679
22776
|
/* src/lib/journey/callbacks/hidden-value/hidden-value.svelte generated by Svelte v3.55.1 */
|
|
22680
22777
|
|
|
22681
|
-
function instance$
|
|
22778
|
+
function instance$y($$self, $$props, $$invalidate) {
|
|
22682
22779
|
const callbackMetadata = null;
|
|
22683
22780
|
const selfSubmitFunction = null;
|
|
22684
22781
|
const stepMetadata = null;
|
|
@@ -22691,7 +22788,7 @@ class Hidden_value extends SvelteComponent {
|
|
|
22691
22788
|
constructor(options) {
|
|
22692
22789
|
super();
|
|
22693
22790
|
|
|
22694
|
-
init(this, options, instance$
|
|
22791
|
+
init(this, options, instance$y, null, safe_not_equal, {
|
|
22695
22792
|
callbackMetadata: 0,
|
|
22696
22793
|
selfSubmitFunction: 1,
|
|
22697
22794
|
stepMetadata: 2,
|
|
@@ -22731,7 +22828,7 @@ function create_if_block_7$1(ctx) {
|
|
|
22731
22828
|
props: {
|
|
22732
22829
|
key: /*key*/ ctx[3],
|
|
22733
22830
|
classes: `${/*labelClasses*/ ctx[5]} tw_w-full tw_ml-1`,
|
|
22734
|
-
$$slots: { default: [create_default_slot_1$
|
|
22831
|
+
$$slots: { default: [create_default_slot_1$9] },
|
|
22735
22832
|
$$scope: { ctx }
|
|
22736
22833
|
}
|
|
22737
22834
|
});
|
|
@@ -22771,7 +22868,7 @@ function create_if_block_7$1(ctx) {
|
|
|
22771
22868
|
}
|
|
22772
22869
|
|
|
22773
22870
|
// (25:2) <Label {key} classes={`${labelClasses} tw_w-full tw_ml-1`}>
|
|
22774
|
-
function create_default_slot_1$
|
|
22871
|
+
function create_default_slot_1$9(ctx) {
|
|
22775
22872
|
let t;
|
|
22776
22873
|
|
|
22777
22874
|
return {
|
|
@@ -23111,7 +23208,7 @@ function create_if_block_3$3(ctx) {
|
|
|
23111
23208
|
}
|
|
23112
23209
|
|
|
23113
23210
|
// (97:0) {#if type === 'phone'}
|
|
23114
|
-
function create_if_block_2$
|
|
23211
|
+
function create_if_block_2$7(ctx) {
|
|
23115
23212
|
let input;
|
|
23116
23213
|
let input_aria_describedby_value;
|
|
23117
23214
|
let input_class_value;
|
|
@@ -23191,7 +23288,7 @@ function create_if_block_2$6(ctx) {
|
|
|
23191
23288
|
}
|
|
23192
23289
|
|
|
23193
23290
|
// (113:0) {#if type === 'text'}
|
|
23194
|
-
function create_if_block_1$
|
|
23291
|
+
function create_if_block_1$8(ctx) {
|
|
23195
23292
|
let input;
|
|
23196
23293
|
let input_aria_describedby_value;
|
|
23197
23294
|
let input_class_value;
|
|
@@ -23271,7 +23368,7 @@ function create_if_block_1$7(ctx) {
|
|
|
23271
23368
|
}
|
|
23272
23369
|
|
|
23273
23370
|
// (129:0) {#if labelOrder === 'last'}
|
|
23274
|
-
function create_if_block$
|
|
23371
|
+
function create_if_block$c(ctx) {
|
|
23275
23372
|
let label_1;
|
|
23276
23373
|
let current;
|
|
23277
23374
|
|
|
@@ -23279,7 +23376,7 @@ function create_if_block$b(ctx) {
|
|
|
23279
23376
|
props: {
|
|
23280
23377
|
key: /*key*/ ctx[3],
|
|
23281
23378
|
classes: `${/*labelClasses*/ ctx[5]}`,
|
|
23282
|
-
$$slots: { default: [create_default_slot$
|
|
23379
|
+
$$slots: { default: [create_default_slot$g] },
|
|
23283
23380
|
$$scope: { ctx }
|
|
23284
23381
|
}
|
|
23285
23382
|
});
|
|
@@ -23319,7 +23416,7 @@ function create_if_block$b(ctx) {
|
|
|
23319
23416
|
}
|
|
23320
23417
|
|
|
23321
23418
|
// (130:2) <Label {key} classes={`${labelClasses}`}>
|
|
23322
|
-
function create_default_slot$
|
|
23419
|
+
function create_default_slot$g(ctx) {
|
|
23323
23420
|
let t;
|
|
23324
23421
|
|
|
23325
23422
|
return {
|
|
@@ -23338,7 +23435,7 @@ function create_default_slot$f(ctx) {
|
|
|
23338
23435
|
};
|
|
23339
23436
|
}
|
|
23340
23437
|
|
|
23341
|
-
function create_fragment$
|
|
23438
|
+
function create_fragment$x(ctx) {
|
|
23342
23439
|
let t0;
|
|
23343
23440
|
let t1;
|
|
23344
23441
|
let t2;
|
|
@@ -23353,9 +23450,9 @@ function create_fragment$w(ctx) {
|
|
|
23353
23450
|
let if_block2 = /*type*/ ctx[11] === 'email' && create_if_block_5$1(ctx);
|
|
23354
23451
|
let if_block3 = /*type*/ ctx[11] === 'number' && create_if_block_4$1(ctx);
|
|
23355
23452
|
let if_block4 = /*type*/ ctx[11] === 'password' && create_if_block_3$3(ctx);
|
|
23356
|
-
let if_block5 = /*type*/ ctx[11] === 'phone' && create_if_block_2$
|
|
23357
|
-
let if_block6 = /*type*/ ctx[11] === 'text' && create_if_block_1$
|
|
23358
|
-
let if_block7 = /*labelOrder*/ ctx[6] === 'last' && create_if_block$
|
|
23453
|
+
let if_block5 = /*type*/ ctx[11] === 'phone' && create_if_block_2$7(ctx);
|
|
23454
|
+
let if_block6 = /*type*/ ctx[11] === 'text' && create_if_block_1$8(ctx);
|
|
23455
|
+
let if_block7 = /*labelOrder*/ ctx[6] === 'last' && create_if_block$c(ctx);
|
|
23359
23456
|
|
|
23360
23457
|
return {
|
|
23361
23458
|
c() {
|
|
@@ -23475,7 +23572,7 @@ function create_fragment$w(ctx) {
|
|
|
23475
23572
|
if (if_block5) {
|
|
23476
23573
|
if_block5.p(ctx, dirty);
|
|
23477
23574
|
} else {
|
|
23478
|
-
if_block5 = create_if_block_2$
|
|
23575
|
+
if_block5 = create_if_block_2$7(ctx);
|
|
23479
23576
|
if_block5.c();
|
|
23480
23577
|
if_block5.m(t5.parentNode, t5);
|
|
23481
23578
|
}
|
|
@@ -23488,7 +23585,7 @@ function create_fragment$w(ctx) {
|
|
|
23488
23585
|
if (if_block6) {
|
|
23489
23586
|
if_block6.p(ctx, dirty);
|
|
23490
23587
|
} else {
|
|
23491
|
-
if_block6 = create_if_block_1$
|
|
23588
|
+
if_block6 = create_if_block_1$8(ctx);
|
|
23492
23589
|
if_block6.c();
|
|
23493
23590
|
if_block6.m(t6.parentNode, t6);
|
|
23494
23591
|
}
|
|
@@ -23505,7 +23602,7 @@ function create_fragment$w(ctx) {
|
|
|
23505
23602
|
transition_in(if_block7, 1);
|
|
23506
23603
|
}
|
|
23507
23604
|
} else {
|
|
23508
|
-
if_block7 = create_if_block$
|
|
23605
|
+
if_block7 = create_if_block$c(ctx);
|
|
23509
23606
|
if_block7.c();
|
|
23510
23607
|
transition_in(if_block7, 1);
|
|
23511
23608
|
if_block7.m(if_block7_anchor.parentNode, if_block7_anchor);
|
|
@@ -23552,7 +23649,7 @@ function create_fragment$w(ctx) {
|
|
|
23552
23649
|
};
|
|
23553
23650
|
}
|
|
23554
23651
|
|
|
23555
|
-
function instance$
|
|
23652
|
+
function instance$x($$self, $$props, $$invalidate) {
|
|
23556
23653
|
let { forceValidityFailure = false } = $$props;
|
|
23557
23654
|
let { isFirstInvalidInput } = $$props;
|
|
23558
23655
|
let { inputClasses = '' } = $$props;
|
|
@@ -23696,7 +23793,7 @@ class Input extends SvelteComponent {
|
|
|
23696
23793
|
constructor(options) {
|
|
23697
23794
|
super();
|
|
23698
23795
|
|
|
23699
|
-
init(this, options, instance$
|
|
23796
|
+
init(this, options, instance$x, create_fragment$x, safe_not_equal, {
|
|
23700
23797
|
forceValidityFailure: 1,
|
|
23701
23798
|
isFirstInvalidInput: 13,
|
|
23702
23799
|
inputClasses: 2,
|
|
@@ -23718,7 +23815,7 @@ class Input extends SvelteComponent {
|
|
|
23718
23815
|
const get_input_button_slot_changes$1 = dirty => ({});
|
|
23719
23816
|
const get_input_button_slot_context$1 = ctx => ({});
|
|
23720
23817
|
|
|
23721
|
-
function create_fragment$
|
|
23818
|
+
function create_fragment$w(ctx) {
|
|
23722
23819
|
let div1;
|
|
23723
23820
|
let input;
|
|
23724
23821
|
let updating_value;
|
|
@@ -23893,7 +23990,7 @@ function create_fragment$v(ctx) {
|
|
|
23893
23990
|
};
|
|
23894
23991
|
}
|
|
23895
23992
|
|
|
23896
|
-
function instance$
|
|
23993
|
+
function instance$w($$self, $$props, $$invalidate) {
|
|
23897
23994
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
23898
23995
|
let { checkValidity = null } = $$props;
|
|
23899
23996
|
let { forceValidityFailure = false } = $$props;
|
|
@@ -23964,7 +24061,7 @@ class Floating_label extends SvelteComponent {
|
|
|
23964
24061
|
constructor(options) {
|
|
23965
24062
|
super();
|
|
23966
24063
|
|
|
23967
|
-
init(this, options, instance$
|
|
24064
|
+
init(this, options, instance$w, create_fragment$w, safe_not_equal, {
|
|
23968
24065
|
checkValidity: 12,
|
|
23969
24066
|
forceValidityFailure: 2,
|
|
23970
24067
|
message: 3,
|
|
@@ -23986,7 +24083,7 @@ class Floating_label extends SvelteComponent {
|
|
|
23986
24083
|
const get_input_button_slot_changes = dirty => ({});
|
|
23987
24084
|
const get_input_button_slot_context = ctx => ({});
|
|
23988
24085
|
|
|
23989
|
-
function create_fragment$
|
|
24086
|
+
function create_fragment$v(ctx) {
|
|
23990
24087
|
let div1;
|
|
23991
24088
|
let input;
|
|
23992
24089
|
let updating_value;
|
|
@@ -24165,7 +24262,7 @@ function create_fragment$u(ctx) {
|
|
|
24165
24262
|
};
|
|
24166
24263
|
}
|
|
24167
24264
|
|
|
24168
|
-
function instance$
|
|
24265
|
+
function instance$v($$self, $$props, $$invalidate) {
|
|
24169
24266
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
24170
24267
|
let { checkValidity = null } = $$props;
|
|
24171
24268
|
let { forceValidityFailure = false } = $$props;
|
|
@@ -24239,7 +24336,7 @@ class Stacked_label extends SvelteComponent {
|
|
|
24239
24336
|
constructor(options) {
|
|
24240
24337
|
super();
|
|
24241
24338
|
|
|
24242
|
-
init(this, options, instance$
|
|
24339
|
+
init(this, options, instance$v, create_fragment$v, safe_not_equal, {
|
|
24243
24340
|
checkValidity: 13,
|
|
24244
24341
|
forceValidityFailure: 2,
|
|
24245
24342
|
isFirstInvalidInput: 3,
|
|
@@ -24260,7 +24357,7 @@ class Stacked_label extends SvelteComponent {
|
|
|
24260
24357
|
|
|
24261
24358
|
/* src/lib/components/icons/lock-icon.svelte generated by Svelte v3.55.1 */
|
|
24262
24359
|
|
|
24263
|
-
function create_fragment$
|
|
24360
|
+
function create_fragment$u(ctx) {
|
|
24264
24361
|
let svg;
|
|
24265
24362
|
let path0;
|
|
24266
24363
|
let path1;
|
|
@@ -24341,7 +24438,7 @@ function create_fragment$t(ctx) {
|
|
|
24341
24438
|
};
|
|
24342
24439
|
}
|
|
24343
24440
|
|
|
24344
|
-
function instance$
|
|
24441
|
+
function instance$u($$self, $$props, $$invalidate) {
|
|
24345
24442
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
24346
24443
|
let { classes = '' } = $$props;
|
|
24347
24444
|
let { size = '24px' } = $$props;
|
|
@@ -24358,13 +24455,13 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
|
24358
24455
|
class Lock_icon extends SvelteComponent {
|
|
24359
24456
|
constructor(options) {
|
|
24360
24457
|
super();
|
|
24361
|
-
init(this, options, instance$
|
|
24458
|
+
init(this, options, instance$u, create_fragment$u, safe_not_equal, { classes: 0, size: 1 });
|
|
24362
24459
|
}
|
|
24363
24460
|
}
|
|
24364
24461
|
|
|
24365
24462
|
/* src/lib/journey/callbacks/kba/kba-create.svelte generated by Svelte v3.55.1 */
|
|
24366
24463
|
|
|
24367
|
-
function create_if_block$
|
|
24464
|
+
function create_if_block$b(ctx) {
|
|
24368
24465
|
let input;
|
|
24369
24466
|
let current;
|
|
24370
24467
|
|
|
@@ -24408,7 +24505,7 @@ function create_if_block$a(ctx) {
|
|
|
24408
24505
|
};
|
|
24409
24506
|
}
|
|
24410
24507
|
|
|
24411
|
-
function create_fragment$
|
|
24508
|
+
function create_fragment$t(ctx) {
|
|
24412
24509
|
let fieldset;
|
|
24413
24510
|
let legend;
|
|
24414
24511
|
let t0;
|
|
@@ -24443,7 +24540,7 @@ function create_fragment$s(ctx) {
|
|
|
24443
24540
|
}
|
|
24444
24541
|
});
|
|
24445
24542
|
|
|
24446
|
-
let if_block = /*displayCustomQuestionInput*/ ctx[3] && create_if_block$
|
|
24543
|
+
let if_block = /*displayCustomQuestionInput*/ ctx[3] && create_if_block$b(ctx);
|
|
24447
24544
|
|
|
24448
24545
|
function input_value_binding(value) {
|
|
24449
24546
|
/*input_value_binding*/ ctx[20](value);
|
|
@@ -24521,7 +24618,7 @@ function create_fragment$s(ctx) {
|
|
|
24521
24618
|
transition_in(if_block, 1);
|
|
24522
24619
|
}
|
|
24523
24620
|
} else {
|
|
24524
|
-
if_block = create_if_block$
|
|
24621
|
+
if_block = create_if_block$b(ctx);
|
|
24525
24622
|
if_block.c();
|
|
24526
24623
|
transition_in(if_block, 1);
|
|
24527
24624
|
if_block.m(fieldset, t6);
|
|
@@ -24579,7 +24676,7 @@ function create_fragment$s(ctx) {
|
|
|
24579
24676
|
};
|
|
24580
24677
|
}
|
|
24581
24678
|
|
|
24582
|
-
function instance$
|
|
24679
|
+
function instance$t($$self, $$props, $$invalidate) {
|
|
24583
24680
|
let $value;
|
|
24584
24681
|
const selfSubmitFunction = null;
|
|
24585
24682
|
const stepMetadata = null;
|
|
@@ -24758,7 +24855,7 @@ class Kba_create extends SvelteComponent {
|
|
|
24758
24855
|
constructor(options) {
|
|
24759
24856
|
super();
|
|
24760
24857
|
|
|
24761
|
-
init(this, options, instance$
|
|
24858
|
+
init(this, options, instance$t, create_fragment$t, safe_not_equal, {
|
|
24762
24859
|
selfSubmitFunction: 12,
|
|
24763
24860
|
stepMetadata: 13,
|
|
24764
24861
|
callback: 14,
|
|
@@ -24778,7 +24875,7 @@ class Kba_create extends SvelteComponent {
|
|
|
24778
24875
|
|
|
24779
24876
|
/* src/lib/journey/callbacks/username/name.svelte generated by Svelte v3.55.1 */
|
|
24780
24877
|
|
|
24781
|
-
function create_fragment$
|
|
24878
|
+
function create_fragment$s(ctx) {
|
|
24782
24879
|
let input;
|
|
24783
24880
|
let current;
|
|
24784
24881
|
|
|
@@ -24786,7 +24883,7 @@ function create_fragment$r(ctx) {
|
|
|
24786
24883
|
props: {
|
|
24787
24884
|
isFirstInvalidInput: /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false,
|
|
24788
24885
|
key: /*inputName*/ ctx[2],
|
|
24789
|
-
label: interpolate(textToKey(/*callbackType*/ ctx[1]), null, /*textInputLabel*/ ctx[3]),
|
|
24886
|
+
label: interpolate(textToKey(/*textInputLabel*/ ctx[3] || /*callbackType*/ ctx[1]), null, /*textInputLabel*/ ctx[3]),
|
|
24790
24887
|
onChange: /*setValue*/ ctx[6],
|
|
24791
24888
|
type: "text",
|
|
24792
24889
|
showMessage: false,
|
|
@@ -24808,7 +24905,7 @@ function create_fragment$r(ctx) {
|
|
|
24808
24905
|
const input_changes = {};
|
|
24809
24906
|
if (dirty & /*callbackMetadata*/ 1) input_changes.isFirstInvalidInput = /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false;
|
|
24810
24907
|
if (dirty & /*inputName*/ 4) input_changes.key = /*inputName*/ ctx[2];
|
|
24811
|
-
if (dirty & /*
|
|
24908
|
+
if (dirty & /*textInputLabel, callbackType*/ 10) input_changes.label = interpolate(textToKey(/*textInputLabel*/ ctx[3] || /*callbackType*/ ctx[1]), null, /*textInputLabel*/ ctx[3]);
|
|
24812
24909
|
|
|
24813
24910
|
if (dirty & /*value*/ 16) input_changes.value = typeof /*value*/ ctx[4] === 'string'
|
|
24814
24911
|
? /*value*/ ctx[4]
|
|
@@ -24831,7 +24928,7 @@ function create_fragment$r(ctx) {
|
|
|
24831
24928
|
};
|
|
24832
24929
|
}
|
|
24833
24930
|
|
|
24834
|
-
function instance$
|
|
24931
|
+
function instance$s($$self, $$props, $$invalidate) {
|
|
24835
24932
|
const selfSubmitFunction = null;
|
|
24836
24933
|
const stepMetadata = null;
|
|
24837
24934
|
let { callback } = $$props;
|
|
@@ -24883,7 +24980,7 @@ class Name extends SvelteComponent {
|
|
|
24883
24980
|
constructor(options) {
|
|
24884
24981
|
super();
|
|
24885
24982
|
|
|
24886
|
-
init(this, options, instance$
|
|
24983
|
+
init(this, options, instance$s, create_fragment$s, safe_not_equal, {
|
|
24887
24984
|
selfSubmitFunction: 7,
|
|
24888
24985
|
stepMetadata: 8,
|
|
24889
24986
|
callback: 9,
|
|
@@ -24985,7 +25082,7 @@ function create_else_block$3(ctx) {
|
|
|
24985
25082
|
}
|
|
24986
25083
|
|
|
24987
25084
|
// (6:0) {#if !visible}
|
|
24988
|
-
function create_if_block$
|
|
25085
|
+
function create_if_block$a(ctx) {
|
|
24989
25086
|
let svg;
|
|
24990
25087
|
let path0;
|
|
24991
25088
|
let path1;
|
|
@@ -25066,12 +25163,12 @@ function create_if_block$9(ctx) {
|
|
|
25066
25163
|
};
|
|
25067
25164
|
}
|
|
25068
25165
|
|
|
25069
|
-
function create_fragment$
|
|
25166
|
+
function create_fragment$r(ctx) {
|
|
25070
25167
|
let current_block_type_index;
|
|
25071
25168
|
let if_block;
|
|
25072
25169
|
let if_block_anchor;
|
|
25073
25170
|
let current;
|
|
25074
|
-
const if_block_creators = [create_if_block$
|
|
25171
|
+
const if_block_creators = [create_if_block$a, create_else_block$3];
|
|
25075
25172
|
const if_blocks = [];
|
|
25076
25173
|
|
|
25077
25174
|
function select_block_type(ctx, dirty) {
|
|
@@ -25135,7 +25232,7 @@ function create_fragment$q(ctx) {
|
|
|
25135
25232
|
};
|
|
25136
25233
|
}
|
|
25137
25234
|
|
|
25138
|
-
function instance$
|
|
25235
|
+
function instance$r($$self, $$props, $$invalidate) {
|
|
25139
25236
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
25140
25237
|
let { classes = '' } = $$props;
|
|
25141
25238
|
let { size = '24px' } = $$props;
|
|
@@ -25154,13 +25251,13 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
|
25154
25251
|
class Eye_icon extends SvelteComponent {
|
|
25155
25252
|
constructor(options) {
|
|
25156
25253
|
super();
|
|
25157
|
-
init(this, options, instance$
|
|
25254
|
+
init(this, options, instance$r, create_fragment$r, safe_not_equal, { classes: 0, size: 1, visible: 2 });
|
|
25158
25255
|
}
|
|
25159
25256
|
}
|
|
25160
25257
|
|
|
25161
25258
|
/* src/lib/journey/callbacks/password/confirm-input.svelte generated by Svelte v3.55.1 */
|
|
25162
25259
|
|
|
25163
|
-
function create_default_slot_1$
|
|
25260
|
+
function create_default_slot_1$8(ctx) {
|
|
25164
25261
|
let current;
|
|
25165
25262
|
const default_slot_template = /*#slots*/ ctx[12].default;
|
|
25166
25263
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[13], null);
|
|
@@ -25208,7 +25305,7 @@ function create_default_slot_1$7(ctx) {
|
|
|
25208
25305
|
}
|
|
25209
25306
|
|
|
25210
25307
|
// (47:4) <EyeIcon classes="tw_password-icon dark:tw_password-icon_dark" visible={isVisible} >
|
|
25211
|
-
function create_default_slot$
|
|
25308
|
+
function create_default_slot$f(ctx) {
|
|
25212
25309
|
let t;
|
|
25213
25310
|
let current;
|
|
25214
25311
|
t = new Locale_strings({ props: { key: "showPassword" } });
|
|
@@ -25249,7 +25346,7 @@ function create_input_button_slot$1(ctx) {
|
|
|
25249
25346
|
props: {
|
|
25250
25347
|
classes: "tw_password-icon dark:tw_password-icon_dark",
|
|
25251
25348
|
visible: /*isVisible*/ ctx[6],
|
|
25252
|
-
$$slots: { default: [create_default_slot$
|
|
25349
|
+
$$slots: { default: [create_default_slot$f] },
|
|
25253
25350
|
$$scope: { ctx }
|
|
25254
25351
|
}
|
|
25255
25352
|
});
|
|
@@ -25300,7 +25397,7 @@ function create_input_button_slot$1(ctx) {
|
|
|
25300
25397
|
};
|
|
25301
25398
|
}
|
|
25302
25399
|
|
|
25303
|
-
function create_fragment$
|
|
25400
|
+
function create_fragment$q(ctx) {
|
|
25304
25401
|
let input;
|
|
25305
25402
|
let current;
|
|
25306
25403
|
|
|
@@ -25324,7 +25421,7 @@ function create_fragment$p(ctx) {
|
|
|
25324
25421
|
: '',
|
|
25325
25422
|
$$slots: {
|
|
25326
25423
|
"input-button": [create_input_button_slot$1],
|
|
25327
|
-
default: [create_default_slot_1$
|
|
25424
|
+
default: [create_default_slot_1$8]
|
|
25328
25425
|
},
|
|
25329
25426
|
$$scope: { ctx }
|
|
25330
25427
|
}
|
|
@@ -25374,7 +25471,7 @@ function create_fragment$p(ctx) {
|
|
|
25374
25471
|
};
|
|
25375
25472
|
}
|
|
25376
25473
|
|
|
25377
|
-
function instance$
|
|
25474
|
+
function instance$q($$self, $$props, $$invalidate) {
|
|
25378
25475
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
25379
25476
|
let { forceValidityFailure = false } = $$props;
|
|
25380
25477
|
let { key } = $$props;
|
|
@@ -25429,7 +25526,7 @@ class Confirm_input extends SvelteComponent {
|
|
|
25429
25526
|
constructor(options) {
|
|
25430
25527
|
super();
|
|
25431
25528
|
|
|
25432
|
-
init(this, options, instance$
|
|
25529
|
+
init(this, options, instance$q, create_fragment$q, safe_not_equal, {
|
|
25433
25530
|
forceValidityFailure: 0,
|
|
25434
25531
|
key: 1,
|
|
25435
25532
|
onChange: 2,
|
|
@@ -25443,7 +25540,7 @@ class Confirm_input extends SvelteComponent {
|
|
|
25443
25540
|
|
|
25444
25541
|
/* src/lib/journey/callbacks/password/base.svelte generated by Svelte v3.55.1 */
|
|
25445
25542
|
|
|
25446
|
-
function create_default_slot_1$
|
|
25543
|
+
function create_default_slot_1$7(ctx) {
|
|
25447
25544
|
let current;
|
|
25448
25545
|
const default_slot_template = /*#slots*/ ctx[19].default;
|
|
25449
25546
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[20], null);
|
|
@@ -25491,7 +25588,7 @@ function create_default_slot_1$6(ctx) {
|
|
|
25491
25588
|
}
|
|
25492
25589
|
|
|
25493
25590
|
// (82:4) <EyeIcon classes="tw_password-icon dark:tw_password-icon_dark" visible={isVisible} >
|
|
25494
|
-
function create_default_slot$
|
|
25591
|
+
function create_default_slot$e(ctx) {
|
|
25495
25592
|
let t;
|
|
25496
25593
|
let current;
|
|
25497
25594
|
t = new Locale_strings({ props: { key: "showPassword" } });
|
|
@@ -25532,7 +25629,7 @@ function create_input_button_slot(ctx) {
|
|
|
25532
25629
|
props: {
|
|
25533
25630
|
classes: "tw_password-icon dark:tw_password-icon_dark",
|
|
25534
25631
|
visible: /*isVisible*/ ctx[10],
|
|
25535
|
-
$$slots: { default: [create_default_slot$
|
|
25632
|
+
$$slots: { default: [create_default_slot$e] },
|
|
25536
25633
|
$$scope: { ctx }
|
|
25537
25634
|
}
|
|
25538
25635
|
});
|
|
@@ -25584,7 +25681,7 @@ function create_input_button_slot(ctx) {
|
|
|
25584
25681
|
}
|
|
25585
25682
|
|
|
25586
25683
|
// (89:0) {#if callbackMetadata?.platform?.confirmPassword}
|
|
25587
|
-
function create_if_block$
|
|
25684
|
+
function create_if_block$9(ctx) {
|
|
25588
25685
|
let confirminput;
|
|
25589
25686
|
let current;
|
|
25590
25687
|
|
|
@@ -25631,7 +25728,7 @@ function create_if_block$8(ctx) {
|
|
|
25631
25728
|
};
|
|
25632
25729
|
}
|
|
25633
25730
|
|
|
25634
|
-
function create_fragment$
|
|
25731
|
+
function create_fragment$p(ctx) {
|
|
25635
25732
|
let input;
|
|
25636
25733
|
let t;
|
|
25637
25734
|
let if_block_anchor;
|
|
@@ -25656,13 +25753,13 @@ function create_fragment$o(ctx) {
|
|
|
25656
25753
|
: '',
|
|
25657
25754
|
$$slots: {
|
|
25658
25755
|
"input-button": [create_input_button_slot],
|
|
25659
|
-
default: [create_default_slot_1$
|
|
25756
|
+
default: [create_default_slot_1$7]
|
|
25660
25757
|
},
|
|
25661
25758
|
$$scope: { ctx }
|
|
25662
25759
|
}
|
|
25663
25760
|
});
|
|
25664
25761
|
|
|
25665
|
-
let if_block = /*callbackMetadata*/ ctx[1]?.platform?.confirmPassword && create_if_block$
|
|
25762
|
+
let if_block = /*callbackMetadata*/ ctx[1]?.platform?.confirmPassword && create_if_block$9(ctx);
|
|
25666
25763
|
|
|
25667
25764
|
return {
|
|
25668
25765
|
c() {
|
|
@@ -25711,7 +25808,7 @@ function create_fragment$o(ctx) {
|
|
|
25711
25808
|
transition_in(if_block, 1);
|
|
25712
25809
|
}
|
|
25713
25810
|
} else {
|
|
25714
|
-
if_block = create_if_block$
|
|
25811
|
+
if_block = create_if_block$9(ctx);
|
|
25715
25812
|
if_block.c();
|
|
25716
25813
|
transition_in(if_block, 1);
|
|
25717
25814
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -25746,7 +25843,7 @@ function create_fragment$o(ctx) {
|
|
|
25746
25843
|
};
|
|
25747
25844
|
}
|
|
25748
25845
|
|
|
25749
|
-
function instance$
|
|
25846
|
+
function instance$p($$self, $$props, $$invalidate) {
|
|
25750
25847
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
25751
25848
|
let { callback } = $$props;
|
|
25752
25849
|
let { callbackMetadata } = $$props;
|
|
@@ -25855,7 +25952,7 @@ class Base extends SvelteComponent {
|
|
|
25855
25952
|
constructor(options) {
|
|
25856
25953
|
super();
|
|
25857
25954
|
|
|
25858
|
-
init(this, options, instance$
|
|
25955
|
+
init(this, options, instance$p, create_fragment$p, safe_not_equal, {
|
|
25859
25956
|
callback: 17,
|
|
25860
25957
|
callbackMetadata: 1,
|
|
25861
25958
|
key: 0,
|
|
@@ -25870,7 +25967,7 @@ class Base extends SvelteComponent {
|
|
|
25870
25967
|
|
|
25871
25968
|
/* src/lib/journey/callbacks/password/password.svelte generated by Svelte v3.55.1 */
|
|
25872
25969
|
|
|
25873
|
-
function create_fragment$
|
|
25970
|
+
function create_fragment$o(ctx) {
|
|
25874
25971
|
let base;
|
|
25875
25972
|
let current;
|
|
25876
25973
|
|
|
@@ -25914,7 +26011,7 @@ function create_fragment$n(ctx) {
|
|
|
25914
26011
|
};
|
|
25915
26012
|
}
|
|
25916
26013
|
|
|
25917
|
-
function instance$
|
|
26014
|
+
function instance$o($$self, $$props, $$invalidate) {
|
|
25918
26015
|
const selfSubmitFunction = null;
|
|
25919
26016
|
const stepMetadata = null;
|
|
25920
26017
|
let { callback } = $$props;
|
|
@@ -25944,7 +26041,7 @@ class Password extends SvelteComponent {
|
|
|
25944
26041
|
constructor(options) {
|
|
25945
26042
|
super();
|
|
25946
26043
|
|
|
25947
|
-
init(this, options, instance$
|
|
26044
|
+
init(this, options, instance$o, create_fragment$o, safe_not_equal, {
|
|
25948
26045
|
selfSubmitFunction: 4,
|
|
25949
26046
|
stepMetadata: 5,
|
|
25950
26047
|
callback: 0,
|
|
@@ -25964,7 +26061,7 @@ class Password extends SvelteComponent {
|
|
|
25964
26061
|
|
|
25965
26062
|
/* src/lib/components/primitives/text/text.svelte generated by Svelte v3.55.1 */
|
|
25966
26063
|
|
|
25967
|
-
function create_fragment$
|
|
26064
|
+
function create_fragment$n(ctx) {
|
|
25968
26065
|
let p;
|
|
25969
26066
|
let p_class_value;
|
|
25970
26067
|
let current;
|
|
@@ -26022,7 +26119,7 @@ function create_fragment$m(ctx) {
|
|
|
26022
26119
|
};
|
|
26023
26120
|
}
|
|
26024
26121
|
|
|
26025
|
-
function instance$
|
|
26122
|
+
function instance$n($$self, $$props, $$invalidate) {
|
|
26026
26123
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
26027
26124
|
let { classes = '' } = $$props;
|
|
26028
26125
|
|
|
@@ -26037,13 +26134,13 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
26037
26134
|
class Text extends SvelteComponent {
|
|
26038
26135
|
constructor(options) {
|
|
26039
26136
|
super();
|
|
26040
|
-
init(this, options, instance$
|
|
26137
|
+
init(this, options, instance$n, create_fragment$n, safe_not_equal, { classes: 0 });
|
|
26041
26138
|
}
|
|
26042
26139
|
}
|
|
26043
26140
|
|
|
26044
26141
|
/* src/lib/journey/callbacks/polling-wait/polling-wait.svelte generated by Svelte v3.55.1 */
|
|
26045
26142
|
|
|
26046
|
-
function create_default_slot$
|
|
26143
|
+
function create_default_slot$d(ctx) {
|
|
26047
26144
|
let t;
|
|
26048
26145
|
|
|
26049
26146
|
return {
|
|
@@ -26062,7 +26159,7 @@ function create_default_slot$c(ctx) {
|
|
|
26062
26159
|
};
|
|
26063
26160
|
}
|
|
26064
26161
|
|
|
26065
|
-
function create_fragment$
|
|
26162
|
+
function create_fragment$m(ctx) {
|
|
26066
26163
|
let div;
|
|
26067
26164
|
let spinner;
|
|
26068
26165
|
let t;
|
|
@@ -26078,7 +26175,7 @@ function create_fragment$l(ctx) {
|
|
|
26078
26175
|
|
|
26079
26176
|
text_1 = new Text({
|
|
26080
26177
|
props: {
|
|
26081
|
-
$$slots: { default: [create_default_slot$
|
|
26178
|
+
$$slots: { default: [create_default_slot$d] },
|
|
26082
26179
|
$$scope: { ctx }
|
|
26083
26180
|
}
|
|
26084
26181
|
});
|
|
@@ -26126,7 +26223,7 @@ function create_fragment$l(ctx) {
|
|
|
26126
26223
|
};
|
|
26127
26224
|
}
|
|
26128
26225
|
|
|
26129
|
-
function instance$
|
|
26226
|
+
function instance$m($$self, $$props, $$invalidate) {
|
|
26130
26227
|
const stepMetadata = null;
|
|
26131
26228
|
const style = {};
|
|
26132
26229
|
let { callback } = $$props;
|
|
@@ -26177,7 +26274,7 @@ class Polling_wait extends SvelteComponent {
|
|
|
26177
26274
|
constructor(options) {
|
|
26178
26275
|
super();
|
|
26179
26276
|
|
|
26180
|
-
init(this, options, instance$
|
|
26277
|
+
init(this, options, instance$m, create_fragment$m, safe_not_equal, {
|
|
26181
26278
|
stepMetadata: 3,
|
|
26182
26279
|
style: 4,
|
|
26183
26280
|
callback: 1,
|
|
@@ -26197,7 +26294,7 @@ class Polling_wait extends SvelteComponent {
|
|
|
26197
26294
|
|
|
26198
26295
|
/* src/lib/journey/callbacks/redirect/redirect.svelte generated by Svelte v3.55.1 */
|
|
26199
26296
|
|
|
26200
|
-
function create_default_slot$
|
|
26297
|
+
function create_default_slot$c(ctx) {
|
|
26201
26298
|
let t;
|
|
26202
26299
|
|
|
26203
26300
|
return {
|
|
@@ -26216,7 +26313,7 @@ function create_default_slot$b(ctx) {
|
|
|
26216
26313
|
};
|
|
26217
26314
|
}
|
|
26218
26315
|
|
|
26219
|
-
function create_fragment$
|
|
26316
|
+
function create_fragment$l(ctx) {
|
|
26220
26317
|
let div;
|
|
26221
26318
|
let spinner;
|
|
26222
26319
|
let t;
|
|
@@ -26232,7 +26329,7 @@ function create_fragment$k(ctx) {
|
|
|
26232
26329
|
|
|
26233
26330
|
text_1 = new Text({
|
|
26234
26331
|
props: {
|
|
26235
|
-
$$slots: { default: [create_default_slot$
|
|
26332
|
+
$$slots: { default: [create_default_slot$c] },
|
|
26236
26333
|
$$scope: { ctx }
|
|
26237
26334
|
}
|
|
26238
26335
|
});
|
|
@@ -26281,7 +26378,7 @@ function create_fragment$k(ctx) {
|
|
|
26281
26378
|
};
|
|
26282
26379
|
}
|
|
26283
26380
|
|
|
26284
|
-
function instance$
|
|
26381
|
+
function instance$l($$self, $$props, $$invalidate) {
|
|
26285
26382
|
const callbackMetadata = null;
|
|
26286
26383
|
const selfSubmitFunction = null;
|
|
26287
26384
|
const stepMetadata = null;
|
|
@@ -26308,7 +26405,7 @@ class Redirect extends SvelteComponent {
|
|
|
26308
26405
|
constructor(options) {
|
|
26309
26406
|
super();
|
|
26310
26407
|
|
|
26311
|
-
init(this, options, instance$
|
|
26408
|
+
init(this, options, instance$l, create_fragment$l, safe_not_equal, {
|
|
26312
26409
|
callbackMetadata: 1,
|
|
26313
26410
|
selfSubmitFunction: 2,
|
|
26314
26411
|
stepMetadata: 3,
|
|
@@ -26336,7 +26433,7 @@ class Redirect extends SvelteComponent {
|
|
|
26336
26433
|
|
|
26337
26434
|
/* src/lib/components/icons/apple-icon.svelte generated by Svelte v3.55.1 */
|
|
26338
26435
|
|
|
26339
|
-
function create_fragment$
|
|
26436
|
+
function create_fragment$k(ctx) {
|
|
26340
26437
|
let svg;
|
|
26341
26438
|
let path0;
|
|
26342
26439
|
let path1;
|
|
@@ -26381,7 +26478,7 @@ function create_fragment$j(ctx) {
|
|
|
26381
26478
|
};
|
|
26382
26479
|
}
|
|
26383
26480
|
|
|
26384
|
-
function instance$
|
|
26481
|
+
function instance$k($$self, $$props, $$invalidate) {
|
|
26385
26482
|
let { classes = '' } = $$props;
|
|
26386
26483
|
let { size = '24px' } = $$props;
|
|
26387
26484
|
|
|
@@ -26396,13 +26493,13 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
|
26396
26493
|
class Apple_icon extends SvelteComponent {
|
|
26397
26494
|
constructor(options) {
|
|
26398
26495
|
super();
|
|
26399
|
-
init(this, options, instance$
|
|
26496
|
+
init(this, options, instance$k, create_fragment$k, safe_not_equal, { classes: 0, size: 1 });
|
|
26400
26497
|
}
|
|
26401
26498
|
}
|
|
26402
26499
|
|
|
26403
26500
|
/* src/lib/components/icons/facebook-icon.svelte generated by Svelte v3.55.1 */
|
|
26404
26501
|
|
|
26405
|
-
function create_fragment$
|
|
26502
|
+
function create_fragment$j(ctx) {
|
|
26406
26503
|
let svg;
|
|
26407
26504
|
let path;
|
|
26408
26505
|
|
|
@@ -26443,7 +26540,7 @@ function create_fragment$i(ctx) {
|
|
|
26443
26540
|
};
|
|
26444
26541
|
}
|
|
26445
26542
|
|
|
26446
|
-
function instance$
|
|
26543
|
+
function instance$j($$self, $$props, $$invalidate) {
|
|
26447
26544
|
let { classes = '' } = $$props;
|
|
26448
26545
|
let { size = '24px' } = $$props;
|
|
26449
26546
|
|
|
@@ -26458,13 +26555,13 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
26458
26555
|
class Facebook_icon extends SvelteComponent {
|
|
26459
26556
|
constructor(options) {
|
|
26460
26557
|
super();
|
|
26461
|
-
init(this, options, instance$
|
|
26558
|
+
init(this, options, instance$j, create_fragment$j, safe_not_equal, { classes: 0, size: 1 });
|
|
26462
26559
|
}
|
|
26463
26560
|
}
|
|
26464
26561
|
|
|
26465
26562
|
/* src/lib/components/icons/google-icon.svelte generated by Svelte v3.55.1 */
|
|
26466
26563
|
|
|
26467
|
-
function create_fragment$
|
|
26564
|
+
function create_fragment$i(ctx) {
|
|
26468
26565
|
let svg;
|
|
26469
26566
|
let g;
|
|
26470
26567
|
let path0;
|
|
@@ -26529,7 +26626,7 @@ function create_fragment$h(ctx) {
|
|
|
26529
26626
|
};
|
|
26530
26627
|
}
|
|
26531
26628
|
|
|
26532
|
-
function instance$
|
|
26629
|
+
function instance$i($$self, $$props, $$invalidate) {
|
|
26533
26630
|
let { classes = '' } = $$props;
|
|
26534
26631
|
let { size = '24px' } = $$props;
|
|
26535
26632
|
|
|
@@ -26544,13 +26641,13 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
26544
26641
|
class Google_icon extends SvelteComponent {
|
|
26545
26642
|
constructor(options) {
|
|
26546
26643
|
super();
|
|
26547
|
-
init(this, options, instance$
|
|
26644
|
+
init(this, options, instance$i, create_fragment$i, safe_not_equal, { classes: 0, size: 1 });
|
|
26548
26645
|
}
|
|
26549
26646
|
}
|
|
26550
26647
|
|
|
26551
26648
|
/* src/lib/journey/callbacks/select-idp/select-idp.svelte generated by Svelte v3.55.1 */
|
|
26552
26649
|
|
|
26553
|
-
function get_each_context$
|
|
26650
|
+
function get_each_context$5(ctx, list, i) {
|
|
26554
26651
|
const child_ctx = ctx.slice();
|
|
26555
26652
|
child_ctx[10] = list[i];
|
|
26556
26653
|
return child_ctx;
|
|
@@ -26611,7 +26708,7 @@ function create_if_block_3$2(ctx) {
|
|
|
26611
26708
|
}
|
|
26612
26709
|
|
|
26613
26710
|
// (55:58)
|
|
26614
|
-
function create_if_block_2$
|
|
26711
|
+
function create_if_block_2$6(ctx) {
|
|
26615
26712
|
let button;
|
|
26616
26713
|
let current;
|
|
26617
26714
|
|
|
@@ -26665,7 +26762,7 @@ function create_if_block_2$5(ctx) {
|
|
|
26665
26762
|
}
|
|
26666
26763
|
|
|
26667
26764
|
// (44:4) {#if idp.text.toUpperCase().includes('APPLE')}
|
|
26668
|
-
function create_if_block_1$
|
|
26765
|
+
function create_if_block_1$7(ctx) {
|
|
26669
26766
|
let button;
|
|
26670
26767
|
let current;
|
|
26671
26768
|
|
|
@@ -26679,7 +26776,7 @@ function create_if_block_1$6(ctx) {
|
|
|
26679
26776
|
type: "button",
|
|
26680
26777
|
width: "auto",
|
|
26681
26778
|
onClick: func,
|
|
26682
|
-
$$slots: { default: [create_default_slot_2$
|
|
26779
|
+
$$slots: { default: [create_default_slot_2$4] },
|
|
26683
26780
|
$$scope: { ctx }
|
|
26684
26781
|
}
|
|
26685
26782
|
});
|
|
@@ -26835,7 +26932,7 @@ function create_default_slot_3(ctx) {
|
|
|
26835
26932
|
}
|
|
26836
26933
|
|
|
26837
26934
|
// (45:6) <Button classes="tw_button-apple dark:tw_button-apple_dark" type="button" width="auto" onClick={() => setBtnValue(idp.value)} >
|
|
26838
|
-
function create_default_slot_2$
|
|
26935
|
+
function create_default_slot_2$4(ctx) {
|
|
26839
26936
|
let appleicon;
|
|
26840
26937
|
let t0;
|
|
26841
26938
|
let t1;
|
|
@@ -26893,7 +26990,7 @@ function create_default_slot_2$3(ctx) {
|
|
|
26893
26990
|
}
|
|
26894
26991
|
|
|
26895
26992
|
// (43:2) <Grid num={1}>
|
|
26896
|
-
function create_default_slot_1$
|
|
26993
|
+
function create_default_slot_1$6(ctx) {
|
|
26897
26994
|
let show_if;
|
|
26898
26995
|
let show_if_1;
|
|
26899
26996
|
let show_if_2;
|
|
@@ -26901,7 +26998,7 @@ function create_default_slot_1$5(ctx) {
|
|
|
26901
26998
|
let if_block;
|
|
26902
26999
|
let if_block_anchor;
|
|
26903
27000
|
let current;
|
|
26904
|
-
const if_block_creators = [create_if_block_1$
|
|
27001
|
+
const if_block_creators = [create_if_block_1$7, create_if_block_2$6, create_if_block_3$2];
|
|
26905
27002
|
const if_blocks = [];
|
|
26906
27003
|
|
|
26907
27004
|
function select_block_type(ctx, dirty) {
|
|
@@ -26990,14 +27087,14 @@ function create_default_slot_1$5(ctx) {
|
|
|
26990
27087
|
}
|
|
26991
27088
|
|
|
26992
27089
|
// (42:0) {#each idps as idp}
|
|
26993
|
-
function create_each_block$
|
|
27090
|
+
function create_each_block$5(ctx) {
|
|
26994
27091
|
let grid;
|
|
26995
27092
|
let current;
|
|
26996
27093
|
|
|
26997
27094
|
grid = new Grid({
|
|
26998
27095
|
props: {
|
|
26999
27096
|
num: 1,
|
|
27000
|
-
$$slots: { default: [create_default_slot_1$
|
|
27097
|
+
$$slots: { default: [create_default_slot_1$6] },
|
|
27001
27098
|
$$scope: { ctx }
|
|
27002
27099
|
}
|
|
27003
27100
|
});
|
|
@@ -27035,14 +27132,14 @@ function create_each_block$4(ctx) {
|
|
|
27035
27132
|
}
|
|
27036
27133
|
|
|
27037
27134
|
// (81:0) {#if stepMetadata && stepMetadata.derived.numOfCallbacks > 1}
|
|
27038
|
-
function create_if_block$
|
|
27135
|
+
function create_if_block$8(ctx) {
|
|
27039
27136
|
let grid;
|
|
27040
27137
|
let current;
|
|
27041
27138
|
|
|
27042
27139
|
grid = new Grid({
|
|
27043
27140
|
props: {
|
|
27044
27141
|
num: 1,
|
|
27045
|
-
$$slots: { default: [create_default_slot$
|
|
27142
|
+
$$slots: { default: [create_default_slot$b] },
|
|
27046
27143
|
$$scope: { ctx }
|
|
27047
27144
|
}
|
|
27048
27145
|
});
|
|
@@ -27071,7 +27168,7 @@ function create_if_block$7(ctx) {
|
|
|
27071
27168
|
}
|
|
27072
27169
|
|
|
27073
27170
|
// (82:2) <Grid num={1}>
|
|
27074
|
-
function create_default_slot$
|
|
27171
|
+
function create_default_slot$b(ctx) {
|
|
27075
27172
|
let hr;
|
|
27076
27173
|
|
|
27077
27174
|
return {
|
|
@@ -27089,7 +27186,7 @@ function create_default_slot$a(ctx) {
|
|
|
27089
27186
|
};
|
|
27090
27187
|
}
|
|
27091
27188
|
|
|
27092
|
-
function create_fragment$
|
|
27189
|
+
function create_fragment$h(ctx) {
|
|
27093
27190
|
let t;
|
|
27094
27191
|
let if_block_anchor;
|
|
27095
27192
|
let current;
|
|
@@ -27097,14 +27194,14 @@ function create_fragment$g(ctx) {
|
|
|
27097
27194
|
let each_blocks = [];
|
|
27098
27195
|
|
|
27099
27196
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
27100
|
-
each_blocks[i] = create_each_block$
|
|
27197
|
+
each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
|
|
27101
27198
|
}
|
|
27102
27199
|
|
|
27103
27200
|
const out = i => transition_out(each_blocks[i], 1, 1, () => {
|
|
27104
27201
|
each_blocks[i] = null;
|
|
27105
27202
|
});
|
|
27106
27203
|
|
|
27107
|
-
let if_block = /*stepMetadata*/ ctx[0] && /*stepMetadata*/ ctx[0].derived.numOfCallbacks > 1 && create_if_block$
|
|
27204
|
+
let if_block = /*stepMetadata*/ ctx[0] && /*stepMetadata*/ ctx[0].derived.numOfCallbacks > 1 && create_if_block$8(ctx);
|
|
27108
27205
|
|
|
27109
27206
|
return {
|
|
27110
27207
|
c() {
|
|
@@ -27132,13 +27229,13 @@ function create_fragment$g(ctx) {
|
|
|
27132
27229
|
let i;
|
|
27133
27230
|
|
|
27134
27231
|
for (i = 0; i < each_value.length; i += 1) {
|
|
27135
|
-
const child_ctx = get_each_context$
|
|
27232
|
+
const child_ctx = get_each_context$5(ctx, each_value, i);
|
|
27136
27233
|
|
|
27137
27234
|
if (each_blocks[i]) {
|
|
27138
27235
|
each_blocks[i].p(child_ctx, dirty);
|
|
27139
27236
|
transition_in(each_blocks[i], 1);
|
|
27140
27237
|
} else {
|
|
27141
|
-
each_blocks[i] = create_each_block$
|
|
27238
|
+
each_blocks[i] = create_each_block$5(child_ctx);
|
|
27142
27239
|
each_blocks[i].c();
|
|
27143
27240
|
transition_in(each_blocks[i], 1);
|
|
27144
27241
|
each_blocks[i].m(t.parentNode, t);
|
|
@@ -27160,7 +27257,7 @@ function create_fragment$g(ctx) {
|
|
|
27160
27257
|
transition_in(if_block, 1);
|
|
27161
27258
|
}
|
|
27162
27259
|
} else {
|
|
27163
|
-
if_block = create_if_block$
|
|
27260
|
+
if_block = create_if_block$8(ctx);
|
|
27164
27261
|
if_block.c();
|
|
27165
27262
|
transition_in(if_block, 1);
|
|
27166
27263
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -27204,7 +27301,7 @@ function create_fragment$g(ctx) {
|
|
|
27204
27301
|
};
|
|
27205
27302
|
}
|
|
27206
27303
|
|
|
27207
|
-
function instance$
|
|
27304
|
+
function instance$h($$self, $$props, $$invalidate) {
|
|
27208
27305
|
const style = {};
|
|
27209
27306
|
let { callback } = $$props;
|
|
27210
27307
|
let { callbackMetadata } = $$props;
|
|
@@ -27274,7 +27371,7 @@ class Select_idp extends SvelteComponent {
|
|
|
27274
27371
|
constructor(options) {
|
|
27275
27372
|
super();
|
|
27276
27373
|
|
|
27277
|
-
init(this, options, instance$
|
|
27374
|
+
init(this, options, instance$h, create_fragment$h, safe_not_equal, {
|
|
27278
27375
|
style: 4,
|
|
27279
27376
|
callback: 5,
|
|
27280
27377
|
callbackMetadata: 3,
|
|
@@ -27296,14 +27393,14 @@ function get_each_context_1(ctx, list, i) {
|
|
|
27296
27393
|
return child_ctx;
|
|
27297
27394
|
}
|
|
27298
27395
|
|
|
27299
|
-
function get_each_context$
|
|
27396
|
+
function get_each_context$4(ctx, list, i) {
|
|
27300
27397
|
const child_ctx = ctx.slice();
|
|
27301
27398
|
child_ctx[7] = list[i];
|
|
27302
27399
|
return child_ctx;
|
|
27303
27400
|
}
|
|
27304
27401
|
|
|
27305
27402
|
// (34:33)
|
|
27306
|
-
function create_if_block_1$
|
|
27403
|
+
function create_if_block_1$6(ctx) {
|
|
27307
27404
|
let div;
|
|
27308
27405
|
let p;
|
|
27309
27406
|
let t0;
|
|
@@ -27399,7 +27496,7 @@ function create_if_block_1$5(ctx) {
|
|
|
27399
27496
|
}
|
|
27400
27497
|
|
|
27401
27498
|
// (23:0) {#if simplifiedFailures.length}
|
|
27402
|
-
function create_if_block$
|
|
27499
|
+
function create_if_block$7(ctx) {
|
|
27403
27500
|
let div;
|
|
27404
27501
|
let p;
|
|
27405
27502
|
let t0;
|
|
@@ -27412,7 +27509,7 @@ function create_if_block$6(ctx) {
|
|
|
27412
27509
|
let each_blocks = [];
|
|
27413
27510
|
|
|
27414
27511
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
27415
|
-
each_blocks[i] = create_each_block$
|
|
27512
|
+
each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
|
|
27416
27513
|
}
|
|
27417
27514
|
|
|
27418
27515
|
return {
|
|
@@ -27455,12 +27552,12 @@ function create_if_block$6(ctx) {
|
|
|
27455
27552
|
let i;
|
|
27456
27553
|
|
|
27457
27554
|
for (i = 0; i < each_value.length; i += 1) {
|
|
27458
|
-
const child_ctx = get_each_context$
|
|
27555
|
+
const child_ctx = get_each_context$4(ctx, each_value, i);
|
|
27459
27556
|
|
|
27460
27557
|
if (each_blocks[i]) {
|
|
27461
27558
|
each_blocks[i].p(child_ctx, dirty);
|
|
27462
27559
|
} else {
|
|
27463
|
-
each_blocks[i] = create_each_block$
|
|
27560
|
+
each_blocks[i] = create_each_block$4(child_ctx);
|
|
27464
27561
|
each_blocks[i].c();
|
|
27465
27562
|
each_blocks[i].m(ul, null);
|
|
27466
27563
|
}
|
|
@@ -27520,7 +27617,7 @@ function create_each_block_1(ctx) {
|
|
|
27520
27617
|
}
|
|
27521
27618
|
|
|
27522
27619
|
// (29:6) {#each simplifiedFailures as failure}
|
|
27523
|
-
function create_each_block$
|
|
27620
|
+
function create_each_block$4(ctx) {
|
|
27524
27621
|
let li;
|
|
27525
27622
|
let t_value = /*failure*/ ctx[7].message + "";
|
|
27526
27623
|
let t;
|
|
@@ -27544,12 +27641,12 @@ function create_each_block$3(ctx) {
|
|
|
27544
27641
|
};
|
|
27545
27642
|
}
|
|
27546
27643
|
|
|
27547
|
-
function create_fragment$
|
|
27644
|
+
function create_fragment$g(ctx) {
|
|
27548
27645
|
let current_block_type_index;
|
|
27549
27646
|
let if_block;
|
|
27550
27647
|
let if_block_anchor;
|
|
27551
27648
|
let current;
|
|
27552
|
-
const if_block_creators = [create_if_block$
|
|
27649
|
+
const if_block_creators = [create_if_block$7, create_if_block_1$6];
|
|
27553
27650
|
const if_blocks = [];
|
|
27554
27651
|
|
|
27555
27652
|
function select_block_type(ctx, dirty) {
|
|
@@ -27630,7 +27727,7 @@ function create_fragment$f(ctx) {
|
|
|
27630
27727
|
};
|
|
27631
27728
|
}
|
|
27632
27729
|
|
|
27633
|
-
function instance$
|
|
27730
|
+
function instance$g($$self, $$props, $$invalidate) {
|
|
27634
27731
|
let { callback } = $$props;
|
|
27635
27732
|
let { key = undefined } = $$props;
|
|
27636
27733
|
let { label } = $$props;
|
|
@@ -27685,7 +27782,7 @@ class Policies extends SvelteComponent {
|
|
|
27685
27782
|
constructor(options) {
|
|
27686
27783
|
super();
|
|
27687
27784
|
|
|
27688
|
-
init(this, options, instance$
|
|
27785
|
+
init(this, options, instance$g, create_fragment$g, safe_not_equal, {
|
|
27689
27786
|
callback: 4,
|
|
27690
27787
|
key: 0,
|
|
27691
27788
|
label: 5,
|
|
@@ -27696,7 +27793,7 @@ class Policies extends SvelteComponent {
|
|
|
27696
27793
|
|
|
27697
27794
|
/* src/lib/journey/callbacks/string-attribute/string-attribute-input.svelte generated by Svelte v3.55.1 */
|
|
27698
27795
|
|
|
27699
|
-
function create_default_slot$
|
|
27796
|
+
function create_default_slot$a(ctx) {
|
|
27700
27797
|
let policies_1;
|
|
27701
27798
|
let current;
|
|
27702
27799
|
|
|
@@ -27739,7 +27836,7 @@ function create_default_slot$9(ctx) {
|
|
|
27739
27836
|
};
|
|
27740
27837
|
}
|
|
27741
27838
|
|
|
27742
|
-
function create_fragment$
|
|
27839
|
+
function create_fragment$f(ctx) {
|
|
27743
27840
|
let input;
|
|
27744
27841
|
let current;
|
|
27745
27842
|
|
|
@@ -27757,7 +27854,7 @@ function create_fragment$e(ctx) {
|
|
|
27757
27854
|
type: /*type*/ ctx[7],
|
|
27758
27855
|
showMessage: !!/*isInvalid*/ ctx[8],
|
|
27759
27856
|
value: /*previousValue*/ ctx[6],
|
|
27760
|
-
$$slots: { default: [create_default_slot$
|
|
27857
|
+
$$slots: { default: [create_default_slot$a] },
|
|
27761
27858
|
$$scope: { ctx }
|
|
27762
27859
|
}
|
|
27763
27860
|
});
|
|
@@ -27807,7 +27904,7 @@ function create_fragment$e(ctx) {
|
|
|
27807
27904
|
};
|
|
27808
27905
|
}
|
|
27809
27906
|
|
|
27810
|
-
function instance$
|
|
27907
|
+
function instance$f($$self, $$props, $$invalidate) {
|
|
27811
27908
|
const selfSubmitFunction = null;
|
|
27812
27909
|
const stepMetadata = null;
|
|
27813
27910
|
const style = {};
|
|
@@ -27887,7 +27984,7 @@ class String_attribute_input extends SvelteComponent {
|
|
|
27887
27984
|
constructor(options) {
|
|
27888
27985
|
super();
|
|
27889
27986
|
|
|
27890
|
-
init(this, options, instance$
|
|
27987
|
+
init(this, options, instance$f, create_fragment$f, safe_not_equal, {
|
|
27891
27988
|
selfSubmitFunction: 10,
|
|
27892
27989
|
stepMetadata: 11,
|
|
27893
27990
|
style: 12,
|
|
@@ -27911,7 +28008,7 @@ class String_attribute_input extends SvelteComponent {
|
|
|
27911
28008
|
|
|
27912
28009
|
/* src/lib/components/primitives/link/link.svelte generated by Svelte v3.55.1 */
|
|
27913
28010
|
|
|
27914
|
-
function create_fragment$
|
|
28011
|
+
function create_fragment$e(ctx) {
|
|
27915
28012
|
let a;
|
|
27916
28013
|
let a_class_value;
|
|
27917
28014
|
let current;
|
|
@@ -27979,7 +28076,7 @@ function create_fragment$d(ctx) {
|
|
|
27979
28076
|
};
|
|
27980
28077
|
}
|
|
27981
28078
|
|
|
27982
|
-
function instance$
|
|
28079
|
+
function instance$e($$self, $$props, $$invalidate) {
|
|
27983
28080
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
27984
28081
|
let { classes = '' } = $$props;
|
|
27985
28082
|
let { href } = $$props;
|
|
@@ -27998,7 +28095,7 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
27998
28095
|
class Link extends SvelteComponent {
|
|
27999
28096
|
constructor(options) {
|
|
28000
28097
|
super();
|
|
28001
|
-
init(this, options, instance$
|
|
28098
|
+
init(this, options, instance$e, create_fragment$e, safe_not_equal, { classes: 0, href: 1, target: 2 });
|
|
28002
28099
|
}
|
|
28003
28100
|
}
|
|
28004
28101
|
|
|
@@ -28045,7 +28142,7 @@ function create_else_block$2(ctx) {
|
|
|
28045
28142
|
}
|
|
28046
28143
|
|
|
28047
28144
|
// (43:0) {#if $links?.termsAndConditions}
|
|
28048
|
-
function create_if_block$
|
|
28145
|
+
function create_if_block$6(ctx) {
|
|
28049
28146
|
let link;
|
|
28050
28147
|
let t;
|
|
28051
28148
|
let checkbox;
|
|
@@ -28056,7 +28153,7 @@ function create_if_block$5(ctx) {
|
|
|
28056
28153
|
classes: "tw_block tw_mb-4",
|
|
28057
28154
|
href: /*$links*/ ctx[2]?.termsAndConditions,
|
|
28058
28155
|
target: "_blank",
|
|
28059
|
-
$$slots: { default: [create_default_slot_1$
|
|
28156
|
+
$$slots: { default: [create_default_slot_1$5] },
|
|
28060
28157
|
$$scope: { ctx }
|
|
28061
28158
|
}
|
|
28062
28159
|
});
|
|
@@ -28067,7 +28164,7 @@ function create_if_block$5(ctx) {
|
|
|
28067
28164
|
key: /*inputName*/ ctx[1],
|
|
28068
28165
|
onChange: /*setValue*/ ctx[4],
|
|
28069
28166
|
value: false,
|
|
28070
|
-
$$slots: { default: [create_default_slot$
|
|
28167
|
+
$$slots: { default: [create_default_slot$9] },
|
|
28071
28168
|
$$scope: { ctx }
|
|
28072
28169
|
}
|
|
28073
28170
|
});
|
|
@@ -28123,7 +28220,7 @@ function create_if_block$5(ctx) {
|
|
|
28123
28220
|
}
|
|
28124
28221
|
|
|
28125
28222
|
// (44:2) <Link classes="tw_block tw_mb-4" href={$links?.termsAndConditions} target="_blank">
|
|
28126
|
-
function create_default_slot_1$
|
|
28223
|
+
function create_default_slot_1$5(ctx) {
|
|
28127
28224
|
let t_value = interpolate('termsAndConditionsLinkText') + "";
|
|
28128
28225
|
let t;
|
|
28129
28226
|
|
|
@@ -28142,7 +28239,7 @@ function create_default_slot_1$4(ctx) {
|
|
|
28142
28239
|
}
|
|
28143
28240
|
|
|
28144
28241
|
// (47:2) <Checkbox isFirstInvalidInput={callbackMetadata?.derived.isFirstInvalidInput || false} key={inputName} onChange={setValue} value={false} >
|
|
28145
|
-
function create_default_slot$
|
|
28242
|
+
function create_default_slot$9(ctx) {
|
|
28146
28243
|
let t;
|
|
28147
28244
|
let current;
|
|
28148
28245
|
t = new Locale_strings({ props: { key: "termsAndConditions" } });
|
|
@@ -28171,12 +28268,12 @@ function create_default_slot$8(ctx) {
|
|
|
28171
28268
|
};
|
|
28172
28269
|
}
|
|
28173
28270
|
|
|
28174
|
-
function create_fragment$
|
|
28271
|
+
function create_fragment$d(ctx) {
|
|
28175
28272
|
let current_block_type_index;
|
|
28176
28273
|
let if_block;
|
|
28177
28274
|
let if_block_anchor;
|
|
28178
28275
|
let current;
|
|
28179
|
-
const if_block_creators = [create_if_block$
|
|
28276
|
+
const if_block_creators = [create_if_block$6, create_else_block$2];
|
|
28180
28277
|
const if_blocks = [];
|
|
28181
28278
|
|
|
28182
28279
|
function select_block_type(ctx, dirty) {
|
|
@@ -28240,7 +28337,7 @@ function create_fragment$c(ctx) {
|
|
|
28240
28337
|
};
|
|
28241
28338
|
}
|
|
28242
28339
|
|
|
28243
|
-
function instance$
|
|
28340
|
+
function instance$d($$self, $$props, $$invalidate) {
|
|
28244
28341
|
let $links;
|
|
28245
28342
|
component_subscribe($$self, links, $$value => $$invalidate(2, $links = $$value));
|
|
28246
28343
|
const selfSubmitFunction = null;
|
|
@@ -28308,7 +28405,7 @@ class Terms_conditions extends SvelteComponent {
|
|
|
28308
28405
|
constructor(options) {
|
|
28309
28406
|
super();
|
|
28310
28407
|
|
|
28311
|
-
init(this, options, instance$
|
|
28408
|
+
init(this, options, instance$d, create_fragment$d, safe_not_equal, {
|
|
28312
28409
|
selfSubmitFunction: 5,
|
|
28313
28410
|
stepMetadata: 6,
|
|
28314
28411
|
style: 7,
|
|
@@ -28333,7 +28430,7 @@ class Terms_conditions extends SvelteComponent {
|
|
|
28333
28430
|
|
|
28334
28431
|
/* src/lib/journey/callbacks/text-output/text-output.svelte generated by Svelte v3.55.1 */
|
|
28335
28432
|
|
|
28336
|
-
function create_default_slot$
|
|
28433
|
+
function create_default_slot$8(ctx) {
|
|
28337
28434
|
let html_tag;
|
|
28338
28435
|
let html_anchor;
|
|
28339
28436
|
|
|
@@ -28357,14 +28454,14 @@ function create_default_slot$7(ctx) {
|
|
|
28357
28454
|
};
|
|
28358
28455
|
}
|
|
28359
28456
|
|
|
28360
|
-
function create_fragment$
|
|
28457
|
+
function create_fragment$c(ctx) {
|
|
28361
28458
|
let text_1;
|
|
28362
28459
|
let current;
|
|
28363
28460
|
|
|
28364
28461
|
text_1 = new Text({
|
|
28365
28462
|
props: {
|
|
28366
28463
|
classes: "tw_font-bold tw_mt-6",
|
|
28367
|
-
$$slots: { default: [create_default_slot$
|
|
28464
|
+
$$slots: { default: [create_default_slot$8] },
|
|
28368
28465
|
$$scope: { ctx }
|
|
28369
28466
|
}
|
|
28370
28467
|
});
|
|
@@ -28401,7 +28498,7 @@ function create_fragment$b(ctx) {
|
|
|
28401
28498
|
};
|
|
28402
28499
|
}
|
|
28403
28500
|
|
|
28404
|
-
function instance$
|
|
28501
|
+
function instance$c($$self, $$props, $$invalidate) {
|
|
28405
28502
|
const callbackMetadata = null;
|
|
28406
28503
|
const selfSubmitFunction = null;
|
|
28407
28504
|
const stepMetadata = null;
|
|
@@ -28438,7 +28535,7 @@ class Text_output extends SvelteComponent {
|
|
|
28438
28535
|
constructor(options) {
|
|
28439
28536
|
super();
|
|
28440
28537
|
|
|
28441
|
-
init(this, options, instance$
|
|
28538
|
+
init(this, options, instance$c, create_fragment$c, safe_not_equal, {
|
|
28442
28539
|
callbackMetadata: 1,
|
|
28443
28540
|
selfSubmitFunction: 2,
|
|
28444
28541
|
stepMetadata: 3,
|
|
@@ -28466,7 +28563,7 @@ class Text_output extends SvelteComponent {
|
|
|
28466
28563
|
|
|
28467
28564
|
/* src/lib/journey/callbacks/unknown/unknown.svelte generated by Svelte v3.55.1 */
|
|
28468
28565
|
|
|
28469
|
-
function create_fragment$
|
|
28566
|
+
function create_fragment$b(ctx) {
|
|
28470
28567
|
let p;
|
|
28471
28568
|
|
|
28472
28569
|
return {
|
|
@@ -28487,7 +28584,7 @@ function create_fragment$a(ctx) {
|
|
|
28487
28584
|
};
|
|
28488
28585
|
}
|
|
28489
28586
|
|
|
28490
|
-
function instance$
|
|
28587
|
+
function instance$b($$self, $$props, $$invalidate) {
|
|
28491
28588
|
const callbackMetadata = null;
|
|
28492
28589
|
const selfSubmitFunction = null;
|
|
28493
28590
|
const stepMetadata = null;
|
|
@@ -28506,7 +28603,7 @@ class Unknown extends SvelteComponent {
|
|
|
28506
28603
|
constructor(options) {
|
|
28507
28604
|
super();
|
|
28508
28605
|
|
|
28509
|
-
init(this, options, instance$
|
|
28606
|
+
init(this, options, instance$b, create_fragment$b, safe_not_equal, {
|
|
28510
28607
|
callbackMetadata: 1,
|
|
28511
28608
|
selfSubmitFunction: 2,
|
|
28512
28609
|
stepMetadata: 3,
|
|
@@ -28534,7 +28631,7 @@ class Unknown extends SvelteComponent {
|
|
|
28534
28631
|
|
|
28535
28632
|
/* src/lib/journey/callbacks/password/validated-create-password.svelte generated by Svelte v3.55.1 */
|
|
28536
28633
|
|
|
28537
|
-
function create_default_slot$
|
|
28634
|
+
function create_default_slot$7(ctx) {
|
|
28538
28635
|
let policies;
|
|
28539
28636
|
let current;
|
|
28540
28637
|
|
|
@@ -28575,7 +28672,7 @@ function create_default_slot$6(ctx) {
|
|
|
28575
28672
|
};
|
|
28576
28673
|
}
|
|
28577
28674
|
|
|
28578
|
-
function create_fragment$
|
|
28675
|
+
function create_fragment$a(ctx) {
|
|
28579
28676
|
let base;
|
|
28580
28677
|
let current;
|
|
28581
28678
|
|
|
@@ -28588,7 +28685,7 @@ function create_fragment$9(ctx) {
|
|
|
28588
28685
|
key: /*inputName*/ ctx[4],
|
|
28589
28686
|
showMessage: /*isInvalid*/ ctx[5],
|
|
28590
28687
|
style: /*style*/ ctx[2],
|
|
28591
|
-
$$slots: { default: [create_default_slot$
|
|
28688
|
+
$$slots: { default: [create_default_slot$7] },
|
|
28592
28689
|
$$scope: { ctx }
|
|
28593
28690
|
}
|
|
28594
28691
|
});
|
|
@@ -28631,7 +28728,7 @@ function create_fragment$9(ctx) {
|
|
|
28631
28728
|
};
|
|
28632
28729
|
}
|
|
28633
28730
|
|
|
28634
|
-
function instance$
|
|
28731
|
+
function instance$a($$self, $$props, $$invalidate) {
|
|
28635
28732
|
const selfSubmitFunction = null;
|
|
28636
28733
|
const stepMetadata = null;
|
|
28637
28734
|
let { callback } = $$props;
|
|
@@ -28683,7 +28780,7 @@ class Validated_create_password extends SvelteComponent {
|
|
|
28683
28780
|
constructor(options) {
|
|
28684
28781
|
super();
|
|
28685
28782
|
|
|
28686
|
-
init(this, options, instance$
|
|
28783
|
+
init(this, options, instance$a, create_fragment$a, safe_not_equal, {
|
|
28687
28784
|
selfSubmitFunction: 7,
|
|
28688
28785
|
stepMetadata: 8,
|
|
28689
28786
|
callback: 0,
|
|
@@ -28703,7 +28800,7 @@ class Validated_create_password extends SvelteComponent {
|
|
|
28703
28800
|
|
|
28704
28801
|
/* src/lib/journey/callbacks/username/validated-create-username.svelte generated by Svelte v3.55.1 */
|
|
28705
28802
|
|
|
28706
|
-
function create_default_slot$
|
|
28803
|
+
function create_default_slot$6(ctx) {
|
|
28707
28804
|
let policies;
|
|
28708
28805
|
let current;
|
|
28709
28806
|
|
|
@@ -28746,7 +28843,7 @@ function create_default_slot$5(ctx) {
|
|
|
28746
28843
|
};
|
|
28747
28844
|
}
|
|
28748
28845
|
|
|
28749
|
-
function create_fragment$
|
|
28846
|
+
function create_fragment$9(ctx) {
|
|
28750
28847
|
let input;
|
|
28751
28848
|
let current;
|
|
28752
28849
|
|
|
@@ -28766,7 +28863,7 @@ function create_fragment$8(ctx) {
|
|
|
28766
28863
|
value: typeof /*value*/ ctx[7] === 'string'
|
|
28767
28864
|
? /*value*/ ctx[7]
|
|
28768
28865
|
: '',
|
|
28769
|
-
$$slots: { default: [create_default_slot$
|
|
28866
|
+
$$slots: { default: [create_default_slot$6] },
|
|
28770
28867
|
$$scope: { ctx }
|
|
28771
28868
|
}
|
|
28772
28869
|
});
|
|
@@ -28816,7 +28913,7 @@ function create_fragment$8(ctx) {
|
|
|
28816
28913
|
};
|
|
28817
28914
|
}
|
|
28818
28915
|
|
|
28819
|
-
function instance$
|
|
28916
|
+
function instance$9($$self, $$props, $$invalidate) {
|
|
28820
28917
|
const selfSubmitFunction = null;
|
|
28821
28918
|
const stepMetadata = null;
|
|
28822
28919
|
let { callback } = $$props;
|
|
@@ -28888,7 +28985,7 @@ class Validated_create_username extends SvelteComponent {
|
|
|
28888
28985
|
constructor(options) {
|
|
28889
28986
|
super();
|
|
28890
28987
|
|
|
28891
|
-
init(this, options, instance$
|
|
28988
|
+
init(this, options, instance$9, create_fragment$9, safe_not_equal, {
|
|
28892
28989
|
selfSubmitFunction: 10,
|
|
28893
28990
|
stepMetadata: 11,
|
|
28894
28991
|
callback: 0,
|
|
@@ -29715,7 +29812,7 @@ function create_if_block_3$1(ctx) {
|
|
|
29715
29812
|
}
|
|
29716
29813
|
|
|
29717
29814
|
// (114:55)
|
|
29718
|
-
function create_if_block_2$
|
|
29815
|
+
function create_if_block_2$5(ctx) {
|
|
29719
29816
|
let confirmation;
|
|
29720
29817
|
let current;
|
|
29721
29818
|
const confirmation_spread_levels = [/*newProps*/ ctx[19]];
|
|
@@ -29758,7 +29855,7 @@ function create_if_block_2$4(ctx) {
|
|
|
29758
29855
|
}
|
|
29759
29856
|
|
|
29760
29857
|
// (108:49)
|
|
29761
|
-
function create_if_block_1$
|
|
29858
|
+
function create_if_block_1$5(ctx) {
|
|
29762
29859
|
let choice;
|
|
29763
29860
|
let current;
|
|
29764
29861
|
const choice_spread_levels = [/*newProps*/ ctx[19]];
|
|
@@ -29801,7 +29898,7 @@ function create_if_block_1$4(ctx) {
|
|
|
29801
29898
|
}
|
|
29802
29899
|
|
|
29803
29900
|
// (102:0) {#if cbType === CallbackType.BooleanAttributeInputCallback}
|
|
29804
|
-
function create_if_block$
|
|
29901
|
+
function create_if_block$5(ctx) {
|
|
29805
29902
|
let boolean;
|
|
29806
29903
|
let current;
|
|
29807
29904
|
const boolean_spread_levels = [/*newProps*/ ctx[19]];
|
|
@@ -29843,16 +29940,16 @@ function create_if_block$4(ctx) {
|
|
|
29843
29940
|
};
|
|
29844
29941
|
}
|
|
29845
29942
|
|
|
29846
|
-
function create_fragment$
|
|
29943
|
+
function create_fragment$8(ctx) {
|
|
29847
29944
|
let current_block_type_index;
|
|
29848
29945
|
let if_block;
|
|
29849
29946
|
let if_block_anchor;
|
|
29850
29947
|
let current;
|
|
29851
29948
|
|
|
29852
29949
|
const if_block_creators = [
|
|
29853
|
-
create_if_block$
|
|
29854
|
-
create_if_block_1$
|
|
29855
|
-
create_if_block_2$
|
|
29950
|
+
create_if_block$5,
|
|
29951
|
+
create_if_block_1$5,
|
|
29952
|
+
create_if_block_2$5,
|
|
29856
29953
|
create_if_block_3$1,
|
|
29857
29954
|
create_if_block_4,
|
|
29858
29955
|
create_if_block_5,
|
|
@@ -29967,7 +30064,7 @@ function create_fragment$7(ctx) {
|
|
|
29967
30064
|
};
|
|
29968
30065
|
}
|
|
29969
30066
|
|
|
29970
|
-
function instance$
|
|
30067
|
+
function instance$8($$self, $$props, $$invalidate) {
|
|
29971
30068
|
let { props } = $$props;
|
|
29972
30069
|
let cbType;
|
|
29973
30070
|
let _BooleanAttributeInputCallback;
|
|
@@ -30079,13 +30176,13 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
30079
30176
|
class Callback_mapper extends SvelteComponent {
|
|
30080
30177
|
constructor(options) {
|
|
30081
30178
|
super();
|
|
30082
|
-
init(this, options, instance$
|
|
30179
|
+
init(this, options, instance$8, create_fragment$8, safe_not_equal, { props: 0 });
|
|
30083
30180
|
}
|
|
30084
30181
|
}
|
|
30085
30182
|
|
|
30086
30183
|
/* src/lib/journey/stages/generic.svelte generated by Svelte v3.55.1 */
|
|
30087
30184
|
|
|
30088
|
-
function get_each_context$
|
|
30185
|
+
function get_each_context$3(ctx, list, i) {
|
|
30089
30186
|
const child_ctx = ctx.slice();
|
|
30090
30187
|
child_ctx[15] = list[i];
|
|
30091
30188
|
child_ctx[17] = i;
|
|
@@ -30093,7 +30190,7 @@ function get_each_context$2(ctx, list, i) {
|
|
|
30093
30190
|
}
|
|
30094
30191
|
|
|
30095
30192
|
// (71:2) {#if form?.icon}
|
|
30096
|
-
function create_if_block_2$
|
|
30193
|
+
function create_if_block_2$4(ctx) {
|
|
30097
30194
|
let div;
|
|
30098
30195
|
let shieldicon;
|
|
30099
30196
|
let current;
|
|
@@ -30133,7 +30230,7 @@ function create_if_block_2$3(ctx) {
|
|
|
30133
30230
|
}
|
|
30134
30231
|
|
|
30135
30232
|
// (87:2) {#if form?.message}
|
|
30136
|
-
function create_if_block_1$
|
|
30233
|
+
function create_if_block_1$4(ctx) {
|
|
30137
30234
|
let alert;
|
|
30138
30235
|
let current;
|
|
30139
30236
|
|
|
@@ -30142,7 +30239,7 @@ function create_if_block_1$3(ctx) {
|
|
|
30142
30239
|
id: formFailureMessageId,
|
|
30143
30240
|
needsFocus: /*alertNeedsFocus*/ ctx[5],
|
|
30144
30241
|
type: "error",
|
|
30145
|
-
$$slots: { default: [create_default_slot_2$
|
|
30242
|
+
$$slots: { default: [create_default_slot_2$3] },
|
|
30146
30243
|
$$scope: { ctx }
|
|
30147
30244
|
}
|
|
30148
30245
|
});
|
|
@@ -30181,7 +30278,7 @@ function create_if_block_1$3(ctx) {
|
|
|
30181
30278
|
}
|
|
30182
30279
|
|
|
30183
30280
|
// (88:4) <Alert id={formFailureMessageId} needsFocus={alertNeedsFocus} type="error">
|
|
30184
|
-
function create_default_slot_2$
|
|
30281
|
+
function create_default_slot_2$3(ctx) {
|
|
30185
30282
|
let t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "";
|
|
30186
30283
|
let t;
|
|
30187
30284
|
|
|
@@ -30202,7 +30299,7 @@ function create_default_slot_2$2(ctx) {
|
|
|
30202
30299
|
}
|
|
30203
30300
|
|
|
30204
30301
|
// (93:2) {#each step?.callbacks as callback, idx}
|
|
30205
|
-
function create_each_block$
|
|
30302
|
+
function create_each_block$3(ctx) {
|
|
30206
30303
|
let callbackmapper;
|
|
30207
30304
|
let current;
|
|
30208
30305
|
|
|
@@ -30255,7 +30352,7 @@ function create_each_block$2(ctx) {
|
|
|
30255
30352
|
}
|
|
30256
30353
|
|
|
30257
30354
|
// (105:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
|
|
30258
|
-
function create_if_block$
|
|
30355
|
+
function create_if_block$4(ctx) {
|
|
30259
30356
|
let button;
|
|
30260
30357
|
let current;
|
|
30261
30358
|
|
|
@@ -30265,7 +30362,7 @@ function create_if_block$3(ctx) {
|
|
|
30265
30362
|
style: "primary",
|
|
30266
30363
|
type: "submit",
|
|
30267
30364
|
width: "full",
|
|
30268
|
-
$$slots: { default: [create_default_slot_1$
|
|
30365
|
+
$$slots: { default: [create_default_slot_1$4] },
|
|
30269
30366
|
$$scope: { ctx }
|
|
30270
30367
|
}
|
|
30271
30368
|
});
|
|
@@ -30304,7 +30401,7 @@ function create_if_block$3(ctx) {
|
|
|
30304
30401
|
}
|
|
30305
30402
|
|
|
30306
30403
|
// (106:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
|
|
30307
|
-
function create_default_slot_1$
|
|
30404
|
+
function create_default_slot_1$4(ctx) {
|
|
30308
30405
|
let t;
|
|
30309
30406
|
let current;
|
|
30310
30407
|
t = new Locale_strings({ props: { key: "nextButton" } });
|
|
@@ -30334,7 +30431,7 @@ function create_default_slot_1$3(ctx) {
|
|
|
30334
30431
|
}
|
|
30335
30432
|
|
|
30336
30433
|
// (64:0) <Form bind:formEl ariaDescribedBy={formAriaDescriptor} id={formElementId} needsFocus={formNeedsFocus} onSubmitWhenValid={submitFormWrapper} >
|
|
30337
|
-
function create_default_slot$
|
|
30434
|
+
function create_default_slot$5(ctx) {
|
|
30338
30435
|
let t0;
|
|
30339
30436
|
let header;
|
|
30340
30437
|
let h1;
|
|
@@ -30348,7 +30445,7 @@ function create_default_slot$4(ctx) {
|
|
|
30348
30445
|
let t5;
|
|
30349
30446
|
let backto;
|
|
30350
30447
|
let current;
|
|
30351
|
-
let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$
|
|
30448
|
+
let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$4();
|
|
30352
30449
|
|
|
30353
30450
|
sanitize0 = new Server_strings({
|
|
30354
30451
|
props: {
|
|
@@ -30364,19 +30461,19 @@ function create_default_slot$4(ctx) {
|
|
|
30364
30461
|
}
|
|
30365
30462
|
});
|
|
30366
30463
|
|
|
30367
|
-
let if_block1 = /*form*/ ctx[1]?.message && create_if_block_1$
|
|
30464
|
+
let if_block1 = /*form*/ ctx[1]?.message && create_if_block_1$4(ctx);
|
|
30368
30465
|
let each_value = /*step*/ ctx[4]?.callbacks;
|
|
30369
30466
|
let each_blocks = [];
|
|
30370
30467
|
|
|
30371
30468
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
30372
|
-
each_blocks[i] = create_each_block$
|
|
30469
|
+
each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
|
|
30373
30470
|
}
|
|
30374
30471
|
|
|
30375
30472
|
const out = i => transition_out(each_blocks[i], 1, 1, () => {
|
|
30376
30473
|
each_blocks[i] = null;
|
|
30377
30474
|
});
|
|
30378
30475
|
|
|
30379
|
-
let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$
|
|
30476
|
+
let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$4(ctx);
|
|
30380
30477
|
backto = new Back_to({ props: { journey: /*journey*/ ctx[2] } });
|
|
30381
30478
|
|
|
30382
30479
|
return {
|
|
@@ -30436,7 +30533,7 @@ function create_default_slot$4(ctx) {
|
|
|
30436
30533
|
transition_in(if_block0, 1);
|
|
30437
30534
|
}
|
|
30438
30535
|
} else {
|
|
30439
|
-
if_block0 = create_if_block_2$
|
|
30536
|
+
if_block0 = create_if_block_2$4();
|
|
30440
30537
|
if_block0.c();
|
|
30441
30538
|
transition_in(if_block0, 1);
|
|
30442
30539
|
if_block0.m(t0.parentNode, t0);
|
|
@@ -30466,7 +30563,7 @@ function create_default_slot$4(ctx) {
|
|
|
30466
30563
|
transition_in(if_block1, 1);
|
|
30467
30564
|
}
|
|
30468
30565
|
} else {
|
|
30469
|
-
if_block1 = create_if_block_1$
|
|
30566
|
+
if_block1 = create_if_block_1$4(ctx);
|
|
30470
30567
|
if_block1.c();
|
|
30471
30568
|
transition_in(if_block1, 1);
|
|
30472
30569
|
if_block1.m(t3.parentNode, t3);
|
|
@@ -30486,13 +30583,13 @@ function create_default_slot$4(ctx) {
|
|
|
30486
30583
|
let i;
|
|
30487
30584
|
|
|
30488
30585
|
for (i = 0; i < each_value.length; i += 1) {
|
|
30489
|
-
const child_ctx = get_each_context$
|
|
30586
|
+
const child_ctx = get_each_context$3(ctx, each_value, i);
|
|
30490
30587
|
|
|
30491
30588
|
if (each_blocks[i]) {
|
|
30492
30589
|
each_blocks[i].p(child_ctx, dirty);
|
|
30493
30590
|
transition_in(each_blocks[i], 1);
|
|
30494
30591
|
} else {
|
|
30495
|
-
each_blocks[i] = create_each_block$
|
|
30592
|
+
each_blocks[i] = create_each_block$3(child_ctx);
|
|
30496
30593
|
each_blocks[i].c();
|
|
30497
30594
|
transition_in(each_blocks[i], 1);
|
|
30498
30595
|
each_blocks[i].m(t4.parentNode, t4);
|
|
@@ -30516,7 +30613,7 @@ function create_default_slot$4(ctx) {
|
|
|
30516
30613
|
transition_in(if_block2, 1);
|
|
30517
30614
|
}
|
|
30518
30615
|
} else {
|
|
30519
|
-
if_block2 = create_if_block$
|
|
30616
|
+
if_block2 = create_if_block$4(ctx);
|
|
30520
30617
|
if_block2.c();
|
|
30521
30618
|
transition_in(if_block2, 1);
|
|
30522
30619
|
if_block2.m(t5.parentNode, t5);
|
|
@@ -30584,7 +30681,7 @@ function create_default_slot$4(ctx) {
|
|
|
30584
30681
|
};
|
|
30585
30682
|
}
|
|
30586
30683
|
|
|
30587
|
-
function create_fragment$
|
|
30684
|
+
function create_fragment$7(ctx) {
|
|
30588
30685
|
let form_1;
|
|
30589
30686
|
let updating_formEl;
|
|
30590
30687
|
let current;
|
|
@@ -30598,7 +30695,7 @@ function create_fragment$6(ctx) {
|
|
|
30598
30695
|
id: formElementId,
|
|
30599
30696
|
needsFocus: /*formNeedsFocus*/ ctx[8],
|
|
30600
30697
|
onSubmitWhenValid: /*submitFormWrapper*/ ctx[12],
|
|
30601
|
-
$$slots: { default: [create_default_slot$
|
|
30698
|
+
$$slots: { default: [create_default_slot$5] },
|
|
30602
30699
|
$$scope: { ctx }
|
|
30603
30700
|
};
|
|
30604
30701
|
|
|
@@ -30653,7 +30750,7 @@ const formFailureMessageId = 'genericStepFailureMessage';
|
|
|
30653
30750
|
const formHeaderId = 'genericStepHeader';
|
|
30654
30751
|
const formElementId = 'genericStepForm';
|
|
30655
30752
|
|
|
30656
|
-
function instance$
|
|
30753
|
+
function instance$7($$self, $$props, $$invalidate) {
|
|
30657
30754
|
let $style;
|
|
30658
30755
|
component_subscribe($$self, style, $$value => $$invalidate(10, $style = $$value));
|
|
30659
30756
|
let { form } = $$props;
|
|
@@ -30748,7 +30845,7 @@ class Generic extends SvelteComponent {
|
|
|
30748
30845
|
constructor(options) {
|
|
30749
30846
|
super();
|
|
30750
30847
|
|
|
30751
|
-
init(this, options, instance$
|
|
30848
|
+
init(this, options, instance$7, create_fragment$7, safe_not_equal, {
|
|
30752
30849
|
form: 1,
|
|
30753
30850
|
formEl: 0,
|
|
30754
30851
|
journey: 2,
|
|
@@ -30758,9 +30855,9 @@ class Generic extends SvelteComponent {
|
|
|
30758
30855
|
}
|
|
30759
30856
|
}
|
|
30760
30857
|
|
|
30761
|
-
/* src/lib/components/icons/
|
|
30858
|
+
/* src/lib/components/icons/key-icon.svelte generated by Svelte v3.55.1 */
|
|
30762
30859
|
|
|
30763
|
-
function create_fragment$
|
|
30860
|
+
function create_fragment$6(ctx) {
|
|
30764
30861
|
let svg;
|
|
30765
30862
|
let path0;
|
|
30766
30863
|
let path1;
|
|
@@ -30778,12 +30875,12 @@ function create_fragment$5(ctx) {
|
|
|
30778
30875
|
if (default_slot) default_slot.c();
|
|
30779
30876
|
attr(path0, "d", "M0 0h24v24H0z");
|
|
30780
30877
|
attr(path0, "fill", "none");
|
|
30781
|
-
attr(path1, "d", "
|
|
30878
|
+
attr(path1, "d", "M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z");
|
|
30782
30879
|
attr(svg, "class", /*classes*/ ctx[0]);
|
|
30783
|
-
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
30784
30880
|
attr(svg, "height", /*size*/ ctx[1]);
|
|
30785
|
-
attr(svg, "viewBox", "0 0 24 24");
|
|
30786
30881
|
attr(svg, "width", /*size*/ ctx[1]);
|
|
30882
|
+
attr(svg, "viewBox", "0 0 24 24");
|
|
30883
|
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
30787
30884
|
},
|
|
30788
30885
|
m(target, anchor) {
|
|
30789
30886
|
insert(target, svg, anchor);
|
|
@@ -30841,7 +30938,7 @@ function create_fragment$5(ctx) {
|
|
|
30841
30938
|
};
|
|
30842
30939
|
}
|
|
30843
30940
|
|
|
30844
|
-
function instance$
|
|
30941
|
+
function instance$6($$self, $$props, $$invalidate) {
|
|
30845
30942
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
30846
30943
|
let { classes = '' } = $$props;
|
|
30847
30944
|
let { size = '24px' } = $$props;
|
|
@@ -30855,29 +30952,29 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
30855
30952
|
return [classes, size, $$scope, slots];
|
|
30856
30953
|
}
|
|
30857
30954
|
|
|
30858
|
-
class
|
|
30955
|
+
class Key_icon extends SvelteComponent {
|
|
30859
30956
|
constructor(options) {
|
|
30860
30957
|
super();
|
|
30861
|
-
init(this, options, instance$
|
|
30958
|
+
init(this, options, instance$6, create_fragment$6, safe_not_equal, { classes: 0, size: 1 });
|
|
30862
30959
|
}
|
|
30863
30960
|
}
|
|
30864
30961
|
|
|
30865
|
-
/* src/lib/journey/stages/
|
|
30962
|
+
/* src/lib/journey/stages/one-time-password.svelte generated by Svelte v3.55.1 */
|
|
30866
30963
|
|
|
30867
|
-
function get_each_context$
|
|
30964
|
+
function get_each_context$2(ctx, list, i) {
|
|
30868
30965
|
const child_ctx = ctx.slice();
|
|
30869
|
-
child_ctx[
|
|
30870
|
-
child_ctx[
|
|
30966
|
+
child_ctx[10] = list[i];
|
|
30967
|
+
child_ctx[12] = i;
|
|
30871
30968
|
return child_ctx;
|
|
30872
30969
|
}
|
|
30873
30970
|
|
|
30874
|
-
// (
|
|
30875
|
-
function create_if_block_2$
|
|
30971
|
+
// (39:2) {#if form?.icon}
|
|
30972
|
+
function create_if_block_2$3(ctx) {
|
|
30876
30973
|
let div;
|
|
30877
|
-
let
|
|
30974
|
+
let keyicon;
|
|
30878
30975
|
let current;
|
|
30879
30976
|
|
|
30880
|
-
|
|
30977
|
+
keyicon = new Key_icon({
|
|
30881
30978
|
props: {
|
|
30882
30979
|
classes: "tw_text-gray-400 tw_fill-current",
|
|
30883
30980
|
size: "72px"
|
|
@@ -30887,32 +30984,32 @@ function create_if_block_2$2(ctx) {
|
|
|
30887
30984
|
return {
|
|
30888
30985
|
c() {
|
|
30889
30986
|
div = element("div");
|
|
30890
|
-
create_component(
|
|
30987
|
+
create_component(keyicon.$$.fragment);
|
|
30891
30988
|
attr(div, "class", "tw_flex tw_justify-center");
|
|
30892
30989
|
},
|
|
30893
30990
|
m(target, anchor) {
|
|
30894
30991
|
insert(target, div, anchor);
|
|
30895
|
-
mount_component(
|
|
30992
|
+
mount_component(keyicon, div, null);
|
|
30896
30993
|
current = true;
|
|
30897
30994
|
},
|
|
30898
30995
|
i(local) {
|
|
30899
30996
|
if (current) return;
|
|
30900
|
-
transition_in(
|
|
30997
|
+
transition_in(keyicon.$$.fragment, local);
|
|
30901
30998
|
current = true;
|
|
30902
30999
|
},
|
|
30903
31000
|
o(local) {
|
|
30904
|
-
transition_out(
|
|
31001
|
+
transition_out(keyicon.$$.fragment, local);
|
|
30905
31002
|
current = false;
|
|
30906
31003
|
},
|
|
30907
31004
|
d(detaching) {
|
|
30908
31005
|
if (detaching) detach(div);
|
|
30909
|
-
destroy_component(
|
|
31006
|
+
destroy_component(keyicon);
|
|
30910
31007
|
}
|
|
30911
31008
|
};
|
|
30912
31009
|
}
|
|
30913
31010
|
|
|
30914
|
-
// (
|
|
30915
|
-
function create_if_block_1$
|
|
31011
|
+
// (53:2) {#if form?.message}
|
|
31012
|
+
function create_if_block_1$3(ctx) {
|
|
30916
31013
|
let alert;
|
|
30917
31014
|
let current;
|
|
30918
31015
|
|
|
@@ -30921,7 +31018,7 @@ function create_if_block_1$2(ctx) {
|
|
|
30921
31018
|
id: "formFailureMessageAlert",
|
|
30922
31019
|
needsFocus: /*alertNeedsFocus*/ ctx[5],
|
|
30923
31020
|
type: "error",
|
|
30924
|
-
$$slots: { default: [create_default_slot_2$
|
|
31021
|
+
$$slots: { default: [create_default_slot_2$2] },
|
|
30925
31022
|
$$scope: { ctx }
|
|
30926
31023
|
}
|
|
30927
31024
|
});
|
|
@@ -30938,7 +31035,7 @@ function create_if_block_1$2(ctx) {
|
|
|
30938
31035
|
const alert_changes = {};
|
|
30939
31036
|
if (dirty & /*alertNeedsFocus*/ 32) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[5];
|
|
30940
31037
|
|
|
30941
|
-
if (dirty & /*$$scope, formMessageKey, form*/
|
|
31038
|
+
if (dirty & /*$$scope, formMessageKey, form*/ 8258) {
|
|
30942
31039
|
alert_changes.$$scope = { dirty, ctx };
|
|
30943
31040
|
}
|
|
30944
31041
|
|
|
@@ -30959,8 +31056,8 @@ function create_if_block_1$2(ctx) {
|
|
|
30959
31056
|
};
|
|
30960
31057
|
}
|
|
30961
31058
|
|
|
30962
|
-
// (
|
|
30963
|
-
function create_default_slot_2$
|
|
31059
|
+
// (54:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
|
|
31060
|
+
function create_default_slot_2$2(ctx) {
|
|
30964
31061
|
let t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "";
|
|
30965
31062
|
let t;
|
|
30966
31063
|
|
|
@@ -30980,19 +31077,19 @@ function create_default_slot_2$1(ctx) {
|
|
|
30980
31077
|
};
|
|
30981
31078
|
}
|
|
30982
31079
|
|
|
30983
|
-
// (
|
|
30984
|
-
function create_each_block$
|
|
31080
|
+
// (59:2) {#each step?.callbacks as callback, idx}
|
|
31081
|
+
function create_each_block$2(ctx) {
|
|
30985
31082
|
let callbackmapper;
|
|
30986
31083
|
let current;
|
|
30987
31084
|
|
|
30988
31085
|
callbackmapper = new Callback_mapper({
|
|
30989
31086
|
props: {
|
|
30990
31087
|
props: {
|
|
30991
|
-
callback: /*callback*/ ctx[
|
|
30992
|
-
callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[
|
|
30993
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
31088
|
+
callback: /*callback*/ ctx[10],
|
|
31089
|
+
callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[12]],
|
|
31090
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[8],
|
|
30994
31091
|
stepMetadata: /*metadata*/ ctx[3]?.step && { .../*metadata*/ ctx[3].step },
|
|
30995
|
-
style: /*$style*/ ctx[
|
|
31092
|
+
style: /*$style*/ ctx[7]
|
|
30996
31093
|
}
|
|
30997
31094
|
}
|
|
30998
31095
|
});
|
|
@@ -31008,12 +31105,12 @@ function create_each_block$1(ctx) {
|
|
|
31008
31105
|
p(ctx, dirty) {
|
|
31009
31106
|
const callbackmapper_changes = {};
|
|
31010
31107
|
|
|
31011
|
-
if (dirty & /*step, metadata, $style*/
|
|
31012
|
-
callback: /*callback*/ ctx[
|
|
31013
|
-
callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[
|
|
31014
|
-
selfSubmitFunction: /*determineSubmission*/ ctx[
|
|
31108
|
+
if (dirty & /*step, metadata, $style*/ 152) callbackmapper_changes.props = {
|
|
31109
|
+
callback: /*callback*/ ctx[10],
|
|
31110
|
+
callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[12]],
|
|
31111
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[8],
|
|
31015
31112
|
stepMetadata: /*metadata*/ ctx[3]?.step && { .../*metadata*/ ctx[3].step },
|
|
31016
|
-
style: /*$style*/ ctx[
|
|
31113
|
+
style: /*$style*/ ctx[7]
|
|
31017
31114
|
};
|
|
31018
31115
|
|
|
31019
31116
|
callbackmapper.$set(callbackmapper_changes);
|
|
@@ -31033,8 +31130,8 @@ function create_each_block$1(ctx) {
|
|
|
31033
31130
|
};
|
|
31034
31131
|
}
|
|
31035
31132
|
|
|
31036
|
-
// (
|
|
31037
|
-
function create_if_block$
|
|
31133
|
+
// (71:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
|
|
31134
|
+
function create_if_block$3(ctx) {
|
|
31038
31135
|
let button;
|
|
31039
31136
|
let current;
|
|
31040
31137
|
|
|
@@ -31044,7 +31141,7 @@ function create_if_block$2(ctx) {
|
|
|
31044
31141
|
style: "primary",
|
|
31045
31142
|
type: "submit",
|
|
31046
31143
|
width: "full",
|
|
31047
|
-
$$slots: { default: [create_default_slot_1$
|
|
31144
|
+
$$slots: { default: [create_default_slot_1$3] },
|
|
31048
31145
|
$$scope: { ctx }
|
|
31049
31146
|
}
|
|
31050
31147
|
});
|
|
@@ -31061,7 +31158,7 @@ function create_if_block$2(ctx) {
|
|
|
31061
31158
|
const button_changes = {};
|
|
31062
31159
|
if (dirty & /*journey*/ 4) button_changes.busy = /*journey*/ ctx[2]?.loading;
|
|
31063
31160
|
|
|
31064
|
-
if (dirty & /*$$scope*/
|
|
31161
|
+
if (dirty & /*$$scope*/ 8192) {
|
|
31065
31162
|
button_changes.$$scope = { dirty, ctx };
|
|
31066
31163
|
}
|
|
31067
31164
|
|
|
@@ -31082,11 +31179,11 @@ function create_if_block$2(ctx) {
|
|
|
31082
31179
|
};
|
|
31083
31180
|
}
|
|
31084
31181
|
|
|
31085
|
-
// (
|
|
31086
|
-
function create_default_slot_1$
|
|
31182
|
+
// (72:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
|
|
31183
|
+
function create_default_slot_1$3(ctx) {
|
|
31087
31184
|
let t;
|
|
31088
31185
|
let current;
|
|
31089
|
-
t = new Locale_strings({ props: { key: "
|
|
31186
|
+
t = new Locale_strings({ props: { key: "loginButton" } });
|
|
31090
31187
|
|
|
31091
31188
|
return {
|
|
31092
31189
|
c() {
|
|
@@ -31112,8 +31209,8 @@ function create_default_slot_1$2(ctx) {
|
|
|
31112
31209
|
};
|
|
31113
31210
|
}
|
|
31114
31211
|
|
|
31115
|
-
// (
|
|
31116
|
-
function create_default_slot$
|
|
31212
|
+
// (38:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
|
|
31213
|
+
function create_default_slot$4(ctx) {
|
|
31117
31214
|
let t0;
|
|
31118
31215
|
let h1;
|
|
31119
31216
|
let t1;
|
|
@@ -31125,26 +31222,29 @@ function create_default_slot$3(ctx) {
|
|
|
31125
31222
|
let t6;
|
|
31126
31223
|
let if_block2_anchor;
|
|
31127
31224
|
let current;
|
|
31128
|
-
let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$
|
|
31129
|
-
|
|
31225
|
+
let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$3();
|
|
31226
|
+
|
|
31227
|
+
t1 = new Locale_strings({
|
|
31228
|
+
props: { key: "twoFactorAuthentication" }
|
|
31229
|
+
});
|
|
31130
31230
|
|
|
31131
31231
|
t3 = new Locale_strings({
|
|
31132
|
-
props: { key: "
|
|
31232
|
+
props: { key: "useTheAuthenticatorAppOnYourPhone" }
|
|
31133
31233
|
});
|
|
31134
31234
|
|
|
31135
|
-
let if_block1 = /*form*/ ctx[1]
|
|
31235
|
+
let if_block1 = /*form*/ ctx[1]?.message && create_if_block_1$3(ctx);
|
|
31136
31236
|
let each_value = /*step*/ ctx[4]?.callbacks;
|
|
31137
31237
|
let each_blocks = [];
|
|
31138
31238
|
|
|
31139
31239
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
31140
|
-
each_blocks[i] = create_each_block$
|
|
31240
|
+
each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
|
|
31141
31241
|
}
|
|
31142
31242
|
|
|
31143
31243
|
const out = i => transition_out(each_blocks[i], 1, 1, () => {
|
|
31144
31244
|
each_blocks[i] = null;
|
|
31145
31245
|
});
|
|
31146
31246
|
|
|
31147
|
-
let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$
|
|
31247
|
+
let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$3(ctx);
|
|
31148
31248
|
|
|
31149
31249
|
return {
|
|
31150
31250
|
c() {
|
|
@@ -31167,7 +31267,7 @@ function create_default_slot$3(ctx) {
|
|
|
31167
31267
|
if (if_block2) if_block2.c();
|
|
31168
31268
|
if_block2_anchor = empty();
|
|
31169
31269
|
attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
|
|
31170
|
-
attr(p, "class", "tw_text-
|
|
31270
|
+
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");
|
|
31171
31271
|
},
|
|
31172
31272
|
m(target, anchor) {
|
|
31173
31273
|
if (if_block0) if_block0.m(target, anchor);
|
|
@@ -31177,7 +31277,6 @@ function create_default_slot$3(ctx) {
|
|
|
31177
31277
|
insert(target, t2, anchor);
|
|
31178
31278
|
insert(target, p, anchor);
|
|
31179
31279
|
mount_component(t3, p, null);
|
|
31180
|
-
/*p_binding*/ ctx[10](p);
|
|
31181
31280
|
insert(target, t4, anchor);
|
|
31182
31281
|
if (if_block1) if_block1.m(target, anchor);
|
|
31183
31282
|
insert(target, t5, anchor);
|
|
@@ -31198,7 +31297,7 @@ function create_default_slot$3(ctx) {
|
|
|
31198
31297
|
transition_in(if_block0, 1);
|
|
31199
31298
|
}
|
|
31200
31299
|
} else {
|
|
31201
|
-
if_block0 = create_if_block_2$
|
|
31300
|
+
if_block0 = create_if_block_2$3();
|
|
31202
31301
|
if_block0.c();
|
|
31203
31302
|
transition_in(if_block0, 1);
|
|
31204
31303
|
if_block0.m(t0.parentNode, t0);
|
|
@@ -31213,7 +31312,7 @@ function create_default_slot$3(ctx) {
|
|
|
31213
31312
|
check_outros();
|
|
31214
31313
|
}
|
|
31215
31314
|
|
|
31216
|
-
if (/*form*/ ctx[1]
|
|
31315
|
+
if (/*form*/ ctx[1]?.message) {
|
|
31217
31316
|
if (if_block1) {
|
|
31218
31317
|
if_block1.p(ctx, dirty);
|
|
31219
31318
|
|
|
@@ -31221,7 +31320,7 @@ function create_default_slot$3(ctx) {
|
|
|
31221
31320
|
transition_in(if_block1, 1);
|
|
31222
31321
|
}
|
|
31223
31322
|
} else {
|
|
31224
|
-
if_block1 = create_if_block_1$
|
|
31323
|
+
if_block1 = create_if_block_1$3(ctx);
|
|
31225
31324
|
if_block1.c();
|
|
31226
31325
|
transition_in(if_block1, 1);
|
|
31227
31326
|
if_block1.m(t5.parentNode, t5);
|
|
@@ -31236,18 +31335,18 @@ function create_default_slot$3(ctx) {
|
|
|
31236
31335
|
check_outros();
|
|
31237
31336
|
}
|
|
31238
31337
|
|
|
31239
|
-
if (dirty & /*step, metadata, determineSubmission, $style*/
|
|
31338
|
+
if (dirty & /*step, metadata, determineSubmission, $style*/ 408) {
|
|
31240
31339
|
each_value = /*step*/ ctx[4]?.callbacks;
|
|
31241
31340
|
let i;
|
|
31242
31341
|
|
|
31243
31342
|
for (i = 0; i < each_value.length; i += 1) {
|
|
31244
|
-
const child_ctx = get_each_context$
|
|
31343
|
+
const child_ctx = get_each_context$2(ctx, each_value, i);
|
|
31245
31344
|
|
|
31246
31345
|
if (each_blocks[i]) {
|
|
31247
31346
|
each_blocks[i].p(child_ctx, dirty);
|
|
31248
31347
|
transition_in(each_blocks[i], 1);
|
|
31249
31348
|
} else {
|
|
31250
|
-
each_blocks[i] = create_each_block$
|
|
31349
|
+
each_blocks[i] = create_each_block$2(child_ctx);
|
|
31251
31350
|
each_blocks[i].c();
|
|
31252
31351
|
transition_in(each_blocks[i], 1);
|
|
31253
31352
|
each_blocks[i].m(t6.parentNode, t6);
|
|
@@ -31271,7 +31370,7 @@ function create_default_slot$3(ctx) {
|
|
|
31271
31370
|
transition_in(if_block2, 1);
|
|
31272
31371
|
}
|
|
31273
31372
|
} else {
|
|
31274
|
-
if_block2 = create_if_block$
|
|
31373
|
+
if_block2 = create_if_block$3(ctx);
|
|
31275
31374
|
if_block2.c();
|
|
31276
31375
|
transition_in(if_block2, 1);
|
|
31277
31376
|
if_block2.m(if_block2_anchor.parentNode, if_block2_anchor);
|
|
@@ -31322,7 +31421,6 @@ function create_default_slot$3(ctx) {
|
|
|
31322
31421
|
if (detaching) detach(t2);
|
|
31323
31422
|
if (detaching) detach(p);
|
|
31324
31423
|
destroy_component(t3);
|
|
31325
|
-
/*p_binding*/ ctx[10](null);
|
|
31326
31424
|
if (detaching) detach(t4);
|
|
31327
31425
|
if (if_block1) if_block1.d(detaching);
|
|
31328
31426
|
if (detaching) detach(t5);
|
|
@@ -31334,19 +31432,19 @@ function create_default_slot$3(ctx) {
|
|
|
31334
31432
|
};
|
|
31335
31433
|
}
|
|
31336
31434
|
|
|
31337
|
-
function create_fragment$
|
|
31435
|
+
function create_fragment$5(ctx) {
|
|
31338
31436
|
let form_1;
|
|
31339
31437
|
let updating_formEl;
|
|
31340
31438
|
let current;
|
|
31341
31439
|
|
|
31342
31440
|
function form_1_formEl_binding(value) {
|
|
31343
|
-
/*form_1_formEl_binding*/ ctx[
|
|
31441
|
+
/*form_1_formEl_binding*/ ctx[9](value);
|
|
31344
31442
|
}
|
|
31345
31443
|
|
|
31346
31444
|
let form_1_props = {
|
|
31347
31445
|
ariaDescribedBy: "formFailureMessageAlert",
|
|
31348
31446
|
onSubmitWhenValid: /*form*/ ctx[1]?.submit,
|
|
31349
|
-
$$slots: { default: [create_default_slot$
|
|
31447
|
+
$$slots: { default: [create_default_slot$4] },
|
|
31350
31448
|
$$scope: { ctx }
|
|
31351
31449
|
};
|
|
31352
31450
|
|
|
@@ -31369,7 +31467,7 @@ function create_fragment$4(ctx) {
|
|
|
31369
31467
|
const form_1_changes = {};
|
|
31370
31468
|
if (dirty & /*form*/ 2) form_1_changes.onSubmitWhenValid = /*form*/ ctx[1]?.submit;
|
|
31371
31469
|
|
|
31372
|
-
if (dirty & /*$$scope, journey, metadata, step, $style, alertNeedsFocus, formMessageKey, form
|
|
31470
|
+
if (dirty & /*$$scope, journey, metadata, step, $style, alertNeedsFocus, formMessageKey, form*/ 8446) {
|
|
31373
31471
|
form_1_changes.$$scope = { dirty, ctx };
|
|
31374
31472
|
}
|
|
31375
31473
|
|
|
@@ -31396,9 +31494,9 @@ function create_fragment$4(ctx) {
|
|
|
31396
31494
|
};
|
|
31397
31495
|
}
|
|
31398
31496
|
|
|
31399
|
-
function instance$
|
|
31497
|
+
function instance$5($$self, $$props, $$invalidate) {
|
|
31400
31498
|
let $style;
|
|
31401
|
-
component_subscribe($$self, style, $$value => $$invalidate(
|
|
31499
|
+
component_subscribe($$self, style, $$value => $$invalidate(7, $style = $$value));
|
|
31402
31500
|
let { form } = $$props;
|
|
31403
31501
|
let { formEl = null } = $$props;
|
|
31404
31502
|
let { journey } = $$props;
|
|
@@ -31406,7 +31504,6 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
31406
31504
|
let { step } = $$props;
|
|
31407
31505
|
let alertNeedsFocus = false;
|
|
31408
31506
|
let formMessageKey = '';
|
|
31409
|
-
let linkWrapper;
|
|
31410
31507
|
|
|
31411
31508
|
function determineSubmission() {
|
|
31412
31509
|
// TODO: the below is more strict; all self-submitting cbs have to complete before submitting
|
|
@@ -31421,15 +31518,6 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
31421
31518
|
$$invalidate(5, alertNeedsFocus = !!form?.message);
|
|
31422
31519
|
});
|
|
31423
31520
|
|
|
31424
|
-
onMount(() => captureLinks(linkWrapper, journey));
|
|
31425
|
-
|
|
31426
|
-
function p_binding($$value) {
|
|
31427
|
-
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
31428
|
-
linkWrapper = $$value;
|
|
31429
|
-
$$invalidate(7, linkWrapper);
|
|
31430
|
-
});
|
|
31431
|
-
}
|
|
31432
|
-
|
|
31433
31521
|
function form_1_formEl_binding(value) {
|
|
31434
31522
|
formEl = value;
|
|
31435
31523
|
$$invalidate(0, formEl);
|
|
@@ -31459,19 +31547,17 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
31459
31547
|
step,
|
|
31460
31548
|
alertNeedsFocus,
|
|
31461
31549
|
formMessageKey,
|
|
31462
|
-
linkWrapper,
|
|
31463
31550
|
$style,
|
|
31464
31551
|
determineSubmission,
|
|
31465
|
-
p_binding,
|
|
31466
31552
|
form_1_formEl_binding
|
|
31467
31553
|
];
|
|
31468
31554
|
}
|
|
31469
31555
|
|
|
31470
|
-
class
|
|
31556
|
+
class One_time_password extends SvelteComponent {
|
|
31471
31557
|
constructor(options) {
|
|
31472
31558
|
super();
|
|
31473
31559
|
|
|
31474
|
-
init(this, options, instance$
|
|
31560
|
+
init(this, options, instance$5, create_fragment$5, safe_not_equal, {
|
|
31475
31561
|
form: 1,
|
|
31476
31562
|
formEl: 0,
|
|
31477
31563
|
journey: 2,
|
|
@@ -31481,9 +31567,9 @@ class Registration extends SvelteComponent {
|
|
|
31481
31567
|
}
|
|
31482
31568
|
}
|
|
31483
31569
|
|
|
31484
|
-
/* src/lib/components/icons/
|
|
31570
|
+
/* src/lib/components/icons/new-user-icon.svelte generated by Svelte v3.55.1 */
|
|
31485
31571
|
|
|
31486
|
-
function create_fragment$
|
|
31572
|
+
function create_fragment$4(ctx) {
|
|
31487
31573
|
let svg;
|
|
31488
31574
|
let path0;
|
|
31489
31575
|
let path1;
|
|
@@ -31501,12 +31587,12 @@ function create_fragment$3(ctx) {
|
|
|
31501
31587
|
if (default_slot) default_slot.c();
|
|
31502
31588
|
attr(path0, "d", "M0 0h24v24H0z");
|
|
31503
31589
|
attr(path0, "fill", "none");
|
|
31504
|
-
attr(path1, "d", "
|
|
31590
|
+
attr(path1, "d", "M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z");
|
|
31505
31591
|
attr(svg, "class", /*classes*/ ctx[0]);
|
|
31592
|
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
31506
31593
|
attr(svg, "height", /*size*/ ctx[1]);
|
|
31507
|
-
attr(svg, "width", /*size*/ ctx[1]);
|
|
31508
31594
|
attr(svg, "viewBox", "0 0 24 24");
|
|
31509
|
-
attr(svg, "
|
|
31595
|
+
attr(svg, "width", /*size*/ ctx[1]);
|
|
31510
31596
|
},
|
|
31511
31597
|
m(target, anchor) {
|
|
31512
31598
|
insert(target, svg, anchor);
|
|
@@ -31564,7 +31650,7 @@ function create_fragment$3(ctx) {
|
|
|
31564
31650
|
};
|
|
31565
31651
|
}
|
|
31566
31652
|
|
|
31567
|
-
function instance$
|
|
31653
|
+
function instance$4($$self, $$props, $$invalidate) {
|
|
31568
31654
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
31569
31655
|
let { classes = '' } = $$props;
|
|
31570
31656
|
let { size = '24px' } = $$props;
|
|
@@ -31578,10 +31664,629 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
31578
31664
|
return [classes, size, $$scope, slots];
|
|
31579
31665
|
}
|
|
31580
31666
|
|
|
31581
|
-
class
|
|
31667
|
+
class New_user_icon extends SvelteComponent {
|
|
31582
31668
|
constructor(options) {
|
|
31583
31669
|
super();
|
|
31584
|
-
init(this, options, instance$
|
|
31670
|
+
init(this, options, instance$4, create_fragment$4, safe_not_equal, { classes: 0, size: 1 });
|
|
31671
|
+
}
|
|
31672
|
+
}
|
|
31673
|
+
|
|
31674
|
+
/* src/lib/journey/stages/registration.svelte generated by Svelte v3.55.1 */
|
|
31675
|
+
|
|
31676
|
+
function get_each_context$1(ctx, list, i) {
|
|
31677
|
+
const child_ctx = ctx.slice();
|
|
31678
|
+
child_ctx[12] = list[i];
|
|
31679
|
+
child_ctx[14] = i;
|
|
31680
|
+
return child_ctx;
|
|
31681
|
+
}
|
|
31682
|
+
|
|
31683
|
+
// (44:2) {#if form?.icon}
|
|
31684
|
+
function create_if_block_2$2(ctx) {
|
|
31685
|
+
let div;
|
|
31686
|
+
let newusericon;
|
|
31687
|
+
let current;
|
|
31688
|
+
|
|
31689
|
+
newusericon = new New_user_icon({
|
|
31690
|
+
props: {
|
|
31691
|
+
classes: "tw_text-gray-400 tw_fill-current",
|
|
31692
|
+
size: "72px"
|
|
31693
|
+
}
|
|
31694
|
+
});
|
|
31695
|
+
|
|
31696
|
+
return {
|
|
31697
|
+
c() {
|
|
31698
|
+
div = element("div");
|
|
31699
|
+
create_component(newusericon.$$.fragment);
|
|
31700
|
+
attr(div, "class", "tw_flex tw_justify-center");
|
|
31701
|
+
},
|
|
31702
|
+
m(target, anchor) {
|
|
31703
|
+
insert(target, div, anchor);
|
|
31704
|
+
mount_component(newusericon, div, null);
|
|
31705
|
+
current = true;
|
|
31706
|
+
},
|
|
31707
|
+
i(local) {
|
|
31708
|
+
if (current) return;
|
|
31709
|
+
transition_in(newusericon.$$.fragment, local);
|
|
31710
|
+
current = true;
|
|
31711
|
+
},
|
|
31712
|
+
o(local) {
|
|
31713
|
+
transition_out(newusericon.$$.fragment, local);
|
|
31714
|
+
current = false;
|
|
31715
|
+
},
|
|
31716
|
+
d(detaching) {
|
|
31717
|
+
if (detaching) detach(div);
|
|
31718
|
+
destroy_component(newusericon);
|
|
31719
|
+
}
|
|
31720
|
+
};
|
|
31721
|
+
}
|
|
31722
|
+
|
|
31723
|
+
// (59:2) {#if form.message}
|
|
31724
|
+
function create_if_block_1$2(ctx) {
|
|
31725
|
+
let alert;
|
|
31726
|
+
let current;
|
|
31727
|
+
|
|
31728
|
+
alert = new Alert({
|
|
31729
|
+
props: {
|
|
31730
|
+
id: "formFailureMessageAlert",
|
|
31731
|
+
needsFocus: /*alertNeedsFocus*/ ctx[5],
|
|
31732
|
+
type: "error",
|
|
31733
|
+
$$slots: { default: [create_default_slot_2$1] },
|
|
31734
|
+
$$scope: { ctx }
|
|
31735
|
+
}
|
|
31736
|
+
});
|
|
31737
|
+
|
|
31738
|
+
return {
|
|
31739
|
+
c() {
|
|
31740
|
+
create_component(alert.$$.fragment);
|
|
31741
|
+
},
|
|
31742
|
+
m(target, anchor) {
|
|
31743
|
+
mount_component(alert, target, anchor);
|
|
31744
|
+
current = true;
|
|
31745
|
+
},
|
|
31746
|
+
p(ctx, dirty) {
|
|
31747
|
+
const alert_changes = {};
|
|
31748
|
+
if (dirty & /*alertNeedsFocus*/ 32) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[5];
|
|
31749
|
+
|
|
31750
|
+
if (dirty & /*$$scope, formMessageKey, form*/ 32834) {
|
|
31751
|
+
alert_changes.$$scope = { dirty, ctx };
|
|
31752
|
+
}
|
|
31753
|
+
|
|
31754
|
+
alert.$set(alert_changes);
|
|
31755
|
+
},
|
|
31756
|
+
i(local) {
|
|
31757
|
+
if (current) return;
|
|
31758
|
+
transition_in(alert.$$.fragment, local);
|
|
31759
|
+
current = true;
|
|
31760
|
+
},
|
|
31761
|
+
o(local) {
|
|
31762
|
+
transition_out(alert.$$.fragment, local);
|
|
31763
|
+
current = false;
|
|
31764
|
+
},
|
|
31765
|
+
d(detaching) {
|
|
31766
|
+
destroy_component(alert, detaching);
|
|
31767
|
+
}
|
|
31768
|
+
};
|
|
31769
|
+
}
|
|
31770
|
+
|
|
31771
|
+
// (60:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
|
|
31772
|
+
function create_default_slot_2$1(ctx) {
|
|
31773
|
+
let t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "";
|
|
31774
|
+
let t;
|
|
31775
|
+
|
|
31776
|
+
return {
|
|
31777
|
+
c() {
|
|
31778
|
+
t = text(t_value);
|
|
31779
|
+
},
|
|
31780
|
+
m(target, anchor) {
|
|
31781
|
+
insert(target, t, anchor);
|
|
31782
|
+
},
|
|
31783
|
+
p(ctx, dirty) {
|
|
31784
|
+
if (dirty & /*formMessageKey, form*/ 66 && t_value !== (t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "")) set_data(t, t_value);
|
|
31785
|
+
},
|
|
31786
|
+
d(detaching) {
|
|
31787
|
+
if (detaching) detach(t);
|
|
31788
|
+
}
|
|
31789
|
+
};
|
|
31790
|
+
}
|
|
31791
|
+
|
|
31792
|
+
// (65:2) {#each step?.callbacks as callback, idx}
|
|
31793
|
+
function create_each_block$1(ctx) {
|
|
31794
|
+
let callbackmapper;
|
|
31795
|
+
let current;
|
|
31796
|
+
|
|
31797
|
+
callbackmapper = new Callback_mapper({
|
|
31798
|
+
props: {
|
|
31799
|
+
props: {
|
|
31800
|
+
callback: /*callback*/ ctx[12],
|
|
31801
|
+
callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[14]],
|
|
31802
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[9],
|
|
31803
|
+
stepMetadata: /*metadata*/ ctx[3]?.step && { .../*metadata*/ ctx[3].step },
|
|
31804
|
+
style: /*$style*/ ctx[8]
|
|
31805
|
+
}
|
|
31806
|
+
}
|
|
31807
|
+
});
|
|
31808
|
+
|
|
31809
|
+
return {
|
|
31810
|
+
c() {
|
|
31811
|
+
create_component(callbackmapper.$$.fragment);
|
|
31812
|
+
},
|
|
31813
|
+
m(target, anchor) {
|
|
31814
|
+
mount_component(callbackmapper, target, anchor);
|
|
31815
|
+
current = true;
|
|
31816
|
+
},
|
|
31817
|
+
p(ctx, dirty) {
|
|
31818
|
+
const callbackmapper_changes = {};
|
|
31819
|
+
|
|
31820
|
+
if (dirty & /*step, metadata, $style*/ 280) callbackmapper_changes.props = {
|
|
31821
|
+
callback: /*callback*/ ctx[12],
|
|
31822
|
+
callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[14]],
|
|
31823
|
+
selfSubmitFunction: /*determineSubmission*/ ctx[9],
|
|
31824
|
+
stepMetadata: /*metadata*/ ctx[3]?.step && { .../*metadata*/ ctx[3].step },
|
|
31825
|
+
style: /*$style*/ ctx[8]
|
|
31826
|
+
};
|
|
31827
|
+
|
|
31828
|
+
callbackmapper.$set(callbackmapper_changes);
|
|
31829
|
+
},
|
|
31830
|
+
i(local) {
|
|
31831
|
+
if (current) return;
|
|
31832
|
+
transition_in(callbackmapper.$$.fragment, local);
|
|
31833
|
+
current = true;
|
|
31834
|
+
},
|
|
31835
|
+
o(local) {
|
|
31836
|
+
transition_out(callbackmapper.$$.fragment, local);
|
|
31837
|
+
current = false;
|
|
31838
|
+
},
|
|
31839
|
+
d(detaching) {
|
|
31840
|
+
destroy_component(callbackmapper, detaching);
|
|
31841
|
+
}
|
|
31842
|
+
};
|
|
31843
|
+
}
|
|
31844
|
+
|
|
31845
|
+
// (77:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
|
|
31846
|
+
function create_if_block$2(ctx) {
|
|
31847
|
+
let button;
|
|
31848
|
+
let current;
|
|
31849
|
+
|
|
31850
|
+
button = new Button({
|
|
31851
|
+
props: {
|
|
31852
|
+
busy: /*journey*/ ctx[2]?.loading,
|
|
31853
|
+
style: "primary",
|
|
31854
|
+
type: "submit",
|
|
31855
|
+
width: "full",
|
|
31856
|
+
$$slots: { default: [create_default_slot_1$2] },
|
|
31857
|
+
$$scope: { ctx }
|
|
31858
|
+
}
|
|
31859
|
+
});
|
|
31860
|
+
|
|
31861
|
+
return {
|
|
31862
|
+
c() {
|
|
31863
|
+
create_component(button.$$.fragment);
|
|
31864
|
+
},
|
|
31865
|
+
m(target, anchor) {
|
|
31866
|
+
mount_component(button, target, anchor);
|
|
31867
|
+
current = true;
|
|
31868
|
+
},
|
|
31869
|
+
p(ctx, dirty) {
|
|
31870
|
+
const button_changes = {};
|
|
31871
|
+
if (dirty & /*journey*/ 4) button_changes.busy = /*journey*/ ctx[2]?.loading;
|
|
31872
|
+
|
|
31873
|
+
if (dirty & /*$$scope*/ 32768) {
|
|
31874
|
+
button_changes.$$scope = { dirty, ctx };
|
|
31875
|
+
}
|
|
31876
|
+
|
|
31877
|
+
button.$set(button_changes);
|
|
31878
|
+
},
|
|
31879
|
+
i(local) {
|
|
31880
|
+
if (current) return;
|
|
31881
|
+
transition_in(button.$$.fragment, local);
|
|
31882
|
+
current = true;
|
|
31883
|
+
},
|
|
31884
|
+
o(local) {
|
|
31885
|
+
transition_out(button.$$.fragment, local);
|
|
31886
|
+
current = false;
|
|
31887
|
+
},
|
|
31888
|
+
d(detaching) {
|
|
31889
|
+
destroy_component(button, detaching);
|
|
31890
|
+
}
|
|
31891
|
+
};
|
|
31892
|
+
}
|
|
31893
|
+
|
|
31894
|
+
// (78:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
|
|
31895
|
+
function create_default_slot_1$2(ctx) {
|
|
31896
|
+
let t;
|
|
31897
|
+
let current;
|
|
31898
|
+
t = new Locale_strings({ props: { key: "registerButton" } });
|
|
31899
|
+
|
|
31900
|
+
return {
|
|
31901
|
+
c() {
|
|
31902
|
+
create_component(t.$$.fragment);
|
|
31903
|
+
},
|
|
31904
|
+
m(target, anchor) {
|
|
31905
|
+
mount_component(t, target, anchor);
|
|
31906
|
+
current = true;
|
|
31907
|
+
},
|
|
31908
|
+
p: noop,
|
|
31909
|
+
i(local) {
|
|
31910
|
+
if (current) return;
|
|
31911
|
+
transition_in(t.$$.fragment, local);
|
|
31912
|
+
current = true;
|
|
31913
|
+
},
|
|
31914
|
+
o(local) {
|
|
31915
|
+
transition_out(t.$$.fragment, local);
|
|
31916
|
+
current = false;
|
|
31917
|
+
},
|
|
31918
|
+
d(detaching) {
|
|
31919
|
+
destroy_component(t, detaching);
|
|
31920
|
+
}
|
|
31921
|
+
};
|
|
31922
|
+
}
|
|
31923
|
+
|
|
31924
|
+
// (43:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
|
|
31925
|
+
function create_default_slot$3(ctx) {
|
|
31926
|
+
let t0;
|
|
31927
|
+
let h1;
|
|
31928
|
+
let t1;
|
|
31929
|
+
let t2;
|
|
31930
|
+
let p;
|
|
31931
|
+
let t3;
|
|
31932
|
+
let t4;
|
|
31933
|
+
let t5;
|
|
31934
|
+
let t6;
|
|
31935
|
+
let if_block2_anchor;
|
|
31936
|
+
let current;
|
|
31937
|
+
let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$2();
|
|
31938
|
+
t1 = new Locale_strings({ props: { key: "registerHeader" } });
|
|
31939
|
+
|
|
31940
|
+
t3 = new Locale_strings({
|
|
31941
|
+
props: { key: "alreadyHaveAnAccount", html: true }
|
|
31942
|
+
});
|
|
31943
|
+
|
|
31944
|
+
let if_block1 = /*form*/ ctx[1].message && create_if_block_1$2(ctx);
|
|
31945
|
+
let each_value = /*step*/ ctx[4]?.callbacks;
|
|
31946
|
+
let each_blocks = [];
|
|
31947
|
+
|
|
31948
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
31949
|
+
each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
|
|
31950
|
+
}
|
|
31951
|
+
|
|
31952
|
+
const out = i => transition_out(each_blocks[i], 1, 1, () => {
|
|
31953
|
+
each_blocks[i] = null;
|
|
31954
|
+
});
|
|
31955
|
+
|
|
31956
|
+
let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$2(ctx);
|
|
31957
|
+
|
|
31958
|
+
return {
|
|
31959
|
+
c() {
|
|
31960
|
+
if (if_block0) if_block0.c();
|
|
31961
|
+
t0 = space();
|
|
31962
|
+
h1 = element("h1");
|
|
31963
|
+
create_component(t1.$$.fragment);
|
|
31964
|
+
t2 = space();
|
|
31965
|
+
p = element("p");
|
|
31966
|
+
create_component(t3.$$.fragment);
|
|
31967
|
+
t4 = space();
|
|
31968
|
+
if (if_block1) if_block1.c();
|
|
31969
|
+
t5 = space();
|
|
31970
|
+
|
|
31971
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
31972
|
+
each_blocks[i].c();
|
|
31973
|
+
}
|
|
31974
|
+
|
|
31975
|
+
t6 = space();
|
|
31976
|
+
if (if_block2) if_block2.c();
|
|
31977
|
+
if_block2_anchor = empty();
|
|
31978
|
+
attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
|
|
31979
|
+
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");
|
|
31980
|
+
},
|
|
31981
|
+
m(target, anchor) {
|
|
31982
|
+
if (if_block0) if_block0.m(target, anchor);
|
|
31983
|
+
insert(target, t0, anchor);
|
|
31984
|
+
insert(target, h1, anchor);
|
|
31985
|
+
mount_component(t1, h1, null);
|
|
31986
|
+
insert(target, t2, anchor);
|
|
31987
|
+
insert(target, p, anchor);
|
|
31988
|
+
mount_component(t3, p, null);
|
|
31989
|
+
/*p_binding*/ ctx[10](p);
|
|
31990
|
+
insert(target, t4, anchor);
|
|
31991
|
+
if (if_block1) if_block1.m(target, anchor);
|
|
31992
|
+
insert(target, t5, anchor);
|
|
31993
|
+
|
|
31994
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
31995
|
+
each_blocks[i].m(target, anchor);
|
|
31996
|
+
}
|
|
31997
|
+
|
|
31998
|
+
insert(target, t6, anchor);
|
|
31999
|
+
if (if_block2) if_block2.m(target, anchor);
|
|
32000
|
+
insert(target, if_block2_anchor, anchor);
|
|
32001
|
+
current = true;
|
|
32002
|
+
},
|
|
32003
|
+
p(ctx, dirty) {
|
|
32004
|
+
if (/*form*/ ctx[1]?.icon) {
|
|
32005
|
+
if (if_block0) {
|
|
32006
|
+
if (dirty & /*form*/ 2) {
|
|
32007
|
+
transition_in(if_block0, 1);
|
|
32008
|
+
}
|
|
32009
|
+
} else {
|
|
32010
|
+
if_block0 = create_if_block_2$2();
|
|
32011
|
+
if_block0.c();
|
|
32012
|
+
transition_in(if_block0, 1);
|
|
32013
|
+
if_block0.m(t0.parentNode, t0);
|
|
32014
|
+
}
|
|
32015
|
+
} else if (if_block0) {
|
|
32016
|
+
group_outros();
|
|
32017
|
+
|
|
32018
|
+
transition_out(if_block0, 1, 1, () => {
|
|
32019
|
+
if_block0 = null;
|
|
32020
|
+
});
|
|
32021
|
+
|
|
32022
|
+
check_outros();
|
|
32023
|
+
}
|
|
32024
|
+
|
|
32025
|
+
if (/*form*/ ctx[1].message) {
|
|
32026
|
+
if (if_block1) {
|
|
32027
|
+
if_block1.p(ctx, dirty);
|
|
32028
|
+
|
|
32029
|
+
if (dirty & /*form*/ 2) {
|
|
32030
|
+
transition_in(if_block1, 1);
|
|
32031
|
+
}
|
|
32032
|
+
} else {
|
|
32033
|
+
if_block1 = create_if_block_1$2(ctx);
|
|
32034
|
+
if_block1.c();
|
|
32035
|
+
transition_in(if_block1, 1);
|
|
32036
|
+
if_block1.m(t5.parentNode, t5);
|
|
32037
|
+
}
|
|
32038
|
+
} else if (if_block1) {
|
|
32039
|
+
group_outros();
|
|
32040
|
+
|
|
32041
|
+
transition_out(if_block1, 1, 1, () => {
|
|
32042
|
+
if_block1 = null;
|
|
32043
|
+
});
|
|
32044
|
+
|
|
32045
|
+
check_outros();
|
|
32046
|
+
}
|
|
32047
|
+
|
|
32048
|
+
if (dirty & /*step, metadata, determineSubmission, $style*/ 792) {
|
|
32049
|
+
each_value = /*step*/ ctx[4]?.callbacks;
|
|
32050
|
+
let i;
|
|
32051
|
+
|
|
32052
|
+
for (i = 0; i < each_value.length; i += 1) {
|
|
32053
|
+
const child_ctx = get_each_context$1(ctx, each_value, i);
|
|
32054
|
+
|
|
32055
|
+
if (each_blocks[i]) {
|
|
32056
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
32057
|
+
transition_in(each_blocks[i], 1);
|
|
32058
|
+
} else {
|
|
32059
|
+
each_blocks[i] = create_each_block$1(child_ctx);
|
|
32060
|
+
each_blocks[i].c();
|
|
32061
|
+
transition_in(each_blocks[i], 1);
|
|
32062
|
+
each_blocks[i].m(t6.parentNode, t6);
|
|
32063
|
+
}
|
|
32064
|
+
}
|
|
32065
|
+
|
|
32066
|
+
group_outros();
|
|
32067
|
+
|
|
32068
|
+
for (i = each_value.length; i < each_blocks.length; i += 1) {
|
|
32069
|
+
out(i);
|
|
32070
|
+
}
|
|
32071
|
+
|
|
32072
|
+
check_outros();
|
|
32073
|
+
}
|
|
32074
|
+
|
|
32075
|
+
if (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) {
|
|
32076
|
+
if (if_block2) {
|
|
32077
|
+
if_block2.p(ctx, dirty);
|
|
32078
|
+
|
|
32079
|
+
if (dirty & /*metadata*/ 8) {
|
|
32080
|
+
transition_in(if_block2, 1);
|
|
32081
|
+
}
|
|
32082
|
+
} else {
|
|
32083
|
+
if_block2 = create_if_block$2(ctx);
|
|
32084
|
+
if_block2.c();
|
|
32085
|
+
transition_in(if_block2, 1);
|
|
32086
|
+
if_block2.m(if_block2_anchor.parentNode, if_block2_anchor);
|
|
32087
|
+
}
|
|
32088
|
+
} else if (if_block2) {
|
|
32089
|
+
group_outros();
|
|
32090
|
+
|
|
32091
|
+
transition_out(if_block2, 1, 1, () => {
|
|
32092
|
+
if_block2 = null;
|
|
32093
|
+
});
|
|
32094
|
+
|
|
32095
|
+
check_outros();
|
|
32096
|
+
}
|
|
32097
|
+
},
|
|
32098
|
+
i(local) {
|
|
32099
|
+
if (current) return;
|
|
32100
|
+
transition_in(if_block0);
|
|
32101
|
+
transition_in(t1.$$.fragment, local);
|
|
32102
|
+
transition_in(t3.$$.fragment, local);
|
|
32103
|
+
transition_in(if_block1);
|
|
32104
|
+
|
|
32105
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
32106
|
+
transition_in(each_blocks[i]);
|
|
32107
|
+
}
|
|
32108
|
+
|
|
32109
|
+
transition_in(if_block2);
|
|
32110
|
+
current = true;
|
|
32111
|
+
},
|
|
32112
|
+
o(local) {
|
|
32113
|
+
transition_out(if_block0);
|
|
32114
|
+
transition_out(t1.$$.fragment, local);
|
|
32115
|
+
transition_out(t3.$$.fragment, local);
|
|
32116
|
+
transition_out(if_block1);
|
|
32117
|
+
each_blocks = each_blocks.filter(Boolean);
|
|
32118
|
+
|
|
32119
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
32120
|
+
transition_out(each_blocks[i]);
|
|
32121
|
+
}
|
|
32122
|
+
|
|
32123
|
+
transition_out(if_block2);
|
|
32124
|
+
current = false;
|
|
32125
|
+
},
|
|
32126
|
+
d(detaching) {
|
|
32127
|
+
if (if_block0) if_block0.d(detaching);
|
|
32128
|
+
if (detaching) detach(t0);
|
|
32129
|
+
if (detaching) detach(h1);
|
|
32130
|
+
destroy_component(t1);
|
|
32131
|
+
if (detaching) detach(t2);
|
|
32132
|
+
if (detaching) detach(p);
|
|
32133
|
+
destroy_component(t3);
|
|
32134
|
+
/*p_binding*/ ctx[10](null);
|
|
32135
|
+
if (detaching) detach(t4);
|
|
32136
|
+
if (if_block1) if_block1.d(detaching);
|
|
32137
|
+
if (detaching) detach(t5);
|
|
32138
|
+
destroy_each(each_blocks, detaching);
|
|
32139
|
+
if (detaching) detach(t6);
|
|
32140
|
+
if (if_block2) if_block2.d(detaching);
|
|
32141
|
+
if (detaching) detach(if_block2_anchor);
|
|
32142
|
+
}
|
|
32143
|
+
};
|
|
32144
|
+
}
|
|
32145
|
+
|
|
32146
|
+
function create_fragment$3(ctx) {
|
|
32147
|
+
let form_1;
|
|
32148
|
+
let updating_formEl;
|
|
32149
|
+
let current;
|
|
32150
|
+
|
|
32151
|
+
function form_1_formEl_binding(value) {
|
|
32152
|
+
/*form_1_formEl_binding*/ ctx[11](value);
|
|
32153
|
+
}
|
|
32154
|
+
|
|
32155
|
+
let form_1_props = {
|
|
32156
|
+
ariaDescribedBy: "formFailureMessageAlert",
|
|
32157
|
+
onSubmitWhenValid: /*form*/ ctx[1]?.submit,
|
|
32158
|
+
$$slots: { default: [create_default_slot$3] },
|
|
32159
|
+
$$scope: { ctx }
|
|
32160
|
+
};
|
|
32161
|
+
|
|
32162
|
+
if (/*formEl*/ ctx[0] !== void 0) {
|
|
32163
|
+
form_1_props.formEl = /*formEl*/ ctx[0];
|
|
32164
|
+
}
|
|
32165
|
+
|
|
32166
|
+
form_1 = new Form({ props: form_1_props });
|
|
32167
|
+
binding_callbacks.push(() => bind(form_1, 'formEl', form_1_formEl_binding));
|
|
32168
|
+
|
|
32169
|
+
return {
|
|
32170
|
+
c() {
|
|
32171
|
+
create_component(form_1.$$.fragment);
|
|
32172
|
+
},
|
|
32173
|
+
m(target, anchor) {
|
|
32174
|
+
mount_component(form_1, target, anchor);
|
|
32175
|
+
current = true;
|
|
32176
|
+
},
|
|
32177
|
+
p(ctx, [dirty]) {
|
|
32178
|
+
const form_1_changes = {};
|
|
32179
|
+
if (dirty & /*form*/ 2) form_1_changes.onSubmitWhenValid = /*form*/ ctx[1]?.submit;
|
|
32180
|
+
|
|
32181
|
+
if (dirty & /*$$scope, journey, metadata, step, $style, alertNeedsFocus, formMessageKey, form, linkWrapper*/ 33278) {
|
|
32182
|
+
form_1_changes.$$scope = { dirty, ctx };
|
|
32183
|
+
}
|
|
32184
|
+
|
|
32185
|
+
if (!updating_formEl && dirty & /*formEl*/ 1) {
|
|
32186
|
+
updating_formEl = true;
|
|
32187
|
+
form_1_changes.formEl = /*formEl*/ ctx[0];
|
|
32188
|
+
add_flush_callback(() => updating_formEl = false);
|
|
32189
|
+
}
|
|
32190
|
+
|
|
32191
|
+
form_1.$set(form_1_changes);
|
|
32192
|
+
},
|
|
32193
|
+
i(local) {
|
|
32194
|
+
if (current) return;
|
|
32195
|
+
transition_in(form_1.$$.fragment, local);
|
|
32196
|
+
current = true;
|
|
32197
|
+
},
|
|
32198
|
+
o(local) {
|
|
32199
|
+
transition_out(form_1.$$.fragment, local);
|
|
32200
|
+
current = false;
|
|
32201
|
+
},
|
|
32202
|
+
d(detaching) {
|
|
32203
|
+
destroy_component(form_1, detaching);
|
|
32204
|
+
}
|
|
32205
|
+
};
|
|
32206
|
+
}
|
|
32207
|
+
|
|
32208
|
+
function instance$3($$self, $$props, $$invalidate) {
|
|
32209
|
+
let $style;
|
|
32210
|
+
component_subscribe($$self, style, $$value => $$invalidate(8, $style = $$value));
|
|
32211
|
+
let { form } = $$props;
|
|
32212
|
+
let { formEl = null } = $$props;
|
|
32213
|
+
let { journey } = $$props;
|
|
32214
|
+
let { metadata } = $$props;
|
|
32215
|
+
let { step } = $$props;
|
|
32216
|
+
let alertNeedsFocus = false;
|
|
32217
|
+
let formMessageKey = '';
|
|
32218
|
+
let linkWrapper;
|
|
32219
|
+
|
|
32220
|
+
function determineSubmission() {
|
|
32221
|
+
// TODO: the below is more strict; all self-submitting cbs have to complete before submitting
|
|
32222
|
+
// if (stepMetadata.isStepSelfSubmittable && isStepReadyToSubmit(callbackMetadataArray)) {
|
|
32223
|
+
// The below variation is more liberal first self-submittable cb to call this wins.
|
|
32224
|
+
if (metadata?.step?.derived.isStepSelfSubmittable) {
|
|
32225
|
+
form?.submit();
|
|
32226
|
+
}
|
|
32227
|
+
}
|
|
32228
|
+
|
|
32229
|
+
afterUpdate(() => {
|
|
32230
|
+
$$invalidate(5, alertNeedsFocus = !!form?.message);
|
|
32231
|
+
});
|
|
32232
|
+
|
|
32233
|
+
onMount(() => captureLinks(linkWrapper, journey));
|
|
32234
|
+
|
|
32235
|
+
function p_binding($$value) {
|
|
32236
|
+
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
32237
|
+
linkWrapper = $$value;
|
|
32238
|
+
$$invalidate(7, linkWrapper);
|
|
32239
|
+
});
|
|
32240
|
+
}
|
|
32241
|
+
|
|
32242
|
+
function form_1_formEl_binding(value) {
|
|
32243
|
+
formEl = value;
|
|
32244
|
+
$$invalidate(0, formEl);
|
|
32245
|
+
}
|
|
32246
|
+
|
|
32247
|
+
$$self.$$set = $$props => {
|
|
32248
|
+
if ('form' in $$props) $$invalidate(1, form = $$props.form);
|
|
32249
|
+
if ('formEl' in $$props) $$invalidate(0, formEl = $$props.formEl);
|
|
32250
|
+
if ('journey' in $$props) $$invalidate(2, journey = $$props.journey);
|
|
32251
|
+
if ('metadata' in $$props) $$invalidate(3, metadata = $$props.metadata);
|
|
32252
|
+
if ('step' in $$props) $$invalidate(4, step = $$props.step);
|
|
32253
|
+
};
|
|
32254
|
+
|
|
32255
|
+
$$self.$$.update = () => {
|
|
32256
|
+
if ($$self.$$.dirty & /*form*/ 2) {
|
|
32257
|
+
{
|
|
32258
|
+
$$invalidate(6, formMessageKey = convertStringToKey(form?.message));
|
|
32259
|
+
}
|
|
32260
|
+
}
|
|
32261
|
+
};
|
|
32262
|
+
|
|
32263
|
+
return [
|
|
32264
|
+
formEl,
|
|
32265
|
+
form,
|
|
32266
|
+
journey,
|
|
32267
|
+
metadata,
|
|
32268
|
+
step,
|
|
32269
|
+
alertNeedsFocus,
|
|
32270
|
+
formMessageKey,
|
|
32271
|
+
linkWrapper,
|
|
32272
|
+
$style,
|
|
32273
|
+
determineSubmission,
|
|
32274
|
+
p_binding,
|
|
32275
|
+
form_1_formEl_binding
|
|
32276
|
+
];
|
|
32277
|
+
}
|
|
32278
|
+
|
|
32279
|
+
class Registration extends SvelteComponent {
|
|
32280
|
+
constructor(options) {
|
|
32281
|
+
super();
|
|
32282
|
+
|
|
32283
|
+
init(this, options, instance$3, create_fragment$3, safe_not_equal, {
|
|
32284
|
+
form: 1,
|
|
32285
|
+
formEl: 0,
|
|
32286
|
+
journey: 2,
|
|
32287
|
+
metadata: 3,
|
|
32288
|
+
step: 4
|
|
32289
|
+
});
|
|
31585
32290
|
}
|
|
31586
32291
|
}
|
|
31587
32292
|
|
|
@@ -32263,6 +32968,8 @@ function mapStepToStage(currentStep) {
|
|
|
32263
32968
|
return Generic;
|
|
32264
32969
|
}
|
|
32265
32970
|
switch (currentStep?.getStage && currentStep.getStage()) {
|
|
32971
|
+
case 'OneTimePassword':
|
|
32972
|
+
return One_time_password;
|
|
32266
32973
|
case 'Registration':
|
|
32267
32974
|
return Registration;
|
|
32268
32975
|
case 'UsernamePassword':
|
|
@@ -32961,7 +33668,7 @@ function create_default_slot(ctx) {
|
|
|
32961
33668
|
}
|
|
32962
33669
|
|
|
32963
33670
|
let journey_1_props = {
|
|
32964
|
-
displayIcon: /*style*/ ctx[0]?.stage?.icon
|
|
33671
|
+
displayIcon: /*style*/ ctx[0]?.stage?.icon || !/*style*/ ctx[0]?.logo,
|
|
32965
33672
|
journeyStore: api.getJourneyStore()
|
|
32966
33673
|
};
|
|
32967
33674
|
|
|
@@ -32982,7 +33689,7 @@ function create_default_slot(ctx) {
|
|
|
32982
33689
|
},
|
|
32983
33690
|
p(ctx, dirty) {
|
|
32984
33691
|
const journey_1_changes = {};
|
|
32985
|
-
if (dirty & /*style*/ 1) journey_1_changes.displayIcon = /*style*/ ctx[0]?.stage?.icon
|
|
33692
|
+
if (dirty & /*style*/ 1) journey_1_changes.displayIcon = /*style*/ ctx[0]?.stage?.icon || !/*style*/ ctx[0]?.logo;
|
|
32986
33693
|
|
|
32987
33694
|
if (!updating_formEl && dirty & /*formEl*/ 8) {
|
|
32988
33695
|
updating_formEl = true;
|
|
@@ -33092,9 +33799,9 @@ const api = widgetApiFactory({
|
|
|
33092
33799
|
onMount(fn) {
|
|
33093
33800
|
callMounted = (dialog, form) => fn(dialog, form);
|
|
33094
33801
|
},
|
|
33095
|
-
open(options) {
|
|
33802
|
+
open(options, forceRestart) {
|
|
33096
33803
|
// If journey does not have a step, start the journey
|
|
33097
|
-
if (!get_store_value(api.getJourneyStore()).step) {
|
|
33804
|
+
if (!get_store_value(api.getJourneyStore()).step || forceRestart) {
|
|
33098
33805
|
journey.start(options);
|
|
33099
33806
|
}
|
|
33100
33807
|
|