@memberstack/dom 1.9.7 → 1.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +196 -2
- package/lib/methods/dom/main-dom.js +477 -124
- package/lib/methods/dom/methods.js +8 -1
- package/lib/methods/index.d.ts +196 -2
- package/lib/methods/requests/index.d.ts +6 -2
- package/lib/methods/requests/index.js +115 -5
- package/lib/methods/requests/requests.js +4 -2
- package/lib/types/params.d.ts +10 -0
- package/lib/types/payloads.d.ts +1 -0
- package/lib/types/utils/payloads.d.ts +12 -2
- package/package.json +2 -1
|
@@ -1487,7 +1487,7 @@ function create_fragment$n(ctx) {
|
|
|
1487
1487
|
current = true;
|
|
1488
1488
|
if (!mounted) {
|
|
1489
1489
|
dispose = [
|
|
1490
|
-
listen(input, "
|
|
1490
|
+
listen(input, "change", /*validateField*/ ctx[2]),
|
|
1491
1491
|
listen(input, "input", /*input_input_handler*/ ctx[4])
|
|
1492
1492
|
];
|
|
1493
1493
|
mounted = true;
|
|
@@ -1716,7 +1716,7 @@ function create_else_block$1(ctx) {
|
|
|
1716
1716
|
};
|
|
1717
1717
|
}
|
|
1718
1718
|
// (55:6) {#if !passwordVisible}
|
|
1719
|
-
function create_if_block_1$
|
|
1719
|
+
function create_if_block_1$5(ctx) {
|
|
1720
1720
|
var eyeicon;
|
|
1721
1721
|
var current;
|
|
1722
1722
|
eyeicon = new EyeIcon({});
|
|
@@ -1803,7 +1803,7 @@ function create_fragment$k(ctx) {
|
|
|
1803
1803
|
var mounted;
|
|
1804
1804
|
var dispose;
|
|
1805
1805
|
var if_block0 = /*showForgotPasswordLabel*/ ctx[2] && create_if_block_2$2(ctx);
|
|
1806
|
-
var if_block_creators = [create_if_block_1$
|
|
1806
|
+
var if_block_creators = [create_if_block_1$5, create_else_block$1];
|
|
1807
1807
|
var if_blocks = [];
|
|
1808
1808
|
function select_block_type(ctx, dirty) {
|
|
1809
1809
|
if (!ctx[5])
|
|
@@ -1867,7 +1867,7 @@ function create_fragment$k(ctx) {
|
|
|
1867
1867
|
if (!mounted) {
|
|
1868
1868
|
dispose = [
|
|
1869
1869
|
listen(input, "input", /*handleInput*/ ctx[9]),
|
|
1870
|
-
listen(input, "
|
|
1870
|
+
listen(input, "change", /*validateField*/ ctx[10]),
|
|
1871
1871
|
listen(div1, "click", /*togglePassword*/ ctx[8])
|
|
1872
1872
|
];
|
|
1873
1873
|
mounted = true;
|
|
@@ -2133,7 +2133,13 @@ var ModalFooter = /** @class */ (function (_super) {
|
|
|
2133
2133
|
return ModalFooter;
|
|
2134
2134
|
}(SvelteComponent));
|
|
2135
2135
|
/* src/modals/LoginModal.svelte generated by Svelte v3.48.0 */
|
|
2136
|
-
function
|
|
2136
|
+
function get_each_context$2(ctx, list, i) {
|
|
2137
|
+
var child_ctx = ctx.slice();
|
|
2138
|
+
child_ctx[15] = list[i];
|
|
2139
|
+
return child_ctx;
|
|
2140
|
+
}
|
|
2141
|
+
// (76:6) {#if params && params.signup && params.signup.plans}
|
|
2142
|
+
function create_if_block_1$4(ctx) {
|
|
2137
2143
|
var div;
|
|
2138
2144
|
var button;
|
|
2139
2145
|
var mounted;
|
|
@@ -2151,7 +2157,7 @@ function create_if_block$6(ctx) {
|
|
|
2151
2157
|
insert(target, div, anchor);
|
|
2152
2158
|
append(div, button);
|
|
2153
2159
|
if (!mounted) {
|
|
2154
|
-
dispose = listen(button, "click", /*click_handler*/ ctx[
|
|
2160
|
+
dispose = listen(button, "click", /*click_handler*/ ctx[13]);
|
|
2155
2161
|
mounted = true;
|
|
2156
2162
|
}
|
|
2157
2163
|
},
|
|
@@ -2164,6 +2170,132 @@ function create_if_block$6(ctx) {
|
|
|
2164
2170
|
}
|
|
2165
2171
|
};
|
|
2166
2172
|
}
|
|
2173
|
+
// (83:4) {#if $app.authProviders.length > 0}
|
|
2174
|
+
function create_if_block$6(ctx) {
|
|
2175
|
+
var div4;
|
|
2176
|
+
var div3;
|
|
2177
|
+
var t3;
|
|
2178
|
+
var each_value = /*$app*/ ctx[6].authProviders;
|
|
2179
|
+
var each_blocks = [];
|
|
2180
|
+
for (var i = 0; i < each_value.length; i += 1) {
|
|
2181
|
+
each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
|
|
2182
|
+
}
|
|
2183
|
+
return {
|
|
2184
|
+
c: function () {
|
|
2185
|
+
div4 = element("div");
|
|
2186
|
+
div3 = element("div");
|
|
2187
|
+
div3.innerHTML = "<div class=\"ms-modal__divider-line\"></div> \n <div class=\"ms-modal__divider-text\">or</div> \n <div class=\"ms-modal__divider-line\"></div>";
|
|
2188
|
+
t3 = space();
|
|
2189
|
+
for (var i = 0; i < each_blocks.length; i += 1) {
|
|
2190
|
+
each_blocks[i].c();
|
|
2191
|
+
}
|
|
2192
|
+
attr(div3, "class", "ms-modal__social-divider");
|
|
2193
|
+
attr(div4, "class", "ms-modal__social");
|
|
2194
|
+
},
|
|
2195
|
+
m: function (target, anchor) {
|
|
2196
|
+
insert(target, div4, anchor);
|
|
2197
|
+
append(div4, div3);
|
|
2198
|
+
append(div4, t3);
|
|
2199
|
+
for (var i = 0; i < each_blocks.length; i += 1) {
|
|
2200
|
+
each_blocks[i].m(div4, null);
|
|
2201
|
+
}
|
|
2202
|
+
},
|
|
2203
|
+
p: function (ctx, dirty) {
|
|
2204
|
+
if (dirty & /*submitLoginWithProvider, $app*/ 320) {
|
|
2205
|
+
each_value = /*$app*/ ctx[6].authProviders;
|
|
2206
|
+
var i = void 0;
|
|
2207
|
+
for (i = 0; i < each_value.length; i += 1) {
|
|
2208
|
+
var child_ctx = get_each_context$2(ctx, each_value, i);
|
|
2209
|
+
if (each_blocks[i]) {
|
|
2210
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
2211
|
+
}
|
|
2212
|
+
else {
|
|
2213
|
+
each_blocks[i] = create_each_block$2(child_ctx);
|
|
2214
|
+
each_blocks[i].c();
|
|
2215
|
+
each_blocks[i].m(div4, null);
|
|
2216
|
+
}
|
|
2217
|
+
}
|
|
2218
|
+
for (; i < each_blocks.length; i += 1) {
|
|
2219
|
+
each_blocks[i].d(1);
|
|
2220
|
+
}
|
|
2221
|
+
each_blocks.length = each_value.length;
|
|
2222
|
+
}
|
|
2223
|
+
},
|
|
2224
|
+
d: function (detaching) {
|
|
2225
|
+
if (detaching)
|
|
2226
|
+
detach(div4);
|
|
2227
|
+
destroy_each(each_blocks, detaching);
|
|
2228
|
+
}
|
|
2229
|
+
};
|
|
2230
|
+
}
|
|
2231
|
+
// (90:8) {#each $app.authProviders as provider}
|
|
2232
|
+
function create_each_block$2(ctx) {
|
|
2233
|
+
var div;
|
|
2234
|
+
var button;
|
|
2235
|
+
var img;
|
|
2236
|
+
var img_src_value;
|
|
2237
|
+
var img_alt_value;
|
|
2238
|
+
var t0;
|
|
2239
|
+
var span;
|
|
2240
|
+
var t1;
|
|
2241
|
+
var t2_value = /*provider*/ ctx[15].name + "";
|
|
2242
|
+
var t2;
|
|
2243
|
+
var t3;
|
|
2244
|
+
var mounted;
|
|
2245
|
+
var dispose;
|
|
2246
|
+
function click_handler_1() {
|
|
2247
|
+
return /*click_handler_1*/ ctx[14](/*provider*/ ctx[15]);
|
|
2248
|
+
}
|
|
2249
|
+
return {
|
|
2250
|
+
c: function () {
|
|
2251
|
+
div = element("div");
|
|
2252
|
+
button = element("button");
|
|
2253
|
+
img = element("img");
|
|
2254
|
+
t0 = space();
|
|
2255
|
+
span = element("span");
|
|
2256
|
+
t1 = text("Continue with ");
|
|
2257
|
+
t2 = text(t2_value);
|
|
2258
|
+
t3 = space();
|
|
2259
|
+
if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[15].icon))
|
|
2260
|
+
attr(img, "src", img_src_value);
|
|
2261
|
+
attr(img, "alt", img_alt_value = /*provider*/ ctx[15].name);
|
|
2262
|
+
attr(button, "class", "ms-modal__social-button");
|
|
2263
|
+
attr(button, "type", "button");
|
|
2264
|
+
attr(div, "class", "ms-modal__social-buttons");
|
|
2265
|
+
},
|
|
2266
|
+
m: function (target, anchor) {
|
|
2267
|
+
insert(target, div, anchor);
|
|
2268
|
+
append(div, button);
|
|
2269
|
+
append(button, img);
|
|
2270
|
+
append(button, t0);
|
|
2271
|
+
append(button, span);
|
|
2272
|
+
append(span, t1);
|
|
2273
|
+
append(span, t2);
|
|
2274
|
+
append(div, t3);
|
|
2275
|
+
if (!mounted) {
|
|
2276
|
+
dispose = listen(button, "click", click_handler_1);
|
|
2277
|
+
mounted = true;
|
|
2278
|
+
}
|
|
2279
|
+
},
|
|
2280
|
+
p: function (new_ctx, dirty) {
|
|
2281
|
+
ctx = new_ctx;
|
|
2282
|
+
if (dirty & /*$app*/ 64 && !src_url_equal(img.src, img_src_value = /*provider*/ ctx[15].icon)) {
|
|
2283
|
+
attr(img, "src", img_src_value);
|
|
2284
|
+
}
|
|
2285
|
+
if (dirty & /*$app*/ 64 && img_alt_value !== (img_alt_value = /*provider*/ ctx[15].name)) {
|
|
2286
|
+
attr(img, "alt", img_alt_value);
|
|
2287
|
+
}
|
|
2288
|
+
if (dirty & /*$app*/ 64 && t2_value !== (t2_value = /*provider*/ ctx[15].name + ""))
|
|
2289
|
+
set_data(t2, t2_value);
|
|
2290
|
+
},
|
|
2291
|
+
d: function (detaching) {
|
|
2292
|
+
if (detaching)
|
|
2293
|
+
detach(div);
|
|
2294
|
+
mounted = false;
|
|
2295
|
+
dispose();
|
|
2296
|
+
}
|
|
2297
|
+
};
|
|
2298
|
+
}
|
|
2167
2299
|
function create_fragment$h(ctx) {
|
|
2168
2300
|
var div1;
|
|
2169
2301
|
var closebutton;
|
|
@@ -2184,6 +2316,7 @@ function create_fragment$h(ctx) {
|
|
|
2184
2316
|
var submitbutton;
|
|
2185
2317
|
var t6;
|
|
2186
2318
|
var t7;
|
|
2319
|
+
var t8;
|
|
2187
2320
|
var modalfooter;
|
|
2188
2321
|
var current;
|
|
2189
2322
|
var mounted;
|
|
@@ -2193,7 +2326,7 @@ function create_fragment$h(ctx) {
|
|
|
2193
2326
|
});
|
|
2194
2327
|
figureelement = new FigureElement({});
|
|
2195
2328
|
function emailinput_emailInputValid_binding(value) {
|
|
2196
|
-
/*emailinput_emailInputValid_binding*/ ctx[
|
|
2329
|
+
/*emailinput_emailInputValid_binding*/ ctx[10](value);
|
|
2197
2330
|
}
|
|
2198
2331
|
var emailinput_props = {};
|
|
2199
2332
|
if ( /*emailInputValid*/ctx[4] !== void 0) {
|
|
@@ -2202,10 +2335,10 @@ function create_fragment$h(ctx) {
|
|
|
2202
2335
|
emailinput = new EmailInput({ props: emailinput_props });
|
|
2203
2336
|
binding_callbacks.push(function () { return bind(emailinput, 'emailInputValid', emailinput_emailInputValid_binding); });
|
|
2204
2337
|
function passwordinput_passwordInputValid_binding(value) {
|
|
2205
|
-
/*passwordinput_passwordInputValid_binding*/ ctx[
|
|
2338
|
+
/*passwordinput_passwordInputValid_binding*/ ctx[11](value);
|
|
2206
2339
|
}
|
|
2207
2340
|
function passwordinput_display_binding(value) {
|
|
2208
|
-
/*passwordinput_display_binding*/ ctx[
|
|
2341
|
+
/*passwordinput_display_binding*/ ctx[12](value);
|
|
2209
2342
|
}
|
|
2210
2343
|
var passwordinput_props = { showForgotPasswordLabel: true };
|
|
2211
2344
|
if ( /*passwordInputValid*/ctx[5] !== void 0) {
|
|
@@ -2223,7 +2356,8 @@ function create_fragment$h(ctx) {
|
|
|
2223
2356
|
isLoading: /*showLoader*/ ctx[3]
|
|
2224
2357
|
}
|
|
2225
2358
|
});
|
|
2226
|
-
var
|
|
2359
|
+
var if_block0 = /*params*/ ctx[2] && /*params*/ ctx[2].signup && /*params*/ ctx[2].signup.plans && create_if_block_1$4(ctx);
|
|
2360
|
+
var if_block1 = /*$app*/ ctx[6].authProviders.length > 0 && create_if_block$6(ctx);
|
|
2227
2361
|
modalfooter = new ModalFooter({});
|
|
2228
2362
|
return {
|
|
2229
2363
|
c: function () {
|
|
@@ -2243,9 +2377,12 @@ function create_fragment$h(ctx) {
|
|
|
2243
2377
|
t5 = space();
|
|
2244
2378
|
create_component(submitbutton.$$.fragment);
|
|
2245
2379
|
t6 = space();
|
|
2246
|
-
if (
|
|
2247
|
-
|
|
2380
|
+
if (if_block0)
|
|
2381
|
+
if_block0.c();
|
|
2248
2382
|
t7 = space();
|
|
2383
|
+
if (if_block1)
|
|
2384
|
+
if_block1.c();
|
|
2385
|
+
t8 = space();
|
|
2249
2386
|
create_component(modalfooter.$$.fragment);
|
|
2250
2387
|
attr(h2, "class", "ms-modal__title");
|
|
2251
2388
|
attr(form, "class", "ms-form");
|
|
@@ -2272,13 +2409,16 @@ function create_fragment$h(ctx) {
|
|
|
2272
2409
|
append(form, t5);
|
|
2273
2410
|
mount_component(submitbutton, form, null);
|
|
2274
2411
|
append(form, t6);
|
|
2275
|
-
if (
|
|
2276
|
-
|
|
2277
|
-
append(
|
|
2412
|
+
if (if_block0)
|
|
2413
|
+
if_block0.m(form, null);
|
|
2414
|
+
append(div0, t7);
|
|
2415
|
+
if (if_block1)
|
|
2416
|
+
if_block1.m(div0, null);
|
|
2417
|
+
append(div1, t8);
|
|
2278
2418
|
mount_component(modalfooter, div1, null);
|
|
2279
2419
|
current = true;
|
|
2280
2420
|
if (!mounted) {
|
|
2281
|
-
dispose = listen(form, "submit", stop_propagation(prevent_default(/*submitLogin*/ ctx[
|
|
2421
|
+
dispose = listen(form, "submit", stop_propagation(prevent_default(/*submitLogin*/ ctx[7])));
|
|
2282
2422
|
mounted = true;
|
|
2283
2423
|
}
|
|
2284
2424
|
},
|
|
@@ -2312,18 +2452,32 @@ function create_fragment$h(ctx) {
|
|
|
2312
2452
|
submitbutton_changes.isLoading = /*showLoader*/ ctx[3];
|
|
2313
2453
|
submitbutton.$set(submitbutton_changes);
|
|
2314
2454
|
if ( /*params*/ctx[2] && /*params*/ ctx[2].signup && /*params*/ ctx[2].signup.plans) {
|
|
2315
|
-
if (
|
|
2316
|
-
|
|
2455
|
+
if (if_block0) {
|
|
2456
|
+
if_block0.p(ctx, dirty);
|
|
2317
2457
|
}
|
|
2318
2458
|
else {
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2459
|
+
if_block0 = create_if_block_1$4(ctx);
|
|
2460
|
+
if_block0.c();
|
|
2461
|
+
if_block0.m(form, null);
|
|
2322
2462
|
}
|
|
2323
2463
|
}
|
|
2324
|
-
else if (
|
|
2325
|
-
|
|
2326
|
-
|
|
2464
|
+
else if (if_block0) {
|
|
2465
|
+
if_block0.d(1);
|
|
2466
|
+
if_block0 = null;
|
|
2467
|
+
}
|
|
2468
|
+
if ( /*$app*/ctx[6].authProviders.length > 0) {
|
|
2469
|
+
if (if_block1) {
|
|
2470
|
+
if_block1.p(ctx, dirty);
|
|
2471
|
+
}
|
|
2472
|
+
else {
|
|
2473
|
+
if_block1 = create_if_block$6(ctx);
|
|
2474
|
+
if_block1.c();
|
|
2475
|
+
if_block1.m(div0, null);
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2478
|
+
else if (if_block1) {
|
|
2479
|
+
if_block1.d(1);
|
|
2480
|
+
if_block1 = null;
|
|
2327
2481
|
}
|
|
2328
2482
|
},
|
|
2329
2483
|
i: function (local) {
|
|
@@ -2354,8 +2508,10 @@ function create_fragment$h(ctx) {
|
|
|
2354
2508
|
destroy_component(emailinput);
|
|
2355
2509
|
destroy_component(passwordinput);
|
|
2356
2510
|
destroy_component(submitbutton);
|
|
2357
|
-
if (
|
|
2358
|
-
|
|
2511
|
+
if (if_block0)
|
|
2512
|
+
if_block0.d();
|
|
2513
|
+
if (if_block1)
|
|
2514
|
+
if_block1.d();
|
|
2359
2515
|
destroy_component(modalfooter);
|
|
2360
2516
|
mounted = false;
|
|
2361
2517
|
dispose();
|
|
@@ -2363,6 +2519,8 @@ function create_fragment$h(ctx) {
|
|
|
2363
2519
|
};
|
|
2364
2520
|
}
|
|
2365
2521
|
function instance$a($$self, $$props, $$invalidate) {
|
|
2522
|
+
var $app;
|
|
2523
|
+
component_subscribe($$self, AppStore, function ($$value) { return $$invalidate(6, $app = $$value); });
|
|
2366
2524
|
var closeModal = $$props.closeModal;
|
|
2367
2525
|
var display = $$props.display;
|
|
2368
2526
|
var onSuccessLogin = $$props.onSuccessLogin;
|
|
@@ -2387,7 +2545,7 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
2387
2545
|
return [4 /*yield*/, window.$memberstackDom.loginMemberEmailPassword({
|
|
2388
2546
|
email: emailInput.value,
|
|
2389
2547
|
password: passwordInput.value
|
|
2390
|
-
})];
|
|
2548
|
+
}, { includeContentGroups: true })];
|
|
2391
2549
|
case 2:
|
|
2392
2550
|
data = (_a.sent()).data;
|
|
2393
2551
|
onSuccessLogin({ type: "LOGIN", data: data });
|
|
@@ -2403,6 +2561,28 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
2403
2561
|
});
|
|
2404
2562
|
});
|
|
2405
2563
|
}
|
|
2564
|
+
function submitLoginWithProvider(provider) {
|
|
2565
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2566
|
+
var data, err_2;
|
|
2567
|
+
return __generator(this, function (_a) {
|
|
2568
|
+
switch (_a.label) {
|
|
2569
|
+
case 0:
|
|
2570
|
+
_a.trys.push([0, 2, , 3]);
|
|
2571
|
+
return [4 /*yield*/, window.$memberstackDom.loginWithProvider({ provider: provider })];
|
|
2572
|
+
case 1:
|
|
2573
|
+
data = (_a.sent()).data;
|
|
2574
|
+
onSuccessLogin({ type: "LOGIN", data: data });
|
|
2575
|
+
return [3 /*break*/, 3];
|
|
2576
|
+
case 2:
|
|
2577
|
+
err_2 = _a.sent();
|
|
2578
|
+
$$invalidate(3, showLoader = false);
|
|
2579
|
+
window.$memberstackDom._showMessage(err_2.message, true);
|
|
2580
|
+
return [3 /*break*/, 3];
|
|
2581
|
+
case 3: return [2 /*return*/];
|
|
2582
|
+
}
|
|
2583
|
+
});
|
|
2584
|
+
});
|
|
2585
|
+
}
|
|
2406
2586
|
function emailinput_emailInputValid_binding(value) {
|
|
2407
2587
|
emailInputValid = value;
|
|
2408
2588
|
$$invalidate(4, emailInputValid);
|
|
@@ -2416,13 +2596,14 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
2416
2596
|
$$invalidate(0, display);
|
|
2417
2597
|
}
|
|
2418
2598
|
var click_handler = function () { return $$invalidate(0, display = "signup"); };
|
|
2599
|
+
var click_handler_1 = function (provider) { return submitLoginWithProvider(provider.provider); };
|
|
2419
2600
|
$$self.$$set = function ($$props) {
|
|
2420
2601
|
if ('closeModal' in $$props)
|
|
2421
2602
|
$$invalidate(1, closeModal = $$props.closeModal);
|
|
2422
2603
|
if ('display' in $$props)
|
|
2423
2604
|
$$invalidate(0, display = $$props.display);
|
|
2424
2605
|
if ('onSuccessLogin' in $$props)
|
|
2425
|
-
$$invalidate(
|
|
2606
|
+
$$invalidate(9, onSuccessLogin = $$props.onSuccessLogin);
|
|
2426
2607
|
if ('params' in $$props)
|
|
2427
2608
|
$$invalidate(2, params = $$props.params);
|
|
2428
2609
|
};
|
|
@@ -2433,12 +2614,15 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
2433
2614
|
showLoader,
|
|
2434
2615
|
emailInputValid,
|
|
2435
2616
|
passwordInputValid,
|
|
2617
|
+
$app,
|
|
2436
2618
|
submitLogin,
|
|
2619
|
+
submitLoginWithProvider,
|
|
2437
2620
|
onSuccessLogin,
|
|
2438
2621
|
emailinput_emailInputValid_binding,
|
|
2439
2622
|
passwordinput_passwordInputValid_binding,
|
|
2440
2623
|
passwordinput_display_binding,
|
|
2441
|
-
click_handler
|
|
2624
|
+
click_handler,
|
|
2625
|
+
click_handler_1
|
|
2442
2626
|
];
|
|
2443
2627
|
}
|
|
2444
2628
|
var LoginModal = /** @class */ (function (_super) {
|
|
@@ -2448,7 +2632,7 @@ var LoginModal = /** @class */ (function (_super) {
|
|
|
2448
2632
|
init(_this, options, instance$a, create_fragment$h, safe_not_equal, {
|
|
2449
2633
|
closeModal: 1,
|
|
2450
2634
|
display: 0,
|
|
2451
|
-
onSuccessLogin:
|
|
2635
|
+
onSuccessLogin: 9,
|
|
2452
2636
|
params: 2
|
|
2453
2637
|
});
|
|
2454
2638
|
return _this;
|
|
@@ -2458,16 +2642,21 @@ var LoginModal = /** @class */ (function (_super) {
|
|
|
2458
2642
|
/* src/modals/SignupModal.svelte generated by Svelte v3.48.0 */
|
|
2459
2643
|
function get_each_context$1(ctx, list, i) {
|
|
2460
2644
|
var child_ctx = ctx.slice();
|
|
2461
|
-
child_ctx[
|
|
2462
|
-
child_ctx[14] = i;
|
|
2645
|
+
child_ctx[14] = list[i];
|
|
2463
2646
|
return child_ctx;
|
|
2464
2647
|
}
|
|
2465
|
-
|
|
2466
|
-
|
|
2648
|
+
function get_each_context_1(ctx, list, i) {
|
|
2649
|
+
var child_ctx = ctx.slice();
|
|
2650
|
+
child_ctx[17] = list[i];
|
|
2651
|
+
child_ctx[19] = i;
|
|
2652
|
+
return child_ctx;
|
|
2653
|
+
}
|
|
2654
|
+
// (93:6) {#if customField.hidden !== true}
|
|
2655
|
+
function create_if_block_1$3(ctx) {
|
|
2467
2656
|
var div1;
|
|
2468
2657
|
var div0;
|
|
2469
2658
|
var label;
|
|
2470
|
-
var t0_value = /*customField*/ ctx[
|
|
2659
|
+
var t0_value = /*customField*/ ctx[17].label + "";
|
|
2471
2660
|
var t0;
|
|
2472
2661
|
var label_for_value;
|
|
2473
2662
|
var t1;
|
|
@@ -2483,12 +2672,12 @@ function create_if_block$5(ctx) {
|
|
|
2483
2672
|
t1 = space();
|
|
2484
2673
|
input = element("input");
|
|
2485
2674
|
attr(label, "class", "ms-form__label");
|
|
2486
|
-
attr(label, "for", label_for_value = /*customField*/ ctx[
|
|
2675
|
+
attr(label, "for", label_for_value = /*customField*/ ctx[17].key);
|
|
2487
2676
|
attr(input, "class", "ms-form__input");
|
|
2488
2677
|
attr(input, "data-ms-custom-field", "");
|
|
2489
2678
|
attr(input, "type", "text");
|
|
2490
|
-
attr(input, "placeholder", input_placeholder_value = /*customField*/ ctx[
|
|
2491
|
-
attr(input, "name", input_name_value = /*customField*/ ctx[
|
|
2679
|
+
attr(input, "placeholder", input_placeholder_value = /*customField*/ ctx[17].label);
|
|
2680
|
+
attr(input, "name", input_name_value = /*customField*/ ctx[17].key);
|
|
2492
2681
|
attr(div0, "class", "ms-form__group");
|
|
2493
2682
|
attr(div1, "class", "ms-modal__custom-field-container");
|
|
2494
2683
|
},
|
|
@@ -2501,15 +2690,15 @@ function create_if_block$5(ctx) {
|
|
|
2501
2690
|
append(div0, input);
|
|
2502
2691
|
},
|
|
2503
2692
|
p: function (ctx, dirty) {
|
|
2504
|
-
if (dirty & /*$app*/ 32 && t0_value !== (t0_value = /*customField*/ ctx[
|
|
2693
|
+
if (dirty & /*$app*/ 32 && t0_value !== (t0_value = /*customField*/ ctx[17].label + ""))
|
|
2505
2694
|
set_data(t0, t0_value);
|
|
2506
|
-
if (dirty & /*$app*/ 32 && label_for_value !== (label_for_value = /*customField*/ ctx[
|
|
2695
|
+
if (dirty & /*$app*/ 32 && label_for_value !== (label_for_value = /*customField*/ ctx[17].key)) {
|
|
2507
2696
|
attr(label, "for", label_for_value);
|
|
2508
2697
|
}
|
|
2509
|
-
if (dirty & /*$app*/ 32 && input_placeholder_value !== (input_placeholder_value = /*customField*/ ctx[
|
|
2698
|
+
if (dirty & /*$app*/ 32 && input_placeholder_value !== (input_placeholder_value = /*customField*/ ctx[17].label)) {
|
|
2510
2699
|
attr(input, "placeholder", input_placeholder_value);
|
|
2511
2700
|
}
|
|
2512
|
-
if (dirty & /*$app*/ 32 && input_name_value !== (input_name_value = /*customField*/ ctx[
|
|
2701
|
+
if (dirty & /*$app*/ 32 && input_name_value !== (input_name_value = /*customField*/ ctx[17].key)) {
|
|
2513
2702
|
attr(input, "name", input_name_value);
|
|
2514
2703
|
}
|
|
2515
2704
|
},
|
|
@@ -2519,10 +2708,10 @@ function create_if_block$5(ctx) {
|
|
|
2519
2708
|
}
|
|
2520
2709
|
};
|
|
2521
2710
|
}
|
|
2522
|
-
// (
|
|
2523
|
-
function
|
|
2711
|
+
// (92:6) {#each $app.customFields as customField, i}
|
|
2712
|
+
function create_each_block_1(ctx) {
|
|
2524
2713
|
var if_block_anchor;
|
|
2525
|
-
var if_block = /*customField*/ ctx[
|
|
2714
|
+
var if_block = /*customField*/ ctx[17].hidden !== true && create_if_block_1$3(ctx);
|
|
2526
2715
|
return {
|
|
2527
2716
|
c: function () {
|
|
2528
2717
|
if (if_block)
|
|
@@ -2535,12 +2724,12 @@ function create_each_block$1(ctx) {
|
|
|
2535
2724
|
insert(target, if_block_anchor, anchor);
|
|
2536
2725
|
},
|
|
2537
2726
|
p: function (ctx, dirty) {
|
|
2538
|
-
if ( /*customField*/ctx[
|
|
2727
|
+
if ( /*customField*/ctx[17].hidden !== true) {
|
|
2539
2728
|
if (if_block) {
|
|
2540
2729
|
if_block.p(ctx, dirty);
|
|
2541
2730
|
}
|
|
2542
2731
|
else {
|
|
2543
|
-
if_block =
|
|
2732
|
+
if_block = create_if_block_1$3(ctx);
|
|
2544
2733
|
if_block.c();
|
|
2545
2734
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
2546
2735
|
}
|
|
@@ -2558,6 +2747,132 @@ function create_each_block$1(ctx) {
|
|
|
2558
2747
|
}
|
|
2559
2748
|
};
|
|
2560
2749
|
}
|
|
2750
|
+
// (113:4) {#if $app.authProviders.length > 0}
|
|
2751
|
+
function create_if_block$5(ctx) {
|
|
2752
|
+
var div4;
|
|
2753
|
+
var div3;
|
|
2754
|
+
var t3;
|
|
2755
|
+
var each_value = /*$app*/ ctx[5].authProviders;
|
|
2756
|
+
var each_blocks = [];
|
|
2757
|
+
for (var i = 0; i < each_value.length; i += 1) {
|
|
2758
|
+
each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
|
|
2759
|
+
}
|
|
2760
|
+
return {
|
|
2761
|
+
c: function () {
|
|
2762
|
+
div4 = element("div");
|
|
2763
|
+
div3 = element("div");
|
|
2764
|
+
div3.innerHTML = "<div class=\"ms-modal__divider-line\"></div> \n <div class=\"ms-modal__divider-text\">or</div> \n <div class=\"ms-modal__divider-line\"></div>";
|
|
2765
|
+
t3 = space();
|
|
2766
|
+
for (var i = 0; i < each_blocks.length; i += 1) {
|
|
2767
|
+
each_blocks[i].c();
|
|
2768
|
+
}
|
|
2769
|
+
attr(div3, "class", "ms-modal__social-divider");
|
|
2770
|
+
attr(div4, "class", "ms-modal__social");
|
|
2771
|
+
},
|
|
2772
|
+
m: function (target, anchor) {
|
|
2773
|
+
insert(target, div4, anchor);
|
|
2774
|
+
append(div4, div3);
|
|
2775
|
+
append(div4, t3);
|
|
2776
|
+
for (var i = 0; i < each_blocks.length; i += 1) {
|
|
2777
|
+
each_blocks[i].m(div4, null);
|
|
2778
|
+
}
|
|
2779
|
+
},
|
|
2780
|
+
p: function (ctx, dirty) {
|
|
2781
|
+
if (dirty & /*submitSignupWithProvider, $app*/ 160) {
|
|
2782
|
+
each_value = /*$app*/ ctx[5].authProviders;
|
|
2783
|
+
var i = void 0;
|
|
2784
|
+
for (i = 0; i < each_value.length; i += 1) {
|
|
2785
|
+
var child_ctx = get_each_context$1(ctx, each_value, i);
|
|
2786
|
+
if (each_blocks[i]) {
|
|
2787
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
2788
|
+
}
|
|
2789
|
+
else {
|
|
2790
|
+
each_blocks[i] = create_each_block$1(child_ctx);
|
|
2791
|
+
each_blocks[i].c();
|
|
2792
|
+
each_blocks[i].m(div4, null);
|
|
2793
|
+
}
|
|
2794
|
+
}
|
|
2795
|
+
for (; i < each_blocks.length; i += 1) {
|
|
2796
|
+
each_blocks[i].d(1);
|
|
2797
|
+
}
|
|
2798
|
+
each_blocks.length = each_value.length;
|
|
2799
|
+
}
|
|
2800
|
+
},
|
|
2801
|
+
d: function (detaching) {
|
|
2802
|
+
if (detaching)
|
|
2803
|
+
detach(div4);
|
|
2804
|
+
destroy_each(each_blocks, detaching);
|
|
2805
|
+
}
|
|
2806
|
+
};
|
|
2807
|
+
}
|
|
2808
|
+
// (120:8) {#each $app.authProviders as provider}
|
|
2809
|
+
function create_each_block$1(ctx) {
|
|
2810
|
+
var div;
|
|
2811
|
+
var button;
|
|
2812
|
+
var img;
|
|
2813
|
+
var img_src_value;
|
|
2814
|
+
var img_alt_value;
|
|
2815
|
+
var t0;
|
|
2816
|
+
var span;
|
|
2817
|
+
var t1;
|
|
2818
|
+
var t2_value = /*provider*/ ctx[14].name + "";
|
|
2819
|
+
var t2;
|
|
2820
|
+
var t3;
|
|
2821
|
+
var mounted;
|
|
2822
|
+
var dispose;
|
|
2823
|
+
function click_handler_1() {
|
|
2824
|
+
return /*click_handler_1*/ ctx[13](/*provider*/ ctx[14]);
|
|
2825
|
+
}
|
|
2826
|
+
return {
|
|
2827
|
+
c: function () {
|
|
2828
|
+
div = element("div");
|
|
2829
|
+
button = element("button");
|
|
2830
|
+
img = element("img");
|
|
2831
|
+
t0 = space();
|
|
2832
|
+
span = element("span");
|
|
2833
|
+
t1 = text("Continue with ");
|
|
2834
|
+
t2 = text(t2_value);
|
|
2835
|
+
t3 = space();
|
|
2836
|
+
if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[14].icon))
|
|
2837
|
+
attr(img, "src", img_src_value);
|
|
2838
|
+
attr(img, "alt", img_alt_value = /*provider*/ ctx[14].name);
|
|
2839
|
+
attr(button, "class", "ms-modal__social-button");
|
|
2840
|
+
attr(button, "type", "button");
|
|
2841
|
+
attr(div, "class", "ms-modal__social-buttons");
|
|
2842
|
+
},
|
|
2843
|
+
m: function (target, anchor) {
|
|
2844
|
+
insert(target, div, anchor);
|
|
2845
|
+
append(div, button);
|
|
2846
|
+
append(button, img);
|
|
2847
|
+
append(button, t0);
|
|
2848
|
+
append(button, span);
|
|
2849
|
+
append(span, t1);
|
|
2850
|
+
append(span, t2);
|
|
2851
|
+
append(div, t3);
|
|
2852
|
+
if (!mounted) {
|
|
2853
|
+
dispose = listen(button, "click", click_handler_1);
|
|
2854
|
+
mounted = true;
|
|
2855
|
+
}
|
|
2856
|
+
},
|
|
2857
|
+
p: function (new_ctx, dirty) {
|
|
2858
|
+
ctx = new_ctx;
|
|
2859
|
+
if (dirty & /*$app*/ 32 && !src_url_equal(img.src, img_src_value = /*provider*/ ctx[14].icon)) {
|
|
2860
|
+
attr(img, "src", img_src_value);
|
|
2861
|
+
}
|
|
2862
|
+
if (dirty & /*$app*/ 32 && img_alt_value !== (img_alt_value = /*provider*/ ctx[14].name)) {
|
|
2863
|
+
attr(img, "alt", img_alt_value);
|
|
2864
|
+
}
|
|
2865
|
+
if (dirty & /*$app*/ 32 && t2_value !== (t2_value = /*provider*/ ctx[14].name + ""))
|
|
2866
|
+
set_data(t2, t2_value);
|
|
2867
|
+
},
|
|
2868
|
+
d: function (detaching) {
|
|
2869
|
+
if (detaching)
|
|
2870
|
+
detach(div);
|
|
2871
|
+
mounted = false;
|
|
2872
|
+
dispose();
|
|
2873
|
+
}
|
|
2874
|
+
};
|
|
2875
|
+
}
|
|
2561
2876
|
function create_fragment$g(ctx) {
|
|
2562
2877
|
var div2;
|
|
2563
2878
|
var closebutton;
|
|
@@ -2580,6 +2895,7 @@ function create_fragment$g(ctx) {
|
|
|
2580
2895
|
var div0;
|
|
2581
2896
|
var button;
|
|
2582
2897
|
var t9;
|
|
2898
|
+
var t10;
|
|
2583
2899
|
var modalfooter;
|
|
2584
2900
|
var current;
|
|
2585
2901
|
var mounted;
|
|
@@ -2588,13 +2904,13 @@ function create_fragment$g(ctx) {
|
|
|
2588
2904
|
props: { closeModal: /*closeModal*/ ctx[1] }
|
|
2589
2905
|
});
|
|
2590
2906
|
figureelement = new FigureElement({});
|
|
2591
|
-
var
|
|
2907
|
+
var each_value_1 = /*$app*/ ctx[5].customFields;
|
|
2592
2908
|
var each_blocks = [];
|
|
2593
|
-
for (var i = 0; i <
|
|
2594
|
-
each_blocks[i] =
|
|
2909
|
+
for (var i = 0; i < each_value_1.length; i += 1) {
|
|
2910
|
+
each_blocks[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
|
|
2595
2911
|
}
|
|
2596
2912
|
function emailinput_emailInputValid_binding(value) {
|
|
2597
|
-
/*emailinput_emailInputValid_binding*/ ctx[
|
|
2913
|
+
/*emailinput_emailInputValid_binding*/ ctx[10](value);
|
|
2598
2914
|
}
|
|
2599
2915
|
var emailinput_props = {};
|
|
2600
2916
|
if ( /*emailInputValid*/ctx[3] !== void 0) {
|
|
@@ -2603,7 +2919,7 @@ function create_fragment$g(ctx) {
|
|
|
2603
2919
|
emailinput = new EmailInput({ props: emailinput_props });
|
|
2604
2920
|
binding_callbacks.push(function () { return bind(emailinput, 'emailInputValid', emailinput_emailInputValid_binding); });
|
|
2605
2921
|
function passwordinput_passwordInputValid_binding(value) {
|
|
2606
|
-
/*passwordinput_passwordInputValid_binding*/ ctx[
|
|
2922
|
+
/*passwordinput_passwordInputValid_binding*/ ctx[11](value);
|
|
2607
2923
|
}
|
|
2608
2924
|
var passwordinput_props = {};
|
|
2609
2925
|
if ( /*passwordInputValid*/ctx[4] !== void 0) {
|
|
@@ -2617,6 +2933,7 @@ function create_fragment$g(ctx) {
|
|
|
2617
2933
|
isLoading: /*showLoader*/ ctx[2]
|
|
2618
2934
|
}
|
|
2619
2935
|
});
|
|
2936
|
+
var if_block = /*$app*/ ctx[5].authProviders.length > 0 && create_if_block$5(ctx);
|
|
2620
2937
|
modalfooter = new ModalFooter({});
|
|
2621
2938
|
return {
|
|
2622
2939
|
c: function () {
|
|
@@ -2644,9 +2961,12 @@ function create_fragment$g(ctx) {
|
|
|
2644
2961
|
button = element("button");
|
|
2645
2962
|
button.textContent = "Already have an account?";
|
|
2646
2963
|
t9 = space();
|
|
2964
|
+
if (if_block)
|
|
2965
|
+
if_block.c();
|
|
2966
|
+
t10 = space();
|
|
2647
2967
|
create_component(modalfooter.$$.fragment);
|
|
2648
2968
|
attr(h2, "class", "ms-modal__title");
|
|
2649
|
-
attr(button, "class", "ms-form__button ms-form__button--text");
|
|
2969
|
+
attr(button, "class", "ms-form__button ms-form__button--text ms-form__button--top-spacing");
|
|
2650
2970
|
attr(div0, "class", "ms-form__flex ms-form__flex--centered");
|
|
2651
2971
|
attr(form, "class", "ms-form");
|
|
2652
2972
|
attr(form, "action", "");
|
|
@@ -2678,12 +2998,15 @@ function create_fragment$g(ctx) {
|
|
|
2678
2998
|
append(form, t7);
|
|
2679
2999
|
append(form, div0);
|
|
2680
3000
|
append(div0, button);
|
|
2681
|
-
append(
|
|
3001
|
+
append(div1, t9);
|
|
3002
|
+
if (if_block)
|
|
3003
|
+
if_block.m(div1, null);
|
|
3004
|
+
append(div2, t10);
|
|
2682
3005
|
mount_component(modalfooter, div2, null);
|
|
2683
3006
|
current = true;
|
|
2684
3007
|
if (!mounted) {
|
|
2685
3008
|
dispose = [
|
|
2686
|
-
listen(button, "click", /*click_handler*/ ctx[
|
|
3009
|
+
listen(button, "click", /*click_handler*/ ctx[12]),
|
|
2687
3010
|
listen(form, "submit", stop_propagation(prevent_default(/*submitSignup*/ ctx[6])))
|
|
2688
3011
|
];
|
|
2689
3012
|
mounted = true;
|
|
@@ -2696,15 +3019,15 @@ function create_fragment$g(ctx) {
|
|
|
2696
3019
|
closebutton_changes.closeModal = /*closeModal*/ ctx[1];
|
|
2697
3020
|
closebutton.$set(closebutton_changes);
|
|
2698
3021
|
if (dirty & /*$app*/ 32) {
|
|
2699
|
-
|
|
3022
|
+
each_value_1 = /*$app*/ ctx[5].customFields;
|
|
2700
3023
|
var i = void 0;
|
|
2701
|
-
for (i = 0; i <
|
|
2702
|
-
var child_ctx =
|
|
3024
|
+
for (i = 0; i < each_value_1.length; i += 1) {
|
|
3025
|
+
var child_ctx = get_each_context_1(ctx, each_value_1, i);
|
|
2703
3026
|
if (each_blocks[i]) {
|
|
2704
3027
|
each_blocks[i].p(child_ctx, dirty);
|
|
2705
3028
|
}
|
|
2706
3029
|
else {
|
|
2707
|
-
each_blocks[i] =
|
|
3030
|
+
each_blocks[i] = create_each_block_1(child_ctx);
|
|
2708
3031
|
each_blocks[i].c();
|
|
2709
3032
|
each_blocks[i].m(form, t4);
|
|
2710
3033
|
}
|
|
@@ -2712,7 +3035,7 @@ function create_fragment$g(ctx) {
|
|
|
2712
3035
|
for (; i < each_blocks.length; i += 1) {
|
|
2713
3036
|
each_blocks[i].d(1);
|
|
2714
3037
|
}
|
|
2715
|
-
each_blocks.length =
|
|
3038
|
+
each_blocks.length = each_value_1.length;
|
|
2716
3039
|
}
|
|
2717
3040
|
var emailinput_changes = {};
|
|
2718
3041
|
if (!updating_emailInputValid && dirty & /*emailInputValid*/ 8) {
|
|
@@ -2732,6 +3055,20 @@ function create_fragment$g(ctx) {
|
|
|
2732
3055
|
if (dirty & /*showLoader*/ 4)
|
|
2733
3056
|
submitbutton_changes.isLoading = /*showLoader*/ ctx[2];
|
|
2734
3057
|
submitbutton.$set(submitbutton_changes);
|
|
3058
|
+
if ( /*$app*/ctx[5].authProviders.length > 0) {
|
|
3059
|
+
if (if_block) {
|
|
3060
|
+
if_block.p(ctx, dirty);
|
|
3061
|
+
}
|
|
3062
|
+
else {
|
|
3063
|
+
if_block = create_if_block$5(ctx);
|
|
3064
|
+
if_block.c();
|
|
3065
|
+
if_block.m(div1, null);
|
|
3066
|
+
}
|
|
3067
|
+
}
|
|
3068
|
+
else if (if_block) {
|
|
3069
|
+
if_block.d(1);
|
|
3070
|
+
if_block = null;
|
|
3071
|
+
}
|
|
2735
3072
|
},
|
|
2736
3073
|
i: function (local) {
|
|
2737
3074
|
if (current)
|
|
@@ -2762,6 +3099,8 @@ function create_fragment$g(ctx) {
|
|
|
2762
3099
|
destroy_component(emailinput);
|
|
2763
3100
|
destroy_component(passwordinput);
|
|
2764
3101
|
destroy_component(submitbutton);
|
|
3102
|
+
if (if_block)
|
|
3103
|
+
if_block.d();
|
|
2765
3104
|
destroy_component(modalfooter);
|
|
2766
3105
|
mounted = false;
|
|
2767
3106
|
run_all(dispose);
|
|
@@ -2781,7 +3120,7 @@ function instance$9($$self, $$props, $$invalidate) {
|
|
|
2781
3120
|
function submitSignup(e) {
|
|
2782
3121
|
var _a;
|
|
2783
3122
|
return __awaiter(this, void 0, void 0, function () {
|
|
2784
|
-
var emailInput, passwordInput, customFields, customFieldInputs, plans, data,
|
|
3123
|
+
var emailInput, passwordInput, customFields, customFieldInputs, plans, data, err_3;
|
|
2785
3124
|
return __generator(this, function (_b) {
|
|
2786
3125
|
switch (_b.label) {
|
|
2787
3126
|
case 0:
|
|
@@ -2806,22 +3145,44 @@ function instance$9($$self, $$props, $$invalidate) {
|
|
|
2806
3145
|
password: passwordInput.value,
|
|
2807
3146
|
plans: plans,
|
|
2808
3147
|
customFields: customFields
|
|
2809
|
-
})];
|
|
3148
|
+
}, { includeContentGroups: true })];
|
|
2810
3149
|
case 2:
|
|
2811
3150
|
data = (_b.sent()).data;
|
|
2812
3151
|
onSuccessSignup({ type: "SIGNUP", data: data });
|
|
2813
3152
|
$$invalidate(2, showLoader = false);
|
|
2814
3153
|
return [3 /*break*/, 4];
|
|
2815
3154
|
case 3:
|
|
2816
|
-
|
|
3155
|
+
err_3 = _b.sent();
|
|
2817
3156
|
$$invalidate(2, showLoader = false);
|
|
2818
|
-
window.$memberstackDom._showMessage(
|
|
3157
|
+
window.$memberstackDom._showMessage(err_3.message, true);
|
|
2819
3158
|
return [3 /*break*/, 4];
|
|
2820
3159
|
case 4: return [2 /*return*/];
|
|
2821
3160
|
}
|
|
2822
3161
|
});
|
|
2823
3162
|
});
|
|
2824
3163
|
}
|
|
3164
|
+
function submitSignupWithProvider(provider) {
|
|
3165
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3166
|
+
var data, err_4;
|
|
3167
|
+
return __generator(this, function (_a) {
|
|
3168
|
+
switch (_a.label) {
|
|
3169
|
+
case 0:
|
|
3170
|
+
_a.trys.push([0, 2, , 3]);
|
|
3171
|
+
return [4 /*yield*/, window.$memberstackDom.signupWithProvider({ provider: provider })];
|
|
3172
|
+
case 1:
|
|
3173
|
+
data = (_a.sent()).data;
|
|
3174
|
+
onSuccessSignup({ type: "SIGNUP", data: data });
|
|
3175
|
+
return [3 /*break*/, 3];
|
|
3176
|
+
case 2:
|
|
3177
|
+
err_4 = _a.sent();
|
|
3178
|
+
$$invalidate(2, showLoader = false);
|
|
3179
|
+
window.$memberstackDom._showMessage(err_4.message, true);
|
|
3180
|
+
return [3 /*break*/, 3];
|
|
3181
|
+
case 3: return [2 /*return*/];
|
|
3182
|
+
}
|
|
3183
|
+
});
|
|
3184
|
+
});
|
|
3185
|
+
}
|
|
2825
3186
|
function emailinput_emailInputValid_binding(value) {
|
|
2826
3187
|
emailInputValid = value;
|
|
2827
3188
|
$$invalidate(3, emailInputValid);
|
|
@@ -2831,15 +3192,16 @@ function instance$9($$self, $$props, $$invalidate) {
|
|
|
2831
3192
|
$$invalidate(4, passwordInputValid);
|
|
2832
3193
|
}
|
|
2833
3194
|
var click_handler = function () { return $$invalidate(0, display = "login"); };
|
|
3195
|
+
var click_handler_1 = function (provider) { return submitSignupWithProvider(provider.provider); };
|
|
2834
3196
|
$$self.$$set = function ($$props) {
|
|
2835
3197
|
if ('closeModal' in $$props)
|
|
2836
3198
|
$$invalidate(1, closeModal = $$props.closeModal);
|
|
2837
3199
|
if ('display' in $$props)
|
|
2838
3200
|
$$invalidate(0, display = $$props.display);
|
|
2839
3201
|
if ('onSuccessSignup' in $$props)
|
|
2840
|
-
$$invalidate(
|
|
3202
|
+
$$invalidate(8, onSuccessSignup = $$props.onSuccessSignup);
|
|
2841
3203
|
if ('params' in $$props)
|
|
2842
|
-
$$invalidate(
|
|
3204
|
+
$$invalidate(9, params = $$props.params);
|
|
2843
3205
|
};
|
|
2844
3206
|
return [
|
|
2845
3207
|
display,
|
|
@@ -2849,11 +3211,13 @@ function instance$9($$self, $$props, $$invalidate) {
|
|
|
2849
3211
|
passwordInputValid,
|
|
2850
3212
|
$app,
|
|
2851
3213
|
submitSignup,
|
|
3214
|
+
submitSignupWithProvider,
|
|
2852
3215
|
onSuccessSignup,
|
|
2853
3216
|
params,
|
|
2854
3217
|
emailinput_emailInputValid_binding,
|
|
2855
3218
|
passwordinput_passwordInputValid_binding,
|
|
2856
|
-
click_handler
|
|
3219
|
+
click_handler,
|
|
3220
|
+
click_handler_1
|
|
2857
3221
|
];
|
|
2858
3222
|
}
|
|
2859
3223
|
var SignupModal = /** @class */ (function (_super) {
|
|
@@ -2863,8 +3227,8 @@ var SignupModal = /** @class */ (function (_super) {
|
|
|
2863
3227
|
init(_this, options, instance$9, create_fragment$g, safe_not_equal, {
|
|
2864
3228
|
closeModal: 1,
|
|
2865
3229
|
display: 0,
|
|
2866
|
-
onSuccessSignup:
|
|
2867
|
-
params:
|
|
3230
|
+
onSuccessSignup: 8,
|
|
3231
|
+
params: 9
|
|
2868
3232
|
});
|
|
2869
3233
|
return _this;
|
|
2870
3234
|
}
|
|
@@ -3086,7 +3450,7 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
3086
3450
|
var showLoader = false;
|
|
3087
3451
|
function submitPasswordReset(e) {
|
|
3088
3452
|
return __awaiter(this, void 0, void 0, function () {
|
|
3089
|
-
var emailInput,
|
|
3453
|
+
var emailInput, err_5;
|
|
3090
3454
|
return __generator(this, function (_a) {
|
|
3091
3455
|
switch (_a.label) {
|
|
3092
3456
|
case 0:
|
|
@@ -3103,11 +3467,11 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
3103
3467
|
$$invalidate(0, display = "reset_password");
|
|
3104
3468
|
return [3 /*break*/, 4];
|
|
3105
3469
|
case 3:
|
|
3106
|
-
|
|
3107
|
-
console.log(
|
|
3470
|
+
err_5 = _a.sent();
|
|
3471
|
+
console.log(err_5);
|
|
3108
3472
|
$$invalidate(3, showLoader = false);
|
|
3109
|
-
if (
|
|
3110
|
-
window.$memberstackDom._showMessage(
|
|
3473
|
+
if (err_5.message) {
|
|
3474
|
+
window.$memberstackDom._showMessage(err_5.message, false);
|
|
3111
3475
|
}
|
|
3112
3476
|
return [3 /*break*/, 4];
|
|
3113
3477
|
case 4: return [2 /*return*/];
|
|
@@ -3444,7 +3808,7 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
3444
3808
|
};
|
|
3445
3809
|
function submitPasswordToken(e) {
|
|
3446
3810
|
return __awaiter(this, void 0, void 0, function () {
|
|
3447
|
-
var passwordInput, isValid, token, data,
|
|
3811
|
+
var passwordInput, isValid, token, data, err_6;
|
|
3448
3812
|
return __generator(this, function (_a) {
|
|
3449
3813
|
switch (_a.label) {
|
|
3450
3814
|
case 0:
|
|
@@ -3472,11 +3836,11 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
3472
3836
|
$$invalidate(0, display = "reset_password_success");
|
|
3473
3837
|
return [3 /*break*/, 4];
|
|
3474
3838
|
case 3:
|
|
3475
|
-
|
|
3476
|
-
console.log(
|
|
3839
|
+
err_6 = _a.sent();
|
|
3840
|
+
console.log(err_6);
|
|
3477
3841
|
//
|
|
3478
|
-
if (
|
|
3479
|
-
window.$memberstackDom._showMessage(
|
|
3842
|
+
if (err_6.message) {
|
|
3843
|
+
window.$memberstackDom._showMessage(err_6.message, true);
|
|
3480
3844
|
}
|
|
3481
3845
|
return [3 /*break*/, 4];
|
|
3482
3846
|
case 4: return [2 /*return*/];
|
|
@@ -4040,7 +4404,7 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
4040
4404
|
});
|
|
4041
4405
|
function logout(e) {
|
|
4042
4406
|
return __awaiter(this, void 0, void 0, function () {
|
|
4043
|
-
var data,
|
|
4407
|
+
var data, err_7;
|
|
4044
4408
|
return __generator(this, function (_a) {
|
|
4045
4409
|
switch (_a.label) {
|
|
4046
4410
|
case 0:
|
|
@@ -4052,8 +4416,8 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
4052
4416
|
onSuccessLogout({ type: "LOGOUT", data: data });
|
|
4053
4417
|
return [3 /*break*/, 3];
|
|
4054
4418
|
case 2:
|
|
4055
|
-
|
|
4056
|
-
window.$memberstackDom._showMessage(
|
|
4419
|
+
err_7 = _a.sent();
|
|
4420
|
+
window.$memberstackDom._showMessage(err_7.message, true);
|
|
4057
4421
|
return [3 /*break*/, 3];
|
|
4058
4422
|
case 3: return [2 /*return*/];
|
|
4059
4423
|
}
|
|
@@ -4571,7 +4935,7 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
4571
4935
|
var emailInputValid = false;
|
|
4572
4936
|
function submitEmailChange(e) {
|
|
4573
4937
|
return __awaiter(this, void 0, void 0, function () {
|
|
4574
|
-
var
|
|
4938
|
+
var err_8;
|
|
4575
4939
|
return __generator(this, function (_a) {
|
|
4576
4940
|
switch (_a.label) {
|
|
4577
4941
|
case 0:
|
|
@@ -4588,8 +4952,8 @@ function instance$3($$self, $$props, $$invalidate) {
|
|
|
4588
4952
|
$$invalidate(4, profileLoader = false);
|
|
4589
4953
|
return [3 /*break*/, 4];
|
|
4590
4954
|
case 3:
|
|
4591
|
-
|
|
4592
|
-
window.$memberstackDom._showMessage(
|
|
4955
|
+
err_8 = _a.sent();
|
|
4956
|
+
window.$memberstackDom._showMessage(err_8.message, true);
|
|
4593
4957
|
$$invalidate(4, profileLoader = false);
|
|
4594
4958
|
return [3 /*break*/, 4];
|
|
4595
4959
|
case 4: return [2 /*return*/];
|
|
@@ -4873,7 +5237,7 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
4873
5237
|
var confirmPasswordValid = false;
|
|
4874
5238
|
function submitPasswordChange(e) {
|
|
4875
5239
|
return __awaiter(this, void 0, void 0, function () {
|
|
4876
|
-
var data,
|
|
5240
|
+
var data, err_9;
|
|
4877
5241
|
return __generator(this, function (_a) {
|
|
4878
5242
|
switch (_a.label) {
|
|
4879
5243
|
case 0:
|
|
@@ -4900,8 +5264,8 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
4900
5264
|
$$invalidate(8, profileLoader = false);
|
|
4901
5265
|
return [3 /*break*/, 4];
|
|
4902
5266
|
case 3:
|
|
4903
|
-
|
|
4904
|
-
window.$memberstackDom._showMessage(
|
|
5267
|
+
err_9 = _a.sent();
|
|
5268
|
+
window.$memberstackDom._showMessage(err_9.message, true);
|
|
4905
5269
|
$$invalidate(8, profileLoader = false);
|
|
4906
5270
|
return [3 /*break*/, 4];
|
|
4907
5271
|
case 4: return [2 /*return*/];
|
|
@@ -5062,7 +5426,7 @@ function create_else_block(ctx) {
|
|
|
5062
5426
|
}
|
|
5063
5427
|
};
|
|
5064
5428
|
}
|
|
5065
|
-
// (
|
|
5429
|
+
// (30:6) {#if $app.branding.logo}
|
|
5066
5430
|
function create_if_block_4$1(ctx) {
|
|
5067
5431
|
var img;
|
|
5068
5432
|
var img_src_value;
|
|
@@ -5070,18 +5434,18 @@ function create_if_block_4$1(ctx) {
|
|
|
5070
5434
|
return {
|
|
5071
5435
|
c: function () {
|
|
5072
5436
|
img = element("img");
|
|
5073
|
-
if (!src_url_equal(img.src, img_src_value = /*$app*/ ctx[
|
|
5437
|
+
if (!src_url_equal(img.src, img_src_value = /*$app*/ ctx[6].branding.logo))
|
|
5074
5438
|
attr(img, "src", img_src_value);
|
|
5075
|
-
attr(img, "alt", img_alt_value = /*$app*/ ctx[
|
|
5439
|
+
attr(img, "alt", img_alt_value = /*$app*/ ctx[6].name);
|
|
5076
5440
|
},
|
|
5077
5441
|
m: function (target, anchor) {
|
|
5078
5442
|
insert(target, img, anchor);
|
|
5079
5443
|
},
|
|
5080
5444
|
p: function (ctx, dirty) {
|
|
5081
|
-
if (dirty & /*$app*/
|
|
5445
|
+
if (dirty & /*$app*/ 64 && !src_url_equal(img.src, img_src_value = /*$app*/ ctx[6].branding.logo)) {
|
|
5082
5446
|
attr(img, "src", img_src_value);
|
|
5083
5447
|
}
|
|
5084
|
-
if (dirty & /*$app*/
|
|
5448
|
+
if (dirty & /*$app*/ 64 && img_alt_value !== (img_alt_value = /*$app*/ ctx[6].name)) {
|
|
5085
5449
|
attr(img, "alt", img_alt_value);
|
|
5086
5450
|
}
|
|
5087
5451
|
},
|
|
@@ -5093,7 +5457,7 @@ function create_if_block_4$1(ctx) {
|
|
|
5093
5457
|
}
|
|
5094
5458
|
};
|
|
5095
5459
|
}
|
|
5096
|
-
// (
|
|
5460
|
+
// (52:6) {#if profileLoader}
|
|
5097
5461
|
function create_if_block_3$1(ctx) {
|
|
5098
5462
|
var profileloader;
|
|
5099
5463
|
var current;
|
|
@@ -5121,17 +5485,17 @@ function create_if_block_3$1(ctx) {
|
|
|
5121
5485
|
}
|
|
5122
5486
|
};
|
|
5123
5487
|
}
|
|
5124
|
-
// (
|
|
5488
|
+
// (63:52)
|
|
5125
5489
|
function create_if_block_2$1(ctx) {
|
|
5126
5490
|
var passwordinfocontent;
|
|
5127
5491
|
var updating_displayProfile;
|
|
5128
5492
|
var updating_profileLoader;
|
|
5129
5493
|
var current;
|
|
5130
5494
|
function passwordinfocontent_displayProfile_binding(value) {
|
|
5131
|
-
/*passwordinfocontent_displayProfile_binding*/ ctx[
|
|
5495
|
+
/*passwordinfocontent_displayProfile_binding*/ ctx[14](value);
|
|
5132
5496
|
}
|
|
5133
5497
|
function passwordinfocontent_profileLoader_binding(value) {
|
|
5134
|
-
/*passwordinfocontent_profileLoader_binding*/ ctx[
|
|
5498
|
+
/*passwordinfocontent_profileLoader_binding*/ ctx[15](value);
|
|
5135
5499
|
}
|
|
5136
5500
|
var passwordinfocontent_props = {};
|
|
5137
5501
|
if ( /*displayProfile*/ctx[0] !== void 0) {
|
|
@@ -5180,17 +5544,17 @@ function create_if_block_2$1(ctx) {
|
|
|
5180
5544
|
}
|
|
5181
5545
|
};
|
|
5182
5546
|
}
|
|
5183
|
-
// (
|
|
5547
|
+
// (61:46)
|
|
5184
5548
|
function create_if_block_1$1(ctx) {
|
|
5185
5549
|
var securityinfocontent;
|
|
5186
5550
|
var updating_displayProfile;
|
|
5187
5551
|
var updating_profileLoader;
|
|
5188
5552
|
var current;
|
|
5189
5553
|
function securityinfocontent_displayProfile_binding(value) {
|
|
5190
|
-
/*securityinfocontent_displayProfile_binding*/ ctx[
|
|
5554
|
+
/*securityinfocontent_displayProfile_binding*/ ctx[12](value);
|
|
5191
5555
|
}
|
|
5192
5556
|
function securityinfocontent_profileLoader_binding(value) {
|
|
5193
|
-
/*securityinfocontent_profileLoader_binding*/ ctx[
|
|
5557
|
+
/*securityinfocontent_profileLoader_binding*/ ctx[13](value);
|
|
5194
5558
|
}
|
|
5195
5559
|
var securityinfocontent_props = {};
|
|
5196
5560
|
if ( /*displayProfile*/ctx[0] !== void 0) {
|
|
@@ -5239,20 +5603,20 @@ function create_if_block_1$1(ctx) {
|
|
|
5239
5603
|
}
|
|
5240
5604
|
};
|
|
5241
5605
|
}
|
|
5242
|
-
// (
|
|
5606
|
+
// (55:6) {#if displayProfile === "profile"}
|
|
5243
5607
|
function create_if_block$1(ctx) {
|
|
5244
5608
|
var profileinfocontent;
|
|
5245
5609
|
var updating_member;
|
|
5246
5610
|
var updating_profileLoader;
|
|
5247
5611
|
var current;
|
|
5248
5612
|
function profileinfocontent_member_binding(value) {
|
|
5249
|
-
/*profileinfocontent_member_binding*/ ctx[
|
|
5613
|
+
/*profileinfocontent_member_binding*/ ctx[10](value);
|
|
5250
5614
|
}
|
|
5251
5615
|
function profileinfocontent_profileLoader_binding(value) {
|
|
5252
|
-
/*profileinfocontent_profileLoader_binding*/ ctx[
|
|
5616
|
+
/*profileinfocontent_profileLoader_binding*/ ctx[11](value);
|
|
5253
5617
|
}
|
|
5254
5618
|
var profileinfocontent_props = {
|
|
5255
|
-
customFields: /*$app*/ ctx[
|
|
5619
|
+
customFields: /*$app*/ ctx[6].customFields
|
|
5256
5620
|
};
|
|
5257
5621
|
if ( /*member*/ctx[1] !== void 0) {
|
|
5258
5622
|
profileinfocontent_props.member = /*member*/ ctx[1];
|
|
@@ -5273,8 +5637,8 @@ function create_if_block$1(ctx) {
|
|
|
5273
5637
|
},
|
|
5274
5638
|
p: function (ctx, dirty) {
|
|
5275
5639
|
var profileinfocontent_changes = {};
|
|
5276
|
-
if (dirty & /*$app*/
|
|
5277
|
-
profileinfocontent_changes.customFields = /*$app*/ ctx[
|
|
5640
|
+
if (dirty & /*$app*/ 64)
|
|
5641
|
+
profileinfocontent_changes.customFields = /*$app*/ ctx[6].customFields;
|
|
5278
5642
|
if (!updating_member && dirty & /*member*/ 2) {
|
|
5279
5643
|
updating_member = true;
|
|
5280
5644
|
profileinfocontent_changes.member = /*member*/ ctx[1];
|
|
@@ -5332,7 +5696,7 @@ function create_fragment$1(ctx) {
|
|
|
5332
5696
|
var if_block_creators = [create_if_block_4$1, create_else_block];
|
|
5333
5697
|
var if_blocks = [];
|
|
5334
5698
|
function select_block_type(ctx, dirty) {
|
|
5335
|
-
if ( /*$app*/ctx[
|
|
5699
|
+
if ( /*$app*/ctx[6].branding.logo)
|
|
5336
5700
|
return 0;
|
|
5337
5701
|
return 1;
|
|
5338
5702
|
}
|
|
@@ -5342,13 +5706,13 @@ function create_fragment$1(ctx) {
|
|
|
5342
5706
|
props: { closeModal: /*closeModal*/ ctx[3] }
|
|
5343
5707
|
});
|
|
5344
5708
|
function profilemodalnav_member_binding(value) {
|
|
5345
|
-
/*profilemodalnav_member_binding*/ ctx[
|
|
5709
|
+
/*profilemodalnav_member_binding*/ ctx[7](value);
|
|
5346
5710
|
}
|
|
5347
5711
|
function profilemodalnav_displayProfile_binding(value) {
|
|
5348
|
-
/*profilemodalnav_displayProfile_binding*/ ctx[
|
|
5712
|
+
/*profilemodalnav_displayProfile_binding*/ ctx[8](value);
|
|
5349
5713
|
}
|
|
5350
5714
|
function profilemodalnav_profileLoader_binding(value) {
|
|
5351
|
-
/*profilemodalnav_profileLoader_binding*/ ctx[
|
|
5715
|
+
/*profilemodalnav_profileLoader_binding*/ ctx[9](value);
|
|
5352
5716
|
}
|
|
5353
5717
|
var profilemodalnav_props = {
|
|
5354
5718
|
onSuccessLogout: /*onSuccessLogout*/ ctx[2],
|
|
@@ -5411,7 +5775,6 @@ function create_fragment$1(ctx) {
|
|
|
5411
5775
|
attr(div1, "class", "ms-modal__header");
|
|
5412
5776
|
attr(div2, "class", "ms-modal__content-left");
|
|
5413
5777
|
attr(div3, "class", "ms-modal__content-right");
|
|
5414
|
-
set_style(div3, "height", /*profileSectionHeight*/ ctx[6]);
|
|
5415
5778
|
attr(div4, "class", "ms-modal__content ms-modal__content--profile");
|
|
5416
5779
|
attr(div5, "class", "ms-modal ms-modal--profile");
|
|
5417
5780
|
attr(div5, "id", "ProfileModal");
|
|
@@ -5544,9 +5907,6 @@ function create_fragment$1(ctx) {
|
|
|
5544
5907
|
if_block2 = null;
|
|
5545
5908
|
}
|
|
5546
5909
|
}
|
|
5547
|
-
if (!current || dirty & /*profileSectionHeight*/ 64) {
|
|
5548
|
-
set_style(div3, "height", /*profileSectionHeight*/ ctx[6]);
|
|
5549
|
-
}
|
|
5550
5910
|
},
|
|
5551
5911
|
i: function (local) {
|
|
5552
5912
|
if (current)
|
|
@@ -5584,9 +5944,8 @@ function create_fragment$1(ctx) {
|
|
|
5584
5944
|
};
|
|
5585
5945
|
}
|
|
5586
5946
|
function instance$1($$self, $$props, $$invalidate) {
|
|
5587
|
-
var profileSectionHeight;
|
|
5588
5947
|
var $app;
|
|
5589
|
-
component_subscribe($$self, AppStore, function ($$value) { return $$invalidate(
|
|
5948
|
+
component_subscribe($$self, AppStore, function ($$value) { return $$invalidate(6, $app = $$value); });
|
|
5590
5949
|
var onSuccessLogout = $$props.onSuccessLogout;
|
|
5591
5950
|
var closeModal = $$props.closeModal;
|
|
5592
5951
|
var _a = $$props.displayProfile, displayProfile = _a === void 0 ? "profile" : _a;
|
|
@@ -5643,11 +6002,6 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
5643
6002
|
if ('member' in $$props)
|
|
5644
6003
|
$$invalidate(1, member = $$props.member);
|
|
5645
6004
|
};
|
|
5646
|
-
$$self.$$.update = function () {
|
|
5647
|
-
if ($$self.$$.dirty & /*displayProfile*/ 1) {
|
|
5648
|
-
$$invalidate(6, profileSectionHeight = displayProfile === "profile" ? "400px" : "300px");
|
|
5649
|
-
}
|
|
5650
|
-
};
|
|
5651
6005
|
return [
|
|
5652
6006
|
displayProfile,
|
|
5653
6007
|
member,
|
|
@@ -5655,7 +6009,6 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
5655
6009
|
closeModal,
|
|
5656
6010
|
hideProfileSection,
|
|
5657
6011
|
profileLoader,
|
|
5658
|
-
profileSectionHeight,
|
|
5659
6012
|
$app,
|
|
5660
6013
|
profilemodalnav_member_binding,
|
|
5661
6014
|
profilemodalnav_displayProfile_binding,
|
|
@@ -5684,7 +6037,7 @@ var ProfileModal = /** @class */ (function (_super) {
|
|
|
5684
6037
|
}(SvelteComponent));
|
|
5685
6038
|
/* src/Main.svelte generated by Svelte v3.48.0 */
|
|
5686
6039
|
function add_css(target) {
|
|
5687
|
-
append_styles(target, "svelte-
|
|
6040
|
+
append_styles(target, "svelte-1gflocv", "@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\");#msOverlay.svelte-1gflocv{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-top:10vh;padding-bottom:10vh}.--hide{display:none}.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__header{display:flex;align-items:center;padding:12px}.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__figure{box-sizing:border-box;margin:8px auto;width:44px;height:44px;border-style:solid;border-width:1px;border-color:rgb(235, 235, 235);box-shadow:rgb(0 0 0 / 4%) 0px 2px 2px 0px;display:flex;position:relative;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;flex-shrink:0;line-height:1;border-radius:50%;overflow:hidden}.ms-modal__figure--profile{width:24px;height:24px;padding:0px;margin:0px 8px 0px 0px}.ms-modal__figure img{width:100%;height:100%;text-align:center;object-fit:cover;color:transparent;text-indent:10000px}.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-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{margin-top:8px;font-weight:500;font-size:14px;line-height:24px;color:rgb(10, 10, 10) !important;text-decoration:none;opacity:0.8}.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__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__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-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}");
|
|
5688
6041
|
}
|
|
5689
6042
|
// (86:36)
|
|
5690
6043
|
function create_if_block_6(ctx) {
|
|
@@ -6081,7 +6434,7 @@ function create_fragment(ctx) {
|
|
|
6081
6434
|
if (if_block)
|
|
6082
6435
|
if_block.c();
|
|
6083
6436
|
attr(main, "id", "msOverlay");
|
|
6084
|
-
attr(main, "class", "svelte-
|
|
6437
|
+
attr(main, "class", "svelte-1gflocv");
|
|
6085
6438
|
},
|
|
6086
6439
|
m: function (target, anchor) {
|
|
6087
6440
|
insert(target, main, anchor);
|