@raystack/frontier 0.110.0 → 0.112.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.
@@ -47,8 +47,8 @@ function convertBillingAddressToString(address) {
47
47
  // admin/views/roles/columns.tsx
48
48
  import { Flex } from "@raystack/apsara";
49
49
 
50
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-ALGzXBEhvUeq/sdk/admin/views/roles/roles.module.css.js
51
- var digest = "93ebbf08ec6d8b6260dce2fd3859690da98b5d368ce6c2919ff1a55e5cf48457";
50
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-kLIROMp0EJKa/sdk/admin/views/roles/roles.module.css.js
51
+ var digest = "4d075082664c51474aef3fe8891f50e6dbf791b8bb2e8ad230c1c17cedaca1bd";
52
52
  var css = `._tableRoot_1d549_1 {
53
53
  width: 100%;
54
54
  }
@@ -107,19 +107,22 @@ var getColumns = () => {
107
107
  cell: roles_module_css_default["first-column"],
108
108
  header: roles_module_css_default["first-column"]
109
109
  },
110
- filterVariant: "text",
110
+ filterType: "string",
111
+ enableColumnFilter: true,
111
112
  cell: ({ getValue }) => getValue()
112
113
  },
113
114
  {
114
115
  header: "Title",
115
116
  accessorKey: "title",
116
- filterVariant: "text",
117
+ filterType: "string",
118
+ enableColumnFilter: true,
117
119
  cell: (info) => info.getValue()
118
120
  },
119
121
  {
120
122
  header: "Name",
121
123
  accessorKey: "name",
122
- filterVariant: "text",
124
+ filterType: "string",
125
+ enableColumnFilter: true,
123
126
  cell: (info) => info.getValue()
124
127
  },
125
128
  {
@@ -548,8 +551,8 @@ var UploadIcon = /* @__PURE__ */ forwardRef(function(_ref, forwardedRef) {
548
551
  // admin/components/PageHeader.tsx
549
552
  import { Flex as Flex2, Text } from "@raystack/apsara";
550
553
 
551
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-qc245xzDiHf5/sdk/admin/components/page-header.module.css.js
552
- var digest2 = "9b5b17b7d8922687038bf5f7c9df9ed0e3658a531150d2b0c42b6ef70c03558a";
554
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-zTvpbnMk5ilC/sdk/admin/components/page-header.module.css.js
555
+ var digest2 = "361a3318336a7ea1daf50289eff46a2077230e7ce0f54b986f7c3f6e7adefc95";
553
556
  var css2 = `._breadcrumb_1kaun_1 {
554
557
  list-style: none;
555
558
  padding: 0;
@@ -671,8 +674,8 @@ function PageTitle({ title, appName }) {
671
674
  return null;
672
675
  }
673
676
 
674
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-VwmhhkbXNyQF/sdk/admin/views/roles/roles.module.css.js
675
- var digest3 = "7f2fe29d61c2258ea76acac8f23e9ea9459257cb122ff8d544a4edeba61a2807";
677
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-K0ZhK3eXJWrS/sdk/admin/views/roles/roles.module.css.js
678
+ var digest3 = "068d6977b982a59651f3d1aef03829106d12951f353b75f2666c2ec888a7813e";
676
679
  var css3 = `._tableRoot_1d549_1 {
677
680
  width: 100%;
678
681
  }
@@ -868,8 +871,8 @@ import { useState as useState3 } from "react";
868
871
  // admin/views/invoices/navbar.tsx
869
872
  import { DataTable as DataTable2, Flex as Flex6, IconButton, Text as Text4 } from "@raystack/apsara";
870
873
 
871
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-G64TM4o0XTDN/sdk/admin/views/invoices/invoices.module.css.js
872
- var digest4 = "b80d711c443ba01d0069e7dac347d1ec0ec9e2a8282e502624fece0fc4e784c6";
874
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-BQ9d2H5FerFn/sdk/admin/views/invoices/invoices.module.css.js
875
+ var digest4 = "d3bee1355e0575641814bf58840280be4cc24837ecf38378baf714c52db3b12b";
873
876
  var css4 = `._navbar_1o5oc_1 {
874
877
  padding: var(--rs-space-4) var(--rs-space-7);
875
878
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -987,8 +990,8 @@ var InvoicesNavabar = ({ searchQuery }) => {
987
990
  ] });
988
991
  };
989
992
 
990
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-2gzkxZYOJMn7/sdk/admin/views/invoices/invoices.module.css.js
991
- var digest5 = "a5c21255352a28102e29ea4aa3eac71e34a2b7025b1c09d5b5be773b8fe1f97c";
993
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-3ZIF9HVS7Kwj/sdk/admin/views/invoices/invoices.module.css.js
994
+ var digest5 = "85905c947e04582e50f2f3be992550b24f4a26d36a3eec37d819639371ce08d5";
992
995
  var css5 = `._navbar_1o5oc_1 {
993
996
  padding: var(--rs-space-4) var(--rs-space-7);
994
997
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -1042,7 +1045,6 @@ var invoices_module_css_default2 = { "navbar": "_navbar_1o5oc_1", "table": "_tab
1042
1045
 
1043
1046
  // admin/views/invoices/columns.tsx
1044
1047
  import { Amount, Link, Text as Text5 } from "@raystack/apsara";
1045
- import dayjs2 from "dayjs";
1046
1048
 
1047
1049
  // admin/utils/connect-timestamp.ts
1048
1050
  import { timestampDate } from "@bufbuild/protobuf/wkt";
@@ -1061,9 +1063,16 @@ function isNullTimestamp(timestamp) {
1061
1063
  return true;
1062
1064
  return Number(timestamp.seconds) <= 0;
1063
1065
  }
1066
+ var DATE_FORMAT = "DD MMM YYYY";
1067
+ function formatTimestamp(timestamp, format = DATE_FORMAT) {
1068
+ if (isNullTimestamp(timestamp))
1069
+ return "-";
1070
+ const date = timestampToDayjs(timestamp);
1071
+ return date ? date.format(format) : "-";
1072
+ }
1064
1073
 
1065
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-BVU4tQkSOdD8/sdk/admin/views/invoices/invoices.module.css.js
1066
- var digest6 = "2d508a6496321fef4e2e351aa5709f9acd4896a346dce7066ddaedd3e9e3406c";
1074
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-JATkRuU7PU0N/sdk/admin/views/invoices/invoices.module.css.js
1075
+ var digest6 = "346836a17cae02a58198090d100dbe2c1a88231f0e4bc992d8710838a89dbd25";
1067
1076
  var css6 = `._navbar_1o5oc_1 {
1068
1077
  padding: var(--rs-space-4) var(--rs-space-7);
1069
1078
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -1128,11 +1137,7 @@ var getColumns2 = ({ t }) => {
1128
1137
  },
1129
1138
  filterType: "date",
1130
1139
  enableColumnFilter: true,
1131
- cell: ({ getValue }) => {
1132
- const value = getValue();
1133
- const date = isNullTimestamp(value) ? "-" : dayjs2(timestampToDate(value)).format("YYYY-MM-DD");
1134
- return /* @__PURE__ */ jsx8(Text5, { children: date });
1135
- },
1140
+ cell: ({ getValue }) => /* @__PURE__ */ jsx8(Text5, { children: formatTimestamp(getValue()) }),
1136
1141
  enableHiding: true,
1137
1142
  enableSorting: true
1138
1143
  },
@@ -1224,7 +1229,7 @@ import {
1224
1229
  RQLSortSchema
1225
1230
  } from "@raystack/proton/frontier";
1226
1231
  import { create } from "@bufbuild/protobuf";
