@memberstack/dom 1.9.37 → 1.9.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -136,6 +136,9 @@ function assign(tar, src) {
136
136
  tar[k] = src[k];
137
137
  return tar;
138
138
  }
139
+ function is_promise(value) {
140
+ return !!value && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
141
+ }
139
142
  function run(fn) {
140
143
  return fn();
141
144
  }
@@ -717,6 +720,84 @@ function create_bidirectional_transition(node, fn, params, intro) {
717
720
  }
718
721
  };
719
722
  }
723
+ function handle_promise(promise2, info) {
724
+ const token = info.token = {};
725
+ function update2(type, index, key, value) {
726
+ if (info.token !== token)
727
+ return;
728
+ info.resolved = value;
729
+ let child_ctx = info.ctx;
730
+ if (key !== void 0) {
731
+ child_ctx = child_ctx.slice();
732
+ child_ctx[key] = value;
733
+ }
734
+ const block = type && (info.current = type)(child_ctx);
735
+ let needs_flush = false;
736
+ if (info.block) {
737
+ if (info.blocks) {
738
+ info.blocks.forEach((block2, i) => {
739
+ if (i !== index && block2) {
740
+ group_outros();
741
+ transition_out(block2, 1, 1, () => {
742
+ if (info.blocks[i] === block2) {
743
+ info.blocks[i] = null;
744
+ }
745
+ });
746
+ check_outros();
747
+ }
748
+ });
749
+ } else {
750
+ info.block.d(1);
751
+ }
752
+ block.c();
753
+ transition_in(block, 1);
754
+ block.m(info.mount(), info.anchor);
755
+ needs_flush = true;
756
+ }
757
+ info.block = block;
758
+ if (info.blocks)
759
+ info.blocks[index] = block;
760
+ if (needs_flush) {
761
+ flush();
762
+ }
763
+ }
764
+ if (is_promise(promise2)) {
765
+ const current_component2 = get_current_component();
766
+ promise2.then((value) => {
767
+ set_current_component(current_component2);
768
+ update2(info.then, 1, info.value, value);
769
+ set_current_component(null);
770
+ }, (error) => {
771
+ set_current_component(current_component2);
772
+ update2(info.catch, 2, info.error, error);
773
+ set_current_component(null);
774
+ if (!info.hasCatch) {
775
+ throw error;
776
+ }
777
+ });
778
+ if (info.current !== info.pending) {
779
+ update2(info.pending, 0);
780
+ return true;
781
+ }
782
+ } else {
783
+ if (info.current !== info.then) {
784
+ update2(info.then, 1, info.value, promise2);
785
+ return true;
786
+ }
787
+ info.resolved = promise2;
788
+ }
789
+ }
790
+ function update_await_block_branch(info, ctx, dirty) {
791
+ const child_ctx = ctx.slice();
792
+ const { resolved } = info;
793
+ if (info.current === info.then) {
794
+ child_ctx[info.value] = resolved;
795
+ }
796
+ if (info.current === info.catch) {
797
+ child_ctx[info.error] = resolved;
798
+ }
799
+ info.block.p(child_ctx, dirty);
800
+ }
720
801
  function destroy_block(block, lookup) {
721
802
  block.d(1);
722
803
  lookup.delete(block.key);
@@ -1006,7 +1087,7 @@ var get_default_slot_context = (ctx) => ({ matches: (
1006
1087
  /*matches*/
1007
1088
  ctx[0]
1008
1089
  ) });
1009
- function create_fragment$1l(ctx) {
1090
+ function create_fragment$1n(ctx) {
1010
1091
  let current;
1011
1092
  const default_slot_template = (
1012
1093
  /*#slots*/
@@ -1071,7 +1152,7 @@ function create_fragment$1l(ctx) {
1071
1152
  }
1072
1153
  };
1073
1154
  }
1074
- function instance$I($$self, $$props, $$invalidate) {
1155
+ function instance$J($$self, $$props, $$invalidate) {
1075
1156
  let { $$slots: slots = {}, $$scope } = $$props;
1076
1157
  let { query } = $$props;
1077
1158
  let mql;
@@ -1117,10 +1198,10 @@ function instance$I($$self, $$props, $$invalidate) {
1117
1198
  var MediaQuery = class extends SvelteComponent {
1118
1199
  constructor(options) {
1119
1200
  super();
1120
- init(this, options, instance$I, create_fragment$1l, safe_not_equal, { query: 1 });
1201
+ init(this, options, instance$J, create_fragment$1n, safe_not_equal, { query: 1 });
1121
1202
  }
1122
1203
  };
1123
- function create_fragment$1k(ctx) {
1204
+ function create_fragment$1m(ctx) {
1124
1205
  let svg;
1125
1206
  let path;
1126
1207
  let animateTransform;
@@ -1164,10 +1245,10 @@ function create_fragment$1k(ctx) {
1164
1245
  var LoadingIcon = class extends SvelteComponent {
1165
1246
  constructor(options) {
1166
1247
  super();
1167
- init(this, options, null, create_fragment$1k, safe_not_equal, {});
1248
+ init(this, options, null, create_fragment$1m, safe_not_equal, {});
1168
1249
  }
1169
1250
  };
1170
- function create_fragment$1j(ctx) {
1251
+ function create_fragment$1l(ctx) {
1171
1252
  let div;
1172
1253
  let loadingicon;
1173
1254
  let current;
@@ -1204,10 +1285,10 @@ function create_fragment$1j(ctx) {
1204
1285
  var Loader = class extends SvelteComponent {
1205
1286
  constructor(options) {
1206
1287
  super();
1207
- init(this, options, null, create_fragment$1j, safe_not_equal, {});
1288
+ init(this, options, null, create_fragment$1l, safe_not_equal, {});
1208
1289
  }
1209
1290
  };
1210
- function create_fragment$1i(ctx) {
1291
+ function create_fragment$1k(ctx) {
1211
1292
  let svg;
1212
1293
  let path;
1213
1294
  return {
@@ -1238,10 +1319,10 @@ function create_fragment$1i(ctx) {
1238
1319
  var CloseIcon = class extends SvelteComponent {
1239
1320
  constructor(options) {
1240
1321
  super();
1241
- init(this, options, null, create_fragment$1i, safe_not_equal, {});
1322
+ init(this, options, null, create_fragment$1k, safe_not_equal, {});
1242
1323
  }
1243
1324
  };
1244
- function create_fragment$1h(ctx) {
1325
+ function create_fragment$1j(ctx) {
1245
1326
  let div;
1246
1327
  let button;
1247
1328
  let closeicon;
@@ -1294,7 +1375,7 @@ function create_fragment$1h(ctx) {
1294
1375
  }
1295
1376
  };
1296
1377
  }
1297
- function instance$H($$self, $$props, $$invalidate) {
1378
+ function instance$I($$self, $$props, $$invalidate) {
1298
1379
  let { closeModal } = $$props;
1299
1380
  $$self.$$set = ($$props2) => {
1300
1381
  if ("closeModal" in $$props2)
@@ -1305,10 +1386,10 @@ function instance$H($$self, $$props, $$invalidate) {
1305
1386
  var CloseButton = class extends SvelteComponent {
1306
1387
  constructor(options) {
1307
1388
  super();
1308
- init(this, options, instance$H, create_fragment$1h, safe_not_equal, { closeModal: 0 });
1389
+ init(this, options, instance$I, create_fragment$1j, safe_not_equal, { closeModal: 0 });
1309
1390
  }
1310
1391
  };
1311
- function create_fragment$1g(ctx) {
1392
+ function create_fragment$1i(ctx) {
1312
1393
  let svg;
1313
1394
  let path0;
1314
1395
  let path1;
@@ -1361,10 +1442,10 @@ function create_fragment$1g(ctx) {
1361
1442
  var MemberstackIcon = class extends SvelteComponent {
1362
1443
  constructor(options) {
1363
1444
  super();
1364
- init(this, options, null, create_fragment$1g, safe_not_equal, {});
1445
+ init(this, options, null, create_fragment$1i, safe_not_equal, {});
1365
1446
  }
1366
1447
  };
1367
- function create_else_block$h(ctx) {
1448
+ function create_else_block$i(ctx) {
1368
1449
  let memberstackicon;
1369
1450
  let current;
1370
1451
  memberstackicon = new MemberstackIcon({});
@@ -1392,7 +1473,7 @@ function create_else_block$h(ctx) {
1392
1473
  }
1393
1474
  };
1394
1475
  }
1395
- function create_if_block$z(ctx) {
1476
+ function create_if_block$A(ctx) {
1396
1477
  let img;
1397
1478
  let img_src_value;
1398
1479
  let img_alt_value;
@@ -1429,12 +1510,12 @@ function create_if_block$z(ctx) {
1429
1510
  }
1430
1511
  };
1431
1512
  }
1432
- function create_fragment$1f(ctx) {
1513
+ function create_fragment$1h(ctx) {
1433
1514
  let figure;
1434
1515
  let current_block_type_index;
1435
1516
  let if_block;
1436
1517
  let current;
1437
- const if_block_creators = [create_if_block$z, create_else_block$h];
1518
+ const if_block_creators = [create_if_block$A, create_else_block$i];
1438
1519
  const if_blocks = [];
1439
1520
  function select_block_type(ctx2, dirty) {
1440
1521
  if (
@@ -1496,7 +1577,7 @@ function create_fragment$1f(ctx) {
1496
1577
  }
1497
1578
  };
1498
1579
  }
1499
- function instance$G($$self, $$props, $$invalidate) {
1580
+ function instance$H($$self, $$props, $$invalidate) {
1500
1581
  let app = {};
1501
1582
  AppStore.subscribe((data) => {
1502
1583
  $$invalidate(0, app = data);
@@ -1506,10 +1587,10 @@ function instance$G($$self, $$props, $$invalidate) {
1506
1587
  var FigureElement = class extends SvelteComponent {
1507
1588
  constructor(options) {
1508
1589
  super();
1509
- init(this, options, instance$G, create_fragment$1f, safe_not_equal, {});
1590
+ init(this, options, instance$H, create_fragment$1h, safe_not_equal, {});
1510
1591
  }
1511
1592
  };
1512
- function create_else_block$g(ctx) {
1593
+ function create_else_block$h(ctx) {
1513
1594
  let button;
1514
1595
  let loadingicon;
1515
1596
  let current;
@@ -1561,7 +1642,7 @@ function create_else_block$g(ctx) {
1561
1642
  }
1562
1643
  };
1563
1644
  }
1564
- function create_if_block$y(ctx) {
1645
+ function create_if_block$z(ctx) {
1565
1646
  let button;
1566
1647
  let t;
1567
1648
  return {
@@ -1610,12 +1691,12 @@ function create_if_block$y(ctx) {
1610
1691
  }
1611
1692
  };
1612
1693
  }
1613
- function create_fragment$1e(ctx) {
1694
+ function create_fragment$1g(ctx) {
1614
1695
  let div;
1615
1696
  let current_block_type_index;
1616
1697
  let if_block;
1617
1698
  let current;
1618
- const if_block_creators = [create_if_block$y, create_else_block$g];
1699
+ const if_block_creators = [create_if_block$z, create_else_block$h];
1619
1700
  const if_blocks = [];
1620
1701
  function select_block_type(ctx2, dirty) {
1621
1702
  if (!/*isLoading*/
@@ -1674,7 +1755,7 @@ function create_fragment$1e(ctx) {
1674
1755
  }
1675
1756
  };
1676
1757
  }
1677
- function instance$F($$self, $$props, $$invalidate) {
1758
+ function instance$G($$self, $$props, $$invalidate) {
1678
1759
  let $app;
1679
1760
  component_subscribe($$self, AppStore, ($$value) => $$invalidate(3, $app = $$value));
1680
1761
  let { buttonText = "Submit" } = $$props;
@@ -1694,10 +1775,10 @@ function instance$F($$self, $$props, $$invalidate) {
1694
1775
  var SubmitButton = class extends SvelteComponent {
1695
1776
  constructor(options) {
1696
1777
  super();
1697
- init(this, options, instance$F, create_fragment$1e, safe_not_equal, { buttonText: 0, isLoading: 1 });
1778
+ init(this, options, instance$G, create_fragment$1g, safe_not_equal, { buttonText: 0, isLoading: 1 });
1698
1779
  }
1699
1780
  };
1700
- function create_fragment$1d(ctx) {
1781
+ function create_fragment$1f(ctx) {
1701
1782
  let svg;
1702
1783
  let path;
1703
1784
  return {
@@ -1726,10 +1807,10 @@ function create_fragment$1d(ctx) {
1726
1807
  var ErrorIcon = class extends SvelteComponent {
1727
1808
  constructor(options) {
1728
1809
  super();
1729
- init(this, options, null, create_fragment$1d, safe_not_equal, {});
1810
+ init(this, options, null, create_fragment$1f, safe_not_equal, {});
1730
1811
  }
1731
1812
  };
1732
- function create_if_block$x(ctx) {
1813
+ function create_if_block$y(ctx) {
1733
1814
  let div;
1734
1815
  let erroricon;
1735
1816
  let t0;
@@ -1772,7 +1853,7 @@ function create_if_block$x(ctx) {
1772
1853
  }
1773
1854
  };
1774
1855
  }
1775
- function create_fragment$1c(ctx) {
1856
+ function create_fragment$1e(ctx) {
1776
1857
  let div;
1777
1858
  let label;
1778
1859
  let t0;
@@ -1784,7 +1865,7 @@ function create_fragment$1c(ctx) {
1784
1865
  let dispose;
1785
1866
  let if_block = (
1786
1867
  /*inputError*/
1787
- ctx[2] && create_if_block$x(ctx)
1868
+ ctx[2] && create_if_block$y(ctx)
1788
1869
  );
1789
1870
  return {
1790
1871
  c() {
@@ -1879,7 +1960,7 @@ function create_fragment$1c(ctx) {
1879
1960
  transition_in(if_block, 1);
1880
1961
  }
1881
1962
  } else {
1882
- if_block = create_if_block$x(ctx2);
1963
+ if_block = create_if_block$y(ctx2);
1883
1964
  if_block.c();
1884
1965
  transition_in(if_block, 1);
1885
1966
  if_block.m(div, null);
@@ -1912,7 +1993,7 @@ function create_fragment$1c(ctx) {
1912
1993
  }
1913
1994
  };
1914
1995
  }
1915
- function instance$E($$self, $$props, $$invalidate) {
1996
+ function instance$F($$self, $$props, $$invalidate) {
1916
1997
  let $textStore;
1917
1998
  component_subscribe($$self, TextStore, ($$value) => $$invalidate(9, $textStore = $$value));
1918
1999
  let { emailInputValid = false } = $$props;
@@ -1961,14 +2042,14 @@ function instance$E($$self, $$props, $$invalidate) {
1961
2042
  var EmailInput = class extends SvelteComponent {
1962
2043
  constructor(options) {
1963
2044
  super();
1964
- init(this, options, instance$E, create_fragment$1c, safe_not_equal, {
2045
+ init(this, options, instance$F, create_fragment$1e, safe_not_equal, {
1965
2046
  emailInputValid: 7,
1966
2047
  emailValue: 0,
1967
2048
  placeholder: 1
1968
2049
  });
1969
2050
  }
1970
2051
  };
1971
- function create_fragment$1b(ctx) {
2052
+ function create_fragment$1d(ctx) {
1972
2053
  let svg;
1973
2054
  let path;
1974
2055
  return {
@@ -1998,10 +2079,10 @@ function create_fragment$1b(ctx) {
1998
2079
  var EyeIcon = class extends SvelteComponent {
1999
2080
  constructor(options) {
2000
2081
  super();
2001
- init(this, options, null, create_fragment$1b, safe_not_equal, {});
2082
+ init(this, options, null, create_fragment$1d, safe_not_equal, {});
2002
2083
  }
2003
2084
  };
2004
- function create_fragment$1a(ctx) {
2085
+ function create_fragment$1c(ctx) {
2005
2086
  let svg;
2006
2087
  let path;
2007
2088
  return {
@@ -2031,10 +2112,10 @@ function create_fragment$1a(ctx) {
2031
2112
  var EyeSlashIcon = class extends SvelteComponent {
2032
2113
  constructor(options) {
2033
2114
  super();
2034
- init(this, options, null, create_fragment$1a, safe_not_equal, {});
2115
+ init(this, options, null, create_fragment$1c, safe_not_equal, {});
2035
2116
  }
2036
2117
  };
2037
- function create_if_block_2$i(ctx) {
2118
+ function create_if_block_2$k(ctx) {
2038
2119
  let div;
2039
2120
  let button;
2040
2121
  let mounted;
@@ -2073,7 +2154,7 @@ function create_if_block_2$i(ctx) {
2073
2154
  }
2074
2155
  };
2075
2156
  }
2076
- function create_else_block$f(ctx) {
2157
+ function create_else_block$g(ctx) {
2077
2158
  let eyeslashicon;
2078
2159
  let current;
2079
2160
  eyeslashicon = new EyeSlashIcon({});
@@ -2100,7 +2181,7 @@ function create_else_block$f(ctx) {
2100
2181
  }
2101
2182
  };
2102
2183
  }
2103
- function create_if_block_1$o(ctx) {
2184
+ function create_if_block_1$p(ctx) {
2104
2185
  let eyeicon;
2105
2186
  let current;
2106
2187
  eyeicon = new EyeIcon({});
@@ -2127,7 +2208,7 @@ function create_if_block_1$o(ctx) {
2127
2208
  }
2128
2209
  };
2129
2210
  }
2130
- function create_if_block$w(ctx) {
2211
+ function create_if_block$x(ctx) {
2131
2212
  let div;
2132
2213
  let erroricon;
2133
2214
  let t0;
@@ -2170,7 +2251,7 @@ function create_if_block$w(ctx) {
2170
2251
  }
2171
2252
  };
2172
2253
  }
2173
- function create_fragment$19(ctx) {
2254
+ function create_fragment$1b(ctx) {
2174
2255
  let div3;
2175
2256
  let div0;
2176
2257
  let label;
@@ -2190,9 +2271,9 @@ function create_fragment$19(ctx) {
2190
2271
  let dispose;
2191
2272
  let if_block0 = (
2192
2273
  /*showForgotPasswordLabel*/
2193
- ctx[2] && create_if_block_2$i(ctx)
2274
+ ctx[2] && create_if_block_2$k(ctx)
2194
2275
  );
2195
- const if_block_creators = [create_if_block_1$o, create_else_block$f];
2276
+ const if_block_creators = [create_if_block_1$p, create_else_block$g];
2196
2277
  const if_blocks = [];
2197
2278
  function select_block_type(ctx2, dirty) {
2198
2279
  if (!/*passwordVisible*/
@@ -2204,7 +2285,7 @@ function create_fragment$19(ctx) {
2204
2285
  if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
2205
2286
  let if_block2 = (
2206
2287
  /*inputError*/
2207
- ctx[6] && create_if_block$w(ctx)
2288
+ ctx[6] && create_if_block$x(ctx)
2208
2289
  );
2209
2290
  return {
2210
2291
  c() {
@@ -2307,7 +2388,7 @@ function create_fragment$19(ctx) {
2307
2388
  if (if_block0) {
2308
2389
  if_block0.p(ctx2, dirty);
2309
2390
  } else {
2310
- if_block0 = create_if_block_2$i(ctx2);
2391
+ if_block0 = create_if_block_2$k(ctx2);
2311
2392
  if_block0.c();
2312
2393
  if_block0.m(div0, null);
2313
2394
  }
@@ -2365,7 +2446,7 @@ function create_fragment$19(ctx) {
2365
2446
  transition_in(if_block2, 1);
2366
2447
  }
2367
2448
  } else {
2368
- if_block2 = create_if_block$w(ctx2);
2449
+ if_block2 = create_if_block$x(ctx2);
2369
2450
  if_block2.c();
2370
2451
  transition_in(if_block2, 1);
2371
2452
  if_block2.m(div3, null);
@@ -2403,7 +2484,7 @@ function create_fragment$19(ctx) {
2403
2484
  }
2404
2485
  };
2405
2486
  }
2406
- function instance$D($$self, $$props, $$invalidate) {
2487
+ function instance$E($$self, $$props, $$invalidate) {
2407
2488
  let type;
2408
2489
  let $textStore;
2409
2490
  component_subscribe($$self, TextStore, ($$value) => $$invalidate(15, $textStore = $$value));
@@ -2477,7 +2558,7 @@ function instance$D($$self, $$props, $$invalidate) {
2477
2558
  var PasswordInput = class extends SvelteComponent {
2478
2559
  constructor(options) {
2479
2560
  super();
2480
- init(this, options, instance$D, create_fragment$19, safe_not_equal, {
2561
+ init(this, options, instance$E, create_fragment$1b, safe_not_equal, {
2481
2562
  showForgotPasswordLabel: 2,
2482
2563
  passwordInputValid: 13,
2483
2564
  passwordLabel: 3,
@@ -2487,7 +2568,7 @@ var PasswordInput = class extends SvelteComponent {
2487
2568
  });
2488
2569
  }
2489
2570
  };
2490
- function create_fragment$18(ctx) {
2571
+ function create_fragment$1a(ctx) {
2491
2572
  let svg;
2492
2573
  let path;
2493
2574
  return {
@@ -2517,10 +2598,10 @@ function create_fragment$18(ctx) {
2517
2598
  var SecuredIcon = class extends SvelteComponent {
2518
2599
  constructor(options) {
2519
2600
  super();
2520
- init(this, options, null, create_fragment$18, safe_not_equal, {});
2601
+ init(this, options, null, create_fragment$1a, safe_not_equal, {});
2521
2602
  }
2522
2603
  };
2523
- function create_if_block$v(ctx) {
2604
+ function create_if_block$w(ctx) {
2524
2605
  let div;
2525
2606
  let a;
2526
2607
  let securedicon;
@@ -2561,11 +2642,11 @@ function create_if_block$v(ctx) {
2561
2642
  }
2562
2643
  };
2563
2644
  }
2564
- function create_fragment$17(ctx) {
2645
+ function create_fragment$19(ctx) {
2565
2646
  let if_block_anchor;
2566
2647
  let current;
2567
2648
  let if_block = !/*$app*/
2568
- ctx[0].isPaid && create_if_block$v();
2649
+ ctx[0].isPaid && create_if_block$w();
2569
2650
  return {
2570
2651
  c() {
2571
2652
  if (if_block)
@@ -2587,7 +2668,7 @@ function create_fragment$17(ctx) {
2587
2668
  transition_in(if_block, 1);
2588
2669
  }
2589
2670
  } else {
2590
- if_block = create_if_block$v();
2671
+ if_block = create_if_block$w();
2591
2672
  if_block.c();
2592
2673
  transition_in(if_block, 1);
2593
2674
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -2618,7 +2699,7 @@ function create_fragment$17(ctx) {
2618
2699
  }
2619
2700
  };
2620
2701
  }
2621
- function instance$C($$self, $$props, $$invalidate) {
2702
+ function instance$D($$self, $$props, $$invalidate) {
2622
2703
  let $app;
2623
2704
  component_subscribe($$self, AppStore, ($$value) => $$invalidate(0, $app = $$value));
2624
2705
  return [$app];
@@ -2626,10 +2707,10 @@ function instance$C($$self, $$props, $$invalidate) {
2626
2707
  var ModalFooter = class extends SvelteComponent {
2627
2708
  constructor(options) {
2628
2709
  super();
2629
- init(this, options, instance$C, create_fragment$17, safe_not_equal, {});
2710
+ init(this, options, instance$D, create_fragment$19, safe_not_equal, {});
2630
2711
  }
2631
2712
  };
2632
- function create_fragment$16(ctx) {
2713
+ function create_fragment$18(ctx) {
2633
2714
  let svg;
2634
2715
  let path;
2635
2716
  return {
@@ -2658,7 +2739,7 @@ function create_fragment$16(ctx) {
2658
2739
  var EmailIcon = class extends SvelteComponent {
2659
2740
  constructor(options) {
2660
2741
  super();
2661
- init(this, options, null, create_fragment$16, safe_not_equal, {});
2742
+ init(this, options, null, create_fragment$18, safe_not_equal, {});
2662
2743
  }
2663
2744
  };
2664
2745
  var PasswordlessStore = writable({
@@ -2698,7 +2779,7 @@ var setPasswordlessMode = (mode) => {
2698
2779
  return store;
2699
2780
  });
2700
2781
  };
2701
- function get_each_context$c(ctx, list, i) {
2782
+ function get_each_context$d(ctx, list, i) {
2702
2783
  const child_ctx = ctx.slice();
2703
2784
  child_ctx[22] = list[i];
2704
2785
  return child_ctx;
@@ -2743,7 +2824,7 @@ function create_if_block_6$5(ctx) {
2743
2824
  }
2744
2825
  };
2745
2826
  }
2746
- function create_else_block_1$7(ctx) {
2827
+ function create_else_block_1$8(ctx) {
2747
2828
  let submitbutton;
2748
2829
  let current;
2749
2830
  submitbutton = new SubmitButton({
@@ -2789,7 +2870,7 @@ function create_else_block_1$7(ctx) {
2789
2870
  }
2790
2871
  };
2791
2872
  }
2792
- function create_if_block_5$5(ctx) {
2873
+ function create_if_block_5$7(ctx) {
2793
2874
  let passwordinput;
2794
2875
  let updating_passwordInputValid;
2795
2876
  let updating_display;
@@ -2896,7 +2977,7 @@ function create_if_block_5$5(ctx) {
2896
2977
  }
2897
2978
  };
2898
2979
  }
2899
- function create_if_block_4$7(ctx) {
2980
+ function create_if_block_4$8(ctx) {
2900
2981
  let div;
2901
2982
  let button;
2902
2983
  let mounted;
@@ -2933,7 +3014,7 @@ function create_if_block_4$7(ctx) {
2933
3014
  }
2934
3015
  };
2935
3016
  }
2936
- function create_if_block_3$9(ctx) {
3017
+ function create_if_block_3$b(ctx) {
2937
3018
  let div;
2938
3019
  let button;
2939
3020
  let mounted;
@@ -2970,7 +3051,7 @@ function create_if_block_3$9(ctx) {
2970
3051
  }
2971
3052
  };
2972
3053
  }
2973
- function create_if_block$u(ctx) {
3054
+ function create_if_block$v(ctx) {
2974
3055
  let div4;
2975
3056
  let div3;
2976
3057
  let div0;
@@ -2983,7 +3064,7 @@ function create_if_block$u(ctx) {
2983
3064
  let current;
2984
3065
  let if_block = (
2985
3066
  /*$app*/
2986
- ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$n(ctx)
3067
+ ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$o(ctx)
2987
3068
  );
2988
3069
  let each_value = (
2989
3070
  /*$app*/
@@ -2991,7 +3072,7 @@ function create_if_block$u(ctx) {
2991
3072
  );
2992
3073
  let each_blocks = [];
2993
3074
  for (let i = 0; i < each_value.length; i += 1) {
2994
- each_blocks[i] = create_each_block$c(get_each_context$c(ctx, each_value, i));
3075
+ each_blocks[i] = create_each_block$d(get_each_context$d(ctx, each_value, i));
2995
3076
  }
2996
3077
  return {
2997
3078
  c() {
@@ -3048,7 +3129,7 @@ function create_if_block$u(ctx) {
3048
3129
  transition_in(if_block, 1);
3049
3130
  }
3050
3131
  } else {
3051
- if_block = create_if_block_1$n(ctx2);
3132
+ if_block = create_if_block_1$o(ctx2);
3052
3133
  if_block.c();
3053
3134
  transition_in(if_block, 1);
3054
3135
  if_block.m(div4, t4);
@@ -3066,11 +3147,11 @@ function create_if_block$u(ctx) {
3066
3147
  ctx2[7].authProviders;
3067
3148
  let i;
3068
3149
  for (i = 0; i < each_value.length; i += 1) {
3069
- const child_ctx = get_each_context$c(ctx2, each_value, i);
3150
+ const child_ctx = get_each_context$d(ctx2, each_value, i);
3070
3151
  if (each_blocks[i]) {
3071
3152
  each_blocks[i].p(child_ctx, dirty);
3072
3153
  } else {
3073
- each_blocks[i] = create_each_block$c(child_ctx);
3154
+ each_blocks[i] = create_each_block$d(child_ctx);
3074
3155
  each_blocks[i].c();
3075
3156
  each_blocks[i].m(div4, null);
3076
3157
  }
@@ -3100,12 +3181,12 @@ function create_if_block$u(ctx) {
3100
3181
  }
3101
3182
  };
3102
3183
  }
3103
- function create_if_block_1$n(ctx) {
3184
+ function create_if_block_1$o(ctx) {
3104
3185
  let div;
3105
3186
  let current_block_type_index;
3106
3187
  let if_block;
3107
3188
  let current;
3108
- const if_block_creators = [create_if_block_2$h, create_else_block$e];
3189
+ const if_block_creators = [create_if_block_2$j, create_else_block$f];
3109
3190
  const if_blocks = [];
3110
3191
  function select_block_type_2(ctx2, dirty) {
3111
3192
  if (
@@ -3167,7 +3248,7 @@ function create_if_block_1$n(ctx) {
3167
3248
  }
3168
3249
  };
3169
3250
  }
3170
- function create_else_block$e(ctx) {
3251
+ function create_else_block$f(ctx) {
3171
3252
  let button;
3172
3253
  let span;
3173
3254
  let mounted;
@@ -3206,7 +3287,7 @@ function create_else_block$e(ctx) {
3206
3287
  }
3207
3288
  };
3208
3289
  }
3209
- function create_if_block_2$h(ctx) {
3290
+ function create_if_block_2$j(ctx) {
3210
3291
  let button;
3211
3292
  let emailicon;
3212
3293
  let t0;
@@ -3263,7 +3344,7 @@ function create_if_block_2$h(ctx) {
3263
3344
  }
3264
3345
  };
3265
3346
  }
3266
- function create_each_block$c(ctx) {
3347
+ function create_each_block$d(ctx) {
3267
3348
  let div;
3268
3349
  let button;
3269
3350
  let img;
@@ -3354,7 +3435,7 @@ function create_each_block$c(ctx) {
3354
3435
  }
3355
3436
  };
3356
3437
  }
3357
- function create_fragment$15(ctx) {
3438
+ function create_fragment$17(ctx) {
3358
3439
  let div1;
3359
3440
  let t0;
3360
3441
  let div0;
@@ -3397,7 +3478,7 @@ function create_fragment$15(ctx) {
3397
3478
  }
3398
3479
  emailinput = new EmailInput({ props: emailinput_props });
3399
3480
  binding_callbacks.push(() => bind(emailinput, "emailInputValid", emailinput_emailInputValid_binding));
3400
- const if_block_creators = [create_if_block_5$5, create_else_block_1$7];
3481
+ const if_block_creators = [create_if_block_5$7, create_else_block_1$8];
3401
3482
  const if_blocks = [];
3402
3483
  function select_block_type(ctx2, dirty) {
3403
3484
  if (!/*$PasswordlessStore*/
@@ -3414,19 +3495,19 @@ function create_fragment$15(ctx) {
3414
3495
  ctx2[2].signup && /*params*/
3415
3496
  ctx2[2].signup.plans
3416
3497
  )
3417
- return create_if_block_3$9;
3498
+ return create_if_block_3$b;
3418
3499
  if (
3419
3500
  /*signupButtonURL*/
3420
3501
  ctx2[9]
3421
3502
  )
3422
- return create_if_block_4$7;
3503
+ return create_if_block_4$8;
3423
3504
  }
3424
3505
  let current_block_type = select_block_type_1(ctx);
3425
3506
  let if_block2 = current_block_type && current_block_type(ctx);
3426
3507
  let if_block3 = (
3427
3508
  /*$app*/
3428
3509
  (ctx[7].authProviders.length > 0 || /*$app*/
3429
- ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$u(ctx)
3510
+ ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$v(ctx)
3430
3511
  );
3431
3512
  modalfooter = new ModalFooter({});
3432
3513
  return {
@@ -3568,7 +3649,7 @@ function create_fragment$15(ctx) {
3568
3649
  transition_in(if_block3, 1);
3569
3650
  }
3570
3651
  } else {
3571
- if_block3 = create_if_block$u(ctx2);
3652
+ if_block3 = create_if_block$v(ctx2);
3572
3653
  if_block3.c();
3573
3654
  transition_in(if_block3, 1);
3574
3655
  if_block3.m(div0, null);
@@ -3620,7 +3701,7 @@ function create_fragment$15(ctx) {
3620
3701
  }
3621
3702
  };
3622
3703
  }
3623
- function instance$B($$self, $$props, $$invalidate) {
3704
+ function instance$C($$self, $$props, $$invalidate) {
3624
3705
  let $PasswordlessStore;
3625
3706
  let $app;
3626
3707
  let $textStore;
@@ -3746,7 +3827,7 @@ function instance$B($$self, $$props, $$invalidate) {
3746
3827
  var LoginModal = class extends SvelteComponent {
3747
3828
  constructor(options) {
3748
3829
  super();
3749
- init(this, options, instance$B, create_fragment$15, safe_not_equal, {
3830
+ init(this, options, instance$C, create_fragment$17, safe_not_equal, {
3750
3831
  closeModal: 1,
3751
3832
  display: 0,
3752
3833
  onSuccessLogin: 12,
@@ -3754,15 +3835,15 @@ var LoginModal = class extends SvelteComponent {
3754
3835
  });
3755
3836
  }
3756
3837
  };
3757
- function add_css$k(target) {
3838
+ function add_css$l(target) {
3758
3839
  append_styles(target, "svelte-1w8lbd8", ".rey-was-here.svelte-1w8lbd8{display:none !important}");
3759
3840
  }
3760
- function get_each_context$b(ctx, list, i) {
3841
+ function get_each_context$c(ctx, list, i) {
3761
3842
  const child_ctx = ctx.slice();
3762
3843
  child_ctx[25] = list[i];
3763
3844
  return child_ctx;
3764
3845
  }
3765
- function get_each_context_1$4(ctx, list, i) {
3846
+ function get_each_context_1$5(ctx, list, i) {
3766
3847
  const child_ctx = ctx.slice();
3767
3848
  child_ctx[28] = list[i];
3768
3849
  child_ctx[30] = i;
@@ -3808,7 +3889,7 @@ function create_if_block_6$4(ctx) {
3808
3889
  }
3809
3890
  };
3810
3891
  }
3811
- function create_if_block_5$4(ctx) {
3892
+ function create_if_block_5$6(ctx) {
3812
3893
  let div1;
3813
3894
  let div0;
3814
3895
  let label;
@@ -3878,11 +3959,11 @@ function create_if_block_5$4(ctx) {
3878
3959
  }
3879
3960
  };
3880
3961
  }
3881
- function create_each_block_1$4(ctx) {
3962
+ function create_each_block_1$5(ctx) {
3882
3963
  let if_block_anchor;
3883
3964
  let if_block = (
3884
3965
  /*customField*/
3885
- ctx[28].hidden !== true && create_if_block_5$4(ctx)
3966
+ ctx[28].hidden !== true && create_if_block_5$6(ctx)
3886
3967
  );
3887
3968
  return {
3888
3969
  c() {
@@ -3903,7 +3984,7 @@ function create_each_block_1$4(ctx) {
3903
3984
  if (if_block) {
3904
3985
  if_block.p(ctx2, dirty);
3905
3986
  } else {
3906
- if_block = create_if_block_5$4(ctx2);
3987
+ if_block = create_if_block_5$6(ctx2);
3907
3988
  if_block.c();
3908
3989
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
3909
3990
  }
@@ -3920,7 +4001,7 @@ function create_each_block_1$4(ctx) {
3920
4001
  }
3921
4002
  };
3922
4003
  }
3923
- function create_if_block_4$6(ctx) {
4004
+ function create_if_block_4$7(ctx) {
3924
4005
  let passwordinput;
3925
4006
  let updating_passwordInputValid;
3926
4007
  let current;
@@ -3971,7 +4052,7 @@ function create_if_block_4$6(ctx) {
3971
4052
  }
3972
4053
  };
3973
4054
  }
3974
- function create_else_block_1$6(ctx) {
4055
+ function create_else_block_1$7(ctx) {
3975
4056
  let submitbutton;
3976
4057
  let current;
3977
4058
  submitbutton = new SubmitButton({
@@ -4014,7 +4095,7 @@ function create_else_block_1$6(ctx) {
4014
4095
  }
4015
4096
  };
4016
4097
  }
4017
- function create_if_block_3$8(ctx) {
4098
+ function create_if_block_3$a(ctx) {
4018
4099
  let submitbutton;
4019
4100
  let current;
4020
4101
  submitbutton = new SubmitButton({
@@ -4057,7 +4138,7 @@ function create_if_block_3$8(ctx) {
4057
4138
  }
4058
4139
  };
4059
4140
  }
4060
- function create_if_block$t(ctx) {
4141
+ function create_if_block$u(ctx) {
4061
4142
  let div4;
4062
4143
  let div3;
4063
4144
  let t3;
@@ -4065,7 +4146,7 @@ function create_if_block$t(ctx) {
4065
4146
  let current;
4066
4147
  let if_block = (
4067
4148
  /*$app*/
4068
- ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$m(ctx)
4149
+ ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$n(ctx)
4069
4150
  );
4070
4151
  let each_value = (
4071
4152
  /*$app*/
@@ -4073,7 +4154,7 @@ function create_if_block$t(ctx) {
4073
4154
  );
4074
4155
  let each_blocks = [];
4075
4156
  for (let i = 0; i < each_value.length; i += 1) {
4076
- each_blocks[i] = create_each_block$b(get_each_context$b(ctx, each_value, i));
4157
+ each_blocks[i] = create_each_block$c(get_each_context$c(ctx, each_value, i));
4077
4158
  }
4078
4159
  return {
4079
4160
  c() {
@@ -4118,7 +4199,7 @@ function create_if_block$t(ctx) {
4118
4199
  transition_in(if_block, 1);
4119
4200
  }
4120
4201
  } else {
4121
- if_block = create_if_block_1$m(ctx2);
4202
+ if_block = create_if_block_1$n(ctx2);
4122
4203
  if_block.c();
4123
4204
  transition_in(if_block, 1);
4124
4205
  if_block.m(div4, t4);
@@ -4136,11 +4217,11 @@ function create_if_block$t(ctx) {
4136
4217
  ctx2[7].authProviders;
4137
4218
  let i;
4138
4219
  for (i = 0; i < each_value.length; i += 1) {
4139
- const child_ctx = get_each_context$b(ctx2, each_value, i);
4220
+ const child_ctx = get_each_context$c(ctx2, each_value, i);
4140
4221
  if (each_blocks[i]) {
4141
4222
  each_blocks[i].p(child_ctx, dirty);
4142
4223
  } else {
4143
- each_blocks[i] = create_each_block$b(child_ctx);
4224
+ each_blocks[i] = create_each_block$c(child_ctx);
4144
4225
  each_blocks[i].c();
4145
4226
  each_blocks[i].m(div4, null);
4146
4227
  }
@@ -4170,12 +4251,12 @@ function create_if_block$t(ctx) {
4170
4251
  }
4171
4252
  };
4172
4253
  }
4173
- function create_if_block_1$m(ctx) {
4254
+ function create_if_block_1$n(ctx) {
4174
4255
  let div;
4175
4256
  let current_block_type_index;
4176
4257
  let if_block;
4177
4258
  let current;
4178
- const if_block_creators = [create_if_block_2$g, create_else_block$d];
4259
+ const if_block_creators = [create_if_block_2$i, create_else_block$e];
4179
4260
  const if_blocks = [];
4180
4261
  function select_block_type_1(ctx2, dirty) {
4181
4262
  if (
@@ -4237,7 +4318,7 @@ function create_if_block_1$m(ctx) {
4237
4318
  }
4238
4319
  };
4239
4320
  }
4240
- function create_else_block$d(ctx) {
4321
+ function create_else_block$e(ctx) {
4241
4322
  let button;
4242
4323
  let span;
4243
4324
  let mounted;
@@ -4276,7 +4357,7 @@ function create_else_block$d(ctx) {
4276
4357
  }
4277
4358
  };
4278
4359
  }
4279
- function create_if_block_2$g(ctx) {
4360
+ function create_if_block_2$i(ctx) {
4280
4361
  let button;
4281
4362
  let emailicon;
4282
4363
  let t0;
@@ -4333,7 +4414,7 @@ function create_if_block_2$g(ctx) {
4333
4414
  }
4334
4415
  };
4335
4416
  }
4336
- function create_each_block$b(ctx) {
4417
+ function create_each_block$c(ctx) {
4337
4418
  let div;
4338
4419
  let button;
4339
4420
  let img;
@@ -4417,7 +4498,7 @@ function create_each_block$b(ctx) {
4417
4498
  }
4418
4499
  };
4419
4500
  }
4420
- function create_fragment$14(ctx) {
4501
+ function create_fragment$16(ctx) {
4421
4502
  let div4;
4422
4503
  let t0;
4423
4504
  let div3;
@@ -4456,7 +4537,7 @@ function create_fragment$14(ctx) {
4456
4537
  );
4457
4538
  let each_blocks = [];
4458
4539
  for (let i = 0; i < each_value_1.length; i += 1) {
4459
- each_blocks[i] = create_each_block_1$4(get_each_context_1$4(ctx, each_value_1, i));
4540
+ each_blocks[i] = create_each_block_1$5(get_each_context_1$5(ctx, each_value_1, i));
4460
4541
  }
4461
4542
  function emailinput_emailInputValid_binding(value) {
4462
4543
  ctx[12](value);
@@ -4473,9 +4554,9 @@ function create_fragment$14(ctx) {
4473
4554
  binding_callbacks.push(() => bind(emailinput, "emailInputValid", emailinput_emailInputValid_binding));
4474
4555
  let if_block1 = (
4475
4556
  /*$PasswordlessStore*/
4476
- ctx[6].passwordlessMode === false && create_if_block_4$6(ctx)
4557
+ ctx[6].passwordlessMode === false && create_if_block_4$7(ctx)
4477
4558
  );
4478
- const if_block_creators = [create_if_block_3$8, create_else_block_1$6];
4559
+ const if_block_creators = [create_if_block_3$a, create_else_block_1$7];
4479
4560
  const if_blocks = [];
4480
4561
  function select_block_type(ctx2, dirty) {
4481
4562
  if (
@@ -4490,7 +4571,7 @@ function create_fragment$14(ctx) {
4490
4571
  let if_block3 = (
4491
4572
  /*$app*/
4492
4573
  (ctx[7].authProviders.length > 0 || /*$app*/
4493
- ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$t(ctx)
4574
+ ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$u(ctx)
4494
4575
  );
4495
4576
  modalfooter = new ModalFooter({});
4496
4577
  return {
@@ -4625,11 +4706,11 @@ function create_fragment$14(ctx) {
4625
4706
  ctx2[7].customFields;
4626
4707
  let i;
4627
4708
  for (i = 0; i < each_value_1.length; i += 1) {
4628
- const child_ctx = get_each_context_1$4(ctx2, each_value_1, i);
4709
+ const child_ctx = get_each_context_1$5(ctx2, each_value_1, i);
4629
4710
  if (each_blocks[i]) {
4630
4711
  each_blocks[i].p(child_ctx, dirty);
4631
4712
  } else {
4632
- each_blocks[i] = create_each_block_1$4(child_ctx);
4713
+ each_blocks[i] = create_each_block_1$5(child_ctx);
4633
4714
  each_blocks[i].c();
4634
4715
  each_blocks[i].m(form, t4);
4635
4716
  }
@@ -4659,7 +4740,7 @@ function create_fragment$14(ctx) {
4659
4740
  transition_in(if_block1, 1);
4660
4741
  }
4661
4742
  } else {
4662
- if_block1 = create_if_block_4$6(ctx2);
4743
+ if_block1 = create_if_block_4$7(ctx2);
4663
4744
  if_block1.c();
4664
4745
  transition_in(if_block1, 1);
4665
4746
  if_block1.m(form, t9);
@@ -4703,7 +4784,7 @@ function create_fragment$14(ctx) {
4703
4784
  transition_in(if_block3, 1);
4704
4785
  }
4705
4786
  } else {
4706
- if_block3 = create_if_block$t(ctx2);
4787
+ if_block3 = create_if_block$u(ctx2);
4707
4788
  if_block3.c();
4708
4789
  transition_in(if_block3, 1);
4709
4790
  if_block3.m(div3, null);
@@ -4764,7 +4845,7 @@ function executeCaptcha() {
4764
4845
  return response;
4765
4846
  });
4766
4847
  }
4767
- function instance$A($$self, $$props, $$invalidate) {
4848
+ function instance$B($$self, $$props, $$invalidate) {
4768
4849
  var _a;
4769
4850
  let $PasswordlessStore;
4770
4851
  let $app;
@@ -4937,8 +5018,8 @@ var SignupModal = class extends SvelteComponent {
4937
5018
  init(
4938
5019
  this,
4939
5020
  options,
4940
- instance$A,
4941
- create_fragment$14,
5021
+ instance$B,
5022
+ create_fragment$16,
4942
5023
  safe_not_equal,
4943
5024
  {
4944
5025
  closeModal: 1,
@@ -4946,11 +5027,11 @@ var SignupModal = class extends SvelteComponent {
4946
5027
  onSuccessSignup: 11,
4947
5028
  params: 2
4948
5029
  },
4949
- add_css$k
5030
+ add_css$l
4950
5031
  );
4951
5032
  }
4952
5033
  };
4953
- function create_fragment$13(ctx) {
5034
+ function create_fragment$15(ctx) {
4954
5035
  let svg;
4955
5036
  let path;
4956
5037
  return {
@@ -4979,10 +5060,10 @@ function create_fragment$13(ctx) {
4979
5060
  var BackIcon = class extends SvelteComponent {
4980
5061
  constructor(options) {
4981
5062
  super();
4982
- init(this, options, null, create_fragment$13, safe_not_equal, {});
5063
+ init(this, options, null, create_fragment$15, safe_not_equal, {});
4983
5064
  }
4984
5065
  };
4985
- function create_fragment$12(ctx) {
5066
+ function create_fragment$14(ctx) {
4986
5067
  let div4;
4987
5068
  let div0;
4988
5069
  let button;
@@ -5177,7 +5258,7 @@ function create_fragment$12(ctx) {
5177
5258
  }
5178
5259
  };
5179
5260
  }
5180
- function instance$z($$self, $$props, $$invalidate) {
5261
+ function instance$A($$self, $$props, $$invalidate) {
5181
5262
  let $textStore;
5182
5263
  component_subscribe($$self, TextStore, ($$value) => $$invalidate(9, $textStore = $$value));
5183
5264
  let text2 = $textStore.text;
@@ -5230,10 +5311,10 @@ function instance$z($$self, $$props, $$invalidate) {
5230
5311
  var PassResetModal = class extends SvelteComponent {
5231
5312
  constructor(options) {
5232
5313
  super();
5233
- init(this, options, instance$z, create_fragment$12, safe_not_equal, { closeModal: 5, display: 0 });
5314
+ init(this, options, instance$A, create_fragment$14, safe_not_equal, { closeModal: 5, display: 0 });
5234
5315
  }
5235
5316
  };
5236
- function create_if_block$s(ctx) {
5317
+ function create_if_block$t(ctx) {
5237
5318
  let div;
5238
5319
  let erroricon;
5239
5320
  let t;
@@ -5269,7 +5350,7 @@ function create_if_block$s(ctx) {
5269
5350
  }
5270
5351
  };
5271
5352
  }
5272
- function create_fragment$11(ctx) {
5353
+ function create_fragment$13(ctx) {
5273
5354
  let div3;
5274
5355
  let div0;
5275
5356
  let button;
@@ -5307,18 +5388,18 @@ function create_fragment$11(ctx) {
5307
5388
  });
5308
5389
  figureelement = new FigureElement({});
5309
5390
  let if_block = !/*tokenInputValid*/
5310
- ctx[3] && create_if_block$s();
5391
+ ctx[3] && create_if_block$t();
5311
5392
  function passwordinput_passwordInputValid_binding(value) {
5312
5393
  ctx[9](value);
5313
5394
  }
5314
5395
  let passwordinput_props = {
5315
5396
  passwordPlaceholder: (
5316
5397
  /*text*/
5317
- ctx[5]["reset_password_placeholder"]
5398
+ ctx[5]["reset_password_placeholder"] || "New password"
5318
5399
  ),
5319
5400
  passwordLabel: (
5320
5401
  /*text*/
5321
- ctx[5]["password"] || "Password"
5402
+ ctx[5]["password"] || "Enter a new password"
5322
5403
  )
5323
5404
  };
5324
5405
  if (
@@ -5455,7 +5536,7 @@ function create_fragment$11(ctx) {
5455
5536
  transition_in(if_block, 1);
5456
5537
  }
5457
5538
  } else {
5458
- if_block = create_if_block$s();
5539
+ if_block = create_if_block$t();
5459
5540
  if_block.c();
5460
5541
  transition_in(if_block, 1);
5461
5542
  if_block.m(div1, null);
@@ -5521,7 +5602,7 @@ function create_fragment$11(ctx) {
5521
5602
  }
5522
5603
  };
5523
5604
  }
5524
- function instance$y($$self, $$props, $$invalidate) {
5605
+ function instance$z($$self, $$props, $$invalidate) {
5525
5606
  let $textStore;
5526
5607
  component_subscribe($$self, TextStore, ($$value) => $$invalidate(10, $textStore = $$value));
5527
5608
  let text2 = $textStore.text;
@@ -5618,14 +5699,14 @@ function instance$y($$self, $$props, $$invalidate) {
5618
5699
  var PassTokenModal = class extends SvelteComponent {
5619
5700
  constructor(options) {
5620
5701
  super();
5621
- init(this, options, instance$y, create_fragment$11, safe_not_equal, {
5702
+ init(this, options, instance$z, create_fragment$13, safe_not_equal, {
5622
5703
  closeModal: 1,
5623
5704
  display: 0,
5624
5705
  onSuccessPasswordReset: 7
5625
5706
  });
5626
5707
  }
5627
5708
  };
5628
- function create_fragment$10(ctx) {
5709
+ function create_fragment$12(ctx) {
5629
5710
  let div2;
5630
5711
  let div0;
5631
5712
  let t0;
@@ -5721,7 +5802,7 @@ function create_fragment$10(ctx) {
5721
5802
  }
5722
5803
  };
5723
5804
  }
5724
- function instance$x($$self, $$props, $$invalidate) {
5805
+ function instance$y($$self, $$props, $$invalidate) {
5725
5806
  let { closeModal } = $$props;
5726
5807
  $$self.$$set = ($$props2) => {
5727
5808
  if ("closeModal" in $$props2)
@@ -5732,10 +5813,10 @@ function instance$x($$self, $$props, $$invalidate) {
5732
5813
  var PassSuccessModal = class extends SvelteComponent {
5733
5814
  constructor(options) {
5734
5815
  super();
5735
- init(this, options, instance$x, create_fragment$10, safe_not_equal, { closeModal: 0 });
5816
+ init(this, options, instance$y, create_fragment$12, safe_not_equal, { closeModal: 0 });
5736
5817
  }
5737
5818
  };
5738
- function create_else_block_1$5(ctx) {
5819
+ function create_else_block_1$6(ctx) {
5739
5820
  let button;
5740
5821
  let backicon;
5741
5822
  let current;
@@ -5781,7 +5862,7 @@ function create_else_block_1$5(ctx) {
5781
5862
  }
5782
5863
  };
5783
5864
  }
5784
- function create_if_block_2$f(ctx) {
5865
+ function create_if_block_2$h(ctx) {
5785
5866
  let button;
5786
5867
  let backicon;
5787
5868
  let current;
@@ -5827,7 +5908,7 @@ function create_if_block_2$f(ctx) {
5827
5908
  }
5828
5909
  };
5829
5910
  }
5830
- function create_else_block$c(ctx) {
5911
+ function create_else_block$d(ctx) {
5831
5912
  let h2;
5832
5913
  return {
5833
5914
  c() {
@@ -5846,7 +5927,7 @@ function create_else_block$c(ctx) {
5846
5927
  }
5847
5928
  };
5848
5929
  }
5849
- function create_if_block_1$l(ctx) {
5930
+ function create_if_block_1$m(ctx) {
5850
5931
  let h2;
5851
5932
  return {
5852
5933
  c() {
@@ -5865,7 +5946,7 @@ function create_if_block_1$l(ctx) {
5865
5946
  }
5866
5947
  };
5867
5948
  }
5868
- function create_if_block$r(ctx) {
5949
+ function create_if_block$s(ctx) {
5869
5950
  let div;
5870
5951
  let erroricon;
5871
5952
  let t;
@@ -5901,7 +5982,7 @@ function create_if_block$r(ctx) {
5901
5982
  }
5902
5983
  };
5903
5984
  }
5904
- function create_fragment$$(ctx) {
5985
+ function create_fragment$11(ctx) {
5905
5986
  let div3;
5906
5987
  let div0;
5907
5988
  let current_block_type_index;
@@ -5928,7 +6009,7 @@ function create_fragment$$(ctx) {
5928
6009
  let current;
5929
6010
  let mounted;
5930
6011
  let dispose;
5931
- const if_block_creators = [create_if_block_2$f, create_else_block_1$5];
6012
+ const if_block_creators = [create_if_block_2$h, create_else_block_1$6];
5932
6013
  const if_blocks = [];
5933
6014
  function select_block_type(ctx2, dirty) {
5934
6015
  if (
@@ -5952,13 +6033,13 @@ function create_fragment$$(ctx) {
5952
6033
  /*$PasswordlessStore*/
5953
6034
  ctx2[4].passwordlessModalType === "login"
5954
6035
  )
5955
- return create_if_block_1$l;
5956
- return create_else_block$c;
6036
+ return create_if_block_1$m;
6037
+ return create_else_block$d;
5957
6038
  }
5958
6039
  let current_block_type = select_block_type_1(ctx);
5959
6040
  let if_block1 = current_block_type(ctx);
5960
6041
  let if_block2 = !/*tokenInputValid*/
5961
- ctx[3] && create_if_block$r();
6042
+ ctx[3] && create_if_block$s();
5962
6043
  submitbutton = new SubmitButton({
5963
6044
  props: {
5964
6045
  buttonText: (
@@ -6104,7 +6185,7 @@ function create_fragment$$(ctx) {
6104
6185
  transition_in(if_block2, 1);
6105
6186
  }
6106
6187
  } else {
6107
- if_block2 = create_if_block$r();
6188
+ if_block2 = create_if_block$s();
6108
6189
  if_block2.c();
6109
6190
  transition_in(if_block2, 1);
6110
6191
  if_block2.m(div1, null);
@@ -6159,7 +6240,7 @@ function create_fragment$$(ctx) {
6159
6240
  }
6160
6241
  };
6161
6242
  }
6162
- function instance$w($$self, $$props, $$invalidate) {
6243
+ function instance$x($$self, $$props, $$invalidate) {
6163
6244
  let $PasswordlessStore;
6164
6245
  let $textStore;
6165
6246
  component_subscribe($$self, PasswordlessStore, ($$value) => $$invalidate(4, $PasswordlessStore = $$value));
@@ -6279,7 +6360,7 @@ function instance$w($$self, $$props, $$invalidate) {
6279
6360
  var PasswordlessTokenModal = class extends SvelteComponent {
6280
6361
  constructor(options) {
6281
6362
  super();
6282
- init(this, options, instance$w, create_fragment$$, safe_not_equal, {
6363
+ init(this, options, instance$x, create_fragment$11, safe_not_equal, {
6283
6364
  closeModal: 1,
6284
6365
  display: 0,
6285
6366
  onSuccessPasswordlessToken: 7,
@@ -6287,7 +6368,7 @@ var PasswordlessTokenModal = class extends SvelteComponent {
6287
6368
  });
6288
6369
  }
6289
6370
  };
6290
- function create_fragment$_(ctx) {
6371
+ function create_fragment$10(ctx) {
6291
6372
  let svg;
6292
6373
  let path;
6293
6374
  return {
@@ -6316,10 +6397,10 @@ function create_fragment$_(ctx) {
6316
6397
  var ProfileIcon = class extends SvelteComponent {
6317
6398
  constructor(options) {
6318
6399
  super();
6319
- init(this, options, null, create_fragment$_, safe_not_equal, {});
6400
+ init(this, options, null, create_fragment$10, safe_not_equal, {});
6320
6401
  }
6321
6402
  };
6322
- function create_fragment$Z(ctx) {
6403
+ function create_fragment$$(ctx) {
6323
6404
  let svg;
6324
6405
  let path;
6325
6406
  return {
@@ -6348,10 +6429,10 @@ function create_fragment$Z(ctx) {
6348
6429
  var SecurityIcon = class extends SvelteComponent {
6349
6430
  constructor(options) {
6350
6431
  super();
6351
- init(this, options, null, create_fragment$Z, safe_not_equal, {});
6432
+ init(this, options, null, create_fragment$$, safe_not_equal, {});
6352
6433
  }
6353
6434
  };
6354
- function create_fragment$Y(ctx) {
6435
+ function create_fragment$_(ctx) {
6355
6436
  let svg;
6356
6437
  let path;
6357
6438
  return {
@@ -6380,10 +6461,10 @@ function create_fragment$Y(ctx) {
6380
6461
  var LinkOutIcon = class extends SvelteComponent {
6381
6462
  constructor(options) {
6382
6463
  super();
6383
- init(this, options, null, create_fragment$Y, safe_not_equal, {});
6464
+ init(this, options, null, create_fragment$_, safe_not_equal, {});
6384
6465
  }
6385
6466
  };
6386
- function create_fragment$X(ctx) {
6467
+ function create_fragment$Z(ctx) {
6387
6468
  let svg;
6388
6469
  let path;
6389
6470
  return {
@@ -6414,10 +6495,10 @@ function create_fragment$X(ctx) {
6414
6495
  var LogoutIcon = class extends SvelteComponent {
6415
6496
  constructor(options) {
6416
6497
  super();
6417
- init(this, options, null, create_fragment$X, safe_not_equal, {});
6498
+ init(this, options, null, create_fragment$Z, safe_not_equal, {});
6418
6499
  }
6419
6500
  };
6420
- function create_fragment$W(ctx) {
6501
+ function create_fragment$Y(ctx) {
6421
6502
  let svg;
6422
6503
  let path;
6423
6504
  return {
@@ -6446,10 +6527,10 @@ function create_fragment$W(ctx) {
6446
6527
  var PlansIcon = class extends SvelteComponent {
6447
6528
  constructor(options) {
6448
6529
  super();
6449
- init(this, options, null, create_fragment$W, safe_not_equal, {});
6530
+ init(this, options, null, create_fragment$Y, safe_not_equal, {});
6450
6531
  }
6451
6532
  };
6452
- function create_if_block_1$k(ctx) {
6533
+ function create_if_block_2$g(ctx) {
6453
6534
  let button;
6454
6535
  let profileicon;
6455
6536
  let t;
@@ -6481,7 +6562,7 @@ function create_if_block_1$k(ctx) {
6481
6562
  button,
6482
6563
  "click",
6483
6564
  /*click_handler*/
6484
- ctx[7]
6565
+ ctx[8]
6485
6566
  );
6486
6567
  mounted = true;
6487
6568
  }
@@ -6516,7 +6597,7 @@ function create_if_block_1$k(ctx) {
6516
6597
  }
6517
6598
  };
6518
6599
  }
6519
- function create_if_block$q(ctx) {
6600
+ function create_if_block_1$l(ctx) {
6520
6601
  let button;
6521
6602
  let plansicon;
6522
6603
  let t;
@@ -6548,7 +6629,7 @@ function create_if_block$q(ctx) {
6548
6629
  button,
6549
6630
  "click",
6550
6631
  /*click_handler_2*/
6551
- ctx[9]
6632
+ ctx[10]
6552
6633
  );
6553
6634
  mounted = true;
6554
6635
  }
@@ -6583,51 +6664,127 @@ function create_if_block$q(ctx) {
6583
6664
  }
6584
6665
  };
6585
6666
  }
6586
- function create_fragment$V(ctx) {
6587
- let t0;
6588
- let button0;
6589
- let securityicon;
6590
- let t1;
6591
- let t2;
6592
- let show_if = (
6593
- /*showPlansNavButton*/
6594
- ctx[3]()
6595
- );
6596
- let t3;
6597
- let button1;
6598
- let logouticon;
6599
- let t4;
6667
+ function create_if_block$r(ctx) {
6668
+ let button;
6669
+ let plansicon;
6670
+ let t;
6600
6671
  let current;
6601
6672
  let mounted;
6602
6673
  let dispose;
6603
- let if_block0 = !/*hideProfileSection*/
6604
- ctx[1] && create_if_block_1$k(ctx);
6605
- securityicon = new SecurityIcon({});
6606
- let if_block1 = show_if && create_if_block$q(ctx);
6607
- logouticon = new LogoutIcon({});
6674
+ plansicon = new PlansIcon({});
6608
6675
  return {
6609
6676
  c() {
6610
- if (if_block0)
6611
- if_block0.c();
6612
- t0 = space();
6613
- button0 = element("button");
6614
- create_component(securityicon.$$.fragment);
6615
- t1 = text(" Security");
6616
- t2 = space();
6617
- if (if_block1)
6618
- if_block1.c();
6619
- t3 = space();
6620
- button1 = element("button");
6621
- create_component(logouticon.$$.fragment);
6622
- t4 = text(" Logout");
6623
- attr(button0, "data-cy", "security-btn");
6624
- attr(button0, "class", "ms-modal__profile-option");
6677
+ button = element("button");
6678
+ create_component(plansicon.$$.fragment);
6679
+ t = text(" Team");
6680
+ attr(button, "data-cy", "plans-btn");
6681
+ attr(button, "class", "ms-modal__profile-option");
6625
6682
  toggle_class(
6626
- button0,
6683
+ button,
6627
6684
  "ms-modal__profile-option--active",
6628
6685
  /*displayProfile*/
6629
- ctx[0] === "security" || /*displayProfile*/
6630
- ctx[0] === "changePassword"
6686
+ ctx[0] === "team"
6687
+ );
6688
+ },
6689
+ m(target, anchor) {
6690
+ insert(target, button, anchor);
6691
+ mount_component(plansicon, button, null);
6692
+ append(button, t);
6693
+ current = true;
6694
+ if (!mounted) {
6695
+ dispose = listen(
6696
+ button,
6697
+ "click",
6698
+ /*click_handler_3*/
6699
+ ctx[11]
6700
+ );
6701
+ mounted = true;
6702
+ }
6703
+ },
6704
+ p(ctx2, dirty) {
6705
+ if (!current || dirty & /*displayProfile*/
6706
+ 1) {
6707
+ toggle_class(
6708
+ button,
6709
+ "ms-modal__profile-option--active",
6710
+ /*displayProfile*/
6711
+ ctx2[0] === "team"
6712
+ );
6713
+ }
6714
+ },
6715
+ i(local) {
6716
+ if (current)
6717
+ return;
6718
+ transition_in(plansicon.$$.fragment, local);
6719
+ current = true;
6720
+ },
6721
+ o(local) {
6722
+ transition_out(plansicon.$$.fragment, local);
6723
+ current = false;
6724
+ },
6725
+ d(detaching) {
6726
+ if (detaching)
6727
+ detach(button);
6728
+ destroy_component(plansicon);
6729
+ mounted = false;
6730
+ dispose();
6731
+ }
6732
+ };
6733
+ }
6734
+ function create_fragment$X(ctx) {
6735
+ let t0;
6736
+ let button0;
6737
+ let securityicon;
6738
+ let t1;
6739
+ let t2;
6740
+ let show_if_1 = (
6741
+ /*showPlansNavButton*/
6742
+ ctx[3]()
6743
+ );
6744
+ let t3;
6745
+ let show_if = (
6746
+ /*showTeamNavButton*/
6747
+ ctx[4]()
6748
+ );
6749
+ let t4;
6750
+ let button1;
6751
+ let logouticon;
6752
+ let t5;
6753
+ let current;
6754
+ let mounted;
6755
+ let dispose;
6756
+ let if_block0 = !/*hideProfileSection*/
6757
+ ctx[1] && create_if_block_2$g(ctx);
6758
+ securityicon = new SecurityIcon({});
6759
+ let if_block1 = show_if_1 && create_if_block_1$l(ctx);
6760
+ let if_block2 = show_if && create_if_block$r(ctx);
6761
+ logouticon = new LogoutIcon({});
6762
+ return {
6763
+ c() {
6764
+ if (if_block0)
6765
+ if_block0.c();
6766
+ t0 = space();
6767
+ button0 = element("button");
6768
+ create_component(securityicon.$$.fragment);
6769
+ t1 = text(" Security");
6770
+ t2 = space();
6771
+ if (if_block1)
6772
+ if_block1.c();
6773
+ t3 = space();
6774
+ if (if_block2)
6775
+ if_block2.c();
6776
+ t4 = space();
6777
+ button1 = element("button");
6778
+ create_component(logouticon.$$.fragment);
6779
+ t5 = text(" Logout");
6780
+ attr(button0, "data-cy", "security-btn");
6781
+ attr(button0, "class", "ms-modal__profile-option");
6782
+ toggle_class(
6783
+ button0,
6784
+ "ms-modal__profile-option--active",
6785
+ /*displayProfile*/
6786
+ ctx[0] === "security" || /*displayProfile*/
6787
+ ctx[0] === "changePassword"
6631
6788
  );
6632
6789
  attr(button1, "data-cy", "logout-btn");
6633
6790
  attr(button1, "class", "ms-modal__profile-option");
@@ -6643,9 +6800,12 @@ function create_fragment$V(ctx) {
6643
6800
  if (if_block1)
6644
6801
  if_block1.m(target, anchor);
6645
6802
  insert(target, t3, anchor);
6803
+ if (if_block2)
6804
+ if_block2.m(target, anchor);
6805
+ insert(target, t4, anchor);
6646
6806
  insert(target, button1, anchor);
6647
6807
  mount_component(logouticon, button1, null);
6648
- append(button1, t4);
6808
+ append(button1, t5);
6649
6809
  current = true;
6650
6810
  if (!mounted) {
6651
6811
  dispose = [
@@ -6653,7 +6813,7 @@ function create_fragment$V(ctx) {
6653
6813
  button0,
6654
6814
  "click",
6655
6815
  /*click_handler_1*/
6656
- ctx[8]
6816
+ ctx[9]
6657
6817
  ),
6658
6818
  listen(
6659
6819
  button1,
@@ -6675,7 +6835,7 @@ function create_fragment$V(ctx) {
6675
6835
  transition_in(if_block0, 1);
6676
6836
  }
6677
6837
  } else {
6678
- if_block0 = create_if_block_1$k(ctx2);
6838
+ if_block0 = create_if_block_2$g(ctx2);
6679
6839
  if_block0.c();
6680
6840
  transition_in(if_block0, 1);
6681
6841
  if_block0.m(t0.parentNode, t0);
@@ -6697,8 +6857,10 @@ function create_fragment$V(ctx) {
6697
6857
  ctx2[0] === "changePassword"
6698
6858
  );
6699
6859
  }
6700
- if (show_if)
6860
+ if (show_if_1)
6701
6861
  if_block1.p(ctx2, dirty);
6862
+ if (show_if)
6863
+ if_block2.p(ctx2, dirty);
6702
6864
  },
6703
6865
  i(local) {
6704
6866
  if (current)
@@ -6706,6 +6868,7 @@ function create_fragment$V(ctx) {
6706
6868
  transition_in(if_block0);
6707
6869
  transition_in(securityicon.$$.fragment, local);
6708
6870
  transition_in(if_block1);
6871
+ transition_in(if_block2);
6709
6872
  transition_in(logouticon.$$.fragment, local);
6710
6873
  current = true;
6711
6874
  },
@@ -6713,6 +6876,7 @@ function create_fragment$V(ctx) {
6713
6876
  transition_out(if_block0);
6714
6877
  transition_out(securityicon.$$.fragment, local);
6715
6878
  transition_out(if_block1);
6879
+ transition_out(if_block2);
6716
6880
  transition_out(logouticon.$$.fragment, local);
6717
6881
  current = false;
6718
6882
  },
@@ -6730,6 +6894,10 @@ function create_fragment$V(ctx) {
6730
6894
  if_block1.d(detaching);
6731
6895
  if (detaching)
6732
6896
  detach(t3);
6897
+ if (if_block2)
6898
+ if_block2.d(detaching);
6899
+ if (detaching)
6900
+ detach(t4);
6733
6901
  if (detaching)
6734
6902
  detach(button1);
6735
6903
  destroy_component(logouticon);
@@ -6738,7 +6906,7 @@ function create_fragment$V(ctx) {
6738
6906
  }
6739
6907
  };
6740
6908
  }
6741
- function instance$v($$self, $$props, $$invalidate) {
6909
+ function instance$w($$self, $$props, $$invalidate) {
6742
6910
  let { member } = $$props;
6743
6911
  let { onSuccessLogout } = $$props;
6744
6912
  let { displayProfile } = $$props;
@@ -6769,20 +6937,25 @@ function instance$v($$self, $$props, $$invalidate) {
6769
6937
  });
6770
6938
  }
6771
6939
  function showPlansNavButton() {
6772
- return member.stripeCustomerId || member.planConnections.some((plan) => plan.type === "FREE");
6940
+ return member.stripeCustomerId || member.planConnections.some((plan) => plan.type === "FREE") || member.teams.joinedTeams.length > 0;
6941
+ }
6942
+ function showTeamNavButton() {
6943
+ var _a;
6944
+ return ((_a = member.teams) == null ? void 0 : _a.ownedTeams.length) > 0;
6773
6945
  }
6774
6946
  const click_handler = () => $$invalidate(0, displayProfile = "profile");
6775
6947
  const click_handler_1 = () => $$invalidate(0, displayProfile = "security");
6776
6948
  const click_handler_2 = () => $$invalidate(0, displayProfile = "plans");
6949
+ const click_handler_3 = () => $$invalidate(0, displayProfile = "team");
6777
6950
  $$self.$$set = ($$props2) => {
6778
6951
  if ("member" in $$props2)
6779
- $$invalidate(4, member = $$props2.member);
6952
+ $$invalidate(5, member = $$props2.member);
6780
6953
  if ("onSuccessLogout" in $$props2)
6781
- $$invalidate(5, onSuccessLogout = $$props2.onSuccessLogout);
6954
+ $$invalidate(6, onSuccessLogout = $$props2.onSuccessLogout);
6782
6955
  if ("displayProfile" in $$props2)
6783
6956
  $$invalidate(0, displayProfile = $$props2.displayProfile);
6784
6957
  if ("profileLoader" in $$props2)
6785
- $$invalidate(6, profileLoader = $$props2.profileLoader);
6958
+ $$invalidate(7, profileLoader = $$props2.profileLoader);
6786
6959
  if ("hideProfileSection" in $$props2)
6787
6960
  $$invalidate(1, hideProfileSection2 = $$props2.hideProfileSection);
6788
6961
  };
@@ -6791,27 +6964,29 @@ function instance$v($$self, $$props, $$invalidate) {
6791
6964
  hideProfileSection2,
6792
6965
  logout,
6793
6966
  showPlansNavButton,
6967
+ showTeamNavButton,
6794
6968
  member,
6795
6969
  onSuccessLogout,
6796
6970
  profileLoader,
6797
6971
  click_handler,
6798
6972
  click_handler_1,
6799
- click_handler_2
6973
+ click_handler_2,
6974
+ click_handler_3
6800
6975
  ];
6801
6976
  }
6802
6977
  var ProfileModalNav = class extends SvelteComponent {
6803
6978
  constructor(options) {
6804
6979
  super();
6805
- init(this, options, instance$v, create_fragment$V, safe_not_equal, {
6806
- member: 4,
6807
- onSuccessLogout: 5,
6980
+ init(this, options, instance$w, create_fragment$X, safe_not_equal, {
6981
+ member: 5,
6982
+ onSuccessLogout: 6,
6808
6983
  displayProfile: 0,
6809
- profileLoader: 6,
6984
+ profileLoader: 7,
6810
6985
  hideProfileSection: 1
6811
6986
  });
6812
6987
  }
6813
6988
  };
6814
- function create_fragment$U(ctx) {
6989
+ function create_fragment$W(ctx) {
6815
6990
  let svg;
6816
6991
  let path;
6817
6992
  return {
@@ -6842,10 +7017,10 @@ function create_fragment$U(ctx) {
6842
7017
  var ProfileDefaultImage = class extends SvelteComponent {
6843
7018
  constructor(options) {
6844
7019
  super();
6845
- init(this, options, null, create_fragment$U, safe_not_equal, {});
7020
+ init(this, options, null, create_fragment$W, safe_not_equal, {});
6846
7021
  }
6847
7022
  };
6848
- function create_fragment$T(ctx) {
7023
+ function create_fragment$V(ctx) {
6849
7024
  let svg;
6850
7025
  let g;
6851
7026
  let path0;
@@ -6890,17 +7065,17 @@ function create_fragment$T(ctx) {
6890
7065
  var UploadIcon = class extends SvelteComponent {
6891
7066
  constructor(options) {
6892
7067
  super();
6893
- init(this, options, null, create_fragment$T, safe_not_equal, {});
7068
+ init(this, options, null, create_fragment$V, safe_not_equal, {});
6894
7069
  }
6895
7070
  };
6896
- function get_each_context$a(ctx, list, i) {
7071
+ function get_each_context$b(ctx, list, i) {
6897
7072
  const child_ctx = ctx.slice();
6898
7073
  child_ctx[10] = list[i];
6899
7074
  child_ctx[11] = list;
6900
7075
  child_ctx[12] = i;
6901
7076
  return child_ctx;
6902
7077
  }
6903
- function create_else_block_1$4(ctx) {
7078
+ function create_else_block_1$5(ctx) {
6904
7079
  let profiledefaultimage;
6905
7080
  let current;
6906
7081
  profiledefaultimage = new ProfileDefaultImage({});
@@ -6928,7 +7103,7 @@ function create_else_block_1$4(ctx) {
6928
7103
  }
6929
7104
  };
6930
7105
  }
6931
- function create_if_block_2$e(ctx) {
7106
+ function create_if_block_2$f(ctx) {
6932
7107
  let img;
6933
7108
  let img_src_value;
6934
7109
  return {
@@ -6957,7 +7132,7 @@ function create_if_block_2$e(ctx) {
6957
7132
  }
6958
7133
  };
6959
7134
  }
6960
- function create_else_block$b(ctx) {
7135
+ function create_else_block$c(ctx) {
6961
7136
  let t;
6962
7137
  return {
6963
7138
  c() {
@@ -6972,7 +7147,7 @@ function create_else_block$b(ctx) {
6972
7147
  }
6973
7148
  };
6974
7149
  }
6975
- function create_if_block_1$j(ctx) {
7150
+ function create_if_block_1$k(ctx) {
6976
7151
  let t;
6977
7152
  return {
6978
7153
  c() {
@@ -6987,7 +7162,7 @@ function create_if_block_1$j(ctx) {
6987
7162
  }
6988
7163
  };
6989
7164
  }
6990
- function create_if_block$p(ctx) {
7165
+ function create_if_block$q(ctx) {
6991
7166
  let div1;
6992
7167
  let div0;
6993
7168
  let label;
@@ -7112,11 +7287,11 @@ function create_if_block$p(ctx) {
7112
7287
  }
7113
7288
  };
7114
7289
  }
7115
- function create_each_block$a(ctx) {
7290
+ function create_each_block$b(ctx) {
7116
7291
  let if_block_anchor;
7117
7292
  let if_block = (
7118
7293
  /*customField*/
7119
- ctx[10].hidden !== true && create_if_block$p(ctx)
7294
+ ctx[10].hidden !== true && create_if_block$q(ctx)
7120
7295
  );
7121
7296
  return {
7122
7297
  c() {
@@ -7137,7 +7312,7 @@ function create_each_block$a(ctx) {
7137
7312
  if (if_block) {
7138
7313
  if_block.p(ctx2, dirty);
7139
7314
  } else {
7140
- if_block = create_if_block$p(ctx2);
7315
+ if_block = create_if_block$q(ctx2);
7141
7316
  if_block.c();
7142
7317
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
7143
7318
  }
@@ -7154,7 +7329,7 @@ function create_each_block$a(ctx) {
7154
7329
  }
7155
7330
  };
7156
7331
  }
7157
- function create_fragment$S(ctx) {
7332
+ function create_fragment$U(ctx) {
7158
7333
  let div1;
7159
7334
  let h2;
7160
7335
  let t1;
@@ -7175,7 +7350,7 @@ function create_fragment$S(ctx) {
7175
7350
  let current;
7176
7351
  let mounted;
7177
7352
  let dispose;
7178
- const if_block_creators = [create_if_block_2$e, create_else_block_1$4];
7353
+ const if_block_creators = [create_if_block_2$f, create_else_block_1$5];
7179
7354
  const if_blocks = [];
7180
7355
  function select_block_type(ctx2, dirty) {
7181
7356
  if (
@@ -7191,8 +7366,8 @@ function create_fragment$S(ctx) {
7191
7366
  function select_block_type_1(ctx2, dirty) {
7192
7367
  if (!/*member*/
7193
7368
  ctx2[0].profileImage)
7194
- return create_if_block_1$j;
7195
- return create_else_block$b;
7369
+ return create_if_block_1$k;
7370
+ return create_else_block$c;
7196
7371
  }
7197
7372
  let current_block_type = select_block_type_1(ctx);
7198
7373
  let if_block1 = current_block_type(ctx);
@@ -7202,7 +7377,7 @@ function create_fragment$S(ctx) {
7202
7377
  );
7203
7378
  let each_blocks = [];
7204
7379
  for (let i = 0; i < each_value.length; i += 1) {
7205
- each_blocks[i] = create_each_block$a(get_each_context$a(ctx, each_value, i));
7380
+ each_blocks[i] = create_each_block$b(get_each_context$b(ctx, each_value, i));
7206
7381
  }
7207
7382
  return {
7208
7383
  c() {
@@ -7325,11 +7500,11 @@ function create_fragment$S(ctx) {
7325
7500
  ctx2[1];
7326
7501
  let i;
7327
7502
  for (i = 0; i < each_value.length; i += 1) {
7328
- const child_ctx = get_each_context$a(ctx2, each_value, i);
7503
+ const child_ctx = get_each_context$b(ctx2, each_value, i);
7329
7504
  if (each_blocks[i]) {
7330
7505
  each_blocks[i].p(child_ctx, dirty);
7331
7506
  } else {
7332
- each_blocks[i] = create_each_block$a(child_ctx);
7507
+ each_blocks[i] = create_each_block$b(child_ctx);
7333
7508
  each_blocks[i].c();
7334
7509
  each_blocks[i].m(form, null);
7335
7510
  }
@@ -7372,7 +7547,7 @@ function create_fragment$S(ctx) {
7372
7547
  }
7373
7548
  };
7374
7549
  }
7375
- function instance$u($$self, $$props, $$invalidate) {
7550
+ function instance$v($$self, $$props, $$invalidate) {
7376
7551
  let { customFields } = $$props;
7377
7552
  let { member } = $$props;
7378
7553
  let { profileLoader } = $$props;
@@ -7475,14 +7650,14 @@ function instance$u($$self, $$props, $$invalidate) {
7475
7650
  var ProfileInfoContent = class extends SvelteComponent {
7476
7651
  constructor(options) {
7477
7652
  super();
7478
- init(this, options, instance$u, create_fragment$S, safe_not_equal, {
7653
+ init(this, options, instance$v, create_fragment$U, safe_not_equal, {
7479
7654
  customFields: 1,
7480
7655
  member: 0,
7481
7656
  profileLoader: 5
7482
7657
  });
7483
7658
  }
7484
7659
  };
7485
- function create_fragment$R(ctx) {
7660
+ function create_fragment$T(ctx) {
7486
7661
  let svg;
7487
7662
  let path;
7488
7663
  return {
@@ -7511,15 +7686,15 @@ function create_fragment$R(ctx) {
7511
7686
  var PasswordLockIcon = class extends SvelteComponent {
7512
7687
  constructor(options) {
7513
7688
  super();
7514
- init(this, options, null, create_fragment$R, safe_not_equal, {});
7689
+ init(this, options, null, create_fragment$T, safe_not_equal, {});
7515
7690
  }
7516
7691
  };
7517
- function get_each_context$9(ctx, list, i) {
7692
+ function get_each_context$a(ctx, list, i) {
7518
7693
  const child_ctx = ctx.slice();
7519
7694
  child_ctx[16] = list[i];
7520
7695
  return child_ctx;
7521
7696
  }
7522
- function create_else_block_1$3(ctx) {
7697
+ function create_else_block_1$4(ctx) {
7523
7698
  let t;
7524
7699
  return {
7525
7700
  c() {
@@ -7534,7 +7709,7 @@ function create_else_block_1$3(ctx) {
7534
7709
  }
7535
7710
  };
7536
7711
  }
7537
- function create_if_block_2$d(ctx) {
7712
+ function create_if_block_2$e(ctx) {
7538
7713
  let t;
7539
7714
  return {
7540
7715
  c() {
@@ -7549,7 +7724,7 @@ function create_if_block_2$d(ctx) {
7549
7724
  }
7550
7725
  };
7551
7726
  }
7552
- function create_if_block$o(ctx) {
7727
+ function create_if_block$p(ctx) {
7553
7728
  let p;
7554
7729
  let t1;
7555
7730
  let div;
@@ -7564,9 +7739,9 @@ function create_if_block$o(ctx) {
7564
7739
  ctx2[16].provider
7565
7740
  );
7566
7741
  for (let i = 0; i < each_value.length; i += 1) {
7567
- let child_ctx = get_each_context$9(ctx, each_value, i);
7742
+ let child_ctx = get_each_context$a(ctx, each_value, i);
7568
7743
  let key = get_key(child_ctx);
7569
- each_1_lookup.set(key, each_blocks[i] = create_each_block$9(key, child_ctx));
7744
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$a(key, child_ctx));
7570
7745
  }
7571
7746
  return {
7572
7747
  c() {
@@ -7595,7 +7770,7 @@ function create_if_block$o(ctx) {
7595
7770
  210) {
7596
7771
  each_value = /*$app*/
7597
7772
  ctx2[4].authProviders;
7598
- 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);
7773
+ 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);
7599
7774
  }
7600
7775
  },
7601
7776
  d(detaching) {
@@ -7611,7 +7786,7 @@ function create_if_block$o(ctx) {
7611
7786
  }
7612
7787
  };
7613
7788
  }
7614
- function create_else_block$a(ctx) {
7789
+ function create_else_block$b(ctx) {
7615
7790
  let button;
7616
7791
  let img;
7617
7792
  let img_src_value;
@@ -7688,7 +7863,7 @@ function create_else_block$a(ctx) {
7688
7863
  }
7689
7864
  };
7690
7865
  }
7691
- function create_if_block_1$i(ctx) {
7866
+ function create_if_block_1$j(ctx) {
7692
7867
  let button;
7693
7868
  let img;
7694
7869
  let img_src_value;
@@ -7766,7 +7941,7 @@ function create_if_block_1$i(ctx) {
7766
7941
  }
7767
7942
  };
7768
7943
  }
7769
- function create_each_block$9(key_1, ctx) {
7944
+ function create_each_block$a(key_1, ctx) {
7770
7945
  let div;
7771
7946
  let show_if;
7772
7947
  let t;
@@ -7788,8 +7963,8 @@ function create_each_block$9(key_1, ctx) {
7788
7963
  show_if = !!/*member*/
7789
7964
  ctx2[1].auth.providers.some(func2);
7790
7965
  if (show_if)
7791
- return create_if_block_1$i;
7792
- return create_else_block$a;
7966
+ return create_if_block_1$j;
7967
+ return create_else_block$b;
7793
7968
  }
7794
7969
  let current_block_type = select_block_type_1(ctx, -1);
7795
7970
  let if_block = current_block_type(ctx);
@@ -7828,7 +8003,7 @@ function create_each_block$9(key_1, ctx) {
7828
8003
  }
7829
8004
  };
7830
8005
  }
7831
- function create_fragment$Q(ctx) {
8006
+ function create_fragment$S(ctx) {
7832
8007
  let div1;
7833
8008
  let h2;
7834
8009
  let t1;
@@ -7881,14 +8056,14 @@ function create_fragment$Q(ctx) {
7881
8056
  function select_block_type(ctx2, dirty) {
7882
8057
  if (!/*member*/
7883
8058
  ctx2[1].auth.hasPassword)
7884
- return create_if_block_2$d;
7885
- return create_else_block_1$3;
8059
+ return create_if_block_2$e;
8060
+ return create_else_block_1$4;
7886
8061
  }
7887
8062
  let current_block_type = select_block_type(ctx);
7888
8063
  let if_block0 = current_block_type(ctx);
7889
8064
  let if_block1 = (
7890
8065
  /*$app*/
7891
- ctx[4].authProviders.length > 0 && create_if_block$o(ctx)
8066
+ ctx[4].authProviders.length > 0 && create_if_block$p(ctx)
7892
8067
  );
7893
8068
  return {
7894
8069
  c() {
@@ -8014,7 +8189,7 @@ function create_fragment$Q(ctx) {
8014
8189
  if (if_block1) {
8015
8190
  if_block1.p(ctx2, dirty);
8016
8191
  } else {
8017
- if_block1 = create_if_block$o(ctx2);
8192
+ if_block1 = create_if_block$p(ctx2);
8018
8193
  if_block1.c();
8019
8194
  if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
8020
8195
  }
@@ -8060,7 +8235,7 @@ function create_fragment$Q(ctx) {
8060
8235
  }
8061
8236
  };
8062
8237
  }
8063
- function instance$t($$self, $$props, $$invalidate) {
8238
+ function instance$u($$self, $$props, $$invalidate) {
8064
8239
  let $app;
8065
8240
  component_subscribe($$self, AppStore, ($$value) => $$invalidate(4, $app = $$value));
8066
8241
  let { displayProfile } = $$props;
@@ -8169,7 +8344,7 @@ function instance$t($$self, $$props, $$invalidate) {
8169
8344
  var SecurityInfoContent = class extends SvelteComponent {
8170
8345
  constructor(options) {
8171
8346
  super();
8172
- init(this, options, instance$t, create_fragment$Q, safe_not_equal, {
8347
+ init(this, options, instance$u, create_fragment$S, safe_not_equal, {
8173
8348
  displayProfile: 0,
8174
8349
  member: 1,
8175
8350
  emailValue: 2,
@@ -8177,7 +8352,7 @@ var SecurityInfoContent = class extends SvelteComponent {
8177
8352
  });
8178
8353
  }
8179
8354
  };
8180
- function create_else_block$9(ctx) {
8355
+ function create_else_block$a(ctx) {
8181
8356
  let t;
8182
8357
  return {
8183
8358
  c() {
@@ -8192,7 +8367,7 @@ function create_else_block$9(ctx) {
8192
8367
  }
8193
8368
  };
8194
8369
  }
8195
- function create_if_block_1$h(ctx) {
8370
+ function create_if_block_1$i(ctx) {
8196
8371
  let t;
8197
8372
  return {
8198
8373
  c() {
@@ -8207,7 +8382,7 @@ function create_if_block_1$h(ctx) {
8207
8382
  }
8208
8383
  };
8209
8384
  }
8210
- function create_if_block$n(ctx) {
8385
+ function create_if_block$o(ctx) {
8211
8386
  let passwordinput;
8212
8387
  let updating_passwordValue;
8213
8388
  let updating_passwordInputValid;
@@ -8280,7 +8455,7 @@ function create_if_block$n(ctx) {
8280
8455
  }
8281
8456
  };
8282
8457
  }
8283
- function create_fragment$P(ctx) {
8458
+ function create_fragment$R(ctx) {
8284
8459
  let div3;
8285
8460
  let div1;
8286
8461
  let div0;
@@ -8310,14 +8485,14 @@ function create_fragment$P(ctx) {
8310
8485
  function select_block_type(ctx2, dirty) {
8311
8486
  if (!/*member*/
8312
8487
  ctx2[1].auth.hasPassword)
8313
- return create_if_block_1$h;
8314
- return create_else_block$9;
8488
+ return create_if_block_1$i;
8489
+ return create_else_block$a;
8315
8490
  }
8316
8491
  let current_block_type = select_block_type(ctx);
8317
8492
  let if_block0 = current_block_type(ctx);
8318
8493
  let if_block1 = (
8319
8494
  /*member*/
8320
- ctx[1].auth.hasPassword && create_if_block$n(ctx)
8495
+ ctx[1].auth.hasPassword && create_if_block$o(ctx)
8321
8496
  );
8322
8497
  function passwordinput0_passwordValue_binding(value) {
8323
8498
  ctx[13](value);
@@ -8483,7 +8658,7 @@ function create_fragment$P(ctx) {
8483
8658
  transition_in(if_block1, 1);
8484
8659
  }
8485
8660
  } else {
8486
- if_block1 = create_if_block$n(ctx2);
8661
+ if_block1 = create_if_block$o(ctx2);
8487
8662
  if_block1.c();
8488
8663
  transition_in(if_block1, 1);
8489
8664
  if_block1.m(form, t4);
@@ -8562,7 +8737,7 @@ function create_fragment$P(ctx) {
8562
8737
  }
8563
8738
  };
8564
8739
  }
8565
- function instance$s($$self, $$props, $$invalidate) {
8740
+ function instance$t($$self, $$props, $$invalidate) {
8566
8741
  let { displayProfile } = $$props;
8567
8742
  let { profileLoader } = $$props;
8568
8743
  let { member } = $$props;
@@ -8659,7 +8834,7 @@ function instance$s($$self, $$props, $$invalidate) {
8659
8834
  var PasswordInfoContent = class extends SvelteComponent {
8660
8835
  constructor(options) {
8661
8836
  super();
8662
- init(this, options, instance$s, create_fragment$P, safe_not_equal, {
8837
+ init(this, options, instance$t, create_fragment$R, safe_not_equal, {
8663
8838
  displayProfile: 0,
8664
8839
  profileLoader: 9,
8665
8840
  member: 1
@@ -8699,7 +8874,7 @@ function slide(node, { delay = 0, duration = 400, easing = cubicOut, axis = "y"
8699
8874
  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;`
8700
8875
  };
8701
8876
  }
8702
- function create_fragment$O(ctx) {
8877
+ function create_fragment$Q(ctx) {
8703
8878
  let div;
8704
8879
  let loadingicon;
8705
8880
  let div_transition;
@@ -8749,10 +8924,10 @@ function create_fragment$O(ctx) {
8749
8924
  var ProfileLoader = class extends SvelteComponent {
8750
8925
  constructor(options) {
8751
8926
  super();
8752
- init(this, options, null, create_fragment$O, safe_not_equal, {});
8927
+ init(this, options, null, create_fragment$Q, safe_not_equal, {});
8753
8928
  }
8754
8929
  };
8755
- function create_fragment$N(ctx) {
8930
+ function create_fragment$P(ctx) {
8756
8931
  let button;
8757
8932
  let switch_instance0;
8758
8933
  let t0;
@@ -8918,7 +9093,7 @@ function create_fragment$N(ctx) {
8918
9093
  }
8919
9094
  };
8920
9095
  }
8921
- function instance$r($$self, $$props, $$invalidate) {
9096
+ function instance$s($$self, $$props, $$invalidate) {
8922
9097
  const omit_props_names = ["buttonText", "buttonRightIcon", "buttonLeftIcon", "onClick"];
8923
9098
  let $$restProps = compute_rest_props($$props, omit_props_names);
8924
9099
  let $app;
@@ -8949,7 +9124,7 @@ function instance$r($$self, $$props, $$invalidate) {
8949
9124
  var RegularButton = class extends SvelteComponent {
8950
9125
  constructor(options) {
8951
9126
  super();
8952
- init(this, options, instance$r, create_fragment$N, safe_not_equal, {
9127
+ init(this, options, instance$s, create_fragment$P, safe_not_equal, {
8953
9128
  buttonText: 0,
8954
9129
  buttonRightIcon: 1,
8955
9130
  buttonLeftIcon: 2,
@@ -8957,7 +9132,7 @@ var RegularButton = class extends SvelteComponent {
8957
9132
  });
8958
9133
  }
8959
9134
  };
8960
- function create_fragment$M(ctx) {
9135
+ function create_fragment$O(ctx) {
8961
9136
  let button;
8962
9137
  let t;
8963
9138
  let button_class_value;
@@ -9027,7 +9202,7 @@ function create_fragment$M(ctx) {
9027
9202
  }
9028
9203
  };
9029
9204
  }
9030
- function instance$q($$self, $$props, $$invalidate) {
9205
+ function instance$r($$self, $$props, $$invalidate) {
9031
9206
  const omit_props_names = ["buttonText", "onClick"];
9032
9207
  let $$restProps = compute_rest_props($$props, omit_props_names);
9033
9208
  let $app;
@@ -9052,16 +9227,21 @@ function instance$q($$self, $$props, $$invalidate) {
9052
9227
  var TextButton = class extends SvelteComponent {
9053
9228
  constructor(options) {
9054
9229
  super();
9055
- init(this, options, instance$q, create_fragment$M, safe_not_equal, { buttonText: 0, onClick: 1 });
9230
+ init(this, options, instance$r, create_fragment$O, safe_not_equal, { buttonText: 0, onClick: 1 });
9056
9231
  }
9057
9232
  };
9058
- function get_each_context$8(ctx, list, i) {
9233
+ function get_each_context$9(ctx, list, i) {
9059
9234
  const child_ctx = ctx.slice();
9060
- child_ctx[8] = list[i];
9061
- child_ctx[10] = i;
9235
+ child_ctx[11] = list[i];
9236
+ child_ctx[13] = i;
9062
9237
  return child_ctx;
9063
9238
  }
9064
- function create_if_block_2$c(ctx) {
9239
+ function get_each_context_1$4(ctx, list, i) {
9240
+ const child_ctx = ctx.slice();
9241
+ child_ctx[14] = list[i];
9242
+ return child_ctx;
9243
+ }
9244
+ function create_if_block_3$9(ctx) {
9065
9245
  let div;
9066
9246
  let regularbutton;
9067
9247
  let current;
@@ -9069,7 +9249,7 @@ function create_if_block_2$c(ctx) {
9069
9249
  props: {
9070
9250
  onClick: (
9071
9251
  /*launchPortal*/
9072
- ctx[3]
9252
+ ctx[4]
9073
9253
  ),
9074
9254
  class: "ms-modal__regular-button--margin-right ms-modal__regular-button--left-icon",
9075
9255
  buttonText: "Manage Subscriptions",
@@ -9106,18 +9286,18 @@ function create_if_block_2$c(ctx) {
9106
9286
  }
9107
9287
  };
9108
9288
  }
9109
- function create_if_block_1$g(ctx) {
9289
+ function create_if_block_2$d(ctx) {
9110
9290
  let h3;
9111
9291
  let t1;
9112
9292
  let each_1_anchor;
9113
9293
  let current;
9114
- let each_value = (
9115
- /*freePlanConnections*/
9294
+ let each_value_1 = (
9295
+ /*joinedTeams*/
9116
9296
  ctx[1]
9117
9297
  );
9118
9298
  let each_blocks = [];
9119
- for (let i = 0; i < each_value.length; i += 1) {
9120
- each_blocks[i] = create_each_block$8(get_each_context$8(ctx, each_value, i));
9299
+ for (let i = 0; i < each_value_1.length; i += 1) {
9300
+ each_blocks[i] = create_each_block_1$4(get_each_context_1$4(ctx, each_value_1, i));
9121
9301
  }
9122
9302
  const out = (i) => transition_out(each_blocks[i], 1, 1, () => {
9123
9303
  each_blocks[i] = null;
@@ -9125,7 +9305,7 @@ function create_if_block_1$g(ctx) {
9125
9305
  return {
9126
9306
  c() {
9127
9307
  h3 = element("h3");
9128
- h3.textContent = "Free Plans";
9308
+ h3.textContent = "Team Plans";
9129
9309
  t1 = space();
9130
9310
  for (let i = 0; i < each_blocks.length; i += 1) {
9131
9311
  each_blocks[i].c();
@@ -9144,25 +9324,25 @@ function create_if_block_1$g(ctx) {
9144
9324
  current = true;
9145
9325
  },
9146
9326
  p(ctx2, dirty) {
9147
- if (dirty & /*removeFreePlan, freePlanConnections, $app*/
9148
- 22) {
9149
- each_value = /*freePlanConnections*/
9327
+ if (dirty & /*removeMemberFromTeam, joinedTeams, member*/
9328
+ 67) {
9329
+ each_value_1 = /*joinedTeams*/
9150
9330
  ctx2[1];
9151
9331
  let i;
9152
- for (i = 0; i < each_value.length; i += 1) {
9153
- const child_ctx = get_each_context$8(ctx2, each_value, i);
9332
+ for (i = 0; i < each_value_1.length; i += 1) {
9333
+ const child_ctx = get_each_context_1$4(ctx2, each_value_1, i);
9154
9334
  if (each_blocks[i]) {
9155
9335
  each_blocks[i].p(child_ctx, dirty);
9156
9336
  transition_in(each_blocks[i], 1);
9157
9337
  } else {
9158
- each_blocks[i] = create_each_block$8(child_ctx);
9338
+ each_blocks[i] = create_each_block_1$4(child_ctx);
9159
9339
  each_blocks[i].c();
9160
9340
  transition_in(each_blocks[i], 1);
9161
9341
  each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
9162
9342
  }
9163
9343
  }
9164
9344
  group_outros();
9165
- for (i = each_value.length; i < each_blocks.length; i += 1) {
9345
+ for (i = each_value_1.length; i < each_blocks.length; i += 1) {
9166
9346
  out(i);
9167
9347
  }
9168
9348
  check_outros();
@@ -9171,7 +9351,7 @@ function create_if_block_1$g(ctx) {
9171
9351
  i(local) {
9172
9352
  if (current)
9173
9353
  return;
9174
- for (let i = 0; i < each_value.length; i += 1) {
9354
+ for (let i = 0; i < each_value_1.length; i += 1) {
9175
9355
  transition_in(each_blocks[i]);
9176
9356
  }
9177
9357
  current = true;
@@ -9194,40 +9374,30 @@ function create_if_block_1$g(ctx) {
9194
9374
  }
9195
9375
  };
9196
9376
  }
9197
- function create_each_block$8(ctx) {
9377
+ function create_each_block_1$4(ctx) {
9198
9378
  let div1;
9199
9379
  let div0;
9200
9380
  let b;
9201
9381
  let t0_value = (
9202
- /*$app*/
9203
- ctx[2].plans.find(func2).name + ""
9382
+ /*team*/
9383
+ ctx[14].planName + ""
9204
9384
  );
9205
9385
  let t0;
9206
9386
  let t1;
9207
9387
  let textbutton;
9208
9388
  let t2;
9209
9389
  let current;
9210
- function func2(...args) {
9390
+ function func2() {
9211
9391
  return (
9212
9392
  /*func*/
9213
- ctx[6](
9214
- /*memberPlan*/
9215
- ctx[8],
9216
- ...args
9217
- )
9218
- );
9219
- }
9220
- function func_12() {
9221
- return (
9222
- /*func_1*/
9223
- ctx[7](
9224
- /*memberPlan*/
9225
- ctx[8]
9393
+ ctx[8](
9394
+ /*team*/
9395
+ ctx[14]
9226
9396
  )
9227
9397
  );
9228
9398
  }
9229
9399
  textbutton = new TextButton({
9230
- props: { buttonText: "Remove", onClick: func_12 }
9400
+ props: { buttonText: "Leave Team", onClick: func2 }
9231
9401
  });
9232
9402
  return {
9233
9403
  c() {
@@ -9252,14 +9422,14 @@ function create_each_block$8(ctx) {
9252
9422
  },
9253
9423
  p(new_ctx, dirty) {
9254
9424
  ctx = new_ctx;
9255
- if ((!current || dirty & /*$app, freePlanConnections*/
9256
- 6) && t0_value !== (t0_value = /*$app*/
9257
- ctx[2].plans.find(func2).name + ""))
9425
+ if ((!current || dirty & /*joinedTeams*/
9426
+ 2) && t0_value !== (t0_value = /*team*/
9427
+ ctx[14].planName + ""))
9258
9428
  set_data(t0, t0_value);
9259
9429
  const textbutton_changes = {};
9260
- if (dirty & /*freePlanConnections*/
9261
- 2)
9262
- textbutton_changes.onClick = func_12;
9430
+ if (dirty & /*joinedTeams, member*/
9431
+ 3)
9432
+ textbutton_changes.onClick = func2;
9263
9433
  textbutton.$set(textbutton_changes);
9264
9434
  },
9265
9435
  i(local) {
@@ -9279,40 +9449,218 @@ function create_each_block$8(ctx) {
9279
9449
  }
9280
9450
  };
9281
9451
  }
9282
- function create_if_block$m(ctx) {
9283
- let div;
9284
- return {
9285
- c() {
9286
- div = element("div");
9287
- div.textContent = "You currently have no plans.";
9288
- },
9289
- m(target, anchor) {
9290
- insert(target, div, anchor);
9291
- },
9452
+ function create_if_block_1$h(ctx) {
9453
+ let h3;
9454
+ let t1;
9455
+ let each_1_anchor;
9456
+ let current;
9457
+ let each_value = (
9458
+ /*freePlanConnections*/
9459
+ ctx[2]
9460
+ );
9461
+ let each_blocks = [];
9462
+ for (let i = 0; i < each_value.length; i += 1) {
9463
+ each_blocks[i] = create_each_block$9(get_each_context$9(ctx, each_value, i));
9464
+ }
9465
+ const out = (i) => transition_out(each_blocks[i], 1, 1, () => {
9466
+ each_blocks[i] = null;
9467
+ });
9468
+ return {
9469
+ c() {
9470
+ h3 = element("h3");
9471
+ h3.textContent = "Free Plans";
9472
+ t1 = space();
9473
+ for (let i = 0; i < each_blocks.length; i += 1) {
9474
+ each_blocks[i].c();
9475
+ }
9476
+ each_1_anchor = empty();
9477
+ },
9478
+ m(target, anchor) {
9479
+ insert(target, h3, anchor);
9480
+ insert(target, t1, anchor);
9481
+ for (let i = 0; i < each_blocks.length; i += 1) {
9482
+ if (each_blocks[i]) {
9483
+ each_blocks[i].m(target, anchor);
9484
+ }
9485
+ }
9486
+ insert(target, each_1_anchor, anchor);
9487
+ current = true;
9488
+ },
9489
+ p(ctx2, dirty) {
9490
+ if (dirty & /*removeFreePlan, freePlanConnections, $app*/
9491
+ 44) {
9492
+ each_value = /*freePlanConnections*/
9493
+ ctx2[2];
9494
+ let i;
9495
+ for (i = 0; i < each_value.length; i += 1) {
9496
+ const child_ctx = get_each_context$9(ctx2, each_value, i);
9497
+ if (each_blocks[i]) {
9498
+ each_blocks[i].p(child_ctx, dirty);
9499
+ transition_in(each_blocks[i], 1);
9500
+ } else {
9501
+ each_blocks[i] = create_each_block$9(child_ctx);
9502
+ each_blocks[i].c();
9503
+ transition_in(each_blocks[i], 1);
9504
+ each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
9505
+ }
9506
+ }
9507
+ group_outros();
9508
+ for (i = each_value.length; i < each_blocks.length; i += 1) {
9509
+ out(i);
9510
+ }
9511
+ check_outros();
9512
+ }
9513
+ },
9514
+ i(local) {
9515
+ if (current)
9516
+ return;
9517
+ for (let i = 0; i < each_value.length; i += 1) {
9518
+ transition_in(each_blocks[i]);
9519
+ }
9520
+ current = true;
9521
+ },
9522
+ o(local) {
9523
+ each_blocks = each_blocks.filter(Boolean);
9524
+ for (let i = 0; i < each_blocks.length; i += 1) {
9525
+ transition_out(each_blocks[i]);
9526
+ }
9527
+ current = false;
9528
+ },
9529
+ d(detaching) {
9530
+ if (detaching)
9531
+ detach(h3);
9532
+ if (detaching)
9533
+ detach(t1);
9534
+ destroy_each(each_blocks, detaching);
9535
+ if (detaching)
9536
+ detach(each_1_anchor);
9537
+ }
9538
+ };
9539
+ }
9540
+ function create_each_block$9(ctx) {
9541
+ let div1;
9542
+ let div0;
9543
+ let b;
9544
+ let t0_value = (
9545
+ /*$app*/
9546
+ ctx[3].plans.find(func_12).name + ""
9547
+ );
9548
+ let t0;
9549
+ let t1;
9550
+ let textbutton;
9551
+ let t2;
9552
+ let current;
9553
+ function func_12(...args) {
9554
+ return (
9555
+ /*func_1*/
9556
+ ctx[9](
9557
+ /*memberPlan*/
9558
+ ctx[11],
9559
+ ...args
9560
+ )
9561
+ );
9562
+ }
9563
+ function func_22() {
9564
+ return (
9565
+ /*func_2*/
9566
+ ctx[10](
9567
+ /*memberPlan*/
9568
+ ctx[11]
9569
+ )
9570
+ );
9571
+ }
9572
+ textbutton = new TextButton({
9573
+ props: { buttonText: "Remove", onClick: func_22 }
9574
+ });
9575
+ return {
9576
+ c() {
9577
+ div1 = element("div");
9578
+ div0 = element("div");
9579
+ b = element("b");
9580
+ t0 = text(t0_value);
9581
+ t1 = space();
9582
+ create_component(textbutton.$$.fragment);
9583
+ t2 = space();
9584
+ attr(div1, "class", "ms-modal__card");
9585
+ },
9586
+ m(target, anchor) {
9587
+ insert(target, div1, anchor);
9588
+ append(div1, div0);
9589
+ append(div0, b);
9590
+ append(b, t0);
9591
+ append(div1, t1);
9592
+ mount_component(textbutton, div1, null);
9593
+ append(div1, t2);
9594
+ current = true;
9595
+ },
9596
+ p(new_ctx, dirty) {
9597
+ ctx = new_ctx;
9598
+ if ((!current || dirty & /*$app, freePlanConnections*/
9599
+ 12) && t0_value !== (t0_value = /*$app*/
9600
+ ctx[3].plans.find(func_12).name + ""))
9601
+ set_data(t0, t0_value);
9602
+ const textbutton_changes = {};
9603
+ if (dirty & /*freePlanConnections*/
9604
+ 4)
9605
+ textbutton_changes.onClick = func_22;
9606
+ textbutton.$set(textbutton_changes);
9607
+ },
9608
+ i(local) {
9609
+ if (current)
9610
+ return;
9611
+ transition_in(textbutton.$$.fragment, local);
9612
+ current = true;
9613
+ },
9614
+ o(local) {
9615
+ transition_out(textbutton.$$.fragment, local);
9616
+ current = false;
9617
+ },
9618
+ d(detaching) {
9619
+ if (detaching)
9620
+ detach(div1);
9621
+ destroy_component(textbutton);
9622
+ }
9623
+ };
9624
+ }
9625
+ function create_if_block$n(ctx) {
9626
+ let div;
9627
+ return {
9628
+ c() {
9629
+ div = element("div");
9630
+ div.textContent = "You currently have free no plans.";
9631
+ },
9632
+ m(target, anchor) {
9633
+ insert(target, div, anchor);
9634
+ },
9292
9635
  d(detaching) {
9293
9636
  if (detaching)
9294
9637
  detach(div);
9295
9638
  }
9296
9639
  };
9297
9640
  }
9298
- function create_fragment$L(ctx) {
9641
+ function create_fragment$N(ctx) {
9299
9642
  let div;
9300
9643
  let t1;
9301
9644
  let t2;
9302
9645
  let t3;
9303
- let if_block2_anchor;
9646
+ let t4;
9647
+ let if_block3_anchor;
9304
9648
  let current;
9305
9649
  let if_block0 = (
9306
9650
  /*member*/
9307
- ctx[0].stripeCustomerId && create_if_block_2$c(ctx)
9651
+ ctx[0].stripeCustomerId && create_if_block_3$9(ctx)
9308
9652
  );
9309
9653
  let if_block1 = (
9654
+ /*joinedTeams*/
9655
+ ctx[1].length > 0 && create_if_block_2$d(ctx)
9656
+ );
9657
+ let if_block2 = (
9310
9658
  /*freePlanConnections*/
9311
- ctx[1].length > 0 && create_if_block_1$g(ctx)
9659
+ ctx[2].length > 0 && create_if_block_1$h(ctx)
9312
9660
  );
9313
- let if_block2 = !/*member*/
9661
+ let if_block3 = !/*member*/
9314
9662
  ctx[0].stripeCustomerId && /*freePlanConnections*/
9315
- ctx[1].length === 0 && create_if_block$m();
9663
+ ctx[2].length === 0 && create_if_block$n();
9316
9664
  return {
9317
9665
  c() {
9318
9666
  div = element("div");
@@ -9326,7 +9674,10 @@ function create_fragment$L(ctx) {
9326
9674
  t3 = space();
9327
9675
  if (if_block2)
9328
9676
  if_block2.c();
9329
- if_block2_anchor = empty();
9677
+ t4 = space();
9678
+ if (if_block3)
9679
+ if_block3.c();
9680
+ if_block3_anchor = empty();
9330
9681
  attr(div, "class", "ms-modal__title-container");
9331
9682
  },
9332
9683
  m(target, anchor) {
@@ -9335,166 +9686,1288 @@ function create_fragment$L(ctx) {
9335
9686
  if (if_block0)
9336
9687
  if_block0.m(target, anchor);
9337
9688
  insert(target, t2, anchor);
9338
- if (if_block1)
9339
- if_block1.m(target, anchor);
9340
- insert(target, t3, anchor);
9341
- if (if_block2)
9342
- if_block2.m(target, anchor);
9343
- insert(target, if_block2_anchor, anchor);
9689
+ if (if_block1)
9690
+ if_block1.m(target, anchor);
9691
+ insert(target, t3, anchor);
9692
+ if (if_block2)
9693
+ if_block2.m(target, anchor);
9694
+ insert(target, t4, anchor);
9695
+ if (if_block3)
9696
+ if_block3.m(target, anchor);
9697
+ insert(target, if_block3_anchor, anchor);
9698
+ current = true;
9699
+ },
9700
+ p(ctx2, [dirty]) {
9701
+ if (
9702
+ /*member*/
9703
+ ctx2[0].stripeCustomerId
9704
+ ) {
9705
+ if (if_block0) {
9706
+ if_block0.p(ctx2, dirty);
9707
+ if (dirty & /*member*/
9708
+ 1) {
9709
+ transition_in(if_block0, 1);
9710
+ }
9711
+ } else {
9712
+ if_block0 = create_if_block_3$9(ctx2);
9713
+ if_block0.c();
9714
+ transition_in(if_block0, 1);
9715
+ if_block0.m(t2.parentNode, t2);
9716
+ }
9717
+ } else if (if_block0) {
9718
+ group_outros();
9719
+ transition_out(if_block0, 1, 1, () => {
9720
+ if_block0 = null;
9721
+ });
9722
+ check_outros();
9723
+ }
9724
+ if (
9725
+ /*joinedTeams*/
9726
+ ctx2[1].length > 0
9727
+ ) {
9728
+ if (if_block1) {
9729
+ if_block1.p(ctx2, dirty);
9730
+ if (dirty & /*joinedTeams*/
9731
+ 2) {
9732
+ transition_in(if_block1, 1);
9733
+ }
9734
+ } else {
9735
+ if_block1 = create_if_block_2$d(ctx2);
9736
+ if_block1.c();
9737
+ transition_in(if_block1, 1);
9738
+ if_block1.m(t3.parentNode, t3);
9739
+ }
9740
+ } else if (if_block1) {
9741
+ group_outros();
9742
+ transition_out(if_block1, 1, 1, () => {
9743
+ if_block1 = null;
9744
+ });
9745
+ check_outros();
9746
+ }
9747
+ if (
9748
+ /*freePlanConnections*/
9749
+ ctx2[2].length > 0
9750
+ ) {
9751
+ if (if_block2) {
9752
+ if_block2.p(ctx2, dirty);
9753
+ if (dirty & /*freePlanConnections*/
9754
+ 4) {
9755
+ transition_in(if_block2, 1);
9756
+ }
9757
+ } else {
9758
+ if_block2 = create_if_block_1$h(ctx2);
9759
+ if_block2.c();
9760
+ transition_in(if_block2, 1);
9761
+ if_block2.m(t4.parentNode, t4);
9762
+ }
9763
+ } else if (if_block2) {
9764
+ group_outros();
9765
+ transition_out(if_block2, 1, 1, () => {
9766
+ if_block2 = null;
9767
+ });
9768
+ check_outros();
9769
+ }
9770
+ if (!/*member*/
9771
+ ctx2[0].stripeCustomerId && /*freePlanConnections*/
9772
+ ctx2[2].length === 0) {
9773
+ if (if_block3)
9774
+ ;
9775
+ else {
9776
+ if_block3 = create_if_block$n();
9777
+ if_block3.c();
9778
+ if_block3.m(if_block3_anchor.parentNode, if_block3_anchor);
9779
+ }
9780
+ } else if (if_block3) {
9781
+ if_block3.d(1);
9782
+ if_block3 = null;
9783
+ }
9784
+ },
9785
+ i(local) {
9786
+ if (current)
9787
+ return;
9788
+ transition_in(if_block0);
9789
+ transition_in(if_block1);
9790
+ transition_in(if_block2);
9791
+ current = true;
9792
+ },
9793
+ o(local) {
9794
+ transition_out(if_block0);
9795
+ transition_out(if_block1);
9796
+ transition_out(if_block2);
9797
+ current = false;
9798
+ },
9799
+ d(detaching) {
9800
+ if (detaching)
9801
+ detach(div);
9802
+ if (detaching)
9803
+ detach(t1);
9804
+ if (if_block0)
9805
+ if_block0.d(detaching);
9806
+ if (detaching)
9807
+ detach(t2);
9808
+ if (if_block1)
9809
+ if_block1.d(detaching);
9810
+ if (detaching)
9811
+ detach(t3);
9812
+ if (if_block2)
9813
+ if_block2.d(detaching);
9814
+ if (detaching)
9815
+ detach(t4);
9816
+ if (if_block3)
9817
+ if_block3.d(detaching);
9818
+ if (detaching)
9819
+ detach(if_block3_anchor);
9820
+ }
9821
+ };
9822
+ }
9823
+ function instance$q($$self, $$props, $$invalidate) {
9824
+ let freePlanConnections;
9825
+ let joinedTeams;
9826
+ let $app;
9827
+ component_subscribe($$self, AppStore, ($$value) => $$invalidate(3, $app = $$value));
9828
+ let { profileLoader } = $$props;
9829
+ let { member } = $$props;
9830
+ function launchPortal(e) {
9831
+ return __async(this, null, function* () {
9832
+ $$invalidate(7, profileLoader = true);
9833
+ yield window.$memberstackDom.launchStripeCustomerPortal({ priceIds: [], autoRedirect: true });
9834
+ });
9835
+ }
9836
+ function removeFreePlan(planId) {
9837
+ return __async(this, null, function* () {
9838
+ $$invalidate(7, profileLoader = true);
9839
+ try {
9840
+ yield window.$memberstackDom.removePlan({ planId });
9841
+ $$invalidate(0, member.planConnections = member.planConnections.filter((plan) => plan.planId !== planId), member);
9842
+ } catch (err) {
9843
+ console.log(err);
9844
+ window.$memberstackDom._showMessage(err.message, true);
9845
+ } finally {
9846
+ $$invalidate(7, profileLoader = false);
9847
+ }
9848
+ });
9849
+ }
9850
+ function removeMemberFromTeam(teamId, memberId) {
9851
+ return __async(this, null, function* () {
9852
+ try {
9853
+ yield window.$memberstackDom.removeMemberFromTeam({ teamId, memberId });
9854
+ $$invalidate(0, member.teams.joinedTeams = member.teams.joinedTeams.filter((t) => t.teamId !== teamId), member);
9855
+ } catch (err) {
9856
+ window.$memberstackDom._showMessage(err.message, true);
9857
+ }
9858
+ });
9859
+ }
9860
+ const func2 = (team) => removeMemberFromTeam(team.teamId, member.id);
9861
+ const func_12 = (memberPlan, plan) => plan.id === memberPlan.planId;
9862
+ const func_22 = (memberPlan) => removeFreePlan(memberPlan.planId);
9863
+ $$self.$$set = ($$props2) => {
9864
+ if ("profileLoader" in $$props2)
9865
+ $$invalidate(7, profileLoader = $$props2.profileLoader);
9866
+ if ("member" in $$props2)
9867
+ $$invalidate(0, member = $$props2.member);
9868
+ };
9869
+ $$self.$$.update = () => {
9870
+ var _a;
9871
+ if ($$self.$$.dirty & /*member*/
9872
+ 1) {
9873
+ $$invalidate(2, freePlanConnections = member.planConnections.filter((plan) => plan.type === "FREE"));
9874
+ }
9875
+ if ($$self.$$.dirty & /*member*/
9876
+ 1) {
9877
+ $$invalidate(1, joinedTeams = (_a = member.teams) == null ? void 0 : _a.joinedTeams);
9878
+ }
9879
+ };
9880
+ return [
9881
+ member,
9882
+ joinedTeams,
9883
+ freePlanConnections,
9884
+ $app,
9885
+ launchPortal,
9886
+ removeFreePlan,
9887
+ removeMemberFromTeam,
9888
+ profileLoader,
9889
+ func2,
9890
+ func_12,
9891
+ func_22
9892
+ ];
9893
+ }
9894
+ var PlansInfoContent = class extends SvelteComponent {
9895
+ constructor(options) {
9896
+ super();
9897
+ init(this, options, instance$q, create_fragment$N, safe_not_equal, { profileLoader: 7, member: 0 });
9898
+ }
9899
+ };
9900
+ function add_css$k(target) {
9901
+ append_styles(target, "svelte-c6ihgv", "svg.svelte-c6ihgv{fill:currentColor}");
9902
+ }
9903
+ function create_fragment$M(ctx) {
9904
+ let svg;
9905
+ let path;
9906
+ return {
9907
+ c() {
9908
+ svg = svg_element("svg");
9909
+ path = svg_element("path");
9910
+ 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");
9911
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
9912
+ attr(svg, "height", "20");
9913
+ attr(svg, "viewBox", "0 -960 960 960");
9914
+ attr(svg, "width", "20");
9915
+ attr(svg, "class", "svelte-c6ihgv");
9916
+ },
9917
+ m(target, anchor) {
9918
+ insert(target, svg, anchor);
9919
+ append(svg, path);
9920
+ },
9921
+ p: noop,
9922
+ i: noop,
9923
+ o: noop,
9924
+ d(detaching) {
9925
+ if (detaching)
9926
+ detach(svg);
9927
+ }
9928
+ };
9929
+ }
9930
+ var CopyIcon$1 = class extends SvelteComponent {
9931
+ constructor(options) {
9932
+ super();
9933
+ init(this, options, null, create_fragment$M, safe_not_equal, {}, add_css$k);
9934
+ }
9935
+ };
9936
+ function create_fragment$L(ctx) {
9937
+ let svg;
9938
+ let path;
9939
+ return {
9940
+ c() {
9941
+ svg = svg_element("svg");
9942
+ path = svg_element("path");
9943
+ attr(path, "fill", "currentColor");
9944
+ 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");
9945
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
9946
+ attr(svg, "height", "24");
9947
+ attr(svg, "viewBox", "0 -960 960 960");
9948
+ attr(svg, "width", "24");
9949
+ },
9950
+ m(target, anchor) {
9951
+ insert(target, svg, anchor);
9952
+ append(svg, path);
9953
+ },
9954
+ p: noop,
9955
+ i: noop,
9956
+ o: noop,
9957
+ d(detaching) {
9958
+ if (detaching)
9959
+ detach(svg);
9960
+ }
9961
+ };
9962
+ }
9963
+ var WarningIcon$1 = class extends SvelteComponent {
9964
+ constructor(options) {
9965
+ super();
9966
+ init(this, options, null, create_fragment$L, safe_not_equal, {});
9967
+ }
9968
+ };
9969
+ function add_css$j(target) {
9970
+ 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}");
9971
+ }
9972
+ function get_each_context$8(ctx, list, i) {
9973
+ const child_ctx = ctx.slice();
9974
+ child_ctx[15] = list[i];
9975
+ return child_ctx;
9976
+ }
9977
+ function create_if_block_5$5(ctx) {
9978
+ var _a, _b;
9979
+ let div;
9980
+ let t0_value = (
9981
+ /*teamData*/
9982
+ ((_a = ctx[0]) == null ? void 0 : _a.members.length) + ""
9983
+ );
9984
+ let t0;
9985
+ let t1;
9986
+ let t2_value = (
9987
+ /*teamData*/
9988
+ ((_b = ctx[0]) == null ? void 0 : _b.maxTeamMembers) + ""
9989
+ );
9990
+ let t2;
9991
+ let t3;
9992
+ return {
9993
+ c() {
9994
+ div = element("div");
9995
+ t0 = text(t0_value);
9996
+ t1 = text("/");
9997
+ t2 = text(t2_value);
9998
+ t3 = text(" Seats");
9999
+ attr(div, "class", "ms-modal__title--seats svelte-1haqb7b");
10000
+ },
10001
+ m(target, anchor) {
10002
+ insert(target, div, anchor);
10003
+ append(div, t0);
10004
+ append(div, t1);
10005
+ append(div, t2);
10006
+ append(div, t3);
10007
+ },
10008
+ p(ctx2, dirty) {
10009
+ var _a2, _b2;
10010
+ if (dirty & /*teamData*/
10011
+ 1 && t0_value !== (t0_value = /*teamData*/
10012
+ ((_a2 = ctx2[0]) == null ? void 0 : _a2.members.length) + ""))
10013
+ set_data(t0, t0_value);
10014
+ if (dirty & /*teamData*/
10015
+ 1 && t2_value !== (t2_value = /*teamData*/
10016
+ ((_b2 = ctx2[0]) == null ? void 0 : _b2.maxTeamMembers) + ""))
10017
+ set_data(t2, t2_value);
10018
+ },
10019
+ d(detaching) {
10020
+ if (detaching)
10021
+ detach(div);
10022
+ }
10023
+ };
10024
+ }
10025
+ function create_catch_block(ctx) {
10026
+ return {
10027
+ c: noop,
10028
+ m: noop,
10029
+ p: noop,
10030
+ i: noop,
10031
+ o: noop,
10032
+ d: noop
10033
+ };
10034
+ }
10035
+ function create_then_block(ctx) {
10036
+ let current_block_type_index;
10037
+ let if_block0;
10038
+ let t;
10039
+ let if_block1_anchor;
10040
+ let current;
10041
+ const if_block_creators = [create_if_block_4$6, create_else_block_2$1];
10042
+ const if_blocks = [];
10043
+ function select_block_type(ctx2, dirty) {
10044
+ var _a, _b;
10045
+ if (
10046
+ /*teamData*/
10047
+ ((_a = ctx2[0]) == null ? void 0 : _a.members.length) < /*teamData*/
10048
+ ((_b = ctx2[0]) == null ? void 0 : _b.maxTeamMembers)
10049
+ )
10050
+ return 0;
10051
+ return 1;
10052
+ }
10053
+ current_block_type_index = select_block_type(ctx);
10054
+ if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
10055
+ let if_block1 = (
10056
+ /*teamData*/
10057
+ ctx[0] && /*teamData*/
10058
+ ctx[0].members.length > 0 && create_if_block$m(ctx)
10059
+ );
10060
+ return {
10061
+ c() {
10062
+ if_block0.c();
10063
+ t = space();
10064
+ if (if_block1)
10065
+ if_block1.c();
10066
+ if_block1_anchor = empty();
10067
+ },
10068
+ m(target, anchor) {
10069
+ if_blocks[current_block_type_index].m(target, anchor);
10070
+ insert(target, t, anchor);
10071
+ if (if_block1)
10072
+ if_block1.m(target, anchor);
10073
+ insert(target, if_block1_anchor, anchor);
10074
+ current = true;
10075
+ },
10076
+ p(ctx2, dirty) {
10077
+ let previous_block_index = current_block_type_index;
10078
+ current_block_type_index = select_block_type(ctx2);
10079
+ if (current_block_type_index === previous_block_index) {
10080
+ if_blocks[current_block_type_index].p(ctx2, dirty);
10081
+ } else {
10082
+ group_outros();
10083
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
10084
+ if_blocks[previous_block_index] = null;
10085
+ });
10086
+ check_outros();
10087
+ if_block0 = if_blocks[current_block_type_index];
10088
+ if (!if_block0) {
10089
+ if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
10090
+ if_block0.c();
10091
+ } else {
10092
+ if_block0.p(ctx2, dirty);
10093
+ }
10094
+ transition_in(if_block0, 1);
10095
+ if_block0.m(t.parentNode, t);
10096
+ }
10097
+ if (
10098
+ /*teamData*/
10099
+ ctx2[0] && /*teamData*/
10100
+ ctx2[0].members.length > 0
10101
+ ) {
10102
+ if (if_block1) {
10103
+ if_block1.p(ctx2, dirty);
10104
+ if (dirty & /*teamData*/
10105
+ 1) {
10106
+ transition_in(if_block1, 1);
10107
+ }
10108
+ } else {
10109
+ if_block1 = create_if_block$m(ctx2);
10110
+ if_block1.c();
10111
+ transition_in(if_block1, 1);
10112
+ if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
10113
+ }
10114
+ } else if (if_block1) {
10115
+ group_outros();
10116
+ transition_out(if_block1, 1, 1, () => {
10117
+ if_block1 = null;
10118
+ });
10119
+ check_outros();
10120
+ }
10121
+ },
10122
+ i(local) {
10123
+ if (current)
10124
+ return;
10125
+ transition_in(if_block0);
10126
+ transition_in(if_block1);
10127
+ current = true;
10128
+ },
10129
+ o(local) {
10130
+ transition_out(if_block0);
10131
+ transition_out(if_block1);
10132
+ current = false;
10133
+ },
10134
+ d(detaching) {
10135
+ if_blocks[current_block_type_index].d(detaching);
10136
+ if (detaching)
10137
+ detach(t);
10138
+ if (if_block1)
10139
+ if_block1.d(detaching);
10140
+ if (detaching)
10141
+ detach(if_block1_anchor);
10142
+ }
10143
+ };
10144
+ }
10145
+ function create_else_block_2$1(ctx) {
10146
+ let div;
10147
+ let warningicon;
10148
+ let t0;
10149
+ let span;
10150
+ let current;
10151
+ warningicon = new WarningIcon$1({});
10152
+ return {
10153
+ c() {
10154
+ div = element("div");
10155
+ create_component(warningicon.$$.fragment);
10156
+ t0 = space();
10157
+ span = element("span");
10158
+ span.textContent = "Your team is growing! Upgrade your plan for more seats.";
10159
+ attr(span, "class", "ms-modal__upgrade-warning-text svelte-1haqb7b");
10160
+ attr(div, "class", "ms-modal__upgrade-warning svelte-1haqb7b");
10161
+ },
10162
+ m(target, anchor) {
10163
+ insert(target, div, anchor);
10164
+ mount_component(warningicon, div, null);
10165
+ append(div, t0);
10166
+ append(div, span);
10167
+ current = true;
10168
+ },
10169
+ p: noop,
10170
+ i(local) {
10171
+ if (current)
10172
+ return;
10173
+ transition_in(warningicon.$$.fragment, local);
10174
+ current = true;
10175
+ },
10176
+ o(local) {
10177
+ transition_out(warningicon.$$.fragment, local);
10178
+ current = false;
10179
+ },
10180
+ d(detaching) {
10181
+ if (detaching)
10182
+ detach(div);
10183
+ destroy_component(warningicon);
10184
+ }
10185
+ };
10186
+ }
10187
+ function create_if_block_4$6(ctx) {
10188
+ let div1;
10189
+ let div0;
10190
+ let input;
10191
+ let t0;
10192
+ let button0;
10193
+ let copyicon;
10194
+ let t1;
10195
+ let t2;
10196
+ let t3;
10197
+ let button1;
10198
+ let current;
10199
+ let mounted;
10200
+ let dispose;
10201
+ copyicon = new CopyIcon$1({});
10202
+ return {
10203
+ c() {
10204
+ div1 = element("div");
10205
+ div0 = element("div");
10206
+ input = element("input");
10207
+ t0 = space();
10208
+ button0 = element("button");
10209
+ create_component(copyicon.$$.fragment);
10210
+ t1 = space();
10211
+ t2 = text(
10212
+ /*copyInviteText*/
10213
+ ctx[2]
10214
+ );
10215
+ t3 = space();
10216
+ button1 = element("button");
10217
+ button1.textContent = "Regenerate Invite Link";
10218
+ attr(input, "type", "text");
10219
+ attr(input, "class", "ms-modal__invite-input svelte-1haqb7b");
10220
+ input.value = /*inviteLink*/
10221
+ ctx[3];
10222
+ input.readOnly = true;
10223
+ attr(button0, "class", "ms-modal__invite-copy-btn svelte-1haqb7b");
10224
+ attr(div0, "class", "ms-modal__invite-input-group svelte-1haqb7b");
10225
+ attr(button1, "class", "ms-modal__invite-regenerate-btn svelte-1haqb7b");
10226
+ attr(div1, "class", "ms-modal__invite-group svelte-1haqb7b");
10227
+ },
10228
+ m(target, anchor) {
10229
+ insert(target, div1, anchor);
10230
+ append(div1, div0);
10231
+ append(div0, input);
10232
+ append(div0, t0);
10233
+ append(div0, button0);
10234
+ mount_component(copyicon, button0, null);
10235
+ append(button0, t1);
10236
+ append(button0, t2);
10237
+ append(div1, t3);
10238
+ append(div1, button1);
10239
+ current = true;
10240
+ if (!mounted) {
10241
+ dispose = [
10242
+ listen(
10243
+ button0,
10244
+ "click",
10245
+ /*click_handler*/
10246
+ ctx[10]
10247
+ ),
10248
+ listen(
10249
+ button1,
10250
+ "click",
10251
+ /*click_handler_1*/
10252
+ ctx[11]
10253
+ )
10254
+ ];
10255
+ mounted = true;
10256
+ }
10257
+ },
10258
+ p(ctx2, dirty) {
10259
+ if (!current || dirty & /*inviteLink*/
10260
+ 8 && input.value !== /*inviteLink*/
10261
+ ctx2[3]) {
10262
+ input.value = /*inviteLink*/
10263
+ ctx2[3];
10264
+ }
10265
+ if (!current || dirty & /*copyInviteText*/
10266
+ 4)
10267
+ set_data(
10268
+ t2,
10269
+ /*copyInviteText*/
10270
+ ctx2[2]
10271
+ );
10272
+ },
10273
+ i(local) {
10274
+ if (current)
10275
+ return;
10276
+ transition_in(copyicon.$$.fragment, local);
10277
+ current = true;
10278
+ },
10279
+ o(local) {
10280
+ transition_out(copyicon.$$.fragment, local);
10281
+ current = false;
10282
+ },
10283
+ d(detaching) {
10284
+ if (detaching)
10285
+ detach(div1);
10286
+ destroy_component(copyicon);
10287
+ mounted = false;
10288
+ run_all(dispose);
10289
+ }
10290
+ };
10291
+ }
10292
+ function create_if_block$m(ctx) {
10293
+ let div;
10294
+ let each_blocks = [];
10295
+ let each_1_lookup = /* @__PURE__ */ new Map();
10296
+ let current;
10297
+ let each_value = (
10298
+ /*teamData*/
10299
+ ctx[0].members
10300
+ );
10301
+ const get_key = (ctx2) => (
10302
+ /*m*/
10303
+ ctx2[15].member.id
10304
+ );
10305
+ for (let i = 0; i < each_value.length; i += 1) {
10306
+ let child_ctx = get_each_context$8(ctx, each_value, i);
10307
+ let key = get_key(child_ctx);
10308
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$8(key, child_ctx));
10309
+ }
10310
+ return {
10311
+ c() {
10312
+ div = element("div");
10313
+ for (let i = 0; i < each_blocks.length; i += 1) {
10314
+ each_blocks[i].c();
10315
+ }
10316
+ attr(div, "class", "ms-modal__team-members");
10317
+ },
10318
+ m(target, anchor) {
10319
+ insert(target, div, anchor);
10320
+ for (let i = 0; i < each_blocks.length; i += 1) {
10321
+ if (each_blocks[i]) {
10322
+ each_blocks[i].m(div, null);
10323
+ }
10324
+ }
10325
+ current = true;
10326
+ },
10327
+ p(ctx2, dirty) {
10328
+ if (dirty & /*showRemoveButton, teamData, removeMemberFromTeam*/
10329
+ 81) {
10330
+ each_value = /*teamData*/
10331
+ ctx2[0].members;
10332
+ group_outros();
10333
+ 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);
10334
+ check_outros();
10335
+ }
10336
+ },
10337
+ i(local) {
10338
+ if (current)
10339
+ return;
10340
+ for (let i = 0; i < each_value.length; i += 1) {
10341
+ transition_in(each_blocks[i]);
10342
+ }
10343
+ current = true;
10344
+ },
10345
+ o(local) {
10346
+ for (let i = 0; i < each_blocks.length; i += 1) {
10347
+ transition_out(each_blocks[i]);
10348
+ }
10349
+ current = false;
10350
+ },
10351
+ d(detaching) {
10352
+ if (detaching)
10353
+ detach(div);
10354
+ for (let i = 0; i < each_blocks.length; i += 1) {
10355
+ each_blocks[i].d();
10356
+ }
10357
+ }
10358
+ };
10359
+ }
10360
+ function create_else_block_1$3(ctx) {
10361
+ let img;
10362
+ let img_src_value;
10363
+ return {
10364
+ c() {
10365
+ img = element("img");
10366
+ attr(img, "class", "ms-modal__team-member-image svelte-1haqb7b");
10367
+ if (!src_url_equal(img.src, img_src_value = /*m*/
10368
+ ctx[15].member.profileImage))
10369
+ attr(img, "src", img_src_value);
10370
+ attr(img, "alt", "Member Profile Avatar");
10371
+ },
10372
+ m(target, anchor) {
10373
+ insert(target, img, anchor);
10374
+ },
10375
+ p(ctx2, dirty) {
10376
+ if (dirty & /*teamData*/
10377
+ 1 && !src_url_equal(img.src, img_src_value = /*m*/
10378
+ ctx2[15].member.profileImage)) {
10379
+ attr(img, "src", img_src_value);
10380
+ }
10381
+ },
10382
+ d(detaching) {
10383
+ if (detaching)
10384
+ detach(img);
10385
+ }
10386
+ };
10387
+ }
10388
+ function create_if_block_3$8(ctx) {
10389
+ let div;
10390
+ let t_value = (
10391
+ /*m*/
10392
+ ctx[15].member.auth.email[0].toUpperCase() + ""
10393
+ );
10394
+ let t;
10395
+ return {
10396
+ c() {
10397
+ div = element("div");
10398
+ t = text(t_value);
10399
+ attr(div, "class", "ms-modal__team-member-image--initial svelte-1haqb7b");
10400
+ },
10401
+ m(target, anchor) {
10402
+ insert(target, div, anchor);
10403
+ append(div, t);
10404
+ },
10405
+ p(ctx2, dirty) {
10406
+ if (dirty & /*teamData*/
10407
+ 1 && t_value !== (t_value = /*m*/
10408
+ ctx2[15].member.auth.email[0].toUpperCase() + ""))
10409
+ set_data(t, t_value);
10410
+ },
10411
+ d(detaching) {
10412
+ if (detaching)
10413
+ detach(div);
10414
+ }
10415
+ };
10416
+ }
10417
+ function create_if_block_1$g(ctx) {
10418
+ let current_block_type_index;
10419
+ let if_block;
10420
+ let if_block_anchor;
10421
+ let current;
10422
+ const if_block_creators = [create_if_block_2$c, create_else_block$9];
10423
+ const if_blocks = [];
10424
+ function select_block_type_2(ctx2, dirty) {
10425
+ if (!/*m*/
10426
+ ctx2[15].showRemoveButton)
10427
+ return 0;
10428
+ return 1;
10429
+ }
10430
+ current_block_type_index = select_block_type_2(ctx);
10431
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
10432
+ return {
10433
+ c() {
10434
+ if_block.c();
10435
+ if_block_anchor = empty();
10436
+ },
10437
+ m(target, anchor) {
10438
+ if_blocks[current_block_type_index].m(target, anchor);
10439
+ insert(target, if_block_anchor, anchor);
10440
+ current = true;
10441
+ },
10442
+ p(ctx2, dirty) {
10443
+ let previous_block_index = current_block_type_index;
10444
+ current_block_type_index = select_block_type_2(ctx2);
10445
+ if (current_block_type_index === previous_block_index) {
10446
+ if_blocks[current_block_type_index].p(ctx2, dirty);
10447
+ } else {
10448
+ group_outros();
10449
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
10450
+ if_blocks[previous_block_index] = null;
10451
+ });
10452
+ check_outros();
10453
+ if_block = if_blocks[current_block_type_index];
10454
+ if (!if_block) {
10455
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
10456
+ if_block.c();
10457
+ } else {
10458
+ if_block.p(ctx2, dirty);
10459
+ }
10460
+ transition_in(if_block, 1);
10461
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
10462
+ }
10463
+ },
10464
+ i(local) {
10465
+ if (current)
10466
+ return;
10467
+ transition_in(if_block);
10468
+ current = true;
10469
+ },
10470
+ o(local) {
10471
+ transition_out(if_block);
10472
+ current = false;
10473
+ },
10474
+ d(detaching) {
10475
+ if_blocks[current_block_type_index].d(detaching);
10476
+ if (detaching)
10477
+ detach(if_block_anchor);
10478
+ }
10479
+ };
10480
+ }
10481
+ function create_else_block$9(ctx) {
10482
+ let button;
10483
+ let span;
10484
+ let t1;
10485
+ let closeicon;
10486
+ let current;
10487
+ let mounted;
10488
+ let dispose;
10489
+ closeicon = new CloseIcon({});
10490
+ function click_handler_3() {
10491
+ return (
10492
+ /*click_handler_3*/
10493
+ ctx[13](
10494
+ /*m*/
10495
+ ctx[15]
10496
+ )
10497
+ );
10498
+ }
10499
+ return {
10500
+ c() {
10501
+ button = element("button");
10502
+ span = element("span");
10503
+ span.textContent = "Are you sure?";
10504
+ t1 = space();
10505
+ create_component(closeicon.$$.fragment);
10506
+ attr(span, "class", "ms-modal__team-member-remove-text svelte-1haqb7b");
10507
+ attr(button, "class", "ms-modal__team-member-remove-btn svelte-1haqb7b");
10508
+ },
10509
+ m(target, anchor) {
10510
+ insert(target, button, anchor);
10511
+ append(button, span);
10512
+ append(button, t1);
10513
+ mount_component(closeicon, button, null);
10514
+ current = true;
10515
+ if (!mounted) {
10516
+ dispose = listen(button, "click", click_handler_3);
10517
+ mounted = true;
10518
+ }
10519
+ },
10520
+ p(new_ctx, dirty) {
10521
+ ctx = new_ctx;
10522
+ },
10523
+ i(local) {
10524
+ if (current)
10525
+ return;
10526
+ transition_in(closeicon.$$.fragment, local);
10527
+ current = true;
10528
+ },
10529
+ o(local) {
10530
+ transition_out(closeicon.$$.fragment, local);
10531
+ current = false;
10532
+ },
10533
+ d(detaching) {
10534
+ if (detaching)
10535
+ detach(button);
10536
+ destroy_component(closeicon);
10537
+ mounted = false;
10538
+ dispose();
10539
+ }
10540
+ };
10541
+ }
10542
+ function create_if_block_2$c(ctx) {
10543
+ let button;
10544
+ let closeicon;
10545
+ let current;
10546
+ let mounted;
10547
+ let dispose;
10548
+ closeicon = new CloseIcon({});
10549
+ function click_handler_2() {
10550
+ return (
10551
+ /*click_handler_2*/
10552
+ ctx[12](
10553
+ /*m*/
10554
+ ctx[15]
10555
+ )
10556
+ );
10557
+ }
10558
+ return {
10559
+ c() {
10560
+ button = element("button");
10561
+ create_component(closeicon.$$.fragment);
10562
+ attr(button, "class", "ms-modal__team-member-remove-btn svelte-1haqb7b");
10563
+ },
10564
+ m(target, anchor) {
10565
+ insert(target, button, anchor);
10566
+ mount_component(closeicon, button, null);
10567
+ current = true;
10568
+ if (!mounted) {
10569
+ dispose = listen(button, "click", click_handler_2);
10570
+ mounted = true;
10571
+ }
10572
+ },
10573
+ p(new_ctx, dirty) {
10574
+ ctx = new_ctx;
10575
+ },
10576
+ i(local) {
10577
+ if (current)
10578
+ return;
10579
+ transition_in(closeicon.$$.fragment, local);
10580
+ current = true;
10581
+ },
10582
+ o(local) {
10583
+ transition_out(closeicon.$$.fragment, local);
10584
+ current = false;
10585
+ },
10586
+ d(detaching) {
10587
+ if (detaching)
10588
+ detach(button);
10589
+ destroy_component(closeicon);
10590
+ mounted = false;
10591
+ dispose();
10592
+ }
10593
+ };
10594
+ }
10595
+ function create_each_block$8(key_1, ctx) {
10596
+ let div4;
10597
+ let div1;
10598
+ let t0;
10599
+ let div0;
10600
+ let t1_value = (
10601
+ /*m*/
10602
+ ctx[15].member.auth.email + ""
10603
+ );
10604
+ let t1;
10605
+ let t2;
10606
+ let div3;
10607
+ let div2;
10608
+ let t3_value = (
10609
+ /*m*/
10610
+ ctx[15].role + ""
10611
+ );
10612
+ let t3;
10613
+ let t4;
10614
+ let t5;
10615
+ let current;
10616
+ function select_block_type_1(ctx2, dirty) {
10617
+ if (
10618
+ /*m*/
10619
+ ctx2[15].member.profileImage === null
10620
+ )
10621
+ return create_if_block_3$8;
10622
+ return create_else_block_1$3;
10623
+ }
10624
+ let current_block_type = select_block_type_1(ctx);
10625
+ let if_block0 = current_block_type(ctx);
10626
+ let if_block1 = (
10627
+ /*m*/
10628
+ ctx[15].role !== "OWNER" && create_if_block_1$g(ctx)
10629
+ );
10630
+ return {
10631
+ key: key_1,
10632
+ first: null,
10633
+ c() {
10634
+ div4 = element("div");
10635
+ div1 = element("div");
10636
+ if_block0.c();
10637
+ t0 = space();
10638
+ div0 = element("div");
10639
+ t1 = text(t1_value);
10640
+ t2 = space();
10641
+ div3 = element("div");
10642
+ div2 = element("div");
10643
+ t3 = text(t3_value);
10644
+ t4 = space();
10645
+ if (if_block1)
10646
+ if_block1.c();
10647
+ t5 = space();
10648
+ attr(div0, "class", "ms-modal__team-member-email svelte-1haqb7b");
10649
+ attr(div1, "class", "ms-modal__team-member-info svelte-1haqb7b");
10650
+ attr(div2, "class", "ms-modal__team-member-role svelte-1haqb7b");
10651
+ attr(div3, "class", "ms-modal__team-member-actions svelte-1haqb7b");
10652
+ attr(div4, "class", "ms-modal__team-member svelte-1haqb7b");
10653
+ this.first = div4;
10654
+ },
10655
+ m(target, anchor) {
10656
+ insert(target, div4, anchor);
10657
+ append(div4, div1);
10658
+ if_block0.m(div1, null);
10659
+ append(div1, t0);
10660
+ append(div1, div0);
10661
+ append(div0, t1);
10662
+ append(div4, t2);
10663
+ append(div4, div3);
10664
+ append(div3, div2);
10665
+ append(div2, t3);
10666
+ append(div3, t4);
10667
+ if (if_block1)
10668
+ if_block1.m(div3, null);
10669
+ append(div4, t5);
10670
+ current = true;
10671
+ },
10672
+ p(new_ctx, dirty) {
10673
+ ctx = new_ctx;
10674
+ if (current_block_type === (current_block_type = select_block_type_1(ctx)) && if_block0) {
10675
+ if_block0.p(ctx, dirty);
10676
+ } else {
10677
+ if_block0.d(1);
10678
+ if_block0 = current_block_type(ctx);
10679
+ if (if_block0) {
10680
+ if_block0.c();
10681
+ if_block0.m(div1, t0);
10682
+ }
10683
+ }
10684
+ if ((!current || dirty & /*teamData*/
10685
+ 1) && t1_value !== (t1_value = /*m*/
10686
+ ctx[15].member.auth.email + ""))
10687
+ set_data(t1, t1_value);
10688
+ if ((!current || dirty & /*teamData*/
10689
+ 1) && t3_value !== (t3_value = /*m*/
10690
+ ctx[15].role + ""))
10691
+ set_data(t3, t3_value);
10692
+ if (
10693
+ /*m*/
10694
+ ctx[15].role !== "OWNER"
10695
+ ) {
10696
+ if (if_block1) {
10697
+ if_block1.p(ctx, dirty);
10698
+ if (dirty & /*teamData*/
10699
+ 1) {
10700
+ transition_in(if_block1, 1);
10701
+ }
10702
+ } else {
10703
+ if_block1 = create_if_block_1$g(ctx);
10704
+ if_block1.c();
10705
+ transition_in(if_block1, 1);
10706
+ if_block1.m(div3, null);
10707
+ }
10708
+ } else if (if_block1) {
10709
+ group_outros();
10710
+ transition_out(if_block1, 1, 1, () => {
10711
+ if_block1 = null;
10712
+ });
10713
+ check_outros();
10714
+ }
10715
+ },
10716
+ i(local) {
10717
+ if (current)
10718
+ return;
10719
+ transition_in(if_block1);
10720
+ current = true;
10721
+ },
10722
+ o(local) {
10723
+ transition_out(if_block1);
10724
+ current = false;
10725
+ },
10726
+ d(detaching) {
10727
+ if (detaching)
10728
+ detach(div4);
10729
+ if_block0.d();
10730
+ if (if_block1)
10731
+ if_block1.d();
10732
+ }
10733
+ };
10734
+ }
10735
+ function create_pending_block(ctx) {
10736
+ let p;
10737
+ return {
10738
+ c() {
10739
+ p = element("p");
10740
+ p.textContent = "Loading...";
10741
+ },
10742
+ m(target, anchor) {
10743
+ insert(target, p, anchor);
10744
+ },
10745
+ p: noop,
10746
+ i: noop,
10747
+ o: noop,
10748
+ d(detaching) {
10749
+ if (detaching)
10750
+ detach(p);
10751
+ }
10752
+ };
10753
+ }
10754
+ function create_fragment$K(ctx) {
10755
+ var _a;
10756
+ let div;
10757
+ let h2;
10758
+ let t1;
10759
+ let t2;
10760
+ let await_block_anchor;
10761
+ let promise2;
10762
+ let current;
10763
+ let if_block = (
10764
+ /*teamData*/
10765
+ ((_a = ctx[0]) == null ? void 0 : _a.members.length) > 0 && create_if_block_5$5(ctx)
10766
+ );
10767
+ let info = {
10768
+ ctx,
10769
+ current: null,
10770
+ token: null,
10771
+ hasCatch: false,
10772
+ pending: create_pending_block,
10773
+ then: create_then_block,
10774
+ catch: create_catch_block,
10775
+ blocks: [, , ,]
10776
+ };
10777
+ handle_promise(promise2 = /*teamPromise*/
10778
+ ctx[1], info);
10779
+ return {
10780
+ c() {
10781
+ div = element("div");
10782
+ h2 = element("h2");
10783
+ h2.textContent = "Team";
10784
+ t1 = space();
10785
+ if (if_block)
10786
+ if_block.c();
10787
+ t2 = space();
10788
+ await_block_anchor = empty();
10789
+ info.block.c();
10790
+ attr(h2, "class", "ms-modal__title ms-modal__title--teams svelte-1haqb7b");
10791
+ attr(div, "class", "ms-modal__title-container ms-modal__title-container--teams svelte-1haqb7b");
10792
+ },
10793
+ m(target, anchor) {
10794
+ insert(target, div, anchor);
10795
+ append(div, h2);
10796
+ append(div, t1);
10797
+ if (if_block)
10798
+ if_block.m(div, null);
10799
+ insert(target, t2, anchor);
10800
+ insert(target, await_block_anchor, anchor);
10801
+ info.block.m(target, info.anchor = anchor);
10802
+ info.mount = () => await_block_anchor.parentNode;
10803
+ info.anchor = await_block_anchor;
9344
10804
  current = true;
9345
10805
  },
9346
- p(ctx2, [dirty]) {
9347
- if (
9348
- /*member*/
9349
- ctx2[0].stripeCustomerId
9350
- ) {
9351
- if (if_block0) {
9352
- if_block0.p(ctx2, dirty);
9353
- if (dirty & /*member*/
9354
- 1) {
9355
- transition_in(if_block0, 1);
9356
- }
9357
- } else {
9358
- if_block0 = create_if_block_2$c(ctx2);
9359
- if_block0.c();
9360
- transition_in(if_block0, 1);
9361
- if_block0.m(t2.parentNode, t2);
9362
- }
9363
- } else if (if_block0) {
9364
- group_outros();
9365
- transition_out(if_block0, 1, 1, () => {
9366
- if_block0 = null;
9367
- });
9368
- check_outros();
9369
- }
10806
+ p(new_ctx, [dirty]) {
10807
+ var _a2;
10808
+ ctx = new_ctx;
9370
10809
  if (
9371
- /*freePlanConnections*/
9372
- ctx2[1].length > 0
10810
+ /*teamData*/
10811
+ ((_a2 = ctx[0]) == null ? void 0 : _a2.members.length) > 0
9373
10812
  ) {
9374
- if (if_block1) {
9375
- if_block1.p(ctx2, dirty);
9376
- if (dirty & /*freePlanConnections*/
9377
- 2) {
9378
- transition_in(if_block1, 1);
9379
- }
10813
+ if (if_block) {
10814
+ if_block.p(ctx, dirty);
9380
10815
  } else {
9381
- if_block1 = create_if_block_1$g(ctx2);
9382
- if_block1.c();
9383
- transition_in(if_block1, 1);
9384
- if_block1.m(t3.parentNode, t3);
10816
+ if_block = create_if_block_5$5(ctx);
10817
+ if_block.c();
10818
+ if_block.m(div, null);
9385
10819
  }
9386
- } else if (if_block1) {
9387
- group_outros();
9388
- transition_out(if_block1, 1, 1, () => {
9389
- if_block1 = null;
9390
- });
9391
- check_outros();
10820
+ } else if (if_block) {
10821
+ if_block.d(1);
10822
+ if_block = null;
9392
10823
  }
9393
- if (!/*member*/
9394
- ctx2[0].stripeCustomerId && /*freePlanConnections*/
9395
- ctx2[1].length === 0) {
9396
- if (if_block2)
9397
- ;
9398
- else {
9399
- if_block2 = create_if_block$m();
9400
- if_block2.c();
9401
- if_block2.m(if_block2_anchor.parentNode, if_block2_anchor);
9402
- }
9403
- } else if (if_block2) {
9404
- if_block2.d(1);
9405
- if_block2 = null;
10824
+ info.ctx = ctx;
10825
+ if (dirty & /*teamPromise*/
10826
+ 2 && promise2 !== (promise2 = /*teamPromise*/
10827
+ ctx[1]) && handle_promise(promise2, info))
10828
+ ;
10829
+ else {
10830
+ update_await_block_branch(info, ctx, dirty);
9406
10831
  }
9407
10832
  },
9408
10833
  i(local) {
9409
10834
  if (current)
9410
10835
  return;
9411
- transition_in(if_block0);
9412
- transition_in(if_block1);
10836
+ transition_in(info.block);
9413
10837
  current = true;
9414
10838
  },
9415
10839
  o(local) {
9416
- transition_out(if_block0);
9417
- transition_out(if_block1);
10840
+ for (let i = 0; i < 3; i += 1) {
10841
+ const block = info.blocks[i];
10842
+ transition_out(block);
10843
+ }
9418
10844
  current = false;
9419
10845
  },
9420
10846
  d(detaching) {
9421
10847
  if (detaching)
9422
10848
  detach(div);
9423
- if (detaching)
9424
- detach(t1);
9425
- if (if_block0)
9426
- if_block0.d(detaching);
10849
+ if (if_block)
10850
+ if_block.d();
9427
10851
  if (detaching)
9428
10852
  detach(t2);
9429
- if (if_block1)
9430
- if_block1.d(detaching);
9431
- if (detaching)
9432
- detach(t3);
9433
- if (if_block2)
9434
- if_block2.d(detaching);
9435
10853
  if (detaching)
9436
- detach(if_block2_anchor);
10854
+ detach(await_block_anchor);
10855
+ info.block.d(detaching);
10856
+ info.token = null;
10857
+ info = null;
9437
10858
  }
9438
10859
  };
9439
10860
  }
9440
10861
  function instance$p($$self, $$props, $$invalidate) {
9441
- let freePlanConnections;
9442
- let $app;
9443
- component_subscribe($$self, AppStore, ($$value) => $$invalidate(2, $app = $$value));
10862
+ var _a, _b, _c;
10863
+ let inviteLink;
9444
10864
  let { profileLoader } = $$props;
9445
10865
  let { member } = $$props;
9446
- function launchPortal(e) {
10866
+ let teamPromise;
10867
+ let teamData;
10868
+ let copyInviteText = "Copy";
10869
+ function showRemoveButton(m) {
10870
+ m.showRemoveButton = true;
10871
+ $$invalidate(0, teamData.members = [...teamData.members.filter((member2) => member2.member.id !== m.member.id), m], teamData);
10872
+ setTimeout(
10873
+ () => {
10874
+ m.showRemoveButton = false;
10875
+ },
10876
+ 3e3
10877
+ );
10878
+ }
10879
+ function copyInviteLink() {
10880
+ navigator.clipboard.writeText(inviteLink);
10881
+ $$invalidate(2, copyInviteText = "Copied!");
10882
+ setTimeout(
10883
+ () => {
10884
+ $$invalidate(2, copyInviteText = "Copy");
10885
+ },
10886
+ 2e3
10887
+ );
10888
+ }
10889
+ function getTeam(teamId) {
9447
10890
  return __async(this, null, function* () {
9448
- $$invalidate(5, profileLoader = true);
9449
- yield window.$memberstackDom.launchStripeCustomerPortal({ priceIds: [], autoRedirect: true });
10891
+ const { data } = yield window.$memberstackDom.getTeam({ teamId });
10892
+ $$invalidate(0, teamData = data);
10893
+ return data;
9450
10894
  });
9451
10895
  }
9452
- function removeFreePlan(planId) {
10896
+ function removeMemberFromTeam(memberId) {
9453
10897
  return __async(this, null, function* () {
9454
- $$invalidate(5, profileLoader = true);
9455
10898
  try {
9456
- yield window.$memberstackDom.removePlan({ planId });
9457
- $$invalidate(0, member.planConnections = member.planConnections.filter((plan) => plan.planId !== planId), member);
10899
+ $$invalidate(8, profileLoader = true);
10900
+ yield window.$memberstackDom.removeMemberFromTeam({ teamId: teamData.id, memberId });
10901
+ $$invalidate(0, teamData.members = teamData.members.filter((m) => m.member.id !== memberId), teamData);
10902
+ window.$memberstackDom._showMessage("Member has been removed from team.", false);
9458
10903
  } catch (err) {
9459
- console.log(err);
9460
10904
  window.$memberstackDom._showMessage(err.message, true);
9461
10905
  } finally {
9462
- $$invalidate(5, profileLoader = false);
10906
+ $$invalidate(8, profileLoader = false);
10907
+ }
10908
+ });
10909
+ }
10910
+ function generateInviteToken() {
10911
+ return __async(this, null, function* () {
10912
+ try {
10913
+ $$invalidate(8, profileLoader = true);
10914
+ const { data } = yield window.$memberstackDom.generateInviteToken({ teamId: teamData.id });
10915
+ $$invalidate(0, teamData.inviteToken = data.inviteToken, teamData);
10916
+ window.$memberstackDom._showMessage("Invite Link Regenerated", false);
10917
+ } catch (err) {
10918
+ window.$memberstackDom._showMessage(err.message, true);
10919
+ } finally {
10920
+ $$invalidate(8, profileLoader = false);
9463
10921
  }
9464
10922
  });
9465
10923
  }
9466
- const func2 = (memberPlan, plan) => plan.id === memberPlan.planId;
9467
- const func_12 = (memberPlan) => removeFreePlan(memberPlan.planId);
10924
+ if (((_b = (_a = member == null ? void 0 : member.teams) == null ? void 0 : _a.ownedTeams) == null ? void 0 : _b.length) > 0) {
10925
+ const teamId = (_c = member.teams) == null ? void 0 : _c.ownedTeams[0].teamId;
10926
+ teamPromise = getTeam(teamId);
10927
+ } else {
10928
+ teamPromise = Promise.resolve(null);
10929
+ }
10930
+ const click_handler = () => copyInviteLink();
10931
+ const click_handler_1 = () => generateInviteToken();
10932
+ const click_handler_2 = (m) => showRemoveButton(m);
10933
+ const click_handler_3 = (m) => removeMemberFromTeam(m.member.id);
9468
10934
  $$self.$$set = ($$props2) => {
9469
10935
  if ("profileLoader" in $$props2)
9470
- $$invalidate(5, profileLoader = $$props2.profileLoader);
10936
+ $$invalidate(8, profileLoader = $$props2.profileLoader);
9471
10937
  if ("member" in $$props2)
9472
- $$invalidate(0, member = $$props2.member);
10938
+ $$invalidate(9, member = $$props2.member);
9473
10939
  };
9474
10940
  $$self.$$.update = () => {
9475
- if ($$self.$$.dirty & /*member*/
10941
+ var _a2;
10942
+ if ($$self.$$.dirty & /*teamData*/
9476
10943
  1) {
9477
- $$invalidate(1, freePlanConnections = member.planConnections.filter((plan) => plan.type === "FREE"));
10944
+ $$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}`);
9478
10945
  }
9479
10946
  };
9480
10947
  return [
9481
- member,
9482
- freePlanConnections,
9483
- $app,
9484
- launchPortal,
9485
- removeFreePlan,
10948
+ teamData,
10949
+ teamPromise,
10950
+ copyInviteText,
10951
+ inviteLink,
10952
+ showRemoveButton,
10953
+ copyInviteLink,
10954
+ removeMemberFromTeam,
10955
+ generateInviteToken,
9486
10956
  profileLoader,
9487
- func2,
9488
- func_12
10957
+ member,
10958
+ click_handler,
10959
+ click_handler_1,
10960
+ click_handler_2,
10961
+ click_handler_3
9489
10962
  ];
9490
10963
  }
9491
- var PlansInfoContent = class extends SvelteComponent {
10964
+ var ProfileTeamContent = class extends SvelteComponent {
9492
10965
  constructor(options) {
9493
10966
  super();
9494
- init(this, options, instance$p, create_fragment$L, safe_not_equal, { profileLoader: 5, member: 0 });
10967
+ init(this, options, instance$p, create_fragment$K, safe_not_equal, { profileLoader: 8, member: 9 }, add_css$j);
9495
10968
  }
9496
10969
  };
9497
- function create_if_block_4$5(ctx) {
10970
+ function create_if_block_5$4(ctx) {
9498
10971
  let profileloader;
9499
10972
  let current;
9500
10973
  profileloader = new ProfileLoader({});
@@ -9521,6 +10994,76 @@ function create_if_block_4$5(ctx) {
9521
10994
  }
9522
10995
  };
9523
10996
  }
10997
+ function create_if_block_4$5(ctx) {
10998
+ let profileteamcontent;
10999
+ let updating_member;
11000
+ let updating_profileLoader;
11001
+ let current;
11002
+ function profileteamcontent_member_binding(value) {
11003
+ ctx[19](value);
11004
+ }
11005
+ function profileteamcontent_profileLoader_binding(value) {
11006
+ ctx[20](value);
11007
+ }
11008
+ let profileteamcontent_props = {};
11009
+ if (
11010
+ /*member*/
11011
+ ctx[1] !== void 0
11012
+ ) {
11013
+ profileteamcontent_props.member = /*member*/
11014
+ ctx[1];
11015
+ }
11016
+ if (
11017
+ /*profileLoader*/
11018
+ ctx[4] !== void 0
11019
+ ) {
11020
+ profileteamcontent_props.profileLoader = /*profileLoader*/
11021
+ ctx[4];
11022
+ }
11023
+ profileteamcontent = new ProfileTeamContent({ props: profileteamcontent_props });
11024
+ binding_callbacks.push(() => bind(profileteamcontent, "member", profileteamcontent_member_binding));
11025
+ binding_callbacks.push(() => bind(profileteamcontent, "profileLoader", profileteamcontent_profileLoader_binding));
11026
+ return {
11027
+ c() {
11028
+ create_component(profileteamcontent.$$.fragment);
11029
+ },
11030
+ m(target, anchor) {
11031
+ mount_component(profileteamcontent, target, anchor);
11032
+ current = true;
11033
+ },
11034
+ p(ctx2, dirty) {
11035
+ const profileteamcontent_changes = {};
11036
+ if (!updating_member && dirty & /*member*/
11037
+ 2) {
11038
+ updating_member = true;
11039
+ profileteamcontent_changes.member = /*member*/
11040
+ ctx2[1];
11041
+ add_flush_callback(() => updating_member = false);
11042
+ }
11043
+ if (!updating_profileLoader && dirty & /*profileLoader*/
11044
+ 16) {
11045
+ updating_profileLoader = true;
11046
+ profileteamcontent_changes.profileLoader = /*profileLoader*/
11047
+ ctx2[4];
11048
+ add_flush_callback(() => updating_profileLoader = false);
11049
+ }
11050
+ profileteamcontent.$set(profileteamcontent_changes);
11051
+ },
11052
+ i(local) {
11053
+ if (current)
11054
+ return;
11055
+ transition_in(profileteamcontent.$$.fragment, local);
11056
+ current = true;
11057
+ },
11058
+ o(local) {
11059
+ transition_out(profileteamcontent.$$.fragment, local);
11060
+ current = false;
11061
+ },
11062
+ d(detaching) {
11063
+ destroy_component(profileteamcontent, detaching);
11064
+ }
11065
+ };
11066
+ }
9524
11067
  function create_if_block_3$7(ctx) {
9525
11068
  let plansinfocontent;
9526
11069
  let updating_member;
@@ -9848,7 +11391,7 @@ function create_if_block$l(ctx) {
9848
11391
  }
9849
11392
  };
9850
11393
  }
9851
- function create_fragment$K(ctx) {
11394
+ function create_fragment$J(ctx) {
9852
11395
  let div5;
9853
11396
  let div1;
9854
11397
  let div0;
@@ -9923,9 +11466,15 @@ function create_fragment$K(ctx) {
9923
11466
  binding_callbacks.push(() => bind(profilemodalnav, "profileLoader", profilemodalnav_profileLoader_binding));
9924
11467
  let if_block0 = (
9925
11468
  /*profileLoader*/
9926
- ctx[4] && create_if_block_4$5()
11469
+ ctx[4] && create_if_block_5$4()
9927
11470
  );
9928
- const if_block_creators = [create_if_block$l, create_if_block_1$f, create_if_block_2$b, create_if_block_3$7];
11471
+ const if_block_creators = [
11472
+ create_if_block$l,
11473
+ create_if_block_1$f,
11474
+ create_if_block_2$b,
11475
+ create_if_block_3$7,
11476
+ create_if_block_4$5
11477
+ ];
9929
11478
  const if_blocks = [];
9930
11479
  function select_block_type(ctx2, dirty) {
9931
11480
  if (
@@ -9948,6 +11497,11 @@ function create_fragment$K(ctx) {
9948
11497
  ctx2[0] === "plans"
9949
11498
  )
9950
11499
  return 3;
11500
+ if (
11501
+ /*displayProfile*/
11502
+ ctx2[0] === "team"
11503
+ )
11504
+ return 4;
9951
11505
  return -1;
9952
11506
  }
9953
11507
  if (~(current_block_type_index = select_block_type(ctx))) {
@@ -10053,7 +11607,7 @@ function create_fragment$K(ctx) {
10053
11607
  transition_in(if_block0, 1);
10054
11608
  }
10055
11609
  } else {
10056
- if_block0 = create_if_block_4$5();
11610
+ if_block0 = create_if_block_5$4();
10057
11611
  if_block0.c();
10058
11612
  transition_in(if_block0, 1);
10059
11613
  if_block0.m(div3, t4);
@@ -10187,6 +11741,14 @@ function instance$o($$self, $$props, $$invalidate) {
10187
11741
  profileLoader = value;
10188
11742
  $$invalidate(4, profileLoader);
10189
11743
  }
11744
+ function profileteamcontent_member_binding(value) {
11745
+ member = value;
11746
+ $$invalidate(1, member);
11747
+ }
11748
+ function profileteamcontent_profileLoader_binding(value) {
11749
+ profileLoader = value;
11750
+ $$invalidate(4, profileLoader);
11751
+ }
10190
11752
  $$self.$$set = ($$props2) => {
10191
11753
  if ("onSuccessLogout" in $$props2)
10192
11754
  $$invalidate(2, onSuccessLogout = $$props2.onSuccessLogout);
@@ -10216,13 +11778,15 @@ function instance$o($$self, $$props, $$invalidate) {
10216
11778
  passwordinfocontent_profileLoader_binding,
10217
11779
  passwordinfocontent_member_binding,
10218
11780
  plansinfocontent_member_binding,
10219
- plansinfocontent_profileLoader_binding
11781
+ plansinfocontent_profileLoader_binding,
11782
+ profileteamcontent_member_binding,
11783
+ profileteamcontent_profileLoader_binding
10220
11784
  ];
10221
11785
  }
10222
11786
  var ProfileModal = class extends SvelteComponent {
10223
11787
  constructor(options) {
10224
11788
  super();
10225
- init(this, options, instance$o, create_fragment$K, safe_not_equal, {
11789
+ init(this, options, instance$o, create_fragment$J, safe_not_equal, {
10226
11790
  onSuccessLogout: 2,
10227
11791
  closeModal: 3,
10228
11792
  displayProfile: 0,
@@ -10230,7 +11794,7 @@ var ProfileModal = class extends SvelteComponent {
10230
11794
  });
10231
11795
  }
10232
11796
  };
10233
- function create_fragment$J(ctx) {
11797
+ function create_fragment$I(ctx) {
10234
11798
  let svg;
10235
11799
  let path;
10236
11800
  return {
@@ -10260,7 +11824,7 @@ function create_fragment$J(ctx) {
10260
11824
  var ForwardIcon = class extends SvelteComponent {
10261
11825
  constructor(options) {
10262
11826
  super();
10263
- init(this, options, null, create_fragment$J, safe_not_equal, {});
11827
+ init(this, options, null, create_fragment$I, safe_not_equal, {});
10264
11828
  }
10265
11829
  };
10266
11830
  function create_if_block_1$e(ctx) {
@@ -10405,7 +11969,7 @@ function create_if_block$k(ctx) {
10405
11969
  }
10406
11970
  };
10407
11971
  }
10408
- function create_fragment$I(ctx) {
11972
+ function create_fragment$H(ctx) {
10409
11973
  let div2;
10410
11974
  let t0;
10411
11975
  let button0;
@@ -10665,7 +12229,7 @@ function instance$n($$self, $$props, $$invalidate) {
10665
12229
  var MobileProfileModalNav = class extends SvelteComponent {
10666
12230
  constructor(options) {
10667
12231
  super();
10668
- init(this, options, instance$n, create_fragment$I, safe_not_equal, {
12232
+ init(this, options, instance$n, create_fragment$H, safe_not_equal, {
10669
12233
  member: 1,
10670
12234
  onSuccessLogout: 6,
10671
12235
  displayProfile: 0,
@@ -10834,7 +12398,7 @@ function create_each_block$7(ctx) {
10834
12398
  }
10835
12399
  };
10836
12400
  }
10837
- function create_fragment$H(ctx) {
12401
+ function create_fragment$G(ctx) {
10838
12402
  let form;
10839
12403
  let t0;
10840
12404
  let div;
@@ -10957,7 +12521,7 @@ function instance$m($$self, $$props, $$invalidate) {
10957
12521
  var MobileProfileInfoContent = class extends SvelteComponent {
10958
12522
  constructor(options) {
10959
12523
  super();
10960
- init(this, options, instance$m, create_fragment$H, safe_not_equal, {
12524
+ init(this, options, instance$m, create_fragment$G, safe_not_equal, {
10961
12525
  customFields: 1,
10962
12526
  member: 0,
10963
12527
  profileLoader: 3
@@ -11278,7 +12842,7 @@ function create_each_block$6(key_1, ctx) {
11278
12842
  }
11279
12843
  };
11280
12844
  }
11281
- function create_fragment$G(ctx) {
12845
+ function create_fragment$F(ctx) {
11282
12846
  let form;
11283
12847
  let emailinput;
11284
12848
  let updating_emailInputValid;
@@ -11601,7 +13165,7 @@ function instance$l($$self, $$props, $$invalidate) {
11601
13165
  var MobileSecurityInfoContent = class extends SvelteComponent {
11602
13166
  constructor(options) {
11603
13167
  super();
11604
- init(this, options, instance$l, create_fragment$G, safe_not_equal, {
13168
+ init(this, options, instance$l, create_fragment$F, safe_not_equal, {
11605
13169
  displayProfile: 0,
11606
13170
  member: 1,
11607
13171
  emailValue: 2,
@@ -11682,7 +13246,7 @@ function create_if_block$h(ctx) {
11682
13246
  }
11683
13247
  };
11684
13248
  }
11685
- function create_fragment$F(ctx) {
13249
+ function create_fragment$E(ctx) {
11686
13250
  let form;
11687
13251
  let t0;
11688
13252
  let passwordinput0;
@@ -11998,7 +13562,7 @@ function instance$k($$self, $$props, $$invalidate) {
11998
13562
  var MobilePasswordInfoContent = class extends SvelteComponent {
11999
13563
  constructor(options) {
12000
13564
  super();
12001
- init(this, options, instance$k, create_fragment$F, safe_not_equal, { profileLoader: 8, member: 0 });
13565
+ init(this, options, instance$k, create_fragment$E, safe_not_equal, { profileLoader: 8, member: 0 });
12002
13566
  }
12003
13567
  };
12004
13568
  function create_if_block_6$3(ctx) {
@@ -12505,7 +14069,7 @@ function create_if_block$g(ctx) {
12505
14069
  }
12506
14070
  };
12507
14071
  }
12508
- function create_fragment$E(ctx) {
14072
+ function create_fragment$D(ctx) {
12509
14073
  let div5;
12510
14074
  let div2;
12511
14075
  let t0;
@@ -12911,7 +14475,7 @@ function instance$j($$self, $$props, $$invalidate) {
12911
14475
  var MobileProfileModal = class extends SvelteComponent {
12912
14476
  constructor(options) {
12913
14477
  super();
12914
- init(this, options, instance$j, create_fragment$E, safe_not_equal, {
14478
+ init(this, options, instance$j, create_fragment$D, safe_not_equal, {
12915
14479
  onSuccessLogout: 3,
12916
14480
  closeModal: 4,
12917
14481
  displayProfile: 0,
@@ -12920,42 +14484,6 @@ var MobileProfileModal = class extends SvelteComponent {
12920
14484
  });
12921
14485
  }
12922
14486
  };
12923
- function add_css$j(target) {
12924
- append_styles(target, "svelte-c6ihgv", "svg.svelte-c6ihgv{fill:currentColor}");
12925
- }
12926
- function create_fragment$D(ctx) {
12927
- let svg;
12928
- let path;
12929
- return {
12930
- c() {
12931
- svg = svg_element("svg");
12932
- path = svg_element("path");
12933
- 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");
12934
- attr(svg, "xmlns", "http://www.w3.org/2000/svg");
12935
- attr(svg, "height", "20");
12936
- attr(svg, "viewBox", "0 -960 960 960");
12937
- attr(svg, "width", "20");
12938
- attr(svg, "class", "svelte-c6ihgv");
12939
- },
12940
- m(target, anchor) {
12941
- insert(target, svg, anchor);
12942
- append(svg, path);
12943
- },
12944
- p: noop,
12945
- i: noop,
12946
- o: noop,
12947
- d(detaching) {
12948
- if (detaching)
12949
- detach(svg);
12950
- }
12951
- };
12952
- }
12953
- var CopyIcon$1 = class extends SvelteComponent {
12954
- constructor(options) {
12955
- super();
12956
- init(this, options, null, create_fragment$D, safe_not_equal, {}, add_css$j);
12957
- }
12958
- };
12959
14487
  function add_css$i(target) {
12960
14488
  append_styles(target, "svelte-50knw2", "svg.svelte-50knw2{fill:currentColor;width:9px;height:auto}");
12961
14489
  }
@@ -14984,7 +16512,7 @@ var InspectorBadgeOpen = class extends SvelteComponent {
14984
16512
  }
14985
16513
  };
14986
16514
  function add_css$f(target) {
14987
- 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%)}");
16515
+ 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%)}");
14988
16516
  }
14989
16517
  function create_else_block_1$1(ctx) {
14990
16518
  let span;
@@ -14992,7 +16520,7 @@ function create_else_block_1$1(ctx) {
14992
16520
  c() {
14993
16521
  span = element("span");
14994
16522
  span.textContent = "Hide Inspector";
14995
- attr(span, "class", "ms-inspector-badge__text svelte-1dmftgw");
16523
+ attr(span, "class", "ms-inspector-badge__text svelte-rhveiw");
14996
16524
  },
14997
16525
  m(target, anchor) {
14998
16526
  insert(target, span, anchor);
@@ -15009,7 +16537,7 @@ function create_if_block_2$8(ctx) {
15009
16537
  c() {
15010
16538
  span = element("span");
15011
16539
  span.textContent = "Test Mode";
15012
- attr(span, "class", "ms-inspector-badge__text svelte-1dmftgw");
16540
+ attr(span, "class", "ms-inspector-badge__text svelte-rhveiw");
15013
16541
  },
15014
16542
  m(target, anchor) {
15015
16543
  insert(target, span, anchor);
@@ -15027,7 +16555,7 @@ function create_if_block_1$b(ctx) {
15027
16555
  return {
15028
16556
  c() {
15029
16557
  span = element("span");
15030
- attr(span, "class", "ms-inspector-badge__error-indicator svelte-1dmftgw");
16558
+ attr(span, "class", "ms-inspector-badge__error-indicator svelte-rhveiw");
15031
16559
  },
15032
16560
  m(target, anchor) {
15033
16561
  insert(target, span, anchor);
@@ -15169,18 +16697,24 @@ function create_fragment$y(ctx) {
15169
16697
  if_block1.c();
15170
16698
  t3 = space();
15171
16699
  if_block2.c();
15172
- attr(span0, "class", "ms-inspector-badge__logo svelte-1dmftgw");
15173
- attr(span1, "class", "ms-inspector-badge__text-wrapper svelte-1dmftgw");
15174
- attr(span2, "class", "ms-inspector-badge__divider svelte-1dmftgw");
15175
- attr(span3, "class", "ms-inspector-badge__count svelte-1dmftgw");
16700
+ attr(span0, "class", "ms-inspector-badge__logo svelte-rhveiw");
16701
+ attr(span1, "class", "ms-inspector-badge__text-wrapper svelte-rhveiw");
16702
+ attr(span2, "class", "ms-inspector-badge__divider svelte-rhveiw");
16703
+ attr(span3, "class", "ms-inspector-badge__count svelte-rhveiw");
15176
16704
  toggle_class(
15177
16705
  span3,
15178
16706
  "ms-inspector-badge__count--open",
15179
16707
  /*$InspectorStore*/
15180
16708
  ctx[0].showSidebar
15181
16709
  );
15182
- attr(button, "class", "ms-inspector-badge svelte-1dmftgw");
16710
+ attr(button, "class", "ms-inspector-badge svelte-rhveiw");
15183
16711
  attr(button, "data-cy", "inspector-button");
16712
+ toggle_class(
16713
+ button,
16714
+ "ms-inspector-badge--error",
16715
+ /*$InspectorStore*/
16716
+ ctx[0].xRayErrorElements.length > 0
16717
+ );
15184
16718
  set_style(
15185
16719
  button,
15186
16720
  "z-index",
@@ -15274,6 +16808,15 @@ function create_fragment$y(ctx) {
15274
16808
  ctx2[0].showSidebar
15275
16809
  );
15276
16810
  }
16811
+ if (!current || dirty & /*$InspectorStore*/
16812
+ 1) {
16813
+ toggle_class(
16814
+ button,
16815
+ "ms-inspector-badge--error",
16816
+ /*$InspectorStore*/
16817
+ ctx2[0].xRayErrorElements.length > 0
16818
+ );
16819
+ }
15277
16820
  if (dirty & /*$InspectorStore*/
15278
16821
  1) {
15279
16822
  set_style(
@@ -24999,7 +26542,6 @@ function instance($$self, $$props, $$invalidate) {
24999
26542
  if (params && params.app) {
25000
26543
  setAppStore(params.app);
25001
26544
  } else {
25002
- console.log("No app specified - request it");
25003
26545
  yield getApp();
25004
26546
  }
25005
26547
  $$invalidate(7, appLoading = false);