aa-geuthur-react 1.4.0 → 1.6.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.
Files changed (43) hide show
  1. package/README.md +30 -13
  2. package/dist/Api/basePaths.d.ts +28 -2
  3. package/dist/Api/calls.d.ts +22 -4
  4. package/dist/Api/errors.d.ts +14 -0
  5. package/dist/Api/index.d.ts +1 -0
  6. package/dist/Api/types.d.ts +13 -2
  7. package/dist/Components/Base/Badges/LiveStatusIndicator.d.ts +35 -0
  8. package/dist/Components/Base/Badges/SecurityBadge.d.ts +10 -0
  9. package/dist/Components/Base/Badges/index.d.ts +3 -0
  10. package/dist/Components/Base/Badges/liveStatusHelper.d.ts +12 -0
  11. package/dist/Components/Base/OwnerPortrait/OwnerPortrait.d.ts +21 -0
  12. package/dist/Components/Base/OwnerPortrait/index.d.ts +1 -0
  13. package/dist/Components/Base/OwnerSettings/BaseOwnerCard.d.ts +6 -0
  14. package/dist/Components/Base/OwnerSettings/BaseOwnerSettingsSection.d.ts +7 -0
  15. package/dist/Components/Base/OwnerSettings/MissingOwnerCard.d.ts +3 -0
  16. package/dist/Components/Base/OwnerSettings/OwnerFilterBar.d.ts +14 -0
  17. package/dist/Components/Base/OwnerSettings/UnregisteredModal.d.ts +21 -0
  18. package/dist/Components/Base/OwnerSettings/index.d.ts +6 -0
  19. package/dist/Components/Base/OwnerSettings/types.d.ts +100 -0
  20. package/dist/Components/Base/index.d.ts +3 -0
  21. package/dist/Hooks/index.d.ts +1 -0
  22. package/dist/Hooks/useUserSettings.d.ts +185 -0
  23. package/dist/Menu/Hooks/useMenu.d.ts +8 -2
  24. package/dist/aa-geuthur-react.css +1 -1
  25. package/dist/i18nInit.d.ts +15 -0
  26. package/dist/index.d.ts +1 -0
  27. package/dist/index.js +1503 -413
  28. package/dist/index.js.map +1 -1
  29. package/i18n/cs/aa-geuthur-react.json +31 -1
  30. package/i18n/de/aa-geuthur-react.json +76 -32
  31. package/i18n/en/aa-geuthur-react.json +48 -1
  32. package/i18n/es/aa-geuthur-react.json +33 -1
  33. package/i18n/fr-FR/aa-geuthur-react.json +29 -1
  34. package/i18n/it-IT/aa-geuthur-react.json +30 -1
  35. package/i18n/ja/aa-geuthur-react.json +31 -1
  36. package/i18n/ko-KR/aa-geuthur-react.json +31 -1
  37. package/i18n/nl-NL/aa-geuthur-react.json +29 -1
  38. package/i18n/pl-PL/aa-geuthur-react.json +32 -1
  39. package/i18n/ru/aa-geuthur-react.json +33 -1
  40. package/i18n/sk/aa-geuthur-react.json +31 -1
  41. package/i18n/uk/aa-geuthur-react.json +33 -1
  42. package/i18n/zh-Hans/aa-geuthur-react.json +31 -1
  43. package/package.json +8 -1
package/dist/index.js CHANGED
@@ -1,18 +1,19 @@
1
1
  import e from "js-cookie";
2
2
  import t from "openapi-fetch";
3
3
  import { Link as n, Outlet as r, useLocation as i } from "react-router-dom";
4
- import { columnFacetingFeature as a, columnFilteringFeature as o, columnSizingFeature as s, columnVisibilityFeature as c, createColumnHelper as l, createFacetedMinMaxValues as u, createFacetedRowModel as d, createFacetedUniqueValues as f, createFilteredRowModel as p, createPaginatedRowModel as m, createSortedRowModel as h, filterFns as g, flexRender as _, functionalUpdate as v, rowPaginationFeature as y, rowSelectionFeature as b, rowSortingFeature as x, sortFns as S, tableFeatures as C, useTable as ee } from "@tanstack/react-table";
5
- import { ArrowUpDown as w, ChevronDown as T, ChevronFirst as te, ChevronLast as ne, ChevronLeft as re, ChevronRight as ie, ChevronUp as ae, ExternalLink as E, Search as oe, ShieldAlert as se, SlidersHorizontal as ce, X as le } from "lucide-react";
6
- import { Alert as ue, Badge as de, Button as D, ButtonGroup as O, ButtonToolbar as k, Card as A, Col as j, Dropdown as M, Form as N, Modal as P, Nav as F, OverlayTrigger as I, Popover as fe, Tooltip as L } from "react-bootstrap";
7
- import { I18nContext as R, getI18n as pe, useTranslation as z, withTranslation as me } from "react-i18next";
8
- import { Fragment as B, jsx as V, jsxs as H } from "react/jsx-runtime";
9
- import { Component as he, createContext as ge, useCallback as U, useContext as _e, useEffect as ve, useMemo as ye, useRef as be, useState as W } from "react";
10
- import xe from "i18next";
11
- import { useMutation as Se, useQuery as Ce, useQueryClient as we } from "@tanstack/react-query";
12
- import { useQueryState as Te } from "nuqs";
13
- import Ee from "react-dom";
4
+ import { columnFacetingFeature as a, columnFilteringFeature as o, columnSizingFeature as s, columnVisibilityFeature as c, createColumnHelper as l, createFacetedMinMaxValues as u, createFacetedRowModel as d, createFacetedUniqueValues as f, createFilteredRowModel as p, createPaginatedRowModel as m, createSortedRowModel as h, filterFns as g, flexRender as _, functionalUpdate as v, rowPaginationFeature as y, rowSelectionFeature as b, rowSortingFeature as x, sortFns as ee, tableFeatures as te, useTable as S } from "@tanstack/react-table";
5
+ import { AlertCircle as C, AlertTriangle as w, ArrowUpDown as ne, Building2 as T, CheckCircle2 as re, ChevronDown as E, ChevronFirst as ie, ChevronLast as ae, ChevronLeft as oe, ChevronRight as se, ChevronUp as ce, Clock as le, ExternalLink as D, Plus as O, RotateCw as ue, Search as k, Shield as A, ShieldAlert as j, SlidersHorizontal as M, Trash2 as de, User as N, UserRoundX as fe, Users as pe, X as P } from "lucide-react";
6
+ import { Alert as me, Badge as he, Button as F, ButtonGroup as I, ButtonToolbar as L, Card as R, Col as ge, Dropdown as z, Form as B, InputGroup as V, Modal as H, Nav as U, OverlayTrigger as _e, Popover as ve, Tooltip as ye } from "react-bootstrap";
7
+ import { I18nContext as be, getI18n as xe, initReactI18next as Se, useTranslation as W, withTranslation as Ce } from "react-i18next";
8
+ import { Fragment as G, jsx as K, jsxs as q } from "react/jsx-runtime";
9
+ import { Component as we, createContext as Te, useCallback as J, useContext as Ee, useEffect as De, useMemo as Oe, useRef as ke, useState as Y } from "react";
10
+ import Ae from "i18next";
11
+ import { useMutation as je, useQuery as Me, useQueryClient as Ne } from "@tanstack/react-query";
12
+ import { useQueryState as Pe } from "nuqs";
13
+ import Fe from "i18next-http-backend";
14
+ import Ie from "react-dom";
14
15
  // src/Api/Api.ts