1227
- import dayjs3 from "dayjs";
1232
+ import dayjs2 from "dayjs";
1228
1233
  function convertFilterValue(value) {
1229
1234
  switch (typeof value) {
1230
1235
  case "boolean":
@@ -1238,7 +1243,7 @@ function convertFilterValue(value) {
1238
1243
  }
1239
1244
  }
1240
1245
  function transformDateFilter(filter, fieldName) {
1241
- const startOfDay = dayjs3(filter.value).startOf("day");
1246
+ const startOfDay = dayjs2(filter.value).startOf("day");
1242
1247
  if (filter.operator === "eq") {
1243
1248
  return [
1244
1249
  create(RQLFilterSchema, {
@@ -1521,8 +1526,8 @@ import { FrontierServiceQueries as FrontierServiceQueries2 } from "@raystack/pro
1521
1526
  // admin/views/products/columns.tsx
1522
1527
  import { Flex as Flex8, Image, Amount as Amount2 } from "@raystack/apsara";
1523
1528
 
1524
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-GlLKlkLNXgxi/sdk/admin/views/products/products.module.css.js
1525
- var digest7 = "04046f1c30233ca812fc48c3e4e2dfeffa1f38dde2807008faffe08172c475e9";
1529
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-uLIttVYdf0OG/sdk/admin/views/products/products.module.css.js
1530
+ var digest7 = "02777c48eb420aeda332fb7822de03ed4bbc4ecbfe29d2169c31f174dd47024a";
1526
1531
  var css7 = `._tableRoot_3ccjp_1 {
1527
1532
  width: 100%;
1528
1533
  }
@@ -1653,46 +1658,29 @@ var getColumns3 = (onNavigateToPrices) => {
1653
1658
  {
1654
1659
  header: "Product Id",
1655
1660
  accessorKey: "id",
1656
- filterVariant: "text",
1661
+ filterType: "string",
1662
+ enableColumnFilter: true,
1657
1663
  cell: (info) => info.getValue()
1658
1664
  },
1659
1665
  {
1660
1666
  header: "Created on",
1661
1667
  accessorKey: "createdAt",
1662
- cell: ({ getValue }) => {
1663
- const timestamp = getValue();
1664
- const date = timestampToDate(timestamp);
1665
- if (!date)
1666
- return "-";
1667
- return date.toLocaleString("en", {
1668
- month: "long",
1669
- day: "numeric",
1670
- year: "numeric"
1671
- });
1672
- },
1673
- filterVariant: "date"
1668
+ cell: ({ getValue }) => formatTimestamp(getValue()),
1669
+ filterType: "date",
1670
+ enableColumnFilter: true
1674
1671
  },
1675
1672
  {
1676
1673
  header: "Updated on",
1677
1674
  accessorKey: "updatedAt",
1678
- cell: ({ getValue }) => {
1679
- const timestamp = getValue();
1680
- const date = timestampToDate(timestamp);
1681
- if (!date)
1682
- return "-";
1683
- return date.toLocaleString("en", {
1684
- month: "long",
1685
- day: "numeric",
1686
- year: "numeric"
1687
- });
1688
- },
1689
- filterVariant: "date"
1675
+ cell: ({ getValue }) => formatTimestamp(getValue()),
1676
+ filterType: "date",
1677
+ enableColumnFilter: true
1690
1678
  }
1691
1679
  ];
1692
1680
  };
1693
1681
 
1694
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-G0WvP8MDuY8f/sdk/admin/views/products/products.module.css.js
1695
- var digest8 = "4f3d294f75c4b42f2e33217e06e992da26c4d00e8f30a75b49f0d604f1c9247f";
1682
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-M8Zz6J9J5wCL/sdk/admin/views/products/products.module.css.js
1683
+ var digest8 = "d2170c73decd6381ded69268378dc59f4f2e91ee0344eedea0d189c5fc9cd9ef";
1696
1684
  var css8 = `._tableRoot_3ccjp_1 {
1697
1685
  width: 100%;
1698
1686
  }
@@ -1749,8 +1737,8 @@ var products_module_css_default2 = { "tableRoot": "_tableRoot_3ccjp_1", "tableWr
1749
1737
  // admin/views/products/details.tsx
1750
1738
  import { Flex as Flex9, Text as Text6, Grid as Grid2, Drawer as Drawer2 } from "@raystack/apsara";
1751
1739
 
1752
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-XsOSozOBxn40/sdk/admin/views/products/products.module.css.js
1753
- var digest9 = "6dcfd360b46218627d3cc6578a7aa61088cdef1a69f03ee4bc5c4acff71d978e";
1740
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-aE1osCZI51bo/sdk/admin/views/products/products.module.css.js
1741
+ var digest9 = "ec9f8e922997036a571e30681445c1365e4dd869c32cf9fc0531b6c2b5889d53";
1754
1742
  var css9 = `._tableRoot_3ccjp_1 {
1755
1743
  width: 100%;
1756
1744
  }
@@ -1952,8 +1940,8 @@ import { FrontierServiceQueries as FrontierServiceQueries3 } from "@raystack/pro
1952
1940
  // admin/views/products/prices/columns.tsx
1953
1941
  import { Amount as Amount3 } from "@raystack/apsara";
1954
1942
 
1955
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-uPCRfcPXBoYP/sdk/admin/views/products/prices/prices.module.css.js
1956
- var digest10 = "31ee70763e99c3023c580a6373017a71026b197e3bb2b3845d8ad0f5f50cfda7";
1943
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-yl0rehhuDy7A/sdk/admin/views/products/prices/prices.module.css.js
1944
+ var digest10 = "3c14cb13ef25a87e265aff6c57de8490779013e317928ef84fe177acf55a8346";
1957
1945
  var css10 = `._first-column_6e56r_1 {
1958
1946
  padding-left: var(--rs-space-7);
1959
1947
  }
@@ -1983,31 +1971,36 @@ var getColumns4 = (prices) => {
1983
1971
  header: prices_module_css_default["first-column"]
1984
1972
  },
1985
1973
  cell: (info) => info.getValue(),
1986
- filterVariant: "text"
1974
+ filterType: "string",
1975
+ enableColumnFilter: true
1987
1976
  },
1988
1977
  {
1989
1978
  header: "name",
1990
1979
  accessorKey: "name",
1991
1980
  cell: (info) => info.getValue(),
1992
- filterVariant: "text"
1981
+ filterType: "string",
1982
+ enableColumnFilter: true
1993
1983
  },
1994
1984
  {
1995
1985
  header: "interval",
1996
1986
  accessorKey: "interval",
1997
1987
  cell: (info) => info.getValue(),
1998
- filterVariant: "text"
1988
+ filterType: "string",
1989
+ enableColumnFilter: true
1999
1990
  },
2000
1991
  {
2001
1992
  header: "Usage Type",
2002
1993
  accessorKey: "usageType",
2003
1994
  cell: (info) => info.getValue(),
2004
- filterVariant: "text"
1995
+ filterType: "string",
1996
+ enableColumnFilter: true
2005
1997
  },
2006
1998
  {
2007
1999
  header: "billing_scheme",
2008
2000
  accessorKey: "billingScheme",
2009
2001
  cell: (info) => info.getValue(),
2010
- filterVariant: "text"
2002
+ filterType: "string",
2003
+ enableColumnFilter: true
2011
2004
  },
2012
2005
  {
2013
2006
  header: "Amount",
@@ -2019,44 +2012,28 @@ var getColumns4 = (prices) => {
2019
2012
  currency: row.original.currency
2020
2013
  }
2021
2014
  ),
2022
- filterVariant: "text"
2015
+ filterType: "string",
2016
+ enableColumnFilter: true
2023
2017
  },
2024
2018
  {
2025
2019
  header: "creation date",
2026
2020
  accessorKey: "createdAt",
2027
- cell: ({ getValue }) => {
2028
- const timestamp = getValue();
2029
- const date = timestampToDate(timestamp);
2030
- if (!date)
2031
- return "-";
2032
- return date.toLocaleString("en", {
2033
- month: "long",
2034
- day: "numeric",
2035
- year: "numeric"
2036
- });
2037
- }
2021
+ filterType: "date",
2022
+ enableColumnFilter: true,
2023
+ cell: ({ getValue }) => formatTimestamp(getValue())
2038
2024
  },
2039
2025
  {
2040
2026
  header: "Updated date",
2041
2027
  accessorKey: "updatedAt",
2028
+ filterType: "date",
2042
2029
  enableColumnFilter: false,
2043
- cell: ({ getValue }) => {
2044
- const timestamp = getValue();
2045
- const date = timestampToDate(timestamp);
2046
- if (!date)
2047
- return "-";
2048
- return date.toLocaleString("en", {
2049
- month: "long",
2050
- day: "numeric",
2051
- year: "numeric"
2052
- });
2053
- }
2030
+ cell: ({ getValue }) => formatTimestamp(getValue())
2054
2031
  }
2055
2032
  ];
2056
2033
  };
2057
2034
 
2058
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-YSIVeE5DP6l9/sdk/admin/views/products/products.module.css.js
2059
- var digest11 = "426d9acc39db6767e3e41da22609b3d0ad2f98bba83c1890167bece1ea96cfcc";
2035
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-QnY75RA4116w/sdk/admin/views/products/products.module.css.js
2036
+ var digest11 = "474d4953f64e64d6cccefec10f10c908361b04bdcd8129ee34e30c6c129eb663";
2060
2037
  var css11 = `._tableRoot_3ccjp_1 {
2061
2038
  width: 100%;
2062
2039
  }
@@ -2218,8 +2195,8 @@ function CpuChipIcon(props) {
2218
2195
  );
2219
2196
  }
2220
2197
 
2221
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-XO8QY5JFmhQQ/sdk/admin/views/audit-logs/audit-logs.module.css.js
2222
- var digest12 = "fd12f97eaac7f22f925f5eb89986a607629da59118ff502e3faf43af36e048cc";
2198
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-n26WCNVMHR3Z/sdk/admin/views/audit-logs/audit-logs.module.css.js
2199
+ var digest12 = "aac9f231b17ca56bfa348f2d1bbb1ab7783f2ab709f37ffc85f655d29fcaadf4";
2223
2200
  var css12 = `._navbar_lxzqi_1 {
2224
2201
  padding: var(--rs-space-4) var(--rs-space-7);
2225
2202
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -2441,8 +2418,8 @@ var Navbar = ({ searchQuery, onExportCsv }) => {
2441
2418
  };
2442
2419
  var navbar_default = Navbar;
2443
2420
 
2444
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-nLaIKOf7HNc4/sdk/admin/views/audit-logs/audit-logs.module.css.js
2445
- var digest13 = "acfbd07638a90672a8189d9f65bb146a91f7bedf88f4a9e903e6b23c7a94f275";
2421
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-iJ5nv7uO6rpQ/sdk/admin/views/audit-logs/audit-logs.module.css.js
2422
+ var digest13 = "0e4f9c26fed485670774fcd66b1b3f24264c1d9af85f22c46b6397e4850437db";
2446
2423
  var css13 = `._navbar_lxzqi_1 {
2447
2424
  padding: var(--rs-space-4) var(--rs-space-7);
2448
2425
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -2554,10 +2531,9 @@ var audit_logs_module_css_default2 = { "navbar": "_navbar_lxzqi_1", "table": "_t
2554
2531
 
2555
2532
  // admin/views/audit-logs/columns.tsx
2556
2533
  import { Badge, Flex as Flex14, Text as Text9 } from "@raystack/apsara";
2557
- import dayjs4 from "dayjs";
2558
2534
 
2559
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-6xYrhf1HIq9d/sdk/admin/views/audit-logs/audit-logs.module.css.js
2560
- var digest14 = "f86a4ef0284b75b28ce43bc271060bff0090eef31560c40250d5d880c661fb6f";
2535
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-wKjwix6ZLHS2/sdk/admin/views/audit-logs/audit-logs.module.css.js
2536
+ var digest14 = "5552392db219ced571d1421d0e88a4149439510103892f2077183edefa3ecca1";
2561
2537
  var css14 = `._navbar_lxzqi_1 {
2562
2538
  padding: var(--rs-space-4) var(--rs-space-7);
2563
2539
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -2804,10 +2780,9 @@ var getColumns5 = ({
2804
2780
  if (isNullTimestamp(value)) {
2805
2781
  return /* @__PURE__ */ jsx20(Text9, { children: "-" });
2806
2782
  }
2807
- const date = dayjs4(timestampToDate(value));
2808
2783
  return /* @__PURE__ */ jsxs13(Flex14, { gap: 1, direction: "column", children: [
2809
- /* @__PURE__ */ jsx20(Text9, { size: "small", weight: "medium", children: date.format("DD MMM YYYY") }),
2810
- /* @__PURE__ */ jsx20(Text9, { size: "small", variant: "secondary", children: date.format("hh:mm A") })
2784
+ /* @__PURE__ */ jsx20(Text9, { size: "small", weight: "medium", children: formatTimestamp(value) }),
2785
+ /* @__PURE__ */ jsx20(Text9, { size: "small", variant: "secondary", children: formatTimestamp(value, "hh:mm A") })
2811
2786
  ] });
2812
2787
  },
2813
2788
  enableHiding: true,
@@ -2826,8 +2801,8 @@ import {
2826
2801
  import { Flex as Flex16, IconButton as IconButton4, SidePanel } from "@raystack/apsara";
2827
2802
  import { List as List3 } from "@raystack/apsara";
2828
2803
 
2829
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-LOPwAVf7kakM/sdk/admin/views/audit-logs/audit-logs.module.css.js
2830
- var digest15 = "9130934668377d47d1b8b58554047c6d210191b96c2445ce51664ae45c080a37";
2804
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-pPBQo5qW1Ttj/sdk/admin/views/audit-logs/audit-logs.module.css.js
2805
+ var digest15 = "dd955808e420735fb72639476ed046bbe621e50a0d234f9ca25278ad136d2ec4";
2831
2806
  var css15 = `._navbar_lxzqi_1 {
2832
2807
  padding: var(--rs-space-4) var(--rs-space-7);
2833
2808
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -2937,9 +2912,6 @@ var css15 = `._navbar_lxzqi_1 {
2937
2912
  })();
2938
2913
  var audit_logs_module_css_default4 = { "navbar": "_navbar_lxzqi_1", "table": "_table_lxzqi_11", "table-empty": "_table-empty_lxzqi_15", "tableEmpty": "_table-empty_lxzqi_15", "empty-state": "_empty-state_lxzqi_19", "emptyState": "_empty-state_lxzqi_19", "empty-state-subheading": "_empty-state-subheading_lxzqi_23", "emptyStateSubheading": "_empty-state-subheading_lxzqi_23", "name-column": "_name-column_lxzqi_28", "nameColumn": "_name-column_lxzqi_28", "org-column": "_org-column_lxzqi_32", "orgColumn": "_org-column_lxzqi_32", "table-wrapper": "_table-wrapper_lxzqi_36", "tableWrapper": "_table-wrapper_lxzqi_36", "table-header": "_table-header_lxzqi_41", "tableHeader": "_table-header_lxzqi_41", "side-panel": "_side-panel_lxzqi_45", "sidePanel": "_side-panel_lxzqi_45", "capitalize": "_capitalize_lxzqi_50", "table-content-container": "_table-content-container_lxzqi_54", "tableContentContainer": "_table-content-container_lxzqi_54", "text-overflow": "_text-overflow_lxzqi_62", "textOverflow": "_text-overflow_lxzqi_62", "code-block-container": "_code-block-container_lxzqi_70", "codeBlockContainer": "_code-block-container_lxzqi_70", "code-block": "_code-block_lxzqi_70", "codeBlock": "_code-block_lxzqi_70", "sidepanel-link-trigger": "_sidepanel-link-trigger_lxzqi_77", "sidepanelLinkTrigger": "_sidepanel-link-trigger_lxzqi_77", "sidepanel-list-link": "_sidepanel-list-link_lxzqi_85", "sidepanelListLink": "_sidepanel-list-link_lxzqi_85", "sidepanel-list": "_sidepanel-list_lxzqi_85", "sidepanelList": "_sidepanel-list_lxzqi_85" };
2939
2914
 
2940
- // admin/views/audit-logs/sidepanel-details.tsx
2941
- import dayjs5 from "dayjs";
2942
-
2943
2915
  // admin/assets/icons/MapIcon.tsx
2944
2916
  import { jsx as jsx21 } from "react/jsx-runtime";
2945
2917
  function MapIcon(props) {
@@ -2968,8 +2940,8 @@ function MapIcon(props) {
2968
2940
  // admin/views/audit-logs/sidepanel-log-dialog.tsx
2969
2941
  import { Dialog, IconButton as IconButton3, CodeBlock } from "@raystack/apsara";
2970
2942
 
2971
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-He0UGEYqpRax/sdk/admin/views/audit-logs/audit-logs.module.css.js
2972
- var digest16 = "19bbe9beb83b211549cff4794d0e856043bc06aad377563594841f0fa4d77048";
2943
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-mPHzJdlI15x6/sdk/admin/views/audit-logs/audit-logs.module.css.js
2944
+ var digest16 = "9214b8fd42a509485b6ee46de8b354847c7a143f20b36ba7087b77dbf2c76905";
2973
2945
  var css16 = `._navbar_lxzqi_1 {
2974
2946
  padding: var(--rs-space-4) var(--rs-space-7);
2975
2947
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -3177,8 +3149,8 @@ function SidePanelLogDialog(props) {
3177
3149
  // admin/views/audit-logs/sidepanel-list-link.tsx
3178
3150
  import { Button, List } from "@raystack/apsara";
3179
3151
 
3180
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-Ft1dir3cxj5Y/sdk/admin/views/audit-logs/audit-logs.module.css.js
3181
- var digest17 = "565b7870ca181da5ea63e70f39dbc60242b8723287c2a207fc36c3048f899dd7";
3152
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-dXPC2hlNUuGs/sdk/admin/views/audit-logs/audit-logs.module.css.js
3153
+ var digest17 = "aba796da301d46dcb427dbbca57fae65f794809d4f1967fbed9e109410669c49";
3182
3154
  var css17 = `._navbar_lxzqi_1 {
3183
3155
  padding: var(--rs-space-4) var(--rs-space-7);
3184
3156
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -3296,6 +3268,7 @@ function SidepanelListItemLink({
3296
3268
  href,
3297
3269
  label,
3298
3270
  onNavigate,
3271
+ state,
3299
3272
  "data-test-id": dataTestId
3300
3273
  }) {
3301
3274
  if (isLink && onNavigate) {
@@ -3308,7 +3281,7 @@ function SidepanelListItemLink({
3308
3281
  color: "neutral",
3309
3282
  "data-test-id": dataTestId,
3310
3283
  className: audit_logs_module_css_default6["sidepanel-link-trigger"],
3311
- onClick: () => onNavigate(href),
3284
+ onClick: () => onNavigate(href, state),
3312
3285
  children
3313
3286
  }
3314
3287
  ) })
@@ -3323,8 +3296,8 @@ function SidepanelListItemLink({
3323
3296
  // admin/views/audit-logs/sidepanel-list-id.tsx
3324
3297
  import { CopyButton, Flex as Flex15, List as List2, Text as Text10, Tooltip } from "@raystack/apsara";
3325
3298
 
3326
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-lLeJD9MXEvr1/sdk/admin/views/audit-logs/audit-logs.module.css.js
3327
- var digest18 = "b35fdc55503a25718661cc97fa8107795de66133497106c3b47c8764e4b91c54";
3299
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-8ml22yBXZUme/sdk/admin/views/audit-logs/audit-logs.module.css.js
3300
+ var digest18 = "5738edd59fe20bb2a5f749962151884f9d6b8d7a6afebb094221ccd40f8e8722";
3328
3301
  var css18 = `._navbar_lxzqi_1 {
3329
3302
  padding: var(--rs-space-4) var(--rs-space-7);
3330
3303
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -3469,7 +3442,6 @@ var DEFAULT_ROLES = {
3469
3442
  ORG_VIEWER: "app_organization_viewer",
3470
3443
  PROJECT_VIEWER: "app_project_viewer"
3471
3444
  };
3472
- var NULL_DATE = "0001-01-01T00:00:00Z";
3473
3445
  var defaultTerminology = {
3474
3446
  organization: { singular: "Organization", plural: "Organizations" },
3475
3447
  project: { singular: "Project", plural: "Projects" },
@@ -3535,6 +3507,19 @@ var useAdminPaths = () => {
3535
3507
  };
3536
3508
  };
3537
3509
 
3510
+ // admin/hooks/useOrganizationLookup.ts
3511
+ import { useQuery as useQuery4 } from "@connectrpc/connect-query";
3512
+ import { FrontierServiceQueries as FrontierServiceQueries4 } from "@raystack/proton/frontier";
3513
+ var useOrganizationLookup = (orgId) => useQuery4(
3514
+ FrontierServiceQueries4.getOrganization,
3515
+ { id: orgId || "" },
3516
+ {
3517
+ enabled: !!orgId,
3518
+ staleTime: 5 * 60 * 1e3,
3519
+ select: (data) => data?.organization
3520
+ }
3521
+ );
3522
+
3538
3523
  // admin/views/audit-logs/sidepanel-details.tsx
3539
3524
  import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs18 } from "react/jsx-runtime";
3540
3525
  function SidePanelDetails({
@@ -3545,9 +3530,10 @@ function SidePanelDetails({
3545
3530
  const t = useTerminology();
3546
3531
  const paths = useAdminPaths();
3547
3532
  const { actor, event, resource, occurredAt, id, orgId, orgName, target } = rest;
3548
- const date = dayjs5(timestampToDate(occurredAt));
3549
3533
  const session = actor?.metadata?.context;
3550
3534
  const location = session && `${session.Location.City}, ${session.Location.Country}` || "-";
3535
+ const isOrgLink = !!orgId && !isZeroUUID(orgId);
3536
+ const { data: org } = useOrganizationLookup(isOrgLink ? orgId : void 0);
3551
3537
  return /* @__PURE__ */ jsxs18(
3552
3538
  SidePanel,
3553
3539
  {
@@ -3589,8 +3575,9 @@ function SidePanelDetails({
3589
3575
  /* @__PURE__ */ jsx27(
3590
3576
  SidepanelListItemLink,
3591
3577
  {
3592
- isLink: !!orgId && !isZeroUUID(orgId),
3593
- href: `/${paths.organizations}/${orgId}`,
3578
+ isLink: isOrgLink && !!org,
3579
+ href: `/${paths.organizations}/${org?.name || orgId}`,
3580
+ state: orgId ? { orgId } : void 0,
3594
3581
  label: t.organization({ case: "capital" }),
3595
3582
  onNavigate,
3596
3583
  "data-test-id": "actor-link",
@@ -3611,11 +3598,11 @@ function SidePanelDetails({
3611
3598
  ] }),
3612
3599
  /* @__PURE__ */ jsxs18(List3.Item, { children: [
3613
3600
  /* @__PURE__ */ jsx27(List3.Label, { className: audit_logs_module_css_default4["sidepanel-list"], children: "Date" }),
3614
- /* @__PURE__ */ jsx27(List3.Value, { children: date.format("DD MMM YYYY") })
3601
+ /* @__PURE__ */ jsx27(List3.Value, { children: formatTimestamp(occurredAt) })
3615
3602
  ] }),
3616
3603
  /* @__PURE__ */ jsxs18(List3.Item, { children: [
3617
3604
  /* @__PURE__ */ jsx27(List3.Label, { className: audit_logs_module_css_default4["sidepanel-list"], children: "Time" }),
3618
- /* @__PURE__ */ jsx27(List3.Value, { children: date.format("hh:mm A") })
3605
+ /* @__PURE__ */ jsx27(List3.Value, { children: formatTimestamp(occurredAt, "hh:mm A") })
3619
3606
  ] }),
3620
3607
  /* @__PURE__ */ jsxs18(List3.Item, { children: [
3621
3608
  /* @__PURE__ */ jsx27(List3.Label, { className: audit_logs_module_css_default4["sidepanel-list"], children: "ID" }),
@@ -3855,8 +3842,8 @@ import { DataTable as DataTable8, EmptyState as EmptyState6, Flex as Flex18 } fr
3855
3842
  // admin/views/admins/columns.tsx
3856
3843
  import { Button as Button2 } from "@raystack/apsara";
3857
3844
 
3858
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-8ZK3ueaNNES9/sdk/admin/views/admins/admins.module.css.js
3859
- var digest19 = "f89e55a3ca6275f40d10d4882be6e09be0ba82f9c74d97380d4454cc730e7214";
3845
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-c8O6nixgCn4E/sdk/admin/views/admins/admins.module.css.js
3846
+ var digest19 = "217b35b102b0a8b4e193c5c939a5cb6b98265b44d2a4011295d1d3ad9892e2e7";
3860
3847
  var css19 = `._tableRoot_1tmha_1 {
3861
3848
  width: 100%;
3862
3849
  }
@@ -3889,6 +3876,22 @@ var admins_module_css_default = { "tableRoot": "_tableRoot_1tmha_1", "tableWrapp
3889
3876
 
3890
3877
  // admin/views/admins/columns.tsx
3891
3878
  import { jsx as jsx29 } from "react/jsx-runtime";
3879
+ var OrgCell = ({
3880
+ orgId,
3881
+ onNavigateToOrg
3882
+ }) => {
3883
+ const { data: org } = useOrganizationLookup(orgId);
3884
+ return /* @__PURE__ */ jsx29(
3885
+ Button2,
3886
+ {
3887
+ variant: "text",
3888
+ disabled: !org,
3889
+ onClick: () => org && onNavigateToOrg?.(org.name || orgId, orgId),
3890
+ "data-test-id": "frontier-admin-navigate-to-org-btn",
3891
+ children: org?.title || org?.name || orgId
3892
+ }
3893
+ );
3894
+ };
3892
3895
  var getColumns6 = ({ onNavigateToOrg, t } = {}) => {
3893
3896
  return [
3894
3897
  {
@@ -3898,13 +3901,15 @@ var getColumns6 = ({ onNavigateToOrg, t } = {}) => {
3898
3901
  cell: admins_module_css_default["first-column"],
3899
3902
  header: admins_module_css_default["first-column"]
3900
3903
  },
3901
- filterVariant: "text",
3904
+ filterType: "string",
3905
+ enableColumnFilter: true,
3902
3906
  cell: (info) => info.getValue() || "-"
3903
3907
  },
3904
3908
  {
3905
3909
  header: "Email",
3906
3910
  accessorKey: "email",
3907
- filterVariant: "text",
3911
+ filterType: "string",
3912
+ enableColumnFilter: true,
3908
3913
  cell: (info) => info.getValue() || "-"
3909
3914
  },
3910
3915
  {
@@ -3927,22 +3932,14 @@ var getColumns6 = ({ onNavigateToOrg, t } = {}) => {
3927
3932
  accessorKey: "orgId",
3928
3933
  cell: (info) => {
3929
3934
  const org_id = info.getValue();
3930
- return org_id ? /* @__PURE__ */ jsx29(
3931
- Button2,
3932
- {
3933
- variant: "text",
3934
- onClick: () => onNavigateToOrg?.(org_id),
3935
- "data-test-id": "frontier-admin-navigate-to-org-btn",
3936
- children: org_id
3937
- }
3938
- ) : "-";
3935
+ return org_id ? /* @__PURE__ */ jsx29(OrgCell, { orgId: org_id, onNavigateToOrg }) : "-";
3939
3936
  }
3940
3937
  }
3941
3938
  ];
3942
3939
  };
3943
3940
 
3944
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-Cw8lBOmvW9Of/sdk/admin/views/admins/admins.module.css.js
3945
- var digest20 = "37bae431d94ed51bbb1beaa774313a29bfbf6ffd757fdb8912a9cc4e31a0057f";
3941
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-iS2dwWaNUSjm/sdk/admin/views/admins/admins.module.css.js
3942
+ var digest20 = "11aa0b6bada9aeacf8f383b1e82b45166710b1e8a0ee9b279c56a31426f9e3ff";
3946
3943
  var css20 = `._tableRoot_1tmha_1 {
3947
3944
  width: 100%;
3948
3945
  }
@@ -3974,7 +3971,7 @@ var css20 = `._tableRoot_1tmha_1 {
3974
3971
  var admins_module_css_default2 = { "tableRoot": "_tableRoot_1tmha_1", "tableWrapper": "_tableWrapper_1tmha_5", "header": "_header_1tmha_9", "first-column": "_first-column_1tmha_14", "firstColumn": "_first-column_1tmha_14" };
3975
3972
 
3976
3973
  // admin/views/admins/index.tsx
3977
- import { useQuery as useQuery4 } from "@connectrpc/connect-query";
3974
+ import { useQuery as useQuery5 } from "@connectrpc/connect-query";
3978
3975
  import { AdminServiceQueries as AdminServiceQueries3 } from "@raystack/proton/frontier";
3979
3976
  import { jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
3980
3977
  var pageHeader = {
@@ -3998,7 +3995,7 @@ function AdminsView({ onNavigateToOrg, icon } = {}) {
3998
3995
  isLoading,
3999
3996
  error,
4000
3997
  isError
4001
- } = useQuery4(AdminServiceQueries3.listPlatformUsers, {}, {
3998
+ } = useQuery5(AdminServiceQueries3.listPlatformUsers, {}, {
4002
3999
  staleTime: Infinity
4003
4000
  });
4004
4001
  const columns = getColumns6({ onNavigateToOrg, t });
@@ -4053,8 +4050,8 @@ import { EmptyState as EmptyState7, Flex as Flex20, DataTable as DataTable9, Dra
4053
4050
  // admin/views/plans/columns.tsx
4054
4051
  import { Text as Text11 } from "@raystack/apsara";
4055
4052
 
4056
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-lxHpB7GHnew0/sdk/admin/views/plans/plans.module.css.js
4057
- var digest21 = "677f76fe422d4620a18e433d2d5d303db7074e37646858fca76bdd8f636958c7";
4053
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-s3gp6B0p8QCG/sdk/admin/views/plans/plans.module.css.js
4054
+ var digest21 = "89373b4cc4eaa03ecb43f4a81d3f5594f6115ca2fc49208dad807b09c88ee6a5";
4058
4055
  var css21 = `._tableRoot_1akba_1 {
4059
4056
  width: 100%;
4060
4057
  }
@@ -4108,7 +4105,8 @@ var getColumns7 = ({ onSelectPlan } = {}) => {
4108
4105
  cell: plans_module_css_default["first-column"],
4109
4106
  header: plans_module_css_default["first-column"]
4110
4107
  },
4111
- filterVariant: "text",
4108
+ filterType: "string",
4109
+ enableColumnFilter: true,
4112
4110
  cell: ({ getValue }) => {
4113
4111
  const id = getValue();
4114
4112
  return /* @__PURE__ */ jsx31(
@@ -4125,35 +4123,27 @@ var getColumns7 = ({ onSelectPlan } = {}) => {
4125
4123
  {
4126
4124
  header: "Title",
4127
4125
  accessorKey: "title",
4128
- filterVariant: "text",
4126
+ filterType: "string",
4127
+ enableColumnFilter: true,
4129
4128
  cell: (info) => info.getValue()
4130
4129
  },
4131
4130
  {
4132
4131
  header: "Interval",
4133
4132
  accessorKey: "interval",
4134
- filterVariant: "text",
4133
+ filterType: "string",
4134
+ enableColumnFilter: true,
4135
4135
  cell: (info) => info.getValue()
4136
4136
  },
4137
4137
  {
4138
4138
  header: "Created At",
4139
4139
  accessorKey: "createdAt",
4140
- cell: ({ getValue }) => {
4141
- const timestamp = getValue();
4142
- const date = timestampToDate(timestamp);
4143
- if (!date)
4144
- return "-";
4145
- return date.toLocaleString("en", {
4146
- month: "long",
4147
- day: "numeric",
4148
- year: "numeric"
4149
- });
4150
- }
4140
+ cell: ({ getValue }) => formatTimestamp(getValue())
4151
4141
  }
4152
4142
  ];
4153
4143
  };
4154
4144
 
4155
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-9K0C60gJxZhs/sdk/admin/views/plans/plans.module.css.js
4156
- var digest22 = "938dd8334471cb128373e0b0230159dd32791b3e06a198c5113319dbed584965";
4145
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-FHnEfHfPbrZl/sdk/admin/views/plans/plans.module.css.js
4146
+ var digest22 = "29fa603ddd1be4b2228194af3890e3eeb872d1f73b467dd16d54a5bb63ff25d9";
4157
4147
  var css22 = `._tableRoot_1akba_1 {
4158
4148
  width: 100%;
4159
4149
  }
@@ -4197,8 +4187,8 @@ var css22 = `._tableRoot_1akba_1 {
4197
4187
  var plans_module_css_default2 = { "tableRoot": "_tableRoot_1akba_1", "tableWrapper": "_tableWrapper_1akba_4", "table": "_table_1akba_1", "header": "_header_1akba_12", "first-column": "_first-column_1akba_17", "firstColumn": "_first-column_1akba_17", "sheetContent": "_sheetContent_1akba_21", "sheetContentBody": "_sheetContentBody_1akba_26" };
4198
4188
 
4199
4189
  // admin/views/plans/index.tsx
4200
- import { useQuery as useQuery5 } from "@connectrpc/connect-query";
4201
- import { FrontierServiceQueries as FrontierServiceQueries4 } from "@raystack/proton/frontier";
4190
+ import { useQuery as useQuery6 } from "@connectrpc/connect-query";
4191
+ import { FrontierServiceQueries as FrontierServiceQueries5 } from "@raystack/proton/frontier";
4202
4192
 
4203
4193
  // admin/views/plans/details.tsx
4204
4194
  import { Flex as Flex19, Text as Text12, Grid as Grid3 } from "@raystack/apsara";
@@ -4217,14 +4207,7 @@ function PlanDetails({ plan }) {
4217
4207
  ] }),
4218
4208
  /* @__PURE__ */ jsxs21(Grid3, { columns: 2, gap: 3, children: [
4219
4209
  /* @__PURE__ */ jsx32(Text12, { size: "mini", children: "Created At" }),
4220
- /* @__PURE__ */ jsx32(Text12, { size: "mini", children: (() => {
4221
- const date = timestampToDate(plan?.createdAt);
4222
- return date ? date.toLocaleString("en", {
4223
- month: "long",
4224
- day: "numeric",
4225
- year: "numeric"
4226
- }) : "-";
4227
- })() })
4210
+ /* @__PURE__ */ jsx32(Text12, { size: "mini", children: formatTimestamp(plan?.createdAt) })
4228
4211
  ] })
4229
4212
  ] })
4230
4213
  ] });
@@ -4244,7 +4227,7 @@ function PlansView({
4244
4227
  isLoading: isPlansLoading,
4245
4228
  error,
4246
4229
  isError
4247
- } = useQuery5(FrontierServiceQueries4.listPlans, {}, {
4230
+ } = useQuery6(FrontierServiceQueries5.listPlans, {}, {
4248
4231
  staleTime: Infinity
4249
4232
  });
4250
4233
  const plans = plansResponse?.plans || [];
@@ -4312,8 +4295,8 @@ import { Flex as Flex21, DataTable as DataTable10, EmptyState as EmptyState8 } f
4312
4295
  // admin/views/webhooks/webhooks/columns.tsx
4313
4296
  import { Text as Text13 } from "@raystack/apsara";
4314
4297
 
4315
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-V3s36FjKkFnp/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4316
- var digest23 = "802fa886bb54c3fa374ea46c0ab131dec9d7445ac10a4558a006cbd2d41564e4";
4298
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-BpWIsZMXX91I/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4299
+ var digest23 = "741eb9203f3217894e8e10cf2d2a0e31ad9ce3fc84043b9a5b5af0318f78bfef";
4317
4300
  var css23 = `._tableRoot_iq3pc_1 {
4318
4301
  width: 100%;
4319
4302
  }
@@ -4358,7 +4341,6 @@ var css23 = `._tableRoot_iq3pc_1 {
4358
4341
  var webhooks_module_css_default = { "tableRoot": "_tableRoot_iq3pc_1", "tableWrapper": "_tableWrapper_iq3pc_5", "table": "_table_iq3pc_1", "first-column": "_first-column_iq3pc_13", "firstColumn": "_first-column_iq3pc_13", "stateColumn": "_stateColumn_iq3pc_17", "dateColumn": "_dateColumn_iq3pc_21", "header": "_header_iq3pc_25" };
4359
4342
 
4360
4343
  // admin/views/webhooks/webhooks/columns.tsx
4361
- import dayjs6 from "dayjs";
4362
4344
  import { jsx as jsx34 } from "react/jsx-runtime";
4363
4345
  var getColumns8 = () => {
4364
4346
  return [
@@ -4369,13 +4351,15 @@ var getColumns8 = () => {
4369
4351
  cell: webhooks_module_css_default["first-column"],
4370
4352
  header: webhooks_module_css_default["first-column"]
4371
4353
  },
4372
- filterVariant: "text",
4354
+ filterType: "string",
4355
+ enableColumnFilter: true,
4373
4356
  cell: (info) => info.getValue() || "-"
4374
4357
  },
4375
4358
  {
4376
4359
  header: "State",
4377
4360
  accessorKey: "state",
4378
- filterVariant: "text",
4361
+ filterType: "string",
4362
+ enableColumnFilter: true,
4379
4363
  classNames: { cell: webhooks_module_css_default.stateColumn, header: webhooks_module_css_default.stateColumn },
4380
4364
  cell: (info) => info.getValue() || "-"
4381
4365
  },
@@ -4388,17 +4372,13 @@ var getColumns8 = () => {
4388
4372
  header: "Created at",
4389
4373
  accessorKey: "createdAt",
4390
4374
  classNames: { cell: webhooks_module_css_default.dateColumn, header: webhooks_module_css_default.dateColumn },
4391
- cell: ({ getValue }) => {
4392
- const value = getValue();
4393
- const date = isNullTimestamp(value) ? "-" : dayjs6(timestampToDate(value)).format("YYYY-MM-DD");
4394
- return /* @__PURE__ */ jsx34(Text13, { children: date });
4395
- }
4375
+ cell: ({ getValue }) => /* @__PURE__ */ jsx34(Text13, { children: formatTimestamp(getValue()) })
4396
4376
  }
4397
4377
  ];
4398
4378
  };
4399
4379
 
4400
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-dI0JHaUEN1fM/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4401
- var digest24 = "bf94ea244f59e6d6c8c2465c7017825d412327a0cf4d4284d00614cd53398e2f";
4380
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-6a5b7s4odPON/sdk/admin/views/webhooks/webhooks/webhooks.module.css.js
4381
+ var digest24 = "0e636d5abeb48f2102bb2689ffd175d20bfcc3c8afc8ad2b8f6e7d5ad9044bd4";
4402
4382
  var css24 = `._tableRoot_iq3pc_1 {
4403
4383
  width: 100%;
4404
4384
  }
@@ -4443,10 +4423,10 @@ var css24 = `._tableRoot_iq3pc_1 {
4443
4423
  var webhooks_module_css_default2 = { "tableRoot": "_tableRoot_iq3pc_1", "tableWrapper": "_tableWrapper_iq3pc_5", "table": "_table_iq3pc_1", "first-column": "_first-column_iq3pc_13", "firstColumn": "_first-column_iq3pc_13", "stateColumn": "_stateColumn_iq3pc_17", "dateColumn": "_dateColumn_iq3pc_21", "header": "_header_iq3pc_25" };
4444
4424
 
4445
4425
  // admin/views/webhooks/webhooks/hooks/useWebhookQueries.ts
4446
- import { useQuery as useQuery6 } from "@connectrpc/connect-query";
4426
+ import { useQuery as useQuery7 } from "@connectrpc/connect-query";
4447
4427
  import { AdminServiceQueries as AdminServiceQueries4 } from "@raystack/proton/frontier";
4448
4428
  function useWebhookQueries() {
4449
- const listWebhooks = useQuery6(
4429
+ const listWebhooks = useQuery7(
4450
4430
  AdminServiceQueries4.listWebhooks,
4451
4431
  {},
4452
4432
  {
@@ -4513,7 +4493,7 @@ import { Flex as Flex24, EmptyState as EmptyState10 } from "@raystack/apsara";
4513
4493
  import { createQueryOptions, useTransport as useTransport2 } from "@connectrpc/connect-query";
4514
4494
  import {
4515
4495
  AdminServiceQueries as AdminServiceQueries6,
4516
- FrontierServiceQueries as FrontierServiceQueries5
4496
+ FrontierServiceQueries as FrontierServiceQueries6
4517
4497
  } from "@raystack/proton/frontier";
4518
4498
  import { useQueries } from "@tanstack/react-query";
4519
4499
 
@@ -4523,8 +4503,8 @@ import { EmptyState as EmptyState9, DataTable as DataTable11, Flex as Flex22 } f
4523
4503
  // admin/views/preferences/columns.tsx
4524
4504
  import { Text as Text14 } from "@raystack/apsara";
4525
4505
 
4526
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-hGhLIEgHBNX7/sdk/admin/views/preferences/preferences.module.css.js
4527
- var digest25 = "054b0f7eadc01e8df3867c519c68751660dbaa0ba30ee488e5485061070a7d3c";
4506
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-FGJsT1gr9eW0/sdk/admin/views/preferences/preferences.module.css.js
4507
+ var digest25 = "a81e3bbe77e2c8ea677a12a6f0b9f7e1b81341c3ab48770f47a54049e5dd9f9a";
4528
4508
  var css25 = `._tableRoot_hre5m_1 {
4529
4509
  width: 100%;
4530
4510
  }
@@ -4575,7 +4555,8 @@ var getColumns9 = ({
4575
4555
  cell: preferences_module_css_default["first-column"],
4576
4556
  header: preferences_module_css_default["first-column"]
4577
4557
  },
4578
- filterVariant: "text",
4558
+ filterType: "string",
4559
+ enableColumnFilter: true,
4579
4560
  cell: (info) => info.getValue(),
4580
4561
  footer: (props) => props.column.id
4581
4562
  },
@@ -4614,8 +4595,8 @@ var getColumns9 = ({
4614
4595
  ];
4615
4596
  };
4616
4597
 
4617
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-M5YZqx6zsiBd/sdk/admin/views/preferences/preferences.module.css.js
4618
- var digest26 = "74b21a6352a5e0cf1e350245a58e87bb975289ffb2fde44433c51d13c4cdc078";
4598
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-4b7KEslCUXvz/sdk/admin/views/preferences/preferences.module.css.js
4599
+ var digest26 = "7a2d8282b66f0020ef13d7b188171c96a795a97de2e362430d0f57e6170fb8bc";
4619
4600
  var css26 = `._tableRoot_hre5m_1 {
4620
4601
  width: 100%;
4621
4602
  }
@@ -4796,7 +4777,6 @@ function Skeleton({ count = 1, wrapper: Wrapper, className: customClassName, con
4796
4777
  }
4797
4778
 
4798
4779
  // admin/views/preferences/details.tsx
4799
- import dayjs7 from "dayjs";
4800
4780
  import { useMutation, createConnectQueryKey, useTransport } from "@connectrpc/connect-query";
4801
4781
 
4802
4782
  // utils/error.ts
@@ -4831,7 +4811,6 @@ function handleConnectError(error, handlers) {
4831
4811
  // admin/views/preferences/details.tsx
4832
4812
  import { AdminServiceQueries as AdminServiceQueries5, CreatePreferencesRequestSchema } from "@raystack/proton/frontier";
4833
4813
  import { PreferenceTrait_InputType } from "@raystack/proton/frontier";
4834
- import { timestampDate as timestampDate2 } from "@bufbuild/protobuf/wkt";
4835
4814
  import { useQueryClient as useQueryClient3 } from "@tanstack/react-query";
4836
4815
  import { create as create2 } from "@bufbuild/protobuf";
4837
4816
  import { jsx as jsx38, jsxs as jsxs25 } from "react/jsx-runtime";
@@ -4948,7 +4927,7 @@ function PreferenceDetails({
4948
4927
  },
4949
4928
  {
4950
4929
  key: "Last updated",
4951
- value: preference?.updatedAt && dayjs7(timestampDate2(preference.updatedAt)).format("MMM DD, YYYY hh:mm:ss A")
4930
+ value: formatTimestamp(preference?.updatedAt, `${DATE_FORMAT} hh:mm:ss A`)
4952
4931
  }
4953
4932
  ];
4954
4933
  const onSave = useCallback4(async () => {
@@ -5047,7 +5026,7 @@ function PreferencesView({
5047
5026
  staleTime: Infinity
5048
5027
  },
5049
5028
  {
5050
- ...createQueryOptions(FrontierServiceQueries5.describePreferences, {}, { transport }),
5029
+ ...createQueryOptions(FrontierServiceQueries6.describePreferences, {}, { transport }),
5051
5030
  staleTime: Infinity
5052
5031
  }
5053
5032
  ]
@@ -5105,8 +5084,8 @@ import {
5105
5084
  Spinner as Spinner2
5106
5085
  } from "@raystack/apsara";
5107
5086
 
5108
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-CwfmDyrCEgEk/sdk/admin/views/users/list/list.module.css.js
5109
- var digest27 = "3f25d2fb7e9d2ab08778c8547e867594b332c4b958d2be0406498b1af81a39a0";
5087
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-HfgpPvFi3cu0/sdk/admin/views/users/list/list.module.css.js
5088
+ var digest27 = "161d6f5ce08578fbb25c83302e8e6ee87f6d76ec984c76aa04da068ff9060737";
5110
5089
  var css27 = `._navbar_vt0az_1 {
5111
5090
  padding: var(--rs-space-4) var(--rs-space-7);
5112
5091
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -9253,8 +9232,8 @@ var NEVER = INVALID;
9253
9232
  import { Controller, useForm } from "react-hook-form";
9254
9233
  import { zodResolver } from "@hookform/resolvers/zod";
9255
9234
 
9256
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-6Pq7jPKN24fJ/sdk/admin/views/users/list/invite-users.module.css.js
9257
- var digest28 = "b7d62e715c4eb6526cca6f93e87c29c96b88b7f02d7555e779a5688880faac40";
9235
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-nj3le01H9v8P/sdk/admin/views/users/list/invite-users.module.css.js
9236
+ var digest28 = "d0387e1e67155df44a392366e9f0328e60fbf77740c70aa795437202285dbf3c";
9258
9237
  var css28 = `._invite-users-dialog-body_daxb4_1 {
9259
9238
  display: flex;
9260
9239
  flex-direction: column;
@@ -9281,11 +9260,11 @@ var css28 = `._invite-users-dialog-body_daxb4_1 {
9281
9260
  var invite_users_module_css_default = { "invite-users-dialog-body": "_invite-users-dialog-body_daxb4_1", "inviteUsersDialogBody": "_invite-users-dialog-body_daxb4_1", "invite-users-emails-textarea": "_invite-users-emails-textarea_daxb4_8", "inviteUsersEmailsTextarea": "_invite-users-emails-textarea_daxb4_8" };
9282
9261
 
9283
9262
  // admin/views/users/list/invite-users.tsx
9284
- import { useMutation as useMutation2, useQuery as useQuery7 } from "@connectrpc/connect-query";
9263
+ import { useMutation as useMutation2, useQuery as useQuery8 } from "@connectrpc/connect-query";
9285
9264
  import {
9286
9265
  AdminServiceQueries as AdminServiceQueries7,
9287
9266
  SearchOrganizationsRequestSchema,
9288
- FrontierServiceQueries as FrontierServiceQueries6,
9267
+ FrontierServiceQueries as FrontierServiceQueries7,
9289
9268
  ListRolesRequestSchema
9290
9269
  } from "@raystack/proton/frontier";
9291
9270
  import { create as create3 } from "@bufbuild/protobuf";
@@ -9308,7 +9287,7 @@ var InviteUser = () => {
9308
9287
  data: organizations,
9309
9288
  isLoading: isOrganizationsLoading,
9310
9289
  error: organizationsError
9311
- } = useQuery7(
9290
+ } = useQuery8(
9312
9291
  AdminServiceQueries7.searchOrganizations,
9313
9292
  create3(SearchOrganizationsRequestSchema, { query: {} }),
9314
9293
  {
@@ -9319,8 +9298,8 @@ var InviteUser = () => {
9319
9298
  data: roles,
9320
9299
  isLoading: isRolesLoading,
9321
9300
  error: rolesError
9322
- } = useQuery7(
9323
- FrontierServiceQueries6.listRoles,
9301
+ } = useQuery8(
9302
+ FrontierServiceQueries7.listRoles,
9324
9303
  create3(ListRolesRequestSchema, { scopes: [SCOPES.ORG] }),
9325
9304
  {
9326
9305
  select: (data) => data?.roles || []
@@ -9354,7 +9333,7 @@ var InviteUser = () => {
9354
9333
  }
9355
9334
  });
9356
9335
  const { mutateAsync: inviteUser } = useMutation2(
9357
- FrontierServiceQueries6.createOrganizationInvitation,
9336
+ FrontierServiceQueries7.createOrganizationInvitation,
9358
9337
  {
9359
9338
  onSuccess: (data) => {
9360
9339
  const invitedCount = data?.invitations?.length ?? 0;
@@ -9586,8 +9565,8 @@ var Navbar2 = ({ searchQuery, onExportUsers }) => {
9586
9565
  };
9587
9566
  var navbar_default2 = Navbar2;
9588
9567
 
9589
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-8OfO6MuIHt1j/sdk/admin/views/users/list/list.module.css.js
9590
- var digest29 = "c5c0921d133b2890effa0fc0a28fe56bfcaf5428fba48410e1b9c253afdc7a77";
9568
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-27wzdSPaMmck/sdk/admin/views/users/list/list.module.css.js
9569
+ var digest29 = "7da8117b77b7733799287f0c3894be73d6b3e7d97e802abd3ae6301966cd5bce";
9591
9570
  var css29 = `._navbar_vt0az_1 {
9592
9571
  padding: var(--rs-space-4) var(--rs-space-7);
9593
9572
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -9656,10 +9635,9 @@ import {
9656
9635
  getAvatarColor as getAvatarColor2,
9657
9636
  Text as Text17
9658
9637
  } from "@raystack/apsara";
9659
- import dayjs8 from "dayjs";
9660
9638
 
9661
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-em7L0strHpnV/sdk/admin/views/users/list/list.module.css.js
9662
- var digest30 = "a5e7c3ee281f1fb5bce587b542de8adbcaff450269d58e3c261a59e1b46a8c8e";
9639
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-eqUkeuzJY9eB/sdk/admin/views/users/list/list.module.css.js
9640
+ var digest30 = "8c41ca3660ec6a8cfceaa6bd21ace82ce0e5e6a1d3bfb8111dab623c743391eb";
9663
9641
  var css30 = `._navbar_vt0az_1 {
9664
9642
  padding: var(--rs-space-4) var(--rs-space-7);
9665
9643
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -9781,10 +9759,9 @@ var getColumns10 = ({
9781
9759
  accessorKey: "createdAt",
9782
9760
  header: "Joined on",
9783
9761
  filterType: "date",
9762
+ enableColumnFilter: true,
9784
9763
  cell: ({ getValue }) => {
9785
- const value = getValue();
9786
- const date = isNullTimestamp(value) ? "-" : dayjs8(timestampToDate(value)).format("YYYY-MM-DD");
9787
- return /* @__PURE__ */ jsx43(Text17, { children: date });
9764
+ return /* @__PURE__ */ jsx43(Text17, { children: formatTimestamp(getValue()) });
9788
9765
  },
9789
9766
  enableHiding: true,
9790
9767
  enableSorting: true
@@ -9952,8 +9929,8 @@ import { Avatar as Avatar4, getAvatarColor as getAvatarColor3, SidePanel as Side
9952
9929
  // admin/views/users/details/layout/side-panel-details.tsx
9953
9930
  import { Flex as Flex29, List as List4, Text as Text18, CopyButton as CopyButton2, Tooltip as Tooltip2 } from "@raystack/apsara";
9954
9931
 
9955
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-MTmwxa0hPo0I/sdk/admin/views/users/details/layout/side-panel.module.css.js
9956
- var digest31 = "bd0de38fad3b28bed971b0bc9e2737171b6cc9ef1217407e8989aaf337e2250e";
9932
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-3sq1I0MJ5RuG/sdk/admin/views/users/details/layout/side-panel.module.css.js
9933
+ var digest31 = "3e69b72812e3a973fbc2702a2d5c33e417b552b968e2d9f1eaaee9a07512704d";
9957
9934
  var css31 = `._side-panel_t3ekz_1 {
9958
9935
  transform: all 0.3s ease-in-out;
9959
9936
  padding-bottom: var(--rs-space-15);
@@ -10056,7 +10033,7 @@ var SidePanelDetails2 = () => {
10056
10033
  /* @__PURE__ */ jsx45(List4.Label, { className: side_panel_module_css_default.listLabel, children: "Created on" }),
10057
10034
  /* @__PURE__ */ jsx45(List4.Value, { children: /* @__PURE__ */ jsxs30(Flex29, { gap: 3, children: [
10058
10035
  /* @__PURE__ */ jsx45(CalendarIcon, {}),
10059
- /* @__PURE__ */ jsx45(Text18, { children: timestampToDayjs(user?.createdAt)?.format("DD MMM YYYY") })
10036
+ /* @__PURE__ */ jsx45(Text18, { children: formatTimestamp(user?.createdAt) })
10060
10037
  ] }) })
10061
10038
  ] }),
10062
10039
  /* @__PURE__ */ jsxs30(List4.Item, { children: [
@@ -10068,10 +10045,9 @@ var SidePanelDetails2 = () => {
10068
10045
 
10069
10046
  // admin/views/users/details/layout/side-panel-membership.tsx
10070
10047
  import { Flex as Flex31, List as List5, Text as Text21, Avatar as Avatar3 } from "@raystack/apsara";
10071
- import dayjs9 from "dayjs";
10072
10048
 
10073
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-rgdjSxy8B3Eh/sdk/admin/views/users/details/layout/side-panel.module.css.js
10074
- var digest32 = "dd40954cde2ea413f0e6580017ef503a4d9b2bb0774f1d9430c6bcd49ed70435";
10049
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-onAz4sBbAM7A/sdk/admin/views/users/details/layout/side-panel.module.css.js
10050
+ var digest32 = "4d5dbf0d59d716648938ab1f872efa0b51ab30f1ef001419b82018b60cdbb49b";
10075
10051
  var css32 = `._side-panel_t3ekz_1 {
10076
10052
  transform: all 0.3s ease-in-out;
10077
10053
  padding-bottom: var(--rs-space-15);
@@ -10136,8 +10112,8 @@ var side_panel_module_css_default2 = { "side-panel": "_side-panel_t3ekz_1", "sid
10136
10112
  // admin/views/users/details/layout/membership-dropdown.tsx
10137
10113
  import { Text as Text20, Menu, Skeleton as Skeleton3 } from "@raystack/apsara";
10138
10114
 
10139
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-v4YxP5bC4qpv/sdk/admin/views/users/details/layout/side-panel.module.css.js
10140
- var digest33 = "1d925f53ac82a1311d40d0f9bd46851241176c3c383bfea867c66dba9f63ce35";
10115
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-sirxwRuXrMLe/sdk/admin/views/users/details/layout/side-panel.module.css.js
10116
+ var digest33 = "3c702b0f81d51b004540546f4f96981dd77ea13e2e9265f769afb81137c788c7";
10141
10117
  var css33 = `._side-panel_t3ekz_1 {
10142
10118
  transform: all 0.3s ease-in-out;
10143
10119
  padding-bottom: var(--rs-space-15);
@@ -10203,12 +10179,12 @@ var side_panel_module_css_default3 = { "side-panel": "_side-panel_t3ekz_1", "sid
10203
10179
  import { useMemo as useMemo4, useState as useState10 } from "react";
10204
10180
  import {
10205
10181
  SearchOrganizationUsersResponse_OrganizationUserSchema,
10206
- FrontierServiceQueries as FrontierServiceQueries8,
10182
+ FrontierServiceQueries as FrontierServiceQueries9,
10207
10183
  ListRolesRequestSchema as ListRolesRequestSchema2,
10208
10184
  ListOrganizationRolesRequestSchema
10209
10185
  } from "@raystack/proton/frontier";
10210
10186
  import { create as create5 } from "@bufbuild/protobuf";
10211
- import { useQuery as useQuery8 } from "@connectrpc/connect-query";
10187
+ import { useQuery as useQuery9 } from "@connectrpc/connect-query";
10212
10188
 
10213
10189
  // admin/components/AssignRole.tsx
10214
10190
  import {
@@ -10221,7 +10197,7 @@ import {
10221
10197
  toastManager as toastManager3
10222
10198
  } from "@raystack/apsara";
10223
10199
  import {
10224
- FrontierServiceQueries as FrontierServiceQueries7,
10200
+ FrontierServiceQueries as FrontierServiceQueries8,
10225
10201
  SetOrganizationMemberRoleRequestSchema
10226
10202
  } from "@raystack/proton/frontier";
10227
10203
  import { create as create4 } from "@bufbuild/protobuf";
@@ -10253,7 +10229,7 @@ var AssignRole = ({
10253
10229
  resolver: zodResolver2(formSchema)
10254
10230
  });
10255
10231
  const { mutateAsync: setMemberRole } = useMutation3(
10256
- FrontierServiceQueries7.setOrganizationMemberRole
10232
+ FrontierServiceQueries8.setOrganizationMemberRole
10257
10233
  );
10258
10234
  const selectedRoleId = watch("roleId");
10259
10235
  const onSubmit = async (data) => {
@@ -10420,15 +10396,15 @@ var MembershipDropdown = ({
10420
10396
  const [isAssignRoleDialogOpen, setIsAssignRoleDialogOpen] = useState10(false);
10421
10397
  const [isSuspendDialogOpen, setIsSuspendDialogOpen] = useState10(false);
10422
10398
  const { user } = useUser();
10423
- const { data: defaultRoles = [], isLoading: isDefaultRolesLoading, error: defaultRolesError } = useQuery8(
10424
- FrontierServiceQueries8.listRoles,
10399
+ const { data: defaultRoles = [], isLoading: isDefaultRolesLoading, error: defaultRolesError } = useQuery9(
10400
+ FrontierServiceQueries9.listRoles,
10425
10401
  create5(ListRolesRequestSchema2, { scopes: [SCOPES.ORG] }),
10426
10402
  {
10427
10403
  select: (data2) => data2?.roles || []
10428
10404
  }
10429
10405
  );
10430
- const { data: organizationRoles = [], isLoading: isOrgRolesLoading, error: orgRolesError } = useQuery8(
10431
- FrontierServiceQueries8.listOrganizationRoles,
10406
+ const { data: organizationRoles = [], isLoading: isOrgRolesLoading, error: orgRolesError } = useQuery9(
10407
+ FrontierServiceQueries9.listOrganizationRoles,
10432
10408
  create5(ListOrganizationRolesRequestSchema, {
10433
10409
  orgId: data?.orgId || "",
10434
10410
  scopes: [SCOPES.ORG]
@@ -10552,7 +10528,7 @@ var SidePanelMembership = ({
10552
10528
  /* @__PURE__ */ jsx49(List5.Label, { className: side_panel_module_css_default2.listLabel, children: "Joined on" }),
10553
10529
  /* @__PURE__ */ jsx49(List5.Value, { children: /* @__PURE__ */ jsxs34(Flex31, { gap: 3, children: [
10554
10530
  /* @__PURE__ */ jsx49(CalendarIcon, {}),
10555
- /* @__PURE__ */ jsx49(Text21, { children: data?.orgJoinedOn && !isNullTimestamp(data.orgJoinedOn) ? dayjs9(timestampToDate(data.orgJoinedOn)).format("DD MMM YYYY") : "-" })
10531
+ /* @__PURE__ */ jsx49(Text21, { children: formatTimestamp(data?.orgJoinedOn) })
10556
10532
  ] }) })
10557
10533
  ] }),
10558
10534
  /* @__PURE__ */ jsxs34(List5.Item, { children: [
@@ -10562,8 +10538,8 @@ var SidePanelMembership = ({
10562
10538
  ] });
10563
10539
  };
10564
10540
 
10565
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-12BghGwaXZGo/sdk/admin/views/users/details/layout/side-panel.module.css.js
10566
- var digest34 = "af00ff875264022045c7a25e53d0c6cfbfa8a9bd4d3d842064e950eedc1cacf6";
10541
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-Jn9ZCLC5wM5k/sdk/admin/views/users/details/layout/side-panel.module.css.js
10542
+ var digest34 = "36b794fb79dcd40c0393b5dcde1567dcc11a27a1446afb4824be4c48e81db5f3";
10567
10543
  var css34 = `._side-panel_t3ekz_1 {
10568
10544
  transform: all 0.3s ease-in-out;
10569
10545
  padding-bottom: var(--rs-space-15);
@@ -10627,7 +10603,7 @@ var side_panel_module_css_default4 = { "side-panel": "_side-panel_t3ekz_1", "sid
10627
10603
 
10628
10604
  // admin/views/users/details/layout/side-panel.tsx
10629
10605
  import { AdminServiceQueries as AdminServiceQueries9 } from "@raystack/proton/frontier";
10630
- import { useQuery as useQuery9 } from "@connectrpc/connect-query";
10606
+ import { useQuery as useQuery10 } from "@connectrpc/connect-query";
10631
10607
  import { jsx as jsx50, jsxs as jsxs35 } from "react/jsx-runtime";
10632
10608
  var UserDetailsSidePanel = () => {
10633
10609
  const { user } = useUser();
@@ -10636,7 +10612,7 @@ var UserDetailsSidePanel = () => {
10636
10612
  isLoading,
10637
10613
  refetch: onReset,
10638
10614
  error
10639
- } = useQuery9(
10615
+ } = useQuery10(
10640
10616
  AdminServiceQueries9.searchUserOrganizations,
10641
10617
  {
10642
10618
  id: user?.id || "",
@@ -10683,8 +10659,8 @@ var UserDetailsSidePanel = () => {
10683
10659
  );
10684
10660
  };
10685
10661
 
10686
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-lYFF7MUoofJx/sdk/admin/views/users/details/layout/layout.module.css.js
10687
- var digest35 = "3c638f521a747d43d898e965a8652fb5486073db9f9bcf63cfe7cad74200eec6";
10662
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-fEkGq3HmyIAd/sdk/admin/views/users/details/layout/layout.module.css.js
10663
+ var digest35 = "a052784be82602e96a245e57b07b9c4d0877c700a8e53e78ea07614230dcc6bc";
10688
10664
  var css35 = `._page_190wz_1 {
10689
10665
  height: 100vh;
10690
10666
  width: 100%;
@@ -10725,8 +10701,8 @@ import {
10725
10701
  } from "@raystack/apsara";
10726
10702
  import { SidebarIcon } from "@raystack/apsara/icons";
10727
10703
 
10728
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-GPdrHUm9Z38w/sdk/admin/views/users/details/layout/navbar.module.css.js
10729
- var digest36 = "0ef8dd7a3f9da4af7e9430ad6441bc495613a312f2237ecdee040a5f7fbfd065";
10704
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-HvjgmRCCHKAX/sdk/admin/views/users/details/layout/navbar.module.css.js
10705
+ var digest36 = "48ec85943b16eba87b7ef38b77c53689f9a96dccc84bb288ce92f8ae385bc6a0";
10730
10706
  var css36 = `._navbar_1ahsl_1 {
10731
10707
  padding: var(--rs-space-4) var(--rs-space-7);
10732
10708
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -10846,8 +10822,8 @@ var UserDetailsLayout = ({ children, currentPath, onNavigate }) => {
10846
10822
  };
10847
10823
 
10848
10824
  // admin/views/users/details/user-details.tsx
10849
- import { useQuery as useQuery11 } from "@connectrpc/connect-query";
10850
- import { FrontierServiceQueries as FrontierServiceQueries10 } from "@raystack/proton/frontier";
10825
+ import { useQuery as useQuery12 } from "@connectrpc/connect-query";
10826
+ import { FrontierServiceQueries as FrontierServiceQueries11 } from "@raystack/proton/frontier";
10851
10827
 
10852
10828
  // admin/views/users/details/security/security.tsx
10853
10829
  import { Flex as Flex36, Separator as Separator3, Text as Text24 } from "@raystack/apsara";
@@ -10860,7 +10836,7 @@ import {
10860
10836
  useMutation as useMutation4,
10861
10837
  useTransport as useTransport3
10862
10838
  } from "@connectrpc/connect-query";
10863
- import { FrontierServiceQueries as FrontierServiceQueries9 } from "@raystack/proton/frontier";
10839
+ import { FrontierServiceQueries as FrontierServiceQueries10 } from "@raystack/proton/frontier";
10864
10840
  import { useQueryClient as useQueryClient4 } from "@tanstack/react-query";
10865
10841
  import { jsx as jsx53, jsxs as jsxs38 } from "react/jsx-runtime";
10866
10842
  var BlockUserDialog = () => {
@@ -10875,7 +10851,7 @@ var BlockUserDialog = () => {
10875
10851
  (state) => {
10876
10852
  queryClient.setQueryData(
10877
10853
  createConnectQueryKey2({
10878
- schema: FrontierServiceQueries9.getUser,
10854
+ schema: FrontierServiceQueries10.getUser,
10879
10855
  transport,
10880
10856
  input: { id: user?.id || "" },
10881
10857
  cardinality: "finite"
@@ -10893,7 +10869,7 @@ var BlockUserDialog = () => {
10893
10869
  [queryClient, transport, user?.id]
10894
10870
  );
10895
10871
  const { mutateAsync: blockUser, isPending: isBlockingUser } = useMutation4(
10896
- FrontierServiceQueries9.disableUser,
10872
+ FrontierServiceQueries10.disableUser,
10897
10873
  {
10898
10874
  onSuccess: () => {
10899
10875
  toastManager5.add({ title: `${t.user({ case: "capital" })} blocked successfully`, type: "success" });
@@ -10904,7 +10880,7 @@ var BlockUserDialog = () => {
10904
10880
  }
10905
10881
  );
10906
10882
  const { mutateAsync: unblockUser, isPending: isUnblockingUser } = useMutation4(
10907
- FrontierServiceQueries9.enableUser,
10883
+ FrontierServiceQueries10.enableUser,
10908
10884
  {
10909
10885
  onSuccess: () => {
10910
10886
  toastManager5.add({ title: `${t.user({ case: "capital" })} unblocked successfully`, type: "success" });
@@ -11082,8 +11058,8 @@ var RevokeSessionFinalConfirm = ({
11082
11058
  ] }) });
11083
11059
  };
11084
11060
 
11085
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-RmwU2WjsBvea/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
11086
- var digest37 = "d695aae6e05d17ab673b5e6a9f57adc274ac395116fdcb5aab667ca62df53353";
11061
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-RreieTG124a4/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
11062
+ var digest37 = "3fa0d6398728e4665d08ab7049c953424d988c61cd88629b5457517835187855";
11087
11063
  var css37 = `._sessionsContainer_jptao_1 {
11088
11064
  border: 1px solid var(--rs-color-border-base-primary);
11089
11065
  border-radius: var(--rs-radius-2);
@@ -11220,8 +11196,8 @@ var RevokeSessionConfirm = ({ isOpen, onOpenChange, sessionInfo, onRevokeConfirm
11220
11196
  // admin/views/users/details/security/sessions/session-skeleton.tsx
11221
11197
  import { Flex as Flex34, Skeleton as Skeleton4 } from "@raystack/apsara";
11222
11198
 
11223
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-1mftQ7WWLUfj/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
11224
- var digest38 = "ee17d33822445e7bdb01f3a74e354b68aded8e4d4fd1fdd1cb66f9d6b3336f7b";
11199
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-ifZJ9QYTjy09/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
11200
+ var digest38 = "a49a6540c3e3bdbbbff6bdcb617494a70605b9d5e9d56169467bb1c5caaf6c83";
11225
11201
  var css38 = `._sessionsContainer_jptao_1 {
11226
11202
  border: 1px solid var(--rs-color-border-base-primary);
11227
11203
  border-radius: var(--rs-radius-2);
@@ -11294,14 +11270,14 @@ var SessionSkeleton = ({ count = 3 }) => {
11294
11270
  };
11295
11271
 
11296
11272
  // admin/views/users/details/security/sessions/index.tsx
11297
- import { useQuery as useQuery10, useMutation as useMutation5, createConnectQueryKey as createConnectQueryKey3, useTransport as useTransport4 } from "@connectrpc/connect-query";
11273
+ import { useQuery as useQuery11, useMutation as useMutation5, createConnectQueryKey as createConnectQueryKey3, useTransport as useTransport4 } from "@connectrpc/connect-query";
11298
11274
  import { useQueryClient as useQueryClient5 } from "@tanstack/react-query";
11299
11275
  import { AdminServiceQueries as AdminServiceQueries10 } from "@raystack/proton/frontier";
11300
- import dayjs10 from "dayjs";
11276
+ import dayjs3 from "dayjs";
11301
11277
  import relativeTime from "dayjs/plugin/relativeTime";
11302
11278
 
11303
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-xe9cgP7dfASL/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
11304
- var digest39 = "752cb88508aebba921604934ff7036aee2112de33b2d6558c7b22035cc0c7b92";
11279
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-zbHQsWXAcQap/sdk/admin/views/users/details/security/sessions/sessions.module.css.js
11280
+ var digest39 = "8bee819ee658e26fa30dde666a0f16963fa88b0dc47f22b5b32712e5f525d51d";
11305
11281
  var css39 = `._sessionsContainer_jptao_1 {
11306
11282
  border: 1px solid var(--rs-color-border-base-primary);
11307
11283
  border-radius: var(--rs-radius-2);
@@ -11379,7 +11355,7 @@ var formatLocation = (location) => {
11379
11355
  }
11380
11356
  return "Unknown location";
11381
11357
  };
11382
- dayjs10.extend(relativeTime);
11358
+ dayjs3.extend(relativeTime);
11383
11359
  var getErrorMessage = (error) => {
11384
11360
  if (error?.status === 500) {
11385
11361
  return "Something went wrong";
@@ -11401,7 +11377,7 @@ var UserSessions = () => {
11401
11377
  data: sessionsData,
11402
11378
  isLoading,
11403
11379
  error
11404
- } = useQuery10(
11380
+ } = useQuery11(
11405
11381
  AdminServiceQueries10.listUserSessions,
11406
11382
  { userId: user?.id || "" },
11407
11383
  {
@@ -11453,7 +11429,7 @@ var UserSessions = () => {
11453
11429
  const date = timestampToDate(updatedAt);
11454
11430
  if (!date)
11455
11431
  return "Unknown";
11456
- return dayjs10(date).fromNow();
11432
+ return dayjs3(date).fromNow();
11457
11433
  };
11458
11434
  const renderSessionsHeader = () => /* @__PURE__ */ jsxs42(Flex35, { direction: "column", gap: 3, children: [
11459
11435
  /* @__PURE__ */ jsx57(Text23, { size: "large", weight: "medium", children: "Sessions" }),
@@ -11510,8 +11486,8 @@ var UserSessions = () => {
11510
11486
  ] });
11511
11487
  };
11512
11488
 
11513
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-tvKe9Z1VDW6p/sdk/admin/views/users/details/security/security.module.css.js
11514
- var digest40 = "aa64c123c54d2dffab71e2a650d3334d9038a4f6655722433fe8ce5e5f011109";
11489
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-aLxOSDG10m6G/sdk/admin/views/users/details/security/security.module.css.js
11490
+ var digest40 = "013c757792bd2f18cb9632208c343e0f93631654a52f54075d84b858a10a1202";
11515
11491
  var css40 = `._container_4259p_1 {
11516
11492
  width: 100%;
11517
11493
  }
@@ -11567,8 +11543,8 @@ var UserDetailContent = ({ user, refetch, currentPath, onNavigate }) => {
11567
11543
  };
11568
11544
  var UserDetailsByUserId = ({ userId, currentPath, onNavigate }) => {
11569
11545
  const t = useTerminology();
11570
- const { data, isLoading, refetch } = useQuery11(
11571
- FrontierServiceQueries10.getUser,
11546
+ const { data, isLoading, refetch } = useQuery12(
11547
+ FrontierServiceQueries11.getUser,
11572
11548
  { id: userId },
11573
11549
  {
11574
11550
  enabled: !!userId,
@@ -11645,8 +11621,8 @@ import {
11645
11621
  } from "@raystack/apsara";
11646
11622
  import { OrganizationIcon } from "@raystack/apsara/icons";
11647
11623
 
11648
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-vhVKnHRxrtlM/sdk/admin/views/organizations/list/list.module.css.js
11649
- var digest41 = "f7ab2d477c8daa5e9d54b45d2e9840b836f9dee566658672b12c4207ff9c946d";
11624
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-t5Uevp0Bixab/sdk/admin/views/organizations/list/list.module.css.js
11625
+ var digest41 = "f2019820bbfd2a284aab8a0d46b46ad79ff9688c546e6adb97ab6b20dad02cdd";
11650
11626
  var css41 = `._navbar_1laab_1 {
11651
11627
  padding: var(--rs-space-4) var(--rs-space-7);
11652
11628
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -11833,8 +11809,8 @@ var OrganizationsNavabar = ({
11833
11809
  ] });
11834
11810
  };
11835
11811
 
11836
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-Uy0Eyi9kG6Xw/sdk/admin/views/organizations/list/list.module.css.js
11837
- var digest42 = "71280033d590e1f61fe24beec3fc64a40897067e53d6a5d9d0aa6f9970e385ed";
11812
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-t4lp0hY8P6GC/sdk/admin/views/organizations/list/list.module.css.js
11813
+ var digest42 = "b926776479a7b6c5576d8417b92c9818d0f249a91133fb16e19f575335f0b95c";
11838
11814
  var css42 = `._navbar_1laab_1 {
11839
11815
  padding: var(--rs-space-4) var(--rs-space-7);
11840
11816
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -11943,10 +11919,9 @@ import {
11943
11919
  getAvatarColor as getAvatarColor5,
11944
11920
  Text as Text26
11945
11921
  } from "@raystack/apsara";
11946
- import dayjs11 from "dayjs";
11947
11922
 
11948
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-hfPyg0Kj8NOG/sdk/admin/views/organizations/list/list.module.css.js
11949
- var digest43 = "428aee1e3d1eda67f8cc0c9c9db9354e4bed3fdaf7678fa216acd4f610ae2229";
11923
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-csmAZQkhcu3e/sdk/admin/views/organizations/list/list.module.css.js
11924
+ var digest43 = "7100a14ea4f5164d9c69abe3989df74e692e9f860ea5d562c77298eff752d814";
11950
11925
  var css43 = `._navbar_1laab_1 {
11951
11926
  padding: var(--rs-space-4) var(--rs-space-7);
11952
11927
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -12138,11 +12113,7 @@ var getColumns11 = ({
12138
12113
  accessorKey: "subscriptionCycleEndAt",
12139
12114
  header: "Cycle ends on",
12140
12115
  filterType: "date",
12141
- cell: ({ getValue }) => {
12142
- const value = getValue();
12143
- const date = isNullTimestamp(value) ? "-" : dayjs11(timestampToDate(value)).format("YYYY-MM-DD");
12144
- return /* @__PURE__ */ jsx62(Text26, { children: date });
12145
- },
12116
+ cell: ({ getValue }) => /* @__PURE__ */ jsx62(Text26, { children: formatTimestamp(getValue()) }),
12146
12117
  enableColumnFilter: true,
12147
12118
  // enableSorting: true,
12148
12119
  enableHiding: true
@@ -12189,11 +12160,8 @@ var getColumns11 = ({
12189
12160
  accessorKey: "createdAt",
12190
12161
  header: "Created On",
12191
12162
  filterType: "date",
12192
- cell: ({ getValue }) => {
12193
- const value = getValue();
12194
- const date = isNullTimestamp(value) ? "-" : dayjs11(timestampToDate(value)).format("YYYY-MM-DD");
12195
- return /* @__PURE__ */ jsx62(Text26, { children: date });
12196
- },
12163
+ enableColumnFilter: true,
12164
+ cell: ({ getValue }) => /* @__PURE__ */ jsx62(Text26, { children: formatTimestamp(getValue()) }),
12197
12165
  enableHiding: true,
12198
12166
  defaultHidden: true,
12199
12167
  enableSorting: true
@@ -12202,10 +12170,10 @@ var getColumns11 = ({
12202
12170
  };
12203
12171
 
12204
12172
  // admin/views/organizations/list/index.tsx
12205
- import { useInfiniteQuery as useInfiniteQuery4, useQuery as useQuery12 } from "@connectrpc/connect-query";
12173
+ import { useInfiniteQuery as useInfiniteQuery4, useQuery as useQuery13 } from "@connectrpc/connect-query";
12206
12174
  import {
12207
12175
  AdminServiceQueries as AdminServiceQueries12,
12208
- FrontierServiceQueries as FrontierServiceQueries11,
12176
+ FrontierServiceQueries as FrontierServiceQueries12,
12209
12177
  ListPlansRequestSchema
12210
12178
  } from "@raystack/proton/frontier";
12211
12179
  import { create as create6 } from "@bufbuild/protobuf";
@@ -12213,8 +12181,8 @@ import { create as create6 } from "@bufbuild/protobuf";
12213
12181
  // admin/views/organizations/list/create.tsx
12214
12182
  import { useCallback as useCallback6, useEffect as useEffect5, useMemo as useMemo5, useState as useState17 } from "react";
12215
12183
 
12216
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-L6MKlQRi8wMw/sdk/admin/views/organizations/list/list.module.css.js
12217
- var digest44 = "8810676a5d58e7d8760ed7dfe8253e8b9dbd2d2665a4a956194ee83d53aad731";
12184
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-BZwe8ro34P56/sdk/admin/views/organizations/list/list.module.css.js
12185
+ var digest44 = "8e73ca977f92d53d72203baddb5e7b00d2e7fca0ceb7a5fab4244ea92447cc1d";
12218
12186
  var css44 = `._navbar_1laab_1 {
12219
12187
  padding: var(--rs-space-4) var(--rs-space-7);
12220
12188
  border-bottom: 0.5px solid var(--rs-color-border-base-primary);
@@ -12344,8 +12312,8 @@ import {
12344
12312
  } from "@raystack/apsara";
12345
12313
  import "react-image-crop/dist/ReactCrop.css";
12346
12314
 
12347
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-6HCCMi5e2DUa/sdk/client/components/image-upload/image-upload.module.css.js
12348
- var digest45 = "9d4a79ccfc14cf28afba5ac35a3e0f188ca2ee5cac0e5cc0922923b524e7933b";
12315
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-1M6LqkyglUpi/sdk/client/components/image-upload/image-upload.module.css.js
12316
+ var digest45 = "a18275f168931dc89f17b00438b07076e63d3245851d64d03f70aef2d4f5a74e";
12349
12317
  var css45 = `._iconButton_1ifr2_1 {
12350
12318
  position: relative;
12351
12319
  width: var(--rs-space-14);
@@ -12738,7 +12706,7 @@ function CreateOrganizationPanel({
12738
12706
  const orgResp = await createOrganization({ body: payload });
12739
12707
  const organization = orgResp.organization;
12740
12708
  if (organization?.id) {
12741
- onSuccess?.(organization.id);
12709
+ onSuccess?.(organization.name || organization.id, organization.id);
12742
12710
  }
12743
12711
  } catch (err) {
12744
12712
  console.error("Unable to create new org:", err);
@@ -12967,8 +12935,8 @@ var OrganizationListView = ({
12967
12935
  retryDelay: 1e3
12968
12936
  }
12969
12937
  );
12970
- const { data: plans = [], isLoading: isPlansLoading, error: plansError } = useQuery12(
12971
- FrontierServiceQueries11.listPlans,
12938
+ const { data: plans = [], isLoading: isPlansLoading, error: plansError } = useQuery13(
12939
+ FrontierServiceQueries12.listPlans,
12972
12940
  create6(ListPlansRequestSchema, {}),
12973
12941
  {
12974
12942
  select: (data2) => data2?.plans || []
@@ -13019,7 +12987,7 @@ var OrganizationListView = ({
13019
12987
  const tableClassName = data.length || loading ? list_module_css_default5["table"] : list_module_css_default5["table-empty"];
13020
12988
  function onRowClick(row) {
13021
12989
  if (row.id && onNavigateToOrg)
13022
- onNavigateToOrg(row.id);
12990
+ onNavigateToOrg(row.name || row.id, row.id);
13023
12991
  }
13024
12992
  return /* @__PURE__ */ jsxs49(Fragment10, { children: [
13025
12993
  /* @__PURE__ */ jsx65(
@@ -13030,9 +12998,9 @@ var OrganizationListView = ({
13030
12998
  organizationTypes,
13031
12999
  appUrl,
13032
13000
  countries,
13033
- onSuccess: (id) => {
13001
+ onSuccess: (slug, orgId) => {
13034
13002
  closeCreateOrgPanel();
13035
- onNavigateToOrg?.(id);
13003
+ onNavigateToOrg?.(slug, orgId);
13036
13004
  }
13037
13005
  }
13038
13006
  ),
@@ -13081,7 +13049,7 @@ var OrganizationListView = ({
13081
13049
  // admin/views/organizations/details/index.tsx
13082
13050
  import { useEffect as useEffect11, useMemo as useMemo8, useState as useState22 } from "react";
13083
13051
  import {
13084
- useQuery as useQuery16,
13052
+ useQuery as useQuery17,
13085
13053
  createConnectQueryKey as createConnectQueryKey8,
13086
13054
  useTransport as useTransport9
13087
13055
  } from "@connectrpc/connect-query";
@@ -13104,8 +13072,8 @@ import {
13104
13072
  Search
13105
13073
  } from "@raystack/apsara";
13106
13074
 
13107
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-fpCpNdhczTTq/sdk/admin/views/organizations/details/layout/layout.module.css.js
13108
- var digest46 = "4294b2ea4ffdb8497416f7e32424b7f35124bd48ce51e35a9e6ea4cea5bd578e";
13075
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-N7Uwat6sR3Eu/sdk/admin/views/organizations/details/layout/layout.module.css.js
13076
+ var digest46 = "4372dd167d6b7a9b8fdbd1a7e5dd06d6015e67adae3528456ca762933df2b27f";
13109
13077
  var css46 = `._page_1jsqa_1 {
13110
13078
  width: 100%;
13111
13079
  height: 100vh;
@@ -13210,8 +13178,8 @@ import {
13210
13178
  } from "@raystack/apsara";
13211
13179
  import { useContext as useContext4, useMemo as useMemo6 } from "react";
13212
13180
 
13213
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-PiMa6LYhee0P/sdk/admin/views/organizations/details/layout/layout.module.css.js
13214
- var digest47 = "674555eb04f524cee4751b045a327510f4a7baf97619676a25d7208992c5ea0c";
13181
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-Y3lzW0UP2xS8/sdk/admin/views/organizations/details/layout/layout.module.css.js
13182
+ var digest47 = "12592082aac01cdd8ec2f39e7e1fecedf4b86c4c417bc7460c714d87fb076914";
13215
13183
  var css47 = `._page_1jsqa_1 {
13216
13184
  width: 100%;
13217
13185
  height: 100vh;
@@ -13364,7 +13332,7 @@ import {
13364
13332
  } from "@connectrpc/connect-query";
13365
13333
  import { useQueryClient as useQueryClient6 } from "@tanstack/react-query";
13366
13334
  import {
13367
- FrontierServiceQueries as FrontierServiceQueries12,
13335
+ FrontierServiceQueries as FrontierServiceQueries13,
13368
13336
  CreateOrganizationInvitationRequestSchema
13369
13337
  } from "@raystack/proton/frontier";
13370
13338
  import { create as create8 } from "@bufbuild/protobuf";
@@ -13394,12 +13362,12 @@ var InviteUsersDialog = ({ onOpenChange }) => {
13394
13362
  }
13395
13363
  });
13396
13364
  const { mutateAsync: createInvitation } = useMutation7(
13397
- FrontierServiceQueries12.createOrganizationInvitation,
13365
+ FrontierServiceQueries13.createOrganizationInvitation,
13398
13366
  {
13399
13367
  onSuccess: (data) => {
13400
13368
  queryClient.invalidateQueries({
13401
13369
  queryKey: createConnectQueryKey4({
13402
- schema: FrontierServiceQueries12.listOrganizationInvitations,
13370
+ schema: FrontierServiceQueries13.listOrganizationInvitations,
13403
13371
  transport,
13404
13372
  input: { orgId: organizationId },
13405
13373
  cardinality: "finite"
@@ -13522,8 +13490,8 @@ import {
13522
13490
  import { useContext as useContext5 } from "react";
13523
13491
  import { Controller as Controller4, FormProvider as FormProvider2, useForm as useForm5 } from "react-hook-form";
13524
13492
 
13525
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-Xg3jUHOipJcw/sdk/admin/views/organizations/details/layout/layout.module.css.js
13526
- var digest48 = "cc656bf7e1dc90105849adaa4f8acb9b3509184a316646c31d5ae624306ee722";
13493
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-cRP5JcEm8hc6/sdk/admin/views/organizations/details/layout/layout.module.css.js
13494
+ var digest48 = "4afd5d5c1c0eb656f7ce987ca9628719cf1bff9b7ed2fbd37535acb0846bf23b";
13527
13495
  var css48 = `._page_1jsqa_1 {
13528
13496
  width: 100%;
13529
13497
  height: 100vh;
@@ -13620,7 +13588,7 @@ var layout_module_css_default4 = { "page": "_page_1jsqa_1", "main_content": "_ma
13620
13588
  import { zodResolver as zodResolver5 } from "@hookform/resolvers/zod";
13621
13589
  import { useMutation as useMutation8, createConnectQueryKey as createConnectQueryKey5, useTransport as useTransport6 } from "@connectrpc/connect-query";
13622
13590
  import { useQueryClient as useQueryClient7 } from "@tanstack/react-query";
13623
- import { AdminServiceQueries as AdminServiceQueries13, CheckoutProductBodySchema, DelegatedCheckoutRequestSchema, FrontierServiceQueries as FrontierServiceQueries13 } from "@raystack/proton/frontier";
13591
+ import { AdminServiceQueries as AdminServiceQueries13, CheckoutProductBodySchema, DelegatedCheckoutRequestSchema, FrontierServiceQueries as FrontierServiceQueries14 } from "@raystack/proton/frontier";
13624
13592
  import { create as create9 } from "@bufbuild/protobuf";
13625
13593
  import { jsx as jsx67, jsxs as jsxs51 } from "react/jsx-runtime";
13626
13594
  var addTokensSchema = objectType({
@@ -13649,7 +13617,7 @@ var AddTokensDialog = ({ onOpenChange }) => {
13649
13617
  onSuccess: () => {
13650
13618
  queryClient.invalidateQueries({
13651
13619
  queryKey: createConnectQueryKey5({
13652
- schema: FrontierServiceQueries13.searchOrganizationTokens,
13620
+ schema: FrontierServiceQueries14.searchOrganizationTokens,
13653
13621
  transport,
13654
13622
  input: { id: organisationId },
13655
13623
  cardinality: "infinite"
@@ -13904,7 +13872,10 @@ var NavLinks = ({
13904
13872
  }) => {
13905
13873
  const t = useTerminology();
13906
13874
  const paths = useAdminPaths();
13907
- const basePath = `/${paths.organizations}/${organizationId}`;
13875
+ const orgPrefix = `/${paths.organizations}/`;
13876
+ const path = currentPath.split(/[?#]/)[0];
13877
+ const orgSegment = path.startsWith(orgPrefix) ? path.slice(orgPrefix.length).split("/")[0] : organizationId;
13878
+ const basePath = `/${paths.organizations}/${orgSegment}`;
13908
13879
  const links = [
13909
13880
  { name: t.member({ plural: true, case: "capital" }), path: `${basePath}/${paths.members}` },
13910
13881
  { name: t.project({ plural: true, case: "capital" }), path: `${basePath}/${paths.projects}` },
@@ -13914,8 +13885,8 @@ var NavLinks = ({
13914
13885
  { name: "PAT", path: `${basePath}/pat` },
13915
13886
  { name: "Security", path: `${basePath}/security` }
13916
13887
  ];
13917
- function checkActive(path) {
13918
- return currentPath.startsWith(path);
13888
+ function checkActive(path2) {
13889
+ return currentPath.startsWith(path2);
13919
13890
  }
13920
13891
  return /* @__PURE__ */ jsx68(Flex45, { gap: 3, children: links.map((link, i) => {
13921
13892
  const isActive = checkActive(link.path);
@@ -13959,6 +13930,10 @@ var OrganizationsDetailsNavabar = ({
13959
13930
  Breadcrumb2.Item,
13960
13931
  {
13961
13932
  href: `/${adminPaths.organizations}`,
13933
+ onClick: (e) => {
13934
+ e.preventDefault();
13935
+ onNavigate(`/${adminPaths.organizations}`);
13936
+ },
13962
13937
  leadingIcon: /* @__PURE__ */ jsx68(OrganizationIcon3, {}),
13963
13938
  children: t.organization({ plural: true, case: "capital" })
13964
13939
  }
@@ -13967,7 +13942,14 @@ var OrganizationsDetailsNavabar = ({
13967
13942
  /* @__PURE__ */ jsx68(
13968
13943
  Breadcrumb2.Item,
13969
13944
  {
13970
- href: `/${adminPaths.organizations}/${organization?.id}`,
13945
+ href: `/${adminPaths.organizations}/${organization.name || organization.id}`,
13946
+ onClick: (e) => {
13947
+ e.preventDefault();
13948
+ onNavigate(
13949
+ `/${adminPaths.organizations}/${organization.name || organization.id}`,
13950
+ { orgId: organization.id }
13951
+ );
13952
+ },
13971
13953
  leadingIcon: /* @__PURE__ */ jsx68(
13972
13954
  Avatar8,
13973
13955
  {
@@ -14029,8 +14011,8 @@ var OrganizationsDetailsNavabar = ({
14029
14011
  ] });
14030
14012
  };
14031
14013
 
14032
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-KaJDU0tJUuIG/sdk/admin/views/organizations/details/layout/layout.module.css.js
14033
- var digest49 = "ec8e571c54b0ff6d7fff48becf457f105ab260449c1ae6031b6b49e0c770963d";
14014
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-x8LIXfylhXb5/sdk/admin/views/organizations/details/layout/layout.module.css.js
14015
+ var digest49 = "41f202748f18fecf402fcdad3142c74e4cc6b863e8fbc9d0f0c2cfd3fa9abfd5";
14034
14016
  var css49 = `._page_1jsqa_1 {
14035
14017
  width: 100%;
14036
14018
  height: 100vh;
@@ -14132,8 +14114,8 @@ import { Avatar as Avatar9, getAvatarColor as getAvatarColor7, SidePanel as Side
14132
14114
  // admin/views/organizations/details/side-panel/org-details-section.tsx
14133
14115
  import { Flex as Flex46, List as List7, Text as Text31, CopyButton as CopyButton3, Tooltip as Tooltip3 } from "@raystack/apsara";
14134
14116
 
14135
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-AZhk9npJrksz/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
14136
- var digest50 = "1774d7fa3bc9d1d95e67871eacba7f73ce4dc6a251cd6e2101f536a644d07221";
14117
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-xNr3cGZbOrq1/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
14118
+ var digest50 = "f6c6e4c48258e5d0129f94330b0d6a4f45ad51647715ecc4c92e1a0ce58a53da";
14137
14119
  var css50 = `._side-panel-section-item-label_slrfc_1 {
14138
14120
  width: 120px;
14139
14121
  }
@@ -14197,7 +14179,6 @@ var css50 = `._side-panel-section-item-label_slrfc_1 {
14197
14179
  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" };
14198
14180
 
14199
14181
  // admin/views/organizations/details/side-panel/org-details-section.tsx
14200
- import dayjs12 from "dayjs";
14201
14182
  import { useContext as useContext7 } from "react";
14202
14183
  import { jsx as jsx69, jsxs as jsxs53 } from "react/jsx-runtime";
14203
14184
  var OrganizationDetailsSection = ({
@@ -14235,9 +14216,7 @@ var OrganizationDetailsSection = ({
14235
14216
  /* @__PURE__ */ jsx69(List7.Label, { className: side_panel_module_css_default5["side-panel-section-item-label"], children: "Created on" }),
14236
14217
  /* @__PURE__ */ jsx69(List7.Value, { children: /* @__PURE__ */ jsxs53(Flex46, { gap: 3, children: [
14237
14218
  /* @__PURE__ */ jsx69(CalendarIcon, {}),
14238
- /* @__PURE__ */ jsx69(Text31, { children: dayjs12(timestampToDate(organization.createdAt)).format(
14239
- "DD MMM YYYY"
14240
- ) })
14219
+ /* @__PURE__ */ jsx69(Text31, { children: formatTimestamp(organization.createdAt) })
14241
14220
  ] }) })
14242
14221
  ] }),
14243
14222
  /* @__PURE__ */ jsxs53(List7.Item, { children: [
@@ -14263,8 +14242,8 @@ var OrganizationDetailsSection = ({
14263
14242
  import { Flex as Flex47, List as List8, Text as Text32, Link as Link2, Tooltip as Tooltip4 } from "@raystack/apsara";
14264
14243
  import { useContext as useContext8 } from "react";
14265
14244
 
14266
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-2yC1KB74jEmM/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
14267
- var digest51 = "14e48af34aa68e099cd1f57cb108fda7c068199ef6fa1c955d76343336da577d";
14245
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-N4cA3WE5s6AO/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
14246
+ var digest51 = "fbe38c3de20874498dea8c1313415bbde053c640a0eec6308251180f586976ab";
14268
14247
  var css51 = `._side-panel-section-item-label_slrfc_1 {
14269
14248
  width: 120px;
14270
14249
  }
@@ -14390,8 +14369,8 @@ var KYCDetailsSection = () => {
14390
14369
  import { useContext as useContext9 } from "react";
14391
14370
  import { List as List9, Text as Text33, Flex as Flex48 } from "@raystack/apsara";
14392
14371
 
14393
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-gOLAO0Ed065F/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
14394
- var digest52 = "7eaa7216f7eded92dc8175df5ef7306a2d7affb5216f46655f65b7200dd107cb";
14372
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-tYAs2vgoj58X/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
14373
+ var digest52 = "dec09b0ccd316fa17e23f57b46dcf01d3de8bcab2b9788da6dccebbff1dac064";
14395
14374
  var css52 = `._side-panel-section-item-label_slrfc_1 {
14396
14375
  width: 120px;
14397
14376
  }
@@ -14455,16 +14434,16 @@ var css52 = `._side-panel-section-item-label_slrfc_1 {
14455
14434
  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" };
14456
14435
 
14457
14436
  // admin/views/organizations/details/side-panel/plan-details-section.tsx
14458
- import { useQuery as useQuery13 } from "@connectrpc/connect-query";
14459
- import { FrontierServiceQueries as FrontierServiceQueries14, ListSubscriptionsRequestSchema, GetPlanRequestSchema } from "@raystack/proton/frontier";
14437
+ import { useQuery as useQuery14 } from "@connectrpc/connect-query";
14438
+ import { FrontierServiceQueries as FrontierServiceQueries15, ListSubscriptionsRequestSchema, GetPlanRequestSchema } from "@raystack/proton/frontier";
14460
14439
  import { create as create10 } from "@bufbuild/protobuf";
14461
14440
  import { jsx as jsx71, jsxs as jsxs55 } from "react/jsx-runtime";
14462
14441
  var PlanDetailsSection = () => {
14463
14442
  const { billingAccount, organization } = useContext9(OrganizationContext);
14464
14443
  const billingAccountId = billingAccount?.id || "";
14465
14444
  const organizationId = organization?.id || "";
14466
- const { data: activeSubscription, isLoading: isSubscriptionLoading, error: subscriptionsError } = useQuery13(
14467
- FrontierServiceQueries14.listSubscriptions,
14445
+ const { data: activeSubscription, isLoading: isSubscriptionLoading, error: subscriptionsError } = useQuery14(
14446
+ FrontierServiceQueries15.listSubscriptions,
14468
14447
  create10(ListSubscriptionsRequestSchema, {
14469
14448
  orgId: organizationId
14470
14449
  }),
@@ -14481,8 +14460,8 @@ var PlanDetailsSection = () => {
14481
14460
  if (subscriptionsError) {
14482
14461
  console.error("Error fetching subscriptions:", subscriptionsError);
14483
14462
  }
14484
- const { data: planData, isLoading: isPlanLoading, error: planError } = useQuery13(
14485
- FrontierServiceQueries14.getPlan,
14463
+ const { data: planData, isLoading: isPlanLoading, error: planError } = useQuery14(
14464
+ FrontierServiceQueries15.getPlan,
14486
14465
  create10(GetPlanRequestSchema, {
14487
14466
  id: activeSubscription?.planId ?? ""
14488
14467
  }),
@@ -14502,20 +14481,16 @@ var PlanDetailsSection = () => {
14502
14481
  ] }),
14503
14482
  /* @__PURE__ */ jsxs55(List9.Item, { children: [
14504
14483
  /* @__PURE__ */ jsx71(List9.Label, { className: side_panel_module_css_default7["side-panel-section-item-label"], children: "Started from" }),
14505
- /* @__PURE__ */ jsx71(List9.Value, { children: isLoading ? /* @__PURE__ */ jsx71(Skeleton, {}) : timestampToDayjs(activeSubscription?.currentPeriodStartAt) ? /* @__PURE__ */ jsxs55(Flex48, { gap: 3, children: [
14484
+ /* @__PURE__ */ jsx71(List9.Value, { children: isLoading ? /* @__PURE__ */ jsx71(Skeleton, {}) : !isNullTimestamp(activeSubscription?.currentPeriodStartAt) ? /* @__PURE__ */ jsxs55(Flex48, { gap: 3, children: [
14506
14485
  /* @__PURE__ */ jsx71(CalendarIcon, {}),
14507
- /* @__PURE__ */ jsx71(Text33, { children: timestampToDayjs(activeSubscription?.currentPeriodStartAt)?.format(
14508
- "DD MMM YYYY"
14509
- ) })
14486
+ /* @__PURE__ */ jsx71(Text33, { children: formatTimestamp(activeSubscription?.currentPeriodStartAt) })
14510
14487
  ] }) : /* @__PURE__ */ jsx71(Text33, { children: "-" }) })
14511
14488
  ] }),
14512
14489
  /* @__PURE__ */ jsxs55(List9.Item, { children: [
14513
14490
  /* @__PURE__ */ jsx71(List9.Label, { className: side_panel_module_css_default7["side-panel-section-item-label"], children: "Ends on" }),
14514
- /* @__PURE__ */ jsx71(List9.Value, { children: isLoading ? /* @__PURE__ */ jsx71(Skeleton, {}) : timestampToDayjs(activeSubscription?.currentPeriodEndAt) ? /* @__PURE__ */ jsxs55(Flex48, { gap: 3, children: [
14491
+ /* @__PURE__ */ jsx71(List9.Value, { children: isLoading ? /* @__PURE__ */ jsx71(Skeleton, {}) : !isNullTimestamp(activeSubscription?.currentPeriodEndAt) ? /* @__PURE__ */ jsxs55(Flex48, { gap: 3, children: [
14515
14492
  /* @__PURE__ */ jsx71(CalendarIcon, {}),
14516
- /* @__PURE__ */ jsx71(Text33, { children: timestampToDayjs(activeSubscription?.currentPeriodEndAt)?.format(
14517
- "DD MMM YYYY"
14518
- ) })
14493
+ /* @__PURE__ */ jsx71(Text33, { children: formatTimestamp(activeSubscription?.currentPeriodEndAt) })
14519
14494
  ] }) : /* @__PURE__ */ jsx71(Text33, { children: "-" }) })
14520
14495
  ] })
14521
14496
  ] });
@@ -14525,8 +14500,8 @@ var PlanDetailsSection = () => {
14525
14500
  import { List as List10, Text as Text34, Flex as Flex49 } from "@raystack/apsara";
14526
14501
  import { CoinIcon, CoinColoredIcon } from "@raystack/apsara/icons";
14527
14502
 
14528
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-qreNA6LLx5e7/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
14529
- var digest53 = "7ac55fffe23347714f261cc23360b9daf8348319f4c30325166d28ae12b97aee";
14503
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-z47lZ3rfFaQ8/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
14504
+ var digest53 = "8354b70e04cb30bd9d4b0f7ce58a8158b717ca41de325ab7375e62c3b6e4f453";
14530
14505
  var css53 = `._side-panel-section-item-label_slrfc_1 {
14531
14506
  width: 120px;
14532
14507
  }
@@ -14591,8 +14566,8 @@ var side_panel_module_css_default8 = { "side-panel-section-item-label": "_side-p
14591
14566
 
14592
14567
  // admin/views/organizations/details/side-panel/tokens-details-section.tsx
14593
14568
  import { useContext as useContext10, useEffect as useEffect7 } from "react";
14594
- import { useQuery as useQuery14 } from "@connectrpc/connect-query";
14595
- import { FrontierServiceQueries as FrontierServiceQueries15, TotalDebitedTransactionsRequestSchema } from "@raystack/proton/frontier";
14569
+ import { useQuery as useQuery15 } from "@connectrpc/connect-query";
14570
+ import { FrontierServiceQueries as FrontierServiceQueries16, TotalDebitedTransactionsRequestSchema } from "@raystack/proton/frontier";
14596
14571
  import { create as create11 } from "@bufbuild/protobuf";
14597
14572
  import { jsx as jsx72, jsxs as jsxs56 } from "react/jsx-runtime";
14598
14573
  var TokensDetailsSection = () => {
@@ -14605,8 +14580,8 @@ var TokensDetailsSection = () => {
14605
14580
  } = useContext10(OrganizationContext);
14606
14581
  const organizationId = organization?.id || "";
14607
14582
  const billingAccountId = billingAccount?.id || "";
14608
- const { data: tokensUsed = "0", isLoading: isTokensLoading, error } = useQuery14(
14609
- FrontierServiceQueries15.totalDebitedTransactions,
14583
+ const { data: tokensUsed = "0", isLoading: isTokensLoading, error } = useQuery15(
14584
+ FrontierServiceQueries16.totalDebitedTransactions,
14610
14585
  create11(TotalDebitedTransactionsRequestSchema, {
14611
14586
  orgId: organizationId,
14612
14587
  billingId: billingAccountId
@@ -14659,8 +14634,8 @@ var TokensDetailsSection = () => {
14659
14634
  // admin/views/organizations/details/side-panel/billing-details-section.tsx
14660
14635
  import { Amount as Amount4, CopyButton as CopyButton4, Flex as Flex50, IconButton as IconButton11, Link as Link3, List as List11, Text as Text35, Tooltip as Tooltip5, toastManager as toastManager11 } from "@raystack/apsara";
14661
14636
 
14662
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-O86vUeHKvxlG/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
14663
- var digest54 = "e6738a4debeb7752b8bb70099e58c1d4a0a7069f30cbebd8451fa5f953460a2c";
14637
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-NKeffNlGe7Am/sdk/admin/views/organizations/details/side-panel/side-panel.module.css.js
14638
+ var digest54 = "eb70dfbb4613370eca09530f89a118294da69c2a50bf3edd44931c12c6698a5f";
14664
14639
  var css54 = `._side-panel-section-item-label_slrfc_1 {
14665
14640
  width: 120px;
14666
14641
  }
@@ -14725,16 +14700,16 @@ var side_panel_module_css_default9 = { "side-panel-section-item-label": "_side-p
14725
14700
 
14726
14701
  // admin/views/organizations/details/side-panel/billing-details-section.tsx
14727
14702
  import { useContext as useContext11, useEffect as useEffect8 } from "react";
14728
- import { useMutation as useMutation9, useQuery as useQuery15 } from "@connectrpc/connect-query";
14729
- import { CreateCheckoutRequestSchema, FrontierServiceQueries as FrontierServiceQueries16, GetUpcomingInvoiceRequestSchema } from "@raystack/proton/frontier";
14703
+ import { useMutation as useMutation9, useQuery as useQuery16 } from "@connectrpc/connect-query";
14704
+ import { CreateCheckoutRequestSchema, FrontierServiceQueries as FrontierServiceQueries17, GetUpcomingInvoiceRequestSchema } from "@raystack/proton/frontier";
14730
14705
  import { create as create12 } from "@bufbuild/protobuf";
14731
14706
  import { jsx as jsx73, jsxs as jsxs57 } from "react/jsx-runtime";
14732
14707
  var BillingDetailsSection = () => {
14733
14708
  const { billingAccount, organization } = useContext11(OrganizationContext);
14734
14709
  const organizationId = organization?.id || "";
14735
14710
  const billingAccountId = billingAccount?.id || "";
14736
- const { data: upcomingInvoice, isLoading, error } = useQuery15(
14737
- FrontierServiceQueries16.getUpcomingInvoice,
14711
+ const { data: upcomingInvoice, isLoading, error } = useQuery16(
14712
+ FrontierServiceQueries17.getUpcomingInvoice,
14738
14713
  create12(GetUpcomingInvoiceRequestSchema, {
14739
14714
  orgId: organizationId,
14740
14715
  billingId: billingAccountId
@@ -14751,7 +14726,7 @@ var BillingDetailsSection = () => {
14751
14726
  }, [error]);
14752
14727
  const due_date = upcomingInvoice?.dueDate || upcomingInvoice?.periodEndAt;
14753
14728
  const stripeLink = billingAccount?.providerId ? "https://dashboard.stripe.com/customers/" + billingAccount?.providerId : "";
14754
- const { mutateAsync: createCheckout, isPending: isPortalLoading } = useMutation9(FrontierServiceQueries16.createCheckout, {
14729
+ const { mutateAsync: createCheckout, isPending: isPortalLoading } = useMutation9(FrontierServiceQueries17.createCheckout, {
14755
14730
  onError: (error2) => {
14756
14731
  toastManager11.add({
14757
14732
  title: "Something went wrong",
@@ -14833,9 +14808,9 @@ var BillingDetailsSection = () => {
14833
14808
  ] }),
14834
14809
  /* @__PURE__ */ jsxs57(List11.Item, { children: [
14835
14810
  /* @__PURE__ */ jsx73(List11.Label, { className: side_panel_module_css_default9["side-panel-section-item-label"], children: "Next billing date" }),
14836
- /* @__PURE__ */ jsx73(List11.Value, { className: side_panel_module_css_default9["side-panel-section-item-value"], children: isLoading ? /* @__PURE__ */ jsx73(Skeleton, {}) : timestampToDayjs(due_date) ? /* @__PURE__ */ jsxs57(Flex50, { gap: 3, children: [
14811
+ /* @__PURE__ */ jsx73(List11.Value, { className: side_panel_module_css_default9["side-panel-section-item-value"], children: isLoading ? /* @__PURE__ */ jsx73(Skeleton, {}) : !isNullTimestamp(due_date) ? /* @__PURE__ */ jsxs57(Flex50, { gap: 3, children: [
14837
14812
  /* @__PURE__ */ jsx73(CalendarIcon, {}),
14838
- /* @__PURE__ */ jsx73(Text35, { children: timestampToDayjs(due_date)?.format("DD MMM YYYY") })
14813
+ /* @__PURE__ */ jsx73(Text35, { children: formatTimestamp(due_date) })
14839
14814
  ] }) : /* @__PURE__ */ jsx73(Text35, { children: "-" }) })
14840
14815
  ] }),
14841
14816
  /* @__PURE__ */ jsxs57(List11.Item, { children: [
@@ -14903,8 +14878,8 @@ import {
14903
14878
  toastManager as toastManager12
14904
14879
  } from "@raystack/apsara";
14905
14880
 
14906
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-qnUOIIVwdEJz/sdk/admin/views/organizations/details/edit/edit.module.css.js
14907
- var digest55 = "19f3cd4ca396d39cac2f5d145d822f81ae1302fe69617d8a033517f04143db23";
14881
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-0qrDQvmVi3PT/sdk/admin/views/organizations/details/edit/edit.module.css.js
14882
+ var digest55 = "02f8933db9a36d0b67bc5826415dbd3689882bf44bcf564a8dc7bf90bcf33334";
14908
14883
  var css55 = `._drawer-content_18xgg_1 {
14909
14884
  min-width: 500px;
14910
14885
  padding: 0;
@@ -14958,7 +14933,7 @@ import { Controller as Controller5, useForm as useForm6 } from "react-hook-form"
14958
14933
  import { zodResolver as zodResolver6 } from "@hookform/resolvers/zod";
14959
14934
  import { useMutation as useMutation10, createConnectQueryKey as createConnectQueryKey6, useTransport as useTransport7 } from "@connectrpc/connect-query";
14960
14935
  import { useQueryClient as useQueryClient8 } from "@tanstack/react-query";
14961
- import { AdminServiceQueries as AdminServiceQueries14, FrontierServiceQueries as FrontierServiceQueries17, SetOrganizationKycRequestSchema } from "@raystack/proton/frontier";
14936
+ import { AdminServiceQueries as AdminServiceQueries14, FrontierServiceQueries as FrontierServiceQueries18, SetOrganizationKycRequestSchema } from "@raystack/proton/frontier";
14962
14937
  import { create as create13 } from "@bufbuild/protobuf";
14963
14938
  import { Fragment as Fragment13, jsx as jsx75, jsxs as jsxs59 } from "react/jsx-runtime";
14964
14939
  var kycUpdateSchema = external_exports.object({
@@ -14999,7 +14974,7 @@ function EditKYCPanel({ open = false, onClose }) {
14999
14974
  }
15000
14975
  queryClient.invalidateQueries({
15001
14976
  queryKey: createConnectQueryKey6({
15002
- schema: FrontierServiceQueries17.getOrganizationKyc,
14977
+ schema: FrontierServiceQueries18.getOrganizationKyc,
15003
14978
  transport,
15004
14979
  input: { orgId },
15005
14980
  cardinality: "finite"
@@ -15130,8 +15105,8 @@ function EditKYCPanel({ open = false, onClose }) {
15130
15105
  // admin/views/organizations/details/edit/organization.tsx
15131
15106
  import { useContext as useContext13, useEffect as useEffect9, useState as useState20 } from "react";
15132
15107
 
15133
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-ZQGPJdITlarc/sdk/admin/views/organizations/details/edit/edit.module.css.js
15134
- var digest56 = "d1dd3a7864cae182f8dd4c8860179fd596d58a13e1a077fda0788fda0a98ac56";
15108
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-CDNWVql15xRW/sdk/admin/views/organizations/details/edit/edit.module.css.js
15109
+ var digest56 = "f251329bd91008a6511b8768a4c147ca30ca68db1ec8551793ce138c20ff30de";
15135
15110
  var css56 = `._drawer-content_18xgg_1 {
15136
15111
  min-width: 500px;
15137
15112
  padding: 0;
@@ -15196,7 +15171,7 @@ import { Controller as Controller6, useForm as useForm7 } from "react-hook-form"
15196
15171
  import { zodResolver as zodResolver7 } from "@hookform/resolvers/zod";
15197
15172
  import { useMutation as useMutation11, createConnectQueryKey as createConnectQueryKey7, useTransport as useTransport8 } from "@connectrpc/connect-query";
15198
15173
  import { useQueryClient as useQueryClient9 } from "@tanstack/react-query";
15199
- import { FrontierServiceQueries as FrontierServiceQueries18, UpdateOrganizationRequestSchema } from "@raystack/proton/frontier";
15174
+ import { FrontierServiceQueries as FrontierServiceQueries19, UpdateOrganizationRequestSchema } from "@raystack/proton/frontier";
15200
15175
  import { create as create14 } from "@bufbuild/protobuf";
15201
15176
  import { Fragment as Fragment14, jsx as jsx76, jsxs as jsxs60 } from "react/jsx-runtime";
15202
15177
  var orgUpdateSchema = external_exports.object({
@@ -15261,11 +15236,11 @@ function EditOrganizationPanel({ open = false, onClose }) {
15261
15236
  mutateAsync: updateOrganizationMutation,
15262
15237
  error: mutationError,
15263
15238
  isPending: isSubmitting
15264
- } = useMutation11(FrontierServiceQueries18.updateOrganization, {
15239
+ } = useMutation11(FrontierServiceQueries19.updateOrganization, {
15265
15240
  onSuccess: () => {
15266
15241
  queryClient.invalidateQueries({
15267
15242
  queryKey: createConnectQueryKey7({
15268
- schema: FrontierServiceQueries18.getOrganization,
15243
+ schema: FrontierServiceQueries19.getOrganization,
15269
15244
  transport,
15270
15245
  input: { id: orgId },
15271
15246
  cardinality: "finite"
@@ -15508,8 +15483,8 @@ import {
15508
15483
  toastManager as toastManager13
15509
15484
  } from "@raystack/apsara";
15510
15485
 
15511
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-GJ7J0lUieBJE/sdk/admin/views/organizations/details/edit/edit.module.css.js
15512
- var digest57 = "8725d864735ea4bca7896558d8045712b4685717a7f0e1a86b8051132c0b94b6";
15486
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-cNF9LsnwPLYP/sdk/admin/views/organizations/details/edit/edit.module.css.js
15487
+ var digest57 = "02bf549ce0ee3361ceca6f62812a31fd545b3cf3d4a1098f772c46b761387441";
15513
15488
  var css57 = `._drawer-content_18xgg_1 {
15514
15489
  min-width: 500px;
15515
15490
  padding: 0;
@@ -15891,7 +15866,7 @@ var OrganizationDetailsLayout = ({
15891
15866
 
15892
15867
  // admin/views/organizations/details/index.tsx
15893
15868
  import {
15894
- FrontierServiceQueries as FrontierServiceQueries19,
15869
+ FrontierServiceQueries as FrontierServiceQueries20,
15895
15870
  GetBillingAccountRequestSchema,
15896
15871
  GetBillingBalanceRequestSchema,
15897
15872
  GetOrganizationKycResponseSchema
@@ -15918,8 +15893,8 @@ var OrganizationDetailsView = ({
15918
15893
  data: organization,
15919
15894
  isLoading: isOrganizationLoading,
15920
15895
  error: organizationError
15921
- } = useQuery16(
15922
- FrontierServiceQueries19.getOrganization,
15896
+ } = useQuery17(
15897
+ FrontierServiceQueries20.getOrganization,
15923
15898
  { id: organizationId },
15924
15899
  {
15925
15900
  enabled: !!organizationId,
@@ -15927,7 +15902,7 @@ var OrganizationDetailsView = ({
15927
15902
  }
15928
15903
  );
15929
15904
  const getOrganizationQueryKey = [
15930
- FrontierServiceQueries19.getOrganization,
15905
+ FrontierServiceQueries20.getOrganization,
15931
15906
  { id: organizationId }
15932
15907
  ];
15933
15908
  async function updateOrganization(org) {
@@ -15937,8 +15912,8 @@ var OrganizationDetailsView = ({
15937
15912
  data: kycData,
15938
15913
  isLoading: isKYCLoading,
15939
15914
  error: kycError
15940
- } = useQuery16(
15941
- FrontierServiceQueries19.getOrganizationKyc,
15915
+ } = useQuery17(
15916
+ FrontierServiceQueries20.getOrganizationKyc,
15942
15917
  { orgId: organizationId || "" },
15943
15918
  {
15944
15919
  enabled: !!organizationId
@@ -15950,7 +15925,7 @@ var OrganizationDetailsView = ({
15950
15925
  return;
15951
15926
  queryClient.setQueryData(
15952
15927
  createConnectQueryKey8({
15953
- schema: FrontierServiceQueries19.getOrganizationKyc,
15928
+ schema: FrontierServiceQueries20.getOrganizationKyc,
15954
15929
  transport,
15955
15930
  input: { orgId: organizationId },
15956
15931
  cardinality: "finite"
@@ -15962,8 +15937,8 @@ var OrganizationDetailsView = ({
15962
15937
  data: defaultRoles = [],
15963
15938
  isLoading: isDefaultRolesLoading,
15964
15939
  error: defaultRolesError
15965
- } = useQuery16(
15966
- FrontierServiceQueries19.listRoles,
15940
+ } = useQuery17(
15941
+ FrontierServiceQueries20.listRoles,
15967
15942
  { scopes: [ORG_NAMESPACE] },
15968
15943
  {
15969
15944
  enabled: !!organizationId,
@@ -15974,8 +15949,8 @@ var OrganizationDetailsView = ({
15974
15949
  data: organizationRoles = [],
15975
15950
  isLoading: isOrgRolesLoading,
15976
15951
  error: orgRolesError
15977
- } = useQuery16(
15978
- FrontierServiceQueries19.listOrganizationRoles,
15952
+ } = useQuery17(
15953
+ FrontierServiceQueries20.listOrganizationRoles,
15979
15954
  { orgId: organizationId || "", scopes: [ORG_NAMESPACE] },
15980
15955
  {
15981
15956
  enabled: !!organizationId,
@@ -15987,8 +15962,8 @@ var OrganizationDetailsView = ({
15987
15962
  data: orgMembersMap = {},
15988
15963
  isLoading: isOrgMembersMapLoading,
15989
15964
  error: orgMembersError
15990
- } = useQuery16(
15991
- FrontierServiceQueries19.listOrganizationUsers,
15965
+ } = useQuery17(
15966
+ FrontierServiceQueries20.listOrganizationUsers,
15992
15967
  { id: organizationId || "" },
15993
15968
  {
15994
15969
  enabled: !!organizationId,
@@ -16005,8 +15980,8 @@ var OrganizationDetailsView = ({
16005
15980
  }
16006
15981
  }
16007
15982
  );
16008
- const { data: firstBillingAccountId = "", error: billingAccountsError } = useQuery16(
16009
- FrontierServiceQueries19.listBillingAccounts,
15983
+ const { data: firstBillingAccountId = "", error: billingAccountsError } = useQuery17(
15984
+ FrontierServiceQueries20.listBillingAccounts,
16010
15985
  { orgId: organizationId || "" },
16011
15986
  {
16012
15987
  enabled: !!organizationId,
@@ -16018,8 +15993,8 @@ var OrganizationDetailsView = ({
16018
15993
  isLoading: isBillingAccountLoading,
16019
15994
  error: billingAccountError,
16020
15995
  refetch: fetchBillingAccountDetails
16021
- } = useQuery16(
16022
- FrontierServiceQueries19.getBillingAccount,
15996
+ } = useQuery17(
15997
+ FrontierServiceQueries20.getBillingAccount,
16023
15998
  create16(GetBillingAccountRequestSchema, {
16024
15999
  id: firstBillingAccountId,
16025
16000
  withBillingDetails: true
@@ -16039,8 +16014,8 @@ var OrganizationDetailsView = ({
16039
16014
  isLoading: isTokenBalanceLoading,
16040
16015
  error: tokenBalanceError,
16041
16016
  refetch: fetchTokenBalance
16042
- } = useQuery16(
16043
- FrontierServiceQueries19.getBillingBalance,
16017
+ } = useQuery17(
16018
+ FrontierServiceQueries20.getBillingBalance,
16044
16019
  create16(GetBillingBalanceRequestSchema, {
16045
16020
  id: firstBillingAccountId
16046
16021
  }),
@@ -16145,8 +16120,8 @@ import {
16145
16120
  toastManager as toastManager16
16146
16121
  } from "@raystack/apsara";
16147
16122
 
16148
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-y5zIBuBQJ7pH/sdk/admin/views/organizations/details/security/security.module.css.js
16149
- var digest58 = "523d1d9087a0e5efebb4f44ce38dc2b9fb5913769165424cc72ece1582458761";
16123
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-CROpamluhTEq/sdk/admin/views/organizations/details/security/security.module.css.js
16124
+ var digest58 = "ed5866f51f8df540ac4d1e8bd16e7cb15c8ccfa887a05208a1dd046359e7d540";
16150
16125
  var css58 = `._container_gfopt_1 {
16151
16126
  width: 100%;
16152
16127
  }
@@ -16203,7 +16178,7 @@ import { useContext as useContext17 } from "react";
16203
16178
  import { AlertDialog as AlertDialog4, Button as Button19, Flex as Flex55, Text as Text39, toastManager as toastManager14 } from "@raystack/apsara";
16204
16179
  import { useContext as useContext15, useState as useState23 } from "react";
16205
16180
  import { createConnectQueryKey as createConnectQueryKey9, useMutation as useMutation13, useTransport as useTransport10 } from "@connectrpc/connect-query";
16206
- import { FrontierServiceQueries as FrontierServiceQueries20, DisableOrganizationRequestSchema, EnableOrganizationRequestSchema } from "@raystack/proton/frontier";
16181
+ import { FrontierServiceQueries as FrontierServiceQueries21, DisableOrganizationRequestSchema, EnableOrganizationRequestSchema } from "@raystack/proton/frontier";
16207
16182
  import { create as create17 } from "@bufbuild/protobuf";
16208
16183
  import { useQueryClient as useQueryClient11 } from "@tanstack/react-query";
16209
16184
  import { jsx as jsx80, jsxs as jsxs63 } from "react/jsx-runtime";
@@ -16214,12 +16189,12 @@ var BlockOrganizationDialog = () => {
16214
16189
  const transport = useTransport10();
16215
16190
  const [isDialogOpen, setIsDialogOpen] = useState23(false);
16216
16191
  const { mutateAsync: disableOrganization, isPending: isDisabling } = useMutation13(
16217
- FrontierServiceQueries20.disableOrganization,
16192
+ FrontierServiceQueries21.disableOrganization,
16218
16193
  {
16219
16194
  onSuccess: async () => {
16220
16195
  await queryClient.invalidateQueries({
16221
16196
  queryKey: createConnectQueryKey9({
16222
- schema: FrontierServiceQueries20.getOrganization,
16197
+ schema: FrontierServiceQueries21.getOrganization,
16223
16198
  transport,
16224
16199
  input: { id: organization?.id },
16225
16200
  cardinality: "finite"
@@ -16239,12 +16214,12 @@ var BlockOrganizationDialog = () => {
16239
16214
  }
16240
16215
  );
16241
16216
  const { mutateAsync: enableOrganization, isPending: isEnabling } = useMutation13(
16242
- FrontierServiceQueries20.enableOrganization,
16217
+ FrontierServiceQueries21.enableOrganization,
16243
16218
  {
16244
16219
  onSuccess: async () => {
16245
16220
  await queryClient.invalidateQueries({
16246
16221
  queryKey: createConnectQueryKey9({
16247
- schema: FrontierServiceQueries20.getOrganization,
16222
+ schema: FrontierServiceQueries21.getOrganization,
16248
16223
  transport,
16249
16224
  input: { id: organization?.id },
16250
16225
  cardinality: "finite"
@@ -16372,8 +16347,8 @@ import {
16372
16347
  toastManager as toastManager15
16373
16348
  } from "@raystack/apsara";
16374
16349
 
16375
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-ecgOZZ3wJH0L/sdk/admin/views/organizations/details/security/security.module.css.js
16376
- var digest59 = "58357d083b0ebe67f459b8472d276fd71def4450eb139122d261c9270ced209e";
16350
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-1NwzkPJ7hjwx/sdk/admin/views/organizations/details/security/security.module.css.js
16351
+ var digest59 = "ef6cec7bfd2f10ef4af42c9c44d9298ba272dd996621770c6dc5c258e1597ae6";
16377
16352
  var css59 = `._container_gfopt_1 {
16378
16353
  width: 100%;
16379
16354
  }
@@ -16427,7 +16402,7 @@ var security_module_css_default3 = { "container": "_container_gfopt_1", "content
16427
16402
  import { useContext as useContext16, useState as useState24 } from "react";
16428
16403
  import { useMutation as useMutation14, createConnectQueryKey as createConnectQueryKey10, useTransport as useTransport11 } from "@connectrpc/connect-query";
16429
16404
  import { useQueryClient as useQueryClient12 } from "@tanstack/react-query";
16430
- import { FrontierServiceQueries as FrontierServiceQueries21, DeleteOrganizationDomainRequestSchema } from "@raystack/proton/frontier";
16405
+ import { FrontierServiceQueries as FrontierServiceQueries22, DeleteOrganizationDomainRequestSchema } from "@raystack/proton/frontier";
16431
16406
  import { create as create18 } from "@bufbuild/protobuf";
16432
16407
  import { jsx as jsx81, jsxs as jsxs64 } from "react/jsx-runtime";
16433
16408
  var DeleteDomainDialog = ({
@@ -16438,12 +16413,12 @@ var DeleteDomainDialog = ({
16438
16413
  const queryClient = useQueryClient12();
16439
16414
  const transport = useTransport11();
16440
16415
  const { mutateAsync: deleteDomain, isPending } = useMutation14(
16441
- FrontierServiceQueries21.deleteOrganizationDomain,
16416
+ FrontierServiceQueries22.deleteOrganizationDomain,
16442
16417
  {
16443
16418
  onSuccess: () => {
16444
16419
  queryClient.invalidateQueries({
16445
16420
  queryKey: createConnectQueryKey10({
16446
- schema: FrontierServiceQueries21.listOrganizationDomains,
16421
+ schema: FrontierServiceQueries22.listOrganizationDomains,
16447
16422
  transport,
16448
16423
  input: { orgId: organization?.id || "" },
16449
16424
  cardinality: "finite"
@@ -16580,9 +16555,9 @@ var DomainsList = ({
16580
16555
  };
16581
16556
 
16582
16557
  // admin/views/organizations/details/security/index.tsx
16583
- import { useQuery as useQuery17 } from "@connectrpc/connect-query";
16558
+ import { useQuery as useQuery18 } from "@connectrpc/connect-query";
16584
16559
  import {
16585
- FrontierServiceQueries as FrontierServiceQueries22,
16560
+ FrontierServiceQueries as FrontierServiceQueries23,
16586
16561
  ListOrganizationDomainsRequestSchema
16587
16562
  } from "@raystack/proton/frontier";
16588
16563
  import { create as create19 } from "@bufbuild/protobuf";
@@ -16613,8 +16588,8 @@ var AddDomainSection = () => {
16613
16588
  };
16614
16589
  var OrganizationSecurity = () => {
16615
16590
  const { organization } = useContext17(OrganizationContext);
16616
- const { data: domains, isLoading, error, refetch } = useQuery17(
16617
- FrontierServiceQueries22.listOrganizationDomains,
16591
+ const { data: domains, isLoading, error, refetch } = useQuery18(
16592
+ FrontierServiceQueries23.listOrganizationDomains,
16618
16593
  create19(ListOrganizationDomainsRequestSchema, {
16619
16594
  orgId: organization?.id
16620
16595
  }),
@@ -16656,8 +16631,8 @@ var OrganizationSecurity = () => {
16656
16631
  // admin/views/organizations/details/members/index.tsx
16657
16632
  import { AlertDialog as AlertDialog9, DataTable as DataTable16, EmptyState as EmptyState15, Flex as Flex59 } from "@raystack/apsara";
16658
16633
 
16659
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-yxE4geoF2D1l/sdk/admin/views/organizations/details/members/members.module.css.js
16660
- var digest60 = "fc634002d48a1b536592f9e6f2ea50c91a7da6541857cd51538df5f93cebca93";
16634
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-OhfvSfNRUSpx/sdk/admin/views/organizations/details/members/members.module.css.js
16635
+ var digest60 = "b0b318d8b85722d5d597101647ba9eb989ad52cc4ca2c61b8bb03e76c7f1d1e2";
16661
16636
  var css60 = `._container_jkaqi_1 {
16662
16637
  width: 100%;
16663
16638
  }
@@ -16721,8 +16696,8 @@ import {
16721
16696
  IconButton as IconButton16
16722
16697
  } from "@raystack/apsara";
16723
16698
 
16724
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-wwxMZLGukzc8/sdk/admin/views/organizations/details/members/members.module.css.js
16725
- var digest61 = "3fcf9ad2580f6fb4fd8285fea3e4ab00a495231921de44038ef511e90bb40114";
16699
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-bdg695LPHv43/sdk/admin/views/organizations/details/members/members.module.css.js
16700
+ var digest61 = "734ae83cb1886c8f4f876be1c84631cf9a27415b3b33528ac3cf03ed2432af21";
16726
16701
  var css61 = `._container_jkaqi_1 {
16727
16702
  width: 100%;
16728
16703
  }
@@ -16773,9 +16748,6 @@ var css61 = `._container_jkaqi_1 {
16773
16748
  })();
16774
16749
  var members_module_css_default2 = { "container": "_container_jkaqi_1", "name-column": "_name-column_jkaqi_5", "nameColumn": "_name-column_jkaqi_5", "empty-state": "_empty-state_jkaqi_9", "emptyState": "_empty-state_jkaqi_9", "empty-state-subheading": "_empty-state-subheading_jkaqi_13", "emptyStateSubheading": "_empty-state-subheading_jkaqi_13", "table": "_table_jkaqi_18", "table-wrapper": "_table-wrapper_jkaqi_23", "tableWrapper": "_table-wrapper_jkaqi_23", "table-header": "_table-header_jkaqi_29", "tableHeader": "_table-header_jkaqi_29", "table-action-column": "_table-action-column_jkaqi_34", "tableActionColumn": "_table-action-column_jkaqi_34" };
16775
16750
 
16776
- // admin/views/organizations/details/members/columns.tsx
16777
- import dayjs13 from "dayjs";
16778
-
16779
16751
  // admin/assets/icons/DeleteIcon.tsx
16780
16752
  import { jsx as jsx83 } from "react/jsx-runtime";
16781
16753
  function DeleteIcon(props) {
@@ -16886,11 +16858,7 @@ var getColumns12 = ({
16886
16858
  {
16887
16859
  accessorKey: "orgJoinedAt",
16888
16860
  header: "Joined On",
16889
- cell: ({ getValue }) => {
16890
- const value = getValue();
16891
- const date = isNullTimestamp(value) ? "-" : dayjs13(timestampToDate(value)).format("YYYY-MM-DD");
16892
- return /* @__PURE__ */ jsx84(Text42, { children: date });
16893
- },
16861
+ cell: ({ getValue }) => /* @__PURE__ */ jsx84(Text42, { children: formatTimestamp(getValue()) }),
16894
16862
  enableSorting: true,
16895
16863
  enableHiding: true
16896
16864
  // enableColumnFilter: true,
@@ -16968,7 +16936,7 @@ import { useQueryClient as useQueryClient14 } from "@tanstack/react-query";
16968
16936
 
16969
16937
  // admin/views/organizations/details/members/update-role.tsx
16970
16938
  import {
16971
- FrontierServiceQueries as FrontierServiceQueries23,
16939
+ FrontierServiceQueries as FrontierServiceQueries24,
16972
16940
  SetOrganizationMemberRoleRequestSchema as SetOrganizationMemberRoleRequestSchema2
16973
16941
  } from "@raystack/proton/frontier";
16974
16942
  import { create as create20 } from "@bufbuild/protobuf";
@@ -17006,7 +16974,7 @@ function UpdateRoleContent({
17006
16974
  onRoleUpdate
17007
16975
  }) {
17008
16976
  const { mutateAsync: setMemberRole, isPending } = useMutation15(
17009
- FrontierServiceQueries23.setOrganizationMemberRole
16977
+ FrontierServiceQueries24.setOrganizationMemberRole
17010
16978
  );
17011
16979
  async function onSubmit() {
17012
16980
  try {
@@ -17065,7 +17033,7 @@ function UpdateRoleContent({
17065
17033
 
17066
17034
  // admin/views/organizations/details/members/remove-member.tsx
17067
17035
  import {
17068
- FrontierServiceQueries as FrontierServiceQueries24,
17036
+ FrontierServiceQueries as FrontierServiceQueries25,
17069
17037
  RemoveOrganizationMemberRequestSchema
17070
17038
  } from "@raystack/proton/frontier";
17071
17039
  import { create as create21 } from "@bufbuild/protobuf";
@@ -17080,7 +17048,7 @@ var RemoveMember = ({
17080
17048
  }) => {
17081
17049
  const t = useTerminology();
17082
17050
  const { mutateAsync: removeOrganizationMember, isPending } = useMutation16(
17083
- FrontierServiceQueries24.removeOrganizationMember
17051
+ FrontierServiceQueries25.removeOrganizationMember
17084
17052
  );
17085
17053
  async function onSubmit() {
17086
17054
  try {
@@ -17166,14 +17134,14 @@ var RemoveMember = ({
17166
17134
 
17167
17135
  // hooks/index.ts
17168
17136
  import {
17169
- useQuery as useQuery18,
17137
+ useQuery as useQuery19,
17170
17138
  useMutation as useMutation17,
17171
17139
  useInfiniteQuery as useInfiniteQuery5,
17172
17140
  useTransport as useTransport12,
17173
17141
  createConnectQueryKey as createConnectQueryKey11
17174
17142
  } from "@connectrpc/connect-query";
17175
17143
  import { ConnectError as ConnectError4, Code as Code3 } from "@connectrpc/connect";
17176
- import { FrontierServiceQueries as FrontierServiceQueries25 } from "@raystack/proton/frontier";
17144
+ import { FrontierServiceQueries as FrontierServiceQueries26 } from "@raystack/proton/frontier";
17177
17145
  import { useQueryClient as useQueryClient13 } from "@tanstack/react-query";
17178
17146
  import { create as create22 } from "@bufbuild/protobuf";
17179
17147
 
@@ -17378,8 +17346,8 @@ import {
17378
17346
  Flex as Flex66
17379
17347
  } from "@raystack/apsara";
17380
17348
 
17381
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-WbpTB1pCL1w5/sdk/admin/views/organizations/details/projects/projects.module.css.js
17382
- var digest62 = "ea3c5def18a851cb9d147543e2fa5252ee8ca6c3a2aaf9f74e0795667d5e7103";
17349
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-37qUToLKa7IT/sdk/admin/views/organizations/details/projects/projects.module.css.js
17350
+ var digest62 = "488219426b82c7559862d68d98f0a2e86487a002369d4e85e635d91545cfddf2";
17383
17351
  var css62 = `._container_1xzwm_1 {
17384
17352
  width: 100%;
17385
17353
  }
@@ -17447,8 +17415,8 @@ import {
17447
17415
  Menu as Menu4
17448
17416
  } from "@raystack/apsara";
17449
17417
 
17450
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-xjnKxSbbxrUt/sdk/admin/views/organizations/details/projects/projects.module.css.js
17451
- var digest63 = "89c099df61dc6e7a4df5a6e34db1a7e0d42c2d7ae5080e2475e132064e70a18b";
17418
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-k0VECe4GXnB4/sdk/admin/views/organizations/details/projects/projects.module.css.js
17419
+ var digest63 = "f23c646798e7de071e1408bda50857fa1f155427ffb122076b380514809c00cd";
17452
17420
  var css63 = `._container_1xzwm_1 {
17453
17421
  width: 100%;
17454
17422
  }
@@ -17503,13 +17471,10 @@ var css63 = `._container_1xzwm_1 {
17503
17471
  })();
17504
17472
  var projects_module_css_default2 = { "container": "_container_1xzwm_1", "title-column": "_title-column_1xzwm_5", "titleColumn": "_title-column_1xzwm_5", "empty-state": "_empty-state_1xzwm_9", "emptyState": "_empty-state_1xzwm_9", "empty-state-subheading": "_empty-state-subheading_1xzwm_13", "emptyStateSubheading": "_empty-state-subheading_1xzwm_13", "table": "_table_1xzwm_18", "table-wrapper": "_table-wrapper_1xzwm_23", "tableWrapper": "_table-wrapper_1xzwm_23", "table-header": "_table-header_1xzwm_29", "tableHeader": "_table-header_1xzwm_29", "table-action-column": "_table-action-column_1xzwm_34", "tableActionColumn": "_table-action-column_1xzwm_34", "flex1": "_flex1_1xzwm_38" };
17505
17473
 
17506
- // admin/views/organizations/details/projects/columns.tsx
17507
- import dayjs14 from "dayjs";
17508
-
17509
17474
  // admin/views/organizations/details/projects/rename-project.tsx
17510
17475
  import { Button as Button24, Dialog as Dialog8, Field as Field7, Flex as Flex60, Input as Input7, toastManager as toastManager19 } from "@raystack/apsara";
17511
17476
  import {
17512
- FrontierServiceQueries as FrontierServiceQueries26,
17477
+ FrontierServiceQueries as FrontierServiceQueries27,
17513
17478
  UpdateProjectRequestSchema
17514
17479
  } from "@raystack/proton/frontier";
17515
17480
  import { create as create23 } from "@bufbuild/protobuf";
@@ -17542,7 +17507,7 @@ function RenameProjectDialog({
17542
17507
  resolver: zodResolver9(projectRenameSchema)
17543
17508
  });
17544
17509
  const { mutateAsync: updateProject } = useMutation18(
17545
- FrontierServiceQueries26.updateProject
17510
+ FrontierServiceQueries27.updateProject
17546
17511
  );
17547
17512
  const submit = async (data) => {
17548
17513
  try {
@@ -17643,16 +17608,16 @@ import { useState as useState28 } from "react";
17643
17608
  // admin/views/organizations/details/projects/use-add-project-members.tsx
17644
17609
  import { useCallback as useCallback8, useContext as useContext19, useMemo as useMemo10, useState as useState27 } from "react";
17645
17610
  import { toastManager as toastManager20 } from "@raystack/apsara";
17646
- import { useQuery as useQuery19, useMutation as useMutation19 } from "@connectrpc/connect-query";
17647
- import { FrontierServiceQueries as FrontierServiceQueries27, ListProjectUsersRequestSchema, ListRolesRequestSchema as ListRolesRequestSchema3, SetProjectMemberRoleRequestSchema } from "@raystack/proton/frontier";
17611
+ import { useQuery as useQuery20, useMutation as useMutation19 } from "@connectrpc/connect-query";
17612
+ import { FrontierServiceQueries as FrontierServiceQueries28, ListProjectUsersRequestSchema, ListRolesRequestSchema as ListRolesRequestSchema3, SetProjectMemberRoleRequestSchema } from "@raystack/proton/frontier";
17648
17613
  import { create as create24 } from "@bufbuild/protobuf";
17649
17614
  function useAddProjectMembers({ projectId }) {
17650
17615
  const t = useTerminology();
17651
17616
  const memberLabel = t.member({ case: "capital" });
17652
17617
  const { orgMembersMap } = useContext19(OrganizationContext);
17653
17618
  const [searchQuery, setSearchQuery] = useState27("");
17654
- const { data: projectMembers, isLoading, refetch } = useQuery19(
17655
- FrontierServiceQueries27.listProjectUsers,
17619
+ const { data: projectMembers, isLoading, refetch } = useQuery20(
17620
+ FrontierServiceQueries28.listProjectUsers,
17656
17621
  create24(ListProjectUsersRequestSchema, { id: projectId }),
17657
17622
  {
17658
17623
  enabled: !!projectId,
@@ -17675,8 +17640,8 @@ function useAddProjectMembers({ projectId }) {
17675
17640
  return name.toLowerCase().includes(searchQuery.toLowerCase());
17676
17641
  }) : nonMembers;
17677
17642
  }, [nonMembers, searchQuery]);
17678
- const { data: rolesData } = useQuery19(
17679
- FrontierServiceQueries27.listRoles,
17643
+ const { data: rolesData } = useQuery20(
17644
+ FrontierServiceQueries28.listRoles,
17680
17645
  create24(ListRolesRequestSchema3, {
17681
17646
  state: "enabled",
17682
17647
  scopes: [SCOPES.PROJECT]
@@ -17688,7 +17653,7 @@ function useAddProjectMembers({ projectId }) {
17688
17653
  [rolesData]
17689
17654
  );
17690
17655
  const { mutateAsync: setProjectMemberRole } = useMutation19(
17691
- FrontierServiceQueries27.setProjectMemberRole
17656
+ FrontierServiceQueries28.setProjectMemberRole
17692
17657
  );
17693
17658
  const addMember = useCallback8(
17694
17659
  async (userId) => {
@@ -17925,11 +17890,7 @@ var getColumns13 = ({
17925
17890
  {
17926
17891
  accessorKey: "createdAt",
17927
17892
  header: "Created On",
17928
- cell: ({ getValue }) => {
17929
- const value = getValue();
17930
- const date = isNullTimestamp(value) ? "-" : dayjs14(timestampToDate(value)).format("YYYY-MM-DD");
17931
- return date;
17932
- },
17893
+ cell: ({ getValue }) => formatTimestamp(getValue()),
17933
17894
  enableSorting: true,
17934
17895
  enableHiding: true,
17935
17896
  enableColumnFilter: true,
@@ -17964,16 +17925,16 @@ import { AlertDialog as AlertDialog13, DataTable as DataTable17, Dialog as Dialo
17964
17925
  import { useCallback as useCallback9, useMemo as useMemo11, useState as useState30 } from "react";
17965
17926
  import {
17966
17927
  AdminServiceQueries as AdminServiceQueries17,
17967
- FrontierServiceQueries as FrontierServiceQueries30,
17928
+ FrontierServiceQueries as FrontierServiceQueries31,
17968
17929
  GetProjectRequestSchema,
17969
17930
  ListRolesRequestSchema as ListRolesRequestSchema4
17970
17931
  } from "@raystack/proton/frontier";
17971
17932
  import { create as create27 } from "@bufbuild/protobuf";
17972
- import { useQuery as useQuery20, useInfiniteQuery as useInfiniteQuery7 } from "@connectrpc/connect-query";
17933
+ import { useQuery as useQuery21, useInfiniteQuery as useInfiniteQuery7 } from "@connectrpc/connect-query";
17973
17934
  import { useDebouncedState as useDebouncedState4 } from "@raystack/apsara/hooks";
17974
17935
 
17975
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-8Qp1T1xkQouo/sdk/admin/views/organizations/details/projects/members/members.module.css.js
17976
- var digest64 = "e48c0966035a6c82f6111b0171f5007f92a93c58d8f50275a0452652379ecade";
17936
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-CIBtV6jUtvIJ/sdk/admin/views/organizations/details/projects/members/members.module.css.js
17937
+ var digest64 = "672e5dd9e08d1dd87fba3a15c0f2811540ea73cbcd2f5436c31fdaee00584d77";
17977
17938
  var css64 = `._flex1_65nkt_1 {
17978
17939
  flex: 1;
17979
17940
  }
@@ -18061,8 +18022,8 @@ var css64 = `._flex1_65nkt_1 {
18061
18022
  })();
18062
18023
  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" };
18063
18024
 
18064
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-b2kPxLqkEs0a/sdk/admin/views/organizations/details/projects/members/members.module.css.js
18065
- var digest65 = "9ed1975e6346e69c95092e9fcecfb98a57fecf738fc8408d028c98d8ce100a3f";
18025
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-b8DlrquXwmRs/sdk/admin/views/organizations/details/projects/members/members.module.css.js
18026
+ var digest65 = "a17dc1669539960e087d451bdd24dba221071cfd6bc49426fae2fa56c3fe0e44";
18066
18027
  var css65 = `._flex1_65nkt_1 {
18067
18028
  flex: 1;
18068
18029
  }
@@ -18278,8 +18239,8 @@ var getColumns14 = ({
18278
18239
  ];
18279
18240
  };
18280
18241
 
18281
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-xSRO2SON20hm/sdk/admin/views/organizations/details/projects/members/members.module.css.js
18282
- var digest66 = "c927cd6eb68030bccd3db80b67821a210b29ec04c6fe1c8daa0186e236903b1f";
18242
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-3jgaFh50cgQS/sdk/admin/views/organizations/details/projects/members/members.module.css.js
18243
+ var digest66 = "69c8ef3615a9bb62d1e53bae0b92ff2edf4022195fd4fe719df9d3c6b337ace7";
18283
18244
  var css66 = `._flex1_65nkt_1 {
18284
18245
  flex: 1;
18285
18246
  }
@@ -18369,7 +18330,7 @@ var members_module_css_default5 = { "flex1": "_flex1_65nkt_1", "dialog-content":
18369
18330
 
18370
18331
  // admin/views/organizations/details/projects/members/update-role.tsx
18371
18332
  import {
18372
- FrontierServiceQueries as FrontierServiceQueries28,
18333
+ FrontierServiceQueries as FrontierServiceQueries29,
18373
18334
  SetProjectMemberRoleRequestSchema as SetProjectMemberRoleRequestSchema2
18374
18335
  } from "@raystack/proton/frontier";
18375
18336
  import { create as create25 } from "@bufbuild/protobuf";
@@ -18407,7 +18368,7 @@ function UpdateRoleContent2({
18407
18368
  onRoleUpdate
18408
18369
  }) {
18409
18370
  const { mutateAsync: setProjectMemberRole, isPending } = useMutation20(
18410
- FrontierServiceQueries28.setProjectMemberRole
18371
+ FrontierServiceQueries29.setProjectMemberRole
18411
18372
  );
18412
18373
  async function onSubmit() {
18413
18374
  try {
@@ -18475,14 +18436,14 @@ function UpdateRoleContent2({
18475
18436
  // admin/views/organizations/details/projects/members/remove-member.tsx
18476
18437
  import { useState as useState29 } from "react";
18477
18438
  import {
18478
- FrontierServiceQueries as FrontierServiceQueries29,
18439
+ FrontierServiceQueries as FrontierServiceQueries30,
18479
18440
  RemoveProjectMemberRequestSchema
18480
18441
  } from "@raystack/proton/frontier";
18481
18442
  import { create as create26 } from "@bufbuild/protobuf";
18482
18443
  import { useMutation as useMutation21 } from "@connectrpc/connect-query";
18483
18444
 
18484
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-NO4eKpPlQ5dW/sdk/admin/views/organizations/details/projects/members/members.module.css.js
18485
- var digest67 = "9dfe21ffa9790ed966732130d7012aec4958c0ee6f06cbff55972df7f6f30fe9";
18445
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-geG5XMx7TxuT/sdk/admin/views/organizations/details/projects/members/members.module.css.js
18446
+ var digest67 = "4742627efbd2f1fd2f905111e9b1882fa68ca6d1982d5d34223c7a3ff1967d76";
18486
18447
  var css67 = `._flex1_65nkt_1 {
18487
18448
  flex: 1;
18488
18449
  }
@@ -18582,7 +18543,7 @@ var RemoveMember2 = ({
18582
18543
  const t = useTerminology();
18583
18544
  const [isSubmitting, setIsSubmitting] = useState29(false);
18584
18545
  const { mutateAsync: removeProjectMember } = useMutation21(
18585
- FrontierServiceQueries29.removeProjectMember
18546
+ FrontierServiceQueries30.removeProjectMember
18586
18547
  );
18587
18548
  async function onSubmit() {
18588
18549
  try {
@@ -18686,8 +18647,8 @@ import {
18686
18647
  Text as Text48
18687
18648
  } from "@raystack/apsara";
18688
18649
 
18689
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-7h05T1J6UCfc/sdk/admin/views/organizations/details/projects/members/members.module.css.js
18690
- var digest68 = "875fc558024b79d4b3fe45d325a670a974bc1d2019153d9f52b9ed739a7eee6e";
18650
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-VavPdjjlRwSP/sdk/admin/views/organizations/details/projects/members/members.module.css.js
18651
+ var digest68 = "21f2bf6b133fa652c2c53ab778b5f0c25a2ae6da536afb3f490e104c78568704";
18691
18652
  var css68 = `._flex1_65nkt_1 {
18692
18653
  flex: 1;
18693
18654
  }
@@ -18873,16 +18834,16 @@ var ProjectMembersDialog = ({
18873
18834
  200
18874
18835
  );
18875
18836
  const [removeMemberConfig, setRemoveMemberConfig] = useState30({ isOpen: false, user: null });
18876
- const { data: project, isLoading: isProjectLoading, error: projectError } = useQuery20(
18877
- FrontierServiceQueries30.getProject,
18837
+ const { data: project, isLoading: isProjectLoading, error: projectError } = useQuery21(
18838
+ FrontierServiceQueries31.getProject,
18878
18839
  create27(GetProjectRequestSchema, { id: projectId }),
18879
18840
  {
18880
18841
  enabled: !!projectId,
18881
18842
  select: (data2) => data2?.project
18882
18843
  }
18883
18844
  );
18884
- const { data: projectRoles = [], isLoading: isProjectRolesLoading, error: rolesError } = useQuery20(
18885
- FrontierServiceQueries30.listRoles,
18845
+ const { data: projectRoles = [], isLoading: isProjectRolesLoading, error: rolesError } = useQuery21(
18846
+ FrontierServiceQueries31.listRoles,
18886
18847
  create27(ListRolesRequestSchema4, { scopes: [PROJECT_NAMESPACE] }),
18887
18848
  {
18888
18849
  select: (data2) => data2?.roles || []
@@ -19211,8 +19172,8 @@ function OrganizationProjectsView() {
19211
19172
  // admin/views/organizations/details/invoices/index.tsx
19212
19173
  import { DataTable as DataTable19, EmptyState as EmptyState18, Flex as Flex67 } from "@raystack/apsara";
19213
19174
 
19214
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-LCyGANmv47BT/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
19215
- var digest69 = "76567f31da495c4e3c6a3c762b34684c4553da20b9423e9cfcdbef16f909cbf8";
19175
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-WTV8QV22nxto/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
19176
+ var digest69 = "b46d7d8221899f7ac680b037eaa892698f7f950aaa76691f668e84e727e3ba83";
19216
19177
  var css69 = `._empty-state_ct7gw_1 {
19217
19178
  height: 100%;
19218
19179
  }
@@ -19258,8 +19219,8 @@ var invoices_module_css_default4 = { "empty-state": "_empty-state_ct7gw_1", "emp
19258
19219
  // admin/views/organizations/details/invoices/index.tsx
19259
19220
  import { useContext as useContext21, useEffect as useEffect16, useMemo as useMemo13, useState as useState32 } from "react";
19260
19221
 
19261
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-myIM3KkT6WHl/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
19262
- var digest70 = "919667b6d44a14effb422a687090955abaae32e6151652cbf4e622d13f538032";
19222
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-eKguZ4yro401/sdk/admin/views/organizations/details/invoices/invoices.module.css.js
19223
+ var digest70 = "c4ea303daf6c255e05d9cb188ca403cd6b2286ae8eea9fe1d80fadeacd58edf0";
19263
19224
  var css70 = `._empty-state_ct7gw_1 {
19264
19225
  height: 100%;
19265
19226
  }
@@ -19303,7 +19264,6 @@ var css70 = `._empty-state_ct7gw_1 {
19303
19264
  var invoices_module_css_default5 = { "empty-state": "_empty-state_ct7gw_1", "emptyState": "_empty-state_ct7gw_1", "empty-state-subheading": "_empty-state-subheading_ct7gw_5", "emptyStateSubheading": "_empty-state-subheading_ct7gw_5", "table": "_table_ct7gw_10", "table-wrapper": "_table-wrapper_ct7gw_15", "tableWrapper": "_table-wrapper_ct7gw_15", "table-header": "_table-header_ct7gw_21", "tableHeader": "_table-header_ct7gw_21", "first-column": "_first-column_ct7gw_26", "firstColumn": "_first-column_ct7gw_26" };
19304
19265
 
19305
19266
  // admin/views/organizations/details/invoices/columns.tsx
19306
- import dayjs15 from "dayjs";
19307
19267
  import { Link as Link4, Amount as Amount5 } from "@raystack/apsara";
19308
19268
  import { jsx as jsx96 } from "react/jsx-runtime";
19309
19269
  var InvoiceStatusesMap = {
@@ -19323,11 +19283,7 @@ var getColumns15 = ({
19323
19283
  cell: invoices_module_css_default5["first-column"],
19324
19284
  header: invoices_module_css_default5["first-column"]
19325
19285
  },
19326
- cell: ({ getValue }) => {
19327
- const value = getValue();
19328
- const date = isNullTimestamp(value) ? "-" : dayjs15(timestampToDate(value)).format("YYYY-MM-DD");
19329
- return date;
19330
- },
19286
+ cell: ({ getValue }) => formatTimestamp(getValue()),
19331
19287
  enableSorting: true,
19332
19288
  enableColumnFilter: true,
19333
19289
  filterType: "date"
@@ -19374,7 +19330,7 @@ var getColumns15 = ({
19374
19330
  ];
19375
19331
 
19376
19332
  // admin/views/organizations/details/invoices/index.tsx
19377
- import { FrontierServiceQueries as FrontierServiceQueries31 } from "@raystack/proton/frontier";
19333
+ import { FrontierServiceQueries as FrontierServiceQueries32 } from "@raystack/proton/frontier";
19378
19334
  import { useInfiniteQuery as useInfiniteQuery9 } from "@connectrpc/connect-query";
19379
19335
  import { jsx as jsx97, jsxs as jsxs78 } from "react/jsx-runtime";
19380
19336
  var DEFAULT_SORT7 = { name: "createdAt", order: "desc" };
@@ -19469,7 +19425,7 @@ function OrganizationInvoicesView() {
19469
19425
  hasNextPage,
19470
19426
  isError
19471
19427
  } = useInfiniteQuery9(
19472
- FrontierServiceQueries31.searchOrganizationInvoices,
19428
+ FrontierServiceQueries32.searchOrganizationInvoices,
19473
19429
  { id: organizationId, query },
19474
19430
  {
19475
19431
  enabled: !!organizationId,
@@ -19539,8 +19495,8 @@ function OrganizationInvoicesView() {
19539
19495
  // admin/views/organizations/details/tokens/index.tsx
19540
19496
  import { DataTable as DataTable20, EmptyState as EmptyState19, Flex as Flex69 } from "@raystack/apsara";
19541
19497
 
19542
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-Y2LW6YzGT4Gy/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
19543
- var digest71 = "a4856fd535812810fe38643f086ee7e53faf57b4b36589659608d22c3aa2ef34";
19498
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-CfRDdD1QEs6T/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
19499
+ var digest71 = "7957132b397bebfb41438dcd6fd9a5b914470b2c03d0214f63a6d85abc76fd7f";
19544
19500
  var css71 = `._empty-state_1mf09_1 {
19545
19501
  height: 100%;
19546
19502
  }
@@ -19597,11 +19553,11 @@ var tokens_module_css_default = { "empty-state": "_empty-state_1mf09_1", "emptyS
19597
19553
  // admin/views/organizations/details/tokens/index.tsx
19598
19554
  import { CoinIcon as CoinIcon2 } from "@raystack/apsara/icons";
19599
19555
  import { useContext as useContext22, useEffect as useEffect17, useMemo as useMemo14, useState as useState33 } from "react";
19600
- import { FrontierServiceQueries as FrontierServiceQueries32 } from "@raystack/proton/frontier";
19556
+ import { FrontierServiceQueries as FrontierServiceQueries33 } from "@raystack/proton/frontier";
19601
19557
  import { useInfiniteQuery as useInfiniteQuery10 } from "@connectrpc/connect-query";
19602
19558
 
19603
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-8jf4R6HkrsSJ/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
19604
- var digest72 = "ce742b154e72e439aa76a2486615bebf968adfecf25f8ac1e0cf106ff1b52db0";
19559
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-QWPFVrhW7a6D/sdk/admin/views/organizations/details/tokens/tokens.module.css.js
19560
+ var digest72 = "376aefb35b85d64bd889c21cee6a2fdb1c328eef86e917cb4f1f7573de6b5151";
19605
19561
  var css72 = `._empty-state_1mf09_1 {
19606
19562
  height: 100%;
19607
19563
  }
@@ -19656,7 +19612,6 @@ var css72 = `._empty-state_1mf09_1 {
19656
19612
  var tokens_module_css_default2 = { "empty-state": "_empty-state_1mf09_1", "emptyState": "_empty-state_1mf09_1", "empty-state-subheading": "_empty-state-subheading_1mf09_5", "emptyStateSubheading": "_empty-state-subheading_1mf09_5", "table": "_table_1mf09_10", "table-wrapper": "_table-wrapper_1mf09_15", "tableWrapper": "_table-wrapper_1mf09_15", "table-header": "_table-header_1mf09_21", "tableHeader": "_table-header_1mf09_21", "first-column": "_first-column_1mf09_26", "firstColumn": "_first-column_1mf09_26", "truncate-tooltip-wrapper": "_truncate-tooltip-wrapper_1mf09_31", "truncateTooltipWrapper": "_truncate-tooltip-wrapper_1mf09_31", "truncate-text": "_truncate-text_1mf09_35", "truncateText": "_truncate-text_1mf09_35" };
19657
19613
 
19658
19614
  // admin/views/organizations/details/tokens/columns.tsx
19659
- import dayjs16 from "dayjs";
19660
19615
  import {
19661
19616
  Avatar as Avatar14,
19662
19617
  Flex as Flex68,
@@ -19675,11 +19630,7 @@ var getColumns16 = ({ t }) => {
19675
19630
  header: tokens_module_css_default2["first-column"]
19676
19631
  },
19677
19632
  styles: { header: { width: "180px" } },
19678
- cell: ({ getValue }) => {
19679
- const value = getValue();
19680
- const date = isNullTimestamp(value) ? "-" : dayjs16(timestampToDate(value)).format("YYYY-MM-DD");
19681
- return date;
19682
- },
19633
+ cell: ({ getValue }) => formatTimestamp(getValue()),
19683
19634
  enableSorting: true,
19684
19635
  enableColumnFilter: true,
19685
19636
  filterType: "date"
@@ -19815,7 +19766,7 @@ function OrganizationTokensView() {
19815
19766
  hasNextPage,
19816
19767
  isError
19817
19768
  } = useInfiniteQuery10(
19818
- FrontierServiceQueries32.searchOrganizationTokens,
19769
+ FrontierServiceQueries33.searchOrganizationTokens,
19819
19770
  { id: organizationId, query },
19820
19771
  {
19821
19772
  enabled: !!organizationId,
@@ -19884,8 +19835,8 @@ function OrganizationTokensView() {
19884
19835
  // admin/views/organizations/details/apis/index.tsx
19885
19836
  import { DataTable as DataTable21, EmptyState as EmptyState20, Flex as Flex71 } from "@raystack/apsara";
19886
19837
 
19887
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-V06e8sJqpD4H/sdk/admin/views/organizations/details/apis/apis.module.css.js
19888
- var digest73 = "5dc572fc5a9c90e3aae27778cd0f77aa37d1416dc8d6b194ba32b7745e6f2799";
19838
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-GABo2mIRbRHl/sdk/admin/views/organizations/details/apis/apis.module.css.js
19839
+ var digest73 = "08564b8020e5766d61f6889bbe0b7f6edbff6c9b398fda66bdd87d1179b39e0a";
19889
19840
  var css73 = `._empty-state_r9k2f_1 {
19890
19841
  height: 100%;
19891
19842
  }
@@ -19968,10 +19919,9 @@ import { useCallback as useCallback11, useContext as useContext23, useEffect as
19968
19919
 
19969
19920
  // admin/views/organizations/details/apis/columns.tsx
19970
19921
  import { Text as Text50 } from "@raystack/apsara";
19971
- import dayjs17 from "dayjs";
19972
19922
 
19973
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-JpcfvLnt9EIt/sdk/admin/views/organizations/details/apis/apis.module.css.js
19974
- var digest74 = "2c528425909367a539e1378906eda9bd98d611ef5eecf629b2f41bfd07b585d7";
19923
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-4sSwBL1Jdddq/sdk/admin/views/organizations/details/apis/apis.module.css.js
19924
+ var digest74 = "790098e2a9310700075352aa6a637acd40c2913c4b33748e2f5dce5579b9570e";
19975
19925
  var css74 = `._empty-state_r9k2f_1 {
19976
19926
  height: 100%;
19977
19927
  }
@@ -20078,12 +20028,9 @@ function getColumns17(options) {
20078
20028
  enableColumnFilter: true
20079
20029
  },
20080
20030
  {
20081
- accessorKey: "created_at",
20031
+ accessorKey: "createdAt",
20082
20032
  header: "Created on",
20083
- cell: ({ getValue }) => {
20084
- const value = getValue();
20085
- return value !== NULL_DATE ? dayjs17(value).format("YYYY-MM-DD") : "-";
20086
- },
20033
+ cell: ({ getValue }) => formatTimestamp(getValue()),
20087
20034
  enableSorting: true,
20088
20035
  enableColumnFilter: true,
20089
20036
  filterType: "date",
@@ -20095,8 +20042,8 @@ function getColumns17(options) {
20095
20042
  // admin/views/organizations/details/apis/details-dialog.tsx
20096
20043
  import { Dialog as Dialog10, Flex as Flex70, Skeleton as Skeleton6, Tabs, Text as Text51, toastManager as toastManager23 } from "@raystack/apsara";
20097
20044
 
20098
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-yPaEAr4UhqqV/sdk/admin/views/organizations/details/apis/apis.module.css.js
20099
- var digest75 = "c8b14a6e10fa151742ab3db1b583ee02470f685813989342944a55a1d6e7859a";
20045
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-PEy1HPq9UDHD/sdk/admin/views/organizations/details/apis/apis.module.css.js
20046
+ var digest75 = "1707a537b0e766c87b9cab6dbd1f4f6773b83cc62f8cbd87534e2ba6839108ef";
20100
20047
  var css75 = `._empty-state_r9k2f_1 {
20101
20048
  height: 100%;
20102
20049
  }
@@ -20176,9 +20123,9 @@ var apis_module_css_default3 = { "empty-state": "_empty-state_r9k2f_1", "emptySt
20176
20123
 
20177
20124
  // admin/views/organizations/details/apis/details-dialog.tsx
20178
20125
  import { useCallback as useCallback10, useEffect as useEffect18, useMemo as useMemo15 } from "react";
20179
- import { useQuery as useQuery21 } from "@connectrpc/connect-query";
20126
+ import { useQuery as useQuery22 } from "@connectrpc/connect-query";
20180
20127
  import {
20181
- FrontierServiceQueries as FrontierServiceQueries33,
20128
+ FrontierServiceQueries as FrontierServiceQueries34,
20182
20129
  ListServiceUserProjectsRequestSchema,
20183
20130
  ListServiceUserTokensRequestSchema
20184
20131
  } from "@raystack/proton/frontier";
@@ -20208,7 +20155,7 @@ var ServiceUserDetailsDialog = ({
20208
20155
  data: projects = [],
20209
20156
  isLoading: isProjectLoading,
20210
20157
  error: projectError
20211
- } = useQuery21(FrontierServiceQueries33.listServiceUserProjects, projectsRequest, {
20158
+ } = useQuery22(FrontierServiceQueries34.listServiceUserProjects, projectsRequest, {
20212
20159
  enabled: !!orgId && !!id,
20213
20160
  select: (data) => data?.projects || []
20214
20161
  });
@@ -20216,7 +20163,7 @@ var ServiceUserDetailsDialog = ({
20216
20163
  data: tokens = [],
20217
20164
  isLoading: isTokenLoading,
20218
20165
  error: tokenError
20219
- } = useQuery21(FrontierServiceQueries33.listServiceUserTokens, tokensRequest, {
20166
+ } = useQuery22(FrontierServiceQueries34.listServiceUserTokens, tokensRequest, {
20220
20167
  enabled: !!orgId && !!id,
20221
20168
  select: (data) => data?.tokens || []
20222
20169
  });
@@ -20276,7 +20223,7 @@ var ServiceUserDetailsDialog = ({
20276
20223
  gap: 2,
20277
20224
  children: [
20278
20225
  /* @__PURE__ */ jsx101(Text51, { weight: "medium", children: token.title }),
20279
- /* @__PURE__ */ jsx101(Text51, { size: "micro", children: timestampToDayjs(token.createdAt)?.format("YYYY-MM-DD") })
20226
+ /* @__PURE__ */ jsx101(Text51, { size: "micro", children: formatTimestamp(token.createdAt) })
20280
20227
  ]
20281
20228
  },
20282
20229
  token.id
@@ -20476,10 +20423,10 @@ function OrganizationApisView() {
20476
20423
  // admin/views/organizations/details/pat/index.tsx
20477
20424
  import { DataTable as DataTable22, EmptyState as EmptyState21, Flex as Flex74 } from "@raystack/apsara";
20478
20425
  import { useCallback as useCallback12, useContext as useContext24, useEffect as useEffect20, useMemo as useMemo18, useState as useState35 } from "react";
20479
- import { useInfiniteQuery as useInfiniteQuery12, useQuery as useQuery23 } from "@connectrpc/connect-query";
20426
+ import { useInfiniteQuery as useInfiniteQuery12, useQuery as useQuery24 } from "@connectrpc/connect-query";
20480
20427
  import {
20481
20428
  AdminServiceQueries as AdminServiceQueries20,
20482
- FrontierServiceQueries as FrontierServiceQueries35
20429
+ FrontierServiceQueries as FrontierServiceQueries36
20483
20430
  } from "@raystack/proton/frontier";
20484
20431
 
20485
20432
  // admin/views/organizations/details/pat/columns.tsx
@@ -20489,7 +20436,7 @@ import {
20489
20436
  getAvatarColor as getAvatarColor13,
20490
20437
  Text as Text52
20491
20438
  } from "@raystack/apsara";
20492
- import dayjs18 from "dayjs";
20439
+ import dayjs4 from "dayjs";
20493
20440
  import relativeTime2 from "dayjs/plugin/relativeTime";
20494
20441
 
20495
20442
  // utils/index.ts
@@ -20501,8 +20448,8 @@ var getInitials = function(name = "") {
20501
20448
  return initials;
20502
20449
  };
20503
20450
 
20504
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-WXZCfiuKIGaR/sdk/admin/views/organizations/details/pat/pat.module.css.js
20505
- var digest76 = "4f51a194109e78baf279f21d2f8e762848fe718c98f64896af085e5377af106c";
20451
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-obImi1XxpWC9/sdk/admin/views/organizations/details/pat/pat.module.css.js
20452
+ var digest76 = "ed2c27db2ed978f1beaf7d25c03f4c3ea07cd3a1ee9b70b846e5e1cdc76d1226";
20506
20453
  var css76 = `._empty-state_1xap9_1 {
20507
20454
  height: 100%;
20508
20455
  }
@@ -20566,8 +20513,7 @@ var pat_module_css_default = { "empty-state": "_empty-state_1xap9_1", "emptyStat
20566
20513
 
20567
20514
  // admin/views/organizations/details/pat/columns.tsx
20568
20515
  import { jsx as jsx103, jsxs as jsxs83 } from "react/jsx-runtime";
20569
- dayjs18.extend(relativeTime2);
20570
- var DATE_FORMAT = "DD MMM YYYY";
20516
+ dayjs4.extend(relativeTime2);
20571
20517
  function getColumns18({
20572
20518
  projectsMap
20573
20519
  }) {
@@ -20626,10 +20572,7 @@ function getColumns18({
20626
20572
  accessorKey: "createdAt",
20627
20573
  header: "Created On",
20628
20574
  styles: { header: { width: "152px" } },
20629
- cell: ({ row }) => {
20630
- const date = timestampToDayjs(row.original.createdAt);
20631
- return date ? /* @__PURE__ */ jsx103(Text52, { children: date.format(DATE_FORMAT) }) : /* @__PURE__ */ jsx103(Text52, { children: "-" });
20632
- },
20575
+ cell: ({ getValue }) => /* @__PURE__ */ jsx103(Text52, { children: formatTimestamp(getValue()) }),
20633
20576
  enableSorting: true,
20634
20577
  enableColumnFilter: true,
20635
20578
  filterType: "date",
@@ -20639,13 +20582,7 @@ function getColumns18({
20639
20582
  accessorKey: "expiresAt",
20640
20583
  header: "Expiry Date",
20641
20584
  styles: { header: { width: "152px" } },
20642
- cell: ({ row }) => {
20643
- const expiresAt = row.original.expiresAt;
20644
- if (!expiresAt || isNullTimestamp(expiresAt))
20645
- return /* @__PURE__ */ jsx103(Text52, { children: "-" });
20646
- const date = timestampToDayjs(expiresAt);
20647
- return date ? /* @__PURE__ */ jsx103(Text52, { children: date.format(DATE_FORMAT) }) : /* @__PURE__ */ jsx103(Text52, { children: "-" });
20648
- },
20585
+ cell: ({ getValue }) => /* @__PURE__ */ jsx103(Text52, { children: formatTimestamp(getValue()) }),
20649
20586
  enableSorting: true,
20650
20587
  enableColumnFilter: true,
20651
20588
  filterType: "date",
@@ -20679,13 +20616,13 @@ import {
20679
20616
  Tabs as Tabs2,
20680
20617
  Text as Text53
20681
20618
  } from "@raystack/apsara";
20682
- import { useQuery as useQuery22 } from "@connectrpc/connect-query";
20619
+ import { useQuery as useQuery23 } from "@connectrpc/connect-query";
20683
20620
  import {
20684
- FrontierServiceQueries as FrontierServiceQueries34
20621
+ FrontierServiceQueries as FrontierServiceQueries35
20685
20622
  } from "@raystack/proton/frontier";
20686
20623
 
20687
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-dnXx6eVr4WaF/sdk/admin/views/organizations/details/pat/components/pat-details-dialog.module.css.js
20688
- var digest77 = "4f288ee94c395091c2c45c4922d2aa3a61e8e21275cf571d33abfaae22abc7bf";
20624
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-SSiCjdjTT4hr/sdk/admin/views/organizations/details/pat/components/pat-details-dialog.module.css.js
20625
+ var digest77 = "4b7b6c9e270ce73b5cc762d8ad861849c69f5298d5ffb0ffb56b8a6466bdc1bd";
20689
20626
  var css77 = `._details-dialog_1dwlo_1 {
20690
20627
  width: 100%;
20691
20628
  max-width: 400px;
@@ -20772,8 +20709,8 @@ function PatDetailsDialog({
20772
20709
  () => scopeProjectIds.map((id) => projectsMap[id]).filter((p) => Boolean(p)),
20773
20710
  [scopeProjectIds, projectsMap]
20774
20711
  );
20775
- const { data: rolesData, isLoading: isRolesLoading } = useQuery22(
20776
- FrontierServiceQueries34.listRolesForPAT,
20712
+ const { data: rolesData, isLoading: isRolesLoading } = useQuery23(
20713
+ FrontierServiceQueries35.listRolesForPAT,
20777
20714
  { scopes: [SCOPES.ORG, SCOPES.PROJECT] },
20778
20715
  { enabled: open }
20779
20716
  );
@@ -20876,8 +20813,8 @@ function PatDetailsDialog({
20876
20813
  ] }) });
20877
20814
  }
20878
20815
 
20879
- // esbuild-css-modules-plugin-namespace:/tmp/tmp-2462-aLNdFdSvXvO2/sdk/admin/views/organizations/details/pat/pat.module.css.js
20880
- var digest78 = "5d68b1599ab37fe24f4cfaa1ea05c867e6de41a0e6b943b50f8789aca06dc411";
20816
+ // esbuild-css-modules-plugin-namespace:/tmp/tmp-2375-5Un15oGMsuWO/sdk/admin/views/organizations/details/pat/pat.module.css.js
20817
+ var digest78 = "41e5dbaac2cdaa6e27ef8d9d5988b124ff01ced5b490daf9423ba82f0eb5f999";
20881
20818
  var css78 = `._empty-state_1xap9_1 {
20882
20819
  height: 100%;
20883
20820
  }
@@ -21038,8 +20975,8 @@ function OrganizationPatView() {
21038
20975
  retryDelay: 1e3
21039
20976
  }
21040
20977
  );
21041
- const { data: projects = [] } = useQuery23(
21042
- FrontierServiceQueries35.listOrganizationProjects,
20978
+ const { data: projects = [] } = useQuery24(
20979
+ FrontierServiceQueries36.listOrganizationProjects,
21043
20980
  { id: organizationId, state: "", withMemberCount: false },
21044
20981
  {
21045
20982
  enabled: !!organizationId,