@memberstack/dom 1.9.10 → 1.9.12
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/lib/index.d.ts +6 -0
- package/lib/methods/dom/main-dom.js +2030 -590
- package/lib/methods/index.d.ts +6 -0
- package/lib/methods/requests/index.d.ts +6 -0
- package/lib/methods/requests/index.js +93 -8
- package/lib/types/params.d.ts +7 -5
- package/lib/types/payloads.d.ts +3 -0
- package/package.json +1 -1
|
@@ -962,6 +962,13 @@ var AppStore = writable({
|
|
|
962
962
|
lightMode: {},
|
|
963
963
|
}
|
|
964
964
|
},
|
|
965
|
+
authProviders: [],
|
|
966
|
+
additionalAuthMethods: {
|
|
967
|
+
passwordless: {
|
|
968
|
+
enabled: false,
|
|
969
|
+
isDefault: false
|
|
970
|
+
}
|
|
971
|
+
}
|
|
965
972
|
});
|
|
966
973
|
var TextStore = writable({
|
|
967
974
|
text: {
|
|
@@ -987,7 +994,7 @@ var TextStore = writable({
|
|
|
987
994
|
/* src/components/MediaQuery.svelte generated by Svelte v3.48.0 */
|
|
988
995
|
var get_default_slot_changes = function (dirty) { return ({ matches: dirty & /*matches*/ 1 }); };
|
|
989
996
|
var get_default_slot_context = function (ctx) { return ({ matches: /*matches*/ ctx[0] }); };
|
|
990
|
-
function create_fragment$
|
|
997
|
+
function create_fragment$I(ctx) {
|
|
991
998
|
var current;
|
|
992
999
|
var default_slot_template = /*#slots*/ ctx[4].default;
|
|
993
1000
|
var default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[3], get_default_slot_context);
|
|
@@ -1029,7 +1036,7 @@ function create_fragment$G(ctx) {
|
|
|
1029
1036
|
}
|
|
1030
1037
|
};
|
|
1031
1038
|
}
|
|
1032
|
-
function instance$
|
|
1039
|
+
function instance$q($$self, $$props, $$invalidate) {
|
|
1033
1040
|
var _a = $$props.$$slots, slots = _a === void 0 ? {} : _a, $$scope = $$props.$$scope;
|
|
1034
1041
|
var query = $$props.query;
|
|
1035
1042
|
var mql;
|
|
@@ -1075,13 +1082,13 @@ var MediaQuery = /** @class */ (function (_super) {
|
|
|
1075
1082
|
__extends(MediaQuery, _super);
|
|
1076
1083
|
function MediaQuery(options) {
|
|
1077
1084
|
var _this = _super.call(this) || this;
|
|
1078
|
-
init(_this, options, instance$
|
|
1085
|
+
init(_this, options, instance$q, create_fragment$I, safe_not_equal, { query: 1 });
|
|
1079
1086
|
return _this;
|
|
1080
1087
|
}
|
|
1081
1088
|
return MediaQuery;
|
|
1082
1089
|
}(SvelteComponent));
|
|
1083
1090
|
/* src/icons/LoadingIcon.svelte generated by Svelte v3.48.0 */
|
|
1084
|
-
function create_fragment$
|
|
1091
|
+
function create_fragment$H(ctx) {
|
|
1085
1092
|
var svg;
|
|
1086
1093
|
var path;
|
|
1087
1094
|
var animateTransform;
|
|
@@ -1126,13 +1133,13 @@ var LoadingIcon = /** @class */ (function (_super) {
|
|
|
1126
1133
|
__extends(LoadingIcon, _super);
|
|
1127
1134
|
function LoadingIcon(options) {
|
|
1128
1135
|
var _this = _super.call(this) || this;
|
|
1129
|
-
init(_this, options, null, create_fragment$
|
|
1136
|
+
init(_this, options, null, create_fragment$H, safe_not_equal, {});
|
|
1130
1137
|
return _this;
|
|
1131
1138
|
}
|
|
1132
1139
|
return LoadingIcon;
|
|
1133
1140
|
}(SvelteComponent));
|
|
1134
1141
|
/* src/components/Loader.svelte generated by Svelte v3.48.0 */
|
|
1135
|
-
function create_fragment$
|
|
1142
|
+
function create_fragment$G(ctx) {
|
|
1136
1143
|
var div;
|
|
1137
1144
|
var loadingicon;
|
|
1138
1145
|
var current;
|
|
@@ -1170,13 +1177,13 @@ var Loader = /** @class */ (function (_super) {
|
|
|
1170
1177
|
__extends(Loader, _super);
|
|
1171
1178
|
function Loader(options) {
|
|
1172
1179
|
var _this = _super.call(this) || this;
|
|
1173
|
-
init(_this, options, null, create_fragment$
|
|
1180
|
+
init(_this, options, null, create_fragment$G, safe_not_equal, {});
|
|
1174
1181
|
return _this;
|
|
1175
1182
|
}
|
|
1176
1183
|
return Loader;
|
|
1177
1184
|
}(SvelteComponent));
|
|
1178
1185
|
/* src/icons/CloseIcon.svelte generated by Svelte v3.48.0 */
|
|
1179
|
-
function create_fragment$
|
|
1186
|
+
function create_fragment$F(ctx) {
|
|
1180
1187
|
var svg;
|
|
1181
1188
|
var path;
|
|
1182
1189
|
return {
|
|
@@ -1208,13 +1215,13 @@ var CloseIcon = /** @class */ (function (_super) {
|
|
|
1208
1215
|
__extends(CloseIcon, _super);
|
|
1209
1216
|
function CloseIcon(options) {
|
|
1210
1217
|
var _this = _super.call(this) || this;
|
|
1211
|
-
init(_this, options, null, create_fragment$
|
|
1218
|
+
init(_this, options, null, create_fragment$F, safe_not_equal, {});
|
|
1212
1219
|
return _this;
|
|
1213
1220
|
}
|
|
1214
1221
|
return CloseIcon;
|
|
1215
1222
|
}(SvelteComponent));
|
|
1216
1223
|
/* src/components/CloseButton.svelte generated by Svelte v3.48.0 */
|
|
1217
|
-
function create_fragment$
|
|
1224
|
+
function create_fragment$E(ctx) {
|
|
1218
1225
|
var div;
|
|
1219
1226
|
var button;
|
|
1220
1227
|
var closeicon;
|
|
@@ -1265,7 +1272,7 @@ function create_fragment$C(ctx) {
|
|
|
1265
1272
|
}
|
|
1266
1273
|
};
|
|
1267
1274
|
}
|
|
1268
|
-
function instance$
|
|
1275
|
+
function instance$p($$self, $$props, $$invalidate) {
|
|
1269
1276
|
var closeModal = $$props.closeModal;
|
|
1270
1277
|
$$self.$$set = function ($$props) {
|
|
1271
1278
|
if ('closeModal' in $$props)
|
|
@@ -1277,13 +1284,13 @@ var CloseButton = /** @class */ (function (_super) {
|
|
|
1277
1284
|
__extends(CloseButton, _super);
|
|
1278
1285
|
function CloseButton(options) {
|
|
1279
1286
|
var _this = _super.call(this) || this;
|
|
1280
|
-
init(_this, options, instance$
|
|
1287
|
+
init(_this, options, instance$p, create_fragment$E, safe_not_equal, { closeModal: 0 });
|
|
1281
1288
|
return _this;
|
|
1282
1289
|
}
|
|
1283
1290
|
return CloseButton;
|
|
1284
1291
|
}(SvelteComponent));
|
|
1285
1292
|
/* src/icons/MemberstackIcon.svelte generated by Svelte v3.48.0 */
|
|
1286
|
-
function create_fragment$
|
|
1293
|
+
function create_fragment$D(ctx) {
|
|
1287
1294
|
var svg;
|
|
1288
1295
|
var path0;
|
|
1289
1296
|
var path1;
|
|
@@ -1337,13 +1344,13 @@ var MemberstackIcon = /** @class */ (function (_super) {
|
|
|
1337
1344
|
__extends(MemberstackIcon, _super);
|
|
1338
1345
|
function MemberstackIcon(options) {
|
|
1339
1346
|
var _this = _super.call(this) || this;
|
|
1340
|
-
init(_this, options, null, create_fragment$
|
|
1347
|
+
init(_this, options, null, create_fragment$D, safe_not_equal, {});
|
|
1341
1348
|
return _this;
|
|
1342
1349
|
}
|
|
1343
1350
|
return MemberstackIcon;
|
|
1344
1351
|
}(SvelteComponent));
|
|
1345
1352
|
/* src/components/FigureElement.svelte generated by Svelte v3.48.0 */
|
|
1346
|
-
function create_else_block$
|
|
1353
|
+
function create_else_block$a(ctx) {
|
|
1347
1354
|
var memberstackicon;
|
|
1348
1355
|
var current;
|
|
1349
1356
|
memberstackicon = new MemberstackIcon({});
|
|
@@ -1372,7 +1379,7 @@ function create_else_block$7(ctx) {
|
|
|
1372
1379
|
};
|
|
1373
1380
|
}
|
|
1374
1381
|
// (13:2) {#if app.branding.logo}
|
|
1375
|
-
function create_if_block$
|
|
1382
|
+
function create_if_block$k(ctx) {
|
|
1376
1383
|
var img;
|
|
1377
1384
|
var img_src_value;
|
|
1378
1385
|
var img_alt_value;
|
|
@@ -1403,12 +1410,12 @@ function create_if_block$j(ctx) {
|
|
|
1403
1410
|
}
|
|
1404
1411
|
};
|
|
1405
1412
|
}
|
|
1406
|
-
function create_fragment$
|
|
1413
|
+
function create_fragment$C(ctx) {
|
|
1407
1414
|
var figure;
|
|
1408
1415
|
var current_block_type_index;
|
|
1409
1416
|
var if_block;
|
|
1410
1417
|
var current;
|
|
1411
|
-
var if_block_creators = [create_if_block$
|
|
1418
|
+
var if_block_creators = [create_if_block$k, create_else_block$a];
|
|
1412
1419
|
var if_blocks = [];
|
|
1413
1420
|
function select_block_type(ctx, dirty) {
|
|
1414
1421
|
if ( /*app*/ctx[0].branding.logo)
|
|
@@ -1470,7 +1477,7 @@ function create_fragment$A(ctx) {
|
|
|
1470
1477
|
}
|
|
1471
1478
|
};
|
|
1472
1479
|
}
|
|
1473
|
-
function instance$
|
|
1480
|
+
function instance$o($$self, $$props, $$invalidate) {
|
|
1474
1481
|
var app = {};
|
|
1475
1482
|
AppStore.subscribe(function (data) {
|
|
1476
1483
|
$$invalidate(0, app = data);
|
|
@@ -1481,13 +1488,13 @@ var FigureElement = /** @class */ (function (_super) {
|
|
|
1481
1488
|
__extends(FigureElement, _super);
|
|
1482
1489
|
function FigureElement(options) {
|
|
1483
1490
|
var _this = _super.call(this) || this;
|
|
1484
|
-
init(_this, options, instance$
|
|
1491
|
+
init(_this, options, instance$o, create_fragment$C, safe_not_equal, {});
|
|
1485
1492
|
return _this;
|
|
1486
1493
|
}
|
|
1487
1494
|
return FigureElement;
|
|
1488
1495
|
}(SvelteComponent));
|
|
1489
1496
|
/* src/components/SubmitButton.svelte generated by Svelte v3.48.0 */
|
|
1490
|
-
function create_else_block$
|
|
1497
|
+
function create_else_block$9(ctx) {
|
|
1491
1498
|
var button;
|
|
1492
1499
|
var loadingicon;
|
|
1493
1500
|
var current;
|
|
@@ -1529,7 +1536,7 @@ function create_else_block$6(ctx) {
|
|
|
1529
1536
|
};
|
|
1530
1537
|
}
|
|
1531
1538
|
// (15:2) {#if !isLoading}
|
|
1532
|
-
function create_if_block$
|
|
1539
|
+
function create_if_block$j(ctx) {
|
|
1533
1540
|
var button;
|
|
1534
1541
|
var t;
|
|
1535
1542
|
return {
|
|
@@ -1559,12 +1566,12 @@ function create_if_block$i(ctx) {
|
|
|
1559
1566
|
}
|
|
1560
1567
|
};
|
|
1561
1568
|
}
|
|
1562
|
-
function create_fragment$
|
|
1569
|
+
function create_fragment$B(ctx) {
|
|
1563
1570
|
var div;
|
|
1564
1571
|
var current_block_type_index;
|
|
1565
1572
|
var if_block;
|
|
1566
1573
|
var current;
|
|
1567
|
-
var if_block_creators = [create_if_block$
|
|
1574
|
+
var if_block_creators = [create_if_block$j, create_else_block$9];
|
|
1568
1575
|
var if_blocks = [];
|
|
1569
1576
|
function select_block_type(ctx, dirty) {
|
|
1570
1577
|
if (!ctx[1])
|
|
@@ -1625,7 +1632,7 @@ function create_fragment$z(ctx) {
|
|
|
1625
1632
|
}
|
|
1626
1633
|
};
|
|
1627
1634
|
}
|
|
1628
|
-
function instance$
|
|
1635
|
+
function instance$n($$self, $$props, $$invalidate) {
|
|
1629
1636
|
var $app;
|
|
1630
1637
|
component_subscribe($$self, AppStore, function ($$value) { return $$invalidate(3, $app = $$value); });
|
|
1631
1638
|
var _a = $$props.buttonText, buttonText = _a === void 0 ? "Submit" : _a;
|
|
@@ -1646,13 +1653,13 @@ var SubmitButton = /** @class */ (function (_super) {
|
|
|
1646
1653
|
__extends(SubmitButton, _super);
|
|
1647
1654
|
function SubmitButton(options) {
|
|
1648
1655
|
var _this = _super.call(this) || this;
|
|
1649
|
-
init(_this, options, instance$
|
|
1656
|
+
init(_this, options, instance$n, create_fragment$B, safe_not_equal, { buttonText: 0, isLoading: 1 });
|
|
1650
1657
|
return _this;
|
|
1651
1658
|
}
|
|
1652
1659
|
return SubmitButton;
|
|
1653
1660
|
}(SvelteComponent));
|
|
1654
1661
|
/* src/icons/ErrorIcon.svelte generated by Svelte v3.48.0 */
|
|
1655
|
-
function create_fragment$
|
|
1662
|
+
function create_fragment$A(ctx) {
|
|
1656
1663
|
var svg;
|
|
1657
1664
|
var path;
|
|
1658
1665
|
return {
|
|
@@ -1682,13 +1689,13 @@ var ErrorIcon = /** @class */ (function (_super) {
|
|
|
1682
1689
|
__extends(ErrorIcon, _super);
|
|
1683
1690
|
function ErrorIcon(options) {
|
|
1684
1691
|
var _this = _super.call(this) || this;
|
|
1685
|
-
init(_this, options, null, create_fragment$
|
|
1692
|
+
init(_this, options, null, create_fragment$A, safe_not_equal, {});
|
|
1686
1693
|
return _this;
|
|
1687
1694
|
}
|
|
1688
1695
|
return ErrorIcon;
|
|
1689
1696
|
}(SvelteComponent));
|
|
1690
1697
|
/* src/components/EmailInput.svelte generated by Svelte v3.48.0 */
|
|
1691
|
-
function create_if_block$
|
|
1698
|
+
function create_if_block$i(ctx) {
|
|
1692
1699
|
var div;
|
|
1693
1700
|
var erroricon;
|
|
1694
1701
|
var t0;
|
|
@@ -1728,7 +1735,7 @@ function create_if_block$h(ctx) {
|
|
|
1728
1735
|
}
|
|
1729
1736
|
};
|
|
1730
1737
|
}
|
|
1731
|
-
function create_fragment$
|
|
1738
|
+
function create_fragment$z(ctx) {
|
|
1732
1739
|
var div;
|
|
1733
1740
|
var label;
|
|
1734
1741
|
var t1;
|
|
@@ -1737,7 +1744,7 @@ function create_fragment$x(ctx) {
|
|
|
1737
1744
|
var current;
|
|
1738
1745
|
var mounted;
|
|
1739
1746
|
var dispose;
|
|
1740
|
-
var if_block = /*inputError*/ ctx[2] && create_if_block$
|
|
1747
|
+
var if_block = /*inputError*/ ctx[2] && create_if_block$i(ctx);
|
|
1741
1748
|
return {
|
|
1742
1749
|
c: function () {
|
|
1743
1750
|
div = element("div");
|
|
@@ -1791,7 +1798,7 @@ function create_fragment$x(ctx) {
|
|
|
1791
1798
|
}
|
|
1792
1799
|
}
|
|
1793
1800
|
else {
|
|
1794
|
-
if_block = create_if_block$
|
|
1801
|
+
if_block = create_if_block$i(ctx);
|
|
1795
1802
|
if_block.c();
|
|
1796
1803
|
transition_in(if_block, 1);
|
|
1797
1804
|
if_block.m(div, null);
|
|
@@ -1825,7 +1832,7 @@ function create_fragment$x(ctx) {
|
|
|
1825
1832
|
}
|
|
1826
1833
|
};
|
|
1827
1834
|
}
|
|
1828
|
-
function instance$
|
|
1835
|
+
function instance$m($$self, $$props, $$invalidate) {
|
|
1829
1836
|
var $textStore;
|
|
1830
1837
|
component_subscribe($$self, TextStore, function ($$value) { return $$invalidate(8, $textStore = $$value); });
|
|
1831
1838
|
var _a = $$props.emailInputValid, emailInputValid = _a === void 0 ? false : _a;
|
|
@@ -1874,7 +1881,7 @@ var EmailInput = /** @class */ (function (_super) {
|
|
|
1874
1881
|
__extends(EmailInput, _super);
|
|
1875
1882
|
function EmailInput(options) {
|
|
1876
1883
|
var _this = _super.call(this) || this;
|
|
1877
|
-
init(_this, options, instance$
|
|
1884
|
+
init(_this, options, instance$m, create_fragment$z, safe_not_equal, {
|
|
1878
1885
|
emailInputValid: 6,
|
|
1879
1886
|
emailValue: 0,
|
|
1880
1887
|
placeholder: 1
|
|
@@ -1884,7 +1891,7 @@ var EmailInput = /** @class */ (function (_super) {
|
|
|
1884
1891
|
return EmailInput;
|
|
1885
1892
|
}(SvelteComponent));
|
|
1886
1893
|
/* src/icons/EyeIcon.svelte generated by Svelte v3.48.0 */
|
|
1887
|
-
function create_fragment$
|
|
1894
|
+
function create_fragment$y(ctx) {
|
|
1888
1895
|
var svg;
|
|
1889
1896
|
var path;
|
|
1890
1897
|
return {
|
|
@@ -1915,13 +1922,13 @@ var EyeIcon = /** @class */ (function (_super) {
|
|
|
1915
1922
|
__extends(EyeIcon, _super);
|
|
1916
1923
|
function EyeIcon(options) {
|
|
1917
1924
|
var _this = _super.call(this) || this;
|
|
1918
|
-
init(_this, options, null, create_fragment$
|
|
1925
|
+
init(_this, options, null, create_fragment$y, safe_not_equal, {});
|
|
1919
1926
|
return _this;
|
|
1920
1927
|
}
|
|
1921
1928
|
return EyeIcon;
|
|
1922
1929
|
}(SvelteComponent));
|
|
1923
1930
|
/* src/icons/EyeSlashIcon.svelte generated by Svelte v3.48.0 */
|
|
1924
|
-
function create_fragment$
|
|
1931
|
+
function create_fragment$x(ctx) {
|
|
1925
1932
|
var svg;
|
|
1926
1933
|
var path;
|
|
1927
1934
|
return {
|
|
@@ -1952,13 +1959,13 @@ var EyeSlashIcon = /** @class */ (function (_super) {
|
|
|
1952
1959
|
__extends(EyeSlashIcon, _super);
|
|
1953
1960
|
function EyeSlashIcon(options) {
|
|
1954
1961
|
var _this = _super.call(this) || this;
|
|
1955
|
-
init(_this, options, null, create_fragment$
|
|
1962
|
+
init(_this, options, null, create_fragment$x, safe_not_equal, {});
|
|
1956
1963
|
return _this;
|
|
1957
1964
|
}
|
|
1958
1965
|
return EyeSlashIcon;
|
|
1959
1966
|
}(SvelteComponent));
|
|
1960
1967
|
/* src/components/PasswordInput.svelte generated by Svelte v3.48.0 */
|
|
1961
|
-
function create_if_block_2$
|
|
1968
|
+
function create_if_block_2$9(ctx) {
|
|
1962
1969
|
var div;
|
|
1963
1970
|
var button;
|
|
1964
1971
|
var mounted;
|
|
@@ -1992,7 +1999,7 @@ function create_if_block_2$8(ctx) {
|
|
|
1992
1999
|
};
|
|
1993
2000
|
}
|
|
1994
2001
|
// (60:6) {:else}
|
|
1995
|
-
function create_else_block$
|
|
2002
|
+
function create_else_block$8(ctx) {
|
|
1996
2003
|
var eyeslashicon;
|
|
1997
2004
|
var current;
|
|
1998
2005
|
eyeslashicon = new EyeSlashIcon({});
|
|
@@ -2020,7 +2027,7 @@ function create_else_block$5(ctx) {
|
|
|
2020
2027
|
};
|
|
2021
2028
|
}
|
|
2022
2029
|
// (58:6) {#if !passwordVisible}
|
|
2023
|
-
function create_if_block_1$
|
|
2030
|
+
function create_if_block_1$c(ctx) {
|
|
2024
2031
|
var eyeicon;
|
|
2025
2032
|
var current;
|
|
2026
2033
|
eyeicon = new EyeIcon({});
|
|
@@ -2048,7 +2055,7 @@ function create_if_block_1$b(ctx) {
|
|
|
2048
2055
|
};
|
|
2049
2056
|
}
|
|
2050
2057
|
// (65:2) {#if inputError}
|
|
2051
|
-
function create_if_block$
|
|
2058
|
+
function create_if_block$h(ctx) {
|
|
2052
2059
|
var div;
|
|
2053
2060
|
var erroricon;
|
|
2054
2061
|
var t0;
|
|
@@ -2088,7 +2095,7 @@ function create_if_block$g(ctx) {
|
|
|
2088
2095
|
}
|
|
2089
2096
|
};
|
|
2090
2097
|
}
|
|
2091
|
-
function create_fragment$
|
|
2098
|
+
function create_fragment$w(ctx) {
|
|
2092
2099
|
var div3;
|
|
2093
2100
|
var div0;
|
|
2094
2101
|
var label;
|
|
@@ -2106,8 +2113,8 @@ function create_fragment$u(ctx) {
|
|
|
2106
2113
|
var current;
|
|
2107
2114
|
var mounted;
|
|
2108
2115
|
var dispose;
|
|
2109
|
-
var if_block0 = /*showForgotPasswordLabel*/ ctx[2] && create_if_block_2$
|
|
2110
|
-
var if_block_creators = [create_if_block_1$
|
|
2116
|
+
var if_block0 = /*showForgotPasswordLabel*/ ctx[2] && create_if_block_2$9(ctx);
|
|
2117
|
+
var if_block_creators = [create_if_block_1$c, create_else_block$8];
|
|
2111
2118
|
var if_blocks = [];
|
|
2112
2119
|
function select_block_type(ctx, dirty) {
|
|
2113
2120
|
if (!ctx[5])
|
|
@@ -2116,7 +2123,7 @@ function create_fragment$u(ctx) {
|
|
|
2116
2123
|
}
|
|
2117
2124
|
current_block_type_index = select_block_type(ctx);
|
|
2118
2125
|
if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
2119
|
-
var if_block2 = /*inputError*/ ctx[6] && create_if_block$
|
|
2126
|
+
var if_block2 = /*inputError*/ ctx[6] && create_if_block$h(ctx);
|
|
2120
2127
|
return {
|
|
2121
2128
|
c: function () {
|
|
2122
2129
|
div3 = element("div");
|
|
@@ -2187,7 +2194,7 @@ function create_fragment$u(ctx) {
|
|
|
2187
2194
|
if_block0.p(ctx, dirty);
|
|
2188
2195
|
}
|
|
2189
2196
|
else {
|
|
2190
|
-
if_block0 = create_if_block_2$
|
|
2197
|
+
if_block0 = create_if_block_2$9(ctx);
|
|
2191
2198
|
if_block0.c();
|
|
2192
2199
|
if_block0.m(div0, null);
|
|
2193
2200
|
}
|
|
@@ -2229,7 +2236,7 @@ function create_fragment$u(ctx) {
|
|
|
2229
2236
|
}
|
|
2230
2237
|
}
|
|
2231
2238
|
else {
|
|
2232
|
-
if_block2 = create_if_block$
|
|
2239
|
+
if_block2 = create_if_block$h(ctx);
|
|
2233
2240
|
if_block2.c();
|
|
2234
2241
|
transition_in(if_block2, 1);
|
|
2235
2242
|
if_block2.m(div3, null);
|
|
@@ -2268,7 +2275,7 @@ function create_fragment$u(ctx) {
|
|
|
2268
2275
|
}
|
|
2269
2276
|
};
|
|
2270
2277
|
}
|
|
2271
|
-
function instance$
|
|
2278
|
+
function instance$l($$self, $$props, $$invalidate) {
|
|
2272
2279
|
var type;
|
|
2273
2280
|
var $textStore;
|
|
2274
2281
|
component_subscribe($$self, TextStore, function ($$value) { return $$invalidate(15, $textStore = $$value); });
|
|
@@ -2341,7 +2348,7 @@ var PasswordInput = /** @class */ (function (_super) {
|
|
|
2341
2348
|
__extends(PasswordInput, _super);
|
|
2342
2349
|
function PasswordInput(options) {
|
|
2343
2350
|
var _this = _super.call(this) || this;
|
|
2344
|
-
init(_this, options, instance$
|
|
2351
|
+
init(_this, options, instance$l, create_fragment$w, safe_not_equal, {
|
|
2345
2352
|
showForgotPasswordLabel: 2,
|
|
2346
2353
|
passwordInputValid: 13,
|
|
2347
2354
|
passwordLabel: 3,
|
|
@@ -2354,7 +2361,7 @@ var PasswordInput = /** @class */ (function (_super) {
|
|
|
2354
2361
|
return PasswordInput;
|
|
2355
2362
|
}(SvelteComponent));
|
|
2356
2363
|
/* src/icons/SecuredIcon.svelte generated by Svelte v3.48.0 */
|
|
2357
|
-
function create_fragment$
|
|
2364
|
+
function create_fragment$v(ctx) {
|
|
2358
2365
|
var svg;
|
|
2359
2366
|
var path;
|
|
2360
2367
|
return {
|
|
@@ -2385,13 +2392,13 @@ var SecuredIcon = /** @class */ (function (_super) {
|
|
|
2385
2392
|
__extends(SecuredIcon, _super);
|
|
2386
2393
|
function SecuredIcon(options) {
|
|
2387
2394
|
var _this = _super.call(this) || this;
|
|
2388
|
-
init(_this, options, null, create_fragment$
|
|
2395
|
+
init(_this, options, null, create_fragment$v, safe_not_equal, {});
|
|
2389
2396
|
return _this;
|
|
2390
2397
|
}
|
|
2391
2398
|
return SecuredIcon;
|
|
2392
2399
|
}(SvelteComponent));
|
|
2393
2400
|
/* src/components/ModalFooter.svelte generated by Svelte v3.48.0 */
|
|
2394
|
-
function create_if_block$
|
|
2401
|
+
function create_if_block$g(ctx) {
|
|
2395
2402
|
var div;
|
|
2396
2403
|
var a;
|
|
2397
2404
|
var securedicon;
|
|
@@ -2432,10 +2439,10 @@ function create_if_block$f(ctx) {
|
|
|
2432
2439
|
}
|
|
2433
2440
|
};
|
|
2434
2441
|
}
|
|
2435
|
-
function create_fragment$
|
|
2442
|
+
function create_fragment$u(ctx) {
|
|
2436
2443
|
var if_block_anchor;
|
|
2437
2444
|
var current;
|
|
2438
|
-
var if_block = !ctx[0].isPaid && create_if_block$
|
|
2445
|
+
var if_block = !ctx[0].isPaid && create_if_block$g();
|
|
2439
2446
|
return {
|
|
2440
2447
|
c: function () {
|
|
2441
2448
|
if (if_block)
|
|
@@ -2457,7 +2464,7 @@ function create_fragment$s(ctx) {
|
|
|
2457
2464
|
}
|
|
2458
2465
|
}
|
|
2459
2466
|
else {
|
|
2460
|
-
if_block = create_if_block$
|
|
2467
|
+
if_block = create_if_block$g();
|
|
2461
2468
|
if_block.c();
|
|
2462
2469
|
transition_in(if_block, 1);
|
|
2463
2470
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -2489,7 +2496,7 @@ function create_fragment$s(ctx) {
|
|
|
2489
2496
|
}
|
|
2490
2497
|
};
|
|
2491
2498
|
}
|
|
2492
|
-
function instance$
|
|
2499
|
+
function instance$k($$self, $$props, $$invalidate) {
|
|
2493
2500
|
var $app;
|
|
2494
2501
|
component_subscribe($$self, AppStore, function ($$value) { return $$invalidate(0, $app = $$value); });
|
|
2495
2502
|
return [$app];
|
|
@@ -2498,19 +2505,92 @@ var ModalFooter = /** @class */ (function (_super) {
|
|
|
2498
2505
|
__extends(ModalFooter, _super);
|
|
2499
2506
|
function ModalFooter(options) {
|
|
2500
2507
|
var _this = _super.call(this) || this;
|
|
2501
|
-
init(_this, options, instance$
|
|
2508
|
+
init(_this, options, instance$k, create_fragment$u, safe_not_equal, {});
|
|
2502
2509
|
return _this;
|
|
2503
2510
|
}
|
|
2504
2511
|
return ModalFooter;
|
|
2505
2512
|
}(SvelteComponent));
|
|
2513
|
+
/* src/icons/EmailIcon.svelte generated by Svelte v3.48.0 */
|
|
2514
|
+
function create_fragment$t(ctx) {
|
|
2515
|
+
var svg;
|
|
2516
|
+
var path;
|
|
2517
|
+
return {
|
|
2518
|
+
c: function () {
|
|
2519
|
+
svg = svg_element("svg");
|
|
2520
|
+
path = svg_element("path");
|
|
2521
|
+
attr(path, "d", "M19,4H5A3,3,0,0,0,2,7V17a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V7A3,3,0,0,0,19,4ZM5,6H19a1,1,0,0,1,1,1l-8,4.88L4,7A1,1,0,0,1,5,6ZM20,17a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V9.28l7.48,4.57a1,1,0,0,0,1,0L20,9.28Z");
|
|
2522
|
+
attr(svg, "class", "ms-email");
|
|
2523
|
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
2524
|
+
attr(svg, "viewBox", "0 0 24 24");
|
|
2525
|
+
attr(svg, "fill", "currentColor");
|
|
2526
|
+
},
|
|
2527
|
+
m: function (target, anchor) {
|
|
2528
|
+
insert(target, svg, anchor);
|
|
2529
|
+
append(svg, path);
|
|
2530
|
+
},
|
|
2531
|
+
p: noop,
|
|
2532
|
+
i: noop,
|
|
2533
|
+
o: noop,
|
|
2534
|
+
d: function (detaching) {
|
|
2535
|
+
if (detaching)
|
|
2536
|
+
detach(svg);
|
|
2537
|
+
}
|
|
2538
|
+
};
|
|
2539
|
+
}
|
|
2540
|
+
var EmailIcon = /** @class */ (function (_super) {
|
|
2541
|
+
__extends(EmailIcon, _super);
|
|
2542
|
+
function EmailIcon(options) {
|
|
2543
|
+
var _this = _super.call(this) || this;
|
|
2544
|
+
init(_this, options, null, create_fragment$t, safe_not_equal, {});
|
|
2545
|
+
return _this;
|
|
2546
|
+
}
|
|
2547
|
+
return EmailIcon;
|
|
2548
|
+
}(SvelteComponent));
|
|
2549
|
+
var PasswordlessStore = writable({
|
|
2550
|
+
passwordlessModalType: "",
|
|
2551
|
+
passwordlessEmail: "",
|
|
2552
|
+
passwordlessMode: false,
|
|
2553
|
+
passwordlessCustomFields: [],
|
|
2554
|
+
passwordlessPlans: [],
|
|
2555
|
+
});
|
|
2556
|
+
var setPasswordlessModalType = function (type) {
|
|
2557
|
+
PasswordlessStore.update(function (store) {
|
|
2558
|
+
store.passwordlessModalType = type;
|
|
2559
|
+
return store;
|
|
2560
|
+
});
|
|
2561
|
+
};
|
|
2562
|
+
var setPasswordlessEmail = function (email) {
|
|
2563
|
+
PasswordlessStore.update(function (store) {
|
|
2564
|
+
store.passwordlessEmail = email;
|
|
2565
|
+
return store;
|
|
2566
|
+
});
|
|
2567
|
+
};
|
|
2568
|
+
var setPasswordlessCustomFields = function (customFields) {
|
|
2569
|
+
PasswordlessStore.update(function (store) {
|
|
2570
|
+
store.passwordlessCustomFields = customFields;
|
|
2571
|
+
return store;
|
|
2572
|
+
});
|
|
2573
|
+
};
|
|
2574
|
+
var setPasswordlessPlans = function (plans) {
|
|
2575
|
+
PasswordlessStore.update(function (store) {
|
|
2576
|
+
store.passwordlessPlans = plans;
|
|
2577
|
+
return store;
|
|
2578
|
+
});
|
|
2579
|
+
};
|
|
2580
|
+
var setPasswordlessMode = function (mode) {
|
|
2581
|
+
PasswordlessStore.update(function (store) {
|
|
2582
|
+
store.passwordlessMode = mode;
|
|
2583
|
+
return store;
|
|
2584
|
+
});
|
|
2585
|
+
};
|
|
2506
2586
|
/* src/modals/LoginModal.svelte generated by Svelte v3.48.0 */
|
|
2507
2587
|
function get_each_context$6(ctx, list, i) {
|
|
2508
2588
|
var child_ctx = ctx.slice();
|
|
2509
|
-
child_ctx[
|
|
2589
|
+
child_ctx[22] = list[i];
|
|
2510
2590
|
return child_ctx;
|
|
2511
2591
|
}
|
|
2512
|
-
// (
|
|
2513
|
-
function
|
|
2592
|
+
// (111:2) {#if !params || !params.hideCloseButton}
|
|
2593
|
+
function create_if_block_6$3(ctx) {
|
|
2514
2594
|
var closebutton;
|
|
2515
2595
|
var current;
|
|
2516
2596
|
closebutton = new CloseButton({
|
|
@@ -2545,8 +2625,132 @@ function create_if_block_3$3(ctx) {
|
|
|
2545
2625
|
}
|
|
2546
2626
|
};
|
|
2547
2627
|
}
|
|
2548
|
-
// (
|
|
2549
|
-
function
|
|
2628
|
+
// (145:6) {:else}
|
|
2629
|
+
function create_else_block_1$4(ctx) {
|
|
2630
|
+
var submitbutton;
|
|
2631
|
+
var current;
|
|
2632
|
+
submitbutton = new SubmitButton({
|
|
2633
|
+
props: {
|
|
2634
|
+
buttonText: /*text*/ ctx[8]["login_with_email"] || "Continue with Email",
|
|
2635
|
+
isLoading: /*showLoader*/ ctx[3]
|
|
2636
|
+
}
|
|
2637
|
+
});
|
|
2638
|
+
return {
|
|
2639
|
+
c: function () {
|
|
2640
|
+
create_component(submitbutton.$$.fragment);
|
|
2641
|
+
},
|
|
2642
|
+
m: function (target, anchor) {
|
|
2643
|
+
mount_component(submitbutton, target, anchor);
|
|
2644
|
+
current = true;
|
|
2645
|
+
},
|
|
2646
|
+
p: function (ctx, dirty) {
|
|
2647
|
+
var submitbutton_changes = {};
|
|
2648
|
+
if (dirty & /*showLoader*/ 8)
|
|
2649
|
+
submitbutton_changes.isLoading = /*showLoader*/ ctx[3];
|
|
2650
|
+
submitbutton.$set(submitbutton_changes);
|
|
2651
|
+
},
|
|
2652
|
+
i: function (local) {
|
|
2653
|
+
if (current)
|
|
2654
|
+
return;
|
|
2655
|
+
transition_in(submitbutton.$$.fragment, local);
|
|
2656
|
+
current = true;
|
|
2657
|
+
},
|
|
2658
|
+
o: function (local) {
|
|
2659
|
+
transition_out(submitbutton.$$.fragment, local);
|
|
2660
|
+
current = false;
|
|
2661
|
+
},
|
|
2662
|
+
d: function (detaching) {
|
|
2663
|
+
destroy_component(submitbutton, detaching);
|
|
2664
|
+
}
|
|
2665
|
+
};
|
|
2666
|
+
}
|
|
2667
|
+
// (132:6) {#if !$PasswordlessStore.passwordlessMode}
|
|
2668
|
+
function create_if_block_5$3(ctx) {
|
|
2669
|
+
var passwordinput;
|
|
2670
|
+
var updating_passwordInputValid;
|
|
2671
|
+
var updating_display;
|
|
2672
|
+
var t;
|
|
2673
|
+
var submitbutton;
|
|
2674
|
+
var current;
|
|
2675
|
+
function passwordinput_passwordInputValid_binding(value) {
|
|
2676
|
+
/*passwordinput_passwordInputValid_binding*/ ctx[14](value);
|
|
2677
|
+
}
|
|
2678
|
+
function passwordinput_display_binding(value) {
|
|
2679
|
+
/*passwordinput_display_binding*/ ctx[15](value);
|
|
2680
|
+
}
|
|
2681
|
+
var passwordinput_props = {
|
|
2682
|
+
passwordPlaceholder: /*text*/ ctx[8]["login_password_placeholder"],
|
|
2683
|
+
"||": true,
|
|
2684
|
+
showForgotPasswordLabel: true
|
|
2685
|
+
};
|
|
2686
|
+
if ( /*passwordInputValid*/ctx[5] !== void 0) {
|
|
2687
|
+
passwordinput_props.passwordInputValid = /*passwordInputValid*/ ctx[5];
|
|
2688
|
+
}
|
|
2689
|
+
if ( /*display*/ctx[0] !== void 0) {
|
|
2690
|
+
passwordinput_props.display = /*display*/ ctx[0];
|
|
2691
|
+
}
|
|
2692
|
+
passwordinput = new PasswordInput({ props: passwordinput_props });
|
|
2693
|
+
binding_callbacks.push(function () { return bind(passwordinput, 'passwordInputValid', passwordinput_passwordInputValid_binding); });
|
|
2694
|
+
binding_callbacks.push(function () { return bind(passwordinput, 'display', passwordinput_display_binding); });
|
|
2695
|
+
submitbutton = new SubmitButton({
|
|
2696
|
+
props: {
|
|
2697
|
+
buttonText: /*text*/ ctx[8]["login"] || "Log in",
|
|
2698
|
+
isLoading: /*showLoader*/ ctx[3],
|
|
2699
|
+
"data-cy": "submit-button"
|
|
2700
|
+
}
|
|
2701
|
+
});
|
|
2702
|
+
return {
|
|
2703
|
+
c: function () {
|
|
2704
|
+
create_component(passwordinput.$$.fragment);
|
|
2705
|
+
t = space();
|
|
2706
|
+
create_component(submitbutton.$$.fragment);
|
|
2707
|
+
},
|
|
2708
|
+
m: function (target, anchor) {
|
|
2709
|
+
mount_component(passwordinput, target, anchor);
|
|
2710
|
+
insert(target, t, anchor);
|
|
2711
|
+
mount_component(submitbutton, target, anchor);
|
|
2712
|
+
current = true;
|
|
2713
|
+
},
|
|
2714
|
+
p: function (ctx, dirty) {
|
|
2715
|
+
var passwordinput_changes = {};
|
|
2716
|
+
if (!updating_passwordInputValid && dirty & /*passwordInputValid*/ 32) {
|
|
2717
|
+
updating_passwordInputValid = true;
|
|
2718
|
+
passwordinput_changes.passwordInputValid = /*passwordInputValid*/ ctx[5];
|
|
2719
|
+
add_flush_callback(function () { return updating_passwordInputValid = false; });
|
|
2720
|
+
}
|
|
2721
|
+
if (!updating_display && dirty & /*display*/ 1) {
|
|
2722
|
+
updating_display = true;
|
|
2723
|
+
passwordinput_changes.display = /*display*/ ctx[0];
|
|
2724
|
+
add_flush_callback(function () { return updating_display = false; });
|
|
2725
|
+
}
|
|
2726
|
+
passwordinput.$set(passwordinput_changes);
|
|
2727
|
+
var submitbutton_changes = {};
|
|
2728
|
+
if (dirty & /*showLoader*/ 8)
|
|
2729
|
+
submitbutton_changes.isLoading = /*showLoader*/ ctx[3];
|
|
2730
|
+
submitbutton.$set(submitbutton_changes);
|
|
2731
|
+
},
|
|
2732
|
+
i: function (local) {
|
|
2733
|
+
if (current)
|
|
2734
|
+
return;
|
|
2735
|
+
transition_in(passwordinput.$$.fragment, local);
|
|
2736
|
+
transition_in(submitbutton.$$.fragment, local);
|
|
2737
|
+
current = true;
|
|
2738
|
+
},
|
|
2739
|
+
o: function (local) {
|
|
2740
|
+
transition_out(passwordinput.$$.fragment, local);
|
|
2741
|
+
transition_out(submitbutton.$$.fragment, local);
|
|
2742
|
+
current = false;
|
|
2743
|
+
},
|
|
2744
|
+
d: function (detaching) {
|
|
2745
|
+
destroy_component(passwordinput, detaching);
|
|
2746
|
+
if (detaching)
|
|
2747
|
+
detach(t);
|
|
2748
|
+
destroy_component(submitbutton, detaching);
|
|
2749
|
+
}
|
|
2750
|
+
};
|
|
2751
|
+
}
|
|
2752
|
+
// (163:32)
|
|
2753
|
+
function create_if_block_4$4(ctx) {
|
|
2550
2754
|
var div;
|
|
2551
2755
|
var button;
|
|
2552
2756
|
var mounted;
|
|
@@ -2555,7 +2759,7 @@ function create_if_block_2$7(ctx) {
|
|
|
2555
2759
|
c: function () {
|
|
2556
2760
|
div = element("div");
|
|
2557
2761
|
button = element("button");
|
|
2558
|
-
button.textContent = "".concat(/*text*/ ctx[
|
|
2762
|
+
button.textContent = "".concat(/*text*/ ctx[8]["dont_have_an_account"] || "Don't have an account?");
|
|
2559
2763
|
attr(button, "class", "ms-form__button ms-form__button--text");
|
|
2560
2764
|
attr(button, "type", "button");
|
|
2561
2765
|
attr(div, "class", "ms-form__flex ms-form__flex--centered");
|
|
@@ -2564,7 +2768,7 @@ function create_if_block_2$7(ctx) {
|
|
|
2564
2768
|
insert(target, div, anchor);
|
|
2565
2769
|
append(div, button);
|
|
2566
2770
|
if (!mounted) {
|
|
2567
|
-
dispose = listen(button, "click", /*click_handler_1*/ ctx[
|
|
2771
|
+
dispose = listen(button, "click", /*click_handler_1*/ ctx[17]);
|
|
2568
2772
|
mounted = true;
|
|
2569
2773
|
}
|
|
2570
2774
|
},
|
|
@@ -2577,8 +2781,8 @@ function create_if_block_2$7(ctx) {
|
|
|
2577
2781
|
}
|
|
2578
2782
|
};
|
|
2579
2783
|
}
|
|
2580
|
-
// (
|
|
2581
|
-
function
|
|
2784
|
+
// (153:6) {#if params && params.signup && params.signup.plans}
|
|
2785
|
+
function create_if_block_3$4(ctx) {
|
|
2582
2786
|
var div;
|
|
2583
2787
|
var button;
|
|
2584
2788
|
var mounted;
|
|
@@ -2587,7 +2791,7 @@ function create_if_block_1$a(ctx) {
|
|
|
2587
2791
|
c: function () {
|
|
2588
2792
|
div = element("div");
|
|
2589
2793
|
button = element("button");
|
|
2590
|
-
button.textContent = "".concat(/*text*/ ctx[
|
|
2794
|
+
button.textContent = "".concat(/*text*/ ctx[8]["dont_have_an_account"] || "Don't have an account?");
|
|
2591
2795
|
attr(button, "class", "ms-form__button ms-form__button--text");
|
|
2592
2796
|
attr(button, "type", "button");
|
|
2593
2797
|
attr(div, "class", "ms-form__flex ms-form__flex--centered");
|
|
@@ -2596,7 +2800,7 @@ function create_if_block_1$a(ctx) {
|
|
|
2596
2800
|
insert(target, div, anchor);
|
|
2597
2801
|
append(div, button);
|
|
2598
2802
|
if (!mounted) {
|
|
2599
|
-
dispose = listen(button, "click", /*click_handler*/ ctx[
|
|
2803
|
+
dispose = listen(button, "click", /*click_handler*/ ctx[16]);
|
|
2600
2804
|
mounted = true;
|
|
2601
2805
|
}
|
|
2602
2806
|
},
|
|
@@ -2609,8 +2813,8 @@ function create_if_block_1$a(ctx) {
|
|
|
2609
2813
|
}
|
|
2610
2814
|
};
|
|
2611
2815
|
}
|
|
2612
|
-
// (
|
|
2613
|
-
function create_if_block$
|
|
2816
|
+
// (176:4) {#if $app.authProviders.length > 0 || $app.additionalAuthMethods.passwordless.enabled === true}
|
|
2817
|
+
function create_if_block$f(ctx) {
|
|
2614
2818
|
var div4;
|
|
2615
2819
|
var div3;
|
|
2616
2820
|
var div0;
|
|
@@ -2619,7 +2823,10 @@ function create_if_block$e(ctx) {
|
|
|
2619
2823
|
var t2;
|
|
2620
2824
|
var div2;
|
|
2621
2825
|
var t3;
|
|
2622
|
-
var
|
|
2826
|
+
var t4;
|
|
2827
|
+
var current;
|
|
2828
|
+
var if_block = /*$app*/ ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$b(ctx);
|
|
2829
|
+
var each_value = /*$app*/ ctx[7].authProviders;
|
|
2623
2830
|
var each_blocks = [];
|
|
2624
2831
|
for (var i = 0; i < each_value.length; i += 1) {
|
|
2625
2832
|
each_blocks[i] = create_each_block$6(get_each_context$6(ctx, each_value, i));
|
|
@@ -2631,10 +2838,13 @@ function create_if_block$e(ctx) {
|
|
|
2631
2838
|
div0 = element("div");
|
|
2632
2839
|
t0 = space();
|
|
2633
2840
|
div1 = element("div");
|
|
2634
|
-
div1.textContent = "".concat(/*text*/ ctx[
|
|
2841
|
+
div1.textContent = "".concat(/*text*/ ctx[8]["or"] || "or");
|
|
2635
2842
|
t2 = space();
|
|
2636
2843
|
div2 = element("div");
|
|
2637
2844
|
t3 = space();
|
|
2845
|
+
if (if_block)
|
|
2846
|
+
if_block.c();
|
|
2847
|
+
t4 = space();
|
|
2638
2848
|
for (var i = 0; i < each_blocks.length; i += 1) {
|
|
2639
2849
|
each_blocks[i].c();
|
|
2640
2850
|
}
|
|
@@ -2653,13 +2863,38 @@ function create_if_block$e(ctx) {
|
|
|
2653
2863
|
append(div3, t2);
|
|
2654
2864
|
append(div3, div2);
|
|
2655
2865
|
append(div4, t3);
|
|
2866
|
+
if (if_block)
|
|
2867
|
+
if_block.m(div4, null);
|
|
2868
|
+
append(div4, t4);
|
|
2656
2869
|
for (var i = 0; i < each_blocks.length; i += 1) {
|
|
2657
2870
|
each_blocks[i].m(div4, null);
|
|
2658
2871
|
}
|
|
2872
|
+
current = true;
|
|
2659
2873
|
},
|
|
2660
2874
|
p: function (ctx, dirty) {
|
|
2661
|
-
if (
|
|
2662
|
-
|
|
2875
|
+
if ( /*$app*/ctx[7].additionalAuthMethods.passwordless.enabled === true) {
|
|
2876
|
+
if (if_block) {
|
|
2877
|
+
if_block.p(ctx, dirty);
|
|
2878
|
+
if (dirty & /*$app*/ 128) {
|
|
2879
|
+
transition_in(if_block, 1);
|
|
2880
|
+
}
|
|
2881
|
+
}
|
|
2882
|
+
else {
|
|
2883
|
+
if_block = create_if_block_1$b(ctx);
|
|
2884
|
+
if_block.c();
|
|
2885
|
+
transition_in(if_block, 1);
|
|
2886
|
+
if_block.m(div4, t4);
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
else if (if_block) {
|
|
2890
|
+
group_outros();
|
|
2891
|
+
transition_out(if_block, 1, 1, function () {
|
|
2892
|
+
if_block = null;
|
|
2893
|
+
});
|
|
2894
|
+
check_outros();
|
|
2895
|
+
}
|
|
2896
|
+
if (dirty & /*submitLoginWithProvider, $app, text*/ 2432) {
|
|
2897
|
+
each_value = /*$app*/ ctx[7].authProviders;
|
|
2663
2898
|
var i = void 0;
|
|
2664
2899
|
for (i = 0; i < each_value.length; i += 1) {
|
|
2665
2900
|
var child_ctx = get_each_context$6(ctx, each_value, i);
|
|
@@ -2678,15 +2913,180 @@ function create_if_block$e(ctx) {
|
|
|
2678
2913
|
each_blocks.length = each_value.length;
|
|
2679
2914
|
}
|
|
2680
2915
|
},
|
|
2916
|
+
i: function (local) {
|
|
2917
|
+
if (current)
|
|
2918
|
+
return;
|
|
2919
|
+
transition_in(if_block);
|
|
2920
|
+
current = true;
|
|
2921
|
+
},
|
|
2922
|
+
o: function (local) {
|
|
2923
|
+
transition_out(if_block);
|
|
2924
|
+
current = false;
|
|
2925
|
+
},
|
|
2681
2926
|
d: function (detaching) {
|
|
2682
2927
|
if (detaching)
|
|
2683
2928
|
detach(div4);
|
|
2929
|
+
if (if_block)
|
|
2930
|
+
if_block.d();
|
|
2684
2931
|
destroy_each(each_blocks, detaching);
|
|
2685
2932
|
}
|
|
2686
2933
|
};
|
|
2687
2934
|
}
|
|
2688
|
-
// (
|
|
2689
|
-
function
|
|
2935
|
+
// (186:8) {#if $app.additionalAuthMethods.passwordless.enabled === true}
|
|
2936
|
+
function create_if_block_1$b(ctx) {
|
|
2937
|
+
var div;
|
|
2938
|
+
var current_block_type_index;
|
|
2939
|
+
var if_block;
|
|
2940
|
+
var current;
|
|
2941
|
+
var if_block_creators = [create_if_block_2$8, create_else_block$7];
|
|
2942
|
+
var if_blocks = [];
|
|
2943
|
+
function select_block_type_2(ctx, dirty) {
|
|
2944
|
+
if ( /*$PasswordlessStore*/ctx[6].passwordlessMode === false)
|
|
2945
|
+
return 0;
|
|
2946
|
+
return 1;
|
|
2947
|
+
}
|
|
2948
|
+
current_block_type_index = select_block_type_2(ctx);
|
|
2949
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
2950
|
+
return {
|
|
2951
|
+
c: function () {
|
|
2952
|
+
div = element("div");
|
|
2953
|
+
if_block.c();
|
|
2954
|
+
attr(div, "class", "ms-modal__social-buttons");
|
|
2955
|
+
},
|
|
2956
|
+
m: function (target, anchor) {
|
|
2957
|
+
insert(target, div, anchor);
|
|
2958
|
+
if_blocks[current_block_type_index].m(div, null);
|
|
2959
|
+
current = true;
|
|
2960
|
+
},
|
|
2961
|
+
p: function (ctx, dirty) {
|
|
2962
|
+
var previous_block_index = current_block_type_index;
|
|
2963
|
+
current_block_type_index = select_block_type_2(ctx);
|
|
2964
|
+
if (current_block_type_index === previous_block_index) {
|
|
2965
|
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
|
2966
|
+
}
|
|
2967
|
+
else {
|
|
2968
|
+
group_outros();
|
|
2969
|
+
transition_out(if_blocks[previous_block_index], 1, 1, function () {
|
|
2970
|
+
if_blocks[previous_block_index] = null;
|
|
2971
|
+
});
|
|
2972
|
+
check_outros();
|
|
2973
|
+
if_block = if_blocks[current_block_type_index];
|
|
2974
|
+
if (!if_block) {
|
|
2975
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
2976
|
+
if_block.c();
|
|
2977
|
+
}
|
|
2978
|
+
else {
|
|
2979
|
+
if_block.p(ctx, dirty);
|
|
2980
|
+
}
|
|
2981
|
+
transition_in(if_block, 1);
|
|
2982
|
+
if_block.m(div, null);
|
|
2983
|
+
}
|
|
2984
|
+
},
|
|
2985
|
+
i: function (local) {
|
|
2986
|
+
if (current)
|
|
2987
|
+
return;
|
|
2988
|
+
transition_in(if_block);
|
|
2989
|
+
current = true;
|
|
2990
|
+
},
|
|
2991
|
+
o: function (local) {
|
|
2992
|
+
transition_out(if_block);
|
|
2993
|
+
current = false;
|
|
2994
|
+
},
|
|
2995
|
+
d: function (detaching) {
|
|
2996
|
+
if (detaching)
|
|
2997
|
+
detach(div);
|
|
2998
|
+
if_blocks[current_block_type_index].d();
|
|
2999
|
+
}
|
|
3000
|
+
};
|
|
3001
|
+
}
|
|
3002
|
+
// (201:12) {:else}
|
|
3003
|
+
function create_else_block$7(ctx) {
|
|
3004
|
+
var button;
|
|
3005
|
+
var span;
|
|
3006
|
+
var mounted;
|
|
3007
|
+
var dispose;
|
|
3008
|
+
return {
|
|
3009
|
+
c: function () {
|
|
3010
|
+
button = element("button");
|
|
3011
|
+
span = element("span");
|
|
3012
|
+
span.textContent = "".concat(/*text*/ ctx[8]["login_with_password"] || "Log in with Password");
|
|
3013
|
+
attr(button, "class", "ms-modal__social-button");
|
|
3014
|
+
attr(button, "data-cy", "continue-with-password");
|
|
3015
|
+
attr(button, "type", "button");
|
|
3016
|
+
},
|
|
3017
|
+
m: function (target, anchor) {
|
|
3018
|
+
insert(target, button, anchor);
|
|
3019
|
+
append(button, span);
|
|
3020
|
+
if (!mounted) {
|
|
3021
|
+
dispose = listen(button, "click", /*click_handler_3*/ ctx[19]);
|
|
3022
|
+
mounted = true;
|
|
3023
|
+
}
|
|
3024
|
+
},
|
|
3025
|
+
p: noop,
|
|
3026
|
+
i: noop,
|
|
3027
|
+
o: noop,
|
|
3028
|
+
d: function (detaching) {
|
|
3029
|
+
if (detaching)
|
|
3030
|
+
detach(button);
|
|
3031
|
+
mounted = false;
|
|
3032
|
+
dispose();
|
|
3033
|
+
}
|
|
3034
|
+
};
|
|
3035
|
+
}
|
|
3036
|
+
// (188:12) {#if $PasswordlessStore.passwordlessMode === false}
|
|
3037
|
+
function create_if_block_2$8(ctx) {
|
|
3038
|
+
var button;
|
|
3039
|
+
var emailicon;
|
|
3040
|
+
var t0;
|
|
3041
|
+
var span;
|
|
3042
|
+
var current;
|
|
3043
|
+
var mounted;
|
|
3044
|
+
var dispose;
|
|
3045
|
+
emailicon = new EmailIcon({});
|
|
3046
|
+
return {
|
|
3047
|
+
c: function () {
|
|
3048
|
+
button = element("button");
|
|
3049
|
+
create_component(emailicon.$$.fragment);
|
|
3050
|
+
t0 = space();
|
|
3051
|
+
span = element("span");
|
|
3052
|
+
span.textContent = "".concat(/*text*/ ctx[8]["login_with_email"] || "Continue with Email");
|
|
3053
|
+
attr(button, "class", "ms-modal__social-button");
|
|
3054
|
+
attr(button, "data-cy", "continue-with-email");
|
|
3055
|
+
attr(button, "type", "button");
|
|
3056
|
+
},
|
|
3057
|
+
m: function (target, anchor) {
|
|
3058
|
+
insert(target, button, anchor);
|
|
3059
|
+
mount_component(emailicon, button, null);
|
|
3060
|
+
append(button, t0);
|
|
3061
|
+
append(button, span);
|
|
3062
|
+
current = true;
|
|
3063
|
+
if (!mounted) {
|
|
3064
|
+
dispose = listen(button, "click", /*click_handler_2*/ ctx[18]);
|
|
3065
|
+
mounted = true;
|
|
3066
|
+
}
|
|
3067
|
+
},
|
|
3068
|
+
p: noop,
|
|
3069
|
+
i: function (local) {
|
|
3070
|
+
if (current)
|
|
3071
|
+
return;
|
|
3072
|
+
transition_in(emailicon.$$.fragment, local);
|
|
3073
|
+
current = true;
|
|
3074
|
+
},
|
|
3075
|
+
o: function (local) {
|
|
3076
|
+
transition_out(emailicon.$$.fragment, local);
|
|
3077
|
+
current = false;
|
|
3078
|
+
},
|
|
3079
|
+
d: function (detaching) {
|
|
3080
|
+
if (detaching)
|
|
3081
|
+
detach(button);
|
|
3082
|
+
destroy_component(emailicon);
|
|
3083
|
+
mounted = false;
|
|
3084
|
+
dispose();
|
|
3085
|
+
}
|
|
3086
|
+
};
|
|
3087
|
+
}
|
|
3088
|
+
// (217:8) {#each $app.authProviders as provider}
|
|
3089
|
+
function create_each_block$6(ctx) {
|
|
2690
3090
|
var div;
|
|
2691
3091
|
var button;
|
|
2692
3092
|
var img;
|
|
@@ -2694,16 +3094,16 @@ function create_each_block$6(ctx) {
|
|
|
2694
3094
|
var img_alt_value;
|
|
2695
3095
|
var t0;
|
|
2696
3096
|
var span;
|
|
2697
|
-
var t1_value = ( /*text*/ctx[
|
|
3097
|
+
var t1_value = ( /*text*/ctx[8]["continue_with"] || "Continue with") + "";
|
|
2698
3098
|
var t1;
|
|
2699
3099
|
var t2;
|
|
2700
|
-
var t3_value = /*provider*/ ctx[
|
|
3100
|
+
var t3_value = /*provider*/ ctx[22].name + "";
|
|
2701
3101
|
var t3;
|
|
2702
3102
|
var t4;
|
|
2703
3103
|
var mounted;
|
|
2704
3104
|
var dispose;
|
|
2705
|
-
function
|
|
2706
|
-
return /*
|
|
3105
|
+
function click_handler_4() {
|
|
3106
|
+
return /*click_handler_4*/ ctx[20](/*provider*/ ctx[22]);
|
|
2707
3107
|
}
|
|
2708
3108
|
return {
|
|
2709
3109
|
c: function () {
|
|
@@ -2716,9 +3116,9 @@ function create_each_block$6(ctx) {
|
|
|
2716
3116
|
t2 = space();
|
|
2717
3117
|
t3 = text(t3_value);
|
|
2718
3118
|
t4 = space();
|
|
2719
|
-
if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[
|
|
3119
|
+
if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[22].icon))
|
|
2720
3120
|
attr(img, "src", img_src_value);
|
|
2721
|
-
attr(img, "alt", img_alt_value = /*provider*/ ctx[
|
|
3121
|
+
attr(img, "alt", img_alt_value = /*provider*/ ctx[22].name);
|
|
2722
3122
|
attr(button, "class", "ms-modal__social-button");
|
|
2723
3123
|
attr(button, "type", "button");
|
|
2724
3124
|
attr(div, "class", "ms-modal__social-buttons");
|
|
@@ -2734,19 +3134,19 @@ function create_each_block$6(ctx) {
|
|
|
2734
3134
|
append(span, t3);
|
|
2735
3135
|
append(div, t4);
|
|
2736
3136
|
if (!mounted) {
|
|
2737
|
-
dispose = listen(button, "click",
|
|
3137
|
+
dispose = listen(button, "click", click_handler_4);
|
|
2738
3138
|
mounted = true;
|
|
2739
3139
|
}
|
|
2740
3140
|
},
|
|
2741
3141
|
p: function (new_ctx, dirty) {
|
|
2742
3142
|
ctx = new_ctx;
|
|
2743
|
-
if (dirty & /*$app*/
|
|
3143
|
+
if (dirty & /*$app*/ 128 && !src_url_equal(img.src, img_src_value = /*provider*/ ctx[22].icon)) {
|
|
2744
3144
|
attr(img, "src", img_src_value);
|
|
2745
3145
|
}
|
|
2746
|
-
if (dirty & /*$app*/
|
|
3146
|
+
if (dirty & /*$app*/ 128 && img_alt_value !== (img_alt_value = /*provider*/ ctx[22].name)) {
|
|
2747
3147
|
attr(img, "alt", img_alt_value);
|
|
2748
3148
|
}
|
|
2749
|
-
if (dirty & /*$app*/
|
|
3149
|
+
if (dirty & /*$app*/ 128 && t3_value !== (t3_value = /*provider*/ ctx[22].name + ""))
|
|
2750
3150
|
set_data(t3, t3_value);
|
|
2751
3151
|
},
|
|
2752
3152
|
d: function (detaching) {
|
|
@@ -2757,7 +3157,7 @@ function create_each_block$6(ctx) {
|
|
|
2757
3157
|
}
|
|
2758
3158
|
};
|
|
2759
3159
|
}
|
|
2760
|
-
function create_fragment$
|
|
3160
|
+
function create_fragment$s(ctx) {
|
|
2761
3161
|
var div1;
|
|
2762
3162
|
var t0;
|
|
2763
3163
|
var div0;
|
|
@@ -2769,66 +3169,46 @@ function create_fragment$r(ctx) {
|
|
|
2769
3169
|
var emailinput;
|
|
2770
3170
|
var updating_emailInputValid;
|
|
2771
3171
|
var t4;
|
|
2772
|
-
var
|
|
2773
|
-
var
|
|
2774
|
-
var updating_display;
|
|
3172
|
+
var current_block_type_index;
|
|
3173
|
+
var if_block1;
|
|
2775
3174
|
var t5;
|
|
2776
|
-
var submitbutton;
|
|
2777
3175
|
var t6;
|
|
2778
3176
|
var t7;
|
|
2779
|
-
var t8;
|
|
2780
3177
|
var modalfooter;
|
|
2781
3178
|
var current;
|
|
2782
3179
|
var mounted;
|
|
2783
3180
|
var dispose;
|
|
2784
|
-
var if_block0 = (!ctx[2] || !ctx[2].hideCloseButton) &&
|
|
3181
|
+
var if_block0 = (!ctx[2] || !ctx[2].hideCloseButton) && create_if_block_6$3(ctx);
|
|
2785
3182
|
figureelement = new FigureElement({});
|
|
2786
3183
|
function emailinput_emailInputValid_binding(value) {
|
|
2787
|
-
/*emailinput_emailInputValid_binding*/ ctx[
|
|
3184
|
+
/*emailinput_emailInputValid_binding*/ ctx[13](value);
|
|
2788
3185
|
}
|
|
2789
3186
|
var emailinput_props = {
|
|
2790
|
-
placeholder: /*text*/ ctx[
|
|
3187
|
+
placeholder: /*text*/ ctx[8]["login_email_placeholder"]
|
|
2791
3188
|
};
|
|
2792
3189
|
if ( /*emailInputValid*/ctx[4] !== void 0) {
|
|
2793
3190
|
emailinput_props.emailInputValid = /*emailInputValid*/ ctx[4];
|
|
2794
3191
|
}
|
|
2795
3192
|
emailinput = new EmailInput({ props: emailinput_props });
|
|
2796
3193
|
binding_callbacks.push(function () { return bind(emailinput, 'emailInputValid', emailinput_emailInputValid_binding); });
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
}
|
|
2800
|
-
function passwordinput_display_binding(value) {
|
|
2801
|
-
/*passwordinput_display_binding*/ ctx[14](value);
|
|
2802
|
-
}
|
|
2803
|
-
var passwordinput_props = {
|
|
2804
|
-
passwordPlaceholder: /*text*/ ctx[7]["login_password_placeholder"],
|
|
2805
|
-
"||": true,
|
|
2806
|
-
showForgotPasswordLabel: true
|
|
2807
|
-
};
|
|
2808
|
-
if ( /*passwordInputValid*/ctx[5] !== void 0) {
|
|
2809
|
-
passwordinput_props.passwordInputValid = /*passwordInputValid*/ ctx[5];
|
|
2810
|
-
}
|
|
2811
|
-
if ( /*display*/ctx[0] !== void 0) {
|
|
2812
|
-
passwordinput_props.display = /*display*/ ctx[0];
|
|
2813
|
-
}
|
|
2814
|
-
passwordinput = new PasswordInput({ props: passwordinput_props });
|
|
2815
|
-
binding_callbacks.push(function () { return bind(passwordinput, 'passwordInputValid', passwordinput_passwordInputValid_binding); });
|
|
2816
|
-
binding_callbacks.push(function () { return bind(passwordinput, 'display', passwordinput_display_binding); });
|
|
2817
|
-
submitbutton = new SubmitButton({
|
|
2818
|
-
props: {
|
|
2819
|
-
buttonText: /*text*/ ctx[7]["login"] || "Log in",
|
|
2820
|
-
isLoading: /*showLoader*/ ctx[3]
|
|
2821
|
-
}
|
|
2822
|
-
});
|
|
3194
|
+
var if_block_creators = [create_if_block_5$3, create_else_block_1$4];
|
|
3195
|
+
var if_blocks = [];
|
|
2823
3196
|
function select_block_type(ctx, dirty) {
|
|
3197
|
+
if (!ctx[6].passwordlessMode)
|
|
3198
|
+
return 0;
|
|
3199
|
+
return 1;
|
|
3200
|
+
}
|
|
3201
|
+
current_block_type_index = select_block_type(ctx);
|
|
3202
|
+
if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
3203
|
+
function select_block_type_1(ctx, dirty) {
|
|
2824
3204
|
if ( /*params*/ctx[2] && /*params*/ ctx[2].signup && /*params*/ ctx[2].signup.plans)
|
|
2825
|
-
return
|
|
2826
|
-
if ( /*signupButtonURL*/ctx[
|
|
2827
|
-
return
|
|
3205
|
+
return create_if_block_3$4;
|
|
3206
|
+
if ( /*signupButtonURL*/ctx[9])
|
|
3207
|
+
return create_if_block_4$4;
|
|
2828
3208
|
}
|
|
2829
|
-
var current_block_type =
|
|
2830
|
-
var
|
|
2831
|
-
var
|
|
3209
|
+
var current_block_type = select_block_type_1(ctx);
|
|
3210
|
+
var if_block2 = current_block_type && current_block_type(ctx);
|
|
3211
|
+
var if_block3 = ( /*$app*/ctx[7].authProviders.length > 0 || /*$app*/ ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$f(ctx);
|
|
2832
3212
|
modalfooter = new ModalFooter({});
|
|
2833
3213
|
return {
|
|
2834
3214
|
c: function () {
|
|
@@ -2840,21 +3220,19 @@ function create_fragment$r(ctx) {
|
|
|
2840
3220
|
create_component(figureelement.$$.fragment);
|
|
2841
3221
|
t1 = space();
|
|
2842
3222
|
h2 = element("h2");
|
|
2843
|
-
h2.textContent = "".concat(/*text*/ ctx[
|
|
3223
|
+
h2.textContent = "".concat(/*text*/ ctx[8]["login_to_your_account"] || "Login to your account");
|
|
2844
3224
|
t3 = space();
|
|
2845
3225
|
form = element("form");
|
|
2846
3226
|
create_component(emailinput.$$.fragment);
|
|
2847
3227
|
t4 = space();
|
|
2848
|
-
|
|
3228
|
+
if_block1.c();
|
|
2849
3229
|
t5 = space();
|
|
2850
|
-
create_component(submitbutton.$$.fragment);
|
|
2851
|
-
t6 = space();
|
|
2852
|
-
if (if_block1)
|
|
2853
|
-
if_block1.c();
|
|
2854
|
-
t7 = space();
|
|
2855
3230
|
if (if_block2)
|
|
2856
3231
|
if_block2.c();
|
|
2857
|
-
|
|
3232
|
+
t6 = space();
|
|
3233
|
+
if (if_block3)
|
|
3234
|
+
if_block3.c();
|
|
3235
|
+
t7 = space();
|
|
2858
3236
|
create_component(modalfooter.$$.fragment);
|
|
2859
3237
|
attr(h2, "class", "ms-modal__title");
|
|
2860
3238
|
attr(form, "class", "ms-form");
|
|
@@ -2878,20 +3256,18 @@ function create_fragment$r(ctx) {
|
|
|
2878
3256
|
append(div0, form);
|
|
2879
3257
|
mount_component(emailinput, form, null);
|
|
2880
3258
|
append(form, t4);
|
|
2881
|
-
|
|
3259
|
+
if_blocks[current_block_type_index].m(form, null);
|
|
2882
3260
|
append(form, t5);
|
|
2883
|
-
mount_component(submitbutton, form, null);
|
|
2884
|
-
append(form, t6);
|
|
2885
|
-
if (if_block1)
|
|
2886
|
-
if_block1.m(form, null);
|
|
2887
|
-
append(div0, t7);
|
|
2888
3261
|
if (if_block2)
|
|
2889
|
-
if_block2.m(
|
|
2890
|
-
append(
|
|
3262
|
+
if_block2.m(form, null);
|
|
3263
|
+
append(div0, t6);
|
|
3264
|
+
if (if_block3)
|
|
3265
|
+
if_block3.m(div0, null);
|
|
3266
|
+
append(div1, t7);
|
|
2891
3267
|
mount_component(modalfooter, div1, null);
|
|
2892
3268
|
current = true;
|
|
2893
3269
|
if (!mounted) {
|
|
2894
|
-
dispose = listen(form, "submit", stop_propagation(prevent_default(/*submitLogin*/ ctx[
|
|
3270
|
+
dispose = listen(form, "submit", stop_propagation(prevent_default(/*submitLogin*/ ctx[10])));
|
|
2895
3271
|
mounted = true;
|
|
2896
3272
|
}
|
|
2897
3273
|
},
|
|
@@ -2905,7 +3281,7 @@ function create_fragment$r(ctx) {
|
|
|
2905
3281
|
}
|
|
2906
3282
|
}
|
|
2907
3283
|
else {
|
|
2908
|
-
if_block0 =
|
|
3284
|
+
if_block0 = create_if_block_6$3(ctx);
|
|
2909
3285
|
if_block0.c();
|
|
2910
3286
|
transition_in(if_block0, 1);
|
|
2911
3287
|
if_block0.m(div1, t0);
|
|
@@ -2925,47 +3301,60 @@ function create_fragment$r(ctx) {
|
|
|
2925
3301
|
add_flush_callback(function () { return updating_emailInputValid = false; });
|
|
2926
3302
|
}
|
|
2927
3303
|
emailinput.$set(emailinput_changes);
|
|
2928
|
-
var
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
add_flush_callback(function () { return updating_passwordInputValid = false; });
|
|
2933
|
-
}
|
|
2934
|
-
if (!updating_display && dirty & /*display*/ 1) {
|
|
2935
|
-
updating_display = true;
|
|
2936
|
-
passwordinput_changes.display = /*display*/ ctx[0];
|
|
2937
|
-
add_flush_callback(function () { return updating_display = false; });
|
|
2938
|
-
}
|
|
2939
|
-
passwordinput.$set(passwordinput_changes);
|
|
2940
|
-
var submitbutton_changes = {};
|
|
2941
|
-
if (dirty & /*showLoader*/ 8)
|
|
2942
|
-
submitbutton_changes.isLoading = /*showLoader*/ ctx[3];
|
|
2943
|
-
submitbutton.$set(submitbutton_changes);
|
|
2944
|
-
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block1) {
|
|
2945
|
-
if_block1.p(ctx, dirty);
|
|
3304
|
+
var previous_block_index = current_block_type_index;
|
|
3305
|
+
current_block_type_index = select_block_type(ctx);
|
|
3306
|
+
if (current_block_type_index === previous_block_index) {
|
|
3307
|
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
|
2946
3308
|
}
|
|
2947
3309
|
else {
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
3310
|
+
group_outros();
|
|
3311
|
+
transition_out(if_blocks[previous_block_index], 1, 1, function () {
|
|
3312
|
+
if_blocks[previous_block_index] = null;
|
|
3313
|
+
});
|
|
3314
|
+
check_outros();
|
|
3315
|
+
if_block1 = if_blocks[current_block_type_index];
|
|
3316
|
+
if (!if_block1) {
|
|
3317
|
+
if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
2952
3318
|
if_block1.c();
|
|
2953
|
-
if_block1.m(form, null);
|
|
2954
3319
|
}
|
|
3320
|
+
else {
|
|
3321
|
+
if_block1.p(ctx, dirty);
|
|
3322
|
+
}
|
|
3323
|
+
transition_in(if_block1, 1);
|
|
3324
|
+
if_block1.m(form, t5);
|
|
2955
3325
|
}
|
|
2956
|
-
if (
|
|
3326
|
+
if (current_block_type === (current_block_type = select_block_type_1(ctx)) && if_block2) {
|
|
3327
|
+
if_block2.p(ctx, dirty);
|
|
3328
|
+
}
|
|
3329
|
+
else {
|
|
3330
|
+
if (if_block2)
|
|
3331
|
+
if_block2.d(1);
|
|
3332
|
+
if_block2 = current_block_type && current_block_type(ctx);
|
|
2957
3333
|
if (if_block2) {
|
|
2958
|
-
if_block2.
|
|
3334
|
+
if_block2.c();
|
|
3335
|
+
if_block2.m(form, null);
|
|
3336
|
+
}
|
|
3337
|
+
}
|
|
3338
|
+
if ( /*$app*/ctx[7].authProviders.length > 0 || /*$app*/ ctx[7].additionalAuthMethods.passwordless.enabled === true) {
|
|
3339
|
+
if (if_block3) {
|
|
3340
|
+
if_block3.p(ctx, dirty);
|
|
3341
|
+
if (dirty & /*$app*/ 128) {
|
|
3342
|
+
transition_in(if_block3, 1);
|
|
3343
|
+
}
|
|
2959
3344
|
}
|
|
2960
3345
|
else {
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
3346
|
+
if_block3 = create_if_block$f(ctx);
|
|
3347
|
+
if_block3.c();
|
|
3348
|
+
transition_in(if_block3, 1);
|
|
3349
|
+
if_block3.m(div0, null);
|
|
2964
3350
|
}
|
|
2965
3351
|
}
|
|
2966
|
-
else if (
|
|
2967
|
-
|
|
2968
|
-
|
|
3352
|
+
else if (if_block3) {
|
|
3353
|
+
group_outros();
|
|
3354
|
+
transition_out(if_block3, 1, 1, function () {
|
|
3355
|
+
if_block3 = null;
|
|
3356
|
+
});
|
|
3357
|
+
check_outros();
|
|
2969
3358
|
}
|
|
2970
3359
|
},
|
|
2971
3360
|
i: function (local) {
|
|
@@ -2974,8 +3363,8 @@ function create_fragment$r(ctx) {
|
|
|
2974
3363
|
transition_in(if_block0);
|
|
2975
3364
|
transition_in(figureelement.$$.fragment, local);
|
|
2976
3365
|
transition_in(emailinput.$$.fragment, local);
|
|
2977
|
-
transition_in(
|
|
2978
|
-
transition_in(
|
|
3366
|
+
transition_in(if_block1);
|
|
3367
|
+
transition_in(if_block3);
|
|
2979
3368
|
transition_in(modalfooter.$$.fragment, local);
|
|
2980
3369
|
current = true;
|
|
2981
3370
|
},
|
|
@@ -2983,8 +3372,8 @@ function create_fragment$r(ctx) {
|
|
|
2983
3372
|
transition_out(if_block0);
|
|
2984
3373
|
transition_out(figureelement.$$.fragment, local);
|
|
2985
3374
|
transition_out(emailinput.$$.fragment, local);
|
|
2986
|
-
transition_out(
|
|
2987
|
-
transition_out(
|
|
3375
|
+
transition_out(if_block1);
|
|
3376
|
+
transition_out(if_block3);
|
|
2988
3377
|
transition_out(modalfooter.$$.fragment, local);
|
|
2989
3378
|
current = false;
|
|
2990
3379
|
},
|
|
@@ -2995,24 +3384,25 @@ function create_fragment$r(ctx) {
|
|
|
2995
3384
|
if_block0.d();
|
|
2996
3385
|
destroy_component(figureelement);
|
|
2997
3386
|
destroy_component(emailinput);
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
if (if_block1) {
|
|
3001
|
-
if_block1.d();
|
|
3002
|
-
}
|
|
3003
|
-
if (if_block2)
|
|
3387
|
+
if_blocks[current_block_type_index].d();
|
|
3388
|
+
if (if_block2) {
|
|
3004
3389
|
if_block2.d();
|
|
3390
|
+
}
|
|
3391
|
+
if (if_block3)
|
|
3392
|
+
if_block3.d();
|
|
3005
3393
|
destroy_component(modalfooter);
|
|
3006
3394
|
mounted = false;
|
|
3007
3395
|
dispose();
|
|
3008
3396
|
}
|
|
3009
3397
|
};
|
|
3010
3398
|
}
|
|
3011
|
-
function instance$
|
|
3399
|
+
function instance$j($$self, $$props, $$invalidate) {
|
|
3400
|
+
var $PasswordlessStore;
|
|
3012
3401
|
var $app;
|
|
3013
3402
|
var $textStore;
|
|
3014
|
-
component_subscribe($$self,
|
|
3015
|
-
component_subscribe($$self,
|
|
3403
|
+
component_subscribe($$self, PasswordlessStore, function ($$value) { return $$invalidate(6, $PasswordlessStore = $$value); });
|
|
3404
|
+
component_subscribe($$self, AppStore, function ($$value) { return $$invalidate(7, $app = $$value); });
|
|
3405
|
+
component_subscribe($$self, TextStore, function ($$value) { return $$invalidate(21, $textStore = $$value); });
|
|
3016
3406
|
var closeModal = $$props.closeModal;
|
|
3017
3407
|
var display = $$props.display;
|
|
3018
3408
|
var onSuccessLogin = $$props.onSuccessLogin;
|
|
@@ -3021,15 +3411,19 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
3021
3411
|
var showLoader = false;
|
|
3022
3412
|
var emailInputValid = false;
|
|
3023
3413
|
var passwordInputValid = false;
|
|
3414
|
+
if ($app.additionalAuthMethods.passwordless.isDefault === true) {
|
|
3415
|
+
setPasswordlessMode(true);
|
|
3416
|
+
}
|
|
3024
3417
|
var signupButtonURL = Boolean(window.ssoUI) && $app.ssoSignupButtonURL;
|
|
3025
3418
|
function submitLogin(e) {
|
|
3026
3419
|
return __awaiter(this, void 0, void 0, function () {
|
|
3027
|
-
var emailInput, passwordInput, data, err_1;
|
|
3420
|
+
var emailInput, passwordInput, data, err_1, err_2;
|
|
3028
3421
|
return __generator(this, function (_a) {
|
|
3029
3422
|
switch (_a.label) {
|
|
3030
3423
|
case 0:
|
|
3031
3424
|
emailInput = e.target.querySelector("[name=eml]");
|
|
3032
3425
|
passwordInput = e.target.querySelector("[name=psw]");
|
|
3426
|
+
if (!($PasswordlessStore.passwordlessMode !== true)) return [3 /*break*/, 5];
|
|
3033
3427
|
if (!emailInputValid || !passwordInputValid)
|
|
3034
3428
|
return [2 /*return*/];
|
|
3035
3429
|
$$invalidate(3, showLoader = true);
|
|
@@ -3050,14 +3444,37 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
3050
3444
|
$$invalidate(3, showLoader = false);
|
|
3051
3445
|
window.$memberstackDom._showMessage(err_1.message, true);
|
|
3052
3446
|
return [3 /*break*/, 4];
|
|
3053
|
-
case 4: return [
|
|
3447
|
+
case 4: return [3 /*break*/, 9];
|
|
3448
|
+
case 5:
|
|
3449
|
+
if (!emailInputValid)
|
|
3450
|
+
return [2 /*return*/];
|
|
3451
|
+
$$invalidate(3, showLoader = true);
|
|
3452
|
+
_a.label = 6;
|
|
3453
|
+
case 6:
|
|
3454
|
+
_a.trys.push([6, 8, , 9]);
|
|
3455
|
+
return [4 /*yield*/, window.$memberstackDom.sendMemberLoginPasswordlessEmail({ email: emailInput.value })];
|
|
3456
|
+
case 7:
|
|
3457
|
+
_a.sent();
|
|
3458
|
+
// let the passwordlessTokenModal know its accessed from the login modal
|
|
3459
|
+
setPasswordlessModalType("login");
|
|
3460
|
+
setPasswordlessEmail(emailInput.value);
|
|
3461
|
+
// show the PasswordlessTokenModal
|
|
3462
|
+
$$invalidate(0, display = "passwordless_token");
|
|
3463
|
+
$$invalidate(3, showLoader = false);
|
|
3464
|
+
return [3 /*break*/, 9];
|
|
3465
|
+
case 8:
|
|
3466
|
+
err_2 = _a.sent();
|
|
3467
|
+
$$invalidate(3, showLoader = false);
|
|
3468
|
+
window.$memberstackDom._showMessage(err_2.message, true);
|
|
3469
|
+
return [3 /*break*/, 9];
|
|
3470
|
+
case 9: return [2 /*return*/];
|
|
3054
3471
|
}
|
|
3055
3472
|
});
|
|
3056
3473
|
});
|
|
3057
3474
|
}
|
|
3058
3475
|
function submitLoginWithProvider(provider) {
|
|
3059
3476
|
return __awaiter(this, void 0, void 0, function () {
|
|
3060
|
-
var data,
|
|
3477
|
+
var data, err_3;
|
|
3061
3478
|
return __generator(this, function (_a) {
|
|
3062
3479
|
switch (_a.label) {
|
|
3063
3480
|
case 0:
|
|
@@ -3068,9 +3485,9 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
3068
3485
|
onSuccessLogin({ type: "LOGIN", data: data });
|
|
3069
3486
|
return [3 /*break*/, 3];
|
|
3070
3487
|
case 2:
|
|
3071
|
-
|
|
3488
|
+
err_3 = _a.sent();
|
|
3072
3489
|
$$invalidate(3, showLoader = false);
|
|
3073
|
-
window.$memberstackDom._showMessage(
|
|
3490
|
+
window.$memberstackDom._showMessage(err_3.message, true);
|
|
3074
3491
|
return [3 /*break*/, 3];
|
|
3075
3492
|
case 3: return [2 /*return*/];
|
|
3076
3493
|
}
|
|
@@ -3091,14 +3508,16 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
3091
3508
|
}
|
|
3092
3509
|
var click_handler = function () { return $$invalidate(0, display = "signup"); };
|
|
3093
3510
|
var click_handler_1 = function () { return window.location.href = signupButtonURL; };
|
|
3094
|
-
var click_handler_2 = function (
|
|
3511
|
+
var click_handler_2 = function () { return setPasswordlessMode(true); };
|
|
3512
|
+
var click_handler_3 = function () { return setPasswordlessMode(false); };
|
|
3513
|
+
var click_handler_4 = function (provider) { return submitLoginWithProvider(provider.provider); };
|
|
3095
3514
|
$$self.$$set = function ($$props) {
|
|
3096
3515
|
if ('closeModal' in $$props)
|
|
3097
3516
|
$$invalidate(1, closeModal = $$props.closeModal);
|
|
3098
3517
|
if ('display' in $$props)
|
|
3099
3518
|
$$invalidate(0, display = $$props.display);
|
|
3100
3519
|
if ('onSuccessLogin' in $$props)
|
|
3101
|
-
$$invalidate(
|
|
3520
|
+
$$invalidate(12, onSuccessLogin = $$props.onSuccessLogin);
|
|
3102
3521
|
if ('params' in $$props)
|
|
3103
3522
|
$$invalidate(2, params = $$props.params);
|
|
3104
3523
|
};
|
|
@@ -3109,6 +3528,7 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
3109
3528
|
showLoader,
|
|
3110
3529
|
emailInputValid,
|
|
3111
3530
|
passwordInputValid,
|
|
3531
|
+
$PasswordlessStore,
|
|
3112
3532
|
$app,
|
|
3113
3533
|
text,
|
|
3114
3534
|
signupButtonURL,
|
|
@@ -3120,17 +3540,19 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
3120
3540
|
passwordinput_display_binding,
|
|
3121
3541
|
click_handler,
|
|
3122
3542
|
click_handler_1,
|
|
3123
|
-
click_handler_2
|
|
3543
|
+
click_handler_2,
|
|
3544
|
+
click_handler_3,
|
|
3545
|
+
click_handler_4
|
|
3124
3546
|
];
|
|
3125
3547
|
}
|
|
3126
3548
|
var LoginModal = /** @class */ (function (_super) {
|
|
3127
3549
|
__extends(LoginModal, _super);
|
|
3128
3550
|
function LoginModal(options) {
|
|
3129
3551
|
var _this = _super.call(this) || this;
|
|
3130
|
-
init(_this, options, instance$
|
|
3552
|
+
init(_this, options, instance$j, create_fragment$s, safe_not_equal, {
|
|
3131
3553
|
closeModal: 1,
|
|
3132
3554
|
display: 0,
|
|
3133
|
-
onSuccessLogin:
|
|
3555
|
+
onSuccessLogin: 12,
|
|
3134
3556
|
params: 2
|
|
3135
3557
|
});
|
|
3136
3558
|
return _this;
|
|
@@ -3143,17 +3565,17 @@ function add_css$1(target) {
|
|
|
3143
3565
|
}
|
|
3144
3566
|
function get_each_context$5(ctx, list, i) {
|
|
3145
3567
|
var child_ctx = ctx.slice();
|
|
3146
|
-
child_ctx[
|
|
3568
|
+
child_ctx[24] = list[i];
|
|
3147
3569
|
return child_ctx;
|
|
3148
3570
|
}
|
|
3149
3571
|
function get_each_context_1(ctx, list, i) {
|
|
3150
3572
|
var child_ctx = ctx.slice();
|
|
3151
|
-
child_ctx[
|
|
3152
|
-
child_ctx[
|
|
3573
|
+
child_ctx[27] = list[i];
|
|
3574
|
+
child_ctx[29] = i;
|
|
3153
3575
|
return child_ctx;
|
|
3154
3576
|
}
|
|
3155
|
-
// (
|
|
3156
|
-
function
|
|
3577
|
+
// (193:2) {#if !params || !params.hideCloseButton}
|
|
3578
|
+
function create_if_block_6$2(ctx) {
|
|
3157
3579
|
var closebutton;
|
|
3158
3580
|
var current;
|
|
3159
3581
|
closebutton = new CloseButton({
|
|
@@ -3188,12 +3610,12 @@ function create_if_block_2$6(ctx) {
|
|
|
3188
3610
|
}
|
|
3189
3611
|
};
|
|
3190
3612
|
}
|
|
3191
|
-
// (
|
|
3192
|
-
function
|
|
3613
|
+
// (209:8) {#if customField.hidden !== true}
|
|
3614
|
+
function create_if_block_5$2(ctx) {
|
|
3193
3615
|
var div1;
|
|
3194
3616
|
var div0;
|
|
3195
3617
|
var label;
|
|
3196
|
-
var t0_value = /*customField*/ ctx[
|
|
3618
|
+
var t0_value = /*customField*/ ctx[27].label + "";
|
|
3197
3619
|
var t0;
|
|
3198
3620
|
var label_for_value;
|
|
3199
3621
|
var t1;
|
|
@@ -3209,12 +3631,12 @@ function create_if_block_1$9(ctx) {
|
|
|
3209
3631
|
t1 = space();
|
|
3210
3632
|
input = element("input");
|
|
3211
3633
|
attr(label, "class", "ms-form__label");
|
|
3212
|
-
attr(label, "for", label_for_value = /*customField*/ ctx[
|
|
3634
|
+
attr(label, "for", label_for_value = /*customField*/ ctx[27].key);
|
|
3213
3635
|
attr(input, "class", "ms-form__input");
|
|
3214
3636
|
attr(input, "data-ms-custom-field", "");
|
|
3215
3637
|
attr(input, "type", "text");
|
|
3216
|
-
attr(input, "placeholder", input_placeholder_value = /*customField*/ ctx[
|
|
3217
|
-
attr(input, "name", input_name_value = /*customField*/ ctx[
|
|
3638
|
+
attr(input, "placeholder", input_placeholder_value = /*customField*/ ctx[27].label);
|
|
3639
|
+
attr(input, "name", input_name_value = /*customField*/ ctx[27].key);
|
|
3218
3640
|
attr(div0, "class", "ms-form__group");
|
|
3219
3641
|
attr(div1, "class", "ms-modal__custom-field-container");
|
|
3220
3642
|
},
|
|
@@ -3227,15 +3649,15 @@ function create_if_block_1$9(ctx) {
|
|
|
3227
3649
|
append(div0, input);
|
|
3228
3650
|
},
|
|
3229
3651
|
p: function (ctx, dirty) {
|
|
3230
|
-
if (dirty & /*$app*/
|
|
3652
|
+
if (dirty & /*$app*/ 128 && t0_value !== (t0_value = /*customField*/ ctx[27].label + ""))
|
|
3231
3653
|
set_data(t0, t0_value);
|
|
3232
|
-
if (dirty & /*$app*/
|
|
3654
|
+
if (dirty & /*$app*/ 128 && label_for_value !== (label_for_value = /*customField*/ ctx[27].key)) {
|
|
3233
3655
|
attr(label, "for", label_for_value);
|
|
3234
3656
|
}
|
|
3235
|
-
if (dirty & /*$app*/
|
|
3657
|
+
if (dirty & /*$app*/ 128 && input_placeholder_value !== (input_placeholder_value = /*customField*/ ctx[27].label)) {
|
|
3236
3658
|
attr(input, "placeholder", input_placeholder_value);
|
|
3237
3659
|
}
|
|
3238
|
-
if (dirty & /*$app*/
|
|
3660
|
+
if (dirty & /*$app*/ 128 && input_name_value !== (input_name_value = /*customField*/ ctx[27].key)) {
|
|
3239
3661
|
attr(input, "name", input_name_value);
|
|
3240
3662
|
}
|
|
3241
3663
|
},
|
|
@@ -3245,10 +3667,10 @@ function create_if_block_1$9(ctx) {
|
|
|
3245
3667
|
}
|
|
3246
3668
|
};
|
|
3247
3669
|
}
|
|
3248
|
-
// (
|
|
3670
|
+
// (208:6) {#each $app.customFields as customField, i}
|
|
3249
3671
|
function create_each_block_1(ctx) {
|
|
3250
3672
|
var if_block_anchor;
|
|
3251
|
-
var if_block = /*customField*/ ctx[
|
|
3673
|
+
var if_block = /*customField*/ ctx[27].hidden !== true && create_if_block_5$2(ctx);
|
|
3252
3674
|
return {
|
|
3253
3675
|
c: function () {
|
|
3254
3676
|
if (if_block)
|
|
@@ -3261,12 +3683,12 @@ function create_each_block_1(ctx) {
|
|
|
3261
3683
|
insert(target, if_block_anchor, anchor);
|
|
3262
3684
|
},
|
|
3263
3685
|
p: function (ctx, dirty) {
|
|
3264
|
-
if ( /*customField*/ctx[
|
|
3686
|
+
if ( /*customField*/ctx[27].hidden !== true) {
|
|
3265
3687
|
if (if_block) {
|
|
3266
3688
|
if_block.p(ctx, dirty);
|
|
3267
3689
|
}
|
|
3268
3690
|
else {
|
|
3269
|
-
if_block =
|
|
3691
|
+
if_block = create_if_block_5$2(ctx);
|
|
3270
3692
|
if_block.c();
|
|
3271
3693
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
3272
3694
|
}
|
|
@@ -3284,12 +3706,139 @@ function create_each_block_1(ctx) {
|
|
|
3284
3706
|
}
|
|
3285
3707
|
};
|
|
3286
3708
|
}
|
|
3287
|
-
// (
|
|
3288
|
-
function
|
|
3709
|
+
// (237:6) {#if $PasswordlessStore.passwordlessMode === false}
|
|
3710
|
+
function create_if_block_4$3(ctx) {
|
|
3711
|
+
var passwordinput;
|
|
3712
|
+
var updating_passwordInputValid;
|
|
3713
|
+
var current;
|
|
3714
|
+
function passwordinput_passwordInputValid_binding(value) {
|
|
3715
|
+
/*passwordinput_passwordInputValid_binding*/ ctx[13](value);
|
|
3716
|
+
}
|
|
3717
|
+
var passwordinput_props = {};
|
|
3718
|
+
if ( /*passwordInputValid*/ctx[5] !== void 0) {
|
|
3719
|
+
passwordinput_props.passwordInputValid = /*passwordInputValid*/ ctx[5];
|
|
3720
|
+
}
|
|
3721
|
+
passwordinput = new PasswordInput({ props: passwordinput_props });
|
|
3722
|
+
binding_callbacks.push(function () { return bind(passwordinput, 'passwordInputValid', passwordinput_passwordInputValid_binding); });
|
|
3723
|
+
return {
|
|
3724
|
+
c: function () {
|
|
3725
|
+
create_component(passwordinput.$$.fragment);
|
|
3726
|
+
},
|
|
3727
|
+
m: function (target, anchor) {
|
|
3728
|
+
mount_component(passwordinput, target, anchor);
|
|
3729
|
+
current = true;
|
|
3730
|
+
},
|
|
3731
|
+
p: function (ctx, dirty) {
|
|
3732
|
+
var passwordinput_changes = {};
|
|
3733
|
+
if (!updating_passwordInputValid && dirty & /*passwordInputValid*/ 32) {
|
|
3734
|
+
updating_passwordInputValid = true;
|
|
3735
|
+
passwordinput_changes.passwordInputValid = /*passwordInputValid*/ ctx[5];
|
|
3736
|
+
add_flush_callback(function () { return updating_passwordInputValid = false; });
|
|
3737
|
+
}
|
|
3738
|
+
passwordinput.$set(passwordinput_changes);
|
|
3739
|
+
},
|
|
3740
|
+
i: function (local) {
|
|
3741
|
+
if (current)
|
|
3742
|
+
return;
|
|
3743
|
+
transition_in(passwordinput.$$.fragment, local);
|
|
3744
|
+
current = true;
|
|
3745
|
+
},
|
|
3746
|
+
o: function (local) {
|
|
3747
|
+
transition_out(passwordinput.$$.fragment, local);
|
|
3748
|
+
current = false;
|
|
3749
|
+
},
|
|
3750
|
+
d: function (detaching) {
|
|
3751
|
+
destroy_component(passwordinput, detaching);
|
|
3752
|
+
}
|
|
3753
|
+
};
|
|
3754
|
+
}
|
|
3755
|
+
// (243:6) {:else}
|
|
3756
|
+
function create_else_block_1$3(ctx) {
|
|
3757
|
+
var submitbutton;
|
|
3758
|
+
var current;
|
|
3759
|
+
submitbutton = new SubmitButton({
|
|
3760
|
+
props: {
|
|
3761
|
+
buttonText: "Continue with Email",
|
|
3762
|
+
isLoading: /*showLoader*/ ctx[3]
|
|
3763
|
+
}
|
|
3764
|
+
});
|
|
3765
|
+
return {
|
|
3766
|
+
c: function () {
|
|
3767
|
+
create_component(submitbutton.$$.fragment);
|
|
3768
|
+
},
|
|
3769
|
+
m: function (target, anchor) {
|
|
3770
|
+
mount_component(submitbutton, target, anchor);
|
|
3771
|
+
current = true;
|
|
3772
|
+
},
|
|
3773
|
+
p: function (ctx, dirty) {
|
|
3774
|
+
var submitbutton_changes = {};
|
|
3775
|
+
if (dirty & /*showLoader*/ 8)
|
|
3776
|
+
submitbutton_changes.isLoading = /*showLoader*/ ctx[3];
|
|
3777
|
+
submitbutton.$set(submitbutton_changes);
|
|
3778
|
+
},
|
|
3779
|
+
i: function (local) {
|
|
3780
|
+
if (current)
|
|
3781
|
+
return;
|
|
3782
|
+
transition_in(submitbutton.$$.fragment, local);
|
|
3783
|
+
current = true;
|
|
3784
|
+
},
|
|
3785
|
+
o: function (local) {
|
|
3786
|
+
transition_out(submitbutton.$$.fragment, local);
|
|
3787
|
+
current = false;
|
|
3788
|
+
},
|
|
3789
|
+
d: function (detaching) {
|
|
3790
|
+
destroy_component(submitbutton, detaching);
|
|
3791
|
+
}
|
|
3792
|
+
};
|
|
3793
|
+
}
|
|
3794
|
+
// (241:6) {#if $PasswordlessStore.passwordlessMode === false}
|
|
3795
|
+
function create_if_block_3$3(ctx) {
|
|
3796
|
+
var submitbutton;
|
|
3797
|
+
var current;
|
|
3798
|
+
submitbutton = new SubmitButton({
|
|
3799
|
+
props: {
|
|
3800
|
+
buttonText: "Sign up",
|
|
3801
|
+
isLoading: /*showLoader*/ ctx[3]
|
|
3802
|
+
}
|
|
3803
|
+
});
|
|
3804
|
+
return {
|
|
3805
|
+
c: function () {
|
|
3806
|
+
create_component(submitbutton.$$.fragment);
|
|
3807
|
+
},
|
|
3808
|
+
m: function (target, anchor) {
|
|
3809
|
+
mount_component(submitbutton, target, anchor);
|
|
3810
|
+
current = true;
|
|
3811
|
+
},
|
|
3812
|
+
p: function (ctx, dirty) {
|
|
3813
|
+
var submitbutton_changes = {};
|
|
3814
|
+
if (dirty & /*showLoader*/ 8)
|
|
3815
|
+
submitbutton_changes.isLoading = /*showLoader*/ ctx[3];
|
|
3816
|
+
submitbutton.$set(submitbutton_changes);
|
|
3817
|
+
},
|
|
3818
|
+
i: function (local) {
|
|
3819
|
+
if (current)
|
|
3820
|
+
return;
|
|
3821
|
+
transition_in(submitbutton.$$.fragment, local);
|
|
3822
|
+
current = true;
|
|
3823
|
+
},
|
|
3824
|
+
o: function (local) {
|
|
3825
|
+
transition_out(submitbutton.$$.fragment, local);
|
|
3826
|
+
current = false;
|
|
3827
|
+
},
|
|
3828
|
+
d: function (detaching) {
|
|
3829
|
+
destroy_component(submitbutton, detaching);
|
|
3830
|
+
}
|
|
3831
|
+
};
|
|
3832
|
+
}
|
|
3833
|
+
// (259:4) {#if $app.authProviders.length > 0 || $app.additionalAuthMethods.passwordless.enabled === true}
|
|
3834
|
+
function create_if_block$e(ctx) {
|
|
3289
3835
|
var div4;
|
|
3290
3836
|
var div3;
|
|
3291
3837
|
var t3;
|
|
3292
|
-
var
|
|
3838
|
+
var t4;
|
|
3839
|
+
var current;
|
|
3840
|
+
var if_block = /*$app*/ ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$a(ctx);
|
|
3841
|
+
var each_value = /*$app*/ ctx[7].authProviders;
|
|
3293
3842
|
var each_blocks = [];
|
|
3294
3843
|
for (var i = 0; i < each_value.length; i += 1) {
|
|
3295
3844
|
each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
|
|
@@ -3300,6 +3849,9 @@ function create_if_block$d(ctx) {
|
|
|
3300
3849
|
div3 = element("div");
|
|
3301
3850
|
div3.innerHTML = "<div class=\"ms-modal__divider-line\"></div> \n <div class=\"ms-modal__divider-text\">or</div> \n <div class=\"ms-modal__divider-line\"></div>";
|
|
3302
3851
|
t3 = space();
|
|
3852
|
+
if (if_block)
|
|
3853
|
+
if_block.c();
|
|
3854
|
+
t4 = space();
|
|
3303
3855
|
for (var i = 0; i < each_blocks.length; i += 1) {
|
|
3304
3856
|
each_blocks[i].c();
|
|
3305
3857
|
}
|
|
@@ -3310,13 +3862,38 @@ function create_if_block$d(ctx) {
|
|
|
3310
3862
|
insert(target, div4, anchor);
|
|
3311
3863
|
append(div4, div3);
|
|
3312
3864
|
append(div4, t3);
|
|
3865
|
+
if (if_block)
|
|
3866
|
+
if_block.m(div4, null);
|
|
3867
|
+
append(div4, t4);
|
|
3313
3868
|
for (var i = 0; i < each_blocks.length; i += 1) {
|
|
3314
3869
|
each_blocks[i].m(div4, null);
|
|
3315
3870
|
}
|
|
3871
|
+
current = true;
|
|
3316
3872
|
},
|
|
3317
3873
|
p: function (ctx, dirty) {
|
|
3318
|
-
if (
|
|
3319
|
-
|
|
3874
|
+
if ( /*$app*/ctx[7].additionalAuthMethods.passwordless.enabled === true) {
|
|
3875
|
+
if (if_block) {
|
|
3876
|
+
if_block.p(ctx, dirty);
|
|
3877
|
+
if (dirty & /*$app*/ 128) {
|
|
3878
|
+
transition_in(if_block, 1);
|
|
3879
|
+
}
|
|
3880
|
+
}
|
|
3881
|
+
else {
|
|
3882
|
+
if_block = create_if_block_1$a(ctx);
|
|
3883
|
+
if_block.c();
|
|
3884
|
+
transition_in(if_block, 1);
|
|
3885
|
+
if_block.m(div4, t4);
|
|
3886
|
+
}
|
|
3887
|
+
}
|
|
3888
|
+
else if (if_block) {
|
|
3889
|
+
group_outros();
|
|
3890
|
+
transition_out(if_block, 1, 1, function () {
|
|
3891
|
+
if_block = null;
|
|
3892
|
+
});
|
|
3893
|
+
check_outros();
|
|
3894
|
+
}
|
|
3895
|
+
if (dirty & /*submitSignupWithProvider, $app*/ 1152) {
|
|
3896
|
+
each_value = /*$app*/ ctx[7].authProviders;
|
|
3320
3897
|
var i = void 0;
|
|
3321
3898
|
for (i = 0; i < each_value.length; i += 1) {
|
|
3322
3899
|
var child_ctx = get_each_context$5(ctx, each_value, i);
|
|
@@ -3335,82 +3912,247 @@ function create_if_block$d(ctx) {
|
|
|
3335
3912
|
each_blocks.length = each_value.length;
|
|
3336
3913
|
}
|
|
3337
3914
|
},
|
|
3915
|
+
i: function (local) {
|
|
3916
|
+
if (current)
|
|
3917
|
+
return;
|
|
3918
|
+
transition_in(if_block);
|
|
3919
|
+
current = true;
|
|
3920
|
+
},
|
|
3921
|
+
o: function (local) {
|
|
3922
|
+
transition_out(if_block);
|
|
3923
|
+
current = false;
|
|
3924
|
+
},
|
|
3338
3925
|
d: function (detaching) {
|
|
3339
3926
|
if (detaching)
|
|
3340
3927
|
detach(div4);
|
|
3928
|
+
if (if_block)
|
|
3929
|
+
if_block.d();
|
|
3341
3930
|
destroy_each(each_blocks, detaching);
|
|
3342
3931
|
}
|
|
3343
3932
|
};
|
|
3344
3933
|
}
|
|
3345
|
-
// (
|
|
3346
|
-
function
|
|
3934
|
+
// (267:8) {#if $app.additionalAuthMethods.passwordless.enabled === true}
|
|
3935
|
+
function create_if_block_1$a(ctx) {
|
|
3347
3936
|
var div;
|
|
3348
|
-
var
|
|
3349
|
-
var
|
|
3350
|
-
var
|
|
3351
|
-
var
|
|
3352
|
-
var
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
var t3;
|
|
3358
|
-
var mounted;
|
|
3359
|
-
var dispose;
|
|
3360
|
-
function click_handler_1() {
|
|
3361
|
-
return /*click_handler_1*/ ctx[13](/*provider*/ ctx[19]);
|
|
3937
|
+
var current_block_type_index;
|
|
3938
|
+
var if_block;
|
|
3939
|
+
var current;
|
|
3940
|
+
var if_block_creators = [create_if_block_2$7, create_else_block$6];
|
|
3941
|
+
var if_blocks = [];
|
|
3942
|
+
function select_block_type_1(ctx, dirty) {
|
|
3943
|
+
if ( /*$PasswordlessStore*/ctx[6].passwordlessMode === false)
|
|
3944
|
+
return 0;
|
|
3945
|
+
return 1;
|
|
3362
3946
|
}
|
|
3947
|
+
current_block_type_index = select_block_type_1(ctx);
|
|
3948
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
3363
3949
|
return {
|
|
3364
3950
|
c: function () {
|
|
3365
3951
|
div = element("div");
|
|
3366
|
-
|
|
3367
|
-
img = element("img");
|
|
3368
|
-
t0 = space();
|
|
3369
|
-
span = element("span");
|
|
3370
|
-
t1 = text("Continue with ");
|
|
3371
|
-
t2 = text(t2_value);
|
|
3372
|
-
t3 = space();
|
|
3373
|
-
if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[19].icon))
|
|
3374
|
-
attr(img, "src", img_src_value);
|
|
3375
|
-
attr(img, "alt", img_alt_value = /*provider*/ ctx[19].name);
|
|
3376
|
-
attr(button, "class", "ms-modal__social-button");
|
|
3377
|
-
attr(button, "type", "button");
|
|
3952
|
+
if_block.c();
|
|
3378
3953
|
attr(div, "class", "ms-modal__social-buttons");
|
|
3379
3954
|
},
|
|
3380
3955
|
m: function (target, anchor) {
|
|
3381
3956
|
insert(target, div, anchor);
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
append(button, t0);
|
|
3385
|
-
append(button, span);
|
|
3386
|
-
append(span, t1);
|
|
3387
|
-
append(span, t2);
|
|
3388
|
-
append(div, t3);
|
|
3389
|
-
if (!mounted) {
|
|
3390
|
-
dispose = listen(button, "click", click_handler_1);
|
|
3391
|
-
mounted = true;
|
|
3392
|
-
}
|
|
3957
|
+
if_blocks[current_block_type_index].m(div, null);
|
|
3958
|
+
current = true;
|
|
3393
3959
|
},
|
|
3394
|
-
p: function (
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3960
|
+
p: function (ctx, dirty) {
|
|
3961
|
+
var previous_block_index = current_block_type_index;
|
|
3962
|
+
current_block_type_index = select_block_type_1(ctx);
|
|
3963
|
+
if (current_block_type_index === previous_block_index) {
|
|
3964
|
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
|
3398
3965
|
}
|
|
3399
|
-
|
|
3400
|
-
|
|
3966
|
+
else {
|
|
3967
|
+
group_outros();
|
|
3968
|
+
transition_out(if_blocks[previous_block_index], 1, 1, function () {
|
|
3969
|
+
if_blocks[previous_block_index] = null;
|
|
3970
|
+
});
|
|
3971
|
+
check_outros();
|
|
3972
|
+
if_block = if_blocks[current_block_type_index];
|
|
3973
|
+
if (!if_block) {
|
|
3974
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
3975
|
+
if_block.c();
|
|
3976
|
+
}
|
|
3977
|
+
else {
|
|
3978
|
+
if_block.p(ctx, dirty);
|
|
3979
|
+
}
|
|
3980
|
+
transition_in(if_block, 1);
|
|
3981
|
+
if_block.m(div, null);
|
|
3401
3982
|
}
|
|
3402
|
-
if (dirty & /*$app*/ 64 && t2_value !== (t2_value = /*provider*/ ctx[19].name + ""))
|
|
3403
|
-
set_data(t2, t2_value);
|
|
3404
3983
|
},
|
|
3405
|
-
|
|
3984
|
+
i: function (local) {
|
|
3985
|
+
if (current)
|
|
3986
|
+
return;
|
|
3987
|
+
transition_in(if_block);
|
|
3988
|
+
current = true;
|
|
3989
|
+
},
|
|
3990
|
+
o: function (local) {
|
|
3991
|
+
transition_out(if_block);
|
|
3992
|
+
current = false;
|
|
3993
|
+
},
|
|
3994
|
+
d: function (detaching) {
|
|
3406
3995
|
if (detaching)
|
|
3407
3996
|
detach(div);
|
|
3997
|
+
if_blocks[current_block_type_index].d();
|
|
3998
|
+
}
|
|
3999
|
+
};
|
|
4000
|
+
}
|
|
4001
|
+
// (282:12) {:else}
|
|
4002
|
+
function create_else_block$6(ctx) {
|
|
4003
|
+
var button;
|
|
4004
|
+
var span;
|
|
4005
|
+
var mounted;
|
|
4006
|
+
var dispose;
|
|
4007
|
+
return {
|
|
4008
|
+
c: function () {
|
|
4009
|
+
button = element("button");
|
|
4010
|
+
span = element("span");
|
|
4011
|
+
span.textContent = "".concat(/*text*/ ctx[8]["signup_with_password"] || "Signup with Password");
|
|
4012
|
+
attr(button, "class", "ms-modal__social-button");
|
|
4013
|
+
attr(button, "data-cy", "continue-with-password");
|
|
4014
|
+
attr(button, "type", "button");
|
|
4015
|
+
},
|
|
4016
|
+
m: function (target, anchor) {
|
|
4017
|
+
insert(target, button, anchor);
|
|
4018
|
+
append(button, span);
|
|
4019
|
+
if (!mounted) {
|
|
4020
|
+
dispose = listen(button, "click", /*click_handler_2*/ ctx[16]);
|
|
4021
|
+
mounted = true;
|
|
4022
|
+
}
|
|
4023
|
+
},
|
|
4024
|
+
p: noop,
|
|
4025
|
+
i: noop,
|
|
4026
|
+
o: noop,
|
|
4027
|
+
d: function (detaching) {
|
|
4028
|
+
if (detaching)
|
|
4029
|
+
detach(button);
|
|
3408
4030
|
mounted = false;
|
|
3409
4031
|
dispose();
|
|
3410
4032
|
}
|
|
3411
4033
|
};
|
|
3412
4034
|
}
|
|
3413
|
-
|
|
4035
|
+
// (269:12) {#if $PasswordlessStore.passwordlessMode === false}
|
|
4036
|
+
function create_if_block_2$7(ctx) {
|
|
4037
|
+
var button;
|
|
4038
|
+
var emailicon;
|
|
4039
|
+
var t0;
|
|
4040
|
+
var span;
|
|
4041
|
+
var current;
|
|
4042
|
+
var mounted;
|
|
4043
|
+
var dispose;
|
|
4044
|
+
emailicon = new EmailIcon({});
|
|
4045
|
+
return {
|
|
4046
|
+
c: function () {
|
|
4047
|
+
button = element("button");
|
|
4048
|
+
create_component(emailicon.$$.fragment);
|
|
4049
|
+
t0 = space();
|
|
4050
|
+
span = element("span");
|
|
4051
|
+
span.textContent = "".concat(/*text*/ ctx[8]["continue_with_email"] || "Continue with Email");
|
|
4052
|
+
attr(button, "class", "ms-modal__social-button");
|
|
4053
|
+
attr(button, "data-cy", "continue-with-email");
|
|
4054
|
+
attr(button, "type", "button");
|
|
4055
|
+
},
|
|
4056
|
+
m: function (target, anchor) {
|
|
4057
|
+
insert(target, button, anchor);
|
|
4058
|
+
mount_component(emailicon, button, null);
|
|
4059
|
+
append(button, t0);
|
|
4060
|
+
append(button, span);
|
|
4061
|
+
current = true;
|
|
4062
|
+
if (!mounted) {
|
|
4063
|
+
dispose = listen(button, "click", /*click_handler_1*/ ctx[15]);
|
|
4064
|
+
mounted = true;
|
|
4065
|
+
}
|
|
4066
|
+
},
|
|
4067
|
+
p: noop,
|
|
4068
|
+
i: function (local) {
|
|
4069
|
+
if (current)
|
|
4070
|
+
return;
|
|
4071
|
+
transition_in(emailicon.$$.fragment, local);
|
|
4072
|
+
current = true;
|
|
4073
|
+
},
|
|
4074
|
+
o: function (local) {
|
|
4075
|
+
transition_out(emailicon.$$.fragment, local);
|
|
4076
|
+
current = false;
|
|
4077
|
+
},
|
|
4078
|
+
d: function (detaching) {
|
|
4079
|
+
if (detaching)
|
|
4080
|
+
detach(button);
|
|
4081
|
+
destroy_component(emailicon);
|
|
4082
|
+
mounted = false;
|
|
4083
|
+
dispose();
|
|
4084
|
+
}
|
|
4085
|
+
};
|
|
4086
|
+
}
|
|
4087
|
+
// (298:8) {#each $app.authProviders as provider}
|
|
4088
|
+
function create_each_block$5(ctx) {
|
|
4089
|
+
var div;
|
|
4090
|
+
var button;
|
|
4091
|
+
var img;
|
|
4092
|
+
var img_src_value;
|
|
4093
|
+
var img_alt_value;
|
|
4094
|
+
var t0;
|
|
4095
|
+
var span;
|
|
4096
|
+
var t1;
|
|
4097
|
+
var t2_value = /*provider*/ ctx[24].name + "";
|
|
4098
|
+
var t2;
|
|
4099
|
+
var t3;
|
|
4100
|
+
var mounted;
|
|
4101
|
+
var dispose;
|
|
4102
|
+
function click_handler_3() {
|
|
4103
|
+
return /*click_handler_3*/ ctx[17](/*provider*/ ctx[24]);
|
|
4104
|
+
}
|
|
4105
|
+
return {
|
|
4106
|
+
c: function () {
|
|
4107
|
+
div = element("div");
|
|
4108
|
+
button = element("button");
|
|
4109
|
+
img = element("img");
|
|
4110
|
+
t0 = space();
|
|
4111
|
+
span = element("span");
|
|
4112
|
+
t1 = text("Continue with ");
|
|
4113
|
+
t2 = text(t2_value);
|
|
4114
|
+
t3 = space();
|
|
4115
|
+
if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[24].icon))
|
|
4116
|
+
attr(img, "src", img_src_value);
|
|
4117
|
+
attr(img, "alt", img_alt_value = /*provider*/ ctx[24].name);
|
|
4118
|
+
attr(button, "class", "ms-modal__social-button");
|
|
4119
|
+
attr(button, "type", "button");
|
|
4120
|
+
attr(div, "class", "ms-modal__social-buttons");
|
|
4121
|
+
},
|
|
4122
|
+
m: function (target, anchor) {
|
|
4123
|
+
insert(target, div, anchor);
|
|
4124
|
+
append(div, button);
|
|
4125
|
+
append(button, img);
|
|
4126
|
+
append(button, t0);
|
|
4127
|
+
append(button, span);
|
|
4128
|
+
append(span, t1);
|
|
4129
|
+
append(span, t2);
|
|
4130
|
+
append(div, t3);
|
|
4131
|
+
if (!mounted) {
|
|
4132
|
+
dispose = listen(button, "click", click_handler_3);
|
|
4133
|
+
mounted = true;
|
|
4134
|
+
}
|
|
4135
|
+
},
|
|
4136
|
+
p: function (new_ctx, dirty) {
|
|
4137
|
+
ctx = new_ctx;
|
|
4138
|
+
if (dirty & /*$app*/ 128 && !src_url_equal(img.src, img_src_value = /*provider*/ ctx[24].icon)) {
|
|
4139
|
+
attr(img, "src", img_src_value);
|
|
4140
|
+
}
|
|
4141
|
+
if (dirty & /*$app*/ 128 && img_alt_value !== (img_alt_value = /*provider*/ ctx[24].name)) {
|
|
4142
|
+
attr(img, "alt", img_alt_value);
|
|
4143
|
+
}
|
|
4144
|
+
if (dirty & /*$app*/ 128 && t2_value !== (t2_value = /*provider*/ ctx[24].name + ""))
|
|
4145
|
+
set_data(t2, t2_value);
|
|
4146
|
+
},
|
|
4147
|
+
d: function (detaching) {
|
|
4148
|
+
if (detaching)
|
|
4149
|
+
detach(div);
|
|
4150
|
+
mounted = false;
|
|
4151
|
+
dispose();
|
|
4152
|
+
}
|
|
4153
|
+
};
|
|
4154
|
+
}
|
|
4155
|
+
function create_fragment$r(ctx) {
|
|
3414
4156
|
var div4;
|
|
3415
4157
|
var t0;
|
|
3416
4158
|
var div3;
|
|
@@ -3425,12 +4167,11 @@ function create_fragment$q(ctx) {
|
|
|
3425
4167
|
var t5;
|
|
3426
4168
|
var div0;
|
|
3427
4169
|
var t8;
|
|
3428
|
-
var passwordinput;
|
|
3429
|
-
var updating_passwordInputValid;
|
|
3430
4170
|
var t9;
|
|
3431
4171
|
var div1;
|
|
3432
4172
|
var t10;
|
|
3433
|
-
var
|
|
4173
|
+
var current_block_type_index;
|
|
4174
|
+
var if_block2;
|
|
3434
4175
|
var t11;
|
|
3435
4176
|
var div2;
|
|
3436
4177
|
var button;
|
|
@@ -3440,15 +4181,15 @@ function create_fragment$q(ctx) {
|
|
|
3440
4181
|
var current;
|
|
3441
4182
|
var mounted;
|
|
3442
4183
|
var dispose;
|
|
3443
|
-
var if_block0 = (!ctx[2] || !ctx[2].hideCloseButton) &&
|
|
4184
|
+
var if_block0 = (!ctx[2] || !ctx[2].hideCloseButton) && create_if_block_6$2(ctx);
|
|
3444
4185
|
figureelement = new FigureElement({});
|
|
3445
|
-
var each_value_1 = /*$app*/ ctx[
|
|
4186
|
+
var each_value_1 = /*$app*/ ctx[7].customFields;
|
|
3446
4187
|
var each_blocks = [];
|
|
3447
4188
|
for (var i = 0; i < each_value_1.length; i += 1) {
|
|
3448
4189
|
each_blocks[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
|
|
3449
4190
|
}
|
|
3450
4191
|
function emailinput_emailInputValid_binding(value) {
|
|
3451
|
-
/*emailinput_emailInputValid_binding*/ ctx[
|
|
4192
|
+
/*emailinput_emailInputValid_binding*/ ctx[12](value);
|
|
3452
4193
|
}
|
|
3453
4194
|
var emailinput_props = {};
|
|
3454
4195
|
if ( /*emailInputValid*/ctx[4] !== void 0) {
|
|
@@ -3456,22 +4197,17 @@ function create_fragment$q(ctx) {
|
|
|
3456
4197
|
}
|
|
3457
4198
|
emailinput = new EmailInput({ props: emailinput_props });
|
|
3458
4199
|
binding_callbacks.push(function () { return bind(emailinput, 'emailInputValid', emailinput_emailInputValid_binding); });
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
4200
|
+
var if_block1 = /*$PasswordlessStore*/ ctx[6].passwordlessMode === false && create_if_block_4$3(ctx);
|
|
4201
|
+
var if_block_creators = [create_if_block_3$3, create_else_block_1$3];
|
|
4202
|
+
var if_blocks = [];
|
|
4203
|
+
function select_block_type(ctx, dirty) {
|
|
4204
|
+
if ( /*$PasswordlessStore*/ctx[6].passwordlessMode === false)
|
|
4205
|
+
return 0;
|
|
4206
|
+
return 1;
|
|
3465
4207
|
}
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
props: {
|
|
3470
|
-
buttonText: "Sign up",
|
|
3471
|
-
isLoading: /*showLoader*/ ctx[3]
|
|
3472
|
-
}
|
|
3473
|
-
});
|
|
3474
|
-
var if_block1 = /*$app*/ ctx[6].authProviders.length > 0 && create_if_block$d(ctx);
|
|
4208
|
+
current_block_type_index = select_block_type(ctx);
|
|
4209
|
+
if_block2 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
4210
|
+
var if_block3 = ( /*$app*/ctx[7].authProviders.length > 0 || /*$app*/ ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$e(ctx);
|
|
3475
4211
|
modalfooter = new ModalFooter({});
|
|
3476
4212
|
return {
|
|
3477
4213
|
c: function () {
|
|
@@ -3495,18 +4231,19 @@ function create_fragment$q(ctx) {
|
|
|
3495
4231
|
div0 = element("div");
|
|
3496
4232
|
div0.innerHTML = "<label class=\"ms-form__label\" for=\"Rey\">Rey was here</label> \n <input class=\"ms-form__input\" type=\"text\" placeholder=\"Rey's Favorite Color\" name=\"Rey\"/>";
|
|
3497
4233
|
t8 = space();
|
|
3498
|
-
|
|
4234
|
+
if (if_block1)
|
|
4235
|
+
if_block1.c();
|
|
3499
4236
|
t9 = space();
|
|
3500
4237
|
div1 = element("div");
|
|
3501
4238
|
t10 = space();
|
|
3502
|
-
|
|
4239
|
+
if_block2.c();
|
|
3503
4240
|
t11 = space();
|
|
3504
4241
|
div2 = element("div");
|
|
3505
4242
|
button = element("button");
|
|
3506
4243
|
button.textContent = "Already have an account?";
|
|
3507
4244
|
t13 = space();
|
|
3508
|
-
if (
|
|
3509
|
-
|
|
4245
|
+
if (if_block3)
|
|
4246
|
+
if_block3.c();
|
|
3510
4247
|
t14 = space();
|
|
3511
4248
|
create_component(modalfooter.$$.fragment);
|
|
3512
4249
|
attr(h2, "class", "ms-modal__title");
|
|
@@ -3542,24 +4279,25 @@ function create_fragment$q(ctx) {
|
|
|
3542
4279
|
append(form, t5);
|
|
3543
4280
|
append(form, div0);
|
|
3544
4281
|
append(form, t8);
|
|
3545
|
-
|
|
4282
|
+
if (if_block1)
|
|
4283
|
+
if_block1.m(form, null);
|
|
3546
4284
|
append(form, t9);
|
|
3547
4285
|
append(form, div1);
|
|
3548
4286
|
append(form, t10);
|
|
3549
|
-
|
|
4287
|
+
if_blocks[current_block_type_index].m(form, null);
|
|
3550
4288
|
append(form, t11);
|
|
3551
4289
|
append(form, div2);
|
|
3552
4290
|
append(div2, button);
|
|
3553
4291
|
append(div3, t13);
|
|
3554
|
-
if (
|
|
3555
|
-
|
|
4292
|
+
if (if_block3)
|
|
4293
|
+
if_block3.m(div3, null);
|
|
3556
4294
|
append(div4, t14);
|
|
3557
4295
|
mount_component(modalfooter, div4, null);
|
|
3558
4296
|
current = true;
|
|
3559
4297
|
if (!mounted) {
|
|
3560
4298
|
dispose = [
|
|
3561
|
-
listen(button, "click", /*click_handler*/ ctx[
|
|
3562
|
-
listen(form, "submit", stop_propagation(prevent_default(/*submitSignup*/ ctx[
|
|
4299
|
+
listen(button, "click", /*click_handler*/ ctx[14]),
|
|
4300
|
+
listen(form, "submit", stop_propagation(prevent_default(/*submitSignup*/ ctx[9])))
|
|
3563
4301
|
];
|
|
3564
4302
|
mounted = true;
|
|
3565
4303
|
}
|
|
@@ -3574,7 +4312,7 @@ function create_fragment$q(ctx) {
|
|
|
3574
4312
|
}
|
|
3575
4313
|
}
|
|
3576
4314
|
else {
|
|
3577
|
-
if_block0 =
|
|
4315
|
+
if_block0 = create_if_block_6$2(ctx);
|
|
3578
4316
|
if_block0.c();
|
|
3579
4317
|
transition_in(if_block0, 1);
|
|
3580
4318
|
if_block0.m(div4, t0);
|
|
@@ -3587,8 +4325,8 @@ function create_fragment$q(ctx) {
|
|
|
3587
4325
|
});
|
|
3588
4326
|
check_outros();
|
|
3589
4327
|
}
|
|
3590
|
-
if (dirty & /*$app*/
|
|
3591
|
-
each_value_1 = /*$app*/ ctx[
|
|
4328
|
+
if (dirty & /*$app*/ 128) {
|
|
4329
|
+
each_value_1 = /*$app*/ ctx[7].customFields;
|
|
3592
4330
|
var i = void 0;
|
|
3593
4331
|
for (i = 0; i < each_value_1.length; i += 1) {
|
|
3594
4332
|
var child_ctx = get_each_context_1(ctx, each_value_1, i);
|
|
@@ -3613,30 +4351,69 @@ function create_fragment$q(ctx) {
|
|
|
3613
4351
|
add_flush_callback(function () { return updating_emailInputValid = false; });
|
|
3614
4352
|
}
|
|
3615
4353
|
emailinput.$set(emailinput_changes);
|
|
3616
|
-
|
|
3617
|
-
if (!updating_passwordInputValid && dirty & /*passwordInputValid*/ 32) {
|
|
3618
|
-
updating_passwordInputValid = true;
|
|
3619
|
-
passwordinput_changes.passwordInputValid = /*passwordInputValid*/ ctx[5];
|
|
3620
|
-
add_flush_callback(function () { return updating_passwordInputValid = false; });
|
|
3621
|
-
}
|
|
3622
|
-
passwordinput.$set(passwordinput_changes);
|
|
3623
|
-
var submitbutton_changes = {};
|
|
3624
|
-
if (dirty & /*showLoader*/ 8)
|
|
3625
|
-
submitbutton_changes.isLoading = /*showLoader*/ ctx[3];
|
|
3626
|
-
submitbutton.$set(submitbutton_changes);
|
|
3627
|
-
if ( /*$app*/ctx[6].authProviders.length > 0) {
|
|
4354
|
+
if ( /*$PasswordlessStore*/ctx[6].passwordlessMode === false) {
|
|
3628
4355
|
if (if_block1) {
|
|
3629
4356
|
if_block1.p(ctx, dirty);
|
|
4357
|
+
if (dirty & /*$PasswordlessStore*/ 64) {
|
|
4358
|
+
transition_in(if_block1, 1);
|
|
4359
|
+
}
|
|
3630
4360
|
}
|
|
3631
4361
|
else {
|
|
3632
|
-
if_block1 =
|
|
4362
|
+
if_block1 = create_if_block_4$3(ctx);
|
|
3633
4363
|
if_block1.c();
|
|
3634
|
-
if_block1
|
|
4364
|
+
transition_in(if_block1, 1);
|
|
4365
|
+
if_block1.m(form, t9);
|
|
3635
4366
|
}
|
|
3636
4367
|
}
|
|
3637
4368
|
else if (if_block1) {
|
|
3638
|
-
|
|
3639
|
-
if_block1
|
|
4369
|
+
group_outros();
|
|
4370
|
+
transition_out(if_block1, 1, 1, function () {
|
|
4371
|
+
if_block1 = null;
|
|
4372
|
+
});
|
|
4373
|
+
check_outros();
|
|
4374
|
+
}
|
|
4375
|
+
var previous_block_index = current_block_type_index;
|
|
4376
|
+
current_block_type_index = select_block_type(ctx);
|
|
4377
|
+
if (current_block_type_index === previous_block_index) {
|
|
4378
|
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
|
4379
|
+
}
|
|
4380
|
+
else {
|
|
4381
|
+
group_outros();
|
|
4382
|
+
transition_out(if_blocks[previous_block_index], 1, 1, function () {
|
|
4383
|
+
if_blocks[previous_block_index] = null;
|
|
4384
|
+
});
|
|
4385
|
+
check_outros();
|
|
4386
|
+
if_block2 = if_blocks[current_block_type_index];
|
|
4387
|
+
if (!if_block2) {
|
|
4388
|
+
if_block2 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
4389
|
+
if_block2.c();
|
|
4390
|
+
}
|
|
4391
|
+
else {
|
|
4392
|
+
if_block2.p(ctx, dirty);
|
|
4393
|
+
}
|
|
4394
|
+
transition_in(if_block2, 1);
|
|
4395
|
+
if_block2.m(form, t11);
|
|
4396
|
+
}
|
|
4397
|
+
if ( /*$app*/ctx[7].authProviders.length > 0 || /*$app*/ ctx[7].additionalAuthMethods.passwordless.enabled === true) {
|
|
4398
|
+
if (if_block3) {
|
|
4399
|
+
if_block3.p(ctx, dirty);
|
|
4400
|
+
if (dirty & /*$app*/ 128) {
|
|
4401
|
+
transition_in(if_block3, 1);
|
|
4402
|
+
}
|
|
4403
|
+
}
|
|
4404
|
+
else {
|
|
4405
|
+
if_block3 = create_if_block$e(ctx);
|
|
4406
|
+
if_block3.c();
|
|
4407
|
+
transition_in(if_block3, 1);
|
|
4408
|
+
if_block3.m(div3, null);
|
|
4409
|
+
}
|
|
4410
|
+
}
|
|
4411
|
+
else if (if_block3) {
|
|
4412
|
+
group_outros();
|
|
4413
|
+
transition_out(if_block3, 1, 1, function () {
|
|
4414
|
+
if_block3 = null;
|
|
4415
|
+
});
|
|
4416
|
+
check_outros();
|
|
3640
4417
|
}
|
|
3641
4418
|
},
|
|
3642
4419
|
i: function (local) {
|
|
@@ -3645,8 +4422,9 @@ function create_fragment$q(ctx) {
|
|
|
3645
4422
|
transition_in(if_block0);
|
|
3646
4423
|
transition_in(figureelement.$$.fragment, local);
|
|
3647
4424
|
transition_in(emailinput.$$.fragment, local);
|
|
3648
|
-
transition_in(
|
|
3649
|
-
transition_in(
|
|
4425
|
+
transition_in(if_block1);
|
|
4426
|
+
transition_in(if_block2);
|
|
4427
|
+
transition_in(if_block3);
|
|
3650
4428
|
transition_in(modalfooter.$$.fragment, local);
|
|
3651
4429
|
current = true;
|
|
3652
4430
|
},
|
|
@@ -3654,8 +4432,9 @@ function create_fragment$q(ctx) {
|
|
|
3654
4432
|
transition_out(if_block0);
|
|
3655
4433
|
transition_out(figureelement.$$.fragment, local);
|
|
3656
4434
|
transition_out(emailinput.$$.fragment, local);
|
|
3657
|
-
transition_out(
|
|
3658
|
-
transition_out(
|
|
4435
|
+
transition_out(if_block1);
|
|
4436
|
+
transition_out(if_block2);
|
|
4437
|
+
transition_out(if_block3);
|
|
3659
4438
|
transition_out(modalfooter.$$.fragment, local);
|
|
3660
4439
|
current = false;
|
|
3661
4440
|
},
|
|
@@ -3667,10 +4446,11 @@ function create_fragment$q(ctx) {
|
|
|
3667
4446
|
destroy_component(figureelement);
|
|
3668
4447
|
destroy_each(each_blocks, detaching);
|
|
3669
4448
|
destroy_component(emailinput);
|
|
3670
|
-
destroy_component(passwordinput);
|
|
3671
|
-
destroy_component(submitbutton);
|
|
3672
4449
|
if (if_block1)
|
|
3673
4450
|
if_block1.d();
|
|
4451
|
+
if_blocks[current_block_type_index].d();
|
|
4452
|
+
if (if_block3)
|
|
4453
|
+
if_block3.d();
|
|
3674
4454
|
destroy_component(modalfooter);
|
|
3675
4455
|
mounted = false;
|
|
3676
4456
|
run_all(dispose);
|
|
@@ -3691,13 +4471,21 @@ function executeCaptcha() {
|
|
|
3691
4471
|
});
|
|
3692
4472
|
});
|
|
3693
4473
|
}
|
|
3694
|
-
function instance$
|
|
4474
|
+
function instance$i($$self, $$props, $$invalidate) {
|
|
4475
|
+
var $PasswordlessStore;
|
|
3695
4476
|
var $app;
|
|
3696
|
-
|
|
4477
|
+
var $textStore;
|
|
4478
|
+
component_subscribe($$self, PasswordlessStore, function ($$value) { return $$invalidate(6, $PasswordlessStore = $$value); });
|
|
4479
|
+
component_subscribe($$self, AppStore, function ($$value) { return $$invalidate(7, $app = $$value); });
|
|
4480
|
+
component_subscribe($$self, TextStore, function ($$value) { return $$invalidate(19, $textStore = $$value); });
|
|
3697
4481
|
var closeModal = $$props.closeModal;
|
|
3698
4482
|
var display = $$props.display;
|
|
3699
4483
|
var onSuccessSignup = $$props.onSuccessSignup;
|
|
3700
4484
|
var params = $$props.params;
|
|
4485
|
+
if ($app.additionalAuthMethods.passwordless.isDefault === true) {
|
|
4486
|
+
setPasswordlessMode(true);
|
|
4487
|
+
}
|
|
4488
|
+
var text = $textStore.text;
|
|
3701
4489
|
var showLoader = false;
|
|
3702
4490
|
var emailInputValid = false;
|
|
3703
4491
|
var passwordInputValid = false;
|
|
@@ -3712,7 +4500,7 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
3712
4500
|
return [4 /*yield*/, window.$memberstackDom._captchaReady];
|
|
3713
4501
|
case 1:
|
|
3714
4502
|
_a.sent();
|
|
3715
|
-
hcaptchaWidgetID = window.hcaptcha.render(
|
|
4503
|
+
hcaptchaWidgetID = window.hcaptcha.render("hcaptcha", { sitekey: hcaptchaSitekey, theme: "light" });
|
|
3716
4504
|
_a.label = 2;
|
|
3717
4505
|
case 2: return [2 /*return*/];
|
|
3718
4506
|
}
|
|
@@ -3729,11 +4517,11 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
3729
4517
|
}
|
|
3730
4518
|
}
|
|
3731
4519
|
function submitSignup(e) {
|
|
3732
|
-
var _a;
|
|
4520
|
+
var _a, _b;
|
|
3733
4521
|
return __awaiter(this, void 0, void 0, function () {
|
|
3734
|
-
var emailInput, passwordInput, customFields, customFieldInputs, captchaToken,
|
|
3735
|
-
return __generator(this, function (
|
|
3736
|
-
switch (
|
|
4522
|
+
var emailInput, passwordInput, customFields, customFieldInputs, captchaToken, err_4, plans, data, err_5, err_6;
|
|
4523
|
+
return __generator(this, function (_c) {
|
|
4524
|
+
switch (_c.label) {
|
|
3737
4525
|
case 0:
|
|
3738
4526
|
emailInput = e.target.querySelector("[type=email]");
|
|
3739
4527
|
passwordInput = e.target.querySelector("[data-ms-internal-password]");
|
|
@@ -3742,8 +4530,14 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
3742
4530
|
customFieldInputs.map(function (input) {
|
|
3743
4531
|
customFields[input.getAttribute("name")] = input.value;
|
|
3744
4532
|
}).length;
|
|
3745
|
-
if (
|
|
3746
|
-
|
|
4533
|
+
if ($PasswordlessStore.passwordlessMode !== true) {
|
|
4534
|
+
if (!emailInputValid || !passwordInputValid)
|
|
4535
|
+
return [2 /*return*/];
|
|
4536
|
+
}
|
|
4537
|
+
else {
|
|
4538
|
+
if (!emailInputValid)
|
|
4539
|
+
return [2 /*return*/];
|
|
4540
|
+
}
|
|
3747
4541
|
$$invalidate(3, showLoader = true);
|
|
3748
4542
|
// honey pot to prevent spam
|
|
3749
4543
|
if (e.target.querySelector("[name=Rey]").value) {
|
|
@@ -3754,22 +4548,25 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
3754
4548
|
if (!captchaRequired) return [3 /*break*/, 5];
|
|
3755
4549
|
return [4 /*yield*/, window.$memberstackDom._captchaReady];
|
|
3756
4550
|
case 1:
|
|
3757
|
-
|
|
4551
|
+
_c.sent();
|
|
3758
4552
|
captchaToken = getCaptcha();
|
|
3759
4553
|
if (!!captchaToken) return [3 /*break*/, 5];
|
|
3760
|
-
|
|
4554
|
+
_c.label = 2;
|
|
3761
4555
|
case 2:
|
|
3762
|
-
|
|
4556
|
+
_c.trys.push([2, 4, , 5]);
|
|
3763
4557
|
return [4 /*yield*/, executeCaptcha()];
|
|
3764
4558
|
case 3:
|
|
3765
|
-
captchaToken =
|
|
4559
|
+
captchaToken = _c.sent();
|
|
3766
4560
|
return [3 /*break*/, 5];
|
|
3767
4561
|
case 4:
|
|
3768
|
-
|
|
4562
|
+
err_4 = _c.sent();
|
|
3769
4563
|
$$invalidate(3, showLoader = false);
|
|
3770
4564
|
return [2 /*return*/];
|
|
3771
4565
|
case 5:
|
|
3772
|
-
|
|
4566
|
+
if (!($PasswordlessStore.passwordlessMode !== true)) return [3 /*break*/, 10];
|
|
4567
|
+
_c.label = 6;
|
|
4568
|
+
case 6:
|
|
4569
|
+
_c.trys.push([6, 8, , 9]);
|
|
3773
4570
|
plans = (((_a = params === null || params === void 0 ? void 0 : params.signup) === null || _a === void 0 ? void 0 : _a.plans) || []).map(function (plan) {
|
|
3774
4571
|
return { planId: plan };
|
|
3775
4572
|
});
|
|
@@ -3780,25 +4577,46 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
3780
4577
|
customFields: customFields,
|
|
3781
4578
|
captchaToken: captchaToken
|
|
3782
4579
|
}, { includeContentGroups: true })];
|
|
3783
|
-
case
|
|
3784
|
-
data = (
|
|
4580
|
+
case 7:
|
|
4581
|
+
data = (_c.sent()).data;
|
|
3785
4582
|
onSuccessSignup({ type: "SIGNUP", data: data });
|
|
3786
4583
|
$$invalidate(3, showLoader = false);
|
|
3787
|
-
return [3 /*break*/,
|
|
3788
|
-
case
|
|
3789
|
-
|
|
4584
|
+
return [3 /*break*/, 9];
|
|
4585
|
+
case 8:
|
|
4586
|
+
err_5 = _c.sent();
|
|
4587
|
+
$$invalidate(3, showLoader = false);
|
|
4588
|
+
window.$memberstackDom._showMessage(err_5.message, true);
|
|
4589
|
+
resetCaptcha();
|
|
4590
|
+
return [3 /*break*/, 9];
|
|
4591
|
+
case 9: return [3 /*break*/, 13];
|
|
4592
|
+
case 10:
|
|
4593
|
+
_c.trys.push([10, 12, , 13]);
|
|
4594
|
+
return [4 /*yield*/, window.$memberstackDom.sendMemberSignupPasswordlessEmail({ email: emailInput.value })];
|
|
4595
|
+
case 11:
|
|
4596
|
+
_c.sent();
|
|
4597
|
+
// let the passwordlessTokenModal know its accessed from the signup modal
|
|
4598
|
+
setPasswordlessModalType("signup");
|
|
4599
|
+
setPasswordlessEmail(emailInput.value);
|
|
4600
|
+
setPasswordlessPlans(((_b = params === null || params === void 0 ? void 0 : params.signup) === null || _b === void 0 ? void 0 : _b.plans) || []);
|
|
4601
|
+
setPasswordlessCustomFields(customFields);
|
|
4602
|
+
// show the PasswordlessTokenModal
|
|
4603
|
+
$$invalidate(0, display = "passwordless_token");
|
|
4604
|
+
$$invalidate(3, showLoader = false);
|
|
4605
|
+
return [3 /*break*/, 13];
|
|
4606
|
+
case 12:
|
|
4607
|
+
err_6 = _c.sent();
|
|
3790
4608
|
$$invalidate(3, showLoader = false);
|
|
3791
|
-
window.$memberstackDom._showMessage(
|
|
4609
|
+
window.$memberstackDom._showMessage(err_6.message, true);
|
|
3792
4610
|
resetCaptcha();
|
|
3793
|
-
return [3 /*break*/,
|
|
3794
|
-
case
|
|
4611
|
+
return [3 /*break*/, 13];
|
|
4612
|
+
case 13: return [2 /*return*/];
|
|
3795
4613
|
}
|
|
3796
4614
|
});
|
|
3797
4615
|
});
|
|
3798
4616
|
}
|
|
3799
4617
|
function submitSignupWithProvider(provider) {
|
|
3800
4618
|
return __awaiter(this, void 0, void 0, function () {
|
|
3801
|
-
var data,
|
|
4619
|
+
var data, err_7;
|
|
3802
4620
|
return __generator(this, function (_a) {
|
|
3803
4621
|
switch (_a.label) {
|
|
3804
4622
|
case 0:
|
|
@@ -3809,9 +4627,9 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
3809
4627
|
onSuccessSignup({ type: "SIGNUP", data: data });
|
|
3810
4628
|
return [3 /*break*/, 3];
|
|
3811
4629
|
case 2:
|
|
3812
|
-
|
|
4630
|
+
err_7 = _a.sent();
|
|
3813
4631
|
$$invalidate(3, showLoader = false);
|
|
3814
|
-
window.$memberstackDom._showMessage(
|
|
4632
|
+
window.$memberstackDom._showMessage(err_7.message, true);
|
|
3815
4633
|
return [3 /*break*/, 3];
|
|
3816
4634
|
case 3: return [2 /*return*/];
|
|
3817
4635
|
}
|
|
@@ -3827,14 +4645,16 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
3827
4645
|
$$invalidate(5, passwordInputValid);
|
|
3828
4646
|
}
|
|
3829
4647
|
var click_handler = function () { return $$invalidate(0, display = "login"); };
|
|
3830
|
-
var click_handler_1 = function (
|
|
4648
|
+
var click_handler_1 = function () { return setPasswordlessMode(true); };
|
|
4649
|
+
var click_handler_2 = function () { return setPasswordlessMode(false); };
|
|
4650
|
+
var click_handler_3 = function (provider) { return submitSignupWithProvider(provider.provider); };
|
|
3831
4651
|
$$self.$$set = function ($$props) {
|
|
3832
4652
|
if ('closeModal' in $$props)
|
|
3833
4653
|
$$invalidate(1, closeModal = $$props.closeModal);
|
|
3834
4654
|
if ('display' in $$props)
|
|
3835
4655
|
$$invalidate(0, display = $$props.display);
|
|
3836
4656
|
if ('onSuccessSignup' in $$props)
|
|
3837
|
-
$$invalidate(
|
|
4657
|
+
$$invalidate(11, onSuccessSignup = $$props.onSuccessSignup);
|
|
3838
4658
|
if ('params' in $$props)
|
|
3839
4659
|
$$invalidate(2, params = $$props.params);
|
|
3840
4660
|
};
|
|
@@ -3845,24 +4665,28 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
3845
4665
|
showLoader,
|
|
3846
4666
|
emailInputValid,
|
|
3847
4667
|
passwordInputValid,
|
|
4668
|
+
$PasswordlessStore,
|
|
3848
4669
|
$app,
|
|
4670
|
+
text,
|
|
3849
4671
|
submitSignup,
|
|
3850
4672
|
submitSignupWithProvider,
|
|
3851
4673
|
onSuccessSignup,
|
|
3852
4674
|
emailinput_emailInputValid_binding,
|
|
3853
4675
|
passwordinput_passwordInputValid_binding,
|
|
3854
4676
|
click_handler,
|
|
3855
|
-
click_handler_1
|
|
4677
|
+
click_handler_1,
|
|
4678
|
+
click_handler_2,
|
|
4679
|
+
click_handler_3
|
|
3856
4680
|
];
|
|
3857
4681
|
}
|
|
3858
4682
|
var SignupModal = /** @class */ (function (_super) {
|
|
3859
4683
|
__extends(SignupModal, _super);
|
|
3860
4684
|
function SignupModal(options) {
|
|
3861
4685
|
var _this = _super.call(this) || this;
|
|
3862
|
-
init(_this, options, instance$
|
|
4686
|
+
init(_this, options, instance$i, create_fragment$r, safe_not_equal, {
|
|
3863
4687
|
closeModal: 1,
|
|
3864
4688
|
display: 0,
|
|
3865
|
-
onSuccessSignup:
|
|
4689
|
+
onSuccessSignup: 11,
|
|
3866
4690
|
params: 2
|
|
3867
4691
|
}, add_css$1);
|
|
3868
4692
|
return _this;
|
|
@@ -3870,7 +4694,7 @@ var SignupModal = /** @class */ (function (_super) {
|
|
|
3870
4694
|
return SignupModal;
|
|
3871
4695
|
}(SvelteComponent));
|
|
3872
4696
|
/* src/icons/BackIcon.svelte generated by Svelte v3.48.0 */
|
|
3873
|
-
function create_fragment$
|
|
4697
|
+
function create_fragment$q(ctx) {
|
|
3874
4698
|
var svg;
|
|
3875
4699
|
var path;
|
|
3876
4700
|
return {
|
|
@@ -3900,13 +4724,13 @@ var BackIcon = /** @class */ (function (_super) {
|
|
|
3900
4724
|
__extends(BackIcon, _super);
|
|
3901
4725
|
function BackIcon(options) {
|
|
3902
4726
|
var _this = _super.call(this) || this;
|
|
3903
|
-
init(_this, options, null, create_fragment$
|
|
4727
|
+
init(_this, options, null, create_fragment$q, safe_not_equal, {});
|
|
3904
4728
|
return _this;
|
|
3905
4729
|
}
|
|
3906
4730
|
return BackIcon;
|
|
3907
4731
|
}(SvelteComponent));
|
|
3908
4732
|
/* src/modals/PassResetModal.svelte generated by Svelte v3.48.0 */
|
|
3909
|
-
function create_fragment$
|
|
4733
|
+
function create_fragment$p(ctx) {
|
|
3910
4734
|
var div4;
|
|
3911
4735
|
var div0;
|
|
3912
4736
|
var button;
|
|
@@ -4069,7 +4893,7 @@ function create_fragment$o(ctx) {
|
|
|
4069
4893
|
}
|
|
4070
4894
|
};
|
|
4071
4895
|
}
|
|
4072
|
-
function instance$
|
|
4896
|
+
function instance$h($$self, $$props, $$invalidate) {
|
|
4073
4897
|
var $textStore;
|
|
4074
4898
|
component_subscribe($$self, TextStore, function ($$value) { return $$invalidate(9, $textStore = $$value); });
|
|
4075
4899
|
var text = $textStore.text;
|
|
@@ -4079,7 +4903,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
4079
4903
|
var showLoader = false;
|
|
4080
4904
|
function submitPasswordReset(e) {
|
|
4081
4905
|
return __awaiter(this, void 0, void 0, function () {
|
|
4082
|
-
var emailInput,
|
|
4906
|
+
var emailInput, err_8;
|
|
4083
4907
|
return __generator(this, function (_a) {
|
|
4084
4908
|
switch (_a.label) {
|
|
4085
4909
|
case 0:
|
|
@@ -4096,11 +4920,11 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
4096
4920
|
$$invalidate(0, display = "reset_password");
|
|
4097
4921
|
return [3 /*break*/, 4];
|
|
4098
4922
|
case 3:
|
|
4099
|
-
|
|
4100
|
-
console.log(
|
|
4923
|
+
err_8 = _a.sent();
|
|
4924
|
+
console.log(err_8);
|
|
4101
4925
|
$$invalidate(2, showLoader = false);
|
|
4102
|
-
if (
|
|
4103
|
-
window.$memberstackDom._showMessage(
|
|
4926
|
+
if (err_8.message) {
|
|
4927
|
+
window.$memberstackDom._showMessage(err_8.message, false);
|
|
4104
4928
|
}
|
|
4105
4929
|
return [3 /*break*/, 4];
|
|
4106
4930
|
case 4: return [2 /*return*/];
|
|
@@ -4136,13 +4960,13 @@ var PassResetModal = /** @class */ (function (_super) {
|
|
|
4136
4960
|
__extends(PassResetModal, _super);
|
|
4137
4961
|
function PassResetModal(options) {
|
|
4138
4962
|
var _this = _super.call(this) || this;
|
|
4139
|
-
init(_this, options, instance$
|
|
4963
|
+
init(_this, options, instance$h, create_fragment$p, safe_not_equal, { closeModal: 5, display: 0 });
|
|
4140
4964
|
return _this;
|
|
4141
4965
|
}
|
|
4142
4966
|
return PassResetModal;
|
|
4143
4967
|
}(SvelteComponent));
|
|
4144
4968
|
/* src/modals/PassTokenModal.svelte generated by Svelte v3.48.0 */
|
|
4145
|
-
function create_if_block$
|
|
4969
|
+
function create_if_block$d(ctx) {
|
|
4146
4970
|
var div;
|
|
4147
4971
|
var erroricon;
|
|
4148
4972
|
var t;
|
|
@@ -4178,7 +5002,7 @@ function create_if_block$c(ctx) {
|
|
|
4178
5002
|
}
|
|
4179
5003
|
};
|
|
4180
5004
|
}
|
|
4181
|
-
function create_fragment$
|
|
5005
|
+
function create_fragment$o(ctx) {
|
|
4182
5006
|
var div3;
|
|
4183
5007
|
var div0;
|
|
4184
5008
|
var button;
|
|
@@ -4212,7 +5036,7 @@ function create_fragment$n(ctx) {
|
|
|
4212
5036
|
props: { closeModal: /*closeModal*/ ctx[1] }
|
|
4213
5037
|
});
|
|
4214
5038
|
figureelement = new FigureElement({});
|
|
4215
|
-
var if_block = !ctx[3] && create_if_block$
|
|
5039
|
+
var if_block = !ctx[3] && create_if_block$d();
|
|
4216
5040
|
function passwordinput_passwordInputValid_binding(value) {
|
|
4217
5041
|
/*passwordinput_passwordInputValid_binding*/ ctx[9](value);
|
|
4218
5042
|
}
|
|
@@ -4327,7 +5151,7 @@ function create_fragment$n(ctx) {
|
|
|
4327
5151
|
}
|
|
4328
5152
|
}
|
|
4329
5153
|
else {
|
|
4330
|
-
if_block = create_if_block$
|
|
5154
|
+
if_block = create_if_block$d();
|
|
4331
5155
|
if_block.c();
|
|
4332
5156
|
transition_in(if_block, 1);
|
|
4333
5157
|
if_block.m(div1, null);
|
|
@@ -4346,7 +5170,636 @@ function create_fragment$n(ctx) {
|
|
|
4346
5170
|
passwordinput_changes.passwordInputValid = /*passwordInputValid*/ ctx[4];
|
|
4347
5171
|
add_flush_callback(function () { return updating_passwordInputValid = false; });
|
|
4348
5172
|
}
|
|
4349
|
-
passwordinput.$set(passwordinput_changes);
|
|
5173
|
+
passwordinput.$set(passwordinput_changes);
|
|
5174
|
+
var submitbutton_changes = {};
|
|
5175
|
+
if (dirty & /*showLoader*/ 4)
|
|
5176
|
+
submitbutton_changes.isLoading = /*showLoader*/ ctx[2];
|
|
5177
|
+
submitbutton.$set(submitbutton_changes);
|
|
5178
|
+
},
|
|
5179
|
+
i: function (local) {
|
|
5180
|
+
if (current)
|
|
5181
|
+
return;
|
|
5182
|
+
transition_in(backicon.$$.fragment, local);
|
|
5183
|
+
transition_in(closebutton.$$.fragment, local);
|
|
5184
|
+
transition_in(figureelement.$$.fragment, local);
|
|
5185
|
+
transition_in(if_block);
|
|
5186
|
+
transition_in(passwordinput.$$.fragment, local);
|
|
5187
|
+
transition_in(submitbutton.$$.fragment, local);
|
|
5188
|
+
transition_in(modalfooter.$$.fragment, local);
|
|
5189
|
+
current = true;
|
|
5190
|
+
},
|
|
5191
|
+
o: function (local) {
|
|
5192
|
+
transition_out(backicon.$$.fragment, local);
|
|
5193
|
+
transition_out(closebutton.$$.fragment, local);
|
|
5194
|
+
transition_out(figureelement.$$.fragment, local);
|
|
5195
|
+
transition_out(if_block);
|
|
5196
|
+
transition_out(passwordinput.$$.fragment, local);
|
|
5197
|
+
transition_out(submitbutton.$$.fragment, local);
|
|
5198
|
+
transition_out(modalfooter.$$.fragment, local);
|
|
5199
|
+
current = false;
|
|
5200
|
+
},
|
|
5201
|
+
d: function (detaching) {
|
|
5202
|
+
if (detaching)
|
|
5203
|
+
detach(div3);
|
|
5204
|
+
destroy_component(backicon);
|
|
5205
|
+
destroy_component(closebutton);
|
|
5206
|
+
destroy_component(figureelement);
|
|
5207
|
+
if (if_block)
|
|
5208
|
+
if_block.d();
|
|
5209
|
+
destroy_component(passwordinput);
|
|
5210
|
+
destroy_component(submitbutton);
|
|
5211
|
+
destroy_component(modalfooter);
|
|
5212
|
+
mounted = false;
|
|
5213
|
+
run_all(dispose);
|
|
5214
|
+
}
|
|
5215
|
+
};
|
|
5216
|
+
}
|
|
5217
|
+
function instance$g($$self, $$props, $$invalidate) {
|
|
5218
|
+
var $textStore;
|
|
5219
|
+
component_subscribe($$self, TextStore, function ($$value) { return $$invalidate(10, $textStore = $$value); });
|
|
5220
|
+
var text = $textStore.text;
|
|
5221
|
+
var closeModal = $$props.closeModal;
|
|
5222
|
+
var display = $$props.display;
|
|
5223
|
+
var onSuccessPasswordReset = $$props.onSuccessPasswordReset;
|
|
5224
|
+
var showLoader = false;
|
|
5225
|
+
var tokenInputValid = true;
|
|
5226
|
+
var passwordInputValid = true;
|
|
5227
|
+
onMount(function () {
|
|
5228
|
+
var tokenElements = __spreadArray([], __read(document.querySelectorAll("input.ms-form__input--token")), false);
|
|
5229
|
+
tokenElements.forEach(function (ele, index) {
|
|
5230
|
+
ele.addEventListener("keydown", function (e) {
|
|
5231
|
+
if (e.keyCode === 8 && e.target.value === "")
|
|
5232
|
+
tokenElements[Math.max(0, index - 1)].focus();
|
|
5233
|
+
});
|
|
5234
|
+
ele.addEventListener("input", function (e) {
|
|
5235
|
+
var _a = __read(e.target.value), first = _a[0], rest = _a.slice(1);
|
|
5236
|
+
e.target.value = first !== null && first !== void 0 ? first : "";
|
|
5237
|
+
var lastInputBox = index === tokenElements.length - 1;
|
|
5238
|
+
var insertedContent = first !== undefined;
|
|
5239
|
+
if (insertedContent && !lastInputBox) {
|
|
5240
|
+
tokenElements[index + 1].focus();
|
|
5241
|
+
tokenElements[index + 1].value = rest.join("");
|
|
5242
|
+
tokenElements[index + 1].dispatchEvent(new Event("input"));
|
|
5243
|
+
}
|
|
5244
|
+
});
|
|
5245
|
+
});
|
|
5246
|
+
});
|
|
5247
|
+
var validateFields = function (e) {
|
|
5248
|
+
var tokenElements = __spreadArray([], __read(document.querySelectorAll("input.ms-form__input--token")), false);
|
|
5249
|
+
var hasEmpty = tokenElements.some(function (el) {
|
|
5250
|
+
if (!el.value) {
|
|
5251
|
+
return true;
|
|
5252
|
+
}
|
|
5253
|
+
return false;
|
|
5254
|
+
});
|
|
5255
|
+
if (hasEmpty) {
|
|
5256
|
+
$$invalidate(3, tokenInputValid = false);
|
|
5257
|
+
}
|
|
5258
|
+
else {
|
|
5259
|
+
$$invalidate(3, tokenInputValid = true);
|
|
5260
|
+
}
|
|
5261
|
+
return !hasEmpty;
|
|
5262
|
+
};
|
|
5263
|
+
function submitPasswordToken(e) {
|
|
5264
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5265
|
+
var passwordInput, isValid, token, message, err_9;
|
|
5266
|
+
return __generator(this, function (_a) {
|
|
5267
|
+
switch (_a.label) {
|
|
5268
|
+
case 0:
|
|
5269
|
+
passwordInput = e.target[7];
|
|
5270
|
+
isValid = validateFields();
|
|
5271
|
+
if (!isValid)
|
|
5272
|
+
return [2 /*return*/];
|
|
5273
|
+
token = __spreadArray([], __read(document.getElementsByName("token")), false).filter(function (_a) {
|
|
5274
|
+
var name = _a.name;
|
|
5275
|
+
return name;
|
|
5276
|
+
}).map(function (_a) {
|
|
5277
|
+
var value = _a.value;
|
|
5278
|
+
return value;
|
|
5279
|
+
}).join("");
|
|
5280
|
+
_a.label = 1;
|
|
5281
|
+
case 1:
|
|
5282
|
+
_a.trys.push([1, 3, , 4]);
|
|
5283
|
+
$$invalidate(2, showLoader = true);
|
|
5284
|
+
return [4 /*yield*/, window.$memberstackDom.resetMemberPassword({ token: token, newPassword: passwordInput.value })];
|
|
5285
|
+
case 2:
|
|
5286
|
+
message = (_a.sent())._internalUseOnly.message;
|
|
5287
|
+
window.$memberstackDom._showMessage(message, false);
|
|
5288
|
+
onSuccessPasswordReset({ type: "PASSWORD_RESET", data: {} });
|
|
5289
|
+
$$invalidate(2, showLoader = false);
|
|
5290
|
+
$$invalidate(0, display = "reset_password_success");
|
|
5291
|
+
return [3 /*break*/, 4];
|
|
5292
|
+
case 3:
|
|
5293
|
+
err_9 = _a.sent();
|
|
5294
|
+
$$invalidate(2, showLoader = false);
|
|
5295
|
+
console.log(err_9);
|
|
5296
|
+
if (err_9.message) {
|
|
5297
|
+
window.$memberstackDom._showMessage(err_9.message, true);
|
|
5298
|
+
}
|
|
5299
|
+
return [3 /*break*/, 4];
|
|
5300
|
+
case 4: return [2 /*return*/];
|
|
5301
|
+
}
|
|
5302
|
+
});
|
|
5303
|
+
});
|
|
5304
|
+
}
|
|
5305
|
+
var click_handler = function () { return $$invalidate(0, display = "forgot_password"); };
|
|
5306
|
+
function passwordinput_passwordInputValid_binding(value) {
|
|
5307
|
+
passwordInputValid = value;
|
|
5308
|
+
$$invalidate(4, passwordInputValid);
|
|
5309
|
+
}
|
|
5310
|
+
$$self.$$set = function ($$props) {
|
|
5311
|
+
if ('closeModal' in $$props)
|
|
5312
|
+
$$invalidate(1, closeModal = $$props.closeModal);
|
|
5313
|
+
if ('display' in $$props)
|
|
5314
|
+
$$invalidate(0, display = $$props.display);
|
|
5315
|
+
if ('onSuccessPasswordReset' in $$props)
|
|
5316
|
+
$$invalidate(7, onSuccessPasswordReset = $$props.onSuccessPasswordReset);
|
|
5317
|
+
};
|
|
5318
|
+
return [
|
|
5319
|
+
display,
|
|
5320
|
+
closeModal,
|
|
5321
|
+
showLoader,
|
|
5322
|
+
tokenInputValid,
|
|
5323
|
+
passwordInputValid,
|
|
5324
|
+
text,
|
|
5325
|
+
submitPasswordToken,
|
|
5326
|
+
onSuccessPasswordReset,
|
|
5327
|
+
click_handler,
|
|
5328
|
+
passwordinput_passwordInputValid_binding
|
|
5329
|
+
];
|
|
5330
|
+
}
|
|
5331
|
+
var PassTokenModal = /** @class */ (function (_super) {
|
|
5332
|
+
__extends(PassTokenModal, _super);
|
|
5333
|
+
function PassTokenModal(options) {
|
|
5334
|
+
var _this = _super.call(this) || this;
|
|
5335
|
+
init(_this, options, instance$g, create_fragment$o, safe_not_equal, {
|
|
5336
|
+
closeModal: 1,
|
|
5337
|
+
display: 0,
|
|
5338
|
+
onSuccessPasswordReset: 7
|
|
5339
|
+
});
|
|
5340
|
+
return _this;
|
|
5341
|
+
}
|
|
5342
|
+
return PassTokenModal;
|
|
5343
|
+
}(SvelteComponent));
|
|
5344
|
+
/* src/modals/PassSuccessModal.svelte generated by Svelte v3.48.0 */
|
|
5345
|
+
function create_fragment$n(ctx) {
|
|
5346
|
+
var div2;
|
|
5347
|
+
var div0;
|
|
5348
|
+
var t0;
|
|
5349
|
+
var closebutton;
|
|
5350
|
+
var t1;
|
|
5351
|
+
var div1;
|
|
5352
|
+
var figureelement;
|
|
5353
|
+
var t2;
|
|
5354
|
+
var h2;
|
|
5355
|
+
var t4;
|
|
5356
|
+
var p;
|
|
5357
|
+
var t7;
|
|
5358
|
+
var modalfooter;
|
|
5359
|
+
var current;
|
|
5360
|
+
closebutton = new CloseButton({
|
|
5361
|
+
props: { closeModal: /*closeModal*/ ctx[0] }
|
|
5362
|
+
});
|
|
5363
|
+
figureelement = new FigureElement({});
|
|
5364
|
+
modalfooter = new ModalFooter({});
|
|
5365
|
+
return {
|
|
5366
|
+
c: function () {
|
|
5367
|
+
div2 = element("div");
|
|
5368
|
+
div0 = element("div");
|
|
5369
|
+
t0 = space();
|
|
5370
|
+
create_component(closebutton.$$.fragment);
|
|
5371
|
+
t1 = space();
|
|
5372
|
+
div1 = element("div");
|
|
5373
|
+
create_component(figureelement.$$.fragment);
|
|
5374
|
+
t2 = space();
|
|
5375
|
+
h2 = element("h2");
|
|
5376
|
+
h2.textContent = "Success!";
|
|
5377
|
+
t4 = space();
|
|
5378
|
+
p = element("p");
|
|
5379
|
+
p.innerHTML = "Your password has been reset. <br/>\n Please login with your new credentials.";
|
|
5380
|
+
t7 = space();
|
|
5381
|
+
create_component(modalfooter.$$.fragment);
|
|
5382
|
+
attr(div0, "data-cy", "back-btn");
|
|
5383
|
+
attr(div0, "class", "ms-modal__back");
|
|
5384
|
+
attr(h2, "class", "ms-modal__title ms-modal__title--sub-text");
|
|
5385
|
+
attr(p, "class", "ms-modal__text");
|
|
5386
|
+
attr(div1, "class", "ms-modal__content");
|
|
5387
|
+
attr(div2, "class", "ms-modal");
|
|
5388
|
+
attr(div2, "id", "PasswordSuccessModal");
|
|
5389
|
+
},
|
|
5390
|
+
m: function (target, anchor) {
|
|
5391
|
+
insert(target, div2, anchor);
|
|
5392
|
+
append(div2, div0);
|
|
5393
|
+
append(div2, t0);
|
|
5394
|
+
mount_component(closebutton, div2, null);
|
|
5395
|
+
append(div2, t1);
|
|
5396
|
+
append(div2, div1);
|
|
5397
|
+
mount_component(figureelement, div1, null);
|
|
5398
|
+
append(div1, t2);
|
|
5399
|
+
append(div1, h2);
|
|
5400
|
+
append(div1, t4);
|
|
5401
|
+
append(div1, p);
|
|
5402
|
+
append(div2, t7);
|
|
5403
|
+
mount_component(modalfooter, div2, null);
|
|
5404
|
+
current = true;
|
|
5405
|
+
},
|
|
5406
|
+
p: function (ctx, _a) {
|
|
5407
|
+
var _b = __read(_a, 1), dirty = _b[0];
|
|
5408
|
+
var closebutton_changes = {};
|
|
5409
|
+
if (dirty & /*closeModal*/ 1)
|
|
5410
|
+
closebutton_changes.closeModal = /*closeModal*/ ctx[0];
|
|
5411
|
+
closebutton.$set(closebutton_changes);
|
|
5412
|
+
},
|
|
5413
|
+
i: function (local) {
|
|
5414
|
+
if (current)
|
|
5415
|
+
return;
|
|
5416
|
+
transition_in(closebutton.$$.fragment, local);
|
|
5417
|
+
transition_in(figureelement.$$.fragment, local);
|
|
5418
|
+
transition_in(modalfooter.$$.fragment, local);
|
|
5419
|
+
current = true;
|
|
5420
|
+
},
|
|
5421
|
+
o: function (local) {
|
|
5422
|
+
transition_out(closebutton.$$.fragment, local);
|
|
5423
|
+
transition_out(figureelement.$$.fragment, local);
|
|
5424
|
+
transition_out(modalfooter.$$.fragment, local);
|
|
5425
|
+
current = false;
|
|
5426
|
+
},
|
|
5427
|
+
d: function (detaching) {
|
|
5428
|
+
if (detaching)
|
|
5429
|
+
detach(div2);
|
|
5430
|
+
destroy_component(closebutton);
|
|
5431
|
+
destroy_component(figureelement);
|
|
5432
|
+
destroy_component(modalfooter);
|
|
5433
|
+
}
|
|
5434
|
+
};
|
|
5435
|
+
}
|
|
5436
|
+
function instance$f($$self, $$props, $$invalidate) {
|
|
5437
|
+
var closeModal = $$props.closeModal;
|
|
5438
|
+
$$self.$$set = function ($$props) {
|
|
5439
|
+
if ('closeModal' in $$props)
|
|
5440
|
+
$$invalidate(0, closeModal = $$props.closeModal);
|
|
5441
|
+
};
|
|
5442
|
+
return [closeModal];
|
|
5443
|
+
}
|
|
5444
|
+
var PassSuccessModal = /** @class */ (function (_super) {
|
|
5445
|
+
__extends(PassSuccessModal, _super);
|
|
5446
|
+
function PassSuccessModal(options) {
|
|
5447
|
+
var _this = _super.call(this) || this;
|
|
5448
|
+
init(_this, options, instance$f, create_fragment$n, safe_not_equal, { closeModal: 0 });
|
|
5449
|
+
return _this;
|
|
5450
|
+
}
|
|
5451
|
+
return PassSuccessModal;
|
|
5452
|
+
}(SvelteComponent));
|
|
5453
|
+
/* src/modals/PasswordlessTokenModal.svelte generated by Svelte v3.48.0 */
|
|
5454
|
+
function create_else_block_1$2(ctx) {
|
|
5455
|
+
var button;
|
|
5456
|
+
var backicon;
|
|
5457
|
+
var current;
|
|
5458
|
+
var mounted;
|
|
5459
|
+
var dispose;
|
|
5460
|
+
backicon = new BackIcon({});
|
|
5461
|
+
return {
|
|
5462
|
+
c: function () {
|
|
5463
|
+
button = element("button");
|
|
5464
|
+
create_component(backicon.$$.fragment);
|
|
5465
|
+
},
|
|
5466
|
+
m: function (target, anchor) {
|
|
5467
|
+
insert(target, button, anchor);
|
|
5468
|
+
mount_component(backicon, button, null);
|
|
5469
|
+
current = true;
|
|
5470
|
+
if (!mounted) {
|
|
5471
|
+
dispose = listen(button, "click", /*click_handler_1*/ ctx[10]);
|
|
5472
|
+
mounted = true;
|
|
5473
|
+
}
|
|
5474
|
+
},
|
|
5475
|
+
p: noop,
|
|
5476
|
+
i: function (local) {
|
|
5477
|
+
if (current)
|
|
5478
|
+
return;
|
|
5479
|
+
transition_in(backicon.$$.fragment, local);
|
|
5480
|
+
current = true;
|
|
5481
|
+
},
|
|
5482
|
+
o: function (local) {
|
|
5483
|
+
transition_out(backicon.$$.fragment, local);
|
|
5484
|
+
current = false;
|
|
5485
|
+
},
|
|
5486
|
+
d: function (detaching) {
|
|
5487
|
+
if (detaching)
|
|
5488
|
+
detach(button);
|
|
5489
|
+
destroy_component(backicon);
|
|
5490
|
+
mounted = false;
|
|
5491
|
+
dispose();
|
|
5492
|
+
}
|
|
5493
|
+
};
|
|
5494
|
+
}
|
|
5495
|
+
// (140:4) {#if $PasswordlessStore.passwordlessModalType === "login"}
|
|
5496
|
+
function create_if_block_2$6(ctx) {
|
|
5497
|
+
var button;
|
|
5498
|
+
var backicon;
|
|
5499
|
+
var current;
|
|
5500
|
+
var mounted;
|
|
5501
|
+
var dispose;
|
|
5502
|
+
backicon = new BackIcon({});
|
|
5503
|
+
return {
|
|
5504
|
+
c: function () {
|
|
5505
|
+
button = element("button");
|
|
5506
|
+
create_component(backicon.$$.fragment);
|
|
5507
|
+
},
|
|
5508
|
+
m: function (target, anchor) {
|
|
5509
|
+
insert(target, button, anchor);
|
|
5510
|
+
mount_component(backicon, button, null);
|
|
5511
|
+
current = true;
|
|
5512
|
+
if (!mounted) {
|
|
5513
|
+
dispose = listen(button, "click", /*click_handler*/ ctx[9]);
|
|
5514
|
+
mounted = true;
|
|
5515
|
+
}
|
|
5516
|
+
},
|
|
5517
|
+
p: noop,
|
|
5518
|
+
i: function (local) {
|
|
5519
|
+
if (current)
|
|
5520
|
+
return;
|
|
5521
|
+
transition_in(backicon.$$.fragment, local);
|
|
5522
|
+
current = true;
|
|
5523
|
+
},
|
|
5524
|
+
o: function (local) {
|
|
5525
|
+
transition_out(backicon.$$.fragment, local);
|
|
5526
|
+
current = false;
|
|
5527
|
+
},
|
|
5528
|
+
d: function (detaching) {
|
|
5529
|
+
if (detaching)
|
|
5530
|
+
detach(button);
|
|
5531
|
+
destroy_component(backicon);
|
|
5532
|
+
mounted = false;
|
|
5533
|
+
dispose();
|
|
5534
|
+
}
|
|
5535
|
+
};
|
|
5536
|
+
}
|
|
5537
|
+
// (159:4) {:else}
|
|
5538
|
+
function create_else_block$5(ctx) {
|
|
5539
|
+
var h2;
|
|
5540
|
+
return {
|
|
5541
|
+
c: function () {
|
|
5542
|
+
h2 = element("h2");
|
|
5543
|
+
h2.textContent = "".concat(/*text*/ ctx[5]["passwordless_token_heading"] || "Create an account");
|
|
5544
|
+
attr(h2, "class", "ms-modal__title ms-modal__title--sub-text");
|
|
5545
|
+
},
|
|
5546
|
+
m: function (target, anchor) {
|
|
5547
|
+
insert(target, h2, anchor);
|
|
5548
|
+
},
|
|
5549
|
+
p: noop,
|
|
5550
|
+
d: function (detaching) {
|
|
5551
|
+
if (detaching)
|
|
5552
|
+
detach(h2);
|
|
5553
|
+
}
|
|
5554
|
+
};
|
|
5555
|
+
}
|
|
5556
|
+
// (155:4) {#if $PasswordlessStore.passwordlessModalType === "login"}
|
|
5557
|
+
function create_if_block_1$9(ctx) {
|
|
5558
|
+
var h2;
|
|
5559
|
+
return {
|
|
5560
|
+
c: function () {
|
|
5561
|
+
h2 = element("h2");
|
|
5562
|
+
h2.textContent = "".concat(/*text*/ ctx[5]["login_to_your_account"] || "Login to your account");
|
|
5563
|
+
attr(h2, "class", "ms-modal__title ms-modal__title--sub-text");
|
|
5564
|
+
},
|
|
5565
|
+
m: function (target, anchor) {
|
|
5566
|
+
insert(target, h2, anchor);
|
|
5567
|
+
},
|
|
5568
|
+
p: noop,
|
|
5569
|
+
d: function (detaching) {
|
|
5570
|
+
if (detaching)
|
|
5571
|
+
detach(h2);
|
|
5572
|
+
}
|
|
5573
|
+
};
|
|
5574
|
+
}
|
|
5575
|
+
// (212:8) {#if !tokenInputValid}
|
|
5576
|
+
function create_if_block$c(ctx) {
|
|
5577
|
+
var div;
|
|
5578
|
+
var erroricon;
|
|
5579
|
+
var t;
|
|
5580
|
+
var current;
|
|
5581
|
+
erroricon = new ErrorIcon({});
|
|
5582
|
+
return {
|
|
5583
|
+
c: function () {
|
|
5584
|
+
div = element("div");
|
|
5585
|
+
create_component(erroricon.$$.fragment);
|
|
5586
|
+
t = text(" Please enter a valid code");
|
|
5587
|
+
attr(div, "class", "ms-form__error");
|
|
5588
|
+
},
|
|
5589
|
+
m: function (target, anchor) {
|
|
5590
|
+
insert(target, div, anchor);
|
|
5591
|
+
mount_component(erroricon, div, null);
|
|
5592
|
+
append(div, t);
|
|
5593
|
+
current = true;
|
|
5594
|
+
},
|
|
5595
|
+
i: function (local) {
|
|
5596
|
+
if (current)
|
|
5597
|
+
return;
|
|
5598
|
+
transition_in(erroricon.$$.fragment, local);
|
|
5599
|
+
current = true;
|
|
5600
|
+
},
|
|
5601
|
+
o: function (local) {
|
|
5602
|
+
transition_out(erroricon.$$.fragment, local);
|
|
5603
|
+
current = false;
|
|
5604
|
+
},
|
|
5605
|
+
d: function (detaching) {
|
|
5606
|
+
if (detaching)
|
|
5607
|
+
detach(div);
|
|
5608
|
+
destroy_component(erroricon);
|
|
5609
|
+
}
|
|
5610
|
+
};
|
|
5611
|
+
}
|
|
5612
|
+
function create_fragment$m(ctx) {
|
|
5613
|
+
var div3;
|
|
5614
|
+
var div0;
|
|
5615
|
+
var current_block_type_index;
|
|
5616
|
+
var if_block0;
|
|
5617
|
+
var t0;
|
|
5618
|
+
var closebutton;
|
|
5619
|
+
var t1;
|
|
5620
|
+
var div2;
|
|
5621
|
+
var figureelement;
|
|
5622
|
+
var t2;
|
|
5623
|
+
var t3;
|
|
5624
|
+
var p;
|
|
5625
|
+
var t5;
|
|
5626
|
+
var form;
|
|
5627
|
+
var div1;
|
|
5628
|
+
var label;
|
|
5629
|
+
var t7;
|
|
5630
|
+
var fieldset;
|
|
5631
|
+
var t13;
|
|
5632
|
+
var t14;
|
|
5633
|
+
var submitbutton;
|
|
5634
|
+
var t15;
|
|
5635
|
+
var modalfooter;
|
|
5636
|
+
var current;
|
|
5637
|
+
var mounted;
|
|
5638
|
+
var dispose;
|
|
5639
|
+
var if_block_creators = [create_if_block_2$6, create_else_block_1$2];
|
|
5640
|
+
var if_blocks = [];
|
|
5641
|
+
function select_block_type(ctx, dirty) {
|
|
5642
|
+
if ( /*$PasswordlessStore*/ctx[4].passwordlessModalType === "login")
|
|
5643
|
+
return 0;
|
|
5644
|
+
return 1;
|
|
5645
|
+
}
|
|
5646
|
+
current_block_type_index = select_block_type(ctx);
|
|
5647
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
5648
|
+
closebutton = new CloseButton({
|
|
5649
|
+
props: { closeModal: /*closeModal*/ ctx[1] }
|
|
5650
|
+
});
|
|
5651
|
+
figureelement = new FigureElement({});
|
|
5652
|
+
function select_block_type_1(ctx, dirty) {
|
|
5653
|
+
if ( /*$PasswordlessStore*/ctx[4].passwordlessModalType === "login")
|
|
5654
|
+
return create_if_block_1$9;
|
|
5655
|
+
return create_else_block$5;
|
|
5656
|
+
}
|
|
5657
|
+
var current_block_type = select_block_type_1(ctx);
|
|
5658
|
+
var if_block1 = current_block_type(ctx);
|
|
5659
|
+
var if_block2 = !ctx[3] && create_if_block$c();
|
|
5660
|
+
submitbutton = new SubmitButton({
|
|
5661
|
+
props: {
|
|
5662
|
+
buttonText: /*text*/ ctx[5]["login_verify_email"] || "Verify Email",
|
|
5663
|
+
isLoading: /*showLoader*/ ctx[2]
|
|
5664
|
+
}
|
|
5665
|
+
});
|
|
5666
|
+
modalfooter = new ModalFooter({});
|
|
5667
|
+
return {
|
|
5668
|
+
c: function () {
|
|
5669
|
+
div3 = element("div");
|
|
5670
|
+
div0 = element("div");
|
|
5671
|
+
if_block0.c();
|
|
5672
|
+
t0 = space();
|
|
5673
|
+
create_component(closebutton.$$.fragment);
|
|
5674
|
+
t1 = space();
|
|
5675
|
+
div2 = element("div");
|
|
5676
|
+
create_component(figureelement.$$.fragment);
|
|
5677
|
+
t2 = space();
|
|
5678
|
+
if_block1.c();
|
|
5679
|
+
t3 = space();
|
|
5680
|
+
p = element("p");
|
|
5681
|
+
p.textContent = "".concat(/*text*/ ctx[5]["login_passwordless_instructions"] || "Enter the verification code sent to your email address");
|
|
5682
|
+
t5 = space();
|
|
5683
|
+
form = element("form");
|
|
5684
|
+
div1 = element("div");
|
|
5685
|
+
label = element("label");
|
|
5686
|
+
label.textContent = "".concat(/*text*/ ctx[5]["login_verification_code"] || "Verification Code");
|
|
5687
|
+
t7 = space();
|
|
5688
|
+
fieldset = element("fieldset");
|
|
5689
|
+
fieldset.innerHTML = "<input name=\"token\" class=\"ms-form__input ms-form__input--token\" required=\"\"/> \n <input name=\"token\" class=\"ms-form__input ms-form__input--token\" required=\"\"/> \n <input name=\"token\" class=\"ms-form__input ms-form__input--token\" required=\"\"/> \n <input name=\"token\" class=\"ms-form__input ms-form__input--token\" required=\"\"/> \n <input name=\"token\" class=\"ms-form__input ms-form__input--token\" required=\"\"/> \n <input name=\"token\" class=\"ms-form__input ms-form__input--token\"/>";
|
|
5690
|
+
t13 = space();
|
|
5691
|
+
if (if_block2)
|
|
5692
|
+
if_block2.c();
|
|
5693
|
+
t14 = space();
|
|
5694
|
+
create_component(submitbutton.$$.fragment);
|
|
5695
|
+
t15 = space();
|
|
5696
|
+
create_component(modalfooter.$$.fragment);
|
|
5697
|
+
attr(div0, "class", "ms-modal__back");
|
|
5698
|
+
attr(p, "class", "ms-modal__text");
|
|
5699
|
+
attr(label, "class", "ms-form__label");
|
|
5700
|
+
attr(label, "for", "token-fieldset");
|
|
5701
|
+
attr(fieldset, "class", "ms-form__fieldset");
|
|
5702
|
+
attr(fieldset, "name", "token-fieldset");
|
|
5703
|
+
attr(div1, "class", "ms-form__group");
|
|
5704
|
+
attr(form, "class", "ms-form");
|
|
5705
|
+
attr(form, "action", "");
|
|
5706
|
+
attr(form, "method", "post");
|
|
5707
|
+
attr(form, "autocomplete", "off");
|
|
5708
|
+
attr(div2, "class", "ms-modal__content");
|
|
5709
|
+
attr(div3, "class", "ms-modal");
|
|
5710
|
+
attr(div3, "id", "PasswordlessTokenModal");
|
|
5711
|
+
},
|
|
5712
|
+
m: function (target, anchor) {
|
|
5713
|
+
insert(target, div3, anchor);
|
|
5714
|
+
append(div3, div0);
|
|
5715
|
+
if_blocks[current_block_type_index].m(div0, null);
|
|
5716
|
+
append(div3, t0);
|
|
5717
|
+
mount_component(closebutton, div3, null);
|
|
5718
|
+
append(div3, t1);
|
|
5719
|
+
append(div3, div2);
|
|
5720
|
+
mount_component(figureelement, div2, null);
|
|
5721
|
+
append(div2, t2);
|
|
5722
|
+
if_block1.m(div2, null);
|
|
5723
|
+
append(div2, t3);
|
|
5724
|
+
append(div2, p);
|
|
5725
|
+
append(div2, t5);
|
|
5726
|
+
append(div2, form);
|
|
5727
|
+
append(form, div1);
|
|
5728
|
+
append(div1, label);
|
|
5729
|
+
append(div1, t7);
|
|
5730
|
+
append(div1, fieldset);
|
|
5731
|
+
append(div1, t13);
|
|
5732
|
+
if (if_block2)
|
|
5733
|
+
if_block2.m(div1, null);
|
|
5734
|
+
append(form, t14);
|
|
5735
|
+
mount_component(submitbutton, form, null);
|
|
5736
|
+
append(div3, t15);
|
|
5737
|
+
mount_component(modalfooter, div3, null);
|
|
5738
|
+
current = true;
|
|
5739
|
+
if (!mounted) {
|
|
5740
|
+
dispose = listen(form, "submit", stop_propagation(prevent_default(/*submitPasswordlessToken*/ ctx[6])));
|
|
5741
|
+
mounted = true;
|
|
5742
|
+
}
|
|
5743
|
+
},
|
|
5744
|
+
p: function (ctx, _a) {
|
|
5745
|
+
var _b = __read(_a, 1), dirty = _b[0];
|
|
5746
|
+
var previous_block_index = current_block_type_index;
|
|
5747
|
+
current_block_type_index = select_block_type(ctx);
|
|
5748
|
+
if (current_block_type_index === previous_block_index) {
|
|
5749
|
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
|
5750
|
+
}
|
|
5751
|
+
else {
|
|
5752
|
+
group_outros();
|
|
5753
|
+
transition_out(if_blocks[previous_block_index], 1, 1, function () {
|
|
5754
|
+
if_blocks[previous_block_index] = null;
|
|
5755
|
+
});
|
|
5756
|
+
check_outros();
|
|
5757
|
+
if_block0 = if_blocks[current_block_type_index];
|
|
5758
|
+
if (!if_block0) {
|
|
5759
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
5760
|
+
if_block0.c();
|
|
5761
|
+
}
|
|
5762
|
+
else {
|
|
5763
|
+
if_block0.p(ctx, dirty);
|
|
5764
|
+
}
|
|
5765
|
+
transition_in(if_block0, 1);
|
|
5766
|
+
if_block0.m(div0, null);
|
|
5767
|
+
}
|
|
5768
|
+
var closebutton_changes = {};
|
|
5769
|
+
if (dirty & /*closeModal*/ 2)
|
|
5770
|
+
closebutton_changes.closeModal = /*closeModal*/ ctx[1];
|
|
5771
|
+
closebutton.$set(closebutton_changes);
|
|
5772
|
+
if (current_block_type === (current_block_type = select_block_type_1(ctx)) && if_block1) {
|
|
5773
|
+
if_block1.p(ctx, dirty);
|
|
5774
|
+
}
|
|
5775
|
+
else {
|
|
5776
|
+
if_block1.d(1);
|
|
5777
|
+
if_block1 = current_block_type(ctx);
|
|
5778
|
+
if (if_block1) {
|
|
5779
|
+
if_block1.c();
|
|
5780
|
+
if_block1.m(div2, t3);
|
|
5781
|
+
}
|
|
5782
|
+
}
|
|
5783
|
+
if (!ctx[3]) {
|
|
5784
|
+
if (if_block2) {
|
|
5785
|
+
if (dirty & /*tokenInputValid*/ 8) {
|
|
5786
|
+
transition_in(if_block2, 1);
|
|
5787
|
+
}
|
|
5788
|
+
}
|
|
5789
|
+
else {
|
|
5790
|
+
if_block2 = create_if_block$c();
|
|
5791
|
+
if_block2.c();
|
|
5792
|
+
transition_in(if_block2, 1);
|
|
5793
|
+
if_block2.m(div1, null);
|
|
5794
|
+
}
|
|
5795
|
+
}
|
|
5796
|
+
else if (if_block2) {
|
|
5797
|
+
group_outros();
|
|
5798
|
+
transition_out(if_block2, 1, 1, function () {
|
|
5799
|
+
if_block2 = null;
|
|
5800
|
+
});
|
|
5801
|
+
check_outros();
|
|
5802
|
+
}
|
|
4350
5803
|
var submitbutton_changes = {};
|
|
4351
5804
|
if (dirty & /*showLoader*/ 4)
|
|
4352
5805
|
submitbutton_changes.isLoading = /*showLoader*/ ctx[2];
|
|
@@ -4355,21 +5808,19 @@ function create_fragment$n(ctx) {
|
|
|
4355
5808
|
i: function (local) {
|
|
4356
5809
|
if (current)
|
|
4357
5810
|
return;
|
|
4358
|
-
transition_in(
|
|
5811
|
+
transition_in(if_block0);
|
|
4359
5812
|
transition_in(closebutton.$$.fragment, local);
|
|
4360
5813
|
transition_in(figureelement.$$.fragment, local);
|
|
4361
|
-
transition_in(
|
|
4362
|
-
transition_in(passwordinput.$$.fragment, local);
|
|
5814
|
+
transition_in(if_block2);
|
|
4363
5815
|
transition_in(submitbutton.$$.fragment, local);
|
|
4364
5816
|
transition_in(modalfooter.$$.fragment, local);
|
|
4365
5817
|
current = true;
|
|
4366
5818
|
},
|
|
4367
5819
|
o: function (local) {
|
|
4368
|
-
transition_out(
|
|
5820
|
+
transition_out(if_block0);
|
|
4369
5821
|
transition_out(closebutton.$$.fragment, local);
|
|
4370
5822
|
transition_out(figureelement.$$.fragment, local);
|
|
4371
|
-
transition_out(
|
|
4372
|
-
transition_out(passwordinput.$$.fragment, local);
|
|
5823
|
+
transition_out(if_block2);
|
|
4373
5824
|
transition_out(submitbutton.$$.fragment, local);
|
|
4374
5825
|
transition_out(modalfooter.$$.fragment, local);
|
|
4375
5826
|
current = false;
|
|
@@ -4377,29 +5828,31 @@ function create_fragment$n(ctx) {
|
|
|
4377
5828
|
d: function (detaching) {
|
|
4378
5829
|
if (detaching)
|
|
4379
5830
|
detach(div3);
|
|
4380
|
-
|
|
5831
|
+
if_blocks[current_block_type_index].d();
|
|
4381
5832
|
destroy_component(closebutton);
|
|
4382
5833
|
destroy_component(figureelement);
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
5834
|
+
if_block1.d();
|
|
5835
|
+
if (if_block2)
|
|
5836
|
+
if_block2.d();
|
|
4386
5837
|
destroy_component(submitbutton);
|
|
4387
5838
|
destroy_component(modalfooter);
|
|
4388
5839
|
mounted = false;
|
|
4389
|
-
|
|
5840
|
+
dispose();
|
|
4390
5841
|
}
|
|
4391
5842
|
};
|
|
4392
5843
|
}
|
|
4393
|
-
function instance$
|
|
5844
|
+
function instance$e($$self, $$props, $$invalidate) {
|
|
5845
|
+
var $PasswordlessStore;
|
|
4394
5846
|
var $textStore;
|
|
4395
|
-
component_subscribe($$self,
|
|
5847
|
+
component_subscribe($$self, PasswordlessStore, function ($$value) { return $$invalidate(4, $PasswordlessStore = $$value); });
|
|
5848
|
+
component_subscribe($$self, TextStore, function ($$value) { return $$invalidate(11, $textStore = $$value); });
|
|
4396
5849
|
var text = $textStore.text;
|
|
4397
5850
|
var closeModal = $$props.closeModal;
|
|
4398
5851
|
var display = $$props.display;
|
|
4399
|
-
var
|
|
5852
|
+
var onSuccessPasswordlessToken = $$props.onSuccessPasswordlessToken;
|
|
5853
|
+
var onSuccess = $$props.onSuccess;
|
|
4400
5854
|
var showLoader = false;
|
|
4401
5855
|
var tokenInputValid = true;
|
|
4402
|
-
var passwordInputValid = true;
|
|
4403
5856
|
onMount(function () {
|
|
4404
5857
|
var tokenElements = __spreadArray([], __read(document.querySelectorAll("input.ms-form__input--token")), false);
|
|
4405
5858
|
tokenElements.forEach(function (ele, index) {
|
|
@@ -4436,13 +5889,13 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
|
4436
5889
|
}
|
|
4437
5890
|
return !hasEmpty;
|
|
4438
5891
|
};
|
|
4439
|
-
function
|
|
5892
|
+
function submitPasswordlessToken(e) {
|
|
4440
5893
|
return __awaiter(this, void 0, void 0, function () {
|
|
4441
|
-
var
|
|
5894
|
+
var isValid, token, data, plans, data, err_10;
|
|
4442
5895
|
return __generator(this, function (_a) {
|
|
4443
5896
|
switch (_a.label) {
|
|
4444
5897
|
case 0:
|
|
4445
|
-
|
|
5898
|
+
e.target[7];
|
|
4446
5899
|
isValid = validateFields();
|
|
4447
5900
|
if (!isValid)
|
|
4448
5901
|
return [2 /*return*/];
|
|
@@ -4455,176 +5908,86 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
|
4455
5908
|
}).join("");
|
|
4456
5909
|
_a.label = 1;
|
|
4457
5910
|
case 1:
|
|
4458
|
-
_a.trys.push([1,
|
|
5911
|
+
_a.trys.push([1, 6, , 7]);
|
|
4459
5912
|
$$invalidate(2, showLoader = true);
|
|
4460
|
-
return [
|
|
5913
|
+
if (!($PasswordlessStore.passwordlessModalType === "login")) return [3 /*break*/, 3];
|
|
5914
|
+
return [4 /*yield*/, window.$memberstackDom.loginMemberPasswordless({
|
|
5915
|
+
token: token,
|
|
5916
|
+
email: $PasswordlessStore.passwordlessEmail
|
|
5917
|
+
}, { includeContentGroups: true })];
|
|
4461
5918
|
case 2:
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
onSuccessPasswordReset({ type: "PASSWORD_RESET", data: {} });
|
|
5919
|
+
data = (_a.sent()).data;
|
|
5920
|
+
onSuccess({ type: "LOGIN", data: data });
|
|
4465
5921
|
$$invalidate(2, showLoader = false);
|
|
4466
|
-
|
|
4467
|
-
return [3 /*break*/, 4];
|
|
5922
|
+
return [3 /*break*/, 5];
|
|
4468
5923
|
case 3:
|
|
4469
|
-
|
|
5924
|
+
plans = ($PasswordlessStore.passwordlessPlans || []).map(function (plan) {
|
|
5925
|
+
return { planId: plan };
|
|
5926
|
+
});
|
|
5927
|
+
return [4 /*yield*/, window.$memberstackDom.signupMemberPasswordless({
|
|
5928
|
+
passwordlessToken: token,
|
|
5929
|
+
email: $PasswordlessStore.passwordlessEmail,
|
|
5930
|
+
plans: plans,
|
|
5931
|
+
customFields: $PasswordlessStore.passwordlessCustomFields
|
|
5932
|
+
}, { includeContentGroups: true })];
|
|
5933
|
+
case 4:
|
|
5934
|
+
data = (_a.sent()).data;
|
|
5935
|
+
onSuccess({ type: "SIGNUP", data: data });
|
|
5936
|
+
$$invalidate(2, showLoader = false);
|
|
5937
|
+
_a.label = 5;
|
|
5938
|
+
case 5: return [3 /*break*/, 7];
|
|
5939
|
+
case 6:
|
|
5940
|
+
err_10 = _a.sent();
|
|
4470
5941
|
$$invalidate(2, showLoader = false);
|
|
4471
|
-
console.log(
|
|
4472
|
-
if (
|
|
4473
|
-
window.$memberstackDom._showMessage(
|
|
5942
|
+
console.log(err_10);
|
|
5943
|
+
if (err_10.message) {
|
|
5944
|
+
window.$memberstackDom._showMessage(err_10.message, true);
|
|
4474
5945
|
}
|
|
4475
|
-
return [3 /*break*/,
|
|
4476
|
-
case
|
|
5946
|
+
return [3 /*break*/, 7];
|
|
5947
|
+
case 7: return [2 /*return*/];
|
|
4477
5948
|
}
|
|
4478
5949
|
});
|
|
4479
5950
|
});
|
|
4480
5951
|
}
|
|
4481
|
-
var click_handler = function () { return $$invalidate(0, display = "
|
|
4482
|
-
function
|
|
4483
|
-
passwordInputValid = value;
|
|
4484
|
-
$$invalidate(4, passwordInputValid);
|
|
4485
|
-
}
|
|
5952
|
+
var click_handler = function () { return $$invalidate(0, display = "login"); };
|
|
5953
|
+
var click_handler_1 = function () { return $$invalidate(0, display = "signup"); };
|
|
4486
5954
|
$$self.$$set = function ($$props) {
|
|
4487
5955
|
if ('closeModal' in $$props)
|
|
4488
5956
|
$$invalidate(1, closeModal = $$props.closeModal);
|
|
4489
5957
|
if ('display' in $$props)
|
|
4490
5958
|
$$invalidate(0, display = $$props.display);
|
|
4491
|
-
if ('
|
|
4492
|
-
$$invalidate(7,
|
|
5959
|
+
if ('onSuccessPasswordlessToken' in $$props)
|
|
5960
|
+
$$invalidate(7, onSuccessPasswordlessToken = $$props.onSuccessPasswordlessToken);
|
|
5961
|
+
if ('onSuccess' in $$props)
|
|
5962
|
+
$$invalidate(8, onSuccess = $$props.onSuccess);
|
|
4493
5963
|
};
|
|
4494
5964
|
return [
|
|
4495
5965
|
display,
|
|
4496
5966
|
closeModal,
|
|
4497
5967
|
showLoader,
|
|
4498
5968
|
tokenInputValid,
|
|
4499
|
-
|
|
5969
|
+
$PasswordlessStore,
|
|
4500
5970
|
text,
|
|
4501
|
-
|
|
4502
|
-
|
|
5971
|
+
submitPasswordlessToken,
|
|
5972
|
+
onSuccessPasswordlessToken,
|
|
5973
|
+
onSuccess,
|
|
4503
5974
|
click_handler,
|
|
4504
|
-
|
|
5975
|
+
click_handler_1
|
|
4505
5976
|
];
|
|
4506
5977
|
}
|
|
4507
|
-
var
|
|
4508
|
-
__extends(
|
|
4509
|
-
function
|
|
5978
|
+
var PasswordlessTokenModal = /** @class */ (function (_super) {
|
|
5979
|
+
__extends(PasswordlessTokenModal, _super);
|
|
5980
|
+
function PasswordlessTokenModal(options) {
|
|
4510
5981
|
var _this = _super.call(this) || this;
|
|
4511
|
-
init(_this, options, instance$
|
|
5982
|
+
init(_this, options, instance$e, create_fragment$m, safe_not_equal, {
|
|
4512
5983
|
closeModal: 1,
|
|
4513
5984
|
display: 0,
|
|
4514
|
-
|
|
5985
|
+
onSuccessPasswordlessToken: 7,
|
|
5986
|
+
onSuccess: 8
|
|
4515
5987
|
});
|
|
4516
5988
|
return _this;
|
|
4517
5989
|
}
|
|
4518
|
-
return
|
|
4519
|
-
}(SvelteComponent));
|
|
4520
|
-
/* src/modals/PassSuccessModal.svelte generated by Svelte v3.48.0 */
|
|
4521
|
-
function create_fragment$m(ctx) {
|
|
4522
|
-
var div2;
|
|
4523
|
-
var div0;
|
|
4524
|
-
var t0;
|
|
4525
|
-
var closebutton;
|
|
4526
|
-
var t1;
|
|
4527
|
-
var div1;
|
|
4528
|
-
var figureelement;
|
|
4529
|
-
var t2;
|
|
4530
|
-
var h2;
|
|
4531
|
-
var t4;
|
|
4532
|
-
var p;
|
|
4533
|
-
var t7;
|
|
4534
|
-
var modalfooter;
|
|
4535
|
-
var current;
|
|
4536
|
-
closebutton = new CloseButton({
|
|
4537
|
-
props: { closeModal: /*closeModal*/ ctx[0] }
|
|
4538
|
-
});
|
|
4539
|
-
figureelement = new FigureElement({});
|
|
4540
|
-
modalfooter = new ModalFooter({});
|
|
4541
|
-
return {
|
|
4542
|
-
c: function () {
|
|
4543
|
-
div2 = element("div");
|
|
4544
|
-
div0 = element("div");
|
|
4545
|
-
t0 = space();
|
|
4546
|
-
create_component(closebutton.$$.fragment);
|
|
4547
|
-
t1 = space();
|
|
4548
|
-
div1 = element("div");
|
|
4549
|
-
create_component(figureelement.$$.fragment);
|
|
4550
|
-
t2 = space();
|
|
4551
|
-
h2 = element("h2");
|
|
4552
|
-
h2.textContent = "Success!";
|
|
4553
|
-
t4 = space();
|
|
4554
|
-
p = element("p");
|
|
4555
|
-
p.innerHTML = "Your password has been reset. <br/>\n Please login with your new credentials.";
|
|
4556
|
-
t7 = space();
|
|
4557
|
-
create_component(modalfooter.$$.fragment);
|
|
4558
|
-
attr(div0, "data-cy", "back-btn");
|
|
4559
|
-
attr(div0, "class", "ms-modal__back");
|
|
4560
|
-
attr(h2, "class", "ms-modal__title ms-modal__title--sub-text");
|
|
4561
|
-
attr(p, "class", "ms-modal__text");
|
|
4562
|
-
attr(div1, "class", "ms-modal__content");
|
|
4563
|
-
attr(div2, "class", "ms-modal");
|
|
4564
|
-
attr(div2, "id", "PasswordSuccessModal");
|
|
4565
|
-
},
|
|
4566
|
-
m: function (target, anchor) {
|
|
4567
|
-
insert(target, div2, anchor);
|
|
4568
|
-
append(div2, div0);
|
|
4569
|
-
append(div2, t0);
|
|
4570
|
-
mount_component(closebutton, div2, null);
|
|
4571
|
-
append(div2, t1);
|
|
4572
|
-
append(div2, div1);
|
|
4573
|
-
mount_component(figureelement, div1, null);
|
|
4574
|
-
append(div1, t2);
|
|
4575
|
-
append(div1, h2);
|
|
4576
|
-
append(div1, t4);
|
|
4577
|
-
append(div1, p);
|
|
4578
|
-
append(div2, t7);
|
|
4579
|
-
mount_component(modalfooter, div2, null);
|
|
4580
|
-
current = true;
|
|
4581
|
-
},
|
|
4582
|
-
p: function (ctx, _a) {
|
|
4583
|
-
var _b = __read(_a, 1), dirty = _b[0];
|
|
4584
|
-
var closebutton_changes = {};
|
|
4585
|
-
if (dirty & /*closeModal*/ 1)
|
|
4586
|
-
closebutton_changes.closeModal = /*closeModal*/ ctx[0];
|
|
4587
|
-
closebutton.$set(closebutton_changes);
|
|
4588
|
-
},
|
|
4589
|
-
i: function (local) {
|
|
4590
|
-
if (current)
|
|
4591
|
-
return;
|
|
4592
|
-
transition_in(closebutton.$$.fragment, local);
|
|
4593
|
-
transition_in(figureelement.$$.fragment, local);
|
|
4594
|
-
transition_in(modalfooter.$$.fragment, local);
|
|
4595
|
-
current = true;
|
|
4596
|
-
},
|
|
4597
|
-
o: function (local) {
|
|
4598
|
-
transition_out(closebutton.$$.fragment, local);
|
|
4599
|
-
transition_out(figureelement.$$.fragment, local);
|
|
4600
|
-
transition_out(modalfooter.$$.fragment, local);
|
|
4601
|
-
current = false;
|
|
4602
|
-
},
|
|
4603
|
-
d: function (detaching) {
|
|
4604
|
-
if (detaching)
|
|
4605
|
-
detach(div2);
|
|
4606
|
-
destroy_component(closebutton);
|
|
4607
|
-
destroy_component(figureelement);
|
|
4608
|
-
destroy_component(modalfooter);
|
|
4609
|
-
}
|
|
4610
|
-
};
|
|
4611
|
-
}
|
|
4612
|
-
function instance$e($$self, $$props, $$invalidate) {
|
|
4613
|
-
var closeModal = $$props.closeModal;
|
|
4614
|
-
$$self.$$set = function ($$props) {
|
|
4615
|
-
if ('closeModal' in $$props)
|
|
4616
|
-
$$invalidate(0, closeModal = $$props.closeModal);
|
|
4617
|
-
};
|
|
4618
|
-
return [closeModal];
|
|
4619
|
-
}
|
|
4620
|
-
var PassSuccessModal = /** @class */ (function (_super) {
|
|
4621
|
-
__extends(PassSuccessModal, _super);
|
|
4622
|
-
function PassSuccessModal(options) {
|
|
4623
|
-
var _this = _super.call(this) || this;
|
|
4624
|
-
init(_this, options, instance$e, create_fragment$m, safe_not_equal, { closeModal: 0 });
|
|
4625
|
-
return _this;
|
|
4626
|
-
}
|
|
4627
|
-
return PassSuccessModal;
|
|
5990
|
+
return PasswordlessTokenModal;
|
|
4628
5991
|
}(SvelteComponent));
|
|
4629
5992
|
/* src/icons/ProfileIcon.svelte generated by Svelte v3.48.0 */
|
|
4630
5993
|
function create_fragment$l(ctx) {
|
|
@@ -5062,7 +6425,7 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
5062
6425
|
});
|
|
5063
6426
|
function logout(e) {
|
|
5064
6427
|
return __awaiter(this, void 0, void 0, function () {
|
|
5065
|
-
var _a, data, message,
|
|
6428
|
+
var _a, data, message, err_11;
|
|
5066
6429
|
return __generator(this, function (_b) {
|
|
5067
6430
|
switch (_b.label) {
|
|
5068
6431
|
case 0:
|
|
@@ -5074,8 +6437,8 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
5074
6437
|
onSuccessLogout({ type: "LOGOUT", data: data });
|
|
5075
6438
|
return [3 /*break*/, 3];
|
|
5076
6439
|
case 2:
|
|
5077
|
-
|
|
5078
|
-
window.$memberstackDom._showMessage(
|
|
6440
|
+
err_11 = _b.sent();
|
|
6441
|
+
window.$memberstackDom._showMessage(err_11.message, true);
|
|
5079
6442
|
return [3 /*break*/, 3];
|
|
5080
6443
|
case 3: return [2 /*return*/];
|
|
5081
6444
|
}
|
|
@@ -5916,7 +7279,7 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
5916
7279
|
var emailInputValid = false;
|
|
5917
7280
|
function submitEmailChange(e) {
|
|
5918
7281
|
return __awaiter(this, void 0, void 0, function () {
|
|
5919
|
-
var message,
|
|
7282
|
+
var message, err_12;
|
|
5920
7283
|
return __generator(this, function (_a) {
|
|
5921
7284
|
switch (_a.label) {
|
|
5922
7285
|
case 0:
|
|
@@ -5933,8 +7296,8 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
5933
7296
|
$$invalidate(8, profileLoader = false);
|
|
5934
7297
|
return [3 /*break*/, 4];
|
|
5935
7298
|
case 3:
|
|
5936
|
-
|
|
5937
|
-
window.$memberstackDom._showMessage(
|
|
7299
|
+
err_12 = _a.sent();
|
|
7300
|
+
window.$memberstackDom._showMessage(err_12.message, true);
|
|
5938
7301
|
$$invalidate(8, profileLoader = false);
|
|
5939
7302
|
return [3 /*break*/, 4];
|
|
5940
7303
|
case 4: return [2 /*return*/];
|
|
@@ -5944,7 +7307,7 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
5944
7307
|
}
|
|
5945
7308
|
function disconnectProvider(provider) {
|
|
5946
7309
|
return __awaiter(this, void 0, void 0, function () {
|
|
5947
|
-
var _a, data, message,
|
|
7310
|
+
var _a, data, message, err_13;
|
|
5948
7311
|
return __generator(this, function (_b) {
|
|
5949
7312
|
switch (_b.label) {
|
|
5950
7313
|
case 0:
|
|
@@ -5960,8 +7323,8 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
5960
7323
|
$$invalidate(8, profileLoader = false);
|
|
5961
7324
|
return [3 /*break*/, 4];
|
|
5962
7325
|
case 3:
|
|
5963
|
-
|
|
5964
|
-
window.$memberstackDom._showMessage(
|
|
7326
|
+
err_13 = _b.sent();
|
|
7327
|
+
window.$memberstackDom._showMessage(err_13.message, true);
|
|
5965
7328
|
$$invalidate(8, profileLoader = false);
|
|
5966
7329
|
return [3 /*break*/, 4];
|
|
5967
7330
|
case 4: return [2 /*return*/];
|
|
@@ -5971,7 +7334,7 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
5971
7334
|
}
|
|
5972
7335
|
function connectAdditionalProvider(provider) {
|
|
5973
7336
|
return __awaiter(this, void 0, void 0, function () {
|
|
5974
|
-
var data,
|
|
7337
|
+
var data, err_14;
|
|
5975
7338
|
return __generator(this, function (_a) {
|
|
5976
7339
|
switch (_a.label) {
|
|
5977
7340
|
case 0:
|
|
@@ -5986,8 +7349,8 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
5986
7349
|
window.$memberstackDom._showMessage(data.message, false);
|
|
5987
7350
|
return [3 /*break*/, 4];
|
|
5988
7351
|
case 3:
|
|
5989
|
-
|
|
5990
|
-
window.$memberstackDom._showMessage(
|
|
7352
|
+
err_14 = _a.sent();
|
|
7353
|
+
window.$memberstackDom._showMessage(err_14.message, true);
|
|
5991
7354
|
return [3 /*break*/, 4];
|
|
5992
7355
|
case 4: return [2 /*return*/];
|
|
5993
7356
|
}
|
|
@@ -6388,7 +7751,7 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
6388
7751
|
var confirmPasswordValid = false;
|
|
6389
7752
|
function submitPasswordChange(e) {
|
|
6390
7753
|
return __awaiter(this, void 0, void 0, function () {
|
|
6391
|
-
var message, msg, msg,
|
|
7754
|
+
var message, msg, msg, err_15;
|
|
6392
7755
|
return __generator(this, function (_a) {
|
|
6393
7756
|
switch (_a.label) {
|
|
6394
7757
|
case 0:
|
|
@@ -6428,8 +7791,8 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
6428
7791
|
$$invalidate(9, profileLoader = false);
|
|
6429
7792
|
return [3 /*break*/, 7];
|
|
6430
7793
|
case 6:
|
|
6431
|
-
|
|
6432
|
-
window.$memberstackDom._showMessage(
|
|
7794
|
+
err_15 = _a.sent();
|
|
7795
|
+
window.$memberstackDom._showMessage(err_15.message, true);
|
|
6433
7796
|
$$invalidate(9, profileLoader = false);
|
|
6434
7797
|
return [3 /*break*/, 7];
|
|
6435
7798
|
case 7: return [2 /*return*/];
|
|
@@ -7199,7 +8562,7 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
7199
8562
|
}
|
|
7200
8563
|
function removeFreePlan(planId) {
|
|
7201
8564
|
return __awaiter(this, void 0, void 0, function () {
|
|
7202
|
-
var
|
|
8565
|
+
var err_16;
|
|
7203
8566
|
return __generator(this, function (_a) {
|
|
7204
8567
|
switch (_a.label) {
|
|
7205
8568
|
case 0:
|
|
@@ -7213,9 +8576,9 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
7213
8576
|
$$invalidate(0, member.planConnections = member.planConnections.filter(function (plan) { return plan.planId !== planId; }), member);
|
|
7214
8577
|
return [3 /*break*/, 5];
|
|
7215
8578
|
case 3:
|
|
7216
|
-
|
|
7217
|
-
console.log(
|
|
7218
|
-
window.$memberstackDom._showMessage(
|
|
8579
|
+
err_16 = _a.sent();
|
|
8580
|
+
console.log(err_16);
|
|
8581
|
+
window.$memberstackDom._showMessage(err_16.message, true);
|
|
7219
8582
|
return [3 /*break*/, 5];
|
|
7220
8583
|
case 4:
|
|
7221
8584
|
$$invalidate(5, profileLoader = false);
|
|
@@ -8246,7 +9609,7 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
8246
9609
|
});
|
|
8247
9610
|
function logout(e) {
|
|
8248
9611
|
return __awaiter(this, void 0, void 0, function () {
|
|
8249
|
-
var _a, data, message,
|
|
9612
|
+
var _a, data, message, err_17;
|
|
8250
9613
|
return __generator(this, function (_b) {
|
|
8251
9614
|
switch (_b.label) {
|
|
8252
9615
|
case 0:
|
|
@@ -8258,8 +9621,8 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
8258
9621
|
onSuccessLogout({ type: "LOGOUT", data: data });
|
|
8259
9622
|
return [3 /*break*/, 3];
|
|
8260
9623
|
case 2:
|
|
8261
|
-
|
|
8262
|
-
window.$memberstackDom._showMessage(
|
|
9624
|
+
err_17 = _b.sent();
|
|
9625
|
+
window.$memberstackDom._showMessage(err_17.message, true);
|
|
8263
9626
|
return [3 /*break*/, 3];
|
|
8264
9627
|
case 3: return [2 /*return*/];
|
|
8265
9628
|
}
|
|
@@ -9043,7 +10406,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
9043
10406
|
var emailInputValid = false;
|
|
9044
10407
|
function submitEmailChange(e) {
|
|
9045
10408
|
return __awaiter(this, void 0, void 0, function () {
|
|
9046
|
-
var message,
|
|
10409
|
+
var message, err_18;
|
|
9047
10410
|
return __generator(this, function (_a) {
|
|
9048
10411
|
switch (_a.label) {
|
|
9049
10412
|
case 0:
|
|
@@ -9060,8 +10423,8 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
9060
10423
|
$$invalidate(8, profileLoader = false);
|
|
9061
10424
|
return [3 /*break*/, 4];
|
|
9062
10425
|
case 3:
|
|
9063
|
-
|
|
9064
|
-
window.$memberstackDom._showMessage(
|
|
10426
|
+
err_18 = _a.sent();
|
|
10427
|
+
window.$memberstackDom._showMessage(err_18.message, true);
|
|
9065
10428
|
$$invalidate(8, profileLoader = false);
|
|
9066
10429
|
return [3 /*break*/, 4];
|
|
9067
10430
|
case 4: return [2 /*return*/];
|
|
@@ -9071,7 +10434,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
9071
10434
|
}
|
|
9072
10435
|
function disconnectProvider(provider) {
|
|
9073
10436
|
return __awaiter(this, void 0, void 0, function () {
|
|
9074
|
-
var _a, data, message,
|
|
10437
|
+
var _a, data, message, err_19;
|
|
9075
10438
|
return __generator(this, function (_b) {
|
|
9076
10439
|
switch (_b.label) {
|
|
9077
10440
|
case 0:
|
|
@@ -9087,8 +10450,8 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
9087
10450
|
$$invalidate(8, profileLoader = false);
|
|
9088
10451
|
return [3 /*break*/, 4];
|
|
9089
10452
|
case 3:
|
|
9090
|
-
|
|
9091
|
-
window.$memberstackDom._showMessage(
|
|
10453
|
+
err_19 = _b.sent();
|
|
10454
|
+
window.$memberstackDom._showMessage(err_19.message, true);
|
|
9092
10455
|
$$invalidate(8, profileLoader = false);
|
|
9093
10456
|
return [3 /*break*/, 4];
|
|
9094
10457
|
case 4: return [2 /*return*/];
|
|
@@ -9098,7 +10461,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
9098
10461
|
}
|
|
9099
10462
|
function connectAdditionalProvider(provider) {
|
|
9100
10463
|
return __awaiter(this, void 0, void 0, function () {
|
|
9101
|
-
var data,
|
|
10464
|
+
var data, err_20;
|
|
9102
10465
|
return __generator(this, function (_a) {
|
|
9103
10466
|
switch (_a.label) {
|
|
9104
10467
|
case 0:
|
|
@@ -9113,8 +10476,8 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
9113
10476
|
window.$memberstackDom._showMessage(data.message, false);
|
|
9114
10477
|
return [3 /*break*/, 4];
|
|
9115
10478
|
case 3:
|
|
9116
|
-
|
|
9117
|
-
window.$memberstackDom._showMessage(
|
|
10479
|
+
err_20 = _a.sent();
|
|
10480
|
+
window.$memberstackDom._showMessage(err_20.message, true);
|
|
9118
10481
|
return [3 /*break*/, 4];
|
|
9119
10482
|
case 4: return [2 /*return*/];
|
|
9120
10483
|
}
|
|
@@ -9431,7 +10794,7 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
9431
10794
|
var confirmPasswordValid = false;
|
|
9432
10795
|
function submitPasswordChange(e) {
|
|
9433
10796
|
return __awaiter(this, void 0, void 0, function () {
|
|
9434
|
-
var message, msg, msg,
|
|
10797
|
+
var message, msg, msg, err_21;
|
|
9435
10798
|
return __generator(this, function (_a) {
|
|
9436
10799
|
switch (_a.label) {
|
|
9437
10800
|
case 0:
|
|
@@ -9471,8 +10834,8 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
9471
10834
|
$$invalidate(8, profileLoader = false);
|
|
9472
10835
|
return [3 /*break*/, 7];
|
|
9473
10836
|
case 6:
|
|
9474
|
-
|
|
9475
|
-
window.$memberstackDom._showMessage(
|
|
10837
|
+
err_21 = _a.sent();
|
|
10838
|
+
window.$memberstackDom._showMessage(err_21.message, true);
|
|
9476
10839
|
$$invalidate(8, profileLoader = false);
|
|
9477
10840
|
return [3 /*break*/, 7];
|
|
9478
10841
|
case 7: return [2 /*return*/];
|
|
@@ -10344,10 +11707,10 @@ var MobileProfileModal = /** @class */ (function (_super) {
|
|
|
10344
11707
|
}(SvelteComponent));
|
|
10345
11708
|
/* src/Main.svelte generated by Svelte v3.48.0 */
|
|
10346
11709
|
function add_css(target) {
|
|
10347
|
-
append_styles(target, "svelte-3agguo", "@import url(\"https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap\");.svelte-3agguo{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#msOverlay.svelte-3agguo{position:fixed;display:flex;justify-content:center;align-items:center;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.5);z-index:99999;overflow:scroll;font-family:\"Plus Jakarta Sans\", sans-serif;padding:5vh 5vw}.--hide{display:none}.--flex-h-center{display:flex;align-items:center}.ms__loader{position:relative;z-index:10000000}#msLoader path{fill:#007ace}.ms__profile__loader{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background:rgb(255 255 255 / 75%)}.ms-modal{box-sizing:border-box;margin:auto;min-width:0;position:relative;outline:none;background:white;border-radius:16px;box-shadow:2px 2px 12px rgb(0 0 0 / 10%);width:360px;color:rgb(10, 10, 10)}.ms-modal--profile{width:700px}.ms-modal__close{box-sizing:border-box;margin:0;min-width:0;position:absolute;top:16px;right:16px;z-index:10;line-height:0}.ms-modal__close button{appearance:none;padding:0;outline:none;width:12px;border:0;background:transparent;cursor:pointer;color:#5c5c5c}.ms-modal__close button:hover{color:#0a0a0a}.ms-modal__back{box-sizing:border-box;margin:0;min-width:0;position:absolute;top:16px;left:16px;z-index:10;line-height:0}.ms-modal__back button{appearance:none;padding:0;outline:none;width:12px;border:0;background:transparent;cursor:pointer;color:#5c5c5c}.ms-modal__back button:hover, .ms-modal__profile-back\n button:hover{color:#0a0a0a}.ms-modal__back svg{height:12px}.ms-modal__profile-back button{appearance:none;padding:5px;margin-right:6px;outline:none;width:25px;height:25px;border:0;background:transparent;cursor:pointer;color:#5c5c5c;display:flex;align-items:stretch;justify-content:center}.ms-modal__profile-back--mobile{box-sizing:border-box;margin:0;min-width:0;position:absolute;top:16px;left:16px;z-index:10;line-height:0}.ms-modal__profile-back--mobile button{appearance:none;padding:0;outline:none;height:11px;width:7px;border:0;background:transparent;cursor:pointer;color:#5c5c5c}.ms-modal__profile-back--mobile button:hover{color:#0a0a0a}.ms-modal__header{display:flex;align-items:center;padding:12px}.ms-modal__header--mobile{display:flex;padding:42px 42px 16px 42px;flex-direction:column;flex-wrap:wrap;justify-content:center;align-items:center}.ms-modal__header--center{display:flex;flex-direction:column;flex-wrap:wrap;justify-content:center;align-items:center}.ms-modal__content{padding:28px 28px 20px;width:100%;box-sizing:border-box;margin:0 auto}.ms-modal__content--profile{padding:0;display:flex;flex-wrap:wrap;align-content:stretch;align-items:stretch;border-top:1px solid #dddddd}.ms-modal__content-left{display:flex;flex-direction:column;align-items:flex-start;padding:20px;border-right:1px solid #dddddd;min-width:160px}.ms-modal__content-right{padding:20px;flex-grow:1;height:55vh;min-height:300px;overflow-y:auto;position:relative;transition:height 0.3s ease-in-out}.ms-modal__content--mobile{padding:12px;flex-grow:1;height:42vh;min-height:300px;overflow-y:auto;position:relative;transition:height 0.3s ease-in-out}.ms-modal__mobile-profile-nav{display:flex;flex-direction:column;align-content:center;align-items:stretch;flex-wrap:nowrap}.ms-modal__mobile-profile-nav button{display:flex;flex-direction:row;align-content:center;align-items:center;flex-wrap:nowrap;justify-content:space-between;padding:12px;width:100%;margin-bottom:10px}.ms-modal__figure{margin:8px auto;display:flex;position:relative;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;flex-shrink:0;line-height:1}.ms-modal__figure--profile{width:24px;height:24px;padding:0px;margin:0px 8px 0px 0px}.ms-modal__figure--mobile{margin:0px 0px 8px 0px}.ms-modal__figure img, .ms-modal__figure svg{width:auto;height:100%;max-height:42px;text-align:center;object-fit:cover;color:transparent}.ms-modal__title-container{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.ms-modal__title{margin-bottom:36px;margin-top:0;text-align:center;font-size:24px;line-height:32px;font-weight:700}.ms-modal__title--profile{margin-bottom:0px}.ms-modal__title-group{display:flex;align-items:center}.ms-modal__title--sub-text{margin-bottom:8px}.ms-modal__text{font-weight:500;font-size:16px;line-height:28px;text-align:center;margin:0 0 20px 0}.ms-modal__regular-button{color:#fff;padding:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer;display:flex;align-items:center}.ms-modal__regular-button svg{height:16px;margin-left:6px}.ms-modal__regular-button--left-icon svg{margin-right:6px;margin-left:0px}.ms-modal__regular-button--right-icon svg{margin-left:6px;margin-right:0px}.ms-modal__regular-button--margin-right{margin-right:12px}.ms-modal__text-button{color:#fff;background-color:transparent;padding:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer;display:flex;align-items:center}.ms-modal__card{box-shadow:0 0 #0000, 0 0 #0000, 0 0 #0000, 0 0 #0000,\n 0px 2px 2px rgba(0, 0, 0, 0.04);padding:12px;display:flex;flex-direction:row;margin-bottom:12px;border:1px solid rgb(221, 221, 221);border-radius:10px;box-sizing:border-box;width:100%;cursor:default;background:rgb(255, 255, 255);align-items:center;justify-content:space-between}.ms-form{width:100%}.ms-form__group{margin-bottom:20px}.ms-form__flex{display:flex;justify-content:space-between;align-content:center}.ms-form__flex--centered{justify-content:center}.ms-form__label{margin-bottom:4px;margin-top:0px;font-size:14px;line-height:24px;font-weight:700;text-align:left}.ms-form__fieldset{display:flex;justify-content:space-between;padding:0;border:none}.ms-form__input{box-sizing:border-box;margin:0px;border:1px solid rgb(201, 201, 201);border-radius:6px;font-size:16px;font-weight:400;padding:15px;width:100%}.ms-form__password-container{display:flex;justify-content:space-between;align-content:center;box-sizing:border-box;margin:0px;border:1px solid rgb(201, 201, 201);border-radius:6px;width:100%}.ms-form__password-container:focus-within{border:1px solid rgb(0, 68, 252);outline:rgb(0, 68, 252) solid 1px}.ms-form__password-container:focus-within input{outline:none;border-color:rgb(201, 201, 201);box-shadow:none}.ms-form__input--password{border:none}.ms-form__input--token{font-weight:500;font-size:24.19px;line-height:32px;text-align:center;color:#000000;padding:9px;max-width:42px}.ms-form__show-toggle{cursor:pointer;background:transparent;border-radius:0px 6px 6px 0px;padding:0px 8px;display:flex;align-items:center}.ms-form__eye{display:block;width:22px}.ms-form__eye-slash{display:block;width:22px}.ms-form__error{font-weight:500;font-size:12px;line-height:16px;color:#e40023;margin-top:4px;display:flex;align-items:baseline}.ms-form__error svg{width:10px;height:10px;margin-right:5px}.ms-form__label--right a{color:rgb(10, 10, 10) !important;text-decoration:none;font-weight:400}.ms-form__button{border-radius:6px;font-weight:700;font-size:16px;padding-left:22px;padding-right:22px;height:52px;border:none;display:block;width:100%;background-color:rgb(41, 98, 255);color:#fff;transition:background-color 0.5s ease;cursor:pointer}.ms-form__button:hover{background-color:#0745ff}.ms-form__button:disabled{background-color:#96c0fe;color:#fff;pointer-events:none;display:flex;justify-content:center;align-items:center}.ms-form__button--text{background-color:transparent;padding:0px;height:auto;margin-bottom:0px;margin-top:0px;font-size:14px;line-height:28px;font-weight:500;color:#0a0a0a;opacity:0.8}.ms-form__button--text:hover{background-color:transparent}.ms-form__button--top-spacing{margin-top:10px}#msFormLoader path{fill:#fff}a.ms-form__link, div.ms-form__link{margin-top:8px;font-weight:500;font-size:14px;line-height:24px;color:rgb(10, 10, 10) !important;text-decoration:none;opacity:0.8;cursor:pointer}.ms-modal__cancel-button{background:#f6f6f6;color:#828282;padding:8px;margin-right:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer}.ms-modal__save-button{background:#2962ff;color:#fff;padding:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer}.ms-modal__save-button:disabled{background:#80a1fc;color:#fff;cursor:default}.ms-modal__save-button--large{padding:12px;font-weight:700;font-size:14px;line-height:16px;width:100%}.ms-modal__outline-button{display:block !important;background:#fff;color:#0a0a0a;font-weight:700;font-size:14px;line-height:16px;padding:12px;margin-right:8px;border-radius:4px;border:1px solid #dddddd;cursor:pointer}.ms-modal__outline-button svg{display:inline !important;height:15px;margin-right:6px}.ms-modal__outline-button--mobile{width:100%}.ms-modal__button-label{margin-bottom:4px;margin-top:0px;font-size:14px;line-height:28px;font-weight:500}.ms-modal__profile-option{cursor:pointer;margin-bottom:20px;font-weight:500;font-size:16px;line-height:28px;background:transparent;border:none;padding:0px}.ms-modal__profile-option svg{display:inline !important;height:14px;margin-right:8px}.ms-modal__profile-option:hover{color:#2962ff}.ms-modal__profile-option--active{color:#2962ff}.ms-modal__social-button{display:flex;align-items:center;justify-content:center;width:100%;height:52px;border-radius:6px;font-weight:700;font-size:16px;line-height:28px;color:#0a0a0a;background:none;border:1px solid #c9c9c9;cursor:pointer;margin-bottom:8px}.ms-modal__social-button img{height:16px;margin-right:8px}.ms-modal__social-button[disabled]{background:#f6f6f6}.ms-modal__social-divider{display:flex;align-items:center;margin:20px 0px}.ms-modal__divider-line{text-align:center;background:#dddddd;height:1px;width:100%}.ms-modal__divider-text{padding:0px 4px}.ms-modal__footer{text-align:center;width:100%;box-sizing:border-box;margin:0;min-width:0;background:#f6f6f6;padding-top:10px;padding-bottom:10px;border-bottom-left-radius:16px;border-bottom-right-radius:16px;border-top:1px solid;border-top-color:#dddddd;font-size:12px;line-height:16px;font-weight:500}.ms-modal__footer a{color:rgb(10, 10, 10);text-decoration:none;display:flex;justify-content:center;align-items:center}.ms-modal__footer svg{height:12px;width:12px;margin-right:5.5px}");
|
|
11710
|
+
append_styles(target, "svelte-12czw1s", "@import url(\"https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap\");.svelte-12czw1s{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#msOverlay.svelte-12czw1s{position:fixed;display:flex;justify-content:center;align-items:center;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.5);z-index:99999;overflow:scroll;font-family:\"Plus Jakarta Sans\", sans-serif;padding:5vh 5vw}.--hide{display:none}.--flex-h-center{display:flex;align-items:center}.ms__loader{position:relative;z-index:10000000}#msLoader path{fill:#007ace}.ms__profile__loader{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background:rgb(255 255 255 / 75%)}.ms-modal{box-sizing:border-box;margin:auto;min-width:0;position:relative;outline:none;background:white;border-radius:16px;box-shadow:2px 2px 12px rgb(0 0 0 / 10%);width:360px;color:rgb(10, 10, 10)}.ms-modal--profile{width:700px}.ms-modal__close{box-sizing:border-box;margin:0;min-width:0;position:absolute;top:16px;right:16px;z-index:10;line-height:0}.ms-modal__close button{appearance:none;padding:0;outline:none;width:12px;border:0;background:transparent;cursor:pointer;color:#5c5c5c}.ms-modal__close button:hover{color:#0a0a0a}.ms-modal__back{box-sizing:border-box;margin:0;min-width:0;position:absolute;top:16px;left:16px;z-index:10;line-height:0}.ms-modal__back button{appearance:none;padding:0;outline:none;width:12px;border:0;background:transparent;cursor:pointer;color:#5c5c5c}.ms-modal__back button:hover, .ms-modal__profile-back\n button:hover{color:#0a0a0a}.ms-modal__back svg{height:12px}.ms-modal__profile-back button{appearance:none;padding:5px;margin-right:6px;outline:none;width:25px;height:25px;border:0;background:transparent;cursor:pointer;color:#5c5c5c;display:flex;align-items:stretch;justify-content:center}.ms-modal__profile-back--mobile{box-sizing:border-box;margin:0;min-width:0;position:absolute;top:16px;left:16px;z-index:10;line-height:0}.ms-modal__profile-back--mobile button{appearance:none;padding:0;outline:none;height:11px;width:7px;border:0;background:transparent;cursor:pointer;color:#5c5c5c}.ms-modal__profile-back--mobile button:hover{color:#0a0a0a}.ms-modal__header{display:flex;align-items:center;padding:12px}.ms-modal__header--mobile{display:flex;padding:42px 42px 16px 42px;flex-direction:column;flex-wrap:wrap;justify-content:center;align-items:center}.ms-modal__header--center{display:flex;flex-direction:column;flex-wrap:wrap;justify-content:center;align-items:center}.ms-modal__content{padding:28px 28px 20px;width:100%;box-sizing:border-box;margin:0 auto}.ms-modal__content--profile{padding:0;display:flex;flex-wrap:wrap;align-content:stretch;align-items:stretch;border-top:1px solid #dddddd}.ms-modal__content-left{display:flex;flex-direction:column;align-items:flex-start;padding:20px;border-right:1px solid #dddddd;min-width:160px}.ms-modal__content-right{padding:20px;flex-grow:1;height:55vh;min-height:300px;overflow-y:auto;position:relative;transition:height 0.3s ease-in-out}.ms-modal__content--mobile{padding:12px;flex-grow:1;height:42vh;min-height:300px;overflow-y:auto;position:relative;transition:height 0.3s ease-in-out}.ms-modal__mobile-profile-nav{display:flex;flex-direction:column;align-content:center;align-items:stretch;flex-wrap:nowrap}.ms-modal__mobile-profile-nav button{display:flex;flex-direction:row;align-content:center;align-items:center;flex-wrap:nowrap;justify-content:space-between;padding:12px;width:100%;margin-bottom:10px}.ms-modal__figure{margin:8px auto;display:flex;position:relative;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;flex-shrink:0;line-height:1}.ms-modal__figure--profile{width:24px;height:24px;padding:0px;margin:0px 8px 0px 0px}.ms-modal__figure--mobile{margin:0px 0px 8px 0px}.ms-modal__figure img, .ms-modal__figure svg{width:auto;height:100%;max-height:42px;text-align:center;object-fit:cover;color:transparent}.ms-modal__title-container{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.ms-modal__title{margin-bottom:36px;margin-top:0;text-align:center;font-size:24px;line-height:32px;font-weight:700}.ms-modal__title--profile{margin-bottom:0px}.ms-modal__title-group{display:flex;align-items:center}.ms-modal__title--sub-text{margin-bottom:8px}.ms-modal__text{font-weight:500;font-size:16px;line-height:28px;text-align:center;margin:0 0 20px 0}.ms-modal__regular-button{color:#fff;padding:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer;display:flex;align-items:center}.ms-modal__regular-button svg{height:16px;margin-left:6px}.ms-modal__regular-button--left-icon svg{margin-right:6px;margin-left:0px}.ms-modal__regular-button--right-icon svg{margin-left:6px;margin-right:0px}.ms-modal__regular-button--margin-right{margin-right:12px}.ms-modal__text-button{color:#fff;background-color:transparent;padding:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer;display:flex;align-items:center}.ms-modal__card{box-shadow:0 0 #0000, 0 0 #0000, 0 0 #0000, 0 0 #0000,\n 0px 2px 2px rgba(0, 0, 0, 0.04);padding:12px;display:flex;flex-direction:row;margin-bottom:12px;border:1px solid rgb(221, 221, 221);border-radius:10px;box-sizing:border-box;width:100%;cursor:default;background:rgb(255, 255, 255);align-items:center;justify-content:space-between}.ms-form{width:100%}.ms-form__group{margin-bottom:20px}.ms-form__flex{display:flex;justify-content:space-between;align-content:center}.ms-form__flex--centered{justify-content:center}.ms-form__label{margin-bottom:4px;margin-top:0px;font-size:14px;line-height:24px;font-weight:700;text-align:left}.ms-form__fieldset{display:flex;justify-content:space-between;padding:0;border:none}.ms-form__input{box-sizing:border-box;margin:0px;border:1px solid rgb(201, 201, 201);border-radius:6px;font-size:16px;font-weight:400;padding:15px;width:100%}.ms-form__password-container{display:flex;justify-content:space-between;align-content:center;box-sizing:border-box;margin:0px;border:1px solid rgb(201, 201, 201);border-radius:6px;width:100%}.ms-form__password-container:focus-within{border:1px solid rgb(0, 68, 252);outline:rgb(0, 68, 252) solid 1px}.ms-form__password-container:focus-within input{outline:none;border-color:rgb(201, 201, 201);box-shadow:none}.ms-form__input--password{border:none}.ms-form__input--token{font-weight:500;font-size:24.19px;line-height:32px;text-align:center;color:#000000;padding:9px;max-width:42px}.ms-form__show-toggle{cursor:pointer;background:transparent;border-radius:0px 6px 6px 0px;padding:0px 8px;display:flex;align-items:center}.ms-form__eye{display:block;width:22px}.ms-form__eye-slash{display:block;width:22px}.ms-form__error{font-weight:500;font-size:12px;line-height:16px;color:#e40023;margin-top:4px;display:flex;align-items:baseline}.ms-form__error svg{width:10px;height:10px;margin-right:5px}.ms-form__label--right a{color:rgb(10, 10, 10) !important;text-decoration:none;font-weight:400}.ms-form__button{border-radius:6px;font-weight:700;font-size:16px;padding-left:22px;padding-right:22px;height:52px;border:none;display:block;width:100%;background-color:rgb(41, 98, 255);color:#fff;transition:background-color 0.5s ease;cursor:pointer}.ms-form__button:hover{background-color:#0745ff}.ms-form__button:disabled{background-color:#96c0fe;color:#fff;pointer-events:none;display:flex;justify-content:center;align-items:center}.ms-form__button--text{background-color:transparent;padding:0px;height:auto;margin-bottom:0px;margin-top:0px;font-size:14px;line-height:28px;font-weight:500;color:#0a0a0a;opacity:0.8}.ms-form__button--text:hover{background-color:transparent}.ms-form__button--top-spacing{margin-top:10px}#msFormLoader path{fill:#fff}a.ms-form__link, div.ms-form__link{margin-top:8px;font-weight:500;font-size:14px;line-height:24px;color:rgb(10, 10, 10) !important;text-decoration:none;opacity:0.8;cursor:pointer}.ms-modal__cancel-button{background:#f6f6f6;color:#828282;padding:8px;margin-right:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer}.ms-modal__save-button{background:#2962ff;color:#fff;padding:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer}.ms-modal__save-button:disabled{background:#80a1fc;color:#fff;cursor:default}.ms-modal__save-button--large{padding:12px;font-weight:700;font-size:14px;line-height:16px;width:100%}.ms-modal__outline-button{display:block !important;background:#fff;color:#0a0a0a;font-weight:700;font-size:14px;line-height:16px;padding:12px;margin-right:8px;border-radius:4px;border:1px solid #dddddd;cursor:pointer}.ms-modal__outline-button svg{display:inline !important;height:15px;margin-right:6px}.ms-modal__outline-button--mobile{width:100%}.ms-modal__button-label{margin-bottom:4px;margin-top:0px;font-size:14px;line-height:28px;font-weight:500}.ms-modal__profile-option{cursor:pointer;margin-bottom:20px;font-weight:500;font-size:16px;line-height:28px;background:transparent;border:none;padding:0px}.ms-modal__profile-option svg{display:inline !important;height:14px;margin-right:8px}.ms-modal__profile-option:hover{color:#2962ff}.ms-modal__profile-option--active{color:#2962ff}.ms-modal__social-button{display:flex;align-items:center;justify-content:center;width:100%;height:52px;border-radius:6px;font-weight:700;font-size:16px;line-height:28px;color:#0a0a0a;background:none;border:1px solid #c9c9c9;cursor:pointer;margin-bottom:8px}.ms-modal__social-button img, .ms-modal__social-button svg{height:16px;margin-right:8px}.ms-modal__social-button[disabled]{background:#f6f6f6}.ms-modal__social-divider{display:flex;align-items:center;margin:20px 0px}.ms-modal__divider-line{text-align:center;background:#dddddd;height:1px;width:100%}.ms-modal__divider-text{padding:0px 4px}.ms-modal__footer{text-align:center;width:100%;box-sizing:border-box;margin:0;min-width:0;background:#f6f6f6;padding-top:10px;padding-bottom:10px;border-bottom-left-radius:16px;border-bottom-right-radius:16px;border-top:1px solid;border-top-color:#dddddd;font-size:12px;line-height:16px;font-weight:500}.ms-modal__footer a{color:rgb(10, 10, 10);text-decoration:none;display:flex;justify-content:center;align-items:center}.ms-modal__footer svg{height:12px;width:12px;margin-right:5.5px}");
|
|
10348
11711
|
}
|
|
10349
|
-
// (
|
|
10350
|
-
function
|
|
11712
|
+
// (99:36)
|
|
11713
|
+
function create_if_block_7(ctx) {
|
|
10351
11714
|
var mediaquery;
|
|
10352
11715
|
var current;
|
|
10353
11716
|
mediaquery = new MediaQuery({
|
|
@@ -10358,11 +11721,11 @@ function create_if_block_6(ctx) {
|
|
|
10358
11721
|
create_default_slot,
|
|
10359
11722
|
function (_a) {
|
|
10360
11723
|
var matches = _a.matches;
|
|
10361
|
-
return ({
|
|
11724
|
+
return ({ 24: matches });
|
|
10362
11725
|
},
|
|
10363
11726
|
function (_a) {
|
|
10364
11727
|
var matches = _a.matches;
|
|
10365
|
-
return matches ?
|
|
11728
|
+
return matches ? 16777216 : 0;
|
|
10366
11729
|
}
|
|
10367
11730
|
]
|
|
10368
11731
|
},
|
|
@@ -10379,7 +11742,7 @@ function create_if_block_6(ctx) {
|
|
|
10379
11742
|
},
|
|
10380
11743
|
p: function (ctx, dirty) {
|
|
10381
11744
|
var mediaquery_changes = {};
|
|
10382
|
-
if (dirty & /*$$scope, onSuccess, member, display, matches*/
|
|
11745
|
+
if (dirty & /*$$scope, onSuccess, member, display, matches*/ 50331661) {
|
|
10383
11746
|
mediaquery_changes.$$scope = { dirty: dirty, ctx: ctx };
|
|
10384
11747
|
}
|
|
10385
11748
|
mediaquery.$set(mediaquery_changes);
|
|
@@ -10399,7 +11762,71 @@ function create_if_block_6(ctx) {
|
|
|
10399
11762
|
}
|
|
10400
11763
|
};
|
|
10401
11764
|
}
|
|
10402
|
-
// (
|
|
11765
|
+
// (97:47)
|
|
11766
|
+
function create_if_block_6(ctx) {
|
|
11767
|
+
var passwordlesstokenmodal;
|
|
11768
|
+
var updating_display;
|
|
11769
|
+
var updating_params;
|
|
11770
|
+
var current;
|
|
11771
|
+
function passwordlesstokenmodal_display_binding(value) {
|
|
11772
|
+
/*passwordlesstokenmodal_display_binding*/ ctx[16](value);
|
|
11773
|
+
}
|
|
11774
|
+
function passwordlesstokenmodal_params_binding(value) {
|
|
11775
|
+
/*passwordlesstokenmodal_params_binding*/ ctx[17](value);
|
|
11776
|
+
}
|
|
11777
|
+
var passwordlesstokenmodal_props = {
|
|
11778
|
+
closeModal: /*closeModal*/ ctx[5],
|
|
11779
|
+
onSuccess: /*onSuccess*/ ctx[2]
|
|
11780
|
+
};
|
|
11781
|
+
if ( /*display*/ctx[0] !== void 0) {
|
|
11782
|
+
passwordlesstokenmodal_props.display = /*display*/ ctx[0];
|
|
11783
|
+
}
|
|
11784
|
+
if ( /*params*/ctx[1] !== void 0) {
|
|
11785
|
+
passwordlesstokenmodal_props.params = /*params*/ ctx[1];
|
|
11786
|
+
}
|
|
11787
|
+
passwordlesstokenmodal = new PasswordlessTokenModal({ props: passwordlesstokenmodal_props });
|
|
11788
|
+
binding_callbacks.push(function () { return bind(passwordlesstokenmodal, 'display', passwordlesstokenmodal_display_binding); });
|
|
11789
|
+
binding_callbacks.push(function () { return bind(passwordlesstokenmodal, 'params', passwordlesstokenmodal_params_binding); });
|
|
11790
|
+
return {
|
|
11791
|
+
c: function () {
|
|
11792
|
+
create_component(passwordlesstokenmodal.$$.fragment);
|
|
11793
|
+
},
|
|
11794
|
+
m: function (target, anchor) {
|
|
11795
|
+
mount_component(passwordlesstokenmodal, target, anchor);
|
|
11796
|
+
current = true;
|
|
11797
|
+
},
|
|
11798
|
+
p: function (ctx, dirty) {
|
|
11799
|
+
var passwordlesstokenmodal_changes = {};
|
|
11800
|
+
if (dirty & /*onSuccess*/ 4)
|
|
11801
|
+
passwordlesstokenmodal_changes.onSuccess = /*onSuccess*/ ctx[2];
|
|
11802
|
+
if (!updating_display && dirty & /*display*/ 1) {
|
|
11803
|
+
updating_display = true;
|
|
11804
|
+
passwordlesstokenmodal_changes.display = /*display*/ ctx[0];
|
|
11805
|
+
add_flush_callback(function () { return updating_display = false; });
|
|
11806
|
+
}
|
|
11807
|
+
if (!updating_params && dirty & /*params*/ 2) {
|
|
11808
|
+
updating_params = true;
|
|
11809
|
+
passwordlesstokenmodal_changes.params = /*params*/ ctx[1];
|
|
11810
|
+
add_flush_callback(function () { return updating_params = false; });
|
|
11811
|
+
}
|
|
11812
|
+
passwordlesstokenmodal.$set(passwordlesstokenmodal_changes);
|
|
11813
|
+
},
|
|
11814
|
+
i: function (local) {
|
|
11815
|
+
if (current)
|
|
11816
|
+
return;
|
|
11817
|
+
transition_in(passwordlesstokenmodal.$$.fragment, local);
|
|
11818
|
+
current = true;
|
|
11819
|
+
},
|
|
11820
|
+
o: function (local) {
|
|
11821
|
+
transition_out(passwordlesstokenmodal.$$.fragment, local);
|
|
11822
|
+
current = false;
|
|
11823
|
+
},
|
|
11824
|
+
d: function (detaching) {
|
|
11825
|
+
destroy_component(passwordlesstokenmodal, detaching);
|
|
11826
|
+
}
|
|
11827
|
+
};
|
|
11828
|
+
}
|
|
11829
|
+
// (95:51)
|
|
10403
11830
|
function create_if_block_5(ctx) {
|
|
10404
11831
|
var passwordsuccessmodal;
|
|
10405
11832
|
var updating_display;
|
|
@@ -10445,7 +11872,7 @@ function create_if_block_5(ctx) {
|
|
|
10445
11872
|
}
|
|
10446
11873
|
};
|
|
10447
11874
|
}
|
|
10448
|
-
// (
|
|
11875
|
+
// (93:43)
|
|
10449
11876
|
function create_if_block_4(ctx) {
|
|
10450
11877
|
var passwordtokenmodal;
|
|
10451
11878
|
var updating_display;
|
|
@@ -10496,7 +11923,7 @@ function create_if_block_4(ctx) {
|
|
|
10496
11923
|
}
|
|
10497
11924
|
};
|
|
10498
11925
|
}
|
|
10499
|
-
// (
|
|
11926
|
+
// (91:44)
|
|
10500
11927
|
function create_if_block_3(ctx) {
|
|
10501
11928
|
var passwordresetmodal;
|
|
10502
11929
|
var updating_display;
|
|
@@ -10542,7 +11969,7 @@ function create_if_block_3(ctx) {
|
|
|
10542
11969
|
}
|
|
10543
11970
|
};
|
|
10544
11971
|
}
|
|
10545
|
-
// (
|
|
11972
|
+
// (89:35)
|
|
10546
11973
|
function create_if_block_2(ctx) {
|
|
10547
11974
|
var signupmodal;
|
|
10548
11975
|
var updating_display;
|
|
@@ -10606,7 +12033,7 @@ function create_if_block_2(ctx) {
|
|
|
10606
12033
|
}
|
|
10607
12034
|
};
|
|
10608
12035
|
}
|
|
10609
|
-
// (
|
|
12036
|
+
// (87:4) {#if display === "login"}
|
|
10610
12037
|
function create_if_block_1(ctx) {
|
|
10611
12038
|
var loginmodal;
|
|
10612
12039
|
var updating_display;
|
|
@@ -10670,7 +12097,7 @@ function create_if_block_1(ctx) {
|
|
|
10670
12097
|
}
|
|
10671
12098
|
};
|
|
10672
12099
|
}
|
|
10673
|
-
// (
|
|
12100
|
+
// (84:2) {#if showLoader}
|
|
10674
12101
|
function create_if_block(ctx) {
|
|
10675
12102
|
var loader;
|
|
10676
12103
|
var current;
|
|
@@ -10699,13 +12126,13 @@ function create_if_block(ctx) {
|
|
|
10699
12126
|
}
|
|
10700
12127
|
};
|
|
10701
12128
|
}
|
|
10702
|
-
// (
|
|
12129
|
+
// (103:8) {:else}
|
|
10703
12130
|
function create_else_block(ctx) {
|
|
10704
12131
|
var profilemodal;
|
|
10705
12132
|
var updating_display;
|
|
10706
12133
|
var current;
|
|
10707
12134
|
function profilemodal_display_binding(value) {
|
|
10708
|
-
/*profilemodal_display_binding*/ ctx[
|
|
12135
|
+
/*profilemodal_display_binding*/ ctx[19](value);
|
|
10709
12136
|
}
|
|
10710
12137
|
var profilemodal_props = {
|
|
10711
12138
|
closeModal: /*closeModal*/ ctx[5],
|
|
@@ -10753,13 +12180,13 @@ function create_else_block(ctx) {
|
|
|
10753
12180
|
}
|
|
10754
12181
|
};
|
|
10755
12182
|
}
|
|
10756
|
-
// (
|
|
10757
|
-
function
|
|
12183
|
+
// (101:8) {#if matches}
|
|
12184
|
+
function create_if_block_8(ctx) {
|
|
10758
12185
|
var mobileprofilemodal;
|
|
10759
12186
|
var updating_display;
|
|
10760
12187
|
var current;
|
|
10761
12188
|
function mobileprofilemodal_display_binding(value) {
|
|
10762
|
-
/*mobileprofilemodal_display_binding*/ ctx[
|
|
12189
|
+
/*mobileprofilemodal_display_binding*/ ctx[18](value);
|
|
10763
12190
|
}
|
|
10764
12191
|
var mobileprofilemodal_props = {
|
|
10765
12192
|
closeModal: /*closeModal*/ ctx[5],
|
|
@@ -10807,16 +12234,16 @@ function create_if_block_7(ctx) {
|
|
|
10807
12234
|
}
|
|
10808
12235
|
};
|
|
10809
12236
|
}
|
|
10810
|
-
// (
|
|
12237
|
+
// (100:6) <MediaQuery query="(max-width: 520px)" let:matches>
|
|
10811
12238
|
function create_default_slot(ctx) {
|
|
10812
12239
|
var current_block_type_index;
|
|
10813
12240
|
var if_block;
|
|
10814
12241
|
var if_block_anchor;
|
|
10815
12242
|
var current;
|
|
10816
|
-
var if_block_creators = [
|
|
12243
|
+
var if_block_creators = [create_if_block_8, create_else_block];
|
|
10817
12244
|
var if_blocks = [];
|
|
10818
12245
|
function select_block_type_1(ctx, dirty) {
|
|
10819
|
-
if ( /*matches*/ctx[
|
|
12246
|
+
if ( /*matches*/ctx[24])
|
|
10820
12247
|
return 0;
|
|
10821
12248
|
return 1;
|
|
10822
12249
|
}
|
|
@@ -10887,7 +12314,8 @@ function create_fragment(ctx) {
|
|
|
10887
12314
|
create_if_block_3,
|
|
10888
12315
|
create_if_block_4,
|
|
10889
12316
|
create_if_block_5,
|
|
10890
|
-
create_if_block_6
|
|
12317
|
+
create_if_block_6,
|
|
12318
|
+
create_if_block_7
|
|
10891
12319
|
];
|
|
10892
12320
|
var if_blocks = [];
|
|
10893
12321
|
function select_block_type(ctx, dirty) {
|
|
@@ -10903,8 +12331,10 @@ function create_fragment(ctx) {
|
|
|
10903
12331
|
return 4;
|
|
10904
12332
|
if ( /*display*/ctx[0] === "reset_password_success")
|
|
10905
12333
|
return 5;
|
|
10906
|
-
if ( /*display*/ctx[0] === "
|
|
12334
|
+
if ( /*display*/ctx[0] === "passwordless_token")
|
|
10907
12335
|
return 6;
|
|
12336
|
+
if ( /*display*/ctx[0] === "profile")
|
|
12337
|
+
return 7;
|
|
10908
12338
|
return -1;
|
|
10909
12339
|
}
|
|
10910
12340
|
if (~(current_block_type_index = select_block_type(ctx))) {
|
|
@@ -10916,7 +12346,7 @@ function create_fragment(ctx) {
|
|
|
10916
12346
|
if (if_block)
|
|
10917
12347
|
if_block.c();
|
|
10918
12348
|
attr(main, "id", "msOverlay");
|
|
10919
|
-
attr(main, "class", "svelte-
|
|
12349
|
+
attr(main, "class", "svelte-12czw1s");
|
|
10920
12350
|
},
|
|
10921
12351
|
m: function (target, anchor) {
|
|
10922
12352
|
insert(target, main, anchor);
|
|
@@ -10987,7 +12417,7 @@ function create_fragment(ctx) {
|
|
|
10987
12417
|
function instance($$self, $$props, $$invalidate) {
|
|
10988
12418
|
var _this = this;
|
|
10989
12419
|
var showLoader;
|
|
10990
|
-
var _a = $$props.display, display = _a === void 0 ? "login" : _a;
|
|
12420
|
+
var _a = $$props.display, display = _a === void 0 ? "login" : _a; // or "signup", "forgot_password", "reset_password", "reset_password_success", "passwordless_token", and "profile"
|
|
10991
12421
|
var onSuccess = $$props.onSuccess;
|
|
10992
12422
|
var params = $$props.params;
|
|
10993
12423
|
var appLoading = true;
|
|
@@ -11093,6 +12523,14 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
11093
12523
|
display = value;
|
|
11094
12524
|
$$invalidate(0, display);
|
|
11095
12525
|
}
|
|
12526
|
+
function passwordlesstokenmodal_display_binding(value) {
|
|
12527
|
+
display = value;
|
|
12528
|
+
$$invalidate(0, display);
|
|
12529
|
+
}
|
|
12530
|
+
function passwordlesstokenmodal_params_binding(value) {
|
|
12531
|
+
params = value;
|
|
12532
|
+
$$invalidate(1, params);
|
|
12533
|
+
}
|
|
11096
12534
|
function mobileprofilemodal_display_binding(value) {
|
|
11097
12535
|
display = value;
|
|
11098
12536
|
$$invalidate(0, display);
|
|
@@ -11131,6 +12569,8 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
11131
12569
|
passwordresetmodal_display_binding,
|
|
11132
12570
|
passwordtokenmodal_display_binding,
|
|
11133
12571
|
passwordsuccessmodal_display_binding,
|
|
12572
|
+
passwordlesstokenmodal_display_binding,
|
|
12573
|
+
passwordlesstokenmodal_params_binding,
|
|
11134
12574
|
mobileprofilemodal_display_binding,
|
|
11135
12575
|
profilemodal_display_binding
|
|
11136
12576
|
];
|