@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/modal.js CHANGED
@@ -14090,6 +14090,7 @@ function widgetApiFactory(modal) {
14090
14090
  },
14091
14091
  };
14092
14092
  const user = {
14093
+ // TODO: add "scopes" to parameters for "true" authorization
14093
14094
  async authorized(remote = false) {
14094
14095
  if (remote) {
14095
14096
  try {
@@ -14100,7 +14101,12 @@ function widgetApiFactory(modal) {
14100
14101
  return;
14101
14102
  }
14102
14103
  }
14103
- return !!(await TokenManager$1.getTokens());
14104
+ try {
14105
+ return !!(await TokenManager$1.getTokens());
14106
+ }
14107
+ catch (err) {
14108
+ return;
14109
+ }
14104
14110
  },
14105
14111
  async info(remote = false) {
14106
14112
  userStore = userStore;
@@ -15898,6 +15904,7 @@ var customSecurityQuestion = "Custom security question";
15898
15904
  var doesNotMeetMinimumCharacterLength = "At least {min} character(s)";
15899
15905
  var ensurePasswordIsMoreThan = "Password must contain at least {minPasswordLength} character(s).";
15900
15906
  var ensurePasswordHasOne = "Password must contain at least 1 capital letter, 1 number, and 1 special character.";
15907
+ var enterVerificationCode = "Enter verification code";
15901
15908
  var exceedsMaximumCharacterLength = "Exceeds maximum of {max} characters";
15902
15909
  var fieldCanNotContainFollowingCharacters = "Cannot contain these character(s): {chars}";
15903
15910
  var fieldCanNotContainFollowingValues = "Cannot contain these value(s): {fields}";
@@ -15941,10 +15948,13 @@ var successMessage = "Success!";
15941
15948
  var termsAndConditions = "Please accept our Terms & Conditions";
15942
15949
  var termsAndConditionsLinkText = "View full Terms & Conditions";
15943
15950
  var tryAgain = "Please try again";
15951
+ var twoFactorAuthentication = "Two factor authentication";
15944
15952
  var useValidEmail = "Please use a valid email address.";
15945
15953
  var unrecoverableError = "There was an error in the form submission.";
15946
15954
  var unknownNetworkError = "Unknown network request failure has occurred.";
15955
+ var userName = "Username";
15947
15956
  var usernameRequirements = "Username requirements:";
15957
+ var useTheAuthenticatorAppOnYourPhone = "Find the verification code using the authenticator app on your phone.";
15948
15958
  var validatedCreatePasswordCallback = "Password";
15949
15959
  var validatedCreateUsernameCallback = "Username";
15950
15960
  var valueRequirements = "Value requirements:";
@@ -15963,6 +15973,7 @@ var fallback = {
15963
15973
  doesNotMeetMinimumCharacterLength: doesNotMeetMinimumCharacterLength,
15964
15974
  ensurePasswordIsMoreThan: ensurePasswordIsMoreThan,
15965
15975
  ensurePasswordHasOne: ensurePasswordHasOne,
15976
+ enterVerificationCode: enterVerificationCode,
15966
15977
  exceedsMaximumCharacterLength: exceedsMaximumCharacterLength,
15967
15978
  fieldCanNotContainFollowingCharacters: fieldCanNotContainFollowingCharacters,
15968
15979
  fieldCanNotContainFollowingValues: fieldCanNotContainFollowingValues,
@@ -16006,10 +16017,13 @@ var fallback = {
16006
16017
  termsAndConditions: termsAndConditions,
16007
16018
  termsAndConditionsLinkText: termsAndConditionsLinkText,
16008
16019
  tryAgain: tryAgain,
16020
+ twoFactorAuthentication: twoFactorAuthentication,
16009
16021
  useValidEmail: useValidEmail,
16010
16022
  unrecoverableError: unrecoverableError,
16011
16023
  unknownNetworkError: unknownNetworkError,
16024
+ userName: userName,
16012
16025
  usernameRequirements: usernameRequirements,
16026
+ useTheAuthenticatorAppOnYourPhone: useTheAuthenticatorAppOnYourPhone,
16013
16027
  validatedCreatePasswordCallback: validatedCreatePasswordCallback,
16014
16028
  validatedCreateUsernameCallback: validatedCreateUsernameCallback,
16015
16029
  valueRequirements: valueRequirements
@@ -16031,6 +16045,7 @@ const stringsSchema = mod
16031
16045
  doesNotMeetMinimumCharacterLength: mod.string(),
16032
16046
  ensurePasswordIsMoreThan: mod.string(),
16033
16047
  ensurePasswordHasOne: mod.string(),
16048
+ enterVerificationCode: mod.string(),
16034
16049
  exceedsMaximumCharacterLength: mod.string(),
16035
16050
  fieldCanNotContainFollowingCharacters: mod.string(),
16036
16051
  fieldCanNotContainFollowingValues: mod.string(),
@@ -16074,10 +16089,13 @@ const stringsSchema = mod
16074
16089
  termsAndConditions: mod.string(),
16075
16090
  termsAndConditionsLinkText: mod.string(),
16076
16091
  tryAgain: mod.string(),
16092
+ twoFactorAuthentication: mod.string(),
16077
16093
  useValidEmail: mod.string(),
16078
16094
  unrecoverableError: mod.string(),
16079
16095
  unknownNetworkError: mod.string(),
16096
+ userName: mod.string(),
16080
16097
  usernameRequirements: mod.string(),
16098
+ useTheAuthenticatorAppOnYourPhone: mod.string(),
16081
16099
  validatedCreatePasswordCallback: mod.string(),
16082
16100
  validatedCreateUsernameCallback: mod.string(),
16083
16101
  valueRequirements: mod.string(),
@@ -16271,7 +16289,7 @@ function create_else_block$9(ctx) {
16271
16289
  }
16272
16290
 
16273
16291
  // (11:0) {#if html}
16274
- function create_if_block$l(ctx) {
16292
+ function create_if_block$m(ctx) {
16275
16293
  let current;
16276
16294
  const default_slot_template = /*#slots*/ ctx[5].default;
16277
16295
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[4], null);
@@ -16368,12 +16386,12 @@ function fallback_block$2(ctx) {
16368
16386
  };
16369
16387
  }
16370
16388
 
16371
- function create_fragment$V(ctx) {
16389
+ function create_fragment$W(ctx) {
16372
16390
  let current_block_type_index;
16373
16391
  let if_block;
16374
16392
  let if_block_anchor;
16375
16393
  let current;
16376
- const if_block_creators = [create_if_block$l, create_else_block$9];
16394
+ const if_block_creators = [create_if_block$m, create_else_block$9];
16377
16395
  const if_blocks = [];
16378
16396
 
16379
16397
  function select_block_type(ctx, dirty) {
@@ -16437,7 +16455,7 @@ function create_fragment$V(ctx) {
16437
16455
  };
16438
16456
  }
16439
16457
 
16440
- function instance$W($$self, $$props, $$invalidate) {
16458
+ function instance$X($$self, $$props, $$invalidate) {
16441
16459
  let { $$slots: slots = {}, $$scope } = $$props;
16442
16460
  let { html = false } = $$props;
16443
16461
  let { key } = $$props;
@@ -16465,13 +16483,13 @@ function instance$W($$self, $$props, $$invalidate) {
16465
16483
  class Locale_strings extends SvelteComponent {
16466
16484
  constructor(options) {
16467
16485
  super();
16468
- init(this, options, instance$W, create_fragment$V, safe_not_equal, { html: 0, key: 2, values: 3 });
16486
+ init(this, options, instance$X, create_fragment$W, safe_not_equal, { html: 0, key: 2, values: 3 });
16469
16487
  }
16470
16488
  }
16471
16489
 
16472
16490
  /* src/lib/components/icons/x-icon.svelte generated by Svelte v3.55.1 */
16473
16491
 
16474
- function create_fragment$U(ctx) {
16492
+ function create_fragment$V(ctx) {
16475
16493
  let svg;
16476
16494
  let path;
16477
16495
  let title;
@@ -16547,7 +16565,7 @@ function create_fragment$U(ctx) {
16547
16565
  };
16548
16566
  }
16549
16567
 
16550
- function instance$V($$self, $$props, $$invalidate) {
16568
+ function instance$W($$self, $$props, $$invalidate) {
16551
16569
  let { $$slots: slots = {}, $$scope } = $$props;
16552
16570
  let { classes = '' } = $$props;
16553
16571
  let { size = '24px' } = $$props;
@@ -16564,7 +16582,7 @@ function instance$V($$self, $$props, $$invalidate) {
16564
16582
  class X_icon extends SvelteComponent {
16565
16583
  constructor(options) {
16566
16584
  super();
16567
- init(this, options, instance$V, create_fragment$U, safe_not_equal, { classes: 0, size: 1 });
16585
+ init(this, options, instance$W, create_fragment$V, safe_not_equal, { classes: 0, size: 1 });
16568
16586
  }
16569
16587
  }
16570
16588
 
@@ -16627,12 +16645,12 @@ function create_else_block$8(ctx) {
16627
16645
  xicon = new X_icon({
16628
16646
  props: {
16629
16647
  classes: "tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light",
16630
- $$slots: { default: [create_default_slot_1$b] },
16648
+ $$slots: { default: [create_default_slot_1$c] },
16631
16649
  $$scope: { ctx }
16632
16650
  }
16633
16651
  });
16634
16652
 
16635
- let if_block = /*$style*/ ctx[5]?.logo && create_if_block_1$b(ctx);
16653
+ let if_block = /*$style*/ ctx[5]?.logo && create_if_block_1$c(ctx);
16636
16654
 
16637
16655
  return {
16638
16656
  c() {
@@ -16678,7 +16696,7 @@ function create_else_block$8(ctx) {
16678
16696
  if (if_block) {
16679
16697
  if_block.p(ctx, dirty);
16680
16698
  } else {
16681
- if_block = create_if_block_1$b(ctx);
16699
+ if_block = create_if_block_1$c(ctx);
16682
16700
  if_block.c();
16683
16701
  if_block.m(div, null);
16684
16702
  }
@@ -16713,7 +16731,7 @@ function create_else_block$8(ctx) {
16713
16731
  }
16714
16732
 
16715
16733
  // (39:2) {#if withHeader}
16716
- function create_if_block$k(ctx) {
16734
+ function create_if_block$l(ctx) {
16717
16735
  let div1;
16718
16736
  let div0;
16719
16737
  let div0_style_value;
@@ -16727,7 +16745,7 @@ function create_if_block$k(ctx) {
16727
16745
  xicon = new X_icon({
16728
16746
  props: {
16729
16747
  classes: "tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light",
16730
- $$slots: { default: [create_default_slot$n] },
16748
+ $$slots: { default: [create_default_slot$o] },
16731
16749
  $$scope: { ctx }
16732
16750
  }
16733
16751
  });
@@ -16804,7 +16822,7 @@ function create_if_block$k(ctx) {
16804
16822
  }
16805
16823
 
16806
16824
  // (71:8) <XIcon classes="tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light" >
16807
- function create_default_slot_1$b(ctx) {
16825
+ function create_default_slot_1$c(ctx) {
16808
16826
  let t;
16809
16827
  let current;
16810
16828
  t = new Locale_strings({ props: { key: "closeModal" } });
@@ -16834,7 +16852,7 @@ function create_default_slot_1$b(ctx) {
16834
16852
  }
16835
16853
 
16836
16854
  // (76:6) {#if $style?.logo}
16837
- function create_if_block_1$b(ctx) {
16855
+ function create_if_block_1$c(ctx) {
16838
16856
  let div;
16839
16857
  let div_style_value;
16840
16858
 
@@ -16859,7 +16877,7 @@ function create_if_block_1$b(ctx) {
16859
16877
  }
16860
16878
 
16861
16879
  // (54:8) <XIcon classes="tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light" >
16862
- function create_default_slot$n(ctx) {
16880
+ function create_default_slot$o(ctx) {
16863
16881
  let t;
16864
16882
  let current;
16865
16883
  t = new Locale_strings({ props: { key: "closeModal" } });
@@ -16888,7 +16906,7 @@ function create_default_slot$n(ctx) {
16888
16906
  };
16889
16907
  }
16890
16908
 
16891
- function create_fragment$T(ctx) {
16909
+ function create_fragment$U(ctx) {
16892
16910
  let dialog;
16893
16911
  let current_block_type_index;
16894
16912
  let if_block;
@@ -16896,7 +16914,7 @@ function create_fragment$T(ctx) {
16896
16914
  let div;
16897
16915
  let dialog_class_value;
16898
16916
  let current;
16899
- const if_block_creators = [create_if_block$k, create_else_block$8];
16917
+ const if_block_creators = [create_if_block$l, create_else_block$8];
16900
16918
  const if_blocks = [];
16901
16919
 
16902
16920
  function select_block_type(ctx, dirty) {
@@ -17008,7 +17026,7 @@ function create_fragment$T(ctx) {
17008
17026
  };
17009
17027
  }
17010
17028
 
17011
- function instance$U($$self, $$props, $$invalidate) {
17029
+ function instance$V($$self, $$props, $$invalidate) {
17012
17030
  let $style;
17013
17031
  component_subscribe($$self, style, $$value => $$invalidate(5, $style = $$value));
17014
17032
  let { $$slots: slots = {}, $$scope } = $$props;
@@ -17087,7 +17105,7 @@ class Dialog extends SvelteComponent {
17087
17105
  constructor(options) {
17088
17106
  super();
17089
17107
 
17090
- init(this, options, instance$U, create_fragment$T, safe_not_equal, {
17108
+ init(this, options, instance$V, create_fragment$U, safe_not_equal, {
17091
17109
  closeCallback: 6,
17092
17110
  dialogEl: 0,
17093
17111
  dialogId: 1,
@@ -17104,7 +17122,7 @@ class Dialog extends SvelteComponent {
17104
17122
 
17105
17123
  /* src/lib/components/icons/alert-icon.svelte generated by Svelte v3.55.1 */
17106
17124
 
17107
- function create_fragment$S(ctx) {
17125
+ function create_fragment$T(ctx) {
17108
17126
  let svg;
17109
17127
  let path;
17110
17128
  let title;
@@ -17180,7 +17198,7 @@ function create_fragment$S(ctx) {
17180
17198
  };
17181
17199
  }
17182
17200
 
17183
- function instance$T($$self, $$props, $$invalidate) {
17201
+ function instance$U($$self, $$props, $$invalidate) {
17184
17202
  let { $$slots: slots = {}, $$scope } = $$props;
17185
17203
  let { classes = '' } = $$props;
17186
17204
  let { size = '24px' } = $$props;
@@ -17197,13 +17215,13 @@ function instance$T($$self, $$props, $$invalidate) {
17197
17215
  class Alert_icon extends SvelteComponent {
17198
17216
  constructor(options) {
17199
17217
  super();
17200
- init(this, options, instance$T, create_fragment$S, safe_not_equal, { classes: 0, size: 1 });
17218
+ init(this, options, instance$U, create_fragment$T, safe_not_equal, { classes: 0, size: 1 });
17201
17219
  }
17202
17220
  }
17203
17221
 
17204
17222
  /* src/lib/components/icons/info-icon.svelte generated by Svelte v3.55.1 */
17205
17223
 
17206
- function create_fragment$R(ctx) {
17224
+ function create_fragment$S(ctx) {
17207
17225
  let svg;
17208
17226
  let path;
17209
17227
  let title;
@@ -17279,7 +17297,7 @@ function create_fragment$R(ctx) {
17279
17297
  };
17280
17298
  }
17281
17299
 
17282
- function instance$S($$self, $$props, $$invalidate) {
17300
+ function instance$T($$self, $$props, $$invalidate) {
17283
17301
  let { $$slots: slots = {}, $$scope } = $$props;
17284
17302
  let { classes = '' } = $$props;
17285
17303
  let { size = '24px' } = $$props;
@@ -17296,13 +17314,13 @@ function instance$S($$self, $$props, $$invalidate) {
17296
17314
  class Info_icon extends SvelteComponent {
17297
17315
  constructor(options) {
17298
17316
  super();
17299
- init(this, options, instance$S, create_fragment$R, safe_not_equal, { classes: 0, size: 1 });
17317
+ init(this, options, instance$T, create_fragment$S, safe_not_equal, { classes: 0, size: 1 });
17300
17318
  }
17301
17319
  }
17302
17320
 
17303
17321
  /* src/lib/components/icons/warning-icon.svelte generated by Svelte v3.55.1 */
17304
17322
 
17305
- function create_fragment$Q(ctx) {
17323
+ function create_fragment$R(ctx) {
17306
17324
  let svg;
17307
17325
  let path;
17308
17326
  let title;
@@ -17378,7 +17396,7 @@ function create_fragment$Q(ctx) {
17378
17396
  };
17379
17397
  }
17380
17398
 
17381
- function instance$R($$self, $$props, $$invalidate) {
17399
+ function instance$S($$self, $$props, $$invalidate) {
17382
17400
  let { $$slots: slots = {}, $$scope } = $$props;
17383
17401
  let { classes = '' } = $$props;
17384
17402
  let { size = '24px' } = $$props;
@@ -17395,7 +17413,7 @@ function instance$R($$self, $$props, $$invalidate) {
17395
17413
  class Warning_icon extends SvelteComponent {
17396
17414
  constructor(options) {
17397
17415
  super();
17398
- init(this, options, instance$R, create_fragment$Q, safe_not_equal, { classes: 0, size: 1 });
17416
+ init(this, options, instance$S, create_fragment$R, safe_not_equal, { classes: 0, size: 1 });
17399
17417
  }
17400
17418
  }
17401
17419
 
@@ -17430,7 +17448,7 @@ function create_else_block$7(ctx) {
17430
17448
  }
17431
17449
 
17432
17450
  // (43:33)
17433
- function create_if_block_1$a(ctx) {
17451
+ function create_if_block_1$b(ctx) {
17434
17452
  let warningicon;
17435
17453
  let current;
17436
17454
  warningicon = new Warning_icon({});
@@ -17459,7 +17477,7 @@ function create_if_block_1$a(ctx) {
17459
17477
  }
17460
17478
 
17461
17479
  // (41:4) {#if type === 'error'}
17462
- function create_if_block$j(ctx) {
17480
+ function create_if_block$k(ctx) {
17463
17481
  let alerticon;
17464
17482
  let current;
17465
17483
  alerticon = new Alert_icon({});
@@ -17487,7 +17505,7 @@ function create_if_block$j(ctx) {
17487
17505
  };
17488
17506
  }
17489
17507
 
17490
- function create_fragment$P(ctx) {
17508
+ function create_fragment$Q(ctx) {
17491
17509
  let div;
17492
17510
  let p;
17493
17511
  let current_block_type_index;
@@ -17496,7 +17514,7 @@ function create_fragment$P(ctx) {
17496
17514
  let span;
17497
17515
  let div_class_value;
17498
17516
  let current;
17499
- const if_block_creators = [create_if_block$j, create_if_block_1$a, create_else_block$7];
17517
+ const if_block_creators = [create_if_block$k, create_if_block_1$b, create_else_block$7];
17500
17518
  const if_blocks = [];
17501
17519
 
17502
17520
  function select_block_type(ctx, dirty) {
@@ -17623,7 +17641,7 @@ function generateClassString$3(...args) {
17623
17641
  );
17624
17642
  }
17625
17643
 
17626
- function instance$Q($$self, $$props, $$invalidate) {
17644
+ function instance$R($$self, $$props, $$invalidate) {
17627
17645
  let { $$slots: slots = {}, $$scope } = $$props;
17628
17646
  let { id } = $$props;
17629
17647
  let { needsFocus = false } = $$props;
@@ -17660,13 +17678,13 @@ function instance$Q($$self, $$props, $$invalidate) {
17660
17678
  class Alert extends SvelteComponent {
17661
17679
  constructor(options) {
17662
17680
  super();
17663
- init(this, options, instance$Q, create_fragment$P, safe_not_equal, { id: 0, needsFocus: 3, type: 1 });
17681
+ init(this, options, instance$R, create_fragment$Q, safe_not_equal, { id: 0, needsFocus: 3, type: 1 });
17664
17682
  }
17665
17683
  }
17666
17684
 
17667
17685
  /* src/lib/components/primitives/spinner/spinner.svelte generated by Svelte v3.55.1 */
17668
17686
 
17669
- function create_fragment$O(ctx) {
17687
+ function create_fragment$P(ctx) {
17670
17688
  let div;
17671
17689
  let span;
17672
17690
  let t;
@@ -17710,7 +17728,7 @@ function create_fragment$O(ctx) {
17710
17728
  };
17711
17729
  }
17712
17730
 
17713
- function instance$P($$self, $$props, $$invalidate) {
17731
+ function instance$Q($$self, $$props, $$invalidate) {
17714
17732
  let { colorClass } = $$props;
17715
17733
  let { layoutClasses } = $$props;
17716
17734
 
@@ -17725,13 +17743,13 @@ function instance$P($$self, $$props, $$invalidate) {
17725
17743
  class Spinner extends SvelteComponent {
17726
17744
  constructor(options) {
17727
17745
  super();
17728
- init(this, options, instance$P, create_fragment$O, safe_not_equal, { colorClass: 0, layoutClasses: 1 });
17746
+ init(this, options, instance$Q, create_fragment$P, safe_not_equal, { colorClass: 0, layoutClasses: 1 });
17729
17747
  }
17730
17748
  }
17731
17749
 
17732
17750
  /* src/lib/components/primitives/button/button.svelte generated by Svelte v3.55.1 */
17733
17751
 
17734
- function create_if_block$i(ctx) {
17752
+ function create_if_block$j(ctx) {
17735
17753
  let spinner;
17736
17754
  let current;
17737
17755
 
@@ -17782,14 +17800,14 @@ function fallback_block$1(ctx) {
17782
17800
  };
17783
17801
  }
17784
17802
 
17785
- function create_fragment$N(ctx) {
17803
+ function create_fragment$O(ctx) {
17786
17804
  let button;
17787
17805
  let t;
17788
17806
  let button_class_value;
17789
17807
  let current;
17790
17808
  let mounted;
17791
17809
  let dispose;
17792
- let if_block = /*busy*/ ctx[0] && create_if_block$i();
17810
+ let if_block = /*busy*/ ctx[0] && create_if_block$j();
17793
17811
  const default_slot_template = /*#slots*/ ctx[7].default;
17794
17812
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
17795
17813
  const default_slot_or_fallback = default_slot || fallback_block$1();
@@ -17831,7 +17849,7 @@ function create_fragment$N(ctx) {
17831
17849
  transition_in(if_block, 1);
17832
17850
  }
17833
17851
  } else {
17834
- if_block = create_if_block$i();
17852
+ if_block = create_if_block$j();
17835
17853
  if_block.c();
17836
17854
  transition_in(if_block, 1);
17837
17855
  if_block.m(button, t);
@@ -17912,7 +17930,7 @@ function generateClassString$2(...args) {
17912
17930
  );
17913
17931
  }
17914
17932
 
17915
- function instance$O($$self, $$props, $$invalidate) {
17933
+ function instance$P($$self, $$props, $$invalidate) {
17916
17934
  let { $$slots: slots = {}, $$scope } = $$props;
17917
17935
  let { busy = false } = $$props;
17918
17936
  let { classes = '' } = $$props;
@@ -17942,7 +17960,7 @@ class Button extends SvelteComponent {
17942
17960
  constructor(options) {
17943
17961
  super();
17944
17962
 
17945
- init(this, options, instance$O, create_fragment$N, safe_not_equal, {
17963
+ init(this, options, instance$P, create_fragment$O, safe_not_equal, {
17946
17964
  busy: 0,
17947
17965
  classes: 1,
17948
17966
  onClick: 2,
@@ -18199,7 +18217,7 @@ function buildCallbackMetadata(step, checkValidation, stageJson) {
18199
18217
  * @param {array} callbackMetadataArray - The array returned from buildCallbackMetadata
18200
18218
  * @returns {object}
18201
18219
  */
18202
- function buildStepMetadata(callbackMetadataArray, stageJson) {
18220
+ function buildStepMetadata(callbackMetadataArray, stageJson, stageName) {
18203
18221
  const numOfUserInputCbs = callbackMetadataArray.filter((cb) => !!cb.derived.isUserInputRequired).length;
18204
18222
  const userInputOptional = isUserInputOptional(callbackMetadataArray, numOfUserInputCbs);
18205
18223
  let stageMetadata;
@@ -18227,6 +18245,12 @@ function buildStepMetadata(callbackMetadataArray, stageJson) {
18227
18245
  ...stageMetadata,
18228
18246
  },
18229
18247
  }),
18248
+ // stageName and stateMetadata are mutually exclusive
18249
+ ...(stageName && {
18250
+ platform: {
18251
+ stageName,
18252
+ }
18253
+ }),
18230
18254
  };
18231
18255
  }
18232
18256
 
@@ -18276,7 +18300,7 @@ function initializeStack(initOptions) {
18276
18300
  return stack;
18277
18301
  }
18278
18302
  function initialize$4(initOptions) {
18279
- const { set, subscribe } = writable({
18303
+ const journeyStore = writable({
18280
18304
  completed: false,
18281
18305
  error: null,
18282
18306
  loading: false,
@@ -18285,7 +18309,9 @@ function initialize$4(initOptions) {
18285
18309
  successful: false,
18286
18310
  response: null,
18287
18311
  });
18312
+ const { set, subscribe } = journeyStore;
18288
18313
  const stack = initializeStack();
18314
+ let restartOptions;
18289
18315
  let stepNumber = 0;
18290
18316
  async function next(prevStep = null, nextOptions, resumeUrl) {
18291
18317
  /**
@@ -18296,6 +18322,14 @@ function initialize$4(initOptions) {
18296
18322
  ...initOptions,
18297
18323
  ...nextOptions,
18298
18324
  };
18325
+ // These options are reserved only for restarting a journey after failure
18326
+ if (initOptions || nextOptions) {
18327
+ restartOptions = {
18328
+ // Prioritize next options over initialize options
18329
+ ...initOptions,
18330
+ ...nextOptions,
18331
+ };
18332
+ }
18299
18333
  /**
18300
18334
  * Save previous step information just in case we have a total
18301
18335
  * form failure due to 400 response from ForgeRock.
@@ -18310,7 +18344,7 @@ function initialize$4(initOptions) {
18310
18344
  completed: false,
18311
18345
  error: null,
18312
18346
  loading: true,
18313
- metadata: null,
18347
+ metadata: get_store_value(journeyStore).metadata,
18314
18348
  step: prevStep,
18315
18349
  successful: false,
18316
18350
  response: null,
@@ -18348,6 +18382,7 @@ function initialize$4(initOptions) {
18348
18382
  if (nextStep.type === StepType$1.Step) {
18349
18383
  const stageAttribute = nextStep.getStage();
18350
18384
  let stageJson = null;
18385
+ let stageName = null;
18351
18386
  // Check if stage attribute is serialized JSON
18352
18387
  if (stageAttribute && stageAttribute.includes('{')) {
18353
18388
  try {
@@ -18357,8 +18392,11 @@ function initialize$4(initOptions) {
18357
18392
  console.warn('Stage attribute value was not parsable');
18358
18393
  }
18359
18394
  }
18395
+ else if (stageAttribute) {
18396
+ stageName = stageAttribute;
18397
+ }
18360
18398
  const callbackMetadata = buildCallbackMetadata(nextStep, initCheckValidation(), stageJson);
18361
- const stepMetadata = buildStepMetadata(callbackMetadata, stageJson);
18399
+ const stepMetadata = buildStepMetadata(callbackMetadata, stageJson, stageName);
18362
18400
  // Iterate on a successful progression
18363
18401
  stepNumber = stepNumber + 1;
18364
18402
  set({
@@ -18401,7 +18439,7 @@ function initialize$4(initOptions) {
18401
18439
  /**
18402
18440
  * Restart tree to get fresh step
18403
18441
  */
18404
- restartedStep = await FRAuth$1.next(undefined, options);
18442
+ restartedStep = await FRAuth$1.next(undefined, restartOptions);
18405
18443
  }
18406
18444
  catch (err) {
18407
18445
  console.error(`Restart failed step request | ${err}`);
@@ -18457,6 +18495,7 @@ function initialize$4(initOptions) {
18457
18495
  if (restartedStep.type === StepType$1.Step) {
18458
18496
  const stageAttribute = restartedStep.getStage();
18459
18497
  let stageJson = null;
18498
+ let stageName = null;
18460
18499
  // Check if stage attribute is serialized JSON
18461
18500
  if (stageAttribute && stageAttribute.includes('{')) {
18462
18501
  try {
@@ -18466,8 +18505,11 @@ function initialize$4(initOptions) {
18466
18505
  console.warn('Stage attribute value was not parsable');
18467
18506
  }
18468
18507
  }
18508
+ else if (stageAttribute) {
18509
+ stageName = stageAttribute;
18510
+ }
18469
18511
  const callbackMetadata = buildCallbackMetadata(restartedStep, initCheckValidation(), stageJson);
18470
- const stepMetadata = buildStepMetadata(callbackMetadata, stageJson);
18512
+ const stepMetadata = buildStepMetadata(callbackMetadata, stageJson, stageName);
18471
18513
  set({
18472
18514
  completed: false,
18473
18515
  error: {
@@ -18558,7 +18600,7 @@ let stack;
18558
18600
 
18559
18601
  /* src/lib/components/primitives/form/form.svelte generated by Svelte v3.55.1 */
18560
18602
 
18561
- function create_fragment$M(ctx) {
18603
+ function create_fragment$N(ctx) {
18562
18604
  let form;
18563
18605
  let form_class_value;
18564
18606
  let current;
@@ -18645,7 +18687,7 @@ function create_fragment$M(ctx) {
18645
18687
  };
18646
18688
  }
18647
18689
 
18648
- function instance$N($$self, $$props, $$invalidate) {
18690
+ function instance$O($$self, $$props, $$invalidate) {
18649
18691
  let { $$slots: slots = {}, $$scope } = $$props;
18650
18692
  let { ariaDescribedBy } = $$props;
18651
18693
  let { formEl = null } = $$props;
@@ -18773,7 +18815,7 @@ class Form extends SvelteComponent {
18773
18815
  constructor(options) {
18774
18816
  super();
18775
18817
 
18776
- init(this, options, instance$N, create_fragment$M, safe_not_equal, {
18818
+ init(this, options, instance$O, create_fragment$N, safe_not_equal, {
18777
18819
  ariaDescribedBy: 1,
18778
18820
  formEl: 0,
18779
18821
  id: 2,
@@ -18838,7 +18880,7 @@ function create_else_block$6(ctx) {
18838
18880
  }
18839
18881
 
18840
18882
  // (10:0) {#if html}
18841
- function create_if_block$h(ctx) {
18883
+ function create_if_block$i(ctx) {
18842
18884
  let current;
18843
18885
  const default_slot_template = /*#slots*/ ctx[4].default;
18844
18886
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[3], null);
@@ -18935,12 +18977,12 @@ function fallback_block(ctx) {
18935
18977
  };
18936
18978
  }
18937
18979
 
18938
- function create_fragment$L(ctx) {
18980
+ function create_fragment$M(ctx) {
18939
18981
  let current_block_type_index;
18940
18982
  let if_block;
18941
18983
  let if_block_anchor;
18942
18984
  let current;
18943
- const if_block_creators = [create_if_block$h, create_else_block$6];
18985
+ const if_block_creators = [create_if_block$i, create_else_block$6];
18944
18986
  const if_blocks = [];
18945
18987
 
18946
18988
  function select_block_type(ctx, dirty) {
@@ -19004,7 +19046,7 @@ function create_fragment$L(ctx) {
19004
19046
  };
19005
19047
  }
19006
19048
 
19007
- function instance$M($$self, $$props, $$invalidate) {
19049
+ function instance$N($$self, $$props, $$invalidate) {
19008
19050
  let { $$slots: slots = {}, $$scope } = $$props;
19009
19051
  let { html = false } = $$props;
19010
19052
  let { string } = $$props;
@@ -19030,13 +19072,13 @@ function instance$M($$self, $$props, $$invalidate) {
19030
19072
  class Server_strings extends SvelteComponent {
19031
19073
  constructor(options) {
19032
19074
  super();
19033
- init(this, options, instance$M, create_fragment$L, safe_not_equal, { html: 0, string: 2 });
19075
+ init(this, options, instance$N, create_fragment$M, safe_not_equal, { html: 0, string: 2 });
19034
19076
  }
19035
19077
  }
19036
19078
 
19037
19079
  /* src/lib/components/icons/shield-icon.svelte generated by Svelte v3.55.1 */
19038
19080
 
19039
- function create_fragment$K(ctx) {
19081
+ function create_fragment$L(ctx) {
19040
19082
  let svg;
19041
19083
  let path;
19042
19084
  let title;
@@ -19112,7 +19154,7 @@ function create_fragment$K(ctx) {
19112
19154
  };
19113
19155
  }
19114
19156
 
19115
- function instance$L($$self, $$props, $$invalidate) {
19157
+ function instance$M($$self, $$props, $$invalidate) {
19116
19158
  let { $$slots: slots = {}, $$scope } = $$props;
19117
19159
  let { classes = '' } = $$props;
19118
19160
  let { size = '24px' } = $$props;
@@ -19129,7 +19171,7 @@ function instance$L($$self, $$props, $$invalidate) {
19129
19171
  class Shield_icon extends SvelteComponent {
19130
19172
  constructor(options) {
19131
19173
  super();
19132
- init(this, options, instance$L, create_fragment$K, safe_not_equal, { classes: 0, size: 1 });
19174
+ init(this, options, instance$M, create_fragment$L, safe_not_equal, { classes: 0, size: 1 });
19133
19175
  }
19134
19176
  }
19135
19177
 
@@ -19190,7 +19232,7 @@ function initialize$3(customJourneys) {
19190
19232
 
19191
19233
  /* src/lib/journey/stages/_utilities/back-to.svelte generated by Svelte v3.55.1 */
19192
19234
 
19193
- function create_if_block$g(ctx) {
19235
+ function create_if_block$h(ctx) {
19194
19236
  let p;
19195
19237
  let button;
19196
19238
  let t_value = interpolate(/*string*/ ctx[1]) + "";
@@ -19226,9 +19268,9 @@ function create_if_block$g(ctx) {
19226
19268
  };
19227
19269
  }
19228
19270
 
19229
- function create_fragment$J(ctx) {
19271
+ function create_fragment$K(ctx) {
19230
19272
  let if_block_anchor;
19231
- let if_block = /*$stack*/ ctx[2].length > 1 && create_if_block$g(ctx);
19273
+ let if_block = /*$stack*/ ctx[2].length > 1 && create_if_block$h(ctx);
19232
19274
 
19233
19275
  return {
19234
19276
  c() {
@@ -19244,7 +19286,7 @@ function create_fragment$J(ctx) {
19244
19286
  if (if_block) {
19245
19287
  if_block.p(ctx, dirty);
19246
19288
  } else {
19247
- if_block = create_if_block$g(ctx);
19289
+ if_block = create_if_block$h(ctx);
19248
19290
  if_block.c();
19249
19291
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
19250
19292
  }
@@ -19262,7 +19304,7 @@ function create_fragment$J(ctx) {
19262
19304
  };
19263
19305
  }
19264
19306
 
19265
- function instance$K($$self, $$props, $$invalidate) {
19307
+ function instance$L($$self, $$props, $$invalidate) {
19266
19308
  let $stack;
19267
19309
  let $configuredJourneys;
19268
19310
  component_subscribe($$self, configuredJourneys, $$value => $$invalidate(5, $configuredJourneys = $$value));
@@ -19303,7 +19345,7 @@ function instance$K($$self, $$props, $$invalidate) {
19303
19345
  class Back_to extends SvelteComponent {
19304
19346
  constructor(options) {
19305
19347
  super();
19306
- init(this, options, instance$K, create_fragment$J, safe_not_equal, { journey: 0 });
19348
+ init(this, options, instance$L, create_fragment$K, safe_not_equal, { journey: 0 });
19307
19349
  }
19308
19350
  }
19309
19351
 
@@ -19620,7 +19662,7 @@ function getAttributeValidationFailureText(callback) {
19620
19662
 
19621
19663
  /* src/lib/components/primitives/message/input-message.svelte generated by Svelte v3.55.1 */
19622
19664
 
19623
- function create_if_block$f(ctx) {
19665
+ function create_if_block$g(ctx) {
19624
19666
  let p;
19625
19667
  let p_class_value;
19626
19668
  let p_id_value;
@@ -19651,9 +19693,9 @@ function create_if_block$f(ctx) {
19651
19693
  };
19652
19694
  }
19653
19695
 
19654
- function create_fragment$I(ctx) {
19696
+ function create_fragment$J(ctx) {
19655
19697
  let if_block_anchor;
19656
- let if_block = /*dirtyMessage*/ ctx[1] && create_if_block$f(ctx);
19698
+ let if_block = /*dirtyMessage*/ ctx[1] && create_if_block$g(ctx);
19657
19699
 
19658
19700
  return {
19659
19701
  c() {
@@ -19669,7 +19711,7 @@ function create_fragment$I(ctx) {
19669
19711
  if (if_block) {
19670
19712
  if_block.p(ctx, dirty);
19671
19713
  } else {
19672
- if_block = create_if_block$f(ctx);
19714
+ if_block = create_if_block$g(ctx);
19673
19715
  if_block.c();
19674
19716
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
19675
19717
  }
@@ -19701,7 +19743,7 @@ function generateClassString$1(...args) {
19701
19743
  );
19702
19744
  }
19703
19745
 
19704
- function instance$J($$self, $$props, $$invalidate) {
19746
+ function instance$K($$self, $$props, $$invalidate) {
19705
19747
  let { classes = '' } = $$props;
19706
19748
  let { dirtyMessage } = $$props;
19707
19749
  let { key = undefined } = $$props;
@@ -19732,7 +19774,7 @@ class Input_message extends SvelteComponent {
19732
19774
  constructor(options) {
19733
19775
  super();
19734
19776
 
19735
- init(this, options, instance$J, create_fragment$I, safe_not_equal, {
19777
+ init(this, options, instance$K, create_fragment$J, safe_not_equal, {
19736
19778
  classes: 0,
19737
19779
  dirtyMessage: 1,
19738
19780
  key: 2,
@@ -19744,7 +19786,7 @@ class Input_message extends SvelteComponent {
19744
19786
 
19745
19787
  /* src/lib/components/primitives/label/label.svelte generated by Svelte v3.55.1 */
19746
19788
 
19747
- function create_fragment$H(ctx) {
19789
+ function create_fragment$I(ctx) {
19748
19790
  let label;
19749
19791
  let label_class_value;
19750
19792
  let current;
@@ -19807,7 +19849,7 @@ function create_fragment$H(ctx) {
19807
19849
  };
19808
19850
  }
19809
19851
 
19810
- function instance$I($$self, $$props, $$invalidate) {
19852
+ function instance$J($$self, $$props, $$invalidate) {
19811
19853
  let { $$slots: slots = {}, $$scope } = $$props;
19812
19854
  let { key } = $$props;
19813
19855
  let { classes = '' } = $$props;
@@ -19824,13 +19866,13 @@ function instance$I($$self, $$props, $$invalidate) {
19824
19866
  class Label extends SvelteComponent {
19825
19867
  constructor(options) {
19826
19868
  super();
19827
- init(this, options, instance$I, create_fragment$H, safe_not_equal, { key: 0, classes: 1 });
19869
+ init(this, options, instance$J, create_fragment$I, safe_not_equal, { key: 0, classes: 1 });
19828
19870
  }
19829
19871
  }
19830
19872
 
19831
19873
  /* src/lib/components/compositions/checkbox/animated.svelte generated by Svelte v3.55.1 */
19832
19874
 
19833
- function create_default_slot$m(ctx) {
19875
+ function create_default_slot$n(ctx) {
19834
19876
  let span;
19835
19877
  let t;
19836
19878
  let current;
@@ -19887,7 +19929,7 @@ function create_default_slot$m(ctx) {
19887
19929
  };
19888
19930
  }
19889
19931
 
19890
- function create_fragment$G(ctx) {
19932
+ function create_fragment$H(ctx) {
19891
19933
  let div1;
19892
19934
  let input;
19893
19935
  let input_data_message_value;
@@ -19904,7 +19946,7 @@ function create_fragment$G(ctx) {
19904
19946
  props: {
19905
19947
  key: /*key*/ ctx[3],
19906
19948
  classes: "tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",
19907
- $$slots: { default: [create_default_slot$m] },
19949
+ $$slots: { default: [create_default_slot$n] },
19908
19950
  $$scope: { ctx }
19909
19951
  }
19910
19952
  });
@@ -20011,7 +20053,7 @@ function create_fragment$G(ctx) {
20011
20053
  };
20012
20054
  }
20013
20055
 
20014
- function instance$H($$self, $$props, $$invalidate) {
20056
+ function instance$I($$self, $$props, $$invalidate) {
20015
20057
  let { $$slots: slots = {}, $$scope } = $$props;
20016
20058
  let { checkValidity = null } = $$props;
20017
20059
  let { message = '' } = $$props;
@@ -20080,7 +20122,7 @@ let Animated$1 = class Animated extends SvelteComponent {
20080
20122
  constructor(options) {
20081
20123
  super();
20082
20124
 
20083
- init(this, options, instance$H, create_fragment$G, safe_not_equal, {
20125
+ init(this, options, instance$I, create_fragment$H, safe_not_equal, {
20084
20126
  checkValidity: 8,
20085
20127
  message: 1,
20086
20128
  isFirstInvalidInput: 9,
@@ -20096,7 +20138,7 @@ let Animated$1 = class Animated extends SvelteComponent {
20096
20138
 
20097
20139
  /* src/lib/components/primitives/checkbox/checkbox.svelte generated by Svelte v3.55.1 */
20098
20140
 
20099
- function create_default_slot$l(ctx) {
20141
+ function create_default_slot$m(ctx) {
20100
20142
  let current;
20101
20143
  const default_slot_template = /*#slots*/ ctx[7].default;
20102
20144
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[9], null);
@@ -20143,7 +20185,7 @@ function create_default_slot$l(ctx) {
20143
20185
  };
20144
20186
  }
20145
20187
 
20146
- function create_fragment$F(ctx) {
20188
+ function create_fragment$G(ctx) {
20147
20189
  let input;
20148
20190
  let input_aria_describedby_value;
20149
20191
  let t;
@@ -20155,7 +20197,7 @@ function create_fragment$F(ctx) {
20155
20197
  label = new Label({
20156
20198
  props: {
20157
20199
  key: /*key*/ ctx[2],
20158
- $$slots: { default: [create_default_slot$l] },
20200
+ $$slots: { default: [create_default_slot$m] },
20159
20201
  $$scope: { ctx }
20160
20202
  }
20161
20203
  });
@@ -20240,7 +20282,7 @@ function create_fragment$F(ctx) {
20240
20282
  };
20241
20283
  }
20242
20284
 
20243
- function instance$G($$self, $$props, $$invalidate) {
20285
+ function instance$H($$self, $$props, $$invalidate) {
20244
20286
  let { $$slots: slots = {}, $$scope } = $$props;
20245
20287
  let { isFirstInvalidInput } = $$props;
20246
20288
  let { isRequired = false } = $$props;
@@ -20291,7 +20333,7 @@ class Checkbox extends SvelteComponent {
20291
20333
  constructor(options) {
20292
20334
  super();
20293
20335
 
20294
- init(this, options, instance$G, create_fragment$F, safe_not_equal, {
20336
+ init(this, options, instance$H, create_fragment$G, safe_not_equal, {
20295
20337
  isFirstInvalidInput: 6,
20296
20338
  isRequired: 0,
20297
20339
  isInvalid: 1,
@@ -20304,7 +20346,7 @@ class Checkbox extends SvelteComponent {
20304
20346
 
20305
20347
  /* src/lib/components/compositions/checkbox/standard.svelte generated by Svelte v3.55.1 */
20306
20348
 
20307
- function create_default_slot$k(ctx) {
20349
+ function create_default_slot$l(ctx) {
20308
20350
  let current;
20309
20351
  const default_slot_template = /*#slots*/ ctx[10].default;
20310
20352
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[11], null);
@@ -20351,7 +20393,7 @@ function create_default_slot$k(ctx) {
20351
20393
  };
20352
20394
  }
20353
20395
 
20354
- function create_fragment$E(ctx) {
20396
+ function create_fragment$F(ctx) {
20355
20397
  let div;
20356
20398
  let checkbox;
20357
20399
  let t;
@@ -20367,7 +20409,7 @@ function create_fragment$E(ctx) {
20367
20409
  key: /*key*/ ctx[4],
20368
20410
  onChange: /*onChangeWrapper*/ ctx[7],
20369
20411
  value: /*value*/ ctx[6],
20370
- $$slots: { default: [create_default_slot$k] },
20412
+ $$slots: { default: [create_default_slot$l] },
20371
20413
  $$scope: { ctx }
20372
20414
  }
20373
20415
  });
@@ -20438,7 +20480,7 @@ function create_fragment$E(ctx) {
20438
20480
  };
20439
20481
  }
20440
20482
 
20441
- function instance$F($$self, $$props, $$invalidate) {
20483
+ function instance$G($$self, $$props, $$invalidate) {
20442
20484
  let { $$slots: slots = {}, $$scope } = $$props;
20443
20485
  let { checkValidity = null } = $$props;
20444
20486
  let { message = '' } = $$props;
@@ -20491,7 +20533,7 @@ class Standard extends SvelteComponent {
20491
20533
  constructor(options) {
20492
20534
  super();
20493
20535
 
20494
- init(this, options, instance$F, create_fragment$E, safe_not_equal, {
20536
+ init(this, options, instance$G, create_fragment$F, safe_not_equal, {
20495
20537
  checkValidity: 8,
20496
20538
  message: 1,
20497
20539
  isFirstInvalidInput: 2,
@@ -20507,7 +20549,7 @@ class Standard extends SvelteComponent {
20507
20549
 
20508
20550
  /* src/lib/journey/callbacks/boolean/boolean.svelte generated by Svelte v3.55.1 */
20509
20551
 
20510
- function create_default_slot$j(ctx) {
20552
+ function create_default_slot$k(ctx) {
20511
20553
  let t_value = interpolate(textToKey(/*outputName*/ ctx[2]), null, /*prompt*/ ctx[4]) + "";
20512
20554
  let t;
20513
20555
 
@@ -20527,7 +20569,7 @@ function create_default_slot$j(ctx) {
20527
20569
  };
20528
20570
  }
20529
20571
 
20530
- function create_fragment$D(ctx) {
20572
+ function create_fragment$E(ctx) {
20531
20573
  let checkbox;
20532
20574
  let current;
20533
20575
 
@@ -20539,7 +20581,7 @@ function create_fragment$D(ctx) {
20539
20581
  message: /*validationFailure*/ ctx[5],
20540
20582
  onChange: /*setValue*/ ctx[7],
20541
20583
  value: /*previousValue*/ ctx[3],
20542
- $$slots: { default: [create_default_slot$j] },
20584
+ $$slots: { default: [create_default_slot$k] },
20543
20585
  $$scope: { ctx }
20544
20586
  }
20545
20587
  });
@@ -20581,7 +20623,7 @@ function create_fragment$D(ctx) {
20581
20623
  };
20582
20624
  }
20583
20625
 
20584
- function instance$E($$self, $$props, $$invalidate) {
20626
+ function instance$F($$self, $$props, $$invalidate) {
20585
20627
  let { callback } = $$props;
20586
20628
  let { callbackMetadata } = $$props;
20587
20629
  const stepMetadata = null;
@@ -20655,7 +20697,7 @@ let Boolean$1 = class Boolean extends SvelteComponent {
20655
20697
  constructor(options) {
20656
20698
  super();
20657
20699
 
20658
- init(this, options, instance$E, create_fragment$D, safe_not_equal, {
20700
+ init(this, options, instance$F, create_fragment$E, safe_not_equal, {
20659
20701
  callback: 8,
20660
20702
  callbackMetadata: 0,
20661
20703
  stepMetadata: 9,
@@ -20675,14 +20717,14 @@ let Boolean$1 = class Boolean extends SvelteComponent {
20675
20717
 
20676
20718
  /* src/lib/components/compositions/radio/animated.svelte generated by Svelte v3.55.1 */
20677
20719
 
20678
- function get_each_context$7(ctx, list, i) {
20720
+ function get_each_context$8(ctx, list, i) {
20679
20721
  const child_ctx = ctx.slice();
20680
20722
  child_ctx[13] = list[i];
20681
20723
  return child_ctx;
20682
20724
  }
20683
20725
 
20684
20726
  // (41:8) <Label key={`${key}-${option.value}`} classes="tw_input-spacing tw_grid tw_grid-cols-[2.5em_1fr] tw_relative" >
20685
- function create_default_slot$i(ctx) {
20727
+ function create_default_slot$j(ctx) {
20686
20728
  let span;
20687
20729
  let t0;
20688
20730
  let t1_value = /*option*/ ctx[13].text + "";
@@ -20712,7 +20754,7 @@ function create_default_slot$i(ctx) {
20712
20754
  }
20713
20755
 
20714
20756
  // (27:4) {#each options as option}
20715
- function create_each_block$7(ctx) {
20757
+ function create_each_block$8(ctx) {
20716
20758
  let div;
20717
20759
  let input;
20718
20760
  let input_checked_value;
@@ -20729,7 +20771,7 @@ function create_each_block$7(ctx) {
20729
20771
  props: {
20730
20772
  key: `${/*key*/ ctx[5]}-${/*option*/ ctx[13].value}`,
20731
20773
  classes: "tw_input-spacing tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",
20732
- $$slots: { default: [create_default_slot$i] },
20774
+ $$slots: { default: [create_default_slot$j] },
20733
20775
  $$scope: { ctx }
20734
20776
  }
20735
20777
  });
@@ -20823,7 +20865,7 @@ function create_each_block$7(ctx) {
20823
20865
  };
20824
20866
  }
20825
20867
 
20826
- function create_fragment$C(ctx) {
20868
+ function create_fragment$D(ctx) {
20827
20869
  let fieldset;
20828
20870
  let legend;
20829
20871
  let t0;
@@ -20837,7 +20879,7 @@ function create_fragment$C(ctx) {
20837
20879
  let each_blocks = [];
20838
20880
 
20839
20881
  for (let i = 0; i < each_value.length; i += 1) {
20840
- each_blocks[i] = create_each_block$7(get_each_context$7(ctx, each_value, i));
20882
+ each_blocks[i] = create_each_block$8(get_each_context$8(ctx, each_value, i));
20841
20883
  }
20842
20884
 
20843
20885
  const out = i => transition_out(each_blocks[i], 1, 1, () => {
@@ -20895,13 +20937,13 @@ function create_fragment$C(ctx) {
20895
20937
  let i;
20896
20938
 
20897
20939
  for (i = 0; i < each_value.length; i += 1) {
20898
- const child_ctx = get_each_context$7(ctx, each_value, i);
20940
+ const child_ctx = get_each_context$8(ctx, each_value, i);
20899
20941
 
20900
20942
  if (each_blocks[i]) {
20901
20943
  each_blocks[i].p(child_ctx, dirty);
20902
20944
  transition_in(each_blocks[i], 1);
20903
20945
  } else {
20904
- each_blocks[i] = create_each_block$7(child_ctx);
20946
+ each_blocks[i] = create_each_block$8(child_ctx);
20905
20947
  each_blocks[i].c();
20906
20948
  transition_in(each_blocks[i], 1);
20907
20949
  each_blocks[i].m(div, t2);
@@ -20952,7 +20994,7 @@ function create_fragment$C(ctx) {
20952
20994
  };
20953
20995
  }
20954
20996
 
20955
- function instance$D($$self, $$props, $$invalidate) {
20997
+ function instance$E($$self, $$props, $$invalidate) {
20956
20998
  let { defaultOption = null } = $$props;
20957
20999
  let { message = '' } = $$props;
20958
21000
  let { groupLabel = '' } = $$props;
@@ -21014,7 +21056,7 @@ class Animated extends SvelteComponent {
21014
21056
  constructor(options) {
21015
21057
  super();
21016
21058
 
21017
- init(this, options, instance$D, create_fragment$C, safe_not_equal, {
21059
+ init(this, options, instance$E, create_fragment$D, safe_not_equal, {
21018
21060
  defaultOption: 0,
21019
21061
  message: 1,
21020
21062
  groupLabel: 2,
@@ -21032,14 +21074,14 @@ class Animated extends SvelteComponent {
21032
21074
 
21033
21075
  /* src/lib/components/primitives/select/select.svelte generated by Svelte v3.55.1 */
21034
21076
 
21035
- function get_each_context$6(ctx, list, i) {
21077
+ function get_each_context$7(ctx, list, i) {
21036
21078
  const child_ctx = ctx.slice();
21037
21079
  child_ctx[15] = list[i];
21038
21080
  return child_ctx;
21039
21081
  }
21040
21082
 
21041
21083
  // (40:0) {#if labelOrder === 'first'}
21042
- function create_if_block_1$9(ctx) {
21084
+ function create_if_block_1$a(ctx) {
21043
21085
  let label_1;
21044
21086
  let current;
21045
21087
 
@@ -21047,7 +21089,7 @@ function create_if_block_1$9(ctx) {
21047
21089
  props: {
21048
21090
  key: /*key*/ ctx[4],
21049
21091
  classes: `${/*labelClasses*/ ctx[6]}`,
21050
- $$slots: { default: [create_default_slot_1$a] },
21092
+ $$slots: { default: [create_default_slot_1$b] },
21051
21093
  $$scope: { ctx }
21052
21094
  }
21053
21095
  });
@@ -21087,7 +21129,7 @@ function create_if_block_1$9(ctx) {
21087
21129
  }
21088
21130
 
21089
21131
  // (41:2) <Label {key} classes={`${labelClasses}`}>
21090
- function create_default_slot_1$a(ctx) {
21132
+ function create_default_slot_1$b(ctx) {
21091
21133
  let t;
21092
21134
 
21093
21135
  return {
@@ -21107,7 +21149,7 @@ function create_default_slot_1$a(ctx) {
21107
21149
  }
21108
21150
 
21109
21151
  // (55:2) {#each options as option}
21110
- function create_each_block$6(ctx) {
21152
+ function create_each_block$7(ctx) {
21111
21153
  let option;
21112
21154
  let t0_value = /*option*/ ctx[15].text + "";
21113
21155
  let t0;
@@ -21148,7 +21190,7 @@ function create_each_block$6(ctx) {
21148
21190
  }
21149
21191
 
21150
21192
  // (62:0) {#if labelOrder === 'last'}
21151
- function create_if_block$e(ctx) {
21193
+ function create_if_block$f(ctx) {
21152
21194
  let label_1;
21153
21195
  let current;
21154
21196
 
@@ -21158,7 +21200,7 @@ function create_if_block$e(ctx) {
21158
21200
  classes: `${/*shouldDisplayOption*/ ctx[10]
21159
21201
  ? /*labelClasses*/ ctx[6]
21160
21202
  : 'tw_sr-only'}`,
21161
- $$slots: { default: [create_default_slot$h] },
21203
+ $$slots: { default: [create_default_slot$i] },
21162
21204
  $$scope: { ctx }
21163
21205
  }
21164
21206
  });
@@ -21201,7 +21243,7 @@ function create_if_block$e(ctx) {
21201
21243
  }
21202
21244
 
21203
21245
  // (63:2) <Label {key} classes={`${shouldDisplayOption ? labelClasses : 'tw_sr-only'}`}>
21204
- function create_default_slot$h(ctx) {
21246
+ function create_default_slot$i(ctx) {
21205
21247
  let t;
21206
21248
 
21207
21249
  return {
@@ -21220,7 +21262,7 @@ function create_default_slot$h(ctx) {
21220
21262
  };
21221
21263
  }
21222
21264
 
21223
- function create_fragment$B(ctx) {
21265
+ function create_fragment$C(ctx) {
21224
21266
  let t0;
21225
21267
  let select;
21226
21268
  let select_aria_describedby_value;
@@ -21230,15 +21272,15 @@ function create_fragment$B(ctx) {
21230
21272
  let current;
21231
21273
  let mounted;
21232
21274
  let dispose;
21233
- let if_block0 = /*labelOrder*/ ctx[7] === 'first' && create_if_block_1$9(ctx);
21275
+ let if_block0 = /*labelOrder*/ ctx[7] === 'first' && create_if_block_1$a(ctx);
21234
21276
  let each_value = /*options*/ ctx[8];
21235
21277
  let each_blocks = [];
21236
21278
 
21237
21279
  for (let i = 0; i < each_value.length; i += 1) {
21238
- each_blocks[i] = create_each_block$6(get_each_context$6(ctx, each_value, i));
21280
+ each_blocks[i] = create_each_block$7(get_each_context$7(ctx, each_value, i));
21239
21281
  }
21240
21282
 
21241
- let if_block1 = /*labelOrder*/ ctx[7] === 'last' && create_if_block$e(ctx);
21283
+ let if_block1 = /*labelOrder*/ ctx[7] === 'last' && create_if_block$f(ctx);
21242
21284
 
21243
21285
  return {
21244
21286
  c() {
@@ -21292,7 +21334,7 @@ function create_fragment$B(ctx) {
21292
21334
  transition_in(if_block0, 1);
21293
21335
  }
21294
21336
  } else {
21295
- if_block0 = create_if_block_1$9(ctx);
21337
+ if_block0 = create_if_block_1$a(ctx);
21296
21338
  if_block0.c();
21297
21339
  transition_in(if_block0, 1);
21298
21340
  if_block0.m(t0.parentNode, t0);
@@ -21312,12 +21354,12 @@ function create_fragment$B(ctx) {
21312
21354
  let i;
21313
21355
 
21314
21356
  for (i = 0; i < each_value.length; i += 1) {
21315
- const child_ctx = get_each_context$6(ctx, each_value, i);
21357
+ const child_ctx = get_each_context$7(ctx, each_value, i);
21316
21358
 
21317
21359
  if (each_blocks[i]) {
21318
21360
  each_blocks[i].p(child_ctx, dirty);
21319
21361
  } else {
21320
- each_blocks[i] = create_each_block$6(child_ctx);
21362
+ each_blocks[i] = create_each_block$7(child_ctx);
21321
21363
  each_blocks[i].c();
21322
21364
  each_blocks[i].m(select, null);
21323
21365
  }
@@ -21360,7 +21402,7 @@ function create_fragment$B(ctx) {
21360
21402
  transition_in(if_block1, 1);
21361
21403
  }
21362
21404
  } else {
21363
- if_block1 = create_if_block$e(ctx);
21405
+ if_block1 = create_if_block$f(ctx);
21364
21406
  if_block1.c();
21365
21407
  transition_in(if_block1, 1);
21366
21408
  if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
@@ -21401,7 +21443,7 @@ function create_fragment$B(ctx) {
21401
21443
  };
21402
21444
  }
21403
21445
 
21404
- function instance$C($$self, $$props, $$invalidate) {
21446
+ function instance$D($$self, $$props, $$invalidate) {
21405
21447
  let { selectClasses = '' } = $$props;
21406
21448
  let { defaultOption = null } = $$props;
21407
21449
  let { isFirstInvalidInput } = $$props;
@@ -21490,7 +21532,7 @@ class Select extends SvelteComponent {
21490
21532
  constructor(options) {
21491
21533
  super();
21492
21534
 
21493
- init(this, options, instance$C, create_fragment$B, safe_not_equal, {
21535
+ init(this, options, instance$D, create_fragment$C, safe_not_equal, {
21494
21536
  selectClasses: 0,
21495
21537
  defaultOption: 1,
21496
21538
  isFirstInvalidInput: 12,
@@ -21508,7 +21550,7 @@ class Select extends SvelteComponent {
21508
21550
 
21509
21551
  /* src/lib/components/compositions/select-floating/floating-label.svelte generated by Svelte v3.55.1 */
21510
21552
 
21511
- function create_fragment$A(ctx) {
21553
+ function create_fragment$B(ctx) {
21512
21554
  let div;
21513
21555
  let select;
21514
21556
  let t;
@@ -21591,7 +21633,7 @@ function create_fragment$A(ctx) {
21591
21633
  };
21592
21634
  }
21593
21635
 
21594
- function instance$B($$self, $$props, $$invalidate) {
21636
+ function instance$C($$self, $$props, $$invalidate) {
21595
21637
  let { checkValidity = null } = $$props;
21596
21638
  let { defaultOption = null } = $$props;
21597
21639
  let { message = '' } = $$props;
@@ -21646,7 +21688,7 @@ let Floating_label$1 = class Floating_label extends SvelteComponent {
21646
21688
  constructor(options) {
21647
21689
  super();
21648
21690
 
21649
- init(this, options, instance$B, create_fragment$A, safe_not_equal, {
21691
+ init(this, options, instance$C, create_fragment$B, safe_not_equal, {
21650
21692
  checkValidity: 10,
21651
21693
  defaultOption: 1,
21652
21694
  message: 2,
@@ -21713,7 +21755,7 @@ function create_else_block$5(ctx) {
21713
21755
  }
21714
21756
 
21715
21757
  // (62:0) {#if callbackMetadata?.platform?.displayType === 'radio'}
21716
- function create_if_block$d(ctx) {
21758
+ function create_if_block$e(ctx) {
21717
21759
  let radio;
21718
21760
  let current;
21719
21761
 
@@ -21763,12 +21805,12 @@ function create_if_block$d(ctx) {
21763
21805
  };
21764
21806
  }
21765
21807
 
21766
- function create_fragment$z(ctx) {
21808
+ function create_fragment$A(ctx) {
21767
21809
  let current_block_type_index;
21768
21810
  let if_block;
21769
21811
  let if_block_anchor;
21770
21812
  let current;
21771
- const if_block_creators = [create_if_block$d, create_else_block$5];
21813
+ const if_block_creators = [create_if_block$e, create_else_block$5];
21772
21814
  const if_blocks = [];
21773
21815
 
21774
21816
  function select_block_type(ctx, dirty) {
@@ -21832,7 +21874,7 @@ function create_fragment$z(ctx) {
21832
21874
  };
21833
21875
  }
21834
21876
 
21835
- function instance$A($$self, $$props, $$invalidate) {
21877
+ function instance$B($$self, $$props, $$invalidate) {
21836
21878
  const selfSubmitFunction = null;
21837
21879
  const stepMetadata = null;
21838
21880
  const style = {};
@@ -21922,7 +21964,7 @@ class Choice extends SvelteComponent {
21922
21964
  constructor(options) {
21923
21965
  super();
21924
21966
 
21925
- init(this, options, instance$A, create_fragment$z, safe_not_equal, {
21967
+ init(this, options, instance$B, create_fragment$A, safe_not_equal, {
21926
21968
  selfSubmitFunction: 7,
21927
21969
  stepMetadata: 8,
21928
21970
  style: 9,
@@ -21946,7 +21988,7 @@ class Choice extends SvelteComponent {
21946
21988
 
21947
21989
  /* src/lib/components/primitives/grid/grid.svelte generated by Svelte v3.55.1 */
21948
21990
 
21949
- function create_fragment$y(ctx) {
21991
+ function create_fragment$z(ctx) {
21950
21992
  let div;
21951
21993
  let div_class_value;
21952
21994
  let current;
@@ -22022,7 +22064,7 @@ function generateClassString(...args) {
22022
22064
  );
22023
22065
  }
22024
22066
 
22025
- function instance$z($$self, $$props, $$invalidate) {
22067
+ function instance$A($$self, $$props, $$invalidate) {
22026
22068
  let { $$slots: slots = {}, $$scope } = $$props;
22027
22069
  let { num = 2 } = $$props;
22028
22070
 
@@ -22037,79 +22079,33 @@ function instance$z($$self, $$props, $$invalidate) {
22037
22079
  class Grid extends SvelteComponent {
22038
22080
  constructor(options) {
22039
22081
  super();
22040
- init(this, options, instance$z, create_fragment$y, safe_not_equal, { num: 0 });
22082
+ init(this, options, instance$A, create_fragment$z, safe_not_equal, { num: 0 });
22041
22083
  }
22042
22084
  }
22043
22085
 
22044
22086
  /* src/lib/journey/callbacks/confirmation/confirmation.svelte generated by Svelte v3.55.1 */
22045
22087
 
22046
- function get_each_context$5(ctx, list, i) {
22088
+ function get_each_context$6(ctx, list, i) {
22047
22089
  const child_ctx = ctx.slice();
22048
22090
  child_ctx[15] = list[i];
22049
22091
  return child_ctx;
22050
22092
  }
22051
22093
 
22052
- // (116:0) {:else}
22053
- function create_else_block_1(ctx) {
22054
- let grid;
22055
- let current;
22056
-
22057
- grid = new Grid({
22058
- props: {
22059
- num: /*options*/ ctx[3].length,
22060
- $$slots: { default: [create_default_slot_1$9] },
22061
- $$scope: { ctx }
22062
- }
22063
- });
22064
-
22065
- return {
22066
- c() {
22067
- create_component(grid.$$.fragment);
22068
- },
22069
- m(target, anchor) {
22070
- mount_component(grid, target, anchor);
22071
- current = true;
22072
- },
22073
- p(ctx, dirty) {
22074
- const grid_changes = {};
22075
- if (dirty & /*options*/ 8) grid_changes.num = /*options*/ ctx[3].length;
22076
-
22077
- if (dirty & /*$$scope, options, defaultChoice, buttonStyle*/ 262200) {
22078
- grid_changes.$$scope = { dirty, ctx };
22079
- }
22080
-
22081
- grid.$set(grid_changes);
22082
- },
22083
- i(local) {
22084
- if (current) return;
22085
- transition_in(grid.$$.fragment, local);
22086
- current = true;
22087
- },
22088
- o(local) {
22089
- transition_out(grid.$$.fragment, local);
22090
- current = false;
22091
- },
22092
- d(detaching) {
22093
- destroy_component(grid, detaching);
22094
- }
22095
- };
22096
- }
22097
-
22098
- // (95:0) {#if !stepMetadata?.derived.isStepSelfSubmittable}
22099
- function create_if_block$c(ctx) {
22094
+ // (96:0) {#if stepMetadata?.platform?.stageName !== 'OneTimePassword'}
22095
+ function create_if_block$d(ctx) {
22100
22096
  let current_block_type_index;
22101
22097
  let if_block;
22102
22098
  let if_block_anchor;
22103
22099
  let current;
22104
- const if_block_creators = [create_if_block_1$8, create_else_block$4];
22100
+ const if_block_creators = [create_if_block_1$9, create_else_block_1];
22105
22101
  const if_blocks = [];
22106
22102
 
22107
- function select_block_type_1(ctx, dirty) {
22108
- if (/*options*/ ctx[3].length > 1) return 0;
22103
+ function select_block_type(ctx, dirty) {
22104
+ if (!/*stepMetadata*/ ctx[1]?.derived.isStepSelfSubmittable) return 0;
22109
22105
  return 1;
22110
22106
  }
22111
22107
 
22112
- current_block_type_index = select_block_type_1(ctx);
22108
+ current_block_type_index = select_block_type(ctx);
22113
22109
  if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
22114
22110
 
22115
22111
  return {
@@ -22124,7 +22120,7 @@ function create_if_block$c(ctx) {
22124
22120
  },
22125
22121
  p(ctx, dirty) {
22126
22122
  let previous_block_index = current_block_type_index;
22127
- current_block_type_index = select_block_type_1(ctx);
22123
+ current_block_type_index = select_block_type(ctx);
22128
22124
 
22129
22125
  if (current_block_type_index === previous_block_index) {
22130
22126
  if_blocks[current_block_type_index].p(ctx, dirty);
@@ -22165,11 +22161,127 @@ function create_if_block$c(ctx) {
22165
22161
  };
22166
22162
  }
22167
22163
 
22168
- // (119:6) <Button style={options.length > 1 && defaultChoice === Number(opt.value) ? 'primary' : buttonStyle} type="button" width="auto" onClick={() => setBtnValue(Number(opt.value))} >
22169
- function create_default_slot_2$4(ctx) {
22170
- let t0_value = /*opt*/ ctx[15].text + "";
22171
- let t0;
22172
- let t1;
22164
+ // (118:2) {:else}
22165
+ function create_else_block_1(ctx) {
22166
+ let grid;
22167
+ let current;
22168
+
22169
+ grid = new Grid({
22170
+ props: {
22171
+ num: /*options*/ ctx[4].length,
22172
+ $$slots: { default: [create_default_slot_1$a] },
22173
+ $$scope: { ctx }
22174
+ }
22175
+ });
22176
+
22177
+ return {
22178
+ c() {
22179
+ create_component(grid.$$.fragment);
22180
+ },
22181
+ m(target, anchor) {
22182
+ mount_component(grid, target, anchor);
22183
+ current = true;
22184
+ },
22185
+ p(ctx, dirty) {
22186
+ const grid_changes = {};
22187
+ if (dirty & /*options*/ 16) grid_changes.num = /*options*/ ctx[4].length;
22188
+
22189
+ if (dirty & /*$$scope, options, defaultChoice, buttonStyle*/ 262196) {
22190
+ grid_changes.$$scope = { dirty, ctx };
22191
+ }
22192
+
22193
+ grid.$set(grid_changes);
22194
+ },
22195
+ i(local) {
22196
+ if (current) return;
22197
+ transition_in(grid.$$.fragment, local);
22198
+ current = true;
22199
+ },
22200
+ o(local) {
22201
+ transition_out(grid.$$.fragment, local);
22202
+ current = false;
22203
+ },
22204
+ d(detaching) {
22205
+ destroy_component(grid, detaching);
22206
+ }
22207
+ };
22208
+ }
22209
+
22210
+ // (97:2) {#if !stepMetadata?.derived.isStepSelfSubmittable}
22211
+ function create_if_block_1$9(ctx) {
22212
+ let current_block_type_index;
22213
+ let if_block;
22214
+ let if_block_anchor;
22215
+ let current;
22216
+ const if_block_creators = [create_if_block_2$8, create_else_block$4];
22217
+ const if_blocks = [];
22218
+
22219
+ function select_block_type_1(ctx, dirty) {
22220
+ if (/*options*/ ctx[4].length > 1) return 0;
22221
+ return 1;
22222
+ }
22223
+
22224
+ current_block_type_index = select_block_type_1(ctx);
22225
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
22226
+
22227
+ return {
22228
+ c() {
22229
+ if_block.c();
22230
+ if_block_anchor = empty();
22231
+ },
22232
+ m(target, anchor) {
22233
+ if_blocks[current_block_type_index].m(target, anchor);
22234
+ insert(target, if_block_anchor, anchor);
22235
+ current = true;
22236
+ },
22237
+ p(ctx, dirty) {
22238
+ let previous_block_index = current_block_type_index;
22239
+ current_block_type_index = select_block_type_1(ctx);
22240
+
22241
+ if (current_block_type_index === previous_block_index) {
22242
+ if_blocks[current_block_type_index].p(ctx, dirty);
22243
+ } else {
22244
+ group_outros();
22245
+
22246
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
22247
+ if_blocks[previous_block_index] = null;
22248
+ });
22249
+
22250
+ check_outros();
22251
+ if_block = if_blocks[current_block_type_index];
22252
+
22253
+ if (!if_block) {
22254
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
22255
+ if_block.c();
22256
+ } else {
22257
+ if_block.p(ctx, dirty);
22258
+ }
22259
+
22260
+ transition_in(if_block, 1);
22261
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
22262
+ }
22263
+ },
22264
+ i(local) {
22265
+ if (current) return;
22266
+ transition_in(if_block);
22267
+ current = true;
22268
+ },
22269
+ o(local) {
22270
+ transition_out(if_block);
22271
+ current = false;
22272
+ },
22273
+ d(detaching) {
22274
+ if_blocks[current_block_type_index].d(detaching);
22275
+ if (detaching) detach(if_block_anchor);
22276
+ }
22277
+ };
22278
+ }
22279
+
22280
+ // (121:8) <Button style={options.length > 1 && defaultChoice === Number(opt.value) ? 'primary' : buttonStyle} type="button" width="auto" onClick={() => setBtnValue(Number(opt.value))} >
22281
+ function create_default_slot_2$5(ctx) {
22282
+ let t0_value = /*opt*/ ctx[15].text + "";
22283
+ let t0;
22284
+ let t1;
22173
22285
 
22174
22286
  return {
22175
22287
  c() {
@@ -22181,7 +22293,7 @@ function create_default_slot_2$4(ctx) {
22181
22293
  insert(target, t1, anchor);
22182
22294
  },
22183
22295
  p(ctx, dirty) {
22184
- if (dirty & /*options*/ 8 && t0_value !== (t0_value = /*opt*/ ctx[15].text + "")) set_data(t0, t0_value);
22296
+ if (dirty & /*options*/ 16 && t0_value !== (t0_value = /*opt*/ ctx[15].text + "")) set_data(t0, t0_value);
22185
22297
  },
22186
22298
  d(detaching) {
22187
22299
  if (detaching) detach(t0);
@@ -22190,8 +22302,8 @@ function create_default_slot_2$4(ctx) {
22190
22302
  };
22191
22303
  }
22192
22304
 
22193
- // (118:4) {#each options as opt}
22194
- function create_each_block$5(ctx) {
22305
+ // (120:6) {#each options as opt}
22306
+ function create_each_block$6(ctx) {
22195
22307
  let button;
22196
22308
  let current;
22197
22309
 
@@ -22201,13 +22313,13 @@ function create_each_block$5(ctx) {
22201
22313
 
22202
22314
  button = new Button({
22203
22315
  props: {
22204
- style: /*options*/ ctx[3].length > 1 && /*defaultChoice*/ ctx[5] === Number(/*opt*/ ctx[15].value)
22316
+ style: /*options*/ ctx[4].length > 1 && /*defaultChoice*/ ctx[2] === Number(/*opt*/ ctx[15].value)
22205
22317
  ? 'primary'
22206
- : /*buttonStyle*/ ctx[4],
22318
+ : /*buttonStyle*/ ctx[5],
22207
22319
  type: "button",
22208
22320
  width: "auto",
22209
22321
  onClick: func,
22210
- $$slots: { default: [create_default_slot_2$4] },
22322
+ $$slots: { default: [create_default_slot_2$5] },
22211
22323
  $$scope: { ctx }
22212
22324
  }
22213
22325
  });
@@ -22224,13 +22336,13 @@ function create_each_block$5(ctx) {
22224
22336
  ctx = new_ctx;
22225
22337
  const button_changes = {};
22226
22338
 
22227
- if (dirty & /*options, defaultChoice, buttonStyle*/ 56) button_changes.style = /*options*/ ctx[3].length > 1 && /*defaultChoice*/ ctx[5] === Number(/*opt*/ ctx[15].value)
22339
+ if (dirty & /*options, defaultChoice, buttonStyle*/ 52) button_changes.style = /*options*/ ctx[4].length > 1 && /*defaultChoice*/ ctx[2] === Number(/*opt*/ ctx[15].value)
22228
22340
  ? 'primary'
22229
- : /*buttonStyle*/ ctx[4];
22341
+ : /*buttonStyle*/ ctx[5];
22230
22342
 
22231
- if (dirty & /*options*/ 8) button_changes.onClick = func;
22343
+ if (dirty & /*options*/ 16) button_changes.onClick = func;
22232
22344
 
22233
- if (dirty & /*$$scope, options*/ 262152) {
22345
+ if (dirty & /*$$scope, options*/ 262160) {
22234
22346
  button_changes.$$scope = { dirty, ctx };
22235
22347
  }
22236
22348
 
@@ -22251,15 +22363,15 @@ function create_each_block$5(ctx) {
22251
22363
  };
22252
22364
  }
22253
22365
 
22254
- // (117:2) <Grid num={options.length}>
22255
- function create_default_slot_1$9(ctx) {
22366
+ // (119:4) <Grid num={options.length}>
22367
+ function create_default_slot_1$a(ctx) {
22256
22368
  let each_1_anchor;
22257
22369
  let current;
22258
- let each_value = /*options*/ ctx[3];
22370
+ let each_value = /*options*/ ctx[4];
22259
22371
  let each_blocks = [];
22260
22372
 
22261
22373
  for (let i = 0; i < each_value.length; i += 1) {
22262
- each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
22374
+ each_blocks[i] = create_each_block$6(get_each_context$6(ctx, each_value, i));
22263
22375
  }
22264
22376
 
22265
22377
  const out = i => transition_out(each_blocks[i], 1, 1, () => {
@@ -22283,18 +22395,18 @@ function create_default_slot_1$9(ctx) {
22283
22395
  current = true;
22284
22396
  },
22285
22397
  p(ctx, dirty) {
22286
- if (dirty & /*options, defaultChoice, Number, buttonStyle, setBtnValue*/ 312) {
22287
- each_value = /*options*/ ctx[3];
22398
+ if (dirty & /*options, defaultChoice, Number, buttonStyle, setBtnValue*/ 308) {
22399
+ each_value = /*options*/ ctx[4];
22288
22400
  let i;
22289
22401
 
22290
22402
  for (i = 0; i < each_value.length; i += 1) {
22291
- const child_ctx = get_each_context$5(ctx, each_value, i);
22403
+ const child_ctx = get_each_context$6(ctx, each_value, i);
22292
22404
 
22293
22405
  if (each_blocks[i]) {
22294
22406
  each_blocks[i].p(child_ctx, dirty);
22295
22407
  transition_in(each_blocks[i], 1);
22296
22408
  } else {
22297
- each_blocks[i] = create_each_block$5(child_ctx);
22409
+ each_blocks[i] = create_each_block$6(child_ctx);
22298
22410
  each_blocks[i].c();
22299
22411
  transition_in(each_blocks[i], 1);
22300
22412
  each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
@@ -22335,7 +22447,7 @@ function create_default_slot_1$9(ctx) {
22335
22447
  };
22336
22448
  }
22337
22449
 
22338
- // (105:2) {:else}
22450
+ // (107:4) {:else}
22339
22451
  function create_else_block$4(ctx) {
22340
22452
  let checkbox;
22341
22453
  let current;
@@ -22347,7 +22459,7 @@ function create_else_block$4(ctx) {
22347
22459
  key: /*inputName*/ ctx[6],
22348
22460
  onChange: /*setCheckboxValue*/ ctx[10],
22349
22461
  value: false,
22350
- $$slots: { default: [create_default_slot$g] },
22462
+ $$slots: { default: [create_default_slot$h] },
22351
22463
  $$scope: { ctx }
22352
22464
  }
22353
22465
  });
@@ -22365,7 +22477,7 @@ function create_else_block$4(ctx) {
22365
22477
  if (dirty & /*callbackMetadata*/ 1) checkbox_changes.isFirstInvalidInput = /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false;
22366
22478
  if (dirty & /*inputName*/ 64) checkbox_changes.key = /*inputName*/ ctx[6];
22367
22479
 
22368
- if (dirty & /*$$scope, options*/ 262152) {
22480
+ if (dirty & /*$$scope, options*/ 262160) {
22369
22481
  checkbox_changes.$$scope = { dirty, ctx };
22370
22482
  }
22371
22483
 
@@ -22386,8 +22498,8 @@ function create_else_block$4(ctx) {
22386
22498
  };
22387
22499
  }
22388
22500
 
22389
- // (96:2) {#if options.length > 1}
22390
- function create_if_block_1$8(ctx) {
22501
+ // (98:4) {#if options.length > 1}
22502
+ function create_if_block_2$8(ctx) {
22391
22503
  let select;
22392
22504
  let current;
22393
22505
 
@@ -22396,9 +22508,9 @@ function create_if_block_1$8(ctx) {
22396
22508
  isFirstInvalidInput: /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false,
22397
22509
  isRequired: false,
22398
22510
  key: /*inputName*/ ctx[6],
22399
- label: /*label*/ ctx[2],
22511
+ label: /*label*/ ctx[3],
22400
22512
  onChange: /*setOptionValue*/ ctx[9],
22401
- options: /*options*/ ctx[3]
22513
+ options: /*options*/ ctx[4]
22402
22514
  }
22403
22515
  });
22404
22516
 
@@ -22414,8 +22526,8 @@ function create_if_block_1$8(ctx) {
22414
22526
  const select_changes = {};
22415
22527
  if (dirty & /*callbackMetadata*/ 1) select_changes.isFirstInvalidInput = /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false;
22416
22528
  if (dirty & /*inputName*/ 64) select_changes.key = /*inputName*/ ctx[6];
22417
- if (dirty & /*label*/ 4) select_changes.label = /*label*/ ctx[2];
22418
- if (dirty & /*options*/ 8) select_changes.options = /*options*/ ctx[3];
22529
+ if (dirty & /*label*/ 8) select_changes.label = /*label*/ ctx[3];
22530
+ if (dirty & /*options*/ 16) select_changes.options = /*options*/ ctx[4];
22419
22531
  select.$set(select_changes);
22420
22532
  },
22421
22533
  i(local) {
@@ -22433,9 +22545,9 @@ function create_if_block_1$8(ctx) {
22433
22545
  };
22434
22546
  }
22435
22547
 
22436
- // (106:4) <Checkbox isFirstInvalidInput={callbackMetadata?.derived.isFirstInvalidInput || false} isInvalid={false} key={inputName} onChange={setCheckboxValue} value={false} >
22437
- function create_default_slot$g(ctx) {
22438
- let t_value = /*options*/ ctx[3][0].text + "";
22548
+ // (108:6) <Checkbox isFirstInvalidInput={callbackMetadata?.derived.isFirstInvalidInput || false} isInvalid={false} key={inputName} onChange={setCheckboxValue} value={false} >
22549
+ function create_default_slot$h(ctx) {
22550
+ let t_value = /*options*/ ctx[4][0].text + "";
22439
22551
  let t;
22440
22552
 
22441
22553
  return {
@@ -22446,7 +22558,7 @@ function create_default_slot$g(ctx) {
22446
22558
  insert(target, t, anchor);
22447
22559
  },
22448
22560
  p(ctx, dirty) {
22449
- if (dirty & /*options*/ 8 && t_value !== (t_value = /*options*/ ctx[3][0].text + "")) set_data(t, t_value);
22561
+ if (dirty & /*options*/ 16 && t_value !== (t_value = /*options*/ ctx[4][0].text + "")) set_data(t, t_value);
22450
22562
  },
22451
22563
  d(detaching) {
22452
22564
  if (detaching) detach(t);
@@ -22454,57 +22566,43 @@ function create_default_slot$g(ctx) {
22454
22566
  };
22455
22567
  }
22456
22568
 
22457
- function create_fragment$x(ctx) {
22458
- let current_block_type_index;
22459
- let if_block;
22569
+ function create_fragment$y(ctx) {
22460
22570
  let if_block_anchor;
22461
22571
  let current;
22462
- const if_block_creators = [create_if_block$c, create_else_block_1];
22463
- const if_blocks = [];
22464
-
22465
- function select_block_type(ctx, dirty) {
22466
- if (!/*stepMetadata*/ ctx[1]?.derived.isStepSelfSubmittable) return 0;
22467
- return 1;
22468
- }
22469
-
22470
- current_block_type_index = select_block_type(ctx);
22471
- if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
22572
+ let if_block = /*stepMetadata*/ ctx[1]?.platform?.stageName !== 'OneTimePassword' && create_if_block$d(ctx);
22472
22573
 
22473
22574
  return {
22474
22575
  c() {
22475
- if_block.c();
22576
+ if (if_block) if_block.c();
22476
22577
  if_block_anchor = empty();
22477
22578
  },
22478
22579
  m(target, anchor) {
22479
- if_blocks[current_block_type_index].m(target, anchor);
22580
+ if (if_block) if_block.m(target, anchor);
22480
22581
  insert(target, if_block_anchor, anchor);
22481
22582
  current = true;
22482
22583
  },
22483
22584
  p(ctx, [dirty]) {
22484
- let previous_block_index = current_block_type_index;
22485
- current_block_type_index = select_block_type(ctx);
22585
+ if (/*stepMetadata*/ ctx[1]?.platform?.stageName !== 'OneTimePassword') {
22586
+ if (if_block) {
22587
+ if_block.p(ctx, dirty);
22486
22588
 
22487
- if (current_block_type_index === previous_block_index) {
22488
- if_blocks[current_block_type_index].p(ctx, dirty);
22489
- } else {
22589
+ if (dirty & /*stepMetadata*/ 2) {
22590
+ transition_in(if_block, 1);
22591
+ }
22592
+ } else {
22593
+ if_block = create_if_block$d(ctx);
22594
+ if_block.c();
22595
+ transition_in(if_block, 1);
22596
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
22597
+ }
22598
+ } else if (if_block) {
22490
22599
  group_outros();
22491
22600
 
22492
- transition_out(if_blocks[previous_block_index], 1, 1, () => {
22493
- if_blocks[previous_block_index] = null;
22601
+ transition_out(if_block, 1, 1, () => {
22602
+ if_block = null;
22494
22603
  });
22495
22604
 
22496
22605
  check_outros();
22497
- if_block = if_blocks[current_block_type_index];
22498
-
22499
- if (!if_block) {
22500
- if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
22501
- if_block.c();
22502
- } else {
22503
- if_block.p(ctx, dirty);
22504
- }
22505
-
22506
- transition_in(if_block, 1);
22507
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
22508
22606
  }
22509
22607
  },
22510
22608
  i(local) {
@@ -22517,13 +22615,13 @@ function create_fragment$x(ctx) {
22517
22615
  current = false;
22518
22616
  },
22519
22617
  d(detaching) {
22520
- if_blocks[current_block_type_index].d(detaching);
22618
+ if (if_block) if_block.d(detaching);
22521
22619
  if (detaching) detach(if_block_anchor);
22522
22620
  }
22523
22621
  };
22524
22622
  }
22525
22623
 
22526
- function instance$y($$self, $$props, $$invalidate) {
22624
+ function instance$z($$self, $$props, $$invalidate) {
22527
22625
  const style = {};
22528
22626
  let { callback } = $$props;
22529
22627
  let { callbackMetadata } = $$props;
@@ -22591,14 +22689,6 @@ function instance$y($$self, $$props, $$invalidate) {
22591
22689
  }
22592
22690
  }
22593
22691
 
22594
- if (callback.getInputValue() === 0) {
22595
- /**
22596
- * If input value is 0 (falsy value), then let's make sure it's set to the default value
22597
- * There's a case when the input value is 100, and for that we leave it 100
22598
- */
22599
- callback.setOptionIndex(defaultChoice);
22600
- }
22601
-
22602
22692
  const func = opt => setBtnValue(Number(opt.value));
22603
22693
 
22604
22694
  $$self.$$set = $$props => {
@@ -22609,27 +22699,34 @@ function instance$y($$self, $$props, $$invalidate) {
22609
22699
  };
22610
22700
 
22611
22701
  $$self.$$.update = () => {
22612
- if ($$self.$$.dirty & /*callback, callbackMetadata, options, stepMetadata, label*/ 4111) {
22702
+ if ($$self.$$.dirty & /*callback, callbackMetadata, options, defaultChoice, stepMetadata, label*/ 4127) {
22613
22703
  // TODO: use selfSubmitFunction to communicate to step component that this callback is ready
22614
22704
  {
22615
22705
  $$invalidate(6, inputName = callback?.payload?.input?.[0].name || `confirmation-${callbackMetadata?.idx}`);
22616
- $$invalidate(3, options = callback.getOptions().map((option, index) => ({ value: `${index}`, text: option })));
22706
+ $$invalidate(4, options = callback.getOptions().map((option, index) => ({ value: `${index}`, text: option })));
22707
+ $$invalidate(2, defaultChoice = callback.getDefaultOption());
22708
+ $$invalidate(3, label = interpolate(textToKey('pleaseConfirm'), null, 'Please Confirm'));
22617
22709
 
22618
22710
  if (callbackMetadata?.platform?.showOnlyPositiveAnswer) {
22619
- // The positive option is always first in the options array
22620
- $$invalidate(3, options = options.slice(0, 1));
22711
+ // The positive option is always first in the `options` array
22712
+ $$invalidate(4, options = options.slice(0, 1));
22621
22713
  }
22622
22714
 
22623
- $$invalidate(5, defaultChoice = callback.getDefaultOption());
22624
- $$invalidate(2, label = interpolate(textToKey('pleaseConfirm'), null, 'Please Confirm'));
22715
+ if (callback.getInputValue() === 0) {
22716
+ /**
22717
+ * If input value is 0 (falsy value), then let's make sure it's set to the default value
22718
+ * There's a case when the input value is 100, and for that we leave it at 100
22719
+ */
22720
+ callback.setOptionIndex(defaultChoice);
22721
+ }
22625
22722
 
22626
22723
  if (!stepMetadata?.derived.isStepSelfSubmittable && options.length > 1) {
22627
- // Since the user needs to confirm, add this non-value to force selection
22724
+ // Since the user needs to confirm, add this empty `value` to force selection
22628
22725
  options.unshift({ value: '', text: label });
22629
22726
  } else if (options.length === 1) {
22630
- $$invalidate(4, buttonStyle = 'outline');
22727
+ $$invalidate(5, buttonStyle = 'outline');
22631
22728
  } else {
22632
- $$invalidate(4, buttonStyle = 'secondary');
22729
+ $$invalidate(5, buttonStyle = 'secondary');
22633
22730
  }
22634
22731
  }
22635
22732
  }
@@ -22638,10 +22735,10 @@ function instance$y($$self, $$props, $$invalidate) {
22638
22735
  return [
22639
22736
  callbackMetadata,
22640
22737
  stepMetadata,
22738
+ defaultChoice,
22641
22739
  label,
22642
22740
  options,
22643
22741
  buttonStyle,
22644
- defaultChoice,
22645
22742
  inputName,
22646
22743
  Checkbox,
22647
22744
  setBtnValue,
@@ -22658,7 +22755,7 @@ class Confirmation extends SvelteComponent {
22658
22755
  constructor(options) {
22659
22756
  super();
22660
22757
 
22661
- init(this, options, instance$y, create_fragment$x, safe_not_equal, {
22758
+ init(this, options, instance$z, create_fragment$y, safe_not_equal, {
22662
22759
  style: 11,
22663
22760
  callback: 12,
22664
22761
  callbackMetadata: 0,
@@ -22674,7 +22771,7 @@ class Confirmation extends SvelteComponent {
22674
22771
 
22675
22772
  /* src/lib/journey/callbacks/hidden-value/hidden-value.svelte generated by Svelte v3.55.1 */
22676
22773
 
22677
- function instance$x($$self, $$props, $$invalidate) {
22774
+ function instance$y($$self, $$props, $$invalidate) {
22678
22775
  const callbackMetadata = null;
22679
22776
  const selfSubmitFunction = null;
22680
22777
  const stepMetadata = null;
@@ -22687,7 +22784,7 @@ class Hidden_value extends SvelteComponent {
22687
22784
  constructor(options) {
22688
22785
  super();
22689
22786
 
22690
- init(this, options, instance$x, null, safe_not_equal, {
22787
+ init(this, options, instance$y, null, safe_not_equal, {
22691
22788
  callbackMetadata: 0,
22692
22789
  selfSubmitFunction: 1,
22693
22790
  stepMetadata: 2,
@@ -22727,7 +22824,7 @@ function create_if_block_7$1(ctx) {
22727
22824
  props: {
22728
22825
  key: /*key*/ ctx[3],
22729
22826
  classes: `${/*labelClasses*/ ctx[5]} tw_w-full tw_ml-1`,
22730
- $$slots: { default: [create_default_slot_1$8] },
22827
+ $$slots: { default: [create_default_slot_1$9] },
22731
22828
  $$scope: { ctx }
22732
22829
  }
22733
22830
  });
@@ -22767,7 +22864,7 @@ function create_if_block_7$1(ctx) {
22767
22864
  }
22768
22865
 
22769
22866
  // (25:2) <Label {key} classes={`${labelClasses} tw_w-full tw_ml-1`}>
22770
- function create_default_slot_1$8(ctx) {
22867
+ function create_default_slot_1$9(ctx) {
22771
22868
  let t;
22772
22869
 
22773
22870
  return {
@@ -23107,7 +23204,7 @@ function create_if_block_3$3(ctx) {
23107
23204
  }
23108
23205
 
23109
23206
  // (97:0) {#if type === 'phone'}
23110
- function create_if_block_2$6(ctx) {
23207
+ function create_if_block_2$7(ctx) {
23111
23208
  let input;
23112
23209
  let input_aria_describedby_value;
23113
23210
  let input_class_value;
@@ -23187,7 +23284,7 @@ function create_if_block_2$6(ctx) {
23187
23284
  }
23188
23285
 
23189
23286
  // (113:0) {#if type === 'text'}
23190
- function create_if_block_1$7(ctx) {
23287
+ function create_if_block_1$8(ctx) {
23191
23288
  let input;
23192
23289
  let input_aria_describedby_value;
23193
23290
  let input_class_value;
@@ -23267,7 +23364,7 @@ function create_if_block_1$7(ctx) {
23267
23364
  }
23268
23365
 
23269
23366
  // (129:0) {#if labelOrder === 'last'}
23270
- function create_if_block$b(ctx) {
23367
+ function create_if_block$c(ctx) {
23271
23368
  let label_1;
23272
23369
  let current;
23273
23370
 
@@ -23275,7 +23372,7 @@ function create_if_block$b(ctx) {
23275
23372
  props: {
23276
23373
  key: /*key*/ ctx[3],
23277
23374
  classes: `${/*labelClasses*/ ctx[5]}`,
23278
- $$slots: { default: [create_default_slot$f] },
23375
+ $$slots: { default: [create_default_slot$g] },
23279
23376
  $$scope: { ctx }
23280
23377
  }
23281
23378
  });
@@ -23315,7 +23412,7 @@ function create_if_block$b(ctx) {
23315
23412
  }
23316
23413
 
23317
23414
  // (130:2) <Label {key} classes={`${labelClasses}`}>
23318
- function create_default_slot$f(ctx) {
23415
+ function create_default_slot$g(ctx) {
23319
23416
  let t;
23320
23417
 
23321
23418
  return {
@@ -23334,7 +23431,7 @@ function create_default_slot$f(ctx) {
23334
23431
  };
23335
23432
  }
23336
23433
 
23337
- function create_fragment$w(ctx) {
23434
+ function create_fragment$x(ctx) {
23338
23435
  let t0;
23339
23436
  let t1;
23340
23437
  let t2;
@@ -23349,9 +23446,9 @@ function create_fragment$w(ctx) {
23349
23446
  let if_block2 = /*type*/ ctx[11] === 'email' && create_if_block_5$1(ctx);
23350
23447
  let if_block3 = /*type*/ ctx[11] === 'number' && create_if_block_4$1(ctx);
23351
23448
  let if_block4 = /*type*/ ctx[11] === 'password' && create_if_block_3$3(ctx);
23352
- let if_block5 = /*type*/ ctx[11] === 'phone' && create_if_block_2$6(ctx);
23353
- let if_block6 = /*type*/ ctx[11] === 'text' && create_if_block_1$7(ctx);
23354
- let if_block7 = /*labelOrder*/ ctx[6] === 'last' && create_if_block$b(ctx);
23449
+ let if_block5 = /*type*/ ctx[11] === 'phone' && create_if_block_2$7(ctx);
23450
+ let if_block6 = /*type*/ ctx[11] === 'text' && create_if_block_1$8(ctx);
23451
+ let if_block7 = /*labelOrder*/ ctx[6] === 'last' && create_if_block$c(ctx);
23355
23452
 
23356
23453
  return {
23357
23454
  c() {
@@ -23471,7 +23568,7 @@ function create_fragment$w(ctx) {
23471
23568
  if (if_block5) {
23472
23569
  if_block5.p(ctx, dirty);
23473
23570
  } else {
23474
- if_block5 = create_if_block_2$6(ctx);
23571
+ if_block5 = create_if_block_2$7(ctx);
23475
23572
  if_block5.c();
23476
23573
  if_block5.m(t5.parentNode, t5);
23477
23574
  }
@@ -23484,7 +23581,7 @@ function create_fragment$w(ctx) {
23484
23581
  if (if_block6) {
23485
23582
  if_block6.p(ctx, dirty);
23486
23583
  } else {
23487
- if_block6 = create_if_block_1$7(ctx);
23584
+ if_block6 = create_if_block_1$8(ctx);
23488
23585
  if_block6.c();
23489
23586
  if_block6.m(t6.parentNode, t6);
23490
23587
  }
@@ -23501,7 +23598,7 @@ function create_fragment$w(ctx) {
23501
23598
  transition_in(if_block7, 1);
23502
23599
  }
23503
23600
  } else {
23504
- if_block7 = create_if_block$b(ctx);
23601
+ if_block7 = create_if_block$c(ctx);
23505
23602
  if_block7.c();
23506
23603
  transition_in(if_block7, 1);
23507
23604
  if_block7.m(if_block7_anchor.parentNode, if_block7_anchor);
@@ -23548,7 +23645,7 @@ function create_fragment$w(ctx) {
23548
23645
  };
23549
23646
  }
23550
23647
 
23551
- function instance$w($$self, $$props, $$invalidate) {
23648
+ function instance$x($$self, $$props, $$invalidate) {
23552
23649
  let { forceValidityFailure = false } = $$props;
23553
23650
  let { isFirstInvalidInput } = $$props;
23554
23651
  let { inputClasses = '' } = $$props;
@@ -23692,7 +23789,7 @@ class Input extends SvelteComponent {
23692
23789
  constructor(options) {
23693
23790
  super();
23694
23791
 
23695
- init(this, options, instance$w, create_fragment$w, safe_not_equal, {
23792
+ init(this, options, instance$x, create_fragment$x, safe_not_equal, {
23696
23793
  forceValidityFailure: 1,
23697
23794
  isFirstInvalidInput: 13,
23698
23795
  inputClasses: 2,
@@ -23714,7 +23811,7 @@ class Input extends SvelteComponent {
23714
23811
  const get_input_button_slot_changes$1 = dirty => ({});
23715
23812
  const get_input_button_slot_context$1 = ctx => ({});
23716
23813
 
23717
- function create_fragment$v(ctx) {
23814
+ function create_fragment$w(ctx) {
23718
23815
  let div1;
23719
23816
  let input;
23720
23817
  let updating_value;
@@ -23889,7 +23986,7 @@ function create_fragment$v(ctx) {
23889
23986
  };
23890
23987
  }
23891
23988
 
23892
- function instance$v($$self, $$props, $$invalidate) {
23989
+ function instance$w($$self, $$props, $$invalidate) {
23893
23990
  let { $$slots: slots = {}, $$scope } = $$props;
23894
23991
  let { checkValidity = null } = $$props;
23895
23992
  let { forceValidityFailure = false } = $$props;
@@ -23960,7 +24057,7 @@ class Floating_label extends SvelteComponent {
23960
24057
  constructor(options) {
23961
24058
  super();
23962
24059
 
23963
- init(this, options, instance$v, create_fragment$v, safe_not_equal, {
24060
+ init(this, options, instance$w, create_fragment$w, safe_not_equal, {
23964
24061
  checkValidity: 12,
23965
24062
  forceValidityFailure: 2,
23966
24063
  message: 3,
@@ -23982,7 +24079,7 @@ class Floating_label extends SvelteComponent {
23982
24079
  const get_input_button_slot_changes = dirty => ({});
23983
24080
  const get_input_button_slot_context = ctx => ({});
23984
24081
 
23985
- function create_fragment$u(ctx) {
24082
+ function create_fragment$v(ctx) {
23986
24083
  let div1;
23987
24084
  let input;
23988
24085
  let updating_value;
@@ -24161,7 +24258,7 @@ function create_fragment$u(ctx) {
24161
24258
  };
24162
24259
  }
24163
24260
 
24164
- function instance$u($$self, $$props, $$invalidate) {
24261
+ function instance$v($$self, $$props, $$invalidate) {
24165
24262
  let { $$slots: slots = {}, $$scope } = $$props;
24166
24263
  let { checkValidity = null } = $$props;
24167
24264
  let { forceValidityFailure = false } = $$props;
@@ -24235,7 +24332,7 @@ class Stacked_label extends SvelteComponent {
24235
24332
  constructor(options) {
24236
24333
  super();
24237
24334
 
24238
- init(this, options, instance$u, create_fragment$u, safe_not_equal, {
24335
+ init(this, options, instance$v, create_fragment$v, safe_not_equal, {
24239
24336
  checkValidity: 13,
24240
24337
  forceValidityFailure: 2,
24241
24338
  isFirstInvalidInput: 3,
@@ -24256,7 +24353,7 @@ class Stacked_label extends SvelteComponent {
24256
24353
 
24257
24354
  /* src/lib/components/icons/lock-icon.svelte generated by Svelte v3.55.1 */
24258
24355
 
24259
- function create_fragment$t(ctx) {
24356
+ function create_fragment$u(ctx) {
24260
24357
  let svg;
24261
24358
  let path0;
24262
24359
  let path1;
@@ -24337,7 +24434,7 @@ function create_fragment$t(ctx) {
24337
24434
  };
24338
24435
  }
24339
24436
 
24340
- function instance$t($$self, $$props, $$invalidate) {
24437
+ function instance$u($$self, $$props, $$invalidate) {
24341
24438
  let { $$slots: slots = {}, $$scope } = $$props;
24342
24439
  let { classes = '' } = $$props;
24343
24440
  let { size = '24px' } = $$props;
@@ -24354,13 +24451,13 @@ function instance$t($$self, $$props, $$invalidate) {
24354
24451
  class Lock_icon extends SvelteComponent {
24355
24452
  constructor(options) {
24356
24453
  super();
24357
- init(this, options, instance$t, create_fragment$t, safe_not_equal, { classes: 0, size: 1 });
24454
+ init(this, options, instance$u, create_fragment$u, safe_not_equal, { classes: 0, size: 1 });
24358
24455
  }
24359
24456
  }
24360
24457
 
24361
24458
  /* src/lib/journey/callbacks/kba/kba-create.svelte generated by Svelte v3.55.1 */
24362
24459
 
24363
- function create_if_block$a(ctx) {
24460
+ function create_if_block$b(ctx) {
24364
24461
  let input;
24365
24462
  let current;
24366
24463
 
@@ -24404,7 +24501,7 @@ function create_if_block$a(ctx) {
24404
24501
  };
24405
24502
  }
24406
24503
 
24407
- function create_fragment$s(ctx) {
24504
+ function create_fragment$t(ctx) {
24408
24505
  let fieldset;
24409
24506
  let legend;
24410
24507
  let t0;
@@ -24439,7 +24536,7 @@ function create_fragment$s(ctx) {
24439
24536
  }
24440
24537
  });
24441
24538
 
24442
- let if_block = /*displayCustomQuestionInput*/ ctx[3] && create_if_block$a(ctx);
24539
+ let if_block = /*displayCustomQuestionInput*/ ctx[3] && create_if_block$b(ctx);
24443
24540
 
24444
24541
  function input_value_binding(value) {
24445
24542
  /*input_value_binding*/ ctx[20](value);
@@ -24517,7 +24614,7 @@ function create_fragment$s(ctx) {
24517
24614
  transition_in(if_block, 1);
24518
24615
  }
24519
24616
  } else {
24520
- if_block = create_if_block$a(ctx);
24617
+ if_block = create_if_block$b(ctx);
24521
24618
  if_block.c();
24522
24619
  transition_in(if_block, 1);
24523
24620
  if_block.m(fieldset, t6);
@@ -24575,7 +24672,7 @@ function create_fragment$s(ctx) {
24575
24672
  };
24576
24673
  }
24577
24674
 
24578
- function instance$s($$self, $$props, $$invalidate) {
24675
+ function instance$t($$self, $$props, $$invalidate) {
24579
24676
  let $value;
24580
24677
  const selfSubmitFunction = null;
24581
24678
  const stepMetadata = null;
@@ -24754,7 +24851,7 @@ class Kba_create extends SvelteComponent {
24754
24851
  constructor(options) {
24755
24852
  super();
24756
24853
 
24757
- init(this, options, instance$s, create_fragment$s, safe_not_equal, {
24854
+ init(this, options, instance$t, create_fragment$t, safe_not_equal, {
24758
24855
  selfSubmitFunction: 12,
24759
24856
  stepMetadata: 13,
24760
24857
  callback: 14,
@@ -24774,7 +24871,7 @@ class Kba_create extends SvelteComponent {
24774
24871
 
24775
24872
  /* src/lib/journey/callbacks/username/name.svelte generated by Svelte v3.55.1 */
24776
24873
 
24777
- function create_fragment$r(ctx) {
24874
+ function create_fragment$s(ctx) {
24778
24875
  let input;
24779
24876
  let current;
24780
24877
 
@@ -24782,7 +24879,7 @@ function create_fragment$r(ctx) {
24782
24879
  props: {
24783
24880
  isFirstInvalidInput: /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false,
24784
24881
  key: /*inputName*/ ctx[2],
24785
- label: interpolate(textToKey(/*callbackType*/ ctx[1]), null, /*textInputLabel*/ ctx[3]),
24882
+ label: interpolate(textToKey(/*textInputLabel*/ ctx[3] || /*callbackType*/ ctx[1]), null, /*textInputLabel*/ ctx[3]),
24786
24883
  onChange: /*setValue*/ ctx[6],
24787
24884
  type: "text",
24788
24885
  showMessage: false,
@@ -24804,7 +24901,7 @@ function create_fragment$r(ctx) {
24804
24901
  const input_changes = {};
24805
24902
  if (dirty & /*callbackMetadata*/ 1) input_changes.isFirstInvalidInput = /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false;
24806
24903
  if (dirty & /*inputName*/ 4) input_changes.key = /*inputName*/ ctx[2];
24807
- if (dirty & /*callbackType, textInputLabel*/ 10) input_changes.label = interpolate(textToKey(/*callbackType*/ ctx[1]), null, /*textInputLabel*/ ctx[3]);
24904
+ if (dirty & /*textInputLabel, callbackType*/ 10) input_changes.label = interpolate(textToKey(/*textInputLabel*/ ctx[3] || /*callbackType*/ ctx[1]), null, /*textInputLabel*/ ctx[3]);
24808
24905
 
24809
24906
  if (dirty & /*value*/ 16) input_changes.value = typeof /*value*/ ctx[4] === 'string'
24810
24907
  ? /*value*/ ctx[4]
@@ -24827,7 +24924,7 @@ function create_fragment$r(ctx) {
24827
24924
  };
24828
24925
  }
24829
24926
 
24830
- function instance$r($$self, $$props, $$invalidate) {
24927
+ function instance$s($$self, $$props, $$invalidate) {
24831
24928
  const selfSubmitFunction = null;
24832
24929
  const stepMetadata = null;
24833
24930
  let { callback } = $$props;
@@ -24879,7 +24976,7 @@ class Name extends SvelteComponent {
24879
24976
  constructor(options) {
24880
24977
  super();
24881
24978
 
24882
- init(this, options, instance$r, create_fragment$r, safe_not_equal, {
24979
+ init(this, options, instance$s, create_fragment$s, safe_not_equal, {
24883
24980
  selfSubmitFunction: 7,
24884
24981
  stepMetadata: 8,
24885
24982
  callback: 9,
@@ -24981,7 +25078,7 @@ function create_else_block$3(ctx) {
24981
25078
  }
24982
25079
 
24983
25080
  // (6:0) {#if !visible}
24984
- function create_if_block$9(ctx) {
25081
+ function create_if_block$a(ctx) {
24985
25082
  let svg;
24986
25083
  let path0;
24987
25084
  let path1;
@@ -25062,12 +25159,12 @@ function create_if_block$9(ctx) {
25062
25159
  };
25063
25160
  }
25064
25161
 
25065
- function create_fragment$q(ctx) {
25162
+ function create_fragment$r(ctx) {
25066
25163
  let current_block_type_index;
25067
25164
  let if_block;
25068
25165
  let if_block_anchor;
25069
25166
  let current;
25070
- const if_block_creators = [create_if_block$9, create_else_block$3];
25167
+ const if_block_creators = [create_if_block$a, create_else_block$3];
25071
25168
  const if_blocks = [];
25072
25169
 
25073
25170
  function select_block_type(ctx, dirty) {
@@ -25131,7 +25228,7 @@ function create_fragment$q(ctx) {
25131
25228
  };
25132
25229
  }
25133
25230
 
25134
- function instance$q($$self, $$props, $$invalidate) {
25231
+ function instance$r($$self, $$props, $$invalidate) {
25135
25232
  let { $$slots: slots = {}, $$scope } = $$props;
25136
25233
  let { classes = '' } = $$props;
25137
25234
  let { size = '24px' } = $$props;
@@ -25150,13 +25247,13 @@ function instance$q($$self, $$props, $$invalidate) {
25150
25247
  class Eye_icon extends SvelteComponent {
25151
25248
  constructor(options) {
25152
25249
  super();
25153
- init(this, options, instance$q, create_fragment$q, safe_not_equal, { classes: 0, size: 1, visible: 2 });
25250
+ init(this, options, instance$r, create_fragment$r, safe_not_equal, { classes: 0, size: 1, visible: 2 });
25154
25251
  }
25155
25252
  }
25156
25253
 
25157
25254
  /* src/lib/journey/callbacks/password/confirm-input.svelte generated by Svelte v3.55.1 */
25158
25255
 
25159
- function create_default_slot_1$7(ctx) {
25256
+ function create_default_slot_1$8(ctx) {
25160
25257
  let current;
25161
25258
  const default_slot_template = /*#slots*/ ctx[12].default;
25162
25259
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[13], null);
@@ -25204,7 +25301,7 @@ function create_default_slot_1$7(ctx) {
25204
25301
  }
25205
25302
 
25206
25303
  // (47:4) <EyeIcon classes="tw_password-icon dark:tw_password-icon_dark" visible={isVisible} >
25207
- function create_default_slot$e(ctx) {
25304
+ function create_default_slot$f(ctx) {
25208
25305
  let t;
25209
25306
  let current;
25210
25307
  t = new Locale_strings({ props: { key: "showPassword" } });
@@ -25245,7 +25342,7 @@ function create_input_button_slot$1(ctx) {
25245
25342
  props: {
25246
25343
  classes: "tw_password-icon dark:tw_password-icon_dark",
25247
25344
  visible: /*isVisible*/ ctx[6],
25248
- $$slots: { default: [create_default_slot$e] },
25345
+ $$slots: { default: [create_default_slot$f] },
25249
25346
  $$scope: { ctx }
25250
25347
  }
25251
25348
  });
@@ -25296,7 +25393,7 @@ function create_input_button_slot$1(ctx) {
25296
25393
  };
25297
25394
  }
25298
25395
 
25299
- function create_fragment$p(ctx) {
25396
+ function create_fragment$q(ctx) {
25300
25397
  let input;
25301
25398
  let current;
25302
25399
 
@@ -25320,7 +25417,7 @@ function create_fragment$p(ctx) {
25320
25417
  : '',
25321
25418
  $$slots: {
25322
25419
  "input-button": [create_input_button_slot$1],
25323
- default: [create_default_slot_1$7]
25420
+ default: [create_default_slot_1$8]
25324
25421
  },
25325
25422
  $$scope: { ctx }
25326
25423
  }
@@ -25370,7 +25467,7 @@ function create_fragment$p(ctx) {
25370
25467
  };
25371
25468
  }
25372
25469
 
25373
- function instance$p($$self, $$props, $$invalidate) {
25470
+ function instance$q($$self, $$props, $$invalidate) {
25374
25471
  let { $$slots: slots = {}, $$scope } = $$props;
25375
25472
  let { forceValidityFailure = false } = $$props;
25376
25473
  let { key } = $$props;
@@ -25425,7 +25522,7 @@ class Confirm_input extends SvelteComponent {
25425
25522
  constructor(options) {
25426
25523
  super();
25427
25524
 
25428
- init(this, options, instance$p, create_fragment$p, safe_not_equal, {
25525
+ init(this, options, instance$q, create_fragment$q, safe_not_equal, {
25429
25526
  forceValidityFailure: 0,
25430
25527
  key: 1,
25431
25528
  onChange: 2,
@@ -25439,7 +25536,7 @@ class Confirm_input extends SvelteComponent {
25439
25536
 
25440
25537
  /* src/lib/journey/callbacks/password/base.svelte generated by Svelte v3.55.1 */
25441
25538
 
25442
- function create_default_slot_1$6(ctx) {
25539
+ function create_default_slot_1$7(ctx) {
25443
25540
  let current;
25444
25541
  const default_slot_template = /*#slots*/ ctx[19].default;
25445
25542
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[20], null);
@@ -25487,7 +25584,7 @@ function create_default_slot_1$6(ctx) {
25487
25584
  }
25488
25585
 
25489
25586
  // (82:4) <EyeIcon classes="tw_password-icon dark:tw_password-icon_dark" visible={isVisible} >
25490
- function create_default_slot$d(ctx) {
25587
+ function create_default_slot$e(ctx) {
25491
25588
  let t;
25492
25589
  let current;
25493
25590
  t = new Locale_strings({ props: { key: "showPassword" } });
@@ -25528,7 +25625,7 @@ function create_input_button_slot(ctx) {
25528
25625
  props: {
25529
25626
  classes: "tw_password-icon dark:tw_password-icon_dark",
25530
25627
  visible: /*isVisible*/ ctx[10],
25531
- $$slots: { default: [create_default_slot$d] },
25628
+ $$slots: { default: [create_default_slot$e] },
25532
25629
  $$scope: { ctx }
25533
25630
  }
25534
25631
  });
@@ -25580,7 +25677,7 @@ function create_input_button_slot(ctx) {
25580
25677
  }
25581
25678
 
25582
25679
  // (89:0) {#if callbackMetadata?.platform?.confirmPassword}
25583
- function create_if_block$8(ctx) {
25680
+ function create_if_block$9(ctx) {
25584
25681
  let confirminput;
25585
25682
  let current;
25586
25683
 
@@ -25627,7 +25724,7 @@ function create_if_block$8(ctx) {
25627
25724
  };
25628
25725
  }
25629
25726
 
25630
- function create_fragment$o(ctx) {
25727
+ function create_fragment$p(ctx) {
25631
25728
  let input;
25632
25729
  let t;
25633
25730
  let if_block_anchor;
@@ -25652,13 +25749,13 @@ function create_fragment$o(ctx) {
25652
25749
  : '',
25653
25750
  $$slots: {
25654
25751
  "input-button": [create_input_button_slot],
25655
- default: [create_default_slot_1$6]
25752
+ default: [create_default_slot_1$7]
25656
25753
  },
25657
25754
  $$scope: { ctx }
25658
25755
  }
25659
25756
  });
25660
25757
 
25661
- let if_block = /*callbackMetadata*/ ctx[1]?.platform?.confirmPassword && create_if_block$8(ctx);
25758
+ let if_block = /*callbackMetadata*/ ctx[1]?.platform?.confirmPassword && create_if_block$9(ctx);
25662
25759
 
25663
25760
  return {
25664
25761
  c() {
@@ -25707,7 +25804,7 @@ function create_fragment$o(ctx) {
25707
25804
  transition_in(if_block, 1);
25708
25805
  }
25709
25806
  } else {
25710
- if_block = create_if_block$8(ctx);
25807
+ if_block = create_if_block$9(ctx);
25711
25808
  if_block.c();
25712
25809
  transition_in(if_block, 1);
25713
25810
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -25742,7 +25839,7 @@ function create_fragment$o(ctx) {
25742
25839
  };
25743
25840
  }
25744
25841
 
25745
- function instance$o($$self, $$props, $$invalidate) {
25842
+ function instance$p($$self, $$props, $$invalidate) {
25746
25843
  let { $$slots: slots = {}, $$scope } = $$props;
25747
25844
  let { callback } = $$props;
25748
25845
  let { callbackMetadata } = $$props;
@@ -25851,7 +25948,7 @@ class Base extends SvelteComponent {
25851
25948
  constructor(options) {
25852
25949
  super();
25853
25950
 
25854
- init(this, options, instance$o, create_fragment$o, safe_not_equal, {
25951
+ init(this, options, instance$p, create_fragment$p, safe_not_equal, {
25855
25952
  callback: 17,
25856
25953
  callbackMetadata: 1,
25857
25954
  key: 0,
@@ -25866,7 +25963,7 @@ class Base extends SvelteComponent {
25866
25963
 
25867
25964
  /* src/lib/journey/callbacks/password/password.svelte generated by Svelte v3.55.1 */
25868
25965
 
25869
- function create_fragment$n(ctx) {
25966
+ function create_fragment$o(ctx) {
25870
25967
  let base;
25871
25968
  let current;
25872
25969
 
@@ -25910,7 +26007,7 @@ function create_fragment$n(ctx) {
25910
26007
  };
25911
26008
  }
25912
26009
 
25913
- function instance$n($$self, $$props, $$invalidate) {
26010
+ function instance$o($$self, $$props, $$invalidate) {
25914
26011
  const selfSubmitFunction = null;
25915
26012
  const stepMetadata = null;
25916
26013
  let { callback } = $$props;
@@ -25940,7 +26037,7 @@ class Password extends SvelteComponent {
25940
26037
  constructor(options) {
25941
26038
  super();
25942
26039
 
25943
- init(this, options, instance$n, create_fragment$n, safe_not_equal, {
26040
+ init(this, options, instance$o, create_fragment$o, safe_not_equal, {
25944
26041
  selfSubmitFunction: 4,
25945
26042
  stepMetadata: 5,
25946
26043
  callback: 0,
@@ -25960,7 +26057,7 @@ class Password extends SvelteComponent {
25960
26057
 
25961
26058
  /* src/lib/components/primitives/text/text.svelte generated by Svelte v3.55.1 */
25962
26059
 
25963
- function create_fragment$m(ctx) {
26060
+ function create_fragment$n(ctx) {
25964
26061
  let p;
25965
26062
  let p_class_value;
25966
26063
  let current;
@@ -26018,7 +26115,7 @@ function create_fragment$m(ctx) {
26018
26115
  };
26019
26116
  }
26020
26117
 
26021
- function instance$m($$self, $$props, $$invalidate) {
26118
+ function instance$n($$self, $$props, $$invalidate) {
26022
26119
  let { $$slots: slots = {}, $$scope } = $$props;
26023
26120
  let { classes = '' } = $$props;
26024
26121
 
@@ -26033,13 +26130,13 @@ function instance$m($$self, $$props, $$invalidate) {
26033
26130
  class Text extends SvelteComponent {
26034
26131
  constructor(options) {
26035
26132
  super();
26036
- init(this, options, instance$m, create_fragment$m, safe_not_equal, { classes: 0 });
26133
+ init(this, options, instance$n, create_fragment$n, safe_not_equal, { classes: 0 });
26037
26134
  }
26038
26135
  }
26039
26136
 
26040
26137
  /* src/lib/journey/callbacks/polling-wait/polling-wait.svelte generated by Svelte v3.55.1 */
26041
26138
 
26042
- function create_default_slot$c(ctx) {
26139
+ function create_default_slot$d(ctx) {
26043
26140
  let t;
26044
26141
 
26045
26142
  return {
@@ -26058,7 +26155,7 @@ function create_default_slot$c(ctx) {
26058
26155
  };
26059
26156
  }
26060
26157
 
26061
- function create_fragment$l(ctx) {
26158
+ function create_fragment$m(ctx) {
26062
26159
  let div;
26063
26160
  let spinner;
26064
26161
  let t;
@@ -26074,7 +26171,7 @@ function create_fragment$l(ctx) {
26074
26171
 
26075
26172
  text_1 = new Text({
26076
26173
  props: {
26077
- $$slots: { default: [create_default_slot$c] },
26174
+ $$slots: { default: [create_default_slot$d] },
26078
26175
  $$scope: { ctx }
26079
26176
  }
26080
26177
  });
@@ -26122,7 +26219,7 @@ function create_fragment$l(ctx) {
26122
26219
  };
26123
26220
  }
26124
26221
 
26125
- function instance$l($$self, $$props, $$invalidate) {
26222
+ function instance$m($$self, $$props, $$invalidate) {
26126
26223
  const stepMetadata = null;
26127
26224
  const style = {};
26128
26225
  let { callback } = $$props;
@@ -26173,7 +26270,7 @@ class Polling_wait extends SvelteComponent {
26173
26270
  constructor(options) {
26174
26271
  super();
26175
26272
 
26176
- init(this, options, instance$l, create_fragment$l, safe_not_equal, {
26273
+ init(this, options, instance$m, create_fragment$m, safe_not_equal, {
26177
26274
  stepMetadata: 3,
26178
26275
  style: 4,
26179
26276
  callback: 1,
@@ -26193,7 +26290,7 @@ class Polling_wait extends SvelteComponent {
26193
26290
 
26194
26291
  /* src/lib/journey/callbacks/redirect/redirect.svelte generated by Svelte v3.55.1 */
26195
26292
 
26196
- function create_default_slot$b(ctx) {
26293
+ function create_default_slot$c(ctx) {
26197
26294
  let t;
26198
26295
 
26199
26296
  return {
@@ -26212,7 +26309,7 @@ function create_default_slot$b(ctx) {
26212
26309
  };
26213
26310
  }
26214
26311
 
26215
- function create_fragment$k(ctx) {
26312
+ function create_fragment$l(ctx) {
26216
26313
  let div;
26217
26314
  let spinner;
26218
26315
  let t;
@@ -26228,7 +26325,7 @@ function create_fragment$k(ctx) {
26228
26325
 
26229
26326
  text_1 = new Text({
26230
26327
  props: {
26231
- $$slots: { default: [create_default_slot$b] },
26328
+ $$slots: { default: [create_default_slot$c] },
26232
26329
  $$scope: { ctx }
26233
26330
  }
26234
26331
  });
@@ -26277,7 +26374,7 @@ function create_fragment$k(ctx) {
26277
26374
  };
26278
26375
  }
26279
26376
 
26280
- function instance$k($$self, $$props, $$invalidate) {
26377
+ function instance$l($$self, $$props, $$invalidate) {
26281
26378
  const callbackMetadata = null;
26282
26379
  const selfSubmitFunction = null;
26283
26380
  const stepMetadata = null;
@@ -26304,7 +26401,7 @@ class Redirect extends SvelteComponent {
26304
26401
  constructor(options) {
26305
26402
  super();
26306
26403
 
26307
- init(this, options, instance$k, create_fragment$k, safe_not_equal, {
26404
+ init(this, options, instance$l, create_fragment$l, safe_not_equal, {
26308
26405
  callbackMetadata: 1,
26309
26406
  selfSubmitFunction: 2,
26310
26407
  stepMetadata: 3,
@@ -26332,7 +26429,7 @@ class Redirect extends SvelteComponent {
26332
26429
 
26333
26430
  /* src/lib/components/icons/apple-icon.svelte generated by Svelte v3.55.1 */
26334
26431
 
26335
- function create_fragment$j(ctx) {
26432
+ function create_fragment$k(ctx) {
26336
26433
  let svg;
26337
26434
  let path0;
26338
26435
  let path1;
@@ -26377,7 +26474,7 @@ function create_fragment$j(ctx) {
26377
26474
  };
26378
26475
  }
26379
26476
 
26380
- function instance$j($$self, $$props, $$invalidate) {
26477
+ function instance$k($$self, $$props, $$invalidate) {
26381
26478
  let { classes = '' } = $$props;
26382
26479
  let { size = '24px' } = $$props;
26383
26480
 
@@ -26392,13 +26489,13 @@ function instance$j($$self, $$props, $$invalidate) {
26392
26489
  class Apple_icon extends SvelteComponent {
26393
26490
  constructor(options) {
26394
26491
  super();
26395
- init(this, options, instance$j, create_fragment$j, safe_not_equal, { classes: 0, size: 1 });
26492
+ init(this, options, instance$k, create_fragment$k, safe_not_equal, { classes: 0, size: 1 });
26396
26493
  }
26397
26494
  }
26398
26495
 
26399
26496
  /* src/lib/components/icons/facebook-icon.svelte generated by Svelte v3.55.1 */
26400
26497
 
26401
- function create_fragment$i(ctx) {
26498
+ function create_fragment$j(ctx) {
26402
26499
  let svg;
26403
26500
  let path;
26404
26501
 
@@ -26439,7 +26536,7 @@ function create_fragment$i(ctx) {
26439
26536
  };
26440
26537
  }
26441
26538
 
26442
- function instance$i($$self, $$props, $$invalidate) {
26539
+ function instance$j($$self, $$props, $$invalidate) {
26443
26540
  let { classes = '' } = $$props;
26444
26541
  let { size = '24px' } = $$props;
26445
26542
 
@@ -26454,13 +26551,13 @@ function instance$i($$self, $$props, $$invalidate) {
26454
26551
  class Facebook_icon extends SvelteComponent {
26455
26552
  constructor(options) {
26456
26553
  super();
26457
- init(this, options, instance$i, create_fragment$i, safe_not_equal, { classes: 0, size: 1 });
26554
+ init(this, options, instance$j, create_fragment$j, safe_not_equal, { classes: 0, size: 1 });
26458
26555
  }
26459
26556
  }
26460
26557
 
26461
26558
  /* src/lib/components/icons/google-icon.svelte generated by Svelte v3.55.1 */
26462
26559
 
26463
- function create_fragment$h(ctx) {
26560
+ function create_fragment$i(ctx) {
26464
26561
  let svg;
26465
26562
  let g;
26466
26563
  let path0;
@@ -26525,7 +26622,7 @@ function create_fragment$h(ctx) {
26525
26622
  };
26526
26623
  }
26527
26624
 
26528
- function instance$h($$self, $$props, $$invalidate) {
26625
+ function instance$i($$self, $$props, $$invalidate) {
26529
26626
  let { classes = '' } = $$props;
26530
26627
  let { size = '24px' } = $$props;
26531
26628
 
@@ -26540,13 +26637,13 @@ function instance$h($$self, $$props, $$invalidate) {
26540
26637
  class Google_icon extends SvelteComponent {
26541
26638
  constructor(options) {
26542
26639
  super();
26543
- init(this, options, instance$h, create_fragment$h, safe_not_equal, { classes: 0, size: 1 });
26640
+ init(this, options, instance$i, create_fragment$i, safe_not_equal, { classes: 0, size: 1 });
26544
26641
  }
26545
26642
  }
26546
26643
 
26547
26644
  /* src/lib/journey/callbacks/select-idp/select-idp.svelte generated by Svelte v3.55.1 */
26548
26645
 
26549
- function get_each_context$4(ctx, list, i) {
26646
+ function get_each_context$5(ctx, list, i) {
26550
26647
  const child_ctx = ctx.slice();
26551
26648
  child_ctx[10] = list[i];
26552
26649
  return child_ctx;
@@ -26607,7 +26704,7 @@ function create_if_block_3$2(ctx) {
26607
26704
  }
26608
26705
 
26609
26706
  // (55:58)
26610
- function create_if_block_2$5(ctx) {
26707
+ function create_if_block_2$6(ctx) {
26611
26708
  let button;
26612
26709
  let current;
26613
26710
 
@@ -26661,7 +26758,7 @@ function create_if_block_2$5(ctx) {
26661
26758
  }
26662
26759
 
26663
26760
  // (44:4) {#if idp.text.toUpperCase().includes('APPLE')}
26664
- function create_if_block_1$6(ctx) {
26761
+ function create_if_block_1$7(ctx) {
26665
26762
  let button;
26666
26763
  let current;
26667
26764
 
@@ -26675,7 +26772,7 @@ function create_if_block_1$6(ctx) {
26675
26772
  type: "button",
26676
26773
  width: "auto",
26677
26774
  onClick: func,
26678
- $$slots: { default: [create_default_slot_2$3] },
26775
+ $$slots: { default: [create_default_slot_2$4] },
26679
26776
  $$scope: { ctx }
26680
26777
  }
26681
26778
  });
@@ -26831,7 +26928,7 @@ function create_default_slot_3(ctx) {
26831
26928
  }
26832
26929
 
26833
26930
  // (45:6) <Button classes="tw_button-apple dark:tw_button-apple_dark" type="button" width="auto" onClick={() => setBtnValue(idp.value)} >
26834
- function create_default_slot_2$3(ctx) {
26931
+ function create_default_slot_2$4(ctx) {
26835
26932
  let appleicon;
26836
26933
  let t0;
26837
26934
  let t1;
@@ -26889,7 +26986,7 @@ function create_default_slot_2$3(ctx) {
26889
26986
  }
26890
26987
 
26891
26988
  // (43:2) <Grid num={1}>
26892
- function create_default_slot_1$5(ctx) {
26989
+ function create_default_slot_1$6(ctx) {
26893
26990
  let show_if;
26894
26991
  let show_if_1;
26895
26992
  let show_if_2;
@@ -26897,7 +26994,7 @@ function create_default_slot_1$5(ctx) {
26897
26994
  let if_block;
26898
26995
  let if_block_anchor;
26899
26996
  let current;
26900
- const if_block_creators = [create_if_block_1$6, create_if_block_2$5, create_if_block_3$2];
26997
+ const if_block_creators = [create_if_block_1$7, create_if_block_2$6, create_if_block_3$2];
26901
26998
  const if_blocks = [];
26902
26999
 
26903
27000
  function select_block_type(ctx, dirty) {
@@ -26986,14 +27083,14 @@ function create_default_slot_1$5(ctx) {
26986
27083
  }
26987
27084
 
26988
27085
  // (42:0) {#each idps as idp}
26989
- function create_each_block$4(ctx) {
27086
+ function create_each_block$5(ctx) {
26990
27087
  let grid;
26991
27088
  let current;
26992
27089
 
26993
27090
  grid = new Grid({
26994
27091
  props: {
26995
27092
  num: 1,
26996
- $$slots: { default: [create_default_slot_1$5] },
27093
+ $$slots: { default: [create_default_slot_1$6] },
26997
27094
  $$scope: { ctx }
26998
27095
  }
26999
27096
  });
@@ -27031,14 +27128,14 @@ function create_each_block$4(ctx) {
27031
27128
  }
27032
27129
 
27033
27130
  // (81:0) {#if stepMetadata && stepMetadata.derived.numOfCallbacks > 1}
27034
- function create_if_block$7(ctx) {
27131
+ function create_if_block$8(ctx) {
27035
27132
  let grid;
27036
27133
  let current;
27037
27134
 
27038
27135
  grid = new Grid({
27039
27136
  props: {
27040
27137
  num: 1,
27041
- $$slots: { default: [create_default_slot$a] },
27138
+ $$slots: { default: [create_default_slot$b] },
27042
27139
  $$scope: { ctx }
27043
27140
  }
27044
27141
  });
@@ -27067,7 +27164,7 @@ function create_if_block$7(ctx) {
27067
27164
  }
27068
27165
 
27069
27166
  // (82:2) <Grid num={1}>
27070
- function create_default_slot$a(ctx) {
27167
+ function create_default_slot$b(ctx) {
27071
27168
  let hr;
27072
27169
 
27073
27170
  return {
@@ -27085,7 +27182,7 @@ function create_default_slot$a(ctx) {
27085
27182
  };
27086
27183
  }
27087
27184
 
27088
- function create_fragment$g(ctx) {
27185
+ function create_fragment$h(ctx) {
27089
27186
  let t;
27090
27187
  let if_block_anchor;
27091
27188
  let current;
@@ -27093,14 +27190,14 @@ function create_fragment$g(ctx) {
27093
27190
  let each_blocks = [];
27094
27191
 
27095
27192
  for (let i = 0; i < each_value.length; i += 1) {
27096
- each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
27193
+ each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
27097
27194
  }
27098
27195
 
27099
27196
  const out = i => transition_out(each_blocks[i], 1, 1, () => {
27100
27197
  each_blocks[i] = null;
27101
27198
  });
27102
27199
 
27103
- let if_block = /*stepMetadata*/ ctx[0] && /*stepMetadata*/ ctx[0].derived.numOfCallbacks > 1 && create_if_block$7(ctx);
27200
+ let if_block = /*stepMetadata*/ ctx[0] && /*stepMetadata*/ ctx[0].derived.numOfCallbacks > 1 && create_if_block$8(ctx);
27104
27201
 
27105
27202
  return {
27106
27203
  c() {
@@ -27128,13 +27225,13 @@ function create_fragment$g(ctx) {
27128
27225
  let i;
27129
27226
 
27130
27227
  for (i = 0; i < each_value.length; i += 1) {
27131
- const child_ctx = get_each_context$4(ctx, each_value, i);
27228
+ const child_ctx = get_each_context$5(ctx, each_value, i);
27132
27229
 
27133
27230
  if (each_blocks[i]) {
27134
27231
  each_blocks[i].p(child_ctx, dirty);
27135
27232
  transition_in(each_blocks[i], 1);
27136
27233
  } else {
27137
- each_blocks[i] = create_each_block$4(child_ctx);
27234
+ each_blocks[i] = create_each_block$5(child_ctx);
27138
27235
  each_blocks[i].c();
27139
27236
  transition_in(each_blocks[i], 1);
27140
27237
  each_blocks[i].m(t.parentNode, t);
@@ -27156,7 +27253,7 @@ function create_fragment$g(ctx) {
27156
27253
  transition_in(if_block, 1);
27157
27254
  }
27158
27255
  } else {
27159
- if_block = create_if_block$7(ctx);
27256
+ if_block = create_if_block$8(ctx);
27160
27257
  if_block.c();
27161
27258
  transition_in(if_block, 1);
27162
27259
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -27200,7 +27297,7 @@ function create_fragment$g(ctx) {
27200
27297
  };
27201
27298
  }
27202
27299
 
27203
- function instance$g($$self, $$props, $$invalidate) {
27300
+ function instance$h($$self, $$props, $$invalidate) {
27204
27301
  const style = {};
27205
27302
  let { callback } = $$props;
27206
27303
  let { callbackMetadata } = $$props;
@@ -27270,7 +27367,7 @@ class Select_idp extends SvelteComponent {
27270
27367
  constructor(options) {
27271
27368
  super();
27272
27369
 
27273
- init(this, options, instance$g, create_fragment$g, safe_not_equal, {
27370
+ init(this, options, instance$h, create_fragment$h, safe_not_equal, {
27274
27371
  style: 4,
27275
27372
  callback: 5,
27276
27373
  callbackMetadata: 3,
@@ -27292,14 +27389,14 @@ function get_each_context_1(ctx, list, i) {
27292
27389
  return child_ctx;
27293
27390
  }
27294
27391
 
27295
- function get_each_context$3(ctx, list, i) {
27392
+ function get_each_context$4(ctx, list, i) {
27296
27393
  const child_ctx = ctx.slice();
27297
27394
  child_ctx[7] = list[i];
27298
27395
  return child_ctx;
27299
27396
  }
27300
27397
 
27301
27398
  // (34:33)
27302
- function create_if_block_1$5(ctx) {
27399
+ function create_if_block_1$6(ctx) {
27303
27400
  let div;
27304
27401
  let p;
27305
27402
  let t0;
@@ -27395,7 +27492,7 @@ function create_if_block_1$5(ctx) {
27395
27492
  }
27396
27493
 
27397
27494
  // (23:0) {#if simplifiedFailures.length}
27398
- function create_if_block$6(ctx) {
27495
+ function create_if_block$7(ctx) {
27399
27496
  let div;
27400
27497
  let p;
27401
27498
  let t0;
@@ -27408,7 +27505,7 @@ function create_if_block$6(ctx) {
27408
27505
  let each_blocks = [];
27409
27506
 
27410
27507
  for (let i = 0; i < each_value.length; i += 1) {
27411
- each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
27508
+ each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
27412
27509
  }
27413
27510
 
27414
27511
  return {
@@ -27451,12 +27548,12 @@ function create_if_block$6(ctx) {
27451
27548
  let i;
27452
27549
 
27453
27550
  for (i = 0; i < each_value.length; i += 1) {
27454
- const child_ctx = get_each_context$3(ctx, each_value, i);
27551
+ const child_ctx = get_each_context$4(ctx, each_value, i);
27455
27552
 
27456
27553
  if (each_blocks[i]) {
27457
27554
  each_blocks[i].p(child_ctx, dirty);
27458
27555
  } else {
27459
- each_blocks[i] = create_each_block$3(child_ctx);
27556
+ each_blocks[i] = create_each_block$4(child_ctx);
27460
27557
  each_blocks[i].c();
27461
27558
  each_blocks[i].m(ul, null);
27462
27559
  }
@@ -27516,7 +27613,7 @@ function create_each_block_1(ctx) {
27516
27613
  }
27517
27614
 
27518
27615
  // (29:6) {#each simplifiedFailures as failure}
27519
- function create_each_block$3(ctx) {
27616
+ function create_each_block$4(ctx) {
27520
27617
  let li;
27521
27618
  let t_value = /*failure*/ ctx[7].message + "";
27522
27619
  let t;
@@ -27540,12 +27637,12 @@ function create_each_block$3(ctx) {
27540
27637
  };
27541
27638
  }
27542
27639
 
27543
- function create_fragment$f(ctx) {
27640
+ function create_fragment$g(ctx) {
27544
27641
  let current_block_type_index;
27545
27642
  let if_block;
27546
27643
  let if_block_anchor;
27547
27644
  let current;
27548
- const if_block_creators = [create_if_block$6, create_if_block_1$5];
27645
+ const if_block_creators = [create_if_block$7, create_if_block_1$6];
27549
27646
  const if_blocks = [];
27550
27647
 
27551
27648
  function select_block_type(ctx, dirty) {
@@ -27626,7 +27723,7 @@ function create_fragment$f(ctx) {
27626
27723
  };
27627
27724
  }
27628
27725
 
27629
- function instance$f($$self, $$props, $$invalidate) {
27726
+ function instance$g($$self, $$props, $$invalidate) {
27630
27727
  let { callback } = $$props;
27631
27728
  let { key = undefined } = $$props;
27632
27729
  let { label } = $$props;
@@ -27681,7 +27778,7 @@ class Policies extends SvelteComponent {
27681
27778
  constructor(options) {
27682
27779
  super();
27683
27780
 
27684
- init(this, options, instance$f, create_fragment$f, safe_not_equal, {
27781
+ init(this, options, instance$g, create_fragment$g, safe_not_equal, {
27685
27782
  callback: 4,
27686
27783
  key: 0,
27687
27784
  label: 5,
@@ -27692,7 +27789,7 @@ class Policies extends SvelteComponent {
27692
27789
 
27693
27790
  /* src/lib/journey/callbacks/string-attribute/string-attribute-input.svelte generated by Svelte v3.55.1 */
27694
27791
 
27695
- function create_default_slot$9(ctx) {
27792
+ function create_default_slot$a(ctx) {
27696
27793
  let policies_1;
27697
27794
  let current;
27698
27795
 
@@ -27735,7 +27832,7 @@ function create_default_slot$9(ctx) {
27735
27832
  };
27736
27833
  }
27737
27834
 
27738
- function create_fragment$e(ctx) {
27835
+ function create_fragment$f(ctx) {
27739
27836
  let input;
27740
27837
  let current;
27741
27838
 
@@ -27753,7 +27850,7 @@ function create_fragment$e(ctx) {
27753
27850
  type: /*type*/ ctx[7],
27754
27851
  showMessage: !!/*isInvalid*/ ctx[8],
27755
27852
  value: /*previousValue*/ ctx[6],
27756
- $$slots: { default: [create_default_slot$9] },
27853
+ $$slots: { default: [create_default_slot$a] },
27757
27854
  $$scope: { ctx }
27758
27855
  }
27759
27856
  });
@@ -27803,7 +27900,7 @@ function create_fragment$e(ctx) {
27803
27900
  };
27804
27901
  }
27805
27902
 
27806
- function instance$e($$self, $$props, $$invalidate) {
27903
+ function instance$f($$self, $$props, $$invalidate) {
27807
27904
  const selfSubmitFunction = null;
27808
27905
  const stepMetadata = null;
27809
27906
  const style = {};
@@ -27883,7 +27980,7 @@ class String_attribute_input extends SvelteComponent {
27883
27980
  constructor(options) {
27884
27981
  super();
27885
27982
 
27886
- init(this, options, instance$e, create_fragment$e, safe_not_equal, {
27983
+ init(this, options, instance$f, create_fragment$f, safe_not_equal, {
27887
27984
  selfSubmitFunction: 10,
27888
27985
  stepMetadata: 11,
27889
27986
  style: 12,
@@ -27907,7 +28004,7 @@ class String_attribute_input extends SvelteComponent {
27907
28004
 
27908
28005
  /* src/lib/components/primitives/link/link.svelte generated by Svelte v3.55.1 */
27909
28006
 
27910
- function create_fragment$d(ctx) {
28007
+ function create_fragment$e(ctx) {
27911
28008
  let a;
27912
28009
  let a_class_value;
27913
28010
  let current;
@@ -27975,7 +28072,7 @@ function create_fragment$d(ctx) {
27975
28072
  };
27976
28073
  }
27977
28074
 
27978
- function instance$d($$self, $$props, $$invalidate) {
28075
+ function instance$e($$self, $$props, $$invalidate) {
27979
28076
  let { $$slots: slots = {}, $$scope } = $$props;
27980
28077
  let { classes = '' } = $$props;
27981
28078
  let { href } = $$props;
@@ -27994,7 +28091,7 @@ function instance$d($$self, $$props, $$invalidate) {
27994
28091
  class Link extends SvelteComponent {
27995
28092
  constructor(options) {
27996
28093
  super();
27997
- init(this, options, instance$d, create_fragment$d, safe_not_equal, { classes: 0, href: 1, target: 2 });
28094
+ init(this, options, instance$e, create_fragment$e, safe_not_equal, { classes: 0, href: 1, target: 2 });
27998
28095
  }
27999
28096
  }
28000
28097
 
@@ -28041,7 +28138,7 @@ function create_else_block$2(ctx) {
28041
28138
  }
28042
28139
 
28043
28140
  // (43:0) {#if $links?.termsAndConditions}
28044
- function create_if_block$5(ctx) {
28141
+ function create_if_block$6(ctx) {
28045
28142
  let link;
28046
28143
  let t;
28047
28144
  let checkbox;
@@ -28052,7 +28149,7 @@ function create_if_block$5(ctx) {
28052
28149
  classes: "tw_block tw_mb-4",
28053
28150
  href: /*$links*/ ctx[2]?.termsAndConditions,
28054
28151
  target: "_blank",
28055
- $$slots: { default: [create_default_slot_1$4] },
28152
+ $$slots: { default: [create_default_slot_1$5] },
28056
28153
  $$scope: { ctx }
28057
28154
  }
28058
28155
  });
@@ -28063,7 +28160,7 @@ function create_if_block$5(ctx) {
28063
28160
  key: /*inputName*/ ctx[1],
28064
28161
  onChange: /*setValue*/ ctx[4],
28065
28162
  value: false,
28066
- $$slots: { default: [create_default_slot$8] },
28163
+ $$slots: { default: [create_default_slot$9] },
28067
28164
  $$scope: { ctx }
28068
28165
  }
28069
28166
  });
@@ -28119,7 +28216,7 @@ function create_if_block$5(ctx) {
28119
28216
  }
28120
28217
 
28121
28218
  // (44:2) <Link classes="tw_block tw_mb-4" href={$links?.termsAndConditions} target="_blank">
28122
- function create_default_slot_1$4(ctx) {
28219
+ function create_default_slot_1$5(ctx) {
28123
28220
  let t_value = interpolate('termsAndConditionsLinkText') + "";
28124
28221
  let t;
28125
28222
 
@@ -28138,7 +28235,7 @@ function create_default_slot_1$4(ctx) {
28138
28235
  }
28139
28236
 
28140
28237
  // (47:2) <Checkbox isFirstInvalidInput={callbackMetadata?.derived.isFirstInvalidInput || false} key={inputName} onChange={setValue} value={false} >
28141
- function create_default_slot$8(ctx) {
28238
+ function create_default_slot$9(ctx) {
28142
28239
  let t;
28143
28240
  let current;
28144
28241
  t = new Locale_strings({ props: { key: "termsAndConditions" } });
@@ -28167,12 +28264,12 @@ function create_default_slot$8(ctx) {
28167
28264
  };
28168
28265
  }
28169
28266
 
28170
- function create_fragment$c(ctx) {
28267
+ function create_fragment$d(ctx) {
28171
28268
  let current_block_type_index;
28172
28269
  let if_block;
28173
28270
  let if_block_anchor;
28174
28271
  let current;
28175
- const if_block_creators = [create_if_block$5, create_else_block$2];
28272
+ const if_block_creators = [create_if_block$6, create_else_block$2];
28176
28273
  const if_blocks = [];
28177
28274
 
28178
28275
  function select_block_type(ctx, dirty) {
@@ -28236,7 +28333,7 @@ function create_fragment$c(ctx) {
28236
28333
  };
28237
28334
  }
28238
28335
 
28239
- function instance$c($$self, $$props, $$invalidate) {
28336
+ function instance$d($$self, $$props, $$invalidate) {
28240
28337
  let $links;
28241
28338
  component_subscribe($$self, links, $$value => $$invalidate(2, $links = $$value));
28242
28339
  const selfSubmitFunction = null;
@@ -28304,7 +28401,7 @@ class Terms_conditions extends SvelteComponent {
28304
28401
  constructor(options) {
28305
28402
  super();
28306
28403
 
28307
- init(this, options, instance$c, create_fragment$c, safe_not_equal, {
28404
+ init(this, options, instance$d, create_fragment$d, safe_not_equal, {
28308
28405
  selfSubmitFunction: 5,
28309
28406
  stepMetadata: 6,
28310
28407
  style: 7,
@@ -28329,7 +28426,7 @@ class Terms_conditions extends SvelteComponent {
28329
28426
 
28330
28427
  /* src/lib/journey/callbacks/text-output/text-output.svelte generated by Svelte v3.55.1 */
28331
28428
 
28332
- function create_default_slot$7(ctx) {
28429
+ function create_default_slot$8(ctx) {
28333
28430
  let html_tag;
28334
28431
  let html_anchor;
28335
28432
 
@@ -28353,14 +28450,14 @@ function create_default_slot$7(ctx) {
28353
28450
  };
28354
28451
  }
28355
28452
 
28356
- function create_fragment$b(ctx) {
28453
+ function create_fragment$c(ctx) {
28357
28454
  let text_1;
28358
28455
  let current;
28359
28456
 
28360
28457
  text_1 = new Text({
28361
28458
  props: {
28362
28459
  classes: "tw_font-bold tw_mt-6",
28363
- $$slots: { default: [create_default_slot$7] },
28460
+ $$slots: { default: [create_default_slot$8] },
28364
28461
  $$scope: { ctx }
28365
28462
  }
28366
28463
  });
@@ -28397,7 +28494,7 @@ function create_fragment$b(ctx) {
28397
28494
  };
28398
28495
  }
28399
28496
 
28400
- function instance$b($$self, $$props, $$invalidate) {
28497
+ function instance$c($$self, $$props, $$invalidate) {
28401
28498
  const callbackMetadata = null;
28402
28499
  const selfSubmitFunction = null;
28403
28500
  const stepMetadata = null;
@@ -28434,7 +28531,7 @@ class Text_output extends SvelteComponent {
28434
28531
  constructor(options) {
28435
28532
  super();
28436
28533
 
28437
- init(this, options, instance$b, create_fragment$b, safe_not_equal, {
28534
+ init(this, options, instance$c, create_fragment$c, safe_not_equal, {
28438
28535
  callbackMetadata: 1,
28439
28536
  selfSubmitFunction: 2,
28440
28537
  stepMetadata: 3,
@@ -28462,7 +28559,7 @@ class Text_output extends SvelteComponent {
28462
28559
 
28463
28560
  /* src/lib/journey/callbacks/unknown/unknown.svelte generated by Svelte v3.55.1 */
28464
28561
 
28465
- function create_fragment$a(ctx) {
28562
+ function create_fragment$b(ctx) {
28466
28563
  let p;
28467
28564
 
28468
28565
  return {
@@ -28483,7 +28580,7 @@ function create_fragment$a(ctx) {
28483
28580
  };
28484
28581
  }
28485
28582
 
28486
- function instance$a($$self, $$props, $$invalidate) {
28583
+ function instance$b($$self, $$props, $$invalidate) {
28487
28584
  const callbackMetadata = null;
28488
28585
  const selfSubmitFunction = null;
28489
28586
  const stepMetadata = null;
@@ -28502,7 +28599,7 @@ class Unknown extends SvelteComponent {
28502
28599
  constructor(options) {
28503
28600
  super();
28504
28601
 
28505
- init(this, options, instance$a, create_fragment$a, safe_not_equal, {
28602
+ init(this, options, instance$b, create_fragment$b, safe_not_equal, {
28506
28603
  callbackMetadata: 1,
28507
28604
  selfSubmitFunction: 2,
28508
28605
  stepMetadata: 3,
@@ -28530,7 +28627,7 @@ class Unknown extends SvelteComponent {
28530
28627
 
28531
28628
  /* src/lib/journey/callbacks/password/validated-create-password.svelte generated by Svelte v3.55.1 */
28532
28629
 
28533
- function create_default_slot$6(ctx) {
28630
+ function create_default_slot$7(ctx) {
28534
28631
  let policies;
28535
28632
  let current;
28536
28633
 
@@ -28571,7 +28668,7 @@ function create_default_slot$6(ctx) {
28571
28668
  };
28572
28669
  }
28573
28670
 
28574
- function create_fragment$9(ctx) {
28671
+ function create_fragment$a(ctx) {
28575
28672
  let base;
28576
28673
  let current;
28577
28674
 
@@ -28584,7 +28681,7 @@ function create_fragment$9(ctx) {
28584
28681
  key: /*inputName*/ ctx[4],
28585
28682
  showMessage: /*isInvalid*/ ctx[5],
28586
28683
  style: /*style*/ ctx[2],
28587
- $$slots: { default: [create_default_slot$6] },
28684
+ $$slots: { default: [create_default_slot$7] },
28588
28685
  $$scope: { ctx }
28589
28686
  }
28590
28687
  });
@@ -28627,7 +28724,7 @@ function create_fragment$9(ctx) {
28627
28724
  };
28628
28725
  }
28629
28726
 
28630
- function instance$9($$self, $$props, $$invalidate) {
28727
+ function instance$a($$self, $$props, $$invalidate) {
28631
28728
  const selfSubmitFunction = null;
28632
28729
  const stepMetadata = null;
28633
28730
  let { callback } = $$props;
@@ -28679,7 +28776,7 @@ class Validated_create_password extends SvelteComponent {
28679
28776
  constructor(options) {
28680
28777
  super();
28681
28778
 
28682
- init(this, options, instance$9, create_fragment$9, safe_not_equal, {
28779
+ init(this, options, instance$a, create_fragment$a, safe_not_equal, {
28683
28780
  selfSubmitFunction: 7,
28684
28781
  stepMetadata: 8,
28685
28782
  callback: 0,
@@ -28699,7 +28796,7 @@ class Validated_create_password extends SvelteComponent {
28699
28796
 
28700
28797
  /* src/lib/journey/callbacks/username/validated-create-username.svelte generated by Svelte v3.55.1 */
28701
28798
 
28702
- function create_default_slot$5(ctx) {
28799
+ function create_default_slot$6(ctx) {
28703
28800
  let policies;
28704
28801
  let current;
28705
28802
 
@@ -28742,7 +28839,7 @@ function create_default_slot$5(ctx) {
28742
28839
  };
28743
28840
  }
28744
28841
 
28745
- function create_fragment$8(ctx) {
28842
+ function create_fragment$9(ctx) {
28746
28843
  let input;
28747
28844
  let current;
28748
28845
 
@@ -28762,7 +28859,7 @@ function create_fragment$8(ctx) {
28762
28859
  value: typeof /*value*/ ctx[7] === 'string'
28763
28860
  ? /*value*/ ctx[7]
28764
28861
  : '',
28765
- $$slots: { default: [create_default_slot$5] },
28862
+ $$slots: { default: [create_default_slot$6] },
28766
28863
  $$scope: { ctx }
28767
28864
  }
28768
28865
  });
@@ -28812,7 +28909,7 @@ function create_fragment$8(ctx) {
28812
28909
  };
28813
28910
  }
28814
28911
 
28815
- function instance$8($$self, $$props, $$invalidate) {
28912
+ function instance$9($$self, $$props, $$invalidate) {
28816
28913
  const selfSubmitFunction = null;
28817
28914
  const stepMetadata = null;
28818
28915
  let { callback } = $$props;
@@ -28884,7 +28981,7 @@ class Validated_create_username extends SvelteComponent {
28884
28981
  constructor(options) {
28885
28982
  super();
28886
28983
 
28887
- init(this, options, instance$8, create_fragment$8, safe_not_equal, {
28984
+ init(this, options, instance$9, create_fragment$9, safe_not_equal, {
28888
28985
  selfSubmitFunction: 10,
28889
28986
  stepMetadata: 11,
28890
28987
  callback: 0,
@@ -29711,7 +29808,7 @@ function create_if_block_3$1(ctx) {
29711
29808
  }
29712
29809
 
29713
29810
  // (114:55)
29714
- function create_if_block_2$4(ctx) {
29811
+ function create_if_block_2$5(ctx) {
29715
29812
  let confirmation;
29716
29813
  let current;
29717
29814
  const confirmation_spread_levels = [/*newProps*/ ctx[19]];
@@ -29754,7 +29851,7 @@ function create_if_block_2$4(ctx) {
29754
29851
  }
29755
29852
 
29756
29853
  // (108:49)
29757
- function create_if_block_1$4(ctx) {
29854
+ function create_if_block_1$5(ctx) {
29758
29855
  let choice;
29759
29856
  let current;
29760
29857
  const choice_spread_levels = [/*newProps*/ ctx[19]];
@@ -29797,7 +29894,7 @@ function create_if_block_1$4(ctx) {
29797
29894
  }
29798
29895
 
29799
29896
  // (102:0) {#if cbType === CallbackType.BooleanAttributeInputCallback}
29800
- function create_if_block$4(ctx) {
29897
+ function create_if_block$5(ctx) {
29801
29898
  let boolean;
29802
29899
  let current;
29803
29900
  const boolean_spread_levels = [/*newProps*/ ctx[19]];
@@ -29839,16 +29936,16 @@ function create_if_block$4(ctx) {
29839
29936
  };
29840
29937
  }
29841
29938
 
29842
- function create_fragment$7(ctx) {
29939
+ function create_fragment$8(ctx) {
29843
29940
  let current_block_type_index;
29844
29941
  let if_block;
29845
29942
  let if_block_anchor;
29846
29943
  let current;
29847
29944
 
29848
29945
  const if_block_creators = [
29849
- create_if_block$4,
29850
- create_if_block_1$4,
29851
- create_if_block_2$4,
29946
+ create_if_block$5,
29947
+ create_if_block_1$5,
29948
+ create_if_block_2$5,
29852
29949
  create_if_block_3$1,
29853
29950
  create_if_block_4,
29854
29951
  create_if_block_5,
@@ -29963,7 +30060,7 @@ function create_fragment$7(ctx) {
29963
30060
  };
29964
30061
  }
29965
30062
 
29966
- function instance$7($$self, $$props, $$invalidate) {
30063
+ function instance$8($$self, $$props, $$invalidate) {
29967
30064
  let { props } = $$props;
29968
30065
  let cbType;
29969
30066
  let _BooleanAttributeInputCallback;
@@ -30075,13 +30172,13 @@ function instance$7($$self, $$props, $$invalidate) {
30075
30172
  class Callback_mapper extends SvelteComponent {
30076
30173
  constructor(options) {
30077
30174
  super();
30078
- init(this, options, instance$7, create_fragment$7, safe_not_equal, { props: 0 });
30175
+ init(this, options, instance$8, create_fragment$8, safe_not_equal, { props: 0 });
30079
30176
  }
30080
30177
  }
30081
30178
 
30082
30179
  /* src/lib/journey/stages/generic.svelte generated by Svelte v3.55.1 */
30083
30180
 
30084
- function get_each_context$2(ctx, list, i) {
30181
+ function get_each_context$3(ctx, list, i) {
30085
30182
  const child_ctx = ctx.slice();
30086
30183
  child_ctx[15] = list[i];
30087
30184
  child_ctx[17] = i;
@@ -30089,7 +30186,7 @@ function get_each_context$2(ctx, list, i) {
30089
30186
  }
30090
30187
 
30091
30188
  // (71:2) {#if form?.icon}
30092
- function create_if_block_2$3(ctx) {
30189
+ function create_if_block_2$4(ctx) {
30093
30190
  let div;
30094
30191
  let shieldicon;
30095
30192
  let current;
@@ -30129,7 +30226,7 @@ function create_if_block_2$3(ctx) {
30129
30226
  }
30130
30227
 
30131
30228
  // (87:2) {#if form?.message}
30132
- function create_if_block_1$3(ctx) {
30229
+ function create_if_block_1$4(ctx) {
30133
30230
  let alert;
30134
30231
  let current;
30135
30232
 
@@ -30138,7 +30235,7 @@ function create_if_block_1$3(ctx) {
30138
30235
  id: formFailureMessageId,
30139
30236
  needsFocus: /*alertNeedsFocus*/ ctx[5],
30140
30237
  type: "error",
30141
- $$slots: { default: [create_default_slot_2$2] },
30238
+ $$slots: { default: [create_default_slot_2$3] },
30142
30239
  $$scope: { ctx }
30143
30240
  }
30144
30241
  });
@@ -30177,7 +30274,7 @@ function create_if_block_1$3(ctx) {
30177
30274
  }
30178
30275
 
30179
30276
  // (88:4) <Alert id={formFailureMessageId} needsFocus={alertNeedsFocus} type="error">
30180
- function create_default_slot_2$2(ctx) {
30277
+ function create_default_slot_2$3(ctx) {
30181
30278
  let t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "";
30182
30279
  let t;
30183
30280
 
@@ -30198,7 +30295,7 @@ function create_default_slot_2$2(ctx) {
30198
30295
  }
30199
30296
 
30200
30297
  // (93:2) {#each step?.callbacks as callback, idx}
30201
- function create_each_block$2(ctx) {
30298
+ function create_each_block$3(ctx) {
30202
30299
  let callbackmapper;
30203
30300
  let current;
30204
30301
 
@@ -30251,7 +30348,7 @@ function create_each_block$2(ctx) {
30251
30348
  }
30252
30349
 
30253
30350
  // (105:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
30254
- function create_if_block$3(ctx) {
30351
+ function create_if_block$4(ctx) {
30255
30352
  let button;
30256
30353
  let current;
30257
30354
 
@@ -30261,7 +30358,7 @@ function create_if_block$3(ctx) {
30261
30358
  style: "primary",
30262
30359
  type: "submit",
30263
30360
  width: "full",
30264
- $$slots: { default: [create_default_slot_1$3] },
30361
+ $$slots: { default: [create_default_slot_1$4] },
30265
30362
  $$scope: { ctx }
30266
30363
  }
30267
30364
  });
@@ -30300,7 +30397,7 @@ function create_if_block$3(ctx) {
30300
30397
  }
30301
30398
 
30302
30399
  // (106:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
30303
- function create_default_slot_1$3(ctx) {
30400
+ function create_default_slot_1$4(ctx) {
30304
30401
  let t;
30305
30402
  let current;
30306
30403
  t = new Locale_strings({ props: { key: "nextButton" } });
@@ -30330,7 +30427,7 @@ function create_default_slot_1$3(ctx) {
30330
30427
  }
30331
30428
 
30332
30429
  // (64:0) <Form bind:formEl ariaDescribedBy={formAriaDescriptor} id={formElementId} needsFocus={formNeedsFocus} onSubmitWhenValid={submitFormWrapper} >
30333
- function create_default_slot$4(ctx) {
30430
+ function create_default_slot$5(ctx) {
30334
30431
  let t0;
30335
30432
  let header;
30336
30433
  let h1;
@@ -30344,7 +30441,7 @@ function create_default_slot$4(ctx) {
30344
30441
  let t5;
30345
30442
  let backto;
30346
30443
  let current;
30347
- let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$3();
30444
+ let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$4();
30348
30445
 
30349
30446
  sanitize0 = new Server_strings({
30350
30447
  props: {
@@ -30360,19 +30457,19 @@ function create_default_slot$4(ctx) {
30360
30457
  }
30361
30458
  });
30362
30459
 
30363
- let if_block1 = /*form*/ ctx[1]?.message && create_if_block_1$3(ctx);
30460
+ let if_block1 = /*form*/ ctx[1]?.message && create_if_block_1$4(ctx);
30364
30461
  let each_value = /*step*/ ctx[4]?.callbacks;
30365
30462
  let each_blocks = [];
30366
30463
 
30367
30464
  for (let i = 0; i < each_value.length; i += 1) {
30368
- each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
30465
+ each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
30369
30466
  }
30370
30467
 
30371
30468
  const out = i => transition_out(each_blocks[i], 1, 1, () => {
30372
30469
  each_blocks[i] = null;
30373
30470
  });
30374
30471
 
30375
- let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$3(ctx);
30472
+ let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$4(ctx);
30376
30473
  backto = new Back_to({ props: { journey: /*journey*/ ctx[2] } });
30377
30474
 
30378
30475
  return {
@@ -30432,7 +30529,7 @@ function create_default_slot$4(ctx) {
30432
30529
  transition_in(if_block0, 1);
30433
30530
  }
30434
30531
  } else {
30435
- if_block0 = create_if_block_2$3();
30532
+ if_block0 = create_if_block_2$4();
30436
30533
  if_block0.c();
30437
30534
  transition_in(if_block0, 1);
30438
30535
  if_block0.m(t0.parentNode, t0);
@@ -30462,7 +30559,7 @@ function create_default_slot$4(ctx) {
30462
30559
  transition_in(if_block1, 1);
30463
30560
  }
30464
30561
  } else {
30465
- if_block1 = create_if_block_1$3(ctx);
30562
+ if_block1 = create_if_block_1$4(ctx);
30466
30563
  if_block1.c();
30467
30564
  transition_in(if_block1, 1);
30468
30565
  if_block1.m(t3.parentNode, t3);
@@ -30482,13 +30579,13 @@ function create_default_slot$4(ctx) {
30482
30579
  let i;
30483
30580
 
30484
30581
  for (i = 0; i < each_value.length; i += 1) {
30485
- const child_ctx = get_each_context$2(ctx, each_value, i);
30582
+ const child_ctx = get_each_context$3(ctx, each_value, i);
30486
30583
 
30487
30584
  if (each_blocks[i]) {
30488
30585
  each_blocks[i].p(child_ctx, dirty);
30489
30586
  transition_in(each_blocks[i], 1);
30490
30587
  } else {
30491
- each_blocks[i] = create_each_block$2(child_ctx);
30588
+ each_blocks[i] = create_each_block$3(child_ctx);
30492
30589
  each_blocks[i].c();
30493
30590
  transition_in(each_blocks[i], 1);
30494
30591
  each_blocks[i].m(t4.parentNode, t4);
@@ -30512,7 +30609,7 @@ function create_default_slot$4(ctx) {
30512
30609
  transition_in(if_block2, 1);
30513
30610
  }
30514
30611
  } else {
30515
- if_block2 = create_if_block$3(ctx);
30612
+ if_block2 = create_if_block$4(ctx);
30516
30613
  if_block2.c();
30517
30614
  transition_in(if_block2, 1);
30518
30615
  if_block2.m(t5.parentNode, t5);
@@ -30580,7 +30677,7 @@ function create_default_slot$4(ctx) {
30580
30677
  };
30581
30678
  }
30582
30679
 
30583
- function create_fragment$6(ctx) {
30680
+ function create_fragment$7(ctx) {
30584
30681
  let form_1;
30585
30682
  let updating_formEl;
30586
30683
  let current;
@@ -30594,7 +30691,7 @@ function create_fragment$6(ctx) {
30594
30691
  id: formElementId,
30595
30692
  needsFocus: /*formNeedsFocus*/ ctx[8],
30596
30693
  onSubmitWhenValid: /*submitFormWrapper*/ ctx[12],
30597
- $$slots: { default: [create_default_slot$4] },
30694
+ $$slots: { default: [create_default_slot$5] },
30598
30695
  $$scope: { ctx }
30599
30696
  };
30600
30697
 
@@ -30649,7 +30746,7 @@ const formFailureMessageId = 'genericStepFailureMessage';
30649
30746
  const formHeaderId = 'genericStepHeader';
30650
30747
  const formElementId = 'genericStepForm';
30651
30748
 
30652
- function instance$6($$self, $$props, $$invalidate) {
30749
+ function instance$7($$self, $$props, $$invalidate) {
30653
30750
  let $style;
30654
30751
  component_subscribe($$self, style, $$value => $$invalidate(10, $style = $$value));
30655
30752
  let { form } = $$props;
@@ -30744,7 +30841,7 @@ class Generic extends SvelteComponent {
30744
30841
  constructor(options) {
30745
30842
  super();
30746
30843
 
30747
- init(this, options, instance$6, create_fragment$6, safe_not_equal, {
30844
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, {
30748
30845
  form: 1,
30749
30846
  formEl: 0,
30750
30847
  journey: 2,
@@ -30754,9 +30851,9 @@ class Generic extends SvelteComponent {
30754
30851
  }
30755
30852
  }
30756
30853
 
30757
- /* src/lib/components/icons/new-user-icon.svelte generated by Svelte v3.55.1 */
30854
+ /* src/lib/components/icons/key-icon.svelte generated by Svelte v3.55.1 */
30758
30855
 
30759
- function create_fragment$5(ctx) {
30856
+ function create_fragment$6(ctx) {
30760
30857
  let svg;
30761
30858
  let path0;
30762
30859
  let path1;
@@ -30774,12 +30871,12 @@ function create_fragment$5(ctx) {
30774
30871
  if (default_slot) default_slot.c();
30775
30872
  attr(path0, "d", "M0 0h24v24H0z");
30776
30873
  attr(path0, "fill", "none");
30777
- 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");
30874
+ 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");
30778
30875
  attr(svg, "class", /*classes*/ ctx[0]);
30779
- attr(svg, "xmlns", "http://www.w3.org/2000/svg");
30780
30876
  attr(svg, "height", /*size*/ ctx[1]);
30781
- attr(svg, "viewBox", "0 0 24 24");
30782
30877
  attr(svg, "width", /*size*/ ctx[1]);
30878
+ attr(svg, "viewBox", "0 0 24 24");
30879
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
30783
30880
  },
30784
30881
  m(target, anchor) {
30785
30882
  insert(target, svg, anchor);
@@ -30837,7 +30934,7 @@ function create_fragment$5(ctx) {
30837
30934
  };
30838
30935
  }
30839
30936
 
30840
- function instance$5($$self, $$props, $$invalidate) {
30937
+ function instance$6($$self, $$props, $$invalidate) {
30841
30938
  let { $$slots: slots = {}, $$scope } = $$props;
30842
30939
  let { classes = '' } = $$props;
30843
30940
  let { size = '24px' } = $$props;
@@ -30851,29 +30948,29 @@ function instance$5($$self, $$props, $$invalidate) {
30851
30948
  return [classes, size, $$scope, slots];
30852
30949
  }
30853
30950
 
30854
- class New_user_icon extends SvelteComponent {
30951
+ class Key_icon extends SvelteComponent {
30855
30952
  constructor(options) {
30856
30953
  super();
30857
- init(this, options, instance$5, create_fragment$5, safe_not_equal, { classes: 0, size: 1 });
30954
+ init(this, options, instance$6, create_fragment$6, safe_not_equal, { classes: 0, size: 1 });
30858
30955
  }
30859
30956
  }
30860
30957
 
30861
- /* src/lib/journey/stages/registration.svelte generated by Svelte v3.55.1 */
30958
+ /* src/lib/journey/stages/one-time-password.svelte generated by Svelte v3.55.1 */
30862
30959
 
30863
- function get_each_context$1(ctx, list, i) {
30960
+ function get_each_context$2(ctx, list, i) {
30864
30961
  const child_ctx = ctx.slice();
30865
- child_ctx[12] = list[i];
30866
- child_ctx[14] = i;
30962
+ child_ctx[10] = list[i];
30963
+ child_ctx[12] = i;
30867
30964
  return child_ctx;
30868
30965
  }
30869
30966
 
30870
- // (44:2) {#if form?.icon}
30871
- function create_if_block_2$2(ctx) {
30967
+ // (39:2) {#if form?.icon}
30968
+ function create_if_block_2$3(ctx) {
30872
30969
  let div;
30873
- let newusericon;
30970
+ let keyicon;
30874
30971
  let current;
30875
30972
 
30876
- newusericon = new New_user_icon({
30973
+ keyicon = new Key_icon({
30877
30974
  props: {
30878
30975
  classes: "tw_text-gray-400 tw_fill-current",
30879
30976
  size: "72px"
@@ -30883,32 +30980,32 @@ function create_if_block_2$2(ctx) {
30883
30980
  return {
30884
30981
  c() {
30885
30982
  div = element("div");
30886
- create_component(newusericon.$$.fragment);
30983
+ create_component(keyicon.$$.fragment);
30887
30984
  attr(div, "class", "tw_flex tw_justify-center");
30888
30985
  },
30889
30986
  m(target, anchor) {
30890
30987
  insert(target, div, anchor);
30891
- mount_component(newusericon, div, null);
30988
+ mount_component(keyicon, div, null);
30892
30989
  current = true;
30893
30990
  },
30894
30991
  i(local) {
30895
30992
  if (current) return;
30896
- transition_in(newusericon.$$.fragment, local);
30993
+ transition_in(keyicon.$$.fragment, local);
30897
30994
  current = true;
30898
30995
  },
30899
30996
  o(local) {
30900
- transition_out(newusericon.$$.fragment, local);
30997
+ transition_out(keyicon.$$.fragment, local);
30901
30998
  current = false;
30902
30999
  },
30903
31000
  d(detaching) {
30904
31001
  if (detaching) detach(div);
30905
- destroy_component(newusericon);
31002
+ destroy_component(keyicon);
30906
31003
  }
30907
31004
  };
30908
31005
  }
30909
31006
 
30910
- // (59:2) {#if form.message}
30911
- function create_if_block_1$2(ctx) {
31007
+ // (53:2) {#if form?.message}
31008
+ function create_if_block_1$3(ctx) {
30912
31009
  let alert;
30913
31010
  let current;
30914
31011
 
@@ -30917,7 +31014,7 @@ function create_if_block_1$2(ctx) {
30917
31014
  id: "formFailureMessageAlert",
30918
31015
  needsFocus: /*alertNeedsFocus*/ ctx[5],
30919
31016
  type: "error",
30920
- $$slots: { default: [create_default_slot_2$1] },
31017
+ $$slots: { default: [create_default_slot_2$2] },
30921
31018
  $$scope: { ctx }
30922
31019
  }
30923
31020
  });
@@ -30934,7 +31031,7 @@ function create_if_block_1$2(ctx) {
30934
31031
  const alert_changes = {};
30935
31032
  if (dirty & /*alertNeedsFocus*/ 32) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[5];
30936
31033
 
30937
- if (dirty & /*$$scope, formMessageKey, form*/ 32834) {
31034
+ if (dirty & /*$$scope, formMessageKey, form*/ 8258) {
30938
31035
  alert_changes.$$scope = { dirty, ctx };
30939
31036
  }
30940
31037
 
@@ -30955,8 +31052,8 @@ function create_if_block_1$2(ctx) {
30955
31052
  };
30956
31053
  }
30957
31054
 
30958
- // (60:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
30959
- function create_default_slot_2$1(ctx) {
31055
+ // (54:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
31056
+ function create_default_slot_2$2(ctx) {
30960
31057
  let t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "";
30961
31058
  let t;
30962
31059
 
@@ -30976,19 +31073,19 @@ function create_default_slot_2$1(ctx) {
30976
31073
  };
30977
31074
  }
30978
31075
 
30979
- // (65:2) {#each step?.callbacks as callback, idx}
30980
- function create_each_block$1(ctx) {
31076
+ // (59:2) {#each step?.callbacks as callback, idx}
31077
+ function create_each_block$2(ctx) {
30981
31078
  let callbackmapper;
30982
31079
  let current;
30983
31080
 
30984
31081
  callbackmapper = new Callback_mapper({
30985
31082
  props: {
30986
31083
  props: {
30987
- callback: /*callback*/ ctx[12],
30988
- callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[14]],
30989
- selfSubmitFunction: /*determineSubmission*/ ctx[9],
31084
+ callback: /*callback*/ ctx[10],
31085
+ callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[12]],
31086
+ selfSubmitFunction: /*determineSubmission*/ ctx[8],
30990
31087
  stepMetadata: /*metadata*/ ctx[3]?.step && { .../*metadata*/ ctx[3].step },
30991
- style: /*$style*/ ctx[8]
31088
+ style: /*$style*/ ctx[7]
30992
31089
  }
30993
31090
  }
30994
31091
  });
@@ -31004,12 +31101,12 @@ function create_each_block$1(ctx) {
31004
31101
  p(ctx, dirty) {
31005
31102
  const callbackmapper_changes = {};
31006
31103
 
31007
- if (dirty & /*step, metadata, $style*/ 280) callbackmapper_changes.props = {
31008
- callback: /*callback*/ ctx[12],
31009
- callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[14]],
31010
- selfSubmitFunction: /*determineSubmission*/ ctx[9],
31104
+ if (dirty & /*step, metadata, $style*/ 152) callbackmapper_changes.props = {
31105
+ callback: /*callback*/ ctx[10],
31106
+ callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[12]],
31107
+ selfSubmitFunction: /*determineSubmission*/ ctx[8],
31011
31108
  stepMetadata: /*metadata*/ ctx[3]?.step && { .../*metadata*/ ctx[3].step },
31012
- style: /*$style*/ ctx[8]
31109
+ style: /*$style*/ ctx[7]
31013
31110
  };
31014
31111
 
31015
31112
  callbackmapper.$set(callbackmapper_changes);
@@ -31029,8 +31126,8 @@ function create_each_block$1(ctx) {
31029
31126
  };
31030
31127
  }
31031
31128
 
31032
- // (77:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
31033
- function create_if_block$2(ctx) {
31129
+ // (71:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
31130
+ function create_if_block$3(ctx) {
31034
31131
  let button;
31035
31132
  let current;
31036
31133
 
@@ -31040,7 +31137,7 @@ function create_if_block$2(ctx) {
31040
31137
  style: "primary",
31041
31138
  type: "submit",
31042
31139
  width: "full",
31043
- $$slots: { default: [create_default_slot_1$2] },
31140
+ $$slots: { default: [create_default_slot_1$3] },
31044
31141
  $$scope: { ctx }
31045
31142
  }
31046
31143
  });
@@ -31057,7 +31154,7 @@ function create_if_block$2(ctx) {
31057
31154
  const button_changes = {};
31058
31155
  if (dirty & /*journey*/ 4) button_changes.busy = /*journey*/ ctx[2]?.loading;
31059
31156
 
31060
- if (dirty & /*$$scope*/ 32768) {
31157
+ if (dirty & /*$$scope*/ 8192) {
31061
31158
  button_changes.$$scope = { dirty, ctx };
31062
31159
  }
31063
31160
 
@@ -31078,11 +31175,11 @@ function create_if_block$2(ctx) {
31078
31175
  };
31079
31176
  }
31080
31177
 
31081
- // (78:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
31082
- function create_default_slot_1$2(ctx) {
31178
+ // (72:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
31179
+ function create_default_slot_1$3(ctx) {
31083
31180
  let t;
31084
31181
  let current;
31085
- t = new Locale_strings({ props: { key: "registerButton" } });
31182
+ t = new Locale_strings({ props: { key: "loginButton" } });
31086
31183
 
31087
31184
  return {
31088
31185
  c() {
@@ -31108,8 +31205,8 @@ function create_default_slot_1$2(ctx) {
31108
31205
  };
31109
31206
  }
31110
31207
 
31111
- // (43:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
31112
- function create_default_slot$3(ctx) {
31208
+ // (38:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
31209
+ function create_default_slot$4(ctx) {
31113
31210
  let t0;
31114
31211
  let h1;
31115
31212
  let t1;
@@ -31121,26 +31218,29 @@ function create_default_slot$3(ctx) {
31121
31218
  let t6;
31122
31219
  let if_block2_anchor;
31123
31220
  let current;
31124
- let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$2();
31125
- t1 = new Locale_strings({ props: { key: "registerHeader" } });
31221
+ let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$3();
31222
+
31223
+ t1 = new Locale_strings({
31224
+ props: { key: "twoFactorAuthentication" }
31225
+ });
31126
31226
 
31127
31227
  t3 = new Locale_strings({
31128
- props: { key: "alreadyHaveAnAccount", html: true }
31228
+ props: { key: "useTheAuthenticatorAppOnYourPhone" }
31129
31229
  });
31130
31230
 
31131
- let if_block1 = /*form*/ ctx[1].message && create_if_block_1$2(ctx);
31231
+ let if_block1 = /*form*/ ctx[1]?.message && create_if_block_1$3(ctx);
31132
31232
  let each_value = /*step*/ ctx[4]?.callbacks;
31133
31233
  let each_blocks = [];
31134
31234
 
31135
31235
  for (let i = 0; i < each_value.length; i += 1) {
31136
- each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
31236
+ each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
31137
31237
  }
31138
31238
 
31139
31239
  const out = i => transition_out(each_blocks[i], 1, 1, () => {
31140
31240
  each_blocks[i] = null;
31141
31241
  });
31142
31242
 
31143
- let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$2(ctx);
31243
+ let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$3(ctx);
31144
31244
 
31145
31245
  return {
31146
31246
  c() {
@@ -31163,7 +31263,7 @@ function create_default_slot$3(ctx) {
31163
31263
  if (if_block2) if_block2.c();
31164
31264
  if_block2_anchor = empty();
31165
31265
  attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
31166
- 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");
31266
+ 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");
31167
31267
  },
31168
31268
  m(target, anchor) {
31169
31269
  if (if_block0) if_block0.m(target, anchor);
@@ -31173,7 +31273,6 @@ function create_default_slot$3(ctx) {
31173
31273
  insert(target, t2, anchor);
31174
31274
  insert(target, p, anchor);
31175
31275
  mount_component(t3, p, null);
31176
- /*p_binding*/ ctx[10](p);
31177
31276
  insert(target, t4, anchor);
31178
31277
  if (if_block1) if_block1.m(target, anchor);
31179
31278
  insert(target, t5, anchor);
@@ -31194,7 +31293,7 @@ function create_default_slot$3(ctx) {
31194
31293
  transition_in(if_block0, 1);
31195
31294
  }
31196
31295
  } else {
31197
- if_block0 = create_if_block_2$2();
31296
+ if_block0 = create_if_block_2$3();
31198
31297
  if_block0.c();
31199
31298
  transition_in(if_block0, 1);
31200
31299
  if_block0.m(t0.parentNode, t0);
@@ -31209,7 +31308,7 @@ function create_default_slot$3(ctx) {
31209
31308
  check_outros();
31210
31309
  }
31211
31310
 
31212
- if (/*form*/ ctx[1].message) {
31311
+ if (/*form*/ ctx[1]?.message) {
31213
31312
  if (if_block1) {
31214
31313
  if_block1.p(ctx, dirty);
31215
31314
 
@@ -31217,7 +31316,7 @@ function create_default_slot$3(ctx) {
31217
31316
  transition_in(if_block1, 1);
31218
31317
  }
31219
31318
  } else {
31220
- if_block1 = create_if_block_1$2(ctx);
31319
+ if_block1 = create_if_block_1$3(ctx);
31221
31320
  if_block1.c();
31222
31321
  transition_in(if_block1, 1);
31223
31322
  if_block1.m(t5.parentNode, t5);
@@ -31232,18 +31331,18 @@ function create_default_slot$3(ctx) {
31232
31331
  check_outros();
31233
31332
  }
31234
31333
 
31235
- if (dirty & /*step, metadata, determineSubmission, $style*/ 792) {
31334
+ if (dirty & /*step, metadata, determineSubmission, $style*/ 408) {
31236
31335
  each_value = /*step*/ ctx[4]?.callbacks;
31237
31336
  let i;
31238
31337
 
31239
31338
  for (i = 0; i < each_value.length; i += 1) {
31240
- const child_ctx = get_each_context$1(ctx, each_value, i);
31339
+ const child_ctx = get_each_context$2(ctx, each_value, i);
31241
31340
 
31242
31341
  if (each_blocks[i]) {
31243
31342
  each_blocks[i].p(child_ctx, dirty);
31244
31343
  transition_in(each_blocks[i], 1);
31245
31344
  } else {
31246
- each_blocks[i] = create_each_block$1(child_ctx);
31345
+ each_blocks[i] = create_each_block$2(child_ctx);
31247
31346
  each_blocks[i].c();
31248
31347
  transition_in(each_blocks[i], 1);
31249
31348
  each_blocks[i].m(t6.parentNode, t6);
@@ -31267,7 +31366,7 @@ function create_default_slot$3(ctx) {
31267
31366
  transition_in(if_block2, 1);
31268
31367
  }
31269
31368
  } else {
31270
- if_block2 = create_if_block$2(ctx);
31369
+ if_block2 = create_if_block$3(ctx);
31271
31370
  if_block2.c();
31272
31371
  transition_in(if_block2, 1);
31273
31372
  if_block2.m(if_block2_anchor.parentNode, if_block2_anchor);
@@ -31318,7 +31417,6 @@ function create_default_slot$3(ctx) {
31318
31417
  if (detaching) detach(t2);
31319
31418
  if (detaching) detach(p);
31320
31419
  destroy_component(t3);
31321
- /*p_binding*/ ctx[10](null);
31322
31420
  if (detaching) detach(t4);
31323
31421
  if (if_block1) if_block1.d(detaching);
31324
31422
  if (detaching) detach(t5);
@@ -31330,19 +31428,19 @@ function create_default_slot$3(ctx) {
31330
31428
  };
31331
31429
  }
31332
31430
 
31333
- function create_fragment$4(ctx) {
31431
+ function create_fragment$5(ctx) {
31334
31432
  let form_1;
31335
31433
  let updating_formEl;
31336
31434
  let current;
31337
31435
 
31338
31436
  function form_1_formEl_binding(value) {
31339
- /*form_1_formEl_binding*/ ctx[11](value);
31437
+ /*form_1_formEl_binding*/ ctx[9](value);
31340
31438
  }
31341
31439
 
31342
31440
  let form_1_props = {
31343
31441
  ariaDescribedBy: "formFailureMessageAlert",
31344
31442
  onSubmitWhenValid: /*form*/ ctx[1]?.submit,
31345
- $$slots: { default: [create_default_slot$3] },
31443
+ $$slots: { default: [create_default_slot$4] },
31346
31444
  $$scope: { ctx }
31347
31445
  };
31348
31446
 
@@ -31365,7 +31463,7 @@ function create_fragment$4(ctx) {
31365
31463
  const form_1_changes = {};
31366
31464
  if (dirty & /*form*/ 2) form_1_changes.onSubmitWhenValid = /*form*/ ctx[1]?.submit;
31367
31465
 
31368
- if (dirty & /*$$scope, journey, metadata, step, $style, alertNeedsFocus, formMessageKey, form, linkWrapper*/ 33278) {
31466
+ if (dirty & /*$$scope, journey, metadata, step, $style, alertNeedsFocus, formMessageKey, form*/ 8446) {
31369
31467
  form_1_changes.$$scope = { dirty, ctx };
31370
31468
  }
31371
31469
 
@@ -31392,9 +31490,9 @@ function create_fragment$4(ctx) {
31392
31490
  };
31393
31491
  }
31394
31492
 
31395
- function instance$4($$self, $$props, $$invalidate) {
31493
+ function instance$5($$self, $$props, $$invalidate) {
31396
31494
  let $style;
31397
- component_subscribe($$self, style, $$value => $$invalidate(8, $style = $$value));
31495
+ component_subscribe($$self, style, $$value => $$invalidate(7, $style = $$value));
31398
31496
  let { form } = $$props;
31399
31497
  let { formEl = null } = $$props;
31400
31498
  let { journey } = $$props;
@@ -31402,7 +31500,6 @@ function instance$4($$self, $$props, $$invalidate) {
31402
31500
  let { step } = $$props;
31403
31501
  let alertNeedsFocus = false;
31404
31502
  let formMessageKey = '';
31405
- let linkWrapper;
31406
31503
 
31407
31504
  function determineSubmission() {
31408
31505
  // TODO: the below is more strict; all self-submitting cbs have to complete before submitting
@@ -31417,15 +31514,6 @@ function instance$4($$self, $$props, $$invalidate) {
31417
31514
  $$invalidate(5, alertNeedsFocus = !!form?.message);
31418
31515
  });
31419
31516
 
31420
- onMount(() => captureLinks(linkWrapper, journey));
31421
-
31422
- function p_binding($$value) {
31423
- binding_callbacks[$$value ? 'unshift' : 'push'](() => {
31424
- linkWrapper = $$value;
31425
- $$invalidate(7, linkWrapper);
31426
- });
31427
- }
31428
-
31429
31517
  function form_1_formEl_binding(value) {
31430
31518
  formEl = value;
31431
31519
  $$invalidate(0, formEl);
@@ -31455,19 +31543,17 @@ function instance$4($$self, $$props, $$invalidate) {
31455
31543
  step,
31456
31544
  alertNeedsFocus,
31457
31545
  formMessageKey,
31458
- linkWrapper,
31459
31546
  $style,
31460
31547
  determineSubmission,
31461
- p_binding,
31462
31548
  form_1_formEl_binding
31463
31549
  ];
31464
31550
  }
31465
31551
 
31466
- class Registration extends SvelteComponent {
31552
+ class One_time_password extends SvelteComponent {
31467
31553
  constructor(options) {
31468
31554
  super();
31469
31555
 
31470
- init(this, options, instance$4, create_fragment$4, safe_not_equal, {
31556
+ init(this, options, instance$5, create_fragment$5, safe_not_equal, {
31471
31557
  form: 1,
31472
31558
  formEl: 0,
31473
31559
  journey: 2,
@@ -31477,9 +31563,9 @@ class Registration extends SvelteComponent {
31477
31563
  }
31478
31564
  }
31479
31565
 
31480
- /* src/lib/components/icons/key-icon.svelte generated by Svelte v3.55.1 */
31566
+ /* src/lib/components/icons/new-user-icon.svelte generated by Svelte v3.55.1 */
31481
31567
 
31482
- function create_fragment$3(ctx) {
31568
+ function create_fragment$4(ctx) {
31483
31569
  let svg;
31484
31570
  let path0;
31485
31571
  let path1;
@@ -31497,12 +31583,12 @@ function create_fragment$3(ctx) {
31497
31583
  if (default_slot) default_slot.c();
31498
31584
  attr(path0, "d", "M0 0h24v24H0z");
31499
31585
  attr(path0, "fill", "none");
31500
- 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");
31586
+ 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");
31501
31587
  attr(svg, "class", /*classes*/ ctx[0]);
31588
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
31502
31589
  attr(svg, "height", /*size*/ ctx[1]);
31503
- attr(svg, "width", /*size*/ ctx[1]);
31504
31590
  attr(svg, "viewBox", "0 0 24 24");
31505
- attr(svg, "xmlns", "http://www.w3.org/2000/svg");
31591
+ attr(svg, "width", /*size*/ ctx[1]);
31506
31592
  },
31507
31593
  m(target, anchor) {
31508
31594
  insert(target, svg, anchor);
@@ -31560,7 +31646,7 @@ function create_fragment$3(ctx) {
31560
31646
  };
31561
31647
  }
31562
31648
 
31563
- function instance$3($$self, $$props, $$invalidate) {
31649
+ function instance$4($$self, $$props, $$invalidate) {
31564
31650
  let { $$slots: slots = {}, $$scope } = $$props;
31565
31651
  let { classes = '' } = $$props;
31566
31652
  let { size = '24px' } = $$props;
@@ -31574,10 +31660,629 @@ function instance$3($$self, $$props, $$invalidate) {
31574
31660
  return [classes, size, $$scope, slots];
31575
31661
  }
31576
31662
 
31577
- class Key_icon extends SvelteComponent {
31663
+ class New_user_icon extends SvelteComponent {
31578
31664
  constructor(options) {
31579
31665
  super();
31580
- init(this, options, instance$3, create_fragment$3, safe_not_equal, { classes: 0, size: 1 });
31666
+ init(this, options, instance$4, create_fragment$4, safe_not_equal, { classes: 0, size: 1 });
31667
+ }
31668
+ }
31669
+
31670
+ /* src/lib/journey/stages/registration.svelte generated by Svelte v3.55.1 */
31671
+
31672
+ function get_each_context$1(ctx, list, i) {
31673
+ const child_ctx = ctx.slice();
31674
+ child_ctx[12] = list[i];
31675
+ child_ctx[14] = i;
31676
+ return child_ctx;
31677
+ }
31678
+
31679
+ // (44:2) {#if form?.icon}
31680
+ function create_if_block_2$2(ctx) {
31681
+ let div;
31682
+ let newusericon;
31683
+ let current;
31684
+
31685
+ newusericon = new New_user_icon({
31686
+ props: {
31687
+ classes: "tw_text-gray-400 tw_fill-current",
31688
+ size: "72px"
31689
+ }
31690
+ });
31691
+
31692
+ return {
31693
+ c() {
31694
+ div = element("div");
31695
+ create_component(newusericon.$$.fragment);
31696
+ attr(div, "class", "tw_flex tw_justify-center");
31697
+ },
31698
+ m(target, anchor) {
31699
+ insert(target, div, anchor);
31700
+ mount_component(newusericon, div, null);
31701
+ current = true;
31702
+ },
31703
+ i(local) {
31704
+ if (current) return;
31705
+ transition_in(newusericon.$$.fragment, local);
31706
+ current = true;
31707
+ },
31708
+ o(local) {
31709
+ transition_out(newusericon.$$.fragment, local);
31710
+ current = false;
31711
+ },
31712
+ d(detaching) {
31713
+ if (detaching) detach(div);
31714
+ destroy_component(newusericon);
31715
+ }
31716
+ };
31717
+ }
31718
+
31719
+ // (59:2) {#if form.message}
31720
+ function create_if_block_1$2(ctx) {
31721
+ let alert;
31722
+ let current;
31723
+
31724
+ alert = new Alert({
31725
+ props: {
31726
+ id: "formFailureMessageAlert",
31727
+ needsFocus: /*alertNeedsFocus*/ ctx[5],
31728
+ type: "error",
31729
+ $$slots: { default: [create_default_slot_2$1] },
31730
+ $$scope: { ctx }
31731
+ }
31732
+ });
31733
+
31734
+ return {
31735
+ c() {
31736
+ create_component(alert.$$.fragment);
31737
+ },
31738
+ m(target, anchor) {
31739
+ mount_component(alert, target, anchor);
31740
+ current = true;
31741
+ },
31742
+ p(ctx, dirty) {
31743
+ const alert_changes = {};
31744
+ if (dirty & /*alertNeedsFocus*/ 32) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[5];
31745
+
31746
+ if (dirty & /*$$scope, formMessageKey, form*/ 32834) {
31747
+ alert_changes.$$scope = { dirty, ctx };
31748
+ }
31749
+
31750
+ alert.$set(alert_changes);
31751
+ },
31752
+ i(local) {
31753
+ if (current) return;
31754
+ transition_in(alert.$$.fragment, local);
31755
+ current = true;
31756
+ },
31757
+ o(local) {
31758
+ transition_out(alert.$$.fragment, local);
31759
+ current = false;
31760
+ },
31761
+ d(detaching) {
31762
+ destroy_component(alert, detaching);
31763
+ }
31764
+ };
31765
+ }
31766
+
31767
+ // (60:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
31768
+ function create_default_slot_2$1(ctx) {
31769
+ let t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "";
31770
+ let t;
31771
+
31772
+ return {
31773
+ c() {
31774
+ t = text(t_value);
31775
+ },
31776
+ m(target, anchor) {
31777
+ insert(target, t, anchor);
31778
+ },
31779
+ p(ctx, dirty) {
31780
+ if (dirty & /*formMessageKey, form*/ 66 && t_value !== (t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "")) set_data(t, t_value);
31781
+ },
31782
+ d(detaching) {
31783
+ if (detaching) detach(t);
31784
+ }
31785
+ };
31786
+ }
31787
+
31788
+ // (65:2) {#each step?.callbacks as callback, idx}
31789
+ function create_each_block$1(ctx) {
31790
+ let callbackmapper;
31791
+ let current;
31792
+
31793
+ callbackmapper = new Callback_mapper({
31794
+ props: {
31795
+ props: {
31796
+ callback: /*callback*/ ctx[12],
31797
+ callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[14]],
31798
+ selfSubmitFunction: /*determineSubmission*/ ctx[9],
31799
+ stepMetadata: /*metadata*/ ctx[3]?.step && { .../*metadata*/ ctx[3].step },
31800
+ style: /*$style*/ ctx[8]
31801
+ }
31802
+ }
31803
+ });
31804
+
31805
+ return {
31806
+ c() {
31807
+ create_component(callbackmapper.$$.fragment);
31808
+ },
31809
+ m(target, anchor) {
31810
+ mount_component(callbackmapper, target, anchor);
31811
+ current = true;
31812
+ },
31813
+ p(ctx, dirty) {
31814
+ const callbackmapper_changes = {};
31815
+
31816
+ if (dirty & /*step, metadata, $style*/ 280) callbackmapper_changes.props = {
31817
+ callback: /*callback*/ ctx[12],
31818
+ callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[14]],
31819
+ selfSubmitFunction: /*determineSubmission*/ ctx[9],
31820
+ stepMetadata: /*metadata*/ ctx[3]?.step && { .../*metadata*/ ctx[3].step },
31821
+ style: /*$style*/ ctx[8]
31822
+ };
31823
+
31824
+ callbackmapper.$set(callbackmapper_changes);
31825
+ },
31826
+ i(local) {
31827
+ if (current) return;
31828
+ transition_in(callbackmapper.$$.fragment, local);
31829
+ current = true;
31830
+ },
31831
+ o(local) {
31832
+ transition_out(callbackmapper.$$.fragment, local);
31833
+ current = false;
31834
+ },
31835
+ d(detaching) {
31836
+ destroy_component(callbackmapper, detaching);
31837
+ }
31838
+ };
31839
+ }
31840
+
31841
+ // (77:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
31842
+ function create_if_block$2(ctx) {
31843
+ let button;
31844
+ let current;
31845
+
31846
+ button = new Button({
31847
+ props: {
31848
+ busy: /*journey*/ ctx[2]?.loading,
31849
+ style: "primary",
31850
+ type: "submit",
31851
+ width: "full",
31852
+ $$slots: { default: [create_default_slot_1$2] },
31853
+ $$scope: { ctx }
31854
+ }
31855
+ });
31856
+
31857
+ return {
31858
+ c() {
31859
+ create_component(button.$$.fragment);
31860
+ },
31861
+ m(target, anchor) {
31862
+ mount_component(button, target, anchor);
31863
+ current = true;
31864
+ },
31865
+ p(ctx, dirty) {
31866
+ const button_changes = {};
31867
+ if (dirty & /*journey*/ 4) button_changes.busy = /*journey*/ ctx[2]?.loading;
31868
+
31869
+ if (dirty & /*$$scope*/ 32768) {
31870
+ button_changes.$$scope = { dirty, ctx };
31871
+ }
31872
+
31873
+ button.$set(button_changes);
31874
+ },
31875
+ i(local) {
31876
+ if (current) return;
31877
+ transition_in(button.$$.fragment, local);
31878
+ current = true;
31879
+ },
31880
+ o(local) {
31881
+ transition_out(button.$$.fragment, local);
31882
+ current = false;
31883
+ },
31884
+ d(detaching) {
31885
+ destroy_component(button, detaching);
31886
+ }
31887
+ };
31888
+ }
31889
+
31890
+ // (78:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
31891
+ function create_default_slot_1$2(ctx) {
31892
+ let t;
31893
+ let current;
31894
+ t = new Locale_strings({ props: { key: "registerButton" } });
31895
+
31896
+ return {
31897
+ c() {
31898
+ create_component(t.$$.fragment);
31899
+ },
31900
+ m(target, anchor) {
31901
+ mount_component(t, target, anchor);
31902
+ current = true;
31903
+ },
31904
+ p: noop,
31905
+ i(local) {
31906
+ if (current) return;
31907
+ transition_in(t.$$.fragment, local);
31908
+ current = true;
31909
+ },
31910
+ o(local) {
31911
+ transition_out(t.$$.fragment, local);
31912
+ current = false;
31913
+ },
31914
+ d(detaching) {
31915
+ destroy_component(t, detaching);
31916
+ }
31917
+ };
31918
+ }
31919
+
31920
+ // (43:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
31921
+ function create_default_slot$3(ctx) {
31922
+ let t0;
31923
+ let h1;
31924
+ let t1;
31925
+ let t2;
31926
+ let p;
31927
+ let t3;
31928
+ let t4;
31929
+ let t5;
31930
+ let t6;
31931
+ let if_block2_anchor;
31932
+ let current;
31933
+ let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$2();
31934
+ t1 = new Locale_strings({ props: { key: "registerHeader" } });
31935
+
31936
+ t3 = new Locale_strings({
31937
+ props: { key: "alreadyHaveAnAccount", html: true }
31938
+ });
31939
+
31940
+ let if_block1 = /*form*/ ctx[1].message && create_if_block_1$2(ctx);
31941
+ let each_value = /*step*/ ctx[4]?.callbacks;
31942
+ let each_blocks = [];
31943
+
31944
+ for (let i = 0; i < each_value.length; i += 1) {
31945
+ each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
31946
+ }
31947
+
31948
+ const out = i => transition_out(each_blocks[i], 1, 1, () => {
31949
+ each_blocks[i] = null;
31950
+ });
31951
+
31952
+ let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$2(ctx);
31953
+
31954
+ return {
31955
+ c() {
31956
+ if (if_block0) if_block0.c();
31957
+ t0 = space();
31958
+ h1 = element("h1");
31959
+ create_component(t1.$$.fragment);
31960
+ t2 = space();
31961
+ p = element("p");
31962
+ create_component(t3.$$.fragment);
31963
+ t4 = space();
31964
+ if (if_block1) if_block1.c();
31965
+ t5 = space();
31966
+
31967
+ for (let i = 0; i < each_blocks.length; i += 1) {
31968
+ each_blocks[i].c();
31969
+ }
31970
+
31971
+ t6 = space();
31972
+ if (if_block2) if_block2.c();
31973
+ if_block2_anchor = empty();
31974
+ attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
31975
+ 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");
31976
+ },
31977
+ m(target, anchor) {
31978
+ if (if_block0) if_block0.m(target, anchor);
31979
+ insert(target, t0, anchor);
31980
+ insert(target, h1, anchor);
31981
+ mount_component(t1, h1, null);
31982
+ insert(target, t2, anchor);
31983
+ insert(target, p, anchor);
31984
+ mount_component(t3, p, null);
31985
+ /*p_binding*/ ctx[10](p);
31986
+ insert(target, t4, anchor);
31987
+ if (if_block1) if_block1.m(target, anchor);
31988
+ insert(target, t5, anchor);
31989
+
31990
+ for (let i = 0; i < each_blocks.length; i += 1) {
31991
+ each_blocks[i].m(target, anchor);
31992
+ }
31993
+
31994
+ insert(target, t6, anchor);
31995
+ if (if_block2) if_block2.m(target, anchor);
31996
+ insert(target, if_block2_anchor, anchor);
31997
+ current = true;
31998
+ },
31999
+ p(ctx, dirty) {
32000
+ if (/*form*/ ctx[1]?.icon) {
32001
+ if (if_block0) {
32002
+ if (dirty & /*form*/ 2) {
32003
+ transition_in(if_block0, 1);
32004
+ }
32005
+ } else {
32006
+ if_block0 = create_if_block_2$2();
32007
+ if_block0.c();
32008
+ transition_in(if_block0, 1);
32009
+ if_block0.m(t0.parentNode, t0);
32010
+ }
32011
+ } else if (if_block0) {
32012
+ group_outros();
32013
+
32014
+ transition_out(if_block0, 1, 1, () => {
32015
+ if_block0 = null;
32016
+ });
32017
+
32018
+ check_outros();
32019
+ }
32020
+
32021
+ if (/*form*/ ctx[1].message) {
32022
+ if (if_block1) {
32023
+ if_block1.p(ctx, dirty);
32024
+
32025
+ if (dirty & /*form*/ 2) {
32026
+ transition_in(if_block1, 1);
32027
+ }
32028
+ } else {
32029
+ if_block1 = create_if_block_1$2(ctx);
32030
+ if_block1.c();
32031
+ transition_in(if_block1, 1);
32032
+ if_block1.m(t5.parentNode, t5);
32033
+ }
32034
+ } else if (if_block1) {
32035
+ group_outros();
32036
+
32037
+ transition_out(if_block1, 1, 1, () => {
32038
+ if_block1 = null;
32039
+ });
32040
+
32041
+ check_outros();
32042
+ }
32043
+
32044
+ if (dirty & /*step, metadata, determineSubmission, $style*/ 792) {
32045
+ each_value = /*step*/ ctx[4]?.callbacks;
32046
+ let i;
32047
+
32048
+ for (i = 0; i < each_value.length; i += 1) {
32049
+ const child_ctx = get_each_context$1(ctx, each_value, i);
32050
+
32051
+ if (each_blocks[i]) {
32052
+ each_blocks[i].p(child_ctx, dirty);
32053
+ transition_in(each_blocks[i], 1);
32054
+ } else {
32055
+ each_blocks[i] = create_each_block$1(child_ctx);
32056
+ each_blocks[i].c();
32057
+ transition_in(each_blocks[i], 1);
32058
+ each_blocks[i].m(t6.parentNode, t6);
32059
+ }
32060
+ }
32061
+
32062
+ group_outros();
32063
+
32064
+ for (i = each_value.length; i < each_blocks.length; i += 1) {
32065
+ out(i);
32066
+ }
32067
+
32068
+ check_outros();
32069
+ }
32070
+
32071
+ if (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) {
32072
+ if (if_block2) {
32073
+ if_block2.p(ctx, dirty);
32074
+
32075
+ if (dirty & /*metadata*/ 8) {
32076
+ transition_in(if_block2, 1);
32077
+ }
32078
+ } else {
32079
+ if_block2 = create_if_block$2(ctx);
32080
+ if_block2.c();
32081
+ transition_in(if_block2, 1);
32082
+ if_block2.m(if_block2_anchor.parentNode, if_block2_anchor);
32083
+ }
32084
+ } else if (if_block2) {
32085
+ group_outros();
32086
+
32087
+ transition_out(if_block2, 1, 1, () => {
32088
+ if_block2 = null;
32089
+ });
32090
+
32091
+ check_outros();
32092
+ }
32093
+ },
32094
+ i(local) {
32095
+ if (current) return;
32096
+ transition_in(if_block0);
32097
+ transition_in(t1.$$.fragment, local);
32098
+ transition_in(t3.$$.fragment, local);
32099
+ transition_in(if_block1);
32100
+
32101
+ for (let i = 0; i < each_value.length; i += 1) {
32102
+ transition_in(each_blocks[i]);
32103
+ }
32104
+
32105
+ transition_in(if_block2);
32106
+ current = true;
32107
+ },
32108
+ o(local) {
32109
+ transition_out(if_block0);
32110
+ transition_out(t1.$$.fragment, local);
32111
+ transition_out(t3.$$.fragment, local);
32112
+ transition_out(if_block1);
32113
+ each_blocks = each_blocks.filter(Boolean);
32114
+
32115
+ for (let i = 0; i < each_blocks.length; i += 1) {
32116
+ transition_out(each_blocks[i]);
32117
+ }
32118
+
32119
+ transition_out(if_block2);
32120
+ current = false;
32121
+ },
32122
+ d(detaching) {
32123
+ if (if_block0) if_block0.d(detaching);
32124
+ if (detaching) detach(t0);
32125
+ if (detaching) detach(h1);
32126
+ destroy_component(t1);
32127
+ if (detaching) detach(t2);
32128
+ if (detaching) detach(p);
32129
+ destroy_component(t3);
32130
+ /*p_binding*/ ctx[10](null);
32131
+ if (detaching) detach(t4);
32132
+ if (if_block1) if_block1.d(detaching);
32133
+ if (detaching) detach(t5);
32134
+ destroy_each(each_blocks, detaching);
32135
+ if (detaching) detach(t6);
32136
+ if (if_block2) if_block2.d(detaching);
32137
+ if (detaching) detach(if_block2_anchor);
32138
+ }
32139
+ };
32140
+ }
32141
+
32142
+ function create_fragment$3(ctx) {
32143
+ let form_1;
32144
+ let updating_formEl;
32145
+ let current;
32146
+
32147
+ function form_1_formEl_binding(value) {
32148
+ /*form_1_formEl_binding*/ ctx[11](value);
32149
+ }
32150
+
32151
+ let form_1_props = {
32152
+ ariaDescribedBy: "formFailureMessageAlert",
32153
+ onSubmitWhenValid: /*form*/ ctx[1]?.submit,
32154
+ $$slots: { default: [create_default_slot$3] },
32155
+ $$scope: { ctx }
32156
+ };
32157
+
32158
+ if (/*formEl*/ ctx[0] !== void 0) {
32159
+ form_1_props.formEl = /*formEl*/ ctx[0];
32160
+ }
32161
+
32162
+ form_1 = new Form({ props: form_1_props });
32163
+ binding_callbacks.push(() => bind(form_1, 'formEl', form_1_formEl_binding));
32164
+
32165
+ return {
32166
+ c() {
32167
+ create_component(form_1.$$.fragment);
32168
+ },
32169
+ m(target, anchor) {
32170
+ mount_component(form_1, target, anchor);
32171
+ current = true;
32172
+ },
32173
+ p(ctx, [dirty]) {
32174
+ const form_1_changes = {};
32175
+ if (dirty & /*form*/ 2) form_1_changes.onSubmitWhenValid = /*form*/ ctx[1]?.submit;
32176
+
32177
+ if (dirty & /*$$scope, journey, metadata, step, $style, alertNeedsFocus, formMessageKey, form, linkWrapper*/ 33278) {
32178
+ form_1_changes.$$scope = { dirty, ctx };
32179
+ }
32180
+
32181
+ if (!updating_formEl && dirty & /*formEl*/ 1) {
32182
+ updating_formEl = true;
32183
+ form_1_changes.formEl = /*formEl*/ ctx[0];
32184
+ add_flush_callback(() => updating_formEl = false);
32185
+ }
32186
+
32187
+ form_1.$set(form_1_changes);
32188
+ },
32189
+ i(local) {
32190
+ if (current) return;
32191
+ transition_in(form_1.$$.fragment, local);
32192
+ current = true;
32193
+ },
32194
+ o(local) {
32195
+ transition_out(form_1.$$.fragment, local);
32196
+ current = false;
32197
+ },
32198
+ d(detaching) {
32199
+ destroy_component(form_1, detaching);
32200
+ }
32201
+ };
32202
+ }
32203
+
32204
+ function instance$3($$self, $$props, $$invalidate) {
32205
+ let $style;
32206
+ component_subscribe($$self, style, $$value => $$invalidate(8, $style = $$value));
32207
+ let { form } = $$props;
32208
+ let { formEl = null } = $$props;
32209
+ let { journey } = $$props;
32210
+ let { metadata } = $$props;
32211
+ let { step } = $$props;
32212
+ let alertNeedsFocus = false;
32213
+ let formMessageKey = '';
32214
+ let linkWrapper;
32215
+
32216
+ function determineSubmission() {
32217
+ // TODO: the below is more strict; all self-submitting cbs have to complete before submitting
32218
+ // if (stepMetadata.isStepSelfSubmittable && isStepReadyToSubmit(callbackMetadataArray)) {
32219
+ // The below variation is more liberal first self-submittable cb to call this wins.
32220
+ if (metadata?.step?.derived.isStepSelfSubmittable) {
32221
+ form?.submit();
32222
+ }
32223
+ }
32224
+
32225
+ afterUpdate(() => {
32226
+ $$invalidate(5, alertNeedsFocus = !!form?.message);
32227
+ });
32228
+
32229
+ onMount(() => captureLinks(linkWrapper, journey));
32230
+
32231
+ function p_binding($$value) {
32232
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
32233
+ linkWrapper = $$value;
32234
+ $$invalidate(7, linkWrapper);
32235
+ });
32236
+ }
32237
+
32238
+ function form_1_formEl_binding(value) {
32239
+ formEl = value;
32240
+ $$invalidate(0, formEl);
32241
+ }
32242
+
32243
+ $$self.$$set = $$props => {
32244
+ if ('form' in $$props) $$invalidate(1, form = $$props.form);
32245
+ if ('formEl' in $$props) $$invalidate(0, formEl = $$props.formEl);
32246
+ if ('journey' in $$props) $$invalidate(2, journey = $$props.journey);
32247
+ if ('metadata' in $$props) $$invalidate(3, metadata = $$props.metadata);
32248
+ if ('step' in $$props) $$invalidate(4, step = $$props.step);
32249
+ };
32250
+
32251
+ $$self.$$.update = () => {
32252
+ if ($$self.$$.dirty & /*form*/ 2) {
32253
+ {
32254
+ $$invalidate(6, formMessageKey = convertStringToKey(form?.message));
32255
+ }
32256
+ }
32257
+ };
32258
+
32259
+ return [
32260
+ formEl,
32261
+ form,
32262
+ journey,
32263
+ metadata,
32264
+ step,
32265
+ alertNeedsFocus,
32266
+ formMessageKey,
32267
+ linkWrapper,
32268
+ $style,
32269
+ determineSubmission,
32270
+ p_binding,
32271
+ form_1_formEl_binding
32272
+ ];
32273
+ }
32274
+
32275
+ class Registration extends SvelteComponent {
32276
+ constructor(options) {
32277
+ super();
32278
+
32279
+ init(this, options, instance$3, create_fragment$3, safe_not_equal, {
32280
+ form: 1,
32281
+ formEl: 0,
32282
+ journey: 2,
32283
+ metadata: 3,
32284
+ step: 4
32285
+ });
31581
32286
  }
31582
32287
  }
31583
32288
 
@@ -32259,6 +32964,8 @@ function mapStepToStage(currentStep) {
32259
32964
  return Generic;
32260
32965
  }
32261
32966
  switch (currentStep?.getStage && currentStep.getStage()) {
32967
+ case 'OneTimePassword':
32968
+ return One_time_password;
32262
32969
  case 'Registration':
32263
32970
  return Registration;
32264
32971
  case 'UsernamePassword':
@@ -32957,7 +33664,7 @@ function create_default_slot(ctx) {
32957
33664
  }
32958
33665
 
32959
33666
  let journey_1_props = {
32960
- displayIcon: /*style*/ ctx[0]?.stage?.icon ?? !/*style*/ ctx[0]?.logo,
33667
+ displayIcon: /*style*/ ctx[0]?.stage?.icon || !/*style*/ ctx[0]?.logo,
32961
33668
  journeyStore: api.getJourneyStore()
32962
33669
  };
32963
33670
 
@@ -32978,7 +33685,7 @@ function create_default_slot(ctx) {
32978
33685
  },
32979
33686
  p(ctx, dirty) {
32980
33687
  const journey_1_changes = {};
32981
- if (dirty & /*style*/ 1) journey_1_changes.displayIcon = /*style*/ ctx[0]?.stage?.icon ?? !/*style*/ ctx[0]?.logo;
33688
+ if (dirty & /*style*/ 1) journey_1_changes.displayIcon = /*style*/ ctx[0]?.stage?.icon || !/*style*/ ctx[0]?.logo;
32982
33689
 
32983
33690
  if (!updating_formEl && dirty & /*formEl*/ 8) {
32984
33691
  updating_formEl = true;
@@ -33088,9 +33795,9 @@ const api = widgetApiFactory({
33088
33795
  onMount(fn) {
33089
33796
  callMounted = (dialog, form) => fn(dialog, form);
33090
33797
  },
33091
- open(options) {
33798
+ open(options, forceRestart) {
33092
33799
  // If journey does not have a step, start the journey
33093
- if (!get_store_value(api.getJourneyStore()).step) {
33800
+ if (!get_store_value(api.getJourneyStore()).step || forceRestart) {
33094
33801
  journey.start(options);
33095
33802
  }
33096
33803