@alepha/ui 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/admin/{AdminFiles-CllAxb1B.js → AdminFiles-BjofP3OC.js} +11 -11
  2. package/dist/admin/AdminFiles-BjofP3OC.js.map +1 -0
  3. package/dist/admin/AdminFiles-DldZB7oo.js +3 -0
  4. package/dist/admin/AdminJobs-BOq6AZOW.js +3 -0
  5. package/dist/admin/{AdminJobs-BXkFtlVo.js → AdminJobs-CDnVxEv6.js} +11 -11
  6. package/dist/admin/AdminJobs-CDnVxEv6.js.map +1 -0
  7. package/dist/admin/AdminLayout-Bgx25J8m.js +3 -0
  8. package/dist/admin/{AdminLayout-CtkVYk-u.js → AdminLayout-CervL8LV.js} +6 -6
  9. package/dist/admin/AdminLayout-CervL8LV.js.map +1 -0
  10. package/dist/admin/AdminNotifications-BDQXt3-e.js +3 -0
  11. package/dist/admin/{AdminNotifications-DnnulNNV.js → AdminNotifications-DvI2989x.js} +6 -6
  12. package/dist/admin/AdminNotifications-DvI2989x.js.map +1 -0
  13. package/dist/admin/{AdminParameters-B3hvpLpu.js → AdminParameters-CWi7crdn.js} +6 -6
  14. package/dist/admin/AdminParameters-CWi7crdn.js.map +1 -0
  15. package/dist/admin/AdminParameters-DKRAVen3.js +3 -0
  16. package/dist/admin/{AdminSessions-Pjdz-iZx.js → AdminSessions-CmDVneE2.js} +11 -11
  17. package/dist/admin/AdminSessions-CmDVneE2.js.map +1 -0
  18. package/dist/admin/AdminSessions-Dkk_fzWK.js +3 -0
  19. package/dist/admin/{AdminUsers-C1HsrRxn.js → AdminUsers-88De5pev.js} +9 -9
  20. package/dist/admin/AdminUsers-88De5pev.js.map +1 -0
  21. package/dist/admin/AdminUsers-oyAXqZ5l.js +3 -0
  22. package/dist/admin/AdminVerifications-D93TKymL.js +3 -0
  23. package/dist/admin/{AdminVerifications-VMpm30mS.js → AdminVerifications-DBVEoqJe.js} +6 -6
  24. package/dist/admin/AdminVerifications-DBVEoqJe.js.map +1 -0
  25. package/dist/admin/index.d.ts +80 -80
  26. package/dist/admin/index.js +17 -17
  27. package/dist/auth/{IconGoogle-Bfmuv9Rv.js → IconGoogle-v_58os2T.js} +1 -1
  28. package/dist/auth/{IconGoogle-Bfmuv9Rv.js.map → IconGoogle-v_58os2T.js.map} +1 -1
  29. package/dist/auth/Login-BC2jTczq.js +4 -0
  30. package/dist/auth/{Login-JeXFsUf5.js → Login-OCrvjs9U.js} +12 -12
  31. package/dist/auth/Login-OCrvjs9U.js.map +1 -0
  32. package/dist/auth/Register-Dh0lsQmI.js +4 -0
  33. package/dist/auth/{Register-CPQnvXCZ.js → Register-Ei34GSba.js} +16 -16
  34. package/dist/auth/Register-Ei34GSba.js.map +1 -0
  35. package/dist/auth/ResetPassword-BnlAQAOE.js +3 -0
  36. package/dist/auth/{ResetPassword-BzUjGG_-.js → ResetPassword-tO0oMzfo.js} +12 -12
  37. package/dist/auth/ResetPassword-tO0oMzfo.js.map +1 -0
  38. package/dist/auth/index.d.ts +413 -830
  39. package/dist/auth/index.js +10 -10
  40. package/dist/auth/index.js.map +1 -1
  41. package/dist/core/index.d.ts +70 -70
  42. package/package.json +6 -9
  43. package/dist/admin/AdminFiles-BM6_7_5A.cjs +0 -4
  44. package/dist/admin/AdminFiles-BaCIMeNt.js +0 -4
  45. package/dist/admin/AdminFiles-CllAxb1B.js.map +0 -1
  46. package/dist/admin/AdminFiles-DC3T8uWZ.cjs +0 -122
  47. package/dist/admin/AdminFiles-DC3T8uWZ.cjs.map +0 -1
  48. package/dist/admin/AdminJobs-BXkFtlVo.js.map +0 -1
  49. package/dist/admin/AdminJobs-C428qrNQ.cjs +0 -130
  50. package/dist/admin/AdminJobs-C428qrNQ.cjs.map +0 -1
  51. package/dist/admin/AdminJobs-DCPPaJ4i.cjs +0 -4
  52. package/dist/admin/AdminJobs-yC6DarGO.js +0 -4
  53. package/dist/admin/AdminLayout-Bqo4cd33.cjs +0 -4
  54. package/dist/admin/AdminLayout-CQpxfko6.js +0 -4
  55. package/dist/admin/AdminLayout-CiLlywAQ.cjs +0 -93
  56. package/dist/admin/AdminLayout-CiLlywAQ.cjs.map +0 -1
  57. package/dist/admin/AdminLayout-CtkVYk-u.js.map +0 -1
  58. package/dist/admin/AdminNotifications-DNUeJ-PW.cjs +0 -44
  59. package/dist/admin/AdminNotifications-DNUeJ-PW.cjs.map +0 -1
  60. package/dist/admin/AdminNotifications-DaMu1AQ4.js +0 -4
  61. package/dist/admin/AdminNotifications-DnnulNNV.js.map +0 -1
  62. package/dist/admin/AdminNotifications-ihgbKVCx.cjs +0 -4
  63. package/dist/admin/AdminParameters-B3hvpLpu.js.map +0 -1
  64. package/dist/admin/AdminParameters-U4lU1rUF.cjs +0 -4
  65. package/dist/admin/AdminParameters-gdf7036N.cjs +0 -44
  66. package/dist/admin/AdminParameters-gdf7036N.cjs.map +0 -1
  67. package/dist/admin/AdminParameters-prMcCgxf.js +0 -4
  68. package/dist/admin/AdminSessions-BF_P4lHs.cjs +0 -128
  69. package/dist/admin/AdminSessions-BF_P4lHs.cjs.map +0 -1
  70. package/dist/admin/AdminSessions-CATIU61I.cjs +0 -4
  71. package/dist/admin/AdminSessions-DqOXOpYR.js +0 -4
  72. package/dist/admin/AdminSessions-Pjdz-iZx.js.map +0 -1
  73. package/dist/admin/AdminUsers-BgTL-zSY.js +0 -4
  74. package/dist/admin/AdminUsers-C1HsrRxn.js.map +0 -1
  75. package/dist/admin/AdminUsers-HqvxwNGZ.cjs +0 -4
  76. package/dist/admin/AdminUsers-M2uEQbp5.cjs +0 -109
  77. package/dist/admin/AdminUsers-M2uEQbp5.cjs.map +0 -1
  78. package/dist/admin/AdminVerifications-BVssbtfU.cjs +0 -44
  79. package/dist/admin/AdminVerifications-BVssbtfU.cjs.map +0 -1
  80. package/dist/admin/AdminVerifications-Df6DRgNo.js +0 -4
  81. package/dist/admin/AdminVerifications-DxAtcYUR.cjs +0 -4
  82. package/dist/admin/AdminVerifications-VMpm30mS.js.map +0 -1
  83. package/dist/admin/core-CzO6aavT.js +0 -2507
  84. package/dist/admin/core-CzO6aavT.js.map +0 -1
  85. package/dist/admin/core-aFtK4l9I.cjs +0 -2530
  86. package/dist/admin/core-aFtK4l9I.cjs.map +0 -1
  87. package/dist/admin/index.cjs +0 -87
  88. package/dist/admin/index.cjs.map +0 -1
  89. package/dist/admin/index.d.cts +0 -1739
  90. package/dist/auth/IconGoogle-B17BTQyD.cjs +0 -69
  91. package/dist/auth/IconGoogle-B17BTQyD.cjs.map +0 -1
  92. package/dist/auth/Login-BTBmbnWl.cjs +0 -181
  93. package/dist/auth/Login-BTBmbnWl.cjs.map +0 -1
  94. package/dist/auth/Login-BcQOtG3v.js +0 -5
  95. package/dist/auth/Login-Btmd70Um.cjs +0 -5
  96. package/dist/auth/Login-JeXFsUf5.js.map +0 -1
  97. package/dist/auth/Register-CPQnvXCZ.js.map +0 -1
  98. package/dist/auth/Register-CbesZal3.cjs +0 -5
  99. package/dist/auth/Register-DpI_JdyO.js +0 -5
  100. package/dist/auth/Register-HP3rP71B.cjs +0 -323
  101. package/dist/auth/Register-HP3rP71B.cjs.map +0 -1
  102. package/dist/auth/ResetPassword-B-tkzV7g.cjs +0 -248
  103. package/dist/auth/ResetPassword-B-tkzV7g.cjs.map +0 -1
  104. package/dist/auth/ResetPassword-BlK3xEpU.js +0 -4
  105. package/dist/auth/ResetPassword-BzUjGG_-.js.map +0 -1
  106. package/dist/auth/ResetPassword-W3xjOnWy.cjs +0 -4
  107. package/dist/auth/chunk-DhGyd7sr.js +0 -28
  108. package/dist/auth/core-D1MHij1j.js +0 -1795
  109. package/dist/auth/core-D1MHij1j.js.map +0 -1
  110. package/dist/auth/core-rDZ9d92K.cjs +0 -1824
  111. package/dist/auth/core-rDZ9d92K.cjs.map +0 -1
  112. package/dist/auth/index.cjs +0 -211
  113. package/dist/auth/index.cjs.map +0 -1
  114. package/dist/auth/index.d.cts +0 -6265
  115. package/dist/core/index.cjs +0 -2620
  116. package/dist/core/index.cjs.map +0 -1
  117. package/dist/core/index.d.cts +0 -2737