15
- function De(n) {
16
+ function Le(n) {
16
17
  let r = t({
17
18
  baseUrl: "/",
18
19
  credentials: "same-origin",
@@ -23,25 +24,75 @@ function De(n) {
23
24
  return n && t.headers.set("X-CSRFToken", n), t;
24
25
  } }), r;
25
26
  }
27
+ // src/Api/errors.ts
28
+ function X(e, t) {
29
+ if (typeof e != "object" || !e) return t;
30
+ let n = e;
31
+ for (let e of [n.error, n.detail]) if (typeof e == "string" && e.trim() !== "") return e;
32
+ return t;
33
+ }
26
34
  // src/Api/calls.ts
27
- var Oe = De();
28
- async function ke(e) {
29
- let { data: t, error: n } = await Oe.GET("/{project}/api/menu/", { params: { path: { project: e } } });
30
- if (n || !t) throw Error("Failed to load menu");
35
+ var Re = Le();
36
+ async function ze(e) {
37
+ let { data: t, error: n } = await Re.GET("/{project}/api/menu/", { params: { path: { project: e } } });
38
+ if (n || !t) throw Error(X(n, "Failed to load menu"));
31
39
  return t;
32
40
  }
33
- async function Ae(e) {
34
- let { data: t, error: n } = await Oe.GET("/{project}/api/user/", { params: { path: { project: e } } });
35
- if (n || !t) throw Error("Failed to load user data");
41
+ async function Be(e) {
42
+ let { data: t, error: n } = await Re.GET("/{project}/api/user/", { params: { path: { project: e } } });
43
+ if (n || !t) throw Error(X(n, "Failed to load user data"));
36
44
  return { user: t };
37
45
  }
46
+ async function Ve(e) {
47
+ let { data: t, error: n } = await Re.GET("/{project}/api/settings/", { params: { path: { project: e } } });
48
+ if (n || !t) throw Error(X(n, "Failed to load user settings"));
49
+ return t;
50
+ }
51
+ async function He(e, t) {
52
+ let { data: n, error: r } = await Re.PUT("/{project}/api/settings/", {
53
+ params: { path: { project: e } },
54
+ body: t
55
+ });
56
+ if (r || !n) throw Error(X(r, "Failed to update user settings"));
57
+ return n;
58
+ }
38
59
  // src/Api/query.ts
39
- var G = {
60
+ var Z = {
40
61
  Menu: ["Menu"],
41
62
  User: ["User"],
42
63
  UserSettings: ["UserSettings"]
43
- }, je = /* #__PURE__ */ Object.assign({
44
- "../i18n/cs/aa-geuthur-react.json": {},
64
+ }, Ue = /* #__PURE__ */ Object.assign({
65
+ "../i18n/cs/aa-geuthur-react.json": {
66
+ Close: "Zavřít",
67
+ Confirm: "Potvrdit",
68
+ "Something went wrong.": "Něco se pokazilo.",
69
+ "No Data Available": "Žádná data nejsou k dispozici",
70
+ "Page Size:": "Velikost stránky:",
71
+ "Show All": "Zobrazit vše",
72
+ "First Page": "První stránka",
73
+ "Previous Page": "Předchozí stránka",
74
+ "Page {{page}} of {{total}}": "Stránka {{page}} z {{total}}",
75
+ "Next Page": "Další stránka",
76
+ "Last Page": "Poslední stránka",
77
+ "{{count}} Rows_one": "{{count}} řádek",
78
+ "{{count}} Rows_few": "",
79
+ "{{count}} Rows_other": "{{count}} řádků",
80
+ Clear: "Vymazat",
81
+ Reset: "Obnovit",
82
+ Done: "Hotovo",
83
+ "Range…": "Rozsah…",
84
+ True: "Ano",
85
+ False: "Ne",
86
+ All: "Vše",
87
+ "Filter…": "Filtrovat…",
88
+ "No matching options": "Žádné odpovídající možnosti",
89
+ "Show {{pageSize}}": "Zobrazit {{pageSize}}",
90
+ "Refreshing Data": "Aktualizace dat",
91
+ "Data Loaded: {{date}}": "Data načtena: {{date}}",
92
+ "Export Table to CSV": "Exportovat tabulku do CSV",
93
+ Corporation: "Korporace",
94
+ Alliance: "Aliance"
95
+ },
45
96
  "../i18n/de/aa-geuthur-react.json": {
46
97
  Close: "Schließen",
47
98
  "Loading…": "Lädt…",
@@ -74,7 +125,51 @@ var G = {
74
125
  "Data Loaded: {{date}}": "Daten geladen: {{date}}",
75
126
  "Export Table to CSV": "Tabelle als CSV exportieren",
76
127
  "Error 404": "Fehler 404",
77
- "The page you are looking for does not exist.": "Die gesuchte Seite existiert nicht."
128
+ "The page you are looking for does not exist.": "Die gesuchte Seite existiert nicht.",
129
+ "Last Fetch": "Letzter Abruf",
130
+ Error: "Fehler",
131
+ Incomplete: "Unvollständig",
132
+ "Token Error": "Token-Fehler",
133
+ Disabled: "Deaktiviert",
134
+ Alliance: "Allianz",
135
+ Character: "Charakter",
136
+ Failed: "Fehlgeschlagen",
137
+ Pending: "Ausstehend",
138
+ "Last sync": "Letzte Synchronisierung",
139
+ Never: "Nie",
140
+ "Update Owner": "Eigentümer aktualisieren",
141
+ Update: "Aktualisieren",
142
+ "Delete Owner": "Eigentümer löschen",
143
+ Delete: "Löschen",
144
+ "Owner Status": "Eigentümerstatus",
145
+ "ESI synchronization status of your linked owners.": "ESI-Synchronisierungsstatus Ihrer verknüpften Eigentümer.",
146
+ "Update All ({{seconds}}s)": "Alle aktualisieren ({{seconds}}s)",
147
+ "Update All": "Alle aktualisieren",
148
+ "Loading update statuses…": "Update-Status wird geladen…",
149
+ "Failed to load update status.": "Update-Status konnte nicht geladen werden.",
150
+ "Nothing to show.": "Nichts anzuzeigen.",
151
+ "No matching owners found.": "Keine passenden Eigentümer gefunden.",
152
+ "Reset filters": "Filter zurücksetzen",
153
+ "Missing in {{app}}": "Fehlt in {{app}}",
154
+ "The following characters belong to you but are not registered.": "Die folgenden Charaktere gehören dir, sind aber nicht registriert.",
155
+ Cancel: "Abbrechen",
156
+ "Deleting…": "Wird gelöscht…",
157
+ "Confirm Delete": "Löschen bestätigen",
158
+ "Are you sure you want to delete owner '{{name}}'?": "Möchten Sie den Eigentümer '{{name}}' wirklich löschen?",
159
+ "This action cannot be undone.": "Diese Aktion kann nicht rückgängig gemacht werden.",
160
+ "Not Registered": "Nicht registriert",
161
+ "{{name}} is not registered in {{app}}.": "{{name}} ist nicht in {{app}} registriert.",
162
+ "Add to {{app}}": "Zu {{app}} hinzufügen",
163
+ Characters: "Charaktere",
164
+ Alliances: "Allianzen",
165
+ "Filter by owner type": "Nach Eigentümertyp filtern",
166
+ "Search owners…": "Owner suchen…",
167
+ "Search owners": "Owner suchen",
168
+ "Failed to load data.": "Daten konnten nicht geladen werden.",
169
+ "{{count}} unregistered_one": "{{count}} nicht registriert",
170
+ "{{count}} unregistered_other": "{{count}} nicht registriert",
171
+ "Failed to load": "Fehler beim Laden",
172
+ "No fetch yet": "Noch nicht geladen"
78
173
  },
79
174
  "../i18n/en/aa-geuthur-react.json": {
80
175
  Close: "Close",
@@ -108,55 +203,434 @@ var G = {
108
203
  "Data Loaded: {{date}}": "Data Loaded: {{date}}",
109
204
  "Export Table to CSV": "Export Table to CSV",
110
205
  "Error 404": "Error 404",
111
- "The page you are looking for does not exist.": "The page you are looking for does not exist."
206
+ "The page you are looking for does not exist.": "The page you are looking for does not exist.",
207
+ "Failed to load": "Failed to load",
208
+ "Last Fetch": "Last Fetch",
209
+ "No fetch yet": "No fetch yet",
210
+ Error: "Error",
211
+ Incomplete: "Incomplete",
212
+ OK: "OK",
213
+ "Token Error": "Token Error",
214
+ Disabled: "Disabled",
215
+ Corporation: "Corporation",
216
+ Alliance: "Alliance",
217
+ Character: "Character",
218
+ Failed: "Failed",
219
+ Pending: "Pending",
220
+ "Last sync": "Last sync",
221
+ Never: "Never",
222
+ "Update Owner": "Update Owner",
223
+ Update: "Update",
224
+ "Delete Owner": "Delete Owner",
225
+ Delete: "Delete",
226
+ "Owner Status": "Owner Status",
227
+ "ESI synchronization status of your linked owners.": "ESI synchronization status of your linked owners.",
228
+ "Update All ({{seconds}}s)": "Update All ({{seconds}}s)",
229
+ "Update All": "Update All",
230
+ "Loading update statuses…": "Loading update statuses…",
231
+ "Failed to load update status.": "Failed to load update status.",
232
+ "Nothing to show.": "Nothing to show.",
233
+ "No matching owners found.": "No matching owners found.",
234
+ "Reset filters": "Reset filters",
235
+ "Missing in {{app}}": "Missing in {{app}}",
236
+ "The following characters belong to you but are not registered.": "The following characters belong to you but are not registered.",
237
+ Cancel: "Cancel",
238
+ "Deleting…": "Deleting…",
239
+ "Confirm Delete": "Confirm Delete",
240
+ "Are you sure you want to delete owner '{{name}}'?": "Are you sure you want to delete owner '{{name}}'?",
241
+ "This action cannot be undone.": "This action cannot be undone.",
242
+ "Not Registered": "Not Registered",
243
+ "{{name}} is not registered in {{app}}.": "{{name}} is not registered in {{app}}.",
244
+ "Add to {{app}}": "Add to {{app}}",
245
+ Characters: "Characters",
246
+ Corporations: "Corporations",
247
+ Alliances: "Alliances",
248
+ "Filter by owner type": "Filter by owner type",
249
+ "Search owners…": "Search owners…",
250
+ "Search owners": "Search owners",
251
+ "Failed to load data.": "Failed to load data.",
252
+ "{{count}} unregistered_one": "{{count}} unregistered",
253
+ "{{count}} unregistered_other": "{{count}} unregistered"
254
+ },
255
+ "../i18n/es/aa-geuthur-react.json": {
256
+ Close: "Cerrar",
257
+ Confirm: "Confirmar",
258
+ "Something went wrong.": "Algo salió mal.",
259
+ "No Data Available": "No hay datos disponibles",
260
+ "Page Size:": "Tamaño de página:",
261
+ "Show All": "Mostrar todo",
262
+ "First Page": "Primera página",
263
+ "Previous Page": "Página anterior",
264
+ "Page {{page}} of {{total}}": "Página {{page}} de {{total}}",
265
+ "Next Page": "Página siguiente",
266
+ "Last Page": "Última página",
267
+ "{{count}} Rows_one": "{{count}} fila",
268
+ "{{count}} Rows_many": "{{count}} filas",
269
+ "{{count}} Rows_other": "{{count}} filas",
270
+ Clear: "Borrar",
271
+ Min: "Mín",
272
+ Max: "Máx",
273
+ Reset: "Restablecer",
274
+ Done: "Listo",
275
+ "Range…": "Rango…",
276
+ True: "Sí",
277
+ False: "No",
278
+ All: "Todos",
279
+ "Filter…": "Filtrar…",
280
+ "No matching options": "No hay opciones coincidentes",
281
+ "Show {{pageSize}}": "Mostrar {{pageSize}}",
282
+ "Refreshing Data": "Actualizando datos",
283
+ "Data Loaded: {{date}}": "Datos cargados: {{date}}",
284
+ "Export Table to CSV": "Exportar tabla a CSV",
285
+ Corporation: "Corporación",
286
+ Alliance: "Alianza"
287
+ },
288
+ "../i18n/fr-FR/aa-geuthur-react.json": {
289
+ Close: "Fermer",
290
+ Confirm: "Confirmer",
291
+ "Something went wrong.": "Une erreur s'est produite.",
292
+ "No Data Available": "Aucune donnée disponible",
293
+ "Page Size:": "Taille de page\xA0:",
294
+ "Show All": "Tout afficher",
295
+ "First Page": "Première page",
296
+ "Previous Page": "Page précédente",
297
+ "Page {{page}} of {{total}}": "Page {{page}} sur {{total}}",
298
+ "Next Page": "Page suivante",
299
+ "Last Page": "Dernière page",
300
+ "{{count}} Rows_one": "{{count}} ligne",
301
+ "{{count}} Rows_many": "{{count}} lignes",
302
+ "{{count}} Rows_other": "{{count}} lignes",
303
+ Clear: "Effacer",
304
+ Reset: "Réinitialiser",
305
+ Done: "Terminé",
306
+ "Range…": "Plage…",
307
+ True: "Oui",
308
+ False: "Non",
309
+ All: "Tous",
310
+ "Filter…": "Filtrer…",
311
+ "No matching options": "Aucune option correspondante",
312
+ "Show {{pageSize}}": "Afficher {{pageSize}}",
313
+ "Refreshing Data": "Actualisation des données",
314
+ "Data Loaded: {{date}}": "Données chargées\xA0: {{date}}",
315
+ "Export Table to CSV": "Exporter le tableau en CSV"
316
+ },
317
+ "../i18n/it-IT/aa-geuthur-react.json": {
318
+ Close: "Chiudi",
319
+ Confirm: "Conferma",
320
+ "Something went wrong.": "Qualcosa è andato storto.",
321
+ "No Data Available": "Nessun dato disponibile",
322
+ "Page Size:": "Dimensione pagina:",
323
+ "Show All": "Mostra tutto",
324
+ "First Page": "Prima pagina",
325
+ "Previous Page": "Pagina precedente",
326
+ "Page {{page}} of {{total}}": "Pagina {{page}} di {{total}}",
327
+ "Next Page": "Pagina successiva",
328
+ "Last Page": "Ultima pagina",
329
+ "{{count}} Rows_one": "{{count}} riga",
330
+ "{{count}} Rows_many": "{{count}} righe",
331
+ "{{count}} Rows_other": "{{count}} righe",
332
+ Clear: "Cancella",
333
+ Reset: "Reimposta",
334
+ Done: "Fatto",
335
+ "Range…": "Intervallo…",
336
+ True: "Sì",
337
+ False: "No",
338
+ All: "Tutti",
339
+ "Filter…": "Filtra…",
340
+ "No matching options": "Nessuna opzione corrispondente",
341
+ "Show {{pageSize}}": "Mostra {{pageSize}}",
342
+ "Refreshing Data": "Aggiornamento dati",
343
+ "Data Loaded: {{date}}": "Dati caricati: {{date}}",
344
+ "Export Table to CSV": "Esporta tabella in CSV",
345
+ Alliance: "Alleanza"
346
+ },
347
+ "../i18n/ja/aa-geuthur-react.json": {
348
+ Close: "閉じる",
349
+ Confirm: "確認",
350
+ "Something went wrong.": "問題が発生しました。",
351
+ "No Data Available": "データがありません",
352
+ "Page Size:": "ページサイズ:",
353
+ "Show All": "すべて表示",
354
+ "First Page": "最初のページ",
355
+ "Previous Page": "前のページ",
356
+ "Page {{page}} of {{total}}": "{{page}} / {{total}} ページ",
357
+ "Next Page": "次のページ",
358
+ "Last Page": "最後のページ",
359
+ "{{count}} Rows_other": "{{count}} 行",
360
+ Clear: "クリア",
361
+ Min: "最小",
362
+ Max: "最大",
363
+ Reset: "リセット",
364
+ Done: "完了",
365
+ "Range…": "範囲…",
366
+ True: "はい",
367
+ False: "いいえ",
368
+ All: "全て",
369
+ "Filter…": "フィルター…",
370
+ "No matching options": "一致するオプションがありません",
371
+ "Show {{pageSize}}": "{{pageSize}} 件表示",
372
+ "Refreshing Data": "データを更新中",
373
+ "Data Loaded: {{date}}": "データ読み込み: {{date}}",
374
+ "Export Table to CSV": "テーブルをCSVにエクスポート",
375
+ Corporation: "コーポレーション",
376
+ Alliance: "アライアンス"
377
+ },
378
+ "../i18n/ko-KR/aa-geuthur-react.json": {
379
+ Close: "닫기",
380
+ Confirm: "확인",
381
+ "Something went wrong.": "문제가 발생했습니다.",
382
+ "No Data Available": "데이터 없음",
383
+ "Page Size:": "페이지 크기:",
384
+ "Show All": "모두 표시",
385
+ "First Page": "첫 페이지",
386
+ "Previous Page": "이전 페이지",
387
+ "Page {{page}} of {{total}}": "{{page}} / {{total}} 페이지",
388
+ "Next Page": "다음 페이지",
389
+ "Last Page": "마지막 페이지",
390
+ "{{count}} Rows_other": "{{count}}행",
391
+ Clear: "초기화",
392
+ Min: "최소",
393
+ Max: "최대",
394
+ Reset: "초기화",
395
+ Done: "완료",
396
+ "Range…": "범위…",
397
+ True: "예",
398
+ False: "아니요",
399
+ All: "전체",
400
+ "Filter…": "필터…",
401
+ "No matching options": "일치하는 옵션 없음",
402
+ "Show {{pageSize}}": "{{pageSize}}개 표시",
403
+ "Refreshing Data": "데이터 새로 고침 중",
404
+ "Data Loaded: {{date}}": "데이터 로드됨: {{date}}",
405
+ "Export Table to CSV": "표를 CSV로 내보내기",
406
+ Corporation: "코퍼레이션",
407
+ Alliance: "얼라이언스"
112
408
  },
113
- "../i18n/es/aa-geuthur-react.json": {},
114
- "../i18n/fr-FR/aa-geuthur-react.json": {},
115
- "../i18n/it-IT/aa-geuthur-react.json": {},
116
- "../i18n/ja/aa-geuthur-react.json": {},
117
- "../i18n/ko-KR/aa-geuthur-react.json": {},
118
- "../i18n/nl-NL/aa-geuthur-react.json": {},
119
- "../i18n/pl-PL/aa-geuthur-react.json": {},
120
- "../i18n/ru/aa-geuthur-react.json": {},
121
- "../i18n/sk/aa-geuthur-react.json": {},
122
- "../i18n/uk/aa-geuthur-react.json": {},
123
- "../i18n/zh-Hans/aa-geuthur-react.json": {}
124
- }), Me = {};
125
- for (let [e, t] of Object.entries(je)) {
409
+ "../i18n/nl-NL/aa-geuthur-react.json": {
410
+ Close: "Sluiten",
411
+ Confirm: "Bevestigen",
412
+ "Something went wrong.": "Er is iets misgegaan.",
413
+ "No Data Available": "Geen gegevens beschikbaar",
414
+ "Page Size:": "Paginagrootte:",
415
+ "Show All": "Alles weergeven",
416
+ "First Page": "Eerste pagina",
417
+ "Previous Page": "Vorige pagina",
418
+ "Page {{page}} of {{total}}": "Pagina {{page}} van {{total}}",
419
+ "Next Page": "Volgende pagina",
420
+ "Last Page": "Laatste pagina",
421
+ "{{count}} Rows_one": "{{count}} rij",
422
+ "{{count}} Rows_other": "{{count}} rijen",
423
+ Clear: "Wissen",
424
+ Reset: "Herstellen",
425
+ Done: "Gereed",
426
+ "Range…": "Bereik…",
427
+ True: "Ja",
428
+ False: "Nee",
429
+ All: "Alle",
430
+ "Filter…": "Filteren…",
431
+ "No matching options": "Geen overeenkomende opties",
432
+ "Show {{pageSize}}": "{{pageSize}} weergeven",
433
+ "Refreshing Data": "Gegevens vernieuwen",
434
+ "Data Loaded: {{date}}": "Gegevens geladen: {{date}}",
435
+ "Export Table to CSV": "Tabel exporteren naar CSV",
436
+ Alliance: "Alliantie"
437
+ },
438
+ "../i18n/pl-PL/aa-geuthur-react.json": {
439
+ Close: "Zamknij",
440
+ Confirm: "Potwierdź",
441
+ "Something went wrong.": "Coś poszło nie tak.",
442
+ "No Data Available": "Brak danych",
443
+ "Page Size:": "Rozmiar strony:",
444
+ "Show All": "Pokaż wszystko",
445
+ "First Page": "Pierwsza strona",
446
+ "Previous Page": "Poprzednia strona",
447
+ "Page {{page}} of {{total}}": "Strona {{page}} z {{total}}",
448
+ "Next Page": "Następna strona",
449
+ "Last Page": "Ostatnia strona",
450
+ "{{count}} Rows_one": "{{count}} wiersz",
451
+ "{{count}} Rows_few": "{{count}} wiersze",
452
+ "{{count}} Rows_many": "{{count}} wierszy",
453
+ Clear: "Wyczyść",
454
+ Max: "Maks",
455
+ Reset: "Resetuj",
456
+ Done: "Gotowe",
457
+ "Range…": "Zakres…",
458
+ True: "Tak",
459
+ False: "Nie",
460
+ All: "Wszystkie",
461
+ "Filter…": "Filtruj…",
462
+ "No matching options": "Brak pasujących opcji",
463
+ "Show {{pageSize}}": "Pokaż {{pageSize}}",
464
+ "Refreshing Data": "Odświeżanie danych",
465
+ "Data Loaded: {{date}}": "Dane załadowane: {{date}}",
466
+ "Export Table to CSV": "Eksportuj tabelę do CSV",
467
+ Corporation: "Korporacja",
468
+ Alliance: "Sojusz"
469
+ },
470
+ "../i18n/ru/aa-geuthur-react.json": {
471
+ Close: "Закрыть",
472
+ Confirm: "Подтвердить",
473
+ "Something went wrong.": "Что-то пошло не так.",
474
+ "No Data Available": "Нет данных",
475
+ "Page Size:": "Размер страницы:",
476
+ "Show All": "Показать все",
477
+ "First Page": "Первая страница",
478
+ "Previous Page": "Предыдущая страница",
479
+ "Page {{page}} of {{total}}": "Страница {{page}} из {{total}}",
480
+ "Next Page": "Следующая страница",
481
+ "Last Page": "Последняя страница",
482
+ "{{count}} Rows_one": "{{count}} строка",
483
+ "{{count}} Rows_few": "{{count}} строки",
484
+ "{{count}} Rows_many": "{{count}} строк",
485
+ Clear: "Сбросить",
486
+ Min: "Мин",
487
+ Max: "Макс",
488
+ Reset: "Сбросить",
489
+ Done: "Готово",
490
+ "Range…": "Диапазон…",
491
+ True: "Да",
492
+ False: "Нет",
493
+ All: "Все",
494
+ "Filter…": "Фильтр…",
495
+ "No matching options": "Нет подходящих вариантов",
496
+ "Show {{pageSize}}": "Показать {{pageSize}}",
497
+ "Refreshing Data": "Обновление данных",
498
+ "Data Loaded: {{date}}": "Данные загружены: {{date}}",
499
+ "Export Table to CSV": "Экспорт таблицы в CSV",
500
+ Corporation: "Корпорация",
501
+ Alliance: "Альянс"
502
+ },
503
+ "../i18n/sk/aa-geuthur-react.json": {
504
+ Close: "Zavrieť",
505
+ Confirm: "Potvrdiť",
506
+ "Something went wrong.": "Niečo sa pokazilo.",
507
+ "No Data Available": "Nie sú k dispozícii žiadne údaje",
508
+ "Page Size:": "Veľkosť stránky:",
509
+ "Show All": "Zobraziť všetko",
510
+ "First Page": "Prvá stránka",
511
+ "Previous Page": "Predchádzajúca stránka",
512
+ "Page {{page}} of {{total}}": "Strana {{page}} z {{total}}",
513
+ "Next Page": "Nasledujúca stránka",
514
+ "Last Page": "Posledná stránka",
515
+ "{{count}} Rows_one": "{{count}} riadok",
516
+ "{{count}} Rows_few": "",
517
+ "{{count}} Rows_other": "{{count}} riadkov",
518
+ Clear: "Vymazať",
519
+ Reset: "Obnoviť",
520
+ Done: "Hotovo",
521
+ "Range…": "Rozsah…",
522
+ True: "Áno",
523
+ False: "Nie",
524
+ All: "Všetko",
525
+ "Filter…": "Filtrovať…",
526
+ "No matching options": "Žiadne zodpovedajúce možnosti",
527
+ "Show {{pageSize}}": "Zobraziť {{pageSize}}",
528
+ "Refreshing Data": "Aktualizácia údajov",
529
+ "Data Loaded: {{date}}": "Údaje načítané: {{date}}",
530
+ "Export Table to CSV": "Exportovať tabuľku do CSV",
531
+ Corporation: "Korporácia",
532
+ Alliance: "Aliancia"
533
+ },
534
+ "../i18n/uk/aa-geuthur-react.json": {
535
+ Close: "Закрити",
536
+ Confirm: "Підтвердити",
537
+ "Something went wrong.": "Щось пішло не так.",
538
+ "No Data Available": "Немає даних",
539
+ "Page Size:": "Розмір сторінки:",
540
+ "Show All": "Показати все",
541
+ "First Page": "Перша сторінка",
542
+ "Previous Page": "Попередня сторінка",
543
+ "Page {{page}} of {{total}}": "Сторінка {{page}} з {{total}}",
544
+ "Next Page": "Наступна сторінка",
545
+ "Last Page": "Остання сторінка",
546
+ "{{count}} Rows_one": "{{count}} рядок",
547
+ "{{count}} Rows_few": "{{count}} рядки",
548
+ "{{count}} Rows_many": "{{count}} рядків",
549
+ Clear: "Скинути",
550
+ Min: "Мін",
551
+ Max: "Макс",
552
+ Reset: "Скинути",
553
+ Done: "Готово",
554
+ "Range…": "Діапазон…",
555
+ True: "Так",
556
+ False: "Ні",
557
+ All: "Усі",
558
+ "Filter…": "Фільтр…",
559
+ "No matching options": "Немає відповідних варіантів",
560
+ "Show {{pageSize}}": "Показати {{pageSize}}",
561
+ "Refreshing Data": "Оновлення даних",
562
+ "Data Loaded: {{date}}": "Дані завантажено: {{date}}",
563
+ "Export Table to CSV": "Експортувати таблицю в CSV",
564
+ Corporation: "Корпорація",
565
+ Alliance: "Альянс"
566
+ },
567
+ "../i18n/zh-Hans/aa-geuthur-react.json": {
568
+ Close: "关闭",
569
+ Confirm: "确认",
570
+ "Something went wrong.": "出了点问题。",
571
+ "No Data Available": "暂无数据",
572
+ "Page Size:": "每页条数:",
573
+ "Show All": "显示全部",
574
+ "First Page": "第一页",
575
+ "Previous Page": "上一页",
576
+ "Page {{page}} of {{total}}": "第 {{page}} 页,共 {{total}} 页",
577
+ "Next Page": "下一页",
578
+ "Last Page": "最后一页",
579
+ "{{count}} Rows_other": "{{count}} 行",
580
+ Clear: "清除",
581
+ Min: "最小",
582
+ Max: "最大",
583
+ Reset: "重置",
584
+ Done: "完成",
585
+ "Range…": "范围…",
586
+ True: "是",
587
+ False: "否",
588
+ All: "全部",
589
+ "Filter…": "筛选…",
590
+ "No matching options": "没有匹配的选项",
591
+ "Show {{pageSize}}": "显示 {{pageSize}} 条",
592
+ "Refreshing Data": "正在刷新数据",
593
+ "Data Loaded: {{date}}": "数据已加载:{{date}}",
594
+ "Export Table to CSV": "将表格导出为 CSV",
595
+ Corporation: "军团",
596
+ Alliance: "联盟"
597
+ }
598
+ }), We = {};
599
+ for (let [e, t] of Object.entries(Ue)) {
126
600
  let n = e.split("/").at(-2);
127
- n && (Me[n] = t);
601
+ n && (We[n] = t);
128
602
  }
129
603
  // src/i18n.ts
130
- var K = "aa-geuthur-react", Ne = "translation", Pe = /* @__PURE__ */ new WeakSet();
131
- function Fe(e) {
132
- if (e && typeof e.addResourceBundle == "function" && !Pe.has(e)) {
133
- Pe.add(e);
134
- for (let [t, n] of Object.entries(Me)) e.addResourceBundle(t, K, n, !0, !1);
604
+ var Q = "aa-geuthur-react", Ge = "translation", Ke = /* @__PURE__ */ new WeakSet();
605
+ function qe(e) {
606
+ if (e && typeof e.addResourceBundle == "function" && !Ke.has(e)) {
607
+ Ke.add(e);
608
+ for (let [t, n] of Object.entries(We)) e.addResourceBundle(t, Q, n, !0, !1);
135
609
  }
136
610
  }
137
611
  // src/Components/Base/BaseTable/BaseTableFilter.tsx
138
- var q = "position-relative w-100", J = "position-absolute top-50 end-0 translate-middle-y me-2 pe-none text-muted", Y = ({ onClick: e }) => {
139
- let { t } = z(K);
140
- return /* @__PURE__ */ V("button", {
612
+ var Je = "position-relative w-100", Ye = "position-absolute top-50 end-0 translate-middle-y me-2 pe-none text-muted", Xe = ({ onClick: e }) => {
613
+ let { t } = W(Q);
614
+ return /* @__PURE__ */ K("button", {
141
615
  type: "button",
142
616
  className: "aa-table-filter-clear position-absolute top-50 end-0 translate-middle-y me-1 d-flex align-items-center justify-content-center border-0 bg-transparent p-0",
143
617
  onClick: e,
144
618
  title: t("Clear"),
145
- children: /* @__PURE__ */ V(le, { size: 12 })
619
+ children: /* @__PURE__ */ K(P, { size: 12 })
146
620
  });
147
- }, Ie = RegExp.prototype.test.bind(/(<([^>]+)>)/i), Le = ({ column: e }) => {
148
- let { t } = z(K), n = e.getFilterValue(), r = n?.[0] !== void 0 && n?.[0] !== "" || n?.[1] !== void 0 && n?.[1] !== "", i = /* @__PURE__ */ V(fe, {
621
+ }, Ze = RegExp.prototype.test.bind(/(<([^>]+)>)/i), Qe = ({ column: e }) => {
622
+ let { t } = W(Q), n = e.getFilterValue(), r = n?.[0] !== void 0 && n?.[0] !== "" || n?.[1] !== void 0 && n?.[1] !== "", i = /* @__PURE__ */ K(ve, {
149
623
  id: "popover-number-range",
150
624
  className: "aa-table-filter-popover",
151
- children: /* @__PURE__ */ V(fe.Body, {
625
+ children: /* @__PURE__ */ K(ve.Body, {
152
626
  className: "p-3",
153
- children: /* @__PURE__ */ H("div", {
627
+ children: /* @__PURE__ */ q("div", {
154
628
  className: "d-flex flex-column gap-2",
155
629
  children: [
156
- /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V(N.Label, {
630
+ /* @__PURE__ */ q("div", { children: [/* @__PURE__ */ K(B.Label, {
157
631
  className: "small text-muted mb-1",
158
632
  children: t("Min")
159
- }), /* @__PURE__ */ V(N.Control, {
633
+ }), /* @__PURE__ */ K(B.Control, {
160
634
  size: "sm",
161
635
  type: "number",
162
636
  value: n?.[0] ?? "",
@@ -164,10 +638,10 @@ var q = "position-relative w-100", J = "position-absolute top-50 end-0 translate
164
638
  placeholder: t("Min"),
165
639
  className: "aa-table-filter-input"
166
640
  })] }),
167
- /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V(N.Label, {
641
+ /* @__PURE__ */ q("div", { children: [/* @__PURE__ */ K(B.Label, {
168
642
  className: "small text-muted mb-1",
169
643
  children: t("Max")
170
- }), /* @__PURE__ */ V(N.Control, {
644
+ }), /* @__PURE__ */ K(B.Control, {
171
645
  size: "sm",
172
646
  type: "number",
173
647
  value: n?.[1] ?? "",
@@ -175,9 +649,9 @@ var q = "position-relative w-100", J = "position-absolute top-50 end-0 translate
175
649
  placeholder: t("Max"),
176
650
  className: "aa-table-filter-input"
177
651
  })] }),
178
- /* @__PURE__ */ H("div", {
652
+ /* @__PURE__ */ q("div", {
179
653
  className: "d-flex gap-2 mt-2",
180
- children: [/* @__PURE__ */ V(D, {
654
+ children: [/* @__PURE__ */ K(F, {
181
655
  variant: "outline-secondary",
182
656
  size: "sm",
183
657
  className: "w-50",
@@ -185,7 +659,7 @@ var q = "position-relative w-100", J = "position-absolute top-50 end-0 translate
185
659
  e.setFilterValue(() => [void 0, void 0]), document.body.click();
186
660
  },
187
661
  children: t("Reset")
188
- }), /* @__PURE__ */ V(D, {
662
+ }), /* @__PURE__ */ K(F, {
189
663
  variant: "primary",
190
664
  size: "sm",
191
665
  className: "w-50",
@@ -197,54 +671,54 @@ var q = "position-relative w-100", J = "position-absolute top-50 end-0 translate
197
671
  })
198
672
  })
199
673
  });
200
- return /* @__PURE__ */ V(I, {
674
+ return /* @__PURE__ */ K(_e, {
201
675
  trigger: "click",
202
676
  placement: "bottom",
203
677
  rootClose: !0,
204
678
  overlay: i,
205
- children: /* @__PURE__ */ H("div", {
206
- className: q,
207
- children: [/* @__PURE__ */ V(N.Control, {
679
+ children: /* @__PURE__ */ q("div", {
680
+ className: Je,
681
+ children: [/* @__PURE__ */ K(B.Control, {
208
682
  size: "sm",
209
683
  className: "aa-table-filter-input",
210
684
  readOnly: !0,
211
685
  type: "text",
212
686
  placeholder: t("Range…"),
213
687
  value: r ? `${n?.[0] || "Min"} → ${n?.[1] || "Max"}` : ""
214
- }), r ? /* @__PURE__ */ V(Y, { onClick: (t) => {
688
+ }), r ? /* @__PURE__ */ K(Xe, { onClick: (t) => {
215
689
  t.stopPropagation(), e.setFilterValue(() => [void 0, void 0]);
216
- } }) : /* @__PURE__ */ V(ce, {
690
+ } }) : /* @__PURE__ */ K(M, {
217
691
  size: 12,
218
- className: J
692
+ className: Ye
219
693
  })]
220
694
  })
221
695
  });
222
- }, Re = ({ column: e }) => {
223
- let { t } = z(K), n = e.getFilterValue(), r = n !== void 0;
224
- return /* @__PURE__ */ V(I, {
696
+ }, $e = ({ column: e }) => {
697
+ let { t } = W(Q), n = e.getFilterValue(), r = n !== void 0;
698
+ return /* @__PURE__ */ K(_e, {
225
699
  trigger: "click",
226
700
  placement: "bottom-start",
227
701
  rootClose: !0,
228
- overlay: /* @__PURE__ */ V(M, {
702
+ overlay: /* @__PURE__ */ K(z, {
229
703
  show: !0,
230
704
  drop: "down-centered",
231
- children: /* @__PURE__ */ H(M.Menu, {
705
+ children: /* @__PURE__ */ q(z.Menu, {
232
706
  className: "aa-table-filter-dropdown overflow-y-auto",
233
707
  children: [
234
- /* @__PURE__ */ V(M.Item, {
708
+ /* @__PURE__ */ K(z.Item, {
235
709
  onClick: () => {
236
710
  e.setFilterValue(!0), document.body.click();
237
711
  },
238
712
  children: t("True")
239
713
  }),
240
- /* @__PURE__ */ V(M.Item, {
714
+ /* @__PURE__ */ K(z.Item, {
241
715
  onClick: () => {
242
716
  e.setFilterValue(!1), document.body.click();
243
717
  },
244
718
  children: t("False")
245
719
  }),
246
- /* @__PURE__ */ V(M.Divider, {}),
247
- /* @__PURE__ */ V(M.Item, {
720
+ /* @__PURE__ */ K(z.Divider, {}),
721
+ /* @__PURE__ */ K(z.Item, {
248
722
  onClick: () => {
249
723
  e.setFilterValue(void 0), document.body.click();
250
724
  },
@@ -253,28 +727,28 @@ var q = "position-relative w-100", J = "position-absolute top-50 end-0 translate
253
727
  ]
254
728
  })
255
729
  }),
256
- children: /* @__PURE__ */ H("div", {
257
- className: q,
258
- children: [/* @__PURE__ */ V(N.Control, {
730
+ children: /* @__PURE__ */ q("div", {
731
+ className: Je,
732
+ children: [/* @__PURE__ */ K(B.Control, {
259
733
  size: "sm",
260
734
  className: "aa-table-filter-input",
261
735
  readOnly: !0,
262
736
  type: "text",
263
737
  placeholder: t("All"),
264
738
  value: r ? t(n ? "True" : "False") : ""
265
- }), r ? /* @__PURE__ */ V(Y, { onClick: (t) => {
739
+ }), r ? /* @__PURE__ */ K(Xe, { onClick: (t) => {
266
740
  t.stopPropagation(), e.setFilterValue(() => void 0);
267
- } }) : /* @__PURE__ */ V(T, {
741
+ } }) : /* @__PURE__ */ K(E, {
268
742
  size: 12,
269
- className: J
743
+ className: Ye
270
744
  })]
271
745
  })
272
746
  });
273
- }, ze = ({ column: e }) => {
274
- let { t } = z(K), n = e.getFilterValue() ?? "";
275
- return /* @__PURE__ */ H("div", {
276
- className: q,
277
- children: [/* @__PURE__ */ V(N.Control, {
747
+ }, et = ({ column: e }) => {
748
+ let { t } = W(Q), n = e.getFilterValue() ?? "";
749
+ return /* @__PURE__ */ q("div", {
750
+ className: Je,
751
+ children: [/* @__PURE__ */ K(B.Control, {
278
752
  size: "sm",
279
753
  className: "aa-table-filter-input",
280
754
  type: "text",
@@ -283,40 +757,40 @@ var q = "position-relative w-100", J = "position-absolute top-50 end-0 translate
283
757
  onChange: (t) => {
284
758
  e.setFilterValue(t.target.value ? t.target.value : "");
285
759
  }
286
- }), n ? /* @__PURE__ */ V(Y, { onClick: () => e.setFilterValue("") }) : /* @__PURE__ */ V(oe, {
760
+ }), n ? /* @__PURE__ */ K(Xe, { onClick: () => e.setFilterValue("") }) : /* @__PURE__ */ K(k, {
287
761
  size: 12,
288
- className: J
762
+ className: Ye
289
763
  })]
290
764
  });
291
- }, Be = ({ column: e }) => {
292
- let { t } = z(K), [n, r] = W(!1), i = Array.from(e.getFacetedUniqueValues().keys()).filter((e) => e != null).sort(), a = e.getFilterValue(), o = Ie(i?.[0]) || typeof i?.[0] == "object", s = e.columnDef.meta?.filterOptionLabel ?? ((e) => e?.replaceAll("_", " ") ?? e), c = i.reduce((e, t) => (t != null && (o || (a === void 0 || t?.toLowerCase().includes(a?.toLowerCase())) && e.push({
765
+ }, tt = ({ column: e }) => {
766
+ let { t } = W(Q), [n, r] = Y(!1), i = Array.from(e.getFacetedUniqueValues().keys()).filter((e) => e != null).sort(), a = e.getFilterValue(), o = Ze(i?.[0]) || typeof i?.[0] == "object", s = e.columnDef.meta?.filterOptionLabel ?? ((e) => e?.replaceAll("_", " ") ?? e), c = i.reduce((e, t) => (t != null && (o || (a === void 0 || t?.toLowerCase().includes(a?.toLowerCase())) && e.push({
293
767
  value: t,
294
768
  label: s(t)
295
769
  })), e), []);
296
- return /* @__PURE__ */ V(I, {
770
+ return /* @__PURE__ */ K(_e, {
297
771
  trigger: "click",
298
772
  placement: "bottom-start",
299
773
  rootClose: !0,
300
- overlay: /* @__PURE__ */ V(M, {
774
+ overlay: /* @__PURE__ */ K(z, {
301
775
  show: !0,
302
776
  drop: "down-centered",
303
- children: /* @__PURE__ */ V(M.Menu, {
777
+ children: /* @__PURE__ */ K(z.Menu, {
304
778
  className: "aa-table-filter-dropdown overflow-y-auto",
305
- children: c.length > 0 ? c.map((t) => /* @__PURE__ */ V(M.Item, {
779
+ children: c.length > 0 ? c.map((t) => /* @__PURE__ */ K(z.Item, {
306
780
  className: "text-capitalize",
307
781
  onClick: () => {
308
782
  e.setFilterValue(t.value ? t.value : ""), document.body.click();
309
783
  },
310
784
  children: t.label
311
- }, t.value)) : /* @__PURE__ */ V(M.Item, {
785
+ }, t.value)) : /* @__PURE__ */ K(z.Item, {
312
786
  disabled: !0,
313
787
  children: t("No matching options")
314
788
  })
315
789
  })
316
790
  }),
317
- children: /* @__PURE__ */ H("div", {
318
- className: q,
319
- children: [/* @__PURE__ */ V(N.Control, {
791
+ children: /* @__PURE__ */ q("div", {
792
+ className: Je,
793
+ children: [/* @__PURE__ */ K(B.Control, {
320
794
  size: "sm",
321
795
  className: "aa-table-filter-input",
322
796
  type: "text",
@@ -329,39 +803,39 @@ var q = "position-relative w-100", J = "position-absolute top-50 end-0 translate
329
803
  onChange: (t) => {
330
804
  e.setFilterValue(t.target.value ? t.target.value : "");
331
805
  }
332
- }), a ? /* @__PURE__ */ V(Y, { onClick: (t) => {
806
+ }), a ? /* @__PURE__ */ K(Xe, { onClick: (t) => {
333
807
  t.stopPropagation(), r(!1), e.setFilterValue(() => void 0);
334
- } }) : /* @__PURE__ */ V(T, {
808
+ } }) : /* @__PURE__ */ K(E, {
335
809
  size: 12,
336
- className: J
810
+ className: Ye
337
811
  })]
338
812
  })
339
813
  });
340
- }, Ve = ({ column: e, table: t }) => {
814
+ }, nt = ({ column: e, table: t }) => {
341
815
  let n = t.getPreFilteredRowModel().flatRows[0]?.getValue(e.id);
342
- return V(typeof n == "number" ? Le : typeof n == "boolean" ? Re : typeof n == "object" ? ze : Be, { column: e });
816
+ return K(typeof n == "number" ? Qe : typeof n == "boolean" ? $e : typeof n == "object" ? et : tt, { column: e });
343
817
  };
344
818
  // src/Components/Base/BaseTable/BaseTableHeader.tsx
345
- function He({ table: e, enableFilters: t = !0 }) {
346
- return /* @__PURE__ */ V(B, { children: e.getHeaderGroups().map((n) => {
819
+ function rt({ table: e, enableFilters: t = !0 }) {
820
+ return /* @__PURE__ */ K(G, { children: e.getHeaderGroups().map((n) => {
347
821
  let r = t !== !1 && n.headers.some((e) => e.column.getCanFilter());
348
- return /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("tr", { children: n.headers.map((e) => {
822
+ return /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K("tr", { children: n.headers.map((e) => {
349
823
  let t = e.column.getCanSort(), n = e.column.getIsSorted(), r = e.column.columnDef.meta?.align === "right";
350
- return /* @__PURE__ */ V("th", {
824
+ return /* @__PURE__ */ K("th", {
351
825
  colSpan: e.colSpan,
352
826
  onClick: t ? e.column.getToggleSortingHandler() : void 0,
353
827
  className: `aa-table-heading-cell ${t ? "aa-table-sortable user-select-none" : ""} ${r ? "text-end" : ""}`,
354
- children: e.isPlaceholder ? null : /* @__PURE__ */ H("div", {
828
+ children: e.isPlaceholder ? null : /* @__PURE__ */ q("div", {
355
829
  className: `d-flex align-items-center gap-2 ${r ? "justify-content-end text-end" : ""}`,
356
- children: [_(e.column.columnDef.header, e.getContext()), t && /* @__PURE__ */ V("span", { children: n === "asc" ? /* @__PURE__ */ V(ae, { className: "aa-table-sort-icon aa-table-sort-icon-active" }) : n === "desc" ? /* @__PURE__ */ V(T, { className: "aa-table-sort-icon aa-table-sort-icon-active" }) : /* @__PURE__ */ V(w, { className: "aa-table-sort-icon" }) })]
830
+ children: [_(e.column.columnDef.header, e.getContext()), t && /* @__PURE__ */ K("span", { children: n === "asc" ? /* @__PURE__ */ K(ce, { className: "aa-table-sort-icon aa-table-sort-icon-active" }) : n === "desc" ? /* @__PURE__ */ K(E, { className: "aa-table-sort-icon aa-table-sort-icon-active" }) : /* @__PURE__ */ K(ne, { className: "aa-table-sort-icon" }) })]
357
831
  })
358
832
  }, e.id);
359
- }) }), r && /* @__PURE__ */ V("tr", {
833
+ }) }), r && /* @__PURE__ */ K("tr", {
360
834
  className: "aa-table-filter-row",
361
- children: n.headers.map((t) => /* @__PURE__ */ V("th", {
835
+ children: n.headers.map((t) => /* @__PURE__ */ K("th", {
362
836
  colSpan: t.colSpan,
363
837
  className: "aa-table-filter-cell px-3 py-1",
364
- children: t.column.getCanFilter() ? /* @__PURE__ */ V(Ve, {
838
+ children: t.column.getCanFilter() ? /* @__PURE__ */ K(nt, {
365
839
  column: t.column,
366
840
  table: e
367
841
  }) : null
@@ -370,7 +844,7 @@ function He({ table: e, enableFilters: t = !0 }) {
370
844
  }) });
371
845
  }
372
846
  // src/Components/Base/BaseTable/tableHelper.tsx
373
- var Ue = (e, t) => {
847
+ var it = (e, t) => {
374
848
  let { rows: n } = e.getFilteredRowModel(), r = t ?? "ExportedData.csv", i = e.getHeaderGroups().map((e) => e.headers.map((e) => typeof e.column.columnDef.header == "function" ? e.column.columnDef.accessorKey : e.column.columnDef.header)), a = n.map((e) => e.getVisibleCells().map((e) => e.getValue())), o = (e) => {
375
849
  if (e == null) return "";
376
850
  let t = String(e);
@@ -379,17 +853,17 @@ var Ue = (e, t) => {
379
853
  l.download = r, l.href = URL.createObjectURL(c), l.style.visibility = "hidden", document.body.appendChild(l), l.click(), document.body.removeChild(l);
380
854
  };
381
855
  // src/Utils/bootsTrap.tsx
382
- function We(e) {
383
- return /* @__PURE__ */ V("div", {
856
+ function at(e) {
857
+ return /* @__PURE__ */ K("div", {
384
858
  className: "aa-tooltip-container",
385
- children: /* @__PURE__ */ V("span", { children: e })
859
+ children: /* @__PURE__ */ K("span", { children: e })
386
860
  });
387
861
  }
388
- function X(e, t) {
389
- return /* @__PURE__ */ V(I, {
862
+ function ot(e, t) {
863
+ return /* @__PURE__ */ K(_e, {
390
864
  placement: "auto",
391
865
  trigger: ["hover", "focus"],
392
- overlay: /* @__PURE__ */ V(L, {
866
+ overlay: /* @__PURE__ */ K(ye, {
393
867
  id: "aa-react-tooltip",
394
868
  className: "aa-tooltip",
395
869
  children: e
@@ -398,9 +872,9 @@ function X(e, t) {
398
872
  });
399
873
  }
400
874
  // src/Utils/format.ts
401
- function Ge(e, t) {
875
+ function st(e, t) {
402
876
  if (!e) return "N/A";
403
- let n = xe.language || "en", r = t && ("hour" in t || "minute" in t || "second" in t || "timeStyle" in t), i = t && ("year" in t || "month" in t || "day" in t || "dateStyle" in t), a = {
877
+ let n = Ae.language || "en", r = t && ("hour" in t || "minute" in t || "second" in t || "timeStyle" in t), i = t && ("year" in t || "month" in t || "day" in t || "dateStyle" in t), a = {
404
878
  ...r || i ? {} : {
405
879
  dateStyle: "medium",
406
880
  timeStyle: "short"
@@ -409,7 +883,7 @@ function Ge(e, t) {
409
883
  };
410
884
  return new Intl.DateTimeFormat(n, a).format(new Date(e));
411
885
  }
412
- function Ke(e) {
886
+ function ct(e) {
413
887
  if (!e) return "N/A";
414
888
  let t = e instanceof Date ? e : new Date(e);
415
889
  if (isNaN(t.getTime())) return "N/A";
@@ -438,33 +912,33 @@ function Ke(e) {
438
912
  unit: "second",
439
913
  seconds: 1
440
914
  }
441
- ], i = r.find((e) => Math.abs(n) >= e.seconds) ?? r[r.length - 1], a = Math.round(n / i.seconds), o = xe.language || "en";
915
+ ], i = r.find((e) => Math.abs(n) >= e.seconds) ?? r[r.length - 1], a = Math.round(n / i.seconds), o = Ae.language || "en";
442
916
  return new Intl.RelativeTimeFormat(o, { numeric: "auto" }).format(a, i.unit);
443
917
  }
444
- function qe(e, t = "Done") {
918
+ function lt(e, t = "Done") {
445
919
  if (!e) return "N/A";
446
920
  let n = e instanceof Date ? e : new Date(e);
447
- return isNaN(n.getTime()) ? "N/A" : n.getTime() <= Date.now() ? t : Ke(n);
921
+ return isNaN(n.getTime()) ? "N/A" : n.getTime() <= Date.now() ? t : ct(n);
448
922
  }
449
- function Je(e, t, n) {
450
- let r = t || xe.language || "en";
923
+ function ut(e, t, n) {
924
+ let r = t || Ae.language || "en";
451
925
  return new Intl.NumberFormat(r, n).format(e);
452
926
  }
453
- function Ye(e, t = "", n, r) {
927
+ function dt(e, t = "", n, r) {
454
928
  let i = t ? ` ${t}` : "";
455
- return e >= 1e9 ? `${(e / 1e9).toFixed(2)}B${i}` : e >= 1e6 ? `${(e / 1e6).toFixed(1)}M${i}` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}K${i}` : `${Je(e, n, r)}${i}`;
929
+ return e >= 1e9 ? `${(e / 1e9).toFixed(2)}B${i}` : e >= 1e6 ? `${(e / 1e6).toFixed(1)}M${i}` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}K${i}` : `${ut(e, n, r)}${i}`;
456
930
  }
457
- function Xe(e) {
458
- return `${Je(Math.round(e), void 0, { maximumFractionDigits: 0 })} ISK`;
931
+ function ft(e) {
932
+ return `${ut(Math.round(e), void 0, { maximumFractionDigits: 0 })} ISK`;
459
933
  }
460
934
  // src/Components/Base/BaseTable/BaseTablePages.tsx
461
- var Ze = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, showExport: i = !0 }) => {
462
- let { t: a } = z(K), o = Math.max(1, e.getPageCount());
463
- return /* @__PURE__ */ V("div", { children: /* @__PURE__ */ H(O, {
935
+ var pt = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, showExport: i = !0 }) => {
936
+ let { t: a } = W(Q), o = Math.max(1, e.getPageCount());
937
+ return /* @__PURE__ */ K("div", { children: /* @__PURE__ */ q(I, {
464
938
  size: "sm",
465
939
  className: "z-0",
466
940
  children: [
467
- r && /* @__PURE__ */ V(D, {
941
+ r && /* @__PURE__ */ K(F, {
468
942
  size: "sm",
469
943
  variant: "primary",
470
944
  children: a("Page {{page}} of {{total}}", {
@@ -472,24 +946,24 @@ var Ze = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, s
472
946
  total: o
473
947
  })
474
948
  }),
475
- t ? X(a("Refreshing Data"), /* @__PURE__ */ V(D, {
949
+ t ? ot(a("Refreshing Data"), /* @__PURE__ */ K(F, {
476
950
  size: "sm",
477
951
  variant: "primary",
478
- children: /* @__PURE__ */ V("i", { className: "fas fa-sync fa-spin" })
479
- })) : X(a("Data Loaded: {{date}}", { date: Ge((/* @__PURE__ */ new Date()).toISOString()) }), /* @__PURE__ */ V(D, {
952
+ children: /* @__PURE__ */ K("i", { className: "fas fa-sync fa-spin" })
953
+ })) : ot(a("Data Loaded: {{date}}", { date: st((/* @__PURE__ */ new Date()).toISOString()) }), /* @__PURE__ */ K(F, {
480
954
  size: "sm",
481
955
  variant: "primary",
482
- children: /* @__PURE__ */ V("i", { className: "far fa-check-circle" })
956
+ children: /* @__PURE__ */ K("i", { className: "far fa-check-circle" })
483
957
  })),
484
- i && /* @__PURE__ */ V(D, {
958
+ i && /* @__PURE__ */ K(F, {
485
959
  size: "sm",
486
960
  variant: "primary",
487
- onClick: () => Ue(e, n ?? "ExportedData.csv"),
961
+ onClick: () => it(e, n ?? "ExportedData.csv"),
488
962
  children: a("Export Table to CSV")
489
963
  })
490
964
  ]
491
965
  }) });
492
- }, Qe = C({
966
+ }, mt = te({
493
967
  columnFilteringFeature: o,
494
968
  columnFacetingFeature: a,
495
969
  columnSizingFeature: s,
@@ -504,33 +978,33 @@ var Ze = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, s
504
978
  facetedUniqueValues: f(),
505
979
  facetedMinMaxValues: u(),
506
980
  filterFns: g,
507
- sortFns: S
508
- }), $e = () => l(), et = ({ message: e, className: t = "", spinnerClassName: n = "" } = {}) => /* @__PURE__ */ H("div", {
981
+ sortFns: ee
982
+ }), ht = () => l(), gt = ({ message: e, className: t = "", spinnerClassName: n = "" } = {}) => /* @__PURE__ */ q("div", {
509
983
  className: `d-flex flex-column align-items-center justify-content-center ${t}`,
510
- children: [/* @__PURE__ */ V("div", {
984
+ children: [/* @__PURE__ */ K("div", {
511
985
  className: `spinner-border text-info ${n}`,
512
986
  role: "status",
513
- children: /* @__PURE__ */ V("span", {
987
+ children: /* @__PURE__ */ K("span", {
514
988
  className: "visually-hidden",
515
989
  children: "Loading..."
516
990
  })
517
- }), e && /* @__PURE__ */ V("span", { children: e })]
518
- }), tt = "aa-table-message text-center py-5 px-3", nt = ({ isFetching: e = !1, isLoading: t = !1, loadingText: n, serverPagination: r, isError: a = !1, debugTable: o = !1, data: s = [], columns: c, initialState: l = void 0, exportFileName: u = void 0, variant: d = "default", emptyText: f, emptyState: p, toolbar: m, footer: h, showFooter: g = !1, className: y, tableClassName: b, headerClassName: x, bodyClassName: S, rowClassName: C, footClassName: w, footerClassName: T, pageSizeOptions: ae = [
991
+ }), e && /* @__PURE__ */ K("span", { children: e })]
992
+ }), _t = "aa-table-message text-center py-5 px-3", vt = ({ isFetching: e = !1, isLoading: t = !1, loadingText: n, serverPagination: r, isError: a = !1, debugTable: o = !1, data: s = [], columns: c, initialState: l = void 0, exportFileName: u = void 0, variant: d = "default", emptyText: f, emptyState: p, toolbar: m, footer: h, showFooter: g = !1, className: y, tableClassName: b, headerClassName: x, bodyClassName: ee, rowClassName: te, footClassName: C, footerClassName: w, pageSizeOptions: ne = [
519
993
  10,
520
994
  25,
521
995
  50,
522
996
  100
523
- ], getRowClassName: E, enableFilters: oe = !0, rowSelection: se, onRowSelectionChange: ce, enableRowSelection: le, getRowId: ue, onRowClick: de }) => {
524
- let O = i(), { t: k } = z(K), A = r && {
997
+ ], getRowClassName: T, enableFilters: re = !0, rowSelection: E, onRowSelectionChange: ce, enableRowSelection: le, getRowId: D, onRowClick: O }) => {
998
+ let ue = i(), { t: k } = W(Q), A = r && {
525
999
  pageIndex: r.page - 1,
526
1000
  pageSize: r.pageSize
527
- }, j = ee({
528
- features: Qe,
1001
+ }, j = S({
1002
+ features: mt,
529
1003
  data: s,
530
1004
  columns: c,
531
- getRowId: ue,
1005
+ getRowId: D,
532
1006
  state: {
533
- ...se === void 0 ? {} : { rowSelection: se },
1007
+ ...E === void 0 ? {} : { rowSelection: E },
534
1008
  ...A ? { pagination: A } : {}
535
1009
  },
536
1010
  ...r && A ? {
@@ -554,55 +1028,55 @@ var Ze = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, s
554
1028
  ...l?.pagination
555
1029
  }
556
1030
  }
557
- }), { rows: M } = j.getRowModel(), P = u === void 0 ? `ExportedData_${O.pathname}` : u, F = d === "light", { pageIndex: I, pageSize: fe } = j.state.pagination, L = j.getPageCount(), R = j.getVisibleLeafColumns().length;
558
- return /* @__PURE__ */ H("div", {
559
- className: `aa-table-shell mt-2 ${F ? "aa-table-shell-light aa-table-light" : ""} ${y ?? ""}`,
1031
+ }), { rows: M } = j.getRowModel(), de = u === void 0 ? `ExportedData_${ue.pathname}` : u, N = d === "light", { pageIndex: fe, pageSize: pe } = j.state.pagination, P = j.getPageCount(), me = j.getVisibleLeafColumns().length;
1032
+ return /* @__PURE__ */ q("div", {
1033
+ className: `aa-table-shell mt-2 ${N ? "aa-table-shell-light aa-table-light" : ""} ${y ?? ""}`,
560
1034
  children: [
561
1035
  m,
562
- /* @__PURE__ */ V("div", {
1036
+ /* @__PURE__ */ K("div", {
563
1037
  className: `aa-table-scroll ${t && M.length > 0 ? "opacity-50 pe-none" : ""}`,
564
1038
  "aria-busy": t,
565
- children: /* @__PURE__ */ H("table", {
566
- className: `aa-table w-100 text-start ${F ? "aa-table-light" : ""} ${b ?? ""}`,
1039
+ children: /* @__PURE__ */ q("table", {
1040
+ className: `aa-table w-100 text-start ${N ? "aa-table-light" : ""} ${b ?? ""}`,
567
1041
  children: [
568
- /* @__PURE__ */ V("thead", {
1042
+ /* @__PURE__ */ K("thead", {
569
1043
  className: `aa-table-head ${x ?? ""}`,
570
- children: /* @__PURE__ */ V(He, {
1044
+ children: /* @__PURE__ */ K(rt, {
571
1045
  table: j,
572
- enableFilters: oe
1046
+ enableFilters: re
573
1047
  })
574
1048
  }),
575
- /* @__PURE__ */ V("tbody", {
576
- className: `aa-table-body ${S ?? ""}`,
577
- children: a ? /* @__PURE__ */ V("tr", { children: /* @__PURE__ */ V("td", {
578
- colSpan: R,
579
- className: tt,
1049
+ /* @__PURE__ */ K("tbody", {
1050
+ className: `aa-table-body ${ee ?? ""}`,
1051
+ children: a ? /* @__PURE__ */ K("tr", { children: /* @__PURE__ */ K("td", {
1052
+ colSpan: me,
1053
+ className: _t,
580
1054
  children: k("Something went wrong.")
581
- }) }) : t && M.length === 0 ? /* @__PURE__ */ V("tr", { children: /* @__PURE__ */ V("td", {
582
- colSpan: R,
583
- className: tt,
584
- children: /* @__PURE__ */ V(et, { message: n })
585
- }) }) : M.length === 0 ? /* @__PURE__ */ V("tr", { children: /* @__PURE__ */ V("td", {
586
- colSpan: R,
587
- className: tt,
1055
+ }) }) : t && M.length === 0 ? /* @__PURE__ */ K("tr", { children: /* @__PURE__ */ K("td", {
1056
+ colSpan: me,
1057
+ className: _t,
1058
+ children: /* @__PURE__ */ K(gt, { message: n })
1059
+ }) }) : M.length === 0 ? /* @__PURE__ */ K("tr", { children: /* @__PURE__ */ K("td", {
1060
+ colSpan: me,
1061
+ className: _t,
588
1062
  children: p ?? f ?? k("No Data Available")
589
- }) }) : M.map((e) => /* @__PURE__ */ V("tr", {
590
- onClick: de ? () => de(e) : void 0,
591
- className: `aa-table-row ${E ? E(e) : "aa-table-row-hover"} ${C ?? ""}`,
1063
+ }) }) : M.map((e) => /* @__PURE__ */ K("tr", {
1064
+ onClick: O ? () => O(e) : void 0,
1065
+ className: `aa-table-row ${T ? T(e) : "aa-table-row-hover"} ${te ?? ""}`,
592
1066
  children: e.getVisibleCells().map((e) => {
593
1067
  let t = e.column.columnDef.meta?.align === "right";
594
- return /* @__PURE__ */ V("td", {
1068
+ return /* @__PURE__ */ K("td", {
595
1069
  className: `aa-table-cell align-middle ${t ? "text-end" : ""}`,
596
1070
  children: _(e.column.columnDef.cell, e.getContext())
597
1071
  }, e.id);
598
1072
  })
599
1073
  }, e.id))
600
1074
  }),
601
- g && !a && M.length > 0 && /* @__PURE__ */ V("tfoot", {
602
- className: `aa-table-foot ${w ?? ""}`,
603
- children: j.getFooterGroups().map((e) => /* @__PURE__ */ V("tr", { children: e.headers.map((e) => {
1075
+ g && !a && M.length > 0 && /* @__PURE__ */ K("tfoot", {
1076
+ className: `aa-table-foot ${C ?? ""}`,
1077
+ children: j.getFooterGroups().map((e) => /* @__PURE__ */ K("tr", { children: e.headers.map((e) => {
604
1078
  let t = e.column.columnDef.meta?.align === "right";
605
- return /* @__PURE__ */ V("td", {
1079
+ return /* @__PURE__ */ K("td", {
606
1080
  colSpan: e.colSpan,
607
1081
  className: `aa-table-cell align-middle ${t ? "text-end" : ""}`,
608
1082
  children: e.isPlaceholder ? null : _(e.column.columnDef.footer, e.getContext())
@@ -612,107 +1086,107 @@ var Ze = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, s
612
1086
  ]
613
1087
  })
614
1088
  }),
615
- /* @__PURE__ */ H("div", {
616
- className: `aa-table-footer d-flex flex-column flex-md-row align-items-center justify-content-between gap-3 p-3 ${T ?? ""}`,
1089
+ /* @__PURE__ */ q("div", {
1090
+ className: `aa-table-footer d-flex flex-column flex-md-row align-items-center justify-content-between gap-3 p-3 ${w ?? ""}`,
617
1091
  children: [
618
- /* @__PURE__ */ H("div", {
1092
+ /* @__PURE__ */ q("div", {
619
1093
  className: "d-flex align-items-center justify-content-between gap-3 align-self-stretch align-self-md-auto",
620
- children: [/* @__PURE__ */ H("div", {
1094
+ children: [/* @__PURE__ */ q("div", {
621
1095
  className: "d-flex align-items-center gap-3",
622
- children: [/* @__PURE__ */ H("div", {
1096
+ children: [/* @__PURE__ */ q("div", {
623
1097
  className: "d-flex align-items-center gap-2",
624
- children: [/* @__PURE__ */ V("span", { children: k("Page Size:") }), /* @__PURE__ */ H(N.Select, {
1098
+ children: [/* @__PURE__ */ K("span", { children: k("Page Size:") }), /* @__PURE__ */ q(B.Select, {
625
1099
  size: "sm",
626
- value: fe,
1100
+ value: pe,
627
1101
  disabled: t,
628
1102
  onChange: (e) => j.setPageSize(Number(e.target.value)),
629
1103
  className: "aa-table-select w-auto",
630
- children: [ae.map((e) => /* @__PURE__ */ V("option", {
1104
+ children: [ne.map((e) => /* @__PURE__ */ K("option", {
631
1105
  value: e,
632
1106
  children: e
633
- }, e)), !r && /* @__PURE__ */ V("option", {
1107
+ }, e)), !r && /* @__PURE__ */ K("option", {
634
1108
  value: 1e6,
635
1109
  children: k("Show All")
636
1110
  })]
637
1111
  })]
638
- }), r && /* @__PURE__ */ V("span", {
1112
+ }), r && /* @__PURE__ */ K("span", {
639
1113
  className: "aa-table-total",
640
1114
  children: r.totalText ?? k("Total: {{total}}", { total: r.total.toLocaleString() })
641
1115
  })]
642
- }), /* @__PURE__ */ V(Ze, {
1116
+ }), /* @__PURE__ */ K(pt, {
643
1117
  table: j,
644
1118
  isFetching: e,
645
- fileName: P,
1119
+ fileName: de,
646
1120
  showPageNumber: !0,
647
1121
  showExport: !r
648
1122
  })]
649
1123
  }),
650
- L > 1 && /* @__PURE__ */ H("div", {
1124
+ P > 1 && /* @__PURE__ */ q("div", {
651
1125
  className: "d-flex align-items-center gap-2",
652
1126
  children: [
653
- /* @__PURE__ */ V(D, {
1127
+ /* @__PURE__ */ K(F, {
654
1128
  size: "sm",
655
1129
  disabled: t || !j.getCanPreviousPage(),
656
1130
  onClick: () => j.setPageIndex(0),
657
1131
  className: "aa-table-page-button",
658
1132
  title: k("First Page"),
659
- children: /* @__PURE__ */ V(te, { className: "aa-table-page-icon" })
1133
+ children: /* @__PURE__ */ K(ie, { className: "aa-table-page-icon" })
660
1134
  }),
661
- /* @__PURE__ */ V(D, {
1135
+ /* @__PURE__ */ K(F, {
662
1136
  size: "sm",
663
1137
  disabled: t || !j.getCanPreviousPage(),
664
1138
  onClick: () => j.previousPage(),
665
1139
  className: "aa-table-page-button",
666
1140
  title: k("Previous Page"),
667
- children: /* @__PURE__ */ V(re, { className: "aa-table-page-icon" })
1141
+ children: /* @__PURE__ */ K(oe, { className: "aa-table-page-icon" })
668
1142
  }),
669
- /* @__PURE__ */ V("span", {
1143
+ /* @__PURE__ */ K("span", {
670
1144
  className: "aa-table-page-number px-2 fw-bold",
671
1145
  children: k("Page {{page}} of {{total}}", {
672
- page: I + 1,
673
- total: L
1146
+ page: fe + 1,
1147
+ total: P
674
1148
  })
675
1149
  }),
676
- /* @__PURE__ */ V(D, {
1150
+ /* @__PURE__ */ K(F, {
677
1151
  size: "sm",
678
1152
  disabled: t || !j.getCanNextPage(),
679
1153
  onClick: () => j.nextPage(),
680
1154
  className: "aa-table-page-button",
681
1155
  title: k("Next Page"),
682
- children: /* @__PURE__ */ V(ie, { className: "aa-table-page-icon" })
1156
+ children: /* @__PURE__ */ K(se, { className: "aa-table-page-icon" })
683
1157
  }),
684
- /* @__PURE__ */ V(D, {
1158
+ /* @__PURE__ */ K(F, {
685
1159
  size: "sm",
686
1160
  disabled: t || !j.getCanNextPage(),
687
- onClick: () => j.setPageIndex(L - 1),
1161
+ onClick: () => j.setPageIndex(P - 1),
688
1162
  className: "aa-table-page-button",
689
1163
  title: k("Last Page"),
690
- children: /* @__PURE__ */ V(ne, { className: "aa-table-page-icon" })
1164
+ children: /* @__PURE__ */ K(ae, { className: "aa-table-page-icon" })
691
1165
  })
692
1166
  ]
693
1167
  }),
694
- h && /* @__PURE__ */ V("div", {
1168
+ h && /* @__PURE__ */ K("div", {
695
1169
  className: "w-100",
696
1170
  children: h
697
1171
  })
698
1172
  ]
699
1173
  }),
700
- o && /* @__PURE__ */ H("div", {
1174
+ o && /* @__PURE__ */ q("div", {
701
1175
  className: "p-3",
702
- children: [/* @__PURE__ */ V("div", { children: k("{{count}} Rows", { count: j.getRowModel().rows.length }) }), /* @__PURE__ */ V("pre", { children: JSON.stringify(j.state, null, 2) })]
1176
+ children: [/* @__PURE__ */ K("div", { children: k("{{count}} Rows", { count: j.getRowModel().rows.length }) }), /* @__PURE__ */ K("pre", { children: JSON.stringify(j.state, null, 2) })]
703
1177
  })
704
1178
  ]
705
1179
  });
706
1180
  };
707
1181
  // src/Components/Base/BaseTable/BaseTableForm.tsx
708
- function rt({ table: e }) {
709
- let { t } = z(K);
710
- return /* @__PURE__ */ H("div", {
1182
+ function yt({ table: e }) {
1183
+ let { t } = W(Q);
1184
+ return /* @__PURE__ */ q("div", {
711
1185
  className: "d-flex align-items-center ms-2",
712
- children: [/* @__PURE__ */ V(N.Label, {
1186
+ children: [/* @__PURE__ */ K(B.Label, {
713
1187
  className: "m-0 me-2 text-nowrap",
714
1188
  children: t("Page Size:")
715
- }), /* @__PURE__ */ V(N.Select, {
1189
+ }), /* @__PURE__ */ K(B.Select, {
716
1190
  className: "w-auto",
717
1191
  value: e.atoms.pagination.get().pageSize,
718
1192
  onChange: (t) => e.setPageSize(Number(t.target.value)),
@@ -722,7 +1196,7 @@ function rt({ table: e }) {
722
1196
  60,
723
1197
  100,
724
1198
  1e6
725
- ].map((e) => /* @__PURE__ */ V("option", {
1199
+ ].map((e) => /* @__PURE__ */ K("option", {
726
1200
  value: e,
727
1201
  children: e === 1e6 ? t("Show All") : t("Show {{pageSize}}", { pageSize: e })
728
1202
  }, e))
@@ -730,41 +1204,41 @@ function rt({ table: e }) {
730
1204
  });
731
1205
  }
732
1206
  // src/Components/Base/BaseTable/BaseTableToolbar.tsx
733
- var it = ({ table: e }) => /* @__PURE__ */ H(k, { children: [/* @__PURE__ */ H(O, {
1207
+ var bt = ({ table: e }) => /* @__PURE__ */ q(L, { children: [/* @__PURE__ */ q(I, {
734
1208
  className: "z-0",
735
1209
  children: [
736
- /* @__PURE__ */ V(D, {
1210
+ /* @__PURE__ */ K(F, {
737
1211
  variant: "success",
738
1212
  onClick: () => e.setPageIndex(0),
739
1213
  disabled: !e.getCanPreviousPage(),
740
- children: /* @__PURE__ */ V("i", { className: "fas fa-angle-double-left" })
1214
+ children: /* @__PURE__ */ K("i", { className: "fas fa-angle-double-left" })
741
1215
  }),
742
- /* @__PURE__ */ V(D, {
1216
+ /* @__PURE__ */ K(F, {
743
1217
  variant: "success",
744
1218
  onClick: () => e.previousPage(),
745
1219
  disabled: !e.getCanPreviousPage(),
746
- children: /* @__PURE__ */ V("i", { className: "fas fa-caret-left" })
1220
+ children: /* @__PURE__ */ K("i", { className: "fas fa-caret-left" })
747
1221
  }),
748
- /* @__PURE__ */ V(D, {
1222
+ /* @__PURE__ */ K(F, {
749
1223
  variant: "success",
750
1224
  onClick: () => e.nextPage(),
751
1225
  disabled: !e.getCanNextPage(),
752
- children: /* @__PURE__ */ V("i", { className: "fas fa-caret-right" })
1226
+ children: /* @__PURE__ */ K("i", { className: "fas fa-caret-right" })
753
1227
  }),
754
- /* @__PURE__ */ V(D, {
1228
+ /* @__PURE__ */ K(F, {
755
1229
  variant: "success",
756
1230
  onClick: () => e.setPageIndex(e.getPageCount() - 1),
757
1231
  disabled: !e.getCanNextPage(),
758
- children: /* @__PURE__ */ V("i", { className: "fas fa-angle-double-right" })
1232
+ children: /* @__PURE__ */ K("i", { className: "fas fa-angle-double-right" })
759
1233
  })
760
1234
  ]
761
- }), /* @__PURE__ */ V(rt, { table: e })] }), at = {
1235
+ }), /* @__PURE__ */ K(yt, { table: e })] }), xt = {
762
1236
  small: "sm",
763
1237
  medium: void 0,
764
1238
  large: "lg",
765
1239
  extraLarge: "xl"
766
- }, Z = {
767
- size: at.large,
1240
+ }, $ = {
1241
+ size: xt.large,
768
1242
  centered: !0,
769
1243
  scrollable: !1,
770
1244
  backdrop: !0,
@@ -774,8 +1248,8 @@ var it = ({ table: e }) => /* @__PURE__ */ H(k, { children: [/* @__PURE__ */ H(O
774
1248
  confirmVariant: "success"
775
1249
  };
776
1250
  // src/Components/Base/BaseModal/BaseModal.tsx
777
- function ot({ show: e, onHide: t, onEnter: n, onShow: r, onExited: i, title: a, footer: o, children: s, size: c = Z.size, centered: l = Z.centered, scrollable: u = Z.scrollable, backdrop: d = Z.backdrop, restoreFocus: f = Z.restoreFocus, closeButton: p = Z.closeButton, className: m, bodyClassName: h, titleClassName: g }) {
778
- let [_, v] = W({
1251
+ function St({ show: e, onHide: t, onEnter: n, onShow: r, onExited: i, title: a, footer: o, children: s, size: c = $.size, centered: l = $.centered, scrollable: u = $.scrollable, backdrop: d = $.backdrop, restoreFocus: f = $.restoreFocus, closeButton: p = $.closeButton, className: m, bodyClassName: h, titleClassName: g }) {
1252
+ let [_, v] = Y({
779
1253
  title: a,
780
1254
  children: s,
781
1255
  footer: o
@@ -786,7 +1260,7 @@ function ot({ show: e, onHide: t, onEnter: n, onShow: r, onExited: i, title: a,
786
1260
  footer: o === void 0 ? _.footer : o
787
1261
  });
788
1262
  let y = e ? a : _.title ?? a, b = e ? s : _.children ?? s, x = e ? o : _.footer ?? o;
789
- return /* @__PURE__ */ H(P, {
1263
+ return /* @__PURE__ */ q(H, {
790
1264
  show: e,
791
1265
  size: c,
792
1266
  onHide: t,
@@ -800,28 +1274,28 @@ function ot({ show: e, onHide: t, onEnter: n, onShow: r, onExited: i, title: a,
800
1274
  dialogClassName: m,
801
1275
  contentClassName: "aa-react",
802
1276
  children: [
803
- /* @__PURE__ */ V(P.Header, {
1277
+ /* @__PURE__ */ K(H.Header, {
804
1278
  closeButton: p,
805
- children: /* @__PURE__ */ V(P.Title, {
1279
+ children: /* @__PURE__ */ K(H.Title, {
806
1280
  className: g,
807
1281
  children: y
808
1282
  })
809
1283
  }),
810
- /* @__PURE__ */ V(P.Body, {
1284
+ /* @__PURE__ */ K(H.Body, {
811
1285
  className: h,
812
1286
  children: b
813
1287
  }),
814
- x !== null && /* @__PURE__ */ V(P.Footer, { children: x })
1288
+ x !== null && /* @__PURE__ */ K(H.Footer, { children: x })
815
1289
  ]
816
1290
  });
817
1291
  }
818
- function st({ show: e, onHide: t, title: n, children: r, footer: i, hideFooter: a = !1, closeText: o, closeVariant: s = Z.closeVariant, ...c }) {
819
- let { t: l } = z(K), u = /* @__PURE__ */ V(D, {
1292
+ function Ct({ show: e, onHide: t, title: n, children: r, footer: i, hideFooter: a = !1, closeText: o, closeVariant: s = $.closeVariant, ...c }) {
1293
+ let { t: l } = W(Q), u = /* @__PURE__ */ K(F, {
820
1294
  variant: s,
821
1295
  onClick: t,
822
1296
  children: o ?? l("Close")
823
1297
  });
824
- return /* @__PURE__ */ V(ot, {
1298
+ return /* @__PURE__ */ K(St, {
825
1299
  ...c,
826
1300
  show: e,
827
1301
  onHide: t,
@@ -830,77 +1304,81 @@ function st({ show: e, onHide: t, title: n, children: r, footer: i, hideFooter:
830
1304
  children: r
831
1305
  });
832
1306
  }
833
- function ct({ data: e, showModal: t, setShowModal: n, onApprove: r, isPending: i = !1, validate: a, initialFormData: o, title: s, confirmText: c, confirmVariant: l, closeText: u, closeVariant: d = Z.closeVariant, children: f, onEnter: p, onExited: m, ...h }) {
834
- let { t: g } = z(K), [_, v] = W(null), [y, b] = W(o ?? {}), [x, S] = W(!1), [C, ee] = W(e);
835
- t && e && e !== C && ee(e);
836
- let w = t ? e : e ?? C, T = () => {
837
- v(null), b(o ?? {}), S(!1);
838
- }, te = () => {
839
- n(!1);
1307
+ function wt({ data: e, showModal: t, setShowModal: n, onApprove: r, isPending: i = !1, validate: a, initialFormData: o, title: s, confirmText: c, confirmVariant: l, closeText: u, closeVariant: d = $.closeVariant, children: f, onEnter: p, onExited: m, ...h }) {
1308
+ let { t: g } = W(Q), [_, v] = Y(null), [y, b] = Y(o ?? {}), [x, ee] = Y(!1), [te, S] = Y(e);
1309
+ t && e && e !== te && S(e);
1310
+ let C = t ? e : e ?? te, w = () => {
1311
+ v(null), b(o ?? {}), ee(!1);
840
1312
  }, ne = () => {
841
- T(), p?.();
1313
+ n(!1);
1314
+ }, T = () => {
1315
+ w(), p?.();
842
1316
  }, re = () => {
843
- T(), m?.();
844
- }, ie = async () => {
845
- if (a && !a(y)) S(!0);
1317
+ w(), m?.();
1318
+ }, E = async () => {
1319
+ if (a && !a(y)) ee(!0);
846
1320
  else try {
847
1321
  await r({
848
- url: w.url,
1322
+ url: C.url,
849
1323
  formData: y
850
1324
  }), n(!1);
851
1325
  } catch (e) {
852
1326
  v(e instanceof Error ? e.message : "An unexpected error occurred.");
853
1327
  }
854
- }, ae = typeof f == "function" ? f({
1328
+ }, ie = typeof f == "function" ? f({
855
1329
  formData: y,
856
1330
  onChange: b
857
- }) : f, E = /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(D, {
858
- variant: l ?? w.color ?? Z.confirmVariant,
1331
+ }) : f, ae = /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(F, {
1332
+ variant: l ?? C.color ?? $.confirmVariant,
859
1333
  disabled: i,
860
- onClick: ie,
861
- children: i ? g("Loading…") : c || w.buttonText || g("Confirm")
862
- }), /* @__PURE__ */ V(D, {
1334
+ onClick: E,
1335
+ children: i ? g("Loading…") : c || C.buttonText || g("Confirm")
1336
+ }), /* @__PURE__ */ K(F, {
863
1337
  variant: d,
864
- onClick: te,
1338
+ onClick: ne,
865
1339
  children: u ?? g("Close")
866
1340
  })] });
867
- return /* @__PURE__ */ H(ot, {
1341
+ return /* @__PURE__ */ q(St, {
868
1342
  ...h,
869
1343
  show: t,
870
- onHide: te,
871
- onEnter: ne,
1344
+ onHide: ne,
1345
+ onEnter: T,
872
1346
  onExited: re,
873
- title: s ?? w.title,
874
- footer: E,
875
- children: [_ && /* @__PURE__ */ V(ue, {
1347
+ title: s ?? C.title,
1348
+ footer: ae,
1349
+ children: [_ && /* @__PURE__ */ K(me, {
876
1350
  variant: "danger",
877
1351
  onClose: () => v(null),
878
1352
  dismissible: !0,
879
1353
  children: _
880
- }), /* @__PURE__ */ V("div", {
1354
+ }), /* @__PURE__ */ K("div", {
881
1355
  className: x ? "was-validated" : "",
882
- children: ae
1356
+ children: ie
883
1357
  })]
884
1358
  });
885
1359
  }
886
- function lt(e) {
887
- return e.variant === "confirm" || "showModal" in e || "data" in e ? /* @__PURE__ */ V(ct, { ...e }) : /* @__PURE__ */ V(st, { ...e });
1360
+ function Tt(e) {
1361
+ return e.variant === "confirm" || "showModal" in e || "data" in e ? /* @__PURE__ */ K(wt, { ...e }) : /* @__PURE__ */ K(Ct, { ...e });
888
1362
  }
889
1363
  // src/Components/Base/BaseModal/BaseModalQuery.tsx
890
- function ut() {
1364
+ function Et() {
891
1365
  let t = e.get("csrftoken");
892
1366
  return t ? { "X-CSRFToken": t } : {};
893
1367
  }
894
- function dt(e) {
895
- let t = we();
896
- return Se({
1368
+ function Dt(e) {
1369
+ let t = e?.message;
1370
+ return X(e, typeof t == "string" && t.trim() !== "" ? t : "Unknown error");
1371
+ }
1372
+ function Ot(e) {
1373
+ let t = Ne();
1374
+ return je({
897
1375
  mutationFn: async (e) => {
898
1376
  let t = await fetch(e, {
899
1377
  method: "POST",
900
1378
  credentials: "same-origin",
901
- headers: ut()
1379
+ headers: Et()
902
1380
  }), n = await t.json();
903
- if (!t.ok || n.success !== !0) throw Error(n.message ?? "Unknown error");
1381
+ if (!t.ok || n.success !== !0) throw Error(Dt(n));
904
1382
  return n;
905
1383
  },
906
1384
  onSuccess: async () => {
@@ -914,9 +1392,9 @@ function dt(e) {
914
1392
  }
915
1393
  });
916
1394
  }
917
- function ft(e) {
918
- let t = we();
919
- return Se({
1395
+ function kt(e) {
1396
+ let t = Ne();
1397
+ return je({
920
1398
  mutationFn: async ({ url: e, formData: t = {} }) => {
921
1399
  let n = new URLSearchParams();
922
1400
  for (let [e, r] of Object.entries(t)) typeof r == "boolean" ? r && n.append(e, "on") : n.append(e, r);
@@ -924,12 +1402,12 @@ function ft(e) {
924
1402
  method: "POST",
925
1403
  credentials: "same-origin",
926
1404
  headers: {
927
- ...ut(),
1405
+ ...Et(),
928
1406
  "Content-Type": "application/x-www-form-urlencoded"
929
1407
  },
930
1408
  body: n.toString()
931
1409
  }), i = await r.json();
932
- if (!r.ok || i.success !== !0) throw Error(i.message ?? "Unknown error");
1410
+ if (!r.ok || i.success !== !0) throw Error(Dt(i));
933
1411
  return i;
934
1412
  },
935
1413
  onSuccess: async () => {
@@ -944,16 +1422,16 @@ function ft(e) {
944
1422
  });
945
1423
  }
946
1424
  // src/Components/Base/BaseModal/useModalState.ts
947
- function pt(e = "modal", t = "id") {
948
- let [n, r] = Te(e, {
1425
+ function At(e = "modal", t = "id") {
1426
+ let [n, r] = Pe(e, {
949
1427
  clearOnDefault: !0,
950
1428
  defaultValue: ""
951
- }), [i, a] = Te(t, {
1429
+ }), [i, a] = Pe(t, {
952
1430
  clearOnDefault: !0,
953
1431
  defaultValue: ""
954
- }), o = U((e, t) => {
1432
+ }), o = J((e, t) => {
955
1433
  r(e), t !== void 0 && a(t);
956
- }, [r, a]), s = U(() => {
1434
+ }, [r, a]), s = J(() => {
957
1435
  r(""), a("");
958
1436
  }, [r, a]);
959
1437
  return {
@@ -965,17 +1443,17 @@ function pt(e = "modal", t = "id") {
965
1443
  };
966
1444
  }
967
1445
  // src/Components/Base/Loader/ErrorLoader.tsx
968
- var mt = ({ message: e, title: t, className: n = "", iconClassName: r = "" } = {}) => /* @__PURE__ */ H("div", {
1446
+ var jt = ({ message: e, title: t, className: n = "", iconClassName: r = "" } = {}) => /* @__PURE__ */ q("div", {
969
1447
  className: `d-flex flex-column align-items-center justify-content-center ${n}`,
970
1448
  children: [
971
- /* @__PURE__ */ V("span", {
1449
+ /* @__PURE__ */ K("span", {
972
1450
  className: "aa-shake d-inline-block",
973
- children: /* @__PURE__ */ V("i", { className: `fas fa-exclamation-triangle text-danger display-1 ${r}` })
1451
+ children: /* @__PURE__ */ K("i", { className: `fas fa-exclamation-triangle text-danger display-1 ${r}` })
974
1452
  }),
975
- t && /* @__PURE__ */ V("h3", { children: t }),
976
- e && /* @__PURE__ */ V("p", { children: e })
1453
+ t && /* @__PURE__ */ K("h3", { children: t }),
1454
+ e && /* @__PURE__ */ K("p", { children: e })
977
1455
  ]
978
- }), ht = class extends he {
1456
+ }), Mt = class extends we {
979
1457
  constructor(e) {
980
1458
  super(e), this.state = {
981
1459
  hasError: !1,
@@ -994,15 +1472,15 @@ var mt = ({ message: e, title: t, className: n = "", iconClassName: r = "" } = {
994
1472
  render() {
995
1473
  if (this.state.hasError) {
996
1474
  let { t: e, traceClassName: t = "" } = this.props;
997
- return /* @__PURE__ */ H(B, { children: [
998
- /* @__PURE__ */ V(mt, {
1475
+ return /* @__PURE__ */ q(G, { children: [
1476
+ /* @__PURE__ */ K(jt, {
999
1477
  title: this.state.title,
1000
1478
  message: this.state.message
1001
1479
  }),
1002
- /* @__PURE__ */ V("h1", { children: e("Something went wrong.") }),
1003
- /* @__PURE__ */ V("div", {
1480
+ /* @__PURE__ */ K("h1", { children: e("Something went wrong.") }),
1481
+ /* @__PURE__ */ K("div", {
1004
1482
  className: "d-flex justify-content-center",
1005
- children: /* @__PURE__ */ V("pre", {
1483
+ children: /* @__PURE__ */ K("pre", {
1006
1484
  className: `border mw-100 overflow-auto p-2 ${t}`,
1007
1485
  "data-testid": "error-boundary-trace",
1008
1486
  children: this.state.trace
@@ -1012,18 +1490,18 @@ var mt = ({ message: e, title: t, className: n = "", iconClassName: r = "" } = {
1012
1490
  }
1013
1491
  return this.props.children;
1014
1492
  }
1015
- }, gt = me(K)(ht);
1493
+ }, Nt = Ce(Q)(Mt);
1016
1494
  // src/Components/Base/BaseHeader.tsx
1017
- function _t({ name: e = "Header", children: t }) {
1018
- return /* @__PURE__ */ V(A, {
1495
+ function Pt({ name: e = "Header", children: t }) {
1496
+ return /* @__PURE__ */ K(R, {
1019
1497
  className: "bg-dark border-secondary mb-3 shadow-sm",
1020
- children: /* @__PURE__ */ H(A.Body, {
1498
+ children: /* @__PURE__ */ q(R.Body, {
1021
1499
  className: "d-flex flex-wrap align-items-center justify-content-between p-3",
1022
- children: [/* @__PURE__ */ V("h3", {
1500
+ children: [/* @__PURE__ */ K("h3", {
1023
1501
  id: "section-heading",
1024
1502
  className: "h4 mb-0 fw-bold",
1025
1503
  children: e
1026
- }), t && /* @__PURE__ */ V("div", {
1504
+ }), t && /* @__PURE__ */ K("div", {
1027
1505
  className: "d-flex flex-wrap align-items-center gap-2",
1028
1506
  children: t
1029
1507
  })]
@@ -1031,16 +1509,16 @@ function _t({ name: e = "Header", children: t }) {
1031
1509
  });
1032
1510
  }
1033
1511
  // src/Components/Base/FilterButtonGroup/FilterButtonGroup.tsx
1034
- function vt({ options: e, value: t, onChange: n, ariaLabel: r }) {
1035
- return /* @__PURE__ */ V("div", {
1512
+ function Ft({ options: e, value: t, onChange: n, ariaLabel: r }) {
1513
+ return /* @__PURE__ */ K("div", {
1036
1514
  className: "mw-100 overflow-x-auto",
1037
- children: /* @__PURE__ */ V(O, {
1515
+ children: /* @__PURE__ */ K(I, {
1038
1516
  size: "sm",
1039
1517
  "aria-label": r,
1040
1518
  className: "border border-black",
1041
1519
  children: e.map((e) => {
1042
1520
  let r = t === e.value;
1043
- return /* @__PURE__ */ H(D, {
1521
+ return /* @__PURE__ */ q(F, {
1044
1522
  variant: r ? "primary" : "secondary",
1045
1523
  "aria-pressed": r,
1046
1524
  className: "d-inline-flex align-items-center gap-1",
@@ -1048,7 +1526,7 @@ function vt({ options: e, value: t, onChange: n, ariaLabel: r }) {
1048
1526
  children: [
1049
1527
  e.icon,
1050
1528
  e.label,
1051
- e.count !== void 0 && /* @__PURE__ */ H(B, { children: [" ", /* @__PURE__ */ V(de, {
1529
+ e.count !== void 0 && /* @__PURE__ */ q(G, { children: [" ", /* @__PURE__ */ K(he, {
1052
1530
  bg: "secondary",
1053
1531
  className: "ms-1",
1054
1532
  children: e.count
@@ -1059,10 +1537,615 @@ function vt({ options: e, value: t, onChange: n, ariaLabel: r }) {
1059
1537
  })
1060
1538
  });
1061
1539
  }
1540
+ // src/Components/Base/OwnerPortrait/OwnerPortrait.tsx
1541
+ var It = {
1542
+ corporation: T,
1543
+ alliance: A
1544
+ }, Lt = {
1545
+ sm: 16,
1546
+ md: 20,
1547
+ lg: 24
1548
+ }, Rt = ({ src: e, alt: t = "", type: n = "character", size: r = "lg", shape: i = "circle", bordered: a = !1, className: o = "" }) => {
1549
+ let s = [
1550
+ `aa-owner-portrait-${r}`,
1551
+ i === "circle" ? "rounded-circle" : "rounded",
1552
+ a ? "border border-2 border-secondary" : "",
1553
+ "flex-shrink-0",
1554
+ o
1555
+ ].filter(Boolean).join(" ");
1556
+ if (e) return /* @__PURE__ */ K("img", {
1557
+ src: e,
1558
+ alt: t,
1559
+ className: `${s} object-fit-cover`,
1560
+ loading: "lazy"
1561
+ });
1562
+ let c = It[n] ?? N;
1563
+ return /* @__PURE__ */ K("div", {
1564
+ className: `${s} bg-secondary text-light d-flex align-items-center justify-content-center`,
1565
+ role: "img",
1566
+ "aria-label": t || void 0,
1567
+ "aria-hidden": !t || void 0,
1568
+ children: /* @__PURE__ */ K(c, { size: Lt[r] })
1569
+ });
1570
+ };
1571
+ // src/Components/Base/OwnerSettings/BaseOwnerCard.tsx
1572
+ function zt({ owner: e, isUpdating: t = !1, cooldown: n = 0, onTriggerUpdate: r, onDeleteClick: i, className: a = "", renderCustomContent: o, renderActions: s }) {
1573
+ let { t: c } = W(Q), l = (e.status || "incomplete").toLowerCase(), u = l === "error", d = l === "token_error", f = u ? "aa-owner-card-error" : d ? "aa-owner-card-token-error" : "", p = () => {
1574
+ let e = "aa-owner-status-incomplete", t = c("Incomplete"), n = w;
1575
+ return l === "ok" ? (e = "aa-owner-status-ok", t = c("OK"), n = re) : u ? (e = "aa-owner-status-error", t = c("Error"), n = w) : d ? (e = "aa-owner-status-token-error", t = c("Token Error"), n = C) : l === "disabled" && (e = "aa-owner-status-disabled", t = c("Disabled"), n = C), /* @__PURE__ */ q("span", {
1576
+ className: `aa-owner-status-badge d-inline-flex align-items-center gap-1 px-2 py-1 fw-semibold text-capitalize ${e}`,
1577
+ children: [
1578
+ (u || d) && /* @__PURE__ */ q("span", {
1579
+ className: "aa-pending-dot-container me-1",
1580
+ "aria-hidden": "true",
1581
+ children: [/* @__PURE__ */ K("span", { className: d ? "aa-danger-dot-ping" : "aa-pending-dot-ping" }), /* @__PURE__ */ K("span", { className: d ? "aa-danger-dot-core" : "aa-pending-dot-core" })]
1582
+ }),
1583
+ /* @__PURE__ */ K(n, {
1584
+ size: 12,
1585
+ "aria-hidden": "true"
1586
+ }),
1587
+ /* @__PURE__ */ K("span", { children: t })
1588
+ ]
1589
+ });
1590
+ }, m = (e.owner_type ?? "").toLowerCase(), h = m === "corporation" ? T : m === "alliance" ? A : N, g = c(m === "corporation" ? "Corporation" : m === "alliance" ? "Alliance" : "Character"), _ = m === "corporation" ? "bg-primary text-white border-black" : m === "alliance" ? "bg-success text-white border-black" : "bg-info text-white border-black";
1591
+ return /* @__PURE__ */ q("article", {
1592
+ className: `aa-owner-card d-flex flex-column gap-3 p-3 ${f} ${a}`.trim(),
1593
+ children: [
1594
+ /* @__PURE__ */ q("div", {
1595
+ className: "d-flex align-items-center gap-3",
1596
+ children: [/* @__PURE__ */ K(Rt, {
1597
+ src: e.avatar_url,
1598
+ alt: e.name,
1599
+ type: m,
1600
+ shape: m === "corporation" ? "rounded" : "circle",
1601
+ bordered: !0
1602
+ }), /* @__PURE__ */ q("div", {
1603
+ className: "aa-owner-info flex-grow-1",
1604
+ children: [/* @__PURE__ */ q("div", {
1605
+ className: "d-flex align-items-center justify-content-between gap-2",
1606
+ children: [/* @__PURE__ */ K("h3", {
1607
+ className: "aa-owner-name m-0 fs-6 fw-semibold text-truncate",
1608
+ title: e.name,
1609
+ children: e.name
1610
+ }), /* @__PURE__ */ q("span", {
1611
+ className: `badge border d-inline-flex align-items-center gap-1 flex-shrink-0 ${_}`,
1612
+ children: [/* @__PURE__ */ K(h, { size: 11 }), g]
1613
+ })]
1614
+ }), e.subtitle && /* @__PURE__ */ K("p", {
1615
+ className: "aa-owner-subtitle m-0 text-truncate",
1616
+ children: e.subtitle
1617
+ })]
1618
+ })]
1619
+ }),
1620
+ e.error_message && /* @__PURE__ */ K("div", {
1621
+ className: "aa-owner-error-banner px-2 py-1 text-break",
1622
+ role: "alert",
1623
+ children: e.error_message
1624
+ }),
1625
+ e.sections && e.sections.length > 0 && /* @__PURE__ */ K("div", {
1626
+ className: "aa-owner-sections d-flex flex-column gap-1 p-2",
1627
+ children: e.sections.map((e) => {
1628
+ let t = "aa-owner-dot-muted";
1629
+ return e.is_success === !0 && (t = "aa-owner-dot-ok"), e.is_success === !1 && (t = "aa-owner-dot-warning"), e.has_token_error && (t = "aa-owner-dot-error"), /* @__PURE__ */ q("div", {
1630
+ className: "aa-owner-section-item d-flex align-items-center justify-content-between",
1631
+ children: [/* @__PURE__ */ q("span", {
1632
+ className: "d-inline-flex align-items-center gap-2",
1633
+ children: [/* @__PURE__ */ K("span", {
1634
+ className: `aa-owner-section-dot flex-shrink-0 rounded-circle ${t}`,
1635
+ "aria-hidden": "true"
1636
+ }), /* @__PURE__ */ K("span", { children: e.section_name })]
1637
+ }), /* @__PURE__ */ K("span", { children: e.has_token_error ? c("Token Error") : e.is_success === !0 ? c("OK") : e.is_success === !1 ? c("Failed") : c("Pending") })]
1638
+ }, e.section);
1639
+ })
1640
+ }),
1641
+ o?.(e),
1642
+ /* @__PURE__ */ q("div", {
1643
+ className: "aa-owner-badge-row d-flex align-items-center justify-content-between gap-2 mt-auto pt-2",
1644
+ children: [p(), /* @__PURE__ */ q("span", {
1645
+ className: "aa-owner-last-sync d-inline-flex align-items-center gap-1",
1646
+ title: e.last_sync ? `${c("Last sync")}: ${e.last_sync}` : void 0,
1647
+ children: [/* @__PURE__ */ K(le, {
1648
+ size: 12,
1649
+ "aria-hidden": "true"
1650
+ }), /* @__PURE__ */ K("span", { children: e.last_sync ? e.last_sync.slice(5) : c("Never") })]
1651
+ })]
1652
+ }),
1653
+ (r || i || s) && /* @__PURE__ */ q("div", {
1654
+ className: "d-flex align-items-center justify-content-between gap-2 mt-2 pt-2 border-top border-secondary flex-wrap",
1655
+ children: [/* @__PURE__ */ K("div", { children: s?.(e) }), /* @__PURE__ */ q("div", {
1656
+ className: "d-flex align-items-center gap-2 ms-auto",
1657
+ children: [r && /* @__PURE__ */ q(F, {
1658
+ variant: "secondary",
1659
+ size: "sm",
1660
+ className: "d-flex align-items-center gap-1",
1661
+ disabled: t || n > 0,
1662
+ onClick: () => r(e.id),
1663
+ "aria-label": c("Update Owner"),
1664
+ children: [t ? /* @__PURE__ */ K("span", { className: "spinner-border spinner-border-sm" }) : /* @__PURE__ */ K(ue, { size: 13 }), /* @__PURE__ */ K("span", { children: n > 0 ? `${n}s` : c("Update") })]
1665
+ }), i && /* @__PURE__ */ q(F, {
1666
+ variant: "danger",
1667
+ size: "sm",
1668
+ className: "d-flex align-items-center gap-1",
1669
+ onClick: () => i(e),
1670
+ "aria-label": c("Delete Owner"),
1671
+ children: [/* @__PURE__ */ K(de, { size: 13 }), /* @__PURE__ */ K("span", { children: c("Delete") })]
1672
+ })]
1673
+ })]
1674
+ })
1675
+ ]
1676
+ });
1677
+ }
1678
+ // src/Components/Base/OwnerSettings/MissingOwnerCard.tsx
1679
+ function Bt({ missing: e, appName: t = "Alliance Auth", actionUrl: n, actionLabel: r }) {
1680
+ let { t: i } = W(Q);
1681
+ return /* @__PURE__ */ q("article", {
1682
+ className: "aa-owner-card aa-owner-card-missing d-flex flex-column gap-3 p-3",
1683
+ children: [
1684
+ /* @__PURE__ */ q("div", {
1685
+ className: "d-flex align-items-center gap-3",
1686
+ children: [/* @__PURE__ */ K(Rt, {
1687
+ src: e.avatar_url,
1688
+ alt: e.name,
1689
+ type: e.owner_type,
1690
+ shape: e.owner_type === "corporation" ? "rounded" : "circle",
1691
+ bordered: !0
1692
+ }), /* @__PURE__ */ q("div", {
1693
+ className: "aa-owner-info flex-grow-1",
1694
+ children: [/* @__PURE__ */ q("div", {
1695
+ className: "d-flex align-items-center justify-content-between gap-2",
1696
+ children: [/* @__PURE__ */ K("h3", {
1697
+ className: "aa-owner-name m-0 fs-6 fw-semibold text-truncate",
1698
+ children: e.name
1699
+ }), /* @__PURE__ */ q("span", {
1700
+ className: "aa-owner-status-badge aa-owner-status-missing d-inline-flex align-items-center gap-1 px-2 py-1 fw-semibold text-capitalize",
1701
+ children: [/* @__PURE__ */ K(C, {
1702
+ size: 11,
1703
+ "aria-hidden": "true"
1704
+ }), /* @__PURE__ */ K("span", { children: i("Not Registered") })]
1705
+ })]
1706
+ }), e.subtitle && /* @__PURE__ */ K("p", {
1707
+ className: "aa-owner-subtitle m-0 text-truncate",
1708
+ children: e.subtitle
1709
+ })]
1710
+ })]
1711
+ }),
1712
+ /* @__PURE__ */ K("p", {
1713
+ className: "small text-muted mb-0",
1714
+ children: i("{{name}} is not registered in {{app}}.", {
1715
+ name: e.name,
1716
+ app: t
1717
+ })
1718
+ }),
1719
+ n && /* @__PURE__ */ K("div", {
1720
+ className: "d-flex justify-content-end mt-auto pt-2 border-top border-secondary",
1721
+ children: /* @__PURE__ */ q(F, {
1722
+ href: n,
1723
+ variant: "primary",
1724
+ size: "sm",
1725
+ className: "d-flex align-items-center gap-1",
1726
+ children: [/* @__PURE__ */ K(O, { size: 13 }), /* @__PURE__ */ K("span", { children: r ?? i("Add to {{app}}", { app: t }) })]
1727
+ })
1728
+ })
1729
+ ]
1730
+ });
1731
+ }
1732
+ // src/Components/Base/OwnerSettings/OwnerFilterBar.tsx
1733
+ function Vt({ search: e, onSearchChange: t, typeFilter: n, onTypeChange: r, counts: i, searchPlaceholder: a }) {
1734
+ let { t: o } = W(Q), s = [
1735
+ {
1736
+ value: "all",
1737
+ label: o("All"),
1738
+ count: i.all
1739
+ },
1740
+ {
1741
+ value: "character",
1742
+ label: o("Characters"),
1743
+ count: i.character
1744
+ },
1745
+ {
1746
+ value: "corporation",
1747
+ label: o("Corporations"),
1748
+ count: i.corporation
1749
+ },
1750
+ {
1751
+ value: "alliance",
1752
+ label: o("Alliances"),
1753
+ count: i.alliance
1754
+ }
1755
+ ].filter((e) => e.value === "all" || (e.count ?? 0) > 0 || e.value === n);
1756
+ return /* @__PURE__ */ q("div", {
1757
+ className: "d-flex align-items-center justify-content-between flex-wrap gap-3 mb-3",
1758
+ children: [/* @__PURE__ */ K(Ft, {
1759
+ options: s,
1760
+ value: n,
1761
+ onChange: r,
1762
+ ariaLabel: o("Filter by owner type")
1763
+ }), /* @__PURE__ */ q(V, {
1764
+ size: "sm",
1765
+ className: "aa-owner-filter-search",
1766
+ children: [/* @__PURE__ */ K(V.Text, { children: /* @__PURE__ */ K(k, {
1767
+ size: 14,
1768
+ "aria-hidden": "true"
1769
+ }) }), /* @__PURE__ */ K(B.Control, {
1770
+ type: "search",
1771
+ value: e,
1772
+ placeholder: a ?? o("Search owners…"),
1773
+ "aria-label": o("Search owners"),
1774
+ onChange: (e) => t(e.target.value)
1775
+ })]
1776
+ })]
1777
+ });
1778
+ }
1779
+ // src/Components/Base/OwnerSettings/BaseOwnerSettingsSection.tsx
1780
+ var Ht = (e) => e.owner_type ?? "character";
1781
+ function Ut({ title: e, description: t, icon: n, owners: r, missingOwners: i, isLoading: a = !1, isError: o = !1, errorMessage: s, emptyMessage: c, appName: l = "Alliance Auth", className: u = "", bodyClassName: d = "bg-dark text-light", enableFilters: f = !1, searchPlaceholder: p, onUpdateAll: m, isUpdatingAll: h = !1, globalCooldown: g = 0, feedbackMessage: _, onDismissFeedback: v, onTriggerSingleUpdate: y, isUpdatable: b, isDeletable: x, updatingOwnerId: ee = null, ownerCooldowns: te = {}, onDeleteOwner: S, isDeleting: C = !1, deleteModalTitle: ne, deleteModalDescription: T, deleteModalBodyClassName: re, cardClassName: E, renderCustomCardContent: ie, renderCardActions: ae, missingSectionTitle: oe, missingSectionDescription: se, missingActionUrl: ce, missingActionLabel: le }) {
1782
+ let { t: D } = W(Q), [O, k] = Y(null), [A, j] = Y(""), [M, N] = Y("all"), P = (r?.length ?? 0) > 0, he = (i?.length ?? 0) > 0, I = f ? A.trim().toLowerCase() : "", L = f ? M : "all", ge = I !== "" || L !== "all", z = Oe(() => {
1783
+ let e = {
1784
+ all: 0,
1785
+ character: 0,
1786
+ corporation: 0,
1787
+ alliance: 0
1788
+ }, t = (t) => {
1789
+ e.all += 1, t && t !== "all" && t in e && (e[t] += 1);
1790
+ };
1791
+ for (let e of r ?? []) t(e.owner_type);
1792
+ for (let e of i ?? []) t(Ht(e));
1793
+ return e;
1794
+ }, [r, i]), B = Oe(() => (r ?? []).filter((e) => (L === "all" || e.owner_type === L) && (!I || e.name.toLowerCase().includes(I) || (e.subtitle ?? "").toLowerCase().includes(I))), [
1795
+ r,
1796
+ L,
1797
+ I
1798
+ ]), V = Oe(() => (i ?? []).filter((e) => (L === "all" || Ht(e) === L) && (!I || e.name.toLowerCase().includes(I) || (e.subtitle ?? "").toLowerCase().includes(I))), [
1799
+ i,
1800
+ L,
1801
+ I
1802
+ ]), H = !a && !o, U = B.length > 0 || V.length > 0;
1803
+ return /* @__PURE__ */ K(R, {
1804
+ className: `mt-4 border-0 ${u}`.trim(),
1805
+ children: /* @__PURE__ */ q(R.Body, {
1806
+ className: d,
1807
+ children: [
1808
+ /* @__PURE__ */ q(R.Header, {
1809
+ className: "mb-3 bg-secondary d-flex justify-content-between align-items-center flex-wrap gap-2 rounded",
1810
+ children: [/* @__PURE__ */ q("div", { children: [/* @__PURE__ */ q("div", {
1811
+ className: "aa-owner-section-title-wrap d-flex align-items-center gap-2",
1812
+ children: [
1813
+ n ?? /* @__PURE__ */ K(pe, {
1814
+ size: 20,
1815
+ "aria-hidden": "true"
1816
+ }),
1817
+ /* @__PURE__ */ K("h2", {
1818
+ className: "aa-owner-section-title m-0 fs-5 fw-bold",
1819
+ children: e ?? D("Owner Status")
1820
+ }),
1821
+ r && /* @__PURE__ */ q("span", {
1822
+ className: "aa-owner-section-count small",
1823
+ children: [
1824
+ "(",
1825
+ ge ? `${B.length} / ${r.length}` : r.length,
1826
+ ")"
1827
+ ]
1828
+ })
1829
+ ]
1830
+ }), /* @__PURE__ */ K("p", {
1831
+ className: "aa-owner-section-description mt-1 mb-0 small w-100 text-light",
1832
+ children: t ?? D("ESI synchronization status of your linked owners.")
1833
+ })] }), m && P && /* @__PURE__ */ q(F, {
1834
+ variant: "secondary",
1835
+ size: "sm",
1836
+ className: "d-flex align-items-center gap-1",
1837
+ disabled: h || g > 0,
1838
+ onClick: m,
1839
+ children: [h ? /* @__PURE__ */ K("span", { className: "spinner-border spinner-border-sm" }) : /* @__PURE__ */ K(ue, { size: 14 }), /* @__PURE__ */ K("span", { children: g > 0 ? D("Update All ({{seconds}}s)", { seconds: g }) : D("Update All") })]
1840
+ })]
1841
+ }),
1842
+ _ && /* @__PURE__ */ K(me, {
1843
+ variant: _.variant,
1844
+ className: "py-2 mb-3",
1845
+ dismissible: !!v,
1846
+ onClose: v,
1847
+ children: _.text
1848
+ }),
1849
+ f && H && (P || he) && /* @__PURE__ */ K(Vt, {
1850
+ search: A,
1851
+ onSearchChange: j,
1852
+ typeFilter: M,
1853
+ onTypeChange: N,
1854
+ counts: z,
1855
+ searchPlaceholder: p
1856
+ }),
1857
+ a && /* @__PURE__ */ q("div", {
1858
+ className: "aa-loader-container",
1859
+ children: [/* @__PURE__ */ K("span", { className: "spinner-border" }), /* @__PURE__ */ K("span", { children: D("Loading update statuses…") })]
1860
+ }),
1861
+ o && /* @__PURE__ */ K(R, {
1862
+ className: "bg-secondary border-0 shadow-sm",
1863
+ role: "alert",
1864
+ children: /* @__PURE__ */ K(R.Body, {
1865
+ className: "aa-owner-error",
1866
+ children: s ?? D("Failed to load update status.")
1867
+ })
1868
+ }),
1869
+ H && !P && !he && /* @__PURE__ */ K(R, {
1870
+ className: "bg-secondary text-light border-0 shadow-sm",
1871
+ children: /* @__PURE__ */ K(R.Body, {
1872
+ className: "aa-owner-empty py-4 px-3 text-center small",
1873
+ children: c ?? D("Nothing to show.")
1874
+ })
1875
+ }),
1876
+ H && (P || he) && !U && /* @__PURE__ */ K(R, {
1877
+ className: "bg-secondary text-light border-0 shadow-sm",
1878
+ children: /* @__PURE__ */ q(R.Body, {
1879
+ className: "aa-owner-empty py-4 px-3 text-center small",
1880
+ children: [/* @__PURE__ */ K("p", {
1881
+ className: "mb-2",
1882
+ children: D("No matching owners found.")
1883
+ }), /* @__PURE__ */ K(F, {
1884
+ variant: "outline-light",
1885
+ size: "sm",
1886
+ onClick: () => {
1887
+ j(""), N("all");
1888
+ },
1889
+ children: D("Reset filters")
1890
+ })]
1891
+ })
1892
+ }),
1893
+ H && B.length > 0 && /* @__PURE__ */ K("div", {
1894
+ className: "aa-owner-grid d-grid gap-3",
1895
+ children: B.map((e) => /* @__PURE__ */ K(zt, {
1896
+ owner: e,
1897
+ isUpdating: ee === e.id,
1898
+ cooldown: te[e.id] ?? 0,
1899
+ onTriggerUpdate: !b || b(e) ? y : void 0,
1900
+ onDeleteClick: S && (!x || x(e)) ? k : void 0,
1901
+ className: E,
1902
+ renderCustomContent: ie,
1903
+ renderActions: ae
1904
+ }, `${e.owner_type ?? "owner"}-${e.id}`))
1905
+ }),
1906
+ H && V.length > 0 && /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(R.Header, {
1907
+ className: "aa-owner-section-title-wrap mt-4 mb-2 rounded d-flex align-items-center gap-2",
1908
+ children: /* @__PURE__ */ q("div", { children: [/* @__PURE__ */ q("div", {
1909
+ className: "aa-owner-section-title-wrap d-flex align-items-center gap-2",
1910
+ children: [
1911
+ /* @__PURE__ */ K(fe, {
1912
+ size: 20,
1913
+ "aria-hidden": "true"
1914
+ }),
1915
+ /* @__PURE__ */ K("h2", {
1916
+ className: "aa-owner-section-title m-0 fs-5 fw-bold",
1917
+ children: oe ?? D("Missing in {{app}}", { app: l })
1918
+ }),
1919
+ /* @__PURE__ */ q("span", {
1920
+ className: "aa-owner-section-count small",
1921
+ children: [
1922
+ "(",
1923
+ V.length,
1924
+ ")"
1925
+ ]
1926
+ })
1927
+ ]
1928
+ }), /* @__PURE__ */ K("p", {
1929
+ className: "aa-owner-section-description mt-1 mb-0 small w-100 text-light",
1930
+ children: se ?? D("The following characters belong to you but are not registered.")
1931
+ })] })
1932
+ }), /* @__PURE__ */ K("div", {
1933
+ className: "aa-owner-grid d-grid gap-3",
1934
+ children: V.map((e) => /* @__PURE__ */ K(Bt, {
1935
+ missing: e,
1936
+ appName: l,
1937
+ actionUrl: ce,
1938
+ actionLabel: le
1939
+ }, `${Ht(e)}-${e.id}`))
1940
+ })] }),
1941
+ S && /* @__PURE__ */ K(Tt, {
1942
+ show: !!O,
1943
+ onHide: () => !C && k(null),
1944
+ centered: !0,
1945
+ bodyClassName: re,
1946
+ title: /* @__PURE__ */ q("div", {
1947
+ className: "d-flex align-items-center gap-2 text-danger",
1948
+ children: [/* @__PURE__ */ K(de, { size: 20 }), /* @__PURE__ */ K("span", { children: ne ?? D("Delete Owner") })]
1949
+ }),
1950
+ footer: /* @__PURE__ */ q("div", {
1951
+ className: "d-flex align-items-center justify-content-end gap-2 w-100",
1952
+ children: [/* @__PURE__ */ K(F, {
1953
+ variant: "secondary",
1954
+ onClick: () => k(null),
1955
+ disabled: C,
1956
+ children: D("Cancel")
1957
+ }), /* @__PURE__ */ q(F, {
1958
+ variant: "danger",
1959
+ onClick: async () => {
1960
+ O && S && (await S(O), k(null));
1961
+ },
1962
+ disabled: C,
1963
+ className: "d-flex align-items-center gap-1",
1964
+ children: [/* @__PURE__ */ K(de, { size: 14 }), /* @__PURE__ */ K("span", { children: D(C ? "Deleting…" : "Confirm Delete") })]
1965
+ })]
1966
+ }),
1967
+ children: /* @__PURE__ */ q("div", {
1968
+ className: "p-3 d-flex align-items-start gap-3",
1969
+ children: [/* @__PURE__ */ K(w, {
1970
+ className: "text-danger flex-shrink-0 mt-1",
1971
+ size: 24
1972
+ }), /* @__PURE__ */ q("div", { children: [/* @__PURE__ */ K("p", {
1973
+ className: "fw-semibold mb-1",
1974
+ children: D("Are you sure you want to delete owner '{{name}}'?", { name: O?.name })
1975
+ }), /* @__PURE__ */ K("div", {
1976
+ className: "small text-muted",
1977
+ children: O && T ? T(O) : D("This action cannot be undone.")
1978
+ })] })]
1979
+ })
1980
+ })
1981
+ ]
1982
+ })
1983
+ });
1984
+ }
1985
+ // src/Components/Base/OwnerSettings/UnregisteredModal.tsx
1986
+ function Wt({ show: e, onHide: t, title: n, description: r, items: i = [], isLoading: a = !1, isError: o = !1, errorMessage: s, emptyMessage: c, searchPlaceholder: l, searchLabel: u, noMatchMessage: d }) {
1987
+ let { t: f } = W(Q), [p, m] = Y(""), h = Oe(() => {
1988
+ let e = p.trim().toLowerCase();
1989
+ return e ? i.filter((t) => t.name.toLowerCase().includes(e) || (t.subtitle ?? "").toLowerCase().includes(e)) : i;
1990
+ }, [i, p]);
1991
+ return /* @__PURE__ */ q(Tt, {
1992
+ show: e,
1993
+ onHide: t,
1994
+ onExited: () => m(""),
1995
+ size: "lg",
1996
+ centered: !0,
1997
+ scrollable: !0,
1998
+ title: n,
1999
+ children: [
2000
+ r && /* @__PURE__ */ K("p", {
2001
+ className: "small text-muted",
2002
+ children: r
2003
+ }),
2004
+ a && /* @__PURE__ */ q("div", {
2005
+ className: "aa-loader-container",
2006
+ children: [/* @__PURE__ */ K("span", { className: "spinner-border" }), /* @__PURE__ */ K("span", { children: f("Loading…") })]
2007
+ }),
2008
+ o && /* @__PURE__ */ K("div", {
2009
+ className: "aa-owner-error-banner px-2 py-1 text-break",
2010
+ role: "alert",
2011
+ children: s ?? f("Failed to load data.")
2012
+ }),
2013
+ !a && !o && i.length === 0 && /* @__PURE__ */ K("div", {
2014
+ className: "aa-owner-empty py-4 px-3 text-center small",
2015
+ children: c ?? f("Nothing to show.")
2016
+ }),
2017
+ !a && !o && i.length > 0 && /* @__PURE__ */ q(G, { children: [
2018
+ /* @__PURE__ */ q(V, {
2019
+ size: "sm",
2020
+ className: "mb-3",
2021
+ children: [/* @__PURE__ */ K(V.Text, { children: /* @__PURE__ */ K(k, {
2022
+ size: 14,
2023
+ "aria-hidden": "true"
2024
+ }) }), /* @__PURE__ */ K(B.Control, {
2025
+ type: "search",
2026
+ value: p,
2027
+ placeholder: l ?? f("Search owners…"),
2028
+ "aria-label": u ?? f("Search owners"),
2029
+ onChange: (e) => m(e.target.value)
2030
+ })]
2031
+ }),
2032
+ /* @__PURE__ */ K("p", {
2033
+ className: "small text-muted mb-2",
2034
+ children: f("{{count}} unregistered", { count: h.length })
2035
+ }),
2036
+ h.length === 0 ? /* @__PURE__ */ K("div", {
2037
+ className: "aa-owner-empty py-4 px-3 text-center small",
2038
+ children: d ?? f("No matching owners found.")
2039
+ }) : /* @__PURE__ */ K("ul", {
2040
+ className: "list-unstyled d-flex flex-column gap-2 mb-0",
2041
+ children: h.map((e) => /* @__PURE__ */ q("li", {
2042
+ className: "d-flex align-items-center gap-3",
2043
+ children: [e.avatar_url && /* @__PURE__ */ K(Rt, {
2044
+ src: e.avatar_url,
2045
+ alt: e.name,
2046
+ type: e.owner_type,
2047
+ size: "sm",
2048
+ shape: e.owner_type === "corporation" ? "rounded" : "circle",
2049
+ bordered: !0
2050
+ }), /* @__PURE__ */ q("div", {
2051
+ className: "min-w-0",
2052
+ children: [/* @__PURE__ */ K("div", {
2053
+ className: "fw-semibold",
2054
+ children: e.name
2055
+ }), e.subtitle && /* @__PURE__ */ K("div", {
2056
+ className: "small text-muted",
2057
+ children: e.subtitle
2058
+ })]
2059
+ })]
2060
+ }, `${e.owner_type ?? "character"}-${e.id}`))
2061
+ })
2062
+ ] })
2063
+ ]
2064
+ });
2065
+ }
2066
+ // src/Utils/eveOnline.tsx
2067
+ function Gt(e, t = 512) {
2068
+ return `https://images.evetech.net/types/${e}/render?size=${t}`;
2069
+ }
2070
+ function Kt(e, t = 512) {
2071
+ return `https://images.evetech.net/characters/${e}/portrait?size=${t}`;
2072
+ }
2073
+ function qt(e, t = 128) {
2074
+ return `https://images.evetech.net/corporations/${e}/logo?size=${t}`;
2075
+ }
2076
+ function Jt(e, t = 128) {
2077
+ return `https://images.evetech.net/alliances/${e}/logo?size=${t}`;
2078
+ }
2079
+ function Yt(e, t = 32) {
2080
+ return `https://images.evetech.net/types/${e}/icon?size=${t}`;
2081
+ }
2082
+ var Xt = (e) => e >= .5 ? "aa-badge-hisec" : e > 0 ? "aa-badge-lowsec" : "aa-badge-nullsec", Zt = (e = /* @__PURE__ */ new Date()) => {
2083
+ let t = (e) => String(e).padStart(2, "0");
2084
+ return `${t(e.getUTCHours())}:${t(e.getUTCMinutes())}:${t(e.getUTCSeconds())} EVE`;
2085
+ };
2086
+ function Qt({ id: e, name: t, size: n = 12, className: r = "", externalLink: i = !1 }) {
2087
+ let a = `https://zkillboard.com/kill/${e}/`;
2088
+ return ot(t, /* @__PURE__ */ q("a", {
2089
+ href: a,
2090
+ target: "_blank",
2091
+ rel: "noopener noreferrer",
2092
+ className: r,
2093
+ children: [t, i && /* @__PURE__ */ K(D, { size: n })]
2094
+ }));
2095
+ }
2096
+ function $t(e, t = 32) {
2097
+ return /* @__PURE__ */ K("img", {
2098
+ src: Kt(e, t),
2099
+ className: "rounded"
2100
+ });
2101
+ }
2102
+ // src/Components/Base/Badges/liveStatusHelper.ts
2103
+ function en(e) {
2104
+ return e ? Zt(new Date(e)) : "";
2105
+ }
2106
+ function tn(e, t = !1, n = 2e3) {
2107
+ let [r, i] = Y(!1);
2108
+ return De(() => {
2109
+ if (t) return;
2110
+ let e = setTimeout(() => i(!0), 0), r = setTimeout(() => i(!1), n);
2111
+ return () => {
2112
+ clearTimeout(e), clearTimeout(r);
2113
+ };
2114
+ }, [
2115
+ e,
2116
+ t,
2117
+ n
2118
+ ]), r;
2119
+ }
2120
+ // src/Components/Base/Badges/LiveStatusIndicator.tsx
2121
+ function nn({ isError: e = !1, error: t, isLoading: n = !1, isFetching: r = !1, dataUpdatedAt: i, showTimestamp: a = !1, timestampPrefix: o = "↻", pingDuration: s = 2e3, className: c = "aa-status-indicator", dotClassName: l = "", textClassName: u = "aa-status-text", children: d }) {
2122
+ let { t: f } = W(Q), p = n || r, m = tn(i, p || e, s), h = t instanceof Error ? t.message : typeof t == "string" ? t : f("Failed to load");
2123
+ return ot(e ? h : p ? f("Loading…") : i ? `${f("Last Fetch")}: ${en(i)}` : f("No fetch yet"), /* @__PURE__ */ q("span", {
2124
+ className: c,
2125
+ children: [
2126
+ /* @__PURE__ */ K("span", {
2127
+ className: `aa-status-dot ${l}`.trim(),
2128
+ children: e ? /* @__PURE__ */ K("span", { className: "aa-status-dot-fill aa-status-dot-error" }) : p ? /* @__PURE__ */ K("span", { className: "aa-status-dot-fill aa-status-dot-busy" }) : /* @__PURE__ */ q(G, { children: [m && /* @__PURE__ */ K("span", { className: "aa-status-ping" }), /* @__PURE__ */ K("span", { className: "aa-status-dot-fill aa-status-dot-ready" })] })
2129
+ }),
2130
+ d,
2131
+ a && /* @__PURE__ */ K("span", {
2132
+ className: e ? "aa-status-text aa-status-text-error" : u,
2133
+ children: e ? f("Error") : p ? f("Loading…") : i ? `${o} ${en(i)}` : f("No fetch yet")
2134
+ })
2135
+ ]
2136
+ }));
2137
+ }
2138
+ // src/Components/Base/Badges/SecurityBadge.tsx
2139
+ function rn({ sec: e, className: t = "" }) {
2140
+ return /* @__PURE__ */ K("span", {
2141
+ className: `sec-badge ${Xt(e)} ${t}`.trim(),
2142
+ children: e.toFixed(1)
2143
+ });
2144
+ }
1062
2145
  // src/Hooks/useCooldown.ts
1063
- function yt() {
1064
- let [e, t] = W(0);
1065
- return ve(() => {
2146
+ function an() {
2147
+ let [e, t] = Y(0);
2148
+ return De(() => {
1066
2149
  if (e <= 0) return;
1067
2150
  let n = setInterval(() => {
1068
2151
  t((e) => e > 0 ? e - 1 : 0);
@@ -1070,12 +2153,12 @@ function yt() {
1070
2153
  return () => clearInterval(n);
1071
2154
  }, [e]), {
1072
2155
  seconds: e,
1073
- start: U((e) => t(e), [])
2156
+ start: J((e) => t(e), [])
1074
2157
  };
1075
2158
  }
1076
- function bt() {
1077
- let [e, t] = W({});
1078
- return ve(() => {
2159
+ function on() {
2160
+ let [e, t] = Y({});
2161
+ return De(() => {
1079
2162
  if (!Object.values(e).some((e) => e > 0)) return;
1080
2163
  let n = setInterval(() => {
1081
2164
  t((e) => {
@@ -1087,23 +2170,23 @@ function bt() {
1087
2170
  return () => clearInterval(n);
1088
2171
  }, [e]), {
1089
2172
  cooldowns: e,
1090
- start: U((e, n) => t((t) => ({
2173
+ start: J((e, n) => t((t) => ({
1091
2174
  ...t,
1092
2175
  [e]: n
1093
2176
  })), [])
1094
2177
  };
1095
2178
  }
1096
2179
  // src/Hooks/useFeedback.ts
1097
- function xt(e = 5e3) {
1098
- let [t, n] = W(null), r = be(null), i = U(() => {
2180
+ function sn(e = 5e3) {
2181
+ let [t, n] = Y(null), r = ke(null), i = J(() => {
1099
2182
  r.current && clearTimeout(r.current), r.current = null, n(null);
1100
- }, []), a = U((t, i) => {
2183
+ }, []), a = J((t, i) => {
1101
2184
  r.current && clearTimeout(r.current), n({
1102
2185
  variant: t,
1103
2186
  text: i
1104
2187
  }), r.current = setTimeout(() => n(null), e);
1105
2188
  }, [e]);
1106
- return ve(() => () => {
2189
+ return De(() => () => {
1107
2190
  r.current && clearTimeout(r.current);
1108
2191
  }, []), {
1109
2192
  feedback: t,
@@ -1112,11 +2195,11 @@ function xt(e = 5e3) {
1112
2195
  };
1113
2196
  }
1114
2197
  // src/Provider.tsx
1115
- var St = ge(null);
1116
- function Ct({ projectName: e, appName: t, menuRefetchInterval: n, children: r }) {
1117
- let i = _e(R)?.i18n ?? pe();
1118
- W(() => Fe(i));
1119
- let a = ye(() => ({
2198
+ var cn = Te(null);
2199
+ function ln({ projectName: e, appName: t, menuRefetchInterval: n, children: r }) {
2200
+ let i = Ee(be)?.i18n ?? xe();
2201
+ Y(() => qe(i));
2202
+ let a = Oe(() => ({
1120
2203
  projectName: e,
1121
2204
  appName: t,
1122
2205
  menuRefetchInterval: n
@@ -1125,34 +2208,77 @@ function Ct({ projectName: e, appName: t, menuRefetchInterval: n, children: r })
1125
2208
  t,
1126
2209
  n
1127
2210
  ]);
1128
- return /* @__PURE__ */ V(St.Provider, {
2211
+ return /* @__PURE__ */ K(cn.Provider, {
1129
2212
  value: a,
1130
2213
  children: r
1131
2214
  });
1132
2215
  }
1133
- function Q() {
1134
- let e = _e(St);
2216
+ function un() {
2217
+ let e = Ee(cn);
1135
2218
  if (!e) throw Error("useAaReact must be used inside <AaReactProvider projectName appName>.");
1136
2219
  return e;
1137
2220
  }
1138
2221
  // src/Hooks/useUserData.ts
1139
- function wt() {
1140
- let { projectName: e } = Q();
1141
- return Ce({
1142
- queryKey: G.User,
1143
- queryFn: () => Ae(e),
2222
+ function dn() {
2223
+ let { projectName: e } = un();
2224
+ return Me({
2225
+ queryKey: Z.User,
2226
+ queryFn: () => Be(e),
1144
2227
  staleTime: 3e5
1145
2228
  });
1146
2229
  }
2230
+ // src/Hooks/useUserSettings.ts
2231
+ function fn() {
2232
+ let { projectName: e } = un(), t = Ne(), n = Me({
2233
+ queryKey: Z.UserSettings,
2234
+ queryFn: () => Ve(e)
2235
+ }), r = je({
2236
+ mutationFn: (t) => He(e, t),
2237
+ onMutate: async (e) => {
2238
+ await t.cancelQueries({ queryKey: Z.UserSettings });
2239
+ let n = t.getQueryData(Z.UserSettings);
2240
+ return t.setQueryData(Z.UserSettings, {
2241
+ ...n,
2242
+ ...e
2243
+ }), { previous: n };
2244
+ },
2245
+ onError: (e, n, r) => {
2246
+ r?.previous && t.setQueryData(Z.UserSettings, r.previous);
2247
+ },
2248
+ onSuccess: (e) => {
2249
+ t.setQueryData(Z.UserSettings, e);
2250
+ }
2251
+ });
2252
+ return {
2253
+ ...n,
2254
+ updateMutation: r
2255
+ };
2256
+ }
2257
+ // src/i18nInit.ts
2258
+ function pn(e, t) {
2259
+ let n = typeof document < "u" ? document.getElementById(t)?.getAttribute("lang") ?? "en" : "en";
2260
+ return Ae.use(Fe).use(Se).init({
2261
+ lng: n,
2262
+ fallbackLng: "en",
2263
+ ns: [Ge],
2264
+ defaultNS: Ge,
2265
+ returnEmptyString: !1,
2266
+ keySeparator: !1,
2267
+ nsSeparator: !1,
2268
+ interpolation: { escapeValue: !1 },
2269
+ react: { useSuspense: !1 },
2270
+ backend: { loadPath: `/static/${e}/i18n/{{lng}}/{{ns}}.json` }
2271
+ });
2272
+ }
1147
2273
  // src/Menu/BaseMenu.tsx
1148
- var Tt = (e, t) => {
2274
+ var mn = (e, t) => {
1149
2275
  let n = t.replace(/^\/+|\/+$/g, "");
1150
2276
  return n ? `/${e}/${n}/` : `/${e}/`;
1151
- }, Et = (e, t, n) => t === n ? e === n : e.startsWith(t), Dt = [K, Ne], Ot = ({ link: e, toPath: t }) => {
1152
- let { t: r } = z(K), a = i(), o = Et(a.pathname, t(e.link ?? ""), t(""));
1153
- return /* @__PURE__ */ V(F.Item, {
2277
+ }, hn = (e, t, n) => t === n ? e === n : e.startsWith(t), gn = [Q, Ge], _n = ({ link: e, toPath: t }) => {
2278
+ let { t: r } = W(Q), a = i(), o = hn(a.pathname, t(e.link ?? ""), t(""));
2279
+ return /* @__PURE__ */ K(U.Item, {
1154
2280
  as: "li",
1155
- children: /* @__PURE__ */ H(F.Link, {
2281
+ children: /* @__PURE__ */ q(U.Link, {
1156
2282
  as: n,
1157
2283
  to: {
1158
2284
  pathname: t(e.link ?? ""),
@@ -1162,33 +2288,33 @@ var Tt = (e, t) => {
1162
2288
  active: o,
1163
2289
  className: "aa-nav-danger d-flex align-items-center gap-1",
1164
2290
  "data-testid": "administration-nav-link",
1165
- children: [/* @__PURE__ */ V(se, {
2291
+ children: [/* @__PURE__ */ K(j, {
1166
2292
  size: 15,
1167
2293
  className: "text-danger flex-shrink-0"
1168
- }), /* @__PURE__ */ V("span", { children: r(e.name, {
1169
- ns: Dt,
2294
+ }), /* @__PURE__ */ K("span", { children: r(e.name, {
2295
+ ns: gn,
1170
2296
  defaultValue: e.name
1171
2297
  }) })]
1172
2298
  }, e.name)
1173
2299
  });
1174
- }, kt = ({ link: e, toPath: t }) => {
1175
- let { t: r } = z(K), a = i(), o = Et(a.pathname, t(e.link ?? ""), t("")), s = r(e.name, {
1176
- ns: Dt,
2300
+ }, vn = ({ link: e, toPath: t }) => {
2301
+ let { t: r } = W(Q), a = i(), o = hn(a.pathname, t(e.link ?? ""), t("")), s = r(e.name, {
2302
+ ns: gn,
1177
2303
  defaultValue: e.name
1178
2304
  });
1179
- return e.is_external || e.link?.startsWith("http://") || e.link?.startsWith("https://") ? /* @__PURE__ */ V(F.Item, {
2305
+ return e.is_external || e.link?.startsWith("http://") || e.link?.startsWith("https://") ? /* @__PURE__ */ K(U.Item, {
1180
2306
  as: "li",
1181
- children: /* @__PURE__ */ V(F.Link, {
2307
+ children: /* @__PURE__ */ K(U.Link, {
1182
2308
  href: e.link ?? "#",
1183
2309
  id: e.name,
1184
2310
  children: s
1185
2311
  }, e.name)
1186
- }) : e.link?.replace(/^\/+|\/+$/g, "") === "administration" || e.name.toLowerCase() === "administration" ? /* @__PURE__ */ V(Ot, {
2312
+ }) : e.link?.replace(/^\/+|\/+$/g, "") === "administration" || e.name.toLowerCase() === "administration" ? /* @__PURE__ */ K(_n, {
1187
2313
  link: e,
1188
2314
  toPath: t
1189
- }) : /* @__PURE__ */ V(F.Item, {
2315
+ }) : /* @__PURE__ */ K(U.Item, {
1190
2316
  as: "li",
1191
- children: /* @__PURE__ */ H(F.Link, {
2317
+ children: /* @__PURE__ */ q(U.Link, {
1192
2318
  as: n,
1193
2319
  to: {
1194
2320
  pathname: t(e.link ?? ""),
@@ -1196,25 +2322,25 @@ var Tt = (e, t) => {
1196
2322
  },
1197
2323
  id: e.name,
1198
2324
  active: o,
1199
- children: [s, e.badge ? /* @__PURE__ */ V("span", {
2325
+ children: [s, e.badge ? /* @__PURE__ */ K("span", {
1200
2326
  className: `badge bg-danger ms-1 ${e.has_errors ? "aa-menu-badge-pulse" : ""}`,
1201
2327
  children: e.badge
1202
2328
  }) : null]
1203
2329
  }, e.name)
1204
2330
  });
1205
- }, At = ({ data: e }) => {
1206
- let { projectName: t } = Q(), n = (e) => Tt(t, e), r = Array.isArray(e) ? e.filter((e) => !!e.link) : [];
1207
- return /* @__PURE__ */ V(B, { children: r.map((e) => /* @__PURE__ */ V(kt, {
2331
+ }, yn = ({ data: e }) => {
2332
+ let { projectName: t } = un(), n = (e) => mn(t, e), r = Array.isArray(e) ? e.filter((e) => !!e.link) : [];
2333
+ return /* @__PURE__ */ K(G, { children: r.map((e) => /* @__PURE__ */ K(vn, {
1208
2334
  link: e,
1209
2335
  toPath: n
1210
2336
  }, e.link)) });
1211
- }, jt = (e) => /* @__PURE__ */ V(At, { ...e }), Mt = (e) => /* @__PURE__ */ V(At, { ...e });
2337
+ }, bn = (e) => /* @__PURE__ */ K(yn, { ...e }), xn = (e) => /* @__PURE__ */ K(yn, { ...e });
1212
2338
  // src/Menu/Hooks/useMenu.ts
1213
- function $() {
1214
- let { projectName: e, menuRefetchInterval: t } = Q();
1215
- return Ce({
1216
- queryKey: G.Menu,
1217
- queryFn: () => ke(e),
2339
+ function Sn() {
2340
+ let { projectName: e, menuRefetchInterval: t } = un();
2341
+ return Me({
2342
+ queryKey: Z.Menu,
2343
+ queryFn: () => ze(e),
1218
2344
  staleTime: 3e5,
1219
2345
  retry: 1,
1220
2346
  refetchOnWindowFocus: !1,
@@ -1222,94 +2348,58 @@ function $() {
1222
2348
  });
1223
2349
  }
1224
2350
  // src/Menu/AuthLeftMenuAsync.tsx
1225
- var Nt = () => {
1226
- let e = typeof document < "u" ? document.getElementById("nav-left") : null, { data: t, isLoading: n, isError: r } = $();
1227
- return !e || !t?.left_links ? /* @__PURE__ */ V(B, {}) : Ee.createPortal(/* @__PURE__ */ V(jt, {
2351
+ var Cn = () => {
2352
+ let e = typeof document < "u" ? document.getElementById("nav-left") : null, { data: t, isLoading: n, isError: r } = Sn();
2353
+ return !e || !t?.left_links ? /* @__PURE__ */ K(G, {}) : Ie.createPortal(/* @__PURE__ */ K(bn, {
1228
2354
  error: r,
1229
2355
  isLoading: n,
1230
2356
  data: t.left_links
1231
2357
  }), e);
1232
- }, Pt = () => {
1233
- let e = typeof document < "u" ? document.getElementById("nav-right") : null, { data: t, isLoading: n, isError: r } = $();
1234
- return !e || !t?.right_links ? /* @__PURE__ */ V(B, {}) : Ee.createPortal(/* @__PURE__ */ V(Mt, {
2358
+ }, wn = () => {
2359
+ let e = typeof document < "u" ? document.getElementById("nav-right") : null, { data: t, isLoading: n, isError: r } = Sn();
2360
+ return !e || !t?.right_links ? /* @__PURE__ */ K(G, {}) : Ie.createPortal(/* @__PURE__ */ K(xn, {
1235
2361
  error: r,
1236
2362
  isLoading: n,
1237
2363
  data: t.right_links
1238
2364
  }), e);
1239
- }, Ft = ({ className: e = "", fluidOnSmallScreens: t = !1, children: n }) => /* @__PURE__ */ H(B, { children: [
1240
- /* @__PURE__ */ V(Nt, {}),
1241
- /* @__PURE__ */ V(Pt, {}),
1242
- /* @__PURE__ */ V(j, { children: /* @__PURE__ */ V("div", {
2365
+ }, Tn = ({ className: e = "", fluidOnSmallScreens: t = !1, children: n }) => /* @__PURE__ */ q(G, { children: [
2366
+ /* @__PURE__ */ K(Cn, {}),
2367
+ /* @__PURE__ */ K(wn, {}),
2368
+ /* @__PURE__ */ K(ge, { children: /* @__PURE__ */ K("div", {
1243
2369
  className: `aa-react container mt-4${t ? " aa-container-fluid-small" : ""} ${e}`,
1244
- children: /* @__PURE__ */ V(gt, { children: n ?? /* @__PURE__ */ V(r, {}) })
2370
+ children: /* @__PURE__ */ K(Nt, { children: n ?? /* @__PURE__ */ K(r, {}) })
1245
2371
  }) })
1246
2372
  ] });
1247
2373
  // src/Pages/404.tsx
1248
- function It() {
1249
- let { t: e } = z(K);
1250
- return /* @__PURE__ */ V(A, { children: /* @__PURE__ */ V(A.Body, {
2374
+ function En() {
2375
+ let { t: e } = W(Q);
2376
+ return /* @__PURE__ */ K(R, { children: /* @__PURE__ */ K(R.Body, {
1251
2377
  className: "p-0",
1252
- children: /* @__PURE__ */ V(mt, {
2378
+ children: /* @__PURE__ */ K(jt, {
1253
2379
  title: e("Error 404"),
1254
2380
  message: e("The page you are looking for does not exist.")
1255
2381
  })
1256
2382
  }) });
1257
2383
  }
1258
- // src/Utils/eveOnline.tsx
1259
- function Lt(e, t = 512) {
1260
- return `https://images.evetech.net/types/${e}/render?size=${t}`;
1261
- }
1262
- function Rt(e, t = 512) {
1263
- return `https://images.evetech.net/characters/${e}/portrait?size=${t}`;
1264
- }
1265
- function zt(e, t = 128) {
1266
- return `https://images.evetech.net/corporations/${e}/logo?size=${t}`;
1267
- }
1268
- function Bt(e, t = 128) {
1269
- return `https://images.evetech.net/alliances/${e}/logo?size=${t}`;
1270
- }
1271
- function Vt(e, t = 32) {
1272
- return `https://images.evetech.net/types/${e}/icon?size=${t}`;
1273
- }
1274
- var Ht = (e) => e >= .5 ? "aa-badge-hisec" : e > 0 ? "aa-badge-lowsec" : "aa-badge-nullsec", Ut = (e = /* @__PURE__ */ new Date()) => {
1275
- let t = (e) => String(e).padStart(2, "0");
1276
- return `${t(e.getUTCHours())}:${t(e.getUTCMinutes())}:${t(e.getUTCSeconds())} EVE`;
1277
- };
1278
- function Wt({ id: e, name: t, size: n = 12, className: r = "", externalLink: i = !1 }) {
1279
- let a = `https://zkillboard.com/kill/${e}/`;
1280
- return X(t, /* @__PURE__ */ H("a", {
1281
- href: a,
1282
- target: "_blank",
1283
- rel: "noopener noreferrer",
1284
- className: r,
1285
- children: [t, i && /* @__PURE__ */ V(E, { size: n })]
1286
- }));
1287
- }
1288
- function Gt(e, t = 32) {
1289
- return /* @__PURE__ */ V("img", {
1290
- src: Rt(e, t),
1291
- className: "rounded"
1292
- });
1293
- }
1294
2384
  // src/Utils/general.tsx
1295
- var Kt = ({ url: e, text: t, children: n, external: r, className: i }) => /* @__PURE__ */ H("a", {
2385
+ var Dn = ({ url: e, text: t, children: n, external: r, className: i }) => /* @__PURE__ */ q("a", {
1296
2386
  href: e,
1297
2387
  className: `${i ?? ""}`,
1298
2388
  target: r ? "_blank" : void 0,
1299
2389
  rel: r ? "noopener noreferrer" : void 0,
1300
2390
  children: [t, n]
1301
- }), qt = (e, t, n) => /* @__PURE__ */ V("img", {
1302
- src: Lt(e, 128),
2391
+ }), On = (e, t, n) => /* @__PURE__ */ K("img", {
2392
+ src: Gt(e, 128),
1303
2393
  alt: t,
1304
2394
  className: `${n ?? ""}`,
1305
2395
  loading: "lazy",
1306
2396
  onError: (t) => {
1307
- t.target.src = Vt(e, 64);
2397
+ t.target.src = Yt(e, 64);
1308
2398
  }
1309
2399
  });
1310
- function Jt(e) {
1311
- return /* @__PURE__ */ V("span", { dangerouslySetInnerHTML: { __html: e } });
2400
+ function kn(e) {
2401
+ return /* @__PURE__ */ K("span", { dangerouslySetInnerHTML: { __html: e } });
1312
2402
  }
1313
- export { Ct as AaReactProvider, Ot as AdministrationMenuItem, Ft as AuthBase, jt as AuthLeftMenu, Nt as AuthLeftMenuAsync, Mt as AuthRightMenu, Pt as AuthRightMenuAsync, lt as BaseModal, _t as BaseSectionHeader, nt as BaseTable, rt as BaseTableForm, He as BaseTableHeader, Ze as BaseTablePages, it as BaseToolbar, Re as BoolFilter, gt as ErrorBoundary, mt as ErrorLoader, It as ErrorPage, et as FetchingLoader, Ve as Filter, vt as FilterButtonGroup, Ne as I18N_FALLBACK_NAMESPACE, K as I18N_NAMESPACE, Z as MODAL_DEFAULTS, kt as MenuItem, At as MenuList, at as ModalSize, Le as NumberFilter, Be as SelectFilter, ze as TextFilter, Bt as allianceImageUrl, Oe as baseApiClient, Qe as baseTableFeatures, Rt as characterImageUrl, zt as corporationImageUrl, De as createApiClient, $e as createBaseColumnHelper, Ue as exportToCSV, Ye as formatCompactNumber, Ge as formatDate, qe as formatEta, Ut as formatEveTime, Xe as formatIsk, Je as formatNumber, Ke as formatRelativeTime, Ht as getSecColor, Et as isActivePath, Vt as itemImageUrl, ke as loadMenu, Ae as loadUserData, G as queryKeys, Fe as registerI18nResources, Gt as renderCharacterPortrait, Jt as renderHtml, Kt as renderLink, qt as renderShipImage, X as renderTooltip, Lt as shipImageUrl, Tt as toProjectPath, We as toolTipContainer, Q as useAaReact, dt as useApproveMutation, yt as useCooldown, xt as useFeedback, ft as useFormApproveMutation, $ as useMenu, pt as useModalQueryState, bt as useOwnerCooldowns, wt as useUserData, Wt as zKillboardLink };
2403
+ export { ln as AaReactProvider, _n as AdministrationMenuItem, Tn as AuthBase, bn as AuthLeftMenu, Cn as AuthLeftMenuAsync, xn as AuthRightMenu, wn as AuthRightMenuAsync, Tt as BaseModal, zt as BaseOwnerCard, Ut as BaseOwnerSettingsSection, Pt as BaseSectionHeader, vt as BaseTable, yt as BaseTableForm, rt as BaseTableHeader, pt as BaseTablePages, bt as BaseToolbar, $e as BoolFilter, Nt as ErrorBoundary, jt as ErrorLoader, En as ErrorPage, gt as FetchingLoader, nt as Filter, Ft as FilterButtonGroup, Ge as I18N_FALLBACK_NAMESPACE, Q as I18N_NAMESPACE, nn as LiveStatusIndicator, $ as MODAL_DEFAULTS, vn as MenuItem, yn as MenuList, Bt as MissingOwnerCard, xt as ModalSize, Qe as NumberFilter, Vt as OwnerFilterBar, Rt as OwnerPortrait, rn as SecurityBadge, tt as SelectFilter, et as TextFilter, Wt as UnregisteredModal, Jt as allianceImageUrl, X as apiErrorMessage, Re as baseApiClient, mt as baseTableFeatures, Kt as characterImageUrl, qt as corporationImageUrl, Le as createApiClient, ht as createBaseColumnHelper, it as exportToCSV, dt as formatCompactNumber, st as formatDate, lt as formatEta, Zt as formatEveTime, ft as formatIsk, en as formatLastFetch, ut as formatNumber, ct as formatRelativeTime, Xt as getSecColor, pn as initI18n, hn as isActivePath, Yt as itemImageUrl, ze as loadMenu, Be as loadUserData, Ve as loadUserSettings, Z as queryKeys, qe as registerI18nResources, $t as renderCharacterPortrait, kn as renderHtml, Dn as renderLink, On as renderShipImage, ot as renderTooltip, Gt as shipImageUrl, mn as toProjectPath, at as toolTipContainer, He as updateUserSettings, un as useAaReact, Ot as useApproveMutation, an as useCooldown, sn as useFeedback, kt as useFormApproveMutation, tn as useLivePing, Sn as useMenu, At as useModalQueryState, on as useOwnerCooldowns, dn as useUserData, fn as useUserSettings, Qt as zKillboardLink };
1314
2404
 
1315
2405
  //# sourceMappingURL=index.js.map