@lunora/studio 1.0.0-alpha.52 → 1.0.0-alpha.53

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.
Files changed (47) hide show
  1. package/dist/packem_chunks/organizations-panel.js +240 -209
  2. package/dist/standalone/{chunk-KGQGNJJ2.js → chunk-3C3CU2DS.js} +1 -1
  3. package/dist/standalone/chunk-3GVA2ROQ.js +1 -0
  4. package/dist/standalone/{chunk-DTPFXYHG.js → chunk-3MAQAOUA.js} +1 -1
  5. package/dist/standalone/{chunk-XOANGJJP.js → chunk-3XBP6RRG.js} +1 -1
  6. package/dist/standalone/{chunk-4QA5TWYJ.js → chunk-43F677PE.js} +1 -1
  7. package/dist/standalone/{chunk-ZZMGCPXE.js → chunk-5JB7FDCA.js} +1 -1
  8. package/dist/standalone/{chunk-VN2PDOMK.js → chunk-6TMEOFZC.js} +1 -1
  9. package/dist/standalone/{chunk-YA6POZJD.js → chunk-75LPCQ77.js} +1 -1
  10. package/dist/standalone/{chunk-N4NG7HGI.js → chunk-7KSXHCUD.js} +1 -1
  11. package/dist/standalone/{chunk-E3FVNRH7.js → chunk-7N5KFSSB.js} +1 -1
  12. package/dist/standalone/{chunk-TSLR3ZU2.js → chunk-ALL4U2C5.js} +1 -1
  13. package/dist/standalone/{chunk-OSPEOESV.js → chunk-C4QK2DJN.js} +1 -1
  14. package/dist/standalone/{chunk-6TYT447C.js → chunk-CODD62OJ.js} +1 -1
  15. package/dist/standalone/{chunk-T3UCZ5PJ.js → chunk-CRY26DNY.js} +1 -1
  16. package/dist/standalone/{chunk-FJV4UNYY.js → chunk-CZGILAZI.js} +1 -1
  17. package/dist/standalone/{chunk-FWTZYHX4.js → chunk-DMFVDMUJ.js} +1 -1
  18. package/dist/standalone/{chunk-VLIRTNLA.js → chunk-FFVSSWU2.js} +1 -1
  19. package/dist/standalone/{chunk-ZECNJ4FG.js → chunk-GPQX3AEO.js} +1 -1
  20. package/dist/standalone/{chunk-BE24FXAK.js → chunk-HRHG4HOZ.js} +1 -1
  21. package/dist/standalone/{chunk-Q7TKOAGT.js → chunk-HZKFL2M7.js} +1 -1
  22. package/dist/standalone/{chunk-LDEVBRDZ.js → chunk-I7Y7ST5Y.js} +1 -1
  23. package/dist/standalone/{chunk-ZETIKSQJ.js → chunk-IC7XYSER.js} +1 -1
  24. package/dist/standalone/{chunk-CP2EQVLU.js → chunk-IEKK5GO6.js} +1 -1
  25. package/dist/standalone/{chunk-LVH4KLXS.js → chunk-ISOUWAPB.js} +1 -1
  26. package/dist/standalone/chunk-LOYE7OU2.js +11 -0
  27. package/dist/standalone/{chunk-VC5RNEHU.js → chunk-LT7IG26L.js} +1 -1
  28. package/dist/standalone/{chunk-KKJZL75J.js → chunk-NXAKNU3L.js} +1 -1
  29. package/dist/standalone/{chunk-Q7PYLDZU.js → chunk-OETK333R.js} +1 -1
  30. package/dist/standalone/{chunk-7SN6J4DZ.js → chunk-PWKD5FTM.js} +1 -1
  31. package/dist/standalone/{chunk-DBLAQC32.js → chunk-R2MAZ2OH.js} +1 -1
  32. package/dist/standalone/{chunk-IMZKGRPW.js → chunk-S7RKDQPS.js} +1 -1
  33. package/dist/standalone/{chunk-VZFJI6XE.js → chunk-SXAFEREK.js} +1 -1
  34. package/dist/standalone/{chunk-2ZL6MXBC.js → chunk-T7FHIJ2T.js} +1 -1
  35. package/dist/standalone/{chunk-DANDBL6P.js → chunk-TC4KPQJ7.js} +2 -2
  36. package/dist/standalone/{chunk-UX53GWGU.js → chunk-USYCKPUK.js} +1 -1
  37. package/dist/standalone/{chunk-G465LTLD.js → chunk-VY6AI3RI.js} +1 -1
  38. package/dist/standalone/{chunk-AVONJCNY.js → chunk-WXUUGXDV.js} +1 -1
  39. package/dist/standalone/{chunk-ONSKQCYN.js → chunk-XXAW7V4T.js} +1 -1
  40. package/dist/standalone/{chunk-4ELN4RE4.js → chunk-XXXNY3DK.js} +1 -1
  41. package/dist/standalone/{chunk-KDZJ5A3R.js → chunk-YFZ27MEC.js} +1 -1
  42. package/dist/standalone/{chunk-RXVQJ4DO.js → chunk-ZQQ3MFEQ.js} +1 -1
  43. package/dist/standalone/{chunk-WJ6OBCUM.js → chunk-ZVT4GJEI.js} +1 -1
  44. package/dist/standalone/studio.js +1 -1
  45. package/package.json +4 -4
  46. package/dist/standalone/chunk-AJ2B326V.js +0 -1
  47. package/dist/standalone/chunk-L2YBC2BV.js +0 -11
