@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/inline.cjs CHANGED
@@ -14094,6 +14094,7 @@ function widgetApiFactory(modal) {
14094
14094
  },
14095
14095
  };
14096
14096
  const user = {
14097
+ // TODO: add "scopes" to parameters for "true" authorization
14097
14098
  async authorized(remote = false) {
14098
14099
  if (remote) {
14099
14100
  try {
@@ -14104,7 +14105,12 @@ function widgetApiFactory(modal) {
14104
14105
  return;
14105
14106
  }
14106
14107
  }
14107
- return !!(await TokenManager$1.getTokens());
14108
+ try {
14109
+ return !!(await TokenManager$1.getTokens());
14110
+ }
14111
+ catch (err) {
14112
+ return;
14113
+ }
14108
14114
  },
14109
14115
  async info(remote = false) {
14110
14116
  userStore = userStore;
@@ -14182,7 +14188,7 @@ function widgetApiFactory(modal) {
14182
14188
 
14183
14189
  /* src/lib/components/icons/alert-icon.svelte generated by Svelte v3.55.1 */
14184
14190
 
14185
- function create_fragment$T(ctx) {
14191
+ function create_fragment$U(ctx) {
14186
14192
  let svg;
14187
14193
  let path;
14188
14194
  let title;
@@ -14258,7 +14264,7 @@ function create_fragment$T(ctx) {
14258
14264
  };
14259
14265
  }
14260
14266
 
14261
- function instance$U($$self, $$props, $$invalidate) {
14267
+ function instance$V($$self, $$props, $$invalidate) {
14262
14268
  let { $$slots: slots = {}, $$scope } = $$props;
14263
14269
  let { classes = '' } = $$props;
14264
14270
  let { size = '24px' } = $$props;
@@ -14275,13 +14281,13 @@ function instance$U($$self, $$props, $$invalidate) {
14275
14281
  class Alert_icon extends SvelteComponent {
14276
14282
  constructor(options) {
14277
14283
  super();
14278
- init(this, options, instance$U, create_fragment$T, safe_not_equal, { classes: 0, size: 1 });
14284
+ init(this, options, instance$V, create_fragment$U, safe_not_equal, { classes: 0, size: 1 });
14279
14285
  }
14280
14286
  }
14281
14287
 
14282
14288
  /* src/lib/components/icons/info-icon.svelte generated by Svelte v3.55.1 */
14283
14289
 
14284
- function create_fragment$S(ctx) {
14290
+ function create_fragment$T(ctx) {
14285
14291
  let svg;
14286
14292
  let path;
14287
14293
  let title;
@@ -14357,7 +14363,7 @@ function create_fragment$S(ctx) {
14357
14363
  };
14358
14364
  }
14359
14365
 
14360
- function instance$T($$self, $$props, $$invalidate) {
14366
+ function instance$U($$self, $$props, $$invalidate) {
14361
14367
  let { $$slots: slots = {}, $$scope } = $$props;
14362
14368
  let { classes = '' } = $$props;
14363
14369
  let { size = '24px' } = $$props;
@@ -14374,13 +14380,13 @@ function instance$T($$self, $$props, $$invalidate) {
14374
14380
  class Info_icon extends SvelteComponent {
14375
14381
  constructor(options) {
14376
14382
  super();
14377
- init(this, options, instance$T, create_fragment$S, safe_not_equal, { classes: 0, size: 1 });
14383
+ init(this, options, instance$U, create_fragment$T, safe_not_equal, { classes: 0, size: 1 });
14378
14384
  }
14379
14385
  }
14380
14386
 
14381
14387
  /* src/lib/components/icons/warning-icon.svelte generated by Svelte v3.55.1 */
14382
14388
 
14383
- function create_fragment$R(ctx) {
14389
+ function create_fragment$S(ctx) {
14384
14390
  let svg;
14385
14391
  let path;
14386
14392
  let title;
@@ -14456,7 +14462,7 @@ function create_fragment$R(ctx) {
14456
14462
  };
14457
14463
  }
14458
14464
 
14459
- function instance$S($$self, $$props, $$invalidate) {
14465
+ function instance$T($$self, $$props, $$invalidate) {
14460
14466
  let { $$slots: slots = {}, $$scope } = $$props;
14461
14467
  let { classes = '' } = $$props;
14462
14468
  let { size = '24px' } = $$props;
@@ -14473,7 +14479,7 @@ function instance$S($$self, $$props, $$invalidate) {
14473
14479
  class Warning_icon extends SvelteComponent {
14474
14480
  constructor(options) {
14475
14481
  super();
14476
- init(this, options, instance$S, create_fragment$R, safe_not_equal, { classes: 0, size: 1 });
14482
+ init(this, options, instance$T, create_fragment$S, safe_not_equal, { classes: 0, size: 1 });
14477
14483
  }
14478
14484
  }
14479
14485
 
@@ -14508,7 +14514,7 @@ function create_else_block$8(ctx) {
14508
14514
  }
14509
14515
 
14510
14516
  // (43:33)
14511
- function create_if_block_1$a(ctx) {
14517
+ function create_if_block_1$b(ctx) {
14512
14518
  let warningicon;
14513
14519
  let current;
14514
14520
  warningicon = new Warning_icon({});
@@ -14537,7 +14543,7 @@ function create_if_block_1$a(ctx) {
14537
14543
  }
14538
14544
 
14539
14545
  // (41:4) {#if type === 'error'}
14540
- function create_if_block$k(ctx) {
14546
+ function create_if_block$l(ctx) {
14541
14547
  let alerticon;
14542
14548
  let current;
14543
14549
  alerticon = new Alert_icon({});
@@ -14565,7 +14571,7 @@ function create_if_block$k(ctx) {
14565
14571
  };
14566
14572
  }
14567
14573
 
14568
- function create_fragment$Q(ctx) {
14574
+ function create_fragment$R(ctx) {
14569
14575
  let div;
14570
14576
  let p;
14571
14577
  let current_block_type_index;
@@ -14574,7 +14580,7 @@ function create_fragment$Q(ctx) {
14574
14580
  let span;
14575
14581
  let div_class_value;
14576
14582
  let current;
14577
- const if_block_creators = [create_if_block$k, create_if_block_1$a, create_else_block$8];
14583
+ const if_block_creators = [create_if_block$l, create_if_block_1$b, create_else_block$8];
14578
14584
  const if_blocks = [];
14579
14585
 
14580
14586
  function select_block_type(ctx, dirty) {
@@ -14701,7 +14707,7 @@ function generateClassString$3(...args) {
14701
14707
  );
14702
14708
  }
14703
14709
 
14704
- function instance$R($$self, $$props, $$invalidate) {
14710
+ function instance$S($$self, $$props, $$invalidate) {
14705
14711
  let { $$slots: slots = {}, $$scope } = $$props;
14706
14712
  let { id } = $$props;
14707
14713
  let { needsFocus = false } = $$props;
@@ -14738,7 +14744,7 @@ function instance$R($$self, $$props, $$invalidate) {
14738
14744
  class Alert extends SvelteComponent {
14739
14745
  constructor(options) {
14740
14746
  super();
14741
- init(this, options, instance$R, create_fragment$Q, safe_not_equal, { id: 0, needsFocus: 3, type: 1 });
14747
+ init(this, options, instance$S, create_fragment$R, safe_not_equal, { id: 0, needsFocus: 3, type: 1 });
14742
14748
  }
14743
14749
  }
14744
14750
 
@@ -16464,6 +16470,7 @@ var customSecurityQuestion = "Custom security question";
16464
16470
  var doesNotMeetMinimumCharacterLength = "At least {min} character(s)";
16465
16471
  var ensurePasswordIsMoreThan = "Password must contain at least {minPasswordLength} character(s).";
16466
16472
  var ensurePasswordHasOne = "Password must contain at least 1 capital letter, 1 number, and 1 special character.";
16473
+ var enterVerificationCode = "Enter verification code";
16467
16474
  var exceedsMaximumCharacterLength = "Exceeds maximum of {max} characters";
16468
16475
  var fieldCanNotContainFollowingCharacters = "Cannot contain these character(s): {chars}";
16469
16476
  var fieldCanNotContainFollowingValues = "Cannot contain these value(s): {fields}";
@@ -16507,10 +16514,13 @@ var successMessage = "Success!";
16507
16514
  var termsAndConditions = "Please accept our Terms & Conditions";
16508
16515
  var termsAndConditionsLinkText = "View full Terms & Conditions";
16509
16516
  var tryAgain = "Please try again";
16517
+ var twoFactorAuthentication = "Two factor authentication";
16510
16518
  var useValidEmail = "Please use a valid email address.";
16511
16519
  var unrecoverableError = "There was an error in the form submission.";
16512
16520
  var unknownNetworkError = "Unknown network request failure has occurred.";
16521
+ var userName = "Username";
16513
16522
  var usernameRequirements = "Username requirements:";
16523
+ var useTheAuthenticatorAppOnYourPhone = "Find the verification code using the authenticator app on your phone.";
16514
16524
  var validatedCreatePasswordCallback = "Password";
16515
16525
  var validatedCreateUsernameCallback = "Username";
16516
16526
  var valueRequirements = "Value requirements:";
@@ -16529,6 +16539,7 @@ var fallback = {
16529
16539
  doesNotMeetMinimumCharacterLength: doesNotMeetMinimumCharacterLength,
16530
16540
  ensurePasswordIsMoreThan: ensurePasswordIsMoreThan,
16531
16541
  ensurePasswordHasOne: ensurePasswordHasOne,
16542
+ enterVerificationCode: enterVerificationCode,
16532
16543
  exceedsMaximumCharacterLength: exceedsMaximumCharacterLength,
16533
16544
  fieldCanNotContainFollowingCharacters: fieldCanNotContainFollowingCharacters,
16534
16545
  fieldCanNotContainFollowingValues: fieldCanNotContainFollowingValues,
@@ -16572,10 +16583,13 @@ var fallback = {
16572
16583
  termsAndConditions: termsAndConditions,
16573
16584
  termsAndConditionsLinkText: termsAndConditionsLinkText,
16574
16585
  tryAgain: tryAgain,
16586
+ twoFactorAuthentication: twoFactorAuthentication,
16575
16587
  useValidEmail: useValidEmail,
16576
16588
  unrecoverableError: unrecoverableError,
16577
16589
  unknownNetworkError: unknownNetworkError,
16590
+ userName: userName,
16578
16591
  usernameRequirements: usernameRequirements,
16592
+ useTheAuthenticatorAppOnYourPhone: useTheAuthenticatorAppOnYourPhone,
16579
16593
  validatedCreatePasswordCallback: validatedCreatePasswordCallback,
16580
16594
  validatedCreateUsernameCallback: validatedCreateUsernameCallback,
16581
16595
  valueRequirements: valueRequirements
@@ -16597,6 +16611,7 @@ const stringsSchema = mod
16597
16611
  doesNotMeetMinimumCharacterLength: mod.string(),
16598
16612
  ensurePasswordIsMoreThan: mod.string(),
16599
16613
  ensurePasswordHasOne: mod.string(),
16614
+ enterVerificationCode: mod.string(),
16600
16615
  exceedsMaximumCharacterLength: mod.string(),
16601
16616
  fieldCanNotContainFollowingCharacters: mod.string(),
16602
16617
  fieldCanNotContainFollowingValues: mod.string(),
@@ -16640,10 +16655,13 @@ const stringsSchema = mod
16640
16655
  termsAndConditions: mod.string(),
16641
16656
  termsAndConditionsLinkText: mod.string(),
16642
16657
  tryAgain: mod.string(),
16658
+ twoFactorAuthentication: mod.string(),
16643
16659
  useValidEmail: mod.string(),
16644
16660
  unrecoverableError: mod.string(),
16645
16661
  unknownNetworkError: mod.string(),
16662
+ userName: mod.string(),
16646
16663
  usernameRequirements: mod.string(),
16664
+ useTheAuthenticatorAppOnYourPhone: mod.string(),
16647
16665
  validatedCreatePasswordCallback: mod.string(),
16648
16666
  validatedCreateUsernameCallback: mod.string(),
16649
16667
  valueRequirements: mod.string(),
@@ -16837,7 +16855,7 @@ function create_else_block$7(ctx) {
16837
16855
  }
16838
16856
 
16839
16857
  // (11:0) {#if html}
16840
- function create_if_block$j(ctx) {
16858
+ function create_if_block$k(ctx) {
16841
16859
  let current;
16842
16860
  const default_slot_template = /*#slots*/ ctx[5].default;
16843
16861
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[4], null);
@@ -16934,12 +16952,12 @@ function fallback_block$2(ctx) {
16934
16952
  };
16935
16953
  }
16936
16954
 
16937
- function create_fragment$P(ctx) {
16955
+ function create_fragment$Q(ctx) {
16938
16956
  let current_block_type_index;
16939
16957
  let if_block;
16940
16958
  let if_block_anchor;
16941
16959
  let current;
16942
- const if_block_creators = [create_if_block$j, create_else_block$7];
16960
+ const if_block_creators = [create_if_block$k, create_else_block$7];
16943
16961
  const if_blocks = [];
16944
16962
 
16945
16963
  function select_block_type(ctx, dirty) {
@@ -17003,7 +17021,7 @@ function create_fragment$P(ctx) {
17003
17021
  };
17004
17022
  }
17005
17023
 
17006
- function instance$Q($$self, $$props, $$invalidate) {
17024
+ function instance$R($$self, $$props, $$invalidate) {
17007
17025
  let { $$slots: slots = {}, $$scope } = $$props;
17008
17026
  let { html = false } = $$props;
17009
17027
  let { key } = $$props;
@@ -17031,13 +17049,13 @@ function instance$Q($$self, $$props, $$invalidate) {
17031
17049
  class Locale_strings extends SvelteComponent {
17032
17050
  constructor(options) {
17033
17051
  super();
17034
- init(this, options, instance$Q, create_fragment$P, safe_not_equal, { html: 0, key: 2, values: 3 });
17052
+ init(this, options, instance$R, create_fragment$Q, safe_not_equal, { html: 0, key: 2, values: 3 });
17035
17053
  }
17036
17054
  }
17037
17055
 
17038
17056
  /* src/lib/components/primitives/spinner/spinner.svelte generated by Svelte v3.55.1 */
17039
17057
 
17040
- function create_fragment$O(ctx) {
17058
+ function create_fragment$P(ctx) {
17041
17059
  let div;
17042
17060
  let span;
17043
17061
  let t;
@@ -17081,7 +17099,7 @@ function create_fragment$O(ctx) {
17081
17099
  };
17082
17100
  }
17083
17101
 
17084
- function instance$P($$self, $$props, $$invalidate) {
17102
+ function instance$Q($$self, $$props, $$invalidate) {
17085
17103
  let { colorClass } = $$props;
17086
17104
  let { layoutClasses } = $$props;
17087
17105
 
@@ -17096,13 +17114,13 @@ function instance$P($$self, $$props, $$invalidate) {
17096
17114
  class Spinner extends SvelteComponent {
17097
17115
  constructor(options) {
17098
17116
  super();
17099
- init(this, options, instance$P, create_fragment$O, safe_not_equal, { colorClass: 0, layoutClasses: 1 });
17117
+ init(this, options, instance$Q, create_fragment$P, safe_not_equal, { colorClass: 0, layoutClasses: 1 });
17100
17118
  }
17101
17119
  }
17102
17120
 
17103
17121
  /* src/lib/components/primitives/button/button.svelte generated by Svelte v3.55.1 */
17104
17122
 
17105
- function create_if_block$i(ctx) {
17123
+ function create_if_block$j(ctx) {
17106
17124
  let spinner;
17107
17125
  let current;
17108
17126
 
@@ -17153,14 +17171,14 @@ function fallback_block$1(ctx) {
17153
17171
  };
17154
17172
  }
17155
17173
 
17156
- function create_fragment$N(ctx) {
17174
+ function create_fragment$O(ctx) {
17157
17175
  let button;
17158
17176
  let t;
17159
17177
  let button_class_value;
17160
17178
  let current;
17161
17179
  let mounted;
17162
17180
  let dispose;
17163
- let if_block = /*busy*/ ctx[0] && create_if_block$i();
17181
+ let if_block = /*busy*/ ctx[0] && create_if_block$j();
17164
17182
  const default_slot_template = /*#slots*/ ctx[7].default;
17165
17183
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
17166
17184
  const default_slot_or_fallback = default_slot || fallback_block$1();
@@ -17202,7 +17220,7 @@ function create_fragment$N(ctx) {
17202
17220
  transition_in(if_block, 1);
17203
17221
  }
17204
17222
  } else {
17205
- if_block = create_if_block$i();
17223
+ if_block = create_if_block$j();
17206
17224
  if_block.c();
17207
17225
  transition_in(if_block, 1);
17208
17226
  if_block.m(button, t);
@@ -17283,7 +17301,7 @@ function generateClassString$2(...args) {
17283
17301
  );
17284
17302
  }
17285
17303
 
17286
- function instance$O($$self, $$props, $$invalidate) {
17304
+ function instance$P($$self, $$props, $$invalidate) {
17287
17305
  let { $$slots: slots = {}, $$scope } = $$props;
17288
17306
  let { busy = false } = $$props;
17289
17307
  let { classes = '' } = $$props;
@@ -17313,7 +17331,7 @@ class Button extends SvelteComponent {
17313
17331
  constructor(options) {
17314
17332
  super();
17315
17333
 
17316
- init(this, options, instance$O, create_fragment$N, safe_not_equal, {
17334
+ init(this, options, instance$P, create_fragment$O, safe_not_equal, {
17317
17335
  busy: 0,
17318
17336
  classes: 1,
17319
17337
  onClick: 2,
@@ -17570,7 +17588,7 @@ function buildCallbackMetadata(step, checkValidation, stageJson) {
17570
17588
  * @param {array} callbackMetadataArray - The array returned from buildCallbackMetadata
17571
17589
  * @returns {object}
17572
17590
  */
17573
- function buildStepMetadata(callbackMetadataArray, stageJson) {
17591
+ function buildStepMetadata(callbackMetadataArray, stageJson, stageName) {
17574
17592
  const numOfUserInputCbs = callbackMetadataArray.filter((cb) => !!cb.derived.isUserInputRequired).length;
17575
17593
  const userInputOptional = isUserInputOptional(callbackMetadataArray, numOfUserInputCbs);
17576
17594
  let stageMetadata;
@@ -17598,6 +17616,12 @@ function buildStepMetadata(callbackMetadataArray, stageJson) {
17598
17616
  ...stageMetadata,
17599
17617
  },
17600
17618
  }),
17619
+ // stageName and stateMetadata are mutually exclusive
17620
+ ...(stageName && {
17621
+ platform: {
17622
+ stageName,
17623
+ }
17624
+ }),
17601
17625
  };
17602
17626
  }
17603
17627
 
@@ -17647,7 +17671,7 @@ function initializeStack(initOptions) {
17647
17671
  return stack;
17648
17672
  }
17649
17673
  function initialize$5(initOptions) {
17650
- const { set, subscribe } = writable({
17674
+ const journeyStore = writable({
17651
17675
  completed: false,
17652
17676
  error: null,
17653
17677
  loading: false,
@@ -17656,7 +17680,9 @@ function initialize$5(initOptions) {
17656
17680
  successful: false,
17657
17681
  response: null,
17658
17682
  });
17683
+ const { set, subscribe } = journeyStore;
17659
17684
  const stack = initializeStack();
17685
+ let restartOptions;
17660
17686
  let stepNumber = 0;
17661
17687
  async function next(prevStep = null, nextOptions, resumeUrl) {
17662
17688
  /**
@@ -17667,6 +17693,14 @@ function initialize$5(initOptions) {
17667
17693
  ...initOptions,
17668
17694
  ...nextOptions,
17669
17695
  };
17696
+ // These options are reserved only for restarting a journey after failure
17697
+ if (initOptions || nextOptions) {
17698
+ restartOptions = {
17699
+ // Prioritize next options over initialize options
17700
+ ...initOptions,
17701
+ ...nextOptions,
17702
+ };
17703
+ }
17670
17704
  /**
17671
17705
  * Save previous step information just in case we have a total
17672
17706
  * form failure due to 400 response from ForgeRock.
@@ -17681,7 +17715,7 @@ function initialize$5(initOptions) {
17681
17715
  completed: false,
17682
17716
  error: null,
17683
17717
  loading: true,
17684
- metadata: null,
17718
+ metadata: get_store_value(journeyStore).metadata,
17685
17719
  step: prevStep,
17686
17720
  successful: false,
17687
17721
  response: null,
@@ -17719,6 +17753,7 @@ function initialize$5(initOptions) {
17719
17753
  if (nextStep.type === StepType$1.Step) {
17720
17754
  const stageAttribute = nextStep.getStage();
17721
17755
  let stageJson = null;
17756
+ let stageName = null;
17722
17757
  // Check if stage attribute is serialized JSON
17723
17758
  if (stageAttribute && stageAttribute.includes('{')) {
17724
17759
  try {
@@ -17728,8 +17763,11 @@ function initialize$5(initOptions) {
17728
17763
  console.warn('Stage attribute value was not parsable');
17729
17764
  }
17730
17765
  }
17766
+ else if (stageAttribute) {
17767
+ stageName = stageAttribute;
17768
+ }
17731
17769
  const callbackMetadata = buildCallbackMetadata(nextStep, initCheckValidation(), stageJson);
17732
- const stepMetadata = buildStepMetadata(callbackMetadata, stageJson);
17770
+ const stepMetadata = buildStepMetadata(callbackMetadata, stageJson, stageName);
17733
17771
  // Iterate on a successful progression
17734
17772
  stepNumber = stepNumber + 1;
17735
17773
  set({
@@ -17772,7 +17810,7 @@ function initialize$5(initOptions) {
17772
17810
  /**
17773
17811
  * Restart tree to get fresh step
17774
17812
  */
17775
- restartedStep = await FRAuth$1.next(undefined, options);
17813
+ restartedStep = await FRAuth$1.next(undefined, restartOptions);
17776
17814
  }
17777
17815
  catch (err) {
17778
17816
  console.error(`Restart failed step request | ${err}`);
@@ -17828,6 +17866,7 @@ function initialize$5(initOptions) {
17828
17866
  if (restartedStep.type === StepType$1.Step) {
17829
17867
  const stageAttribute = restartedStep.getStage();
17830
17868
  let stageJson = null;
17869
+ let stageName = null;
17831
17870
  // Check if stage attribute is serialized JSON
17832
17871
  if (stageAttribute && stageAttribute.includes('{')) {
17833
17872
  try {
@@ -17837,8 +17876,11 @@ function initialize$5(initOptions) {
17837
17876
  console.warn('Stage attribute value was not parsable');
17838
17877
  }
17839
17878
  }
17879
+ else if (stageAttribute) {
17880
+ stageName = stageAttribute;
17881
+ }
17840
17882
  const callbackMetadata = buildCallbackMetadata(restartedStep, initCheckValidation(), stageJson);
17841
- const stepMetadata = buildStepMetadata(callbackMetadata, stageJson);
17883
+ const stepMetadata = buildStepMetadata(callbackMetadata, stageJson, stageName);
17842
17884
  set({
17843
17885
  completed: false,
17844
17886
  error: {
@@ -17929,7 +17971,7 @@ let stack;
17929
17971
 
17930
17972
  /* src/lib/components/primitives/form/form.svelte generated by Svelte v3.55.1 */
17931
17973
 
17932
- function create_fragment$M(ctx) {
17974
+ function create_fragment$N(ctx) {
17933
17975
  let form;
17934
17976
  let form_class_value;
17935
17977
  let current;
@@ -18016,7 +18058,7 @@ function create_fragment$M(ctx) {
18016
18058
  };
18017
18059
  }
18018
18060
 
18019
- function instance$N($$self, $$props, $$invalidate) {
18061
+ function instance$O($$self, $$props, $$invalidate) {
18020
18062
  let { $$slots: slots = {}, $$scope } = $$props;
18021
18063
  let { ariaDescribedBy } = $$props;
18022
18064
  let { formEl = null } = $$props;
@@ -18144,7 +18186,7 @@ class Form extends SvelteComponent {
18144
18186
  constructor(options) {
18145
18187
  super();
18146
18188
 
18147
- init(this, options, instance$N, create_fragment$M, safe_not_equal, {
18189
+ init(this, options, instance$O, create_fragment$N, safe_not_equal, {
18148
18190
  ariaDescribedBy: 1,
18149
18191
  formEl: 0,
18150
18192
  id: 2,
@@ -18209,7 +18251,7 @@ function create_else_block$6(ctx) {
18209
18251
  }
18210
18252
 
18211
18253
  // (10:0) {#if html}
18212
- function create_if_block$h(ctx) {
18254
+ function create_if_block$i(ctx) {
18213
18255
  let current;
18214
18256
  const default_slot_template = /*#slots*/ ctx[4].default;
18215
18257
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[3], null);
@@ -18306,12 +18348,12 @@ function fallback_block(ctx) {
18306
18348
  };
18307
18349
  }
18308
18350
 
18309
- function create_fragment$L(ctx) {
18351
+ function create_fragment$M(ctx) {
18310
18352
  let current_block_type_index;
18311
18353
  let if_block;
18312
18354
  let if_block_anchor;
18313
18355
  let current;
18314
- const if_block_creators = [create_if_block$h, create_else_block$6];
18356
+ const if_block_creators = [create_if_block$i, create_else_block$6];
18315
18357
  const if_blocks = [];
18316
18358
 
18317
18359
  function select_block_type(ctx, dirty) {
@@ -18375,7 +18417,7 @@ function create_fragment$L(ctx) {
18375
18417
  };
18376
18418
  }
18377
18419
 
18378
- function instance$M($$self, $$props, $$invalidate) {
18420
+ function instance$N($$self, $$props, $$invalidate) {
18379
18421
  let { $$slots: slots = {}, $$scope } = $$props;
18380
18422
  let { html = false } = $$props;
18381
18423
  let { string } = $$props;
@@ -18401,13 +18443,13 @@ function instance$M($$self, $$props, $$invalidate) {
18401
18443
  class Server_strings extends SvelteComponent {
18402
18444
  constructor(options) {
18403
18445
  super();
18404
- init(this, options, instance$M, create_fragment$L, safe_not_equal, { html: 0, string: 2 });
18446
+ init(this, options, instance$N, create_fragment$M, safe_not_equal, { html: 0, string: 2 });
18405
18447
  }
18406
18448
  }
18407
18449
 
18408
18450
  /* src/lib/components/icons/shield-icon.svelte generated by Svelte v3.55.1 */
18409
18451
 
18410
- function create_fragment$K(ctx) {
18452
+ function create_fragment$L(ctx) {
18411
18453
  let svg;
18412
18454
  let path;
18413
18455
  let title;
@@ -18483,7 +18525,7 @@ function create_fragment$K(ctx) {
18483
18525
  };
18484
18526
  }
18485
18527
 
18486
- function instance$L($$self, $$props, $$invalidate) {
18528
+ function instance$M($$self, $$props, $$invalidate) {
18487
18529
  let { $$slots: slots = {}, $$scope } = $$props;
18488
18530
  let { classes = '' } = $$props;
18489
18531
  let { size = '24px' } = $$props;
@@ -18500,7 +18542,7 @@ function instance$L($$self, $$props, $$invalidate) {
18500
18542
  class Shield_icon extends SvelteComponent {
18501
18543
  constructor(options) {
18502
18544
  super();
18503
- init(this, options, instance$L, create_fragment$K, safe_not_equal, { classes: 0, size: 1 });
18545
+ init(this, options, instance$M, create_fragment$L, safe_not_equal, { classes: 0, size: 1 });
18504
18546
  }
18505
18547
  }
18506
18548
 
@@ -18605,7 +18647,7 @@ function initialize$3(customJourneys) {
18605
18647
 
18606
18648
  /* src/lib/journey/stages/_utilities/back-to.svelte generated by Svelte v3.55.1 */
18607
18649
 
18608
- function create_if_block$g(ctx) {
18650
+ function create_if_block$h(ctx) {
18609
18651
  let p;
18610
18652
  let button;
18611
18653
  let t_value = interpolate(/*string*/ ctx[1]) + "";
@@ -18641,9 +18683,9 @@ function create_if_block$g(ctx) {
18641
18683
  };
18642
18684
  }
18643
18685
 
18644
- function create_fragment$J(ctx) {
18686
+ function create_fragment$K(ctx) {
18645
18687
  let if_block_anchor;
18646
- let if_block = /*$stack*/ ctx[2].length > 1 && create_if_block$g(ctx);
18688
+ let if_block = /*$stack*/ ctx[2].length > 1 && create_if_block$h(ctx);
18647
18689
 
18648
18690
  return {
18649
18691
  c() {
@@ -18659,7 +18701,7 @@ function create_fragment$J(ctx) {
18659
18701
  if (if_block) {
18660
18702
  if_block.p(ctx, dirty);
18661
18703
  } else {
18662
- if_block = create_if_block$g(ctx);
18704
+ if_block = create_if_block$h(ctx);
18663
18705
  if_block.c();
18664
18706
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
18665
18707
  }
@@ -18677,7 +18719,7 @@ function create_fragment$J(ctx) {
18677
18719
  };
18678
18720
  }
18679
18721
 
18680
- function instance$K($$self, $$props, $$invalidate) {
18722
+ function instance$L($$self, $$props, $$invalidate) {
18681
18723
  let $stack;
18682
18724
  let $configuredJourneys;
18683
18725
  component_subscribe($$self, configuredJourneys, $$value => $$invalidate(5, $configuredJourneys = $$value));
@@ -18718,7 +18760,7 @@ function instance$K($$self, $$props, $$invalidate) {
18718
18760
  class Back_to extends SvelteComponent {
18719
18761
  constructor(options) {
18720
18762
  super();
18721
- init(this, options, instance$K, create_fragment$J, safe_not_equal, { journey: 0 });
18763
+ init(this, options, instance$L, create_fragment$K, safe_not_equal, { journey: 0 });
18722
18764
  }
18723
18765
  }
18724
18766
 
@@ -19035,7 +19077,7 @@ function getAttributeValidationFailureText(callback) {
19035
19077
 
19036
19078
  /* src/lib/components/primitives/message/input-message.svelte generated by Svelte v3.55.1 */
19037
19079
 
19038
- function create_if_block$f(ctx) {
19080
+ function create_if_block$g(ctx) {
19039
19081
  let p;
19040
19082
  let p_class_value;
19041
19083
  let p_id_value;
@@ -19066,9 +19108,9 @@ function create_if_block$f(ctx) {
19066
19108
  };
19067
19109
  }
19068
19110
 
19069
- function create_fragment$I(ctx) {
19111
+ function create_fragment$J(ctx) {
19070
19112
  let if_block_anchor;
19071
- let if_block = /*dirtyMessage*/ ctx[1] && create_if_block$f(ctx);
19113
+ let if_block = /*dirtyMessage*/ ctx[1] && create_if_block$g(ctx);
19072
19114
 
19073
19115
  return {
19074
19116
  c() {
@@ -19084,7 +19126,7 @@ function create_fragment$I(ctx) {
19084
19126
  if (if_block) {
19085
19127
  if_block.p(ctx, dirty);
19086
19128
  } else {
19087
- if_block = create_if_block$f(ctx);
19129
+ if_block = create_if_block$g(ctx);
19088
19130
  if_block.c();
19089
19131
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
19090
19132
  }
@@ -19116,7 +19158,7 @@ function generateClassString$1(...args) {
19116
19158
  );
19117
19159
  }
19118
19160
 
19119
- function instance$J($$self, $$props, $$invalidate) {
19161
+ function instance$K($$self, $$props, $$invalidate) {
19120
19162
  let { classes = '' } = $$props;
19121
19163
  let { dirtyMessage } = $$props;
19122
19164
  let { key = undefined } = $$props;
@@ -19147,7 +19189,7 @@ class Input_message extends SvelteComponent {
19147
19189
  constructor(options) {
19148
19190
  super();
19149
19191
 
19150
- init(this, options, instance$J, create_fragment$I, safe_not_equal, {
19192
+ init(this, options, instance$K, create_fragment$J, safe_not_equal, {
19151
19193
  classes: 0,
19152
19194
  dirtyMessage: 1,
19153
19195
  key: 2,
@@ -19159,7 +19201,7 @@ class Input_message extends SvelteComponent {
19159
19201
 
19160
19202
  /* src/lib/components/primitives/label/label.svelte generated by Svelte v3.55.1 */
19161
19203
 
19162
- function create_fragment$H(ctx) {
19204
+ function create_fragment$I(ctx) {
19163
19205
  let label;
19164
19206
  let label_class_value;
19165
19207
  let current;
@@ -19222,7 +19264,7 @@ function create_fragment$H(ctx) {
19222
19264
  };
19223
19265
  }
19224
19266
 
19225
- function instance$I($$self, $$props, $$invalidate) {
19267
+ function instance$J($$self, $$props, $$invalidate) {
19226
19268
  let { $$slots: slots = {}, $$scope } = $$props;
19227
19269
  let { key } = $$props;
19228
19270
  let { classes = '' } = $$props;
@@ -19239,13 +19281,13 @@ function instance$I($$self, $$props, $$invalidate) {
19239
19281
  class Label extends SvelteComponent {
19240
19282
  constructor(options) {
19241
19283
  super();
19242
- init(this, options, instance$I, create_fragment$H, safe_not_equal, { key: 0, classes: 1 });
19284
+ init(this, options, instance$J, create_fragment$I, safe_not_equal, { key: 0, classes: 1 });
19243
19285
  }
19244
19286
  }
19245
19287
 
19246
19288
  /* src/lib/components/compositions/checkbox/animated.svelte generated by Svelte v3.55.1 */
19247
19289
 
19248
- function create_default_slot$l(ctx) {
19290
+ function create_default_slot$m(ctx) {
19249
19291
  let span;
19250
19292
  let t;
19251
19293
  let current;
@@ -19302,7 +19344,7 @@ function create_default_slot$l(ctx) {
19302
19344
  };
19303
19345
  }
19304
19346
 
19305
- function create_fragment$G(ctx) {
19347
+ function create_fragment$H(ctx) {
19306
19348
  let div1;
19307
19349
  let input;
19308
19350
  let input_data_message_value;
@@ -19319,7 +19361,7 @@ function create_fragment$G(ctx) {
19319
19361
  props: {
19320
19362
  key: /*key*/ ctx[3],
19321
19363
  classes: "tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",
19322
- $$slots: { default: [create_default_slot$l] },
19364
+ $$slots: { default: [create_default_slot$m] },
19323
19365
  $$scope: { ctx }
19324
19366
  }
19325
19367
  });
@@ -19426,7 +19468,7 @@ function create_fragment$G(ctx) {
19426
19468
  };
19427
19469
  }
19428
19470
 
19429
- function instance$H($$self, $$props, $$invalidate) {
19471
+ function instance$I($$self, $$props, $$invalidate) {
19430
19472
  let { $$slots: slots = {}, $$scope } = $$props;
19431
19473
  let { checkValidity = null } = $$props;
19432
19474
  let { message = '' } = $$props;
@@ -19495,7 +19537,7 @@ let Animated$1 = class Animated extends SvelteComponent {
19495
19537
  constructor(options) {
19496
19538
  super();
19497
19539
 
19498
- init(this, options, instance$H, create_fragment$G, safe_not_equal, {
19540
+ init(this, options, instance$I, create_fragment$H, safe_not_equal, {
19499
19541
  checkValidity: 8,
19500
19542
  message: 1,
19501
19543
  isFirstInvalidInput: 9,
@@ -19511,7 +19553,7 @@ let Animated$1 = class Animated extends SvelteComponent {
19511
19553
 
19512
19554
  /* src/lib/components/primitives/checkbox/checkbox.svelte generated by Svelte v3.55.1 */
19513
19555
 
19514
- function create_default_slot$k(ctx) {
19556
+ function create_default_slot$l(ctx) {
19515
19557
  let current;
19516
19558
  const default_slot_template = /*#slots*/ ctx[7].default;
19517
19559
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[9], null);
@@ -19558,7 +19600,7 @@ function create_default_slot$k(ctx) {
19558
19600
  };
19559
19601
  }
19560
19602
 
19561
- function create_fragment$F(ctx) {
19603
+ function create_fragment$G(ctx) {
19562
19604
  let input;
19563
19605
  let input_aria_describedby_value;
19564
19606
  let t;
@@ -19570,7 +19612,7 @@ function create_fragment$F(ctx) {
19570
19612
  label = new Label({
19571
19613
  props: {
19572
19614
  key: /*key*/ ctx[2],
19573
- $$slots: { default: [create_default_slot$k] },
19615
+ $$slots: { default: [create_default_slot$l] },
19574
19616
  $$scope: { ctx }
19575
19617
  }
19576
19618
  });
@@ -19655,7 +19697,7 @@ function create_fragment$F(ctx) {
19655
19697
  };
19656
19698
  }
19657
19699
 
19658
- function instance$G($$self, $$props, $$invalidate) {
19700
+ function instance$H($$self, $$props, $$invalidate) {
19659
19701
  let { $$slots: slots = {}, $$scope } = $$props;
19660
19702
  let { isFirstInvalidInput } = $$props;
19661
19703
  let { isRequired = false } = $$props;
@@ -19706,7 +19748,7 @@ class Checkbox extends SvelteComponent {
19706
19748
  constructor(options) {
19707
19749
  super();
19708
19750
 
19709
- init(this, options, instance$G, create_fragment$F, safe_not_equal, {
19751
+ init(this, options, instance$H, create_fragment$G, safe_not_equal, {
19710
19752
  isFirstInvalidInput: 6,
19711
19753
  isRequired: 0,
19712
19754
  isInvalid: 1,
@@ -19719,7 +19761,7 @@ class Checkbox extends SvelteComponent {
19719
19761
 
19720
19762
  /* src/lib/components/compositions/checkbox/standard.svelte generated by Svelte v3.55.1 */
19721
19763
 
19722
- function create_default_slot$j(ctx) {
19764
+ function create_default_slot$k(ctx) {
19723
19765
  let current;
19724
19766
  const default_slot_template = /*#slots*/ ctx[10].default;
19725
19767
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[11], null);
@@ -19766,7 +19808,7 @@ function create_default_slot$j(ctx) {
19766
19808
  };
19767
19809
  }
19768
19810
 
19769
- function create_fragment$E(ctx) {
19811
+ function create_fragment$F(ctx) {
19770
19812
  let div;
19771
19813
  let checkbox;
19772
19814
  let t;
@@ -19782,7 +19824,7 @@ function create_fragment$E(ctx) {
19782
19824
  key: /*key*/ ctx[4],
19783
19825
  onChange: /*onChangeWrapper*/ ctx[7],
19784
19826
  value: /*value*/ ctx[6],
19785
- $$slots: { default: [create_default_slot$j] },
19827
+ $$slots: { default: [create_default_slot$k] },
19786
19828
  $$scope: { ctx }
19787
19829
  }
19788
19830
  });
@@ -19853,7 +19895,7 @@ function create_fragment$E(ctx) {
19853
19895
  };
19854
19896
  }
19855
19897
 
19856
- function instance$F($$self, $$props, $$invalidate) {
19898
+ function instance$G($$self, $$props, $$invalidate) {
19857
19899
  let { $$slots: slots = {}, $$scope } = $$props;
19858
19900
  let { checkValidity = null } = $$props;
19859
19901
  let { message = '' } = $$props;
@@ -19906,7 +19948,7 @@ class Standard extends SvelteComponent {
19906
19948
  constructor(options) {
19907
19949
  super();
19908
19950
 
19909
- init(this, options, instance$F, create_fragment$E, safe_not_equal, {
19951
+ init(this, options, instance$G, create_fragment$F, safe_not_equal, {
19910
19952
  checkValidity: 8,
19911
19953
  message: 1,
19912
19954
  isFirstInvalidInput: 2,
@@ -19922,7 +19964,7 @@ class Standard extends SvelteComponent {
19922
19964
 
19923
19965
  /* src/lib/journey/callbacks/boolean/boolean.svelte generated by Svelte v3.55.1 */
19924
19966
 
19925
- function create_default_slot$i(ctx) {
19967
+ function create_default_slot$j(ctx) {
19926
19968
  let t_value = interpolate(textToKey(/*outputName*/ ctx[2]), null, /*prompt*/ ctx[4]) + "";
19927
19969
  let t;
19928
19970
 
@@ -19942,7 +19984,7 @@ function create_default_slot$i(ctx) {
19942
19984
  };
19943
19985
  }
19944
19986
 
19945
- function create_fragment$D(ctx) {
19987
+ function create_fragment$E(ctx) {
19946
19988
  let checkbox;
19947
19989
  let current;
19948
19990
 
@@ -19954,7 +19996,7 @@ function create_fragment$D(ctx) {
19954
19996
  message: /*validationFailure*/ ctx[5],
19955
19997
  onChange: /*setValue*/ ctx[7],
19956
19998
  value: /*previousValue*/ ctx[3],
19957
- $$slots: { default: [create_default_slot$i] },
19999
+ $$slots: { default: [create_default_slot$j] },
19958
20000
  $$scope: { ctx }
19959
20001
  }
19960
20002
  });
@@ -19996,7 +20038,7 @@ function create_fragment$D(ctx) {
19996
20038
  };
19997
20039
  }
19998
20040
 
19999
- function instance$E($$self, $$props, $$invalidate) {
20041
+ function instance$F($$self, $$props, $$invalidate) {
20000
20042
  let { callback } = $$props;
20001
20043
  let { callbackMetadata } = $$props;
20002
20044
  const stepMetadata = null;
@@ -20070,7 +20112,7 @@ let Boolean$1 = class Boolean extends SvelteComponent {
20070
20112
  constructor(options) {
20071
20113
  super();
20072
20114
 
20073
- init(this, options, instance$E, create_fragment$D, safe_not_equal, {
20115
+ init(this, options, instance$F, create_fragment$E, safe_not_equal, {
20074
20116
  callback: 8,
20075
20117
  callbackMetadata: 0,
20076
20118
  stepMetadata: 9,
@@ -20090,14 +20132,14 @@ let Boolean$1 = class Boolean extends SvelteComponent {
20090
20132
 
20091
20133
  /* src/lib/components/compositions/radio/animated.svelte generated by Svelte v3.55.1 */
20092
20134
 
20093
- function get_each_context$7(ctx, list, i) {
20135
+ function get_each_context$8(ctx, list, i) {
20094
20136
  const child_ctx = ctx.slice();
20095
20137
  child_ctx[13] = list[i];
20096
20138
  return child_ctx;
20097
20139
  }
20098
20140
 
20099
20141
  // (41:8) <Label key={`${key}-${option.value}`} classes="tw_input-spacing tw_grid tw_grid-cols-[2.5em_1fr] tw_relative" >
20100
- function create_default_slot$h(ctx) {
20142
+ function create_default_slot$i(ctx) {
20101
20143
  let span;
20102
20144
  let t0;
20103
20145
  let t1_value = /*option*/ ctx[13].text + "";
@@ -20127,7 +20169,7 @@ function create_default_slot$h(ctx) {
20127
20169
  }
20128
20170
 
20129
20171
  // (27:4) {#each options as option}
20130
- function create_each_block$7(ctx) {
20172
+ function create_each_block$8(ctx) {
20131
20173
  let div;
20132
20174
  let input;
20133
20175
  let input_checked_value;
@@ -20144,7 +20186,7 @@ function create_each_block$7(ctx) {
20144
20186
  props: {
20145
20187
  key: `${/*key*/ ctx[5]}-${/*option*/ ctx[13].value}`,
20146
20188
  classes: "tw_input-spacing tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",
20147
- $$slots: { default: [create_default_slot$h] },
20189
+ $$slots: { default: [create_default_slot$i] },
20148
20190
  $$scope: { ctx }
20149
20191
  }
20150
20192
  });
@@ -20238,7 +20280,7 @@ function create_each_block$7(ctx) {
20238
20280
  };
20239
20281
  }
20240
20282
 
20241
- function create_fragment$C(ctx) {
20283
+ function create_fragment$D(ctx) {
20242
20284
  let fieldset;
20243
20285
  let legend;
20244
20286
  let t0;
@@ -20252,7 +20294,7 @@ function create_fragment$C(ctx) {
20252
20294
  let each_blocks = [];
20253
20295
 
20254
20296
  for (let i = 0; i < each_value.length; i += 1) {
20255
- each_blocks[i] = create_each_block$7(get_each_context$7(ctx, each_value, i));
20297
+ each_blocks[i] = create_each_block$8(get_each_context$8(ctx, each_value, i));
20256
20298
  }
20257
20299
 
20258
20300
  const out = i => transition_out(each_blocks[i], 1, 1, () => {
@@ -20310,13 +20352,13 @@ function create_fragment$C(ctx) {
20310
20352
  let i;
20311
20353
 
20312
20354
  for (i = 0; i < each_value.length; i += 1) {
20313
- const child_ctx = get_each_context$7(ctx, each_value, i);
20355
+ const child_ctx = get_each_context$8(ctx, each_value, i);
20314
20356
 
20315
20357
  if (each_blocks[i]) {
20316
20358
  each_blocks[i].p(child_ctx, dirty);
20317
20359
  transition_in(each_blocks[i], 1);
20318
20360
  } else {
20319
- each_blocks[i] = create_each_block$7(child_ctx);
20361
+ each_blocks[i] = create_each_block$8(child_ctx);
20320
20362
  each_blocks[i].c();
20321
20363
  transition_in(each_blocks[i], 1);
20322
20364
  each_blocks[i].m(div, t2);
@@ -20367,7 +20409,7 @@ function create_fragment$C(ctx) {
20367
20409
  };
20368
20410
  }
20369
20411
 
20370
- function instance$D($$self, $$props, $$invalidate) {
20412
+ function instance$E($$self, $$props, $$invalidate) {
20371
20413
  let { defaultOption = null } = $$props;
20372
20414
  let { message = '' } = $$props;
20373
20415
  let { groupLabel = '' } = $$props;
@@ -20429,7 +20471,7 @@ class Animated extends SvelteComponent {
20429
20471
  constructor(options) {
20430
20472
  super();
20431
20473
 
20432
- init(this, options, instance$D, create_fragment$C, safe_not_equal, {
20474
+ init(this, options, instance$E, create_fragment$D, safe_not_equal, {
20433
20475
  defaultOption: 0,
20434
20476
  message: 1,
20435
20477
  groupLabel: 2,
@@ -20447,14 +20489,14 @@ class Animated extends SvelteComponent {
20447
20489
 
20448
20490
  /* src/lib/components/primitives/select/select.svelte generated by Svelte v3.55.1 */
20449
20491
 
20450
- function get_each_context$6(ctx, list, i) {
20492
+ function get_each_context$7(ctx, list, i) {
20451
20493
  const child_ctx = ctx.slice();
20452
20494
  child_ctx[15] = list[i];
20453
20495
  return child_ctx;
20454
20496
  }
20455
20497
 
20456
20498
  // (40:0) {#if labelOrder === 'first'}
20457
- function create_if_block_1$9(ctx) {
20499
+ function create_if_block_1$a(ctx) {
20458
20500
  let label_1;
20459
20501
  let current;
20460
20502
 
@@ -20462,7 +20504,7 @@ function create_if_block_1$9(ctx) {
20462
20504
  props: {
20463
20505
  key: /*key*/ ctx[4],
20464
20506
  classes: `${/*labelClasses*/ ctx[6]}`,
20465
- $$slots: { default: [create_default_slot_1$a] },
20507
+ $$slots: { default: [create_default_slot_1$b] },
20466
20508
  $$scope: { ctx }
20467
20509
  }
20468
20510
  });
@@ -20502,7 +20544,7 @@ function create_if_block_1$9(ctx) {
20502
20544
  }
20503
20545
 
20504
20546
  // (41:2) <Label {key} classes={`${labelClasses}`}>
20505
- function create_default_slot_1$a(ctx) {
20547
+ function create_default_slot_1$b(ctx) {
20506
20548
  let t;
20507
20549
 
20508
20550
  return {
@@ -20522,7 +20564,7 @@ function create_default_slot_1$a(ctx) {
20522
20564
  }
20523
20565
 
20524
20566
  // (55:2) {#each options as option}
20525
- function create_each_block$6(ctx) {
20567
+ function create_each_block$7(ctx) {
20526
20568
  let option;
20527
20569
  let t0_value = /*option*/ ctx[15].text + "";
20528
20570
  let t0;
@@ -20563,7 +20605,7 @@ function create_each_block$6(ctx) {
20563
20605
  }
20564
20606
 
20565
20607
  // (62:0) {#if labelOrder === 'last'}
20566
- function create_if_block$e(ctx) {
20608
+ function create_if_block$f(ctx) {
20567
20609
  let label_1;
20568
20610
  let current;
20569
20611
 
@@ -20573,7 +20615,7 @@ function create_if_block$e(ctx) {
20573
20615
  classes: `${/*shouldDisplayOption*/ ctx[10]
20574
20616
  ? /*labelClasses*/ ctx[6]
20575
20617
  : 'tw_sr-only'}`,
20576
- $$slots: { default: [create_default_slot$g] },
20618
+ $$slots: { default: [create_default_slot$h] },
20577
20619
  $$scope: { ctx }
20578
20620
  }
20579
20621
  });
@@ -20616,7 +20658,7 @@ function create_if_block$e(ctx) {
20616
20658
  }
20617
20659
 
20618
20660
  // (63:2) <Label {key} classes={`${shouldDisplayOption ? labelClasses : 'tw_sr-only'}`}>
20619
- function create_default_slot$g(ctx) {
20661
+ function create_default_slot$h(ctx) {
20620
20662
  let t;
20621
20663
 
20622
20664
  return {
@@ -20635,7 +20677,7 @@ function create_default_slot$g(ctx) {
20635
20677
  };
20636
20678
  }
20637
20679
 
20638
- function create_fragment$B(ctx) {
20680
+ function create_fragment$C(ctx) {
20639
20681
  let t0;
20640
20682
  let select;
20641
20683
  let select_aria_describedby_value;
@@ -20645,15 +20687,15 @@ function create_fragment$B(ctx) {
20645
20687
  let current;
20646
20688
  let mounted;
20647
20689
  let dispose;
20648
- let if_block0 = /*labelOrder*/ ctx[7] === 'first' && create_if_block_1$9(ctx);
20690
+ let if_block0 = /*labelOrder*/ ctx[7] === 'first' && create_if_block_1$a(ctx);
20649
20691
  let each_value = /*options*/ ctx[8];
20650
20692
  let each_blocks = [];
20651
20693
 
20652
20694
  for (let i = 0; i < each_value.length; i += 1) {
20653
- each_blocks[i] = create_each_block$6(get_each_context$6(ctx, each_value, i));
20695
+ each_blocks[i] = create_each_block$7(get_each_context$7(ctx, each_value, i));
20654
20696
  }
20655
20697
 
20656
- let if_block1 = /*labelOrder*/ ctx[7] === 'last' && create_if_block$e(ctx);
20698
+ let if_block1 = /*labelOrder*/ ctx[7] === 'last' && create_if_block$f(ctx);
20657
20699
 
20658
20700
  return {
20659
20701
  c() {
@@ -20707,7 +20749,7 @@ function create_fragment$B(ctx) {
20707
20749
  transition_in(if_block0, 1);
20708
20750
  }
20709
20751
  } else {
20710
- if_block0 = create_if_block_1$9(ctx);
20752
+ if_block0 = create_if_block_1$a(ctx);
20711
20753
  if_block0.c();
20712
20754
  transition_in(if_block0, 1);
20713
20755
  if_block0.m(t0.parentNode, t0);
@@ -20727,12 +20769,12 @@ function create_fragment$B(ctx) {
20727
20769
  let i;
20728
20770
 
20729
20771
  for (i = 0; i < each_value.length; i += 1) {
20730
- const child_ctx = get_each_context$6(ctx, each_value, i);
20772
+ const child_ctx = get_each_context$7(ctx, each_value, i);
20731
20773
 
20732
20774
  if (each_blocks[i]) {
20733
20775
  each_blocks[i].p(child_ctx, dirty);
20734
20776
  } else {
20735
- each_blocks[i] = create_each_block$6(child_ctx);
20777
+ each_blocks[i] = create_each_block$7(child_ctx);
20736
20778
  each_blocks[i].c();
20737
20779
  each_blocks[i].m(select, null);
20738
20780
  }
@@ -20775,7 +20817,7 @@ function create_fragment$B(ctx) {
20775
20817
  transition_in(if_block1, 1);
20776
20818
  }
20777
20819
  } else {
20778
- if_block1 = create_if_block$e(ctx);
20820
+ if_block1 = create_if_block$f(ctx);
20779
20821
  if_block1.c();
20780
20822
  transition_in(if_block1, 1);
20781
20823
  if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
@@ -20816,7 +20858,7 @@ function create_fragment$B(ctx) {
20816
20858
  };
20817
20859
  }
20818
20860
 
20819
- function instance$C($$self, $$props, $$invalidate) {
20861
+ function instance$D($$self, $$props, $$invalidate) {
20820
20862
  let { selectClasses = '' } = $$props;
20821
20863
  let { defaultOption = null } = $$props;
20822
20864
  let { isFirstInvalidInput } = $$props;
@@ -20905,7 +20947,7 @@ class Select extends SvelteComponent {
20905
20947
  constructor(options) {
20906
20948
  super();
20907
20949
 
20908
- init(this, options, instance$C, create_fragment$B, safe_not_equal, {
20950
+ init(this, options, instance$D, create_fragment$C, safe_not_equal, {
20909
20951
  selectClasses: 0,
20910
20952
  defaultOption: 1,
20911
20953
  isFirstInvalidInput: 12,
@@ -20923,7 +20965,7 @@ class Select extends SvelteComponent {
20923
20965
 
20924
20966
  /* src/lib/components/compositions/select-floating/floating-label.svelte generated by Svelte v3.55.1 */
20925
20967
 
20926
- function create_fragment$A(ctx) {
20968
+ function create_fragment$B(ctx) {
20927
20969
  let div;
20928
20970
  let select;
20929
20971
  let t;
@@ -21006,7 +21048,7 @@ function create_fragment$A(ctx) {
21006
21048
  };
21007
21049
  }
21008
21050
 
21009
- function instance$B($$self, $$props, $$invalidate) {
21051
+ function instance$C($$self, $$props, $$invalidate) {
21010
21052
  let { checkValidity = null } = $$props;
21011
21053
  let { defaultOption = null } = $$props;
21012
21054
  let { message = '' } = $$props;
@@ -21061,7 +21103,7 @@ let Floating_label$1 = class Floating_label extends SvelteComponent {
21061
21103
  constructor(options) {
21062
21104
  super();
21063
21105
 
21064
- init(this, options, instance$B, create_fragment$A, safe_not_equal, {
21106
+ init(this, options, instance$C, create_fragment$B, safe_not_equal, {
21065
21107
  checkValidity: 10,
21066
21108
  defaultOption: 1,
21067
21109
  message: 2,
@@ -21128,7 +21170,7 @@ function create_else_block$5(ctx) {
21128
21170
  }
21129
21171
 
21130
21172
  // (62:0) {#if callbackMetadata?.platform?.displayType === 'radio'}
21131
- function create_if_block$d(ctx) {
21173
+ function create_if_block$e(ctx) {
21132
21174
  let radio;
21133
21175
  let current;
21134
21176
 
@@ -21178,12 +21220,12 @@ function create_if_block$d(ctx) {
21178
21220
  };
21179
21221
  }
21180
21222
 
21181
- function create_fragment$z(ctx) {
21223
+ function create_fragment$A(ctx) {
21182
21224
  let current_block_type_index;
21183
21225
  let if_block;
21184
21226
  let if_block_anchor;
21185
21227
  let current;
21186
- const if_block_creators = [create_if_block$d, create_else_block$5];
21228
+ const if_block_creators = [create_if_block$e, create_else_block$5];
21187
21229
  const if_blocks = [];
21188
21230
 
21189
21231
  function select_block_type(ctx, dirty) {
@@ -21247,7 +21289,7 @@ function create_fragment$z(ctx) {
21247
21289
  };
21248
21290
  }
21249
21291
 
21250
- function instance$A($$self, $$props, $$invalidate) {
21292
+ function instance$B($$self, $$props, $$invalidate) {
21251
21293
  const selfSubmitFunction = null;
21252
21294
  const stepMetadata = null;
21253
21295
  const style = {};
@@ -21337,7 +21379,7 @@ class Choice extends SvelteComponent {
21337
21379
  constructor(options) {
21338
21380
  super();
21339
21381
 
21340
- init(this, options, instance$A, create_fragment$z, safe_not_equal, {
21382
+ init(this, options, instance$B, create_fragment$A, safe_not_equal, {
21341
21383
  selfSubmitFunction: 7,
21342
21384
  stepMetadata: 8,
21343
21385
  style: 9,
@@ -21361,7 +21403,7 @@ class Choice extends SvelteComponent {
21361
21403
 
21362
21404
  /* src/lib/components/primitives/grid/grid.svelte generated by Svelte v3.55.1 */
21363
21405
 
21364
- function create_fragment$y(ctx) {
21406
+ function create_fragment$z(ctx) {
21365
21407
  let div;
21366
21408
  let div_class_value;
21367
21409
  let current;
@@ -21437,7 +21479,7 @@ function generateClassString(...args) {
21437
21479
  );
21438
21480
  }
21439
21481
 
21440
- function instance$z($$self, $$props, $$invalidate) {
21482
+ function instance$A($$self, $$props, $$invalidate) {
21441
21483
  let { $$slots: slots = {}, $$scope } = $$props;
21442
21484
  let { num = 2 } = $$props;
21443
21485
 
@@ -21452,27 +21494,97 @@ function instance$z($$self, $$props, $$invalidate) {
21452
21494
  class Grid extends SvelteComponent {
21453
21495
  constructor(options) {
21454
21496
  super();
21455
- init(this, options, instance$z, create_fragment$y, safe_not_equal, { num: 0 });
21497
+ init(this, options, instance$A, create_fragment$z, safe_not_equal, { num: 0 });
21456
21498
  }
21457
21499
  }
21458
21500
 
21459
21501
  /* src/lib/journey/callbacks/confirmation/confirmation.svelte generated by Svelte v3.55.1 */
21460
21502
 
21461
- function get_each_context$5(ctx, list, i) {
21503
+ function get_each_context$6(ctx, list, i) {
21462
21504
  const child_ctx = ctx.slice();
21463
21505
  child_ctx[15] = list[i];
21464
21506
  return child_ctx;
21465
21507
  }
21466
21508
 
21467
- // (116:0) {:else}
21509
+ // (96:0) {#if stepMetadata?.platform?.stageName !== 'OneTimePassword'}
21510
+ function create_if_block$d(ctx) {
21511
+ let current_block_type_index;
21512
+ let if_block;
21513
+ let if_block_anchor;
21514
+ let current;
21515
+ const if_block_creators = [create_if_block_1$9, create_else_block_1];
21516
+ const if_blocks = [];
21517
+
21518
+ function select_block_type(ctx, dirty) {
21519
+ if (!/*stepMetadata*/ ctx[1]?.derived.isStepSelfSubmittable) return 0;
21520
+ return 1;
21521
+ }
21522
+
21523
+ current_block_type_index = select_block_type(ctx);
21524
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
21525
+
21526
+ return {
21527
+ c() {
21528
+ if_block.c();
21529
+ if_block_anchor = empty();
21530
+ },
21531
+ m(target, anchor) {
21532
+ if_blocks[current_block_type_index].m(target, anchor);
21533
+ insert(target, if_block_anchor, anchor);
21534
+ current = true;
21535
+ },
21536
+ p(ctx, dirty) {
21537
+ let previous_block_index = current_block_type_index;
21538
+ current_block_type_index = select_block_type(ctx);
21539
+
21540
+ if (current_block_type_index === previous_block_index) {
21541
+ if_blocks[current_block_type_index].p(ctx, dirty);
21542
+ } else {
21543
+ group_outros();
21544
+
21545
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
21546
+ if_blocks[previous_block_index] = null;
21547
+ });
21548
+
21549
+ check_outros();
21550
+ if_block = if_blocks[current_block_type_index];
21551
+
21552
+ if (!if_block) {
21553
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
21554
+ if_block.c();
21555
+ } else {
21556
+ if_block.p(ctx, dirty);
21557
+ }
21558
+
21559
+ transition_in(if_block, 1);
21560
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
21561
+ }
21562
+ },
21563
+ i(local) {
21564
+ if (current) return;
21565
+ transition_in(if_block);
21566
+ current = true;
21567
+ },
21568
+ o(local) {
21569
+ transition_out(if_block);
21570
+ current = false;
21571
+ },
21572
+ d(detaching) {
21573
+ if_blocks[current_block_type_index].d(detaching);
21574
+ if (detaching) detach(if_block_anchor);
21575
+ }
21576
+ };
21577
+ }
21578
+
21579
+ // (118:2) {:else}
21468
21580
  function create_else_block_1(ctx) {
21469
21581
  let grid;
21470
21582
  let current;
21471
21583
 
21472
21584
  grid = new Grid({
21473
21585
  props: {
21474
- num: /*options*/ ctx[3].length,
21475
- $$slots: { default: [create_default_slot_1$9] },
21586
+ num: /*options*/ ctx[4].length,
21587
+ $$slots: { default: [create_default_slot_1$a] },
21476
21588
  $$scope: { ctx }
21477
21589
  }
21478
21590
  });
@@ -21487,9 +21599,9 @@ function create_else_block_1(ctx) {
21487
21599
  },
21488
21600
  p(ctx, dirty) {
21489
21601
  const grid_changes = {};
21490
- if (dirty & /*options*/ 8) grid_changes.num = /*options*/ ctx[3].length;
21602
+ if (dirty & /*options*/ 16) grid_changes.num = /*options*/ ctx[4].length;
21491
21603
 
21492
- if (dirty & /*$$scope, options, defaultChoice, buttonStyle*/ 262200) {
21604
+ if (dirty & /*$$scope, options, defaultChoice, buttonStyle*/ 262196) {
21493
21605
  grid_changes.$$scope = { dirty, ctx };
21494
21606
  }
21495
21607
 
@@ -21510,17 +21622,17 @@ function create_else_block_1(ctx) {
21510
21622
  };
21511
21623
  }
21512
21624
 
21513
- // (95:0) {#if !stepMetadata?.derived.isStepSelfSubmittable}
21514
- function create_if_block$c(ctx) {
21625
+ // (97:2) {#if !stepMetadata?.derived.isStepSelfSubmittable}
21626
+ function create_if_block_1$9(ctx) {
21515
21627
  let current_block_type_index;
21516
21628
  let if_block;
21517
21629
  let if_block_anchor;
21518
21630
  let current;
21519
- const if_block_creators = [create_if_block_1$8, create_else_block$4];
21631
+ const if_block_creators = [create_if_block_2$8, create_else_block$4];
21520
21632
  const if_blocks = [];
21521
21633
 
21522
21634
  function select_block_type_1(ctx, dirty) {
21523
- if (/*options*/ ctx[3].length > 1) return 0;
21635
+ if (/*options*/ ctx[4].length > 1) return 0;
21524
21636
  return 1;
21525
21637
  }
21526
21638
 
@@ -21580,8 +21692,8 @@ function create_if_block$c(ctx) {
21580
21692
  };
21581
21693
  }
21582
21694
 
21583
- // (119:6) <Button style={options.length > 1 && defaultChoice === Number(opt.value) ? 'primary' : buttonStyle} type="button" width="auto" onClick={() => setBtnValue(Number(opt.value))} >
21584
- function create_default_slot_2$4(ctx) {
21695
+ // (121:8) <Button style={options.length > 1 && defaultChoice === Number(opt.value) ? 'primary' : buttonStyle} type="button" width="auto" onClick={() => setBtnValue(Number(opt.value))} >
21696
+ function create_default_slot_2$5(ctx) {
21585
21697
  let t0_value = /*opt*/ ctx[15].text + "";
21586
21698
  let t0;
21587
21699
  let t1;
@@ -21596,7 +21708,7 @@ function create_default_slot_2$4(ctx) {
21596
21708
  insert(target, t1, anchor);
21597
21709
  },
21598
21710
  p(ctx, dirty) {
21599
- if (dirty & /*options*/ 8 && t0_value !== (t0_value = /*opt*/ ctx[15].text + "")) set_data(t0, t0_value);
21711
+ if (dirty & /*options*/ 16 && t0_value !== (t0_value = /*opt*/ ctx[15].text + "")) set_data(t0, t0_value);
21600
21712
  },
21601
21713
  d(detaching) {
21602
21714
  if (detaching) detach(t0);
@@ -21605,8 +21717,8 @@ function create_default_slot_2$4(ctx) {
21605
21717
  };
21606
21718
  }
21607
21719
 
21608
- // (118:4) {#each options as opt}
21609
- function create_each_block$5(ctx) {
21720
+ // (120:6) {#each options as opt}
21721
+ function create_each_block$6(ctx) {
21610
21722
  let button;
21611
21723
  let current;
21612
21724
 
@@ -21616,13 +21728,13 @@ function create_each_block$5(ctx) {
21616
21728
 
21617
21729
  button = new Button({
21618
21730
  props: {
21619
- style: /*options*/ ctx[3].length > 1 && /*defaultChoice*/ ctx[5] === Number(/*opt*/ ctx[15].value)
21731
+ style: /*options*/ ctx[4].length > 1 && /*defaultChoice*/ ctx[2] === Number(/*opt*/ ctx[15].value)
21620
21732
  ? 'primary'
21621
- : /*buttonStyle*/ ctx[4],
21733
+ : /*buttonStyle*/ ctx[5],
21622
21734
  type: "button",
21623
21735
  width: "auto",
21624
21736
  onClick: func,
21625
- $$slots: { default: [create_default_slot_2$4] },
21737
+ $$slots: { default: [create_default_slot_2$5] },
21626
21738
  $$scope: { ctx }
21627
21739
  }
21628
21740
  });
@@ -21639,13 +21751,13 @@ function create_each_block$5(ctx) {
21639
21751
  ctx = new_ctx;
21640
21752
  const button_changes = {};
21641
21753
 
21642
- if (dirty & /*options, defaultChoice, buttonStyle*/ 56) button_changes.style = /*options*/ ctx[3].length > 1 && /*defaultChoice*/ ctx[5] === Number(/*opt*/ ctx[15].value)
21754
+ if (dirty & /*options, defaultChoice, buttonStyle*/ 52) button_changes.style = /*options*/ ctx[4].length > 1 && /*defaultChoice*/ ctx[2] === Number(/*opt*/ ctx[15].value)
21643
21755
  ? 'primary'
21644
- : /*buttonStyle*/ ctx[4];
21756
+ : /*buttonStyle*/ ctx[5];
21645
21757
 
21646
- if (dirty & /*options*/ 8) button_changes.onClick = func;
21758
+ if (dirty & /*options*/ 16) button_changes.onClick = func;
21647
21759
 
21648
- if (dirty & /*$$scope, options*/ 262152) {
21760
+ if (dirty & /*$$scope, options*/ 262160) {
21649
21761
  button_changes.$$scope = { dirty, ctx };
21650
21762
  }
21651
21763
 
@@ -21666,15 +21778,15 @@ function create_each_block$5(ctx) {
21666
21778
  };
21667
21779
  }
21668
21780
 
21669
- // (117:2) <Grid num={options.length}>
21670
- function create_default_slot_1$9(ctx) {
21781
+ // (119:4) <Grid num={options.length}>
21782
+ function create_default_slot_1$a(ctx) {
21671
21783
  let each_1_anchor;
21672
21784
  let current;
21673
- let each_value = /*options*/ ctx[3];
21785
+ let each_value = /*options*/ ctx[4];
21674
21786
  let each_blocks = [];
21675
21787
 
21676
21788
  for (let i = 0; i < each_value.length; i += 1) {
21677
- each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
21789
+ each_blocks[i] = create_each_block$6(get_each_context$6(ctx, each_value, i));
21678
21790
  }
21679
21791
 
21680
21792
  const out = i => transition_out(each_blocks[i], 1, 1, () => {
@@ -21698,18 +21810,18 @@ function create_default_slot_1$9(ctx) {
21698
21810
  current = true;
21699
21811
  },
21700
21812
  p(ctx, dirty) {
21701
- if (dirty & /*options, defaultChoice, Number, buttonStyle, setBtnValue*/ 312) {
21702
- each_value = /*options*/ ctx[3];
21813
+ if (dirty & /*options, defaultChoice, Number, buttonStyle, setBtnValue*/ 308) {
21814
+ each_value = /*options*/ ctx[4];
21703
21815
  let i;
21704
21816
 
21705
21817
  for (i = 0; i < each_value.length; i += 1) {
21706
- const child_ctx = get_each_context$5(ctx, each_value, i);
21818
+ const child_ctx = get_each_context$6(ctx, each_value, i);
21707
21819
 
21708
21820
  if (each_blocks[i]) {
21709
21821
  each_blocks[i].p(child_ctx, dirty);
21710
21822
  transition_in(each_blocks[i], 1);
21711
21823
  } else {
21712
- each_blocks[i] = create_each_block$5(child_ctx);
21824
+ each_blocks[i] = create_each_block$6(child_ctx);
21713
21825
  each_blocks[i].c();
21714
21826
  transition_in(each_blocks[i], 1);
21715
21827
  each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
@@ -21750,7 +21862,7 @@ function create_default_slot_1$9(ctx) {
21750
21862
  };
21751
21863
  }
21752
21864
 
21753
- // (105:2) {:else}
21865
+ // (107:4) {:else}
21754
21866
  function create_else_block$4(ctx) {
21755
21867
  let checkbox;
21756
21868
  let current;
@@ -21762,7 +21874,7 @@ function create_else_block$4(ctx) {
21762
21874
  key: /*inputName*/ ctx[6],
21763
21875
  onChange: /*setCheckboxValue*/ ctx[10],
21764
21876
  value: false,
21765
- $$slots: { default: [create_default_slot$f] },
21877
+ $$slots: { default: [create_default_slot$g] },
21766
21878
  $$scope: { ctx }
21767
21879
  }
21768
21880
  });
@@ -21780,7 +21892,7 @@ function create_else_block$4(ctx) {
21780
21892
  if (dirty & /*callbackMetadata*/ 1) checkbox_changes.isFirstInvalidInput = /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false;
21781
21893
  if (dirty & /*inputName*/ 64) checkbox_changes.key = /*inputName*/ ctx[6];
21782
21894
 
21783
- if (dirty & /*$$scope, options*/ 262152) {
21895
+ if (dirty & /*$$scope, options*/ 262160) {
21784
21896
  checkbox_changes.$$scope = { dirty, ctx };
21785
21897
  }
21786
21898
 
@@ -21801,8 +21913,8 @@ function create_else_block$4(ctx) {
21801
21913
  };
21802
21914
  }
21803
21915
 
21804
- // (96:2) {#if options.length > 1}
21805
- function create_if_block_1$8(ctx) {
21916
+ // (98:4) {#if options.length > 1}
21917
+ function create_if_block_2$8(ctx) {
21806
21918
  let select;
21807
21919
  let current;
21808
21920
 
@@ -21811,9 +21923,9 @@ function create_if_block_1$8(ctx) {
21811
21923
  isFirstInvalidInput: /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false,
21812
21924
  isRequired: false,
21813
21925
  key: /*inputName*/ ctx[6],
21814
- label: /*label*/ ctx[2],
21926
+ label: /*label*/ ctx[3],
21815
21927
  onChange: /*setOptionValue*/ ctx[9],
21816
- options: /*options*/ ctx[3]
21928
+ options: /*options*/ ctx[4]
21817
21929
  }
21818
21930
  });
21819
21931
 
@@ -21829,8 +21941,8 @@ function create_if_block_1$8(ctx) {
21829
21941
  const select_changes = {};
21830
21942
  if (dirty & /*callbackMetadata*/ 1) select_changes.isFirstInvalidInput = /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false;
21831
21943
  if (dirty & /*inputName*/ 64) select_changes.key = /*inputName*/ ctx[6];
21832
- if (dirty & /*label*/ 4) select_changes.label = /*label*/ ctx[2];
21833
- if (dirty & /*options*/ 8) select_changes.options = /*options*/ ctx[3];
21944
+ if (dirty & /*label*/ 8) select_changes.label = /*label*/ ctx[3];
21945
+ if (dirty & /*options*/ 16) select_changes.options = /*options*/ ctx[4];
21834
21946
  select.$set(select_changes);
21835
21947
  },
21836
21948
  i(local) {
@@ -21848,9 +21960,9 @@ function create_if_block_1$8(ctx) {
21848
21960
  };
21849
21961
  }
21850
21962
 
21851
- // (106:4) <Checkbox isFirstInvalidInput={callbackMetadata?.derived.isFirstInvalidInput || false} isInvalid={false} key={inputName} onChange={setCheckboxValue} value={false} >
21852
- function create_default_slot$f(ctx) {
21853
- let t_value = /*options*/ ctx[3][0].text + "";
21963
+ // (108:6) <Checkbox isFirstInvalidInput={callbackMetadata?.derived.isFirstInvalidInput || false} isInvalid={false} key={inputName} onChange={setCheckboxValue} value={false} >
21964
+ function create_default_slot$g(ctx) {
21965
+ let t_value = /*options*/ ctx[4][0].text + "";
21854
21966
  let t;
21855
21967
 
21856
21968
  return {
@@ -21861,7 +21973,7 @@ function create_default_slot$f(ctx) {
21861
21973
  insert(target, t, anchor);
21862
21974
  },
21863
21975
  p(ctx, dirty) {
21864
- if (dirty & /*options*/ 8 && t_value !== (t_value = /*options*/ ctx[3][0].text + "")) set_data(t, t_value);
21976
+ if (dirty & /*options*/ 16 && t_value !== (t_value = /*options*/ ctx[4][0].text + "")) set_data(t, t_value);
21865
21977
  },
21866
21978
  d(detaching) {
21867
21979
  if (detaching) detach(t);
@@ -21869,57 +21981,43 @@ function create_default_slot$f(ctx) {
21869
21981
  };
21870
21982
  }
21871
21983
 
21872
- function create_fragment$x(ctx) {
21873
- let current_block_type_index;
21874
- let if_block;
21984
+ function create_fragment$y(ctx) {
21875
21985
  let if_block_anchor;
21876
21986
  let current;
21877
- const if_block_creators = [create_if_block$c, create_else_block_1];
21878
- const if_blocks = [];
21879
-
21880
- function select_block_type(ctx, dirty) {
21881
- if (!/*stepMetadata*/ ctx[1]?.derived.isStepSelfSubmittable) return 0;
21882
- return 1;
21883
- }
21884
-
21885
- current_block_type_index = select_block_type(ctx);
21886
- if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
21987
+ let if_block = /*stepMetadata*/ ctx[1]?.platform?.stageName !== 'OneTimePassword' && create_if_block$d(ctx);
21887
21988
 
21888
21989
  return {
21889
21990
  c() {
21890
- if_block.c();
21991
+ if (if_block) if_block.c();
21891
21992
  if_block_anchor = empty();
21892
21993
  },
21893
21994
  m(target, anchor) {
21894
- if_blocks[current_block_type_index].m(target, anchor);
21995
+ if (if_block) if_block.m(target, anchor);
21895
21996
  insert(target, if_block_anchor, anchor);
21896
21997
  current = true;
21897
21998
  },
21898
21999
  p(ctx, [dirty]) {
21899
- let previous_block_index = current_block_type_index;
21900
- current_block_type_index = select_block_type(ctx);
22000
+ if (/*stepMetadata*/ ctx[1]?.platform?.stageName !== 'OneTimePassword') {
22001
+ if (if_block) {
22002
+ if_block.p(ctx, dirty);
21901
22003
 
21902
- if (current_block_type_index === previous_block_index) {
21903
- if_blocks[current_block_type_index].p(ctx, dirty);
21904
- } else {
22004
+ if (dirty & /*stepMetadata*/ 2) {
22005
+ transition_in(if_block, 1);
22006
+ }
22007
+ } else {
22008
+ if_block = create_if_block$d(ctx);
22009
+ if_block.c();
22010
+ transition_in(if_block, 1);
22011
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
22012
+ }
22013
+ } else if (if_block) {
21905
22014
  group_outros();
21906
22015
 
21907
- transition_out(if_blocks[previous_block_index], 1, 1, () => {
21908
- if_blocks[previous_block_index] = null;
22016
+ transition_out(if_block, 1, 1, () => {
22017
+ if_block = null;
21909
22018
  });
21910
22019
 
21911
22020
  check_outros();
21912
- if_block = if_blocks[current_block_type_index];
21913
-
21914
- if (!if_block) {
21915
- if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
21916
- if_block.c();
21917
- } else {
21918
- if_block.p(ctx, dirty);
21919
- }
21920
-
21921
- transition_in(if_block, 1);
21922
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
21923
22021
  }
21924
22022
  },
21925
22023
  i(local) {
@@ -21932,13 +22030,13 @@ function create_fragment$x(ctx) {
21932
22030
  current = false;
21933
22031
  },
21934
22032
  d(detaching) {
21935
- if_blocks[current_block_type_index].d(detaching);
22033
+ if (if_block) if_block.d(detaching);
21936
22034
  if (detaching) detach(if_block_anchor);
21937
22035
  }
21938
22036
  };
21939
22037
  }
21940
22038
 
21941
- function instance$y($$self, $$props, $$invalidate) {
22039
+ function instance$z($$self, $$props, $$invalidate) {
21942
22040
  const style = {};
21943
22041
  let { callback } = $$props;
21944
22042
  let { callbackMetadata } = $$props;
@@ -22006,14 +22104,6 @@ function instance$y($$self, $$props, $$invalidate) {
22006
22104
  }
22007
22105
  }
22008
22106
 
22009
- if (callback.getInputValue() === 0) {
22010
- /**
22011
- * If input value is 0 (falsy value), then let's make sure it's set to the default value
22012
- * There's a case when the input value is 100, and for that we leave it 100
22013
- */
22014
- callback.setOptionIndex(defaultChoice);
22015
- }
22016
-
22017
22107
  const func = opt => setBtnValue(Number(opt.value));
22018
22108
 
22019
22109
  $$self.$$set = $$props => {
@@ -22024,27 +22114,34 @@ function instance$y($$self, $$props, $$invalidate) {
22024
22114
  };
22025
22115
 
22026
22116
  $$self.$$.update = () => {
22027
- if ($$self.$$.dirty & /*callback, callbackMetadata, options, stepMetadata, label*/ 4111) {
22117
+ if ($$self.$$.dirty & /*callback, callbackMetadata, options, defaultChoice, stepMetadata, label*/ 4127) {
22028
22118
  // TODO: use selfSubmitFunction to communicate to step component that this callback is ready
22029
22119
  {
22030
22120
  $$invalidate(6, inputName = callback?.payload?.input?.[0].name || `confirmation-${callbackMetadata?.idx}`);
22031
- $$invalidate(3, options = callback.getOptions().map((option, index) => ({ value: `${index}`, text: option })));
22121
+ $$invalidate(4, options = callback.getOptions().map((option, index) => ({ value: `${index}`, text: option })));
22122
+ $$invalidate(2, defaultChoice = callback.getDefaultOption());
22123
+ $$invalidate(3, label = interpolate(textToKey('pleaseConfirm'), null, 'Please Confirm'));
22032
22124
 
22033
22125
  if (callbackMetadata?.platform?.showOnlyPositiveAnswer) {
22034
- // The positive option is always first in the options array
22035
- $$invalidate(3, options = options.slice(0, 1));
22126
+ // The positive option is always first in the `options` array
22127
+ $$invalidate(4, options = options.slice(0, 1));
22036
22128
  }
22037
22129
 
22038
- $$invalidate(5, defaultChoice = callback.getDefaultOption());
22039
- $$invalidate(2, label = interpolate(textToKey('pleaseConfirm'), null, 'Please Confirm'));
22130
+ if (callback.getInputValue() === 0) {
22131
+ /**
22132
+ * If input value is 0 (falsy value), then let's make sure it's set to the default value
22133
+ * There's a case when the input value is 100, and for that we leave it at 100
22134
+ */
22135
+ callback.setOptionIndex(defaultChoice);
22136
+ }
22040
22137
 
22041
22138
  if (!stepMetadata?.derived.isStepSelfSubmittable && options.length > 1) {
22042
- // Since the user needs to confirm, add this non-value to force selection
22139
+ // Since the user needs to confirm, add this empty `value` to force selection
22043
22140
  options.unshift({ value: '', text: label });
22044
22141
  } else if (options.length === 1) {
22045
- $$invalidate(4, buttonStyle = 'outline');
22142
+ $$invalidate(5, buttonStyle = 'outline');
22046
22143
  } else {
22047
- $$invalidate(4, buttonStyle = 'secondary');
22144
+ $$invalidate(5, buttonStyle = 'secondary');
22048
22145
  }
22049
22146
  }
22050
22147
  }
@@ -22053,10 +22150,10 @@ function instance$y($$self, $$props, $$invalidate) {
22053
22150
  return [
22054
22151
  callbackMetadata,
22055
22152
  stepMetadata,
22153
+ defaultChoice,
22056
22154
  label,
22057
22155
  options,
22058
22156
  buttonStyle,
22059
- defaultChoice,
22060
22157
  inputName,
22061
22158
  Checkbox,
22062
22159
  setBtnValue,
@@ -22073,7 +22170,7 @@ class Confirmation extends SvelteComponent {
22073
22170
  constructor(options) {
22074
22171
  super();
22075
22172
 
22076
- init(this, options, instance$y, create_fragment$x, safe_not_equal, {
22173
+ init(this, options, instance$z, create_fragment$y, safe_not_equal, {
22077
22174
  style: 11,
22078
22175
  callback: 12,
22079
22176
  callbackMetadata: 0,
@@ -22089,7 +22186,7 @@ class Confirmation extends SvelteComponent {
22089
22186
 
22090
22187
  /* src/lib/journey/callbacks/hidden-value/hidden-value.svelte generated by Svelte v3.55.1 */
22091
22188
 
22092
- function instance$x($$self, $$props, $$invalidate) {
22189
+ function instance$y($$self, $$props, $$invalidate) {
22093
22190
  const callbackMetadata = null;
22094
22191
  const selfSubmitFunction = null;
22095
22192
  const stepMetadata = null;
@@ -22102,7 +22199,7 @@ class Hidden_value extends SvelteComponent {
22102
22199
  constructor(options) {
22103
22200
  super();
22104
22201
 
22105
- init(this, options, instance$x, null, safe_not_equal, {
22202
+ init(this, options, instance$y, null, safe_not_equal, {
22106
22203
  callbackMetadata: 0,
22107
22204
  selfSubmitFunction: 1,
22108
22205
  stepMetadata: 2,
@@ -22142,7 +22239,7 @@ function create_if_block_7$1(ctx) {
22142
22239
  props: {
22143
22240
  key: /*key*/ ctx[3],
22144
22241
  classes: `${/*labelClasses*/ ctx[5]} tw_w-full tw_ml-1`,
22145
- $$slots: { default: [create_default_slot_1$8] },
22242
+ $$slots: { default: [create_default_slot_1$9] },
22146
22243
  $$scope: { ctx }
22147
22244
  }
22148
22245
  });
@@ -22182,7 +22279,7 @@ function create_if_block_7$1(ctx) {
22182
22279
  }
22183
22280
 
22184
22281
  // (25:2) <Label {key} classes={`${labelClasses} tw_w-full tw_ml-1`}>
22185
- function create_default_slot_1$8(ctx) {
22282
+ function create_default_slot_1$9(ctx) {
22186
22283
  let t;
22187
22284
 
22188
22285
  return {
@@ -22522,7 +22619,7 @@ function create_if_block_3$3(ctx) {
22522
22619
  }
22523
22620
 
22524
22621
  // (97:0) {#if type === 'phone'}
22525
- function create_if_block_2$6(ctx) {
22622
+ function create_if_block_2$7(ctx) {
22526
22623
  let input;
22527
22624
  let input_aria_describedby_value;
22528
22625
  let input_class_value;
@@ -22602,7 +22699,7 @@ function create_if_block_2$6(ctx) {
22602
22699
  }
22603
22700
 
22604
22701
  // (113:0) {#if type === 'text'}
22605
- function create_if_block_1$7(ctx) {
22702
+ function create_if_block_1$8(ctx) {
22606
22703
  let input;
22607
22704
  let input_aria_describedby_value;
22608
22705
  let input_class_value;
@@ -22682,7 +22779,7 @@ function create_if_block_1$7(ctx) {
22682
22779
  }
22683
22780
 
22684
22781
  // (129:0) {#if labelOrder === 'last'}
22685
- function create_if_block$b(ctx) {
22782
+ function create_if_block$c(ctx) {
22686
22783
  let label_1;
22687
22784
  let current;
22688
22785
 
@@ -22690,7 +22787,7 @@ function create_if_block$b(ctx) {
22690
22787
  props: {
22691
22788
  key: /*key*/ ctx[3],
22692
22789
  classes: `${/*labelClasses*/ ctx[5]}`,
22693
- $$slots: { default: [create_default_slot$e] },
22790
+ $$slots: { default: [create_default_slot$f] },
22694
22791
  $$scope: { ctx }
22695
22792
  }
22696
22793
  });
@@ -22730,7 +22827,7 @@ function create_if_block$b(ctx) {
22730
22827
  }
22731
22828
 
22732
22829
  // (130:2) <Label {key} classes={`${labelClasses}`}>
22733
- function create_default_slot$e(ctx) {
22830
+ function create_default_slot$f(ctx) {
22734
22831
  let t;
22735
22832
 
22736
22833
  return {
@@ -22749,7 +22846,7 @@ function create_default_slot$e(ctx) {
22749
22846
  };
22750
22847
  }
22751
22848
 
22752
- function create_fragment$w(ctx) {
22849
+ function create_fragment$x(ctx) {
22753
22850
  let t0;
22754
22851
  let t1;
22755
22852
  let t2;
@@ -22764,9 +22861,9 @@ function create_fragment$w(ctx) {
22764
22861
  let if_block2 = /*type*/ ctx[11] === 'email' && create_if_block_5$1(ctx);
22765
22862
  let if_block3 = /*type*/ ctx[11] === 'number' && create_if_block_4$1(ctx);
22766
22863
  let if_block4 = /*type*/ ctx[11] === 'password' && create_if_block_3$3(ctx);
22767
- let if_block5 = /*type*/ ctx[11] === 'phone' && create_if_block_2$6(ctx);
22768
- let if_block6 = /*type*/ ctx[11] === 'text' && create_if_block_1$7(ctx);
22769
- let if_block7 = /*labelOrder*/ ctx[6] === 'last' && create_if_block$b(ctx);
22864
+ let if_block5 = /*type*/ ctx[11] === 'phone' && create_if_block_2$7(ctx);
22865
+ let if_block6 = /*type*/ ctx[11] === 'text' && create_if_block_1$8(ctx);
22866
+ let if_block7 = /*labelOrder*/ ctx[6] === 'last' && create_if_block$c(ctx);
22770
22867
 
22771
22868
  return {
22772
22869
  c() {
@@ -22886,7 +22983,7 @@ function create_fragment$w(ctx) {
22886
22983
  if (if_block5) {
22887
22984
  if_block5.p(ctx, dirty);
22888
22985
  } else {
22889
- if_block5 = create_if_block_2$6(ctx);
22986
+ if_block5 = create_if_block_2$7(ctx);
22890
22987
  if_block5.c();
22891
22988
  if_block5.m(t5.parentNode, t5);
22892
22989
  }
@@ -22899,7 +22996,7 @@ function create_fragment$w(ctx) {
22899
22996
  if (if_block6) {
22900
22997
  if_block6.p(ctx, dirty);
22901
22998
  } else {
22902
- if_block6 = create_if_block_1$7(ctx);
22999
+ if_block6 = create_if_block_1$8(ctx);
22903
23000
  if_block6.c();
22904
23001
  if_block6.m(t6.parentNode, t6);
22905
23002
  }
@@ -22916,7 +23013,7 @@ function create_fragment$w(ctx) {
22916
23013
  transition_in(if_block7, 1);
22917
23014
  }
22918
23015
  } else {
22919
- if_block7 = create_if_block$b(ctx);
23016
+ if_block7 = create_if_block$c(ctx);
22920
23017
  if_block7.c();
22921
23018
  transition_in(if_block7, 1);
22922
23019
  if_block7.m(if_block7_anchor.parentNode, if_block7_anchor);
@@ -22963,7 +23060,7 @@ function create_fragment$w(ctx) {
22963
23060
  };
22964
23061
  }
22965
23062
 
22966
- function instance$w($$self, $$props, $$invalidate) {
23063
+ function instance$x($$self, $$props, $$invalidate) {
22967
23064
  let { forceValidityFailure = false } = $$props;
22968
23065
  let { isFirstInvalidInput } = $$props;
22969
23066
  let { inputClasses = '' } = $$props;
@@ -23107,7 +23204,7 @@ class Input extends SvelteComponent {
23107
23204
  constructor(options) {
23108
23205
  super();
23109
23206
 
23110
- init(this, options, instance$w, create_fragment$w, safe_not_equal, {
23207
+ init(this, options, instance$x, create_fragment$x, safe_not_equal, {
23111
23208
  forceValidityFailure: 1,
23112
23209
  isFirstInvalidInput: 13,
23113
23210
  inputClasses: 2,
@@ -23129,7 +23226,7 @@ class Input extends SvelteComponent {
23129
23226
  const get_input_button_slot_changes$1 = dirty => ({});
23130
23227
  const get_input_button_slot_context$1 = ctx => ({});
23131
23228
 
23132
- function create_fragment$v(ctx) {
23229
+ function create_fragment$w(ctx) {
23133
23230
  let div1;
23134
23231
  let input;
23135
23232
  let updating_value;
@@ -23304,7 +23401,7 @@ function create_fragment$v(ctx) {
23304
23401
  };
23305
23402
  }
23306
23403
 
23307
- function instance$v($$self, $$props, $$invalidate) {
23404
+ function instance$w($$self, $$props, $$invalidate) {
23308
23405
  let { $$slots: slots = {}, $$scope } = $$props;
23309
23406
  let { checkValidity = null } = $$props;
23310
23407
  let { forceValidityFailure = false } = $$props;
@@ -23375,7 +23472,7 @@ class Floating_label extends SvelteComponent {
23375
23472
  constructor(options) {
23376
23473
  super();
23377
23474
 
23378
- init(this, options, instance$v, create_fragment$v, safe_not_equal, {
23475
+ init(this, options, instance$w, create_fragment$w, safe_not_equal, {
23379
23476
  checkValidity: 12,
23380
23477
  forceValidityFailure: 2,
23381
23478
  message: 3,
@@ -23397,7 +23494,7 @@ class Floating_label extends SvelteComponent {
23397
23494
  const get_input_button_slot_changes = dirty => ({});
23398
23495
  const get_input_button_slot_context = ctx => ({});
23399
23496
 
23400
- function create_fragment$u(ctx) {
23497
+ function create_fragment$v(ctx) {
23401
23498
  let div1;
23402
23499
  let input;
23403
23500
  let updating_value;
@@ -23576,7 +23673,7 @@ function create_fragment$u(ctx) {
23576
23673
  };
23577
23674
  }
23578
23675
 
23579
- function instance$u($$self, $$props, $$invalidate) {
23676
+ function instance$v($$self, $$props, $$invalidate) {
23580
23677
  let { $$slots: slots = {}, $$scope } = $$props;
23581
23678
  let { checkValidity = null } = $$props;
23582
23679
  let { forceValidityFailure = false } = $$props;
@@ -23650,7 +23747,7 @@ class Stacked_label extends SvelteComponent {
23650
23747
  constructor(options) {
23651
23748
  super();
23652
23749
 
23653
- init(this, options, instance$u, create_fragment$u, safe_not_equal, {
23750
+ init(this, options, instance$v, create_fragment$v, safe_not_equal, {
23654
23751
  checkValidity: 13,
23655
23752
  forceValidityFailure: 2,
23656
23753
  isFirstInvalidInput: 3,
@@ -23671,7 +23768,7 @@ class Stacked_label extends SvelteComponent {
23671
23768
 
23672
23769
  /* src/lib/components/icons/lock-icon.svelte generated by Svelte v3.55.1 */
23673
23770
 
23674
- function create_fragment$t(ctx) {
23771
+ function create_fragment$u(ctx) {
23675
23772
  let svg;
23676
23773
  let path0;
23677
23774
  let path1;
@@ -23752,7 +23849,7 @@ function create_fragment$t(ctx) {
23752
23849
  };
23753
23850
  }
23754
23851
 
23755
- function instance$t($$self, $$props, $$invalidate) {
23852
+ function instance$u($$self, $$props, $$invalidate) {
23756
23853
  let { $$slots: slots = {}, $$scope } = $$props;
23757
23854
  let { classes = '' } = $$props;
23758
23855
  let { size = '24px' } = $$props;
@@ -23769,13 +23866,13 @@ function instance$t($$self, $$props, $$invalidate) {
23769
23866
  class Lock_icon extends SvelteComponent {
23770
23867
  constructor(options) {
23771
23868
  super();
23772
- init(this, options, instance$t, create_fragment$t, safe_not_equal, { classes: 0, size: 1 });
23869
+ init(this, options, instance$u, create_fragment$u, safe_not_equal, { classes: 0, size: 1 });
23773
23870
  }
23774
23871
  }
23775
23872
 
23776
23873
  /* src/lib/journey/callbacks/kba/kba-create.svelte generated by Svelte v3.55.1 */
23777
23874
 
23778
- function create_if_block$a(ctx) {
23875
+ function create_if_block$b(ctx) {
23779
23876
  let input;
23780
23877
  let current;
23781
23878
 
@@ -23819,7 +23916,7 @@ function create_if_block$a(ctx) {
23819
23916
  };
23820
23917
  }
23821
23918
 
23822
- function create_fragment$s(ctx) {
23919
+ function create_fragment$t(ctx) {
23823
23920
  let fieldset;
23824
23921
  let legend;
23825
23922
  let t0;
@@ -23854,7 +23951,7 @@ function create_fragment$s(ctx) {
23854
23951
  }
23855
23952
  });
23856
23953
 
23857
- let if_block = /*displayCustomQuestionInput*/ ctx[3] && create_if_block$a(ctx);
23954
+ let if_block = /*displayCustomQuestionInput*/ ctx[3] && create_if_block$b(ctx);
23858
23955
 
23859
23956
  function input_value_binding(value) {
23860
23957
  /*input_value_binding*/ ctx[20](value);
@@ -23932,7 +24029,7 @@ function create_fragment$s(ctx) {
23932
24029
  transition_in(if_block, 1);
23933
24030
  }
23934
24031
  } else {
23935
- if_block = create_if_block$a(ctx);
24032
+ if_block = create_if_block$b(ctx);
23936
24033
  if_block.c();
23937
24034
  transition_in(if_block, 1);
23938
24035
  if_block.m(fieldset, t6);
@@ -23990,7 +24087,7 @@ function create_fragment$s(ctx) {
23990
24087
  };
23991
24088
  }
23992
24089
 
23993
- function instance$s($$self, $$props, $$invalidate) {
24090
+ function instance$t($$self, $$props, $$invalidate) {
23994
24091
  let $value;
23995
24092
  const selfSubmitFunction = null;
23996
24093
  const stepMetadata = null;
@@ -24169,7 +24266,7 @@ class Kba_create extends SvelteComponent {
24169
24266
  constructor(options) {
24170
24267
  super();
24171
24268
 
24172
- init(this, options, instance$s, create_fragment$s, safe_not_equal, {
24269
+ init(this, options, instance$t, create_fragment$t, safe_not_equal, {
24173
24270
  selfSubmitFunction: 12,
24174
24271
  stepMetadata: 13,
24175
24272
  callback: 14,
@@ -24189,7 +24286,7 @@ class Kba_create extends SvelteComponent {
24189
24286
 
24190
24287
  /* src/lib/journey/callbacks/username/name.svelte generated by Svelte v3.55.1 */
24191
24288
 
24192
- function create_fragment$r(ctx) {
24289
+ function create_fragment$s(ctx) {
24193
24290
  let input;
24194
24291
  let current;
24195
24292
 
@@ -24197,7 +24294,7 @@ function create_fragment$r(ctx) {
24197
24294
  props: {
24198
24295
  isFirstInvalidInput: /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false,
24199
24296
  key: /*inputName*/ ctx[2],
24200
- label: interpolate(textToKey(/*callbackType*/ ctx[1]), null, /*textInputLabel*/ ctx[3]),
24297
+ label: interpolate(textToKey(/*textInputLabel*/ ctx[3] || /*callbackType*/ ctx[1]), null, /*textInputLabel*/ ctx[3]),
24201
24298
  onChange: /*setValue*/ ctx[6],
24202
24299
  type: "text",
24203
24300
  showMessage: false,
@@ -24219,7 +24316,7 @@ function create_fragment$r(ctx) {
24219
24316
  const input_changes = {};
24220
24317
  if (dirty & /*callbackMetadata*/ 1) input_changes.isFirstInvalidInput = /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false;
24221
24318
  if (dirty & /*inputName*/ 4) input_changes.key = /*inputName*/ ctx[2];
24222
- if (dirty & /*callbackType, textInputLabel*/ 10) input_changes.label = interpolate(textToKey(/*callbackType*/ ctx[1]), null, /*textInputLabel*/ ctx[3]);
24319
+ if (dirty & /*textInputLabel, callbackType*/ 10) input_changes.label = interpolate(textToKey(/*textInputLabel*/ ctx[3] || /*callbackType*/ ctx[1]), null, /*textInputLabel*/ ctx[3]);
24223
24320
 
24224
24321
  if (dirty & /*value*/ 16) input_changes.value = typeof /*value*/ ctx[4] === 'string'
24225
24322
  ? /*value*/ ctx[4]
@@ -24242,7 +24339,7 @@ function create_fragment$r(ctx) {
24242
24339
  };
24243
24340
  }
24244
24341
 
24245
- function instance$r($$self, $$props, $$invalidate) {
24342
+ function instance$s($$self, $$props, $$invalidate) {
24246
24343
  const selfSubmitFunction = null;
24247
24344
  const stepMetadata = null;
24248
24345
  let { callback } = $$props;
@@ -24294,7 +24391,7 @@ class Name extends SvelteComponent {
24294
24391
  constructor(options) {
24295
24392
  super();
24296
24393
 
24297
- init(this, options, instance$r, create_fragment$r, safe_not_equal, {
24394
+ init(this, options, instance$s, create_fragment$s, safe_not_equal, {
24298
24395
  selfSubmitFunction: 7,
24299
24396
  stepMetadata: 8,
24300
24397
  callback: 9,
@@ -24396,7 +24493,7 @@ function create_else_block$3(ctx) {
24396
24493
  }
24397
24494
 
24398
24495
  // (6:0) {#if !visible}
24399
- function create_if_block$9(ctx) {
24496
+ function create_if_block$a(ctx) {
24400
24497
  let svg;
24401
24498
  let path0;
24402
24499
  let path1;
@@ -24477,12 +24574,12 @@ function create_if_block$9(ctx) {
24477
24574
  };
24478
24575
  }
24479
24576
 
24480
- function create_fragment$q(ctx) {
24577
+ function create_fragment$r(ctx) {
24481
24578
  let current_block_type_index;
24482
24579
  let if_block;
24483
24580
  let if_block_anchor;
24484
24581
  let current;
24485
- const if_block_creators = [create_if_block$9, create_else_block$3];
24582
+ const if_block_creators = [create_if_block$a, create_else_block$3];
24486
24583
  const if_blocks = [];
24487
24584
 
24488
24585
  function select_block_type(ctx, dirty) {
@@ -24546,7 +24643,7 @@ function create_fragment$q(ctx) {
24546
24643
  };
24547
24644
  }
24548
24645
 
24549
- function instance$q($$self, $$props, $$invalidate) {
24646
+ function instance$r($$self, $$props, $$invalidate) {
24550
24647
  let { $$slots: slots = {}, $$scope } = $$props;
24551
24648
  let { classes = '' } = $$props;
24552
24649
  let { size = '24px' } = $$props;
@@ -24565,13 +24662,13 @@ function instance$q($$self, $$props, $$invalidate) {
24565
24662
  class Eye_icon extends SvelteComponent {
24566
24663
  constructor(options) {
24567
24664
  super();
24568
- init(this, options, instance$q, create_fragment$q, safe_not_equal, { classes: 0, size: 1, visible: 2 });
24665
+ init(this, options, instance$r, create_fragment$r, safe_not_equal, { classes: 0, size: 1, visible: 2 });
24569
24666
  }
24570
24667
  }
24571
24668
 
24572
24669
  /* src/lib/journey/callbacks/password/confirm-input.svelte generated by Svelte v3.55.1 */
24573
24670
 
24574
- function create_default_slot_1$7(ctx) {
24671
+ function create_default_slot_1$8(ctx) {
24575
24672
  let current;
24576
24673
  const default_slot_template = /*#slots*/ ctx[12].default;
24577
24674
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[13], null);
@@ -24619,7 +24716,7 @@ function create_default_slot_1$7(ctx) {
24619
24716
  }
24620
24717
 
24621
24718
  // (47:4) <EyeIcon classes="tw_password-icon dark:tw_password-icon_dark" visible={isVisible} >
24622
- function create_default_slot$d(ctx) {
24719
+ function create_default_slot$e(ctx) {
24623
24720
  let t;
24624
24721
  let current;
24625
24722
  t = new Locale_strings({ props: { key: "showPassword" } });
@@ -24660,7 +24757,7 @@ function create_input_button_slot$1(ctx) {
24660
24757
  props: {
24661
24758
  classes: "tw_password-icon dark:tw_password-icon_dark",
24662
24759
  visible: /*isVisible*/ ctx[6],
24663
- $$slots: { default: [create_default_slot$d] },
24760
+ $$slots: { default: [create_default_slot$e] },
24664
24761
  $$scope: { ctx }
24665
24762
  }
24666
24763
  });
@@ -24711,7 +24808,7 @@ function create_input_button_slot$1(ctx) {
24711
24808
  };
24712
24809
  }
24713
24810
 
24714
- function create_fragment$p(ctx) {
24811
+ function create_fragment$q(ctx) {
24715
24812
  let input;
24716
24813
  let current;
24717
24814
 
@@ -24735,7 +24832,7 @@ function create_fragment$p(ctx) {
24735
24832
  : '',
24736
24833
  $$slots: {
24737
24834
  "input-button": [create_input_button_slot$1],
24738
- default: [create_default_slot_1$7]
24835
+ default: [create_default_slot_1$8]
24739
24836
  },
24740
24837
  $$scope: { ctx }
24741
24838
  }
@@ -24785,7 +24882,7 @@ function create_fragment$p(ctx) {
24785
24882
  };
24786
24883
  }
24787
24884
 
24788
- function instance$p($$self, $$props, $$invalidate) {
24885
+ function instance$q($$self, $$props, $$invalidate) {
24789
24886
  let { $$slots: slots = {}, $$scope } = $$props;
24790
24887
  let { forceValidityFailure = false } = $$props;
24791
24888
  let { key } = $$props;
@@ -24840,7 +24937,7 @@ class Confirm_input extends SvelteComponent {
24840
24937
  constructor(options) {
24841
24938
  super();
24842
24939
 
24843
- init(this, options, instance$p, create_fragment$p, safe_not_equal, {
24940
+ init(this, options, instance$q, create_fragment$q, safe_not_equal, {
24844
24941
  forceValidityFailure: 0,
24845
24942
  key: 1,
24846
24943
  onChange: 2,
@@ -24854,7 +24951,7 @@ class Confirm_input extends SvelteComponent {
24854
24951
 
24855
24952
  /* src/lib/journey/callbacks/password/base.svelte generated by Svelte v3.55.1 */
24856
24953
 
24857
- function create_default_slot_1$6(ctx) {
24954
+ function create_default_slot_1$7(ctx) {
24858
24955
  let current;
24859
24956
  const default_slot_template = /*#slots*/ ctx[19].default;
24860
24957
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[20], null);
@@ -24902,7 +24999,7 @@ function create_default_slot_1$6(ctx) {
24902
24999
  }
24903
25000
 
24904
25001
  // (82:4) <EyeIcon classes="tw_password-icon dark:tw_password-icon_dark" visible={isVisible} >
24905
- function create_default_slot$c(ctx) {
25002
+ function create_default_slot$d(ctx) {
24906
25003
  let t;
24907
25004
  let current;
24908
25005
  t = new Locale_strings({ props: { key: "showPassword" } });
@@ -24943,7 +25040,7 @@ function create_input_button_slot(ctx) {
24943
25040
  props: {
24944
25041
  classes: "tw_password-icon dark:tw_password-icon_dark",
24945
25042
  visible: /*isVisible*/ ctx[10],
24946
- $$slots: { default: [create_default_slot$c] },
25043
+ $$slots: { default: [create_default_slot$d] },
24947
25044
  $$scope: { ctx }
24948
25045
  }
24949
25046
  });
@@ -24995,7 +25092,7 @@ function create_input_button_slot(ctx) {
24995
25092
  }
24996
25093
 
24997
25094
  // (89:0) {#if callbackMetadata?.platform?.confirmPassword}
24998
- function create_if_block$8(ctx) {
25095
+ function create_if_block$9(ctx) {
24999
25096
  let confirminput;
25000
25097
  let current;
25001
25098
 
@@ -25042,7 +25139,7 @@ function create_if_block$8(ctx) {
25042
25139
  };
25043
25140
  }
25044
25141
 
25045
- function create_fragment$o(ctx) {
25142
+ function create_fragment$p(ctx) {
25046
25143
  let input;
25047
25144
  let t;
25048
25145
  let if_block_anchor;
@@ -25067,13 +25164,13 @@ function create_fragment$o(ctx) {
25067
25164
  : '',
25068
25165
  $$slots: {
25069
25166
  "input-button": [create_input_button_slot],
25070
- default: [create_default_slot_1$6]
25167
+ default: [create_default_slot_1$7]
25071
25168
  },
25072
25169
  $$scope: { ctx }
25073
25170
  }
25074
25171
  });
25075
25172
 
25076
- let if_block = /*callbackMetadata*/ ctx[1]?.platform?.confirmPassword && create_if_block$8(ctx);
25173
+ let if_block = /*callbackMetadata*/ ctx[1]?.platform?.confirmPassword && create_if_block$9(ctx);
25077
25174
 
25078
25175
  return {
25079
25176
  c() {
@@ -25122,7 +25219,7 @@ function create_fragment$o(ctx) {
25122
25219
  transition_in(if_block, 1);
25123
25220
  }
25124
25221
  } else {
25125
- if_block = create_if_block$8(ctx);
25222
+ if_block = create_if_block$9(ctx);
25126
25223
  if_block.c();
25127
25224
  transition_in(if_block, 1);
25128
25225
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -25157,7 +25254,7 @@ function create_fragment$o(ctx) {
25157
25254
  };
25158
25255
  }
25159
25256
 
25160
- function instance$o($$self, $$props, $$invalidate) {
25257
+ function instance$p($$self, $$props, $$invalidate) {
25161
25258
  let { $$slots: slots = {}, $$scope } = $$props;
25162
25259
  let { callback } = $$props;
25163
25260
  let { callbackMetadata } = $$props;
@@ -25266,7 +25363,7 @@ class Base extends SvelteComponent {
25266
25363
  constructor(options) {
25267
25364
  super();
25268
25365
 
25269
- init(this, options, instance$o, create_fragment$o, safe_not_equal, {
25366
+ init(this, options, instance$p, create_fragment$p, safe_not_equal, {
25270
25367
  callback: 17,
25271
25368
  callbackMetadata: 1,
25272
25369
  key: 0,
@@ -25281,7 +25378,7 @@ class Base extends SvelteComponent {
25281
25378
 
25282
25379
  /* src/lib/journey/callbacks/password/password.svelte generated by Svelte v3.55.1 */
25283
25380
 
25284
- function create_fragment$n(ctx) {
25381
+ function create_fragment$o(ctx) {
25285
25382
  let base;
25286
25383
  let current;
25287
25384
 
@@ -25325,7 +25422,7 @@ function create_fragment$n(ctx) {
25325
25422
  };
25326
25423
  }
25327
25424
 
25328
- function instance$n($$self, $$props, $$invalidate) {
25425
+ function instance$o($$self, $$props, $$invalidate) {
25329
25426
  const selfSubmitFunction = null;
25330
25427
  const stepMetadata = null;
25331
25428
  let { callback } = $$props;
@@ -25355,7 +25452,7 @@ class Password extends SvelteComponent {
25355
25452
  constructor(options) {
25356
25453
  super();
25357
25454
 
25358
- init(this, options, instance$n, create_fragment$n, safe_not_equal, {
25455
+ init(this, options, instance$o, create_fragment$o, safe_not_equal, {
25359
25456
  selfSubmitFunction: 4,
25360
25457
  stepMetadata: 5,
25361
25458
  callback: 0,
@@ -25375,7 +25472,7 @@ class Password extends SvelteComponent {
25375
25472
 
25376
25473
  /* src/lib/components/primitives/text/text.svelte generated by Svelte v3.55.1 */
25377
25474
 
25378
- function create_fragment$m(ctx) {
25475
+ function create_fragment$n(ctx) {
25379
25476
  let p;
25380
25477
  let p_class_value;
25381
25478
  let current;
@@ -25433,7 +25530,7 @@ function create_fragment$m(ctx) {
25433
25530
  };
25434
25531
  }
25435
25532
 
25436
- function instance$m($$self, $$props, $$invalidate) {
25533
+ function instance$n($$self, $$props, $$invalidate) {
25437
25534
  let { $$slots: slots = {}, $$scope } = $$props;
25438
25535
  let { classes = '' } = $$props;
25439
25536
 
@@ -25448,13 +25545,13 @@ function instance$m($$self, $$props, $$invalidate) {
25448
25545
  class Text extends SvelteComponent {
25449
25546
  constructor(options) {
25450
25547
  super();
25451
- init(this, options, instance$m, create_fragment$m, safe_not_equal, { classes: 0 });
25548
+ init(this, options, instance$n, create_fragment$n, safe_not_equal, { classes: 0 });
25452
25549
  }
25453
25550
  }
25454
25551
 
25455
25552
  /* src/lib/journey/callbacks/polling-wait/polling-wait.svelte generated by Svelte v3.55.1 */
25456
25553
 
25457
- function create_default_slot$b(ctx) {
25554
+ function create_default_slot$c(ctx) {
25458
25555
  let t;
25459
25556
 
25460
25557
  return {
@@ -25473,7 +25570,7 @@ function create_default_slot$b(ctx) {
25473
25570
  };
25474
25571
  }
25475
25572
 
25476
- function create_fragment$l(ctx) {
25573
+ function create_fragment$m(ctx) {
25477
25574
  let div;
25478
25575
  let spinner;
25479
25576
  let t;
@@ -25489,7 +25586,7 @@ function create_fragment$l(ctx) {
25489
25586
 
25490
25587
  text_1 = new Text({
25491
25588
  props: {
25492
- $$slots: { default: [create_default_slot$b] },
25589
+ $$slots: { default: [create_default_slot$c] },
25493
25590
  $$scope: { ctx }
25494
25591
  }
25495
25592
  });
@@ -25537,7 +25634,7 @@ function create_fragment$l(ctx) {
25537
25634
  };
25538
25635
  }
25539
25636
 
25540
- function instance$l($$self, $$props, $$invalidate) {
25637
+ function instance$m($$self, $$props, $$invalidate) {
25541
25638
  const stepMetadata = null;
25542
25639
  const style = {};
25543
25640
  let { callback } = $$props;
@@ -25588,7 +25685,7 @@ class Polling_wait extends SvelteComponent {
25588
25685
  constructor(options) {
25589
25686
  super();
25590
25687
 
25591
- init(this, options, instance$l, create_fragment$l, safe_not_equal, {
25688
+ init(this, options, instance$m, create_fragment$m, safe_not_equal, {
25592
25689
  stepMetadata: 3,
25593
25690
  style: 4,
25594
25691
  callback: 1,
@@ -25608,7 +25705,7 @@ class Polling_wait extends SvelteComponent {
25608
25705
 
25609
25706
  /* src/lib/journey/callbacks/redirect/redirect.svelte generated by Svelte v3.55.1 */
25610
25707
 
25611
- function create_default_slot$a(ctx) {
25708
+ function create_default_slot$b(ctx) {
25612
25709
  let t;
25613
25710
 
25614
25711
  return {
@@ -25627,7 +25724,7 @@ function create_default_slot$a(ctx) {
25627
25724
  };
25628
25725
  }
25629
25726
 
25630
- function create_fragment$k(ctx) {
25727
+ function create_fragment$l(ctx) {
25631
25728
  let div;
25632
25729
  let spinner;
25633
25730
  let t;
@@ -25643,7 +25740,7 @@ function create_fragment$k(ctx) {
25643
25740
 
25644
25741
  text_1 = new Text({
25645
25742
  props: {
25646
- $$slots: { default: [create_default_slot$a] },
25743
+ $$slots: { default: [create_default_slot$b] },
25647
25744
  $$scope: { ctx }
25648
25745
  }
25649
25746
  });
@@ -25692,7 +25789,7 @@ function create_fragment$k(ctx) {
25692
25789
  };
25693
25790
  }
25694
25791
 
25695
- function instance$k($$self, $$props, $$invalidate) {
25792
+ function instance$l($$self, $$props, $$invalidate) {
25696
25793
  const callbackMetadata = null;
25697
25794
  const selfSubmitFunction = null;
25698
25795
  const stepMetadata = null;
@@ -25719,7 +25816,7 @@ class Redirect extends SvelteComponent {
25719
25816
  constructor(options) {
25720
25817
  super();
25721
25818
 
25722
- init(this, options, instance$k, create_fragment$k, safe_not_equal, {
25819
+ init(this, options, instance$l, create_fragment$l, safe_not_equal, {
25723
25820
  callbackMetadata: 1,
25724
25821
  selfSubmitFunction: 2,
25725
25822
  stepMetadata: 3,
@@ -25747,7 +25844,7 @@ class Redirect extends SvelteComponent {
25747
25844
 
25748
25845
  /* src/lib/components/icons/apple-icon.svelte generated by Svelte v3.55.1 */
25749
25846
 
25750
- function create_fragment$j(ctx) {
25847
+ function create_fragment$k(ctx) {
25751
25848
  let svg;
25752
25849
  let path0;
25753
25850
  let path1;
@@ -25792,7 +25889,7 @@ function create_fragment$j(ctx) {
25792
25889
  };
25793
25890
  }
25794
25891
 
25795
- function instance$j($$self, $$props, $$invalidate) {
25892
+ function instance$k($$self, $$props, $$invalidate) {
25796
25893
  let { classes = '' } = $$props;
25797
25894
  let { size = '24px' } = $$props;
25798
25895
 
@@ -25807,13 +25904,13 @@ function instance$j($$self, $$props, $$invalidate) {
25807
25904
  class Apple_icon extends SvelteComponent {
25808
25905
  constructor(options) {
25809
25906
  super();
25810
- init(this, options, instance$j, create_fragment$j, safe_not_equal, { classes: 0, size: 1 });
25907
+ init(this, options, instance$k, create_fragment$k, safe_not_equal, { classes: 0, size: 1 });
25811
25908
  }
25812
25909
  }
25813
25910
 
25814
25911
  /* src/lib/components/icons/facebook-icon.svelte generated by Svelte v3.55.1 */
25815
25912
 
25816
- function create_fragment$i(ctx) {
25913
+ function create_fragment$j(ctx) {
25817
25914
  let svg;
25818
25915
  let path;
25819
25916
 
@@ -25854,7 +25951,7 @@ function create_fragment$i(ctx) {
25854
25951
  };
25855
25952
  }
25856
25953
 
25857
- function instance$i($$self, $$props, $$invalidate) {
25954
+ function instance$j($$self, $$props, $$invalidate) {
25858
25955
  let { classes = '' } = $$props;
25859
25956
  let { size = '24px' } = $$props;
25860
25957
 
@@ -25869,13 +25966,13 @@ function instance$i($$self, $$props, $$invalidate) {
25869
25966
  class Facebook_icon extends SvelteComponent {
25870
25967
  constructor(options) {
25871
25968
  super();
25872
- init(this, options, instance$i, create_fragment$i, safe_not_equal, { classes: 0, size: 1 });
25969
+ init(this, options, instance$j, create_fragment$j, safe_not_equal, { classes: 0, size: 1 });
25873
25970
  }
25874
25971
  }
25875
25972
 
25876
25973
  /* src/lib/components/icons/google-icon.svelte generated by Svelte v3.55.1 */
25877
25974
 
25878
- function create_fragment$h(ctx) {
25975
+ function create_fragment$i(ctx) {
25879
25976
  let svg;
25880
25977
  let g;
25881
25978
  let path0;
@@ -25940,7 +26037,7 @@ function create_fragment$h(ctx) {
25940
26037
  };
25941
26038
  }
25942
26039
 
25943
- function instance$h($$self, $$props, $$invalidate) {
26040
+ function instance$i($$self, $$props, $$invalidate) {
25944
26041
  let { classes = '' } = $$props;
25945
26042
  let { size = '24px' } = $$props;
25946
26043
 
@@ -25955,13 +26052,13 @@ function instance$h($$self, $$props, $$invalidate) {
25955
26052
  class Google_icon extends SvelteComponent {
25956
26053
  constructor(options) {
25957
26054
  super();
25958
- init(this, options, instance$h, create_fragment$h, safe_not_equal, { classes: 0, size: 1 });
26055
+ init(this, options, instance$i, create_fragment$i, safe_not_equal, { classes: 0, size: 1 });
25959
26056
  }
25960
26057
  }
25961
26058
 
25962
26059
  /* src/lib/journey/callbacks/select-idp/select-idp.svelte generated by Svelte v3.55.1 */
25963
26060
 
25964
- function get_each_context$4(ctx, list, i) {
26061
+ function get_each_context$5(ctx, list, i) {
25965
26062
  const child_ctx = ctx.slice();
25966
26063
  child_ctx[10] = list[i];
25967
26064
  return child_ctx;
@@ -26022,7 +26119,7 @@ function create_if_block_3$2(ctx) {
26022
26119
  }
26023
26120
 
26024
26121
  // (55:58)
26025
- function create_if_block_2$5(ctx) {
26122
+ function create_if_block_2$6(ctx) {
26026
26123
  let button;
26027
26124
  let current;
26028
26125
 
@@ -26076,7 +26173,7 @@ function create_if_block_2$5(ctx) {
26076
26173
  }
26077
26174
 
26078
26175
  // (44:4) {#if idp.text.toUpperCase().includes('APPLE')}
26079
- function create_if_block_1$6(ctx) {
26176
+ function create_if_block_1$7(ctx) {
26080
26177
  let button;
26081
26178
  let current;
26082
26179
 
@@ -26090,7 +26187,7 @@ function create_if_block_1$6(ctx) {
26090
26187
  type: "button",
26091
26188
  width: "auto",
26092
26189
  onClick: func,
26093
- $$slots: { default: [create_default_slot_2$3] },
26190
+ $$slots: { default: [create_default_slot_2$4] },
26094
26191
  $$scope: { ctx }
26095
26192
  }
26096
26193
  });
@@ -26246,7 +26343,7 @@ function create_default_slot_3(ctx) {
26246
26343
  }
26247
26344
 
26248
26345
  // (45:6) <Button classes="tw_button-apple dark:tw_button-apple_dark" type="button" width="auto" onClick={() => setBtnValue(idp.value)} >
26249
- function create_default_slot_2$3(ctx) {
26346
+ function create_default_slot_2$4(ctx) {
26250
26347
  let appleicon;
26251
26348
  let t0;
26252
26349
  let t1;
@@ -26304,7 +26401,7 @@ function create_default_slot_2$3(ctx) {
26304
26401
  }
26305
26402
 
26306
26403
  // (43:2) <Grid num={1}>
26307
- function create_default_slot_1$5(ctx) {
26404
+ function create_default_slot_1$6(ctx) {
26308
26405
  let show_if;
26309
26406
  let show_if_1;
26310
26407
  let show_if_2;
@@ -26312,7 +26409,7 @@ function create_default_slot_1$5(ctx) {
26312
26409
  let if_block;
26313
26410
  let if_block_anchor;
26314
26411
  let current;
26315
- const if_block_creators = [create_if_block_1$6, create_if_block_2$5, create_if_block_3$2];
26412
+ const if_block_creators = [create_if_block_1$7, create_if_block_2$6, create_if_block_3$2];
26316
26413
  const if_blocks = [];
26317
26414
 
26318
26415
  function select_block_type(ctx, dirty) {
@@ -26401,14 +26498,14 @@ function create_default_slot_1$5(ctx) {
26401
26498
  }
26402
26499
 
26403
26500
  // (42:0) {#each idps as idp}
26404
- function create_each_block$4(ctx) {
26501
+ function create_each_block$5(ctx) {
26405
26502
  let grid;
26406
26503
  let current;
26407
26504
 
26408
26505
  grid = new Grid({
26409
26506
  props: {
26410
26507
  num: 1,
26411
- $$slots: { default: [create_default_slot_1$5] },
26508
+ $$slots: { default: [create_default_slot_1$6] },
26412
26509
  $$scope: { ctx }
26413
26510
  }
26414
26511
  });
@@ -26446,14 +26543,14 @@ function create_each_block$4(ctx) {
26446
26543
  }
26447
26544
 
26448
26545
  // (81:0) {#if stepMetadata && stepMetadata.derived.numOfCallbacks > 1}
26449
- function create_if_block$7(ctx) {
26546
+ function create_if_block$8(ctx) {
26450
26547
  let grid;
26451
26548
  let current;
26452
26549
 
26453
26550
  grid = new Grid({
26454
26551
  props: {
26455
26552
  num: 1,
26456
- $$slots: { default: [create_default_slot$9] },
26553
+ $$slots: { default: [create_default_slot$a] },
26457
26554
  $$scope: { ctx }
26458
26555
  }
26459
26556
  });
@@ -26482,7 +26579,7 @@ function create_if_block$7(ctx) {
26482
26579
  }
26483
26580
 
26484
26581
  // (82:2) <Grid num={1}>
26485
- function create_default_slot$9(ctx) {
26582
+ function create_default_slot$a(ctx) {
26486
26583
  let hr;
26487
26584
 
26488
26585
  return {
@@ -26500,7 +26597,7 @@ function create_default_slot$9(ctx) {
26500
26597
  };
26501
26598
  }
26502
26599
 
26503
- function create_fragment$g(ctx) {
26600
+ function create_fragment$h(ctx) {
26504
26601
  let t;
26505
26602
  let if_block_anchor;
26506
26603
  let current;
@@ -26508,14 +26605,14 @@ function create_fragment$g(ctx) {
26508
26605
  let each_blocks = [];
26509
26606
 
26510
26607
  for (let i = 0; i < each_value.length; i += 1) {
26511
- each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
26608
+ each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
26512
26609
  }
26513
26610
 
26514
26611
  const out = i => transition_out(each_blocks[i], 1, 1, () => {
26515
26612
  each_blocks[i] = null;
26516
26613
  });
26517
26614
 
26518
- let if_block = /*stepMetadata*/ ctx[0] && /*stepMetadata*/ ctx[0].derived.numOfCallbacks > 1 && create_if_block$7(ctx);
26615
+ let if_block = /*stepMetadata*/ ctx[0] && /*stepMetadata*/ ctx[0].derived.numOfCallbacks > 1 && create_if_block$8(ctx);
26519
26616
 
26520
26617
  return {
26521
26618
  c() {
@@ -26543,13 +26640,13 @@ function create_fragment$g(ctx) {
26543
26640
  let i;
26544
26641
 
26545
26642
  for (i = 0; i < each_value.length; i += 1) {
26546
- const child_ctx = get_each_context$4(ctx, each_value, i);
26643
+ const child_ctx = get_each_context$5(ctx, each_value, i);
26547
26644
 
26548
26645
  if (each_blocks[i]) {
26549
26646
  each_blocks[i].p(child_ctx, dirty);
26550
26647
  transition_in(each_blocks[i], 1);
26551
26648
  } else {
26552
- each_blocks[i] = create_each_block$4(child_ctx);
26649
+ each_blocks[i] = create_each_block$5(child_ctx);
26553
26650
  each_blocks[i].c();
26554
26651
  transition_in(each_blocks[i], 1);
26555
26652
  each_blocks[i].m(t.parentNode, t);
@@ -26571,7 +26668,7 @@ function create_fragment$g(ctx) {
26571
26668
  transition_in(if_block, 1);
26572
26669
  }
26573
26670
  } else {
26574
- if_block = create_if_block$7(ctx);
26671
+ if_block = create_if_block$8(ctx);
26575
26672
  if_block.c();
26576
26673
  transition_in(if_block, 1);
26577
26674
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -26615,7 +26712,7 @@ function create_fragment$g(ctx) {
26615
26712
  };
26616
26713
  }
26617
26714
 
26618
- function instance$g($$self, $$props, $$invalidate) {
26715
+ function instance$h($$self, $$props, $$invalidate) {
26619
26716
  const style = {};
26620
26717
  let { callback } = $$props;
26621
26718
  let { callbackMetadata } = $$props;
@@ -26685,7 +26782,7 @@ class Select_idp extends SvelteComponent {
26685
26782
  constructor(options) {
26686
26783
  super();
26687
26784
 
26688
- init(this, options, instance$g, create_fragment$g, safe_not_equal, {
26785
+ init(this, options, instance$h, create_fragment$h, safe_not_equal, {
26689
26786
  style: 4,
26690
26787
  callback: 5,
26691
26788
  callbackMetadata: 3,
@@ -26707,14 +26804,14 @@ function get_each_context_1(ctx, list, i) {
26707
26804
  return child_ctx;
26708
26805
  }
26709
26806
 
26710
- function get_each_context$3(ctx, list, i) {
26807
+ function get_each_context$4(ctx, list, i) {
26711
26808
  const child_ctx = ctx.slice();
26712
26809
  child_ctx[7] = list[i];
26713
26810
  return child_ctx;
26714
26811
  }
26715
26812
 
26716
26813
  // (34:33)
26717
- function create_if_block_1$5(ctx) {
26814
+ function create_if_block_1$6(ctx) {
26718
26815
  let div;
26719
26816
  let p;
26720
26817
  let t0;
@@ -26810,7 +26907,7 @@ function create_if_block_1$5(ctx) {
26810
26907
  }
26811
26908
 
26812
26909
  // (23:0) {#if simplifiedFailures.length}
26813
- function create_if_block$6(ctx) {
26910
+ function create_if_block$7(ctx) {
26814
26911
  let div;
26815
26912
  let p;
26816
26913
  let t0;
@@ -26823,7 +26920,7 @@ function create_if_block$6(ctx) {
26823
26920
  let each_blocks = [];
26824
26921
 
26825
26922
  for (let i = 0; i < each_value.length; i += 1) {
26826
- each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
26923
+ each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
26827
26924
  }
26828
26925
 
26829
26926
  return {
@@ -26866,12 +26963,12 @@ function create_if_block$6(ctx) {
26866
26963
  let i;
26867
26964
 
26868
26965
  for (i = 0; i < each_value.length; i += 1) {
26869
- const child_ctx = get_each_context$3(ctx, each_value, i);
26966
+ const child_ctx = get_each_context$4(ctx, each_value, i);
26870
26967
 
26871
26968
  if (each_blocks[i]) {
26872
26969
  each_blocks[i].p(child_ctx, dirty);
26873
26970
  } else {
26874
- each_blocks[i] = create_each_block$3(child_ctx);
26971
+ each_blocks[i] = create_each_block$4(child_ctx);
26875
26972
  each_blocks[i].c();
26876
26973
  each_blocks[i].m(ul, null);
26877
26974
  }
@@ -26931,7 +27028,7 @@ function create_each_block_1(ctx) {
26931
27028
  }
26932
27029
 
26933
27030
  // (29:6) {#each simplifiedFailures as failure}
26934
- function create_each_block$3(ctx) {
27031
+ function create_each_block$4(ctx) {
26935
27032
  let li;
26936
27033
  let t_value = /*failure*/ ctx[7].message + "";
26937
27034
  let t;
@@ -26955,12 +27052,12 @@ function create_each_block$3(ctx) {
26955
27052
  };
26956
27053
  }
26957
27054
 
26958
- function create_fragment$f(ctx) {
27055
+ function create_fragment$g(ctx) {
26959
27056
  let current_block_type_index;
26960
27057
  let if_block;
26961
27058
  let if_block_anchor;
26962
27059
  let current;
26963
- const if_block_creators = [create_if_block$6, create_if_block_1$5];
27060
+ const if_block_creators = [create_if_block$7, create_if_block_1$6];
26964
27061
  const if_blocks = [];
26965
27062
 
26966
27063
  function select_block_type(ctx, dirty) {
@@ -27041,7 +27138,7 @@ function create_fragment$f(ctx) {
27041
27138
  };
27042
27139
  }
27043
27140
 
27044
- function instance$f($$self, $$props, $$invalidate) {
27141
+ function instance$g($$self, $$props, $$invalidate) {
27045
27142
  let { callback } = $$props;
27046
27143
  let { key = undefined } = $$props;
27047
27144
  let { label } = $$props;
@@ -27096,7 +27193,7 @@ class Policies extends SvelteComponent {
27096
27193
  constructor(options) {
27097
27194
  super();
27098
27195
 
27099
- init(this, options, instance$f, create_fragment$f, safe_not_equal, {
27196
+ init(this, options, instance$g, create_fragment$g, safe_not_equal, {
27100
27197
  callback: 4,
27101
27198
  key: 0,
27102
27199
  label: 5,
@@ -27107,7 +27204,7 @@ class Policies extends SvelteComponent {
27107
27204
 
27108
27205
  /* src/lib/journey/callbacks/string-attribute/string-attribute-input.svelte generated by Svelte v3.55.1 */
27109
27206
 
27110
- function create_default_slot$8(ctx) {
27207
+ function create_default_slot$9(ctx) {
27111
27208
  let policies_1;
27112
27209
  let current;
27113
27210
 
@@ -27150,7 +27247,7 @@ function create_default_slot$8(ctx) {
27150
27247
  };
27151
27248
  }
27152
27249
 
27153
- function create_fragment$e(ctx) {
27250
+ function create_fragment$f(ctx) {
27154
27251
  let input;
27155
27252
  let current;
27156
27253
 
@@ -27168,7 +27265,7 @@ function create_fragment$e(ctx) {
27168
27265
  type: /*type*/ ctx[7],
27169
27266
  showMessage: !!/*isInvalid*/ ctx[8],
27170
27267
  value: /*previousValue*/ ctx[6],
27171
- $$slots: { default: [create_default_slot$8] },
27268
+ $$slots: { default: [create_default_slot$9] },
27172
27269
  $$scope: { ctx }
27173
27270
  }
27174
27271
  });
@@ -27218,7 +27315,7 @@ function create_fragment$e(ctx) {
27218
27315
  };
27219
27316
  }
27220
27317
 
27221
- function instance$e($$self, $$props, $$invalidate) {
27318
+ function instance$f($$self, $$props, $$invalidate) {
27222
27319
  const selfSubmitFunction = null;
27223
27320
  const stepMetadata = null;
27224
27321
  const style = {};
@@ -27298,7 +27395,7 @@ class String_attribute_input extends SvelteComponent {
27298
27395
  constructor(options) {
27299
27396
  super();
27300
27397
 
27301
- init(this, options, instance$e, create_fragment$e, safe_not_equal, {
27398
+ init(this, options, instance$f, create_fragment$f, safe_not_equal, {
27302
27399
  selfSubmitFunction: 10,
27303
27400
  stepMetadata: 11,
27304
27401
  style: 12,
@@ -27322,7 +27419,7 @@ class String_attribute_input extends SvelteComponent {
27322
27419
 
27323
27420
  /* src/lib/components/primitives/link/link.svelte generated by Svelte v3.55.1 */
27324
27421
 
27325
- function create_fragment$d(ctx) {
27422
+ function create_fragment$e(ctx) {
27326
27423
  let a;
27327
27424
  let a_class_value;
27328
27425
  let current;
@@ -27390,7 +27487,7 @@ function create_fragment$d(ctx) {
27390
27487
  };
27391
27488
  }
27392
27489
 
27393
- function instance$d($$self, $$props, $$invalidate) {
27490
+ function instance$e($$self, $$props, $$invalidate) {
27394
27491
  let { $$slots: slots = {}, $$scope } = $$props;
27395
27492
  let { classes = '' } = $$props;
27396
27493
  let { href } = $$props;
@@ -27409,7 +27506,7 @@ function instance$d($$self, $$props, $$invalidate) {
27409
27506
  class Link extends SvelteComponent {
27410
27507
  constructor(options) {
27411
27508
  super();
27412
- init(this, options, instance$d, create_fragment$d, safe_not_equal, { classes: 0, href: 1, target: 2 });
27509
+ init(this, options, instance$e, create_fragment$e, safe_not_equal, { classes: 0, href: 1, target: 2 });
27413
27510
  }
27414
27511
  }
27415
27512
 
@@ -27456,7 +27553,7 @@ function create_else_block$2(ctx) {
27456
27553
  }
27457
27554
 
27458
27555
  // (43:0) {#if $links?.termsAndConditions}
27459
- function create_if_block$5(ctx) {
27556
+ function create_if_block$6(ctx) {
27460
27557
  let link;
27461
27558
  let t;
27462
27559
  let checkbox;
@@ -27467,7 +27564,7 @@ function create_if_block$5(ctx) {
27467
27564
  classes: "tw_block tw_mb-4",
27468
27565
  href: /*$links*/ ctx[2]?.termsAndConditions,
27469
27566
  target: "_blank",
27470
- $$slots: { default: [create_default_slot_1$4] },
27567
+ $$slots: { default: [create_default_slot_1$5] },
27471
27568
  $$scope: { ctx }
27472
27569
  }
27473
27570
  });
@@ -27478,7 +27575,7 @@ function create_if_block$5(ctx) {
27478
27575
  key: /*inputName*/ ctx[1],
27479
27576
  onChange: /*setValue*/ ctx[4],
27480
27577
  value: false,
27481
- $$slots: { default: [create_default_slot$7] },
27578
+ $$slots: { default: [create_default_slot$8] },
27482
27579
  $$scope: { ctx }
27483
27580
  }
27484
27581
  });
@@ -27534,7 +27631,7 @@ function create_if_block$5(ctx) {
27534
27631
  }
27535
27632
 
27536
27633
  // (44:2) <Link classes="tw_block tw_mb-4" href={$links?.termsAndConditions} target="_blank">
27537
- function create_default_slot_1$4(ctx) {
27634
+ function create_default_slot_1$5(ctx) {
27538
27635
  let t_value = interpolate('termsAndConditionsLinkText') + "";
27539
27636
  let t;
27540
27637
 
@@ -27553,7 +27650,7 @@ function create_default_slot_1$4(ctx) {
27553
27650
  }
27554
27651
 
27555
27652
  // (47:2) <Checkbox isFirstInvalidInput={callbackMetadata?.derived.isFirstInvalidInput || false} key={inputName} onChange={setValue} value={false} >
27556
- function create_default_slot$7(ctx) {
27653
+ function create_default_slot$8(ctx) {
27557
27654
  let t;
27558
27655
  let current;
27559
27656
  t = new Locale_strings({ props: { key: "termsAndConditions" } });
@@ -27582,12 +27679,12 @@ function create_default_slot$7(ctx) {
27582
27679
  };
27583
27680
  }
27584
27681
 
27585
- function create_fragment$c(ctx) {
27682
+ function create_fragment$d(ctx) {
27586
27683
  let current_block_type_index;
27587
27684
  let if_block;
27588
27685
  let if_block_anchor;
27589
27686
  let current;
27590
- const if_block_creators = [create_if_block$5, create_else_block$2];
27687
+ const if_block_creators = [create_if_block$6, create_else_block$2];
27591
27688
  const if_blocks = [];
27592
27689
 
27593
27690
  function select_block_type(ctx, dirty) {
@@ -27651,7 +27748,7 @@ function create_fragment$c(ctx) {
27651
27748
  };
27652
27749
  }
27653
27750
 
27654
- function instance$c($$self, $$props, $$invalidate) {
27751
+ function instance$d($$self, $$props, $$invalidate) {
27655
27752
  let $links;
27656
27753
  component_subscribe($$self, links, $$value => $$invalidate(2, $links = $$value));
27657
27754
  const selfSubmitFunction = null;
@@ -27719,7 +27816,7 @@ class Terms_conditions extends SvelteComponent {
27719
27816
  constructor(options) {
27720
27817
  super();
27721
27818
 
27722
- init(this, options, instance$c, create_fragment$c, safe_not_equal, {
27819
+ init(this, options, instance$d, create_fragment$d, safe_not_equal, {
27723
27820
  selfSubmitFunction: 5,
27724
27821
  stepMetadata: 6,
27725
27822
  style: 7,
@@ -27744,7 +27841,7 @@ class Terms_conditions extends SvelteComponent {
27744
27841
 
27745
27842
  /* src/lib/journey/callbacks/text-output/text-output.svelte generated by Svelte v3.55.1 */
27746
27843
 
27747
- function create_default_slot$6(ctx) {
27844
+ function create_default_slot$7(ctx) {
27748
27845
  let html_tag;
27749
27846
  let html_anchor;
27750
27847
 
@@ -27768,14 +27865,14 @@ function create_default_slot$6(ctx) {
27768
27865
  };
27769
27866
  }
27770
27867
 
27771
- function create_fragment$b(ctx) {
27868
+ function create_fragment$c(ctx) {
27772
27869
  let text_1;
27773
27870
  let current;
27774
27871
 
27775
27872
  text_1 = new Text({
27776
27873
  props: {
27777
27874
  classes: "tw_font-bold tw_mt-6",
27778
- $$slots: { default: [create_default_slot$6] },
27875
+ $$slots: { default: [create_default_slot$7] },
27779
27876
  $$scope: { ctx }
27780
27877
  }
27781
27878
  });
@@ -27812,7 +27909,7 @@ function create_fragment$b(ctx) {
27812
27909
  };
27813
27910
  }
27814
27911
 
27815
- function instance$b($$self, $$props, $$invalidate) {
27912
+ function instance$c($$self, $$props, $$invalidate) {
27816
27913
  const callbackMetadata = null;
27817
27914
  const selfSubmitFunction = null;
27818
27915
  const stepMetadata = null;
@@ -27849,7 +27946,7 @@ class Text_output extends SvelteComponent {
27849
27946
  constructor(options) {
27850
27947
  super();
27851
27948
 
27852
- init(this, options, instance$b, create_fragment$b, safe_not_equal, {
27949
+ init(this, options, instance$c, create_fragment$c, safe_not_equal, {
27853
27950
  callbackMetadata: 1,
27854
27951
  selfSubmitFunction: 2,
27855
27952
  stepMetadata: 3,
@@ -27877,7 +27974,7 @@ class Text_output extends SvelteComponent {
27877
27974
 
27878
27975
  /* src/lib/journey/callbacks/unknown/unknown.svelte generated by Svelte v3.55.1 */
27879
27976
 
27880
- function create_fragment$a(ctx) {
27977
+ function create_fragment$b(ctx) {
27881
27978
  let p;
27882
27979
 
27883
27980
  return {
@@ -27898,7 +27995,7 @@ function create_fragment$a(ctx) {
27898
27995
  };
27899
27996
  }
27900
27997
 
27901
- function instance$a($$self, $$props, $$invalidate) {
27998
+ function instance$b($$self, $$props, $$invalidate) {
27902
27999
  const callbackMetadata = null;
27903
28000
  const selfSubmitFunction = null;
27904
28001
  const stepMetadata = null;
@@ -27917,7 +28014,7 @@ class Unknown extends SvelteComponent {
27917
28014
  constructor(options) {
27918
28015
  super();
27919
28016
 
27920
- init(this, options, instance$a, create_fragment$a, safe_not_equal, {
28017
+ init(this, options, instance$b, create_fragment$b, safe_not_equal, {
27921
28018
  callbackMetadata: 1,
27922
28019
  selfSubmitFunction: 2,
27923
28020
  stepMetadata: 3,
@@ -27945,7 +28042,7 @@ class Unknown extends SvelteComponent {
27945
28042
 
27946
28043
  /* src/lib/journey/callbacks/password/validated-create-password.svelte generated by Svelte v3.55.1 */
27947
28044
 
27948
- function create_default_slot$5(ctx) {
28045
+ function create_default_slot$6(ctx) {
27949
28046
  let policies;
27950
28047
  let current;
27951
28048
 
@@ -27986,7 +28083,7 @@ function create_default_slot$5(ctx) {
27986
28083
  };
27987
28084
  }
27988
28085
 
27989
- function create_fragment$9(ctx) {
28086
+ function create_fragment$a(ctx) {
27990
28087
  let base;
27991
28088
  let current;
27992
28089
 
@@ -27999,7 +28096,7 @@ function create_fragment$9(ctx) {
27999
28096
  key: /*inputName*/ ctx[4],
28000
28097
  showMessage: /*isInvalid*/ ctx[5],
28001
28098
  style: /*style*/ ctx[2],
28002
- $$slots: { default: [create_default_slot$5] },
28099
+ $$slots: { default: [create_default_slot$6] },
28003
28100
  $$scope: { ctx }
28004
28101
  }
28005
28102
  });
@@ -28042,7 +28139,7 @@ function create_fragment$9(ctx) {
28042
28139
  };
28043
28140
  }
28044
28141
 
28045
- function instance$9($$self, $$props, $$invalidate) {
28142
+ function instance$a($$self, $$props, $$invalidate) {
28046
28143
  const selfSubmitFunction = null;
28047
28144
  const stepMetadata = null;
28048
28145
  let { callback } = $$props;
@@ -28094,7 +28191,7 @@ class Validated_create_password extends SvelteComponent {
28094
28191
  constructor(options) {
28095
28192
  super();
28096
28193
 
28097
- init(this, options, instance$9, create_fragment$9, safe_not_equal, {
28194
+ init(this, options, instance$a, create_fragment$a, safe_not_equal, {
28098
28195
  selfSubmitFunction: 7,
28099
28196
  stepMetadata: 8,
28100
28197
  callback: 0,
@@ -28114,7 +28211,7 @@ class Validated_create_password extends SvelteComponent {
28114
28211
 
28115
28212
  /* src/lib/journey/callbacks/username/validated-create-username.svelte generated by Svelte v3.55.1 */
28116
28213
 
28117
- function create_default_slot$4(ctx) {
28214
+ function create_default_slot$5(ctx) {
28118
28215
  let policies;
28119
28216
  let current;
28120
28217
 
@@ -28157,7 +28254,7 @@ function create_default_slot$4(ctx) {
28157
28254
  };
28158
28255
  }
28159
28256
 
28160
- function create_fragment$8(ctx) {
28257
+ function create_fragment$9(ctx) {
28161
28258
  let input;
28162
28259
  let current;
28163
28260
 
@@ -28177,7 +28274,7 @@ function create_fragment$8(ctx) {
28177
28274
  value: typeof /*value*/ ctx[7] === 'string'
28178
28275
  ? /*value*/ ctx[7]
28179
28276
  : '',
28180
- $$slots: { default: [create_default_slot$4] },
28277
+ $$slots: { default: [create_default_slot$5] },
28181
28278
  $$scope: { ctx }
28182
28279
  }
28183
28280
  });
@@ -28227,7 +28324,7 @@ function create_fragment$8(ctx) {
28227
28324
  };
28228
28325
  }
28229
28326
 
28230
- function instance$8($$self, $$props, $$invalidate) {
28327
+ function instance$9($$self, $$props, $$invalidate) {
28231
28328
  const selfSubmitFunction = null;
28232
28329
  const stepMetadata = null;
28233
28330
  let { callback } = $$props;
@@ -28299,7 +28396,7 @@ class Validated_create_username extends SvelteComponent {
28299
28396
  constructor(options) {
28300
28397
  super();
28301
28398
 
28302
- init(this, options, instance$8, create_fragment$8, safe_not_equal, {
28399
+ init(this, options, instance$9, create_fragment$9, safe_not_equal, {
28303
28400
  selfSubmitFunction: 10,
28304
28401
  stepMetadata: 11,
28305
28402
  callback: 0,
@@ -29126,7 +29223,7 @@ function create_if_block_3$1(ctx) {
29126
29223
  }
29127
29224
 
29128
29225
  // (114:55)
29129
- function create_if_block_2$4(ctx) {
29226
+ function create_if_block_2$5(ctx) {
29130
29227
  let confirmation;
29131
29228
  let current;
29132
29229
  const confirmation_spread_levels = [/*newProps*/ ctx[19]];
@@ -29169,7 +29266,7 @@ function create_if_block_2$4(ctx) {
29169
29266
  }
29170
29267
 
29171
29268
  // (108:49)
29172
- function create_if_block_1$4(ctx) {
29269
+ function create_if_block_1$5(ctx) {
29173
29270
  let choice;
29174
29271
  let current;
29175
29272
  const choice_spread_levels = [/*newProps*/ ctx[19]];
@@ -29212,7 +29309,7 @@ function create_if_block_1$4(ctx) {
29212
29309
  }
29213
29310
 
29214
29311
  // (102:0) {#if cbType === CallbackType.BooleanAttributeInputCallback}
29215
- function create_if_block$4(ctx) {
29312
+ function create_if_block$5(ctx) {
29216
29313
  let boolean;
29217
29314
  let current;
29218
29315
  const boolean_spread_levels = [/*newProps*/ ctx[19]];
@@ -29254,16 +29351,16 @@ function create_if_block$4(ctx) {
29254
29351
  };
29255
29352
  }
29256
29353
 
29257
- function create_fragment$7(ctx) {
29354
+ function create_fragment$8(ctx) {
29258
29355
  let current_block_type_index;
29259
29356
  let if_block;
29260
29357
  let if_block_anchor;
29261
29358
  let current;
29262
29359
 
29263
29360
  const if_block_creators = [
29264
- create_if_block$4,
29265
- create_if_block_1$4,
29266
- create_if_block_2$4,
29361
+ create_if_block$5,
29362
+ create_if_block_1$5,
29363
+ create_if_block_2$5,
29267
29364
  create_if_block_3$1,
29268
29365
  create_if_block_4,
29269
29366
  create_if_block_5,
@@ -29378,7 +29475,7 @@ function create_fragment$7(ctx) {
29378
29475
  };
29379
29476
  }
29380
29477
 
29381
- function instance$7($$self, $$props, $$invalidate) {
29478
+ function instance$8($$self, $$props, $$invalidate) {
29382
29479
  let { props } = $$props;
29383
29480
  let cbType;
29384
29481
  let _BooleanAttributeInputCallback;
@@ -29490,13 +29587,13 @@ function instance$7($$self, $$props, $$invalidate) {
29490
29587
  class Callback_mapper extends SvelteComponent {
29491
29588
  constructor(options) {
29492
29589
  super();
29493
- init(this, options, instance$7, create_fragment$7, safe_not_equal, { props: 0 });
29590
+ init(this, options, instance$8, create_fragment$8, safe_not_equal, { props: 0 });
29494
29591
  }
29495
29592
  }
29496
29593
 
29497
29594
  /* src/lib/journey/stages/generic.svelte generated by Svelte v3.55.1 */
29498
29595
 
29499
- function get_each_context$2(ctx, list, i) {
29596
+ function get_each_context$3(ctx, list, i) {
29500
29597
  const child_ctx = ctx.slice();
29501
29598
  child_ctx[15] = list[i];
29502
29599
  child_ctx[17] = i;
@@ -29504,7 +29601,7 @@ function get_each_context$2(ctx, list, i) {
29504
29601
  }
29505
29602
 
29506
29603
  // (71:2) {#if form?.icon}
29507
- function create_if_block_2$3(ctx) {
29604
+ function create_if_block_2$4(ctx) {
29508
29605
  let div;
29509
29606
  let shieldicon;
29510
29607
  let current;
@@ -29544,7 +29641,7 @@ function create_if_block_2$3(ctx) {
29544
29641
  }
29545
29642
 
29546
29643
  // (87:2) {#if form?.message}
29547
- function create_if_block_1$3(ctx) {
29644
+ function create_if_block_1$4(ctx) {
29548
29645
  let alert;
29549
29646
  let current;
29550
29647
 
@@ -29553,7 +29650,7 @@ function create_if_block_1$3(ctx) {
29553
29650
  id: formFailureMessageId,
29554
29651
  needsFocus: /*alertNeedsFocus*/ ctx[5],
29555
29652
  type: "error",
29556
- $$slots: { default: [create_default_slot_2$2] },
29653
+ $$slots: { default: [create_default_slot_2$3] },
29557
29654
  $$scope: { ctx }
29558
29655
  }
29559
29656
  });
@@ -29592,7 +29689,7 @@ function create_if_block_1$3(ctx) {
29592
29689
  }
29593
29690
 
29594
29691
  // (88:4) <Alert id={formFailureMessageId} needsFocus={alertNeedsFocus} type="error">
29595
- function create_default_slot_2$2(ctx) {
29692
+ function create_default_slot_2$3(ctx) {
29596
29693
  let t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "";
29597
29694
  let t;
29598
29695
 
@@ -29613,7 +29710,7 @@ function create_default_slot_2$2(ctx) {
29613
29710
  }
29614
29711
 
29615
29712
  // (93:2) {#each step?.callbacks as callback, idx}
29616
- function create_each_block$2(ctx) {
29713
+ function create_each_block$3(ctx) {
29617
29714
  let callbackmapper;
29618
29715
  let current;
29619
29716
 
@@ -29666,7 +29763,7 @@ function create_each_block$2(ctx) {
29666
29763
  }
29667
29764
 
29668
29765
  // (105:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
29669
- function create_if_block$3(ctx) {
29766
+ function create_if_block$4(ctx) {
29670
29767
  let button;
29671
29768
  let current;
29672
29769
 
@@ -29676,7 +29773,7 @@ function create_if_block$3(ctx) {
29676
29773
  style: "primary",
29677
29774
  type: "submit",
29678
29775
  width: "full",
29679
- $$slots: { default: [create_default_slot_1$3] },
29776
+ $$slots: { default: [create_default_slot_1$4] },
29680
29777
  $$scope: { ctx }
29681
29778
  }
29682
29779
  });
@@ -29715,7 +29812,7 @@ function create_if_block$3(ctx) {
29715
29812
  }
29716
29813
 
29717
29814
  // (106:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
29718
- function create_default_slot_1$3(ctx) {
29815
+ function create_default_slot_1$4(ctx) {
29719
29816
  let t;
29720
29817
  let current;
29721
29818
  t = new Locale_strings({ props: { key: "nextButton" } });
@@ -29745,7 +29842,7 @@ function create_default_slot_1$3(ctx) {
29745
29842
  }
29746
29843
 
29747
29844
  // (64:0) <Form bind:formEl ariaDescribedBy={formAriaDescriptor} id={formElementId} needsFocus={formNeedsFocus} onSubmitWhenValid={submitFormWrapper} >
29748
- function create_default_slot$3(ctx) {
29845
+ function create_default_slot$4(ctx) {
29749
29846
  let t0;
29750
29847
  let header;
29751
29848
  let h1;
@@ -29759,7 +29856,7 @@ function create_default_slot$3(ctx) {
29759
29856
  let t5;
29760
29857
  let backto;
29761
29858
  let current;
29762
- let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$3();
29859
+ let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$4();
29763
29860
 
29764
29861
  sanitize0 = new Server_strings({
29765
29862
  props: {
@@ -29775,19 +29872,19 @@ function create_default_slot$3(ctx) {
29775
29872
  }
29776
29873
  });
29777
29874
 
29778
- let if_block1 = /*form*/ ctx[1]?.message && create_if_block_1$3(ctx);
29875
+ let if_block1 = /*form*/ ctx[1]?.message && create_if_block_1$4(ctx);
29779
29876
  let each_value = /*step*/ ctx[4]?.callbacks;
29780
29877
  let each_blocks = [];
29781
29878
 
29782
29879
  for (let i = 0; i < each_value.length; i += 1) {
29783
- each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
29880
+ each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
29784
29881
  }
29785
29882
 
29786
29883
  const out = i => transition_out(each_blocks[i], 1, 1, () => {
29787
29884
  each_blocks[i] = null;
29788
29885
  });
29789
29886
 
29790
- let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$3(ctx);
29887
+ let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$4(ctx);
29791
29888
  backto = new Back_to({ props: { journey: /*journey*/ ctx[2] } });
29792
29889
 
29793
29890
  return {
@@ -29847,7 +29944,7 @@ function create_default_slot$3(ctx) {
29847
29944
  transition_in(if_block0, 1);
29848
29945
  }
29849
29946
  } else {
29850
- if_block0 = create_if_block_2$3();
29947
+ if_block0 = create_if_block_2$4();
29851
29948
  if_block0.c();
29852
29949
  transition_in(if_block0, 1);
29853
29950
  if_block0.m(t0.parentNode, t0);
@@ -29877,7 +29974,7 @@ function create_default_slot$3(ctx) {
29877
29974
  transition_in(if_block1, 1);
29878
29975
  }
29879
29976
  } else {
29880
- if_block1 = create_if_block_1$3(ctx);
29977
+ if_block1 = create_if_block_1$4(ctx);
29881
29978
  if_block1.c();
29882
29979
  transition_in(if_block1, 1);
29883
29980
  if_block1.m(t3.parentNode, t3);
@@ -29897,13 +29994,13 @@ function create_default_slot$3(ctx) {
29897
29994
  let i;
29898
29995
 
29899
29996
  for (i = 0; i < each_value.length; i += 1) {
29900
- const child_ctx = get_each_context$2(ctx, each_value, i);
29997
+ const child_ctx = get_each_context$3(ctx, each_value, i);
29901
29998
 
29902
29999
  if (each_blocks[i]) {
29903
30000
  each_blocks[i].p(child_ctx, dirty);
29904
30001
  transition_in(each_blocks[i], 1);
29905
30002
  } else {
29906
- each_blocks[i] = create_each_block$2(child_ctx);
30003
+ each_blocks[i] = create_each_block$3(child_ctx);
29907
30004
  each_blocks[i].c();
29908
30005
  transition_in(each_blocks[i], 1);
29909
30006
  each_blocks[i].m(t4.parentNode, t4);
@@ -29927,7 +30024,7 @@ function create_default_slot$3(ctx) {
29927
30024
  transition_in(if_block2, 1);
29928
30025
  }
29929
30026
  } else {
29930
- if_block2 = create_if_block$3(ctx);
30027
+ if_block2 = create_if_block$4(ctx);
29931
30028
  if_block2.c();
29932
30029
  transition_in(if_block2, 1);
29933
30030
  if_block2.m(t5.parentNode, t5);
@@ -29995,7 +30092,7 @@ function create_default_slot$3(ctx) {
29995
30092
  };
29996
30093
  }
29997
30094
 
29998
- function create_fragment$6(ctx) {
30095
+ function create_fragment$7(ctx) {
29999
30096
  let form_1;
30000
30097
  let updating_formEl;
30001
30098
  let current;
@@ -30009,7 +30106,7 @@ function create_fragment$6(ctx) {
30009
30106
  id: formElementId,
30010
30107
  needsFocus: /*formNeedsFocus*/ ctx[8],
30011
30108
  onSubmitWhenValid: /*submitFormWrapper*/ ctx[12],
30012
- $$slots: { default: [create_default_slot$3] },
30109
+ $$slots: { default: [create_default_slot$4] },
30013
30110
  $$scope: { ctx }
30014
30111
  };
30015
30112
 
@@ -30064,7 +30161,7 @@ const formFailureMessageId = 'genericStepFailureMessage';
30064
30161
  const formHeaderId = 'genericStepHeader';
30065
30162
  const formElementId = 'genericStepForm';
30066
30163
 
30067
- function instance$6($$self, $$props, $$invalidate) {
30164
+ function instance$7($$self, $$props, $$invalidate) {
30068
30165
  let $style;
30069
30166
  component_subscribe($$self, style, $$value => $$invalidate(10, $style = $$value));
30070
30167
  let { form } = $$props;
@@ -30159,7 +30256,7 @@ class Generic extends SvelteComponent {
30159
30256
  constructor(options) {
30160
30257
  super();
30161
30258
 
30162
- init(this, options, instance$6, create_fragment$6, safe_not_equal, {
30259
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, {
30163
30260
  form: 1,
30164
30261
  formEl: 0,
30165
30262
  journey: 2,
@@ -30169,9 +30266,9 @@ class Generic extends SvelteComponent {
30169
30266
  }
30170
30267
  }
30171
30268
 
30172
- /* src/lib/components/icons/new-user-icon.svelte generated by Svelte v3.55.1 */
30269
+ /* src/lib/components/icons/key-icon.svelte generated by Svelte v3.55.1 */
30173
30270
 
30174
- function create_fragment$5(ctx) {
30271
+ function create_fragment$6(ctx) {
30175
30272
  let svg;
30176
30273
  let path0;
30177
30274
  let path1;
@@ -30189,12 +30286,12 @@ function create_fragment$5(ctx) {
30189
30286
  if (default_slot) default_slot.c();
30190
30287
  attr(path0, "d", "M0 0h24v24H0z");
30191
30288
  attr(path0, "fill", "none");
30192
- 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");
30289
+ 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");
30193
30290
  attr(svg, "class", /*classes*/ ctx[0]);
30194
- attr(svg, "xmlns", "http://www.w3.org/2000/svg");
30195
30291
  attr(svg, "height", /*size*/ ctx[1]);
30196
- attr(svg, "viewBox", "0 0 24 24");
30197
30292
  attr(svg, "width", /*size*/ ctx[1]);
30293
+ attr(svg, "viewBox", "0 0 24 24");
30294
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
30198
30295
  },
30199
30296
  m(target, anchor) {
30200
30297
  insert(target, svg, anchor);
@@ -30252,7 +30349,7 @@ function create_fragment$5(ctx) {
30252
30349
  };
30253
30350
  }
30254
30351
 
30255
- function instance$5($$self, $$props, $$invalidate) {
30352
+ function instance$6($$self, $$props, $$invalidate) {
30256
30353
  let { $$slots: slots = {}, $$scope } = $$props;
30257
30354
  let { classes = '' } = $$props;
30258
30355
  let { size = '24px' } = $$props;
@@ -30266,29 +30363,29 @@ function instance$5($$self, $$props, $$invalidate) {
30266
30363
  return [classes, size, $$scope, slots];
30267
30364
  }
30268
30365
 
30269
- class New_user_icon extends SvelteComponent {
30366
+ class Key_icon extends SvelteComponent {
30270
30367
  constructor(options) {
30271
30368
  super();
30272
- init(this, options, instance$5, create_fragment$5, safe_not_equal, { classes: 0, size: 1 });
30369
+ init(this, options, instance$6, create_fragment$6, safe_not_equal, { classes: 0, size: 1 });
30273
30370
  }
30274
30371
  }
30275
30372
 
30276
- /* src/lib/journey/stages/registration.svelte generated by Svelte v3.55.1 */
30373
+ /* src/lib/journey/stages/one-time-password.svelte generated by Svelte v3.55.1 */
30277
30374
 
30278
- function get_each_context$1(ctx, list, i) {
30375
+ function get_each_context$2(ctx, list, i) {
30279
30376
  const child_ctx = ctx.slice();
30280
- child_ctx[12] = list[i];
30281
- child_ctx[14] = i;
30377
+ child_ctx[10] = list[i];
30378
+ child_ctx[12] = i;
30282
30379
  return child_ctx;
30283
30380
  }
30284
30381
 
30285
- // (44:2) {#if form?.icon}
30286
- function create_if_block_2$2(ctx) {
30382
+ // (39:2) {#if form?.icon}
30383
+ function create_if_block_2$3(ctx) {
30287
30384
  let div;
30288
- let newusericon;
30385
+ let keyicon;
30289
30386
  let current;
30290
30387
 
30291
- newusericon = new New_user_icon({
30388
+ keyicon = new Key_icon({
30292
30389
  props: {
30293
30390
  classes: "tw_text-gray-400 tw_fill-current",
30294
30391
  size: "72px"
@@ -30298,32 +30395,32 @@ function create_if_block_2$2(ctx) {
30298
30395
  return {
30299
30396
  c() {
30300
30397
  div = element("div");
30301
- create_component(newusericon.$$.fragment);
30398
+ create_component(keyicon.$$.fragment);
30302
30399
  attr(div, "class", "tw_flex tw_justify-center");
30303
30400
  },
30304
30401
  m(target, anchor) {
30305
30402
  insert(target, div, anchor);
30306
- mount_component(newusericon, div, null);
30403
+ mount_component(keyicon, div, null);
30307
30404
  current = true;
30308
30405
  },
30309
30406
  i(local) {
30310
30407
  if (current) return;
30311
- transition_in(newusericon.$$.fragment, local);
30408
+ transition_in(keyicon.$$.fragment, local);
30312
30409
  current = true;
30313
30410
  },
30314
30411
  o(local) {
30315
- transition_out(newusericon.$$.fragment, local);
30412
+ transition_out(keyicon.$$.fragment, local);
30316
30413
  current = false;
30317
30414
  },
30318
30415
  d(detaching) {
30319
30416
  if (detaching) detach(div);
30320
- destroy_component(newusericon);
30417
+ destroy_component(keyicon);
30321
30418
  }
30322
30419
  };
30323
30420
  }
30324
30421
 
30325
- // (59:2) {#if form.message}
30326
- function create_if_block_1$2(ctx) {
30422
+ // (53:2) {#if form?.message}
30423
+ function create_if_block_1$3(ctx) {
30327
30424
  let alert;
30328
30425
  let current;
30329
30426
 
@@ -30332,7 +30429,7 @@ function create_if_block_1$2(ctx) {
30332
30429
  id: "formFailureMessageAlert",
30333
30430
  needsFocus: /*alertNeedsFocus*/ ctx[5],
30334
30431
  type: "error",
30335
- $$slots: { default: [create_default_slot_2$1] },
30432
+ $$slots: { default: [create_default_slot_2$2] },
30336
30433
  $$scope: { ctx }
30337
30434
  }
30338
30435
  });
@@ -30349,7 +30446,7 @@ function create_if_block_1$2(ctx) {
30349
30446
  const alert_changes = {};
30350
30447
  if (dirty & /*alertNeedsFocus*/ 32) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[5];
30351
30448
 
30352
- if (dirty & /*$$scope, formMessageKey, form*/ 32834) {
30449
+ if (dirty & /*$$scope, formMessageKey, form*/ 8258) {
30353
30450
  alert_changes.$$scope = { dirty, ctx };
30354
30451
  }
30355
30452
 
@@ -30370,8 +30467,8 @@ function create_if_block_1$2(ctx) {
30370
30467
  };
30371
30468
  }
30372
30469
 
30373
- // (60:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
30374
- function create_default_slot_2$1(ctx) {
30470
+ // (54:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
30471
+ function create_default_slot_2$2(ctx) {
30375
30472
  let t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "";
30376
30473
  let t;
30377
30474
 
@@ -30391,19 +30488,19 @@ function create_default_slot_2$1(ctx) {
30391
30488
  };
30392
30489
  }
30393
30490
 
30394
- // (65:2) {#each step?.callbacks as callback, idx}
30395
- function create_each_block$1(ctx) {
30491
+ // (59:2) {#each step?.callbacks as callback, idx}
30492
+ function create_each_block$2(ctx) {
30396
30493
  let callbackmapper;
30397
30494
  let current;
30398
30495
 
30399
30496
  callbackmapper = new Callback_mapper({
30400
30497
  props: {
30401
30498
  props: {
30402
- callback: /*callback*/ ctx[12],
30403
- callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[14]],
30404
- selfSubmitFunction: /*determineSubmission*/ ctx[9],
30499
+ callback: /*callback*/ ctx[10],
30500
+ callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[12]],
30501
+ selfSubmitFunction: /*determineSubmission*/ ctx[8],
30405
30502
  stepMetadata: /*metadata*/ ctx[3]?.step && { .../*metadata*/ ctx[3].step },
30406
- style: /*$style*/ ctx[8]
30503
+ style: /*$style*/ ctx[7]
30407
30504
  }
30408
30505
  }
30409
30506
  });
@@ -30419,12 +30516,12 @@ function create_each_block$1(ctx) {
30419
30516
  p(ctx, dirty) {
30420
30517
  const callbackmapper_changes = {};
30421
30518
 
30422
- if (dirty & /*step, metadata, $style*/ 280) callbackmapper_changes.props = {
30423
- callback: /*callback*/ ctx[12],
30424
- callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[14]],
30425
- selfSubmitFunction: /*determineSubmission*/ ctx[9],
30519
+ if (dirty & /*step, metadata, $style*/ 152) callbackmapper_changes.props = {
30520
+ callback: /*callback*/ ctx[10],
30521
+ callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[12]],
30522
+ selfSubmitFunction: /*determineSubmission*/ ctx[8],
30426
30523
  stepMetadata: /*metadata*/ ctx[3]?.step && { .../*metadata*/ ctx[3].step },
30427
- style: /*$style*/ ctx[8]
30524
+ style: /*$style*/ ctx[7]
30428
30525
  };
30429
30526
 
30430
30527
  callbackmapper.$set(callbackmapper_changes);
@@ -30444,8 +30541,8 @@ function create_each_block$1(ctx) {
30444
30541
  };
30445
30542
  }
30446
30543
 
30447
- // (77:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
30448
- function create_if_block$2(ctx) {
30544
+ // (71:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
30545
+ function create_if_block$3(ctx) {
30449
30546
  let button;
30450
30547
  let current;
30451
30548
 
@@ -30455,7 +30552,7 @@ function create_if_block$2(ctx) {
30455
30552
  style: "primary",
30456
30553
  type: "submit",
30457
30554
  width: "full",
30458
- $$slots: { default: [create_default_slot_1$2] },
30555
+ $$slots: { default: [create_default_slot_1$3] },
30459
30556
  $$scope: { ctx }
30460
30557
  }
30461
30558
  });
@@ -30472,7 +30569,7 @@ function create_if_block$2(ctx) {
30472
30569
  const button_changes = {};
30473
30570
  if (dirty & /*journey*/ 4) button_changes.busy = /*journey*/ ctx[2]?.loading;
30474
30571
 
30475
- if (dirty & /*$$scope*/ 32768) {
30572
+ if (dirty & /*$$scope*/ 8192) {
30476
30573
  button_changes.$$scope = { dirty, ctx };
30477
30574
  }
30478
30575
 
@@ -30493,11 +30590,11 @@ function create_if_block$2(ctx) {
30493
30590
  };
30494
30591
  }
30495
30592
 
30496
- // (78:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
30497
- function create_default_slot_1$2(ctx) {
30593
+ // (72:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
30594
+ function create_default_slot_1$3(ctx) {
30498
30595
  let t;
30499
30596
  let current;
30500
- t = new Locale_strings({ props: { key: "registerButton" } });
30597
+ t = new Locale_strings({ props: { key: "loginButton" } });
30501
30598
 
30502
30599
  return {
30503
30600
  c() {
@@ -30523,8 +30620,8 @@ function create_default_slot_1$2(ctx) {
30523
30620
  };
30524
30621
  }
30525
30622
 
30526
- // (43:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
30527
- function create_default_slot$2(ctx) {
30623
+ // (38:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
30624
+ function create_default_slot$3(ctx) {
30528
30625
  let t0;
30529
30626
  let h1;
30530
30627
  let t1;
@@ -30536,26 +30633,29 @@ function create_default_slot$2(ctx) {
30536
30633
  let t6;
30537
30634
  let if_block2_anchor;
30538
30635
  let current;
30539
- let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$2();
30540
- t1 = new Locale_strings({ props: { key: "registerHeader" } });
30636
+ let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$3();
30637
+
30638
+ t1 = new Locale_strings({
30639
+ props: { key: "twoFactorAuthentication" }
30640
+ });
30541
30641
 
30542
30642
  t3 = new Locale_strings({
30543
- props: { key: "alreadyHaveAnAccount", html: true }
30643
+ props: { key: "useTheAuthenticatorAppOnYourPhone" }
30544
30644
  });
30545
30645
 
30546
- let if_block1 = /*form*/ ctx[1].message && create_if_block_1$2(ctx);
30646
+ let if_block1 = /*form*/ ctx[1]?.message && create_if_block_1$3(ctx);
30547
30647
  let each_value = /*step*/ ctx[4]?.callbacks;
30548
30648
  let each_blocks = [];
30549
30649
 
30550
30650
  for (let i = 0; i < each_value.length; i += 1) {
30551
- each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
30651
+ each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
30552
30652
  }
30553
30653
 
30554
30654
  const out = i => transition_out(each_blocks[i], 1, 1, () => {
30555
30655
  each_blocks[i] = null;
30556
30656
  });
30557
30657
 
30558
- let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$2(ctx);
30658
+ let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$3(ctx);
30559
30659
 
30560
30660
  return {
30561
30661
  c() {
@@ -30578,7 +30678,7 @@ function create_default_slot$2(ctx) {
30578
30678
  if (if_block2) if_block2.c();
30579
30679
  if_block2_anchor = empty();
30580
30680
  attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
30581
- 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");
30681
+ 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");
30582
30682
  },
30583
30683
  m(target, anchor) {
30584
30684
  if (if_block0) if_block0.m(target, anchor);
@@ -30588,7 +30688,6 @@ function create_default_slot$2(ctx) {
30588
30688
  insert(target, t2, anchor);
30589
30689
  insert(target, p, anchor);
30590
30690
  mount_component(t3, p, null);
30591
- /*p_binding*/ ctx[10](p);
30592
30691
  insert(target, t4, anchor);
30593
30692
  if (if_block1) if_block1.m(target, anchor);
30594
30693
  insert(target, t5, anchor);
@@ -30609,7 +30708,7 @@ function create_default_slot$2(ctx) {
30609
30708
  transition_in(if_block0, 1);
30610
30709
  }
30611
30710
  } else {
30612
- if_block0 = create_if_block_2$2();
30711
+ if_block0 = create_if_block_2$3();
30613
30712
  if_block0.c();
30614
30713
  transition_in(if_block0, 1);
30615
30714
  if_block0.m(t0.parentNode, t0);
@@ -30624,7 +30723,7 @@ function create_default_slot$2(ctx) {
30624
30723
  check_outros();
30625
30724
  }
30626
30725
 
30627
- if (/*form*/ ctx[1].message) {
30726
+ if (/*form*/ ctx[1]?.message) {
30628
30727
  if (if_block1) {
30629
30728
  if_block1.p(ctx, dirty);
30630
30729
 
@@ -30632,7 +30731,7 @@ function create_default_slot$2(ctx) {
30632
30731
  transition_in(if_block1, 1);
30633
30732
  }
30634
30733
  } else {
30635
- if_block1 = create_if_block_1$2(ctx);
30734
+ if_block1 = create_if_block_1$3(ctx);
30636
30735
  if_block1.c();
30637
30736
  transition_in(if_block1, 1);
30638
30737
  if_block1.m(t5.parentNode, t5);
@@ -30647,18 +30746,18 @@ function create_default_slot$2(ctx) {
30647
30746
  check_outros();
30648
30747
  }
30649
30748
 
30650
- if (dirty & /*step, metadata, determineSubmission, $style*/ 792) {
30749
+ if (dirty & /*step, metadata, determineSubmission, $style*/ 408) {
30651
30750
  each_value = /*step*/ ctx[4]?.callbacks;
30652
30751
  let i;
30653
30752
 
30654
30753
  for (i = 0; i < each_value.length; i += 1) {
30655
- const child_ctx = get_each_context$1(ctx, each_value, i);
30754
+ const child_ctx = get_each_context$2(ctx, each_value, i);
30656
30755
 
30657
30756
  if (each_blocks[i]) {
30658
30757
  each_blocks[i].p(child_ctx, dirty);
30659
30758
  transition_in(each_blocks[i], 1);
30660
30759
  } else {
30661
- each_blocks[i] = create_each_block$1(child_ctx);
30760
+ each_blocks[i] = create_each_block$2(child_ctx);
30662
30761
  each_blocks[i].c();
30663
30762
  transition_in(each_blocks[i], 1);
30664
30763
  each_blocks[i].m(t6.parentNode, t6);
@@ -30682,7 +30781,7 @@ function create_default_slot$2(ctx) {
30682
30781
  transition_in(if_block2, 1);
30683
30782
  }
30684
30783
  } else {
30685
- if_block2 = create_if_block$2(ctx);
30784
+ if_block2 = create_if_block$3(ctx);
30686
30785
  if_block2.c();
30687
30786
  transition_in(if_block2, 1);
30688
30787
  if_block2.m(if_block2_anchor.parentNode, if_block2_anchor);
@@ -30733,7 +30832,6 @@ function create_default_slot$2(ctx) {
30733
30832
  if (detaching) detach(t2);
30734
30833
  if (detaching) detach(p);
30735
30834
  destroy_component(t3);
30736
- /*p_binding*/ ctx[10](null);
30737
30835
  if (detaching) detach(t4);
30738
30836
  if (if_block1) if_block1.d(detaching);
30739
30837
  if (detaching) detach(t5);
@@ -30745,19 +30843,19 @@ function create_default_slot$2(ctx) {
30745
30843
  };
30746
30844
  }
30747
30845
 
30748
- function create_fragment$4(ctx) {
30846
+ function create_fragment$5(ctx) {
30749
30847
  let form_1;
30750
30848
  let updating_formEl;
30751
30849
  let current;
30752
30850
 
30753
30851
  function form_1_formEl_binding(value) {
30754
- /*form_1_formEl_binding*/ ctx[11](value);
30852
+ /*form_1_formEl_binding*/ ctx[9](value);
30755
30853
  }
30756
30854
 
30757
30855
  let form_1_props = {
30758
30856
  ariaDescribedBy: "formFailureMessageAlert",
30759
30857
  onSubmitWhenValid: /*form*/ ctx[1]?.submit,
30760
- $$slots: { default: [create_default_slot$2] },
30858
+ $$slots: { default: [create_default_slot$3] },
30761
30859
  $$scope: { ctx }
30762
30860
  };
30763
30861
 
@@ -30780,7 +30878,7 @@ function create_fragment$4(ctx) {
30780
30878
  const form_1_changes = {};
30781
30879
  if (dirty & /*form*/ 2) form_1_changes.onSubmitWhenValid = /*form*/ ctx[1]?.submit;
30782
30880
 
30783
- if (dirty & /*$$scope, journey, metadata, step, $style, alertNeedsFocus, formMessageKey, form, linkWrapper*/ 33278) {
30881
+ if (dirty & /*$$scope, journey, metadata, step, $style, alertNeedsFocus, formMessageKey, form*/ 8446) {
30784
30882
  form_1_changes.$$scope = { dirty, ctx };
30785
30883
  }
30786
30884
 
@@ -30807,9 +30905,9 @@ function create_fragment$4(ctx) {
30807
30905
  };
30808
30906
  }
30809
30907
 
30810
- function instance$4($$self, $$props, $$invalidate) {
30908
+ function instance$5($$self, $$props, $$invalidate) {
30811
30909
  let $style;
30812
- component_subscribe($$self, style, $$value => $$invalidate(8, $style = $$value));
30910
+ component_subscribe($$self, style, $$value => $$invalidate(7, $style = $$value));
30813
30911
  let { form } = $$props;
30814
30912
  let { formEl = null } = $$props;
30815
30913
  let { journey } = $$props;
@@ -30817,7 +30915,6 @@ function instance$4($$self, $$props, $$invalidate) {
30817
30915
  let { step } = $$props;
30818
30916
  let alertNeedsFocus = false;
30819
30917
  let formMessageKey = '';
30820
- let linkWrapper;
30821
30918
 
30822
30919
  function determineSubmission() {
30823
30920
  // TODO: the below is more strict; all self-submitting cbs have to complete before submitting
@@ -30832,15 +30929,6 @@ function instance$4($$self, $$props, $$invalidate) {
30832
30929
  $$invalidate(5, alertNeedsFocus = !!form?.message);
30833
30930
  });
30834
30931
 
30835
- onMount(() => captureLinks(linkWrapper, journey));
30836
-
30837
- function p_binding($$value) {
30838
- binding_callbacks[$$value ? 'unshift' : 'push'](() => {
30839
- linkWrapper = $$value;
30840
- $$invalidate(7, linkWrapper);
30841
- });
30842
- }
30843
-
30844
30932
  function form_1_formEl_binding(value) {
30845
30933
  formEl = value;
30846
30934
  $$invalidate(0, formEl);
@@ -30870,19 +30958,17 @@ function instance$4($$self, $$props, $$invalidate) {
30870
30958
  step,
30871
30959
  alertNeedsFocus,
30872
30960
  formMessageKey,
30873
- linkWrapper,
30874
30961
  $style,
30875
30962
  determineSubmission,
30876
- p_binding,
30877
30963
  form_1_formEl_binding
30878
30964
  ];
30879
30965
  }
30880
30966
 
30881
- class Registration extends SvelteComponent {
30967
+ class One_time_password extends SvelteComponent {
30882
30968
  constructor(options) {
30883
30969
  super();
30884
30970
 
30885
- init(this, options, instance$4, create_fragment$4, safe_not_equal, {
30971
+ init(this, options, instance$5, create_fragment$5, safe_not_equal, {
30886
30972
  form: 1,
30887
30973
  formEl: 0,
30888
30974
  journey: 2,
@@ -30892,9 +30978,9 @@ class Registration extends SvelteComponent {
30892
30978
  }
30893
30979
  }
30894
30980
 
30895
- /* src/lib/components/icons/key-icon.svelte generated by Svelte v3.55.1 */
30981
+ /* src/lib/components/icons/new-user-icon.svelte generated by Svelte v3.55.1 */
30896
30982
 
30897
- function create_fragment$3(ctx) {
30983
+ function create_fragment$4(ctx) {
30898
30984
  let svg;
30899
30985
  let path0;
30900
30986
  let path1;
@@ -30912,12 +30998,12 @@ function create_fragment$3(ctx) {
30912
30998
  if (default_slot) default_slot.c();
30913
30999
  attr(path0, "d", "M0 0h24v24H0z");
30914
31000
  attr(path0, "fill", "none");
30915
- 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");
31001
+ 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");
30916
31002
  attr(svg, "class", /*classes*/ ctx[0]);
31003
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
30917
31004
  attr(svg, "height", /*size*/ ctx[1]);
30918
- attr(svg, "width", /*size*/ ctx[1]);
30919
31005
  attr(svg, "viewBox", "0 0 24 24");
30920
- attr(svg, "xmlns", "http://www.w3.org/2000/svg");
31006
+ attr(svg, "width", /*size*/ ctx[1]);
30921
31007
  },
30922
31008
  m(target, anchor) {
30923
31009
  insert(target, svg, anchor);
@@ -30975,7 +31061,7 @@ function create_fragment$3(ctx) {
30975
31061
  };
30976
31062
  }
30977
31063
 
30978
- function instance$3($$self, $$props, $$invalidate) {
31064
+ function instance$4($$self, $$props, $$invalidate) {
30979
31065
  let { $$slots: slots = {}, $$scope } = $$props;
30980
31066
  let { classes = '' } = $$props;
30981
31067
  let { size = '24px' } = $$props;
@@ -30989,10 +31075,629 @@ function instance$3($$self, $$props, $$invalidate) {
30989
31075
  return [classes, size, $$scope, slots];
30990
31076
  }
30991
31077
 
30992
- class Key_icon extends SvelteComponent {
31078
+ class New_user_icon extends SvelteComponent {
30993
31079
  constructor(options) {
30994
31080
  super();
30995
- init(this, options, instance$3, create_fragment$3, safe_not_equal, { classes: 0, size: 1 });
31081
+ init(this, options, instance$4, create_fragment$4, safe_not_equal, { classes: 0, size: 1 });
31082
+ }
31083
+ }
31084
+
31085
+ /* src/lib/journey/stages/registration.svelte generated by Svelte v3.55.1 */
31086
+
31087
+ function get_each_context$1(ctx, list, i) {
31088
+ const child_ctx = ctx.slice();
31089
+ child_ctx[12] = list[i];
31090
+ child_ctx[14] = i;
31091
+ return child_ctx;
31092
+ }
31093
+
31094
+ // (44:2) {#if form?.icon}
31095
+ function create_if_block_2$2(ctx) {
31096
+ let div;
31097
+ let newusericon;
31098
+ let current;
31099
+
31100
+ newusericon = new New_user_icon({
31101
+ props: {
31102
+ classes: "tw_text-gray-400 tw_fill-current",
31103
+ size: "72px"
31104
+ }
31105
+ });
31106
+
31107
+ return {
31108
+ c() {
31109
+ div = element("div");
31110
+ create_component(newusericon.$$.fragment);
31111
+ attr(div, "class", "tw_flex tw_justify-center");
31112
+ },
31113
+ m(target, anchor) {
31114
+ insert(target, div, anchor);
31115
+ mount_component(newusericon, div, null);
31116
+ current = true;
31117
+ },
31118
+ i(local) {
31119
+ if (current) return;
31120
+ transition_in(newusericon.$$.fragment, local);
31121
+ current = true;
31122
+ },
31123
+ o(local) {
31124
+ transition_out(newusericon.$$.fragment, local);
31125
+ current = false;
31126
+ },
31127
+ d(detaching) {
31128
+ if (detaching) detach(div);
31129
+ destroy_component(newusericon);
31130
+ }
31131
+ };
31132
+ }
31133
+
31134
+ // (59:2) {#if form.message}
31135
+ function create_if_block_1$2(ctx) {
31136
+ let alert;
31137
+ let current;
31138
+
31139
+ alert = new Alert({
31140
+ props: {
31141
+ id: "formFailureMessageAlert",
31142
+ needsFocus: /*alertNeedsFocus*/ ctx[5],
31143
+ type: "error",
31144
+ $$slots: { default: [create_default_slot_2$1] },
31145
+ $$scope: { ctx }
31146
+ }
31147
+ });
31148
+
31149
+ return {
31150
+ c() {
31151
+ create_component(alert.$$.fragment);
31152
+ },
31153
+ m(target, anchor) {
31154
+ mount_component(alert, target, anchor);
31155
+ current = true;
31156
+ },
31157
+ p(ctx, dirty) {
31158
+ const alert_changes = {};
31159
+ if (dirty & /*alertNeedsFocus*/ 32) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[5];
31160
+
31161
+ if (dirty & /*$$scope, formMessageKey, form*/ 32834) {
31162
+ alert_changes.$$scope = { dirty, ctx };
31163
+ }
31164
+
31165
+ alert.$set(alert_changes);
31166
+ },
31167
+ i(local) {
31168
+ if (current) return;
31169
+ transition_in(alert.$$.fragment, local);
31170
+ current = true;
31171
+ },
31172
+ o(local) {
31173
+ transition_out(alert.$$.fragment, local);
31174
+ current = false;
31175
+ },
31176
+ d(detaching) {
31177
+ destroy_component(alert, detaching);
31178
+ }
31179
+ };
31180
+ }
31181
+
31182
+ // (60:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
31183
+ function create_default_slot_2$1(ctx) {
31184
+ let t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "";
31185
+ let t;
31186
+
31187
+ return {
31188
+ c() {
31189
+ t = text(t_value);
31190
+ },
31191
+ m(target, anchor) {
31192
+ insert(target, t, anchor);
31193
+ },
31194
+ p(ctx, dirty) {
31195
+ if (dirty & /*formMessageKey, form*/ 66 && t_value !== (t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "")) set_data(t, t_value);
31196
+ },
31197
+ d(detaching) {
31198
+ if (detaching) detach(t);
31199
+ }
31200
+ };
31201
+ }
31202
+
31203
+ // (65:2) {#each step?.callbacks as callback, idx}
31204
+ function create_each_block$1(ctx) {
31205
+ let callbackmapper;
31206
+ let current;
31207
+
31208
+ callbackmapper = new Callback_mapper({
31209
+ props: {
31210
+ props: {
31211
+ callback: /*callback*/ ctx[12],
31212
+ callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[14]],
31213
+ selfSubmitFunction: /*determineSubmission*/ ctx[9],
31214
+ stepMetadata: /*metadata*/ ctx[3]?.step && { .../*metadata*/ ctx[3].step },
31215
+ style: /*$style*/ ctx[8]
31216
+ }
31217
+ }
31218
+ });
31219
+
31220
+ return {
31221
+ c() {
31222
+ create_component(callbackmapper.$$.fragment);
31223
+ },
31224
+ m(target, anchor) {
31225
+ mount_component(callbackmapper, target, anchor);
31226
+ current = true;
31227
+ },
31228
+ p(ctx, dirty) {
31229
+ const callbackmapper_changes = {};
31230
+
31231
+ if (dirty & /*step, metadata, $style*/ 280) callbackmapper_changes.props = {
31232
+ callback: /*callback*/ ctx[12],
31233
+ callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[14]],
31234
+ selfSubmitFunction: /*determineSubmission*/ ctx[9],
31235
+ stepMetadata: /*metadata*/ ctx[3]?.step && { .../*metadata*/ ctx[3].step },
31236
+ style: /*$style*/ ctx[8]
31237
+ };
31238
+
31239
+ callbackmapper.$set(callbackmapper_changes);
31240
+ },
31241
+ i(local) {
31242
+ if (current) return;
31243
+ transition_in(callbackmapper.$$.fragment, local);
31244
+ current = true;
31245
+ },
31246
+ o(local) {
31247
+ transition_out(callbackmapper.$$.fragment, local);
31248
+ current = false;
31249
+ },
31250
+ d(detaching) {
31251
+ destroy_component(callbackmapper, detaching);
31252
+ }
31253
+ };
31254
+ }
31255
+
31256
+ // (77:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
31257
+ function create_if_block$2(ctx) {
31258
+ let button;
31259
+ let current;
31260
+
31261
+ button = new Button({
31262
+ props: {
31263
+ busy: /*journey*/ ctx[2]?.loading,
31264
+ style: "primary",
31265
+ type: "submit",
31266
+ width: "full",
31267
+ $$slots: { default: [create_default_slot_1$2] },
31268
+ $$scope: { ctx }
31269
+ }
31270
+ });
31271
+
31272
+ return {
31273
+ c() {
31274
+ create_component(button.$$.fragment);
31275
+ },
31276
+ m(target, anchor) {
31277
+ mount_component(button, target, anchor);
31278
+ current = true;
31279
+ },
31280
+ p(ctx, dirty) {
31281
+ const button_changes = {};
31282
+ if (dirty & /*journey*/ 4) button_changes.busy = /*journey*/ ctx[2]?.loading;
31283
+
31284
+ if (dirty & /*$$scope*/ 32768) {
31285
+ button_changes.$$scope = { dirty, ctx };
31286
+ }
31287
+
31288
+ button.$set(button_changes);
31289
+ },
31290
+ i(local) {
31291
+ if (current) return;
31292
+ transition_in(button.$$.fragment, local);
31293
+ current = true;
31294
+ },
31295
+ o(local) {
31296
+ transition_out(button.$$.fragment, local);
31297
+ current = false;
31298
+ },
31299
+ d(detaching) {
31300
+ destroy_component(button, detaching);
31301
+ }
31302
+ };
31303
+ }
31304
+
31305
+ // (78:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
31306
+ function create_default_slot_1$2(ctx) {
31307
+ let t;
31308
+ let current;
31309
+ t = new Locale_strings({ props: { key: "registerButton" } });
31310
+
31311
+ return {
31312
+ c() {
31313
+ create_component(t.$$.fragment);
31314
+ },
31315
+ m(target, anchor) {
31316
+ mount_component(t, target, anchor);
31317
+ current = true;
31318
+ },
31319
+ p: noop,
31320
+ i(local) {
31321
+ if (current) return;
31322
+ transition_in(t.$$.fragment, local);
31323
+ current = true;
31324
+ },
31325
+ o(local) {
31326
+ transition_out(t.$$.fragment, local);
31327
+ current = false;
31328
+ },
31329
+ d(detaching) {
31330
+ destroy_component(t, detaching);
31331
+ }
31332
+ };
31333
+ }
31334
+
31335
+ // (43:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
31336
+ function create_default_slot$2(ctx) {
31337
+ let t0;
31338
+ let h1;
31339
+ let t1;
31340
+ let t2;
31341
+ let p;
31342
+ let t3;
31343
+ let t4;
31344
+ let t5;
31345
+ let t6;
31346
+ let if_block2_anchor;
31347
+ let current;
31348
+ let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$2();
31349
+ t1 = new Locale_strings({ props: { key: "registerHeader" } });
31350
+
31351
+ t3 = new Locale_strings({
31352
+ props: { key: "alreadyHaveAnAccount", html: true }
31353
+ });
31354
+
31355
+ let if_block1 = /*form*/ ctx[1].message && create_if_block_1$2(ctx);
31356
+ let each_value = /*step*/ ctx[4]?.callbacks;
31357
+ let each_blocks = [];
31358
+
31359
+ for (let i = 0; i < each_value.length; i += 1) {
31360
+ each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
31361
+ }
31362
+
31363
+ const out = i => transition_out(each_blocks[i], 1, 1, () => {
31364
+ each_blocks[i] = null;
31365
+ });
31366
+
31367
+ let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$2(ctx);
31368
+
31369
+ return {
31370
+ c() {
31371
+ if (if_block0) if_block0.c();
31372
+ t0 = space();
31373
+ h1 = element("h1");
31374
+ create_component(t1.$$.fragment);
31375
+ t2 = space();
31376
+ p = element("p");
31377
+ create_component(t3.$$.fragment);
31378
+ t4 = space();
31379
+ if (if_block1) if_block1.c();
31380
+ t5 = space();
31381
+
31382
+ for (let i = 0; i < each_blocks.length; i += 1) {
31383
+ each_blocks[i].c();
31384
+ }
31385
+
31386
+ t6 = space();
31387
+ if (if_block2) if_block2.c();
31388
+ if_block2_anchor = empty();
31389
+ attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
31390
+ 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");
31391
+ },
31392
+ m(target, anchor) {
31393
+ if (if_block0) if_block0.m(target, anchor);
31394
+ insert(target, t0, anchor);
31395
+ insert(target, h1, anchor);
31396
+ mount_component(t1, h1, null);
31397
+ insert(target, t2, anchor);
31398
+ insert(target, p, anchor);
31399
+ mount_component(t3, p, null);
31400
+ /*p_binding*/ ctx[10](p);
31401
+ insert(target, t4, anchor);
31402
+ if (if_block1) if_block1.m(target, anchor);
31403
+ insert(target, t5, anchor);
31404
+
31405
+ for (let i = 0; i < each_blocks.length; i += 1) {
31406
+ each_blocks[i].m(target, anchor);
31407
+ }
31408
+
31409
+ insert(target, t6, anchor);
31410
+ if (if_block2) if_block2.m(target, anchor);
31411
+ insert(target, if_block2_anchor, anchor);
31412
+ current = true;
31413
+ },
31414
+ p(ctx, dirty) {
31415
+ if (/*form*/ ctx[1]?.icon) {
31416
+ if (if_block0) {
31417
+ if (dirty & /*form*/ 2) {
31418
+ transition_in(if_block0, 1);
31419
+ }
31420
+ } else {
31421
+ if_block0 = create_if_block_2$2();
31422
+ if_block0.c();
31423
+ transition_in(if_block0, 1);
31424
+ if_block0.m(t0.parentNode, t0);
31425
+ }
31426
+ } else if (if_block0) {
31427
+ group_outros();
31428
+
31429
+ transition_out(if_block0, 1, 1, () => {
31430
+ if_block0 = null;
31431
+ });
31432
+
31433
+ check_outros();
31434
+ }
31435
+
31436
+ if (/*form*/ ctx[1].message) {
31437
+ if (if_block1) {
31438
+ if_block1.p(ctx, dirty);
31439
+
31440
+ if (dirty & /*form*/ 2) {
31441
+ transition_in(if_block1, 1);
31442
+ }
31443
+ } else {
31444
+ if_block1 = create_if_block_1$2(ctx);
31445
+ if_block1.c();
31446
+ transition_in(if_block1, 1);
31447
+ if_block1.m(t5.parentNode, t5);
31448
+ }
31449
+ } else if (if_block1) {
31450
+ group_outros();
31451
+
31452
+ transition_out(if_block1, 1, 1, () => {
31453
+ if_block1 = null;
31454
+ });
31455
+
31456
+ check_outros();
31457
+ }
31458
+
31459
+ if (dirty & /*step, metadata, determineSubmission, $style*/ 792) {
31460
+ each_value = /*step*/ ctx[4]?.callbacks;
31461
+ let i;
31462
+
31463
+ for (i = 0; i < each_value.length; i += 1) {
31464
+ const child_ctx = get_each_context$1(ctx, each_value, i);
31465
+
31466
+ if (each_blocks[i]) {
31467
+ each_blocks[i].p(child_ctx, dirty);
31468
+ transition_in(each_blocks[i], 1);
31469
+ } else {
31470
+ each_blocks[i] = create_each_block$1(child_ctx);
31471
+ each_blocks[i].c();
31472
+ transition_in(each_blocks[i], 1);
31473
+ each_blocks[i].m(t6.parentNode, t6);
31474
+ }
31475
+ }
31476
+
31477
+ group_outros();
31478
+
31479
+ for (i = each_value.length; i < each_blocks.length; i += 1) {
31480
+ out(i);
31481
+ }
31482
+
31483
+ check_outros();
31484
+ }
31485
+
31486
+ if (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) {
31487
+ if (if_block2) {
31488
+ if_block2.p(ctx, dirty);
31489
+
31490
+ if (dirty & /*metadata*/ 8) {
31491
+ transition_in(if_block2, 1);
31492
+ }
31493
+ } else {
31494
+ if_block2 = create_if_block$2(ctx);
31495
+ if_block2.c();
31496
+ transition_in(if_block2, 1);
31497
+ if_block2.m(if_block2_anchor.parentNode, if_block2_anchor);
31498
+ }
31499
+ } else if (if_block2) {
31500
+ group_outros();
31501
+
31502
+ transition_out(if_block2, 1, 1, () => {
31503
+ if_block2 = null;
31504
+ });
31505
+
31506
+ check_outros();
31507
+ }
31508
+ },
31509
+ i(local) {
31510
+ if (current) return;
31511
+ transition_in(if_block0);
31512
+ transition_in(t1.$$.fragment, local);
31513
+ transition_in(t3.$$.fragment, local);
31514
+ transition_in(if_block1);
31515
+
31516
+ for (let i = 0; i < each_value.length; i += 1) {
31517
+ transition_in(each_blocks[i]);
31518
+ }
31519
+
31520
+ transition_in(if_block2);
31521
+ current = true;
31522
+ },
31523
+ o(local) {
31524
+ transition_out(if_block0);
31525
+ transition_out(t1.$$.fragment, local);
31526
+ transition_out(t3.$$.fragment, local);
31527
+ transition_out(if_block1);
31528
+ each_blocks = each_blocks.filter(Boolean);
31529
+
31530
+ for (let i = 0; i < each_blocks.length; i += 1) {
31531
+ transition_out(each_blocks[i]);
31532
+ }
31533
+
31534
+ transition_out(if_block2);
31535
+ current = false;
31536
+ },
31537
+ d(detaching) {
31538
+ if (if_block0) if_block0.d(detaching);
31539
+ if (detaching) detach(t0);
31540
+ if (detaching) detach(h1);
31541
+ destroy_component(t1);
31542
+ if (detaching) detach(t2);
31543
+ if (detaching) detach(p);
31544
+ destroy_component(t3);
31545
+ /*p_binding*/ ctx[10](null);
31546
+ if (detaching) detach(t4);
31547
+ if (if_block1) if_block1.d(detaching);
31548
+ if (detaching) detach(t5);
31549
+ destroy_each(each_blocks, detaching);
31550
+ if (detaching) detach(t6);
31551
+ if (if_block2) if_block2.d(detaching);
31552
+ if (detaching) detach(if_block2_anchor);
31553
+ }
31554
+ };
31555
+ }
31556
+
31557
+ function create_fragment$3(ctx) {
31558
+ let form_1;
31559
+ let updating_formEl;
31560
+ let current;
31561
+
31562
+ function form_1_formEl_binding(value) {
31563
+ /*form_1_formEl_binding*/ ctx[11](value);
31564
+ }
31565
+
31566
+ let form_1_props = {
31567
+ ariaDescribedBy: "formFailureMessageAlert",
31568
+ onSubmitWhenValid: /*form*/ ctx[1]?.submit,
31569
+ $$slots: { default: [create_default_slot$2] },
31570
+ $$scope: { ctx }
31571
+ };
31572
+
31573
+ if (/*formEl*/ ctx[0] !== void 0) {
31574
+ form_1_props.formEl = /*formEl*/ ctx[0];
31575
+ }
31576
+
31577
+ form_1 = new Form({ props: form_1_props });
31578
+ binding_callbacks.push(() => bind(form_1, 'formEl', form_1_formEl_binding));
31579
+
31580
+ return {
31581
+ c() {
31582
+ create_component(form_1.$$.fragment);
31583
+ },
31584
+ m(target, anchor) {
31585
+ mount_component(form_1, target, anchor);
31586
+ current = true;
31587
+ },
31588
+ p(ctx, [dirty]) {
31589
+ const form_1_changes = {};
31590
+ if (dirty & /*form*/ 2) form_1_changes.onSubmitWhenValid = /*form*/ ctx[1]?.submit;
31591
+
31592
+ if (dirty & /*$$scope, journey, metadata, step, $style, alertNeedsFocus, formMessageKey, form, linkWrapper*/ 33278) {
31593
+ form_1_changes.$$scope = { dirty, ctx };
31594
+ }
31595
+
31596
+ if (!updating_formEl && dirty & /*formEl*/ 1) {
31597
+ updating_formEl = true;
31598
+ form_1_changes.formEl = /*formEl*/ ctx[0];
31599
+ add_flush_callback(() => updating_formEl = false);
31600
+ }
31601
+
31602
+ form_1.$set(form_1_changes);
31603
+ },
31604
+ i(local) {
31605
+ if (current) return;
31606
+ transition_in(form_1.$$.fragment, local);
31607
+ current = true;
31608
+ },
31609
+ o(local) {
31610
+ transition_out(form_1.$$.fragment, local);
31611
+ current = false;
31612
+ },
31613
+ d(detaching) {
31614
+ destroy_component(form_1, detaching);
31615
+ }
31616
+ };
31617
+ }
31618
+
31619
+ function instance$3($$self, $$props, $$invalidate) {
31620
+ let $style;
31621
+ component_subscribe($$self, style, $$value => $$invalidate(8, $style = $$value));
31622
+ let { form } = $$props;
31623
+ let { formEl = null } = $$props;
31624
+ let { journey } = $$props;
31625
+ let { metadata } = $$props;
31626
+ let { step } = $$props;
31627
+ let alertNeedsFocus = false;
31628
+ let formMessageKey = '';
31629
+ let linkWrapper;
31630
+
31631
+ function determineSubmission() {
31632
+ // TODO: the below is more strict; all self-submitting cbs have to complete before submitting
31633
+ // if (stepMetadata.isStepSelfSubmittable && isStepReadyToSubmit(callbackMetadataArray)) {
31634
+ // The below variation is more liberal first self-submittable cb to call this wins.
31635
+ if (metadata?.step?.derived.isStepSelfSubmittable) {
31636
+ form?.submit();
31637
+ }
31638
+ }
31639
+
31640
+ afterUpdate(() => {
31641
+ $$invalidate(5, alertNeedsFocus = !!form?.message);
31642
+ });
31643
+
31644
+ onMount(() => captureLinks(linkWrapper, journey));
31645
+
31646
+ function p_binding($$value) {
31647
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
31648
+ linkWrapper = $$value;
31649
+ $$invalidate(7, linkWrapper);
31650
+ });
31651
+ }
31652
+
31653
+ function form_1_formEl_binding(value) {
31654
+ formEl = value;
31655
+ $$invalidate(0, formEl);
31656
+ }
31657
+
31658
+ $$self.$$set = $$props => {
31659
+ if ('form' in $$props) $$invalidate(1, form = $$props.form);
31660
+ if ('formEl' in $$props) $$invalidate(0, formEl = $$props.formEl);
31661
+ if ('journey' in $$props) $$invalidate(2, journey = $$props.journey);
31662
+ if ('metadata' in $$props) $$invalidate(3, metadata = $$props.metadata);
31663
+ if ('step' in $$props) $$invalidate(4, step = $$props.step);
31664
+ };
31665
+
31666
+ $$self.$$.update = () => {
31667
+ if ($$self.$$.dirty & /*form*/ 2) {
31668
+ {
31669
+ $$invalidate(6, formMessageKey = convertStringToKey(form?.message));
31670
+ }
31671
+ }
31672
+ };
31673
+
31674
+ return [
31675
+ formEl,
31676
+ form,
31677
+ journey,
31678
+ metadata,
31679
+ step,
31680
+ alertNeedsFocus,
31681
+ formMessageKey,
31682
+ linkWrapper,
31683
+ $style,
31684
+ determineSubmission,
31685
+ p_binding,
31686
+ form_1_formEl_binding
31687
+ ];
31688
+ }
31689
+
31690
+ class Registration extends SvelteComponent {
31691
+ constructor(options) {
31692
+ super();
31693
+
31694
+ init(this, options, instance$3, create_fragment$3, safe_not_equal, {
31695
+ form: 1,
31696
+ formEl: 0,
31697
+ journey: 2,
31698
+ metadata: 3,
31699
+ step: 4
31700
+ });
30996
31701
  }
30997
31702
  }
30998
31703
 
@@ -31674,6 +32379,8 @@ function mapStepToStage(currentStep) {
31674
32379
  return Generic;
31675
32380
  }
31676
32381
  switch (currentStep?.getStage && currentStep.getStage()) {
32382
+ case 'OneTimePassword':
32383
+ return One_time_password;
31677
32384
  case 'Registration':
31678
32385
  return Registration;
31679
32386
  case 'UsernamePassword':