@memberstack/dom 1.9.37 → 1.9.39
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.mts +6 -2
- package/lib/index.d.ts +6 -2
- package/lib/index.js +2073 -480
- package/lib/index.mjs +2073 -480
- package/lib/methods/dom/main-dom.js +2043 -501
- package/lib/methods/dom/main-dom.mjs +2043 -501
- package/lib/methods/dom/methods.js +2043 -501
- package/lib/methods/dom/methods.mjs +2043 -501
- package/lib/methods/index.d.mts +5 -1
- package/lib/methods/index.d.ts +5 -1
- package/lib/methods/index.js +2073 -480
- package/lib/methods/index.mjs +2073 -480
- package/lib/methods/requests/index.d.mts +5 -1
- package/lib/methods/requests/index.d.ts +5 -1
- package/lib/methods/requests/index.js +61 -3
- package/lib/methods/requests/index.mjs +61 -3
- package/lib/methods/requests/requests.js +1 -2
- package/lib/methods/requests/requests.mjs +1 -2
- package/lib/types/index.d.mts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/params.d.mts +15 -1
- package/lib/types/params.d.ts +15 -1
- package/lib/utils/cookies.d.mts +3 -1
- package/lib/utils/cookies.d.ts +3 -1
- package/lib/utils/cookies.js +22 -4
- package/lib/utils/cookies.mjs +19 -3
- package/package.json +3 -3
|
@@ -67,6 +67,9 @@ function assign(tar, src) {
|
|
|
67
67
|
tar[k] = src[k];
|
|
68
68
|
return tar;
|
|
69
69
|
}
|
|
70
|
+
function is_promise(value) {
|
|
71
|
+
return !!value && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
|
|
72
|
+
}
|
|
70
73
|
function run(fn) {
|
|
71
74
|
return fn();
|
|
72
75
|
}
|
|
@@ -648,6 +651,84 @@ function create_bidirectional_transition(node, fn, params, intro) {
|
|
|
648
651
|
}
|
|
649
652
|
};
|
|
650
653
|
}
|
|
654
|
+
function handle_promise(promise2, info) {
|
|
655
|
+
const token = info.token = {};
|
|
656
|
+
function update2(type, index, key, value) {
|
|
657
|
+
if (info.token !== token)
|
|
658
|
+
return;
|
|
659
|
+
info.resolved = value;
|
|
660
|
+
let child_ctx = info.ctx;
|
|
661
|
+
if (key !== void 0) {
|
|
662
|
+
child_ctx = child_ctx.slice();
|
|
663
|
+
child_ctx[key] = value;
|
|
664
|
+
}
|
|
665
|
+
const block = type && (info.current = type)(child_ctx);
|
|
666
|
+
let needs_flush = false;
|
|
667
|
+
if (info.block) {
|
|
668
|
+
if (info.blocks) {
|
|
669
|
+
info.blocks.forEach((block2, i) => {
|
|
670
|
+
if (i !== index && block2) {
|
|
671
|
+
group_outros();
|
|
672
|
+
transition_out(block2, 1, 1, () => {
|
|
673
|
+
if (info.blocks[i] === block2) {
|
|
674
|
+
info.blocks[i] = null;
|
|
675
|
+
}
|
|
676
|
+
});
|
|
677
|
+
check_outros();
|
|
678
|
+
}
|
|
679
|
+
});
|
|
680
|
+
} else {
|
|
681
|
+
info.block.d(1);
|
|
682
|
+
}
|
|
683
|
+
block.c();
|
|
684
|
+
transition_in(block, 1);
|
|
685
|
+
block.m(info.mount(), info.anchor);
|
|
686
|
+
needs_flush = true;
|
|
687
|
+
}
|
|
688
|
+
info.block = block;
|
|
689
|
+
if (info.blocks)
|
|
690
|
+
info.blocks[index] = block;
|
|
691
|
+
if (needs_flush) {
|
|
692
|
+
flush();
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
if (is_promise(promise2)) {
|
|
696
|
+
const current_component2 = get_current_component();
|
|
697
|
+
promise2.then((value) => {
|
|
698
|
+
set_current_component(current_component2);
|
|
699
|
+
update2(info.then, 1, info.value, value);
|
|
700
|
+
set_current_component(null);
|
|
701
|
+
}, (error) => {
|
|
702
|
+
set_current_component(current_component2);
|
|
703
|
+
update2(info.catch, 2, info.error, error);
|
|
704
|
+
set_current_component(null);
|
|
705
|
+
if (!info.hasCatch) {
|
|
706
|
+
throw error;
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
if (info.current !== info.pending) {
|
|
710
|
+
update2(info.pending, 0);
|
|
711
|
+
return true;
|
|
712
|
+
}
|
|
713
|
+
} else {
|
|
714
|
+
if (info.current !== info.then) {
|
|
715
|
+
update2(info.then, 1, info.value, promise2);
|
|
716
|
+
return true;
|
|
717
|
+
}
|
|
718
|
+
info.resolved = promise2;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
function update_await_block_branch(info, ctx, dirty) {
|
|
722
|
+
const child_ctx = ctx.slice();
|
|
723
|
+
const { resolved } = info;
|
|
724
|
+
if (info.current === info.then) {
|
|
725
|
+
child_ctx[info.value] = resolved;
|
|
726
|
+
}
|
|
727
|
+
if (info.current === info.catch) {
|
|
728
|
+
child_ctx[info.error] = resolved;
|
|
729
|
+
}
|
|
730
|
+
info.block.p(child_ctx, dirty);
|
|
731
|
+
}
|
|
651
732
|
function destroy_block(block, lookup) {
|
|
652
733
|
block.d(1);
|
|
653
734
|
lookup.delete(block.key);
|
|
@@ -937,7 +1018,7 @@ var get_default_slot_context = (ctx) => ({ matches: (
|
|
|
937
1018
|
/*matches*/
|
|
938
1019
|
ctx[0]
|
|
939
1020
|
) });
|
|
940
|
-
function create_fragment$
|
|
1021
|
+
function create_fragment$1n(ctx) {
|
|
941
1022
|
let current;
|
|
942
1023
|
const default_slot_template = (
|
|
943
1024
|
/*#slots*/
|
|
@@ -1002,7 +1083,7 @@ function create_fragment$1l(ctx) {
|
|
|
1002
1083
|
}
|
|
1003
1084
|
};
|
|
1004
1085
|
}
|
|
1005
|
-
function instance$
|
|
1086
|
+
function instance$J($$self, $$props, $$invalidate) {
|
|
1006
1087
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
1007
1088
|
let { query } = $$props;
|
|
1008
1089
|
let mql;
|
|
@@ -1048,10 +1129,10 @@ function instance$I($$self, $$props, $$invalidate) {
|
|
|
1048
1129
|
var MediaQuery = class extends SvelteComponent {
|
|
1049
1130
|
constructor(options) {
|
|
1050
1131
|
super();
|
|
1051
|
-
init(this, options, instance$
|
|
1132
|
+
init(this, options, instance$J, create_fragment$1n, safe_not_equal, { query: 1 });
|
|
1052
1133
|
}
|
|
1053
1134
|
};
|
|
1054
|
-
function create_fragment$
|
|
1135
|
+
function create_fragment$1m(ctx) {
|
|
1055
1136
|
let svg;
|
|
1056
1137
|
let path;
|
|
1057
1138
|
let animateTransform;
|
|
@@ -1095,10 +1176,10 @@ function create_fragment$1k(ctx) {
|
|
|
1095
1176
|
var LoadingIcon = class extends SvelteComponent {
|
|
1096
1177
|
constructor(options) {
|
|
1097
1178
|
super();
|
|
1098
|
-
init(this, options, null, create_fragment$
|
|
1179
|
+
init(this, options, null, create_fragment$1m, safe_not_equal, {});
|
|
1099
1180
|
}
|
|
1100
1181
|
};
|
|
1101
|
-
function create_fragment$
|
|
1182
|
+
function create_fragment$1l(ctx) {
|
|
1102
1183
|
let div;
|
|
1103
1184
|
let loadingicon;
|
|
1104
1185
|
let current;
|
|
@@ -1135,10 +1216,10 @@ function create_fragment$1j(ctx) {
|
|
|
1135
1216
|
var Loader = class extends SvelteComponent {
|
|
1136
1217
|
constructor(options) {
|
|
1137
1218
|
super();
|
|
1138
|
-
init(this, options, null, create_fragment$
|
|
1219
|
+
init(this, options, null, create_fragment$1l, safe_not_equal, {});
|
|
1139
1220
|
}
|
|
1140
1221
|
};
|
|
1141
|
-
function create_fragment$
|
|
1222
|
+
function create_fragment$1k(ctx) {
|
|
1142
1223
|
let svg;
|
|
1143
1224
|
let path;
|
|
1144
1225
|
return {
|
|
@@ -1169,10 +1250,10 @@ function create_fragment$1i(ctx) {
|
|
|
1169
1250
|
var CloseIcon = class extends SvelteComponent {
|
|
1170
1251
|
constructor(options) {
|
|
1171
1252
|
super();
|
|
1172
|
-
init(this, options, null, create_fragment$
|
|
1253
|
+
init(this, options, null, create_fragment$1k, safe_not_equal, {});
|
|
1173
1254
|
}
|
|
1174
1255
|
};
|
|
1175
|
-
function create_fragment$
|
|
1256
|
+
function create_fragment$1j(ctx) {
|
|
1176
1257
|
let div;
|
|
1177
1258
|
let button;
|
|
1178
1259
|
let closeicon;
|
|
@@ -1225,7 +1306,7 @@ function create_fragment$1h(ctx) {
|
|
|
1225
1306
|
}
|
|
1226
1307
|
};
|
|
1227
1308
|
}
|
|
1228
|
-
function instance$
|
|
1309
|
+
function instance$I($$self, $$props, $$invalidate) {
|
|
1229
1310
|
let { closeModal } = $$props;
|
|
1230
1311
|
$$self.$$set = ($$props2) => {
|
|
1231
1312
|
if ("closeModal" in $$props2)
|
|
@@ -1236,10 +1317,10 @@ function instance$H($$self, $$props, $$invalidate) {
|
|
|
1236
1317
|
var CloseButton = class extends SvelteComponent {
|
|
1237
1318
|
constructor(options) {
|
|
1238
1319
|
super();
|
|
1239
|
-
init(this, options, instance$
|
|
1320
|
+
init(this, options, instance$I, create_fragment$1j, safe_not_equal, { closeModal: 0 });
|
|
1240
1321
|
}
|
|
1241
1322
|
};
|
|
1242
|
-
function create_fragment$
|
|
1323
|
+
function create_fragment$1i(ctx) {
|
|
1243
1324
|
let svg;
|
|
1244
1325
|
let path0;
|
|
1245
1326
|
let path1;
|
|
@@ -1292,10 +1373,10 @@ function create_fragment$1g(ctx) {
|
|
|
1292
1373
|
var MemberstackIcon = class extends SvelteComponent {
|
|
1293
1374
|
constructor(options) {
|
|
1294
1375
|
super();
|
|
1295
|
-
init(this, options, null, create_fragment$
|
|
1376
|
+
init(this, options, null, create_fragment$1i, safe_not_equal, {});
|
|
1296
1377
|
}
|
|
1297
1378
|
};
|
|
1298
|
-
function create_else_block$
|
|
1379
|
+
function create_else_block$i(ctx) {
|
|
1299
1380
|
let memberstackicon;
|
|
1300
1381
|
let current;
|
|
1301
1382
|
memberstackicon = new MemberstackIcon({});
|
|
@@ -1323,7 +1404,7 @@ function create_else_block$h(ctx) {
|
|
|
1323
1404
|
}
|
|
1324
1405
|
};
|
|
1325
1406
|
}
|
|
1326
|
-
function create_if_block$
|
|
1407
|
+
function create_if_block$A(ctx) {
|
|
1327
1408
|
let img;
|
|
1328
1409
|
let img_src_value;
|
|
1329
1410
|
let img_alt_value;
|
|
@@ -1360,12 +1441,12 @@ function create_if_block$z(ctx) {
|
|
|
1360
1441
|
}
|
|
1361
1442
|
};
|
|
1362
1443
|
}
|
|
1363
|
-
function create_fragment$
|
|
1444
|
+
function create_fragment$1h(ctx) {
|
|
1364
1445
|
let figure;
|
|
1365
1446
|
let current_block_type_index;
|
|
1366
1447
|
let if_block;
|
|
1367
1448
|
let current;
|
|
1368
|
-
const if_block_creators = [create_if_block$
|
|
1449
|
+
const if_block_creators = [create_if_block$A, create_else_block$i];
|
|
1369
1450
|
const if_blocks = [];
|
|
1370
1451
|
function select_block_type(ctx2, dirty) {
|
|
1371
1452
|
if (
|
|
@@ -1427,7 +1508,7 @@ function create_fragment$1f(ctx) {
|
|
|
1427
1508
|
}
|
|
1428
1509
|
};
|
|
1429
1510
|
}
|
|
1430
|
-
function instance$
|
|
1511
|
+
function instance$H($$self, $$props, $$invalidate) {
|
|
1431
1512
|
let app = {};
|
|
1432
1513
|
AppStore.subscribe((data) => {
|
|
1433
1514
|
$$invalidate(0, app = data);
|
|
@@ -1437,10 +1518,10 @@ function instance$G($$self, $$props, $$invalidate) {
|
|
|
1437
1518
|
var FigureElement = class extends SvelteComponent {
|
|
1438
1519
|
constructor(options) {
|
|
1439
1520
|
super();
|
|
1440
|
-
init(this, options, instance$
|
|
1521
|
+
init(this, options, instance$H, create_fragment$1h, safe_not_equal, {});
|
|
1441
1522
|
}
|
|
1442
1523
|
};
|
|
1443
|
-
function create_else_block$
|
|
1524
|
+
function create_else_block$h(ctx) {
|
|
1444
1525
|
let button;
|
|
1445
1526
|
let loadingicon;
|
|
1446
1527
|
let current;
|
|
@@ -1492,7 +1573,7 @@ function create_else_block$g(ctx) {
|
|
|
1492
1573
|
}
|
|
1493
1574
|
};
|
|
1494
1575
|
}
|
|
1495
|
-
function create_if_block$
|
|
1576
|
+
function create_if_block$z(ctx) {
|
|
1496
1577
|
let button;
|
|
1497
1578
|
let t;
|
|
1498
1579
|
return {
|
|
@@ -1541,12 +1622,12 @@ function create_if_block$y(ctx) {
|
|
|
1541
1622
|
}
|
|
1542
1623
|
};
|
|
1543
1624
|
}
|
|
1544
|
-
function create_fragment$
|
|
1625
|
+
function create_fragment$1g(ctx) {
|
|
1545
1626
|
let div;
|
|
1546
1627
|
let current_block_type_index;
|
|
1547
1628
|
let if_block;
|
|
1548
1629
|
let current;
|
|
1549
|
-
const if_block_creators = [create_if_block$
|
|
1630
|
+
const if_block_creators = [create_if_block$z, create_else_block$h];
|
|
1550
1631
|
const if_blocks = [];
|
|
1551
1632
|
function select_block_type(ctx2, dirty) {
|
|
1552
1633
|
if (!/*isLoading*/
|
|
@@ -1605,7 +1686,7 @@ function create_fragment$1e(ctx) {
|
|
|
1605
1686
|
}
|
|
1606
1687
|
};
|
|
1607
1688
|
}
|
|
1608
|
-
function instance$
|
|
1689
|
+
function instance$G($$self, $$props, $$invalidate) {
|
|
1609
1690
|
let $app;
|
|
1610
1691
|
component_subscribe($$self, AppStore, ($$value) => $$invalidate(3, $app = $$value));
|
|
1611
1692
|
let { buttonText = "Submit" } = $$props;
|
|
@@ -1625,10 +1706,10 @@ function instance$F($$self, $$props, $$invalidate) {
|
|
|
1625
1706
|
var SubmitButton = class extends SvelteComponent {
|
|
1626
1707
|
constructor(options) {
|
|
1627
1708
|
super();
|
|
1628
|
-
init(this, options, instance$
|
|
1709
|
+
init(this, options, instance$G, create_fragment$1g, safe_not_equal, { buttonText: 0, isLoading: 1 });
|
|
1629
1710
|
}
|
|
1630
1711
|
};
|
|
1631
|
-
function create_fragment$
|
|
1712
|
+
function create_fragment$1f(ctx) {
|
|
1632
1713
|
let svg;
|
|
1633
1714
|
let path;
|
|
1634
1715
|
return {
|
|
@@ -1657,10 +1738,10 @@ function create_fragment$1d(ctx) {
|
|
|
1657
1738
|
var ErrorIcon = class extends SvelteComponent {
|
|
1658
1739
|
constructor(options) {
|
|
1659
1740
|
super();
|
|
1660
|
-
init(this, options, null, create_fragment$
|
|
1741
|
+
init(this, options, null, create_fragment$1f, safe_not_equal, {});
|
|
1661
1742
|
}
|
|
1662
1743
|
};
|
|
1663
|
-
function create_if_block$
|
|
1744
|
+
function create_if_block$y(ctx) {
|
|
1664
1745
|
let div;
|
|
1665
1746
|
let erroricon;
|
|
1666
1747
|
let t0;
|
|
@@ -1703,7 +1784,7 @@ function create_if_block$x(ctx) {
|
|
|
1703
1784
|
}
|
|
1704
1785
|
};
|
|
1705
1786
|
}
|
|
1706
|
-
function create_fragment$
|
|
1787
|
+
function create_fragment$1e(ctx) {
|
|
1707
1788
|
let div;
|
|
1708
1789
|
let label;
|
|
1709
1790
|
let t0;
|
|
@@ -1715,7 +1796,7 @@ function create_fragment$1c(ctx) {
|
|
|
1715
1796
|
let dispose;
|
|
1716
1797
|
let if_block = (
|
|
1717
1798
|
/*inputError*/
|
|
1718
|
-
ctx[2] && create_if_block$
|
|
1799
|
+
ctx[2] && create_if_block$y(ctx)
|
|
1719
1800
|
);
|
|
1720
1801
|
return {
|
|
1721
1802
|
c() {
|
|
@@ -1810,7 +1891,7 @@ function create_fragment$1c(ctx) {
|
|
|
1810
1891
|
transition_in(if_block, 1);
|
|
1811
1892
|
}
|
|
1812
1893
|
} else {
|
|
1813
|
-
if_block = create_if_block$
|
|
1894
|
+
if_block = create_if_block$y(ctx2);
|
|
1814
1895
|
if_block.c();
|
|
1815
1896
|
transition_in(if_block, 1);
|
|
1816
1897
|
if_block.m(div, null);
|
|
@@ -1843,7 +1924,7 @@ function create_fragment$1c(ctx) {
|
|
|
1843
1924
|
}
|
|
1844
1925
|
};
|
|
1845
1926
|
}
|
|
1846
|
-
function instance$
|
|
1927
|
+
function instance$F($$self, $$props, $$invalidate) {
|
|
1847
1928
|
let $textStore;
|
|
1848
1929
|
component_subscribe($$self, TextStore, ($$value) => $$invalidate(9, $textStore = $$value));
|
|
1849
1930
|
let { emailInputValid = false } = $$props;
|
|
@@ -1892,14 +1973,14 @@ function instance$E($$self, $$props, $$invalidate) {
|
|
|
1892
1973
|
var EmailInput = class extends SvelteComponent {
|
|
1893
1974
|
constructor(options) {
|
|
1894
1975
|
super();
|
|
1895
|
-
init(this, options, instance$
|
|
1976
|
+
init(this, options, instance$F, create_fragment$1e, safe_not_equal, {
|
|
1896
1977
|
emailInputValid: 7,
|
|
1897
1978
|
emailValue: 0,
|
|
1898
1979
|
placeholder: 1
|
|
1899
1980
|
});
|
|
1900
1981
|
}
|
|
1901
1982
|
};
|
|
1902
|
-
function create_fragment$
|
|
1983
|
+
function create_fragment$1d(ctx) {
|
|
1903
1984
|
let svg;
|
|
1904
1985
|
let path;
|
|
1905
1986
|
return {
|
|
@@ -1929,10 +2010,10 @@ function create_fragment$1b(ctx) {
|
|
|
1929
2010
|
var EyeIcon = class extends SvelteComponent {
|
|
1930
2011
|
constructor(options) {
|
|
1931
2012
|
super();
|
|
1932
|
-
init(this, options, null, create_fragment$
|
|
2013
|
+
init(this, options, null, create_fragment$1d, safe_not_equal, {});
|
|
1933
2014
|
}
|
|
1934
2015
|
};
|
|
1935
|
-
function create_fragment$
|
|
2016
|
+
function create_fragment$1c(ctx) {
|
|
1936
2017
|
let svg;
|
|
1937
2018
|
let path;
|
|
1938
2019
|
return {
|
|
@@ -1962,10 +2043,10 @@ function create_fragment$1a(ctx) {
|
|
|
1962
2043
|
var EyeSlashIcon = class extends SvelteComponent {
|
|
1963
2044
|
constructor(options) {
|
|
1964
2045
|
super();
|
|
1965
|
-
init(this, options, null, create_fragment$
|
|
2046
|
+
init(this, options, null, create_fragment$1c, safe_not_equal, {});
|
|
1966
2047
|
}
|
|
1967
2048
|
};
|
|
1968
|
-
function create_if_block_2$
|
|
2049
|
+
function create_if_block_2$k(ctx) {
|
|
1969
2050
|
let div;
|
|
1970
2051
|
let button;
|
|
1971
2052
|
let mounted;
|
|
@@ -2004,7 +2085,7 @@ function create_if_block_2$i(ctx) {
|
|
|
2004
2085
|
}
|
|
2005
2086
|
};
|
|
2006
2087
|
}
|
|
2007
|
-
function create_else_block$
|
|
2088
|
+
function create_else_block$g(ctx) {
|
|
2008
2089
|
let eyeslashicon;
|
|
2009
2090
|
let current;
|
|
2010
2091
|
eyeslashicon = new EyeSlashIcon({});
|
|
@@ -2031,7 +2112,7 @@ function create_else_block$f(ctx) {
|
|
|
2031
2112
|
}
|
|
2032
2113
|
};
|
|
2033
2114
|
}
|
|
2034
|
-
function create_if_block_1$
|
|
2115
|
+
function create_if_block_1$p(ctx) {
|
|
2035
2116
|
let eyeicon;
|
|
2036
2117
|
let current;
|
|
2037
2118
|
eyeicon = new EyeIcon({});
|
|
@@ -2058,7 +2139,7 @@ function create_if_block_1$o(ctx) {
|
|
|
2058
2139
|
}
|
|
2059
2140
|
};
|
|
2060
2141
|
}
|
|
2061
|
-
function create_if_block$
|
|
2142
|
+
function create_if_block$x(ctx) {
|
|
2062
2143
|
let div;
|
|
2063
2144
|
let erroricon;
|
|
2064
2145
|
let t0;
|
|
@@ -2101,7 +2182,7 @@ function create_if_block$w(ctx) {
|
|
|
2101
2182
|
}
|
|
2102
2183
|
};
|
|
2103
2184
|
}
|
|
2104
|
-
function create_fragment$
|
|
2185
|
+
function create_fragment$1b(ctx) {
|
|
2105
2186
|
let div3;
|
|
2106
2187
|
let div0;
|
|
2107
2188
|
let label;
|
|
@@ -2121,9 +2202,9 @@ function create_fragment$19(ctx) {
|
|
|
2121
2202
|
let dispose;
|
|
2122
2203
|
let if_block0 = (
|
|
2123
2204
|
/*showForgotPasswordLabel*/
|
|
2124
|
-
ctx[2] && create_if_block_2$
|
|
2205
|
+
ctx[2] && create_if_block_2$k(ctx)
|
|
2125
2206
|
);
|
|
2126
|
-
const if_block_creators = [create_if_block_1$
|
|
2207
|
+
const if_block_creators = [create_if_block_1$p, create_else_block$g];
|
|
2127
2208
|
const if_blocks = [];
|
|
2128
2209
|
function select_block_type(ctx2, dirty) {
|
|
2129
2210
|
if (!/*passwordVisible*/
|
|
@@ -2135,7 +2216,7 @@ function create_fragment$19(ctx) {
|
|
|
2135
2216
|
if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
2136
2217
|
let if_block2 = (
|
|
2137
2218
|
/*inputError*/
|
|
2138
|
-
ctx[6] && create_if_block$
|
|
2219
|
+
ctx[6] && create_if_block$x(ctx)
|
|
2139
2220
|
);
|
|
2140
2221
|
return {
|
|
2141
2222
|
c() {
|
|
@@ -2238,7 +2319,7 @@ function create_fragment$19(ctx) {
|
|
|
2238
2319
|
if (if_block0) {
|
|
2239
2320
|
if_block0.p(ctx2, dirty);
|
|
2240
2321
|
} else {
|
|
2241
|
-
if_block0 = create_if_block_2$
|
|
2322
|
+
if_block0 = create_if_block_2$k(ctx2);
|
|
2242
2323
|
if_block0.c();
|
|
2243
2324
|
if_block0.m(div0, null);
|
|
2244
2325
|
}
|
|
@@ -2296,7 +2377,7 @@ function create_fragment$19(ctx) {
|
|
|
2296
2377
|
transition_in(if_block2, 1);
|
|
2297
2378
|
}
|
|
2298
2379
|
} else {
|
|
2299
|
-
if_block2 = create_if_block$
|
|
2380
|
+
if_block2 = create_if_block$x(ctx2);
|
|
2300
2381
|
if_block2.c();
|
|
2301
2382
|
transition_in(if_block2, 1);
|
|
2302
2383
|
if_block2.m(div3, null);
|
|
@@ -2334,7 +2415,7 @@ function create_fragment$19(ctx) {
|
|
|
2334
2415
|
}
|
|
2335
2416
|
};
|
|
2336
2417
|
}
|
|
2337
|
-
function instance$
|
|
2418
|
+
function instance$E($$self, $$props, $$invalidate) {
|
|
2338
2419
|
let type;
|
|
2339
2420
|
let $textStore;
|
|
2340
2421
|
component_subscribe($$self, TextStore, ($$value) => $$invalidate(15, $textStore = $$value));
|
|
@@ -2408,7 +2489,7 @@ function instance$D($$self, $$props, $$invalidate) {
|
|
|
2408
2489
|
var PasswordInput = class extends SvelteComponent {
|
|
2409
2490
|
constructor(options) {
|
|
2410
2491
|
super();
|
|
2411
|
-
init(this, options, instance$
|
|
2492
|
+
init(this, options, instance$E, create_fragment$1b, safe_not_equal, {
|
|
2412
2493
|
showForgotPasswordLabel: 2,
|
|
2413
2494
|
passwordInputValid: 13,
|
|
2414
2495
|
passwordLabel: 3,
|
|
@@ -2418,7 +2499,7 @@ var PasswordInput = class extends SvelteComponent {
|
|
|
2418
2499
|
});
|
|
2419
2500
|
}
|
|
2420
2501
|
};
|
|
2421
|
-
function create_fragment$
|
|
2502
|
+
function create_fragment$1a(ctx) {
|
|
2422
2503
|
let svg;
|
|
2423
2504
|
let path;
|
|
2424
2505
|
return {
|
|
@@ -2448,10 +2529,10 @@ function create_fragment$18(ctx) {
|
|
|
2448
2529
|
var SecuredIcon = class extends SvelteComponent {
|
|
2449
2530
|
constructor(options) {
|
|
2450
2531
|
super();
|
|
2451
|
-
init(this, options, null, create_fragment$
|
|
2532
|
+
init(this, options, null, create_fragment$1a, safe_not_equal, {});
|
|
2452
2533
|
}
|
|
2453
2534
|
};
|
|
2454
|
-
function create_if_block$
|
|
2535
|
+
function create_if_block$w(ctx) {
|
|
2455
2536
|
let div;
|
|
2456
2537
|
let a;
|
|
2457
2538
|
let securedicon;
|
|
@@ -2492,11 +2573,11 @@ function create_if_block$v(ctx) {
|
|
|
2492
2573
|
}
|
|
2493
2574
|
};
|
|
2494
2575
|
}
|
|
2495
|
-
function create_fragment$
|
|
2576
|
+
function create_fragment$19(ctx) {
|
|
2496
2577
|
let if_block_anchor;
|
|
2497
2578
|
let current;
|
|
2498
2579
|
let if_block = !/*$app*/
|
|
2499
|
-
ctx[0].isPaid && create_if_block$
|
|
2580
|
+
ctx[0].isPaid && create_if_block$w();
|
|
2500
2581
|
return {
|
|
2501
2582
|
c() {
|
|
2502
2583
|
if (if_block)
|
|
@@ -2518,7 +2599,7 @@ function create_fragment$17(ctx) {
|
|
|
2518
2599
|
transition_in(if_block, 1);
|
|
2519
2600
|
}
|
|
2520
2601
|
} else {
|
|
2521
|
-
if_block = create_if_block$
|
|
2602
|
+
if_block = create_if_block$w();
|
|
2522
2603
|
if_block.c();
|
|
2523
2604
|
transition_in(if_block, 1);
|
|
2524
2605
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -2549,7 +2630,7 @@ function create_fragment$17(ctx) {
|
|
|
2549
2630
|
}
|
|
2550
2631
|
};
|
|
2551
2632
|
}
|
|
2552
|
-
function instance$
|
|
2633
|
+
function instance$D($$self, $$props, $$invalidate) {
|
|
2553
2634
|
let $app;
|
|
2554
2635
|
component_subscribe($$self, AppStore, ($$value) => $$invalidate(0, $app = $$value));
|
|
2555
2636
|
return [$app];
|
|
@@ -2557,10 +2638,10 @@ function instance$C($$self, $$props, $$invalidate) {
|
|
|
2557
2638
|
var ModalFooter = class extends SvelteComponent {
|
|
2558
2639
|
constructor(options) {
|
|
2559
2640
|
super();
|
|
2560
|
-
init(this, options, instance$
|
|
2641
|
+
init(this, options, instance$D, create_fragment$19, safe_not_equal, {});
|
|
2561
2642
|
}
|
|
2562
2643
|
};
|
|
2563
|
-
function create_fragment$
|
|
2644
|
+
function create_fragment$18(ctx) {
|
|
2564
2645
|
let svg;
|
|
2565
2646
|
let path;
|
|
2566
2647
|
return {
|
|
@@ -2589,7 +2670,7 @@ function create_fragment$16(ctx) {
|
|
|
2589
2670
|
var EmailIcon = class extends SvelteComponent {
|
|
2590
2671
|
constructor(options) {
|
|
2591
2672
|
super();
|
|
2592
|
-
init(this, options, null, create_fragment$
|
|
2673
|
+
init(this, options, null, create_fragment$18, safe_not_equal, {});
|
|
2593
2674
|
}
|
|
2594
2675
|
};
|
|
2595
2676
|
var PasswordlessStore = writable({
|
|
@@ -2629,7 +2710,7 @@ var setPasswordlessMode = (mode) => {
|
|
|
2629
2710
|
return store;
|
|
2630
2711
|
});
|
|
2631
2712
|
};
|
|
2632
|
-
function get_each_context$
|
|
2713
|
+
function get_each_context$d(ctx, list, i) {
|
|
2633
2714
|
const child_ctx = ctx.slice();
|
|
2634
2715
|
child_ctx[22] = list[i];
|
|
2635
2716
|
return child_ctx;
|
|
@@ -2674,7 +2755,7 @@ function create_if_block_6$5(ctx) {
|
|
|
2674
2755
|
}
|
|
2675
2756
|
};
|
|
2676
2757
|
}
|
|
2677
|
-
function create_else_block_1$
|
|
2758
|
+
function create_else_block_1$8(ctx) {
|
|
2678
2759
|
let submitbutton;
|
|
2679
2760
|
let current;
|
|
2680
2761
|
submitbutton = new SubmitButton({
|
|
@@ -2720,7 +2801,7 @@ function create_else_block_1$7(ctx) {
|
|
|
2720
2801
|
}
|
|
2721
2802
|
};
|
|
2722
2803
|
}
|
|
2723
|
-
function create_if_block_5$
|
|
2804
|
+
function create_if_block_5$7(ctx) {
|
|
2724
2805
|
let passwordinput;
|
|
2725
2806
|
let updating_passwordInputValid;
|
|
2726
2807
|
let updating_display;
|
|
@@ -2827,7 +2908,7 @@ function create_if_block_5$5(ctx) {
|
|
|
2827
2908
|
}
|
|
2828
2909
|
};
|
|
2829
2910
|
}
|
|
2830
|
-
function create_if_block_4$
|
|
2911
|
+
function create_if_block_4$8(ctx) {
|
|
2831
2912
|
let div;
|
|
2832
2913
|
let button;
|
|
2833
2914
|
let mounted;
|
|
@@ -2864,7 +2945,7 @@ function create_if_block_4$7(ctx) {
|
|
|
2864
2945
|
}
|
|
2865
2946
|
};
|
|
2866
2947
|
}
|
|
2867
|
-
function create_if_block_3$
|
|
2948
|
+
function create_if_block_3$b(ctx) {
|
|
2868
2949
|
let div;
|
|
2869
2950
|
let button;
|
|
2870
2951
|
let mounted;
|
|
@@ -2901,7 +2982,7 @@ function create_if_block_3$9(ctx) {
|
|
|
2901
2982
|
}
|
|
2902
2983
|
};
|
|
2903
2984
|
}
|
|
2904
|
-
function create_if_block$
|
|
2985
|
+
function create_if_block$v(ctx) {
|
|
2905
2986
|
let div4;
|
|
2906
2987
|
let div3;
|
|
2907
2988
|
let div0;
|
|
@@ -2914,7 +2995,7 @@ function create_if_block$u(ctx) {
|
|
|
2914
2995
|
let current;
|
|
2915
2996
|
let if_block = (
|
|
2916
2997
|
/*$app*/
|
|
2917
|
-
ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$
|
|
2998
|
+
ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$o(ctx)
|
|
2918
2999
|
);
|
|
2919
3000
|
let each_value = (
|
|
2920
3001
|
/*$app*/
|
|
@@ -2922,7 +3003,7 @@ function create_if_block$u(ctx) {
|
|
|
2922
3003
|
);
|
|
2923
3004
|
let each_blocks = [];
|
|
2924
3005
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
2925
|
-
each_blocks[i] = create_each_block$
|
|
3006
|
+
each_blocks[i] = create_each_block$d(get_each_context$d(ctx, each_value, i));
|
|
2926
3007
|
}
|
|
2927
3008
|
return {
|
|
2928
3009
|
c() {
|
|
@@ -2979,7 +3060,7 @@ function create_if_block$u(ctx) {
|
|
|
2979
3060
|
transition_in(if_block, 1);
|
|
2980
3061
|
}
|
|
2981
3062
|
} else {
|
|
2982
|
-
if_block = create_if_block_1$
|
|
3063
|
+
if_block = create_if_block_1$o(ctx2);
|
|
2983
3064
|
if_block.c();
|
|
2984
3065
|
transition_in(if_block, 1);
|
|
2985
3066
|
if_block.m(div4, t4);
|
|
@@ -2997,11 +3078,11 @@ function create_if_block$u(ctx) {
|
|
|
2997
3078
|
ctx2[7].authProviders;
|
|
2998
3079
|
let i;
|
|
2999
3080
|
for (i = 0; i < each_value.length; i += 1) {
|
|
3000
|
-
const child_ctx = get_each_context$
|
|
3081
|
+
const child_ctx = get_each_context$d(ctx2, each_value, i);
|
|
3001
3082
|
if (each_blocks[i]) {
|
|
3002
3083
|
each_blocks[i].p(child_ctx, dirty);
|
|
3003
3084
|
} else {
|
|
3004
|
-
each_blocks[i] = create_each_block$
|
|
3085
|
+
each_blocks[i] = create_each_block$d(child_ctx);
|
|
3005
3086
|
each_blocks[i].c();
|
|
3006
3087
|
each_blocks[i].m(div4, null);
|
|
3007
3088
|
}
|
|
@@ -3031,12 +3112,12 @@ function create_if_block$u(ctx) {
|
|
|
3031
3112
|
}
|
|
3032
3113
|
};
|
|
3033
3114
|
}
|
|
3034
|
-
function create_if_block_1$
|
|
3115
|
+
function create_if_block_1$o(ctx) {
|
|
3035
3116
|
let div;
|
|
3036
3117
|
let current_block_type_index;
|
|
3037
3118
|
let if_block;
|
|
3038
3119
|
let current;
|
|
3039
|
-
const if_block_creators = [create_if_block_2$
|
|
3120
|
+
const if_block_creators = [create_if_block_2$j, create_else_block$f];
|
|
3040
3121
|
const if_blocks = [];
|
|
3041
3122
|
function select_block_type_2(ctx2, dirty) {
|
|
3042
3123
|
if (
|
|
@@ -3098,7 +3179,7 @@ function create_if_block_1$n(ctx) {
|
|
|
3098
3179
|
}
|
|
3099
3180
|
};
|
|
3100
3181
|
}
|
|
3101
|
-
function create_else_block$
|
|
3182
|
+
function create_else_block$f(ctx) {
|
|
3102
3183
|
let button;
|
|
3103
3184
|
let span;
|
|
3104
3185
|
let mounted;
|
|
@@ -3137,7 +3218,7 @@ function create_else_block$e(ctx) {
|
|
|
3137
3218
|
}
|
|
3138
3219
|
};
|
|
3139
3220
|
}
|
|
3140
|
-
function create_if_block_2$
|
|
3221
|
+
function create_if_block_2$j(ctx) {
|
|
3141
3222
|
let button;
|
|
3142
3223
|
let emailicon;
|
|
3143
3224
|
let t0;
|
|
@@ -3194,7 +3275,7 @@ function create_if_block_2$h(ctx) {
|
|
|
3194
3275
|
}
|
|
3195
3276
|
};
|
|
3196
3277
|
}
|
|
3197
|
-
function create_each_block$
|
|
3278
|
+
function create_each_block$d(ctx) {
|
|
3198
3279
|
let div;
|
|
3199
3280
|
let button;
|
|
3200
3281
|
let img;
|
|
@@ -3285,7 +3366,7 @@ function create_each_block$c(ctx) {
|
|
|
3285
3366
|
}
|
|
3286
3367
|
};
|
|
3287
3368
|
}
|
|
3288
|
-
function create_fragment$
|
|
3369
|
+
function create_fragment$17(ctx) {
|
|
3289
3370
|
let div1;
|
|
3290
3371
|
let t0;
|
|
3291
3372
|
let div0;
|
|
@@ -3328,7 +3409,7 @@ function create_fragment$15(ctx) {
|
|
|
3328
3409
|
}
|
|
3329
3410
|
emailinput = new EmailInput({ props: emailinput_props });
|
|
3330
3411
|
binding_callbacks.push(() => bind(emailinput, "emailInputValid", emailinput_emailInputValid_binding));
|
|
3331
|
-
const if_block_creators = [create_if_block_5$
|
|
3412
|
+
const if_block_creators = [create_if_block_5$7, create_else_block_1$8];
|
|
3332
3413
|
const if_blocks = [];
|
|
3333
3414
|
function select_block_type(ctx2, dirty) {
|
|
3334
3415
|
if (!/*$PasswordlessStore*/
|
|
@@ -3345,19 +3426,19 @@ function create_fragment$15(ctx) {
|
|
|
3345
3426
|
ctx2[2].signup && /*params*/
|
|
3346
3427
|
ctx2[2].signup.plans
|
|
3347
3428
|
)
|
|
3348
|
-
return create_if_block_3$
|
|
3429
|
+
return create_if_block_3$b;
|
|
3349
3430
|
if (
|
|
3350
3431
|
/*signupButtonURL*/
|
|
3351
3432
|
ctx2[9]
|
|
3352
3433
|
)
|
|
3353
|
-
return create_if_block_4$
|
|
3434
|
+
return create_if_block_4$8;
|
|
3354
3435
|
}
|
|
3355
3436
|
let current_block_type = select_block_type_1(ctx);
|
|
3356
3437
|
let if_block2 = current_block_type && current_block_type(ctx);
|
|
3357
3438
|
let if_block3 = (
|
|
3358
3439
|
/*$app*/
|
|
3359
3440
|
(ctx[7].authProviders.length > 0 || /*$app*/
|
|
3360
|
-
ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$
|
|
3441
|
+
ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$v(ctx)
|
|
3361
3442
|
);
|
|
3362
3443
|
modalfooter = new ModalFooter({});
|
|
3363
3444
|
return {
|
|
@@ -3499,7 +3580,7 @@ function create_fragment$15(ctx) {
|
|
|
3499
3580
|
transition_in(if_block3, 1);
|
|
3500
3581
|
}
|
|
3501
3582
|
} else {
|
|
3502
|
-
if_block3 = create_if_block$
|
|
3583
|
+
if_block3 = create_if_block$v(ctx2);
|
|
3503
3584
|
if_block3.c();
|
|
3504
3585
|
transition_in(if_block3, 1);
|
|
3505
3586
|
if_block3.m(div0, null);
|
|
@@ -3551,7 +3632,7 @@ function create_fragment$15(ctx) {
|
|
|
3551
3632
|
}
|
|
3552
3633
|
};
|
|
3553
3634
|
}
|
|
3554
|
-
function instance$
|
|
3635
|
+
function instance$C($$self, $$props, $$invalidate) {
|
|
3555
3636
|
let $PasswordlessStore;
|
|
3556
3637
|
let $app;
|
|
3557
3638
|
let $textStore;
|
|
@@ -3677,7 +3758,7 @@ function instance$B($$self, $$props, $$invalidate) {
|
|
|
3677
3758
|
var LoginModal = class extends SvelteComponent {
|
|
3678
3759
|
constructor(options) {
|
|
3679
3760
|
super();
|
|
3680
|
-
init(this, options, instance$
|
|
3761
|
+
init(this, options, instance$C, create_fragment$17, safe_not_equal, {
|
|
3681
3762
|
closeModal: 1,
|
|
3682
3763
|
display: 0,
|
|
3683
3764
|
onSuccessLogin: 12,
|
|
@@ -3685,15 +3766,15 @@ var LoginModal = class extends SvelteComponent {
|
|
|
3685
3766
|
});
|
|
3686
3767
|
}
|
|
3687
3768
|
};
|
|
3688
|
-
function add_css$
|
|
3769
|
+
function add_css$l(target) {
|
|
3689
3770
|
append_styles(target, "svelte-1w8lbd8", ".rey-was-here.svelte-1w8lbd8{display:none !important}");
|
|
3690
3771
|
}
|
|
3691
|
-
function get_each_context$
|
|
3772
|
+
function get_each_context$c(ctx, list, i) {
|
|
3692
3773
|
const child_ctx = ctx.slice();
|
|
3693
3774
|
child_ctx[25] = list[i];
|
|
3694
3775
|
return child_ctx;
|
|
3695
3776
|
}
|
|
3696
|
-
function get_each_context_1$
|
|
3777
|
+
function get_each_context_1$5(ctx, list, i) {
|
|
3697
3778
|
const child_ctx = ctx.slice();
|
|
3698
3779
|
child_ctx[28] = list[i];
|
|
3699
3780
|
child_ctx[30] = i;
|
|
@@ -3739,7 +3820,7 @@ function create_if_block_6$4(ctx) {
|
|
|
3739
3820
|
}
|
|
3740
3821
|
};
|
|
3741
3822
|
}
|
|
3742
|
-
function create_if_block_5$
|
|
3823
|
+
function create_if_block_5$6(ctx) {
|
|
3743
3824
|
let div1;
|
|
3744
3825
|
let div0;
|
|
3745
3826
|
let label;
|
|
@@ -3809,11 +3890,11 @@ function create_if_block_5$4(ctx) {
|
|
|
3809
3890
|
}
|
|
3810
3891
|
};
|
|
3811
3892
|
}
|
|
3812
|
-
function create_each_block_1$
|
|
3893
|
+
function create_each_block_1$5(ctx) {
|
|
3813
3894
|
let if_block_anchor;
|
|
3814
3895
|
let if_block = (
|
|
3815
3896
|
/*customField*/
|
|
3816
|
-
ctx[28].hidden !== true && create_if_block_5$
|
|
3897
|
+
ctx[28].hidden !== true && create_if_block_5$6(ctx)
|
|
3817
3898
|
);
|
|
3818
3899
|
return {
|
|
3819
3900
|
c() {
|
|
@@ -3834,7 +3915,7 @@ function create_each_block_1$4(ctx) {
|
|
|
3834
3915
|
if (if_block) {
|
|
3835
3916
|
if_block.p(ctx2, dirty);
|
|
3836
3917
|
} else {
|
|
3837
|
-
if_block = create_if_block_5$
|
|
3918
|
+
if_block = create_if_block_5$6(ctx2);
|
|
3838
3919
|
if_block.c();
|
|
3839
3920
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
3840
3921
|
}
|
|
@@ -3851,7 +3932,7 @@ function create_each_block_1$4(ctx) {
|
|
|
3851
3932
|
}
|
|
3852
3933
|
};
|
|
3853
3934
|
}
|
|
3854
|
-
function create_if_block_4$
|
|
3935
|
+
function create_if_block_4$7(ctx) {
|
|
3855
3936
|
let passwordinput;
|
|
3856
3937
|
let updating_passwordInputValid;
|
|
3857
3938
|
let current;
|
|
@@ -3902,7 +3983,7 @@ function create_if_block_4$6(ctx) {
|
|
|
3902
3983
|
}
|
|
3903
3984
|
};
|
|
3904
3985
|
}
|
|
3905
|
-
function create_else_block_1$
|
|
3986
|
+
function create_else_block_1$7(ctx) {
|
|
3906
3987
|
let submitbutton;
|
|
3907
3988
|
let current;
|
|
3908
3989
|
submitbutton = new SubmitButton({
|
|
@@ -3945,7 +4026,7 @@ function create_else_block_1$6(ctx) {
|
|
|
3945
4026
|
}
|
|
3946
4027
|
};
|
|
3947
4028
|
}
|
|
3948
|
-
function create_if_block_3$
|
|
4029
|
+
function create_if_block_3$a(ctx) {
|
|
3949
4030
|
let submitbutton;
|
|
3950
4031
|
let current;
|
|
3951
4032
|
submitbutton = new SubmitButton({
|
|
@@ -3988,7 +4069,7 @@ function create_if_block_3$8(ctx) {
|
|
|
3988
4069
|
}
|
|
3989
4070
|
};
|
|
3990
4071
|
}
|
|
3991
|
-
function create_if_block$
|
|
4072
|
+
function create_if_block$u(ctx) {
|
|
3992
4073
|
let div4;
|
|
3993
4074
|
let div3;
|
|
3994
4075
|
let t3;
|
|
@@ -3996,7 +4077,7 @@ function create_if_block$t(ctx) {
|
|
|
3996
4077
|
let current;
|
|
3997
4078
|
let if_block = (
|
|
3998
4079
|
/*$app*/
|
|
3999
|
-
ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$
|
|
4080
|
+
ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$n(ctx)
|
|
4000
4081
|
);
|
|
4001
4082
|
let each_value = (
|
|
4002
4083
|
/*$app*/
|
|
@@ -4004,7 +4085,7 @@ function create_if_block$t(ctx) {
|
|
|
4004
4085
|
);
|
|
4005
4086
|
let each_blocks = [];
|
|
4006
4087
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
4007
|
-
each_blocks[i] = create_each_block$
|
|
4088
|
+
each_blocks[i] = create_each_block$c(get_each_context$c(ctx, each_value, i));
|
|
4008
4089
|
}
|
|
4009
4090
|
return {
|
|
4010
4091
|
c() {
|
|
@@ -4049,7 +4130,7 @@ function create_if_block$t(ctx) {
|
|
|
4049
4130
|
transition_in(if_block, 1);
|
|
4050
4131
|
}
|
|
4051
4132
|
} else {
|
|
4052
|
-
if_block = create_if_block_1$
|
|
4133
|
+
if_block = create_if_block_1$n(ctx2);
|
|
4053
4134
|
if_block.c();
|
|
4054
4135
|
transition_in(if_block, 1);
|
|
4055
4136
|
if_block.m(div4, t4);
|
|
@@ -4067,11 +4148,11 @@ function create_if_block$t(ctx) {
|
|
|
4067
4148
|
ctx2[7].authProviders;
|
|
4068
4149
|
let i;
|
|
4069
4150
|
for (i = 0; i < each_value.length; i += 1) {
|
|
4070
|
-
const child_ctx = get_each_context$
|
|
4151
|
+
const child_ctx = get_each_context$c(ctx2, each_value, i);
|
|
4071
4152
|
if (each_blocks[i]) {
|
|
4072
4153
|
each_blocks[i].p(child_ctx, dirty);
|
|
4073
4154
|
} else {
|
|
4074
|
-
each_blocks[i] = create_each_block$
|
|
4155
|
+
each_blocks[i] = create_each_block$c(child_ctx);
|
|
4075
4156
|
each_blocks[i].c();
|
|
4076
4157
|
each_blocks[i].m(div4, null);
|
|
4077
4158
|
}
|
|
@@ -4101,12 +4182,12 @@ function create_if_block$t(ctx) {
|
|
|
4101
4182
|
}
|
|
4102
4183
|
};
|
|
4103
4184
|
}
|
|
4104
|
-
function create_if_block_1$
|
|
4185
|
+
function create_if_block_1$n(ctx) {
|
|
4105
4186
|
let div;
|
|
4106
4187
|
let current_block_type_index;
|
|
4107
4188
|
let if_block;
|
|
4108
4189
|
let current;
|
|
4109
|
-
const if_block_creators = [create_if_block_2$
|
|
4190
|
+
const if_block_creators = [create_if_block_2$i, create_else_block$e];
|
|
4110
4191
|
const if_blocks = [];
|
|
4111
4192
|
function select_block_type_1(ctx2, dirty) {
|
|
4112
4193
|
if (
|
|
@@ -4168,7 +4249,7 @@ function create_if_block_1$m(ctx) {
|
|
|
4168
4249
|
}
|
|
4169
4250
|
};
|
|
4170
4251
|
}
|
|
4171
|
-
function create_else_block$
|
|
4252
|
+
function create_else_block$e(ctx) {
|
|
4172
4253
|
let button;
|
|
4173
4254
|
let span;
|
|
4174
4255
|
let mounted;
|
|
@@ -4207,7 +4288,7 @@ function create_else_block$d(ctx) {
|
|
|
4207
4288
|
}
|
|
4208
4289
|
};
|
|
4209
4290
|
}
|
|
4210
|
-
function create_if_block_2$
|
|
4291
|
+
function create_if_block_2$i(ctx) {
|
|
4211
4292
|
let button;
|
|
4212
4293
|
let emailicon;
|
|
4213
4294
|
let t0;
|
|
@@ -4264,7 +4345,7 @@ function create_if_block_2$g(ctx) {
|
|
|
4264
4345
|
}
|
|
4265
4346
|
};
|
|
4266
4347
|
}
|
|
4267
|
-
function create_each_block$
|
|
4348
|
+
function create_each_block$c(ctx) {
|
|
4268
4349
|
let div;
|
|
4269
4350
|
let button;
|
|
4270
4351
|
let img;
|
|
@@ -4348,7 +4429,7 @@ function create_each_block$b(ctx) {
|
|
|
4348
4429
|
}
|
|
4349
4430
|
};
|
|
4350
4431
|
}
|
|
4351
|
-
function create_fragment$
|
|
4432
|
+
function create_fragment$16(ctx) {
|
|
4352
4433
|
let div4;
|
|
4353
4434
|
let t0;
|
|
4354
4435
|
let div3;
|
|
@@ -4387,7 +4468,7 @@ function create_fragment$14(ctx) {
|
|
|
4387
4468
|
);
|
|
4388
4469
|
let each_blocks = [];
|
|
4389
4470
|
for (let i = 0; i < each_value_1.length; i += 1) {
|
|
4390
|
-
each_blocks[i] = create_each_block_1$
|
|
4471
|
+
each_blocks[i] = create_each_block_1$5(get_each_context_1$5(ctx, each_value_1, i));
|
|
4391
4472
|
}
|
|
4392
4473
|
function emailinput_emailInputValid_binding(value) {
|
|
4393
4474
|
ctx[12](value);
|
|
@@ -4404,9 +4485,9 @@ function create_fragment$14(ctx) {
|
|
|
4404
4485
|
binding_callbacks.push(() => bind(emailinput, "emailInputValid", emailinput_emailInputValid_binding));
|
|
4405
4486
|
let if_block1 = (
|
|
4406
4487
|
/*$PasswordlessStore*/
|
|
4407
|
-
ctx[6].passwordlessMode === false && create_if_block_4$
|
|
4488
|
+
ctx[6].passwordlessMode === false && create_if_block_4$7(ctx)
|
|
4408
4489
|
);
|
|
4409
|
-
const if_block_creators = [create_if_block_3$
|
|
4490
|
+
const if_block_creators = [create_if_block_3$a, create_else_block_1$7];
|
|
4410
4491
|
const if_blocks = [];
|
|
4411
4492
|
function select_block_type(ctx2, dirty) {
|
|
4412
4493
|
if (
|
|
@@ -4421,7 +4502,7 @@ function create_fragment$14(ctx) {
|
|
|
4421
4502
|
let if_block3 = (
|
|
4422
4503
|
/*$app*/
|
|
4423
4504
|
(ctx[7].authProviders.length > 0 || /*$app*/
|
|
4424
|
-
ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$
|
|
4505
|
+
ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$u(ctx)
|
|
4425
4506
|
);
|
|
4426
4507
|
modalfooter = new ModalFooter({});
|
|
4427
4508
|
return {
|
|
@@ -4556,11 +4637,11 @@ function create_fragment$14(ctx) {
|
|
|
4556
4637
|
ctx2[7].customFields;
|
|
4557
4638
|
let i;
|
|
4558
4639
|
for (i = 0; i < each_value_1.length; i += 1) {
|
|
4559
|
-
const child_ctx = get_each_context_1$
|
|
4640
|
+
const child_ctx = get_each_context_1$5(ctx2, each_value_1, i);
|
|
4560
4641
|
if (each_blocks[i]) {
|
|
4561
4642
|
each_blocks[i].p(child_ctx, dirty);
|
|
4562
4643
|
} else {
|
|
4563
|
-
each_blocks[i] = create_each_block_1$
|
|
4644
|
+
each_blocks[i] = create_each_block_1$5(child_ctx);
|
|
4564
4645
|
each_blocks[i].c();
|
|
4565
4646
|
each_blocks[i].m(form, t4);
|
|
4566
4647
|
}
|
|
@@ -4590,7 +4671,7 @@ function create_fragment$14(ctx) {
|
|
|
4590
4671
|
transition_in(if_block1, 1);
|
|
4591
4672
|
}
|
|
4592
4673
|
} else {
|
|
4593
|
-
if_block1 = create_if_block_4$
|
|
4674
|
+
if_block1 = create_if_block_4$7(ctx2);
|
|
4594
4675
|
if_block1.c();
|
|
4595
4676
|
transition_in(if_block1, 1);
|
|
4596
4677
|
if_block1.m(form, t9);
|
|
@@ -4634,7 +4715,7 @@ function create_fragment$14(ctx) {
|
|
|
4634
4715
|
transition_in(if_block3, 1);
|
|
4635
4716
|
}
|
|
4636
4717
|
} else {
|
|
4637
|
-
if_block3 = create_if_block$
|
|
4718
|
+
if_block3 = create_if_block$u(ctx2);
|
|
4638
4719
|
if_block3.c();
|
|
4639
4720
|
transition_in(if_block3, 1);
|
|
4640
4721
|
if_block3.m(div3, null);
|
|
@@ -4695,7 +4776,7 @@ function executeCaptcha() {
|
|
|
4695
4776
|
return response;
|
|
4696
4777
|
});
|
|
4697
4778
|
}
|
|
4698
|
-
function instance$
|
|
4779
|
+
function instance$B($$self, $$props, $$invalidate) {
|
|
4699
4780
|
var _a;
|
|
4700
4781
|
let $PasswordlessStore;
|
|
4701
4782
|
let $app;
|
|
@@ -4868,8 +4949,8 @@ var SignupModal = class extends SvelteComponent {
|
|
|
4868
4949
|
init(
|
|
4869
4950
|
this,
|
|
4870
4951
|
options,
|
|
4871
|
-
instance$
|
|
4872
|
-
create_fragment$
|
|
4952
|
+
instance$B,
|
|
4953
|
+
create_fragment$16,
|
|
4873
4954
|
safe_not_equal,
|
|
4874
4955
|
{
|
|
4875
4956
|
closeModal: 1,
|
|
@@ -4877,11 +4958,11 @@ var SignupModal = class extends SvelteComponent {
|
|
|
4877
4958
|
onSuccessSignup: 11,
|
|
4878
4959
|
params: 2
|
|
4879
4960
|
},
|
|
4880
|
-
add_css$
|
|
4961
|
+
add_css$l
|
|
4881
4962
|
);
|
|
4882
4963
|
}
|
|
4883
4964
|
};
|
|
4884
|
-
function create_fragment$
|
|
4965
|
+
function create_fragment$15(ctx) {
|
|
4885
4966
|
let svg;
|
|
4886
4967
|
let path;
|
|
4887
4968
|
return {
|
|
@@ -4910,10 +4991,10 @@ function create_fragment$13(ctx) {
|
|
|
4910
4991
|
var BackIcon = class extends SvelteComponent {
|
|
4911
4992
|
constructor(options) {
|
|
4912
4993
|
super();
|
|
4913
|
-
init(this, options, null, create_fragment$
|
|
4994
|
+
init(this, options, null, create_fragment$15, safe_not_equal, {});
|
|
4914
4995
|
}
|
|
4915
4996
|
};
|
|
4916
|
-
function create_fragment$
|
|
4997
|
+
function create_fragment$14(ctx) {
|
|
4917
4998
|
let div4;
|
|
4918
4999
|
let div0;
|
|
4919
5000
|
let button;
|
|
@@ -5108,7 +5189,7 @@ function create_fragment$12(ctx) {
|
|
|
5108
5189
|
}
|
|
5109
5190
|
};
|
|
5110
5191
|
}
|
|
5111
|
-
function instance$
|
|
5192
|
+
function instance$A($$self, $$props, $$invalidate) {
|
|
5112
5193
|
let $textStore;
|
|
5113
5194
|
component_subscribe($$self, TextStore, ($$value) => $$invalidate(9, $textStore = $$value));
|
|
5114
5195
|
let text2 = $textStore.text;
|
|
@@ -5161,10 +5242,10 @@ function instance$z($$self, $$props, $$invalidate) {
|
|
|
5161
5242
|
var PassResetModal = class extends SvelteComponent {
|
|
5162
5243
|
constructor(options) {
|
|
5163
5244
|
super();
|
|
5164
|
-
init(this, options, instance$
|
|
5245
|
+
init(this, options, instance$A, create_fragment$14, safe_not_equal, { closeModal: 5, display: 0 });
|
|
5165
5246
|
}
|
|
5166
5247
|
};
|
|
5167
|
-
function create_if_block$
|
|
5248
|
+
function create_if_block$t(ctx) {
|
|
5168
5249
|
let div;
|
|
5169
5250
|
let erroricon;
|
|
5170
5251
|
let t;
|
|
@@ -5200,7 +5281,7 @@ function create_if_block$s(ctx) {
|
|
|
5200
5281
|
}
|
|
5201
5282
|
};
|
|
5202
5283
|
}
|
|
5203
|
-
function create_fragment$
|
|
5284
|
+
function create_fragment$13(ctx) {
|
|
5204
5285
|
let div3;
|
|
5205
5286
|
let div0;
|
|
5206
5287
|
let button;
|
|
@@ -5238,18 +5319,18 @@ function create_fragment$11(ctx) {
|
|
|
5238
5319
|
});
|
|
5239
5320
|
figureelement = new FigureElement({});
|
|
5240
5321
|
let if_block = !/*tokenInputValid*/
|
|
5241
|
-
ctx[3] && create_if_block$
|
|
5322
|
+
ctx[3] && create_if_block$t();
|
|
5242
5323
|
function passwordinput_passwordInputValid_binding(value) {
|
|
5243
5324
|
ctx[9](value);
|
|
5244
5325
|
}
|
|
5245
5326
|
let passwordinput_props = {
|
|
5246
5327
|
passwordPlaceholder: (
|
|
5247
5328
|
/*text*/
|
|
5248
|
-
ctx[5]["reset_password_placeholder"]
|
|
5329
|
+
ctx[5]["reset_password_placeholder"] || "New password"
|
|
5249
5330
|
),
|
|
5250
5331
|
passwordLabel: (
|
|
5251
5332
|
/*text*/
|
|
5252
|
-
ctx[5]["password"] || "
|
|
5333
|
+
ctx[5]["password"] || "Enter a new password"
|
|
5253
5334
|
)
|
|
5254
5335
|
};
|
|
5255
5336
|
if (
|
|
@@ -5386,7 +5467,7 @@ function create_fragment$11(ctx) {
|
|
|
5386
5467
|
transition_in(if_block, 1);
|
|
5387
5468
|
}
|
|
5388
5469
|
} else {
|
|
5389
|
-
if_block = create_if_block$
|
|
5470
|
+
if_block = create_if_block$t();
|
|
5390
5471
|
if_block.c();
|
|
5391
5472
|
transition_in(if_block, 1);
|
|
5392
5473
|
if_block.m(div1, null);
|
|
@@ -5452,7 +5533,7 @@ function create_fragment$11(ctx) {
|
|
|
5452
5533
|
}
|
|
5453
5534
|
};
|
|
5454
5535
|
}
|
|
5455
|
-
function instance$
|
|
5536
|
+
function instance$z($$self, $$props, $$invalidate) {
|
|
5456
5537
|
let $textStore;
|
|
5457
5538
|
component_subscribe($$self, TextStore, ($$value) => $$invalidate(10, $textStore = $$value));
|
|
5458
5539
|
let text2 = $textStore.text;
|
|
@@ -5549,14 +5630,14 @@ function instance$y($$self, $$props, $$invalidate) {
|
|
|
5549
5630
|
var PassTokenModal = class extends SvelteComponent {
|
|
5550
5631
|
constructor(options) {
|
|
5551
5632
|
super();
|
|
5552
|
-
init(this, options, instance$
|
|
5633
|
+
init(this, options, instance$z, create_fragment$13, safe_not_equal, {
|
|
5553
5634
|
closeModal: 1,
|
|
5554
5635
|
display: 0,
|
|
5555
5636
|
onSuccessPasswordReset: 7
|
|
5556
5637
|
});
|
|
5557
5638
|
}
|
|
5558
5639
|
};
|
|
5559
|
-
function create_fragment$
|
|
5640
|
+
function create_fragment$12(ctx) {
|
|
5560
5641
|
let div2;
|
|
5561
5642
|
let div0;
|
|
5562
5643
|
let t0;
|
|
@@ -5652,7 +5733,7 @@ function create_fragment$10(ctx) {
|
|
|
5652
5733
|
}
|
|
5653
5734
|
};
|
|
5654
5735
|
}
|
|
5655
|
-
function instance$
|
|
5736
|
+
function instance$y($$self, $$props, $$invalidate) {
|
|
5656
5737
|
let { closeModal } = $$props;
|
|
5657
5738
|
$$self.$$set = ($$props2) => {
|
|
5658
5739
|
if ("closeModal" in $$props2)
|
|
@@ -5663,10 +5744,10 @@ function instance$x($$self, $$props, $$invalidate) {
|
|
|
5663
5744
|
var PassSuccessModal = class extends SvelteComponent {
|
|
5664
5745
|
constructor(options) {
|
|
5665
5746
|
super();
|
|
5666
|
-
init(this, options, instance$
|
|
5747
|
+
init(this, options, instance$y, create_fragment$12, safe_not_equal, { closeModal: 0 });
|
|
5667
5748
|
}
|
|
5668
5749
|
};
|
|
5669
|
-
function create_else_block_1$
|
|
5750
|
+
function create_else_block_1$6(ctx) {
|
|
5670
5751
|
let button;
|
|
5671
5752
|
let backicon;
|
|
5672
5753
|
let current;
|
|
@@ -5712,7 +5793,7 @@ function create_else_block_1$5(ctx) {
|
|
|
5712
5793
|
}
|
|
5713
5794
|
};
|
|
5714
5795
|
}
|
|
5715
|
-
function create_if_block_2$
|
|
5796
|
+
function create_if_block_2$h(ctx) {
|
|
5716
5797
|
let button;
|
|
5717
5798
|
let backicon;
|
|
5718
5799
|
let current;
|
|
@@ -5758,7 +5839,7 @@ function create_if_block_2$f(ctx) {
|
|
|
5758
5839
|
}
|
|
5759
5840
|
};
|
|
5760
5841
|
}
|
|
5761
|
-
function create_else_block$
|
|
5842
|
+
function create_else_block$d(ctx) {
|
|
5762
5843
|
let h2;
|
|
5763
5844
|
return {
|
|
5764
5845
|
c() {
|
|
@@ -5777,7 +5858,7 @@ function create_else_block$c(ctx) {
|
|
|
5777
5858
|
}
|
|
5778
5859
|
};
|
|
5779
5860
|
}
|
|
5780
|
-
function create_if_block_1$
|
|
5861
|
+
function create_if_block_1$m(ctx) {
|
|
5781
5862
|
let h2;
|
|
5782
5863
|
return {
|
|
5783
5864
|
c() {
|
|
@@ -5796,7 +5877,7 @@ function create_if_block_1$l(ctx) {
|
|
|
5796
5877
|
}
|
|
5797
5878
|
};
|
|
5798
5879
|
}
|
|
5799
|
-
function create_if_block$
|
|
5880
|
+
function create_if_block$s(ctx) {
|
|
5800
5881
|
let div;
|
|
5801
5882
|
let erroricon;
|
|
5802
5883
|
let t;
|
|
@@ -5832,7 +5913,7 @@ function create_if_block$r(ctx) {
|
|
|
5832
5913
|
}
|
|
5833
5914
|
};
|
|
5834
5915
|
}
|
|
5835
|
-
function create_fragment
|
|
5916
|
+
function create_fragment$11(ctx) {
|
|
5836
5917
|
let div3;
|
|
5837
5918
|
let div0;
|
|
5838
5919
|
let current_block_type_index;
|
|
@@ -5859,7 +5940,7 @@ function create_fragment$$(ctx) {
|
|
|
5859
5940
|
let current;
|
|
5860
5941
|
let mounted;
|
|
5861
5942
|
let dispose;
|
|
5862
|
-
const if_block_creators = [create_if_block_2$
|
|
5943
|
+
const if_block_creators = [create_if_block_2$h, create_else_block_1$6];
|
|
5863
5944
|
const if_blocks = [];
|
|
5864
5945
|
function select_block_type(ctx2, dirty) {
|
|
5865
5946
|
if (
|
|
@@ -5883,13 +5964,13 @@ function create_fragment$$(ctx) {
|
|
|
5883
5964
|
/*$PasswordlessStore*/
|
|
5884
5965
|
ctx2[4].passwordlessModalType === "login"
|
|
5885
5966
|
)
|
|
5886
|
-
return create_if_block_1$
|
|
5887
|
-
return create_else_block$
|
|
5967
|
+
return create_if_block_1$m;
|
|
5968
|
+
return create_else_block$d;
|
|
5888
5969
|
}
|
|
5889
5970
|
let current_block_type = select_block_type_1(ctx);
|
|
5890
5971
|
let if_block1 = current_block_type(ctx);
|
|
5891
5972
|
let if_block2 = !/*tokenInputValid*/
|
|
5892
|
-
ctx[3] && create_if_block$
|
|
5973
|
+
ctx[3] && create_if_block$s();
|
|
5893
5974
|
submitbutton = new SubmitButton({
|
|
5894
5975
|
props: {
|
|
5895
5976
|
buttonText: (
|
|
@@ -6035,7 +6116,7 @@ function create_fragment$$(ctx) {
|
|
|
6035
6116
|
transition_in(if_block2, 1);
|
|
6036
6117
|
}
|
|
6037
6118
|
} else {
|
|
6038
|
-
if_block2 = create_if_block$
|
|
6119
|
+
if_block2 = create_if_block$s();
|
|
6039
6120
|
if_block2.c();
|
|
6040
6121
|
transition_in(if_block2, 1);
|
|
6041
6122
|
if_block2.m(div1, null);
|
|
@@ -6090,7 +6171,7 @@ function create_fragment$$(ctx) {
|
|
|
6090
6171
|
}
|
|
6091
6172
|
};
|
|
6092
6173
|
}
|
|
6093
|
-
function instance$
|
|
6174
|
+
function instance$x($$self, $$props, $$invalidate) {
|
|
6094
6175
|
let $PasswordlessStore;
|
|
6095
6176
|
let $textStore;
|
|
6096
6177
|
component_subscribe($$self, PasswordlessStore, ($$value) => $$invalidate(4, $PasswordlessStore = $$value));
|
|
@@ -6210,7 +6291,7 @@ function instance$w($$self, $$props, $$invalidate) {
|
|
|
6210
6291
|
var PasswordlessTokenModal = class extends SvelteComponent {
|
|
6211
6292
|
constructor(options) {
|
|
6212
6293
|
super();
|
|
6213
|
-
init(this, options, instance$
|
|
6294
|
+
init(this, options, instance$x, create_fragment$11, safe_not_equal, {
|
|
6214
6295
|
closeModal: 1,
|
|
6215
6296
|
display: 0,
|
|
6216
6297
|
onSuccessPasswordlessToken: 7,
|
|
@@ -6218,7 +6299,7 @@ var PasswordlessTokenModal = class extends SvelteComponent {
|
|
|
6218
6299
|
});
|
|
6219
6300
|
}
|
|
6220
6301
|
};
|
|
6221
|
-
function create_fragment$
|
|
6302
|
+
function create_fragment$10(ctx) {
|
|
6222
6303
|
let svg;
|
|
6223
6304
|
let path;
|
|
6224
6305
|
return {
|
|
@@ -6247,10 +6328,10 @@ function create_fragment$_(ctx) {
|
|
|
6247
6328
|
var ProfileIcon = class extends SvelteComponent {
|
|
6248
6329
|
constructor(options) {
|
|
6249
6330
|
super();
|
|
6250
|
-
init(this, options, null, create_fragment$
|
|
6331
|
+
init(this, options, null, create_fragment$10, safe_not_equal, {});
|
|
6251
6332
|
}
|
|
6252
6333
|
};
|
|
6253
|
-
function create_fragment
|
|
6334
|
+
function create_fragment$$(ctx) {
|
|
6254
6335
|
let svg;
|
|
6255
6336
|
let path;
|
|
6256
6337
|
return {
|
|
@@ -6279,10 +6360,10 @@ function create_fragment$Z(ctx) {
|
|
|
6279
6360
|
var SecurityIcon = class extends SvelteComponent {
|
|
6280
6361
|
constructor(options) {
|
|
6281
6362
|
super();
|
|
6282
|
-
init(this, options, null, create_fragment
|
|
6363
|
+
init(this, options, null, create_fragment$$, safe_not_equal, {});
|
|
6283
6364
|
}
|
|
6284
6365
|
};
|
|
6285
|
-
function create_fragment$
|
|
6366
|
+
function create_fragment$_(ctx) {
|
|
6286
6367
|
let svg;
|
|
6287
6368
|
let path;
|
|
6288
6369
|
return {
|
|
@@ -6311,10 +6392,10 @@ function create_fragment$Y(ctx) {
|
|
|
6311
6392
|
var LinkOutIcon = class extends SvelteComponent {
|
|
6312
6393
|
constructor(options) {
|
|
6313
6394
|
super();
|
|
6314
|
-
init(this, options, null, create_fragment$
|
|
6395
|
+
init(this, options, null, create_fragment$_, safe_not_equal, {});
|
|
6315
6396
|
}
|
|
6316
6397
|
};
|
|
6317
|
-
function create_fragment$
|
|
6398
|
+
function create_fragment$Z(ctx) {
|
|
6318
6399
|
let svg;
|
|
6319
6400
|
let path;
|
|
6320
6401
|
return {
|
|
@@ -6345,10 +6426,10 @@ function create_fragment$X(ctx) {
|
|
|
6345
6426
|
var LogoutIcon = class extends SvelteComponent {
|
|
6346
6427
|
constructor(options) {
|
|
6347
6428
|
super();
|
|
6348
|
-
init(this, options, null, create_fragment$
|
|
6429
|
+
init(this, options, null, create_fragment$Z, safe_not_equal, {});
|
|
6349
6430
|
}
|
|
6350
6431
|
};
|
|
6351
|
-
function create_fragment$
|
|
6432
|
+
function create_fragment$Y(ctx) {
|
|
6352
6433
|
let svg;
|
|
6353
6434
|
let path;
|
|
6354
6435
|
return {
|
|
@@ -6377,10 +6458,10 @@ function create_fragment$W(ctx) {
|
|
|
6377
6458
|
var PlansIcon = class extends SvelteComponent {
|
|
6378
6459
|
constructor(options) {
|
|
6379
6460
|
super();
|
|
6380
|
-
init(this, options, null, create_fragment$
|
|
6461
|
+
init(this, options, null, create_fragment$Y, safe_not_equal, {});
|
|
6381
6462
|
}
|
|
6382
6463
|
};
|
|
6383
|
-
function
|
|
6464
|
+
function create_if_block_2$g(ctx) {
|
|
6384
6465
|
let button;
|
|
6385
6466
|
let profileicon;
|
|
6386
6467
|
let t;
|
|
@@ -6412,7 +6493,7 @@ function create_if_block_1$k(ctx) {
|
|
|
6412
6493
|
button,
|
|
6413
6494
|
"click",
|
|
6414
6495
|
/*click_handler*/
|
|
6415
|
-
ctx[
|
|
6496
|
+
ctx[8]
|
|
6416
6497
|
);
|
|
6417
6498
|
mounted = true;
|
|
6418
6499
|
}
|
|
@@ -6447,7 +6528,7 @@ function create_if_block_1$k(ctx) {
|
|
|
6447
6528
|
}
|
|
6448
6529
|
};
|
|
6449
6530
|
}
|
|
6450
|
-
function
|
|
6531
|
+
function create_if_block_1$l(ctx) {
|
|
6451
6532
|
let button;
|
|
6452
6533
|
let plansicon;
|
|
6453
6534
|
let t;
|
|
@@ -6479,7 +6560,7 @@ function create_if_block$q(ctx) {
|
|
|
6479
6560
|
button,
|
|
6480
6561
|
"click",
|
|
6481
6562
|
/*click_handler_2*/
|
|
6482
|
-
ctx[
|
|
6563
|
+
ctx[10]
|
|
6483
6564
|
);
|
|
6484
6565
|
mounted = true;
|
|
6485
6566
|
}
|
|
@@ -6514,51 +6595,127 @@ function create_if_block$q(ctx) {
|
|
|
6514
6595
|
}
|
|
6515
6596
|
};
|
|
6516
6597
|
}
|
|
6517
|
-
function
|
|
6518
|
-
let
|
|
6519
|
-
let
|
|
6520
|
-
let
|
|
6521
|
-
let t1;
|
|
6522
|
-
let t2;
|
|
6523
|
-
let show_if = (
|
|
6524
|
-
/*showPlansNavButton*/
|
|
6525
|
-
ctx[3]()
|
|
6526
|
-
);
|
|
6527
|
-
let t3;
|
|
6528
|
-
let button1;
|
|
6529
|
-
let logouticon;
|
|
6530
|
-
let t4;
|
|
6598
|
+
function create_if_block$r(ctx) {
|
|
6599
|
+
let button;
|
|
6600
|
+
let plansicon;
|
|
6601
|
+
let t;
|
|
6531
6602
|
let current;
|
|
6532
6603
|
let mounted;
|
|
6533
6604
|
let dispose;
|
|
6534
|
-
|
|
6535
|
-
ctx[1] && create_if_block_1$k(ctx);
|
|
6536
|
-
securityicon = new SecurityIcon({});
|
|
6537
|
-
let if_block1 = show_if && create_if_block$q(ctx);
|
|
6538
|
-
logouticon = new LogoutIcon({});
|
|
6605
|
+
plansicon = new PlansIcon({});
|
|
6539
6606
|
return {
|
|
6540
6607
|
c() {
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
t1 = text(" Security");
|
|
6547
|
-
t2 = space();
|
|
6548
|
-
if (if_block1)
|
|
6549
|
-
if_block1.c();
|
|
6550
|
-
t3 = space();
|
|
6551
|
-
button1 = element("button");
|
|
6552
|
-
create_component(logouticon.$$.fragment);
|
|
6553
|
-
t4 = text(" Logout");
|
|
6554
|
-
attr(button0, "data-cy", "security-btn");
|
|
6555
|
-
attr(button0, "class", "ms-modal__profile-option");
|
|
6608
|
+
button = element("button");
|
|
6609
|
+
create_component(plansicon.$$.fragment);
|
|
6610
|
+
t = text(" Team");
|
|
6611
|
+
attr(button, "data-cy", "plans-btn");
|
|
6612
|
+
attr(button, "class", "ms-modal__profile-option");
|
|
6556
6613
|
toggle_class(
|
|
6557
|
-
|
|
6614
|
+
button,
|
|
6558
6615
|
"ms-modal__profile-option--active",
|
|
6559
6616
|
/*displayProfile*/
|
|
6560
|
-
ctx[0] === "
|
|
6561
|
-
|
|
6617
|
+
ctx[0] === "team"
|
|
6618
|
+
);
|
|
6619
|
+
},
|
|
6620
|
+
m(target, anchor) {
|
|
6621
|
+
insert(target, button, anchor);
|
|
6622
|
+
mount_component(plansicon, button, null);
|
|
6623
|
+
append(button, t);
|
|
6624
|
+
current = true;
|
|
6625
|
+
if (!mounted) {
|
|
6626
|
+
dispose = listen(
|
|
6627
|
+
button,
|
|
6628
|
+
"click",
|
|
6629
|
+
/*click_handler_3*/
|
|
6630
|
+
ctx[11]
|
|
6631
|
+
);
|
|
6632
|
+
mounted = true;
|
|
6633
|
+
}
|
|
6634
|
+
},
|
|
6635
|
+
p(ctx2, dirty) {
|
|
6636
|
+
if (!current || dirty & /*displayProfile*/
|
|
6637
|
+
1) {
|
|
6638
|
+
toggle_class(
|
|
6639
|
+
button,
|
|
6640
|
+
"ms-modal__profile-option--active",
|
|
6641
|
+
/*displayProfile*/
|
|
6642
|
+
ctx2[0] === "team"
|
|
6643
|
+
);
|
|
6644
|
+
}
|
|
6645
|
+
},
|
|
6646
|
+
i(local) {
|
|
6647
|
+
if (current)
|
|
6648
|
+
return;
|
|
6649
|
+
transition_in(plansicon.$$.fragment, local);
|
|
6650
|
+
current = true;
|
|
6651
|
+
},
|
|
6652
|
+
o(local) {
|
|
6653
|
+
transition_out(plansicon.$$.fragment, local);
|
|
6654
|
+
current = false;
|
|
6655
|
+
},
|
|
6656
|
+
d(detaching) {
|
|
6657
|
+
if (detaching)
|
|
6658
|
+
detach(button);
|
|
6659
|
+
destroy_component(plansicon);
|
|
6660
|
+
mounted = false;
|
|
6661
|
+
dispose();
|
|
6662
|
+
}
|
|
6663
|
+
};
|
|
6664
|
+
}
|
|
6665
|
+
function create_fragment$X(ctx) {
|
|
6666
|
+
let t0;
|
|
6667
|
+
let button0;
|
|
6668
|
+
let securityicon;
|
|
6669
|
+
let t1;
|
|
6670
|
+
let t2;
|
|
6671
|
+
let show_if_1 = (
|
|
6672
|
+
/*showPlansNavButton*/
|
|
6673
|
+
ctx[3]()
|
|
6674
|
+
);
|
|
6675
|
+
let t3;
|
|
6676
|
+
let show_if = (
|
|
6677
|
+
/*showTeamNavButton*/
|
|
6678
|
+
ctx[4]()
|
|
6679
|
+
);
|
|
6680
|
+
let t4;
|
|
6681
|
+
let button1;
|
|
6682
|
+
let logouticon;
|
|
6683
|
+
let t5;
|
|
6684
|
+
let current;
|
|
6685
|
+
let mounted;
|
|
6686
|
+
let dispose;
|
|
6687
|
+
let if_block0 = !/*hideProfileSection*/
|
|
6688
|
+
ctx[1] && create_if_block_2$g(ctx);
|
|
6689
|
+
securityicon = new SecurityIcon({});
|
|
6690
|
+
let if_block1 = show_if_1 && create_if_block_1$l(ctx);
|
|
6691
|
+
let if_block2 = show_if && create_if_block$r(ctx);
|
|
6692
|
+
logouticon = new LogoutIcon({});
|
|
6693
|
+
return {
|
|
6694
|
+
c() {
|
|
6695
|
+
if (if_block0)
|
|
6696
|
+
if_block0.c();
|
|
6697
|
+
t0 = space();
|
|
6698
|
+
button0 = element("button");
|
|
6699
|
+
create_component(securityicon.$$.fragment);
|
|
6700
|
+
t1 = text(" Security");
|
|
6701
|
+
t2 = space();
|
|
6702
|
+
if (if_block1)
|
|
6703
|
+
if_block1.c();
|
|
6704
|
+
t3 = space();
|
|
6705
|
+
if (if_block2)
|
|
6706
|
+
if_block2.c();
|
|
6707
|
+
t4 = space();
|
|
6708
|
+
button1 = element("button");
|
|
6709
|
+
create_component(logouticon.$$.fragment);
|
|
6710
|
+
t5 = text(" Logout");
|
|
6711
|
+
attr(button0, "data-cy", "security-btn");
|
|
6712
|
+
attr(button0, "class", "ms-modal__profile-option");
|
|
6713
|
+
toggle_class(
|
|
6714
|
+
button0,
|
|
6715
|
+
"ms-modal__profile-option--active",
|
|
6716
|
+
/*displayProfile*/
|
|
6717
|
+
ctx[0] === "security" || /*displayProfile*/
|
|
6718
|
+
ctx[0] === "changePassword"
|
|
6562
6719
|
);
|
|
6563
6720
|
attr(button1, "data-cy", "logout-btn");
|
|
6564
6721
|
attr(button1, "class", "ms-modal__profile-option");
|
|
@@ -6574,9 +6731,12 @@ function create_fragment$V(ctx) {
|
|
|
6574
6731
|
if (if_block1)
|
|
6575
6732
|
if_block1.m(target, anchor);
|
|
6576
6733
|
insert(target, t3, anchor);
|
|
6734
|
+
if (if_block2)
|
|
6735
|
+
if_block2.m(target, anchor);
|
|
6736
|
+
insert(target, t4, anchor);
|
|
6577
6737
|
insert(target, button1, anchor);
|
|
6578
6738
|
mount_component(logouticon, button1, null);
|
|
6579
|
-
append(button1,
|
|
6739
|
+
append(button1, t5);
|
|
6580
6740
|
current = true;
|
|
6581
6741
|
if (!mounted) {
|
|
6582
6742
|
dispose = [
|
|
@@ -6584,7 +6744,7 @@ function create_fragment$V(ctx) {
|
|
|
6584
6744
|
button0,
|
|
6585
6745
|
"click",
|
|
6586
6746
|
/*click_handler_1*/
|
|
6587
|
-
ctx[
|
|
6747
|
+
ctx[9]
|
|
6588
6748
|
),
|
|
6589
6749
|
listen(
|
|
6590
6750
|
button1,
|
|
@@ -6606,7 +6766,7 @@ function create_fragment$V(ctx) {
|
|
|
6606
6766
|
transition_in(if_block0, 1);
|
|
6607
6767
|
}
|
|
6608
6768
|
} else {
|
|
6609
|
-
if_block0 =
|
|
6769
|
+
if_block0 = create_if_block_2$g(ctx2);
|
|
6610
6770
|
if_block0.c();
|
|
6611
6771
|
transition_in(if_block0, 1);
|
|
6612
6772
|
if_block0.m(t0.parentNode, t0);
|
|
@@ -6628,8 +6788,10 @@ function create_fragment$V(ctx) {
|
|
|
6628
6788
|
ctx2[0] === "changePassword"
|
|
6629
6789
|
);
|
|
6630
6790
|
}
|
|
6631
|
-
if (
|
|
6791
|
+
if (show_if_1)
|
|
6632
6792
|
if_block1.p(ctx2, dirty);
|
|
6793
|
+
if (show_if)
|
|
6794
|
+
if_block2.p(ctx2, dirty);
|
|
6633
6795
|
},
|
|
6634
6796
|
i(local) {
|
|
6635
6797
|
if (current)
|
|
@@ -6637,6 +6799,7 @@ function create_fragment$V(ctx) {
|
|
|
6637
6799
|
transition_in(if_block0);
|
|
6638
6800
|
transition_in(securityicon.$$.fragment, local);
|
|
6639
6801
|
transition_in(if_block1);
|
|
6802
|
+
transition_in(if_block2);
|
|
6640
6803
|
transition_in(logouticon.$$.fragment, local);
|
|
6641
6804
|
current = true;
|
|
6642
6805
|
},
|
|
@@ -6644,6 +6807,7 @@ function create_fragment$V(ctx) {
|
|
|
6644
6807
|
transition_out(if_block0);
|
|
6645
6808
|
transition_out(securityicon.$$.fragment, local);
|
|
6646
6809
|
transition_out(if_block1);
|
|
6810
|
+
transition_out(if_block2);
|
|
6647
6811
|
transition_out(logouticon.$$.fragment, local);
|
|
6648
6812
|
current = false;
|
|
6649
6813
|
},
|
|
@@ -6661,6 +6825,10 @@ function create_fragment$V(ctx) {
|
|
|
6661
6825
|
if_block1.d(detaching);
|
|
6662
6826
|
if (detaching)
|
|
6663
6827
|
detach(t3);
|
|
6828
|
+
if (if_block2)
|
|
6829
|
+
if_block2.d(detaching);
|
|
6830
|
+
if (detaching)
|
|
6831
|
+
detach(t4);
|
|
6664
6832
|
if (detaching)
|
|
6665
6833
|
detach(button1);
|
|
6666
6834
|
destroy_component(logouticon);
|
|
@@ -6669,7 +6837,7 @@ function create_fragment$V(ctx) {
|
|
|
6669
6837
|
}
|
|
6670
6838
|
};
|
|
6671
6839
|
}
|
|
6672
|
-
function instance$
|
|
6840
|
+
function instance$w($$self, $$props, $$invalidate) {
|
|
6673
6841
|
let { member } = $$props;
|
|
6674
6842
|
let { onSuccessLogout } = $$props;
|
|
6675
6843
|
let { displayProfile } = $$props;
|
|
@@ -6700,20 +6868,25 @@ function instance$v($$self, $$props, $$invalidate) {
|
|
|
6700
6868
|
});
|
|
6701
6869
|
}
|
|
6702
6870
|
function showPlansNavButton() {
|
|
6703
|
-
return member.stripeCustomerId || member.planConnections.some((plan) => plan.type === "FREE");
|
|
6871
|
+
return member.stripeCustomerId || member.planConnections.some((plan) => plan.type === "FREE") || member.teams.joinedTeams.length > 0;
|
|
6872
|
+
}
|
|
6873
|
+
function showTeamNavButton() {
|
|
6874
|
+
var _a;
|
|
6875
|
+
return ((_a = member.teams) == null ? void 0 : _a.ownedTeams.length) > 0;
|
|
6704
6876
|
}
|
|
6705
6877
|
const click_handler = () => $$invalidate(0, displayProfile = "profile");
|
|
6706
6878
|
const click_handler_1 = () => $$invalidate(0, displayProfile = "security");
|
|
6707
6879
|
const click_handler_2 = () => $$invalidate(0, displayProfile = "plans");
|
|
6880
|
+
const click_handler_3 = () => $$invalidate(0, displayProfile = "team");
|
|
6708
6881
|
$$self.$$set = ($$props2) => {
|
|
6709
6882
|
if ("member" in $$props2)
|
|
6710
|
-
$$invalidate(
|
|
6883
|
+
$$invalidate(5, member = $$props2.member);
|
|
6711
6884
|
if ("onSuccessLogout" in $$props2)
|
|
6712
|
-
$$invalidate(
|
|
6885
|
+
$$invalidate(6, onSuccessLogout = $$props2.onSuccessLogout);
|
|
6713
6886
|
if ("displayProfile" in $$props2)
|
|
6714
6887
|
$$invalidate(0, displayProfile = $$props2.displayProfile);
|
|
6715
6888
|
if ("profileLoader" in $$props2)
|
|
6716
|
-
$$invalidate(
|
|
6889
|
+
$$invalidate(7, profileLoader = $$props2.profileLoader);
|
|
6717
6890
|
if ("hideProfileSection" in $$props2)
|
|
6718
6891
|
$$invalidate(1, hideProfileSection2 = $$props2.hideProfileSection);
|
|
6719
6892
|
};
|
|
@@ -6722,27 +6895,29 @@ function instance$v($$self, $$props, $$invalidate) {
|
|
|
6722
6895
|
hideProfileSection2,
|
|
6723
6896
|
logout,
|
|
6724
6897
|
showPlansNavButton,
|
|
6898
|
+
showTeamNavButton,
|
|
6725
6899
|
member,
|
|
6726
6900
|
onSuccessLogout,
|
|
6727
6901
|
profileLoader,
|
|
6728
6902
|
click_handler,
|
|
6729
6903
|
click_handler_1,
|
|
6730
|
-
click_handler_2
|
|
6904
|
+
click_handler_2,
|
|
6905
|
+
click_handler_3
|
|
6731
6906
|
];
|
|
6732
6907
|
}
|
|
6733
6908
|
var ProfileModalNav = class extends SvelteComponent {
|
|
6734
6909
|
constructor(options) {
|
|
6735
6910
|
super();
|
|
6736
|
-
init(this, options, instance$
|
|
6737
|
-
member:
|
|
6738
|
-
onSuccessLogout:
|
|
6911
|
+
init(this, options, instance$w, create_fragment$X, safe_not_equal, {
|
|
6912
|
+
member: 5,
|
|
6913
|
+
onSuccessLogout: 6,
|
|
6739
6914
|
displayProfile: 0,
|
|
6740
|
-
profileLoader:
|
|
6915
|
+
profileLoader: 7,
|
|
6741
6916
|
hideProfileSection: 1
|
|
6742
6917
|
});
|
|
6743
6918
|
}
|
|
6744
6919
|
};
|
|
6745
|
-
function create_fragment$
|
|
6920
|
+
function create_fragment$W(ctx) {
|
|
6746
6921
|
let svg;
|
|
6747
6922
|
let path;
|
|
6748
6923
|
return {
|
|
@@ -6773,10 +6948,10 @@ function create_fragment$U(ctx) {
|
|
|
6773
6948
|
var ProfileDefaultImage = class extends SvelteComponent {
|
|
6774
6949
|
constructor(options) {
|
|
6775
6950
|
super();
|
|
6776
|
-
init(this, options, null, create_fragment$
|
|
6951
|
+
init(this, options, null, create_fragment$W, safe_not_equal, {});
|
|
6777
6952
|
}
|
|
6778
6953
|
};
|
|
6779
|
-
function create_fragment$
|
|
6954
|
+
function create_fragment$V(ctx) {
|
|
6780
6955
|
let svg;
|
|
6781
6956
|
let g;
|
|
6782
6957
|
let path0;
|
|
@@ -6821,17 +6996,17 @@ function create_fragment$T(ctx) {
|
|
|
6821
6996
|
var UploadIcon = class extends SvelteComponent {
|
|
6822
6997
|
constructor(options) {
|
|
6823
6998
|
super();
|
|
6824
|
-
init(this, options, null, create_fragment$
|
|
6999
|
+
init(this, options, null, create_fragment$V, safe_not_equal, {});
|
|
6825
7000
|
}
|
|
6826
7001
|
};
|
|
6827
|
-
function get_each_context$
|
|
7002
|
+
function get_each_context$b(ctx, list, i) {
|
|
6828
7003
|
const child_ctx = ctx.slice();
|
|
6829
7004
|
child_ctx[10] = list[i];
|
|
6830
7005
|
child_ctx[11] = list;
|
|
6831
7006
|
child_ctx[12] = i;
|
|
6832
7007
|
return child_ctx;
|
|
6833
7008
|
}
|
|
6834
|
-
function create_else_block_1$
|
|
7009
|
+
function create_else_block_1$5(ctx) {
|
|
6835
7010
|
let profiledefaultimage;
|
|
6836
7011
|
let current;
|
|
6837
7012
|
profiledefaultimage = new ProfileDefaultImage({});
|
|
@@ -6859,7 +7034,7 @@ function create_else_block_1$4(ctx) {
|
|
|
6859
7034
|
}
|
|
6860
7035
|
};
|
|
6861
7036
|
}
|
|
6862
|
-
function create_if_block_2$
|
|
7037
|
+
function create_if_block_2$f(ctx) {
|
|
6863
7038
|
let img;
|
|
6864
7039
|
let img_src_value;
|
|
6865
7040
|
return {
|
|
@@ -6888,7 +7063,7 @@ function create_if_block_2$e(ctx) {
|
|
|
6888
7063
|
}
|
|
6889
7064
|
};
|
|
6890
7065
|
}
|
|
6891
|
-
function create_else_block$
|
|
7066
|
+
function create_else_block$c(ctx) {
|
|
6892
7067
|
let t;
|
|
6893
7068
|
return {
|
|
6894
7069
|
c() {
|
|
@@ -6903,7 +7078,7 @@ function create_else_block$b(ctx) {
|
|
|
6903
7078
|
}
|
|
6904
7079
|
};
|
|
6905
7080
|
}
|
|
6906
|
-
function create_if_block_1$
|
|
7081
|
+
function create_if_block_1$k(ctx) {
|
|
6907
7082
|
let t;
|
|
6908
7083
|
return {
|
|
6909
7084
|
c() {
|
|
@@ -6918,7 +7093,7 @@ function create_if_block_1$j(ctx) {
|
|
|
6918
7093
|
}
|
|
6919
7094
|
};
|
|
6920
7095
|
}
|
|
6921
|
-
function create_if_block$
|
|
7096
|
+
function create_if_block$q(ctx) {
|
|
6922
7097
|
let div1;
|
|
6923
7098
|
let div0;
|
|
6924
7099
|
let label;
|
|
@@ -7043,11 +7218,11 @@ function create_if_block$p(ctx) {
|
|
|
7043
7218
|
}
|
|
7044
7219
|
};
|
|
7045
7220
|
}
|
|
7046
|
-
function create_each_block$
|
|
7221
|
+
function create_each_block$b(ctx) {
|
|
7047
7222
|
let if_block_anchor;
|
|
7048
7223
|
let if_block = (
|
|
7049
7224
|
/*customField*/
|
|
7050
|
-
ctx[10].hidden !== true && create_if_block$
|
|
7225
|
+
ctx[10].hidden !== true && create_if_block$q(ctx)
|
|
7051
7226
|
);
|
|
7052
7227
|
return {
|
|
7053
7228
|
c() {
|
|
@@ -7068,7 +7243,7 @@ function create_each_block$a(ctx) {
|
|
|
7068
7243
|
if (if_block) {
|
|
7069
7244
|
if_block.p(ctx2, dirty);
|
|
7070
7245
|
} else {
|
|
7071
|
-
if_block = create_if_block$
|
|
7246
|
+
if_block = create_if_block$q(ctx2);
|
|
7072
7247
|
if_block.c();
|
|
7073
7248
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
7074
7249
|
}
|
|
@@ -7085,7 +7260,7 @@ function create_each_block$a(ctx) {
|
|
|
7085
7260
|
}
|
|
7086
7261
|
};
|
|
7087
7262
|
}
|
|
7088
|
-
function create_fragment$
|
|
7263
|
+
function create_fragment$U(ctx) {
|
|
7089
7264
|
let div1;
|
|
7090
7265
|
let h2;
|
|
7091
7266
|
let t1;
|
|
@@ -7106,7 +7281,7 @@ function create_fragment$S(ctx) {
|
|
|
7106
7281
|
let current;
|
|
7107
7282
|
let mounted;
|
|
7108
7283
|
let dispose;
|
|
7109
|
-
const if_block_creators = [create_if_block_2$
|
|
7284
|
+
const if_block_creators = [create_if_block_2$f, create_else_block_1$5];
|
|
7110
7285
|
const if_blocks = [];
|
|
7111
7286
|
function select_block_type(ctx2, dirty) {
|
|
7112
7287
|
if (
|
|
@@ -7122,8 +7297,8 @@ function create_fragment$S(ctx) {
|
|
|
7122
7297
|
function select_block_type_1(ctx2, dirty) {
|
|
7123
7298
|
if (!/*member*/
|
|
7124
7299
|
ctx2[0].profileImage)
|
|
7125
|
-
return create_if_block_1$
|
|
7126
|
-
return create_else_block$
|
|
7300
|
+
return create_if_block_1$k;
|
|
7301
|
+
return create_else_block$c;
|
|
7127
7302
|
}
|
|
7128
7303
|
let current_block_type = select_block_type_1(ctx);
|
|
7129
7304
|
let if_block1 = current_block_type(ctx);
|
|
@@ -7133,7 +7308,7 @@ function create_fragment$S(ctx) {
|
|
|
7133
7308
|
);
|
|
7134
7309
|
let each_blocks = [];
|
|
7135
7310
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
7136
|
-
each_blocks[i] = create_each_block$
|
|
7311
|
+
each_blocks[i] = create_each_block$b(get_each_context$b(ctx, each_value, i));
|
|
7137
7312
|
}
|
|
7138
7313
|
return {
|
|
7139
7314
|
c() {
|
|
@@ -7256,11 +7431,11 @@ function create_fragment$S(ctx) {
|
|
|
7256
7431
|
ctx2[1];
|
|
7257
7432
|
let i;
|
|
7258
7433
|
for (i = 0; i < each_value.length; i += 1) {
|
|
7259
|
-
const child_ctx = get_each_context$
|
|
7434
|
+
const child_ctx = get_each_context$b(ctx2, each_value, i);
|
|
7260
7435
|
if (each_blocks[i]) {
|
|
7261
7436
|
each_blocks[i].p(child_ctx, dirty);
|
|
7262
7437
|
} else {
|
|
7263
|
-
each_blocks[i] = create_each_block$
|
|
7438
|
+
each_blocks[i] = create_each_block$b(child_ctx);
|
|
7264
7439
|
each_blocks[i].c();
|
|
7265
7440
|
each_blocks[i].m(form, null);
|
|
7266
7441
|
}
|
|
@@ -7303,7 +7478,7 @@ function create_fragment$S(ctx) {
|
|
|
7303
7478
|
}
|
|
7304
7479
|
};
|
|
7305
7480
|
}
|
|
7306
|
-
function instance$
|
|
7481
|
+
function instance$v($$self, $$props, $$invalidate) {
|
|
7307
7482
|
let { customFields } = $$props;
|
|
7308
7483
|
let { member } = $$props;
|
|
7309
7484
|
let { profileLoader } = $$props;
|
|
@@ -7406,14 +7581,14 @@ function instance$u($$self, $$props, $$invalidate) {
|
|
|
7406
7581
|
var ProfileInfoContent = class extends SvelteComponent {
|
|
7407
7582
|
constructor(options) {
|
|
7408
7583
|
super();
|
|
7409
|
-
init(this, options, instance$
|
|
7584
|
+
init(this, options, instance$v, create_fragment$U, safe_not_equal, {
|
|
7410
7585
|
customFields: 1,
|
|
7411
7586
|
member: 0,
|
|
7412
7587
|
profileLoader: 5
|
|
7413
7588
|
});
|
|
7414
7589
|
}
|
|
7415
7590
|
};
|
|
7416
|
-
function create_fragment$
|
|
7591
|
+
function create_fragment$T(ctx) {
|
|
7417
7592
|
let svg;
|
|
7418
7593
|
let path;
|
|
7419
7594
|
return {
|
|
@@ -7442,15 +7617,15 @@ function create_fragment$R(ctx) {
|
|
|
7442
7617
|
var PasswordLockIcon = class extends SvelteComponent {
|
|
7443
7618
|
constructor(options) {
|
|
7444
7619
|
super();
|
|
7445
|
-
init(this, options, null, create_fragment$
|
|
7620
|
+
init(this, options, null, create_fragment$T, safe_not_equal, {});
|
|
7446
7621
|
}
|
|
7447
7622
|
};
|
|
7448
|
-
function get_each_context$
|
|
7623
|
+
function get_each_context$a(ctx, list, i) {
|
|
7449
7624
|
const child_ctx = ctx.slice();
|
|
7450
7625
|
child_ctx[16] = list[i];
|
|
7451
7626
|
return child_ctx;
|
|
7452
7627
|
}
|
|
7453
|
-
function create_else_block_1$
|
|
7628
|
+
function create_else_block_1$4(ctx) {
|
|
7454
7629
|
let t;
|
|
7455
7630
|
return {
|
|
7456
7631
|
c() {
|
|
@@ -7465,7 +7640,7 @@ function create_else_block_1$3(ctx) {
|
|
|
7465
7640
|
}
|
|
7466
7641
|
};
|
|
7467
7642
|
}
|
|
7468
|
-
function create_if_block_2$
|
|
7643
|
+
function create_if_block_2$e(ctx) {
|
|
7469
7644
|
let t;
|
|
7470
7645
|
return {
|
|
7471
7646
|
c() {
|
|
@@ -7480,7 +7655,7 @@ function create_if_block_2$d(ctx) {
|
|
|
7480
7655
|
}
|
|
7481
7656
|
};
|
|
7482
7657
|
}
|
|
7483
|
-
function create_if_block$
|
|
7658
|
+
function create_if_block$p(ctx) {
|
|
7484
7659
|
let p;
|
|
7485
7660
|
let t1;
|
|
7486
7661
|
let div;
|
|
@@ -7495,9 +7670,9 @@ function create_if_block$o(ctx) {
|
|
|
7495
7670
|
ctx2[16].provider
|
|
7496
7671
|
);
|
|
7497
7672
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
7498
|
-
let child_ctx = get_each_context$
|
|
7673
|
+
let child_ctx = get_each_context$a(ctx, each_value, i);
|
|
7499
7674
|
let key = get_key(child_ctx);
|
|
7500
|
-
each_1_lookup.set(key, each_blocks[i] = create_each_block$
|
|
7675
|
+
each_1_lookup.set(key, each_blocks[i] = create_each_block$a(key, child_ctx));
|
|
7501
7676
|
}
|
|
7502
7677
|
return {
|
|
7503
7678
|
c() {
|
|
@@ -7526,7 +7701,7 @@ function create_if_block$o(ctx) {
|
|
|
7526
7701
|
210) {
|
|
7527
7702
|
each_value = /*$app*/
|
|
7528
7703
|
ctx2[4].authProviders;
|
|
7529
|
-
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx2, each_value, each_1_lookup, div, destroy_block, create_each_block$
|
|
7704
|
+
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx2, each_value, each_1_lookup, div, destroy_block, create_each_block$a, null, get_each_context$a);
|
|
7530
7705
|
}
|
|
7531
7706
|
},
|
|
7532
7707
|
d(detaching) {
|
|
@@ -7542,7 +7717,7 @@ function create_if_block$o(ctx) {
|
|
|
7542
7717
|
}
|
|
7543
7718
|
};
|
|
7544
7719
|
}
|
|
7545
|
-
function create_else_block$
|
|
7720
|
+
function create_else_block$b(ctx) {
|
|
7546
7721
|
let button;
|
|
7547
7722
|
let img;
|
|
7548
7723
|
let img_src_value;
|
|
@@ -7619,7 +7794,7 @@ function create_else_block$a(ctx) {
|
|
|
7619
7794
|
}
|
|
7620
7795
|
};
|
|
7621
7796
|
}
|
|
7622
|
-
function create_if_block_1$
|
|
7797
|
+
function create_if_block_1$j(ctx) {
|
|
7623
7798
|
let button;
|
|
7624
7799
|
let img;
|
|
7625
7800
|
let img_src_value;
|
|
@@ -7697,7 +7872,7 @@ function create_if_block_1$i(ctx) {
|
|
|
7697
7872
|
}
|
|
7698
7873
|
};
|
|
7699
7874
|
}
|
|
7700
|
-
function create_each_block$
|
|
7875
|
+
function create_each_block$a(key_1, ctx) {
|
|
7701
7876
|
let div;
|
|
7702
7877
|
let show_if;
|
|
7703
7878
|
let t;
|
|
@@ -7719,8 +7894,8 @@ function create_each_block$9(key_1, ctx) {
|
|
|
7719
7894
|
show_if = !!/*member*/
|
|
7720
7895
|
ctx2[1].auth.providers.some(func2);
|
|
7721
7896
|
if (show_if)
|
|
7722
|
-
return create_if_block_1$
|
|
7723
|
-
return create_else_block$
|
|
7897
|
+
return create_if_block_1$j;
|
|
7898
|
+
return create_else_block$b;
|
|
7724
7899
|
}
|
|
7725
7900
|
let current_block_type = select_block_type_1(ctx, -1);
|
|
7726
7901
|
let if_block = current_block_type(ctx);
|
|
@@ -7759,7 +7934,7 @@ function create_each_block$9(key_1, ctx) {
|
|
|
7759
7934
|
}
|
|
7760
7935
|
};
|
|
7761
7936
|
}
|
|
7762
|
-
function create_fragment$
|
|
7937
|
+
function create_fragment$S(ctx) {
|
|
7763
7938
|
let div1;
|
|
7764
7939
|
let h2;
|
|
7765
7940
|
let t1;
|
|
@@ -7812,14 +7987,14 @@ function create_fragment$Q(ctx) {
|
|
|
7812
7987
|
function select_block_type(ctx2, dirty) {
|
|
7813
7988
|
if (!/*member*/
|
|
7814
7989
|
ctx2[1].auth.hasPassword)
|
|
7815
|
-
return create_if_block_2$
|
|
7816
|
-
return create_else_block_1$
|
|
7990
|
+
return create_if_block_2$e;
|
|
7991
|
+
return create_else_block_1$4;
|
|
7817
7992
|
}
|
|
7818
7993
|
let current_block_type = select_block_type(ctx);
|
|
7819
7994
|
let if_block0 = current_block_type(ctx);
|
|
7820
7995
|
let if_block1 = (
|
|
7821
7996
|
/*$app*/
|
|
7822
|
-
ctx[4].authProviders.length > 0 && create_if_block$
|
|
7997
|
+
ctx[4].authProviders.length > 0 && create_if_block$p(ctx)
|
|
7823
7998
|
);
|
|
7824
7999
|
return {
|
|
7825
8000
|
c() {
|
|
@@ -7945,7 +8120,7 @@ function create_fragment$Q(ctx) {
|
|
|
7945
8120
|
if (if_block1) {
|
|
7946
8121
|
if_block1.p(ctx2, dirty);
|
|
7947
8122
|
} else {
|
|
7948
|
-
if_block1 = create_if_block$
|
|
8123
|
+
if_block1 = create_if_block$p(ctx2);
|
|
7949
8124
|
if_block1.c();
|
|
7950
8125
|
if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
|
|
7951
8126
|
}
|
|
@@ -7991,7 +8166,7 @@ function create_fragment$Q(ctx) {
|
|
|
7991
8166
|
}
|
|
7992
8167
|
};
|
|
7993
8168
|
}
|
|
7994
|
-
function instance$
|
|
8169
|
+
function instance$u($$self, $$props, $$invalidate) {
|
|
7995
8170
|
let $app;
|
|
7996
8171
|
component_subscribe($$self, AppStore, ($$value) => $$invalidate(4, $app = $$value));
|
|
7997
8172
|
let { displayProfile } = $$props;
|
|
@@ -8100,7 +8275,7 @@ function instance$t($$self, $$props, $$invalidate) {
|
|
|
8100
8275
|
var SecurityInfoContent = class extends SvelteComponent {
|
|
8101
8276
|
constructor(options) {
|
|
8102
8277
|
super();
|
|
8103
|
-
init(this, options, instance$
|
|
8278
|
+
init(this, options, instance$u, create_fragment$S, safe_not_equal, {
|
|
8104
8279
|
displayProfile: 0,
|
|
8105
8280
|
member: 1,
|
|
8106
8281
|
emailValue: 2,
|
|
@@ -8108,7 +8283,7 @@ var SecurityInfoContent = class extends SvelteComponent {
|
|
|
8108
8283
|
});
|
|
8109
8284
|
}
|
|
8110
8285
|
};
|
|
8111
|
-
function create_else_block$
|
|
8286
|
+
function create_else_block$a(ctx) {
|
|
8112
8287
|
let t;
|
|
8113
8288
|
return {
|
|
8114
8289
|
c() {
|
|
@@ -8123,7 +8298,7 @@ function create_else_block$9(ctx) {
|
|
|
8123
8298
|
}
|
|
8124
8299
|
};
|
|
8125
8300
|
}
|
|
8126
|
-
function create_if_block_1$
|
|
8301
|
+
function create_if_block_1$i(ctx) {
|
|
8127
8302
|
let t;
|
|
8128
8303
|
return {
|
|
8129
8304
|
c() {
|
|
@@ -8138,7 +8313,7 @@ function create_if_block_1$h(ctx) {
|
|
|
8138
8313
|
}
|
|
8139
8314
|
};
|
|
8140
8315
|
}
|
|
8141
|
-
function create_if_block$
|
|
8316
|
+
function create_if_block$o(ctx) {
|
|
8142
8317
|
let passwordinput;
|
|
8143
8318
|
let updating_passwordValue;
|
|
8144
8319
|
let updating_passwordInputValid;
|
|
@@ -8211,7 +8386,7 @@ function create_if_block$n(ctx) {
|
|
|
8211
8386
|
}
|
|
8212
8387
|
};
|
|
8213
8388
|
}
|
|
8214
|
-
function create_fragment$
|
|
8389
|
+
function create_fragment$R(ctx) {
|
|
8215
8390
|
let div3;
|
|
8216
8391
|
let div1;
|
|
8217
8392
|
let div0;
|
|
@@ -8241,14 +8416,14 @@ function create_fragment$P(ctx) {
|
|
|
8241
8416
|
function select_block_type(ctx2, dirty) {
|
|
8242
8417
|
if (!/*member*/
|
|
8243
8418
|
ctx2[1].auth.hasPassword)
|
|
8244
|
-
return create_if_block_1$
|
|
8245
|
-
return create_else_block$
|
|
8419
|
+
return create_if_block_1$i;
|
|
8420
|
+
return create_else_block$a;
|
|
8246
8421
|
}
|
|
8247
8422
|
let current_block_type = select_block_type(ctx);
|
|
8248
8423
|
let if_block0 = current_block_type(ctx);
|
|
8249
8424
|
let if_block1 = (
|
|
8250
8425
|
/*member*/
|
|
8251
|
-
ctx[1].auth.hasPassword && create_if_block$
|
|
8426
|
+
ctx[1].auth.hasPassword && create_if_block$o(ctx)
|
|
8252
8427
|
);
|
|
8253
8428
|
function passwordinput0_passwordValue_binding(value) {
|
|
8254
8429
|
ctx[13](value);
|
|
@@ -8414,7 +8589,7 @@ function create_fragment$P(ctx) {
|
|
|
8414
8589
|
transition_in(if_block1, 1);
|
|
8415
8590
|
}
|
|
8416
8591
|
} else {
|
|
8417
|
-
if_block1 = create_if_block$
|
|
8592
|
+
if_block1 = create_if_block$o(ctx2);
|
|
8418
8593
|
if_block1.c();
|
|
8419
8594
|
transition_in(if_block1, 1);
|
|
8420
8595
|
if_block1.m(form, t4);
|
|
@@ -8493,7 +8668,7 @@ function create_fragment$P(ctx) {
|
|
|
8493
8668
|
}
|
|
8494
8669
|
};
|
|
8495
8670
|
}
|
|
8496
|
-
function instance$
|
|
8671
|
+
function instance$t($$self, $$props, $$invalidate) {
|
|
8497
8672
|
let { displayProfile } = $$props;
|
|
8498
8673
|
let { profileLoader } = $$props;
|
|
8499
8674
|
let { member } = $$props;
|
|
@@ -8590,7 +8765,7 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
8590
8765
|
var PasswordInfoContent = class extends SvelteComponent {
|
|
8591
8766
|
constructor(options) {
|
|
8592
8767
|
super();
|
|
8593
|
-
init(this, options, instance$
|
|
8768
|
+
init(this, options, instance$t, create_fragment$R, safe_not_equal, {
|
|
8594
8769
|
displayProfile: 0,
|
|
8595
8770
|
profileLoader: 9,
|
|
8596
8771
|
member: 1
|
|
@@ -8630,7 +8805,7 @@ function slide(node, { delay = 0, duration = 400, easing = cubicOut, axis = "y"
|
|
|
8630
8805
|
css: (t) => `overflow: hidden;opacity: ${Math.min(t * 20, 1) * opacity};${primary_property}: ${t * primary_property_value}px;padding-${secondary_properties[0]}: ${t * padding_start_value}px;padding-${secondary_properties[1]}: ${t * padding_end_value}px;margin-${secondary_properties[0]}: ${t * margin_start_value}px;margin-${secondary_properties[1]}: ${t * margin_end_value}px;border-${secondary_properties[0]}-width: ${t * border_width_start_value}px;border-${secondary_properties[1]}-width: ${t * border_width_end_value}px;`
|
|
8631
8806
|
};
|
|
8632
8807
|
}
|
|
8633
|
-
function create_fragment$
|
|
8808
|
+
function create_fragment$Q(ctx) {
|
|
8634
8809
|
let div;
|
|
8635
8810
|
let loadingicon;
|
|
8636
8811
|
let div_transition;
|
|
@@ -8680,10 +8855,10 @@ function create_fragment$O(ctx) {
|
|
|
8680
8855
|
var ProfileLoader = class extends SvelteComponent {
|
|
8681
8856
|
constructor(options) {
|
|
8682
8857
|
super();
|
|
8683
|
-
init(this, options, null, create_fragment$
|
|
8858
|
+
init(this, options, null, create_fragment$Q, safe_not_equal, {});
|
|
8684
8859
|
}
|
|
8685
8860
|
};
|
|
8686
|
-
function create_fragment$
|
|
8861
|
+
function create_fragment$P(ctx) {
|
|
8687
8862
|
let button;
|
|
8688
8863
|
let switch_instance0;
|
|
8689
8864
|
let t0;
|
|
@@ -8849,7 +9024,7 @@ function create_fragment$N(ctx) {
|
|
|
8849
9024
|
}
|
|
8850
9025
|
};
|
|
8851
9026
|
}
|
|
8852
|
-
function instance$
|
|
9027
|
+
function instance$s($$self, $$props, $$invalidate) {
|
|
8853
9028
|
const omit_props_names = ["buttonText", "buttonRightIcon", "buttonLeftIcon", "onClick"];
|
|
8854
9029
|
let $$restProps = compute_rest_props($$props, omit_props_names);
|
|
8855
9030
|
let $app;
|
|
@@ -8880,7 +9055,7 @@ function instance$r($$self, $$props, $$invalidate) {
|
|
|
8880
9055
|
var RegularButton = class extends SvelteComponent {
|
|
8881
9056
|
constructor(options) {
|
|
8882
9057
|
super();
|
|
8883
|
-
init(this, options, instance$
|
|
9058
|
+
init(this, options, instance$s, create_fragment$P, safe_not_equal, {
|
|
8884
9059
|
buttonText: 0,
|
|
8885
9060
|
buttonRightIcon: 1,
|
|
8886
9061
|
buttonLeftIcon: 2,
|
|
@@ -8888,7 +9063,7 @@ var RegularButton = class extends SvelteComponent {
|
|
|
8888
9063
|
});
|
|
8889
9064
|
}
|
|
8890
9065
|
};
|
|
8891
|
-
function create_fragment$
|
|
9066
|
+
function create_fragment$O(ctx) {
|
|
8892
9067
|
let button;
|
|
8893
9068
|
let t;
|
|
8894
9069
|
let button_class_value;
|
|
@@ -8958,7 +9133,7 @@ function create_fragment$M(ctx) {
|
|
|
8958
9133
|
}
|
|
8959
9134
|
};
|
|
8960
9135
|
}
|
|
8961
|
-
function instance$
|
|
9136
|
+
function instance$r($$self, $$props, $$invalidate) {
|
|
8962
9137
|
const omit_props_names = ["buttonText", "onClick"];
|
|
8963
9138
|
let $$restProps = compute_rest_props($$props, omit_props_names);
|
|
8964
9139
|
let $app;
|
|
@@ -8983,16 +9158,21 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
|
8983
9158
|
var TextButton = class extends SvelteComponent {
|
|
8984
9159
|
constructor(options) {
|
|
8985
9160
|
super();
|
|
8986
|
-
init(this, options, instance$
|
|
9161
|
+
init(this, options, instance$r, create_fragment$O, safe_not_equal, { buttonText: 0, onClick: 1 });
|
|
8987
9162
|
}
|
|
8988
9163
|
};
|
|
8989
|
-
function get_each_context$
|
|
9164
|
+
function get_each_context$9(ctx, list, i) {
|
|
8990
9165
|
const child_ctx = ctx.slice();
|
|
8991
|
-
child_ctx[
|
|
8992
|
-
child_ctx[
|
|
9166
|
+
child_ctx[11] = list[i];
|
|
9167
|
+
child_ctx[13] = i;
|
|
8993
9168
|
return child_ctx;
|
|
8994
9169
|
}
|
|
8995
|
-
function
|
|
9170
|
+
function get_each_context_1$4(ctx, list, i) {
|
|
9171
|
+
const child_ctx = ctx.slice();
|
|
9172
|
+
child_ctx[14] = list[i];
|
|
9173
|
+
return child_ctx;
|
|
9174
|
+
}
|
|
9175
|
+
function create_if_block_3$9(ctx) {
|
|
8996
9176
|
let div;
|
|
8997
9177
|
let regularbutton;
|
|
8998
9178
|
let current;
|
|
@@ -9000,7 +9180,7 @@ function create_if_block_2$c(ctx) {
|
|
|
9000
9180
|
props: {
|
|
9001
9181
|
onClick: (
|
|
9002
9182
|
/*launchPortal*/
|
|
9003
|
-
ctx[
|
|
9183
|
+
ctx[4]
|
|
9004
9184
|
),
|
|
9005
9185
|
class: "ms-modal__regular-button--margin-right ms-modal__regular-button--left-icon",
|
|
9006
9186
|
buttonText: "Manage Subscriptions",
|
|
@@ -9037,18 +9217,18 @@ function create_if_block_2$c(ctx) {
|
|
|
9037
9217
|
}
|
|
9038
9218
|
};
|
|
9039
9219
|
}
|
|
9040
|
-
function
|
|
9220
|
+
function create_if_block_2$d(ctx) {
|
|
9041
9221
|
let h3;
|
|
9042
9222
|
let t1;
|
|
9043
9223
|
let each_1_anchor;
|
|
9044
9224
|
let current;
|
|
9045
|
-
let
|
|
9046
|
-
/*
|
|
9225
|
+
let each_value_1 = (
|
|
9226
|
+
/*joinedTeams*/
|
|
9047
9227
|
ctx[1]
|
|
9048
9228
|
);
|
|
9049
9229
|
let each_blocks = [];
|
|
9050
|
-
for (let i = 0; i <
|
|
9051
|
-
each_blocks[i] =
|
|
9230
|
+
for (let i = 0; i < each_value_1.length; i += 1) {
|
|
9231
|
+
each_blocks[i] = create_each_block_1$4(get_each_context_1$4(ctx, each_value_1, i));
|
|
9052
9232
|
}
|
|
9053
9233
|
const out = (i) => transition_out(each_blocks[i], 1, 1, () => {
|
|
9054
9234
|
each_blocks[i] = null;
|
|
@@ -9056,7 +9236,7 @@ function create_if_block_1$g(ctx) {
|
|
|
9056
9236
|
return {
|
|
9057
9237
|
c() {
|
|
9058
9238
|
h3 = element("h3");
|
|
9059
|
-
h3.textContent = "
|
|
9239
|
+
h3.textContent = "Team Plans";
|
|
9060
9240
|
t1 = space();
|
|
9061
9241
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
9062
9242
|
each_blocks[i].c();
|
|
@@ -9075,25 +9255,25 @@ function create_if_block_1$g(ctx) {
|
|
|
9075
9255
|
current = true;
|
|
9076
9256
|
},
|
|
9077
9257
|
p(ctx2, dirty) {
|
|
9078
|
-
if (dirty & /*
|
|
9079
|
-
|
|
9080
|
-
|
|
9258
|
+
if (dirty & /*removeMemberFromTeam, joinedTeams, member*/
|
|
9259
|
+
67) {
|
|
9260
|
+
each_value_1 = /*joinedTeams*/
|
|
9081
9261
|
ctx2[1];
|
|
9082
9262
|
let i;
|
|
9083
|
-
for (i = 0; i <
|
|
9084
|
-
const child_ctx =
|
|
9263
|
+
for (i = 0; i < each_value_1.length; i += 1) {
|
|
9264
|
+
const child_ctx = get_each_context_1$4(ctx2, each_value_1, i);
|
|
9085
9265
|
if (each_blocks[i]) {
|
|
9086
9266
|
each_blocks[i].p(child_ctx, dirty);
|
|
9087
9267
|
transition_in(each_blocks[i], 1);
|
|
9088
9268
|
} else {
|
|
9089
|
-
each_blocks[i] =
|
|
9269
|
+
each_blocks[i] = create_each_block_1$4(child_ctx);
|
|
9090
9270
|
each_blocks[i].c();
|
|
9091
9271
|
transition_in(each_blocks[i], 1);
|
|
9092
9272
|
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
|
9093
9273
|
}
|
|
9094
9274
|
}
|
|
9095
9275
|
group_outros();
|
|
9096
|
-
for (i =
|
|
9276
|
+
for (i = each_value_1.length; i < each_blocks.length; i += 1) {
|
|
9097
9277
|
out(i);
|
|
9098
9278
|
}
|
|
9099
9279
|
check_outros();
|
|
@@ -9102,7 +9282,7 @@ function create_if_block_1$g(ctx) {
|
|
|
9102
9282
|
i(local) {
|
|
9103
9283
|
if (current)
|
|
9104
9284
|
return;
|
|
9105
|
-
for (let i = 0; i <
|
|
9285
|
+
for (let i = 0; i < each_value_1.length; i += 1) {
|
|
9106
9286
|
transition_in(each_blocks[i]);
|
|
9107
9287
|
}
|
|
9108
9288
|
current = true;
|
|
@@ -9125,40 +9305,30 @@ function create_if_block_1$g(ctx) {
|
|
|
9125
9305
|
}
|
|
9126
9306
|
};
|
|
9127
9307
|
}
|
|
9128
|
-
function
|
|
9308
|
+
function create_each_block_1$4(ctx) {
|
|
9129
9309
|
let div1;
|
|
9130
9310
|
let div0;
|
|
9131
9311
|
let b;
|
|
9132
9312
|
let t0_value = (
|
|
9133
|
-
|
|
9134
|
-
ctx[
|
|
9313
|
+
/*team*/
|
|
9314
|
+
ctx[14].planName + ""
|
|
9135
9315
|
);
|
|
9136
9316
|
let t0;
|
|
9137
9317
|
let t1;
|
|
9138
9318
|
let textbutton;
|
|
9139
9319
|
let t2;
|
|
9140
9320
|
let current;
|
|
9141
|
-
function func2(
|
|
9321
|
+
function func2() {
|
|
9142
9322
|
return (
|
|
9143
9323
|
/*func*/
|
|
9144
|
-
ctx[
|
|
9145
|
-
/*
|
|
9146
|
-
ctx[
|
|
9147
|
-
...args
|
|
9148
|
-
)
|
|
9149
|
-
);
|
|
9150
|
-
}
|
|
9151
|
-
function func_12() {
|
|
9152
|
-
return (
|
|
9153
|
-
/*func_1*/
|
|
9154
|
-
ctx[7](
|
|
9155
|
-
/*memberPlan*/
|
|
9156
|
-
ctx[8]
|
|
9324
|
+
ctx[8](
|
|
9325
|
+
/*team*/
|
|
9326
|
+
ctx[14]
|
|
9157
9327
|
)
|
|
9158
9328
|
);
|
|
9159
9329
|
}
|
|
9160
9330
|
textbutton = new TextButton({
|
|
9161
|
-
props: { buttonText: "
|
|
9331
|
+
props: { buttonText: "Leave Team", onClick: func2 }
|
|
9162
9332
|
});
|
|
9163
9333
|
return {
|
|
9164
9334
|
c() {
|
|
@@ -9183,14 +9353,14 @@ function create_each_block$8(ctx) {
|
|
|
9183
9353
|
},
|
|
9184
9354
|
p(new_ctx, dirty) {
|
|
9185
9355
|
ctx = new_ctx;
|
|
9186
|
-
if ((!current || dirty &
|
|
9187
|
-
|
|
9188
|
-
ctx[
|
|
9356
|
+
if ((!current || dirty & /*joinedTeams*/
|
|
9357
|
+
2) && t0_value !== (t0_value = /*team*/
|
|
9358
|
+
ctx[14].planName + ""))
|
|
9189
9359
|
set_data(t0, t0_value);
|
|
9190
9360
|
const textbutton_changes = {};
|
|
9191
|
-
if (dirty & /*
|
|
9192
|
-
|
|
9193
|
-
textbutton_changes.onClick =
|
|
9361
|
+
if (dirty & /*joinedTeams, member*/
|
|
9362
|
+
3)
|
|
9363
|
+
textbutton_changes.onClick = func2;
|
|
9194
9364
|
textbutton.$set(textbutton_changes);
|
|
9195
9365
|
},
|
|
9196
9366
|
i(local) {
|
|
@@ -9210,40 +9380,218 @@ function create_each_block$8(ctx) {
|
|
|
9210
9380
|
}
|
|
9211
9381
|
};
|
|
9212
9382
|
}
|
|
9213
|
-
function
|
|
9214
|
-
let
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
|
|
9219
|
-
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9383
|
+
function create_if_block_1$h(ctx) {
|
|
9384
|
+
let h3;
|
|
9385
|
+
let t1;
|
|
9386
|
+
let each_1_anchor;
|
|
9387
|
+
let current;
|
|
9388
|
+
let each_value = (
|
|
9389
|
+
/*freePlanConnections*/
|
|
9390
|
+
ctx[2]
|
|
9391
|
+
);
|
|
9392
|
+
let each_blocks = [];
|
|
9393
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
9394
|
+
each_blocks[i] = create_each_block$9(get_each_context$9(ctx, each_value, i));
|
|
9395
|
+
}
|
|
9396
|
+
const out = (i) => transition_out(each_blocks[i], 1, 1, () => {
|
|
9397
|
+
each_blocks[i] = null;
|
|
9398
|
+
});
|
|
9399
|
+
return {
|
|
9400
|
+
c() {
|
|
9401
|
+
h3 = element("h3");
|
|
9402
|
+
h3.textContent = "Free Plans";
|
|
9403
|
+
t1 = space();
|
|
9404
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
9405
|
+
each_blocks[i].c();
|
|
9406
|
+
}
|
|
9407
|
+
each_1_anchor = empty();
|
|
9408
|
+
},
|
|
9409
|
+
m(target, anchor) {
|
|
9410
|
+
insert(target, h3, anchor);
|
|
9411
|
+
insert(target, t1, anchor);
|
|
9412
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
9413
|
+
if (each_blocks[i]) {
|
|
9414
|
+
each_blocks[i].m(target, anchor);
|
|
9415
|
+
}
|
|
9416
|
+
}
|
|
9417
|
+
insert(target, each_1_anchor, anchor);
|
|
9418
|
+
current = true;
|
|
9419
|
+
},
|
|
9420
|
+
p(ctx2, dirty) {
|
|
9421
|
+
if (dirty & /*removeFreePlan, freePlanConnections, $app*/
|
|
9422
|
+
44) {
|
|
9423
|
+
each_value = /*freePlanConnections*/
|
|
9424
|
+
ctx2[2];
|
|
9425
|
+
let i;
|
|
9426
|
+
for (i = 0; i < each_value.length; i += 1) {
|
|
9427
|
+
const child_ctx = get_each_context$9(ctx2, each_value, i);
|
|
9428
|
+
if (each_blocks[i]) {
|
|
9429
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
9430
|
+
transition_in(each_blocks[i], 1);
|
|
9431
|
+
} else {
|
|
9432
|
+
each_blocks[i] = create_each_block$9(child_ctx);
|
|
9433
|
+
each_blocks[i].c();
|
|
9434
|
+
transition_in(each_blocks[i], 1);
|
|
9435
|
+
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
|
9436
|
+
}
|
|
9437
|
+
}
|
|
9438
|
+
group_outros();
|
|
9439
|
+
for (i = each_value.length; i < each_blocks.length; i += 1) {
|
|
9440
|
+
out(i);
|
|
9441
|
+
}
|
|
9442
|
+
check_outros();
|
|
9443
|
+
}
|
|
9444
|
+
},
|
|
9445
|
+
i(local) {
|
|
9446
|
+
if (current)
|
|
9447
|
+
return;
|
|
9448
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
9449
|
+
transition_in(each_blocks[i]);
|
|
9450
|
+
}
|
|
9451
|
+
current = true;
|
|
9452
|
+
},
|
|
9453
|
+
o(local) {
|
|
9454
|
+
each_blocks = each_blocks.filter(Boolean);
|
|
9455
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
9456
|
+
transition_out(each_blocks[i]);
|
|
9457
|
+
}
|
|
9458
|
+
current = false;
|
|
9459
|
+
},
|
|
9460
|
+
d(detaching) {
|
|
9461
|
+
if (detaching)
|
|
9462
|
+
detach(h3);
|
|
9463
|
+
if (detaching)
|
|
9464
|
+
detach(t1);
|
|
9465
|
+
destroy_each(each_blocks, detaching);
|
|
9466
|
+
if (detaching)
|
|
9467
|
+
detach(each_1_anchor);
|
|
9468
|
+
}
|
|
9469
|
+
};
|
|
9470
|
+
}
|
|
9471
|
+
function create_each_block$9(ctx) {
|
|
9472
|
+
let div1;
|
|
9473
|
+
let div0;
|
|
9474
|
+
let b;
|
|
9475
|
+
let t0_value = (
|
|
9476
|
+
/*$app*/
|
|
9477
|
+
ctx[3].plans.find(func_12).name + ""
|
|
9478
|
+
);
|
|
9479
|
+
let t0;
|
|
9480
|
+
let t1;
|
|
9481
|
+
let textbutton;
|
|
9482
|
+
let t2;
|
|
9483
|
+
let current;
|
|
9484
|
+
function func_12(...args) {
|
|
9485
|
+
return (
|
|
9486
|
+
/*func_1*/
|
|
9487
|
+
ctx[9](
|
|
9488
|
+
/*memberPlan*/
|
|
9489
|
+
ctx[11],
|
|
9490
|
+
...args
|
|
9491
|
+
)
|
|
9492
|
+
);
|
|
9493
|
+
}
|
|
9494
|
+
function func_22() {
|
|
9495
|
+
return (
|
|
9496
|
+
/*func_2*/
|
|
9497
|
+
ctx[10](
|
|
9498
|
+
/*memberPlan*/
|
|
9499
|
+
ctx[11]
|
|
9500
|
+
)
|
|
9501
|
+
);
|
|
9502
|
+
}
|
|
9503
|
+
textbutton = new TextButton({
|
|
9504
|
+
props: { buttonText: "Remove", onClick: func_22 }
|
|
9505
|
+
});
|
|
9506
|
+
return {
|
|
9507
|
+
c() {
|
|
9508
|
+
div1 = element("div");
|
|
9509
|
+
div0 = element("div");
|
|
9510
|
+
b = element("b");
|
|
9511
|
+
t0 = text(t0_value);
|
|
9512
|
+
t1 = space();
|
|
9513
|
+
create_component(textbutton.$$.fragment);
|
|
9514
|
+
t2 = space();
|
|
9515
|
+
attr(div1, "class", "ms-modal__card");
|
|
9516
|
+
},
|
|
9517
|
+
m(target, anchor) {
|
|
9518
|
+
insert(target, div1, anchor);
|
|
9519
|
+
append(div1, div0);
|
|
9520
|
+
append(div0, b);
|
|
9521
|
+
append(b, t0);
|
|
9522
|
+
append(div1, t1);
|
|
9523
|
+
mount_component(textbutton, div1, null);
|
|
9524
|
+
append(div1, t2);
|
|
9525
|
+
current = true;
|
|
9526
|
+
},
|
|
9527
|
+
p(new_ctx, dirty) {
|
|
9528
|
+
ctx = new_ctx;
|
|
9529
|
+
if ((!current || dirty & /*$app, freePlanConnections*/
|
|
9530
|
+
12) && t0_value !== (t0_value = /*$app*/
|
|
9531
|
+
ctx[3].plans.find(func_12).name + ""))
|
|
9532
|
+
set_data(t0, t0_value);
|
|
9533
|
+
const textbutton_changes = {};
|
|
9534
|
+
if (dirty & /*freePlanConnections*/
|
|
9535
|
+
4)
|
|
9536
|
+
textbutton_changes.onClick = func_22;
|
|
9537
|
+
textbutton.$set(textbutton_changes);
|
|
9538
|
+
},
|
|
9539
|
+
i(local) {
|
|
9540
|
+
if (current)
|
|
9541
|
+
return;
|
|
9542
|
+
transition_in(textbutton.$$.fragment, local);
|
|
9543
|
+
current = true;
|
|
9544
|
+
},
|
|
9545
|
+
o(local) {
|
|
9546
|
+
transition_out(textbutton.$$.fragment, local);
|
|
9547
|
+
current = false;
|
|
9548
|
+
},
|
|
9549
|
+
d(detaching) {
|
|
9550
|
+
if (detaching)
|
|
9551
|
+
detach(div1);
|
|
9552
|
+
destroy_component(textbutton);
|
|
9553
|
+
}
|
|
9554
|
+
};
|
|
9555
|
+
}
|
|
9556
|
+
function create_if_block$n(ctx) {
|
|
9557
|
+
let div;
|
|
9558
|
+
return {
|
|
9559
|
+
c() {
|
|
9560
|
+
div = element("div");
|
|
9561
|
+
div.textContent = "You currently have free no plans.";
|
|
9562
|
+
},
|
|
9563
|
+
m(target, anchor) {
|
|
9564
|
+
insert(target, div, anchor);
|
|
9565
|
+
},
|
|
9223
9566
|
d(detaching) {
|
|
9224
9567
|
if (detaching)
|
|
9225
9568
|
detach(div);
|
|
9226
9569
|
}
|
|
9227
9570
|
};
|
|
9228
9571
|
}
|
|
9229
|
-
function create_fragment$
|
|
9572
|
+
function create_fragment$N(ctx) {
|
|
9230
9573
|
let div;
|
|
9231
9574
|
let t1;
|
|
9232
9575
|
let t2;
|
|
9233
9576
|
let t3;
|
|
9234
|
-
let
|
|
9577
|
+
let t4;
|
|
9578
|
+
let if_block3_anchor;
|
|
9235
9579
|
let current;
|
|
9236
9580
|
let if_block0 = (
|
|
9237
9581
|
/*member*/
|
|
9238
|
-
ctx[0].stripeCustomerId &&
|
|
9582
|
+
ctx[0].stripeCustomerId && create_if_block_3$9(ctx)
|
|
9239
9583
|
);
|
|
9240
9584
|
let if_block1 = (
|
|
9585
|
+
/*joinedTeams*/
|
|
9586
|
+
ctx[1].length > 0 && create_if_block_2$d(ctx)
|
|
9587
|
+
);
|
|
9588
|
+
let if_block2 = (
|
|
9241
9589
|
/*freePlanConnections*/
|
|
9242
|
-
ctx[
|
|
9590
|
+
ctx[2].length > 0 && create_if_block_1$h(ctx)
|
|
9243
9591
|
);
|
|
9244
|
-
let
|
|
9592
|
+
let if_block3 = !/*member*/
|
|
9245
9593
|
ctx[0].stripeCustomerId && /*freePlanConnections*/
|
|
9246
|
-
ctx[
|
|
9594
|
+
ctx[2].length === 0 && create_if_block$n();
|
|
9247
9595
|
return {
|
|
9248
9596
|
c() {
|
|
9249
9597
|
div = element("div");
|
|
@@ -9257,7 +9605,10 @@ function create_fragment$L(ctx) {
|
|
|
9257
9605
|
t3 = space();
|
|
9258
9606
|
if (if_block2)
|
|
9259
9607
|
if_block2.c();
|
|
9260
|
-
|
|
9608
|
+
t4 = space();
|
|
9609
|
+
if (if_block3)
|
|
9610
|
+
if_block3.c();
|
|
9611
|
+
if_block3_anchor = empty();
|
|
9261
9612
|
attr(div, "class", "ms-modal__title-container");
|
|
9262
9613
|
},
|
|
9263
9614
|
m(target, anchor) {
|
|
@@ -9266,166 +9617,1288 @@ function create_fragment$L(ctx) {
|
|
|
9266
9617
|
if (if_block0)
|
|
9267
9618
|
if_block0.m(target, anchor);
|
|
9268
9619
|
insert(target, t2, anchor);
|
|
9269
|
-
if (if_block1)
|
|
9270
|
-
if_block1.m(target, anchor);
|
|
9271
|
-
insert(target, t3, anchor);
|
|
9272
|
-
if (if_block2)
|
|
9273
|
-
if_block2.m(target, anchor);
|
|
9274
|
-
insert(target,
|
|
9620
|
+
if (if_block1)
|
|
9621
|
+
if_block1.m(target, anchor);
|
|
9622
|
+
insert(target, t3, anchor);
|
|
9623
|
+
if (if_block2)
|
|
9624
|
+
if_block2.m(target, anchor);
|
|
9625
|
+
insert(target, t4, anchor);
|
|
9626
|
+
if (if_block3)
|
|
9627
|
+
if_block3.m(target, anchor);
|
|
9628
|
+
insert(target, if_block3_anchor, anchor);
|
|
9629
|
+
current = true;
|
|
9630
|
+
},
|
|
9631
|
+
p(ctx2, [dirty]) {
|
|
9632
|
+
if (
|
|
9633
|
+
/*member*/
|
|
9634
|
+
ctx2[0].stripeCustomerId
|
|
9635
|
+
) {
|
|
9636
|
+
if (if_block0) {
|
|
9637
|
+
if_block0.p(ctx2, dirty);
|
|
9638
|
+
if (dirty & /*member*/
|
|
9639
|
+
1) {
|
|
9640
|
+
transition_in(if_block0, 1);
|
|
9641
|
+
}
|
|
9642
|
+
} else {
|
|
9643
|
+
if_block0 = create_if_block_3$9(ctx2);
|
|
9644
|
+
if_block0.c();
|
|
9645
|
+
transition_in(if_block0, 1);
|
|
9646
|
+
if_block0.m(t2.parentNode, t2);
|
|
9647
|
+
}
|
|
9648
|
+
} else if (if_block0) {
|
|
9649
|
+
group_outros();
|
|
9650
|
+
transition_out(if_block0, 1, 1, () => {
|
|
9651
|
+
if_block0 = null;
|
|
9652
|
+
});
|
|
9653
|
+
check_outros();
|
|
9654
|
+
}
|
|
9655
|
+
if (
|
|
9656
|
+
/*joinedTeams*/
|
|
9657
|
+
ctx2[1].length > 0
|
|
9658
|
+
) {
|
|
9659
|
+
if (if_block1) {
|
|
9660
|
+
if_block1.p(ctx2, dirty);
|
|
9661
|
+
if (dirty & /*joinedTeams*/
|
|
9662
|
+
2) {
|
|
9663
|
+
transition_in(if_block1, 1);
|
|
9664
|
+
}
|
|
9665
|
+
} else {
|
|
9666
|
+
if_block1 = create_if_block_2$d(ctx2);
|
|
9667
|
+
if_block1.c();
|
|
9668
|
+
transition_in(if_block1, 1);
|
|
9669
|
+
if_block1.m(t3.parentNode, t3);
|
|
9670
|
+
}
|
|
9671
|
+
} else if (if_block1) {
|
|
9672
|
+
group_outros();
|
|
9673
|
+
transition_out(if_block1, 1, 1, () => {
|
|
9674
|
+
if_block1 = null;
|
|
9675
|
+
});
|
|
9676
|
+
check_outros();
|
|
9677
|
+
}
|
|
9678
|
+
if (
|
|
9679
|
+
/*freePlanConnections*/
|
|
9680
|
+
ctx2[2].length > 0
|
|
9681
|
+
) {
|
|
9682
|
+
if (if_block2) {
|
|
9683
|
+
if_block2.p(ctx2, dirty);
|
|
9684
|
+
if (dirty & /*freePlanConnections*/
|
|
9685
|
+
4) {
|
|
9686
|
+
transition_in(if_block2, 1);
|
|
9687
|
+
}
|
|
9688
|
+
} else {
|
|
9689
|
+
if_block2 = create_if_block_1$h(ctx2);
|
|
9690
|
+
if_block2.c();
|
|
9691
|
+
transition_in(if_block2, 1);
|
|
9692
|
+
if_block2.m(t4.parentNode, t4);
|
|
9693
|
+
}
|
|
9694
|
+
} else if (if_block2) {
|
|
9695
|
+
group_outros();
|
|
9696
|
+
transition_out(if_block2, 1, 1, () => {
|
|
9697
|
+
if_block2 = null;
|
|
9698
|
+
});
|
|
9699
|
+
check_outros();
|
|
9700
|
+
}
|
|
9701
|
+
if (!/*member*/
|
|
9702
|
+
ctx2[0].stripeCustomerId && /*freePlanConnections*/
|
|
9703
|
+
ctx2[2].length === 0) {
|
|
9704
|
+
if (if_block3)
|
|
9705
|
+
;
|
|
9706
|
+
else {
|
|
9707
|
+
if_block3 = create_if_block$n();
|
|
9708
|
+
if_block3.c();
|
|
9709
|
+
if_block3.m(if_block3_anchor.parentNode, if_block3_anchor);
|
|
9710
|
+
}
|
|
9711
|
+
} else if (if_block3) {
|
|
9712
|
+
if_block3.d(1);
|
|
9713
|
+
if_block3 = null;
|
|
9714
|
+
}
|
|
9715
|
+
},
|
|
9716
|
+
i(local) {
|
|
9717
|
+
if (current)
|
|
9718
|
+
return;
|
|
9719
|
+
transition_in(if_block0);
|
|
9720
|
+
transition_in(if_block1);
|
|
9721
|
+
transition_in(if_block2);
|
|
9722
|
+
current = true;
|
|
9723
|
+
},
|
|
9724
|
+
o(local) {
|
|
9725
|
+
transition_out(if_block0);
|
|
9726
|
+
transition_out(if_block1);
|
|
9727
|
+
transition_out(if_block2);
|
|
9728
|
+
current = false;
|
|
9729
|
+
},
|
|
9730
|
+
d(detaching) {
|
|
9731
|
+
if (detaching)
|
|
9732
|
+
detach(div);
|
|
9733
|
+
if (detaching)
|
|
9734
|
+
detach(t1);
|
|
9735
|
+
if (if_block0)
|
|
9736
|
+
if_block0.d(detaching);
|
|
9737
|
+
if (detaching)
|
|
9738
|
+
detach(t2);
|
|
9739
|
+
if (if_block1)
|
|
9740
|
+
if_block1.d(detaching);
|
|
9741
|
+
if (detaching)
|
|
9742
|
+
detach(t3);
|
|
9743
|
+
if (if_block2)
|
|
9744
|
+
if_block2.d(detaching);
|
|
9745
|
+
if (detaching)
|
|
9746
|
+
detach(t4);
|
|
9747
|
+
if (if_block3)
|
|
9748
|
+
if_block3.d(detaching);
|
|
9749
|
+
if (detaching)
|
|
9750
|
+
detach(if_block3_anchor);
|
|
9751
|
+
}
|
|
9752
|
+
};
|
|
9753
|
+
}
|
|
9754
|
+
function instance$q($$self, $$props, $$invalidate) {
|
|
9755
|
+
let freePlanConnections;
|
|
9756
|
+
let joinedTeams;
|
|
9757
|
+
let $app;
|
|
9758
|
+
component_subscribe($$self, AppStore, ($$value) => $$invalidate(3, $app = $$value));
|
|
9759
|
+
let { profileLoader } = $$props;
|
|
9760
|
+
let { member } = $$props;
|
|
9761
|
+
function launchPortal(e) {
|
|
9762
|
+
return __async(this, null, function* () {
|
|
9763
|
+
$$invalidate(7, profileLoader = true);
|
|
9764
|
+
yield window.$memberstackDom.launchStripeCustomerPortal({ priceIds: [], autoRedirect: true });
|
|
9765
|
+
});
|
|
9766
|
+
}
|
|
9767
|
+
function removeFreePlan(planId) {
|
|
9768
|
+
return __async(this, null, function* () {
|
|
9769
|
+
$$invalidate(7, profileLoader = true);
|
|
9770
|
+
try {
|
|
9771
|
+
yield window.$memberstackDom.removePlan({ planId });
|
|
9772
|
+
$$invalidate(0, member.planConnections = member.planConnections.filter((plan) => plan.planId !== planId), member);
|
|
9773
|
+
} catch (err) {
|
|
9774
|
+
console.log(err);
|
|
9775
|
+
window.$memberstackDom._showMessage(err.message, true);
|
|
9776
|
+
} finally {
|
|
9777
|
+
$$invalidate(7, profileLoader = false);
|
|
9778
|
+
}
|
|
9779
|
+
});
|
|
9780
|
+
}
|
|
9781
|
+
function removeMemberFromTeam(teamId, memberId) {
|
|
9782
|
+
return __async(this, null, function* () {
|
|
9783
|
+
try {
|
|
9784
|
+
yield window.$memberstackDom.removeMemberFromTeam({ teamId, memberId });
|
|
9785
|
+
$$invalidate(0, member.teams.joinedTeams = member.teams.joinedTeams.filter((t) => t.teamId !== teamId), member);
|
|
9786
|
+
} catch (err) {
|
|
9787
|
+
window.$memberstackDom._showMessage(err.message, true);
|
|
9788
|
+
}
|
|
9789
|
+
});
|
|
9790
|
+
}
|
|
9791
|
+
const func2 = (team) => removeMemberFromTeam(team.teamId, member.id);
|
|
9792
|
+
const func_12 = (memberPlan, plan) => plan.id === memberPlan.planId;
|
|
9793
|
+
const func_22 = (memberPlan) => removeFreePlan(memberPlan.planId);
|
|
9794
|
+
$$self.$$set = ($$props2) => {
|
|
9795
|
+
if ("profileLoader" in $$props2)
|
|
9796
|
+
$$invalidate(7, profileLoader = $$props2.profileLoader);
|
|
9797
|
+
if ("member" in $$props2)
|
|
9798
|
+
$$invalidate(0, member = $$props2.member);
|
|
9799
|
+
};
|
|
9800
|
+
$$self.$$.update = () => {
|
|
9801
|
+
var _a;
|
|
9802
|
+
if ($$self.$$.dirty & /*member*/
|
|
9803
|
+
1) {
|
|
9804
|
+
$$invalidate(2, freePlanConnections = member.planConnections.filter((plan) => plan.type === "FREE"));
|
|
9805
|
+
}
|
|
9806
|
+
if ($$self.$$.dirty & /*member*/
|
|
9807
|
+
1) {
|
|
9808
|
+
$$invalidate(1, joinedTeams = (_a = member.teams) == null ? void 0 : _a.joinedTeams);
|
|
9809
|
+
}
|
|
9810
|
+
};
|
|
9811
|
+
return [
|
|
9812
|
+
member,
|
|
9813
|
+
joinedTeams,
|
|
9814
|
+
freePlanConnections,
|
|
9815
|
+
$app,
|
|
9816
|
+
launchPortal,
|
|
9817
|
+
removeFreePlan,
|
|
9818
|
+
removeMemberFromTeam,
|
|
9819
|
+
profileLoader,
|
|
9820
|
+
func2,
|
|
9821
|
+
func_12,
|
|
9822
|
+
func_22
|
|
9823
|
+
];
|
|
9824
|
+
}
|
|
9825
|
+
var PlansInfoContent = class extends SvelteComponent {
|
|
9826
|
+
constructor(options) {
|
|
9827
|
+
super();
|
|
9828
|
+
init(this, options, instance$q, create_fragment$N, safe_not_equal, { profileLoader: 7, member: 0 });
|
|
9829
|
+
}
|
|
9830
|
+
};
|
|
9831
|
+
function add_css$k(target) {
|
|
9832
|
+
append_styles(target, "svelte-c6ihgv", "svg.svelte-c6ihgv{fill:currentColor}");
|
|
9833
|
+
}
|
|
9834
|
+
function create_fragment$M(ctx) {
|
|
9835
|
+
let svg;
|
|
9836
|
+
let path;
|
|
9837
|
+
return {
|
|
9838
|
+
c() {
|
|
9839
|
+
svg = svg_element("svg");
|
|
9840
|
+
path = svg_element("path");
|
|
9841
|
+
attr(path, "d", "M226.783-133.782q-38.363 0-65.682-27.319-27.319-27.319-27.319-65.682v-506.434q0-38.363 27.319-65.682 27.319-27.319 65.682-27.319h151.521q10.391-32.696 37.688-53.261 27.296-20.566 64.008-20.566 34.326 0 62.283 20.566 27.957 20.565 38.913 53.261h152.021q38.363 0 65.682 27.319 27.319 27.319 27.319 65.682v506.434q0 38.363-27.319 65.682-27.319 27.319-65.682 27.319H226.783Zm0-93.001h506.434v-506.434h-63.043v75.043q0 18.887-13.807 32.694-13.807 13.807-32.694 13.807H336.327q-18.887 0-32.694-13.807-13.807-13.807-13.807-32.694v-75.043h-63.043v506.434Zm253.006-518.913q13.711 0 23.711-9.789 10-9.79 10-23.5 0-13.711-9.789-23.711-9.79-10-23.5-10-13.711 0-23.711 9.79-10 9.789-10 23.5 0 13.71 9.789 23.71 9.79 10 23.5 10Z");
|
|
9842
|
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
9843
|
+
attr(svg, "height", "20");
|
|
9844
|
+
attr(svg, "viewBox", "0 -960 960 960");
|
|
9845
|
+
attr(svg, "width", "20");
|
|
9846
|
+
attr(svg, "class", "svelte-c6ihgv");
|
|
9847
|
+
},
|
|
9848
|
+
m(target, anchor) {
|
|
9849
|
+
insert(target, svg, anchor);
|
|
9850
|
+
append(svg, path);
|
|
9851
|
+
},
|
|
9852
|
+
p: noop,
|
|
9853
|
+
i: noop,
|
|
9854
|
+
o: noop,
|
|
9855
|
+
d(detaching) {
|
|
9856
|
+
if (detaching)
|
|
9857
|
+
detach(svg);
|
|
9858
|
+
}
|
|
9859
|
+
};
|
|
9860
|
+
}
|
|
9861
|
+
var CopyIcon$1 = class extends SvelteComponent {
|
|
9862
|
+
constructor(options) {
|
|
9863
|
+
super();
|
|
9864
|
+
init(this, options, null, create_fragment$M, safe_not_equal, {}, add_css$k);
|
|
9865
|
+
}
|
|
9866
|
+
};
|
|
9867
|
+
function create_fragment$L(ctx) {
|
|
9868
|
+
let svg;
|
|
9869
|
+
let path;
|
|
9870
|
+
return {
|
|
9871
|
+
c() {
|
|
9872
|
+
svg = svg_element("svg");
|
|
9873
|
+
path = svg_element("path");
|
|
9874
|
+
attr(path, "fill", "currentColor");
|
|
9875
|
+
attr(path, "d", "M109-120q-11 0-20-5.5T75-140q-5-9-5.5-19.5T75-180l370-640q6-10 15.5-15t19.5-5q10 0 19.5 5t15.5 15l370 640q6 10 5.5 20.5T885-140q-5 9-14 14.5t-20 5.5H109Zm371-120q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm0-120q17 0 28.5-11.5T520-400v-120q0-17-11.5-28.5T480-560q-17 0-28.5 11.5T440-520v120q0 17 11.5 28.5T480-360Z");
|
|
9876
|
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
9877
|
+
attr(svg, "height", "24");
|
|
9878
|
+
attr(svg, "viewBox", "0 -960 960 960");
|
|
9879
|
+
attr(svg, "width", "24");
|
|
9880
|
+
},
|
|
9881
|
+
m(target, anchor) {
|
|
9882
|
+
insert(target, svg, anchor);
|
|
9883
|
+
append(svg, path);
|
|
9884
|
+
},
|
|
9885
|
+
p: noop,
|
|
9886
|
+
i: noop,
|
|
9887
|
+
o: noop,
|
|
9888
|
+
d(detaching) {
|
|
9889
|
+
if (detaching)
|
|
9890
|
+
detach(svg);
|
|
9891
|
+
}
|
|
9892
|
+
};
|
|
9893
|
+
}
|
|
9894
|
+
var WarningIcon$1 = class extends SvelteComponent {
|
|
9895
|
+
constructor(options) {
|
|
9896
|
+
super();
|
|
9897
|
+
init(this, options, null, create_fragment$L, safe_not_equal, {});
|
|
9898
|
+
}
|
|
9899
|
+
};
|
|
9900
|
+
function add_css$j(target) {
|
|
9901
|
+
append_styles(target, "svelte-1haqb7b", ".ms-modal__title-container--teams.svelte-1haqb7b{display:flex;justify-content:flex-start;align-items:baseline;margin-bottom:24px;gap:12px}.ms-modal__title--teams.svelte-1haqb7b{margin-bottom:0px}.ms-modal__title--seats.svelte-1haqb7b{font-size:14px;line-height:1;font-weight:500;color:#5c5c5c}.ms-modal__invite-group.svelte-1haqb7b{margin-bottom:24px}.ms-modal__invite-input-group.svelte-1haqb7b{display:flex;gap:12px;border:1px solid #ddd;border-radius:6px;justify-content:space-between;align-items:center;padding:6px}.ms-modal__invite-input.svelte-1haqb7b{border:none;background:none;outline:none;width:100%;font-size:12px;padding:8px 0;text-overflow:ellipsis}.ms-modal__invite-copy-btn.svelte-1haqb7b{font-size:14px;font-weight:700;line-height:1;color:#fff;background-color:#2962ff;border-radius:4px;display:flex;align-items:center;padding:8px 12px;gap:6px}.ms-modal__invite-copy-btn svg{margin-right:4px;width:16px}.ms-modal__invite-regenerate-btn.svelte-1haqb7b{font-size:12px;font-weight:600;line-height:1;color:#2962ff;background-color:transparent;border:none;outline:none;padding:4px 0}.ms-modal__upgrade-warning.svelte-1haqb7b{display:flex;align-items:center;gap:12px;padding:12px;border-radius:8px;font-size:14px;font-weight:500;line-height:1;color:#e28c0a;background-color:#faf3e1;width:100%;text-align:left}.ms-modal__upgrade-warning-text.svelte-1haqb7b{width:100%}.ms-modal__team-member.svelte-1haqb7b{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #ebebeb}.ms-modal__team-member.svelte-1haqb7b:last-child{border-bottom:none}.ms-modal__team-member-info.svelte-1haqb7b{display:flex;align-items:center}.ms-modal__team-member-image.svelte-1haqb7b{width:32px;height:32px;border-radius:50%;margin-right:10px}.ms-modal__team-member-image--initial.svelte-1haqb7b{width:32px;height:32px;border-radius:50%;border:1.33px solid #2962ff;margin-right:12px;display:flex;justify-content:center;align-items:center;background-color:#e7f1ff;color:#2962ff;font-size:18px;font-weight:500;line-height:1}.ms-modal__team-member-email.svelte-1haqb7b{font-size:14px;font-weight:500;line-height:1;color:#5c5c5c}.ms-modal__team-member-actions.svelte-1haqb7b{display:flex;align-items:center}.ms-modal__team-member-role.svelte-1haqb7b{font-size:12px;font-weight:500;line-height:1;color:#5c5c5c}.ms-modal__team-member-remove-btn.svelte-1haqb7b{font-size:12px;font-weight:600;line-height:1;color:#c8020d;background-color:transparent;border:none;outline:none;padding:4px 0;display:flex;align-items:center;margin-left:8px}.ms-modal__team-member-remove-text.svelte-1haqb7b{margin-right:8px}.ms-modal__team-member-remove-btn svg{width:10px !important}");
|
|
9902
|
+
}
|
|
9903
|
+
function get_each_context$8(ctx, list, i) {
|
|
9904
|
+
const child_ctx = ctx.slice();
|
|
9905
|
+
child_ctx[15] = list[i];
|
|
9906
|
+
return child_ctx;
|
|
9907
|
+
}
|
|
9908
|
+
function create_if_block_5$5(ctx) {
|
|
9909
|
+
var _a, _b;
|
|
9910
|
+
let div;
|
|
9911
|
+
let t0_value = (
|
|
9912
|
+
/*teamData*/
|
|
9913
|
+
((_a = ctx[0]) == null ? void 0 : _a.members.length) + ""
|
|
9914
|
+
);
|
|
9915
|
+
let t0;
|
|
9916
|
+
let t1;
|
|
9917
|
+
let t2_value = (
|
|
9918
|
+
/*teamData*/
|
|
9919
|
+
((_b = ctx[0]) == null ? void 0 : _b.maxTeamMembers) + ""
|
|
9920
|
+
);
|
|
9921
|
+
let t2;
|
|
9922
|
+
let t3;
|
|
9923
|
+
return {
|
|
9924
|
+
c() {
|
|
9925
|
+
div = element("div");
|
|
9926
|
+
t0 = text(t0_value);
|
|
9927
|
+
t1 = text("/");
|
|
9928
|
+
t2 = text(t2_value);
|
|
9929
|
+
t3 = text(" Seats");
|
|
9930
|
+
attr(div, "class", "ms-modal__title--seats svelte-1haqb7b");
|
|
9931
|
+
},
|
|
9932
|
+
m(target, anchor) {
|
|
9933
|
+
insert(target, div, anchor);
|
|
9934
|
+
append(div, t0);
|
|
9935
|
+
append(div, t1);
|
|
9936
|
+
append(div, t2);
|
|
9937
|
+
append(div, t3);
|
|
9938
|
+
},
|
|
9939
|
+
p(ctx2, dirty) {
|
|
9940
|
+
var _a2, _b2;
|
|
9941
|
+
if (dirty & /*teamData*/
|
|
9942
|
+
1 && t0_value !== (t0_value = /*teamData*/
|
|
9943
|
+
((_a2 = ctx2[0]) == null ? void 0 : _a2.members.length) + ""))
|
|
9944
|
+
set_data(t0, t0_value);
|
|
9945
|
+
if (dirty & /*teamData*/
|
|
9946
|
+
1 && t2_value !== (t2_value = /*teamData*/
|
|
9947
|
+
((_b2 = ctx2[0]) == null ? void 0 : _b2.maxTeamMembers) + ""))
|
|
9948
|
+
set_data(t2, t2_value);
|
|
9949
|
+
},
|
|
9950
|
+
d(detaching) {
|
|
9951
|
+
if (detaching)
|
|
9952
|
+
detach(div);
|
|
9953
|
+
}
|
|
9954
|
+
};
|
|
9955
|
+
}
|
|
9956
|
+
function create_catch_block(ctx) {
|
|
9957
|
+
return {
|
|
9958
|
+
c: noop,
|
|
9959
|
+
m: noop,
|
|
9960
|
+
p: noop,
|
|
9961
|
+
i: noop,
|
|
9962
|
+
o: noop,
|
|
9963
|
+
d: noop
|
|
9964
|
+
};
|
|
9965
|
+
}
|
|
9966
|
+
function create_then_block(ctx) {
|
|
9967
|
+
let current_block_type_index;
|
|
9968
|
+
let if_block0;
|
|
9969
|
+
let t;
|
|
9970
|
+
let if_block1_anchor;
|
|
9971
|
+
let current;
|
|
9972
|
+
const if_block_creators = [create_if_block_4$6, create_else_block_2$1];
|
|
9973
|
+
const if_blocks = [];
|
|
9974
|
+
function select_block_type(ctx2, dirty) {
|
|
9975
|
+
var _a, _b;
|
|
9976
|
+
if (
|
|
9977
|
+
/*teamData*/
|
|
9978
|
+
((_a = ctx2[0]) == null ? void 0 : _a.members.length) < /*teamData*/
|
|
9979
|
+
((_b = ctx2[0]) == null ? void 0 : _b.maxTeamMembers)
|
|
9980
|
+
)
|
|
9981
|
+
return 0;
|
|
9982
|
+
return 1;
|
|
9983
|
+
}
|
|
9984
|
+
current_block_type_index = select_block_type(ctx);
|
|
9985
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
9986
|
+
let if_block1 = (
|
|
9987
|
+
/*teamData*/
|
|
9988
|
+
ctx[0] && /*teamData*/
|
|
9989
|
+
ctx[0].members.length > 0 && create_if_block$m(ctx)
|
|
9990
|
+
);
|
|
9991
|
+
return {
|
|
9992
|
+
c() {
|
|
9993
|
+
if_block0.c();
|
|
9994
|
+
t = space();
|
|
9995
|
+
if (if_block1)
|
|
9996
|
+
if_block1.c();
|
|
9997
|
+
if_block1_anchor = empty();
|
|
9998
|
+
},
|
|
9999
|
+
m(target, anchor) {
|
|
10000
|
+
if_blocks[current_block_type_index].m(target, anchor);
|
|
10001
|
+
insert(target, t, anchor);
|
|
10002
|
+
if (if_block1)
|
|
10003
|
+
if_block1.m(target, anchor);
|
|
10004
|
+
insert(target, if_block1_anchor, anchor);
|
|
10005
|
+
current = true;
|
|
10006
|
+
},
|
|
10007
|
+
p(ctx2, dirty) {
|
|
10008
|
+
let previous_block_index = current_block_type_index;
|
|
10009
|
+
current_block_type_index = select_block_type(ctx2);
|
|
10010
|
+
if (current_block_type_index === previous_block_index) {
|
|
10011
|
+
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
10012
|
+
} else {
|
|
10013
|
+
group_outros();
|
|
10014
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
10015
|
+
if_blocks[previous_block_index] = null;
|
|
10016
|
+
});
|
|
10017
|
+
check_outros();
|
|
10018
|
+
if_block0 = if_blocks[current_block_type_index];
|
|
10019
|
+
if (!if_block0) {
|
|
10020
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
|
|
10021
|
+
if_block0.c();
|
|
10022
|
+
} else {
|
|
10023
|
+
if_block0.p(ctx2, dirty);
|
|
10024
|
+
}
|
|
10025
|
+
transition_in(if_block0, 1);
|
|
10026
|
+
if_block0.m(t.parentNode, t);
|
|
10027
|
+
}
|
|
10028
|
+
if (
|
|
10029
|
+
/*teamData*/
|
|
10030
|
+
ctx2[0] && /*teamData*/
|
|
10031
|
+
ctx2[0].members.length > 0
|
|
10032
|
+
) {
|
|
10033
|
+
if (if_block1) {
|
|
10034
|
+
if_block1.p(ctx2, dirty);
|
|
10035
|
+
if (dirty & /*teamData*/
|
|
10036
|
+
1) {
|
|
10037
|
+
transition_in(if_block1, 1);
|
|
10038
|
+
}
|
|
10039
|
+
} else {
|
|
10040
|
+
if_block1 = create_if_block$m(ctx2);
|
|
10041
|
+
if_block1.c();
|
|
10042
|
+
transition_in(if_block1, 1);
|
|
10043
|
+
if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
|
|
10044
|
+
}
|
|
10045
|
+
} else if (if_block1) {
|
|
10046
|
+
group_outros();
|
|
10047
|
+
transition_out(if_block1, 1, 1, () => {
|
|
10048
|
+
if_block1 = null;
|
|
10049
|
+
});
|
|
10050
|
+
check_outros();
|
|
10051
|
+
}
|
|
10052
|
+
},
|
|
10053
|
+
i(local) {
|
|
10054
|
+
if (current)
|
|
10055
|
+
return;
|
|
10056
|
+
transition_in(if_block0);
|
|
10057
|
+
transition_in(if_block1);
|
|
10058
|
+
current = true;
|
|
10059
|
+
},
|
|
10060
|
+
o(local) {
|
|
10061
|
+
transition_out(if_block0);
|
|
10062
|
+
transition_out(if_block1);
|
|
10063
|
+
current = false;
|
|
10064
|
+
},
|
|
10065
|
+
d(detaching) {
|
|
10066
|
+
if_blocks[current_block_type_index].d(detaching);
|
|
10067
|
+
if (detaching)
|
|
10068
|
+
detach(t);
|
|
10069
|
+
if (if_block1)
|
|
10070
|
+
if_block1.d(detaching);
|
|
10071
|
+
if (detaching)
|
|
10072
|
+
detach(if_block1_anchor);
|
|
10073
|
+
}
|
|
10074
|
+
};
|
|
10075
|
+
}
|
|
10076
|
+
function create_else_block_2$1(ctx) {
|
|
10077
|
+
let div;
|
|
10078
|
+
let warningicon;
|
|
10079
|
+
let t0;
|
|
10080
|
+
let span;
|
|
10081
|
+
let current;
|
|
10082
|
+
warningicon = new WarningIcon$1({});
|
|
10083
|
+
return {
|
|
10084
|
+
c() {
|
|
10085
|
+
div = element("div");
|
|
10086
|
+
create_component(warningicon.$$.fragment);
|
|
10087
|
+
t0 = space();
|
|
10088
|
+
span = element("span");
|
|
10089
|
+
span.textContent = "Your team is growing! Upgrade your plan for more seats.";
|
|
10090
|
+
attr(span, "class", "ms-modal__upgrade-warning-text svelte-1haqb7b");
|
|
10091
|
+
attr(div, "class", "ms-modal__upgrade-warning svelte-1haqb7b");
|
|
10092
|
+
},
|
|
10093
|
+
m(target, anchor) {
|
|
10094
|
+
insert(target, div, anchor);
|
|
10095
|
+
mount_component(warningicon, div, null);
|
|
10096
|
+
append(div, t0);
|
|
10097
|
+
append(div, span);
|
|
10098
|
+
current = true;
|
|
10099
|
+
},
|
|
10100
|
+
p: noop,
|
|
10101
|
+
i(local) {
|
|
10102
|
+
if (current)
|
|
10103
|
+
return;
|
|
10104
|
+
transition_in(warningicon.$$.fragment, local);
|
|
10105
|
+
current = true;
|
|
10106
|
+
},
|
|
10107
|
+
o(local) {
|
|
10108
|
+
transition_out(warningicon.$$.fragment, local);
|
|
10109
|
+
current = false;
|
|
10110
|
+
},
|
|
10111
|
+
d(detaching) {
|
|
10112
|
+
if (detaching)
|
|
10113
|
+
detach(div);
|
|
10114
|
+
destroy_component(warningicon);
|
|
10115
|
+
}
|
|
10116
|
+
};
|
|
10117
|
+
}
|
|
10118
|
+
function create_if_block_4$6(ctx) {
|
|
10119
|
+
let div1;
|
|
10120
|
+
let div0;
|
|
10121
|
+
let input;
|
|
10122
|
+
let t0;
|
|
10123
|
+
let button0;
|
|
10124
|
+
let copyicon;
|
|
10125
|
+
let t1;
|
|
10126
|
+
let t2;
|
|
10127
|
+
let t3;
|
|
10128
|
+
let button1;
|
|
10129
|
+
let current;
|
|
10130
|
+
let mounted;
|
|
10131
|
+
let dispose;
|
|
10132
|
+
copyicon = new CopyIcon$1({});
|
|
10133
|
+
return {
|
|
10134
|
+
c() {
|
|
10135
|
+
div1 = element("div");
|
|
10136
|
+
div0 = element("div");
|
|
10137
|
+
input = element("input");
|
|
10138
|
+
t0 = space();
|
|
10139
|
+
button0 = element("button");
|
|
10140
|
+
create_component(copyicon.$$.fragment);
|
|
10141
|
+
t1 = space();
|
|
10142
|
+
t2 = text(
|
|
10143
|
+
/*copyInviteText*/
|
|
10144
|
+
ctx[2]
|
|
10145
|
+
);
|
|
10146
|
+
t3 = space();
|
|
10147
|
+
button1 = element("button");
|
|
10148
|
+
button1.textContent = "Regenerate Invite Link";
|
|
10149
|
+
attr(input, "type", "text");
|
|
10150
|
+
attr(input, "class", "ms-modal__invite-input svelte-1haqb7b");
|
|
10151
|
+
input.value = /*inviteLink*/
|
|
10152
|
+
ctx[3];
|
|
10153
|
+
input.readOnly = true;
|
|
10154
|
+
attr(button0, "class", "ms-modal__invite-copy-btn svelte-1haqb7b");
|
|
10155
|
+
attr(div0, "class", "ms-modal__invite-input-group svelte-1haqb7b");
|
|
10156
|
+
attr(button1, "class", "ms-modal__invite-regenerate-btn svelte-1haqb7b");
|
|
10157
|
+
attr(div1, "class", "ms-modal__invite-group svelte-1haqb7b");
|
|
10158
|
+
},
|
|
10159
|
+
m(target, anchor) {
|
|
10160
|
+
insert(target, div1, anchor);
|
|
10161
|
+
append(div1, div0);
|
|
10162
|
+
append(div0, input);
|
|
10163
|
+
append(div0, t0);
|
|
10164
|
+
append(div0, button0);
|
|
10165
|
+
mount_component(copyicon, button0, null);
|
|
10166
|
+
append(button0, t1);
|
|
10167
|
+
append(button0, t2);
|
|
10168
|
+
append(div1, t3);
|
|
10169
|
+
append(div1, button1);
|
|
10170
|
+
current = true;
|
|
10171
|
+
if (!mounted) {
|
|
10172
|
+
dispose = [
|
|
10173
|
+
listen(
|
|
10174
|
+
button0,
|
|
10175
|
+
"click",
|
|
10176
|
+
/*click_handler*/
|
|
10177
|
+
ctx[10]
|
|
10178
|
+
),
|
|
10179
|
+
listen(
|
|
10180
|
+
button1,
|
|
10181
|
+
"click",
|
|
10182
|
+
/*click_handler_1*/
|
|
10183
|
+
ctx[11]
|
|
10184
|
+
)
|
|
10185
|
+
];
|
|
10186
|
+
mounted = true;
|
|
10187
|
+
}
|
|
10188
|
+
},
|
|
10189
|
+
p(ctx2, dirty) {
|
|
10190
|
+
if (!current || dirty & /*inviteLink*/
|
|
10191
|
+
8 && input.value !== /*inviteLink*/
|
|
10192
|
+
ctx2[3]) {
|
|
10193
|
+
input.value = /*inviteLink*/
|
|
10194
|
+
ctx2[3];
|
|
10195
|
+
}
|
|
10196
|
+
if (!current || dirty & /*copyInviteText*/
|
|
10197
|
+
4)
|
|
10198
|
+
set_data(
|
|
10199
|
+
t2,
|
|
10200
|
+
/*copyInviteText*/
|
|
10201
|
+
ctx2[2]
|
|
10202
|
+
);
|
|
10203
|
+
},
|
|
10204
|
+
i(local) {
|
|
10205
|
+
if (current)
|
|
10206
|
+
return;
|
|
10207
|
+
transition_in(copyicon.$$.fragment, local);
|
|
10208
|
+
current = true;
|
|
10209
|
+
},
|
|
10210
|
+
o(local) {
|
|
10211
|
+
transition_out(copyicon.$$.fragment, local);
|
|
10212
|
+
current = false;
|
|
10213
|
+
},
|
|
10214
|
+
d(detaching) {
|
|
10215
|
+
if (detaching)
|
|
10216
|
+
detach(div1);
|
|
10217
|
+
destroy_component(copyicon);
|
|
10218
|
+
mounted = false;
|
|
10219
|
+
run_all(dispose);
|
|
10220
|
+
}
|
|
10221
|
+
};
|
|
10222
|
+
}
|
|
10223
|
+
function create_if_block$m(ctx) {
|
|
10224
|
+
let div;
|
|
10225
|
+
let each_blocks = [];
|
|
10226
|
+
let each_1_lookup = /* @__PURE__ */ new Map();
|
|
10227
|
+
let current;
|
|
10228
|
+
let each_value = (
|
|
10229
|
+
/*teamData*/
|
|
10230
|
+
ctx[0].members
|
|
10231
|
+
);
|
|
10232
|
+
const get_key = (ctx2) => (
|
|
10233
|
+
/*m*/
|
|
10234
|
+
ctx2[15].member.id
|
|
10235
|
+
);
|
|
10236
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
10237
|
+
let child_ctx = get_each_context$8(ctx, each_value, i);
|
|
10238
|
+
let key = get_key(child_ctx);
|
|
10239
|
+
each_1_lookup.set(key, each_blocks[i] = create_each_block$8(key, child_ctx));
|
|
10240
|
+
}
|
|
10241
|
+
return {
|
|
10242
|
+
c() {
|
|
10243
|
+
div = element("div");
|
|
10244
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
10245
|
+
each_blocks[i].c();
|
|
10246
|
+
}
|
|
10247
|
+
attr(div, "class", "ms-modal__team-members");
|
|
10248
|
+
},
|
|
10249
|
+
m(target, anchor) {
|
|
10250
|
+
insert(target, div, anchor);
|
|
10251
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
10252
|
+
if (each_blocks[i]) {
|
|
10253
|
+
each_blocks[i].m(div, null);
|
|
10254
|
+
}
|
|
10255
|
+
}
|
|
10256
|
+
current = true;
|
|
10257
|
+
},
|
|
10258
|
+
p(ctx2, dirty) {
|
|
10259
|
+
if (dirty & /*showRemoveButton, teamData, removeMemberFromTeam*/
|
|
10260
|
+
81) {
|
|
10261
|
+
each_value = /*teamData*/
|
|
10262
|
+
ctx2[0].members;
|
|
10263
|
+
group_outros();
|
|
10264
|
+
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx2, each_value, each_1_lookup, div, outro_and_destroy_block, create_each_block$8, null, get_each_context$8);
|
|
10265
|
+
check_outros();
|
|
10266
|
+
}
|
|
10267
|
+
},
|
|
10268
|
+
i(local) {
|
|
10269
|
+
if (current)
|
|
10270
|
+
return;
|
|
10271
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
10272
|
+
transition_in(each_blocks[i]);
|
|
10273
|
+
}
|
|
10274
|
+
current = true;
|
|
10275
|
+
},
|
|
10276
|
+
o(local) {
|
|
10277
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
10278
|
+
transition_out(each_blocks[i]);
|
|
10279
|
+
}
|
|
10280
|
+
current = false;
|
|
10281
|
+
},
|
|
10282
|
+
d(detaching) {
|
|
10283
|
+
if (detaching)
|
|
10284
|
+
detach(div);
|
|
10285
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
10286
|
+
each_blocks[i].d();
|
|
10287
|
+
}
|
|
10288
|
+
}
|
|
10289
|
+
};
|
|
10290
|
+
}
|
|
10291
|
+
function create_else_block_1$3(ctx) {
|
|
10292
|
+
let img;
|
|
10293
|
+
let img_src_value;
|
|
10294
|
+
return {
|
|
10295
|
+
c() {
|
|
10296
|
+
img = element("img");
|
|
10297
|
+
attr(img, "class", "ms-modal__team-member-image svelte-1haqb7b");
|
|
10298
|
+
if (!src_url_equal(img.src, img_src_value = /*m*/
|
|
10299
|
+
ctx[15].member.profileImage))
|
|
10300
|
+
attr(img, "src", img_src_value);
|
|
10301
|
+
attr(img, "alt", "Member Profile Avatar");
|
|
10302
|
+
},
|
|
10303
|
+
m(target, anchor) {
|
|
10304
|
+
insert(target, img, anchor);
|
|
10305
|
+
},
|
|
10306
|
+
p(ctx2, dirty) {
|
|
10307
|
+
if (dirty & /*teamData*/
|
|
10308
|
+
1 && !src_url_equal(img.src, img_src_value = /*m*/
|
|
10309
|
+
ctx2[15].member.profileImage)) {
|
|
10310
|
+
attr(img, "src", img_src_value);
|
|
10311
|
+
}
|
|
10312
|
+
},
|
|
10313
|
+
d(detaching) {
|
|
10314
|
+
if (detaching)
|
|
10315
|
+
detach(img);
|
|
10316
|
+
}
|
|
10317
|
+
};
|
|
10318
|
+
}
|
|
10319
|
+
function create_if_block_3$8(ctx) {
|
|
10320
|
+
let div;
|
|
10321
|
+
let t_value = (
|
|
10322
|
+
/*m*/
|
|
10323
|
+
ctx[15].member.auth.email[0].toUpperCase() + ""
|
|
10324
|
+
);
|
|
10325
|
+
let t;
|
|
10326
|
+
return {
|
|
10327
|
+
c() {
|
|
10328
|
+
div = element("div");
|
|
10329
|
+
t = text(t_value);
|
|
10330
|
+
attr(div, "class", "ms-modal__team-member-image--initial svelte-1haqb7b");
|
|
10331
|
+
},
|
|
10332
|
+
m(target, anchor) {
|
|
10333
|
+
insert(target, div, anchor);
|
|
10334
|
+
append(div, t);
|
|
10335
|
+
},
|
|
10336
|
+
p(ctx2, dirty) {
|
|
10337
|
+
if (dirty & /*teamData*/
|
|
10338
|
+
1 && t_value !== (t_value = /*m*/
|
|
10339
|
+
ctx2[15].member.auth.email[0].toUpperCase() + ""))
|
|
10340
|
+
set_data(t, t_value);
|
|
10341
|
+
},
|
|
10342
|
+
d(detaching) {
|
|
10343
|
+
if (detaching)
|
|
10344
|
+
detach(div);
|
|
10345
|
+
}
|
|
10346
|
+
};
|
|
10347
|
+
}
|
|
10348
|
+
function create_if_block_1$g(ctx) {
|
|
10349
|
+
let current_block_type_index;
|
|
10350
|
+
let if_block;
|
|
10351
|
+
let if_block_anchor;
|
|
10352
|
+
let current;
|
|
10353
|
+
const if_block_creators = [create_if_block_2$c, create_else_block$9];
|
|
10354
|
+
const if_blocks = [];
|
|
10355
|
+
function select_block_type_2(ctx2, dirty) {
|
|
10356
|
+
if (!/*m*/
|
|
10357
|
+
ctx2[15].showRemoveButton)
|
|
10358
|
+
return 0;
|
|
10359
|
+
return 1;
|
|
10360
|
+
}
|
|
10361
|
+
current_block_type_index = select_block_type_2(ctx);
|
|
10362
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
10363
|
+
return {
|
|
10364
|
+
c() {
|
|
10365
|
+
if_block.c();
|
|
10366
|
+
if_block_anchor = empty();
|
|
10367
|
+
},
|
|
10368
|
+
m(target, anchor) {
|
|
10369
|
+
if_blocks[current_block_type_index].m(target, anchor);
|
|
10370
|
+
insert(target, if_block_anchor, anchor);
|
|
10371
|
+
current = true;
|
|
10372
|
+
},
|
|
10373
|
+
p(ctx2, dirty) {
|
|
10374
|
+
let previous_block_index = current_block_type_index;
|
|
10375
|
+
current_block_type_index = select_block_type_2(ctx2);
|
|
10376
|
+
if (current_block_type_index === previous_block_index) {
|
|
10377
|
+
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
10378
|
+
} else {
|
|
10379
|
+
group_outros();
|
|
10380
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
10381
|
+
if_blocks[previous_block_index] = null;
|
|
10382
|
+
});
|
|
10383
|
+
check_outros();
|
|
10384
|
+
if_block = if_blocks[current_block_type_index];
|
|
10385
|
+
if (!if_block) {
|
|
10386
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
|
|
10387
|
+
if_block.c();
|
|
10388
|
+
} else {
|
|
10389
|
+
if_block.p(ctx2, dirty);
|
|
10390
|
+
}
|
|
10391
|
+
transition_in(if_block, 1);
|
|
10392
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
10393
|
+
}
|
|
10394
|
+
},
|
|
10395
|
+
i(local) {
|
|
10396
|
+
if (current)
|
|
10397
|
+
return;
|
|
10398
|
+
transition_in(if_block);
|
|
10399
|
+
current = true;
|
|
10400
|
+
},
|
|
10401
|
+
o(local) {
|
|
10402
|
+
transition_out(if_block);
|
|
10403
|
+
current = false;
|
|
10404
|
+
},
|
|
10405
|
+
d(detaching) {
|
|
10406
|
+
if_blocks[current_block_type_index].d(detaching);
|
|
10407
|
+
if (detaching)
|
|
10408
|
+
detach(if_block_anchor);
|
|
10409
|
+
}
|
|
10410
|
+
};
|
|
10411
|
+
}
|
|
10412
|
+
function create_else_block$9(ctx) {
|
|
10413
|
+
let button;
|
|
10414
|
+
let span;
|
|
10415
|
+
let t1;
|
|
10416
|
+
let closeicon;
|
|
10417
|
+
let current;
|
|
10418
|
+
let mounted;
|
|
10419
|
+
let dispose;
|
|
10420
|
+
closeicon = new CloseIcon({});
|
|
10421
|
+
function click_handler_3() {
|
|
10422
|
+
return (
|
|
10423
|
+
/*click_handler_3*/
|
|
10424
|
+
ctx[13](
|
|
10425
|
+
/*m*/
|
|
10426
|
+
ctx[15]
|
|
10427
|
+
)
|
|
10428
|
+
);
|
|
10429
|
+
}
|
|
10430
|
+
return {
|
|
10431
|
+
c() {
|
|
10432
|
+
button = element("button");
|
|
10433
|
+
span = element("span");
|
|
10434
|
+
span.textContent = "Are you sure?";
|
|
10435
|
+
t1 = space();
|
|
10436
|
+
create_component(closeicon.$$.fragment);
|
|
10437
|
+
attr(span, "class", "ms-modal__team-member-remove-text svelte-1haqb7b");
|
|
10438
|
+
attr(button, "class", "ms-modal__team-member-remove-btn svelte-1haqb7b");
|
|
10439
|
+
},
|
|
10440
|
+
m(target, anchor) {
|
|
10441
|
+
insert(target, button, anchor);
|
|
10442
|
+
append(button, span);
|
|
10443
|
+
append(button, t1);
|
|
10444
|
+
mount_component(closeicon, button, null);
|
|
10445
|
+
current = true;
|
|
10446
|
+
if (!mounted) {
|
|
10447
|
+
dispose = listen(button, "click", click_handler_3);
|
|
10448
|
+
mounted = true;
|
|
10449
|
+
}
|
|
10450
|
+
},
|
|
10451
|
+
p(new_ctx, dirty) {
|
|
10452
|
+
ctx = new_ctx;
|
|
10453
|
+
},
|
|
10454
|
+
i(local) {
|
|
10455
|
+
if (current)
|
|
10456
|
+
return;
|
|
10457
|
+
transition_in(closeicon.$$.fragment, local);
|
|
10458
|
+
current = true;
|
|
10459
|
+
},
|
|
10460
|
+
o(local) {
|
|
10461
|
+
transition_out(closeicon.$$.fragment, local);
|
|
10462
|
+
current = false;
|
|
10463
|
+
},
|
|
10464
|
+
d(detaching) {
|
|
10465
|
+
if (detaching)
|
|
10466
|
+
detach(button);
|
|
10467
|
+
destroy_component(closeicon);
|
|
10468
|
+
mounted = false;
|
|
10469
|
+
dispose();
|
|
10470
|
+
}
|
|
10471
|
+
};
|
|
10472
|
+
}
|
|
10473
|
+
function create_if_block_2$c(ctx) {
|
|
10474
|
+
let button;
|
|
10475
|
+
let closeicon;
|
|
10476
|
+
let current;
|
|
10477
|
+
let mounted;
|
|
10478
|
+
let dispose;
|
|
10479
|
+
closeicon = new CloseIcon({});
|
|
10480
|
+
function click_handler_2() {
|
|
10481
|
+
return (
|
|
10482
|
+
/*click_handler_2*/
|
|
10483
|
+
ctx[12](
|
|
10484
|
+
/*m*/
|
|
10485
|
+
ctx[15]
|
|
10486
|
+
)
|
|
10487
|
+
);
|
|
10488
|
+
}
|
|
10489
|
+
return {
|
|
10490
|
+
c() {
|
|
10491
|
+
button = element("button");
|
|
10492
|
+
create_component(closeicon.$$.fragment);
|
|
10493
|
+
attr(button, "class", "ms-modal__team-member-remove-btn svelte-1haqb7b");
|
|
10494
|
+
},
|
|
10495
|
+
m(target, anchor) {
|
|
10496
|
+
insert(target, button, anchor);
|
|
10497
|
+
mount_component(closeicon, button, null);
|
|
10498
|
+
current = true;
|
|
10499
|
+
if (!mounted) {
|
|
10500
|
+
dispose = listen(button, "click", click_handler_2);
|
|
10501
|
+
mounted = true;
|
|
10502
|
+
}
|
|
10503
|
+
},
|
|
10504
|
+
p(new_ctx, dirty) {
|
|
10505
|
+
ctx = new_ctx;
|
|
10506
|
+
},
|
|
10507
|
+
i(local) {
|
|
10508
|
+
if (current)
|
|
10509
|
+
return;
|
|
10510
|
+
transition_in(closeicon.$$.fragment, local);
|
|
10511
|
+
current = true;
|
|
10512
|
+
},
|
|
10513
|
+
o(local) {
|
|
10514
|
+
transition_out(closeicon.$$.fragment, local);
|
|
10515
|
+
current = false;
|
|
10516
|
+
},
|
|
10517
|
+
d(detaching) {
|
|
10518
|
+
if (detaching)
|
|
10519
|
+
detach(button);
|
|
10520
|
+
destroy_component(closeicon);
|
|
10521
|
+
mounted = false;
|
|
10522
|
+
dispose();
|
|
10523
|
+
}
|
|
10524
|
+
};
|
|
10525
|
+
}
|
|
10526
|
+
function create_each_block$8(key_1, ctx) {
|
|
10527
|
+
let div4;
|
|
10528
|
+
let div1;
|
|
10529
|
+
let t0;
|
|
10530
|
+
let div0;
|
|
10531
|
+
let t1_value = (
|
|
10532
|
+
/*m*/
|
|
10533
|
+
ctx[15].member.auth.email + ""
|
|
10534
|
+
);
|
|
10535
|
+
let t1;
|
|
10536
|
+
let t2;
|
|
10537
|
+
let div3;
|
|
10538
|
+
let div2;
|
|
10539
|
+
let t3_value = (
|
|
10540
|
+
/*m*/
|
|
10541
|
+
ctx[15].role + ""
|
|
10542
|
+
);
|
|
10543
|
+
let t3;
|
|
10544
|
+
let t4;
|
|
10545
|
+
let t5;
|
|
10546
|
+
let current;
|
|
10547
|
+
function select_block_type_1(ctx2, dirty) {
|
|
10548
|
+
if (
|
|
10549
|
+
/*m*/
|
|
10550
|
+
ctx2[15].member.profileImage === null
|
|
10551
|
+
)
|
|
10552
|
+
return create_if_block_3$8;
|
|
10553
|
+
return create_else_block_1$3;
|
|
10554
|
+
}
|
|
10555
|
+
let current_block_type = select_block_type_1(ctx);
|
|
10556
|
+
let if_block0 = current_block_type(ctx);
|
|
10557
|
+
let if_block1 = (
|
|
10558
|
+
/*m*/
|
|
10559
|
+
ctx[15].role !== "OWNER" && create_if_block_1$g(ctx)
|
|
10560
|
+
);
|
|
10561
|
+
return {
|
|
10562
|
+
key: key_1,
|
|
10563
|
+
first: null,
|
|
10564
|
+
c() {
|
|
10565
|
+
div4 = element("div");
|
|
10566
|
+
div1 = element("div");
|
|
10567
|
+
if_block0.c();
|
|
10568
|
+
t0 = space();
|
|
10569
|
+
div0 = element("div");
|
|
10570
|
+
t1 = text(t1_value);
|
|
10571
|
+
t2 = space();
|
|
10572
|
+
div3 = element("div");
|
|
10573
|
+
div2 = element("div");
|
|
10574
|
+
t3 = text(t3_value);
|
|
10575
|
+
t4 = space();
|
|
10576
|
+
if (if_block1)
|
|
10577
|
+
if_block1.c();
|
|
10578
|
+
t5 = space();
|
|
10579
|
+
attr(div0, "class", "ms-modal__team-member-email svelte-1haqb7b");
|
|
10580
|
+
attr(div1, "class", "ms-modal__team-member-info svelte-1haqb7b");
|
|
10581
|
+
attr(div2, "class", "ms-modal__team-member-role svelte-1haqb7b");
|
|
10582
|
+
attr(div3, "class", "ms-modal__team-member-actions svelte-1haqb7b");
|
|
10583
|
+
attr(div4, "class", "ms-modal__team-member svelte-1haqb7b");
|
|
10584
|
+
this.first = div4;
|
|
10585
|
+
},
|
|
10586
|
+
m(target, anchor) {
|
|
10587
|
+
insert(target, div4, anchor);
|
|
10588
|
+
append(div4, div1);
|
|
10589
|
+
if_block0.m(div1, null);
|
|
10590
|
+
append(div1, t0);
|
|
10591
|
+
append(div1, div0);
|
|
10592
|
+
append(div0, t1);
|
|
10593
|
+
append(div4, t2);
|
|
10594
|
+
append(div4, div3);
|
|
10595
|
+
append(div3, div2);
|
|
10596
|
+
append(div2, t3);
|
|
10597
|
+
append(div3, t4);
|
|
10598
|
+
if (if_block1)
|
|
10599
|
+
if_block1.m(div3, null);
|
|
10600
|
+
append(div4, t5);
|
|
10601
|
+
current = true;
|
|
10602
|
+
},
|
|
10603
|
+
p(new_ctx, dirty) {
|
|
10604
|
+
ctx = new_ctx;
|
|
10605
|
+
if (current_block_type === (current_block_type = select_block_type_1(ctx)) && if_block0) {
|
|
10606
|
+
if_block0.p(ctx, dirty);
|
|
10607
|
+
} else {
|
|
10608
|
+
if_block0.d(1);
|
|
10609
|
+
if_block0 = current_block_type(ctx);
|
|
10610
|
+
if (if_block0) {
|
|
10611
|
+
if_block0.c();
|
|
10612
|
+
if_block0.m(div1, t0);
|
|
10613
|
+
}
|
|
10614
|
+
}
|
|
10615
|
+
if ((!current || dirty & /*teamData*/
|
|
10616
|
+
1) && t1_value !== (t1_value = /*m*/
|
|
10617
|
+
ctx[15].member.auth.email + ""))
|
|
10618
|
+
set_data(t1, t1_value);
|
|
10619
|
+
if ((!current || dirty & /*teamData*/
|
|
10620
|
+
1) && t3_value !== (t3_value = /*m*/
|
|
10621
|
+
ctx[15].role + ""))
|
|
10622
|
+
set_data(t3, t3_value);
|
|
10623
|
+
if (
|
|
10624
|
+
/*m*/
|
|
10625
|
+
ctx[15].role !== "OWNER"
|
|
10626
|
+
) {
|
|
10627
|
+
if (if_block1) {
|
|
10628
|
+
if_block1.p(ctx, dirty);
|
|
10629
|
+
if (dirty & /*teamData*/
|
|
10630
|
+
1) {
|
|
10631
|
+
transition_in(if_block1, 1);
|
|
10632
|
+
}
|
|
10633
|
+
} else {
|
|
10634
|
+
if_block1 = create_if_block_1$g(ctx);
|
|
10635
|
+
if_block1.c();
|
|
10636
|
+
transition_in(if_block1, 1);
|
|
10637
|
+
if_block1.m(div3, null);
|
|
10638
|
+
}
|
|
10639
|
+
} else if (if_block1) {
|
|
10640
|
+
group_outros();
|
|
10641
|
+
transition_out(if_block1, 1, 1, () => {
|
|
10642
|
+
if_block1 = null;
|
|
10643
|
+
});
|
|
10644
|
+
check_outros();
|
|
10645
|
+
}
|
|
10646
|
+
},
|
|
10647
|
+
i(local) {
|
|
10648
|
+
if (current)
|
|
10649
|
+
return;
|
|
10650
|
+
transition_in(if_block1);
|
|
10651
|
+
current = true;
|
|
10652
|
+
},
|
|
10653
|
+
o(local) {
|
|
10654
|
+
transition_out(if_block1);
|
|
10655
|
+
current = false;
|
|
10656
|
+
},
|
|
10657
|
+
d(detaching) {
|
|
10658
|
+
if (detaching)
|
|
10659
|
+
detach(div4);
|
|
10660
|
+
if_block0.d();
|
|
10661
|
+
if (if_block1)
|
|
10662
|
+
if_block1.d();
|
|
10663
|
+
}
|
|
10664
|
+
};
|
|
10665
|
+
}
|
|
10666
|
+
function create_pending_block(ctx) {
|
|
10667
|
+
let p;
|
|
10668
|
+
return {
|
|
10669
|
+
c() {
|
|
10670
|
+
p = element("p");
|
|
10671
|
+
p.textContent = "Loading...";
|
|
10672
|
+
},
|
|
10673
|
+
m(target, anchor) {
|
|
10674
|
+
insert(target, p, anchor);
|
|
10675
|
+
},
|
|
10676
|
+
p: noop,
|
|
10677
|
+
i: noop,
|
|
10678
|
+
o: noop,
|
|
10679
|
+
d(detaching) {
|
|
10680
|
+
if (detaching)
|
|
10681
|
+
detach(p);
|
|
10682
|
+
}
|
|
10683
|
+
};
|
|
10684
|
+
}
|
|
10685
|
+
function create_fragment$K(ctx) {
|
|
10686
|
+
var _a;
|
|
10687
|
+
let div;
|
|
10688
|
+
let h2;
|
|
10689
|
+
let t1;
|
|
10690
|
+
let t2;
|
|
10691
|
+
let await_block_anchor;
|
|
10692
|
+
let promise2;
|
|
10693
|
+
let current;
|
|
10694
|
+
let if_block = (
|
|
10695
|
+
/*teamData*/
|
|
10696
|
+
((_a = ctx[0]) == null ? void 0 : _a.members.length) > 0 && create_if_block_5$5(ctx)
|
|
10697
|
+
);
|
|
10698
|
+
let info = {
|
|
10699
|
+
ctx,
|
|
10700
|
+
current: null,
|
|
10701
|
+
token: null,
|
|
10702
|
+
hasCatch: false,
|
|
10703
|
+
pending: create_pending_block,
|
|
10704
|
+
then: create_then_block,
|
|
10705
|
+
catch: create_catch_block,
|
|
10706
|
+
blocks: [, , ,]
|
|
10707
|
+
};
|
|
10708
|
+
handle_promise(promise2 = /*teamPromise*/
|
|
10709
|
+
ctx[1], info);
|
|
10710
|
+
return {
|
|
10711
|
+
c() {
|
|
10712
|
+
div = element("div");
|
|
10713
|
+
h2 = element("h2");
|
|
10714
|
+
h2.textContent = "Team";
|
|
10715
|
+
t1 = space();
|
|
10716
|
+
if (if_block)
|
|
10717
|
+
if_block.c();
|
|
10718
|
+
t2 = space();
|
|
10719
|
+
await_block_anchor = empty();
|
|
10720
|
+
info.block.c();
|
|
10721
|
+
attr(h2, "class", "ms-modal__title ms-modal__title--teams svelte-1haqb7b");
|
|
10722
|
+
attr(div, "class", "ms-modal__title-container ms-modal__title-container--teams svelte-1haqb7b");
|
|
10723
|
+
},
|
|
10724
|
+
m(target, anchor) {
|
|
10725
|
+
insert(target, div, anchor);
|
|
10726
|
+
append(div, h2);
|
|
10727
|
+
append(div, t1);
|
|
10728
|
+
if (if_block)
|
|
10729
|
+
if_block.m(div, null);
|
|
10730
|
+
insert(target, t2, anchor);
|
|
10731
|
+
insert(target, await_block_anchor, anchor);
|
|
10732
|
+
info.block.m(target, info.anchor = anchor);
|
|
10733
|
+
info.mount = () => await_block_anchor.parentNode;
|
|
10734
|
+
info.anchor = await_block_anchor;
|
|
9275
10735
|
current = true;
|
|
9276
10736
|
},
|
|
9277
|
-
p(
|
|
9278
|
-
|
|
9279
|
-
|
|
9280
|
-
ctx2[0].stripeCustomerId
|
|
9281
|
-
) {
|
|
9282
|
-
if (if_block0) {
|
|
9283
|
-
if_block0.p(ctx2, dirty);
|
|
9284
|
-
if (dirty & /*member*/
|
|
9285
|
-
1) {
|
|
9286
|
-
transition_in(if_block0, 1);
|
|
9287
|
-
}
|
|
9288
|
-
} else {
|
|
9289
|
-
if_block0 = create_if_block_2$c(ctx2);
|
|
9290
|
-
if_block0.c();
|
|
9291
|
-
transition_in(if_block0, 1);
|
|
9292
|
-
if_block0.m(t2.parentNode, t2);
|
|
9293
|
-
}
|
|
9294
|
-
} else if (if_block0) {
|
|
9295
|
-
group_outros();
|
|
9296
|
-
transition_out(if_block0, 1, 1, () => {
|
|
9297
|
-
if_block0 = null;
|
|
9298
|
-
});
|
|
9299
|
-
check_outros();
|
|
9300
|
-
}
|
|
10737
|
+
p(new_ctx, [dirty]) {
|
|
10738
|
+
var _a2;
|
|
10739
|
+
ctx = new_ctx;
|
|
9301
10740
|
if (
|
|
9302
|
-
/*
|
|
9303
|
-
|
|
10741
|
+
/*teamData*/
|
|
10742
|
+
((_a2 = ctx[0]) == null ? void 0 : _a2.members.length) > 0
|
|
9304
10743
|
) {
|
|
9305
|
-
if (
|
|
9306
|
-
|
|
9307
|
-
if (dirty & /*freePlanConnections*/
|
|
9308
|
-
2) {
|
|
9309
|
-
transition_in(if_block1, 1);
|
|
9310
|
-
}
|
|
10744
|
+
if (if_block) {
|
|
10745
|
+
if_block.p(ctx, dirty);
|
|
9311
10746
|
} else {
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
if_block1.m(t3.parentNode, t3);
|
|
10747
|
+
if_block = create_if_block_5$5(ctx);
|
|
10748
|
+
if_block.c();
|
|
10749
|
+
if_block.m(div, null);
|
|
9316
10750
|
}
|
|
9317
|
-
} else if (
|
|
9318
|
-
|
|
9319
|
-
|
|
9320
|
-
if_block1 = null;
|
|
9321
|
-
});
|
|
9322
|
-
check_outros();
|
|
10751
|
+
} else if (if_block) {
|
|
10752
|
+
if_block.d(1);
|
|
10753
|
+
if_block = null;
|
|
9323
10754
|
}
|
|
9324
|
-
|
|
9325
|
-
|
|
9326
|
-
|
|
9327
|
-
|
|
9328
|
-
|
|
9329
|
-
|
|
9330
|
-
|
|
9331
|
-
if_block2.c();
|
|
9332
|
-
if_block2.m(if_block2_anchor.parentNode, if_block2_anchor);
|
|
9333
|
-
}
|
|
9334
|
-
} else if (if_block2) {
|
|
9335
|
-
if_block2.d(1);
|
|
9336
|
-
if_block2 = null;
|
|
10755
|
+
info.ctx = ctx;
|
|
10756
|
+
if (dirty & /*teamPromise*/
|
|
10757
|
+
2 && promise2 !== (promise2 = /*teamPromise*/
|
|
10758
|
+
ctx[1]) && handle_promise(promise2, info))
|
|
10759
|
+
;
|
|
10760
|
+
else {
|
|
10761
|
+
update_await_block_branch(info, ctx, dirty);
|
|
9337
10762
|
}
|
|
9338
10763
|
},
|
|
9339
10764
|
i(local) {
|
|
9340
10765
|
if (current)
|
|
9341
10766
|
return;
|
|
9342
|
-
transition_in(
|
|
9343
|
-
transition_in(if_block1);
|
|
10767
|
+
transition_in(info.block);
|
|
9344
10768
|
current = true;
|
|
9345
10769
|
},
|
|
9346
10770
|
o(local) {
|
|
9347
|
-
|
|
9348
|
-
|
|
10771
|
+
for (let i = 0; i < 3; i += 1) {
|
|
10772
|
+
const block = info.blocks[i];
|
|
10773
|
+
transition_out(block);
|
|
10774
|
+
}
|
|
9349
10775
|
current = false;
|
|
9350
10776
|
},
|
|
9351
10777
|
d(detaching) {
|
|
9352
10778
|
if (detaching)
|
|
9353
10779
|
detach(div);
|
|
9354
|
-
if (
|
|
9355
|
-
|
|
9356
|
-
if (if_block0)
|
|
9357
|
-
if_block0.d(detaching);
|
|
10780
|
+
if (if_block)
|
|
10781
|
+
if_block.d();
|
|
9358
10782
|
if (detaching)
|
|
9359
10783
|
detach(t2);
|
|
9360
|
-
if (if_block1)
|
|
9361
|
-
if_block1.d(detaching);
|
|
9362
|
-
if (detaching)
|
|
9363
|
-
detach(t3);
|
|
9364
|
-
if (if_block2)
|
|
9365
|
-
if_block2.d(detaching);
|
|
9366
10784
|
if (detaching)
|
|
9367
|
-
detach(
|
|
10785
|
+
detach(await_block_anchor);
|
|
10786
|
+
info.block.d(detaching);
|
|
10787
|
+
info.token = null;
|
|
10788
|
+
info = null;
|
|
9368
10789
|
}
|
|
9369
10790
|
};
|
|
9370
10791
|
}
|
|
9371
10792
|
function instance$p($$self, $$props, $$invalidate) {
|
|
9372
|
-
|
|
9373
|
-
let
|
|
9374
|
-
component_subscribe($$self, AppStore, ($$value) => $$invalidate(2, $app = $$value));
|
|
10793
|
+
var _a, _b, _c;
|
|
10794
|
+
let inviteLink;
|
|
9375
10795
|
let { profileLoader } = $$props;
|
|
9376
10796
|
let { member } = $$props;
|
|
9377
|
-
|
|
10797
|
+
let teamPromise;
|
|
10798
|
+
let teamData;
|
|
10799
|
+
let copyInviteText = "Copy";
|
|
10800
|
+
function showRemoveButton(m) {
|
|
10801
|
+
m.showRemoveButton = true;
|
|
10802
|
+
$$invalidate(0, teamData.members = [...teamData.members.filter((member2) => member2.member.id !== m.member.id), m], teamData);
|
|
10803
|
+
setTimeout(
|
|
10804
|
+
() => {
|
|
10805
|
+
m.showRemoveButton = false;
|
|
10806
|
+
},
|
|
10807
|
+
3e3
|
|
10808
|
+
);
|
|
10809
|
+
}
|
|
10810
|
+
function copyInviteLink() {
|
|
10811
|
+
navigator.clipboard.writeText(inviteLink);
|
|
10812
|
+
$$invalidate(2, copyInviteText = "Copied!");
|
|
10813
|
+
setTimeout(
|
|
10814
|
+
() => {
|
|
10815
|
+
$$invalidate(2, copyInviteText = "Copy");
|
|
10816
|
+
},
|
|
10817
|
+
2e3
|
|
10818
|
+
);
|
|
10819
|
+
}
|
|
10820
|
+
function getTeam(teamId) {
|
|
9378
10821
|
return __async(this, null, function* () {
|
|
9379
|
-
|
|
9380
|
-
|
|
10822
|
+
const { data } = yield window.$memberstackDom.getTeam({ teamId });
|
|
10823
|
+
$$invalidate(0, teamData = data);
|
|
10824
|
+
return data;
|
|
9381
10825
|
});
|
|
9382
10826
|
}
|
|
9383
|
-
function
|
|
10827
|
+
function removeMemberFromTeam(memberId) {
|
|
9384
10828
|
return __async(this, null, function* () {
|
|
9385
|
-
$$invalidate(5, profileLoader = true);
|
|
9386
10829
|
try {
|
|
9387
|
-
|
|
9388
|
-
|
|
10830
|
+
$$invalidate(8, profileLoader = true);
|
|
10831
|
+
yield window.$memberstackDom.removeMemberFromTeam({ teamId: teamData.id, memberId });
|
|
10832
|
+
$$invalidate(0, teamData.members = teamData.members.filter((m) => m.member.id !== memberId), teamData);
|
|
10833
|
+
window.$memberstackDom._showMessage("Member has been removed from team.", false);
|
|
9389
10834
|
} catch (err) {
|
|
9390
|
-
console.log(err);
|
|
9391
10835
|
window.$memberstackDom._showMessage(err.message, true);
|
|
9392
10836
|
} finally {
|
|
9393
|
-
$$invalidate(
|
|
10837
|
+
$$invalidate(8, profileLoader = false);
|
|
10838
|
+
}
|
|
10839
|
+
});
|
|
10840
|
+
}
|
|
10841
|
+
function generateInviteToken() {
|
|
10842
|
+
return __async(this, null, function* () {
|
|
10843
|
+
try {
|
|
10844
|
+
$$invalidate(8, profileLoader = true);
|
|
10845
|
+
const { data } = yield window.$memberstackDom.generateInviteToken({ teamId: teamData.id });
|
|
10846
|
+
$$invalidate(0, teamData.inviteToken = data.inviteToken, teamData);
|
|
10847
|
+
window.$memberstackDom._showMessage("Invite Link Regenerated", false);
|
|
10848
|
+
} catch (err) {
|
|
10849
|
+
window.$memberstackDom._showMessage(err.message, true);
|
|
10850
|
+
} finally {
|
|
10851
|
+
$$invalidate(8, profileLoader = false);
|
|
9394
10852
|
}
|
|
9395
10853
|
});
|
|
9396
10854
|
}
|
|
9397
|
-
|
|
9398
|
-
|
|
10855
|
+
if (((_b = (_a = member == null ? void 0 : member.teams) == null ? void 0 : _a.ownedTeams) == null ? void 0 : _b.length) > 0) {
|
|
10856
|
+
const teamId = (_c = member.teams) == null ? void 0 : _c.ownedTeams[0].teamId;
|
|
10857
|
+
teamPromise = getTeam(teamId);
|
|
10858
|
+
} else {
|
|
10859
|
+
teamPromise = Promise.resolve(null);
|
|
10860
|
+
}
|
|
10861
|
+
const click_handler = () => copyInviteLink();
|
|
10862
|
+
const click_handler_1 = () => generateInviteToken();
|
|
10863
|
+
const click_handler_2 = (m) => showRemoveButton(m);
|
|
10864
|
+
const click_handler_3 = (m) => removeMemberFromTeam(m.member.id);
|
|
9399
10865
|
$$self.$$set = ($$props2) => {
|
|
9400
10866
|
if ("profileLoader" in $$props2)
|
|
9401
|
-
$$invalidate(
|
|
10867
|
+
$$invalidate(8, profileLoader = $$props2.profileLoader);
|
|
9402
10868
|
if ("member" in $$props2)
|
|
9403
|
-
$$invalidate(
|
|
10869
|
+
$$invalidate(9, member = $$props2.member);
|
|
9404
10870
|
};
|
|
9405
10871
|
$$self.$$.update = () => {
|
|
9406
|
-
|
|
10872
|
+
var _a2;
|
|
10873
|
+
if ($$self.$$.dirty & /*teamData*/
|
|
9407
10874
|
1) {
|
|
9408
|
-
$$invalidate(
|
|
10875
|
+
$$invalidate(3, inviteLink = `${window.location.origin}${(_a2 = teamData == null ? void 0 : teamData.plan) == null ? void 0 : _a2.teamAccountInviteSignupLink}?inviteToken=${teamData == null ? void 0 : teamData.inviteToken}`);
|
|
9409
10876
|
}
|
|
9410
10877
|
};
|
|
9411
10878
|
return [
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
10879
|
+
teamData,
|
|
10880
|
+
teamPromise,
|
|
10881
|
+
copyInviteText,
|
|
10882
|
+
inviteLink,
|
|
10883
|
+
showRemoveButton,
|
|
10884
|
+
copyInviteLink,
|
|
10885
|
+
removeMemberFromTeam,
|
|
10886
|
+
generateInviteToken,
|
|
9417
10887
|
profileLoader,
|
|
9418
|
-
|
|
9419
|
-
|
|
10888
|
+
member,
|
|
10889
|
+
click_handler,
|
|
10890
|
+
click_handler_1,
|
|
10891
|
+
click_handler_2,
|
|
10892
|
+
click_handler_3
|
|
9420
10893
|
];
|
|
9421
10894
|
}
|
|
9422
|
-
var
|
|
10895
|
+
var ProfileTeamContent = class extends SvelteComponent {
|
|
9423
10896
|
constructor(options) {
|
|
9424
10897
|
super();
|
|
9425
|
-
init(this, options, instance$p, create_fragment$
|
|
10898
|
+
init(this, options, instance$p, create_fragment$K, safe_not_equal, { profileLoader: 8, member: 9 }, add_css$j);
|
|
9426
10899
|
}
|
|
9427
10900
|
};
|
|
9428
|
-
function
|
|
10901
|
+
function create_if_block_5$4(ctx) {
|
|
9429
10902
|
let profileloader;
|
|
9430
10903
|
let current;
|
|
9431
10904
|
profileloader = new ProfileLoader({});
|
|
@@ -9452,6 +10925,76 @@ function create_if_block_4$5(ctx) {
|
|
|
9452
10925
|
}
|
|
9453
10926
|
};
|
|
9454
10927
|
}
|
|
10928
|
+
function create_if_block_4$5(ctx) {
|
|
10929
|
+
let profileteamcontent;
|
|
10930
|
+
let updating_member;
|
|
10931
|
+
let updating_profileLoader;
|
|
10932
|
+
let current;
|
|
10933
|
+
function profileteamcontent_member_binding(value) {
|
|
10934
|
+
ctx[19](value);
|
|
10935
|
+
}
|
|
10936
|
+
function profileteamcontent_profileLoader_binding(value) {
|
|
10937
|
+
ctx[20](value);
|
|
10938
|
+
}
|
|
10939
|
+
let profileteamcontent_props = {};
|
|
10940
|
+
if (
|
|
10941
|
+
/*member*/
|
|
10942
|
+
ctx[1] !== void 0
|
|
10943
|
+
) {
|
|
10944
|
+
profileteamcontent_props.member = /*member*/
|
|
10945
|
+
ctx[1];
|
|
10946
|
+
}
|
|
10947
|
+
if (
|
|
10948
|
+
/*profileLoader*/
|
|
10949
|
+
ctx[4] !== void 0
|
|
10950
|
+
) {
|
|
10951
|
+
profileteamcontent_props.profileLoader = /*profileLoader*/
|
|
10952
|
+
ctx[4];
|
|
10953
|
+
}
|
|
10954
|
+
profileteamcontent = new ProfileTeamContent({ props: profileteamcontent_props });
|
|
10955
|
+
binding_callbacks.push(() => bind(profileteamcontent, "member", profileteamcontent_member_binding));
|
|
10956
|
+
binding_callbacks.push(() => bind(profileteamcontent, "profileLoader", profileteamcontent_profileLoader_binding));
|
|
10957
|
+
return {
|
|
10958
|
+
c() {
|
|
10959
|
+
create_component(profileteamcontent.$$.fragment);
|
|
10960
|
+
},
|
|
10961
|
+
m(target, anchor) {
|
|
10962
|
+
mount_component(profileteamcontent, target, anchor);
|
|
10963
|
+
current = true;
|
|
10964
|
+
},
|
|
10965
|
+
p(ctx2, dirty) {
|
|
10966
|
+
const profileteamcontent_changes = {};
|
|
10967
|
+
if (!updating_member && dirty & /*member*/
|
|
10968
|
+
2) {
|
|
10969
|
+
updating_member = true;
|
|
10970
|
+
profileteamcontent_changes.member = /*member*/
|
|
10971
|
+
ctx2[1];
|
|
10972
|
+
add_flush_callback(() => updating_member = false);
|
|
10973
|
+
}
|
|
10974
|
+
if (!updating_profileLoader && dirty & /*profileLoader*/
|
|
10975
|
+
16) {
|
|
10976
|
+
updating_profileLoader = true;
|
|
10977
|
+
profileteamcontent_changes.profileLoader = /*profileLoader*/
|
|
10978
|
+
ctx2[4];
|
|
10979
|
+
add_flush_callback(() => updating_profileLoader = false);
|
|
10980
|
+
}
|
|
10981
|
+
profileteamcontent.$set(profileteamcontent_changes);
|
|
10982
|
+
},
|
|
10983
|
+
i(local) {
|
|
10984
|
+
if (current)
|
|
10985
|
+
return;
|
|
10986
|
+
transition_in(profileteamcontent.$$.fragment, local);
|
|
10987
|
+
current = true;
|
|
10988
|
+
},
|
|
10989
|
+
o(local) {
|
|
10990
|
+
transition_out(profileteamcontent.$$.fragment, local);
|
|
10991
|
+
current = false;
|
|
10992
|
+
},
|
|
10993
|
+
d(detaching) {
|
|
10994
|
+
destroy_component(profileteamcontent, detaching);
|
|
10995
|
+
}
|
|
10996
|
+
};
|
|
10997
|
+
}
|
|
9455
10998
|
function create_if_block_3$7(ctx) {
|
|
9456
10999
|
let plansinfocontent;
|
|
9457
11000
|
let updating_member;
|
|
@@ -9779,7 +11322,7 @@ function create_if_block$l(ctx) {
|
|
|
9779
11322
|
}
|
|
9780
11323
|
};
|
|
9781
11324
|
}
|
|
9782
|
-
function create_fragment$
|
|
11325
|
+
function create_fragment$J(ctx) {
|
|
9783
11326
|
let div5;
|
|
9784
11327
|
let div1;
|
|
9785
11328
|
let div0;
|
|
@@ -9854,9 +11397,15 @@ function create_fragment$K(ctx) {
|
|
|
9854
11397
|
binding_callbacks.push(() => bind(profilemodalnav, "profileLoader", profilemodalnav_profileLoader_binding));
|
|
9855
11398
|
let if_block0 = (
|
|
9856
11399
|
/*profileLoader*/
|
|
9857
|
-
ctx[4] &&
|
|
11400
|
+
ctx[4] && create_if_block_5$4()
|
|
9858
11401
|
);
|
|
9859
|
-
const if_block_creators = [
|
|
11402
|
+
const if_block_creators = [
|
|
11403
|
+
create_if_block$l,
|
|
11404
|
+
create_if_block_1$f,
|
|
11405
|
+
create_if_block_2$b,
|
|
11406
|
+
create_if_block_3$7,
|
|
11407
|
+
create_if_block_4$5
|
|
11408
|
+
];
|
|
9860
11409
|
const if_blocks = [];
|
|
9861
11410
|
function select_block_type(ctx2, dirty) {
|
|
9862
11411
|
if (
|
|
@@ -9879,6 +11428,11 @@ function create_fragment$K(ctx) {
|
|
|
9879
11428
|
ctx2[0] === "plans"
|
|
9880
11429
|
)
|
|
9881
11430
|
return 3;
|
|
11431
|
+
if (
|
|
11432
|
+
/*displayProfile*/
|
|
11433
|
+
ctx2[0] === "team"
|
|
11434
|
+
)
|
|
11435
|
+
return 4;
|
|
9882
11436
|
return -1;
|
|
9883
11437
|
}
|
|
9884
11438
|
if (~(current_block_type_index = select_block_type(ctx))) {
|
|
@@ -9984,7 +11538,7 @@ function create_fragment$K(ctx) {
|
|
|
9984
11538
|
transition_in(if_block0, 1);
|
|
9985
11539
|
}
|
|
9986
11540
|
} else {
|
|
9987
|
-
if_block0 =
|
|
11541
|
+
if_block0 = create_if_block_5$4();
|
|
9988
11542
|
if_block0.c();
|
|
9989
11543
|
transition_in(if_block0, 1);
|
|
9990
11544
|
if_block0.m(div3, t4);
|
|
@@ -10118,6 +11672,14 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
10118
11672
|
profileLoader = value;
|
|
10119
11673
|
$$invalidate(4, profileLoader);
|
|
10120
11674
|
}
|
|
11675
|
+
function profileteamcontent_member_binding(value) {
|
|
11676
|
+
member = value;
|
|
11677
|
+
$$invalidate(1, member);
|
|
11678
|
+
}
|
|
11679
|
+
function profileteamcontent_profileLoader_binding(value) {
|
|
11680
|
+
profileLoader = value;
|
|
11681
|
+
$$invalidate(4, profileLoader);
|
|
11682
|
+
}
|
|
10121
11683
|
$$self.$$set = ($$props2) => {
|
|
10122
11684
|
if ("onSuccessLogout" in $$props2)
|
|
10123
11685
|
$$invalidate(2, onSuccessLogout = $$props2.onSuccessLogout);
|
|
@@ -10147,13 +11709,15 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
10147
11709
|
passwordinfocontent_profileLoader_binding,
|
|
10148
11710
|
passwordinfocontent_member_binding,
|
|
10149
11711
|
plansinfocontent_member_binding,
|
|
10150
|
-
plansinfocontent_profileLoader_binding
|
|
11712
|
+
plansinfocontent_profileLoader_binding,
|
|
11713
|
+
profileteamcontent_member_binding,
|
|
11714
|
+
profileteamcontent_profileLoader_binding
|
|
10151
11715
|
];
|
|
10152
11716
|
}
|
|
10153
11717
|
var ProfileModal = class extends SvelteComponent {
|
|
10154
11718
|
constructor(options) {
|
|
10155
11719
|
super();
|
|
10156
|
-
init(this, options, instance$o, create_fragment$
|
|
11720
|
+
init(this, options, instance$o, create_fragment$J, safe_not_equal, {
|
|
10157
11721
|
onSuccessLogout: 2,
|
|
10158
11722
|
closeModal: 3,
|
|
10159
11723
|
displayProfile: 0,
|
|
@@ -10161,7 +11725,7 @@ var ProfileModal = class extends SvelteComponent {
|
|
|
10161
11725
|
});
|
|
10162
11726
|
}
|
|
10163
11727
|
};
|
|
10164
|
-
function create_fragment$
|
|
11728
|
+
function create_fragment$I(ctx) {
|
|
10165
11729
|
let svg;
|
|
10166
11730
|
let path;
|
|
10167
11731
|
return {
|
|
@@ -10191,7 +11755,7 @@ function create_fragment$J(ctx) {
|
|
|
10191
11755
|
var ForwardIcon = class extends SvelteComponent {
|
|
10192
11756
|
constructor(options) {
|
|
10193
11757
|
super();
|
|
10194
|
-
init(this, options, null, create_fragment$
|
|
11758
|
+
init(this, options, null, create_fragment$I, safe_not_equal, {});
|
|
10195
11759
|
}
|
|
10196
11760
|
};
|
|
10197
11761
|
function create_if_block_1$e(ctx) {
|
|
@@ -10336,7 +11900,7 @@ function create_if_block$k(ctx) {
|
|
|
10336
11900
|
}
|
|
10337
11901
|
};
|
|
10338
11902
|
}
|
|
10339
|
-
function create_fragment$
|
|
11903
|
+
function create_fragment$H(ctx) {
|
|
10340
11904
|
let div2;
|
|
10341
11905
|
let t0;
|
|
10342
11906
|
let button0;
|
|
@@ -10596,7 +12160,7 @@ function instance$n($$self, $$props, $$invalidate) {
|
|
|
10596
12160
|
var MobileProfileModalNav = class extends SvelteComponent {
|
|
10597
12161
|
constructor(options) {
|
|
10598
12162
|
super();
|
|
10599
|
-
init(this, options, instance$n, create_fragment$
|
|
12163
|
+
init(this, options, instance$n, create_fragment$H, safe_not_equal, {
|
|
10600
12164
|
member: 1,
|
|
10601
12165
|
onSuccessLogout: 6,
|
|
10602
12166
|
displayProfile: 0,
|
|
@@ -10765,7 +12329,7 @@ function create_each_block$7(ctx) {
|
|
|
10765
12329
|
}
|
|
10766
12330
|
};
|
|
10767
12331
|
}
|
|
10768
|
-
function create_fragment$
|
|
12332
|
+
function create_fragment$G(ctx) {
|
|
10769
12333
|
let form;
|
|
10770
12334
|
let t0;
|
|
10771
12335
|
let div;
|
|
@@ -10888,7 +12452,7 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
10888
12452
|
var MobileProfileInfoContent = class extends SvelteComponent {
|
|
10889
12453
|
constructor(options) {
|
|
10890
12454
|
super();
|
|
10891
|
-
init(this, options, instance$m, create_fragment$
|
|
12455
|
+
init(this, options, instance$m, create_fragment$G, safe_not_equal, {
|
|
10892
12456
|
customFields: 1,
|
|
10893
12457
|
member: 0,
|
|
10894
12458
|
profileLoader: 3
|
|
@@ -11209,7 +12773,7 @@ function create_each_block$6(key_1, ctx) {
|
|
|
11209
12773
|
}
|
|
11210
12774
|
};
|
|
11211
12775
|
}
|
|
11212
|
-
function create_fragment$
|
|
12776
|
+
function create_fragment$F(ctx) {
|
|
11213
12777
|
let form;
|
|
11214
12778
|
let emailinput;
|
|
11215
12779
|
let updating_emailInputValid;
|
|
@@ -11532,7 +13096,7 @@ function instance$l($$self, $$props, $$invalidate) {
|
|
|
11532
13096
|
var MobileSecurityInfoContent = class extends SvelteComponent {
|
|
11533
13097
|
constructor(options) {
|
|
11534
13098
|
super();
|
|
11535
|
-
init(this, options, instance$l, create_fragment$
|
|
13099
|
+
init(this, options, instance$l, create_fragment$F, safe_not_equal, {
|
|
11536
13100
|
displayProfile: 0,
|
|
11537
13101
|
member: 1,
|
|
11538
13102
|
emailValue: 2,
|
|
@@ -11613,7 +13177,7 @@ function create_if_block$h(ctx) {
|
|
|
11613
13177
|
}
|
|
11614
13178
|
};
|
|
11615
13179
|
}
|
|
11616
|
-
function create_fragment$
|
|
13180
|
+
function create_fragment$E(ctx) {
|
|
11617
13181
|
let form;
|
|
11618
13182
|
let t0;
|
|
11619
13183
|
let passwordinput0;
|
|
@@ -11929,7 +13493,7 @@ function instance$k($$self, $$props, $$invalidate) {
|
|
|
11929
13493
|
var MobilePasswordInfoContent = class extends SvelteComponent {
|
|
11930
13494
|
constructor(options) {
|
|
11931
13495
|
super();
|
|
11932
|
-
init(this, options, instance$k, create_fragment$
|
|
13496
|
+
init(this, options, instance$k, create_fragment$E, safe_not_equal, { profileLoader: 8, member: 0 });
|
|
11933
13497
|
}
|
|
11934
13498
|
};
|
|
11935
13499
|
function create_if_block_6$3(ctx) {
|
|
@@ -12436,7 +14000,7 @@ function create_if_block$g(ctx) {
|
|
|
12436
14000
|
}
|
|
12437
14001
|
};
|
|
12438
14002
|
}
|
|
12439
|
-
function create_fragment$
|
|
14003
|
+
function create_fragment$D(ctx) {
|
|
12440
14004
|
let div5;
|
|
12441
14005
|
let div2;
|
|
12442
14006
|
let t0;
|
|
@@ -12842,7 +14406,7 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
|
12842
14406
|
var MobileProfileModal = class extends SvelteComponent {
|
|
12843
14407
|
constructor(options) {
|
|
12844
14408
|
super();
|
|
12845
|
-
init(this, options, instance$j, create_fragment$
|
|
14409
|
+
init(this, options, instance$j, create_fragment$D, safe_not_equal, {
|
|
12846
14410
|
onSuccessLogout: 3,
|
|
12847
14411
|
closeModal: 4,
|
|
12848
14412
|
displayProfile: 0,
|
|
@@ -12851,42 +14415,6 @@ var MobileProfileModal = class extends SvelteComponent {
|
|
|
12851
14415
|
});
|
|
12852
14416
|
}
|
|
12853
14417
|
};
|
|
12854
|
-
function add_css$j(target) {
|
|
12855
|
-
append_styles(target, "svelte-c6ihgv", "svg.svelte-c6ihgv{fill:currentColor}");
|
|
12856
|
-
}
|
|
12857
|
-
function create_fragment$D(ctx) {
|
|
12858
|
-
let svg;
|
|
12859
|
-
let path;
|
|
12860
|
-
return {
|
|
12861
|
-
c() {
|
|
12862
|
-
svg = svg_element("svg");
|
|
12863
|
-
path = svg_element("path");
|
|
12864
|
-
attr(path, "d", "M226.783-133.782q-38.363 0-65.682-27.319-27.319-27.319-27.319-65.682v-506.434q0-38.363 27.319-65.682 27.319-27.319 65.682-27.319h151.521q10.391-32.696 37.688-53.261 27.296-20.566 64.008-20.566 34.326 0 62.283 20.566 27.957 20.565 38.913 53.261h152.021q38.363 0 65.682 27.319 27.319 27.319 27.319 65.682v506.434q0 38.363-27.319 65.682-27.319 27.319-65.682 27.319H226.783Zm0-93.001h506.434v-506.434h-63.043v75.043q0 18.887-13.807 32.694-13.807 13.807-32.694 13.807H336.327q-18.887 0-32.694-13.807-13.807-13.807-13.807-32.694v-75.043h-63.043v506.434Zm253.006-518.913q13.711 0 23.711-9.789 10-9.79 10-23.5 0-13.711-9.789-23.711-9.79-10-23.5-10-13.711 0-23.711 9.79-10 9.789-10 23.5 0 13.71 9.789 23.71 9.79 10 23.5 10Z");
|
|
12865
|
-
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
12866
|
-
attr(svg, "height", "20");
|
|
12867
|
-
attr(svg, "viewBox", "0 -960 960 960");
|
|
12868
|
-
attr(svg, "width", "20");
|
|
12869
|
-
attr(svg, "class", "svelte-c6ihgv");
|
|
12870
|
-
},
|
|
12871
|
-
m(target, anchor) {
|
|
12872
|
-
insert(target, svg, anchor);
|
|
12873
|
-
append(svg, path);
|
|
12874
|
-
},
|
|
12875
|
-
p: noop,
|
|
12876
|
-
i: noop,
|
|
12877
|
-
o: noop,
|
|
12878
|
-
d(detaching) {
|
|
12879
|
-
if (detaching)
|
|
12880
|
-
detach(svg);
|
|
12881
|
-
}
|
|
12882
|
-
};
|
|
12883
|
-
}
|
|
12884
|
-
var CopyIcon$1 = class extends SvelteComponent {
|
|
12885
|
-
constructor(options) {
|
|
12886
|
-
super();
|
|
12887
|
-
init(this, options, null, create_fragment$D, safe_not_equal, {}, add_css$j);
|
|
12888
|
-
}
|
|
12889
|
-
};
|
|
12890
14418
|
function add_css$i(target) {
|
|
12891
14419
|
append_styles(target, "svelte-50knw2", "svg.svelte-50knw2{fill:currentColor;width:9px;height:auto}");
|
|
12892
14420
|
}
|
|
@@ -14915,7 +16443,7 @@ var InspectorBadgeOpen = class extends SvelteComponent {
|
|
|
14915
16443
|
}
|
|
14916
16444
|
};
|
|
14917
16445
|
function add_css$f(target) {
|
|
14918
|
-
append_styles(target, "svelte-
|
|
16446
|
+
append_styles(target, "svelte-rhveiw", ".ms-inspector-badge.svelte-rhveiw{position:fixed;bottom:10px;left:50%;transform:translateX(-50%);z-index:2147483648 !important;background:#fff;padding:0 7px;margin:0;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);cursor:pointer;display:flex;align-items:stretch;color:#000;background-color:#faf3e1;border:1px solid #d78e2c;border-radius:4px;font-size:12px;font-weight:700;font-family:Plus Jakarta Sans, sans-serif;gap:7px;height:42px}.ms-inspector-badge--error.svelte-rhveiw{background-color:#f6cfca;border-color:#e06657}.ms-inspector-badge__text-wrapper.svelte-rhveiw{display:flex;justify-content:center;align-items:center;gap:7px}.ms-inspector-badge__logo.svelte-rhveiw{display:flex;align-items:center;align-self:center}.ms-inspector-badge__text.svelte-rhveiw{align-self:center}.ms-inspector-badge__divider.svelte-rhveiw{border-left:1px solid #d88e2b}.ms-inspector-badge__count.svelte-rhveiw{border:1px solid #c1c1c1;border-radius:4px;background-color:#fff;color:#000;padding:0 7px;margin:7px 0;display:flex;align-items:center;position:relative}.ms-inspector-badge__count--open.svelte-rhveiw{background-color:#fff;color:#000;padding:0}.ms-inspector-badge__error-indicator.svelte-rhveiw{width:10px;height:10px;background-color:#e06657;border-radius:50%;position:absolute;top:0;right:0;transform:translate(50%, -50%)}");
|
|
14919
16447
|
}
|
|
14920
16448
|
function create_else_block_1$1(ctx) {
|
|
14921
16449
|
let span;
|
|
@@ -14923,7 +16451,7 @@ function create_else_block_1$1(ctx) {
|
|
|
14923
16451
|
c() {
|
|
14924
16452
|
span = element("span");
|
|
14925
16453
|
span.textContent = "Hide Inspector";
|
|
14926
|
-
attr(span, "class", "ms-inspector-badge__text svelte-
|
|
16454
|
+
attr(span, "class", "ms-inspector-badge__text svelte-rhveiw");
|
|
14927
16455
|
},
|
|
14928
16456
|
m(target, anchor) {
|
|
14929
16457
|
insert(target, span, anchor);
|
|
@@ -14940,7 +16468,7 @@ function create_if_block_2$8(ctx) {
|
|
|
14940
16468
|
c() {
|
|
14941
16469
|
span = element("span");
|
|
14942
16470
|
span.textContent = "Test Mode";
|
|
14943
|
-
attr(span, "class", "ms-inspector-badge__text svelte-
|
|
16471
|
+
attr(span, "class", "ms-inspector-badge__text svelte-rhveiw");
|
|
14944
16472
|
},
|
|
14945
16473
|
m(target, anchor) {
|
|
14946
16474
|
insert(target, span, anchor);
|
|
@@ -14958,7 +16486,7 @@ function create_if_block_1$b(ctx) {
|
|
|
14958
16486
|
return {
|
|
14959
16487
|
c() {
|
|
14960
16488
|
span = element("span");
|
|
14961
|
-
attr(span, "class", "ms-inspector-badge__error-indicator svelte-
|
|
16489
|
+
attr(span, "class", "ms-inspector-badge__error-indicator svelte-rhveiw");
|
|
14962
16490
|
},
|
|
14963
16491
|
m(target, anchor) {
|
|
14964
16492
|
insert(target, span, anchor);
|
|
@@ -15100,18 +16628,24 @@ function create_fragment$y(ctx) {
|
|
|
15100
16628
|
if_block1.c();
|
|
15101
16629
|
t3 = space();
|
|
15102
16630
|
if_block2.c();
|
|
15103
|
-
attr(span0, "class", "ms-inspector-badge__logo svelte-
|
|
15104
|
-
attr(span1, "class", "ms-inspector-badge__text-wrapper svelte-
|
|
15105
|
-
attr(span2, "class", "ms-inspector-badge__divider svelte-
|
|
15106
|
-
attr(span3, "class", "ms-inspector-badge__count svelte-
|
|
16631
|
+
attr(span0, "class", "ms-inspector-badge__logo svelte-rhveiw");
|
|
16632
|
+
attr(span1, "class", "ms-inspector-badge__text-wrapper svelte-rhveiw");
|
|
16633
|
+
attr(span2, "class", "ms-inspector-badge__divider svelte-rhveiw");
|
|
16634
|
+
attr(span3, "class", "ms-inspector-badge__count svelte-rhveiw");
|
|
15107
16635
|
toggle_class(
|
|
15108
16636
|
span3,
|
|
15109
16637
|
"ms-inspector-badge__count--open",
|
|
15110
16638
|
/*$InspectorStore*/
|
|
15111
16639
|
ctx[0].showSidebar
|
|
15112
16640
|
);
|
|
15113
|
-
attr(button, "class", "ms-inspector-badge svelte-
|
|
16641
|
+
attr(button, "class", "ms-inspector-badge svelte-rhveiw");
|
|
15114
16642
|
attr(button, "data-cy", "inspector-button");
|
|
16643
|
+
toggle_class(
|
|
16644
|
+
button,
|
|
16645
|
+
"ms-inspector-badge--error",
|
|
16646
|
+
/*$InspectorStore*/
|
|
16647
|
+
ctx[0].xRayErrorElements.length > 0
|
|
16648
|
+
);
|
|
15115
16649
|
set_style(
|
|
15116
16650
|
button,
|
|
15117
16651
|
"z-index",
|
|
@@ -15205,6 +16739,15 @@ function create_fragment$y(ctx) {
|
|
|
15205
16739
|
ctx2[0].showSidebar
|
|
15206
16740
|
);
|
|
15207
16741
|
}
|
|
16742
|
+
if (!current || dirty & /*$InspectorStore*/
|
|
16743
|
+
1) {
|
|
16744
|
+
toggle_class(
|
|
16745
|
+
button,
|
|
16746
|
+
"ms-inspector-badge--error",
|
|
16747
|
+
/*$InspectorStore*/
|
|
16748
|
+
ctx2[0].xRayErrorElements.length > 0
|
|
16749
|
+
);
|
|
16750
|
+
}
|
|
15208
16751
|
if (dirty & /*$InspectorStore*/
|
|
15209
16752
|
1) {
|
|
15210
16753
|
set_style(
|
|
@@ -24930,7 +26473,6 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
24930
26473
|
if (params && params.app) {
|
|
24931
26474
|
setAppStore(params.app);
|
|
24932
26475
|
} else {
|
|
24933
|
-
console.log("No app specified - request it");
|
|
24934
26476
|
yield getApp();
|
|
24935
26477
|
}
|
|
24936
26478
|
$$invalidate(7, appLoading = false);
|