@raystack/frontier 0.92.1 → 0.93.0
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.
- package/admin/dist/index.js +686 -678
- package/admin/dist/index.mjs +258 -251
- package/package.json +2 -2
- package/react/dist/index.js +158 -158
- package/react/dist/index.mjs +158 -158
package/admin/dist/index.js
CHANGED
|
@@ -226,8 +226,8 @@ function converBillingAddressToString(address) {
|
|
|
226
226
|
// admin/views/roles/columns.tsx
|
|
227
227
|
var import_apsara = require("@raystack/apsara");
|
|
228
228
|
|
|
229
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
230
|
-
var digest = "
|
|
229
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-pZxG1SveoO2i/sdk/admin/views/roles/roles.module.css.js
|
|
230
|
+
var digest = "a55bbac96227b5666a26d2f5644a44ecb89df73421ab2be3bad4d97e84534db4";
|
|
231
231
|
var css = `._tableRoot_4yb15_1 {
|
|
232
232
|
width: 100%;
|
|
233
233
|
}
|
|
@@ -312,8 +312,8 @@ var import_apsara3 = require("@raystack/apsara");
|
|
|
312
312
|
// admin/components/PageHeader.tsx
|
|
313
313
|
var import_apsara2 = require("@raystack/apsara");
|
|
314
314
|
|
|
315
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
316
|
-
var digest2 = "
|
|
315
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-g8DbsDGnt8I4/sdk/admin/components/page-header.module.css.js
|
|
316
|
+
var digest2 = "bf5be7e8abf6be1e10f7d9c3fad07cd5db4b48f8b84be8db22f925068fb570a2";
|
|
317
317
|
var css2 = `._breadcrumb_1kaun_1 {
|
|
318
318
|
list-style: none;
|
|
319
319
|
padding: 0;
|
|
@@ -419,8 +419,8 @@ function PageHeader({
|
|
|
419
419
|
);
|
|
420
420
|
}
|
|
421
421
|
|
|
422
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
423
|
-
var digest3 = "
|
|
422
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-iGcvYKQgATKd/sdk/admin/views/roles/roles.module.css.js
|
|
423
|
+
var digest3 = "740eee732e49e0272c32776eafcdec9b5574e0f310f2e23dcc9f127631223a23";
|
|
424
424
|
var css3 = `._tableRoot_4yb15_1 {
|
|
425
425
|
width: 100%;
|
|
426
426
|
}
|
|
@@ -906,8 +906,8 @@ function PageTitle({ title, appName }) {
|
|
|
906
906
|
return null;
|
|
907
907
|
}
|
|
908
908
|
|
|
909
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
910
|
-
var digest4 = "
|
|
909
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-UiwT7XMkzykV/sdk/admin/views/roles/roles.module.css.js
|
|
910
|
+
var digest4 = "238eb9cb0d6116128b1fc4f04624b1e4cb5d32245920dbf15341454b8eac2fda";
|
|
911
911
|
var css4 = `._tableRoot_4yb15_1 {
|
|
912
912
|
width: 100%;
|
|
913
913
|
}
|
|
@@ -1085,8 +1085,8 @@ var import_react5 = require("react");
|
|
|
1085
1085
|
// admin/views/invoices/navbar.tsx
|
|
1086
1086
|
var import_apsara7 = require("@raystack/apsara");
|
|
1087
1087
|
|
|
1088
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1089
|
-
var digest5 = "
|
|
1088
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-nK2SkuuhAHLu/sdk/admin/views/invoices/invoices.module.css.js
|
|
1089
|
+
var digest5 = "cc0bedc62977d53c63c853c3ef6215dc29cdba18bf9190f35ebac85fdcaa5b23";
|
|
1090
1090
|
var css5 = `._navbar_9c4wr_1 {
|
|
1091
1091
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
1092
1092
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -1204,8 +1204,8 @@ var InvoicesNavabar = ({ searchQuery }) => {
|
|
|
1204
1204
|
] });
|
|
1205
1205
|
};
|
|
1206
1206
|
|
|
1207
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1208
|
-
var digest6 = "
|
|
1207
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-kUOT7r2JLSc7/sdk/admin/views/invoices/invoices.module.css.js
|
|
1208
|
+
var digest6 = "70ebab900d847e4083a3c005e94d6147958abc698649d14667090a4b1407bfca";
|
|
1209
1209
|
var css6 = `._navbar_9c4wr_1 {
|
|
1210
1210
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
1211
1211
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -1671,8 +1671,8 @@ var getColumns3 = (onNavigateToPrices) => {
|
|
|
1671
1671
|
// admin/views/products/header.tsx
|
|
1672
1672
|
var import_apsara11 = require("@raystack/apsara");
|
|
1673
1673
|
|
|
1674
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1675
|
-
var digest7 = "
|
|
1674
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-oPvFeKzYm9Ys/sdk/admin/views/products/products.module.css.js
|
|
1675
|
+
var digest7 = "8fbceb5aa8bb83c8fd0b151d98db7e1eea48a76004c3a170abd78736c501d7aa";
|
|
1676
1676
|
var css7 = `._tableRoot_1lzjd_1 {
|
|
1677
1677
|
width: 100%;
|
|
1678
1678
|
}
|
|
@@ -1743,8 +1743,8 @@ var ProductsHeader = ({
|
|
|
1743
1743
|
);
|
|
1744
1744
|
};
|
|
1745
1745
|
|
|
1746
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1747
|
-
var digest8 = "
|
|
1746
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-G3mQ5Ly8VHoz/sdk/admin/views/products/products.module.css.js
|
|
1747
|
+
var digest8 = "1dd6dc2e4414b9cd81989adccc9e2a67906b5dd7eed25b0798a6978bdc66dcf4";
|
|
1748
1748
|
var css8 = `._tableRoot_1lzjd_1 {
|
|
1749
1749
|
width: 100%;
|
|
1750
1750
|
}
|
|
@@ -1796,8 +1796,8 @@ var products_module_css_default2 = { "tableRoot": "_tableRoot_1lzjd_1", "tableWr
|
|
|
1796
1796
|
// admin/views/products/details.tsx
|
|
1797
1797
|
var import_apsara12 = require("@raystack/apsara");
|
|
1798
1798
|
|
|
1799
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1800
|
-
var digest9 = "
|
|
1799
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-u3WcGHI0l26i/sdk/admin/views/products/products.module.css.js
|
|
1800
|
+
var digest9 = "59c7e735db1419369437426add7f4fb20ead81f1dd67884e622273e9ea20c4c9";
|
|
1801
1801
|
var css9 = `._tableRoot_1lzjd_1 {
|
|
1802
1802
|
width: 100%;
|
|
1803
1803
|
}
|
|
@@ -2143,8 +2143,8 @@ function CpuChipIcon(props) {
|
|
|
2143
2143
|
);
|
|
2144
2144
|
}
|
|
2145
2145
|
|
|
2146
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2147
|
-
var digest10 = "
|
|
2146
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-CplPVwxZGQ7m/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
2147
|
+
var digest10 = "931d1a9696345fb0df141161d1e150d4e2fe5f829b61d0f8499505d83e0a0ab2";
|
|
2148
2148
|
var css10 = `._navbar_sfza7_1 {
|
|
2149
2149
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
2150
2150
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -2360,8 +2360,8 @@ var Navbar = ({ searchQuery, onExportCsv }) => {
|
|
|
2360
2360
|
};
|
|
2361
2361
|
var navbar_default = Navbar;
|
|
2362
2362
|
|
|
2363
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2364
|
-
var digest11 = "
|
|
2363
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-DQgePzCcelEV/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
2364
|
+
var digest11 = "311c150a3880a02645745afee6db578a3bde5ab92351c4a3e7221ef83f464662";
|
|
2365
2365
|
var css11 = `._navbar_sfza7_1 {
|
|
2366
2366
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
2367
2367
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -2471,8 +2471,8 @@ var audit_logs_module_css_default2 = { "navbar": "_navbar_sfza7_1", "table": "_t
|
|
|
2471
2471
|
var import_apsara18 = require("@raystack/apsara");
|
|
2472
2472
|
var import_dayjs3 = __toESM(require("dayjs"));
|
|
2473
2473
|
|
|
2474
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2475
|
-
var digest12 = "
|
|
2474
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-4x2ppZt6ts8m/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
2475
|
+
var digest12 = "8fc92e93a89dbe0e7bd12fd79b0b63df779d5abbd46f441e7b787eca58fc3732";
|
|
2476
2476
|
var css12 = `._navbar_sfza7_1 {
|
|
2477
2477
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
2478
2478
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -2734,8 +2734,8 @@ var import_frontier7 = require("@raystack/proton/frontier");
|
|
|
2734
2734
|
var import_apsara22 = require("@raystack/apsara");
|
|
2735
2735
|
var import_apsara23 = require("@raystack/apsara");
|
|
2736
2736
|
|
|
2737
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2738
|
-
var digest13 = "
|
|
2737
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-o80yxVlsGkc2/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
2738
|
+
var digest13 = "d086d096cf9abfb4623b5e5d2bde0966cf08b29da8c29243564562a0b9647040";
|
|
2739
2739
|
var css13 = `._navbar_sfza7_1 {
|
|
2740
2740
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
2741
2741
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -2872,8 +2872,8 @@ function MapIcon(props) {
|
|
|
2872
2872
|
// admin/views/audit-logs/sidepanel-log-dialog.tsx
|
|
2873
2873
|
var import_apsara19 = require("@raystack/apsara");
|
|
2874
2874
|
|
|
2875
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2876
|
-
var digest14 = "
|
|
2875
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-g4h7KYJV6mrq/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
2876
|
+
var digest14 = "64e9f354eb7e4099073b786d683ef1c4697ea40275fbc2261673ea57d8484931";
|
|
2877
2877
|
var css14 = `._navbar_sfza7_1 {
|
|
2878
2878
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
2879
2879
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -3076,8 +3076,8 @@ function SidePanelLogDialog(props) {
|
|
|
3076
3076
|
// admin/views/audit-logs/sidepanel-list-link.tsx
|
|
3077
3077
|
var import_apsara20 = require("@raystack/apsara");
|
|
3078
3078
|
|
|
3079
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3080
|
-
var digest15 = "
|
|
3079
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-NSdiaVrzs15I/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
3080
|
+
var digest15 = "97ad76f86c1040d2539a7eb84d18545830460cf42f0ebca24366c1d43d49b6db";
|
|
3081
3081
|
var css15 = `._navbar_sfza7_1 {
|
|
3082
3082
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
3083
3083
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -3218,8 +3218,8 @@ function SidepanelListItemLink({
|
|
|
3218
3218
|
// admin/views/audit-logs/sidepanel-list-id.tsx
|
|
3219
3219
|
var import_apsara21 = require("@raystack/apsara");
|
|
3220
3220
|
|
|
3221
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3222
|
-
var digest16 = "
|
|
3221
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-KCTw4jTfKYxm/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
3222
|
+
var digest16 = "a3b689dbdbdcddc6e402147912b6d327c02d7943b406781008afbc69ef8bee89";
|
|
3223
3223
|
var css16 = `._navbar_sfza7_1 {
|
|
3224
3224
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
3225
3225
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -3697,8 +3697,8 @@ var getColumns6 = ({ onNavigateToOrg } = {}) => {
|
|
|
3697
3697
|
];
|
|
3698
3698
|
};
|
|
3699
3699
|
|
|
3700
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3701
|
-
var digest17 = "
|
|
3700
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-SAJS2TNfYwKN/sdk/admin/views/admins/admins.module.css.js
|
|
3701
|
+
var digest17 = "c7c97cd5b3fc2723429e7defa1acc556e8f5868e2622371f2c55ef912667cb5e";
|
|
3702
3702
|
var css17 = `._tableRoot_yd6a0_1 {
|
|
3703
3703
|
width: 100%;
|
|
3704
3704
|
}
|
|
@@ -3854,8 +3854,8 @@ var getColumns7 = ({ onSelectPlan } = {}) => {
|
|
|
3854
3854
|
// admin/views/plans/header.tsx
|
|
3855
3855
|
var import_apsara28 = require("@raystack/apsara");
|
|
3856
3856
|
|
|
3857
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3858
|
-
var digest18 = "
|
|
3857
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-WTisCsa2YF3d/sdk/admin/views/plans/plans.module.css.js
|
|
3858
|
+
var digest18 = "d4388428491a2cb37e7e45469d736f44d05ac959653dfe660026621017451201";
|
|
3859
3859
|
var css18 = `._tableRoot_1d6xr_1 {
|
|
3860
3860
|
width: 100%;
|
|
3861
3861
|
}
|
|
@@ -3908,8 +3908,8 @@ var PlanHeader = ({ header }) => {
|
|
|
3908
3908
|
);
|
|
3909
3909
|
};
|
|
3910
3910
|
|
|
3911
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3912
|
-
var digest19 = "
|
|
3911
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-3VeHrAYkzmV3/sdk/admin/views/plans/plans.module.css.js
|
|
3912
|
+
var digest19 = "6bf7ea8cb56163e821d375ce71ff2ebb05e31bb808bb33154daace6b2f66f127";
|
|
3913
3913
|
var css19 = `._tableRoot_1d6xr_1 {
|
|
3914
3914
|
width: 100%;
|
|
3915
3915
|
}
|
|
@@ -4059,8 +4059,8 @@ var import_react23 = require("react");
|
|
|
4059
4059
|
// admin/views/webhooks/webhooks/columns.tsx
|
|
4060
4060
|
var import_apsara32 = require("@raystack/apsara");
|
|
4061
4061
|
|
|
4062
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4063
|
-
var digest20 = "
|
|
4062
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-amH5KbKCXiHI/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
|
|
4063
|
+
var digest20 = "e1c11a59990f5316429a56e3e9e38358a84992566dd6393eebb3135262407263";
|
|
4064
4064
|
var css20 = `._tableRoot_h8n52_1 {
|
|
4065
4065
|
width: 100%;
|
|
4066
4066
|
}
|
|
@@ -4587,8 +4587,8 @@ var getColumns8 = ({ openEditPage, deleteWebhookMutation, enableDelete }) => {
|
|
|
4587
4587
|
// admin/views/webhooks/webhooks/header.tsx
|
|
4588
4588
|
var import_apsara33 = require("@raystack/apsara");
|
|
4589
4589
|
|
|
4590
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4591
|
-
var digest21 = "
|
|
4590
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-pGPk30RkSIeR/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
|
|
4591
|
+
var digest21 = "3fc7fb82437bfb391b5879518d0fbf574142468fba002e27a38ff63337a8a338";
|
|
4592
4592
|
var css21 = `._tableRoot_h8n52_1 {
|
|
4593
4593
|
width: 100%;
|
|
4594
4594
|
}
|
|
@@ -4670,8 +4670,8 @@ var WebhooksHeader = ({ header = pageHeader4, onOpenCreate }) => {
|
|
|
4670
4670
|
);
|
|
4671
4671
|
};
|
|
4672
4672
|
|
|
4673
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4674
|
-
var digest22 = "
|
|
4673
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-QjASn4nhzW4c/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
|
|
4674
|
+
var digest22 = "fe8f10a1a03aa21a2d49560f68082beb1c34477390e8186ef7bf03d74b267641";
|
|
4675
4675
|
var css22 = `._tableRoot_h8n52_1 {
|
|
4676
4676
|
width: 100%;
|
|
4677
4677
|
}
|
|
@@ -10328,8 +10328,8 @@ var import_apsara41 = require("@raystack/apsara");
|
|
|
10328
10328
|
// admin/views/preferences/columns.tsx
|
|
10329
10329
|
var import_apsara40 = require("@raystack/apsara");
|
|
10330
10330
|
|
|
10331
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10332
|
-
var digest23 = "
|
|
10331
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-UnukFfNzvAqp/sdk/admin/views/preferences/preferences.module.css.js
|
|
10332
|
+
var digest23 = "8c9e97aa0fd4c06e83ef3f782a6f4928f4a8acca0f0111c3ead266fac6e48332";
|
|
10333
10333
|
var css23 = `._tableRoot_j5y5o_1 {
|
|
10334
10334
|
width: 100%;
|
|
10335
10335
|
}
|
|
@@ -10411,8 +10411,8 @@ var getColumns9 = ({
|
|
|
10411
10411
|
];
|
|
10412
10412
|
};
|
|
10413
10413
|
|
|
10414
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10415
|
-
var digest24 = "
|
|
10414
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-XcCfaMNbnbpw/sdk/admin/views/preferences/preferences.module.css.js
|
|
10415
|
+
var digest24 = "bfb734d634fb5eb4d0f33c9c739835b14f5e192ffb49d87daa7cac6fd832de98";
|
|
10416
10416
|
var css24 = `._tableRoot_j5y5o_1 {
|
|
10417
10417
|
width: 100%;
|
|
10418
10418
|
}
|
|
@@ -10759,8 +10759,8 @@ var import_apsara47 = require("@raystack/apsara");
|
|
|
10759
10759
|
// admin/views/users/list/navbar.tsx
|
|
10760
10760
|
var import_apsara45 = require("@raystack/apsara");
|
|
10761
10761
|
|
|
10762
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10763
|
-
var digest25 = "
|
|
10762
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-3qjJDpHg6EyN/sdk/admin/views/users/list/list.module.css.js
|
|
10763
|
+
var digest25 = "676bf184695304c670d8095a19eb40ba267da5c2cec2e3ae5848ab64b9a64aac";
|
|
10764
10764
|
var css25 = `._navbar_1s15g_1 {
|
|
10765
10765
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
10766
10766
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -10876,23 +10876,28 @@ var defaultConfig = {
|
|
|
10876
10876
|
organization_types: []
|
|
10877
10877
|
};
|
|
10878
10878
|
|
|
10879
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10880
|
-
var digest26 = "
|
|
10881
|
-
var css26 = `._invite-users-dialog-
|
|
10879
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-3rIqiRvCVf31/sdk/admin/views/users/list/invite-users.module.css.js
|
|
10880
|
+
var digest26 = "9999dc2e0ca7d7234993bd6e24a0658d768f6a319a9876cf327b00bb98b8fde2";
|
|
10881
|
+
var css26 = `._invite-users-dialog-body_11ujx_1 {
|
|
10882
10882
|
display: flex;
|
|
10883
10883
|
flex-direction: column;
|
|
10884
10884
|
padding: var(--rs-space-9) var(--rs-space-7);
|
|
10885
10885
|
gap: var(--rs-space-7);
|
|
10886
10886
|
}
|
|
10887
10887
|
|
|
10888
|
-
._invite-users-dialog-
|
|
10888
|
+
._invite-users-dialog-label_11ujx_8 {
|
|
10889
10889
|
font-weight: var(--rs-font-weight-medium);
|
|
10890
10890
|
}
|
|
10891
10891
|
|
|
10892
|
-
._form-error-
|
|
10892
|
+
._form-error-message_11ujx_12 {
|
|
10893
10893
|
color: var(--rs-color-foreground-danger-primary);
|
|
10894
10894
|
}
|
|
10895
|
-
|
|
10895
|
+
|
|
10896
|
+
._invite-users-emails-textarea_11ujx_16 {
|
|
10897
|
+
resize: vertical;
|
|
10898
|
+
width: 100%;
|
|
10899
|
+
max-height: var(--rs-space-17);
|
|
10900
|
+
}`;
|
|
10896
10901
|
(function() {
|
|
10897
10902
|
if (typeof document === "undefined") {
|
|
10898
10903
|
return;
|
|
@@ -10904,7 +10909,7 @@ var css26 = `._invite-users-dialog-body_1fsyy_1 {
|
|
|
10904
10909
|
document.head.appendChild(el);
|
|
10905
10910
|
}
|
|
10906
10911
|
})();
|
|
10907
|
-
var invite_users_module_css_default = { "invite-users-dialog-body": "_invite-users-dialog-
|
|
10912
|
+
var invite_users_module_css_default = { "invite-users-dialog-body": "_invite-users-dialog-body_11ujx_1", "inviteUsersDialogBody": "_invite-users-dialog-body_11ujx_1", "invite-users-dialog-label": "_invite-users-dialog-label_11ujx_8", "inviteUsersDialogLabel": "_invite-users-dialog-label_11ujx_8", "form-error-message": "_form-error-message_11ujx_12", "formErrorMessage": "_form-error-message_11ujx_12", "invite-users-emails-textarea": "_invite-users-emails-textarea_11ujx_16", "inviteUsersEmailsTextarea": "_invite-users-emails-textarea_11ujx_16" };
|
|
10908
10913
|
|
|
10909
10914
|
// admin/views/users/list/invite-users.tsx
|
|
10910
10915
|
var import_connect_query13 = require("@connectrpc/connect-query");
|
|
@@ -11017,7 +11022,8 @@ var InviteUser = () => {
|
|
|
11017
11022
|
import_apsara44.TextArea,
|
|
11018
11023
|
{
|
|
11019
11024
|
...field,
|
|
11020
|
-
placeholder: "abc@example.com, xyz@example.com"
|
|
11025
|
+
placeholder: "abc@example.com, xyz@example.com",
|
|
11026
|
+
className: invite_users_module_css_default["invite-users-emails-textarea"]
|
|
11021
11027
|
}
|
|
11022
11028
|
)
|
|
11023
11029
|
}
|
|
@@ -11191,8 +11197,8 @@ var Navbar2 = ({ searchQuery, onExportUsers }) => {
|
|
|
11191
11197
|
};
|
|
11192
11198
|
var navbar_default2 = Navbar2;
|
|
11193
11199
|
|
|
11194
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11195
|
-
var digest27 = "
|
|
11200
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-qXeH1qk1dE6B/sdk/admin/views/users/list/list.module.css.js
|
|
11201
|
+
var digest27 = "79748245bc287d0728e92a8bc7c1a4091b7e7062e204a6c437d68aa607ff51f5";
|
|
11196
11202
|
var css27 = `._navbar_1s15g_1 {
|
|
11197
11203
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
11198
11204
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -11256,8 +11262,8 @@ var list_module_css_default2 = { "navbar": "_navbar_1s15g_1", "table": "_table_1
|
|
|
11256
11262
|
var import_apsara46 = require("@raystack/apsara");
|
|
11257
11263
|
var import_dayjs7 = __toESM(require("dayjs"));
|
|
11258
11264
|
|
|
11259
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11260
|
-
var digest28 = "
|
|
11265
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-awREjfuOMMlS/sdk/admin/views/users/list/list.module.css.js
|
|
11266
|
+
var digest28 = "c0a318bfce116daac54a89b0a9ba2f14ee8ab1e43477ea87122a65b96a5b4d80";
|
|
11261
11267
|
var css28 = `._navbar_1s15g_1 {
|
|
11262
11268
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
11263
11269
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -11427,7 +11433,7 @@ var NoUsers = () => {
|
|
|
11427
11433
|
}
|
|
11428
11434
|
);
|
|
11429
11435
|
};
|
|
11430
|
-
var DEFAULT_SORT3 = { name: "
|
|
11436
|
+
var DEFAULT_SORT3 = { name: "createdAt", order: "desc" };
|
|
11431
11437
|
var INITIAL_QUERY3 = {
|
|
11432
11438
|
offset: 0,
|
|
11433
11439
|
limit: DEFAULT_PAGE_SIZE
|
|
@@ -11547,8 +11553,8 @@ var import_apsara53 = require("@raystack/apsara");
|
|
|
11547
11553
|
// admin/views/users/details/layout/side-panel-details.tsx
|
|
11548
11554
|
var import_apsara48 = require("@raystack/apsara");
|
|
11549
11555
|
|
|
11550
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11551
|
-
var digest29 = "
|
|
11556
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-rd66sv6B9YKC/sdk/admin/views/users/details/layout/side-panel.module.css.js
|
|
11557
|
+
var digest29 = "3d42adb02f964cad9e8163ea3ddcf939622d29a6b1fea445b4e64be717e0fed0";
|
|
11552
11558
|
var css29 = `._side-panel_1oc3f_1 {
|
|
11553
11559
|
transform: all 0.3s ease-in-out;
|
|
11554
11560
|
padding-bottom: 80px;
|
|
@@ -11655,8 +11661,8 @@ var SidePanelDetails2 = () => {
|
|
|
11655
11661
|
var import_apsara52 = require("@raystack/apsara");
|
|
11656
11662
|
var import_dayjs8 = __toESM(require("dayjs"));
|
|
11657
11663
|
|
|
11658
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11659
|
-
var digest30 = "
|
|
11664
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-67L1vCdBMqXV/sdk/admin/views/users/details/layout/side-panel.module.css.js
|
|
11665
|
+
var digest30 = "aeb8ceabb5340a91839688a766cce28fcab8ab5e2a2c1452a7e4a4a0188cf844";
|
|
11660
11666
|
var css30 = `._side-panel_1oc3f_1 {
|
|
11661
11667
|
transform: all 0.3s ease-in-out;
|
|
11662
11668
|
padding-bottom: 80px;
|
|
@@ -11719,8 +11725,8 @@ var side_panel_module_css_default2 = { "side-panel": "_side-panel_1oc3f_1", "sid
|
|
|
11719
11725
|
// admin/views/users/details/layout/membership-dropdown.tsx
|
|
11720
11726
|
var import_apsara51 = require("@raystack/apsara");
|
|
11721
11727
|
|
|
11722
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11723
|
-
var digest31 = "
|
|
11728
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-y8eO3p4GQzuo/sdk/admin/views/users/details/layout/side-panel.module.css.js
|
|
11729
|
+
var digest31 = "de0d04ade78a7a464020845a5cf57f007060fe40b74a761fbf4f6f373ae626b6";
|
|
11724
11730
|
var css31 = `._side-panel_1oc3f_1 {
|
|
11725
11731
|
transform: all 0.3s ease-in-out;
|
|
11726
11732
|
padding-bottom: 80px;
|
|
@@ -12150,8 +12156,8 @@ var SidePanelMembership = ({
|
|
|
12150
12156
|
] });
|
|
12151
12157
|
};
|
|
12152
12158
|
|
|
12153
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12154
|
-
var digest32 = "
|
|
12159
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-eSLGNHCfZdOk/sdk/admin/views/users/details/layout/side-panel.module.css.js
|
|
12160
|
+
var digest32 = "23df22e7013b1df47d3d0faa8b50f5dbd95730eefd5fcc18720446af4c71a538";
|
|
12155
12161
|
var css32 = `._side-panel_1oc3f_1 {
|
|
12156
12162
|
transform: all 0.3s ease-in-out;
|
|
12157
12163
|
padding-bottom: 80px;
|
|
@@ -12269,8 +12275,8 @@ var UserDetailsSidePanel = () => {
|
|
|
12269
12275
|
);
|
|
12270
12276
|
};
|
|
12271
12277
|
|
|
12272
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12273
|
-
var digest33 = "
|
|
12278
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-ceSfUoBp30Ip/sdk/admin/views/users/details/layout/layout.module.css.js
|
|
12279
|
+
var digest33 = "61e7ae46c3ae95b7ae780b550116282d2518a3e553d0dc3c23d5870ec029ac5b";
|
|
12274
12280
|
var css33 = `._page_190wz_1 {
|
|
12275
12281
|
height: 100vh;
|
|
12276
12282
|
width: 100%;
|
|
@@ -12304,8 +12310,8 @@ var layout_module_css_default = { "page": "_page_190wz_1", "main_content": "_mai
|
|
|
12304
12310
|
var import_apsara54 = require("@raystack/apsara");
|
|
12305
12311
|
var import_icons = require("@raystack/apsara/icons");
|
|
12306
12312
|
|
|
12307
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12308
|
-
var digest34 = "
|
|
12313
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-G8kxicuZp3of/sdk/admin/views/users/details/layout/navbar.module.css.js
|
|
12314
|
+
var digest34 = "41494b09173cb587af855b679c7b0b210dc5bdbb99914d4c0ad7b3fef1b77b7a";
|
|
12309
12315
|
var css34 = `._navbar_1ahsl_1 {
|
|
12310
12316
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
12311
12317
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -12570,8 +12576,8 @@ var import_apsara58 = require("@raystack/apsara");
|
|
|
12570
12576
|
// admin/views/users/details/security/sessions/revoke-session-final-confirm.tsx
|
|
12571
12577
|
var import_apsara57 = require("@raystack/apsara");
|
|
12572
12578
|
|
|
12573
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12574
|
-
var digest35 = "
|
|
12579
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-Un16CA45dr2s/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
|
|
12580
|
+
var digest35 = "895c19644b60a0a262244542ed9ec213139234a349ce289ebccd2f507ad5be70";
|
|
12575
12581
|
var css35 = `._sessionsContainer_aq82p_1 {
|
|
12576
12582
|
border: 1px solid var(--rs-color-border-base-primary);
|
|
12577
12583
|
border-radius: var(--rs-radius-2);
|
|
@@ -12692,8 +12698,8 @@ var RevokeSessionFinalConfirm = ({
|
|
|
12692
12698
|
) });
|
|
12693
12699
|
};
|
|
12694
12700
|
|
|
12695
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12696
|
-
var digest36 = "
|
|
12701
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-6V1jflvh1Mgf/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
|
|
12702
|
+
var digest36 = "25dabab711409f62acdcf5320e32076bd56c8c6de83c17567554b65381070564";
|
|
12697
12703
|
var css36 = `._sessionsContainer_aq82p_1 {
|
|
12698
12704
|
border: 1px solid var(--rs-color-border-base-primary);
|
|
12699
12705
|
border-radius: var(--rs-radius-2);
|
|
@@ -12837,8 +12843,8 @@ var RevokeSessionConfirm = ({ isOpen, onOpenChange, sessionInfo, onRevokeConfirm
|
|
|
12837
12843
|
// admin/views/users/details/security/sessions/session-skeleton.tsx
|
|
12838
12844
|
var import_apsara59 = require("@raystack/apsara");
|
|
12839
12845
|
|
|
12840
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12841
|
-
var digest37 = "
|
|
12846
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-9Fv2HCSRjCqE/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
|
|
12847
|
+
var digest37 = "a40cb85205d2fc22e7cab76d885484627eacebe924ff73b9a4ea6d7666c4db2d";
|
|
12842
12848
|
var css37 = `._sessionsContainer_aq82p_1 {
|
|
12843
12849
|
border: 1px solid var(--rs-color-border-base-primary);
|
|
12844
12850
|
border-radius: var(--rs-radius-2);
|
|
@@ -12919,8 +12925,8 @@ var import_frontier22 = require("@raystack/proton/frontier");
|
|
|
12919
12925
|
var import_dayjs9 = __toESM(require("dayjs"));
|
|
12920
12926
|
var import_relativeTime = __toESM(require("dayjs/plugin/relativeTime"));
|
|
12921
12927
|
|
|
12922
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12923
|
-
var digest38 = "
|
|
12928
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-UznawmZg3kbP/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
|
|
12929
|
+
var digest38 = "1545a7e808730bacbb8c45aab3f51f2c91da852f2af127deb837a3d8119c9841";
|
|
12924
12930
|
var css38 = `._sessionsContainer_aq82p_1 {
|
|
12925
12931
|
border: 1px solid var(--rs-color-border-base-primary);
|
|
12926
12932
|
border-radius: var(--rs-radius-2);
|
|
@@ -13129,8 +13135,8 @@ var UserSessions = () => {
|
|
|
13129
13135
|
] });
|
|
13130
13136
|
};
|
|
13131
13137
|
|
|
13132
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13133
|
-
var digest39 = "
|
|
13138
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-9hXAw9m4yJeY/sdk/admin/views/users/details/security/security.module.css.js
|
|
13139
|
+
var digest39 = "38ef5d065ed1320ccc8581f6d0506d16769658cd279797a32c43e1a1578b6051";
|
|
13134
13140
|
var css39 = `._container_4259p_1 {
|
|
13135
13141
|
width: 100%;
|
|
13136
13142
|
}
|
|
@@ -13255,8 +13261,8 @@ var import_react38 = require("react");
|
|
|
13255
13261
|
var import_apsara63 = require("@raystack/apsara");
|
|
13256
13262
|
var import_icons2 = require("@raystack/apsara/icons");
|
|
13257
13263
|
|
|
13258
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13259
|
-
var digest40 = "
|
|
13264
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-D4njDvrc0clv/sdk/admin/views/organizations/list/list.module.css.js
|
|
13265
|
+
var digest40 = "8cbc23cbf5fca963d46692a59bd9c99740d24c5d8a0e7a0d86249e124c5fe4bf";
|
|
13260
13266
|
var css40 = `._navbar_1py96_1 {
|
|
13261
13267
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
13262
13268
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -13441,8 +13447,8 @@ var OrganizationsNavabar = ({
|
|
|
13441
13447
|
] });
|
|
13442
13448
|
};
|
|
13443
13449
|
|
|
13444
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13445
|
-
var digest41 = "
|
|
13450
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-fu2RLcHOjgVN/sdk/admin/views/organizations/list/list.module.css.js
|
|
13451
|
+
var digest41 = "cd0923d1d4b490d7aa78d6989bf2175f02a47ac764a89029127131a1ba291313";
|
|
13446
13452
|
var css41 = `._navbar_1py96_1 {
|
|
13447
13453
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
13448
13454
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -13550,8 +13556,8 @@ var list_module_css_default5 = { "navbar": "_navbar_1py96_1", "table": "_table_1
|
|
|
13550
13556
|
var import_apsara64 = require("@raystack/apsara");
|
|
13551
13557
|
var import_dayjs10 = __toESM(require("dayjs"));
|
|
13552
13558
|
|
|
13553
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13554
|
-
var digest42 = "
|
|
13559
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-CdGFn1K3NmJW/sdk/admin/views/organizations/list/list.module.css.js
|
|
13560
|
+
var digest42 = "aba6ead0db62e6b78d1fa254d814e8f57ed29021b469ac9e7d08479438a69d0c";
|
|
13555
13561
|
var css42 = `._navbar_1py96_1 {
|
|
13556
13562
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
13557
13563
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -13817,8 +13823,8 @@ var import_protobuf9 = require("@bufbuild/protobuf");
|
|
|
13817
13823
|
// admin/views/organizations/list/create.tsx
|
|
13818
13824
|
var import_react37 = require("react");
|
|
13819
13825
|
|
|
13820
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13821
|
-
var digest43 = "
|
|
13826
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-YV0dySPVezE5/sdk/admin/views/organizations/list/list.module.css.js
|
|
13827
|
+
var digest43 = "8de0e600c19ce7eaa1fec87e247a565ddff4be8c0a4ca7f17b97642cb8224b89";
|
|
13822
13828
|
var css43 = `._navbar_1py96_1 {
|
|
13823
13829
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
13824
13830
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -13936,8 +13942,8 @@ var cross_default = 'data:image/svg+xml,<svg width="20" height="20" viewBox="0 0
|
|
|
13936
13942
|
// react/components/avatar-upload/index.tsx
|
|
13937
13943
|
var import_ReactCrop = require("react-image-crop/dist/ReactCrop.css");
|
|
13938
13944
|
|
|
13939
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13940
|
-
var digest44 = "
|
|
13945
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-ll4oT30IDQlz/sdk/react/components/avatar-upload/avatar-upload.module.css.js
|
|
13946
|
+
var digest44 = "f77a9ea2820d742cf91d1c99447af09f4bea831d62877cf10693526f45572cab";
|
|
13941
13947
|
var css44 = `._container_1k4dc_1 {
|
|
13942
13948
|
display: flex;
|
|
13943
13949
|
flex-direction: column;
|
|
@@ -14500,7 +14506,7 @@ var NoOrganizations = () => {
|
|
|
14500
14506
|
}
|
|
14501
14507
|
);
|
|
14502
14508
|
};
|
|
14503
|
-
var DEFAULT_SORT4 = { name: "
|
|
14509
|
+
var DEFAULT_SORT4 = { name: "createdAt", order: "desc" };
|
|
14504
14510
|
var INITIAL_QUERY4 = {
|
|
14505
14511
|
offset: 0,
|
|
14506
14512
|
limit: DEFAULT_PAGE_SIZE
|
|
@@ -14667,81 +14673,81 @@ var import_protobuf19 = require("@bufbuild/protobuf");
|
|
|
14667
14673
|
var import_icons4 = require("@raystack/apsara/icons");
|
|
14668
14674
|
var import_apsara70 = require("@raystack/apsara");
|
|
14669
14675
|
|
|
14670
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14671
|
-
var digest45 = "
|
|
14672
|
-
var css45 = `.
|
|
14676
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-Dwb2BOtsG0PJ/sdk/admin/views/organizations/details/layout/layout.module.css.js
|
|
14677
|
+
var digest45 = "d866824fc8fb226ee9b1ea69d1beba0c5577e0ed703f4564eb15c17690d14d23";
|
|
14678
|
+
var css45 = `._page_1b2h0_1 {
|
|
14673
14679
|
width: 100%;
|
|
14674
14680
|
height: 100vh;
|
|
14675
14681
|
overflow: hidden;
|
|
14676
14682
|
}
|
|
14677
14683
|
|
|
14678
|
-
.
|
|
14684
|
+
._main_content_1b2h0_7 {
|
|
14679
14685
|
width: 100%;
|
|
14680
14686
|
transition: width 0.3s ease;
|
|
14681
14687
|
}
|
|
14682
14688
|
|
|
14683
|
-
.
|
|
14689
|
+
._main_content_with_sidepanel_1b2h0_12 {
|
|
14684
14690
|
width: calc(100% - 400px);
|
|
14685
14691
|
transition: width 0.3s ease;
|
|
14686
14692
|
}
|
|
14687
14693
|
|
|
14688
|
-
.
|
|
14694
|
+
._navbar_1b2h0_17 {
|
|
14689
14695
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
14690
14696
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
14691
14697
|
background: var(--rs-color-background-base-primary);
|
|
14692
14698
|
display: flex;
|
|
14693
14699
|
align-items: center;
|
|
14694
14700
|
justify-content: space-between;
|
|
14701
|
+
min-height: var(--rs-space-11);
|
|
14695
14702
|
}
|
|
14696
14703
|
|
|
14697
|
-
._navbar-action-menu-
|
|
14704
|
+
._navbar-action-menu-content_1b2h0_27 {
|
|
14698
14705
|
min-width: 160px;
|
|
14699
14706
|
}
|
|
14700
14707
|
|
|
14701
|
-
._navbar-action-menu-
|
|
14708
|
+
._navbar-action-menu-item_1b2h0_31 {
|
|
14702
14709
|
display: flex;
|
|
14703
14710
|
justify-content: space-between;
|
|
14704
14711
|
}
|
|
14705
14712
|
|
|
14706
|
-
._side-panel-section-item-
|
|
14713
|
+
._side-panel-section-item-label_1b2h0_36 {
|
|
14707
14714
|
width: 120px;
|
|
14708
14715
|
}
|
|
14709
14716
|
|
|
14710
|
-
._invite-users-dialog-
|
|
14717
|
+
._invite-users-dialog-body_1b2h0_40 {
|
|
14711
14718
|
display: flex;
|
|
14712
14719
|
flex-direction: column;
|
|
14713
14720
|
padding: var(--rs-space-9) var(--rs-space-7);
|
|
14714
14721
|
gap: var(--rs-space-7);
|
|
14715
14722
|
}
|
|
14716
14723
|
|
|
14717
|
-
._invite-users-dialog-
|
|
14724
|
+
._invite-users-dialog-label_1b2h0_47 {
|
|
14718
14725
|
font-weight: var(--rs-font-weight-medium);
|
|
14719
14726
|
}
|
|
14720
14727
|
|
|
14721
|
-
._invite-users-dialog-roles-
|
|
14728
|
+
._invite-users-dialog-roles-content_1b2h0_51 {
|
|
14722
14729
|
/* 9999 is z-index of dialog */
|
|
14723
14730
|
z-index: 10000;
|
|
14724
14731
|
}
|
|
14725
14732
|
|
|
14726
|
-
._form-error-
|
|
14733
|
+
._form-error-message_1b2h0_56 {
|
|
14727
14734
|
color: var(--rs-color-foreground-danger-primary);
|
|
14728
14735
|
}
|
|
14729
14736
|
|
|
14730
|
-
._add-token-dialog-tokens-
|
|
14731
|
-
._add-token-dialog-tokens-
|
|
14737
|
+
._add-token-dialog-tokens-field_1b2h0_60::-webkit-inner-spin-button,
|
|
14738
|
+
._add-token-dialog-tokens-field_1b2h0_60::-webkit-outer-spin-button {
|
|
14732
14739
|
-webkit-appearance: none;
|
|
14733
14740
|
margin: 0;
|
|
14734
14741
|
}
|
|
14735
14742
|
|
|
14736
14743
|
/* For Firefox */
|
|
14737
|
-
._add-token-dialog-tokens-
|
|
14744
|
+
._add-token-dialog-tokens-field_1b2h0_60 {
|
|
14738
14745
|
-moz-appearance: textfield;
|
|
14739
14746
|
}
|
|
14740
14747
|
|
|
14741
|
-
._nav-
|
|
14748
|
+
._nav-chip_1b2h0_71 {
|
|
14742
14749
|
cursor: pointer;
|
|
14743
|
-
}
|
|
14744
|
-
`;
|
|
14750
|
+
}`;
|
|
14745
14751
|
(function() {
|
|
14746
14752
|
if (typeof document === "undefined") {
|
|
14747
14753
|
return;
|
|
@@ -14753,87 +14759,87 @@ var css45 = `._page_rqgdg_1 {
|
|
|
14753
14759
|
document.head.appendChild(el);
|
|
14754
14760
|
}
|
|
14755
14761
|
})();
|
|
14756
|
-
var layout_module_css_default2 = { "page": "
|
|
14762
|
+
var layout_module_css_default2 = { "page": "_page_1b2h0_1", "main_content": "_main_content_1b2h0_7", "mainContent": "_main_content_1b2h0_7", "main_content_with_sidepanel": "_main_content_with_sidepanel_1b2h0_12", "mainContentWithSidepanel": "_main_content_with_sidepanel_1b2h0_12", "navbar": "_navbar_1b2h0_17", "navbar-action-menu-content": "_navbar-action-menu-content_1b2h0_27", "navbarActionMenuContent": "_navbar-action-menu-content_1b2h0_27", "navbar-action-menu-item": "_navbar-action-menu-item_1b2h0_31", "navbarActionMenuItem": "_navbar-action-menu-item_1b2h0_31", "side-panel-section-item-label": "_side-panel-section-item-label_1b2h0_36", "sidePanelSectionItemLabel": "_side-panel-section-item-label_1b2h0_36", "invite-users-dialog-body": "_invite-users-dialog-body_1b2h0_40", "inviteUsersDialogBody": "_invite-users-dialog-body_1b2h0_40", "invite-users-dialog-label": "_invite-users-dialog-label_1b2h0_47", "inviteUsersDialogLabel": "_invite-users-dialog-label_1b2h0_47", "invite-users-dialog-roles-content": "_invite-users-dialog-roles-content_1b2h0_51", "inviteUsersDialogRolesContent": "_invite-users-dialog-roles-content_1b2h0_51", "form-error-message": "_form-error-message_1b2h0_56", "formErrorMessage": "_form-error-message_1b2h0_56", "add-token-dialog-tokens-field": "_add-token-dialog-tokens-field_1b2h0_60", "addTokenDialogTokensField": "_add-token-dialog-tokens-field_1b2h0_60", "nav-chip": "_nav-chip_1b2h0_71", "navChip": "_nav-chip_1b2h0_71" };
|
|
14757
14763
|
|
|
14758
14764
|
// admin/views/organizations/details/layout/invite-users-dialog.tsx
|
|
14759
14765
|
var import_apsara68 = require("@raystack/apsara");
|
|
14760
14766
|
var import_react40 = require("react");
|
|
14761
14767
|
|
|
14762
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14763
|
-
var digest46 = "
|
|
14764
|
-
var css46 = `.
|
|
14768
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-jM985KGkWGLe/sdk/admin/views/organizations/details/layout/layout.module.css.js
|
|
14769
|
+
var digest46 = "789d837e68667f40e560d105e0050faca6502ec98f36d88644d1eb89b04b6157";
|
|
14770
|
+
var css46 = `._page_1b2h0_1 {
|
|
14765
14771
|
width: 100%;
|
|
14766
14772
|
height: 100vh;
|
|
14767
14773
|
overflow: hidden;
|
|
14768
14774
|
}
|
|
14769
14775
|
|
|
14770
|
-
.
|
|
14776
|
+
._main_content_1b2h0_7 {
|
|
14771
14777
|
width: 100%;
|
|
14772
14778
|
transition: width 0.3s ease;
|
|
14773
14779
|
}
|
|
14774
14780
|
|
|
14775
|
-
.
|
|
14781
|
+
._main_content_with_sidepanel_1b2h0_12 {
|
|
14776
14782
|
width: calc(100% - 400px);
|
|
14777
14783
|
transition: width 0.3s ease;
|
|
14778
14784
|
}
|
|
14779
14785
|
|
|
14780
|
-
.
|
|
14786
|
+
._navbar_1b2h0_17 {
|
|
14781
14787
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
14782
14788
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
14783
14789
|
background: var(--rs-color-background-base-primary);
|
|
14784
14790
|
display: flex;
|
|
14785
14791
|
align-items: center;
|
|
14786
14792
|
justify-content: space-between;
|
|
14793
|
+
min-height: var(--rs-space-11);
|
|
14787
14794
|
}
|
|
14788
14795
|
|
|
14789
|
-
._navbar-action-menu-
|
|
14796
|
+
._navbar-action-menu-content_1b2h0_27 {
|
|
14790
14797
|
min-width: 160px;
|
|
14791
14798
|
}
|
|
14792
14799
|
|
|
14793
|
-
._navbar-action-menu-
|
|
14800
|
+
._navbar-action-menu-item_1b2h0_31 {
|
|
14794
14801
|
display: flex;
|
|
14795
14802
|
justify-content: space-between;
|
|
14796
14803
|
}
|
|
14797
14804
|
|
|
14798
|
-
._side-panel-section-item-
|
|
14805
|
+
._side-panel-section-item-label_1b2h0_36 {
|
|
14799
14806
|
width: 120px;
|
|
14800
14807
|
}
|
|
14801
14808
|
|
|
14802
|
-
._invite-users-dialog-
|
|
14809
|
+
._invite-users-dialog-body_1b2h0_40 {
|
|
14803
14810
|
display: flex;
|
|
14804
14811
|
flex-direction: column;
|
|
14805
14812
|
padding: var(--rs-space-9) var(--rs-space-7);
|
|
14806
14813
|
gap: var(--rs-space-7);
|
|
14807
14814
|
}
|
|
14808
14815
|
|
|
14809
|
-
._invite-users-dialog-
|
|
14816
|
+
._invite-users-dialog-label_1b2h0_47 {
|
|
14810
14817
|
font-weight: var(--rs-font-weight-medium);
|
|
14811
14818
|
}
|
|
14812
14819
|
|
|
14813
|
-
._invite-users-dialog-roles-
|
|
14820
|
+
._invite-users-dialog-roles-content_1b2h0_51 {
|
|
14814
14821
|
/* 9999 is z-index of dialog */
|
|
14815
14822
|
z-index: 10000;
|
|
14816
14823
|
}
|
|
14817
14824
|
|
|
14818
|
-
._form-error-
|
|
14825
|
+
._form-error-message_1b2h0_56 {
|
|
14819
14826
|
color: var(--rs-color-foreground-danger-primary);
|
|
14820
14827
|
}
|
|
14821
14828
|
|
|
14822
|
-
._add-token-dialog-tokens-
|
|
14823
|
-
._add-token-dialog-tokens-
|
|
14829
|
+
._add-token-dialog-tokens-field_1b2h0_60::-webkit-inner-spin-button,
|
|
14830
|
+
._add-token-dialog-tokens-field_1b2h0_60::-webkit-outer-spin-button {
|
|
14824
14831
|
-webkit-appearance: none;
|
|
14825
14832
|
margin: 0;
|
|
14826
14833
|
}
|
|
14827
14834
|
|
|
14828
14835
|
/* For Firefox */
|
|
14829
|
-
._add-token-dialog-tokens-
|
|
14836
|
+
._add-token-dialog-tokens-field_1b2h0_60 {
|
|
14830
14837
|
-moz-appearance: textfield;
|
|
14831
14838
|
}
|
|
14832
14839
|
|
|
14833
|
-
._nav-
|
|
14840
|
+
._nav-chip_1b2h0_71 {
|
|
14834
14841
|
cursor: pointer;
|
|
14835
|
-
}
|
|
14836
|
-
`;
|
|
14842
|
+
}`;
|
|
14837
14843
|
(function() {
|
|
14838
14844
|
if (typeof document === "undefined") {
|
|
14839
14845
|
return;
|
|
@@ -14845,7 +14851,7 @@ var css46 = `._page_rqgdg_1 {
|
|
|
14845
14851
|
document.head.appendChild(el);
|
|
14846
14852
|
}
|
|
14847
14853
|
})();
|
|
14848
|
-
var layout_module_css_default3 = { "page": "
|
|
14854
|
+
var layout_module_css_default3 = { "page": "_page_1b2h0_1", "main_content": "_main_content_1b2h0_7", "mainContent": "_main_content_1b2h0_7", "main_content_with_sidepanel": "_main_content_with_sidepanel_1b2h0_12", "mainContentWithSidepanel": "_main_content_with_sidepanel_1b2h0_12", "navbar": "_navbar_1b2h0_17", "navbar-action-menu-content": "_navbar-action-menu-content_1b2h0_27", "navbarActionMenuContent": "_navbar-action-menu-content_1b2h0_27", "navbar-action-menu-item": "_navbar-action-menu-item_1b2h0_31", "navbarActionMenuItem": "_navbar-action-menu-item_1b2h0_31", "side-panel-section-item-label": "_side-panel-section-item-label_1b2h0_36", "sidePanelSectionItemLabel": "_side-panel-section-item-label_1b2h0_36", "invite-users-dialog-body": "_invite-users-dialog-body_1b2h0_40", "inviteUsersDialogBody": "_invite-users-dialog-body_1b2h0_40", "invite-users-dialog-label": "_invite-users-dialog-label_1b2h0_47", "inviteUsersDialogLabel": "_invite-users-dialog-label_1b2h0_47", "invite-users-dialog-roles-content": "_invite-users-dialog-roles-content_1b2h0_51", "inviteUsersDialogRolesContent": "_invite-users-dialog-roles-content_1b2h0_51", "form-error-message": "_form-error-message_1b2h0_56", "formErrorMessage": "_form-error-message_1b2h0_56", "add-token-dialog-tokens-field": "_add-token-dialog-tokens-field_1b2h0_60", "addTokenDialogTokensField": "_add-token-dialog-tokens-field_1b2h0_60", "nav-chip": "_nav-chip_1b2h0_71", "navChip": "_nav-chip_1b2h0_71" };
|
|
14849
14855
|
|
|
14850
14856
|
// admin/views/organizations/details/contexts/organization-context.tsx
|
|
14851
14857
|
var import_frontier26 = require("@raystack/proton/frontier");
|
|
@@ -15032,81 +15038,81 @@ var import_apsara69 = require("@raystack/apsara");
|
|
|
15032
15038
|
var import_react41 = require("react");
|
|
15033
15039
|
var import_react_hook_form8 = require("react-hook-form");
|
|
15034
15040
|
|
|
15035
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15036
|
-
var digest47 = "
|
|
15037
|
-
var css47 = `.
|
|
15041
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-Gh4RR69b3lKN/sdk/admin/views/organizations/details/layout/layout.module.css.js
|
|
15042
|
+
var digest47 = "cab6f2143716a45000009141bb33085be7b99c483e42305cd2dccf84e9e843a4";
|
|
15043
|
+
var css47 = `._page_1b2h0_1 {
|
|
15038
15044
|
width: 100%;
|
|
15039
15045
|
height: 100vh;
|
|
15040
15046
|
overflow: hidden;
|
|
15041
15047
|
}
|
|
15042
15048
|
|
|
15043
|
-
.
|
|
15049
|
+
._main_content_1b2h0_7 {
|
|
15044
15050
|
width: 100%;
|
|
15045
15051
|
transition: width 0.3s ease;
|
|
15046
15052
|
}
|
|
15047
15053
|
|
|
15048
|
-
.
|
|
15054
|
+
._main_content_with_sidepanel_1b2h0_12 {
|
|
15049
15055
|
width: calc(100% - 400px);
|
|
15050
15056
|
transition: width 0.3s ease;
|
|
15051
15057
|
}
|
|
15052
15058
|
|
|
15053
|
-
.
|
|
15059
|
+
._navbar_1b2h0_17 {
|
|
15054
15060
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
15055
15061
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
15056
15062
|
background: var(--rs-color-background-base-primary);
|
|
15057
15063
|
display: flex;
|
|
15058
15064
|
align-items: center;
|
|
15059
15065
|
justify-content: space-between;
|
|
15066
|
+
min-height: var(--rs-space-11);
|
|
15060
15067
|
}
|
|
15061
15068
|
|
|
15062
|
-
._navbar-action-menu-
|
|
15069
|
+
._navbar-action-menu-content_1b2h0_27 {
|
|
15063
15070
|
min-width: 160px;
|
|
15064
15071
|
}
|
|
15065
15072
|
|
|
15066
|
-
._navbar-action-menu-
|
|
15073
|
+
._navbar-action-menu-item_1b2h0_31 {
|
|
15067
15074
|
display: flex;
|
|
15068
15075
|
justify-content: space-between;
|
|
15069
15076
|
}
|
|
15070
15077
|
|
|
15071
|
-
._side-panel-section-item-
|
|
15078
|
+
._side-panel-section-item-label_1b2h0_36 {
|
|
15072
15079
|
width: 120px;
|
|
15073
15080
|
}
|
|
15074
15081
|
|
|
15075
|
-
._invite-users-dialog-
|
|
15082
|
+
._invite-users-dialog-body_1b2h0_40 {
|
|
15076
15083
|
display: flex;
|
|
15077
15084
|
flex-direction: column;
|
|
15078
15085
|
padding: var(--rs-space-9) var(--rs-space-7);
|
|
15079
15086
|
gap: var(--rs-space-7);
|
|
15080
15087
|
}
|
|
15081
15088
|
|
|
15082
|
-
._invite-users-dialog-
|
|
15089
|
+
._invite-users-dialog-label_1b2h0_47 {
|
|
15083
15090
|
font-weight: var(--rs-font-weight-medium);
|
|
15084
15091
|
}
|
|
15085
15092
|
|
|
15086
|
-
._invite-users-dialog-roles-
|
|
15093
|
+
._invite-users-dialog-roles-content_1b2h0_51 {
|
|
15087
15094
|
/* 9999 is z-index of dialog */
|
|
15088
15095
|
z-index: 10000;
|
|
15089
15096
|
}
|
|
15090
15097
|
|
|
15091
|
-
._form-error-
|
|
15098
|
+
._form-error-message_1b2h0_56 {
|
|
15092
15099
|
color: var(--rs-color-foreground-danger-primary);
|
|
15093
15100
|
}
|
|
15094
15101
|
|
|
15095
|
-
._add-token-dialog-tokens-
|
|
15096
|
-
._add-token-dialog-tokens-
|
|
15102
|
+
._add-token-dialog-tokens-field_1b2h0_60::-webkit-inner-spin-button,
|
|
15103
|
+
._add-token-dialog-tokens-field_1b2h0_60::-webkit-outer-spin-button {
|
|
15097
15104
|
-webkit-appearance: none;
|
|
15098
15105
|
margin: 0;
|
|
15099
15106
|
}
|
|
15100
15107
|
|
|
15101
15108
|
/* For Firefox */
|
|
15102
|
-
._add-token-dialog-tokens-
|
|
15109
|
+
._add-token-dialog-tokens-field_1b2h0_60 {
|
|
15103
15110
|
-moz-appearance: textfield;
|
|
15104
15111
|
}
|
|
15105
15112
|
|
|
15106
|
-
._nav-
|
|
15113
|
+
._nav-chip_1b2h0_71 {
|
|
15107
15114
|
cursor: pointer;
|
|
15108
|
-
}
|
|
15109
|
-
`;
|
|
15115
|
+
}`;
|
|
15110
15116
|
(function() {
|
|
15111
15117
|
if (typeof document === "undefined") {
|
|
15112
15118
|
return;
|
|
@@ -15118,7 +15124,7 @@ var css47 = `._page_rqgdg_1 {
|
|
|
15118
15124
|
document.head.appendChild(el);
|
|
15119
15125
|
}
|
|
15120
15126
|
})();
|
|
15121
|
-
var layout_module_css_default4 = { "page": "
|
|
15127
|
+
var layout_module_css_default4 = { "page": "_page_1b2h0_1", "main_content": "_main_content_1b2h0_7", "mainContent": "_main_content_1b2h0_7", "main_content_with_sidepanel": "_main_content_with_sidepanel_1b2h0_12", "mainContentWithSidepanel": "_main_content_with_sidepanel_1b2h0_12", "navbar": "_navbar_1b2h0_17", "navbar-action-menu-content": "_navbar-action-menu-content_1b2h0_27", "navbarActionMenuContent": "_navbar-action-menu-content_1b2h0_27", "navbar-action-menu-item": "_navbar-action-menu-item_1b2h0_31", "navbarActionMenuItem": "_navbar-action-menu-item_1b2h0_31", "side-panel-section-item-label": "_side-panel-section-item-label_1b2h0_36", "sidePanelSectionItemLabel": "_side-panel-section-item-label_1b2h0_36", "invite-users-dialog-body": "_invite-users-dialog-body_1b2h0_40", "inviteUsersDialogBody": "_invite-users-dialog-body_1b2h0_40", "invite-users-dialog-label": "_invite-users-dialog-label_1b2h0_47", "inviteUsersDialogLabel": "_invite-users-dialog-label_1b2h0_47", "invite-users-dialog-roles-content": "_invite-users-dialog-roles-content_1b2h0_51", "inviteUsersDialogRolesContent": "_invite-users-dialog-roles-content_1b2h0_51", "form-error-message": "_form-error-message_1b2h0_56", "formErrorMessage": "_form-error-message_1b2h0_56", "add-token-dialog-tokens-field": "_add-token-dialog-tokens-field_1b2h0_60", "addTokenDialogTokensField": "_add-token-dialog-tokens-field_1b2h0_60", "nav-chip": "_nav-chip_1b2h0_71", "navChip": "_nav-chip_1b2h0_71" };
|
|
15122
15128
|
|
|
15123
15129
|
// admin/views/organizations/details/layout/add-tokens-dialog.tsx
|
|
15124
15130
|
var import_zod9 = require("@hookform/resolvers/zod");
|
|
@@ -15243,7 +15249,6 @@ var AddTokensDialog = ({ onOpenChange }) => {
|
|
|
15243
15249
|
|
|
15244
15250
|
// admin/views/organizations/details/layout/navbar.tsx
|
|
15245
15251
|
var import_react42 = require("react");
|
|
15246
|
-
var import_apsara71 = require("@raystack/apsara");
|
|
15247
15252
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
15248
15253
|
var DropdownItem = ({ item }) => {
|
|
15249
15254
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
@@ -15493,11 +15498,14 @@ var OrganizationsDetailsNavabar = ({
|
|
|
15493
15498
|
] }),
|
|
15494
15499
|
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_apsara70.Flex, { align: "center", gap: 4, children: [
|
|
15495
15500
|
search.isVisible ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
15496
|
-
|
|
15501
|
+
import_apsara70.Search,
|
|
15497
15502
|
{
|
|
15498
15503
|
value: search.query,
|
|
15499
15504
|
onChange: handleSearchChange,
|
|
15505
|
+
onClear: () => search.onChange(""),
|
|
15500
15506
|
placeholder: "Search",
|
|
15507
|
+
size: "small",
|
|
15508
|
+
showClearButton: true,
|
|
15501
15509
|
"data-test-id": "admin-org-details-navbar-search"
|
|
15502
15510
|
}
|
|
15503
15511
|
) : null,
|
|
@@ -15514,81 +15522,81 @@ var OrganizationsDetailsNavabar = ({
|
|
|
15514
15522
|
] });
|
|
15515
15523
|
};
|
|
15516
15524
|
|
|
15517
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15518
|
-
var digest48 = "
|
|
15519
|
-
var css48 = `.
|
|
15525
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-niQ9pf0wMeBg/sdk/admin/views/organizations/details/layout/layout.module.css.js
|
|
15526
|
+
var digest48 = "c0fb8d89b32a73150fda76d4cf0d59b83dbd817e46224059434f80f1d2b17070";
|
|
15527
|
+
var css48 = `._page_1b2h0_1 {
|
|
15520
15528
|
width: 100%;
|
|
15521
15529
|
height: 100vh;
|
|
15522
15530
|
overflow: hidden;
|
|
15523
15531
|
}
|
|
15524
15532
|
|
|
15525
|
-
.
|
|
15533
|
+
._main_content_1b2h0_7 {
|
|
15526
15534
|
width: 100%;
|
|
15527
15535
|
transition: width 0.3s ease;
|
|
15528
15536
|
}
|
|
15529
15537
|
|
|
15530
|
-
.
|
|
15538
|
+
._main_content_with_sidepanel_1b2h0_12 {
|
|
15531
15539
|
width: calc(100% - 400px);
|
|
15532
15540
|
transition: width 0.3s ease;
|
|
15533
15541
|
}
|
|
15534
15542
|
|
|
15535
|
-
.
|
|
15543
|
+
._navbar_1b2h0_17 {
|
|
15536
15544
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
15537
15545
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
15538
15546
|
background: var(--rs-color-background-base-primary);
|
|
15539
15547
|
display: flex;
|
|
15540
15548
|
align-items: center;
|
|
15541
15549
|
justify-content: space-between;
|
|
15550
|
+
min-height: var(--rs-space-11);
|
|
15542
15551
|
}
|
|
15543
15552
|
|
|
15544
|
-
._navbar-action-menu-
|
|
15553
|
+
._navbar-action-menu-content_1b2h0_27 {
|
|
15545
15554
|
min-width: 160px;
|
|
15546
15555
|
}
|
|
15547
15556
|
|
|
15548
|
-
._navbar-action-menu-
|
|
15557
|
+
._navbar-action-menu-item_1b2h0_31 {
|
|
15549
15558
|
display: flex;
|
|
15550
15559
|
justify-content: space-between;
|
|
15551
15560
|
}
|
|
15552
15561
|
|
|
15553
|
-
._side-panel-section-item-
|
|
15562
|
+
._side-panel-section-item-label_1b2h0_36 {
|
|
15554
15563
|
width: 120px;
|
|
15555
15564
|
}
|
|
15556
15565
|
|
|
15557
|
-
._invite-users-dialog-
|
|
15566
|
+
._invite-users-dialog-body_1b2h0_40 {
|
|
15558
15567
|
display: flex;
|
|
15559
15568
|
flex-direction: column;
|
|
15560
15569
|
padding: var(--rs-space-9) var(--rs-space-7);
|
|
15561
15570
|
gap: var(--rs-space-7);
|
|
15562
15571
|
}
|
|
15563
15572
|
|
|
15564
|
-
._invite-users-dialog-
|
|
15573
|
+
._invite-users-dialog-label_1b2h0_47 {
|
|
15565
15574
|
font-weight: var(--rs-font-weight-medium);
|
|
15566
15575
|
}
|
|
15567
15576
|
|
|
15568
|
-
._invite-users-dialog-roles-
|
|
15577
|
+
._invite-users-dialog-roles-content_1b2h0_51 {
|
|
15569
15578
|
/* 9999 is z-index of dialog */
|
|
15570
15579
|
z-index: 10000;
|
|
15571
15580
|
}
|
|
15572
15581
|
|
|
15573
|
-
._form-error-
|
|
15582
|
+
._form-error-message_1b2h0_56 {
|
|
15574
15583
|
color: var(--rs-color-foreground-danger-primary);
|
|
15575
15584
|
}
|
|
15576
15585
|
|
|
15577
|
-
._add-token-dialog-tokens-
|
|
15578
|
-
._add-token-dialog-tokens-
|
|
15586
|
+
._add-token-dialog-tokens-field_1b2h0_60::-webkit-inner-spin-button,
|
|
15587
|
+
._add-token-dialog-tokens-field_1b2h0_60::-webkit-outer-spin-button {
|
|
15579
15588
|
-webkit-appearance: none;
|
|
15580
15589
|
margin: 0;
|
|
15581
15590
|
}
|
|
15582
15591
|
|
|
15583
15592
|
/* For Firefox */
|
|
15584
|
-
._add-token-dialog-tokens-
|
|
15593
|
+
._add-token-dialog-tokens-field_1b2h0_60 {
|
|
15585
15594
|
-moz-appearance: textfield;
|
|
15586
15595
|
}
|
|
15587
15596
|
|
|
15588
|
-
._nav-
|
|
15597
|
+
._nav-chip_1b2h0_71 {
|
|
15589
15598
|
cursor: pointer;
|
|
15590
|
-
}
|
|
15591
|
-
`;
|
|
15599
|
+
}`;
|
|
15592
15600
|
(function() {
|
|
15593
15601
|
if (typeof document === "undefined") {
|
|
15594
15602
|
return;
|
|
@@ -15600,19 +15608,19 @@ var css48 = `._page_rqgdg_1 {
|
|
|
15600
15608
|
document.head.appendChild(el);
|
|
15601
15609
|
}
|
|
15602
15610
|
})();
|
|
15603
|
-
var layout_module_css_default5 = { "page": "
|
|
15611
|
+
var layout_module_css_default5 = { "page": "_page_1b2h0_1", "main_content": "_main_content_1b2h0_7", "mainContent": "_main_content_1b2h0_7", "main_content_with_sidepanel": "_main_content_with_sidepanel_1b2h0_12", "mainContentWithSidepanel": "_main_content_with_sidepanel_1b2h0_12", "navbar": "_navbar_1b2h0_17", "navbar-action-menu-content": "_navbar-action-menu-content_1b2h0_27", "navbarActionMenuContent": "_navbar-action-menu-content_1b2h0_27", "navbar-action-menu-item": "_navbar-action-menu-item_1b2h0_31", "navbarActionMenuItem": "_navbar-action-menu-item_1b2h0_31", "side-panel-section-item-label": "_side-panel-section-item-label_1b2h0_36", "sidePanelSectionItemLabel": "_side-panel-section-item-label_1b2h0_36", "invite-users-dialog-body": "_invite-users-dialog-body_1b2h0_40", "inviteUsersDialogBody": "_invite-users-dialog-body_1b2h0_40", "invite-users-dialog-label": "_invite-users-dialog-label_1b2h0_47", "inviteUsersDialogLabel": "_invite-users-dialog-label_1b2h0_47", "invite-users-dialog-roles-content": "_invite-users-dialog-roles-content_1b2h0_51", "inviteUsersDialogRolesContent": "_invite-users-dialog-roles-content_1b2h0_51", "form-error-message": "_form-error-message_1b2h0_56", "formErrorMessage": "_form-error-message_1b2h0_56", "add-token-dialog-tokens-field": "_add-token-dialog-tokens-field_1b2h0_60", "addTokenDialogTokensField": "_add-token-dialog-tokens-field_1b2h0_60", "nav-chip": "_nav-chip_1b2h0_71", "navChip": "_nav-chip_1b2h0_71" };
|
|
15604
15612
|
|
|
15605
15613
|
// admin/views/organizations/details/layout/index.tsx
|
|
15606
|
-
var
|
|
15614
|
+
var import_apsara81 = require("@raystack/apsara");
|
|
15607
15615
|
|
|
15608
15616
|
// admin/views/organizations/details/side-panel/index.tsx
|
|
15609
|
-
var
|
|
15617
|
+
var import_apsara77 = require("@raystack/apsara");
|
|
15610
15618
|
|
|
15611
15619
|
// admin/views/organizations/details/side-panel/org-details-section.tsx
|
|
15612
|
-
var
|
|
15620
|
+
var import_apsara71 = require("@raystack/apsara");
|
|
15613
15621
|
|
|
15614
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15615
|
-
var digest49 = "
|
|
15622
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-m0vX0DjiXSnr/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
|
|
15623
|
+
var digest49 = "55618e98e81e45f532e3cf21d15163d711d2e894659eba84324b364567da8ea5";
|
|
15616
15624
|
var css49 = `._side-panel-section-item-label_yeg6h_1 {
|
|
15617
15625
|
width: 120px;
|
|
15618
15626
|
}
|
|
@@ -15651,59 +15659,59 @@ var OrganizationDetailsSection = ({
|
|
|
15651
15659
|
organization
|
|
15652
15660
|
}) => {
|
|
15653
15661
|
const { appUrl } = (0, import_react43.useContext)(OrganizationContext);
|
|
15654
|
-
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
15655
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15656
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
15657
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15658
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_apsara71.List, { children: [
|
|
15663
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.List.Header, { children: "Organization Details" }),
|
|
15664
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_apsara71.List.Item, { children: [
|
|
15665
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.List.Label, { className: side_panel_module_css_default5["side-panel-section-item-label"], children: "URL" }),
|
|
15666
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.List.Value, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.Text, { children: appUrl ? `${appUrl}/${organization.name}` : organization.name }) })
|
|
15659
15667
|
] }),
|
|
15660
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
15661
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15662
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15668
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_apsara71.List.Item, { children: [
|
|
15669
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.List.Label, { className: side_panel_module_css_default5["side-panel-section-item-label"], children: "Organization ID" }),
|
|
15670
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.List.Value, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_apsara71.Flex, { gap: 3, children: [
|
|
15663
15671
|
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15664
|
-
|
|
15672
|
+
import_apsara71.CopyButton,
|
|
15665
15673
|
{
|
|
15666
15674
|
text: organization.id || "",
|
|
15667
15675
|
"data-test-id": "copy-button"
|
|
15668
15676
|
}
|
|
15669
15677
|
),
|
|
15670
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15678
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.Tooltip, { message: organization.id, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.Text, { className: side_panel_module_css_default5["org-details-section-org-id"], children: organization.id }) })
|
|
15671
15679
|
] }) })
|
|
15672
15680
|
] }),
|
|
15673
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
15674
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15675
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15681
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_apsara71.List.Item, { children: [
|
|
15682
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.List.Label, { className: side_panel_module_css_default5["side-panel-section-item-label"], children: "Created on" }),
|
|
15683
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.List.Value, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_apsara71.Flex, { gap: 3, children: [
|
|
15676
15684
|
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(CalendarIcon, {}),
|
|
15677
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15685
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.Text, { children: (0, import_dayjs11.default)(timestampToDate(organization.createdAt)).format(
|
|
15678
15686
|
"DD MMM YYYY"
|
|
15679
15687
|
) })
|
|
15680
15688
|
] }) })
|
|
15681
15689
|
] }),
|
|
15682
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
15683
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15684
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15690
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_apsara71.List.Item, { children: [
|
|
15691
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.List.Label, { className: side_panel_module_css_default5["side-panel-section-item-label"], children: "Organization size" }),
|
|
15692
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.List.Value, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.List.Value, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.Text, { children: organization?.metadata?.["size"] || "-" }) }) })
|
|
15685
15693
|
] }),
|
|
15686
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
15687
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15688
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15694
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_apsara71.List.Item, { children: [
|
|
15695
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.List.Label, { className: side_panel_module_css_default5["side-panel-section-item-label"], children: "Industry" }),
|
|
15696
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.List.Value, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.Text, { children: organization?.metadata?.["type"] || "-" }) })
|
|
15689
15697
|
] }),
|
|
15690
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
15691
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15692
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15698
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_apsara71.List.Item, { children: [
|
|
15699
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.List.Label, { className: side_panel_module_css_default5["side-panel-section-item-label"], children: "Country" }),
|
|
15700
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.List.Value, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.Text, { children: organization?.metadata?.["country"] || "-" }) })
|
|
15693
15701
|
] }),
|
|
15694
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
15695
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15696
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
15702
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_apsara71.List.Item, { children: [
|
|
15703
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.List.Label, { className: side_panel_module_css_default5["side-panel-section-item-label"], children: "Status" }),
|
|
15704
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_apsara71.List.Value, { children: organization?.state })
|
|
15697
15705
|
] })
|
|
15698
15706
|
] });
|
|
15699
15707
|
};
|
|
15700
15708
|
|
|
15701
15709
|
// admin/views/organizations/details/side-panel/kyc-section.tsx
|
|
15702
|
-
var
|
|
15710
|
+
var import_apsara72 = require("@raystack/apsara");
|
|
15703
15711
|
var import_react44 = require("react");
|
|
15704
15712
|
|
|
15705
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15706
|
-
var digest50 = "
|
|
15713
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-jcUzBCWgJlw0/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
|
|
15714
|
+
var digest50 = "76c3ac1294131d5590df4de611b2a47ce2321c433dabb77cb8ac135248875105";
|
|
15707
15715
|
var css50 = `._side-panel-section-item-label_yeg6h_1 {
|
|
15708
15716
|
width: 120px;
|
|
15709
15717
|
}
|
|
@@ -15739,11 +15747,11 @@ var import_icons5 = require("@raystack/apsara/icons");
|
|
|
15739
15747
|
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
15740
15748
|
var KYCDetailsSection = () => {
|
|
15741
15749
|
const { isKYCLoading, kycDetails } = (0, import_react44.useContext)(OrganizationContext);
|
|
15742
|
-
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
15743
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
15744
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
15745
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
15746
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
15750
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_apsara72.List, { children: [
|
|
15751
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_apsara72.List.Header, { children: "KYC Details" }),
|
|
15752
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_apsara72.List.Item, { children: [
|
|
15753
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_apsara72.List.Label, { className: side_panel_module_css_default6["side-panel-section-item-label"], children: "Status" }),
|
|
15754
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_apsara72.List.Value, { children: isKYCLoading ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Skeleton, {}) : kycDetails?.status ? /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_apsara72.Flex, { justify: "start", align: "center", gap: 3, children: [
|
|
15747
15755
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
15748
15756
|
import_icons5.CheckCircleFilledIcon,
|
|
15749
15757
|
{
|
|
@@ -15751,8 +15759,8 @@ var KYCDetailsSection = () => {
|
|
|
15751
15759
|
className: side_panel_module_css_default6["kyc-status-icon"]
|
|
15752
15760
|
}
|
|
15753
15761
|
),
|
|
15754
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
15755
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
15762
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_apsara72.Text, { children: "Verified" })
|
|
15763
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_apsara72.Flex, { justify: "start", align: "center", gap: 3, children: [
|
|
15756
15764
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
15757
15765
|
import_icons5.CrossCircleFilledIcon,
|
|
15758
15766
|
{
|
|
@@ -15760,15 +15768,15 @@ var KYCDetailsSection = () => {
|
|
|
15760
15768
|
className: side_panel_module_css_default6["kyc-status-icon"]
|
|
15761
15769
|
}
|
|
15762
15770
|
),
|
|
15763
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
15771
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_apsara72.Text, { children: "Not verified" })
|
|
15764
15772
|
] }) })
|
|
15765
15773
|
] }),
|
|
15766
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
15767
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
15768
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
15774
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_apsara72.List.Item, { children: [
|
|
15775
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_apsara72.List.Label, { className: side_panel_module_css_default6["side-panel-section-item-label"], children: "Documents Link" }),
|
|
15776
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_apsara72.List.Value, { children: isKYCLoading ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Skeleton, {}) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_apsara72.Flex, { justify: "start", align: "center", gap: 3, children: kycDetails?.link ? /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
|
|
15769
15777
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Link2Icon, {}),
|
|
15770
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
15771
|
-
|
|
15778
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_apsara72.Tooltip, { message: kycDetails?.link, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
15779
|
+
import_apsara72.Link,
|
|
15772
15780
|
{
|
|
15773
15781
|
href: kycDetails?.link,
|
|
15774
15782
|
target: "_blank",
|
|
@@ -15777,17 +15785,17 @@ var KYCDetailsSection = () => {
|
|
|
15777
15785
|
children: kycDetails?.link
|
|
15778
15786
|
}
|
|
15779
15787
|
) })
|
|
15780
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
15788
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_apsara72.Text, { children: "N/A" }) }) })
|
|
15781
15789
|
] })
|
|
15782
15790
|
] });
|
|
15783
15791
|
};
|
|
15784
15792
|
|
|
15785
15793
|
// admin/views/organizations/details/side-panel/plan-details-section.tsx
|
|
15786
15794
|
var import_react45 = require("react");
|
|
15787
|
-
var
|
|
15795
|
+
var import_apsara73 = require("@raystack/apsara");
|
|
15788
15796
|
|
|
15789
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15790
|
-
var digest51 = "
|
|
15797
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-HQv9jkKLxf8B/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
|
|
15798
|
+
var digest51 = "39724aabc92b462f0923187ca89394f42b79f687d1b095ab6a29050d3be10e94";
|
|
15791
15799
|
var css51 = `._side-panel-section-item-label_yeg6h_1 {
|
|
15792
15800
|
width: 120px;
|
|
15793
15801
|
}
|
|
@@ -15858,38 +15866,38 @@ var PlanDetailsSection = () => {
|
|
|
15858
15866
|
console.error("Error fetching plan:", planError);
|
|
15859
15867
|
}
|
|
15860
15868
|
const isLoading = isSubscriptionLoading || isPlanLoading;
|
|
15861
|
-
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
15862
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
15863
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
15864
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
15865
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
15869
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_apsara73.List, { children: [
|
|
15870
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_apsara73.List.Header, { children: "Plan details" }),
|
|
15871
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_apsara73.List.Item, { children: [
|
|
15872
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_apsara73.List.Label, { className: side_panel_module_css_default7["side-panel-section-item-label"], children: "Name" }),
|
|
15873
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_apsara73.List.Value, { children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Skeleton, {}) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_apsara73.Text, { children: planData?.plan?.title || "Standard" }) })
|
|
15866
15874
|
] }),
|
|
15867
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
15868
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
15869
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
15875
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_apsara73.List.Item, { children: [
|
|
15876
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_apsara73.List.Label, { className: side_panel_module_css_default7["side-panel-section-item-label"], children: "Started from" }),
|
|
15877
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_apsara73.List.Value, { children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Skeleton, {}) : timestampToDayjs(activeSubscription?.currentPeriodStartAt) ? /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_apsara73.Flex, { gap: 3, children: [
|
|
15870
15878
|
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(CalendarIcon, {}),
|
|
15871
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
15879
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_apsara73.Text, { children: timestampToDayjs(activeSubscription?.currentPeriodStartAt)?.format(
|
|
15872
15880
|
"DD MMM YYYY"
|
|
15873
15881
|
) })
|
|
15874
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
15882
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_apsara73.Text, { children: "-" }) })
|
|
15875
15883
|
] }),
|
|
15876
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
15877
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
15878
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
15884
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_apsara73.List.Item, { children: [
|
|
15885
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_apsara73.List.Label, { className: side_panel_module_css_default7["side-panel-section-item-label"], children: "Ends on" }),
|
|
15886
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_apsara73.List.Value, { children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Skeleton, {}) : timestampToDayjs(activeSubscription?.currentPeriodEndAt) ? /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_apsara73.Flex, { gap: 3, children: [
|
|
15879
15887
|
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(CalendarIcon, {}),
|
|
15880
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
15888
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_apsara73.Text, { children: timestampToDayjs(activeSubscription?.currentPeriodEndAt)?.format(
|
|
15881
15889
|
"DD MMM YYYY"
|
|
15882
15890
|
) })
|
|
15883
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
15891
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_apsara73.Text, { children: "-" }) })
|
|
15884
15892
|
] })
|
|
15885
15893
|
] });
|
|
15886
15894
|
};
|
|
15887
15895
|
|
|
15888
15896
|
// admin/views/organizations/details/side-panel/tokens-details-section.tsx
|
|
15889
|
-
var
|
|
15897
|
+
var import_apsara74 = require("@raystack/apsara");
|
|
15890
15898
|
|
|
15891
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15892
|
-
var digest52 = "
|
|
15899
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-Uo7pTDTtVBaC/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
|
|
15900
|
+
var digest52 = "3b84f30ae595d97d0a5f1378273318c1d15f9024139b8a37a660e83831e9f304";
|
|
15893
15901
|
var css52 = `._side-panel-section-item-label_yeg6h_1 {
|
|
15894
15902
|
width: 120px;
|
|
15895
15903
|
}
|
|
@@ -15953,33 +15961,33 @@ var TokensDetailsSection = () => {
|
|
|
15953
15961
|
}
|
|
15954
15962
|
}, [error]);
|
|
15955
15963
|
const isLoading = isTokensLoading;
|
|
15956
|
-
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
15957
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
15958
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
15959
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
15960
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
15964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_apsara74.List, { children: [
|
|
15965
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_apsara74.List.Header, { children: "Tokens" }),
|
|
15966
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_apsara74.List.Item, { children: [
|
|
15967
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_apsara74.List.Label, { className: side_panel_module_css_default8["side-panel-section-item-label"], children: "Available tokens" }),
|
|
15968
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_apsara74.List.Value, { children: isTokenBalanceLoading ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Skeleton, {}) : /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_apsara74.Flex, { gap: 3, children: [
|
|
15961
15969
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(MixIcon, {}),
|
|
15962
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
15970
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_apsara74.Text, { children: tokenBalance })
|
|
15963
15971
|
] }) })
|
|
15964
15972
|
] }),
|
|
15965
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
15966
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
15967
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
15973
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_apsara74.List.Item, { children: [
|
|
15974
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_apsara74.List.Label, { className: side_panel_module_css_default8["side-panel-section-item-label"], children: "Used till date" }),
|
|
15975
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_apsara74.List.Value, { children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Skeleton, {}) : /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_apsara74.Flex, { gap: 3, children: [
|
|
15968
15976
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(MixIcon, { style: { color: "var(--rs-color-foreground-base-tertiary)" } }),
|
|
15969
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
15977
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_apsara74.Text, { children: tokensUsed })
|
|
15970
15978
|
] }) })
|
|
15971
15979
|
] }),
|
|
15972
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
15973
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
15974
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
15980
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_apsara74.List.Item, { children: [
|
|
15981
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_apsara74.List.Label, { className: side_panel_module_css_default8["side-panel-section-item-label"], children: "Payment Mode" }),
|
|
15982
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_apsara74.List.Value, { children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Skeleton, {}) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_apsara74.Flex, { gap: 3, children: Number(billingAccountDetails?.creditMin) < 0 ? "Postpaid" : "Prepaid" }) })
|
|
15975
15983
|
] }),
|
|
15976
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
15977
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
15978
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
15984
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_apsara74.List.Item, { children: [
|
|
15985
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_apsara74.List.Label, { className: side_panel_module_css_default8["side-panel-section-item-label"], children: "Credit Limit" }),
|
|
15986
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_apsara74.List.Value, { children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Skeleton, {}) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_apsara74.Flex, { gap: 3, children: Math.abs(Number(billingAccountDetails?.creditMin)) }) })
|
|
15979
15987
|
] }),
|
|
15980
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
15981
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
15982
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
15988
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_apsara74.List.Item, { children: [
|
|
15989
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_apsara74.List.Label, { className: side_panel_module_css_default8["side-panel-section-item-label"], children: "Invoice due date" }),
|
|
15990
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_apsara74.List.Value, { children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Skeleton, {}) : /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_apsara74.Flex, { gap: 3, children: [
|
|
15983
15991
|
String(billingAccountDetails?.dueInDays || 0),
|
|
15984
15992
|
" days"
|
|
15985
15993
|
] }) })
|
|
@@ -15988,10 +15996,10 @@ var TokensDetailsSection = () => {
|
|
|
15988
15996
|
};
|
|
15989
15997
|
|
|
15990
15998
|
// admin/views/organizations/details/side-panel/billing-details-section.tsx
|
|
15991
|
-
var
|
|
15999
|
+
var import_apsara75 = require("@raystack/apsara");
|
|
15992
16000
|
|
|
15993
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15994
|
-
var digest53 = "
|
|
16001
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-JNEm29Q7gE07/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
|
|
16002
|
+
var digest53 = "2a701a869b58d90a4ea477a1a79e174638f5eb97485ff3f3dcd85d00fe85da0c";
|
|
15995
16003
|
var css53 = `._side-panel-section-item-label_yeg6h_1 {
|
|
15996
16004
|
width: 120px;
|
|
15997
16005
|
}
|
|
@@ -16024,7 +16032,7 @@ var side_panel_module_css_default9 = { "side-panel-section-item-label": "_side-p
|
|
|
16024
16032
|
|
|
16025
16033
|
// admin/views/organizations/details/side-panel/billing-details-section.tsx
|
|
16026
16034
|
var import_react47 = require("react");
|
|
16027
|
-
var
|
|
16035
|
+
var import_apsara76 = require("@raystack/apsara");
|
|
16028
16036
|
var import_connect_query27 = require("@connectrpc/connect-query");
|
|
16029
16037
|
var import_frontier31 = require("@raystack/proton/frontier");
|
|
16030
16038
|
var import_protobuf15 = require("@bufbuild/protobuf");
|
|
@@ -16051,61 +16059,61 @@ var BillingDetailsSection = () => {
|
|
|
16051
16059
|
}, [error]);
|
|
16052
16060
|
const due_date = upcomingInvoice?.dueDate || upcomingInvoice?.periodEndAt;
|
|
16053
16061
|
const stripeLink = billingAccount?.providerId ? "https://dashboard.stripe.com/customers/" + billingAccount?.providerId : "";
|
|
16054
|
-
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
16055
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16056
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
16057
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16058
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16062
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_apsara75.List, { children: [
|
|
16063
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.List.Header, { children: "Billing" }),
|
|
16064
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_apsara75.List.Item, { children: [
|
|
16065
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.List.Label, { className: side_panel_module_css_default9["side-panel-section-item-label"], children: "Name" }),
|
|
16066
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.List.Value, { className: side_panel_module_css_default9["side-panel-section-item-value"], children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Skeleton, {}) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.Text, { children: billingAccount?.name || "N/A" }) })
|
|
16059
16067
|
] }),
|
|
16060
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
16061
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16062
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16068
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_apsara75.List.Item, { children: [
|
|
16069
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.List.Label, { className: side_panel_module_css_default9["side-panel-section-item-label"], children: "Billing Account ID" }),
|
|
16070
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.List.Value, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_apsara75.Flex, { gap: 3, children: [
|
|
16063
16071
|
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16064
|
-
|
|
16072
|
+
import_apsara75.CopyButton,
|
|
16065
16073
|
{
|
|
16066
16074
|
text: billingAccount?.id || "",
|
|
16067
16075
|
"data-test-id": "copy-button"
|
|
16068
16076
|
}
|
|
16069
16077
|
),
|
|
16070
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16078
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.Text, { className: side_panel_module_css_default9["org-details-section-org-id"], children: billingAccount?.id })
|
|
16071
16079
|
] }) })
|
|
16072
16080
|
] }),
|
|
16073
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
16074
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16075
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16081
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_apsara75.List.Item, { children: [
|
|
16082
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.List.Label, { className: side_panel_module_css_default9["side-panel-section-item-label"], children: "Email" }),
|
|
16083
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.List.Value, { className: side_panel_module_css_default9["side-panel-section-item-value"], children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Skeleton, {}) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.Text, { children: billingAccount?.email || "N/A" }) })
|
|
16076
16084
|
] }),
|
|
16077
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
16078
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16079
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16085
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_apsara75.List.Item, { children: [
|
|
16086
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.List.Label, { className: side_panel_module_css_default9["side-panel-section-item-label"], children: "Address" }),
|
|
16087
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.List.Value, { className: side_panel_module_css_default9["side-panel-section-item-value"], children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Skeleton, {}) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.Text, { children: billingAccount?.address ? converBillingAddressToString(billingAccount.address) : "N/A" }) })
|
|
16080
16088
|
] }),
|
|
16081
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
16082
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16083
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16089
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_apsara75.List.Item, { children: [
|
|
16090
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.List.Label, { className: side_panel_module_css_default9["side-panel-section-item-label"], children: "Next billing date" }),
|
|
16091
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.List.Value, { className: side_panel_module_css_default9["side-panel-section-item-value"], children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Skeleton, {}) : timestampToDayjs(due_date) ? /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_apsara75.Flex, { gap: 3, children: [
|
|
16084
16092
|
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(CalendarIcon, {}),
|
|
16085
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16086
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16093
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.Text, { children: timestampToDayjs(due_date)?.format("DD MMM YYYY") })
|
|
16094
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.Text, { children: "-" }) })
|
|
16087
16095
|
] }),
|
|
16088
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
16089
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16090
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16091
|
-
|
|
16096
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_apsara75.List.Item, { children: [
|
|
16097
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.List.Label, { className: side_panel_module_css_default9["side-panel-section-item-label"], children: "Amount" }),
|
|
16098
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.List.Value, { className: side_panel_module_css_default9["side-panel-section-item-value"], children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Skeleton, {}) : upcomingInvoice?.amount ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16099
|
+
import_apsara76.Amount,
|
|
16092
16100
|
{
|
|
16093
16101
|
currency: upcomingInvoice?.currency,
|
|
16094
16102
|
value: Number(upcomingInvoice?.amount)
|
|
16095
16103
|
}
|
|
16096
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16104
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.Text, { children: "-" }) })
|
|
16097
16105
|
] }),
|
|
16098
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
16099
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16100
|
-
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16101
|
-
|
|
16106
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_apsara75.List.Item, { children: [
|
|
16107
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.List.Label, { className: side_panel_module_css_default9["side-panel-section-item-label"], children: "Profile" }),
|
|
16108
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.List.Value, { className: side_panel_module_css_default9["side-panel-section-item-value"], children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Skeleton, {}) : stripeLink ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16109
|
+
import_apsara75.Link,
|
|
16102
16110
|
{
|
|
16103
16111
|
href: stripeLink,
|
|
16104
16112
|
"data-test-id": "stripe-dashboard-link",
|
|
16105
16113
|
target: "_blank",
|
|
16106
16114
|
children: "Stripe"
|
|
16107
16115
|
}
|
|
16108
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
16116
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_apsara75.Text, { children: "N/A" }) })
|
|
16109
16117
|
] })
|
|
16110
16118
|
] });
|
|
16111
16119
|
};
|
|
@@ -16113,20 +16121,20 @@ var BillingDetailsSection = () => {
|
|
|
16113
16121
|
// admin/views/organizations/details/side-panel/index.tsx
|
|
16114
16122
|
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
16115
16123
|
function OrgSidePanel({ organization }) {
|
|
16116
|
-
const avatarColor = (0,
|
|
16117
|
-
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
16124
|
+
const avatarColor = (0, import_apsara77.getAvatarColor)(organization?.id || "");
|
|
16125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_apsara77.SidePanel, { "data-test-id": "admin-sidepanel", children: [
|
|
16118
16126
|
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
16119
|
-
|
|
16127
|
+
import_apsara77.SidePanel.Header,
|
|
16120
16128
|
{
|
|
16121
16129
|
title: organization?.title || "Organization",
|
|
16122
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
16130
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_apsara77.Avatar, { fallback: organization?.title?.[0], color: avatarColor })
|
|
16123
16131
|
}
|
|
16124
16132
|
),
|
|
16125
|
-
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
16126
|
-
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
16127
|
-
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
16128
|
-
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
16129
|
-
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
16133
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_apsara77.SidePanel.Section, { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(OrganizationDetailsSection, { organization }) }),
|
|
16134
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_apsara77.SidePanel.Section, { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(KYCDetailsSection, {}) }),
|
|
16135
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_apsara77.SidePanel.Section, { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(PlanDetailsSection, {}) }),
|
|
16136
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_apsara77.SidePanel.Section, { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TokensDetailsSection, {}) }),
|
|
16137
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_apsara77.SidePanel.Section, { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(BillingDetailsSection, {}) })
|
|
16130
16138
|
] });
|
|
16131
16139
|
}
|
|
16132
16140
|
|
|
@@ -16135,10 +16143,10 @@ var import_react51 = require("react");
|
|
|
16135
16143
|
var import_icons6 = require("@raystack/apsara/icons");
|
|
16136
16144
|
|
|
16137
16145
|
// admin/views/organizations/details/edit/kyc.tsx
|
|
16138
|
-
var
|
|
16146
|
+
var import_apsara78 = require("@raystack/apsara");
|
|
16139
16147
|
|
|
16140
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16141
|
-
var digest54 = "
|
|
16148
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-v74bHpxE9thW/sdk/admin/views/organizations/details/edit/edit.module.css.js
|
|
16149
|
+
var digest54 = "d7b040ce44cc25f81f07b6c23139755115f06192aea5deb973a5bcdd5e182259";
|
|
16142
16150
|
var css54 = `._drawer-content_1o0os_1 {
|
|
16143
16151
|
min-width: 500px;
|
|
16144
16152
|
padding: 0;
|
|
@@ -16243,11 +16251,11 @@ function EditKYCPanel({ onClose }) {
|
|
|
16243
16251
|
cardinality: "finite"
|
|
16244
16252
|
})
|
|
16245
16253
|
});
|
|
16246
|
-
|
|
16254
|
+
import_apsara78.toast.success("KYC details updated successfully");
|
|
16247
16255
|
onClose();
|
|
16248
16256
|
},
|
|
16249
16257
|
onError: (error) => {
|
|
16250
|
-
|
|
16258
|
+
import_apsara78.toast.error(`Failed to update KYC details: ${error.message}`);
|
|
16251
16259
|
console.error("Unable to update KYC details:", error);
|
|
16252
16260
|
}
|
|
16253
16261
|
});
|
|
@@ -16263,19 +16271,19 @@ function EditKYCPanel({ onClose }) {
|
|
|
16263
16271
|
})
|
|
16264
16272
|
);
|
|
16265
16273
|
}
|
|
16266
|
-
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
16267
|
-
|
|
16274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_apsara78.Sheet, { open: true, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_apsara78.Sheet.Content, { className: edit_module_css_default["drawer-content"], children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
16275
|
+
import_apsara78.SidePanel,
|
|
16268
16276
|
{
|
|
16269
16277
|
"data-test-id": "edit-kyc-panel",
|
|
16270
16278
|
className: edit_module_css_default["side-panel"],
|
|
16271
16279
|
children: [
|
|
16272
16280
|
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
16273
|
-
|
|
16281
|
+
import_apsara78.SidePanel.Header,
|
|
16274
16282
|
{
|
|
16275
16283
|
title: "Edit KYC",
|
|
16276
16284
|
actions: [
|
|
16277
16285
|
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
16278
|
-
|
|
16286
|
+
import_apsara78.IconButton,
|
|
16279
16287
|
{
|
|
16280
16288
|
"data-test-id": "close-kyc-panel-icon",
|
|
16281
16289
|
onClick: onClose,
|
|
@@ -16293,13 +16301,13 @@ function EditKYCPanel({ onClose }) {
|
|
|
16293
16301
|
className: edit_module_css_default["side-panel-form"],
|
|
16294
16302
|
children: [
|
|
16295
16303
|
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
16296
|
-
|
|
16304
|
+
import_apsara78.Flex,
|
|
16297
16305
|
{
|
|
16298
16306
|
direction: "column",
|
|
16299
16307
|
gap: 5,
|
|
16300
16308
|
className: edit_module_css_default["side-panel-content"],
|
|
16301
16309
|
children: [
|
|
16302
|
-
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
16310
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_apsara78.Text, { size: "small", weight: "medium", children: "KYC Details" }),
|
|
16303
16311
|
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
16304
16312
|
import_react_hook_form9.Controller,
|
|
16305
16313
|
{
|
|
@@ -16307,17 +16315,17 @@ function EditKYCPanel({ onClose }) {
|
|
|
16307
16315
|
control,
|
|
16308
16316
|
render: ({ field }) => {
|
|
16309
16317
|
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
|
|
16310
|
-
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
16311
|
-
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
16318
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_apsara78.Flex, { justify: "between", children: [
|
|
16319
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_apsara78.Label, { children: "Mark KYC as verified" }),
|
|
16312
16320
|
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
16313
|
-
|
|
16321
|
+
import_apsara78.Switch,
|
|
16314
16322
|
{
|
|
16315
16323
|
checked: field.value,
|
|
16316
16324
|
onCheckedChange: field.onChange
|
|
16317
16325
|
}
|
|
16318
16326
|
)
|
|
16319
16327
|
] }),
|
|
16320
|
-
errors.status && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
16328
|
+
errors.status && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_apsara78.Text, { variant: "danger", children: errors.status.message })
|
|
16321
16329
|
] });
|
|
16322
16330
|
}
|
|
16323
16331
|
}
|
|
@@ -16329,7 +16337,7 @@ function EditKYCPanel({ onClose }) {
|
|
|
16329
16337
|
control,
|
|
16330
16338
|
render: ({ field }) => {
|
|
16331
16339
|
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_jsx_runtime83.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
16332
|
-
|
|
16340
|
+
import_apsara78.InputField,
|
|
16333
16341
|
{
|
|
16334
16342
|
label: "Document Link",
|
|
16335
16343
|
...field,
|
|
@@ -16342,9 +16350,9 @@ function EditKYCPanel({ onClose }) {
|
|
|
16342
16350
|
]
|
|
16343
16351
|
}
|
|
16344
16352
|
),
|
|
16345
|
-
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
16353
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_apsara78.Flex, { className: edit_module_css_default["side-panel-footer"], gap: 3, children: [
|
|
16346
16354
|
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
16347
|
-
|
|
16355
|
+
import_apsara78.Button,
|
|
16348
16356
|
{
|
|
16349
16357
|
variant: "outline",
|
|
16350
16358
|
color: "neutral",
|
|
@@ -16354,7 +16362,7 @@ function EditKYCPanel({ onClose }) {
|
|
|
16354
16362
|
}
|
|
16355
16363
|
),
|
|
16356
16364
|
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
16357
|
-
|
|
16365
|
+
import_apsara78.Button,
|
|
16358
16366
|
{
|
|
16359
16367
|
"data-test-id": "save-kyc-button",
|
|
16360
16368
|
type: "submit",
|
|
@@ -16375,8 +16383,8 @@ function EditKYCPanel({ onClose }) {
|
|
|
16375
16383
|
// admin/views/organizations/details/edit/organization.tsx
|
|
16376
16384
|
var import_react49 = require("react");
|
|
16377
16385
|
|
|
16378
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16379
|
-
var digest55 = "
|
|
16386
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-tLLWcS0QYfB3/sdk/admin/views/organizations/details/edit/edit.module.css.js
|
|
16387
|
+
var digest55 = "b837e806cb02c54b9ece455df094d7be0463442ae126ce4d0d46231008d22112";
|
|
16380
16388
|
var css55 = `._drawer-content_1o0os_1 {
|
|
16381
16389
|
min-width: 500px;
|
|
16382
16390
|
padding: 0;
|
|
@@ -16429,7 +16437,7 @@ var css55 = `._drawer-content_1o0os_1 {
|
|
|
16429
16437
|
var edit_module_css_default2 = { "drawer-content": "_drawer-content_1o0os_1", "drawerContent": "_drawer-content_1o0os_1", "side-panel": "_side-panel_1o0os_7", "sidePanel": "_side-panel_1o0os_7", "side-panel-form": "_side-panel-form_1o0os_15", "sidePanelForm": "_side-panel-form_1o0os_15", "side-panel-content": "_side-panel-content_1o0os_22", "sidePanelContent": "_side-panel-content_1o0os_22", "side-panel-footer": "_side-panel-footer_1o0os_26", "sidePanelFooter": "_side-panel-footer_1o0os_26", "select-value": "_select-value_1o0os_31", "selectValue": "_select-value_1o0os_31", "select-content": "_select-content_1o0os_35", "selectContent": "_select-content_1o0os_35" };
|
|
16430
16438
|
|
|
16431
16439
|
// admin/views/organizations/details/edit/organization.tsx
|
|
16432
|
-
var
|
|
16440
|
+
var import_apsara79 = require("@raystack/apsara");
|
|
16433
16441
|
var import_react_hook_form10 = require("react-hook-form");
|
|
16434
16442
|
var import_zod13 = require("@hookform/resolvers/zod");
|
|
16435
16443
|
var import_connect_query29 = require("@connectrpc/connect-query");
|
|
@@ -16540,19 +16548,19 @@ function EditOrganizationPanel({ onClose }) {
|
|
|
16540
16548
|
}
|
|
16541
16549
|
}
|
|
16542
16550
|
const showOtherTypeField = watch("type", "other") === "other";
|
|
16543
|
-
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16544
|
-
|
|
16551
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_apsara79.Sheet, { open: true, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_apsara79.Sheet.Content, { className: edit_module_css_default2["drawer-content"], children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
16552
|
+
import_apsara79.SidePanel,
|
|
16545
16553
|
{
|
|
16546
16554
|
"data-test-id": "edit-org-panel",
|
|
16547
16555
|
className: edit_module_css_default2["side-panel"],
|
|
16548
16556
|
children: [
|
|
16549
16557
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16550
|
-
|
|
16558
|
+
import_apsara79.SidePanel.Header,
|
|
16551
16559
|
{
|
|
16552
16560
|
title: "Edit organization",
|
|
16553
16561
|
actions: [
|
|
16554
16562
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16555
|
-
|
|
16563
|
+
import_apsara79.IconButton,
|
|
16556
16564
|
{
|
|
16557
16565
|
"data-test-id": "close-edit-org-panel-icon",
|
|
16558
16566
|
onClick: onClose,
|
|
@@ -16570,7 +16578,7 @@ function EditOrganizationPanel({ onClose }) {
|
|
|
16570
16578
|
onSubmit: handleSubmit(onSubmit),
|
|
16571
16579
|
children: [
|
|
16572
16580
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
16573
|
-
|
|
16581
|
+
import_apsara79.Flex,
|
|
16574
16582
|
{
|
|
16575
16583
|
direction: "column",
|
|
16576
16584
|
gap: 9,
|
|
@@ -16583,23 +16591,23 @@ function EditOrganizationPanel({ onClose }) {
|
|
|
16583
16591
|
control,
|
|
16584
16592
|
render: ({ field }) => {
|
|
16585
16593
|
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_jsx_runtime84.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
16586
|
-
|
|
16594
|
+
import_apsara79.Flex,
|
|
16587
16595
|
{
|
|
16588
16596
|
align: "center",
|
|
16589
16597
|
gap: "medium",
|
|
16590
16598
|
style: { width: "100%" },
|
|
16591
16599
|
children: [
|
|
16592
16600
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(AvatarUpload, { ...field, "data-test-id": "avatar-upload" }),
|
|
16593
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16601
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_apsara79.Text, { children: "Pick a logo for your organization" })
|
|
16594
16602
|
]
|
|
16595
16603
|
}
|
|
16596
16604
|
) });
|
|
16597
16605
|
}
|
|
16598
16606
|
}
|
|
16599
16607
|
),
|
|
16600
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16608
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_apsara79.InputField, { ...register("title"), label: "Organization title" }),
|
|
16601
16609
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16602
|
-
|
|
16610
|
+
import_apsara79.InputField,
|
|
16603
16611
|
{
|
|
16604
16612
|
...register("name"),
|
|
16605
16613
|
prefix: appUrl,
|
|
@@ -16609,7 +16617,7 @@ function EditOrganizationPanel({ onClose }) {
|
|
|
16609
16617
|
}
|
|
16610
16618
|
),
|
|
16611
16619
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16612
|
-
|
|
16620
|
+
import_apsara79.InputField,
|
|
16613
16621
|
{
|
|
16614
16622
|
...register("size"),
|
|
16615
16623
|
type: "number",
|
|
@@ -16623,10 +16631,10 @@ function EditOrganizationPanel({ onClose }) {
|
|
|
16623
16631
|
name: "type",
|
|
16624
16632
|
control,
|
|
16625
16633
|
render: ({ field }) => {
|
|
16626
|
-
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
16627
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_apsara79.Flex, { direction: "column", gap: 2, children: [
|
|
16635
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_apsara79.Label, { htmlFor: "org-type-select", children: "Organization industry" }),
|
|
16628
16636
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
16629
|
-
|
|
16637
|
+
import_apsara79.Select,
|
|
16630
16638
|
{
|
|
16631
16639
|
...field,
|
|
16632
16640
|
value: field?.value?.toString(),
|
|
@@ -16634,17 +16642,17 @@ function EditOrganizationPanel({ onClose }) {
|
|
|
16634
16642
|
field?.onChange({ target: { value } });
|
|
16635
16643
|
},
|
|
16636
16644
|
children: [
|
|
16637
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16638
|
-
|
|
16645
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_apsara79.Select.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16646
|
+
import_apsara79.Select.Value,
|
|
16639
16647
|
{
|
|
16640
16648
|
placeholder: "Select an industry",
|
|
16641
16649
|
className: edit_module_css_default2["select-value"],
|
|
16642
16650
|
id: "org-type-select"
|
|
16643
16651
|
}
|
|
16644
16652
|
) }),
|
|
16645
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
16646
|
-
industries.map((industry) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16647
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16653
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_apsara79.Select.Content, { className: edit_module_css_default2["select-content"], children: [
|
|
16654
|
+
industries.map((industry) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_apsara79.Select.Item, { value: industry, children: industry }, industry)),
|
|
16655
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_apsara79.Select.Item, { value: "other", children: "Other" })
|
|
16648
16656
|
] })
|
|
16649
16657
|
]
|
|
16650
16658
|
}
|
|
@@ -16654,7 +16662,7 @@ function EditOrganizationPanel({ onClose }) {
|
|
|
16654
16662
|
}
|
|
16655
16663
|
),
|
|
16656
16664
|
showOtherTypeField ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16657
|
-
|
|
16665
|
+
import_apsara79.InputField,
|
|
16658
16666
|
{
|
|
16659
16667
|
label: "Organization industry (other)",
|
|
16660
16668
|
...register("otherType"),
|
|
@@ -16667,10 +16675,10 @@ function EditOrganizationPanel({ onClose }) {
|
|
|
16667
16675
|
name: "country",
|
|
16668
16676
|
control,
|
|
16669
16677
|
render: ({ field }) => {
|
|
16670
|
-
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
16671
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_apsara79.Flex, { direction: "column", gap: 2, children: [
|
|
16679
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_apsara79.Label, { htmlFor: "country-select", children: "Country" }),
|
|
16672
16680
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
16673
|
-
|
|
16681
|
+
import_apsara79.Select,
|
|
16674
16682
|
{
|
|
16675
16683
|
...field,
|
|
16676
16684
|
value: field?.value?.toString(),
|
|
@@ -16679,15 +16687,15 @@ function EditOrganizationPanel({ onClose }) {
|
|
|
16679
16687
|
},
|
|
16680
16688
|
autocomplete: true,
|
|
16681
16689
|
children: [
|
|
16682
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16683
|
-
|
|
16690
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_apsara79.Select.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16691
|
+
import_apsara79.Select.Value,
|
|
16684
16692
|
{
|
|
16685
16693
|
placeholder: "Select a country",
|
|
16686
16694
|
className: edit_module_css_default2["select-value"],
|
|
16687
16695
|
id: "country-select"
|
|
16688
16696
|
}
|
|
16689
16697
|
) }),
|
|
16690
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16698
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_apsara79.Select.Content, { className: edit_module_css_default2["select-content"], children: countries.map((country) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_apsara79.Select.Item, { value: country, children: country }, country)) })
|
|
16691
16699
|
]
|
|
16692
16700
|
}
|
|
16693
16701
|
)
|
|
@@ -16698,9 +16706,9 @@ function EditOrganizationPanel({ onClose }) {
|
|
|
16698
16706
|
]
|
|
16699
16707
|
}
|
|
16700
16708
|
),
|
|
16701
|
-
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
16709
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_apsara79.Flex, { className: edit_module_css_default2["side-panel-footer"], gap: 3, children: [
|
|
16702
16710
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16703
|
-
|
|
16711
|
+
import_apsara79.Button,
|
|
16704
16712
|
{
|
|
16705
16713
|
variant: "outline",
|
|
16706
16714
|
color: "neutral",
|
|
@@ -16710,7 +16718,7 @@ function EditOrganizationPanel({ onClose }) {
|
|
|
16710
16718
|
}
|
|
16711
16719
|
),
|
|
16712
16720
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
16713
|
-
|
|
16721
|
+
import_apsara79.Button,
|
|
16714
16722
|
{
|
|
16715
16723
|
loading: isSubmitting,
|
|
16716
16724
|
"data-test-id": "save-edit-org-button",
|
|
@@ -16729,10 +16737,10 @@ function EditOrganizationPanel({ onClose }) {
|
|
|
16729
16737
|
}
|
|
16730
16738
|
|
|
16731
16739
|
// admin/views/organizations/details/edit/billing.tsx
|
|
16732
|
-
var
|
|
16740
|
+
var import_apsara80 = require("@raystack/apsara");
|
|
16733
16741
|
|
|
16734
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16735
|
-
var digest56 = "
|
|
16742
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-UMNZjHFEldwZ/sdk/admin/views/organizations/details/edit/edit.module.css.js
|
|
16743
|
+
var digest56 = "666c7a325ffa73ae604272e67c503a417f6de74c72057abf4551cd2fe4c85cc6";
|
|
16736
16744
|
var css56 = `._drawer-content_1o0os_1 {
|
|
16737
16745
|
min-width: 500px;
|
|
16738
16746
|
padding: 0;
|
|
@@ -16866,7 +16874,7 @@ function EditBillingPanel({ onClose }) {
|
|
|
16866
16874
|
import_frontier34.AdminServiceQueries.updateBillingAccountDetails,
|
|
16867
16875
|
{
|
|
16868
16876
|
onError: (error) => {
|
|
16869
|
-
|
|
16877
|
+
import_apsara80.toast.error("Something went wrong", {
|
|
16870
16878
|
description: error.message
|
|
16871
16879
|
});
|
|
16872
16880
|
console.error("Unable to update billing details:", error);
|
|
@@ -16887,9 +16895,9 @@ function EditBillingPanel({ onClose }) {
|
|
|
16887
16895
|
})
|
|
16888
16896
|
);
|
|
16889
16897
|
fetchBillingAccountDetails();
|
|
16890
|
-
|
|
16898
|
+
import_apsara80.toast.success("Billing details updated");
|
|
16891
16899
|
} catch (error) {
|
|
16892
|
-
|
|
16900
|
+
import_apsara80.toast.error("Something went wrong", {
|
|
16893
16901
|
description: "Failed to update billing details"
|
|
16894
16902
|
});
|
|
16895
16903
|
console.error("Failed to update billing details:", error);
|
|
@@ -16908,19 +16916,19 @@ function EditBillingPanel({ onClose }) {
|
|
|
16908
16916
|
}, [setValue]);
|
|
16909
16917
|
const tokenPaymentType = watch("tokenPaymentType");
|
|
16910
16918
|
const isPrepaid = tokenPaymentType === "prepaid";
|
|
16911
|
-
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
16912
|
-
|
|
16919
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_apsara80.Sheet, { open: true, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_apsara80.Sheet.Content, { className: edit_module_css_default3["drawer-content"], children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
16920
|
+
import_apsara80.SidePanel,
|
|
16913
16921
|
{
|
|
16914
16922
|
"data-test-id": "edit-billing-panel",
|
|
16915
16923
|
className: edit_module_css_default3["side-panel"],
|
|
16916
16924
|
children: [
|
|
16917
16925
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
16918
|
-
|
|
16926
|
+
import_apsara80.SidePanel.Header,
|
|
16919
16927
|
{
|
|
16920
16928
|
title: "Edit billing",
|
|
16921
16929
|
actions: [
|
|
16922
16930
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
16923
|
-
|
|
16931
|
+
import_apsara80.IconButton,
|
|
16924
16932
|
{
|
|
16925
16933
|
"data-test-id": "close-billing-panel-icon",
|
|
16926
16934
|
onClick: onClose,
|
|
@@ -16938,31 +16946,31 @@ function EditBillingPanel({ onClose }) {
|
|
|
16938
16946
|
className: edit_module_css_default3["side-panel-form"],
|
|
16939
16947
|
children: [
|
|
16940
16948
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
16941
|
-
|
|
16949
|
+
import_apsara80.Flex,
|
|
16942
16950
|
{
|
|
16943
16951
|
direction: "column",
|
|
16944
16952
|
gap: 5,
|
|
16945
16953
|
className: edit_module_css_default3["side-panel-content"],
|
|
16946
16954
|
children: [
|
|
16947
|
-
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Skeleton, { height: "32px" }) : /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
16948
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
16955
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Skeleton, { height: "32px" }) : /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_apsara80.Flex, { direction: "column", gap: 2, children: [
|
|
16956
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_apsara80.Text, { variant: "secondary", weight: "medium", size: "mini", children: "Token payment type" }),
|
|
16949
16957
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
16950
|
-
|
|
16958
|
+
import_apsara80.Select,
|
|
16951
16959
|
{
|
|
16952
16960
|
value: tokenPaymentType,
|
|
16953
16961
|
onValueChange,
|
|
16954
16962
|
children: [
|
|
16955
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
16956
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
16957
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
16958
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
16963
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_apsara80.Select.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_apsara80.Select.Value, {}) }),
|
|
16964
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_apsara80.Select.Content, { children: [
|
|
16965
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_apsara80.Select.Item, { value: "prepaid", children: "Prepaid" }),
|
|
16966
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_apsara80.Select.Item, { value: "postpaid", children: "Postpaid" })
|
|
16959
16967
|
] })
|
|
16960
16968
|
]
|
|
16961
16969
|
}
|
|
16962
16970
|
)
|
|
16963
16971
|
] }),
|
|
16964
16972
|
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Skeleton, { height: "32px" }) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
16965
|
-
|
|
16973
|
+
import_apsara80.InputField,
|
|
16966
16974
|
{
|
|
16967
16975
|
disabled: isPrepaid,
|
|
16968
16976
|
label: "Credit limit",
|
|
@@ -16972,7 +16980,7 @@ function EditBillingPanel({ onClose }) {
|
|
|
16972
16980
|
}
|
|
16973
16981
|
),
|
|
16974
16982
|
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Skeleton, { height: "32px" }) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
16975
|
-
|
|
16983
|
+
import_apsara80.InputField,
|
|
16976
16984
|
{
|
|
16977
16985
|
disabled: isPrepaid,
|
|
16978
16986
|
label: "Billing due date",
|
|
@@ -16985,9 +16993,9 @@ function EditBillingPanel({ onClose }) {
|
|
|
16985
16993
|
]
|
|
16986
16994
|
}
|
|
16987
16995
|
),
|
|
16988
|
-
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
16996
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_apsara80.Flex, { className: edit_module_css_default3["side-panel-footer"], gap: 3, children: [
|
|
16989
16997
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
16990
|
-
|
|
16998
|
+
import_apsara80.Button,
|
|
16991
16999
|
{
|
|
16992
17000
|
variant: "outline",
|
|
16993
17001
|
color: "neutral",
|
|
@@ -16997,7 +17005,7 @@ function EditBillingPanel({ onClose }) {
|
|
|
16997
17005
|
}
|
|
16998
17006
|
),
|
|
16999
17007
|
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
17000
|
-
|
|
17008
|
+
import_apsara80.Button,
|
|
17001
17009
|
{
|
|
17002
17010
|
"data-test-id": "save-update-billing-details-button",
|
|
17003
17011
|
type: "submit",
|
|
@@ -17054,7 +17062,7 @@ var OrganizationDetailsLayout = ({
|
|
|
17054
17062
|
setShowEditBillingPanel(false);
|
|
17055
17063
|
}
|
|
17056
17064
|
const title = `${organization?.title} | Organizations`;
|
|
17057
|
-
return isLoading ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
17065
|
+
return isLoading ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_apsara81.Flex, { align: "center", justify: "center", style: { minHeight: "200px", width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_apsara81.Spinner, { size: 6 }) }) : organization ? /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_apsara81.Flex, { direction: "column", className: layout_module_css_default5.page, children: [
|
|
17058
17066
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(PageTitle, { title }),
|
|
17059
17067
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
17060
17068
|
OrganizationsDetailsNavabar,
|
|
@@ -17071,9 +17079,9 @@ var OrganizationDetailsLayout = ({
|
|
|
17071
17079
|
onNavigate
|
|
17072
17080
|
}
|
|
17073
17081
|
),
|
|
17074
|
-
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
17082
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_apsara81.Flex, { justify: "between", style: { height: "100%" }, children: [
|
|
17075
17083
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
17076
|
-
|
|
17084
|
+
import_apsara81.Flex,
|
|
17077
17085
|
{
|
|
17078
17086
|
className: showSidePanel ? layout_module_css_default5["main_content_with_sidepanel"] : layout_module_css_default5["main_content"],
|
|
17079
17087
|
children
|
|
@@ -17085,7 +17093,7 @@ var OrganizationDetailsLayout = ({
|
|
|
17085
17093
|
showEditBillingPanel ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(EditBillingPanel, { onClose: closeEditBillingPanel }) : null
|
|
17086
17094
|
] })
|
|
17087
17095
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
17088
|
-
|
|
17096
|
+
import_apsara81.Flex,
|
|
17089
17097
|
{
|
|
17090
17098
|
style: { height: "100vh", width: "100%" },
|
|
17091
17099
|
align: "center",
|
|
@@ -17093,7 +17101,7 @@ var OrganizationDetailsLayout = ({
|
|
|
17093
17101
|
children: [
|
|
17094
17102
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(PageTitle, { title: "Organization not found" }),
|
|
17095
17103
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
17096
|
-
|
|
17104
|
+
import_apsara81.EmptyState,
|
|
17097
17105
|
{
|
|
17098
17106
|
icon: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_icons6.OrganizationIcon, {}),
|
|
17099
17107
|
heading: "Organization not found",
|
|
@@ -17349,10 +17357,10 @@ var OrganizationDetailsView = ({
|
|
|
17349
17357
|
};
|
|
17350
17358
|
|
|
17351
17359
|
// admin/views/organizations/details/security/index.tsx
|
|
17352
|
-
var
|
|
17360
|
+
var import_apsara84 = require("@raystack/apsara");
|
|
17353
17361
|
|
|
17354
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17355
|
-
var digest57 = "
|
|
17362
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-2EhPLiUoXDIO/sdk/admin/views/organizations/details/security/security.module.css.js
|
|
17363
|
+
var digest57 = "a3928988e8943270ca3636f892fabc92ba682f02672696cee466b011190ebccc";
|
|
17356
17364
|
var css57 = `._container_1wkae_1 {
|
|
17357
17365
|
width: 100%;
|
|
17358
17366
|
}
|
|
@@ -17396,7 +17404,7 @@ var security_module_css_default2 = { "container": "_container_1wkae_1", "content
|
|
|
17396
17404
|
var import_react55 = require("react");
|
|
17397
17405
|
|
|
17398
17406
|
// admin/views/organizations/details/security/block-organization.tsx
|
|
17399
|
-
var
|
|
17407
|
+
var import_apsara82 = require("@raystack/apsara");
|
|
17400
17408
|
var import_react53 = require("react");
|
|
17401
17409
|
var import_connect_query32 = require("@connectrpc/connect-query");
|
|
17402
17410
|
var import_frontier36 = require("@raystack/proton/frontier");
|
|
@@ -17421,10 +17429,10 @@ var BlockOrganizationDialog = () => {
|
|
|
17421
17429
|
})
|
|
17422
17430
|
});
|
|
17423
17431
|
setIsDialogOpen(false);
|
|
17424
|
-
|
|
17432
|
+
import_apsara82.toast.success("Organization blocked");
|
|
17425
17433
|
},
|
|
17426
17434
|
onError: (error) => {
|
|
17427
|
-
|
|
17435
|
+
import_apsara82.toast.error("Something went wrong", {
|
|
17428
17436
|
description: error.message
|
|
17429
17437
|
});
|
|
17430
17438
|
console.error("Failed to block organization:", error);
|
|
@@ -17444,10 +17452,10 @@ var BlockOrganizationDialog = () => {
|
|
|
17444
17452
|
})
|
|
17445
17453
|
});
|
|
17446
17454
|
setIsDialogOpen(false);
|
|
17447
|
-
|
|
17455
|
+
import_apsara82.toast.success("Organization unblocked");
|
|
17448
17456
|
},
|
|
17449
17457
|
onError: (error) => {
|
|
17450
|
-
|
|
17458
|
+
import_apsara82.toast.error("Something went wrong", {
|
|
17451
17459
|
description: error.message
|
|
17452
17460
|
});
|
|
17453
17461
|
console.error("Failed to unblock organization:", error);
|
|
@@ -17491,9 +17499,9 @@ var BlockOrganizationDialog = () => {
|
|
|
17491
17499
|
dialogCancelText: "Cancel",
|
|
17492
17500
|
dialogConfirmLoadingText: "Unblocking..."
|
|
17493
17501
|
};
|
|
17494
|
-
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
17495
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
17496
|
-
|
|
17502
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_apsara82.Dialog, { open: isDialogOpen, onOpenChange, children: [
|
|
17503
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_apsara82.Dialog.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
17504
|
+
import_apsara82.Button,
|
|
17497
17505
|
{
|
|
17498
17506
|
color: componentConfig.btnColor,
|
|
17499
17507
|
size: "small",
|
|
@@ -17501,14 +17509,14 @@ var BlockOrganizationDialog = () => {
|
|
|
17501
17509
|
children: componentConfig.btnText
|
|
17502
17510
|
}
|
|
17503
17511
|
) }),
|
|
17504
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
17505
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
17506
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
17507
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
17512
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_apsara82.Dialog.Content, { width: 400, ariaLabel: "Block Organization", children: [
|
|
17513
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_apsara82.Dialog.Body, { children: [
|
|
17514
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_apsara82.Dialog.Title, { children: componentConfig.dialogTitle }),
|
|
17515
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_apsara82.Dialog.Description, { children: componentConfig.dialogDescription })
|
|
17508
17516
|
] }),
|
|
17509
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
17510
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
17511
|
-
|
|
17517
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_apsara82.Dialog.Footer, { children: [
|
|
17518
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_apsara82.Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
17519
|
+
import_apsara82.Button,
|
|
17512
17520
|
{
|
|
17513
17521
|
color: "neutral",
|
|
17514
17522
|
variant: "outline",
|
|
@@ -17517,7 +17525,7 @@ var BlockOrganizationDialog = () => {
|
|
|
17517
17525
|
}
|
|
17518
17526
|
) }),
|
|
17519
17527
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
17520
|
-
|
|
17528
|
+
import_apsara82.Button,
|
|
17521
17529
|
{
|
|
17522
17530
|
color: componentConfig.btnColor,
|
|
17523
17531
|
"data-test-id": "block-organization-submit-button",
|
|
@@ -17532,20 +17540,20 @@ var BlockOrganizationDialog = () => {
|
|
|
17532
17540
|
] });
|
|
17533
17541
|
};
|
|
17534
17542
|
var BlockOrganizationSection = () => {
|
|
17535
|
-
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
17536
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
17537
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
17538
|
-
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
17543
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_apsara82.Flex, { gap: 5, justify: "between", children: [
|
|
17544
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_apsara82.Flex, { direction: "column", gap: 3, children: [
|
|
17545
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_apsara82.Text, { size: 5, children: "Block organization" }),
|
|
17546
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_apsara82.Text, { size: 3, variant: "secondary", children: "Restrict access to safeguard platform integrity and prevent unauthorized activities." })
|
|
17539
17547
|
] }),
|
|
17540
17548
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(BlockOrganizationDialog, {})
|
|
17541
17549
|
] });
|
|
17542
17550
|
};
|
|
17543
17551
|
|
|
17544
17552
|
// admin/views/organizations/details/security/domains-list.tsx
|
|
17545
|
-
var
|
|
17553
|
+
var import_apsara83 = require("@raystack/apsara");
|
|
17546
17554
|
|
|
17547
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17548
|
-
var digest58 = "
|
|
17555
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-RSKNEWzPBVq3/sdk/admin/views/organizations/details/security/security.module.css.js
|
|
17556
|
+
var digest58 = "067bc3980a87fd926bd09daea7d1a17e9ddb7227f9d80a0e3d65ed1c72e600a6";
|
|
17549
17557
|
var css58 = `._container_1wkae_1 {
|
|
17550
17558
|
width: 100%;
|
|
17551
17559
|
}
|
|
@@ -17612,10 +17620,10 @@ var DeleteDomainDialog = ({
|
|
|
17612
17620
|
})
|
|
17613
17621
|
});
|
|
17614
17622
|
setIsDialogOpen(false);
|
|
17615
|
-
|
|
17623
|
+
import_apsara83.toast.success("Domain deleted");
|
|
17616
17624
|
},
|
|
17617
17625
|
onError: (error) => {
|
|
17618
|
-
|
|
17626
|
+
import_apsara83.toast.error("Something went wrong", {
|
|
17619
17627
|
description: error.message
|
|
17620
17628
|
});
|
|
17621
17629
|
console.error("Unable to delete domain:", error);
|
|
@@ -17633,16 +17641,16 @@ var DeleteDomainDialog = ({
|
|
|
17633
17641
|
const onOpenChange = (value) => {
|
|
17634
17642
|
setIsDialogOpen(value);
|
|
17635
17643
|
};
|
|
17636
|
-
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
|
|
17637
|
-
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
17638
|
-
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
|
|
17639
|
-
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
|
|
17640
|
-
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
17641
|
-
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
17644
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_apsara83.Dialog, { open: isDialogOpen, onOpenChange, children: [
|
|
17645
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_apsara83.Dialog.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_apsara83.IconButton, { size: 3, "data-test-id": "delete-domain-button", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(TrashIcon, {}) }) }),
|
|
17646
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_apsara83.Dialog.Content, { width: 400, children: [
|
|
17647
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_apsara83.Dialog.Body, { children: [
|
|
17648
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_apsara83.Dialog.Title, { children: "Delete email domain" }),
|
|
17649
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_apsara83.Dialog.Description, { children: "Are you sure you want to delete this email domain?" })
|
|
17642
17650
|
] }),
|
|
17643
|
-
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
|
|
17644
|
-
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
17645
|
-
|
|
17651
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_apsara83.Dialog.Footer, { children: [
|
|
17652
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_apsara83.Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
17653
|
+
import_apsara83.Button,
|
|
17646
17654
|
{
|
|
17647
17655
|
color: "neutral",
|
|
17648
17656
|
variant: "outline",
|
|
@@ -17651,7 +17659,7 @@ var DeleteDomainDialog = ({
|
|
|
17651
17659
|
}
|
|
17652
17660
|
) }),
|
|
17653
17661
|
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
17654
|
-
|
|
17662
|
+
import_apsara83.Button,
|
|
17655
17663
|
{
|
|
17656
17664
|
color: "danger",
|
|
17657
17665
|
"data-test-id": "delete-domain-submit-button",
|
|
@@ -17666,9 +17674,9 @@ var DeleteDomainDialog = ({
|
|
|
17666
17674
|
] });
|
|
17667
17675
|
};
|
|
17668
17676
|
var DomainItem = ({ domain }) => {
|
|
17669
|
-
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
|
|
17670
|
-
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
|
|
17671
|
-
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
17677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_apsara83.Flex, { className: security_module_css_default3["domains-list-item"], justify: "between", children: [
|
|
17678
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_apsara83.Flex, { gap: 3, children: [
|
|
17679
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_apsara83.Text, { size: 3, children: domain?.name }),
|
|
17672
17680
|
domain.state === "verified" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
17673
17681
|
CheckCircledIcon,
|
|
17674
17682
|
{
|
|
@@ -17683,14 +17691,14 @@ var DomainsList = ({
|
|
|
17683
17691
|
isLoading,
|
|
17684
17692
|
domains = []
|
|
17685
17693
|
}) => {
|
|
17686
|
-
return isLoading ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
17694
|
+
return isLoading ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_apsara83.Flex, { direction: "column", className: security_module_css_default3["domains-list"], children: [...Array(3)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
17687
17695
|
Skeleton,
|
|
17688
17696
|
{
|
|
17689
17697
|
height: 20,
|
|
17690
17698
|
style: { margin: "var(--rs-space-5) 0" }
|
|
17691
17699
|
},
|
|
17692
17700
|
index
|
|
17693
|
-
)) }) : domains.length ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
17701
|
+
)) }) : domains.length ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_apsara83.Flex, { direction: "column", className: security_module_css_default3["domains-list"], children: domains.map((domain) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
17694
17702
|
DomainItem,
|
|
17695
17703
|
{
|
|
17696
17704
|
domain
|
|
@@ -17706,13 +17714,13 @@ var import_protobuf22 = require("@bufbuild/protobuf");
|
|
|
17706
17714
|
var import_react56 = require("react");
|
|
17707
17715
|
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
17708
17716
|
var AddDomainSection = () => {
|
|
17709
|
-
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
17710
|
-
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
17711
|
-
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
17712
|
-
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
17717
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_apsara84.Flex, { gap: 5, justify: "between", children: [
|
|
17718
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_apsara84.Flex, { direction: "column", gap: 3, children: [
|
|
17719
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_apsara84.Text, { size: 5, children: "Allowed email domains" }),
|
|
17720
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_apsara84.Text, { size: 3, variant: "secondary", children: "Anyone with an email address at these domains is allowed to sign up for this workspace." })
|
|
17713
17721
|
] }),
|
|
17714
|
-
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
17715
|
-
|
|
17722
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_apsara84.Tooltip, { message: "Coming soon", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
17723
|
+
import_apsara84.Button,
|
|
17716
17724
|
{
|
|
17717
17725
|
variant: "outline",
|
|
17718
17726
|
color: "neutral",
|
|
@@ -17739,16 +17747,16 @@ var OrganizationSecurity = () => {
|
|
|
17739
17747
|
);
|
|
17740
17748
|
(0, import_react56.useEffect)(() => {
|
|
17741
17749
|
if (error) {
|
|
17742
|
-
|
|
17750
|
+
import_apsara84.toast.error("Something went wrong", {
|
|
17743
17751
|
description: "Unable to fetch domains"
|
|
17744
17752
|
});
|
|
17745
17753
|
console.error("Unable to fetch domains:", error);
|
|
17746
17754
|
}
|
|
17747
17755
|
}, [error]);
|
|
17748
17756
|
const title = `Security | ${organization?.title} | Organizations`;
|
|
17749
|
-
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
17757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_apsara84.Flex, { justify: "center", className: security_module_css_default2["container"], children: [
|
|
17750
17758
|
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(PageTitle, { title }),
|
|
17751
|
-
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
|
|
17759
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_apsara84.Flex, { className: security_module_css_default2["content"], direction: "column", gap: 9, children: [
|
|
17752
17760
|
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(AddDomainSection, {}),
|
|
17753
17761
|
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
17754
17762
|
DomainsList,
|
|
@@ -17757,17 +17765,17 @@ var OrganizationSecurity = () => {
|
|
|
17757
17765
|
domains: domains ?? []
|
|
17758
17766
|
}
|
|
17759
17767
|
),
|
|
17760
|
-
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
17768
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_apsara84.Separator, {}),
|
|
17761
17769
|
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(BlockOrganizationSection, {})
|
|
17762
17770
|
] })
|
|
17763
17771
|
] });
|
|
17764
17772
|
};
|
|
17765
17773
|
|
|
17766
17774
|
// admin/views/organizations/details/members/index.tsx
|
|
17767
|
-
var
|
|
17775
|
+
var import_apsara87 = require("@raystack/apsara");
|
|
17768
17776
|
|
|
17769
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17770
|
-
var digest59 = "
|
|
17777
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-M7DAvhg68EKa/sdk/admin/views/organizations/details/members/members.module.css.js
|
|
17778
|
+
var digest59 = "2e9901fb79aa4874bac058ccee7d0e490df79e9e891151d7b0307b2d55168ae7";
|
|
17771
17779
|
var css59 = `._container_6bi1j_1 {
|
|
17772
17780
|
width: 100%;
|
|
17773
17781
|
}
|
|
@@ -17822,10 +17830,10 @@ var members_module_css_default = { "container": "_container_6bi1j_1", "name-colu
|
|
|
17822
17830
|
var import_react58 = require("react");
|
|
17823
17831
|
|
|
17824
17832
|
// admin/views/organizations/details/members/columns.tsx
|
|
17825
|
-
var
|
|
17833
|
+
var import_apsara85 = require("@raystack/apsara");
|
|
17826
17834
|
|
|
17827
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17828
|
-
var digest60 = "
|
|
17835
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-pcQ3qKmr0Bk9/sdk/admin/views/organizations/details/members/members.module.css.js
|
|
17836
|
+
var digest60 = "f0fb07adc517da13b90e7d527ac99134cf3204700855e3c0c1c69dbf34d17c4b";
|
|
17829
17837
|
var css60 = `._container_6bi1j_1 {
|
|
17830
17838
|
width: 100%;
|
|
17831
17839
|
}
|
|
@@ -17906,17 +17914,17 @@ var getColumns12 = ({
|
|
|
17906
17914
|
},
|
|
17907
17915
|
cell: ({ row }) => {
|
|
17908
17916
|
const nameInitial = row.original.title?.[0] || row?.original?.email?.[0];
|
|
17909
|
-
const avatarColor = (0,
|
|
17910
|
-
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
17917
|
+
const avatarColor = (0, import_apsara85.getAvatarColor)(row?.original?.id || "");
|
|
17918
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_apsara85.Flex, { gap: 4, align: "center", children: [
|
|
17911
17919
|
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
17912
|
-
|
|
17920
|
+
import_apsara85.Avatar,
|
|
17913
17921
|
{
|
|
17914
17922
|
src: row.original.avatar,
|
|
17915
17923
|
fallback: nameInitial,
|
|
17916
17924
|
color: avatarColor
|
|
17917
17925
|
}
|
|
17918
17926
|
),
|
|
17919
|
-
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
17927
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_apsara85.Text, { children: row.original.title || "-" })
|
|
17920
17928
|
] });
|
|
17921
17929
|
},
|
|
17922
17930
|
enableColumnFilter: true,
|
|
@@ -17964,7 +17972,7 @@ var getColumns12 = ({
|
|
|
17964
17972
|
cell: ({ getValue }) => {
|
|
17965
17973
|
const value = getValue();
|
|
17966
17974
|
const date = isNullTimestamp(value) ? "-" : (0, import_dayjs12.default)(timestampToDate(value)).format("YYYY-MM-DD");
|
|
17967
|
-
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
17975
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_apsara85.Text, { children: date });
|
|
17968
17976
|
},
|
|
17969
17977
|
enableSorting: true,
|
|
17970
17978
|
enableHiding: true
|
|
@@ -17979,11 +17987,11 @@ var getColumns12 = ({
|
|
|
17979
17987
|
cell: members_module_css_default2["table-action-column"]
|
|
17980
17988
|
},
|
|
17981
17989
|
cell: ({ row }) => {
|
|
17982
|
-
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
17983
|
-
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
17984
|
-
/* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
17990
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_apsara85.DropdownMenu, { children: [
|
|
17991
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_apsara85.DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(DotsHorizontalIcon, {}) }),
|
|
17992
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_apsara85.DropdownMenu.Content, { className: members_module_css_default2["table-action-dropdown"], children: [
|
|
17985
17993
|
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
17986
|
-
|
|
17994
|
+
import_apsara85.DropdownMenu.Item,
|
|
17987
17995
|
{
|
|
17988
17996
|
onClick: () => handleAssignRoleAction(row.original),
|
|
17989
17997
|
"data-test-id": "admin-assign-role-action",
|
|
@@ -17991,7 +17999,7 @@ var getColumns12 = ({
|
|
|
17991
17999
|
}
|
|
17992
18000
|
),
|
|
17993
18001
|
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
17994
|
-
|
|
18002
|
+
import_apsara85.DropdownMenu.Item,
|
|
17995
18003
|
{
|
|
17996
18004
|
onClick: () => handleRemoveMemberAction(row.original),
|
|
17997
18005
|
"data-test-id": "admin-remove-member-action",
|
|
@@ -18014,7 +18022,7 @@ var import_react_query15 = require("@tanstack/react-query");
|
|
|
18014
18022
|
var import_frontier39 = require("@raystack/proton/frontier");
|
|
18015
18023
|
var import_protobuf23 = require("@bufbuild/protobuf");
|
|
18016
18024
|
var import_connect_query35 = require("@connectrpc/connect-query");
|
|
18017
|
-
var
|
|
18025
|
+
var import_apsara86 = require("@raystack/apsara");
|
|
18018
18026
|
var import_connect2 = require("@connectrpc/connect");
|
|
18019
18027
|
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
18020
18028
|
var RemoveMember = ({
|
|
@@ -18039,25 +18047,25 @@ var RemoveMember = ({
|
|
|
18039
18047
|
if (onRemove) {
|
|
18040
18048
|
onRemove(user);
|
|
18041
18049
|
}
|
|
18042
|
-
|
|
18050
|
+
import_apsara86.toast.success("Member removed successfully");
|
|
18043
18051
|
} catch (error) {
|
|
18044
18052
|
const message = error instanceof import_connect2.ConnectError ? error.message : "Unknown error";
|
|
18045
|
-
|
|
18053
|
+
import_apsara86.toast.error(`Failed to remove member: ${message}`);
|
|
18046
18054
|
console.error(error);
|
|
18047
18055
|
}
|
|
18048
18056
|
}
|
|
18049
|
-
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
18050
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
|
|
18051
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
18052
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
18057
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_apsara86.Dialog, { open: true, onOpenChange: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_apsara86.Dialog.Content, { width: 400, children: [
|
|
18058
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_apsara86.Dialog.Header, { children: [
|
|
18059
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_apsara86.Dialog.Title, { children: "Remove Member" }),
|
|
18060
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_apsara86.Dialog.CloseButton, { "data-test-id": "remove-member-close-button" })
|
|
18053
18061
|
] }),
|
|
18054
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
18055
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
18056
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
18062
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_apsara86.Dialog.Body, { children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_apsara86.Flex, { direction: "column", gap: 7, children: [
|
|
18063
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_apsara86.Text, { variant: "secondary", children: "Removing this member will revoke all their access to the organization. This action cannot be undone. The member will lose all assigned roles and permissions immediately." }),
|
|
18064
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_apsara86.Text, { variant: "secondary", children: "Are you sure you want to remove this member?" })
|
|
18057
18065
|
] }) }),
|
|
18058
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
|
|
18059
|
-
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
18060
|
-
|
|
18066
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_apsara86.Dialog.Footer, { children: [
|
|
18067
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_apsara86.Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
18068
|
+
import_apsara86.Button,
|
|
18061
18069
|
{
|
|
18062
18070
|
type: "button",
|
|
18063
18071
|
variant: "outline",
|
|
@@ -18067,7 +18075,7 @@ var RemoveMember = ({
|
|
|
18067
18075
|
}
|
|
18068
18076
|
) }),
|
|
18069
18077
|
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
18070
|
-
|
|
18078
|
+
import_apsara86.Button,
|
|
18071
18079
|
{
|
|
18072
18080
|
type: "submit",
|
|
18073
18081
|
"data-test-id": "remove-member-submit-button",
|
|
@@ -18142,7 +18150,7 @@ function useDebounceValue(initialValue, delay, options) {
|
|
|
18142
18150
|
|
|
18143
18151
|
// admin/views/organizations/details/members/index.tsx
|
|
18144
18152
|
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
18145
|
-
var DEFAULT_SORT5 = { name: "
|
|
18153
|
+
var DEFAULT_SORT5 = { name: "orgJoinedAt", order: "desc" };
|
|
18146
18154
|
var INITIAL_QUERY5 = {
|
|
18147
18155
|
offset: 0,
|
|
18148
18156
|
limit: DEFAULT_PAGE_SIZE
|
|
@@ -18157,7 +18165,7 @@ var TRANSFORM_OPTIONS2 = {
|
|
|
18157
18165
|
};
|
|
18158
18166
|
var NoMembers = () => {
|
|
18159
18167
|
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
18160
|
-
|
|
18168
|
+
import_apsara87.EmptyState,
|
|
18161
18169
|
{
|
|
18162
18170
|
classNames: {
|
|
18163
18171
|
container: members_module_css_default["empty-state"],
|
|
@@ -18171,7 +18179,7 @@ var NoMembers = () => {
|
|
|
18171
18179
|
};
|
|
18172
18180
|
var ErrorState = () => {
|
|
18173
18181
|
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
18174
|
-
|
|
18182
|
+
import_apsara87.EmptyState,
|
|
18175
18183
|
{
|
|
18176
18184
|
classNames: {
|
|
18177
18185
|
container: members_module_css_default["empty-state"],
|
|
@@ -18297,10 +18305,10 @@ function OrganizationMembersView() {
|
|
|
18297
18305
|
onClose: closeRemoveMemberDialog
|
|
18298
18306
|
}
|
|
18299
18307
|
) : null,
|
|
18300
|
-
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
18308
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_apsara87.Flex, { justify: "center", className: members_module_css_default["container"], children: [
|
|
18301
18309
|
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(PageTitle, { title }),
|
|
18302
18310
|
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
18303
|
-
|
|
18311
|
+
import_apsara87.DataTable,
|
|
18304
18312
|
{
|
|
18305
18313
|
columns,
|
|
18306
18314
|
data,
|
|
@@ -18310,10 +18318,10 @@ function OrganizationMembersView() {
|
|
|
18310
18318
|
onTableQueryChange,
|
|
18311
18319
|
onLoadMore: fetchMore,
|
|
18312
18320
|
query: tableQuery,
|
|
18313
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
|
|
18314
|
-
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
18321
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_apsara87.Flex, { direction: "column", style: { width: "100%" }, children: [
|
|
18322
|
+
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_apsara87.DataTable.Toolbar, {}),
|
|
18315
18323
|
/* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
18316
|
-
|
|
18324
|
+
import_apsara87.DataTable.Content,
|
|
18317
18325
|
{
|
|
18318
18326
|
emptyState: isError ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ErrorState, {}) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(NoMembers, {}),
|
|
18319
18327
|
classNames: {
|
|
@@ -18331,10 +18339,10 @@ function OrganizationMembersView() {
|
|
|
18331
18339
|
}
|
|
18332
18340
|
|
|
18333
18341
|
// admin/views/organizations/details/projects/index.tsx
|
|
18334
|
-
var
|
|
18342
|
+
var import_apsara96 = require("@raystack/apsara");
|
|
18335
18343
|
|
|
18336
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18337
|
-
var digest61 = "
|
|
18344
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-OqER8GoZpDkr/sdk/admin/views/organizations/details/projects/projects.module.css.js
|
|
18345
|
+
var digest61 = "f3d1d0ba1ecee22fd572fc40666b8a0a21e60eb8372c14164a4ef7a620d9e4e0";
|
|
18338
18346
|
var css61 = `._container_1rf4u_1 {
|
|
18339
18347
|
width: 100%;
|
|
18340
18348
|
}
|
|
@@ -18394,10 +18402,10 @@ var projects_module_css_default = { "container": "_container_1rf4u_1", "title-co
|
|
|
18394
18402
|
var import_react64 = require("react");
|
|
18395
18403
|
|
|
18396
18404
|
// admin/views/organizations/details/projects/columns.tsx
|
|
18397
|
-
var
|
|
18405
|
+
var import_apsara90 = require("@raystack/apsara");
|
|
18398
18406
|
|
|
18399
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18400
|
-
var digest62 = "
|
|
18407
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-pHfPy0rbybJY/sdk/admin/views/organizations/details/projects/projects.module.css.js
|
|
18408
|
+
var digest62 = "0410b4d89708296564bcd2b732c63494808401639e9d0dc6f65e1ccf6e96591e";
|
|
18401
18409
|
var css62 = `._container_1rf4u_1 {
|
|
18402
18410
|
width: 100%;
|
|
18403
18411
|
}
|
|
@@ -18457,7 +18465,7 @@ var projects_module_css_default2 = { "container": "_container_1rf4u_1", "title-c
|
|
|
18457
18465
|
var import_dayjs13 = __toESM(require("dayjs"));
|
|
18458
18466
|
|
|
18459
18467
|
// admin/views/organizations/details/projects/rename-project.tsx
|
|
18460
|
-
var
|
|
18468
|
+
var import_apsara88 = require("@raystack/apsara");
|
|
18461
18469
|
var import_frontier41 = require("@raystack/proton/frontier");
|
|
18462
18470
|
var import_protobuf24 = require("@bufbuild/protobuf");
|
|
18463
18471
|
var import_zod17 = require("@hookform/resolvers/zod");
|
|
@@ -18502,7 +18510,7 @@ function RenameProjectDialog({
|
|
|
18502
18510
|
);
|
|
18503
18511
|
const newProject = resp.project;
|
|
18504
18512
|
if (newProject) {
|
|
18505
|
-
|
|
18513
|
+
import_apsara88.toast.success("Project renamed successfully");
|
|
18506
18514
|
onRename({
|
|
18507
18515
|
...project,
|
|
18508
18516
|
title: newProject.title,
|
|
@@ -18510,28 +18518,28 @@ function RenameProjectDialog({
|
|
|
18510
18518
|
});
|
|
18511
18519
|
}
|
|
18512
18520
|
} catch (error) {
|
|
18513
|
-
|
|
18521
|
+
import_apsara88.toast.error("Failed to rename project");
|
|
18514
18522
|
console.error(error);
|
|
18515
18523
|
}
|
|
18516
18524
|
};
|
|
18517
|
-
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
18518
|
-
|
|
18525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_apsara88.Dialog, { open: true, onOpenChange: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
18526
|
+
import_apsara88.Dialog.Content,
|
|
18519
18527
|
{
|
|
18520
18528
|
width: 400,
|
|
18521
18529
|
onClick: preventClickPropagation,
|
|
18522
18530
|
"data-test-id": "rename-project-dialog",
|
|
18523
18531
|
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("form", { onSubmit: handleSubmit(submit), children: [
|
|
18524
|
-
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
18525
|
-
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
18526
|
-
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
18532
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_apsara88.Dialog.Header, { children: [
|
|
18533
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_apsara88.Dialog.Title, { children: "Rename Project" }),
|
|
18534
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_apsara88.Dialog.CloseButton, { "data-test-id": "rename-project-close-button" })
|
|
18527
18535
|
] }),
|
|
18528
|
-
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
18536
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_apsara88.Dialog.Body, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_apsara88.Flex, { direction: "column", gap: 5, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
18529
18537
|
import_react_hook_form12.Controller,
|
|
18530
18538
|
{
|
|
18531
18539
|
name: "title",
|
|
18532
18540
|
control,
|
|
18533
18541
|
render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
18534
|
-
|
|
18542
|
+
import_apsara88.InputField,
|
|
18535
18543
|
{
|
|
18536
18544
|
...field,
|
|
18537
18545
|
label: "Project name",
|
|
@@ -18541,9 +18549,9 @@ function RenameProjectDialog({
|
|
|
18541
18549
|
)
|
|
18542
18550
|
}
|
|
18543
18551
|
) }) }),
|
|
18544
|
-
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
|
|
18545
|
-
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
18546
|
-
|
|
18552
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_apsara88.Dialog.Footer, { children: [
|
|
18553
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_apsara88.Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
18554
|
+
import_apsara88.Button,
|
|
18547
18555
|
{
|
|
18548
18556
|
type: "button",
|
|
18549
18557
|
variant: "outline",
|
|
@@ -18553,7 +18561,7 @@ function RenameProjectDialog({
|
|
|
18553
18561
|
}
|
|
18554
18562
|
) }),
|
|
18555
18563
|
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
18556
|
-
|
|
18564
|
+
import_apsara88.Button,
|
|
18557
18565
|
{
|
|
18558
18566
|
type: "submit",
|
|
18559
18567
|
"data-test-id": "rename-project-update-button",
|
|
@@ -18573,7 +18581,7 @@ var import_react60 = require("react");
|
|
|
18573
18581
|
|
|
18574
18582
|
// admin/views/organizations/details/projects/use-add-project-members.tsx
|
|
18575
18583
|
var import_react59 = require("react");
|
|
18576
|
-
var
|
|
18584
|
+
var import_apsara89 = require("@raystack/apsara");
|
|
18577
18585
|
var import_connect_query38 = require("@connectrpc/connect-query");
|
|
18578
18586
|
var import_frontier42 = require("@raystack/proton/frontier");
|
|
18579
18587
|
var import_protobuf25 = require("@bufbuild/protobuf");
|
|
@@ -18623,12 +18631,12 @@ function useAddProjectMembers({ projectId }) {
|
|
|
18623
18631
|
}
|
|
18624
18632
|
})
|
|
18625
18633
|
);
|
|
18626
|
-
|
|
18634
|
+
import_apsara89.toast.success("member added");
|
|
18627
18635
|
await refetch();
|
|
18628
18636
|
return projectMembers;
|
|
18629
18637
|
} catch (error) {
|
|
18630
18638
|
console.error(error);
|
|
18631
|
-
|
|
18639
|
+
import_apsara89.toast.error("Something went wrong");
|
|
18632
18640
|
}
|
|
18633
18641
|
},
|
|
18634
18642
|
[projectId, createPolicy, refetch, projectMembers]
|
|
@@ -18646,9 +18654,9 @@ function useAddProjectMembers({ projectId }) {
|
|
|
18646
18654
|
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
18647
18655
|
var DropdownLoader = () => {
|
|
18648
18656
|
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_jsx_runtime95.Fragment, { children: [
|
|
18649
|
-
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
18650
|
-
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
18651
|
-
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
18657
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_apsara90.DropdownMenu.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Skeleton, { containerClassName: projects_module_css_default2["flex1"] }) }),
|
|
18658
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_apsara90.DropdownMenu.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Skeleton, { containerClassName: projects_module_css_default2["flex1"] }) }),
|
|
18659
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_apsara90.DropdownMenu.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Skeleton, { containerClassName: projects_module_css_default2["flex1"] }) })
|
|
18652
18660
|
] });
|
|
18653
18661
|
};
|
|
18654
18662
|
function AddMemberDropdown({
|
|
@@ -18658,28 +18666,28 @@ function AddMemberDropdown({
|
|
|
18658
18666
|
setSearchQuery
|
|
18659
18667
|
}) {
|
|
18660
18668
|
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
18661
|
-
|
|
18669
|
+
import_apsara90.DropdownMenu,
|
|
18662
18670
|
{
|
|
18663
18671
|
autocomplete: true,
|
|
18664
18672
|
autocompleteMode: "manual",
|
|
18665
18673
|
onSearch: setSearchQuery,
|
|
18666
18674
|
children: [
|
|
18667
|
-
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
18668
|
-
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
18669
|
-
|
|
18675
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_apsara90.DropdownMenu.TriggerItem, { "data-test-id": "add-members", children: "Add member" }),
|
|
18676
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_apsara90.DropdownMenu.Content, { children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DropdownLoader, {}) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_jsx_runtime95.Fragment, { children: eligibleMembers?.slice(0, 5).map((user) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
18677
|
+
import_apsara90.DropdownMenu.Item,
|
|
18670
18678
|
{
|
|
18671
18679
|
onClick: onAddMember(user?.id || ""),
|
|
18672
18680
|
"data-test-id": `admin-add-member-${user.id}`,
|
|
18673
18681
|
leadingIcon: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
18674
|
-
|
|
18682
|
+
import_apsara90.Avatar,
|
|
18675
18683
|
{
|
|
18676
18684
|
src: user.avatar,
|
|
18677
18685
|
fallback: user?.title?.[0] || user?.email?.[0],
|
|
18678
18686
|
radius: "full",
|
|
18679
|
-
color: (0,
|
|
18687
|
+
color: (0, import_apsara90.getAvatarColor)(user.id || "")
|
|
18680
18688
|
}
|
|
18681
18689
|
),
|
|
18682
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
18690
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_apsara90.Text, { children: user.title || user.email })
|
|
18683
18691
|
},
|
|
18684
18692
|
user.id
|
|
18685
18693
|
)) }) })
|
|
@@ -18719,7 +18727,7 @@ function ProjectActionsContent({
|
|
|
18719
18727
|
}
|
|
18720
18728
|
),
|
|
18721
18729
|
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
18722
|
-
|
|
18730
|
+
import_apsara90.DropdownMenu.Item,
|
|
18723
18731
|
{
|
|
18724
18732
|
onClick: handleRenameOptionClick,
|
|
18725
18733
|
"data-test-id": "rename-project",
|
|
@@ -18755,8 +18763,8 @@ function ProjectActions({
|
|
|
18755
18763
|
onRename: handleProjectUpdate
|
|
18756
18764
|
}
|
|
18757
18765
|
) : null,
|
|
18758
|
-
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
18759
|
-
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
18766
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_apsara90.DropdownMenu, { open, onOpenChange: handleOpen, children: [
|
|
18767
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_apsara90.DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
18760
18768
|
DotsHorizontalIcon,
|
|
18761
18769
|
{
|
|
18762
18770
|
onClick: preventClickBubbling,
|
|
@@ -18764,7 +18772,7 @@ function ProjectActions({
|
|
|
18764
18772
|
}
|
|
18765
18773
|
) }),
|
|
18766
18774
|
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
18767
|
-
|
|
18775
|
+
import_apsara90.DropdownMenu.Content,
|
|
18768
18776
|
{
|
|
18769
18777
|
className: projects_module_css_default2["table-action-dropdown"],
|
|
18770
18778
|
unmountOnHide: true,
|
|
@@ -18794,7 +18802,7 @@ var getColumns13 = ({
|
|
|
18794
18802
|
header: projects_module_css_default2["title-column"]
|
|
18795
18803
|
},
|
|
18796
18804
|
cell: ({ row }) => {
|
|
18797
|
-
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
18805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_apsara90.Flex, { gap: 4, align: "center", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_apsara90.Text, { children: row.original.title || "-" }) });
|
|
18798
18806
|
},
|
|
18799
18807
|
enableColumnFilter: true,
|
|
18800
18808
|
enableSorting: true
|
|
@@ -18813,12 +18821,12 @@ var getColumns13 = ({
|
|
|
18813
18821
|
enableHiding: true,
|
|
18814
18822
|
cell: ({ getValue }) => {
|
|
18815
18823
|
const user_ids = getValue() || [];
|
|
18816
|
-
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
18824
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_apsara90.AvatarGroup, { max: 4, children: user_ids.map((id) => {
|
|
18817
18825
|
const user = orgMembersMap[id];
|
|
18818
18826
|
const message = user?.title || user?.email || id;
|
|
18819
|
-
const avatarColor = (0,
|
|
18827
|
+
const avatarColor = (0, import_apsara90.getAvatarColor)(user?.id || "");
|
|
18820
18828
|
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
18821
|
-
|
|
18829
|
+
import_apsara90.Avatar,
|
|
18822
18830
|
{
|
|
18823
18831
|
src: user?.avatar,
|
|
18824
18832
|
fallback: message?.[0],
|
|
@@ -18868,15 +18876,15 @@ var import_frontier46 = require("@raystack/proton/frontier");
|
|
|
18868
18876
|
var import_connect_query42 = require("@connectrpc/connect-query");
|
|
18869
18877
|
|
|
18870
18878
|
// admin/views/organizations/details/projects/members/index.tsx
|
|
18871
|
-
var
|
|
18879
|
+
var import_apsara95 = require("@raystack/apsara");
|
|
18872
18880
|
var import_react63 = require("react");
|
|
18873
18881
|
var import_frontier45 = require("@raystack/proton/frontier");
|
|
18874
18882
|
var import_protobuf28 = require("@bufbuild/protobuf");
|
|
18875
18883
|
var import_connect_query41 = require("@connectrpc/connect-query");
|
|
18876
18884
|
var import_hooks4 = require("@raystack/apsara/hooks");
|
|
18877
18885
|
|
|
18878
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18879
|
-
var digest63 = "
|
|
18886
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-YBzK148hgrQ7/sdk/admin/views/organizations/details/projects/members/members.module.css.js
|
|
18887
|
+
var digest63 = "95fa2f308b20e9088dc3bcbb640162aeba8f5443661b74ee4ede5b02f1fc18bc";
|
|
18880
18888
|
var css63 = `._flex1_nxqqi_1 {
|
|
18881
18889
|
flex: 1;
|
|
18882
18890
|
}
|
|
@@ -18969,8 +18977,8 @@ var css63 = `._flex1_nxqqi_1 {
|
|
|
18969
18977
|
})();
|
|
18970
18978
|
var members_module_css_default3 = { "flex1": "_flex1_nxqqi_1", "dialog-content": "_dialog-content_nxqqi_5", "dialogContent": "_dialog-content_nxqqi_5", "dialog-body": "_dialog-body_nxqqi_10", "dialogBody": "_dialog-body_nxqqi_10", "empty-state": "_empty-state_nxqqi_14", "emptyState": "_empty-state_nxqqi_14", "empty-state-subheading": "_empty-state-subheading_nxqqi_18", "emptyStateSubheading": "_empty-state-subheading_nxqqi_18", "table": "_table_nxqqi_23", "table-wrapper": "_table-wrapper_nxqqi_29", "tableWrapper": "_table-wrapper_nxqqi_29", "table-header": "_table-header_nxqqi_35", "tableHeader": "_table-header_nxqqi_35", "table-search": "_table-search_nxqqi_40", "tableSearch": "_table-search_nxqqi_40", "table-content-wrapper": "_table-content-wrapper_nxqqi_44", "tableContentWrapper": "_table-content-wrapper_nxqqi_44", "table-action-column": "_table-action-column_nxqqi_48", "tableActionColumn": "_table-action-column_nxqqi_48", "table-action-dropdown": "_table-action-dropdown_nxqqi_52", "tableActionDropdown": "_table-action-dropdown_nxqqi_52", "action-dialog-overlay": "_action-dialog-overlay_nxqqi_57", "actionDialogOverlay": "_action-dialog-overlay_nxqqi_57", "action-dialog-content": "_action-dialog-content_nxqqi_61", "actionDialogContent": "_action-dialog-content_nxqqi_61", "add-member-dropdown": "_add-member-dropdown_nxqqi_65", "addMemberDropdown": "_add-member-dropdown_nxqqi_65", "add-member-dropdown-member": "_add-member-dropdown-member_nxqqi_70", "addMemberDropdownMember": "_add-member-dropdown-member_nxqqi_70", "add-member-dropdown-member-name": "_add-member-dropdown-member-name_nxqqi_73", "addMemberDropdownMemberName": "_add-member-dropdown-member-name_nxqqi_73" };
|
|
18971
18979
|
|
|
18972
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18973
|
-
var digest64 = "
|
|
18980
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-5b3K43H746ph/sdk/admin/views/organizations/details/projects/members/members.module.css.js
|
|
18981
|
+
var digest64 = "0f2d771679dfda16971ab9bccb9e847647a7e4dde51136ca80f4e17669e852ee";
|
|
18974
18982
|
var css64 = `._flex1_nxqqi_1 {
|
|
18975
18983
|
flex: 1;
|
|
18976
18984
|
}
|
|
@@ -19064,7 +19072,7 @@ var css64 = `._flex1_nxqqi_1 {
|
|
|
19064
19072
|
var members_module_css_default4 = { "flex1": "_flex1_nxqqi_1", "dialog-content": "_dialog-content_nxqqi_5", "dialogContent": "_dialog-content_nxqqi_5", "dialog-body": "_dialog-body_nxqqi_10", "dialogBody": "_dialog-body_nxqqi_10", "empty-state": "_empty-state_nxqqi_14", "emptyState": "_empty-state_nxqqi_14", "empty-state-subheading": "_empty-state-subheading_nxqqi_18", "emptyStateSubheading": "_empty-state-subheading_nxqqi_18", "table": "_table_nxqqi_23", "table-wrapper": "_table-wrapper_nxqqi_29", "tableWrapper": "_table-wrapper_nxqqi_29", "table-header": "_table-header_nxqqi_35", "tableHeader": "_table-header_nxqqi_35", "table-search": "_table-search_nxqqi_40", "tableSearch": "_table-search_nxqqi_40", "table-content-wrapper": "_table-content-wrapper_nxqqi_44", "tableContentWrapper": "_table-content-wrapper_nxqqi_44", "table-action-column": "_table-action-column_nxqqi_48", "tableActionColumn": "_table-action-column_nxqqi_48", "table-action-dropdown": "_table-action-dropdown_nxqqi_52", "tableActionDropdown": "_table-action-dropdown_nxqqi_52", "action-dialog-overlay": "_action-dialog-overlay_nxqqi_57", "actionDialogOverlay": "_action-dialog-overlay_nxqqi_57", "action-dialog-content": "_action-dialog-content_nxqqi_61", "actionDialogContent": "_action-dialog-content_nxqqi_61", "add-member-dropdown": "_add-member-dropdown_nxqqi_65", "addMemberDropdown": "_add-member-dropdown_nxqqi_65", "add-member-dropdown-member": "_add-member-dropdown-member_nxqqi_70", "addMemberDropdownMember": "_add-member-dropdown-member_nxqqi_70", "add-member-dropdown-member-name": "_add-member-dropdown-member-name_nxqqi_73", "addMemberDropdownMemberName": "_add-member-dropdown-member-name_nxqqi_73" };
|
|
19065
19073
|
|
|
19066
19074
|
// admin/views/organizations/details/projects/members/columns.tsx
|
|
19067
|
-
var
|
|
19075
|
+
var import_apsara91 = require("@raystack/apsara");
|
|
19068
19076
|
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
19069
19077
|
var getColumns14 = ({
|
|
19070
19078
|
handleAssignRoleAction,
|
|
@@ -19089,17 +19097,17 @@ var getColumns14 = ({
|
|
|
19089
19097
|
},
|
|
19090
19098
|
cell: ({ row }) => {
|
|
19091
19099
|
const nameInitial = row.original.title?.[0] || row?.original?.email?.[0];
|
|
19092
|
-
const avatarColor = (0,
|
|
19093
|
-
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
|
|
19100
|
+
const avatarColor = (0, import_apsara91.getAvatarColor)(row?.original?.id || "");
|
|
19101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_apsara91.Flex, { gap: 4, align: "center", children: [
|
|
19094
19102
|
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
19095
|
-
|
|
19103
|
+
import_apsara91.Avatar,
|
|
19096
19104
|
{
|
|
19097
19105
|
src: row.original.avatar,
|
|
19098
19106
|
fallback: nameInitial,
|
|
19099
19107
|
color: avatarColor
|
|
19100
19108
|
}
|
|
19101
19109
|
),
|
|
19102
|
-
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
19110
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_apsara91.Text, { children: row.original.title || "-" })
|
|
19103
19111
|
] });
|
|
19104
19112
|
},
|
|
19105
19113
|
enableColumnFilter: true,
|
|
@@ -19118,7 +19126,7 @@ var getColumns14 = ({
|
|
|
19118
19126
|
header: "Role",
|
|
19119
19127
|
cell: ({ getValue }) => {
|
|
19120
19128
|
const ids = getValue() || [];
|
|
19121
|
-
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
19129
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_apsara91.Text, { children: ids.map((id) => roleMap[id]).join(", ") || "-" });
|
|
19122
19130
|
}
|
|
19123
19131
|
},
|
|
19124
19132
|
{
|
|
@@ -19129,16 +19137,16 @@ var getColumns14 = ({
|
|
|
19129
19137
|
cell: members_module_css_default4["table-action-column"]
|
|
19130
19138
|
},
|
|
19131
19139
|
cell: ({ row }) => {
|
|
19132
|
-
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
|
|
19133
|
-
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
19140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_apsara91.DropdownMenu, { placement: "bottom-end", children: [
|
|
19141
|
+
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_apsara91.DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(DotsHorizontalIcon, {}) }),
|
|
19134
19142
|
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
|
|
19135
|
-
|
|
19143
|
+
import_apsara91.DropdownMenu.Content,
|
|
19136
19144
|
{
|
|
19137
19145
|
className: members_module_css_default4["table-action-dropdown"],
|
|
19138
19146
|
portal: false,
|
|
19139
19147
|
children: [
|
|
19140
19148
|
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
19141
|
-
|
|
19149
|
+
import_apsara91.DropdownMenu.Item,
|
|
19142
19150
|
{
|
|
19143
19151
|
onClick: () => handleAssignRoleAction(row.original),
|
|
19144
19152
|
"data-test-id": "admin-assign-role-action",
|
|
@@ -19146,7 +19154,7 @@ var getColumns14 = ({
|
|
|
19146
19154
|
}
|
|
19147
19155
|
),
|
|
19148
19156
|
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
19149
|
-
|
|
19157
|
+
import_apsara91.DropdownMenu.Item,
|
|
19150
19158
|
{
|
|
19151
19159
|
onClick: () => handleRemoveAction(row.original),
|
|
19152
19160
|
"data-test-id": "admin-remove-user-action",
|
|
@@ -19163,10 +19171,10 @@ var getColumns14 = ({
|
|
|
19163
19171
|
};
|
|
19164
19172
|
|
|
19165
19173
|
// admin/views/organizations/details/projects/members/assign-role.tsx
|
|
19166
|
-
var
|
|
19174
|
+
var import_apsara92 = require("@raystack/apsara");
|
|
19167
19175
|
|
|
19168
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19169
|
-
var digest65 = "
|
|
19176
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-jvz1TEwoj0ZY/sdk/admin/views/organizations/details/projects/members/members.module.css.js
|
|
19177
|
+
var digest65 = "47d94386bd197fce7ccff32d51343a12af51004188dd1572ec3d563a97fb128f";
|
|
19170
19178
|
var css65 = `._flex1_nxqqi_1 {
|
|
19171
19179
|
flex: 1;
|
|
19172
19180
|
}
|
|
@@ -19360,33 +19368,33 @@ var AssignRole2 = ({
|
|
|
19360
19368
|
roleIds: assignedRolesArr
|
|
19361
19369
|
});
|
|
19362
19370
|
}
|
|
19363
|
-
|
|
19371
|
+
import_apsara92.toast.success("Role assigned successfully");
|
|
19364
19372
|
} catch (error) {
|
|
19365
|
-
|
|
19373
|
+
import_apsara92.toast.error("Failed to assign role");
|
|
19366
19374
|
console.error(error);
|
|
19367
19375
|
}
|
|
19368
19376
|
};
|
|
19369
|
-
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
19370
|
-
|
|
19377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_apsara92.Dialog, { open: true, onOpenChange: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
19378
|
+
import_apsara92.Dialog.Content,
|
|
19371
19379
|
{
|
|
19372
19380
|
width: 400,
|
|
19373
19381
|
overlayClassName: members_module_css_default5["action-dialog-overlay"],
|
|
19374
19382
|
className: members_module_css_default5["action-dialog-content"],
|
|
19375
19383
|
children: [
|
|
19376
|
-
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
19377
|
-
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
19378
|
-
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
19384
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_apsara92.Dialog.Header, { children: [
|
|
19385
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_apsara92.Dialog.Title, { children: "Assign Role" }),
|
|
19386
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_apsara92.Dialog.CloseButton, { "data-test-id": "assign-role-close-button" })
|
|
19379
19387
|
] }),
|
|
19380
19388
|
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("form", { onSubmit: handleSubmit(onSubmit), noValidate: true, children: [
|
|
19381
|
-
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
19382
|
-
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
19383
|
-
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { role: "group", "aria-labelledby": "roles-group", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
19389
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_apsara92.Dialog.Body, { children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_apsara92.Flex, { direction: "column", gap: 7, children: [
|
|
19390
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_apsara92.Text, { variant: "secondary", children: "Taking this action may result in changes in the role which might lead to changes in access of the user." }),
|
|
19391
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { role: "group", "aria-labelledby": "roles-group", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_apsara92.Flex, { direction: "column", gap: 4, children: [
|
|
19384
19392
|
roles.map((role) => {
|
|
19385
19393
|
const htmlId = `role-${role.id}`;
|
|
19386
19394
|
const checked = checkRole(role.id);
|
|
19387
|
-
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
19395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_apsara92.Flex, { gap: 3, children: [
|
|
19388
19396
|
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
19389
|
-
|
|
19397
|
+
import_apsara92.Checkbox,
|
|
19390
19398
|
{
|
|
19391
19399
|
id: htmlId,
|
|
19392
19400
|
"data-test-id": `role-checkbox-${role.id}`,
|
|
@@ -19394,15 +19402,15 @@ var AssignRole2 = ({
|
|
|
19394
19402
|
onCheckedChange: (value) => onCheckedChange(value, role.id)
|
|
19395
19403
|
}
|
|
19396
19404
|
),
|
|
19397
|
-
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
19405
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_apsara92.Label, { htmlFor: htmlId, children: role.title })
|
|
19398
19406
|
] }, role.id);
|
|
19399
19407
|
}),
|
|
19400
|
-
errors.roleIds && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
19408
|
+
errors.roleIds && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_apsara92.Text, { variant: "danger", children: errors.roleIds.message })
|
|
19401
19409
|
] }) })
|
|
19402
19410
|
] }) }),
|
|
19403
|
-
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
19404
|
-
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
19405
|
-
|
|
19411
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_apsara92.Dialog.Footer, { children: [
|
|
19412
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_apsara92.Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
19413
|
+
import_apsara92.Button,
|
|
19406
19414
|
{
|
|
19407
19415
|
type: "button",
|
|
19408
19416
|
variant: "outline",
|
|
@@ -19412,7 +19420,7 @@ var AssignRole2 = ({
|
|
|
19412
19420
|
}
|
|
19413
19421
|
) }),
|
|
19414
19422
|
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
19415
|
-
|
|
19423
|
+
import_apsara92.Button,
|
|
19416
19424
|
{
|
|
19417
19425
|
type: "submit",
|
|
19418
19426
|
"data-test-id": "assign-role-update-button",
|
|
@@ -19435,8 +19443,8 @@ var import_protobuf27 = require("@bufbuild/protobuf");
|
|
|
19435
19443
|
var import_connect_query40 = require("@connectrpc/connect-query");
|
|
19436
19444
|
var import_connect4 = require("@connectrpc/connect");
|
|
19437
19445
|
|
|
19438
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19439
|
-
var digest66 = "
|
|
19446
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-KE42uIo6v5j8/sdk/admin/views/organizations/details/projects/members/members.module.css.js
|
|
19447
|
+
var digest66 = "d3d85277342eedd56663a4f3fa157f996f9b997a2931da3d11277e2500ac6b91";
|
|
19440
19448
|
var css66 = `._flex1_nxqqi_1 {
|
|
19441
19449
|
flex: 1;
|
|
19442
19450
|
}
|
|
@@ -19530,7 +19538,7 @@ var css66 = `._flex1_nxqqi_1 {
|
|
|
19530
19538
|
var members_module_css_default6 = { "flex1": "_flex1_nxqqi_1", "dialog-content": "_dialog-content_nxqqi_5", "dialogContent": "_dialog-content_nxqqi_5", "dialog-body": "_dialog-body_nxqqi_10", "dialogBody": "_dialog-body_nxqqi_10", "empty-state": "_empty-state_nxqqi_14", "emptyState": "_empty-state_nxqqi_14", "empty-state-subheading": "_empty-state-subheading_nxqqi_18", "emptyStateSubheading": "_empty-state-subheading_nxqqi_18", "table": "_table_nxqqi_23", "table-wrapper": "_table-wrapper_nxqqi_29", "tableWrapper": "_table-wrapper_nxqqi_29", "table-header": "_table-header_nxqqi_35", "tableHeader": "_table-header_nxqqi_35", "table-search": "_table-search_nxqqi_40", "tableSearch": "_table-search_nxqqi_40", "table-content-wrapper": "_table-content-wrapper_nxqqi_44", "tableContentWrapper": "_table-content-wrapper_nxqqi_44", "table-action-column": "_table-action-column_nxqqi_48", "tableActionColumn": "_table-action-column_nxqqi_48", "table-action-dropdown": "_table-action-dropdown_nxqqi_52", "tableActionDropdown": "_table-action-dropdown_nxqqi_52", "action-dialog-overlay": "_action-dialog-overlay_nxqqi_57", "actionDialogOverlay": "_action-dialog-overlay_nxqqi_57", "action-dialog-content": "_action-dialog-content_nxqqi_61", "actionDialogContent": "_action-dialog-content_nxqqi_61", "add-member-dropdown": "_add-member-dropdown_nxqqi_65", "addMemberDropdown": "_add-member-dropdown_nxqqi_65", "add-member-dropdown-member": "_add-member-dropdown-member_nxqqi_70", "addMemberDropdownMember": "_add-member-dropdown-member_nxqqi_70", "add-member-dropdown-member-name": "_add-member-dropdown-member-name_nxqqi_73", "addMemberDropdownMemberName": "_add-member-dropdown-member-name_nxqqi_73" };
|
|
19531
19539
|
|
|
19532
19540
|
// admin/views/organizations/details/projects/members/remove-member.tsx
|
|
19533
|
-
var
|
|
19541
|
+
var import_apsara93 = require("@raystack/apsara");
|
|
19534
19542
|
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
19535
19543
|
var RemoveMember2 = ({
|
|
19536
19544
|
projectId,
|
|
@@ -19566,32 +19574,32 @@ var RemoveMember2 = ({
|
|
|
19566
19574
|
if (onRemove) {
|
|
19567
19575
|
onRemove(user);
|
|
19568
19576
|
}
|
|
19569
|
-
|
|
19577
|
+
import_apsara93.toast.success("Member removed successfully");
|
|
19570
19578
|
} catch (error) {
|
|
19571
|
-
|
|
19579
|
+
import_apsara93.toast.error("Failed to remove member");
|
|
19572
19580
|
console.error(error);
|
|
19573
19581
|
} finally {
|
|
19574
19582
|
setIsSubmitting(false);
|
|
19575
19583
|
}
|
|
19576
19584
|
}
|
|
19577
|
-
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
19578
|
-
|
|
19585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_apsara93.Dialog, { open: true, onOpenChange: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
|
|
19586
|
+
import_apsara93.Dialog.Content,
|
|
19579
19587
|
{
|
|
19580
19588
|
width: 400,
|
|
19581
19589
|
overlayClassName: members_module_css_default6["action-dialog-overlay"],
|
|
19582
19590
|
className: members_module_css_default6["action-dialog-content"],
|
|
19583
19591
|
children: [
|
|
19584
|
-
/* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
|
|
19585
|
-
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
19586
|
-
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
19592
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_apsara93.Dialog.Header, { children: [
|
|
19593
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_apsara93.Dialog.Title, { children: "Remove Member" }),
|
|
19594
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_apsara93.Dialog.CloseButton, { "data-test-id": "remove-member-close-button" })
|
|
19587
19595
|
] }),
|
|
19588
|
-
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
19589
|
-
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
19590
|
-
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
19596
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_apsara93.Dialog.Body, { children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_apsara93.Flex, { direction: "column", gap: 7, children: [
|
|
19597
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_apsara93.Text, { variant: "secondary", children: "Removing this member will revoke all their access to the project. This action cannot be undone. The member will lose all assigned roles and permissions immediately." }),
|
|
19598
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_apsara93.Text, { variant: "secondary", children: "Are you sure you want to remove this member?" })
|
|
19591
19599
|
] }) }),
|
|
19592
|
-
/* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
|
|
19593
|
-
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
19594
|
-
|
|
19600
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_apsara93.Dialog.Footer, { children: [
|
|
19601
|
+
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_apsara93.Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
19602
|
+
import_apsara93.Button,
|
|
19595
19603
|
{
|
|
19596
19604
|
type: "button",
|
|
19597
19605
|
variant: "outline",
|
|
@@ -19601,7 +19609,7 @@ var RemoveMember2 = ({
|
|
|
19601
19609
|
}
|
|
19602
19610
|
) }),
|
|
19603
19611
|
/* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
19604
|
-
|
|
19612
|
+
import_apsara93.Button,
|
|
19605
19613
|
{
|
|
19606
19614
|
type: "submit",
|
|
19607
19615
|
"data-test-id": "remove-member-submit-button",
|
|
@@ -19619,10 +19627,10 @@ var RemoveMember2 = ({
|
|
|
19619
19627
|
};
|
|
19620
19628
|
|
|
19621
19629
|
// admin/views/organizations/details/projects/members/add-members-dropdown.tsx
|
|
19622
|
-
var
|
|
19630
|
+
var import_apsara94 = require("@raystack/apsara");
|
|
19623
19631
|
|
|
19624
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19625
|
-
var digest67 = "
|
|
19632
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-MU6G5yBWXJgv/sdk/admin/views/organizations/details/projects/members/members.module.css.js
|
|
19633
|
+
var digest67 = "28d761966ec8b477a00f0590de24c61904e8dbeb64ef12ff5b6f9703420f4482";
|
|
19626
19634
|
var css67 = `._flex1_nxqqi_1 {
|
|
19627
19635
|
flex: 1;
|
|
19628
19636
|
}
|
|
@@ -19718,7 +19726,7 @@ var members_module_css_default7 = { "flex1": "_flex1_nxqqi_1", "dialog-content":
|
|
|
19718
19726
|
// admin/views/organizations/details/projects/members/add-members-dropdown.tsx
|
|
19719
19727
|
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
19720
19728
|
function Loader() {
|
|
19721
|
-
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_jsx_runtime99.Fragment, { children: [...new Array(5)].map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
19729
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_jsx_runtime99.Fragment, { children: [...new Array(5)].map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_apsara94.DropdownMenu.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Skeleton, { containerClassName: members_module_css_default7.flex1 }) }, i)) });
|
|
19722
19730
|
}
|
|
19723
19731
|
function AddMembersDropdown({
|
|
19724
19732
|
projectId,
|
|
@@ -19735,35 +19743,35 @@ function AddMembersDropdown({
|
|
|
19735
19743
|
};
|
|
19736
19744
|
}
|
|
19737
19745
|
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
|
|
19738
|
-
|
|
19746
|
+
import_apsara94.DropdownMenu,
|
|
19739
19747
|
{
|
|
19740
19748
|
autocomplete: true,
|
|
19741
19749
|
placement: "bottom-end",
|
|
19742
19750
|
onSearch: setSearchQuery,
|
|
19743
19751
|
autocompleteMode: "manual",
|
|
19744
19752
|
children: [
|
|
19745
|
-
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
19753
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_apsara94.DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_apsara94.Button, { "data-test-id": "add-project-member-btn", children: "Add member" }) }),
|
|
19746
19754
|
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
19747
|
-
|
|
19755
|
+
import_apsara94.DropdownMenu.Content,
|
|
19748
19756
|
{
|
|
19749
19757
|
className: members_module_css_default7["add-member-dropdown"],
|
|
19750
19758
|
portal: false,
|
|
19751
19759
|
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Loader, {}) : /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_jsx_runtime99.Fragment, { children: eligibleMembers?.slice(0, 7).map((user) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
19752
|
-
|
|
19760
|
+
import_apsara94.DropdownMenu.Item,
|
|
19753
19761
|
{
|
|
19754
19762
|
onClick: onAddMember(user?.id || ""),
|
|
19755
19763
|
"data-test-id": `admin-add-member-${user.id}`,
|
|
19756
19764
|
leadingIcon: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
19757
|
-
|
|
19765
|
+
import_apsara94.Avatar,
|
|
19758
19766
|
{
|
|
19759
19767
|
src: user.avatar,
|
|
19760
19768
|
fallback: user?.title?.[0] || user?.email?.[0],
|
|
19761
19769
|
radius: "full",
|
|
19762
|
-
color: (0,
|
|
19770
|
+
color: (0, import_apsara94.getAvatarColor)(user.id || "")
|
|
19763
19771
|
}
|
|
19764
19772
|
),
|
|
19765
19773
|
className: members_module_css_default7["add-member-dropdown-member"],
|
|
19766
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
19774
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_apsara94.Text, { className: members_module_css_default7["add-member-dropdown-member-name"], children: user.title || user.email })
|
|
19767
19775
|
},
|
|
19768
19776
|
user.id
|
|
19769
19777
|
)) })
|
|
@@ -19778,7 +19786,7 @@ function AddMembersDropdown({
|
|
|
19778
19786
|
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
19779
19787
|
var NoMembers2 = () => {
|
|
19780
19788
|
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
19781
|
-
|
|
19789
|
+
import_apsara95.EmptyState,
|
|
19782
19790
|
{
|
|
19783
19791
|
classNames: {
|
|
19784
19792
|
container: members_module_css_default3["empty-state"],
|
|
@@ -19937,13 +19945,13 @@ var ProjectMembersDialog = ({
|
|
|
19937
19945
|
onClose: closeRemoveMemberDialog
|
|
19938
19946
|
}
|
|
19939
19947
|
) : null,
|
|
19940
|
-
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
19941
|
-
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
|
|
19942
|
-
isProjectLoading ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Skeleton, { containerClassName: members_module_css_default3["flex1"], width: "200px" }) : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
19943
|
-
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
19948
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_apsara95.Dialog, { open: true, onOpenChange: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_apsara95.Dialog.Content, { className: members_module_css_default3["dialog-content"], children: [
|
|
19949
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_apsara95.Dialog.Header, { children: [
|
|
19950
|
+
isProjectLoading ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Skeleton, { containerClassName: members_module_css_default3["flex1"], width: "200px" }) : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_apsara95.Dialog.Title, { children: project?.title ?? "" }),
|
|
19951
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_apsara95.Dialog.CloseButton, { "data-test-id": "close-button" })
|
|
19944
19952
|
] }),
|
|
19945
|
-
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
19946
|
-
|
|
19953
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_apsara95.Dialog.Body, { className: members_module_css_default3["dialog-body"], children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
19954
|
+
import_apsara95.DataTable,
|
|
19947
19955
|
{
|
|
19948
19956
|
query: tableQuery.query,
|
|
19949
19957
|
columns,
|
|
@@ -19954,14 +19962,14 @@ var ProjectMembersDialog = ({
|
|
|
19954
19962
|
onTableQueryChange,
|
|
19955
19963
|
onLoadMore: handleLoadMore,
|
|
19956
19964
|
children: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
|
|
19957
|
-
|
|
19965
|
+
import_apsara95.Flex,
|
|
19958
19966
|
{
|
|
19959
19967
|
direction: "column",
|
|
19960
19968
|
gap: 5,
|
|
19961
19969
|
className: members_module_css_default3["table-content-wrapper"],
|
|
19962
19970
|
children: [
|
|
19963
|
-
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
|
|
19964
|
-
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
19971
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_apsara95.Flex, { children: [
|
|
19972
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_apsara95.DataTable.Search, { className: members_module_css_default3["table-search"] }),
|
|
19965
19973
|
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
19966
19974
|
AddMembersDropdown,
|
|
19967
19975
|
{
|
|
@@ -19971,7 +19979,7 @@ var ProjectMembersDialog = ({
|
|
|
19971
19979
|
)
|
|
19972
19980
|
] }),
|
|
19973
19981
|
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
19974
|
-
|
|
19982
|
+
import_apsara95.DataTable.Content,
|
|
19975
19983
|
{
|
|
19976
19984
|
emptyState: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(NoMembers2, {}),
|
|
19977
19985
|
classNames: {
|
|
@@ -19992,7 +20000,7 @@ var ProjectMembersDialog = ({
|
|
|
19992
20000
|
|
|
19993
20001
|
// admin/views/organizations/details/projects/index.tsx
|
|
19994
20002
|
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
19995
|
-
var DEFAULT_SORT6 = { name: "
|
|
20003
|
+
var DEFAULT_SORT6 = { name: "createdAt", order: "desc" };
|
|
19996
20004
|
var INITIAL_QUERY7 = {
|
|
19997
20005
|
offset: 0,
|
|
19998
20006
|
limit: DEFAULT_PAGE_SIZE
|
|
@@ -20006,7 +20014,7 @@ var TRANSFORM_OPTIONS3 = {
|
|
|
20006
20014
|
};
|
|
20007
20015
|
var NoProjects = () => {
|
|
20008
20016
|
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
20009
|
-
|
|
20017
|
+
import_apsara96.EmptyState,
|
|
20010
20018
|
{
|
|
20011
20019
|
classNames: {
|
|
20012
20020
|
container: projects_module_css_default["empty-state"],
|
|
@@ -20020,7 +20028,7 @@ var NoProjects = () => {
|
|
|
20020
20028
|
};
|
|
20021
20029
|
var ErrorState2 = () => {
|
|
20022
20030
|
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
20023
|
-
|
|
20031
|
+
import_apsara96.EmptyState,
|
|
20024
20032
|
{
|
|
20025
20033
|
classNames: {
|
|
20026
20034
|
container: projects_module_css_default["empty-state"],
|
|
@@ -20117,10 +20125,10 @@ function OrganizationProjectsView() {
|
|
|
20117
20125
|
onClose: handleMemberDialogClose
|
|
20118
20126
|
}
|
|
20119
20127
|
) : null,
|
|
20120
|
-
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
|
|
20128
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_apsara96.Flex, { justify: "center", className: projects_module_css_default["container"], children: [
|
|
20121
20129
|
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(PageTitle, { title }),
|
|
20122
20130
|
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
20123
|
-
|
|
20131
|
+
import_apsara96.DataTable,
|
|
20124
20132
|
{
|
|
20125
20133
|
columns,
|
|
20126
20134
|
data,
|
|
@@ -20131,10 +20139,10 @@ function OrganizationProjectsView() {
|
|
|
20131
20139
|
onLoadMore: fetchMore,
|
|
20132
20140
|
query: tableQuery,
|
|
20133
20141
|
onRowClick: handleMemberDialogOpen,
|
|
20134
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
|
|
20135
|
-
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
20142
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_apsara96.Flex, { direction: "column", style: { width: "100%" }, children: [
|
|
20143
|
+
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_apsara96.DataTable.Toolbar, {}),
|
|
20136
20144
|
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
20137
|
-
|
|
20145
|
+
import_apsara96.DataTable.Content,
|
|
20138
20146
|
{
|
|
20139
20147
|
emptyState: isError ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ErrorState2, {}) : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(NoProjects, {}),
|
|
20140
20148
|
classNames: {
|
|
@@ -20152,10 +20160,10 @@ function OrganizationProjectsView() {
|
|
|
20152
20160
|
}
|
|
20153
20161
|
|
|
20154
20162
|
// admin/views/organizations/details/invoices/index.tsx
|
|
20155
|
-
var
|
|
20163
|
+
var import_apsara98 = require("@raystack/apsara");
|
|
20156
20164
|
|
|
20157
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20158
|
-
var digest68 = "
|
|
20165
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-45alHCPscyKU/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
|
|
20166
|
+
var digest68 = "a57d6d0d7c41b6c63708134cf0a8d251a850ce535174d8072023a04747c389ac";
|
|
20159
20167
|
var css68 = `._empty-state_ct7gw_1 {
|
|
20160
20168
|
height: 100%;
|
|
20161
20169
|
}
|
|
@@ -20201,8 +20209,8 @@ var invoices_module_css_default3 = { "empty-state": "_empty-state_ct7gw_1", "emp
|
|
|
20201
20209
|
// admin/views/organizations/details/invoices/index.tsx
|
|
20202
20210
|
var import_react65 = require("react");
|
|
20203
20211
|
|
|
20204
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20205
|
-
var digest69 = "
|
|
20212
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-tgVZ2Kd1eIgQ/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
|
|
20213
|
+
var digest69 = "dbfd958a11362d654a675fcdbc009f6e18db0842f8473a1fcfc62b7c6626b7fd";
|
|
20206
20214
|
var css69 = `._empty-state_ct7gw_1 {
|
|
20207
20215
|
height: 100%;
|
|
20208
20216
|
}
|
|
@@ -20247,7 +20255,7 @@ var invoices_module_css_default4 = { "empty-state": "_empty-state_ct7gw_1", "emp
|
|
|
20247
20255
|
|
|
20248
20256
|
// admin/views/organizations/details/invoices/columns.tsx
|
|
20249
20257
|
var import_dayjs14 = __toESM(require("dayjs"));
|
|
20250
|
-
var
|
|
20258
|
+
var import_apsara97 = require("@raystack/apsara");
|
|
20251
20259
|
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
20252
20260
|
var InvoiceStatusesMap = {
|
|
20253
20261
|
draft: "Draft",
|
|
@@ -20299,7 +20307,7 @@ var getColumns15 = ({
|
|
|
20299
20307
|
header: "Amount",
|
|
20300
20308
|
cell: ({ getValue, row }) => {
|
|
20301
20309
|
const value = Number(getValue());
|
|
20302
|
-
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
20310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_apsara97.Amount, { value, currency: row.original.currency });
|
|
20303
20311
|
},
|
|
20304
20312
|
enableSorting: true,
|
|
20305
20313
|
enableHiding: true,
|
|
@@ -20311,7 +20319,7 @@ var getColumns15 = ({
|
|
|
20311
20319
|
header: "",
|
|
20312
20320
|
cell: ({ getValue }) => {
|
|
20313
20321
|
const value = getValue();
|
|
20314
|
-
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
20322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_apsara97.Link, { href: value, target: "_blank", "data-test-id": "invoice-link", children: "View Invoice" });
|
|
20315
20323
|
}
|
|
20316
20324
|
}
|
|
20317
20325
|
];
|
|
@@ -20320,7 +20328,7 @@ var getColumns15 = ({
|
|
|
20320
20328
|
var import_frontier47 = require("@raystack/proton/frontier");
|
|
20321
20329
|
var import_connect_query43 = require("@connectrpc/connect-query");
|
|
20322
20330
|
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
20323
|
-
var DEFAULT_SORT7 = { name: "
|
|
20331
|
+
var DEFAULT_SORT7 = { name: "createdAt", order: "desc" };
|
|
20324
20332
|
var INITIAL_QUERY8 = {
|
|
20325
20333
|
offset: 0,
|
|
20326
20334
|
limit: DEFAULT_PAGE_SIZE
|
|
@@ -20339,7 +20347,7 @@ var TRANSFORM_OPTIONS4 = {
|
|
|
20339
20347
|
};
|
|
20340
20348
|
var NoInvoices2 = () => {
|
|
20341
20349
|
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
20342
|
-
|
|
20350
|
+
import_apsara98.EmptyState,
|
|
20343
20351
|
{
|
|
20344
20352
|
classNames: {
|
|
20345
20353
|
container: invoices_module_css_default3["empty-state"],
|
|
@@ -20353,7 +20361,7 @@ var NoInvoices2 = () => {
|
|
|
20353
20361
|
};
|
|
20354
20362
|
var ErrorState3 = () => {
|
|
20355
20363
|
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
20356
|
-
|
|
20364
|
+
import_apsara98.EmptyState,
|
|
20357
20365
|
{
|
|
20358
20366
|
classNames: {
|
|
20359
20367
|
container: invoices_module_css_default3["empty-state"],
|
|
@@ -20426,10 +20434,10 @@ function OrganizationInvoicesView() {
|
|
|
20426
20434
|
};
|
|
20427
20435
|
}, [setSearchVisibility, onSearchChange]);
|
|
20428
20436
|
const columns = getColumns15({ groupCountMap });
|
|
20429
|
-
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
|
|
20437
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_apsara98.Flex, { justify: "center", className: invoices_module_css_default3["container"], children: [
|
|
20430
20438
|
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(PageTitle, { title }),
|
|
20431
20439
|
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
20432
|
-
|
|
20440
|
+
import_apsara98.DataTable,
|
|
20433
20441
|
{
|
|
20434
20442
|
columns,
|
|
20435
20443
|
data,
|
|
@@ -20439,10 +20447,10 @@ function OrganizationInvoicesView() {
|
|
|
20439
20447
|
onTableQueryChange,
|
|
20440
20448
|
onLoadMore: fetchMore,
|
|
20441
20449
|
query: tableQuery,
|
|
20442
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
|
|
20443
|
-
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
20450
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_apsara98.Flex, { direction: "column", style: { width: "100%" }, children: [
|
|
20451
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_apsara98.DataTable.Toolbar, {}),
|
|
20444
20452
|
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
20445
|
-
|
|
20453
|
+
import_apsara98.DataTable.Content,
|
|
20446
20454
|
{
|
|
20447
20455
|
emptyState: isError ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(ErrorState3, {}) : /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(NoInvoices2, {}),
|
|
20448
20456
|
classNames: {
|
|
@@ -20459,10 +20467,10 @@ function OrganizationInvoicesView() {
|
|
|
20459
20467
|
}
|
|
20460
20468
|
|
|
20461
20469
|
// admin/views/organizations/details/tokens/index.tsx
|
|
20462
|
-
var
|
|
20470
|
+
var import_apsara100 = require("@raystack/apsara");
|
|
20463
20471
|
|
|
20464
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20465
|
-
var digest70 = "
|
|
20472
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-rVUQvBOsgv9K/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
|
|
20473
|
+
var digest70 = "12bed687a6846e482c7979082148383911ab3372b8f8b7a21d07efda87a0dd0b";
|
|
20466
20474
|
var css70 = `._empty-state_ct7gw_1 {
|
|
20467
20475
|
height: 100%;
|
|
20468
20476
|
}
|
|
@@ -20511,8 +20519,8 @@ var import_react66 = require("react");
|
|
|
20511
20519
|
var import_frontier48 = require("@raystack/proton/frontier");
|
|
20512
20520
|
var import_connect_query44 = require("@connectrpc/connect-query");
|
|
20513
20521
|
|
|
20514
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20515
|
-
var digest71 = "
|
|
20522
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-ue28b7nNQr7g/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
|
|
20523
|
+
var digest71 = "0fbacd0a38685c0257fb1adc764969cca0c490bdbc97d37de9f10c7332796d1d";
|
|
20516
20524
|
var css71 = `._empty-state_ct7gw_1 {
|
|
20517
20525
|
height: 100%;
|
|
20518
20526
|
}
|
|
@@ -20557,7 +20565,7 @@ var tokens_module_css_default2 = { "empty-state": "_empty-state_ct7gw_1", "empty
|
|
|
20557
20565
|
|
|
20558
20566
|
// admin/views/organizations/details/tokens/columns.tsx
|
|
20559
20567
|
var import_dayjs15 = __toESM(require("dayjs"));
|
|
20560
|
-
var
|
|
20568
|
+
var import_apsara99 = require("@raystack/apsara");
|
|
20561
20569
|
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
20562
20570
|
var getColumns16 = () => {
|
|
20563
20571
|
return [
|
|
@@ -20603,17 +20611,17 @@ var getColumns16 = () => {
|
|
|
20603
20611
|
cell: ({ row, getValue }) => {
|
|
20604
20612
|
const userId = getValue() || "";
|
|
20605
20613
|
const title = row.original.userTitle || userId;
|
|
20606
|
-
const avatarColor = (0,
|
|
20607
|
-
return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
|
|
20614
|
+
const avatarColor = (0, import_apsara99.getAvatarColor)(userId);
|
|
20615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_apsara99.Flex, { gap: 4, align: "center", children: [
|
|
20608
20616
|
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
20609
|
-
|
|
20617
|
+
import_apsara99.Avatar,
|
|
20610
20618
|
{
|
|
20611
20619
|
src: row.original.userAvatar,
|
|
20612
20620
|
fallback: title?.[0],
|
|
20613
20621
|
color: avatarColor
|
|
20614
20622
|
}
|
|
20615
20623
|
),
|
|
20616
|
-
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
20624
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_apsara99.Text, { children: title })
|
|
20617
20625
|
] });
|
|
20618
20626
|
},
|
|
20619
20627
|
enableHiding: true
|
|
@@ -20623,7 +20631,7 @@ var getColumns16 = () => {
|
|
|
20623
20631
|
|
|
20624
20632
|
// admin/views/organizations/details/tokens/index.tsx
|
|
20625
20633
|
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
20626
|
-
var DEFAULT_SORT8 = { name: "
|
|
20634
|
+
var DEFAULT_SORT8 = { name: "createdAt", order: "desc" };
|
|
20627
20635
|
var INITIAL_QUERY9 = {
|
|
20628
20636
|
offset: 0,
|
|
20629
20637
|
limit: DEFAULT_PAGE_SIZE
|
|
@@ -20641,7 +20649,7 @@ var TRANSFORM_OPTIONS5 = {
|
|
|
20641
20649
|
};
|
|
20642
20650
|
var NoTokens = () => {
|
|
20643
20651
|
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
20644
|
-
|
|
20652
|
+
import_apsara100.EmptyState,
|
|
20645
20653
|
{
|
|
20646
20654
|
classNames: {
|
|
20647
20655
|
container: tokens_module_css_default["empty-state"],
|
|
@@ -20655,7 +20663,7 @@ var NoTokens = () => {
|
|
|
20655
20663
|
};
|
|
20656
20664
|
var ErrorState4 = () => {
|
|
20657
20665
|
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
20658
|
-
|
|
20666
|
+
import_apsara100.EmptyState,
|
|
20659
20667
|
{
|
|
20660
20668
|
classNames: {
|
|
20661
20669
|
container: tokens_module_css_default["empty-state"],
|
|
@@ -20727,10 +20735,10 @@ function OrganizationTokensView() {
|
|
|
20727
20735
|
};
|
|
20728
20736
|
}, [setSearchVisibility, onSearchChange]);
|
|
20729
20737
|
const columns = (0, import_react66.useMemo)(() => getColumns16(), []);
|
|
20730
|
-
return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
|
|
20738
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_apsara100.Flex, { justify: "center", children: [
|
|
20731
20739
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(PageTitle, { title }),
|
|
20732
20740
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
20733
|
-
|
|
20741
|
+
import_apsara100.DataTable,
|
|
20734
20742
|
{
|
|
20735
20743
|
columns,
|
|
20736
20744
|
data,
|
|
@@ -20740,10 +20748,10 @@ function OrganizationTokensView() {
|
|
|
20740
20748
|
onTableQueryChange,
|
|
20741
20749
|
onLoadMore: fetchMore,
|
|
20742
20750
|
query: tableQuery,
|
|
20743
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
|
|
20744
|
-
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
20751
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_apsara100.Flex, { direction: "column", style: { width: "100%" }, children: [
|
|
20752
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_apsara100.DataTable.Toolbar, {}),
|
|
20745
20753
|
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
20746
|
-
|
|
20754
|
+
import_apsara100.DataTable.Content,
|
|
20747
20755
|
{
|
|
20748
20756
|
emptyState: isError ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ErrorState4, {}) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(NoTokens, {}),
|
|
20749
20757
|
classNames: {
|
|
@@ -20760,10 +20768,10 @@ function OrganizationTokensView() {
|
|
|
20760
20768
|
}
|
|
20761
20769
|
|
|
20762
20770
|
// admin/views/organizations/details/apis/index.tsx
|
|
20763
|
-
var
|
|
20771
|
+
var import_apsara103 = require("@raystack/apsara");
|
|
20764
20772
|
|
|
20765
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20766
|
-
var digest72 = "
|
|
20773
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-UAVkpgYG4zZj/sdk/admin/views/organizations/details/apis/apis.module.css.js
|
|
20774
|
+
var digest72 = "547292ae83d89e642ce7e3113b850f6e6ffbcbfc482bb65ac133423abe5f9af4";
|
|
20767
20775
|
var css72 = `._empty-state_r9k2f_1 {
|
|
20768
20776
|
height: 100%;
|
|
20769
20777
|
}
|
|
@@ -20845,11 +20853,11 @@ var apis_module_css_default = { "empty-state": "_empty-state_r9k2f_1", "emptySta
|
|
|
20845
20853
|
var import_react68 = require("react");
|
|
20846
20854
|
|
|
20847
20855
|
// admin/views/organizations/details/apis/columns.tsx
|
|
20848
|
-
var
|
|
20856
|
+
var import_apsara101 = require("@raystack/apsara");
|
|
20849
20857
|
var import_dayjs16 = __toESM(require("dayjs"));
|
|
20850
20858
|
|
|
20851
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20852
|
-
var digest73 = "
|
|
20859
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-6sOUa7QExNYr/sdk/admin/views/organizations/details/apis/apis.module.css.js
|
|
20860
|
+
var digest73 = "660ff7d7e29a20f17b8d9357a17ca45f835a7f2fccd404308f0b5f895d945eb7";
|
|
20853
20861
|
var css73 = `._empty-state_r9k2f_1 {
|
|
20854
20862
|
height: 100%;
|
|
20855
20863
|
}
|
|
@@ -20940,7 +20948,7 @@ function getColumns17(options) {
|
|
|
20940
20948
|
},
|
|
20941
20949
|
cell: ({ getValue }) => {
|
|
20942
20950
|
const value = getValue();
|
|
20943
|
-
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
20951
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_apsara101.Text, { children: value });
|
|
20944
20952
|
},
|
|
20945
20953
|
enableColumnFilter: true
|
|
20946
20954
|
},
|
|
@@ -20950,7 +20958,7 @@ function getColumns17(options) {
|
|
|
20950
20958
|
cell: ({ getValue }) => {
|
|
20951
20959
|
const value = getValue();
|
|
20952
20960
|
const projectNames = value.map((project) => project.title).join(", ");
|
|
20953
|
-
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
20961
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_apsara101.Text, { children: projectNames });
|
|
20954
20962
|
},
|
|
20955
20963
|
enableColumnFilter: true
|
|
20956
20964
|
},
|
|
@@ -20970,10 +20978,10 @@ function getColumns17(options) {
|
|
|
20970
20978
|
}
|
|
20971
20979
|
|
|
20972
20980
|
// admin/views/organizations/details/apis/details-dialog.tsx
|
|
20973
|
-
var
|
|
20981
|
+
var import_apsara102 = require("@raystack/apsara");
|
|
20974
20982
|
|
|
20975
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20976
|
-
var digest74 = "
|
|
20983
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2490-fr43vDD66MMH/sdk/admin/views/organizations/details/apis/apis.module.css.js
|
|
20984
|
+
var digest74 = "9e7386d71b85f3381fac76ea39b814ef027083fd6c849dbf02c41c589a8f0968";
|
|
20977
20985
|
var css74 = `._empty-state_r9k2f_1 {
|
|
20978
20986
|
height: 100%;
|
|
20979
20987
|
}
|
|
@@ -21094,13 +21102,13 @@ var ServiceUserDetailsDialog = ({
|
|
|
21094
21102
|
});
|
|
21095
21103
|
(0, import_react67.useEffect)(() => {
|
|
21096
21104
|
if (projectError) {
|
|
21097
|
-
|
|
21105
|
+
import_apsara102.toast.error("Something went wrong", {
|
|
21098
21106
|
description: "Unable to fetch projects"
|
|
21099
21107
|
});
|
|
21100
21108
|
console.error("Unable to fetch projects:", projectError);
|
|
21101
21109
|
}
|
|
21102
21110
|
if (tokenError) {
|
|
21103
|
-
|
|
21111
|
+
import_apsara102.toast.error("Something went wrong", {
|
|
21104
21112
|
description: "Unable to fetch tokens"
|
|
21105
21113
|
});
|
|
21106
21114
|
console.error("Unable to fetch tokens:", tokenError);
|
|
@@ -21114,58 +21122,58 @@ var ServiceUserDetailsDialog = ({
|
|
|
21114
21122
|
},
|
|
21115
21123
|
[onClose]
|
|
21116
21124
|
);
|
|
21117
|
-
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
21118
|
-
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
21119
|
-
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
21120
|
-
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
21125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_apsara102.Dialog, { open: id !== "", onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_apsara102.Dialog.Content, { className: apis_module_css_default3["details-dialog"], children: [
|
|
21126
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_apsara102.Dialog.Header, { children: [
|
|
21127
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_apsara102.Dialog.Title, { children: title }),
|
|
21128
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_apsara102.Dialog.CloseButton, {})
|
|
21121
21129
|
] }),
|
|
21122
|
-
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
21123
|
-
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
21124
|
-
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
21130
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_apsara102.Dialog.Body, { className: apis_module_css_default3["dialog-body"], children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_apsara102.Tabs, { defaultValue: "keys", className: apis_module_css_default3["tab-root"], children: [
|
|
21131
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_apsara102.Tabs.List, { children: [
|
|
21132
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_apsara102.Tabs.Trigger, { value: "keys", children: [
|
|
21125
21133
|
"API keys",
|
|
21126
21134
|
" ",
|
|
21127
21135
|
!isTokenLoading && tokens.length > 0 ? `(${tokens.length})` : ""
|
|
21128
21136
|
] }),
|
|
21129
|
-
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
21137
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_apsara102.Tabs.Trigger, { value: "projects", children: [
|
|
21130
21138
|
"Projects",
|
|
21131
21139
|
" ",
|
|
21132
21140
|
!isProjectLoading && projects.length > 0 ? `(${projects.length})` : ""
|
|
21133
21141
|
] })
|
|
21134
21142
|
] }),
|
|
21135
|
-
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
21136
|
-
|
|
21143
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_apsara102.Tabs.Content, { value: "keys", className: apis_module_css_default3["tab-content"], children: isTokenLoading ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
21144
|
+
import_apsara102.Skeleton,
|
|
21137
21145
|
{
|
|
21138
21146
|
containerClassName: apis_module_css_default3["skeleton"],
|
|
21139
21147
|
height: 24,
|
|
21140
21148
|
count: 10
|
|
21141
21149
|
}
|
|
21142
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
21143
|
-
|
|
21150
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_apsara102.Flex, { direction: "column", children: tokens.map((token) => /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
21151
|
+
import_apsara102.Flex,
|
|
21144
21152
|
{
|
|
21145
21153
|
direction: "column",
|
|
21146
21154
|
className: apis_module_css_default3["list-item"],
|
|
21147
21155
|
gap: 2,
|
|
21148
21156
|
children: [
|
|
21149
|
-
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
21150
|
-
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
21157
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_apsara102.Text, { weight: "medium", children: token.title }),
|
|
21158
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_apsara102.Text, { size: "micro", children: timestampToDayjs(token.createdAt)?.format("YYYY-MM-DD") })
|
|
21151
21159
|
]
|
|
21152
21160
|
},
|
|
21153
21161
|
token.id
|
|
21154
21162
|
)) }) }),
|
|
21155
|
-
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
21156
|
-
|
|
21163
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_apsara102.Tabs.Content, { value: "projects", className: apis_module_css_default3["tab-content"], children: isProjectLoading ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
21164
|
+
import_apsara102.Skeleton,
|
|
21157
21165
|
{
|
|
21158
21166
|
containerClassName: apis_module_css_default3["skeleton"],
|
|
21159
21167
|
height: 24,
|
|
21160
21168
|
count: 10
|
|
21161
21169
|
}
|
|
21162
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
21163
|
-
|
|
21170
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_apsara102.Flex, { direction: "column", children: projects.map((project) => /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
21171
|
+
import_apsara102.Flex,
|
|
21164
21172
|
{
|
|
21165
21173
|
direction: "column",
|
|
21166
21174
|
className: apis_module_css_default3["list-item"],
|
|
21167
21175
|
gap: 2,
|
|
21168
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
21176
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_apsara102.Text, { weight: "medium", children: project.title })
|
|
21169
21177
|
},
|
|
21170
21178
|
project.id
|
|
21171
21179
|
)) }) })
|
|
@@ -21179,7 +21187,7 @@ var import_frontier50 = require("@raystack/proton/frontier");
|
|
|
21179
21187
|
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
21180
21188
|
var NoCredentials = () => {
|
|
21181
21189
|
return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
21182
|
-
|
|
21190
|
+
import_apsara103.EmptyState,
|
|
21183
21191
|
{
|
|
21184
21192
|
classNames: {
|
|
21185
21193
|
container: apis_module_css_default["empty-state"],
|
|
@@ -21193,7 +21201,7 @@ var NoCredentials = () => {
|
|
|
21193
21201
|
};
|
|
21194
21202
|
var ErrorState5 = () => {
|
|
21195
21203
|
return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
21196
|
-
|
|
21204
|
+
import_apsara103.EmptyState,
|
|
21197
21205
|
{
|
|
21198
21206
|
classNames: {
|
|
21199
21207
|
container: apis_module_css_default["empty-state"],
|
|
@@ -21205,7 +21213,7 @@ var ErrorState5 = () => {
|
|
|
21205
21213
|
}
|
|
21206
21214
|
);
|
|
21207
21215
|
};
|
|
21208
|
-
var DEFAULT_SORT9 = { name: "
|
|
21216
|
+
var DEFAULT_SORT9 = { name: "createdAt", order: "desc" };
|
|
21209
21217
|
var INITIAL_QUERY10 = {
|
|
21210
21218
|
offset: 0,
|
|
21211
21219
|
limit: DEFAULT_PAGE_SIZE
|
|
@@ -21300,7 +21308,7 @@ function OrganizationApisView() {
|
|
|
21300
21308
|
}),
|
|
21301
21309
|
[infiniteData]
|
|
21302
21310
|
);
|
|
21303
|
-
return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
|
|
21311
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_apsara103.Flex, { justify: "center", className: apis_module_css_default["container"], children: [
|
|
21304
21312
|
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
21305
21313
|
ServiceUserDetailsDialog,
|
|
21306
21314
|
{
|
|
@@ -21310,7 +21318,7 @@ function OrganizationApisView() {
|
|
|
21310
21318
|
),
|
|
21311
21319
|
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(PageTitle, { title }),
|
|
21312
21320
|
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
21313
|
-
|
|
21321
|
+
import_apsara103.DataTable,
|
|
21314
21322
|
{
|
|
21315
21323
|
query: tableQuery,
|
|
21316
21324
|
columns,
|
|
@@ -21321,10 +21329,10 @@ function OrganizationApisView() {
|
|
|
21321
21329
|
mode: "server",
|
|
21322
21330
|
onLoadMore: handleLoadMore,
|
|
21323
21331
|
onRowClick,
|
|
21324
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
|
|
21325
|
-
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
21332
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_apsara103.Flex, { direction: "column", style: { width: "100%" }, children: [
|
|
21333
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_apsara103.DataTable.Toolbar, {}),
|
|
21326
21334
|
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
21327
|
-
|
|
21335
|
+
import_apsara103.DataTable.Content,
|
|
21328
21336
|
{
|
|
21329
21337
|
emptyState: isError ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(ErrorState5, {}) : /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(NoCredentials, {}),
|
|
21330
21338
|
classNames: {
|