@memberstack/dom 1.9.9 → 1.9.10
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 +25 -634
- package/lib/methods/dom/main-dom.js +738 -432
- package/lib/methods/dom/methods.js +19 -12
- package/lib/methods/index.d.ts +25 -634
- package/lib/methods/index.js +58 -2
- package/lib/methods/requests/index.d.ts +3 -3
- package/lib/methods/requests/index.js +36 -27
- package/lib/methods/requests/requests.js +5 -4
- package/lib/types/index.js +6 -2
- package/lib/types/params.d.ts +1 -0
- package/lib/types/payloads.d.ts +3 -1
- package/lib/types/utils/payloads.d.ts +10 -0
- package/lib/utils/cookies.js +5 -3
- package/lib/utils/defaultMessageBox.js +8 -5
- package/package.json +2 -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,
|
|
@@ -948,6 +955,7 @@ function writable(value, start) {
|
|
|
948
955
|
var AppStore = writable({
|
|
949
956
|
initialValue: true,
|
|
950
957
|
customFields: [],
|
|
958
|
+
isPaid: false,
|
|
951
959
|
branding: {
|
|
952
960
|
logo: "",
|
|
953
961
|
colors: {
|
|
@@ -1021,7 +1029,7 @@ function create_fragment$G(ctx) {
|
|
|
1021
1029
|
}
|
|
1022
1030
|
};
|
|
1023
1031
|
}
|
|
1024
|
-
function instance$
|
|
1032
|
+
function instance$p($$self, $$props, $$invalidate) {
|
|
1025
1033
|
var _a = $$props.$$slots, slots = _a === void 0 ? {} : _a, $$scope = $$props.$$scope;
|
|
1026
1034
|
var query = $$props.query;
|
|
1027
1035
|
var mql;
|
|
@@ -1067,7 +1075,7 @@ var MediaQuery = /** @class */ (function (_super) {
|
|
|
1067
1075
|
__extends(MediaQuery, _super);
|
|
1068
1076
|
function MediaQuery(options) {
|
|
1069
1077
|
var _this = _super.call(this) || this;
|
|
1070
|
-
init(_this, options, instance$
|
|
1078
|
+
init(_this, options, instance$p, create_fragment$G, safe_not_equal, { query: 1 });
|
|
1071
1079
|
return _this;
|
|
1072
1080
|
}
|
|
1073
1081
|
return MediaQuery;
|
|
@@ -1257,7 +1265,7 @@ function create_fragment$C(ctx) {
|
|
|
1257
1265
|
}
|
|
1258
1266
|
};
|
|
1259
1267
|
}
|
|
1260
|
-
function instance$
|
|
1268
|
+
function instance$o($$self, $$props, $$invalidate) {
|
|
1261
1269
|
var closeModal = $$props.closeModal;
|
|
1262
1270
|
$$self.$$set = function ($$props) {
|
|
1263
1271
|
if ('closeModal' in $$props)
|
|
@@ -1269,7 +1277,7 @@ var CloseButton = /** @class */ (function (_super) {
|
|
|
1269
1277
|
__extends(CloseButton, _super);
|
|
1270
1278
|
function CloseButton(options) {
|
|
1271
1279
|
var _this = _super.call(this) || this;
|
|
1272
|
-
init(_this, options, instance$
|
|
1280
|
+
init(_this, options, instance$o, create_fragment$C, safe_not_equal, { closeModal: 0 });
|
|
1273
1281
|
return _this;
|
|
1274
1282
|
}
|
|
1275
1283
|
return CloseButton;
|
|
@@ -1364,7 +1372,7 @@ function create_else_block$7(ctx) {
|
|
|
1364
1372
|
};
|
|
1365
1373
|
}
|
|
1366
1374
|
// (13:2) {#if app.branding.logo}
|
|
1367
|
-
function create_if_block$
|
|
1375
|
+
function create_if_block$j(ctx) {
|
|
1368
1376
|
var img;
|
|
1369
1377
|
var img_src_value;
|
|
1370
1378
|
var img_alt_value;
|
|
@@ -1400,7 +1408,7 @@ function create_fragment$A(ctx) {
|
|
|
1400
1408
|
var current_block_type_index;
|
|
1401
1409
|
var if_block;
|
|
1402
1410
|
var current;
|
|
1403
|
-
var if_block_creators = [create_if_block$
|
|
1411
|
+
var if_block_creators = [create_if_block$j, create_else_block$7];
|
|
1404
1412
|
var if_blocks = [];
|
|
1405
1413
|
function select_block_type(ctx, dirty) {
|
|
1406
1414
|
if ( /*app*/ctx[0].branding.logo)
|
|
@@ -1462,7 +1470,7 @@ function create_fragment$A(ctx) {
|
|
|
1462
1470
|
}
|
|
1463
1471
|
};
|
|
1464
1472
|
}
|
|
1465
|
-
function instance$
|
|
1473
|
+
function instance$n($$self, $$props, $$invalidate) {
|
|
1466
1474
|
var app = {};
|
|
1467
1475
|
AppStore.subscribe(function (data) {
|
|
1468
1476
|
$$invalidate(0, app = data);
|
|
@@ -1473,7 +1481,7 @@ var FigureElement = /** @class */ (function (_super) {
|
|
|
1473
1481
|
__extends(FigureElement, _super);
|
|
1474
1482
|
function FigureElement(options) {
|
|
1475
1483
|
var _this = _super.call(this) || this;
|
|
1476
|
-
init(_this, options, instance$
|
|
1484
|
+
init(_this, options, instance$n, create_fragment$A, safe_not_equal, {});
|
|
1477
1485
|
return _this;
|
|
1478
1486
|
}
|
|
1479
1487
|
return FigureElement;
|
|
@@ -1521,7 +1529,7 @@ function create_else_block$6(ctx) {
|
|
|
1521
1529
|
};
|
|
1522
1530
|
}
|
|
1523
1531
|
// (15:2) {#if !isLoading}
|
|
1524
|
-
function create_if_block$
|
|
1532
|
+
function create_if_block$i(ctx) {
|
|
1525
1533
|
var button;
|
|
1526
1534
|
var t;
|
|
1527
1535
|
return {
|
|
@@ -1556,7 +1564,7 @@ function create_fragment$z(ctx) {
|
|
|
1556
1564
|
var current_block_type_index;
|
|
1557
1565
|
var if_block;
|
|
1558
1566
|
var current;
|
|
1559
|
-
var if_block_creators = [create_if_block$
|
|
1567
|
+
var if_block_creators = [create_if_block$i, create_else_block$6];
|
|
1560
1568
|
var if_blocks = [];
|
|
1561
1569
|
function select_block_type(ctx, dirty) {
|
|
1562
1570
|
if (!ctx[1])
|
|
@@ -1617,7 +1625,7 @@ function create_fragment$z(ctx) {
|
|
|
1617
1625
|
}
|
|
1618
1626
|
};
|
|
1619
1627
|
}
|
|
1620
|
-
function instance$
|
|
1628
|
+
function instance$m($$self, $$props, $$invalidate) {
|
|
1621
1629
|
var $app;
|
|
1622
1630
|
component_subscribe($$self, AppStore, function ($$value) { return $$invalidate(3, $app = $$value); });
|
|
1623
1631
|
var _a = $$props.buttonText, buttonText = _a === void 0 ? "Submit" : _a;
|
|
@@ -1638,7 +1646,7 @@ var SubmitButton = /** @class */ (function (_super) {
|
|
|
1638
1646
|
__extends(SubmitButton, _super);
|
|
1639
1647
|
function SubmitButton(options) {
|
|
1640
1648
|
var _this = _super.call(this) || this;
|
|
1641
|
-
init(_this, options, instance$
|
|
1649
|
+
init(_this, options, instance$m, create_fragment$z, safe_not_equal, { buttonText: 0, isLoading: 1 });
|
|
1642
1650
|
return _this;
|
|
1643
1651
|
}
|
|
1644
1652
|
return SubmitButton;
|
|
@@ -1680,7 +1688,7 @@ var ErrorIcon = /** @class */ (function (_super) {
|
|
|
1680
1688
|
return ErrorIcon;
|
|
1681
1689
|
}(SvelteComponent));
|
|
1682
1690
|
/* src/components/EmailInput.svelte generated by Svelte v3.48.0 */
|
|
1683
|
-
function create_if_block$
|
|
1691
|
+
function create_if_block$h(ctx) {
|
|
1684
1692
|
var div;
|
|
1685
1693
|
var erroricon;
|
|
1686
1694
|
var t0;
|
|
@@ -1729,12 +1737,12 @@ function create_fragment$x(ctx) {
|
|
|
1729
1737
|
var current;
|
|
1730
1738
|
var mounted;
|
|
1731
1739
|
var dispose;
|
|
1732
|
-
var if_block = /*inputError*/ ctx[2] && create_if_block$
|
|
1740
|
+
var if_block = /*inputError*/ ctx[2] && create_if_block$h(ctx);
|
|
1733
1741
|
return {
|
|
1734
1742
|
c: function () {
|
|
1735
1743
|
div = element("div");
|
|
1736
1744
|
label = element("label");
|
|
1737
|
-
label.textContent = ""
|
|
1745
|
+
label.textContent = "".concat(/*emailLabel*/ ctx[3]);
|
|
1738
1746
|
t1 = space();
|
|
1739
1747
|
input = element("input");
|
|
1740
1748
|
t2 = space();
|
|
@@ -1783,7 +1791,7 @@ function create_fragment$x(ctx) {
|
|
|
1783
1791
|
}
|
|
1784
1792
|
}
|
|
1785
1793
|
else {
|
|
1786
|
-
if_block = create_if_block$
|
|
1794
|
+
if_block = create_if_block$h(ctx);
|
|
1787
1795
|
if_block.c();
|
|
1788
1796
|
transition_in(if_block, 1);
|
|
1789
1797
|
if_block.m(div, null);
|
|
@@ -1817,7 +1825,7 @@ function create_fragment$x(ctx) {
|
|
|
1817
1825
|
}
|
|
1818
1826
|
};
|
|
1819
1827
|
}
|
|
1820
|
-
function instance$
|
|
1828
|
+
function instance$l($$self, $$props, $$invalidate) {
|
|
1821
1829
|
var $textStore;
|
|
1822
1830
|
component_subscribe($$self, TextStore, function ($$value) { return $$invalidate(8, $textStore = $$value); });
|
|
1823
1831
|
var _a = $$props.emailInputValid, emailInputValid = _a === void 0 ? false : _a;
|
|
@@ -1866,7 +1874,7 @@ var EmailInput = /** @class */ (function (_super) {
|
|
|
1866
1874
|
__extends(EmailInput, _super);
|
|
1867
1875
|
function EmailInput(options) {
|
|
1868
1876
|
var _this = _super.call(this) || this;
|
|
1869
|
-
init(_this, options, instance$
|
|
1877
|
+
init(_this, options, instance$l, create_fragment$x, safe_not_equal, {
|
|
1870
1878
|
emailInputValid: 6,
|
|
1871
1879
|
emailValue: 0,
|
|
1872
1880
|
placeholder: 1
|
|
@@ -1950,7 +1958,7 @@ var EyeSlashIcon = /** @class */ (function (_super) {
|
|
|
1950
1958
|
return EyeSlashIcon;
|
|
1951
1959
|
}(SvelteComponent));
|
|
1952
1960
|
/* src/components/PasswordInput.svelte generated by Svelte v3.48.0 */
|
|
1953
|
-
function create_if_block_2$
|
|
1961
|
+
function create_if_block_2$8(ctx) {
|
|
1954
1962
|
var div;
|
|
1955
1963
|
var button;
|
|
1956
1964
|
var mounted;
|
|
@@ -1959,7 +1967,7 @@ function create_if_block_2$6(ctx) {
|
|
|
1959
1967
|
c: function () {
|
|
1960
1968
|
div = element("div");
|
|
1961
1969
|
button = element("button");
|
|
1962
|
-
button.textContent = ""
|
|
1970
|
+
button.textContent = "".concat(/*text*/ ctx[8]["forgot_password"] || "Forgot Password?");
|
|
1963
1971
|
attr(button, "data-cy", "forgot-password-btn");
|
|
1964
1972
|
attr(button, "class", "ms-form__button ms-form__button--text");
|
|
1965
1973
|
attr(button, "tabindex", "-1");
|
|
@@ -2040,7 +2048,7 @@ function create_if_block_1$b(ctx) {
|
|
|
2040
2048
|
};
|
|
2041
2049
|
}
|
|
2042
2050
|
// (65:2) {#if inputError}
|
|
2043
|
-
function create_if_block$
|
|
2051
|
+
function create_if_block$g(ctx) {
|
|
2044
2052
|
var div;
|
|
2045
2053
|
var erroricon;
|
|
2046
2054
|
var t0;
|
|
@@ -2098,7 +2106,7 @@ function create_fragment$u(ctx) {
|
|
|
2098
2106
|
var current;
|
|
2099
2107
|
var mounted;
|
|
2100
2108
|
var dispose;
|
|
2101
|
-
var if_block0 = /*showForgotPasswordLabel*/ ctx[2] && create_if_block_2$
|
|
2109
|
+
var if_block0 = /*showForgotPasswordLabel*/ ctx[2] && create_if_block_2$8(ctx);
|
|
2102
2110
|
var if_block_creators = [create_if_block_1$b, create_else_block$5];
|
|
2103
2111
|
var if_blocks = [];
|
|
2104
2112
|
function select_block_type(ctx, dirty) {
|
|
@@ -2108,7 +2116,7 @@ function create_fragment$u(ctx) {
|
|
|
2108
2116
|
}
|
|
2109
2117
|
current_block_type_index = select_block_type(ctx);
|
|
2110
2118
|
if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
2111
|
-
var if_block2 = /*inputError*/ ctx[6] && create_if_block$
|
|
2119
|
+
var if_block2 = /*inputError*/ ctx[6] && create_if_block$g(ctx);
|
|
2112
2120
|
return {
|
|
2113
2121
|
c: function () {
|
|
2114
2122
|
div3 = element("div");
|
|
@@ -2130,6 +2138,7 @@ function create_fragment$u(ctx) {
|
|
|
2130
2138
|
attr(label, "class", "ms-form__label");
|
|
2131
2139
|
attr(label, "for", "psw");
|
|
2132
2140
|
attr(div0, "class", "ms-form__flex");
|
|
2141
|
+
attr(input, "data-ms-internal-password", "");
|
|
2133
2142
|
attr(input, "class", "ms-form__input ms-form__input--password");
|
|
2134
2143
|
attr(input, "type", /*type*/ ctx[7]);
|
|
2135
2144
|
attr(input, "placeholder", /*passwordPlaceholder*/ ctx[4]);
|
|
@@ -2178,7 +2187,7 @@ function create_fragment$u(ctx) {
|
|
|
2178
2187
|
if_block0.p(ctx, dirty);
|
|
2179
2188
|
}
|
|
2180
2189
|
else {
|
|
2181
|
-
if_block0 = create_if_block_2$
|
|
2190
|
+
if_block0 = create_if_block_2$8(ctx);
|
|
2182
2191
|
if_block0.c();
|
|
2183
2192
|
if_block0.m(div0, null);
|
|
2184
2193
|
}
|
|
@@ -2220,7 +2229,7 @@ function create_fragment$u(ctx) {
|
|
|
2220
2229
|
}
|
|
2221
2230
|
}
|
|
2222
2231
|
else {
|
|
2223
|
-
if_block2 = create_if_block$
|
|
2232
|
+
if_block2 = create_if_block$g(ctx);
|
|
2224
2233
|
if_block2.c();
|
|
2225
2234
|
transition_in(if_block2, 1);
|
|
2226
2235
|
if_block2.m(div3, null);
|
|
@@ -2259,7 +2268,7 @@ function create_fragment$u(ctx) {
|
|
|
2259
2268
|
}
|
|
2260
2269
|
};
|
|
2261
2270
|
}
|
|
2262
|
-
function instance$
|
|
2271
|
+
function instance$k($$self, $$props, $$invalidate) {
|
|
2263
2272
|
var type;
|
|
2264
2273
|
var $textStore;
|
|
2265
2274
|
component_subscribe($$self, TextStore, function ($$value) { return $$invalidate(15, $textStore = $$value); });
|
|
@@ -2332,7 +2341,7 @@ var PasswordInput = /** @class */ (function (_super) {
|
|
|
2332
2341
|
__extends(PasswordInput, _super);
|
|
2333
2342
|
function PasswordInput(options) {
|
|
2334
2343
|
var _this = _super.call(this) || this;
|
|
2335
|
-
init(_this, options, instance$
|
|
2344
|
+
init(_this, options, instance$k, create_fragment$u, safe_not_equal, {
|
|
2336
2345
|
showForgotPasswordLabel: 2,
|
|
2337
2346
|
passwordInputValid: 13,
|
|
2338
2347
|
passwordLabel: 3,
|
|
@@ -2382,7 +2391,7 @@ var SecuredIcon = /** @class */ (function (_super) {
|
|
|
2382
2391
|
return SecuredIcon;
|
|
2383
2392
|
}(SvelteComponent));
|
|
2384
2393
|
/* src/components/ModalFooter.svelte generated by Svelte v3.48.0 */
|
|
2385
|
-
function
|
|
2394
|
+
function create_if_block$f(ctx) {
|
|
2386
2395
|
var div;
|
|
2387
2396
|
var a;
|
|
2388
2397
|
var securedicon;
|
|
@@ -2406,7 +2415,6 @@ function create_fragment$s(ctx) {
|
|
|
2406
2415
|
append(a, t);
|
|
2407
2416
|
current = true;
|
|
2408
2417
|
},
|
|
2409
|
-
p: noop,
|
|
2410
2418
|
i: function (local) {
|
|
2411
2419
|
if (current)
|
|
2412
2420
|
return;
|
|
@@ -2424,11 +2432,73 @@ function create_fragment$s(ctx) {
|
|
|
2424
2432
|
}
|
|
2425
2433
|
};
|
|
2426
2434
|
}
|
|
2435
|
+
function create_fragment$s(ctx) {
|
|
2436
|
+
var if_block_anchor;
|
|
2437
|
+
var current;
|
|
2438
|
+
var if_block = !ctx[0].isPaid && create_if_block$f();
|
|
2439
|
+
return {
|
|
2440
|
+
c: function () {
|
|
2441
|
+
if (if_block)
|
|
2442
|
+
if_block.c();
|
|
2443
|
+
if_block_anchor = empty();
|
|
2444
|
+
},
|
|
2445
|
+
m: function (target, anchor) {
|
|
2446
|
+
if (if_block)
|
|
2447
|
+
if_block.m(target, anchor);
|
|
2448
|
+
insert(target, if_block_anchor, anchor);
|
|
2449
|
+
current = true;
|
|
2450
|
+
},
|
|
2451
|
+
p: function (ctx, _a) {
|
|
2452
|
+
var _b = __read(_a, 1), dirty = _b[0];
|
|
2453
|
+
if (!ctx[0].isPaid) {
|
|
2454
|
+
if (if_block) {
|
|
2455
|
+
if (dirty & /*$app*/ 1) {
|
|
2456
|
+
transition_in(if_block, 1);
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
else {
|
|
2460
|
+
if_block = create_if_block$f();
|
|
2461
|
+
if_block.c();
|
|
2462
|
+
transition_in(if_block, 1);
|
|
2463
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
else if (if_block) {
|
|
2467
|
+
group_outros();
|
|
2468
|
+
transition_out(if_block, 1, 1, function () {
|
|
2469
|
+
if_block = null;
|
|
2470
|
+
});
|
|
2471
|
+
check_outros();
|
|
2472
|
+
}
|
|
2473
|
+
},
|
|
2474
|
+
i: function (local) {
|
|
2475
|
+
if (current)
|
|
2476
|
+
return;
|
|
2477
|
+
transition_in(if_block);
|
|
2478
|
+
current = true;
|
|
2479
|
+
},
|
|
2480
|
+
o: function (local) {
|
|
2481
|
+
transition_out(if_block);
|
|
2482
|
+
current = false;
|
|
2483
|
+
},
|
|
2484
|
+
d: function (detaching) {
|
|
2485
|
+
if (if_block)
|
|
2486
|
+
if_block.d(detaching);
|
|
2487
|
+
if (detaching)
|
|
2488
|
+
detach(if_block_anchor);
|
|
2489
|
+
}
|
|
2490
|
+
};
|
|
2491
|
+
}
|
|
2492
|
+
function instance$j($$self, $$props, $$invalidate) {
|
|
2493
|
+
var $app;
|
|
2494
|
+
component_subscribe($$self, AppStore, function ($$value) { return $$invalidate(0, $app = $$value); });
|
|
2495
|
+
return [$app];
|
|
2496
|
+
}
|
|
2427
2497
|
var ModalFooter = /** @class */ (function (_super) {
|
|
2428
2498
|
__extends(ModalFooter, _super);
|
|
2429
2499
|
function ModalFooter(options) {
|
|
2430
2500
|
var _this = _super.call(this) || this;
|
|
2431
|
-
init(_this, options,
|
|
2501
|
+
init(_this, options, instance$j, create_fragment$s, safe_not_equal, {});
|
|
2432
2502
|
return _this;
|
|
2433
2503
|
}
|
|
2434
2504
|
return ModalFooter;
|
|
@@ -2436,10 +2506,78 @@ var ModalFooter = /** @class */ (function (_super) {
|
|
|
2436
2506
|
/* src/modals/LoginModal.svelte generated by Svelte v3.48.0 */
|
|
2437
2507
|
function get_each_context$6(ctx, list, i) {
|
|
2438
2508
|
var child_ctx = ctx.slice();
|
|
2439
|
-
child_ctx[
|
|
2509
|
+
child_ctx[19] = list[i];
|
|
2440
2510
|
return child_ctx;
|
|
2441
2511
|
}
|
|
2442
|
-
// (
|
|
2512
|
+
// (73:2) {#if !params || !params.hideCloseButton}
|
|
2513
|
+
function create_if_block_3$3(ctx) {
|
|
2514
|
+
var closebutton;
|
|
2515
|
+
var current;
|
|
2516
|
+
closebutton = new CloseButton({
|
|
2517
|
+
props: { closeModal: /*closeModal*/ ctx[1] }
|
|
2518
|
+
});
|
|
2519
|
+
return {
|
|
2520
|
+
c: function () {
|
|
2521
|
+
create_component(closebutton.$$.fragment);
|
|
2522
|
+
},
|
|
2523
|
+
m: function (target, anchor) {
|
|
2524
|
+
mount_component(closebutton, target, anchor);
|
|
2525
|
+
current = true;
|
|
2526
|
+
},
|
|
2527
|
+
p: function (ctx, dirty) {
|
|
2528
|
+
var closebutton_changes = {};
|
|
2529
|
+
if (dirty & /*closeModal*/ 2)
|
|
2530
|
+
closebutton_changes.closeModal = /*closeModal*/ ctx[1];
|
|
2531
|
+
closebutton.$set(closebutton_changes);
|
|
2532
|
+
},
|
|
2533
|
+
i: function (local) {
|
|
2534
|
+
if (current)
|
|
2535
|
+
return;
|
|
2536
|
+
transition_in(closebutton.$$.fragment, local);
|
|
2537
|
+
current = true;
|
|
2538
|
+
},
|
|
2539
|
+
o: function (local) {
|
|
2540
|
+
transition_out(closebutton.$$.fragment, local);
|
|
2541
|
+
current = false;
|
|
2542
|
+
},
|
|
2543
|
+
d: function (detaching) {
|
|
2544
|
+
destroy_component(closebutton, detaching);
|
|
2545
|
+
}
|
|
2546
|
+
};
|
|
2547
|
+
}
|
|
2548
|
+
// (89:32)
|
|
2549
|
+
function create_if_block_2$7(ctx) {
|
|
2550
|
+
var div;
|
|
2551
|
+
var button;
|
|
2552
|
+
var mounted;
|
|
2553
|
+
var dispose;
|
|
2554
|
+
return {
|
|
2555
|
+
c: function () {
|
|
2556
|
+
div = element("div");
|
|
2557
|
+
button = element("button");
|
|
2558
|
+
button.textContent = "".concat(/*text*/ ctx[7]["dont_have_an_account"] || "Don't have an account?");
|
|
2559
|
+
attr(button, "class", "ms-form__button ms-form__button--text");
|
|
2560
|
+
attr(button, "type", "button");
|
|
2561
|
+
attr(div, "class", "ms-form__flex ms-form__flex--centered");
|
|
2562
|
+
},
|
|
2563
|
+
m: function (target, anchor) {
|
|
2564
|
+
insert(target, div, anchor);
|
|
2565
|
+
append(div, button);
|
|
2566
|
+
if (!mounted) {
|
|
2567
|
+
dispose = listen(button, "click", /*click_handler_1*/ ctx[16]);
|
|
2568
|
+
mounted = true;
|
|
2569
|
+
}
|
|
2570
|
+
},
|
|
2571
|
+
p: noop,
|
|
2572
|
+
d: function (detaching) {
|
|
2573
|
+
if (detaching)
|
|
2574
|
+
detach(div);
|
|
2575
|
+
mounted = false;
|
|
2576
|
+
dispose();
|
|
2577
|
+
}
|
|
2578
|
+
};
|
|
2579
|
+
}
|
|
2580
|
+
// (85:6) {#if params && params.signup && params.signup.plans}
|
|
2443
2581
|
function create_if_block_1$a(ctx) {
|
|
2444
2582
|
var div;
|
|
2445
2583
|
var button;
|
|
@@ -2449,7 +2587,7 @@ function create_if_block_1$a(ctx) {
|
|
|
2449
2587
|
c: function () {
|
|
2450
2588
|
div = element("div");
|
|
2451
2589
|
button = element("button");
|
|
2452
|
-
button.textContent = ""
|
|
2590
|
+
button.textContent = "".concat(/*text*/ ctx[7]["dont_have_an_account"] || "Don't have an account?");
|
|
2453
2591
|
attr(button, "class", "ms-form__button ms-form__button--text");
|
|
2454
2592
|
attr(button, "type", "button");
|
|
2455
2593
|
attr(div, "class", "ms-form__flex ms-form__flex--centered");
|
|
@@ -2458,7 +2596,7 @@ function create_if_block_1$a(ctx) {
|
|
|
2458
2596
|
insert(target, div, anchor);
|
|
2459
2597
|
append(div, button);
|
|
2460
2598
|
if (!mounted) {
|
|
2461
|
-
dispose = listen(button, "click", /*click_handler*/ ctx[
|
|
2599
|
+
dispose = listen(button, "click", /*click_handler*/ ctx[15]);
|
|
2462
2600
|
mounted = true;
|
|
2463
2601
|
}
|
|
2464
2602
|
},
|
|
@@ -2471,7 +2609,7 @@ function create_if_block_1$a(ctx) {
|
|
|
2471
2609
|
}
|
|
2472
2610
|
};
|
|
2473
2611
|
}
|
|
2474
|
-
// (
|
|
2612
|
+
// (96:4) {#if $app.authProviders.length > 0}
|
|
2475
2613
|
function create_if_block$e(ctx) {
|
|
2476
2614
|
var div4;
|
|
2477
2615
|
var div3;
|
|
@@ -2493,7 +2631,7 @@ function create_if_block$e(ctx) {
|
|
|
2493
2631
|
div0 = element("div");
|
|
2494
2632
|
t0 = space();
|
|
2495
2633
|
div1 = element("div");
|
|
2496
|
-
div1.textContent = ""
|
|
2634
|
+
div1.textContent = "".concat(/*text*/ ctx[7]["or"] || "or");
|
|
2497
2635
|
t2 = space();
|
|
2498
2636
|
div2 = element("div");
|
|
2499
2637
|
t3 = space();
|
|
@@ -2520,7 +2658,7 @@ function create_if_block$e(ctx) {
|
|
|
2520
2658
|
}
|
|
2521
2659
|
},
|
|
2522
2660
|
p: function (ctx, dirty) {
|
|
2523
|
-
if (dirty & /*submitLoginWithProvider, $app, text*/
|
|
2661
|
+
if (dirty & /*submitLoginWithProvider, $app, text*/ 1216) {
|
|
2524
2662
|
each_value = /*$app*/ ctx[6].authProviders;
|
|
2525
2663
|
var i = void 0;
|
|
2526
2664
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -2547,7 +2685,7 @@ function create_if_block$e(ctx) {
|
|
|
2547
2685
|
}
|
|
2548
2686
|
};
|
|
2549
2687
|
}
|
|
2550
|
-
// (
|
|
2688
|
+
// (103:8) {#each $app.authProviders as provider}
|
|
2551
2689
|
function create_each_block$6(ctx) {
|
|
2552
2690
|
var div;
|
|
2553
2691
|
var button;
|
|
@@ -2559,13 +2697,13 @@ function create_each_block$6(ctx) {
|
|
|
2559
2697
|
var t1_value = ( /*text*/ctx[7]["continue_with"] || "Continue with") + "";
|
|
2560
2698
|
var t1;
|
|
2561
2699
|
var t2;
|
|
2562
|
-
var t3_value = /*provider*/ ctx[
|
|
2700
|
+
var t3_value = /*provider*/ ctx[19].name + "";
|
|
2563
2701
|
var t3;
|
|
2564
2702
|
var t4;
|
|
2565
2703
|
var mounted;
|
|
2566
2704
|
var dispose;
|
|
2567
|
-
function
|
|
2568
|
-
return /*
|
|
2705
|
+
function click_handler_2() {
|
|
2706
|
+
return /*click_handler_2*/ ctx[17](/*provider*/ ctx[19]);
|
|
2569
2707
|
}
|
|
2570
2708
|
return {
|
|
2571
2709
|
c: function () {
|
|
@@ -2578,9 +2716,9 @@ function create_each_block$6(ctx) {
|
|
|
2578
2716
|
t2 = space();
|
|
2579
2717
|
t3 = text(t3_value);
|
|
2580
2718
|
t4 = space();
|
|
2581
|
-
if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[
|
|
2719
|
+
if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[19].icon))
|
|
2582
2720
|
attr(img, "src", img_src_value);
|
|
2583
|
-
attr(img, "alt", img_alt_value = /*provider*/ ctx[
|
|
2721
|
+
attr(img, "alt", img_alt_value = /*provider*/ ctx[19].name);
|
|
2584
2722
|
attr(button, "class", "ms-modal__social-button");
|
|
2585
2723
|
attr(button, "type", "button");
|
|
2586
2724
|
attr(div, "class", "ms-modal__social-buttons");
|
|
@@ -2596,19 +2734,19 @@ function create_each_block$6(ctx) {
|
|
|
2596
2734
|
append(span, t3);
|
|
2597
2735
|
append(div, t4);
|
|
2598
2736
|
if (!mounted) {
|
|
2599
|
-
dispose = listen(button, "click",
|
|
2737
|
+
dispose = listen(button, "click", click_handler_2);
|
|
2600
2738
|
mounted = true;
|
|
2601
2739
|
}
|
|
2602
2740
|
},
|
|
2603
2741
|
p: function (new_ctx, dirty) {
|
|
2604
2742
|
ctx = new_ctx;
|
|
2605
|
-
if (dirty & /*$app*/ 64 && !src_url_equal(img.src, img_src_value = /*provider*/ ctx[
|
|
2743
|
+
if (dirty & /*$app*/ 64 && !src_url_equal(img.src, img_src_value = /*provider*/ ctx[19].icon)) {
|
|
2606
2744
|
attr(img, "src", img_src_value);
|
|
2607
2745
|
}
|
|
2608
|
-
if (dirty & /*$app*/ 64 && img_alt_value !== (img_alt_value = /*provider*/ ctx[
|
|
2746
|
+
if (dirty & /*$app*/ 64 && img_alt_value !== (img_alt_value = /*provider*/ ctx[19].name)) {
|
|
2609
2747
|
attr(img, "alt", img_alt_value);
|
|
2610
2748
|
}
|
|
2611
|
-
if (dirty & /*$app*/ 64 && t3_value !== (t3_value = /*provider*/ ctx[
|
|
2749
|
+
if (dirty & /*$app*/ 64 && t3_value !== (t3_value = /*provider*/ ctx[19].name + ""))
|
|
2612
2750
|
set_data(t3, t3_value);
|
|
2613
2751
|
},
|
|
2614
2752
|
d: function (detaching) {
|
|
@@ -2621,7 +2759,6 @@ function create_each_block$6(ctx) {
|
|
|
2621
2759
|
}
|
|
2622
2760
|
function create_fragment$r(ctx) {
|
|
2623
2761
|
var div1;
|
|
2624
|
-
var closebutton;
|
|
2625
2762
|
var t0;
|
|
2626
2763
|
var div0;
|
|
2627
2764
|
var figureelement;
|
|
@@ -2644,12 +2781,10 @@ function create_fragment$r(ctx) {
|
|
|
2644
2781
|
var current;
|
|
2645
2782
|
var mounted;
|
|
2646
2783
|
var dispose;
|
|
2647
|
-
|
|
2648
|
-
props: { closeModal: /*closeModal*/ ctx[1] }
|
|
2649
|
-
});
|
|
2784
|
+
var if_block0 = (!ctx[2] || !ctx[2].hideCloseButton) && create_if_block_3$3(ctx);
|
|
2650
2785
|
figureelement = new FigureElement({});
|
|
2651
2786
|
function emailinput_emailInputValid_binding(value) {
|
|
2652
|
-
/*emailinput_emailInputValid_binding*/ ctx[
|
|
2787
|
+
/*emailinput_emailInputValid_binding*/ ctx[12](value);
|
|
2653
2788
|
}
|
|
2654
2789
|
var emailinput_props = {
|
|
2655
2790
|
placeholder: /*text*/ ctx[7]["login_email_placeholder"]
|
|
@@ -2660,10 +2795,10 @@ function create_fragment$r(ctx) {
|
|
|
2660
2795
|
emailinput = new EmailInput({ props: emailinput_props });
|
|
2661
2796
|
binding_callbacks.push(function () { return bind(emailinput, 'emailInputValid', emailinput_emailInputValid_binding); });
|
|
2662
2797
|
function passwordinput_passwordInputValid_binding(value) {
|
|
2663
|
-
/*passwordinput_passwordInputValid_binding*/ ctx[
|
|
2798
|
+
/*passwordinput_passwordInputValid_binding*/ ctx[13](value);
|
|
2664
2799
|
}
|
|
2665
2800
|
function passwordinput_display_binding(value) {
|
|
2666
|
-
/*passwordinput_display_binding*/ ctx[
|
|
2801
|
+
/*passwordinput_display_binding*/ ctx[14](value);
|
|
2667
2802
|
}
|
|
2668
2803
|
var passwordinput_props = {
|
|
2669
2804
|
passwordPlaceholder: /*text*/ ctx[7]["login_password_placeholder"],
|
|
@@ -2685,19 +2820,27 @@ function create_fragment$r(ctx) {
|
|
|
2685
2820
|
isLoading: /*showLoader*/ ctx[3]
|
|
2686
2821
|
}
|
|
2687
2822
|
});
|
|
2688
|
-
|
|
2689
|
-
|
|
2823
|
+
function select_block_type(ctx, dirty) {
|
|
2824
|
+
if ( /*params*/ctx[2] && /*params*/ ctx[2].signup && /*params*/ ctx[2].signup.plans)
|
|
2825
|
+
return create_if_block_1$a;
|
|
2826
|
+
if ( /*signupButtonURL*/ctx[8])
|
|
2827
|
+
return create_if_block_2$7;
|
|
2828
|
+
}
|
|
2829
|
+
var current_block_type = select_block_type(ctx);
|
|
2830
|
+
var if_block1 = current_block_type && current_block_type(ctx);
|
|
2831
|
+
var if_block2 = /*$app*/ ctx[6].authProviders.length > 0 && create_if_block$e(ctx);
|
|
2690
2832
|
modalfooter = new ModalFooter({});
|
|
2691
2833
|
return {
|
|
2692
2834
|
c: function () {
|
|
2693
2835
|
div1 = element("div");
|
|
2694
|
-
|
|
2836
|
+
if (if_block0)
|
|
2837
|
+
if_block0.c();
|
|
2695
2838
|
t0 = space();
|
|
2696
2839
|
div0 = element("div");
|
|
2697
2840
|
create_component(figureelement.$$.fragment);
|
|
2698
2841
|
t1 = space();
|
|
2699
2842
|
h2 = element("h2");
|
|
2700
|
-
h2.textContent = ""
|
|
2843
|
+
h2.textContent = "".concat(/*text*/ ctx[7]["login_to_your_account"] || "Login to your account");
|
|
2701
2844
|
t3 = space();
|
|
2702
2845
|
form = element("form");
|
|
2703
2846
|
create_component(emailinput.$$.fragment);
|
|
@@ -2706,11 +2849,11 @@ function create_fragment$r(ctx) {
|
|
|
2706
2849
|
t5 = space();
|
|
2707
2850
|
create_component(submitbutton.$$.fragment);
|
|
2708
2851
|
t6 = space();
|
|
2709
|
-
if (if_block0)
|
|
2710
|
-
if_block0.c();
|
|
2711
|
-
t7 = space();
|
|
2712
2852
|
if (if_block1)
|
|
2713
2853
|
if_block1.c();
|
|
2854
|
+
t7 = space();
|
|
2855
|
+
if (if_block2)
|
|
2856
|
+
if_block2.c();
|
|
2714
2857
|
t8 = space();
|
|
2715
2858
|
create_component(modalfooter.$$.fragment);
|
|
2716
2859
|
attr(h2, "class", "ms-modal__title");
|
|
@@ -2724,7 +2867,8 @@ function create_fragment$r(ctx) {
|
|
|
2724
2867
|
},
|
|
2725
2868
|
m: function (target, anchor) {
|
|
2726
2869
|
insert(target, div1, anchor);
|
|
2727
|
-
|
|
2870
|
+
if (if_block0)
|
|
2871
|
+
if_block0.m(div1, null);
|
|
2728
2872
|
append(div1, t0);
|
|
2729
2873
|
append(div1, div0);
|
|
2730
2874
|
mount_component(figureelement, div0, null);
|
|
@@ -2738,25 +2882,42 @@ function create_fragment$r(ctx) {
|
|
|
2738
2882
|
append(form, t5);
|
|
2739
2883
|
mount_component(submitbutton, form, null);
|
|
2740
2884
|
append(form, t6);
|
|
2741
|
-
if (if_block0)
|
|
2742
|
-
if_block0.m(form, null);
|
|
2743
|
-
append(div0, t7);
|
|
2744
2885
|
if (if_block1)
|
|
2745
|
-
if_block1.m(
|
|
2886
|
+
if_block1.m(form, null);
|
|
2887
|
+
append(div0, t7);
|
|
2888
|
+
if (if_block2)
|
|
2889
|
+
if_block2.m(div0, null);
|
|
2746
2890
|
append(div1, t8);
|
|
2747
2891
|
mount_component(modalfooter, div1, null);
|
|
2748
2892
|
current = true;
|
|
2749
2893
|
if (!mounted) {
|
|
2750
|
-
dispose = listen(form, "submit", stop_propagation(prevent_default(/*submitLogin*/ ctx[
|
|
2894
|
+
dispose = listen(form, "submit", stop_propagation(prevent_default(/*submitLogin*/ ctx[9])));
|
|
2751
2895
|
mounted = true;
|
|
2752
2896
|
}
|
|
2753
2897
|
},
|
|
2754
2898
|
p: function (ctx, _a) {
|
|
2755
2899
|
var _b = __read(_a, 1), dirty = _b[0];
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2900
|
+
if (!ctx[2] || !ctx[2].hideCloseButton) {
|
|
2901
|
+
if (if_block0) {
|
|
2902
|
+
if_block0.p(ctx, dirty);
|
|
2903
|
+
if (dirty & /*params*/ 4) {
|
|
2904
|
+
transition_in(if_block0, 1);
|
|
2905
|
+
}
|
|
2906
|
+
}
|
|
2907
|
+
else {
|
|
2908
|
+
if_block0 = create_if_block_3$3(ctx);
|
|
2909
|
+
if_block0.c();
|
|
2910
|
+
transition_in(if_block0, 1);
|
|
2911
|
+
if_block0.m(div1, t0);
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
else if (if_block0) {
|
|
2915
|
+
group_outros();
|
|
2916
|
+
transition_out(if_block0, 1, 1, function () {
|
|
2917
|
+
if_block0 = null;
|
|
2918
|
+
});
|
|
2919
|
+
check_outros();
|
|
2920
|
+
}
|
|
2760
2921
|
var emailinput_changes = {};
|
|
2761
2922
|
if (!updating_emailInputValid && dirty & /*emailInputValid*/ 16) {
|
|
2762
2923
|
updating_emailInputValid = true;
|
|
@@ -2780,39 +2941,37 @@ function create_fragment$r(ctx) {
|
|
|
2780
2941
|
if (dirty & /*showLoader*/ 8)
|
|
2781
2942
|
submitbutton_changes.isLoading = /*showLoader*/ ctx[3];
|
|
2782
2943
|
submitbutton.$set(submitbutton_changes);
|
|
2783
|
-
if (
|
|
2784
|
-
|
|
2785
|
-
if_block0.p(ctx, dirty);
|
|
2786
|
-
}
|
|
2787
|
-
else {
|
|
2788
|
-
if_block0 = create_if_block_1$a(ctx);
|
|
2789
|
-
if_block0.c();
|
|
2790
|
-
if_block0.m(form, null);
|
|
2791
|
-
}
|
|
2944
|
+
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block1) {
|
|
2945
|
+
if_block1.p(ctx, dirty);
|
|
2792
2946
|
}
|
|
2793
|
-
else
|
|
2794
|
-
|
|
2795
|
-
|
|
2947
|
+
else {
|
|
2948
|
+
if (if_block1)
|
|
2949
|
+
if_block1.d(1);
|
|
2950
|
+
if_block1 = current_block_type && current_block_type(ctx);
|
|
2951
|
+
if (if_block1) {
|
|
2952
|
+
if_block1.c();
|
|
2953
|
+
if_block1.m(form, null);
|
|
2954
|
+
}
|
|
2796
2955
|
}
|
|
2797
2956
|
if ( /*$app*/ctx[6].authProviders.length > 0) {
|
|
2798
|
-
if (
|
|
2799
|
-
|
|
2957
|
+
if (if_block2) {
|
|
2958
|
+
if_block2.p(ctx, dirty);
|
|
2800
2959
|
}
|
|
2801
2960
|
else {
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2961
|
+
if_block2 = create_if_block$e(ctx);
|
|
2962
|
+
if_block2.c();
|
|
2963
|
+
if_block2.m(div0, null);
|
|
2805
2964
|
}
|
|
2806
2965
|
}
|
|
2807
|
-
else if (
|
|
2808
|
-
|
|
2809
|
-
|
|
2966
|
+
else if (if_block2) {
|
|
2967
|
+
if_block2.d(1);
|
|
2968
|
+
if_block2 = null;
|
|
2810
2969
|
}
|
|
2811
2970
|
},
|
|
2812
2971
|
i: function (local) {
|
|
2813
2972
|
if (current)
|
|
2814
2973
|
return;
|
|
2815
|
-
transition_in(
|
|
2974
|
+
transition_in(if_block0);
|
|
2816
2975
|
transition_in(figureelement.$$.fragment, local);
|
|
2817
2976
|
transition_in(emailinput.$$.fragment, local);
|
|
2818
2977
|
transition_in(passwordinput.$$.fragment, local);
|
|
@@ -2821,7 +2980,7 @@ function create_fragment$r(ctx) {
|
|
|
2821
2980
|
current = true;
|
|
2822
2981
|
},
|
|
2823
2982
|
o: function (local) {
|
|
2824
|
-
transition_out(
|
|
2983
|
+
transition_out(if_block0);
|
|
2825
2984
|
transition_out(figureelement.$$.fragment, local);
|
|
2826
2985
|
transition_out(emailinput.$$.fragment, local);
|
|
2827
2986
|
transition_out(passwordinput.$$.fragment, local);
|
|
@@ -2832,15 +2991,17 @@ function create_fragment$r(ctx) {
|
|
|
2832
2991
|
d: function (detaching) {
|
|
2833
2992
|
if (detaching)
|
|
2834
2993
|
detach(div1);
|
|
2835
|
-
|
|
2994
|
+
if (if_block0)
|
|
2995
|
+
if_block0.d();
|
|
2836
2996
|
destroy_component(figureelement);
|
|
2837
2997
|
destroy_component(emailinput);
|
|
2838
2998
|
destroy_component(passwordinput);
|
|
2839
2999
|
destroy_component(submitbutton);
|
|
2840
|
-
if (
|
|
2841
|
-
if_block0.d();
|
|
2842
|
-
if (if_block1)
|
|
3000
|
+
if (if_block1) {
|
|
2843
3001
|
if_block1.d();
|
|
3002
|
+
}
|
|
3003
|
+
if (if_block2)
|
|
3004
|
+
if_block2.d();
|
|
2844
3005
|
destroy_component(modalfooter);
|
|
2845
3006
|
mounted = false;
|
|
2846
3007
|
dispose();
|
|
@@ -2848,10 +3009,10 @@ function create_fragment$r(ctx) {
|
|
|
2848
3009
|
};
|
|
2849
3010
|
}
|
|
2850
3011
|
function instance$i($$self, $$props, $$invalidate) {
|
|
2851
|
-
var $textStore;
|
|
2852
3012
|
var $app;
|
|
2853
|
-
|
|
3013
|
+
var $textStore;
|
|
2854
3014
|
component_subscribe($$self, AppStore, function ($$value) { return $$invalidate(6, $app = $$value); });
|
|
3015
|
+
component_subscribe($$self, TextStore, function ($$value) { return $$invalidate(18, $textStore = $$value); });
|
|
2855
3016
|
var closeModal = $$props.closeModal;
|
|
2856
3017
|
var display = $$props.display;
|
|
2857
3018
|
var onSuccessLogin = $$props.onSuccessLogin;
|
|
@@ -2860,6 +3021,7 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
2860
3021
|
var showLoader = false;
|
|
2861
3022
|
var emailInputValid = false;
|
|
2862
3023
|
var passwordInputValid = false;
|
|
3024
|
+
var signupButtonURL = Boolean(window.ssoUI) && $app.ssoSignupButtonURL;
|
|
2863
3025
|
function submitLogin(e) {
|
|
2864
3026
|
return __awaiter(this, void 0, void 0, function () {
|
|
2865
3027
|
var emailInput, passwordInput, data, err_1;
|
|
@@ -2928,14 +3090,15 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
2928
3090
|
$$invalidate(0, display);
|
|
2929
3091
|
}
|
|
2930
3092
|
var click_handler = function () { return $$invalidate(0, display = "signup"); };
|
|
2931
|
-
var click_handler_1 = function (
|
|
3093
|
+
var click_handler_1 = function () { return window.location.href = signupButtonURL; };
|
|
3094
|
+
var click_handler_2 = function (provider) { return submitLoginWithProvider(provider.provider); };
|
|
2932
3095
|
$$self.$$set = function ($$props) {
|
|
2933
3096
|
if ('closeModal' in $$props)
|
|
2934
3097
|
$$invalidate(1, closeModal = $$props.closeModal);
|
|
2935
3098
|
if ('display' in $$props)
|
|
2936
3099
|
$$invalidate(0, display = $$props.display);
|
|
2937
3100
|
if ('onSuccessLogin' in $$props)
|
|
2938
|
-
$$invalidate(
|
|
3101
|
+
$$invalidate(11, onSuccessLogin = $$props.onSuccessLogin);
|
|
2939
3102
|
if ('params' in $$props)
|
|
2940
3103
|
$$invalidate(2, params = $$props.params);
|
|
2941
3104
|
};
|
|
@@ -2948,6 +3111,7 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
2948
3111
|
passwordInputValid,
|
|
2949
3112
|
$app,
|
|
2950
3113
|
text,
|
|
3114
|
+
signupButtonURL,
|
|
2951
3115
|
submitLogin,
|
|
2952
3116
|
submitLoginWithProvider,
|
|
2953
3117
|
onSuccessLogin,
|
|
@@ -2955,7 +3119,8 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
2955
3119
|
passwordinput_passwordInputValid_binding,
|
|
2956
3120
|
passwordinput_display_binding,
|
|
2957
3121
|
click_handler,
|
|
2958
|
-
click_handler_1
|
|
3122
|
+
click_handler_1,
|
|
3123
|
+
click_handler_2
|
|
2959
3124
|
];
|
|
2960
3125
|
}
|
|
2961
3126
|
var LoginModal = /** @class */ (function (_super) {
|
|
@@ -2965,7 +3130,7 @@ var LoginModal = /** @class */ (function (_super) {
|
|
|
2965
3130
|
init(_this, options, instance$i, create_fragment$r, safe_not_equal, {
|
|
2966
3131
|
closeModal: 1,
|
|
2967
3132
|
display: 0,
|
|
2968
|
-
onSuccessLogin:
|
|
3133
|
+
onSuccessLogin: 11,
|
|
2969
3134
|
params: 2
|
|
2970
3135
|
});
|
|
2971
3136
|
return _this;
|
|
@@ -2973,23 +3138,62 @@ var LoginModal = /** @class */ (function (_super) {
|
|
|
2973
3138
|
return LoginModal;
|
|
2974
3139
|
}(SvelteComponent));
|
|
2975
3140
|
/* src/modals/SignupModal.svelte generated by Svelte v3.48.0 */
|
|
3141
|
+
function add_css$1(target) {
|
|
3142
|
+
append_styles(target, "svelte-1w8lbd8", ".rey-was-here.svelte-1w8lbd8{display:none !important}");
|
|
3143
|
+
}
|
|
2976
3144
|
function get_each_context$5(ctx, list, i) {
|
|
2977
3145
|
var child_ctx = ctx.slice();
|
|
2978
|
-
child_ctx[
|
|
3146
|
+
child_ctx[19] = list[i];
|
|
2979
3147
|
return child_ctx;
|
|
2980
3148
|
}
|
|
2981
3149
|
function get_each_context_1(ctx, list, i) {
|
|
2982
3150
|
var child_ctx = ctx.slice();
|
|
2983
|
-
child_ctx[
|
|
2984
|
-
child_ctx[
|
|
3151
|
+
child_ctx[22] = list[i];
|
|
3152
|
+
child_ctx[24] = i;
|
|
2985
3153
|
return child_ctx;
|
|
2986
3154
|
}
|
|
2987
|
-
// (
|
|
3155
|
+
// (142:2) {#if !params || !params.hideCloseButton}
|
|
3156
|
+
function create_if_block_2$6(ctx) {
|
|
3157
|
+
var closebutton;
|
|
3158
|
+
var current;
|
|
3159
|
+
closebutton = new CloseButton({
|
|
3160
|
+
props: { closeModal: /*closeModal*/ ctx[1] }
|
|
3161
|
+
});
|
|
3162
|
+
return {
|
|
3163
|
+
c: function () {
|
|
3164
|
+
create_component(closebutton.$$.fragment);
|
|
3165
|
+
},
|
|
3166
|
+
m: function (target, anchor) {
|
|
3167
|
+
mount_component(closebutton, target, anchor);
|
|
3168
|
+
current = true;
|
|
3169
|
+
},
|
|
3170
|
+
p: function (ctx, dirty) {
|
|
3171
|
+
var closebutton_changes = {};
|
|
3172
|
+
if (dirty & /*closeModal*/ 2)
|
|
3173
|
+
closebutton_changes.closeModal = /*closeModal*/ ctx[1];
|
|
3174
|
+
closebutton.$set(closebutton_changes);
|
|
3175
|
+
},
|
|
3176
|
+
i: function (local) {
|
|
3177
|
+
if (current)
|
|
3178
|
+
return;
|
|
3179
|
+
transition_in(closebutton.$$.fragment, local);
|
|
3180
|
+
current = true;
|
|
3181
|
+
},
|
|
3182
|
+
o: function (local) {
|
|
3183
|
+
transition_out(closebutton.$$.fragment, local);
|
|
3184
|
+
current = false;
|
|
3185
|
+
},
|
|
3186
|
+
d: function (detaching) {
|
|
3187
|
+
destroy_component(closebutton, detaching);
|
|
3188
|
+
}
|
|
3189
|
+
};
|
|
3190
|
+
}
|
|
3191
|
+
// (153:6) {#if customField.hidden !== true}
|
|
2988
3192
|
function create_if_block_1$9(ctx) {
|
|
2989
3193
|
var div1;
|
|
2990
3194
|
var div0;
|
|
2991
3195
|
var label;
|
|
2992
|
-
var t0_value = /*customField*/ ctx[
|
|
3196
|
+
var t0_value = /*customField*/ ctx[22].label + "";
|
|
2993
3197
|
var t0;
|
|
2994
3198
|
var label_for_value;
|
|
2995
3199
|
var t1;
|
|
@@ -3005,12 +3209,12 @@ function create_if_block_1$9(ctx) {
|
|
|
3005
3209
|
t1 = space();
|
|
3006
3210
|
input = element("input");
|
|
3007
3211
|
attr(label, "class", "ms-form__label");
|
|
3008
|
-
attr(label, "for", label_for_value = /*customField*/ ctx[
|
|
3212
|
+
attr(label, "for", label_for_value = /*customField*/ ctx[22].key);
|
|
3009
3213
|
attr(input, "class", "ms-form__input");
|
|
3010
3214
|
attr(input, "data-ms-custom-field", "");
|
|
3011
3215
|
attr(input, "type", "text");
|
|
3012
|
-
attr(input, "placeholder", input_placeholder_value = /*customField*/ ctx[
|
|
3013
|
-
attr(input, "name", input_name_value = /*customField*/ ctx[
|
|
3216
|
+
attr(input, "placeholder", input_placeholder_value = /*customField*/ ctx[22].label);
|
|
3217
|
+
attr(input, "name", input_name_value = /*customField*/ ctx[22].key);
|
|
3014
3218
|
attr(div0, "class", "ms-form__group");
|
|
3015
3219
|
attr(div1, "class", "ms-modal__custom-field-container");
|
|
3016
3220
|
},
|
|
@@ -3023,15 +3227,15 @@ function create_if_block_1$9(ctx) {
|
|
|
3023
3227
|
append(div0, input);
|
|
3024
3228
|
},
|
|
3025
3229
|
p: function (ctx, dirty) {
|
|
3026
|
-
if (dirty & /*$app*/
|
|
3230
|
+
if (dirty & /*$app*/ 64 && t0_value !== (t0_value = /*customField*/ ctx[22].label + ""))
|
|
3027
3231
|
set_data(t0, t0_value);
|
|
3028
|
-
if (dirty & /*$app*/
|
|
3232
|
+
if (dirty & /*$app*/ 64 && label_for_value !== (label_for_value = /*customField*/ ctx[22].key)) {
|
|
3029
3233
|
attr(label, "for", label_for_value);
|
|
3030
3234
|
}
|
|
3031
|
-
if (dirty & /*$app*/
|
|
3235
|
+
if (dirty & /*$app*/ 64 && input_placeholder_value !== (input_placeholder_value = /*customField*/ ctx[22].label)) {
|
|
3032
3236
|
attr(input, "placeholder", input_placeholder_value);
|
|
3033
3237
|
}
|
|
3034
|
-
if (dirty & /*$app*/
|
|
3238
|
+
if (dirty & /*$app*/ 64 && input_name_value !== (input_name_value = /*customField*/ ctx[22].key)) {
|
|
3035
3239
|
attr(input, "name", input_name_value);
|
|
3036
3240
|
}
|
|
3037
3241
|
},
|
|
@@ -3041,10 +3245,10 @@ function create_if_block_1$9(ctx) {
|
|
|
3041
3245
|
}
|
|
3042
3246
|
};
|
|
3043
3247
|
}
|
|
3044
|
-
// (
|
|
3248
|
+
// (152:6) {#each $app.customFields as customField, i}
|
|
3045
3249
|
function create_each_block_1(ctx) {
|
|
3046
3250
|
var if_block_anchor;
|
|
3047
|
-
var if_block = /*customField*/ ctx[
|
|
3251
|
+
var if_block = /*customField*/ ctx[22].hidden !== true && create_if_block_1$9(ctx);
|
|
3048
3252
|
return {
|
|
3049
3253
|
c: function () {
|
|
3050
3254
|
if (if_block)
|
|
@@ -3057,7 +3261,7 @@ function create_each_block_1(ctx) {
|
|
|
3057
3261
|
insert(target, if_block_anchor, anchor);
|
|
3058
3262
|
},
|
|
3059
3263
|
p: function (ctx, dirty) {
|
|
3060
|
-
if ( /*customField*/ctx[
|
|
3264
|
+
if ( /*customField*/ctx[22].hidden !== true) {
|
|
3061
3265
|
if (if_block) {
|
|
3062
3266
|
if_block.p(ctx, dirty);
|
|
3063
3267
|
}
|
|
@@ -3080,12 +3284,12 @@ function create_each_block_1(ctx) {
|
|
|
3080
3284
|
}
|
|
3081
3285
|
};
|
|
3082
3286
|
}
|
|
3083
|
-
// (
|
|
3287
|
+
// (180:4) {#if $app.authProviders.length > 0}
|
|
3084
3288
|
function create_if_block$d(ctx) {
|
|
3085
3289
|
var div4;
|
|
3086
3290
|
var div3;
|
|
3087
3291
|
var t3;
|
|
3088
|
-
var each_value = /*$app*/ ctx[
|
|
3292
|
+
var each_value = /*$app*/ ctx[6].authProviders;
|
|
3089
3293
|
var each_blocks = [];
|
|
3090
3294
|
for (var i = 0; i < each_value.length; i += 1) {
|
|
3091
3295
|
each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
|
|
@@ -3111,8 +3315,8 @@ function create_if_block$d(ctx) {
|
|
|
3111
3315
|
}
|
|
3112
3316
|
},
|
|
3113
3317
|
p: function (ctx, dirty) {
|
|
3114
|
-
if (dirty & /*submitSignupWithProvider, $app*/
|
|
3115
|
-
each_value = /*$app*/ ctx[
|
|
3318
|
+
if (dirty & /*submitSignupWithProvider, $app*/ 320) {
|
|
3319
|
+
each_value = /*$app*/ ctx[6].authProviders;
|
|
3116
3320
|
var i = void 0;
|
|
3117
3321
|
for (i = 0; i < each_value.length; i += 1) {
|
|
3118
3322
|
var child_ctx = get_each_context$5(ctx, each_value, i);
|
|
@@ -3138,7 +3342,7 @@ function create_if_block$d(ctx) {
|
|
|
3138
3342
|
}
|
|
3139
3343
|
};
|
|
3140
3344
|
}
|
|
3141
|
-
// (
|
|
3345
|
+
// (187:8) {#each $app.authProviders as provider}
|
|
3142
3346
|
function create_each_block$5(ctx) {
|
|
3143
3347
|
var div;
|
|
3144
3348
|
var button;
|
|
@@ -3148,13 +3352,13 @@ function create_each_block$5(ctx) {
|
|
|
3148
3352
|
var t0;
|
|
3149
3353
|
var span;
|
|
3150
3354
|
var t1;
|
|
3151
|
-
var t2_value = /*provider*/ ctx[
|
|
3355
|
+
var t2_value = /*provider*/ ctx[19].name + "";
|
|
3152
3356
|
var t2;
|
|
3153
3357
|
var t3;
|
|
3154
3358
|
var mounted;
|
|
3155
3359
|
var dispose;
|
|
3156
3360
|
function click_handler_1() {
|
|
3157
|
-
return /*click_handler_1*/ ctx[13](/*provider*/ ctx[
|
|
3361
|
+
return /*click_handler_1*/ ctx[13](/*provider*/ ctx[19]);
|
|
3158
3362
|
}
|
|
3159
3363
|
return {
|
|
3160
3364
|
c: function () {
|
|
@@ -3166,9 +3370,9 @@ function create_each_block$5(ctx) {
|
|
|
3166
3370
|
t1 = text("Continue with ");
|
|
3167
3371
|
t2 = text(t2_value);
|
|
3168
3372
|
t3 = space();
|
|
3169
|
-
if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[
|
|
3373
|
+
if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[19].icon))
|
|
3170
3374
|
attr(img, "src", img_src_value);
|
|
3171
|
-
attr(img, "alt", img_alt_value = /*provider*/ ctx[
|
|
3375
|
+
attr(img, "alt", img_alt_value = /*provider*/ ctx[19].name);
|
|
3172
3376
|
attr(button, "class", "ms-modal__social-button");
|
|
3173
3377
|
attr(button, "type", "button");
|
|
3174
3378
|
attr(div, "class", "ms-modal__social-buttons");
|
|
@@ -3189,13 +3393,13 @@ function create_each_block$5(ctx) {
|
|
|
3189
3393
|
},
|
|
3190
3394
|
p: function (new_ctx, dirty) {
|
|
3191
3395
|
ctx = new_ctx;
|
|
3192
|
-
if (dirty & /*$app*/
|
|
3396
|
+
if (dirty & /*$app*/ 64 && !src_url_equal(img.src, img_src_value = /*provider*/ ctx[19].icon)) {
|
|
3193
3397
|
attr(img, "src", img_src_value);
|
|
3194
3398
|
}
|
|
3195
|
-
if (dirty & /*$app*/
|
|
3399
|
+
if (dirty & /*$app*/ 64 && img_alt_value !== (img_alt_value = /*provider*/ ctx[19].name)) {
|
|
3196
3400
|
attr(img, "alt", img_alt_value);
|
|
3197
3401
|
}
|
|
3198
|
-
if (dirty & /*$app*/
|
|
3402
|
+
if (dirty & /*$app*/ 64 && t2_value !== (t2_value = /*provider*/ ctx[19].name + ""))
|
|
3199
3403
|
set_data(t2, t2_value);
|
|
3200
3404
|
},
|
|
3201
3405
|
d: function (detaching) {
|
|
@@ -3207,10 +3411,9 @@ function create_each_block$5(ctx) {
|
|
|
3207
3411
|
};
|
|
3208
3412
|
}
|
|
3209
3413
|
function create_fragment$q(ctx) {
|
|
3210
|
-
var
|
|
3211
|
-
var closebutton;
|
|
3414
|
+
var div4;
|
|
3212
3415
|
var t0;
|
|
3213
|
-
var
|
|
3416
|
+
var div3;
|
|
3214
3417
|
var figureelement;
|
|
3215
3418
|
var t1;
|
|
3216
3419
|
var h2;
|
|
@@ -3220,24 +3423,26 @@ function create_fragment$q(ctx) {
|
|
|
3220
3423
|
var emailinput;
|
|
3221
3424
|
var updating_emailInputValid;
|
|
3222
3425
|
var t5;
|
|
3426
|
+
var div0;
|
|
3427
|
+
var t8;
|
|
3223
3428
|
var passwordinput;
|
|
3224
3429
|
var updating_passwordInputValid;
|
|
3225
|
-
var t6;
|
|
3226
|
-
var submitbutton;
|
|
3227
|
-
var t7;
|
|
3228
|
-
var div0;
|
|
3229
|
-
var button;
|
|
3230
3430
|
var t9;
|
|
3431
|
+
var div1;
|
|
3231
3432
|
var t10;
|
|
3433
|
+
var submitbutton;
|
|
3434
|
+
var t11;
|
|
3435
|
+
var div2;
|
|
3436
|
+
var button;
|
|
3437
|
+
var t13;
|
|
3438
|
+
var t14;
|
|
3232
3439
|
var modalfooter;
|
|
3233
3440
|
var current;
|
|
3234
3441
|
var mounted;
|
|
3235
3442
|
var dispose;
|
|
3236
|
-
|
|
3237
|
-
props: { closeModal: /*closeModal*/ ctx[1] }
|
|
3238
|
-
});
|
|
3443
|
+
var if_block0 = (!ctx[2] || !ctx[2].hideCloseButton) && create_if_block_2$6(ctx);
|
|
3239
3444
|
figureelement = new FigureElement({});
|
|
3240
|
-
var each_value_1 = /*$app*/ ctx[
|
|
3445
|
+
var each_value_1 = /*$app*/ ctx[6].customFields;
|
|
3241
3446
|
var each_blocks = [];
|
|
3242
3447
|
for (var i = 0; i < each_value_1.length; i += 1) {
|
|
3243
3448
|
each_blocks[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
|
|
@@ -3246,8 +3451,8 @@ function create_fragment$q(ctx) {
|
|
|
3246
3451
|
/*emailinput_emailInputValid_binding*/ ctx[10](value);
|
|
3247
3452
|
}
|
|
3248
3453
|
var emailinput_props = {};
|
|
3249
|
-
if ( /*emailInputValid*/ctx[
|
|
3250
|
-
emailinput_props.emailInputValid = /*emailInputValid*/ ctx[
|
|
3454
|
+
if ( /*emailInputValid*/ctx[4] !== void 0) {
|
|
3455
|
+
emailinput_props.emailInputValid = /*emailInputValid*/ ctx[4];
|
|
3251
3456
|
}
|
|
3252
3457
|
emailinput = new EmailInput({ props: emailinput_props });
|
|
3253
3458
|
binding_callbacks.push(function () { return bind(emailinput, 'emailInputValid', emailinput_emailInputValid_binding); });
|
|
@@ -3255,25 +3460,26 @@ function create_fragment$q(ctx) {
|
|
|
3255
3460
|
/*passwordinput_passwordInputValid_binding*/ ctx[11](value);
|
|
3256
3461
|
}
|
|
3257
3462
|
var passwordinput_props = {};
|
|
3258
|
-
if ( /*passwordInputValid*/ctx[
|
|
3259
|
-
passwordinput_props.passwordInputValid = /*passwordInputValid*/ ctx[
|
|
3463
|
+
if ( /*passwordInputValid*/ctx[5] !== void 0) {
|
|
3464
|
+
passwordinput_props.passwordInputValid = /*passwordInputValid*/ ctx[5];
|
|
3260
3465
|
}
|
|
3261
3466
|
passwordinput = new PasswordInput({ props: passwordinput_props });
|
|
3262
3467
|
binding_callbacks.push(function () { return bind(passwordinput, 'passwordInputValid', passwordinput_passwordInputValid_binding); });
|
|
3263
3468
|
submitbutton = new SubmitButton({
|
|
3264
3469
|
props: {
|
|
3265
3470
|
buttonText: "Sign up",
|
|
3266
|
-
isLoading: /*showLoader*/ ctx[
|
|
3471
|
+
isLoading: /*showLoader*/ ctx[3]
|
|
3267
3472
|
}
|
|
3268
3473
|
});
|
|
3269
|
-
var
|
|
3474
|
+
var if_block1 = /*$app*/ ctx[6].authProviders.length > 0 && create_if_block$d(ctx);
|
|
3270
3475
|
modalfooter = new ModalFooter({});
|
|
3271
3476
|
return {
|
|
3272
3477
|
c: function () {
|
|
3273
|
-
|
|
3274
|
-
|
|
3478
|
+
div4 = element("div");
|
|
3479
|
+
if (if_block0)
|
|
3480
|
+
if_block0.c();
|
|
3275
3481
|
t0 = space();
|
|
3276
|
-
|
|
3482
|
+
div3 = element("div");
|
|
3277
3483
|
create_component(figureelement.$$.fragment);
|
|
3278
3484
|
t1 = space();
|
|
3279
3485
|
h2 = element("h2");
|
|
@@ -3286,73 +3492,103 @@ function create_fragment$q(ctx) {
|
|
|
3286
3492
|
t4 = space();
|
|
3287
3493
|
create_component(emailinput.$$.fragment);
|
|
3288
3494
|
t5 = space();
|
|
3495
|
+
div0 = element("div");
|
|
3496
|
+
div0.innerHTML = "<label class=\"ms-form__label\" for=\"Rey\">Rey was here</label> \n <input class=\"ms-form__input\" type=\"text\" placeholder=\"Rey's Favorite Color\" name=\"Rey\"/>";
|
|
3497
|
+
t8 = space();
|
|
3289
3498
|
create_component(passwordinput.$$.fragment);
|
|
3290
|
-
|
|
3499
|
+
t9 = space();
|
|
3500
|
+
div1 = element("div");
|
|
3501
|
+
t10 = space();
|
|
3291
3502
|
create_component(submitbutton.$$.fragment);
|
|
3292
|
-
|
|
3293
|
-
|
|
3503
|
+
t11 = space();
|
|
3504
|
+
div2 = element("div");
|
|
3294
3505
|
button = element("button");
|
|
3295
3506
|
button.textContent = "Already have an account?";
|
|
3296
|
-
|
|
3297
|
-
if (
|
|
3298
|
-
|
|
3299
|
-
|
|
3507
|
+
t13 = space();
|
|
3508
|
+
if (if_block1)
|
|
3509
|
+
if_block1.c();
|
|
3510
|
+
t14 = space();
|
|
3300
3511
|
create_component(modalfooter.$$.fragment);
|
|
3301
3512
|
attr(h2, "class", "ms-modal__title");
|
|
3513
|
+
attr(div0, "class", "ms-form__group rey-was-here svelte-1w8lbd8");
|
|
3514
|
+
attr(div1, "id", "hcaptcha");
|
|
3515
|
+
attr(div1, "class", "h-captcha");
|
|
3302
3516
|
attr(button, "class", "ms-form__button ms-form__button--text ms-form__button--top-spacing");
|
|
3303
|
-
attr(
|
|
3517
|
+
attr(div2, "class", "ms-form__flex ms-form__flex--centered");
|
|
3304
3518
|
attr(form, "class", "ms-form");
|
|
3305
3519
|
attr(form, "action", "");
|
|
3306
3520
|
attr(form, "method", "post");
|
|
3307
3521
|
attr(form, "autocomplete", "off");
|
|
3308
|
-
attr(
|
|
3309
|
-
attr(
|
|
3310
|
-
attr(
|
|
3522
|
+
attr(div3, "class", "ms-modal__content");
|
|
3523
|
+
attr(div4, "class", "ms-modal");
|
|
3524
|
+
attr(div4, "id", "SignupModal");
|
|
3311
3525
|
},
|
|
3312
3526
|
m: function (target, anchor) {
|
|
3313
|
-
insert(target,
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
append(
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
append(
|
|
3320
|
-
append(
|
|
3321
|
-
append(
|
|
3527
|
+
insert(target, div4, anchor);
|
|
3528
|
+
if (if_block0)
|
|
3529
|
+
if_block0.m(div4, null);
|
|
3530
|
+
append(div4, t0);
|
|
3531
|
+
append(div4, div3);
|
|
3532
|
+
mount_component(figureelement, div3, null);
|
|
3533
|
+
append(div3, t1);
|
|
3534
|
+
append(div3, h2);
|
|
3535
|
+
append(div3, t3);
|
|
3536
|
+
append(div3, form);
|
|
3322
3537
|
for (var i = 0; i < each_blocks.length; i += 1) {
|
|
3323
3538
|
each_blocks[i].m(form, null);
|
|
3324
3539
|
}
|
|
3325
3540
|
append(form, t4);
|
|
3326
3541
|
mount_component(emailinput, form, null);
|
|
3327
3542
|
append(form, t5);
|
|
3543
|
+
append(form, div0);
|
|
3544
|
+
append(form, t8);
|
|
3328
3545
|
mount_component(passwordinput, form, null);
|
|
3329
|
-
append(form,
|
|
3546
|
+
append(form, t9);
|
|
3547
|
+
append(form, div1);
|
|
3548
|
+
append(form, t10);
|
|
3330
3549
|
mount_component(submitbutton, form, null);
|
|
3331
|
-
append(form,
|
|
3332
|
-
append(form,
|
|
3333
|
-
append(
|
|
3334
|
-
append(
|
|
3335
|
-
if (
|
|
3336
|
-
|
|
3337
|
-
append(
|
|
3338
|
-
mount_component(modalfooter,
|
|
3550
|
+
append(form, t11);
|
|
3551
|
+
append(form, div2);
|
|
3552
|
+
append(div2, button);
|
|
3553
|
+
append(div3, t13);
|
|
3554
|
+
if (if_block1)
|
|
3555
|
+
if_block1.m(div3, null);
|
|
3556
|
+
append(div4, t14);
|
|
3557
|
+
mount_component(modalfooter, div4, null);
|
|
3339
3558
|
current = true;
|
|
3340
3559
|
if (!mounted) {
|
|
3341
3560
|
dispose = [
|
|
3342
3561
|
listen(button, "click", /*click_handler*/ ctx[12]),
|
|
3343
|
-
listen(form, "submit", stop_propagation(prevent_default(/*submitSignup*/ ctx[
|
|
3562
|
+
listen(form, "submit", stop_propagation(prevent_default(/*submitSignup*/ ctx[7])))
|
|
3344
3563
|
];
|
|
3345
3564
|
mounted = true;
|
|
3346
3565
|
}
|
|
3347
3566
|
},
|
|
3348
3567
|
p: function (ctx, _a) {
|
|
3349
3568
|
var _b = __read(_a, 1), dirty = _b[0];
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3569
|
+
if (!ctx[2] || !ctx[2].hideCloseButton) {
|
|
3570
|
+
if (if_block0) {
|
|
3571
|
+
if_block0.p(ctx, dirty);
|
|
3572
|
+
if (dirty & /*params*/ 4) {
|
|
3573
|
+
transition_in(if_block0, 1);
|
|
3574
|
+
}
|
|
3575
|
+
}
|
|
3576
|
+
else {
|
|
3577
|
+
if_block0 = create_if_block_2$6(ctx);
|
|
3578
|
+
if_block0.c();
|
|
3579
|
+
transition_in(if_block0, 1);
|
|
3580
|
+
if_block0.m(div4, t0);
|
|
3581
|
+
}
|
|
3582
|
+
}
|
|
3583
|
+
else if (if_block0) {
|
|
3584
|
+
group_outros();
|
|
3585
|
+
transition_out(if_block0, 1, 1, function () {
|
|
3586
|
+
if_block0 = null;
|
|
3587
|
+
});
|
|
3588
|
+
check_outros();
|
|
3589
|
+
}
|
|
3590
|
+
if (dirty & /*$app*/ 64) {
|
|
3591
|
+
each_value_1 = /*$app*/ ctx[6].customFields;
|
|
3356
3592
|
var i = void 0;
|
|
3357
3593
|
for (i = 0; i < each_value_1.length; i += 1) {
|
|
3358
3594
|
var child_ctx = get_each_context_1(ctx, each_value_1, i);
|
|
@@ -3371,42 +3607,42 @@ function create_fragment$q(ctx) {
|
|
|
3371
3607
|
each_blocks.length = each_value_1.length;
|
|
3372
3608
|
}
|
|
3373
3609
|
var emailinput_changes = {};
|
|
3374
|
-
if (!updating_emailInputValid && dirty & /*emailInputValid*/
|
|
3610
|
+
if (!updating_emailInputValid && dirty & /*emailInputValid*/ 16) {
|
|
3375
3611
|
updating_emailInputValid = true;
|
|
3376
|
-
emailinput_changes.emailInputValid = /*emailInputValid*/ ctx[
|
|
3612
|
+
emailinput_changes.emailInputValid = /*emailInputValid*/ ctx[4];
|
|
3377
3613
|
add_flush_callback(function () { return updating_emailInputValid = false; });
|
|
3378
3614
|
}
|
|
3379
3615
|
emailinput.$set(emailinput_changes);
|
|
3380
3616
|
var passwordinput_changes = {};
|
|
3381
|
-
if (!updating_passwordInputValid && dirty & /*passwordInputValid*/
|
|
3617
|
+
if (!updating_passwordInputValid && dirty & /*passwordInputValid*/ 32) {
|
|
3382
3618
|
updating_passwordInputValid = true;
|
|
3383
|
-
passwordinput_changes.passwordInputValid = /*passwordInputValid*/ ctx[
|
|
3619
|
+
passwordinput_changes.passwordInputValid = /*passwordInputValid*/ ctx[5];
|
|
3384
3620
|
add_flush_callback(function () { return updating_passwordInputValid = false; });
|
|
3385
3621
|
}
|
|
3386
3622
|
passwordinput.$set(passwordinput_changes);
|
|
3387
3623
|
var submitbutton_changes = {};
|
|
3388
|
-
if (dirty & /*showLoader*/
|
|
3389
|
-
submitbutton_changes.isLoading = /*showLoader*/ ctx[
|
|
3624
|
+
if (dirty & /*showLoader*/ 8)
|
|
3625
|
+
submitbutton_changes.isLoading = /*showLoader*/ ctx[3];
|
|
3390
3626
|
submitbutton.$set(submitbutton_changes);
|
|
3391
|
-
if ( /*$app*/ctx[
|
|
3392
|
-
if (
|
|
3393
|
-
|
|
3627
|
+
if ( /*$app*/ctx[6].authProviders.length > 0) {
|
|
3628
|
+
if (if_block1) {
|
|
3629
|
+
if_block1.p(ctx, dirty);
|
|
3394
3630
|
}
|
|
3395
3631
|
else {
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3632
|
+
if_block1 = create_if_block$d(ctx);
|
|
3633
|
+
if_block1.c();
|
|
3634
|
+
if_block1.m(div3, null);
|
|
3399
3635
|
}
|
|
3400
3636
|
}
|
|
3401
|
-
else if (
|
|
3402
|
-
|
|
3403
|
-
|
|
3637
|
+
else if (if_block1) {
|
|
3638
|
+
if_block1.d(1);
|
|
3639
|
+
if_block1 = null;
|
|
3404
3640
|
}
|
|
3405
3641
|
},
|
|
3406
3642
|
i: function (local) {
|
|
3407
3643
|
if (current)
|
|
3408
3644
|
return;
|
|
3409
|
-
transition_in(
|
|
3645
|
+
transition_in(if_block0);
|
|
3410
3646
|
transition_in(figureelement.$$.fragment, local);
|
|
3411
3647
|
transition_in(emailinput.$$.fragment, local);
|
|
3412
3648
|
transition_in(passwordinput.$$.fragment, local);
|
|
@@ -3415,7 +3651,7 @@ function create_fragment$q(ctx) {
|
|
|
3415
3651
|
current = true;
|
|
3416
3652
|
},
|
|
3417
3653
|
o: function (local) {
|
|
3418
|
-
transition_out(
|
|
3654
|
+
transition_out(if_block0);
|
|
3419
3655
|
transition_out(figureelement.$$.fragment, local);
|
|
3420
3656
|
transition_out(emailinput.$$.fragment, local);
|
|
3421
3657
|
transition_out(passwordinput.$$.fragment, local);
|
|
@@ -3425,24 +3661,39 @@ function create_fragment$q(ctx) {
|
|
|
3425
3661
|
},
|
|
3426
3662
|
d: function (detaching) {
|
|
3427
3663
|
if (detaching)
|
|
3428
|
-
detach(
|
|
3429
|
-
|
|
3664
|
+
detach(div4);
|
|
3665
|
+
if (if_block0)
|
|
3666
|
+
if_block0.d();
|
|
3430
3667
|
destroy_component(figureelement);
|
|
3431
3668
|
destroy_each(each_blocks, detaching);
|
|
3432
3669
|
destroy_component(emailinput);
|
|
3433
3670
|
destroy_component(passwordinput);
|
|
3434
3671
|
destroy_component(submitbutton);
|
|
3435
|
-
if (
|
|
3436
|
-
|
|
3672
|
+
if (if_block1)
|
|
3673
|
+
if_block1.d();
|
|
3437
3674
|
destroy_component(modalfooter);
|
|
3438
3675
|
mounted = false;
|
|
3439
3676
|
run_all(dispose);
|
|
3440
3677
|
}
|
|
3441
3678
|
};
|
|
3442
3679
|
}
|
|
3680
|
+
var hcaptchaSitekey = "838711f9-0e30-48e9-89e6-8f1ec4b79705";
|
|
3681
|
+
function executeCaptcha() {
|
|
3682
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3683
|
+
var response;
|
|
3684
|
+
return __generator(this, function (_a) {
|
|
3685
|
+
switch (_a.label) {
|
|
3686
|
+
case 0: return [4 /*yield*/, window.hcaptcha.execute({ async: true })];
|
|
3687
|
+
case 1:
|
|
3688
|
+
response = (_a.sent()).response;
|
|
3689
|
+
return [2 /*return*/, response];
|
|
3690
|
+
}
|
|
3691
|
+
});
|
|
3692
|
+
});
|
|
3693
|
+
}
|
|
3443
3694
|
function instance$h($$self, $$props, $$invalidate) {
|
|
3444
3695
|
var $app;
|
|
3445
|
-
component_subscribe($$self, AppStore, function ($$value) { return $$invalidate(
|
|
3696
|
+
component_subscribe($$self, AppStore, function ($$value) { return $$invalidate(6, $app = $$value); });
|
|
3446
3697
|
var closeModal = $$props.closeModal;
|
|
3447
3698
|
var display = $$props.display;
|
|
3448
3699
|
var onSuccessSignup = $$props.onSuccessSignup;
|
|
@@ -3450,15 +3701,42 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
3450
3701
|
var showLoader = false;
|
|
3451
3702
|
var emailInputValid = false;
|
|
3452
3703
|
var passwordInputValid = false;
|
|
3704
|
+
var captchaRequired = $app.captchaRequired;
|
|
3705
|
+
var hcaptchaWidgetID;
|
|
3706
|
+
function renderCaptcha() {
|
|
3707
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3708
|
+
return __generator(this, function (_a) {
|
|
3709
|
+
switch (_a.label) {
|
|
3710
|
+
case 0:
|
|
3711
|
+
if (!captchaRequired) return [3 /*break*/, 2];
|
|
3712
|
+
return [4 /*yield*/, window.$memberstackDom._captchaReady];
|
|
3713
|
+
case 1:
|
|
3714
|
+
_a.sent();
|
|
3715
|
+
hcaptchaWidgetID = window.hcaptcha.render('hcaptcha', { sitekey: hcaptchaSitekey, theme: 'light' });
|
|
3716
|
+
_a.label = 2;
|
|
3717
|
+
case 2: return [2 /*return*/];
|
|
3718
|
+
}
|
|
3719
|
+
});
|
|
3720
|
+
});
|
|
3721
|
+
}
|
|
3722
|
+
renderCaptcha();
|
|
3723
|
+
function getCaptcha() {
|
|
3724
|
+
return window.hcaptcha.getResponse(hcaptchaWidgetID);
|
|
3725
|
+
}
|
|
3726
|
+
function resetCaptcha() {
|
|
3727
|
+
if (captchaRequired && window.hcaptcha) {
|
|
3728
|
+
window.hcaptcha.reset(hcaptchaWidgetID);
|
|
3729
|
+
}
|
|
3730
|
+
}
|
|
3453
3731
|
function submitSignup(e) {
|
|
3454
3732
|
var _a;
|
|
3455
3733
|
return __awaiter(this, void 0, void 0, function () {
|
|
3456
|
-
var emailInput, passwordInput, customFields, customFieldInputs, plans, data,
|
|
3734
|
+
var emailInput, passwordInput, customFields, customFieldInputs, captchaToken, err_3, plans, data, err_4;
|
|
3457
3735
|
return __generator(this, function (_b) {
|
|
3458
3736
|
switch (_b.label) {
|
|
3459
3737
|
case 0:
|
|
3460
3738
|
emailInput = e.target.querySelector("[type=email]");
|
|
3461
|
-
passwordInput = e.target.querySelector("[
|
|
3739
|
+
passwordInput = e.target.querySelector("[data-ms-internal-password]");
|
|
3462
3740
|
customFields = {};
|
|
3463
3741
|
customFieldInputs = Array.from(e.target.querySelectorAll("[data-ms-custom-field]"));
|
|
3464
3742
|
customFieldInputs.map(function (input) {
|
|
@@ -3466,10 +3744,32 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
3466
3744
|
}).length;
|
|
3467
3745
|
if (!emailInputValid || !passwordInputValid)
|
|
3468
3746
|
return [2 /*return*/];
|
|
3469
|
-
$$invalidate(
|
|
3470
|
-
|
|
3747
|
+
$$invalidate(3, showLoader = true);
|
|
3748
|
+
// honey pot to prevent spam
|
|
3749
|
+
if (e.target.querySelector("[name=Rey]").value) {
|
|
3750
|
+
e.target.reset();
|
|
3751
|
+
$$invalidate(3, showLoader = false);
|
|
3752
|
+
return [2 /*return*/];
|
|
3753
|
+
}
|
|
3754
|
+
if (!captchaRequired) return [3 /*break*/, 5];
|
|
3755
|
+
return [4 /*yield*/, window.$memberstackDom._captchaReady];
|
|
3471
3756
|
case 1:
|
|
3472
|
-
_b.
|
|
3757
|
+
_b.sent();
|
|
3758
|
+
captchaToken = getCaptcha();
|
|
3759
|
+
if (!!captchaToken) return [3 /*break*/, 5];
|
|
3760
|
+
_b.label = 2;
|
|
3761
|
+
case 2:
|
|
3762
|
+
_b.trys.push([2, 4, , 5]);
|
|
3763
|
+
return [4 /*yield*/, executeCaptcha()];
|
|
3764
|
+
case 3:
|
|
3765
|
+
captchaToken = _b.sent();
|
|
3766
|
+
return [3 /*break*/, 5];
|
|
3767
|
+
case 4:
|
|
3768
|
+
err_3 = _b.sent();
|
|
3769
|
+
$$invalidate(3, showLoader = false);
|
|
3770
|
+
return [2 /*return*/];
|
|
3771
|
+
case 5:
|
|
3772
|
+
_b.trys.push([5, 7, , 8]);
|
|
3473
3773
|
plans = (((_a = params === null || params === void 0 ? void 0 : params.signup) === null || _a === void 0 ? void 0 : _a.plans) || []).map(function (plan) {
|
|
3474
3774
|
return { planId: plan };
|
|
3475
3775
|
});
|
|
@@ -3477,26 +3777,28 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
3477
3777
|
email: emailInput.value,
|
|
3478
3778
|
password: passwordInput.value,
|
|
3479
3779
|
plans: plans,
|
|
3480
|
-
customFields: customFields
|
|
3780
|
+
customFields: customFields,
|
|
3781
|
+
captchaToken: captchaToken
|
|
3481
3782
|
}, { includeContentGroups: true })];
|
|
3482
|
-
case
|
|
3783
|
+
case 6:
|
|
3483
3784
|
data = (_b.sent()).data;
|
|
3484
3785
|
onSuccessSignup({ type: "SIGNUP", data: data });
|
|
3485
|
-
$$invalidate(
|
|
3486
|
-
return [3 /*break*/,
|
|
3487
|
-
case
|
|
3488
|
-
|
|
3489
|
-
$$invalidate(
|
|
3490
|
-
window.$memberstackDom._showMessage(
|
|
3491
|
-
|
|
3492
|
-
|
|
3786
|
+
$$invalidate(3, showLoader = false);
|
|
3787
|
+
return [3 /*break*/, 8];
|
|
3788
|
+
case 7:
|
|
3789
|
+
err_4 = _b.sent();
|
|
3790
|
+
$$invalidate(3, showLoader = false);
|
|
3791
|
+
window.$memberstackDom._showMessage(err_4.message, true);
|
|
3792
|
+
resetCaptcha();
|
|
3793
|
+
return [3 /*break*/, 8];
|
|
3794
|
+
case 8: return [2 /*return*/];
|
|
3493
3795
|
}
|
|
3494
3796
|
});
|
|
3495
3797
|
});
|
|
3496
3798
|
}
|
|
3497
3799
|
function submitSignupWithProvider(provider) {
|
|
3498
3800
|
return __awaiter(this, void 0, void 0, function () {
|
|
3499
|
-
var data,
|
|
3801
|
+
var data, err_5;
|
|
3500
3802
|
return __generator(this, function (_a) {
|
|
3501
3803
|
switch (_a.label) {
|
|
3502
3804
|
case 0:
|
|
@@ -3507,9 +3809,9 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
3507
3809
|
onSuccessSignup({ type: "SIGNUP", data: data });
|
|
3508
3810
|
return [3 /*break*/, 3];
|
|
3509
3811
|
case 2:
|
|
3510
|
-
|
|
3511
|
-
$$invalidate(
|
|
3512
|
-
window.$memberstackDom._showMessage(
|
|
3812
|
+
err_5 = _a.sent();
|
|
3813
|
+
$$invalidate(3, showLoader = false);
|
|
3814
|
+
window.$memberstackDom._showMessage(err_5.message, true);
|
|
3513
3815
|
return [3 /*break*/, 3];
|
|
3514
3816
|
case 3: return [2 /*return*/];
|
|
3515
3817
|
}
|
|
@@ -3518,11 +3820,11 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
3518
3820
|
}
|
|
3519
3821
|
function emailinput_emailInputValid_binding(value) {
|
|
3520
3822
|
emailInputValid = value;
|
|
3521
|
-
$$invalidate(
|
|
3823
|
+
$$invalidate(4, emailInputValid);
|
|
3522
3824
|
}
|
|
3523
3825
|
function passwordinput_passwordInputValid_binding(value) {
|
|
3524
3826
|
passwordInputValid = value;
|
|
3525
|
-
$$invalidate(
|
|
3827
|
+
$$invalidate(5, passwordInputValid);
|
|
3526
3828
|
}
|
|
3527
3829
|
var click_handler = function () { return $$invalidate(0, display = "login"); };
|
|
3528
3830
|
var click_handler_1 = function (provider) { return submitSignupWithProvider(provider.provider); };
|
|
@@ -3532,13 +3834,14 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
3532
3834
|
if ('display' in $$props)
|
|
3533
3835
|
$$invalidate(0, display = $$props.display);
|
|
3534
3836
|
if ('onSuccessSignup' in $$props)
|
|
3535
|
-
$$invalidate(
|
|
3837
|
+
$$invalidate(9, onSuccessSignup = $$props.onSuccessSignup);
|
|
3536
3838
|
if ('params' in $$props)
|
|
3537
|
-
$$invalidate(
|
|
3839
|
+
$$invalidate(2, params = $$props.params);
|
|
3538
3840
|
};
|
|
3539
3841
|
return [
|
|
3540
3842
|
display,
|
|
3541
3843
|
closeModal,
|
|
3844
|
+
params,
|
|
3542
3845
|
showLoader,
|
|
3543
3846
|
emailInputValid,
|
|
3544
3847
|
passwordInputValid,
|
|
@@ -3546,7 +3849,6 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
3546
3849
|
submitSignup,
|
|
3547
3850
|
submitSignupWithProvider,
|
|
3548
3851
|
onSuccessSignup,
|
|
3549
|
-
params,
|
|
3550
3852
|
emailinput_emailInputValid_binding,
|
|
3551
3853
|
passwordinput_passwordInputValid_binding,
|
|
3552
3854
|
click_handler,
|
|
@@ -3560,9 +3862,9 @@ var SignupModal = /** @class */ (function (_super) {
|
|
|
3560
3862
|
init(_this, options, instance$h, create_fragment$q, safe_not_equal, {
|
|
3561
3863
|
closeModal: 1,
|
|
3562
3864
|
display: 0,
|
|
3563
|
-
onSuccessSignup:
|
|
3564
|
-
params:
|
|
3565
|
-
});
|
|
3865
|
+
onSuccessSignup: 9,
|
|
3866
|
+
params: 2
|
|
3867
|
+
}, add_css$1);
|
|
3566
3868
|
return _this;
|
|
3567
3869
|
}
|
|
3568
3870
|
return SignupModal;
|
|
@@ -3610,48 +3912,43 @@ function create_fragment$o(ctx) {
|
|
|
3610
3912
|
var button;
|
|
3611
3913
|
var backicon;
|
|
3612
3914
|
var t0;
|
|
3613
|
-
var closebutton;
|
|
3614
|
-
var t1;
|
|
3615
3915
|
var div3;
|
|
3616
3916
|
var figureelement;
|
|
3617
|
-
var
|
|
3917
|
+
var t1;
|
|
3618
3918
|
var h2;
|
|
3619
|
-
var
|
|
3919
|
+
var t3;
|
|
3620
3920
|
var p;
|
|
3621
|
-
var
|
|
3921
|
+
var t5;
|
|
3622
3922
|
var form;
|
|
3623
3923
|
var emailinput;
|
|
3624
3924
|
var updating_emailInputValid;
|
|
3625
|
-
var
|
|
3925
|
+
var t6;
|
|
3626
3926
|
var submitbutton;
|
|
3627
|
-
var
|
|
3927
|
+
var t7;
|
|
3628
3928
|
var div2;
|
|
3629
3929
|
var div1;
|
|
3630
|
-
var
|
|
3930
|
+
var t9;
|
|
3631
3931
|
var modalfooter;
|
|
3632
3932
|
var current;
|
|
3633
3933
|
var mounted;
|
|
3634
3934
|
var dispose;
|
|
3635
3935
|
backicon = new BackIcon({});
|
|
3636
|
-
closebutton = new CloseButton({
|
|
3637
|
-
props: { closeModal: /*closeModal*/ ctx[1] }
|
|
3638
|
-
});
|
|
3639
3936
|
figureelement = new FigureElement({});
|
|
3640
3937
|
function emailinput_emailInputValid_binding(value) {
|
|
3641
3938
|
/*emailinput_emailInputValid_binding*/ ctx[7](value);
|
|
3642
3939
|
}
|
|
3643
3940
|
var emailinput_props = {
|
|
3644
|
-
placeholder: /*text*/ ctx[
|
|
3941
|
+
placeholder: /*text*/ ctx[3]["reset_email_placeholder"]
|
|
3645
3942
|
};
|
|
3646
|
-
if ( /*emailInputValid*/ctx[
|
|
3647
|
-
emailinput_props.emailInputValid = /*emailInputValid*/ ctx[
|
|
3943
|
+
if ( /*emailInputValid*/ctx[1] !== void 0) {
|
|
3944
|
+
emailinput_props.emailInputValid = /*emailInputValid*/ ctx[1];
|
|
3648
3945
|
}
|
|
3649
3946
|
emailinput = new EmailInput({ props: emailinput_props });
|
|
3650
3947
|
binding_callbacks.push(function () { return bind(emailinput, 'emailInputValid', emailinput_emailInputValid_binding); });
|
|
3651
3948
|
submitbutton = new SubmitButton({
|
|
3652
3949
|
props: {
|
|
3653
|
-
buttonText: /*text*/ ctx[
|
|
3654
|
-
isLoading: /*showLoader*/ ctx[
|
|
3950
|
+
buttonText: /*text*/ ctx[3]["reset"] || "Send Link",
|
|
3951
|
+
isLoading: /*showLoader*/ ctx[2]
|
|
3655
3952
|
}
|
|
3656
3953
|
});
|
|
3657
3954
|
modalfooter = new ModalFooter({});
|
|
@@ -3662,26 +3959,24 @@ function create_fragment$o(ctx) {
|
|
|
3662
3959
|
button = element("button");
|
|
3663
3960
|
create_component(backicon.$$.fragment);
|
|
3664
3961
|
t0 = space();
|
|
3665
|
-
create_component(closebutton.$$.fragment);
|
|
3666
|
-
t1 = space();
|
|
3667
3962
|
div3 = element("div");
|
|
3668
3963
|
create_component(figureelement.$$.fragment);
|
|
3669
|
-
|
|
3964
|
+
t1 = space();
|
|
3670
3965
|
h2 = element("h2");
|
|
3671
|
-
h2.textContent = ""
|
|
3672
|
-
|
|
3966
|
+
h2.textContent = "".concat(/*text*/ ctx[3]["reset_your_password"] || "Reset your password");
|
|
3967
|
+
t3 = space();
|
|
3673
3968
|
p = element("p");
|
|
3674
|
-
p.textContent = ""
|
|
3675
|
-
|
|
3969
|
+
p.textContent = "".concat(/*text*/ ctx[3]["reset_instructions"] || "We’ll email you a secure link to reset the password for your account.");
|
|
3970
|
+
t5 = space();
|
|
3676
3971
|
form = element("form");
|
|
3677
3972
|
create_component(emailinput.$$.fragment);
|
|
3678
|
-
|
|
3973
|
+
t6 = space();
|
|
3679
3974
|
create_component(submitbutton.$$.fragment);
|
|
3680
|
-
|
|
3975
|
+
t7 = space();
|
|
3681
3976
|
div2 = element("div");
|
|
3682
3977
|
div1 = element("div");
|
|
3683
|
-
div1.textContent = ""
|
|
3684
|
-
|
|
3978
|
+
div1.textContent = "".concat(/*text*/ ctx[3]["reset_already_have_code"] || "I already have a code");
|
|
3979
|
+
t9 = space();
|
|
3685
3980
|
create_component(modalfooter.$$.fragment);
|
|
3686
3981
|
attr(div0, "data-cy", "back-btn");
|
|
3687
3982
|
attr(div0, "class", "ms-modal__back");
|
|
@@ -3703,57 +3998,50 @@ function create_fragment$o(ctx) {
|
|
|
3703
3998
|
append(div0, button);
|
|
3704
3999
|
mount_component(backicon, button, null);
|
|
3705
4000
|
append(div4, t0);
|
|
3706
|
-
mount_component(closebutton, div4, null);
|
|
3707
|
-
append(div4, t1);
|
|
3708
4001
|
append(div4, div3);
|
|
3709
4002
|
mount_component(figureelement, div3, null);
|
|
3710
|
-
append(div3,
|
|
4003
|
+
append(div3, t1);
|
|
3711
4004
|
append(div3, h2);
|
|
3712
|
-
append(div3,
|
|
4005
|
+
append(div3, t3);
|
|
3713
4006
|
append(div3, p);
|
|
3714
|
-
append(div3,
|
|
4007
|
+
append(div3, t5);
|
|
3715
4008
|
append(div3, form);
|
|
3716
4009
|
mount_component(emailinput, form, null);
|
|
3717
|
-
append(form,
|
|
4010
|
+
append(form, t6);
|
|
3718
4011
|
mount_component(submitbutton, form, null);
|
|
3719
|
-
append(form,
|
|
4012
|
+
append(form, t7);
|
|
3720
4013
|
append(form, div2);
|
|
3721
4014
|
append(div2, div1);
|
|
3722
|
-
append(div4,
|
|
4015
|
+
append(div4, t9);
|
|
3723
4016
|
mount_component(modalfooter, div4, null);
|
|
3724
4017
|
current = true;
|
|
3725
4018
|
if (!mounted) {
|
|
3726
4019
|
dispose = [
|
|
3727
4020
|
listen(button, "click", /*click_handler*/ ctx[6]),
|
|
3728
4021
|
listen(div1, "click", /*click_handler_1*/ ctx[8]),
|
|
3729
|
-
listen(form, "submit", stop_propagation(prevent_default(/*submitPasswordReset*/ ctx[
|
|
4022
|
+
listen(form, "submit", stop_propagation(prevent_default(/*submitPasswordReset*/ ctx[4])))
|
|
3730
4023
|
];
|
|
3731
4024
|
mounted = true;
|
|
3732
4025
|
}
|
|
3733
4026
|
},
|
|
3734
4027
|
p: function (ctx, _a) {
|
|
3735
4028
|
var _b = __read(_a, 1), dirty = _b[0];
|
|
3736
|
-
var closebutton_changes = {};
|
|
3737
|
-
if (dirty & /*closeModal*/ 2)
|
|
3738
|
-
closebutton_changes.closeModal = /*closeModal*/ ctx[1];
|
|
3739
|
-
closebutton.$set(closebutton_changes);
|
|
3740
4029
|
var emailinput_changes = {};
|
|
3741
|
-
if (!updating_emailInputValid && dirty & /*emailInputValid*/
|
|
4030
|
+
if (!updating_emailInputValid && dirty & /*emailInputValid*/ 2) {
|
|
3742
4031
|
updating_emailInputValid = true;
|
|
3743
|
-
emailinput_changes.emailInputValid = /*emailInputValid*/ ctx[
|
|
4032
|
+
emailinput_changes.emailInputValid = /*emailInputValid*/ ctx[1];
|
|
3744
4033
|
add_flush_callback(function () { return updating_emailInputValid = false; });
|
|
3745
4034
|
}
|
|
3746
4035
|
emailinput.$set(emailinput_changes);
|
|
3747
4036
|
var submitbutton_changes = {};
|
|
3748
|
-
if (dirty & /*showLoader*/
|
|
3749
|
-
submitbutton_changes.isLoading = /*showLoader*/ ctx[
|
|
4037
|
+
if (dirty & /*showLoader*/ 4)
|
|
4038
|
+
submitbutton_changes.isLoading = /*showLoader*/ ctx[2];
|
|
3750
4039
|
submitbutton.$set(submitbutton_changes);
|
|
3751
4040
|
},
|
|
3752
4041
|
i: function (local) {
|
|
3753
4042
|
if (current)
|
|
3754
4043
|
return;
|
|
3755
4044
|
transition_in(backicon.$$.fragment, local);
|
|
3756
|
-
transition_in(closebutton.$$.fragment, local);
|
|
3757
4045
|
transition_in(figureelement.$$.fragment, local);
|
|
3758
4046
|
transition_in(emailinput.$$.fragment, local);
|
|
3759
4047
|
transition_in(submitbutton.$$.fragment, local);
|
|
@@ -3762,7 +4050,6 @@ function create_fragment$o(ctx) {
|
|
|
3762
4050
|
},
|
|
3763
4051
|
o: function (local) {
|
|
3764
4052
|
transition_out(backicon.$$.fragment, local);
|
|
3765
|
-
transition_out(closebutton.$$.fragment, local);
|
|
3766
4053
|
transition_out(figureelement.$$.fragment, local);
|
|
3767
4054
|
transition_out(emailinput.$$.fragment, local);
|
|
3768
4055
|
transition_out(submitbutton.$$.fragment, local);
|
|
@@ -3773,7 +4060,6 @@ function create_fragment$o(ctx) {
|
|
|
3773
4060
|
if (detaching)
|
|
3774
4061
|
detach(div4);
|
|
3775
4062
|
destroy_component(backicon);
|
|
3776
|
-
destroy_component(closebutton);
|
|
3777
4063
|
destroy_component(figureelement);
|
|
3778
4064
|
destroy_component(emailinput);
|
|
3779
4065
|
destroy_component(submitbutton);
|
|
@@ -3793,14 +4079,14 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
3793
4079
|
var showLoader = false;
|
|
3794
4080
|
function submitPasswordReset(e) {
|
|
3795
4081
|
return __awaiter(this, void 0, void 0, function () {
|
|
3796
|
-
var emailInput,
|
|
4082
|
+
var emailInput, err_6;
|
|
3797
4083
|
return __generator(this, function (_a) {
|
|
3798
4084
|
switch (_a.label) {
|
|
3799
4085
|
case 0:
|
|
3800
4086
|
emailInput = e.target[0];
|
|
3801
4087
|
if (!emailInputValid)
|
|
3802
4088
|
return [2 /*return*/];
|
|
3803
|
-
$$invalidate(
|
|
4089
|
+
$$invalidate(2, showLoader = true);
|
|
3804
4090
|
_a.label = 1;
|
|
3805
4091
|
case 1:
|
|
3806
4092
|
_a.trys.push([1, 3, , 4]);
|
|
@@ -3810,11 +4096,11 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
3810
4096
|
$$invalidate(0, display = "reset_password");
|
|
3811
4097
|
return [3 /*break*/, 4];
|
|
3812
4098
|
case 3:
|
|
3813
|
-
|
|
3814
|
-
console.log(
|
|
3815
|
-
$$invalidate(
|
|
3816
|
-
if (
|
|
3817
|
-
window.$memberstackDom._showMessage(
|
|
4099
|
+
err_6 = _a.sent();
|
|
4100
|
+
console.log(err_6);
|
|
4101
|
+
$$invalidate(2, showLoader = false);
|
|
4102
|
+
if (err_6.message) {
|
|
4103
|
+
window.$memberstackDom._showMessage(err_6.message, false);
|
|
3818
4104
|
}
|
|
3819
4105
|
return [3 /*break*/, 4];
|
|
3820
4106
|
case 4: return [2 /*return*/];
|
|
@@ -3825,22 +4111,22 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
3825
4111
|
var click_handler = function () { return $$invalidate(0, display = "login"); };
|
|
3826
4112
|
function emailinput_emailInputValid_binding(value) {
|
|
3827
4113
|
emailInputValid = value;
|
|
3828
|
-
$$invalidate(
|
|
4114
|
+
$$invalidate(1, emailInputValid);
|
|
3829
4115
|
}
|
|
3830
4116
|
var click_handler_1 = function () { return $$invalidate(0, display = "reset_password"); };
|
|
3831
4117
|
$$self.$$set = function ($$props) {
|
|
3832
4118
|
if ('closeModal' in $$props)
|
|
3833
|
-
$$invalidate(
|
|
4119
|
+
$$invalidate(5, closeModal = $$props.closeModal);
|
|
3834
4120
|
if ('display' in $$props)
|
|
3835
4121
|
$$invalidate(0, display = $$props.display);
|
|
3836
4122
|
};
|
|
3837
4123
|
return [
|
|
3838
4124
|
display,
|
|
3839
|
-
closeModal,
|
|
3840
4125
|
emailInputValid,
|
|
3841
4126
|
showLoader,
|
|
3842
4127
|
text,
|
|
3843
4128
|
submitPasswordReset,
|
|
4129
|
+
closeModal,
|
|
3844
4130
|
click_handler,
|
|
3845
4131
|
emailinput_emailInputValid_binding,
|
|
3846
4132
|
click_handler_1
|
|
@@ -3850,7 +4136,7 @@ var PassResetModal = /** @class */ (function (_super) {
|
|
|
3850
4136
|
__extends(PassResetModal, _super);
|
|
3851
4137
|
function PassResetModal(options) {
|
|
3852
4138
|
var _this = _super.call(this) || this;
|
|
3853
|
-
init(_this, options, instance$g, create_fragment$o, safe_not_equal, { closeModal:
|
|
4139
|
+
init(_this, options, instance$g, create_fragment$o, safe_not_equal, { closeModal: 5, display: 0 });
|
|
3854
4140
|
return _this;
|
|
3855
4141
|
}
|
|
3856
4142
|
return PassResetModal;
|
|
@@ -3959,12 +4245,12 @@ function create_fragment$n(ctx) {
|
|
|
3959
4245
|
create_component(figureelement.$$.fragment);
|
|
3960
4246
|
t2 = space();
|
|
3961
4247
|
h2 = element("h2");
|
|
3962
|
-
h2.textContent = ""
|
|
4248
|
+
h2.textContent = "".concat(/*text*/ ctx[5]["reset_your_password"] || "Reset your password");
|
|
3963
4249
|
t4 = space();
|
|
3964
4250
|
form = element("form");
|
|
3965
4251
|
div1 = element("div");
|
|
3966
4252
|
label = element("label");
|
|
3967
|
-
label.textContent = ""
|
|
4253
|
+
label.textContent = "".concat(/*text*/ ctx[5]["reset_enter_code"] || "Enter your 6-digit code");
|
|
3968
4254
|
t6 = space();
|
|
3969
4255
|
fieldset = element("fieldset");
|
|
3970
4256
|
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\"/>";
|
|
@@ -4115,7 +4401,7 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
|
4115
4401
|
var tokenInputValid = true;
|
|
4116
4402
|
var passwordInputValid = true;
|
|
4117
4403
|
onMount(function () {
|
|
4118
|
-
var tokenElements =
|
|
4404
|
+
var tokenElements = __spreadArray([], __read(document.querySelectorAll("input.ms-form__input--token")), false);
|
|
4119
4405
|
tokenElements.forEach(function (ele, index) {
|
|
4120
4406
|
ele.addEventListener("keydown", function (e) {
|
|
4121
4407
|
if (e.keyCode === 8 && e.target.value === "")
|
|
@@ -4135,7 +4421,7 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
|
4135
4421
|
});
|
|
4136
4422
|
});
|
|
4137
4423
|
var validateFields = function (e) {
|
|
4138
|
-
var tokenElements =
|
|
4424
|
+
var tokenElements = __spreadArray([], __read(document.querySelectorAll("input.ms-form__input--token")), false);
|
|
4139
4425
|
var hasEmpty = tokenElements.some(function (el) {
|
|
4140
4426
|
if (!el.value) {
|
|
4141
4427
|
return true;
|
|
@@ -4152,7 +4438,7 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
|
4152
4438
|
};
|
|
4153
4439
|
function submitPasswordToken(e) {
|
|
4154
4440
|
return __awaiter(this, void 0, void 0, function () {
|
|
4155
|
-
var passwordInput, isValid, token,
|
|
4441
|
+
var passwordInput, isValid, token, message, err_7;
|
|
4156
4442
|
return __generator(this, function (_a) {
|
|
4157
4443
|
switch (_a.label) {
|
|
4158
4444
|
case 0:
|
|
@@ -4160,7 +4446,7 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
|
4160
4446
|
isValid = validateFields();
|
|
4161
4447
|
if (!isValid)
|
|
4162
4448
|
return [2 /*return*/];
|
|
4163
|
-
token =
|
|
4449
|
+
token = __spreadArray([], __read(document.getElementsByName("token")), false).filter(function (_a) {
|
|
4164
4450
|
var name = _a.name;
|
|
4165
4451
|
return name;
|
|
4166
4452
|
}).map(function (_a) {
|
|
@@ -4173,18 +4459,18 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
|
4173
4459
|
$$invalidate(2, showLoader = true);
|
|
4174
4460
|
return [4 /*yield*/, window.$memberstackDom.resetMemberPassword({ token: token, newPassword: passwordInput.value })];
|
|
4175
4461
|
case 2:
|
|
4176
|
-
_a.sent();
|
|
4177
|
-
window.$memberstackDom._showMessage(
|
|
4462
|
+
message = (_a.sent())._internalUseOnly.message;
|
|
4463
|
+
window.$memberstackDom._showMessage(message, false);
|
|
4178
4464
|
onSuccessPasswordReset({ type: "PASSWORD_RESET", data: {} });
|
|
4179
4465
|
$$invalidate(2, showLoader = false);
|
|
4180
4466
|
$$invalidate(0, display = "reset_password_success");
|
|
4181
4467
|
return [3 /*break*/, 4];
|
|
4182
4468
|
case 3:
|
|
4183
|
-
|
|
4469
|
+
err_7 = _a.sent();
|
|
4184
4470
|
$$invalidate(2, showLoader = false);
|
|
4185
|
-
console.log(
|
|
4186
|
-
if (
|
|
4187
|
-
window.$memberstackDom._showMessage(
|
|
4471
|
+
console.log(err_7);
|
|
4472
|
+
if (err_7.message) {
|
|
4473
|
+
window.$memberstackDom._showMessage(err_7.message, true);
|
|
4188
4474
|
}
|
|
4189
4475
|
return [3 /*break*/, 4];
|
|
4190
4476
|
case 4: return [2 /*return*/];
|
|
@@ -4766,7 +5052,7 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
4766
5052
|
var container = document.getElementById("msOverlay");
|
|
4767
5053
|
var css = document.createElement("style");
|
|
4768
5054
|
var color = data.branding.colors.lightMode.primaryButton;
|
|
4769
|
-
var fullCSS = ".ms-modal__profile-option:hover { color: "
|
|
5055
|
+
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, ";}");
|
|
4770
5056
|
css.appendChild(document.createTextNode(fullCSS));
|
|
4771
5057
|
container.appendChild(css);
|
|
4772
5058
|
}
|
|
@@ -4776,20 +5062,20 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
4776
5062
|
});
|
|
4777
5063
|
function logout(e) {
|
|
4778
5064
|
return __awaiter(this, void 0, void 0, function () {
|
|
4779
|
-
var data,
|
|
4780
|
-
return __generator(this, function (
|
|
4781
|
-
switch (
|
|
5065
|
+
var _a, data, message, err_8;
|
|
5066
|
+
return __generator(this, function (_b) {
|
|
5067
|
+
switch (_b.label) {
|
|
4782
5068
|
case 0:
|
|
4783
|
-
|
|
5069
|
+
_b.trys.push([0, 2, , 3]);
|
|
4784
5070
|
return [4 /*yield*/, window.$memberstackDom.logout()];
|
|
4785
5071
|
case 1:
|
|
4786
|
-
|
|
4787
|
-
window.$memberstackDom._showMessage(
|
|
5072
|
+
_a = _b.sent(), data = _a.data, message = _a._internalUseOnly.message;
|
|
5073
|
+
window.$memberstackDom._showMessage(message, false);
|
|
4788
5074
|
onSuccessLogout({ type: "LOGOUT", data: data });
|
|
4789
5075
|
return [3 /*break*/, 3];
|
|
4790
5076
|
case 2:
|
|
4791
|
-
|
|
4792
|
-
window.$memberstackDom._showMessage(
|
|
5077
|
+
err_8 = _b.sent();
|
|
5078
|
+
window.$memberstackDom._showMessage(err_8.message, true);
|
|
4793
5079
|
return [3 /*break*/, 3];
|
|
4794
5080
|
case 3: return [2 /*return*/];
|
|
4795
5081
|
}
|
|
@@ -5364,7 +5650,7 @@ function create_each_block$3(key_1, ctx) {
|
|
|
5364
5650
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
5365
5651
|
args[_i] = arguments[_i];
|
|
5366
5652
|
}
|
|
5367
|
-
return /*func*/ ctx[9].apply(/*func*/ ctx,
|
|
5653
|
+
return /*func*/ ctx[9].apply(/*func*/ ctx, __spreadArray([/*provider*/ ctx[16]], __read(args), false));
|
|
5368
5654
|
}
|
|
5369
5655
|
function select_block_type_1(ctx, dirty) {
|
|
5370
5656
|
if (dirty & /*member, $app*/ 18)
|
|
@@ -5630,7 +5916,7 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
5630
5916
|
var emailInputValid = false;
|
|
5631
5917
|
function submitEmailChange(e) {
|
|
5632
5918
|
return __awaiter(this, void 0, void 0, function () {
|
|
5633
|
-
var
|
|
5919
|
+
var message, err_9;
|
|
5634
5920
|
return __generator(this, function (_a) {
|
|
5635
5921
|
switch (_a.label) {
|
|
5636
5922
|
case 0:
|
|
@@ -5642,13 +5928,13 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
5642
5928
|
_a.trys.push([1, 3, , 4]);
|
|
5643
5929
|
return [4 /*yield*/, window.$memberstackDom.updateMemberAuth({ email: emailValue })];
|
|
5644
5930
|
case 2:
|
|
5645
|
-
_a.sent();
|
|
5646
|
-
window.$memberstackDom._showMessage(
|
|
5931
|
+
message = (_a.sent())._internalUseOnly.message;
|
|
5932
|
+
window.$memberstackDom._showMessage(message, false);
|
|
5647
5933
|
$$invalidate(8, profileLoader = false);
|
|
5648
5934
|
return [3 /*break*/, 4];
|
|
5649
5935
|
case 3:
|
|
5650
|
-
|
|
5651
|
-
window.$memberstackDom._showMessage(
|
|
5936
|
+
err_9 = _a.sent();
|
|
5937
|
+
window.$memberstackDom._showMessage(err_9.message, true);
|
|
5652
5938
|
$$invalidate(8, profileLoader = false);
|
|
5653
5939
|
return [3 /*break*/, 4];
|
|
5654
5940
|
case 4: return [2 /*return*/];
|
|
@@ -5658,24 +5944,24 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
5658
5944
|
}
|
|
5659
5945
|
function disconnectProvider(provider) {
|
|
5660
5946
|
return __awaiter(this, void 0, void 0, function () {
|
|
5661
|
-
var data,
|
|
5662
|
-
return __generator(this, function (
|
|
5663
|
-
switch (
|
|
5947
|
+
var _a, data, message, err_10;
|
|
5948
|
+
return __generator(this, function (_b) {
|
|
5949
|
+
switch (_b.label) {
|
|
5664
5950
|
case 0:
|
|
5665
5951
|
$$invalidate(8, profileLoader = true);
|
|
5666
|
-
|
|
5952
|
+
_b.label = 1;
|
|
5667
5953
|
case 1:
|
|
5668
|
-
|
|
5954
|
+
_b.trys.push([1, 3, , 4]);
|
|
5669
5955
|
return [4 /*yield*/, window.$memberstackDom.disconnectProvider({ provider: provider })];
|
|
5670
5956
|
case 2:
|
|
5671
|
-
|
|
5957
|
+
_a = _b.sent(), data = _a.data, message = _a._internalUseOnly.message;
|
|
5672
5958
|
$$invalidate(1, member = __assign(__assign({}, member), { auth: __assign(__assign({}, member.auth), { providers: data.providers }) }));
|
|
5673
|
-
window.$memberstackDom._showMessage(
|
|
5959
|
+
window.$memberstackDom._showMessage(message, false);
|
|
5674
5960
|
$$invalidate(8, profileLoader = false);
|
|
5675
5961
|
return [3 /*break*/, 4];
|
|
5676
5962
|
case 3:
|
|
5677
|
-
|
|
5678
|
-
window.$memberstackDom._showMessage(
|
|
5963
|
+
err_10 = _b.sent();
|
|
5964
|
+
window.$memberstackDom._showMessage(err_10.message, true);
|
|
5679
5965
|
$$invalidate(8, profileLoader = false);
|
|
5680
5966
|
return [3 /*break*/, 4];
|
|
5681
5967
|
case 4: return [2 /*return*/];
|
|
@@ -5685,7 +5971,7 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
5685
5971
|
}
|
|
5686
5972
|
function connectAdditionalProvider(provider) {
|
|
5687
5973
|
return __awaiter(this, void 0, void 0, function () {
|
|
5688
|
-
var data,
|
|
5974
|
+
var data, err_11;
|
|
5689
5975
|
return __generator(this, function (_a) {
|
|
5690
5976
|
switch (_a.label) {
|
|
5691
5977
|
case 0:
|
|
@@ -5697,11 +5983,11 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
5697
5983
|
case 2:
|
|
5698
5984
|
data = (_a.sent()).data;
|
|
5699
5985
|
$$invalidate(1, member = __assign(__assign({}, member), { auth: __assign(__assign({}, member.auth), { providers: data.providers }) }));
|
|
5700
|
-
window.$memberstackDom._showMessage(
|
|
5986
|
+
window.$memberstackDom._showMessage(data.message, false);
|
|
5701
5987
|
return [3 /*break*/, 4];
|
|
5702
5988
|
case 3:
|
|
5703
|
-
|
|
5704
|
-
window.$memberstackDom._showMessage(
|
|
5989
|
+
err_11 = _a.sent();
|
|
5990
|
+
window.$memberstackDom._showMessage(err_11.message, true);
|
|
5705
5991
|
return [3 /*break*/, 4];
|
|
5706
5992
|
case 4: return [2 /*return*/];
|
|
5707
5993
|
}
|
|
@@ -5781,7 +6067,7 @@ function create_else_block$3(ctx) {
|
|
|
5781
6067
|
}
|
|
5782
6068
|
};
|
|
5783
6069
|
}
|
|
5784
|
-
// (
|
|
6070
|
+
// (66:4) {#if !member.auth.hasPassword}
|
|
5785
6071
|
function create_if_block_1$6(ctx) {
|
|
5786
6072
|
var t;
|
|
5787
6073
|
return {
|
|
@@ -5797,7 +6083,7 @@ function create_if_block_1$6(ctx) {
|
|
|
5797
6083
|
}
|
|
5798
6084
|
};
|
|
5799
6085
|
}
|
|
5800
|
-
// (
|
|
6086
|
+
// (74:2) {#if member.auth.hasPassword}
|
|
5801
6087
|
function create_if_block$8(ctx) {
|
|
5802
6088
|
var passwordinput;
|
|
5803
6089
|
var updating_passwordValue;
|
|
@@ -6102,7 +6388,7 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
6102
6388
|
var confirmPasswordValid = false;
|
|
6103
6389
|
function submitPasswordChange(e) {
|
|
6104
6390
|
return __awaiter(this, void 0, void 0, function () {
|
|
6105
|
-
var
|
|
6391
|
+
var message, msg, msg, err_12;
|
|
6106
6392
|
return __generator(this, function (_a) {
|
|
6107
6393
|
switch (_a.label) {
|
|
6108
6394
|
case 0:
|
|
@@ -6110,37 +6396,40 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
6110
6396
|
return [2 /*return*/];
|
|
6111
6397
|
if (!member.auth.hasPassword && !newPasswordValid && !confirmPasswordValid)
|
|
6112
6398
|
return [2 /*return*/];
|
|
6113
|
-
if (newPasswordValue !== confirmPasswordValue) {
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
}
|
|
6399
|
+
// if (newPasswordValue !== confirmPasswordValue) {
|
|
6400
|
+
// window.$memberstackDom._showMessage("New password and confirm password do not match", true);
|
|
6401
|
+
// return;
|
|
6402
|
+
// }
|
|
6117
6403
|
$$invalidate(9, profileLoader = true);
|
|
6118
6404
|
_a.label = 1;
|
|
6119
6405
|
case 1:
|
|
6120
6406
|
_a.trys.push([1, 6, , 7]);
|
|
6407
|
+
message = void 0;
|
|
6121
6408
|
if (!member.auth.hasPassword) return [3 /*break*/, 3];
|
|
6122
6409
|
return [4 /*yield*/, window.$memberstackDom.updateMemberAuth({
|
|
6123
6410
|
oldPassword: currentPasswordValue,
|
|
6124
6411
|
newPassword: newPasswordValue
|
|
6125
6412
|
})];
|
|
6126
6413
|
case 2:
|
|
6127
|
-
_a.sent();
|
|
6414
|
+
msg = (_a.sent())._internalUseOnly.message;
|
|
6415
|
+
message = msg;
|
|
6128
6416
|
return [3 /*break*/, 5];
|
|
6129
6417
|
case 3: return [4 /*yield*/, window.$memberstackDom.setPassword({ password: newPasswordValue })];
|
|
6130
6418
|
case 4:
|
|
6131
|
-
_a.sent();
|
|
6419
|
+
msg = (_a.sent())._internalUseOnly.message;
|
|
6132
6420
|
$$invalidate(1, member.auth.hasPassword = true, member);
|
|
6421
|
+
message = msg;
|
|
6133
6422
|
_a.label = 5;
|
|
6134
6423
|
case 5:
|
|
6135
|
-
window.$memberstackDom._showMessage(
|
|
6424
|
+
window.$memberstackDom._showMessage(message, false);
|
|
6136
6425
|
$$invalidate(2, currentPasswordValue = "");
|
|
6137
6426
|
$$invalidate(3, newPasswordValue = "");
|
|
6138
6427
|
$$invalidate(4, confirmPasswordValue = "");
|
|
6139
6428
|
$$invalidate(9, profileLoader = false);
|
|
6140
6429
|
return [3 /*break*/, 7];
|
|
6141
6430
|
case 6:
|
|
6142
|
-
|
|
6143
|
-
window.$memberstackDom._showMessage(
|
|
6431
|
+
err_12 = _a.sent();
|
|
6432
|
+
window.$memberstackDom._showMessage(err_12.message, true);
|
|
6144
6433
|
$$invalidate(9, profileLoader = false);
|
|
6145
6434
|
return [3 /*break*/, 7];
|
|
6146
6435
|
case 7: return [2 /*return*/];
|
|
@@ -6221,7 +6510,7 @@ function fade(node, _a) {
|
|
|
6221
6510
|
delay: delay,
|
|
6222
6511
|
duration: duration,
|
|
6223
6512
|
easing: easing,
|
|
6224
|
-
css: function (t) { return "opacity: "
|
|
6513
|
+
css: function (t) { return "opacity: ".concat(t * o); }
|
|
6225
6514
|
};
|
|
6226
6515
|
}
|
|
6227
6516
|
/* src/components/ProfileLoader.svelte generated by Svelte v3.48.0 */
|
|
@@ -6686,7 +6975,7 @@ function create_each_block$2(ctx) {
|
|
|
6686
6975
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
6687
6976
|
args[_i] = arguments[_i];
|
|
6688
6977
|
}
|
|
6689
|
-
return /*func*/ ctx[6].apply(/*func*/ ctx,
|
|
6978
|
+
return /*func*/ ctx[6].apply(/*func*/ ctx, __spreadArray([/*memberPlan*/ ctx[8]], __read(args), false));
|
|
6690
6979
|
}
|
|
6691
6980
|
function func_1() {
|
|
6692
6981
|
return /*func_1*/ ctx[7](/*memberPlan*/ ctx[8]);
|
|
@@ -6910,7 +7199,7 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
6910
7199
|
}
|
|
6911
7200
|
function removeFreePlan(planId) {
|
|
6912
7201
|
return __awaiter(this, void 0, void 0, function () {
|
|
6913
|
-
var
|
|
7202
|
+
var err_13;
|
|
6914
7203
|
return __generator(this, function (_a) {
|
|
6915
7204
|
switch (_a.label) {
|
|
6916
7205
|
case 0:
|
|
@@ -6924,9 +7213,9 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
6924
7213
|
$$invalidate(0, member.planConnections = member.planConnections.filter(function (plan) { return plan.planId !== planId; }), member);
|
|
6925
7214
|
return [3 /*break*/, 5];
|
|
6926
7215
|
case 3:
|
|
6927
|
-
|
|
6928
|
-
console.log(
|
|
6929
|
-
window.$memberstackDom._showMessage(
|
|
7216
|
+
err_13 = _a.sent();
|
|
7217
|
+
console.log(err_13);
|
|
7218
|
+
window.$memberstackDom._showMessage(err_13.message, true);
|
|
6930
7219
|
return [3 /*break*/, 5];
|
|
6931
7220
|
case 4:
|
|
6932
7221
|
$$invalidate(5, profileLoader = false);
|
|
@@ -7947,7 +8236,7 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
7947
8236
|
var container = document.getElementById("msOverlay");
|
|
7948
8237
|
var css = document.createElement("style");
|
|
7949
8238
|
var color = data.branding.colors.lightMode.primaryButton;
|
|
7950
|
-
var fullCSS = ".ms-modal__profile-option:hover { color: "
|
|
8239
|
+
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, ";}");
|
|
7951
8240
|
css.appendChild(document.createTextNode(fullCSS));
|
|
7952
8241
|
container.appendChild(css);
|
|
7953
8242
|
}
|
|
@@ -7957,20 +8246,20 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
7957
8246
|
});
|
|
7958
8247
|
function logout(e) {
|
|
7959
8248
|
return __awaiter(this, void 0, void 0, function () {
|
|
7960
|
-
var data,
|
|
7961
|
-
return __generator(this, function (
|
|
7962
|
-
switch (
|
|
8249
|
+
var _a, data, message, err_14;
|
|
8250
|
+
return __generator(this, function (_b) {
|
|
8251
|
+
switch (_b.label) {
|
|
7963
8252
|
case 0:
|
|
7964
|
-
|
|
8253
|
+
_b.trys.push([0, 2, , 3]);
|
|
7965
8254
|
return [4 /*yield*/, window.$memberstackDom.logout()];
|
|
7966
8255
|
case 1:
|
|
7967
|
-
|
|
7968
|
-
window.$memberstackDom._showMessage(
|
|
8256
|
+
_a = _b.sent(), data = _a.data, message = _a._internalUseOnly.message;
|
|
8257
|
+
window.$memberstackDom._showMessage(message, false);
|
|
7969
8258
|
onSuccessLogout({ type: "LOGOUT", data: data });
|
|
7970
8259
|
return [3 /*break*/, 3];
|
|
7971
8260
|
case 2:
|
|
7972
|
-
|
|
7973
|
-
window.$memberstackDom._showMessage(
|
|
8261
|
+
err_14 = _b.sent();
|
|
8262
|
+
window.$memberstackDom._showMessage(err_14.message, true);
|
|
7974
8263
|
return [3 /*break*/, 3];
|
|
7975
8264
|
case 3: return [2 /*return*/];
|
|
7976
8265
|
}
|
|
@@ -8506,7 +8795,7 @@ function create_each_block(key_1, ctx) {
|
|
|
8506
8795
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8507
8796
|
args[_i] = arguments[_i];
|
|
8508
8797
|
}
|
|
8509
|
-
return /*func*/ ctx[9].apply(/*func*/ ctx,
|
|
8798
|
+
return /*func*/ ctx[9].apply(/*func*/ ctx, __spreadArray([/*provider*/ ctx[16]], __read(args), false));
|
|
8510
8799
|
}
|
|
8511
8800
|
function select_block_type_1(ctx, dirty) {
|
|
8512
8801
|
if (dirty & /*member, $app*/ 18)
|
|
@@ -8754,7 +9043,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
8754
9043
|
var emailInputValid = false;
|
|
8755
9044
|
function submitEmailChange(e) {
|
|
8756
9045
|
return __awaiter(this, void 0, void 0, function () {
|
|
8757
|
-
var
|
|
9046
|
+
var message, err_15;
|
|
8758
9047
|
return __generator(this, function (_a) {
|
|
8759
9048
|
switch (_a.label) {
|
|
8760
9049
|
case 0:
|
|
@@ -8766,13 +9055,13 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
8766
9055
|
_a.trys.push([1, 3, , 4]);
|
|
8767
9056
|
return [4 /*yield*/, window.$memberstackDom.updateMemberAuth({ email: emailValue })];
|
|
8768
9057
|
case 2:
|
|
8769
|
-
_a.sent();
|
|
8770
|
-
window.$memberstackDom._showMessage(
|
|
9058
|
+
message = (_a.sent())._internalUseOnly.message;
|
|
9059
|
+
window.$memberstackDom._showMessage(message, false);
|
|
8771
9060
|
$$invalidate(8, profileLoader = false);
|
|
8772
9061
|
return [3 /*break*/, 4];
|
|
8773
9062
|
case 3:
|
|
8774
|
-
|
|
8775
|
-
window.$memberstackDom._showMessage(
|
|
9063
|
+
err_15 = _a.sent();
|
|
9064
|
+
window.$memberstackDom._showMessage(err_15.message, true);
|
|
8776
9065
|
$$invalidate(8, profileLoader = false);
|
|
8777
9066
|
return [3 /*break*/, 4];
|
|
8778
9067
|
case 4: return [2 /*return*/];
|
|
@@ -8782,24 +9071,24 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
8782
9071
|
}
|
|
8783
9072
|
function disconnectProvider(provider) {
|
|
8784
9073
|
return __awaiter(this, void 0, void 0, function () {
|
|
8785
|
-
var data,
|
|
8786
|
-
return __generator(this, function (
|
|
8787
|
-
switch (
|
|
9074
|
+
var _a, data, message, err_16;
|
|
9075
|
+
return __generator(this, function (_b) {
|
|
9076
|
+
switch (_b.label) {
|
|
8788
9077
|
case 0:
|
|
8789
9078
|
$$invalidate(8, profileLoader = true);
|
|
8790
|
-
|
|
9079
|
+
_b.label = 1;
|
|
8791
9080
|
case 1:
|
|
8792
|
-
|
|
9081
|
+
_b.trys.push([1, 3, , 4]);
|
|
8793
9082
|
return [4 /*yield*/, window.$memberstackDom.disconnectProvider({ provider: provider })];
|
|
8794
9083
|
case 2:
|
|
8795
|
-
|
|
9084
|
+
_a = _b.sent(), data = _a.data, message = _a._internalUseOnly.message;
|
|
8796
9085
|
$$invalidate(1, member = __assign(__assign({}, member), { auth: __assign(__assign({}, member.auth), { providers: data.providers }) }));
|
|
8797
|
-
window.$memberstackDom._showMessage(
|
|
9086
|
+
window.$memberstackDom._showMessage(message, false);
|
|
8798
9087
|
$$invalidate(8, profileLoader = false);
|
|
8799
9088
|
return [3 /*break*/, 4];
|
|
8800
9089
|
case 3:
|
|
8801
|
-
|
|
8802
|
-
window.$memberstackDom._showMessage(
|
|
9090
|
+
err_16 = _b.sent();
|
|
9091
|
+
window.$memberstackDom._showMessage(err_16.message, true);
|
|
8803
9092
|
$$invalidate(8, profileLoader = false);
|
|
8804
9093
|
return [3 /*break*/, 4];
|
|
8805
9094
|
case 4: return [2 /*return*/];
|
|
@@ -8809,7 +9098,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
8809
9098
|
}
|
|
8810
9099
|
function connectAdditionalProvider(provider) {
|
|
8811
9100
|
return __awaiter(this, void 0, void 0, function () {
|
|
8812
|
-
var data,
|
|
9101
|
+
var data, err_17;
|
|
8813
9102
|
return __generator(this, function (_a) {
|
|
8814
9103
|
switch (_a.label) {
|
|
8815
9104
|
case 0:
|
|
@@ -8821,11 +9110,11 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
8821
9110
|
case 2:
|
|
8822
9111
|
data = (_a.sent()).data;
|
|
8823
9112
|
$$invalidate(1, member = __assign(__assign({}, member), { auth: __assign(__assign({}, member.auth), { providers: data.providers }) }));
|
|
8824
|
-
window.$memberstackDom._showMessage(
|
|
9113
|
+
window.$memberstackDom._showMessage(data.message, false);
|
|
8825
9114
|
return [3 /*break*/, 4];
|
|
8826
9115
|
case 3:
|
|
8827
|
-
|
|
8828
|
-
window.$memberstackDom._showMessage(
|
|
9116
|
+
err_17 = _a.sent();
|
|
9117
|
+
window.$memberstackDom._showMessage(err_17.message, true);
|
|
8829
9118
|
return [3 /*break*/, 4];
|
|
8830
9119
|
case 4: return [2 /*return*/];
|
|
8831
9120
|
}
|
|
@@ -9142,7 +9431,7 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
9142
9431
|
var confirmPasswordValid = false;
|
|
9143
9432
|
function submitPasswordChange(e) {
|
|
9144
9433
|
return __awaiter(this, void 0, void 0, function () {
|
|
9145
|
-
var
|
|
9434
|
+
var message, msg, msg, err_18;
|
|
9146
9435
|
return __generator(this, function (_a) {
|
|
9147
9436
|
switch (_a.label) {
|
|
9148
9437
|
case 0:
|
|
@@ -9150,37 +9439,40 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
9150
9439
|
return [2 /*return*/];
|
|
9151
9440
|
if (!member.auth.hasPassword && !newPasswordValid && !confirmPasswordValid)
|
|
9152
9441
|
return [2 /*return*/];
|
|
9153
|
-
if (newPasswordValue !== confirmPasswordValue) {
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
}
|
|
9442
|
+
// if (newPasswordValue !== confirmPasswordValue) {
|
|
9443
|
+
// window.$memberstackDom._showMessage("New password and confirm password do not match", true);
|
|
9444
|
+
// return;
|
|
9445
|
+
// }
|
|
9157
9446
|
$$invalidate(8, profileLoader = true);
|
|
9158
9447
|
_a.label = 1;
|
|
9159
9448
|
case 1:
|
|
9160
9449
|
_a.trys.push([1, 6, , 7]);
|
|
9450
|
+
message = void 0;
|
|
9161
9451
|
if (!member.auth.hasPassword) return [3 /*break*/, 3];
|
|
9162
9452
|
return [4 /*yield*/, window.$memberstackDom.updateMemberAuth({
|
|
9163
9453
|
oldPassword: currentPasswordValue,
|
|
9164
9454
|
newPassword: newPasswordValue
|
|
9165
9455
|
})];
|
|
9166
9456
|
case 2:
|
|
9167
|
-
_a.sent();
|
|
9457
|
+
msg = (_a.sent())._internalUseOnly.message;
|
|
9458
|
+
message = msg;
|
|
9168
9459
|
return [3 /*break*/, 5];
|
|
9169
9460
|
case 3: return [4 /*yield*/, window.$memberstackDom.setPassword({ password: newPasswordValue })];
|
|
9170
9461
|
case 4:
|
|
9171
|
-
_a.sent();
|
|
9462
|
+
msg = (_a.sent())._internalUseOnly.message;
|
|
9172
9463
|
$$invalidate(0, member.auth.hasPassword = true, member);
|
|
9464
|
+
message = msg;
|
|
9173
9465
|
_a.label = 5;
|
|
9174
9466
|
case 5:
|
|
9175
|
-
window.$memberstackDom._showMessage(
|
|
9467
|
+
window.$memberstackDom._showMessage(message, false);
|
|
9176
9468
|
$$invalidate(1, currentPasswordValue = "");
|
|
9177
9469
|
$$invalidate(2, newPasswordValue = "");
|
|
9178
9470
|
$$invalidate(3, confirmPasswordValue = "");
|
|
9179
9471
|
$$invalidate(8, profileLoader = false);
|
|
9180
9472
|
return [3 /*break*/, 7];
|
|
9181
9473
|
case 6:
|
|
9182
|
-
|
|
9183
|
-
window.$memberstackDom._showMessage(
|
|
9474
|
+
err_18 = _a.sent();
|
|
9475
|
+
window.$memberstackDom._showMessage(err_18.message, true);
|
|
9184
9476
|
$$invalidate(8, profileLoader = false);
|
|
9185
9477
|
return [3 /*break*/, 7];
|
|
9186
9478
|
case 7: return [2 /*return*/];
|
|
@@ -10052,9 +10344,9 @@ var MobileProfileModal = /** @class */ (function (_super) {
|
|
|
10052
10344
|
}(SvelteComponent));
|
|
10053
10345
|
/* src/Main.svelte generated by Svelte v3.48.0 */
|
|
10054
10346
|
function add_css(target) {
|
|
10055
|
-
append_styles(target, "svelte-bbv5du", "@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-bbv5du{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#msOverlay.svelte-bbv5du{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 button:hover{color:#0a0a0a}.ms-modal__back svg{height:12px}.ms-modal__profile-back button{appearance:none;padding:5px;margin-right:6px;outline:none;width:25px;height:25px;border:0;background:transparent;cursor:pointer;color:#5c5c5c;display:flex;align-items:stretch;justify-content:center}.ms-modal__profile-back--mobile{box-sizing:border-box;margin:0;min-width:0;position:absolute;top:16px;left:16px;z-index:10;line-height:0}.ms-modal__profile-back--mobile button{appearance:none;padding:0;outline:none;height:11px;width:7px;border:0;background:transparent;cursor:pointer;color:#5c5c5c}.ms-modal__profile-back--mobile button:hover{color:#0a0a0a}.ms-modal__header{display:flex;align-items:center;padding:12px}.ms-modal__header--mobile{display:flex;padding:42px 42px 16px 42px;flex-direction:column;flex-wrap:wrap;justify-content:center;align-items:center}.ms-modal__header--center{display:flex;flex-direction:column;flex-wrap:wrap;justify-content:center;align-items:center}.ms-modal__content{padding:28px 28px 20px;width:100%;box-sizing:border-box;margin:0 auto}.ms-modal__content--profile{padding:0;display:flex;flex-wrap:wrap;align-content:stretch;align-items:stretch;border-top:1px solid #DDDDDD}.ms-modal__content-left{display:flex;flex-direction:column;align-items:flex-start;padding:20px;border-right:1px solid #DDDDDD;min-width:160px}.ms-modal__content-right{padding:20px;flex-grow:1;height:55vh;min-height:300px;overflow-y:auto;position:relative;transition:height 0.3s ease-in-out}.ms-modal__content--mobile{padding:12px;flex-grow:1;height:42vh;min-height:300px;overflow-y:auto;position:relative;transition:height 0.3s ease-in-out}.ms-modal__mobile-profile-nav{display:flex;flex-direction:column;align-content:center;align-items:stretch;flex-wrap:nowrap}.ms-modal__mobile-profile-nav button{display:flex;flex-direction:row;align-content:center;align-items:center;flex-wrap:nowrap;justify-content:space-between;padding:12px;width:100%;margin-bottom:10px}.ms-modal__figure{margin:8px auto;display:flex;position:relative;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;flex-shrink:0;line-height:1}.ms-modal__figure--profile{width:24px;height:24px;padding:0px;margin:0px 8px 0px 0px}.ms-modal__figure--mobile{margin:0px 0px 8px 0px}.ms-modal__figure img, .ms-modal__figure svg{width:auto;height:100%;max-height:42px;text-align:center;object-fit:cover;color:transparent}.ms-modal__title-container{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.ms-modal__title{margin-bottom:36px;margin-top:0;text-align:center;font-size:24px;line-height:32px;font-weight:700}.ms-modal__title--profile{margin-bottom:0px}.ms-modal__title-group{display:flex;align-items:center}.ms-modal__title--sub-text{margin-bottom:8px}.ms-modal__text{font-weight:500;font-size:16px;line-height:28px;text-align:center;margin:0 0 20px 0}.ms-modal__regular-button{color:#fff;padding:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer;display:flex;align-items:center}.ms-modal__regular-button svg{height:16px;margin-left:6px}.ms-modal__regular-button--left-icon svg{margin-right:6px;margin-left:0px}.ms-modal__regular-button--right-icon svg{margin-left:6px;margin-right:0px}.ms-modal__regular-button--margin-right{margin-right:12px}.ms-modal__text-button{color:#fff;background-color:transparent;padding:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer;display:flex;align-items:center}.ms-modal__card{box-shadow:0 0 #0000,0 0 #0000,0 0 #0000,0 0 #0000,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{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{height:14px;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{height:14px;margin-right:8px}.ms-modal__profile-option:hover{color:#2962FF}.ms-modal__profile-option--active{color:#2962FF}.ms-modal__social-button{display:flex;align-items:center;justify-content:center;width:100%;height:52px;border-radius:6px;font-weight:700;font-size:16px;line-height:28px;color:#0A0A0A;background:none;border:1px solid #C9C9C9;cursor:pointer;margin-bottom:8px}.ms-modal__social-button img{height:16px;margin-right:8px}.ms-modal__social-button[disabled]{background:#F6F6F6}.ms-modal__social-divider{display:flex;align-items:center;margin:20px 0px}.ms-modal__divider-line{text-align:center;background:#dddddd;height:1px;width:100%}.ms-modal__divider-text{padding:0px 4px}.ms-modal__footer{text-align:center;width:100%;box-sizing:border-box;margin:0;min-width:0;background:#f6f6f6;padding-top:10px;padding-bottom:10px;border-bottom-left-radius:16px;border-bottom-right-radius:16px;border-top:1px solid;border-top-color:#dddddd;font-size:12px;line-height:16px;font-weight:500}.ms-modal__footer a{color:rgb(10, 10, 10);text-decoration:none;display:flex;justify-content:center;align-items:center}.ms-modal__footer svg{height:12px;width:12px;margin-right:5.5px}");
|
|
10347
|
+
append_styles(target, "svelte-3agguo", "@import url(\"https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap\");.svelte-3agguo{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#msOverlay.svelte-3agguo{position:fixed;display:flex;justify-content:center;align-items:center;width:100%;height:100%;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.5);z-index:99999;overflow:scroll;font-family:\"Plus Jakarta Sans\", sans-serif;padding:5vh 5vw}.--hide{display:none}.--flex-h-center{display:flex;align-items:center}.ms__loader{position:relative;z-index:10000000}#msLoader path{fill:#007ace}.ms__profile__loader{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background:rgb(255 255 255 / 75%)}.ms-modal{box-sizing:border-box;margin:auto;min-width:0;position:relative;outline:none;background:white;border-radius:16px;box-shadow:2px 2px 12px rgb(0 0 0 / 10%);width:360px;color:rgb(10, 10, 10)}.ms-modal--profile{width:700px}.ms-modal__close{box-sizing:border-box;margin:0;min-width:0;position:absolute;top:16px;right:16px;z-index:10;line-height:0}.ms-modal__close button{appearance:none;padding:0;outline:none;width:12px;border:0;background:transparent;cursor:pointer;color:#5c5c5c}.ms-modal__close button:hover{color:#0a0a0a}.ms-modal__back{box-sizing:border-box;margin:0;min-width:0;position:absolute;top:16px;left:16px;z-index:10;line-height:0}.ms-modal__back button{appearance:none;padding:0;outline:none;width:12px;border:0;background:transparent;cursor:pointer;color:#5c5c5c}.ms-modal__back button:hover, .ms-modal__profile-back\n button:hover{color:#0a0a0a}.ms-modal__back svg{height:12px}.ms-modal__profile-back button{appearance:none;padding:5px;margin-right:6px;outline:none;width:25px;height:25px;border:0;background:transparent;cursor:pointer;color:#5c5c5c;display:flex;align-items:stretch;justify-content:center}.ms-modal__profile-back--mobile{box-sizing:border-box;margin:0;min-width:0;position:absolute;top:16px;left:16px;z-index:10;line-height:0}.ms-modal__profile-back--mobile button{appearance:none;padding:0;outline:none;height:11px;width:7px;border:0;background:transparent;cursor:pointer;color:#5c5c5c}.ms-modal__profile-back--mobile button:hover{color:#0a0a0a}.ms-modal__header{display:flex;align-items:center;padding:12px}.ms-modal__header--mobile{display:flex;padding:42px 42px 16px 42px;flex-direction:column;flex-wrap:wrap;justify-content:center;align-items:center}.ms-modal__header--center{display:flex;flex-direction:column;flex-wrap:wrap;justify-content:center;align-items:center}.ms-modal__content{padding:28px 28px 20px;width:100%;box-sizing:border-box;margin:0 auto}.ms-modal__content--profile{padding:0;display:flex;flex-wrap:wrap;align-content:stretch;align-items:stretch;border-top:1px solid #dddddd}.ms-modal__content-left{display:flex;flex-direction:column;align-items:flex-start;padding:20px;border-right:1px solid #dddddd;min-width:160px}.ms-modal__content-right{padding:20px;flex-grow:1;height:55vh;min-height:300px;overflow-y:auto;position:relative;transition:height 0.3s ease-in-out}.ms-modal__content--mobile{padding:12px;flex-grow:1;height:42vh;min-height:300px;overflow-y:auto;position:relative;transition:height 0.3s ease-in-out}.ms-modal__mobile-profile-nav{display:flex;flex-direction:column;align-content:center;align-items:stretch;flex-wrap:nowrap}.ms-modal__mobile-profile-nav button{display:flex;flex-direction:row;align-content:center;align-items:center;flex-wrap:nowrap;justify-content:space-between;padding:12px;width:100%;margin-bottom:10px}.ms-modal__figure{margin:8px auto;display:flex;position:relative;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;flex-shrink:0;line-height:1}.ms-modal__figure--profile{width:24px;height:24px;padding:0px;margin:0px 8px 0px 0px}.ms-modal__figure--mobile{margin:0px 0px 8px 0px}.ms-modal__figure img, .ms-modal__figure svg{width:auto;height:100%;max-height:42px;text-align:center;object-fit:cover;color:transparent}.ms-modal__title-container{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.ms-modal__title{margin-bottom:36px;margin-top:0;text-align:center;font-size:24px;line-height:32px;font-weight:700}.ms-modal__title--profile{margin-bottom:0px}.ms-modal__title-group{display:flex;align-items:center}.ms-modal__title--sub-text{margin-bottom:8px}.ms-modal__text{font-weight:500;font-size:16px;line-height:28px;text-align:center;margin:0 0 20px 0}.ms-modal__regular-button{color:#fff;padding:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer;display:flex;align-items:center}.ms-modal__regular-button svg{height:16px;margin-left:6px}.ms-modal__regular-button--left-icon svg{margin-right:6px;margin-left:0px}.ms-modal__regular-button--right-icon svg{margin-left:6px;margin-right:0px}.ms-modal__regular-button--margin-right{margin-right:12px}.ms-modal__text-button{color:#fff;background-color:transparent;padding:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer;display:flex;align-items:center}.ms-modal__card{box-shadow:0 0 #0000, 0 0 #0000, 0 0 #0000, 0 0 #0000,\n 0px 2px 2px rgba(0, 0, 0, 0.04);padding:12px;display:flex;flex-direction:row;margin-bottom:12px;border:1px solid rgb(221, 221, 221);border-radius:10px;box-sizing:border-box;width:100%;cursor:default;background:rgb(255, 255, 255);align-items:center;justify-content:space-between}.ms-form{width:100%}.ms-form__group{margin-bottom:20px}.ms-form__flex{display:flex;justify-content:space-between;align-content:center}.ms-form__flex--centered{justify-content:center}.ms-form__label{margin-bottom:4px;margin-top:0px;font-size:14px;line-height:24px;font-weight:700;text-align:left}.ms-form__fieldset{display:flex;justify-content:space-between;padding:0;border:none}.ms-form__input{box-sizing:border-box;margin:0px;border:1px solid rgb(201, 201, 201);border-radius:6px;font-size:16px;font-weight:400;padding:15px;width:100%}.ms-form__password-container{display:flex;justify-content:space-between;align-content:center;box-sizing:border-box;margin:0px;border:1px solid rgb(201, 201, 201);border-radius:6px;width:100%}.ms-form__password-container:focus-within{border:1px solid rgb(0, 68, 252);outline:rgb(0, 68, 252) solid 1px}.ms-form__password-container:focus-within input{outline:none;border-color:rgb(201, 201, 201);box-shadow:none}.ms-form__input--password{border:none}.ms-form__input--token{font-weight:500;font-size:24.19px;line-height:32px;text-align:center;color:#000000;padding:9px;max-width:42px}.ms-form__show-toggle{cursor:pointer;background:transparent;border-radius:0px 6px 6px 0px;padding:0px 8px;display:flex;align-items:center}.ms-form__eye{display:block;width:22px}.ms-form__eye-slash{display:block;width:22px}.ms-form__error{font-weight:500;font-size:12px;line-height:16px;color:#e40023;margin-top:4px;display:flex;align-items:baseline}.ms-form__error svg{width:10px;height:10px;margin-right:5px}.ms-form__label--right a{color:rgb(10, 10, 10) !important;text-decoration:none;font-weight:400}.ms-form__button{border-radius:6px;font-weight:700;font-size:16px;padding-left:22px;padding-right:22px;height:52px;border:none;display:block;width:100%;background-color:rgb(41, 98, 255);color:#fff;transition:background-color 0.5s ease;cursor:pointer}.ms-form__button:hover{background-color:#0745ff}.ms-form__button:disabled{background-color:#96c0fe;color:#fff;pointer-events:none;display:flex;justify-content:center;align-items:center}.ms-form__button--text{background-color:transparent;padding:0px;height:auto;margin-bottom:0px;margin-top:0px;font-size:14px;line-height:28px;font-weight:500;color:#0a0a0a;opacity:0.8}.ms-form__button--text:hover{background-color:transparent}.ms-form__button--top-spacing{margin-top:10px}#msFormLoader path{fill:#fff}a.ms-form__link, div.ms-form__link{margin-top:8px;font-weight:500;font-size:14px;line-height:24px;color:rgb(10, 10, 10) !important;text-decoration:none;opacity:0.8;cursor:pointer}.ms-modal__cancel-button{background:#f6f6f6;color:#828282;padding:8px;margin-right:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer}.ms-modal__save-button{background:#2962ff;color:#fff;padding:8px;border-radius:4px;border:none;font-weight:700;font-size:14px;line-height:16px;cursor:pointer}.ms-modal__save-button:disabled{background:#80a1fc;color:#fff;cursor:default}.ms-modal__save-button--large{padding:12px;font-weight:700;font-size:14px;line-height:16px;width:100%}.ms-modal__outline-button{display:block !important;background:#fff;color:#0a0a0a;font-weight:700;font-size:14px;line-height:16px;padding:12px;margin-right:8px;border-radius:4px;border:1px solid #dddddd;cursor:pointer}.ms-modal__outline-button svg{display:inline !important;height:15px;margin-right:6px}.ms-modal__outline-button--mobile{width:100%}.ms-modal__button-label{margin-bottom:4px;margin-top:0px;font-size:14px;line-height:28px;font-weight:500}.ms-modal__profile-option{cursor:pointer;margin-bottom:20px;font-weight:500;font-size:16px;line-height:28px;background:transparent;border:none;padding:0px}.ms-modal__profile-option svg{display:inline !important;height:14px;margin-right:8px}.ms-modal__profile-option:hover{color:#2962ff}.ms-modal__profile-option--active{color:#2962ff}.ms-modal__social-button{display:flex;align-items:center;justify-content:center;width:100%;height:52px;border-radius:6px;font-weight:700;font-size:16px;line-height:28px;color:#0a0a0a;background:none;border:1px solid #c9c9c9;cursor:pointer;margin-bottom:8px}.ms-modal__social-button img{height:16px;margin-right:8px}.ms-modal__social-button[disabled]{background:#f6f6f6}.ms-modal__social-divider{display:flex;align-items:center;margin:20px 0px}.ms-modal__divider-line{text-align:center;background:#dddddd;height:1px;width:100%}.ms-modal__divider-text{padding:0px 4px}.ms-modal__footer{text-align:center;width:100%;box-sizing:border-box;margin:0;min-width:0;background:#f6f6f6;padding-top:10px;padding-bottom:10px;border-bottom-left-radius:16px;border-bottom-right-radius:16px;border-top:1px solid;border-top-color:#dddddd;font-size:12px;line-height:16px;font-weight:500}.ms-modal__footer a{color:rgb(10, 10, 10);text-decoration:none;display:flex;justify-content:center;align-items:center}.ms-modal__footer svg{height:12px;width:12px;margin-right:5.5px}");
|
|
10056
10348
|
}
|
|
10057
|
-
// (
|
|
10349
|
+
// (108:34)
|
|
10058
10350
|
function create_if_block_6(ctx) {
|
|
10059
10351
|
var mediaquery;
|
|
10060
10352
|
var current;
|
|
@@ -10066,11 +10358,11 @@ function create_if_block_6(ctx) {
|
|
|
10066
10358
|
create_default_slot,
|
|
10067
10359
|
function (_a) {
|
|
10068
10360
|
var matches = _a.matches;
|
|
10069
|
-
return ({
|
|
10361
|
+
return ({ 22: matches });
|
|
10070
10362
|
},
|
|
10071
10363
|
function (_a) {
|
|
10072
10364
|
var matches = _a.matches;
|
|
10073
|
-
return matches ?
|
|
10365
|
+
return matches ? 4194304 : 0;
|
|
10074
10366
|
}
|
|
10075
10367
|
]
|
|
10076
10368
|
},
|
|
@@ -10087,7 +10379,7 @@ function create_if_block_6(ctx) {
|
|
|
10087
10379
|
},
|
|
10088
10380
|
p: function (ctx, dirty) {
|
|
10089
10381
|
var mediaquery_changes = {};
|
|
10090
|
-
if (dirty & /*$$scope, onSuccess, member, display, matches*/
|
|
10382
|
+
if (dirty & /*$$scope, onSuccess, member, display, matches*/ 12582925) {
|
|
10091
10383
|
mediaquery_changes.$$scope = { dirty: dirty, ctx: ctx };
|
|
10092
10384
|
}
|
|
10093
10385
|
mediaquery.$set(mediaquery_changes);
|
|
@@ -10107,13 +10399,13 @@ function create_if_block_6(ctx) {
|
|
|
10107
10399
|
}
|
|
10108
10400
|
};
|
|
10109
10401
|
}
|
|
10110
|
-
// (
|
|
10402
|
+
// (106:49)
|
|
10111
10403
|
function create_if_block_5(ctx) {
|
|
10112
10404
|
var passwordsuccessmodal;
|
|
10113
10405
|
var updating_display;
|
|
10114
10406
|
var current;
|
|
10115
10407
|
function passwordsuccessmodal_display_binding(value) {
|
|
10116
|
-
/*passwordsuccessmodal_display_binding*/ ctx[
|
|
10408
|
+
/*passwordsuccessmodal_display_binding*/ ctx[15](value);
|
|
10117
10409
|
}
|
|
10118
10410
|
var passwordsuccessmodal_props = { closeModal: /*closeModal*/ ctx[5] };
|
|
10119
10411
|
if ( /*display*/ctx[0] !== void 0) {
|
|
@@ -10153,13 +10445,13 @@ function create_if_block_5(ctx) {
|
|
|
10153
10445
|
}
|
|
10154
10446
|
};
|
|
10155
10447
|
}
|
|
10156
|
-
// (
|
|
10448
|
+
// (100:41)
|
|
10157
10449
|
function create_if_block_4(ctx) {
|
|
10158
10450
|
var passwordtokenmodal;
|
|
10159
10451
|
var updating_display;
|
|
10160
10452
|
var current;
|
|
10161
10453
|
function passwordtokenmodal_display_binding(value) {
|
|
10162
|
-
/*passwordtokenmodal_display_binding*/ ctx[
|
|
10454
|
+
/*passwordtokenmodal_display_binding*/ ctx[14](value);
|
|
10163
10455
|
}
|
|
10164
10456
|
var passwordtokenmodal_props = {
|
|
10165
10457
|
closeModal: /*closeModal*/ ctx[5],
|
|
@@ -10204,13 +10496,13 @@ function create_if_block_4(ctx) {
|
|
|
10204
10496
|
}
|
|
10205
10497
|
};
|
|
10206
10498
|
}
|
|
10207
|
-
// (
|
|
10499
|
+
// (98:42)
|
|
10208
10500
|
function create_if_block_3(ctx) {
|
|
10209
10501
|
var passwordresetmodal;
|
|
10210
10502
|
var updating_display;
|
|
10211
10503
|
var current;
|
|
10212
10504
|
function passwordresetmodal_display_binding(value) {
|
|
10213
|
-
/*passwordresetmodal_display_binding*/ ctx[
|
|
10505
|
+
/*passwordresetmodal_display_binding*/ ctx[13](value);
|
|
10214
10506
|
}
|
|
10215
10507
|
var passwordresetmodal_props = { closeModal: /*closeModal*/ ctx[5] };
|
|
10216
10508
|
if ( /*display*/ctx[0] !== void 0) {
|
|
@@ -10250,17 +10542,17 @@ function create_if_block_3(ctx) {
|
|
|
10250
10542
|
}
|
|
10251
10543
|
};
|
|
10252
10544
|
}
|
|
10253
|
-
// (
|
|
10545
|
+
// (91:33)
|
|
10254
10546
|
function create_if_block_2(ctx) {
|
|
10255
10547
|
var signupmodal;
|
|
10256
10548
|
var updating_display;
|
|
10257
10549
|
var updating_params;
|
|
10258
10550
|
var current;
|
|
10259
10551
|
function signupmodal_display_binding(value) {
|
|
10260
|
-
/*signupmodal_display_binding*/ ctx[
|
|
10552
|
+
/*signupmodal_display_binding*/ ctx[11](value);
|
|
10261
10553
|
}
|
|
10262
10554
|
function signupmodal_params_binding(value) {
|
|
10263
|
-
/*signupmodal_params_binding*/ ctx[
|
|
10555
|
+
/*signupmodal_params_binding*/ ctx[12](value);
|
|
10264
10556
|
}
|
|
10265
10557
|
var signupmodal_props = {
|
|
10266
10558
|
closeModal: /*closeModal*/ ctx[5],
|
|
@@ -10314,17 +10606,17 @@ function create_if_block_2(ctx) {
|
|
|
10314
10606
|
}
|
|
10315
10607
|
};
|
|
10316
10608
|
}
|
|
10317
|
-
// (
|
|
10609
|
+
// (84:32)
|
|
10318
10610
|
function create_if_block_1(ctx) {
|
|
10319
10611
|
var loginmodal;
|
|
10320
10612
|
var updating_display;
|
|
10321
10613
|
var updating_params;
|
|
10322
10614
|
var current;
|
|
10323
10615
|
function loginmodal_display_binding(value) {
|
|
10324
|
-
/*loginmodal_display_binding*/ ctx[
|
|
10616
|
+
/*loginmodal_display_binding*/ ctx[9](value);
|
|
10325
10617
|
}
|
|
10326
10618
|
function loginmodal_params_binding(value) {
|
|
10327
|
-
/*loginmodal_params_binding*/ ctx[
|
|
10619
|
+
/*loginmodal_params_binding*/ ctx[10](value);
|
|
10328
10620
|
}
|
|
10329
10621
|
var loginmodal_props = {
|
|
10330
10622
|
closeModal: /*closeModal*/ ctx[5],
|
|
@@ -10378,7 +10670,7 @@ function create_if_block_1(ctx) {
|
|
|
10378
10670
|
}
|
|
10379
10671
|
};
|
|
10380
10672
|
}
|
|
10381
|
-
// (
|
|
10673
|
+
// (82:2) {#if showLoader}
|
|
10382
10674
|
function create_if_block(ctx) {
|
|
10383
10675
|
var loader;
|
|
10384
10676
|
var current;
|
|
@@ -10407,13 +10699,13 @@ function create_if_block(ctx) {
|
|
|
10407
10699
|
}
|
|
10408
10700
|
};
|
|
10409
10701
|
}
|
|
10410
|
-
// (
|
|
10702
|
+
// (117:6) {:else}
|
|
10411
10703
|
function create_else_block(ctx) {
|
|
10412
10704
|
var profilemodal;
|
|
10413
10705
|
var updating_display;
|
|
10414
10706
|
var current;
|
|
10415
10707
|
function profilemodal_display_binding(value) {
|
|
10416
|
-
/*profilemodal_display_binding*/ ctx[
|
|
10708
|
+
/*profilemodal_display_binding*/ ctx[17](value);
|
|
10417
10709
|
}
|
|
10418
10710
|
var profilemodal_props = {
|
|
10419
10711
|
closeModal: /*closeModal*/ ctx[5],
|
|
@@ -10461,13 +10753,13 @@ function create_else_block(ctx) {
|
|
|
10461
10753
|
}
|
|
10462
10754
|
};
|
|
10463
10755
|
}
|
|
10464
|
-
// (
|
|
10756
|
+
// (110:6) {#if matches}
|
|
10465
10757
|
function create_if_block_7(ctx) {
|
|
10466
10758
|
var mobileprofilemodal;
|
|
10467
10759
|
var updating_display;
|
|
10468
10760
|
var current;
|
|
10469
10761
|
function mobileprofilemodal_display_binding(value) {
|
|
10470
|
-
/*mobileprofilemodal_display_binding*/ ctx[
|
|
10762
|
+
/*mobileprofilemodal_display_binding*/ ctx[16](value);
|
|
10471
10763
|
}
|
|
10472
10764
|
var mobileprofilemodal_props = {
|
|
10473
10765
|
closeModal: /*closeModal*/ ctx[5],
|
|
@@ -10515,7 +10807,7 @@ function create_if_block_7(ctx) {
|
|
|
10515
10807
|
}
|
|
10516
10808
|
};
|
|
10517
10809
|
}
|
|
10518
|
-
// (
|
|
10810
|
+
// (109:4) <MediaQuery query="(max-width: 520px)" let:matches>
|
|
10519
10811
|
function create_default_slot(ctx) {
|
|
10520
10812
|
var current_block_type_index;
|
|
10521
10813
|
var if_block;
|
|
@@ -10524,7 +10816,7 @@ function create_default_slot(ctx) {
|
|
|
10524
10816
|
var if_block_creators = [create_if_block_7, create_else_block];
|
|
10525
10817
|
var if_blocks = [];
|
|
10526
10818
|
function select_block_type_1(ctx, dirty) {
|
|
10527
|
-
if ( /*matches*/ctx[
|
|
10819
|
+
if ( /*matches*/ctx[22])
|
|
10528
10820
|
return 0;
|
|
10529
10821
|
return 1;
|
|
10530
10822
|
}
|
|
@@ -10586,6 +10878,8 @@ function create_fragment(ctx) {
|
|
|
10586
10878
|
var current_block_type_index;
|
|
10587
10879
|
var if_block;
|
|
10588
10880
|
var current;
|
|
10881
|
+
var mounted;
|
|
10882
|
+
var dispose;
|
|
10589
10883
|
var if_block_creators = [
|
|
10590
10884
|
create_if_block,
|
|
10591
10885
|
create_if_block_1,
|
|
@@ -10622,7 +10916,7 @@ function create_fragment(ctx) {
|
|
|
10622
10916
|
if (if_block)
|
|
10623
10917
|
if_block.c();
|
|
10624
10918
|
attr(main, "id", "msOverlay");
|
|
10625
|
-
attr(main, "class", "svelte-
|
|
10919
|
+
attr(main, "class", "svelte-3agguo");
|
|
10626
10920
|
},
|
|
10627
10921
|
m: function (target, anchor) {
|
|
10628
10922
|
insert(target, main, anchor);
|
|
@@ -10630,6 +10924,10 @@ function create_fragment(ctx) {
|
|
|
10630
10924
|
if_blocks[current_block_type_index].m(main, null);
|
|
10631
10925
|
}
|
|
10632
10926
|
current = true;
|
|
10927
|
+
if (!mounted) {
|
|
10928
|
+
dispose = listen(main, "click", /*closeModalOutside*/ ctx[6]);
|
|
10929
|
+
mounted = true;
|
|
10930
|
+
}
|
|
10633
10931
|
},
|
|
10634
10932
|
p: function (ctx, _a) {
|
|
10635
10933
|
var _b = __read(_a, 1), dirty = _b[0];
|
|
@@ -10681,13 +10979,15 @@ function create_fragment(ctx) {
|
|
|
10681
10979
|
if (~current_block_type_index) {
|
|
10682
10980
|
if_blocks[current_block_type_index].d();
|
|
10683
10981
|
}
|
|
10982
|
+
mounted = false;
|
|
10983
|
+
dispose();
|
|
10684
10984
|
}
|
|
10685
10985
|
};
|
|
10686
10986
|
}
|
|
10687
10987
|
function instance($$self, $$props, $$invalidate) {
|
|
10688
10988
|
var _this = this;
|
|
10689
10989
|
var showLoader;
|
|
10690
|
-
var _a = $$props.display, display = _a === void 0 ? "login" : _a;
|
|
10990
|
+
var _a = $$props.display, display = _a === void 0 ? "login" : _a;
|
|
10691
10991
|
var onSuccess = $$props.onSuccess;
|
|
10692
10992
|
var params = $$props.params;
|
|
10693
10993
|
var appLoading = true;
|
|
@@ -10699,10 +10999,15 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
10699
10999
|
}
|
|
10700
11000
|
function closeModal() {
|
|
10701
11001
|
// hacky way to remove all components prior to removing overlay
|
|
10702
|
-
$$invalidate(
|
|
11002
|
+
$$invalidate(7, appLoading = true);
|
|
10703
11003
|
onSuccess({ type: "CLOSED" });
|
|
10704
11004
|
document.querySelector("#msOverlay").remove();
|
|
10705
11005
|
}
|
|
11006
|
+
function closeModalOutside(e) {
|
|
11007
|
+
if (e.target.id === "msOverlay") {
|
|
11008
|
+
closeModal();
|
|
11009
|
+
}
|
|
11010
|
+
}
|
|
10706
11011
|
var getApp = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
10707
11012
|
var data;
|
|
10708
11013
|
return __generator(this, function (_a) {
|
|
@@ -10730,7 +11035,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
10730
11035
|
_a.sent();
|
|
10731
11036
|
_a.label = 3;
|
|
10732
11037
|
case 3:
|
|
10733
|
-
$$invalidate(
|
|
11038
|
+
$$invalidate(7, appLoading = false);
|
|
10734
11039
|
$$invalidate(4, showLoader = false);
|
|
10735
11040
|
return [2 /*return*/];
|
|
10736
11041
|
}
|
|
@@ -10744,7 +11049,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
10744
11049
|
case 0: return [4 /*yield*/, window.$memberstackDom.getCurrentMember()];
|
|
10745
11050
|
case 1:
|
|
10746
11051
|
data = (_a.sent()).data;
|
|
10747
|
-
$$invalidate(
|
|
11052
|
+
$$invalidate(8, memberLoading = false);
|
|
10748
11053
|
$$invalidate(3, member = data);
|
|
10749
11054
|
if (display === "profile" && !data) {
|
|
10750
11055
|
closeModal();
|
|
@@ -10805,7 +11110,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
10805
11110
|
$$invalidate(1, params = $$props.params);
|
|
10806
11111
|
};
|
|
10807
11112
|
$$self.$$.update = function () {
|
|
10808
|
-
if ($$self.$$.dirty & /*appLoading, memberLoading*/
|
|
11113
|
+
if ($$self.$$.dirty & /*appLoading, memberLoading*/ 384) {
|
|
10809
11114
|
$$invalidate(4, showLoader = appLoading || memberLoading);
|
|
10810
11115
|
}
|
|
10811
11116
|
};
|
|
@@ -10816,6 +11121,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
10816
11121
|
member,
|
|
10817
11122
|
showLoader,
|
|
10818
11123
|
closeModal,
|
|
11124
|
+
closeModalOutside,
|
|
10819
11125
|
appLoading,
|
|
10820
11126
|
memberLoading,
|
|
10821
11127
|
loginmodal_display_binding,
|