@@ -1,130 +0,0 @@
1
- const require_core = require('./core-aFtK4l9I.cjs');
2
- let __alepha_react_i18n = require("@alepha/react/i18n");
3
- let alepha = require("alepha");
4
- let __alepha_react = require("@alepha/react");
5
- let __mantine_core = require("@mantine/core");
6
- let __tabler_icons_react = require("@tabler/icons-react");
7
- let react_jsx_runtime = require("react/jsx-runtime");
8
- let alepha_api_jobs = require("alepha/api/jobs");
9
-
10
- //#region src/admin/components/AdminJobs.tsx
11
- const AdminJobs = () => {
12
- const client = (0, __alepha_react.useClient)();
13
- const { l } = (0, __alepha_react_i18n.useI18n)();
14
- const filters = alepha.t.object({
15
- job: alepha.t.optional(alepha.t.string({ $control: { query: alepha.t.pick(alepha_api_jobs.jobExecutions.schema, ["job"]) } })),
16
- status: alepha.t.optional(alepha.t.enum([
17
- "STARTED",
18
- "FAILED",
19
- "COMPLETED"
20
- ]))
21
- });
22
- const getStatusColor = (status) => {
23
- switch (status) {
24
- case "COMPLETED": return "green";
25
- case "FAILED": return "red";
26
- case "STARTED": return "blue";
27
- default: return "gray";
28
- }
29
- };
30
- const getStatusIcon = (status) => {
31
- switch (status) {
32
- case "COMPLETED": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__tabler_icons_react.IconCheck, { size: 12 });
33
- case "FAILED": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__tabler_icons_react.IconX, { size: 12 });
34
- case "STARTED": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__tabler_icons_react.IconPlayerPlay, { size: 12 });
35
- default: return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__tabler_icons_react.IconClock, { size: 12 });
36
- }
37
- };
38
- const formatDuration = (start, end) => {
39
- const startTime = new Date(start).getTime();
40
- const duration = (end ? new Date(end).getTime() : Date.now()) - startTime;
41
- if (duration < 1e3) return `${duration}ms`;
42
- if (duration < 6e4) return `${(duration / 1e3).toFixed(1)}s`;
43
- return `${Math.floor(duration / 6e4)}m ${Math.floor(duration % 6e4 / 1e3)}s`;
44
- };
45
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Flex, {
46
- flex: 1,
47
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core.DataTable_default, {
48
- submitOnInit: true,
49
- defaultSize: 10,
50
- typeFormProps: {
51
- skipSubmitButton: true,
52
- columns: 3
53
- },
54
- tableProps: {
55
- horizontalSpacing: "xs",
56
- verticalSpacing: "xs"
57
- },
58
- onFilterChange: (key, _value, form) => {
59
- if (key === "job" || key === "status") return form.submit();
60
- },
61
- filters,
62
- items: async (filters$1) => {
63
- return await client.getJobExecutions({ query: filters$1 });
64
- },
65
- columns: {
66
- job: {
67
- label: "Job",
68
- value: (item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Text, {
69
- size: "sm",
70
- fw: 500,
71
- children: item.job
72
- })
73
- },
74
- status: {
75
- label: "Status",
76
- fit: true,
77
- value: (item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Badge, {
78
- size: "sm",
79
- variant: "light",
80
- color: getStatusColor(item.status),
81
- leftSection: getStatusIcon(item.status),
82
- children: item.status
83
- })
84
- },
85
- duration: {
86
- label: "Duration",
87
- fit: true,
88
- value: (item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Text, {
89
- size: "xs",
90
- c: "dimmed",
91
- ff: "monospace",
92
- children: formatDuration(item.createdAt, item.finishedAt)
93
- })
94
- },
95
- error: {
96
- label: "Error",
97
- value: (item) => item.error ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Text, {
98
- size: "xs",
99
- c: "red",
100
- lineClamp: 1,
101
- children: item.error
102
- }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Text, {
103
- size: "xs",
104
- c: "dimmed",
105
- children: "-"
106
- })
107
- },
108
- createdAt: {
109
- label: "Started",
110
- fit: true,
111
- value: (item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Text, {
112
- size: "xs",
113
- c: "dimmed",
114
- children: l(item.createdAt, { date: "fromNow" })
115
- })
116
- }
117
- }
118
- })
119
- });
120
- };
121
- var AdminJobs_default = AdminJobs;
122
-
123
- //#endregion
124
- Object.defineProperty(exports, 'AdminJobs_default', {
125
- enumerable: true,
126
- get: function () {
127
- return AdminJobs_default;
128
- }
129
- });
130
- //# sourceMappingURL=AdminJobs-C428qrNQ.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AdminJobs-C428qrNQ.cjs","names":["t","jobExecutions","IconCheck","IconX","IconPlayerPlay","IconClock","Flex","DataTable","filters","Text","Badge"],"sources":["../../src/admin/components/AdminJobs.tsx"],"sourcesContent":["import { useClient } from \"@alepha/react\";\nimport { useI18n } from \"@alepha/react/i18n\";\nimport { DataTable, Flex, Text } from \"@alepha/ui\";\nimport { Badge } from \"@mantine/core\";\nimport {\n IconCheck,\n IconClock,\n IconPlayerPlay,\n IconX,\n} from \"@tabler/icons-react\";\nimport { type Page, t } from \"alepha\";\nimport {\n type JobController,\n type JobExecutionEntity,\n jobExecutions,\n} from \"alepha/api/jobs\";\n\nconst AdminJobs = () => {\n const client = useClient<JobController>();\n const { l } = useI18n();\n\n const filters = t.object({\n job: t.optional(\n t.string({\n $control: {\n query: t.pick(jobExecutions.schema, [\"job\"]),\n },\n }),\n ),\n status: t.optional(t.enum([\"STARTED\", \"FAILED\", \"COMPLETED\"])),\n });\n\n const getStatusColor = (status: string) => {\n switch (status) {\n case \"COMPLETED\":\n return \"green\";\n case \"FAILED\":\n return \"red\";\n case \"STARTED\":\n return \"blue\";\n default:\n return \"gray\";\n }\n };\n\n const getStatusIcon = (status: string) => {\n switch (status) {\n case \"COMPLETED\":\n return <IconCheck size={12} />;\n case \"FAILED\":\n return <IconX size={12} />;\n case \"STARTED\":\n return <IconPlayerPlay size={12} />;\n default:\n return <IconClock size={12} />;\n }\n };\n\n const formatDuration = (\n start: Date | string,\n end?: Date | string | null,\n ): string => {\n const startTime = new Date(start).getTime();\n const endTime = end ? new Date(end).getTime() : Date.now();\n const duration = endTime - startTime;\n\n if (duration < 1000) return `${duration}ms`;\n if (duration < 60000) return `${(duration / 1000).toFixed(1)}s`;\n return `${Math.floor(duration / 60000)}m ${Math.floor((duration % 60000) / 1000)}s`;\n };\n\n return (\n <Flex flex={1}>\n <DataTable<JobExecutionEntity, typeof filters>\n submitOnInit\n defaultSize={10}\n typeFormProps={{\n skipSubmitButton: true,\n columns: 3,\n }}\n tableProps={{\n horizontalSpacing: \"xs\",\n verticalSpacing: \"xs\",\n }}\n onFilterChange={(key, _value, form) => {\n if (key === \"job\" || key === \"status\") {\n return form.submit();\n }\n }}\n filters={filters}\n items={async (filters) => {\n const response = await client.getJobExecutions({\n query: filters,\n });\n\n return response as Page<JobExecutionEntity>;\n }}\n columns={{\n job: {\n label: \"Job\",\n value: (item) => (\n <Text size=\"sm\" fw={500}>\n {item.job}\n </Text>\n ),\n },\n status: {\n label: \"Status\",\n fit: true,\n value: (item) => (\n <Badge\n size=\"sm\"\n variant=\"light\"\n color={getStatusColor(item.status)}\n leftSection={getStatusIcon(item.status)}\n >\n {item.status}\n </Badge>\n ),\n },\n duration: {\n label: \"Duration\",\n fit: true,\n value: (item) => (\n <Text size=\"xs\" c=\"dimmed\" ff=\"monospace\">\n {formatDuration(item.createdAt, item.finishedAt)}\n </Text>\n ),\n },\n error: {\n label: \"Error\",\n value: (item) =>\n item.error ? (\n <Text size=\"xs\" c=\"red\" lineClamp={1}>\n {item.error}\n </Text>\n ) : (\n <Text size=\"xs\" c=\"dimmed\">\n -\n </Text>\n ),\n },\n createdAt: {\n label: \"Started\",\n fit: true,\n value: (item) => (\n <Text size=\"xs\" c=\"dimmed\">\n {l(item.createdAt, { date: \"fromNow\" })}\n </Text>\n ),\n },\n }}\n />\n </Flex>\n );\n};\n\nexport default AdminJobs;\n"],"mappings":";;;;;;;;;;AAiBA,MAAM,kBAAkB;CACtB,MAAM,wCAAmC;CACzC,MAAM,EAAE,wCAAe;CAEvB,MAAM,UAAUA,SAAE,OAAO;EACvB,KAAKA,SAAE,SACLA,SAAE,OAAO,EACP,UAAU,EACR,OAAOA,SAAE,KAAKC,8BAAc,QAAQ,CAAC,MAAM,CAAC,EAC7C,EACF,CAAC,CACH;EACD,QAAQD,SAAE,SAASA,SAAE,KAAK;GAAC;GAAW;GAAU;GAAY,CAAC,CAAC;EAC/D,CAAC;CAEF,MAAM,kBAAkB,WAAmB;AACzC,UAAQ,QAAR;GACE,KAAK,YACH,QAAO;GACT,KAAK,SACH,QAAO;GACT,KAAK,UACH,QAAO;GACT,QACE,QAAO;;;CAIb,MAAM,iBAAiB,WAAmB;AACxC,UAAQ,QAAR;GACE,KAAK,YACH,QAAO,2CAACE,kCAAU,MAAM,KAAM;GAChC,KAAK,SACH,QAAO,2CAACC,8BAAM,MAAM,KAAM;GAC5B,KAAK,UACH,QAAO,2CAACC,uCAAe,MAAM,KAAM;GACrC,QACE,QAAO,2CAACC,kCAAU,MAAM,KAAM;;;CAIpC,MAAM,kBACJ,OACA,QACW;EACX,MAAM,YAAY,IAAI,KAAK,MAAM,CAAC,SAAS;EAE3C,MAAM,YADU,MAAM,IAAI,KAAK,IAAI,CAAC,SAAS,GAAG,KAAK,KAAK,IAC/B;AAE3B,MAAI,WAAW,IAAM,QAAO,GAAG,SAAS;AACxC,MAAI,WAAW,IAAO,QAAO,IAAI,WAAW,KAAM,QAAQ,EAAE,CAAC;AAC7D,SAAO,GAAG,KAAK,MAAM,WAAW,IAAM,CAAC,IAAI,KAAK,MAAO,WAAW,MAAS,IAAK,CAAC;;AAGnF,QACE,2CAACC;EAAK,MAAM;YACV,2CAACC;GACC;GACA,aAAa;GACb,eAAe;IACb,kBAAkB;IAClB,SAAS;IACV;GACD,YAAY;IACV,mBAAmB;IACnB,iBAAiB;IAClB;GACD,iBAAiB,KAAK,QAAQ,SAAS;AACrC,QAAI,QAAQ,SAAS,QAAQ,SAC3B,QAAO,KAAK,QAAQ;;GAGf;GACT,OAAO,OAAO,cAAY;AAKxB,WAJiB,MAAM,OAAO,iBAAiB,EAC7C,OAAOC,WACR,CAAC;;GAIJ,SAAS;IACP,KAAK;KACH,OAAO;KACP,QAAQ,SACN,2CAACC;MAAK,MAAK;MAAK,IAAI;gBACjB,KAAK;OACD;KAEV;IACD,QAAQ;KACN,OAAO;KACP,KAAK;KACL,QAAQ,SACN,2CAACC;MACC,MAAK;MACL,SAAQ;MACR,OAAO,eAAe,KAAK,OAAO;MAClC,aAAa,cAAc,KAAK,OAAO;gBAEtC,KAAK;OACA;KAEX;IACD,UAAU;KACR,OAAO;KACP,KAAK;KACL,QAAQ,SACN,2CAACD;MAAK,MAAK;MAAK,GAAE;MAAS,IAAG;gBAC3B,eAAe,KAAK,WAAW,KAAK,WAAW;OAC3C;KAEV;IACD,OAAO;KACL,OAAO;KACP,QAAQ,SACN,KAAK,QACH,2CAACA;MAAK,MAAK;MAAK,GAAE;MAAM,WAAW;gBAChC,KAAK;OACD,GAEP,2CAACA;MAAK,MAAK;MAAK,GAAE;gBAAS;OAEpB;KAEZ;IACD,WAAW;KACT,OAAO;KACP,KAAK;KACL,QAAQ,SACN,2CAACA;MAAK,MAAK;MAAK,GAAE;gBACf,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;OAClC;KAEV;IACF;IACD;GACG;;AAIX,wBAAe"}
@@ -1,4 +0,0 @@
1
- require('./core-aFtK4l9I.cjs');
2
- const require_AdminJobs = require('./AdminJobs-C428qrNQ.cjs');
3
-
4
- exports.default = require_AdminJobs.AdminJobs_default;
@@ -1,4 +0,0 @@
1
- import "./core-CzO6aavT.js";
2
- import { t as AdminJobs_default } from "./AdminJobs-BXkFtlVo.js";
3
-
4
- export { AdminJobs_default as default };
@@ -1,4 +0,0 @@
1
- require('./core-aFtK4l9I.cjs');
2
- const require_AdminLayout = require('./AdminLayout-CiLlywAQ.cjs');
3
-
4
- exports.default = require_AdminLayout.AdminLayout_default;
@@ -1,4 +0,0 @@
1
- import "./core-CzO6aavT.js";
2
- import { t as AdminLayout_default } from "./AdminLayout-CtkVYk-u.js";
3
-
4
- export { AdminLayout_default as default };
@@ -1,93 +0,0 @@
1
- const require_core = require('./core-aFtK4l9I.cjs');
2
- let __alepha_react = require("@alepha/react");
3
- let __mantine_core = require("@mantine/core");
4
- let __tabler_icons_react = require("@tabler/icons-react");
5
- let react_jsx_runtime = require("react/jsx-runtime");
6
-
7
- //#region src/admin/components/AdminLayout.tsx
8
- const AdminLayout = () => {
9
- const router = (0, __alepha_react.useRouter)();
10
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core.AlephaMantineProvider_default, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core.AdminShell_default, {
11
- appShellMainProps: { bg: "var(--alepha-background)" },
12
- appShellHeaderProps: { bg: "var(--alepha-background)" },
13
- appShellNavbarProps: { bg: "var(--alepha-background)" },
14
- appShellProps: { withBorder: false },
15
- appBarProps: { items: [{
16
- type: "search",
17
- position: "center"
18
- }, {
19
- type: "dark",
20
- position: "right"
21
- }] },
22
- sidebarProps: { menu: [
23
- {
24
- type: "section",
25
- label: "Management"
26
- },
27
- {
28
- icon: __tabler_icons_react.IconUser,
29
- label: "Users",
30
- href: router.path("adminUsers")
31
- },
32
- {
33
- icon: __tabler_icons_react.IconMail,
34
- label: "Notifications",
35
- href: router.path("adminNotifications")
36
- },
37
- {
38
- icon: __tabler_icons_react.IconShield,
39
- label: "Sessions",
40
- href: router.path("adminSessions")
41
- },
42
- {
43
- icon: __tabler_icons_react.IconChecklist,
44
- label: "Verifications",
45
- href: router.path("adminVerifications")
46
- },
47
- {
48
- type: "section",
49
- label: "System"
50
- },
51
- {
52
- label: "Jobs",
53
- href: router.path("adminJobs"),
54
- icon: __tabler_icons_react.IconTruckDelivery
55
- },
56
- {
57
- label: "Workflows",
58
- href: router.path("adminWorkflows"),
59
- icon: __tabler_icons_react.IconJumpRope
60
- },
61
- {
62
- label: "Parameters",
63
- href: router.path("adminParameters"),
64
- icon: __tabler_icons_react.IconSettings
65
- },
66
- {
67
- label: "Files",
68
- href: router.path("adminFiles"),
69
- icon: __tabler_icons_react.IconFileDatabase
70
- }
71
- ] },
72
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Flex, {
73
- flex: 1,
74
- p: "lg",
75
- mt: -16,
76
- ml: -16,
77
- bg: "var(--alepha-surface)",
78
- bdrs: "lg",
79
- bd: "1px solid var(--alepha-border)",
80
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alepha_react.NestedView, {})
81
- })
82
- }) });
83
- };
84
- var AdminLayout_default = AdminLayout;
85
-
86
- //#endregion
87
- Object.defineProperty(exports, 'AdminLayout_default', {
88
- enumerable: true,
89
- get: function () {
90
- return AdminLayout_default;
91
- }
92
- });
93
- //# sourceMappingURL=AdminLayout-CiLlywAQ.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AdminLayout-CiLlywAQ.cjs","names":["AlephaMantineProvider","AdminShell","IconUser","IconMail","IconShield","IconChecklist","IconTruckDelivery","IconJumpRope","IconSettings","IconFileDatabase","Flex","NestedView"],"sources":["../../src/admin/components/AdminLayout.tsx"],"sourcesContent":["import { NestedView, useRouter } from \"@alepha/react\";\nimport { AdminShell, AlephaMantineProvider } from \"@alepha/ui\";\nimport { Flex } from \"@mantine/core\";\nimport {\n IconChecklist,\n IconFileDatabase,\n IconJumpRope,\n IconMail,\n IconSettings,\n IconShield,\n IconTruckDelivery,\n IconUser,\n} from \"@tabler/icons-react\";\nimport type { AdminRouter } from \"../AdminRouter.ts\";\n\nconst AdminLayout = () => {\n const router = useRouter<AdminRouter>();\n return (\n <AlephaMantineProvider>\n <AdminShell\n appShellMainProps={{\n bg: \"var(--alepha-background)\",\n }}\n appShellHeaderProps={{\n bg: \"var(--alepha-background)\",\n }}\n appShellNavbarProps={{\n bg: \"var(--alepha-background)\",\n }}\n appShellProps={{\n withBorder: false,\n }}\n appBarProps={{\n items: [\n {\n type: \"search\",\n position: \"center\",\n },\n {\n type: \"dark\",\n position: \"right\",\n },\n ],\n }}\n sidebarProps={{\n menu: [\n {\n type: \"section\",\n label: \"Management\",\n },\n {\n icon: IconUser,\n label: \"Users\",\n href: router.path(\"adminUsers\"),\n },\n {\n icon: IconMail,\n label: \"Notifications\",\n href: router.path(\"adminNotifications\"),\n },\n {\n icon: IconShield,\n label: \"Sessions\",\n href: router.path(\"adminSessions\"),\n },\n {\n icon: IconChecklist,\n label: \"Verifications\",\n href: router.path(\"adminVerifications\"),\n },\n {\n type: \"section\",\n label: \"System\",\n },\n {\n label: \"Jobs\",\n href: router.path(\"adminJobs\"),\n icon: IconTruckDelivery,\n },\n {\n label: \"Workflows\",\n href: router.path(\"adminWorkflows\"),\n icon: IconJumpRope,\n },\n {\n label: \"Parameters\",\n href: router.path(\"adminParameters\"),\n icon: IconSettings,\n },\n {\n label: \"Files\",\n href: router.path(\"adminFiles\"),\n icon: IconFileDatabase,\n },\n ],\n }}\n >\n <Flex\n flex={1}\n p={\"lg\"}\n mt={-16}\n ml={-16}\n bg={\"var(--alepha-surface)\"}\n bdrs={\"lg\"}\n bd={\"1px solid var(--alepha-border)\"}\n >\n <NestedView />\n </Flex>\n </AdminShell>\n </AlephaMantineProvider>\n );\n};\n\nexport default AdminLayout;\n"],"mappings":";;;;;;;AAeA,MAAM,oBAAoB;CACxB,MAAM,wCAAiC;AACvC,QACE,2CAACA,wDACC,2CAACC;EACC,mBAAmB,EACjB,IAAI,4BACL;EACD,qBAAqB,EACnB,IAAI,4BACL;EACD,qBAAqB,EACnB,IAAI,4BACL;EACD,eAAe,EACb,YAAY,OACb;EACD,aAAa,EACX,OAAO,CACL;GACE,MAAM;GACN,UAAU;GACX,EACD;GACE,MAAM;GACN,UAAU;GACX,CACF,EACF;EACD,cAAc,EACZ,MAAM;GACJ;IACE,MAAM;IACN,OAAO;IACR;GACD;IACE,MAAMC;IACN,OAAO;IACP,MAAM,OAAO,KAAK,aAAa;IAChC;GACD;IACE,MAAMC;IACN,OAAO;IACP,MAAM,OAAO,KAAK,qBAAqB;IACxC;GACD;IACE,MAAMC;IACN,OAAO;IACP,MAAM,OAAO,KAAK,gBAAgB;IACnC;GACD;IACE,MAAMC;IACN,OAAO;IACP,MAAM,OAAO,KAAK,qBAAqB;IACxC;GACD;IACE,MAAM;IACN,OAAO;IACR;GACD;IACE,OAAO;IACP,MAAM,OAAO,KAAK,YAAY;IAC9B,MAAMC;IACP;GACD;IACE,OAAO;IACP,MAAM,OAAO,KAAK,iBAAiB;IACnC,MAAMC;IACP;GACD;IACE,OAAO;IACP,MAAM,OAAO,KAAK,kBAAkB;IACpC,MAAMC;IACP;GACD;IACE,OAAO;IACP,MAAM,OAAO,KAAK,aAAa;IAC/B,MAAMC;IACP;GACF,EACF;YAED,2CAACC;GACC,MAAM;GACN,GAAG;GACH,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,MAAM;GACN,IAAI;aAEJ,2CAACC,8BAAa;IACT;GACI,GACS;;AAI5B,0BAAe"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AdminLayout-CtkVYk-u.js","names":["AlephaMantineProvider","AdminShell"],"sources":["../../src/admin/components/AdminLayout.tsx"],"sourcesContent":["import { NestedView, useRouter } from \"@alepha/react\";\nimport { AdminShell, AlephaMantineProvider } from \"@alepha/ui\";\nimport { Flex } from \"@mantine/core\";\nimport {\n IconChecklist,\n IconFileDatabase,\n IconJumpRope,\n IconMail,\n IconSettings,\n IconShield,\n IconTruckDelivery,\n IconUser,\n} from \"@tabler/icons-react\";\nimport type { AdminRouter } from \"../AdminRouter.ts\";\n\nconst AdminLayout = () => {\n const router = useRouter<AdminRouter>();\n return (\n <AlephaMantineProvider>\n <AdminShell\n appShellMainProps={{\n bg: \"var(--alepha-background)\",\n }}\n appShellHeaderProps={{\n bg: \"var(--alepha-background)\",\n }}\n appShellNavbarProps={{\n bg: \"var(--alepha-background)\",\n }}\n appShellProps={{\n withBorder: false,\n }}\n appBarProps={{\n items: [\n {\n type: \"search\",\n position: \"center\",\n },\n {\n type: \"dark\",\n position: \"right\",\n },\n ],\n }}\n sidebarProps={{\n menu: [\n {\n type: \"section\",\n label: \"Management\",\n },\n {\n icon: IconUser,\n label: \"Users\",\n href: router.path(\"adminUsers\"),\n },\n {\n icon: IconMail,\n label: \"Notifications\",\n href: router.path(\"adminNotifications\"),\n },\n {\n icon: IconShield,\n label: \"Sessions\",\n href: router.path(\"adminSessions\"),\n },\n {\n icon: IconChecklist,\n label: \"Verifications\",\n href: router.path(\"adminVerifications\"),\n },\n {\n type: \"section\",\n label: \"System\",\n },\n {\n label: \"Jobs\",\n href: router.path(\"adminJobs\"),\n icon: IconTruckDelivery,\n },\n {\n label: \"Workflows\",\n href: router.path(\"adminWorkflows\"),\n icon: IconJumpRope,\n },\n {\n label: \"Parameters\",\n href: router.path(\"adminParameters\"),\n icon: IconSettings,\n },\n {\n label: \"Files\",\n href: router.path(\"adminFiles\"),\n icon: IconFileDatabase,\n },\n ],\n }}\n >\n <Flex\n flex={1}\n p={\"lg\"}\n mt={-16}\n ml={-16}\n bg={\"var(--alepha-surface)\"}\n bdrs={\"lg\"}\n bd={\"1px solid var(--alepha-border)\"}\n >\n <NestedView />\n </Flex>\n </AdminShell>\n </AlephaMantineProvider>\n );\n};\n\nexport default AdminLayout;\n"],"mappings":";;;;;;;AAeA,MAAM,oBAAoB;CACxB,MAAM,SAAS,WAAwB;AACvC,QACE,oBAACA,2CACC,oBAACC;EACC,mBAAmB,EACjB,IAAI,4BACL;EACD,qBAAqB,EACnB,IAAI,4BACL;EACD,qBAAqB,EACnB,IAAI,4BACL;EACD,eAAe,EACb,YAAY,OACb;EACD,aAAa,EACX,OAAO,CACL;GACE,MAAM;GACN,UAAU;GACX,EACD;GACE,MAAM;GACN,UAAU;GACX,CACF,EACF;EACD,cAAc,EACZ,MAAM;GACJ;IACE,MAAM;IACN,OAAO;IACR;GACD;IACE,MAAM;IACN,OAAO;IACP,MAAM,OAAO,KAAK,aAAa;IAChC;GACD;IACE,MAAM;IACN,OAAO;IACP,MAAM,OAAO,KAAK,qBAAqB;IACxC;GACD;IACE,MAAM;IACN,OAAO;IACP,MAAM,OAAO,KAAK,gBAAgB;IACnC;GACD;IACE,MAAM;IACN,OAAO;IACP,MAAM,OAAO,KAAK,qBAAqB;IACxC;GACD;IACE,MAAM;IACN,OAAO;IACR;GACD;IACE,OAAO;IACP,MAAM,OAAO,KAAK,YAAY;IAC9B,MAAM;IACP;GACD;IACE,OAAO;IACP,MAAM,OAAO,KAAK,iBAAiB;IACnC,MAAM;IACP;GACD;IACE,OAAO;IACP,MAAM,OAAO,KAAK,kBAAkB;IACpC,MAAM;IACP;GACD;IACE,OAAO;IACP,MAAM,OAAO,KAAK,aAAa;IAC/B,MAAM;IACP;GACF,EACF;YAED,oBAAC;GACC,MAAM;GACN,GAAG;GACH,IAAI;GACJ,IAAI;GACJ,IAAI;GACJ,MAAM;GACN,IAAI;aAEJ,oBAAC,eAAa;IACT;GACI,GACS;;AAI5B,0BAAe"}
@@ -1,44 +0,0 @@
1
- let __mantine_core = require("@mantine/core");
2
- let __tabler_icons_react = require("@tabler/icons-react");
3
- let react_jsx_runtime = require("react/jsx-runtime");
4
-
5
- //#region src/admin/components/AdminNotifications.tsx
6
- const AdminNotifications = () => {
7
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Flex, {
8
- flex: 1,
9
- justify: "center",
10
- align: "center",
11
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__mantine_core.Stack, {
12
- align: "center",
13
- gap: "xs",
14
- children: [
15
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__tabler_icons_react.IconBell, {
16
- size: 48,
17
- stroke: 1.5,
18
- color: "var(--mantine-color-dimmed)"
19
- }),
20
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Text, {
21
- c: "dimmed",
22
- children: "Notification Center"
23
- }),
24
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Text, {
25
- size: "xs",
26
- c: "dimmed",
27
- ta: "center",
28
- maw: 400,
29
- children: "Notifications are processed through the queue system. Email and SMS notifications are sent asynchronously using the configured providers."
30
- })
31
- ]
32
- })
33
- });
34
- };
35
- var AdminNotifications_default = AdminNotifications;
36
-
37
- //#endregion
38
- Object.defineProperty(exports, 'AdminNotifications_default', {
39
- enumerable: true,
40
- get: function () {
41
- return AdminNotifications_default;
42
- }
43
- });
44
- //# sourceMappingURL=AdminNotifications-DNUeJ-PW.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AdminNotifications-DNUeJ-PW.cjs","names":["Flex","Stack","IconBell","Text"],"sources":["../../src/admin/components/AdminNotifications.tsx"],"sourcesContent":["import { Flex, Text } from \"@alepha/ui\";\nimport { Stack } from \"@mantine/core\";\nimport { IconBell } from \"@tabler/icons-react\";\n\nconst AdminNotifications = () => {\n return (\n <Flex flex={1} justify=\"center\" align=\"center\">\n <Stack align=\"center\" gap=\"xs\">\n <IconBell size={48} stroke={1.5} color=\"var(--mantine-color-dimmed)\" />\n <Text c=\"dimmed\">Notification Center</Text>\n <Text size=\"xs\" c=\"dimmed\" ta=\"center\" maw={400}>\n Notifications are processed through the queue system. Email and SMS\n notifications are sent asynchronously using the configured providers.\n </Text>\n </Stack>\n </Flex>\n );\n};\n\nexport default AdminNotifications;\n"],"mappings":";;;;;AAIA,MAAM,2BAA2B;AAC/B,QACE,2CAACA;EAAK,MAAM;EAAG,SAAQ;EAAS,OAAM;YACpC,4CAACC;GAAM,OAAM;GAAS,KAAI;;IACxB,2CAACC;KAAS,MAAM;KAAI,QAAQ;KAAK,OAAM;MAAgC;IACvE,2CAACC;KAAK,GAAE;eAAS;MAA0B;IAC3C,2CAACA;KAAK,MAAK;KAAK,GAAE;KAAS,IAAG;KAAS,KAAK;eAAK;MAG1C;;IACD;GACH;;AAIX,iCAAe"}
@@ -1,4 +0,0 @@
1
- import "./core-CzO6aavT.js";
2
- import { t as AdminNotifications_default } from "./AdminNotifications-DnnulNNV.js";
3
-
4
- export { AdminNotifications_default as default };
@@ -1 +0,0 @@
1
- {"version":3,"file":"AdminNotifications-DnnulNNV.js","names":["Flex","Text"],"sources":["../../src/admin/components/AdminNotifications.tsx"],"sourcesContent":["import { Flex, Text } from \"@alepha/ui\";\nimport { Stack } from \"@mantine/core\";\nimport { IconBell } from \"@tabler/icons-react\";\n\nconst AdminNotifications = () => {\n return (\n <Flex flex={1} justify=\"center\" align=\"center\">\n <Stack align=\"center\" gap=\"xs\">\n <IconBell size={48} stroke={1.5} color=\"var(--mantine-color-dimmed)\" />\n <Text c=\"dimmed\">Notification Center</Text>\n <Text size=\"xs\" c=\"dimmed\" ta=\"center\" maw={400}>\n Notifications are processed through the queue system. Email and SMS\n notifications are sent asynchronously using the configured providers.\n </Text>\n </Stack>\n </Flex>\n );\n};\n\nexport default AdminNotifications;\n"],"mappings":";;;;;;AAIA,MAAM,2BAA2B;AAC/B,QACE,oBAACA;EAAK,MAAM;EAAG,SAAQ;EAAS,OAAM;YACpC,qBAAC;GAAM,OAAM;GAAS,KAAI;;IACxB,oBAAC;KAAS,MAAM;KAAI,QAAQ;KAAK,OAAM;MAAgC;IACvE,oBAACC;KAAK,GAAE;eAAS;MAA0B;IAC3C,oBAACA;KAAK,MAAK;KAAK,GAAE;KAAS,IAAG;KAAS,KAAK;eAAK;MAG1C;;IACD;GACH;;AAIX,iCAAe"}
@@ -1,4 +0,0 @@
1
- require('./core-aFtK4l9I.cjs');
2
- const require_AdminNotifications = require('./AdminNotifications-DNUeJ-PW.cjs');
3
-
4
- exports.default = require_AdminNotifications.AdminNotifications_default;
@@ -1 +0,0 @@
1
- {"version":3,"file":"AdminParameters-B3hvpLpu.js","names":["Flex","Text"],"sources":["../../src/admin/components/AdminParameters.tsx"],"sourcesContent":["import { Flex, Text } from \"@alepha/ui\";\nimport { Stack } from \"@mantine/core\";\nimport { IconSettings } from \"@tabler/icons-react\";\n\nconst AdminParameters = () => {\n return (\n <Flex flex={1} justify=\"center\" align=\"center\">\n <Stack align=\"center\" gap=\"xs\">\n <IconSettings\n size={48}\n stroke={1.5}\n color=\"var(--mantine-color-dimmed)\"\n />\n <Text c=\"dimmed\">Parameter Management</Text>\n <Text size=\"xs\" c=\"dimmed\" ta=\"center\" maw={400}>\n Application parameters and configuration settings. Define parameters\n using the $config descriptor to manage dynamic application settings.\n </Text>\n </Stack>\n </Flex>\n );\n};\n\nexport default AdminParameters;\n"],"mappings":";;;;;;AAIA,MAAM,wBAAwB;AAC5B,QACE,oBAACA;EAAK,MAAM;EAAG,SAAQ;EAAS,OAAM;YACpC,qBAAC;GAAM,OAAM;GAAS,KAAI;;IACxB,oBAAC;KACC,MAAM;KACN,QAAQ;KACR,OAAM;MACN;IACF,oBAACC;KAAK,GAAE;eAAS;MAA2B;IAC5C,oBAACA;KAAK,MAAK;KAAK,GAAE;KAAS,IAAG;KAAS,KAAK;eAAK;MAG1C;;IACD;GACH;;AAIX,8BAAe"}
@@ -1,4 +0,0 @@
1
- require('./core-aFtK4l9I.cjs');
2
- const require_AdminParameters = require('./AdminParameters-gdf7036N.cjs');
3
-
4
- exports.default = require_AdminParameters.AdminParameters_default;
@@ -1,44 +0,0 @@
1
- let __mantine_core = require("@mantine/core");
2
- let __tabler_icons_react = require("@tabler/icons-react");
3
- let react_jsx_runtime = require("react/jsx-runtime");
4
-
5
- //#region src/admin/components/AdminParameters.tsx
6
- const AdminParameters = () => {
7
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Flex, {
8
- flex: 1,
9
- justify: "center",
10
- align: "center",
11
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__mantine_core.Stack, {
12
- align: "center",
13
- gap: "xs",
14
- children: [
15
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__tabler_icons_react.IconSettings, {
16
- size: 48,
17
- stroke: 1.5,
18
- color: "var(--mantine-color-dimmed)"
19
- }),
20
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Text, {
21
- c: "dimmed",
22
- children: "Parameter Management"
23
- }),
24
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Text, {
25
- size: "xs",
26
- c: "dimmed",
27
- ta: "center",
28
- maw: 400,
29
- children: "Application parameters and configuration settings. Define parameters using the $config descriptor to manage dynamic application settings."
30
- })
31
- ]
32
- })
33
- });
34
- };
35
- var AdminParameters_default = AdminParameters;
36
-
37
- //#endregion
38
- Object.defineProperty(exports, 'AdminParameters_default', {
39
- enumerable: true,
40
- get: function () {
41
- return AdminParameters_default;
42
- }
43
- });
44
- //# sourceMappingURL=AdminParameters-gdf7036N.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AdminParameters-gdf7036N.cjs","names":["Flex","Stack","IconSettings","Text"],"sources":["../../src/admin/components/AdminParameters.tsx"],"sourcesContent":["import { Flex, Text } from \"@alepha/ui\";\nimport { Stack } from \"@mantine/core\";\nimport { IconSettings } from \"@tabler/icons-react\";\n\nconst AdminParameters = () => {\n return (\n <Flex flex={1} justify=\"center\" align=\"center\">\n <Stack align=\"center\" gap=\"xs\">\n <IconSettings\n size={48}\n stroke={1.5}\n color=\"var(--mantine-color-dimmed)\"\n />\n <Text c=\"dimmed\">Parameter Management</Text>\n <Text size=\"xs\" c=\"dimmed\" ta=\"center\" maw={400}>\n Application parameters and configuration settings. Define parameters\n using the $config descriptor to manage dynamic application settings.\n </Text>\n </Stack>\n </Flex>\n );\n};\n\nexport default AdminParameters;\n"],"mappings":";;;;;AAIA,MAAM,wBAAwB;AAC5B,QACE,2CAACA;EAAK,MAAM;EAAG,SAAQ;EAAS,OAAM;YACpC,4CAACC;GAAM,OAAM;GAAS,KAAI;;IACxB,2CAACC;KACC,MAAM;KACN,QAAQ;KACR,OAAM;MACN;IACF,2CAACC;KAAK,GAAE;eAAS;MAA2B;IAC5C,2CAACA;KAAK,MAAK;KAAK,GAAE;KAAS,IAAG;KAAS,KAAK;eAAK;MAG1C;;IACD;GACH;;AAIX,8BAAe"}
@@ -1,4 +0,0 @@
1
- import "./core-CzO6aavT.js";
2
- import { t as AdminParameters_default } from "./AdminParameters-B3hvpLpu.js";
3
-
4
- export { AdminParameters_default as default };
@@ -1,128 +0,0 @@
1
- const require_core = require('./core-aFtK4l9I.cjs');
2
- let __alepha_react_i18n = require("@alepha/react/i18n");
3
- let alepha = require("alepha");
4
- let __alepha_react = require("@alepha/react");
5
- let __mantine_core = require("@mantine/core");
6
- let __tabler_icons_react = require("@tabler/icons-react");
7
- let react_jsx_runtime = require("react/jsx-runtime");
8
- let alepha_api_users = require("alepha/api/users");
9
-
10
- //#region src/admin/components/AdminSessions.tsx
11
- const AdminSessions = (props) => {
12
- const client = (0, __alepha_react.useClient)();
13
- const { l } = (0, __alepha_react_i18n.useI18n)();
14
- const filters = alepha.t.object({ userId: alepha.t.optional(alepha.t.uuid({ $control: { query: alepha.t.pick(alepha_api_users.sessions.schema, ["userId"]) } })) });
15
- const getDeviceIcon = (device) => {
16
- switch (device) {
17
- case "MOBILE": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__tabler_icons_react.IconDeviceMobile, { size: 14 });
18
- case "TABLET": return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__tabler_icons_react.IconDeviceTablet, { size: 14 });
19
- default: return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__tabler_icons_react.IconDeviceDesktop, { size: 14 });
20
- }
21
- };
22
- const isExpired = (expiresAt) => {
23
- return new Date(expiresAt) < /* @__PURE__ */ new Date();
24
- };
25
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Flex, {
26
- flex: 1,
27
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_core.DataTable_default, {
28
- submitOnInit: true,
29
- defaultSize: 10,
30
- typeFormProps: {
31
- skipSubmitButton: true,
32
- columns: 3
33
- },
34
- tableProps: {
35
- horizontalSpacing: "xs",
36
- verticalSpacing: "xs"
37
- },
38
- onFilterChange: (key, _value, form) => {
39
- if (key === "userId") return form.submit();
40
- },
41
- filters,
42
- tableTrProps: (item) => {
43
- if (isExpired(item.expiresAt)) return { opacity: .5 };
44
- return {};
45
- },
46
- items: async (filters$1) => {
47
- return await client.findSessions({ query: {
48
- ...filters$1,
49
- userRealmName: props.userRealmName
50
- } });
51
- },
52
- columns: {
53
- userId: {
54
- label: "User ID",
55
- value: (item) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__mantine_core.Text, {
56
- size: "xs",
57
- ff: "monospace",
58
- children: [item.userId.slice(0, 8), "..."]
59
- })
60
- },
61
- userAgent: {
62
- label: "Device",
63
- fit: true,
64
- value: (item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Group, {
65
- gap: 4,
66
- children: item.userAgent ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Badge, {
67
- size: "xs",
68
- variant: "light",
69
- leftSection: getDeviceIcon(item.userAgent.device),
70
- children: item.userAgent.device
71
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__mantine_core.Text, {
72
- size: "xs",
73
- c: "dimmed",
74
- children: [
75
- item.userAgent.browser,
76
- " / ",
77
- item.userAgent.os
78
- ]
79
- })] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Text, {
80
- size: "xs",
81
- c: "dimmed",
82
- children: "-"
83
- })
84
- })
85
- },
86
- ip: {
87
- label: "IP",
88
- fit: true,
89
- value: (item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Text, {
90
- size: "xs",
91
- ff: "monospace",
92
- c: "dimmed",
93
- children: item.ip || "-"
94
- })
95
- },
96
- expiresAt: {
97
- label: "Status",
98
- fit: true,
99
- value: (item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Badge, {
100
- size: "sm",
101
- variant: "light",
102
- color: isExpired(item.expiresAt) ? "red" : "green",
103
- children: isExpired(item.expiresAt) ? "Expired" : "Active"
104
- })
105
- },
106
- createdAt: {
107
- label: "Created",
108
- fit: true,
109
- value: (item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__mantine_core.Text, {
110
- size: "xs",
111
- c: "dimmed",
112
- children: l(item.createdAt, { date: "fromNow" })
113
- })
114
- }
115
- }
116
- })
117
- });
118
- };
119
- var AdminSessions_default = AdminSessions;
120
-
121
- //#endregion
122
- Object.defineProperty(exports, 'AdminSessions_default', {
123
- enumerable: true,
124
- get: function () {
125
- return AdminSessions_default;
126
- }
127
- });
128
- //# sourceMappingURL=AdminSessions-BF_P4lHs.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AdminSessions-BF_P4lHs.cjs","names":["t","sessions","IconDeviceMobile","IconDeviceTablet","IconDeviceDesktop","Flex","DataTable","filters","Text","Group","Badge"],"sources":["../../src/admin/components/AdminSessions.tsx"],"sourcesContent":["import { useClient } from \"@alepha/react\";\nimport { useI18n } from \"@alepha/react/i18n\";\nimport { DataTable, Flex, Text } from \"@alepha/ui\";\nimport { Badge, Group } from \"@mantine/core\";\nimport {\n IconDeviceDesktop,\n IconDeviceMobile,\n IconDeviceTablet,\n} from \"@tabler/icons-react\";\nimport { type Page, t } from \"alepha\";\nimport {\n type SessionController,\n type SessionEntity,\n sessions,\n} from \"alepha/api/users\";\n\nexport interface AdminSessionsProps {\n userRealmName?: string;\n}\n\nconst AdminSessions = (props: AdminSessionsProps) => {\n const client = useClient<SessionController>();\n const { l } = useI18n();\n\n const filters = t.object({\n userId: t.optional(\n t.uuid({\n $control: {\n query: t.pick(sessions.schema, [\"userId\"]),\n },\n }),\n ),\n });\n\n const getDeviceIcon = (device?: string) => {\n switch (device) {\n case \"MOBILE\":\n return <IconDeviceMobile size={14} />;\n case \"TABLET\":\n return <IconDeviceTablet size={14} />;\n default:\n return <IconDeviceDesktop size={14} />;\n }\n };\n\n const isExpired = (expiresAt: Date | string) => {\n return new Date(expiresAt) < new Date();\n };\n\n return (\n <Flex flex={1}>\n <DataTable<SessionEntity, typeof filters>\n submitOnInit\n defaultSize={10}\n typeFormProps={{\n skipSubmitButton: true,\n columns: 3,\n }}\n tableProps={{\n horizontalSpacing: \"xs\",\n verticalSpacing: \"xs\",\n }}\n onFilterChange={(key, _value, form) => {\n if (key === \"userId\") {\n return form.submit();\n }\n }}\n filters={filters}\n tableTrProps={(item) => {\n if (isExpired(item.expiresAt)) {\n return {\n opacity: 0.5,\n };\n }\n return {};\n }}\n items={async (filters) => {\n const response = await client.findSessions({\n query: {\n ...filters,\n userRealmName: props.userRealmName,\n },\n });\n\n return response as Page<SessionEntity>;\n }}\n columns={{\n userId: {\n label: \"User ID\",\n value: (item) => (\n <Text size=\"xs\" ff=\"monospace\">\n {item.userId.slice(0, 8)}...\n </Text>\n ),\n },\n userAgent: {\n label: \"Device\",\n fit: true,\n value: (item) => (\n <Group gap={4}>\n {item.userAgent ? (\n <>\n <Badge\n size=\"xs\"\n variant=\"light\"\n leftSection={getDeviceIcon(item.userAgent.device)}\n >\n {item.userAgent.device}\n </Badge>\n <Text size=\"xs\" c=\"dimmed\">\n {item.userAgent.browser} / {item.userAgent.os}\n </Text>\n </>\n ) : (\n <Text size=\"xs\" c=\"dimmed\">\n -\n </Text>\n )}\n </Group>\n ),\n },\n ip: {\n label: \"IP\",\n fit: true,\n value: (item) => (\n <Text size=\"xs\" ff=\"monospace\" c=\"dimmed\">\n {item.ip || \"-\"}\n </Text>\n ),\n },\n expiresAt: {\n label: \"Status\",\n fit: true,\n value: (item) => (\n <Badge\n size=\"sm\"\n variant=\"light\"\n color={isExpired(item.expiresAt) ? \"red\" : \"green\"}\n >\n {isExpired(item.expiresAt) ? \"Expired\" : \"Active\"}\n </Badge>\n ),\n },\n createdAt: {\n label: \"Created\",\n fit: true,\n value: (item) => (\n <Text size=\"xs\" c=\"dimmed\">\n {l(item.createdAt, { date: \"fromNow\" })}\n </Text>\n ),\n },\n }}\n />\n </Flex>\n );\n};\n\nexport default AdminSessions;\n"],"mappings":";;;;;;;;;;AAoBA,MAAM,iBAAiB,UAA8B;CACnD,MAAM,wCAAuC;CAC7C,MAAM,EAAE,wCAAe;CAEvB,MAAM,UAAUA,SAAE,OAAO,EACvB,QAAQA,SAAE,SACRA,SAAE,KAAK,EACL,UAAU,EACR,OAAOA,SAAE,KAAKC,0BAAS,QAAQ,CAAC,SAAS,CAAC,EAC3C,EACF,CAAC,CACH,EACF,CAAC;CAEF,MAAM,iBAAiB,WAAoB;AACzC,UAAQ,QAAR;GACE,KAAK,SACH,QAAO,2CAACC,yCAAiB,MAAM,KAAM;GACvC,KAAK,SACH,QAAO,2CAACC,yCAAiB,MAAM,KAAM;GACvC,QACE,QAAO,2CAACC,0CAAkB,MAAM,KAAM;;;CAI5C,MAAM,aAAa,cAA6B;AAC9C,SAAO,IAAI,KAAK,UAAU,mBAAG,IAAI,MAAM;;AAGzC,QACE,2CAACC;EAAK,MAAM;YACV,2CAACC;GACC;GACA,aAAa;GACb,eAAe;IACb,kBAAkB;IAClB,SAAS;IACV;GACD,YAAY;IACV,mBAAmB;IACnB,iBAAiB;IAClB;GACD,iBAAiB,KAAK,QAAQ,SAAS;AACrC,QAAI,QAAQ,SACV,QAAO,KAAK,QAAQ;;GAGf;GACT,eAAe,SAAS;AACtB,QAAI,UAAU,KAAK,UAAU,CAC3B,QAAO,EACL,SAAS,IACV;AAEH,WAAO,EAAE;;GAEX,OAAO,OAAO,cAAY;AAQxB,WAPiB,MAAM,OAAO,aAAa,EACzC,OAAO;KACL,GAAGC;KACH,eAAe,MAAM;KACtB,EACF,CAAC;;GAIJ,SAAS;IACP,QAAQ;KACN,OAAO;KACP,QAAQ,SACN,4CAACC;MAAK,MAAK;MAAK,IAAG;iBAChB,KAAK,OAAO,MAAM,GAAG,EAAE,EAAC;OACpB;KAEV;IACD,WAAW;KACT,OAAO;KACP,KAAK;KACL,QAAQ,SACN,2CAACC;MAAM,KAAK;gBACT,KAAK,YACJ,qFACE,2CAACC;OACC,MAAK;OACL,SAAQ;OACR,aAAa,cAAc,KAAK,UAAU,OAAO;iBAEhD,KAAK,UAAU;QACV,EACR,4CAACF;OAAK,MAAK;OAAK,GAAE;;QACf,KAAK,UAAU;QAAQ;QAAI,KAAK,UAAU;;QACtC,IACN,GAEH,2CAACA;OAAK,MAAK;OAAK,GAAE;iBAAS;QAEpB;OAEH;KAEX;IACD,IAAI;KACF,OAAO;KACP,KAAK;KACL,QAAQ,SACN,2CAACA;MAAK,MAAK;MAAK,IAAG;MAAY,GAAE;gBAC9B,KAAK,MAAM;OACP;KAEV;IACD,WAAW;KACT,OAAO;KACP,KAAK;KACL,QAAQ,SACN,2CAACE;MACC,MAAK;MACL,SAAQ;MACR,OAAO,UAAU,KAAK,UAAU,GAAG,QAAQ;gBAE1C,UAAU,KAAK,UAAU,GAAG,YAAY;OACnC;KAEX;IACD,WAAW;KACT,OAAO;KACP,KAAK;KACL,QAAQ,SACN,2CAACF;MAAK,MAAK;MAAK,GAAE;gBACf,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;OAClC;KAEV;IACF;IACD;GACG;;AAIX,4BAAe"}
@@ -1,4 +0,0 @@
1
- require('./core-aFtK4l9I.cjs');
2
- const require_AdminSessions = require('./AdminSessions-BF_P4lHs.cjs');
3
-
4
- exports.default = require_AdminSessions.AdminSessions_default;
@@ -1,4 +0,0 @@
1
- import "./core-CzO6aavT.js";
2
- import { t as AdminSessions_default } from "./AdminSessions-Pjdz-iZx.js";
3
-
4
- export { AdminSessions_default as default };
@@ -1 +0,0 @@
1
- {"version":3,"file":"AdminSessions-Pjdz-iZx.js","names":["Flex","DataTable","filters","Text"],"sources":["../../src/admin/components/AdminSessions.tsx"],"sourcesContent":["import { useClient } from \"@alepha/react\";\nimport { useI18n } from \"@alepha/react/i18n\";\nimport { DataTable, Flex, Text } from \"@alepha/ui\";\nimport { Badge, Group } from \"@mantine/core\";\nimport {\n IconDeviceDesktop,\n IconDeviceMobile,\n IconDeviceTablet,\n} from \"@tabler/icons-react\";\nimport { type Page, t } from \"alepha\";\nimport {\n type SessionController,\n type SessionEntity,\n sessions,\n} from \"alepha/api/users\";\n\nexport interface AdminSessionsProps {\n userRealmName?: string;\n}\n\nconst AdminSessions = (props: AdminSessionsProps) => {\n const client = useClient<SessionController>();\n const { l } = useI18n();\n\n const filters = t.object({\n userId: t.optional(\n t.uuid({\n $control: {\n query: t.pick(sessions.schema, [\"userId\"]),\n },\n }),\n ),\n });\n\n const getDeviceIcon = (device?: string) => {\n switch (device) {\n case \"MOBILE\":\n return <IconDeviceMobile size={14} />;\n case \"TABLET\":\n return <IconDeviceTablet size={14} />;\n default:\n return <IconDeviceDesktop size={14} />;\n }\n };\n\n const isExpired = (expiresAt: Date | string) => {\n return new Date(expiresAt) < new Date();\n };\n\n return (\n <Flex flex={1}>\n <DataTable<SessionEntity, typeof filters>\n submitOnInit\n defaultSize={10}\n typeFormProps={{\n skipSubmitButton: true,\n columns: 3,\n }}\n tableProps={{\n horizontalSpacing: \"xs\",\n verticalSpacing: \"xs\",\n }}\n onFilterChange={(key, _value, form) => {\n if (key === \"userId\") {\n return form.submit();\n }\n }}\n filters={filters}\n tableTrProps={(item) => {\n if (isExpired(item.expiresAt)) {\n return {\n opacity: 0.5,\n };\n }\n return {};\n }}\n items={async (filters) => {\n const response = await client.findSessions({\n query: {\n ...filters,\n userRealmName: props.userRealmName,\n },\n });\n\n return response as Page<SessionEntity>;\n }}\n columns={{\n userId: {\n label: \"User ID\",\n value: (item) => (\n <Text size=\"xs\" ff=\"monospace\">\n {item.userId.slice(0, 8)}...\n </Text>\n ),\n },\n userAgent: {\n label: \"Device\",\n fit: true,\n value: (item) => (\n <Group gap={4}>\n {item.userAgent ? (\n <>\n <Badge\n size=\"xs\"\n variant=\"light\"\n leftSection={getDeviceIcon(item.userAgent.device)}\n >\n {item.userAgent.device}\n </Badge>\n <Text size=\"xs\" c=\"dimmed\">\n {item.userAgent.browser} / {item.userAgent.os}\n </Text>\n </>\n ) : (\n <Text size=\"xs\" c=\"dimmed\">\n -\n </Text>\n )}\n </Group>\n ),\n },\n ip: {\n label: \"IP\",\n fit: true,\n value: (item) => (\n <Text size=\"xs\" ff=\"monospace\" c=\"dimmed\">\n {item.ip || \"-\"}\n </Text>\n ),\n },\n expiresAt: {\n label: \"Status\",\n fit: true,\n value: (item) => (\n <Badge\n size=\"sm\"\n variant=\"light\"\n color={isExpired(item.expiresAt) ? \"red\" : \"green\"}\n >\n {isExpired(item.expiresAt) ? \"Expired\" : \"Active\"}\n </Badge>\n ),\n },\n createdAt: {\n label: \"Created\",\n fit: true,\n value: (item) => (\n <Text size=\"xs\" c=\"dimmed\">\n {l(item.createdAt, { date: \"fromNow\" })}\n </Text>\n ),\n },\n }}\n />\n </Flex>\n );\n};\n\nexport default AdminSessions;\n"],"mappings":";;;;;;;;;;AAoBA,MAAM,iBAAiB,UAA8B;CACnD,MAAM,SAAS,WAA8B;CAC7C,MAAM,EAAE,MAAM,SAAS;CAEvB,MAAM,UAAU,EAAE,OAAO,EACvB,QAAQ,EAAE,SACR,EAAE,KAAK,EACL,UAAU,EACR,OAAO,EAAE,KAAK,SAAS,QAAQ,CAAC,SAAS,CAAC,EAC3C,EACF,CAAC,CACH,EACF,CAAC;CAEF,MAAM,iBAAiB,WAAoB;AACzC,UAAQ,QAAR;GACE,KAAK,SACH,QAAO,oBAAC,oBAAiB,MAAM,KAAM;GACvC,KAAK,SACH,QAAO,oBAAC,oBAAiB,MAAM,KAAM;GACvC,QACE,QAAO,oBAAC,qBAAkB,MAAM,KAAM;;;CAI5C,MAAM,aAAa,cAA6B;AAC9C,SAAO,IAAI,KAAK,UAAU,mBAAG,IAAI,MAAM;;AAGzC,QACE,oBAACA;EAAK,MAAM;YACV,oBAACC;GACC;GACA,aAAa;GACb,eAAe;IACb,kBAAkB;IAClB,SAAS;IACV;GACD,YAAY;IACV,mBAAmB;IACnB,iBAAiB;IAClB;GACD,iBAAiB,KAAK,QAAQ,SAAS;AACrC,QAAI,QAAQ,SACV,QAAO,KAAK,QAAQ;;GAGf;GACT,eAAe,SAAS;AACtB,QAAI,UAAU,KAAK,UAAU,CAC3B,QAAO,EACL,SAAS,IACV;AAEH,WAAO,EAAE;;GAEX,OAAO,OAAO,cAAY;AAQxB,WAPiB,MAAM,OAAO,aAAa,EACzC,OAAO;KACL,GAAGC;KACH,eAAe,MAAM;KACtB,EACF,CAAC;;GAIJ,SAAS;IACP,QAAQ;KACN,OAAO;KACP,QAAQ,SACN,qBAACC;MAAK,MAAK;MAAK,IAAG;iBAChB,KAAK,OAAO,MAAM,GAAG,EAAE,EAAC;OACpB;KAEV;IACD,WAAW;KACT,OAAO;KACP,KAAK;KACL,QAAQ,SACN,oBAAC;MAAM,KAAK;gBACT,KAAK,YACJ,4CACE,oBAAC;OACC,MAAK;OACL,SAAQ;OACR,aAAa,cAAc,KAAK,UAAU,OAAO;iBAEhD,KAAK,UAAU;QACV,EACR,qBAACA;OAAK,MAAK;OAAK,GAAE;;QACf,KAAK,UAAU;QAAQ;QAAI,KAAK,UAAU;;QACtC,IACN,GAEH,oBAACA;OAAK,MAAK;OAAK,GAAE;iBAAS;QAEpB;OAEH;KAEX;IACD,IAAI;KACF,OAAO;KACP,KAAK;KACL,QAAQ,SACN,oBAACA;MAAK,MAAK;MAAK,IAAG;MAAY,GAAE;gBAC9B,KAAK,MAAM;OACP;KAEV;IACD,WAAW;KACT,OAAO;KACP,KAAK;KACL,QAAQ,SACN,oBAAC;MACC,MAAK;MACL,SAAQ;MACR,OAAO,UAAU,KAAK,UAAU,GAAG,QAAQ;gBAE1C,UAAU,KAAK,UAAU,GAAG,YAAY;OACnC;KAEX;IACD,WAAW;KACT,OAAO;KACP,KAAK;KACL,QAAQ,SACN,oBAACA;MAAK,MAAK;MAAK,GAAE;gBACf,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;OAClC;KAEV;IACF;IACD;GACG;;AAIX,4BAAe"}
@@ -1,4 +0,0 @@
1
- import "./core-CzO6aavT.js";
2
- import { t as AdminUsers_default } from "./AdminUsers-C1HsrRxn.js";
3
-
4
- export { AdminUsers_default as default };
@@ -1 +0,0 @@
1
- {"version":3,"file":"AdminUsers-C1HsrRxn.js","names":["Flex","DataTable","Text"],"sources":["../../src/admin/components/AdminUsers.tsx"],"sourcesContent":["import { useClient } from \"@alepha/react\";\nimport { useI18n } from \"@alepha/react/i18n\";\nimport { DataTable, Flex, Text } from \"@alepha/ui\";\nimport { Badge, Group } from \"@mantine/core\";\nimport { IconCheck, IconX } from \"@tabler/icons-react\";\nimport { type Page, t } from \"alepha\";\nimport { type UserController, type UserEntity, users } from \"alepha/api/users\";\n\nexport interface AdminUsersProps {\n userRealmName?: string;\n}\n\nconst AdminUsers = (props: AdminUsersProps) => {\n const client = useClient<UserController>();\n const { l } = useI18n();\n\n const filters = t.object({\n query: t.optional(\n t.string({\n $control: {\n query: t.omit(users.schema, [\"id\", \"version\"]),\n },\n }),\n ),\n });\n\n return (\n <Flex flex={1}>\n <DataTable<UserEntity, typeof filters>\n submitOnInit\n defaultSize={10}\n typeFormProps={{\n skipSubmitButton: true,\n columns: 3,\n }}\n tableProps={{\n horizontalSpacing: \"xs\",\n verticalSpacing: \"xs\",\n }}\n onFilterChange={(key, value, form) => {\n if (key === \"query\") {\n return form.submit();\n }\n }}\n filters={filters}\n tableTrProps={(item) => {\n if (!item.enabled) {\n return {\n opacity: 0.5,\n };\n }\n return {};\n }}\n items={async (filters) => {\n const response = await client.findUsers({\n query: {\n ...filters,\n userRealmName: props.userRealmName,\n },\n });\n\n return response as Page<UserEntity>;\n }}\n columns={{\n username: {\n label: \"Username\",\n value: (item) => (\n <Text size=\"sm\" fw={500}>\n {item.username || \"-\"}\n </Text>\n ),\n },\n email: {\n label: \"Email\",\n value: (item) => (\n <Group gap=\"xs\">\n <Text size=\"sm\">{item.email || \"-\"}</Text>\n {item.email && (\n <Badge\n size=\"xs\"\n variant=\"light\"\n color={item.emailVerified ? \"green\" : \"gray\"}\n leftSection={\n item.emailVerified ? (\n <IconCheck size={10} />\n ) : (\n <IconX size={10} />\n )\n }\n >\n {item.emailVerified ? \"Verified\" : \"Unverified\"}\n </Badge>\n )}\n </Group>\n ),\n },\n roles: {\n label: \"Roles\",\n value: (item) => (\n <Group gap={4}>\n {item.roles.map((role: string) => (\n <Badge key={role} size=\"xs\" variant=\"outline\">\n {role}\n </Badge>\n ))}\n </Group>\n ),\n },\n enabled: {\n label: \"Status\",\n fit: true,\n value: (item) => (\n <Badge\n size=\"sm\"\n variant=\"light\"\n color={item.enabled ? \"green\" : \"red\"}\n >\n {item.enabled ? \"Active\" : \"Disabled\"}\n </Badge>\n ),\n },\n createdAt: {\n label: \"Created\",\n fit: true,\n value: (item) => (\n <Text size=\"xs\" c=\"dimmed\">\n {l(item.createdAt, { date: \"fromNow\" })}\n </Text>\n ),\n },\n }}\n />\n </Flex>\n );\n};\n\nexport default AdminUsers;\n"],"mappings":";;;;;;;;;;AAYA,MAAM,cAAc,UAA2B;CAC7C,MAAM,SAAS,WAA2B;CAC1C,MAAM,EAAE,MAAM,SAAS;AAYvB,QACE,oBAACA;EAAK,MAAM;YACV,oBAACC;GACC;GACA,aAAa;GACb,eAAe;IACb,kBAAkB;IAClB,SAAS;IACV;GACD,YAAY;IACV,mBAAmB;IACnB,iBAAiB;IAClB;GACD,iBAAiB,KAAK,OAAO,SAAS;AACpC,QAAI,QAAQ,QACV,QAAO,KAAK,QAAQ;;GAGxB,SA5BU,EAAE,OAAO,EACvB,OAAO,EAAE,SACP,EAAE,OAAO,EACP,UAAU,EACR,OAAO,EAAE,KAAK,MAAM,QAAQ,CAAC,MAAM,UAAU,CAAC,EAC/C,EACF,CAAC,CACH,EACF,CAAC;GAqBI,eAAe,SAAS;AACtB,QAAI,CAAC,KAAK,QACR,QAAO,EACL,SAAS,IACV;AAEH,WAAO,EAAE;;GAEX,OAAO,OAAO,YAAY;AAQxB,WAPiB,MAAM,OAAO,UAAU,EACtC,OAAO;KACL,GAAG;KACH,eAAe,MAAM;KACtB,EACF,CAAC;;GAIJ,SAAS;IACP,UAAU;KACR,OAAO;KACP,QAAQ,SACN,oBAACC;MAAK,MAAK;MAAK,IAAI;gBACjB,KAAK,YAAY;OACb;KAEV;IACD,OAAO;KACL,OAAO;KACP,QAAQ,SACN,qBAAC;MAAM,KAAI;iBACT,oBAACA;OAAK,MAAK;iBAAM,KAAK,SAAS;QAAW,EACzC,KAAK,SACJ,oBAAC;OACC,MAAK;OACL,SAAQ;OACR,OAAO,KAAK,gBAAgB,UAAU;OACtC,aACE,KAAK,gBACH,oBAAC,aAAU,MAAM,KAAM,GAEvB,oBAAC,SAAM,MAAM,KAAM;iBAItB,KAAK,gBAAgB,aAAa;QAC7B;OAEJ;KAEX;IACD,OAAO;KACL,OAAO;KACP,QAAQ,SACN,oBAAC;MAAM,KAAK;gBACT,KAAK,MAAM,KAAK,SACf,oBAAC;OAAiB,MAAK;OAAK,SAAQ;iBACjC;SADS,KAEJ,CACR;OACI;KAEX;IACD,SAAS;KACP,OAAO;KACP,KAAK;KACL,QAAQ,SACN,oBAAC;MACC,MAAK;MACL,SAAQ;MACR,OAAO,KAAK,UAAU,UAAU;gBAE/B,KAAK,UAAU,WAAW;OACrB;KAEX;IACD,WAAW;KACT,OAAO;KACP,KAAK;KACL,QAAQ,SACN,oBAACA;MAAK,MAAK;MAAK,GAAE;gBACf,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;OAClC;KAEV;IACF;IACD;GACG;;AAIX,yBAAe"}
@@ -1,4 +0,0 @@
1
- require('./core-aFtK4l9I.cjs');
2
- const require_AdminUsers = require('./AdminUsers-M2uEQbp5.cjs');
3
-
4
- exports.default = require_AdminUsers.AdminUsers_default;