@raystack/frontier 0.107.2 → 0.108.1

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.
@@ -51,7 +51,7 @@ var require_lodash = __commonJS({
51
51
  var now = function() {
52
52
  return root.Date.now();
53
53
  };
54
- function debounce2(func, wait, options) {
54
+ function debounce3(func, wait, options) {
55
55
  var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
56
56
  if (typeof func != "function") {
57
57
  throw new TypeError(FUNC_ERROR_TEXT);
@@ -159,7 +159,7 @@ var require_lodash = __commonJS({
159
159
  var isBinary = reIsBinary.test(value);
160
160
  return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
161
161
  }
162
- module.exports = debounce2;
162
+ module.exports = debounce3;
163
163
  }
164
164
  });
165
165
 
@@ -186,6 +186,17 @@ function isZeroUUID(uuid) {
186
186
  function capitalizeFirstLetter(str) {
187
187
  return str.charAt(0).toUpperCase() + str.slice(1);
188
188
  }
189
+ function generateSlug(title) {
190
+ return title.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").substring(0, 30);
191
+ }
192
+ function randomSuffix(length = 4) {
193
+ const chars = "abcdefghijklmnopqrstuvwxyz0123456789";
194
+ let out = "";
195
+ for (let i = 0; i < length; i++) {
196
+ out += chars[Math.floor(Math.random() * chars.length)];
197
+ }
198
+ return out;
199
+ }
189
200
  function convertBillingAddressToString(address) {
190
201
  if (!address)
191
202
  return "";
@@ -196,8 +207,8 @@ function convertBillingAddressToString(address) {
196
207
  // admin/views/roles/columns.tsx
197
208
  import { Flex } from "@raystack/apsara";
198
209
 
199
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-PTFb1CSuUcWO/sdk/admin/views/roles/roles.module.css.js
200
- var digest = "4d8051fdbf82065e905ea0729fd683ea72a6f5780b22c3940e6bee80e18fb786";
210
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-i78nD2If5mlZ/sdk/admin/views/roles/roles.module.css.js
211
+ var digest = "3a08647e7b3c62216047d1e917197be4ac45bbf215331f639628c75b45ad18f3";
201
212
  var css = `._tableRoot_1d549_1 {
202
213
  width: 100%;
203
214
  }
@@ -715,8 +726,8 @@ var UploadIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
715
726
  // admin/components/PageHeader.tsx
716
727
  import { Flex as Flex2, Text } from "@raystack/apsara";
717
728
 
718
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-kk5GFtnW2Pwh/sdk/admin/components/page-header.module.css.js
719
- var digest2 = "09dc599f34416ae7b138b137d2326f93ede1b5730293f3813e77ad75a4bb0f5d";
729
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-w5UCqrdjhOcu/sdk/admin/components/page-header.module.css.js
730
+ var digest2 = "c966a4e8288221915d8624915926b8ec04606c5f472b65ae0ff933395baa759f";
720
731
  var css2 = `._breadcrumb_1kaun_1 {
721
732
  list-style: none;
722
733
  padding: 0;
@@ -838,8 +849,8 @@ function PageTitle({ title, appName }) {
838
849
  return null;
839
850
  }
840
851
 
841
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-dElwqHeY44xM/sdk/admin/views/roles/roles.module.css.js
842
- var digest3 = "2672802ca6a5a39f72519f3f237eef2ef9048c17105814413e9bd0cabfebaddb";
852
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-KjZSCfRV1yam/sdk/admin/views/roles/roles.module.css.js
853
+ var digest3 = "42d7a9a3fbd06a0c67760a3d3eea8932b6bd9adea913f5840fa9b0c8f22ba670";
843
854
  var css3 = `._tableRoot_1d549_1 {
844
855
  width: 100%;
845
856
  }
@@ -1035,8 +1046,8 @@ import { useState as useState3 } from "react";
1035
1046
  // admin/views/invoices/navbar.tsx
1036
1047
  import { DataTable as DataTable2, Flex as Flex6, IconButton, Text as Text4 } from "@raystack/apsara";
1037
1048
 
1038
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-1O5OKwpghtFS/sdk/admin/views/invoices/invoices.module.css.js
1039
- var digest4 = "883ed2ef151551394206dce829b2d63ca6512f39e434df07bdc8238fb6aeca2c";
1049
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-I3tX34dQzKnj/sdk/admin/views/invoices/invoices.module.css.js
1050
+ var digest4 = "b000ff147a46f9d0f2cdf44d8e8c05826db88bd45b8174aa5e464805f53c9d81";
1040
1051
  var css4 = `._navbar_1o5oc_1 {
1041
1052
  padding: var(--rs-space-4) var(--rs-space-7);
1042
1053
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -1154,7 +1165,7 @@ var InvoicesNavabar = ({ searchQuery }) => {
1154
1165
  ] });
1155
1166
  };
1156
1167
 
1157
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-1fpCQqEsDl6g/sdk/admin/views/invoices/invoices.module.css.js
1168
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-rNEykb9DQfvx/sdk/admin/views/invoices/invoices.module.css.js
1158
1169
  var digest5 = "a5c21255352a28102e29ea4aa3eac71e34a2b7025b1c09d5b5be773b8fe1f97c";
1159
1170
  var css5 = `._navbar_1o5oc_1 {
1160
1171
  padding: var(--rs-space-4) var(--rs-space-7);
@@ -1229,8 +1240,8 @@ function isNullTimestamp(timestamp) {
1229
1240
  return Number(timestamp.seconds) <= 0;
1230
1241
  }
1231
1242
 
1232
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-i5dstcSjIYGA/sdk/admin/views/invoices/invoices.module.css.js
1233
- var digest6 = "140ff6b29f039499a23699f83f84300eb7eed44c241ddecad95620c1533311fa";
1243
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-oUZLthYDgl74/sdk/admin/views/invoices/invoices.module.css.js
1244
+ var digest6 = "51d3cce0358064db1bc80dddd70d21e9fd51698e66b63a61af0f80df1671b716";
1234
1245
  var css6 = `._navbar_1o5oc_1 {
1235
1246
  padding: var(--rs-space-4) var(--rs-space-7);
1236
1247
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -1687,8 +1698,8 @@ import { FrontierServiceQueries as FrontierServiceQueries2 } from "@raystack/pro
1687
1698
  // admin/views/products/columns.tsx
1688
1699
  import { Flex as Flex8, Image, Amount as Amount2 } from "@raystack/apsara";
1689
1700
 
1690
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-sqpd6sRlsh8Z/sdk/admin/views/products/products.module.css.js
1691
- var digest7 = "178575361a0f4841a62bb3a1f9492c4653db92e539a0ccd285c73844227c115b";
1701
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-6nfrUPKSUnqh/sdk/admin/views/products/products.module.css.js
1702
+ var digest7 = "b8a6d84cef217d04b1da2c2f0c2b6c22a94e89f152a0cd557d3ad00042564a18";
1692
1703
  var css7 = `._tableRoot_3ccjp_1 {
1693
1704
  width: 100%;
1694
1705
  }
@@ -1857,8 +1868,8 @@ var getColumns3 = (onNavigateToPrices) => {
1857
1868
  ];
1858
1869
  };
1859
1870
 
1860
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-BseKMX0Ky9vP/sdk/admin/views/products/products.module.css.js
1861
- var digest8 = "d0557fe49f9400af1cf176348da2b59384196ac41357728c15acc006f690e848";
1871
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-6a1wf54C0GcP/sdk/admin/views/products/products.module.css.js
1872
+ var digest8 = "175f019760ca234b6757f582eb0e6c718b2934aa3e4144450563c1fa00f86b6b";
1862
1873
  var css8 = `._tableRoot_3ccjp_1 {
1863
1874
  width: 100%;
1864
1875
  }
@@ -1915,8 +1926,8 @@ var products_module_css_default2 = { "tableRoot": "_tableRoot_3ccjp_1", "tableWr
1915
1926
  // admin/views/products/details.tsx
1916
1927
  import { Flex as Flex9, Text as Text6, Grid as Grid2, Drawer as Drawer2 } from "@raystack/apsara";
1917
1928
 
1918
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-gCUNtCWSL71h/sdk/admin/views/products/products.module.css.js
1919
- var digest9 = "abe7c7b65013dc185e4e92771727c0d75ce5ee38351b3844cf63e93ed15f22b2";
1929
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-N2ntVlPRX1DB/sdk/admin/views/products/products.module.css.js
1930
+ var digest9 = "fc94c273c2c18aa003c96bbf8447f3e0456edfa0de58878a7b37cde2120bf95c";
1920
1931
  var css9 = `._tableRoot_3ccjp_1 {
1921
1932
  width: 100%;
1922
1933
  }
@@ -2113,8 +2124,8 @@ import { FrontierServiceQueries as FrontierServiceQueries3 } from "@raystack/pro
2113
2124
  // admin/views/products/prices/columns.tsx
2114
2125
  import { Amount as Amount3 } from "@raystack/apsara";
2115
2126
 
2116
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-TUD0XveS7iwL/sdk/admin/views/products/prices/prices.module.css.js
2117
- var digest10 = "7db1f5590183d16d2adeb59b64e4094e0e4178e05149177b0cd20d45515622f1";
2127
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-O3U8hBky39tL/sdk/admin/views/products/prices/prices.module.css.js
2128
+ var digest10 = "d53be6ae6ab1872eda0dcd61b7b59d54a8fb84a89f1bb9da416a685ffb2faba0";
2118
2129
  var css10 = `._first-column_6e56r_1 {
2119
2130
  padding-left: var(--rs-space-7);
2120
2131
  }
@@ -2216,8 +2227,8 @@ var getColumns4 = (prices) => {
2216
2227
  ];
2217
2228
  };
2218
2229
 
2219
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-8X8Icb6ehl1g/sdk/admin/views/products/products.module.css.js
2220
- var digest11 = "e9009cb0a0c2b83fb7454553d42523653ad2da63530829a8774df89cbe2abef0";
2230
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-YnMQgpYkM7LC/sdk/admin/views/products/products.module.css.js
2231
+ var digest11 = "abb5b30dae3a88a40916e95f3d74177462fc0a6e1d1498219636ba7ac2cb51db";
2221
2232
  var css11 = `._tableRoot_3ccjp_1 {
2222
2233
  width: 100%;
2223
2234
  }
@@ -2379,8 +2390,8 @@ function CpuChipIcon(props) {
2379
2390
  );
2380
2391
  }
2381
2392
 
2382
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-Km3OZaVol0vL/sdk/admin/views/audit-logs/audit-logs.module.css.js
2383
- var digest12 = "567883cfa188c15c64902729c9d2cc034b0717f26fde73784e2c2e346eb40db9";
2393
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-RHfVx75KHVtB/sdk/admin/views/audit-logs/audit-logs.module.css.js
2394
+ var digest12 = "7df7dd8a883784fca7a671178c5cd5b6141a0ab138b732515be4f5ce0d40d4cb";
2384
2395
  var css12 = `._navbar_1nr4u_1 {
2385
2396
  padding: var(--rs-space-4) var(--rs-space-7);
2386
2397
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -2599,8 +2610,8 @@ var Navbar = ({ searchQuery, onExportCsv }) => {
2599
2610
  };
2600
2611
  var navbar_default = Navbar;
2601
2612
 
2602
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-6ztQc8zk1fQd/sdk/admin/views/audit-logs/audit-logs.module.css.js
2603
- var digest13 = "f320916d5d5188c8348d02bf496baef3e8d8197c0cd5a27c6b51cb958b078d2d";
2613
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-45tN4VrSh12D/sdk/admin/views/audit-logs/audit-logs.module.css.js
2614
+ var digest13 = "5d472a743385b2fa7476b20b53e73395b242db25f6630c8bc6605313fed2d2d0";
2604
2615
  var css13 = `._navbar_1nr4u_1 {
2605
2616
  padding: var(--rs-space-4) var(--rs-space-7);
2606
2617
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -2711,8 +2722,8 @@ var audit_logs_module_css_default2 = { "navbar": "_navbar_1nr4u_1", "table": "_t
2711
2722
  import { Badge, Flex as Flex14, Text as Text9 } from "@raystack/apsara";
2712
2723
  import dayjs4 from "dayjs";
2713
2724
 
2714
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-N3AJknWIRqhY/sdk/admin/views/audit-logs/audit-logs.module.css.js
2715
- var digest14 = "a9d38b64c9fac9bdd1dd8451ef5d91dace1fd3094206726d717031ed49fb3737";
2725
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-c3pZZHUpRWdB/sdk/admin/views/audit-logs/audit-logs.module.css.js
2726
+ var digest14 = "25b71da15d165c23e39d1b667dd970bcb766f2332859b65f598f8d671cc6ba0f";
2716
2727
  var css14 = `._navbar_1nr4u_1 {
2717
2728
  padding: var(--rs-space-4) var(--rs-space-7);
2718
2729
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -2978,8 +2989,8 @@ import {
2978
2989
  import { Flex as Flex16, IconButton as IconButton4, SidePanel } from "@raystack/apsara";
2979
2990
  import { List as List3 } from "@raystack/apsara";
2980
2991
 
2981
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-rc8NSUh5KUP2/sdk/admin/views/audit-logs/audit-logs.module.css.js
2982
- var digest15 = "f5a9b6cd073f22e246afb1d9603c4e03fa32f9e567108a66a75acdc1d19a5947";
2992
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-vpaxPAcW6TUb/sdk/admin/views/audit-logs/audit-logs.module.css.js
2993
+ var digest15 = "e0bf035847bd31c44dbda6fa2b103d8028a6f8f00ad3355cb9ebf034a0ef9aa3";
2983
2994
  var css15 = `._navbar_1nr4u_1 {
2984
2995
  padding: var(--rs-space-4) var(--rs-space-7);
2985
2996
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -3117,8 +3128,8 @@ function MapIcon(props) {
3117
3128
  // admin/views/audit-logs/sidepanel-log-dialog.tsx
3118
3129
  import { Dialog, IconButton as IconButton3, CodeBlock } from "@raystack/apsara";
3119
3130
 
3120
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-j9MGmX2HbdkE/sdk/admin/views/audit-logs/audit-logs.module.css.js
3121
- var digest16 = "7080d0e427095295043ac3d36e0f7fd1ea62eb0028bac99e2da3ac61cd190d9d";
3131
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-c95mT0NCts2l/sdk/admin/views/audit-logs/audit-logs.module.css.js
3132
+ var digest16 = "64582176c1891ffbdbbe3a83163d66b64bd26b3d74c94ada649b9a63887d8fc7";
3122
3133
  var css16 = `._navbar_1nr4u_1 {
3123
3134
  padding: var(--rs-space-4) var(--rs-space-7);
3124
3135
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -3323,8 +3334,8 @@ function SidePanelLogDialog(props) {
3323
3334
  // admin/views/audit-logs/sidepanel-list-link.tsx
3324
3335
  import { Button, List } from "@raystack/apsara";
3325
3336
 
3326
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-DLS7sgjMpq7s/sdk/admin/views/audit-logs/audit-logs.module.css.js
3327
- var digest17 = "3d3cb78fb8a3fc11826f982ee347747fd3455ea0a2e22ab27056d4428d4ca7c7";
3337
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-OgvUS46o3ErG/sdk/admin/views/audit-logs/audit-logs.module.css.js
3338
+ var digest17 = "41d258556b0c90a6102c2df3939a60139d2e15ff21a9283924dd698ed7b02e1a";
3328
3339
  var css17 = `._navbar_1nr4u_1 {
3329
3340
  padding: var(--rs-space-4) var(--rs-space-7);
3330
3341
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -3466,8 +3477,8 @@ function SidepanelListItemLink({
3466
3477
  // admin/views/audit-logs/sidepanel-list-id.tsx
3467
3478
  import { CopyButton, Flex as Flex15, List as List2, Text as Text10, Tooltip } from "@raystack/apsara";
3468
3479
 
3469
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-onAvlHlmFx6G/sdk/admin/views/audit-logs/audit-logs.module.css.js
3470
- var digest18 = "59a1127e8904848886ab28d1dff3b5356fd45483d99daed511c63dddec8a68f8";
3480
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-zf5vrTv7PYZU/sdk/admin/views/audit-logs/audit-logs.module.css.js
3481
+ var digest18 = "6805c65a352712fbad4d4e381dc47ffb5183a896552c192138e6f2a2d5595804";
3471
3482
  var css18 = `._navbar_1nr4u_1 {
3472
3483
  padding: var(--rs-space-4) var(--rs-space-7);
3473
3484
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -3995,8 +4006,8 @@ import { DataTable as DataTable8, EmptyState as EmptyState6, Flex as Flex18 } fr
3995
4006
  // admin/views/admins/columns.tsx
3996
4007
  import { Button as Button2 } from "@raystack/apsara";
3997
4008
 
3998
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-3Cn0rEl4LDoV/sdk/admin/views/admins/admins.module.css.js
3999
- var digest19 = "04f063e51fbd9568ccf97aedd1ac1055a18bf2cc441e2ab820c439ed46a7b9bb";
4009
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-inW7sPaV9j0a/sdk/admin/views/admins/admins.module.css.js
4010
+ var digest19 = "434d83d90c1690f59dee194581ffab3c79ad984d211f3e897885c2c54ff8b859";
4000
4011
  var css19 = `._tableRoot_1tmha_1 {
4001
4012
  width: 100%;
4002
4013
  }
@@ -4081,8 +4092,8 @@ var getColumns6 = ({ onNavigateToOrg, t } = {}) => {
4081
4092
  ];
4082
4093
  };
4083
4094
 
4084
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-jPcFbkWaoEaL/sdk/admin/views/admins/admins.module.css.js
4085
- var digest20 = "37bae431d94ed51bbb1beaa774313a29bfbf6ffd757fdb8912a9cc4e31a0057f";
4095
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-G4Xex32rZKOC/sdk/admin/views/admins/admins.module.css.js
4096
+ var digest20 = "48597d9ca3221d88501b2477c13ae9b0ca9f83bc68a1a6568eaf8f163f0b35d2";
4086
4097
  var css20 = `._tableRoot_1tmha_1 {
4087
4098
  width: 100%;
4088
4099
  }
@@ -4193,8 +4204,8 @@ import { EmptyState as EmptyState7, Flex as Flex20, DataTable as DataTable9, Dra
4193
4204
  // admin/views/plans/columns.tsx
4194
4205
  import { Text as Text11 } from "@raystack/apsara";
4195
4206
 
4196
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-w2UB8ZOw0wBM/sdk/admin/views/plans/plans.module.css.js
4197
- var digest21 = "ab68f5ab9491082dd717354d1c5bde7cf9680367a81004d58a79f38caa155649";
4207
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-Lr5x94OBspn4/sdk/admin/views/plans/plans.module.css.js
4208
+ var digest21 = "3e968244917c281854fb3f1e22dbbb0365696cc2739532b7e59470afe5b643dc";
4198
4209
  var css21 = `._tableRoot_1akba_1 {
4199
4210
  width: 100%;
4200
4211
  }
@@ -4292,8 +4303,8 @@ var getColumns7 = ({ onSelectPlan } = {}) => {
4292
4303
  ];
4293
4304
  };
4294
4305
 
4295
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-6D6IXTfx8SHo/sdk/admin/views/plans/plans.module.css.js
4296
- var digest22 = "145b71dca0b328bcba041e8dde283155fc3f0a8dfee90354d8c4a8769c78b927";
4306
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-5ss6R8GINFCf/sdk/admin/views/plans/plans.module.css.js
4307
+ var digest22 = "c856dc70a6e52952b5977f678f970333d9ec68ea8754f43d0408645fb7bb63d1";
4297
4308
  var css22 = `._tableRoot_1akba_1 {
4298
4309
  width: 100%;
4299
4310
  }
@@ -4457,8 +4468,8 @@ import {
4457
4468
  Text as Text14
4458
4469
  } from "@raystack/apsara";
4459
4470
 
4460
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-RvAiEN7nCV0v/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4461
- var digest23 = "1fb2f46b2fec735cc8b11886e43f2f81b8f2d80d57e006f71cd25347ab10ef44";
4471
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-30qx55VUm7b1/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4472
+ var digest23 = "1f4adc90f812767eacb9e78c02b00cec1857a70617d3bb72c0c8497de36432a7";
4462
4473
  var css23 = `._tableRoot_1j1ra_1 {
4463
4474
  width: 100%;
4464
4475
  }
@@ -4719,8 +4730,8 @@ var getColumns8 = ({ openEditPage, deleteWebhookMutation, enableDelete }) => {
4719
4730
  ];
4720
4731
  };
4721
4732
 
4722
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-Tzo2hDBciN2d/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4723
- var digest24 = "6089c38273776074f4a9b0fe604f880853174d3bc680b0e3da3ae594c26ab444";
4733
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-qH71ARSdPRtf/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4734
+ var digest24 = "b10abbc5f49c7312ff3b9ce8427d193a52093738092b4ba489408f86de425db0";
4724
4735
  var css24 = `._tableRoot_1j1ra_1 {
4725
4736
  width: 100%;
4726
4737
  }
@@ -10311,8 +10322,8 @@ import { EmptyState as EmptyState9, DataTable as DataTable11, Flex as Flex28 } f
10311
10322
  // admin/views/preferences/columns.tsx
10312
10323
  import { Text as Text16 } from "@raystack/apsara";
10313
10324
 
10314
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-V5t4YuAygpyb/sdk/admin/views/preferences/preferences.module.css.js
10315
- var digest25 = "3a6c3a69036543976fdec59441a48574523534f55712b0703550b0b4ceab6491";
10325
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-b4fQ8jO1kVsw/sdk/admin/views/preferences/preferences.module.css.js
10326
+ var digest25 = "007a31026b45f4ad396f09c637e23f35f81a608beb696a81322201dcd9aafee1";
10316
10327
  var css25 = `._tableRoot_hre5m_1 {
10317
10328
  width: 100%;
10318
10329
  }
@@ -10402,8 +10413,8 @@ var getColumns9 = ({
10402
10413
  ];
10403
10414
  };
10404
10415
 
10405
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-qGJeCOOQitSZ/sdk/admin/views/preferences/preferences.module.css.js
10406
- var digest26 = "4d7e4c0d41eaa07f71ff14fb05ea620085be6042275133228e4f6878c2138ac3";
10416
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-gehbMtrT3uTE/sdk/admin/views/preferences/preferences.module.css.js
10417
+ var digest26 = "49820da289c6758381df513b7f7427e301b44cdc20f0fef98fccb236a9f8e79a";
10407
10418
  var css26 = `._tableRoot_hre5m_1 {
10408
10419
  width: 100%;
10409
10420
  }
@@ -10785,8 +10796,8 @@ import {
10785
10796
  Spinner as Spinner2
10786
10797
  } from "@raystack/apsara";
10787
10798
 
10788
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-71COXaoQo8xi/sdk/admin/views/users/list/list.module.css.js
10789
- var digest27 = "4b320a76b080c05ffb7cecae98209a9fbc9c155b33d3e15df05fe612c5459370";
10799
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-DHISRTG3G7H9/sdk/admin/views/users/list/list.module.css.js
10800
+ var digest27 = "a63c2c556caafb58251df41469146aff4ccb86da593fcb059defcbea254567e6";
10790
10801
  var css27 = `._navbar_vt0az_1 {
10791
10802
  padding: var(--rs-space-4) var(--rs-space-7);
10792
10803
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -10890,8 +10901,8 @@ import {
10890
10901
  import { Controller as Controller2, useForm as useForm3 } from "react-hook-form";
10891
10902
  import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
10892
10903
 
10893
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-xPBOh4YRErEV/sdk/admin/views/users/list/invite-users.module.css.js
10894
- var digest28 = "b73a9e3c795b1e7719a93ff9814a7cf84e6b03805e250dba6f9d410cfcf6b9c1";
10904
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-bATEvQjR4qsp/sdk/admin/views/users/list/invite-users.module.css.js
10905
+ var digest28 = "8d1aeecda4693d2e34eb950e5dc7f8d8d4b234ad9b068ee344754ded0b864369";
10895
10906
  var css28 = `._invite-users-dialog-body_11ujx_1 {
10896
10907
  display: flex;
10897
10908
  flex-direction: column;
@@ -11244,8 +11255,8 @@ var Navbar2 = ({ searchQuery, onExportUsers }) => {
11244
11255
  };
11245
11256
  var navbar_default2 = Navbar2;
11246
11257
 
11247
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-x3QXUPKIHUmV/sdk/admin/views/users/list/list.module.css.js
11248
- var digest29 = "b7b25b592d38ec400f6bbba7a2f6241b1d3f20710a1c997d858a4950f9748e56";
11258
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-BHR1LXeZR8Qf/sdk/admin/views/users/list/list.module.css.js
11259
+ var digest29 = "d764d8bafcd5f34719840f5325539dc5e01afcc66cb018d490cbd8cdaccc5a63";
11249
11260
  var css29 = `._navbar_vt0az_1 {
11250
11261
  padding: var(--rs-space-4) var(--rs-space-7);
11251
11262
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -11316,8 +11327,8 @@ import {
11316
11327
  } from "@raystack/apsara";
11317
11328
  import dayjs8 from "dayjs";
11318
11329
 
11319
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-WkOU1aEUW953/sdk/admin/views/users/list/list.module.css.js
11320
- var digest30 = "fa649fc18bff93ef0c00776225c4f8118bfa834a0bd2eebb1201049c337c3b50";
11330
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-rTZGULc6Us4k/sdk/admin/views/users/list/list.module.css.js
11331
+ var digest30 = "2953ac7dd7d4fbab636b6ee2fd0f5b21736615bf03ccafe622fab6e01ccca514";
11321
11332
  var css30 = `._navbar_vt0az_1 {
11322
11333
  padding: var(--rs-space-4) var(--rs-space-7);
11323
11334
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -11610,8 +11621,8 @@ import { Avatar as Avatar4, getAvatarColor as getAvatarColor3, SidePanel as Side
11610
11621
  // admin/views/users/details/layout/side-panel-details.tsx
11611
11622
  import { Flex as Flex35, List as List4, Text as Text21, CopyButton as CopyButton2, Tooltip as Tooltip2 } from "@raystack/apsara";
11612
11623
 
11613
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-dBMoBRuVft7v/sdk/admin/views/users/details/layout/side-panel.module.css.js
11614
- var digest31 = "90e21c1af96599b65063e02aa38cc72a222292feaa88e92feba5d81c6f05d2cb";
11624
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-YaEjPRx6Ac42/sdk/admin/views/users/details/layout/side-panel.module.css.js
11625
+ var digest31 = "5d9f0ffb66aa7656f61dca98f3b210dd5bec4a9cdbda77356fbd8deb1ee8bcb8";
11615
11626
  var css31 = `._side-panel_1us3q_1 {
11616
11627
  transform: all 0.3s ease-in-out;
11617
11628
  padding-bottom: var(--rs-space-15);
@@ -11726,8 +11737,8 @@ var SidePanelDetails2 = () => {
11726
11737
  import { Flex as Flex38, List as List5, Text as Text25, Avatar as Avatar3 } from "@raystack/apsara";
11727
11738
  import dayjs9 from "dayjs";
11728
11739
 
11729
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-nvdN9tH0Etxf/sdk/admin/views/users/details/layout/side-panel.module.css.js
11730
- var digest32 = "bcb2a0fd16c3a6f1511c9b5fb8c76439300a83b130fa801468be232f1f76b0af";
11740
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-Dym7Y5cTWmni/sdk/admin/views/users/details/layout/side-panel.module.css.js
11741
+ var digest32 = "d88545ddec5bd61d2d62f85edf46b2ab093cce8f2b095d084e490343907d9b41";
11731
11742
  var css32 = `._side-panel_1us3q_1 {
11732
11743
  transform: all 0.3s ease-in-out;
11733
11744
  padding-bottom: var(--rs-space-15);
@@ -11790,8 +11801,8 @@ var side_panel_module_css_default2 = { "side-panel": "_side-panel_1us3q_1", "sid
11790
11801
  // admin/views/users/details/layout/membership-dropdown.tsx
11791
11802
  import { Text as Text24, Menu as Menu2, Skeleton as Skeleton2 } from "@raystack/apsara";
11792
11803
 
11793
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-hY6TEpssu0Rm/sdk/admin/views/users/details/layout/side-panel.module.css.js
11794
- var digest33 = "9ef9136a5250fda6910d2012f6c51bc90e979f9099e256a499eeba08c058cb25";
11804
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-LhCe2t1nabRL/sdk/admin/views/users/details/layout/side-panel.module.css.js
11805
+ var digest33 = "068705ac4510cfc2586792066b6dbd618e01928010aa2349c3c4e5d6f261ef82";
11795
11806
  var css33 = `._side-panel_1us3q_1 {
11796
11807
  transform: all 0.3s ease-in-out;
11797
11808
  padding-bottom: var(--rs-space-15);
@@ -12213,8 +12224,8 @@ var SidePanelMembership = ({
12213
12224
  ] });
12214
12225
  };
12215
12226
 
12216
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-uEaKFv1aTkJm/sdk/admin/views/users/details/layout/side-panel.module.css.js
12217
- var digest34 = "66609090a3d607d6e66fb26dd4fdb2f7ae8031e57712a776a09efaccd1069ff4";
12227
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-coWL6oG2PyHF/sdk/admin/views/users/details/layout/side-panel.module.css.js
12228
+ var digest34 = "f7415d25412d4d440fd330af07fd798d5bfdd1e9cfe141737b267bf52baf161f";
12218
12229
  var css34 = `._side-panel_1us3q_1 {
12219
12230
  transform: all 0.3s ease-in-out;
12220
12231
  padding-bottom: var(--rs-space-15);
@@ -12332,8 +12343,8 @@ var UserDetailsSidePanel = () => {
12332
12343
  );
12333
12344
  };
12334
12345
 
12335
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-K6JjbK0RWRMY/sdk/admin/views/users/details/layout/layout.module.css.js
12336
- var digest35 = "cc06d4e6bb792c4b15de9ab4152efdba9d580111e3feda28e21428844c7235af";
12346
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-6TgGiumcFf2a/sdk/admin/views/users/details/layout/layout.module.css.js
12347
+ var digest35 = "249fd2e183c1d1d837723269ae8d2ddf6d4c8f957519271ae0b1532e7772c8bb";
12337
12348
  var css35 = `._page_190wz_1 {
12338
12349
  height: 100vh;
12339
12350
  width: 100%;
@@ -12374,8 +12385,8 @@ import {
12374
12385
  } from "@raystack/apsara";
12375
12386
  import { SidebarIcon } from "@raystack/apsara/icons";
12376
12387
 
12377
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-ddNJtZBe3sll/sdk/admin/views/users/details/layout/navbar.module.css.js
12378
- var digest36 = "af435a7290720a3cbb83cbdbe04c0d43b6b88c8b17da9b915c9d604097d1600a";
12388
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-u7OIM8rdFhs4/sdk/admin/views/users/details/layout/navbar.module.css.js
12389
+ var digest36 = "fadc464e2b83b8655851768e5eb79a1a03cff4d7f02bb8c399409a26e75f7b77";
12379
12390
  var css36 = `._navbar_1ahsl_1 {
12380
12391
  padding: var(--rs-space-4) var(--rs-space-7);
12381
12392
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -12678,8 +12689,8 @@ import {
12678
12689
  Text as Text27
12679
12690
  } from "@raystack/apsara";
12680
12691
 
12681
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-ebE6HaWObWSB/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
12682
- var digest37 = "1a9ba3c3e96a08a5b707f93444ad4934085a6f70a22e2769ffc9f973f843e4d2";
12692
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-ESSXveW6o6P0/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
12693
+ var digest37 = "4ab56f0f28582df2c5c768f43a38e220c0df46cbab5eb193d8a2abcd77e55998";
12683
12694
  var css37 = `._sessionsContainer_aq82p_1 {
12684
12695
  border: 1px solid var(--rs-color-border-base-primary);
12685
12696
  border-radius: var(--rs-radius-2);
@@ -12808,8 +12819,8 @@ var RevokeSessionFinalConfirm = ({
12808
12819
  ) });
12809
12820
  };
12810
12821
 
12811
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-hWbOM6zN03aR/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
12812
- var digest38 = "27f5789e44b8db6e14f8d54573b57e3e222e78210a44250028e720256ecd51f6";
12822
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-zOIw5yTR3iwS/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
12823
+ var digest38 = "cc34b4e76941b6bc67b87bc58d9eaa89b31c1e6f005e2505f10d844177089d33";
12813
12824
  var css38 = `._sessionsContainer_aq82p_1 {
12814
12825
  border: 1px solid var(--rs-color-border-base-primary);
12815
12826
  border-radius: var(--rs-radius-2);
@@ -12953,8 +12964,8 @@ var RevokeSessionConfirm = ({ isOpen, onOpenChange, sessionInfo, onRevokeConfirm
12953
12964
  // admin/views/users/details/security/sessions/session-skeleton.tsx
12954
12965
  import { Flex as Flex43, Skeleton as Skeleton3 } from "@raystack/apsara";
12955
12966
 
12956
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-t6oIbOEhyq1E/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
12957
- var digest39 = "8ac377792ec4a6531b5d6f8eeebce20fbb668ae484325b099307104e53a02101";
12967
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-s5aESp54nLwB/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
12968
+ var digest39 = "a40df59f6f7d9d566f4211e710054fdd78c47568d4cf805b91389c83320ca6b1";
12958
12969
  var css39 = `._sessionsContainer_aq82p_1 {
12959
12970
  border: 1px solid var(--rs-color-border-base-primary);
12960
12971
  border-radius: var(--rs-radius-2);
@@ -13035,8 +13046,8 @@ import { AdminServiceQueries as AdminServiceQueries13 } from "@raystack/proton/f
13035
13046
  import dayjs10 from "dayjs";
13036
13047
  import relativeTime from "dayjs/plugin/relativeTime";
13037
13048
 
13038
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-5lI8ugKlaTQH/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
13039
- var digest40 = "e2b538dd2cf179ff32a5e48439ecaf560be7ba9952032b60f273f001b12f7c08";
13049
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-37TinyCoCfdC/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
13050
+ var digest40 = "33a53475c6018e3454d5cb2ded5df7dde8d8c120b81d2c64a5d42c1a09ae26eb";
13040
13051
  var css40 = `._sessionsContainer_aq82p_1 {
13041
13052
  border: 1px solid var(--rs-color-border-base-primary);
13042
13053
  border-radius: var(--rs-radius-2);
@@ -13247,8 +13258,8 @@ var UserSessions = () => {
13247
13258
  ] });
13248
13259
  };
13249
13260
 
13250
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-DRSyCoTjbWhO/sdk/admin/views/users/details/security/security.module.css.js
13251
- var digest41 = "34e18691c0acdcf61956f49ce2134b5a9bb33c409fe1461704429359bbcd9b10";
13261
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-9vyG5yTJEtzQ/sdk/admin/views/users/details/security/security.module.css.js
13262
+ var digest41 = "de6a55a97e6cd928ff63501ba5f436885f956ca7db59630290345e1ad246dfbd";
13252
13263
  var css41 = `._container_4259p_1 {
13253
13264
  width: 100%;
13254
13265
  }
@@ -13382,8 +13393,8 @@ import {
13382
13393
  } from "@raystack/apsara";
13383
13394
  import { OrganizationIcon } from "@raystack/apsara/icons";
13384
13395
 
13385
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-Jg0DZssq3HvD/sdk/admin/views/organizations/list/list.module.css.js
13386
- var digest42 = "ab40f2e5e5c9a4d9206dfcd0ae0c4edaea288fbd0a7f965c9fb7087fb7da860e";
13396
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-lugKV6BoOvzs/sdk/admin/views/organizations/list/list.module.css.js
13397
+ var digest42 = "bef4f8c80e2282107c091ba2edd9c27fc384435cae1fdd440b02611795027e31";
13387
13398
  var css42 = `._navbar_1laab_1 {
13388
13399
  padding: var(--rs-space-4) var(--rs-space-7);
13389
13400
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -13570,8 +13581,8 @@ var OrganizationsNavabar = ({
13570
13581
  ] });
13571
13582
  };
13572
13583
 
13573
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-N8v77OrmZq8B/sdk/admin/views/organizations/list/list.module.css.js
13574
- var digest43 = "621627d55501248605d01fa91f8bfe135815a2ced89cd243aa2b1f8196c6e862";
13584
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-YJH3LcYwbx0X/sdk/admin/views/organizations/list/list.module.css.js
13585
+ var digest43 = "65afcba12996cf4e39aa00c02b16beb7cd96c51d03537e3a2c821d43503eac72";
13575
13586
  var css43 = `._navbar_1laab_1 {
13576
13587
  padding: var(--rs-space-4) var(--rs-space-7);
13577
13588
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -13682,8 +13693,8 @@ import {
13682
13693
  } from "@raystack/apsara";
13683
13694
  import dayjs11 from "dayjs";
13684
13695
 
13685
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-gSqoBtCqaHid/sdk/admin/views/organizations/list/list.module.css.js
13686
- var digest44 = "fe22098e97840d7eb4f1960643698311211e3f01cc0f464aa71d5bb97d14c845";
13696
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-ns97WiIkQ00x/sdk/admin/views/organizations/list/list.module.css.js
13697
+ var digest44 = "09fae7cf94c4d614d8913907f3632ce2c57181b1449c86c1e49b1e16740e8f20";
13687
13698
  var css44 = `._navbar_1laab_1 {
13688
13699
  padding: var(--rs-space-4) var(--rs-space-7);
13689
13700
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -13948,10 +13959,10 @@ import {
13948
13959
  import { create as create8 } from "@bufbuild/protobuf";
13949
13960
 
13950
13961
  // admin/views/organizations/list/create.tsx
13951
- import { useEffect as useEffect6, useState as useState20 } from "react";
13962
+ import { useCallback as useCallback11, useEffect as useEffect6, useMemo as useMemo7, useState as useState20 } from "react";
13952
13963
 
13953
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-wBSrqHlUwm6H/sdk/admin/views/organizations/list/list.module.css.js
13954
- var digest45 = "ac904bf53f33e5ab2349881bfeadd70b28ab2cb972eef6cfabed7c73fe98da5a";
13964
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-y6c9jHpYkfTB/sdk/admin/views/organizations/list/list.module.css.js
13965
+ var digest45 = "619f5b0a605d10b66bce5e69a42488583a955f0f0c3fa380141f7488c21bb2ee";
13955
13966
  var css45 = `._navbar_1laab_1 {
13956
13967
  padding: var(--rs-space-4) var(--rs-space-7);
13957
13968
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -14081,9 +14092,9 @@ import {
14081
14092
  } from "@raystack/apsara";
14082
14093
  import "react-image-crop/dist/ReactCrop.css";
14083
14094
 
14084
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-POJbIgFB01uK/sdk/client/components/image-upload/image-upload.module.css.js
14085
- var digest46 = "7e9d80fef8c0356de37f77fd202719b8ce81a91dcfb986f587e00f02e4978f43";
14086
- var css46 = `._iconButton_cqo35_1 {
14095
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-Qmteh4R7AtFj/sdk/client/components/image-upload/image-upload.module.css.js
14096
+ var digest46 = "75996a9d5efb21a0647520a1c6d67503bde8632c39101e86ab45fa2fe281436e";
14097
+ var css46 = `._iconButton_1ifr2_1 {
14087
14098
  position: relative;
14088
14099
  width: var(--rs-space-14);
14089
14100
  height: var(--rs-space-14);
@@ -14093,7 +14104,12 @@ var css46 = `._iconButton_cqo35_1 {
14093
14104
  padding: 0;
14094
14105
  }
14095
14106
 
14096
- ._avatar_cqo35_11 {
14107
+ ._avatarWrapper_1ifr2_11 {
14108
+ position: relative;
14109
+ display: inline-flex;
14110
+ }
14111
+
14112
+ ._avatar_1ifr2_11 {
14097
14113
  position: absolute;
14098
14114
  inset: 0;
14099
14115
  width: 100%;
@@ -14103,44 +14119,54 @@ var css46 = `._iconButton_cqo35_1 {
14103
14119
  }
14104
14120
 
14105
14121
  /* When avatar is present, hide the dashed border */
14106
- ._iconButton_cqo35_1:has(._avatar_cqo35_11) {
14122
+ ._iconButton_1ifr2_1:has(._avatar_1ifr2_11) {
14107
14123
  border-color: transparent;
14108
14124
  }
14109
14125
 
14110
- /* On hover, hide avatar and restore dashed border */
14111
- ._iconButton_cqo35_1:hover ._avatar_cqo35_11 {
14126
+ /* On hover, hide avatar and restore dashed border + upload icon */
14127
+ ._iconButton_1ifr2_1:hover ._avatar_1ifr2_11 {
14112
14128
  opacity: 0;
14113
14129
  visibility: hidden;
14114
14130
  }
14115
14131
 
14116
- ._iconButton_cqo35_1:hover {
14132
+ ._iconButton_1ifr2_1:hover {
14117
14133
  border-color: var(--rs-color-border-accent-primary);
14118
14134
  }
14119
14135
 
14120
- ._uploadIcon_cqo35_35 {
14136
+ ._cornerButton_1ifr2_40 {
14137
+ position: absolute;
14138
+ top: -4px;
14139
+ right: -4px;
14140
+ background-color: var(--rs-color-background-base-primary);
14141
+ border: 1px solid var(--rs-color-border-base-primary);
14142
+ border-radius: var(--rs-radius-full);
14143
+ box-shadow: var(--rs-shadow-sm);
14144
+ }
14145
+
14146
+ ._uploadIcon_1ifr2_50 {
14121
14147
  width: 44px !important;
14122
14148
  height: 44px !important;
14123
14149
  color: var(--rs-color-foreground-accent-primary);
14124
14150
  }
14125
14151
 
14126
- ._inputFileField_cqo35_41 {
14152
+ ._inputFileField_1ifr2_56 {
14127
14153
  display: none;
14128
14154
  }
14129
14155
 
14130
- ._cropImageContainer_cqo35_45 {
14156
+ ._cropImageContainer_1ifr2_60 {
14131
14157
  max-width: 400px;
14132
14158
  height: 100%;
14133
14159
  }
14134
14160
 
14135
- ._reactCrop_cqo35_50 {
14161
+ ._reactCrop_1ifr2_65 {
14136
14162
  max-width: 100%;
14137
14163
  }
14138
14164
 
14139
- ._reactCrop_cqo35_50:focus {
14165
+ ._reactCrop_1ifr2_65:focus {
14140
14166
  border-color: transparent;
14141
14167
  }
14142
14168
 
14143
- ._previewImg_cqo35_58 {
14169
+ ._previewImg_1ifr2_73 {
14144
14170
  max-height: 280px !important;
14145
14171
  object-fit: contain;
14146
14172
  }
@@ -14156,7 +14182,7 @@ var css46 = `._iconButton_cqo35_1 {
14156
14182
  document.head.appendChild(el);
14157
14183
  }
14158
14184
  })();
14159
- var image_upload_module_css_default = { "iconButton": "_iconButton_cqo35_1", "avatar": "_avatar_cqo35_11", "uploadIcon": "_uploadIcon_cqo35_35", "inputFileField": "_inputFileField_cqo35_41", "cropImageContainer": "_cropImageContainer_cqo35_45", "reactCrop": "_reactCrop_cqo35_50", "previewImg": "_previewImg_cqo35_58" };
14185
+ var image_upload_module_css_default = { "iconButton": "_iconButton_1ifr2_1", "avatarWrapper": "_avatarWrapper_1ifr2_11", "avatar": "_avatar_1ifr2_11", "cornerButton": "_cornerButton_1ifr2_40", "uploadIcon": "_uploadIcon_1ifr2_50", "inputFileField": "_inputFileField_1ifr2_56", "cropImageContainer": "_cropImageContainer_1ifr2_60", "reactCrop": "_reactCrop_1ifr2_65", "previewImg": "_previewImg_1ifr2_73" };
14160
14186
 
14161
14187
  // client/components/image-upload/image-upload.tsx
14162
14188
  import { jsx as jsx73, jsxs as jsxs52 } from "react/jsx-runtime";
@@ -14300,22 +14326,47 @@ function ImageUpload({
14300
14326
  function handleSave(data) {
14301
14327
  onChange?.(data);
14302
14328
  }
14329
+ function onClearClick() {
14330
+ onChange?.("");
14331
+ }
14303
14332
  return /* @__PURE__ */ jsxs52(Flex49, { direction: "column", gap: 5, align: "start", "data-test-id": rest["data-test-id"], children: [
14304
- /* @__PURE__ */ jsxs52(
14305
- IconButton8,
14306
- {
14307
- size: 4,
14308
- "aria-label": "Upload image",
14309
- className: image_upload_module_css_default.iconButton,
14310
- onClick: disabled ? void 0 : onUploadIconClick,
14311
- disabled,
14312
- "data-test-id": "frontier-sdk-image-upload-icon",
14313
- children: [
14314
- (value || initials) && /* @__PURE__ */ jsx73(Avatar7, { src: value, fallback: initials, size: 10, radius: "small", className: image_upload_module_css_default.avatar }),
14315
- /* @__PURE__ */ jsx73(UploadIcon, { className: image_upload_module_css_default.uploadIcon })
14316
- ]
14317
- }
14318
- ),
14333
+ /* @__PURE__ */ jsxs52("div", { className: image_upload_module_css_default.avatarWrapper, children: [
14334
+ /* @__PURE__ */ jsxs52(
14335
+ IconButton8,
14336
+ {
14337
+ size: 4,
14338
+ "aria-label": "Upload image",
14339
+ className: image_upload_module_css_default.iconButton,
14340
+ onClick: disabled ? void 0 : onUploadIconClick,
14341
+ disabled,
14342
+ "data-test-id": "frontier-sdk-image-upload-icon",
14343
+ children: [
14344
+ (value || initials) && /* @__PURE__ */ jsx73(
14345
+ Avatar7,
14346
+ {
14347
+ src: value,
14348
+ fallback: initials,
14349
+ size: 10,
14350
+ radius: "small",
14351
+ className: image_upload_module_css_default.avatar
14352
+ }
14353
+ ),
14354
+ /* @__PURE__ */ jsx73(UploadIcon, { className: image_upload_module_css_default.uploadIcon })
14355
+ ]
14356
+ }
14357
+ ),
14358
+ !disabled && value && /* @__PURE__ */ jsx73(
14359
+ IconButton8,
14360
+ {
14361
+ size: 1,
14362
+ "aria-label": "Clear image",
14363
+ className: image_upload_module_css_default.cornerButton,
14364
+ onClick: onClearClick,
14365
+ "data-test-id": "frontier-sdk-image-upload-clear",
14366
+ children: /* @__PURE__ */ jsx73(Cross2Icon, {})
14367
+ }
14368
+ )
14369
+ ] }),
14319
14370
  description ? /* @__PURE__ */ jsx73(Text33, { size: "regular", variant: "secondary", children: description }) : null,
14320
14371
  /* @__PURE__ */ jsx73(
14321
14372
  "input",
@@ -14342,6 +14393,7 @@ function ImageUpload({
14342
14393
  }
14343
14394
 
14344
14395
  // admin/views/organizations/list/create.tsx
14396
+ import { debounce } from "lodash";
14345
14397
  import { Controller as Controller3, useForm as useForm5 } from "react-hook-form";
14346
14398
  import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
14347
14399
  import { useMutation as useMutation9 } from "@connectrpc/connect-query";
@@ -14351,34 +14403,22 @@ import { jsx as jsx74, jsxs as jsxs53 } from "react/jsx-runtime";
14351
14403
  var orgCreateSchema = external_exports.object({
14352
14404
  avatar: external_exports.string().optional(),
14353
14405
  title: external_exports.string().min(1, "Title is required"),
14354
- name: external_exports.string().min(1, "URL is required").regex(
14355
- /^[a-z0-9-]+$/,
14356
- "Use only lowercase letters, numbers, and hyphens"
14406
+ name: external_exports.string().min(1, "URL is required").min(3, "URL not valid, Min 3 characters allowed").max(50, "URL not valid, Max 50 characters allowed").regex(
14407
+ /^[a-zA-Z0-9_-]{3,50}$/,
14408
+ "Only numbers, letters, '-', and '_' are allowed. Spaces are not allowed."
14357
14409
  ),
14358
14410
  orgOwnerEmail: external_exports.string().min(1, "Owner email is required").email("Enter a valid email address"),
14359
- size: external_exports.string().min(1, "Size is required").refine(
14360
- (value) => Number.isInteger(Number(value)) && Number(value) > 0,
14361
- "Enter a valid size greater than 0"
14362
- ).transform((value) => parseInt(value)),
14363
- type: external_exports.string().min(1, "Industry is required"),
14364
- otherType: external_exports.string().optional(),
14365
14411
  country: external_exports.string().min(1, "Country is required")
14366
- }).refine((data) => data.type !== "other" || Boolean(data.otherType?.trim()), {
14367
- message: "Please specify the industry",
14368
- path: ["otherType"]
14369
14412
  });
14370
- var otherTypePrefix = "Other - ";
14371
14413
  function CreateOrganizationPanel({
14372
14414
  open = false,
14373
14415
  onClose,
14374
- organizationTypes = [],
14375
14416
  appUrl = "",
14376
14417
  countries: countriesProp = [],
14377
14418
  onSuccess
14378
14419
  }) {
14379
14420
  const t = useTerminology();
14380
14421
  const [countries, setCountries] = useState20(countriesProp);
14381
- const industries = organizationTypes;
14382
14422
  useEffect6(() => {
14383
14423
  if (countriesProp.length > 0) {
14384
14424
  setCountries(countriesProp);
@@ -14388,8 +14428,8 @@ function CreateOrganizationPanel({
14388
14428
  handleSubmit,
14389
14429
  control,
14390
14430
  setError,
14391
- formState: { isSubmitting, errors },
14392
- watch,
14431
+ setValue,
14432
+ formState: { isSubmitting, errors, dirtyFields },
14393
14433
  register
14394
14434
  } = useForm5({
14395
14435
  defaultValues: {
@@ -14397,12 +14437,27 @@ function CreateOrganizationPanel({
14397
14437
  title: "",
14398
14438
  name: "",
14399
14439
  orgOwnerEmail: "",
14400
- type: "",
14401
- otherType: "",
14402
14440
  country: ""
14403
14441
  },
14404
14442
  resolver: zodResolver5(orgCreateSchema)
14405
14443
  });
14444
+ const uniqueSuffix = useMemo7(() => randomSuffix(), []);
14445
+ const debouncedGenerateSlug = useMemo7(
14446
+ () => debounce((title) => {
14447
+ const baseSlug = generateSlug(title);
14448
+ setValue("name", baseSlug ? `${baseSlug}-${uniqueSuffix}` : "");
14449
+ }, 300),
14450
+ [setValue, uniqueSuffix]
14451
+ );
14452
+ useEffect6(() => () => debouncedGenerateSlug.cancel(), [debouncedGenerateSlug]);
14453
+ const handleTitleChange = useCallback11(
14454
+ (e) => {
14455
+ if (dirtyFields.name)
14456
+ return;
14457
+ debouncedGenerateSlug(e.target.value);
14458
+ },
14459
+ [debouncedGenerateSlug, dirtyFields.name]
14460
+ );
14406
14461
  const { mutateAsync: createOrganization, isPending } = useMutation9(
14407
14462
  AdminServiceQueries15.adminCreateOrganization,
14408
14463
  {
@@ -14425,8 +14480,6 @@ function CreateOrganizationPanel({
14425
14480
  title: data.title,
14426
14481
  orgOwnerEmail: data.orgOwnerEmail,
14427
14482
  metadata: {
14428
- size: data.size.toString(),
14429
- type: data.otherType ? `${otherTypePrefix}${data.otherType}` : data.type,
14430
14483
  country: data.country
14431
14484
  }
14432
14485
  };
@@ -14439,7 +14492,6 @@ function CreateOrganizationPanel({
14439
14492
  console.error("Unable to create new org:", err);
14440
14493
  }
14441
14494
  }
14442
- const showOtherTypeField = watch("type") === "other";
14443
14495
  return /* @__PURE__ */ jsx74(Drawer6, { open, onOpenChange: (open2) => !open2 && onClose(), children: /* @__PURE__ */ jsx74(Drawer6.Content, { showCloseButton: false, className: list_module_css_default7["drawer-content"], children: /* @__PURE__ */ jsxs53(
14444
14496
  SidePanel3,
14445
14497
  {
@@ -14468,6 +14520,7 @@ function CreateOrganizationPanel({
14468
14520
  {
14469
14521
  className: list_module_css_default7["side-panel-form"],
14470
14522
  onSubmit: handleSubmit(onSubmit),
14523
+ noValidate: true,
14471
14524
  children: [
14472
14525
  /* @__PURE__ */ jsxs53(
14473
14526
  Flex50,
@@ -14498,13 +14551,18 @@ function CreateOrganizationPanel({
14498
14551
  label: `${t.organization({ case: "capital" })} title`,
14499
14552
  error: errors.title?.message,
14500
14553
  required: true,
14501
- children: /* @__PURE__ */ jsx74(Input3, { ...register("title") })
14554
+ children: /* @__PURE__ */ jsx74(
14555
+ Input3,
14556
+ {
14557
+ ...register("title", { onChange: handleTitleChange })
14558
+ }
14559
+ )
14502
14560
  }
14503
14561
  ),
14504
14562
  /* @__PURE__ */ jsx74(
14505
14563
  Field,
14506
14564
  {
14507
- label: `${t.organization({ case: "capital" })} owner`,
14565
+ label: `${t.organization({ case: "capital" })} owner email`,
14508
14566
  error: errors.orgOwnerEmail?.message,
14509
14567
  required: true,
14510
14568
  children: /* @__PURE__ */ jsx74(Input3, { ...register("orgOwnerEmail"), type: "email" })
@@ -14520,63 +14578,6 @@ function CreateOrganizationPanel({
14520
14578
  children: /* @__PURE__ */ jsx74(Input3, { ...register("name"), prefix: appUrl })
14521
14579
  }
14522
14580
  ),
14523
- /* @__PURE__ */ jsx74(
14524
- Field,
14525
- {
14526
- label: `${t.organization({ case: "capital" })} size`,
14527
- error: errors.size?.message,
14528
- required: true,
14529
- children: /* @__PURE__ */ jsx74(Input3, { ...register("size"), type: "number", min: 1 })
14530
- }
14531
- ),
14532
- /* @__PURE__ */ jsx74(
14533
- Controller3,
14534
- {
14535
- name: "type",
14536
- control,
14537
- render: ({ field }) => {
14538
- return /* @__PURE__ */ jsx74(
14539
- Field,
14540
- {
14541
- label: `${t.organization({ case: "capital" })} industry`,
14542
- error: errors.type?.message,
14543
- required: true,
14544
- children: /* @__PURE__ */ jsxs53(
14545
- Select3,
14546
- {
14547
- ...field,
14548
- value: field?.value?.toString(),
14549
- onValueChange: (value) => {
14550
- field?.onChange({ target: { value } });
14551
- },
14552
- children: [
14553
- /* @__PURE__ */ jsx74(Select3.Trigger, { children: /* @__PURE__ */ jsx74(
14554
- Select3.Value,
14555
- {
14556
- placeholder: "Select an industry",
14557
- id: "org-type-select"
14558
- }
14559
- ) }),
14560
- /* @__PURE__ */ jsxs53(Select3.Content, { className: list_module_css_default7["select-content"], children: [
14561
- industries.map((industry) => /* @__PURE__ */ jsx74(Select3.Item, { value: industry, children: industry }, industry)),
14562
- /* @__PURE__ */ jsx74(Select3.Item, { value: "other", children: "Other" })
14563
- ] })
14564
- ]
14565
- }
14566
- )
14567
- }
14568
- );
14569
- }
14570
- }
14571
- ),
14572
- showOtherTypeField ? /* @__PURE__ */ jsx74(
14573
- Field,
14574
- {
14575
- label: `${t.organization({ case: "capital" })} industry (other)`,
14576
- error: errors.otherType?.message,
14577
- children: /* @__PURE__ */ jsx74(Input3, { ...register("otherType") })
14578
- }
14579
- ) : null,
14580
14581
  /* @__PURE__ */ jsx74(
14581
14582
  Controller3,
14582
14583
  {
@@ -14826,7 +14827,7 @@ var OrganizationListView = ({
14826
14827
  };
14827
14828
 
14828
14829
  // admin/views/organizations/details/index.tsx
14829
- import { useEffect as useEffect12, useMemo as useMemo9, useState as useState25 } from "react";
14830
+ import { useEffect as useEffect12, useMemo as useMemo10, useState as useState25 } from "react";
14830
14831
  import {
14831
14832
  useQuery as useQuery16,
14832
14833
  createConnectQueryKey as createConnectQueryKey9,
@@ -14851,8 +14852,8 @@ import {
14851
14852
  Search
14852
14853
  } from "@raystack/apsara";
14853
14854
 
14854
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-DHj77I8JNvxT/sdk/admin/views/organizations/details/layout/layout.module.css.js
14855
- var digest47 = "e41c4bed940bd3e9e486622897ebe3ca1641613380ac05a23b6ad9663460eadc";
14855
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-wrrWOe783hMU/sdk/admin/views/organizations/details/layout/layout.module.css.js
14856
+ var digest47 = "d4e723dd8af36e236cdfc612f9596ed465a98fa1de98c7709fa8207e88055224";
14856
14857
  var css47 = `._page_1jsqa_1 {
14857
14858
  width: 100%;
14858
14859
  height: 100vh;
@@ -14956,10 +14957,10 @@ import {
14956
14957
  TextArea as TextArea3,
14957
14958
  toastManager as toastManager11
14958
14959
  } from "@raystack/apsara";
14959
- import { useContext as useContext5, useMemo as useMemo7 } from "react";
14960
+ import { useContext as useContext5, useMemo as useMemo8 } from "react";
14960
14961
 
14961
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-vn1IxVjz7Zvn/sdk/admin/views/organizations/details/layout/layout.module.css.js
14962
- var digest48 = "7429f7440565b9942aad9d3e08ce483f28a6c9c1e170428535cb4c854afacd43";
14962
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-UGNLF1C9FjGx/sdk/admin/views/organizations/details/layout/layout.module.css.js
14963
+ var digest48 = "a0cda7b2f344c3151ac29311d163bd749264f604d095dca6049fbaa265cac734";
14963
14964
  var css48 = `._page_1jsqa_1 {
14964
14965
  width: 100%;
14965
14966
  height: 100vh;
@@ -15127,7 +15128,7 @@ var InviteUsersDialog = ({ onOpenChange }) => {
15127
15128
  const queryClient = useQueryClient7();
15128
15129
  const transport = useTransport6();
15129
15130
  const organizationId = organization?.id || "";
15130
- const defaultRoleId = useMemo7(
15131
+ const defaultRoleId = useMemo8(
15131
15132
  () => roles?.find((role) => role.name === DEFAULT_INVITE_ROLE)?.id,
15132
15133
  [roles]
15133
15134
  );
@@ -15267,8 +15268,8 @@ import {
15267
15268
  import { useContext as useContext6 } from "react";
15268
15269
  import { Controller as Controller5, FormProvider as FormProvider4, useForm as useForm7 } from "react-hook-form";
15269
15270
 
15270
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-Nrd00rFe0N3N/sdk/admin/views/organizations/details/layout/layout.module.css.js
15271
- var digest49 = "914797aae84c4dd7b69b410ecc1b1c49ef81a18376824d819d63fe160cd32c63";
15271
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-38oF2O7LQLz0/sdk/admin/views/organizations/details/layout/layout.module.css.js
15272
+ var digest49 = "230f1a26f40f38387ffb6eecfe5a78d5f4857e35cddfed56b30027817dca136a";
15272
15273
  var css49 = `._page_1jsqa_1 {
15273
15274
  width: 100%;
15274
15275
  height: 100vh;
@@ -15774,8 +15775,8 @@ var OrganizationsDetailsNavabar = ({
15774
15775
  ] });
15775
15776
  };
15776
15777
 
15777
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-mqew6xAUlSqq/sdk/admin/views/organizations/details/layout/layout.module.css.js
15778
- var digest50 = "c73f927bba134c6a0dcb30871dd83f82bf1a67f1e0f835269d79c456008cd392";
15778
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-vSrzDIEUEKI4/sdk/admin/views/organizations/details/layout/layout.module.css.js
15779
+ var digest50 = "50a65a46422293b36ff16aef5639616b337df76d92c55f5591a33597a46cc522";
15779
15780
  var css50 = `._page_1jsqa_1 {
15780
15781
  width: 100%;
15781
15782
  height: 100vh;
@@ -15877,8 +15878,8 @@ import { Avatar as Avatar9, getAvatarColor as getAvatarColor7, SidePanel as Side
15877
15878
  // admin/views/organizations/details/side-panel/org-details-section.tsx
15878
15879
  import { Flex as Flex55, List as List7, Text as Text38, CopyButton as CopyButton3, Tooltip as Tooltip3 } from "@raystack/apsara";
15879
15880
 
15880
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-YhPnxcq74r22/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
15881
- var digest51 = "59128ec32c4aa0a5133b46445823b201c8a8d0032429339039c841ff5e942776";
15881
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-SVvhKQ6LDY8C/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
15882
+ var digest51 = "d0485f043d9c573bba2836e9f0b2adb3b175bddd8485f6f8dfb76c29ff0801df";
15882
15883
  var css51 = `._side-panel-section-item-label_slrfc_1 {
15883
15884
  width: 120px;
15884
15885
  }
@@ -16008,8 +16009,8 @@ var OrganizationDetailsSection = ({
16008
16009
  import { Flex as Flex56, List as List8, Text as Text39, Link as Link2, Tooltip as Tooltip4 } from "@raystack/apsara";
16009
16010
  import { useContext as useContext9 } from "react";
16010
16011
 
16011
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-skSS474YPxJw/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16012
- var digest52 = "ab5cf782a0032d1f589918213e188489e3cf062c7bb979b8b02e240e8408cb43";
16012
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-T1rMFBWZakxs/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16013
+ var digest52 = "fb158e63ceba75e511ad888d8dbd7634b23d82d39d8dc7df7e78de51d9d05624";
16013
16014
  var css52 = `._side-panel-section-item-label_slrfc_1 {
16014
16015
  width: 120px;
16015
16016
  }
@@ -16135,8 +16136,8 @@ var KYCDetailsSection = () => {
16135
16136
  import { useContext as useContext10 } from "react";
16136
16137
  import { List as List9, Text as Text40, Flex as Flex57 } from "@raystack/apsara";
16137
16138
 
16138
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-P75EJga0w7rh/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16139
- var digest53 = "8501f7b893cee9c382d05bdd4d49f4af09eb4552c88c20610e1bef8138ed9e93";
16139
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-rGgM2MQUvnEh/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16140
+ var digest53 = "0e46a0b75a28abbaf41388bbe31abcb8d9e04502f32d7872969f2a47ebeebbcc";
16140
16141
  var css53 = `._side-panel-section-item-label_slrfc_1 {
16141
16142
  width: 120px;
16142
16143
  }
@@ -16270,8 +16271,8 @@ var PlanDetailsSection = () => {
16270
16271
  import { List as List10, Text as Text41, Flex as Flex58 } from "@raystack/apsara";
16271
16272
  import { CoinIcon, CoinColoredIcon } from "@raystack/apsara/icons";
16272
16273
 
16273
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-DbkyNOBHYFVa/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16274
- var digest54 = "0e1a9b0f9c8e670cbed3d9dcfa7d0bba385dae8c6c1f4d94ac9ff893a61b904b";
16274
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-Y9h76CkGS0r1/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16275
+ var digest54 = "59f44f96bc8b7631a347216056ae7f8f9cc949035dcc174ae1a5f30742f5a746";
16275
16276
  var css54 = `._side-panel-section-item-label_slrfc_1 {
16276
16277
  width: 120px;
16277
16278
  }
@@ -16404,8 +16405,8 @@ var TokensDetailsSection = () => {
16404
16405
  // admin/views/organizations/details/side-panel/billing-details-section.tsx
16405
16406
  import { Amount as Amount4, CopyButton as CopyButton4, Flex as Flex59, IconButton as IconButton11, Link as Link3, List as List11, Text as Text42, Tooltip as Tooltip5, toastManager as toastManager14 } from "@raystack/apsara";
16406
16407
 
16407
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-pgr6dp9BOxWg/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16408
- var digest55 = "c4e13f4e4140f1a0dbecd8897c112d997b033379dbd8cf0f4e2124c1add7aba8";
16408
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-vUuRUCjMCbAF/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16409
+ var digest55 = "0527d7971c95c59b6a3e75ae74296ad11339228778e4adf595193c45d48a27fe";
16409
16410
  var css55 = `._side-panel-section-item-label_slrfc_1 {
16410
16411
  width: 120px;
16411
16412
  }
@@ -16648,8 +16649,8 @@ import {
16648
16649
  toastManager as toastManager15
16649
16650
  } from "@raystack/apsara";
16650
16651
 
16651
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-aRcKKvKxGEfG/sdk/admin/views/organizations/details/edit/edit.module.css.js
16652
- var digest56 = "694fd357a36d249aadb0cc55324d9ea00e6f215a99dc2bb95d388c30d2094b5e";
16652
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-qV8MV4uGyUuO/sdk/admin/views/organizations/details/edit/edit.module.css.js
16653
+ var digest56 = "d4b95aa0ef5f372ff789ee36b8fd4d906ad8ab11797316799c335ef65af860f0";
16653
16654
  var css56 = `._drawer-content_18xgg_1 {
16654
16655
  min-width: 500px;
16655
16656
  padding: 0;
@@ -16875,8 +16876,8 @@ function EditKYCPanel({ open = false, onClose }) {
16875
16876
  // admin/views/organizations/details/edit/organization.tsx
16876
16877
  import { useContext as useContext14, useEffect as useEffect10, useState as useState23 } from "react";
16877
16878
 
16878
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-bQAb5dPaUNXu/sdk/admin/views/organizations/details/edit/edit.module.css.js
16879
- var digest57 = "112e042d410683e4f3f0b00618f522ae87c1df34e12e3e9b0d4cd40e9cff8737";
16879
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-uOJtP0dbC1mh/sdk/admin/views/organizations/details/edit/edit.module.css.js
16880
+ var digest57 = "a578c93376791c418f6ba083cf5f8fe0f6e9968ba6ba7a2cc073a85ce115cb85";
16880
16881
  var css57 = `._drawer-content_18xgg_1 {
16881
16882
  min-width: 500px;
16882
16883
  padding: 0;
@@ -16959,10 +16960,10 @@ var orgUpdateSchema = external_exports.object({
16959
16960
  path: ["otherType"]
16960
16961
  }
16961
16962
  );
16962
- var otherTypePrefix2 = "Other - ";
16963
+ var otherTypePrefix = "Other - ";
16963
16964
  function removeOtherPrefix(text) {
16964
- if (text.startsWith(otherTypePrefix2)) {
16965
- return text.substring(otherTypePrefix2.length);
16965
+ if (text.startsWith(otherTypePrefix)) {
16966
+ return text.substring(otherTypePrefix.length);
16966
16967
  }
16967
16968
  return text;
16968
16969
  }
@@ -16973,6 +16974,7 @@ function getDefaultValue(organization, industries) {
16973
16974
  return {
16974
16975
  title: organization?.title || "",
16975
16976
  name: organization?.name || "",
16977
+ avatar: organization?.avatar || "",
16976
16978
  size: metadata?.size || 0,
16977
16979
  type,
16978
16980
  otherType,
@@ -17035,7 +17037,7 @@ function EditOrganizationPanel({ open = false, onClose }) {
17035
17037
  title: data.title,
17036
17038
  metadata: {
17037
17039
  size: data.size.toString(),
17038
- type: data.otherType ? `${otherTypePrefix2}${data.otherType}` : data.type,
17040
+ type: data.otherType ? `${otherTypePrefix}${data.otherType}` : data.type,
17039
17041
  country: data.country
17040
17042
  }
17041
17043
  };
@@ -17252,8 +17254,8 @@ import {
17252
17254
  toastManager as toastManager16
17253
17255
  } from "@raystack/apsara";
17254
17256
 
17255
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-n9EjCxjR63AN/sdk/admin/views/organizations/details/edit/edit.module.css.js
17256
- var digest58 = "3d5e359abeb28a1eab2e7343631d6c0d3f3a7e2ed578ffdbf62991668e2202c7";
17257
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-FLbw6vHS9XcC/sdk/admin/views/organizations/details/edit/edit.module.css.js
17258
+ var digest58 = "20048138f2fb864cc792fa9bd095693e672fc5c5d241171413421f6c9b95db08";
17257
17259
  var css58 = `._drawer-content_18xgg_1 {
17258
17260
  min-width: 500px;
17259
17261
  padding: 0;
@@ -17302,7 +17304,7 @@ var css58 = `._drawer-content_18xgg_1 {
17302
17304
  var edit_module_css_default3 = { "drawer-content": "_drawer-content_18xgg_1", "drawerContent": "_drawer-content_18xgg_1", "side-panel": "_side-panel_18xgg_7", "sidePanel": "_side-panel_18xgg_7", "side-panel-form": "_side-panel-form_18xgg_15", "sidePanelForm": "_side-panel-form_18xgg_15", "side-panel-content": "_side-panel-content_18xgg_22", "sidePanelContent": "_side-panel-content_18xgg_22", "side-panel-footer": "_side-panel-footer_18xgg_26", "sidePanelFooter": "_side-panel-footer_18xgg_26", "select-content": "_select-content_18xgg_31", "selectContent": "_select-content_18xgg_31" };
17303
17305
 
17304
17306
  // admin/views/organizations/details/edit/billing.tsx
17305
- import { useCallback as useCallback11, useContext as useContext15, useEffect as useEffect11, useMemo as useMemo8 } from "react";
17307
+ import { useCallback as useCallback12, useContext as useContext15, useEffect as useEffect11, useMemo as useMemo9 } from "react";
17306
17308
  import { useForm as useForm10 } from "react-hook-form";
17307
17309
  import { zodResolver as zodResolver10 } from "@hookform/resolvers/zod";
17308
17310
  import { useMutation as useMutation15 } from "@connectrpc/connect-query";
@@ -17366,7 +17368,7 @@ function EditBillingPanel({ open = false, onClose }) {
17366
17368
  } = useForm10({
17367
17369
  resolver: zodResolver10(billingDetailsUpdateSchema)
17368
17370
  });
17369
- const billingDetailsData = useMemo8(() => {
17371
+ const billingDetailsData = useMemo9(() => {
17370
17372
  const creditMin = billingAccountDetails?.creditMin || 0n;
17371
17373
  const absoluteCreditMin = creditMin < 0n ? creditMin * BigInt(-1) : creditMin;
17372
17374
  const dueInDays = billingAccountDetails?.dueInDays || 0n;
@@ -17419,7 +17421,7 @@ function EditBillingPanel({ open = false, onClose }) {
17419
17421
  console.error("Failed to update billing details:", error);
17420
17422
  }
17421
17423
  };
17422
- const onValueChange = useCallback11((value) => {
17424
+ const onValueChange = useCallback12((value) => {
17423
17425
  const paymentType = value;
17424
17426
  setValue("tokenPaymentType", paymentType);
17425
17427
  if (paymentType === "prepaid") {
@@ -17688,7 +17690,7 @@ var OrganizationDetailsView = ({
17688
17690
  enabled: !!organizationId
17689
17691
  }
17690
17692
  );
17691
- const kycDetails = useMemo9(() => kycData?.organizationKyc, [kycData]);
17693
+ const kycDetails = useMemo10(() => kycData?.organizationKyc, [kycData]);
17692
17694
  function updateKYCDetails(kyc) {
17693
17695
  if (!organizationId)
17694
17696
  return;
@@ -17889,8 +17891,8 @@ import {
17889
17891
  toastManager as toastManager19
17890
17892
  } from "@raystack/apsara";
17891
17893
 
17892
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-zJ9sYQdLXsLB/sdk/admin/views/organizations/details/security/security.module.css.js
17893
- var digest59 = "6367154fb4ac4daededaabbbaa8ef65e5f2f9c6337c41143f0cd7c101f004051";
17894
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-xHbb7orcs2ND/sdk/admin/views/organizations/details/security/security.module.css.js
17895
+ var digest59 = "dd107f42b0d71797bcbd2100fe8a3e143c82efab552f43100b0811d887216a04";
17894
17896
  var css59 = `._container_1wkae_1 {
17895
17897
  width: 100%;
17896
17898
  }
@@ -18105,8 +18107,8 @@ import {
18105
18107
  toastManager as toastManager18
18106
18108
  } from "@raystack/apsara";
18107
18109
 
18108
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-Spy4RyrwkD7g/sdk/admin/views/organizations/details/security/security.module.css.js
18109
- var digest60 = "5c032b5a1e6207263d0bf4361b911d161f49ee97805c267d7766891e0e9f3640";
18110
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-DhxHI9Swmr9U/sdk/admin/views/organizations/details/security/security.module.css.js
18111
+ var digest60 = "199cb8d9f7ca6fc2bb9f6e2aee240da5204b702a3f5967ef00920d6939772ac9";
18110
18112
  var css60 = `._container_1wkae_1 {
18111
18113
  width: 100%;
18112
18114
  }
@@ -18347,8 +18349,8 @@ var OrganizationSecurity = () => {
18347
18349
  // admin/views/organizations/details/members/index.tsx
18348
18350
  import { AlertDialog as AlertDialog6, DataTable as DataTable16, EmptyState as EmptyState15, Flex as Flex69 } from "@raystack/apsara";
18349
18351
 
18350
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-4YIKcOFUelFw/sdk/admin/views/organizations/details/members/members.module.css.js
18351
- var digest61 = "c1b47bb20da30d4075586a9d9e9ac3ea74922b2fc4c63155f46e68f5f40d4a32";
18352
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-5lDNz9PUXZnl/sdk/admin/views/organizations/details/members/members.module.css.js
18353
+ var digest61 = "49bc685647946bbdeff8285848014585f7ca3f49b913c8e620faaa65e1773b03";
18352
18354
  var css61 = `._container_jkaqi_1 {
18353
18355
  width: 100%;
18354
18356
  }
@@ -18400,7 +18402,7 @@ var css61 = `._container_jkaqi_1 {
18400
18402
  var members_module_css_default = { "container": "_container_jkaqi_1", "name-column": "_name-column_jkaqi_5", "nameColumn": "_name-column_jkaqi_5", "empty-state": "_empty-state_jkaqi_9", "emptyState": "_empty-state_jkaqi_9", "empty-state-subheading": "_empty-state-subheading_jkaqi_13", "emptyStateSubheading": "_empty-state-subheading_jkaqi_13", "table": "_table_jkaqi_18", "table-wrapper": "_table-wrapper_jkaqi_23", "tableWrapper": "_table-wrapper_jkaqi_23", "table-header": "_table-header_jkaqi_29", "tableHeader": "_table-header_jkaqi_29", "table-action-column": "_table-action-column_jkaqi_34", "tableActionColumn": "_table-action-column_jkaqi_34" };
18401
18403
 
18402
18404
  // admin/views/organizations/details/members/index.tsx
18403
- import { useContext as useContext19, useEffect as useEffect15, useMemo as useMemo11, useState as useState29 } from "react";
18405
+ import { useContext as useContext19, useEffect as useEffect15, useMemo as useMemo12, useState as useState29 } from "react";
18404
18406
 
18405
18407
  // admin/views/organizations/details/members/columns.tsx
18406
18408
  import {
@@ -18412,8 +18414,8 @@ import {
18412
18414
  IconButton as IconButton16
18413
18415
  } from "@raystack/apsara";
18414
18416
 
18415
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-hNzVHa74e6kr/sdk/admin/views/organizations/details/members/members.module.css.js
18416
- var digest62 = "0b42c70e9a923a6018fb5ce789d924d5b6beedf65b60af8391f6b55ba2aaecdd";
18417
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-sYQ6I6gpS5gV/sdk/admin/views/organizations/details/members/members.module.css.js
18418
+ var digest62 = "40b22aa793f063ea9b13346f266ebcd580f3ef0fd04dfe492abbba20fc0c2317";
18417
18419
  var css62 = `._container_jkaqi_1 {
18418
18420
  width: 100%;
18419
18421
  }
@@ -18861,8 +18863,8 @@ var RemoveMember = ({
18861
18863
  };
18862
18864
 
18863
18865
  // ../node_modules/.pnpm/usehooks-ts@3.1.1_react@19.2.4/node_modules/usehooks-ts/dist/index.js
18864
- var import_lodash2 = __toESM(require_lodash(), 1);
18865
- import { useState as useState28, useCallback as useCallback12, useLayoutEffect as useLayoutEffect3, useEffect as useEffect14, useRef as useRef3, useMemo as useMemo10 } from "react";
18866
+ var import_lodash3 = __toESM(require_lodash(), 1);
18867
+ import { useState as useState28, useCallback as useCallback13, useLayoutEffect as useLayoutEffect3, useEffect as useEffect14, useRef as useRef3, useMemo as useMemo11 } from "react";
18866
18868
  function useUnmount(func) {
18867
18869
  const funcRef = useRef3(func);
18868
18870
  funcRef.current = func;
@@ -18880,8 +18882,8 @@ function useDebounceCallback(func, delay = 500, options) {
18880
18882
  debouncedFunc.current.cancel();
18881
18883
  }
18882
18884
  });
18883
- const debounced = useMemo10(() => {
18884
- const debouncedFuncInstance = (0, import_lodash2.default)(func, delay, options);
18885
+ const debounced = useMemo11(() => {
18886
+ const debouncedFuncInstance = (0, import_lodash3.default)(func, delay, options);
18885
18887
  const wrappedFunc = (...args) => {
18886
18888
  return debouncedFuncInstance(...args);
18887
18889
  };
@@ -18897,7 +18899,7 @@ function useDebounceCallback(func, delay = 500, options) {
18897
18899
  return wrappedFunc;
18898
18900
  }, [func, delay, options]);
18899
18901
  useEffect14(() => {
18900
- debouncedFunc.current = (0, import_lodash2.default)(func, delay, options);
18902
+ debouncedFunc.current = (0, import_lodash3.default)(func, delay, options);
18901
18903
  }, [func, delay, options]);
18902
18904
  return debounced;
18903
18905
  }
@@ -18975,7 +18977,7 @@ function OrganizationMembersView() {
18975
18977
  const [removeMemberConfig, setRemoveMemberConfig] = useState29({ isOpen: false, user: null });
18976
18978
  const title = `Members | ${organization?.title} | Organizations`;
18977
18979
  const [tableQuery, setTableQuery] = useState29(INITIAL_QUERY5);
18978
- const computedQuery = useMemo11(() => {
18980
+ const computedQuery = useMemo12(() => {
18979
18981
  const tempQuery = transformDataTableQueryToRQLRequest(tableQuery, TRANSFORM_OPTIONS2);
18980
18982
  return {
18981
18983
  ...tempQuery,
@@ -19108,8 +19110,8 @@ import {
19108
19110
  Flex as Flex76
19109
19111
  } from "@raystack/apsara";
19110
19112
 
19111
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-nZMcBEcgK2Rj/sdk/admin/views/organizations/details/projects/projects.module.css.js
19112
- var digest63 = "cc622bb95e4c230239cd495ac4371b5ddfedd15d38b53872f6c004fc83d069f3";
19113
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-iBSuFVPcO8yI/sdk/admin/views/organizations/details/projects/projects.module.css.js
19114
+ var digest63 = "25f4d21723576a8e71d104f6640d0ff2c614f82ad4b5a906ee91fbc941522403";
19113
19115
  var css63 = `._container_1xzwm_1 {
19114
19116
  width: 100%;
19115
19117
  }
@@ -19165,7 +19167,7 @@ var css63 = `._container_1xzwm_1 {
19165
19167
  var projects_module_css_default = { "container": "_container_1xzwm_1", "title-column": "_title-column_1xzwm_5", "titleColumn": "_title-column_1xzwm_5", "empty-state": "_empty-state_1xzwm_9", "emptyState": "_empty-state_1xzwm_9", "empty-state-subheading": "_empty-state-subheading_1xzwm_13", "emptyStateSubheading": "_empty-state-subheading_1xzwm_13", "table": "_table_1xzwm_18", "table-wrapper": "_table-wrapper_1xzwm_23", "tableWrapper": "_table-wrapper_1xzwm_23", "table-header": "_table-header_1xzwm_29", "tableHeader": "_table-header_1xzwm_29", "table-action-column": "_table-action-column_1xzwm_34", "tableActionColumn": "_table-action-column_1xzwm_34", "flex1": "_flex1_1xzwm_38" };
19166
19168
 
19167
19169
  // admin/views/organizations/details/projects/index.tsx
19168
- import { useContext as useContext21, useEffect as useEffect16, useMemo as useMemo14, useState as useState34 } from "react";
19170
+ import { useContext as useContext21, useEffect as useEffect16, useMemo as useMemo15, useState as useState34 } from "react";
19169
19171
 
19170
19172
  // admin/views/organizations/details/projects/columns.tsx
19171
19173
  import {
@@ -19177,8 +19179,8 @@ import {
19177
19179
  Menu as Menu5
19178
19180
  } from "@raystack/apsara";
19179
19181
 
19180
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-4fmoK9Sowqk5/sdk/admin/views/organizations/details/projects/projects.module.css.js
19181
- var digest64 = "0085216d68b921fa411845b664de6ea4180d3c156dc8e41aee70936a7c5f24a3";
19182
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-JtJ5PSf6a7w6/sdk/admin/views/organizations/details/projects/projects.module.css.js
19183
+ var digest64 = "1bf95bf65b3b86cf2c903cc54d55a2fda501def09863a4cb7877e6dca0ba7ef6";
19182
19184
  var css64 = `._container_1xzwm_1 {
19183
19185
  width: 100%;
19184
19186
  }
@@ -19371,7 +19373,7 @@ function RenameProjectDialog({
19371
19373
  import { useState as useState31 } from "react";
19372
19374
 
19373
19375
  // admin/views/organizations/details/projects/use-add-project-members.tsx
19374
- import { useCallback as useCallback13, useContext as useContext20, useMemo as useMemo12, useState as useState30 } from "react";
19376
+ import { useCallback as useCallback14, useContext as useContext20, useMemo as useMemo13, useState as useState30 } from "react";
19375
19377
  import { toastManager as toastManager23 } from "@raystack/apsara";
19376
19378
  import { useQuery as useQuery18, useMutation as useMutation21 } from "@connectrpc/connect-query";
19377
19379
  import { FrontierServiceQueries as FrontierServiceQueries25, ListProjectUsersRequestSchema, ListRolesRequestSchema as ListRolesRequestSchema3, SetProjectMemberRoleRequestSchema } from "@raystack/proton/frontier";
@@ -19389,7 +19391,7 @@ function useAddProjectMembers({ projectId }) {
19389
19391
  select: (data) => data?.users || []
19390
19392
  }
19391
19393
  );
19392
- const nonMembers = useMemo12(() => {
19394
+ const nonMembers = useMemo13(() => {
19393
19395
  if (!projectMembers)
19394
19396
  return [];
19395
19397
  const memberSet = new Set(projectMembers.map((member) => member.id));
@@ -19399,7 +19401,7 @@ function useAddProjectMembers({ projectId }) {
19399
19401
  return aName < bName ? -1 : 1;
19400
19402
  });
19401
19403
  }, [projectMembers, orgMembersMap]);
19402
- const eligibleMembers = useMemo12(() => {
19404
+ const eligibleMembers = useMemo13(() => {
19403
19405
  return searchQuery ? nonMembers.filter((member) => {
19404
19406
  const name = member.title || member.email || "";
19405
19407
  return name.toLowerCase().includes(searchQuery.toLowerCase());
@@ -19413,14 +19415,14 @@ function useAddProjectMembers({ projectId }) {
19413
19415
  }),
19414
19416
  { enabled: !!projectId }
19415
19417
  );
19416
- const viewerRoleId = useMemo12(
19418
+ const viewerRoleId = useMemo13(
19417
19419
  () => rolesData?.roles?.find((r) => r.name === DEFAULT_ROLES.PROJECT_VIEWER)?.id ?? "",
19418
19420
  [rolesData]
19419
19421
  );
19420
19422
  const { mutateAsync: setProjectMemberRole } = useMutation21(
19421
19423
  FrontierServiceQueries25.setProjectMemberRole
19422
19424
  );
19423
- const addMember = useCallback13(
19425
+ const addMember = useCallback14(
19424
19426
  async (userId) => {
19425
19427
  if (!userId || !projectId || !viewerRoleId)
19426
19428
  return;
@@ -19691,7 +19693,7 @@ import { useInfiniteQuery as useInfiniteQuery7 } from "@connectrpc/connect-query
19691
19693
 
19692
19694
  // admin/views/organizations/details/projects/members/index.tsx
19693
19695
  import { AlertDialog as AlertDialog10, DataTable as DataTable17, Dialog as Dialog13, EmptyState as EmptyState16, Flex as Flex75 } from "@raystack/apsara";
19694
- import { useCallback as useCallback14, useMemo as useMemo13, useState as useState33 } from "react";
19696
+ import { useCallback as useCallback15, useMemo as useMemo14, useState as useState33 } from "react";
19695
19697
  import {
19696
19698
  AdminServiceQueries as AdminServiceQueries21,
19697
19699
  FrontierServiceQueries as FrontierServiceQueries28,
@@ -19702,8 +19704,8 @@ import { create as create28 } from "@bufbuild/protobuf";
19702
19704
  import { useQuery as useQuery19, useInfiniteQuery as useInfiniteQuery6 } from "@connectrpc/connect-query";
19703
19705
  import { useDebouncedState as useDebouncedState4 } from "@raystack/apsara/hooks";
19704
19706
 
19705
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-I20Wp8NTmy85/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19706
- var digest65 = "0f27208b168b6e066a29edd4db3f9d77155a3d7c1157d1dd567a83f166233d66";
19707
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-g9SRc6SdKLHE/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19708
+ var digest65 = "9120a84ad79b9f509a1ade24ae3ba965dab5aeb6fad67ee7dd896111c8b4c76f";
19707
19709
  var css65 = `._flex1_65nkt_1 {
19708
19710
  flex: 1;
19709
19711
  }
@@ -19791,8 +19793,8 @@ var css65 = `._flex1_65nkt_1 {
19791
19793
  })();
19792
19794
  var members_module_css_default3 = { "flex1": "_flex1_65nkt_1", "dialog-content": "_dialog-content_65nkt_5", "dialogContent": "_dialog-content_65nkt_5", "dialog-body": "_dialog-body_65nkt_10", "dialogBody": "_dialog-body_65nkt_10", "empty-state": "_empty-state_65nkt_14", "emptyState": "_empty-state_65nkt_14", "empty-state-subheading": "_empty-state-subheading_65nkt_18", "emptyStateSubheading": "_empty-state-subheading_65nkt_18", "table": "_table_65nkt_23", "table-wrapper": "_table-wrapper_65nkt_28", "tableWrapper": "_table-wrapper_65nkt_28", "table-header": "_table-header_65nkt_34", "tableHeader": "_table-header_65nkt_34", "table-search": "_table-search_65nkt_39", "tableSearch": "_table-search_65nkt_39", "table-content-wrapper": "_table-content-wrapper_65nkt_43", "tableContentWrapper": "_table-content-wrapper_65nkt_43", "table-action-column": "_table-action-column_65nkt_47", "tableActionColumn": "_table-action-column_65nkt_47", "table-action-dropdown": "_table-action-dropdown_65nkt_51", "tableActionDropdown": "_table-action-dropdown_65nkt_51", "action-dialog-content": "_action-dialog-content_65nkt_56", "actionDialogContent": "_action-dialog-content_65nkt_56", "add-member-dropdown": "_add-member-dropdown_65nkt_60", "addMemberDropdown": "_add-member-dropdown_65nkt_60", "add-member-dropdown-member": "_add-member-dropdown-member_65nkt_65", "addMemberDropdownMember": "_add-member-dropdown-member_65nkt_65", "add-member-dropdown-member-name": "_add-member-dropdown-member-name_65nkt_69", "addMemberDropdownMemberName": "_add-member-dropdown-member-name_65nkt_69" };
19793
19795
 
19794
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-8KIYG6onsmbZ/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19795
- var digest66 = "e06a2f4f5196507a0d9242edb6fa902e87663c0fe9d10514b130129c9f81e177";
19796
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-T5NgCz00VX5t/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19797
+ var digest66 = "d88d0709c8abb1b3dd801ff364007eb8a33130648b3814bd3286a39fe361833b";
19796
19798
  var css66 = `._flex1_65nkt_1 {
19797
19799
  flex: 1;
19798
19800
  }
@@ -20008,8 +20010,8 @@ var getColumns14 = ({
20008
20010
  ];
20009
20011
  };
20010
20012
 
20011
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-F8GX4uVCK83t/sdk/admin/views/organizations/details/projects/members/members.module.css.js
20012
- var digest67 = "dfcf13b2a889fea78a2ceabd40531b9164153b2785b315f3fb30b72c6d8eca11";
20013
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-s40VfhK8XTGh/sdk/admin/views/organizations/details/projects/members/members.module.css.js
20014
+ var digest67 = "d02bbd443aabf89cd337df12fd8db68277d655f6cb0d4a1cb5d32917fbe3eca9";
20013
20015
  var css67 = `._flex1_65nkt_1 {
20014
20016
  flex: 1;
20015
20017
  }
@@ -20211,8 +20213,8 @@ import {
20211
20213
  import { create as create27 } from "@bufbuild/protobuf";
20212
20214
  import { useMutation as useMutation23 } from "@connectrpc/connect-query";
20213
20215
 
20214
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-52pqJd6pgSGo/sdk/admin/views/organizations/details/projects/members/members.module.css.js
20215
- var digest68 = "0c21947bd46cfdcb2a448538e0357d3a638323c6237d77a9235b76bc3e6fe837";
20216
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-aXJwAe390gEw/sdk/admin/views/organizations/details/projects/members/members.module.css.js
20217
+ var digest68 = "e0bd377dec1206e9d48cfee547fa28d108fb2574173be2d6b395da7fc5586dbc";
20216
20218
  var css68 = `._flex1_65nkt_1 {
20217
20219
  flex: 1;
20218
20220
  }
@@ -20416,8 +20418,8 @@ import {
20416
20418
  Text as Text56
20417
20419
  } from "@raystack/apsara";
20418
20420
 
20419
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-obuZ2JW4eItg/sdk/admin/views/organizations/details/projects/members/members.module.css.js
20420
- var digest69 = "5bcf5db6a4971b80aa1f325780f17ebb3f5d3ace9b571e023e401bd53c9f90cc";
20421
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-YkIrLwwaN7Q1/sdk/admin/views/organizations/details/projects/members/members.module.css.js
20422
+ var digest69 = "b445184aa9199deaf26d6b1484fe1096417088bee8ad2256fef5c56eaefd694a";
20421
20423
  var css69 = `._flex1_65nkt_1 {
20422
20424
  flex: 1;
20423
20425
  }
@@ -20648,7 +20650,7 @@ var ProjectMembersDialog = ({
20648
20650
  }
20649
20651
  );
20650
20652
  const data = infiniteData?.pages?.flatMap((page) => page?.projectUsers || []) || [];
20651
- const onTableQueryChange = useCallback14((query) => {
20653
+ const onTableQueryChange = useCallback15((query) => {
20652
20654
  const updatedQuery = {
20653
20655
  ...query,
20654
20656
  offset: 0,
@@ -20665,7 +20667,7 @@ var ProjectMembersDialog = ({
20665
20667
  rqlRequest: updatedRQLRequest
20666
20668
  });
20667
20669
  }, []);
20668
- const handleLoadMore = useCallback14(async () => {
20670
+ const handleLoadMore = useCallback15(async () => {
20669
20671
  try {
20670
20672
  if (!hasNextPage)
20671
20673
  return;
@@ -20677,16 +20679,16 @@ var ProjectMembersDialog = ({
20677
20679
  async function refetchMembers() {
20678
20680
  await refetch();
20679
20681
  }
20680
- const openRemoveMemberDialog = useCallback14(
20682
+ const openRemoveMemberDialog = useCallback15(
20681
20683
  (user) => {
20682
20684
  setRemoveMemberConfig({ isOpen: true, user });
20683
20685
  },
20684
20686
  []
20685
20687
  );
20686
- const closeRemoveMemberDialog = useCallback14(() => {
20688
+ const closeRemoveMemberDialog = useCallback15(() => {
20687
20689
  setRemoveMemberConfig({ isOpen: false, user: null });
20688
20690
  }, []);
20689
- const columns = useMemo13(
20691
+ const columns = useMemo14(
20690
20692
  () => getColumns14({
20691
20693
  roles: projectRoles,
20692
20694
  updateRoleHandle: updateRoleDialogHandle2,
@@ -20833,7 +20835,7 @@ function OrganizationProjectsView() {
20833
20835
  });
20834
20836
  const [tableQuery, setTableQuery] = useState34(INITIAL_QUERY7);
20835
20837
  const title = `${t.project({ plural: true, case: "capital" })} | ${organization?.title} | ${t.organization({ plural: true, case: "capital" })}`;
20836
- const computedQuery = useMemo14(() => {
20838
+ const computedQuery = useMemo15(() => {
20837
20839
  const tempQuery = transformDataTableQueryToRQLRequest(tableQuery, TRANSFORM_OPTIONS3);
20838
20840
  return {
20839
20841
  ...tempQuery,
@@ -20941,8 +20943,8 @@ function OrganizationProjectsView() {
20941
20943
  // admin/views/organizations/details/invoices/index.tsx
20942
20944
  import { DataTable as DataTable19, EmptyState as EmptyState18, Flex as Flex77 } from "@raystack/apsara";
20943
20945
 
20944
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-jNY8osZrRD3F/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
20945
- var digest70 = "410a06df6203c187715b104642225d89dbb091f3a3610cd81d0e790a5507e226";
20946
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-sQW9HsgGfJ17/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
20947
+ var digest70 = "a443da42f2f57fee67ad607d791c13cfc86466017871338ef322c0891ce3410b";
20946
20948
  var css70 = `._empty-state_ct7gw_1 {
20947
20949
  height: 100%;
20948
20950
  }
@@ -20986,10 +20988,10 @@ var css70 = `._empty-state_ct7gw_1 {
20986
20988
  var invoices_module_css_default4 = { "empty-state": "_empty-state_ct7gw_1", "emptyState": "_empty-state_ct7gw_1", "empty-state-subheading": "_empty-state-subheading_ct7gw_5", "emptyStateSubheading": "_empty-state-subheading_ct7gw_5", "table": "_table_ct7gw_10", "table-wrapper": "_table-wrapper_ct7gw_15", "tableWrapper": "_table-wrapper_ct7gw_15", "table-header": "_table-header_ct7gw_21", "tableHeader": "_table-header_ct7gw_21", "first-column": "_first-column_ct7gw_26", "firstColumn": "_first-column_ct7gw_26" };
20987
20989
 
20988
20990
  // admin/views/organizations/details/invoices/index.tsx
20989
- import { useContext as useContext22, useEffect as useEffect17, useMemo as useMemo15, useState as useState35 } from "react";
20991
+ import { useContext as useContext22, useEffect as useEffect17, useMemo as useMemo16, useState as useState35 } from "react";
20990
20992
 
20991
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-PWei9Z5Dzwzl/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
20992
- var digest71 = "18a14e8b97bbc9bf7eea02e96898cbadbd58f2b010e018b493d9508fbee024cc";
20993
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-GDCx4pECta92/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
20994
+ var digest71 = "b6e1de11f202e6525bd339ee94b85891030261ec91305e112ee2c8e00a7c9798";
20993
20995
  var css71 = `._empty-state_ct7gw_1 {
20994
20996
  height: 100%;
20995
20997
  }
@@ -21180,7 +21182,7 @@ function OrganizationInvoicesView() {
21180
21182
  } = search;
21181
21183
  const [tableQuery, setTableQuery] = useState35(INITIAL_QUERY8);
21182
21184
  const title = `Invoices | ${organization?.title} | ${t.organization({ plural: true, case: "capital" })}`;
21183
- const computedQuery = useMemo15(() => {
21185
+ const computedQuery = useMemo16(() => {
21184
21186
  const tempQuery = transformDataTableQueryToRQLRequest(
21185
21187
  convertAmountFiltersToCents(tableQuery),
21186
21188
  TRANSFORM_OPTIONS4
@@ -21269,8 +21271,8 @@ function OrganizationInvoicesView() {
21269
21271
  // admin/views/organizations/details/tokens/index.tsx
21270
21272
  import { DataTable as DataTable20, EmptyState as EmptyState19, Flex as Flex79 } from "@raystack/apsara";
21271
21273
 
21272
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-YB9R5dl03YJq/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
21273
- var digest72 = "c7500911f76de95e51b2510c03a04e1eb6be1d13f5ec8fc174dc036ef4c053f1";
21274
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-Wr1MHzj6iPN5/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
21275
+ var digest72 = "304eaf957df7bb411b8c27e90b1310392b02752ed68d51293c23ddfebaf613d1";
21274
21276
  var css72 = `._empty-state_1mf09_1 {
21275
21277
  height: 100%;
21276
21278
  }
@@ -21326,12 +21328,12 @@ var tokens_module_css_default = { "empty-state": "_empty-state_1mf09_1", "emptyS
21326
21328
 
21327
21329
  // admin/views/organizations/details/tokens/index.tsx
21328
21330
  import { CoinIcon as CoinIcon2 } from "@raystack/apsara/icons";
21329
- import { useContext as useContext23, useEffect as useEffect18, useMemo as useMemo16, useState as useState36 } from "react";
21331
+ import { useContext as useContext23, useEffect as useEffect18, useMemo as useMemo17, useState as useState36 } from "react";
21330
21332
  import { FrontierServiceQueries as FrontierServiceQueries30 } from "@raystack/proton/frontier";
21331
21333
  import { useInfiniteQuery as useInfiniteQuery9 } from "@connectrpc/connect-query";
21332
21334
 
21333
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-PTrVl27Gu6ZE/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
21334
- var digest73 = "bf62484534f05c7c528c9a088984cef68c86687263cc1754acbc61802935036f";
21335
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-NBkjt8T5CQJC/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
21336
+ var digest73 = "0a266bf670c014463a94d9326ad2192e2e44fe61899ca906c5ea3f09e2e8610b";
21335
21337
  var css73 = `._empty-state_1mf09_1 {
21336
21338
  height: 100%;
21337
21339
  }
@@ -21529,7 +21531,7 @@ function OrganizationTokensView() {
21529
21531
  } = search;
21530
21532
  const [tableQuery, setTableQuery] = useState36(INITIAL_QUERY9);
21531
21533
  const title = `Tokens | ${organization?.title} | ${t.organization({ plural: true, case: "capital" })}`;
21532
- const computedQuery = useMemo16(() => {
21534
+ const computedQuery = useMemo17(() => {
21533
21535
  const tempQuery = transformDataTableQueryToRQLRequest(tableQuery, TRANSFORM_OPTIONS5);
21534
21536
  return {
21535
21537
  ...tempQuery,
@@ -21578,7 +21580,7 @@ function OrganizationTokensView() {
21578
21580
  setSearchVisibility(false);
21579
21581
  };
21580
21582
  }, [setSearchVisibility, onSearchChange]);
21581
- const columns = useMemo16(() => getColumns16({ t }), [t]);
21583
+ const columns = useMemo17(() => getColumns16({ t }), [t]);
21582
21584
  return /* @__PURE__ */ jsxs85(Flex79, { justify: "center", children: [
21583
21585
  /* @__PURE__ */ jsx109(PageTitle, { title }),
21584
21586
  /* @__PURE__ */ jsx109(
@@ -21614,8 +21616,8 @@ function OrganizationTokensView() {
21614
21616
  // admin/views/organizations/details/apis/index.tsx
21615
21617
  import { DataTable as DataTable21, EmptyState as EmptyState20, Flex as Flex81 } from "@raystack/apsara";
21616
21618
 
21617
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-dajztF9kDs8g/sdk/admin/views/organizations/details/apis/apis.module.css.js
21618
- var digest74 = "93f4c408d03b3d2acfc53febd056903e76f62c70414c72b42d2cc581ae9e78d9";
21619
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-JQDCHO7n5yjq/sdk/admin/views/organizations/details/apis/apis.module.css.js
21620
+ var digest74 = "4c134fb4d91236302f5cc4f7d223ff10ebdd4ab47d73f9d97b100267ae976415";
21619
21621
  var css74 = `._empty-state_r9k2f_1 {
21620
21622
  height: 100%;
21621
21623
  }
@@ -21694,14 +21696,14 @@ var css74 = `._empty-state_r9k2f_1 {
21694
21696
  var apis_module_css_default = { "empty-state": "_empty-state_r9k2f_1", "emptyState": "_empty-state_r9k2f_1", "empty-state-subheading": "_empty-state-subheading_r9k2f_5", "emptyStateSubheading": "_empty-state-subheading_r9k2f_5", "table": "_table_r9k2f_10", "table-wrapper": "_table-wrapper_r9k2f_15", "tableWrapper": "_table-wrapper_r9k2f_15", "table-header": "_table-header_r9k2f_21", "tableHeader": "_table-header_r9k2f_21", "first-column": "_first-column_r9k2f_26", "firstColumn": "_first-column_r9k2f_26", "details-dialog": "_details-dialog_r9k2f_30", "detailsDialog": "_details-dialog_r9k2f_30", "skeleton": "_skeleton_r9k2f_38", "tab-root": "_tab-root_r9k2f_42", "tabRoot": "_tab-root_r9k2f_42", "tab-content": "_tab-content_r9k2f_47", "tabContent": "_tab-content_r9k2f_47", "list-item": "_list-item_r9k2f_52", "listItem": "_list-item_r9k2f_52", "dialog-body": "_dialog-body_r9k2f_60", "dialogBody": "_dialog-body_r9k2f_60" };
21695
21697
 
21696
21698
  // admin/views/organizations/details/apis/index.tsx
21697
- import { useCallback as useCallback16, useContext as useContext24, useEffect as useEffect20, useMemo as useMemo18, useState as useState37 } from "react";
21699
+ import { useCallback as useCallback17, useContext as useContext24, useEffect as useEffect20, useMemo as useMemo19, useState as useState37 } from "react";
21698
21700
 
21699
21701
  // admin/views/organizations/details/apis/columns.tsx
21700
21702
  import { Text as Text58 } from "@raystack/apsara";
21701
21703
  import dayjs17 from "dayjs";
21702
21704
 
21703
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-axMAGtlRnaOy/sdk/admin/views/organizations/details/apis/apis.module.css.js
21704
- var digest75 = "229f46960c1ce446d839bf0a8f3f7127922744dbf16c921419e8b5a3aae43b66";
21705
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-HBlZTeSpLl5T/sdk/admin/views/organizations/details/apis/apis.module.css.js
21706
+ var digest75 = "45de98c3f58eff6d10cd963de05ec88dd4ce1b6df8db180309cc20066e601f9a";
21705
21707
  var css75 = `._empty-state_r9k2f_1 {
21706
21708
  height: 100%;
21707
21709
  }
@@ -21825,8 +21827,8 @@ function getColumns17(options) {
21825
21827
  // admin/views/organizations/details/apis/details-dialog.tsx
21826
21828
  import { Dialog as Dialog14, Flex as Flex80, Skeleton as Skeleton4, Tabs, Text as Text59, toastManager as toastManager26 } from "@raystack/apsara";
21827
21829
 
21828
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-1bfqDn5GILMp/sdk/admin/views/organizations/details/apis/apis.module.css.js
21829
- var digest76 = "900995c855bb450a316e8b4c32b5909999f41389d60af9e8113dc1c5126b8ca3";
21830
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-W3HEKEJvdB5s/sdk/admin/views/organizations/details/apis/apis.module.css.js
21831
+ var digest76 = "9d320ee92003233b9c0d5d160d313f0fbff9e14459b7fd20041aae9829b7ed25";
21830
21832
  var css76 = `._empty-state_r9k2f_1 {
21831
21833
  height: 100%;
21832
21834
  }
@@ -21905,7 +21907,7 @@ var css76 = `._empty-state_r9k2f_1 {
21905
21907
  var apis_module_css_default3 = { "empty-state": "_empty-state_r9k2f_1", "emptyState": "_empty-state_r9k2f_1", "empty-state-subheading": "_empty-state-subheading_r9k2f_5", "emptyStateSubheading": "_empty-state-subheading_r9k2f_5", "table": "_table_r9k2f_10", "table-wrapper": "_table-wrapper_r9k2f_15", "tableWrapper": "_table-wrapper_r9k2f_15", "table-header": "_table-header_r9k2f_21", "tableHeader": "_table-header_r9k2f_21", "first-column": "_first-column_r9k2f_26", "firstColumn": "_first-column_r9k2f_26", "details-dialog": "_details-dialog_r9k2f_30", "detailsDialog": "_details-dialog_r9k2f_30", "skeleton": "_skeleton_r9k2f_38", "tab-root": "_tab-root_r9k2f_42", "tabRoot": "_tab-root_r9k2f_42", "tab-content": "_tab-content_r9k2f_47", "tabContent": "_tab-content_r9k2f_47", "list-item": "_list-item_r9k2f_52", "listItem": "_list-item_r9k2f_52", "dialog-body": "_dialog-body_r9k2f_60", "dialogBody": "_dialog-body_r9k2f_60" };
21906
21908
 
21907
21909
  // admin/views/organizations/details/apis/details-dialog.tsx
21908
- import { useCallback as useCallback15, useEffect as useEffect19, useMemo as useMemo17 } from "react";
21910
+ import { useCallback as useCallback16, useEffect as useEffect19, useMemo as useMemo18 } from "react";
21909
21911
  import { useQuery as useQuery20 } from "@connectrpc/connect-query";
21910
21912
  import {
21911
21913
  FrontierServiceQueries as FrontierServiceQueries31,
@@ -21920,14 +21922,14 @@ var ServiceUserDetailsDialog = ({
21920
21922
  }) => {
21921
21923
  const t = useTerminology();
21922
21924
  const { id = "", orgId = "", title = "" } = serviceUser || {};
21923
- const projectsRequest = useMemo17(
21925
+ const projectsRequest = useMemo18(
21924
21926
  () => create29(ListServiceUserProjectsRequestSchema, {
21925
21927
  orgId,
21926
21928
  id
21927
21929
  }),
21928
21930
  [orgId, id]
21929
21931
  );
21930
- const tokensRequest = useMemo17(
21932
+ const tokensRequest = useMemo18(
21931
21933
  () => create29(ListServiceUserTokensRequestSchema, {
21932
21934
  orgId,
21933
21935
  id
@@ -21968,7 +21970,7 @@ var ServiceUserDetailsDialog = ({
21968
21970
  console.error("Unable to fetch tokens:", tokenError);
21969
21971
  }
21970
21972
  }, [projectError, tokenError]);
21971
- const onOpenChange = useCallback15(
21973
+ const onOpenChange = useCallback16(
21972
21974
  (val) => {
21973
21975
  if (!val) {
21974
21976
  onClose();
@@ -22086,7 +22088,7 @@ function OrganizationApisView() {
22086
22088
  query: searchQuery
22087
22089
  } = search;
22088
22090
  const [tableQuery, setTableQuery] = useState37(INITIAL_QUERY10);
22089
- const computedQuery = useMemo18(() => {
22091
+ const computedQuery = useMemo19(() => {
22090
22092
  const tempQuery = transformDataTableQueryToRQLRequest(tableQuery, TRANSFORM_OPTIONS6);
22091
22093
  return {
22092
22094
  ...tempQuery,
@@ -22144,10 +22146,10 @@ function OrganizationApisView() {
22144
22146
  }
22145
22147
  };
22146
22148
  const loading = isLoading || isFetchingNextPage;
22147
- const onDialogClose = useCallback16(() => {
22149
+ const onDialogClose = useCallback17(() => {
22148
22150
  setSelectedServiceUser(null);
22149
22151
  }, []);
22150
- const onRowClick = useCallback16(
22152
+ const onRowClick = useCallback17(
22151
22153
  (row) => {
22152
22154
  setSelectedServiceUser(row);
22153
22155
  },
@@ -22156,7 +22158,7 @@ function OrganizationApisView() {
22156
22158
  if (isError) {
22157
22159
  console.error("ConnectRPC Error:", error);
22158
22160
  }
22159
- const columns = useMemo18(
22161
+ const columns = useMemo19(
22160
22162
  () => getColumns17({
22161
22163
  groupCountMap: infiniteData ? getGroupCountMapFromFirstPage(infiniteData) : {},
22162
22164
  t
@@ -22205,7 +22207,7 @@ function OrganizationApisView() {
22205
22207
 
22206
22208
  // admin/views/organizations/details/pat/index.tsx
22207
22209
  import { DataTable as DataTable22, EmptyState as EmptyState21, Flex as Flex84 } from "@raystack/apsara";
22208
- import { useCallback as useCallback17, useContext as useContext25, useEffect as useEffect21, useMemo as useMemo20, useState as useState38 } from "react";
22210
+ import { useCallback as useCallback18, useContext as useContext25, useEffect as useEffect21, useMemo as useMemo21, useState as useState38 } from "react";
22209
22211
  import { useInfiniteQuery as useInfiniteQuery11, useQuery as useQuery22 } from "@connectrpc/connect-query";
22210
22212
  import {
22211
22213
  AdminServiceQueries as AdminServiceQueries24,
@@ -22231,8 +22233,8 @@ var getInitials = function(name = "") {
22231
22233
  return initials;
22232
22234
  };
22233
22235
 
22234
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-Ei3kHEMOap53/sdk/admin/views/organizations/details/pat/pat.module.css.js
22235
- var digest77 = "295e0c383fbc17b19742dfe6b9faacdf6d250005e9f51d14e2b1e6553bb0b512";
22236
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-lZgBNyTK5LLO/sdk/admin/views/organizations/details/pat/pat.module.css.js
22237
+ var digest77 = "aee190974699b36672e9fdc0c5f1729d2535b2c83caddb83d3d6a7cf93f8563b";
22236
22238
  var css77 = `._empty-state_1xap9_1 {
22237
22239
  height: 100%;
22238
22240
  }
@@ -22401,7 +22403,7 @@ function getColumns18({
22401
22403
  }
22402
22404
 
22403
22405
  // admin/views/organizations/details/pat/components/pat-details-dialog.tsx
22404
- import { useMemo as useMemo19 } from "react";
22406
+ import { useMemo as useMemo20 } from "react";
22405
22407
  import {
22406
22408
  Dialog as Dialog15,
22407
22409
  Flex as Flex83,
@@ -22414,8 +22416,8 @@ import {
22414
22416
  FrontierServiceQueries as FrontierServiceQueries32
22415
22417
  } from "@raystack/proton/frontier";
22416
22418
 
22417
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-bLntWQ2yy3ah/sdk/admin/views/organizations/details/pat/components/pat-details-dialog.module.css.js
22418
- var digest78 = "e94e5f8c65993208d743badc398830c15291ace54ef913d1c0dbc63bac83dd1b";
22419
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-lywV4JSXhqps/sdk/admin/views/organizations/details/pat/components/pat-details-dialog.module.css.js
22420
+ var digest78 = "d8866f36abe7eba706a2e117524b19c7c0e9d8226ddfbfda7ec11aa8bdb7f698";
22419
22421
  var css78 = `._details-dialog_1dwlo_1 {
22420
22422
  width: 100%;
22421
22423
  max-width: 400px;
@@ -22489,16 +22491,16 @@ function PatDetailsDialog({
22489
22491
  }) {
22490
22492
  const t = useTerminology();
22491
22493
  const open = pat !== null;
22492
- const projectScope = useMemo19(
22494
+ const projectScope = useMemo20(
22493
22495
  () => pat?.scopes?.find((s) => s.resourceType === SCOPES.PROJECT),
22494
22496
  [pat]
22495
22497
  );
22496
- const orgScope = useMemo19(
22498
+ const orgScope = useMemo20(
22497
22499
  () => pat?.scopes?.find((s) => s.resourceType === SCOPES.ORG),
22498
22500
  [pat]
22499
22501
  );
22500
- const scopeProjectIds = useMemo19(() => projectScope?.resourceIds ?? [], [projectScope]);
22501
- const scopeProjects = useMemo19(
22502
+ const scopeProjectIds = useMemo20(() => projectScope?.resourceIds ?? [], [projectScope]);
22503
+ const scopeProjects = useMemo20(
22502
22504
  () => scopeProjectIds.map((id) => projectsMap[id]).filter((p) => Boolean(p)),
22503
22505
  [scopeProjectIds, projectsMap]
22504
22506
  );
@@ -22507,7 +22509,7 @@ function PatDetailsDialog({
22507
22509
  { scopes: [SCOPES.ORG, SCOPES.PROJECT] },
22508
22510
  { enabled: open }
22509
22511
  );
22510
- const rolesMap = useMemo19(() => {
22512
+ const rolesMap = useMemo20(() => {
22511
22513
  const map = {};
22512
22514
  (rolesData?.roles ?? []).forEach((role) => {
22513
22515
  if (role.id)
@@ -22606,8 +22608,8 @@ function PatDetailsDialog({
22606
22608
  ] }) });
22607
22609
  }
22608
22610
 
22609
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2410-g5d9jQJiQzHq/sdk/admin/views/organizations/details/pat/pat.module.css.js
22610
- var digest79 = "779d4b2de4e4b3af2c63a037ffcb6da856dcad8a89d07fd4e437bc4f2eaac3fd";
22611
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2422-xdMsptwJ4sWD/sdk/admin/views/organizations/details/pat/pat.module.css.js
22612
+ var digest79 = "12f417368d53e239d4b510f660344dd8d2577eec8040de24d2eb0a70a5cc5e5f";
22611
22613
  var css79 = `._empty-state_1xap9_1 {
22612
22614
  height: 100%;
22613
22615
  }
@@ -22737,7 +22739,7 @@ function OrganizationPatView() {
22737
22739
  const [tableQuery, setTableQuery] = useState38(INITIAL_QUERY11);
22738
22740
  const [selectedPat, setSelectedPat] = useState38(null);
22739
22741
  const title = `PAT | ${organization?.title} | ${t.organization({ plural: true, case: "capital" })}`;
22740
- const computedQuery = useMemo20(() => {
22742
+ const computedQuery = useMemo21(() => {
22741
22743
  const tempQuery = transformDataTableQueryToRQLRequest(
22742
22744
  tableQuery,
22743
22745
  TRANSFORM_OPTIONS7
@@ -22776,7 +22778,7 @@ function OrganizationPatView() {
22776
22778
  select: (data2) => data2?.projects || []
22777
22779
  }
22778
22780
  );
22779
- const projectsMap = useMemo20(
22781
+ const projectsMap = useMemo21(
22780
22782
  () => projects.reduce(
22781
22783
  (acc, project) => {
22782
22784
  if (project.id)
@@ -22787,7 +22789,7 @@ function OrganizationPatView() {
22787
22789
  ),
22788
22790
  [projects]
22789
22791
  );
22790
- const data = useMemo20(
22792
+ const data = useMemo21(
22791
22793
  () => infiniteData?.pages?.flatMap((page) => page?.organizationPats ?? []) ?? [],
22792
22794
  [infiniteData]
22793
22795
  );
@@ -22809,17 +22811,17 @@ function OrganizationPatView() {
22809
22811
  setSearchVisibility(false);
22810
22812
  };
22811
22813
  }, [setSearchVisibility, onSearchChange]);
22812
- const columns = useMemo20(
22814
+ const columns = useMemo21(
22813
22815
  () => getColumns18({ projectsMap }),
22814
22816
  [projectsMap]
22815
22817
  );
22816
- const onRowClick = useCallback17(
22818
+ const onRowClick = useCallback18(
22817
22819
  (row) => {
22818
22820
  setSelectedPat(row);
22819
22821
  },
22820
22822
  []
22821
22823
  );
22822
- const onDialogClose = useCallback17(() => {
22824
+ const onDialogClose = useCallback18(() => {
22823
22825
  setSelectedPat(null);
22824
22826
  }, []);
22825
22827
  return /* @__PURE__ */ jsxs90(Flex84, { justify: "center", children: [