@raystack/frontier 0.99.0 → 0.101.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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-2217-3B3yHesHAyGl/sdk/admin/views/roles/roles.module.css.js
200
- var digest = "7b8c0e17711c1c7c4971710ee98aa97db47956f4e3080b88bc64edf9e97c275d";
199
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-gHpRnt8tPPxn/sdk/admin/views/roles/roles.module.css.js
200
+ var digest = "2d82ea77b05398a376341dbae754e26d21ee35e6ab425e12aa73d1dac1b2f3a3";
201
201
  var css = `._tableRoot_4yb15_1 {
202
202
  width: 100%;
203
203
  }
@@ -282,8 +282,8 @@ import { DataTable } from "@raystack/apsara";
282
282
  // admin/components/PageHeader.tsx
283
283
  import { Flex as Flex2, Text } from "@raystack/apsara";
284
284
 
285
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-o8Cc9S3hxOp8/sdk/admin/components/page-header.module.css.js
286
- var digest2 = "73d377549210e9b2254e67f1d95a390a8c1773e5045a3466e7ba85207fd27cff";
285
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-8oKVcJwjzAzH/sdk/admin/components/page-header.module.css.js
286
+ var digest2 = "903d7f89dfa5af8b3f9749f4b6fd86946c435392788970cd8fad092eae754e0c";
287
287
  var css2 = `._breadcrumb_1kaun_1 {
288
288
  list-style: none;
289
289
  padding: 0;
@@ -389,8 +389,8 @@ function PageHeader({
389
389
  );
390
390
  }
391
391
 
392
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-uUMf65P938dj/sdk/admin/views/roles/roles.module.css.js
393
- var digest3 = "291a2e93ddb7c14c82a444834b2685c849839c50c11cafe659c6ef079b43071c";
392
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-VkJc7rMb2ea6/sdk/admin/views/roles/roles.module.css.js
393
+ var digest3 = "f59af02e35fcb27e0b69bb3dee6c931a7560f2d0ecc0f775d3aca8cb947c7e30";
394
394
  var css3 = `._tableRoot_4yb15_1 {
395
395
  width: 100%;
396
396
  }
@@ -735,6 +735,24 @@ var Link2Icon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
735
735
  clipRule: "evenodd"
736
736
  }));
737
737
  });
738
+ var _excluded$2_ = ["color"];
739
+ var LockClosedIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
740
+ var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$2_);
741
+ return createElement("svg", Object.assign({
742
+ width: "15",
743
+ height: "15",
744
+ viewBox: "0 0 15 15",
745
+ fill: "none",
746
+ xmlns: "http://www.w3.org/2000/svg"
747
+ }, props, {
748
+ ref: forwardedRef
749
+ }), createElement("path", {
750
+ d: "M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",
751
+ fill: color,
752
+ fillRule: "evenodd",
753
+ clipRule: "evenodd"
754
+ }));
755
+ });
738
756
  var _excluded$33 = ["color"];
739
757
  var MagnifyingGlassIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
740
758
  var _ref$color = _ref.color, color = _ref$color === void 0 ? "currentColor" : _ref$color, props = _objectWithoutPropertiesLoose(_ref, _excluded$33);
@@ -876,8 +894,8 @@ function PageTitle({ title, appName }) {
876
894
  return null;
877
895
  }
878
896
 
879
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-qhw5IT0cEhmw/sdk/admin/views/roles/roles.module.css.js
880
- var digest4 = "06fe1d249c645ec9625148da6d3f45629b2ddca3d793b7a43114c166c1058793";
897
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-oiTx62qzrmH4/sdk/admin/views/roles/roles.module.css.js
898
+ var digest4 = "610cdd75d38b86a8b87d9c07c8ff0fab9b1d194e232965e35dcd101bb9a27e48";
881
899
  var css4 = `._tableRoot_4yb15_1 {
882
900
  width: 100%;
883
901
  }
@@ -1059,8 +1077,8 @@ import { useState as useState3 } from "react";
1059
1077
  // admin/views/invoices/navbar.tsx
1060
1078
  import { DataTable as DataTable3, Flex as Flex6, IconButton, Text as Text4 } from "@raystack/apsara";
1061
1079
 
1062
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-aZFkXm55dx4a/sdk/admin/views/invoices/invoices.module.css.js
1063
- var digest5 = "2335d9d76da129e73f213cfe3c501b4ddac9a0c39ac2ed3825c8250938249265";
1080
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-osdXaWNZy6qW/sdk/admin/views/invoices/invoices.module.css.js
1081
+ var digest5 = "60f8fa546f250b2aa8c9c2399aec268a69f5355d7ff0c016cb0ba606de464f09";
1064
1082
  var css5 = `._navbar_9c4wr_1 {
1065
1083
  padding: var(--rs-space-4) var(--rs-space-7);
1066
1084
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -1178,8 +1196,8 @@ var InvoicesNavabar = ({ searchQuery }) => {
1178
1196
  ] });
1179
1197
  };
1180
1198
 
1181
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-DurkjiSOio8S/sdk/admin/views/invoices/invoices.module.css.js
1182
- var digest6 = "8d06ae1afa0064d2741ceb2f8a7321eed98a4f34fe08633de4a02196be496b5f";
1199
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-u72KTnczRdXQ/sdk/admin/views/invoices/invoices.module.css.js
1200
+ var digest6 = "e3b785ddf174e719a63d814dae37d6f1b19a6fe302902dc5b9bc23b4e5110421";
1183
1201
  var css6 = `._navbar_9c4wr_1 {
1184
1202
  padding: var(--rs-space-4) var(--rs-space-7);
1185
1203
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -1725,8 +1743,8 @@ var getColumns3 = (onNavigateToPrices) => {
1725
1743
  // admin/views/products/header.tsx
1726
1744
  import { DataTable as DataTable5 } from "@raystack/apsara";
1727
1745
 
1728
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-O3N9NjV7wGfT/sdk/admin/views/products/products.module.css.js
1729
- var digest7 = "596990114a52b4dfada3e03d8994052a1b2ece1890a65f62ec398fb750087388";
1746
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-8xJJY92F5dFh/sdk/admin/views/products/products.module.css.js
1747
+ var digest7 = "44cf14fca763d6e81887f7df02d13ea9bd66887d71f783ecdf5b9bc46188d737";
1730
1748
  var css7 = `._tableRoot_1lzjd_1 {
1731
1749
  width: 100%;
1732
1750
  }
@@ -1797,8 +1815,8 @@ var ProductsHeader = ({
1797
1815
  );
1798
1816
  };
1799
1817
 
1800
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-M0ynyVwREz5R/sdk/admin/views/products/products.module.css.js
1801
- var digest8 = "97dbf49d623d3be02646530ac27ba287e19497dc6370451dfc6c5cbf32bc6087";
1818
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-CQ1ooc7VNHso/sdk/admin/views/products/products.module.css.js
1819
+ var digest8 = "00aedb060bdd0ed273dbb85674a7d21a3141805405525c20dfc8b75d5d60e884";
1802
1820
  var css8 = `._tableRoot_1lzjd_1 {
1803
1821
  width: 100%;
1804
1822
  }
@@ -1850,8 +1868,8 @@ var products_module_css_default2 = { "tableRoot": "_tableRoot_1lzjd_1", "tableWr
1850
1868
  // admin/views/products/details.tsx
1851
1869
  import { Flex as Flex9, Text as Text6, Grid as Grid2, Sheet as Sheet2 } from "@raystack/apsara";
1852
1870
 
1853
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-eaVePBLFLrHR/sdk/admin/views/products/products.module.css.js
1854
- var digest9 = "8faa852e42519b6b7004de2d04605a7dd64edd422a143004bcac1eef6e7d7131";
1871
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-WzmAeOEvgSeB/sdk/admin/views/products/products.module.css.js
1872
+ var digest9 = "f02f4717caac3fce501058bb220a6613afc7e67787ad38e25c058e9ea49cf58b";
1855
1873
  var css9 = `._tableRoot_1lzjd_1 {
1856
1874
  width: 100%;
1857
1875
  }
@@ -2201,8 +2219,8 @@ function CpuChipIcon(props) {
2201
2219
  );
2202
2220
  }
2203
2221
 
2204
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-YU3TsFsE5g8L/sdk/admin/views/audit-logs/audit-logs.module.css.js
2205
- var digest10 = "a66acd900c39ecf0711580891ce1506f1db2465732836e362a3de9834726ad2f";
2222
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-l3LXeiDnudAt/sdk/admin/views/audit-logs/audit-logs.module.css.js
2223
+ var digest10 = "286a51978f997bf15e303238b60778556b2afb7286451dca528c209f0c24ec9a";
2206
2224
  var css10 = `._navbar_sfza7_1 {
2207
2225
  padding: var(--rs-space-4) var(--rs-space-7);
2208
2226
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -2420,8 +2438,8 @@ var Navbar = ({ searchQuery, onExportCsv }) => {
2420
2438
  };
2421
2439
  var navbar_default = Navbar;
2422
2440
 
2423
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-QGWAWMbfeIbb/sdk/admin/views/audit-logs/audit-logs.module.css.js
2424
- var digest11 = "93dd4d6e2c147cd4aaec151ccde8701f0f09c210491ac928ba8b2d29ab273518";
2441
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-6FXFuDE4MUDk/sdk/admin/views/audit-logs/audit-logs.module.css.js
2442
+ var digest11 = "0ba9f7777f0eed214e581ccc2abc43e5e7dee428436bff63d1bbc687329ba40c";
2425
2443
  var css11 = `._navbar_sfza7_1 {
2426
2444
  padding: var(--rs-space-4) var(--rs-space-7);
2427
2445
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -2531,8 +2549,8 @@ var audit_logs_module_css_default2 = { "navbar": "_navbar_sfza7_1", "table": "_t
2531
2549
  import { Badge, Flex as Flex14, Text as Text9 } from "@raystack/apsara";
2532
2550
  import dayjs3 from "dayjs";
2533
2551
 
2534
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-FzEgl2WAVOwt/sdk/admin/views/audit-logs/audit-logs.module.css.js
2535
- var digest12 = "758c2bebd0270f8e3e69c2dac3bf259a40379eb48416b1f8d44489c89c7a5e9c";
2552
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-aci9RK6yHWQl/sdk/admin/views/audit-logs/audit-logs.module.css.js
2553
+ var digest12 = "32db0fe5578ca004ac2d82c4b52712d5504ef82ef264037a423e8b1742d8200c";
2536
2554
  var css12 = `._navbar_sfza7_1 {
2537
2555
  padding: var(--rs-space-4) var(--rs-space-7);
2538
2556
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -2797,8 +2815,8 @@ import {
2797
2815
  import { Flex as Flex16, IconButton as IconButton4, SidePanel } from "@raystack/apsara";
2798
2816
  import { List as List3 } from "@raystack/apsara";
2799
2817
 
2800
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-WDjVWOoGB9AS/sdk/admin/views/audit-logs/audit-logs.module.css.js
2801
- var digest13 = "e83b5fb2fd3960da4791ef841e9a63d78dbc0911c5bd636dd6cbcf1234be8627";
2818
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-OCuMgRAYfhJV/sdk/admin/views/audit-logs/audit-logs.module.css.js
2819
+ var digest13 = "5aa46eaadaf2664fa482bcb7e5682ac0ea0d71c29ba78ec7060ca79b9775d40d";
2802
2820
  var css13 = `._navbar_sfza7_1 {
2803
2821
  padding: var(--rs-space-4) var(--rs-space-7);
2804
2822
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -2935,8 +2953,8 @@ function MapIcon(props) {
2935
2953
  // admin/views/audit-logs/sidepanel-log-dialog.tsx
2936
2954
  import { Dialog, IconButton as IconButton3, CodeBlock } from "@raystack/apsara";
2937
2955
 
2938
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-Ll8aCITuxWyy/sdk/admin/views/audit-logs/audit-logs.module.css.js
2939
- var digest14 = "de95e53d8dca36197b38e7a78cc83ed3fd5ce04206d8418a7800c871cb8cc54a";
2956
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-pSfz7DYdlYVj/sdk/admin/views/audit-logs/audit-logs.module.css.js
2957
+ var digest14 = "665cb0e8c6f15025075825605b6e40d32ce0f74b7868e7ea9e71111b032919ae";
2940
2958
  var css14 = `._navbar_sfza7_1 {
2941
2959
  padding: var(--rs-space-4) var(--rs-space-7);
2942
2960
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -3139,8 +3157,8 @@ function SidePanelLogDialog(props) {
3139
3157
  // admin/views/audit-logs/sidepanel-list-link.tsx
3140
3158
  import { Button, List } from "@raystack/apsara";
3141
3159
 
3142
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-QydftUSBFjVR/sdk/admin/views/audit-logs/audit-logs.module.css.js
3143
- var digest15 = "1fc87553653588fd901dd83866ff1e0f5e78f09ab1f4b956358b4d6e14ad49cb";
3160
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-sRWpxKBNWLYm/sdk/admin/views/audit-logs/audit-logs.module.css.js
3161
+ var digest15 = "025a02a5586bbc4f49099c2c913287d7b3c07212fa428df5047fbb867f927c86";
3144
3162
  var css15 = `._navbar_sfza7_1 {
3145
3163
  padding: var(--rs-space-4) var(--rs-space-7);
3146
3164
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -3281,8 +3299,8 @@ function SidepanelListItemLink({
3281
3299
  // admin/views/audit-logs/sidepanel-list-id.tsx
3282
3300
  import { CopyButton, Flex as Flex15, List as List2, Text as Text10, Tooltip } from "@raystack/apsara";
3283
3301
 
3284
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-ADXVA1V2GVt1/sdk/admin/views/audit-logs/audit-logs.module.css.js
3285
- var digest16 = "8bf748fdbb5b87a2fd40073c639d1074a96a4241569bc8428f8b874a485f74e9";
3302
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-zdlbGKgGf7Em/sdk/admin/views/audit-logs/audit-logs.module.css.js
3303
+ var digest16 = "c7f1e8d386e35d08c49bff0d259f5277ee526a34786b7188926929b0936e9add";
3286
3304
  var css16 = `._navbar_sfza7_1 {
3287
3305
  padding: var(--rs-space-4) var(--rs-space-7);
3288
3306
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -3848,8 +3866,8 @@ var getColumns6 = ({ onNavigateToOrg, t } = {}) => {
3848
3866
  ];
3849
3867
  };
3850
3868
 
3851
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-E5Zd0G05rDVL/sdk/admin/views/admins/admins.module.css.js
3852
- var digest17 = "5cd72e71043cbf53835fc5b3e7ee4bdaad1e4bae5b647fd8be2ea3b6fcb9c299";
3869
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-vwD3vPb4SHu2/sdk/admin/views/admins/admins.module.css.js
3870
+ var digest17 = "9642613436880c778180cedf71ec1079edd944b1e0031db5bfc123f162a6bbf5";
3853
3871
  var css17 = `._tableRoot_yd6a0_1 {
3854
3872
  width: 100%;
3855
3873
  }
@@ -4006,8 +4024,8 @@ var getColumns7 = ({ onSelectPlan } = {}) => {
4006
4024
  // admin/views/plans/header.tsx
4007
4025
  import { DataTable as DataTable11 } from "@raystack/apsara";
4008
4026
 
4009
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-4LLp9JnFi1kP/sdk/admin/views/plans/plans.module.css.js
4010
- var digest18 = "a20281155df52403ec3532ba7857c15333179c68da5033ea78b7aaa4840a70aa";
4027
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-YeDDPUnYTRBU/sdk/admin/views/plans/plans.module.css.js
4028
+ var digest18 = "3e4dc194e0ce4737f16062c4a55e9795e5f8e203e7facb1989582136f633ffab";
4011
4029
  var css18 = `._tableRoot_1d6xr_1 {
4012
4030
  width: 100%;
4013
4031
  }
@@ -4060,8 +4078,8 @@ var PlanHeader = ({ header }) => {
4060
4078
  );
4061
4079
  };
4062
4080
 
4063
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-CIfjJ3v4fO7h/sdk/admin/views/plans/plans.module.css.js
4064
- var digest19 = "d01f4c65e8295fafb6d09868f771d5a363121abb12e73b1b57be6f4ee5613a96";
4081
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-z17TjAuVPiLg/sdk/admin/views/plans/plans.module.css.js
4082
+ var digest19 = "11be230230cf973da9831ccd189dd62b8bb2031ccd3ef072c8028fa6ec2aefcb";
4065
4083
  var css19 = `._tableRoot_1d6xr_1 {
4066
4084
  width: 100%;
4067
4085
  }
@@ -4215,8 +4233,8 @@ import {
4215
4233
  Text as Text15
4216
4234
  } from "@raystack/apsara";
4217
4235
 
4218
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-5FPJNhr3gFlD/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4219
- var digest20 = "a02abcf622e0e2beeaddb9e44f82c215d49547cdb0b989491d992578fd0acf9f";
4236
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-AjyQo7jypkoU/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4237
+ var digest20 = "a84fa9fcfca673eecad91fe1d7346a1671109adea1aadadf35fad0b8b876fcf7";
4220
4238
  var css20 = `._tableRoot_h8n52_1 {
4221
4239
  width: 100%;
4222
4240
  }
@@ -4743,8 +4761,8 @@ var getColumns8 = ({ openEditPage, deleteWebhookMutation, enableDelete }) => {
4743
4761
  // admin/views/webhooks/webhooks/header.tsx
4744
4762
  import { Button as Button3, DataTable as DataTable13 } from "@raystack/apsara";
4745
4763
 
4746
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-BffOEu6bWjuo/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4747
- var digest21 = "a0d1e05d2666764de2a0c17e9f6c13f3b0f6d0108ecbe9328e29854db9aeedc2";
4764
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-I2DadifceSB0/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4765
+ var digest21 = "8d259f51826f670ef7a0d46664bb0959749545fdac7e96d9384ee38cfaa1394d";
4748
4766
  var css21 = `._tableRoot_h8n52_1 {
4749
4767
  width: 100%;
4750
4768
  }
@@ -4826,8 +4844,8 @@ var WebhooksHeader = ({ header = pageHeader4, onOpenCreate }) => {
4826
4844
  );
4827
4845
  };
4828
4846
 
4829
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-xznwHYDwu63I/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4830
- var digest22 = "47acb33f7615ddf53337c6516fdc802c4786a07a41294380346205c5ee442243";
4847
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-ttPTxcaM1uVe/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4848
+ var digest22 = "349a5bcc98d39f4b7fdbed0324b768f629bed049fec217a1e3866c5c207fa427";
4831
4849
  var css22 = `._tableRoot_h8n52_1 {
4832
4850
  width: 100%;
4833
4851
  }
@@ -9047,7 +9065,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
9047
9065
  return /* @__PURE__ */ jsx41(Context.Provider, { value, children });
9048
9066
  };
9049
9067
  Provider.displayName = rootComponentName + "Provider";
9050
- function useContext25(consumerName, scope) {
9068
+ function useContext26(consumerName, scope) {
9051
9069
  const Context = scope?.[scopeName]?.[index] || BaseContext;
9052
9070
  const context = React5.useContext(Context);
9053
9071
  if (context)
@@ -9056,7 +9074,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
9056
9074
  return defaultContext;
9057
9075
  throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
9058
9076
  }
9059
- return [Provider, useContext25];
9077
+ return [Provider, useContext26];
9060
9078
  }
9061
9079
  const createScope = () => {
9062
9080
  const scopeContexts = defaultContexts.map((defaultContext) => {
@@ -10424,8 +10442,8 @@ import { EmptyState as EmptyState9, DataTable as DataTable15, Flex as Flex30 } f
10424
10442
  // admin/views/preferences/columns.tsx
10425
10443
  import { Text as Text17 } from "@raystack/apsara";
10426
10444
 
10427
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-GG4WECGR95MW/sdk/admin/views/preferences/preferences.module.css.js
10428
- var digest23 = "16ce6e35eafe6ef1461e9a61eb585ffbd368cebc4308ac2448537d2bbf8ead3e";
10445
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-6LmIazxoiU7C/sdk/admin/views/preferences/preferences.module.css.js
10446
+ var digest23 = "2a0e02321803b25bb41dbdce873df4a00fe93364df4740899f4f10589fac6457";
10429
10447
  var css23 = `._tableRoot_j5y5o_1 {
10430
10448
  width: 100%;
10431
10449
  }
@@ -10507,8 +10525,8 @@ var getColumns9 = ({
10507
10525
  ];
10508
10526
  };
10509
10527
 
10510
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-jhP7VEf6V8wW/sdk/admin/views/preferences/preferences.module.css.js
10511
- var digest24 = "5ccd3ee75aa91b58de4251507c0c2e129ec8b2f9b8a2480121462b812529d065";
10528
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-5Tnc2wHE43ec/sdk/admin/views/preferences/preferences.module.css.js
10529
+ var digest24 = "cd40dd06805d6ba3f4fb3e555c06c078e026be5447f9c191fc52ca1a6a32aebc";
10512
10530
  var css24 = `._tableRoot_j5y5o_1 {
10513
10531
  width: 100%;
10514
10532
  }
@@ -10870,8 +10888,8 @@ import {
10870
10888
  Spinner as Spinner2
10871
10889
  } from "@raystack/apsara";
10872
10890
 
10873
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-lDMqARC1pNdW/sdk/admin/views/users/list/list.module.css.js
10874
- var digest25 = "f007a1ea0800c0f9438440366a1fecabff6b0fc9cfb264ad061472033423f8b7";
10891
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-UvSVjqTQxgO3/sdk/admin/views/users/list/list.module.css.js
10892
+ var digest25 = "ab369d9aa999c0bb863c255beba48fe37cf7d65ca5393ecbb804b970638ebb3e";
10875
10893
  var css25 = `._navbar_1s15g_1 {
10876
10894
  padding: var(--rs-space-4) var(--rs-space-7);
10877
10895
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -10974,8 +10992,8 @@ import {
10974
10992
  import { Controller as Controller2, useForm as useForm3 } from "react-hook-form";
10975
10993
  import { zodResolver as zodResolver3 } from "@hookform/resolvers/zod";
10976
10994
 
10977
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-0JROqMkBU4DJ/sdk/admin/views/users/list/invite-users.module.css.js
10978
- var digest26 = "8227cfccdaf660af495d7736955dc5246a285a5dfb1938a7ea999518e2502350";
10995
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-1gC4zlkNxaVF/sdk/admin/views/users/list/invite-users.module.css.js
10996
+ var digest26 = "167099ff0cb58853c6e2964f5e2ac83180addd652c085513dd606a918fae8e67";
10979
10997
  var css26 = `._invite-users-dialog-body_11ujx_1 {
10980
10998
  display: flex;
10981
10999
  flex-direction: column;
@@ -11350,8 +11368,8 @@ var Navbar2 = ({ searchQuery, onExportUsers }) => {
11350
11368
  };
11351
11369
  var navbar_default2 = Navbar2;
11352
11370
 
11353
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-VEL5fRsiE369/sdk/admin/views/users/list/list.module.css.js
11354
- var digest27 = "4b5a8045a25304bcbdeaa07bd1a0fe39144cd7e1e4036d66a4507e7f489376f1";
11371
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-CCIRBIxRrOXo/sdk/admin/views/users/list/list.module.css.js
11372
+ var digest27 = "7985480a0f355c68358ec536e144a980318b459570d025e1bc13a96414bf086a";
11355
11373
  var css27 = `._navbar_1s15g_1 {
11356
11374
  padding: var(--rs-space-4) var(--rs-space-7);
11357
11375
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -11421,8 +11439,8 @@ import {
11421
11439
  } from "@raystack/apsara";
11422
11440
  import dayjs7 from "dayjs";
11423
11441
 
11424
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-NalyLwZNOEsI/sdk/admin/views/users/list/list.module.css.js
11425
- var digest28 = "6d229b7b1d63ea501ea7e16cd951deb5f1cf5ab2be56d66f20502a5c9062c914";
11442
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-jLOxKo2qj4nB/sdk/admin/views/users/list/list.module.css.js
11443
+ var digest28 = "f746949eaf1d494c3f50a2c38d2af47ce9fad728d9e0a06847c9e8e43c1f505c";
11426
11444
  var css28 = `._navbar_1s15g_1 {
11427
11445
  padding: var(--rs-space-4) var(--rs-space-7);
11428
11446
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -11714,8 +11732,8 @@ import { Avatar as Avatar4, getAvatarColor as getAvatarColor3, SidePanel as Side
11714
11732
  // admin/views/users/details/layout/side-panel-details.tsx
11715
11733
  import { Flex as Flex37, List as List4, Text as Text22, CopyButton as CopyButton2, Tooltip as Tooltip2 } from "@raystack/apsara";
11716
11734
 
11717
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-n3NL97DMsgq3/sdk/admin/views/users/details/layout/side-panel.module.css.js
11718
- var digest29 = "718186f5fe15daab12cb5bae390c12cfaaff650ad544d6a8be3715c70cc388d6";
11735
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-YKByBwyS69ky/sdk/admin/views/users/details/layout/side-panel.module.css.js
11736
+ var digest29 = "768eaed988a3971c17199b9508f92f93f22151d29cea879cf32ab49c75d4c2da";
11719
11737
  var css29 = `._side-panel_1oc3f_1 {
11720
11738
  transform: all 0.3s ease-in-out;
11721
11739
  padding-bottom: 80px;
@@ -11822,8 +11840,8 @@ var SidePanelDetails2 = () => {
11822
11840
  import { Flex as Flex40, List as List5, Text as Text26, Avatar as Avatar3 } from "@raystack/apsara";
11823
11841
  import dayjs8 from "dayjs";
11824
11842
 
11825
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-9lMHzULXB72F/sdk/admin/views/users/details/layout/side-panel.module.css.js
11826
- var digest30 = "51c89995ca92f8a3ca33aa4bed552cd0f3663a49d34739ba82653bf899692243";
11843
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-Ntb4sR6GLAun/sdk/admin/views/users/details/layout/side-panel.module.css.js
11844
+ var digest30 = "d6941b6fc32cdaf51b6f5bac922d17819a96d2344c06d4f6997e1ae15aeaa04b";
11827
11845
  var css30 = `._side-panel_1oc3f_1 {
11828
11846
  transform: all 0.3s ease-in-out;
11829
11847
  padding-bottom: 80px;
@@ -11886,8 +11904,8 @@ var side_panel_module_css_default2 = { "side-panel": "_side-panel_1oc3f_1", "sid
11886
11904
  // admin/views/users/details/layout/membership-dropdown.tsx
11887
11905
  import { Text as Text25, DropdownMenu as DropdownMenu2, Skeleton as Skeleton2 } from "@raystack/apsara";
11888
11906
 
11889
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-06Ujz4r05lRh/sdk/admin/views/users/details/layout/side-panel.module.css.js
11890
- var digest31 = "a833e0fcffa1e3cec3b96d41ffada8d1e201595be481f8094714e3527202229f";
11907
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-kcvuuNxJGTgQ/sdk/admin/views/users/details/layout/side-panel.module.css.js
11908
+ var digest31 = "e3405af79ef89486a9b6fe2d66d103b47f2b5c30ff50a7a2d0882b166b404a3c";
11891
11909
  var css31 = `._side-panel_1oc3f_1 {
11892
11910
  transform: all 0.3s ease-in-out;
11893
11911
  padding-bottom: 80px;
@@ -12296,8 +12314,8 @@ var SidePanelMembership = ({
12296
12314
  ] });
12297
12315
  };
12298
12316
 
12299
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-Cx7K4O2cR0AV/sdk/admin/views/users/details/layout/side-panel.module.css.js
12300
- var digest32 = "d52af57aa1b8578eb81de6ee70ab6dff4352572624edbf0196fff74f7966b5a4";
12317
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-RFTHCx4J4R53/sdk/admin/views/users/details/layout/side-panel.module.css.js
12318
+ var digest32 = "0ddfcb30e25175453ecda0b6cc99b6592af793634dad4fcf1fda5be7e265c269";
12301
12319
  var css32 = `._side-panel_1oc3f_1 {
12302
12320
  transform: all 0.3s ease-in-out;
12303
12321
  padding-bottom: 80px;
@@ -12415,8 +12433,8 @@ var UserDetailsSidePanel = () => {
12415
12433
  );
12416
12434
  };
12417
12435
 
12418
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-10glqa8mlEwQ/sdk/admin/views/users/details/layout/layout.module.css.js
12419
- var digest33 = "11fec1064fe0f38642475996b01f900137b0848bb56a2b3328e5e279f2f3d3f0";
12436
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-O05iKoMMbJd2/sdk/admin/views/users/details/layout/layout.module.css.js
12437
+ var digest33 = "3239c264d476c19fed70c9c51746e9033d395e2b536ac6170c5156205775c074";
12420
12438
  var css33 = `._page_190wz_1 {
12421
12439
  height: 100vh;
12422
12440
  width: 100%;
@@ -12457,8 +12475,8 @@ import {
12457
12475
  } from "@raystack/apsara";
12458
12476
  import { SidebarIcon } from "@raystack/apsara/icons";
12459
12477
 
12460
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-IycxLJqKJG3q/sdk/admin/views/users/details/layout/navbar.module.css.js
12461
- var digest34 = "ec5456dadb553639eb9ebffe96f3f279a888ccefc59ead6157f6ffbc0b68e9ff";
12478
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-g8Li7T6l2Vjt/sdk/admin/views/users/details/layout/navbar.module.css.js
12479
+ var digest34 = "81cf97fcac860e8886de353e2e927eb72cf07adda1422f670e655fcc86b30233";
12462
12480
  var css34 = `._navbar_1ahsl_1 {
12463
12481
  padding: var(--rs-space-4) var(--rs-space-7);
12464
12482
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -12750,8 +12768,8 @@ import {
12750
12768
  Text as Text28
12751
12769
  } from "@raystack/apsara";
12752
12770
 
12753
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-JRMhIzs8N30X/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
12754
- var digest35 = "7e1cd417df2a53fe4aa005e3a4c036af48f3a64d180c8a324ef65aceed3c1154";
12771
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-0tNE8yWObzcg/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
12772
+ var digest35 = "77a9af34c03939b5d008d529ac68c159019f8c1c066d3b4f582ddb106020f0b5";
12755
12773
  var css35 = `._sessionsContainer_aq82p_1 {
12756
12774
  border: 1px solid var(--rs-color-border-base-primary);
12757
12775
  border-radius: var(--rs-radius-2);
@@ -12872,8 +12890,8 @@ var RevokeSessionFinalConfirm = ({
12872
12890
  ) });
12873
12891
  };
12874
12892
 
12875
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-ulFPmkZcdGeX/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
12876
- var digest36 = "80f398e36445037330107ee088916aeb22f3de0dc8fbcc5fc592dc1b0a727570";
12893
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-criUEBjeihWD/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
12894
+ var digest36 = "fbaa5e4add714368088a86af526d64cee13f5a41dfe4c2fd41a1c94931685ba3";
12877
12895
  var css36 = `._sessionsContainer_aq82p_1 {
12878
12896
  border: 1px solid var(--rs-color-border-base-primary);
12879
12897
  border-radius: var(--rs-radius-2);
@@ -13017,8 +13035,8 @@ var RevokeSessionConfirm = ({ isOpen, onOpenChange, sessionInfo, onRevokeConfirm
13017
13035
  // admin/views/users/details/security/sessions/session-skeleton.tsx
13018
13036
  import { Flex as Flex45, Skeleton as Skeleton3 } from "@raystack/apsara";
13019
13037
 
13020
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-PYFaoM9SgYgg/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
13021
- var digest37 = "42214c4ebe4e3b3ff31310131926a0746608491019982437d1bc73f81b18cbf1";
13038
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-ylHH7z5uQpoA/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
13039
+ var digest37 = "d3284ceb531763827f0571cb9a7eb775c34b60e72755457b9a0aafb1234103d8";
13022
13040
  var css37 = `._sessionsContainer_aq82p_1 {
13023
13041
  border: 1px solid var(--rs-color-border-base-primary);
13024
13042
  border-radius: var(--rs-radius-2);
@@ -13099,8 +13117,8 @@ import { AdminServiceQueries as AdminServiceQueries13 } from "@raystack/proton/f
13099
13117
  import dayjs9 from "dayjs";
13100
13118
  import relativeTime from "dayjs/plugin/relativeTime";
13101
13119
 
13102
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-Uxn0GRuV330e/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
13103
- var digest38 = "22507c74191ed0d2080fb6600154454bfe86ae38c6edbd9885d2518b55a028c0";
13120
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-J077rKKp2WHg/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
13121
+ var digest38 = "9f1550015a77fc76f575956958b67de673eaa24bcb988ee5731ada61ebb0a994";
13104
13122
  var css38 = `._sessionsContainer_aq82p_1 {
13105
13123
  border: 1px solid var(--rs-color-border-base-primary);
13106
13124
  border-radius: var(--rs-radius-2);
@@ -13309,8 +13327,8 @@ var UserSessions = () => {
13309
13327
  ] });
13310
13328
  };
13311
13329
 
13312
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-o95d05yYSBSB/sdk/admin/views/users/details/security/security.module.css.js
13313
- var digest39 = "93815838c11682aea89931f192e09585bfaf55d496e7990e123ecec1e2ad1cb9";
13330
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-jkm78UznI9Ws/sdk/admin/views/users/details/security/security.module.css.js
13331
+ var digest39 = "66bc30a36eab2929c2e5a122ee23d25995a017464c173e95d3b7933739dd1f83";
13314
13332
  var css39 = `._container_4259p_1 {
13315
13333
  width: 100%;
13316
13334
  }
@@ -13444,8 +13462,8 @@ import {
13444
13462
  } from "@raystack/apsara";
13445
13463
  import { OrganizationIcon } from "@raystack/apsara/icons";
13446
13464
 
13447
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-KiFxm4WFLoWU/sdk/admin/views/organizations/list/list.module.css.js
13448
- var digest40 = "faaca934ade761ff558322b9d22f8ef663f1dc712d08856626fa3e6acd643c12";
13465
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-fqST7uYIXLFa/sdk/admin/views/organizations/list/list.module.css.js
13466
+ var digest40 = "25830474d37f612f761a059a6295f5f5593a32bb9c7d269090285aef33952743";
13449
13467
  var css40 = `._navbar_1py96_1 {
13450
13468
  padding: var(--rs-space-4) var(--rs-space-7);
13451
13469
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -13634,8 +13652,8 @@ var OrganizationsNavabar = ({
13634
13652
  ] });
13635
13653
  };
13636
13654
 
13637
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-FBZLhupRRrM2/sdk/admin/views/organizations/list/list.module.css.js
13638
- var digest41 = "c030e3692f97c0f83b56377ab32991eb7519c6adfc96920ec14ceb5f05449197";
13655
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-NRffpNidjzz8/sdk/admin/views/organizations/list/list.module.css.js
13656
+ var digest41 = "138e2a9ebeeee4f581f978c2f37b2917a624d8e43fb949cc4e7e1f46e15b73a4";
13639
13657
  var css41 = `._navbar_1py96_1 {
13640
13658
  padding: var(--rs-space-4) var(--rs-space-7);
13641
13659
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -13749,8 +13767,8 @@ import {
13749
13767
  } from "@raystack/apsara";
13750
13768
  import dayjs10 from "dayjs";
13751
13769
 
13752
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-QUsGmlHFy4d2/sdk/admin/views/organizations/list/list.module.css.js
13753
- var digest42 = "415632e13677dbc654779b1c3e08d527e6b01d19e911f04224bcacf0ef272d7c";
13770
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-2MR4oWc1l4DA/sdk/admin/views/organizations/list/list.module.css.js
13771
+ var digest42 = "a19b7656a30e2d91d29c444abc7f19877dd6f3f54f20621ba13371bcc08e4b3b";
13754
13772
  var css42 = `._navbar_1py96_1 {
13755
13773
  padding: var(--rs-space-4) var(--rs-space-7);
13756
13774
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -14020,8 +14038,8 @@ import { create as create8 } from "@bufbuild/protobuf";
14020
14038
  // admin/views/organizations/list/create.tsx
14021
14039
  import { useEffect as useEffect6, useState as useState20 } from "react";
14022
14040
 
14023
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-TqitS2rpKo7l/sdk/admin/views/organizations/list/list.module.css.js
14024
- var digest43 = "2598bcd826c73ce52bbacb0ed326777f8643d3643c11d109c760d3c97325e7c5";
14041
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-1yYLIOHh5q5R/sdk/admin/views/organizations/list/list.module.css.js
14042
+ var digest43 = "8c3c9ebb13cf7df93241a350627824345ccd3b4627c31195d50cddd8e21a9985";
14025
14043
  var css43 = `._navbar_1py96_1 {
14026
14044
  padding: var(--rs-space-4) var(--rs-space-7);
14027
14045
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -14152,8 +14170,8 @@ var cross_default = 'data:image/svg+xml,<svg width="20" height="20" viewBox="0 0
14152
14170
  // react/components/avatar-upload/index.tsx
14153
14171
  import "react-image-crop/dist/ReactCrop.css";
14154
14172
 
14155
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-UeLZdsKaMdrm/sdk/react/components/avatar-upload/avatar-upload.module.css.js
14156
- var digest44 = "3ea1f84392d1f3a4f08018128b2a1d3b6e73c728794c11dbf600f793ae4eea3a";
14173
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-hT0eIHdP1a3j/sdk/react/components/avatar-upload/avatar-upload.module.css.js
14174
+ var digest44 = "a16b8fbfdc05510fac904d175f4f3f644c20424cb61f5aa9faaf1983f73a4dba";
14157
14175
  var css44 = `._container_1k4dc_1 {
14158
14176
  display: flex;
14159
14177
  flex-direction: column;
@@ -14908,8 +14926,8 @@ import {
14908
14926
  Search
14909
14927
  } from "@raystack/apsara";
14910
14928
 
14911
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-7BA07sLI8ffd/sdk/admin/views/organizations/details/layout/layout.module.css.js
14912
- var digest45 = "a22e38baeee4876107e50a0c8e1c1291b158ff3fc576ffdf8817001bb3a4d14a";
14929
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-tggWBGXlQ0WH/sdk/admin/views/organizations/details/layout/layout.module.css.js
14930
+ var digest45 = "1f32cd8ef9d03f894a8119d075253235bf8ca7a0be15d128a7a0e17fe8e980fe";
14913
14931
  var css45 = `._page_1jsqa_1 {
14914
14932
  width: 100%;
14915
14933
  height: 100vh;
@@ -15015,8 +15033,8 @@ import {
15015
15033
  } from "@raystack/apsara";
15016
15034
  import { useContext as useContext5, useMemo as useMemo7 } from "react";
15017
15035
 
15018
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-ABoM4edKYezC/sdk/admin/views/organizations/details/layout/layout.module.css.js
15019
- var digest46 = "6293368196824921c8c0365f2f531f856c4a7aae4b660ef8cd96d9a4bc04dc94";
15036
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-UZBzdoj9ISlq/sdk/admin/views/organizations/details/layout/layout.module.css.js
15037
+ var digest46 = "659727871ad0d96de6a8826ee6041286cb03c7888a7e969dcd35ce97ff3f93fa";
15020
15038
  var css46 = `._page_1jsqa_1 {
15021
15039
  width: 100%;
15022
15040
  height: 100vh;
@@ -15322,8 +15340,8 @@ import {
15322
15340
  import { useContext as useContext6 } from "react";
15323
15341
  import { Controller as Controller5, FormProvider as FormProvider4, useForm as useForm7 } from "react-hook-form";
15324
15342
 
15325
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-pqKuIeRo1PlF/sdk/admin/views/organizations/details/layout/layout.module.css.js
15326
- var digest47 = "6a65ef9753e374ae7299d477e73727e908169f8adf977e016b72d5a9721f81f8";
15343
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-U5OrlMehHBqt/sdk/admin/views/organizations/details/layout/layout.module.css.js
15344
+ var digest47 = "294a6a6ecacadb9d435c051973491d685fa0800dbf82de3d665e8d9d2262611e";
15327
15345
  var css47 = `._page_1jsqa_1 {
15328
15346
  width: 100%;
15329
15347
  height: 100vh;
@@ -15702,6 +15720,7 @@ var NavLinks = ({
15702
15720
  { name: "Invoices", path: `${basePath}/invoices` },
15703
15721
  { name: "Tokens", path: `${basePath}/tokens` },
15704
15722
  { name: "API", path: `${basePath}/apis` },
15723
+ { name: "PAT", path: `${basePath}/pat` },
15705
15724
  { name: "Security", path: `${basePath}/security` }
15706
15725
  ];
15707
15726
  function checkActive(path) {
@@ -15818,8 +15837,8 @@ var OrganizationsDetailsNavabar = ({
15818
15837
  ] });
15819
15838
  };
15820
15839
 
15821
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-Xq4uDesdQhkG/sdk/admin/views/organizations/details/layout/layout.module.css.js
15822
- var digest48 = "8077fd9927e19da360ba650fe75893c5303f3e96357ef913860b06411ff28955";
15840
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-1cWec6EDhZsR/sdk/admin/views/organizations/details/layout/layout.module.css.js
15841
+ var digest48 = "8cf0a5b781a84e2ec1296250b423ec471e9f837b71f74ce9bab4084238ba75ff";
15823
15842
  var css48 = `._page_1jsqa_1 {
15824
15843
  width: 100%;
15825
15844
  height: 100vh;
@@ -15921,8 +15940,8 @@ import { Avatar as Avatar9, getAvatarColor as getAvatarColor7, SidePanel as Side
15921
15940
  // admin/views/organizations/details/side-panel/org-details-section.tsx
15922
15941
  import { Flex as Flex57, List as List7, Text as Text39, CopyButton as CopyButton3, Tooltip as Tooltip3 } from "@raystack/apsara";
15923
15942
 
15924
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-H2oHygb1fMMu/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
15925
- var digest49 = "fb05aafe6d4b1a1a74c0f3781aa8bc4f8882da29096a7e35abb6ad71ce58c1b0";
15943
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-30GFNFVRoVUW/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
15944
+ var digest49 = "2382657f8ad1e561c9ed6aa2c66eb0c4be91d88e4c0e291a2d3b7141a6e47361";
15926
15945
  var css49 = `._side-panel-section-item-label_yeg6h_1 {
15927
15946
  width: 120px;
15928
15947
  }
@@ -16012,8 +16031,8 @@ var OrganizationDetailsSection = ({
16012
16031
  import { Flex as Flex58, List as List8, Text as Text40, Link as Link2, Tooltip as Tooltip4 } from "@raystack/apsara";
16013
16032
  import { useContext as useContext9 } from "react";
16014
16033
 
16015
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-3i7wJ46r4MNz/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16016
- var digest50 = "5d614af526e9dd41923cf50461814b89da5eb9b3e6e8d5a063288968a1e68e55";
16034
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-TIsiKPAR6byP/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16035
+ var digest50 = "04b80b58c86d66c0d973043f757cd36786c3831c87b46902182561d1e695ccb9";
16017
16036
  var css50 = `._side-panel-section-item-label_yeg6h_1 {
16018
16037
  width: 120px;
16019
16038
  }
@@ -16099,8 +16118,8 @@ var KYCDetailsSection = () => {
16099
16118
  import { useContext as useContext10 } from "react";
16100
16119
  import { List as List9, Text as Text41, Flex as Flex59 } from "@raystack/apsara";
16101
16120
 
16102
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-QRvF2VMS7U5i/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16103
- var digest51 = "489cb798b8f4921b4a20c3ee3e63743e2c531220e87b7fb20f8c57d8de8afbd6";
16121
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-ycEd6ObAlnlc/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16122
+ var digest51 = "a7afaab6d51b9bbfb91560136bc5832796245b3a64d0395607192f202ee11dc7";
16104
16123
  var css51 = `._side-panel-section-item-label_yeg6h_1 {
16105
16124
  width: 120px;
16106
16125
  }
@@ -16201,8 +16220,8 @@ var PlanDetailsSection = () => {
16201
16220
  // admin/views/organizations/details/side-panel/tokens-details-section.tsx
16202
16221
  import { List as List10, Text as Text42, Flex as Flex60 } from "@raystack/apsara";
16203
16222
 
16204
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-zaVwJQJUw7Lb/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16205
- var digest52 = "767f7236a24df7b38949e94cc91525b6dc8ddc56770825ed07c9ee684dc66b90";
16223
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-9M6rhR16WW1m/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16224
+ var digest52 = "d152f0f7cfe6cf884194f183ff546c9b39caf68290a4c9c29ec705e020c0f223";
16206
16225
  var css52 = `._side-panel-section-item-label_yeg6h_1 {
16207
16226
  width: 120px;
16208
16227
  }
@@ -16303,8 +16322,8 @@ var TokensDetailsSection = () => {
16303
16322
  // admin/views/organizations/details/side-panel/billing-details-section.tsx
16304
16323
  import { CopyButton as CopyButton4, Flex as Flex61, Link as Link3, List as List11, Text as Text43 } from "@raystack/apsara";
16305
16324
 
16306
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-rduTbNP7X8Mu/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16307
- var digest53 = "1913f3d1d84e4bc70ac91f1a2351da951374957ab6a4819d120f90c491cac767";
16325
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-ApnoAfiySuse/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
16326
+ var digest53 = "48ccec4201e761b845beff4db70b1bbb2e2d8b43b650b9c6a6bee9016cda858d";
16308
16327
  var css53 = `._side-panel-section-item-label_yeg6h_1 {
16309
16328
  width: 120px;
16310
16329
  }
@@ -16462,8 +16481,8 @@ import {
16462
16481
  toast as toast10
16463
16482
  } from "@raystack/apsara";
16464
16483
 
16465
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-5qidNSkg8ab4/sdk/admin/views/organizations/details/edit/edit.module.css.js
16466
- var digest54 = "df1c14e11cf91e563e48fb725c7f882262dd0f72899cec8747073ede91402dfe";
16484
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-XXaJSgJx1t8j/sdk/admin/views/organizations/details/edit/edit.module.css.js
16485
+ var digest54 = "8c1ff70802a7c5cad5fa1501e2ebddd9b5f0b1413839391b6dac31d656dcefea";
16467
16486
  var css54 = `._drawer-content_1o0os_1 {
16468
16487
  min-width: 500px;
16469
16488
  padding: 0;
@@ -16700,8 +16719,8 @@ function EditKYCPanel({ onClose }) {
16700
16719
  // admin/views/organizations/details/edit/organization.tsx
16701
16720
  import { useContext as useContext14, useEffect as useEffect10, useState as useState23 } from "react";
16702
16721
 
16703
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-CSU6MSdn837Q/sdk/admin/views/organizations/details/edit/edit.module.css.js
16704
- var digest55 = "c74e3e25ad5c273bccb696e082bc8e2264565e4d562ee2b929fbcbb8e88d0fa7";
16722
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-0izcUqpwshxT/sdk/admin/views/organizations/details/edit/edit.module.css.js
16723
+ var digest55 = "fc3c9d273a89c807687017e8afbdf63f18712ea69b775ea1421998db978be499";
16705
16724
  var css55 = `._drawer-content_1o0os_1 {
16706
16725
  min-width: 500px;
16707
16726
  padding: 0;
@@ -17083,8 +17102,8 @@ import {
17083
17102
  toast as toast11
17084
17103
  } from "@raystack/apsara";
17085
17104
 
17086
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-ravz6HxjT4Ka/sdk/admin/views/organizations/details/edit/edit.module.css.js
17087
- var digest56 = "eb69b51d520589bc88b77e416e20f3175f0b3a53eff11aa5ee99528725fdfcdc";
17105
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-wi8p5vmODgM8/sdk/admin/views/organizations/details/edit/edit.module.css.js
17106
+ var digest56 = "ad56dfd90a94faab77a6741432fb4d12a3bba0bc54cf237d6693f24915746716";
17088
17107
  var css56 = `._drawer-content_1o0os_1 {
17089
17108
  min-width: 500px;
17090
17109
  padding: 0;
@@ -17717,8 +17736,8 @@ import {
17717
17736
  toast as toast14
17718
17737
  } from "@raystack/apsara";
17719
17738
 
17720
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-PGs6UrUv48yD/sdk/admin/views/organizations/details/security/security.module.css.js
17721
- var digest57 = "0ff330d81d488f0532dabb82597129c567f0277f36e6304fb5ba9f56d7c58f63";
17739
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-47A8j8TLFaiI/sdk/admin/views/organizations/details/security/security.module.css.js
17740
+ var digest57 = "7e4038a356bebde12189a80930a30d5d22f021c263dc376522a3e61e4ac53ddd";
17722
17741
  var css57 = `._container_1wkae_1 {
17723
17742
  width: 100%;
17724
17743
  }
@@ -17918,8 +17937,8 @@ import {
17918
17937
  toast as toast13
17919
17938
  } from "@raystack/apsara";
17920
17939
 
17921
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-zqjwHEEunTBU/sdk/admin/views/organizations/details/security/security.module.css.js
17922
- var digest58 = "70b53438eab75342043fc27aed3e90e138eb1104fe27f6ea9d3bd57564b9dd34";
17940
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-z13EvwqP8fNB/sdk/admin/views/organizations/details/security/security.module.css.js
17941
+ var digest58 = "3646ca5bbe4ecd72ebd736c118bbcf9afada9177426488dd317199888ac29232";
17923
17942
  var css58 = `._container_1wkae_1 {
17924
17943
  width: 100%;
17925
17944
  }
@@ -18143,8 +18162,8 @@ var OrganizationSecurity = () => {
18143
18162
  // admin/views/organizations/details/members/index.tsx
18144
18163
  import { DataTable as DataTable20, EmptyState as EmptyState15, Flex as Flex71 } from "@raystack/apsara";
18145
18164
 
18146
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-5mgqLQ80HRpi/sdk/admin/views/organizations/details/members/members.module.css.js
18147
- var digest59 = "44874bc9000c5709d30f9f58295ea18f8afd60e561c2d0ad0aa428911b5636de";
18165
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-2YazDH4KZvh1/sdk/admin/views/organizations/details/members/members.module.css.js
18166
+ var digest59 = "913624e13e3fbef25355c2dfe40c8ae1830496cf7fa16ee5fa75ee450961290f";
18148
18167
  var css59 = `._container_6bi1j_1 {
18149
18168
  width: 100%;
18150
18169
  }
@@ -18207,8 +18226,8 @@ import {
18207
18226
  DropdownMenu as DropdownMenu4
18208
18227
  } from "@raystack/apsara";
18209
18228
 
18210
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-C9fIaOSHTsZp/sdk/admin/views/organizations/details/members/members.module.css.js
18211
- var digest60 = "017f3c8a7318f89d90cb8eca63629fa72c84a7f906945626a530b0cddde8104b";
18229
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-ccuhjpoDJ1Y5/sdk/admin/views/organizations/details/members/members.module.css.js
18230
+ var digest60 = "8d4d925d13533031bb9035abcc747658f9c8a875db5ddc622018c181ceca506c";
18212
18231
  var css60 = `._container_6bi1j_1 {
18213
18232
  width: 100%;
18214
18233
  }
@@ -18745,8 +18764,8 @@ import {
18745
18764
  Flex as Flex79
18746
18765
  } from "@raystack/apsara";
18747
18766
 
18748
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-uW4xTzJGwYtk/sdk/admin/views/organizations/details/projects/projects.module.css.js
18749
- var digest61 = "9462db25f48218cc2c300530313f451c90c7c23f40bfb75a24f208b2c2a29e22";
18767
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-7F5OenAbaw0l/sdk/admin/views/organizations/details/projects/projects.module.css.js
18768
+ var digest61 = "8066e8d61126569644b2424e0bc2bc69b8cc30adea3e6bb5bbcfd7e08f1d1482";
18750
18769
  var css61 = `._container_1rf4u_1 {
18751
18770
  width: 100%;
18752
18771
  }
@@ -18815,8 +18834,8 @@ import {
18815
18834
  DropdownMenu as DropdownMenu5
18816
18835
  } from "@raystack/apsara";
18817
18836
 
18818
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-O1iOpfdZLi5B/sdk/admin/views/organizations/details/projects/projects.module.css.js
18819
- var digest62 = "cf61f521bf9fc8ebbf27f83a8fb6ebc261a600df1936742066d9499334ea89b9";
18837
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-4VsXpJUzG40n/sdk/admin/views/organizations/details/projects/projects.module.css.js
18838
+ var digest62 = "75a276bb76f5a98b9701bdefad249728941835cf26fbdcb434428035e58f0399";
18820
18839
  var css62 = `._container_1rf4u_1 {
18821
18840
  width: 100%;
18822
18841
  }
@@ -19331,8 +19350,8 @@ import { create as create27 } from "@bufbuild/protobuf";
19331
19350
  import { useQuery as useQuery19, useInfiniteQuery as useInfiniteQuery6 } from "@connectrpc/connect-query";
19332
19351
  import { useDebouncedState as useDebouncedState4 } from "@raystack/apsara/hooks";
19333
19352
 
19334
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-Y66kuy0TazZu/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19335
- var digest63 = "02c9ac6f0c2bbf678190b4658a8473d7665a8930b95b64156503942cfe6d979c";
19353
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-dwfW2KNfBQeZ/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19354
+ var digest63 = "8460c89b89ad4d827a4b6ff323b805dbcbcb654e88b7d244c59f50694085a566";
19336
19355
  var css63 = `._flex1_1k2kc_1 {
19337
19356
  flex: 1;
19338
19357
  }
@@ -19424,8 +19443,8 @@ var css63 = `._flex1_1k2kc_1 {
19424
19443
  })();
19425
19444
  var members_module_css_default3 = { "flex1": "_flex1_1k2kc_1", "dialog-content": "_dialog-content_1k2kc_5", "dialogContent": "_dialog-content_1k2kc_5", "dialog-body": "_dialog-body_1k2kc_10", "dialogBody": "_dialog-body_1k2kc_10", "empty-state": "_empty-state_1k2kc_14", "emptyState": "_empty-state_1k2kc_14", "empty-state-subheading": "_empty-state-subheading_1k2kc_18", "emptyStateSubheading": "_empty-state-subheading_1k2kc_18", "table": "_table_1k2kc_23", "table-wrapper": "_table-wrapper_1k2kc_28", "tableWrapper": "_table-wrapper_1k2kc_28", "table-header": "_table-header_1k2kc_34", "tableHeader": "_table-header_1k2kc_34", "table-search": "_table-search_1k2kc_39", "tableSearch": "_table-search_1k2kc_39", "table-content-wrapper": "_table-content-wrapper_1k2kc_43", "tableContentWrapper": "_table-content-wrapper_1k2kc_43", "table-action-column": "_table-action-column_1k2kc_47", "tableActionColumn": "_table-action-column_1k2kc_47", "table-action-dropdown": "_table-action-dropdown_1k2kc_51", "tableActionDropdown": "_table-action-dropdown_1k2kc_51", "action-dialog-overlay": "_action-dialog-overlay_1k2kc_56", "actionDialogOverlay": "_action-dialog-overlay_1k2kc_56", "action-dialog-content": "_action-dialog-content_1k2kc_60", "actionDialogContent": "_action-dialog-content_1k2kc_60", "add-member-dropdown": "_add-member-dropdown_1k2kc_64", "addMemberDropdown": "_add-member-dropdown_1k2kc_64", "add-member-dropdown-member": "_add-member-dropdown-member_1k2kc_69", "addMemberDropdownMember": "_add-member-dropdown-member_1k2kc_69", "add-member-dropdown-member-name": "_add-member-dropdown-member-name_1k2kc_73", "addMemberDropdownMemberName": "_add-member-dropdown-member-name_1k2kc_73" };
19426
19445
 
19427
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-mRHYzhU7fbxo/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19428
- var digest64 = "089a07fddbce333d62f0964184f2b032a72bae1ca04653abb209f53baa6b2c90";
19446
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-8SIVLp7CSc0Z/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19447
+ var digest64 = "77d4c846682da49140c9c7ccfe047a9b8c89e871fa577977a5d35212a7926138";
19429
19448
  var css64 = `._flex1_1k2kc_1 {
19430
19449
  flex: 1;
19431
19450
  }
@@ -19633,8 +19652,8 @@ import {
19633
19652
  toast as toast18
19634
19653
  } from "@raystack/apsara";
19635
19654
 
19636
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-Ggies5cHhlhJ/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19637
- var digest65 = "4314fa522a950102c11a8f83e85b5b1d36404a2e6e1df54a8bf2ded7cceff993";
19655
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-Wqrl5TZc2J2P/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19656
+ var digest65 = "8051611a6c6e055c6e8648cde37527d5bf8859a520e1a70750b0d52d051d57ae";
19638
19657
  var css65 = `._flex1_1k2kc_1 {
19639
19658
  flex: 1;
19640
19659
  }
@@ -19858,8 +19877,8 @@ import {
19858
19877
  import { create as create26 } from "@bufbuild/protobuf";
19859
19878
  import { useMutation as useMutation21 } from "@connectrpc/connect-query";
19860
19879
 
19861
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-wZx8dvNll50c/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19862
- var digest66 = "4ad7cf30fb5226bbd9d14b9cfcca774b8b8ea98c0fdea00b05a2a96aab5ef3ab";
19880
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-znBktJPX1cYr/sdk/admin/views/organizations/details/projects/members/members.module.css.js
19881
+ var digest66 = "a90b284b4a30e80285b0ef8d8b6385afb71ad851ede5f361a5f980b024136683";
19863
19882
  var css66 = `._flex1_1k2kc_1 {
19864
19883
  flex: 1;
19865
19884
  }
@@ -20056,8 +20075,8 @@ import {
20056
20075
  Text as Text56
20057
20076
  } from "@raystack/apsara";
20058
20077
 
20059
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-XZgHoRgI9Vtp/sdk/admin/views/organizations/details/projects/members/members.module.css.js
20060
- var digest67 = "ed9e9874e0f9f5ac067fd9e9c992ccf2fdbd2dfcf95770c8ef46e537c9edc59d";
20078
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-Y562EAVcrXyV/sdk/admin/views/organizations/details/projects/members/members.module.css.js
20079
+ var digest67 = "62c93f5ac346b84fef6035cb103330542e8a03e3199459a47f45ee9a1924fa07";
20061
20080
  var css67 = `._flex1_1k2kc_1 {
20062
20081
  flex: 1;
20063
20082
  }
@@ -20591,8 +20610,8 @@ function OrganizationProjectsView() {
20591
20610
  // admin/views/organizations/details/invoices/index.tsx
20592
20611
  import { DataTable as DataTable23, EmptyState as EmptyState18, Flex as Flex80 } from "@raystack/apsara";
20593
20612
 
20594
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-TUC3xLvljBNE/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
20595
- var digest68 = "6a5f9936efc488ecf5ecf100bb57e55bfb0e6672052ca0d437effa679cdd08a6";
20613
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-Dqh2nYLiAPsD/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
20614
+ var digest68 = "abd3492e2c1165cad1faba59262ee77c785d15fe5dafe256e5324b865b4c378d";
20596
20615
  var css68 = `._empty-state_ct7gw_1 {
20597
20616
  height: 100%;
20598
20617
  }
@@ -20638,8 +20657,8 @@ var invoices_module_css_default3 = { "empty-state": "_empty-state_ct7gw_1", "emp
20638
20657
  // admin/views/organizations/details/invoices/index.tsx
20639
20658
  import { useContext as useContext22, useEffect as useEffect17, useMemo as useMemo15, useState as useState35 } from "react";
20640
20659
 
20641
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-heEhU0ATTQZH/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
20642
- var digest69 = "95d83e4515d409acdb1b3cdfa6201f997e152ec485e65f437ada418bfb9dd3a7";
20660
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-lZVlZ9EKKqZv/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
20661
+ var digest69 = "a007d633a019384735dd90116a7cca05024f0035896276d9a304ff9715eacbd5";
20643
20662
  var css69 = `._empty-state_ct7gw_1 {
20644
20663
  height: 100%;
20645
20664
  }
@@ -20900,8 +20919,8 @@ function OrganizationInvoicesView() {
20900
20919
  // admin/views/organizations/details/tokens/index.tsx
20901
20920
  import { DataTable as DataTable24, EmptyState as EmptyState19, Flex as Flex82 } from "@raystack/apsara";
20902
20921
 
20903
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-LIC8019Tc5FJ/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
20904
- var digest70 = "c95d70a60917da1bf072effb2ea3bb603f5e1afea68f6866e36f5ae2863db8a6";
20922
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-g6jNMX0MwX2b/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
20923
+ var digest70 = "37aaf4f00e69eacb783a4c439143e5f903aeada31464ebaa832dcdeee096abec";
20905
20924
  var css70 = `._empty-state_1mf09_1 {
20906
20925
  height: 100%;
20907
20926
  }
@@ -20961,8 +20980,8 @@ import { useContext as useContext23, useEffect as useEffect18, useMemo as useMem
20961
20980
  import { FrontierServiceQueries as FrontierServiceQueries29 } from "@raystack/proton/frontier";
20962
20981
  import { useInfiniteQuery as useInfiniteQuery9 } from "@connectrpc/connect-query";
20963
20982
 
20964
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-8QWLCLL42crX/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
20965
- var digest71 = "ac76f9c59097f9ce515d209205bfa256192bf0d83696bfc2636eb3e90c82ede0";
20983
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-9pfwwU5YUC2F/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
20984
+ var digest71 = "1affb6899169d867722c4975da9754c31519ed805ac06b4dde0807b85122dbae";
20966
20985
  var css71 = `._empty-state_1mf09_1 {
20967
20986
  height: 100%;
20968
20987
  }
@@ -21237,8 +21256,8 @@ function OrganizationTokensView() {
21237
21256
  // admin/views/organizations/details/apis/index.tsx
21238
21257
  import { DataTable as DataTable25, EmptyState as EmptyState20, Flex as Flex84 } from "@raystack/apsara";
21239
21258
 
21240
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-YMUlJLCjxYde/sdk/admin/views/organizations/details/apis/apis.module.css.js
21241
- var digest72 = "74b1f53369553a2503f03d0bd55b19fd11d7b4387e7c003459994c1ddd614556";
21259
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-5qjsSSxdehu2/sdk/admin/views/organizations/details/apis/apis.module.css.js
21260
+ var digest72 = "cbe57f5a8293b6b57b9378eb289a053aba8494bb3aa2bced80382b46a8549efe";
21242
21261
  var css72 = `._empty-state_r9k2f_1 {
21243
21262
  height: 100%;
21244
21263
  }
@@ -21323,8 +21342,8 @@ import { useCallback as useCallback16, useContext as useContext24, useEffect as
21323
21342
  import { Text as Text58 } from "@raystack/apsara";
21324
21343
  import dayjs16 from "dayjs";
21325
21344
 
21326
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-GLOMKmjmYK79/sdk/admin/views/organizations/details/apis/apis.module.css.js
21327
- var digest73 = "a998862cf8ab2acbd97847b820aa0e15b3ef30ae9917772fa5d4f8bbec041634";
21345
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-iubvKv7tIDq5/sdk/admin/views/organizations/details/apis/apis.module.css.js
21346
+ var digest73 = "df3e9dfe5b2169fb092f23a1fd9278af19dcd1aec4fbd2d12639689612fbb5fa";
21328
21347
  var css73 = `._empty-state_r9k2f_1 {
21329
21348
  height: 100%;
21330
21349
  }
@@ -21448,8 +21467,8 @@ function getColumns17(options) {
21448
21467
  // admin/views/organizations/details/apis/details-dialog.tsx
21449
21468
  import { Dialog as Dialog19, Flex as Flex83, Skeleton as Skeleton4, Tabs, Text as Text59, toast as toast20 } from "@raystack/apsara";
21450
21469
 
21451
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2217-gYcLLIbq2gxr/sdk/admin/views/organizations/details/apis/apis.module.css.js
21452
- var digest74 = "6c673473e62734fff36d7fbd2121143f3f0ec76828ec2b22f1273b145d991175";
21470
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-5PYwf0dfNFor/sdk/admin/views/organizations/details/apis/apis.module.css.js
21471
+ var digest74 = "1a98b142ee3590ebc0cbce12354b61655544120023830ca3a40c85ef60fd285c";
21453
21472
  var css74 = `._empty-state_r9k2f_1 {
21454
21473
  height: 100%;
21455
21474
  }
@@ -21824,6 +21843,657 @@ function OrganizationApisView() {
21824
21843
  )
21825
21844
  ] });
21826
21845
  }
21846
+
21847
+ // admin/views/organizations/details/pat/index.tsx
21848
+ import { DataTable as DataTable26, EmptyState as EmptyState21, Flex as Flex87 } from "@raystack/apsara";
21849
+ import { useCallback as useCallback17, useContext as useContext25, useEffect as useEffect21, useMemo as useMemo20, useState as useState38 } from "react";
21850
+ import { useInfiniteQuery as useInfiniteQuery11, useQuery as useQuery22 } from "@connectrpc/connect-query";
21851
+ import {
21852
+ AdminServiceQueries as AdminServiceQueries24,
21853
+ FrontierServiceQueries as FrontierServiceQueries32
21854
+ } from "@raystack/proton/frontier";
21855
+
21856
+ // admin/views/organizations/details/pat/columns.tsx
21857
+ import {
21858
+ Avatar as Avatar15,
21859
+ Flex as Flex85,
21860
+ getAvatarColor as getAvatarColor13,
21861
+ Text as Text60
21862
+ } from "@raystack/apsara";
21863
+ import dayjs17 from "dayjs";
21864
+ import relativeTime2 from "dayjs/plugin/relativeTime";
21865
+
21866
+ // utils/index.ts
21867
+ var getInitials = function(name = "") {
21868
+ var names = name.split(" "), initials = names[0].substring(0, 1).toUpperCase();
21869
+ if (names.length > 1) {
21870
+ initials += names[names.length - 1].substring(0, 1).toUpperCase();
21871
+ }
21872
+ return initials;
21873
+ };
21874
+
21875
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-YmZNfidY8Mfi/sdk/admin/views/organizations/details/pat/pat.module.css.js
21876
+ var digest75 = "52b4dd83a16d8c6540f4c964165e7c6262836bd28a540b5ba7f812115df2803b";
21877
+ var css75 = `._empty-state_hnhtj_1 {
21878
+ height: 100%;
21879
+ }
21880
+
21881
+ ._zero-state-container_hnhtj_5 {
21882
+ padding: var(--rs-space-10);
21883
+ }
21884
+
21885
+ ._empty-state-subheading_hnhtj_9 {
21886
+ max-width: 360px;
21887
+ text-wrap: auto;
21888
+ }
21889
+
21890
+ ._table_hnhtj_14 {
21891
+ width: 100%;
21892
+ table-layout: fixed;
21893
+ }
21894
+
21895
+ ._table-wrapper_hnhtj_19 {
21896
+ /* Navbar Height + Toolbar height */
21897
+ max-height: calc(100vh - 90px);
21898
+ overflow: scroll;
21899
+ }
21900
+
21901
+ ._table-header_hnhtj_25 {
21902
+ z-index: 2;
21903
+ }
21904
+
21905
+ ._first-column_hnhtj_29 {
21906
+ padding-left: var(--rs-space-7);
21907
+ }
21908
+
21909
+ ._truncate-cell_hnhtj_33 > * {
21910
+ width: 100%;
21911
+ min-width: 0;
21912
+ }
21913
+
21914
+ ._truncate-text_hnhtj_38 {
21915
+ display: block;
21916
+ overflow: hidden;
21917
+ text-overflow: ellipsis;
21918
+ white-space: nowrap;
21919
+ }
21920
+ `;
21921
+ (function() {
21922
+ if (typeof document === "undefined") {
21923
+ return;
21924
+ }
21925
+ if (!document.getElementById(digest75)) {
21926
+ var el = document.createElement("style");
21927
+ el.id = digest75;
21928
+ el.textContent = css75;
21929
+ document.head.appendChild(el);
21930
+ }
21931
+ })();
21932
+ var pat_module_css_default = { "empty-state": "_empty-state_hnhtj_1", "emptyState": "_empty-state_hnhtj_1", "zero-state-container": "_zero-state-container_hnhtj_5", "zeroStateContainer": "_zero-state-container_hnhtj_5", "empty-state-subheading": "_empty-state-subheading_hnhtj_9", "emptyStateSubheading": "_empty-state-subheading_hnhtj_9", "table": "_table_hnhtj_14", "table-wrapper": "_table-wrapper_hnhtj_19", "tableWrapper": "_table-wrapper_hnhtj_19", "table-header": "_table-header_hnhtj_25", "tableHeader": "_table-header_hnhtj_25", "first-column": "_first-column_hnhtj_29", "firstColumn": "_first-column_hnhtj_29", "truncate-cell": "_truncate-cell_hnhtj_33", "truncateCell": "_truncate-cell_hnhtj_33", "truncate-text": "_truncate-text_hnhtj_38", "truncateText": "_truncate-text_hnhtj_38" };
21933
+
21934
+ // admin/views/organizations/details/pat/columns.tsx
21935
+ import { jsx as jsx116, jsxs as jsxs89 } from "react/jsx-runtime";
21936
+ dayjs17.extend(relativeTime2);
21937
+ var DATE_FORMAT = "DD MMM YYYY";
21938
+ function getColumns18({
21939
+ projectsMap
21940
+ }) {
21941
+ return [
21942
+ {
21943
+ accessorKey: "title",
21944
+ header: "Title",
21945
+ classNames: {
21946
+ cell: pat_module_css_default["first-column"],
21947
+ header: pat_module_css_default["first-column"]
21948
+ },
21949
+ cell: ({ getValue }) => {
21950
+ const value = getValue() || "";
21951
+ return /* @__PURE__ */ jsx116(Text60, { className: pat_module_css_default["truncate-text"], children: value });
21952
+ },
21953
+ enableSorting: true,
21954
+ enableColumnFilter: true
21955
+ },
21956
+ {
21957
+ accessorKey: "scopes",
21958
+ header: "Project",
21959
+ classNames: { cell: pat_module_css_default["truncate-cell"] },
21960
+ enableSorting: false,
21961
+ cell: ({ row }) => {
21962
+ const projectScope = row.original.scopes?.find(
21963
+ (scope) => scope.resourceType === SCOPES.PROJECT
21964
+ );
21965
+ const resourceIds = projectScope?.resourceIds ?? [];
21966
+ if (resourceIds.length === 0) {
21967
+ return /* @__PURE__ */ jsx116(Text60, { className: pat_module_css_default["truncate-text"], children: "-" });
21968
+ }
21969
+ const projectNamesText = resourceIds.map(
21970
+ (id) => projectsMap[id]?.title || projectsMap[id]?.name || id
21971
+ ).join(", ");
21972
+ return /* @__PURE__ */ jsx116(Text60, { className: pat_module_css_default["truncate-text"], children: projectNamesText });
21973
+ }
21974
+ },
21975
+ {
21976
+ accessorKey: "createdBy",
21977
+ header: "Created By",
21978
+ enableSorting: false,
21979
+ enableColumnFilter: true,
21980
+ enableHiding: true,
21981
+ cell: ({ row }) => {
21982
+ const createdBy = row.original.createdBy;
21983
+ const userId = createdBy?.id || "";
21984
+ const title = createdBy?.title || createdBy?.email || userId || "-";
21985
+ const avatarColor = getAvatarColor13(userId);
21986
+ return /* @__PURE__ */ jsxs89(Flex85, { gap: 4, align: "center", children: [
21987
+ /* @__PURE__ */ jsx116(Avatar15, { fallback: getInitials(title), color: avatarColor }),
21988
+ /* @__PURE__ */ jsx116(Text60, { className: pat_module_css_default["truncate-text"], children: title })
21989
+ ] });
21990
+ }
21991
+ },
21992
+ {
21993
+ accessorKey: "createdAt",
21994
+ header: "Created On",
21995
+ styles: { header: { width: "152px" } },
21996
+ cell: ({ row }) => {
21997
+ const date = timestampToDayjs(row.original.createdAt);
21998
+ return date ? /* @__PURE__ */ jsx116(Text60, { children: date.format(DATE_FORMAT) }) : /* @__PURE__ */ jsx116(Text60, { children: "-" });
21999
+ },
22000
+ enableSorting: true,
22001
+ enableColumnFilter: true,
22002
+ filterType: "date",
22003
+ enableHiding: true
22004
+ },
22005
+ {
22006
+ accessorKey: "expiresAt",
22007
+ header: "Expiry Date",
22008
+ styles: { header: { width: "152px" } },
22009
+ cell: ({ row }) => {
22010
+ const expiresAt = row.original.expiresAt;
22011
+ if (!expiresAt || isNullTimestamp(expiresAt))
22012
+ return /* @__PURE__ */ jsx116(Text60, { children: "-" });
22013
+ const date = timestampToDayjs(expiresAt);
22014
+ return date ? /* @__PURE__ */ jsx116(Text60, { children: date.format(DATE_FORMAT) }) : /* @__PURE__ */ jsx116(Text60, { children: "-" });
22015
+ },
22016
+ enableSorting: true,
22017
+ enableColumnFilter: true,
22018
+ filterType: "date",
22019
+ enableHiding: true
22020
+ },
22021
+ {
22022
+ accessorKey: "usedAt",
22023
+ header: "Last used",
22024
+ styles: { header: { width: "152px" } },
22025
+ enableSorting: false,
22026
+ enableColumnFilter: true,
22027
+ filterType: "date",
22028
+ enableHiding: true,
22029
+ cell: ({ row }) => {
22030
+ const usedAt = row.original.usedAt;
22031
+ if (!usedAt || isNullTimestamp(usedAt))
22032
+ return /* @__PURE__ */ jsx116(Text60, { children: "-" });
22033
+ const date = timestampToDayjs(usedAt);
22034
+ return date ? /* @__PURE__ */ jsx116(Text60, { children: date.fromNow() }) : /* @__PURE__ */ jsx116(Text60, { children: "-" });
22035
+ }
22036
+ }
22037
+ ];
22038
+ }
22039
+
22040
+ // admin/views/organizations/details/pat/components/pat-details-dialog.tsx
22041
+ import { useMemo as useMemo19 } from "react";
22042
+ import {
22043
+ Dialog as Dialog20,
22044
+ Flex as Flex86,
22045
+ Skeleton as Skeleton5,
22046
+ Tabs as Tabs2,
22047
+ Text as Text61
22048
+ } from "@raystack/apsara";
22049
+ import { useQuery as useQuery21 } from "@connectrpc/connect-query";
22050
+ import {
22051
+ FrontierServiceQueries as FrontierServiceQueries31
22052
+ } from "@raystack/proton/frontier";
22053
+
22054
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-2xJTPbldu6Sz/sdk/admin/views/organizations/details/pat/components/pat-details-dialog.module.css.js
22055
+ var digest76 = "ded638bf735e2e5ae567575abe1488bc6d0778553d5d653d82b29126c24dc5e9";
22056
+ var css76 = `._details-dialog_1dwlo_1 {
22057
+ width: 100%;
22058
+ max-width: 400px;
22059
+ height: 500px;
22060
+ display: flex;
22061
+ flex-direction: column;
22062
+ }
22063
+
22064
+ ._dialog-body_1dwlo_9 {
22065
+ flex: 1;
22066
+ overflow: hidden;
22067
+ }
22068
+
22069
+ ._tab-root_1dwlo_14 {
22070
+ gap: var(--rs-space-2);
22071
+ height: 100%;
22072
+ display: flex;
22073
+ flex-direction: column;
22074
+ }
22075
+
22076
+ ._tab-content_1dwlo_21 {
22077
+ flex: 1;
22078
+ min-height: 0;
22079
+ overflow: auto;
22080
+ }
22081
+
22082
+ ._list-item_1dwlo_27 {
22083
+ padding: var(--rs-space-5) 0;
22084
+ border-bottom: 0.5px solid var(--rs-color-border-base-primary);
22085
+ }
22086
+
22087
+ ._list-item_1dwlo_27:last-child {
22088
+ border-bottom: none;
22089
+ }
22090
+
22091
+ ._list-item-text_1dwlo_36 {
22092
+ display: block;
22093
+ overflow: hidden;
22094
+ text-overflow: ellipsis;
22095
+ white-space: nowrap;
22096
+ }
22097
+
22098
+ ._skeleton_1dwlo_43 {
22099
+ flex: 1;
22100
+ padding: var(--rs-space-5) 0;
22101
+ }
22102
+
22103
+ ._empty-state_1dwlo_48 {
22104
+ height: 200px;
22105
+ }
22106
+ `;
22107
+ (function() {
22108
+ if (typeof document === "undefined") {
22109
+ return;
22110
+ }
22111
+ if (!document.getElementById(digest76)) {
22112
+ var el = document.createElement("style");
22113
+ el.id = digest76;
22114
+ el.textContent = css76;
22115
+ document.head.appendChild(el);
22116
+ }
22117
+ })();
22118
+ var pat_details_dialog_module_css_default = { "details-dialog": "_details-dialog_1dwlo_1", "detailsDialog": "_details-dialog_1dwlo_1", "dialog-body": "_dialog-body_1dwlo_9", "dialogBody": "_dialog-body_1dwlo_9", "tab-root": "_tab-root_1dwlo_14", "tabRoot": "_tab-root_1dwlo_14", "tab-content": "_tab-content_1dwlo_21", "tabContent": "_tab-content_1dwlo_21", "list-item": "_list-item_1dwlo_27", "listItem": "_list-item_1dwlo_27", "list-item-text": "_list-item-text_1dwlo_36", "listItemText": "_list-item-text_1dwlo_36", "skeleton": "_skeleton_1dwlo_43", "empty-state": "_empty-state_1dwlo_48", "emptyState": "_empty-state_1dwlo_48" };
22119
+
22120
+ // admin/views/organizations/details/pat/components/pat-details-dialog.tsx
22121
+ import { jsx as jsx117, jsxs as jsxs90 } from "react/jsx-runtime";
22122
+ function PatDetailsDialog({
22123
+ pat,
22124
+ projectsMap,
22125
+ onClose
22126
+ }) {
22127
+ const t = useTerminology();
22128
+ const open = pat !== null;
22129
+ const projectScope = useMemo19(
22130
+ () => pat?.scopes?.find((s) => s.resourceType === SCOPES.PROJECT),
22131
+ [pat]
22132
+ );
22133
+ const orgScope = useMemo19(
22134
+ () => pat?.scopes?.find((s) => s.resourceType === SCOPES.ORG),
22135
+ [pat]
22136
+ );
22137
+ const scopeProjectIds = useMemo19(() => projectScope?.resourceIds ?? [], [projectScope]);
22138
+ const scopeProjects = useMemo19(
22139
+ () => scopeProjectIds.map((id) => projectsMap[id]).filter((p) => Boolean(p)),
22140
+ [scopeProjectIds, projectsMap]
22141
+ );
22142
+ const { data: rolesData, isLoading: isRolesLoading } = useQuery21(
22143
+ FrontierServiceQueries31.listRolesForPAT,
22144
+ { scopes: [SCOPES.ORG, SCOPES.PROJECT] },
22145
+ { enabled: open }
22146
+ );
22147
+ const rolesMap = useMemo19(() => {
22148
+ const map = {};
22149
+ (rolesData?.roles ?? []).forEach((role) => {
22150
+ if (role.id)
22151
+ map[role.id] = role;
22152
+ });
22153
+ return map;
22154
+ }, [rolesData]);
22155
+ const orgRole = orgScope?.roleId ? rolesMap[orgScope.roleId] : void 0;
22156
+ const projectRole = projectScope?.roleId ? rolesMap[projectScope.roleId] : void 0;
22157
+ const projectCount = scopeProjects.length;
22158
+ const roleEntries = [
22159
+ ...orgScope ? [
22160
+ {
22161
+ id: `org-${orgScope.roleId}`,
22162
+ roleTitle: orgRole?.title || orgRole?.name || orgScope.roleId,
22163
+ scopeLabel: t.organization({ case: "capital" })
22164
+ }
22165
+ ] : [],
22166
+ ...projectScope ? [
22167
+ {
22168
+ id: `project-${projectScope.roleId}`,
22169
+ roleTitle: projectRole?.title || projectRole?.name || projectScope.roleId,
22170
+ scopeLabel: t.project({ plural: true, case: "capital" })
22171
+ }
22172
+ ] : []
22173
+ ];
22174
+ const onOpenChange = (val) => {
22175
+ if (!val)
22176
+ onClose();
22177
+ };
22178
+ return /* @__PURE__ */ jsx117(Dialog20, { open, onOpenChange, children: /* @__PURE__ */ jsxs90(Dialog20.Content, { className: pat_details_dialog_module_css_default["details-dialog"], children: [
22179
+ /* @__PURE__ */ jsxs90(Dialog20.Header, { children: [
22180
+ /* @__PURE__ */ jsx117(Dialog20.Title, { children: pat?.title || "" }),
22181
+ /* @__PURE__ */ jsx117(Dialog20.CloseButton, { "data-test-id": "frontier-sdk-pat-details-dialog-close-btn" })
22182
+ ] }),
22183
+ /* @__PURE__ */ jsx117(Dialog20.Body, { className: pat_details_dialog_module_css_default["dialog-body"], children: /* @__PURE__ */ jsxs90(Tabs2, { defaultValue: "projects", className: pat_details_dialog_module_css_default["tab-root"], children: [
22184
+ /* @__PURE__ */ jsxs90(Tabs2.List, { children: [
22185
+ /* @__PURE__ */ jsxs90(Tabs2.Trigger, { value: "projects", children: [
22186
+ t.project({ plural: true, case: "capital" }),
22187
+ " (",
22188
+ projectCount,
22189
+ ")"
22190
+ ] }),
22191
+ /* @__PURE__ */ jsxs90(Tabs2.Trigger, { value: "roles", children: [
22192
+ "Roles (",
22193
+ roleEntries.length,
22194
+ ")"
22195
+ ] })
22196
+ ] }),
22197
+ /* @__PURE__ */ jsx117(Tabs2.Content, { value: "projects", className: pat_details_dialog_module_css_default["tab-content"], children: scopeProjects.length === 0 ? null : /* @__PURE__ */ jsx117(Flex86, { direction: "column", children: scopeProjects.map((project) => /* @__PURE__ */ jsx117("div", { className: pat_details_dialog_module_css_default["list-item"], children: /* @__PURE__ */ jsx117(
22198
+ Text61,
22199
+ {
22200
+ size: "small",
22201
+ weight: "medium",
22202
+ className: pat_details_dialog_module_css_default["list-item-text"],
22203
+ children: project.title || project.name
22204
+ }
22205
+ ) }, project.id)) }) }),
22206
+ /* @__PURE__ */ jsx117(Tabs2.Content, { value: "roles", className: pat_details_dialog_module_css_default["tab-content"], children: isRolesLoading ? /* @__PURE__ */ jsx117(
22207
+ Skeleton5,
22208
+ {
22209
+ containerClassName: pat_details_dialog_module_css_default["skeleton"],
22210
+ height: 20,
22211
+ count: 4
22212
+ }
22213
+ ) : roleEntries.length === 0 ? null : /* @__PURE__ */ jsx117(Flex86, { direction: "column", children: roleEntries.map((entry) => /* @__PURE__ */ jsxs90(
22214
+ Flex86,
22215
+ {
22216
+ direction: "column",
22217
+ gap: 2,
22218
+ className: pat_details_dialog_module_css_default["list-item"],
22219
+ children: [
22220
+ /* @__PURE__ */ jsx117(
22221
+ Text61,
22222
+ {
22223
+ size: "small",
22224
+ weight: "medium",
22225
+ className: pat_details_dialog_module_css_default["list-item-text"],
22226
+ children: entry.roleTitle
22227
+ }
22228
+ ),
22229
+ /* @__PURE__ */ jsx117(
22230
+ Text61,
22231
+ {
22232
+ size: "micro",
22233
+ variant: "tertiary",
22234
+ className: pat_details_dialog_module_css_default["list-item-text"],
22235
+ children: entry.scopeLabel
22236
+ }
22237
+ )
22238
+ ]
22239
+ },
22240
+ entry.id
22241
+ )) }) })
22242
+ ] }) })
22243
+ ] }) });
22244
+ }
22245
+
22246
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-3100-MsFO30q7WsP7/sdk/admin/views/organizations/details/pat/pat.module.css.js
22247
+ var digest77 = "7bd41c4e3f22cfd9c21ae488c89b99e05b1c8cd9fefb07a7f9c06c71962f74d2";
22248
+ var css77 = `._empty-state_hnhtj_1 {
22249
+ height: 100%;
22250
+ }
22251
+
22252
+ ._zero-state-container_hnhtj_5 {
22253
+ padding: var(--rs-space-10);
22254
+ }
22255
+
22256
+ ._empty-state-subheading_hnhtj_9 {
22257
+ max-width: 360px;
22258
+ text-wrap: auto;
22259
+ }
22260
+
22261
+ ._table_hnhtj_14 {
22262
+ width: 100%;
22263
+ table-layout: fixed;
22264
+ }
22265
+
22266
+ ._table-wrapper_hnhtj_19 {
22267
+ /* Navbar Height + Toolbar height */
22268
+ max-height: calc(100vh - 90px);
22269
+ overflow: scroll;
22270
+ }
22271
+
22272
+ ._table-header_hnhtj_25 {
22273
+ z-index: 2;
22274
+ }
22275
+
22276
+ ._first-column_hnhtj_29 {
22277
+ padding-left: var(--rs-space-7);
22278
+ }
22279
+
22280
+ ._truncate-cell_hnhtj_33 > * {
22281
+ width: 100%;
22282
+ min-width: 0;
22283
+ }
22284
+
22285
+ ._truncate-text_hnhtj_38 {
22286
+ display: block;
22287
+ overflow: hidden;
22288
+ text-overflow: ellipsis;
22289
+ white-space: nowrap;
22290
+ }
22291
+ `;
22292
+ (function() {
22293
+ if (typeof document === "undefined") {
22294
+ return;
22295
+ }
22296
+ if (!document.getElementById(digest77)) {
22297
+ var el = document.createElement("style");
22298
+ el.id = digest77;
22299
+ el.textContent = css77;
22300
+ document.head.appendChild(el);
22301
+ }
22302
+ })();
22303
+ var pat_module_css_default2 = { "empty-state": "_empty-state_hnhtj_1", "emptyState": "_empty-state_hnhtj_1", "zero-state-container": "_zero-state-container_hnhtj_5", "zeroStateContainer": "_zero-state-container_hnhtj_5", "empty-state-subheading": "_empty-state-subheading_hnhtj_9", "emptyStateSubheading": "_empty-state-subheading_hnhtj_9", "table": "_table_hnhtj_14", "table-wrapper": "_table-wrapper_hnhtj_19", "tableWrapper": "_table-wrapper_hnhtj_19", "table-header": "_table-header_hnhtj_25", "tableHeader": "_table-header_hnhtj_25", "first-column": "_first-column_hnhtj_29", "firstColumn": "_first-column_hnhtj_29", "truncate-cell": "_truncate-cell_hnhtj_33", "truncateCell": "_truncate-cell_hnhtj_33", "truncate-text": "_truncate-text_hnhtj_38", "truncateText": "_truncate-text_hnhtj_38" };
22304
+
22305
+ // admin/views/organizations/details/pat/index.tsx
22306
+ import { jsx as jsx118, jsxs as jsxs91 } from "react/jsx-runtime";
22307
+ var DEFAULT_SORT10 = { name: "createdAt", order: "desc" };
22308
+ var INITIAL_QUERY11 = {
22309
+ offset: 0,
22310
+ limit: DEFAULT_PAGE_SIZE
22311
+ };
22312
+ var TRANSFORM_OPTIONS7 = {
22313
+ fieldNameMapping: {
22314
+ createdAt: "created_at",
22315
+ updatedAt: "updated_at",
22316
+ expiresAt: "expires_at",
22317
+ usedAt: "used_at",
22318
+ createdBy: "created_by_title"
22319
+ }
22320
+ };
22321
+ var NoPats = () => {
22322
+ return /* @__PURE__ */ jsx118(
22323
+ EmptyState21,
22324
+ {
22325
+ classNames: {
22326
+ container: pat_module_css_default2["empty-state"],
22327
+ subHeading: pat_module_css_default2["empty-state-subheading"]
22328
+ },
22329
+ heading: "No PAT found",
22330
+ subHeading: "We couldn't find any matches for that keyword. Try alternative terms or check for typos.",
22331
+ icon: /* @__PURE__ */ jsx118(LockClosedIcon, {})
22332
+ }
22333
+ );
22334
+ };
22335
+ var ZeroState = () => {
22336
+ return /* @__PURE__ */ jsx118("div", { className: pat_module_css_default2["zero-state-container"], children: /* @__PURE__ */ jsx118(
22337
+ EmptyState21,
22338
+ {
22339
+ variant: "empty2",
22340
+ icon: /* @__PURE__ */ jsx118(LockClosedIcon, {}),
22341
+ heading: "PAT",
22342
+ subHeading: "Personal access tokens (PATs) provide programmatic access to organization resources via the API on behalf of a user."
22343
+ }
22344
+ ) });
22345
+ };
22346
+ var ErrorState6 = () => {
22347
+ return /* @__PURE__ */ jsx118(
22348
+ EmptyState21,
22349
+ {
22350
+ classNames: {
22351
+ container: pat_module_css_default2["empty-state"],
22352
+ subHeading: pat_module_css_default2["empty-state-subheading"]
22353
+ },
22354
+ heading: "Error Loading Personal Access Tokens",
22355
+ subHeading: "Something went wrong while loading personal access tokens. Please try refreshing the page.",
22356
+ icon: /* @__PURE__ */ jsx118(ExclamationTriangleIcon, {})
22357
+ }
22358
+ );
22359
+ };
22360
+ function OrganizationPatView() {
22361
+ const t = useTerminology();
22362
+ const { organization, search } = useContext25(OrganizationContext);
22363
+ const organizationId = organization?.id || "";
22364
+ const {
22365
+ onChange: onSearchChange,
22366
+ setVisibility: setSearchVisibility,
22367
+ query: searchQuery
22368
+ } = search;
22369
+ const [tableQuery, setTableQuery] = useState38(INITIAL_QUERY11);
22370
+ const [selectedPat, setSelectedPat] = useState38(null);
22371
+ const title = `PAT | ${organization?.title} | ${t.organization({ plural: true, case: "capital" })}`;
22372
+ const computedQuery = useMemo20(() => {
22373
+ const tempQuery = transformDataTableQueryToRQLRequest(
22374
+ tableQuery,
22375
+ TRANSFORM_OPTIONS7
22376
+ );
22377
+ return {
22378
+ ...tempQuery,
22379
+ search: searchQuery || ""
22380
+ };
22381
+ }, [tableQuery, searchQuery]);
22382
+ const [query] = useDebounceValue(computedQuery, 200);
22383
+ const {
22384
+ data: infiniteData,
22385
+ isLoading,
22386
+ isFetchingNextPage,
22387
+ fetchNextPage,
22388
+ hasNextPage,
22389
+ isError
22390
+ } = useInfiniteQuery11(
22391
+ AdminServiceQueries24.searchOrganizationPATs,
22392
+ { orgId: organizationId, query },
22393
+ {
22394
+ enabled: !!organizationId,
22395
+ pageParamKey: "query",
22396
+ getNextPageParam: (lastPage) => getConnectNextPageParam(lastPage, { query }, "organizationPats"),
22397
+ staleTime: 0,
22398
+ refetchOnWindowFocus: false,
22399
+ retry: 1,
22400
+ retryDelay: 1e3
22401
+ }
22402
+ );
22403
+ const { data: projects = [] } = useQuery22(
22404
+ FrontierServiceQueries32.listOrganizationProjects,
22405
+ { id: organizationId, state: "", withMemberCount: false },
22406
+ {
22407
+ enabled: !!organizationId,
22408
+ select: (data2) => data2?.projects || []
22409
+ }
22410
+ );
22411
+ const projectsMap = useMemo20(
22412
+ () => projects.reduce(
22413
+ (acc, project) => {
22414
+ if (project.id)
22415
+ acc[project.id] = project;
22416
+ return acc;
22417
+ },
22418
+ {}
22419
+ ),
22420
+ [projects]
22421
+ );
22422
+ const data = useMemo20(
22423
+ () => infiniteData?.pages?.flatMap((page) => page?.organizationPats ?? []) ?? [],
22424
+ [infiniteData]
22425
+ );
22426
+ const loading = (isLoading || isFetchingNextPage) && !isError;
22427
+ const hasActiveQuery = Boolean(query.search || query.filters?.length);
22428
+ const showZeroState = !isLoading && !isError && !hasActiveQuery && data.length === 0;
22429
+ const onTableQueryChange = (newQuery) => {
22430
+ setTableQuery(newQuery);
22431
+ };
22432
+ const fetchMore = async () => {
22433
+ if (hasNextPage && !isFetchingNextPage && !isError) {
22434
+ await fetchNextPage();
22435
+ }
22436
+ };
22437
+ useEffect21(() => {
22438
+ setSearchVisibility(true);
22439
+ return () => {
22440
+ onSearchChange("");
22441
+ setSearchVisibility(false);
22442
+ };
22443
+ }, [setSearchVisibility, onSearchChange]);
22444
+ const columns = useMemo20(
22445
+ () => getColumns18({ projectsMap }),
22446
+ [projectsMap]
22447
+ );
22448
+ const onRowClick = useCallback17(
22449
+ (row) => {
22450
+ setSelectedPat(row);
22451
+ },
22452
+ []
22453
+ );
22454
+ const onDialogClose = useCallback17(() => {
22455
+ setSelectedPat(null);
22456
+ }, []);
22457
+ return /* @__PURE__ */ jsxs91(Flex87, { justify: "center", children: [
22458
+ /* @__PURE__ */ jsx118(PageTitle, { title }),
22459
+ /* @__PURE__ */ jsx118(
22460
+ PatDetailsDialog,
22461
+ {
22462
+ pat: selectedPat,
22463
+ projectsMap,
22464
+ onClose: onDialogClose
22465
+ }
22466
+ ),
22467
+ /* @__PURE__ */ jsx118(
22468
+ DataTable26,
22469
+ {
22470
+ columns,
22471
+ data,
22472
+ isLoading: loading,
22473
+ defaultSort: DEFAULT_SORT10,
22474
+ mode: "server",
22475
+ onTableQueryChange,
22476
+ onLoadMore: fetchMore,
22477
+ onRowClick,
22478
+ query: tableQuery,
22479
+ children: /* @__PURE__ */ jsxs91(Flex87, { direction: "column", style: { width: "100%" }, children: [
22480
+ /* @__PURE__ */ jsx118(DataTable26.Toolbar, {}),
22481
+ /* @__PURE__ */ jsx118(
22482
+ DataTable26.Content,
22483
+ {
22484
+ emptyState: showZeroState ? /* @__PURE__ */ jsx118(ZeroState, {}) : isError ? /* @__PURE__ */ jsx118(ErrorState6, {}) : /* @__PURE__ */ jsx118(NoPats, {}),
22485
+ classNames: {
22486
+ table: pat_module_css_default2["table"],
22487
+ root: pat_module_css_default2["table-wrapper"],
22488
+ header: pat_module_css_default2["table-header"]
22489
+ }
22490
+ }
22491
+ )
22492
+ ] })
22493
+ }
22494
+ )
22495
+ ] });
22496
+ }
21827
22497
  export {
21828
22498
  AdminConfigProvider,
21829
22499
  AdminsView,
@@ -21835,6 +22505,7 @@ export {
21835
22505
  OrganizationInvoicesView,
21836
22506
  OrganizationListView,
21837
22507
  OrganizationMembersView,
22508
+ OrganizationPatView,
21838
22509
  OrganizationProjectsView,
21839
22510
  OrganizationSecurity,
21840
22511
  OrganizationTokensView,