@forgerock/login-widget 1.0.0-beta.4 → 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.js CHANGED
@@ -14090,6 +14090,7 @@ function widgetApiFactory(modal) {
14090
14090
  },
14091
14091
  };
14092
14092
  const user = {
14093
+ // TODO: add "scopes" to parameters for "true" authorization
14093
14094
  async authorized(remote = false) {
14094
14095
  if (remote) {
14095
14096
  try {
@@ -14100,7 +14101,12 @@ function widgetApiFactory(modal) {
14100
14101
  return;
14101
14102
  }
14102
14103
  }
14103
- return !!(await TokenManager$1.getTokens());
14104
+ try {
14105
+ return !!(await TokenManager$1.getTokens());
14106
+ }
14107
+ catch (err) {
14108
+ return;
14109
+ }
14104
14110
  },
14105
14111
  async info(remote = false) {
14106
14112
  userStore = userStore;
@@ -14178,7 +14184,7 @@ function widgetApiFactory(modal) {
14178
14184
 
14179
14185
  /* src/lib/components/icons/alert-icon.svelte generated by Svelte v3.55.1 */
14180
14186
 
14181
- function create_fragment$T(ctx) {
14187
+ function create_fragment$U(ctx) {
14182
14188
  let svg;
14183
14189
  let path;
14184
14190
  let title;
@@ -14254,7 +14260,7 @@ function create_fragment$T(ctx) {
14254
14260
  };
14255
14261
  }
14256
14262
 
14257
- function instance$U($$self, $$props, $$invalidate) {
14263
+ function instance$V($$self, $$props, $$invalidate) {
14258
14264
  let { $$slots: slots = {}, $$scope } = $$props;
14259
14265
  let { classes = '' } = $$props;
14260
14266
  let { size = '24px' } = $$props;
@@ -14271,13 +14277,13 @@ function instance$U($$self, $$props, $$invalidate) {
14271
14277
  class Alert_icon extends SvelteComponent {
14272
14278
  constructor(options) {
14273
14279
  super();
14274
- init(this, options, instance$U, create_fragment$T, safe_not_equal, { classes: 0, size: 1 });
14280
+ init(this, options, instance$V, create_fragment$U, safe_not_equal, { classes: 0, size: 1 });
14275
14281
  }
14276
14282
  }
14277
14283
 
14278
14284
  /* src/lib/components/icons/info-icon.svelte generated by Svelte v3.55.1 */
14279
14285
 
14280
- function create_fragment$S(ctx) {
14286
+ function create_fragment$T(ctx) {
14281
14287
  let svg;
14282
14288
  let path;
14283
14289
  let title;
@@ -14353,7 +14359,7 @@ function create_fragment$S(ctx) {
14353
14359
  };
14354
14360
  }
14355
14361
 
14356
- function instance$T($$self, $$props, $$invalidate) {
14362
+ function instance$U($$self, $$props, $$invalidate) {
14357
14363
  let { $$slots: slots = {}, $$scope } = $$props;
14358
14364
  let { classes = '' } = $$props;
14359
14365
  let { size = '24px' } = $$props;
@@ -14370,13 +14376,13 @@ function instance$T($$self, $$props, $$invalidate) {
14370
14376
  class Info_icon extends SvelteComponent {
14371
14377
  constructor(options) {
14372
14378
  super();
14373
- init(this, options, instance$T, create_fragment$S, safe_not_equal, { classes: 0, size: 1 });
14379
+ init(this, options, instance$U, create_fragment$T, safe_not_equal, { classes: 0, size: 1 });
14374
14380
  }
14375
14381
  }
14376
14382
 
14377
14383
  /* src/lib/components/icons/warning-icon.svelte generated by Svelte v3.55.1 */
14378
14384
 
14379
- function create_fragment$R(ctx) {
14385
+ function create_fragment$S(ctx) {
14380
14386
  let svg;
14381
14387
  let path;
14382
14388
  let title;
@@ -14452,7 +14458,7 @@ function create_fragment$R(ctx) {
14452
14458
  };
14453
14459
  }
14454
14460
 
14455
- function instance$S($$self, $$props, $$invalidate) {
14461
+ function instance$T($$self, $$props, $$invalidate) {
14456
14462
  let { $$slots: slots = {}, $$scope } = $$props;
14457
14463
  let { classes = '' } = $$props;
14458
14464
  let { size = '24px' } = $$props;
@@ -14469,7 +14475,7 @@ function instance$S($$self, $$props, $$invalidate) {
14469
14475
  class Warning_icon extends SvelteComponent {
14470
14476
  constructor(options) {
14471
14477
  super();
14472
- init(this, options, instance$S, create_fragment$R, safe_not_equal, { classes: 0, size: 1 });
14478
+ init(this, options, instance$T, create_fragment$S, safe_not_equal, { classes: 0, size: 1 });
14473
14479
  }
14474
14480
  }
14475
14481
 
@@ -14504,7 +14510,7 @@ function create_else_block$8(ctx) {
14504
14510
  }
14505
14511
 
14506
14512
  // (43:33)
14507
- function create_if_block_1$a(ctx) {
14513
+ function create_if_block_1$b(ctx) {
14508
14514
  let warningicon;
14509
14515
  let current;
14510
14516
  warningicon = new Warning_icon({});
@@ -14533,7 +14539,7 @@ function create_if_block_1$a(ctx) {
14533
14539
  }
14534
14540
 
14535
14541
  // (41:4) {#if type === 'error'}
14536
- function create_if_block$k(ctx) {
14542
+ function create_if_block$l(ctx) {
14537
14543
  let alerticon;
14538
14544
  let current;
14539
14545
  alerticon = new Alert_icon({});
@@ -14561,7 +14567,7 @@ function create_if_block$k(ctx) {
14561
14567
  };
14562
14568
  }
14563
14569
 
14564
- function create_fragment$Q(ctx) {
14570
+ function create_fragment$R(ctx) {
14565
14571
  let div;
14566
14572
  let p;
14567
14573
  let current_block_type_index;
@@ -14570,7 +14576,7 @@ function create_fragment$Q(ctx) {
14570
14576
  let span;
14571
14577
  let div_class_value;
14572
14578
  let current;
14573
- const if_block_creators = [create_if_block$k, create_if_block_1$a, create_else_block$8];
14579
+ const if_block_creators = [create_if_block$l, create_if_block_1$b, create_else_block$8];
14574
14580
  const if_blocks = [];
14575
14581
 
14576
14582
  function select_block_type(ctx, dirty) {
@@ -14697,7 +14703,7 @@ function generateClassString$3(...args) {
14697
14703
  );
14698
14704
  }
14699
14705
 
14700
- function instance$R($$self, $$props, $$invalidate) {
14706
+ function instance$S($$self, $$props, $$invalidate) {
14701
14707
  let { $$slots: slots = {}, $$scope } = $$props;
14702
14708
  let { id } = $$props;
14703
14709
  let { needsFocus = false } = $$props;
@@ -14734,7 +14740,7 @@ function instance$R($$self, $$props, $$invalidate) {
14734
14740
  class Alert extends SvelteComponent {
14735
14741
  constructor(options) {
14736
14742
  super();
14737
- init(this, options, instance$R, create_fragment$Q, safe_not_equal, { id: 0, needsFocus: 3, type: 1 });
14743
+ init(this, options, instance$S, create_fragment$R, safe_not_equal, { id: 0, needsFocus: 3, type: 1 });
14738
14744
  }
14739
14745
  }
14740
14746
 
@@ -16460,6 +16466,7 @@ var customSecurityQuestion = "Custom security question";
16460
16466
  var doesNotMeetMinimumCharacterLength = "At least {min} character(s)";
16461
16467
  var ensurePasswordIsMoreThan = "Password must contain at least {minPasswordLength} character(s).";
16462
16468
  var ensurePasswordHasOne = "Password must contain at least 1 capital letter, 1 number, and 1 special character.";
16469
+ var enterVerificationCode = "Enter verification code";
16463
16470
  var exceedsMaximumCharacterLength = "Exceeds maximum of {max} characters";
16464
16471
  var fieldCanNotContainFollowingCharacters = "Cannot contain these character(s): {chars}";
16465
16472
  var fieldCanNotContainFollowingValues = "Cannot contain these value(s): {fields}";
@@ -16503,10 +16510,13 @@ var successMessage = "Success!";
16503
16510
  var termsAndConditions = "Please accept our Terms & Conditions";
16504
16511
  var termsAndConditionsLinkText = "View full Terms & Conditions";
16505
16512
  var tryAgain = "Please try again";
16513
+ var twoFactorAuthentication = "Two factor authentication";
16506
16514
  var useValidEmail = "Please use a valid email address.";
16507
16515
  var unrecoverableError = "There was an error in the form submission.";
16508
16516
  var unknownNetworkError = "Unknown network request failure has occurred.";
16517
+ var userName = "Username";
16509
16518
  var usernameRequirements = "Username requirements:";
16519
+ var useTheAuthenticatorAppOnYourPhone = "Find the verification code using the authenticator app on your phone.";
16510
16520
  var validatedCreatePasswordCallback = "Password";
16511
16521
  var validatedCreateUsernameCallback = "Username";
16512
16522
  var valueRequirements = "Value requirements:";
@@ -16525,6 +16535,7 @@ var fallback = {
16525
16535
  doesNotMeetMinimumCharacterLength: doesNotMeetMinimumCharacterLength,
16526
16536
  ensurePasswordIsMoreThan: ensurePasswordIsMoreThan,
16527
16537
  ensurePasswordHasOne: ensurePasswordHasOne,
16538
+ enterVerificationCode: enterVerificationCode,
16528
16539
  exceedsMaximumCharacterLength: exceedsMaximumCharacterLength,
16529
16540
  fieldCanNotContainFollowingCharacters: fieldCanNotContainFollowingCharacters,
16530
16541
  fieldCanNotContainFollowingValues: fieldCanNotContainFollowingValues,
@@ -16568,10 +16579,13 @@ var fallback = {
16568
16579
  termsAndConditions: termsAndConditions,
16569
16580
  termsAndConditionsLinkText: termsAndConditionsLinkText,
16570
16581
  tryAgain: tryAgain,
16582
+ twoFactorAuthentication: twoFactorAuthentication,
16571
16583
  useValidEmail: useValidEmail,
16572
16584
  unrecoverableError: unrecoverableError,
16573
16585
  unknownNetworkError: unknownNetworkError,
16586
+ userName: userName,
16574
16587
  usernameRequirements: usernameRequirements,
16588
+ useTheAuthenticatorAppOnYourPhone: useTheAuthenticatorAppOnYourPhone,
16575
16589
  validatedCreatePasswordCallback: validatedCreatePasswordCallback,
16576
16590
  validatedCreateUsernameCallback: validatedCreateUsernameCallback,
16577
16591
  valueRequirements: valueRequirements
@@ -16593,6 +16607,7 @@ const stringsSchema = mod
16593
16607
  doesNotMeetMinimumCharacterLength: mod.string(),
16594
16608
  ensurePasswordIsMoreThan: mod.string(),
16595
16609
  ensurePasswordHasOne: mod.string(),
16610
+ enterVerificationCode: mod.string(),
16596
16611
  exceedsMaximumCharacterLength: mod.string(),
16597
16612
  fieldCanNotContainFollowingCharacters: mod.string(),
16598
16613
  fieldCanNotContainFollowingValues: mod.string(),
@@ -16636,10 +16651,13 @@ const stringsSchema = mod
16636
16651
  termsAndConditions: mod.string(),
16637
16652
  termsAndConditionsLinkText: mod.string(),
16638
16653
  tryAgain: mod.string(),
16654
+ twoFactorAuthentication: mod.string(),
16639
16655
  useValidEmail: mod.string(),
16640
16656
  unrecoverableError: mod.string(),
16641
16657
  unknownNetworkError: mod.string(),
16658
+ userName: mod.string(),
16642
16659
  usernameRequirements: mod.string(),
16660
+ useTheAuthenticatorAppOnYourPhone: mod.string(),
16643
16661
  validatedCreatePasswordCallback: mod.string(),
16644
16662
  validatedCreateUsernameCallback: mod.string(),
16645
16663
  valueRequirements: mod.string(),
@@ -16833,7 +16851,7 @@ function create_else_block$7(ctx) {
16833
16851
  }
16834
16852
 
16835
16853
  // (11:0) {#if html}
16836
- function create_if_block$j(ctx) {
16854
+ function create_if_block$k(ctx) {
16837
16855
  let current;
16838
16856
  const default_slot_template = /*#slots*/ ctx[5].default;
16839
16857
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[4], null);
@@ -16930,12 +16948,12 @@ function fallback_block$2(ctx) {
16930
16948
  };
16931
16949
  }
16932
16950
 
16933
- function create_fragment$P(ctx) {
16951
+ function create_fragment$Q(ctx) {
16934
16952
  let current_block_type_index;
16935
16953
  let if_block;
16936
16954
  let if_block_anchor;
16937
16955
  let current;
16938
- const if_block_creators = [create_if_block$j, create_else_block$7];
16956
+ const if_block_creators = [create_if_block$k, create_else_block$7];
16939
16957
  const if_blocks = [];
16940
16958
 
16941
16959
  function select_block_type(ctx, dirty) {
@@ -16999,7 +17017,7 @@ function create_fragment$P(ctx) {
16999
17017
  };
17000
17018
  }
17001
17019
 
17002
- function instance$Q($$self, $$props, $$invalidate) {
17020
+ function instance$R($$self, $$props, $$invalidate) {
17003
17021
  let { $$slots: slots = {}, $$scope } = $$props;
17004
17022
  let { html = false } = $$props;
17005
17023
  let { key } = $$props;
@@ -17027,13 +17045,13 @@ function instance$Q($$self, $$props, $$invalidate) {
17027
17045
  class Locale_strings extends SvelteComponent {
17028
17046
  constructor(options) {
17029
17047
  super();
17030
- init(this, options, instance$Q, create_fragment$P, safe_not_equal, { html: 0, key: 2, values: 3 });
17048
+ init(this, options, instance$R, create_fragment$Q, safe_not_equal, { html: 0, key: 2, values: 3 });
17031
17049
  }
17032
17050
  }
17033
17051
 
17034
17052
  /* src/lib/components/primitives/spinner/spinner.svelte generated by Svelte v3.55.1 */
17035
17053
 
17036
- function create_fragment$O(ctx) {
17054
+ function create_fragment$P(ctx) {
17037
17055
  let div;
17038
17056
  let span;
17039
17057
  let t;
@@ -17077,7 +17095,7 @@ function create_fragment$O(ctx) {
17077
17095
  };
17078
17096
  }
17079
17097
 
17080
- function instance$P($$self, $$props, $$invalidate) {
17098
+ function instance$Q($$self, $$props, $$invalidate) {
17081
17099
  let { colorClass } = $$props;
17082
17100
  let { layoutClasses } = $$props;
17083
17101
 
@@ -17092,13 +17110,13 @@ function instance$P($$self, $$props, $$invalidate) {
17092
17110
  class Spinner extends SvelteComponent {
17093
17111
  constructor(options) {
17094
17112
  super();
17095
- init(this, options, instance$P, create_fragment$O, safe_not_equal, { colorClass: 0, layoutClasses: 1 });
17113
+ init(this, options, instance$Q, create_fragment$P, safe_not_equal, { colorClass: 0, layoutClasses: 1 });
17096
17114
  }
17097
17115
  }
17098
17116
 
17099
17117
  /* src/lib/components/primitives/button/button.svelte generated by Svelte v3.55.1 */
17100
17118
 
17101
- function create_if_block$i(ctx) {
17119
+ function create_if_block$j(ctx) {
17102
17120
  let spinner;
17103
17121
  let current;
17104
17122
 
@@ -17149,14 +17167,14 @@ function fallback_block$1(ctx) {
17149
17167
  };
17150
17168
  }
17151
17169
 
17152
- function create_fragment$N(ctx) {
17170
+ function create_fragment$O(ctx) {
17153
17171
  let button;
17154
17172
  let t;
17155
17173
  let button_class_value;
17156
17174
  let current;
17157
17175
  let mounted;
17158
17176
  let dispose;
17159
- let if_block = /*busy*/ ctx[0] && create_if_block$i();
17177
+ let if_block = /*busy*/ ctx[0] && create_if_block$j();
17160
17178
  const default_slot_template = /*#slots*/ ctx[7].default;
17161
17179
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
17162
17180
  const default_slot_or_fallback = default_slot || fallback_block$1();
@@ -17198,7 +17216,7 @@ function create_fragment$N(ctx) {
17198
17216
  transition_in(if_block, 1);
17199
17217
  }
17200
17218
  } else {
17201
- if_block = create_if_block$i();
17219
+ if_block = create_if_block$j();
17202
17220
  if_block.c();
17203
17221
  transition_in(if_block, 1);
17204
17222
  if_block.m(button, t);
@@ -17279,7 +17297,7 @@ function generateClassString$2(...args) {
17279
17297
  );
17280
17298
  }
17281
17299
 
17282
- function instance$O($$self, $$props, $$invalidate) {
17300
+ function instance$P($$self, $$props, $$invalidate) {
17283
17301
  let { $$slots: slots = {}, $$scope } = $$props;
17284
17302
  let { busy = false } = $$props;
17285
17303
  let { classes = '' } = $$props;
@@ -17309,7 +17327,7 @@ class Button extends SvelteComponent {
17309
17327
  constructor(options) {
17310
17328
  super();
17311
17329
 
17312
- init(this, options, instance$O, create_fragment$N, safe_not_equal, {
17330
+ init(this, options, instance$P, create_fragment$O, safe_not_equal, {
17313
17331
  busy: 0,
17314
17332
  classes: 1,
17315
17333
  onClick: 2,
@@ -17566,7 +17584,7 @@ function buildCallbackMetadata(step, checkValidation, stageJson) {
17566
17584
  * @param {array} callbackMetadataArray - The array returned from buildCallbackMetadata
17567
17585
  * @returns {object}
17568
17586
  */
17569
- function buildStepMetadata(callbackMetadataArray, stageJson) {
17587
+ function buildStepMetadata(callbackMetadataArray, stageJson, stageName) {
17570
17588
  const numOfUserInputCbs = callbackMetadataArray.filter((cb) => !!cb.derived.isUserInputRequired).length;
17571
17589
  const userInputOptional = isUserInputOptional(callbackMetadataArray, numOfUserInputCbs);
17572
17590
  let stageMetadata;
@@ -17594,6 +17612,12 @@ function buildStepMetadata(callbackMetadataArray, stageJson) {
17594
17612
  ...stageMetadata,
17595
17613
  },
17596
17614
  }),
17615
+ // stageName and stateMetadata are mutually exclusive
17616
+ ...(stageName && {
17617
+ platform: {
17618
+ stageName,
17619
+ }
17620
+ }),
17597
17621
  };
17598
17622
  }
17599
17623
 
@@ -17643,7 +17667,7 @@ function initializeStack(initOptions) {
17643
17667
  return stack;
17644
17668
  }
17645
17669
  function initialize$5(initOptions) {
17646
- const { set, subscribe } = writable({
17670
+ const journeyStore = writable({
17647
17671
  completed: false,
17648
17672
  error: null,
17649
17673
  loading: false,
@@ -17652,7 +17676,9 @@ function initialize$5(initOptions) {
17652
17676
  successful: false,
17653
17677
  response: null,
17654
17678
  });
17679
+ const { set, subscribe } = journeyStore;
17655
17680
  const stack = initializeStack();
17681
+ let restartOptions;
17656
17682
  let stepNumber = 0;
17657
17683
  async function next(prevStep = null, nextOptions, resumeUrl) {
17658
17684
  /**
@@ -17663,6 +17689,14 @@ function initialize$5(initOptions) {
17663
17689
  ...initOptions,
17664
17690
  ...nextOptions,
17665
17691
  };
17692
+ // These options are reserved only for restarting a journey after failure
17693
+ if (initOptions || nextOptions) {
17694
+ restartOptions = {
17695
+ // Prioritize next options over initialize options
17696
+ ...initOptions,
17697
+ ...nextOptions,
17698
+ };
17699
+ }
17666
17700
  /**
17667
17701
  * Save previous step information just in case we have a total
17668
17702
  * form failure due to 400 response from ForgeRock.
@@ -17677,7 +17711,7 @@ function initialize$5(initOptions) {
17677
17711
  completed: false,
17678
17712
  error: null,
17679
17713
  loading: true,
17680
- metadata: null,
17714
+ metadata: get_store_value(journeyStore).metadata,
17681
17715
  step: prevStep,
17682
17716
  successful: false,
17683
17717
  response: null,
@@ -17715,6 +17749,7 @@ function initialize$5(initOptions) {
17715
17749
  if (nextStep.type === StepType$1.Step) {
17716
17750
  const stageAttribute = nextStep.getStage();
17717
17751
  let stageJson = null;
17752
+ let stageName = null;
17718
17753
  // Check if stage attribute is serialized JSON
17719
17754
  if (stageAttribute && stageAttribute.includes('{')) {
17720
17755
  try {
@@ -17724,8 +17759,11 @@ function initialize$5(initOptions) {
17724
17759
  console.warn('Stage attribute value was not parsable');
17725
17760
  }
17726
17761
  }
17762
+ else if (stageAttribute) {
17763
+ stageName = stageAttribute;
17764
+ }
17727
17765
  const callbackMetadata = buildCallbackMetadata(nextStep, initCheckValidation(), stageJson);
17728
- const stepMetadata = buildStepMetadata(callbackMetadata, stageJson);
17766
+ const stepMetadata = buildStepMetadata(callbackMetadata, stageJson, stageName);
17729
17767
  // Iterate on a successful progression
17730
17768
  stepNumber = stepNumber + 1;
17731
17769
  set({
@@ -17768,7 +17806,7 @@ function initialize$5(initOptions) {
17768
17806
  /**
17769
17807
  * Restart tree to get fresh step
17770
17808
  */
17771
- restartedStep = await FRAuth$1.next(undefined, options);
17809
+ restartedStep = await FRAuth$1.next(undefined, restartOptions);
17772
17810
  }
17773
17811
  catch (err) {
17774
17812
  console.error(`Restart failed step request | ${err}`);
@@ -17824,6 +17862,7 @@ function initialize$5(initOptions) {
17824
17862
  if (restartedStep.type === StepType$1.Step) {
17825
17863
  const stageAttribute = restartedStep.getStage();
17826
17864
  let stageJson = null;
17865
+ let stageName = null;
17827
17866
  // Check if stage attribute is serialized JSON
17828
17867
  if (stageAttribute && stageAttribute.includes('{')) {
17829
17868
  try {
@@ -17833,8 +17872,11 @@ function initialize$5(initOptions) {
17833
17872
  console.warn('Stage attribute value was not parsable');
17834
17873
  }
17835
17874
  }
17875
+ else if (stageAttribute) {
17876
+ stageName = stageAttribute;
17877
+ }
17836
17878
  const callbackMetadata = buildCallbackMetadata(restartedStep, initCheckValidation(), stageJson);
17837
- const stepMetadata = buildStepMetadata(callbackMetadata, stageJson);
17879
+ const stepMetadata = buildStepMetadata(callbackMetadata, stageJson, stageName);
17838
17880
  set({
17839
17881
  completed: false,
17840
17882
  error: {
@@ -17925,7 +17967,7 @@ let stack;
17925
17967
 
17926
17968
  /* src/lib/components/primitives/form/form.svelte generated by Svelte v3.55.1 */
17927
17969
 
17928
- function create_fragment$M(ctx) {
17970
+ function create_fragment$N(ctx) {
17929
17971
  let form;
17930
17972
  let form_class_value;
17931
17973
  let current;
@@ -18012,7 +18054,7 @@ function create_fragment$M(ctx) {
18012
18054
  };
18013
18055
  }
18014
18056
 
18015
- function instance$N($$self, $$props, $$invalidate) {
18057
+ function instance$O($$self, $$props, $$invalidate) {
18016
18058
  let { $$slots: slots = {}, $$scope } = $$props;
18017
18059
  let { ariaDescribedBy } = $$props;
18018
18060
  let { formEl = null } = $$props;
@@ -18140,7 +18182,7 @@ class Form extends SvelteComponent {
18140
18182
  constructor(options) {
18141
18183
  super();
18142
18184
 
18143
- init(this, options, instance$N, create_fragment$M, safe_not_equal, {
18185
+ init(this, options, instance$O, create_fragment$N, safe_not_equal, {
18144
18186
  ariaDescribedBy: 1,
18145
18187
  formEl: 0,
18146
18188
  id: 2,
@@ -18205,7 +18247,7 @@ function create_else_block$6(ctx) {
18205
18247
  }
18206
18248
 
18207
18249
  // (10:0) {#if html}
18208
- function create_if_block$h(ctx) {
18250
+ function create_if_block$i(ctx) {
18209
18251
  let current;
18210
18252
  const default_slot_template = /*#slots*/ ctx[4].default;
18211
18253
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[3], null);
@@ -18302,12 +18344,12 @@ function fallback_block(ctx) {
18302
18344
  };
18303
18345
  }
18304
18346
 
18305
- function create_fragment$L(ctx) {
18347
+ function create_fragment$M(ctx) {
18306
18348
  let current_block_type_index;
18307
18349
  let if_block;
18308
18350
  let if_block_anchor;
18309
18351
  let current;
18310
- const if_block_creators = [create_if_block$h, create_else_block$6];
18352
+ const if_block_creators = [create_if_block$i, create_else_block$6];
18311
18353
  const if_blocks = [];
18312
18354
 
18313
18355
  function select_block_type(ctx, dirty) {
@@ -18371,7 +18413,7 @@ function create_fragment$L(ctx) {
18371
18413
  };
18372
18414
  }
18373
18415
 
18374
- function instance$M($$self, $$props, $$invalidate) {
18416
+ function instance$N($$self, $$props, $$invalidate) {
18375
18417
  let { $$slots: slots = {}, $$scope } = $$props;
18376
18418
  let { html = false } = $$props;
18377
18419
  let { string } = $$props;
@@ -18397,13 +18439,13 @@ function instance$M($$self, $$props, $$invalidate) {
18397
18439
  class Server_strings extends SvelteComponent {
18398
18440
  constructor(options) {
18399
18441
  super();
18400
- init(this, options, instance$M, create_fragment$L, safe_not_equal, { html: 0, string: 2 });
18442
+ init(this, options, instance$N, create_fragment$M, safe_not_equal, { html: 0, string: 2 });
18401
18443
  }
18402
18444
  }
18403
18445
 
18404
18446
  /* src/lib/components/icons/shield-icon.svelte generated by Svelte v3.55.1 */
18405
18447
 
18406
- function create_fragment$K(ctx) {
18448
+ function create_fragment$L(ctx) {
18407
18449
  let svg;
18408
18450
  let path;
18409
18451
  let title;
@@ -18479,7 +18521,7 @@ function create_fragment$K(ctx) {
18479
18521
  };
18480
18522
  }
18481
18523
 
18482
- function instance$L($$self, $$props, $$invalidate) {
18524
+ function instance$M($$self, $$props, $$invalidate) {
18483
18525
  let { $$slots: slots = {}, $$scope } = $$props;
18484
18526
  let { classes = '' } = $$props;
18485
18527
  let { size = '24px' } = $$props;
@@ -18496,7 +18538,7 @@ function instance$L($$self, $$props, $$invalidate) {
18496
18538
  class Shield_icon extends SvelteComponent {
18497
18539
  constructor(options) {
18498
18540
  super();
18499
- init(this, options, instance$L, create_fragment$K, safe_not_equal, { classes: 0, size: 1 });
18541
+ init(this, options, instance$M, create_fragment$L, safe_not_equal, { classes: 0, size: 1 });
18500
18542
  }
18501
18543
  }
18502
18544
 
@@ -18601,7 +18643,7 @@ function initialize$3(customJourneys) {
18601
18643
 
18602
18644
  /* src/lib/journey/stages/_utilities/back-to.svelte generated by Svelte v3.55.1 */
18603
18645
 
18604
- function create_if_block$g(ctx) {
18646
+ function create_if_block$h(ctx) {
18605
18647
  let p;
18606
18648
  let button;
18607
18649
  let t_value = interpolate(/*string*/ ctx[1]) + "";
@@ -18637,9 +18679,9 @@ function create_if_block$g(ctx) {
18637
18679
  };
18638
18680
  }
18639
18681
 
18640
- function create_fragment$J(ctx) {
18682
+ function create_fragment$K(ctx) {
18641
18683
  let if_block_anchor;
18642
- let if_block = /*$stack*/ ctx[2].length > 1 && create_if_block$g(ctx);
18684
+ let if_block = /*$stack*/ ctx[2].length > 1 && create_if_block$h(ctx);
18643
18685
 
18644
18686
  return {
18645
18687
  c() {
@@ -18655,7 +18697,7 @@ function create_fragment$J(ctx) {
18655
18697
  if (if_block) {
18656
18698
  if_block.p(ctx, dirty);
18657
18699
  } else {
18658
- if_block = create_if_block$g(ctx);
18700
+ if_block = create_if_block$h(ctx);
18659
18701
  if_block.c();
18660
18702
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
18661
18703
  }
@@ -18673,7 +18715,7 @@ function create_fragment$J(ctx) {
18673
18715
  };
18674
18716
  }
18675
18717
 
18676
- function instance$K($$self, $$props, $$invalidate) {
18718
+ function instance$L($$self, $$props, $$invalidate) {
18677
18719
  let $stack;
18678
18720
  let $configuredJourneys;
18679
18721
  component_subscribe($$self, configuredJourneys, $$value => $$invalidate(5, $configuredJourneys = $$value));
@@ -18714,7 +18756,7 @@ function instance$K($$self, $$props, $$invalidate) {
18714
18756
  class Back_to extends SvelteComponent {
18715
18757
  constructor(options) {
18716
18758
  super();
18717
- init(this, options, instance$K, create_fragment$J, safe_not_equal, { journey: 0 });
18759
+ init(this, options, instance$L, create_fragment$K, safe_not_equal, { journey: 0 });
18718
18760
  }
18719
18761
  }
18720
18762
 
@@ -19031,7 +19073,7 @@ function getAttributeValidationFailureText(callback) {
19031
19073
 
19032
19074
  /* src/lib/components/primitives/message/input-message.svelte generated by Svelte v3.55.1 */
19033
19075
 
19034
- function create_if_block$f(ctx) {
19076
+ function create_if_block$g(ctx) {
19035
19077
  let p;
19036
19078
  let p_class_value;
19037
19079
  let p_id_value;
@@ -19062,9 +19104,9 @@ function create_if_block$f(ctx) {
19062
19104
  };
19063
19105
  }
19064
19106
 
19065
- function create_fragment$I(ctx) {
19107
+ function create_fragment$J(ctx) {
19066
19108
  let if_block_anchor;
19067
- let if_block = /*dirtyMessage*/ ctx[1] && create_if_block$f(ctx);
19109
+ let if_block = /*dirtyMessage*/ ctx[1] && create_if_block$g(ctx);
19068
19110
 
19069
19111
  return {
19070
19112
  c() {
@@ -19080,7 +19122,7 @@ function create_fragment$I(ctx) {
19080
19122
  if (if_block) {
19081
19123
  if_block.p(ctx, dirty);
19082
19124
  } else {
19083
- if_block = create_if_block$f(ctx);
19125
+ if_block = create_if_block$g(ctx);
19084
19126
  if_block.c();
19085
19127
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
19086
19128
  }
@@ -19112,7 +19154,7 @@ function generateClassString$1(...args) {
19112
19154
  );
19113
19155
  }
19114
19156
 
19115
- function instance$J($$self, $$props, $$invalidate) {
19157
+ function instance$K($$self, $$props, $$invalidate) {
19116
19158
  let { classes = '' } = $$props;
19117
19159
  let { dirtyMessage } = $$props;
19118
19160
  let { key = undefined } = $$props;
@@ -19143,7 +19185,7 @@ class Input_message extends SvelteComponent {
19143
19185
  constructor(options) {
19144
19186
  super();
19145
19187
 
19146
- init(this, options, instance$J, create_fragment$I, safe_not_equal, {
19188
+ init(this, options, instance$K, create_fragment$J, safe_not_equal, {
19147
19189
  classes: 0,
19148
19190
  dirtyMessage: 1,
19149
19191
  key: 2,
@@ -19155,7 +19197,7 @@ class Input_message extends SvelteComponent {
19155
19197
 
19156
19198
  /* src/lib/components/primitives/label/label.svelte generated by Svelte v3.55.1 */
19157
19199
 
19158
- function create_fragment$H(ctx) {
19200
+ function create_fragment$I(ctx) {
19159
19201
  let label;
19160
19202
  let label_class_value;
19161
19203
  let current;
@@ -19218,7 +19260,7 @@ function create_fragment$H(ctx) {
19218
19260
  };
19219
19261
  }
19220
19262
 
19221
- function instance$I($$self, $$props, $$invalidate) {
19263
+ function instance$J($$self, $$props, $$invalidate) {
19222
19264
  let { $$slots: slots = {}, $$scope } = $$props;
19223
19265
  let { key } = $$props;
19224
19266
  let { classes = '' } = $$props;
@@ -19235,13 +19277,13 @@ function instance$I($$self, $$props, $$invalidate) {
19235
19277
  class Label extends SvelteComponent {
19236
19278
  constructor(options) {
19237
19279
  super();
19238
- init(this, options, instance$I, create_fragment$H, safe_not_equal, { key: 0, classes: 1 });
19280
+ init(this, options, instance$J, create_fragment$I, safe_not_equal, { key: 0, classes: 1 });
19239
19281
  }
19240
19282
  }
19241
19283
 
19242
19284
  /* src/lib/components/compositions/checkbox/animated.svelte generated by Svelte v3.55.1 */
19243
19285
 
19244
- function create_default_slot$l(ctx) {
19286
+ function create_default_slot$m(ctx) {
19245
19287
  let span;
19246
19288
  let t;
19247
19289
  let current;
@@ -19298,7 +19340,7 @@ function create_default_slot$l(ctx) {
19298
19340
  };
19299
19341
  }
19300
19342
 
19301
- function create_fragment$G(ctx) {
19343
+ function create_fragment$H(ctx) {
19302
19344
  let div1;
19303
19345
  let input;
19304
19346
  let input_data_message_value;
@@ -19315,7 +19357,7 @@ function create_fragment$G(ctx) {
19315
19357
  props: {
19316
19358
  key: /*key*/ ctx[3],
19317
19359
  classes: "tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",
19318
- $$slots: { default: [create_default_slot$l] },
19360
+ $$slots: { default: [create_default_slot$m] },
19319
19361
  $$scope: { ctx }
19320
19362
  }
19321
19363
  });
@@ -19422,7 +19464,7 @@ function create_fragment$G(ctx) {
19422
19464
  };
19423
19465
  }
19424
19466
 
19425
- function instance$H($$self, $$props, $$invalidate) {
19467
+ function instance$I($$self, $$props, $$invalidate) {
19426
19468
  let { $$slots: slots = {}, $$scope } = $$props;
19427
19469
  let { checkValidity = null } = $$props;
19428
19470
  let { message = '' } = $$props;
@@ -19491,7 +19533,7 @@ let Animated$1 = class Animated extends SvelteComponent {
19491
19533
  constructor(options) {
19492
19534
  super();
19493
19535
 
19494
- init(this, options, instance$H, create_fragment$G, safe_not_equal, {
19536
+ init(this, options, instance$I, create_fragment$H, safe_not_equal, {
19495
19537
  checkValidity: 8,
19496
19538
  message: 1,
19497
19539
  isFirstInvalidInput: 9,
@@ -19507,7 +19549,7 @@ let Animated$1 = class Animated extends SvelteComponent {
19507
19549
 
19508
19550
  /* src/lib/components/primitives/checkbox/checkbox.svelte generated by Svelte v3.55.1 */
19509
19551
 
19510
- function create_default_slot$k(ctx) {
19552
+ function create_default_slot$l(ctx) {
19511
19553
  let current;
19512
19554
  const default_slot_template = /*#slots*/ ctx[7].default;
19513
19555
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[9], null);
@@ -19554,7 +19596,7 @@ function create_default_slot$k(ctx) {
19554
19596
  };
19555
19597
  }
19556
19598
 
19557
- function create_fragment$F(ctx) {
19599
+ function create_fragment$G(ctx) {
19558
19600
  let input;
19559
19601
  let input_aria_describedby_value;
19560
19602
  let t;
@@ -19566,7 +19608,7 @@ function create_fragment$F(ctx) {
19566
19608
  label = new Label({
19567
19609
  props: {
19568
19610
  key: /*key*/ ctx[2],
19569
- $$slots: { default: [create_default_slot$k] },
19611
+ $$slots: { default: [create_default_slot$l] },
19570
19612
  $$scope: { ctx }
19571
19613
  }
19572
19614
  });
@@ -19651,7 +19693,7 @@ function create_fragment$F(ctx) {
19651
19693
  };
19652
19694
  }
19653
19695
 
19654
- function instance$G($$self, $$props, $$invalidate) {
19696
+ function instance$H($$self, $$props, $$invalidate) {
19655
19697
  let { $$slots: slots = {}, $$scope } = $$props;
19656
19698
  let { isFirstInvalidInput } = $$props;
19657
19699
  let { isRequired = false } = $$props;
@@ -19702,7 +19744,7 @@ class Checkbox extends SvelteComponent {
19702
19744
  constructor(options) {
19703
19745
  super();
19704
19746
 
19705
- init(this, options, instance$G, create_fragment$F, safe_not_equal, {
19747
+ init(this, options, instance$H, create_fragment$G, safe_not_equal, {
19706
19748
  isFirstInvalidInput: 6,
19707
19749
  isRequired: 0,
19708
19750
  isInvalid: 1,
@@ -19715,7 +19757,7 @@ class Checkbox extends SvelteComponent {
19715
19757
 
19716
19758
  /* src/lib/components/compositions/checkbox/standard.svelte generated by Svelte v3.55.1 */
19717
19759
 
19718
- function create_default_slot$j(ctx) {
19760
+ function create_default_slot$k(ctx) {
19719
19761
  let current;
19720
19762
  const default_slot_template = /*#slots*/ ctx[10].default;
19721
19763
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[11], null);
@@ -19762,7 +19804,7 @@ function create_default_slot$j(ctx) {
19762
19804
  };
19763
19805
  }
19764
19806
 
19765
- function create_fragment$E(ctx) {
19807
+ function create_fragment$F(ctx) {
19766
19808
  let div;
19767
19809
  let checkbox;
19768
19810
  let t;
@@ -19778,7 +19820,7 @@ function create_fragment$E(ctx) {
19778
19820
  key: /*key*/ ctx[4],
19779
19821
  onChange: /*onChangeWrapper*/ ctx[7],
19780
19822
  value: /*value*/ ctx[6],
19781
- $$slots: { default: [create_default_slot$j] },
19823
+ $$slots: { default: [create_default_slot$k] },
19782
19824
  $$scope: { ctx }
19783
19825
  }
19784
19826
  });
@@ -19849,7 +19891,7 @@ function create_fragment$E(ctx) {
19849
19891
  };
19850
19892
  }
19851
19893
 
19852
- function instance$F($$self, $$props, $$invalidate) {
19894
+ function instance$G($$self, $$props, $$invalidate) {
19853
19895
  let { $$slots: slots = {}, $$scope } = $$props;
19854
19896
  let { checkValidity = null } = $$props;
19855
19897
  let { message = '' } = $$props;
@@ -19902,7 +19944,7 @@ class Standard extends SvelteComponent {
19902
19944
  constructor(options) {
19903
19945
  super();
19904
19946
 
19905
- init(this, options, instance$F, create_fragment$E, safe_not_equal, {
19947
+ init(this, options, instance$G, create_fragment$F, safe_not_equal, {
19906
19948
  checkValidity: 8,
19907
19949
  message: 1,
19908
19950
  isFirstInvalidInput: 2,
@@ -19918,7 +19960,7 @@ class Standard extends SvelteComponent {
19918
19960
 
19919
19961
  /* src/lib/journey/callbacks/boolean/boolean.svelte generated by Svelte v3.55.1 */
19920
19962
 
19921
- function create_default_slot$i(ctx) {
19963
+ function create_default_slot$j(ctx) {
19922
19964
  let t_value = interpolate(textToKey(/*outputName*/ ctx[2]), null, /*prompt*/ ctx[4]) + "";
19923
19965
  let t;
19924
19966
 
@@ -19938,7 +19980,7 @@ function create_default_slot$i(ctx) {
19938
19980
  };
19939
19981
  }
19940
19982
 
19941
- function create_fragment$D(ctx) {
19983
+ function create_fragment$E(ctx) {
19942
19984
  let checkbox;
19943
19985
  let current;
19944
19986
 
@@ -19950,7 +19992,7 @@ function create_fragment$D(ctx) {
19950
19992
  message: /*validationFailure*/ ctx[5],
19951
19993
  onChange: /*setValue*/ ctx[7],
19952
19994
  value: /*previousValue*/ ctx[3],
19953
- $$slots: { default: [create_default_slot$i] },
19995
+ $$slots: { default: [create_default_slot$j] },
19954
19996
  $$scope: { ctx }
19955
19997
  }
19956
19998
  });
@@ -19992,7 +20034,7 @@ function create_fragment$D(ctx) {
19992
20034
  };
19993
20035
  }
19994
20036
 
19995
- function instance$E($$self, $$props, $$invalidate) {
20037
+ function instance$F($$self, $$props, $$invalidate) {
19996
20038
  let { callback } = $$props;
19997
20039
  let { callbackMetadata } = $$props;
19998
20040
  const stepMetadata = null;
@@ -20066,7 +20108,7 @@ let Boolean$1 = class Boolean extends SvelteComponent {
20066
20108
  constructor(options) {
20067
20109
  super();
20068
20110
 
20069
- init(this, options, instance$E, create_fragment$D, safe_not_equal, {
20111
+ init(this, options, instance$F, create_fragment$E, safe_not_equal, {
20070
20112
  callback: 8,
20071
20113
  callbackMetadata: 0,
20072
20114
  stepMetadata: 9,
@@ -20086,14 +20128,14 @@ let Boolean$1 = class Boolean extends SvelteComponent {
20086
20128
 
20087
20129
  /* src/lib/components/compositions/radio/animated.svelte generated by Svelte v3.55.1 */
20088
20130
 
20089
- function get_each_context$7(ctx, list, i) {
20131
+ function get_each_context$8(ctx, list, i) {
20090
20132
  const child_ctx = ctx.slice();
20091
20133
  child_ctx[13] = list[i];
20092
20134
  return child_ctx;
20093
20135
  }
20094
20136
 
20095
20137
  // (41:8) <Label key={`${key}-${option.value}`} classes="tw_input-spacing tw_grid tw_grid-cols-[2.5em_1fr] tw_relative" >
20096
- function create_default_slot$h(ctx) {
20138
+ function create_default_slot$i(ctx) {
20097
20139
  let span;
20098
20140
  let t0;
20099
20141
  let t1_value = /*option*/ ctx[13].text + "";
@@ -20123,7 +20165,7 @@ function create_default_slot$h(ctx) {
20123
20165
  }
20124
20166
 
20125
20167
  // (27:4) {#each options as option}
20126
- function create_each_block$7(ctx) {
20168
+ function create_each_block$8(ctx) {
20127
20169
  let div;
20128
20170
  let input;
20129
20171
  let input_checked_value;
@@ -20140,7 +20182,7 @@ function create_each_block$7(ctx) {
20140
20182
  props: {
20141
20183
  key: `${/*key*/ ctx[5]}-${/*option*/ ctx[13].value}`,
20142
20184
  classes: "tw_input-spacing tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",
20143
- $$slots: { default: [create_default_slot$h] },
20185
+ $$slots: { default: [create_default_slot$i] },
20144
20186
  $$scope: { ctx }
20145
20187
  }
20146
20188
  });
@@ -20234,7 +20276,7 @@ function create_each_block$7(ctx) {
20234
20276
  };
20235
20277
  }
20236
20278
 
20237
- function create_fragment$C(ctx) {
20279
+ function create_fragment$D(ctx) {
20238
20280
  let fieldset;
20239
20281
  let legend;
20240
20282
  let t0;
@@ -20248,7 +20290,7 @@ function create_fragment$C(ctx) {
20248
20290
  let each_blocks = [];
20249
20291
 
20250
20292
  for (let i = 0; i < each_value.length; i += 1) {
20251
- each_blocks[i] = create_each_block$7(get_each_context$7(ctx, each_value, i));
20293
+ each_blocks[i] = create_each_block$8(get_each_context$8(ctx, each_value, i));
20252
20294
  }
20253
20295
 
20254
20296
  const out = i => transition_out(each_blocks[i], 1, 1, () => {
@@ -20306,13 +20348,13 @@ function create_fragment$C(ctx) {
20306
20348
  let i;
20307
20349
 
20308
20350
  for (i = 0; i < each_value.length; i += 1) {
20309
- const child_ctx = get_each_context$7(ctx, each_value, i);
20351
+ const child_ctx = get_each_context$8(ctx, each_value, i);
20310
20352
 
20311
20353
  if (each_blocks[i]) {
20312
20354
  each_blocks[i].p(child_ctx, dirty);
20313
20355
  transition_in(each_blocks[i], 1);
20314
20356
  } else {
20315
- each_blocks[i] = create_each_block$7(child_ctx);
20357
+ each_blocks[i] = create_each_block$8(child_ctx);
20316
20358
  each_blocks[i].c();
20317
20359
  transition_in(each_blocks[i], 1);
20318
20360
  each_blocks[i].m(div, t2);
@@ -20363,7 +20405,7 @@ function create_fragment$C(ctx) {
20363
20405
  };
20364
20406
  }
20365
20407
 
20366
- function instance$D($$self, $$props, $$invalidate) {
20408
+ function instance$E($$self, $$props, $$invalidate) {
20367
20409
  let { defaultOption = null } = $$props;
20368
20410
  let { message = '' } = $$props;
20369
20411
  let { groupLabel = '' } = $$props;
@@ -20425,7 +20467,7 @@ class Animated extends SvelteComponent {
20425
20467
  constructor(options) {
20426
20468
  super();
20427
20469
 
20428
- init(this, options, instance$D, create_fragment$C, safe_not_equal, {
20470
+ init(this, options, instance$E, create_fragment$D, safe_not_equal, {
20429
20471
  defaultOption: 0,
20430
20472
  message: 1,
20431
20473
  groupLabel: 2,
@@ -20443,14 +20485,14 @@ class Animated extends SvelteComponent {
20443
20485
 
20444
20486
  /* src/lib/components/primitives/select/select.svelte generated by Svelte v3.55.1 */
20445
20487
 
20446
- function get_each_context$6(ctx, list, i) {
20488
+ function get_each_context$7(ctx, list, i) {
20447
20489
  const child_ctx = ctx.slice();
20448
20490
  child_ctx[15] = list[i];
20449
20491
  return child_ctx;
20450
20492
  }
20451
20493
 
20452
20494
  // (40:0) {#if labelOrder === 'first'}
20453
- function create_if_block_1$9(ctx) {
20495
+ function create_if_block_1$a(ctx) {
20454
20496
  let label_1;
20455
20497
  let current;
20456
20498
 
@@ -20458,7 +20500,7 @@ function create_if_block_1$9(ctx) {
20458
20500
  props: {
20459
20501
  key: /*key*/ ctx[4],
20460
20502
  classes: `${/*labelClasses*/ ctx[6]}`,
20461
- $$slots: { default: [create_default_slot_1$a] },
20503
+ $$slots: { default: [create_default_slot_1$b] },
20462
20504
  $$scope: { ctx }
20463
20505
  }
20464
20506
  });
@@ -20498,7 +20540,7 @@ function create_if_block_1$9(ctx) {
20498
20540
  }
20499
20541
 
20500
20542
  // (41:2) <Label {key} classes={`${labelClasses}`}>
20501
- function create_default_slot_1$a(ctx) {
20543
+ function create_default_slot_1$b(ctx) {
20502
20544
  let t;
20503
20545
 
20504
20546
  return {
@@ -20518,7 +20560,7 @@ function create_default_slot_1$a(ctx) {
20518
20560
  }
20519
20561
 
20520
20562
  // (55:2) {#each options as option}
20521
- function create_each_block$6(ctx) {
20563
+ function create_each_block$7(ctx) {
20522
20564
  let option;
20523
20565
  let t0_value = /*option*/ ctx[15].text + "";
20524
20566
  let t0;
@@ -20559,7 +20601,7 @@ function create_each_block$6(ctx) {
20559
20601
  }
20560
20602
 
20561
20603
  // (62:0) {#if labelOrder === 'last'}
20562
- function create_if_block$e(ctx) {
20604
+ function create_if_block$f(ctx) {
20563
20605
  let label_1;
20564
20606
  let current;
20565
20607
 
@@ -20569,7 +20611,7 @@ function create_if_block$e(ctx) {
20569
20611
  classes: `${/*shouldDisplayOption*/ ctx[10]
20570
20612
  ? /*labelClasses*/ ctx[6]
20571
20613
  : 'tw_sr-only'}`,
20572
- $$slots: { default: [create_default_slot$g] },
20614
+ $$slots: { default: [create_default_slot$h] },
20573
20615
  $$scope: { ctx }
20574
20616
  }
20575
20617
  });
@@ -20612,7 +20654,7 @@ function create_if_block$e(ctx) {
20612
20654
  }
20613
20655
 
20614
20656
  // (63:2) <Label {key} classes={`${shouldDisplayOption ? labelClasses : 'tw_sr-only'}`}>
20615
- function create_default_slot$g(ctx) {
20657
+ function create_default_slot$h(ctx) {
20616
20658
  let t;
20617
20659
 
20618
20660
  return {
@@ -20631,7 +20673,7 @@ function create_default_slot$g(ctx) {
20631
20673
  };
20632
20674
  }
20633
20675
 
20634
- function create_fragment$B(ctx) {
20676
+ function create_fragment$C(ctx) {
20635
20677
  let t0;
20636
20678
  let select;
20637
20679
  let select_aria_describedby_value;
@@ -20641,15 +20683,15 @@ function create_fragment$B(ctx) {
20641
20683
  let current;
20642
20684
  let mounted;
20643
20685
  let dispose;
20644
- let if_block0 = /*labelOrder*/ ctx[7] === 'first' && create_if_block_1$9(ctx);
20686
+ let if_block0 = /*labelOrder*/ ctx[7] === 'first' && create_if_block_1$a(ctx);
20645
20687
  let each_value = /*options*/ ctx[8];
20646
20688
  let each_blocks = [];
20647
20689
 
20648
20690
  for (let i = 0; i < each_value.length; i += 1) {
20649
- each_blocks[i] = create_each_block$6(get_each_context$6(ctx, each_value, i));
20691
+ each_blocks[i] = create_each_block$7(get_each_context$7(ctx, each_value, i));
20650
20692
  }
20651
20693
 
20652
- let if_block1 = /*labelOrder*/ ctx[7] === 'last' && create_if_block$e(ctx);
20694
+ let if_block1 = /*labelOrder*/ ctx[7] === 'last' && create_if_block$f(ctx);
20653
20695
 
20654
20696
  return {
20655
20697
  c() {
@@ -20703,7 +20745,7 @@ function create_fragment$B(ctx) {
20703
20745
  transition_in(if_block0, 1);
20704
20746
  }
20705
20747
  } else {
20706
- if_block0 = create_if_block_1$9(ctx);
20748
+ if_block0 = create_if_block_1$a(ctx);
20707
20749
  if_block0.c();
20708
20750
  transition_in(if_block0, 1);
20709
20751
  if_block0.m(t0.parentNode, t0);
@@ -20723,12 +20765,12 @@ function create_fragment$B(ctx) {
20723
20765
  let i;
20724
20766
 
20725
20767
  for (i = 0; i < each_value.length; i += 1) {
20726
- const child_ctx = get_each_context$6(ctx, each_value, i);
20768
+ const child_ctx = get_each_context$7(ctx, each_value, i);
20727
20769
 
20728
20770
  if (each_blocks[i]) {
20729
20771
  each_blocks[i].p(child_ctx, dirty);
20730
20772
  } else {
20731
- each_blocks[i] = create_each_block$6(child_ctx);
20773
+ each_blocks[i] = create_each_block$7(child_ctx);
20732
20774
  each_blocks[i].c();
20733
20775
  each_blocks[i].m(select, null);
20734
20776
  }
@@ -20771,7 +20813,7 @@ function create_fragment$B(ctx) {
20771
20813
  transition_in(if_block1, 1);
20772
20814
  }
20773
20815
  } else {
20774
- if_block1 = create_if_block$e(ctx);
20816
+ if_block1 = create_if_block$f(ctx);
20775
20817
  if_block1.c();
20776
20818
  transition_in(if_block1, 1);
20777
20819
  if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
@@ -20812,7 +20854,7 @@ function create_fragment$B(ctx) {
20812
20854
  };
20813
20855
  }
20814
20856
 
20815
- function instance$C($$self, $$props, $$invalidate) {
20857
+ function instance$D($$self, $$props, $$invalidate) {
20816
20858
  let { selectClasses = '' } = $$props;
20817
20859
  let { defaultOption = null } = $$props;
20818
20860
  let { isFirstInvalidInput } = $$props;
@@ -20901,7 +20943,7 @@ class Select extends SvelteComponent {
20901
20943
  constructor(options) {
20902
20944
  super();
20903
20945
 
20904
- init(this, options, instance$C, create_fragment$B, safe_not_equal, {
20946
+ init(this, options, instance$D, create_fragment$C, safe_not_equal, {
20905
20947
  selectClasses: 0,
20906
20948
  defaultOption: 1,
20907
20949
  isFirstInvalidInput: 12,
@@ -20919,7 +20961,7 @@ class Select extends SvelteComponent {
20919
20961
 
20920
20962
  /* src/lib/components/compositions/select-floating/floating-label.svelte generated by Svelte v3.55.1 */
20921
20963
 
20922
- function create_fragment$A(ctx) {
20964
+ function create_fragment$B(ctx) {
20923
20965
  let div;
20924
20966
  let select;
20925
20967
  let t;
@@ -21002,7 +21044,7 @@ function create_fragment$A(ctx) {
21002
21044
  };
21003
21045
  }
21004
21046
 
21005
- function instance$B($$self, $$props, $$invalidate) {
21047
+ function instance$C($$self, $$props, $$invalidate) {
21006
21048
  let { checkValidity = null } = $$props;
21007
21049
  let { defaultOption = null } = $$props;
21008
21050
  let { message = '' } = $$props;
@@ -21057,7 +21099,7 @@ let Floating_label$1 = class Floating_label extends SvelteComponent {
21057
21099
  constructor(options) {
21058
21100
  super();
21059
21101
 
21060
- init(this, options, instance$B, create_fragment$A, safe_not_equal, {
21102
+ init(this, options, instance$C, create_fragment$B, safe_not_equal, {
21061
21103
  checkValidity: 10,
21062
21104
  defaultOption: 1,
21063
21105
  message: 2,
@@ -21124,7 +21166,7 @@ function create_else_block$5(ctx) {
21124
21166
  }
21125
21167
 
21126
21168
  // (62:0) {#if callbackMetadata?.platform?.displayType === 'radio'}
21127
- function create_if_block$d(ctx) {
21169
+ function create_if_block$e(ctx) {
21128
21170
  let radio;
21129
21171
  let current;
21130
21172
 
@@ -21174,12 +21216,12 @@ function create_if_block$d(ctx) {
21174
21216
  };
21175
21217
  }
21176
21218
 
21177
- function create_fragment$z(ctx) {
21219
+ function create_fragment$A(ctx) {
21178
21220
  let current_block_type_index;
21179
21221
  let if_block;
21180
21222
  let if_block_anchor;
21181
21223
  let current;
21182
- const if_block_creators = [create_if_block$d, create_else_block$5];
21224
+ const if_block_creators = [create_if_block$e, create_else_block$5];
21183
21225
  const if_blocks = [];
21184
21226
 
21185
21227
  function select_block_type(ctx, dirty) {
@@ -21243,7 +21285,7 @@ function create_fragment$z(ctx) {
21243
21285
  };
21244
21286
  }
21245
21287
 
21246
- function instance$A($$self, $$props, $$invalidate) {
21288
+ function instance$B($$self, $$props, $$invalidate) {
21247
21289
  const selfSubmitFunction = null;
21248
21290
  const stepMetadata = null;
21249
21291
  const style = {};
@@ -21333,7 +21375,7 @@ class Choice extends SvelteComponent {
21333
21375
  constructor(options) {
21334
21376
  super();
21335
21377
 
21336
- init(this, options, instance$A, create_fragment$z, safe_not_equal, {
21378
+ init(this, options, instance$B, create_fragment$A, safe_not_equal, {
21337
21379
  selfSubmitFunction: 7,
21338
21380
  stepMetadata: 8,
21339
21381
  style: 9,
@@ -21357,7 +21399,7 @@ class Choice extends SvelteComponent {
21357
21399
 
21358
21400
  /* src/lib/components/primitives/grid/grid.svelte generated by Svelte v3.55.1 */
21359
21401
 
21360
- function create_fragment$y(ctx) {
21402
+ function create_fragment$z(ctx) {
21361
21403
  let div;
21362
21404
  let div_class_value;
21363
21405
  let current;
@@ -21433,7 +21475,7 @@ function generateClassString(...args) {
21433
21475
  );
21434
21476
  }
21435
21477
 
21436
- function instance$z($$self, $$props, $$invalidate) {
21478
+ function instance$A($$self, $$props, $$invalidate) {
21437
21479
  let { $$slots: slots = {}, $$scope } = $$props;
21438
21480
  let { num = 2 } = $$props;
21439
21481
 
@@ -21448,27 +21490,97 @@ function instance$z($$self, $$props, $$invalidate) {
21448
21490
  class Grid extends SvelteComponent {
21449
21491
  constructor(options) {
21450
21492
  super();
21451
- init(this, options, instance$z, create_fragment$y, safe_not_equal, { num: 0 });
21493
+ init(this, options, instance$A, create_fragment$z, safe_not_equal, { num: 0 });
21452
21494
  }
21453
21495
  }
21454
21496
 
21455
21497
  /* src/lib/journey/callbacks/confirmation/confirmation.svelte generated by Svelte v3.55.1 */
21456
21498
 
21457
- function get_each_context$5(ctx, list, i) {
21499
+ function get_each_context$6(ctx, list, i) {
21458
21500
  const child_ctx = ctx.slice();
21459
21501
  child_ctx[15] = list[i];
21460
21502
  return child_ctx;
21461
21503
  }
21462
21504
 
21463
- // (116:0) {:else}
21505
+ // (96:0) {#if stepMetadata?.platform?.stageName !== 'OneTimePassword'}
21506
+ function create_if_block$d(ctx) {
21507
+ let current_block_type_index;
21508
+ let if_block;
21509
+ let if_block_anchor;
21510
+ let current;
21511
+ const if_block_creators = [create_if_block_1$9, create_else_block_1];
21512
+ const if_blocks = [];
21513
+
21514
+ function select_block_type(ctx, dirty) {
21515
+ if (!/*stepMetadata*/ ctx[1]?.derived.isStepSelfSubmittable) return 0;
21516
+ return 1;
21517
+ }
21518
+
21519
+ current_block_type_index = select_block_type(ctx);
21520
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
21521
+
21522
+ return {
21523
+ c() {
21524
+ if_block.c();
21525
+ if_block_anchor = empty();
21526
+ },
21527
+ m(target, anchor) {
21528
+ if_blocks[current_block_type_index].m(target, anchor);
21529
+ insert(target, if_block_anchor, anchor);
21530
+ current = true;
21531
+ },
21532
+ p(ctx, dirty) {
21533
+ let previous_block_index = current_block_type_index;
21534
+ current_block_type_index = select_block_type(ctx);
21535
+
21536
+ if (current_block_type_index === previous_block_index) {
21537
+ if_blocks[current_block_type_index].p(ctx, dirty);
21538
+ } else {
21539
+ group_outros();
21540
+
21541
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
21542
+ if_blocks[previous_block_index] = null;
21543
+ });
21544
+
21545
+ check_outros();
21546
+ if_block = if_blocks[current_block_type_index];
21547
+
21548
+ if (!if_block) {
21549
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
21550
+ if_block.c();
21551
+ } else {
21552
+ if_block.p(ctx, dirty);
21553
+ }
21554
+
21555
+ transition_in(if_block, 1);
21556
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
21557
+ }
21558
+ },
21559
+ i(local) {
21560
+ if (current) return;
21561
+ transition_in(if_block);
21562
+ current = true;
21563
+ },
21564
+ o(local) {
21565
+ transition_out(if_block);
21566
+ current = false;
21567
+ },
21568
+ d(detaching) {
21569
+ if_blocks[current_block_type_index].d(detaching);
21570
+ if (detaching) detach(if_block_anchor);
21571
+ }
21572
+ };
21573
+ }
21574
+
21575
+ // (118:2) {:else}
21464
21576
  function create_else_block_1(ctx) {
21465
21577
  let grid;
21466
21578
  let current;
21467
21579
 
21468
21580
  grid = new Grid({
21469
21581
  props: {
21470
- num: /*options*/ ctx[3].length,
21471
- $$slots: { default: [create_default_slot_1$9] },
21582
+ num: /*options*/ ctx[4].length,
21583
+ $$slots: { default: [create_default_slot_1$a] },
21472
21584
  $$scope: { ctx }
21473
21585
  }
21474
21586
  });
@@ -21483,9 +21595,9 @@ function create_else_block_1(ctx) {
21483
21595
  },
21484
21596
  p(ctx, dirty) {
21485
21597
  const grid_changes = {};
21486
- if (dirty & /*options*/ 8) grid_changes.num = /*options*/ ctx[3].length;
21598
+ if (dirty & /*options*/ 16) grid_changes.num = /*options*/ ctx[4].length;
21487
21599
 
21488
- if (dirty & /*$$scope, options, defaultChoice, buttonStyle*/ 262200) {
21600
+ if (dirty & /*$$scope, options, defaultChoice, buttonStyle*/ 262196) {
21489
21601
  grid_changes.$$scope = { dirty, ctx };
21490
21602
  }
21491
21603
 
@@ -21506,17 +21618,17 @@ function create_else_block_1(ctx) {
21506
21618
  };
21507
21619
  }
21508
21620
 
21509
- // (95:0) {#if !stepMetadata?.derived.isStepSelfSubmittable}
21510
- function create_if_block$c(ctx) {
21621
+ // (97:2) {#if !stepMetadata?.derived.isStepSelfSubmittable}
21622
+ function create_if_block_1$9(ctx) {
21511
21623
  let current_block_type_index;
21512
21624
  let if_block;
21513
21625
  let if_block_anchor;
21514
21626
  let current;
21515
- const if_block_creators = [create_if_block_1$8, create_else_block$4];
21627
+ const if_block_creators = [create_if_block_2$8, create_else_block$4];
21516
21628
  const if_blocks = [];
21517
21629
 
21518
21630
  function select_block_type_1(ctx, dirty) {
21519
- if (/*options*/ ctx[3].length > 1) return 0;
21631
+ if (/*options*/ ctx[4].length > 1) return 0;
21520
21632
  return 1;
21521
21633
  }
21522
21634
 
@@ -21576,8 +21688,8 @@ function create_if_block$c(ctx) {
21576
21688
  };
21577
21689
  }
21578
21690
 
21579
- // (119:6) <Button style={options.length > 1 && defaultChoice === Number(opt.value) ? 'primary' : buttonStyle} type="button" width="auto" onClick={() => setBtnValue(Number(opt.value))} >
21580
- function create_default_slot_2$4(ctx) {
21691
+ // (121:8) <Button style={options.length > 1 && defaultChoice === Number(opt.value) ? 'primary' : buttonStyle} type="button" width="auto" onClick={() => setBtnValue(Number(opt.value))} >
21692
+ function create_default_slot_2$5(ctx) {
21581
21693
  let t0_value = /*opt*/ ctx[15].text + "";
21582
21694
  let t0;
21583
21695
  let t1;
@@ -21592,7 +21704,7 @@ function create_default_slot_2$4(ctx) {
21592
21704
  insert(target, t1, anchor);
21593
21705
  },
21594
21706
  p(ctx, dirty) {
21595
- if (dirty & /*options*/ 8 && t0_value !== (t0_value = /*opt*/ ctx[15].text + "")) set_data(t0, t0_value);
21707
+ if (dirty & /*options*/ 16 && t0_value !== (t0_value = /*opt*/ ctx[15].text + "")) set_data(t0, t0_value);
21596
21708
  },
21597
21709
  d(detaching) {
21598
21710
  if (detaching) detach(t0);
@@ -21601,8 +21713,8 @@ function create_default_slot_2$4(ctx) {
21601
21713
  };
21602
21714
  }
21603
21715
 
21604
- // (118:4) {#each options as opt}
21605
- function create_each_block$5(ctx) {
21716
+ // (120:6) {#each options as opt}
21717
+ function create_each_block$6(ctx) {
21606
21718
  let button;
21607
21719
  let current;
21608
21720
 
@@ -21612,13 +21724,13 @@ function create_each_block$5(ctx) {
21612
21724
 
21613
21725
  button = new Button({
21614
21726
  props: {
21615
- style: /*options*/ ctx[3].length > 1 && /*defaultChoice*/ ctx[5] === Number(/*opt*/ ctx[15].value)
21727
+ style: /*options*/ ctx[4].length > 1 && /*defaultChoice*/ ctx[2] === Number(/*opt*/ ctx[15].value)
21616
21728
  ? 'primary'
21617
- : /*buttonStyle*/ ctx[4],
21729
+ : /*buttonStyle*/ ctx[5],
21618
21730
  type: "button",
21619
21731
  width: "auto",
21620
21732
  onClick: func,
21621
- $$slots: { default: [create_default_slot_2$4] },
21733
+ $$slots: { default: [create_default_slot_2$5] },
21622
21734
  $$scope: { ctx }
21623
21735
  }
21624
21736
  });
@@ -21635,13 +21747,13 @@ function create_each_block$5(ctx) {
21635
21747
  ctx = new_ctx;
21636
21748
  const button_changes = {};
21637
21749
 
21638
- if (dirty & /*options, defaultChoice, buttonStyle*/ 56) button_changes.style = /*options*/ ctx[3].length > 1 && /*defaultChoice*/ ctx[5] === Number(/*opt*/ ctx[15].value)
21750
+ if (dirty & /*options, defaultChoice, buttonStyle*/ 52) button_changes.style = /*options*/ ctx[4].length > 1 && /*defaultChoice*/ ctx[2] === Number(/*opt*/ ctx[15].value)
21639
21751
  ? 'primary'
21640
- : /*buttonStyle*/ ctx[4];
21752
+ : /*buttonStyle*/ ctx[5];
21641
21753
 
21642
- if (dirty & /*options*/ 8) button_changes.onClick = func;
21754
+ if (dirty & /*options*/ 16) button_changes.onClick = func;
21643
21755
 
21644
- if (dirty & /*$$scope, options*/ 262152) {
21756
+ if (dirty & /*$$scope, options*/ 262160) {
21645
21757
  button_changes.$$scope = { dirty, ctx };
21646
21758
  }
21647
21759
 
@@ -21662,15 +21774,15 @@ function create_each_block$5(ctx) {
21662
21774
  };
21663
21775
  }
21664
21776
 
21665
- // (117:2) <Grid num={options.length}>
21666
- function create_default_slot_1$9(ctx) {
21777
+ // (119:4) <Grid num={options.length}>
21778
+ function create_default_slot_1$a(ctx) {
21667
21779
  let each_1_anchor;
21668
21780
  let current;
21669
- let each_value = /*options*/ ctx[3];
21781
+ let each_value = /*options*/ ctx[4];
21670
21782
  let each_blocks = [];
21671
21783
 
21672
21784
  for (let i = 0; i < each_value.length; i += 1) {
21673
- each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
21785
+ each_blocks[i] = create_each_block$6(get_each_context$6(ctx, each_value, i));
21674
21786
  }
21675
21787
 
21676
21788
  const out = i => transition_out(each_blocks[i], 1, 1, () => {
@@ -21694,18 +21806,18 @@ function create_default_slot_1$9(ctx) {
21694
21806
  current = true;
21695
21807
  },
21696
21808
  p(ctx, dirty) {
21697
- if (dirty & /*options, defaultChoice, Number, buttonStyle, setBtnValue*/ 312) {
21698
- each_value = /*options*/ ctx[3];
21809
+ if (dirty & /*options, defaultChoice, Number, buttonStyle, setBtnValue*/ 308) {
21810
+ each_value = /*options*/ ctx[4];
21699
21811
  let i;
21700
21812
 
21701
21813
  for (i = 0; i < each_value.length; i += 1) {
21702
- const child_ctx = get_each_context$5(ctx, each_value, i);
21814
+ const child_ctx = get_each_context$6(ctx, each_value, i);
21703
21815
 
21704
21816
  if (each_blocks[i]) {
21705
21817
  each_blocks[i].p(child_ctx, dirty);
21706
21818
  transition_in(each_blocks[i], 1);
21707
21819
  } else {
21708
- each_blocks[i] = create_each_block$5(child_ctx);
21820
+ each_blocks[i] = create_each_block$6(child_ctx);
21709
21821
  each_blocks[i].c();
21710
21822
  transition_in(each_blocks[i], 1);
21711
21823
  each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
@@ -21746,7 +21858,7 @@ function create_default_slot_1$9(ctx) {
21746
21858
  };
21747
21859
  }
21748
21860
 
21749
- // (105:2) {:else}
21861
+ // (107:4) {:else}
21750
21862
  function create_else_block$4(ctx) {
21751
21863
  let checkbox;
21752
21864
  let current;
@@ -21758,7 +21870,7 @@ function create_else_block$4(ctx) {
21758
21870
  key: /*inputName*/ ctx[6],
21759
21871
  onChange: /*setCheckboxValue*/ ctx[10],
21760
21872
  value: false,
21761
- $$slots: { default: [create_default_slot$f] },
21873
+ $$slots: { default: [create_default_slot$g] },
21762
21874
  $$scope: { ctx }
21763
21875
  }
21764
21876
  });
@@ -21776,7 +21888,7 @@ function create_else_block$4(ctx) {
21776
21888
  if (dirty & /*callbackMetadata*/ 1) checkbox_changes.isFirstInvalidInput = /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false;
21777
21889
  if (dirty & /*inputName*/ 64) checkbox_changes.key = /*inputName*/ ctx[6];
21778
21890
 
21779
- if (dirty & /*$$scope, options*/ 262152) {
21891
+ if (dirty & /*$$scope, options*/ 262160) {
21780
21892
  checkbox_changes.$$scope = { dirty, ctx };
21781
21893
  }
21782
21894
 
@@ -21797,8 +21909,8 @@ function create_else_block$4(ctx) {
21797
21909
  };
21798
21910
  }
21799
21911
 
21800
- // (96:2) {#if options.length > 1}
21801
- function create_if_block_1$8(ctx) {
21912
+ // (98:4) {#if options.length > 1}
21913
+ function create_if_block_2$8(ctx) {
21802
21914
  let select;
21803
21915
  let current;
21804
21916
 
@@ -21807,9 +21919,9 @@ function create_if_block_1$8(ctx) {
21807
21919
  isFirstInvalidInput: /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false,
21808
21920
  isRequired: false,
21809
21921
  key: /*inputName*/ ctx[6],
21810
- label: /*label*/ ctx[2],
21922
+ label: /*label*/ ctx[3],
21811
21923
  onChange: /*setOptionValue*/ ctx[9],
21812
- options: /*options*/ ctx[3]
21924
+ options: /*options*/ ctx[4]
21813
21925
  }
21814
21926
  });
21815
21927
 
@@ -21825,8 +21937,8 @@ function create_if_block_1$8(ctx) {
21825
21937
  const select_changes = {};
21826
21938
  if (dirty & /*callbackMetadata*/ 1) select_changes.isFirstInvalidInput = /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false;
21827
21939
  if (dirty & /*inputName*/ 64) select_changes.key = /*inputName*/ ctx[6];
21828
- if (dirty & /*label*/ 4) select_changes.label = /*label*/ ctx[2];
21829
- if (dirty & /*options*/ 8) select_changes.options = /*options*/ ctx[3];
21940
+ if (dirty & /*label*/ 8) select_changes.label = /*label*/ ctx[3];
21941
+ if (dirty & /*options*/ 16) select_changes.options = /*options*/ ctx[4];
21830
21942
  select.$set(select_changes);
21831
21943
  },
21832
21944
  i(local) {
@@ -21844,9 +21956,9 @@ function create_if_block_1$8(ctx) {
21844
21956
  };
21845
21957
  }
21846
21958
 
21847
- // (106:4) <Checkbox isFirstInvalidInput={callbackMetadata?.derived.isFirstInvalidInput || false} isInvalid={false} key={inputName} onChange={setCheckboxValue} value={false} >
21848
- function create_default_slot$f(ctx) {
21849
- let t_value = /*options*/ ctx[3][0].text + "";
21959
+ // (108:6) <Checkbox isFirstInvalidInput={callbackMetadata?.derived.isFirstInvalidInput || false} isInvalid={false} key={inputName} onChange={setCheckboxValue} value={false} >
21960
+ function create_default_slot$g(ctx) {
21961
+ let t_value = /*options*/ ctx[4][0].text + "";
21850
21962
  let t;
21851
21963
 
21852
21964
  return {
@@ -21857,7 +21969,7 @@ function create_default_slot$f(ctx) {
21857
21969
  insert(target, t, anchor);
21858
21970
  },
21859
21971
  p(ctx, dirty) {
21860
- if (dirty & /*options*/ 8 && t_value !== (t_value = /*options*/ ctx[3][0].text + "")) set_data(t, t_value);
21972
+ if (dirty & /*options*/ 16 && t_value !== (t_value = /*options*/ ctx[4][0].text + "")) set_data(t, t_value);
21861
21973
  },
21862
21974
  d(detaching) {
21863
21975
  if (detaching) detach(t);
@@ -21865,57 +21977,43 @@ function create_default_slot$f(ctx) {
21865
21977
  };
21866
21978
  }
21867
21979
 
21868
- function create_fragment$x(ctx) {
21869
- let current_block_type_index;
21870
- let if_block;
21980
+ function create_fragment$y(ctx) {
21871
21981
  let if_block_anchor;
21872
21982
  let current;
21873
- const if_block_creators = [create_if_block$c, create_else_block_1];
21874
- const if_blocks = [];
21875
-
21876
- function select_block_type(ctx, dirty) {
21877
- if (!/*stepMetadata*/ ctx[1]?.derived.isStepSelfSubmittable) return 0;
21878
- return 1;
21879
- }
21880
-
21881
- current_block_type_index = select_block_type(ctx);
21882
- if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
21983
+ let if_block = /*stepMetadata*/ ctx[1]?.platform?.stageName !== 'OneTimePassword' && create_if_block$d(ctx);
21883
21984
 
21884
21985
  return {
21885
21986
  c() {
21886
- if_block.c();
21987
+ if (if_block) if_block.c();
21887
21988
  if_block_anchor = empty();
21888
21989
  },
21889
21990
  m(target, anchor) {
21890
- if_blocks[current_block_type_index].m(target, anchor);
21991
+ if (if_block) if_block.m(target, anchor);
21891
21992
  insert(target, if_block_anchor, anchor);
21892
21993
  current = true;
21893
21994
  },
21894
21995
  p(ctx, [dirty]) {
21895
- let previous_block_index = current_block_type_index;
21896
- current_block_type_index = select_block_type(ctx);
21996
+ if (/*stepMetadata*/ ctx[1]?.platform?.stageName !== 'OneTimePassword') {
21997
+ if (if_block) {
21998
+ if_block.p(ctx, dirty);
21897
21999
 
21898
- if (current_block_type_index === previous_block_index) {
21899
- if_blocks[current_block_type_index].p(ctx, dirty);
21900
- } else {
22000
+ if (dirty & /*stepMetadata*/ 2) {
22001
+ transition_in(if_block, 1);
22002
+ }
22003
+ } else {
22004
+ if_block = create_if_block$d(ctx);
22005
+ if_block.c();
22006
+ transition_in(if_block, 1);
22007
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
22008
+ }
22009
+ } else if (if_block) {
21901
22010
  group_outros();
21902
22011
 
21903
- transition_out(if_blocks[previous_block_index], 1, 1, () => {
21904
- if_blocks[previous_block_index] = null;
22012
+ transition_out(if_block, 1, 1, () => {
22013
+ if_block = null;
21905
22014
  });
21906
22015
 
21907
22016
  check_outros();
21908
- if_block = if_blocks[current_block_type_index];
21909
-
21910
- if (!if_block) {
21911
- if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
21912
- if_block.c();
21913
- } else {
21914
- if_block.p(ctx, dirty);
21915
- }
21916
-
21917
- transition_in(if_block, 1);
21918
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
21919
22017
  }
21920
22018
  },
21921
22019
  i(local) {
@@ -21928,13 +22026,13 @@ function create_fragment$x(ctx) {
21928
22026
  current = false;
21929
22027
  },
21930
22028
  d(detaching) {
21931
- if_blocks[current_block_type_index].d(detaching);
22029
+ if (if_block) if_block.d(detaching);
21932
22030
  if (detaching) detach(if_block_anchor);
21933
22031
  }
21934
22032
  };
21935
22033
  }
21936
22034
 
21937
- function instance$y($$self, $$props, $$invalidate) {
22035
+ function instance$z($$self, $$props, $$invalidate) {
21938
22036
  const style = {};
21939
22037
  let { callback } = $$props;
21940
22038
  let { callbackMetadata } = $$props;
@@ -22002,14 +22100,6 @@ function instance$y($$self, $$props, $$invalidate) {
22002
22100
  }
22003
22101
  }
22004
22102
 
22005
- if (callback.getInputValue() === 0) {
22006
- /**
22007
- * If input value is 0 (falsy value), then let's make sure it's set to the default value
22008
- * There's a case when the input value is 100, and for that we leave it 100
22009
- */
22010
- callback.setOptionIndex(defaultChoice);
22011
- }
22012
-
22013
22103
  const func = opt => setBtnValue(Number(opt.value));
22014
22104
 
22015
22105
  $$self.$$set = $$props => {
@@ -22020,27 +22110,34 @@ function instance$y($$self, $$props, $$invalidate) {
22020
22110
  };
22021
22111
 
22022
22112
  $$self.$$.update = () => {
22023
- if ($$self.$$.dirty & /*callback, callbackMetadata, options, stepMetadata, label*/ 4111) {
22113
+ if ($$self.$$.dirty & /*callback, callbackMetadata, options, defaultChoice, stepMetadata, label*/ 4127) {
22024
22114
  // TODO: use selfSubmitFunction to communicate to step component that this callback is ready
22025
22115
  {
22026
22116
  $$invalidate(6, inputName = callback?.payload?.input?.[0].name || `confirmation-${callbackMetadata?.idx}`);
22027
- $$invalidate(3, options = callback.getOptions().map((option, index) => ({ value: `${index}`, text: option })));
22117
+ $$invalidate(4, options = callback.getOptions().map((option, index) => ({ value: `${index}`, text: option })));
22118
+ $$invalidate(2, defaultChoice = callback.getDefaultOption());
22119
+ $$invalidate(3, label = interpolate(textToKey('pleaseConfirm'), null, 'Please Confirm'));
22028
22120
 
22029
22121
  if (callbackMetadata?.platform?.showOnlyPositiveAnswer) {
22030
- // The positive option is always first in the options array
22031
- $$invalidate(3, options = options.slice(0, 1));
22122
+ // The positive option is always first in the `options` array
22123
+ $$invalidate(4, options = options.slice(0, 1));
22032
22124
  }
22033
22125
 
22034
- $$invalidate(5, defaultChoice = callback.getDefaultOption());
22035
- $$invalidate(2, label = interpolate(textToKey('pleaseConfirm'), null, 'Please Confirm'));
22126
+ if (callback.getInputValue() === 0) {
22127
+ /**
22128
+ * If input value is 0 (falsy value), then let's make sure it's set to the default value
22129
+ * There's a case when the input value is 100, and for that we leave it at 100
22130
+ */
22131
+ callback.setOptionIndex(defaultChoice);
22132
+ }
22036
22133
 
22037
22134
  if (!stepMetadata?.derived.isStepSelfSubmittable && options.length > 1) {
22038
- // Since the user needs to confirm, add this non-value to force selection
22135
+ // Since the user needs to confirm, add this empty `value` to force selection
22039
22136
  options.unshift({ value: '', text: label });
22040
22137
  } else if (options.length === 1) {
22041
- $$invalidate(4, buttonStyle = 'outline');
22138
+ $$invalidate(5, buttonStyle = 'outline');
22042
22139
  } else {
22043
- $$invalidate(4, buttonStyle = 'secondary');
22140
+ $$invalidate(5, buttonStyle = 'secondary');
22044
22141
  }
22045
22142
  }
22046
22143
  }
@@ -22049,10 +22146,10 @@ function instance$y($$self, $$props, $$invalidate) {
22049
22146
  return [
22050
22147
  callbackMetadata,
22051
22148
  stepMetadata,
22149
+ defaultChoice,
22052
22150
  label,
22053
22151
  options,
22054
22152
  buttonStyle,
22055
- defaultChoice,
22056
22153
  inputName,
22057
22154
  Checkbox,
22058
22155
  setBtnValue,
@@ -22069,7 +22166,7 @@ class Confirmation extends SvelteComponent {
22069
22166
  constructor(options) {
22070
22167
  super();
22071
22168
 
22072
- init(this, options, instance$y, create_fragment$x, safe_not_equal, {
22169
+ init(this, options, instance$z, create_fragment$y, safe_not_equal, {
22073
22170
  style: 11,
22074
22171
  callback: 12,
22075
22172
  callbackMetadata: 0,
@@ -22085,7 +22182,7 @@ class Confirmation extends SvelteComponent {
22085
22182
 
22086
22183
  /* src/lib/journey/callbacks/hidden-value/hidden-value.svelte generated by Svelte v3.55.1 */
22087
22184
 
22088
- function instance$x($$self, $$props, $$invalidate) {
22185
+ function instance$y($$self, $$props, $$invalidate) {
22089
22186
  const callbackMetadata = null;
22090
22187
  const selfSubmitFunction = null;
22091
22188
  const stepMetadata = null;
@@ -22098,7 +22195,7 @@ class Hidden_value extends SvelteComponent {
22098
22195
  constructor(options) {
22099
22196
  super();
22100
22197
 
22101
- init(this, options, instance$x, null, safe_not_equal, {
22198
+ init(this, options, instance$y, null, safe_not_equal, {
22102
22199
  callbackMetadata: 0,
22103
22200
  selfSubmitFunction: 1,
22104
22201
  stepMetadata: 2,
@@ -22138,7 +22235,7 @@ function create_if_block_7$1(ctx) {
22138
22235
  props: {
22139
22236
  key: /*key*/ ctx[3],
22140
22237
  classes: `${/*labelClasses*/ ctx[5]} tw_w-full tw_ml-1`,
22141
- $$slots: { default: [create_default_slot_1$8] },
22238
+ $$slots: { default: [create_default_slot_1$9] },
22142
22239
  $$scope: { ctx }
22143
22240
  }
22144
22241
  });
@@ -22178,7 +22275,7 @@ function create_if_block_7$1(ctx) {
22178
22275
  }
22179
22276
 
22180
22277
  // (25:2) <Label {key} classes={`${labelClasses} tw_w-full tw_ml-1`}>
22181
- function create_default_slot_1$8(ctx) {
22278
+ function create_default_slot_1$9(ctx) {
22182
22279
  let t;
22183
22280
 
22184
22281
  return {
@@ -22518,7 +22615,7 @@ function create_if_block_3$3(ctx) {
22518
22615
  }
22519
22616
 
22520
22617
  // (97:0) {#if type === 'phone'}
22521
- function create_if_block_2$6(ctx) {
22618
+ function create_if_block_2$7(ctx) {
22522
22619
  let input;
22523
22620
  let input_aria_describedby_value;
22524
22621
  let input_class_value;
@@ -22598,7 +22695,7 @@ function create_if_block_2$6(ctx) {
22598
22695
  }
22599
22696
 
22600
22697
  // (113:0) {#if type === 'text'}
22601
- function create_if_block_1$7(ctx) {
22698
+ function create_if_block_1$8(ctx) {
22602
22699
  let input;
22603
22700
  let input_aria_describedby_value;
22604
22701
  let input_class_value;
@@ -22678,7 +22775,7 @@ function create_if_block_1$7(ctx) {
22678
22775
  }
22679
22776
 
22680
22777
  // (129:0) {#if labelOrder === 'last'}
22681
- function create_if_block$b(ctx) {
22778
+ function create_if_block$c(ctx) {
22682
22779
  let label_1;
22683
22780
  let current;
22684
22781
 
@@ -22686,7 +22783,7 @@ function create_if_block$b(ctx) {
22686
22783
  props: {
22687
22784
  key: /*key*/ ctx[3],
22688
22785
  classes: `${/*labelClasses*/ ctx[5]}`,
22689
- $$slots: { default: [create_default_slot$e] },
22786
+ $$slots: { default: [create_default_slot$f] },
22690
22787
  $$scope: { ctx }
22691
22788
  }
22692
22789
  });
@@ -22726,7 +22823,7 @@ function create_if_block$b(ctx) {
22726
22823
  }
22727
22824
 
22728
22825
  // (130:2) <Label {key} classes={`${labelClasses}`}>
22729
- function create_default_slot$e(ctx) {
22826
+ function create_default_slot$f(ctx) {
22730
22827
  let t;
22731
22828
 
22732
22829
  return {
@@ -22745,7 +22842,7 @@ function create_default_slot$e(ctx) {
22745
22842
  };
22746
22843
  }
22747
22844
 
22748
- function create_fragment$w(ctx) {
22845
+ function create_fragment$x(ctx) {
22749
22846
  let t0;
22750
22847
  let t1;
22751
22848
  let t2;
@@ -22760,9 +22857,9 @@ function create_fragment$w(ctx) {
22760
22857
  let if_block2 = /*type*/ ctx[11] === 'email' && create_if_block_5$1(ctx);
22761
22858
  let if_block3 = /*type*/ ctx[11] === 'number' && create_if_block_4$1(ctx);
22762
22859
  let if_block4 = /*type*/ ctx[11] === 'password' && create_if_block_3$3(ctx);
22763
- let if_block5 = /*type*/ ctx[11] === 'phone' && create_if_block_2$6(ctx);
22764
- let if_block6 = /*type*/ ctx[11] === 'text' && create_if_block_1$7(ctx);
22765
- let if_block7 = /*labelOrder*/ ctx[6] === 'last' && create_if_block$b(ctx);
22860
+ let if_block5 = /*type*/ ctx[11] === 'phone' && create_if_block_2$7(ctx);
22861
+ let if_block6 = /*type*/ ctx[11] === 'text' && create_if_block_1$8(ctx);
22862
+ let if_block7 = /*labelOrder*/ ctx[6] === 'last' && create_if_block$c(ctx);
22766
22863
 
22767
22864
  return {
22768
22865
  c() {
@@ -22882,7 +22979,7 @@ function create_fragment$w(ctx) {
22882
22979
  if (if_block5) {
22883
22980
  if_block5.p(ctx, dirty);
22884
22981
  } else {
22885
- if_block5 = create_if_block_2$6(ctx);
22982
+ if_block5 = create_if_block_2$7(ctx);
22886
22983
  if_block5.c();
22887
22984
  if_block5.m(t5.parentNode, t5);
22888
22985
  }
@@ -22895,7 +22992,7 @@ function create_fragment$w(ctx) {
22895
22992
  if (if_block6) {
22896
22993
  if_block6.p(ctx, dirty);
22897
22994
  } else {
22898
- if_block6 = create_if_block_1$7(ctx);
22995
+ if_block6 = create_if_block_1$8(ctx);
22899
22996
  if_block6.c();
22900
22997
  if_block6.m(t6.parentNode, t6);
22901
22998
  }
@@ -22912,7 +23009,7 @@ function create_fragment$w(ctx) {
22912
23009
  transition_in(if_block7, 1);
22913
23010
  }
22914
23011
  } else {
22915
- if_block7 = create_if_block$b(ctx);
23012
+ if_block7 = create_if_block$c(ctx);
22916
23013
  if_block7.c();
22917
23014
  transition_in(if_block7, 1);
22918
23015
  if_block7.m(if_block7_anchor.parentNode, if_block7_anchor);
@@ -22959,7 +23056,7 @@ function create_fragment$w(ctx) {
22959
23056
  };
22960
23057
  }
22961
23058
 
22962
- function instance$w($$self, $$props, $$invalidate) {
23059
+ function instance$x($$self, $$props, $$invalidate) {
22963
23060
  let { forceValidityFailure = false } = $$props;
22964
23061
  let { isFirstInvalidInput } = $$props;
22965
23062
  let { inputClasses = '' } = $$props;
@@ -23103,7 +23200,7 @@ class Input extends SvelteComponent {
23103
23200
  constructor(options) {
23104
23201
  super();
23105
23202
 
23106
- init(this, options, instance$w, create_fragment$w, safe_not_equal, {
23203
+ init(this, options, instance$x, create_fragment$x, safe_not_equal, {
23107
23204
  forceValidityFailure: 1,
23108
23205
  isFirstInvalidInput: 13,
23109
23206
  inputClasses: 2,
@@ -23125,7 +23222,7 @@ class Input extends SvelteComponent {
23125
23222
  const get_input_button_slot_changes$1 = dirty => ({});
23126
23223
  const get_input_button_slot_context$1 = ctx => ({});
23127
23224
 
23128
- function create_fragment$v(ctx) {
23225
+ function create_fragment$w(ctx) {
23129
23226
  let div1;
23130
23227
  let input;
23131
23228
  let updating_value;
@@ -23300,7 +23397,7 @@ function create_fragment$v(ctx) {
23300
23397
  };
23301
23398
  }
23302
23399
 
23303
- function instance$v($$self, $$props, $$invalidate) {
23400
+ function instance$w($$self, $$props, $$invalidate) {
23304
23401
  let { $$slots: slots = {}, $$scope } = $$props;
23305
23402
  let { checkValidity = null } = $$props;
23306
23403
  let { forceValidityFailure = false } = $$props;
@@ -23371,7 +23468,7 @@ class Floating_label extends SvelteComponent {
23371
23468
  constructor(options) {
23372
23469
  super();
23373
23470
 
23374
- init(this, options, instance$v, create_fragment$v, safe_not_equal, {
23471
+ init(this, options, instance$w, create_fragment$w, safe_not_equal, {
23375
23472
  checkValidity: 12,
23376
23473
  forceValidityFailure: 2,
23377
23474
  message: 3,
@@ -23393,7 +23490,7 @@ class Floating_label extends SvelteComponent {
23393
23490
  const get_input_button_slot_changes = dirty => ({});
23394
23491
  const get_input_button_slot_context = ctx => ({});
23395
23492
 
23396
- function create_fragment$u(ctx) {
23493
+ function create_fragment$v(ctx) {
23397
23494
  let div1;
23398
23495
  let input;
23399
23496
  let updating_value;
@@ -23572,7 +23669,7 @@ function create_fragment$u(ctx) {
23572
23669
  };
23573
23670
  }
23574
23671
 
23575
- function instance$u($$self, $$props, $$invalidate) {
23672
+ function instance$v($$self, $$props, $$invalidate) {
23576
23673
  let { $$slots: slots = {}, $$scope } = $$props;
23577
23674
  let { checkValidity = null } = $$props;
23578
23675
  let { forceValidityFailure = false } = $$props;
@@ -23646,7 +23743,7 @@ class Stacked_label extends SvelteComponent {
23646
23743
  constructor(options) {
23647
23744
  super();
23648
23745
 
23649
- init(this, options, instance$u, create_fragment$u, safe_not_equal, {
23746
+ init(this, options, instance$v, create_fragment$v, safe_not_equal, {
23650
23747
  checkValidity: 13,
23651
23748
  forceValidityFailure: 2,
23652
23749
  isFirstInvalidInput: 3,
@@ -23667,7 +23764,7 @@ class Stacked_label extends SvelteComponent {
23667
23764
 
23668
23765
  /* src/lib/components/icons/lock-icon.svelte generated by Svelte v3.55.1 */
23669
23766
 
23670
- function create_fragment$t(ctx) {
23767
+ function create_fragment$u(ctx) {
23671
23768
  let svg;
23672
23769
  let path0;
23673
23770
  let path1;
@@ -23748,7 +23845,7 @@ function create_fragment$t(ctx) {
23748
23845
  };
23749
23846
  }
23750
23847
 
23751
- function instance$t($$self, $$props, $$invalidate) {
23848
+ function instance$u($$self, $$props, $$invalidate) {
23752
23849
  let { $$slots: slots = {}, $$scope } = $$props;
23753
23850
  let { classes = '' } = $$props;
23754
23851
  let { size = '24px' } = $$props;
@@ -23765,13 +23862,13 @@ function instance$t($$self, $$props, $$invalidate) {
23765
23862
  class Lock_icon extends SvelteComponent {
23766
23863
  constructor(options) {
23767
23864
  super();
23768
- init(this, options, instance$t, create_fragment$t, safe_not_equal, { classes: 0, size: 1 });
23865
+ init(this, options, instance$u, create_fragment$u, safe_not_equal, { classes: 0, size: 1 });
23769
23866
  }
23770
23867
  }
23771
23868
 
23772
23869
  /* src/lib/journey/callbacks/kba/kba-create.svelte generated by Svelte v3.55.1 */
23773
23870
 
23774
- function create_if_block$a(ctx) {
23871
+ function create_if_block$b(ctx) {
23775
23872
  let input;
23776
23873
  let current;
23777
23874
 
@@ -23815,7 +23912,7 @@ function create_if_block$a(ctx) {
23815
23912
  };
23816
23913
  }
23817
23914
 
23818
- function create_fragment$s(ctx) {
23915
+ function create_fragment$t(ctx) {
23819
23916
  let fieldset;
23820
23917
  let legend;
23821
23918
  let t0;
@@ -23850,7 +23947,7 @@ function create_fragment$s(ctx) {
23850
23947
  }
23851
23948
  });
23852
23949
 
23853
- let if_block = /*displayCustomQuestionInput*/ ctx[3] && create_if_block$a(ctx);
23950
+ let if_block = /*displayCustomQuestionInput*/ ctx[3] && create_if_block$b(ctx);
23854
23951
 
23855
23952
  function input_value_binding(value) {
23856
23953
  /*input_value_binding*/ ctx[20](value);
@@ -23928,7 +24025,7 @@ function create_fragment$s(ctx) {
23928
24025
  transition_in(if_block, 1);
23929
24026
  }
23930
24027
  } else {
23931
- if_block = create_if_block$a(ctx);
24028
+ if_block = create_if_block$b(ctx);
23932
24029
  if_block.c();
23933
24030
  transition_in(if_block, 1);
23934
24031
  if_block.m(fieldset, t6);
@@ -23986,7 +24083,7 @@ function create_fragment$s(ctx) {
23986
24083
  };
23987
24084
  }
23988
24085
 
23989
- function instance$s($$self, $$props, $$invalidate) {
24086
+ function instance$t($$self, $$props, $$invalidate) {
23990
24087
  let $value;
23991
24088
  const selfSubmitFunction = null;
23992
24089
  const stepMetadata = null;
@@ -24165,7 +24262,7 @@ class Kba_create extends SvelteComponent {
24165
24262
  constructor(options) {
24166
24263
  super();
24167
24264
 
24168
- init(this, options, instance$s, create_fragment$s, safe_not_equal, {
24265
+ init(this, options, instance$t, create_fragment$t, safe_not_equal, {
24169
24266
  selfSubmitFunction: 12,
24170
24267
  stepMetadata: 13,
24171
24268
  callback: 14,
@@ -24185,7 +24282,7 @@ class Kba_create extends SvelteComponent {
24185
24282
 
24186
24283
  /* src/lib/journey/callbacks/username/name.svelte generated by Svelte v3.55.1 */
24187
24284
 
24188
- function create_fragment$r(ctx) {
24285
+ function create_fragment$s(ctx) {
24189
24286
  let input;
24190
24287
  let current;
24191
24288
 
@@ -24193,7 +24290,7 @@ function create_fragment$r(ctx) {
24193
24290
  props: {
24194
24291
  isFirstInvalidInput: /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false,
24195
24292
  key: /*inputName*/ ctx[2],
24196
- label: interpolate(textToKey(/*callbackType*/ ctx[1]), null, /*textInputLabel*/ ctx[3]),
24293
+ label: interpolate(textToKey(/*textInputLabel*/ ctx[3] || /*callbackType*/ ctx[1]), null, /*textInputLabel*/ ctx[3]),
24197
24294
  onChange: /*setValue*/ ctx[6],
24198
24295
  type: "text",
24199
24296
  showMessage: false,
@@ -24215,7 +24312,7 @@ function create_fragment$r(ctx) {
24215
24312
  const input_changes = {};
24216
24313
  if (dirty & /*callbackMetadata*/ 1) input_changes.isFirstInvalidInput = /*callbackMetadata*/ ctx[0]?.derived.isFirstInvalidInput || false;
24217
24314
  if (dirty & /*inputName*/ 4) input_changes.key = /*inputName*/ ctx[2];
24218
- if (dirty & /*callbackType, textInputLabel*/ 10) input_changes.label = interpolate(textToKey(/*callbackType*/ ctx[1]), null, /*textInputLabel*/ ctx[3]);
24315
+ if (dirty & /*textInputLabel, callbackType*/ 10) input_changes.label = interpolate(textToKey(/*textInputLabel*/ ctx[3] || /*callbackType*/ ctx[1]), null, /*textInputLabel*/ ctx[3]);
24219
24316
 
24220
24317
  if (dirty & /*value*/ 16) input_changes.value = typeof /*value*/ ctx[4] === 'string'
24221
24318
  ? /*value*/ ctx[4]
@@ -24238,7 +24335,7 @@ function create_fragment$r(ctx) {
24238
24335
  };
24239
24336
  }
24240
24337
 
24241
- function instance$r($$self, $$props, $$invalidate) {
24338
+ function instance$s($$self, $$props, $$invalidate) {
24242
24339
  const selfSubmitFunction = null;
24243
24340
  const stepMetadata = null;
24244
24341
  let { callback } = $$props;
@@ -24290,7 +24387,7 @@ class Name extends SvelteComponent {
24290
24387
  constructor(options) {
24291
24388
  super();
24292
24389
 
24293
- init(this, options, instance$r, create_fragment$r, safe_not_equal, {
24390
+ init(this, options, instance$s, create_fragment$s, safe_not_equal, {
24294
24391
  selfSubmitFunction: 7,
24295
24392
  stepMetadata: 8,
24296
24393
  callback: 9,
@@ -24392,7 +24489,7 @@ function create_else_block$3(ctx) {
24392
24489
  }
24393
24490
 
24394
24491
  // (6:0) {#if !visible}
24395
- function create_if_block$9(ctx) {
24492
+ function create_if_block$a(ctx) {
24396
24493
  let svg;
24397
24494
  let path0;
24398
24495
  let path1;
@@ -24473,12 +24570,12 @@ function create_if_block$9(ctx) {
24473
24570
  };
24474
24571
  }
24475
24572
 
24476
- function create_fragment$q(ctx) {
24573
+ function create_fragment$r(ctx) {
24477
24574
  let current_block_type_index;
24478
24575
  let if_block;
24479
24576
  let if_block_anchor;
24480
24577
  let current;
24481
- const if_block_creators = [create_if_block$9, create_else_block$3];
24578
+ const if_block_creators = [create_if_block$a, create_else_block$3];
24482
24579
  const if_blocks = [];
24483
24580
 
24484
24581
  function select_block_type(ctx, dirty) {
@@ -24542,7 +24639,7 @@ function create_fragment$q(ctx) {
24542
24639
  };
24543
24640
  }
24544
24641
 
24545
- function instance$q($$self, $$props, $$invalidate) {
24642
+ function instance$r($$self, $$props, $$invalidate) {
24546
24643
  let { $$slots: slots = {}, $$scope } = $$props;
24547
24644
  let { classes = '' } = $$props;
24548
24645
  let { size = '24px' } = $$props;
@@ -24561,13 +24658,13 @@ function instance$q($$self, $$props, $$invalidate) {
24561
24658
  class Eye_icon extends SvelteComponent {
24562
24659
  constructor(options) {
24563
24660
  super();
24564
- init(this, options, instance$q, create_fragment$q, safe_not_equal, { classes: 0, size: 1, visible: 2 });
24661
+ init(this, options, instance$r, create_fragment$r, safe_not_equal, { classes: 0, size: 1, visible: 2 });
24565
24662
  }
24566
24663
  }
24567
24664
 
24568
24665
  /* src/lib/journey/callbacks/password/confirm-input.svelte generated by Svelte v3.55.1 */
24569
24666
 
24570
- function create_default_slot_1$7(ctx) {
24667
+ function create_default_slot_1$8(ctx) {
24571
24668
  let current;
24572
24669
  const default_slot_template = /*#slots*/ ctx[12].default;
24573
24670
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[13], null);
@@ -24615,7 +24712,7 @@ function create_default_slot_1$7(ctx) {
24615
24712
  }
24616
24713
 
24617
24714
  // (47:4) <EyeIcon classes="tw_password-icon dark:tw_password-icon_dark" visible={isVisible} >
24618
- function create_default_slot$d(ctx) {
24715
+ function create_default_slot$e(ctx) {
24619
24716
  let t;
24620
24717
  let current;
24621
24718
  t = new Locale_strings({ props: { key: "showPassword" } });
@@ -24656,7 +24753,7 @@ function create_input_button_slot$1(ctx) {
24656
24753
  props: {
24657
24754
  classes: "tw_password-icon dark:tw_password-icon_dark",
24658
24755
  visible: /*isVisible*/ ctx[6],
24659
- $$slots: { default: [create_default_slot$d] },
24756
+ $$slots: { default: [create_default_slot$e] },
24660
24757
  $$scope: { ctx }
24661
24758
  }
24662
24759
  });
@@ -24707,7 +24804,7 @@ function create_input_button_slot$1(ctx) {
24707
24804
  };
24708
24805
  }
24709
24806
 
24710
- function create_fragment$p(ctx) {
24807
+ function create_fragment$q(ctx) {
24711
24808
  let input;
24712
24809
  let current;
24713
24810
 
@@ -24731,7 +24828,7 @@ function create_fragment$p(ctx) {
24731
24828
  : '',
24732
24829
  $$slots: {
24733
24830
  "input-button": [create_input_button_slot$1],
24734
- default: [create_default_slot_1$7]
24831
+ default: [create_default_slot_1$8]
24735
24832
  },
24736
24833
  $$scope: { ctx }
24737
24834
  }
@@ -24781,7 +24878,7 @@ function create_fragment$p(ctx) {
24781
24878
  };
24782
24879
  }
24783
24880
 
24784
- function instance$p($$self, $$props, $$invalidate) {
24881
+ function instance$q($$self, $$props, $$invalidate) {
24785
24882
  let { $$slots: slots = {}, $$scope } = $$props;
24786
24883
  let { forceValidityFailure = false } = $$props;
24787
24884
  let { key } = $$props;
@@ -24836,7 +24933,7 @@ class Confirm_input extends SvelteComponent {
24836
24933
  constructor(options) {
24837
24934
  super();
24838
24935
 
24839
- init(this, options, instance$p, create_fragment$p, safe_not_equal, {
24936
+ init(this, options, instance$q, create_fragment$q, safe_not_equal, {
24840
24937
  forceValidityFailure: 0,
24841
24938
  key: 1,
24842
24939
  onChange: 2,
@@ -24850,7 +24947,7 @@ class Confirm_input extends SvelteComponent {
24850
24947
 
24851
24948
  /* src/lib/journey/callbacks/password/base.svelte generated by Svelte v3.55.1 */
24852
24949
 
24853
- function create_default_slot_1$6(ctx) {
24950
+ function create_default_slot_1$7(ctx) {
24854
24951
  let current;
24855
24952
  const default_slot_template = /*#slots*/ ctx[19].default;
24856
24953
  const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[20], null);
@@ -24898,7 +24995,7 @@ function create_default_slot_1$6(ctx) {
24898
24995
  }
24899
24996
 
24900
24997
  // (82:4) <EyeIcon classes="tw_password-icon dark:tw_password-icon_dark" visible={isVisible} >
24901
- function create_default_slot$c(ctx) {
24998
+ function create_default_slot$d(ctx) {
24902
24999
  let t;
24903
25000
  let current;
24904
25001
  t = new Locale_strings({ props: { key: "showPassword" } });
@@ -24939,7 +25036,7 @@ function create_input_button_slot(ctx) {
24939
25036
  props: {
24940
25037
  classes: "tw_password-icon dark:tw_password-icon_dark",
24941
25038
  visible: /*isVisible*/ ctx[10],
24942
- $$slots: { default: [create_default_slot$c] },
25039
+ $$slots: { default: [create_default_slot$d] },
24943
25040
  $$scope: { ctx }
24944
25041
  }
24945
25042
  });
@@ -24991,7 +25088,7 @@ function create_input_button_slot(ctx) {
24991
25088
  }
24992
25089
 
24993
25090
  // (89:0) {#if callbackMetadata?.platform?.confirmPassword}
24994
- function create_if_block$8(ctx) {
25091
+ function create_if_block$9(ctx) {
24995
25092
  let confirminput;
24996
25093
  let current;
24997
25094
 
@@ -25038,7 +25135,7 @@ function create_if_block$8(ctx) {
25038
25135
  };
25039
25136
  }
25040
25137
 
25041
- function create_fragment$o(ctx) {
25138
+ function create_fragment$p(ctx) {
25042
25139
  let input;
25043
25140
  let t;
25044
25141
  let if_block_anchor;
@@ -25063,13 +25160,13 @@ function create_fragment$o(ctx) {
25063
25160
  : '',
25064
25161
  $$slots: {
25065
25162
  "input-button": [create_input_button_slot],
25066
- default: [create_default_slot_1$6]
25163
+ default: [create_default_slot_1$7]
25067
25164
  },
25068
25165
  $$scope: { ctx }
25069
25166
  }
25070
25167
  });
25071
25168
 
25072
- let if_block = /*callbackMetadata*/ ctx[1]?.platform?.confirmPassword && create_if_block$8(ctx);
25169
+ let if_block = /*callbackMetadata*/ ctx[1]?.platform?.confirmPassword && create_if_block$9(ctx);
25073
25170
 
25074
25171
  return {
25075
25172
  c() {
@@ -25118,7 +25215,7 @@ function create_fragment$o(ctx) {
25118
25215
  transition_in(if_block, 1);
25119
25216
  }
25120
25217
  } else {
25121
- if_block = create_if_block$8(ctx);
25218
+ if_block = create_if_block$9(ctx);
25122
25219
  if_block.c();
25123
25220
  transition_in(if_block, 1);
25124
25221
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -25153,7 +25250,7 @@ function create_fragment$o(ctx) {
25153
25250
  };
25154
25251
  }
25155
25252
 
25156
- function instance$o($$self, $$props, $$invalidate) {
25253
+ function instance$p($$self, $$props, $$invalidate) {
25157
25254
  let { $$slots: slots = {}, $$scope } = $$props;
25158
25255
  let { callback } = $$props;
25159
25256
  let { callbackMetadata } = $$props;
@@ -25262,7 +25359,7 @@ class Base extends SvelteComponent {
25262
25359
  constructor(options) {
25263
25360
  super();
25264
25361
 
25265
- init(this, options, instance$o, create_fragment$o, safe_not_equal, {
25362
+ init(this, options, instance$p, create_fragment$p, safe_not_equal, {
25266
25363
  callback: 17,
25267
25364
  callbackMetadata: 1,
25268
25365
  key: 0,
@@ -25277,7 +25374,7 @@ class Base extends SvelteComponent {
25277
25374
 
25278
25375
  /* src/lib/journey/callbacks/password/password.svelte generated by Svelte v3.55.1 */
25279
25376
 
25280
- function create_fragment$n(ctx) {
25377
+ function create_fragment$o(ctx) {
25281
25378
  let base;
25282
25379
  let current;
25283
25380
 
@@ -25321,7 +25418,7 @@ function create_fragment$n(ctx) {
25321
25418
  };
25322
25419
  }
25323
25420
 
25324
- function instance$n($$self, $$props, $$invalidate) {
25421
+ function instance$o($$self, $$props, $$invalidate) {
25325
25422
  const selfSubmitFunction = null;
25326
25423
  const stepMetadata = null;
25327
25424
  let { callback } = $$props;
@@ -25351,7 +25448,7 @@ class Password extends SvelteComponent {
25351
25448
  constructor(options) {
25352
25449
  super();
25353
25450
 
25354
- init(this, options, instance$n, create_fragment$n, safe_not_equal, {
25451
+ init(this, options, instance$o, create_fragment$o, safe_not_equal, {
25355
25452
  selfSubmitFunction: 4,
25356
25453
  stepMetadata: 5,
25357
25454
  callback: 0,
@@ -25371,7 +25468,7 @@ class Password extends SvelteComponent {
25371
25468
 
25372
25469
  /* src/lib/components/primitives/text/text.svelte generated by Svelte v3.55.1 */
25373
25470
 
25374
- function create_fragment$m(ctx) {
25471
+ function create_fragment$n(ctx) {
25375
25472
  let p;
25376
25473
  let p_class_value;
25377
25474
  let current;
@@ -25429,7 +25526,7 @@ function create_fragment$m(ctx) {
25429
25526
  };
25430
25527
  }
25431
25528
 
25432
- function instance$m($$self, $$props, $$invalidate) {
25529
+ function instance$n($$self, $$props, $$invalidate) {
25433
25530
  let { $$slots: slots = {}, $$scope } = $$props;
25434
25531
  let { classes = '' } = $$props;
25435
25532
 
@@ -25444,13 +25541,13 @@ function instance$m($$self, $$props, $$invalidate) {
25444
25541
  class Text extends SvelteComponent {
25445
25542
  constructor(options) {
25446
25543
  super();
25447
- init(this, options, instance$m, create_fragment$m, safe_not_equal, { classes: 0 });
25544
+ init(this, options, instance$n, create_fragment$n, safe_not_equal, { classes: 0 });
25448
25545
  }
25449
25546
  }
25450
25547
 
25451
25548
  /* src/lib/journey/callbacks/polling-wait/polling-wait.svelte generated by Svelte v3.55.1 */
25452
25549
 
25453
- function create_default_slot$b(ctx) {
25550
+ function create_default_slot$c(ctx) {
25454
25551
  let t;
25455
25552
 
25456
25553
  return {
@@ -25469,7 +25566,7 @@ function create_default_slot$b(ctx) {
25469
25566
  };
25470
25567
  }
25471
25568
 
25472
- function create_fragment$l(ctx) {
25569
+ function create_fragment$m(ctx) {
25473
25570
  let div;
25474
25571
  let spinner;
25475
25572
  let t;
@@ -25485,7 +25582,7 @@ function create_fragment$l(ctx) {
25485
25582
 
25486
25583
  text_1 = new Text({
25487
25584
  props: {
25488
- $$slots: { default: [create_default_slot$b] },
25585
+ $$slots: { default: [create_default_slot$c] },
25489
25586
  $$scope: { ctx }
25490
25587
  }
25491
25588
  });
@@ -25533,7 +25630,7 @@ function create_fragment$l(ctx) {
25533
25630
  };
25534
25631
  }
25535
25632
 
25536
- function instance$l($$self, $$props, $$invalidate) {
25633
+ function instance$m($$self, $$props, $$invalidate) {
25537
25634
  const stepMetadata = null;
25538
25635
  const style = {};
25539
25636
  let { callback } = $$props;
@@ -25584,7 +25681,7 @@ class Polling_wait extends SvelteComponent {
25584
25681
  constructor(options) {
25585
25682
  super();
25586
25683
 
25587
- init(this, options, instance$l, create_fragment$l, safe_not_equal, {
25684
+ init(this, options, instance$m, create_fragment$m, safe_not_equal, {
25588
25685
  stepMetadata: 3,
25589
25686
  style: 4,
25590
25687
  callback: 1,
@@ -25604,7 +25701,7 @@ class Polling_wait extends SvelteComponent {
25604
25701
 
25605
25702
  /* src/lib/journey/callbacks/redirect/redirect.svelte generated by Svelte v3.55.1 */
25606
25703
 
25607
- function create_default_slot$a(ctx) {
25704
+ function create_default_slot$b(ctx) {
25608
25705
  let t;
25609
25706
 
25610
25707
  return {
@@ -25623,7 +25720,7 @@ function create_default_slot$a(ctx) {
25623
25720
  };
25624
25721
  }
25625
25722
 
25626
- function create_fragment$k(ctx) {
25723
+ function create_fragment$l(ctx) {
25627
25724
  let div;
25628
25725
  let spinner;
25629
25726
  let t;
@@ -25639,7 +25736,7 @@ function create_fragment$k(ctx) {
25639
25736
 
25640
25737
  text_1 = new Text({
25641
25738
  props: {
25642
- $$slots: { default: [create_default_slot$a] },
25739
+ $$slots: { default: [create_default_slot$b] },
25643
25740
  $$scope: { ctx }
25644
25741
  }
25645
25742
  });
@@ -25688,7 +25785,7 @@ function create_fragment$k(ctx) {
25688
25785
  };
25689
25786
  }
25690
25787
 
25691
- function instance$k($$self, $$props, $$invalidate) {
25788
+ function instance$l($$self, $$props, $$invalidate) {
25692
25789
  const callbackMetadata = null;
25693
25790
  const selfSubmitFunction = null;
25694
25791
  const stepMetadata = null;
@@ -25715,7 +25812,7 @@ class Redirect extends SvelteComponent {
25715
25812
  constructor(options) {
25716
25813
  super();
25717
25814
 
25718
- init(this, options, instance$k, create_fragment$k, safe_not_equal, {
25815
+ init(this, options, instance$l, create_fragment$l, safe_not_equal, {
25719
25816
  callbackMetadata: 1,
25720
25817
  selfSubmitFunction: 2,
25721
25818
  stepMetadata: 3,
@@ -25743,7 +25840,7 @@ class Redirect extends SvelteComponent {
25743
25840
 
25744
25841
  /* src/lib/components/icons/apple-icon.svelte generated by Svelte v3.55.1 */
25745
25842
 
25746
- function create_fragment$j(ctx) {
25843
+ function create_fragment$k(ctx) {
25747
25844
  let svg;
25748
25845
  let path0;
25749
25846
  let path1;
@@ -25788,7 +25885,7 @@ function create_fragment$j(ctx) {
25788
25885
  };
25789
25886
  }
25790
25887
 
25791
- function instance$j($$self, $$props, $$invalidate) {
25888
+ function instance$k($$self, $$props, $$invalidate) {
25792
25889
  let { classes = '' } = $$props;
25793
25890
  let { size = '24px' } = $$props;
25794
25891
 
@@ -25803,13 +25900,13 @@ function instance$j($$self, $$props, $$invalidate) {
25803
25900
  class Apple_icon extends SvelteComponent {
25804
25901
  constructor(options) {
25805
25902
  super();
25806
- init(this, options, instance$j, create_fragment$j, safe_not_equal, { classes: 0, size: 1 });
25903
+ init(this, options, instance$k, create_fragment$k, safe_not_equal, { classes: 0, size: 1 });
25807
25904
  }
25808
25905
  }
25809
25906
 
25810
25907
  /* src/lib/components/icons/facebook-icon.svelte generated by Svelte v3.55.1 */
25811
25908
 
25812
- function create_fragment$i(ctx) {
25909
+ function create_fragment$j(ctx) {
25813
25910
  let svg;
25814
25911
  let path;
25815
25912
 
@@ -25850,7 +25947,7 @@ function create_fragment$i(ctx) {
25850
25947
  };
25851
25948
  }
25852
25949
 
25853
- function instance$i($$self, $$props, $$invalidate) {
25950
+ function instance$j($$self, $$props, $$invalidate) {
25854
25951
  let { classes = '' } = $$props;
25855
25952
  let { size = '24px' } = $$props;
25856
25953
 
@@ -25865,13 +25962,13 @@ function instance$i($$self, $$props, $$invalidate) {
25865
25962
  class Facebook_icon extends SvelteComponent {
25866
25963
  constructor(options) {
25867
25964
  super();
25868
- init(this, options, instance$i, create_fragment$i, safe_not_equal, { classes: 0, size: 1 });
25965
+ init(this, options, instance$j, create_fragment$j, safe_not_equal, { classes: 0, size: 1 });
25869
25966
  }
25870
25967
  }
25871
25968
 
25872
25969
  /* src/lib/components/icons/google-icon.svelte generated by Svelte v3.55.1 */
25873
25970
 
25874
- function create_fragment$h(ctx) {
25971
+ function create_fragment$i(ctx) {
25875
25972
  let svg;
25876
25973
  let g;
25877
25974
  let path0;
@@ -25936,7 +26033,7 @@ function create_fragment$h(ctx) {
25936
26033
  };
25937
26034
  }
25938
26035
 
25939
- function instance$h($$self, $$props, $$invalidate) {
26036
+ function instance$i($$self, $$props, $$invalidate) {
25940
26037
  let { classes = '' } = $$props;
25941
26038
  let { size = '24px' } = $$props;
25942
26039
 
@@ -25951,13 +26048,13 @@ function instance$h($$self, $$props, $$invalidate) {
25951
26048
  class Google_icon extends SvelteComponent {
25952
26049
  constructor(options) {
25953
26050
  super();
25954
- init(this, options, instance$h, create_fragment$h, safe_not_equal, { classes: 0, size: 1 });
26051
+ init(this, options, instance$i, create_fragment$i, safe_not_equal, { classes: 0, size: 1 });
25955
26052
  }
25956
26053
  }
25957
26054
 
25958
26055
  /* src/lib/journey/callbacks/select-idp/select-idp.svelte generated by Svelte v3.55.1 */
25959
26056
 
25960
- function get_each_context$4(ctx, list, i) {
26057
+ function get_each_context$5(ctx, list, i) {
25961
26058
  const child_ctx = ctx.slice();
25962
26059
  child_ctx[10] = list[i];
25963
26060
  return child_ctx;
@@ -26018,7 +26115,7 @@ function create_if_block_3$2(ctx) {
26018
26115
  }
26019
26116
 
26020
26117
  // (55:58)
26021
- function create_if_block_2$5(ctx) {
26118
+ function create_if_block_2$6(ctx) {
26022
26119
  let button;
26023
26120
  let current;
26024
26121
 
@@ -26072,7 +26169,7 @@ function create_if_block_2$5(ctx) {
26072
26169
  }
26073
26170
 
26074
26171
  // (44:4) {#if idp.text.toUpperCase().includes('APPLE')}
26075
- function create_if_block_1$6(ctx) {
26172
+ function create_if_block_1$7(ctx) {
26076
26173
  let button;
26077
26174
  let current;
26078
26175
 
@@ -26086,7 +26183,7 @@ function create_if_block_1$6(ctx) {
26086
26183
  type: "button",
26087
26184
  width: "auto",
26088
26185
  onClick: func,
26089
- $$slots: { default: [create_default_slot_2$3] },
26186
+ $$slots: { default: [create_default_slot_2$4] },
26090
26187
  $$scope: { ctx }
26091
26188
  }
26092
26189
  });
@@ -26242,7 +26339,7 @@ function create_default_slot_3(ctx) {
26242
26339
  }
26243
26340
 
26244
26341
  // (45:6) <Button classes="tw_button-apple dark:tw_button-apple_dark" type="button" width="auto" onClick={() => setBtnValue(idp.value)} >
26245
- function create_default_slot_2$3(ctx) {
26342
+ function create_default_slot_2$4(ctx) {
26246
26343
  let appleicon;
26247
26344
  let t0;
26248
26345
  let t1;
@@ -26300,7 +26397,7 @@ function create_default_slot_2$3(ctx) {
26300
26397
  }
26301
26398
 
26302
26399
  // (43:2) <Grid num={1}>
26303
- function create_default_slot_1$5(ctx) {
26400
+ function create_default_slot_1$6(ctx) {
26304
26401
  let show_if;
26305
26402
  let show_if_1;
26306
26403
  let show_if_2;
@@ -26308,7 +26405,7 @@ function create_default_slot_1$5(ctx) {
26308
26405
  let if_block;
26309
26406
  let if_block_anchor;
26310
26407
  let current;
26311
- const if_block_creators = [create_if_block_1$6, create_if_block_2$5, create_if_block_3$2];
26408
+ const if_block_creators = [create_if_block_1$7, create_if_block_2$6, create_if_block_3$2];
26312
26409
  const if_blocks = [];
26313
26410
 
26314
26411
  function select_block_type(ctx, dirty) {
@@ -26397,14 +26494,14 @@ function create_default_slot_1$5(ctx) {
26397
26494
  }
26398
26495
 
26399
26496
  // (42:0) {#each idps as idp}
26400
- function create_each_block$4(ctx) {
26497
+ function create_each_block$5(ctx) {
26401
26498
  let grid;
26402
26499
  let current;
26403
26500
 
26404
26501
  grid = new Grid({
26405
26502
  props: {
26406
26503
  num: 1,
26407
- $$slots: { default: [create_default_slot_1$5] },
26504
+ $$slots: { default: [create_default_slot_1$6] },
26408
26505
  $$scope: { ctx }
26409
26506
  }
26410
26507
  });
@@ -26442,14 +26539,14 @@ function create_each_block$4(ctx) {
26442
26539
  }
26443
26540
 
26444
26541
  // (81:0) {#if stepMetadata && stepMetadata.derived.numOfCallbacks > 1}
26445
- function create_if_block$7(ctx) {
26542
+ function create_if_block$8(ctx) {
26446
26543
  let grid;
26447
26544
  let current;
26448
26545
 
26449
26546
  grid = new Grid({
26450
26547
  props: {
26451
26548
  num: 1,
26452
- $$slots: { default: [create_default_slot$9] },
26549
+ $$slots: { default: [create_default_slot$a] },
26453
26550
  $$scope: { ctx }
26454
26551
  }
26455
26552
  });
@@ -26478,7 +26575,7 @@ function create_if_block$7(ctx) {
26478
26575
  }
26479
26576
 
26480
26577
  // (82:2) <Grid num={1}>
26481
- function create_default_slot$9(ctx) {
26578
+ function create_default_slot$a(ctx) {
26482
26579
  let hr;
26483
26580
 
26484
26581
  return {
@@ -26496,7 +26593,7 @@ function create_default_slot$9(ctx) {
26496
26593
  };
26497
26594
  }
26498
26595
 
26499
- function create_fragment$g(ctx) {
26596
+ function create_fragment$h(ctx) {
26500
26597
  let t;
26501
26598
  let if_block_anchor;
26502
26599
  let current;
@@ -26504,14 +26601,14 @@ function create_fragment$g(ctx) {
26504
26601
  let each_blocks = [];
26505
26602
 
26506
26603
  for (let i = 0; i < each_value.length; i += 1) {
26507
- each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
26604
+ each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
26508
26605
  }
26509
26606
 
26510
26607
  const out = i => transition_out(each_blocks[i], 1, 1, () => {
26511
26608
  each_blocks[i] = null;
26512
26609
  });
26513
26610
 
26514
- let if_block = /*stepMetadata*/ ctx[0] && /*stepMetadata*/ ctx[0].derived.numOfCallbacks > 1 && create_if_block$7(ctx);
26611
+ let if_block = /*stepMetadata*/ ctx[0] && /*stepMetadata*/ ctx[0].derived.numOfCallbacks > 1 && create_if_block$8(ctx);
26515
26612
 
26516
26613
  return {
26517
26614
  c() {
@@ -26539,13 +26636,13 @@ function create_fragment$g(ctx) {
26539
26636
  let i;
26540
26637
 
26541
26638
  for (i = 0; i < each_value.length; i += 1) {
26542
- const child_ctx = get_each_context$4(ctx, each_value, i);
26639
+ const child_ctx = get_each_context$5(ctx, each_value, i);
26543
26640
 
26544
26641
  if (each_blocks[i]) {
26545
26642
  each_blocks[i].p(child_ctx, dirty);
26546
26643
  transition_in(each_blocks[i], 1);
26547
26644
  } else {
26548
- each_blocks[i] = create_each_block$4(child_ctx);
26645
+ each_blocks[i] = create_each_block$5(child_ctx);
26549
26646
  each_blocks[i].c();
26550
26647
  transition_in(each_blocks[i], 1);
26551
26648
  each_blocks[i].m(t.parentNode, t);
@@ -26567,7 +26664,7 @@ function create_fragment$g(ctx) {
26567
26664
  transition_in(if_block, 1);
26568
26665
  }
26569
26666
  } else {
26570
- if_block = create_if_block$7(ctx);
26667
+ if_block = create_if_block$8(ctx);
26571
26668
  if_block.c();
26572
26669
  transition_in(if_block, 1);
26573
26670
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -26611,7 +26708,7 @@ function create_fragment$g(ctx) {
26611
26708
  };
26612
26709
  }
26613
26710
 
26614
- function instance$g($$self, $$props, $$invalidate) {
26711
+ function instance$h($$self, $$props, $$invalidate) {
26615
26712
  const style = {};
26616
26713
  let { callback } = $$props;
26617
26714
  let { callbackMetadata } = $$props;
@@ -26681,7 +26778,7 @@ class Select_idp extends SvelteComponent {
26681
26778
  constructor(options) {
26682
26779
  super();
26683
26780
 
26684
- init(this, options, instance$g, create_fragment$g, safe_not_equal, {
26781
+ init(this, options, instance$h, create_fragment$h, safe_not_equal, {
26685
26782
  style: 4,
26686
26783
  callback: 5,
26687
26784
  callbackMetadata: 3,
@@ -26703,14 +26800,14 @@ function get_each_context_1(ctx, list, i) {
26703
26800
  return child_ctx;
26704
26801
  }
26705
26802
 
26706
- function get_each_context$3(ctx, list, i) {
26803
+ function get_each_context$4(ctx, list, i) {
26707
26804
  const child_ctx = ctx.slice();
26708
26805
  child_ctx[7] = list[i];
26709
26806
  return child_ctx;
26710
26807
  }
26711
26808
 
26712
26809
  // (34:33)
26713
- function create_if_block_1$5(ctx) {
26810
+ function create_if_block_1$6(ctx) {
26714
26811
  let div;
26715
26812
  let p;
26716
26813
  let t0;
@@ -26806,7 +26903,7 @@ function create_if_block_1$5(ctx) {
26806
26903
  }
26807
26904
 
26808
26905
  // (23:0) {#if simplifiedFailures.length}
26809
- function create_if_block$6(ctx) {
26906
+ function create_if_block$7(ctx) {
26810
26907
  let div;
26811
26908
  let p;
26812
26909
  let t0;
@@ -26819,7 +26916,7 @@ function create_if_block$6(ctx) {
26819
26916
  let each_blocks = [];
26820
26917
 
26821
26918
  for (let i = 0; i < each_value.length; i += 1) {
26822
- each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
26919
+ each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
26823
26920
  }
26824
26921
 
26825
26922
  return {
@@ -26862,12 +26959,12 @@ function create_if_block$6(ctx) {
26862
26959
  let i;
26863
26960
 
26864
26961
  for (i = 0; i < each_value.length; i += 1) {
26865
- const child_ctx = get_each_context$3(ctx, each_value, i);
26962
+ const child_ctx = get_each_context$4(ctx, each_value, i);
26866
26963
 
26867
26964
  if (each_blocks[i]) {
26868
26965
  each_blocks[i].p(child_ctx, dirty);
26869
26966
  } else {
26870
- each_blocks[i] = create_each_block$3(child_ctx);
26967
+ each_blocks[i] = create_each_block$4(child_ctx);
26871
26968
  each_blocks[i].c();
26872
26969
  each_blocks[i].m(ul, null);
26873
26970
  }
@@ -26927,7 +27024,7 @@ function create_each_block_1(ctx) {
26927
27024
  }
26928
27025
 
26929
27026
  // (29:6) {#each simplifiedFailures as failure}
26930
- function create_each_block$3(ctx) {
27027
+ function create_each_block$4(ctx) {
26931
27028
  let li;
26932
27029
  let t_value = /*failure*/ ctx[7].message + "";
26933
27030
  let t;
@@ -26951,12 +27048,12 @@ function create_each_block$3(ctx) {
26951
27048
  };
26952
27049
  }
26953
27050
 
26954
- function create_fragment$f(ctx) {
27051
+ function create_fragment$g(ctx) {
26955
27052
  let current_block_type_index;
26956
27053
  let if_block;
26957
27054
  let if_block_anchor;
26958
27055
  let current;
26959
- const if_block_creators = [create_if_block$6, create_if_block_1$5];
27056
+ const if_block_creators = [create_if_block$7, create_if_block_1$6];
26960
27057
  const if_blocks = [];
26961
27058
 
26962
27059
  function select_block_type(ctx, dirty) {
@@ -27037,7 +27134,7 @@ function create_fragment$f(ctx) {
27037
27134
  };
27038
27135
  }
27039
27136
 
27040
- function instance$f($$self, $$props, $$invalidate) {
27137
+ function instance$g($$self, $$props, $$invalidate) {
27041
27138
  let { callback } = $$props;
27042
27139
  let { key = undefined } = $$props;
27043
27140
  let { label } = $$props;
@@ -27092,7 +27189,7 @@ class Policies extends SvelteComponent {
27092
27189
  constructor(options) {
27093
27190
  super();
27094
27191
 
27095
- init(this, options, instance$f, create_fragment$f, safe_not_equal, {
27192
+ init(this, options, instance$g, create_fragment$g, safe_not_equal, {
27096
27193
  callback: 4,
27097
27194
  key: 0,
27098
27195
  label: 5,
@@ -27103,7 +27200,7 @@ class Policies extends SvelteComponent {
27103
27200
 
27104
27201
  /* src/lib/journey/callbacks/string-attribute/string-attribute-input.svelte generated by Svelte v3.55.1 */
27105
27202
 
27106
- function create_default_slot$8(ctx) {
27203
+ function create_default_slot$9(ctx) {
27107
27204
  let policies_1;
27108
27205
  let current;
27109
27206
 
@@ -27146,7 +27243,7 @@ function create_default_slot$8(ctx) {
27146
27243
  };
27147
27244
  }
27148
27245
 
27149
- function create_fragment$e(ctx) {
27246
+ function create_fragment$f(ctx) {
27150
27247
  let input;
27151
27248
  let current;
27152
27249
 
@@ -27164,7 +27261,7 @@ function create_fragment$e(ctx) {
27164
27261
  type: /*type*/ ctx[7],
27165
27262
  showMessage: !!/*isInvalid*/ ctx[8],
27166
27263
  value: /*previousValue*/ ctx[6],
27167
- $$slots: { default: [create_default_slot$8] },
27264
+ $$slots: { default: [create_default_slot$9] },
27168
27265
  $$scope: { ctx }
27169
27266
  }
27170
27267
  });
@@ -27214,7 +27311,7 @@ function create_fragment$e(ctx) {
27214
27311
  };
27215
27312
  }
27216
27313
 
27217
- function instance$e($$self, $$props, $$invalidate) {
27314
+ function instance$f($$self, $$props, $$invalidate) {
27218
27315
  const selfSubmitFunction = null;
27219
27316
  const stepMetadata = null;
27220
27317
  const style = {};
@@ -27294,7 +27391,7 @@ class String_attribute_input extends SvelteComponent {
27294
27391
  constructor(options) {
27295
27392
  super();
27296
27393
 
27297
- init(this, options, instance$e, create_fragment$e, safe_not_equal, {
27394
+ init(this, options, instance$f, create_fragment$f, safe_not_equal, {
27298
27395
  selfSubmitFunction: 10,
27299
27396
  stepMetadata: 11,
27300
27397
  style: 12,
@@ -27318,7 +27415,7 @@ class String_attribute_input extends SvelteComponent {
27318
27415
 
27319
27416
  /* src/lib/components/primitives/link/link.svelte generated by Svelte v3.55.1 */
27320
27417
 
27321
- function create_fragment$d(ctx) {
27418
+ function create_fragment$e(ctx) {
27322
27419
  let a;
27323
27420
  let a_class_value;
27324
27421
  let current;
@@ -27386,7 +27483,7 @@ function create_fragment$d(ctx) {
27386
27483
  };
27387
27484
  }
27388
27485
 
27389
- function instance$d($$self, $$props, $$invalidate) {
27486
+ function instance$e($$self, $$props, $$invalidate) {
27390
27487
  let { $$slots: slots = {}, $$scope } = $$props;
27391
27488
  let { classes = '' } = $$props;
27392
27489
  let { href } = $$props;
@@ -27405,7 +27502,7 @@ function instance$d($$self, $$props, $$invalidate) {
27405
27502
  class Link extends SvelteComponent {
27406
27503
  constructor(options) {
27407
27504
  super();
27408
- init(this, options, instance$d, create_fragment$d, safe_not_equal, { classes: 0, href: 1, target: 2 });
27505
+ init(this, options, instance$e, create_fragment$e, safe_not_equal, { classes: 0, href: 1, target: 2 });
27409
27506
  }
27410
27507
  }
27411
27508
 
@@ -27452,7 +27549,7 @@ function create_else_block$2(ctx) {
27452
27549
  }
27453
27550
 
27454
27551
  // (43:0) {#if $links?.termsAndConditions}
27455
- function create_if_block$5(ctx) {
27552
+ function create_if_block$6(ctx) {
27456
27553
  let link;
27457
27554
  let t;
27458
27555
  let checkbox;
@@ -27463,7 +27560,7 @@ function create_if_block$5(ctx) {
27463
27560
  classes: "tw_block tw_mb-4",
27464
27561
  href: /*$links*/ ctx[2]?.termsAndConditions,
27465
27562
  target: "_blank",
27466
- $$slots: { default: [create_default_slot_1$4] },
27563
+ $$slots: { default: [create_default_slot_1$5] },
27467
27564
  $$scope: { ctx }
27468
27565
  }
27469
27566
  });
@@ -27474,7 +27571,7 @@ function create_if_block$5(ctx) {
27474
27571
  key: /*inputName*/ ctx[1],
27475
27572
  onChange: /*setValue*/ ctx[4],
27476
27573
  value: false,
27477
- $$slots: { default: [create_default_slot$7] },
27574
+ $$slots: { default: [create_default_slot$8] },
27478
27575
  $$scope: { ctx }
27479
27576
  }
27480
27577
  });
@@ -27530,7 +27627,7 @@ function create_if_block$5(ctx) {
27530
27627
  }
27531
27628
 
27532
27629
  // (44:2) <Link classes="tw_block tw_mb-4" href={$links?.termsAndConditions} target="_blank">
27533
- function create_default_slot_1$4(ctx) {
27630
+ function create_default_slot_1$5(ctx) {
27534
27631
  let t_value = interpolate('termsAndConditionsLinkText') + "";
27535
27632
  let t;
27536
27633
 
@@ -27549,7 +27646,7 @@ function create_default_slot_1$4(ctx) {
27549
27646
  }
27550
27647
 
27551
27648
  // (47:2) <Checkbox isFirstInvalidInput={callbackMetadata?.derived.isFirstInvalidInput || false} key={inputName} onChange={setValue} value={false} >
27552
- function create_default_slot$7(ctx) {
27649
+ function create_default_slot$8(ctx) {
27553
27650
  let t;
27554
27651
  let current;
27555
27652
  t = new Locale_strings({ props: { key: "termsAndConditions" } });
@@ -27578,12 +27675,12 @@ function create_default_slot$7(ctx) {
27578
27675
  };
27579
27676
  }
27580
27677
 
27581
- function create_fragment$c(ctx) {
27678
+ function create_fragment$d(ctx) {
27582
27679
  let current_block_type_index;
27583
27680
  let if_block;
27584
27681
  let if_block_anchor;
27585
27682
  let current;
27586
- const if_block_creators = [create_if_block$5, create_else_block$2];
27683
+ const if_block_creators = [create_if_block$6, create_else_block$2];
27587
27684
  const if_blocks = [];
27588
27685
 
27589
27686
  function select_block_type(ctx, dirty) {
@@ -27647,7 +27744,7 @@ function create_fragment$c(ctx) {
27647
27744
  };
27648
27745
  }
27649
27746
 
27650
- function instance$c($$self, $$props, $$invalidate) {
27747
+ function instance$d($$self, $$props, $$invalidate) {
27651
27748
  let $links;
27652
27749
  component_subscribe($$self, links, $$value => $$invalidate(2, $links = $$value));
27653
27750
  const selfSubmitFunction = null;
@@ -27715,7 +27812,7 @@ class Terms_conditions extends SvelteComponent {
27715
27812
  constructor(options) {
27716
27813
  super();
27717
27814
 
27718
- init(this, options, instance$c, create_fragment$c, safe_not_equal, {
27815
+ init(this, options, instance$d, create_fragment$d, safe_not_equal, {
27719
27816
  selfSubmitFunction: 5,
27720
27817
  stepMetadata: 6,
27721
27818
  style: 7,
@@ -27740,7 +27837,7 @@ class Terms_conditions extends SvelteComponent {
27740
27837
 
27741
27838
  /* src/lib/journey/callbacks/text-output/text-output.svelte generated by Svelte v3.55.1 */
27742
27839
 
27743
- function create_default_slot$6(ctx) {
27840
+ function create_default_slot$7(ctx) {
27744
27841
  let html_tag;
27745
27842
  let html_anchor;
27746
27843
 
@@ -27764,14 +27861,14 @@ function create_default_slot$6(ctx) {
27764
27861
  };
27765
27862
  }
27766
27863
 
27767
- function create_fragment$b(ctx) {
27864
+ function create_fragment$c(ctx) {
27768
27865
  let text_1;
27769
27866
  let current;
27770
27867
 
27771
27868
  text_1 = new Text({
27772
27869
  props: {
27773
27870
  classes: "tw_font-bold tw_mt-6",
27774
- $$slots: { default: [create_default_slot$6] },
27871
+ $$slots: { default: [create_default_slot$7] },
27775
27872
  $$scope: { ctx }
27776
27873
  }
27777
27874
  });
@@ -27808,7 +27905,7 @@ function create_fragment$b(ctx) {
27808
27905
  };
27809
27906
  }
27810
27907
 
27811
- function instance$b($$self, $$props, $$invalidate) {
27908
+ function instance$c($$self, $$props, $$invalidate) {
27812
27909
  const callbackMetadata = null;
27813
27910
  const selfSubmitFunction = null;
27814
27911
  const stepMetadata = null;
@@ -27845,7 +27942,7 @@ class Text_output extends SvelteComponent {
27845
27942
  constructor(options) {
27846
27943
  super();
27847
27944
 
27848
- init(this, options, instance$b, create_fragment$b, safe_not_equal, {
27945
+ init(this, options, instance$c, create_fragment$c, safe_not_equal, {
27849
27946
  callbackMetadata: 1,
27850
27947
  selfSubmitFunction: 2,
27851
27948
  stepMetadata: 3,
@@ -27873,7 +27970,7 @@ class Text_output extends SvelteComponent {
27873
27970
 
27874
27971
  /* src/lib/journey/callbacks/unknown/unknown.svelte generated by Svelte v3.55.1 */
27875
27972
 
27876
- function create_fragment$a(ctx) {
27973
+ function create_fragment$b(ctx) {
27877
27974
  let p;
27878
27975
 
27879
27976
  return {
@@ -27894,7 +27991,7 @@ function create_fragment$a(ctx) {
27894
27991
  };
27895
27992
  }
27896
27993
 
27897
- function instance$a($$self, $$props, $$invalidate) {
27994
+ function instance$b($$self, $$props, $$invalidate) {
27898
27995
  const callbackMetadata = null;
27899
27996
  const selfSubmitFunction = null;
27900
27997
  const stepMetadata = null;
@@ -27913,7 +28010,7 @@ class Unknown extends SvelteComponent {
27913
28010
  constructor(options) {
27914
28011
  super();
27915
28012
 
27916
- init(this, options, instance$a, create_fragment$a, safe_not_equal, {
28013
+ init(this, options, instance$b, create_fragment$b, safe_not_equal, {
27917
28014
  callbackMetadata: 1,
27918
28015
  selfSubmitFunction: 2,
27919
28016
  stepMetadata: 3,
@@ -27941,7 +28038,7 @@ class Unknown extends SvelteComponent {
27941
28038
 
27942
28039
  /* src/lib/journey/callbacks/password/validated-create-password.svelte generated by Svelte v3.55.1 */
27943
28040
 
27944
- function create_default_slot$5(ctx) {
28041
+ function create_default_slot$6(ctx) {
27945
28042
  let policies;
27946
28043
  let current;
27947
28044
 
@@ -27982,7 +28079,7 @@ function create_default_slot$5(ctx) {
27982
28079
  };
27983
28080
  }
27984
28081
 
27985
- function create_fragment$9(ctx) {
28082
+ function create_fragment$a(ctx) {
27986
28083
  let base;
27987
28084
  let current;
27988
28085
 
@@ -27995,7 +28092,7 @@ function create_fragment$9(ctx) {
27995
28092
  key: /*inputName*/ ctx[4],
27996
28093
  showMessage: /*isInvalid*/ ctx[5],
27997
28094
  style: /*style*/ ctx[2],
27998
- $$slots: { default: [create_default_slot$5] },
28095
+ $$slots: { default: [create_default_slot$6] },
27999
28096
  $$scope: { ctx }
28000
28097
  }
28001
28098
  });
@@ -28038,7 +28135,7 @@ function create_fragment$9(ctx) {
28038
28135
  };
28039
28136
  }
28040
28137
 
28041
- function instance$9($$self, $$props, $$invalidate) {
28138
+ function instance$a($$self, $$props, $$invalidate) {
28042
28139
  const selfSubmitFunction = null;
28043
28140
  const stepMetadata = null;
28044
28141
  let { callback } = $$props;
@@ -28090,7 +28187,7 @@ class Validated_create_password extends SvelteComponent {
28090
28187
  constructor(options) {
28091
28188
  super();
28092
28189
 
28093
- init(this, options, instance$9, create_fragment$9, safe_not_equal, {
28190
+ init(this, options, instance$a, create_fragment$a, safe_not_equal, {
28094
28191
  selfSubmitFunction: 7,
28095
28192
  stepMetadata: 8,
28096
28193
  callback: 0,
@@ -28110,7 +28207,7 @@ class Validated_create_password extends SvelteComponent {
28110
28207
 
28111
28208
  /* src/lib/journey/callbacks/username/validated-create-username.svelte generated by Svelte v3.55.1 */
28112
28209
 
28113
- function create_default_slot$4(ctx) {
28210
+ function create_default_slot$5(ctx) {
28114
28211
  let policies;
28115
28212
  let current;
28116
28213
 
@@ -28153,7 +28250,7 @@ function create_default_slot$4(ctx) {
28153
28250
  };
28154
28251
  }
28155
28252
 
28156
- function create_fragment$8(ctx) {
28253
+ function create_fragment$9(ctx) {
28157
28254
  let input;
28158
28255
  let current;
28159
28256
 
@@ -28173,7 +28270,7 @@ function create_fragment$8(ctx) {
28173
28270
  value: typeof /*value*/ ctx[7] === 'string'
28174
28271
  ? /*value*/ ctx[7]
28175
28272
  : '',
28176
- $$slots: { default: [create_default_slot$4] },
28273
+ $$slots: { default: [create_default_slot$5] },
28177
28274
  $$scope: { ctx }
28178
28275
  }
28179
28276
  });
@@ -28223,7 +28320,7 @@ function create_fragment$8(ctx) {
28223
28320
  };
28224
28321
  }
28225
28322
 
28226
- function instance$8($$self, $$props, $$invalidate) {
28323
+ function instance$9($$self, $$props, $$invalidate) {
28227
28324
  const selfSubmitFunction = null;
28228
28325
  const stepMetadata = null;
28229
28326
  let { callback } = $$props;
@@ -28295,7 +28392,7 @@ class Validated_create_username extends SvelteComponent {
28295
28392
  constructor(options) {
28296
28393
  super();
28297
28394
 
28298
- init(this, options, instance$8, create_fragment$8, safe_not_equal, {
28395
+ init(this, options, instance$9, create_fragment$9, safe_not_equal, {
28299
28396
  selfSubmitFunction: 10,
28300
28397
  stepMetadata: 11,
28301
28398
  callback: 0,
@@ -29122,7 +29219,7 @@ function create_if_block_3$1(ctx) {
29122
29219
  }
29123
29220
 
29124
29221
  // (114:55)
29125
- function create_if_block_2$4(ctx) {
29222
+ function create_if_block_2$5(ctx) {
29126
29223
  let confirmation;
29127
29224
  let current;
29128
29225
  const confirmation_spread_levels = [/*newProps*/ ctx[19]];
@@ -29165,7 +29262,7 @@ function create_if_block_2$4(ctx) {
29165
29262
  }
29166
29263
 
29167
29264
  // (108:49)
29168
- function create_if_block_1$4(ctx) {
29265
+ function create_if_block_1$5(ctx) {
29169
29266
  let choice;
29170
29267
  let current;
29171
29268
  const choice_spread_levels = [/*newProps*/ ctx[19]];
@@ -29208,7 +29305,7 @@ function create_if_block_1$4(ctx) {
29208
29305
  }
29209
29306
 
29210
29307
  // (102:0) {#if cbType === CallbackType.BooleanAttributeInputCallback}
29211
- function create_if_block$4(ctx) {
29308
+ function create_if_block$5(ctx) {
29212
29309
  let boolean;
29213
29310
  let current;
29214
29311
  const boolean_spread_levels = [/*newProps*/ ctx[19]];
@@ -29250,16 +29347,16 @@ function create_if_block$4(ctx) {
29250
29347
  };
29251
29348
  }
29252
29349
 
29253
- function create_fragment$7(ctx) {
29350
+ function create_fragment$8(ctx) {
29254
29351
  let current_block_type_index;
29255
29352
  let if_block;
29256
29353
  let if_block_anchor;
29257
29354
  let current;
29258
29355
 
29259
29356
  const if_block_creators = [
29260
- create_if_block$4,
29261
- create_if_block_1$4,
29262
- create_if_block_2$4,
29357
+ create_if_block$5,
29358
+ create_if_block_1$5,
29359
+ create_if_block_2$5,
29263
29360
  create_if_block_3$1,
29264
29361
  create_if_block_4,
29265
29362
  create_if_block_5,
@@ -29374,7 +29471,7 @@ function create_fragment$7(ctx) {
29374
29471
  };
29375
29472
  }
29376
29473
 
29377
- function instance$7($$self, $$props, $$invalidate) {
29474
+ function instance$8($$self, $$props, $$invalidate) {
29378
29475
  let { props } = $$props;
29379
29476
  let cbType;
29380
29477
  let _BooleanAttributeInputCallback;
@@ -29486,13 +29583,13 @@ function instance$7($$self, $$props, $$invalidate) {
29486
29583
  class Callback_mapper extends SvelteComponent {
29487
29584
  constructor(options) {
29488
29585
  super();
29489
- init(this, options, instance$7, create_fragment$7, safe_not_equal, { props: 0 });
29586
+ init(this, options, instance$8, create_fragment$8, safe_not_equal, { props: 0 });
29490
29587
  }
29491
29588
  }
29492
29589
 
29493
29590
  /* src/lib/journey/stages/generic.svelte generated by Svelte v3.55.1 */
29494
29591
 
29495
- function get_each_context$2(ctx, list, i) {
29592
+ function get_each_context$3(ctx, list, i) {
29496
29593
  const child_ctx = ctx.slice();
29497
29594
  child_ctx[15] = list[i];
29498
29595
  child_ctx[17] = i;
@@ -29500,7 +29597,7 @@ function get_each_context$2(ctx, list, i) {
29500
29597
  }
29501
29598
 
29502
29599
  // (71:2) {#if form?.icon}
29503
- function create_if_block_2$3(ctx) {
29600
+ function create_if_block_2$4(ctx) {
29504
29601
  let div;
29505
29602
  let shieldicon;
29506
29603
  let current;
@@ -29540,7 +29637,7 @@ function create_if_block_2$3(ctx) {
29540
29637
  }
29541
29638
 
29542
29639
  // (87:2) {#if form?.message}
29543
- function create_if_block_1$3(ctx) {
29640
+ function create_if_block_1$4(ctx) {
29544
29641
  let alert;
29545
29642
  let current;
29546
29643
 
@@ -29549,7 +29646,7 @@ function create_if_block_1$3(ctx) {
29549
29646
  id: formFailureMessageId,
29550
29647
  needsFocus: /*alertNeedsFocus*/ ctx[5],
29551
29648
  type: "error",
29552
- $$slots: { default: [create_default_slot_2$2] },
29649
+ $$slots: { default: [create_default_slot_2$3] },
29553
29650
  $$scope: { ctx }
29554
29651
  }
29555
29652
  });
@@ -29588,7 +29685,7 @@ function create_if_block_1$3(ctx) {
29588
29685
  }
29589
29686
 
29590
29687
  // (88:4) <Alert id={formFailureMessageId} needsFocus={alertNeedsFocus} type="error">
29591
- function create_default_slot_2$2(ctx) {
29688
+ function create_default_slot_2$3(ctx) {
29592
29689
  let t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "";
29593
29690
  let t;
29594
29691
 
@@ -29609,7 +29706,7 @@ function create_default_slot_2$2(ctx) {
29609
29706
  }
29610
29707
 
29611
29708
  // (93:2) {#each step?.callbacks as callback, idx}
29612
- function create_each_block$2(ctx) {
29709
+ function create_each_block$3(ctx) {
29613
29710
  let callbackmapper;
29614
29711
  let current;
29615
29712
 
@@ -29662,7 +29759,7 @@ function create_each_block$2(ctx) {
29662
29759
  }
29663
29760
 
29664
29761
  // (105:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
29665
- function create_if_block$3(ctx) {
29762
+ function create_if_block$4(ctx) {
29666
29763
  let button;
29667
29764
  let current;
29668
29765
 
@@ -29672,7 +29769,7 @@ function create_if_block$3(ctx) {
29672
29769
  style: "primary",
29673
29770
  type: "submit",
29674
29771
  width: "full",
29675
- $$slots: { default: [create_default_slot_1$3] },
29772
+ $$slots: { default: [create_default_slot_1$4] },
29676
29773
  $$scope: { ctx }
29677
29774
  }
29678
29775
  });
@@ -29711,7 +29808,7 @@ function create_if_block$3(ctx) {
29711
29808
  }
29712
29809
 
29713
29810
  // (106:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
29714
- function create_default_slot_1$3(ctx) {
29811
+ function create_default_slot_1$4(ctx) {
29715
29812
  let t;
29716
29813
  let current;
29717
29814
  t = new Locale_strings({ props: { key: "nextButton" } });
@@ -29741,7 +29838,7 @@ function create_default_slot_1$3(ctx) {
29741
29838
  }
29742
29839
 
29743
29840
  // (64:0) <Form bind:formEl ariaDescribedBy={formAriaDescriptor} id={formElementId} needsFocus={formNeedsFocus} onSubmitWhenValid={submitFormWrapper} >
29744
- function create_default_slot$3(ctx) {
29841
+ function create_default_slot$4(ctx) {
29745
29842
  let t0;
29746
29843
  let header;
29747
29844
  let h1;
@@ -29755,7 +29852,7 @@ function create_default_slot$3(ctx) {
29755
29852
  let t5;
29756
29853
  let backto;
29757
29854
  let current;
29758
- let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$3();
29855
+ let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$4();
29759
29856
 
29760
29857
  sanitize0 = new Server_strings({
29761
29858
  props: {
@@ -29771,19 +29868,19 @@ function create_default_slot$3(ctx) {
29771
29868
  }
29772
29869
  });
29773
29870
 
29774
- let if_block1 = /*form*/ ctx[1]?.message && create_if_block_1$3(ctx);
29871
+ let if_block1 = /*form*/ ctx[1]?.message && create_if_block_1$4(ctx);
29775
29872
  let each_value = /*step*/ ctx[4]?.callbacks;
29776
29873
  let each_blocks = [];
29777
29874
 
29778
29875
  for (let i = 0; i < each_value.length; i += 1) {
29779
- each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
29876
+ each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
29780
29877
  }
29781
29878
 
29782
29879
  const out = i => transition_out(each_blocks[i], 1, 1, () => {
29783
29880
  each_blocks[i] = null;
29784
29881
  });
29785
29882
 
29786
- let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$3(ctx);
29883
+ let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$4(ctx);
29787
29884
  backto = new Back_to({ props: { journey: /*journey*/ ctx[2] } });
29788
29885
 
29789
29886
  return {
@@ -29843,7 +29940,7 @@ function create_default_slot$3(ctx) {
29843
29940
  transition_in(if_block0, 1);
29844
29941
  }
29845
29942
  } else {
29846
- if_block0 = create_if_block_2$3();
29943
+ if_block0 = create_if_block_2$4();
29847
29944
  if_block0.c();
29848
29945
  transition_in(if_block0, 1);
29849
29946
  if_block0.m(t0.parentNode, t0);
@@ -29873,7 +29970,7 @@ function create_default_slot$3(ctx) {
29873
29970
  transition_in(if_block1, 1);
29874
29971
  }
29875
29972
  } else {
29876
- if_block1 = create_if_block_1$3(ctx);
29973
+ if_block1 = create_if_block_1$4(ctx);
29877
29974
  if_block1.c();
29878
29975
  transition_in(if_block1, 1);
29879
29976
  if_block1.m(t3.parentNode, t3);
@@ -29893,13 +29990,13 @@ function create_default_slot$3(ctx) {
29893
29990
  let i;
29894
29991
 
29895
29992
  for (i = 0; i < each_value.length; i += 1) {
29896
- const child_ctx = get_each_context$2(ctx, each_value, i);
29993
+ const child_ctx = get_each_context$3(ctx, each_value, i);
29897
29994
 
29898
29995
  if (each_blocks[i]) {
29899
29996
  each_blocks[i].p(child_ctx, dirty);
29900
29997
  transition_in(each_blocks[i], 1);
29901
29998
  } else {
29902
- each_blocks[i] = create_each_block$2(child_ctx);
29999
+ each_blocks[i] = create_each_block$3(child_ctx);
29903
30000
  each_blocks[i].c();
29904
30001
  transition_in(each_blocks[i], 1);
29905
30002
  each_blocks[i].m(t4.parentNode, t4);
@@ -29923,7 +30020,7 @@ function create_default_slot$3(ctx) {
29923
30020
  transition_in(if_block2, 1);
29924
30021
  }
29925
30022
  } else {
29926
- if_block2 = create_if_block$3(ctx);
30023
+ if_block2 = create_if_block$4(ctx);
29927
30024
  if_block2.c();
29928
30025
  transition_in(if_block2, 1);
29929
30026
  if_block2.m(t5.parentNode, t5);
@@ -29991,7 +30088,7 @@ function create_default_slot$3(ctx) {
29991
30088
  };
29992
30089
  }
29993
30090
 
29994
- function create_fragment$6(ctx) {
30091
+ function create_fragment$7(ctx) {
29995
30092
  let form_1;
29996
30093
  let updating_formEl;
29997
30094
  let current;
@@ -30005,7 +30102,7 @@ function create_fragment$6(ctx) {
30005
30102
  id: formElementId,
30006
30103
  needsFocus: /*formNeedsFocus*/ ctx[8],
30007
30104
  onSubmitWhenValid: /*submitFormWrapper*/ ctx[12],
30008
- $$slots: { default: [create_default_slot$3] },
30105
+ $$slots: { default: [create_default_slot$4] },
30009
30106
  $$scope: { ctx }
30010
30107
  };
30011
30108
 
@@ -30060,7 +30157,7 @@ const formFailureMessageId = 'genericStepFailureMessage';
30060
30157
  const formHeaderId = 'genericStepHeader';
30061
30158
  const formElementId = 'genericStepForm';
30062
30159
 
30063
- function instance$6($$self, $$props, $$invalidate) {
30160
+ function instance$7($$self, $$props, $$invalidate) {
30064
30161
  let $style;
30065
30162
  component_subscribe($$self, style, $$value => $$invalidate(10, $style = $$value));
30066
30163
  let { form } = $$props;
@@ -30155,7 +30252,7 @@ class Generic extends SvelteComponent {
30155
30252
  constructor(options) {
30156
30253
  super();
30157
30254
 
30158
- init(this, options, instance$6, create_fragment$6, safe_not_equal, {
30255
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, {
30159
30256
  form: 1,
30160
30257
  formEl: 0,
30161
30258
  journey: 2,
@@ -30165,9 +30262,9 @@ class Generic extends SvelteComponent {
30165
30262
  }
30166
30263
  }
30167
30264
 
30168
- /* src/lib/components/icons/new-user-icon.svelte generated by Svelte v3.55.1 */
30265
+ /* src/lib/components/icons/key-icon.svelte generated by Svelte v3.55.1 */
30169
30266
 
30170
- function create_fragment$5(ctx) {
30267
+ function create_fragment$6(ctx) {
30171
30268
  let svg;
30172
30269
  let path0;
30173
30270
  let path1;
@@ -30185,12 +30282,12 @@ function create_fragment$5(ctx) {
30185
30282
  if (default_slot) default_slot.c();
30186
30283
  attr(path0, "d", "M0 0h24v24H0z");
30187
30284
  attr(path0, "fill", "none");
30188
- 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");
30285
+ 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");
30189
30286
  attr(svg, "class", /*classes*/ ctx[0]);
30190
- attr(svg, "xmlns", "http://www.w3.org/2000/svg");
30191
30287
  attr(svg, "height", /*size*/ ctx[1]);
30192
- attr(svg, "viewBox", "0 0 24 24");
30193
30288
  attr(svg, "width", /*size*/ ctx[1]);
30289
+ attr(svg, "viewBox", "0 0 24 24");
30290
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
30194
30291
  },
30195
30292
  m(target, anchor) {
30196
30293
  insert(target, svg, anchor);
@@ -30248,7 +30345,7 @@ function create_fragment$5(ctx) {
30248
30345
  };
30249
30346
  }
30250
30347
 
30251
- function instance$5($$self, $$props, $$invalidate) {
30348
+ function instance$6($$self, $$props, $$invalidate) {
30252
30349
  let { $$slots: slots = {}, $$scope } = $$props;
30253
30350
  let { classes = '' } = $$props;
30254
30351
  let { size = '24px' } = $$props;
@@ -30262,29 +30359,29 @@ function instance$5($$self, $$props, $$invalidate) {
30262
30359
  return [classes, size, $$scope, slots];
30263
30360
  }
30264
30361
 
30265
- class New_user_icon extends SvelteComponent {
30362
+ class Key_icon extends SvelteComponent {
30266
30363
  constructor(options) {
30267
30364
  super();
30268
- init(this, options, instance$5, create_fragment$5, safe_not_equal, { classes: 0, size: 1 });
30365
+ init(this, options, instance$6, create_fragment$6, safe_not_equal, { classes: 0, size: 1 });
30269
30366
  }
30270
30367
  }
30271
30368
 
30272
- /* src/lib/journey/stages/registration.svelte generated by Svelte v3.55.1 */
30369
+ /* src/lib/journey/stages/one-time-password.svelte generated by Svelte v3.55.1 */
30273
30370
 
30274
- function get_each_context$1(ctx, list, i) {
30371
+ function get_each_context$2(ctx, list, i) {
30275
30372
  const child_ctx = ctx.slice();
30276
- child_ctx[12] = list[i];
30277
- child_ctx[14] = i;
30373
+ child_ctx[10] = list[i];
30374
+ child_ctx[12] = i;
30278
30375
  return child_ctx;
30279
30376
  }
30280
30377
 
30281
- // (44:2) {#if form?.icon}
30282
- function create_if_block_2$2(ctx) {
30378
+ // (39:2) {#if form?.icon}
30379
+ function create_if_block_2$3(ctx) {
30283
30380
  let div;
30284
- let newusericon;
30381
+ let keyicon;
30285
30382
  let current;
30286
30383
 
30287
- newusericon = new New_user_icon({
30384
+ keyicon = new Key_icon({
30288
30385
  props: {
30289
30386
  classes: "tw_text-gray-400 tw_fill-current",
30290
30387
  size: "72px"
@@ -30294,32 +30391,32 @@ function create_if_block_2$2(ctx) {
30294
30391
  return {
30295
30392
  c() {
30296
30393
  div = element("div");
30297
- create_component(newusericon.$$.fragment);
30394
+ create_component(keyicon.$$.fragment);
30298
30395
  attr(div, "class", "tw_flex tw_justify-center");
30299
30396
  },
30300
30397
  m(target, anchor) {
30301
30398
  insert(target, div, anchor);
30302
- mount_component(newusericon, div, null);
30399
+ mount_component(keyicon, div, null);
30303
30400
  current = true;
30304
30401
  },
30305
30402
  i(local) {
30306
30403
  if (current) return;
30307
- transition_in(newusericon.$$.fragment, local);
30404
+ transition_in(keyicon.$$.fragment, local);
30308
30405
  current = true;
30309
30406
  },
30310
30407
  o(local) {
30311
- transition_out(newusericon.$$.fragment, local);
30408
+ transition_out(keyicon.$$.fragment, local);
30312
30409
  current = false;
30313
30410
  },
30314
30411
  d(detaching) {
30315
30412
  if (detaching) detach(div);
30316
- destroy_component(newusericon);
30413
+ destroy_component(keyicon);
30317
30414
  }
30318
30415
  };
30319
30416
  }
30320
30417
 
30321
- // (59:2) {#if form.message}
30322
- function create_if_block_1$2(ctx) {
30418
+ // (53:2) {#if form?.message}
30419
+ function create_if_block_1$3(ctx) {
30323
30420
  let alert;
30324
30421
  let current;
30325
30422
 
@@ -30328,7 +30425,7 @@ function create_if_block_1$2(ctx) {
30328
30425
  id: "formFailureMessageAlert",
30329
30426
  needsFocus: /*alertNeedsFocus*/ ctx[5],
30330
30427
  type: "error",
30331
- $$slots: { default: [create_default_slot_2$1] },
30428
+ $$slots: { default: [create_default_slot_2$2] },
30332
30429
  $$scope: { ctx }
30333
30430
  }
30334
30431
  });
@@ -30345,7 +30442,7 @@ function create_if_block_1$2(ctx) {
30345
30442
  const alert_changes = {};
30346
30443
  if (dirty & /*alertNeedsFocus*/ 32) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[5];
30347
30444
 
30348
- if (dirty & /*$$scope, formMessageKey, form*/ 32834) {
30445
+ if (dirty & /*$$scope, formMessageKey, form*/ 8258) {
30349
30446
  alert_changes.$$scope = { dirty, ctx };
30350
30447
  }
30351
30448
 
@@ -30366,8 +30463,8 @@ function create_if_block_1$2(ctx) {
30366
30463
  };
30367
30464
  }
30368
30465
 
30369
- // (60:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
30370
- function create_default_slot_2$1(ctx) {
30466
+ // (54:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
30467
+ function create_default_slot_2$2(ctx) {
30371
30468
  let t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "";
30372
30469
  let t;
30373
30470
 
@@ -30387,19 +30484,19 @@ function create_default_slot_2$1(ctx) {
30387
30484
  };
30388
30485
  }
30389
30486
 
30390
- // (65:2) {#each step?.callbacks as callback, idx}
30391
- function create_each_block$1(ctx) {
30487
+ // (59:2) {#each step?.callbacks as callback, idx}
30488
+ function create_each_block$2(ctx) {
30392
30489
  let callbackmapper;
30393
30490
  let current;
30394
30491
 
30395
30492
  callbackmapper = new Callback_mapper({
30396
30493
  props: {
30397
30494
  props: {
30398
- callback: /*callback*/ ctx[12],
30399
- callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[14]],
30400
- selfSubmitFunction: /*determineSubmission*/ ctx[9],
30495
+ callback: /*callback*/ ctx[10],
30496
+ callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[12]],
30497
+ selfSubmitFunction: /*determineSubmission*/ ctx[8],
30401
30498
  stepMetadata: /*metadata*/ ctx[3]?.step && { .../*metadata*/ ctx[3].step },
30402
- style: /*$style*/ ctx[8]
30499
+ style: /*$style*/ ctx[7]
30403
30500
  }
30404
30501
  }
30405
30502
  });
@@ -30415,12 +30512,12 @@ function create_each_block$1(ctx) {
30415
30512
  p(ctx, dirty) {
30416
30513
  const callbackmapper_changes = {};
30417
30514
 
30418
- if (dirty & /*step, metadata, $style*/ 280) callbackmapper_changes.props = {
30419
- callback: /*callback*/ ctx[12],
30420
- callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[14]],
30421
- selfSubmitFunction: /*determineSubmission*/ ctx[9],
30515
+ if (dirty & /*step, metadata, $style*/ 152) callbackmapper_changes.props = {
30516
+ callback: /*callback*/ ctx[10],
30517
+ callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[12]],
30518
+ selfSubmitFunction: /*determineSubmission*/ ctx[8],
30422
30519
  stepMetadata: /*metadata*/ ctx[3]?.step && { .../*metadata*/ ctx[3].step },
30423
- style: /*$style*/ ctx[8]
30520
+ style: /*$style*/ ctx[7]
30424
30521
  };
30425
30522
 
30426
30523
  callbackmapper.$set(callbackmapper_changes);
@@ -30440,8 +30537,8 @@ function create_each_block$1(ctx) {
30440
30537
  };
30441
30538
  }
30442
30539
 
30443
- // (77:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
30444
- function create_if_block$2(ctx) {
30540
+ // (71:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
30541
+ function create_if_block$3(ctx) {
30445
30542
  let button;
30446
30543
  let current;
30447
30544
 
@@ -30451,7 +30548,7 @@ function create_if_block$2(ctx) {
30451
30548
  style: "primary",
30452
30549
  type: "submit",
30453
30550
  width: "full",
30454
- $$slots: { default: [create_default_slot_1$2] },
30551
+ $$slots: { default: [create_default_slot_1$3] },
30455
30552
  $$scope: { ctx }
30456
30553
  }
30457
30554
  });
@@ -30468,7 +30565,7 @@ function create_if_block$2(ctx) {
30468
30565
  const button_changes = {};
30469
30566
  if (dirty & /*journey*/ 4) button_changes.busy = /*journey*/ ctx[2]?.loading;
30470
30567
 
30471
- if (dirty & /*$$scope*/ 32768) {
30568
+ if (dirty & /*$$scope*/ 8192) {
30472
30569
  button_changes.$$scope = { dirty, ctx };
30473
30570
  }
30474
30571
 
@@ -30489,11 +30586,11 @@ function create_if_block$2(ctx) {
30489
30586
  };
30490
30587
  }
30491
30588
 
30492
- // (78:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
30493
- function create_default_slot_1$2(ctx) {
30589
+ // (72:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
30590
+ function create_default_slot_1$3(ctx) {
30494
30591
  let t;
30495
30592
  let current;
30496
- t = new Locale_strings({ props: { key: "registerButton" } });
30593
+ t = new Locale_strings({ props: { key: "loginButton" } });
30497
30594
 
30498
30595
  return {
30499
30596
  c() {
@@ -30519,8 +30616,8 @@ function create_default_slot_1$2(ctx) {
30519
30616
  };
30520
30617
  }
30521
30618
 
30522
- // (43:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
30523
- function create_default_slot$2(ctx) {
30619
+ // (38:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
30620
+ function create_default_slot$3(ctx) {
30524
30621
  let t0;
30525
30622
  let h1;
30526
30623
  let t1;
@@ -30532,26 +30629,29 @@ function create_default_slot$2(ctx) {
30532
30629
  let t6;
30533
30630
  let if_block2_anchor;
30534
30631
  let current;
30535
- let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$2();
30536
- t1 = new Locale_strings({ props: { key: "registerHeader" } });
30632
+ let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$3();
30633
+
30634
+ t1 = new Locale_strings({
30635
+ props: { key: "twoFactorAuthentication" }
30636
+ });
30537
30637
 
30538
30638
  t3 = new Locale_strings({
30539
- props: { key: "alreadyHaveAnAccount", html: true }
30639
+ props: { key: "useTheAuthenticatorAppOnYourPhone" }
30540
30640
  });
30541
30641
 
30542
- let if_block1 = /*form*/ ctx[1].message && create_if_block_1$2(ctx);
30642
+ let if_block1 = /*form*/ ctx[1]?.message && create_if_block_1$3(ctx);
30543
30643
  let each_value = /*step*/ ctx[4]?.callbacks;
30544
30644
  let each_blocks = [];
30545
30645
 
30546
30646
  for (let i = 0; i < each_value.length; i += 1) {
30547
- each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
30647
+ each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
30548
30648
  }
30549
30649
 
30550
30650
  const out = i => transition_out(each_blocks[i], 1, 1, () => {
30551
30651
  each_blocks[i] = null;
30552
30652
  });
30553
30653
 
30554
- let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$2(ctx);
30654
+ let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$3(ctx);
30555
30655
 
30556
30656
  return {
30557
30657
  c() {
@@ -30574,7 +30674,7 @@ function create_default_slot$2(ctx) {
30574
30674
  if (if_block2) if_block2.c();
30575
30675
  if_block2_anchor = empty();
30576
30676
  attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
30577
- 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");
30677
+ 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");
30578
30678
  },
30579
30679
  m(target, anchor) {
30580
30680
  if (if_block0) if_block0.m(target, anchor);
@@ -30584,7 +30684,6 @@ function create_default_slot$2(ctx) {
30584
30684
  insert(target, t2, anchor);
30585
30685
  insert(target, p, anchor);
30586
30686
  mount_component(t3, p, null);
30587
- /*p_binding*/ ctx[10](p);
30588
30687
  insert(target, t4, anchor);
30589
30688
  if (if_block1) if_block1.m(target, anchor);
30590
30689
  insert(target, t5, anchor);
@@ -30605,7 +30704,7 @@ function create_default_slot$2(ctx) {
30605
30704
  transition_in(if_block0, 1);
30606
30705
  }
30607
30706
  } else {
30608
- if_block0 = create_if_block_2$2();
30707
+ if_block0 = create_if_block_2$3();
30609
30708
  if_block0.c();
30610
30709
  transition_in(if_block0, 1);
30611
30710
  if_block0.m(t0.parentNode, t0);
@@ -30620,7 +30719,7 @@ function create_default_slot$2(ctx) {
30620
30719
  check_outros();
30621
30720
  }
30622
30721
 
30623
- if (/*form*/ ctx[1].message) {
30722
+ if (/*form*/ ctx[1]?.message) {
30624
30723
  if (if_block1) {
30625
30724
  if_block1.p(ctx, dirty);
30626
30725
 
@@ -30628,7 +30727,7 @@ function create_default_slot$2(ctx) {
30628
30727
  transition_in(if_block1, 1);
30629
30728
  }
30630
30729
  } else {
30631
- if_block1 = create_if_block_1$2(ctx);
30730
+ if_block1 = create_if_block_1$3(ctx);
30632
30731
  if_block1.c();
30633
30732
  transition_in(if_block1, 1);
30634
30733
  if_block1.m(t5.parentNode, t5);
@@ -30643,18 +30742,18 @@ function create_default_slot$2(ctx) {
30643
30742
  check_outros();
30644
30743
  }
30645
30744
 
30646
- if (dirty & /*step, metadata, determineSubmission, $style*/ 792) {
30745
+ if (dirty & /*step, metadata, determineSubmission, $style*/ 408) {
30647
30746
  each_value = /*step*/ ctx[4]?.callbacks;
30648
30747
  let i;
30649
30748
 
30650
30749
  for (i = 0; i < each_value.length; i += 1) {
30651
- const child_ctx = get_each_context$1(ctx, each_value, i);
30750
+ const child_ctx = get_each_context$2(ctx, each_value, i);
30652
30751
 
30653
30752
  if (each_blocks[i]) {
30654
30753
  each_blocks[i].p(child_ctx, dirty);
30655
30754
  transition_in(each_blocks[i], 1);
30656
30755
  } else {
30657
- each_blocks[i] = create_each_block$1(child_ctx);
30756
+ each_blocks[i] = create_each_block$2(child_ctx);
30658
30757
  each_blocks[i].c();
30659
30758
  transition_in(each_blocks[i], 1);
30660
30759
  each_blocks[i].m(t6.parentNode, t6);
@@ -30678,7 +30777,7 @@ function create_default_slot$2(ctx) {
30678
30777
  transition_in(if_block2, 1);
30679
30778
  }
30680
30779
  } else {
30681
- if_block2 = create_if_block$2(ctx);
30780
+ if_block2 = create_if_block$3(ctx);
30682
30781
  if_block2.c();
30683
30782
  transition_in(if_block2, 1);
30684
30783
  if_block2.m(if_block2_anchor.parentNode, if_block2_anchor);
@@ -30729,7 +30828,6 @@ function create_default_slot$2(ctx) {
30729
30828
  if (detaching) detach(t2);
30730
30829
  if (detaching) detach(p);
30731
30830
  destroy_component(t3);
30732
- /*p_binding*/ ctx[10](null);
30733
30831
  if (detaching) detach(t4);
30734
30832
  if (if_block1) if_block1.d(detaching);
30735
30833
  if (detaching) detach(t5);
@@ -30741,19 +30839,19 @@ function create_default_slot$2(ctx) {
30741
30839
  };
30742
30840
  }
30743
30841
 
30744
- function create_fragment$4(ctx) {
30842
+ function create_fragment$5(ctx) {
30745
30843
  let form_1;
30746
30844
  let updating_formEl;
30747
30845
  let current;
30748
30846
 
30749
30847
  function form_1_formEl_binding(value) {
30750
- /*form_1_formEl_binding*/ ctx[11](value);
30848
+ /*form_1_formEl_binding*/ ctx[9](value);
30751
30849
  }
30752
30850
 
30753
30851
  let form_1_props = {
30754
30852
  ariaDescribedBy: "formFailureMessageAlert",
30755
30853
  onSubmitWhenValid: /*form*/ ctx[1]?.submit,
30756
- $$slots: { default: [create_default_slot$2] },
30854
+ $$slots: { default: [create_default_slot$3] },
30757
30855
  $$scope: { ctx }
30758
30856
  };
30759
30857
 
@@ -30776,7 +30874,7 @@ function create_fragment$4(ctx) {
30776
30874
  const form_1_changes = {};
30777
30875
  if (dirty & /*form*/ 2) form_1_changes.onSubmitWhenValid = /*form*/ ctx[1]?.submit;
30778
30876
 
30779
- if (dirty & /*$$scope, journey, metadata, step, $style, alertNeedsFocus, formMessageKey, form, linkWrapper*/ 33278) {
30877
+ if (dirty & /*$$scope, journey, metadata, step, $style, alertNeedsFocus, formMessageKey, form*/ 8446) {
30780
30878
  form_1_changes.$$scope = { dirty, ctx };
30781
30879
  }
30782
30880
 
@@ -30803,9 +30901,9 @@ function create_fragment$4(ctx) {
30803
30901
  };
30804
30902
  }
30805
30903
 
30806
- function instance$4($$self, $$props, $$invalidate) {
30904
+ function instance$5($$self, $$props, $$invalidate) {
30807
30905
  let $style;
30808
- component_subscribe($$self, style, $$value => $$invalidate(8, $style = $$value));
30906
+ component_subscribe($$self, style, $$value => $$invalidate(7, $style = $$value));
30809
30907
  let { form } = $$props;
30810
30908
  let { formEl = null } = $$props;
30811
30909
  let { journey } = $$props;
@@ -30813,7 +30911,6 @@ function instance$4($$self, $$props, $$invalidate) {
30813
30911
  let { step } = $$props;
30814
30912
  let alertNeedsFocus = false;
30815
30913
  let formMessageKey = '';
30816
- let linkWrapper;
30817
30914
 
30818
30915
  function determineSubmission() {
30819
30916
  // TODO: the below is more strict; all self-submitting cbs have to complete before submitting
@@ -30828,15 +30925,6 @@ function instance$4($$self, $$props, $$invalidate) {
30828
30925
  $$invalidate(5, alertNeedsFocus = !!form?.message);
30829
30926
  });
30830
30927
 
30831
- onMount(() => captureLinks(linkWrapper, journey));
30832
-
30833
- function p_binding($$value) {
30834
- binding_callbacks[$$value ? 'unshift' : 'push'](() => {
30835
- linkWrapper = $$value;
30836
- $$invalidate(7, linkWrapper);
30837
- });
30838
- }
30839
-
30840
30928
  function form_1_formEl_binding(value) {
30841
30929
  formEl = value;
30842
30930
  $$invalidate(0, formEl);
@@ -30866,19 +30954,17 @@ function instance$4($$self, $$props, $$invalidate) {
30866
30954
  step,
30867
30955
  alertNeedsFocus,
30868
30956
  formMessageKey,
30869
- linkWrapper,
30870
30957
  $style,
30871
30958
  determineSubmission,
30872
- p_binding,
30873
30959
  form_1_formEl_binding
30874
30960
  ];
30875
30961
  }
30876
30962
 
30877
- class Registration extends SvelteComponent {
30963
+ class One_time_password extends SvelteComponent {
30878
30964
  constructor(options) {
30879
30965
  super();
30880
30966
 
30881
- init(this, options, instance$4, create_fragment$4, safe_not_equal, {
30967
+ init(this, options, instance$5, create_fragment$5, safe_not_equal, {
30882
30968
  form: 1,
30883
30969
  formEl: 0,
30884
30970
  journey: 2,
@@ -30888,9 +30974,9 @@ class Registration extends SvelteComponent {
30888
30974
  }
30889
30975
  }
30890
30976
 
30891
- /* src/lib/components/icons/key-icon.svelte generated by Svelte v3.55.1 */
30977
+ /* src/lib/components/icons/new-user-icon.svelte generated by Svelte v3.55.1 */
30892
30978
 
30893
- function create_fragment$3(ctx) {
30979
+ function create_fragment$4(ctx) {
30894
30980
  let svg;
30895
30981
  let path0;
30896
30982
  let path1;
@@ -30908,12 +30994,12 @@ function create_fragment$3(ctx) {
30908
30994
  if (default_slot) default_slot.c();
30909
30995
  attr(path0, "d", "M0 0h24v24H0z");
30910
30996
  attr(path0, "fill", "none");
30911
- 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");
30997
+ 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");
30912
30998
  attr(svg, "class", /*classes*/ ctx[0]);
30999
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
30913
31000
  attr(svg, "height", /*size*/ ctx[1]);
30914
- attr(svg, "width", /*size*/ ctx[1]);
30915
31001
  attr(svg, "viewBox", "0 0 24 24");
30916
- attr(svg, "xmlns", "http://www.w3.org/2000/svg");
31002
+ attr(svg, "width", /*size*/ ctx[1]);
30917
31003
  },
30918
31004
  m(target, anchor) {
30919
31005
  insert(target, svg, anchor);
@@ -30971,7 +31057,7 @@ function create_fragment$3(ctx) {
30971
31057
  };
30972
31058
  }
30973
31059
 
30974
- function instance$3($$self, $$props, $$invalidate) {
31060
+ function instance$4($$self, $$props, $$invalidate) {
30975
31061
  let { $$slots: slots = {}, $$scope } = $$props;
30976
31062
  let { classes = '' } = $$props;
30977
31063
  let { size = '24px' } = $$props;
@@ -30985,10 +31071,629 @@ function instance$3($$self, $$props, $$invalidate) {
30985
31071
  return [classes, size, $$scope, slots];
30986
31072
  }
30987
31073
 
30988
- class Key_icon extends SvelteComponent {
31074
+ class New_user_icon extends SvelteComponent {
30989
31075
  constructor(options) {
30990
31076
  super();
30991
- init(this, options, instance$3, create_fragment$3, safe_not_equal, { classes: 0, size: 1 });
31077
+ init(this, options, instance$4, create_fragment$4, safe_not_equal, { classes: 0, size: 1 });
31078
+ }
31079
+ }
31080
+
31081
+ /* src/lib/journey/stages/registration.svelte generated by Svelte v3.55.1 */
31082
+
31083
+ function get_each_context$1(ctx, list, i) {
31084
+ const child_ctx = ctx.slice();
31085
+ child_ctx[12] = list[i];
31086
+ child_ctx[14] = i;
31087
+ return child_ctx;
31088
+ }
31089
+
31090
+ // (44:2) {#if form?.icon}
31091
+ function create_if_block_2$2(ctx) {
31092
+ let div;
31093
+ let newusericon;
31094
+ let current;
31095
+
31096
+ newusericon = new New_user_icon({
31097
+ props: {
31098
+ classes: "tw_text-gray-400 tw_fill-current",
31099
+ size: "72px"
31100
+ }
31101
+ });
31102
+
31103
+ return {
31104
+ c() {
31105
+ div = element("div");
31106
+ create_component(newusericon.$$.fragment);
31107
+ attr(div, "class", "tw_flex tw_justify-center");
31108
+ },
31109
+ m(target, anchor) {
31110
+ insert(target, div, anchor);
31111
+ mount_component(newusericon, div, null);
31112
+ current = true;
31113
+ },
31114
+ i(local) {
31115
+ if (current) return;
31116
+ transition_in(newusericon.$$.fragment, local);
31117
+ current = true;
31118
+ },
31119
+ o(local) {
31120
+ transition_out(newusericon.$$.fragment, local);
31121
+ current = false;
31122
+ },
31123
+ d(detaching) {
31124
+ if (detaching) detach(div);
31125
+ destroy_component(newusericon);
31126
+ }
31127
+ };
31128
+ }
31129
+
31130
+ // (59:2) {#if form.message}
31131
+ function create_if_block_1$2(ctx) {
31132
+ let alert;
31133
+ let current;
31134
+
31135
+ alert = new Alert({
31136
+ props: {
31137
+ id: "formFailureMessageAlert",
31138
+ needsFocus: /*alertNeedsFocus*/ ctx[5],
31139
+ type: "error",
31140
+ $$slots: { default: [create_default_slot_2$1] },
31141
+ $$scope: { ctx }
31142
+ }
31143
+ });
31144
+
31145
+ return {
31146
+ c() {
31147
+ create_component(alert.$$.fragment);
31148
+ },
31149
+ m(target, anchor) {
31150
+ mount_component(alert, target, anchor);
31151
+ current = true;
31152
+ },
31153
+ p(ctx, dirty) {
31154
+ const alert_changes = {};
31155
+ if (dirty & /*alertNeedsFocus*/ 32) alert_changes.needsFocus = /*alertNeedsFocus*/ ctx[5];
31156
+
31157
+ if (dirty & /*$$scope, formMessageKey, form*/ 32834) {
31158
+ alert_changes.$$scope = { dirty, ctx };
31159
+ }
31160
+
31161
+ alert.$set(alert_changes);
31162
+ },
31163
+ i(local) {
31164
+ if (current) return;
31165
+ transition_in(alert.$$.fragment, local);
31166
+ current = true;
31167
+ },
31168
+ o(local) {
31169
+ transition_out(alert.$$.fragment, local);
31170
+ current = false;
31171
+ },
31172
+ d(detaching) {
31173
+ destroy_component(alert, detaching);
31174
+ }
31175
+ };
31176
+ }
31177
+
31178
+ // (60:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
31179
+ function create_default_slot_2$1(ctx) {
31180
+ let t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "";
31181
+ let t;
31182
+
31183
+ return {
31184
+ c() {
31185
+ t = text(t_value);
31186
+ },
31187
+ m(target, anchor) {
31188
+ insert(target, t, anchor);
31189
+ },
31190
+ p(ctx, dirty) {
31191
+ if (dirty & /*formMessageKey, form*/ 66 && t_value !== (t_value = interpolate(/*formMessageKey*/ ctx[6], null, /*form*/ ctx[1]?.message) + "")) set_data(t, t_value);
31192
+ },
31193
+ d(detaching) {
31194
+ if (detaching) detach(t);
31195
+ }
31196
+ };
31197
+ }
31198
+
31199
+ // (65:2) {#each step?.callbacks as callback, idx}
31200
+ function create_each_block$1(ctx) {
31201
+ let callbackmapper;
31202
+ let current;
31203
+
31204
+ callbackmapper = new Callback_mapper({
31205
+ props: {
31206
+ props: {
31207
+ callback: /*callback*/ ctx[12],
31208
+ callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[14]],
31209
+ selfSubmitFunction: /*determineSubmission*/ ctx[9],
31210
+ stepMetadata: /*metadata*/ ctx[3]?.step && { .../*metadata*/ ctx[3].step },
31211
+ style: /*$style*/ ctx[8]
31212
+ }
31213
+ }
31214
+ });
31215
+
31216
+ return {
31217
+ c() {
31218
+ create_component(callbackmapper.$$.fragment);
31219
+ },
31220
+ m(target, anchor) {
31221
+ mount_component(callbackmapper, target, anchor);
31222
+ current = true;
31223
+ },
31224
+ p(ctx, dirty) {
31225
+ const callbackmapper_changes = {};
31226
+
31227
+ if (dirty & /*step, metadata, $style*/ 280) callbackmapper_changes.props = {
31228
+ callback: /*callback*/ ctx[12],
31229
+ callbackMetadata: /*metadata*/ ctx[3]?.callbacks[/*idx*/ ctx[14]],
31230
+ selfSubmitFunction: /*determineSubmission*/ ctx[9],
31231
+ stepMetadata: /*metadata*/ ctx[3]?.step && { .../*metadata*/ ctx[3].step },
31232
+ style: /*$style*/ ctx[8]
31233
+ };
31234
+
31235
+ callbackmapper.$set(callbackmapper_changes);
31236
+ },
31237
+ i(local) {
31238
+ if (current) return;
31239
+ transition_in(callbackmapper.$$.fragment, local);
31240
+ current = true;
31241
+ },
31242
+ o(local) {
31243
+ transition_out(callbackmapper.$$.fragment, local);
31244
+ current = false;
31245
+ },
31246
+ d(detaching) {
31247
+ destroy_component(callbackmapper, detaching);
31248
+ }
31249
+ };
31250
+ }
31251
+
31252
+ // (77:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable}
31253
+ function create_if_block$2(ctx) {
31254
+ let button;
31255
+ let current;
31256
+
31257
+ button = new Button({
31258
+ props: {
31259
+ busy: /*journey*/ ctx[2]?.loading,
31260
+ style: "primary",
31261
+ type: "submit",
31262
+ width: "full",
31263
+ $$slots: { default: [create_default_slot_1$2] },
31264
+ $$scope: { ctx }
31265
+ }
31266
+ });
31267
+
31268
+ return {
31269
+ c() {
31270
+ create_component(button.$$.fragment);
31271
+ },
31272
+ m(target, anchor) {
31273
+ mount_component(button, target, anchor);
31274
+ current = true;
31275
+ },
31276
+ p(ctx, dirty) {
31277
+ const button_changes = {};
31278
+ if (dirty & /*journey*/ 4) button_changes.busy = /*journey*/ ctx[2]?.loading;
31279
+
31280
+ if (dirty & /*$$scope*/ 32768) {
31281
+ button_changes.$$scope = { dirty, ctx };
31282
+ }
31283
+
31284
+ button.$set(button_changes);
31285
+ },
31286
+ i(local) {
31287
+ if (current) return;
31288
+ transition_in(button.$$.fragment, local);
31289
+ current = true;
31290
+ },
31291
+ o(local) {
31292
+ transition_out(button.$$.fragment, local);
31293
+ current = false;
31294
+ },
31295
+ d(detaching) {
31296
+ destroy_component(button, detaching);
31297
+ }
31298
+ };
31299
+ }
31300
+
31301
+ // (78:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
31302
+ function create_default_slot_1$2(ctx) {
31303
+ let t;
31304
+ let current;
31305
+ t = new Locale_strings({ props: { key: "registerButton" } });
31306
+
31307
+ return {
31308
+ c() {
31309
+ create_component(t.$$.fragment);
31310
+ },
31311
+ m(target, anchor) {
31312
+ mount_component(t, target, anchor);
31313
+ current = true;
31314
+ },
31315
+ p: noop,
31316
+ i(local) {
31317
+ if (current) return;
31318
+ transition_in(t.$$.fragment, local);
31319
+ current = true;
31320
+ },
31321
+ o(local) {
31322
+ transition_out(t.$$.fragment, local);
31323
+ current = false;
31324
+ },
31325
+ d(detaching) {
31326
+ destroy_component(t, detaching);
31327
+ }
31328
+ };
31329
+ }
31330
+
31331
+ // (43:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
31332
+ function create_default_slot$2(ctx) {
31333
+ let t0;
31334
+ let h1;
31335
+ let t1;
31336
+ let t2;
31337
+ let p;
31338
+ let t3;
31339
+ let t4;
31340
+ let t5;
31341
+ let t6;
31342
+ let if_block2_anchor;
31343
+ let current;
31344
+ let if_block0 = /*form*/ ctx[1]?.icon && create_if_block_2$2();
31345
+ t1 = new Locale_strings({ props: { key: "registerHeader" } });
31346
+
31347
+ t3 = new Locale_strings({
31348
+ props: { key: "alreadyHaveAnAccount", html: true }
31349
+ });
31350
+
31351
+ let if_block1 = /*form*/ ctx[1].message && create_if_block_1$2(ctx);
31352
+ let each_value = /*step*/ ctx[4]?.callbacks;
31353
+ let each_blocks = [];
31354
+
31355
+ for (let i = 0; i < each_value.length; i += 1) {
31356
+ each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
31357
+ }
31358
+
31359
+ const out = i => transition_out(each_blocks[i], 1, 1, () => {
31360
+ each_blocks[i] = null;
31361
+ });
31362
+
31363
+ let if_block2 = (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) && create_if_block$2(ctx);
31364
+
31365
+ return {
31366
+ c() {
31367
+ if (if_block0) if_block0.c();
31368
+ t0 = space();
31369
+ h1 = element("h1");
31370
+ create_component(t1.$$.fragment);
31371
+ t2 = space();
31372
+ p = element("p");
31373
+ create_component(t3.$$.fragment);
31374
+ t4 = space();
31375
+ if (if_block1) if_block1.c();
31376
+ t5 = space();
31377
+
31378
+ for (let i = 0; i < each_blocks.length; i += 1) {
31379
+ each_blocks[i].c();
31380
+ }
31381
+
31382
+ t6 = space();
31383
+ if (if_block2) if_block2.c();
31384
+ if_block2_anchor = empty();
31385
+ attr(h1, "class", "tw_primary-header dark:tw_primary-header_dark");
31386
+ 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");
31387
+ },
31388
+ m(target, anchor) {
31389
+ if (if_block0) if_block0.m(target, anchor);
31390
+ insert(target, t0, anchor);
31391
+ insert(target, h1, anchor);
31392
+ mount_component(t1, h1, null);
31393
+ insert(target, t2, anchor);
31394
+ insert(target, p, anchor);
31395
+ mount_component(t3, p, null);
31396
+ /*p_binding*/ ctx[10](p);
31397
+ insert(target, t4, anchor);
31398
+ if (if_block1) if_block1.m(target, anchor);
31399
+ insert(target, t5, anchor);
31400
+
31401
+ for (let i = 0; i < each_blocks.length; i += 1) {
31402
+ each_blocks[i].m(target, anchor);
31403
+ }
31404
+
31405
+ insert(target, t6, anchor);
31406
+ if (if_block2) if_block2.m(target, anchor);
31407
+ insert(target, if_block2_anchor, anchor);
31408
+ current = true;
31409
+ },
31410
+ p(ctx, dirty) {
31411
+ if (/*form*/ ctx[1]?.icon) {
31412
+ if (if_block0) {
31413
+ if (dirty & /*form*/ 2) {
31414
+ transition_in(if_block0, 1);
31415
+ }
31416
+ } else {
31417
+ if_block0 = create_if_block_2$2();
31418
+ if_block0.c();
31419
+ transition_in(if_block0, 1);
31420
+ if_block0.m(t0.parentNode, t0);
31421
+ }
31422
+ } else if (if_block0) {
31423
+ group_outros();
31424
+
31425
+ transition_out(if_block0, 1, 1, () => {
31426
+ if_block0 = null;
31427
+ });
31428
+
31429
+ check_outros();
31430
+ }
31431
+
31432
+ if (/*form*/ ctx[1].message) {
31433
+ if (if_block1) {
31434
+ if_block1.p(ctx, dirty);
31435
+
31436
+ if (dirty & /*form*/ 2) {
31437
+ transition_in(if_block1, 1);
31438
+ }
31439
+ } else {
31440
+ if_block1 = create_if_block_1$2(ctx);
31441
+ if_block1.c();
31442
+ transition_in(if_block1, 1);
31443
+ if_block1.m(t5.parentNode, t5);
31444
+ }
31445
+ } else if (if_block1) {
31446
+ group_outros();
31447
+
31448
+ transition_out(if_block1, 1, 1, () => {
31449
+ if_block1 = null;
31450
+ });
31451
+
31452
+ check_outros();
31453
+ }
31454
+
31455
+ if (dirty & /*step, metadata, determineSubmission, $style*/ 792) {
31456
+ each_value = /*step*/ ctx[4]?.callbacks;
31457
+ let i;
31458
+
31459
+ for (i = 0; i < each_value.length; i += 1) {
31460
+ const child_ctx = get_each_context$1(ctx, each_value, i);
31461
+
31462
+ if (each_blocks[i]) {
31463
+ each_blocks[i].p(child_ctx, dirty);
31464
+ transition_in(each_blocks[i], 1);
31465
+ } else {
31466
+ each_blocks[i] = create_each_block$1(child_ctx);
31467
+ each_blocks[i].c();
31468
+ transition_in(each_blocks[i], 1);
31469
+ each_blocks[i].m(t6.parentNode, t6);
31470
+ }
31471
+ }
31472
+
31473
+ group_outros();
31474
+
31475
+ for (i = each_value.length; i < each_blocks.length; i += 1) {
31476
+ out(i);
31477
+ }
31478
+
31479
+ check_outros();
31480
+ }
31481
+
31482
+ if (/*metadata*/ ctx[3]?.step?.derived.isUserInputOptional || !/*metadata*/ ctx[3]?.step?.derived.isStepSelfSubmittable) {
31483
+ if (if_block2) {
31484
+ if_block2.p(ctx, dirty);
31485
+
31486
+ if (dirty & /*metadata*/ 8) {
31487
+ transition_in(if_block2, 1);
31488
+ }
31489
+ } else {
31490
+ if_block2 = create_if_block$2(ctx);
31491
+ if_block2.c();
31492
+ transition_in(if_block2, 1);
31493
+ if_block2.m(if_block2_anchor.parentNode, if_block2_anchor);
31494
+ }
31495
+ } else if (if_block2) {
31496
+ group_outros();
31497
+
31498
+ transition_out(if_block2, 1, 1, () => {
31499
+ if_block2 = null;
31500
+ });
31501
+
31502
+ check_outros();
31503
+ }
31504
+ },
31505
+ i(local) {
31506
+ if (current) return;
31507
+ transition_in(if_block0);
31508
+ transition_in(t1.$$.fragment, local);
31509
+ transition_in(t3.$$.fragment, local);
31510
+ transition_in(if_block1);
31511
+
31512
+ for (let i = 0; i < each_value.length; i += 1) {
31513
+ transition_in(each_blocks[i]);
31514
+ }
31515
+
31516
+ transition_in(if_block2);
31517
+ current = true;
31518
+ },
31519
+ o(local) {
31520
+ transition_out(if_block0);
31521
+ transition_out(t1.$$.fragment, local);
31522
+ transition_out(t3.$$.fragment, local);
31523
+ transition_out(if_block1);
31524
+ each_blocks = each_blocks.filter(Boolean);
31525
+
31526
+ for (let i = 0; i < each_blocks.length; i += 1) {
31527
+ transition_out(each_blocks[i]);
31528
+ }
31529
+
31530
+ transition_out(if_block2);
31531
+ current = false;
31532
+ },
31533
+ d(detaching) {
31534
+ if (if_block0) if_block0.d(detaching);
31535
+ if (detaching) detach(t0);
31536
+ if (detaching) detach(h1);
31537
+ destroy_component(t1);
31538
+ if (detaching) detach(t2);
31539
+ if (detaching) detach(p);
31540
+ destroy_component(t3);
31541
+ /*p_binding*/ ctx[10](null);
31542
+ if (detaching) detach(t4);
31543
+ if (if_block1) if_block1.d(detaching);
31544
+ if (detaching) detach(t5);
31545
+ destroy_each(each_blocks, detaching);
31546
+ if (detaching) detach(t6);
31547
+ if (if_block2) if_block2.d(detaching);
31548
+ if (detaching) detach(if_block2_anchor);
31549
+ }
31550
+ };
31551
+ }
31552
+
31553
+ function create_fragment$3(ctx) {
31554
+ let form_1;
31555
+ let updating_formEl;
31556
+ let current;
31557
+
31558
+ function form_1_formEl_binding(value) {
31559
+ /*form_1_formEl_binding*/ ctx[11](value);
31560
+ }
31561
+
31562
+ let form_1_props = {
31563
+ ariaDescribedBy: "formFailureMessageAlert",
31564
+ onSubmitWhenValid: /*form*/ ctx[1]?.submit,
31565
+ $$slots: { default: [create_default_slot$2] },
31566
+ $$scope: { ctx }
31567
+ };
31568
+
31569
+ if (/*formEl*/ ctx[0] !== void 0) {
31570
+ form_1_props.formEl = /*formEl*/ ctx[0];
31571
+ }
31572
+
31573
+ form_1 = new Form({ props: form_1_props });
31574
+ binding_callbacks.push(() => bind(form_1, 'formEl', form_1_formEl_binding));
31575
+
31576
+ return {
31577
+ c() {
31578
+ create_component(form_1.$$.fragment);
31579
+ },
31580
+ m(target, anchor) {
31581
+ mount_component(form_1, target, anchor);
31582
+ current = true;
31583
+ },
31584
+ p(ctx, [dirty]) {
31585
+ const form_1_changes = {};
31586
+ if (dirty & /*form*/ 2) form_1_changes.onSubmitWhenValid = /*form*/ ctx[1]?.submit;
31587
+
31588
+ if (dirty & /*$$scope, journey, metadata, step, $style, alertNeedsFocus, formMessageKey, form, linkWrapper*/ 33278) {
31589
+ form_1_changes.$$scope = { dirty, ctx };
31590
+ }
31591
+
31592
+ if (!updating_formEl && dirty & /*formEl*/ 1) {
31593
+ updating_formEl = true;
31594
+ form_1_changes.formEl = /*formEl*/ ctx[0];
31595
+ add_flush_callback(() => updating_formEl = false);
31596
+ }
31597
+
31598
+ form_1.$set(form_1_changes);
31599
+ },
31600
+ i(local) {
31601
+ if (current) return;
31602
+ transition_in(form_1.$$.fragment, local);
31603
+ current = true;
31604
+ },
31605
+ o(local) {
31606
+ transition_out(form_1.$$.fragment, local);
31607
+ current = false;
31608
+ },
31609
+ d(detaching) {
31610
+ destroy_component(form_1, detaching);
31611
+ }
31612
+ };
31613
+ }
31614
+
31615
+ function instance$3($$self, $$props, $$invalidate) {
31616
+ let $style;
31617
+ component_subscribe($$self, style, $$value => $$invalidate(8, $style = $$value));
31618
+ let { form } = $$props;
31619
+ let { formEl = null } = $$props;
31620
+ let { journey } = $$props;
31621
+ let { metadata } = $$props;
31622
+ let { step } = $$props;
31623
+ let alertNeedsFocus = false;
31624
+ let formMessageKey = '';
31625
+ let linkWrapper;
31626
+
31627
+ function determineSubmission() {
31628
+ // TODO: the below is more strict; all self-submitting cbs have to complete before submitting
31629
+ // if (stepMetadata.isStepSelfSubmittable && isStepReadyToSubmit(callbackMetadataArray)) {
31630
+ // The below variation is more liberal first self-submittable cb to call this wins.
31631
+ if (metadata?.step?.derived.isStepSelfSubmittable) {
31632
+ form?.submit();
31633
+ }
31634
+ }
31635
+
31636
+ afterUpdate(() => {
31637
+ $$invalidate(5, alertNeedsFocus = !!form?.message);
31638
+ });
31639
+
31640
+ onMount(() => captureLinks(linkWrapper, journey));
31641
+
31642
+ function p_binding($$value) {
31643
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
31644
+ linkWrapper = $$value;
31645
+ $$invalidate(7, linkWrapper);
31646
+ });
31647
+ }
31648
+
31649
+ function form_1_formEl_binding(value) {
31650
+ formEl = value;
31651
+ $$invalidate(0, formEl);
31652
+ }
31653
+
31654
+ $$self.$$set = $$props => {
31655
+ if ('form' in $$props) $$invalidate(1, form = $$props.form);
31656
+ if ('formEl' in $$props) $$invalidate(0, formEl = $$props.formEl);
31657
+ if ('journey' in $$props) $$invalidate(2, journey = $$props.journey);
31658
+ if ('metadata' in $$props) $$invalidate(3, metadata = $$props.metadata);
31659
+ if ('step' in $$props) $$invalidate(4, step = $$props.step);
31660
+ };
31661
+
31662
+ $$self.$$.update = () => {
31663
+ if ($$self.$$.dirty & /*form*/ 2) {
31664
+ {
31665
+ $$invalidate(6, formMessageKey = convertStringToKey(form?.message));
31666
+ }
31667
+ }
31668
+ };
31669
+
31670
+ return [
31671
+ formEl,
31672
+ form,
31673
+ journey,
31674
+ metadata,
31675
+ step,
31676
+ alertNeedsFocus,
31677
+ formMessageKey,
31678
+ linkWrapper,
31679
+ $style,
31680
+ determineSubmission,
31681
+ p_binding,
31682
+ form_1_formEl_binding
31683
+ ];
31684
+ }
31685
+
31686
+ class Registration extends SvelteComponent {
31687
+ constructor(options) {
31688
+ super();
31689
+
31690
+ init(this, options, instance$3, create_fragment$3, safe_not_equal, {
31691
+ form: 1,
31692
+ formEl: 0,
31693
+ journey: 2,
31694
+ metadata: 3,
31695
+ step: 4
31696
+ });
30992
31697
  }
30993
31698
  }
30994
31699
 
@@ -31670,6 +32375,8 @@ function mapStepToStage(currentStep) {
31670
32375
  return Generic;
31671
32376
  }
31672
32377
  switch (currentStep?.getStage && currentStep.getStage()) {
32378
+ case 'OneTimePassword':
32379
+ return One_time_password;
31673
32380
  case 'Registration':
31674
32381
  return Registration;
31675
32382
  case 'UsernamePassword':