@memberstack/dom 1.9.38 → 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.
@@ -47,6 +47,9 @@ function assign(tar, src) {
47
47
  tar[k] = src[k];
48
48
  return tar;
49
49
  }
50
+ function is_promise(value) {
51
+ return !!value && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
52
+ }
50
53
  function run(fn) {
51
54
  return fn();
52
55
  }
@@ -628,6 +631,84 @@ function create_bidirectional_transition(node, fn, params, intro) {
628
631
  }
629
632
  };
630
633
  }
634
+ function handle_promise(promise2, info) {
635
+ const token = info.token = {};
636
+ function update2(type, index, key, value) {
637
+ if (info.token !== token)
638
+ return;
639
+ info.resolved = value;
640
+ let child_ctx = info.ctx;
641
+ if (key !== void 0) {
642
+ child_ctx = child_ctx.slice();
643
+ child_ctx[key] = value;
644
+ }
645
+ const block = type && (info.current = type)(child_ctx);
646
+ let needs_flush = false;
647
+ if (info.block) {
648
+ if (info.blocks) {
649
+ info.blocks.forEach((block2, i) => {
650
+ if (i !== index && block2) {
651
+ group_outros();
652
+ transition_out(block2, 1, 1, () => {
653
+ if (info.blocks[i] === block2) {
654
+ info.blocks[i] = null;
655
+ }
656
+ });
657
+ check_outros();
658
+ }
659
+ });
660
+ } else {
661
+ info.block.d(1);
662
+ }
663
+ block.c();
664
+ transition_in(block, 1);
665
+ block.m(info.mount(), info.anchor);
666
+ needs_flush = true;
667
+ }
668
+ info.block = block;
669
+ if (info.blocks)
670
+ info.blocks[index] = block;
671
+ if (needs_flush) {
672
+ flush();
673
+ }
674
+ }
675
+ if (is_promise(promise2)) {
676
+ const current_component2 = get_current_component();
677
+ promise2.then((value) => {
678
+ set_current_component(current_component2);
679
+ update2(info.then, 1, info.value, value);
680
+ set_current_component(null);
681
+ }, (error) => {
682
+ set_current_component(current_component2);
683
+ update2(info.catch, 2, info.error, error);
684
+ set_current_component(null);
685
+ if (!info.hasCatch) {
686
+ throw error;
687
+ }
688
+ });
689
+ if (info.current !== info.pending) {
690
+ update2(info.pending, 0);
691
+ return true;
692
+ }
693
+ } else {
694
+ if (info.current !== info.then) {
695
+ update2(info.then, 1, info.value, promise2);
696
+ return true;
697
+ }
698
+ info.resolved = promise2;
699
+ }
700
+ }
701
+ function update_await_block_branch(info, ctx, dirty) {
702
+ const child_ctx = ctx.slice();
703
+ const { resolved } = info;
704
+ if (info.current === info.then) {
705
+ child_ctx[info.value] = resolved;
706
+ }
707
+ if (info.current === info.catch) {
708
+ child_ctx[info.error] = resolved;
709
+ }
710
+ info.block.p(child_ctx, dirty);
711
+ }
631
712
  function destroy_block(block, lookup) {
632
713
  block.d(1);
633
714
  lookup.delete(block.key);
@@ -917,7 +998,7 @@ var get_default_slot_context = (ctx) => ({ matches: (
917
998
  /*matches*/
918
999
  ctx[0]
919
1000
  ) });
920
- function create_fragment$1l(ctx) {
1001
+ function create_fragment$1n(ctx) {
921
1002
  let current;
922
1003
  const default_slot_template = (
923
1004
  /*#slots*/
@@ -982,7 +1063,7 @@ function create_fragment$1l(ctx) {
982
1063
  }
983
1064
  };
984
1065
  }
985
- function instance$I($$self, $$props, $$invalidate) {
1066
+ function instance$J($$self, $$props, $$invalidate) {
986
1067
  let { $$slots: slots = {}, $$scope } = $$props;
987
1068
  let { query } = $$props;
988
1069
  let mql;
@@ -1028,10 +1109,10 @@ function instance$I($$self, $$props, $$invalidate) {
1028
1109
  var MediaQuery = class extends SvelteComponent {
1029
1110
  constructor(options) {
1030
1111
  super();
1031
- init(this, options, instance$I, create_fragment$1l, safe_not_equal, { query: 1 });
1112
+ init(this, options, instance$J, create_fragment$1n, safe_not_equal, { query: 1 });
1032
1113
  }
1033
1114
  };
1034
- function create_fragment$1k(ctx) {
1115
+ function create_fragment$1m(ctx) {
1035
1116
  let svg;
1036
1117
  let path;
1037
1118
  let animateTransform;
@@ -1075,10 +1156,10 @@ function create_fragment$1k(ctx) {
1075
1156
  var LoadingIcon = class extends SvelteComponent {
1076
1157
  constructor(options) {
1077
1158
  super();
1078
- init(this, options, null, create_fragment$1k, safe_not_equal, {});
1159
+ init(this, options, null, create_fragment$1m, safe_not_equal, {});
1079
1160
  }
1080
1161
  };
1081
- function create_fragment$1j(ctx) {
1162
+ function create_fragment$1l(ctx) {
1082
1163
  let div;
1083
1164
  let loadingicon;
1084
1165
  let current;
@@ -1115,10 +1196,10 @@ function create_fragment$1j(ctx) {
1115
1196
  var Loader = class extends SvelteComponent {
1116
1197
  constructor(options) {
1117
1198
  super();
1118
- init(this, options, null, create_fragment$1j, safe_not_equal, {});
1199
+ init(this, options, null, create_fragment$1l, safe_not_equal, {});
1119
1200
  }
1120
1201
  };
1121
- function create_fragment$1i(ctx) {
1202
+ function create_fragment$1k(ctx) {
1122
1203
  let svg;
1123
1204
  let path;
1124
1205
  return {
@@ -1149,10 +1230,10 @@ function create_fragment$1i(ctx) {
1149
1230
  var CloseIcon = class extends SvelteComponent {
1150
1231
  constructor(options) {
1151
1232
  super();
1152
- init(this, options, null, create_fragment$1i, safe_not_equal, {});
1233
+ init(this, options, null, create_fragment$1k, safe_not_equal, {});
1153
1234
  }
1154
1235
  };
1155
- function create_fragment$1h(ctx) {
1236
+ function create_fragment$1j(ctx) {
1156
1237
  let div;
1157
1238
  let button;
1158
1239
  let closeicon;
@@ -1205,7 +1286,7 @@ function create_fragment$1h(ctx) {
1205
1286
  }
1206
1287
  };
1207
1288
  }
1208
- function instance$H($$self, $$props, $$invalidate) {
1289
+ function instance$I($$self, $$props, $$invalidate) {
1209
1290
  let { closeModal } = $$props;
1210
1291
  $$self.$$set = ($$props2) => {
1211
1292
  if ("closeModal" in $$props2)
@@ -1216,10 +1297,10 @@ function instance$H($$self, $$props, $$invalidate) {
1216
1297
  var CloseButton = class extends SvelteComponent {
1217
1298
  constructor(options) {
1218
1299
  super();
1219
- init(this, options, instance$H, create_fragment$1h, safe_not_equal, { closeModal: 0 });
1300
+ init(this, options, instance$I, create_fragment$1j, safe_not_equal, { closeModal: 0 });
1220
1301
  }
1221
1302
  };
1222
- function create_fragment$1g(ctx) {
1303
+ function create_fragment$1i(ctx) {
1223
1304
  let svg;
1224
1305
  let path0;
1225
1306
  let path1;
@@ -1272,10 +1353,10 @@ function create_fragment$1g(ctx) {
1272
1353
  var MemberstackIcon = class extends SvelteComponent {
1273
1354
  constructor(options) {
1274
1355
  super();
1275
- init(this, options, null, create_fragment$1g, safe_not_equal, {});
1356
+ init(this, options, null, create_fragment$1i, safe_not_equal, {});
1276
1357
  }
1277
1358
  };
1278
- function create_else_block$h(ctx) {
1359
+ function create_else_block$i(ctx) {
1279
1360
  let memberstackicon;
1280
1361
  let current;
1281
1362
  memberstackicon = new MemberstackIcon({});
@@ -1303,7 +1384,7 @@ function create_else_block$h(ctx) {
1303
1384
  }
1304
1385
  };
1305
1386
  }
1306
- function create_if_block$z(ctx) {
1387
+ function create_if_block$A(ctx) {
1307
1388
  let img;
1308
1389
  let img_src_value;
1309
1390
  let img_alt_value;
@@ -1340,12 +1421,12 @@ function create_if_block$z(ctx) {
1340
1421
  }
1341
1422
  };
1342
1423
  }
1343
- function create_fragment$1f(ctx) {
1424
+ function create_fragment$1h(ctx) {
1344
1425
  let figure;
1345
1426
  let current_block_type_index;
1346
1427
  let if_block;
1347
1428
  let current;
1348
- const if_block_creators = [create_if_block$z, create_else_block$h];
1429
+ const if_block_creators = [create_if_block$A, create_else_block$i];
1349
1430
  const if_blocks = [];
1350
1431
  function select_block_type(ctx2, dirty) {
1351
1432
  if (
@@ -1407,7 +1488,7 @@ function create_fragment$1f(ctx) {
1407
1488
  }
1408
1489
  };
1409
1490
  }
1410
- function instance$G($$self, $$props, $$invalidate) {
1491
+ function instance$H($$self, $$props, $$invalidate) {
1411
1492
  let app = {};
1412
1493
  AppStore.subscribe((data) => {
1413
1494
  $$invalidate(0, app = data);
@@ -1417,10 +1498,10 @@ function instance$G($$self, $$props, $$invalidate) {
1417
1498
  var FigureElement = class extends SvelteComponent {
1418
1499
  constructor(options) {
1419
1500
  super();
1420
- init(this, options, instance$G, create_fragment$1f, safe_not_equal, {});
1501
+ init(this, options, instance$H, create_fragment$1h, safe_not_equal, {});
1421
1502
  }
1422
1503
  };
1423
- function create_else_block$g(ctx) {
1504
+ function create_else_block$h(ctx) {
1424
1505
  let button;
1425
1506
  let loadingicon;
1426
1507
  let current;
@@ -1472,7 +1553,7 @@ function create_else_block$g(ctx) {
1472
1553
  }
1473
1554
  };
1474
1555
  }
1475
- function create_if_block$y(ctx) {
1556
+ function create_if_block$z(ctx) {
1476
1557
  let button;
1477
1558
  let t;
1478
1559
  return {
@@ -1521,12 +1602,12 @@ function create_if_block$y(ctx) {
1521
1602
  }
1522
1603
  };
1523
1604
  }
1524
- function create_fragment$1e(ctx) {
1605
+ function create_fragment$1g(ctx) {
1525
1606
  let div;
1526
1607
  let current_block_type_index;
1527
1608
  let if_block;
1528
1609
  let current;
1529
- const if_block_creators = [create_if_block$y, create_else_block$g];
1610
+ const if_block_creators = [create_if_block$z, create_else_block$h];
1530
1611
  const if_blocks = [];
1531
1612
  function select_block_type(ctx2, dirty) {
1532
1613
  if (!/*isLoading*/
@@ -1585,7 +1666,7 @@ function create_fragment$1e(ctx) {
1585
1666
  }
1586
1667
  };
1587
1668
  }
1588
- function instance$F($$self, $$props, $$invalidate) {
1669
+ function instance$G($$self, $$props, $$invalidate) {
1589
1670
  let $app;
1590
1671
  component_subscribe($$self, AppStore, ($$value) => $$invalidate(3, $app = $$value));
1591
1672
  let { buttonText = "Submit" } = $$props;
@@ -1605,10 +1686,10 @@ function instance$F($$self, $$props, $$invalidate) {
1605
1686
  var SubmitButton = class extends SvelteComponent {
1606
1687
  constructor(options) {
1607
1688
  super();
1608
- init(this, options, instance$F, create_fragment$1e, safe_not_equal, { buttonText: 0, isLoading: 1 });
1689
+ init(this, options, instance$G, create_fragment$1g, safe_not_equal, { buttonText: 0, isLoading: 1 });
1609
1690
  }
1610
1691
  };
1611
- function create_fragment$1d(ctx) {
1692
+ function create_fragment$1f(ctx) {
1612
1693
  let svg;
1613
1694
  let path;
1614
1695
  return {
@@ -1637,10 +1718,10 @@ function create_fragment$1d(ctx) {
1637
1718
  var ErrorIcon = class extends SvelteComponent {
1638
1719
  constructor(options) {
1639
1720
  super();
1640
- init(this, options, null, create_fragment$1d, safe_not_equal, {});
1721
+ init(this, options, null, create_fragment$1f, safe_not_equal, {});
1641
1722
  }
1642
1723
  };
1643
- function create_if_block$x(ctx) {
1724
+ function create_if_block$y(ctx) {
1644
1725
  let div;
1645
1726
  let erroricon;
1646
1727
  let t0;
@@ -1683,7 +1764,7 @@ function create_if_block$x(ctx) {
1683
1764
  }
1684
1765
  };
1685
1766
  }
1686
- function create_fragment$1c(ctx) {
1767
+ function create_fragment$1e(ctx) {
1687
1768
  let div;
1688
1769
  let label;
1689
1770
  let t0;
@@ -1695,7 +1776,7 @@ function create_fragment$1c(ctx) {
1695
1776
  let dispose;
1696
1777
  let if_block = (
1697
1778
  /*inputError*/
1698
- ctx[2] && create_if_block$x(ctx)
1779
+ ctx[2] && create_if_block$y(ctx)
1699
1780
  );
1700
1781
  return {
1701
1782
  c() {
@@ -1790,7 +1871,7 @@ function create_fragment$1c(ctx) {
1790
1871
  transition_in(if_block, 1);
1791
1872
  }
1792
1873
  } else {
1793
- if_block = create_if_block$x(ctx2);
1874
+ if_block = create_if_block$y(ctx2);
1794
1875
  if_block.c();
1795
1876
  transition_in(if_block, 1);
1796
1877
  if_block.m(div, null);
@@ -1823,7 +1904,7 @@ function create_fragment$1c(ctx) {
1823
1904
  }
1824
1905
  };
1825
1906
  }
1826
- function instance$E($$self, $$props, $$invalidate) {
1907
+ function instance$F($$self, $$props, $$invalidate) {
1827
1908
  let $textStore;
1828
1909
  component_subscribe($$self, TextStore, ($$value) => $$invalidate(9, $textStore = $$value));
1829
1910
  let { emailInputValid = false } = $$props;
@@ -1872,14 +1953,14 @@ function instance$E($$self, $$props, $$invalidate) {
1872
1953
  var EmailInput = class extends SvelteComponent {
1873
1954
  constructor(options) {
1874
1955
  super();
1875
- init(this, options, instance$E, create_fragment$1c, safe_not_equal, {
1956
+ init(this, options, instance$F, create_fragment$1e, safe_not_equal, {
1876
1957
  emailInputValid: 7,
1877
1958
  emailValue: 0,
1878
1959
  placeholder: 1
1879
1960
  });
1880
1961
  }
1881
1962
  };
1882
- function create_fragment$1b(ctx) {
1963
+ function create_fragment$1d(ctx) {
1883
1964
  let svg;
1884
1965
  let path;
1885
1966
  return {
@@ -1909,10 +1990,10 @@ function create_fragment$1b(ctx) {
1909
1990
  var EyeIcon = class extends SvelteComponent {
1910
1991
  constructor(options) {
1911
1992
  super();
1912
- init(this, options, null, create_fragment$1b, safe_not_equal, {});
1993
+ init(this, options, null, create_fragment$1d, safe_not_equal, {});
1913
1994
  }
1914
1995
  };
1915
- function create_fragment$1a(ctx) {
1996
+ function create_fragment$1c(ctx) {
1916
1997
  let svg;
1917
1998
  let path;
1918
1999
  return {
@@ -1942,10 +2023,10 @@ function create_fragment$1a(ctx) {
1942
2023
  var EyeSlashIcon = class extends SvelteComponent {
1943
2024
  constructor(options) {
1944
2025
  super();
1945
- init(this, options, null, create_fragment$1a, safe_not_equal, {});
2026
+ init(this, options, null, create_fragment$1c, safe_not_equal, {});
1946
2027
  }
1947
2028
  };
1948
- function create_if_block_2$i(ctx) {
2029
+ function create_if_block_2$k(ctx) {
1949
2030
  let div;
1950
2031
  let button;
1951
2032
  let mounted;
@@ -1984,7 +2065,7 @@ function create_if_block_2$i(ctx) {
1984
2065
  }
1985
2066
  };
1986
2067
  }
1987
- function create_else_block$f(ctx) {
2068
+ function create_else_block$g(ctx) {
1988
2069
  let eyeslashicon;
1989
2070
  let current;
1990
2071
  eyeslashicon = new EyeSlashIcon({});
@@ -2011,7 +2092,7 @@ function create_else_block$f(ctx) {
2011
2092
  }
2012
2093
  };
2013
2094
  }
2014
- function create_if_block_1$o(ctx) {
2095
+ function create_if_block_1$p(ctx) {
2015
2096
  let eyeicon;
2016
2097
  let current;
2017
2098
  eyeicon = new EyeIcon({});
@@ -2038,7 +2119,7 @@ function create_if_block_1$o(ctx) {
2038
2119
  }
2039
2120
  };
2040
2121
  }
2041
- function create_if_block$w(ctx) {
2122
+ function create_if_block$x(ctx) {
2042
2123
  let div;
2043
2124
  let erroricon;
2044
2125
  let t0;
@@ -2081,7 +2162,7 @@ function create_if_block$w(ctx) {
2081
2162
  }
2082
2163
  };
2083
2164
  }
2084
- function create_fragment$19(ctx) {
2165
+ function create_fragment$1b(ctx) {
2085
2166
  let div3;
2086
2167
  let div0;
2087
2168
  let label;
@@ -2101,9 +2182,9 @@ function create_fragment$19(ctx) {
2101
2182
  let dispose;
2102
2183
  let if_block0 = (
2103
2184
  /*showForgotPasswordLabel*/
2104
- ctx[2] && create_if_block_2$i(ctx)
2185
+ ctx[2] && create_if_block_2$k(ctx)
2105
2186
  );
2106
- const if_block_creators = [create_if_block_1$o, create_else_block$f];
2187
+ const if_block_creators = [create_if_block_1$p, create_else_block$g];
2107
2188
  const if_blocks = [];
2108
2189
  function select_block_type(ctx2, dirty) {
2109
2190
  if (!/*passwordVisible*/
@@ -2115,7 +2196,7 @@ function create_fragment$19(ctx) {
2115
2196
  if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
2116
2197
  let if_block2 = (
2117
2198
  /*inputError*/
2118
- ctx[6] && create_if_block$w(ctx)
2199
+ ctx[6] && create_if_block$x(ctx)
2119
2200
  );
2120
2201
  return {
2121
2202
  c() {
@@ -2218,7 +2299,7 @@ function create_fragment$19(ctx) {
2218
2299
  if (if_block0) {
2219
2300
  if_block0.p(ctx2, dirty);
2220
2301
  } else {
2221
- if_block0 = create_if_block_2$i(ctx2);
2302
+ if_block0 = create_if_block_2$k(ctx2);
2222
2303
  if_block0.c();
2223
2304
  if_block0.m(div0, null);
2224
2305
  }
@@ -2276,7 +2357,7 @@ function create_fragment$19(ctx) {
2276
2357
  transition_in(if_block2, 1);
2277
2358
  }
2278
2359
  } else {
2279
- if_block2 = create_if_block$w(ctx2);
2360
+ if_block2 = create_if_block$x(ctx2);
2280
2361
  if_block2.c();
2281
2362
  transition_in(if_block2, 1);
2282
2363
  if_block2.m(div3, null);
@@ -2314,7 +2395,7 @@ function create_fragment$19(ctx) {
2314
2395
  }
2315
2396
  };
2316
2397
  }
2317
- function instance$D($$self, $$props, $$invalidate) {
2398
+ function instance$E($$self, $$props, $$invalidate) {
2318
2399
  let type;
2319
2400
  let $textStore;
2320
2401
  component_subscribe($$self, TextStore, ($$value) => $$invalidate(15, $textStore = $$value));
@@ -2388,7 +2469,7 @@ function instance$D($$self, $$props, $$invalidate) {
2388
2469
  var PasswordInput = class extends SvelteComponent {
2389
2470
  constructor(options) {
2390
2471
  super();
2391
- init(this, options, instance$D, create_fragment$19, safe_not_equal, {
2472
+ init(this, options, instance$E, create_fragment$1b, safe_not_equal, {
2392
2473
  showForgotPasswordLabel: 2,
2393
2474
  passwordInputValid: 13,
2394
2475
  passwordLabel: 3,
@@ -2398,7 +2479,7 @@ var PasswordInput = class extends SvelteComponent {
2398
2479
  });
2399
2480
  }
2400
2481
  };
2401
- function create_fragment$18(ctx) {
2482
+ function create_fragment$1a(ctx) {
2402
2483
  let svg;
2403
2484
  let path;
2404
2485
  return {
@@ -2428,10 +2509,10 @@ function create_fragment$18(ctx) {
2428
2509
  var SecuredIcon = class extends SvelteComponent {
2429
2510
  constructor(options) {
2430
2511
  super();
2431
- init(this, options, null, create_fragment$18, safe_not_equal, {});
2512
+ init(this, options, null, create_fragment$1a, safe_not_equal, {});
2432
2513
  }
2433
2514
  };
2434
- function create_if_block$v(ctx) {
2515
+ function create_if_block$w(ctx) {
2435
2516
  let div;
2436
2517
  let a;
2437
2518
  let securedicon;
@@ -2472,11 +2553,11 @@ function create_if_block$v(ctx) {
2472
2553
  }
2473
2554
  };
2474
2555
  }
2475
- function create_fragment$17(ctx) {
2556
+ function create_fragment$19(ctx) {
2476
2557
  let if_block_anchor;
2477
2558
  let current;
2478
2559
  let if_block = !/*$app*/
2479
- ctx[0].isPaid && create_if_block$v();
2560
+ ctx[0].isPaid && create_if_block$w();
2480
2561
  return {
2481
2562
  c() {
2482
2563
  if (if_block)
@@ -2498,7 +2579,7 @@ function create_fragment$17(ctx) {
2498
2579
  transition_in(if_block, 1);
2499
2580
  }
2500
2581
  } else {
2501
- if_block = create_if_block$v();
2582
+ if_block = create_if_block$w();
2502
2583
  if_block.c();
2503
2584
  transition_in(if_block, 1);
2504
2585
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -2529,7 +2610,7 @@ function create_fragment$17(ctx) {
2529
2610
  }
2530
2611
  };
2531
2612
  }
2532
- function instance$C($$self, $$props, $$invalidate) {
2613
+ function instance$D($$self, $$props, $$invalidate) {
2533
2614
  let $app;
2534
2615
  component_subscribe($$self, AppStore, ($$value) => $$invalidate(0, $app = $$value));
2535
2616
  return [$app];
@@ -2537,10 +2618,10 @@ function instance$C($$self, $$props, $$invalidate) {
2537
2618
  var ModalFooter = class extends SvelteComponent {
2538
2619
  constructor(options) {
2539
2620
  super();
2540
- init(this, options, instance$C, create_fragment$17, safe_not_equal, {});
2621
+ init(this, options, instance$D, create_fragment$19, safe_not_equal, {});
2541
2622
  }
2542
2623
  };
2543
- function create_fragment$16(ctx) {
2624
+ function create_fragment$18(ctx) {
2544
2625
  let svg;
2545
2626
  let path;
2546
2627
  return {
@@ -2569,7 +2650,7 @@ function create_fragment$16(ctx) {
2569
2650
  var EmailIcon = class extends SvelteComponent {
2570
2651
  constructor(options) {
2571
2652
  super();
2572
- init(this, options, null, create_fragment$16, safe_not_equal, {});
2653
+ init(this, options, null, create_fragment$18, safe_not_equal, {});
2573
2654
  }
2574
2655
  };
2575
2656
  var PasswordlessStore = writable({
@@ -2609,7 +2690,7 @@ var setPasswordlessMode = (mode) => {
2609
2690
  return store;
2610
2691
  });
2611
2692
  };
2612
- function get_each_context$c(ctx, list, i) {
2693
+ function get_each_context$d(ctx, list, i) {
2613
2694
  const child_ctx = ctx.slice();
2614
2695
  child_ctx[22] = list[i];
2615
2696
  return child_ctx;
@@ -2654,7 +2735,7 @@ function create_if_block_6$5(ctx) {
2654
2735
  }
2655
2736
  };
2656
2737
  }
2657
- function create_else_block_1$7(ctx) {
2738
+ function create_else_block_1$8(ctx) {
2658
2739
  let submitbutton;
2659
2740
  let current;
2660
2741
  submitbutton = new SubmitButton({
@@ -2700,7 +2781,7 @@ function create_else_block_1$7(ctx) {
2700
2781
  }
2701
2782
  };
2702
2783
  }
2703
- function create_if_block_5$5(ctx) {
2784
+ function create_if_block_5$7(ctx) {
2704
2785
  let passwordinput;
2705
2786
  let updating_passwordInputValid;
2706
2787
  let updating_display;
@@ -2807,7 +2888,7 @@ function create_if_block_5$5(ctx) {
2807
2888
  }
2808
2889
  };
2809
2890
  }
2810
- function create_if_block_4$7(ctx) {
2891
+ function create_if_block_4$8(ctx) {
2811
2892
  let div;
2812
2893
  let button;
2813
2894
  let mounted;
@@ -2844,7 +2925,7 @@ function create_if_block_4$7(ctx) {
2844
2925
  }
2845
2926
  };
2846
2927
  }
2847
- function create_if_block_3$9(ctx) {
2928
+ function create_if_block_3$b(ctx) {
2848
2929
  let div;
2849
2930
  let button;
2850
2931
  let mounted;
@@ -2881,7 +2962,7 @@ function create_if_block_3$9(ctx) {
2881
2962
  }
2882
2963
  };
2883
2964
  }
2884
- function create_if_block$u(ctx) {
2965
+ function create_if_block$v(ctx) {
2885
2966
  let div4;
2886
2967
  let div3;
2887
2968
  let div0;
@@ -2894,7 +2975,7 @@ function create_if_block$u(ctx) {
2894
2975
  let current;
2895
2976
  let if_block = (
2896
2977
  /*$app*/
2897
- ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$n(ctx)
2978
+ ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$o(ctx)
2898
2979
  );
2899
2980
  let each_value = (
2900
2981
  /*$app*/
@@ -2902,7 +2983,7 @@ function create_if_block$u(ctx) {
2902
2983
  );
2903
2984
  let each_blocks = [];
2904
2985
  for (let i = 0; i < each_value.length; i += 1) {
2905
- each_blocks[i] = create_each_block$c(get_each_context$c(ctx, each_value, i));
2986
+ each_blocks[i] = create_each_block$d(get_each_context$d(ctx, each_value, i));
2906
2987
  }
2907
2988
  return {
2908
2989
  c() {
@@ -2959,7 +3040,7 @@ function create_if_block$u(ctx) {
2959
3040
  transition_in(if_block, 1);
2960
3041
  }
2961
3042
  } else {
2962
- if_block = create_if_block_1$n(ctx2);
3043
+ if_block = create_if_block_1$o(ctx2);
2963
3044
  if_block.c();
2964
3045
  transition_in(if_block, 1);
2965
3046
  if_block.m(div4, t4);
@@ -2977,11 +3058,11 @@ function create_if_block$u(ctx) {
2977
3058
  ctx2[7].authProviders;
2978
3059
  let i;
2979
3060
  for (i = 0; i < each_value.length; i += 1) {
2980
- const child_ctx = get_each_context$c(ctx2, each_value, i);
3061
+ const child_ctx = get_each_context$d(ctx2, each_value, i);
2981
3062
  if (each_blocks[i]) {
2982
3063
  each_blocks[i].p(child_ctx, dirty);
2983
3064
  } else {
2984
- each_blocks[i] = create_each_block$c(child_ctx);
3065
+ each_blocks[i] = create_each_block$d(child_ctx);
2985
3066
  each_blocks[i].c();
2986
3067
  each_blocks[i].m(div4, null);
2987
3068
  }
@@ -3011,12 +3092,12 @@ function create_if_block$u(ctx) {
3011
3092
  }
3012
3093
  };
3013
3094
  }
3014
- function create_if_block_1$n(ctx) {
3095
+ function create_if_block_1$o(ctx) {
3015
3096
  let div;
3016
3097
  let current_block_type_index;
3017
3098
  let if_block;
3018
3099
  let current;
3019
- const if_block_creators = [create_if_block_2$h, create_else_block$e];
3100
+ const if_block_creators = [create_if_block_2$j, create_else_block$f];
3020
3101
  const if_blocks = [];
3021
3102
  function select_block_type_2(ctx2, dirty) {
3022
3103
  if (
@@ -3078,7 +3159,7 @@ function create_if_block_1$n(ctx) {
3078
3159
  }
3079
3160
  };
3080
3161
  }
3081
- function create_else_block$e(ctx) {
3162
+ function create_else_block$f(ctx) {
3082
3163
  let button;
3083
3164
  let span;
3084
3165
  let mounted;
@@ -3117,7 +3198,7 @@ function create_else_block$e(ctx) {
3117
3198
  }
3118
3199
  };
3119
3200
  }
3120
- function create_if_block_2$h(ctx) {
3201
+ function create_if_block_2$j(ctx) {
3121
3202
  let button;
3122
3203
  let emailicon;
3123
3204
  let t0;
@@ -3174,7 +3255,7 @@ function create_if_block_2$h(ctx) {
3174
3255
  }
3175
3256
  };
3176
3257
  }
3177
- function create_each_block$c(ctx) {
3258
+ function create_each_block$d(ctx) {
3178
3259
  let div;
3179
3260
  let button;
3180
3261
  let img;
@@ -3265,7 +3346,7 @@ function create_each_block$c(ctx) {
3265
3346
  }
3266
3347
  };
3267
3348
  }
3268
- function create_fragment$15(ctx) {
3349
+ function create_fragment$17(ctx) {
3269
3350
  let div1;
3270
3351
  let t0;
3271
3352
  let div0;
@@ -3308,7 +3389,7 @@ function create_fragment$15(ctx) {
3308
3389
  }
3309
3390
  emailinput = new EmailInput({ props: emailinput_props });
3310
3391
  binding_callbacks.push(() => bind(emailinput, "emailInputValid", emailinput_emailInputValid_binding));
3311
- const if_block_creators = [create_if_block_5$5, create_else_block_1$7];
3392
+ const if_block_creators = [create_if_block_5$7, create_else_block_1$8];
3312
3393
  const if_blocks = [];
3313
3394
  function select_block_type(ctx2, dirty) {
3314
3395
  if (!/*$PasswordlessStore*/
@@ -3325,19 +3406,19 @@ function create_fragment$15(ctx) {
3325
3406
  ctx2[2].signup && /*params*/
3326
3407
  ctx2[2].signup.plans
3327
3408
  )
3328
- return create_if_block_3$9;
3409
+ return create_if_block_3$b;
3329
3410
  if (
3330
3411
  /*signupButtonURL*/
3331
3412
  ctx2[9]
3332
3413
  )
3333
- return create_if_block_4$7;
3414
+ return create_if_block_4$8;
3334
3415
  }
3335
3416
  let current_block_type = select_block_type_1(ctx);
3336
3417
  let if_block2 = current_block_type && current_block_type(ctx);
3337
3418
  let if_block3 = (
3338
3419
  /*$app*/
3339
3420
  (ctx[7].authProviders.length > 0 || /*$app*/
3340
- ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$u(ctx)
3421
+ ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$v(ctx)
3341
3422
  );
3342
3423
  modalfooter = new ModalFooter({});
3343
3424
  return {
@@ -3479,7 +3560,7 @@ function create_fragment$15(ctx) {
3479
3560
  transition_in(if_block3, 1);
3480
3561
  }
3481
3562
  } else {
3482
- if_block3 = create_if_block$u(ctx2);
3563
+ if_block3 = create_if_block$v(ctx2);
3483
3564
  if_block3.c();
3484
3565
  transition_in(if_block3, 1);
3485
3566
  if_block3.m(div0, null);
@@ -3531,7 +3612,7 @@ function create_fragment$15(ctx) {
3531
3612
  }
3532
3613
  };
3533
3614
  }
3534
- function instance$B($$self, $$props, $$invalidate) {
3615
+ function instance$C($$self, $$props, $$invalidate) {
3535
3616
  let $PasswordlessStore;
3536
3617
  let $app;
3537
3618
  let $textStore;
@@ -3657,7 +3738,7 @@ function instance$B($$self, $$props, $$invalidate) {
3657
3738
  var LoginModal = class extends SvelteComponent {
3658
3739
  constructor(options) {
3659
3740
  super();
3660
- init(this, options, instance$B, create_fragment$15, safe_not_equal, {
3741
+ init(this, options, instance$C, create_fragment$17, safe_not_equal, {
3661
3742
  closeModal: 1,
3662
3743
  display: 0,
3663
3744
  onSuccessLogin: 12,
@@ -3665,15 +3746,15 @@ var LoginModal = class extends SvelteComponent {
3665
3746
  });
3666
3747
  }
3667
3748
  };
3668
- function add_css$k(target) {
3749
+ function add_css$l(target) {
3669
3750
  append_styles(target, "svelte-1w8lbd8", ".rey-was-here.svelte-1w8lbd8{display:none !important}");
3670
3751
  }
3671
- function get_each_context$b(ctx, list, i) {
3752
+ function get_each_context$c(ctx, list, i) {
3672
3753
  const child_ctx = ctx.slice();
3673
3754
  child_ctx[25] = list[i];
3674
3755
  return child_ctx;
3675
3756
  }
3676
- function get_each_context_1$4(ctx, list, i) {
3757
+ function get_each_context_1$5(ctx, list, i) {
3677
3758
  const child_ctx = ctx.slice();
3678
3759
  child_ctx[28] = list[i];
3679
3760
  child_ctx[30] = i;
@@ -3719,7 +3800,7 @@ function create_if_block_6$4(ctx) {
3719
3800
  }
3720
3801
  };
3721
3802
  }
3722
- function create_if_block_5$4(ctx) {
3803
+ function create_if_block_5$6(ctx) {
3723
3804
  let div1;
3724
3805
  let div0;
3725
3806
  let label;
@@ -3789,11 +3870,11 @@ function create_if_block_5$4(ctx) {
3789
3870
  }
3790
3871
  };
3791
3872
  }
3792
- function create_each_block_1$4(ctx) {
3873
+ function create_each_block_1$5(ctx) {
3793
3874
  let if_block_anchor;
3794
3875
  let if_block = (
3795
3876
  /*customField*/
3796
- ctx[28].hidden !== true && create_if_block_5$4(ctx)
3877
+ ctx[28].hidden !== true && create_if_block_5$6(ctx)
3797
3878
  );
3798
3879
  return {
3799
3880
  c() {
@@ -3814,7 +3895,7 @@ function create_each_block_1$4(ctx) {
3814
3895
  if (if_block) {
3815
3896
  if_block.p(ctx2, dirty);
3816
3897
  } else {
3817
- if_block = create_if_block_5$4(ctx2);
3898
+ if_block = create_if_block_5$6(ctx2);
3818
3899
  if_block.c();
3819
3900
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
3820
3901
  }
@@ -3831,7 +3912,7 @@ function create_each_block_1$4(ctx) {
3831
3912
  }
3832
3913
  };
3833
3914
  }
3834
- function create_if_block_4$6(ctx) {
3915
+ function create_if_block_4$7(ctx) {
3835
3916
  let passwordinput;
3836
3917
  let updating_passwordInputValid;
3837
3918
  let current;
@@ -3882,7 +3963,7 @@ function create_if_block_4$6(ctx) {
3882
3963
  }
3883
3964
  };
3884
3965
  }
3885
- function create_else_block_1$6(ctx) {
3966
+ function create_else_block_1$7(ctx) {
3886
3967
  let submitbutton;
3887
3968
  let current;
3888
3969
  submitbutton = new SubmitButton({
@@ -3925,7 +4006,7 @@ function create_else_block_1$6(ctx) {
3925
4006
  }
3926
4007
  };
3927
4008
  }
3928
- function create_if_block_3$8(ctx) {
4009
+ function create_if_block_3$a(ctx) {
3929
4010
  let submitbutton;
3930
4011
  let current;
3931
4012
  submitbutton = new SubmitButton({
@@ -3968,7 +4049,7 @@ function create_if_block_3$8(ctx) {
3968
4049
  }
3969
4050
  };
3970
4051
  }
3971
- function create_if_block$t(ctx) {
4052
+ function create_if_block$u(ctx) {
3972
4053
  let div4;
3973
4054
  let div3;
3974
4055
  let t3;
@@ -3976,7 +4057,7 @@ function create_if_block$t(ctx) {
3976
4057
  let current;
3977
4058
  let if_block = (
3978
4059
  /*$app*/
3979
- ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$m(ctx)
4060
+ ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$n(ctx)
3980
4061
  );
3981
4062
  let each_value = (
3982
4063
  /*$app*/
@@ -3984,7 +4065,7 @@ function create_if_block$t(ctx) {
3984
4065
  );
3985
4066
  let each_blocks = [];
3986
4067
  for (let i = 0; i < each_value.length; i += 1) {
3987
- each_blocks[i] = create_each_block$b(get_each_context$b(ctx, each_value, i));
4068
+ each_blocks[i] = create_each_block$c(get_each_context$c(ctx, each_value, i));
3988
4069
  }
3989
4070
  return {
3990
4071
  c() {
@@ -4029,7 +4110,7 @@ function create_if_block$t(ctx) {
4029
4110
  transition_in(if_block, 1);
4030
4111
  }
4031
4112
  } else {
4032
- if_block = create_if_block_1$m(ctx2);
4113
+ if_block = create_if_block_1$n(ctx2);
4033
4114
  if_block.c();
4034
4115
  transition_in(if_block, 1);
4035
4116
  if_block.m(div4, t4);
@@ -4047,11 +4128,11 @@ function create_if_block$t(ctx) {
4047
4128
  ctx2[7].authProviders;
4048
4129
  let i;
4049
4130
  for (i = 0; i < each_value.length; i += 1) {
4050
- const child_ctx = get_each_context$b(ctx2, each_value, i);
4131
+ const child_ctx = get_each_context$c(ctx2, each_value, i);
4051
4132
  if (each_blocks[i]) {
4052
4133
  each_blocks[i].p(child_ctx, dirty);
4053
4134
  } else {
4054
- each_blocks[i] = create_each_block$b(child_ctx);
4135
+ each_blocks[i] = create_each_block$c(child_ctx);
4055
4136
  each_blocks[i].c();
4056
4137
  each_blocks[i].m(div4, null);
4057
4138
  }
@@ -4081,12 +4162,12 @@ function create_if_block$t(ctx) {
4081
4162
  }
4082
4163
  };
4083
4164
  }
4084
- function create_if_block_1$m(ctx) {
4165
+ function create_if_block_1$n(ctx) {
4085
4166
  let div;
4086
4167
  let current_block_type_index;
4087
4168
  let if_block;
4088
4169
  let current;
4089
- const if_block_creators = [create_if_block_2$g, create_else_block$d];
4170
+ const if_block_creators = [create_if_block_2$i, create_else_block$e];
4090
4171
  const if_blocks = [];
4091
4172
  function select_block_type_1(ctx2, dirty) {
4092
4173
  if (
@@ -4148,7 +4229,7 @@ function create_if_block_1$m(ctx) {
4148
4229
  }
4149
4230
  };
4150
4231
  }
4151
- function create_else_block$d(ctx) {
4232
+ function create_else_block$e(ctx) {
4152
4233
  let button;
4153
4234
  let span;
4154
4235
  let mounted;
@@ -4187,7 +4268,7 @@ function create_else_block$d(ctx) {
4187
4268
  }
4188
4269
  };
4189
4270
  }
4190
- function create_if_block_2$g(ctx) {
4271
+ function create_if_block_2$i(ctx) {
4191
4272
  let button;
4192
4273
  let emailicon;
4193
4274
  let t0;
@@ -4244,7 +4325,7 @@ function create_if_block_2$g(ctx) {
4244
4325
  }
4245
4326
  };
4246
4327
  }
4247
- function create_each_block$b(ctx) {
4328
+ function create_each_block$c(ctx) {
4248
4329
  let div;
4249
4330
  let button;
4250
4331
  let img;
@@ -4328,7 +4409,7 @@ function create_each_block$b(ctx) {
4328
4409
  }
4329
4410
  };
4330
4411
  }
4331
- function create_fragment$14(ctx) {
4412
+ function create_fragment$16(ctx) {
4332
4413
  let div4;
4333
4414
  let t0;
4334
4415
  let div3;
@@ -4367,7 +4448,7 @@ function create_fragment$14(ctx) {
4367
4448
  );
4368
4449
  let each_blocks = [];
4369
4450
  for (let i = 0; i < each_value_1.length; i += 1) {
4370
- each_blocks[i] = create_each_block_1$4(get_each_context_1$4(ctx, each_value_1, i));
4451
+ each_blocks[i] = create_each_block_1$5(get_each_context_1$5(ctx, each_value_1, i));
4371
4452
  }
4372
4453
  function emailinput_emailInputValid_binding(value) {
4373
4454
  ctx[12](value);
@@ -4384,9 +4465,9 @@ function create_fragment$14(ctx) {
4384
4465
  binding_callbacks.push(() => bind(emailinput, "emailInputValid", emailinput_emailInputValid_binding));
4385
4466
  let if_block1 = (
4386
4467
  /*$PasswordlessStore*/
4387
- ctx[6].passwordlessMode === false && create_if_block_4$6(ctx)
4468
+ ctx[6].passwordlessMode === false && create_if_block_4$7(ctx)
4388
4469
  );
4389
- const if_block_creators = [create_if_block_3$8, create_else_block_1$6];
4470
+ const if_block_creators = [create_if_block_3$a, create_else_block_1$7];
4390
4471
  const if_blocks = [];
4391
4472
  function select_block_type(ctx2, dirty) {
4392
4473
  if (
@@ -4401,7 +4482,7 @@ function create_fragment$14(ctx) {
4401
4482
  let if_block3 = (
4402
4483
  /*$app*/
4403
4484
  (ctx[7].authProviders.length > 0 || /*$app*/
4404
- ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$t(ctx)
4485
+ ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$u(ctx)
4405
4486
  );
4406
4487
  modalfooter = new ModalFooter({});
4407
4488
  return {
@@ -4536,11 +4617,11 @@ function create_fragment$14(ctx) {
4536
4617
  ctx2[7].customFields;
4537
4618
  let i;
4538
4619
  for (i = 0; i < each_value_1.length; i += 1) {
4539
- const child_ctx = get_each_context_1$4(ctx2, each_value_1, i);
4620
+ const child_ctx = get_each_context_1$5(ctx2, each_value_1, i);
4540
4621
  if (each_blocks[i]) {
4541
4622
  each_blocks[i].p(child_ctx, dirty);
4542
4623
  } else {
4543
- each_blocks[i] = create_each_block_1$4(child_ctx);
4624
+ each_blocks[i] = create_each_block_1$5(child_ctx);
4544
4625
  each_blocks[i].c();
4545
4626
  each_blocks[i].m(form, t4);
4546
4627
  }
@@ -4570,7 +4651,7 @@ function create_fragment$14(ctx) {
4570
4651
  transition_in(if_block1, 1);
4571
4652
  }
4572
4653
  } else {
4573
- if_block1 = create_if_block_4$6(ctx2);
4654
+ if_block1 = create_if_block_4$7(ctx2);
4574
4655
  if_block1.c();
4575
4656
  transition_in(if_block1, 1);
4576
4657
  if_block1.m(form, t9);
@@ -4614,7 +4695,7 @@ function create_fragment$14(ctx) {
4614
4695
  transition_in(if_block3, 1);
4615
4696
  }
4616
4697
  } else {
4617
- if_block3 = create_if_block$t(ctx2);
4698
+ if_block3 = create_if_block$u(ctx2);
4618
4699
  if_block3.c();
4619
4700
  transition_in(if_block3, 1);
4620
4701
  if_block3.m(div3, null);
@@ -4675,7 +4756,7 @@ function executeCaptcha() {
4675
4756
  return response;
4676
4757
  });
4677
4758
  }
4678
- function instance$A($$self, $$props, $$invalidate) {
4759
+ function instance$B($$self, $$props, $$invalidate) {
4679
4760
  var _a;
4680
4761
  let $PasswordlessStore;
4681
4762
  let $app;
@@ -4848,8 +4929,8 @@ var SignupModal = class extends SvelteComponent {
4848
4929
  init(
4849
4930
  this,
4850
4931
  options,
4851
- instance$A,
4852
- create_fragment$14,
4932
+ instance$B,
4933
+ create_fragment$16,
4853
4934
  safe_not_equal,
4854
4935
  {
4855
4936
  closeModal: 1,
@@ -4857,11 +4938,11 @@ var SignupModal = class extends SvelteComponent {
4857
4938
  onSuccessSignup: 11,
4858
4939
  params: 2
4859
4940
  },
4860
- add_css$k
4941
+ add_css$l
4861
4942
  );
4862
4943
  }
4863
4944
  };
4864
- function create_fragment$13(ctx) {
4945
+ function create_fragment$15(ctx) {
4865
4946
  let svg;
4866
4947
  let path;
4867
4948
  return {
@@ -4890,10 +4971,10 @@ function create_fragment$13(ctx) {
4890
4971
  var BackIcon = class extends SvelteComponent {
4891
4972
  constructor(options) {
4892
4973
  super();
4893
- init(this, options, null, create_fragment$13, safe_not_equal, {});
4974
+ init(this, options, null, create_fragment$15, safe_not_equal, {});
4894
4975
  }
4895
4976
  };
4896
- function create_fragment$12(ctx) {
4977
+ function create_fragment$14(ctx) {
4897
4978
  let div4;
4898
4979
  let div0;
4899
4980
  let button;
@@ -5088,7 +5169,7 @@ function create_fragment$12(ctx) {
5088
5169
  }
5089
5170
  };
5090
5171
  }
5091
- function instance$z($$self, $$props, $$invalidate) {
5172
+ function instance$A($$self, $$props, $$invalidate) {
5092
5173
  let $textStore;
5093
5174
  component_subscribe($$self, TextStore, ($$value) => $$invalidate(9, $textStore = $$value));
5094
5175
  let text2 = $textStore.text;
@@ -5141,10 +5222,10 @@ function instance$z($$self, $$props, $$invalidate) {
5141
5222
  var PassResetModal = class extends SvelteComponent {
5142
5223
  constructor(options) {
5143
5224
  super();
5144
- init(this, options, instance$z, create_fragment$12, safe_not_equal, { closeModal: 5, display: 0 });
5225
+ init(this, options, instance$A, create_fragment$14, safe_not_equal, { closeModal: 5, display: 0 });
5145
5226
  }
5146
5227
  };
5147
- function create_if_block$s(ctx) {
5228
+ function create_if_block$t(ctx) {
5148
5229
  let div;
5149
5230
  let erroricon;
5150
5231
  let t;
@@ -5180,7 +5261,7 @@ function create_if_block$s(ctx) {
5180
5261
  }
5181
5262
  };
5182
5263
  }
5183
- function create_fragment$11(ctx) {
5264
+ function create_fragment$13(ctx) {
5184
5265
  let div3;
5185
5266
  let div0;
5186
5267
  let button;
@@ -5218,18 +5299,18 @@ function create_fragment$11(ctx) {
5218
5299
  });
5219
5300
  figureelement = new FigureElement({});
5220
5301
  let if_block = !/*tokenInputValid*/
5221
- ctx[3] && create_if_block$s();
5302
+ ctx[3] && create_if_block$t();
5222
5303
  function passwordinput_passwordInputValid_binding(value) {
5223
5304
  ctx[9](value);
5224
5305
  }
5225
5306
  let passwordinput_props = {
5226
5307
  passwordPlaceholder: (
5227
5308
  /*text*/
5228
- ctx[5]["reset_password_placeholder"]
5309
+ ctx[5]["reset_password_placeholder"] || "New password"
5229
5310
  ),
5230
5311
  passwordLabel: (
5231
5312
  /*text*/
5232
- ctx[5]["password"] || "Password"
5313
+ ctx[5]["password"] || "Enter a new password"
5233
5314
  )
5234
5315
  };
5235
5316
  if (
@@ -5366,7 +5447,7 @@ function create_fragment$11(ctx) {
5366
5447
  transition_in(if_block, 1);
5367
5448
  }
5368
5449
  } else {
5369
- if_block = create_if_block$s();
5450
+ if_block = create_if_block$t();
5370
5451
  if_block.c();
5371
5452
  transition_in(if_block, 1);
5372
5453
  if_block.m(div1, null);
@@ -5432,7 +5513,7 @@ function create_fragment$11(ctx) {
5432
5513
  }
5433
5514
  };
5434
5515
  }
5435
- function instance$y($$self, $$props, $$invalidate) {
5516
+ function instance$z($$self, $$props, $$invalidate) {
5436
5517
  let $textStore;
5437
5518
  component_subscribe($$self, TextStore, ($$value) => $$invalidate(10, $textStore = $$value));
5438
5519
  let text2 = $textStore.text;
@@ -5529,14 +5610,14 @@ function instance$y($$self, $$props, $$invalidate) {
5529
5610
  var PassTokenModal = class extends SvelteComponent {
5530
5611
  constructor(options) {
5531
5612
  super();
5532
- init(this, options, instance$y, create_fragment$11, safe_not_equal, {
5613
+ init(this, options, instance$z, create_fragment$13, safe_not_equal, {
5533
5614
  closeModal: 1,
5534
5615
  display: 0,
5535
5616
  onSuccessPasswordReset: 7
5536
5617
  });
5537
5618
  }
5538
5619
  };
5539
- function create_fragment$10(ctx) {
5620
+ function create_fragment$12(ctx) {
5540
5621
  let div2;
5541
5622
  let div0;
5542
5623
  let t0;
@@ -5632,7 +5713,7 @@ function create_fragment$10(ctx) {
5632
5713
  }
5633
5714
  };
5634
5715
  }
5635
- function instance$x($$self, $$props, $$invalidate) {
5716
+ function instance$y($$self, $$props, $$invalidate) {
5636
5717
  let { closeModal } = $$props;
5637
5718
  $$self.$$set = ($$props2) => {
5638
5719
  if ("closeModal" in $$props2)
@@ -5643,10 +5724,10 @@ function instance$x($$self, $$props, $$invalidate) {
5643
5724
  var PassSuccessModal = class extends SvelteComponent {
5644
5725
  constructor(options) {
5645
5726
  super();
5646
- init(this, options, instance$x, create_fragment$10, safe_not_equal, { closeModal: 0 });
5727
+ init(this, options, instance$y, create_fragment$12, safe_not_equal, { closeModal: 0 });
5647
5728
  }
5648
5729
  };
5649
- function create_else_block_1$5(ctx) {
5730
+ function create_else_block_1$6(ctx) {
5650
5731
  let button;
5651
5732
  let backicon;
5652
5733
  let current;
@@ -5692,7 +5773,7 @@ function create_else_block_1$5(ctx) {
5692
5773
  }
5693
5774
  };
5694
5775
  }
5695
- function create_if_block_2$f(ctx) {
5776
+ function create_if_block_2$h(ctx) {
5696
5777
  let button;
5697
5778
  let backicon;
5698
5779
  let current;
@@ -5738,7 +5819,7 @@ function create_if_block_2$f(ctx) {
5738
5819
  }
5739
5820
  };
5740
5821
  }
5741
- function create_else_block$c(ctx) {
5822
+ function create_else_block$d(ctx) {
5742
5823
  let h2;
5743
5824
  return {
5744
5825
  c() {
@@ -5757,7 +5838,7 @@ function create_else_block$c(ctx) {
5757
5838
  }
5758
5839
  };
5759
5840
  }
5760
- function create_if_block_1$l(ctx) {
5841
+ function create_if_block_1$m(ctx) {
5761
5842
  let h2;
5762
5843
  return {
5763
5844
  c() {
@@ -5776,7 +5857,7 @@ function create_if_block_1$l(ctx) {
5776
5857
  }
5777
5858
  };
5778
5859
  }
5779
- function create_if_block$r(ctx) {
5860
+ function create_if_block$s(ctx) {
5780
5861
  let div;
5781
5862
  let erroricon;
5782
5863
  let t;
@@ -5812,7 +5893,7 @@ function create_if_block$r(ctx) {
5812
5893
  }
5813
5894
  };
5814
5895
  }
5815
- function create_fragment$$(ctx) {
5896
+ function create_fragment$11(ctx) {
5816
5897
  let div3;
5817
5898
  let div0;
5818
5899
  let current_block_type_index;
@@ -5839,7 +5920,7 @@ function create_fragment$$(ctx) {
5839
5920
  let current;
5840
5921
  let mounted;
5841
5922
  let dispose;
5842
- const if_block_creators = [create_if_block_2$f, create_else_block_1$5];
5923
+ const if_block_creators = [create_if_block_2$h, create_else_block_1$6];
5843
5924
  const if_blocks = [];
5844
5925
  function select_block_type(ctx2, dirty) {
5845
5926
  if (
@@ -5863,13 +5944,13 @@ function create_fragment$$(ctx) {
5863
5944
  /*$PasswordlessStore*/
5864
5945
  ctx2[4].passwordlessModalType === "login"
5865
5946
  )
5866
- return create_if_block_1$l;
5867
- return create_else_block$c;
5947
+ return create_if_block_1$m;
5948
+ return create_else_block$d;
5868
5949
  }
5869
5950
  let current_block_type = select_block_type_1(ctx);
5870
5951
  let if_block1 = current_block_type(ctx);
5871
5952
  let if_block2 = !/*tokenInputValid*/
5872
- ctx[3] && create_if_block$r();
5953
+ ctx[3] && create_if_block$s();
5873
5954
  submitbutton = new SubmitButton({
5874
5955
  props: {
5875
5956
  buttonText: (
@@ -6015,7 +6096,7 @@ function create_fragment$$(ctx) {
6015
6096
  transition_in(if_block2, 1);
6016
6097
  }
6017
6098
  } else {
6018
- if_block2 = create_if_block$r();
6099
+ if_block2 = create_if_block$s();
6019
6100
  if_block2.c();
6020
6101
  transition_in(if_block2, 1);
6021
6102
  if_block2.m(div1, null);
@@ -6070,7 +6151,7 @@ function create_fragment$$(ctx) {
6070
6151
  }
6071
6152
  };
6072
6153
  }
6073
- function instance$w($$self, $$props, $$invalidate) {
6154
+ function instance$x($$self, $$props, $$invalidate) {
6074
6155
  let $PasswordlessStore;
6075
6156
  let $textStore;
6076
6157
  component_subscribe($$self, PasswordlessStore, ($$value) => $$invalidate(4, $PasswordlessStore = $$value));
@@ -6190,7 +6271,7 @@ function instance$w($$self, $$props, $$invalidate) {
6190
6271
  var PasswordlessTokenModal = class extends SvelteComponent {
6191
6272
  constructor(options) {
6192
6273
  super();
6193
- init(this, options, instance$w, create_fragment$$, safe_not_equal, {
6274
+ init(this, options, instance$x, create_fragment$11, safe_not_equal, {
6194
6275
  closeModal: 1,
6195
6276
  display: 0,
6196
6277
  onSuccessPasswordlessToken: 7,
@@ -6198,7 +6279,7 @@ var PasswordlessTokenModal = class extends SvelteComponent {
6198
6279
  });
6199
6280
  }
6200
6281
  };
6201
- function create_fragment$_(ctx) {
6282
+ function create_fragment$10(ctx) {
6202
6283
  let svg;
6203
6284
  let path;
6204
6285
  return {
@@ -6227,10 +6308,10 @@ function create_fragment$_(ctx) {
6227
6308
  var ProfileIcon = class extends SvelteComponent {
6228
6309
  constructor(options) {
6229
6310
  super();
6230
- init(this, options, null, create_fragment$_, safe_not_equal, {});
6311
+ init(this, options, null, create_fragment$10, safe_not_equal, {});
6231
6312
  }
6232
6313
  };
6233
- function create_fragment$Z(ctx) {
6314
+ function create_fragment$$(ctx) {
6234
6315
  let svg;
6235
6316
  let path;
6236
6317
  return {
@@ -6259,10 +6340,10 @@ function create_fragment$Z(ctx) {
6259
6340
  var SecurityIcon = class extends SvelteComponent {
6260
6341
  constructor(options) {
6261
6342
  super();
6262
- init(this, options, null, create_fragment$Z, safe_not_equal, {});
6343
+ init(this, options, null, create_fragment$$, safe_not_equal, {});
6263
6344
  }
6264
6345
  };
6265
- function create_fragment$Y(ctx) {
6346
+ function create_fragment$_(ctx) {
6266
6347
  let svg;
6267
6348
  let path;
6268
6349
  return {
@@ -6291,10 +6372,10 @@ function create_fragment$Y(ctx) {
6291
6372
  var LinkOutIcon = class extends SvelteComponent {
6292
6373
  constructor(options) {
6293
6374
  super();
6294
- init(this, options, null, create_fragment$Y, safe_not_equal, {});
6375
+ init(this, options, null, create_fragment$_, safe_not_equal, {});
6295
6376
  }
6296
6377
  };
6297
- function create_fragment$X(ctx) {
6378
+ function create_fragment$Z(ctx) {
6298
6379
  let svg;
6299
6380
  let path;
6300
6381
  return {
@@ -6325,10 +6406,10 @@ function create_fragment$X(ctx) {
6325
6406
  var LogoutIcon = class extends SvelteComponent {
6326
6407
  constructor(options) {
6327
6408
  super();
6328
- init(this, options, null, create_fragment$X, safe_not_equal, {});
6409
+ init(this, options, null, create_fragment$Z, safe_not_equal, {});
6329
6410
  }
6330
6411
  };
6331
- function create_fragment$W(ctx) {
6412
+ function create_fragment$Y(ctx) {
6332
6413
  let svg;
6333
6414
  let path;
6334
6415
  return {
@@ -6357,10 +6438,10 @@ function create_fragment$W(ctx) {
6357
6438
  var PlansIcon = class extends SvelteComponent {
6358
6439
  constructor(options) {
6359
6440
  super();
6360
- init(this, options, null, create_fragment$W, safe_not_equal, {});
6441
+ init(this, options, null, create_fragment$Y, safe_not_equal, {});
6361
6442
  }
6362
6443
  };
6363
- function create_if_block_1$k(ctx) {
6444
+ function create_if_block_2$g(ctx) {
6364
6445
  let button;
6365
6446
  let profileicon;
6366
6447
  let t;
@@ -6392,7 +6473,7 @@ function create_if_block_1$k(ctx) {
6392
6473
  button,
6393
6474
  "click",
6394
6475
  /*click_handler*/
6395
- ctx[7]
6476
+ ctx[8]
6396
6477
  );
6397
6478
  mounted = true;
6398
6479
  }
@@ -6427,7 +6508,7 @@ function create_if_block_1$k(ctx) {
6427
6508
  }
6428
6509
  };
6429
6510
  }
6430
- function create_if_block$q(ctx) {
6511
+ function create_if_block_1$l(ctx) {
6431
6512
  let button;
6432
6513
  let plansicon;
6433
6514
  let t;
@@ -6459,7 +6540,7 @@ function create_if_block$q(ctx) {
6459
6540
  button,
6460
6541
  "click",
6461
6542
  /*click_handler_2*/
6462
- ctx[9]
6543
+ ctx[10]
6463
6544
  );
6464
6545
  mounted = true;
6465
6546
  }
@@ -6494,51 +6575,127 @@ function create_if_block$q(ctx) {
6494
6575
  }
6495
6576
  };
6496
6577
  }
6497
- function create_fragment$V(ctx) {
6498
- let t0;
6499
- let button0;
6500
- let securityicon;
6501
- let t1;
6502
- let t2;
6503
- let show_if = (
6504
- /*showPlansNavButton*/
6505
- ctx[3]()
6506
- );
6507
- let t3;
6508
- let button1;
6509
- let logouticon;
6510
- let t4;
6578
+ function create_if_block$r(ctx) {
6579
+ let button;
6580
+ let plansicon;
6581
+ let t;
6511
6582
  let current;
6512
6583
  let mounted;
6513
6584
  let dispose;
6514
- let if_block0 = !/*hideProfileSection*/
6515
- ctx[1] && create_if_block_1$k(ctx);
6516
- securityicon = new SecurityIcon({});
6517
- let if_block1 = show_if && create_if_block$q(ctx);
6518
- logouticon = new LogoutIcon({});
6585
+ plansicon = new PlansIcon({});
6519
6586
  return {
6520
6587
  c() {
6521
- if (if_block0)
6522
- if_block0.c();
6523
- t0 = space();
6524
- button0 = element("button");
6525
- create_component(securityicon.$$.fragment);
6526
- t1 = text(" Security");
6527
- t2 = space();
6528
- if (if_block1)
6529
- if_block1.c();
6530
- t3 = space();
6531
- button1 = element("button");
6532
- create_component(logouticon.$$.fragment);
6533
- t4 = text(" Logout");
6534
- attr(button0, "data-cy", "security-btn");
6535
- attr(button0, "class", "ms-modal__profile-option");
6588
+ button = element("button");
6589
+ create_component(plansicon.$$.fragment);
6590
+ t = text(" Team");
6591
+ attr(button, "data-cy", "plans-btn");
6592
+ attr(button, "class", "ms-modal__profile-option");
6536
6593
  toggle_class(
6537
- button0,
6594
+ button,
6538
6595
  "ms-modal__profile-option--active",
6539
6596
  /*displayProfile*/
6540
- ctx[0] === "security" || /*displayProfile*/
6541
- ctx[0] === "changePassword"
6597
+ ctx[0] === "team"
6598
+ );
6599
+ },
6600
+ m(target, anchor) {
6601
+ insert(target, button, anchor);
6602
+ mount_component(plansicon, button, null);
6603
+ append(button, t);
6604
+ current = true;
6605
+ if (!mounted) {
6606
+ dispose = listen(
6607
+ button,
6608
+ "click",
6609
+ /*click_handler_3*/
6610
+ ctx[11]
6611
+ );
6612
+ mounted = true;
6613
+ }
6614
+ },
6615
+ p(ctx2, dirty) {
6616
+ if (!current || dirty & /*displayProfile*/
6617
+ 1) {
6618
+ toggle_class(
6619
+ button,
6620
+ "ms-modal__profile-option--active",
6621
+ /*displayProfile*/
6622
+ ctx2[0] === "team"
6623
+ );
6624
+ }
6625
+ },
6626
+ i(local) {
6627
+ if (current)
6628
+ return;
6629
+ transition_in(plansicon.$$.fragment, local);
6630
+ current = true;
6631
+ },
6632
+ o(local) {
6633
+ transition_out(plansicon.$$.fragment, local);
6634
+ current = false;
6635
+ },
6636
+ d(detaching) {
6637
+ if (detaching)
6638
+ detach(button);
6639
+ destroy_component(plansicon);
6640
+ mounted = false;
6641
+ dispose();
6642
+ }
6643
+ };
6644
+ }
6645
+ function create_fragment$X(ctx) {
6646
+ let t0;
6647
+ let button0;
6648
+ let securityicon;
6649
+ let t1;
6650
+ let t2;
6651
+ let show_if_1 = (
6652
+ /*showPlansNavButton*/
6653
+ ctx[3]()
6654
+ );
6655
+ let t3;
6656
+ let show_if = (
6657
+ /*showTeamNavButton*/
6658
+ ctx[4]()
6659
+ );
6660
+ let t4;
6661
+ let button1;
6662
+ let logouticon;
6663
+ let t5;
6664
+ let current;
6665
+ let mounted;
6666
+ let dispose;
6667
+ let if_block0 = !/*hideProfileSection*/
6668
+ ctx[1] && create_if_block_2$g(ctx);
6669
+ securityicon = new SecurityIcon({});
6670
+ let if_block1 = show_if_1 && create_if_block_1$l(ctx);
6671
+ let if_block2 = show_if && create_if_block$r(ctx);
6672
+ logouticon = new LogoutIcon({});
6673
+ return {
6674
+ c() {
6675
+ if (if_block0)
6676
+ if_block0.c();
6677
+ t0 = space();
6678
+ button0 = element("button");
6679
+ create_component(securityicon.$$.fragment);
6680
+ t1 = text(" Security");
6681
+ t2 = space();
6682
+ if (if_block1)
6683
+ if_block1.c();
6684
+ t3 = space();
6685
+ if (if_block2)
6686
+ if_block2.c();
6687
+ t4 = space();
6688
+ button1 = element("button");
6689
+ create_component(logouticon.$$.fragment);
6690
+ t5 = text(" Logout");
6691
+ attr(button0, "data-cy", "security-btn");
6692
+ attr(button0, "class", "ms-modal__profile-option");
6693
+ toggle_class(
6694
+ button0,
6695
+ "ms-modal__profile-option--active",
6696
+ /*displayProfile*/
6697
+ ctx[0] === "security" || /*displayProfile*/
6698
+ ctx[0] === "changePassword"
6542
6699
  );
6543
6700
  attr(button1, "data-cy", "logout-btn");
6544
6701
  attr(button1, "class", "ms-modal__profile-option");
@@ -6554,9 +6711,12 @@ function create_fragment$V(ctx) {
6554
6711
  if (if_block1)
6555
6712
  if_block1.m(target, anchor);
6556
6713
  insert(target, t3, anchor);
6714
+ if (if_block2)
6715
+ if_block2.m(target, anchor);
6716
+ insert(target, t4, anchor);
6557
6717
  insert(target, button1, anchor);
6558
6718
  mount_component(logouticon, button1, null);
6559
- append(button1, t4);
6719
+ append(button1, t5);
6560
6720
  current = true;
6561
6721
  if (!mounted) {
6562
6722
  dispose = [
@@ -6564,7 +6724,7 @@ function create_fragment$V(ctx) {
6564
6724
  button0,
6565
6725
  "click",
6566
6726
  /*click_handler_1*/
6567
- ctx[8]
6727
+ ctx[9]
6568
6728
  ),
6569
6729
  listen(
6570
6730
  button1,
@@ -6586,7 +6746,7 @@ function create_fragment$V(ctx) {
6586
6746
  transition_in(if_block0, 1);
6587
6747
  }
6588
6748
  } else {
6589
- if_block0 = create_if_block_1$k(ctx2);
6749
+ if_block0 = create_if_block_2$g(ctx2);
6590
6750
  if_block0.c();
6591
6751
  transition_in(if_block0, 1);
6592
6752
  if_block0.m(t0.parentNode, t0);
@@ -6608,8 +6768,10 @@ function create_fragment$V(ctx) {
6608
6768
  ctx2[0] === "changePassword"
6609
6769
  );
6610
6770
  }
6611
- if (show_if)
6771
+ if (show_if_1)
6612
6772
  if_block1.p(ctx2, dirty);
6773
+ if (show_if)
6774
+ if_block2.p(ctx2, dirty);
6613
6775
  },
6614
6776
  i(local) {
6615
6777
  if (current)
@@ -6617,6 +6779,7 @@ function create_fragment$V(ctx) {
6617
6779
  transition_in(if_block0);
6618
6780
  transition_in(securityicon.$$.fragment, local);
6619
6781
  transition_in(if_block1);
6782
+ transition_in(if_block2);
6620
6783
  transition_in(logouticon.$$.fragment, local);
6621
6784
  current = true;
6622
6785
  },
@@ -6624,6 +6787,7 @@ function create_fragment$V(ctx) {
6624
6787
  transition_out(if_block0);
6625
6788
  transition_out(securityicon.$$.fragment, local);
6626
6789
  transition_out(if_block1);
6790
+ transition_out(if_block2);
6627
6791
  transition_out(logouticon.$$.fragment, local);
6628
6792
  current = false;
6629
6793
  },
@@ -6641,6 +6805,10 @@ function create_fragment$V(ctx) {
6641
6805
  if_block1.d(detaching);
6642
6806
  if (detaching)
6643
6807
  detach(t3);
6808
+ if (if_block2)
6809
+ if_block2.d(detaching);
6810
+ if (detaching)
6811
+ detach(t4);
6644
6812
  if (detaching)
6645
6813
  detach(button1);
6646
6814
  destroy_component(logouticon);
@@ -6649,7 +6817,7 @@ function create_fragment$V(ctx) {
6649
6817
  }
6650
6818
  };
6651
6819
  }
6652
- function instance$v($$self, $$props, $$invalidate) {
6820
+ function instance$w($$self, $$props, $$invalidate) {
6653
6821
  let { member } = $$props;
6654
6822
  let { onSuccessLogout } = $$props;
6655
6823
  let { displayProfile } = $$props;
@@ -6680,20 +6848,25 @@ function instance$v($$self, $$props, $$invalidate) {
6680
6848
  });
6681
6849
  }
6682
6850
  function showPlansNavButton() {
6683
- return member.stripeCustomerId || member.planConnections.some((plan) => plan.type === "FREE");
6851
+ return member.stripeCustomerId || member.planConnections.some((plan) => plan.type === "FREE") || member.teams.joinedTeams.length > 0;
6852
+ }
6853
+ function showTeamNavButton() {
6854
+ var _a;
6855
+ return ((_a = member.teams) == null ? void 0 : _a.ownedTeams.length) > 0;
6684
6856
  }
6685
6857
  const click_handler = () => $$invalidate(0, displayProfile = "profile");
6686
6858
  const click_handler_1 = () => $$invalidate(0, displayProfile = "security");
6687
6859
  const click_handler_2 = () => $$invalidate(0, displayProfile = "plans");
6860
+ const click_handler_3 = () => $$invalidate(0, displayProfile = "team");
6688
6861
  $$self.$$set = ($$props2) => {
6689
6862
  if ("member" in $$props2)
6690
- $$invalidate(4, member = $$props2.member);
6863
+ $$invalidate(5, member = $$props2.member);
6691
6864
  if ("onSuccessLogout" in $$props2)
6692
- $$invalidate(5, onSuccessLogout = $$props2.onSuccessLogout);
6865
+ $$invalidate(6, onSuccessLogout = $$props2.onSuccessLogout);
6693
6866
  if ("displayProfile" in $$props2)
6694
6867
  $$invalidate(0, displayProfile = $$props2.displayProfile);
6695
6868
  if ("profileLoader" in $$props2)
6696
- $$invalidate(6, profileLoader = $$props2.profileLoader);
6869
+ $$invalidate(7, profileLoader = $$props2.profileLoader);
6697
6870
  if ("hideProfileSection" in $$props2)
6698
6871
  $$invalidate(1, hideProfileSection2 = $$props2.hideProfileSection);
6699
6872
  };
@@ -6702,27 +6875,29 @@ function instance$v($$self, $$props, $$invalidate) {
6702
6875
  hideProfileSection2,
6703
6876
  logout,
6704
6877
  showPlansNavButton,
6878
+ showTeamNavButton,
6705
6879
  member,
6706
6880
  onSuccessLogout,
6707
6881
  profileLoader,
6708
6882
  click_handler,
6709
6883
  click_handler_1,
6710
- click_handler_2
6884
+ click_handler_2,
6885
+ click_handler_3
6711
6886
  ];
6712
6887
  }
6713
6888
  var ProfileModalNav = class extends SvelteComponent {
6714
6889
  constructor(options) {
6715
6890
  super();
6716
- init(this, options, instance$v, create_fragment$V, safe_not_equal, {
6717
- member: 4,
6718
- onSuccessLogout: 5,
6891
+ init(this, options, instance$w, create_fragment$X, safe_not_equal, {
6892
+ member: 5,
6893
+ onSuccessLogout: 6,
6719
6894
  displayProfile: 0,
6720
- profileLoader: 6,
6895
+ profileLoader: 7,
6721
6896
  hideProfileSection: 1
6722
6897
  });
6723
6898
  }
6724
6899
  };
6725
- function create_fragment$U(ctx) {
6900
+ function create_fragment$W(ctx) {
6726
6901
  let svg;
6727
6902
  let path;
6728
6903
  return {
@@ -6753,10 +6928,10 @@ function create_fragment$U(ctx) {
6753
6928
  var ProfileDefaultImage = class extends SvelteComponent {
6754
6929
  constructor(options) {
6755
6930
  super();
6756
- init(this, options, null, create_fragment$U, safe_not_equal, {});
6931
+ init(this, options, null, create_fragment$W, safe_not_equal, {});
6757
6932
  }
6758
6933
  };
6759
- function create_fragment$T(ctx) {
6934
+ function create_fragment$V(ctx) {
6760
6935
  let svg;
6761
6936
  let g;
6762
6937
  let path0;
@@ -6801,17 +6976,17 @@ function create_fragment$T(ctx) {
6801
6976
  var UploadIcon = class extends SvelteComponent {
6802
6977
  constructor(options) {
6803
6978
  super();
6804
- init(this, options, null, create_fragment$T, safe_not_equal, {});
6979
+ init(this, options, null, create_fragment$V, safe_not_equal, {});
6805
6980
  }
6806
6981
  };
6807
- function get_each_context$a(ctx, list, i) {
6982
+ function get_each_context$b(ctx, list, i) {
6808
6983
  const child_ctx = ctx.slice();
6809
6984
  child_ctx[10] = list[i];
6810
6985
  child_ctx[11] = list;
6811
6986
  child_ctx[12] = i;
6812
6987
  return child_ctx;
6813
6988
  }
6814
- function create_else_block_1$4(ctx) {
6989
+ function create_else_block_1$5(ctx) {
6815
6990
  let profiledefaultimage;
6816
6991
  let current;
6817
6992
  profiledefaultimage = new ProfileDefaultImage({});
@@ -6839,7 +7014,7 @@ function create_else_block_1$4(ctx) {
6839
7014
  }
6840
7015
  };
6841
7016
  }
6842
- function create_if_block_2$e(ctx) {
7017
+ function create_if_block_2$f(ctx) {
6843
7018
  let img;
6844
7019
  let img_src_value;
6845
7020
  return {
@@ -6868,7 +7043,7 @@ function create_if_block_2$e(ctx) {
6868
7043
  }
6869
7044
  };
6870
7045
  }
6871
- function create_else_block$b(ctx) {
7046
+ function create_else_block$c(ctx) {
6872
7047
  let t;
6873
7048
  return {
6874
7049
  c() {
@@ -6883,7 +7058,7 @@ function create_else_block$b(ctx) {
6883
7058
  }
6884
7059
  };
6885
7060
  }
6886
- function create_if_block_1$j(ctx) {
7061
+ function create_if_block_1$k(ctx) {
6887
7062
  let t;
6888
7063
  return {
6889
7064
  c() {
@@ -6898,7 +7073,7 @@ function create_if_block_1$j(ctx) {
6898
7073
  }
6899
7074
  };
6900
7075
  }
6901
- function create_if_block$p(ctx) {
7076
+ function create_if_block$q(ctx) {
6902
7077
  let div1;
6903
7078
  let div0;
6904
7079
  let label;
@@ -7023,11 +7198,11 @@ function create_if_block$p(ctx) {
7023
7198
  }
7024
7199
  };
7025
7200
  }
7026
- function create_each_block$a(ctx) {
7201
+ function create_each_block$b(ctx) {
7027
7202
  let if_block_anchor;
7028
7203
  let if_block = (
7029
7204
  /*customField*/
7030
- ctx[10].hidden !== true && create_if_block$p(ctx)
7205
+ ctx[10].hidden !== true && create_if_block$q(ctx)
7031
7206
  );
7032
7207
  return {
7033
7208
  c() {
@@ -7048,7 +7223,7 @@ function create_each_block$a(ctx) {
7048
7223
  if (if_block) {
7049
7224
  if_block.p(ctx2, dirty);
7050
7225
  } else {
7051
- if_block = create_if_block$p(ctx2);
7226
+ if_block = create_if_block$q(ctx2);
7052
7227
  if_block.c();
7053
7228
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
7054
7229
  }
@@ -7065,7 +7240,7 @@ function create_each_block$a(ctx) {
7065
7240
  }
7066
7241
  };
7067
7242
  }
7068
- function create_fragment$S(ctx) {
7243
+ function create_fragment$U(ctx) {
7069
7244
  let div1;
7070
7245
  let h2;
7071
7246
  let t1;
@@ -7086,7 +7261,7 @@ function create_fragment$S(ctx) {
7086
7261
  let current;
7087
7262
  let mounted;
7088
7263
  let dispose;
7089
- const if_block_creators = [create_if_block_2$e, create_else_block_1$4];
7264
+ const if_block_creators = [create_if_block_2$f, create_else_block_1$5];
7090
7265
  const if_blocks = [];
7091
7266
  function select_block_type(ctx2, dirty) {
7092
7267
  if (
@@ -7102,8 +7277,8 @@ function create_fragment$S(ctx) {
7102
7277
  function select_block_type_1(ctx2, dirty) {
7103
7278
  if (!/*member*/
7104
7279
  ctx2[0].profileImage)
7105
- return create_if_block_1$j;
7106
- return create_else_block$b;
7280
+ return create_if_block_1$k;
7281
+ return create_else_block$c;
7107
7282
  }
7108
7283
  let current_block_type = select_block_type_1(ctx);
7109
7284
  let if_block1 = current_block_type(ctx);
@@ -7113,7 +7288,7 @@ function create_fragment$S(ctx) {
7113
7288
  );
7114
7289
  let each_blocks = [];
7115
7290
  for (let i = 0; i < each_value.length; i += 1) {
7116
- each_blocks[i] = create_each_block$a(get_each_context$a(ctx, each_value, i));
7291
+ each_blocks[i] = create_each_block$b(get_each_context$b(ctx, each_value, i));
7117
7292
  }
7118
7293
  return {
7119
7294
  c() {
@@ -7236,11 +7411,11 @@ function create_fragment$S(ctx) {
7236
7411
  ctx2[1];
7237
7412
  let i;
7238
7413
  for (i = 0; i < each_value.length; i += 1) {
7239
- const child_ctx = get_each_context$a(ctx2, each_value, i);
7414
+ const child_ctx = get_each_context$b(ctx2, each_value, i);
7240
7415
  if (each_blocks[i]) {
7241
7416
  each_blocks[i].p(child_ctx, dirty);
7242
7417
  } else {
7243
- each_blocks[i] = create_each_block$a(child_ctx);
7418
+ each_blocks[i] = create_each_block$b(child_ctx);
7244
7419
  each_blocks[i].c();
7245
7420
  each_blocks[i].m(form, null);
7246
7421
  }
@@ -7283,7 +7458,7 @@ function create_fragment$S(ctx) {
7283
7458
  }
7284
7459
  };
7285
7460
  }
7286
- function instance$u($$self, $$props, $$invalidate) {
7461
+ function instance$v($$self, $$props, $$invalidate) {
7287
7462
  let { customFields } = $$props;
7288
7463
  let { member } = $$props;
7289
7464
  let { profileLoader } = $$props;
@@ -7386,14 +7561,14 @@ function instance$u($$self, $$props, $$invalidate) {
7386
7561
  var ProfileInfoContent = class extends SvelteComponent {
7387
7562
  constructor(options) {
7388
7563
  super();
7389
- init(this, options, instance$u, create_fragment$S, safe_not_equal, {
7564
+ init(this, options, instance$v, create_fragment$U, safe_not_equal, {
7390
7565
  customFields: 1,
7391
7566
  member: 0,
7392
7567
  profileLoader: 5
7393
7568
  });
7394
7569
  }
7395
7570
  };
7396
- function create_fragment$R(ctx) {
7571
+ function create_fragment$T(ctx) {
7397
7572
  let svg;
7398
7573
  let path;
7399
7574
  return {
@@ -7422,15 +7597,15 @@ function create_fragment$R(ctx) {
7422
7597
  var PasswordLockIcon = class extends SvelteComponent {
7423
7598
  constructor(options) {
7424
7599
  super();
7425
- init(this, options, null, create_fragment$R, safe_not_equal, {});
7600
+ init(this, options, null, create_fragment$T, safe_not_equal, {});
7426
7601
  }
7427
7602
  };
7428
- function get_each_context$9(ctx, list, i) {
7603
+ function get_each_context$a(ctx, list, i) {
7429
7604
  const child_ctx = ctx.slice();
7430
7605
  child_ctx[16] = list[i];
7431
7606
  return child_ctx;
7432
7607
  }
7433
- function create_else_block_1$3(ctx) {
7608
+ function create_else_block_1$4(ctx) {
7434
7609
  let t;
7435
7610
  return {
7436
7611
  c() {
@@ -7445,7 +7620,7 @@ function create_else_block_1$3(ctx) {
7445
7620
  }
7446
7621
  };
7447
7622
  }
7448
- function create_if_block_2$d(ctx) {
7623
+ function create_if_block_2$e(ctx) {
7449
7624
  let t;
7450
7625
  return {
7451
7626
  c() {
@@ -7460,7 +7635,7 @@ function create_if_block_2$d(ctx) {
7460
7635
  }
7461
7636
  };
7462
7637
  }
7463
- function create_if_block$o(ctx) {
7638
+ function create_if_block$p(ctx) {
7464
7639
  let p;
7465
7640
  let t1;
7466
7641
  let div;
@@ -7475,9 +7650,9 @@ function create_if_block$o(ctx) {
7475
7650
  ctx2[16].provider
7476
7651
  );
7477
7652
  for (let i = 0; i < each_value.length; i += 1) {
7478
- let child_ctx = get_each_context$9(ctx, each_value, i);
7653
+ let child_ctx = get_each_context$a(ctx, each_value, i);
7479
7654
  let key = get_key(child_ctx);
7480
- each_1_lookup.set(key, each_blocks[i] = create_each_block$9(key, child_ctx));
7655
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$a(key, child_ctx));
7481
7656
  }
7482
7657
  return {
7483
7658
  c() {
@@ -7506,7 +7681,7 @@ function create_if_block$o(ctx) {
7506
7681
  210) {
7507
7682
  each_value = /*$app*/
7508
7683
  ctx2[4].authProviders;
7509
- each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx2, each_value, each_1_lookup, div, destroy_block, create_each_block$9, null, get_each_context$9);
7684
+ 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);
7510
7685
  }
7511
7686
  },
7512
7687
  d(detaching) {
@@ -7522,7 +7697,7 @@ function create_if_block$o(ctx) {
7522
7697
  }
7523
7698
  };
7524
7699
  }
7525
- function create_else_block$a(ctx) {
7700
+ function create_else_block$b(ctx) {
7526
7701
  let button;
7527
7702
  let img;
7528
7703
  let img_src_value;
@@ -7599,7 +7774,7 @@ function create_else_block$a(ctx) {
7599
7774
  }
7600
7775
  };
7601
7776
  }
7602
- function create_if_block_1$i(ctx) {
7777
+ function create_if_block_1$j(ctx) {
7603
7778
  let button;
7604
7779
  let img;
7605
7780
  let img_src_value;
@@ -7677,7 +7852,7 @@ function create_if_block_1$i(ctx) {
7677
7852
  }
7678
7853
  };
7679
7854
  }
7680
- function create_each_block$9(key_1, ctx) {
7855
+ function create_each_block$a(key_1, ctx) {
7681
7856
  let div;
7682
7857
  let show_if;
7683
7858
  let t;
@@ -7699,8 +7874,8 @@ function create_each_block$9(key_1, ctx) {
7699
7874
  show_if = !!/*member*/
7700
7875
  ctx2[1].auth.providers.some(func2);
7701
7876
  if (show_if)
7702
- return create_if_block_1$i;
7703
- return create_else_block$a;
7877
+ return create_if_block_1$j;
7878
+ return create_else_block$b;
7704
7879
  }
7705
7880
  let current_block_type = select_block_type_1(ctx, -1);
7706
7881
  let if_block = current_block_type(ctx);
@@ -7739,7 +7914,7 @@ function create_each_block$9(key_1, ctx) {
7739
7914
  }
7740
7915
  };
7741
7916
  }
7742
- function create_fragment$Q(ctx) {
7917
+ function create_fragment$S(ctx) {
7743
7918
  let div1;
7744
7919
  let h2;
7745
7920
  let t1;
@@ -7792,14 +7967,14 @@ function create_fragment$Q(ctx) {
7792
7967
  function select_block_type(ctx2, dirty) {
7793
7968
  if (!/*member*/
7794
7969
  ctx2[1].auth.hasPassword)
7795
- return create_if_block_2$d;
7796
- return create_else_block_1$3;
7970
+ return create_if_block_2$e;
7971
+ return create_else_block_1$4;
7797
7972
  }
7798
7973
  let current_block_type = select_block_type(ctx);
7799
7974
  let if_block0 = current_block_type(ctx);
7800
7975
  let if_block1 = (
7801
7976
  /*$app*/
7802
- ctx[4].authProviders.length > 0 && create_if_block$o(ctx)
7977
+ ctx[4].authProviders.length > 0 && create_if_block$p(ctx)
7803
7978
  );
7804
7979
  return {
7805
7980
  c() {
@@ -7925,7 +8100,7 @@ function create_fragment$Q(ctx) {
7925
8100
  if (if_block1) {
7926
8101
  if_block1.p(ctx2, dirty);
7927
8102
  } else {
7928
- if_block1 = create_if_block$o(ctx2);
8103
+ if_block1 = create_if_block$p(ctx2);
7929
8104
  if_block1.c();
7930
8105
  if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
7931
8106
  }
@@ -7971,7 +8146,7 @@ function create_fragment$Q(ctx) {
7971
8146
  }
7972
8147
  };
7973
8148
  }
7974
- function instance$t($$self, $$props, $$invalidate) {
8149
+ function instance$u($$self, $$props, $$invalidate) {
7975
8150
  let $app;
7976
8151
  component_subscribe($$self, AppStore, ($$value) => $$invalidate(4, $app = $$value));
7977
8152
  let { displayProfile } = $$props;
@@ -8080,7 +8255,7 @@ function instance$t($$self, $$props, $$invalidate) {
8080
8255
  var SecurityInfoContent = class extends SvelteComponent {
8081
8256
  constructor(options) {
8082
8257
  super();
8083
- init(this, options, instance$t, create_fragment$Q, safe_not_equal, {
8258
+ init(this, options, instance$u, create_fragment$S, safe_not_equal, {
8084
8259
  displayProfile: 0,
8085
8260
  member: 1,
8086
8261
  emailValue: 2,
@@ -8088,7 +8263,7 @@ var SecurityInfoContent = class extends SvelteComponent {
8088
8263
  });
8089
8264
  }
8090
8265
  };
8091
- function create_else_block$9(ctx) {
8266
+ function create_else_block$a(ctx) {
8092
8267
  let t;
8093
8268
  return {
8094
8269
  c() {
@@ -8103,7 +8278,7 @@ function create_else_block$9(ctx) {
8103
8278
  }
8104
8279
  };
8105
8280
  }
8106
- function create_if_block_1$h(ctx) {
8281
+ function create_if_block_1$i(ctx) {
8107
8282
  let t;
8108
8283
  return {
8109
8284
  c() {
@@ -8118,7 +8293,7 @@ function create_if_block_1$h(ctx) {
8118
8293
  }
8119
8294
  };
8120
8295
  }
8121
- function create_if_block$n(ctx) {
8296
+ function create_if_block$o(ctx) {
8122
8297
  let passwordinput;
8123
8298
  let updating_passwordValue;
8124
8299
  let updating_passwordInputValid;
@@ -8191,7 +8366,7 @@ function create_if_block$n(ctx) {
8191
8366
  }
8192
8367
  };
8193
8368
  }
8194
- function create_fragment$P(ctx) {
8369
+ function create_fragment$R(ctx) {
8195
8370
  let div3;
8196
8371
  let div1;
8197
8372
  let div0;
@@ -8221,14 +8396,14 @@ function create_fragment$P(ctx) {
8221
8396
  function select_block_type(ctx2, dirty) {
8222
8397
  if (!/*member*/
8223
8398
  ctx2[1].auth.hasPassword)
8224
- return create_if_block_1$h;
8225
- return create_else_block$9;
8399
+ return create_if_block_1$i;
8400
+ return create_else_block$a;
8226
8401
  }
8227
8402
  let current_block_type = select_block_type(ctx);
8228
8403
  let if_block0 = current_block_type(ctx);
8229
8404
  let if_block1 = (
8230
8405
  /*member*/
8231
- ctx[1].auth.hasPassword && create_if_block$n(ctx)
8406
+ ctx[1].auth.hasPassword && create_if_block$o(ctx)
8232
8407
  );
8233
8408
  function passwordinput0_passwordValue_binding(value) {
8234
8409
  ctx[13](value);
@@ -8394,7 +8569,7 @@ function create_fragment$P(ctx) {
8394
8569
  transition_in(if_block1, 1);
8395
8570
  }
8396
8571
  } else {
8397
- if_block1 = create_if_block$n(ctx2);
8572
+ if_block1 = create_if_block$o(ctx2);
8398
8573
  if_block1.c();
8399
8574
  transition_in(if_block1, 1);
8400
8575
  if_block1.m(form, t4);
@@ -8473,7 +8648,7 @@ function create_fragment$P(ctx) {
8473
8648
  }
8474
8649
  };
8475
8650
  }
8476
- function instance$s($$self, $$props, $$invalidate) {
8651
+ function instance$t($$self, $$props, $$invalidate) {
8477
8652
  let { displayProfile } = $$props;
8478
8653
  let { profileLoader } = $$props;
8479
8654
  let { member } = $$props;
@@ -8570,7 +8745,7 @@ function instance$s($$self, $$props, $$invalidate) {
8570
8745
  var PasswordInfoContent = class extends SvelteComponent {
8571
8746
  constructor(options) {
8572
8747
  super();
8573
- init(this, options, instance$s, create_fragment$P, safe_not_equal, {
8748
+ init(this, options, instance$t, create_fragment$R, safe_not_equal, {
8574
8749
  displayProfile: 0,
8575
8750
  profileLoader: 9,
8576
8751
  member: 1
@@ -8610,7 +8785,7 @@ function slide(node, { delay = 0, duration = 400, easing = cubicOut, axis = "y"
8610
8785
  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;`
8611
8786
  };
8612
8787
  }
8613
- function create_fragment$O(ctx) {
8788
+ function create_fragment$Q(ctx) {
8614
8789
  let div;
8615
8790
  let loadingicon;
8616
8791
  let div_transition;
@@ -8660,10 +8835,10 @@ function create_fragment$O(ctx) {
8660
8835
  var ProfileLoader = class extends SvelteComponent {
8661
8836
  constructor(options) {
8662
8837
  super();
8663
- init(this, options, null, create_fragment$O, safe_not_equal, {});
8838
+ init(this, options, null, create_fragment$Q, safe_not_equal, {});
8664
8839
  }
8665
8840
  };
8666
- function create_fragment$N(ctx) {
8841
+ function create_fragment$P(ctx) {
8667
8842
  let button;
8668
8843
  let switch_instance0;
8669
8844
  let t0;
@@ -8829,7 +9004,7 @@ function create_fragment$N(ctx) {
8829
9004
  }
8830
9005
  };
8831
9006
  }
8832
- function instance$r($$self, $$props, $$invalidate) {
9007
+ function instance$s($$self, $$props, $$invalidate) {
8833
9008
  const omit_props_names = ["buttonText", "buttonRightIcon", "buttonLeftIcon", "onClick"];
8834
9009
  let $$restProps = compute_rest_props($$props, omit_props_names);
8835
9010
  let $app;
@@ -8860,7 +9035,7 @@ function instance$r($$self, $$props, $$invalidate) {
8860
9035
  var RegularButton = class extends SvelteComponent {
8861
9036
  constructor(options) {
8862
9037
  super();
8863
- init(this, options, instance$r, create_fragment$N, safe_not_equal, {
9038
+ init(this, options, instance$s, create_fragment$P, safe_not_equal, {
8864
9039
  buttonText: 0,
8865
9040
  buttonRightIcon: 1,
8866
9041
  buttonLeftIcon: 2,
@@ -8868,7 +9043,7 @@ var RegularButton = class extends SvelteComponent {
8868
9043
  });
8869
9044
  }
8870
9045
  };
8871
- function create_fragment$M(ctx) {
9046
+ function create_fragment$O(ctx) {
8872
9047
  let button;
8873
9048
  let t;
8874
9049
  let button_class_value;
@@ -8938,7 +9113,7 @@ function create_fragment$M(ctx) {
8938
9113
  }
8939
9114
  };
8940
9115
  }
8941
- function instance$q($$self, $$props, $$invalidate) {
9116
+ function instance$r($$self, $$props, $$invalidate) {
8942
9117
  const omit_props_names = ["buttonText", "onClick"];
8943
9118
  let $$restProps = compute_rest_props($$props, omit_props_names);
8944
9119
  let $app;
@@ -8963,16 +9138,21 @@ function instance$q($$self, $$props, $$invalidate) {
8963
9138
  var TextButton = class extends SvelteComponent {
8964
9139
  constructor(options) {
8965
9140
  super();
8966
- init(this, options, instance$q, create_fragment$M, safe_not_equal, { buttonText: 0, onClick: 1 });
9141
+ init(this, options, instance$r, create_fragment$O, safe_not_equal, { buttonText: 0, onClick: 1 });
8967
9142
  }
8968
9143
  };
8969
- function get_each_context$8(ctx, list, i) {
9144
+ function get_each_context$9(ctx, list, i) {
8970
9145
  const child_ctx = ctx.slice();
8971
- child_ctx[8] = list[i];
8972
- child_ctx[10] = i;
9146
+ child_ctx[11] = list[i];
9147
+ child_ctx[13] = i;
8973
9148
  return child_ctx;
8974
9149
  }
8975
- function create_if_block_2$c(ctx) {
9150
+ function get_each_context_1$4(ctx, list, i) {
9151
+ const child_ctx = ctx.slice();
9152
+ child_ctx[14] = list[i];
9153
+ return child_ctx;
9154
+ }
9155
+ function create_if_block_3$9(ctx) {
8976
9156
  let div;
8977
9157
  let regularbutton;
8978
9158
  let current;
@@ -8980,7 +9160,7 @@ function create_if_block_2$c(ctx) {
8980
9160
  props: {
8981
9161
  onClick: (
8982
9162
  /*launchPortal*/
8983
- ctx[3]
9163
+ ctx[4]
8984
9164
  ),
8985
9165
  class: "ms-modal__regular-button--margin-right ms-modal__regular-button--left-icon",
8986
9166
  buttonText: "Manage Subscriptions",
@@ -9017,18 +9197,18 @@ function create_if_block_2$c(ctx) {
9017
9197
  }
9018
9198
  };
9019
9199
  }
9020
- function create_if_block_1$g(ctx) {
9200
+ function create_if_block_2$d(ctx) {
9021
9201
  let h3;
9022
9202
  let t1;
9023
9203
  let each_1_anchor;
9024
9204
  let current;
9025
- let each_value = (
9026
- /*freePlanConnections*/
9205
+ let each_value_1 = (
9206
+ /*joinedTeams*/
9027
9207
  ctx[1]
9028
9208
  );
9029
9209
  let each_blocks = [];
9030
- for (let i = 0; i < each_value.length; i += 1) {
9031
- each_blocks[i] = create_each_block$8(get_each_context$8(ctx, each_value, i));
9210
+ for (let i = 0; i < each_value_1.length; i += 1) {
9211
+ each_blocks[i] = create_each_block_1$4(get_each_context_1$4(ctx, each_value_1, i));
9032
9212
  }
9033
9213
  const out = (i) => transition_out(each_blocks[i], 1, 1, () => {
9034
9214
  each_blocks[i] = null;
@@ -9036,7 +9216,7 @@ function create_if_block_1$g(ctx) {
9036
9216
  return {
9037
9217
  c() {
9038
9218
  h3 = element("h3");
9039
- h3.textContent = "Free Plans";
9219
+ h3.textContent = "Team Plans";
9040
9220
  t1 = space();
9041
9221
  for (let i = 0; i < each_blocks.length; i += 1) {
9042
9222
  each_blocks[i].c();
@@ -9055,25 +9235,25 @@ function create_if_block_1$g(ctx) {
9055
9235
  current = true;
9056
9236
  },
9057
9237
  p(ctx2, dirty) {
9058
- if (dirty & /*removeFreePlan, freePlanConnections, $app*/
9059
- 22) {
9060
- each_value = /*freePlanConnections*/
9238
+ if (dirty & /*removeMemberFromTeam, joinedTeams, member*/
9239
+ 67) {
9240
+ each_value_1 = /*joinedTeams*/
9061
9241
  ctx2[1];
9062
9242
  let i;
9063
- for (i = 0; i < each_value.length; i += 1) {
9064
- const child_ctx = get_each_context$8(ctx2, each_value, i);
9243
+ for (i = 0; i < each_value_1.length; i += 1) {
9244
+ const child_ctx = get_each_context_1$4(ctx2, each_value_1, i);
9065
9245
  if (each_blocks[i]) {
9066
9246
  each_blocks[i].p(child_ctx, dirty);
9067
9247
  transition_in(each_blocks[i], 1);
9068
9248
  } else {
9069
- each_blocks[i] = create_each_block$8(child_ctx);
9249
+ each_blocks[i] = create_each_block_1$4(child_ctx);
9070
9250
  each_blocks[i].c();
9071
9251
  transition_in(each_blocks[i], 1);
9072
9252
  each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
9073
9253
  }
9074
9254
  }
9075
9255
  group_outros();
9076
- for (i = each_value.length; i < each_blocks.length; i += 1) {
9256
+ for (i = each_value_1.length; i < each_blocks.length; i += 1) {
9077
9257
  out(i);
9078
9258
  }
9079
9259
  check_outros();
@@ -9082,7 +9262,7 @@ function create_if_block_1$g(ctx) {
9082
9262
  i(local) {
9083
9263
  if (current)
9084
9264
  return;
9085
- for (let i = 0; i < each_value.length; i += 1) {
9265
+ for (let i = 0; i < each_value_1.length; i += 1) {
9086
9266
  transition_in(each_blocks[i]);
9087
9267
  }
9088
9268
  current = true;
@@ -9105,40 +9285,30 @@ function create_if_block_1$g(ctx) {
9105
9285
  }
9106
9286
  };
9107
9287
  }
9108
- function create_each_block$8(ctx) {
9288
+ function create_each_block_1$4(ctx) {
9109
9289
  let div1;
9110
9290
  let div0;
9111
9291
  let b;
9112
9292
  let t0_value = (
9113
- /*$app*/
9114
- ctx[2].plans.find(func2).name + ""
9293
+ /*team*/
9294
+ ctx[14].planName + ""
9115
9295
  );
9116
9296
  let t0;
9117
9297
  let t1;
9118
9298
  let textbutton;
9119
9299
  let t2;
9120
9300
  let current;
9121
- function func2(...args) {
9301
+ function func2() {
9122
9302
  return (
9123
9303
  /*func*/
9124
- ctx[6](
9125
- /*memberPlan*/
9126
- ctx[8],
9127
- ...args
9128
- )
9129
- );
9130
- }
9131
- function func_12() {
9132
- return (
9133
- /*func_1*/
9134
- ctx[7](
9135
- /*memberPlan*/
9136
- ctx[8]
9304
+ ctx[8](
9305
+ /*team*/
9306
+ ctx[14]
9137
9307
  )
9138
9308
  );
9139
9309
  }
9140
9310
  textbutton = new TextButton({
9141
- props: { buttonText: "Remove", onClick: func_12 }
9311
+ props: { buttonText: "Leave Team", onClick: func2 }
9142
9312
  });
9143
9313
  return {
9144
9314
  c() {
@@ -9163,14 +9333,14 @@ function create_each_block$8(ctx) {
9163
9333
  },
9164
9334
  p(new_ctx, dirty) {
9165
9335
  ctx = new_ctx;
9166
- if ((!current || dirty & /*$app, freePlanConnections*/
9167
- 6) && t0_value !== (t0_value = /*$app*/
9168
- ctx[2].plans.find(func2).name + ""))
9336
+ if ((!current || dirty & /*joinedTeams*/
9337
+ 2) && t0_value !== (t0_value = /*team*/
9338
+ ctx[14].planName + ""))
9169
9339
  set_data(t0, t0_value);
9170
9340
  const textbutton_changes = {};
9171
- if (dirty & /*freePlanConnections*/
9172
- 2)
9173
- textbutton_changes.onClick = func_12;
9341
+ if (dirty & /*joinedTeams, member*/
9342
+ 3)
9343
+ textbutton_changes.onClick = func2;
9174
9344
  textbutton.$set(textbutton_changes);
9175
9345
  },
9176
9346
  i(local) {
@@ -9190,40 +9360,218 @@ function create_each_block$8(ctx) {
9190
9360
  }
9191
9361
  };
9192
9362
  }
9193
- function create_if_block$m(ctx) {
9194
- let div;
9195
- return {
9196
- c() {
9197
- div = element("div");
9198
- div.textContent = "You currently have no plans.";
9199
- },
9200
- m(target, anchor) {
9201
- insert(target, div, anchor);
9202
- },
9363
+ function create_if_block_1$h(ctx) {
9364
+ let h3;
9365
+ let t1;
9366
+ let each_1_anchor;
9367
+ let current;
9368
+ let each_value = (
9369
+ /*freePlanConnections*/
9370
+ ctx[2]
9371
+ );
9372
+ let each_blocks = [];
9373
+ for (let i = 0; i < each_value.length; i += 1) {
9374
+ each_blocks[i] = create_each_block$9(get_each_context$9(ctx, each_value, i));
9375
+ }
9376
+ const out = (i) => transition_out(each_blocks[i], 1, 1, () => {
9377
+ each_blocks[i] = null;
9378
+ });
9379
+ return {
9380
+ c() {
9381
+ h3 = element("h3");
9382
+ h3.textContent = "Free Plans";
9383
+ t1 = space();
9384
+ for (let i = 0; i < each_blocks.length; i += 1) {
9385
+ each_blocks[i].c();
9386
+ }
9387
+ each_1_anchor = empty();
9388
+ },
9389
+ m(target, anchor) {
9390
+ insert(target, h3, anchor);
9391
+ insert(target, t1, anchor);
9392
+ for (let i = 0; i < each_blocks.length; i += 1) {
9393
+ if (each_blocks[i]) {
9394
+ each_blocks[i].m(target, anchor);
9395
+ }
9396
+ }
9397
+ insert(target, each_1_anchor, anchor);
9398
+ current = true;
9399
+ },
9400
+ p(ctx2, dirty) {
9401
+ if (dirty & /*removeFreePlan, freePlanConnections, $app*/
9402
+ 44) {
9403
+ each_value = /*freePlanConnections*/
9404
+ ctx2[2];
9405
+ let i;
9406
+ for (i = 0; i < each_value.length; i += 1) {
9407
+ const child_ctx = get_each_context$9(ctx2, each_value, i);
9408
+ if (each_blocks[i]) {
9409
+ each_blocks[i].p(child_ctx, dirty);
9410
+ transition_in(each_blocks[i], 1);
9411
+ } else {
9412
+ each_blocks[i] = create_each_block$9(child_ctx);
9413
+ each_blocks[i].c();
9414
+ transition_in(each_blocks[i], 1);
9415
+ each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
9416
+ }
9417
+ }
9418
+ group_outros();
9419
+ for (i = each_value.length; i < each_blocks.length; i += 1) {
9420
+ out(i);
9421
+ }
9422
+ check_outros();
9423
+ }
9424
+ },
9425
+ i(local) {
9426
+ if (current)
9427
+ return;
9428
+ for (let i = 0; i < each_value.length; i += 1) {
9429
+ transition_in(each_blocks[i]);
9430
+ }
9431
+ current = true;
9432
+ },
9433
+ o(local) {
9434
+ each_blocks = each_blocks.filter(Boolean);
9435
+ for (let i = 0; i < each_blocks.length; i += 1) {
9436
+ transition_out(each_blocks[i]);
9437
+ }
9438
+ current = false;
9439
+ },
9440
+ d(detaching) {
9441
+ if (detaching)
9442
+ detach(h3);
9443
+ if (detaching)
9444
+ detach(t1);
9445
+ destroy_each(each_blocks, detaching);
9446
+ if (detaching)
9447
+ detach(each_1_anchor);
9448
+ }
9449
+ };
9450
+ }
9451
+ function create_each_block$9(ctx) {
9452
+ let div1;
9453
+ let div0;
9454
+ let b;
9455
+ let t0_value = (
9456
+ /*$app*/
9457
+ ctx[3].plans.find(func_12).name + ""
9458
+ );
9459
+ let t0;
9460
+ let t1;
9461
+ let textbutton;
9462
+ let t2;
9463
+ let current;
9464
+ function func_12(...args) {
9465
+ return (
9466
+ /*func_1*/
9467
+ ctx[9](
9468
+ /*memberPlan*/
9469
+ ctx[11],
9470
+ ...args
9471
+ )
9472
+ );
9473
+ }
9474
+ function func_22() {
9475
+ return (
9476
+ /*func_2*/
9477
+ ctx[10](
9478
+ /*memberPlan*/
9479
+ ctx[11]
9480
+ )
9481
+ );
9482
+ }
9483
+ textbutton = new TextButton({
9484
+ props: { buttonText: "Remove", onClick: func_22 }
9485
+ });
9486
+ return {
9487
+ c() {
9488
+ div1 = element("div");
9489
+ div0 = element("div");
9490
+ b = element("b");
9491
+ t0 = text(t0_value);
9492
+ t1 = space();
9493
+ create_component(textbutton.$$.fragment);
9494
+ t2 = space();
9495
+ attr(div1, "class", "ms-modal__card");
9496
+ },
9497
+ m(target, anchor) {
9498
+ insert(target, div1, anchor);
9499
+ append(div1, div0);
9500
+ append(div0, b);
9501
+ append(b, t0);
9502
+ append(div1, t1);
9503
+ mount_component(textbutton, div1, null);
9504
+ append(div1, t2);
9505
+ current = true;
9506
+ },
9507
+ p(new_ctx, dirty) {
9508
+ ctx = new_ctx;
9509
+ if ((!current || dirty & /*$app, freePlanConnections*/
9510
+ 12) && t0_value !== (t0_value = /*$app*/
9511
+ ctx[3].plans.find(func_12).name + ""))
9512
+ set_data(t0, t0_value);
9513
+ const textbutton_changes = {};
9514
+ if (dirty & /*freePlanConnections*/
9515
+ 4)
9516
+ textbutton_changes.onClick = func_22;
9517
+ textbutton.$set(textbutton_changes);
9518
+ },
9519
+ i(local) {
9520
+ if (current)
9521
+ return;
9522
+ transition_in(textbutton.$$.fragment, local);
9523
+ current = true;
9524
+ },
9525
+ o(local) {
9526
+ transition_out(textbutton.$$.fragment, local);
9527
+ current = false;
9528
+ },
9529
+ d(detaching) {
9530
+ if (detaching)
9531
+ detach(div1);
9532
+ destroy_component(textbutton);
9533
+ }
9534
+ };
9535
+ }
9536
+ function create_if_block$n(ctx) {
9537
+ let div;
9538
+ return {
9539
+ c() {
9540
+ div = element("div");
9541
+ div.textContent = "You currently have free no plans.";
9542
+ },
9543
+ m(target, anchor) {
9544
+ insert(target, div, anchor);
9545
+ },
9203
9546
  d(detaching) {
9204
9547
  if (detaching)
9205
9548
  detach(div);
9206
9549
  }
9207
9550
  };
9208
9551
  }
9209
- function create_fragment$L(ctx) {
9552
+ function create_fragment$N(ctx) {
9210
9553
  let div;
9211
9554
  let t1;
9212
9555
  let t2;
9213
9556
  let t3;
9214
- let if_block2_anchor;
9557
+ let t4;
9558
+ let if_block3_anchor;
9215
9559
  let current;
9216
9560
  let if_block0 = (
9217
9561
  /*member*/
9218
- ctx[0].stripeCustomerId && create_if_block_2$c(ctx)
9562
+ ctx[0].stripeCustomerId && create_if_block_3$9(ctx)
9219
9563
  );
9220
9564
  let if_block1 = (
9565
+ /*joinedTeams*/
9566
+ ctx[1].length > 0 && create_if_block_2$d(ctx)
9567
+ );
9568
+ let if_block2 = (
9221
9569
  /*freePlanConnections*/
9222
- ctx[1].length > 0 && create_if_block_1$g(ctx)
9570
+ ctx[2].length > 0 && create_if_block_1$h(ctx)
9223
9571
  );
9224
- let if_block2 = !/*member*/
9572
+ let if_block3 = !/*member*/
9225
9573
  ctx[0].stripeCustomerId && /*freePlanConnections*/
9226
- ctx[1].length === 0 && create_if_block$m();
9574
+ ctx[2].length === 0 && create_if_block$n();
9227
9575
  return {
9228
9576
  c() {
9229
9577
  div = element("div");
@@ -9237,7 +9585,10 @@ function create_fragment$L(ctx) {
9237
9585
  t3 = space();
9238
9586
  if (if_block2)
9239
9587
  if_block2.c();
9240
- if_block2_anchor = empty();
9588
+ t4 = space();
9589
+ if (if_block3)
9590
+ if_block3.c();
9591
+ if_block3_anchor = empty();
9241
9592
  attr(div, "class", "ms-modal__title-container");
9242
9593
  },
9243
9594
  m(target, anchor) {
@@ -9246,166 +9597,1288 @@ function create_fragment$L(ctx) {
9246
9597
  if (if_block0)
9247
9598
  if_block0.m(target, anchor);
9248
9599
  insert(target, t2, anchor);
9249
- if (if_block1)
9250
- if_block1.m(target, anchor);
9251
- insert(target, t3, anchor);
9252
- if (if_block2)
9253
- if_block2.m(target, anchor);
9254
- insert(target, if_block2_anchor, anchor);
9600
+ if (if_block1)
9601
+ if_block1.m(target, anchor);
9602
+ insert(target, t3, anchor);
9603
+ if (if_block2)
9604
+ if_block2.m(target, anchor);
9605
+ insert(target, t4, anchor);
9606
+ if (if_block3)
9607
+ if_block3.m(target, anchor);
9608
+ insert(target, if_block3_anchor, anchor);
9609
+ current = true;
9610
+ },
9611
+ p(ctx2, [dirty]) {
9612
+ if (
9613
+ /*member*/
9614
+ ctx2[0].stripeCustomerId
9615
+ ) {
9616
+ if (if_block0) {
9617
+ if_block0.p(ctx2, dirty);
9618
+ if (dirty & /*member*/
9619
+ 1) {
9620
+ transition_in(if_block0, 1);
9621
+ }
9622
+ } else {
9623
+ if_block0 = create_if_block_3$9(ctx2);
9624
+ if_block0.c();
9625
+ transition_in(if_block0, 1);
9626
+ if_block0.m(t2.parentNode, t2);
9627
+ }
9628
+ } else if (if_block0) {
9629
+ group_outros();
9630
+ transition_out(if_block0, 1, 1, () => {
9631
+ if_block0 = null;
9632
+ });
9633
+ check_outros();
9634
+ }
9635
+ if (
9636
+ /*joinedTeams*/
9637
+ ctx2[1].length > 0
9638
+ ) {
9639
+ if (if_block1) {
9640
+ if_block1.p(ctx2, dirty);
9641
+ if (dirty & /*joinedTeams*/
9642
+ 2) {
9643
+ transition_in(if_block1, 1);
9644
+ }
9645
+ } else {
9646
+ if_block1 = create_if_block_2$d(ctx2);
9647
+ if_block1.c();
9648
+ transition_in(if_block1, 1);
9649
+ if_block1.m(t3.parentNode, t3);
9650
+ }
9651
+ } else if (if_block1) {
9652
+ group_outros();
9653
+ transition_out(if_block1, 1, 1, () => {
9654
+ if_block1 = null;
9655
+ });
9656
+ check_outros();
9657
+ }
9658
+ if (
9659
+ /*freePlanConnections*/
9660
+ ctx2[2].length > 0
9661
+ ) {
9662
+ if (if_block2) {
9663
+ if_block2.p(ctx2, dirty);
9664
+ if (dirty & /*freePlanConnections*/
9665
+ 4) {
9666
+ transition_in(if_block2, 1);
9667
+ }
9668
+ } else {
9669
+ if_block2 = create_if_block_1$h(ctx2);
9670
+ if_block2.c();
9671
+ transition_in(if_block2, 1);
9672
+ if_block2.m(t4.parentNode, t4);
9673
+ }
9674
+ } else if (if_block2) {
9675
+ group_outros();
9676
+ transition_out(if_block2, 1, 1, () => {
9677
+ if_block2 = null;
9678
+ });
9679
+ check_outros();
9680
+ }
9681
+ if (!/*member*/
9682
+ ctx2[0].stripeCustomerId && /*freePlanConnections*/
9683
+ ctx2[2].length === 0) {
9684
+ if (if_block3)
9685
+ ;
9686
+ else {
9687
+ if_block3 = create_if_block$n();
9688
+ if_block3.c();
9689
+ if_block3.m(if_block3_anchor.parentNode, if_block3_anchor);
9690
+ }
9691
+ } else if (if_block3) {
9692
+ if_block3.d(1);
9693
+ if_block3 = null;
9694
+ }
9695
+ },
9696
+ i(local) {
9697
+ if (current)
9698
+ return;
9699
+ transition_in(if_block0);
9700
+ transition_in(if_block1);
9701
+ transition_in(if_block2);
9702
+ current = true;
9703
+ },
9704
+ o(local) {
9705
+ transition_out(if_block0);
9706
+ transition_out(if_block1);
9707
+ transition_out(if_block2);
9708
+ current = false;
9709
+ },
9710
+ d(detaching) {
9711
+ if (detaching)
9712
+ detach(div);
9713
+ if (detaching)
9714
+ detach(t1);
9715
+ if (if_block0)
9716
+ if_block0.d(detaching);
9717
+ if (detaching)
9718
+ detach(t2);
9719
+ if (if_block1)
9720
+ if_block1.d(detaching);
9721
+ if (detaching)
9722
+ detach(t3);
9723
+ if (if_block2)
9724
+ if_block2.d(detaching);
9725
+ if (detaching)
9726
+ detach(t4);
9727
+ if (if_block3)
9728
+ if_block3.d(detaching);
9729
+ if (detaching)
9730
+ detach(if_block3_anchor);
9731
+ }
9732
+ };
9733
+ }
9734
+ function instance$q($$self, $$props, $$invalidate) {
9735
+ let freePlanConnections;
9736
+ let joinedTeams;
9737
+ let $app;
9738
+ component_subscribe($$self, AppStore, ($$value) => $$invalidate(3, $app = $$value));
9739
+ let { profileLoader } = $$props;
9740
+ let { member } = $$props;
9741
+ function launchPortal(e) {
9742
+ return __async(this, null, function* () {
9743
+ $$invalidate(7, profileLoader = true);
9744
+ yield window.$memberstackDom.launchStripeCustomerPortal({ priceIds: [], autoRedirect: true });
9745
+ });
9746
+ }
9747
+ function removeFreePlan(planId) {
9748
+ return __async(this, null, function* () {
9749
+ $$invalidate(7, profileLoader = true);
9750
+ try {
9751
+ yield window.$memberstackDom.removePlan({ planId });
9752
+ $$invalidate(0, member.planConnections = member.planConnections.filter((plan) => plan.planId !== planId), member);
9753
+ } catch (err) {
9754
+ console.log(err);
9755
+ window.$memberstackDom._showMessage(err.message, true);
9756
+ } finally {
9757
+ $$invalidate(7, profileLoader = false);
9758
+ }
9759
+ });
9760
+ }
9761
+ function removeMemberFromTeam(teamId, memberId) {
9762
+ return __async(this, null, function* () {
9763
+ try {
9764
+ yield window.$memberstackDom.removeMemberFromTeam({ teamId, memberId });
9765
+ $$invalidate(0, member.teams.joinedTeams = member.teams.joinedTeams.filter((t) => t.teamId !== teamId), member);
9766
+ } catch (err) {
9767
+ window.$memberstackDom._showMessage(err.message, true);
9768
+ }
9769
+ });
9770
+ }
9771
+ const func2 = (team) => removeMemberFromTeam(team.teamId, member.id);
9772
+ const func_12 = (memberPlan, plan) => plan.id === memberPlan.planId;
9773
+ const func_22 = (memberPlan) => removeFreePlan(memberPlan.planId);
9774
+ $$self.$$set = ($$props2) => {
9775
+ if ("profileLoader" in $$props2)
9776
+ $$invalidate(7, profileLoader = $$props2.profileLoader);
9777
+ if ("member" in $$props2)
9778
+ $$invalidate(0, member = $$props2.member);
9779
+ };
9780
+ $$self.$$.update = () => {
9781
+ var _a;
9782
+ if ($$self.$$.dirty & /*member*/
9783
+ 1) {
9784
+ $$invalidate(2, freePlanConnections = member.planConnections.filter((plan) => plan.type === "FREE"));
9785
+ }
9786
+ if ($$self.$$.dirty & /*member*/
9787
+ 1) {
9788
+ $$invalidate(1, joinedTeams = (_a = member.teams) == null ? void 0 : _a.joinedTeams);
9789
+ }
9790
+ };
9791
+ return [
9792
+ member,
9793
+ joinedTeams,
9794
+ freePlanConnections,
9795
+ $app,
9796
+ launchPortal,
9797
+ removeFreePlan,
9798
+ removeMemberFromTeam,
9799
+ profileLoader,
9800
+ func2,
9801
+ func_12,
9802
+ func_22
9803
+ ];
9804
+ }
9805
+ var PlansInfoContent = class extends SvelteComponent {
9806
+ constructor(options) {
9807
+ super();
9808
+ init(this, options, instance$q, create_fragment$N, safe_not_equal, { profileLoader: 7, member: 0 });
9809
+ }
9810
+ };
9811
+ function add_css$k(target) {
9812
+ append_styles(target, "svelte-c6ihgv", "svg.svelte-c6ihgv{fill:currentColor}");
9813
+ }
9814
+ function create_fragment$M(ctx) {
9815
+ let svg;
9816
+ let path;
9817
+ return {
9818
+ c() {
9819
+ svg = svg_element("svg");
9820
+ path = svg_element("path");
9821
+ 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");
9822
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
9823
+ attr(svg, "height", "20");
9824
+ attr(svg, "viewBox", "0 -960 960 960");
9825
+ attr(svg, "width", "20");
9826
+ attr(svg, "class", "svelte-c6ihgv");
9827
+ },
9828
+ m(target, anchor) {
9829
+ insert(target, svg, anchor);
9830
+ append(svg, path);
9831
+ },
9832
+ p: noop,
9833
+ i: noop,
9834
+ o: noop,
9835
+ d(detaching) {
9836
+ if (detaching)
9837
+ detach(svg);
9838
+ }
9839
+ };
9840
+ }
9841
+ var CopyIcon$1 = class extends SvelteComponent {
9842
+ constructor(options) {
9843
+ super();
9844
+ init(this, options, null, create_fragment$M, safe_not_equal, {}, add_css$k);
9845
+ }
9846
+ };
9847
+ function create_fragment$L(ctx) {
9848
+ let svg;
9849
+ let path;
9850
+ return {
9851
+ c() {
9852
+ svg = svg_element("svg");
9853
+ path = svg_element("path");
9854
+ attr(path, "fill", "currentColor");
9855
+ 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");
9856
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
9857
+ attr(svg, "height", "24");
9858
+ attr(svg, "viewBox", "0 -960 960 960");
9859
+ attr(svg, "width", "24");
9860
+ },
9861
+ m(target, anchor) {
9862
+ insert(target, svg, anchor);
9863
+ append(svg, path);
9864
+ },
9865
+ p: noop,
9866
+ i: noop,
9867
+ o: noop,
9868
+ d(detaching) {
9869
+ if (detaching)
9870
+ detach(svg);
9871
+ }
9872
+ };
9873
+ }
9874
+ var WarningIcon$1 = class extends SvelteComponent {
9875
+ constructor(options) {
9876
+ super();
9877
+ init(this, options, null, create_fragment$L, safe_not_equal, {});
9878
+ }
9879
+ };
9880
+ function add_css$j(target) {
9881
+ 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}");
9882
+ }
9883
+ function get_each_context$8(ctx, list, i) {
9884
+ const child_ctx = ctx.slice();
9885
+ child_ctx[15] = list[i];
9886
+ return child_ctx;
9887
+ }
9888
+ function create_if_block_5$5(ctx) {
9889
+ var _a, _b;
9890
+ let div;
9891
+ let t0_value = (
9892
+ /*teamData*/
9893
+ ((_a = ctx[0]) == null ? void 0 : _a.members.length) + ""
9894
+ );
9895
+ let t0;
9896
+ let t1;
9897
+ let t2_value = (
9898
+ /*teamData*/
9899
+ ((_b = ctx[0]) == null ? void 0 : _b.maxTeamMembers) + ""
9900
+ );
9901
+ let t2;
9902
+ let t3;
9903
+ return {
9904
+ c() {
9905
+ div = element("div");
9906
+ t0 = text(t0_value);
9907
+ t1 = text("/");
9908
+ t2 = text(t2_value);
9909
+ t3 = text(" Seats");
9910
+ attr(div, "class", "ms-modal__title--seats svelte-1haqb7b");
9911
+ },
9912
+ m(target, anchor) {
9913
+ insert(target, div, anchor);
9914
+ append(div, t0);
9915
+ append(div, t1);
9916
+ append(div, t2);
9917
+ append(div, t3);
9918
+ },
9919
+ p(ctx2, dirty) {
9920
+ var _a2, _b2;
9921
+ if (dirty & /*teamData*/
9922
+ 1 && t0_value !== (t0_value = /*teamData*/
9923
+ ((_a2 = ctx2[0]) == null ? void 0 : _a2.members.length) + ""))
9924
+ set_data(t0, t0_value);
9925
+ if (dirty & /*teamData*/
9926
+ 1 && t2_value !== (t2_value = /*teamData*/
9927
+ ((_b2 = ctx2[0]) == null ? void 0 : _b2.maxTeamMembers) + ""))
9928
+ set_data(t2, t2_value);
9929
+ },
9930
+ d(detaching) {
9931
+ if (detaching)
9932
+ detach(div);
9933
+ }
9934
+ };
9935
+ }
9936
+ function create_catch_block(ctx) {
9937
+ return {
9938
+ c: noop,
9939
+ m: noop,
9940
+ p: noop,
9941
+ i: noop,
9942
+ o: noop,
9943
+ d: noop
9944
+ };
9945
+ }
9946
+ function create_then_block(ctx) {
9947
+ let current_block_type_index;
9948
+ let if_block0;
9949
+ let t;
9950
+ let if_block1_anchor;
9951
+ let current;
9952
+ const if_block_creators = [create_if_block_4$6, create_else_block_2$1];
9953
+ const if_blocks = [];
9954
+ function select_block_type(ctx2, dirty) {
9955
+ var _a, _b;
9956
+ if (
9957
+ /*teamData*/
9958
+ ((_a = ctx2[0]) == null ? void 0 : _a.members.length) < /*teamData*/
9959
+ ((_b = ctx2[0]) == null ? void 0 : _b.maxTeamMembers)
9960
+ )
9961
+ return 0;
9962
+ return 1;
9963
+ }
9964
+ current_block_type_index = select_block_type(ctx);
9965
+ if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9966
+ let if_block1 = (
9967
+ /*teamData*/
9968
+ ctx[0] && /*teamData*/
9969
+ ctx[0].members.length > 0 && create_if_block$m(ctx)
9970
+ );
9971
+ return {
9972
+ c() {
9973
+ if_block0.c();
9974
+ t = space();
9975
+ if (if_block1)
9976
+ if_block1.c();
9977
+ if_block1_anchor = empty();
9978
+ },
9979
+ m(target, anchor) {
9980
+ if_blocks[current_block_type_index].m(target, anchor);
9981
+ insert(target, t, anchor);
9982
+ if (if_block1)
9983
+ if_block1.m(target, anchor);
9984
+ insert(target, if_block1_anchor, anchor);
9985
+ current = true;
9986
+ },
9987
+ p(ctx2, dirty) {
9988
+ let previous_block_index = current_block_type_index;
9989
+ current_block_type_index = select_block_type(ctx2);
9990
+ if (current_block_type_index === previous_block_index) {
9991
+ if_blocks[current_block_type_index].p(ctx2, dirty);
9992
+ } else {
9993
+ group_outros();
9994
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
9995
+ if_blocks[previous_block_index] = null;
9996
+ });
9997
+ check_outros();
9998
+ if_block0 = if_blocks[current_block_type_index];
9999
+ if (!if_block0) {
10000
+ if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
10001
+ if_block0.c();
10002
+ } else {
10003
+ if_block0.p(ctx2, dirty);
10004
+ }
10005
+ transition_in(if_block0, 1);
10006
+ if_block0.m(t.parentNode, t);
10007
+ }
10008
+ if (
10009
+ /*teamData*/
10010
+ ctx2[0] && /*teamData*/
10011
+ ctx2[0].members.length > 0
10012
+ ) {
10013
+ if (if_block1) {
10014
+ if_block1.p(ctx2, dirty);
10015
+ if (dirty & /*teamData*/
10016
+ 1) {
10017
+ transition_in(if_block1, 1);
10018
+ }
10019
+ } else {
10020
+ if_block1 = create_if_block$m(ctx2);
10021
+ if_block1.c();
10022
+ transition_in(if_block1, 1);
10023
+ if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
10024
+ }
10025
+ } else if (if_block1) {
10026
+ group_outros();
10027
+ transition_out(if_block1, 1, 1, () => {
10028
+ if_block1 = null;
10029
+ });
10030
+ check_outros();
10031
+ }
10032
+ },
10033
+ i(local) {
10034
+ if (current)
10035
+ return;
10036
+ transition_in(if_block0);
10037
+ transition_in(if_block1);
10038
+ current = true;
10039
+ },
10040
+ o(local) {
10041
+ transition_out(if_block0);
10042
+ transition_out(if_block1);
10043
+ current = false;
10044
+ },
10045
+ d(detaching) {
10046
+ if_blocks[current_block_type_index].d(detaching);
10047
+ if (detaching)
10048
+ detach(t);
10049
+ if (if_block1)
10050
+ if_block1.d(detaching);
10051
+ if (detaching)
10052
+ detach(if_block1_anchor);
10053
+ }
10054
+ };
10055
+ }
10056
+ function create_else_block_2$1(ctx) {
10057
+ let div;
10058
+ let warningicon;
10059
+ let t0;
10060
+ let span;
10061
+ let current;
10062
+ warningicon = new WarningIcon$1({});
10063
+ return {
10064
+ c() {
10065
+ div = element("div");
10066
+ create_component(warningicon.$$.fragment);
10067
+ t0 = space();
10068
+ span = element("span");
10069
+ span.textContent = "Your team is growing! Upgrade your plan for more seats.";
10070
+ attr(span, "class", "ms-modal__upgrade-warning-text svelte-1haqb7b");
10071
+ attr(div, "class", "ms-modal__upgrade-warning svelte-1haqb7b");
10072
+ },
10073
+ m(target, anchor) {
10074
+ insert(target, div, anchor);
10075
+ mount_component(warningicon, div, null);
10076
+ append(div, t0);
10077
+ append(div, span);
10078
+ current = true;
10079
+ },
10080
+ p: noop,
10081
+ i(local) {
10082
+ if (current)
10083
+ return;
10084
+ transition_in(warningicon.$$.fragment, local);
10085
+ current = true;
10086
+ },
10087
+ o(local) {
10088
+ transition_out(warningicon.$$.fragment, local);
10089
+ current = false;
10090
+ },
10091
+ d(detaching) {
10092
+ if (detaching)
10093
+ detach(div);
10094
+ destroy_component(warningicon);
10095
+ }
10096
+ };
10097
+ }
10098
+ function create_if_block_4$6(ctx) {
10099
+ let div1;
10100
+ let div0;
10101
+ let input;
10102
+ let t0;
10103
+ let button0;
10104
+ let copyicon;
10105
+ let t1;
10106
+ let t2;
10107
+ let t3;
10108
+ let button1;
10109
+ let current;
10110
+ let mounted;
10111
+ let dispose;
10112
+ copyicon = new CopyIcon$1({});
10113
+ return {
10114
+ c() {
10115
+ div1 = element("div");
10116
+ div0 = element("div");
10117
+ input = element("input");
10118
+ t0 = space();
10119
+ button0 = element("button");
10120
+ create_component(copyicon.$$.fragment);
10121
+ t1 = space();
10122
+ t2 = text(
10123
+ /*copyInviteText*/
10124
+ ctx[2]
10125
+ );
10126
+ t3 = space();
10127
+ button1 = element("button");
10128
+ button1.textContent = "Regenerate Invite Link";
10129
+ attr(input, "type", "text");
10130
+ attr(input, "class", "ms-modal__invite-input svelte-1haqb7b");
10131
+ input.value = /*inviteLink*/
10132
+ ctx[3];
10133
+ input.readOnly = true;
10134
+ attr(button0, "class", "ms-modal__invite-copy-btn svelte-1haqb7b");
10135
+ attr(div0, "class", "ms-modal__invite-input-group svelte-1haqb7b");
10136
+ attr(button1, "class", "ms-modal__invite-regenerate-btn svelte-1haqb7b");
10137
+ attr(div1, "class", "ms-modal__invite-group svelte-1haqb7b");
10138
+ },
10139
+ m(target, anchor) {
10140
+ insert(target, div1, anchor);
10141
+ append(div1, div0);
10142
+ append(div0, input);
10143
+ append(div0, t0);
10144
+ append(div0, button0);
10145
+ mount_component(copyicon, button0, null);
10146
+ append(button0, t1);
10147
+ append(button0, t2);
10148
+ append(div1, t3);
10149
+ append(div1, button1);
10150
+ current = true;
10151
+ if (!mounted) {
10152
+ dispose = [
10153
+ listen(
10154
+ button0,
10155
+ "click",
10156
+ /*click_handler*/
10157
+ ctx[10]
10158
+ ),
10159
+ listen(
10160
+ button1,
10161
+ "click",
10162
+ /*click_handler_1*/
10163
+ ctx[11]
10164
+ )
10165
+ ];
10166
+ mounted = true;
10167
+ }
10168
+ },
10169
+ p(ctx2, dirty) {
10170
+ if (!current || dirty & /*inviteLink*/
10171
+ 8 && input.value !== /*inviteLink*/
10172
+ ctx2[3]) {
10173
+ input.value = /*inviteLink*/
10174
+ ctx2[3];
10175
+ }
10176
+ if (!current || dirty & /*copyInviteText*/
10177
+ 4)
10178
+ set_data(
10179
+ t2,
10180
+ /*copyInviteText*/
10181
+ ctx2[2]
10182
+ );
10183
+ },
10184
+ i(local) {
10185
+ if (current)
10186
+ return;
10187
+ transition_in(copyicon.$$.fragment, local);
10188
+ current = true;
10189
+ },
10190
+ o(local) {
10191
+ transition_out(copyicon.$$.fragment, local);
10192
+ current = false;
10193
+ },
10194
+ d(detaching) {
10195
+ if (detaching)
10196
+ detach(div1);
10197
+ destroy_component(copyicon);
10198
+ mounted = false;
10199
+ run_all(dispose);
10200
+ }
10201
+ };
10202
+ }
10203
+ function create_if_block$m(ctx) {
10204
+ let div;
10205
+ let each_blocks = [];
10206
+ let each_1_lookup = /* @__PURE__ */ new Map();
10207
+ let current;
10208
+ let each_value = (
10209
+ /*teamData*/
10210
+ ctx[0].members
10211
+ );
10212
+ const get_key = (ctx2) => (
10213
+ /*m*/
10214
+ ctx2[15].member.id
10215
+ );
10216
+ for (let i = 0; i < each_value.length; i += 1) {
10217
+ let child_ctx = get_each_context$8(ctx, each_value, i);
10218
+ let key = get_key(child_ctx);
10219
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$8(key, child_ctx));
10220
+ }
10221
+ return {
10222
+ c() {
10223
+ div = element("div");
10224
+ for (let i = 0; i < each_blocks.length; i += 1) {
10225
+ each_blocks[i].c();
10226
+ }
10227
+ attr(div, "class", "ms-modal__team-members");
10228
+ },
10229
+ m(target, anchor) {
10230
+ insert(target, div, anchor);
10231
+ for (let i = 0; i < each_blocks.length; i += 1) {
10232
+ if (each_blocks[i]) {
10233
+ each_blocks[i].m(div, null);
10234
+ }
10235
+ }
10236
+ current = true;
10237
+ },
10238
+ p(ctx2, dirty) {
10239
+ if (dirty & /*showRemoveButton, teamData, removeMemberFromTeam*/
10240
+ 81) {
10241
+ each_value = /*teamData*/
10242
+ ctx2[0].members;
10243
+ group_outros();
10244
+ 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);
10245
+ check_outros();
10246
+ }
10247
+ },
10248
+ i(local) {
10249
+ if (current)
10250
+ return;
10251
+ for (let i = 0; i < each_value.length; i += 1) {
10252
+ transition_in(each_blocks[i]);
10253
+ }
10254
+ current = true;
10255
+ },
10256
+ o(local) {
10257
+ for (let i = 0; i < each_blocks.length; i += 1) {
10258
+ transition_out(each_blocks[i]);
10259
+ }
10260
+ current = false;
10261
+ },
10262
+ d(detaching) {
10263
+ if (detaching)
10264
+ detach(div);
10265
+ for (let i = 0; i < each_blocks.length; i += 1) {
10266
+ each_blocks[i].d();
10267
+ }
10268
+ }
10269
+ };
10270
+ }
10271
+ function create_else_block_1$3(ctx) {
10272
+ let img;
10273
+ let img_src_value;
10274
+ return {
10275
+ c() {
10276
+ img = element("img");
10277
+ attr(img, "class", "ms-modal__team-member-image svelte-1haqb7b");
10278
+ if (!src_url_equal(img.src, img_src_value = /*m*/
10279
+ ctx[15].member.profileImage))
10280
+ attr(img, "src", img_src_value);
10281
+ attr(img, "alt", "Member Profile Avatar");
10282
+ },
10283
+ m(target, anchor) {
10284
+ insert(target, img, anchor);
10285
+ },
10286
+ p(ctx2, dirty) {
10287
+ if (dirty & /*teamData*/
10288
+ 1 && !src_url_equal(img.src, img_src_value = /*m*/
10289
+ ctx2[15].member.profileImage)) {
10290
+ attr(img, "src", img_src_value);
10291
+ }
10292
+ },
10293
+ d(detaching) {
10294
+ if (detaching)
10295
+ detach(img);
10296
+ }
10297
+ };
10298
+ }
10299
+ function create_if_block_3$8(ctx) {
10300
+ let div;
10301
+ let t_value = (
10302
+ /*m*/
10303
+ ctx[15].member.auth.email[0].toUpperCase() + ""
10304
+ );
10305
+ let t;
10306
+ return {
10307
+ c() {
10308
+ div = element("div");
10309
+ t = text(t_value);
10310
+ attr(div, "class", "ms-modal__team-member-image--initial svelte-1haqb7b");
10311
+ },
10312
+ m(target, anchor) {
10313
+ insert(target, div, anchor);
10314
+ append(div, t);
10315
+ },
10316
+ p(ctx2, dirty) {
10317
+ if (dirty & /*teamData*/
10318
+ 1 && t_value !== (t_value = /*m*/
10319
+ ctx2[15].member.auth.email[0].toUpperCase() + ""))
10320
+ set_data(t, t_value);
10321
+ },
10322
+ d(detaching) {
10323
+ if (detaching)
10324
+ detach(div);
10325
+ }
10326
+ };
10327
+ }
10328
+ function create_if_block_1$g(ctx) {
10329
+ let current_block_type_index;
10330
+ let if_block;
10331
+ let if_block_anchor;
10332
+ let current;
10333
+ const if_block_creators = [create_if_block_2$c, create_else_block$9];
10334
+ const if_blocks = [];
10335
+ function select_block_type_2(ctx2, dirty) {
10336
+ if (!/*m*/
10337
+ ctx2[15].showRemoveButton)
10338
+ return 0;
10339
+ return 1;
10340
+ }
10341
+ current_block_type_index = select_block_type_2(ctx);
10342
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
10343
+ return {
10344
+ c() {
10345
+ if_block.c();
10346
+ if_block_anchor = empty();
10347
+ },
10348
+ m(target, anchor) {
10349
+ if_blocks[current_block_type_index].m(target, anchor);
10350
+ insert(target, if_block_anchor, anchor);
10351
+ current = true;
10352
+ },
10353
+ p(ctx2, dirty) {
10354
+ let previous_block_index = current_block_type_index;
10355
+ current_block_type_index = select_block_type_2(ctx2);
10356
+ if (current_block_type_index === previous_block_index) {
10357
+ if_blocks[current_block_type_index].p(ctx2, dirty);
10358
+ } else {
10359
+ group_outros();
10360
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
10361
+ if_blocks[previous_block_index] = null;
10362
+ });
10363
+ check_outros();
10364
+ if_block = if_blocks[current_block_type_index];
10365
+ if (!if_block) {
10366
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
10367
+ if_block.c();
10368
+ } else {
10369
+ if_block.p(ctx2, dirty);
10370
+ }
10371
+ transition_in(if_block, 1);
10372
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
10373
+ }
10374
+ },
10375
+ i(local) {
10376
+ if (current)
10377
+ return;
10378
+ transition_in(if_block);
10379
+ current = true;
10380
+ },
10381
+ o(local) {
10382
+ transition_out(if_block);
10383
+ current = false;
10384
+ },
10385
+ d(detaching) {
10386
+ if_blocks[current_block_type_index].d(detaching);
10387
+ if (detaching)
10388
+ detach(if_block_anchor);
10389
+ }
10390
+ };
10391
+ }
10392
+ function create_else_block$9(ctx) {
10393
+ let button;
10394
+ let span;
10395
+ let t1;
10396
+ let closeicon;
10397
+ let current;
10398
+ let mounted;
10399
+ let dispose;
10400
+ closeicon = new CloseIcon({});
10401
+ function click_handler_3() {
10402
+ return (
10403
+ /*click_handler_3*/
10404
+ ctx[13](
10405
+ /*m*/
10406
+ ctx[15]
10407
+ )
10408
+ );
10409
+ }
10410
+ return {
10411
+ c() {
10412
+ button = element("button");
10413
+ span = element("span");
10414
+ span.textContent = "Are you sure?";
10415
+ t1 = space();
10416
+ create_component(closeicon.$$.fragment);
10417
+ attr(span, "class", "ms-modal__team-member-remove-text svelte-1haqb7b");
10418
+ attr(button, "class", "ms-modal__team-member-remove-btn svelte-1haqb7b");
10419
+ },
10420
+ m(target, anchor) {
10421
+ insert(target, button, anchor);
10422
+ append(button, span);
10423
+ append(button, t1);
10424
+ mount_component(closeicon, button, null);
10425
+ current = true;
10426
+ if (!mounted) {
10427
+ dispose = listen(button, "click", click_handler_3);
10428
+ mounted = true;
10429
+ }
10430
+ },
10431
+ p(new_ctx, dirty) {
10432
+ ctx = new_ctx;
10433
+ },
10434
+ i(local) {
10435
+ if (current)
10436
+ return;
10437
+ transition_in(closeicon.$$.fragment, local);
10438
+ current = true;
10439
+ },
10440
+ o(local) {
10441
+ transition_out(closeicon.$$.fragment, local);
10442
+ current = false;
10443
+ },
10444
+ d(detaching) {
10445
+ if (detaching)
10446
+ detach(button);
10447
+ destroy_component(closeicon);
10448
+ mounted = false;
10449
+ dispose();
10450
+ }
10451
+ };
10452
+ }
10453
+ function create_if_block_2$c(ctx) {
10454
+ let button;
10455
+ let closeicon;
10456
+ let current;
10457
+ let mounted;
10458
+ let dispose;
10459
+ closeicon = new CloseIcon({});
10460
+ function click_handler_2() {
10461
+ return (
10462
+ /*click_handler_2*/
10463
+ ctx[12](
10464
+ /*m*/
10465
+ ctx[15]
10466
+ )
10467
+ );
10468
+ }
10469
+ return {
10470
+ c() {
10471
+ button = element("button");
10472
+ create_component(closeicon.$$.fragment);
10473
+ attr(button, "class", "ms-modal__team-member-remove-btn svelte-1haqb7b");
10474
+ },
10475
+ m(target, anchor) {
10476
+ insert(target, button, anchor);
10477
+ mount_component(closeicon, button, null);
10478
+ current = true;
10479
+ if (!mounted) {
10480
+ dispose = listen(button, "click", click_handler_2);
10481
+ mounted = true;
10482
+ }
10483
+ },
10484
+ p(new_ctx, dirty) {
10485
+ ctx = new_ctx;
10486
+ },
10487
+ i(local) {
10488
+ if (current)
10489
+ return;
10490
+ transition_in(closeicon.$$.fragment, local);
10491
+ current = true;
10492
+ },
10493
+ o(local) {
10494
+ transition_out(closeicon.$$.fragment, local);
10495
+ current = false;
10496
+ },
10497
+ d(detaching) {
10498
+ if (detaching)
10499
+ detach(button);
10500
+ destroy_component(closeicon);
10501
+ mounted = false;
10502
+ dispose();
10503
+ }
10504
+ };
10505
+ }
10506
+ function create_each_block$8(key_1, ctx) {
10507
+ let div4;
10508
+ let div1;
10509
+ let t0;
10510
+ let div0;
10511
+ let t1_value = (
10512
+ /*m*/
10513
+ ctx[15].member.auth.email + ""
10514
+ );
10515
+ let t1;
10516
+ let t2;
10517
+ let div3;
10518
+ let div2;
10519
+ let t3_value = (
10520
+ /*m*/
10521
+ ctx[15].role + ""
10522
+ );
10523
+ let t3;
10524
+ let t4;
10525
+ let t5;
10526
+ let current;
10527
+ function select_block_type_1(ctx2, dirty) {
10528
+ if (
10529
+ /*m*/
10530
+ ctx2[15].member.profileImage === null
10531
+ )
10532
+ return create_if_block_3$8;
10533
+ return create_else_block_1$3;
10534
+ }
10535
+ let current_block_type = select_block_type_1(ctx);
10536
+ let if_block0 = current_block_type(ctx);
10537
+ let if_block1 = (
10538
+ /*m*/
10539
+ ctx[15].role !== "OWNER" && create_if_block_1$g(ctx)
10540
+ );
10541
+ return {
10542
+ key: key_1,
10543
+ first: null,
10544
+ c() {
10545
+ div4 = element("div");
10546
+ div1 = element("div");
10547
+ if_block0.c();
10548
+ t0 = space();
10549
+ div0 = element("div");
10550
+ t1 = text(t1_value);
10551
+ t2 = space();
10552
+ div3 = element("div");
10553
+ div2 = element("div");
10554
+ t3 = text(t3_value);
10555
+ t4 = space();
10556
+ if (if_block1)
10557
+ if_block1.c();
10558
+ t5 = space();
10559
+ attr(div0, "class", "ms-modal__team-member-email svelte-1haqb7b");
10560
+ attr(div1, "class", "ms-modal__team-member-info svelte-1haqb7b");
10561
+ attr(div2, "class", "ms-modal__team-member-role svelte-1haqb7b");
10562
+ attr(div3, "class", "ms-modal__team-member-actions svelte-1haqb7b");
10563
+ attr(div4, "class", "ms-modal__team-member svelte-1haqb7b");
10564
+ this.first = div4;
10565
+ },
10566
+ m(target, anchor) {
10567
+ insert(target, div4, anchor);
10568
+ append(div4, div1);
10569
+ if_block0.m(div1, null);
10570
+ append(div1, t0);
10571
+ append(div1, div0);
10572
+ append(div0, t1);
10573
+ append(div4, t2);
10574
+ append(div4, div3);
10575
+ append(div3, div2);
10576
+ append(div2, t3);
10577
+ append(div3, t4);
10578
+ if (if_block1)
10579
+ if_block1.m(div3, null);
10580
+ append(div4, t5);
10581
+ current = true;
10582
+ },
10583
+ p(new_ctx, dirty) {
10584
+ ctx = new_ctx;
10585
+ if (current_block_type === (current_block_type = select_block_type_1(ctx)) && if_block0) {
10586
+ if_block0.p(ctx, dirty);
10587
+ } else {
10588
+ if_block0.d(1);
10589
+ if_block0 = current_block_type(ctx);
10590
+ if (if_block0) {
10591
+ if_block0.c();
10592
+ if_block0.m(div1, t0);
10593
+ }
10594
+ }
10595
+ if ((!current || dirty & /*teamData*/
10596
+ 1) && t1_value !== (t1_value = /*m*/
10597
+ ctx[15].member.auth.email + ""))
10598
+ set_data(t1, t1_value);
10599
+ if ((!current || dirty & /*teamData*/
10600
+ 1) && t3_value !== (t3_value = /*m*/
10601
+ ctx[15].role + ""))
10602
+ set_data(t3, t3_value);
10603
+ if (
10604
+ /*m*/
10605
+ ctx[15].role !== "OWNER"
10606
+ ) {
10607
+ if (if_block1) {
10608
+ if_block1.p(ctx, dirty);
10609
+ if (dirty & /*teamData*/
10610
+ 1) {
10611
+ transition_in(if_block1, 1);
10612
+ }
10613
+ } else {
10614
+ if_block1 = create_if_block_1$g(ctx);
10615
+ if_block1.c();
10616
+ transition_in(if_block1, 1);
10617
+ if_block1.m(div3, null);
10618
+ }
10619
+ } else if (if_block1) {
10620
+ group_outros();
10621
+ transition_out(if_block1, 1, 1, () => {
10622
+ if_block1 = null;
10623
+ });
10624
+ check_outros();
10625
+ }
10626
+ },
10627
+ i(local) {
10628
+ if (current)
10629
+ return;
10630
+ transition_in(if_block1);
10631
+ current = true;
10632
+ },
10633
+ o(local) {
10634
+ transition_out(if_block1);
10635
+ current = false;
10636
+ },
10637
+ d(detaching) {
10638
+ if (detaching)
10639
+ detach(div4);
10640
+ if_block0.d();
10641
+ if (if_block1)
10642
+ if_block1.d();
10643
+ }
10644
+ };
10645
+ }
10646
+ function create_pending_block(ctx) {
10647
+ let p;
10648
+ return {
10649
+ c() {
10650
+ p = element("p");
10651
+ p.textContent = "Loading...";
10652
+ },
10653
+ m(target, anchor) {
10654
+ insert(target, p, anchor);
10655
+ },
10656
+ p: noop,
10657
+ i: noop,
10658
+ o: noop,
10659
+ d(detaching) {
10660
+ if (detaching)
10661
+ detach(p);
10662
+ }
10663
+ };
10664
+ }
10665
+ function create_fragment$K(ctx) {
10666
+ var _a;
10667
+ let div;
10668
+ let h2;
10669
+ let t1;
10670
+ let t2;
10671
+ let await_block_anchor;
10672
+ let promise2;
10673
+ let current;
10674
+ let if_block = (
10675
+ /*teamData*/
10676
+ ((_a = ctx[0]) == null ? void 0 : _a.members.length) > 0 && create_if_block_5$5(ctx)
10677
+ );
10678
+ let info = {
10679
+ ctx,
10680
+ current: null,
10681
+ token: null,
10682
+ hasCatch: false,
10683
+ pending: create_pending_block,
10684
+ then: create_then_block,
10685
+ catch: create_catch_block,
10686
+ blocks: [, , ,]
10687
+ };
10688
+ handle_promise(promise2 = /*teamPromise*/
10689
+ ctx[1], info);
10690
+ return {
10691
+ c() {
10692
+ div = element("div");
10693
+ h2 = element("h2");
10694
+ h2.textContent = "Team";
10695
+ t1 = space();
10696
+ if (if_block)
10697
+ if_block.c();
10698
+ t2 = space();
10699
+ await_block_anchor = empty();
10700
+ info.block.c();
10701
+ attr(h2, "class", "ms-modal__title ms-modal__title--teams svelte-1haqb7b");
10702
+ attr(div, "class", "ms-modal__title-container ms-modal__title-container--teams svelte-1haqb7b");
10703
+ },
10704
+ m(target, anchor) {
10705
+ insert(target, div, anchor);
10706
+ append(div, h2);
10707
+ append(div, t1);
10708
+ if (if_block)
10709
+ if_block.m(div, null);
10710
+ insert(target, t2, anchor);
10711
+ insert(target, await_block_anchor, anchor);
10712
+ info.block.m(target, info.anchor = anchor);
10713
+ info.mount = () => await_block_anchor.parentNode;
10714
+ info.anchor = await_block_anchor;
9255
10715
  current = true;
9256
10716
  },
9257
- p(ctx2, [dirty]) {
9258
- if (
9259
- /*member*/
9260
- ctx2[0].stripeCustomerId
9261
- ) {
9262
- if (if_block0) {
9263
- if_block0.p(ctx2, dirty);
9264
- if (dirty & /*member*/
9265
- 1) {
9266
- transition_in(if_block0, 1);
9267
- }
9268
- } else {
9269
- if_block0 = create_if_block_2$c(ctx2);
9270
- if_block0.c();
9271
- transition_in(if_block0, 1);
9272
- if_block0.m(t2.parentNode, t2);
9273
- }
9274
- } else if (if_block0) {
9275
- group_outros();
9276
- transition_out(if_block0, 1, 1, () => {
9277
- if_block0 = null;
9278
- });
9279
- check_outros();
9280
- }
10717
+ p(new_ctx, [dirty]) {
10718
+ var _a2;
10719
+ ctx = new_ctx;
9281
10720
  if (
9282
- /*freePlanConnections*/
9283
- ctx2[1].length > 0
10721
+ /*teamData*/
10722
+ ((_a2 = ctx[0]) == null ? void 0 : _a2.members.length) > 0
9284
10723
  ) {
9285
- if (if_block1) {
9286
- if_block1.p(ctx2, dirty);
9287
- if (dirty & /*freePlanConnections*/
9288
- 2) {
9289
- transition_in(if_block1, 1);
9290
- }
10724
+ if (if_block) {
10725
+ if_block.p(ctx, dirty);
9291
10726
  } else {
9292
- if_block1 = create_if_block_1$g(ctx2);
9293
- if_block1.c();
9294
- transition_in(if_block1, 1);
9295
- if_block1.m(t3.parentNode, t3);
10727
+ if_block = create_if_block_5$5(ctx);
10728
+ if_block.c();
10729
+ if_block.m(div, null);
9296
10730
  }
9297
- } else if (if_block1) {
9298
- group_outros();
9299
- transition_out(if_block1, 1, 1, () => {
9300
- if_block1 = null;
9301
- });
9302
- check_outros();
10731
+ } else if (if_block) {
10732
+ if_block.d(1);
10733
+ if_block = null;
9303
10734
  }
9304
- if (!/*member*/
9305
- ctx2[0].stripeCustomerId && /*freePlanConnections*/
9306
- ctx2[1].length === 0) {
9307
- if (if_block2)
9308
- ;
9309
- else {
9310
- if_block2 = create_if_block$m();
9311
- if_block2.c();
9312
- if_block2.m(if_block2_anchor.parentNode, if_block2_anchor);
9313
- }
9314
- } else if (if_block2) {
9315
- if_block2.d(1);
9316
- if_block2 = null;
10735
+ info.ctx = ctx;
10736
+ if (dirty & /*teamPromise*/
10737
+ 2 && promise2 !== (promise2 = /*teamPromise*/
10738
+ ctx[1]) && handle_promise(promise2, info))
10739
+ ;
10740
+ else {
10741
+ update_await_block_branch(info, ctx, dirty);
9317
10742
  }
9318
10743
  },
9319
10744
  i(local) {
9320
10745
  if (current)
9321
10746
  return;
9322
- transition_in(if_block0);
9323
- transition_in(if_block1);
10747
+ transition_in(info.block);
9324
10748
  current = true;
9325
10749
  },
9326
10750
  o(local) {
9327
- transition_out(if_block0);
9328
- transition_out(if_block1);
10751
+ for (let i = 0; i < 3; i += 1) {
10752
+ const block = info.blocks[i];
10753
+ transition_out(block);
10754
+ }
9329
10755
  current = false;
9330
10756
  },
9331
10757
  d(detaching) {
9332
10758
  if (detaching)
9333
10759
  detach(div);
9334
- if (detaching)
9335
- detach(t1);
9336
- if (if_block0)
9337
- if_block0.d(detaching);
10760
+ if (if_block)
10761
+ if_block.d();
9338
10762
  if (detaching)
9339
10763
  detach(t2);
9340
- if (if_block1)
9341
- if_block1.d(detaching);
9342
- if (detaching)
9343
- detach(t3);
9344
- if (if_block2)
9345
- if_block2.d(detaching);
9346
10764
  if (detaching)
9347
- detach(if_block2_anchor);
10765
+ detach(await_block_anchor);
10766
+ info.block.d(detaching);
10767
+ info.token = null;
10768
+ info = null;
9348
10769
  }
9349
10770
  };
9350
10771
  }
9351
10772
  function instance$p($$self, $$props, $$invalidate) {
9352
- let freePlanConnections;
9353
- let $app;
9354
- component_subscribe($$self, AppStore, ($$value) => $$invalidate(2, $app = $$value));
10773
+ var _a, _b, _c;
10774
+ let inviteLink;
9355
10775
  let { profileLoader } = $$props;
9356
10776
  let { member } = $$props;
9357
- function launchPortal(e) {
10777
+ let teamPromise;
10778
+ let teamData;
10779
+ let copyInviteText = "Copy";
10780
+ function showRemoveButton(m) {
10781
+ m.showRemoveButton = true;
10782
+ $$invalidate(0, teamData.members = [...teamData.members.filter((member2) => member2.member.id !== m.member.id), m], teamData);
10783
+ setTimeout(
10784
+ () => {
10785
+ m.showRemoveButton = false;
10786
+ },
10787
+ 3e3
10788
+ );
10789
+ }
10790
+ function copyInviteLink() {
10791
+ navigator.clipboard.writeText(inviteLink);
10792
+ $$invalidate(2, copyInviteText = "Copied!");
10793
+ setTimeout(
10794
+ () => {
10795
+ $$invalidate(2, copyInviteText = "Copy");
10796
+ },
10797
+ 2e3
10798
+ );
10799
+ }
10800
+ function getTeam(teamId) {
9358
10801
  return __async(this, null, function* () {
9359
- $$invalidate(5, profileLoader = true);
9360
- yield window.$memberstackDom.launchStripeCustomerPortal({ priceIds: [], autoRedirect: true });
10802
+ const { data } = yield window.$memberstackDom.getTeam({ teamId });
10803
+ $$invalidate(0, teamData = data);
10804
+ return data;
9361
10805
  });
9362
10806
  }
9363
- function removeFreePlan(planId) {
10807
+ function removeMemberFromTeam(memberId) {
9364
10808
  return __async(this, null, function* () {
9365
- $$invalidate(5, profileLoader = true);
9366
10809
  try {
9367
- yield window.$memberstackDom.removePlan({ planId });
9368
- $$invalidate(0, member.planConnections = member.planConnections.filter((plan) => plan.planId !== planId), member);
10810
+ $$invalidate(8, profileLoader = true);
10811
+ yield window.$memberstackDom.removeMemberFromTeam({ teamId: teamData.id, memberId });
10812
+ $$invalidate(0, teamData.members = teamData.members.filter((m) => m.member.id !== memberId), teamData);
10813
+ window.$memberstackDom._showMessage("Member has been removed from team.", false);
9369
10814
  } catch (err) {
9370
- console.log(err);
9371
10815
  window.$memberstackDom._showMessage(err.message, true);
9372
10816
  } finally {
9373
- $$invalidate(5, profileLoader = false);
10817
+ $$invalidate(8, profileLoader = false);
10818
+ }
10819
+ });
10820
+ }
10821
+ function generateInviteToken() {
10822
+ return __async(this, null, function* () {
10823
+ try {
10824
+ $$invalidate(8, profileLoader = true);
10825
+ const { data } = yield window.$memberstackDom.generateInviteToken({ teamId: teamData.id });
10826
+ $$invalidate(0, teamData.inviteToken = data.inviteToken, teamData);
10827
+ window.$memberstackDom._showMessage("Invite Link Regenerated", false);
10828
+ } catch (err) {
10829
+ window.$memberstackDom._showMessage(err.message, true);
10830
+ } finally {
10831
+ $$invalidate(8, profileLoader = false);
9374
10832
  }
9375
10833
  });
9376
10834
  }
9377
- const func2 = (memberPlan, plan) => plan.id === memberPlan.planId;
9378
- const func_12 = (memberPlan) => removeFreePlan(memberPlan.planId);
10835
+ if (((_b = (_a = member == null ? void 0 : member.teams) == null ? void 0 : _a.ownedTeams) == null ? void 0 : _b.length) > 0) {
10836
+ const teamId = (_c = member.teams) == null ? void 0 : _c.ownedTeams[0].teamId;
10837
+ teamPromise = getTeam(teamId);
10838
+ } else {
10839
+ teamPromise = Promise.resolve(null);
10840
+ }
10841
+ const click_handler = () => copyInviteLink();
10842
+ const click_handler_1 = () => generateInviteToken();
10843
+ const click_handler_2 = (m) => showRemoveButton(m);
10844
+ const click_handler_3 = (m) => removeMemberFromTeam(m.member.id);
9379
10845
  $$self.$$set = ($$props2) => {
9380
10846
  if ("profileLoader" in $$props2)
9381
- $$invalidate(5, profileLoader = $$props2.profileLoader);
10847
+ $$invalidate(8, profileLoader = $$props2.profileLoader);
9382
10848
  if ("member" in $$props2)
9383
- $$invalidate(0, member = $$props2.member);
10849
+ $$invalidate(9, member = $$props2.member);
9384
10850
  };
9385
10851
  $$self.$$.update = () => {
9386
- if ($$self.$$.dirty & /*member*/
10852
+ var _a2;
10853
+ if ($$self.$$.dirty & /*teamData*/
9387
10854
  1) {
9388
- $$invalidate(1, freePlanConnections = member.planConnections.filter((plan) => plan.type === "FREE"));
10855
+ $$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}`);
9389
10856
  }
9390
10857
  };
9391
10858
  return [
9392
- member,
9393
- freePlanConnections,
9394
- $app,
9395
- launchPortal,
9396
- removeFreePlan,
10859
+ teamData,
10860
+ teamPromise,
10861
+ copyInviteText,
10862
+ inviteLink,
10863
+ showRemoveButton,
10864
+ copyInviteLink,
10865
+ removeMemberFromTeam,
10866
+ generateInviteToken,
9397
10867
  profileLoader,
9398
- func2,
9399
- func_12
10868
+ member,
10869
+ click_handler,
10870
+ click_handler_1,
10871
+ click_handler_2,
10872
+ click_handler_3
9400
10873
  ];
9401
10874
  }
9402
- var PlansInfoContent = class extends SvelteComponent {
10875
+ var ProfileTeamContent = class extends SvelteComponent {
9403
10876
  constructor(options) {
9404
10877
  super();
9405
- init(this, options, instance$p, create_fragment$L, safe_not_equal, { profileLoader: 5, member: 0 });
10878
+ init(this, options, instance$p, create_fragment$K, safe_not_equal, { profileLoader: 8, member: 9 }, add_css$j);
9406
10879
  }
9407
10880
  };
9408
- function create_if_block_4$5(ctx) {
10881
+ function create_if_block_5$4(ctx) {
9409
10882
  let profileloader;
9410
10883
  let current;
9411
10884
  profileloader = new ProfileLoader({});
@@ -9432,6 +10905,76 @@ function create_if_block_4$5(ctx) {
9432
10905
  }
9433
10906
  };
9434
10907
  }
10908
+ function create_if_block_4$5(ctx) {
10909
+ let profileteamcontent;
10910
+ let updating_member;
10911
+ let updating_profileLoader;
10912
+ let current;
10913
+ function profileteamcontent_member_binding(value) {
10914
+ ctx[19](value);
10915
+ }
10916
+ function profileteamcontent_profileLoader_binding(value) {
10917
+ ctx[20](value);
10918
+ }
10919
+ let profileteamcontent_props = {};
10920
+ if (
10921
+ /*member*/
10922
+ ctx[1] !== void 0
10923
+ ) {
10924
+ profileteamcontent_props.member = /*member*/
10925
+ ctx[1];
10926
+ }
10927
+ if (
10928
+ /*profileLoader*/
10929
+ ctx[4] !== void 0
10930
+ ) {
10931
+ profileteamcontent_props.profileLoader = /*profileLoader*/
10932
+ ctx[4];
10933
+ }
10934
+ profileteamcontent = new ProfileTeamContent({ props: profileteamcontent_props });
10935
+ binding_callbacks.push(() => bind(profileteamcontent, "member", profileteamcontent_member_binding));
10936
+ binding_callbacks.push(() => bind(profileteamcontent, "profileLoader", profileteamcontent_profileLoader_binding));
10937
+ return {
10938
+ c() {
10939
+ create_component(profileteamcontent.$$.fragment);
10940
+ },
10941
+ m(target, anchor) {
10942
+ mount_component(profileteamcontent, target, anchor);
10943
+ current = true;
10944
+ },
10945
+ p(ctx2, dirty) {
10946
+ const profileteamcontent_changes = {};
10947
+ if (!updating_member && dirty & /*member*/
10948
+ 2) {
10949
+ updating_member = true;
10950
+ profileteamcontent_changes.member = /*member*/
10951
+ ctx2[1];
10952
+ add_flush_callback(() => updating_member = false);
10953
+ }
10954
+ if (!updating_profileLoader && dirty & /*profileLoader*/
10955
+ 16) {
10956
+ updating_profileLoader = true;
10957
+ profileteamcontent_changes.profileLoader = /*profileLoader*/
10958
+ ctx2[4];
10959
+ add_flush_callback(() => updating_profileLoader = false);
10960
+ }
10961
+ profileteamcontent.$set(profileteamcontent_changes);
10962
+ },
10963
+ i(local) {
10964
+ if (current)
10965
+ return;
10966
+ transition_in(profileteamcontent.$$.fragment, local);
10967
+ current = true;
10968
+ },
10969
+ o(local) {
10970
+ transition_out(profileteamcontent.$$.fragment, local);
10971
+ current = false;
10972
+ },
10973
+ d(detaching) {
10974
+ destroy_component(profileteamcontent, detaching);
10975
+ }
10976
+ };
10977
+ }
9435
10978
  function create_if_block_3$7(ctx) {
9436
10979
  let plansinfocontent;
9437
10980
  let updating_member;
@@ -9759,7 +11302,7 @@ function create_if_block$l(ctx) {
9759
11302
  }
9760
11303
  };
9761
11304
  }
9762
- function create_fragment$K(ctx) {
11305
+ function create_fragment$J(ctx) {
9763
11306
  let div5;
9764
11307
  let div1;
9765
11308
  let div0;
@@ -9834,9 +11377,15 @@ function create_fragment$K(ctx) {
9834
11377
  binding_callbacks.push(() => bind(profilemodalnav, "profileLoader", profilemodalnav_profileLoader_binding));
9835
11378
  let if_block0 = (
9836
11379
  /*profileLoader*/
9837
- ctx[4] && create_if_block_4$5()
11380
+ ctx[4] && create_if_block_5$4()
9838
11381
  );
9839
- const if_block_creators = [create_if_block$l, create_if_block_1$f, create_if_block_2$b, create_if_block_3$7];
11382
+ const if_block_creators = [
11383
+ create_if_block$l,
11384
+ create_if_block_1$f,
11385
+ create_if_block_2$b,
11386
+ create_if_block_3$7,
11387
+ create_if_block_4$5
11388
+ ];
9840
11389
  const if_blocks = [];
9841
11390
  function select_block_type(ctx2, dirty) {
9842
11391
  if (
@@ -9859,6 +11408,11 @@ function create_fragment$K(ctx) {
9859
11408
  ctx2[0] === "plans"
9860
11409
  )
9861
11410
  return 3;
11411
+ if (
11412
+ /*displayProfile*/
11413
+ ctx2[0] === "team"
11414
+ )
11415
+ return 4;
9862
11416
  return -1;
9863
11417
  }
9864
11418
  if (~(current_block_type_index = select_block_type(ctx))) {
@@ -9964,7 +11518,7 @@ function create_fragment$K(ctx) {
9964
11518
  transition_in(if_block0, 1);
9965
11519
  }
9966
11520
  } else {
9967
- if_block0 = create_if_block_4$5();
11521
+ if_block0 = create_if_block_5$4();
9968
11522
  if_block0.c();
9969
11523
  transition_in(if_block0, 1);
9970
11524
  if_block0.m(div3, t4);
@@ -10098,6 +11652,14 @@ function instance$o($$self, $$props, $$invalidate) {
10098
11652
  profileLoader = value;
10099
11653
  $$invalidate(4, profileLoader);
10100
11654
  }
11655
+ function profileteamcontent_member_binding(value) {
11656
+ member = value;
11657
+ $$invalidate(1, member);
11658
+ }
11659
+ function profileteamcontent_profileLoader_binding(value) {
11660
+ profileLoader = value;
11661
+ $$invalidate(4, profileLoader);
11662
+ }
10101
11663
  $$self.$$set = ($$props2) => {
10102
11664
  if ("onSuccessLogout" in $$props2)
10103
11665
  $$invalidate(2, onSuccessLogout = $$props2.onSuccessLogout);
@@ -10127,13 +11689,15 @@ function instance$o($$self, $$props, $$invalidate) {
10127
11689
  passwordinfocontent_profileLoader_binding,
10128
11690
  passwordinfocontent_member_binding,
10129
11691
  plansinfocontent_member_binding,
10130
- plansinfocontent_profileLoader_binding
11692
+ plansinfocontent_profileLoader_binding,
11693
+ profileteamcontent_member_binding,
11694
+ profileteamcontent_profileLoader_binding
10131
11695
  ];
10132
11696
  }
10133
11697
  var ProfileModal = class extends SvelteComponent {
10134
11698
  constructor(options) {
10135
11699
  super();
10136
- init(this, options, instance$o, create_fragment$K, safe_not_equal, {
11700
+ init(this, options, instance$o, create_fragment$J, safe_not_equal, {
10137
11701
  onSuccessLogout: 2,
10138
11702
  closeModal: 3,
10139
11703
  displayProfile: 0,
@@ -10141,7 +11705,7 @@ var ProfileModal = class extends SvelteComponent {
10141
11705
  });
10142
11706
  }
10143
11707
  };
10144
- function create_fragment$J(ctx) {
11708
+ function create_fragment$I(ctx) {
10145
11709
  let svg;
10146
11710
  let path;
10147
11711
  return {
@@ -10171,7 +11735,7 @@ function create_fragment$J(ctx) {
10171
11735
  var ForwardIcon = class extends SvelteComponent {
10172
11736
  constructor(options) {
10173
11737
  super();
10174
- init(this, options, null, create_fragment$J, safe_not_equal, {});
11738
+ init(this, options, null, create_fragment$I, safe_not_equal, {});
10175
11739
  }
10176
11740
  };
10177
11741
  function create_if_block_1$e(ctx) {
@@ -10316,7 +11880,7 @@ function create_if_block$k(ctx) {
10316
11880
  }
10317
11881
  };
10318
11882
  }
10319
- function create_fragment$I(ctx) {
11883
+ function create_fragment$H(ctx) {
10320
11884
  let div2;
10321
11885
  let t0;
10322
11886
  let button0;
@@ -10576,7 +12140,7 @@ function instance$n($$self, $$props, $$invalidate) {
10576
12140
  var MobileProfileModalNav = class extends SvelteComponent {
10577
12141
  constructor(options) {
10578
12142
  super();
10579
- init(this, options, instance$n, create_fragment$I, safe_not_equal, {
12143
+ init(this, options, instance$n, create_fragment$H, safe_not_equal, {
10580
12144
  member: 1,
10581
12145
  onSuccessLogout: 6,
10582
12146
  displayProfile: 0,
@@ -10745,7 +12309,7 @@ function create_each_block$7(ctx) {
10745
12309
  }
10746
12310
  };
10747
12311
  }
10748
- function create_fragment$H(ctx) {
12312
+ function create_fragment$G(ctx) {
10749
12313
  let form;
10750
12314
  let t0;
10751
12315
  let div;
@@ -10868,7 +12432,7 @@ function instance$m($$self, $$props, $$invalidate) {
10868
12432
  var MobileProfileInfoContent = class extends SvelteComponent {
10869
12433
  constructor(options) {
10870
12434
  super();
10871
- init(this, options, instance$m, create_fragment$H, safe_not_equal, {
12435
+ init(this, options, instance$m, create_fragment$G, safe_not_equal, {
10872
12436
  customFields: 1,
10873
12437
  member: 0,
10874
12438
  profileLoader: 3
@@ -11189,7 +12753,7 @@ function create_each_block$6(key_1, ctx) {
11189
12753
  }
11190
12754
  };
11191
12755
  }
11192
- function create_fragment$G(ctx) {
12756
+ function create_fragment$F(ctx) {
11193
12757
  let form;
11194
12758
  let emailinput;
11195
12759
  let updating_emailInputValid;
@@ -11512,7 +13076,7 @@ function instance$l($$self, $$props, $$invalidate) {
11512
13076
  var MobileSecurityInfoContent = class extends SvelteComponent {
11513
13077
  constructor(options) {
11514
13078
  super();
11515
- init(this, options, instance$l, create_fragment$G, safe_not_equal, {
13079
+ init(this, options, instance$l, create_fragment$F, safe_not_equal, {
11516
13080
  displayProfile: 0,
11517
13081
  member: 1,
11518
13082
  emailValue: 2,
@@ -11593,7 +13157,7 @@ function create_if_block$h(ctx) {
11593
13157
  }
11594
13158
  };
11595
13159
  }
11596
- function create_fragment$F(ctx) {
13160
+ function create_fragment$E(ctx) {
11597
13161
  let form;
11598
13162
  let t0;
11599
13163
  let passwordinput0;
@@ -11909,7 +13473,7 @@ function instance$k($$self, $$props, $$invalidate) {
11909
13473
  var MobilePasswordInfoContent = class extends SvelteComponent {
11910
13474
  constructor(options) {
11911
13475
  super();
11912
- init(this, options, instance$k, create_fragment$F, safe_not_equal, { profileLoader: 8, member: 0 });
13476
+ init(this, options, instance$k, create_fragment$E, safe_not_equal, { profileLoader: 8, member: 0 });
11913
13477
  }
11914
13478
  };
11915
13479
  function create_if_block_6$3(ctx) {
@@ -12416,7 +13980,7 @@ function create_if_block$g(ctx) {
12416
13980
  }
12417
13981
  };
12418
13982
  }
12419
- function create_fragment$E(ctx) {
13983
+ function create_fragment$D(ctx) {
12420
13984
  let div5;
12421
13985
  let div2;
12422
13986
  let t0;
@@ -12822,7 +14386,7 @@ function instance$j($$self, $$props, $$invalidate) {
12822
14386
  var MobileProfileModal = class extends SvelteComponent {
12823
14387
  constructor(options) {
12824
14388
  super();
12825
- init(this, options, instance$j, create_fragment$E, safe_not_equal, {
14389
+ init(this, options, instance$j, create_fragment$D, safe_not_equal, {
12826
14390
  onSuccessLogout: 3,
12827
14391
  closeModal: 4,
12828
14392
  displayProfile: 0,
@@ -12831,42 +14395,6 @@ var MobileProfileModal = class extends SvelteComponent {
12831
14395
  });
12832
14396
  }
12833
14397
  };
12834
- function add_css$j(target) {
12835
- append_styles(target, "svelte-c6ihgv", "svg.svelte-c6ihgv{fill:currentColor}");
12836
- }
12837
- function create_fragment$D(ctx) {
12838
- let svg;
12839
- let path;
12840
- return {
12841
- c() {
12842
- svg = svg_element("svg");
12843
- path = svg_element("path");
12844
- 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");
12845
- attr(svg, "xmlns", "http://www.w3.org/2000/svg");
12846
- attr(svg, "height", "20");
12847
- attr(svg, "viewBox", "0 -960 960 960");
12848
- attr(svg, "width", "20");
12849
- attr(svg, "class", "svelte-c6ihgv");
12850
- },
12851
- m(target, anchor) {
12852
- insert(target, svg, anchor);
12853
- append(svg, path);
12854
- },
12855
- p: noop,
12856
- i: noop,
12857
- o: noop,
12858
- d(detaching) {
12859
- if (detaching)
12860
- detach(svg);
12861
- }
12862
- };
12863
- }
12864
- var CopyIcon$1 = class extends SvelteComponent {
12865
- constructor(options) {
12866
- super();
12867
- init(this, options, null, create_fragment$D, safe_not_equal, {}, add_css$j);
12868
- }
12869
- };
12870
14398
  function add_css$i(target) {
12871
14399
  append_styles(target, "svelte-50knw2", "svg.svelte-50knw2{fill:currentColor;width:9px;height:auto}");
12872
14400
  }
@@ -14895,7 +16423,7 @@ var InspectorBadgeOpen = class extends SvelteComponent {
14895
16423
  }
14896
16424
  };
14897
16425
  function add_css$f(target) {
14898
- append_styles(target, "svelte-1dmftgw", ".ms-inspector-badge.svelte-1dmftgw{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__text-wrapper.svelte-1dmftgw{display:flex;justify-content:center;align-items:center;gap:7px}.ms-inspector-badge__logo.svelte-1dmftgw{display:flex;align-items:center;align-self:center}.ms-inspector-badge__text.svelte-1dmftgw{align-self:center}.ms-inspector-badge__divider.svelte-1dmftgw{border-left:1px solid #d88e2b}.ms-inspector-badge__count.svelte-1dmftgw{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-1dmftgw{background-color:#fff;color:#000;padding:0}.ms-inspector-badge__error-indicator.svelte-1dmftgw{width:10px;height:10px;background-color:#e06657;border-radius:50%;position:absolute;top:0;right:0;transform:translate(50%, -50%)}");
16426
+ 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%)}");
14899
16427
  }
14900
16428
  function create_else_block_1$1(ctx) {
14901
16429
  let span;
@@ -14903,7 +16431,7 @@ function create_else_block_1$1(ctx) {
14903
16431
  c() {
14904
16432
  span = element("span");
14905
16433
  span.textContent = "Hide Inspector";
14906
- attr(span, "class", "ms-inspector-badge__text svelte-1dmftgw");
16434
+ attr(span, "class", "ms-inspector-badge__text svelte-rhveiw");
14907
16435
  },
14908
16436
  m(target, anchor) {
14909
16437
  insert(target, span, anchor);
@@ -14920,7 +16448,7 @@ function create_if_block_2$8(ctx) {
14920
16448
  c() {
14921
16449
  span = element("span");
14922
16450
  span.textContent = "Test Mode";
14923
- attr(span, "class", "ms-inspector-badge__text svelte-1dmftgw");
16451
+ attr(span, "class", "ms-inspector-badge__text svelte-rhveiw");
14924
16452
  },
14925
16453
  m(target, anchor) {
14926
16454
  insert(target, span, anchor);
@@ -14938,7 +16466,7 @@ function create_if_block_1$b(ctx) {
14938
16466
  return {
14939
16467
  c() {
14940
16468
  span = element("span");
14941
- attr(span, "class", "ms-inspector-badge__error-indicator svelte-1dmftgw");
16469
+ attr(span, "class", "ms-inspector-badge__error-indicator svelte-rhveiw");
14942
16470
  },
14943
16471
  m(target, anchor) {
14944
16472
  insert(target, span, anchor);
@@ -15080,18 +16608,24 @@ function create_fragment$y(ctx) {
15080
16608
  if_block1.c();
15081
16609
  t3 = space();
15082
16610
  if_block2.c();
15083
- attr(span0, "class", "ms-inspector-badge__logo svelte-1dmftgw");
15084
- attr(span1, "class", "ms-inspector-badge__text-wrapper svelte-1dmftgw");
15085
- attr(span2, "class", "ms-inspector-badge__divider svelte-1dmftgw");
15086
- attr(span3, "class", "ms-inspector-badge__count svelte-1dmftgw");
16611
+ attr(span0, "class", "ms-inspector-badge__logo svelte-rhveiw");
16612
+ attr(span1, "class", "ms-inspector-badge__text-wrapper svelte-rhveiw");
16613
+ attr(span2, "class", "ms-inspector-badge__divider svelte-rhveiw");
16614
+ attr(span3, "class", "ms-inspector-badge__count svelte-rhveiw");
15087
16615
  toggle_class(
15088
16616
  span3,
15089
16617
  "ms-inspector-badge__count--open",
15090
16618
  /*$InspectorStore*/
15091
16619
  ctx[0].showSidebar
15092
16620
  );
15093
- attr(button, "class", "ms-inspector-badge svelte-1dmftgw");
16621
+ attr(button, "class", "ms-inspector-badge svelte-rhveiw");
15094
16622
  attr(button, "data-cy", "inspector-button");
16623
+ toggle_class(
16624
+ button,
16625
+ "ms-inspector-badge--error",
16626
+ /*$InspectorStore*/
16627
+ ctx[0].xRayErrorElements.length > 0
16628
+ );
15095
16629
  set_style(
15096
16630
  button,
15097
16631
  "z-index",
@@ -15185,6 +16719,15 @@ function create_fragment$y(ctx) {
15185
16719
  ctx2[0].showSidebar
15186
16720
  );
15187
16721
  }
16722
+ if (!current || dirty & /*$InspectorStore*/
16723
+ 1) {
16724
+ toggle_class(
16725
+ button,
16726
+ "ms-inspector-badge--error",
16727
+ /*$InspectorStore*/
16728
+ ctx2[0].xRayErrorElements.length > 0
16729
+ );
16730
+ }
15188
16731
  if (dirty & /*$InspectorStore*/
15189
16732
  1) {
15190
16733
  set_style(
@@ -24910,7 +26453,6 @@ function instance($$self, $$props, $$invalidate) {
24910
26453
  if (params && params.app) {
24911
26454
  setAppStore(params.app);
24912
26455
  } else {
24913
- console.log("No app specified - request it");
24914
26456
  yield getApp();
24915
26457
  }
24916
26458
  $$invalidate(7, appLoading = false);