@memberstack/dom 1.9.26 → 1.9.27
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/auth/index.js +21 -11
- package/lib/index.d.ts +30 -776
- package/lib/methods/dom/main-dom.js +614 -220
- package/lib/methods/dom/methods.js +22 -12
- package/lib/methods/index.d.ts +31 -776
- package/lib/methods/index.js +6 -3
- package/lib/methods/requests/index.d.ts +3 -2
- package/lib/methods/requests/index.js +51 -36
- package/lib/methods/requests/requests.d.ts +1 -0
- package/lib/methods/requests/requests.js +11 -4
- package/lib/types/index.js +6 -2
- package/lib/types/params.d.ts +3 -0
- package/lib/types/payloads.d.ts +3 -0
- package/lib/types/utils/payloads.d.ts +1 -0
- package/lib/utils/cookies.d.ts +1 -0
- package/lib/utils/cookies.js +18 -5
- package/lib/utils/defaultMessageBox.js +8 -5
- package/lib/utils/fileInput.d.ts +1 -0
- package/lib/utils/fileInput.js +16 -0
- package/package.json +1 -1
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -75,9 +77,14 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
75
77
|
}
|
|
76
78
|
return ar;
|
|
77
79
|
};
|
|
78
|
-
var
|
|
79
|
-
for (var
|
|
80
|
-
|
|
80
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
81
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
82
|
+
if (ar || !(i in from)) {
|
|
83
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
84
|
+
ar[i] = from[i];
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
81
88
|
};
|
|
82
89
|
var __values = (this && this.__values) || function(o) {
|
|
83
90
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
@@ -134,7 +141,7 @@ function subscribe(store) {
|
|
|
134
141
|
if (store == null) {
|
|
135
142
|
return noop;
|
|
136
143
|
}
|
|
137
|
-
var unsub = store.subscribe.apply(store,
|
|
144
|
+
var unsub = store.subscribe.apply(store, __spreadArray([], __read(callbacks), false));
|
|
138
145
|
return unsub.unsubscribe ? function () { return unsub.unsubscribe(); } : unsub;
|
|
139
146
|
}
|
|
140
147
|
function component_subscribe(component, store, callback) {
|
|
@@ -365,18 +372,18 @@ function create_rule(node, a, b, duration, delay, ease, fn, uid) {
|
|
|
365
372
|
var keyframes = '{\n';
|
|
366
373
|
for (var p = 0; p <= 1; p += step) {
|
|
367
374
|
var t = a + (b - a) * ease(p);
|
|
368
|
-
keyframes += p * 100 +
|
|
375
|
+
keyframes += p * 100 + "%{".concat(fn(t, 1 - t), "}\n");
|
|
369
376
|
}
|
|
370
|
-
var rule = keyframes +
|
|
371
|
-
var name = "__svelte_"
|
|
377
|
+
var rule = keyframes + "100% {".concat(fn(b, 1 - b), "}\n}");
|
|
378
|
+
var name = "__svelte_".concat(hash(rule), "_").concat(uid);
|
|
372
379
|
var doc = get_root_for_style(node);
|
|
373
380
|
var _a = managed_styles.get(doc) || create_style_information(doc, node), stylesheet = _a.stylesheet, rules = _a.rules;
|
|
374
381
|
if (!rules[name]) {
|
|
375
382
|
rules[name] = true;
|
|
376
|
-
stylesheet.insertRule("@keyframes "
|
|
383
|
+
stylesheet.insertRule("@keyframes ".concat(name, " ").concat(rule), stylesheet.cssRules.length);
|
|
377
384
|
}
|
|
378
385
|
var animation = node.style.animation || '';
|
|
379
|
-
node.style.animation = ""
|
|
386
|
+
node.style.animation = "".concat(animation ? "".concat(animation, ", ") : '').concat(name, " ").concat(duration, "ms linear ").concat(delay, "ms 1 both");
|
|
380
387
|
active += 1;
|
|
381
388
|
return name;
|
|
382
389
|
}
|
|
@@ -518,7 +525,7 @@ function wait() {
|
|
|
518
525
|
return promise;
|
|
519
526
|
}
|
|
520
527
|
function dispatch(node, direction, kind) {
|
|
521
|
-
node.dispatchEvent(custom_event(""
|
|
528
|
+
node.dispatchEvent(custom_event("".concat(direction ? 'intro' : 'outro').concat(kind)));
|
|
522
529
|
}
|
|
523
530
|
var outroing = new Set();
|
|
524
531
|
var outros;
|
|
@@ -760,7 +767,7 @@ function mount_component(component, target, anchor, customElement) {
|
|
|
760
767
|
add_render_callback(function () {
|
|
761
768
|
var new_on_destroy = on_mount.map(run).filter(is_function);
|
|
762
769
|
if (on_destroy) {
|
|
763
|
-
on_destroy.push.apply(on_destroy,
|
|
770
|
+
on_destroy.push.apply(on_destroy, __spreadArray([], __read(new_on_destroy), false));
|
|
764
771
|
}
|
|
765
772
|
else {
|
|
766
773
|
// Edge case - component was destroyed immediately,
|
|
@@ -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$K(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);
|
|
@@ -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$q, create_fragment$
|
|
1085
|
+
init(_this, options, instance$q, create_fragment$K, 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$J(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$J, 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$I(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$I, 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$H(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$H, 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$G(ctx) {
|
|
1218
1225
|
var div;
|
|
1219
1226
|
var button;
|
|
1220
1227
|
var closeicon;
|
|
@@ -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$p, create_fragment$
|
|
1287
|
+
init(_this, options, instance$p, create_fragment$G, 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$F(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$F, 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$b(ctx) {
|
|
1347
1354
|
var memberstackicon;
|
|
1348
1355
|
var current;
|
|
1349
1356
|
memberstackicon = new MemberstackIcon({});
|
|
@@ -1403,12 +1410,12 @@ function create_if_block$k(ctx) {
|
|
|
1403
1410
|
}
|
|
1404
1411
|
};
|
|
1405
1412
|
}
|
|
1406
|
-
function create_fragment$
|
|
1413
|
+
function create_fragment$E(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$k, create_else_block$
|
|
1418
|
+
var if_block_creators = [create_if_block$k, create_else_block$b];
|
|
1412
1419
|
var if_blocks = [];
|
|
1413
1420
|
function select_block_type(ctx, dirty) {
|
|
1414
1421
|
if ( /*app*/ctx[0].branding.logo)
|
|
@@ -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$o, create_fragment$
|
|
1491
|
+
init(_this, options, instance$o, create_fragment$E, 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$a(ctx) {
|
|
1491
1498
|
var button;
|
|
1492
1499
|
var loadingicon;
|
|
1493
1500
|
var current;
|
|
@@ -1559,12 +1566,12 @@ function create_if_block$j(ctx) {
|
|
|
1559
1566
|
}
|
|
1560
1567
|
};
|
|
1561
1568
|
}
|
|
1562
|
-
function create_fragment$
|
|
1569
|
+
function create_fragment$D(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$j, create_else_block$
|
|
1574
|
+
var if_block_creators = [create_if_block$j, create_else_block$a];
|
|
1568
1575
|
var if_blocks = [];
|
|
1569
1576
|
function select_block_type(ctx, dirty) {
|
|
1570
1577
|
if (!ctx[1])
|
|
@@ -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$n, create_fragment$
|
|
1656
|
+
init(_this, options, instance$n, create_fragment$D, 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$C(ctx) {
|
|
1656
1663
|
var svg;
|
|
1657
1664
|
var path;
|
|
1658
1665
|
return {
|
|
@@ -1682,7 +1689,7 @@ 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$C, safe_not_equal, {});
|
|
1686
1693
|
return _this;
|
|
1687
1694
|
}
|
|
1688
1695
|
return ErrorIcon;
|
|
@@ -1728,7 +1735,7 @@ function create_if_block$i(ctx) {
|
|
|
1728
1735
|
}
|
|
1729
1736
|
};
|
|
1730
1737
|
}
|
|
1731
|
-
function create_fragment$
|
|
1738
|
+
function create_fragment$B(ctx) {
|
|
1732
1739
|
var div;
|
|
1733
1740
|
var label;
|
|
1734
1741
|
var t1;
|
|
@@ -1742,7 +1749,7 @@ function create_fragment$z(ctx) {
|
|
|
1742
1749
|
c: function () {
|
|
1743
1750
|
div = element("div");
|
|
1744
1751
|
label = element("label");
|
|
1745
|
-
label.textContent = ""
|
|
1752
|
+
label.textContent = "".concat(/*emailLabel*/ ctx[3]);
|
|
1746
1753
|
t1 = space();
|
|
1747
1754
|
input = element("input");
|
|
1748
1755
|
t2 = space();
|
|
@@ -1769,7 +1776,7 @@ function create_fragment$z(ctx) {
|
|
|
1769
1776
|
current = true;
|
|
1770
1777
|
if (!mounted) {
|
|
1771
1778
|
dispose = [
|
|
1772
|
-
listen(input, "
|
|
1779
|
+
listen(input, "keyup", /*validateField*/ ctx[5]),
|
|
1773
1780
|
listen(input, "input", /*input_input_handler*/ ctx[7])
|
|
1774
1781
|
];
|
|
1775
1782
|
mounted = true;
|
|
@@ -1837,7 +1844,7 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
1837
1844
|
var errorMessage = text["email_error_message"] || "Please enter a valid email address";
|
|
1838
1845
|
var validateField = function (e) {
|
|
1839
1846
|
var emailInput = e.target;
|
|
1840
|
-
var hasValidEmail = (
|
|
1847
|
+
var hasValidEmail = emailInput.value.match(/.+@.+\..{2,}/);
|
|
1841
1848
|
if (!hasValidEmail && e.target.value.length > 0) {
|
|
1842
1849
|
$$invalidate(6, emailInputValid = false);
|
|
1843
1850
|
$$invalidate(2, inputError = true);
|
|
@@ -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$m, create_fragment$
|
|
1884
|
+
init(_this, options, instance$m, create_fragment$B, 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$A(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$A, 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$z(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$z, 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$a(ctx) {
|
|
1962
1969
|
var div;
|
|
1963
1970
|
var button;
|
|
1964
1971
|
var mounted;
|
|
@@ -1967,7 +1974,7 @@ function create_if_block_2$9(ctx) {
|
|
|
1967
1974
|
c: function () {
|
|
1968
1975
|
div = element("div");
|
|
1969
1976
|
button = element("button");
|
|
1970
|
-
button.textContent = ""
|
|
1977
|
+
button.textContent = "".concat(/*text*/ ctx[8]["forgot_password"] || "Forgot Password?");
|
|
1971
1978
|
attr(button, "data-cy", "forgot-password-btn");
|
|
1972
1979
|
attr(button, "class", "ms-form__button ms-form__button--text");
|
|
1973
1980
|
attr(button, "tabindex", "-1");
|
|
@@ -1992,7 +1999,7 @@ function create_if_block_2$9(ctx) {
|
|
|
1992
1999
|
};
|
|
1993
2000
|
}
|
|
1994
2001
|
// (60:6) {:else}
|
|
1995
|
-
function create_else_block$
|
|
2002
|
+
function create_else_block$9(ctx) {
|
|
1996
2003
|
var eyeslashicon;
|
|
1997
2004
|
var current;
|
|
1998
2005
|
eyeslashicon = new EyeSlashIcon({});
|
|
@@ -2020,7 +2027,7 @@ function create_else_block$8(ctx) {
|
|
|
2020
2027
|
};
|
|
2021
2028
|
}
|
|
2022
2029
|
// (58:6) {#if !passwordVisible}
|
|
2023
|
-
function create_if_block_1$
|
|
2030
|
+
function create_if_block_1$d(ctx) {
|
|
2024
2031
|
var eyeicon;
|
|
2025
2032
|
var current;
|
|
2026
2033
|
eyeicon = new EyeIcon({});
|
|
@@ -2088,7 +2095,7 @@ function create_if_block$h(ctx) {
|
|
|
2088
2095
|
}
|
|
2089
2096
|
};
|
|
2090
2097
|
}
|
|
2091
|
-
function create_fragment$
|
|
2098
|
+
function create_fragment$y(ctx) {
|
|
2092
2099
|
var div3;
|
|
2093
2100
|
var div0;
|
|
2094
2101
|
var label;
|
|
@@ -2106,8 +2113,8 @@ function create_fragment$w(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$a(ctx);
|
|
2117
|
+
var if_block_creators = [create_if_block_1$d, create_else_block$9];
|
|
2111
2118
|
var if_blocks = [];
|
|
2112
2119
|
function select_block_type(ctx, dirty) {
|
|
2113
2120
|
if (!ctx[5])
|
|
@@ -2187,7 +2194,7 @@ function create_fragment$w(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$a(ctx);
|
|
2191
2198
|
if_block0.c();
|
|
2192
2199
|
if_block0.m(div0, null);
|
|
2193
2200
|
}
|
|
@@ -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$l, create_fragment$
|
|
2351
|
+
init(_this, options, instance$l, create_fragment$y, 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$x(ctx) {
|
|
2358
2365
|
var svg;
|
|
2359
2366
|
var path;
|
|
2360
2367
|
return {
|
|
@@ -2385,7 +2392,7 @@ 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$x, safe_not_equal, {});
|
|
2389
2396
|
return _this;
|
|
2390
2397
|
}
|
|
2391
2398
|
return SecuredIcon;
|
|
@@ -2432,7 +2439,7 @@ function create_if_block$g(ctx) {
|
|
|
2432
2439
|
}
|
|
2433
2440
|
};
|
|
2434
2441
|
}
|
|
2435
|
-
function create_fragment$
|
|
2442
|
+
function create_fragment$w(ctx) {
|
|
2436
2443
|
var if_block_anchor;
|
|
2437
2444
|
var current;
|
|
2438
2445
|
var if_block = !ctx[0].isPaid && create_if_block$g();
|
|
@@ -2498,13 +2505,13 @@ 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$k, create_fragment$
|
|
2508
|
+
init(_this, options, instance$k, create_fragment$w, safe_not_equal, {});
|
|
2502
2509
|
return _this;
|
|
2503
2510
|
}
|
|
2504
2511
|
return ModalFooter;
|
|
2505
2512
|
}(SvelteComponent));
|
|
2506
2513
|
/* src/icons/EmailIcon.svelte generated by Svelte v3.48.0 */
|
|
2507
|
-
function create_fragment$
|
|
2514
|
+
function create_fragment$v(ctx) {
|
|
2508
2515
|
var svg;
|
|
2509
2516
|
var path;
|
|
2510
2517
|
return {
|
|
@@ -2534,7 +2541,7 @@ var EmailIcon = /** @class */ (function (_super) {
|
|
|
2534
2541
|
__extends(EmailIcon, _super);
|
|
2535
2542
|
function EmailIcon(options) {
|
|
2536
2543
|
var _this = _super.call(this) || this;
|
|
2537
|
-
init(_this, options, null, create_fragment$
|
|
2544
|
+
init(_this, options, null, create_fragment$v, safe_not_equal, {});
|
|
2538
2545
|
return _this;
|
|
2539
2546
|
}
|
|
2540
2547
|
return EmailIcon;
|
|
@@ -2619,7 +2626,7 @@ function create_if_block_6$3(ctx) {
|
|
|
2619
2626
|
};
|
|
2620
2627
|
}
|
|
2621
2628
|
// (145:6) {:else}
|
|
2622
|
-
function create_else_block_1$
|
|
2629
|
+
function create_else_block_1$5(ctx) {
|
|
2623
2630
|
var submitbutton;
|
|
2624
2631
|
var current;
|
|
2625
2632
|
submitbutton = new SubmitButton({
|
|
@@ -2752,7 +2759,7 @@ function create_if_block_4$4(ctx) {
|
|
|
2752
2759
|
c: function () {
|
|
2753
2760
|
div = element("div");
|
|
2754
2761
|
button = element("button");
|
|
2755
|
-
button.textContent = ""
|
|
2762
|
+
button.textContent = "".concat(/*text*/ ctx[8]["dont_have_an_account"] || "Don't have an account?");
|
|
2756
2763
|
attr(button, "class", "ms-form__button ms-form__button--text");
|
|
2757
2764
|
attr(button, "type", "button");
|
|
2758
2765
|
attr(div, "class", "ms-form__flex ms-form__flex--centered");
|
|
@@ -2784,7 +2791,7 @@ function create_if_block_3$4(ctx) {
|
|
|
2784
2791
|
c: function () {
|
|
2785
2792
|
div = element("div");
|
|
2786
2793
|
button = element("button");
|
|
2787
|
-
button.textContent = ""
|
|
2794
|
+
button.textContent = "".concat(/*text*/ ctx[8]["dont_have_an_account"] || "Don't have an account?");
|
|
2788
2795
|
attr(button, "class", "ms-form__button ms-form__button--text");
|
|
2789
2796
|
attr(button, "type", "button");
|
|
2790
2797
|
attr(div, "class", "ms-form__flex ms-form__flex--centered");
|
|
@@ -2818,7 +2825,7 @@ function create_if_block$f(ctx) {
|
|
|
2818
2825
|
var t3;
|
|
2819
2826
|
var t4;
|
|
2820
2827
|
var current;
|
|
2821
|
-
var if_block = /*$app*/ ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$
|
|
2828
|
+
var if_block = /*$app*/ ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$c(ctx);
|
|
2822
2829
|
var each_value = /*$app*/ ctx[7].authProviders;
|
|
2823
2830
|
var each_blocks = [];
|
|
2824
2831
|
for (var i = 0; i < each_value.length; i += 1) {
|
|
@@ -2831,7 +2838,7 @@ function create_if_block$f(ctx) {
|
|
|
2831
2838
|
div0 = element("div");
|
|
2832
2839
|
t0 = space();
|
|
2833
2840
|
div1 = element("div");
|
|
2834
|
-
div1.textContent = ""
|
|
2841
|
+
div1.textContent = "".concat(/*text*/ ctx[8]["or"] || "or");
|
|
2835
2842
|
t2 = space();
|
|
2836
2843
|
div2 = element("div");
|
|
2837
2844
|
t3 = space();
|
|
@@ -2873,7 +2880,7 @@ function create_if_block$f(ctx) {
|
|
|
2873
2880
|
}
|
|
2874
2881
|
}
|
|
2875
2882
|
else {
|
|
2876
|
-
if_block = create_if_block_1$
|
|
2883
|
+
if_block = create_if_block_1$c(ctx);
|
|
2877
2884
|
if_block.c();
|
|
2878
2885
|
transition_in(if_block, 1);
|
|
2879
2886
|
if_block.m(div4, t4);
|
|
@@ -2926,12 +2933,12 @@ function create_if_block$f(ctx) {
|
|
|
2926
2933
|
};
|
|
2927
2934
|
}
|
|
2928
2935
|
// (186:8) {#if $app.additionalAuthMethods.passwordless.enabled === true}
|
|
2929
|
-
function create_if_block_1$
|
|
2936
|
+
function create_if_block_1$c(ctx) {
|
|
2930
2937
|
var div;
|
|
2931
2938
|
var current_block_type_index;
|
|
2932
2939
|
var if_block;
|
|
2933
2940
|
var current;
|
|
2934
|
-
var if_block_creators = [create_if_block_2$
|
|
2941
|
+
var if_block_creators = [create_if_block_2$9, create_else_block$8];
|
|
2935
2942
|
var if_blocks = [];
|
|
2936
2943
|
function select_block_type_2(ctx, dirty) {
|
|
2937
2944
|
if ( /*$PasswordlessStore*/ctx[6].passwordlessMode === false)
|
|
@@ -2993,7 +3000,7 @@ function create_if_block_1$b(ctx) {
|
|
|
2993
3000
|
};
|
|
2994
3001
|
}
|
|
2995
3002
|
// (201:12) {:else}
|
|
2996
|
-
function create_else_block$
|
|
3003
|
+
function create_else_block$8(ctx) {
|
|
2997
3004
|
var button;
|
|
2998
3005
|
var span;
|
|
2999
3006
|
var mounted;
|
|
@@ -3002,7 +3009,7 @@ function create_else_block$7(ctx) {
|
|
|
3002
3009
|
c: function () {
|
|
3003
3010
|
button = element("button");
|
|
3004
3011
|
span = element("span");
|
|
3005
|
-
span.textContent = ""
|
|
3012
|
+
span.textContent = "".concat(/*text*/ ctx[8]["login_with_password"] || "Log in with Password");
|
|
3006
3013
|
attr(button, "class", "ms-modal__social-button");
|
|
3007
3014
|
attr(button, "data-cy", "continue-with-password");
|
|
3008
3015
|
attr(button, "type", "button");
|
|
@@ -3027,7 +3034,7 @@ function create_else_block$7(ctx) {
|
|
|
3027
3034
|
};
|
|
3028
3035
|
}
|
|
3029
3036
|
// (188:12) {#if $PasswordlessStore.passwordlessMode === false}
|
|
3030
|
-
function create_if_block_2$
|
|
3037
|
+
function create_if_block_2$9(ctx) {
|
|
3031
3038
|
var button;
|
|
3032
3039
|
var emailicon;
|
|
3033
3040
|
var t0;
|
|
@@ -3042,7 +3049,7 @@ function create_if_block_2$8(ctx) {
|
|
|
3042
3049
|
create_component(emailicon.$$.fragment);
|
|
3043
3050
|
t0 = space();
|
|
3044
3051
|
span = element("span");
|
|
3045
|
-
span.textContent = ""
|
|
3052
|
+
span.textContent = "".concat(/*text*/ ctx[8]["login_with_email"] || "Continue with Email");
|
|
3046
3053
|
attr(button, "class", "ms-modal__social-button");
|
|
3047
3054
|
attr(button, "data-cy", "continue-with-email");
|
|
3048
3055
|
attr(button, "type", "button");
|
|
@@ -3150,7 +3157,7 @@ function create_each_block$6(ctx) {
|
|
|
3150
3157
|
}
|
|
3151
3158
|
};
|
|
3152
3159
|
}
|
|
3153
|
-
function create_fragment$
|
|
3160
|
+
function create_fragment$u(ctx) {
|
|
3154
3161
|
var div1;
|
|
3155
3162
|
var t0;
|
|
3156
3163
|
var div0;
|
|
@@ -3184,7 +3191,7 @@ function create_fragment$s(ctx) {
|
|
|
3184
3191
|
}
|
|
3185
3192
|
emailinput = new EmailInput({ props: emailinput_props });
|
|
3186
3193
|
binding_callbacks.push(function () { return bind(emailinput, 'emailInputValid', emailinput_emailInputValid_binding); });
|
|
3187
|
-
var if_block_creators = [create_if_block_5$3, create_else_block_1$
|
|
3194
|
+
var if_block_creators = [create_if_block_5$3, create_else_block_1$5];
|
|
3188
3195
|
var if_blocks = [];
|
|
3189
3196
|
function select_block_type(ctx, dirty) {
|
|
3190
3197
|
if (!ctx[6].passwordlessMode)
|
|
@@ -3213,7 +3220,7 @@ function create_fragment$s(ctx) {
|
|
|
3213
3220
|
create_component(figureelement.$$.fragment);
|
|
3214
3221
|
t1 = space();
|
|
3215
3222
|
h2 = element("h2");
|
|
3216
|
-
h2.textContent = ""
|
|
3223
|
+
h2.textContent = "".concat(/*text*/ ctx[8]["login_to_your_account"] || "Login to your account");
|
|
3217
3224
|
t3 = space();
|
|
3218
3225
|
form = element("form");
|
|
3219
3226
|
create_component(emailinput.$$.fragment);
|
|
@@ -3542,7 +3549,7 @@ var LoginModal = /** @class */ (function (_super) {
|
|
|
3542
3549
|
__extends(LoginModal, _super);
|
|
3543
3550
|
function LoginModal(options) {
|
|
3544
3551
|
var _this = _super.call(this) || this;
|
|
3545
|
-
init(_this, options, instance$j, create_fragment$
|
|
3552
|
+
init(_this, options, instance$j, create_fragment$u, safe_not_equal, {
|
|
3546
3553
|
closeModal: 1,
|
|
3547
3554
|
display: 0,
|
|
3548
3555
|
onSuccessLogin: 12,
|
|
@@ -3746,7 +3753,7 @@ function create_if_block_4$3(ctx) {
|
|
|
3746
3753
|
};
|
|
3747
3754
|
}
|
|
3748
3755
|
// (243:6) {:else}
|
|
3749
|
-
function create_else_block_1$
|
|
3756
|
+
function create_else_block_1$4(ctx) {
|
|
3750
3757
|
var submitbutton;
|
|
3751
3758
|
var current;
|
|
3752
3759
|
submitbutton = new SubmitButton({
|
|
@@ -3830,7 +3837,7 @@ function create_if_block$e(ctx) {
|
|
|
3830
3837
|
var t3;
|
|
3831
3838
|
var t4;
|
|
3832
3839
|
var current;
|
|
3833
|
-
var if_block = /*$app*/ ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$
|
|
3840
|
+
var if_block = /*$app*/ ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$b(ctx);
|
|
3834
3841
|
var each_value = /*$app*/ ctx[7].authProviders;
|
|
3835
3842
|
var each_blocks = [];
|
|
3836
3843
|
for (var i = 0; i < each_value.length; i += 1) {
|
|
@@ -3872,7 +3879,7 @@ function create_if_block$e(ctx) {
|
|
|
3872
3879
|
}
|
|
3873
3880
|
}
|
|
3874
3881
|
else {
|
|
3875
|
-
if_block = create_if_block_1$
|
|
3882
|
+
if_block = create_if_block_1$b(ctx);
|
|
3876
3883
|
if_block.c();
|
|
3877
3884
|
transition_in(if_block, 1);
|
|
3878
3885
|
if_block.m(div4, t4);
|
|
@@ -3925,12 +3932,12 @@ function create_if_block$e(ctx) {
|
|
|
3925
3932
|
};
|
|
3926
3933
|
}
|
|
3927
3934
|
// (267:8) {#if $app.additionalAuthMethods.passwordless.enabled === true}
|
|
3928
|
-
function create_if_block_1$
|
|
3935
|
+
function create_if_block_1$b(ctx) {
|
|
3929
3936
|
var div;
|
|
3930
3937
|
var current_block_type_index;
|
|
3931
3938
|
var if_block;
|
|
3932
3939
|
var current;
|
|
3933
|
-
var if_block_creators = [create_if_block_2$
|
|
3940
|
+
var if_block_creators = [create_if_block_2$8, create_else_block$7];
|
|
3934
3941
|
var if_blocks = [];
|
|
3935
3942
|
function select_block_type_1(ctx, dirty) {
|
|
3936
3943
|
if ( /*$PasswordlessStore*/ctx[6].passwordlessMode === false)
|
|
@@ -3992,7 +3999,7 @@ function create_if_block_1$a(ctx) {
|
|
|
3992
3999
|
};
|
|
3993
4000
|
}
|
|
3994
4001
|
// (282:12) {:else}
|
|
3995
|
-
function create_else_block$
|
|
4002
|
+
function create_else_block$7(ctx) {
|
|
3996
4003
|
var button;
|
|
3997
4004
|
var span;
|
|
3998
4005
|
var mounted;
|
|
@@ -4001,7 +4008,7 @@ function create_else_block$6(ctx) {
|
|
|
4001
4008
|
c: function () {
|
|
4002
4009
|
button = element("button");
|
|
4003
4010
|
span = element("span");
|
|
4004
|
-
span.textContent = ""
|
|
4011
|
+
span.textContent = "".concat(/*text*/ ctx[8]["signup_with_password"] || "Signup with Password");
|
|
4005
4012
|
attr(button, "class", "ms-modal__social-button");
|
|
4006
4013
|
attr(button, "data-cy", "continue-with-password");
|
|
4007
4014
|
attr(button, "type", "button");
|
|
@@ -4026,7 +4033,7 @@ function create_else_block$6(ctx) {
|
|
|
4026
4033
|
};
|
|
4027
4034
|
}
|
|
4028
4035
|
// (269:12) {#if $PasswordlessStore.passwordlessMode === false}
|
|
4029
|
-
function create_if_block_2$
|
|
4036
|
+
function create_if_block_2$8(ctx) {
|
|
4030
4037
|
var button;
|
|
4031
4038
|
var emailicon;
|
|
4032
4039
|
var t0;
|
|
@@ -4041,7 +4048,7 @@ function create_if_block_2$7(ctx) {
|
|
|
4041
4048
|
create_component(emailicon.$$.fragment);
|
|
4042
4049
|
t0 = space();
|
|
4043
4050
|
span = element("span");
|
|
4044
|
-
span.textContent = ""
|
|
4051
|
+
span.textContent = "".concat(/*text*/ ctx[8]["continue_with_email"] || "Continue with Email");
|
|
4045
4052
|
attr(button, "class", "ms-modal__social-button");
|
|
4046
4053
|
attr(button, "data-cy", "continue-with-email");
|
|
4047
4054
|
attr(button, "type", "button");
|
|
@@ -4145,7 +4152,7 @@ function create_each_block$5(ctx) {
|
|
|
4145
4152
|
}
|
|
4146
4153
|
};
|
|
4147
4154
|
}
|
|
4148
|
-
function create_fragment$
|
|
4155
|
+
function create_fragment$t(ctx) {
|
|
4149
4156
|
var div4;
|
|
4150
4157
|
var t0;
|
|
4151
4158
|
var div3;
|
|
@@ -4191,7 +4198,7 @@ function create_fragment$r(ctx) {
|
|
|
4191
4198
|
emailinput = new EmailInput({ props: emailinput_props });
|
|
4192
4199
|
binding_callbacks.push(function () { return bind(emailinput, 'emailInputValid', emailinput_emailInputValid_binding); });
|
|
4193
4200
|
var if_block1 = /*$PasswordlessStore*/ ctx[6].passwordlessMode === false && create_if_block_4$3(ctx);
|
|
4194
|
-
var if_block_creators = [create_if_block_3$3, create_else_block_1$
|
|
4201
|
+
var if_block_creators = [create_if_block_3$3, create_else_block_1$4];
|
|
4195
4202
|
var if_blocks = [];
|
|
4196
4203
|
function select_block_type(ctx, dirty) {
|
|
4197
4204
|
if ( /*$PasswordlessStore*/ctx[6].passwordlessMode === false)
|
|
@@ -4676,7 +4683,7 @@ var SignupModal = /** @class */ (function (_super) {
|
|
|
4676
4683
|
__extends(SignupModal, _super);
|
|
4677
4684
|
function SignupModal(options) {
|
|
4678
4685
|
var _this = _super.call(this) || this;
|
|
4679
|
-
init(_this, options, instance$i, create_fragment$
|
|
4686
|
+
init(_this, options, instance$i, create_fragment$t, safe_not_equal, {
|
|
4680
4687
|
closeModal: 1,
|
|
4681
4688
|
display: 0,
|
|
4682
4689
|
onSuccessSignup: 11,
|
|
@@ -4687,7 +4694,7 @@ var SignupModal = /** @class */ (function (_super) {
|
|
|
4687
4694
|
return SignupModal;
|
|
4688
4695
|
}(SvelteComponent));
|
|
4689
4696
|
/* src/icons/BackIcon.svelte generated by Svelte v3.48.0 */
|
|
4690
|
-
function create_fragment$
|
|
4697
|
+
function create_fragment$s(ctx) {
|
|
4691
4698
|
var svg;
|
|
4692
4699
|
var path;
|
|
4693
4700
|
return {
|
|
@@ -4717,13 +4724,13 @@ var BackIcon = /** @class */ (function (_super) {
|
|
|
4717
4724
|
__extends(BackIcon, _super);
|
|
4718
4725
|
function BackIcon(options) {
|
|
4719
4726
|
var _this = _super.call(this) || this;
|
|
4720
|
-
init(_this, options, null, create_fragment$
|
|
4727
|
+
init(_this, options, null, create_fragment$s, safe_not_equal, {});
|
|
4721
4728
|
return _this;
|
|
4722
4729
|
}
|
|
4723
4730
|
return BackIcon;
|
|
4724
4731
|
}(SvelteComponent));
|
|
4725
4732
|
/* src/modals/PassResetModal.svelte generated by Svelte v3.48.0 */
|
|
4726
|
-
function create_fragment$
|
|
4733
|
+
function create_fragment$r(ctx) {
|
|
4727
4734
|
var div4;
|
|
4728
4735
|
var div0;
|
|
4729
4736
|
var button;
|
|
@@ -4780,10 +4787,10 @@ function create_fragment$p(ctx) {
|
|
|
4780
4787
|
create_component(figureelement.$$.fragment);
|
|
4781
4788
|
t1 = space();
|
|
4782
4789
|
h2 = element("h2");
|
|
4783
|
-
h2.textContent = ""
|
|
4790
|
+
h2.textContent = "".concat(/*text*/ ctx[3]["reset_your_password"] || "Reset your password");
|
|
4784
4791
|
t3 = space();
|
|
4785
4792
|
p = element("p");
|
|
4786
|
-
p.textContent = ""
|
|
4793
|
+
p.textContent = "".concat(/*text*/ ctx[3]["reset_instructions"] || "We’ll email you a secure link to reset the password for your account.");
|
|
4787
4794
|
t5 = space();
|
|
4788
4795
|
form = element("form");
|
|
4789
4796
|
create_component(emailinput.$$.fragment);
|
|
@@ -4792,7 +4799,7 @@ function create_fragment$p(ctx) {
|
|
|
4792
4799
|
t7 = space();
|
|
4793
4800
|
div2 = element("div");
|
|
4794
4801
|
div1 = element("div");
|
|
4795
|
-
div1.textContent = ""
|
|
4802
|
+
div1.textContent = "".concat(/*text*/ ctx[3]["reset_already_have_code"] || "I already have a code");
|
|
4796
4803
|
t9 = space();
|
|
4797
4804
|
create_component(modalfooter.$$.fragment);
|
|
4798
4805
|
attr(div0, "data-cy", "back-btn");
|
|
@@ -4953,7 +4960,7 @@ var PassResetModal = /** @class */ (function (_super) {
|
|
|
4953
4960
|
__extends(PassResetModal, _super);
|
|
4954
4961
|
function PassResetModal(options) {
|
|
4955
4962
|
var _this = _super.call(this) || this;
|
|
4956
|
-
init(_this, options, instance$h, create_fragment$
|
|
4963
|
+
init(_this, options, instance$h, create_fragment$r, safe_not_equal, { closeModal: 5, display: 0 });
|
|
4957
4964
|
return _this;
|
|
4958
4965
|
}
|
|
4959
4966
|
return PassResetModal;
|
|
@@ -4995,7 +5002,7 @@ function create_if_block$d(ctx) {
|
|
|
4995
5002
|
}
|
|
4996
5003
|
};
|
|
4997
5004
|
}
|
|
4998
|
-
function create_fragment$
|
|
5005
|
+
function create_fragment$q(ctx) {
|
|
4999
5006
|
var div3;
|
|
5000
5007
|
var div0;
|
|
5001
5008
|
var button;
|
|
@@ -5062,15 +5069,15 @@ function create_fragment$o(ctx) {
|
|
|
5062
5069
|
create_component(figureelement.$$.fragment);
|
|
5063
5070
|
t2 = space();
|
|
5064
5071
|
h2 = element("h2");
|
|
5065
|
-
h2.textContent = ""
|
|
5072
|
+
h2.textContent = "".concat(/*text*/ ctx[5]["reset_your_password"] || "Reset your password");
|
|
5066
5073
|
t4 = space();
|
|
5067
5074
|
form = element("form");
|
|
5068
5075
|
div1 = element("div");
|
|
5069
5076
|
label = element("label");
|
|
5070
|
-
label.textContent = ""
|
|
5077
|
+
label.textContent = "".concat(/*text*/ ctx[5]["reset_enter_code"] || "Enter your 6-digit code");
|
|
5071
5078
|
t6 = space();
|
|
5072
5079
|
fieldset = element("fieldset");
|
|
5073
|
-
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\"/>";
|
|
5080
|
+
fieldset.innerHTML = "<input type=\"tel\" name=\"token\" class=\"ms-form__input ms-form__input--token\" required=\"\"/> \n <input type=\"tel\" name=\"token\" class=\"ms-form__input ms-form__input--token\" required=\"\"/> \n <input type=\"tel\" name=\"token\" class=\"ms-form__input ms-form__input--token\" required=\"\"/> \n <input type=\"tel\" name=\"token\" class=\"ms-form__input ms-form__input--token\" required=\"\"/> \n <input type=\"tel\" name=\"token\" class=\"ms-form__input ms-form__input--token\" required=\"\"/> \n <input type=\"tel\" name=\"token\" class=\"ms-form__input ms-form__input--token\"/>";
|
|
5074
5081
|
t12 = space();
|
|
5075
5082
|
if (if_block)
|
|
5076
5083
|
if_block.c();
|
|
@@ -5218,7 +5225,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
5218
5225
|
var tokenInputValid = true;
|
|
5219
5226
|
var passwordInputValid = true;
|
|
5220
5227
|
onMount(function () {
|
|
5221
|
-
var tokenElements =
|
|
5228
|
+
var tokenElements = __spreadArray([], __read(document.querySelectorAll("input.ms-form__input--token")), false);
|
|
5222
5229
|
tokenElements.forEach(function (ele, index) {
|
|
5223
5230
|
ele.addEventListener("keydown", function (e) {
|
|
5224
5231
|
if (e.keyCode === 8 && e.target.value === "")
|
|
@@ -5238,7 +5245,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
5238
5245
|
});
|
|
5239
5246
|
});
|
|
5240
5247
|
var validateFields = function (e) {
|
|
5241
|
-
var tokenElements =
|
|
5248
|
+
var tokenElements = __spreadArray([], __read(document.querySelectorAll("input.ms-form__input--token")), false);
|
|
5242
5249
|
var hasEmpty = tokenElements.some(function (el) {
|
|
5243
5250
|
if (!el.value) {
|
|
5244
5251
|
return true;
|
|
@@ -5263,7 +5270,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
5263
5270
|
isValid = validateFields();
|
|
5264
5271
|
if (!isValid)
|
|
5265
5272
|
return [2 /*return*/];
|
|
5266
|
-
token =
|
|
5273
|
+
token = __spreadArray([], __read(document.getElementsByName("token")), false).filter(function (_a) {
|
|
5267
5274
|
var name = _a.name;
|
|
5268
5275
|
return name;
|
|
5269
5276
|
}).map(function (_a) {
|
|
@@ -5325,7 +5332,7 @@ var PassTokenModal = /** @class */ (function (_super) {
|
|
|
5325
5332
|
__extends(PassTokenModal, _super);
|
|
5326
5333
|
function PassTokenModal(options) {
|
|
5327
5334
|
var _this = _super.call(this) || this;
|
|
5328
|
-
init(_this, options, instance$g, create_fragment$
|
|
5335
|
+
init(_this, options, instance$g, create_fragment$q, safe_not_equal, {
|
|
5329
5336
|
closeModal: 1,
|
|
5330
5337
|
display: 0,
|
|
5331
5338
|
onSuccessPasswordReset: 7
|
|
@@ -5335,7 +5342,7 @@ var PassTokenModal = /** @class */ (function (_super) {
|
|
|
5335
5342
|
return PassTokenModal;
|
|
5336
5343
|
}(SvelteComponent));
|
|
5337
5344
|
/* src/modals/PassSuccessModal.svelte generated by Svelte v3.48.0 */
|
|
5338
|
-
function create_fragment$
|
|
5345
|
+
function create_fragment$p(ctx) {
|
|
5339
5346
|
var div2;
|
|
5340
5347
|
var div0;
|
|
5341
5348
|
var t0;
|
|
@@ -5438,13 +5445,13 @@ var PassSuccessModal = /** @class */ (function (_super) {
|
|
|
5438
5445
|
__extends(PassSuccessModal, _super);
|
|
5439
5446
|
function PassSuccessModal(options) {
|
|
5440
5447
|
var _this = _super.call(this) || this;
|
|
5441
|
-
init(_this, options, instance$f, create_fragment$
|
|
5448
|
+
init(_this, options, instance$f, create_fragment$p, safe_not_equal, { closeModal: 0 });
|
|
5442
5449
|
return _this;
|
|
5443
5450
|
}
|
|
5444
5451
|
return PassSuccessModal;
|
|
5445
5452
|
}(SvelteComponent));
|
|
5446
5453
|
/* src/modals/PasswordlessTokenModal.svelte generated by Svelte v3.48.0 */
|
|
5447
|
-
function create_else_block_1$
|
|
5454
|
+
function create_else_block_1$3(ctx) {
|
|
5448
5455
|
var button;
|
|
5449
5456
|
var backicon;
|
|
5450
5457
|
var current;
|
|
@@ -5486,7 +5493,7 @@ function create_else_block_1$2(ctx) {
|
|
|
5486
5493
|
};
|
|
5487
5494
|
}
|
|
5488
5495
|
// (140:4) {#if $PasswordlessStore.passwordlessModalType === "login"}
|
|
5489
|
-
function create_if_block_2$
|
|
5496
|
+
function create_if_block_2$7(ctx) {
|
|
5490
5497
|
var button;
|
|
5491
5498
|
var backicon;
|
|
5492
5499
|
var current;
|
|
@@ -5528,12 +5535,12 @@ function create_if_block_2$6(ctx) {
|
|
|
5528
5535
|
};
|
|
5529
5536
|
}
|
|
5530
5537
|
// (159:4) {:else}
|
|
5531
|
-
function create_else_block$
|
|
5538
|
+
function create_else_block$6(ctx) {
|
|
5532
5539
|
var h2;
|
|
5533
5540
|
return {
|
|
5534
5541
|
c: function () {
|
|
5535
5542
|
h2 = element("h2");
|
|
5536
|
-
h2.textContent = ""
|
|
5543
|
+
h2.textContent = "".concat(/*text*/ ctx[5]["passwordless_token_heading"] || "Create an account");
|
|
5537
5544
|
attr(h2, "class", "ms-modal__title ms-modal__title--sub-text");
|
|
5538
5545
|
},
|
|
5539
5546
|
m: function (target, anchor) {
|
|
@@ -5547,12 +5554,12 @@ function create_else_block$5(ctx) {
|
|
|
5547
5554
|
};
|
|
5548
5555
|
}
|
|
5549
5556
|
// (155:4) {#if $PasswordlessStore.passwordlessModalType === "login"}
|
|
5550
|
-
function create_if_block_1$
|
|
5557
|
+
function create_if_block_1$a(ctx) {
|
|
5551
5558
|
var h2;
|
|
5552
5559
|
return {
|
|
5553
5560
|
c: function () {
|
|
5554
5561
|
h2 = element("h2");
|
|
5555
|
-
h2.textContent = ""
|
|
5562
|
+
h2.textContent = "".concat(/*text*/ ctx[5]["login_to_your_account"] || "Login to your account");
|
|
5556
5563
|
attr(h2, "class", "ms-modal__title ms-modal__title--sub-text");
|
|
5557
5564
|
},
|
|
5558
5565
|
m: function (target, anchor) {
|
|
@@ -5565,7 +5572,7 @@ function create_if_block_1$9(ctx) {
|
|
|
5565
5572
|
}
|
|
5566
5573
|
};
|
|
5567
5574
|
}
|
|
5568
|
-
// (
|
|
5575
|
+
// (218:8) {#if !tokenInputValid}
|
|
5569
5576
|
function create_if_block$c(ctx) {
|
|
5570
5577
|
var div;
|
|
5571
5578
|
var erroricon;
|
|
@@ -5602,7 +5609,7 @@ function create_if_block$c(ctx) {
|
|
|
5602
5609
|
}
|
|
5603
5610
|
};
|
|
5604
5611
|
}
|
|
5605
|
-
function create_fragment$
|
|
5612
|
+
function create_fragment$o(ctx) {
|
|
5606
5613
|
var div3;
|
|
5607
5614
|
var div0;
|
|
5608
5615
|
var current_block_type_index;
|
|
@@ -5629,7 +5636,7 @@ function create_fragment$m(ctx) {
|
|
|
5629
5636
|
var current;
|
|
5630
5637
|
var mounted;
|
|
5631
5638
|
var dispose;
|
|
5632
|
-
var if_block_creators = [create_if_block_2$
|
|
5639
|
+
var if_block_creators = [create_if_block_2$7, create_else_block_1$3];
|
|
5633
5640
|
var if_blocks = [];
|
|
5634
5641
|
function select_block_type(ctx, dirty) {
|
|
5635
5642
|
if ( /*$PasswordlessStore*/ctx[4].passwordlessModalType === "login")
|
|
@@ -5644,8 +5651,8 @@ function create_fragment$m(ctx) {
|
|
|
5644
5651
|
figureelement = new FigureElement({});
|
|
5645
5652
|
function select_block_type_1(ctx, dirty) {
|
|
5646
5653
|
if ( /*$PasswordlessStore*/ctx[4].passwordlessModalType === "login")
|
|
5647
|
-
return create_if_block_1$
|
|
5648
|
-
return create_else_block$
|
|
5654
|
+
return create_if_block_1$a;
|
|
5655
|
+
return create_else_block$6;
|
|
5649
5656
|
}
|
|
5650
5657
|
var current_block_type = select_block_type_1(ctx);
|
|
5651
5658
|
var if_block1 = current_block_type(ctx);
|
|
@@ -5671,15 +5678,15 @@ function create_fragment$m(ctx) {
|
|
|
5671
5678
|
if_block1.c();
|
|
5672
5679
|
t3 = space();
|
|
5673
5680
|
p = element("p");
|
|
5674
|
-
p.textContent = ""
|
|
5681
|
+
p.textContent = "".concat(/*text*/ ctx[5]["login_passwordless_instructions"] || "Enter the verification code sent to your email address");
|
|
5675
5682
|
t5 = space();
|
|
5676
5683
|
form = element("form");
|
|
5677
5684
|
div1 = element("div");
|
|
5678
5685
|
label = element("label");
|
|
5679
|
-
label.textContent = ""
|
|
5686
|
+
label.textContent = "".concat(/*text*/ ctx[5]["login_verification_code"] || "Verification Code");
|
|
5680
5687
|
t7 = space();
|
|
5681
5688
|
fieldset = element("fieldset");
|
|
5682
|
-
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\"/>";
|
|
5689
|
+
fieldset.innerHTML = "<input name=\"token\" class=\"ms-form__input ms-form__input--token\" required=\"\" type=\"tel\"/> \n <input name=\"token\" class=\"ms-form__input ms-form__input--token\" required=\"\" type=\"tel\"/> \n <input name=\"token\" class=\"ms-form__input ms-form__input--token\" required=\"\" type=\"tel\"/> \n <input name=\"token\" class=\"ms-form__input ms-form__input--token\" required=\"\" type=\"tel\"/> \n <input name=\"token\" class=\"ms-form__input ms-form__input--token\" required=\"\" type=\"tel\"/> \n <input name=\"token\" class=\"ms-form__input ms-form__input--token\" type=\"tel\"/>";
|
|
5683
5690
|
t13 = space();
|
|
5684
5691
|
if (if_block2)
|
|
5685
5692
|
if_block2.c();
|
|
@@ -5847,7 +5854,7 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
5847
5854
|
var showLoader = false;
|
|
5848
5855
|
var tokenInputValid = true;
|
|
5849
5856
|
onMount(function () {
|
|
5850
|
-
var tokenElements =
|
|
5857
|
+
var tokenElements = __spreadArray([], __read(document.querySelectorAll("input.ms-form__input--token")), false);
|
|
5851
5858
|
tokenElements.forEach(function (ele, index) {
|
|
5852
5859
|
ele.addEventListener("keydown", function (e) {
|
|
5853
5860
|
if (e.keyCode === 8 && e.target.value === "")
|
|
@@ -5867,7 +5874,7 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
5867
5874
|
});
|
|
5868
5875
|
});
|
|
5869
5876
|
var validateFields = function (e) {
|
|
5870
|
-
var tokenElements =
|
|
5877
|
+
var tokenElements = __spreadArray([], __read(document.querySelectorAll("input.ms-form__input--token")), false);
|
|
5871
5878
|
var hasEmpty = tokenElements.some(function (el) {
|
|
5872
5879
|
if (!el.value) {
|
|
5873
5880
|
return true;
|
|
@@ -5892,7 +5899,7 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
5892
5899
|
isValid = validateFields();
|
|
5893
5900
|
if (!isValid)
|
|
5894
5901
|
return [2 /*return*/];
|
|
5895
|
-
token =
|
|
5902
|
+
token = __spreadArray([], __read(document.getElementsByName("token")), false).filter(function (_a) {
|
|
5896
5903
|
var name = _a.name;
|
|
5897
5904
|
return name;
|
|
5898
5905
|
}).map(function (_a) {
|
|
@@ -5972,7 +5979,7 @@ var PasswordlessTokenModal = /** @class */ (function (_super) {
|
|
|
5972
5979
|
__extends(PasswordlessTokenModal, _super);
|
|
5973
5980
|
function PasswordlessTokenModal(options) {
|
|
5974
5981
|
var _this = _super.call(this) || this;
|
|
5975
|
-
init(_this, options, instance$e, create_fragment$
|
|
5982
|
+
init(_this, options, instance$e, create_fragment$o, safe_not_equal, {
|
|
5976
5983
|
closeModal: 1,
|
|
5977
5984
|
display: 0,
|
|
5978
5985
|
onSuccessPasswordlessToken: 7,
|
|
@@ -5983,7 +5990,7 @@ var PasswordlessTokenModal = /** @class */ (function (_super) {
|
|
|
5983
5990
|
return PasswordlessTokenModal;
|
|
5984
5991
|
}(SvelteComponent));
|
|
5985
5992
|
/* src/icons/ProfileIcon.svelte generated by Svelte v3.48.0 */
|
|
5986
|
-
function create_fragment$
|
|
5993
|
+
function create_fragment$n(ctx) {
|
|
5987
5994
|
var svg;
|
|
5988
5995
|
var path;
|
|
5989
5996
|
return {
|
|
@@ -6013,13 +6020,13 @@ var ProfileIcon = /** @class */ (function (_super) {
|
|
|
6013
6020
|
__extends(ProfileIcon, _super);
|
|
6014
6021
|
function ProfileIcon(options) {
|
|
6015
6022
|
var _this = _super.call(this) || this;
|
|
6016
|
-
init(_this, options, null, create_fragment$
|
|
6023
|
+
init(_this, options, null, create_fragment$n, safe_not_equal, {});
|
|
6017
6024
|
return _this;
|
|
6018
6025
|
}
|
|
6019
6026
|
return ProfileIcon;
|
|
6020
6027
|
}(SvelteComponent));
|
|
6021
6028
|
/* src/icons/SecurityIcon.svelte generated by Svelte v3.48.0 */
|
|
6022
|
-
function create_fragment$
|
|
6029
|
+
function create_fragment$m(ctx) {
|
|
6023
6030
|
var svg;
|
|
6024
6031
|
var path;
|
|
6025
6032
|
return {
|
|
@@ -6049,13 +6056,13 @@ var SecurityIcon = /** @class */ (function (_super) {
|
|
|
6049
6056
|
__extends(SecurityIcon, _super);
|
|
6050
6057
|
function SecurityIcon(options) {
|
|
6051
6058
|
var _this = _super.call(this) || this;
|
|
6052
|
-
init(_this, options, null, create_fragment$
|
|
6059
|
+
init(_this, options, null, create_fragment$m, safe_not_equal, {});
|
|
6053
6060
|
return _this;
|
|
6054
6061
|
}
|
|
6055
6062
|
return SecurityIcon;
|
|
6056
6063
|
}(SvelteComponent));
|
|
6057
6064
|
/* src/icons/LinkOutIcon.svelte generated by Svelte v3.48.0 */
|
|
6058
|
-
function create_fragment$
|
|
6065
|
+
function create_fragment$l(ctx) {
|
|
6059
6066
|
var svg;
|
|
6060
6067
|
var path;
|
|
6061
6068
|
return {
|
|
@@ -6085,13 +6092,13 @@ var LinkOutIcon = /** @class */ (function (_super) {
|
|
|
6085
6092
|
__extends(LinkOutIcon, _super);
|
|
6086
6093
|
function LinkOutIcon(options) {
|
|
6087
6094
|
var _this = _super.call(this) || this;
|
|
6088
|
-
init(_this, options, null, create_fragment$
|
|
6095
|
+
init(_this, options, null, create_fragment$l, safe_not_equal, {});
|
|
6089
6096
|
return _this;
|
|
6090
6097
|
}
|
|
6091
6098
|
return LinkOutIcon;
|
|
6092
6099
|
}(SvelteComponent));
|
|
6093
6100
|
/* src/icons/LogoutIcon.svelte generated by Svelte v3.48.0 */
|
|
6094
|
-
function create_fragment$
|
|
6101
|
+
function create_fragment$k(ctx) {
|
|
6095
6102
|
var svg;
|
|
6096
6103
|
var path;
|
|
6097
6104
|
return {
|
|
@@ -6123,13 +6130,13 @@ var LogoutIcon = /** @class */ (function (_super) {
|
|
|
6123
6130
|
__extends(LogoutIcon, _super);
|
|
6124
6131
|
function LogoutIcon(options) {
|
|
6125
6132
|
var _this = _super.call(this) || this;
|
|
6126
|
-
init(_this, options, null, create_fragment$
|
|
6133
|
+
init(_this, options, null, create_fragment$k, safe_not_equal, {});
|
|
6127
6134
|
return _this;
|
|
6128
6135
|
}
|
|
6129
6136
|
return LogoutIcon;
|
|
6130
6137
|
}(SvelteComponent));
|
|
6131
6138
|
/* src/icons/PlansIcon.svelte generated by Svelte v3.48.0 */
|
|
6132
|
-
function create_fragment$
|
|
6139
|
+
function create_fragment$j(ctx) {
|
|
6133
6140
|
var svg;
|
|
6134
6141
|
var path;
|
|
6135
6142
|
return {
|
|
@@ -6159,13 +6166,13 @@ var PlansIcon = /** @class */ (function (_super) {
|
|
|
6159
6166
|
__extends(PlansIcon, _super);
|
|
6160
6167
|
function PlansIcon(options) {
|
|
6161
6168
|
var _this = _super.call(this) || this;
|
|
6162
|
-
init(_this, options, null, create_fragment$
|
|
6169
|
+
init(_this, options, null, create_fragment$j, safe_not_equal, {});
|
|
6163
6170
|
return _this;
|
|
6164
6171
|
}
|
|
6165
6172
|
return PlansIcon;
|
|
6166
6173
|
}(SvelteComponent));
|
|
6167
6174
|
/* src/components/ProfileModalNav.svelte generated by Svelte v3.48.0 */
|
|
6168
|
-
function create_if_block_1$
|
|
6175
|
+
function create_if_block_1$9(ctx) {
|
|
6169
6176
|
var button;
|
|
6170
6177
|
var profileicon;
|
|
6171
6178
|
var t;
|
|
@@ -6216,7 +6223,7 @@ function create_if_block_1$8(ctx) {
|
|
|
6216
6223
|
}
|
|
6217
6224
|
};
|
|
6218
6225
|
}
|
|
6219
|
-
// (
|
|
6226
|
+
// (73:0) {#if showPlansNavButton()}
|
|
6220
6227
|
function create_if_block$b(ctx) {
|
|
6221
6228
|
var button;
|
|
6222
6229
|
var plansicon;
|
|
@@ -6268,7 +6275,7 @@ function create_if_block$b(ctx) {
|
|
|
6268
6275
|
}
|
|
6269
6276
|
};
|
|
6270
6277
|
}
|
|
6271
|
-
function create_fragment$
|
|
6278
|
+
function create_fragment$i(ctx) {
|
|
6272
6279
|
var t0;
|
|
6273
6280
|
var button0;
|
|
6274
6281
|
var securityicon;
|
|
@@ -6282,7 +6289,7 @@ function create_fragment$g(ctx) {
|
|
|
6282
6289
|
var current;
|
|
6283
6290
|
var mounted;
|
|
6284
6291
|
var dispose;
|
|
6285
|
-
var if_block0 = !ctx[1] && create_if_block_1$
|
|
6292
|
+
var if_block0 = !ctx[1] && create_if_block_1$9(ctx);
|
|
6286
6293
|
securityicon = new SecurityIcon({});
|
|
6287
6294
|
var if_block1 = show_if && create_if_block$b(ctx);
|
|
6288
6295
|
logouticon = new LogoutIcon({});
|
|
@@ -6340,7 +6347,7 @@ function create_fragment$g(ctx) {
|
|
|
6340
6347
|
}
|
|
6341
6348
|
}
|
|
6342
6349
|
else {
|
|
6343
|
-
if_block0 = create_if_block_1$
|
|
6350
|
+
if_block0 = create_if_block_1$9(ctx);
|
|
6344
6351
|
if_block0.c();
|
|
6345
6352
|
transition_in(if_block0, 1);
|
|
6346
6353
|
if_block0.m(t0.parentNode, t0);
|
|
@@ -6408,7 +6415,7 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
6408
6415
|
var container = document.getElementById("msOverlay");
|
|
6409
6416
|
var css = document.createElement("style");
|
|
6410
6417
|
var color = data.branding.colors.lightMode.primaryButton;
|
|
6411
|
-
var fullCSS = ".ms-modal__profile-option:hover { color: "
|
|
6418
|
+
var fullCSS = ".ms-modal__profile-option:hover { color: ".concat(color, ";} .ms-modal__profile-option--active { color: ").concat(color, ";} .ms-modal__save-button { background: ").concat(color, ";} .ms-modal__save-button:disabled { background: ").concat(color, ";}");
|
|
6412
6419
|
css.appendChild(document.createTextNode(fullCSS));
|
|
6413
6420
|
container.appendChild(css);
|
|
6414
6421
|
}
|
|
@@ -6473,7 +6480,7 @@ var ProfileModalNav = /** @class */ (function (_super) {
|
|
|
6473
6480
|
__extends(ProfileModalNav, _super);
|
|
6474
6481
|
function ProfileModalNav(options) {
|
|
6475
6482
|
var _this = _super.call(this) || this;
|
|
6476
|
-
init(_this, options, instance$d, create_fragment$
|
|
6483
|
+
init(_this, options, instance$d, create_fragment$i, safe_not_equal, {
|
|
6477
6484
|
member: 4,
|
|
6478
6485
|
onSuccessLogout: 5,
|
|
6479
6486
|
displayProfile: 0,
|
|
@@ -6484,20 +6491,198 @@ var ProfileModalNav = /** @class */ (function (_super) {
|
|
|
6484
6491
|
}
|
|
6485
6492
|
return ProfileModalNav;
|
|
6486
6493
|
}(SvelteComponent));
|
|
6494
|
+
/* src/icons/ProfileDefaultImage.svelte generated by Svelte v3.48.0 */
|
|
6495
|
+
function create_fragment$h(ctx) {
|
|
6496
|
+
var svg;
|
|
6497
|
+
var path;
|
|
6498
|
+
return {
|
|
6499
|
+
c: function () {
|
|
6500
|
+
svg = svg_element("svg");
|
|
6501
|
+
path = svg_element("path");
|
|
6502
|
+
attr(path, "fill", "white");
|
|
6503
|
+
attr(path, "d", "M21 21C24.315 21 27 18.315 27 15C27 11.685 24.315 9 21 9C17.685 9 15 11.685 15 15C15 18.315 17.685 21 21 21ZM21 24C16.995 24 9 26.01 9 30V31.5C9 32.325 9.675 33 10.5 33H31.5C32.325 33 33 32.325 33 31.5V30C33 26.01 25.005 24 21 24Z");
|
|
6504
|
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
6505
|
+
attr(svg, "width", "42");
|
|
6506
|
+
attr(svg, "height", "42");
|
|
6507
|
+
attr(svg, "viewBox", "0 0 42 42");
|
|
6508
|
+
attr(svg, "fill", "none");
|
|
6509
|
+
},
|
|
6510
|
+
m: function (target, anchor) {
|
|
6511
|
+
insert(target, svg, anchor);
|
|
6512
|
+
append(svg, path);
|
|
6513
|
+
},
|
|
6514
|
+
p: noop,
|
|
6515
|
+
i: noop,
|
|
6516
|
+
o: noop,
|
|
6517
|
+
d: function (detaching) {
|
|
6518
|
+
if (detaching)
|
|
6519
|
+
detach(svg);
|
|
6520
|
+
}
|
|
6521
|
+
};
|
|
6522
|
+
}
|
|
6523
|
+
var ProfileDefaultImage = /** @class */ (function (_super) {
|
|
6524
|
+
__extends(ProfileDefaultImage, _super);
|
|
6525
|
+
function ProfileDefaultImage(options) {
|
|
6526
|
+
var _this = _super.call(this) || this;
|
|
6527
|
+
init(_this, options, null, create_fragment$h, safe_not_equal, {});
|
|
6528
|
+
return _this;
|
|
6529
|
+
}
|
|
6530
|
+
return ProfileDefaultImage;
|
|
6531
|
+
}(SvelteComponent));
|
|
6532
|
+
/* src/icons/UploadIcon.svelte generated by Svelte v3.48.0 */
|
|
6533
|
+
function create_fragment$g(ctx) {
|
|
6534
|
+
var svg;
|
|
6535
|
+
var g;
|
|
6536
|
+
var path0;
|
|
6537
|
+
var defs;
|
|
6538
|
+
var clipPath;
|
|
6539
|
+
var path1;
|
|
6540
|
+
return {
|
|
6541
|
+
c: function () {
|
|
6542
|
+
svg = svg_element("svg");
|
|
6543
|
+
g = svg_element("g");
|
|
6544
|
+
path0 = svg_element("path");
|
|
6545
|
+
defs = svg_element("defs");
|
|
6546
|
+
clipPath = svg_element("clipPath");
|
|
6547
|
+
path1 = svg_element("path");
|
|
6548
|
+
attr(path0, "fill", "#494949");
|
|
6549
|
+
attr(path0, "d", "M6.667 10.667h2.666c.367 0 .667-.3.667-.667V6.667h1.06c.593 0 .893-.72.473-1.14l-3.06-3.06a.664.664 0 0 0-.94 0l-3.06 3.06c-.42.42-.126 1.14.467 1.14H6V10c0 .367.3.667.667.667zM4 12h8c.367 0 .667.3.667.667 0 .367-.3.667-.667.667H4a.669.669 0 0 1-.667-.667c0-.367.3-.667.667-.667z");
|
|
6550
|
+
attr(g, "clip-path", "url(#a)");
|
|
6551
|
+
attr(path1, "fill", "#fff");
|
|
6552
|
+
attr(path1, "d", "M0 0h16v16H0z");
|
|
6553
|
+
attr(clipPath, "id", "a");
|
|
6554
|
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
6555
|
+
attr(svg, "fill", "none");
|
|
6556
|
+
attr(svg, "viewBox", "0 0 16 16");
|
|
6557
|
+
},
|
|
6558
|
+
m: function (target, anchor) {
|
|
6559
|
+
insert(target, svg, anchor);
|
|
6560
|
+
append(svg, g);
|
|
6561
|
+
append(g, path0);
|
|
6562
|
+
append(svg, defs);
|
|
6563
|
+
append(defs, clipPath);
|
|
6564
|
+
append(clipPath, path1);
|
|
6565
|
+
},
|
|
6566
|
+
p: noop,
|
|
6567
|
+
i: noop,
|
|
6568
|
+
o: noop,
|
|
6569
|
+
d: function (detaching) {
|
|
6570
|
+
if (detaching)
|
|
6571
|
+
detach(svg);
|
|
6572
|
+
}
|
|
6573
|
+
};
|
|
6574
|
+
}
|
|
6575
|
+
var UploadIcon = /** @class */ (function (_super) {
|
|
6576
|
+
__extends(UploadIcon, _super);
|
|
6577
|
+
function UploadIcon(options) {
|
|
6578
|
+
var _this = _super.call(this) || this;
|
|
6579
|
+
init(_this, options, null, create_fragment$g, safe_not_equal, {});
|
|
6580
|
+
return _this;
|
|
6581
|
+
}
|
|
6582
|
+
return UploadIcon;
|
|
6583
|
+
}(SvelteComponent));
|
|
6487
6584
|
/* src/components/ProfileInfoContent.svelte generated by Svelte v3.48.0 */
|
|
6488
6585
|
function get_each_context$4(ctx, list, i) {
|
|
6489
6586
|
var child_ctx = ctx.slice();
|
|
6490
|
-
child_ctx[
|
|
6491
|
-
child_ctx[
|
|
6492
|
-
child_ctx[
|
|
6587
|
+
child_ctx[10] = list[i];
|
|
6588
|
+
child_ctx[11] = list;
|
|
6589
|
+
child_ctx[12] = i;
|
|
6493
6590
|
return child_ctx;
|
|
6494
6591
|
}
|
|
6495
|
-
// (
|
|
6592
|
+
// (146:4) {:else}
|
|
6593
|
+
function create_else_block_1$2(ctx) {
|
|
6594
|
+
var profiledefaultimage;
|
|
6595
|
+
var current;
|
|
6596
|
+
profiledefaultimage = new ProfileDefaultImage({});
|
|
6597
|
+
return {
|
|
6598
|
+
c: function () {
|
|
6599
|
+
create_component(profiledefaultimage.$$.fragment);
|
|
6600
|
+
},
|
|
6601
|
+
m: function (target, anchor) {
|
|
6602
|
+
mount_component(profiledefaultimage, target, anchor);
|
|
6603
|
+
current = true;
|
|
6604
|
+
},
|
|
6605
|
+
p: noop,
|
|
6606
|
+
i: function (local) {
|
|
6607
|
+
if (current)
|
|
6608
|
+
return;
|
|
6609
|
+
transition_in(profiledefaultimage.$$.fragment, local);
|
|
6610
|
+
current = true;
|
|
6611
|
+
},
|
|
6612
|
+
o: function (local) {
|
|
6613
|
+
transition_out(profiledefaultimage.$$.fragment, local);
|
|
6614
|
+
current = false;
|
|
6615
|
+
},
|
|
6616
|
+
d: function (detaching) {
|
|
6617
|
+
destroy_component(profiledefaultimage, detaching);
|
|
6618
|
+
}
|
|
6619
|
+
};
|
|
6620
|
+
}
|
|
6621
|
+
// (144:4) {#if member.profileImage}
|
|
6622
|
+
function create_if_block_2$6(ctx) {
|
|
6623
|
+
var img;
|
|
6624
|
+
var img_src_value;
|
|
6625
|
+
return {
|
|
6626
|
+
c: function () {
|
|
6627
|
+
img = element("img");
|
|
6628
|
+
if (!src_url_equal(img.src, img_src_value = /*member*/ ctx[0].profileImage))
|
|
6629
|
+
attr(img, "src", img_src_value);
|
|
6630
|
+
attr(img, "alt", "profile image");
|
|
6631
|
+
},
|
|
6632
|
+
m: function (target, anchor) {
|
|
6633
|
+
insert(target, img, anchor);
|
|
6634
|
+
},
|
|
6635
|
+
p: function (ctx, dirty) {
|
|
6636
|
+
if (dirty & /*member*/ 1 && !src_url_equal(img.src, img_src_value = /*member*/ ctx[0].profileImage)) {
|
|
6637
|
+
attr(img, "src", img_src_value);
|
|
6638
|
+
}
|
|
6639
|
+
},
|
|
6640
|
+
i: noop,
|
|
6641
|
+
o: noop,
|
|
6642
|
+
d: function (detaching) {
|
|
6643
|
+
if (detaching)
|
|
6644
|
+
detach(img);
|
|
6645
|
+
}
|
|
6646
|
+
};
|
|
6647
|
+
}
|
|
6648
|
+
// (159:6) {:else}
|
|
6649
|
+
function create_else_block$5(ctx) {
|
|
6650
|
+
var t;
|
|
6651
|
+
return {
|
|
6652
|
+
c: function () {
|
|
6653
|
+
t = text("Replace Image");
|
|
6654
|
+
},
|
|
6655
|
+
m: function (target, anchor) {
|
|
6656
|
+
insert(target, t, anchor);
|
|
6657
|
+
},
|
|
6658
|
+
d: function (detaching) {
|
|
6659
|
+
if (detaching)
|
|
6660
|
+
detach(t);
|
|
6661
|
+
}
|
|
6662
|
+
};
|
|
6663
|
+
}
|
|
6664
|
+
// (157:20) {#if !member.profileImage}
|
|
6665
|
+
function create_if_block_1$8(ctx) {
|
|
6666
|
+
var t;
|
|
6667
|
+
return {
|
|
6668
|
+
c: function () {
|
|
6669
|
+
t = text("Upload Profile Image");
|
|
6670
|
+
},
|
|
6671
|
+
m: function (target, anchor) {
|
|
6672
|
+
insert(target, t, anchor);
|
|
6673
|
+
},
|
|
6674
|
+
d: function (detaching) {
|
|
6675
|
+
if (detaching)
|
|
6676
|
+
detach(t);
|
|
6677
|
+
}
|
|
6678
|
+
};
|
|
6679
|
+
}
|
|
6680
|
+
// (174:4) {#if customField.hidden !== true}
|
|
6496
6681
|
function create_if_block$a(ctx) {
|
|
6497
6682
|
var div1;
|
|
6498
6683
|
var div0;
|
|
6499
6684
|
var label;
|
|
6500
|
-
var t0_value = /*customField*/ ctx[
|
|
6685
|
+
var t0_value = /*customField*/ ctx[10].label + "";
|
|
6501
6686
|
var t0;
|
|
6502
6687
|
var label_for_value;
|
|
6503
6688
|
var t1;
|
|
@@ -6508,7 +6693,7 @@ function create_if_block$a(ctx) {
|
|
|
6508
6693
|
var mounted;
|
|
6509
6694
|
var dispose;
|
|
6510
6695
|
function input_input_handler() {
|
|
6511
|
-
/*input_input_handler*/ ctx[
|
|
6696
|
+
/*input_input_handler*/ ctx[6].call(input, /*customField*/ ctx[10]);
|
|
6512
6697
|
}
|
|
6513
6698
|
return {
|
|
6514
6699
|
c: function () {
|
|
@@ -6520,11 +6705,11 @@ function create_if_block$a(ctx) {
|
|
|
6520
6705
|
input = element("input");
|
|
6521
6706
|
t2 = space();
|
|
6522
6707
|
attr(label, "class", "ms-form__label");
|
|
6523
|
-
attr(label, "for", label_for_value = /*customField*/ ctx[
|
|
6708
|
+
attr(label, "for", label_for_value = /*customField*/ ctx[10].key);
|
|
6524
6709
|
attr(input, "class", "ms-form__input");
|
|
6525
6710
|
attr(input, "type", "text");
|
|
6526
|
-
attr(input, "placeholder", input_placeholder_value = /*customField*/ ctx[
|
|
6527
|
-
attr(input, "name", input_name_value = /*customField*/ ctx[
|
|
6711
|
+
attr(input, "placeholder", input_placeholder_value = /*customField*/ ctx[10].label);
|
|
6712
|
+
attr(input, "name", input_name_value = /*customField*/ ctx[10].key);
|
|
6528
6713
|
attr(div0, "class", "ms-form__group");
|
|
6529
6714
|
attr(div1, "class", "ms-modal__custom-field-container");
|
|
6530
6715
|
},
|
|
@@ -6535,42 +6720,45 @@ function create_if_block$a(ctx) {
|
|
|
6535
6720
|
append(label, t0);
|
|
6536
6721
|
append(div0, t1);
|
|
6537
6722
|
append(div0, input);
|
|
6538
|
-
set_input_value(input, /*member*/ ctx[0].customFields[ /*customField*/ctx[
|
|
6723
|
+
set_input_value(input, /*member*/ ctx[0].customFields[ /*customField*/ctx[10].key]);
|
|
6539
6724
|
append(div1, t2);
|
|
6540
6725
|
if (!mounted) {
|
|
6541
|
-
dispose =
|
|
6726
|
+
dispose = [
|
|
6727
|
+
listen(input, "input", input_input_handler),
|
|
6728
|
+
listen(input, "keyup", /*checkForChange*/ ctx[4])
|
|
6729
|
+
];
|
|
6542
6730
|
mounted = true;
|
|
6543
6731
|
}
|
|
6544
6732
|
},
|
|
6545
6733
|
p: function (new_ctx, dirty) {
|
|
6546
6734
|
ctx = new_ctx;
|
|
6547
|
-
if (dirty & /*customFields*/ 2 && t0_value !== (t0_value = /*customField*/ ctx[
|
|
6735
|
+
if (dirty & /*customFields*/ 2 && t0_value !== (t0_value = /*customField*/ ctx[10].label + ""))
|
|
6548
6736
|
set_data(t0, t0_value);
|
|
6549
|
-
if (dirty & /*customFields*/ 2 && label_for_value !== (label_for_value = /*customField*/ ctx[
|
|
6737
|
+
if (dirty & /*customFields*/ 2 && label_for_value !== (label_for_value = /*customField*/ ctx[10].key)) {
|
|
6550
6738
|
attr(label, "for", label_for_value);
|
|
6551
6739
|
}
|
|
6552
|
-
if (dirty & /*customFields*/ 2 && input_placeholder_value !== (input_placeholder_value = /*customField*/ ctx[
|
|
6740
|
+
if (dirty & /*customFields*/ 2 && input_placeholder_value !== (input_placeholder_value = /*customField*/ ctx[10].label)) {
|
|
6553
6741
|
attr(input, "placeholder", input_placeholder_value);
|
|
6554
6742
|
}
|
|
6555
|
-
if (dirty & /*customFields*/ 2 && input_name_value !== (input_name_value = /*customField*/ ctx[
|
|
6743
|
+
if (dirty & /*customFields*/ 2 && input_name_value !== (input_name_value = /*customField*/ ctx[10].key)) {
|
|
6556
6744
|
attr(input, "name", input_name_value);
|
|
6557
6745
|
}
|
|
6558
|
-
if (dirty & /*member, customFields*/ 3 && input.value !== /*member*/ ctx[0].customFields[ /*customField*/ctx[
|
|
6559
|
-
set_input_value(input, /*member*/ ctx[0].customFields[ /*customField*/ctx[
|
|
6746
|
+
if (dirty & /*member, customFields*/ 3 && input.value !== /*member*/ ctx[0].customFields[ /*customField*/ctx[10].key]) {
|
|
6747
|
+
set_input_value(input, /*member*/ ctx[0].customFields[ /*customField*/ctx[10].key]);
|
|
6560
6748
|
}
|
|
6561
6749
|
},
|
|
6562
6750
|
d: function (detaching) {
|
|
6563
6751
|
if (detaching)
|
|
6564
6752
|
detach(div1);
|
|
6565
6753
|
mounted = false;
|
|
6566
|
-
dispose
|
|
6754
|
+
run_all(dispose);
|
|
6567
6755
|
}
|
|
6568
6756
|
};
|
|
6569
6757
|
}
|
|
6570
|
-
// (
|
|
6758
|
+
// (173:2) {#each customFields as customField, i}
|
|
6571
6759
|
function create_each_block$4(ctx) {
|
|
6572
6760
|
var if_block_anchor;
|
|
6573
|
-
var if_block = /*customField*/ ctx[
|
|
6761
|
+
var if_block = /*customField*/ ctx[10].hidden !== true && create_if_block$a(ctx);
|
|
6574
6762
|
return {
|
|
6575
6763
|
c: function () {
|
|
6576
6764
|
if (if_block)
|
|
@@ -6583,7 +6771,7 @@ function create_each_block$4(ctx) {
|
|
|
6583
6771
|
insert(target, if_block_anchor, anchor);
|
|
6584
6772
|
},
|
|
6585
6773
|
p: function (ctx, dirty) {
|
|
6586
|
-
if ( /*customField*/ctx[
|
|
6774
|
+
if ( /*customField*/ctx[10].hidden !== true) {
|
|
6587
6775
|
if (if_block) {
|
|
6588
6776
|
if_block.p(ctx, dirty);
|
|
6589
6777
|
}
|
|
@@ -6611,11 +6799,39 @@ function create_fragment$f(ctx) {
|
|
|
6611
6799
|
var h2;
|
|
6612
6800
|
var t1;
|
|
6613
6801
|
var div0;
|
|
6614
|
-
var
|
|
6802
|
+
var button0;
|
|
6803
|
+
var t2;
|
|
6615
6804
|
var t3;
|
|
6805
|
+
var div4;
|
|
6806
|
+
var div2;
|
|
6807
|
+
var current_block_type_index;
|
|
6808
|
+
var if_block0;
|
|
6809
|
+
var t4;
|
|
6810
|
+
var div3;
|
|
6811
|
+
var button1;
|
|
6812
|
+
var uploadicon;
|
|
6813
|
+
var t5;
|
|
6616
6814
|
var form;
|
|
6815
|
+
var current;
|
|
6617
6816
|
var mounted;
|
|
6618
6817
|
var dispose;
|
|
6818
|
+
var if_block_creators = [create_if_block_2$6, create_else_block_1$2];
|
|
6819
|
+
var if_blocks = [];
|
|
6820
|
+
function select_block_type(ctx, dirty) {
|
|
6821
|
+
if ( /*member*/ctx[0].profileImage)
|
|
6822
|
+
return 0;
|
|
6823
|
+
return 1;
|
|
6824
|
+
}
|
|
6825
|
+
current_block_type_index = select_block_type(ctx);
|
|
6826
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
6827
|
+
uploadicon = new UploadIcon({});
|
|
6828
|
+
function select_block_type_1(ctx, dirty) {
|
|
6829
|
+
if (!ctx[0].profileImage)
|
|
6830
|
+
return create_if_block_1$8;
|
|
6831
|
+
return create_else_block$5;
|
|
6832
|
+
}
|
|
6833
|
+
var current_block_type = select_block_type_1(ctx);
|
|
6834
|
+
var if_block1 = current_block_type(ctx);
|
|
6619
6835
|
var each_value = /*customFields*/ ctx[1];
|
|
6620
6836
|
var each_blocks = [];
|
|
6621
6837
|
for (var i = 0; i < each_value.length; i += 1) {
|
|
@@ -6628,17 +6844,34 @@ function create_fragment$f(ctx) {
|
|
|
6628
6844
|
h2.textContent = "Profile Information";
|
|
6629
6845
|
t1 = space();
|
|
6630
6846
|
div0 = element("div");
|
|
6631
|
-
|
|
6632
|
-
|
|
6847
|
+
button0 = element("button");
|
|
6848
|
+
t2 = text("Save");
|
|
6633
6849
|
t3 = space();
|
|
6850
|
+
div4 = element("div");
|
|
6851
|
+
div2 = element("div");
|
|
6852
|
+
if_block0.c();
|
|
6853
|
+
t4 = space();
|
|
6854
|
+
div3 = element("div");
|
|
6855
|
+
button1 = element("button");
|
|
6856
|
+
create_component(uploadicon.$$.fragment);
|
|
6857
|
+
if_block1.c();
|
|
6858
|
+
t5 = space();
|
|
6634
6859
|
form = element("form");
|
|
6635
6860
|
for (var i = 0; i < each_blocks.length; i += 1) {
|
|
6636
6861
|
each_blocks[i].c();
|
|
6637
6862
|
}
|
|
6638
6863
|
attr(h2, "class", "ms-modal__title ms-modal__title--profile");
|
|
6639
|
-
attr(
|
|
6864
|
+
attr(button0, "class", "ms-modal__save-button");
|
|
6865
|
+
button0.disabled = /*saveDisabled*/ ctx[2];
|
|
6640
6866
|
attr(div0, "class", "ms-modal__action-container");
|
|
6641
6867
|
attr(div1, "class", "ms-modal__title-container");
|
|
6868
|
+
attr(div2, "class", "ms-modal__profile-image");
|
|
6869
|
+
attr(button1, "data-cy", "change-profile-image");
|
|
6870
|
+
attr(button1, "type", "submit");
|
|
6871
|
+
attr(button1, "class", "ms-modal__outline-button");
|
|
6872
|
+
attr(button1, "data-image-btn", "");
|
|
6873
|
+
attr(div3, "class", "ms-modal__profile-image-button-container");
|
|
6874
|
+
attr(div4, "class", "ms-modal__profile-image-container");
|
|
6642
6875
|
attr(form, "class", "ms-form");
|
|
6643
6876
|
attr(form, "action", "");
|
|
6644
6877
|
attr(form, "method", "post");
|
|
@@ -6649,23 +6882,67 @@ function create_fragment$f(ctx) {
|
|
|
6649
6882
|
append(div1, h2);
|
|
6650
6883
|
append(div1, t1);
|
|
6651
6884
|
append(div1, div0);
|
|
6652
|
-
append(div0,
|
|
6885
|
+
append(div0, button0);
|
|
6886
|
+
append(button0, t2);
|
|
6653
6887
|
insert(target, t3, anchor);
|
|
6888
|
+
insert(target, div4, anchor);
|
|
6889
|
+
append(div4, div2);
|
|
6890
|
+
if_blocks[current_block_type_index].m(div2, null);
|
|
6891
|
+
append(div4, t4);
|
|
6892
|
+
append(div4, div3);
|
|
6893
|
+
append(div3, button1);
|
|
6894
|
+
mount_component(uploadicon, button1, null);
|
|
6895
|
+
if_block1.m(button1, null);
|
|
6896
|
+
insert(target, t5, anchor);
|
|
6654
6897
|
insert(target, form, anchor);
|
|
6655
6898
|
for (var i = 0; i < each_blocks.length; i += 1) {
|
|
6656
6899
|
each_blocks[i].m(form, null);
|
|
6657
6900
|
}
|
|
6901
|
+
current = true;
|
|
6658
6902
|
if (!mounted) {
|
|
6659
6903
|
dispose = [
|
|
6660
|
-
listen(
|
|
6661
|
-
listen(form, "submit", stop_propagation(prevent_default(/*saveProfile*/ ctx[
|
|
6904
|
+
listen(button0, "click", /*saveProfile*/ ctx[3]),
|
|
6905
|
+
listen(form, "submit", stop_propagation(prevent_default(/*saveProfile*/ ctx[3])))
|
|
6662
6906
|
];
|
|
6663
6907
|
mounted = true;
|
|
6664
6908
|
}
|
|
6665
6909
|
},
|
|
6666
6910
|
p: function (ctx, _a) {
|
|
6667
6911
|
var _b = __read(_a, 1), dirty = _b[0];
|
|
6668
|
-
if (dirty & /*
|
|
6912
|
+
if (!current || dirty & /*saveDisabled*/ 4) {
|
|
6913
|
+
button0.disabled = /*saveDisabled*/ ctx[2];
|
|
6914
|
+
}
|
|
6915
|
+
var previous_block_index = current_block_type_index;
|
|
6916
|
+
current_block_type_index = select_block_type(ctx);
|
|
6917
|
+
if (current_block_type_index === previous_block_index) {
|
|
6918
|
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
|
6919
|
+
}
|
|
6920
|
+
else {
|
|
6921
|
+
group_outros();
|
|
6922
|
+
transition_out(if_blocks[previous_block_index], 1, 1, function () {
|
|
6923
|
+
if_blocks[previous_block_index] = null;
|
|
6924
|
+
});
|
|
6925
|
+
check_outros();
|
|
6926
|
+
if_block0 = if_blocks[current_block_type_index];
|
|
6927
|
+
if (!if_block0) {
|
|
6928
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
6929
|
+
if_block0.c();
|
|
6930
|
+
}
|
|
6931
|
+
else {
|
|
6932
|
+
if_block0.p(ctx, dirty);
|
|
6933
|
+
}
|
|
6934
|
+
transition_in(if_block0, 1);
|
|
6935
|
+
if_block0.m(div2, null);
|
|
6936
|
+
}
|
|
6937
|
+
if (current_block_type !== (current_block_type = select_block_type_1(ctx))) {
|
|
6938
|
+
if_block1.d(1);
|
|
6939
|
+
if_block1 = current_block_type(ctx);
|
|
6940
|
+
if (if_block1) {
|
|
6941
|
+
if_block1.c();
|
|
6942
|
+
if_block1.m(button1, null);
|
|
6943
|
+
}
|
|
6944
|
+
}
|
|
6945
|
+
if (dirty & /*customFields, member, checkForChange*/ 19) {
|
|
6669
6946
|
each_value = /*customFields*/ ctx[1];
|
|
6670
6947
|
var i = void 0;
|
|
6671
6948
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -6685,13 +6962,30 @@ function create_fragment$f(ctx) {
|
|
|
6685
6962
|
each_blocks.length = each_value.length;
|
|
6686
6963
|
}
|
|
6687
6964
|
},
|
|
6688
|
-
i:
|
|
6689
|
-
|
|
6965
|
+
i: function (local) {
|
|
6966
|
+
if (current)
|
|
6967
|
+
return;
|
|
6968
|
+
transition_in(if_block0);
|
|
6969
|
+
transition_in(uploadicon.$$.fragment, local);
|
|
6970
|
+
current = true;
|
|
6971
|
+
},
|
|
6972
|
+
o: function (local) {
|
|
6973
|
+
transition_out(if_block0);
|
|
6974
|
+
transition_out(uploadicon.$$.fragment, local);
|
|
6975
|
+
current = false;
|
|
6976
|
+
},
|
|
6690
6977
|
d: function (detaching) {
|
|
6691
6978
|
if (detaching)
|
|
6692
6979
|
detach(div1);
|
|
6693
6980
|
if (detaching)
|
|
6694
6981
|
detach(t3);
|
|
6982
|
+
if (detaching)
|
|
6983
|
+
detach(div4);
|
|
6984
|
+
if_blocks[current_block_type_index].d();
|
|
6985
|
+
destroy_component(uploadicon);
|
|
6986
|
+
if_block1.d();
|
|
6987
|
+
if (detaching)
|
|
6988
|
+
detach(t5);
|
|
6695
6989
|
if (detaching)
|
|
6696
6990
|
detach(form);
|
|
6697
6991
|
destroy_each(each_blocks, detaching);
|
|
@@ -6701,24 +6995,116 @@ function create_fragment$f(ctx) {
|
|
|
6701
6995
|
};
|
|
6702
6996
|
}
|
|
6703
6997
|
function instance$c($$self, $$props, $$invalidate) {
|
|
6998
|
+
var _this = this;
|
|
6704
6999
|
var customFields = $$props.customFields;
|
|
6705
7000
|
var member = $$props.member;
|
|
6706
7001
|
var profileLoader = $$props.profileLoader;
|
|
7002
|
+
var createFileInputElement = function () {
|
|
7003
|
+
var fileInputField = document.createElement("input");
|
|
7004
|
+
fileInputField.setAttribute("required", "");
|
|
7005
|
+
fileInputField.setAttribute("type", "file");
|
|
7006
|
+
fileInputField.setAttribute("accept", "image/*");
|
|
7007
|
+
fileInputField.setAttribute("profile-image", "true");
|
|
7008
|
+
fileInputField.setAttribute("name", "profile-image");
|
|
7009
|
+
fileInputField.setAttribute("DATA-name", "File");
|
|
7010
|
+
fileInputField.setAttribute("hidden", "");
|
|
7011
|
+
fileInputField.setAttribute("tabindex", "-1");
|
|
7012
|
+
return fileInputField;
|
|
7013
|
+
};
|
|
7014
|
+
var initProfileImageButton = function (uploadButton) {
|
|
7015
|
+
// create a fileInputField and hide it
|
|
7016
|
+
var fileInputField = createFileInputElement();
|
|
7017
|
+
// add the fileInputField to the DOM as a sibling of the uploadButton
|
|
7018
|
+
uploadButton.parentNode.insertBefore(fileInputField, uploadButton.nextSibling);
|
|
7019
|
+
// add event listener to uploadButton
|
|
7020
|
+
uploadButton.addEventListener("click", function (e) {
|
|
7021
|
+
e.preventDefault();
|
|
7022
|
+
e.stopPropagation();
|
|
7023
|
+
fileInputField.click();
|
|
7024
|
+
});
|
|
7025
|
+
// add event listener to fileInputField
|
|
7026
|
+
fileInputField.addEventListener("change", function (e) { return __awaiter(_this, void 0, void 0, function () {
|
|
7027
|
+
var file, fileSize, fileType, updateMemberProfileImageFunction, _a, data, message, err_12;
|
|
7028
|
+
return __generator(this, function (_b) {
|
|
7029
|
+
switch (_b.label) {
|
|
7030
|
+
case 0:
|
|
7031
|
+
e.preventDefault();
|
|
7032
|
+
e.stopPropagation();
|
|
7033
|
+
file = e.target.files[0];
|
|
7034
|
+
fileSize = file.size, fileType = file.type;
|
|
7035
|
+
// check if file is an image
|
|
7036
|
+
if (fileType.includes("image") === false)
|
|
7037
|
+
return [2 /*return*/, window.$memberstackDom._showMessage("File is not an image.", true)];
|
|
7038
|
+
if (fileSize > 4000000)
|
|
7039
|
+
return [2 /*return*/, window.$memberstackDom._showMessage("Image must be less than 2MB.", true)];
|
|
7040
|
+
_b.label = 1;
|
|
7041
|
+
case 1:
|
|
7042
|
+
_b.trys.push([1, 3, , 4]);
|
|
7043
|
+
$$invalidate(5, profileLoader = true);
|
|
7044
|
+
updateMemberProfileImageFunction = window.$memberstackDom.updateMemberProfileImage;
|
|
7045
|
+
return [4 /*yield*/, updateMemberProfileImageFunction({ profileImage: file })];
|
|
7046
|
+
case 2:
|
|
7047
|
+
_a = _b.sent(), data = _a.data, message = _a._internalUseOnly.message;
|
|
7048
|
+
$$invalidate(0, member.profileImage = data.profileImage, member);
|
|
7049
|
+
if (message) {
|
|
7050
|
+
window.$memberstackDom._showMessage(message, false);
|
|
7051
|
+
}
|
|
7052
|
+
return [3 /*break*/, 4];
|
|
7053
|
+
case 3:
|
|
7054
|
+
err_12 = _b.sent();
|
|
7055
|
+
console.log(err_12);
|
|
7056
|
+
if (err_12.message) {
|
|
7057
|
+
window.$memberstackDom._showMessage(err_12.message, true);
|
|
7058
|
+
}
|
|
7059
|
+
return [3 /*break*/, 4];
|
|
7060
|
+
case 4:
|
|
7061
|
+
$$invalidate(5, profileLoader = false);
|
|
7062
|
+
return [2 /*return*/];
|
|
7063
|
+
}
|
|
7064
|
+
});
|
|
7065
|
+
}); });
|
|
7066
|
+
};
|
|
7067
|
+
onMount(function () {
|
|
7068
|
+
var upload = document.querySelector("[data-image-btn]");
|
|
7069
|
+
initProfileImageButton(upload);
|
|
7070
|
+
});
|
|
7071
|
+
var initialCustomFields = JSON.parse(JSON.stringify(member.customFields));
|
|
7072
|
+
var saveDisabled = true;
|
|
6707
7073
|
function saveProfile(e) {
|
|
6708
7074
|
return __awaiter(this, void 0, void 0, function () {
|
|
7075
|
+
var msg, err_13;
|
|
6709
7076
|
return __generator(this, function (_a) {
|
|
6710
7077
|
switch (_a.label) {
|
|
6711
7078
|
case 0:
|
|
6712
|
-
$$invalidate(
|
|
6713
|
-
|
|
7079
|
+
$$invalidate(5, profileLoader = true);
|
|
7080
|
+
_a.label = 1;
|
|
6714
7081
|
case 1:
|
|
6715
|
-
_a.
|
|
6716
|
-
|
|
6717
|
-
|
|
7082
|
+
_a.trys.push([1, 3, , 4]);
|
|
7083
|
+
return [4 /*yield*/, window.$memberstackDom.updateMember({ customFields: member.customFields })];
|
|
7084
|
+
case 2:
|
|
7085
|
+
msg = (_a.sent())._internalUseOnly.message;
|
|
7086
|
+
$$invalidate(5, profileLoader = false);
|
|
7087
|
+
$$invalidate(2, saveDisabled = true);
|
|
7088
|
+
initialCustomFields = JSON.parse(JSON.stringify(member.customFields));
|
|
7089
|
+
window.$memberstackDom._showMessage(msg, false);
|
|
7090
|
+
return [3 /*break*/, 4];
|
|
7091
|
+
case 3:
|
|
7092
|
+
err_13 = _a.sent();
|
|
7093
|
+
$$invalidate(5, profileLoader = false);
|
|
7094
|
+
window.$memberstackDom._showMessage(err_13.message, true);
|
|
7095
|
+
return [3 /*break*/, 4];
|
|
7096
|
+
case 4: return [2 /*return*/];
|
|
6718
7097
|
}
|
|
6719
7098
|
});
|
|
6720
7099
|
});
|
|
6721
7100
|
}
|
|
7101
|
+
function checkForChange(e) {
|
|
7102
|
+
if (e.target.value !== initialCustomFields[e.target.name]) {
|
|
7103
|
+
$$invalidate(2, saveDisabled = false);
|
|
7104
|
+
return;
|
|
7105
|
+
}
|
|
7106
|
+
$$invalidate(2, saveDisabled = true);
|
|
7107
|
+
}
|
|
6722
7108
|
function input_input_handler(customField) {
|
|
6723
7109
|
member.customFields[customField.key] = this.value;
|
|
6724
7110
|
$$invalidate(0, member);
|
|
@@ -6729,9 +7115,17 @@ function instance$c($$self, $$props, $$invalidate) {
|
|
|
6729
7115
|
if ('member' in $$props)
|
|
6730
7116
|
$$invalidate(0, member = $$props.member);
|
|
6731
7117
|
if ('profileLoader' in $$props)
|
|
6732
|
-
$$invalidate(
|
|
7118
|
+
$$invalidate(5, profileLoader = $$props.profileLoader);
|
|
6733
7119
|
};
|
|
6734
|
-
return [
|
|
7120
|
+
return [
|
|
7121
|
+
member,
|
|
7122
|
+
customFields,
|
|
7123
|
+
saveDisabled,
|
|
7124
|
+
saveProfile,
|
|
7125
|
+
checkForChange,
|
|
7126
|
+
profileLoader,
|
|
7127
|
+
input_input_handler
|
|
7128
|
+
];
|
|
6735
7129
|
}
|
|
6736
7130
|
var ProfileInfoContent = /** @class */ (function (_super) {
|
|
6737
7131
|
__extends(ProfileInfoContent, _super);
|
|
@@ -6740,7 +7134,7 @@ var ProfileInfoContent = /** @class */ (function (_super) {
|
|
|
6740
7134
|
init(_this, options, instance$c, create_fragment$f, safe_not_equal, {
|
|
6741
7135
|
customFields: 1,
|
|
6742
7136
|
member: 0,
|
|
6743
|
-
profileLoader:
|
|
7137
|
+
profileLoader: 5
|
|
6744
7138
|
});
|
|
6745
7139
|
return _this;
|
|
6746
7140
|
}
|
|
@@ -7006,7 +7400,7 @@ function create_each_block$3(key_1, ctx) {
|
|
|
7006
7400
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
7007
7401
|
args[_i] = arguments[_i];
|
|
7008
7402
|
}
|
|
7009
|
-
return /*func*/ ctx[9].apply(/*func*/ ctx,
|
|
7403
|
+
return /*func*/ ctx[9].apply(/*func*/ ctx, __spreadArray([/*provider*/ ctx[16]], __read(args), false));
|
|
7010
7404
|
}
|
|
7011
7405
|
function select_block_type_1(ctx, dirty) {
|
|
7012
7406
|
if (dirty & /*member, $app*/ 18)
|
|
@@ -7272,7 +7666,7 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
7272
7666
|
var emailInputValid = false;
|
|
7273
7667
|
function submitEmailChange(e) {
|
|
7274
7668
|
return __awaiter(this, void 0, void 0, function () {
|
|
7275
|
-
var message,
|
|
7669
|
+
var message, err_14;
|
|
7276
7670
|
return __generator(this, function (_a) {
|
|
7277
7671
|
switch (_a.label) {
|
|
7278
7672
|
case 0:
|
|
@@ -7289,8 +7683,8 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
7289
7683
|
$$invalidate(8, profileLoader = false);
|
|
7290
7684
|
return [3 /*break*/, 4];
|
|
7291
7685
|
case 3:
|
|
7292
|
-
|
|
7293
|
-
window.$memberstackDom._showMessage(
|
|
7686
|
+
err_14 = _a.sent();
|
|
7687
|
+
window.$memberstackDom._showMessage(err_14.message, true);
|
|
7294
7688
|
$$invalidate(8, profileLoader = false);
|
|
7295
7689
|
return [3 /*break*/, 4];
|
|
7296
7690
|
case 4: return [2 /*return*/];
|
|
@@ -7300,7 +7694,7 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
7300
7694
|
}
|
|
7301
7695
|
function disconnectProvider(provider) {
|
|
7302
7696
|
return __awaiter(this, void 0, void 0, function () {
|
|
7303
|
-
var _a, data, message,
|
|
7697
|
+
var _a, data, message, err_15;
|
|
7304
7698
|
return __generator(this, function (_b) {
|
|
7305
7699
|
switch (_b.label) {
|
|
7306
7700
|
case 0:
|
|
@@ -7316,8 +7710,8 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
7316
7710
|
$$invalidate(8, profileLoader = false);
|
|
7317
7711
|
return [3 /*break*/, 4];
|
|
7318
7712
|
case 3:
|
|
7319
|
-
|
|
7320
|
-
window.$memberstackDom._showMessage(
|
|
7713
|
+
err_15 = _b.sent();
|
|
7714
|
+
window.$memberstackDom._showMessage(err_15.message, true);
|
|
7321
7715
|
$$invalidate(8, profileLoader = false);
|
|
7322
7716
|
return [3 /*break*/, 4];
|
|
7323
7717
|
case 4: return [2 /*return*/];
|
|
@@ -7327,7 +7721,7 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
7327
7721
|
}
|
|
7328
7722
|
function connectAdditionalProvider(provider) {
|
|
7329
7723
|
return __awaiter(this, void 0, void 0, function () {
|
|
7330
|
-
var data,
|
|
7724
|
+
var data, err_16;
|
|
7331
7725
|
return __generator(this, function (_a) {
|
|
7332
7726
|
switch (_a.label) {
|
|
7333
7727
|
case 0:
|
|
@@ -7342,8 +7736,8 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
7342
7736
|
window.$memberstackDom._showMessage(data.message, false);
|
|
7343
7737
|
return [3 /*break*/, 4];
|
|
7344
7738
|
case 3:
|
|
7345
|
-
|
|
7346
|
-
window.$memberstackDom._showMessage(
|
|
7739
|
+
err_16 = _a.sent();
|
|
7740
|
+
window.$memberstackDom._showMessage(err_16.message, true);
|
|
7347
7741
|
return [3 /*break*/, 4];
|
|
7348
7742
|
case 4: return [2 /*return*/];
|
|
7349
7743
|
}
|
|
@@ -7453,7 +7847,7 @@ function create_if_block$8(ctx) {
|
|
|
7453
7847
|
}
|
|
7454
7848
|
var passwordinput_props = {
|
|
7455
7849
|
passwordLabel: "Current Password",
|
|
7456
|
-
passwordPlaceholder: "Enter
|
|
7850
|
+
passwordPlaceholder: "Enter current password"
|
|
7457
7851
|
};
|
|
7458
7852
|
if ( /*currentPasswordValue*/ctx[2] !== void 0) {
|
|
7459
7853
|
passwordinput_props.passwordValue = /*currentPasswordValue*/ ctx[2];
|
|
@@ -7744,7 +8138,7 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
7744
8138
|
var confirmPasswordValid = false;
|
|
7745
8139
|
function submitPasswordChange(e) {
|
|
7746
8140
|
return __awaiter(this, void 0, void 0, function () {
|
|
7747
|
-
var message, msg, msg,
|
|
8141
|
+
var message, msg, msg, err_17;
|
|
7748
8142
|
return __generator(this, function (_a) {
|
|
7749
8143
|
switch (_a.label) {
|
|
7750
8144
|
case 0:
|
|
@@ -7784,8 +8178,8 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
7784
8178
|
$$invalidate(9, profileLoader = false);
|
|
7785
8179
|
return [3 /*break*/, 7];
|
|
7786
8180
|
case 6:
|
|
7787
|
-
|
|
7788
|
-
window.$memberstackDom._showMessage(
|
|
8181
|
+
err_17 = _a.sent();
|
|
8182
|
+
window.$memberstackDom._showMessage(err_17.message, true);
|
|
7789
8183
|
$$invalidate(9, profileLoader = false);
|
|
7790
8184
|
return [3 /*break*/, 7];
|
|
7791
8185
|
case 7: return [2 /*return*/];
|
|
@@ -7866,7 +8260,7 @@ function fade(node, _a) {
|
|
|
7866
8260
|
delay: delay,
|
|
7867
8261
|
duration: duration,
|
|
7868
8262
|
easing: easing,
|
|
7869
|
-
css: function (t) { return "opacity: "
|
|
8263
|
+
css: function (t) { return "opacity: ".concat(t * o); }
|
|
7870
8264
|
};
|
|
7871
8265
|
}
|
|
7872
8266
|
/* src/components/ProfileLoader.svelte generated by Svelte v3.48.0 */
|
|
@@ -8330,7 +8724,7 @@ function create_each_block$2(ctx) {
|
|
|
8330
8724
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8331
8725
|
args[_i] = arguments[_i];
|
|
8332
8726
|
}
|
|
8333
|
-
return /*func*/ ctx[6].apply(/*func*/ ctx,
|
|
8727
|
+
return /*func*/ ctx[6].apply(/*func*/ ctx, __spreadArray([/*memberPlan*/ ctx[8]], __read(args), false));
|
|
8334
8728
|
}
|
|
8335
8729
|
function func_1() {
|
|
8336
8730
|
return /*func_1*/ ctx[7](/*memberPlan*/ ctx[8]);
|
|
@@ -8554,7 +8948,7 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
8554
8948
|
}
|
|
8555
8949
|
function removeFreePlan(planId) {
|
|
8556
8950
|
return __awaiter(this, void 0, void 0, function () {
|
|
8557
|
-
var
|
|
8951
|
+
var err_18;
|
|
8558
8952
|
return __generator(this, function (_a) {
|
|
8559
8953
|
switch (_a.label) {
|
|
8560
8954
|
case 0:
|
|
@@ -8568,9 +8962,9 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
8568
8962
|
$$invalidate(0, member.planConnections = member.planConnections.filter(function (plan) { return plan.planId !== planId; }), member);
|
|
8569
8963
|
return [3 /*break*/, 5];
|
|
8570
8964
|
case 3:
|
|
8571
|
-
|
|
8572
|
-
console.log(
|
|
8573
|
-
window.$memberstackDom._showMessage(
|
|
8965
|
+
err_18 = _a.sent();
|
|
8966
|
+
console.log(err_18);
|
|
8967
|
+
window.$memberstackDom._showMessage(err_18.message, true);
|
|
8574
8968
|
return [3 /*break*/, 5];
|
|
8575
8969
|
case 4:
|
|
8576
8970
|
$$invalidate(5, profileLoader = false);
|
|
@@ -8641,7 +9035,7 @@ function create_if_block_4$2(ctx) {
|
|
|
8641
9035
|
}
|
|
8642
9036
|
};
|
|
8643
9037
|
}
|
|
8644
|
-
// (
|
|
9038
|
+
// (67:43)
|
|
8645
9039
|
function create_if_block_3$2(ctx) {
|
|
8646
9040
|
var plansinfocontent;
|
|
8647
9041
|
var updating_member;
|
|
@@ -8700,7 +9094,7 @@ function create_if_block_3$2(ctx) {
|
|
|
8700
9094
|
}
|
|
8701
9095
|
};
|
|
8702
9096
|
}
|
|
8703
|
-
// (
|
|
9097
|
+
// (61:52)
|
|
8704
9098
|
function create_if_block_2$3(ctx) {
|
|
8705
9099
|
var passwordinfocontent;
|
|
8706
9100
|
var updating_displayProfile;
|
|
@@ -8772,7 +9166,7 @@ function create_if_block_2$3(ctx) {
|
|
|
8772
9166
|
}
|
|
8773
9167
|
};
|
|
8774
9168
|
}
|
|
8775
|
-
// (
|
|
9169
|
+
// (55:46)
|
|
8776
9170
|
function create_if_block_1$4(ctx) {
|
|
8777
9171
|
var securityinfocontent;
|
|
8778
9172
|
var updating_displayProfile;
|
|
@@ -8844,7 +9238,7 @@ function create_if_block_1$4(ctx) {
|
|
|
8844
9238
|
}
|
|
8845
9239
|
};
|
|
8846
9240
|
}
|
|
8847
|
-
// (
|
|
9241
|
+
// (49:6) {#if displayProfile === "profile"}
|
|
8848
9242
|
function create_if_block$6(ctx) {
|
|
8849
9243
|
var profileinfocontent;
|
|
8850
9244
|
var updating_member;
|
|
@@ -9591,7 +9985,7 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
9591
9985
|
var container = document.getElementById("msOverlay");
|
|
9592
9986
|
var css = document.createElement("style");
|
|
9593
9987
|
var color = data.branding.colors.lightMode.primaryButton;
|
|
9594
|
-
var fullCSS = ".ms-modal__profile-option:hover { color: "
|
|
9988
|
+
var fullCSS = ".ms-modal__profile-option:hover { color: ".concat(color, ";} .ms-modal__profile-option--active { color: ").concat(color, ";} .ms-modal__save-button { background: ").concat(color, ";} .ms-modal__save-button:disabled { background: ").concat(color, ";}");
|
|
9595
9989
|
css.appendChild(document.createTextNode(fullCSS));
|
|
9596
9990
|
container.appendChild(css);
|
|
9597
9991
|
}
|
|
@@ -9601,7 +9995,7 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
9601
9995
|
});
|
|
9602
9996
|
function logout(e) {
|
|
9603
9997
|
return __awaiter(this, void 0, void 0, function () {
|
|
9604
|
-
var _a, data, message,
|
|
9998
|
+
var _a, data, message, err_19;
|
|
9605
9999
|
return __generator(this, function (_b) {
|
|
9606
10000
|
switch (_b.label) {
|
|
9607
10001
|
case 0:
|
|
@@ -9613,8 +10007,8 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
9613
10007
|
onSuccessLogout({ type: "LOGOUT", data: data });
|
|
9614
10008
|
return [3 /*break*/, 3];
|
|
9615
10009
|
case 2:
|
|
9616
|
-
|
|
9617
|
-
window.$memberstackDom._showMessage(
|
|
10010
|
+
err_19 = _b.sent();
|
|
10011
|
+
window.$memberstackDom._showMessage(err_19.message, true);
|
|
9618
10012
|
return [3 /*break*/, 3];
|
|
9619
10013
|
case 3: return [2 /*return*/];
|
|
9620
10014
|
}
|
|
@@ -10150,7 +10544,7 @@ function create_each_block(key_1, ctx) {
|
|
|
10150
10544
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
10151
10545
|
args[_i] = arguments[_i];
|
|
10152
10546
|
}
|
|
10153
|
-
return /*func*/ ctx[9].apply(/*func*/ ctx,
|
|
10547
|
+
return /*func*/ ctx[9].apply(/*func*/ ctx, __spreadArray([/*provider*/ ctx[16]], __read(args), false));
|
|
10154
10548
|
}
|
|
10155
10549
|
function select_block_type_1(ctx, dirty) {
|
|
10156
10550
|
if (dirty & /*member, $app*/ 18)
|
|
@@ -10398,7 +10792,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
10398
10792
|
var emailInputValid = false;
|
|
10399
10793
|
function submitEmailChange(e) {
|
|
10400
10794
|
return __awaiter(this, void 0, void 0, function () {
|
|
10401
|
-
var message,
|
|
10795
|
+
var message, err_20;
|
|
10402
10796
|
return __generator(this, function (_a) {
|
|
10403
10797
|
switch (_a.label) {
|
|
10404
10798
|
case 0:
|
|
@@ -10415,8 +10809,8 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
10415
10809
|
$$invalidate(8, profileLoader = false);
|
|
10416
10810
|
return [3 /*break*/, 4];
|
|
10417
10811
|
case 3:
|
|
10418
|
-
|
|
10419
|
-
window.$memberstackDom._showMessage(
|
|
10812
|
+
err_20 = _a.sent();
|
|
10813
|
+
window.$memberstackDom._showMessage(err_20.message, true);
|
|
10420
10814
|
$$invalidate(8, profileLoader = false);
|
|
10421
10815
|
return [3 /*break*/, 4];
|
|
10422
10816
|
case 4: return [2 /*return*/];
|
|
@@ -10426,7 +10820,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
10426
10820
|
}
|
|
10427
10821
|
function disconnectProvider(provider) {
|
|
10428
10822
|
return __awaiter(this, void 0, void 0, function () {
|
|
10429
|
-
var _a, data, message,
|
|
10823
|
+
var _a, data, message, err_21;
|
|
10430
10824
|
return __generator(this, function (_b) {
|
|
10431
10825
|
switch (_b.label) {
|
|
10432
10826
|
case 0:
|
|
@@ -10442,8 +10836,8 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
10442
10836
|
$$invalidate(8, profileLoader = false);
|
|
10443
10837
|
return [3 /*break*/, 4];
|
|
10444
10838
|
case 3:
|
|
10445
|
-
|
|
10446
|
-
window.$memberstackDom._showMessage(
|
|
10839
|
+
err_21 = _b.sent();
|
|
10840
|
+
window.$memberstackDom._showMessage(err_21.message, true);
|
|
10447
10841
|
$$invalidate(8, profileLoader = false);
|
|
10448
10842
|
return [3 /*break*/, 4];
|
|
10449
10843
|
case 4: return [2 /*return*/];
|
|
@@ -10453,7 +10847,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
10453
10847
|
}
|
|
10454
10848
|
function connectAdditionalProvider(provider) {
|
|
10455
10849
|
return __awaiter(this, void 0, void 0, function () {
|
|
10456
|
-
var data,
|
|
10850
|
+
var data, err_22;
|
|
10457
10851
|
return __generator(this, function (_a) {
|
|
10458
10852
|
switch (_a.label) {
|
|
10459
10853
|
case 0:
|
|
@@ -10468,8 +10862,8 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
10468
10862
|
window.$memberstackDom._showMessage(data.message, false);
|
|
10469
10863
|
return [3 /*break*/, 4];
|
|
10470
10864
|
case 3:
|
|
10471
|
-
|
|
10472
|
-
window.$memberstackDom._showMessage(
|
|
10865
|
+
err_22 = _a.sent();
|
|
10866
|
+
window.$memberstackDom._showMessage(err_22.message, true);
|
|
10473
10867
|
return [3 /*break*/, 4];
|
|
10474
10868
|
case 4: return [2 /*return*/];
|
|
10475
10869
|
}
|
|
@@ -10786,7 +11180,7 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
10786
11180
|
var confirmPasswordValid = false;
|
|
10787
11181
|
function submitPasswordChange(e) {
|
|
10788
11182
|
return __awaiter(this, void 0, void 0, function () {
|
|
10789
|
-
var message, msg, msg,
|
|
11183
|
+
var message, msg, msg, err_23;
|
|
10790
11184
|
return __generator(this, function (_a) {
|
|
10791
11185
|
switch (_a.label) {
|
|
10792
11186
|
case 0:
|
|
@@ -10826,8 +11220,8 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
10826
11220
|
$$invalidate(8, profileLoader = false);
|
|
10827
11221
|
return [3 /*break*/, 7];
|
|
10828
11222
|
case 6:
|
|
10829
|
-
|
|
10830
|
-
window.$memberstackDom._showMessage(
|
|
11223
|
+
err_23 = _a.sent();
|
|
11224
|
+
window.$memberstackDom._showMessage(err_23.message, true);
|
|
10831
11225
|
$$invalidate(8, profileLoader = false);
|
|
10832
11226
|
return [3 /*break*/, 7];
|
|
10833
11227
|
case 7: return [2 /*return*/];
|
|
@@ -11699,7 +12093,7 @@ var MobileProfileModal = /** @class */ (function (_super) {
|
|
|
11699
12093
|
}(SvelteComponent));
|
|
11700
12094
|
/* src/Main.svelte generated by Svelte v3.48.0 */
|
|
11701
12095
|
function add_css(target) {
|
|
11702
|
-
append_styles(target, "svelte-1xk6xa6", "@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-1xk6xa6{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#msOverlay.svelte-1xk6xa6{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-right h3{margin-top:40px !important;margin-bottom:10px !important;font-size:18px !important;line-height:1em !important;font-weight:700 !important}.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\n 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}");
|
|
12096
|
+
append_styles(target, "svelte-14go1rs", "@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-14go1rs{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#msOverlay.svelte-14go1rs{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-right h3{margin-top:40px !important;margin-bottom:10px !important;font-size:18px !important;line-height:1em !important;font-weight:700 !important}.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;opacity:0.4}.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:8px;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__profile-image-container{display:flex;justify-content:flex-start;width:100%;margin-bottom:21px;align-items:center;flex-direction:row;gap:12px}.ms-modal__profile-image{width:42px;height:42px;border-radius:50%;object-fit:cover;overflow:hidden;background:#ddd;border:1px solid #C9C9C9;display:flex;justify-content:center;align-items:center}.ms-modal__profile-image img{width:100%;height:100%;object-fit:cover}.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\n 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}");
|
|
11703
12097
|
}
|
|
11704
12098
|
// (118:34)
|
|
11705
12099
|
function create_if_block_7(ctx) {
|
|
@@ -12338,7 +12732,7 @@ function create_fragment(ctx) {
|
|
|
12338
12732
|
if (if_block)
|
|
12339
12733
|
if_block.c();
|
|
12340
12734
|
attr(main, "id", "msOverlay");
|
|
12341
|
-
attr(main, "class", "svelte-
|
|
12735
|
+
attr(main, "class", "svelte-14go1rs");
|
|
12342
12736
|
},
|
|
12343
12737
|
m: function (target, anchor) {
|
|
12344
12738
|
insert(target, main, anchor);
|