@forgerock/login-widget 1.2.0-beta.11 → 1.2.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/index.cjs +486 -214
- package/index.cjs.map +1 -1
- package/index.d.ts +3 -0
- package/index.js +486 -214
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +3 -0
package/index.cjs
CHANGED
|
@@ -12458,6 +12458,7 @@ const styleSchema = z
|
|
|
12458
12458
|
.object({
|
|
12459
12459
|
checksAndRadios: z.union([z.literal('animated'), z.literal('standard')]).optional(),
|
|
12460
12460
|
labels: z.union([z.literal('floating').optional(), z.literal('stacked')]).optional(),
|
|
12461
|
+
showPassword: z.union([z.literal('none'), z.literal('button'), z.literal('checkbox')]).optional(),
|
|
12461
12462
|
logo: logoSchema.optional(),
|
|
12462
12463
|
sections: z
|
|
12463
12464
|
.object({
|
|
@@ -12477,6 +12478,7 @@ styleSchema.partial();
|
|
|
12477
12478
|
const fallbackStyles = {
|
|
12478
12479
|
checksAndRadios: 'animated',
|
|
12479
12480
|
labels: 'floating',
|
|
12481
|
+
showPassword: 'button',
|
|
12480
12482
|
logo: undefined,
|
|
12481
12483
|
sections: undefined,
|
|
12482
12484
|
stage: undefined,
|
|
@@ -12490,8 +12492,19 @@ const styleStore = writable(fallbackStyles);
|
|
|
12490
12492
|
*/
|
|
12491
12493
|
function initialize(customStyle) {
|
|
12492
12494
|
if (customStyle) {
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
+
/*
|
|
12496
|
+
Helper function to safely assign keys to strict object
|
|
12497
|
+
*/
|
|
12498
|
+
const accessStrictType = (str) => {
|
|
12499
|
+
return customStyle[str];
|
|
12500
|
+
};
|
|
12501
|
+
const newStyleConfig = Object.keys(customStyle).reduce((acc, key) => {
|
|
12502
|
+
if (accessStrictType(key) === undefined || accessStrictType(key) === null) {
|
|
12503
|
+
return acc;
|
|
12504
|
+
}
|
|
12505
|
+
return { ...acc, [key]: accessStrictType(key) };
|
|
12506
|
+
}, fallbackStyles);
|
|
12507
|
+
styleStore.set(newStyleConfig);
|
|
12495
12508
|
}
|
|
12496
12509
|
else {
|
|
12497
12510
|
styleStore.set(fallbackStyles);
|
|
@@ -12841,7 +12854,7 @@ function create_else_block$d(ctx) {
|
|
|
12841
12854
|
}
|
|
12842
12855
|
|
|
12843
12856
|
// (11:0) {#if html}
|
|
12844
|
-
function create_if_block$
|
|
12857
|
+
function create_if_block$w(ctx) {
|
|
12845
12858
|
let current;
|
|
12846
12859
|
const default_slot_template = /*#slots*/ ctx[5].default;
|
|
12847
12860
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[4], null);
|
|
@@ -12943,7 +12956,7 @@ function create_fragment$18(ctx) {
|
|
|
12943
12956
|
let if_block;
|
|
12944
12957
|
let if_block_anchor;
|
|
12945
12958
|
let current;
|
|
12946
|
-
const if_block_creators = [create_if_block$
|
|
12959
|
+
const if_block_creators = [create_if_block$w, create_else_block$d];
|
|
12947
12960
|
const if_blocks = [];
|
|
12948
12961
|
|
|
12949
12962
|
function select_block_type(ctx, dirty) {
|
|
@@ -13158,7 +13171,7 @@ function create_else_block$c(ctx) {
|
|
|
13158
13171
|
}
|
|
13159
13172
|
});
|
|
13160
13173
|
|
|
13161
|
-
let if_block = /*$styleStore*/ ctx[5]?.logo && create_if_block_1$
|
|
13174
|
+
let if_block = /*$styleStore*/ ctx[5]?.logo && create_if_block_1$h(ctx);
|
|
13162
13175
|
|
|
13163
13176
|
return {
|
|
13164
13177
|
c() {
|
|
@@ -13204,7 +13217,7 @@ function create_else_block$c(ctx) {
|
|
|
13204
13217
|
if (if_block) {
|
|
13205
13218
|
if_block.p(ctx, dirty);
|
|
13206
13219
|
} else {
|
|
13207
|
-
if_block = create_if_block_1$
|
|
13220
|
+
if_block = create_if_block_1$h(ctx);
|
|
13208
13221
|
if_block.c();
|
|
13209
13222
|
if_block.m(div, null);
|
|
13210
13223
|
}
|
|
@@ -13239,7 +13252,7 @@ function create_else_block$c(ctx) {
|
|
|
13239
13252
|
}
|
|
13240
13253
|
|
|
13241
13254
|
// (39:2) {#if withHeader}
|
|
13242
|
-
function create_if_block$
|
|
13255
|
+
function create_if_block$v(ctx) {
|
|
13243
13256
|
let div1;
|
|
13244
13257
|
let div0;
|
|
13245
13258
|
let div0_style_value;
|
|
@@ -13361,7 +13374,7 @@ function create_default_slot_1$i(ctx) {
|
|
|
13361
13374
|
}
|
|
13362
13375
|
|
|
13363
13376
|
// (77:6) {#if $styleStore?.logo}
|
|
13364
|
-
function create_if_block_1$
|
|
13377
|
+
function create_if_block_1$h(ctx) {
|
|
13365
13378
|
let div;
|
|
13366
13379
|
let div_style_value;
|
|
13367
13380
|
|
|
@@ -13423,7 +13436,7 @@ function create_fragment$16(ctx) {
|
|
|
13423
13436
|
let div;
|
|
13424
13437
|
let dialog_class_value;
|
|
13425
13438
|
let current;
|
|
13426
|
-
const if_block_creators = [create_if_block$
|
|
13439
|
+
const if_block_creators = [create_if_block$v, create_else_block$c];
|
|
13427
13440
|
const if_blocks = [];
|
|
13428
13441
|
|
|
13429
13442
|
function select_block_type(ctx, dirty) {
|
|
@@ -13951,7 +13964,7 @@ function create_else_block$b(ctx) {
|
|
|
13951
13964
|
}
|
|
13952
13965
|
|
|
13953
13966
|
// (44:33)
|
|
13954
|
-
function create_if_block_1$
|
|
13967
|
+
function create_if_block_1$g(ctx) {
|
|
13955
13968
|
let warningicon;
|
|
13956
13969
|
let current;
|
|
13957
13970
|
warningicon = new Warning_icon({});
|
|
@@ -13980,7 +13993,7 @@ function create_if_block_1$e(ctx) {
|
|
|
13980
13993
|
}
|
|
13981
13994
|
|
|
13982
13995
|
// (42:4) {#if type === 'error'}
|
|
13983
|
-
function create_if_block$
|
|
13996
|
+
function create_if_block$u(ctx) {
|
|
13984
13997
|
let alerticon;
|
|
13985
13998
|
let current;
|
|
13986
13999
|
alerticon = new Alert_icon({});
|
|
@@ -14018,7 +14031,7 @@ function create_fragment$12(ctx) {
|
|
|
14018
14031
|
let div_class_value;
|
|
14019
14032
|
let div_role_value;
|
|
14020
14033
|
let current;
|
|
14021
|
-
const if_block_creators = [create_if_block$
|
|
14034
|
+
const if_block_creators = [create_if_block$u, create_if_block_1$g, create_else_block$b];
|
|
14022
14035
|
const if_blocks = [];
|
|
14023
14036
|
|
|
14024
14037
|
function select_block_type(ctx, dirty) {
|
|
@@ -14258,7 +14271,7 @@ class Spinner extends SvelteComponent {
|
|
|
14258
14271
|
|
|
14259
14272
|
/* src/lib/components/primitives/button/button.svelte generated by Svelte v3.59.2 */
|
|
14260
14273
|
|
|
14261
|
-
function create_if_block$
|
|
14274
|
+
function create_if_block$t(ctx) {
|
|
14262
14275
|
let spinner;
|
|
14263
14276
|
let current;
|
|
14264
14277
|
|
|
@@ -14316,7 +14329,7 @@ function create_fragment$10(ctx) {
|
|
|
14316
14329
|
let current;
|
|
14317
14330
|
let mounted;
|
|
14318
14331
|
let dispose;
|
|
14319
|
-
let if_block = /*busy*/ ctx[0] && create_if_block$
|
|
14332
|
+
let if_block = /*busy*/ ctx[0] && create_if_block$t();
|
|
14320
14333
|
const default_slot_template = /*#slots*/ ctx[7].default;
|
|
14321
14334
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null);
|
|
14322
14335
|
const default_slot_or_fallback = default_slot || fallback_block$1();
|
|
@@ -14358,7 +14371,7 @@ function create_fragment$10(ctx) {
|
|
|
14358
14371
|
transition_in(if_block, 1);
|
|
14359
14372
|
}
|
|
14360
14373
|
} else {
|
|
14361
|
-
if_block = create_if_block$
|
|
14374
|
+
if_block = create_if_block$t();
|
|
14362
14375
|
if_block.c();
|
|
14363
14376
|
transition_in(if_block, 1);
|
|
14364
14377
|
if_block.m(button, t);
|
|
@@ -14761,7 +14774,7 @@ function create_else_block$a(ctx) {
|
|
|
14761
14774
|
}
|
|
14762
14775
|
|
|
14763
14776
|
// (10:0) {#if html}
|
|
14764
|
-
function create_if_block$
|
|
14777
|
+
function create_if_block$s(ctx) {
|
|
14765
14778
|
let current;
|
|
14766
14779
|
const default_slot_template = /*#slots*/ ctx[4].default;
|
|
14767
14780
|
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[3], null);
|
|
@@ -14863,7 +14876,7 @@ function create_fragment$_(ctx) {
|
|
|
14863
14876
|
let if_block;
|
|
14864
14877
|
let if_block_anchor;
|
|
14865
14878
|
let current;
|
|
14866
|
-
const if_block_creators = [create_if_block$
|
|
14879
|
+
const if_block_creators = [create_if_block$s, create_else_block$a];
|
|
14867
14880
|
const if_blocks = [];
|
|
14868
14881
|
|
|
14869
14882
|
function select_block_type(ctx, dirty) {
|
|
@@ -15058,7 +15071,7 @@ class Shield_icon extends SvelteComponent {
|
|
|
15058
15071
|
|
|
15059
15072
|
/* src/lib/journey/stages/_utilities/back-to.svelte generated by Svelte v3.59.2 */
|
|
15060
15073
|
|
|
15061
|
-
function create_if_block$
|
|
15074
|
+
function create_if_block$r(ctx) {
|
|
15062
15075
|
let p;
|
|
15063
15076
|
let button;
|
|
15064
15077
|
let t_value = interpolate(/*string*/ ctx[1]) + "";
|
|
@@ -15096,7 +15109,7 @@ function create_if_block$q(ctx) {
|
|
|
15096
15109
|
|
|
15097
15110
|
function create_fragment$Y(ctx) {
|
|
15098
15111
|
let if_block_anchor;
|
|
15099
|
-
let if_block = /*$stack*/ ctx[2].length > 1 && create_if_block$
|
|
15112
|
+
let if_block = /*$stack*/ ctx[2].length > 1 && create_if_block$r(ctx);
|
|
15100
15113
|
|
|
15101
15114
|
return {
|
|
15102
15115
|
c() {
|
|
@@ -15112,7 +15125,7 @@ function create_fragment$Y(ctx) {
|
|
|
15112
15125
|
if (if_block) {
|
|
15113
15126
|
if_block.p(ctx, dirty);
|
|
15114
15127
|
} else {
|
|
15115
|
-
if_block = create_if_block$
|
|
15128
|
+
if_block = create_if_block$r(ctx);
|
|
15116
15129
|
if_block.c();
|
|
15117
15130
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
15118
15131
|
}
|
|
@@ -15635,7 +15648,7 @@ function getAttributeValidationFailureText(callback) {
|
|
|
15635
15648
|
|
|
15636
15649
|
/* src/lib/components/primitives/message/input-message.svelte generated by Svelte v3.59.2 */
|
|
15637
15650
|
|
|
15638
|
-
function create_if_block$
|
|
15651
|
+
function create_if_block$q(ctx) {
|
|
15639
15652
|
let p;
|
|
15640
15653
|
let p_class_value;
|
|
15641
15654
|
let p_id_value;
|
|
@@ -15668,7 +15681,7 @@ function create_if_block$p(ctx) {
|
|
|
15668
15681
|
|
|
15669
15682
|
function create_fragment$X(ctx) {
|
|
15670
15683
|
let if_block_anchor;
|
|
15671
|
-
let if_block = /*dirtyMessage*/ ctx[1] && create_if_block$
|
|
15684
|
+
let if_block = /*dirtyMessage*/ ctx[1] && create_if_block$q(ctx);
|
|
15672
15685
|
|
|
15673
15686
|
return {
|
|
15674
15687
|
c() {
|
|
@@ -15684,7 +15697,7 @@ function create_fragment$X(ctx) {
|
|
|
15684
15697
|
if (if_block) {
|
|
15685
15698
|
if_block.p(ctx, dirty);
|
|
15686
15699
|
} else {
|
|
15687
|
-
if_block = create_if_block$
|
|
15700
|
+
if_block = create_if_block$q(ctx);
|
|
15688
15701
|
if_block.c();
|
|
15689
15702
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
15690
15703
|
}
|
|
@@ -17592,7 +17605,7 @@ function get_each_context$a(ctx, list, i) {
|
|
|
17592
17605
|
}
|
|
17593
17606
|
|
|
17594
17607
|
// (39:0) {#if labelOrder === 'first'}
|
|
17595
|
-
function create_if_block_1$
|
|
17608
|
+
function create_if_block_1$f(ctx) {
|
|
17596
17609
|
let label_1;
|
|
17597
17610
|
let current;
|
|
17598
17611
|
|
|
@@ -17701,7 +17714,7 @@ function create_each_block$a(ctx) {
|
|
|
17701
17714
|
}
|
|
17702
17715
|
|
|
17703
17716
|
// (61:0) {#if labelOrder === 'last'}
|
|
17704
|
-
function create_if_block$
|
|
17717
|
+
function create_if_block$p(ctx) {
|
|
17705
17718
|
let label_1;
|
|
17706
17719
|
let current;
|
|
17707
17720
|
|
|
@@ -17783,7 +17796,7 @@ function create_fragment$O(ctx) {
|
|
|
17783
17796
|
let current;
|
|
17784
17797
|
let mounted;
|
|
17785
17798
|
let dispose;
|
|
17786
|
-
let if_block0 = /*labelOrder*/ ctx[7] === 'first' && create_if_block_1$
|
|
17799
|
+
let if_block0 = /*labelOrder*/ ctx[7] === 'first' && create_if_block_1$f(ctx);
|
|
17787
17800
|
let each_value = /*options*/ ctx[8];
|
|
17788
17801
|
let each_blocks = [];
|
|
17789
17802
|
|
|
@@ -17791,7 +17804,7 @@ function create_fragment$O(ctx) {
|
|
|
17791
17804
|
each_blocks[i] = create_each_block$a(get_each_context$a(ctx, each_value, i));
|
|
17792
17805
|
}
|
|
17793
17806
|
|
|
17794
|
-
let if_block1 = /*labelOrder*/ ctx[7] === 'last' && create_if_block$
|
|
17807
|
+
let if_block1 = /*labelOrder*/ ctx[7] === 'last' && create_if_block$p(ctx);
|
|
17795
17808
|
|
|
17796
17809
|
return {
|
|
17797
17810
|
c() {
|
|
@@ -17847,7 +17860,7 @@ function create_fragment$O(ctx) {
|
|
|
17847
17860
|
transition_in(if_block0, 1);
|
|
17848
17861
|
}
|
|
17849
17862
|
} else {
|
|
17850
|
-
if_block0 = create_if_block_1$
|
|
17863
|
+
if_block0 = create_if_block_1$f(ctx);
|
|
17851
17864
|
if_block0.c();
|
|
17852
17865
|
transition_in(if_block0, 1);
|
|
17853
17866
|
if_block0.m(t0.parentNode, t0);
|
|
@@ -17915,7 +17928,7 @@ function create_fragment$O(ctx) {
|
|
|
17915
17928
|
transition_in(if_block1, 1);
|
|
17916
17929
|
}
|
|
17917
17930
|
} else {
|
|
17918
|
-
if_block1 = create_if_block$
|
|
17931
|
+
if_block1 = create_if_block$p(ctx);
|
|
17919
17932
|
if_block1.c();
|
|
17920
17933
|
transition_in(if_block1, 1);
|
|
17921
17934
|
if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
|
|
@@ -18421,7 +18434,7 @@ function create_else_block$9(ctx) {
|
|
|
18421
18434
|
}
|
|
18422
18435
|
|
|
18423
18436
|
// (52:0) {#if callbackMetadata?.platform?.displayType === 'radio'}
|
|
18424
|
-
function create_if_block$
|
|
18437
|
+
function create_if_block$o(ctx) {
|
|
18425
18438
|
let radio;
|
|
18426
18439
|
let current;
|
|
18427
18440
|
|
|
@@ -18476,7 +18489,7 @@ function create_fragment$L(ctx) {
|
|
|
18476
18489
|
let if_block;
|
|
18477
18490
|
let if_block_anchor;
|
|
18478
18491
|
let current;
|
|
18479
|
-
const if_block_creators = [create_if_block$
|
|
18492
|
+
const if_block_creators = [create_if_block$o, create_else_block$9];
|
|
18480
18493
|
const if_blocks = [];
|
|
18481
18494
|
|
|
18482
18495
|
function select_block_type(ctx, dirty) {
|
|
@@ -18798,12 +18811,12 @@ function create_else_block_1(ctx) {
|
|
|
18798
18811
|
}
|
|
18799
18812
|
|
|
18800
18813
|
// (80:0) {#if !stepMetadata?.derived.isStepSelfSubmittable()}
|
|
18801
|
-
function create_if_block$
|
|
18814
|
+
function create_if_block$n(ctx) {
|
|
18802
18815
|
let current_block_type_index;
|
|
18803
18816
|
let if_block;
|
|
18804
18817
|
let if_block_anchor;
|
|
18805
18818
|
let current;
|
|
18806
|
-
const if_block_creators = [create_if_block_1$
|
|
18819
|
+
const if_block_creators = [create_if_block_1$e, create_else_block$8];
|
|
18807
18820
|
const if_blocks = [];
|
|
18808
18821
|
|
|
18809
18822
|
function select_block_type_1(ctx, dirty) {
|
|
@@ -18868,7 +18881,7 @@ function create_if_block$m(ctx) {
|
|
|
18868
18881
|
}
|
|
18869
18882
|
|
|
18870
18883
|
// (104:6) <Button style={options.length > 1 && defaultChoice === Number(opt.value) ? 'primary' : buttonStyle} type="button" width="auto" onClick={() => setBtnValue(Number(opt.value))} >
|
|
18871
|
-
function create_default_slot_2$
|
|
18884
|
+
function create_default_slot_2$8(ctx) {
|
|
18872
18885
|
let t0_value = /*opt*/ ctx[15].text + "";
|
|
18873
18886
|
let t0;
|
|
18874
18887
|
let t1;
|
|
@@ -18909,7 +18922,7 @@ function create_each_block$9(ctx) {
|
|
|
18909
18922
|
type: "button",
|
|
18910
18923
|
width: "auto",
|
|
18911
18924
|
onClick: func,
|
|
18912
|
-
$$slots: { default: [create_default_slot_2$
|
|
18925
|
+
$$slots: { default: [create_default_slot_2$8] },
|
|
18913
18926
|
$$scope: { ctx }
|
|
18914
18927
|
}
|
|
18915
18928
|
});
|
|
@@ -19091,7 +19104,7 @@ function create_else_block$8(ctx) {
|
|
|
19091
19104
|
}
|
|
19092
19105
|
|
|
19093
19106
|
// (81:2) {#if options.length > 1}
|
|
19094
|
-
function create_if_block_1$
|
|
19107
|
+
function create_if_block_1$e(ctx) {
|
|
19095
19108
|
let select;
|
|
19096
19109
|
let current;
|
|
19097
19110
|
|
|
@@ -19164,7 +19177,7 @@ function create_fragment$J(ctx) {
|
|
|
19164
19177
|
let if_block;
|
|
19165
19178
|
let if_block_anchor;
|
|
19166
19179
|
let current;
|
|
19167
|
-
const if_block_creators = [create_if_block$
|
|
19180
|
+
const if_block_creators = [create_if_block$n, create_else_block_1];
|
|
19168
19181
|
const if_blocks = [];
|
|
19169
19182
|
|
|
19170
19183
|
function select_block_type(ctx, dirty) {
|
|
@@ -19798,7 +19811,7 @@ function create_if_block_3$8(ctx) {
|
|
|
19798
19811
|
}
|
|
19799
19812
|
|
|
19800
19813
|
// (97:0) {#if type === 'phone'}
|
|
19801
|
-
function create_if_block_2$
|
|
19814
|
+
function create_if_block_2$a(ctx) {
|
|
19802
19815
|
let input;
|
|
19803
19816
|
let input_aria_describedby_value;
|
|
19804
19817
|
let input_class_value;
|
|
@@ -19878,7 +19891,7 @@ function create_if_block_2$9(ctx) {
|
|
|
19878
19891
|
}
|
|
19879
19892
|
|
|
19880
19893
|
// (113:0) {#if type === 'text'}
|
|
19881
|
-
function create_if_block_1$
|
|
19894
|
+
function create_if_block_1$d(ctx) {
|
|
19882
19895
|
let input;
|
|
19883
19896
|
let input_aria_describedby_value;
|
|
19884
19897
|
let input_class_value;
|
|
@@ -19958,7 +19971,7 @@ function create_if_block_1$b(ctx) {
|
|
|
19958
19971
|
}
|
|
19959
19972
|
|
|
19960
19973
|
// (129:0) {#if labelOrder === 'last'}
|
|
19961
|
-
function create_if_block$
|
|
19974
|
+
function create_if_block$m(ctx) {
|
|
19962
19975
|
let label_1;
|
|
19963
19976
|
let current;
|
|
19964
19977
|
|
|
@@ -20040,9 +20053,9 @@ function create_fragment$I(ctx) {
|
|
|
20040
20053
|
let if_block2 = /*type*/ ctx[11] === 'email' && create_if_block_5$2(ctx);
|
|
20041
20054
|
let if_block3 = /*type*/ ctx[11] === 'number' && create_if_block_4$5(ctx);
|
|
20042
20055
|
let if_block4 = /*type*/ ctx[11] === 'password' && create_if_block_3$8(ctx);
|
|
20043
|
-
let if_block5 = /*type*/ ctx[11] === 'phone' && create_if_block_2$
|
|
20044
|
-
let if_block6 = /*type*/ ctx[11] === 'text' && create_if_block_1$
|
|
20045
|
-
let if_block7 = /*labelOrder*/ ctx[6] === 'last' && create_if_block$
|
|
20056
|
+
let if_block5 = /*type*/ ctx[11] === 'phone' && create_if_block_2$a(ctx);
|
|
20057
|
+
let if_block6 = /*type*/ ctx[11] === 'text' && create_if_block_1$d(ctx);
|
|
20058
|
+
let if_block7 = /*labelOrder*/ ctx[6] === 'last' && create_if_block$m(ctx);
|
|
20046
20059
|
|
|
20047
20060
|
return {
|
|
20048
20061
|
c() {
|
|
@@ -20162,7 +20175,7 @@ function create_fragment$I(ctx) {
|
|
|
20162
20175
|
if (if_block5) {
|
|
20163
20176
|
if_block5.p(ctx, dirty);
|
|
20164
20177
|
} else {
|
|
20165
|
-
if_block5 = create_if_block_2$
|
|
20178
|
+
if_block5 = create_if_block_2$a(ctx);
|
|
20166
20179
|
if_block5.c();
|
|
20167
20180
|
if_block5.m(t5.parentNode, t5);
|
|
20168
20181
|
}
|
|
@@ -20175,7 +20188,7 @@ function create_fragment$I(ctx) {
|
|
|
20175
20188
|
if (if_block6) {
|
|
20176
20189
|
if_block6.p(ctx, dirty);
|
|
20177
20190
|
} else {
|
|
20178
|
-
if_block6 = create_if_block_1$
|
|
20191
|
+
if_block6 = create_if_block_1$d(ctx);
|
|
20179
20192
|
if_block6.c();
|
|
20180
20193
|
if_block6.m(t6.parentNode, t6);
|
|
20181
20194
|
}
|
|
@@ -20192,7 +20205,7 @@ function create_fragment$I(ctx) {
|
|
|
20192
20205
|
transition_in(if_block7, 1);
|
|
20193
20206
|
}
|
|
20194
20207
|
} else {
|
|
20195
|
-
if_block7 = create_if_block$
|
|
20208
|
+
if_block7 = create_if_block$m(ctx);
|
|
20196
20209
|
if_block7.c();
|
|
20197
20210
|
transition_in(if_block7, 1);
|
|
20198
20211
|
if_block7.m(if_block7_anchor.parentNode, if_block7_anchor);
|
|
@@ -21051,7 +21064,7 @@ class Lock_icon extends SvelteComponent {
|
|
|
21051
21064
|
|
|
21052
21065
|
/* src/lib/journey/callbacks/kba/kba-create.svelte generated by Svelte v3.59.2 */
|
|
21053
21066
|
|
|
21054
|
-
function create_if_block$
|
|
21067
|
+
function create_if_block$l(ctx) {
|
|
21055
21068
|
let input;
|
|
21056
21069
|
let current;
|
|
21057
21070
|
|
|
@@ -21132,7 +21145,7 @@ function create_fragment$E(ctx) {
|
|
|
21132
21145
|
}
|
|
21133
21146
|
});
|
|
21134
21147
|
|
|
21135
|
-
let if_block = /*displayCustomQuestionInput*/ ctx[3] && create_if_block$
|
|
21148
|
+
let if_block = /*displayCustomQuestionInput*/ ctx[3] && create_if_block$l(ctx);
|
|
21136
21149
|
|
|
21137
21150
|
function input_value_binding(value) {
|
|
21138
21151
|
/*input_value_binding*/ ctx[21](value);
|
|
@@ -21211,7 +21224,7 @@ function create_fragment$E(ctx) {
|
|
|
21211
21224
|
transition_in(if_block, 1);
|
|
21212
21225
|
}
|
|
21213
21226
|
} else {
|
|
21214
|
-
if_block = create_if_block$
|
|
21227
|
+
if_block = create_if_block$l(ctx);
|
|
21215
21228
|
if_block.c();
|
|
21216
21229
|
transition_in(if_block, 1);
|
|
21217
21230
|
if_block.m(fieldset, t6);
|
|
@@ -21697,7 +21710,7 @@ function create_else_block$7(ctx) {
|
|
|
21697
21710
|
}
|
|
21698
21711
|
|
|
21699
21712
|
// (6:0) {#if !visible}
|
|
21700
|
-
function create_if_block$
|
|
21713
|
+
function create_if_block$k(ctx) {
|
|
21701
21714
|
let svg;
|
|
21702
21715
|
let path0;
|
|
21703
21716
|
let path1;
|
|
@@ -21783,7 +21796,7 @@ function create_fragment$C(ctx) {
|
|
|
21783
21796
|
let if_block;
|
|
21784
21797
|
let if_block_anchor;
|
|
21785
21798
|
let current;
|
|
21786
|
-
const if_block_creators = [create_if_block$
|
|
21799
|
+
const if_block_creators = [create_if_block$k, create_else_block$7];
|
|
21787
21800
|
const if_blocks = [];
|
|
21788
21801
|
|
|
21789
21802
|
function select_block_type(ctx, dirty) {
|
|
@@ -21872,10 +21885,10 @@ class Eye_icon extends SvelteComponent {
|
|
|
21872
21885
|
|
|
21873
21886
|
/* src/lib/journey/callbacks/password/confirm-input.svelte generated by Svelte v3.59.2 */
|
|
21874
21887
|
|
|
21875
|
-
function
|
|
21888
|
+
function create_default_slot_2$7(ctx) {
|
|
21876
21889
|
let current;
|
|
21877
|
-
const default_slot_template = /*#slots*/ ctx[
|
|
21878
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
|
21890
|
+
const default_slot_template = /*#slots*/ ctx[17].default;
|
|
21891
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[18], null);
|
|
21879
21892
|
|
|
21880
21893
|
return {
|
|
21881
21894
|
c() {
|
|
@@ -21890,15 +21903,15 @@ function create_default_slot_1$e(ctx) {
|
|
|
21890
21903
|
},
|
|
21891
21904
|
p(ctx, dirty) {
|
|
21892
21905
|
if (default_slot) {
|
|
21893
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
21906
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 262144)) {
|
|
21894
21907
|
update_slot_base(
|
|
21895
21908
|
default_slot,
|
|
21896
21909
|
default_slot_template,
|
|
21897
21910
|
ctx,
|
|
21898
|
-
/*$$scope*/ ctx[
|
|
21911
|
+
/*$$scope*/ ctx[18],
|
|
21899
21912
|
!current
|
|
21900
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
21901
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
21913
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[18])
|
|
21914
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[18], dirty, null),
|
|
21902
21915
|
null
|
|
21903
21916
|
);
|
|
21904
21917
|
}
|
|
@@ -21919,8 +21932,70 @@ function create_default_slot_1$e(ctx) {
|
|
|
21919
21932
|
};
|
|
21920
21933
|
}
|
|
21921
21934
|
|
|
21922
|
-
// (
|
|
21923
|
-
function
|
|
21935
|
+
// (66:6) {#if showPassword === "button"}
|
|
21936
|
+
function create_if_block_1$c(ctx) {
|
|
21937
|
+
let button;
|
|
21938
|
+
let eyeicon;
|
|
21939
|
+
let current;
|
|
21940
|
+
let mounted;
|
|
21941
|
+
let dispose;
|
|
21942
|
+
|
|
21943
|
+
eyeicon = new Eye_icon({
|
|
21944
|
+
props: {
|
|
21945
|
+
classes: "tw_password-icon dark:tw_password-icon_dark",
|
|
21946
|
+
visible: /*isVisible*/ ctx[8],
|
|
21947
|
+
$$slots: { default: [create_default_slot_1$e] },
|
|
21948
|
+
$$scope: { ctx }
|
|
21949
|
+
}
|
|
21950
|
+
});
|
|
21951
|
+
|
|
21952
|
+
return {
|
|
21953
|
+
c() {
|
|
21954
|
+
button = element("button");
|
|
21955
|
+
create_component(eyeicon.$$.fragment);
|
|
21956
|
+
attr(button, "class", `tw_password-button dark:tw_password-button_dark tw_focusable-element tw_input-base dark:tw_input-base_dark`);
|
|
21957
|
+
attr(button, "type", "button");
|
|
21958
|
+
},
|
|
21959
|
+
m(target, anchor) {
|
|
21960
|
+
insert(target, button, anchor);
|
|
21961
|
+
mount_component(eyeicon, button, null);
|
|
21962
|
+
current = true;
|
|
21963
|
+
|
|
21964
|
+
if (!mounted) {
|
|
21965
|
+
dispose = listen(button, "click", /*toggleVisibility*/ ctx[14]);
|
|
21966
|
+
mounted = true;
|
|
21967
|
+
}
|
|
21968
|
+
},
|
|
21969
|
+
p(ctx, dirty) {
|
|
21970
|
+
const eyeicon_changes = {};
|
|
21971
|
+
if (dirty & /*isVisible*/ 256) eyeicon_changes.visible = /*isVisible*/ ctx[8];
|
|
21972
|
+
|
|
21973
|
+
if (dirty & /*$$scope*/ 262144) {
|
|
21974
|
+
eyeicon_changes.$$scope = { dirty, ctx };
|
|
21975
|
+
}
|
|
21976
|
+
|
|
21977
|
+
eyeicon.$set(eyeicon_changes);
|
|
21978
|
+
},
|
|
21979
|
+
i(local) {
|
|
21980
|
+
if (current) return;
|
|
21981
|
+
transition_in(eyeicon.$$.fragment, local);
|
|
21982
|
+
current = true;
|
|
21983
|
+
},
|
|
21984
|
+
o(local) {
|
|
21985
|
+
transition_out(eyeicon.$$.fragment, local);
|
|
21986
|
+
current = false;
|
|
21987
|
+
},
|
|
21988
|
+
d(detaching) {
|
|
21989
|
+
if (detaching) detach(button);
|
|
21990
|
+
destroy_component(eyeicon);
|
|
21991
|
+
mounted = false;
|
|
21992
|
+
dispose();
|
|
21993
|
+
}
|
|
21994
|
+
};
|
|
21995
|
+
}
|
|
21996
|
+
|
|
21997
|
+
// (72:10) <EyeIcon classes="tw_password-icon dark:tw_password-icon_dark" visible={isVisible}>
|
|
21998
|
+
function create_default_slot_1$e(ctx) {
|
|
21924
21999
|
let t;
|
|
21925
22000
|
let current;
|
|
21926
22001
|
t = new Locale_strings({ props: { key: "showPassword" } });
|
|
@@ -21949,18 +22024,54 @@ function create_default_slot$k(ctx) {
|
|
|
21949
22024
|
};
|
|
21950
22025
|
}
|
|
21951
22026
|
|
|
21952
|
-
// (
|
|
22027
|
+
// (65:1) <svelte:fragment slot="input-button">
|
|
21953
22028
|
function create_input_button_slot$1(ctx) {
|
|
21954
|
-
let
|
|
21955
|
-
let eyeicon;
|
|
22029
|
+
let if_block_anchor;
|
|
21956
22030
|
let current;
|
|
21957
|
-
let
|
|
21958
|
-
let dispose;
|
|
22031
|
+
let if_block = /*showPassword*/ ctx[12] === "button" && create_if_block_1$c(ctx);
|
|
21959
22032
|
|
|
21960
|
-
|
|
22033
|
+
return {
|
|
22034
|
+
c() {
|
|
22035
|
+
if (if_block) if_block.c();
|
|
22036
|
+
if_block_anchor = empty();
|
|
22037
|
+
},
|
|
22038
|
+
m(target, anchor) {
|
|
22039
|
+
if (if_block) if_block.m(target, anchor);
|
|
22040
|
+
insert(target, if_block_anchor, anchor);
|
|
22041
|
+
current = true;
|
|
22042
|
+
},
|
|
22043
|
+
p(ctx, dirty) {
|
|
22044
|
+
if (/*showPassword*/ ctx[12] === "button") if_block.p(ctx, dirty);
|
|
22045
|
+
},
|
|
22046
|
+
i(local) {
|
|
22047
|
+
if (current) return;
|
|
22048
|
+
transition_in(if_block);
|
|
22049
|
+
current = true;
|
|
22050
|
+
},
|
|
22051
|
+
o(local) {
|
|
22052
|
+
transition_out(if_block);
|
|
22053
|
+
current = false;
|
|
22054
|
+
},
|
|
22055
|
+
d(detaching) {
|
|
22056
|
+
if (if_block) if_block.d(detaching);
|
|
22057
|
+
if (detaching) detach(if_block_anchor);
|
|
22058
|
+
}
|
|
22059
|
+
};
|
|
22060
|
+
}
|
|
22061
|
+
|
|
22062
|
+
// (80:0) {#if showPassword === "checkbox"}
|
|
22063
|
+
function create_if_block$j(ctx) {
|
|
22064
|
+
let div;
|
|
22065
|
+
let checkbox;
|
|
22066
|
+
let current;
|
|
22067
|
+
|
|
22068
|
+
checkbox = new Checkbox({
|
|
21961
22069
|
props: {
|
|
21962
|
-
|
|
21963
|
-
|
|
22070
|
+
isFirstInvalidInput: /*isFirstInvalidInput*/ ctx[5],
|
|
22071
|
+
isInvalid: false,
|
|
22072
|
+
key: /*key*/ ctx[3] + /*style*/ ctx[4].showPassword,
|
|
22073
|
+
onChange: /*toggleVisibility*/ ctx[14],
|
|
22074
|
+
value: false,
|
|
21964
22075
|
$$slots: { default: [create_default_slot$k] },
|
|
21965
22076
|
$$scope: { ctx }
|
|
21966
22077
|
}
|
|
@@ -21968,117 +22079,149 @@ function create_input_button_slot$1(ctx) {
|
|
|
21968
22079
|
|
|
21969
22080
|
return {
|
|
21970
22081
|
c() {
|
|
21971
|
-
|
|
21972
|
-
create_component(
|
|
21973
|
-
attr(
|
|
21974
|
-
attr(button, "slot", "input-button");
|
|
21975
|
-
attr(button, "type", "button");
|
|
22082
|
+
div = element("div");
|
|
22083
|
+
create_component(checkbox.$$.fragment);
|
|
22084
|
+
attr(div, "class", "tw_w-full tw_input-spacing");
|
|
21976
22085
|
},
|
|
21977
22086
|
m(target, anchor) {
|
|
21978
|
-
insert(target,
|
|
21979
|
-
mount_component(
|
|
22087
|
+
insert(target, div, anchor);
|
|
22088
|
+
mount_component(checkbox, div, null);
|
|
21980
22089
|
current = true;
|
|
21981
|
-
|
|
21982
|
-
if (!mounted) {
|
|
21983
|
-
dispose = listen(button, "click", /*toggleVisibility*/ ctx[11]);
|
|
21984
|
-
mounted = true;
|
|
21985
|
-
}
|
|
21986
22090
|
},
|
|
21987
22091
|
p(ctx, dirty) {
|
|
21988
|
-
const
|
|
21989
|
-
if (dirty & /*
|
|
22092
|
+
const checkbox_changes = {};
|
|
22093
|
+
if (dirty & /*isFirstInvalidInput*/ 32) checkbox_changes.isFirstInvalidInput = /*isFirstInvalidInput*/ ctx[5];
|
|
22094
|
+
if (dirty & /*key, style*/ 24) checkbox_changes.key = /*key*/ ctx[3] + /*style*/ ctx[4].showPassword;
|
|
21990
22095
|
|
|
21991
|
-
if (dirty & /*$$scope*/
|
|
21992
|
-
|
|
22096
|
+
if (dirty & /*$$scope*/ 262144) {
|
|
22097
|
+
checkbox_changes.$$scope = { dirty, ctx };
|
|
21993
22098
|
}
|
|
21994
22099
|
|
|
21995
|
-
|
|
22100
|
+
checkbox.$set(checkbox_changes);
|
|
21996
22101
|
},
|
|
21997
22102
|
i(local) {
|
|
21998
22103
|
if (current) return;
|
|
21999
|
-
transition_in(
|
|
22104
|
+
transition_in(checkbox.$$.fragment, local);
|
|
22000
22105
|
current = true;
|
|
22001
22106
|
},
|
|
22002
22107
|
o(local) {
|
|
22003
|
-
transition_out(
|
|
22108
|
+
transition_out(checkbox.$$.fragment, local);
|
|
22004
22109
|
current = false;
|
|
22005
22110
|
},
|
|
22006
22111
|
d(detaching) {
|
|
22007
|
-
if (detaching) detach(
|
|
22008
|
-
destroy_component(
|
|
22009
|
-
|
|
22010
|
-
|
|
22112
|
+
if (detaching) detach(div);
|
|
22113
|
+
destroy_component(checkbox);
|
|
22114
|
+
}
|
|
22115
|
+
};
|
|
22116
|
+
}
|
|
22117
|
+
|
|
22118
|
+
// (82:6) <Checkbox {isFirstInvalidInput} isInvalid={false} key = {key + style.showPassword} onChange={toggleVisibility} value={false} >
|
|
22119
|
+
function create_default_slot$k(ctx) {
|
|
22120
|
+
let t;
|
|
22121
|
+
|
|
22122
|
+
return {
|
|
22123
|
+
c() {
|
|
22124
|
+
t = text("Show Password");
|
|
22125
|
+
},
|
|
22126
|
+
m(target, anchor) {
|
|
22127
|
+
insert(target, t, anchor);
|
|
22128
|
+
},
|
|
22129
|
+
d(detaching) {
|
|
22130
|
+
if (detaching) detach(t);
|
|
22011
22131
|
}
|
|
22012
22132
|
};
|
|
22013
22133
|
}
|
|
22014
22134
|
|
|
22015
22135
|
function create_fragment$B(ctx) {
|
|
22016
22136
|
let input;
|
|
22137
|
+
let t;
|
|
22138
|
+
let if_block_anchor;
|
|
22017
22139
|
let current;
|
|
22018
22140
|
|
|
22019
|
-
input = new /*Input*/ ctx[
|
|
22141
|
+
input = new /*Input*/ ctx[11]({
|
|
22020
22142
|
props: {
|
|
22021
22143
|
forceValidityFailure: /*forceValidityFailure*/ ctx[0],
|
|
22022
22144
|
isFirstInvalidInput: false,
|
|
22023
|
-
hasRightIcon:
|
|
22145
|
+
hasRightIcon: /*style*/ ctx[4].showPassword === 'button'
|
|
22146
|
+
? true
|
|
22147
|
+
: false,
|
|
22024
22148
|
key: `${/*key*/ ctx[3]}-confirm`,
|
|
22025
22149
|
label: interpolate('confirmPassword', null, 'Confirm Password'),
|
|
22026
|
-
message: /*message*/ ctx[
|
|
22027
|
-
onChange: /*onChangeWrapper*/ ctx[
|
|
22150
|
+
message: /*message*/ ctx[10],
|
|
22151
|
+
onChange: /*onChangeWrapper*/ ctx[13],
|
|
22028
22152
|
isInvalid: /*passwordsDoNotMatch*/ ctx[1],
|
|
22029
22153
|
isRequired: /*isRequired*/ ctx[2],
|
|
22030
|
-
showMessage: /*showMessage*/ ctx[
|
|
22031
|
-
type: /*type*/ ctx[
|
|
22032
|
-
value: typeof /*value*/ ctx[
|
|
22033
|
-
? /*value*/ ctx[
|
|
22154
|
+
showMessage: /*showMessage*/ ctx[6],
|
|
22155
|
+
type: /*type*/ ctx[9],
|
|
22156
|
+
value: typeof /*value*/ ctx[7] === 'string'
|
|
22157
|
+
? /*value*/ ctx[7]
|
|
22034
22158
|
: '',
|
|
22035
22159
|
$$slots: {
|
|
22036
22160
|
"input-button": [create_input_button_slot$1],
|
|
22037
|
-
default: [
|
|
22161
|
+
default: [create_default_slot_2$7]
|
|
22038
22162
|
},
|
|
22039
22163
|
$$scope: { ctx }
|
|
22040
22164
|
}
|
|
22041
22165
|
});
|
|
22042
22166
|
|
|
22167
|
+
let if_block = /*showPassword*/ ctx[12] === "checkbox" && create_if_block$j(ctx);
|
|
22168
|
+
|
|
22043
22169
|
return {
|
|
22044
22170
|
c() {
|
|
22045
22171
|
create_component(input.$$.fragment);
|
|
22172
|
+
t = space();
|
|
22173
|
+
if (if_block) if_block.c();
|
|
22174
|
+
if_block_anchor = empty();
|
|
22046
22175
|
},
|
|
22047
22176
|
m(target, anchor) {
|
|
22048
22177
|
mount_component(input, target, anchor);
|
|
22178
|
+
insert(target, t, anchor);
|
|
22179
|
+
if (if_block) if_block.m(target, anchor);
|
|
22180
|
+
insert(target, if_block_anchor, anchor);
|
|
22049
22181
|
current = true;
|
|
22050
22182
|
},
|
|
22051
22183
|
p(ctx, [dirty]) {
|
|
22052
22184
|
const input_changes = {};
|
|
22053
22185
|
if (dirty & /*forceValidityFailure*/ 1) input_changes.forceValidityFailure = /*forceValidityFailure*/ ctx[0];
|
|
22186
|
+
|
|
22187
|
+
if (dirty & /*style*/ 16) input_changes.hasRightIcon = /*style*/ ctx[4].showPassword === 'button'
|
|
22188
|
+
? true
|
|
22189
|
+
: false;
|
|
22190
|
+
|
|
22054
22191
|
if (dirty & /*key*/ 8) input_changes.key = `${/*key*/ ctx[3]}-confirm`;
|
|
22055
|
-
if (dirty & /*message*/
|
|
22192
|
+
if (dirty & /*message*/ 1024) input_changes.message = /*message*/ ctx[10];
|
|
22056
22193
|
if (dirty & /*passwordsDoNotMatch*/ 2) input_changes.isInvalid = /*passwordsDoNotMatch*/ ctx[1];
|
|
22057
22194
|
if (dirty & /*isRequired*/ 4) input_changes.isRequired = /*isRequired*/ ctx[2];
|
|
22058
|
-
if (dirty & /*showMessage*/
|
|
22059
|
-
if (dirty & /*type*/
|
|
22195
|
+
if (dirty & /*showMessage*/ 64) input_changes.showMessage = /*showMessage*/ ctx[6];
|
|
22196
|
+
if (dirty & /*type*/ 512) input_changes.type = /*type*/ ctx[9];
|
|
22060
22197
|
|
|
22061
|
-
if (dirty & /*value*/
|
|
22062
|
-
? /*value*/ ctx[
|
|
22198
|
+
if (dirty & /*value*/ 128) input_changes.value = typeof /*value*/ ctx[7] === 'string'
|
|
22199
|
+
? /*value*/ ctx[7]
|
|
22063
22200
|
: '';
|
|
22064
22201
|
|
|
22065
|
-
if (dirty & /*$$scope, isVisible*/
|
|
22202
|
+
if (dirty & /*$$scope, isVisible*/ 262400) {
|
|
22066
22203
|
input_changes.$$scope = { dirty, ctx };
|
|
22067
22204
|
}
|
|
22068
22205
|
|
|
22069
22206
|
input.$set(input_changes);
|
|
22207
|
+
if (/*showPassword*/ ctx[12] === "checkbox") if_block.p(ctx, dirty);
|
|
22070
22208
|
},
|
|
22071
22209
|
i(local) {
|
|
22072
22210
|
if (current) return;
|
|
22073
22211
|
transition_in(input.$$.fragment, local);
|
|
22212
|
+
transition_in(if_block);
|
|
22074
22213
|
current = true;
|
|
22075
22214
|
},
|
|
22076
22215
|
o(local) {
|
|
22077
22216
|
transition_out(input.$$.fragment, local);
|
|
22217
|
+
transition_out(if_block);
|
|
22078
22218
|
current = false;
|
|
22079
22219
|
},
|
|
22080
22220
|
d(detaching) {
|
|
22081
22221
|
destroy_component(input, detaching);
|
|
22222
|
+
if (detaching) detach(t);
|
|
22223
|
+
if (if_block) if_block.d(detaching);
|
|
22224
|
+
if (detaching) detach(if_block_anchor);
|
|
22082
22225
|
}
|
|
22083
22226
|
};
|
|
22084
22227
|
}
|
|
@@ -22092,7 +22235,9 @@ function instance$C($$self, $$props, $$invalidate) {
|
|
|
22092
22235
|
let { onChange } = $$props;
|
|
22093
22236
|
let { resetValue } = $$props;
|
|
22094
22237
|
let { style = {} } = $$props;
|
|
22238
|
+
let { isFirstInvalidInput } = $$props;
|
|
22095
22239
|
const Input = style.labels === 'stacked' ? Stacked_label : Floating_label;
|
|
22240
|
+
const showPassword = style.showPassword;
|
|
22096
22241
|
let { showMessage = undefined } = $$props;
|
|
22097
22242
|
let isVisible = false;
|
|
22098
22243
|
let type = 'password';
|
|
@@ -22100,7 +22245,7 @@ function instance$C($$self, $$props, $$invalidate) {
|
|
|
22100
22245
|
let message = '';
|
|
22101
22246
|
|
|
22102
22247
|
function onChangeWrapper(event) {
|
|
22103
|
-
$$invalidate(
|
|
22248
|
+
$$invalidate(7, value = event.target?.value);
|
|
22104
22249
|
|
|
22105
22250
|
// TODO: revisit this logic to avoid unnecessary ternary
|
|
22106
22251
|
onChange(typeof value === 'string' ? value : undefined);
|
|
@@ -22110,8 +22255,8 @@ function instance$C($$self, $$props, $$invalidate) {
|
|
|
22110
22255
|
* @function toggleVisibility - toggles the password from masked to plaintext
|
|
22111
22256
|
*/
|
|
22112
22257
|
function toggleVisibility() {
|
|
22113
|
-
$$invalidate(
|
|
22114
|
-
$$invalidate(
|
|
22258
|
+
$$invalidate(8, isVisible = !isVisible);
|
|
22259
|
+
$$invalidate(9, type = isVisible ? 'text' : 'password');
|
|
22115
22260
|
}
|
|
22116
22261
|
|
|
22117
22262
|
$$self.$$set = $$props => {
|
|
@@ -22119,27 +22264,28 @@ function instance$C($$self, $$props, $$invalidate) {
|
|
|
22119
22264
|
if ('passwordsDoNotMatch' in $$props) $$invalidate(1, passwordsDoNotMatch = $$props.passwordsDoNotMatch);
|
|
22120
22265
|
if ('isRequired' in $$props) $$invalidate(2, isRequired = $$props.isRequired);
|
|
22121
22266
|
if ('key' in $$props) $$invalidate(3, key = $$props.key);
|
|
22122
|
-
if ('onChange' in $$props) $$invalidate(
|
|
22123
|
-
if ('resetValue' in $$props) $$invalidate(
|
|
22124
|
-
if ('style' in $$props) $$invalidate(
|
|
22125
|
-
if ('
|
|
22126
|
-
if ('
|
|
22267
|
+
if ('onChange' in $$props) $$invalidate(15, onChange = $$props.onChange);
|
|
22268
|
+
if ('resetValue' in $$props) $$invalidate(16, resetValue = $$props.resetValue);
|
|
22269
|
+
if ('style' in $$props) $$invalidate(4, style = $$props.style);
|
|
22270
|
+
if ('isFirstInvalidInput' in $$props) $$invalidate(5, isFirstInvalidInput = $$props.isFirstInvalidInput);
|
|
22271
|
+
if ('showMessage' in $$props) $$invalidate(6, showMessage = $$props.showMessage);
|
|
22272
|
+
if ('$$scope' in $$props) $$invalidate(18, $$scope = $$props.$$scope);
|
|
22127
22273
|
};
|
|
22128
22274
|
|
|
22129
22275
|
$$self.$$.update = () => {
|
|
22130
|
-
if ($$self.$$.dirty & /*resetValue, onChange, value, passwordsDoNotMatch, isRequired*/
|
|
22276
|
+
if ($$self.$$.dirty & /*resetValue, onChange, value, passwordsDoNotMatch, isRequired*/ 98438) {
|
|
22131
22277
|
{
|
|
22132
22278
|
if (resetValue) {
|
|
22133
|
-
$$invalidate(
|
|
22279
|
+
$$invalidate(7, value = undefined);
|
|
22134
22280
|
onChange(value);
|
|
22135
22281
|
}
|
|
22136
22282
|
|
|
22137
22283
|
if (passwordsDoNotMatch) {
|
|
22138
|
-
$$invalidate(
|
|
22284
|
+
$$invalidate(10, message = interpolate('passwordConfirmationError', null, 'Passwords do not match'));
|
|
22139
22285
|
} else if (isRequired) {
|
|
22140
|
-
$$invalidate(
|
|
22286
|
+
$$invalidate(10, message = interpolate('requiredField', null, 'This field is required'));
|
|
22141
22287
|
} else {
|
|
22142
|
-
$$invalidate(
|
|
22288
|
+
$$invalidate(10, message = '');
|
|
22143
22289
|
}
|
|
22144
22290
|
}
|
|
22145
22291
|
}
|
|
@@ -22150,17 +22296,19 @@ function instance$C($$self, $$props, $$invalidate) {
|
|
|
22150
22296
|
passwordsDoNotMatch,
|
|
22151
22297
|
isRequired,
|
|
22152
22298
|
key,
|
|
22299
|
+
style,
|
|
22300
|
+
isFirstInvalidInput,
|
|
22153
22301
|
showMessage,
|
|
22154
22302
|
value,
|
|
22155
22303
|
isVisible,
|
|
22156
22304
|
type,
|
|
22157
22305
|
message,
|
|
22158
22306
|
Input,
|
|
22307
|
+
showPassword,
|
|
22159
22308
|
onChangeWrapper,
|
|
22160
22309
|
toggleVisibility,
|
|
22161
22310
|
onChange,
|
|
22162
22311
|
resetValue,
|
|
22163
|
-
style,
|
|
22164
22312
|
slots,
|
|
22165
22313
|
$$scope
|
|
22166
22314
|
];
|
|
@@ -22175,20 +22323,21 @@ class Confirm_input extends SvelteComponent {
|
|
|
22175
22323
|
passwordsDoNotMatch: 1,
|
|
22176
22324
|
isRequired: 2,
|
|
22177
22325
|
key: 3,
|
|
22178
|
-
onChange:
|
|
22179
|
-
resetValue:
|
|
22180
|
-
style:
|
|
22181
|
-
|
|
22326
|
+
onChange: 15,
|
|
22327
|
+
resetValue: 16,
|
|
22328
|
+
style: 4,
|
|
22329
|
+
isFirstInvalidInput: 5,
|
|
22330
|
+
showMessage: 6
|
|
22182
22331
|
});
|
|
22183
22332
|
}
|
|
22184
22333
|
}
|
|
22185
22334
|
|
|
22186
22335
|
/* src/lib/journey/callbacks/password/base.svelte generated by Svelte v3.59.2 */
|
|
22187
22336
|
|
|
22188
|
-
function
|
|
22337
|
+
function create_default_slot_2$6(ctx) {
|
|
22189
22338
|
let current;
|
|
22190
|
-
const default_slot_template = /*#slots*/ ctx[
|
|
22191
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
|
22339
|
+
const default_slot_template = /*#slots*/ ctx[22].default;
|
|
22340
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[23], null);
|
|
22192
22341
|
|
|
22193
22342
|
return {
|
|
22194
22343
|
c() {
|
|
@@ -22203,15 +22352,15 @@ function create_default_slot_1$d(ctx) {
|
|
|
22203
22352
|
},
|
|
22204
22353
|
p(ctx, dirty) {
|
|
22205
22354
|
if (default_slot) {
|
|
22206
|
-
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
22355
|
+
if (default_slot.p && (!current || dirty & /*$$scope*/ 8388608)) {
|
|
22207
22356
|
update_slot_base(
|
|
22208
22357
|
default_slot,
|
|
22209
22358
|
default_slot_template,
|
|
22210
22359
|
ctx,
|
|
22211
|
-
/*$$scope*/ ctx[
|
|
22360
|
+
/*$$scope*/ ctx[23],
|
|
22212
22361
|
!current
|
|
22213
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
22214
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
22362
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[23])
|
|
22363
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[23], dirty, null),
|
|
22215
22364
|
null
|
|
22216
22365
|
);
|
|
22217
22366
|
}
|
|
@@ -22232,8 +22381,70 @@ function create_default_slot_1$d(ctx) {
|
|
|
22232
22381
|
};
|
|
22233
22382
|
}
|
|
22234
22383
|
|
|
22235
|
-
// (
|
|
22236
|
-
function
|
|
22384
|
+
// (92:6) {#if showPassword === "button"}
|
|
22385
|
+
function create_if_block_2$9(ctx) {
|
|
22386
|
+
let button;
|
|
22387
|
+
let eyeicon;
|
|
22388
|
+
let current;
|
|
22389
|
+
let mounted;
|
|
22390
|
+
let dispose;
|
|
22391
|
+
|
|
22392
|
+
eyeicon = new Eye_icon({
|
|
22393
|
+
props: {
|
|
22394
|
+
classes: "tw_password-icon dark:tw_password-icon_dark",
|
|
22395
|
+
visible: /*isVisible*/ ctx[11],
|
|
22396
|
+
$$slots: { default: [create_default_slot_1$d] },
|
|
22397
|
+
$$scope: { ctx }
|
|
22398
|
+
}
|
|
22399
|
+
});
|
|
22400
|
+
|
|
22401
|
+
return {
|
|
22402
|
+
c() {
|
|
22403
|
+
button = element("button");
|
|
22404
|
+
create_component(eyeicon.$$.fragment);
|
|
22405
|
+
attr(button, "class", `tw_password-button dark:tw_password-button_dark tw_focusable-element tw_input-base dark:tw_input-base_dark`);
|
|
22406
|
+
attr(button, "type", "button");
|
|
22407
|
+
},
|
|
22408
|
+
m(target, anchor) {
|
|
22409
|
+
insert(target, button, anchor);
|
|
22410
|
+
mount_component(eyeicon, button, null);
|
|
22411
|
+
current = true;
|
|
22412
|
+
|
|
22413
|
+
if (!mounted) {
|
|
22414
|
+
dispose = listen(button, "click", /*toggleVisibility*/ ctx[19]);
|
|
22415
|
+
mounted = true;
|
|
22416
|
+
}
|
|
22417
|
+
},
|
|
22418
|
+
p(ctx, dirty) {
|
|
22419
|
+
const eyeicon_changes = {};
|
|
22420
|
+
if (dirty & /*isVisible*/ 2048) eyeicon_changes.visible = /*isVisible*/ ctx[11];
|
|
22421
|
+
|
|
22422
|
+
if (dirty & /*$$scope*/ 8388608) {
|
|
22423
|
+
eyeicon_changes.$$scope = { dirty, ctx };
|
|
22424
|
+
}
|
|
22425
|
+
|
|
22426
|
+
eyeicon.$set(eyeicon_changes);
|
|
22427
|
+
},
|
|
22428
|
+
i(local) {
|
|
22429
|
+
if (current) return;
|
|
22430
|
+
transition_in(eyeicon.$$.fragment, local);
|
|
22431
|
+
current = true;
|
|
22432
|
+
},
|
|
22433
|
+
o(local) {
|
|
22434
|
+
transition_out(eyeicon.$$.fragment, local);
|
|
22435
|
+
current = false;
|
|
22436
|
+
},
|
|
22437
|
+
d(detaching) {
|
|
22438
|
+
if (detaching) detach(button);
|
|
22439
|
+
destroy_component(eyeicon);
|
|
22440
|
+
mounted = false;
|
|
22441
|
+
dispose();
|
|
22442
|
+
}
|
|
22443
|
+
};
|
|
22444
|
+
}
|
|
22445
|
+
|
|
22446
|
+
// (98:10) <EyeIcon classes="tw_password-icon dark:tw_password-icon_dark" visible={isVisible}>
|
|
22447
|
+
function create_default_slot_1$d(ctx) {
|
|
22237
22448
|
let t;
|
|
22238
22449
|
let current;
|
|
22239
22450
|
t = new Locale_strings({ props: { key: "showPassword" } });
|
|
@@ -22262,18 +22473,54 @@ function create_default_slot$j(ctx) {
|
|
|
22262
22473
|
};
|
|
22263
22474
|
}
|
|
22264
22475
|
|
|
22265
|
-
// (
|
|
22476
|
+
// (91:4) <svelte:fragment slot="input-button">
|
|
22266
22477
|
function create_input_button_slot(ctx) {
|
|
22267
|
-
let
|
|
22268
|
-
let eyeicon;
|
|
22478
|
+
let if_block_anchor;
|
|
22269
22479
|
let current;
|
|
22270
|
-
let
|
|
22271
|
-
let dispose;
|
|
22480
|
+
let if_block = /*showPassword*/ ctx[16] === "button" && create_if_block_2$9(ctx);
|
|
22272
22481
|
|
|
22273
|
-
|
|
22482
|
+
return {
|
|
22483
|
+
c() {
|
|
22484
|
+
if (if_block) if_block.c();
|
|
22485
|
+
if_block_anchor = empty();
|
|
22486
|
+
},
|
|
22487
|
+
m(target, anchor) {
|
|
22488
|
+
if (if_block) if_block.m(target, anchor);
|
|
22489
|
+
insert(target, if_block_anchor, anchor);
|
|
22490
|
+
current = true;
|
|
22491
|
+
},
|
|
22492
|
+
p(ctx, dirty) {
|
|
22493
|
+
if (/*showPassword*/ ctx[16] === "button") if_block.p(ctx, dirty);
|
|
22494
|
+
},
|
|
22495
|
+
i(local) {
|
|
22496
|
+
if (current) return;
|
|
22497
|
+
transition_in(if_block);
|
|
22498
|
+
current = true;
|
|
22499
|
+
},
|
|
22500
|
+
o(local) {
|
|
22501
|
+
transition_out(if_block);
|
|
22502
|
+
current = false;
|
|
22503
|
+
},
|
|
22504
|
+
d(detaching) {
|
|
22505
|
+
if (if_block) if_block.d(detaching);
|
|
22506
|
+
if (detaching) detach(if_block_anchor);
|
|
22507
|
+
}
|
|
22508
|
+
};
|
|
22509
|
+
}
|
|
22510
|
+
|
|
22511
|
+
// (107:2) {#if showPassword === "checkbox"}
|
|
22512
|
+
function create_if_block_1$b(ctx) {
|
|
22513
|
+
let div;
|
|
22514
|
+
let checkbox;
|
|
22515
|
+
let current;
|
|
22516
|
+
|
|
22517
|
+
checkbox = new Checkbox({
|
|
22274
22518
|
props: {
|
|
22275
|
-
|
|
22276
|
-
|
|
22519
|
+
isFirstInvalidInput: /*callbackMetadata*/ ctx[2]?.derived.isFirstInvalidInput || false,
|
|
22520
|
+
isInvalid: false,
|
|
22521
|
+
key: /*key*/ ctx[0] + /*style*/ ctx[5].showPassword,
|
|
22522
|
+
onChange: /*toggleVisibility*/ ctx[19],
|
|
22523
|
+
value: false,
|
|
22277
22524
|
$$slots: { default: [create_default_slot$j] },
|
|
22278
22525
|
$$scope: { ctx }
|
|
22279
22526
|
}
|
|
@@ -22281,51 +22528,60 @@ function create_input_button_slot(ctx) {
|
|
|
22281
22528
|
|
|
22282
22529
|
return {
|
|
22283
22530
|
c() {
|
|
22284
|
-
|
|
22285
|
-
create_component(
|
|
22286
|
-
attr(
|
|
22287
|
-
attr(button, "slot", "input-button");
|
|
22288
|
-
attr(button, "type", "button");
|
|
22531
|
+
div = element("div");
|
|
22532
|
+
create_component(checkbox.$$.fragment);
|
|
22533
|
+
attr(div, "class", "tw_w-full tw_input-spacing");
|
|
22289
22534
|
},
|
|
22290
22535
|
m(target, anchor) {
|
|
22291
|
-
insert(target,
|
|
22292
|
-
mount_component(
|
|
22536
|
+
insert(target, div, anchor);
|
|
22537
|
+
mount_component(checkbox, div, null);
|
|
22293
22538
|
current = true;
|
|
22294
|
-
|
|
22295
|
-
if (!mounted) {
|
|
22296
|
-
dispose = listen(button, "click", /*toggleVisibility*/ ctx[18]);
|
|
22297
|
-
mounted = true;
|
|
22298
|
-
}
|
|
22299
22539
|
},
|
|
22300
22540
|
p(ctx, dirty) {
|
|
22301
|
-
const
|
|
22302
|
-
if (dirty & /*
|
|
22541
|
+
const checkbox_changes = {};
|
|
22542
|
+
if (dirty & /*callbackMetadata*/ 4) checkbox_changes.isFirstInvalidInput = /*callbackMetadata*/ ctx[2]?.derived.isFirstInvalidInput || false;
|
|
22543
|
+
if (dirty & /*key, style*/ 33) checkbox_changes.key = /*key*/ ctx[0] + /*style*/ ctx[5].showPassword;
|
|
22303
22544
|
|
|
22304
|
-
if (dirty & /*$$scope*/
|
|
22305
|
-
|
|
22545
|
+
if (dirty & /*$$scope*/ 8388608) {
|
|
22546
|
+
checkbox_changes.$$scope = { dirty, ctx };
|
|
22306
22547
|
}
|
|
22307
22548
|
|
|
22308
|
-
|
|
22549
|
+
checkbox.$set(checkbox_changes);
|
|
22309
22550
|
},
|
|
22310
22551
|
i(local) {
|
|
22311
22552
|
if (current) return;
|
|
22312
|
-
transition_in(
|
|
22553
|
+
transition_in(checkbox.$$.fragment, local);
|
|
22313
22554
|
current = true;
|
|
22314
22555
|
},
|
|
22315
22556
|
o(local) {
|
|
22316
|
-
transition_out(
|
|
22557
|
+
transition_out(checkbox.$$.fragment, local);
|
|
22317
22558
|
current = false;
|
|
22318
22559
|
},
|
|
22319
22560
|
d(detaching) {
|
|
22320
|
-
if (detaching) detach(
|
|
22321
|
-
destroy_component(
|
|
22322
|
-
|
|
22323
|
-
|
|
22561
|
+
if (detaching) detach(div);
|
|
22562
|
+
destroy_component(checkbox);
|
|
22563
|
+
}
|
|
22564
|
+
};
|
|
22565
|
+
}
|
|
22566
|
+
|
|
22567
|
+
// (109:6) <Checkbox isFirstInvalidInput={callbackMetadata?.derived.isFirstInvalidInput || false} isInvalid={false} key = {key + style.showPassword} onChange={toggleVisibility} value={false} >
|
|
22568
|
+
function create_default_slot$j(ctx) {
|
|
22569
|
+
let t;
|
|
22570
|
+
|
|
22571
|
+
return {
|
|
22572
|
+
c() {
|
|
22573
|
+
t = text("Show Password");
|
|
22574
|
+
},
|
|
22575
|
+
m(target, anchor) {
|
|
22576
|
+
insert(target, t, anchor);
|
|
22577
|
+
},
|
|
22578
|
+
d(detaching) {
|
|
22579
|
+
if (detaching) detach(t);
|
|
22324
22580
|
}
|
|
22325
22581
|
};
|
|
22326
22582
|
}
|
|
22327
22583
|
|
|
22328
|
-
// (
|
|
22584
|
+
// (119:2) {#if callbackMetadata?.platform?.confirmPassword}
|
|
22329
22585
|
function create_if_block$i(ctx) {
|
|
22330
22586
|
let confirminput;
|
|
22331
22587
|
let current;
|
|
@@ -22336,10 +22592,11 @@ function create_if_block$i(ctx) {
|
|
|
22336
22592
|
passwordsDoNotMatch: /*doPasswordsMatch*/ ctx[10] === false,
|
|
22337
22593
|
key: /*key*/ ctx[0],
|
|
22338
22594
|
isRequired: /*value*/ ctx[8].length > 0,
|
|
22339
|
-
onChange: /*confirmInput*/ ctx[
|
|
22595
|
+
onChange: /*confirmInput*/ ctx[17],
|
|
22340
22596
|
resetValue: /*resetValue*/ ctx[12],
|
|
22341
22597
|
showMessage: /*doPasswordsMatch*/ ctx[10] === false,
|
|
22342
|
-
style: /*style*/ ctx[5]
|
|
22598
|
+
style: /*style*/ ctx[5],
|
|
22599
|
+
isFirstInvalidInput: /*callbackMetadata*/ ctx[2]?.derived.isFirstInvalidInput || false
|
|
22343
22600
|
}
|
|
22344
22601
|
});
|
|
22345
22602
|
|
|
@@ -22360,6 +22617,7 @@ function create_if_block$i(ctx) {
|
|
|
22360
22617
|
if (dirty & /*resetValue*/ 4096) confirminput_changes.resetValue = /*resetValue*/ ctx[12];
|
|
22361
22618
|
if (dirty & /*doPasswordsMatch*/ 1024) confirminput_changes.showMessage = /*doPasswordsMatch*/ ctx[10] === false;
|
|
22362
22619
|
if (dirty & /*style*/ 32) confirminput_changes.style = /*style*/ ctx[5];
|
|
22620
|
+
if (dirty & /*callbackMetadata*/ 4) confirminput_changes.isFirstInvalidInput = /*callbackMetadata*/ ctx[2]?.derived.isFirstInvalidInput || false;
|
|
22363
22621
|
confirminput.$set(confirminput_changes);
|
|
22364
22622
|
},
|
|
22365
22623
|
i(local) {
|
|
@@ -22377,23 +22635,26 @@ function create_if_block$i(ctx) {
|
|
|
22377
22635
|
};
|
|
22378
22636
|
}
|
|
22379
22637
|
|
|
22380
|
-
// (
|
|
22638
|
+
// (77:0) {#key callback}
|
|
22381
22639
|
function create_key_block$3(ctx) {
|
|
22382
22640
|
let input;
|
|
22383
|
-
let
|
|
22384
|
-
let
|
|
22641
|
+
let t0;
|
|
22642
|
+
let t1;
|
|
22643
|
+
let if_block1_anchor;
|
|
22385
22644
|
let current;
|
|
22386
22645
|
|
|
22387
22646
|
input = new /*Input*/ ctx[15]({
|
|
22388
22647
|
props: {
|
|
22389
22648
|
isFirstInvalidInput: /*callbackMetadata*/ ctx[2]?.derived.isFirstInvalidInput || false,
|
|
22390
|
-
hasRightIcon:
|
|
22649
|
+
hasRightIcon: /*style*/ ctx[5].showPassword === 'button'
|
|
22650
|
+
? true
|
|
22651
|
+
: false,
|
|
22391
22652
|
key: /*key*/ ctx[0],
|
|
22392
22653
|
label: interpolate(textToKey(/*callbackType*/ ctx[9]), null, /*textInputLabel*/ ctx[13]),
|
|
22393
22654
|
message: /*validationFailure*/ ctx[7] || (/*isRequired*/ ctx[4]
|
|
22394
22655
|
? interpolate('inputRequiredError')
|
|
22395
22656
|
: undefined),
|
|
22396
|
-
onChange: /*setValue*/ ctx[
|
|
22657
|
+
onChange: /*setValue*/ ctx[18],
|
|
22397
22658
|
isInvalid: /*isInvalid*/ ctx[3],
|
|
22398
22659
|
isRequired: /*isRequired*/ ctx[4],
|
|
22399
22660
|
showMessage: /*showMessage*/ ctx[6],
|
|
@@ -22403,31 +22664,41 @@ function create_key_block$3(ctx) {
|
|
|
22403
22664
|
: '',
|
|
22404
22665
|
$$slots: {
|
|
22405
22666
|
"input-button": [create_input_button_slot],
|
|
22406
|
-
default: [
|
|
22667
|
+
default: [create_default_slot_2$6]
|
|
22407
22668
|
},
|
|
22408
22669
|
$$scope: { ctx }
|
|
22409
22670
|
}
|
|
22410
22671
|
});
|
|
22411
22672
|
|
|
22412
|
-
let
|
|
22673
|
+
let if_block0 = /*showPassword*/ ctx[16] === "checkbox" && create_if_block_1$b(ctx);
|
|
22674
|
+
let if_block1 = /*callbackMetadata*/ ctx[2]?.platform?.confirmPassword && create_if_block$i(ctx);
|
|
22413
22675
|
|
|
22414
22676
|
return {
|
|
22415
22677
|
c() {
|
|
22416
22678
|
create_component(input.$$.fragment);
|
|
22417
|
-
|
|
22418
|
-
if (
|
|
22419
|
-
|
|
22679
|
+
t0 = space();
|
|
22680
|
+
if (if_block0) if_block0.c();
|
|
22681
|
+
t1 = space();
|
|
22682
|
+
if (if_block1) if_block1.c();
|
|
22683
|
+
if_block1_anchor = empty();
|
|
22420
22684
|
},
|
|
22421
22685
|
m(target, anchor) {
|
|
22422
22686
|
mount_component(input, target, anchor);
|
|
22423
|
-
insert(target,
|
|
22424
|
-
if (
|
|
22425
|
-
insert(target,
|
|
22687
|
+
insert(target, t0, anchor);
|
|
22688
|
+
if (if_block0) if_block0.m(target, anchor);
|
|
22689
|
+
insert(target, t1, anchor);
|
|
22690
|
+
if (if_block1) if_block1.m(target, anchor);
|
|
22691
|
+
insert(target, if_block1_anchor, anchor);
|
|
22426
22692
|
current = true;
|
|
22427
22693
|
},
|
|
22428
22694
|
p(ctx, dirty) {
|
|
22429
22695
|
const input_changes = {};
|
|
22430
22696
|
if (dirty & /*callbackMetadata*/ 4) input_changes.isFirstInvalidInput = /*callbackMetadata*/ ctx[2]?.derived.isFirstInvalidInput || false;
|
|
22697
|
+
|
|
22698
|
+
if (dirty & /*style*/ 32) input_changes.hasRightIcon = /*style*/ ctx[5].showPassword === 'button'
|
|
22699
|
+
? true
|
|
22700
|
+
: false;
|
|
22701
|
+
|
|
22431
22702
|
if (dirty & /*key*/ 1) input_changes.key = /*key*/ ctx[0];
|
|
22432
22703
|
if (dirty & /*callbackType, textInputLabel*/ 8704) input_changes.label = interpolate(textToKey(/*callbackType*/ ctx[9]), null, /*textInputLabel*/ ctx[13]);
|
|
22433
22704
|
|
|
@@ -22444,30 +22715,31 @@ function create_key_block$3(ctx) {
|
|
|
22444
22715
|
? /*value*/ ctx[8]
|
|
22445
22716
|
: '';
|
|
22446
22717
|
|
|
22447
|
-
if (dirty & /*$$scope, isVisible*/
|
|
22718
|
+
if (dirty & /*$$scope, isVisible*/ 8390656) {
|
|
22448
22719
|
input_changes.$$scope = { dirty, ctx };
|
|
22449
22720
|
}
|
|
22450
22721
|
|
|
22451
22722
|
input.$set(input_changes);
|
|
22723
|
+
if (/*showPassword*/ ctx[16] === "checkbox") if_block0.p(ctx, dirty);
|
|
22452
22724
|
|
|
22453
22725
|
if (/*callbackMetadata*/ ctx[2]?.platform?.confirmPassword) {
|
|
22454
|
-
if (
|
|
22455
|
-
|
|
22726
|
+
if (if_block1) {
|
|
22727
|
+
if_block1.p(ctx, dirty);
|
|
22456
22728
|
|
|
22457
22729
|
if (dirty & /*callbackMetadata*/ 4) {
|
|
22458
|
-
transition_in(
|
|
22730
|
+
transition_in(if_block1, 1);
|
|
22459
22731
|
}
|
|
22460
22732
|
} else {
|
|
22461
|
-
|
|
22462
|
-
|
|
22463
|
-
transition_in(
|
|
22464
|
-
|
|
22733
|
+
if_block1 = create_if_block$i(ctx);
|
|
22734
|
+
if_block1.c();
|
|
22735
|
+
transition_in(if_block1, 1);
|
|
22736
|
+
if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
|
|
22465
22737
|
}
|
|
22466
|
-
} else if (
|
|
22738
|
+
} else if (if_block1) {
|
|
22467
22739
|
group_outros();
|
|
22468
22740
|
|
|
22469
|
-
transition_out(
|
|
22470
|
-
|
|
22741
|
+
transition_out(if_block1, 1, 1, () => {
|
|
22742
|
+
if_block1 = null;
|
|
22471
22743
|
});
|
|
22472
22744
|
|
|
22473
22745
|
check_outros();
|
|
@@ -22476,19 +22748,23 @@ function create_key_block$3(ctx) {
|
|
|
22476
22748
|
i(local) {
|
|
22477
22749
|
if (current) return;
|
|
22478
22750
|
transition_in(input.$$.fragment, local);
|
|
22479
|
-
transition_in(
|
|
22751
|
+
transition_in(if_block0);
|
|
22752
|
+
transition_in(if_block1);
|
|
22480
22753
|
current = true;
|
|
22481
22754
|
},
|
|
22482
22755
|
o(local) {
|
|
22483
22756
|
transition_out(input.$$.fragment, local);
|
|
22484
|
-
transition_out(
|
|
22757
|
+
transition_out(if_block0);
|
|
22758
|
+
transition_out(if_block1);
|
|
22485
22759
|
current = false;
|
|
22486
22760
|
},
|
|
22487
22761
|
d(detaching) {
|
|
22488
22762
|
destroy_component(input, detaching);
|
|
22489
|
-
if (detaching) detach(
|
|
22490
|
-
if (
|
|
22491
|
-
if (detaching) detach(
|
|
22763
|
+
if (detaching) detach(t0);
|
|
22764
|
+
if (if_block0) if_block0.d(detaching);
|
|
22765
|
+
if (detaching) detach(t1);
|
|
22766
|
+
if (if_block1) if_block1.d(detaching);
|
|
22767
|
+
if (detaching) detach(if_block1_anchor);
|
|
22492
22768
|
}
|
|
22493
22769
|
};
|
|
22494
22770
|
}
|
|
@@ -22547,6 +22823,7 @@ function instance$B($$self, $$props, $$invalidate) {
|
|
|
22547
22823
|
let { isRequired = false } = $$props;
|
|
22548
22824
|
let { style = {} } = $$props;
|
|
22549
22825
|
const Input = style.labels === 'stacked' ? Stacked_label : Floating_label;
|
|
22826
|
+
const showPassword = style.showPassword;
|
|
22550
22827
|
let { showMessage = undefined } = $$props;
|
|
22551
22828
|
let { validationFailure = '' } = $$props;
|
|
22552
22829
|
let confirmValue;
|
|
@@ -22564,7 +22841,7 @@ function instance$B($$self, $$props, $$invalidate) {
|
|
|
22564
22841
|
* @param event
|
|
22565
22842
|
*/
|
|
22566
22843
|
function confirmInput(val) {
|
|
22567
|
-
$$invalidate(
|
|
22844
|
+
$$invalidate(20, confirmValue = val);
|
|
22568
22845
|
}
|
|
22569
22846
|
|
|
22570
22847
|
/**
|
|
@@ -22583,7 +22860,7 @@ function instance$B($$self, $$props, $$invalidate) {
|
|
|
22583
22860
|
*********************************************************************** */
|
|
22584
22861
|
callback.setInputValue(value);
|
|
22585
22862
|
|
|
22586
|
-
$$invalidate(
|
|
22863
|
+
$$invalidate(21, savedValue = String(value));
|
|
22587
22864
|
}
|
|
22588
22865
|
|
|
22589
22866
|
/**
|
|
@@ -22603,11 +22880,11 @@ function instance$B($$self, $$props, $$invalidate) {
|
|
|
22603
22880
|
if ('style' in $$props) $$invalidate(5, style = $$props.style);
|
|
22604
22881
|
if ('showMessage' in $$props) $$invalidate(6, showMessage = $$props.showMessage);
|
|
22605
22882
|
if ('validationFailure' in $$props) $$invalidate(7, validationFailure = $$props.validationFailure);
|
|
22606
|
-
if ('$$scope' in $$props) $$invalidate(
|
|
22883
|
+
if ('$$scope' in $$props) $$invalidate(23, $$scope = $$props.$$scope);
|
|
22607
22884
|
};
|
|
22608
22885
|
|
|
22609
22886
|
$$self.$$.update = () => {
|
|
22610
|
-
if ($$self.$$.dirty & /*callback, callbackMetadata, savedValue, value, confirmValue*/
|
|
22887
|
+
if ($$self.$$.dirty & /*callback, callbackMetadata, savedValue, value, confirmValue*/ 3145990) {
|
|
22611
22888
|
{
|
|
22612
22889
|
$$invalidate(9, callbackType = callback.getType());
|
|
22613
22890
|
$$invalidate(0, key = callback?.payload?.input?.[0].name || `password-${callbackMetadata?.idx}`);
|
|
@@ -22649,6 +22926,7 @@ function instance$B($$self, $$props, $$invalidate) {
|
|
|
22649
22926
|
textInputLabel,
|
|
22650
22927
|
type,
|
|
22651
22928
|
Input,
|
|
22929
|
+
showPassword,
|
|
22652
22930
|
confirmInput,
|
|
22653
22931
|
setValue,
|
|
22654
22932
|
toggleVisibility,
|
|
@@ -29849,7 +30127,7 @@ function get_each_context$4(ctx, list, i) {
|
|
|
29849
30127
|
return child_ctx;
|
|
29850
30128
|
}
|
|
29851
30129
|
|
|
29852
|
-
// (
|
|
30130
|
+
// (45:2) {#if componentStyle !== 'inline'}
|
|
29853
30131
|
function create_if_block_2$4(ctx) {
|
|
29854
30132
|
let t0;
|
|
29855
30133
|
let h1;
|
|
@@ -29936,7 +30214,7 @@ function create_if_block_2$4(ctx) {
|
|
|
29936
30214
|
};
|
|
29937
30215
|
}
|
|
29938
30216
|
|
|
29939
|
-
// (
|
|
30217
|
+
// (46:4) {#if form?.icon}
|
|
29940
30218
|
function create_if_block_3$3(ctx) {
|
|
29941
30219
|
let div;
|
|
29942
30220
|
let newusericon;
|
|
@@ -29976,7 +30254,7 @@ function create_if_block_3$3(ctx) {
|
|
|
29976
30254
|
};
|
|
29977
30255
|
}
|
|
29978
30256
|
|
|
29979
|
-
// (
|
|
30257
|
+
// (62:2) {#if form.message}
|
|
29980
30258
|
function create_if_block_1$5(ctx) {
|
|
29981
30259
|
let alert;
|
|
29982
30260
|
let current;
|
|
@@ -30024,7 +30302,7 @@ function create_if_block_1$5(ctx) {
|
|
|
30024
30302
|
};
|
|
30025
30303
|
}
|
|
30026
30304
|
|
|
30027
|
-
// (
|
|
30305
|
+
// (63:4) <Alert id="formFailureMessageAlert" needsFocus={alertNeedsFocus} type="error">
|
|
30028
30306
|
function create_default_slot_2$2(ctx) {
|
|
30029
30307
|
let t_value = interpolate(/*formMessageKey*/ ctx[7], null, /*form*/ ctx[2]?.message) + "";
|
|
30030
30308
|
let t;
|
|
@@ -30045,7 +30323,7 @@ function create_default_slot_2$2(ctx) {
|
|
|
30045
30323
|
};
|
|
30046
30324
|
}
|
|
30047
30325
|
|
|
30048
|
-
// (
|
|
30326
|
+
// (68:2) {#each step?.callbacks as callback, idx}
|
|
30049
30327
|
function create_each_block$4(ctx) {
|
|
30050
30328
|
let callbackmapper;
|
|
30051
30329
|
let current;
|
|
@@ -30098,7 +30376,7 @@ function create_each_block$4(ctx) {
|
|
|
30098
30376
|
};
|
|
30099
30377
|
}
|
|
30100
30378
|
|
|
30101
|
-
// (
|
|
30379
|
+
// (80:2) {#if metadata?.step?.derived.isUserInputOptional || !metadata?.step?.derived.isStepSelfSubmittable()}
|
|
30102
30380
|
function create_if_block$7(ctx) {
|
|
30103
30381
|
let button;
|
|
30104
30382
|
let current;
|
|
@@ -30147,7 +30425,7 @@ function create_if_block$7(ctx) {
|
|
|
30147
30425
|
};
|
|
30148
30426
|
}
|
|
30149
30427
|
|
|
30150
|
-
// (
|
|
30428
|
+
// (81:4) <Button busy={journey?.loading} style="primary" type="submit" width="full">
|
|
30151
30429
|
function create_default_slot_1$6(ctx) {
|
|
30152
30430
|
let t;
|
|
30153
30431
|
let current;
|
|
@@ -30177,7 +30455,7 @@ function create_default_slot_1$6(ctx) {
|
|
|
30177
30455
|
};
|
|
30178
30456
|
}
|
|
30179
30457
|
|
|
30180
|
-
// (
|
|
30458
|
+
// (44:0) <Form bind:formEl ariaDescribedBy="formFailureMessageAlert" onSubmitWhenValid={form?.submit}>
|
|
30181
30459
|
function create_default_slot$7(ctx) {
|
|
30182
30460
|
let t0;
|
|
30183
30461
|
let t1;
|
|
@@ -30462,12 +30740,6 @@ function instance$c($$self, $$props, $$invalidate) {
|
|
|
30462
30740
|
}
|
|
30463
30741
|
});
|
|
30464
30742
|
|
|
30465
|
-
onMount(() => {
|
|
30466
|
-
if (componentStyle === 'modal') {
|
|
30467
|
-
captureLinks(linkWrapper, journey);
|
|
30468
|
-
}
|
|
30469
|
-
});
|
|
30470
|
-
|
|
30471
30743
|
function p_binding($$value) {
|
|
30472
30744
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
30473
30745
|
linkWrapper = $$value;
|