@@ -9,7 +9,7 @@ import { a as useClientQuery } from '../packem_shared/use-admin-query-BGJ010yZ.j
9
9
  import { u as useAsyncSubmit, a as useAuthConfig } from '../packem_shared/use-async-submit-DGCtuDyz.js';
10
10
  import { useAutoRefresh } from '../packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
11
11
  import { useT } from '../packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
12
- import { h as formatCell, f as fireAndForget, i as formatTimestamp } from '../packem_shared/internal-zwBoOv24.js';
12
+ import { h as formatCell, f as fireAndForget, e as errorMessage, i as formatTimestamp } from '../packem_shared/internal-zwBoOv24.js';
13
13
  import { I as Input } from '../packem_shared/input-XH4r1Pt1.js';
14
14
  import { L as Label } from '../packem_shared/label-D8ykjn5J.js';
15
15
  import { M as ModalShell } from '../packem_shared/modal-shell-hyaJvIJ6.js';
@@ -1699,7 +1699,7 @@ const ManagedTable = (t0) => {
1699
1699
  return t7;
1700
1700
  };
1701
1701
  const OrganizationDetail = (t0) => {
1702
- const $ = c(213);
1702
+ const $ = c(219);
1703
1703
  const {
1704
1704
  organizationId,
1705
1705
  rolesEnabled,
@@ -1709,6 +1709,8 @@ const OrganizationDetail = (t0) => {
1709
1709
  const t = useT();
1710
1710
  const [dialog, setDialog] = useState(null);
1711
1711
  const [selectedTeam, setSelectedTeam] = useState(null);
1712
+ const [actionBusy, setActionBusy] = useState(false);
1713
+ const [actionError, setActionError] = useState(null);
1712
1714
  let t1;
1713
1715
  if ($[0] !== organizationId) {
1714
1716
  t1 = ["lunora-auth-org-members", organizationId];
@@ -1935,8 +1937,17 @@ const OrganizationDetail = (t0) => {
1935
1937
  if ($[52] !== refetchAll) {
1936
1938
  t22 = (action) => {
1937
1939
  fireAndForget((async () => {
1938
- await action();
1939
- refetchAll();
1940
+ setActionBusy(true);
1941
+ setActionError(null);
1942
+ try {
1943
+ await action();
1944
+ refetchAll();
1945
+ setActionBusy(false);
1946
+ } catch (t232) {
1947
+ const error_ = t232;
1948
+ setActionError(errorMessage(error_));
1949
+ setActionBusy(false);
1950
+ }
1940
1951
  })());
1941
1952
  };
1942
1953
  $[52] = refetchAll;
@@ -2217,95 +2228,108 @@ const OrganizationDetail = (t0) => {
2217
2228
  t48 = $[111];
2218
2229
  }
2219
2230
  let t49;
2220
- if ($[112] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2221
- t49 = () => {
2231
+ if ($[112] !== actionError) {
2232
+ t49 = actionError !== null && /* @__PURE__ */ jsxDEV("p", {
2233
+ className: "text-sm text-destructive",
2234
+ "data-testid": "org-action-error",
2235
+ role: "alert",
2236
+ children: actionError
2237
+ }, void 0, false);
2238
+ $[112] = actionError;
2239
+ $[113] = t49;
2240
+ } else {
2241
+ t49 = $[113];
2242
+ }
2243
+ let t50;
2244
+ if ($[114] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2245
+ t50 = () => {
2222
2246
  setDialog({
2223
2247
  kind: "add-member"
2224
2248
  });
2225
2249
  };
2226
- $[112] = t49;
2227
- } else {
2228
- t49 = $[112];
2229
- }
2230
- let t50;
2231
- if ($[113] !== t) {
2232
- t50 = t("Add member");
2233
- $[113] = t;
2234
2250
  $[114] = t50;
2235
2251
  } else {
2236
2252
  t50 = $[114];
2237
2253
  }
2238
2254
  let t51;
2239
- if ($[115] !== t50) {
2240
- t51 = /* @__PURE__ */ jsxDEV(Button, {
2255
+ if ($[115] !== t) {
2256
+ t51 = t("Add member");
2257
+ $[115] = t;
2258
+ $[116] = t51;
2259
+ } else {
2260
+ t51 = $[116];
2261
+ }
2262
+ let t52;
2263
+ if ($[117] !== t51) {
2264
+ t52 = /* @__PURE__ */ jsxDEV(Button, {
2241
2265
  "data-testid": "org-open-add-member",
2242
- onClick: t49,
2266
+ onClick: t50,
2243
2267
  size: "xs",
2244
2268
  type: "button",
2245
2269
  variant: "outline",
2246
- children: t50
2270
+ children: t51
2247
2271
  }, void 0, false);
2248
- $[115] = t50;
2249
- $[116] = t51;
2272
+ $[117] = t51;
2273
+ $[118] = t52;
2250
2274
  } else {
2251
- t51 = $[116];
2275
+ t52 = $[118];
2252
2276
  }
2253
- let t52;
2254
- if ($[117] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2255
- t52 = () => {
2277
+ let t53;
2278
+ if ($[119] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2279
+ t53 = () => {
2256
2280
  setDialog({
2257
2281
  kind: "invite-member"
2258
2282
  });
2259
2283
  };
2260
- $[117] = t52;
2261
- } else {
2262
- t52 = $[117];
2263
- }
2264
- let t53;
2265
- if ($[118] !== t) {
2266
- t53 = t("Invite member");
2267
- $[118] = t;
2268
2284
  $[119] = t53;
2269
2285
  } else {
2270
2286
  t53 = $[119];
2271
2287
  }
2272
2288
  let t54;
2273
- if ($[120] !== t53) {
2274
- t54 = /* @__PURE__ */ jsxDEV(Button, {
2275
- "data-testid": "org-open-invite-member",
2276
- onClick: t52,
2277
- size: "xs",
2278
- type: "button",
2279
- variant: "outline",
2280
- children: t53
2281
- }, void 0, false);
2282
- $[120] = t53;
2289
+ if ($[120] !== t) {
2290
+ t54 = t("Invite member");
2291
+ $[120] = t;
2283
2292
  $[121] = t54;
2284
2293
  } else {
2285
2294
  t54 = $[121];
2286
2295
  }
2287
2296
  let t55;
2288
- if ($[122] !== t51 || $[123] !== t54) {
2289
- t55 = /* @__PURE__ */ jsxDEV(Fragment, {
2290
- children: [t51, t54]
2291
- }, void 0, true);
2292
- $[122] = t51;
2293
- $[123] = t54;
2294
- $[124] = t55;
2297
+ if ($[122] !== t54) {
2298
+ t55 = /* @__PURE__ */ jsxDEV(Button, {
2299
+ "data-testid": "org-open-invite-member",
2300
+ onClick: t53,
2301
+ size: "xs",
2302
+ type: "button",
2303
+ variant: "outline",
2304
+ children: t54
2305
+ }, void 0, false);
2306
+ $[122] = t54;
2307
+ $[123] = t55;
2295
2308
  } else {
2296
- t55 = $[124];
2309
+ t55 = $[123];
2297
2310
  }
2298
2311
  let t56;
2299
- if ($[125] !== t) {
2300
- t56 = t("Members");
2301
- $[125] = t;
2312
+ if ($[124] !== t52 || $[125] !== t55) {
2313
+ t56 = /* @__PURE__ */ jsxDEV(Fragment, {
2314
+ children: [t52, t55]
2315
+ }, void 0, true);
2316
+ $[124] = t52;
2317
+ $[125] = t55;
2302
2318
  $[126] = t56;
2303
2319
  } else {
2304
2320
  t56 = $[126];
2305
2321
  }
2306
2322
  let t57;
2307
- if ($[127] !== client || $[128] !== memberColumns || $[129] !== members || $[130] !== runAction || $[131] !== t) {
2308
- t57 = members.length === 0 ? /* @__PURE__ */ jsxDEV("div", {
2323
+ if ($[127] !== t) {
2324
+ t57 = t("Members");
2325
+ $[127] = t;
2326
+ $[128] = t57;
2327
+ } else {
2328
+ t57 = $[128];
2329
+ }
2330
+ let t58;
2331
+ if ($[129] !== actionBusy || $[130] !== client || $[131] !== memberColumns || $[132] !== members || $[133] !== runAction || $[134] !== t) {
2332
+ t58 = members.length === 0 ? /* @__PURE__ */ jsxDEV("div", {
2309
2333
  className: "p-3",
2310
2334
  children: /* @__PURE__ */ jsxDEV(EmptyState, {
2311
2335
  testId: "org-members-empty",
@@ -2328,6 +2352,7 @@ const OrganizationDetail = (t0) => {
2328
2352
  children: t("Change role")
2329
2353
  }, void 0, false), /* @__PURE__ */ jsxDEV(Button, {
2330
2354
  "data-testid": `org-remove-member-${formatCell(row_10.id)}`,
2355
+ disabled: actionBusy,
2331
2356
  onClick: () => {
2332
2357
  runAction(() => client.removeAuthOrgMember({
2333
2358
  memberId: formatCell(row_10.id)
@@ -2342,39 +2367,41 @@ const OrganizationDetail = (t0) => {
2342
2367
  rowPrefix: "org-member",
2343
2368
  rows: members
2344
2369
  }, void 0, false);
2345
- $[127] = client;
2346
- $[128] = memberColumns;
2347
- $[129] = members;
2348
- $[130] = runAction;
2349
- $[131] = t;
2350
- $[132] = t57;
2370
+ $[129] = actionBusy;
2371
+ $[130] = client;
2372
+ $[131] = memberColumns;
2373
+ $[132] = members;
2374
+ $[133] = runAction;
2375
+ $[134] = t;
2376
+ $[135] = t58;
2351
2377
  } else {
2352
- t57 = $[132];
2378
+ t58 = $[135];
2353
2379
  }
2354
- let t58;
2355
- if ($[133] !== t55 || $[134] !== t56 || $[135] !== t57) {
2356
- t58 = /* @__PURE__ */ jsxDEV(SectionCard, {
2357
- action: t55,
2358
- heading: t56,
2380
+ let t59;
2381
+ if ($[136] !== t56 || $[137] !== t57 || $[138] !== t58) {
2382
+ t59 = /* @__PURE__ */ jsxDEV(SectionCard, {
2383
+ action: t56,
2384
+ heading: t57,
2359
2385
  testId: "org-members",
2360
- children: t57
2386
+ children: t58
2361
2387
  }, void 0, false);
2362
- $[133] = t55;
2363
- $[134] = t56;
2364
- $[135] = t57;
2365
- $[136] = t58;
2388
+ $[136] = t56;
2389
+ $[137] = t57;
2390
+ $[138] = t58;
2391
+ $[139] = t59;
2366
2392
  } else {
2367
- t58 = $[136];
2393
+ t59 = $[139];
2368
2394
  }
2369
- let t59;
2370
- if ($[137] !== client || $[138] !== invitationColumns || $[139] !== invitations || $[140] !== runAction || $[141] !== t) {
2371
- t59 = invitations.length > 0 && /* @__PURE__ */ jsxDEV(SectionCard, {
2395
+ let t60;
2396
+ if ($[140] !== actionBusy || $[141] !== client || $[142] !== invitationColumns || $[143] !== invitations || $[144] !== runAction || $[145] !== t) {
2397
+ t60 = invitations.length > 0 && /* @__PURE__ */ jsxDEV(SectionCard, {
2372
2398
  heading: t("Invitations"),
2373
2399
  testId: "org-invitations",
2374
2400
  children: /* @__PURE__ */ jsxDEV(ManagedTable, {
2375
2401
  columns: invitationColumns,
2376
2402
  rowActions: (row_11) => /* @__PURE__ */ jsxDEV(Button, {
2377
2403
  "data-testid": `org-cancel-invitation-${formatCell(row_11.id)}`,
2404
+ disabled: actionBusy,
2378
2405
  onClick: () => {
2379
2406
  runAction(() => client.cancelAuthOrgInvitation({
2380
2407
  invitationId: formatCell(row_11.id)
@@ -2389,18 +2416,19 @@ const OrganizationDetail = (t0) => {
2389
2416
  rows: invitations
2390
2417
  }, void 0, false)
2391
2418
  }, void 0, false);
2392
- $[137] = client;
2393
- $[138] = invitationColumns;
2394
- $[139] = invitations;
2395
- $[140] = runAction;
2396
- $[141] = t;
2397
- $[142] = t59;
2419
+ $[140] = actionBusy;
2420
+ $[141] = client;
2421
+ $[142] = invitationColumns;
2422
+ $[143] = invitations;
2423
+ $[144] = runAction;
2424
+ $[145] = t;
2425
+ $[146] = t60;
2398
2426
  } else {
2399
- t59 = $[142];
2427
+ t60 = $[146];
2400
2428
  }
2401
- let t60;
2402
- if ($[143] !== confirmDeleteTeam || $[144] !== selectedTeam || $[145] !== t || $[146] !== teamColumns || $[147] !== teams || $[148] !== teamsEnabled) {
2403
- t60 = teamsEnabled && /* @__PURE__ */ jsxDEV(SectionCard, {
2429
+ let t61;
2430
+ if ($[147] !== confirmDeleteTeam || $[148] !== selectedTeam || $[149] !== t || $[150] !== teamColumns || $[151] !== teams || $[152] !== teamsEnabled) {
2431
+ t61 = teamsEnabled && /* @__PURE__ */ jsxDEV(SectionCard, {
2404
2432
  action: /* @__PURE__ */ jsxDEV(Button, {
2405
2433
  "data-testid": "org-open-create-team",
2406
2434
  onClick: () => {
@@ -2461,19 +2489,19 @@ const OrganizationDetail = (t0) => {
2461
2489
  rows: teams
2462
2490
  }, void 0, false)
2463
2491
  }, void 0, false);
2464
- $[143] = confirmDeleteTeam;
2465
- $[144] = selectedTeam;
2466
- $[145] = t;
2467
- $[146] = teamColumns;
2468
- $[147] = teams;
2469
- $[148] = teamsEnabled;
2470
- $[149] = t60;
2492
+ $[147] = confirmDeleteTeam;
2493
+ $[148] = selectedTeam;
2494
+ $[149] = t;
2495
+ $[150] = teamColumns;
2496
+ $[151] = teams;
2497
+ $[152] = teamsEnabled;
2498
+ $[153] = t61;
2471
2499
  } else {
2472
- t60 = $[149];
2500
+ t61 = $[153];
2473
2501
  }
2474
- let t61;
2475
- if ($[150] !== client || $[151] !== runAction || $[152] !== selectedTeam || $[153] !== t || $[154] !== teamMemberColumns || $[155] !== teamMembers || $[156] !== teamsEnabled) {
2476
- t61 = teamsEnabled && selectedTeam !== null && /* @__PURE__ */ jsxDEV(SectionCard, {
2502
+ let t62;
2503
+ if ($[154] !== actionBusy || $[155] !== client || $[156] !== runAction || $[157] !== selectedTeam || $[158] !== t || $[159] !== teamMemberColumns || $[160] !== teamMembers || $[161] !== teamsEnabled) {
2504
+ t62 = teamsEnabled && selectedTeam !== null && /* @__PURE__ */ jsxDEV(SectionCard, {
2477
2505
  action: /* @__PURE__ */ jsxDEV(Button, {
2478
2506
  "data-testid": "org-open-add-team-member",
2479
2507
  onClick: () => {
@@ -2499,6 +2527,7 @@ const OrganizationDetail = (t0) => {
2499
2527
  columns: teamMemberColumns,
2500
2528
  rowActions: (row_13) => /* @__PURE__ */ jsxDEV(Button, {
2501
2529
  "data-testid": `org-team-remove-member-${formatCell(row_13.id)}`,
2530
+ disabled: actionBusy,
2502
2531
  onClick: () => {
2503
2532
  runAction(() => client.removeAuthOrgTeamMember({
2504
2533
  teamMemberId: formatCell(row_13.id)
@@ -2513,20 +2542,21 @@ const OrganizationDetail = (t0) => {
2513
2542
  rows: teamMembers
2514
2543
  }, void 0, false)
2515
2544
  }, void 0, false);
2516
- $[150] = client;
2517
- $[151] = runAction;
2518
- $[152] = selectedTeam;
2519
- $[153] = t;
2520
- $[154] = teamMemberColumns;
2521
- $[155] = teamMembers;
2522
- $[156] = teamsEnabled;
2523
- $[157] = t61;
2545
+ $[154] = actionBusy;
2546
+ $[155] = client;
2547
+ $[156] = runAction;
2548
+ $[157] = selectedTeam;
2549
+ $[158] = t;
2550
+ $[159] = teamMemberColumns;
2551
+ $[160] = teamMembers;
2552
+ $[161] = teamsEnabled;
2553
+ $[162] = t62;
2524
2554
  } else {
2525
- t61 = $[157];
2555
+ t62 = $[162];
2526
2556
  }
2527
- let t62;
2528
- if ($[158] !== client || $[159] !== roleColumns || $[160] !== roles || $[161] !== rolesEnabled || $[162] !== t) {
2529
- t62 = rolesEnabled && /* @__PURE__ */ jsxDEV(SectionCard, {
2557
+ let t63;
2558
+ if ($[163] !== client || $[164] !== roleColumns || $[165] !== roles || $[166] !== rolesEnabled || $[167] !== t) {
2559
+ t63 = rolesEnabled && /* @__PURE__ */ jsxDEV(SectionCard, {
2530
2560
  action: /* @__PURE__ */ jsxDEV(Button, {
2531
2561
  "data-testid": "org-open-create-role",
2532
2562
  onClick: () => {
@@ -2585,134 +2615,134 @@ const OrganizationDetail = (t0) => {
2585
2615
  rows: roles
2586
2616
  }, void 0, false)
2587
2617
  }, void 0, false);
2588
- $[158] = client;
2589
- $[159] = roleColumns;
2590
- $[160] = roles;
2591
- $[161] = rolesEnabled;
2592
- $[162] = t;
2593
- $[163] = t62;
2618
+ $[163] = client;
2619
+ $[164] = roleColumns;
2620
+ $[165] = roles;
2621
+ $[166] = rolesEnabled;
2622
+ $[167] = t;
2623
+ $[168] = t63;
2594
2624
  } else {
2595
- t62 = $[163];
2625
+ t63 = $[168];
2596
2626
  }
2597
- let t63;
2598
- if ($[164] !== dialog?.kind || $[165] !== organizationId || $[166] !== refetchAll) {
2599
- t63 = dialog?.kind === "add-member" && /* @__PURE__ */ jsxDEV(MemberAddDialog, {
2627
+ let t64;
2628
+ if ($[169] !== dialog?.kind || $[170] !== organizationId || $[171] !== refetchAll) {
2629
+ t64 = dialog?.kind === "add-member" && /* @__PURE__ */ jsxDEV(MemberAddDialog, {
2600
2630
  onClose: closeDialog,
2601
2631
  onDone: refetchAll,
2602
2632
  organizationId
2603
2633
  }, void 0, false);
2604
- $[164] = dialog?.kind;
2605
- $[165] = organizationId;
2606
- $[166] = refetchAll;
2607
- $[167] = t63;
2634
+ $[169] = dialog?.kind;
2635
+ $[170] = organizationId;
2636
+ $[171] = refetchAll;
2637
+ $[172] = t64;
2608
2638
  } else {
2609
- t63 = $[167];
2639
+ t64 = $[172];
2610
2640
  }
2611
- let t64;
2612
- if ($[168] !== dialog?.kind || $[169] !== organizationId || $[170] !== refetchAll) {
2613
- t64 = dialog?.kind === "invite-member" && /* @__PURE__ */ jsxDEV(MemberInviteDialog, {
2641
+ let t65;
2642
+ if ($[173] !== dialog?.kind || $[174] !== organizationId || $[175] !== refetchAll) {
2643
+ t65 = dialog?.kind === "invite-member" && /* @__PURE__ */ jsxDEV(MemberInviteDialog, {
2614
2644
  onClose: closeDialog,
2615
2645
  onDone: refetchAll,
2616
2646
  organizationId
2617
2647
  }, void 0, false);
2618
- $[168] = dialog?.kind;
2619
- $[169] = organizationId;
2620
- $[170] = refetchAll;
2621
- $[171] = t64;
2648
+ $[173] = dialog?.kind;
2649
+ $[174] = organizationId;
2650
+ $[175] = refetchAll;
2651
+ $[176] = t65;
2622
2652
  } else {
2623
- t64 = $[171];
2653
+ t65 = $[176];
2624
2654
  }
2625
- let t65;
2626
- if ($[172] !== dialog || $[173] !== refetchAll) {
2627
- t65 = dialog?.kind === "member-role" && /* @__PURE__ */ jsxDEV(MemberRoleDialog, {
2655
+ let t66;
2656
+ if ($[177] !== dialog || $[178] !== refetchAll) {
2657
+ t66 = dialog?.kind === "member-role" && /* @__PURE__ */ jsxDEV(MemberRoleDialog, {
2628
2658
  member: dialog.member,
2629
2659
  onClose: closeDialog,
2630
2660
  onDone: refetchAll
2631
2661
  }, void 0, false);
2632
- $[172] = dialog;
2633
- $[173] = refetchAll;
2634
- $[174] = t65;
2662
+ $[177] = dialog;
2663
+ $[178] = refetchAll;
2664
+ $[179] = t66;
2635
2665
  } else {
2636
- t65 = $[174];
2666
+ t66 = $[179];
2637
2667
  }
2638
- let t66;
2639
- if ($[175] !== dialog?.kind || $[176] !== organizationId || $[177] !== refetchAll) {
2640
- t66 = dialog?.kind === "team-create" && /* @__PURE__ */ jsxDEV(TeamFormDialog, {
2668
+ let t67;
2669
+ if ($[180] !== dialog?.kind || $[181] !== organizationId || $[182] !== refetchAll) {
2670
+ t67 = dialog?.kind === "team-create" && /* @__PURE__ */ jsxDEV(TeamFormDialog, {
2641
2671
  mode: "create",
2642
2672
  onClose: closeDialog,
2643
2673
  onDone: refetchAll,
2644
2674
  organizationId
2645
2675
  }, void 0, false);
2646
- $[175] = dialog?.kind;
2647
- $[176] = organizationId;
2648
- $[177] = refetchAll;
2649
- $[178] = t66;
2676
+ $[180] = dialog?.kind;
2677
+ $[181] = organizationId;
2678
+ $[182] = refetchAll;
2679
+ $[183] = t67;
2650
2680
  } else {
2651
- t66 = $[178];
2681
+ t67 = $[183];
2652
2682
  }
2653
- let t67;
2654
- if ($[179] !== dialog || $[180] !== organizationId || $[181] !== refetchAll) {
2655
- t67 = dialog?.kind === "team-rename" && /* @__PURE__ */ jsxDEV(TeamFormDialog, {
2683
+ let t68;
2684
+ if ($[184] !== dialog || $[185] !== organizationId || $[186] !== refetchAll) {
2685
+ t68 = dialog?.kind === "team-rename" && /* @__PURE__ */ jsxDEV(TeamFormDialog, {
2656
2686
  mode: "edit",
2657
2687
  onClose: closeDialog,
2658
2688
  onDone: refetchAll,
2659
2689
  organizationId,
2660
2690
  team: dialog.team
2661
2691
  }, void 0, false);
2662
- $[179] = dialog;
2663
- $[180] = organizationId;
2664
- $[181] = refetchAll;
2665
- $[182] = t67;
2692
+ $[184] = dialog;
2693
+ $[185] = organizationId;
2694
+ $[186] = refetchAll;
2695
+ $[187] = t68;
2666
2696
  } else {
2667
- t67 = $[182];
2697
+ t68 = $[187];
2668
2698
  }
2669
- let t68;
2670
- if ($[183] !== dialog || $[184] !== refetchAll) {
2671
- t68 = dialog?.kind === "team-add-member" && /* @__PURE__ */ jsxDEV(TeamMemberAddDialog, {
2699
+ let t69;
2700
+ if ($[188] !== dialog || $[189] !== refetchAll) {
2701
+ t69 = dialog?.kind === "team-add-member" && /* @__PURE__ */ jsxDEV(TeamMemberAddDialog, {
2672
2702
  onClose: closeDialog,
2673
2703
  onDone: refetchAll,
2674
2704
  teamId: dialog.teamId
2675
2705
  }, void 0, false);
2676
- $[183] = dialog;
2677
- $[184] = refetchAll;
2678
- $[185] = t68;
2706
+ $[188] = dialog;
2707
+ $[189] = refetchAll;
2708
+ $[190] = t69;
2679
2709
  } else {
2680
- t68 = $[185];
2710
+ t69 = $[190];
2681
2711
  }
2682
- let t69;
2683
- if ($[186] !== dialog?.kind || $[187] !== organizationId || $[188] !== refetchAll) {
2684
- t69 = dialog?.kind === "role-create" && /* @__PURE__ */ jsxDEV(RoleFormDialog, {
2712
+ let t70;
2713
+ if ($[191] !== dialog?.kind || $[192] !== organizationId || $[193] !== refetchAll) {
2714
+ t70 = dialog?.kind === "role-create" && /* @__PURE__ */ jsxDEV(RoleFormDialog, {
2685
2715
  mode: "create",
2686
2716
  onClose: closeDialog,
2687
2717
  onDone: refetchAll,
2688
2718
  organizationId
2689
2719
  }, void 0, false);
2690
- $[186] = dialog?.kind;
2691
- $[187] = organizationId;
2692
- $[188] = refetchAll;
2693
- $[189] = t69;
2720
+ $[191] = dialog?.kind;
2721
+ $[192] = organizationId;
2722
+ $[193] = refetchAll;
2723
+ $[194] = t70;
2694
2724
  } else {
2695
- t69 = $[189];
2725
+ t70 = $[194];
2696
2726
  }
2697
- let t70;
2698
- if ($[190] !== dialog || $[191] !== organizationId || $[192] !== refetchAll) {
2699
- t70 = dialog?.kind === "role-edit" && /* @__PURE__ */ jsxDEV(RoleFormDialog, {
2727
+ let t71;
2728
+ if ($[195] !== dialog || $[196] !== organizationId || $[197] !== refetchAll) {
2729
+ t71 = dialog?.kind === "role-edit" && /* @__PURE__ */ jsxDEV(RoleFormDialog, {
2700
2730
  mode: "edit",
2701
2731
  onClose: closeDialog,
2702
2732
  onDone: refetchAll,
2703
2733
  organizationId,
2704
2734
  role: dialog.role
2705
2735
  }, void 0, false);
2706
- $[190] = dialog;
2707
- $[191] = organizationId;
2708
- $[192] = refetchAll;
2709
- $[193] = t70;
2736
+ $[195] = dialog;
2737
+ $[196] = organizationId;
2738
+ $[197] = refetchAll;
2739
+ $[198] = t71;
2710
2740
  } else {
2711
- t70 = $[193];
2741
+ t71 = $[198];
2712
2742
  }
2713
- let t71;
2714
- if ($[194] !== dialog || $[195] !== refetchAll) {
2715
- t71 = dialog?.kind === "confirm" && /* @__PURE__ */ jsxDEV(ConfirmDialog, {
2743
+ let t72;
2744
+ if ($[199] !== dialog || $[200] !== refetchAll) {
2745
+ t72 = dialog?.kind === "confirm" && /* @__PURE__ */ jsxDEV(ConfirmDialog, {
2716
2746
  action: dialog.action,
2717
2747
  message: dialog.message,
2718
2748
  onClose: closeDialog,
@@ -2720,39 +2750,40 @@ const OrganizationDetail = (t0) => {
2720
2750
  testId: dialog.testId,
2721
2751
  title: dialog.title
2722
2752
  }, void 0, false);
2723
- $[194] = dialog;
2724
- $[195] = refetchAll;
2725
- $[196] = t71;
2753
+ $[199] = dialog;
2754
+ $[200] = refetchAll;
2755
+ $[201] = t72;
2726
2756
  } else {
2727
- t71 = $[196];
2757
+ t72 = $[201];
2728
2758
  }
2729
- let t72;
2730
- if ($[197] !== t48 || $[198] !== t58 || $[199] !== t59 || $[200] !== t60 || $[201] !== t61 || $[202] !== t62 || $[203] !== t63 || $[204] !== t64 || $[205] !== t65 || $[206] !== t66 || $[207] !== t67 || $[208] !== t68 || $[209] !== t69 || $[210] !== t70 || $[211] !== t71) {
2731
- t72 = /* @__PURE__ */ jsxDEV("div", {
2759
+ let t73;
2760
+ if ($[202] !== t48 || $[203] !== t49 || $[204] !== t59 || $[205] !== t60 || $[206] !== t61 || $[207] !== t62 || $[208] !== t63 || $[209] !== t64 || $[210] !== t65 || $[211] !== t66 || $[212] !== t67 || $[213] !== t68 || $[214] !== t69 || $[215] !== t70 || $[216] !== t71 || $[217] !== t72) {
2761
+ t73 = /* @__PURE__ */ jsxDEV("div", {
2732
2762
  className: "flex flex-col gap-4",
2733
2763
  "data-testid": "org-detail",
2734
- children: [t48, t58, t59, t60, t61, t62, t63, t64, t65, t66, t67, t68, t69, t70, t71]
2764
+ children: [t48, t49, t59, t60, t61, t62, t63, t64, t65, t66, t67, t68, t69, t70, t71, t72]
2735
2765
  }, void 0, true);
2736
- $[197] = t48;
2737
- $[198] = t58;
2738
- $[199] = t59;
2739
- $[200] = t60;
2740
- $[201] = t61;
2741
- $[202] = t62;
2742
- $[203] = t63;
2743
- $[204] = t64;
2744
- $[205] = t65;
2745
- $[206] = t66;
2746
- $[207] = t67;
2747
- $[208] = t68;
2748
- $[209] = t69;
2749
- $[210] = t70;
2750
- $[211] = t71;
2751
- $[212] = t72;
2752
- } else {
2753
- t72 = $[212];
2754
- }
2755
- return t72;
2766
+ $[202] = t48;
2767
+ $[203] = t49;
2768
+ $[204] = t59;
2769
+ $[205] = t60;
2770
+ $[206] = t61;
2771
+ $[207] = t62;
2772
+ $[208] = t63;
2773
+ $[209] = t64;
2774
+ $[210] = t65;
2775
+ $[211] = t66;
2776
+ $[212] = t67;
2777
+ $[213] = t68;
2778
+ $[214] = t69;
2779
+ $[215] = t70;
2780
+ $[216] = t71;
2781
+ $[217] = t72;
2782
+ $[218] = t73;
2783
+ } else {
2784
+ t73 = $[218];
2785
+ }
2786
+ return t73;
2756
2787
  };
2757
2788
  function _temp(column) {
2758
2789
  return /* @__PURE__ */ jsxDEV(TableHead, {