@raystack/frontier 0.106.1 → 0.107.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/dist/index.js +568 -248
- package/admin/dist/index.mjs +647 -327
- package/client/dist/index.d.ts +64 -34
- package/client/dist/index.js +242 -173
- package/client/dist/index.mjs +242 -173
- package/package.json +1 -1
package/admin/dist/index.mjs
CHANGED
|
@@ -196,8 +196,8 @@ function convertBillingAddressToString(address) {
|
|
|
196
196
|
// admin/views/roles/columns.tsx
|
|
197
197
|
import { Flex } from "@raystack/apsara";
|
|
198
198
|
|
|
199
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
200
|
-
var digest = "
|
|
199
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-DjHT59T4L5tK/sdk/admin/views/roles/roles.module.css.js
|
|
200
|
+
var digest = "984350f989ef8b70cdcc77777714ba936170c14edaacec263ceec744c985b184";
|
|
201
201
|
var css = `._tableRoot_1d549_1 {
|
|
202
202
|
width: 100%;
|
|
203
203
|
}
|
|
@@ -603,6 +603,24 @@ var MagnifyingGlassIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef
|
|
|
603
603
|
clipRule: "evenodd"
|
|
604
604
|
}));
|
|
605
605
|
});
|
|
606
|
+
var _excluded$3n = ["color"];
|
|
607
|
+
var Pencil1Icon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
608
|
+
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$3n);
|
|
609
|
+
return createElement("svg", Object.assign({
|
|
610
|
+
width: "15",
|
|
611
|
+
height: "15",
|
|
612
|
+
viewBox: "0 0 15 15",
|
|
613
|
+
fill: "none",
|
|
614
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
615
|
+
}, props, {
|
|
616
|
+
ref: forwardedRef
|
|
617
|
+
}), createElement("path", {
|
|
618
|
+
d: "M11.8536 1.14645C11.6583 0.951184 11.3417 0.951184 11.1465 1.14645L3.71455 8.57836C3.62459 8.66832 3.55263 8.77461 3.50251 8.89155L2.04044 12.303C1.9599 12.491 2.00189 12.709 2.14646 12.8536C2.29103 12.9981 2.50905 13.0401 2.69697 12.9596L6.10847 11.4975C6.2254 11.4474 6.3317 11.3754 6.42166 11.2855L13.8536 3.85355C14.0488 3.65829 14.0488 3.34171 13.8536 3.14645L11.8536 1.14645ZM4.42166 9.28547L11.5 2.20711L12.7929 3.5L5.71455 10.5784L4.21924 11.2192L3.78081 10.7808L4.42166 9.28547Z",
|
|
619
|
+
fill: color,
|
|
620
|
+
fillRule: "evenodd",
|
|
621
|
+
clipRule: "evenodd"
|
|
622
|
+
}));
|
|
623
|
+
});
|
|
606
624
|
var _excluded$3x = ["color"];
|
|
607
625
|
var PlusIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
608
626
|
var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$3x);
|
|
@@ -697,8 +715,8 @@ var UploadIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
|
|
|
697
715
|
// admin/components/PageHeader.tsx
|
|
698
716
|
import { Flex as Flex2, Text } from "@raystack/apsara";
|
|
699
717
|
|
|
700
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
701
|
-
var digest2 = "
|
|
718
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-JjsRuOyb4cwF/sdk/admin/components/page-header.module.css.js
|
|
719
|
+
var digest2 = "55be34dd50b12bf3725b6a98030d40b2e0aeebc07c5664d7f5df00622dde3756";
|
|
702
720
|
var css2 = `._breadcrumb_1kaun_1 {
|
|
703
721
|
list-style: none;
|
|
704
722
|
padding: 0;
|
|
@@ -820,8 +838,8 @@ function PageTitle({ title, appName }) {
|
|
|
820
838
|
return null;
|
|
821
839
|
}
|
|
822
840
|
|
|
823
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
824
|
-
var digest3 = "
|
|
841
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-4D1HHecAl5xW/sdk/admin/views/roles/roles.module.css.js
|
|
842
|
+
var digest3 = "8705bfc0a84c515eb680820e05d1a470b1f887ee7eae7db075cc44f864e4e62e";
|
|
825
843
|
var css3 = `._tableRoot_1d549_1 {
|
|
826
844
|
width: 100%;
|
|
827
845
|
}
|
|
@@ -1017,8 +1035,8 @@ import { useState as useState3 } from "react";
|
|
|
1017
1035
|
// admin/views/invoices/navbar.tsx
|
|
1018
1036
|
import { DataTable as DataTable2, Flex as Flex6, IconButton, Text as Text4 } from "@raystack/apsara";
|
|
1019
1037
|
|
|
1020
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1021
|
-
var digest4 = "
|
|
1038
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-Z9U7zO0YjQly/sdk/admin/views/invoices/invoices.module.css.js
|
|
1039
|
+
var digest4 = "fc2f7212b5a26ea443bdb80ad7f7c934a8f325650f93592bc516e52b0b1ae8d7";
|
|
1022
1040
|
var css4 = `._navbar_1o5oc_1 {
|
|
1023
1041
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
1024
1042
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -1136,8 +1154,8 @@ var InvoicesNavabar = ({ searchQuery }) => {
|
|
|
1136
1154
|
] });
|
|
1137
1155
|
};
|
|
1138
1156
|
|
|
1139
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1140
|
-
var digest5 = "
|
|
1157
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-n8i2tMtNSmp3/sdk/admin/views/invoices/invoices.module.css.js
|
|
1158
|
+
var digest5 = "4afb4efaf6fc23c661f28c28d435213233d6ac75f0f8c8b69ae395bf167f77f5";
|
|
1141
1159
|
var css5 = `._navbar_1o5oc_1 {
|
|
1142
1160
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
1143
1161
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -1211,8 +1229,8 @@ function isNullTimestamp(timestamp) {
|
|
|
1211
1229
|
return Number(timestamp.seconds) <= 0;
|
|
1212
1230
|
}
|
|
1213
1231
|
|
|
1214
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1215
|
-
var digest6 = "
|
|
1232
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-ZWK0V1g26Uwu/sdk/admin/views/invoices/invoices.module.css.js
|
|
1233
|
+
var digest6 = "3e7c903de7d43caf13ecf13dac55d9c043bf0d4c783c92e43e4d677a943381e3";
|
|
1216
1234
|
var css6 = `._navbar_1o5oc_1 {
|
|
1217
1235
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
1218
1236
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -1669,8 +1687,8 @@ import { FrontierServiceQueries as FrontierServiceQueries2 } from "@raystack/pro
|
|
|
1669
1687
|
// admin/views/products/columns.tsx
|
|
1670
1688
|
import { Flex as Flex8, Image, Amount as Amount2 } from "@raystack/apsara";
|
|
1671
1689
|
|
|
1672
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1673
|
-
var digest7 = "
|
|
1690
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-4ElmdjE4pHVr/sdk/admin/views/products/products.module.css.js
|
|
1691
|
+
var digest7 = "604876f1ec28ca777b13ae7ed220d4b98ddccac6d5a9618eaefaff13c787e617";
|
|
1674
1692
|
var css7 = `._tableRoot_3ccjp_1 {
|
|
1675
1693
|
width: 100%;
|
|
1676
1694
|
}
|
|
@@ -1839,8 +1857,8 @@ var getColumns3 = (onNavigateToPrices) => {
|
|
|
1839
1857
|
];
|
|
1840
1858
|
};
|
|
1841
1859
|
|
|
1842
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1843
|
-
var digest8 = "
|
|
1860
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-eS8b7dOirYFC/sdk/admin/views/products/products.module.css.js
|
|
1861
|
+
var digest8 = "5520e5cda12870e529ed9b551dcebdf16d8befa2bd759a375fc473568d70baa0";
|
|
1844
1862
|
var css8 = `._tableRoot_3ccjp_1 {
|
|
1845
1863
|
width: 100%;
|
|
1846
1864
|
}
|
|
@@ -1897,8 +1915,8 @@ var products_module_css_default2 = { "tableRoot": "_tableRoot_3ccjp_1", "tableWr
|
|
|
1897
1915
|
// admin/views/products/details.tsx
|
|
1898
1916
|
import { Flex as Flex9, Text as Text6, Grid as Grid2, Drawer as Drawer2 } from "@raystack/apsara";
|
|
1899
1917
|
|
|
1900
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
1901
|
-
var digest9 = "
|
|
1918
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-VQGoRykb33gM/sdk/admin/views/products/products.module.css.js
|
|
1919
|
+
var digest9 = "17265734dcbe85fff22d5baf3c5241fab49b4ea2e2f9ae41152f37c48bbe26b3";
|
|
1902
1920
|
var css9 = `._tableRoot_3ccjp_1 {
|
|
1903
1921
|
width: 100%;
|
|
1904
1922
|
}
|
|
@@ -2095,8 +2113,8 @@ import { FrontierServiceQueries as FrontierServiceQueries3 } from "@raystack/pro
|
|
|
2095
2113
|
// admin/views/products/prices/columns.tsx
|
|
2096
2114
|
import { Amount as Amount3 } from "@raystack/apsara";
|
|
2097
2115
|
|
|
2098
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2099
|
-
var digest10 = "
|
|
2116
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-g77fCrPJAWtQ/sdk/admin/views/products/prices/prices.module.css.js
|
|
2117
|
+
var digest10 = "9cc98b38325014e2355be0db25c0c911c768a4915dcd91290295cd03a6a618ee";
|
|
2100
2118
|
var css10 = `._first-column_6e56r_1 {
|
|
2101
2119
|
padding-left: var(--rs-space-7);
|
|
2102
2120
|
}
|
|
@@ -2198,8 +2216,8 @@ var getColumns4 = (prices) => {
|
|
|
2198
2216
|
];
|
|
2199
2217
|
};
|
|
2200
2218
|
|
|
2201
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2202
|
-
var digest11 = "
|
|
2219
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-iWyLMEPcb87i/sdk/admin/views/products/products.module.css.js
|
|
2220
|
+
var digest11 = "cdf2ccd32b6c08b397737c469f856045533c0d42b5f8f57cb07d688f15fb1f43";
|
|
2203
2221
|
var css11 = `._tableRoot_3ccjp_1 {
|
|
2204
2222
|
width: 100%;
|
|
2205
2223
|
}
|
|
@@ -2361,8 +2379,8 @@ function CpuChipIcon(props) {
|
|
|
2361
2379
|
);
|
|
2362
2380
|
}
|
|
2363
2381
|
|
|
2364
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2365
|
-
var digest12 = "
|
|
2382
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-Jx389qdhIxyj/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
2383
|
+
var digest12 = "aa46f48d6482e6ecab9e57721fad168ee8e4637b4f5d864c8e67e2cc1e4cb7a4";
|
|
2366
2384
|
var css12 = `._navbar_1nr4u_1 {
|
|
2367
2385
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
2368
2386
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -2581,8 +2599,8 @@ var Navbar = ({ searchQuery, onExportCsv }) => {
|
|
|
2581
2599
|
};
|
|
2582
2600
|
var navbar_default = Navbar;
|
|
2583
2601
|
|
|
2584
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2585
|
-
var digest13 = "
|
|
2602
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-1Cdj2fPgh68v/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
2603
|
+
var digest13 = "52d70ba71d38e1846d96b9756e866d5060db80ece3d35d9d7cb226b3ec5d1f2d";
|
|
2586
2604
|
var css13 = `._navbar_1nr4u_1 {
|
|
2587
2605
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
2588
2606
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -2693,8 +2711,8 @@ var audit_logs_module_css_default2 = { "navbar": "_navbar_1nr4u_1", "table": "_t
|
|
|
2693
2711
|
import { Badge, Flex as Flex14, Text as Text9 } from "@raystack/apsara";
|
|
2694
2712
|
import dayjs4 from "dayjs";
|
|
2695
2713
|
|
|
2696
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2697
|
-
var digest14 = "
|
|
2714
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-55e7X8n3qrFE/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
2715
|
+
var digest14 = "2b1bb560f3e91acb943f6bd64ae982f18518e8aa6b5d831448e300d69781dbc8";
|
|
2698
2716
|
var css14 = `._navbar_1nr4u_1 {
|
|
2699
2717
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
2700
2718
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -2960,8 +2978,8 @@ import {
|
|
|
2960
2978
|
import { Flex as Flex16, IconButton as IconButton4, SidePanel } from "@raystack/apsara";
|
|
2961
2979
|
import { List as List3 } from "@raystack/apsara";
|
|
2962
2980
|
|
|
2963
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
2964
|
-
var digest15 = "
|
|
2981
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-MLqD4VdXsreb/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
2982
|
+
var digest15 = "206c157c37f5f2a20124c774bb9085f6b5e681e7f7a82daf299b7a824dd3f624";
|
|
2965
2983
|
var css15 = `._navbar_1nr4u_1 {
|
|
2966
2984
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
2967
2985
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -3099,8 +3117,8 @@ function MapIcon(props) {
|
|
|
3099
3117
|
// admin/views/audit-logs/sidepanel-log-dialog.tsx
|
|
3100
3118
|
import { Dialog, IconButton as IconButton3, CodeBlock } from "@raystack/apsara";
|
|
3101
3119
|
|
|
3102
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3103
|
-
var digest16 = "
|
|
3120
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-ggCeFoWzrg7t/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
3121
|
+
var digest16 = "7012c431f986acfb9a6ace42e8469a7bf1d5b140df38f2005762abdd11c9c332";
|
|
3104
3122
|
var css16 = `._navbar_1nr4u_1 {
|
|
3105
3123
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
3106
3124
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -3305,8 +3323,8 @@ function SidePanelLogDialog(props) {
|
|
|
3305
3323
|
// admin/views/audit-logs/sidepanel-list-link.tsx
|
|
3306
3324
|
import { Button, List } from "@raystack/apsara";
|
|
3307
3325
|
|
|
3308
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3309
|
-
var digest17 = "
|
|
3326
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-ctOqxotQgZS0/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
3327
|
+
var digest17 = "ead8725a0ca3a704f6d3af9e6d1bb935fa21b71f85a802a850fceb065d0adb2b";
|
|
3310
3328
|
var css17 = `._navbar_1nr4u_1 {
|
|
3311
3329
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
3312
3330
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -3448,8 +3466,8 @@ function SidepanelListItemLink({
|
|
|
3448
3466
|
// admin/views/audit-logs/sidepanel-list-id.tsx
|
|
3449
3467
|
import { CopyButton, Flex as Flex15, List as List2, Text as Text10, Tooltip } from "@raystack/apsara";
|
|
3450
3468
|
|
|
3451
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3452
|
-
var digest18 = "
|
|
3469
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-ASgm0M4mgUcb/sdk/admin/views/audit-logs/audit-logs.module.css.js
|
|
3470
|
+
var digest18 = "0df5086bcaa153115088985cbee63f72a187a02c2f5bc25f427dfae747bf66af";
|
|
3453
3471
|
var css18 = `._navbar_1nr4u_1 {
|
|
3454
3472
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
3455
3473
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -3977,8 +3995,8 @@ import { DataTable as DataTable8, EmptyState as EmptyState6, Flex as Flex18 } fr
|
|
|
3977
3995
|
// admin/views/admins/columns.tsx
|
|
3978
3996
|
import { Button as Button2 } from "@raystack/apsara";
|
|
3979
3997
|
|
|
3980
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
3981
|
-
var digest19 = "
|
|
3998
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-EbuuLrEITTFi/sdk/admin/views/admins/admins.module.css.js
|
|
3999
|
+
var digest19 = "fd2844aacdb21019f308bb30b1f6cf8b23603ac0a75fb0eb15b99c188d6cf4f8";
|
|
3982
4000
|
var css19 = `._tableRoot_1tmha_1 {
|
|
3983
4001
|
width: 100%;
|
|
3984
4002
|
}
|
|
@@ -4063,8 +4081,8 @@ var getColumns6 = ({ onNavigateToOrg, t } = {}) => {
|
|
|
4063
4081
|
];
|
|
4064
4082
|
};
|
|
4065
4083
|
|
|
4066
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4067
|
-
var digest20 = "
|
|
4084
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-Lh4ElncC0Fre/sdk/admin/views/admins/admins.module.css.js
|
|
4085
|
+
var digest20 = "a842824a96e2a3d7d45ed72102c0488c02ef745e7d140ccdd459ae078f143f7c";
|
|
4068
4086
|
var css20 = `._tableRoot_1tmha_1 {
|
|
4069
4087
|
width: 100%;
|
|
4070
4088
|
}
|
|
@@ -4175,8 +4193,8 @@ import { EmptyState as EmptyState7, Flex as Flex20, DataTable as DataTable9, Dra
|
|
|
4175
4193
|
// admin/views/plans/columns.tsx
|
|
4176
4194
|
import { Text as Text11 } from "@raystack/apsara";
|
|
4177
4195
|
|
|
4178
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4179
|
-
var digest21 = "
|
|
4196
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-o3z8KJ018J3u/sdk/admin/views/plans/plans.module.css.js
|
|
4197
|
+
var digest21 = "7812aa6ea7ddd094a130e60cfa6fcfcb5309079c172ce3fe3d5acada091a6770";
|
|
4180
4198
|
var css21 = `._tableRoot_1akba_1 {
|
|
4181
4199
|
width: 100%;
|
|
4182
4200
|
}
|
|
@@ -4274,8 +4292,8 @@ var getColumns7 = ({ onSelectPlan } = {}) => {
|
|
|
4274
4292
|
];
|
|
4275
4293
|
};
|
|
4276
4294
|
|
|
4277
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4278
|
-
var digest22 = "
|
|
4295
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-czXywBioYHUq/sdk/admin/views/plans/plans.module.css.js
|
|
4296
|
+
var digest22 = "75787cbb43a5c832e02d719ea92552b03e1b29ffc16f3ecd82e27ab669062115";
|
|
4279
4297
|
var css22 = `._tableRoot_1akba_1 {
|
|
4280
4298
|
width: 100%;
|
|
4281
4299
|
}
|
|
@@ -4439,8 +4457,8 @@ import {
|
|
|
4439
4457
|
Text as Text14
|
|
4440
4458
|
} from "@raystack/apsara";
|
|
4441
4459
|
|
|
4442
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4443
|
-
var digest23 = "
|
|
4460
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-AAxEj5XEBPWB/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
|
|
4461
|
+
var digest23 = "9ac0c1442840420b90442fa4dc9e3d03d991036637986499e9bfdeabfddd1a3b";
|
|
4444
4462
|
var css23 = `._tableRoot_1j1ra_1 {
|
|
4445
4463
|
width: 100%;
|
|
4446
4464
|
}
|
|
@@ -4499,6 +4517,37 @@ import { useState as useState6 } from "react";
|
|
|
4499
4517
|
|
|
4500
4518
|
// admin/views/webhooks/webhooks/delete/index.tsx
|
|
4501
4519
|
import { Button as Button3, Dialog as Dialog2, Flex as Flex21, Text as Text13, toastManager } from "@raystack/apsara";
|
|
4520
|
+
|
|
4521
|
+
// utils/error.ts
|
|
4522
|
+
import { Code, ConnectError } from "@connectrpc/connect";
|
|
4523
|
+
var DEFAULT_ERROR_MESSAGE = "Something went wrong";
|
|
4524
|
+
function handleConnectError(error, handlers) {
|
|
4525
|
+
const connectError = error instanceof ConnectError ? error : new ConnectError(
|
|
4526
|
+
typeof error === "string" ? error : error instanceof Error ? error.message : DEFAULT_ERROR_MESSAGE
|
|
4527
|
+
);
|
|
4528
|
+
const defaultHandler = handlers?.Default ?? ((err) => console.error(err.message));
|
|
4529
|
+
switch (connectError.code) {
|
|
4530
|
+
case Code.AlreadyExists:
|
|
4531
|
+
handlers?.AlreadyExists ? handlers.AlreadyExists(connectError) : defaultHandler(connectError);
|
|
4532
|
+
break;
|
|
4533
|
+
case Code.InvalidArgument:
|
|
4534
|
+
handlers?.InvalidArgument ? handlers.InvalidArgument(connectError) : defaultHandler(connectError);
|
|
4535
|
+
break;
|
|
4536
|
+
case Code.PermissionDenied:
|
|
4537
|
+
handlers?.PermissionDenied ? handlers.PermissionDenied(connectError) : defaultHandler(connectError);
|
|
4538
|
+
break;
|
|
4539
|
+
case Code.NotFound:
|
|
4540
|
+
handlers?.NotFound ? handlers.NotFound(connectError) : defaultHandler(connectError);
|
|
4541
|
+
break;
|
|
4542
|
+
case Code.FailedPrecondition:
|
|
4543
|
+
handlers?.FailedPrecondition ? handlers.FailedPrecondition(connectError) : defaultHandler(connectError);
|
|
4544
|
+
break;
|
|
4545
|
+
default:
|
|
4546
|
+
defaultHandler(connectError);
|
|
4547
|
+
}
|
|
4548
|
+
}
|
|
4549
|
+
|
|
4550
|
+
// admin/views/webhooks/webhooks/delete/index.tsx
|
|
4502
4551
|
import { jsx as jsx34, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4503
4552
|
function DeleteWebhookDialog({
|
|
4504
4553
|
isOpen,
|
|
@@ -4514,7 +4563,17 @@ function DeleteWebhookDialog({
|
|
|
4514
4563
|
onOpenChange(false);
|
|
4515
4564
|
} catch (err) {
|
|
4516
4565
|
console.error("Failed to delete webhook:", err);
|
|
4517
|
-
|
|
4566
|
+
handleConnectError(err, {
|
|
4567
|
+
PermissionDenied: () => toastManager.add({
|
|
4568
|
+
title: "You don't have permission to perform this action",
|
|
4569
|
+
type: "error"
|
|
4570
|
+
}),
|
|
4571
|
+
Default: (e) => toastManager.add({
|
|
4572
|
+
title: "Failed to delete webhook",
|
|
4573
|
+
description: e.rawMessage,
|
|
4574
|
+
type: "error"
|
|
4575
|
+
})
|
|
4576
|
+
});
|
|
4518
4577
|
}
|
|
4519
4578
|
};
|
|
4520
4579
|
return /* @__PURE__ */ jsx34(Dialog2, { open: isOpen, onOpenChange, children: /* @__PURE__ */ jsx34(
|
|
@@ -4660,8 +4719,8 @@ var getColumns8 = ({ openEditPage, deleteWebhookMutation, enableDelete }) => {
|
|
|
4660
4719
|
];
|
|
4661
4720
|
};
|
|
4662
4721
|
|
|
4663
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
4664
|
-
var digest24 = "
|
|
4722
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-ucXX88zsm0WS/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
|
|
4723
|
+
var digest24 = "91935420e36bcd8ee0284b32d333fe1e304df0741728ff44b6c424c85f2065d5";
|
|
4665
4724
|
var css24 = `._tableRoot_1j1ra_1 {
|
|
4666
4725
|
width: 100%;
|
|
4667
4726
|
}
|
|
@@ -9826,7 +9885,17 @@ function CreateWebhooks({ open = false, onClose: onCloseProp } = {}) {
|
|
|
9826
9885
|
}
|
|
9827
9886
|
} catch (err) {
|
|
9828
9887
|
console.error("Failed to create webhook:", err);
|
|
9829
|
-
|
|
9888
|
+
handleConnectError(err, {
|
|
9889
|
+
PermissionDenied: () => toastManager2.add({
|
|
9890
|
+
title: "You don't have permission to perform this action",
|
|
9891
|
+
type: "error"
|
|
9892
|
+
}),
|
|
9893
|
+
Default: (e) => toastManager2.add({
|
|
9894
|
+
title: "Something went wrong",
|
|
9895
|
+
description: e.rawMessage,
|
|
9896
|
+
type: "error"
|
|
9897
|
+
})
|
|
9898
|
+
});
|
|
9830
9899
|
}
|
|
9831
9900
|
};
|
|
9832
9901
|
return /* @__PURE__ */ jsx43(Drawer4, { open, onOpenChange: (open2) => !open2 && onCloseProp?.(), children: /* @__PURE__ */ jsx43(
|
|
@@ -9989,7 +10058,17 @@ function UpdateWebhooks({ open = false, webhookId: webhookIdProp, onClose: onClo
|
|
|
9989
10058
|
}
|
|
9990
10059
|
} catch (err) {
|
|
9991
10060
|
console.error("Failed to update webhook:", err);
|
|
9992
|
-
|
|
10061
|
+
handleConnectError(err, {
|
|
10062
|
+
PermissionDenied: () => toastManager3.add({
|
|
10063
|
+
title: "You don't have permission to perform this action",
|
|
10064
|
+
type: "error"
|
|
10065
|
+
}),
|
|
10066
|
+
Default: (e) => toastManager3.add({
|
|
10067
|
+
title: "Something went wrong",
|
|
10068
|
+
description: e.rawMessage,
|
|
10069
|
+
type: "error"
|
|
10070
|
+
})
|
|
10071
|
+
});
|
|
9993
10072
|
}
|
|
9994
10073
|
};
|
|
9995
10074
|
useEffect3(() => {
|
|
@@ -10232,8 +10311,8 @@ import { EmptyState as EmptyState9, DataTable as DataTable11, Flex as Flex28 } f
|
|
|
10232
10311
|
// admin/views/preferences/columns.tsx
|
|
10233
10312
|
import { Text as Text16 } from "@raystack/apsara";
|
|
10234
10313
|
|
|
10235
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10236
|
-
var digest25 = "
|
|
10314
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-THvPjhPUfLLP/sdk/admin/views/preferences/preferences.module.css.js
|
|
10315
|
+
var digest25 = "5dab346dd56169a090ab3328e1095148ba76aed8e9b9adcf7c9d4f846599e6cc";
|
|
10237
10316
|
var css25 = `._tableRoot_hre5m_1 {
|
|
10238
10317
|
width: 100%;
|
|
10239
10318
|
}
|
|
@@ -10323,8 +10402,8 @@ var getColumns9 = ({
|
|
|
10323
10402
|
];
|
|
10324
10403
|
};
|
|
10325
10404
|
|
|
10326
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10327
|
-
var digest26 = "
|
|
10405
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-w6WimlIXEJML/sdk/admin/views/preferences/preferences.module.css.js
|
|
10406
|
+
var digest26 = "e4cd4cdf587db1c642c0b0c9cd10032756ffb89f1089ddbf87fe9fec5f7f752c";
|
|
10328
10407
|
var css26 = `._tableRoot_hre5m_1 {
|
|
10329
10408
|
width: 100%;
|
|
10330
10409
|
}
|
|
@@ -10564,8 +10643,18 @@ function PreferenceDetails({
|
|
|
10564
10643
|
}));
|
|
10565
10644
|
toastManager4.add({ title: "preference updated", type: "success" });
|
|
10566
10645
|
} catch (err) {
|
|
10567
|
-
console.error(
|
|
10568
|
-
|
|
10646
|
+
console.error(err);
|
|
10647
|
+
handleConnectError(err, {
|
|
10648
|
+
PermissionDenied: () => toastManager4.add({
|
|
10649
|
+
title: "You don't have permission to perform this action",
|
|
10650
|
+
type: "error"
|
|
10651
|
+
}),
|
|
10652
|
+
Default: (e) => toastManager4.add({
|
|
10653
|
+
title: "Something went wrong",
|
|
10654
|
+
description: e.rawMessage,
|
|
10655
|
+
type: "error"
|
|
10656
|
+
})
|
|
10657
|
+
});
|
|
10569
10658
|
}
|
|
10570
10659
|
}, [name, value, createPreferences]);
|
|
10571
10660
|
return /* @__PURE__ */ jsxs30(Flex29, { direction: "column", style: { width: "100%" }, gap: 9, children: [
|
|
@@ -10602,7 +10691,8 @@ function PreferenceDetails({
|
|
|
10602
10691
|
{
|
|
10603
10692
|
trait,
|
|
10604
10693
|
value,
|
|
10605
|
-
onChange: setValue
|
|
10694
|
+
onChange: setValue,
|
|
10695
|
+
"data-test-id": "frontier-admin-preference-value-input"
|
|
10606
10696
|
}
|
|
10607
10697
|
),
|
|
10608
10698
|
/* @__PURE__ */ jsx48(
|
|
@@ -10695,8 +10785,8 @@ import {
|
|
|
10695
10785
|
Spinner as Spinner2
|
|
10696
10786
|
} from "@raystack/apsara";
|
|
10697
10787
|
|
|
10698
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10699
|
-
var digest27 = "
|
|
10788
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-KwfUYCrasPYW/sdk/admin/views/users/list/list.module.css.js
|
|
10789
|
+
var digest27 = "9d8e23460701e99a64e6271260daa90381b2de1db38b7c43587364b19b16a4da";
|
|
10700
10790
|
var css27 = `._navbar_vt0az_1 {
|
|
10701
10791
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
10702
10792
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -10800,8 +10890,8 @@ import {
|
|
|
10800
10890
|
import { Controller as Controller2, useForm as useForm3 } from "react-hook-form";
|
|
10801
10891
|
import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
|
|
10802
10892
|
|
|
10803
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
10804
|
-
var digest28 = "
|
|
10893
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-x10c6mqQP4Tn/sdk/admin/views/users/list/invite-users.module.css.js
|
|
10894
|
+
var digest28 = "f0e15cfe09a2f3df34fd47b22715489e3022ca9d396b957ffe2ae8c2f0b043e0";
|
|
10805
10895
|
var css28 = `._invite-users-dialog-body_11ujx_1 {
|
|
10806
10896
|
display: flex;
|
|
10807
10897
|
flex-direction: column;
|
|
@@ -10844,37 +10934,6 @@ import {
|
|
|
10844
10934
|
ListRolesRequestSchema
|
|
10845
10935
|
} from "@raystack/proton/frontier";
|
|
10846
10936
|
import { create as create5 } from "@bufbuild/protobuf";
|
|
10847
|
-
|
|
10848
|
-
// utils/error.ts
|
|
10849
|
-
import { Code, ConnectError } from "@connectrpc/connect";
|
|
10850
|
-
var DEFAULT_ERROR_MESSAGE = "Something went wrong";
|
|
10851
|
-
function handleConnectError(error, handlers) {
|
|
10852
|
-
const connectError = error instanceof ConnectError ? error : new ConnectError(
|
|
10853
|
-
typeof error === "string" ? error : error instanceof Error ? error.message : DEFAULT_ERROR_MESSAGE
|
|
10854
|
-
);
|
|
10855
|
-
const defaultHandler = handlers?.Default ?? ((err) => console.error(err.message));
|
|
10856
|
-
switch (connectError.code) {
|
|
10857
|
-
case Code.AlreadyExists:
|
|
10858
|
-
handlers?.AlreadyExists ? handlers.AlreadyExists(connectError) : defaultHandler(connectError);
|
|
10859
|
-
break;
|
|
10860
|
-
case Code.InvalidArgument:
|
|
10861
|
-
handlers?.InvalidArgument ? handlers.InvalidArgument(connectError) : defaultHandler(connectError);
|
|
10862
|
-
break;
|
|
10863
|
-
case Code.PermissionDenied:
|
|
10864
|
-
handlers?.PermissionDenied ? handlers.PermissionDenied(connectError) : defaultHandler(connectError);
|
|
10865
|
-
break;
|
|
10866
|
-
case Code.NotFound:
|
|
10867
|
-
handlers?.NotFound ? handlers.NotFound(connectError) : defaultHandler(connectError);
|
|
10868
|
-
break;
|
|
10869
|
-
case Code.FailedPrecondition:
|
|
10870
|
-
handlers?.FailedPrecondition ? handlers.FailedPrecondition(connectError) : defaultHandler(connectError);
|
|
10871
|
-
break;
|
|
10872
|
-
default:
|
|
10873
|
-
defaultHandler(connectError);
|
|
10874
|
-
}
|
|
10875
|
-
}
|
|
10876
|
-
|
|
10877
|
-
// admin/views/users/list/invite-users.tsx
|
|
10878
10937
|
import { Fragment as Fragment10, jsx as jsx51, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
10879
10938
|
var inviteSchema = objectType({
|
|
10880
10939
|
role: stringType(),
|
|
@@ -10957,9 +11016,9 @@ var InviteUser = () => {
|
|
|
10957
11016
|
} catch (error) {
|
|
10958
11017
|
handleConnectError(error, {
|
|
10959
11018
|
AlreadyExists: () => toastManager5.add({ title: "Invitation already exists", type: "error" }),
|
|
10960
|
-
InvalidArgument: (err) => toastManager5.add({ title: "Invalid input", description: err.
|
|
11019
|
+
InvalidArgument: (err) => toastManager5.add({ title: "Invalid input", description: err.rawMessage, type: "error" }),
|
|
10961
11020
|
PermissionDenied: () => toastManager5.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
10962
|
-
Default: (err) => toastManager5.add({ title: "Something went wrong", description: err.
|
|
11021
|
+
Default: (err) => toastManager5.add({ title: "Something went wrong", description: err.rawMessage, type: "error" })
|
|
10963
11022
|
});
|
|
10964
11023
|
}
|
|
10965
11024
|
};
|
|
@@ -11066,6 +11125,7 @@ var InviteUser = () => {
|
|
|
11066
11125
|
Select2,
|
|
11067
11126
|
{
|
|
11068
11127
|
...rest,
|
|
11128
|
+
autocomplete: true,
|
|
11069
11129
|
onValueChange: (value) => field.onChange(value),
|
|
11070
11130
|
children: [
|
|
11071
11131
|
/* @__PURE__ */ jsx51(Select2.Trigger, { ref, children: /* @__PURE__ */ jsx51(
|
|
@@ -11077,11 +11137,12 @@ var InviteUser = () => {
|
|
|
11077
11137
|
/* @__PURE__ */ jsx51(
|
|
11078
11138
|
Select2.Content,
|
|
11079
11139
|
{
|
|
11140
|
+
searchPlaceholder: `Search ${t.organization({ case: "lower" })}`,
|
|
11080
11141
|
style: {
|
|
11081
11142
|
maxHeight: 280,
|
|
11082
11143
|
overflowY: "auto"
|
|
11083
11144
|
},
|
|
11084
|
-
children: organizations?.map((org) => /* @__PURE__ */ jsx51(Select2.Item, { value: org.id ?? "", children: org.name }, org.id))
|
|
11145
|
+
children: organizations?.map((org) => /* @__PURE__ */ jsx51(Select2.Item, { value: org.id ?? "", children: org.title || org.name }, org.id))
|
|
11085
11146
|
}
|
|
11086
11147
|
)
|
|
11087
11148
|
]
|
|
@@ -11183,8 +11244,8 @@ var Navbar2 = ({ searchQuery, onExportUsers }) => {
|
|
|
11183
11244
|
};
|
|
11184
11245
|
var navbar_default2 = Navbar2;
|
|
11185
11246
|
|
|
11186
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11187
|
-
var digest29 = "
|
|
11247
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-ubv6I06sB5yG/sdk/admin/views/users/list/list.module.css.js
|
|
11248
|
+
var digest29 = "fb554f1f001b785f4d810c755dd24e5d78d339c9f124c2a224d57e66e0f5e3be";
|
|
11188
11249
|
var css29 = `._navbar_vt0az_1 {
|
|
11189
11250
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
11190
11251
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -11255,8 +11316,8 @@ import {
|
|
|
11255
11316
|
} from "@raystack/apsara";
|
|
11256
11317
|
import dayjs8 from "dayjs";
|
|
11257
11318
|
|
|
11258
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11259
|
-
var digest30 = "
|
|
11319
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-5VwvuZ2kPJ2a/sdk/admin/views/users/list/list.module.css.js
|
|
11320
|
+
var digest30 = "c679d7f044c94c243fa06e1afbb314afeebd4b60384d68d8165e3934f0705032";
|
|
11260
11321
|
var css30 = `._navbar_vt0az_1 {
|
|
11261
11322
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
11262
11323
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -11549,8 +11610,8 @@ import { Avatar as Avatar4, getAvatarColor as getAvatarColor3, SidePanel as Side
|
|
|
11549
11610
|
// admin/views/users/details/layout/side-panel-details.tsx
|
|
11550
11611
|
import { Flex as Flex35, List as List4, Text as Text21, CopyButton as CopyButton2, Tooltip as Tooltip2 } from "@raystack/apsara";
|
|
11551
11612
|
|
|
11552
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11553
|
-
var digest31 = "
|
|
11613
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-Zt8RFr0T3izy/sdk/admin/views/users/details/layout/side-panel.module.css.js
|
|
11614
|
+
var digest31 = "91b804c507b5be8002e0b0c9703482e2be1ae68e24518bf1af067fab6469f941";
|
|
11554
11615
|
var css31 = `._side-panel_1us3q_1 {
|
|
11555
11616
|
transform: all 0.3s ease-in-out;
|
|
11556
11617
|
padding-bottom: var(--rs-space-15);
|
|
@@ -11665,8 +11726,8 @@ var SidePanelDetails2 = () => {
|
|
|
11665
11726
|
import { Flex as Flex38, List as List5, Text as Text25, Avatar as Avatar3 } from "@raystack/apsara";
|
|
11666
11727
|
import dayjs9 from "dayjs";
|
|
11667
11728
|
|
|
11668
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11669
|
-
var digest32 = "
|
|
11729
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-B0gidrIWbays/sdk/admin/views/users/details/layout/side-panel.module.css.js
|
|
11730
|
+
var digest32 = "f8e2322c5dd6ca5beb3e0c7cd8ff6517653470196774a355939525adc1cb5c61";
|
|
11670
11731
|
var css32 = `._side-panel_1us3q_1 {
|
|
11671
11732
|
transform: all 0.3s ease-in-out;
|
|
11672
11733
|
padding-bottom: var(--rs-space-15);
|
|
@@ -11729,8 +11790,8 @@ var side_panel_module_css_default2 = { "side-panel": "_side-panel_1us3q_1", "sid
|
|
|
11729
11790
|
// admin/views/users/details/layout/membership-dropdown.tsx
|
|
11730
11791
|
import { Text as Text24, Menu as Menu2, Skeleton as Skeleton2 } from "@raystack/apsara";
|
|
11731
11792
|
|
|
11732
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
11733
|
-
var digest33 = "
|
|
11793
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-bW1HejHle7Fe/sdk/admin/views/users/details/layout/side-panel.module.css.js
|
|
11794
|
+
var digest33 = "4d93dd79708f8f394330a1cc52041d5cfb9374eb1cfef9d7da800ff5236eea97";
|
|
11734
11795
|
var css33 = `._side-panel_1us3q_1 {
|
|
11735
11796
|
transform: all 0.3s ease-in-out;
|
|
11736
11797
|
padding-bottom: var(--rs-space-15);
|
|
@@ -12152,8 +12213,8 @@ var SidePanelMembership = ({
|
|
|
12152
12213
|
] });
|
|
12153
12214
|
};
|
|
12154
12215
|
|
|
12155
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12156
|
-
var digest34 = "
|
|
12216
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-aRLWtn44U2r1/sdk/admin/views/users/details/layout/side-panel.module.css.js
|
|
12217
|
+
var digest34 = "a09d646151c27631b7e5f9a0956165e207bba35b3803383cbc0748abd49bb78d";
|
|
12157
12218
|
var css34 = `._side-panel_1us3q_1 {
|
|
12158
12219
|
transform: all 0.3s ease-in-out;
|
|
12159
12220
|
padding-bottom: var(--rs-space-15);
|
|
@@ -12271,8 +12332,8 @@ var UserDetailsSidePanel = () => {
|
|
|
12271
12332
|
);
|
|
12272
12333
|
};
|
|
12273
12334
|
|
|
12274
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12275
|
-
var digest35 = "
|
|
12335
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-QEg1ww2kjMUL/sdk/admin/views/users/details/layout/layout.module.css.js
|
|
12336
|
+
var digest35 = "418a79d2cedbcab87f4ef9a8368ad260a6a9ecae74fb8aa8d58ebc5568e52bde";
|
|
12276
12337
|
var css35 = `._page_190wz_1 {
|
|
12277
12338
|
height: 100vh;
|
|
12278
12339
|
width: 100%;
|
|
@@ -12313,8 +12374,8 @@ import {
|
|
|
12313
12374
|
} from "@raystack/apsara";
|
|
12314
12375
|
import { SidebarIcon } from "@raystack/apsara/icons";
|
|
12315
12376
|
|
|
12316
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12317
|
-
var digest36 = "
|
|
12377
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-ETTHzgq8PbGw/sdk/admin/views/users/details/layout/navbar.module.css.js
|
|
12378
|
+
var digest36 = "55443cee246960cec327ad5bfaf60bf9e2cd950f7c8943d497271fe44853e9fa";
|
|
12318
12379
|
var css36 = `._navbar_1ahsl_1 {
|
|
12319
12380
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
12320
12381
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -12517,8 +12578,8 @@ var BlockUserDialog = () => {
|
|
|
12517
12578
|
} catch (error) {
|
|
12518
12579
|
handleConnectError(error, {
|
|
12519
12580
|
PermissionDenied: () => toastManager8.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
12520
|
-
NotFound: (err) => toastManager8.add({ title: "Not found", description: err.
|
|
12521
|
-
Default: (err) => toastManager8.add({ title: errorMessage, description: err.
|
|
12581
|
+
NotFound: (err) => toastManager8.add({ title: "Not found", description: err.rawMessage, type: "error" }),
|
|
12582
|
+
Default: (err) => toastManager8.add({ title: errorMessage, description: err.rawMessage, type: "error" })
|
|
12522
12583
|
});
|
|
12523
12584
|
}
|
|
12524
12585
|
};
|
|
@@ -12617,8 +12678,8 @@ import {
|
|
|
12617
12678
|
Text as Text27
|
|
12618
12679
|
} from "@raystack/apsara";
|
|
12619
12680
|
|
|
12620
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12621
|
-
var digest37 = "
|
|
12681
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-p6d97FDbelFx/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
|
|
12682
|
+
var digest37 = "ec08c9b1e79d72f31daddbd799ba9f982a3287897eb96f2f88a1e533d06284bd";
|
|
12622
12683
|
var css37 = `._sessionsContainer_aq82p_1 {
|
|
12623
12684
|
border: 1px solid var(--rs-color-border-base-primary);
|
|
12624
12685
|
border-radius: var(--rs-radius-2);
|
|
@@ -12693,10 +12754,16 @@ var RevokeSessionFinalConfirm = ({
|
|
|
12693
12754
|
onConfirm();
|
|
12694
12755
|
onOpenChange(false);
|
|
12695
12756
|
} catch (error) {
|
|
12696
|
-
|
|
12697
|
-
|
|
12698
|
-
|
|
12699
|
-
|
|
12757
|
+
handleConnectError(error, {
|
|
12758
|
+
PermissionDenied: () => toastManager9.add({
|
|
12759
|
+
title: "You don't have permission to perform this action",
|
|
12760
|
+
type: "error"
|
|
12761
|
+
}),
|
|
12762
|
+
Default: (err) => toastManager9.add({
|
|
12763
|
+
title: "Failed to revoke session",
|
|
12764
|
+
description: err.rawMessage || "Something went wrong",
|
|
12765
|
+
type: "error"
|
|
12766
|
+
})
|
|
12700
12767
|
});
|
|
12701
12768
|
}
|
|
12702
12769
|
};
|
|
@@ -12741,8 +12808,8 @@ var RevokeSessionFinalConfirm = ({
|
|
|
12741
12808
|
) });
|
|
12742
12809
|
};
|
|
12743
12810
|
|
|
12744
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12745
|
-
var digest38 = "
|
|
12811
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-myN5z09sy77g/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
|
|
12812
|
+
var digest38 = "d4edbed86ec8461273091045280f998a6104e5c7bd1d58aaf64e6337597ae7e5";
|
|
12746
12813
|
var css38 = `._sessionsContainer_aq82p_1 {
|
|
12747
12814
|
border: 1px solid var(--rs-color-border-base-primary);
|
|
12748
12815
|
border-radius: var(--rs-radius-2);
|
|
@@ -12886,8 +12953,8 @@ var RevokeSessionConfirm = ({ isOpen, onOpenChange, sessionInfo, onRevokeConfirm
|
|
|
12886
12953
|
// admin/views/users/details/security/sessions/session-skeleton.tsx
|
|
12887
12954
|
import { Flex as Flex43, Skeleton as Skeleton3 } from "@raystack/apsara";
|
|
12888
12955
|
|
|
12889
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12890
|
-
var digest39 = "
|
|
12956
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-0n2gaMyEBm8W/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
|
|
12957
|
+
var digest39 = "9ea7f622c75beae607d59f32db16fac9b4aa09bb4e13a36eff94e2f53d0fce24";
|
|
12891
12958
|
var css39 = `._sessionsContainer_aq82p_1 {
|
|
12892
12959
|
border: 1px solid var(--rs-color-border-base-primary);
|
|
12893
12960
|
border-radius: var(--rs-radius-2);
|
|
@@ -12968,8 +13035,8 @@ import { AdminServiceQueries as AdminServiceQueries13 } from "@raystack/proton/f
|
|
|
12968
13035
|
import dayjs10 from "dayjs";
|
|
12969
13036
|
import relativeTime from "dayjs/plugin/relativeTime";
|
|
12970
13037
|
|
|
12971
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
12972
|
-
var digest40 = "
|
|
13038
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-vLuLOCbNXjt7/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
|
|
13039
|
+
var digest40 = "d9a1ffa4704d8ea6122c842febaa6d560d3c029020882409eee55a745a057a94";
|
|
12973
13040
|
var css40 = `._sessionsContainer_aq82p_1 {
|
|
12974
13041
|
border: 1px solid var(--rs-color-border-base-primary);
|
|
12975
13042
|
border-radius: var(--rs-radius-2);
|
|
@@ -13180,8 +13247,8 @@ var UserSessions = () => {
|
|
|
13180
13247
|
] });
|
|
13181
13248
|
};
|
|
13182
13249
|
|
|
13183
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13184
|
-
var digest41 = "
|
|
13250
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-7u6eAHleFiN6/sdk/admin/views/users/details/security/security.module.css.js
|
|
13251
|
+
var digest41 = "9740d8fd5e7828da16e1326aaeca74473ad153a17e0c444f4659eda9cdcc1472";
|
|
13185
13252
|
var css41 = `._container_4259p_1 {
|
|
13186
13253
|
width: 100%;
|
|
13187
13254
|
}
|
|
@@ -13315,8 +13382,8 @@ import {
|
|
|
13315
13382
|
} from "@raystack/apsara";
|
|
13316
13383
|
import { OrganizationIcon } from "@raystack/apsara/icons";
|
|
13317
13384
|
|
|
13318
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13319
|
-
var digest42 = "
|
|
13385
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-4aFMJia6UtNU/sdk/admin/views/organizations/list/list.module.css.js
|
|
13386
|
+
var digest42 = "bfdc37a8a5383d7116a848d8134531448532a50f14bd0ecd38d5daccf10f2b7b";
|
|
13320
13387
|
var css42 = `._navbar_1laab_1 {
|
|
13321
13388
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
13322
13389
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -13503,8 +13570,8 @@ var OrganizationsNavabar = ({
|
|
|
13503
13570
|
] });
|
|
13504
13571
|
};
|
|
13505
13572
|
|
|
13506
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13507
|
-
var digest43 = "
|
|
13573
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-9wx1NIGaoiyc/sdk/admin/views/organizations/list/list.module.css.js
|
|
13574
|
+
var digest43 = "bb635e19e7ce630996ab3b31bbaee1896d42c423ee6348189b24890b36e09211";
|
|
13508
13575
|
var css43 = `._navbar_1laab_1 {
|
|
13509
13576
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
13510
13577
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -13615,8 +13682,8 @@ import {
|
|
|
13615
13682
|
} from "@raystack/apsara";
|
|
13616
13683
|
import dayjs11 from "dayjs";
|
|
13617
13684
|
|
|
13618
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13619
|
-
var digest44 = "
|
|
13685
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-RgSa6wMPLA0o/sdk/admin/views/organizations/list/list.module.css.js
|
|
13686
|
+
var digest44 = "2877c2cb5fbd568e8481f0f4ba90067ef35e7e5954031615169635755c163e26";
|
|
13620
13687
|
var css44 = `._navbar_1laab_1 {
|
|
13621
13688
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
13622
13689
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -13883,8 +13950,8 @@ import { create as create8 } from "@bufbuild/protobuf";
|
|
|
13883
13950
|
// admin/views/organizations/list/create.tsx
|
|
13884
13951
|
import { useEffect as useEffect6, useState as useState20 } from "react";
|
|
13885
13952
|
|
|
13886
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
13887
|
-
var digest45 = "
|
|
13953
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-RPla54Ohe17R/sdk/admin/views/organizations/list/list.module.css.js
|
|
13954
|
+
var digest45 = "c9ec01fd4853e0dda3fc4071318c79550c69311b769942da3c33f998b85ea31f";
|
|
13888
13955
|
var css45 = `._navbar_1laab_1 {
|
|
13889
13956
|
padding: var(--rs-space-4) var(--rs-space-7);
|
|
13890
13957
|
border-bottom: 0.5px solid var(--rs-color-border-base-primary);
|
|
@@ -14014,8 +14081,8 @@ import {
|
|
|
14014
14081
|
} from "@raystack/apsara";
|
|
14015
14082
|
import "react-image-crop/dist/ReactCrop.css";
|
|
14016
14083
|
|
|
14017
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14018
|
-
var digest46 = "
|
|
14084
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-ehoF3xDX6rHD/sdk/client/components/image-upload/image-upload.module.css.js
|
|
14085
|
+
var digest46 = "2aba14b1590daeb75ddc500c041f5f31acaa0b330a190b23c47d3f8ed8891ad7";
|
|
14019
14086
|
var css46 = `._iconButton_cqo35_1 {
|
|
14020
14087
|
position: relative;
|
|
14021
14088
|
width: var(--rs-space-14);
|
|
@@ -14784,8 +14851,8 @@ import {
|
|
|
14784
14851
|
Search
|
|
14785
14852
|
} from "@raystack/apsara";
|
|
14786
14853
|
|
|
14787
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14788
|
-
var digest47 = "
|
|
14854
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-0LCTyVaJ30Q8/sdk/admin/views/organizations/details/layout/layout.module.css.js
|
|
14855
|
+
var digest47 = "a99e301429072d4e9934371253bf6bf16bb18403332e06ed7b94de9b4cd99eff";
|
|
14789
14856
|
var css47 = `._page_1jsqa_1 {
|
|
14790
14857
|
width: 100%;
|
|
14791
14858
|
height: 100vh;
|
|
@@ -14891,8 +14958,8 @@ import {
|
|
|
14891
14958
|
} from "@raystack/apsara";
|
|
14892
14959
|
import { useContext as useContext5, useMemo as useMemo7 } from "react";
|
|
14893
14960
|
|
|
14894
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
14895
|
-
var digest48 = "
|
|
14961
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-Hpx5KORVVdpd/sdk/admin/views/organizations/details/layout/layout.module.css.js
|
|
14962
|
+
var digest48 = "9007d166d3f09cf6e04afec7fad9aaeb6578671580fd6069acc0a558a0be0da1";
|
|
14896
14963
|
var css48 = `._page_1jsqa_1 {
|
|
14897
14964
|
width: 100%;
|
|
14898
14965
|
height: 100vh;
|
|
@@ -15105,9 +15172,9 @@ var InviteUsersDialog = ({ onOpenChange }) => {
|
|
|
15105
15172
|
} catch (error) {
|
|
15106
15173
|
handleConnectError(error, {
|
|
15107
15174
|
AlreadyExists: () => toastManager11.add({ title: "Invitation already exists", type: "error" }),
|
|
15108
|
-
InvalidArgument: (err) => toastManager11.add({ title: "Invalid input", description: err.
|
|
15175
|
+
InvalidArgument: (err) => toastManager11.add({ title: "Invalid input", description: err.rawMessage, type: "error" }),
|
|
15109
15176
|
PermissionDenied: () => toastManager11.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
15110
|
-
Default: (err) => toastManager11.add({ title: "Something went wrong", description: err.
|
|
15177
|
+
Default: (err) => toastManager11.add({ title: "Something went wrong", description: err.rawMessage, type: "error" })
|
|
15111
15178
|
});
|
|
15112
15179
|
}
|
|
15113
15180
|
};
|
|
@@ -15200,8 +15267,8 @@ import {
|
|
|
15200
15267
|
import { useContext as useContext6 } from "react";
|
|
15201
15268
|
import { Controller as Controller5, FormProvider as FormProvider4, useForm as useForm7 } from "react-hook-form";
|
|
15202
15269
|
|
|
15203
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15204
|
-
var digest49 = "
|
|
15270
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-ftIqENY2zmmJ/sdk/admin/views/organizations/details/layout/layout.module.css.js
|
|
15271
|
+
var digest49 = "14e005a4e8670436e6729c9bf30735f5b3ca5a08082cd0c667ba83a05086ce8b";
|
|
15205
15272
|
var css49 = `._page_1jsqa_1 {
|
|
15206
15273
|
width: 100%;
|
|
15207
15274
|
height: 100vh;
|
|
@@ -15340,7 +15407,7 @@ var AddTokensDialog = ({ onOpenChange }) => {
|
|
|
15340
15407
|
onError: (error) => {
|
|
15341
15408
|
toastManager12.add({
|
|
15342
15409
|
title: "Something went wrong",
|
|
15343
|
-
description: error.
|
|
15410
|
+
description: error.rawMessage,
|
|
15344
15411
|
type: "error"
|
|
15345
15412
|
});
|
|
15346
15413
|
console.error("Unable to add tokens:", error);
|
|
@@ -15707,8 +15774,8 @@ var OrganizationsDetailsNavabar = ({
|
|
|
15707
15774
|
] });
|
|
15708
15775
|
};
|
|
15709
15776
|
|
|
15710
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15711
|
-
var digest50 = "
|
|
15777
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-bykx5IMmCpMO/sdk/admin/views/organizations/details/layout/layout.module.css.js
|
|
15778
|
+
var digest50 = "1276c7ad234c5cd41023fbc7748a0bfb97d7141c20071bcdf022f6baf827bf41";
|
|
15712
15779
|
var css50 = `._page_1jsqa_1 {
|
|
15713
15780
|
width: 100%;
|
|
15714
15781
|
height: 100vh;
|
|
@@ -15810,24 +15877,56 @@ import { Avatar as Avatar9, getAvatarColor as getAvatarColor7, SidePanel as Side
|
|
|
15810
15877
|
// admin/views/organizations/details/side-panel/org-details-section.tsx
|
|
15811
15878
|
import { Flex as Flex55, List as List7, Text as Text38, CopyButton as CopyButton3, Tooltip as Tooltip3 } from "@raystack/apsara";
|
|
15812
15879
|
|
|
15813
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15814
|
-
var digest51 = "
|
|
15815
|
-
var css51 = `._side-panel-section-item-
|
|
15880
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-L9zzol2arfns/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
|
|
15881
|
+
var digest51 = "a90a9b86dde8ad1d4ba976f9152b87de2835a708d074f28e550b6e014d1fb95e";
|
|
15882
|
+
var css51 = `._side-panel-section-item-label_slrfc_1 {
|
|
15816
15883
|
width: 120px;
|
|
15817
15884
|
}
|
|
15818
15885
|
|
|
15819
|
-
._org-details-section-org-
|
|
15820
|
-
.
|
|
15886
|
+
._org-details-section-org-id_slrfc_5,
|
|
15887
|
+
._kyc_link_slrfc_6 {
|
|
15821
15888
|
max-width: 160px;
|
|
15822
15889
|
overflow: hidden;
|
|
15823
15890
|
text-overflow: ellipsis;
|
|
15824
15891
|
white-space: nowrap;
|
|
15825
15892
|
}
|
|
15826
15893
|
|
|
15827
|
-
._kyc-status-
|
|
15894
|
+
._kyc-status-icon_slrfc_13 {
|
|
15828
15895
|
height: var(--rs-space-5);
|
|
15829
15896
|
width: var(--rs-space-5);
|
|
15830
15897
|
}
|
|
15898
|
+
|
|
15899
|
+
._billing-header_slrfc_18 > span {
|
|
15900
|
+
display: flex;
|
|
15901
|
+
flex: 1;
|
|
15902
|
+
align-items: center;
|
|
15903
|
+
justify-content: space-between;
|
|
15904
|
+
}
|
|
15905
|
+
|
|
15906
|
+
._billing-edit_slrfc_25 {
|
|
15907
|
+
opacity: 0;
|
|
15908
|
+
transition: opacity 120ms ease-in-out;
|
|
15909
|
+
}
|
|
15910
|
+
|
|
15911
|
+
._billing-section_slrfc_30:hover ._billing-edit_slrfc_25,
|
|
15912
|
+
._billing-section_slrfc_30:focus-within ._billing-edit_slrfc_25 {
|
|
15913
|
+
opacity: 1;
|
|
15914
|
+
}
|
|
15915
|
+
|
|
15916
|
+
/* These rules re-create a "disabled but still hoverable (so the tooltip shows)"
|
|
15917
|
+
icon button. This behaviour should ideally be provided by the apsara
|
|
15918
|
+
IconButton/Tooltip components rather than worked around here. */
|
|
15919
|
+
._billing-section_slrfc_30:hover ._billing-edit-disabled_slrfc_38,
|
|
15920
|
+
._billing-section_slrfc_30:focus-within ._billing-edit-disabled_slrfc_38 {
|
|
15921
|
+
opacity: 0.5;
|
|
15922
|
+
cursor: default;
|
|
15923
|
+
}
|
|
15924
|
+
|
|
15925
|
+
._billing-section_slrfc_30:hover ._billing-edit-disabled_slrfc_38:hover,
|
|
15926
|
+
._billing-section_slrfc_30:hover ._billing-edit-disabled_slrfc_38:active {
|
|
15927
|
+
background-color: transparent;
|
|
15928
|
+
color: var(--rs-color-foreground-base-secondary);
|
|
15929
|
+
}
|
|
15831
15930
|
`;
|
|
15832
15931
|
(function() {
|
|
15833
15932
|
if (typeof document === "undefined") {
|
|
@@ -15840,7 +15939,7 @@ var css51 = `._side-panel-section-item-label_yeg6h_1 {
|
|
|
15840
15939
|
document.head.appendChild(el);
|
|
15841
15940
|
}
|
|
15842
15941
|
})();
|
|
15843
|
-
var side_panel_module_css_default5 = { "side-panel-section-item-label": "_side-panel-section-item-
|
|
15942
|
+
var side_panel_module_css_default5 = { "side-panel-section-item-label": "_side-panel-section-item-label_slrfc_1", "sidePanelSectionItemLabel": "_side-panel-section-item-label_slrfc_1", "org-details-section-org-id": "_org-details-section-org-id_slrfc_5", "orgDetailsSectionOrgId": "_org-details-section-org-id_slrfc_5", "kyc_link": "_kyc_link_slrfc_6", "kycLink": "_kyc_link_slrfc_6", "kyc-status-icon": "_kyc-status-icon_slrfc_13", "kycStatusIcon": "_kyc-status-icon_slrfc_13", "billing-header": "_billing-header_slrfc_18", "billingHeader": "_billing-header_slrfc_18", "billing-edit": "_billing-edit_slrfc_25", "billingEdit": "_billing-edit_slrfc_25", "billing-section": "_billing-section_slrfc_30", "billingSection": "_billing-section_slrfc_30", "billing-edit-disabled": "_billing-edit-disabled_slrfc_38", "billingEditDisabled": "_billing-edit-disabled_slrfc_38" };
|
|
15844
15943
|
|
|
15845
15944
|
// admin/views/organizations/details/side-panel/org-details-section.tsx
|
|
15846
15945
|
import dayjs12 from "dayjs";
|
|
@@ -15909,24 +16008,56 @@ var OrganizationDetailsSection = ({
|
|
|
15909
16008
|
import { Flex as Flex56, List as List8, Text as Text39, Link as Link2, Tooltip as Tooltip4 } from "@raystack/apsara";
|
|
15910
16009
|
import { useContext as useContext9 } from "react";
|
|
15911
16010
|
|
|
15912
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
15913
|
-
var digest52 = "
|
|
15914
|
-
var css52 = `._side-panel-section-item-
|
|
16011
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-emqp0Pkbacqt/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
|
|
16012
|
+
var digest52 = "f19152f3298b5a8264e5b8215b557b7ee536ea3e6fb868011ae6c178dd6c9ed8";
|
|
16013
|
+
var css52 = `._side-panel-section-item-label_slrfc_1 {
|
|
15915
16014
|
width: 120px;
|
|
15916
16015
|
}
|
|
15917
16016
|
|
|
15918
|
-
._org-details-section-org-
|
|
15919
|
-
.
|
|
16017
|
+
._org-details-section-org-id_slrfc_5,
|
|
16018
|
+
._kyc_link_slrfc_6 {
|
|
15920
16019
|
max-width: 160px;
|
|
15921
16020
|
overflow: hidden;
|
|
15922
16021
|
text-overflow: ellipsis;
|
|
15923
16022
|
white-space: nowrap;
|
|
15924
16023
|
}
|
|
15925
16024
|
|
|
15926
|
-
._kyc-status-
|
|
16025
|
+
._kyc-status-icon_slrfc_13 {
|
|
15927
16026
|
height: var(--rs-space-5);
|
|
15928
16027
|
width: var(--rs-space-5);
|
|
15929
16028
|
}
|
|
16029
|
+
|
|
16030
|
+
._billing-header_slrfc_18 > span {
|
|
16031
|
+
display: flex;
|
|
16032
|
+
flex: 1;
|
|
16033
|
+
align-items: center;
|
|
16034
|
+
justify-content: space-between;
|
|
16035
|
+
}
|
|
16036
|
+
|
|
16037
|
+
._billing-edit_slrfc_25 {
|
|
16038
|
+
opacity: 0;
|
|
16039
|
+
transition: opacity 120ms ease-in-out;
|
|
16040
|
+
}
|
|
16041
|
+
|
|
16042
|
+
._billing-section_slrfc_30:hover ._billing-edit_slrfc_25,
|
|
16043
|
+
._billing-section_slrfc_30:focus-within ._billing-edit_slrfc_25 {
|
|
16044
|
+
opacity: 1;
|
|
16045
|
+
}
|
|
16046
|
+
|
|
16047
|
+
/* These rules re-create a "disabled but still hoverable (so the tooltip shows)"
|
|
16048
|
+
icon button. This behaviour should ideally be provided by the apsara
|
|
16049
|
+
IconButton/Tooltip components rather than worked around here. */
|
|
16050
|
+
._billing-section_slrfc_30:hover ._billing-edit-disabled_slrfc_38,
|
|
16051
|
+
._billing-section_slrfc_30:focus-within ._billing-edit-disabled_slrfc_38 {
|
|
16052
|
+
opacity: 0.5;
|
|
16053
|
+
cursor: default;
|
|
16054
|
+
}
|
|
16055
|
+
|
|
16056
|
+
._billing-section_slrfc_30:hover ._billing-edit-disabled_slrfc_38:hover,
|
|
16057
|
+
._billing-section_slrfc_30:hover ._billing-edit-disabled_slrfc_38:active {
|
|
16058
|
+
background-color: transparent;
|
|
16059
|
+
color: var(--rs-color-foreground-base-secondary);
|
|
16060
|
+
}
|
|
15930
16061
|
`;
|
|
15931
16062
|
(function() {
|
|
15932
16063
|
if (typeof document === "undefined") {
|
|
@@ -15939,7 +16070,7 @@ var css52 = `._side-panel-section-item-label_yeg6h_1 {
|
|
|
15939
16070
|
document.head.appendChild(el);
|
|
15940
16071
|
}
|
|
15941
16072
|
})();
|
|
15942
|
-
var side_panel_module_css_default6 = { "side-panel-section-item-label": "_side-panel-section-item-
|
|
16073
|
+
var side_panel_module_css_default6 = { "side-panel-section-item-label": "_side-panel-section-item-label_slrfc_1", "sidePanelSectionItemLabel": "_side-panel-section-item-label_slrfc_1", "org-details-section-org-id": "_org-details-section-org-id_slrfc_5", "orgDetailsSectionOrgId": "_org-details-section-org-id_slrfc_5", "kyc_link": "_kyc_link_slrfc_6", "kycLink": "_kyc_link_slrfc_6", "kyc-status-icon": "_kyc-status-icon_slrfc_13", "kycStatusIcon": "_kyc-status-icon_slrfc_13", "billing-header": "_billing-header_slrfc_18", "billingHeader": "_billing-header_slrfc_18", "billing-edit": "_billing-edit_slrfc_25", "billingEdit": "_billing-edit_slrfc_25", "billing-section": "_billing-section_slrfc_30", "billingSection": "_billing-section_slrfc_30", "billing-edit-disabled": "_billing-edit-disabled_slrfc_38", "billingEditDisabled": "_billing-edit-disabled_slrfc_38" };
|
|
15943
16074
|
|
|
15944
16075
|
// admin/views/organizations/details/side-panel/kyc-section.tsx
|
|
15945
16076
|
import {
|
|
@@ -16004,24 +16135,56 @@ var KYCDetailsSection = () => {
|
|
|
16004
16135
|
import { useContext as useContext10 } from "react";
|
|
16005
16136
|
import { List as List9, Text as Text40, Flex as Flex57 } from "@raystack/apsara";
|
|
16006
16137
|
|
|
16007
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16008
|
-
var digest53 = "
|
|
16009
|
-
var css53 = `._side-panel-section-item-
|
|
16138
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-A5BmK90kjZ3T/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
|
|
16139
|
+
var digest53 = "d67cfc11b6c157aebd194718bc06b2b8e270ee63593d29923b8eb584550499c0";
|
|
16140
|
+
var css53 = `._side-panel-section-item-label_slrfc_1 {
|
|
16010
16141
|
width: 120px;
|
|
16011
16142
|
}
|
|
16012
16143
|
|
|
16013
|
-
._org-details-section-org-
|
|
16014
|
-
.
|
|
16144
|
+
._org-details-section-org-id_slrfc_5,
|
|
16145
|
+
._kyc_link_slrfc_6 {
|
|
16015
16146
|
max-width: 160px;
|
|
16016
16147
|
overflow: hidden;
|
|
16017
16148
|
text-overflow: ellipsis;
|
|
16018
16149
|
white-space: nowrap;
|
|
16019
16150
|
}
|
|
16020
16151
|
|
|
16021
|
-
._kyc-status-
|
|
16152
|
+
._kyc-status-icon_slrfc_13 {
|
|
16022
16153
|
height: var(--rs-space-5);
|
|
16023
16154
|
width: var(--rs-space-5);
|
|
16024
16155
|
}
|
|
16156
|
+
|
|
16157
|
+
._billing-header_slrfc_18 > span {
|
|
16158
|
+
display: flex;
|
|
16159
|
+
flex: 1;
|
|
16160
|
+
align-items: center;
|
|
16161
|
+
justify-content: space-between;
|
|
16162
|
+
}
|
|
16163
|
+
|
|
16164
|
+
._billing-edit_slrfc_25 {
|
|
16165
|
+
opacity: 0;
|
|
16166
|
+
transition: opacity 120ms ease-in-out;
|
|
16167
|
+
}
|
|
16168
|
+
|
|
16169
|
+
._billing-section_slrfc_30:hover ._billing-edit_slrfc_25,
|
|
16170
|
+
._billing-section_slrfc_30:focus-within ._billing-edit_slrfc_25 {
|
|
16171
|
+
opacity: 1;
|
|
16172
|
+
}
|
|
16173
|
+
|
|
16174
|
+
/* These rules re-create a "disabled but still hoverable (so the tooltip shows)"
|
|
16175
|
+
icon button. This behaviour should ideally be provided by the apsara
|
|
16176
|
+
IconButton/Tooltip components rather than worked around here. */
|
|
16177
|
+
._billing-section_slrfc_30:hover ._billing-edit-disabled_slrfc_38,
|
|
16178
|
+
._billing-section_slrfc_30:focus-within ._billing-edit-disabled_slrfc_38 {
|
|
16179
|
+
opacity: 0.5;
|
|
16180
|
+
cursor: default;
|
|
16181
|
+
}
|
|
16182
|
+
|
|
16183
|
+
._billing-section_slrfc_30:hover ._billing-edit-disabled_slrfc_38:hover,
|
|
16184
|
+
._billing-section_slrfc_30:hover ._billing-edit-disabled_slrfc_38:active {
|
|
16185
|
+
background-color: transparent;
|
|
16186
|
+
color: var(--rs-color-foreground-base-secondary);
|
|
16187
|
+
}
|
|
16025
16188
|
`;
|
|
16026
16189
|
(function() {
|
|
16027
16190
|
if (typeof document === "undefined") {
|
|
@@ -16034,7 +16197,7 @@ var css53 = `._side-panel-section-item-label_yeg6h_1 {
|
|
|
16034
16197
|
document.head.appendChild(el);
|
|
16035
16198
|
}
|
|
16036
16199
|
})();
|
|
16037
|
-
var side_panel_module_css_default7 = { "side-panel-section-item-label": "_side-panel-section-item-
|
|
16200
|
+
var side_panel_module_css_default7 = { "side-panel-section-item-label": "_side-panel-section-item-label_slrfc_1", "sidePanelSectionItemLabel": "_side-panel-section-item-label_slrfc_1", "org-details-section-org-id": "_org-details-section-org-id_slrfc_5", "orgDetailsSectionOrgId": "_org-details-section-org-id_slrfc_5", "kyc_link": "_kyc_link_slrfc_6", "kycLink": "_kyc_link_slrfc_6", "kyc-status-icon": "_kyc-status-icon_slrfc_13", "kycStatusIcon": "_kyc-status-icon_slrfc_13", "billing-header": "_billing-header_slrfc_18", "billingHeader": "_billing-header_slrfc_18", "billing-edit": "_billing-edit_slrfc_25", "billingEdit": "_billing-edit_slrfc_25", "billing-section": "_billing-section_slrfc_30", "billingSection": "_billing-section_slrfc_30", "billing-edit-disabled": "_billing-edit-disabled_slrfc_38", "billingEditDisabled": "_billing-edit-disabled_slrfc_38" };
|
|
16038
16201
|
|
|
16039
16202
|
// admin/views/organizations/details/side-panel/plan-details-section.tsx
|
|
16040
16203
|
import { useQuery as useQuery13 } from "@connectrpc/connect-query";
|
|
@@ -16107,24 +16270,56 @@ var PlanDetailsSection = () => {
|
|
|
16107
16270
|
import { List as List10, Text as Text41, Flex as Flex58 } from "@raystack/apsara";
|
|
16108
16271
|
import { CoinIcon, CoinColoredIcon } from "@raystack/apsara/icons";
|
|
16109
16272
|
|
|
16110
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16111
|
-
var digest54 = "
|
|
16112
|
-
var css54 = `._side-panel-section-item-
|
|
16273
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-z49EHDIAVN65/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
|
|
16274
|
+
var digest54 = "1037b0113f4381889ca3a9c05cbbf14e1da6363166784d74f3bf255a29bc488f";
|
|
16275
|
+
var css54 = `._side-panel-section-item-label_slrfc_1 {
|
|
16113
16276
|
width: 120px;
|
|
16114
16277
|
}
|
|
16115
16278
|
|
|
16116
|
-
._org-details-section-org-
|
|
16117
|
-
.
|
|
16279
|
+
._org-details-section-org-id_slrfc_5,
|
|
16280
|
+
._kyc_link_slrfc_6 {
|
|
16118
16281
|
max-width: 160px;
|
|
16119
16282
|
overflow: hidden;
|
|
16120
16283
|
text-overflow: ellipsis;
|
|
16121
16284
|
white-space: nowrap;
|
|
16122
16285
|
}
|
|
16123
16286
|
|
|
16124
|
-
._kyc-status-
|
|
16287
|
+
._kyc-status-icon_slrfc_13 {
|
|
16125
16288
|
height: var(--rs-space-5);
|
|
16126
16289
|
width: var(--rs-space-5);
|
|
16127
16290
|
}
|
|
16291
|
+
|
|
16292
|
+
._billing-header_slrfc_18 > span {
|
|
16293
|
+
display: flex;
|
|
16294
|
+
flex: 1;
|
|
16295
|
+
align-items: center;
|
|
16296
|
+
justify-content: space-between;
|
|
16297
|
+
}
|
|
16298
|
+
|
|
16299
|
+
._billing-edit_slrfc_25 {
|
|
16300
|
+
opacity: 0;
|
|
16301
|
+
transition: opacity 120ms ease-in-out;
|
|
16302
|
+
}
|
|
16303
|
+
|
|
16304
|
+
._billing-section_slrfc_30:hover ._billing-edit_slrfc_25,
|
|
16305
|
+
._billing-section_slrfc_30:focus-within ._billing-edit_slrfc_25 {
|
|
16306
|
+
opacity: 1;
|
|
16307
|
+
}
|
|
16308
|
+
|
|
16309
|
+
/* These rules re-create a "disabled but still hoverable (so the tooltip shows)"
|
|
16310
|
+
icon button. This behaviour should ideally be provided by the apsara
|
|
16311
|
+
IconButton/Tooltip components rather than worked around here. */
|
|
16312
|
+
._billing-section_slrfc_30:hover ._billing-edit-disabled_slrfc_38,
|
|
16313
|
+
._billing-section_slrfc_30:focus-within ._billing-edit-disabled_slrfc_38 {
|
|
16314
|
+
opacity: 0.5;
|
|
16315
|
+
cursor: default;
|
|
16316
|
+
}
|
|
16317
|
+
|
|
16318
|
+
._billing-section_slrfc_30:hover ._billing-edit-disabled_slrfc_38:hover,
|
|
16319
|
+
._billing-section_slrfc_30:hover ._billing-edit-disabled_slrfc_38:active {
|
|
16320
|
+
background-color: transparent;
|
|
16321
|
+
color: var(--rs-color-foreground-base-secondary);
|
|
16322
|
+
}
|
|
16128
16323
|
`;
|
|
16129
16324
|
(function() {
|
|
16130
16325
|
if (typeof document === "undefined") {
|
|
@@ -16137,7 +16332,7 @@ var css54 = `._side-panel-section-item-label_yeg6h_1 {
|
|
|
16137
16332
|
document.head.appendChild(el);
|
|
16138
16333
|
}
|
|
16139
16334
|
})();
|
|
16140
|
-
var side_panel_module_css_default8 = { "side-panel-section-item-label": "_side-panel-section-item-
|
|
16335
|
+
var side_panel_module_css_default8 = { "side-panel-section-item-label": "_side-panel-section-item-label_slrfc_1", "sidePanelSectionItemLabel": "_side-panel-section-item-label_slrfc_1", "org-details-section-org-id": "_org-details-section-org-id_slrfc_5", "orgDetailsSectionOrgId": "_org-details-section-org-id_slrfc_5", "kyc_link": "_kyc_link_slrfc_6", "kycLink": "_kyc_link_slrfc_6", "kyc-status-icon": "_kyc-status-icon_slrfc_13", "kycStatusIcon": "_kyc-status-icon_slrfc_13", "billing-header": "_billing-header_slrfc_18", "billingHeader": "_billing-header_slrfc_18", "billing-edit": "_billing-edit_slrfc_25", "billingEdit": "_billing-edit_slrfc_25", "billing-section": "_billing-section_slrfc_30", "billingSection": "_billing-section_slrfc_30", "billing-edit-disabled": "_billing-edit-disabled_slrfc_38", "billingEditDisabled": "_billing-edit-disabled_slrfc_38" };
|
|
16141
16336
|
|
|
16142
16337
|
// admin/views/organizations/details/side-panel/tokens-details-section.tsx
|
|
16143
16338
|
import { useContext as useContext11, useEffect as useEffect8 } from "react";
|
|
@@ -16207,26 +16402,58 @@ var TokensDetailsSection = () => {
|
|
|
16207
16402
|
};
|
|
16208
16403
|
|
|
16209
16404
|
// admin/views/organizations/details/side-panel/billing-details-section.tsx
|
|
16210
|
-
import { Amount as Amount4, CopyButton as CopyButton4, Flex as Flex59, Link as Link3, List as List11, Text as Text42 } from "@raystack/apsara";
|
|
16405
|
+
import { Amount as Amount4, CopyButton as CopyButton4, Flex as Flex59, IconButton as IconButton11, Link as Link3, List as List11, Text as Text42, Tooltip as Tooltip5, toastManager as toastManager14 } from "@raystack/apsara";
|
|
16211
16406
|
|
|
16212
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16213
|
-
var digest55 = "
|
|
16214
|
-
var css55 = `._side-panel-section-item-
|
|
16407
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-VJxfj6F9SSp6/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
|
|
16408
|
+
var digest55 = "e95a5d729fa040782ad2933f2033195258c0670390beec0cb19ed20e4c6cab09";
|
|
16409
|
+
var css55 = `._side-panel-section-item-label_slrfc_1 {
|
|
16215
16410
|
width: 120px;
|
|
16216
16411
|
}
|
|
16217
16412
|
|
|
16218
|
-
._org-details-section-org-
|
|
16219
|
-
.
|
|
16413
|
+
._org-details-section-org-id_slrfc_5,
|
|
16414
|
+
._kyc_link_slrfc_6 {
|
|
16220
16415
|
max-width: 160px;
|
|
16221
16416
|
overflow: hidden;
|
|
16222
16417
|
text-overflow: ellipsis;
|
|
16223
16418
|
white-space: nowrap;
|
|
16224
16419
|
}
|
|
16225
16420
|
|
|
16226
|
-
._kyc-status-
|
|
16421
|
+
._kyc-status-icon_slrfc_13 {
|
|
16227
16422
|
height: var(--rs-space-5);
|
|
16228
16423
|
width: var(--rs-space-5);
|
|
16229
16424
|
}
|
|
16425
|
+
|
|
16426
|
+
._billing-header_slrfc_18 > span {
|
|
16427
|
+
display: flex;
|
|
16428
|
+
flex: 1;
|
|
16429
|
+
align-items: center;
|
|
16430
|
+
justify-content: space-between;
|
|
16431
|
+
}
|
|
16432
|
+
|
|
16433
|
+
._billing-edit_slrfc_25 {
|
|
16434
|
+
opacity: 0;
|
|
16435
|
+
transition: opacity 120ms ease-in-out;
|
|
16436
|
+
}
|
|
16437
|
+
|
|
16438
|
+
._billing-section_slrfc_30:hover ._billing-edit_slrfc_25,
|
|
16439
|
+
._billing-section_slrfc_30:focus-within ._billing-edit_slrfc_25 {
|
|
16440
|
+
opacity: 1;
|
|
16441
|
+
}
|
|
16442
|
+
|
|
16443
|
+
/* These rules re-create a "disabled but still hoverable (so the tooltip shows)"
|
|
16444
|
+
icon button. This behaviour should ideally be provided by the apsara
|
|
16445
|
+
IconButton/Tooltip components rather than worked around here. */
|
|
16446
|
+
._billing-section_slrfc_30:hover ._billing-edit-disabled_slrfc_38,
|
|
16447
|
+
._billing-section_slrfc_30:focus-within ._billing-edit-disabled_slrfc_38 {
|
|
16448
|
+
opacity: 0.5;
|
|
16449
|
+
cursor: default;
|
|
16450
|
+
}
|
|
16451
|
+
|
|
16452
|
+
._billing-section_slrfc_30:hover ._billing-edit-disabled_slrfc_38:hover,
|
|
16453
|
+
._billing-section_slrfc_30:hover ._billing-edit-disabled_slrfc_38:active {
|
|
16454
|
+
background-color: transparent;
|
|
16455
|
+
color: var(--rs-color-foreground-base-secondary);
|
|
16456
|
+
}
|
|
16230
16457
|
`;
|
|
16231
16458
|
(function() {
|
|
16232
16459
|
if (typeof document === "undefined") {
|
|
@@ -16239,12 +16466,12 @@ var css55 = `._side-panel-section-item-label_yeg6h_1 {
|
|
|
16239
16466
|
document.head.appendChild(el);
|
|
16240
16467
|
}
|
|
16241
16468
|
})();
|
|
16242
|
-
var side_panel_module_css_default9 = { "side-panel-section-item-label": "_side-panel-section-item-
|
|
16469
|
+
var side_panel_module_css_default9 = { "side-panel-section-item-label": "_side-panel-section-item-label_slrfc_1", "sidePanelSectionItemLabel": "_side-panel-section-item-label_slrfc_1", "org-details-section-org-id": "_org-details-section-org-id_slrfc_5", "orgDetailsSectionOrgId": "_org-details-section-org-id_slrfc_5", "kyc_link": "_kyc_link_slrfc_6", "kycLink": "_kyc_link_slrfc_6", "kyc-status-icon": "_kyc-status-icon_slrfc_13", "kycStatusIcon": "_kyc-status-icon_slrfc_13", "billing-header": "_billing-header_slrfc_18", "billingHeader": "_billing-header_slrfc_18", "billing-edit": "_billing-edit_slrfc_25", "billingEdit": "_billing-edit_slrfc_25", "billing-section": "_billing-section_slrfc_30", "billingSection": "_billing-section_slrfc_30", "billing-edit-disabled": "_billing-edit-disabled_slrfc_38", "billingEditDisabled": "_billing-edit-disabled_slrfc_38" };
|
|
16243
16470
|
|
|
16244
16471
|
// admin/views/organizations/details/side-panel/billing-details-section.tsx
|
|
16245
16472
|
import { useContext as useContext12, useEffect as useEffect9 } from "react";
|
|
16246
|
-
import { useQuery as useQuery15 } from "@connectrpc/connect-query";
|
|
16247
|
-
import { FrontierServiceQueries as FrontierServiceQueries15, GetUpcomingInvoiceRequestSchema } from "@raystack/proton/frontier";
|
|
16473
|
+
import { useMutation as useMutation12, useQuery as useQuery15 } from "@connectrpc/connect-query";
|
|
16474
|
+
import { CreateCheckoutRequestSchema, FrontierServiceQueries as FrontierServiceQueries15, GetUpcomingInvoiceRequestSchema } from "@raystack/proton/frontier";
|
|
16248
16475
|
import { create as create14 } from "@bufbuild/protobuf";
|
|
16249
16476
|
import { jsx as jsx83, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
16250
16477
|
var BillingDetailsSection = () => {
|
|
@@ -16269,8 +16496,69 @@ var BillingDetailsSection = () => {
|
|
|
16269
16496
|
}, [error]);
|
|
16270
16497
|
const due_date = upcomingInvoice?.dueDate || upcomingInvoice?.periodEndAt;
|
|
16271
16498
|
const stripeLink = billingAccount?.providerId ? "https://dashboard.stripe.com/customers/" + billingAccount?.providerId : "";
|
|
16272
|
-
|
|
16273
|
-
|
|
16499
|
+
const { mutateAsync: createCheckout, isPending: isPortalLoading } = useMutation12(FrontierServiceQueries15.createCheckout, {
|
|
16500
|
+
onError: (error2) => {
|
|
16501
|
+
toastManager14.add({
|
|
16502
|
+
title: "Something went wrong",
|
|
16503
|
+
description: error2.rawMessage,
|
|
16504
|
+
type: "error"
|
|
16505
|
+
});
|
|
16506
|
+
console.error("Unable to open billing portal:", error2);
|
|
16507
|
+
}
|
|
16508
|
+
});
|
|
16509
|
+
const isBillingPortalDisabled = isPortalLoading || !billingAccountId;
|
|
16510
|
+
const handleOpenBillingPortal = async () => {
|
|
16511
|
+
if (isBillingPortalDisabled)
|
|
16512
|
+
return;
|
|
16513
|
+
const returnUrl = window.location.href;
|
|
16514
|
+
const portalTab = window.open("", "_blank");
|
|
16515
|
+
if (portalTab)
|
|
16516
|
+
portalTab.opener = null;
|
|
16517
|
+
try {
|
|
16518
|
+
const resp = await createCheckout(
|
|
16519
|
+
create14(CreateCheckoutRequestSchema, {
|
|
16520
|
+
orgId: organizationId,
|
|
16521
|
+
cancelUrl: returnUrl,
|
|
16522
|
+
successUrl: returnUrl,
|
|
16523
|
+
setupBody: { paymentMethod: false, customerPortal: true }
|
|
16524
|
+
})
|
|
16525
|
+
);
|
|
16526
|
+
const checkoutUrl = resp?.checkoutSession?.checkoutUrl;
|
|
16527
|
+
if (checkoutUrl && portalTab) {
|
|
16528
|
+
portalTab.location.href = checkoutUrl;
|
|
16529
|
+
} else if (checkoutUrl) {
|
|
16530
|
+
window.open(checkoutUrl, "_blank", "noopener,noreferrer");
|
|
16531
|
+
} else {
|
|
16532
|
+
portalTab?.close();
|
|
16533
|
+
}
|
|
16534
|
+
} catch {
|
|
16535
|
+
portalTab?.close();
|
|
16536
|
+
}
|
|
16537
|
+
};
|
|
16538
|
+
return /* @__PURE__ */ jsxs62(List11, { className: side_panel_module_css_default9["billing-section"], children: [
|
|
16539
|
+
/* @__PURE__ */ jsxs62(List11.Header, { className: side_panel_module_css_default9["billing-header"], children: [
|
|
16540
|
+
"Billing",
|
|
16541
|
+
/* @__PURE__ */ jsxs62(Tooltip5, { children: [
|
|
16542
|
+
/* @__PURE__ */ jsx83(
|
|
16543
|
+
Tooltip5.Trigger,
|
|
16544
|
+
{
|
|
16545
|
+
render: /* @__PURE__ */ jsx83(
|
|
16546
|
+
IconButton11,
|
|
16547
|
+
{
|
|
16548
|
+
size: 2,
|
|
16549
|
+
"aria-label": "Update billing details",
|
|
16550
|
+
"data-test-id": "admin-billing-portal-button",
|
|
16551
|
+
"aria-disabled": isBillingPortalDisabled,
|
|
16552
|
+
className: isBillingPortalDisabled ? `${side_panel_module_css_default9["billing-edit"]} ${side_panel_module_css_default9["billing-edit-disabled"]}` : side_panel_module_css_default9["billing-edit"],
|
|
16553
|
+
onClick: handleOpenBillingPortal,
|
|
16554
|
+
children: /* @__PURE__ */ jsx83(Pencil1Icon, {})
|
|
16555
|
+
}
|
|
16556
|
+
)
|
|
16557
|
+
}
|
|
16558
|
+
),
|
|
16559
|
+
/* @__PURE__ */ jsx83(Tooltip5.Content, { children: billingAccountId ? "Update billing details" : "No billing account for this organization" })
|
|
16560
|
+
] })
|
|
16561
|
+
] }),
|
|
16274
16562
|
/* @__PURE__ */ jsxs62(List11.Item, { children: [
|
|
16275
16563
|
/* @__PURE__ */ jsx83(List11.Label, { className: side_panel_module_css_default9["side-panel-section-item-label"], children: "Name" }),
|
|
16276
16564
|
/* @__PURE__ */ jsx83(List11.Value, { className: side_panel_module_css_default9["side-panel-section-item-value"], children: isLoading ? /* @__PURE__ */ jsx83(Skeleton, {}) : /* @__PURE__ */ jsx83(Text42, { children: billingAccount?.name || "N/A" }) })
|
|
@@ -16358,18 +16646,18 @@ import {
|
|
|
16358
16646
|
Button as Button20,
|
|
16359
16647
|
Field as Field2,
|
|
16360
16648
|
Flex as Flex60,
|
|
16361
|
-
IconButton as
|
|
16649
|
+
IconButton as IconButton12,
|
|
16362
16650
|
Input as Input5,
|
|
16363
16651
|
Label as Label6,
|
|
16364
16652
|
Drawer as Drawer7,
|
|
16365
16653
|
SidePanel as SidePanel5,
|
|
16366
16654
|
Switch as Switch3,
|
|
16367
16655
|
Text as Text43,
|
|
16368
|
-
toastManager as
|
|
16656
|
+
toastManager as toastManager15
|
|
16369
16657
|
} from "@raystack/apsara";
|
|
16370
16658
|
|
|
16371
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16372
|
-
var digest56 = "
|
|
16659
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-3EuQr8Soydxo/sdk/admin/views/organizations/details/edit/edit.module.css.js
|
|
16660
|
+
var digest56 = "f044a56fb159bcd3d3fe4b0fd683d4050ee43ed98f9829c92d44f1c20ee0f893";
|
|
16373
16661
|
var css56 = `._drawer-content_18xgg_1 {
|
|
16374
16662
|
min-width: 500px;
|
|
16375
16663
|
padding: 0;
|
|
@@ -16421,7 +16709,7 @@ var edit_module_css_default = { "drawer-content": "_drawer-content_18xgg_1", "dr
|
|
|
16421
16709
|
import { useContext as useContext13 } from "react";
|
|
16422
16710
|
import { Controller as Controller6, useForm as useForm8 } from "react-hook-form";
|
|
16423
16711
|
import { zodResolver as zodResolver8 } from "@hookform/resolvers/zod";
|
|
16424
|
-
import { useMutation as
|
|
16712
|
+
import { useMutation as useMutation13, createConnectQueryKey as createConnectQueryKey7, useTransport as useTransport8 } from "@connectrpc/connect-query";
|
|
16425
16713
|
import { useQueryClient as useQueryClient9 } from "@tanstack/react-query";
|
|
16426
16714
|
import { AdminServiceQueries as AdminServiceQueries18, FrontierServiceQueries as FrontierServiceQueries16, SetOrganizationKycRequestSchema } from "@raystack/proton/frontier";
|
|
16427
16715
|
import { create as create15 } from "@bufbuild/protobuf";
|
|
@@ -16456,7 +16744,7 @@ function EditKYCPanel({ open = false, onClose }) {
|
|
|
16456
16744
|
});
|
|
16457
16745
|
const {
|
|
16458
16746
|
mutateAsync: setOrganizationKycMutation
|
|
16459
|
-
} =
|
|
16747
|
+
} = useMutation13(AdminServiceQueries18.setOrganizationKyc, {
|
|
16460
16748
|
onSuccess: (data) => {
|
|
16461
16749
|
const newKycDetails = data.organizationKyc;
|
|
16462
16750
|
if (newKycDetails) {
|
|
@@ -16470,11 +16758,11 @@ function EditKYCPanel({ open = false, onClose }) {
|
|
|
16470
16758
|
cardinality: "finite"
|
|
16471
16759
|
})
|
|
16472
16760
|
});
|
|
16473
|
-
|
|
16761
|
+
toastManager15.add({ title: "KYC details updated successfully", type: "success" });
|
|
16474
16762
|
onClose();
|
|
16475
16763
|
},
|
|
16476
16764
|
onError: (error) => {
|
|
16477
|
-
|
|
16765
|
+
toastManager15.add({ title: "Failed to update KYC details", description: error.rawMessage, type: "error" });
|
|
16478
16766
|
console.error("Unable to update KYC details:", error);
|
|
16479
16767
|
}
|
|
16480
16768
|
});
|
|
@@ -16502,7 +16790,7 @@ function EditKYCPanel({ open = false, onClose }) {
|
|
|
16502
16790
|
title: "Edit KYC",
|
|
16503
16791
|
actions: [
|
|
16504
16792
|
/* @__PURE__ */ jsx85(
|
|
16505
|
-
|
|
16793
|
+
IconButton12,
|
|
16506
16794
|
{
|
|
16507
16795
|
"data-test-id": "close-kyc-panel-icon",
|
|
16508
16796
|
onClick: onClose,
|
|
@@ -16595,8 +16883,8 @@ function EditKYCPanel({ open = false, onClose }) {
|
|
|
16595
16883
|
// admin/views/organizations/details/edit/organization.tsx
|
|
16596
16884
|
import { useContext as useContext14, useEffect as useEffect10, useState as useState23 } from "react";
|
|
16597
16885
|
|
|
16598
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16599
|
-
var digest57 = "
|
|
16886
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-y34TJjhpV98k/sdk/admin/views/organizations/details/edit/edit.module.css.js
|
|
16887
|
+
var digest57 = "a647dd354e3645466bfce1ba3d2077b4f15a98b0d829b46817e27eb075af6cec";
|
|
16600
16888
|
var css57 = `._drawer-content_18xgg_1 {
|
|
16601
16889
|
min-width: 500px;
|
|
16602
16890
|
padding: 0;
|
|
@@ -16649,7 +16937,7 @@ import {
|
|
|
16649
16937
|
Button as Button21,
|
|
16650
16938
|
Field as Field3,
|
|
16651
16939
|
Flex as Flex61,
|
|
16652
|
-
IconButton as
|
|
16940
|
+
IconButton as IconButton13,
|
|
16653
16941
|
Input as Input6,
|
|
16654
16942
|
Select as Select5,
|
|
16655
16943
|
Drawer as Drawer8,
|
|
@@ -16659,7 +16947,7 @@ import {
|
|
|
16659
16947
|
} from "@raystack/apsara";
|
|
16660
16948
|
import { Controller as Controller7, useForm as useForm9 } from "react-hook-form";
|
|
16661
16949
|
import { zodResolver as zodResolver9 } from "@hookform/resolvers/zod";
|
|
16662
|
-
import { useMutation as
|
|
16950
|
+
import { useMutation as useMutation14, createConnectQueryKey as createConnectQueryKey8, useTransport as useTransport9 } from "@connectrpc/connect-query";
|
|
16663
16951
|
import { useQueryClient as useQueryClient10 } from "@tanstack/react-query";
|
|
16664
16952
|
import { FrontierServiceQueries as FrontierServiceQueries17, UpdateOrganizationRequestSchema } from "@raystack/proton/frontier";
|
|
16665
16953
|
import { create as create16 } from "@bufbuild/protobuf";
|
|
@@ -16725,7 +17013,7 @@ function EditOrganizationPanel({ open = false, onClose }) {
|
|
|
16725
17013
|
mutateAsync: updateOrganizationMutation,
|
|
16726
17014
|
error: mutationError,
|
|
16727
17015
|
isPending: isSubmitting
|
|
16728
|
-
} =
|
|
17016
|
+
} = useMutation14(FrontierServiceQueries17.updateOrganization, {
|
|
16729
17017
|
onSuccess: () => {
|
|
16730
17018
|
queryClient.invalidateQueries({
|
|
16731
17019
|
queryKey: createConnectQueryKey8({
|
|
@@ -16780,7 +17068,7 @@ function EditOrganizationPanel({ open = false, onClose }) {
|
|
|
16780
17068
|
title: `Edit ${t.organization({ case: "lower" })}`,
|
|
16781
17069
|
actions: [
|
|
16782
17070
|
/* @__PURE__ */ jsx86(
|
|
16783
|
-
|
|
17071
|
+
IconButton13,
|
|
16784
17072
|
{
|
|
16785
17073
|
"data-test-id": "close-edit-org-panel-icon",
|
|
16786
17074
|
onClick: onClose,
|
|
@@ -16963,17 +17251,17 @@ import {
|
|
|
16963
17251
|
Button as Button22,
|
|
16964
17252
|
Field as Field4,
|
|
16965
17253
|
Flex as Flex62,
|
|
16966
|
-
IconButton as
|
|
17254
|
+
IconButton as IconButton14,
|
|
16967
17255
|
Input as Input7,
|
|
16968
17256
|
Text as Text45,
|
|
16969
17257
|
Select as Select6,
|
|
16970
17258
|
Drawer as Drawer9,
|
|
16971
17259
|
SidePanel as SidePanel7,
|
|
16972
|
-
toastManager as
|
|
17260
|
+
toastManager as toastManager16
|
|
16973
17261
|
} from "@raystack/apsara";
|
|
16974
17262
|
|
|
16975
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
16976
|
-
var digest58 = "
|
|
17263
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-dhv1J6ttrqLh/sdk/admin/views/organizations/details/edit/edit.module.css.js
|
|
17264
|
+
var digest58 = "474eef11560fc902248b9e9bd5f99c6485b1fafccac7a361e55d6d26b8d2c0d8";
|
|
16977
17265
|
var css58 = `._drawer-content_18xgg_1 {
|
|
16978
17266
|
min-width: 500px;
|
|
16979
17267
|
padding: 0;
|
|
@@ -17025,7 +17313,7 @@ var edit_module_css_default3 = { "drawer-content": "_drawer-content_18xgg_1", "d
|
|
|
17025
17313
|
import { useCallback as useCallback11, useContext as useContext15, useEffect as useEffect11, useMemo as useMemo8 } from "react";
|
|
17026
17314
|
import { useForm as useForm10 } from "react-hook-form";
|
|
17027
17315
|
import { zodResolver as zodResolver10 } from "@hookform/resolvers/zod";
|
|
17028
|
-
import { useMutation as
|
|
17316
|
+
import { useMutation as useMutation15 } from "@connectrpc/connect-query";
|
|
17029
17317
|
import {
|
|
17030
17318
|
AdminServiceQueries as AdminServiceQueries19,
|
|
17031
17319
|
UpdateBillingAccountDetailsRequestSchema
|
|
@@ -17102,13 +17390,13 @@ function EditBillingPanel({ open = false, onClose }) {
|
|
|
17102
17390
|
reset(billingDetailsData);
|
|
17103
17391
|
}
|
|
17104
17392
|
}, [billingDetailsData, reset]);
|
|
17105
|
-
const { mutateAsync: updateBillingDetails } =
|
|
17393
|
+
const { mutateAsync: updateBillingDetails } = useMutation15(
|
|
17106
17394
|
AdminServiceQueries19.updateBillingAccountDetails,
|
|
17107
17395
|
{
|
|
17108
17396
|
onError: (error) => {
|
|
17109
|
-
|
|
17397
|
+
toastManager16.add({
|
|
17110
17398
|
title: "Something went wrong",
|
|
17111
|
-
description: error.
|
|
17399
|
+
description: error.rawMessage,
|
|
17112
17400
|
type: "error"
|
|
17113
17401
|
});
|
|
17114
17402
|
console.error("Unable to update billing details:", error);
|
|
@@ -17129,9 +17417,9 @@ function EditBillingPanel({ open = false, onClose }) {
|
|
|
17129
17417
|
})
|
|
17130
17418
|
);
|
|
17131
17419
|
fetchBillingAccountDetails();
|
|
17132
|
-
|
|
17420
|
+
toastManager16.add({ title: "Billing details updated", type: "success" });
|
|
17133
17421
|
} catch (error) {
|
|
17134
|
-
|
|
17422
|
+
toastManager16.add({
|
|
17135
17423
|
title: "Something went wrong",
|
|
17136
17424
|
description: "Failed to update billing details",
|
|
17137
17425
|
type: "error"
|
|
@@ -17164,7 +17452,7 @@ function EditBillingPanel({ open = false, onClose }) {
|
|
|
17164
17452
|
title: "Edit billing",
|
|
17165
17453
|
actions: [
|
|
17166
17454
|
/* @__PURE__ */ jsx87(
|
|
17167
|
-
|
|
17455
|
+
IconButton14,
|
|
17168
17456
|
{
|
|
17169
17457
|
"data-test-id": "close-billing-panel-icon",
|
|
17170
17458
|
onClick: onClose,
|
|
@@ -17605,12 +17893,12 @@ import {
|
|
|
17605
17893
|
Flex as Flex66,
|
|
17606
17894
|
Separator as Separator5,
|
|
17607
17895
|
Text as Text48,
|
|
17608
|
-
Tooltip as
|
|
17609
|
-
toastManager as
|
|
17896
|
+
Tooltip as Tooltip6,
|
|
17897
|
+
toastManager as toastManager19
|
|
17610
17898
|
} from "@raystack/apsara";
|
|
17611
17899
|
|
|
17612
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17613
|
-
var digest59 = "
|
|
17900
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-puCVEvDLhheM/sdk/admin/views/organizations/details/security/security.module.css.js
|
|
17901
|
+
var digest59 = "b96eecf0b10e3ec3d233baddacc9ea4660c58bf8c853c001c788f782e22d1f1d";
|
|
17614
17902
|
var css59 = `._container_1wkae_1 {
|
|
17615
17903
|
width: 100%;
|
|
17616
17904
|
}
|
|
@@ -17654,9 +17942,9 @@ var security_module_css_default2 = { "container": "_container_1wkae_1", "content
|
|
|
17654
17942
|
import { useContext as useContext18 } from "react";
|
|
17655
17943
|
|
|
17656
17944
|
// admin/views/organizations/details/security/block-organization.tsx
|
|
17657
|
-
import { AlertDialog as AlertDialog2, Button as Button23, Flex as Flex64, Text as Text46, toastManager as
|
|
17945
|
+
import { AlertDialog as AlertDialog2, Button as Button23, Flex as Flex64, Text as Text46, toastManager as toastManager17 } from "@raystack/apsara";
|
|
17658
17946
|
import { useContext as useContext16, useState as useState26 } from "react";
|
|
17659
|
-
import { createConnectQueryKey as createConnectQueryKey10, useMutation as
|
|
17947
|
+
import { createConnectQueryKey as createConnectQueryKey10, useMutation as useMutation16, useTransport as useTransport11 } from "@connectrpc/connect-query";
|
|
17660
17948
|
import { FrontierServiceQueries as FrontierServiceQueries19, DisableOrganizationRequestSchema, EnableOrganizationRequestSchema } from "@raystack/proton/frontier";
|
|
17661
17949
|
import { create as create19 } from "@bufbuild/protobuf";
|
|
17662
17950
|
import { useQueryClient as useQueryClient12 } from "@tanstack/react-query";
|
|
@@ -17667,7 +17955,7 @@ var BlockOrganizationDialog = () => {
|
|
|
17667
17955
|
const queryClient = useQueryClient12();
|
|
17668
17956
|
const transport = useTransport11();
|
|
17669
17957
|
const [isDialogOpen, setIsDialogOpen] = useState26(false);
|
|
17670
|
-
const { mutateAsync: disableOrganization, isPending: isDisabling } =
|
|
17958
|
+
const { mutateAsync: disableOrganization, isPending: isDisabling } = useMutation16(
|
|
17671
17959
|
FrontierServiceQueries19.disableOrganization,
|
|
17672
17960
|
{
|
|
17673
17961
|
onSuccess: async () => {
|
|
@@ -17680,19 +17968,19 @@ var BlockOrganizationDialog = () => {
|
|
|
17680
17968
|
})
|
|
17681
17969
|
});
|
|
17682
17970
|
setIsDialogOpen(false);
|
|
17683
|
-
|
|
17971
|
+
toastManager17.add({ title: `${t.organization({ case: "capital" })} blocked`, type: "success" });
|
|
17684
17972
|
},
|
|
17685
17973
|
onError: (error) => {
|
|
17686
|
-
|
|
17974
|
+
toastManager17.add({
|
|
17687
17975
|
title: "Something went wrong",
|
|
17688
|
-
description: error.
|
|
17976
|
+
description: error.rawMessage,
|
|
17689
17977
|
type: "error"
|
|
17690
17978
|
});
|
|
17691
17979
|
console.error("Failed to block organization:", error);
|
|
17692
17980
|
}
|
|
17693
17981
|
}
|
|
17694
17982
|
);
|
|
17695
|
-
const { mutateAsync: enableOrganization, isPending: isEnabling } =
|
|
17983
|
+
const { mutateAsync: enableOrganization, isPending: isEnabling } = useMutation16(
|
|
17696
17984
|
FrontierServiceQueries19.enableOrganization,
|
|
17697
17985
|
{
|
|
17698
17986
|
onSuccess: async () => {
|
|
@@ -17705,12 +17993,12 @@ var BlockOrganizationDialog = () => {
|
|
|
17705
17993
|
})
|
|
17706
17994
|
});
|
|
17707
17995
|
setIsDialogOpen(false);
|
|
17708
|
-
|
|
17996
|
+
toastManager17.add({ title: `${t.organization({ case: "capital" })} unblocked`, type: "success" });
|
|
17709
17997
|
},
|
|
17710
17998
|
onError: (error) => {
|
|
17711
|
-
|
|
17999
|
+
toastManager17.add({
|
|
17712
18000
|
title: "Something went wrong",
|
|
17713
|
-
description: error.
|
|
18001
|
+
description: error.rawMessage,
|
|
17714
18002
|
type: "error"
|
|
17715
18003
|
});
|
|
17716
18004
|
console.error("Failed to unblock organization:", error);
|
|
@@ -17820,13 +18108,13 @@ import {
|
|
|
17820
18108
|
AlertDialog as AlertDialog3,
|
|
17821
18109
|
Button as Button24,
|
|
17822
18110
|
Flex as Flex65,
|
|
17823
|
-
IconButton as
|
|
18111
|
+
IconButton as IconButton15,
|
|
17824
18112
|
Text as Text47,
|
|
17825
|
-
toastManager as
|
|
18113
|
+
toastManager as toastManager18
|
|
17826
18114
|
} from "@raystack/apsara";
|
|
17827
18115
|
|
|
17828
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
17829
|
-
var digest60 = "
|
|
18116
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-k4cBPk3ojj3g/sdk/admin/views/organizations/details/security/security.module.css.js
|
|
18117
|
+
var digest60 = "6103bc86f5b9a1e100a3d7c7eb61e69e3a75ad536689af45c548c0e662fb6158";
|
|
17830
18118
|
var css60 = `._container_1wkae_1 {
|
|
17831
18119
|
width: 100%;
|
|
17832
18120
|
}
|
|
@@ -17868,7 +18156,7 @@ var security_module_css_default3 = { "container": "_container_1wkae_1", "content
|
|
|
17868
18156
|
|
|
17869
18157
|
// admin/views/organizations/details/security/domains-list.tsx
|
|
17870
18158
|
import { useContext as useContext17, useState as useState27 } from "react";
|
|
17871
|
-
import { useMutation as
|
|
18159
|
+
import { useMutation as useMutation17, createConnectQueryKey as createConnectQueryKey11, useTransport as useTransport12 } from "@connectrpc/connect-query";
|
|
17872
18160
|
import { useQueryClient as useQueryClient13 } from "@tanstack/react-query";
|
|
17873
18161
|
import { FrontierServiceQueries as FrontierServiceQueries20, DeleteOrganizationDomainRequestSchema } from "@raystack/proton/frontier";
|
|
17874
18162
|
import { create as create20 } from "@bufbuild/protobuf";
|
|
@@ -17880,7 +18168,7 @@ var DeleteDomainDialog = ({
|
|
|
17880
18168
|
const [isDialogOpen, setIsDialogOpen] = useState27(false);
|
|
17881
18169
|
const queryClient = useQueryClient13();
|
|
17882
18170
|
const transport = useTransport12();
|
|
17883
|
-
const { mutateAsync: deleteDomain, isPending } =
|
|
18171
|
+
const { mutateAsync: deleteDomain, isPending } = useMutation17(
|
|
17884
18172
|
FrontierServiceQueries20.deleteOrganizationDomain,
|
|
17885
18173
|
{
|
|
17886
18174
|
onSuccess: () => {
|
|
@@ -17893,12 +18181,12 @@ var DeleteDomainDialog = ({
|
|
|
17893
18181
|
})
|
|
17894
18182
|
});
|
|
17895
18183
|
setIsDialogOpen(false);
|
|
17896
|
-
|
|
18184
|
+
toastManager18.add({ title: "Domain deleted", type: "success" });
|
|
17897
18185
|
},
|
|
17898
18186
|
onError: (error) => {
|
|
17899
|
-
|
|
18187
|
+
toastManager18.add({
|
|
17900
18188
|
title: "Something went wrong",
|
|
17901
|
-
description: error.
|
|
18189
|
+
description: error.rawMessage,
|
|
17902
18190
|
type: "error"
|
|
17903
18191
|
});
|
|
17904
18192
|
console.error("Unable to delete domain:", error);
|
|
@@ -17920,7 +18208,7 @@ var DeleteDomainDialog = ({
|
|
|
17920
18208
|
/* @__PURE__ */ jsx91(
|
|
17921
18209
|
AlertDialog3.Trigger,
|
|
17922
18210
|
{
|
|
17923
|
-
render: /* @__PURE__ */ jsx91(
|
|
18211
|
+
render: /* @__PURE__ */ jsx91(IconButton15, { size: 3, "data-test-id": "delete-domain-button", children: /* @__PURE__ */ jsx91(TrashIcon, {}) })
|
|
17924
18212
|
}
|
|
17925
18213
|
),
|
|
17926
18214
|
/* @__PURE__ */ jsxs69(AlertDialog3.Content, { children: [
|
|
@@ -18007,8 +18295,8 @@ var AddDomainSection = () => {
|
|
|
18007
18295
|
/* @__PURE__ */ jsx92(Text48, { size: "large", children: "Allowed email domains" }),
|
|
18008
18296
|
/* @__PURE__ */ jsx92(Text48, { size: "small", variant: "secondary", children: "Anyone with an email address at these domains is allowed to sign up for this workspace." })
|
|
18009
18297
|
] }),
|
|
18010
|
-
/* @__PURE__ */ jsxs70(
|
|
18011
|
-
/* @__PURE__ */ jsx92(
|
|
18298
|
+
/* @__PURE__ */ jsxs70(Tooltip6, { children: [
|
|
18299
|
+
/* @__PURE__ */ jsx92(Tooltip6.Trigger, { render: /* @__PURE__ */ jsx92(Flex66, { style: { alignSelf: "center" } }), children: /* @__PURE__ */ jsx92(
|
|
18012
18300
|
Button25,
|
|
18013
18301
|
{
|
|
18014
18302
|
variant: "outline",
|
|
@@ -18020,7 +18308,7 @@ var AddDomainSection = () => {
|
|
|
18020
18308
|
children: "Add domain"
|
|
18021
18309
|
}
|
|
18022
18310
|
) }),
|
|
18023
|
-
/* @__PURE__ */ jsx92(
|
|
18311
|
+
/* @__PURE__ */ jsx92(Tooltip6.Content, { side: "bottom", children: "Coming soon" })
|
|
18024
18312
|
] })
|
|
18025
18313
|
] });
|
|
18026
18314
|
};
|
|
@@ -18038,7 +18326,7 @@ var OrganizationSecurity = () => {
|
|
|
18038
18326
|
);
|
|
18039
18327
|
useEffect13(() => {
|
|
18040
18328
|
if (error) {
|
|
18041
|
-
|
|
18329
|
+
toastManager19.add({
|
|
18042
18330
|
title: "Something went wrong",
|
|
18043
18331
|
description: "Unable to fetch domains",
|
|
18044
18332
|
type: "error"
|
|
@@ -18067,8 +18355,8 @@ var OrganizationSecurity = () => {
|
|
|
18067
18355
|
// admin/views/organizations/details/members/index.tsx
|
|
18068
18356
|
import { AlertDialog as AlertDialog6, DataTable as DataTable16, EmptyState as EmptyState15, Flex as Flex69 } from "@raystack/apsara";
|
|
18069
18357
|
|
|
18070
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18071
|
-
var digest61 = "
|
|
18358
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-6s0u88PsMmg9/sdk/admin/views/organizations/details/members/members.module.css.js
|
|
18359
|
+
var digest61 = "49477be2cf6aaffaa4896b2e81a6f4bcfba27b3063e26ace9a9f55813747ede1";
|
|
18072
18360
|
var css61 = `._container_jkaqi_1 {
|
|
18073
18361
|
width: 100%;
|
|
18074
18362
|
}
|
|
@@ -18129,11 +18417,11 @@ import {
|
|
|
18129
18417
|
Flex as Flex67,
|
|
18130
18418
|
Text as Text49,
|
|
18131
18419
|
Menu as Menu4,
|
|
18132
|
-
IconButton as
|
|
18420
|
+
IconButton as IconButton16
|
|
18133
18421
|
} from "@raystack/apsara";
|
|
18134
18422
|
|
|
18135
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18136
|
-
var digest62 = "
|
|
18423
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-P7w1pyVG8wJJ/sdk/admin/views/organizations/details/members/members.module.css.js
|
|
18424
|
+
var digest62 = "70bde5f0def937292c479fdf11b8a1aa7af13167f1cfcd3a403bf0f8b5b6115d";
|
|
18137
18425
|
var css62 = `._container_jkaqi_1 {
|
|
18138
18426
|
width: 100%;
|
|
18139
18427
|
}
|
|
@@ -18324,7 +18612,7 @@ var getColumns12 = ({
|
|
|
18324
18612
|
/* @__PURE__ */ jsx94(
|
|
18325
18613
|
Menu4.Trigger,
|
|
18326
18614
|
{
|
|
18327
|
-
render: /* @__PURE__ */ jsx94(
|
|
18615
|
+
render: /* @__PURE__ */ jsx94(IconButton16, { size: 3, "data-test-id": "admin-members-action-menu", children: /* @__PURE__ */ jsx94(DotsHorizontalIcon, {}) })
|
|
18328
18616
|
}
|
|
18329
18617
|
),
|
|
18330
18618
|
/* @__PURE__ */ jsxs71(Menu4.Content, { className: members_module_css_default2["table-action-dropdown"], children: [
|
|
@@ -18383,12 +18671,12 @@ import {
|
|
|
18383
18671
|
SetOrganizationMemberRoleRequestSchema as SetOrganizationMemberRoleRequestSchema2
|
|
18384
18672
|
} from "@raystack/proton/frontier";
|
|
18385
18673
|
import { create as create22 } from "@bufbuild/protobuf";
|
|
18386
|
-
import { useMutation as
|
|
18674
|
+
import { useMutation as useMutation18 } from "@connectrpc/connect-query";
|
|
18387
18675
|
import {
|
|
18388
18676
|
AlertDialog as AlertDialog5,
|
|
18389
18677
|
Button as Button26,
|
|
18390
18678
|
Text as Text50,
|
|
18391
|
-
toastManager as
|
|
18679
|
+
toastManager as toastManager20
|
|
18392
18680
|
} from "@raystack/apsara";
|
|
18393
18681
|
import { ConnectError as ConnectError3 } from "@connectrpc/connect";
|
|
18394
18682
|
import { jsx as jsx95, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
@@ -18416,7 +18704,7 @@ function UpdateRoleContent({
|
|
|
18416
18704
|
onClose,
|
|
18417
18705
|
onRoleUpdate
|
|
18418
18706
|
}) {
|
|
18419
|
-
const { mutateAsync: setMemberRole, isPending } =
|
|
18707
|
+
const { mutateAsync: setMemberRole, isPending } = useMutation18(
|
|
18420
18708
|
FrontierServiceQueries22.setOrganizationMemberRole
|
|
18421
18709
|
);
|
|
18422
18710
|
async function onSubmit() {
|
|
@@ -18429,13 +18717,13 @@ function UpdateRoleContent({
|
|
|
18429
18717
|
})
|
|
18430
18718
|
);
|
|
18431
18719
|
onRoleUpdate();
|
|
18432
|
-
|
|
18720
|
+
toastManager20.add({
|
|
18433
18721
|
title: "Role assigned successfully",
|
|
18434
18722
|
type: "success"
|
|
18435
18723
|
});
|
|
18436
18724
|
onClose();
|
|
18437
18725
|
} catch (error) {
|
|
18438
|
-
|
|
18726
|
+
toastManager20.add({
|
|
18439
18727
|
title: "Failed to assign role",
|
|
18440
18728
|
description: error instanceof ConnectError3 ? error.message : void 0,
|
|
18441
18729
|
type: "error"
|
|
@@ -18480,9 +18768,8 @@ import {
|
|
|
18480
18768
|
RemoveOrganizationMemberRequestSchema
|
|
18481
18769
|
} from "@raystack/proton/frontier";
|
|
18482
18770
|
import { create as create23 } from "@bufbuild/protobuf";
|
|
18483
|
-
import { useMutation as
|
|
18484
|
-
import { Button as Button27, Dialog as Dialog11, Flex as Flex68, Text as Text51, toastManager as
|
|
18485
|
-
import { ConnectError as ConnectError4 } from "@connectrpc/connect";
|
|
18771
|
+
import { useMutation as useMutation19 } from "@connectrpc/connect-query";
|
|
18772
|
+
import { Button as Button27, Dialog as Dialog11, Flex as Flex68, Text as Text51, toastManager as toastManager21 } from "@raystack/apsara";
|
|
18486
18773
|
import { jsx as jsx96, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
18487
18774
|
var RemoveMember = ({
|
|
18488
18775
|
organizationId,
|
|
@@ -18491,7 +18778,7 @@ var RemoveMember = ({
|
|
|
18491
18778
|
onClose
|
|
18492
18779
|
}) => {
|
|
18493
18780
|
const t = useTerminology();
|
|
18494
|
-
const { mutateAsync: removeOrganizationMember, isPending } =
|
|
18781
|
+
const { mutateAsync: removeOrganizationMember, isPending } = useMutation19(
|
|
18495
18782
|
FrontierServiceQueries23.removeOrganizationMember
|
|
18496
18783
|
);
|
|
18497
18784
|
async function onSubmit() {
|
|
@@ -18508,11 +18795,20 @@ var RemoveMember = ({
|
|
|
18508
18795
|
if (onRemove) {
|
|
18509
18796
|
onRemove(user);
|
|
18510
18797
|
}
|
|
18511
|
-
|
|
18798
|
+
toastManager21.add({ title: `${t.member({ case: "capital" })} removed successfully`, type: "success" });
|
|
18512
18799
|
} catch (error) {
|
|
18513
|
-
const message = error instanceof ConnectError4 ? error.message : "Unknown error";
|
|
18514
|
-
toastManager20.add({ title: `Failed to remove ${t.member({ case: "lower" })}: ${message}`, type: "error" });
|
|
18515
18800
|
console.error(error);
|
|
18801
|
+
handleConnectError(error, {
|
|
18802
|
+
PermissionDenied: () => toastManager21.add({
|
|
18803
|
+
title: "You don't have permission to perform this action",
|
|
18804
|
+
type: "error"
|
|
18805
|
+
}),
|
|
18806
|
+
Default: (err) => toastManager21.add({
|
|
18807
|
+
title: `Failed to remove ${t.member({ case: "lower" })}`,
|
|
18808
|
+
description: err.rawMessage,
|
|
18809
|
+
type: "error"
|
|
18810
|
+
})
|
|
18811
|
+
});
|
|
18516
18812
|
}
|
|
18517
18813
|
}
|
|
18518
18814
|
return /* @__PURE__ */ jsx96(Dialog11, { open: true, onOpenChange: onClose, children: /* @__PURE__ */ jsxs73(Dialog11.Content, { children: [
|
|
@@ -18820,8 +19116,8 @@ import {
|
|
|
18820
19116
|
Flex as Flex76
|
|
18821
19117
|
} from "@raystack/apsara";
|
|
18822
19118
|
|
|
18823
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18824
|
-
var digest63 = "
|
|
19119
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-lJhl52a1jtK7/sdk/admin/views/organizations/details/projects/projects.module.css.js
|
|
19120
|
+
var digest63 = "928750889c16ee0ff30edc60b10fefd6abf2bc1eb8d07123a810a704010ff4d3";
|
|
18825
19121
|
var css63 = `._container_1xzwm_1 {
|
|
18826
19122
|
width: 100%;
|
|
18827
19123
|
}
|
|
@@ -18889,8 +19185,8 @@ import {
|
|
|
18889
19185
|
Menu as Menu5
|
|
18890
19186
|
} from "@raystack/apsara";
|
|
18891
19187
|
|
|
18892
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
18893
|
-
var digest64 = "
|
|
19188
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-kp9LJZz9eeCZ/sdk/admin/views/organizations/details/projects/projects.module.css.js
|
|
19189
|
+
var digest64 = "234b1c51643b3025ca0bc52a6088344b62753c7af96dd95501f7a164dc8eca78";
|
|
18894
19190
|
var css64 = `._container_1xzwm_1 {
|
|
18895
19191
|
width: 100%;
|
|
18896
19192
|
}
|
|
@@ -18949,7 +19245,7 @@ var projects_module_css_default2 = { "container": "_container_1xzwm_1", "title-c
|
|
|
18949
19245
|
import dayjs14 from "dayjs";
|
|
18950
19246
|
|
|
18951
19247
|
// admin/views/organizations/details/projects/rename-project.tsx
|
|
18952
|
-
import { Button as Button28, Dialog as Dialog12, Field as Field5, Flex as Flex70, Input as Input8, toastManager as
|
|
19248
|
+
import { Button as Button28, Dialog as Dialog12, Field as Field5, Flex as Flex70, Input as Input8, toastManager as toastManager22 } from "@raystack/apsara";
|
|
18953
19249
|
import {
|
|
18954
19250
|
FrontierServiceQueries as FrontierServiceQueries24,
|
|
18955
19251
|
UpdateProjectRequestSchema
|
|
@@ -18957,7 +19253,7 @@ import {
|
|
|
18957
19253
|
import { create as create24 } from "@bufbuild/protobuf";
|
|
18958
19254
|
import { zodResolver as zodResolver11 } from "@hookform/resolvers/zod";
|
|
18959
19255
|
import { useForm as useForm11, Controller as Controller8 } from "react-hook-form";
|
|
18960
|
-
import { useMutation as
|
|
19256
|
+
import { useMutation as useMutation20 } from "@connectrpc/connect-query";
|
|
18961
19257
|
import { jsx as jsx98, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
18962
19258
|
var projectRenameSchema = external_exports.object({
|
|
18963
19259
|
title: external_exports.string(),
|
|
@@ -18983,7 +19279,7 @@ function RenameProjectDialog({
|
|
|
18983
19279
|
},
|
|
18984
19280
|
resolver: zodResolver11(projectRenameSchema)
|
|
18985
19281
|
});
|
|
18986
|
-
const { mutateAsync: updateProject } =
|
|
19282
|
+
const { mutateAsync: updateProject } = useMutation20(
|
|
18987
19283
|
FrontierServiceQueries24.updateProject
|
|
18988
19284
|
);
|
|
18989
19285
|
const submit = async (data) => {
|
|
@@ -18996,7 +19292,7 @@ function RenameProjectDialog({
|
|
|
18996
19292
|
);
|
|
18997
19293
|
const newProject = resp.project;
|
|
18998
19294
|
if (newProject) {
|
|
18999
|
-
|
|
19295
|
+
toastManager22.add({ title: `${t.project({ case: "capital" })} renamed successfully`, type: "success" });
|
|
19000
19296
|
onRename({
|
|
19001
19297
|
...project,
|
|
19002
19298
|
title: newProject.title,
|
|
@@ -19004,8 +19300,22 @@ function RenameProjectDialog({
|
|
|
19004
19300
|
});
|
|
19005
19301
|
}
|
|
19006
19302
|
} catch (error) {
|
|
19007
|
-
toastManager21.add({ title: `Failed to rename ${t.project({ case: "lower" })}`, type: "error" });
|
|
19008
19303
|
console.error(error);
|
|
19304
|
+
handleConnectError(error, {
|
|
19305
|
+
AlreadyExists: () => toastManager22.add({
|
|
19306
|
+
title: `${t.project({ case: "capital" })} with this name already exists`,
|
|
19307
|
+
type: "error"
|
|
19308
|
+
}),
|
|
19309
|
+
PermissionDenied: () => toastManager22.add({
|
|
19310
|
+
title: "You don't have permission to perform this action",
|
|
19311
|
+
type: "error"
|
|
19312
|
+
}),
|
|
19313
|
+
Default: (err) => toastManager22.add({
|
|
19314
|
+
title: `Failed to rename ${t.project({ case: "lower" })}`,
|
|
19315
|
+
description: err.rawMessage,
|
|
19316
|
+
type: "error"
|
|
19317
|
+
})
|
|
19318
|
+
});
|
|
19009
19319
|
}
|
|
19010
19320
|
};
|
|
19011
19321
|
return /* @__PURE__ */ jsx98(Dialog12, { open: true, onOpenChange: onClose, children: /* @__PURE__ */ jsx98(
|
|
@@ -19070,8 +19380,8 @@ import { useState as useState31 } from "react";
|
|
|
19070
19380
|
|
|
19071
19381
|
// admin/views/organizations/details/projects/use-add-project-members.tsx
|
|
19072
19382
|
import { useCallback as useCallback13, useContext as useContext20, useMemo as useMemo12, useState as useState30 } from "react";
|
|
19073
|
-
import { toastManager as
|
|
19074
|
-
import { useQuery as useQuery18, useMutation as
|
|
19383
|
+
import { toastManager as toastManager23 } from "@raystack/apsara";
|
|
19384
|
+
import { useQuery as useQuery18, useMutation as useMutation21 } from "@connectrpc/connect-query";
|
|
19075
19385
|
import { FrontierServiceQueries as FrontierServiceQueries25, ListProjectUsersRequestSchema, ListRolesRequestSchema as ListRolesRequestSchema3, SetProjectMemberRoleRequestSchema } from "@raystack/proton/frontier";
|
|
19076
19386
|
import { create as create25 } from "@bufbuild/protobuf";
|
|
19077
19387
|
function useAddProjectMembers({ projectId }) {
|
|
@@ -19115,7 +19425,7 @@ function useAddProjectMembers({ projectId }) {
|
|
|
19115
19425
|
() => rolesData?.roles?.find((r) => r.name === DEFAULT_ROLES.PROJECT_VIEWER)?.id ?? "",
|
|
19116
19426
|
[rolesData]
|
|
19117
19427
|
);
|
|
19118
|
-
const { mutateAsync: setProjectMemberRole } =
|
|
19428
|
+
const { mutateAsync: setProjectMemberRole } = useMutation21(
|
|
19119
19429
|
FrontierServiceQueries25.setProjectMemberRole
|
|
19120
19430
|
);
|
|
19121
19431
|
const addMember = useCallback13(
|
|
@@ -19131,15 +19441,15 @@ function useAddProjectMembers({ projectId }) {
|
|
|
19131
19441
|
roleId: viewerRoleId
|
|
19132
19442
|
})
|
|
19133
19443
|
);
|
|
19134
|
-
|
|
19444
|
+
toastManager23.add({ title: `${memberLabel} added`, type: "success" });
|
|
19135
19445
|
await refetch();
|
|
19136
19446
|
return projectMembers;
|
|
19137
19447
|
} catch (error) {
|
|
19138
19448
|
handleConnectError(error, {
|
|
19139
|
-
AlreadyExists: () =>
|
|
19140
|
-
PermissionDenied: () =>
|
|
19141
|
-
InvalidArgument: (err) =>
|
|
19142
|
-
Default: (err) =>
|
|
19449
|
+
AlreadyExists: () => toastManager23.add({ title: `${memberLabel} already exists in this project`, type: "error" }),
|
|
19450
|
+
PermissionDenied: () => toastManager23.add({ title: "You don't have permission to perform this action", type: "error" }),
|
|
19451
|
+
InvalidArgument: (err) => toastManager23.add({ title: "Invalid input", description: err.rawMessage, type: "error" }),
|
|
19452
|
+
Default: (err) => toastManager23.add({ title: "Something went wrong", description: err.rawMessage, type: "error" })
|
|
19143
19453
|
});
|
|
19144
19454
|
}
|
|
19145
19455
|
},
|
|
@@ -19400,8 +19710,8 @@ import { create as create28 } from "@bufbuild/protobuf";
|
|
|
19400
19710
|
import { useQuery as useQuery19, useInfiniteQuery as useInfiniteQuery6 } from "@connectrpc/connect-query";
|
|
19401
19711
|
import { useDebouncedState as useDebouncedState4 } from "@raystack/apsara/hooks";
|
|
19402
19712
|
|
|
19403
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19404
|
-
var digest65 = "
|
|
19713
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-Yy8c7apU7V1t/sdk/admin/views/organizations/details/projects/members/members.module.css.js
|
|
19714
|
+
var digest65 = "7969209bb0328c1577ae6ff6f99f31ee9281a0b818fd79393df0f924400a3075";
|
|
19405
19715
|
var css65 = `._flex1_65nkt_1 {
|
|
19406
19716
|
flex: 1;
|
|
19407
19717
|
}
|
|
@@ -19489,8 +19799,8 @@ var css65 = `._flex1_65nkt_1 {
|
|
|
19489
19799
|
})();
|
|
19490
19800
|
var members_module_css_default3 = { "flex1": "_flex1_65nkt_1", "dialog-content": "_dialog-content_65nkt_5", "dialogContent": "_dialog-content_65nkt_5", "dialog-body": "_dialog-body_65nkt_10", "dialogBody": "_dialog-body_65nkt_10", "empty-state": "_empty-state_65nkt_14", "emptyState": "_empty-state_65nkt_14", "empty-state-subheading": "_empty-state-subheading_65nkt_18", "emptyStateSubheading": "_empty-state-subheading_65nkt_18", "table": "_table_65nkt_23", "table-wrapper": "_table-wrapper_65nkt_28", "tableWrapper": "_table-wrapper_65nkt_28", "table-header": "_table-header_65nkt_34", "tableHeader": "_table-header_65nkt_34", "table-search": "_table-search_65nkt_39", "tableSearch": "_table-search_65nkt_39", "table-content-wrapper": "_table-content-wrapper_65nkt_43", "tableContentWrapper": "_table-content-wrapper_65nkt_43", "table-action-column": "_table-action-column_65nkt_47", "tableActionColumn": "_table-action-column_65nkt_47", "table-action-dropdown": "_table-action-dropdown_65nkt_51", "tableActionDropdown": "_table-action-dropdown_65nkt_51", "action-dialog-content": "_action-dialog-content_65nkt_56", "actionDialogContent": "_action-dialog-content_65nkt_56", "add-member-dropdown": "_add-member-dropdown_65nkt_60", "addMemberDropdown": "_add-member-dropdown_65nkt_60", "add-member-dropdown-member": "_add-member-dropdown-member_65nkt_65", "addMemberDropdownMember": "_add-member-dropdown-member_65nkt_65", "add-member-dropdown-member-name": "_add-member-dropdown-member-name_65nkt_69", "addMemberDropdownMemberName": "_add-member-dropdown-member-name_65nkt_69" };
|
|
19491
19801
|
|
|
19492
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19493
|
-
var digest66 = "
|
|
19802
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-qAwnxu5ysKhp/sdk/admin/views/organizations/details/projects/members/members.module.css.js
|
|
19803
|
+
var digest66 = "85a365d292dae55d545c799fe76defdd04a9dd32c5f5ded42064ddf791dcaf1f";
|
|
19494
19804
|
var css66 = `._flex1_65nkt_1 {
|
|
19495
19805
|
flex: 1;
|
|
19496
19806
|
}
|
|
@@ -19706,8 +20016,8 @@ var getColumns14 = ({
|
|
|
19706
20016
|
];
|
|
19707
20017
|
};
|
|
19708
20018
|
|
|
19709
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19710
|
-
var digest67 = "
|
|
20019
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-4rZUN0rpAm6M/sdk/admin/views/organizations/details/projects/members/members.module.css.js
|
|
20020
|
+
var digest67 = "75e1e776c6762f84735235d9d2417b59c4cf994ced463a5e485ebb8dd5564264";
|
|
19711
20021
|
var css67 = `._flex1_65nkt_1 {
|
|
19712
20022
|
flex: 1;
|
|
19713
20023
|
}
|
|
@@ -19801,13 +20111,13 @@ import {
|
|
|
19801
20111
|
SetProjectMemberRoleRequestSchema as SetProjectMemberRoleRequestSchema2
|
|
19802
20112
|
} from "@raystack/proton/frontier";
|
|
19803
20113
|
import { create as create26 } from "@bufbuild/protobuf";
|
|
19804
|
-
import { ConnectError as
|
|
19805
|
-
import { useMutation as
|
|
20114
|
+
import { ConnectError as ConnectError4 } from "@connectrpc/connect";
|
|
20115
|
+
import { useMutation as useMutation22 } from "@connectrpc/connect-query";
|
|
19806
20116
|
import {
|
|
19807
20117
|
AlertDialog as AlertDialog8,
|
|
19808
20118
|
Button as Button29,
|
|
19809
20119
|
Text as Text54,
|
|
19810
|
-
toastManager as
|
|
20120
|
+
toastManager as toastManager24
|
|
19811
20121
|
} from "@raystack/apsara";
|
|
19812
20122
|
import { jsx as jsx101, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
19813
20123
|
var UpdateRole2 = ({
|
|
@@ -19834,7 +20144,7 @@ function UpdateRoleContent2({
|
|
|
19834
20144
|
onClose,
|
|
19835
20145
|
onRoleUpdate
|
|
19836
20146
|
}) {
|
|
19837
|
-
const { mutateAsync: setProjectMemberRole, isPending } =
|
|
20147
|
+
const { mutateAsync: setProjectMemberRole, isPending } = useMutation22(
|
|
19838
20148
|
FrontierServiceQueries26.setProjectMemberRole
|
|
19839
20149
|
);
|
|
19840
20150
|
async function onSubmit() {
|
|
@@ -19848,15 +20158,15 @@ function UpdateRoleContent2({
|
|
|
19848
20158
|
})
|
|
19849
20159
|
);
|
|
19850
20160
|
onRoleUpdate();
|
|
19851
|
-
|
|
20161
|
+
toastManager24.add({
|
|
19852
20162
|
title: "Role assigned successfully",
|
|
19853
20163
|
type: "success"
|
|
19854
20164
|
});
|
|
19855
20165
|
onClose();
|
|
19856
20166
|
} catch (error) {
|
|
19857
|
-
|
|
20167
|
+
toastManager24.add({
|
|
19858
20168
|
title: "Failed to assign role",
|
|
19859
|
-
description: error instanceof
|
|
20169
|
+
description: error instanceof ConnectError4 ? error.message : void 0,
|
|
19860
20170
|
type: "error"
|
|
19861
20171
|
});
|
|
19862
20172
|
console.error(error);
|
|
@@ -19907,10 +20217,10 @@ import {
|
|
|
19907
20217
|
RemoveProjectMemberRequestSchema
|
|
19908
20218
|
} from "@raystack/proton/frontier";
|
|
19909
20219
|
import { create as create27 } from "@bufbuild/protobuf";
|
|
19910
|
-
import { useMutation as
|
|
20220
|
+
import { useMutation as useMutation23 } from "@connectrpc/connect-query";
|
|
19911
20221
|
|
|
19912
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
19913
|
-
var digest68 = "
|
|
20222
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-e0EZUWV5Rxzl/sdk/admin/views/organizations/details/projects/members/members.module.css.js
|
|
20223
|
+
var digest68 = "9897540c388f2522821540b15f96e5717d3259fd7ad69efb76716b48f1bd8146";
|
|
19914
20224
|
var css68 = `._flex1_65nkt_1 {
|
|
19915
20225
|
flex: 1;
|
|
19916
20226
|
}
|
|
@@ -19999,7 +20309,7 @@ var css68 = `._flex1_65nkt_1 {
|
|
|
19999
20309
|
var members_module_css_default6 = { "flex1": "_flex1_65nkt_1", "dialog-content": "_dialog-content_65nkt_5", "dialogContent": "_dialog-content_65nkt_5", "dialog-body": "_dialog-body_65nkt_10", "dialogBody": "_dialog-body_65nkt_10", "empty-state": "_empty-state_65nkt_14", "emptyState": "_empty-state_65nkt_14", "empty-state-subheading": "_empty-state-subheading_65nkt_18", "emptyStateSubheading": "_empty-state-subheading_65nkt_18", "table": "_table_65nkt_23", "table-wrapper": "_table-wrapper_65nkt_28", "tableWrapper": "_table-wrapper_65nkt_28", "table-header": "_table-header_65nkt_34", "tableHeader": "_table-header_65nkt_34", "table-search": "_table-search_65nkt_39", "tableSearch": "_table-search_65nkt_39", "table-content-wrapper": "_table-content-wrapper_65nkt_43", "tableContentWrapper": "_table-content-wrapper_65nkt_43", "table-action-column": "_table-action-column_65nkt_47", "tableActionColumn": "_table-action-column_65nkt_47", "table-action-dropdown": "_table-action-dropdown_65nkt_51", "tableActionDropdown": "_table-action-dropdown_65nkt_51", "action-dialog-content": "_action-dialog-content_65nkt_56", "actionDialogContent": "_action-dialog-content_65nkt_56", "add-member-dropdown": "_add-member-dropdown_65nkt_60", "addMemberDropdown": "_add-member-dropdown_65nkt_60", "add-member-dropdown-member": "_add-member-dropdown-member_65nkt_65", "addMemberDropdownMember": "_add-member-dropdown-member_65nkt_65", "add-member-dropdown-member-name": "_add-member-dropdown-member-name_65nkt_69", "addMemberDropdownMemberName": "_add-member-dropdown-member-name_65nkt_69" };
|
|
20000
20310
|
|
|
20001
20311
|
// admin/views/organizations/details/projects/members/remove-member.tsx
|
|
20002
|
-
import { AlertDialog as AlertDialog9, Button as Button30, Flex as Flex73, Text as Text55, toastManager as
|
|
20312
|
+
import { AlertDialog as AlertDialog9, Button as Button30, Flex as Flex73, Text as Text55, toastManager as toastManager25 } from "@raystack/apsara";
|
|
20003
20313
|
import { jsx as jsx102, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
20004
20314
|
var RemoveMember2 = ({
|
|
20005
20315
|
projectId,
|
|
@@ -20009,7 +20319,7 @@ var RemoveMember2 = ({
|
|
|
20009
20319
|
}) => {
|
|
20010
20320
|
const t = useTerminology();
|
|
20011
20321
|
const [isSubmitting, setIsSubmitting] = useState32(false);
|
|
20012
|
-
const { mutateAsync: removeProjectMember } =
|
|
20322
|
+
const { mutateAsync: removeProjectMember } = useMutation23(
|
|
20013
20323
|
FrontierServiceQueries27.removeProjectMember
|
|
20014
20324
|
);
|
|
20015
20325
|
async function onSubmit() {
|
|
@@ -20027,10 +20337,20 @@ var RemoveMember2 = ({
|
|
|
20027
20337
|
if (onRemove) {
|
|
20028
20338
|
onRemove(user);
|
|
20029
20339
|
}
|
|
20030
|
-
|
|
20340
|
+
toastManager25.add({ title: `${t.member({ case: "capital" })} removed successfully`, type: "success" });
|
|
20031
20341
|
} catch (error) {
|
|
20032
|
-
toastManager24.add({ title: `Failed to remove ${t.member({ case: "lower" })}`, type: "error" });
|
|
20033
20342
|
console.error(error);
|
|
20343
|
+
handleConnectError(error, {
|
|
20344
|
+
PermissionDenied: () => toastManager25.add({
|
|
20345
|
+
title: "You don't have permission to perform this action",
|
|
20346
|
+
type: "error"
|
|
20347
|
+
}),
|
|
20348
|
+
Default: (err) => toastManager25.add({
|
|
20349
|
+
title: `Failed to remove ${t.member({ case: "lower" })}`,
|
|
20350
|
+
description: err.rawMessage,
|
|
20351
|
+
type: "error"
|
|
20352
|
+
})
|
|
20353
|
+
});
|
|
20034
20354
|
} finally {
|
|
20035
20355
|
setIsSubmitting(false);
|
|
20036
20356
|
}
|
|
@@ -20104,8 +20424,8 @@ import {
|
|
|
20104
20424
|
Text as Text56
|
|
20105
20425
|
} from "@raystack/apsara";
|
|
20106
20426
|
|
|
20107
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20108
|
-
var digest69 = "
|
|
20427
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-jAo3wKH98YXE/sdk/admin/views/organizations/details/projects/members/members.module.css.js
|
|
20428
|
+
var digest69 = "048f8075ba730ee6d01b55c88a421fcb899a462b94cc36394f8b2a971f0cc009";
|
|
20109
20429
|
var css69 = `._flex1_65nkt_1 {
|
|
20110
20430
|
flex: 1;
|
|
20111
20431
|
}
|
|
@@ -20629,8 +20949,8 @@ function OrganizationProjectsView() {
|
|
|
20629
20949
|
// admin/views/organizations/details/invoices/index.tsx
|
|
20630
20950
|
import { DataTable as DataTable19, EmptyState as EmptyState18, Flex as Flex77 } from "@raystack/apsara";
|
|
20631
20951
|
|
|
20632
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20633
|
-
var digest70 = "
|
|
20952
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-ptJJZ2HWKUqs/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
|
|
20953
|
+
var digest70 = "b778680475646e3dfb22f0da7a07d60bc5fa6b3d2d7dea51800df39258eeff58";
|
|
20634
20954
|
var css70 = `._empty-state_ct7gw_1 {
|
|
20635
20955
|
height: 100%;
|
|
20636
20956
|
}
|
|
@@ -20676,8 +20996,8 @@ var invoices_module_css_default4 = { "empty-state": "_empty-state_ct7gw_1", "emp
|
|
|
20676
20996
|
// admin/views/organizations/details/invoices/index.tsx
|
|
20677
20997
|
import { useContext as useContext22, useEffect as useEffect17, useMemo as useMemo15, useState as useState35 } from "react";
|
|
20678
20998
|
|
|
20679
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20680
|
-
var digest71 = "
|
|
20999
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-xtltSCLjaJ6K/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
|
|
21000
|
+
var digest71 = "8e2af18d92f3a7e9d8f5e62ead558a0ba07f6ae3fe4e0c0527b046699fbdb940";
|
|
20681
21001
|
var css71 = `._empty-state_ct7gw_1 {
|
|
20682
21002
|
height: 100%;
|
|
20683
21003
|
}
|
|
@@ -20957,8 +21277,8 @@ function OrganizationInvoicesView() {
|
|
|
20957
21277
|
// admin/views/organizations/details/tokens/index.tsx
|
|
20958
21278
|
import { DataTable as DataTable20, EmptyState as EmptyState19, Flex as Flex79 } from "@raystack/apsara";
|
|
20959
21279
|
|
|
20960
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
20961
|
-
var digest72 = "
|
|
21280
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-ymRJjXZ1n485/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
|
|
21281
|
+
var digest72 = "06cbe592339cfdd67ed94b79b593b7f7fd80aecc7f504982964d0d3dc813d158";
|
|
20962
21282
|
var css72 = `._empty-state_1mf09_1 {
|
|
20963
21283
|
height: 100%;
|
|
20964
21284
|
}
|
|
@@ -21018,8 +21338,8 @@ import { useContext as useContext23, useEffect as useEffect18, useMemo as useMem
|
|
|
21018
21338
|
import { FrontierServiceQueries as FrontierServiceQueries30 } from "@raystack/proton/frontier";
|
|
21019
21339
|
import { useInfiniteQuery as useInfiniteQuery9 } from "@connectrpc/connect-query";
|
|
21020
21340
|
|
|
21021
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
21022
|
-
var digest73 = "
|
|
21341
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-lg0x3tuYIG54/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
|
|
21342
|
+
var digest73 = "d53a98a5cc1533b3ea7bcac1606529945712fd4eca282f33b414241d7c5715f9";
|
|
21023
21343
|
var css73 = `._empty-state_1mf09_1 {
|
|
21024
21344
|
height: 100%;
|
|
21025
21345
|
}
|
|
@@ -21080,7 +21400,7 @@ import {
|
|
|
21080
21400
|
Flex as Flex78,
|
|
21081
21401
|
getAvatarColor as getAvatarColor12,
|
|
21082
21402
|
Text as Text57,
|
|
21083
|
-
Tooltip as
|
|
21403
|
+
Tooltip as Tooltip7
|
|
21084
21404
|
} from "@raystack/apsara";
|
|
21085
21405
|
import { jsx as jsx108, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
21086
21406
|
var getColumns16 = ({ t }) => {
|
|
@@ -21123,14 +21443,14 @@ var getColumns16 = ({ t }) => {
|
|
|
21123
21443
|
const text = getValue() ?? "";
|
|
21124
21444
|
if (!text)
|
|
21125
21445
|
return text;
|
|
21126
|
-
return /* @__PURE__ */ jsxs84(
|
|
21446
|
+
return /* @__PURE__ */ jsxs84(Tooltip7, { children: [
|
|
21127
21447
|
/* @__PURE__ */ jsx108(
|
|
21128
|
-
|
|
21448
|
+
Tooltip7.Trigger,
|
|
21129
21449
|
{
|
|
21130
21450
|
render: /* @__PURE__ */ jsx108("span", { className: tokens_module_css_default2["truncate-text"], children: text })
|
|
21131
21451
|
}
|
|
21132
21452
|
),
|
|
21133
|
-
/* @__PURE__ */ jsx108(
|
|
21453
|
+
/* @__PURE__ */ jsx108(Tooltip7.Content, { children: text })
|
|
21134
21454
|
] });
|
|
21135
21455
|
},
|
|
21136
21456
|
enableHiding: true
|
|
@@ -21302,8 +21622,8 @@ function OrganizationTokensView() {
|
|
|
21302
21622
|
// admin/views/organizations/details/apis/index.tsx
|
|
21303
21623
|
import { DataTable as DataTable21, EmptyState as EmptyState20, Flex as Flex81 } from "@raystack/apsara";
|
|
21304
21624
|
|
|
21305
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
21306
|
-
var digest74 = "
|
|
21625
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-E9Lg1c7OK3Vx/sdk/admin/views/organizations/details/apis/apis.module.css.js
|
|
21626
|
+
var digest74 = "3b28383bdbfe8e57aa462319087ee23dbdc1d268de1660b14131051b70dedbb2";
|
|
21307
21627
|
var css74 = `._empty-state_r9k2f_1 {
|
|
21308
21628
|
height: 100%;
|
|
21309
21629
|
}
|
|
@@ -21388,8 +21708,8 @@ import { useCallback as useCallback16, useContext as useContext24, useEffect as
|
|
|
21388
21708
|
import { Text as Text58 } from "@raystack/apsara";
|
|
21389
21709
|
import dayjs17 from "dayjs";
|
|
21390
21710
|
|
|
21391
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
21392
|
-
var digest75 = "
|
|
21711
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-nVySIVkJI4Rk/sdk/admin/views/organizations/details/apis/apis.module.css.js
|
|
21712
|
+
var digest75 = "b35b32c10240608bac87673295b6cd5fa01ade6f4b30ae8d784c9f3252d6dd17";
|
|
21393
21713
|
var css75 = `._empty-state_r9k2f_1 {
|
|
21394
21714
|
height: 100%;
|
|
21395
21715
|
}
|
|
@@ -21511,10 +21831,10 @@ function getColumns17(options) {
|
|
|
21511
21831
|
}
|
|
21512
21832
|
|
|
21513
21833
|
// admin/views/organizations/details/apis/details-dialog.tsx
|
|
21514
|
-
import { Dialog as Dialog14, Flex as Flex80, Skeleton as Skeleton4, Tabs, Text as Text59, toastManager as
|
|
21834
|
+
import { Dialog as Dialog14, Flex as Flex80, Skeleton as Skeleton4, Tabs, Text as Text59, toastManager as toastManager26 } from "@raystack/apsara";
|
|
21515
21835
|
|
|
21516
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
21517
|
-
var digest76 = "
|
|
21836
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-5gAhT1msIFGi/sdk/admin/views/organizations/details/apis/apis.module.css.js
|
|
21837
|
+
var digest76 = "67e6297fec5253123323822dbc9494576bbada20d25beae7beccd0139e23fb37";
|
|
21518
21838
|
var css76 = `._empty-state_r9k2f_1 {
|
|
21519
21839
|
height: 100%;
|
|
21520
21840
|
}
|
|
@@ -21640,7 +21960,7 @@ var ServiceUserDetailsDialog = ({
|
|
|
21640
21960
|
});
|
|
21641
21961
|
useEffect19(() => {
|
|
21642
21962
|
if (projectError) {
|
|
21643
|
-
|
|
21963
|
+
toastManager26.add({
|
|
21644
21964
|
title: "Something went wrong",
|
|
21645
21965
|
description: "Unable to fetch projects",
|
|
21646
21966
|
type: "error"
|
|
@@ -21648,7 +21968,7 @@ var ServiceUserDetailsDialog = ({
|
|
|
21648
21968
|
console.error("Unable to fetch projects:", projectError);
|
|
21649
21969
|
}
|
|
21650
21970
|
if (tokenError) {
|
|
21651
|
-
|
|
21971
|
+
toastManager26.add({
|
|
21652
21972
|
title: "Something went wrong",
|
|
21653
21973
|
description: "Unable to fetch tokens",
|
|
21654
21974
|
type: "error"
|
|
@@ -21919,8 +22239,8 @@ var getInitials = function(name = "") {
|
|
|
21919
22239
|
return initials;
|
|
21920
22240
|
};
|
|
21921
22241
|
|
|
21922
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
21923
|
-
var digest77 = "
|
|
22242
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-9TwK58chpmTe/sdk/admin/views/organizations/details/pat/pat.module.css.js
|
|
22243
|
+
var digest77 = "2fd7ea2bcf109fed918a1c22fd81de1e5ffcfea328e2499c77dda146fb362b9a";
|
|
21924
22244
|
var css77 = `._empty-state_1xap9_1 {
|
|
21925
22245
|
height: 100%;
|
|
21926
22246
|
}
|
|
@@ -22102,8 +22422,8 @@ import {
|
|
|
22102
22422
|
FrontierServiceQueries as FrontierServiceQueries32
|
|
22103
22423
|
} from "@raystack/proton/frontier";
|
|
22104
22424
|
|
|
22105
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
22106
|
-
var digest78 = "
|
|
22425
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-OykWpLjUSNbC/sdk/admin/views/organizations/details/pat/components/pat-details-dialog.module.css.js
|
|
22426
|
+
var digest78 = "500a3d778f92f19aacea2978fb147ec0c21a1cf75cb34faf4b595fbcbb138a30";
|
|
22107
22427
|
var css78 = `._details-dialog_1dwlo_1 {
|
|
22108
22428
|
width: 100%;
|
|
22109
22429
|
max-width: 400px;
|
|
@@ -22294,8 +22614,8 @@ function PatDetailsDialog({
|
|
|
22294
22614
|
] }) });
|
|
22295
22615
|
}
|
|
22296
22616
|
|
|
22297
|
-
// esbuild-css-modules-plugin-namespace:/tmp/tmp-
|
|
22298
|
-
var digest79 = "
|
|
22617
|
+
// esbuild-css-modules-plugin-namespace:/tmp/tmp-2414-GUgENfkKw5Cq/sdk/admin/views/organizations/details/pat/pat.module.css.js
|
|
22618
|
+
var digest79 = "5b743e1c50ad13944f17a275fe24f89ea971d047a894d8e72aded3aaf31140b2";
|
|
22299
22619
|
var css79 = `._empty-state_1xap9_1 {
|
|
22300
22620
|
height: 100%;
|
|
22301
22621
|
}
|