@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.
@@ -164,6 +164,9 @@ function assign(tar, src) {
164
164
  tar[k] = src[k];
165
165
  return tar;
166
166
  }
167
+ function is_promise(value) {
168
+ return !!value && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
169
+ }
167
170
  function run(fn) {
168
171
  return fn();
169
172
  }
@@ -745,6 +748,84 @@ function create_bidirectional_transition(node, fn, params, intro) {
745
748
  }
746
749
  };
747
750
  }
751
+ function handle_promise(promise2, info) {
752
+ const token = info.token = {};
753
+ function update2(type, index, key, value) {
754
+ if (info.token !== token)
755
+ return;
756
+ info.resolved = value;
757
+ let child_ctx = info.ctx;
758
+ if (key !== void 0) {
759
+ child_ctx = child_ctx.slice();
760
+ child_ctx[key] = value;
761
+ }
762
+ const block = type && (info.current = type)(child_ctx);
763
+ let needs_flush = false;
764
+ if (info.block) {
765
+ if (info.blocks) {
766
+ info.blocks.forEach((block2, i) => {
767
+ if (i !== index && block2) {
768
+ group_outros();
769
+ transition_out(block2, 1, 1, () => {
770
+ if (info.blocks[i] === block2) {
771
+ info.blocks[i] = null;
772
+ }
773
+ });
774
+ check_outros();
775
+ }
776
+ });
777
+ } else {
778
+ info.block.d(1);
779
+ }
780
+ block.c();
781
+ transition_in(block, 1);
782
+ block.m(info.mount(), info.anchor);
783
+ needs_flush = true;
784
+ }
785
+ info.block = block;
786
+ if (info.blocks)
787
+ info.blocks[index] = block;
788
+ if (needs_flush) {
789
+ flush();
790
+ }
791
+ }
792
+ if (is_promise(promise2)) {
793
+ const current_component2 = get_current_component();
794
+ promise2.then((value) => {
795
+ set_current_component(current_component2);
796
+ update2(info.then, 1, info.value, value);
797
+ set_current_component(null);
798
+ }, (error) => {
799
+ set_current_component(current_component2);
800
+ update2(info.catch, 2, info.error, error);
801
+ set_current_component(null);
802
+ if (!info.hasCatch) {
803
+ throw error;
804
+ }
805
+ });
806
+ if (info.current !== info.pending) {
807
+ update2(info.pending, 0);
808
+ return true;
809
+ }
810
+ } else {
811
+ if (info.current !== info.then) {
812
+ update2(info.then, 1, info.value, promise2);
813
+ return true;
814
+ }
815
+ info.resolved = promise2;
816
+ }
817
+ }
818
+ function update_await_block_branch(info, ctx, dirty) {
819
+ const child_ctx = ctx.slice();
820
+ const { resolved } = info;
821
+ if (info.current === info.then) {
822
+ child_ctx[info.value] = resolved;
823
+ }
824
+ if (info.current === info.catch) {
825
+ child_ctx[info.error] = resolved;
826
+ }
827
+ info.block.p(child_ctx, dirty);
828
+ }
748
829
  function destroy_block(block, lookup) {
749
830
  block.d(1);
750
831
  lookup.delete(block.key);
@@ -1034,7 +1115,7 @@ var get_default_slot_context = (ctx) => ({ matches: (
1034
1115
  /*matches*/
1035
1116
  ctx[0]
1036
1117
  ) });
1037
- function create_fragment$1l(ctx) {
1118
+ function create_fragment$1n(ctx) {
1038
1119
  let current;
1039
1120
  const default_slot_template = (
1040
1121
  /*#slots*/
@@ -1099,7 +1180,7 @@ function create_fragment$1l(ctx) {
1099
1180
  }
1100
1181
  };
1101
1182
  }
1102
- function instance$I($$self, $$props, $$invalidate) {
1183
+ function instance$J($$self, $$props, $$invalidate) {
1103
1184
  let { $$slots: slots = {}, $$scope } = $$props;
1104
1185
  let { query } = $$props;
1105
1186
  let mql;
@@ -1145,10 +1226,10 @@ function instance$I($$self, $$props, $$invalidate) {
1145
1226
  var MediaQuery = class extends SvelteComponent {
1146
1227
  constructor(options) {
1147
1228
  super();
1148
- init(this, options, instance$I, create_fragment$1l, safe_not_equal, { query: 1 });
1229
+ init(this, options, instance$J, create_fragment$1n, safe_not_equal, { query: 1 });
1149
1230
  }
1150
1231
  };
1151
- function create_fragment$1k(ctx) {
1232
+ function create_fragment$1m(ctx) {
1152
1233
  let svg;
1153
1234
  let path;
1154
1235
  let animateTransform;
@@ -1192,10 +1273,10 @@ function create_fragment$1k(ctx) {
1192
1273
  var LoadingIcon = class extends SvelteComponent {
1193
1274
  constructor(options) {
1194
1275
  super();
1195
- init(this, options, null, create_fragment$1k, safe_not_equal, {});
1276
+ init(this, options, null, create_fragment$1m, safe_not_equal, {});
1196
1277
  }
1197
1278
  };
1198
- function create_fragment$1j(ctx) {
1279
+ function create_fragment$1l(ctx) {
1199
1280
  let div;
1200
1281
  let loadingicon;
1201
1282
  let current;
@@ -1232,10 +1313,10 @@ function create_fragment$1j(ctx) {
1232
1313
  var Loader = class extends SvelteComponent {
1233
1314
  constructor(options) {
1234
1315
  super();
1235
- init(this, options, null, create_fragment$1j, safe_not_equal, {});
1316
+ init(this, options, null, create_fragment$1l, safe_not_equal, {});
1236
1317
  }
1237
1318
  };
1238
- function create_fragment$1i(ctx) {
1319
+ function create_fragment$1k(ctx) {
1239
1320
  let svg;
1240
1321
  let path;
1241
1322
  return {
@@ -1266,10 +1347,10 @@ function create_fragment$1i(ctx) {
1266
1347
  var CloseIcon = class extends SvelteComponent {
1267
1348
  constructor(options) {
1268
1349
  super();
1269
- init(this, options, null, create_fragment$1i, safe_not_equal, {});
1350
+ init(this, options, null, create_fragment$1k, safe_not_equal, {});
1270
1351
  }
1271
1352
  };
1272
- function create_fragment$1h(ctx) {
1353
+ function create_fragment$1j(ctx) {
1273
1354
  let div;
1274
1355
  let button;
1275
1356
  let closeicon;
@@ -1322,7 +1403,7 @@ function create_fragment$1h(ctx) {
1322
1403
  }
1323
1404
  };
1324
1405
  }
1325
- function instance$H($$self, $$props, $$invalidate) {
1406
+ function instance$I($$self, $$props, $$invalidate) {
1326
1407
  let { closeModal } = $$props;
1327
1408
  $$self.$$set = ($$props2) => {
1328
1409
  if ("closeModal" in $$props2)
@@ -1333,10 +1414,10 @@ function instance$H($$self, $$props, $$invalidate) {
1333
1414
  var CloseButton = class extends SvelteComponent {
1334
1415
  constructor(options) {
1335
1416
  super();
1336
- init(this, options, instance$H, create_fragment$1h, safe_not_equal, { closeModal: 0 });
1417
+ init(this, options, instance$I, create_fragment$1j, safe_not_equal, { closeModal: 0 });
1337
1418
  }
1338
1419
  };
1339
- function create_fragment$1g(ctx) {
1420
+ function create_fragment$1i(ctx) {
1340
1421
  let svg;
1341
1422
  let path0;
1342
1423
  let path1;
@@ -1389,10 +1470,10 @@ function create_fragment$1g(ctx) {
1389
1470
  var MemberstackIcon = class extends SvelteComponent {
1390
1471
  constructor(options) {
1391
1472
  super();
1392
- init(this, options, null, create_fragment$1g, safe_not_equal, {});
1473
+ init(this, options, null, create_fragment$1i, safe_not_equal, {});
1393
1474
  }
1394
1475
  };
1395
- function create_else_block$h(ctx) {
1476
+ function create_else_block$i(ctx) {
1396
1477
  let memberstackicon;
1397
1478
  let current;
1398
1479
  memberstackicon = new MemberstackIcon({});
@@ -1420,7 +1501,7 @@ function create_else_block$h(ctx) {
1420
1501
  }
1421
1502
  };
1422
1503
  }
1423
- function create_if_block$z(ctx) {
1504
+ function create_if_block$A(ctx) {
1424
1505
  let img;
1425
1506
  let img_src_value;
1426
1507
  let img_alt_value;
@@ -1457,12 +1538,12 @@ function create_if_block$z(ctx) {
1457
1538
  }
1458
1539
  };
1459
1540
  }
1460
- function create_fragment$1f(ctx) {
1541
+ function create_fragment$1h(ctx) {
1461
1542
  let figure;
1462
1543
  let current_block_type_index;
1463
1544
  let if_block;
1464
1545
  let current;
1465
- const if_block_creators = [create_if_block$z, create_else_block$h];
1546
+ const if_block_creators = [create_if_block$A, create_else_block$i];
1466
1547
  const if_blocks = [];
1467
1548
  function select_block_type(ctx2, dirty) {
1468
1549
  if (
@@ -1524,7 +1605,7 @@ function create_fragment$1f(ctx) {
1524
1605
  }
1525
1606
  };
1526
1607
  }
1527
- function instance$G($$self, $$props, $$invalidate) {
1608
+ function instance$H($$self, $$props, $$invalidate) {
1528
1609
  let app = {};
1529
1610
  AppStore.subscribe((data) => {
1530
1611
  $$invalidate(0, app = data);
@@ -1534,10 +1615,10 @@ function instance$G($$self, $$props, $$invalidate) {
1534
1615
  var FigureElement = class extends SvelteComponent {
1535
1616
  constructor(options) {
1536
1617
  super();
1537
- init(this, options, instance$G, create_fragment$1f, safe_not_equal, {});
1618
+ init(this, options, instance$H, create_fragment$1h, safe_not_equal, {});
1538
1619
  }
1539
1620
  };
1540
- function create_else_block$g(ctx) {
1621
+ function create_else_block$h(ctx) {
1541
1622
  let button;
1542
1623
  let loadingicon;
1543
1624
  let current;
@@ -1589,7 +1670,7 @@ function create_else_block$g(ctx) {
1589
1670
  }
1590
1671
  };
1591
1672
  }
1592
- function create_if_block$y(ctx) {
1673
+ function create_if_block$z(ctx) {
1593
1674
  let button;
1594
1675
  let t;
1595
1676
  return {
@@ -1638,12 +1719,12 @@ function create_if_block$y(ctx) {
1638
1719
  }
1639
1720
  };
1640
1721
  }
1641
- function create_fragment$1e(ctx) {
1722
+ function create_fragment$1g(ctx) {
1642
1723
  let div;
1643
1724
  let current_block_type_index;
1644
1725
  let if_block;
1645
1726
  let current;
1646
- const if_block_creators = [create_if_block$y, create_else_block$g];
1727
+ const if_block_creators = [create_if_block$z, create_else_block$h];
1647
1728
  const if_blocks = [];
1648
1729
  function select_block_type(ctx2, dirty) {
1649
1730
  if (!/*isLoading*/
@@ -1702,7 +1783,7 @@ function create_fragment$1e(ctx) {
1702
1783
  }
1703
1784
  };
1704
1785
  }
1705
- function instance$F($$self, $$props, $$invalidate) {
1786
+ function instance$G($$self, $$props, $$invalidate) {
1706
1787
  let $app;
1707
1788
  component_subscribe($$self, AppStore, ($$value) => $$invalidate(3, $app = $$value));
1708
1789
  let { buttonText = "Submit" } = $$props;
@@ -1722,10 +1803,10 @@ function instance$F($$self, $$props, $$invalidate) {
1722
1803
  var SubmitButton = class extends SvelteComponent {
1723
1804
  constructor(options) {
1724
1805
  super();
1725
- init(this, options, instance$F, create_fragment$1e, safe_not_equal, { buttonText: 0, isLoading: 1 });
1806
+ init(this, options, instance$G, create_fragment$1g, safe_not_equal, { buttonText: 0, isLoading: 1 });
1726
1807
  }
1727
1808
  };
1728
- function create_fragment$1d(ctx) {
1809
+ function create_fragment$1f(ctx) {
1729
1810
  let svg;
1730
1811
  let path;
1731
1812
  return {
@@ -1754,10 +1835,10 @@ function create_fragment$1d(ctx) {
1754
1835
  var ErrorIcon = class extends SvelteComponent {
1755
1836
  constructor(options) {
1756
1837
  super();
1757
- init(this, options, null, create_fragment$1d, safe_not_equal, {});
1838
+ init(this, options, null, create_fragment$1f, safe_not_equal, {});
1758
1839
  }
1759
1840
  };
1760
- function create_if_block$x(ctx) {
1841
+ function create_if_block$y(ctx) {
1761
1842
  let div;
1762
1843
  let erroricon;
1763
1844
  let t0;
@@ -1800,7 +1881,7 @@ function create_if_block$x(ctx) {
1800
1881
  }
1801
1882
  };
1802
1883
  }
1803
- function create_fragment$1c(ctx) {
1884
+ function create_fragment$1e(ctx) {
1804
1885
  let div;
1805
1886
  let label;
1806
1887
  let t0;
@@ -1812,7 +1893,7 @@ function create_fragment$1c(ctx) {
1812
1893
  let dispose;
1813
1894
  let if_block = (
1814
1895
  /*inputError*/
1815
- ctx[2] && create_if_block$x(ctx)
1896
+ ctx[2] && create_if_block$y(ctx)
1816
1897
  );
1817
1898
  return {
1818
1899
  c() {
@@ -1907,7 +1988,7 @@ function create_fragment$1c(ctx) {
1907
1988
  transition_in(if_block, 1);
1908
1989
  }
1909
1990
  } else {
1910
- if_block = create_if_block$x(ctx2);
1991
+ if_block = create_if_block$y(ctx2);
1911
1992
  if_block.c();
1912
1993
  transition_in(if_block, 1);
1913
1994
  if_block.m(div, null);
@@ -1940,7 +2021,7 @@ function create_fragment$1c(ctx) {
1940
2021
  }
1941
2022
  };
1942
2023
  }
1943
- function instance$E($$self, $$props, $$invalidate) {
2024
+ function instance$F($$self, $$props, $$invalidate) {
1944
2025
  let $textStore;
1945
2026
  component_subscribe($$self, TextStore, ($$value) => $$invalidate(9, $textStore = $$value));
1946
2027
  let { emailInputValid = false } = $$props;
@@ -1989,14 +2070,14 @@ function instance$E($$self, $$props, $$invalidate) {
1989
2070
  var EmailInput = class extends SvelteComponent {
1990
2071
  constructor(options) {
1991
2072
  super();
1992
- init(this, options, instance$E, create_fragment$1c, safe_not_equal, {
2073
+ init(this, options, instance$F, create_fragment$1e, safe_not_equal, {
1993
2074
  emailInputValid: 7,
1994
2075
  emailValue: 0,
1995
2076
  placeholder: 1
1996
2077
  });
1997
2078
  }
1998
2079
  };
1999
- function create_fragment$1b(ctx) {
2080
+ function create_fragment$1d(ctx) {
2000
2081
  let svg;
2001
2082
  let path;
2002
2083
  return {
@@ -2026,10 +2107,10 @@ function create_fragment$1b(ctx) {
2026
2107
  var EyeIcon = class extends SvelteComponent {
2027
2108
  constructor(options) {
2028
2109
  super();
2029
- init(this, options, null, create_fragment$1b, safe_not_equal, {});
2110
+ init(this, options, null, create_fragment$1d, safe_not_equal, {});
2030
2111
  }
2031
2112
  };
2032
- function create_fragment$1a(ctx) {
2113
+ function create_fragment$1c(ctx) {
2033
2114
  let svg;
2034
2115
  let path;
2035
2116
  return {
@@ -2059,10 +2140,10 @@ function create_fragment$1a(ctx) {
2059
2140
  var EyeSlashIcon = class extends SvelteComponent {
2060
2141
  constructor(options) {
2061
2142
  super();
2062
- init(this, options, null, create_fragment$1a, safe_not_equal, {});
2143
+ init(this, options, null, create_fragment$1c, safe_not_equal, {});
2063
2144
  }
2064
2145
  };
2065
- function create_if_block_2$i(ctx) {
2146
+ function create_if_block_2$k(ctx) {
2066
2147
  let div;
2067
2148
  let button;
2068
2149
  let mounted;
@@ -2101,7 +2182,7 @@ function create_if_block_2$i(ctx) {
2101
2182
  }
2102
2183
  };
2103
2184
  }
2104
- function create_else_block$f(ctx) {
2185
+ function create_else_block$g(ctx) {
2105
2186
  let eyeslashicon;
2106
2187
  let current;
2107
2188
  eyeslashicon = new EyeSlashIcon({});
@@ -2128,7 +2209,7 @@ function create_else_block$f(ctx) {
2128
2209
  }
2129
2210
  };
2130
2211
  }
2131
- function create_if_block_1$o(ctx) {
2212
+ function create_if_block_1$p(ctx) {
2132
2213
  let eyeicon;
2133
2214
  let current;
2134
2215
  eyeicon = new EyeIcon({});
@@ -2155,7 +2236,7 @@ function create_if_block_1$o(ctx) {
2155
2236
  }
2156
2237
  };
2157
2238
  }
2158
- function create_if_block$w(ctx) {
2239
+ function create_if_block$x(ctx) {
2159
2240
  let div;
2160
2241
  let erroricon;
2161
2242
  let t0;
@@ -2198,7 +2279,7 @@ function create_if_block$w(ctx) {
2198
2279
  }
2199
2280
  };
2200
2281
  }
2201
- function create_fragment$19(ctx) {
2282
+ function create_fragment$1b(ctx) {
2202
2283
  let div3;
2203
2284
  let div0;
2204
2285
  let label;
@@ -2218,9 +2299,9 @@ function create_fragment$19(ctx) {
2218
2299
  let dispose;
2219
2300
  let if_block0 = (
2220
2301
  /*showForgotPasswordLabel*/
2221
- ctx[2] && create_if_block_2$i(ctx)
2302
+ ctx[2] && create_if_block_2$k(ctx)
2222
2303
  );
2223
- const if_block_creators = [create_if_block_1$o, create_else_block$f];
2304
+ const if_block_creators = [create_if_block_1$p, create_else_block$g];
2224
2305
  const if_blocks = [];
2225
2306
  function select_block_type(ctx2, dirty) {
2226
2307
  if (!/*passwordVisible*/
@@ -2232,7 +2313,7 @@ function create_fragment$19(ctx) {
2232
2313
  if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
2233
2314
  let if_block2 = (
2234
2315
  /*inputError*/
2235
- ctx[6] && create_if_block$w(ctx)
2316
+ ctx[6] && create_if_block$x(ctx)
2236
2317
  );
2237
2318
  return {
2238
2319
  c() {
@@ -2335,7 +2416,7 @@ function create_fragment$19(ctx) {
2335
2416
  if (if_block0) {
2336
2417
  if_block0.p(ctx2, dirty);
2337
2418
  } else {
2338
- if_block0 = create_if_block_2$i(ctx2);
2419
+ if_block0 = create_if_block_2$k(ctx2);
2339
2420
  if_block0.c();
2340
2421
  if_block0.m(div0, null);
2341
2422
  }
@@ -2393,7 +2474,7 @@ function create_fragment$19(ctx) {
2393
2474
  transition_in(if_block2, 1);
2394
2475
  }
2395
2476
  } else {
2396
- if_block2 = create_if_block$w(ctx2);
2477
+ if_block2 = create_if_block$x(ctx2);
2397
2478
  if_block2.c();
2398
2479
  transition_in(if_block2, 1);
2399
2480
  if_block2.m(div3, null);
@@ -2431,7 +2512,7 @@ function create_fragment$19(ctx) {
2431
2512
  }
2432
2513
  };
2433
2514
  }
2434
- function instance$D($$self, $$props, $$invalidate) {
2515
+ function instance$E($$self, $$props, $$invalidate) {
2435
2516
  let type;
2436
2517
  let $textStore;
2437
2518
  component_subscribe($$self, TextStore, ($$value) => $$invalidate(15, $textStore = $$value));
@@ -2505,7 +2586,7 @@ function instance$D($$self, $$props, $$invalidate) {
2505
2586
  var PasswordInput = class extends SvelteComponent {
2506
2587
  constructor(options) {
2507
2588
  super();
2508
- init(this, options, instance$D, create_fragment$19, safe_not_equal, {
2589
+ init(this, options, instance$E, create_fragment$1b, safe_not_equal, {
2509
2590
  showForgotPasswordLabel: 2,
2510
2591
  passwordInputValid: 13,
2511
2592
  passwordLabel: 3,
@@ -2515,7 +2596,7 @@ var PasswordInput = class extends SvelteComponent {
2515
2596
  });
2516
2597
  }
2517
2598
  };
2518
- function create_fragment$18(ctx) {
2599
+ function create_fragment$1a(ctx) {
2519
2600
  let svg;
2520
2601
  let path;
2521
2602
  return {
@@ -2545,10 +2626,10 @@ function create_fragment$18(ctx) {
2545
2626
  var SecuredIcon = class extends SvelteComponent {
2546
2627
  constructor(options) {
2547
2628
  super();
2548
- init(this, options, null, create_fragment$18, safe_not_equal, {});
2629
+ init(this, options, null, create_fragment$1a, safe_not_equal, {});
2549
2630
  }
2550
2631
  };
2551
- function create_if_block$v(ctx) {
2632
+ function create_if_block$w(ctx) {
2552
2633
  let div;
2553
2634
  let a;
2554
2635
  let securedicon;
@@ -2589,11 +2670,11 @@ function create_if_block$v(ctx) {
2589
2670
  }
2590
2671
  };
2591
2672
  }
2592
- function create_fragment$17(ctx) {
2673
+ function create_fragment$19(ctx) {
2593
2674
  let if_block_anchor;
2594
2675
  let current;
2595
2676
  let if_block = !/*$app*/
2596
- ctx[0].isPaid && create_if_block$v();
2677
+ ctx[0].isPaid && create_if_block$w();
2597
2678
  return {
2598
2679
  c() {
2599
2680
  if (if_block)
@@ -2615,7 +2696,7 @@ function create_fragment$17(ctx) {
2615
2696
  transition_in(if_block, 1);
2616
2697
  }
2617
2698
  } else {
2618
- if_block = create_if_block$v();
2699
+ if_block = create_if_block$w();
2619
2700
  if_block.c();
2620
2701
  transition_in(if_block, 1);
2621
2702
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -2646,7 +2727,7 @@ function create_fragment$17(ctx) {
2646
2727
  }
2647
2728
  };
2648
2729
  }
2649
- function instance$C($$self, $$props, $$invalidate) {
2730
+ function instance$D($$self, $$props, $$invalidate) {
2650
2731
  let $app;
2651
2732
  component_subscribe($$self, AppStore, ($$value) => $$invalidate(0, $app = $$value));
2652
2733
  return [$app];
@@ -2654,10 +2735,10 @@ function instance$C($$self, $$props, $$invalidate) {
2654
2735
  var ModalFooter = class extends SvelteComponent {
2655
2736
  constructor(options) {
2656
2737
  super();
2657
- init(this, options, instance$C, create_fragment$17, safe_not_equal, {});
2738
+ init(this, options, instance$D, create_fragment$19, safe_not_equal, {});
2658
2739
  }
2659
2740
  };
2660
- function create_fragment$16(ctx) {
2741
+ function create_fragment$18(ctx) {
2661
2742
  let svg;
2662
2743
  let path;
2663
2744
  return {
@@ -2686,7 +2767,7 @@ function create_fragment$16(ctx) {
2686
2767
  var EmailIcon = class extends SvelteComponent {
2687
2768
  constructor(options) {
2688
2769
  super();
2689
- init(this, options, null, create_fragment$16, safe_not_equal, {});
2770
+ init(this, options, null, create_fragment$18, safe_not_equal, {});
2690
2771
  }
2691
2772
  };
2692
2773
  var PasswordlessStore = writable({
@@ -2726,7 +2807,7 @@ var setPasswordlessMode = (mode) => {
2726
2807
  return store;
2727
2808
  });
2728
2809
  };
2729
- function get_each_context$c(ctx, list, i) {
2810
+ function get_each_context$d(ctx, list, i) {
2730
2811
  const child_ctx = ctx.slice();
2731
2812
  child_ctx[22] = list[i];
2732
2813
  return child_ctx;
@@ -2771,7 +2852,7 @@ function create_if_block_6$5(ctx) {
2771
2852
  }
2772
2853
  };
2773
2854
  }
2774
- function create_else_block_1$7(ctx) {
2855
+ function create_else_block_1$8(ctx) {
2775
2856
  let submitbutton;
2776
2857
  let current;
2777
2858
  submitbutton = new SubmitButton({
@@ -2817,7 +2898,7 @@ function create_else_block_1$7(ctx) {
2817
2898
  }
2818
2899
  };
2819
2900
  }
2820
- function create_if_block_5$5(ctx) {
2901
+ function create_if_block_5$7(ctx) {
2821
2902
  let passwordinput;
2822
2903
  let updating_passwordInputValid;
2823
2904
  let updating_display;
@@ -2924,7 +3005,7 @@ function create_if_block_5$5(ctx) {
2924
3005
  }
2925
3006
  };
2926
3007
  }
2927
- function create_if_block_4$7(ctx) {
3008
+ function create_if_block_4$8(ctx) {
2928
3009
  let div;
2929
3010
  let button;
2930
3011
  let mounted;
@@ -2961,7 +3042,7 @@ function create_if_block_4$7(ctx) {
2961
3042
  }
2962
3043
  };
2963
3044
  }
2964
- function create_if_block_3$9(ctx) {
3045
+ function create_if_block_3$b(ctx) {
2965
3046
  let div;
2966
3047
  let button;
2967
3048
  let mounted;
@@ -2998,7 +3079,7 @@ function create_if_block_3$9(ctx) {
2998
3079
  }
2999
3080
  };
3000
3081
  }
3001
- function create_if_block$u(ctx) {
3082
+ function create_if_block$v(ctx) {
3002
3083
  let div4;
3003
3084
  let div3;
3004
3085
  let div0;
@@ -3011,7 +3092,7 @@ function create_if_block$u(ctx) {
3011
3092
  let current;
3012
3093
  let if_block = (
3013
3094
  /*$app*/
3014
- ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$n(ctx)
3095
+ ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$o(ctx)
3015
3096
  );
3016
3097
  let each_value = (
3017
3098
  /*$app*/
@@ -3019,7 +3100,7 @@ function create_if_block$u(ctx) {
3019
3100
  );
3020
3101
  let each_blocks = [];
3021
3102
  for (let i = 0; i < each_value.length; i += 1) {
3022
- each_blocks[i] = create_each_block$c(get_each_context$c(ctx, each_value, i));
3103
+ each_blocks[i] = create_each_block$d(get_each_context$d(ctx, each_value, i));
3023
3104
  }
3024
3105
  return {
3025
3106
  c() {
@@ -3076,7 +3157,7 @@ function create_if_block$u(ctx) {
3076
3157
  transition_in(if_block, 1);
3077
3158
  }
3078
3159
  } else {
3079
- if_block = create_if_block_1$n(ctx2);
3160
+ if_block = create_if_block_1$o(ctx2);
3080
3161
  if_block.c();
3081
3162
  transition_in(if_block, 1);
3082
3163
  if_block.m(div4, t4);
@@ -3094,11 +3175,11 @@ function create_if_block$u(ctx) {
3094
3175
  ctx2[7].authProviders;
3095
3176
  let i;
3096
3177
  for (i = 0; i < each_value.length; i += 1) {
3097
- const child_ctx = get_each_context$c(ctx2, each_value, i);
3178
+ const child_ctx = get_each_context$d(ctx2, each_value, i);
3098
3179
  if (each_blocks[i]) {
3099
3180
  each_blocks[i].p(child_ctx, dirty);
3100
3181
  } else {
3101
- each_blocks[i] = create_each_block$c(child_ctx);
3182
+ each_blocks[i] = create_each_block$d(child_ctx);
3102
3183
  each_blocks[i].c();
3103
3184
  each_blocks[i].m(div4, null);
3104
3185
  }
@@ -3128,12 +3209,12 @@ function create_if_block$u(ctx) {
3128
3209
  }
3129
3210
  };
3130
3211
  }
3131
- function create_if_block_1$n(ctx) {
3212
+ function create_if_block_1$o(ctx) {
3132
3213
  let div;
3133
3214
  let current_block_type_index;
3134
3215
  let if_block;
3135
3216
  let current;
3136
- const if_block_creators = [create_if_block_2$h, create_else_block$e];
3217
+ const if_block_creators = [create_if_block_2$j, create_else_block$f];
3137
3218
  const if_blocks = [];
3138
3219
  function select_block_type_2(ctx2, dirty) {
3139
3220
  if (
@@ -3195,7 +3276,7 @@ function create_if_block_1$n(ctx) {
3195
3276
  }
3196
3277
  };
3197
3278
  }
3198
- function create_else_block$e(ctx) {
3279
+ function create_else_block$f(ctx) {
3199
3280
  let button;
3200
3281
  let span;
3201
3282
  let mounted;
@@ -3234,7 +3315,7 @@ function create_else_block$e(ctx) {
3234
3315
  }
3235
3316
  };
3236
3317
  }
3237
- function create_if_block_2$h(ctx) {
3318
+ function create_if_block_2$j(ctx) {
3238
3319
  let button;
3239
3320
  let emailicon;
3240
3321
  let t0;
@@ -3291,7 +3372,7 @@ function create_if_block_2$h(ctx) {
3291
3372
  }
3292
3373
  };
3293
3374
  }
3294
- function create_each_block$c(ctx) {
3375
+ function create_each_block$d(ctx) {
3295
3376
  let div;
3296
3377
  let button;
3297
3378
  let img;
@@ -3382,7 +3463,7 @@ function create_each_block$c(ctx) {
3382
3463
  }
3383
3464
  };
3384
3465
  }
3385
- function create_fragment$15(ctx) {
3466
+ function create_fragment$17(ctx) {
3386
3467
  let div1;
3387
3468
  let t0;
3388
3469
  let div0;
@@ -3425,7 +3506,7 @@ function create_fragment$15(ctx) {
3425
3506
  }
3426
3507
  emailinput = new EmailInput({ props: emailinput_props });
3427
3508
  binding_callbacks.push(() => bind(emailinput, "emailInputValid", emailinput_emailInputValid_binding));
3428
- const if_block_creators = [create_if_block_5$5, create_else_block_1$7];
3509
+ const if_block_creators = [create_if_block_5$7, create_else_block_1$8];
3429
3510
  const if_blocks = [];
3430
3511
  function select_block_type(ctx2, dirty) {
3431
3512
  if (!/*$PasswordlessStore*/
@@ -3442,19 +3523,19 @@ function create_fragment$15(ctx) {
3442
3523
  ctx2[2].signup && /*params*/
3443
3524
  ctx2[2].signup.plans
3444
3525
  )
3445
- return create_if_block_3$9;
3526
+ return create_if_block_3$b;
3446
3527
  if (
3447
3528
  /*signupButtonURL*/
3448
3529
  ctx2[9]
3449
3530
  )
3450
- return create_if_block_4$7;
3531
+ return create_if_block_4$8;
3451
3532
  }
3452
3533
  let current_block_type = select_block_type_1(ctx);
3453
3534
  let if_block2 = current_block_type && current_block_type(ctx);
3454
3535
  let if_block3 = (
3455
3536
  /*$app*/
3456
3537
  (ctx[7].authProviders.length > 0 || /*$app*/
3457
- ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$u(ctx)
3538
+ ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$v(ctx)
3458
3539
  );
3459
3540
  modalfooter = new ModalFooter({});
3460
3541
  return {
@@ -3596,7 +3677,7 @@ function create_fragment$15(ctx) {
3596
3677
  transition_in(if_block3, 1);
3597
3678
  }
3598
3679
  } else {
3599
- if_block3 = create_if_block$u(ctx2);
3680
+ if_block3 = create_if_block$v(ctx2);
3600
3681
  if_block3.c();
3601
3682
  transition_in(if_block3, 1);
3602
3683
  if_block3.m(div0, null);
@@ -3648,7 +3729,7 @@ function create_fragment$15(ctx) {
3648
3729
  }
3649
3730
  };
3650
3731
  }
3651
- function instance$B($$self, $$props, $$invalidate) {
3732
+ function instance$C($$self, $$props, $$invalidate) {
3652
3733
  let $PasswordlessStore;
3653
3734
  let $app;
3654
3735
  let $textStore;
@@ -3774,7 +3855,7 @@ function instance$B($$self, $$props, $$invalidate) {
3774
3855
  var LoginModal = class extends SvelteComponent {
3775
3856
  constructor(options) {
3776
3857
  super();
3777
- init(this, options, instance$B, create_fragment$15, safe_not_equal, {
3858
+ init(this, options, instance$C, create_fragment$17, safe_not_equal, {
3778
3859
  closeModal: 1,
3779
3860
  display: 0,
3780
3861
  onSuccessLogin: 12,
@@ -3782,15 +3863,15 @@ var LoginModal = class extends SvelteComponent {
3782
3863
  });
3783
3864
  }
3784
3865
  };
3785
- function add_css$k(target) {
3866
+ function add_css$l(target) {
3786
3867
  append_styles(target, "svelte-1w8lbd8", ".rey-was-here.svelte-1w8lbd8{display:none !important}");
3787
3868
  }
3788
- function get_each_context$b(ctx, list, i) {
3869
+ function get_each_context$c(ctx, list, i) {
3789
3870
  const child_ctx = ctx.slice();
3790
3871
  child_ctx[25] = list[i];
3791
3872
  return child_ctx;
3792
3873
  }
3793
- function get_each_context_1$4(ctx, list, i) {
3874
+ function get_each_context_1$5(ctx, list, i) {
3794
3875
  const child_ctx = ctx.slice();
3795
3876
  child_ctx[28] = list[i];
3796
3877
  child_ctx[30] = i;
@@ -3836,7 +3917,7 @@ function create_if_block_6$4(ctx) {
3836
3917
  }
3837
3918
  };
3838
3919
  }
3839
- function create_if_block_5$4(ctx) {
3920
+ function create_if_block_5$6(ctx) {
3840
3921
  let div1;
3841
3922
  let div0;
3842
3923
  let label;
@@ -3906,11 +3987,11 @@ function create_if_block_5$4(ctx) {
3906
3987
  }
3907
3988
  };
3908
3989
  }
3909
- function create_each_block_1$4(ctx) {
3990
+ function create_each_block_1$5(ctx) {
3910
3991
  let if_block_anchor;
3911
3992
  let if_block = (
3912
3993
  /*customField*/
3913
- ctx[28].hidden !== true && create_if_block_5$4(ctx)
3994
+ ctx[28].hidden !== true && create_if_block_5$6(ctx)
3914
3995
  );
3915
3996
  return {
3916
3997
  c() {
@@ -3931,7 +4012,7 @@ function create_each_block_1$4(ctx) {
3931
4012
  if (if_block) {
3932
4013
  if_block.p(ctx2, dirty);
3933
4014
  } else {
3934
- if_block = create_if_block_5$4(ctx2);
4015
+ if_block = create_if_block_5$6(ctx2);
3935
4016
  if_block.c();
3936
4017
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
3937
4018
  }
@@ -3948,7 +4029,7 @@ function create_each_block_1$4(ctx) {
3948
4029
  }
3949
4030
  };
3950
4031
  }
3951
- function create_if_block_4$6(ctx) {
4032
+ function create_if_block_4$7(ctx) {
3952
4033
  let passwordinput;
3953
4034
  let updating_passwordInputValid;
3954
4035
  let current;
@@ -3999,7 +4080,7 @@ function create_if_block_4$6(ctx) {
3999
4080
  }
4000
4081
  };
4001
4082
  }
4002
- function create_else_block_1$6(ctx) {
4083
+ function create_else_block_1$7(ctx) {
4003
4084
  let submitbutton;
4004
4085
  let current;
4005
4086
  submitbutton = new SubmitButton({
@@ -4042,7 +4123,7 @@ function create_else_block_1$6(ctx) {
4042
4123
  }
4043
4124
  };
4044
4125
  }
4045
- function create_if_block_3$8(ctx) {
4126
+ function create_if_block_3$a(ctx) {
4046
4127
  let submitbutton;
4047
4128
  let current;
4048
4129
  submitbutton = new SubmitButton({
@@ -4085,7 +4166,7 @@ function create_if_block_3$8(ctx) {
4085
4166
  }
4086
4167
  };
4087
4168
  }
4088
- function create_if_block$t(ctx) {
4169
+ function create_if_block$u(ctx) {
4089
4170
  let div4;
4090
4171
  let div3;
4091
4172
  let t3;
@@ -4093,7 +4174,7 @@ function create_if_block$t(ctx) {
4093
4174
  let current;
4094
4175
  let if_block = (
4095
4176
  /*$app*/
4096
- ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$m(ctx)
4177
+ ctx[7].additionalAuthMethods.passwordless.enabled === true && create_if_block_1$n(ctx)
4097
4178
  );
4098
4179
  let each_value = (
4099
4180
  /*$app*/
@@ -4101,7 +4182,7 @@ function create_if_block$t(ctx) {
4101
4182
  );
4102
4183
  let each_blocks = [];
4103
4184
  for (let i = 0; i < each_value.length; i += 1) {
4104
- each_blocks[i] = create_each_block$b(get_each_context$b(ctx, each_value, i));
4185
+ each_blocks[i] = create_each_block$c(get_each_context$c(ctx, each_value, i));
4105
4186
  }
4106
4187
  return {
4107
4188
  c() {
@@ -4146,7 +4227,7 @@ function create_if_block$t(ctx) {
4146
4227
  transition_in(if_block, 1);
4147
4228
  }
4148
4229
  } else {
4149
- if_block = create_if_block_1$m(ctx2);
4230
+ if_block = create_if_block_1$n(ctx2);
4150
4231
  if_block.c();
4151
4232
  transition_in(if_block, 1);
4152
4233
  if_block.m(div4, t4);
@@ -4164,11 +4245,11 @@ function create_if_block$t(ctx) {
4164
4245
  ctx2[7].authProviders;
4165
4246
  let i;
4166
4247
  for (i = 0; i < each_value.length; i += 1) {
4167
- const child_ctx = get_each_context$b(ctx2, each_value, i);
4248
+ const child_ctx = get_each_context$c(ctx2, each_value, i);
4168
4249
  if (each_blocks[i]) {
4169
4250
  each_blocks[i].p(child_ctx, dirty);
4170
4251
  } else {
4171
- each_blocks[i] = create_each_block$b(child_ctx);
4252
+ each_blocks[i] = create_each_block$c(child_ctx);
4172
4253
  each_blocks[i].c();
4173
4254
  each_blocks[i].m(div4, null);
4174
4255
  }
@@ -4198,12 +4279,12 @@ function create_if_block$t(ctx) {
4198
4279
  }
4199
4280
  };
4200
4281
  }
4201
- function create_if_block_1$m(ctx) {
4282
+ function create_if_block_1$n(ctx) {
4202
4283
  let div;
4203
4284
  let current_block_type_index;
4204
4285
  let if_block;
4205
4286
  let current;
4206
- const if_block_creators = [create_if_block_2$g, create_else_block$d];
4287
+ const if_block_creators = [create_if_block_2$i, create_else_block$e];
4207
4288
  const if_blocks = [];
4208
4289
  function select_block_type_1(ctx2, dirty) {
4209
4290
  if (
@@ -4265,7 +4346,7 @@ function create_if_block_1$m(ctx) {
4265
4346
  }
4266
4347
  };
4267
4348
  }
4268
- function create_else_block$d(ctx) {
4349
+ function create_else_block$e(ctx) {
4269
4350
  let button;
4270
4351
  let span;
4271
4352
  let mounted;
@@ -4304,7 +4385,7 @@ function create_else_block$d(ctx) {
4304
4385
  }
4305
4386
  };
4306
4387
  }
4307
- function create_if_block_2$g(ctx) {
4388
+ function create_if_block_2$i(ctx) {
4308
4389
  let button;
4309
4390
  let emailicon;
4310
4391
  let t0;
@@ -4361,7 +4442,7 @@ function create_if_block_2$g(ctx) {
4361
4442
  }
4362
4443
  };
4363
4444
  }
4364
- function create_each_block$b(ctx) {
4445
+ function create_each_block$c(ctx) {
4365
4446
  let div;
4366
4447
  let button;
4367
4448
  let img;
@@ -4445,7 +4526,7 @@ function create_each_block$b(ctx) {
4445
4526
  }
4446
4527
  };
4447
4528
  }
4448
- function create_fragment$14(ctx) {
4529
+ function create_fragment$16(ctx) {
4449
4530
  let div4;
4450
4531
  let t0;
4451
4532
  let div3;
@@ -4484,7 +4565,7 @@ function create_fragment$14(ctx) {
4484
4565
  );
4485
4566
  let each_blocks = [];
4486
4567
  for (let i = 0; i < each_value_1.length; i += 1) {
4487
- each_blocks[i] = create_each_block_1$4(get_each_context_1$4(ctx, each_value_1, i));
4568
+ each_blocks[i] = create_each_block_1$5(get_each_context_1$5(ctx, each_value_1, i));
4488
4569
  }
4489
4570
  function emailinput_emailInputValid_binding(value) {
4490
4571
  ctx[12](value);
@@ -4501,9 +4582,9 @@ function create_fragment$14(ctx) {
4501
4582
  binding_callbacks.push(() => bind(emailinput, "emailInputValid", emailinput_emailInputValid_binding));
4502
4583
  let if_block1 = (
4503
4584
  /*$PasswordlessStore*/
4504
- ctx[6].passwordlessMode === false && create_if_block_4$6(ctx)
4585
+ ctx[6].passwordlessMode === false && create_if_block_4$7(ctx)
4505
4586
  );
4506
- const if_block_creators = [create_if_block_3$8, create_else_block_1$6];
4587
+ const if_block_creators = [create_if_block_3$a, create_else_block_1$7];
4507
4588
  const if_blocks = [];
4508
4589
  function select_block_type(ctx2, dirty) {
4509
4590
  if (
@@ -4518,7 +4599,7 @@ function create_fragment$14(ctx) {
4518
4599
  let if_block3 = (
4519
4600
  /*$app*/
4520
4601
  (ctx[7].authProviders.length > 0 || /*$app*/
4521
- ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$t(ctx)
4602
+ ctx[7].additionalAuthMethods.passwordless.enabled === true) && create_if_block$u(ctx)
4522
4603
  );
4523
4604
  modalfooter = new ModalFooter({});
4524
4605
  return {
@@ -4653,11 +4734,11 @@ function create_fragment$14(ctx) {
4653
4734
  ctx2[7].customFields;
4654
4735
  let i;
4655
4736
  for (i = 0; i < each_value_1.length; i += 1) {
4656
- const child_ctx = get_each_context_1$4(ctx2, each_value_1, i);
4737
+ const child_ctx = get_each_context_1$5(ctx2, each_value_1, i);
4657
4738
  if (each_blocks[i]) {
4658
4739
  each_blocks[i].p(child_ctx, dirty);
4659
4740
  } else {
4660
- each_blocks[i] = create_each_block_1$4(child_ctx);
4741
+ each_blocks[i] = create_each_block_1$5(child_ctx);
4661
4742
  each_blocks[i].c();
4662
4743
  each_blocks[i].m(form, t4);
4663
4744
  }
@@ -4687,7 +4768,7 @@ function create_fragment$14(ctx) {
4687
4768
  transition_in(if_block1, 1);
4688
4769
  }
4689
4770
  } else {
4690
- if_block1 = create_if_block_4$6(ctx2);
4771
+ if_block1 = create_if_block_4$7(ctx2);
4691
4772
  if_block1.c();
4692
4773
  transition_in(if_block1, 1);
4693
4774
  if_block1.m(form, t9);
@@ -4731,7 +4812,7 @@ function create_fragment$14(ctx) {
4731
4812
  transition_in(if_block3, 1);
4732
4813
  }
4733
4814
  } else {
4734
- if_block3 = create_if_block$t(ctx2);
4815
+ if_block3 = create_if_block$u(ctx2);
4735
4816
  if_block3.c();
4736
4817
  transition_in(if_block3, 1);
4737
4818
  if_block3.m(div3, null);
@@ -4792,7 +4873,7 @@ function executeCaptcha() {
4792
4873
  return response;
4793
4874
  });
4794
4875
  }
4795
- function instance$A($$self, $$props, $$invalidate) {
4876
+ function instance$B($$self, $$props, $$invalidate) {
4796
4877
  var _a;
4797
4878
  let $PasswordlessStore;
4798
4879
  let $app;
@@ -4965,8 +5046,8 @@ var SignupModal = class extends SvelteComponent {
4965
5046
  init(
4966
5047
  this,
4967
5048
  options,
4968
- instance$A,
4969
- create_fragment$14,
5049
+ instance$B,
5050
+ create_fragment$16,
4970
5051
  safe_not_equal,
4971
5052
  {
4972
5053
  closeModal: 1,
@@ -4974,11 +5055,11 @@ var SignupModal = class extends SvelteComponent {
4974
5055
  onSuccessSignup: 11,
4975
5056
  params: 2
4976
5057
  },
4977
- add_css$k
5058
+ add_css$l
4978
5059
  );
4979
5060
  }
4980
5061
  };
4981
- function create_fragment$13(ctx) {
5062
+ function create_fragment$15(ctx) {
4982
5063
  let svg;
4983
5064
  let path;
4984
5065
  return {
@@ -5007,10 +5088,10 @@ function create_fragment$13(ctx) {
5007
5088
  var BackIcon = class extends SvelteComponent {
5008
5089
  constructor(options) {
5009
5090
  super();
5010
- init(this, options, null, create_fragment$13, safe_not_equal, {});
5091
+ init(this, options, null, create_fragment$15, safe_not_equal, {});
5011
5092
  }
5012
5093
  };
5013
- function create_fragment$12(ctx) {
5094
+ function create_fragment$14(ctx) {
5014
5095
  let div4;
5015
5096
  let div0;
5016
5097
  let button;
@@ -5205,7 +5286,7 @@ function create_fragment$12(ctx) {
5205
5286
  }
5206
5287
  };
5207
5288
  }
5208
- function instance$z($$self, $$props, $$invalidate) {
5289
+ function instance$A($$self, $$props, $$invalidate) {
5209
5290
  let $textStore;
5210
5291
  component_subscribe($$self, TextStore, ($$value) => $$invalidate(9, $textStore = $$value));
5211
5292
  let text2 = $textStore.text;
@@ -5258,10 +5339,10 @@ function instance$z($$self, $$props, $$invalidate) {
5258
5339
  var PassResetModal = class extends SvelteComponent {
5259
5340
  constructor(options) {
5260
5341
  super();
5261
- init(this, options, instance$z, create_fragment$12, safe_not_equal, { closeModal: 5, display: 0 });
5342
+ init(this, options, instance$A, create_fragment$14, safe_not_equal, { closeModal: 5, display: 0 });
5262
5343
  }
5263
5344
  };
5264
- function create_if_block$s(ctx) {
5345
+ function create_if_block$t(ctx) {
5265
5346
  let div;
5266
5347
  let erroricon;
5267
5348
  let t;
@@ -5297,7 +5378,7 @@ function create_if_block$s(ctx) {
5297
5378
  }
5298
5379
  };
5299
5380
  }
5300
- function create_fragment$11(ctx) {
5381
+ function create_fragment$13(ctx) {
5301
5382
  let div3;
5302
5383
  let div0;
5303
5384
  let button;
@@ -5335,18 +5416,18 @@ function create_fragment$11(ctx) {
5335
5416
  });
5336
5417
  figureelement = new FigureElement({});
5337
5418
  let if_block = !/*tokenInputValid*/
5338
- ctx[3] && create_if_block$s();
5419
+ ctx[3] && create_if_block$t();
5339
5420
  function passwordinput_passwordInputValid_binding(value) {
5340
5421
  ctx[9](value);
5341
5422
  }
5342
5423
  let passwordinput_props = {
5343
5424
  passwordPlaceholder: (
5344
5425
  /*text*/
5345
- ctx[5]["reset_password_placeholder"]
5426
+ ctx[5]["reset_password_placeholder"] || "New password"
5346
5427
  ),
5347
5428
  passwordLabel: (
5348
5429
  /*text*/
5349
- ctx[5]["password"] || "Password"
5430
+ ctx[5]["password"] || "Enter a new password"
5350
5431
  )
5351
5432
  };
5352
5433
  if (
@@ -5483,7 +5564,7 @@ function create_fragment$11(ctx) {
5483
5564
  transition_in(if_block, 1);
5484
5565
  }
5485
5566
  } else {
5486
- if_block = create_if_block$s();
5567
+ if_block = create_if_block$t();
5487
5568
  if_block.c();
5488
5569
  transition_in(if_block, 1);
5489
5570
  if_block.m(div1, null);
@@ -5549,7 +5630,7 @@ function create_fragment$11(ctx) {
5549
5630
  }
5550
5631
  };
5551
5632
  }
5552
- function instance$y($$self, $$props, $$invalidate) {
5633
+ function instance$z($$self, $$props, $$invalidate) {
5553
5634
  let $textStore;
5554
5635
  component_subscribe($$self, TextStore, ($$value) => $$invalidate(10, $textStore = $$value));
5555
5636
  let text2 = $textStore.text;
@@ -5646,14 +5727,14 @@ function instance$y($$self, $$props, $$invalidate) {
5646
5727
  var PassTokenModal = class extends SvelteComponent {
5647
5728
  constructor(options) {
5648
5729
  super();
5649
- init(this, options, instance$y, create_fragment$11, safe_not_equal, {
5730
+ init(this, options, instance$z, create_fragment$13, safe_not_equal, {
5650
5731
  closeModal: 1,
5651
5732
  display: 0,
5652
5733
  onSuccessPasswordReset: 7
5653
5734
  });
5654
5735
  }
5655
5736
  };
5656
- function create_fragment$10(ctx) {
5737
+ function create_fragment$12(ctx) {
5657
5738
  let div2;
5658
5739
  let div0;
5659
5740
  let t0;
@@ -5749,7 +5830,7 @@ function create_fragment$10(ctx) {
5749
5830
  }
5750
5831
  };
5751
5832
  }
5752
- function instance$x($$self, $$props, $$invalidate) {
5833
+ function instance$y($$self, $$props, $$invalidate) {
5753
5834
  let { closeModal } = $$props;
5754
5835
  $$self.$$set = ($$props2) => {
5755
5836
  if ("closeModal" in $$props2)
@@ -5760,10 +5841,10 @@ function instance$x($$self, $$props, $$invalidate) {
5760
5841
  var PassSuccessModal = class extends SvelteComponent {
5761
5842
  constructor(options) {
5762
5843
  super();
5763
- init(this, options, instance$x, create_fragment$10, safe_not_equal, { closeModal: 0 });
5844
+ init(this, options, instance$y, create_fragment$12, safe_not_equal, { closeModal: 0 });
5764
5845
  }
5765
5846
  };
5766
- function create_else_block_1$5(ctx) {
5847
+ function create_else_block_1$6(ctx) {
5767
5848
  let button;
5768
5849
  let backicon;
5769
5850
  let current;
@@ -5809,7 +5890,7 @@ function create_else_block_1$5(ctx) {
5809
5890
  }
5810
5891
  };
5811
5892
  }
5812
- function create_if_block_2$f(ctx) {
5893
+ function create_if_block_2$h(ctx) {
5813
5894
  let button;
5814
5895
  let backicon;
5815
5896
  let current;
@@ -5855,7 +5936,7 @@ function create_if_block_2$f(ctx) {
5855
5936
  }
5856
5937
  };
5857
5938
  }
5858
- function create_else_block$c(ctx) {
5939
+ function create_else_block$d(ctx) {
5859
5940
  let h2;
5860
5941
  return {
5861
5942
  c() {
@@ -5874,7 +5955,7 @@ function create_else_block$c(ctx) {
5874
5955
  }
5875
5956
  };
5876
5957
  }
5877
- function create_if_block_1$l(ctx) {
5958
+ function create_if_block_1$m(ctx) {
5878
5959
  let h2;
5879
5960
  return {
5880
5961
  c() {
@@ -5893,7 +5974,7 @@ function create_if_block_1$l(ctx) {
5893
5974
  }
5894
5975
  };
5895
5976
  }
5896
- function create_if_block$r(ctx) {
5977
+ function create_if_block$s(ctx) {
5897
5978
  let div;
5898
5979
  let erroricon;
5899
5980
  let t;
@@ -5929,7 +6010,7 @@ function create_if_block$r(ctx) {
5929
6010
  }
5930
6011
  };
5931
6012
  }
5932
- function create_fragment$$(ctx) {
6013
+ function create_fragment$11(ctx) {
5933
6014
  let div3;
5934
6015
  let div0;
5935
6016
  let current_block_type_index;
@@ -5956,7 +6037,7 @@ function create_fragment$$(ctx) {
5956
6037
  let current;
5957
6038
  let mounted;
5958
6039
  let dispose;
5959
- const if_block_creators = [create_if_block_2$f, create_else_block_1$5];
6040
+ const if_block_creators = [create_if_block_2$h, create_else_block_1$6];
5960
6041
  const if_blocks = [];
5961
6042
  function select_block_type(ctx2, dirty) {
5962
6043
  if (
@@ -5980,13 +6061,13 @@ function create_fragment$$(ctx) {
5980
6061
  /*$PasswordlessStore*/
5981
6062
  ctx2[4].passwordlessModalType === "login"
5982
6063
  )
5983
- return create_if_block_1$l;
5984
- return create_else_block$c;
6064
+ return create_if_block_1$m;
6065
+ return create_else_block$d;
5985
6066
  }
5986
6067
  let current_block_type = select_block_type_1(ctx);
5987
6068
  let if_block1 = current_block_type(ctx);
5988
6069
  let if_block2 = !/*tokenInputValid*/
5989
- ctx[3] && create_if_block$r();
6070
+ ctx[3] && create_if_block$s();
5990
6071
  submitbutton = new SubmitButton({
5991
6072
  props: {
5992
6073
  buttonText: (
@@ -6132,7 +6213,7 @@ function create_fragment$$(ctx) {
6132
6213
  transition_in(if_block2, 1);
6133
6214
  }
6134
6215
  } else {
6135
- if_block2 = create_if_block$r();
6216
+ if_block2 = create_if_block$s();
6136
6217
  if_block2.c();
6137
6218
  transition_in(if_block2, 1);
6138
6219
  if_block2.m(div1, null);
@@ -6187,7 +6268,7 @@ function create_fragment$$(ctx) {
6187
6268
  }
6188
6269
  };
6189
6270
  }
6190
- function instance$w($$self, $$props, $$invalidate) {
6271
+ function instance$x($$self, $$props, $$invalidate) {
6191
6272
  let $PasswordlessStore;
6192
6273
  let $textStore;
6193
6274
  component_subscribe($$self, PasswordlessStore, ($$value) => $$invalidate(4, $PasswordlessStore = $$value));
@@ -6307,7 +6388,7 @@ function instance$w($$self, $$props, $$invalidate) {
6307
6388
  var PasswordlessTokenModal = class extends SvelteComponent {
6308
6389
  constructor(options) {
6309
6390
  super();
6310
- init(this, options, instance$w, create_fragment$$, safe_not_equal, {
6391
+ init(this, options, instance$x, create_fragment$11, safe_not_equal, {
6311
6392
  closeModal: 1,
6312
6393
  display: 0,
6313
6394
  onSuccessPasswordlessToken: 7,
@@ -6315,7 +6396,7 @@ var PasswordlessTokenModal = class extends SvelteComponent {
6315
6396
  });
6316
6397
  }
6317
6398
  };
6318
- function create_fragment$_(ctx) {
6399
+ function create_fragment$10(ctx) {
6319
6400
  let svg;
6320
6401
  let path;
6321
6402
  return {
@@ -6344,10 +6425,10 @@ function create_fragment$_(ctx) {
6344
6425
  var ProfileIcon = class extends SvelteComponent {
6345
6426
  constructor(options) {
6346
6427
  super();
6347
- init(this, options, null, create_fragment$_, safe_not_equal, {});
6428
+ init(this, options, null, create_fragment$10, safe_not_equal, {});
6348
6429
  }
6349
6430
  };
6350
- function create_fragment$Z(ctx) {
6431
+ function create_fragment$$(ctx) {
6351
6432
  let svg;
6352
6433
  let path;
6353
6434
  return {
@@ -6376,10 +6457,10 @@ function create_fragment$Z(ctx) {
6376
6457
  var SecurityIcon = class extends SvelteComponent {
6377
6458
  constructor(options) {
6378
6459
  super();
6379
- init(this, options, null, create_fragment$Z, safe_not_equal, {});
6460
+ init(this, options, null, create_fragment$$, safe_not_equal, {});
6380
6461
  }
6381
6462
  };
6382
- function create_fragment$Y(ctx) {
6463
+ function create_fragment$_(ctx) {
6383
6464
  let svg;
6384
6465
  let path;
6385
6466
  return {
@@ -6408,10 +6489,10 @@ function create_fragment$Y(ctx) {
6408
6489
  var LinkOutIcon = class extends SvelteComponent {
6409
6490
  constructor(options) {
6410
6491
  super();
6411
- init(this, options, null, create_fragment$Y, safe_not_equal, {});
6492
+ init(this, options, null, create_fragment$_, safe_not_equal, {});
6412
6493
  }
6413
6494
  };
6414
- function create_fragment$X(ctx) {
6495
+ function create_fragment$Z(ctx) {
6415
6496
  let svg;
6416
6497
  let path;
6417
6498
  return {
@@ -6442,10 +6523,10 @@ function create_fragment$X(ctx) {
6442
6523
  var LogoutIcon = class extends SvelteComponent {
6443
6524
  constructor(options) {
6444
6525
  super();
6445
- init(this, options, null, create_fragment$X, safe_not_equal, {});
6526
+ init(this, options, null, create_fragment$Z, safe_not_equal, {});
6446
6527
  }
6447
6528
  };
6448
- function create_fragment$W(ctx) {
6529
+ function create_fragment$Y(ctx) {
6449
6530
  let svg;
6450
6531
  let path;
6451
6532
  return {
@@ -6474,10 +6555,10 @@ function create_fragment$W(ctx) {
6474
6555
  var PlansIcon = class extends SvelteComponent {
6475
6556
  constructor(options) {
6476
6557
  super();
6477
- init(this, options, null, create_fragment$W, safe_not_equal, {});
6558
+ init(this, options, null, create_fragment$Y, safe_not_equal, {});
6478
6559
  }
6479
6560
  };
6480
- function create_if_block_1$k(ctx) {
6561
+ function create_if_block_2$g(ctx) {
6481
6562
  let button;
6482
6563
  let profileicon;
6483
6564
  let t;
@@ -6509,7 +6590,7 @@ function create_if_block_1$k(ctx) {
6509
6590
  button,
6510
6591
  "click",
6511
6592
  /*click_handler*/
6512
- ctx[7]
6593
+ ctx[8]
6513
6594
  );
6514
6595
  mounted = true;
6515
6596
  }
@@ -6544,7 +6625,7 @@ function create_if_block_1$k(ctx) {
6544
6625
  }
6545
6626
  };
6546
6627
  }
6547
- function create_if_block$q(ctx) {
6628
+ function create_if_block_1$l(ctx) {
6548
6629
  let button;
6549
6630
  let plansicon;
6550
6631
  let t;
@@ -6576,7 +6657,7 @@ function create_if_block$q(ctx) {
6576
6657
  button,
6577
6658
  "click",
6578
6659
  /*click_handler_2*/
6579
- ctx[9]
6660
+ ctx[10]
6580
6661
  );
6581
6662
  mounted = true;
6582
6663
  }
@@ -6611,51 +6692,127 @@ function create_if_block$q(ctx) {
6611
6692
  }
6612
6693
  };
6613
6694
  }
6614
- function create_fragment$V(ctx) {
6615
- let t0;
6616
- let button0;
6617
- let securityicon;
6618
- let t1;
6619
- let t2;
6620
- let show_if = (
6621
- /*showPlansNavButton*/
6622
- ctx[3]()
6623
- );
6624
- let t3;
6625
- let button1;
6626
- let logouticon;
6627
- let t4;
6695
+ function create_if_block$r(ctx) {
6696
+ let button;
6697
+ let plansicon;
6698
+ let t;
6628
6699
  let current;
6629
6700
  let mounted;
6630
6701
  let dispose;
6631
- let if_block0 = !/*hideProfileSection*/
6632
- ctx[1] && create_if_block_1$k(ctx);
6633
- securityicon = new SecurityIcon({});
6634
- let if_block1 = show_if && create_if_block$q(ctx);
6635
- logouticon = new LogoutIcon({});
6702
+ plansicon = new PlansIcon({});
6636
6703
  return {
6637
6704
  c() {
6638
- if (if_block0)
6639
- if_block0.c();
6640
- t0 = space();
6641
- button0 = element("button");
6642
- create_component(securityicon.$$.fragment);
6643
- t1 = text(" Security");
6644
- t2 = space();
6645
- if (if_block1)
6646
- if_block1.c();
6647
- t3 = space();
6648
- button1 = element("button");
6649
- create_component(logouticon.$$.fragment);
6650
- t4 = text(" Logout");
6651
- attr(button0, "data-cy", "security-btn");
6652
- attr(button0, "class", "ms-modal__profile-option");
6705
+ button = element("button");
6706
+ create_component(plansicon.$$.fragment);
6707
+ t = text(" Team");
6708
+ attr(button, "data-cy", "plans-btn");
6709
+ attr(button, "class", "ms-modal__profile-option");
6653
6710
  toggle_class(
6654
- button0,
6711
+ button,
6655
6712
  "ms-modal__profile-option--active",
6656
6713
  /*displayProfile*/
6657
- ctx[0] === "security" || /*displayProfile*/
6658
- ctx[0] === "changePassword"
6714
+ ctx[0] === "team"
6715
+ );
6716
+ },
6717
+ m(target, anchor) {
6718
+ insert(target, button, anchor);
6719
+ mount_component(plansicon, button, null);
6720
+ append(button, t);
6721
+ current = true;
6722
+ if (!mounted) {
6723
+ dispose = listen(
6724
+ button,
6725
+ "click",
6726
+ /*click_handler_3*/
6727
+ ctx[11]
6728
+ );
6729
+ mounted = true;
6730
+ }
6731
+ },
6732
+ p(ctx2, dirty) {
6733
+ if (!current || dirty & /*displayProfile*/
6734
+ 1) {
6735
+ toggle_class(
6736
+ button,
6737
+ "ms-modal__profile-option--active",
6738
+ /*displayProfile*/
6739
+ ctx2[0] === "team"
6740
+ );
6741
+ }
6742
+ },
6743
+ i(local) {
6744
+ if (current)
6745
+ return;
6746
+ transition_in(plansicon.$$.fragment, local);
6747
+ current = true;
6748
+ },
6749
+ o(local) {
6750
+ transition_out(plansicon.$$.fragment, local);
6751
+ current = false;
6752
+ },
6753
+ d(detaching) {
6754
+ if (detaching)
6755
+ detach(button);
6756
+ destroy_component(plansicon);
6757
+ mounted = false;
6758
+ dispose();
6759
+ }
6760
+ };
6761
+ }
6762
+ function create_fragment$X(ctx) {
6763
+ let t0;
6764
+ let button0;
6765
+ let securityicon;
6766
+ let t1;
6767
+ let t2;
6768
+ let show_if_1 = (
6769
+ /*showPlansNavButton*/
6770
+ ctx[3]()
6771
+ );
6772
+ let t3;
6773
+ let show_if = (
6774
+ /*showTeamNavButton*/
6775
+ ctx[4]()
6776
+ );
6777
+ let t4;
6778
+ let button1;
6779
+ let logouticon;
6780
+ let t5;
6781
+ let current;
6782
+ let mounted;
6783
+ let dispose;
6784
+ let if_block0 = !/*hideProfileSection*/
6785
+ ctx[1] && create_if_block_2$g(ctx);
6786
+ securityicon = new SecurityIcon({});
6787
+ let if_block1 = show_if_1 && create_if_block_1$l(ctx);
6788
+ let if_block2 = show_if && create_if_block$r(ctx);
6789
+ logouticon = new LogoutIcon({});
6790
+ return {
6791
+ c() {
6792
+ if (if_block0)
6793
+ if_block0.c();
6794
+ t0 = space();
6795
+ button0 = element("button");
6796
+ create_component(securityicon.$$.fragment);
6797
+ t1 = text(" Security");
6798
+ t2 = space();
6799
+ if (if_block1)
6800
+ if_block1.c();
6801
+ t3 = space();
6802
+ if (if_block2)
6803
+ if_block2.c();
6804
+ t4 = space();
6805
+ button1 = element("button");
6806
+ create_component(logouticon.$$.fragment);
6807
+ t5 = text(" Logout");
6808
+ attr(button0, "data-cy", "security-btn");
6809
+ attr(button0, "class", "ms-modal__profile-option");
6810
+ toggle_class(
6811
+ button0,
6812
+ "ms-modal__profile-option--active",
6813
+ /*displayProfile*/
6814
+ ctx[0] === "security" || /*displayProfile*/
6815
+ ctx[0] === "changePassword"
6659
6816
  );
6660
6817
  attr(button1, "data-cy", "logout-btn");
6661
6818
  attr(button1, "class", "ms-modal__profile-option");
@@ -6671,9 +6828,12 @@ function create_fragment$V(ctx) {
6671
6828
  if (if_block1)
6672
6829
  if_block1.m(target, anchor);
6673
6830
  insert(target, t3, anchor);
6831
+ if (if_block2)
6832
+ if_block2.m(target, anchor);
6833
+ insert(target, t4, anchor);
6674
6834
  insert(target, button1, anchor);
6675
6835
  mount_component(logouticon, button1, null);
6676
- append(button1, t4);
6836
+ append(button1, t5);
6677
6837
  current = true;
6678
6838
  if (!mounted) {
6679
6839
  dispose = [
@@ -6681,7 +6841,7 @@ function create_fragment$V(ctx) {
6681
6841
  button0,
6682
6842
  "click",
6683
6843
  /*click_handler_1*/
6684
- ctx[8]
6844
+ ctx[9]
6685
6845
  ),
6686
6846
  listen(
6687
6847
  button1,
@@ -6703,7 +6863,7 @@ function create_fragment$V(ctx) {
6703
6863
  transition_in(if_block0, 1);
6704
6864
  }
6705
6865
  } else {
6706
- if_block0 = create_if_block_1$k(ctx2);
6866
+ if_block0 = create_if_block_2$g(ctx2);
6707
6867
  if_block0.c();
6708
6868
  transition_in(if_block0, 1);
6709
6869
  if_block0.m(t0.parentNode, t0);
@@ -6725,8 +6885,10 @@ function create_fragment$V(ctx) {
6725
6885
  ctx2[0] === "changePassword"
6726
6886
  );
6727
6887
  }
6728
- if (show_if)
6888
+ if (show_if_1)
6729
6889
  if_block1.p(ctx2, dirty);
6890
+ if (show_if)
6891
+ if_block2.p(ctx2, dirty);
6730
6892
  },
6731
6893
  i(local) {
6732
6894
  if (current)
@@ -6734,6 +6896,7 @@ function create_fragment$V(ctx) {
6734
6896
  transition_in(if_block0);
6735
6897
  transition_in(securityicon.$$.fragment, local);
6736
6898
  transition_in(if_block1);
6899
+ transition_in(if_block2);
6737
6900
  transition_in(logouticon.$$.fragment, local);
6738
6901
  current = true;
6739
6902
  },
@@ -6741,6 +6904,7 @@ function create_fragment$V(ctx) {
6741
6904
  transition_out(if_block0);
6742
6905
  transition_out(securityicon.$$.fragment, local);
6743
6906
  transition_out(if_block1);
6907
+ transition_out(if_block2);
6744
6908
  transition_out(logouticon.$$.fragment, local);
6745
6909
  current = false;
6746
6910
  },
@@ -6758,6 +6922,10 @@ function create_fragment$V(ctx) {
6758
6922
  if_block1.d(detaching);
6759
6923
  if (detaching)
6760
6924
  detach(t3);
6925
+ if (if_block2)
6926
+ if_block2.d(detaching);
6927
+ if (detaching)
6928
+ detach(t4);
6761
6929
  if (detaching)
6762
6930
  detach(button1);
6763
6931
  destroy_component(logouticon);
@@ -6766,7 +6934,7 @@ function create_fragment$V(ctx) {
6766
6934
  }
6767
6935
  };
6768
6936
  }
6769
- function instance$v($$self, $$props, $$invalidate) {
6937
+ function instance$w($$self, $$props, $$invalidate) {
6770
6938
  let { member } = $$props;
6771
6939
  let { onSuccessLogout } = $$props;
6772
6940
  let { displayProfile } = $$props;
@@ -6797,20 +6965,25 @@ function instance$v($$self, $$props, $$invalidate) {
6797
6965
  });
6798
6966
  }
6799
6967
  function showPlansNavButton() {
6800
- return member.stripeCustomerId || member.planConnections.some((plan) => plan.type === "FREE");
6968
+ return member.stripeCustomerId || member.planConnections.some((plan) => plan.type === "FREE") || member.teams.joinedTeams.length > 0;
6969
+ }
6970
+ function showTeamNavButton() {
6971
+ var _a;
6972
+ return ((_a = member.teams) == null ? void 0 : _a.ownedTeams.length) > 0;
6801
6973
  }
6802
6974
  const click_handler = () => $$invalidate(0, displayProfile = "profile");
6803
6975
  const click_handler_1 = () => $$invalidate(0, displayProfile = "security");
6804
6976
  const click_handler_2 = () => $$invalidate(0, displayProfile = "plans");
6977
+ const click_handler_3 = () => $$invalidate(0, displayProfile = "team");
6805
6978
  $$self.$$set = ($$props2) => {
6806
6979
  if ("member" in $$props2)
6807
- $$invalidate(4, member = $$props2.member);
6980
+ $$invalidate(5, member = $$props2.member);
6808
6981
  if ("onSuccessLogout" in $$props2)
6809
- $$invalidate(5, onSuccessLogout = $$props2.onSuccessLogout);
6982
+ $$invalidate(6, onSuccessLogout = $$props2.onSuccessLogout);
6810
6983
  if ("displayProfile" in $$props2)
6811
6984
  $$invalidate(0, displayProfile = $$props2.displayProfile);
6812
6985
  if ("profileLoader" in $$props2)
6813
- $$invalidate(6, profileLoader = $$props2.profileLoader);
6986
+ $$invalidate(7, profileLoader = $$props2.profileLoader);
6814
6987
  if ("hideProfileSection" in $$props2)
6815
6988
  $$invalidate(1, hideProfileSection2 = $$props2.hideProfileSection);
6816
6989
  };
@@ -6819,27 +6992,29 @@ function instance$v($$self, $$props, $$invalidate) {
6819
6992
  hideProfileSection2,
6820
6993
  logout,
6821
6994
  showPlansNavButton,
6995
+ showTeamNavButton,
6822
6996
  member,
6823
6997
  onSuccessLogout,
6824
6998
  profileLoader,
6825
6999
  click_handler,
6826
7000
  click_handler_1,
6827
- click_handler_2
7001
+ click_handler_2,
7002
+ click_handler_3
6828
7003
  ];
6829
7004
  }
6830
7005
  var ProfileModalNav = class extends SvelteComponent {
6831
7006
  constructor(options) {
6832
7007
  super();
6833
- init(this, options, instance$v, create_fragment$V, safe_not_equal, {
6834
- member: 4,
6835
- onSuccessLogout: 5,
7008
+ init(this, options, instance$w, create_fragment$X, safe_not_equal, {
7009
+ member: 5,
7010
+ onSuccessLogout: 6,
6836
7011
  displayProfile: 0,
6837
- profileLoader: 6,
7012
+ profileLoader: 7,
6838
7013
  hideProfileSection: 1
6839
7014
  });
6840
7015
  }
6841
7016
  };
6842
- function create_fragment$U(ctx) {
7017
+ function create_fragment$W(ctx) {
6843
7018
  let svg;
6844
7019
  let path;
6845
7020
  return {
@@ -6870,10 +7045,10 @@ function create_fragment$U(ctx) {
6870
7045
  var ProfileDefaultImage = class extends SvelteComponent {
6871
7046
  constructor(options) {
6872
7047
  super();
6873
- init(this, options, null, create_fragment$U, safe_not_equal, {});
7048
+ init(this, options, null, create_fragment$W, safe_not_equal, {});
6874
7049
  }
6875
7050
  };
6876
- function create_fragment$T(ctx) {
7051
+ function create_fragment$V(ctx) {
6877
7052
  let svg;
6878
7053
  let g;
6879
7054
  let path0;
@@ -6918,17 +7093,17 @@ function create_fragment$T(ctx) {
6918
7093
  var UploadIcon = class extends SvelteComponent {
6919
7094
  constructor(options) {
6920
7095
  super();
6921
- init(this, options, null, create_fragment$T, safe_not_equal, {});
7096
+ init(this, options, null, create_fragment$V, safe_not_equal, {});
6922
7097
  }
6923
7098
  };
6924
- function get_each_context$a(ctx, list, i) {
7099
+ function get_each_context$b(ctx, list, i) {
6925
7100
  const child_ctx = ctx.slice();
6926
7101
  child_ctx[10] = list[i];
6927
7102
  child_ctx[11] = list;
6928
7103
  child_ctx[12] = i;
6929
7104
  return child_ctx;
6930
7105
  }
6931
- function create_else_block_1$4(ctx) {
7106
+ function create_else_block_1$5(ctx) {
6932
7107
  let profiledefaultimage;
6933
7108
  let current;
6934
7109
  profiledefaultimage = new ProfileDefaultImage({});
@@ -6956,7 +7131,7 @@ function create_else_block_1$4(ctx) {
6956
7131
  }
6957
7132
  };
6958
7133
  }
6959
- function create_if_block_2$e(ctx) {
7134
+ function create_if_block_2$f(ctx) {
6960
7135
  let img;
6961
7136
  let img_src_value;
6962
7137
  return {
@@ -6985,7 +7160,7 @@ function create_if_block_2$e(ctx) {
6985
7160
  }
6986
7161
  };
6987
7162
  }
6988
- function create_else_block$b(ctx) {
7163
+ function create_else_block$c(ctx) {
6989
7164
  let t;
6990
7165
  return {
6991
7166
  c() {
@@ -7000,7 +7175,7 @@ function create_else_block$b(ctx) {
7000
7175
  }
7001
7176
  };
7002
7177
  }
7003
- function create_if_block_1$j(ctx) {
7178
+ function create_if_block_1$k(ctx) {
7004
7179
  let t;
7005
7180
  return {
7006
7181
  c() {
@@ -7015,7 +7190,7 @@ function create_if_block_1$j(ctx) {
7015
7190
  }
7016
7191
  };
7017
7192
  }
7018
- function create_if_block$p(ctx) {
7193
+ function create_if_block$q(ctx) {
7019
7194
  let div1;
7020
7195
  let div0;
7021
7196
  let label;
@@ -7140,11 +7315,11 @@ function create_if_block$p(ctx) {
7140
7315
  }
7141
7316
  };
7142
7317
  }
7143
- function create_each_block$a(ctx) {
7318
+ function create_each_block$b(ctx) {
7144
7319
  let if_block_anchor;
7145
7320
  let if_block = (
7146
7321
  /*customField*/
7147
- ctx[10].hidden !== true && create_if_block$p(ctx)
7322
+ ctx[10].hidden !== true && create_if_block$q(ctx)
7148
7323
  );
7149
7324
  return {
7150
7325
  c() {
@@ -7165,7 +7340,7 @@ function create_each_block$a(ctx) {
7165
7340
  if (if_block) {
7166
7341
  if_block.p(ctx2, dirty);
7167
7342
  } else {
7168
- if_block = create_if_block$p(ctx2);
7343
+ if_block = create_if_block$q(ctx2);
7169
7344
  if_block.c();
7170
7345
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
7171
7346
  }
@@ -7182,7 +7357,7 @@ function create_each_block$a(ctx) {
7182
7357
  }
7183
7358
  };
7184
7359
  }
7185
- function create_fragment$S(ctx) {
7360
+ function create_fragment$U(ctx) {
7186
7361
  let div1;
7187
7362
  let h2;
7188
7363
  let t1;
@@ -7203,7 +7378,7 @@ function create_fragment$S(ctx) {
7203
7378
  let current;
7204
7379
  let mounted;
7205
7380
  let dispose;
7206
- const if_block_creators = [create_if_block_2$e, create_else_block_1$4];
7381
+ const if_block_creators = [create_if_block_2$f, create_else_block_1$5];
7207
7382
  const if_blocks = [];
7208
7383
  function select_block_type(ctx2, dirty) {
7209
7384
  if (
@@ -7219,8 +7394,8 @@ function create_fragment$S(ctx) {
7219
7394
  function select_block_type_1(ctx2, dirty) {
7220
7395
  if (!/*member*/
7221
7396
  ctx2[0].profileImage)
7222
- return create_if_block_1$j;
7223
- return create_else_block$b;
7397
+ return create_if_block_1$k;
7398
+ return create_else_block$c;
7224
7399
  }
7225
7400
  let current_block_type = select_block_type_1(ctx);
7226
7401
  let if_block1 = current_block_type(ctx);
@@ -7230,7 +7405,7 @@ function create_fragment$S(ctx) {
7230
7405
  );
7231
7406
  let each_blocks = [];
7232
7407
  for (let i = 0; i < each_value.length; i += 1) {
7233
- each_blocks[i] = create_each_block$a(get_each_context$a(ctx, each_value, i));
7408
+ each_blocks[i] = create_each_block$b(get_each_context$b(ctx, each_value, i));
7234
7409
  }
7235
7410
  return {
7236
7411
  c() {
@@ -7353,11 +7528,11 @@ function create_fragment$S(ctx) {
7353
7528
  ctx2[1];
7354
7529
  let i;
7355
7530
  for (i = 0; i < each_value.length; i += 1) {
7356
- const child_ctx = get_each_context$a(ctx2, each_value, i);
7531
+ const child_ctx = get_each_context$b(ctx2, each_value, i);
7357
7532
  if (each_blocks[i]) {
7358
7533
  each_blocks[i].p(child_ctx, dirty);
7359
7534
  } else {
7360
- each_blocks[i] = create_each_block$a(child_ctx);
7535
+ each_blocks[i] = create_each_block$b(child_ctx);
7361
7536
  each_blocks[i].c();
7362
7537
  each_blocks[i].m(form, null);
7363
7538
  }
@@ -7400,7 +7575,7 @@ function create_fragment$S(ctx) {
7400
7575
  }
7401
7576
  };
7402
7577
  }
7403
- function instance$u($$self, $$props, $$invalidate) {
7578
+ function instance$v($$self, $$props, $$invalidate) {
7404
7579
  let { customFields } = $$props;
7405
7580
  let { member } = $$props;
7406
7581
  let { profileLoader } = $$props;
@@ -7503,14 +7678,14 @@ function instance$u($$self, $$props, $$invalidate) {
7503
7678
  var ProfileInfoContent = class extends SvelteComponent {
7504
7679
  constructor(options) {
7505
7680
  super();
7506
- init(this, options, instance$u, create_fragment$S, safe_not_equal, {
7681
+ init(this, options, instance$v, create_fragment$U, safe_not_equal, {
7507
7682
  customFields: 1,
7508
7683
  member: 0,
7509
7684
  profileLoader: 5
7510
7685
  });
7511
7686
  }
7512
7687
  };
7513
- function create_fragment$R(ctx) {
7688
+ function create_fragment$T(ctx) {
7514
7689
  let svg;
7515
7690
  let path;
7516
7691
  return {
@@ -7539,15 +7714,15 @@ function create_fragment$R(ctx) {
7539
7714
  var PasswordLockIcon = class extends SvelteComponent {
7540
7715
  constructor(options) {
7541
7716
  super();
7542
- init(this, options, null, create_fragment$R, safe_not_equal, {});
7717
+ init(this, options, null, create_fragment$T, safe_not_equal, {});
7543
7718
  }
7544
7719
  };
7545
- function get_each_context$9(ctx, list, i) {
7720
+ function get_each_context$a(ctx, list, i) {
7546
7721
  const child_ctx = ctx.slice();
7547
7722
  child_ctx[16] = list[i];
7548
7723
  return child_ctx;
7549
7724
  }
7550
- function create_else_block_1$3(ctx) {
7725
+ function create_else_block_1$4(ctx) {
7551
7726
  let t;
7552
7727
  return {
7553
7728
  c() {
@@ -7562,7 +7737,7 @@ function create_else_block_1$3(ctx) {
7562
7737
  }
7563
7738
  };
7564
7739
  }
7565
- function create_if_block_2$d(ctx) {
7740
+ function create_if_block_2$e(ctx) {
7566
7741
  let t;
7567
7742
  return {
7568
7743
  c() {
@@ -7577,7 +7752,7 @@ function create_if_block_2$d(ctx) {
7577
7752
  }
7578
7753
  };
7579
7754
  }
7580
- function create_if_block$o(ctx) {
7755
+ function create_if_block$p(ctx) {
7581
7756
  let p;
7582
7757
  let t1;
7583
7758
  let div;
@@ -7592,9 +7767,9 @@ function create_if_block$o(ctx) {
7592
7767
  ctx2[16].provider
7593
7768
  );
7594
7769
  for (let i = 0; i < each_value.length; i += 1) {
7595
- let child_ctx = get_each_context$9(ctx, each_value, i);
7770
+ let child_ctx = get_each_context$a(ctx, each_value, i);
7596
7771
  let key = get_key(child_ctx);
7597
- each_1_lookup.set(key, each_blocks[i] = create_each_block$9(key, child_ctx));
7772
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$a(key, child_ctx));
7598
7773
  }
7599
7774
  return {
7600
7775
  c() {
@@ -7623,7 +7798,7 @@ function create_if_block$o(ctx) {
7623
7798
  210) {
7624
7799
  each_value = /*$app*/
7625
7800
  ctx2[4].authProviders;
7626
- 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);
7801
+ 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);
7627
7802
  }
7628
7803
  },
7629
7804
  d(detaching) {
@@ -7639,7 +7814,7 @@ function create_if_block$o(ctx) {
7639
7814
  }
7640
7815
  };
7641
7816
  }
7642
- function create_else_block$a(ctx) {
7817
+ function create_else_block$b(ctx) {
7643
7818
  let button;
7644
7819
  let img;
7645
7820
  let img_src_value;
@@ -7716,7 +7891,7 @@ function create_else_block$a(ctx) {
7716
7891
  }
7717
7892
  };
7718
7893
  }
7719
- function create_if_block_1$i(ctx) {
7894
+ function create_if_block_1$j(ctx) {
7720
7895
  let button;
7721
7896
  let img;
7722
7897
  let img_src_value;
@@ -7794,7 +7969,7 @@ function create_if_block_1$i(ctx) {
7794
7969
  }
7795
7970
  };
7796
7971
  }
7797
- function create_each_block$9(key_1, ctx) {
7972
+ function create_each_block$a(key_1, ctx) {
7798
7973
  let div;
7799
7974
  let show_if;
7800
7975
  let t;
@@ -7816,8 +7991,8 @@ function create_each_block$9(key_1, ctx) {
7816
7991
  show_if = !!/*member*/
7817
7992
  ctx2[1].auth.providers.some(func2);
7818
7993
  if (show_if)
7819
- return create_if_block_1$i;
7820
- return create_else_block$a;
7994
+ return create_if_block_1$j;
7995
+ return create_else_block$b;
7821
7996
  }
7822
7997
  let current_block_type = select_block_type_1(ctx, -1);
7823
7998
  let if_block = current_block_type(ctx);
@@ -7856,7 +8031,7 @@ function create_each_block$9(key_1, ctx) {
7856
8031
  }
7857
8032
  };
7858
8033
  }
7859
- function create_fragment$Q(ctx) {
8034
+ function create_fragment$S(ctx) {
7860
8035
  let div1;
7861
8036
  let h2;
7862
8037
  let t1;
@@ -7909,14 +8084,14 @@ function create_fragment$Q(ctx) {
7909
8084
  function select_block_type(ctx2, dirty) {
7910
8085
  if (!/*member*/
7911
8086
  ctx2[1].auth.hasPassword)
7912
- return create_if_block_2$d;
7913
- return create_else_block_1$3;
8087
+ return create_if_block_2$e;
8088
+ return create_else_block_1$4;
7914
8089
  }
7915
8090
  let current_block_type = select_block_type(ctx);
7916
8091
  let if_block0 = current_block_type(ctx);
7917
8092
  let if_block1 = (
7918
8093
  /*$app*/
7919
- ctx[4].authProviders.length > 0 && create_if_block$o(ctx)
8094
+ ctx[4].authProviders.length > 0 && create_if_block$p(ctx)
7920
8095
  );
7921
8096
  return {
7922
8097
  c() {
@@ -8042,7 +8217,7 @@ function create_fragment$Q(ctx) {
8042
8217
  if (if_block1) {
8043
8218
  if_block1.p(ctx2, dirty);
8044
8219
  } else {
8045
- if_block1 = create_if_block$o(ctx2);
8220
+ if_block1 = create_if_block$p(ctx2);
8046
8221
  if_block1.c();
8047
8222
  if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
8048
8223
  }
@@ -8088,7 +8263,7 @@ function create_fragment$Q(ctx) {
8088
8263
  }
8089
8264
  };
8090
8265
  }
8091
- function instance$t($$self, $$props, $$invalidate) {
8266
+ function instance$u($$self, $$props, $$invalidate) {
8092
8267
  let $app;
8093
8268
  component_subscribe($$self, AppStore, ($$value) => $$invalidate(4, $app = $$value));
8094
8269
  let { displayProfile } = $$props;
@@ -8197,7 +8372,7 @@ function instance$t($$self, $$props, $$invalidate) {
8197
8372
  var SecurityInfoContent = class extends SvelteComponent {
8198
8373
  constructor(options) {
8199
8374
  super();
8200
- init(this, options, instance$t, create_fragment$Q, safe_not_equal, {
8375
+ init(this, options, instance$u, create_fragment$S, safe_not_equal, {
8201
8376
  displayProfile: 0,
8202
8377
  member: 1,
8203
8378
  emailValue: 2,
@@ -8205,7 +8380,7 @@ var SecurityInfoContent = class extends SvelteComponent {
8205
8380
  });
8206
8381
  }
8207
8382
  };
8208
- function create_else_block$9(ctx) {
8383
+ function create_else_block$a(ctx) {
8209
8384
  let t;
8210
8385
  return {
8211
8386
  c() {
@@ -8220,7 +8395,7 @@ function create_else_block$9(ctx) {
8220
8395
  }
8221
8396
  };
8222
8397
  }
8223
- function create_if_block_1$h(ctx) {
8398
+ function create_if_block_1$i(ctx) {
8224
8399
  let t;
8225
8400
  return {
8226
8401
  c() {
@@ -8235,7 +8410,7 @@ function create_if_block_1$h(ctx) {
8235
8410
  }
8236
8411
  };
8237
8412
  }
8238
- function create_if_block$n(ctx) {
8413
+ function create_if_block$o(ctx) {
8239
8414
  let passwordinput;
8240
8415
  let updating_passwordValue;
8241
8416
  let updating_passwordInputValid;
@@ -8308,7 +8483,7 @@ function create_if_block$n(ctx) {
8308
8483
  }
8309
8484
  };
8310
8485
  }
8311
- function create_fragment$P(ctx) {
8486
+ function create_fragment$R(ctx) {
8312
8487
  let div3;
8313
8488
  let div1;
8314
8489
  let div0;
@@ -8338,14 +8513,14 @@ function create_fragment$P(ctx) {
8338
8513
  function select_block_type(ctx2, dirty) {
8339
8514
  if (!/*member*/
8340
8515
  ctx2[1].auth.hasPassword)
8341
- return create_if_block_1$h;
8342
- return create_else_block$9;
8516
+ return create_if_block_1$i;
8517
+ return create_else_block$a;
8343
8518
  }
8344
8519
  let current_block_type = select_block_type(ctx);
8345
8520
  let if_block0 = current_block_type(ctx);
8346
8521
  let if_block1 = (
8347
8522
  /*member*/
8348
- ctx[1].auth.hasPassword && create_if_block$n(ctx)
8523
+ ctx[1].auth.hasPassword && create_if_block$o(ctx)
8349
8524
  );
8350
8525
  function passwordinput0_passwordValue_binding(value) {
8351
8526
  ctx[13](value);
@@ -8511,7 +8686,7 @@ function create_fragment$P(ctx) {
8511
8686
  transition_in(if_block1, 1);
8512
8687
  }
8513
8688
  } else {
8514
- if_block1 = create_if_block$n(ctx2);
8689
+ if_block1 = create_if_block$o(ctx2);
8515
8690
  if_block1.c();
8516
8691
  transition_in(if_block1, 1);
8517
8692
  if_block1.m(form, t4);
@@ -8590,7 +8765,7 @@ function create_fragment$P(ctx) {
8590
8765
  }
8591
8766
  };
8592
8767
  }
8593
- function instance$s($$self, $$props, $$invalidate) {
8768
+ function instance$t($$self, $$props, $$invalidate) {
8594
8769
  let { displayProfile } = $$props;
8595
8770
  let { profileLoader } = $$props;
8596
8771
  let { member } = $$props;
@@ -8687,7 +8862,7 @@ function instance$s($$self, $$props, $$invalidate) {
8687
8862
  var PasswordInfoContent = class extends SvelteComponent {
8688
8863
  constructor(options) {
8689
8864
  super();
8690
- init(this, options, instance$s, create_fragment$P, safe_not_equal, {
8865
+ init(this, options, instance$t, create_fragment$R, safe_not_equal, {
8691
8866
  displayProfile: 0,
8692
8867
  profileLoader: 9,
8693
8868
  member: 1
@@ -8727,7 +8902,7 @@ function slide(node, { delay = 0, duration = 400, easing = cubicOut, axis = "y"
8727
8902
  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;`
8728
8903
  };
8729
8904
  }
8730
- function create_fragment$O(ctx) {
8905
+ function create_fragment$Q(ctx) {
8731
8906
  let div;
8732
8907
  let loadingicon;
8733
8908
  let div_transition;
@@ -8777,10 +8952,10 @@ function create_fragment$O(ctx) {
8777
8952
  var ProfileLoader = class extends SvelteComponent {
8778
8953
  constructor(options) {
8779
8954
  super();
8780
- init(this, options, null, create_fragment$O, safe_not_equal, {});
8955
+ init(this, options, null, create_fragment$Q, safe_not_equal, {});
8781
8956
  }
8782
8957
  };
8783
- function create_fragment$N(ctx) {
8958
+ function create_fragment$P(ctx) {
8784
8959
  let button;
8785
8960
  let switch_instance0;
8786
8961
  let t0;
@@ -8946,7 +9121,7 @@ function create_fragment$N(ctx) {
8946
9121
  }
8947
9122
  };
8948
9123
  }
8949
- function instance$r($$self, $$props, $$invalidate) {
9124
+ function instance$s($$self, $$props, $$invalidate) {
8950
9125
  const omit_props_names = ["buttonText", "buttonRightIcon", "buttonLeftIcon", "onClick"];
8951
9126
  let $$restProps = compute_rest_props($$props, omit_props_names);
8952
9127
  let $app;
@@ -8977,7 +9152,7 @@ function instance$r($$self, $$props, $$invalidate) {
8977
9152
  var RegularButton = class extends SvelteComponent {
8978
9153
  constructor(options) {
8979
9154
  super();
8980
- init(this, options, instance$r, create_fragment$N, safe_not_equal, {
9155
+ init(this, options, instance$s, create_fragment$P, safe_not_equal, {
8981
9156
  buttonText: 0,
8982
9157
  buttonRightIcon: 1,
8983
9158
  buttonLeftIcon: 2,
@@ -8985,7 +9160,7 @@ var RegularButton = class extends SvelteComponent {
8985
9160
  });
8986
9161
  }
8987
9162
  };
8988
- function create_fragment$M(ctx) {
9163
+ function create_fragment$O(ctx) {
8989
9164
  let button;
8990
9165
  let t;
8991
9166
  let button_class_value;
@@ -9055,7 +9230,7 @@ function create_fragment$M(ctx) {
9055
9230
  }
9056
9231
  };
9057
9232
  }
9058
- function instance$q($$self, $$props, $$invalidate) {
9233
+ function instance$r($$self, $$props, $$invalidate) {
9059
9234
  const omit_props_names = ["buttonText", "onClick"];
9060
9235
  let $$restProps = compute_rest_props($$props, omit_props_names);
9061
9236
  let $app;
@@ -9080,16 +9255,21 @@ function instance$q($$self, $$props, $$invalidate) {
9080
9255
  var TextButton = class extends SvelteComponent {
9081
9256
  constructor(options) {
9082
9257
  super();
9083
- init(this, options, instance$q, create_fragment$M, safe_not_equal, { buttonText: 0, onClick: 1 });
9258
+ init(this, options, instance$r, create_fragment$O, safe_not_equal, { buttonText: 0, onClick: 1 });
9084
9259
  }
9085
9260
  };
9086
- function get_each_context$8(ctx, list, i) {
9261
+ function get_each_context$9(ctx, list, i) {
9087
9262
  const child_ctx = ctx.slice();
9088
- child_ctx[8] = list[i];
9089
- child_ctx[10] = i;
9263
+ child_ctx[11] = list[i];
9264
+ child_ctx[13] = i;
9090
9265
  return child_ctx;
9091
9266
  }
9092
- function create_if_block_2$c(ctx) {
9267
+ function get_each_context_1$4(ctx, list, i) {
9268
+ const child_ctx = ctx.slice();
9269
+ child_ctx[14] = list[i];
9270
+ return child_ctx;
9271
+ }
9272
+ function create_if_block_3$9(ctx) {
9093
9273
  let div;
9094
9274
  let regularbutton;
9095
9275
  let current;
@@ -9097,7 +9277,7 @@ function create_if_block_2$c(ctx) {
9097
9277
  props: {
9098
9278
  onClick: (
9099
9279
  /*launchPortal*/
9100
- ctx[3]
9280
+ ctx[4]
9101
9281
  ),
9102
9282
  class: "ms-modal__regular-button--margin-right ms-modal__regular-button--left-icon",
9103
9283
  buttonText: "Manage Subscriptions",
@@ -9134,18 +9314,18 @@ function create_if_block_2$c(ctx) {
9134
9314
  }
9135
9315
  };
9136
9316
  }
9137
- function create_if_block_1$g(ctx) {
9317
+ function create_if_block_2$d(ctx) {
9138
9318
  let h3;
9139
9319
  let t1;
9140
9320
  let each_1_anchor;
9141
9321
  let current;
9142
- let each_value = (
9143
- /*freePlanConnections*/
9322
+ let each_value_1 = (
9323
+ /*joinedTeams*/
9144
9324
  ctx[1]
9145
9325
  );
9146
9326
  let each_blocks = [];
9147
- for (let i = 0; i < each_value.length; i += 1) {
9148
- each_blocks[i] = create_each_block$8(get_each_context$8(ctx, each_value, i));
9327
+ for (let i = 0; i < each_value_1.length; i += 1) {
9328
+ each_blocks[i] = create_each_block_1$4(get_each_context_1$4(ctx, each_value_1, i));
9149
9329
  }
9150
9330
  const out = (i) => transition_out(each_blocks[i], 1, 1, () => {
9151
9331
  each_blocks[i] = null;
@@ -9153,7 +9333,7 @@ function create_if_block_1$g(ctx) {
9153
9333
  return {
9154
9334
  c() {
9155
9335
  h3 = element("h3");
9156
- h3.textContent = "Free Plans";
9336
+ h3.textContent = "Team Plans";
9157
9337
  t1 = space();
9158
9338
  for (let i = 0; i < each_blocks.length; i += 1) {
9159
9339
  each_blocks[i].c();
@@ -9172,25 +9352,25 @@ function create_if_block_1$g(ctx) {
9172
9352
  current = true;
9173
9353
  },
9174
9354
  p(ctx2, dirty) {
9175
- if (dirty & /*removeFreePlan, freePlanConnections, $app*/
9176
- 22) {
9177
- each_value = /*freePlanConnections*/
9355
+ if (dirty & /*removeMemberFromTeam, joinedTeams, member*/
9356
+ 67) {
9357
+ each_value_1 = /*joinedTeams*/
9178
9358
  ctx2[1];
9179
9359
  let i;
9180
- for (i = 0; i < each_value.length; i += 1) {
9181
- const child_ctx = get_each_context$8(ctx2, each_value, i);
9360
+ for (i = 0; i < each_value_1.length; i += 1) {
9361
+ const child_ctx = get_each_context_1$4(ctx2, each_value_1, i);
9182
9362
  if (each_blocks[i]) {
9183
9363
  each_blocks[i].p(child_ctx, dirty);
9184
9364
  transition_in(each_blocks[i], 1);
9185
9365
  } else {
9186
- each_blocks[i] = create_each_block$8(child_ctx);
9366
+ each_blocks[i] = create_each_block_1$4(child_ctx);
9187
9367
  each_blocks[i].c();
9188
9368
  transition_in(each_blocks[i], 1);
9189
9369
  each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
9190
9370
  }
9191
9371
  }
9192
9372
  group_outros();
9193
- for (i = each_value.length; i < each_blocks.length; i += 1) {
9373
+ for (i = each_value_1.length; i < each_blocks.length; i += 1) {
9194
9374
  out(i);
9195
9375
  }
9196
9376
  check_outros();
@@ -9199,7 +9379,7 @@ function create_if_block_1$g(ctx) {
9199
9379
  i(local) {
9200
9380
  if (current)
9201
9381
  return;
9202
- for (let i = 0; i < each_value.length; i += 1) {
9382
+ for (let i = 0; i < each_value_1.length; i += 1) {
9203
9383
  transition_in(each_blocks[i]);
9204
9384
  }
9205
9385
  current = true;
@@ -9222,40 +9402,30 @@ function create_if_block_1$g(ctx) {
9222
9402
  }
9223
9403
  };
9224
9404
  }
9225
- function create_each_block$8(ctx) {
9405
+ function create_each_block_1$4(ctx) {
9226
9406
  let div1;
9227
9407
  let div0;
9228
9408
  let b;
9229
9409
  let t0_value = (
9230
- /*$app*/
9231
- ctx[2].plans.find(func2).name + ""
9410
+ /*team*/
9411
+ ctx[14].planName + ""
9232
9412
  );
9233
9413
  let t0;
9234
9414
  let t1;
9235
9415
  let textbutton;
9236
9416
  let t2;
9237
9417
  let current;
9238
- function func2(...args) {
9418
+ function func2() {
9239
9419
  return (
9240
9420
  /*func*/
9241
- ctx[6](
9242
- /*memberPlan*/
9243
- ctx[8],
9244
- ...args
9245
- )
9246
- );
9247
- }
9248
- function func_12() {
9249
- return (
9250
- /*func_1*/
9251
- ctx[7](
9252
- /*memberPlan*/
9253
- ctx[8]
9421
+ ctx[8](
9422
+ /*team*/
9423
+ ctx[14]
9254
9424
  )
9255
9425
  );
9256
9426
  }
9257
9427
  textbutton = new TextButton({
9258
- props: { buttonText: "Remove", onClick: func_12 }
9428
+ props: { buttonText: "Leave Team", onClick: func2 }
9259
9429
  });
9260
9430
  return {
9261
9431
  c() {
@@ -9280,14 +9450,14 @@ function create_each_block$8(ctx) {
9280
9450
  },
9281
9451
  p(new_ctx, dirty) {
9282
9452
  ctx = new_ctx;
9283
- if ((!current || dirty & /*$app, freePlanConnections*/
9284
- 6) && t0_value !== (t0_value = /*$app*/
9285
- ctx[2].plans.find(func2).name + ""))
9453
+ if ((!current || dirty & /*joinedTeams*/
9454
+ 2) && t0_value !== (t0_value = /*team*/
9455
+ ctx[14].planName + ""))
9286
9456
  set_data(t0, t0_value);
9287
9457
  const textbutton_changes = {};
9288
- if (dirty & /*freePlanConnections*/
9289
- 2)
9290
- textbutton_changes.onClick = func_12;
9458
+ if (dirty & /*joinedTeams, member*/
9459
+ 3)
9460
+ textbutton_changes.onClick = func2;
9291
9461
  textbutton.$set(textbutton_changes);
9292
9462
  },
9293
9463
  i(local) {
@@ -9307,40 +9477,218 @@ function create_each_block$8(ctx) {
9307
9477
  }
9308
9478
  };
9309
9479
  }
9310
- function create_if_block$m(ctx) {
9311
- let div;
9312
- return {
9313
- c() {
9314
- div = element("div");
9315
- div.textContent = "You currently have no plans.";
9316
- },
9317
- m(target, anchor) {
9318
- insert(target, div, anchor);
9319
- },
9480
+ function create_if_block_1$h(ctx) {
9481
+ let h3;
9482
+ let t1;
9483
+ let each_1_anchor;
9484
+ let current;
9485
+ let each_value = (
9486
+ /*freePlanConnections*/
9487
+ ctx[2]
9488
+ );
9489
+ let each_blocks = [];
9490
+ for (let i = 0; i < each_value.length; i += 1) {
9491
+ each_blocks[i] = create_each_block$9(get_each_context$9(ctx, each_value, i));
9492
+ }
9493
+ const out = (i) => transition_out(each_blocks[i], 1, 1, () => {
9494
+ each_blocks[i] = null;
9495
+ });
9496
+ return {
9497
+ c() {
9498
+ h3 = element("h3");
9499
+ h3.textContent = "Free Plans";
9500
+ t1 = space();
9501
+ for (let i = 0; i < each_blocks.length; i += 1) {
9502
+ each_blocks[i].c();
9503
+ }
9504
+ each_1_anchor = empty();
9505
+ },
9506
+ m(target, anchor) {
9507
+ insert(target, h3, anchor);
9508
+ insert(target, t1, anchor);
9509
+ for (let i = 0; i < each_blocks.length; i += 1) {
9510
+ if (each_blocks[i]) {
9511
+ each_blocks[i].m(target, anchor);
9512
+ }
9513
+ }
9514
+ insert(target, each_1_anchor, anchor);
9515
+ current = true;
9516
+ },
9517
+ p(ctx2, dirty) {
9518
+ if (dirty & /*removeFreePlan, freePlanConnections, $app*/
9519
+ 44) {
9520
+ each_value = /*freePlanConnections*/
9521
+ ctx2[2];
9522
+ let i;
9523
+ for (i = 0; i < each_value.length; i += 1) {
9524
+ const child_ctx = get_each_context$9(ctx2, each_value, i);
9525
+ if (each_blocks[i]) {
9526
+ each_blocks[i].p(child_ctx, dirty);
9527
+ transition_in(each_blocks[i], 1);
9528
+ } else {
9529
+ each_blocks[i] = create_each_block$9(child_ctx);
9530
+ each_blocks[i].c();
9531
+ transition_in(each_blocks[i], 1);
9532
+ each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
9533
+ }
9534
+ }
9535
+ group_outros();
9536
+ for (i = each_value.length; i < each_blocks.length; i += 1) {
9537
+ out(i);
9538
+ }
9539
+ check_outros();
9540
+ }
9541
+ },
9542
+ i(local) {
9543
+ if (current)
9544
+ return;
9545
+ for (let i = 0; i < each_value.length; i += 1) {
9546
+ transition_in(each_blocks[i]);
9547
+ }
9548
+ current = true;
9549
+ },
9550
+ o(local) {
9551
+ each_blocks = each_blocks.filter(Boolean);
9552
+ for (let i = 0; i < each_blocks.length; i += 1) {
9553
+ transition_out(each_blocks[i]);
9554
+ }
9555
+ current = false;
9556
+ },
9557
+ d(detaching) {
9558
+ if (detaching)
9559
+ detach(h3);
9560
+ if (detaching)
9561
+ detach(t1);
9562
+ destroy_each(each_blocks, detaching);
9563
+ if (detaching)
9564
+ detach(each_1_anchor);
9565
+ }
9566
+ };
9567
+ }
9568
+ function create_each_block$9(ctx) {
9569
+ let div1;
9570
+ let div0;
9571
+ let b;
9572
+ let t0_value = (
9573
+ /*$app*/
9574
+ ctx[3].plans.find(func_12).name + ""
9575
+ );
9576
+ let t0;
9577
+ let t1;
9578
+ let textbutton;
9579
+ let t2;
9580
+ let current;
9581
+ function func_12(...args) {
9582
+ return (
9583
+ /*func_1*/
9584
+ ctx[9](
9585
+ /*memberPlan*/
9586
+ ctx[11],
9587
+ ...args
9588
+ )
9589
+ );
9590
+ }
9591
+ function func_22() {
9592
+ return (
9593
+ /*func_2*/
9594
+ ctx[10](
9595
+ /*memberPlan*/
9596
+ ctx[11]
9597
+ )
9598
+ );
9599
+ }
9600
+ textbutton = new TextButton({
9601
+ props: { buttonText: "Remove", onClick: func_22 }
9602
+ });
9603
+ return {
9604
+ c() {
9605
+ div1 = element("div");
9606
+ div0 = element("div");
9607
+ b = element("b");
9608
+ t0 = text(t0_value);
9609
+ t1 = space();
9610
+ create_component(textbutton.$$.fragment);
9611
+ t2 = space();
9612
+ attr(div1, "class", "ms-modal__card");
9613
+ },
9614
+ m(target, anchor) {
9615
+ insert(target, div1, anchor);
9616
+ append(div1, div0);
9617
+ append(div0, b);
9618
+ append(b, t0);
9619
+ append(div1, t1);
9620
+ mount_component(textbutton, div1, null);
9621
+ append(div1, t2);
9622
+ current = true;
9623
+ },
9624
+ p(new_ctx, dirty) {
9625
+ ctx = new_ctx;
9626
+ if ((!current || dirty & /*$app, freePlanConnections*/
9627
+ 12) && t0_value !== (t0_value = /*$app*/
9628
+ ctx[3].plans.find(func_12).name + ""))
9629
+ set_data(t0, t0_value);
9630
+ const textbutton_changes = {};
9631
+ if (dirty & /*freePlanConnections*/
9632
+ 4)
9633
+ textbutton_changes.onClick = func_22;
9634
+ textbutton.$set(textbutton_changes);
9635
+ },
9636
+ i(local) {
9637
+ if (current)
9638
+ return;
9639
+ transition_in(textbutton.$$.fragment, local);
9640
+ current = true;
9641
+ },
9642
+ o(local) {
9643
+ transition_out(textbutton.$$.fragment, local);
9644
+ current = false;
9645
+ },
9646
+ d(detaching) {
9647
+ if (detaching)
9648
+ detach(div1);
9649
+ destroy_component(textbutton);
9650
+ }
9651
+ };
9652
+ }
9653
+ function create_if_block$n(ctx) {
9654
+ let div;
9655
+ return {
9656
+ c() {
9657
+ div = element("div");
9658
+ div.textContent = "You currently have free no plans.";
9659
+ },
9660
+ m(target, anchor) {
9661
+ insert(target, div, anchor);
9662
+ },
9320
9663
  d(detaching) {
9321
9664
  if (detaching)
9322
9665
  detach(div);
9323
9666
  }
9324
9667
  };
9325
9668
  }
9326
- function create_fragment$L(ctx) {
9669
+ function create_fragment$N(ctx) {
9327
9670
  let div;
9328
9671
  let t1;
9329
9672
  let t2;
9330
9673
  let t3;
9331
- let if_block2_anchor;
9674
+ let t4;
9675
+ let if_block3_anchor;
9332
9676
  let current;
9333
9677
  let if_block0 = (
9334
9678
  /*member*/
9335
- ctx[0].stripeCustomerId && create_if_block_2$c(ctx)
9679
+ ctx[0].stripeCustomerId && create_if_block_3$9(ctx)
9336
9680
  );
9337
9681
  let if_block1 = (
9682
+ /*joinedTeams*/
9683
+ ctx[1].length > 0 && create_if_block_2$d(ctx)
9684
+ );
9685
+ let if_block2 = (
9338
9686
  /*freePlanConnections*/
9339
- ctx[1].length > 0 && create_if_block_1$g(ctx)
9687
+ ctx[2].length > 0 && create_if_block_1$h(ctx)
9340
9688
  );
9341
- let if_block2 = !/*member*/
9689
+ let if_block3 = !/*member*/
9342
9690
  ctx[0].stripeCustomerId && /*freePlanConnections*/
9343
- ctx[1].length === 0 && create_if_block$m();
9691
+ ctx[2].length === 0 && create_if_block$n();
9344
9692
  return {
9345
9693
  c() {
9346
9694
  div = element("div");
@@ -9354,7 +9702,10 @@ function create_fragment$L(ctx) {
9354
9702
  t3 = space();
9355
9703
  if (if_block2)
9356
9704
  if_block2.c();
9357
- if_block2_anchor = empty();
9705
+ t4 = space();
9706
+ if (if_block3)
9707
+ if_block3.c();
9708
+ if_block3_anchor = empty();
9358
9709
  attr(div, "class", "ms-modal__title-container");
9359
9710
  },
9360
9711
  m(target, anchor) {
@@ -9363,166 +9714,1288 @@ function create_fragment$L(ctx) {
9363
9714
  if (if_block0)
9364
9715
  if_block0.m(target, anchor);
9365
9716
  insert(target, t2, anchor);
9366
- if (if_block1)
9367
- if_block1.m(target, anchor);
9368
- insert(target, t3, anchor);
9369
- if (if_block2)
9370
- if_block2.m(target, anchor);
9371
- insert(target, if_block2_anchor, anchor);
9717
+ if (if_block1)
9718
+ if_block1.m(target, anchor);
9719
+ insert(target, t3, anchor);
9720
+ if (if_block2)
9721
+ if_block2.m(target, anchor);
9722
+ insert(target, t4, anchor);
9723
+ if (if_block3)
9724
+ if_block3.m(target, anchor);
9725
+ insert(target, if_block3_anchor, anchor);
9726
+ current = true;
9727
+ },
9728
+ p(ctx2, [dirty]) {
9729
+ if (
9730
+ /*member*/
9731
+ ctx2[0].stripeCustomerId
9732
+ ) {
9733
+ if (if_block0) {
9734
+ if_block0.p(ctx2, dirty);
9735
+ if (dirty & /*member*/
9736
+ 1) {
9737
+ transition_in(if_block0, 1);
9738
+ }
9739
+ } else {
9740
+ if_block0 = create_if_block_3$9(ctx2);
9741
+ if_block0.c();
9742
+ transition_in(if_block0, 1);
9743
+ if_block0.m(t2.parentNode, t2);
9744
+ }
9745
+ } else if (if_block0) {
9746
+ group_outros();
9747
+ transition_out(if_block0, 1, 1, () => {
9748
+ if_block0 = null;
9749
+ });
9750
+ check_outros();
9751
+ }
9752
+ if (
9753
+ /*joinedTeams*/
9754
+ ctx2[1].length > 0
9755
+ ) {
9756
+ if (if_block1) {
9757
+ if_block1.p(ctx2, dirty);
9758
+ if (dirty & /*joinedTeams*/
9759
+ 2) {
9760
+ transition_in(if_block1, 1);
9761
+ }
9762
+ } else {
9763
+ if_block1 = create_if_block_2$d(ctx2);
9764
+ if_block1.c();
9765
+ transition_in(if_block1, 1);
9766
+ if_block1.m(t3.parentNode, t3);
9767
+ }
9768
+ } else if (if_block1) {
9769
+ group_outros();
9770
+ transition_out(if_block1, 1, 1, () => {
9771
+ if_block1 = null;
9772
+ });
9773
+ check_outros();
9774
+ }
9775
+ if (
9776
+ /*freePlanConnections*/
9777
+ ctx2[2].length > 0
9778
+ ) {
9779
+ if (if_block2) {
9780
+ if_block2.p(ctx2, dirty);
9781
+ if (dirty & /*freePlanConnections*/
9782
+ 4) {
9783
+ transition_in(if_block2, 1);
9784
+ }
9785
+ } else {
9786
+ if_block2 = create_if_block_1$h(ctx2);
9787
+ if_block2.c();
9788
+ transition_in(if_block2, 1);
9789
+ if_block2.m(t4.parentNode, t4);
9790
+ }
9791
+ } else if (if_block2) {
9792
+ group_outros();
9793
+ transition_out(if_block2, 1, 1, () => {
9794
+ if_block2 = null;
9795
+ });
9796
+ check_outros();
9797
+ }
9798
+ if (!/*member*/
9799
+ ctx2[0].stripeCustomerId && /*freePlanConnections*/
9800
+ ctx2[2].length === 0) {
9801
+ if (if_block3)
9802
+ ;
9803
+ else {
9804
+ if_block3 = create_if_block$n();
9805
+ if_block3.c();
9806
+ if_block3.m(if_block3_anchor.parentNode, if_block3_anchor);
9807
+ }
9808
+ } else if (if_block3) {
9809
+ if_block3.d(1);
9810
+ if_block3 = null;
9811
+ }
9812
+ },
9813
+ i(local) {
9814
+ if (current)
9815
+ return;
9816
+ transition_in(if_block0);
9817
+ transition_in(if_block1);
9818
+ transition_in(if_block2);
9819
+ current = true;
9820
+ },
9821
+ o(local) {
9822
+ transition_out(if_block0);
9823
+ transition_out(if_block1);
9824
+ transition_out(if_block2);
9825
+ current = false;
9826
+ },
9827
+ d(detaching) {
9828
+ if (detaching)
9829
+ detach(div);
9830
+ if (detaching)
9831
+ detach(t1);
9832
+ if (if_block0)
9833
+ if_block0.d(detaching);
9834
+ if (detaching)
9835
+ detach(t2);
9836
+ if (if_block1)
9837
+ if_block1.d(detaching);
9838
+ if (detaching)
9839
+ detach(t3);
9840
+ if (if_block2)
9841
+ if_block2.d(detaching);
9842
+ if (detaching)
9843
+ detach(t4);
9844
+ if (if_block3)
9845
+ if_block3.d(detaching);
9846
+ if (detaching)
9847
+ detach(if_block3_anchor);
9848
+ }
9849
+ };
9850
+ }
9851
+ function instance$q($$self, $$props, $$invalidate) {
9852
+ let freePlanConnections;
9853
+ let joinedTeams;
9854
+ let $app;
9855
+ component_subscribe($$self, AppStore, ($$value) => $$invalidate(3, $app = $$value));
9856
+ let { profileLoader } = $$props;
9857
+ let { member } = $$props;
9858
+ function launchPortal(e) {
9859
+ return __async(this, null, function* () {
9860
+ $$invalidate(7, profileLoader = true);
9861
+ yield window.$memberstackDom.launchStripeCustomerPortal({ priceIds: [], autoRedirect: true });
9862
+ });
9863
+ }
9864
+ function removeFreePlan(planId) {
9865
+ return __async(this, null, function* () {
9866
+ $$invalidate(7, profileLoader = true);
9867
+ try {
9868
+ yield window.$memberstackDom.removePlan({ planId });
9869
+ $$invalidate(0, member.planConnections = member.planConnections.filter((plan) => plan.planId !== planId), member);
9870
+ } catch (err) {
9871
+ console.log(err);
9872
+ window.$memberstackDom._showMessage(err.message, true);
9873
+ } finally {
9874
+ $$invalidate(7, profileLoader = false);
9875
+ }
9876
+ });
9877
+ }
9878
+ function removeMemberFromTeam(teamId, memberId) {
9879
+ return __async(this, null, function* () {
9880
+ try {
9881
+ yield window.$memberstackDom.removeMemberFromTeam({ teamId, memberId });
9882
+ $$invalidate(0, member.teams.joinedTeams = member.teams.joinedTeams.filter((t) => t.teamId !== teamId), member);
9883
+ } catch (err) {
9884
+ window.$memberstackDom._showMessage(err.message, true);
9885
+ }
9886
+ });
9887
+ }
9888
+ const func2 = (team) => removeMemberFromTeam(team.teamId, member.id);
9889
+ const func_12 = (memberPlan, plan) => plan.id === memberPlan.planId;
9890
+ const func_22 = (memberPlan) => removeFreePlan(memberPlan.planId);
9891
+ $$self.$$set = ($$props2) => {
9892
+ if ("profileLoader" in $$props2)
9893
+ $$invalidate(7, profileLoader = $$props2.profileLoader);
9894
+ if ("member" in $$props2)
9895
+ $$invalidate(0, member = $$props2.member);
9896
+ };
9897
+ $$self.$$.update = () => {
9898
+ var _a;
9899
+ if ($$self.$$.dirty & /*member*/
9900
+ 1) {
9901
+ $$invalidate(2, freePlanConnections = member.planConnections.filter((plan) => plan.type === "FREE"));
9902
+ }
9903
+ if ($$self.$$.dirty & /*member*/
9904
+ 1) {
9905
+ $$invalidate(1, joinedTeams = (_a = member.teams) == null ? void 0 : _a.joinedTeams);
9906
+ }
9907
+ };
9908
+ return [
9909
+ member,
9910
+ joinedTeams,
9911
+ freePlanConnections,
9912
+ $app,
9913
+ launchPortal,
9914
+ removeFreePlan,
9915
+ removeMemberFromTeam,
9916
+ profileLoader,
9917
+ func2,
9918
+ func_12,
9919
+ func_22
9920
+ ];
9921
+ }
9922
+ var PlansInfoContent = class extends SvelteComponent {
9923
+ constructor(options) {
9924
+ super();
9925
+ init(this, options, instance$q, create_fragment$N, safe_not_equal, { profileLoader: 7, member: 0 });
9926
+ }
9927
+ };
9928
+ function add_css$k(target) {
9929
+ append_styles(target, "svelte-c6ihgv", "svg.svelte-c6ihgv{fill:currentColor}");
9930
+ }
9931
+ function create_fragment$M(ctx) {
9932
+ let svg;
9933
+ let path;
9934
+ return {
9935
+ c() {
9936
+ svg = svg_element("svg");
9937
+ path = svg_element("path");
9938
+ 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");
9939
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
9940
+ attr(svg, "height", "20");
9941
+ attr(svg, "viewBox", "0 -960 960 960");
9942
+ attr(svg, "width", "20");
9943
+ attr(svg, "class", "svelte-c6ihgv");
9944
+ },
9945
+ m(target, anchor) {
9946
+ insert(target, svg, anchor);
9947
+ append(svg, path);
9948
+ },
9949
+ p: noop,
9950
+ i: noop,
9951
+ o: noop,
9952
+ d(detaching) {
9953
+ if (detaching)
9954
+ detach(svg);
9955
+ }
9956
+ };
9957
+ }
9958
+ var CopyIcon$1 = class extends SvelteComponent {
9959
+ constructor(options) {
9960
+ super();
9961
+ init(this, options, null, create_fragment$M, safe_not_equal, {}, add_css$k);
9962
+ }
9963
+ };
9964
+ function create_fragment$L(ctx) {
9965
+ let svg;
9966
+ let path;
9967
+ return {
9968
+ c() {
9969
+ svg = svg_element("svg");
9970
+ path = svg_element("path");
9971
+ attr(path, "fill", "currentColor");
9972
+ 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");
9973
+ attr(svg, "xmlns", "http://www.w3.org/2000/svg");
9974
+ attr(svg, "height", "24");
9975
+ attr(svg, "viewBox", "0 -960 960 960");
9976
+ attr(svg, "width", "24");
9977
+ },
9978
+ m(target, anchor) {
9979
+ insert(target, svg, anchor);
9980
+ append(svg, path);
9981
+ },
9982
+ p: noop,
9983
+ i: noop,
9984
+ o: noop,
9985
+ d(detaching) {
9986
+ if (detaching)
9987
+ detach(svg);
9988
+ }
9989
+ };
9990
+ }
9991
+ var WarningIcon$1 = class extends SvelteComponent {
9992
+ constructor(options) {
9993
+ super();
9994
+ init(this, options, null, create_fragment$L, safe_not_equal, {});
9995
+ }
9996
+ };
9997
+ function add_css$j(target) {
9998
+ 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}");
9999
+ }
10000
+ function get_each_context$8(ctx, list, i) {
10001
+ const child_ctx = ctx.slice();
10002
+ child_ctx[15] = list[i];
10003
+ return child_ctx;
10004
+ }
10005
+ function create_if_block_5$5(ctx) {
10006
+ var _a, _b;
10007
+ let div;
10008
+ let t0_value = (
10009
+ /*teamData*/
10010
+ ((_a = ctx[0]) == null ? void 0 : _a.members.length) + ""
10011
+ );
10012
+ let t0;
10013
+ let t1;
10014
+ let t2_value = (
10015
+ /*teamData*/
10016
+ ((_b = ctx[0]) == null ? void 0 : _b.maxTeamMembers) + ""
10017
+ );
10018
+ let t2;
10019
+ let t3;
10020
+ return {
10021
+ c() {
10022
+ div = element("div");
10023
+ t0 = text(t0_value);
10024
+ t1 = text("/");
10025
+ t2 = text(t2_value);
10026
+ t3 = text(" Seats");
10027
+ attr(div, "class", "ms-modal__title--seats svelte-1haqb7b");
10028
+ },
10029
+ m(target, anchor) {
10030
+ insert(target, div, anchor);
10031
+ append(div, t0);
10032
+ append(div, t1);
10033
+ append(div, t2);
10034
+ append(div, t3);
10035
+ },
10036
+ p(ctx2, dirty) {
10037
+ var _a2, _b2;
10038
+ if (dirty & /*teamData*/
10039
+ 1 && t0_value !== (t0_value = /*teamData*/
10040
+ ((_a2 = ctx2[0]) == null ? void 0 : _a2.members.length) + ""))
10041
+ set_data(t0, t0_value);
10042
+ if (dirty & /*teamData*/
10043
+ 1 && t2_value !== (t2_value = /*teamData*/
10044
+ ((_b2 = ctx2[0]) == null ? void 0 : _b2.maxTeamMembers) + ""))
10045
+ set_data(t2, t2_value);
10046
+ },
10047
+ d(detaching) {
10048
+ if (detaching)
10049
+ detach(div);
10050
+ }
10051
+ };
10052
+ }
10053
+ function create_catch_block(ctx) {
10054
+ return {
10055
+ c: noop,
10056
+ m: noop,
10057
+ p: noop,
10058
+ i: noop,
10059
+ o: noop,
10060
+ d: noop
10061
+ };
10062
+ }
10063
+ function create_then_block(ctx) {
10064
+ let current_block_type_index;
10065
+ let if_block0;
10066
+ let t;
10067
+ let if_block1_anchor;
10068
+ let current;
10069
+ const if_block_creators = [create_if_block_4$6, create_else_block_2$1];
10070
+ const if_blocks = [];
10071
+ function select_block_type(ctx2, dirty) {
10072
+ var _a, _b;
10073
+ if (
10074
+ /*teamData*/
10075
+ ((_a = ctx2[0]) == null ? void 0 : _a.members.length) < /*teamData*/
10076
+ ((_b = ctx2[0]) == null ? void 0 : _b.maxTeamMembers)
10077
+ )
10078
+ return 0;
10079
+ return 1;
10080
+ }
10081
+ current_block_type_index = select_block_type(ctx);
10082
+ if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
10083
+ let if_block1 = (
10084
+ /*teamData*/
10085
+ ctx[0] && /*teamData*/
10086
+ ctx[0].members.length > 0 && create_if_block$m(ctx)
10087
+ );
10088
+ return {
10089
+ c() {
10090
+ if_block0.c();
10091
+ t = space();
10092
+ if (if_block1)
10093
+ if_block1.c();
10094
+ if_block1_anchor = empty();
10095
+ },
10096
+ m(target, anchor) {
10097
+ if_blocks[current_block_type_index].m(target, anchor);
10098
+ insert(target, t, anchor);
10099
+ if (if_block1)
10100
+ if_block1.m(target, anchor);
10101
+ insert(target, if_block1_anchor, anchor);
10102
+ current = true;
10103
+ },
10104
+ p(ctx2, dirty) {
10105
+ let previous_block_index = current_block_type_index;
10106
+ current_block_type_index = select_block_type(ctx2);
10107
+ if (current_block_type_index === previous_block_index) {
10108
+ if_blocks[current_block_type_index].p(ctx2, dirty);
10109
+ } else {
10110
+ group_outros();
10111
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
10112
+ if_blocks[previous_block_index] = null;
10113
+ });
10114
+ check_outros();
10115
+ if_block0 = if_blocks[current_block_type_index];
10116
+ if (!if_block0) {
10117
+ if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
10118
+ if_block0.c();
10119
+ } else {
10120
+ if_block0.p(ctx2, dirty);
10121
+ }
10122
+ transition_in(if_block0, 1);
10123
+ if_block0.m(t.parentNode, t);
10124
+ }
10125
+ if (
10126
+ /*teamData*/
10127
+ ctx2[0] && /*teamData*/
10128
+ ctx2[0].members.length > 0
10129
+ ) {
10130
+ if (if_block1) {
10131
+ if_block1.p(ctx2, dirty);
10132
+ if (dirty & /*teamData*/
10133
+ 1) {
10134
+ transition_in(if_block1, 1);
10135
+ }
10136
+ } else {
10137
+ if_block1 = create_if_block$m(ctx2);
10138
+ if_block1.c();
10139
+ transition_in(if_block1, 1);
10140
+ if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
10141
+ }
10142
+ } else if (if_block1) {
10143
+ group_outros();
10144
+ transition_out(if_block1, 1, 1, () => {
10145
+ if_block1 = null;
10146
+ });
10147
+ check_outros();
10148
+ }
10149
+ },
10150
+ i(local) {
10151
+ if (current)
10152
+ return;
10153
+ transition_in(if_block0);
10154
+ transition_in(if_block1);
10155
+ current = true;
10156
+ },
10157
+ o(local) {
10158
+ transition_out(if_block0);
10159
+ transition_out(if_block1);
10160
+ current = false;
10161
+ },
10162
+ d(detaching) {
10163
+ if_blocks[current_block_type_index].d(detaching);
10164
+ if (detaching)
10165
+ detach(t);
10166
+ if (if_block1)
10167
+ if_block1.d(detaching);
10168
+ if (detaching)
10169
+ detach(if_block1_anchor);
10170
+ }
10171
+ };
10172
+ }
10173
+ function create_else_block_2$1(ctx) {
10174
+ let div;
10175
+ let warningicon;
10176
+ let t0;
10177
+ let span;
10178
+ let current;
10179
+ warningicon = new WarningIcon$1({});
10180
+ return {
10181
+ c() {
10182
+ div = element("div");
10183
+ create_component(warningicon.$$.fragment);
10184
+ t0 = space();
10185
+ span = element("span");
10186
+ span.textContent = "Your team is growing! Upgrade your plan for more seats.";
10187
+ attr(span, "class", "ms-modal__upgrade-warning-text svelte-1haqb7b");
10188
+ attr(div, "class", "ms-modal__upgrade-warning svelte-1haqb7b");
10189
+ },
10190
+ m(target, anchor) {
10191
+ insert(target, div, anchor);
10192
+ mount_component(warningicon, div, null);
10193
+ append(div, t0);
10194
+ append(div, span);
10195
+ current = true;
10196
+ },
10197
+ p: noop,
10198
+ i(local) {
10199
+ if (current)
10200
+ return;
10201
+ transition_in(warningicon.$$.fragment, local);
10202
+ current = true;
10203
+ },
10204
+ o(local) {
10205
+ transition_out(warningicon.$$.fragment, local);
10206
+ current = false;
10207
+ },
10208
+ d(detaching) {
10209
+ if (detaching)
10210
+ detach(div);
10211
+ destroy_component(warningicon);
10212
+ }
10213
+ };
10214
+ }
10215
+ function create_if_block_4$6(ctx) {
10216
+ let div1;
10217
+ let div0;
10218
+ let input;
10219
+ let t0;
10220
+ let button0;
10221
+ let copyicon;
10222
+ let t1;
10223
+ let t2;
10224
+ let t3;
10225
+ let button1;
10226
+ let current;
10227
+ let mounted;
10228
+ let dispose;
10229
+ copyicon = new CopyIcon$1({});
10230
+ return {
10231
+ c() {
10232
+ div1 = element("div");
10233
+ div0 = element("div");
10234
+ input = element("input");
10235
+ t0 = space();
10236
+ button0 = element("button");
10237
+ create_component(copyicon.$$.fragment);
10238
+ t1 = space();
10239
+ t2 = text(
10240
+ /*copyInviteText*/
10241
+ ctx[2]
10242
+ );
10243
+ t3 = space();
10244
+ button1 = element("button");
10245
+ button1.textContent = "Regenerate Invite Link";
10246
+ attr(input, "type", "text");
10247
+ attr(input, "class", "ms-modal__invite-input svelte-1haqb7b");
10248
+ input.value = /*inviteLink*/
10249
+ ctx[3];
10250
+ input.readOnly = true;
10251
+ attr(button0, "class", "ms-modal__invite-copy-btn svelte-1haqb7b");
10252
+ attr(div0, "class", "ms-modal__invite-input-group svelte-1haqb7b");
10253
+ attr(button1, "class", "ms-modal__invite-regenerate-btn svelte-1haqb7b");
10254
+ attr(div1, "class", "ms-modal__invite-group svelte-1haqb7b");
10255
+ },
10256
+ m(target, anchor) {
10257
+ insert(target, div1, anchor);
10258
+ append(div1, div0);
10259
+ append(div0, input);
10260
+ append(div0, t0);
10261
+ append(div0, button0);
10262
+ mount_component(copyicon, button0, null);
10263
+ append(button0, t1);
10264
+ append(button0, t2);
10265
+ append(div1, t3);
10266
+ append(div1, button1);
10267
+ current = true;
10268
+ if (!mounted) {
10269
+ dispose = [
10270
+ listen(
10271
+ button0,
10272
+ "click",
10273
+ /*click_handler*/
10274
+ ctx[10]
10275
+ ),
10276
+ listen(
10277
+ button1,
10278
+ "click",
10279
+ /*click_handler_1*/
10280
+ ctx[11]
10281
+ )
10282
+ ];
10283
+ mounted = true;
10284
+ }
10285
+ },
10286
+ p(ctx2, dirty) {
10287
+ if (!current || dirty & /*inviteLink*/
10288
+ 8 && input.value !== /*inviteLink*/
10289
+ ctx2[3]) {
10290
+ input.value = /*inviteLink*/
10291
+ ctx2[3];
10292
+ }
10293
+ if (!current || dirty & /*copyInviteText*/
10294
+ 4)
10295
+ set_data(
10296
+ t2,
10297
+ /*copyInviteText*/
10298
+ ctx2[2]
10299
+ );
10300
+ },
10301
+ i(local) {
10302
+ if (current)
10303
+ return;
10304
+ transition_in(copyicon.$$.fragment, local);
10305
+ current = true;
10306
+ },
10307
+ o(local) {
10308
+ transition_out(copyicon.$$.fragment, local);
10309
+ current = false;
10310
+ },
10311
+ d(detaching) {
10312
+ if (detaching)
10313
+ detach(div1);
10314
+ destroy_component(copyicon);
10315
+ mounted = false;
10316
+ run_all(dispose);
10317
+ }
10318
+ };
10319
+ }
10320
+ function create_if_block$m(ctx) {
10321
+ let div;
10322
+ let each_blocks = [];
10323
+ let each_1_lookup = /* @__PURE__ */ new Map();
10324
+ let current;
10325
+ let each_value = (
10326
+ /*teamData*/
10327
+ ctx[0].members
10328
+ );
10329
+ const get_key = (ctx2) => (
10330
+ /*m*/
10331
+ ctx2[15].member.id
10332
+ );
10333
+ for (let i = 0; i < each_value.length; i += 1) {
10334
+ let child_ctx = get_each_context$8(ctx, each_value, i);
10335
+ let key = get_key(child_ctx);
10336
+ each_1_lookup.set(key, each_blocks[i] = create_each_block$8(key, child_ctx));
10337
+ }
10338
+ return {
10339
+ c() {
10340
+ div = element("div");
10341
+ for (let i = 0; i < each_blocks.length; i += 1) {
10342
+ each_blocks[i].c();
10343
+ }
10344
+ attr(div, "class", "ms-modal__team-members");
10345
+ },
10346
+ m(target, anchor) {
10347
+ insert(target, div, anchor);
10348
+ for (let i = 0; i < each_blocks.length; i += 1) {
10349
+ if (each_blocks[i]) {
10350
+ each_blocks[i].m(div, null);
10351
+ }
10352
+ }
10353
+ current = true;
10354
+ },
10355
+ p(ctx2, dirty) {
10356
+ if (dirty & /*showRemoveButton, teamData, removeMemberFromTeam*/
10357
+ 81) {
10358
+ each_value = /*teamData*/
10359
+ ctx2[0].members;
10360
+ group_outros();
10361
+ 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);
10362
+ check_outros();
10363
+ }
10364
+ },
10365
+ i(local) {
10366
+ if (current)
10367
+ return;
10368
+ for (let i = 0; i < each_value.length; i += 1) {
10369
+ transition_in(each_blocks[i]);
10370
+ }
10371
+ current = true;
10372
+ },
10373
+ o(local) {
10374
+ for (let i = 0; i < each_blocks.length; i += 1) {
10375
+ transition_out(each_blocks[i]);
10376
+ }
10377
+ current = false;
10378
+ },
10379
+ d(detaching) {
10380
+ if (detaching)
10381
+ detach(div);
10382
+ for (let i = 0; i < each_blocks.length; i += 1) {
10383
+ each_blocks[i].d();
10384
+ }
10385
+ }
10386
+ };
10387
+ }
10388
+ function create_else_block_1$3(ctx) {
10389
+ let img;
10390
+ let img_src_value;
10391
+ return {
10392
+ c() {
10393
+ img = element("img");
10394
+ attr(img, "class", "ms-modal__team-member-image svelte-1haqb7b");
10395
+ if (!src_url_equal(img.src, img_src_value = /*m*/
10396
+ ctx[15].member.profileImage))
10397
+ attr(img, "src", img_src_value);
10398
+ attr(img, "alt", "Member Profile Avatar");
10399
+ },
10400
+ m(target, anchor) {
10401
+ insert(target, img, anchor);
10402
+ },
10403
+ p(ctx2, dirty) {
10404
+ if (dirty & /*teamData*/
10405
+ 1 && !src_url_equal(img.src, img_src_value = /*m*/
10406
+ ctx2[15].member.profileImage)) {
10407
+ attr(img, "src", img_src_value);
10408
+ }
10409
+ },
10410
+ d(detaching) {
10411
+ if (detaching)
10412
+ detach(img);
10413
+ }
10414
+ };
10415
+ }
10416
+ function create_if_block_3$8(ctx) {
10417
+ let div;
10418
+ let t_value = (
10419
+ /*m*/
10420
+ ctx[15].member.auth.email[0].toUpperCase() + ""
10421
+ );
10422
+ let t;
10423
+ return {
10424
+ c() {
10425
+ div = element("div");
10426
+ t = text(t_value);
10427
+ attr(div, "class", "ms-modal__team-member-image--initial svelte-1haqb7b");
10428
+ },
10429
+ m(target, anchor) {
10430
+ insert(target, div, anchor);
10431
+ append(div, t);
10432
+ },
10433
+ p(ctx2, dirty) {
10434
+ if (dirty & /*teamData*/
10435
+ 1 && t_value !== (t_value = /*m*/
10436
+ ctx2[15].member.auth.email[0].toUpperCase() + ""))
10437
+ set_data(t, t_value);
10438
+ },
10439
+ d(detaching) {
10440
+ if (detaching)
10441
+ detach(div);
10442
+ }
10443
+ };
10444
+ }
10445
+ function create_if_block_1$g(ctx) {
10446
+ let current_block_type_index;
10447
+ let if_block;
10448
+ let if_block_anchor;
10449
+ let current;
10450
+ const if_block_creators = [create_if_block_2$c, create_else_block$9];
10451
+ const if_blocks = [];
10452
+ function select_block_type_2(ctx2, dirty) {
10453
+ if (!/*m*/
10454
+ ctx2[15].showRemoveButton)
10455
+ return 0;
10456
+ return 1;
10457
+ }
10458
+ current_block_type_index = select_block_type_2(ctx);
10459
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
10460
+ return {
10461
+ c() {
10462
+ if_block.c();
10463
+ if_block_anchor = empty();
10464
+ },
10465
+ m(target, anchor) {
10466
+ if_blocks[current_block_type_index].m(target, anchor);
10467
+ insert(target, if_block_anchor, anchor);
10468
+ current = true;
10469
+ },
10470
+ p(ctx2, dirty) {
10471
+ let previous_block_index = current_block_type_index;
10472
+ current_block_type_index = select_block_type_2(ctx2);
10473
+ if (current_block_type_index === previous_block_index) {
10474
+ if_blocks[current_block_type_index].p(ctx2, dirty);
10475
+ } else {
10476
+ group_outros();
10477
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
10478
+ if_blocks[previous_block_index] = null;
10479
+ });
10480
+ check_outros();
10481
+ if_block = if_blocks[current_block_type_index];
10482
+ if (!if_block) {
10483
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
10484
+ if_block.c();
10485
+ } else {
10486
+ if_block.p(ctx2, dirty);
10487
+ }
10488
+ transition_in(if_block, 1);
10489
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
10490
+ }
10491
+ },
10492
+ i(local) {
10493
+ if (current)
10494
+ return;
10495
+ transition_in(if_block);
10496
+ current = true;
10497
+ },
10498
+ o(local) {
10499
+ transition_out(if_block);
10500
+ current = false;
10501
+ },
10502
+ d(detaching) {
10503
+ if_blocks[current_block_type_index].d(detaching);
10504
+ if (detaching)
10505
+ detach(if_block_anchor);
10506
+ }
10507
+ };
10508
+ }
10509
+ function create_else_block$9(ctx) {
10510
+ let button;
10511
+ let span;
10512
+ let t1;
10513
+ let closeicon;
10514
+ let current;
10515
+ let mounted;
10516
+ let dispose;
10517
+ closeicon = new CloseIcon({});
10518
+ function click_handler_3() {
10519
+ return (
10520
+ /*click_handler_3*/
10521
+ ctx[13](
10522
+ /*m*/
10523
+ ctx[15]
10524
+ )
10525
+ );
10526
+ }
10527
+ return {
10528
+ c() {
10529
+ button = element("button");
10530
+ span = element("span");
10531
+ span.textContent = "Are you sure?";
10532
+ t1 = space();
10533
+ create_component(closeicon.$$.fragment);
10534
+ attr(span, "class", "ms-modal__team-member-remove-text svelte-1haqb7b");
10535
+ attr(button, "class", "ms-modal__team-member-remove-btn svelte-1haqb7b");
10536
+ },
10537
+ m(target, anchor) {
10538
+ insert(target, button, anchor);
10539
+ append(button, span);
10540
+ append(button, t1);
10541
+ mount_component(closeicon, button, null);
10542
+ current = true;
10543
+ if (!mounted) {
10544
+ dispose = listen(button, "click", click_handler_3);
10545
+ mounted = true;
10546
+ }
10547
+ },
10548
+ p(new_ctx, dirty) {
10549
+ ctx = new_ctx;
10550
+ },
10551
+ i(local) {
10552
+ if (current)
10553
+ return;
10554
+ transition_in(closeicon.$$.fragment, local);
10555
+ current = true;
10556
+ },
10557
+ o(local) {
10558
+ transition_out(closeicon.$$.fragment, local);
10559
+ current = false;
10560
+ },
10561
+ d(detaching) {
10562
+ if (detaching)
10563
+ detach(button);
10564
+ destroy_component(closeicon);
10565
+ mounted = false;
10566
+ dispose();
10567
+ }
10568
+ };
10569
+ }
10570
+ function create_if_block_2$c(ctx) {
10571
+ let button;
10572
+ let closeicon;
10573
+ let current;
10574
+ let mounted;
10575
+ let dispose;
10576
+ closeicon = new CloseIcon({});
10577
+ function click_handler_2() {
10578
+ return (
10579
+ /*click_handler_2*/
10580
+ ctx[12](
10581
+ /*m*/
10582
+ ctx[15]
10583
+ )
10584
+ );
10585
+ }
10586
+ return {
10587
+ c() {
10588
+ button = element("button");
10589
+ create_component(closeicon.$$.fragment);
10590
+ attr(button, "class", "ms-modal__team-member-remove-btn svelte-1haqb7b");
10591
+ },
10592
+ m(target, anchor) {
10593
+ insert(target, button, anchor);
10594
+ mount_component(closeicon, button, null);
10595
+ current = true;
10596
+ if (!mounted) {
10597
+ dispose = listen(button, "click", click_handler_2);
10598
+ mounted = true;
10599
+ }
10600
+ },
10601
+ p(new_ctx, dirty) {
10602
+ ctx = new_ctx;
10603
+ },
10604
+ i(local) {
10605
+ if (current)
10606
+ return;
10607
+ transition_in(closeicon.$$.fragment, local);
10608
+ current = true;
10609
+ },
10610
+ o(local) {
10611
+ transition_out(closeicon.$$.fragment, local);
10612
+ current = false;
10613
+ },
10614
+ d(detaching) {
10615
+ if (detaching)
10616
+ detach(button);
10617
+ destroy_component(closeicon);
10618
+ mounted = false;
10619
+ dispose();
10620
+ }
10621
+ };
10622
+ }
10623
+ function create_each_block$8(key_1, ctx) {
10624
+ let div4;
10625
+ let div1;
10626
+ let t0;
10627
+ let div0;
10628
+ let t1_value = (
10629
+ /*m*/
10630
+ ctx[15].member.auth.email + ""
10631
+ );
10632
+ let t1;
10633
+ let t2;
10634
+ let div3;
10635
+ let div2;
10636
+ let t3_value = (
10637
+ /*m*/
10638
+ ctx[15].role + ""
10639
+ );
10640
+ let t3;
10641
+ let t4;
10642
+ let t5;
10643
+ let current;
10644
+ function select_block_type_1(ctx2, dirty) {
10645
+ if (
10646
+ /*m*/
10647
+ ctx2[15].member.profileImage === null
10648
+ )
10649
+ return create_if_block_3$8;
10650
+ return create_else_block_1$3;
10651
+ }
10652
+ let current_block_type = select_block_type_1(ctx);
10653
+ let if_block0 = current_block_type(ctx);
10654
+ let if_block1 = (
10655
+ /*m*/
10656
+ ctx[15].role !== "OWNER" && create_if_block_1$g(ctx)
10657
+ );
10658
+ return {
10659
+ key: key_1,
10660
+ first: null,
10661
+ c() {
10662
+ div4 = element("div");
10663
+ div1 = element("div");
10664
+ if_block0.c();
10665
+ t0 = space();
10666
+ div0 = element("div");
10667
+ t1 = text(t1_value);
10668
+ t2 = space();
10669
+ div3 = element("div");
10670
+ div2 = element("div");
10671
+ t3 = text(t3_value);
10672
+ t4 = space();
10673
+ if (if_block1)
10674
+ if_block1.c();
10675
+ t5 = space();
10676
+ attr(div0, "class", "ms-modal__team-member-email svelte-1haqb7b");
10677
+ attr(div1, "class", "ms-modal__team-member-info svelte-1haqb7b");
10678
+ attr(div2, "class", "ms-modal__team-member-role svelte-1haqb7b");
10679
+ attr(div3, "class", "ms-modal__team-member-actions svelte-1haqb7b");
10680
+ attr(div4, "class", "ms-modal__team-member svelte-1haqb7b");
10681
+ this.first = div4;
10682
+ },
10683
+ m(target, anchor) {
10684
+ insert(target, div4, anchor);
10685
+ append(div4, div1);
10686
+ if_block0.m(div1, null);
10687
+ append(div1, t0);
10688
+ append(div1, div0);
10689
+ append(div0, t1);
10690
+ append(div4, t2);
10691
+ append(div4, div3);
10692
+ append(div3, div2);
10693
+ append(div2, t3);
10694
+ append(div3, t4);
10695
+ if (if_block1)
10696
+ if_block1.m(div3, null);
10697
+ append(div4, t5);
10698
+ current = true;
10699
+ },
10700
+ p(new_ctx, dirty) {
10701
+ ctx = new_ctx;
10702
+ if (current_block_type === (current_block_type = select_block_type_1(ctx)) && if_block0) {
10703
+ if_block0.p(ctx, dirty);
10704
+ } else {
10705
+ if_block0.d(1);
10706
+ if_block0 = current_block_type(ctx);
10707
+ if (if_block0) {
10708
+ if_block0.c();
10709
+ if_block0.m(div1, t0);
10710
+ }
10711
+ }
10712
+ if ((!current || dirty & /*teamData*/
10713
+ 1) && t1_value !== (t1_value = /*m*/
10714
+ ctx[15].member.auth.email + ""))
10715
+ set_data(t1, t1_value);
10716
+ if ((!current || dirty & /*teamData*/
10717
+ 1) && t3_value !== (t3_value = /*m*/
10718
+ ctx[15].role + ""))
10719
+ set_data(t3, t3_value);
10720
+ if (
10721
+ /*m*/
10722
+ ctx[15].role !== "OWNER"
10723
+ ) {
10724
+ if (if_block1) {
10725
+ if_block1.p(ctx, dirty);
10726
+ if (dirty & /*teamData*/
10727
+ 1) {
10728
+ transition_in(if_block1, 1);
10729
+ }
10730
+ } else {
10731
+ if_block1 = create_if_block_1$g(ctx);
10732
+ if_block1.c();
10733
+ transition_in(if_block1, 1);
10734
+ if_block1.m(div3, null);
10735
+ }
10736
+ } else if (if_block1) {
10737
+ group_outros();
10738
+ transition_out(if_block1, 1, 1, () => {
10739
+ if_block1 = null;
10740
+ });
10741
+ check_outros();
10742
+ }
10743
+ },
10744
+ i(local) {
10745
+ if (current)
10746
+ return;
10747
+ transition_in(if_block1);
10748
+ current = true;
10749
+ },
10750
+ o(local) {
10751
+ transition_out(if_block1);
10752
+ current = false;
10753
+ },
10754
+ d(detaching) {
10755
+ if (detaching)
10756
+ detach(div4);
10757
+ if_block0.d();
10758
+ if (if_block1)
10759
+ if_block1.d();
10760
+ }
10761
+ };
10762
+ }
10763
+ function create_pending_block(ctx) {
10764
+ let p;
10765
+ return {
10766
+ c() {
10767
+ p = element("p");
10768
+ p.textContent = "Loading...";
10769
+ },
10770
+ m(target, anchor) {
10771
+ insert(target, p, anchor);
10772
+ },
10773
+ p: noop,
10774
+ i: noop,
10775
+ o: noop,
10776
+ d(detaching) {
10777
+ if (detaching)
10778
+ detach(p);
10779
+ }
10780
+ };
10781
+ }
10782
+ function create_fragment$K(ctx) {
10783
+ var _a;
10784
+ let div;
10785
+ let h2;
10786
+ let t1;
10787
+ let t2;
10788
+ let await_block_anchor;
10789
+ let promise2;
10790
+ let current;
10791
+ let if_block = (
10792
+ /*teamData*/
10793
+ ((_a = ctx[0]) == null ? void 0 : _a.members.length) > 0 && create_if_block_5$5(ctx)
10794
+ );
10795
+ let info = {
10796
+ ctx,
10797
+ current: null,
10798
+ token: null,
10799
+ hasCatch: false,
10800
+ pending: create_pending_block,
10801
+ then: create_then_block,
10802
+ catch: create_catch_block,
10803
+ blocks: [, , ,]
10804
+ };
10805
+ handle_promise(promise2 = /*teamPromise*/
10806
+ ctx[1], info);
10807
+ return {
10808
+ c() {
10809
+ div = element("div");
10810
+ h2 = element("h2");
10811
+ h2.textContent = "Team";
10812
+ t1 = space();
10813
+ if (if_block)
10814
+ if_block.c();
10815
+ t2 = space();
10816
+ await_block_anchor = empty();
10817
+ info.block.c();
10818
+ attr(h2, "class", "ms-modal__title ms-modal__title--teams svelte-1haqb7b");
10819
+ attr(div, "class", "ms-modal__title-container ms-modal__title-container--teams svelte-1haqb7b");
10820
+ },
10821
+ m(target, anchor) {
10822
+ insert(target, div, anchor);
10823
+ append(div, h2);
10824
+ append(div, t1);
10825
+ if (if_block)
10826
+ if_block.m(div, null);
10827
+ insert(target, t2, anchor);
10828
+ insert(target, await_block_anchor, anchor);
10829
+ info.block.m(target, info.anchor = anchor);
10830
+ info.mount = () => await_block_anchor.parentNode;
10831
+ info.anchor = await_block_anchor;
9372
10832
  current = true;
9373
10833
  },
9374
- p(ctx2, [dirty]) {
9375
- if (
9376
- /*member*/
9377
- ctx2[0].stripeCustomerId
9378
- ) {
9379
- if (if_block0) {
9380
- if_block0.p(ctx2, dirty);
9381
- if (dirty & /*member*/
9382
- 1) {
9383
- transition_in(if_block0, 1);
9384
- }
9385
- } else {
9386
- if_block0 = create_if_block_2$c(ctx2);
9387
- if_block0.c();
9388
- transition_in(if_block0, 1);
9389
- if_block0.m(t2.parentNode, t2);
9390
- }
9391
- } else if (if_block0) {
9392
- group_outros();
9393
- transition_out(if_block0, 1, 1, () => {
9394
- if_block0 = null;
9395
- });
9396
- check_outros();
9397
- }
10834
+ p(new_ctx, [dirty]) {
10835
+ var _a2;
10836
+ ctx = new_ctx;
9398
10837
  if (
9399
- /*freePlanConnections*/
9400
- ctx2[1].length > 0
10838
+ /*teamData*/
10839
+ ((_a2 = ctx[0]) == null ? void 0 : _a2.members.length) > 0
9401
10840
  ) {
9402
- if (if_block1) {
9403
- if_block1.p(ctx2, dirty);
9404
- if (dirty & /*freePlanConnections*/
9405
- 2) {
9406
- transition_in(if_block1, 1);
9407
- }
10841
+ if (if_block) {
10842
+ if_block.p(ctx, dirty);
9408
10843
  } else {
9409
- if_block1 = create_if_block_1$g(ctx2);
9410
- if_block1.c();
9411
- transition_in(if_block1, 1);
9412
- if_block1.m(t3.parentNode, t3);
10844
+ if_block = create_if_block_5$5(ctx);
10845
+ if_block.c();
10846
+ if_block.m(div, null);
9413
10847
  }
9414
- } else if (if_block1) {
9415
- group_outros();
9416
- transition_out(if_block1, 1, 1, () => {
9417
- if_block1 = null;
9418
- });
9419
- check_outros();
10848
+ } else if (if_block) {
10849
+ if_block.d(1);
10850
+ if_block = null;
9420
10851
  }
9421
- if (!/*member*/
9422
- ctx2[0].stripeCustomerId && /*freePlanConnections*/
9423
- ctx2[1].length === 0) {
9424
- if (if_block2)
9425
- ;
9426
- else {
9427
- if_block2 = create_if_block$m();
9428
- if_block2.c();
9429
- if_block2.m(if_block2_anchor.parentNode, if_block2_anchor);
9430
- }
9431
- } else if (if_block2) {
9432
- if_block2.d(1);
9433
- if_block2 = null;
10852
+ info.ctx = ctx;
10853
+ if (dirty & /*teamPromise*/
10854
+ 2 && promise2 !== (promise2 = /*teamPromise*/
10855
+ ctx[1]) && handle_promise(promise2, info))
10856
+ ;
10857
+ else {
10858
+ update_await_block_branch(info, ctx, dirty);
9434
10859
  }
9435
10860
  },
9436
10861
  i(local) {
9437
10862
  if (current)
9438
10863
  return;
9439
- transition_in(if_block0);
9440
- transition_in(if_block1);
10864
+ transition_in(info.block);
9441
10865
  current = true;
9442
10866
  },
9443
10867
  o(local) {
9444
- transition_out(if_block0);
9445
- transition_out(if_block1);
10868
+ for (let i = 0; i < 3; i += 1) {
10869
+ const block = info.blocks[i];
10870
+ transition_out(block);
10871
+ }
9446
10872
  current = false;
9447
10873
  },
9448
10874
  d(detaching) {
9449
10875
  if (detaching)
9450
10876
  detach(div);
9451
- if (detaching)
9452
- detach(t1);
9453
- if (if_block0)
9454
- if_block0.d(detaching);
10877
+ if (if_block)
10878
+ if_block.d();
9455
10879
  if (detaching)
9456
10880
  detach(t2);
9457
- if (if_block1)
9458
- if_block1.d(detaching);
9459
- if (detaching)
9460
- detach(t3);
9461
- if (if_block2)
9462
- if_block2.d(detaching);
9463
10881
  if (detaching)
9464
- detach(if_block2_anchor);
10882
+ detach(await_block_anchor);
10883
+ info.block.d(detaching);
10884
+ info.token = null;
10885
+ info = null;
9465
10886
  }
9466
10887
  };
9467
10888
  }
9468
10889
  function instance$p($$self, $$props, $$invalidate) {
9469
- let freePlanConnections;
9470
- let $app;
9471
- component_subscribe($$self, AppStore, ($$value) => $$invalidate(2, $app = $$value));
10890
+ var _a, _b, _c;
10891
+ let inviteLink;
9472
10892
  let { profileLoader } = $$props;
9473
10893
  let { member } = $$props;
9474
- function launchPortal(e) {
10894
+ let teamPromise;
10895
+ let teamData;
10896
+ let copyInviteText = "Copy";
10897
+ function showRemoveButton(m) {
10898
+ m.showRemoveButton = true;
10899
+ $$invalidate(0, teamData.members = [...teamData.members.filter((member2) => member2.member.id !== m.member.id), m], teamData);
10900
+ setTimeout(
10901
+ () => {
10902
+ m.showRemoveButton = false;
10903
+ },
10904
+ 3e3
10905
+ );
10906
+ }
10907
+ function copyInviteLink() {
10908
+ navigator.clipboard.writeText(inviteLink);
10909
+ $$invalidate(2, copyInviteText = "Copied!");
10910
+ setTimeout(
10911
+ () => {
10912
+ $$invalidate(2, copyInviteText = "Copy");
10913
+ },
10914
+ 2e3
10915
+ );
10916
+ }
10917
+ function getTeam(teamId) {
9475
10918
  return __async(this, null, function* () {
9476
- $$invalidate(5, profileLoader = true);
9477
- yield window.$memberstackDom.launchStripeCustomerPortal({ priceIds: [], autoRedirect: true });
10919
+ const { data } = yield window.$memberstackDom.getTeam({ teamId });
10920
+ $$invalidate(0, teamData = data);
10921
+ return data;
9478
10922
  });
9479
10923
  }
9480
- function removeFreePlan(planId) {
10924
+ function removeMemberFromTeam(memberId) {
9481
10925
  return __async(this, null, function* () {
9482
- $$invalidate(5, profileLoader = true);
9483
10926
  try {
9484
- yield window.$memberstackDom.removePlan({ planId });
9485
- $$invalidate(0, member.planConnections = member.planConnections.filter((plan) => plan.planId !== planId), member);
10927
+ $$invalidate(8, profileLoader = true);
10928
+ yield window.$memberstackDom.removeMemberFromTeam({ teamId: teamData.id, memberId });
10929
+ $$invalidate(0, teamData.members = teamData.members.filter((m) => m.member.id !== memberId), teamData);
10930
+ window.$memberstackDom._showMessage("Member has been removed from team.", false);
9486
10931
  } catch (err) {
9487
- console.log(err);
9488
10932
  window.$memberstackDom._showMessage(err.message, true);
9489
10933
  } finally {
9490
- $$invalidate(5, profileLoader = false);
10934
+ $$invalidate(8, profileLoader = false);
10935
+ }
10936
+ });
10937
+ }
10938
+ function generateInviteToken() {
10939
+ return __async(this, null, function* () {
10940
+ try {
10941
+ $$invalidate(8, profileLoader = true);
10942
+ const { data } = yield window.$memberstackDom.generateInviteToken({ teamId: teamData.id });
10943
+ $$invalidate(0, teamData.inviteToken = data.inviteToken, teamData);
10944
+ window.$memberstackDom._showMessage("Invite Link Regenerated", false);
10945
+ } catch (err) {
10946
+ window.$memberstackDom._showMessage(err.message, true);
10947
+ } finally {
10948
+ $$invalidate(8, profileLoader = false);
9491
10949
  }
9492
10950
  });
9493
10951
  }
9494
- const func2 = (memberPlan, plan) => plan.id === memberPlan.planId;
9495
- const func_12 = (memberPlan) => removeFreePlan(memberPlan.planId);
10952
+ if (((_b = (_a = member == null ? void 0 : member.teams) == null ? void 0 : _a.ownedTeams) == null ? void 0 : _b.length) > 0) {
10953
+ const teamId = (_c = member.teams) == null ? void 0 : _c.ownedTeams[0].teamId;
10954
+ teamPromise = getTeam(teamId);
10955
+ } else {
10956
+ teamPromise = Promise.resolve(null);
10957
+ }
10958
+ const click_handler = () => copyInviteLink();
10959
+ const click_handler_1 = () => generateInviteToken();
10960
+ const click_handler_2 = (m) => showRemoveButton(m);
10961
+ const click_handler_3 = (m) => removeMemberFromTeam(m.member.id);
9496
10962
  $$self.$$set = ($$props2) => {
9497
10963
  if ("profileLoader" in $$props2)
9498
- $$invalidate(5, profileLoader = $$props2.profileLoader);
10964
+ $$invalidate(8, profileLoader = $$props2.profileLoader);
9499
10965
  if ("member" in $$props2)
9500
- $$invalidate(0, member = $$props2.member);
10966
+ $$invalidate(9, member = $$props2.member);
9501
10967
  };
9502
10968
  $$self.$$.update = () => {
9503
- if ($$self.$$.dirty & /*member*/
10969
+ var _a2;
10970
+ if ($$self.$$.dirty & /*teamData*/
9504
10971
  1) {
9505
- $$invalidate(1, freePlanConnections = member.planConnections.filter((plan) => plan.type === "FREE"));
10972
+ $$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}`);
9506
10973
  }
9507
10974
  };
9508
10975
  return [
9509
- member,
9510
- freePlanConnections,
9511
- $app,
9512
- launchPortal,
9513
- removeFreePlan,
10976
+ teamData,
10977
+ teamPromise,
10978
+ copyInviteText,
10979
+ inviteLink,
10980
+ showRemoveButton,
10981
+ copyInviteLink,
10982
+ removeMemberFromTeam,
10983
+ generateInviteToken,
9514
10984
  profileLoader,
9515
- func2,
9516
- func_12
10985
+ member,
10986
+ click_handler,
10987
+ click_handler_1,
10988
+ click_handler_2,
10989
+ click_handler_3
9517
10990
  ];
9518
10991
  }
9519
- var PlansInfoContent = class extends SvelteComponent {
10992
+ var ProfileTeamContent = class extends SvelteComponent {
9520
10993
  constructor(options) {
9521
10994
  super();
9522
- init(this, options, instance$p, create_fragment$L, safe_not_equal, { profileLoader: 5, member: 0 });
10995
+ init(this, options, instance$p, create_fragment$K, safe_not_equal, { profileLoader: 8, member: 9 }, add_css$j);
9523
10996
  }
9524
10997
  };
9525
- function create_if_block_4$5(ctx) {
10998
+ function create_if_block_5$4(ctx) {
9526
10999
  let profileloader;
9527
11000
  let current;
9528
11001
  profileloader = new ProfileLoader({});
@@ -9549,6 +11022,76 @@ function create_if_block_4$5(ctx) {
9549
11022
  }
9550
11023
  };
9551
11024
  }
11025
+ function create_if_block_4$5(ctx) {
11026
+ let profileteamcontent;
11027
+ let updating_member;
11028
+ let updating_profileLoader;
11029
+ let current;
11030
+ function profileteamcontent_member_binding(value) {
11031
+ ctx[19](value);
11032
+ }
11033
+ function profileteamcontent_profileLoader_binding(value) {
11034
+ ctx[20](value);
11035
+ }
11036
+ let profileteamcontent_props = {};
11037
+ if (
11038
+ /*member*/
11039
+ ctx[1] !== void 0
11040
+ ) {
11041
+ profileteamcontent_props.member = /*member*/
11042
+ ctx[1];
11043
+ }
11044
+ if (
11045
+ /*profileLoader*/
11046
+ ctx[4] !== void 0
11047
+ ) {
11048
+ profileteamcontent_props.profileLoader = /*profileLoader*/
11049
+ ctx[4];
11050
+ }
11051
+ profileteamcontent = new ProfileTeamContent({ props: profileteamcontent_props });
11052
+ binding_callbacks.push(() => bind(profileteamcontent, "member", profileteamcontent_member_binding));
11053
+ binding_callbacks.push(() => bind(profileteamcontent, "profileLoader", profileteamcontent_profileLoader_binding));
11054
+ return {
11055
+ c() {
11056
+ create_component(profileteamcontent.$$.fragment);
11057
+ },
11058
+ m(target, anchor) {
11059
+ mount_component(profileteamcontent, target, anchor);
11060
+ current = true;
11061
+ },
11062
+ p(ctx2, dirty) {
11063
+ const profileteamcontent_changes = {};
11064
+ if (!updating_member && dirty & /*member*/
11065
+ 2) {
11066
+ updating_member = true;
11067
+ profileteamcontent_changes.member = /*member*/
11068
+ ctx2[1];
11069
+ add_flush_callback(() => updating_member = false);
11070
+ }
11071
+ if (!updating_profileLoader && dirty & /*profileLoader*/
11072
+ 16) {
11073
+ updating_profileLoader = true;
11074
+ profileteamcontent_changes.profileLoader = /*profileLoader*/
11075
+ ctx2[4];
11076
+ add_flush_callback(() => updating_profileLoader = false);
11077
+ }
11078
+ profileteamcontent.$set(profileteamcontent_changes);
11079
+ },
11080
+ i(local) {
11081
+ if (current)
11082
+ return;
11083
+ transition_in(profileteamcontent.$$.fragment, local);
11084
+ current = true;
11085
+ },
11086
+ o(local) {
11087
+ transition_out(profileteamcontent.$$.fragment, local);
11088
+ current = false;
11089
+ },
11090
+ d(detaching) {
11091
+ destroy_component(profileteamcontent, detaching);
11092
+ }
11093
+ };
11094
+ }
9552
11095
  function create_if_block_3$7(ctx) {
9553
11096
  let plansinfocontent;
9554
11097
  let updating_member;
@@ -9876,7 +11419,7 @@ function create_if_block$l(ctx) {
9876
11419
  }
9877
11420
  };
9878
11421
  }
9879
- function create_fragment$K(ctx) {
11422
+ function create_fragment$J(ctx) {
9880
11423
  let div5;
9881
11424
  let div1;
9882
11425
  let div0;
@@ -9951,9 +11494,15 @@ function create_fragment$K(ctx) {
9951
11494
  binding_callbacks.push(() => bind(profilemodalnav, "profileLoader", profilemodalnav_profileLoader_binding));
9952
11495
  let if_block0 = (
9953
11496
  /*profileLoader*/
9954
- ctx[4] && create_if_block_4$5()
11497
+ ctx[4] && create_if_block_5$4()
9955
11498
  );
9956
- const if_block_creators = [create_if_block$l, create_if_block_1$f, create_if_block_2$b, create_if_block_3$7];
11499
+ const if_block_creators = [
11500
+ create_if_block$l,
11501
+ create_if_block_1$f,
11502
+ create_if_block_2$b,
11503
+ create_if_block_3$7,
11504
+ create_if_block_4$5
11505
+ ];
9957
11506
  const if_blocks = [];
9958
11507
  function select_block_type(ctx2, dirty) {
9959
11508
  if (
@@ -9976,6 +11525,11 @@ function create_fragment$K(ctx) {
9976
11525
  ctx2[0] === "plans"
9977
11526
  )
9978
11527
  return 3;
11528
+ if (
11529
+ /*displayProfile*/
11530
+ ctx2[0] === "team"
11531
+ )
11532
+ return 4;
9979
11533
  return -1;
9980
11534
  }
9981
11535
  if (~(current_block_type_index = select_block_type(ctx))) {
@@ -10081,7 +11635,7 @@ function create_fragment$K(ctx) {
10081
11635
  transition_in(if_block0, 1);
10082
11636
  }
10083
11637
  } else {
10084
- if_block0 = create_if_block_4$5();
11638
+ if_block0 = create_if_block_5$4();
10085
11639
  if_block0.c();
10086
11640
  transition_in(if_block0, 1);
10087
11641
  if_block0.m(div3, t4);
@@ -10215,6 +11769,14 @@ function instance$o($$self, $$props, $$invalidate) {
10215
11769
  profileLoader = value;
10216
11770
  $$invalidate(4, profileLoader);
10217
11771
  }
11772
+ function profileteamcontent_member_binding(value) {
11773
+ member = value;
11774
+ $$invalidate(1, member);
11775
+ }
11776
+ function profileteamcontent_profileLoader_binding(value) {
11777
+ profileLoader = value;
11778
+ $$invalidate(4, profileLoader);
11779
+ }
10218
11780
  $$self.$$set = ($$props2) => {
10219
11781
  if ("onSuccessLogout" in $$props2)
10220
11782
  $$invalidate(2, onSuccessLogout = $$props2.onSuccessLogout);
@@ -10244,13 +11806,15 @@ function instance$o($$self, $$props, $$invalidate) {
10244
11806
  passwordinfocontent_profileLoader_binding,
10245
11807
  passwordinfocontent_member_binding,
10246
11808
  plansinfocontent_member_binding,
10247
- plansinfocontent_profileLoader_binding
11809
+ plansinfocontent_profileLoader_binding,
11810
+ profileteamcontent_member_binding,
11811
+ profileteamcontent_profileLoader_binding
10248
11812
  ];
10249
11813
  }
10250
11814
  var ProfileModal = class extends SvelteComponent {
10251
11815
  constructor(options) {
10252
11816
  super();
10253
- init(this, options, instance$o, create_fragment$K, safe_not_equal, {
11817
+ init(this, options, instance$o, create_fragment$J, safe_not_equal, {
10254
11818
  onSuccessLogout: 2,
10255
11819
  closeModal: 3,
10256
11820
  displayProfile: 0,
@@ -10258,7 +11822,7 @@ var ProfileModal = class extends SvelteComponent {
10258
11822
  });
10259
11823
  }
10260
11824
  };
10261
- function create_fragment$J(ctx) {
11825
+ function create_fragment$I(ctx) {
10262
11826
  let svg;
10263
11827
  let path;
10264
11828
  return {
@@ -10288,7 +11852,7 @@ function create_fragment$J(ctx) {
10288
11852
  var ForwardIcon = class extends SvelteComponent {
10289
11853
  constructor(options) {
10290
11854
  super();
10291
- init(this, options, null, create_fragment$J, safe_not_equal, {});
11855
+ init(this, options, null, create_fragment$I, safe_not_equal, {});
10292
11856
  }
10293
11857
  };
10294
11858
  function create_if_block_1$e(ctx) {
@@ -10433,7 +11997,7 @@ function create_if_block$k(ctx) {
10433
11997
  }
10434
11998
  };
10435
11999
  }
10436
- function create_fragment$I(ctx) {
12000
+ function create_fragment$H(ctx) {
10437
12001
  let div2;
10438
12002
  let t0;
10439
12003
  let button0;
@@ -10693,7 +12257,7 @@ function instance$n($$self, $$props, $$invalidate) {
10693
12257
  var MobileProfileModalNav = class extends SvelteComponent {
10694
12258
  constructor(options) {
10695
12259
  super();
10696
- init(this, options, instance$n, create_fragment$I, safe_not_equal, {
12260
+ init(this, options, instance$n, create_fragment$H, safe_not_equal, {
10697
12261
  member: 1,
10698
12262
  onSuccessLogout: 6,
10699
12263
  displayProfile: 0,
@@ -10862,7 +12426,7 @@ function create_each_block$7(ctx) {
10862
12426
  }
10863
12427
  };
10864
12428
  }
10865
- function create_fragment$H(ctx) {
12429
+ function create_fragment$G(ctx) {
10866
12430
  let form;
10867
12431
  let t0;
10868
12432
  let div;
@@ -10985,7 +12549,7 @@ function instance$m($$self, $$props, $$invalidate) {
10985
12549
  var MobileProfileInfoContent = class extends SvelteComponent {
10986
12550
  constructor(options) {
10987
12551
  super();
10988
- init(this, options, instance$m, create_fragment$H, safe_not_equal, {
12552
+ init(this, options, instance$m, create_fragment$G, safe_not_equal, {
10989
12553
  customFields: 1,
10990
12554
  member: 0,
10991
12555
  profileLoader: 3
@@ -11306,7 +12870,7 @@ function create_each_block$6(key_1, ctx) {
11306
12870
  }
11307
12871
  };
11308
12872
  }
11309
- function create_fragment$G(ctx) {
12873
+ function create_fragment$F(ctx) {
11310
12874
  let form;
11311
12875
  let emailinput;
11312
12876
  let updating_emailInputValid;
@@ -11629,7 +13193,7 @@ function instance$l($$self, $$props, $$invalidate) {
11629
13193
  var MobileSecurityInfoContent = class extends SvelteComponent {
11630
13194
  constructor(options) {
11631
13195
  super();
11632
- init(this, options, instance$l, create_fragment$G, safe_not_equal, {
13196
+ init(this, options, instance$l, create_fragment$F, safe_not_equal, {
11633
13197
  displayProfile: 0,
11634
13198
  member: 1,
11635
13199
  emailValue: 2,
@@ -11710,7 +13274,7 @@ function create_if_block$h(ctx) {
11710
13274
  }
11711
13275
  };
11712
13276
  }
11713
- function create_fragment$F(ctx) {
13277
+ function create_fragment$E(ctx) {
11714
13278
  let form;
11715
13279
  let t0;
11716
13280
  let passwordinput0;
@@ -12026,7 +13590,7 @@ function instance$k($$self, $$props, $$invalidate) {
12026
13590
  var MobilePasswordInfoContent = class extends SvelteComponent {
12027
13591
  constructor(options) {
12028
13592
  super();
12029
- init(this, options, instance$k, create_fragment$F, safe_not_equal, { profileLoader: 8, member: 0 });
13593
+ init(this, options, instance$k, create_fragment$E, safe_not_equal, { profileLoader: 8, member: 0 });
12030
13594
  }
12031
13595
  };
12032
13596
  function create_if_block_6$3(ctx) {
@@ -12533,7 +14097,7 @@ function create_if_block$g(ctx) {
12533
14097
  }
12534
14098
  };
12535
14099
  }
12536
- function create_fragment$E(ctx) {
14100
+ function create_fragment$D(ctx) {
12537
14101
  let div5;
12538
14102
  let div2;
12539
14103
  let t0;
@@ -12939,7 +14503,7 @@ function instance$j($$self, $$props, $$invalidate) {
12939
14503
  var MobileProfileModal = class extends SvelteComponent {
12940
14504
  constructor(options) {
12941
14505
  super();
12942
- init(this, options, instance$j, create_fragment$E, safe_not_equal, {
14506
+ init(this, options, instance$j, create_fragment$D, safe_not_equal, {
12943
14507
  onSuccessLogout: 3,
12944
14508
  closeModal: 4,
12945
14509
  displayProfile: 0,
@@ -12948,42 +14512,6 @@ var MobileProfileModal = class extends SvelteComponent {
12948
14512
  });
12949
14513
  }
12950
14514
  };
12951
- function add_css$j(target) {
12952
- append_styles(target, "svelte-c6ihgv", "svg.svelte-c6ihgv{fill:currentColor}");
12953
- }
12954
- function create_fragment$D(ctx) {
12955
- let svg;
12956
- let path;
12957
- return {
12958
- c() {
12959
- svg = svg_element("svg");
12960
- path = svg_element("path");
12961
- 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");
12962
- attr(svg, "xmlns", "http://www.w3.org/2000/svg");
12963
- attr(svg, "height", "20");
12964
- attr(svg, "viewBox", "0 -960 960 960");
12965
- attr(svg, "width", "20");
12966
- attr(svg, "class", "svelte-c6ihgv");
12967
- },
12968
- m(target, anchor) {
12969
- insert(target, svg, anchor);
12970
- append(svg, path);
12971
- },
12972
- p: noop,
12973
- i: noop,
12974
- o: noop,
12975
- d(detaching) {
12976
- if (detaching)
12977
- detach(svg);
12978
- }
12979
- };
12980
- }
12981
- var CopyIcon$1 = class extends SvelteComponent {
12982
- constructor(options) {
12983
- super();
12984
- init(this, options, null, create_fragment$D, safe_not_equal, {}, add_css$j);
12985
- }
12986
- };
12987
14515
  function add_css$i(target) {
12988
14516
  append_styles(target, "svelte-50knw2", "svg.svelte-50knw2{fill:currentColor;width:9px;height:auto}");
12989
14517
  }
@@ -15012,7 +16540,7 @@ var InspectorBadgeOpen = class extends SvelteComponent {
15012
16540
  }
15013
16541
  };
15014
16542
  function add_css$f(target) {
15015
- 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%)}");
16543
+ 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%)}");
15016
16544
  }
15017
16545
  function create_else_block_1$1(ctx) {
15018
16546
  let span;
@@ -15020,7 +16548,7 @@ function create_else_block_1$1(ctx) {
15020
16548
  c() {
15021
16549
  span = element("span");
15022
16550
  span.textContent = "Hide Inspector";
15023
- attr(span, "class", "ms-inspector-badge__text svelte-1dmftgw");
16551
+ attr(span, "class", "ms-inspector-badge__text svelte-rhveiw");
15024
16552
  },
15025
16553
  m(target, anchor) {
15026
16554
  insert(target, span, anchor);
@@ -15037,7 +16565,7 @@ function create_if_block_2$8(ctx) {
15037
16565
  c() {
15038
16566
  span = element("span");
15039
16567
  span.textContent = "Test Mode";
15040
- attr(span, "class", "ms-inspector-badge__text svelte-1dmftgw");
16568
+ attr(span, "class", "ms-inspector-badge__text svelte-rhveiw");
15041
16569
  },
15042
16570
  m(target, anchor) {
15043
16571
  insert(target, span, anchor);
@@ -15055,7 +16583,7 @@ function create_if_block_1$b(ctx) {
15055
16583
  return {
15056
16584
  c() {
15057
16585
  span = element("span");
15058
- attr(span, "class", "ms-inspector-badge__error-indicator svelte-1dmftgw");
16586
+ attr(span, "class", "ms-inspector-badge__error-indicator svelte-rhveiw");
15059
16587
  },
15060
16588
  m(target, anchor) {
15061
16589
  insert(target, span, anchor);
@@ -15197,18 +16725,24 @@ function create_fragment$y(ctx) {
15197
16725
  if_block1.c();
15198
16726
  t3 = space();
15199
16727
  if_block2.c();
15200
- attr(span0, "class", "ms-inspector-badge__logo svelte-1dmftgw");
15201
- attr(span1, "class", "ms-inspector-badge__text-wrapper svelte-1dmftgw");
15202
- attr(span2, "class", "ms-inspector-badge__divider svelte-1dmftgw");
15203
- attr(span3, "class", "ms-inspector-badge__count svelte-1dmftgw");
16728
+ attr(span0, "class", "ms-inspector-badge__logo svelte-rhveiw");
16729
+ attr(span1, "class", "ms-inspector-badge__text-wrapper svelte-rhveiw");
16730
+ attr(span2, "class", "ms-inspector-badge__divider svelte-rhveiw");
16731
+ attr(span3, "class", "ms-inspector-badge__count svelte-rhveiw");
15204
16732
  toggle_class(
15205
16733
  span3,
15206
16734
  "ms-inspector-badge__count--open",
15207
16735
  /*$InspectorStore*/
15208
16736
  ctx[0].showSidebar
15209
16737
  );
15210
- attr(button, "class", "ms-inspector-badge svelte-1dmftgw");
16738
+ attr(button, "class", "ms-inspector-badge svelte-rhveiw");
15211
16739
  attr(button, "data-cy", "inspector-button");
16740
+ toggle_class(
16741
+ button,
16742
+ "ms-inspector-badge--error",
16743
+ /*$InspectorStore*/
16744
+ ctx[0].xRayErrorElements.length > 0
16745
+ );
15212
16746
  set_style(
15213
16747
  button,
15214
16748
  "z-index",
@@ -15302,6 +16836,15 @@ function create_fragment$y(ctx) {
15302
16836
  ctx2[0].showSidebar
15303
16837
  );
15304
16838
  }
16839
+ if (!current || dirty & /*$InspectorStore*/
16840
+ 1) {
16841
+ toggle_class(
16842
+ button,
16843
+ "ms-inspector-badge--error",
16844
+ /*$InspectorStore*/
16845
+ ctx2[0].xRayErrorElements.length > 0
16846
+ );
16847
+ }
15305
16848
  if (dirty & /*$InspectorStore*/
15306
16849
  1) {
15307
16850
  set_style(
@@ -25027,7 +26570,6 @@ function instance($$self, $$props, $$invalidate) {
25027
26570
  if (params && params.app) {
25028
26571
  setAppStore(params.app);
25029
26572
  } else {
25030
- console.log("No app specified - request it");
25031
26573
  yield getApp();
25032
26574
  }
25033
26575
  $$invalidate(7, appLoading = false);