aa-geuthur-react 1.5.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.
- package/dist/Api/calls.d.ts +7 -3
- package/dist/Api/types.d.ts +13 -2
- package/dist/Menu/Hooks/useMenu.d.ts +8 -2
- package/dist/index.js +547 -561
- package/dist/index.js.map +1 -1
- package/i18n/cs/aa-geuthur-react.json +29 -29
- package/i18n/de/aa-geuthur-react.json +76 -76
- package/i18n/es/aa-geuthur-react.json +31 -34
- package/i18n/fr-FR/aa-geuthur-react.json +27 -30
- package/i18n/it-IT/aa-geuthur-react.json +28 -31
- package/i18n/ja/aa-geuthur-react.json +29 -29
- package/i18n/ko-KR/aa-geuthur-react.json +29 -29
- package/i18n/nl-NL/aa-geuthur-react.json +27 -27
- package/i18n/pl-PL/aa-geuthur-react.json +30 -33
- package/i18n/ru/aa-geuthur-react.json +31 -34
- package/i18n/sk/aa-geuthur-react.json +29 -29
- package/i18n/uk/aa-geuthur-react.json +31 -34
- package/i18n/zh-Hans/aa-geuthur-react.json +29 -29
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,19 +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 ee, tableFeatures as
|
|
5
|
-
import { AlertCircle as
|
|
6
|
-
import { Alert as
|
|
7
|
-
import { I18nContext as
|
|
8
|
-
import { Fragment as
|
|
9
|
-
import { Component as
|
|
10
|
-
import
|
|
11
|
-
import { useMutation as
|
|
12
|
-
import { useQueryState as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
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";
|
|
15
15
|
// src/Api/Api.ts
|
|
16
|
-
function
|
|
16
|
+
function Le(n) {
|
|
17
17
|
let r = t({
|
|
18
18
|
baseUrl: "/",
|
|
19
19
|
credentials: "same-origin",
|
|
@@ -25,27 +25,27 @@ function Ie(n) {
|
|
|
25
25
|
} }), r;
|
|
26
26
|
}
|
|
27
27
|
// src/Api/errors.ts
|
|
28
|
-
function
|
|
28
|
+
function X(e, t) {
|
|
29
29
|
if (typeof e != "object" || !e) return t;
|
|
30
30
|
let n = e;
|
|
31
31
|
for (let e of [n.error, n.detail]) if (typeof e == "string" && e.trim() !== "") return e;
|
|
32
32
|
return t;
|
|
33
33
|
}
|
|
34
34
|
// src/Api/calls.ts
|
|
35
|
-
var Re =
|
|
35
|
+
var Re = Le();
|
|
36
36
|
async function ze(e) {
|
|
37
37
|
let { data: t, error: n } = await Re.GET("/{project}/api/menu/", { params: { path: { project: e } } });
|
|
38
|
-
if (n || !t) throw Error(
|
|
38
|
+
if (n || !t) throw Error(X(n, "Failed to load menu"));
|
|
39
39
|
return t;
|
|
40
40
|
}
|
|
41
41
|
async function Be(e) {
|
|
42
42
|
let { data: t, error: n } = await Re.GET("/{project}/api/user/", { params: { path: { project: e } } });
|
|
43
|
-
if (n || !t) throw Error(
|
|
43
|
+
if (n || !t) throw Error(X(n, "Failed to load user data"));
|
|
44
44
|
return { user: t };
|
|
45
45
|
}
|
|
46
46
|
async function Ve(e) {
|
|
47
47
|
let { data: t, error: n } = await Re.GET("/{project}/api/settings/", { params: { path: { project: e } } });
|
|
48
|
-
if (n || !t) throw Error(
|
|
48
|
+
if (n || !t) throw Error(X(n, "Failed to load user settings"));
|
|
49
49
|
return t;
|
|
50
50
|
}
|
|
51
51
|
async function He(e, t) {
|
|
@@ -53,7 +53,7 @@ async function He(e, t) {
|
|
|
53
53
|
params: { path: { project: e } },
|
|
54
54
|
body: t
|
|
55
55
|
});
|
|
56
|
-
if (r || !n) throw Error(
|
|
56
|
+
if (r || !n) throw Error(X(r, "Failed to update user settings"));
|
|
57
57
|
return n;
|
|
58
58
|
}
|
|
59
59
|
// src/Api/query.ts
|
|
@@ -151,7 +151,7 @@ var Z = {
|
|
|
151
151
|
"No matching owners found.": "Keine passenden Eigentümer gefunden.",
|
|
152
152
|
"Reset filters": "Filter zurücksetzen",
|
|
153
153
|
"Missing in {{app}}": "Fehlt in {{app}}",
|
|
154
|
-
"The following characters belong to you but are not registered.": "Die folgenden Charaktere gehören
|
|
154
|
+
"The following characters belong to you but are not registered.": "Die folgenden Charaktere gehören dir, sind aber nicht registriert.",
|
|
155
155
|
Cancel: "Abbrechen",
|
|
156
156
|
"Deleting…": "Wird gelöscht…",
|
|
157
157
|
"Confirm Delete": "Löschen bestätigen",
|
|
@@ -283,10 +283,7 @@ var Z = {
|
|
|
283
283
|
"Data Loaded: {{date}}": "Datos cargados: {{date}}",
|
|
284
284
|
"Export Table to CSV": "Exportar tabla a CSV",
|
|
285
285
|
Corporation: "Corporación",
|
|
286
|
-
Alliance: "Alianza"
|
|
287
|
-
"{{count}} unregistered_one": "",
|
|
288
|
-
"{{count}} unregistered_many": "{{count}} unregistered",
|
|
289
|
-
"{{count}} unregistered_other": ""
|
|
286
|
+
Alliance: "Alianza"
|
|
290
287
|
},
|
|
291
288
|
"../i18n/fr-FR/aa-geuthur-react.json": {
|
|
292
289
|
Close: "Fermer",
|
|
@@ -315,10 +312,7 @@ var Z = {
|
|
|
315
312
|
"Show {{pageSize}}": "Afficher {{pageSize}}",
|
|
316
313
|
"Refreshing Data": "Actualisation des données",
|
|
317
314
|
"Data Loaded: {{date}}": "Données chargées\xA0: {{date}}",
|
|
318
|
-
"Export Table to CSV": "Exporter le tableau en CSV"
|
|
319
|
-
"{{count}} unregistered_one": "",
|
|
320
|
-
"{{count}} unregistered_many": "{{count}} unregistered",
|
|
321
|
-
"{{count}} unregistered_other": ""
|
|
315
|
+
"Export Table to CSV": "Exporter le tableau en CSV"
|
|
322
316
|
},
|
|
323
317
|
"../i18n/it-IT/aa-geuthur-react.json": {
|
|
324
318
|
Close: "Chiudi",
|
|
@@ -348,10 +342,7 @@ var Z = {
|
|
|
348
342
|
"Refreshing Data": "Aggiornamento dati",
|
|
349
343
|
"Data Loaded: {{date}}": "Dati caricati: {{date}}",
|
|
350
344
|
"Export Table to CSV": "Esporta tabella in CSV",
|
|
351
|
-
Alliance: "Alleanza"
|
|
352
|
-
"{{count}} unregistered_one": "",
|
|
353
|
-
"{{count}} unregistered_many": "{{count}} unregistered",
|
|
354
|
-
"{{count}} unregistered_other": ""
|
|
345
|
+
Alliance: "Alleanza"
|
|
355
346
|
},
|
|
356
347
|
"../i18n/ja/aa-geuthur-react.json": {
|
|
357
348
|
Close: "閉じる",
|
|
@@ -474,10 +465,7 @@ var Z = {
|
|
|
474
465
|
"Data Loaded: {{date}}": "Dane załadowane: {{date}}",
|
|
475
466
|
"Export Table to CSV": "Eksportuj tabelę do CSV",
|
|
476
467
|
Corporation: "Korporacja",
|
|
477
|
-
Alliance: "Sojusz"
|
|
478
|
-
"{{count}} unregistered_one": "",
|
|
479
|
-
"{{count}} unregistered_few": "{{count}} unregistered",
|
|
480
|
-
"{{count}} unregistered_many": "{{count}} unregistered"
|
|
468
|
+
Alliance: "Sojusz"
|
|
481
469
|
},
|
|
482
470
|
"../i18n/ru/aa-geuthur-react.json": {
|
|
483
471
|
Close: "Закрыть",
|
|
@@ -510,10 +498,7 @@ var Z = {
|
|
|
510
498
|
"Data Loaded: {{date}}": "Данные загружены: {{date}}",
|
|
511
499
|
"Export Table to CSV": "Экспорт таблицы в CSV",
|
|
512
500
|
Corporation: "Корпорация",
|
|
513
|
-
Alliance: "Альянс"
|
|
514
|
-
"{{count}} unregistered_one": "",
|
|
515
|
-
"{{count}} unregistered_few": "{{count}} unregistered",
|
|
516
|
-
"{{count}} unregistered_many": "{{count}} unregistered"
|
|
501
|
+
Alliance: "Альянс"
|
|
517
502
|
},
|
|
518
503
|
"../i18n/sk/aa-geuthur-react.json": {
|
|
519
504
|
Close: "Zavrieť",
|
|
@@ -577,10 +562,7 @@ var Z = {
|
|
|
577
562
|
"Data Loaded: {{date}}": "Дані завантажено: {{date}}",
|
|
578
563
|
"Export Table to CSV": "Експортувати таблицю в CSV",
|
|
579
564
|
Corporation: "Корпорація",
|
|
580
|
-
Alliance: "Альянс"
|
|
581
|
-
"{{count}} unregistered_one": "",
|
|
582
|
-
"{{count}} unregistered_few": "{{count}} unregistered",
|
|
583
|
-
"{{count}} unregistered_many": "{{count}} unregistered"
|
|
565
|
+
Alliance: "Альянс"
|
|
584
566
|
},
|
|
585
567
|
"../i18n/zh-Hans/aa-geuthur-react.json": {
|
|
586
568
|
Close: "关闭",
|
|
@@ -628,27 +610,27 @@ function qe(e) {
|
|
|
628
610
|
}
|
|
629
611
|
// src/Components/Base/BaseTable/BaseTableFilter.tsx
|
|
630
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 }) => {
|
|
631
|
-
let { t } =
|
|
632
|
-
return /* @__PURE__ */
|
|
613
|
+
let { t } = W(Q);
|
|
614
|
+
return /* @__PURE__ */ K("button", {
|
|
633
615
|
type: "button",
|
|
634
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",
|
|
635
617
|
onClick: e,
|
|
636
618
|
title: t("Clear"),
|
|
637
|
-
children: /* @__PURE__ */
|
|
619
|
+
children: /* @__PURE__ */ K(P, { size: 12 })
|
|
638
620
|
});
|
|
639
621
|
}, Ze = RegExp.prototype.test.bind(/(<([^>]+)>)/i), Qe = ({ column: e }) => {
|
|
640
|
-
let { t } =
|
|
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, {
|
|
641
623
|
id: "popover-number-range",
|
|
642
624
|
className: "aa-table-filter-popover",
|
|
643
|
-
children: /* @__PURE__ */
|
|
625
|
+
children: /* @__PURE__ */ K(ve.Body, {
|
|
644
626
|
className: "p-3",
|
|
645
|
-
children: /* @__PURE__ */
|
|
627
|
+
children: /* @__PURE__ */ q("div", {
|
|
646
628
|
className: "d-flex flex-column gap-2",
|
|
647
629
|
children: [
|
|
648
|
-
/* @__PURE__ */
|
|
630
|
+
/* @__PURE__ */ q("div", { children: [/* @__PURE__ */ K(B.Label, {
|
|
649
631
|
className: "small text-muted mb-1",
|
|
650
632
|
children: t("Min")
|
|
651
|
-
}), /* @__PURE__ */
|
|
633
|
+
}), /* @__PURE__ */ K(B.Control, {
|
|
652
634
|
size: "sm",
|
|
653
635
|
type: "number",
|
|
654
636
|
value: n?.[0] ?? "",
|
|
@@ -656,10 +638,10 @@ var Je = "position-relative w-100", Ye = "position-absolute top-50 end-0 transla
|
|
|
656
638
|
placeholder: t("Min"),
|
|
657
639
|
className: "aa-table-filter-input"
|
|
658
640
|
})] }),
|
|
659
|
-
/* @__PURE__ */
|
|
641
|
+
/* @__PURE__ */ q("div", { children: [/* @__PURE__ */ K(B.Label, {
|
|
660
642
|
className: "small text-muted mb-1",
|
|
661
643
|
children: t("Max")
|
|
662
|
-
}), /* @__PURE__ */
|
|
644
|
+
}), /* @__PURE__ */ K(B.Control, {
|
|
663
645
|
size: "sm",
|
|
664
646
|
type: "number",
|
|
665
647
|
value: n?.[1] ?? "",
|
|
@@ -667,9 +649,9 @@ var Je = "position-relative w-100", Ye = "position-absolute top-50 end-0 transla
|
|
|
667
649
|
placeholder: t("Max"),
|
|
668
650
|
className: "aa-table-filter-input"
|
|
669
651
|
})] }),
|
|
670
|
-
/* @__PURE__ */
|
|
652
|
+
/* @__PURE__ */ q("div", {
|
|
671
653
|
className: "d-flex gap-2 mt-2",
|
|
672
|
-
children: [/* @__PURE__ */
|
|
654
|
+
children: [/* @__PURE__ */ K(F, {
|
|
673
655
|
variant: "outline-secondary",
|
|
674
656
|
size: "sm",
|
|
675
657
|
className: "w-50",
|
|
@@ -677,7 +659,7 @@ var Je = "position-relative w-100", Ye = "position-absolute top-50 end-0 transla
|
|
|
677
659
|
e.setFilterValue(() => [void 0, void 0]), document.body.click();
|
|
678
660
|
},
|
|
679
661
|
children: t("Reset")
|
|
680
|
-
}), /* @__PURE__ */
|
|
662
|
+
}), /* @__PURE__ */ K(F, {
|
|
681
663
|
variant: "primary",
|
|
682
664
|
size: "sm",
|
|
683
665
|
className: "w-50",
|
|
@@ -689,54 +671,54 @@ var Je = "position-relative w-100", Ye = "position-absolute top-50 end-0 transla
|
|
|
689
671
|
})
|
|
690
672
|
})
|
|
691
673
|
});
|
|
692
|
-
return /* @__PURE__ */
|
|
674
|
+
return /* @__PURE__ */ K(_e, {
|
|
693
675
|
trigger: "click",
|
|
694
676
|
placement: "bottom",
|
|
695
677
|
rootClose: !0,
|
|
696
678
|
overlay: i,
|
|
697
|
-
children: /* @__PURE__ */
|
|
679
|
+
children: /* @__PURE__ */ q("div", {
|
|
698
680
|
className: Je,
|
|
699
|
-
children: [/* @__PURE__ */
|
|
681
|
+
children: [/* @__PURE__ */ K(B.Control, {
|
|
700
682
|
size: "sm",
|
|
701
683
|
className: "aa-table-filter-input",
|
|
702
684
|
readOnly: !0,
|
|
703
685
|
type: "text",
|
|
704
686
|
placeholder: t("Range…"),
|
|
705
687
|
value: r ? `${n?.[0] || "Min"} → ${n?.[1] || "Max"}` : ""
|
|
706
|
-
}), r ? /* @__PURE__ */
|
|
688
|
+
}), r ? /* @__PURE__ */ K(Xe, { onClick: (t) => {
|
|
707
689
|
t.stopPropagation(), e.setFilterValue(() => [void 0, void 0]);
|
|
708
|
-
} }) : /* @__PURE__ */
|
|
690
|
+
} }) : /* @__PURE__ */ K(M, {
|
|
709
691
|
size: 12,
|
|
710
692
|
className: Ye
|
|
711
693
|
})]
|
|
712
694
|
})
|
|
713
695
|
});
|
|
714
696
|
}, $e = ({ column: e }) => {
|
|
715
|
-
let { t } =
|
|
716
|
-
return /* @__PURE__ */
|
|
697
|
+
let { t } = W(Q), n = e.getFilterValue(), r = n !== void 0;
|
|
698
|
+
return /* @__PURE__ */ K(_e, {
|
|
717
699
|
trigger: "click",
|
|
718
700
|
placement: "bottom-start",
|
|
719
701
|
rootClose: !0,
|
|
720
|
-
overlay: /* @__PURE__ */
|
|
702
|
+
overlay: /* @__PURE__ */ K(z, {
|
|
721
703
|
show: !0,
|
|
722
704
|
drop: "down-centered",
|
|
723
|
-
children: /* @__PURE__ */
|
|
705
|
+
children: /* @__PURE__ */ q(z.Menu, {
|
|
724
706
|
className: "aa-table-filter-dropdown overflow-y-auto",
|
|
725
707
|
children: [
|
|
726
|
-
/* @__PURE__ */
|
|
708
|
+
/* @__PURE__ */ K(z.Item, {
|
|
727
709
|
onClick: () => {
|
|
728
710
|
e.setFilterValue(!0), document.body.click();
|
|
729
711
|
},
|
|
730
712
|
children: t("True")
|
|
731
713
|
}),
|
|
732
|
-
/* @__PURE__ */
|
|
714
|
+
/* @__PURE__ */ K(z.Item, {
|
|
733
715
|
onClick: () => {
|
|
734
716
|
e.setFilterValue(!1), document.body.click();
|
|
735
717
|
},
|
|
736
718
|
children: t("False")
|
|
737
719
|
}),
|
|
738
|
-
/* @__PURE__ */
|
|
739
|
-
/* @__PURE__ */
|
|
720
|
+
/* @__PURE__ */ K(z.Divider, {}),
|
|
721
|
+
/* @__PURE__ */ K(z.Item, {
|
|
740
722
|
onClick: () => {
|
|
741
723
|
e.setFilterValue(void 0), document.body.click();
|
|
742
724
|
},
|
|
@@ -745,28 +727,28 @@ var Je = "position-relative w-100", Ye = "position-absolute top-50 end-0 transla
|
|
|
745
727
|
]
|
|
746
728
|
})
|
|
747
729
|
}),
|
|
748
|
-
children: /* @__PURE__ */
|
|
730
|
+
children: /* @__PURE__ */ q("div", {
|
|
749
731
|
className: Je,
|
|
750
|
-
children: [/* @__PURE__ */
|
|
732
|
+
children: [/* @__PURE__ */ K(B.Control, {
|
|
751
733
|
size: "sm",
|
|
752
734
|
className: "aa-table-filter-input",
|
|
753
735
|
readOnly: !0,
|
|
754
736
|
type: "text",
|
|
755
737
|
placeholder: t("All"),
|
|
756
738
|
value: r ? t(n ? "True" : "False") : ""
|
|
757
|
-
}), r ? /* @__PURE__ */
|
|
739
|
+
}), r ? /* @__PURE__ */ K(Xe, { onClick: (t) => {
|
|
758
740
|
t.stopPropagation(), e.setFilterValue(() => void 0);
|
|
759
|
-
} }) : /* @__PURE__ */
|
|
741
|
+
} }) : /* @__PURE__ */ K(E, {
|
|
760
742
|
size: 12,
|
|
761
743
|
className: Ye
|
|
762
744
|
})]
|
|
763
745
|
})
|
|
764
746
|
});
|
|
765
747
|
}, et = ({ column: e }) => {
|
|
766
|
-
let { t } =
|
|
767
|
-
return /* @__PURE__ */
|
|
748
|
+
let { t } = W(Q), n = e.getFilterValue() ?? "";
|
|
749
|
+
return /* @__PURE__ */ q("div", {
|
|
768
750
|
className: Je,
|
|
769
|
-
children: [/* @__PURE__ */
|
|
751
|
+
children: [/* @__PURE__ */ K(B.Control, {
|
|
770
752
|
size: "sm",
|
|
771
753
|
className: "aa-table-filter-input",
|
|
772
754
|
type: "text",
|
|
@@ -775,40 +757,40 @@ var Je = "position-relative w-100", Ye = "position-absolute top-50 end-0 transla
|
|
|
775
757
|
onChange: (t) => {
|
|
776
758
|
e.setFilterValue(t.target.value ? t.target.value : "");
|
|
777
759
|
}
|
|
778
|
-
}), n ? /* @__PURE__ */
|
|
760
|
+
}), n ? /* @__PURE__ */ K(Xe, { onClick: () => e.setFilterValue("") }) : /* @__PURE__ */ K(k, {
|
|
779
761
|
size: 12,
|
|
780
762
|
className: Ye
|
|
781
763
|
})]
|
|
782
764
|
});
|
|
783
765
|
}, tt = ({ column: e }) => {
|
|
784
|
-
let { t } =
|
|
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({
|
|
785
767
|
value: t,
|
|
786
768
|
label: s(t)
|
|
787
769
|
})), e), []);
|
|
788
|
-
return /* @__PURE__ */
|
|
770
|
+
return /* @__PURE__ */ K(_e, {
|
|
789
771
|
trigger: "click",
|
|
790
772
|
placement: "bottom-start",
|
|
791
773
|
rootClose: !0,
|
|
792
|
-
overlay: /* @__PURE__ */
|
|
774
|
+
overlay: /* @__PURE__ */ K(z, {
|
|
793
775
|
show: !0,
|
|
794
776
|
drop: "down-centered",
|
|
795
|
-
children: /* @__PURE__ */
|
|
777
|
+
children: /* @__PURE__ */ K(z.Menu, {
|
|
796
778
|
className: "aa-table-filter-dropdown overflow-y-auto",
|
|
797
|
-
children: c.length > 0 ? c.map((t) => /* @__PURE__ */
|
|
779
|
+
children: c.length > 0 ? c.map((t) => /* @__PURE__ */ K(z.Item, {
|
|
798
780
|
className: "text-capitalize",
|
|
799
781
|
onClick: () => {
|
|
800
782
|
e.setFilterValue(t.value ? t.value : ""), document.body.click();
|
|
801
783
|
},
|
|
802
784
|
children: t.label
|
|
803
|
-
}, t.value)) : /* @__PURE__ */
|
|
785
|
+
}, t.value)) : /* @__PURE__ */ K(z.Item, {
|
|
804
786
|
disabled: !0,
|
|
805
787
|
children: t("No matching options")
|
|
806
788
|
})
|
|
807
789
|
})
|
|
808
790
|
}),
|
|
809
|
-
children: /* @__PURE__ */
|
|
791
|
+
children: /* @__PURE__ */ q("div", {
|
|
810
792
|
className: Je,
|
|
811
|
-
children: [/* @__PURE__ */
|
|
793
|
+
children: [/* @__PURE__ */ K(B.Control, {
|
|
812
794
|
size: "sm",
|
|
813
795
|
className: "aa-table-filter-input",
|
|
814
796
|
type: "text",
|
|
@@ -821,9 +803,9 @@ var Je = "position-relative w-100", Ye = "position-absolute top-50 end-0 transla
|
|
|
821
803
|
onChange: (t) => {
|
|
822
804
|
e.setFilterValue(t.target.value ? t.target.value : "");
|
|
823
805
|
}
|
|
824
|
-
}), a ? /* @__PURE__ */
|
|
806
|
+
}), a ? /* @__PURE__ */ K(Xe, { onClick: (t) => {
|
|
825
807
|
t.stopPropagation(), r(!1), e.setFilterValue(() => void 0);
|
|
826
|
-
} }) : /* @__PURE__ */
|
|
808
|
+
} }) : /* @__PURE__ */ K(E, {
|
|
827
809
|
size: 12,
|
|
828
810
|
className: Ye
|
|
829
811
|
})]
|
|
@@ -831,29 +813,29 @@ var Je = "position-relative w-100", Ye = "position-absolute top-50 end-0 transla
|
|
|
831
813
|
});
|
|
832
814
|
}, nt = ({ column: e, table: t }) => {
|
|
833
815
|
let n = t.getPreFilteredRowModel().flatRows[0]?.getValue(e.id);
|
|
834
|
-
return
|
|
816
|
+
return K(typeof n == "number" ? Qe : typeof n == "boolean" ? $e : typeof n == "object" ? et : tt, { column: e });
|
|
835
817
|
};
|
|
836
818
|
// src/Components/Base/BaseTable/BaseTableHeader.tsx
|
|
837
819
|
function rt({ table: e, enableFilters: t = !0 }) {
|
|
838
|
-
return /* @__PURE__ */
|
|
820
|
+
return /* @__PURE__ */ K(G, { children: e.getHeaderGroups().map((n) => {
|
|
839
821
|
let r = t !== !1 && n.headers.some((e) => e.column.getCanFilter());
|
|
840
|
-
return /* @__PURE__ */
|
|
822
|
+
return /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K("tr", { children: n.headers.map((e) => {
|
|
841
823
|
let t = e.column.getCanSort(), n = e.column.getIsSorted(), r = e.column.columnDef.meta?.align === "right";
|
|
842
|
-
return /* @__PURE__ */
|
|
824
|
+
return /* @__PURE__ */ K("th", {
|
|
843
825
|
colSpan: e.colSpan,
|
|
844
826
|
onClick: t ? e.column.getToggleSortingHandler() : void 0,
|
|
845
827
|
className: `aa-table-heading-cell ${t ? "aa-table-sortable user-select-none" : ""} ${r ? "text-end" : ""}`,
|
|
846
|
-
children: e.isPlaceholder ? null : /* @__PURE__ */
|
|
828
|
+
children: e.isPlaceholder ? null : /* @__PURE__ */ q("div", {
|
|
847
829
|
className: `d-flex align-items-center gap-2 ${r ? "justify-content-end text-end" : ""}`,
|
|
848
|
-
children: [_(e.column.columnDef.header, e.getContext()), t && /* @__PURE__ */
|
|
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" }) })]
|
|
849
831
|
})
|
|
850
832
|
}, e.id);
|
|
851
|
-
}) }), r && /* @__PURE__ */
|
|
833
|
+
}) }), r && /* @__PURE__ */ K("tr", {
|
|
852
834
|
className: "aa-table-filter-row",
|
|
853
|
-
children: n.headers.map((t) => /* @__PURE__ */
|
|
835
|
+
children: n.headers.map((t) => /* @__PURE__ */ K("th", {
|
|
854
836
|
colSpan: t.colSpan,
|
|
855
837
|
className: "aa-table-filter-cell px-3 py-1",
|
|
856
|
-
children: t.column.getCanFilter() ? /* @__PURE__ */
|
|
838
|
+
children: t.column.getCanFilter() ? /* @__PURE__ */ K(nt, {
|
|
857
839
|
column: t.column,
|
|
858
840
|
table: e
|
|
859
841
|
}) : null
|
|
@@ -872,16 +854,16 @@ var it = (e, t) => {
|
|
|
872
854
|
};
|
|
873
855
|
// src/Utils/bootsTrap.tsx
|
|
874
856
|
function at(e) {
|
|
875
|
-
return /* @__PURE__ */
|
|
857
|
+
return /* @__PURE__ */ K("div", {
|
|
876
858
|
className: "aa-tooltip-container",
|
|
877
|
-
children: /* @__PURE__ */
|
|
859
|
+
children: /* @__PURE__ */ K("span", { children: e })
|
|
878
860
|
});
|
|
879
861
|
}
|
|
880
862
|
function ot(e, t) {
|
|
881
|
-
return /* @__PURE__ */
|
|
863
|
+
return /* @__PURE__ */ K(_e, {
|
|
882
864
|
placement: "auto",
|
|
883
865
|
trigger: ["hover", "focus"],
|
|
884
|
-
overlay: /* @__PURE__ */
|
|
866
|
+
overlay: /* @__PURE__ */ K(ye, {
|
|
885
867
|
id: "aa-react-tooltip",
|
|
886
868
|
className: "aa-tooltip",
|
|
887
869
|
children: e
|
|
@@ -892,7 +874,7 @@ function ot(e, t) {
|
|
|
892
874
|
// src/Utils/format.ts
|
|
893
875
|
function st(e, t) {
|
|
894
876
|
if (!e) return "N/A";
|
|
895
|
-
let n =
|
|
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 = {
|
|
896
878
|
...r || i ? {} : {
|
|
897
879
|
dateStyle: "medium",
|
|
898
880
|
timeStyle: "short"
|
|
@@ -930,7 +912,7 @@ function ct(e) {
|
|
|
930
912
|
unit: "second",
|
|
931
913
|
seconds: 1
|
|
932
914
|
}
|
|
933
|
-
], i = r.find((e) => Math.abs(n) >= e.seconds) ?? r[r.length - 1], a = Math.round(n / i.seconds), o =
|
|
915
|
+
], i = r.find((e) => Math.abs(n) >= e.seconds) ?? r[r.length - 1], a = Math.round(n / i.seconds), o = Ae.language || "en";
|
|
934
916
|
return new Intl.RelativeTimeFormat(o, { numeric: "auto" }).format(a, i.unit);
|
|
935
917
|
}
|
|
936
918
|
function lt(e, t = "Done") {
|
|
@@ -939,7 +921,7 @@ function lt(e, t = "Done") {
|
|
|
939
921
|
return isNaN(n.getTime()) ? "N/A" : n.getTime() <= Date.now() ? t : ct(n);
|
|
940
922
|
}
|
|
941
923
|
function ut(e, t, n) {
|
|
942
|
-
let r = t ||
|
|
924
|
+
let r = t || Ae.language || "en";
|
|
943
925
|
return new Intl.NumberFormat(r, n).format(e);
|
|
944
926
|
}
|
|
945
927
|
function dt(e, t = "", n, r) {
|
|
@@ -951,12 +933,12 @@ function ft(e) {
|
|
|
951
933
|
}
|
|
952
934
|
// src/Components/Base/BaseTable/BaseTablePages.tsx
|
|
953
935
|
var pt = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, showExport: i = !0 }) => {
|
|
954
|
-
let { t: a } =
|
|
955
|
-
return /* @__PURE__ */
|
|
936
|
+
let { t: a } = W(Q), o = Math.max(1, e.getPageCount());
|
|
937
|
+
return /* @__PURE__ */ K("div", { children: /* @__PURE__ */ q(I, {
|
|
956
938
|
size: "sm",
|
|
957
939
|
className: "z-0",
|
|
958
940
|
children: [
|
|
959
|
-
r && /* @__PURE__ */
|
|
941
|
+
r && /* @__PURE__ */ K(F, {
|
|
960
942
|
size: "sm",
|
|
961
943
|
variant: "primary",
|
|
962
944
|
children: a("Page {{page}} of {{total}}", {
|
|
@@ -964,16 +946,16 @@ var pt = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, s
|
|
|
964
946
|
total: o
|
|
965
947
|
})
|
|
966
948
|
}),
|
|
967
|
-
t ? ot(a("Refreshing Data"), /* @__PURE__ */
|
|
949
|
+
t ? ot(a("Refreshing Data"), /* @__PURE__ */ K(F, {
|
|
968
950
|
size: "sm",
|
|
969
951
|
variant: "primary",
|
|
970
|
-
children: /* @__PURE__ */
|
|
971
|
-
})) : ot(a("Data Loaded: {{date}}", { date: st((/* @__PURE__ */ new Date()).toISOString()) }), /* @__PURE__ */
|
|
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, {
|
|
972
954
|
size: "sm",
|
|
973
955
|
variant: "primary",
|
|
974
|
-
children: /* @__PURE__ */
|
|
956
|
+
children: /* @__PURE__ */ K("i", { className: "far fa-check-circle" })
|
|
975
957
|
})),
|
|
976
|
-
i && /* @__PURE__ */
|
|
958
|
+
i && /* @__PURE__ */ K(F, {
|
|
977
959
|
size: "sm",
|
|
978
960
|
variant: "primary",
|
|
979
961
|
onClick: () => it(e, n ?? "ExportedData.csv"),
|
|
@@ -981,7 +963,7 @@ var pt = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, s
|
|
|
981
963
|
})
|
|
982
964
|
]
|
|
983
965
|
}) });
|
|
984
|
-
}, mt =
|
|
966
|
+
}, mt = te({
|
|
985
967
|
columnFilteringFeature: o,
|
|
986
968
|
columnFacetingFeature: a,
|
|
987
969
|
columnSizingFeature: s,
|
|
@@ -997,46 +979,46 @@ var pt = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, s
|
|
|
997
979
|
facetedMinMaxValues: u(),
|
|
998
980
|
filterFns: g,
|
|
999
981
|
sortFns: ee
|
|
1000
|
-
}), ht = () => l(), gt = ({ message: e, className: t = "", spinnerClassName: n = "" } = {}) => /* @__PURE__ */
|
|
982
|
+
}), ht = () => l(), gt = ({ message: e, className: t = "", spinnerClassName: n = "" } = {}) => /* @__PURE__ */ q("div", {
|
|
1001
983
|
className: `d-flex flex-column align-items-center justify-content-center ${t}`,
|
|
1002
|
-
children: [/* @__PURE__ */
|
|
984
|
+
children: [/* @__PURE__ */ K("div", {
|
|
1003
985
|
className: `spinner-border text-info ${n}`,
|
|
1004
986
|
role: "status",
|
|
1005
|
-
children: /* @__PURE__ */
|
|
987
|
+
children: /* @__PURE__ */ K("span", {
|
|
1006
988
|
className: "visually-hidden",
|
|
1007
989
|
children: "Loading..."
|
|
1008
990
|
})
|
|
1009
|
-
}), e && /* @__PURE__ */
|
|
1010
|
-
}), _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:
|
|
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 = [
|
|
1011
993
|
10,
|
|
1012
994
|
25,
|
|
1013
995
|
50,
|
|
1014
996
|
100
|
|
1015
|
-
], getRowClassName:
|
|
1016
|
-
let
|
|
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 && {
|
|
1017
999
|
pageIndex: r.page - 1,
|
|
1018
1000
|
pageSize: r.pageSize
|
|
1019
|
-
},
|
|
1001
|
+
}, j = S({
|
|
1020
1002
|
features: mt,
|
|
1021
1003
|
data: s,
|
|
1022
1004
|
columns: c,
|
|
1023
|
-
getRowId:
|
|
1005
|
+
getRowId: D,
|
|
1024
1006
|
state: {
|
|
1025
|
-
...
|
|
1026
|
-
...
|
|
1007
|
+
...E === void 0 ? {} : { rowSelection: E },
|
|
1008
|
+
...A ? { pagination: A } : {}
|
|
1027
1009
|
},
|
|
1028
|
-
...r &&
|
|
1010
|
+
...r && A ? {
|
|
1029
1011
|
manualPagination: !0,
|
|
1030
1012
|
pageCount: Math.max(1, Math.ceil(r.total / r.pageSize)),
|
|
1031
1013
|
enableSorting: !1,
|
|
1032
1014
|
enableColumnFilters: !1,
|
|
1033
1015
|
onPaginationChange: (e) => {
|
|
1034
|
-
let t = v(e,
|
|
1035
|
-
t.pageSize ===
|
|
1016
|
+
let t = v(e, A);
|
|
1017
|
+
t.pageSize === A.pageSize ? t.pageIndex !== A.pageIndex && r.onPageChange(t.pageIndex + 1) : r.onPageSizeChange(t.pageSize);
|
|
1036
1018
|
}
|
|
1037
1019
|
} : {},
|
|
1038
|
-
onRowSelectionChange:
|
|
1039
|
-
enableRowSelection:
|
|
1020
|
+
onRowSelectionChange: ce,
|
|
1021
|
+
enableRowSelection: le,
|
|
1040
1022
|
debugTable: o,
|
|
1041
1023
|
initialState: {
|
|
1042
1024
|
...l,
|
|
@@ -1046,55 +1028,55 @@ var pt = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, s
|
|
|
1046
1028
|
...l?.pagination
|
|
1047
1029
|
}
|
|
1048
1030
|
}
|
|
1049
|
-
}), { rows:
|
|
1050
|
-
return /* @__PURE__ */
|
|
1051
|
-
className: `aa-table-shell mt-2 ${
|
|
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 ?? ""}`,
|
|
1052
1034
|
children: [
|
|
1053
1035
|
m,
|
|
1054
|
-
/* @__PURE__ */
|
|
1055
|
-
className: `aa-table-scroll ${t &&
|
|
1036
|
+
/* @__PURE__ */ K("div", {
|
|
1037
|
+
className: `aa-table-scroll ${t && M.length > 0 ? "opacity-50 pe-none" : ""}`,
|
|
1056
1038
|
"aria-busy": t,
|
|
1057
|
-
children: /* @__PURE__ */
|
|
1058
|
-
className: `aa-table w-100 text-start ${
|
|
1039
|
+
children: /* @__PURE__ */ q("table", {
|
|
1040
|
+
className: `aa-table w-100 text-start ${N ? "aa-table-light" : ""} ${b ?? ""}`,
|
|
1059
1041
|
children: [
|
|
1060
|
-
/* @__PURE__ */
|
|
1042
|
+
/* @__PURE__ */ K("thead", {
|
|
1061
1043
|
className: `aa-table-head ${x ?? ""}`,
|
|
1062
|
-
children: /* @__PURE__ */
|
|
1063
|
-
table:
|
|
1064
|
-
enableFilters:
|
|
1044
|
+
children: /* @__PURE__ */ K(rt, {
|
|
1045
|
+
table: j,
|
|
1046
|
+
enableFilters: re
|
|
1065
1047
|
})
|
|
1066
1048
|
}),
|
|
1067
|
-
/* @__PURE__ */
|
|
1049
|
+
/* @__PURE__ */ K("tbody", {
|
|
1068
1050
|
className: `aa-table-body ${ee ?? ""}`,
|
|
1069
|
-
children: a ? /* @__PURE__ */
|
|
1070
|
-
colSpan:
|
|
1051
|
+
children: a ? /* @__PURE__ */ K("tr", { children: /* @__PURE__ */ K("td", {
|
|
1052
|
+
colSpan: me,
|
|
1071
1053
|
className: _t,
|
|
1072
|
-
children:
|
|
1073
|
-
}) }) : t &&
|
|
1074
|
-
colSpan:
|
|
1054
|
+
children: k("Something went wrong.")
|
|
1055
|
+
}) }) : t && M.length === 0 ? /* @__PURE__ */ K("tr", { children: /* @__PURE__ */ K("td", {
|
|
1056
|
+
colSpan: me,
|
|
1075
1057
|
className: _t,
|
|
1076
|
-
children: /* @__PURE__ */
|
|
1077
|
-
}) }) :
|
|
1078
|
-
colSpan:
|
|
1058
|
+
children: /* @__PURE__ */ K(gt, { message: n })
|
|
1059
|
+
}) }) : M.length === 0 ? /* @__PURE__ */ K("tr", { children: /* @__PURE__ */ K("td", {
|
|
1060
|
+
colSpan: me,
|
|
1079
1061
|
className: _t,
|
|
1080
|
-
children: p ?? f ??
|
|
1081
|
-
}) }) :
|
|
1082
|
-
onClick:
|
|
1083
|
-
className: `aa-table-row ${
|
|
1062
|
+
children: p ?? f ?? k("No Data Available")
|
|
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 ?? ""}`,
|
|
1084
1066
|
children: e.getVisibleCells().map((e) => {
|
|
1085
1067
|
let t = e.column.columnDef.meta?.align === "right";
|
|
1086
|
-
return /* @__PURE__ */
|
|
1068
|
+
return /* @__PURE__ */ K("td", {
|
|
1087
1069
|
className: `aa-table-cell align-middle ${t ? "text-end" : ""}`,
|
|
1088
1070
|
children: _(e.column.columnDef.cell, e.getContext())
|
|
1089
1071
|
}, e.id);
|
|
1090
1072
|
})
|
|
1091
1073
|
}, e.id))
|
|
1092
1074
|
}),
|
|
1093
|
-
g && !a &&
|
|
1094
|
-
className: `aa-table-foot ${
|
|
1095
|
-
children:
|
|
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) => {
|
|
1096
1078
|
let t = e.column.columnDef.meta?.align === "right";
|
|
1097
|
-
return /* @__PURE__ */
|
|
1079
|
+
return /* @__PURE__ */ K("td", {
|
|
1098
1080
|
colSpan: e.colSpan,
|
|
1099
1081
|
className: `aa-table-cell align-middle ${t ? "text-end" : ""}`,
|
|
1100
1082
|
children: e.isPlaceholder ? null : _(e.column.columnDef.footer, e.getContext())
|
|
@@ -1104,107 +1086,107 @@ var pt = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, s
|
|
|
1104
1086
|
]
|
|
1105
1087
|
})
|
|
1106
1088
|
}),
|
|
1107
|
-
/* @__PURE__ */
|
|
1108
|
-
className: `aa-table-footer d-flex flex-column flex-md-row align-items-center justify-content-between gap-3 p-3 ${
|
|
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 ?? ""}`,
|
|
1109
1091
|
children: [
|
|
1110
|
-
/* @__PURE__ */
|
|
1092
|
+
/* @__PURE__ */ q("div", {
|
|
1111
1093
|
className: "d-flex align-items-center justify-content-between gap-3 align-self-stretch align-self-md-auto",
|
|
1112
|
-
children: [/* @__PURE__ */
|
|
1094
|
+
children: [/* @__PURE__ */ q("div", {
|
|
1113
1095
|
className: "d-flex align-items-center gap-3",
|
|
1114
|
-
children: [/* @__PURE__ */
|
|
1096
|
+
children: [/* @__PURE__ */ q("div", {
|
|
1115
1097
|
className: "d-flex align-items-center gap-2",
|
|
1116
|
-
children: [/* @__PURE__ */
|
|
1098
|
+
children: [/* @__PURE__ */ K("span", { children: k("Page Size:") }), /* @__PURE__ */ q(B.Select, {
|
|
1117
1099
|
size: "sm",
|
|
1118
|
-
value:
|
|
1100
|
+
value: pe,
|
|
1119
1101
|
disabled: t,
|
|
1120
|
-
onChange: (e) =>
|
|
1102
|
+
onChange: (e) => j.setPageSize(Number(e.target.value)),
|
|
1121
1103
|
className: "aa-table-select w-auto",
|
|
1122
|
-
children: [
|
|
1104
|
+
children: [ne.map((e) => /* @__PURE__ */ K("option", {
|
|
1123
1105
|
value: e,
|
|
1124
1106
|
children: e
|
|
1125
|
-
}, e)), !r && /* @__PURE__ */
|
|
1107
|
+
}, e)), !r && /* @__PURE__ */ K("option", {
|
|
1126
1108
|
value: 1e6,
|
|
1127
|
-
children:
|
|
1109
|
+
children: k("Show All")
|
|
1128
1110
|
})]
|
|
1129
1111
|
})]
|
|
1130
|
-
}), r && /* @__PURE__ */
|
|
1112
|
+
}), r && /* @__PURE__ */ K("span", {
|
|
1131
1113
|
className: "aa-table-total",
|
|
1132
|
-
children: r.totalText ??
|
|
1114
|
+
children: r.totalText ?? k("Total: {{total}}", { total: r.total.toLocaleString() })
|
|
1133
1115
|
})]
|
|
1134
|
-
}), /* @__PURE__ */
|
|
1135
|
-
table:
|
|
1116
|
+
}), /* @__PURE__ */ K(pt, {
|
|
1117
|
+
table: j,
|
|
1136
1118
|
isFetching: e,
|
|
1137
|
-
fileName:
|
|
1119
|
+
fileName: de,
|
|
1138
1120
|
showPageNumber: !0,
|
|
1139
1121
|
showExport: !r
|
|
1140
1122
|
})]
|
|
1141
1123
|
}),
|
|
1142
|
-
|
|
1124
|
+
P > 1 && /* @__PURE__ */ q("div", {
|
|
1143
1125
|
className: "d-flex align-items-center gap-2",
|
|
1144
1126
|
children: [
|
|
1145
|
-
/* @__PURE__ */
|
|
1127
|
+
/* @__PURE__ */ K(F, {
|
|
1146
1128
|
size: "sm",
|
|
1147
|
-
disabled: t || !
|
|
1148
|
-
onClick: () =>
|
|
1129
|
+
disabled: t || !j.getCanPreviousPage(),
|
|
1130
|
+
onClick: () => j.setPageIndex(0),
|
|
1149
1131
|
className: "aa-table-page-button",
|
|
1150
|
-
title:
|
|
1151
|
-
children: /* @__PURE__ */
|
|
1132
|
+
title: k("First Page"),
|
|
1133
|
+
children: /* @__PURE__ */ K(ie, { className: "aa-table-page-icon" })
|
|
1152
1134
|
}),
|
|
1153
|
-
/* @__PURE__ */
|
|
1135
|
+
/* @__PURE__ */ K(F, {
|
|
1154
1136
|
size: "sm",
|
|
1155
|
-
disabled: t || !
|
|
1156
|
-
onClick: () =>
|
|
1137
|
+
disabled: t || !j.getCanPreviousPage(),
|
|
1138
|
+
onClick: () => j.previousPage(),
|
|
1157
1139
|
className: "aa-table-page-button",
|
|
1158
|
-
title:
|
|
1159
|
-
children: /* @__PURE__ */
|
|
1140
|
+
title: k("Previous Page"),
|
|
1141
|
+
children: /* @__PURE__ */ K(oe, { className: "aa-table-page-icon" })
|
|
1160
1142
|
}),
|
|
1161
|
-
/* @__PURE__ */
|
|
1143
|
+
/* @__PURE__ */ K("span", {
|
|
1162
1144
|
className: "aa-table-page-number px-2 fw-bold",
|
|
1163
|
-
children:
|
|
1164
|
-
page:
|
|
1165
|
-
total:
|
|
1145
|
+
children: k("Page {{page}} of {{total}}", {
|
|
1146
|
+
page: fe + 1,
|
|
1147
|
+
total: P
|
|
1166
1148
|
})
|
|
1167
1149
|
}),
|
|
1168
|
-
/* @__PURE__ */
|
|
1150
|
+
/* @__PURE__ */ K(F, {
|
|
1169
1151
|
size: "sm",
|
|
1170
|
-
disabled: t || !
|
|
1171
|
-
onClick: () =>
|
|
1152
|
+
disabled: t || !j.getCanNextPage(),
|
|
1153
|
+
onClick: () => j.nextPage(),
|
|
1172
1154
|
className: "aa-table-page-button",
|
|
1173
|
-
title:
|
|
1174
|
-
children: /* @__PURE__ */
|
|
1155
|
+
title: k("Next Page"),
|
|
1156
|
+
children: /* @__PURE__ */ K(se, { className: "aa-table-page-icon" })
|
|
1175
1157
|
}),
|
|
1176
|
-
/* @__PURE__ */
|
|
1158
|
+
/* @__PURE__ */ K(F, {
|
|
1177
1159
|
size: "sm",
|
|
1178
|
-
disabled: t || !
|
|
1179
|
-
onClick: () =>
|
|
1160
|
+
disabled: t || !j.getCanNextPage(),
|
|
1161
|
+
onClick: () => j.setPageIndex(P - 1),
|
|
1180
1162
|
className: "aa-table-page-button",
|
|
1181
|
-
title:
|
|
1182
|
-
children: /* @__PURE__ */
|
|
1163
|
+
title: k("Last Page"),
|
|
1164
|
+
children: /* @__PURE__ */ K(ae, { className: "aa-table-page-icon" })
|
|
1183
1165
|
})
|
|
1184
1166
|
]
|
|
1185
1167
|
}),
|
|
1186
|
-
h && /* @__PURE__ */
|
|
1168
|
+
h && /* @__PURE__ */ K("div", {
|
|
1187
1169
|
className: "w-100",
|
|
1188
1170
|
children: h
|
|
1189
1171
|
})
|
|
1190
1172
|
]
|
|
1191
1173
|
}),
|
|
1192
|
-
o && /* @__PURE__ */
|
|
1174
|
+
o && /* @__PURE__ */ q("div", {
|
|
1193
1175
|
className: "p-3",
|
|
1194
|
-
children: [/* @__PURE__ */
|
|
1176
|
+
children: [/* @__PURE__ */ K("div", { children: k("{{count}} Rows", { count: j.getRowModel().rows.length }) }), /* @__PURE__ */ K("pre", { children: JSON.stringify(j.state, null, 2) })]
|
|
1195
1177
|
})
|
|
1196
1178
|
]
|
|
1197
1179
|
});
|
|
1198
1180
|
};
|
|
1199
1181
|
// src/Components/Base/BaseTable/BaseTableForm.tsx
|
|
1200
1182
|
function yt({ table: e }) {
|
|
1201
|
-
let { t } =
|
|
1202
|
-
return /* @__PURE__ */
|
|
1183
|
+
let { t } = W(Q);
|
|
1184
|
+
return /* @__PURE__ */ q("div", {
|
|
1203
1185
|
className: "d-flex align-items-center ms-2",
|
|
1204
|
-
children: [/* @__PURE__ */
|
|
1186
|
+
children: [/* @__PURE__ */ K(B.Label, {
|
|
1205
1187
|
className: "m-0 me-2 text-nowrap",
|
|
1206
1188
|
children: t("Page Size:")
|
|
1207
|
-
}), /* @__PURE__ */
|
|
1189
|
+
}), /* @__PURE__ */ K(B.Select, {
|
|
1208
1190
|
className: "w-auto",
|
|
1209
1191
|
value: e.atoms.pagination.get().pageSize,
|
|
1210
1192
|
onChange: (t) => e.setPageSize(Number(t.target.value)),
|
|
@@ -1214,7 +1196,7 @@ function yt({ table: e }) {
|
|
|
1214
1196
|
60,
|
|
1215
1197
|
100,
|
|
1216
1198
|
1e6
|
|
1217
|
-
].map((e) => /* @__PURE__ */
|
|
1199
|
+
].map((e) => /* @__PURE__ */ K("option", {
|
|
1218
1200
|
value: e,
|
|
1219
1201
|
children: e === 1e6 ? t("Show All") : t("Show {{pageSize}}", { pageSize: e })
|
|
1220
1202
|
}, e))
|
|
@@ -1222,35 +1204,35 @@ function yt({ table: e }) {
|
|
|
1222
1204
|
});
|
|
1223
1205
|
}
|
|
1224
1206
|
// src/Components/Base/BaseTable/BaseTableToolbar.tsx
|
|
1225
|
-
var bt = ({ table: e }) => /* @__PURE__ */
|
|
1207
|
+
var bt = ({ table: e }) => /* @__PURE__ */ q(L, { children: [/* @__PURE__ */ q(I, {
|
|
1226
1208
|
className: "z-0",
|
|
1227
1209
|
children: [
|
|
1228
|
-
/* @__PURE__ */
|
|
1210
|
+
/* @__PURE__ */ K(F, {
|
|
1229
1211
|
variant: "success",
|
|
1230
1212
|
onClick: () => e.setPageIndex(0),
|
|
1231
1213
|
disabled: !e.getCanPreviousPage(),
|
|
1232
|
-
children: /* @__PURE__ */
|
|
1214
|
+
children: /* @__PURE__ */ K("i", { className: "fas fa-angle-double-left" })
|
|
1233
1215
|
}),
|
|
1234
|
-
/* @__PURE__ */
|
|
1216
|
+
/* @__PURE__ */ K(F, {
|
|
1235
1217
|
variant: "success",
|
|
1236
1218
|
onClick: () => e.previousPage(),
|
|
1237
1219
|
disabled: !e.getCanPreviousPage(),
|
|
1238
|
-
children: /* @__PURE__ */
|
|
1220
|
+
children: /* @__PURE__ */ K("i", { className: "fas fa-caret-left" })
|
|
1239
1221
|
}),
|
|
1240
|
-
/* @__PURE__ */
|
|
1222
|
+
/* @__PURE__ */ K(F, {
|
|
1241
1223
|
variant: "success",
|
|
1242
1224
|
onClick: () => e.nextPage(),
|
|
1243
1225
|
disabled: !e.getCanNextPage(),
|
|
1244
|
-
children: /* @__PURE__ */
|
|
1226
|
+
children: /* @__PURE__ */ K("i", { className: "fas fa-caret-right" })
|
|
1245
1227
|
}),
|
|
1246
|
-
/* @__PURE__ */
|
|
1228
|
+
/* @__PURE__ */ K(F, {
|
|
1247
1229
|
variant: "success",
|
|
1248
1230
|
onClick: () => e.setPageIndex(e.getPageCount() - 1),
|
|
1249
1231
|
disabled: !e.getCanNextPage(),
|
|
1250
|
-
children: /* @__PURE__ */
|
|
1232
|
+
children: /* @__PURE__ */ K("i", { className: "fas fa-angle-double-right" })
|
|
1251
1233
|
})
|
|
1252
1234
|
]
|
|
1253
|
-
}), /* @__PURE__ */
|
|
1235
|
+
}), /* @__PURE__ */ K(yt, { table: e })] }), xt = {
|
|
1254
1236
|
small: "sm",
|
|
1255
1237
|
medium: void 0,
|
|
1256
1238
|
large: "lg",
|
|
@@ -1267,7 +1249,7 @@ var bt = ({ table: e }) => /* @__PURE__ */ J(R, { children: [/* @__PURE__ */ J(L
|
|
|
1267
1249
|
};
|
|
1268
1250
|
// src/Components/Base/BaseModal/BaseModal.tsx
|
|
1269
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 }) {
|
|
1270
|
-
let [_, v] =
|
|
1252
|
+
let [_, v] = Y({
|
|
1271
1253
|
title: a,
|
|
1272
1254
|
children: s,
|
|
1273
1255
|
footer: o
|
|
@@ -1278,7 +1260,7 @@ function St({ show: e, onHide: t, onEnter: n, onShow: r, onExited: i, title: a,
|
|
|
1278
1260
|
footer: o === void 0 ? _.footer : o
|
|
1279
1261
|
});
|
|
1280
1262
|
let y = e ? a : _.title ?? a, b = e ? s : _.children ?? s, x = e ? o : _.footer ?? o;
|
|
1281
|
-
return /* @__PURE__ */
|
|
1263
|
+
return /* @__PURE__ */ q(H, {
|
|
1282
1264
|
show: e,
|
|
1283
1265
|
size: c,
|
|
1284
1266
|
onHide: t,
|
|
@@ -1292,28 +1274,28 @@ function St({ show: e, onHide: t, onEnter: n, onShow: r, onExited: i, title: a,
|
|
|
1292
1274
|
dialogClassName: m,
|
|
1293
1275
|
contentClassName: "aa-react",
|
|
1294
1276
|
children: [
|
|
1295
|
-
/* @__PURE__ */
|
|
1277
|
+
/* @__PURE__ */ K(H.Header, {
|
|
1296
1278
|
closeButton: p,
|
|
1297
|
-
children: /* @__PURE__ */
|
|
1279
|
+
children: /* @__PURE__ */ K(H.Title, {
|
|
1298
1280
|
className: g,
|
|
1299
1281
|
children: y
|
|
1300
1282
|
})
|
|
1301
1283
|
}),
|
|
1302
|
-
/* @__PURE__ */
|
|
1284
|
+
/* @__PURE__ */ K(H.Body, {
|
|
1303
1285
|
className: h,
|
|
1304
1286
|
children: b
|
|
1305
1287
|
}),
|
|
1306
|
-
x !== null && /* @__PURE__ */
|
|
1288
|
+
x !== null && /* @__PURE__ */ K(H.Footer, { children: x })
|
|
1307
1289
|
]
|
|
1308
1290
|
});
|
|
1309
1291
|
}
|
|
1310
1292
|
function Ct({ show: e, onHide: t, title: n, children: r, footer: i, hideFooter: a = !1, closeText: o, closeVariant: s = $.closeVariant, ...c }) {
|
|
1311
|
-
let { t: l } =
|
|
1293
|
+
let { t: l } = W(Q), u = /* @__PURE__ */ K(F, {
|
|
1312
1294
|
variant: s,
|
|
1313
1295
|
onClick: t,
|
|
1314
1296
|
children: o ?? l("Close")
|
|
1315
1297
|
});
|
|
1316
|
-
return /* @__PURE__ */
|
|
1298
|
+
return /* @__PURE__ */ K(St, {
|
|
1317
1299
|
...c,
|
|
1318
1300
|
show: e,
|
|
1319
1301
|
onHide: t,
|
|
@@ -1323,60 +1305,60 @@ function Ct({ show: e, onHide: t, title: n, children: r, footer: i, hideFooter:
|
|
|
1323
1305
|
});
|
|
1324
1306
|
}
|
|
1325
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 }) {
|
|
1326
|
-
let { t: g } =
|
|
1327
|
-
t && e && e !==
|
|
1328
|
-
let
|
|
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 = () => {
|
|
1329
1311
|
v(null), b(o ?? {}), ee(!1);
|
|
1330
|
-
}, te = () => {
|
|
1331
|
-
n(!1);
|
|
1332
|
-
}, E = () => {
|
|
1333
|
-
T(), p?.();
|
|
1334
1312
|
}, ne = () => {
|
|
1335
|
-
|
|
1336
|
-
},
|
|
1313
|
+
n(!1);
|
|
1314
|
+
}, T = () => {
|
|
1315
|
+
w(), p?.();
|
|
1316
|
+
}, re = () => {
|
|
1317
|
+
w(), m?.();
|
|
1318
|
+
}, E = async () => {
|
|
1337
1319
|
if (a && !a(y)) ee(!0);
|
|
1338
1320
|
else try {
|
|
1339
1321
|
await r({
|
|
1340
|
-
url:
|
|
1322
|
+
url: C.url,
|
|
1341
1323
|
formData: y
|
|
1342
1324
|
}), n(!1);
|
|
1343
1325
|
} catch (e) {
|
|
1344
1326
|
v(e instanceof Error ? e.message : "An unexpected error occurred.");
|
|
1345
1327
|
}
|
|
1346
|
-
},
|
|
1328
|
+
}, ie = typeof f == "function" ? f({
|
|
1347
1329
|
formData: y,
|
|
1348
1330
|
onChange: b
|
|
1349
|
-
}) : f,
|
|
1350
|
-
variant: l ??
|
|
1331
|
+
}) : f, ae = /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(F, {
|
|
1332
|
+
variant: l ?? C.color ?? $.confirmVariant,
|
|
1351
1333
|
disabled: i,
|
|
1352
|
-
onClick:
|
|
1353
|
-
children: i ? g("Loading…") : c ||
|
|
1354
|
-
}), /* @__PURE__ */
|
|
1334
|
+
onClick: E,
|
|
1335
|
+
children: i ? g("Loading…") : c || C.buttonText || g("Confirm")
|
|
1336
|
+
}), /* @__PURE__ */ K(F, {
|
|
1355
1337
|
variant: d,
|
|
1356
|
-
onClick:
|
|
1338
|
+
onClick: ne,
|
|
1357
1339
|
children: u ?? g("Close")
|
|
1358
1340
|
})] });
|
|
1359
|
-
return /* @__PURE__ */
|
|
1341
|
+
return /* @__PURE__ */ q(St, {
|
|
1360
1342
|
...h,
|
|
1361
1343
|
show: t,
|
|
1362
|
-
onHide:
|
|
1363
|
-
onEnter:
|
|
1364
|
-
onExited:
|
|
1365
|
-
title: s ??
|
|
1366
|
-
footer:
|
|
1367
|
-
children: [_ && /* @__PURE__ */
|
|
1344
|
+
onHide: ne,
|
|
1345
|
+
onEnter: T,
|
|
1346
|
+
onExited: re,
|
|
1347
|
+
title: s ?? C.title,
|
|
1348
|
+
footer: ae,
|
|
1349
|
+
children: [_ && /* @__PURE__ */ K(me, {
|
|
1368
1350
|
variant: "danger",
|
|
1369
1351
|
onClose: () => v(null),
|
|
1370
1352
|
dismissible: !0,
|
|
1371
1353
|
children: _
|
|
1372
|
-
}), /* @__PURE__ */
|
|
1354
|
+
}), /* @__PURE__ */ K("div", {
|
|
1373
1355
|
className: x ? "was-validated" : "",
|
|
1374
|
-
children:
|
|
1356
|
+
children: ie
|
|
1375
1357
|
})]
|
|
1376
1358
|
});
|
|
1377
1359
|
}
|
|
1378
1360
|
function Tt(e) {
|
|
1379
|
-
return e.variant === "confirm" || "showModal" in e || "data" in e ? /* @__PURE__ */
|
|
1361
|
+
return e.variant === "confirm" || "showModal" in e || "data" in e ? /* @__PURE__ */ K(wt, { ...e }) : /* @__PURE__ */ K(Ct, { ...e });
|
|
1380
1362
|
}
|
|
1381
1363
|
// src/Components/Base/BaseModal/BaseModalQuery.tsx
|
|
1382
1364
|
function Et() {
|
|
@@ -1384,15 +1366,19 @@ function Et() {
|
|
|
1384
1366
|
return t ? { "X-CSRFToken": t } : {};
|
|
1385
1367
|
}
|
|
1386
1368
|
function Dt(e) {
|
|
1387
|
-
let t =
|
|
1388
|
-
return
|
|
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({
|
|
1389
1375
|
mutationFn: async (e) => {
|
|
1390
1376
|
let t = await fetch(e, {
|
|
1391
1377
|
method: "POST",
|
|
1392
1378
|
credentials: "same-origin",
|
|
1393
1379
|
headers: Et()
|
|
1394
1380
|
}), n = await t.json();
|
|
1395
|
-
if (!t.ok || n.success !== !0) throw Error(n
|
|
1381
|
+
if (!t.ok || n.success !== !0) throw Error(Dt(n));
|
|
1396
1382
|
return n;
|
|
1397
1383
|
},
|
|
1398
1384
|
onSuccess: async () => {
|
|
@@ -1406,9 +1392,9 @@ function Dt(e) {
|
|
|
1406
1392
|
}
|
|
1407
1393
|
});
|
|
1408
1394
|
}
|
|
1409
|
-
function
|
|
1410
|
-
let t =
|
|
1411
|
-
return
|
|
1395
|
+
function kt(e) {
|
|
1396
|
+
let t = Ne();
|
|
1397
|
+
return je({
|
|
1412
1398
|
mutationFn: async ({ url: e, formData: t = {} }) => {
|
|
1413
1399
|
let n = new URLSearchParams();
|
|
1414
1400
|
for (let [e, r] of Object.entries(t)) typeof r == "boolean" ? r && n.append(e, "on") : n.append(e, r);
|
|
@@ -1421,7 +1407,7 @@ function Ot(e) {
|
|
|
1421
1407
|
},
|
|
1422
1408
|
body: n.toString()
|
|
1423
1409
|
}), i = await r.json();
|
|
1424
|
-
if (!r.ok || i.success !== !0) throw Error(i
|
|
1410
|
+
if (!r.ok || i.success !== !0) throw Error(Dt(i));
|
|
1425
1411
|
return i;
|
|
1426
1412
|
},
|
|
1427
1413
|
onSuccess: async () => {
|
|
@@ -1436,16 +1422,16 @@ function Ot(e) {
|
|
|
1436
1422
|
});
|
|
1437
1423
|
}
|
|
1438
1424
|
// src/Components/Base/BaseModal/useModalState.ts
|
|
1439
|
-
function
|
|
1440
|
-
let [n, r] =
|
|
1425
|
+
function At(e = "modal", t = "id") {
|
|
1426
|
+
let [n, r] = Pe(e, {
|
|
1441
1427
|
clearOnDefault: !0,
|
|
1442
1428
|
defaultValue: ""
|
|
1443
|
-
}), [i, a] =
|
|
1429
|
+
}), [i, a] = Pe(t, {
|
|
1444
1430
|
clearOnDefault: !0,
|
|
1445
1431
|
defaultValue: ""
|
|
1446
|
-
}), o =
|
|
1432
|
+
}), o = J((e, t) => {
|
|
1447
1433
|
r(e), t !== void 0 && a(t);
|
|
1448
|
-
}, [r, a]), s =
|
|
1434
|
+
}, [r, a]), s = J(() => {
|
|
1449
1435
|
r(""), a("");
|
|
1450
1436
|
}, [r, a]);
|
|
1451
1437
|
return {
|
|
@@ -1457,17 +1443,17 @@ function kt(e = "modal", t = "id") {
|
|
|
1457
1443
|
};
|
|
1458
1444
|
}
|
|
1459
1445
|
// src/Components/Base/Loader/ErrorLoader.tsx
|
|
1460
|
-
var
|
|
1446
|
+
var jt = ({ message: e, title: t, className: n = "", iconClassName: r = "" } = {}) => /* @__PURE__ */ q("div", {
|
|
1461
1447
|
className: `d-flex flex-column align-items-center justify-content-center ${n}`,
|
|
1462
1448
|
children: [
|
|
1463
|
-
/* @__PURE__ */
|
|
1449
|
+
/* @__PURE__ */ K("span", {
|
|
1464
1450
|
className: "aa-shake d-inline-block",
|
|
1465
|
-
children: /* @__PURE__ */
|
|
1451
|
+
children: /* @__PURE__ */ K("i", { className: `fas fa-exclamation-triangle text-danger display-1 ${r}` })
|
|
1466
1452
|
}),
|
|
1467
|
-
t && /* @__PURE__ */
|
|
1468
|
-
e && /* @__PURE__ */
|
|
1453
|
+
t && /* @__PURE__ */ K("h3", { children: t }),
|
|
1454
|
+
e && /* @__PURE__ */ K("p", { children: e })
|
|
1469
1455
|
]
|
|
1470
|
-
}),
|
|
1456
|
+
}), Mt = class extends we {
|
|
1471
1457
|
constructor(e) {
|
|
1472
1458
|
super(e), this.state = {
|
|
1473
1459
|
hasError: !1,
|
|
@@ -1486,15 +1472,15 @@ var At = ({ message: e, title: t, className: n = "", iconClassName: r = "" } = {
|
|
|
1486
1472
|
render() {
|
|
1487
1473
|
if (this.state.hasError) {
|
|
1488
1474
|
let { t: e, traceClassName: t = "" } = this.props;
|
|
1489
|
-
return /* @__PURE__ */
|
|
1490
|
-
/* @__PURE__ */
|
|
1475
|
+
return /* @__PURE__ */ q(G, { children: [
|
|
1476
|
+
/* @__PURE__ */ K(jt, {
|
|
1491
1477
|
title: this.state.title,
|
|
1492
1478
|
message: this.state.message
|
|
1493
1479
|
}),
|
|
1494
|
-
/* @__PURE__ */
|
|
1495
|
-
/* @__PURE__ */
|
|
1480
|
+
/* @__PURE__ */ K("h1", { children: e("Something went wrong.") }),
|
|
1481
|
+
/* @__PURE__ */ K("div", {
|
|
1496
1482
|
className: "d-flex justify-content-center",
|
|
1497
|
-
children: /* @__PURE__ */
|
|
1483
|
+
children: /* @__PURE__ */ K("pre", {
|
|
1498
1484
|
className: `border mw-100 overflow-auto p-2 ${t}`,
|
|
1499
1485
|
"data-testid": "error-boundary-trace",
|
|
1500
1486
|
children: this.state.trace
|
|
@@ -1504,18 +1490,18 @@ var At = ({ message: e, title: t, className: n = "", iconClassName: r = "" } = {
|
|
|
1504
1490
|
}
|
|
1505
1491
|
return this.props.children;
|
|
1506
1492
|
}
|
|
1507
|
-
},
|
|
1493
|
+
}, Nt = Ce(Q)(Mt);
|
|
1508
1494
|
// src/Components/Base/BaseHeader.tsx
|
|
1509
|
-
function
|
|
1510
|
-
return /* @__PURE__ */
|
|
1495
|
+
function Pt({ name: e = "Header", children: t }) {
|
|
1496
|
+
return /* @__PURE__ */ K(R, {
|
|
1511
1497
|
className: "bg-dark border-secondary mb-3 shadow-sm",
|
|
1512
|
-
children: /* @__PURE__ */
|
|
1498
|
+
children: /* @__PURE__ */ q(R.Body, {
|
|
1513
1499
|
className: "d-flex flex-wrap align-items-center justify-content-between p-3",
|
|
1514
|
-
children: [/* @__PURE__ */
|
|
1500
|
+
children: [/* @__PURE__ */ K("h3", {
|
|
1515
1501
|
id: "section-heading",
|
|
1516
1502
|
className: "h4 mb-0 fw-bold",
|
|
1517
1503
|
children: e
|
|
1518
|
-
}), t && /* @__PURE__ */
|
|
1504
|
+
}), t && /* @__PURE__ */ K("div", {
|
|
1519
1505
|
className: "d-flex flex-wrap align-items-center gap-2",
|
|
1520
1506
|
children: t
|
|
1521
1507
|
})]
|
|
@@ -1523,16 +1509,16 @@ function Nt({ name: e = "Header", children: t }) {
|
|
|
1523
1509
|
});
|
|
1524
1510
|
}
|
|
1525
1511
|
// src/Components/Base/FilterButtonGroup/FilterButtonGroup.tsx
|
|
1526
|
-
function
|
|
1527
|
-
return /* @__PURE__ */
|
|
1512
|
+
function Ft({ options: e, value: t, onChange: n, ariaLabel: r }) {
|
|
1513
|
+
return /* @__PURE__ */ K("div", {
|
|
1528
1514
|
className: "mw-100 overflow-x-auto",
|
|
1529
|
-
children: /* @__PURE__ */
|
|
1515
|
+
children: /* @__PURE__ */ K(I, {
|
|
1530
1516
|
size: "sm",
|
|
1531
1517
|
"aria-label": r,
|
|
1532
1518
|
className: "border border-black",
|
|
1533
1519
|
children: e.map((e) => {
|
|
1534
1520
|
let r = t === e.value;
|
|
1535
|
-
return /* @__PURE__ */
|
|
1521
|
+
return /* @__PURE__ */ q(F, {
|
|
1536
1522
|
variant: r ? "primary" : "secondary",
|
|
1537
1523
|
"aria-pressed": r,
|
|
1538
1524
|
className: "d-inline-flex align-items-center gap-1",
|
|
@@ -1540,7 +1526,7 @@ function Pt({ options: e, value: t, onChange: n, ariaLabel: r }) {
|
|
|
1540
1526
|
children: [
|
|
1541
1527
|
e.icon,
|
|
1542
1528
|
e.label,
|
|
1543
|
-
e.count !== void 0 && /* @__PURE__ */
|
|
1529
|
+
e.count !== void 0 && /* @__PURE__ */ q(G, { children: [" ", /* @__PURE__ */ K(he, {
|
|
1544
1530
|
bg: "secondary",
|
|
1545
1531
|
className: "ms-1",
|
|
1546
1532
|
children: e.count
|
|
@@ -1552,14 +1538,14 @@ function Pt({ options: e, value: t, onChange: n, ariaLabel: r }) {
|
|
|
1552
1538
|
});
|
|
1553
1539
|
}
|
|
1554
1540
|
// src/Components/Base/OwnerPortrait/OwnerPortrait.tsx
|
|
1555
|
-
var
|
|
1556
|
-
corporation:
|
|
1557
|
-
alliance:
|
|
1558
|
-
},
|
|
1541
|
+
var It = {
|
|
1542
|
+
corporation: T,
|
|
1543
|
+
alliance: A
|
|
1544
|
+
}, Lt = {
|
|
1559
1545
|
sm: 16,
|
|
1560
1546
|
md: 20,
|
|
1561
1547
|
lg: 24
|
|
1562
|
-
},
|
|
1548
|
+
}, Rt = ({ src: e, alt: t = "", type: n = "character", size: r = "lg", shape: i = "circle", bordered: a = !1, className: o = "" }) => {
|
|
1563
1549
|
let s = [
|
|
1564
1550
|
`aa-owner-portrait-${r}`,
|
|
1565
1551
|
i === "circle" ? "rounded-circle" : "rounded",
|
|
@@ -1567,122 +1553,122 @@ var Ft = {
|
|
|
1567
1553
|
"flex-shrink-0",
|
|
1568
1554
|
o
|
|
1569
1555
|
].filter(Boolean).join(" ");
|
|
1570
|
-
if (e) return /* @__PURE__ */
|
|
1556
|
+
if (e) return /* @__PURE__ */ K("img", {
|
|
1571
1557
|
src: e,
|
|
1572
1558
|
alt: t,
|
|
1573
1559
|
className: `${s} object-fit-cover`,
|
|
1574
1560
|
loading: "lazy"
|
|
1575
1561
|
});
|
|
1576
|
-
let c =
|
|
1577
|
-
return /* @__PURE__ */
|
|
1562
|
+
let c = It[n] ?? N;
|
|
1563
|
+
return /* @__PURE__ */ K("div", {
|
|
1578
1564
|
className: `${s} bg-secondary text-light d-flex align-items-center justify-content-center`,
|
|
1579
1565
|
role: "img",
|
|
1580
1566
|
"aria-label": t || void 0,
|
|
1581
1567
|
"aria-hidden": !t || void 0,
|
|
1582
|
-
children: /* @__PURE__ */
|
|
1568
|
+
children: /* @__PURE__ */ K(c, { size: Lt[r] })
|
|
1583
1569
|
});
|
|
1584
1570
|
};
|
|
1585
1571
|
// src/Components/Base/OwnerSettings/BaseOwnerCard.tsx
|
|
1586
|
-
function
|
|
1587
|
-
let { t: c } =
|
|
1588
|
-
let e = "aa-owner-status-incomplete", t = c("Incomplete"), n =
|
|
1589
|
-
return l === "ok" ? (e = "aa-owner-status-ok", t = c("OK"), n =
|
|
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", {
|
|
1590
1576
|
className: `aa-owner-status-badge d-inline-flex align-items-center gap-1 px-2 py-1 fw-semibold text-capitalize ${e}`,
|
|
1591
1577
|
children: [
|
|
1592
|
-
(u || d) && /* @__PURE__ */
|
|
1578
|
+
(u || d) && /* @__PURE__ */ q("span", {
|
|
1593
1579
|
className: "aa-pending-dot-container me-1",
|
|
1594
1580
|
"aria-hidden": "true",
|
|
1595
|
-
children: [/* @__PURE__ */
|
|
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" })]
|
|
1596
1582
|
}),
|
|
1597
|
-
/* @__PURE__ */
|
|
1583
|
+
/* @__PURE__ */ K(n, {
|
|
1598
1584
|
size: 12,
|
|
1599
1585
|
"aria-hidden": "true"
|
|
1600
1586
|
}),
|
|
1601
|
-
/* @__PURE__ */
|
|
1587
|
+
/* @__PURE__ */ K("span", { children: t })
|
|
1602
1588
|
]
|
|
1603
1589
|
});
|
|
1604
|
-
}, m = (e.owner_type ?? "").toLowerCase(), h = m === "corporation" ?
|
|
1605
|
-
return /* @__PURE__ */
|
|
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", {
|
|
1606
1592
|
className: `aa-owner-card d-flex flex-column gap-3 p-3 ${f} ${a}`.trim(),
|
|
1607
1593
|
children: [
|
|
1608
|
-
/* @__PURE__ */
|
|
1594
|
+
/* @__PURE__ */ q("div", {
|
|
1609
1595
|
className: "d-flex align-items-center gap-3",
|
|
1610
|
-
children: [/* @__PURE__ */
|
|
1596
|
+
children: [/* @__PURE__ */ K(Rt, {
|
|
1611
1597
|
src: e.avatar_url,
|
|
1612
1598
|
alt: e.name,
|
|
1613
1599
|
type: m,
|
|
1614
1600
|
shape: m === "corporation" ? "rounded" : "circle",
|
|
1615
1601
|
bordered: !0
|
|
1616
|
-
}), /* @__PURE__ */
|
|
1602
|
+
}), /* @__PURE__ */ q("div", {
|
|
1617
1603
|
className: "aa-owner-info flex-grow-1",
|
|
1618
|
-
children: [/* @__PURE__ */
|
|
1604
|
+
children: [/* @__PURE__ */ q("div", {
|
|
1619
1605
|
className: "d-flex align-items-center justify-content-between gap-2",
|
|
1620
|
-
children: [/* @__PURE__ */
|
|
1606
|
+
children: [/* @__PURE__ */ K("h3", {
|
|
1621
1607
|
className: "aa-owner-name m-0 fs-6 fw-semibold text-truncate",
|
|
1622
1608
|
title: e.name,
|
|
1623
1609
|
children: e.name
|
|
1624
|
-
}), /* @__PURE__ */
|
|
1610
|
+
}), /* @__PURE__ */ q("span", {
|
|
1625
1611
|
className: `badge border d-inline-flex align-items-center gap-1 flex-shrink-0 ${_}`,
|
|
1626
|
-
children: [/* @__PURE__ */
|
|
1612
|
+
children: [/* @__PURE__ */ K(h, { size: 11 }), g]
|
|
1627
1613
|
})]
|
|
1628
|
-
}), e.subtitle && /* @__PURE__ */
|
|
1614
|
+
}), e.subtitle && /* @__PURE__ */ K("p", {
|
|
1629
1615
|
className: "aa-owner-subtitle m-0 text-truncate",
|
|
1630
1616
|
children: e.subtitle
|
|
1631
1617
|
})]
|
|
1632
1618
|
})]
|
|
1633
1619
|
}),
|
|
1634
|
-
e.error_message && /* @__PURE__ */
|
|
1620
|
+
e.error_message && /* @__PURE__ */ K("div", {
|
|
1635
1621
|
className: "aa-owner-error-banner px-2 py-1 text-break",
|
|
1636
1622
|
role: "alert",
|
|
1637
1623
|
children: e.error_message
|
|
1638
1624
|
}),
|
|
1639
|
-
e.sections && e.sections.length > 0 && /* @__PURE__ */
|
|
1625
|
+
e.sections && e.sections.length > 0 && /* @__PURE__ */ K("div", {
|
|
1640
1626
|
className: "aa-owner-sections d-flex flex-column gap-1 p-2",
|
|
1641
1627
|
children: e.sections.map((e) => {
|
|
1642
1628
|
let t = "aa-owner-dot-muted";
|
|
1643
|
-
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__ */
|
|
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", {
|
|
1644
1630
|
className: "aa-owner-section-item d-flex align-items-center justify-content-between",
|
|
1645
|
-
children: [/* @__PURE__ */
|
|
1631
|
+
children: [/* @__PURE__ */ q("span", {
|
|
1646
1632
|
className: "d-inline-flex align-items-center gap-2",
|
|
1647
|
-
children: [/* @__PURE__ */
|
|
1633
|
+
children: [/* @__PURE__ */ K("span", {
|
|
1648
1634
|
className: `aa-owner-section-dot flex-shrink-0 rounded-circle ${t}`,
|
|
1649
1635
|
"aria-hidden": "true"
|
|
1650
|
-
}), /* @__PURE__ */
|
|
1651
|
-
}), /* @__PURE__ */
|
|
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") })]
|
|
1652
1638
|
}, e.section);
|
|
1653
1639
|
})
|
|
1654
1640
|
}),
|
|
1655
1641
|
o?.(e),
|
|
1656
|
-
/* @__PURE__ */
|
|
1642
|
+
/* @__PURE__ */ q("div", {
|
|
1657
1643
|
className: "aa-owner-badge-row d-flex align-items-center justify-content-between gap-2 mt-auto pt-2",
|
|
1658
|
-
children: [p(), /* @__PURE__ */
|
|
1644
|
+
children: [p(), /* @__PURE__ */ q("span", {
|
|
1659
1645
|
className: "aa-owner-last-sync d-inline-flex align-items-center gap-1",
|
|
1660
1646
|
title: e.last_sync ? `${c("Last sync")}: ${e.last_sync}` : void 0,
|
|
1661
|
-
children: [/* @__PURE__ */
|
|
1647
|
+
children: [/* @__PURE__ */ K(le, {
|
|
1662
1648
|
size: 12,
|
|
1663
1649
|
"aria-hidden": "true"
|
|
1664
|
-
}), /* @__PURE__ */
|
|
1650
|
+
}), /* @__PURE__ */ K("span", { children: e.last_sync ? e.last_sync.slice(5) : c("Never") })]
|
|
1665
1651
|
})]
|
|
1666
1652
|
}),
|
|
1667
|
-
(r || i || s) && /* @__PURE__ */
|
|
1653
|
+
(r || i || s) && /* @__PURE__ */ q("div", {
|
|
1668
1654
|
className: "d-flex align-items-center justify-content-between gap-2 mt-2 pt-2 border-top border-secondary flex-wrap",
|
|
1669
|
-
children: [/* @__PURE__ */
|
|
1655
|
+
children: [/* @__PURE__ */ K("div", { children: s?.(e) }), /* @__PURE__ */ q("div", {
|
|
1670
1656
|
className: "d-flex align-items-center gap-2 ms-auto",
|
|
1671
|
-
children: [r && /* @__PURE__ */
|
|
1657
|
+
children: [r && /* @__PURE__ */ q(F, {
|
|
1672
1658
|
variant: "secondary",
|
|
1673
1659
|
size: "sm",
|
|
1674
1660
|
className: "d-flex align-items-center gap-1",
|
|
1675
1661
|
disabled: t || n > 0,
|
|
1676
1662
|
onClick: () => r(e.id),
|
|
1677
1663
|
"aria-label": c("Update Owner"),
|
|
1678
|
-
children: [t ? /* @__PURE__ */
|
|
1679
|
-
}), i && /* @__PURE__ */
|
|
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, {
|
|
1680
1666
|
variant: "danger",
|
|
1681
1667
|
size: "sm",
|
|
1682
1668
|
className: "d-flex align-items-center gap-1",
|
|
1683
1669
|
onClick: () => i(e),
|
|
1684
1670
|
"aria-label": c("Delete Owner"),
|
|
1685
|
-
children: [/* @__PURE__ */
|
|
1671
|
+
children: [/* @__PURE__ */ K(de, { size: 13 }), /* @__PURE__ */ K("span", { children: c("Delete") })]
|
|
1686
1672
|
})]
|
|
1687
1673
|
})]
|
|
1688
1674
|
})
|
|
@@ -1690,62 +1676,62 @@ function Rt({ owner: e, isUpdating: t = !1, cooldown: n = 0, onTriggerUpdate: r,
|
|
|
1690
1676
|
});
|
|
1691
1677
|
}
|
|
1692
1678
|
// src/Components/Base/OwnerSettings/MissingOwnerCard.tsx
|
|
1693
|
-
function
|
|
1694
|
-
let { t: i } =
|
|
1695
|
-
return /* @__PURE__ */
|
|
1679
|
+
function Bt({ missing: e, appName: t = "Alliance Auth", actionUrl: n, actionLabel: r }) {
|
|
1680
|
+
let { t: i } = W(Q);
|
|
1681
|
+
return /* @__PURE__ */ q("article", {
|
|
1696
1682
|
className: "aa-owner-card aa-owner-card-missing d-flex flex-column gap-3 p-3",
|
|
1697
1683
|
children: [
|
|
1698
|
-
/* @__PURE__ */
|
|
1684
|
+
/* @__PURE__ */ q("div", {
|
|
1699
1685
|
className: "d-flex align-items-center gap-3",
|
|
1700
|
-
children: [/* @__PURE__ */
|
|
1686
|
+
children: [/* @__PURE__ */ K(Rt, {
|
|
1701
1687
|
src: e.avatar_url,
|
|
1702
1688
|
alt: e.name,
|
|
1703
1689
|
type: e.owner_type,
|
|
1704
1690
|
shape: e.owner_type === "corporation" ? "rounded" : "circle",
|
|
1705
1691
|
bordered: !0
|
|
1706
|
-
}), /* @__PURE__ */
|
|
1692
|
+
}), /* @__PURE__ */ q("div", {
|
|
1707
1693
|
className: "aa-owner-info flex-grow-1",
|
|
1708
|
-
children: [/* @__PURE__ */
|
|
1694
|
+
children: [/* @__PURE__ */ q("div", {
|
|
1709
1695
|
className: "d-flex align-items-center justify-content-between gap-2",
|
|
1710
|
-
children: [/* @__PURE__ */
|
|
1696
|
+
children: [/* @__PURE__ */ K("h3", {
|
|
1711
1697
|
className: "aa-owner-name m-0 fs-6 fw-semibold text-truncate",
|
|
1712
1698
|
children: e.name
|
|
1713
|
-
}), /* @__PURE__ */
|
|
1699
|
+
}), /* @__PURE__ */ q("span", {
|
|
1714
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",
|
|
1715
|
-
children: [/* @__PURE__ */
|
|
1701
|
+
children: [/* @__PURE__ */ K(C, {
|
|
1716
1702
|
size: 11,
|
|
1717
1703
|
"aria-hidden": "true"
|
|
1718
|
-
}), /* @__PURE__ */
|
|
1704
|
+
}), /* @__PURE__ */ K("span", { children: i("Not Registered") })]
|
|
1719
1705
|
})]
|
|
1720
|
-
}), e.subtitle && /* @__PURE__ */
|
|
1706
|
+
}), e.subtitle && /* @__PURE__ */ K("p", {
|
|
1721
1707
|
className: "aa-owner-subtitle m-0 text-truncate",
|
|
1722
1708
|
children: e.subtitle
|
|
1723
1709
|
})]
|
|
1724
1710
|
})]
|
|
1725
1711
|
}),
|
|
1726
|
-
/* @__PURE__ */
|
|
1712
|
+
/* @__PURE__ */ K("p", {
|
|
1727
1713
|
className: "small text-muted mb-0",
|
|
1728
1714
|
children: i("{{name}} is not registered in {{app}}.", {
|
|
1729
1715
|
name: e.name,
|
|
1730
1716
|
app: t
|
|
1731
1717
|
})
|
|
1732
1718
|
}),
|
|
1733
|
-
n && /* @__PURE__ */
|
|
1719
|
+
n && /* @__PURE__ */ K("div", {
|
|
1734
1720
|
className: "d-flex justify-content-end mt-auto pt-2 border-top border-secondary",
|
|
1735
|
-
children: /* @__PURE__ */
|
|
1721
|
+
children: /* @__PURE__ */ q(F, {
|
|
1736
1722
|
href: n,
|
|
1737
1723
|
variant: "primary",
|
|
1738
1724
|
size: "sm",
|
|
1739
1725
|
className: "d-flex align-items-center gap-1",
|
|
1740
|
-
children: [/* @__PURE__ */
|
|
1726
|
+
children: [/* @__PURE__ */ K(O, { size: 13 }), /* @__PURE__ */ K("span", { children: r ?? i("Add to {{app}}", { app: t }) })]
|
|
1741
1727
|
})
|
|
1742
1728
|
})
|
|
1743
1729
|
]
|
|
1744
1730
|
});
|
|
1745
1731
|
}
|
|
1746
1732
|
// src/Components/Base/OwnerSettings/OwnerFilterBar.tsx
|
|
1747
|
-
function
|
|
1748
|
-
let { t: o } =
|
|
1733
|
+
function Vt({ search: e, onSearchChange: t, typeFilter: n, onTypeChange: r, counts: i, searchPlaceholder: a }) {
|
|
1734
|
+
let { t: o } = W(Q), s = [
|
|
1749
1735
|
{
|
|
1750
1736
|
value: "all",
|
|
1751
1737
|
label: o("All"),
|
|
@@ -1767,20 +1753,20 @@ function Bt({ search: e, onSearchChange: t, typeFilter: n, onTypeChange: r, coun
|
|
|
1767
1753
|
count: i.alliance
|
|
1768
1754
|
}
|
|
1769
1755
|
].filter((e) => e.value === "all" || (e.count ?? 0) > 0 || e.value === n);
|
|
1770
|
-
return /* @__PURE__ */
|
|
1756
|
+
return /* @__PURE__ */ q("div", {
|
|
1771
1757
|
className: "d-flex align-items-center justify-content-between flex-wrap gap-3 mb-3",
|
|
1772
|
-
children: [/* @__PURE__ */
|
|
1758
|
+
children: [/* @__PURE__ */ K(Ft, {
|
|
1773
1759
|
options: s,
|
|
1774
1760
|
value: n,
|
|
1775
1761
|
onChange: r,
|
|
1776
1762
|
ariaLabel: o("Filter by owner type")
|
|
1777
|
-
}), /* @__PURE__ */
|
|
1763
|
+
}), /* @__PURE__ */ q(V, {
|
|
1778
1764
|
size: "sm",
|
|
1779
1765
|
className: "aa-owner-filter-search",
|
|
1780
|
-
children: [/* @__PURE__ */
|
|
1766
|
+
children: [/* @__PURE__ */ K(V.Text, { children: /* @__PURE__ */ K(k, {
|
|
1781
1767
|
size: 14,
|
|
1782
1768
|
"aria-hidden": "true"
|
|
1783
|
-
}) }), /* @__PURE__ */
|
|
1769
|
+
}) }), /* @__PURE__ */ K(B.Control, {
|
|
1784
1770
|
type: "search",
|
|
1785
1771
|
value: e,
|
|
1786
1772
|
placeholder: a ?? o("Search owners…"),
|
|
@@ -1791,9 +1777,9 @@ function Bt({ search: e, onSearchChange: t, typeFilter: n, onTypeChange: r, coun
|
|
|
1791
1777
|
});
|
|
1792
1778
|
}
|
|
1793
1779
|
// src/Components/Base/OwnerSettings/BaseOwnerSettingsSection.tsx
|
|
1794
|
-
var
|
|
1795
|
-
function
|
|
1796
|
-
let { t:
|
|
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(() => {
|
|
1797
1783
|
let e = {
|
|
1798
1784
|
all: 0,
|
|
1799
1785
|
character: 0,
|
|
@@ -1803,192 +1789,192 @@ function Ht({ title: e, description: t, icon: n, owners: r, missingOwners: i, is
|
|
|
1803
1789
|
e.all += 1, t && t !== "all" && t in e && (e[t] += 1);
|
|
1804
1790
|
};
|
|
1805
1791
|
for (let e of r ?? []) t(e.owner_type);
|
|
1806
|
-
for (let e of i ?? []) t(
|
|
1792
|
+
for (let e of i ?? []) t(Ht(e));
|
|
1807
1793
|
return e;
|
|
1808
|
-
}, [r, i]),
|
|
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))), [
|
|
1809
1795
|
r,
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
]),
|
|
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))), [
|
|
1813
1799
|
i,
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
]),
|
|
1817
|
-
return /* @__PURE__ */
|
|
1800
|
+
L,
|
|
1801
|
+
I
|
|
1802
|
+
]), H = !a && !o, U = B.length > 0 || V.length > 0;
|
|
1803
|
+
return /* @__PURE__ */ K(R, {
|
|
1818
1804
|
className: `mt-4 border-0 ${u}`.trim(),
|
|
1819
|
-
children: /* @__PURE__ */
|
|
1805
|
+
children: /* @__PURE__ */ q(R.Body, {
|
|
1820
1806
|
className: d,
|
|
1821
1807
|
children: [
|
|
1822
|
-
/* @__PURE__ */
|
|
1808
|
+
/* @__PURE__ */ q(R.Header, {
|
|
1823
1809
|
className: "mb-3 bg-secondary d-flex justify-content-between align-items-center flex-wrap gap-2 rounded",
|
|
1824
|
-
children: [/* @__PURE__ */
|
|
1810
|
+
children: [/* @__PURE__ */ q("div", { children: [/* @__PURE__ */ q("div", {
|
|
1825
1811
|
className: "aa-owner-section-title-wrap d-flex align-items-center gap-2",
|
|
1826
1812
|
children: [
|
|
1827
|
-
n ?? /* @__PURE__ */
|
|
1813
|
+
n ?? /* @__PURE__ */ K(pe, {
|
|
1828
1814
|
size: 20,
|
|
1829
1815
|
"aria-hidden": "true"
|
|
1830
1816
|
}),
|
|
1831
|
-
/* @__PURE__ */
|
|
1817
|
+
/* @__PURE__ */ K("h2", {
|
|
1832
1818
|
className: "aa-owner-section-title m-0 fs-5 fw-bold",
|
|
1833
|
-
children: e ??
|
|
1819
|
+
children: e ?? D("Owner Status")
|
|
1834
1820
|
}),
|
|
1835
|
-
r && /* @__PURE__ */
|
|
1821
|
+
r && /* @__PURE__ */ q("span", {
|
|
1836
1822
|
className: "aa-owner-section-count small",
|
|
1837
1823
|
children: [
|
|
1838
1824
|
"(",
|
|
1839
|
-
|
|
1825
|
+
ge ? `${B.length} / ${r.length}` : r.length,
|
|
1840
1826
|
")"
|
|
1841
1827
|
]
|
|
1842
1828
|
})
|
|
1843
1829
|
]
|
|
1844
|
-
}), /* @__PURE__ */
|
|
1830
|
+
}), /* @__PURE__ */ K("p", {
|
|
1845
1831
|
className: "aa-owner-section-description mt-1 mb-0 small w-100 text-light",
|
|
1846
|
-
children: t ??
|
|
1847
|
-
})] }), m &&
|
|
1832
|
+
children: t ?? D("ESI synchronization status of your linked owners.")
|
|
1833
|
+
})] }), m && P && /* @__PURE__ */ q(F, {
|
|
1848
1834
|
variant: "secondary",
|
|
1849
1835
|
size: "sm",
|
|
1850
1836
|
className: "d-flex align-items-center gap-1",
|
|
1851
1837
|
disabled: h || g > 0,
|
|
1852
1838
|
onClick: m,
|
|
1853
|
-
children: [h ? /* @__PURE__ */
|
|
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") })]
|
|
1854
1840
|
})]
|
|
1855
1841
|
}),
|
|
1856
|
-
_ && /* @__PURE__ */
|
|
1842
|
+
_ && /* @__PURE__ */ K(me, {
|
|
1857
1843
|
variant: _.variant,
|
|
1858
1844
|
className: "py-2 mb-3",
|
|
1859
1845
|
dismissible: !!v,
|
|
1860
1846
|
onClose: v,
|
|
1861
1847
|
children: _.text
|
|
1862
1848
|
}),
|
|
1863
|
-
f &&
|
|
1864
|
-
search:
|
|
1865
|
-
onSearchChange:
|
|
1866
|
-
typeFilter:
|
|
1867
|
-
onTypeChange:
|
|
1868
|
-
counts:
|
|
1849
|
+
f && H && (P || he) && /* @__PURE__ */ K(Vt, {
|
|
1850
|
+
search: A,
|
|
1851
|
+
onSearchChange: j,
|
|
1852
|
+
typeFilter: M,
|
|
1853
|
+
onTypeChange: N,
|
|
1854
|
+
counts: z,
|
|
1869
1855
|
searchPlaceholder: p
|
|
1870
1856
|
}),
|
|
1871
|
-
a && /* @__PURE__ */
|
|
1857
|
+
a && /* @__PURE__ */ q("div", {
|
|
1872
1858
|
className: "aa-loader-container",
|
|
1873
|
-
children: [/* @__PURE__ */
|
|
1859
|
+
children: [/* @__PURE__ */ K("span", { className: "spinner-border" }), /* @__PURE__ */ K("span", { children: D("Loading update statuses…") })]
|
|
1874
1860
|
}),
|
|
1875
|
-
o && /* @__PURE__ */
|
|
1861
|
+
o && /* @__PURE__ */ K(R, {
|
|
1876
1862
|
className: "bg-secondary border-0 shadow-sm",
|
|
1877
1863
|
role: "alert",
|
|
1878
|
-
children: /* @__PURE__ */
|
|
1864
|
+
children: /* @__PURE__ */ K(R.Body, {
|
|
1879
1865
|
className: "aa-owner-error",
|
|
1880
|
-
children: s ??
|
|
1866
|
+
children: s ?? D("Failed to load update status.")
|
|
1881
1867
|
})
|
|
1882
1868
|
}),
|
|
1883
|
-
|
|
1869
|
+
H && !P && !he && /* @__PURE__ */ K(R, {
|
|
1884
1870
|
className: "bg-secondary text-light border-0 shadow-sm",
|
|
1885
|
-
children: /* @__PURE__ */
|
|
1871
|
+
children: /* @__PURE__ */ K(R.Body, {
|
|
1886
1872
|
className: "aa-owner-empty py-4 px-3 text-center small",
|
|
1887
|
-
children: c ??
|
|
1873
|
+
children: c ?? D("Nothing to show.")
|
|
1888
1874
|
})
|
|
1889
1875
|
}),
|
|
1890
|
-
|
|
1876
|
+
H && (P || he) && !U && /* @__PURE__ */ K(R, {
|
|
1891
1877
|
className: "bg-secondary text-light border-0 shadow-sm",
|
|
1892
|
-
children: /* @__PURE__ */
|
|
1878
|
+
children: /* @__PURE__ */ q(R.Body, {
|
|
1893
1879
|
className: "aa-owner-empty py-4 px-3 text-center small",
|
|
1894
|
-
children: [/* @__PURE__ */
|
|
1880
|
+
children: [/* @__PURE__ */ K("p", {
|
|
1895
1881
|
className: "mb-2",
|
|
1896
|
-
children:
|
|
1897
|
-
}), /* @__PURE__ */
|
|
1882
|
+
children: D("No matching owners found.")
|
|
1883
|
+
}), /* @__PURE__ */ K(F, {
|
|
1898
1884
|
variant: "outline-light",
|
|
1899
1885
|
size: "sm",
|
|
1900
1886
|
onClick: () => {
|
|
1901
|
-
|
|
1887
|
+
j(""), N("all");
|
|
1902
1888
|
},
|
|
1903
|
-
children:
|
|
1889
|
+
children: D("Reset filters")
|
|
1904
1890
|
})]
|
|
1905
1891
|
})
|
|
1906
1892
|
}),
|
|
1907
|
-
|
|
1893
|
+
H && B.length > 0 && /* @__PURE__ */ K("div", {
|
|
1908
1894
|
className: "aa-owner-grid d-grid gap-3",
|
|
1909
|
-
children:
|
|
1895
|
+
children: B.map((e) => /* @__PURE__ */ K(zt, {
|
|
1910
1896
|
owner: e,
|
|
1911
1897
|
isUpdating: ee === e.id,
|
|
1912
|
-
cooldown:
|
|
1898
|
+
cooldown: te[e.id] ?? 0,
|
|
1913
1899
|
onTriggerUpdate: !b || b(e) ? y : void 0,
|
|
1914
|
-
onDeleteClick:
|
|
1915
|
-
className:
|
|
1916
|
-
renderCustomContent:
|
|
1917
|
-
renderActions:
|
|
1900
|
+
onDeleteClick: S && (!x || x(e)) ? k : void 0,
|
|
1901
|
+
className: E,
|
|
1902
|
+
renderCustomContent: ie,
|
|
1903
|
+
renderActions: ae
|
|
1918
1904
|
}, `${e.owner_type ?? "owner"}-${e.id}`))
|
|
1919
1905
|
}),
|
|
1920
|
-
|
|
1906
|
+
H && V.length > 0 && /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(R.Header, {
|
|
1921
1907
|
className: "aa-owner-section-title-wrap mt-4 mb-2 rounded d-flex align-items-center gap-2",
|
|
1922
|
-
children: /* @__PURE__ */
|
|
1908
|
+
children: /* @__PURE__ */ q("div", { children: [/* @__PURE__ */ q("div", {
|
|
1923
1909
|
className: "aa-owner-section-title-wrap d-flex align-items-center gap-2",
|
|
1924
1910
|
children: [
|
|
1925
|
-
/* @__PURE__ */
|
|
1911
|
+
/* @__PURE__ */ K(fe, {
|
|
1926
1912
|
size: 20,
|
|
1927
1913
|
"aria-hidden": "true"
|
|
1928
1914
|
}),
|
|
1929
|
-
/* @__PURE__ */
|
|
1915
|
+
/* @__PURE__ */ K("h2", {
|
|
1930
1916
|
className: "aa-owner-section-title m-0 fs-5 fw-bold",
|
|
1931
|
-
children:
|
|
1917
|
+
children: oe ?? D("Missing in {{app}}", { app: l })
|
|
1932
1918
|
}),
|
|
1933
|
-
/* @__PURE__ */
|
|
1919
|
+
/* @__PURE__ */ q("span", {
|
|
1934
1920
|
className: "aa-owner-section-count small",
|
|
1935
1921
|
children: [
|
|
1936
1922
|
"(",
|
|
1937
|
-
|
|
1923
|
+
V.length,
|
|
1938
1924
|
")"
|
|
1939
1925
|
]
|
|
1940
1926
|
})
|
|
1941
1927
|
]
|
|
1942
|
-
}), /* @__PURE__ */
|
|
1928
|
+
}), /* @__PURE__ */ K("p", {
|
|
1943
1929
|
className: "aa-owner-section-description mt-1 mb-0 small w-100 text-light",
|
|
1944
|
-
children:
|
|
1930
|
+
children: se ?? D("The following characters belong to you but are not registered.")
|
|
1945
1931
|
})] })
|
|
1946
|
-
}), /* @__PURE__ */
|
|
1932
|
+
}), /* @__PURE__ */ K("div", {
|
|
1947
1933
|
className: "aa-owner-grid d-grid gap-3",
|
|
1948
|
-
children:
|
|
1934
|
+
children: V.map((e) => /* @__PURE__ */ K(Bt, {
|
|
1949
1935
|
missing: e,
|
|
1950
1936
|
appName: l,
|
|
1951
|
-
actionUrl:
|
|
1952
|
-
actionLabel:
|
|
1953
|
-
}, `${
|
|
1937
|
+
actionUrl: ce,
|
|
1938
|
+
actionLabel: le
|
|
1939
|
+
}, `${Ht(e)}-${e.id}`))
|
|
1954
1940
|
})] }),
|
|
1955
|
-
|
|
1956
|
-
show: !!
|
|
1957
|
-
onHide: () => !
|
|
1941
|
+
S && /* @__PURE__ */ K(Tt, {
|
|
1942
|
+
show: !!O,
|
|
1943
|
+
onHide: () => !C && k(null),
|
|
1958
1944
|
centered: !0,
|
|
1959
|
-
bodyClassName:
|
|
1960
|
-
title: /* @__PURE__ */
|
|
1945
|
+
bodyClassName: re,
|
|
1946
|
+
title: /* @__PURE__ */ q("div", {
|
|
1961
1947
|
className: "d-flex align-items-center gap-2 text-danger",
|
|
1962
|
-
children: [/* @__PURE__ */
|
|
1948
|
+
children: [/* @__PURE__ */ K(de, { size: 20 }), /* @__PURE__ */ K("span", { children: ne ?? D("Delete Owner") })]
|
|
1963
1949
|
}),
|
|
1964
|
-
footer: /* @__PURE__ */
|
|
1950
|
+
footer: /* @__PURE__ */ q("div", {
|
|
1965
1951
|
className: "d-flex align-items-center justify-content-end gap-2 w-100",
|
|
1966
|
-
children: [/* @__PURE__ */
|
|
1952
|
+
children: [/* @__PURE__ */ K(F, {
|
|
1967
1953
|
variant: "secondary",
|
|
1968
|
-
onClick: () =>
|
|
1969
|
-
disabled:
|
|
1970
|
-
children:
|
|
1971
|
-
}), /* @__PURE__ */
|
|
1954
|
+
onClick: () => k(null),
|
|
1955
|
+
disabled: C,
|
|
1956
|
+
children: D("Cancel")
|
|
1957
|
+
}), /* @__PURE__ */ q(F, {
|
|
1972
1958
|
variant: "danger",
|
|
1973
1959
|
onClick: async () => {
|
|
1974
|
-
|
|
1960
|
+
O && S && (await S(O), k(null));
|
|
1975
1961
|
},
|
|
1976
|
-
disabled:
|
|
1962
|
+
disabled: C,
|
|
1977
1963
|
className: "d-flex align-items-center gap-1",
|
|
1978
|
-
children: [/* @__PURE__ */
|
|
1964
|
+
children: [/* @__PURE__ */ K(de, { size: 14 }), /* @__PURE__ */ K("span", { children: D(C ? "Deleting…" : "Confirm Delete") })]
|
|
1979
1965
|
})]
|
|
1980
1966
|
}),
|
|
1981
|
-
children: /* @__PURE__ */
|
|
1967
|
+
children: /* @__PURE__ */ q("div", {
|
|
1982
1968
|
className: "p-3 d-flex align-items-start gap-3",
|
|
1983
|
-
children: [/* @__PURE__ */
|
|
1969
|
+
children: [/* @__PURE__ */ K(w, {
|
|
1984
1970
|
className: "text-danger flex-shrink-0 mt-1",
|
|
1985
1971
|
size: 24
|
|
1986
|
-
}), /* @__PURE__ */
|
|
1972
|
+
}), /* @__PURE__ */ q("div", { children: [/* @__PURE__ */ K("p", {
|
|
1987
1973
|
className: "fw-semibold mb-1",
|
|
1988
|
-
children:
|
|
1989
|
-
}), /* @__PURE__ */
|
|
1974
|
+
children: D("Are you sure you want to delete owner '{{name}}'?", { name: O?.name })
|
|
1975
|
+
}), /* @__PURE__ */ K("div", {
|
|
1990
1976
|
className: "small text-muted",
|
|
1991
|
-
children:
|
|
1977
|
+
children: O && T ? T(O) : D("This action cannot be undone.")
|
|
1992
1978
|
})] })]
|
|
1993
1979
|
})
|
|
1994
1980
|
})
|
|
@@ -1997,12 +1983,12 @@ function Ht({ title: e, description: t, icon: n, owners: r, missingOwners: i, is
|
|
|
1997
1983
|
});
|
|
1998
1984
|
}
|
|
1999
1985
|
// src/Components/Base/OwnerSettings/UnregisteredModal.tsx
|
|
2000
|
-
function
|
|
2001
|
-
let { t: f } =
|
|
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(() => {
|
|
2002
1988
|
let e = p.trim().toLowerCase();
|
|
2003
1989
|
return e ? i.filter((t) => t.name.toLowerCase().includes(e) || (t.subtitle ?? "").toLowerCase().includes(e)) : i;
|
|
2004
1990
|
}, [i, p]);
|
|
2005
|
-
return /* @__PURE__ */
|
|
1991
|
+
return /* @__PURE__ */ q(Tt, {
|
|
2006
1992
|
show: e,
|
|
2007
1993
|
onHide: t,
|
|
2008
1994
|
onExited: () => m(""),
|
|
@@ -2011,31 +1997,31 @@ function Ut({ show: e, onHide: t, title: n, description: r, items: i = [], isLoa
|
|
|
2011
1997
|
scrollable: !0,
|
|
2012
1998
|
title: n,
|
|
2013
1999
|
children: [
|
|
2014
|
-
r && /* @__PURE__ */
|
|
2000
|
+
r && /* @__PURE__ */ K("p", {
|
|
2015
2001
|
className: "small text-muted",
|
|
2016
2002
|
children: r
|
|
2017
2003
|
}),
|
|
2018
|
-
a && /* @__PURE__ */
|
|
2004
|
+
a && /* @__PURE__ */ q("div", {
|
|
2019
2005
|
className: "aa-loader-container",
|
|
2020
|
-
children: [/* @__PURE__ */
|
|
2006
|
+
children: [/* @__PURE__ */ K("span", { className: "spinner-border" }), /* @__PURE__ */ K("span", { children: f("Loading…") })]
|
|
2021
2007
|
}),
|
|
2022
|
-
o && /* @__PURE__ */
|
|
2008
|
+
o && /* @__PURE__ */ K("div", {
|
|
2023
2009
|
className: "aa-owner-error-banner px-2 py-1 text-break",
|
|
2024
2010
|
role: "alert",
|
|
2025
2011
|
children: s ?? f("Failed to load data.")
|
|
2026
2012
|
}),
|
|
2027
|
-
!a && !o && i.length === 0 && /* @__PURE__ */
|
|
2013
|
+
!a && !o && i.length === 0 && /* @__PURE__ */ K("div", {
|
|
2028
2014
|
className: "aa-owner-empty py-4 px-3 text-center small",
|
|
2029
2015
|
children: c ?? f("Nothing to show.")
|
|
2030
2016
|
}),
|
|
2031
|
-
!a && !o && i.length > 0 && /* @__PURE__ */
|
|
2032
|
-
/* @__PURE__ */
|
|
2017
|
+
!a && !o && i.length > 0 && /* @__PURE__ */ q(G, { children: [
|
|
2018
|
+
/* @__PURE__ */ q(V, {
|
|
2033
2019
|
size: "sm",
|
|
2034
2020
|
className: "mb-3",
|
|
2035
|
-
children: [/* @__PURE__ */
|
|
2021
|
+
children: [/* @__PURE__ */ K(V.Text, { children: /* @__PURE__ */ K(k, {
|
|
2036
2022
|
size: 14,
|
|
2037
2023
|
"aria-hidden": "true"
|
|
2038
|
-
}) }), /* @__PURE__ */
|
|
2024
|
+
}) }), /* @__PURE__ */ K(B.Control, {
|
|
2039
2025
|
type: "search",
|
|
2040
2026
|
value: p,
|
|
2041
2027
|
placeholder: l ?? f("Search owners…"),
|
|
@@ -2043,30 +2029,30 @@ function Ut({ show: e, onHide: t, title: n, description: r, items: i = [], isLoa
|
|
|
2043
2029
|
onChange: (e) => m(e.target.value)
|
|
2044
2030
|
})]
|
|
2045
2031
|
}),
|
|
2046
|
-
/* @__PURE__ */
|
|
2032
|
+
/* @__PURE__ */ K("p", {
|
|
2047
2033
|
className: "small text-muted mb-2",
|
|
2048
2034
|
children: f("{{count}} unregistered", { count: h.length })
|
|
2049
2035
|
}),
|
|
2050
|
-
h.length === 0 ? /* @__PURE__ */
|
|
2036
|
+
h.length === 0 ? /* @__PURE__ */ K("div", {
|
|
2051
2037
|
className: "aa-owner-empty py-4 px-3 text-center small",
|
|
2052
2038
|
children: d ?? f("No matching owners found.")
|
|
2053
|
-
}) : /* @__PURE__ */
|
|
2039
|
+
}) : /* @__PURE__ */ K("ul", {
|
|
2054
2040
|
className: "list-unstyled d-flex flex-column gap-2 mb-0",
|
|
2055
|
-
children: h.map((e) => /* @__PURE__ */
|
|
2041
|
+
children: h.map((e) => /* @__PURE__ */ q("li", {
|
|
2056
2042
|
className: "d-flex align-items-center gap-3",
|
|
2057
|
-
children: [e.avatar_url && /* @__PURE__ */
|
|
2043
|
+
children: [e.avatar_url && /* @__PURE__ */ K(Rt, {
|
|
2058
2044
|
src: e.avatar_url,
|
|
2059
2045
|
alt: e.name,
|
|
2060
2046
|
type: e.owner_type,
|
|
2061
2047
|
size: "sm",
|
|
2062
2048
|
shape: e.owner_type === "corporation" ? "rounded" : "circle",
|
|
2063
2049
|
bordered: !0
|
|
2064
|
-
}), /* @__PURE__ */
|
|
2050
|
+
}), /* @__PURE__ */ q("div", {
|
|
2065
2051
|
className: "min-w-0",
|
|
2066
|
-
children: [/* @__PURE__ */
|
|
2052
|
+
children: [/* @__PURE__ */ K("div", {
|
|
2067
2053
|
className: "fw-semibold",
|
|
2068
2054
|
children: e.name
|
|
2069
|
-
}), e.subtitle && /* @__PURE__ */
|
|
2055
|
+
}), e.subtitle && /* @__PURE__ */ K("div", {
|
|
2070
2056
|
className: "small text-muted",
|
|
2071
2057
|
children: e.subtitle
|
|
2072
2058
|
})]
|
|
@@ -2078,48 +2064,48 @@ function Ut({ show: e, onHide: t, title: n, description: r, items: i = [], isLoa
|
|
|
2078
2064
|
});
|
|
2079
2065
|
}
|
|
2080
2066
|
// src/Utils/eveOnline.tsx
|
|
2081
|
-
function
|
|
2067
|
+
function Gt(e, t = 512) {
|
|
2082
2068
|
return `https://images.evetech.net/types/${e}/render?size=${t}`;
|
|
2083
2069
|
}
|
|
2084
|
-
function
|
|
2070
|
+
function Kt(e, t = 512) {
|
|
2085
2071
|
return `https://images.evetech.net/characters/${e}/portrait?size=${t}`;
|
|
2086
2072
|
}
|
|
2087
|
-
function
|
|
2073
|
+
function qt(e, t = 128) {
|
|
2088
2074
|
return `https://images.evetech.net/corporations/${e}/logo?size=${t}`;
|
|
2089
2075
|
}
|
|
2090
|
-
function
|
|
2076
|
+
function Jt(e, t = 128) {
|
|
2091
2077
|
return `https://images.evetech.net/alliances/${e}/logo?size=${t}`;
|
|
2092
2078
|
}
|
|
2093
|
-
function
|
|
2079
|
+
function Yt(e, t = 32) {
|
|
2094
2080
|
return `https://images.evetech.net/types/${e}/icon?size=${t}`;
|
|
2095
2081
|
}
|
|
2096
|
-
var
|
|
2082
|
+
var Xt = (e) => e >= .5 ? "aa-badge-hisec" : e > 0 ? "aa-badge-lowsec" : "aa-badge-nullsec", Zt = (e = /* @__PURE__ */ new Date()) => {
|
|
2097
2083
|
let t = (e) => String(e).padStart(2, "0");
|
|
2098
2084
|
return `${t(e.getUTCHours())}:${t(e.getUTCMinutes())}:${t(e.getUTCSeconds())} EVE`;
|
|
2099
2085
|
};
|
|
2100
|
-
function
|
|
2086
|
+
function Qt({ id: e, name: t, size: n = 12, className: r = "", externalLink: i = !1 }) {
|
|
2101
2087
|
let a = `https://zkillboard.com/kill/${e}/`;
|
|
2102
|
-
return ot(t, /* @__PURE__ */
|
|
2088
|
+
return ot(t, /* @__PURE__ */ q("a", {
|
|
2103
2089
|
href: a,
|
|
2104
2090
|
target: "_blank",
|
|
2105
2091
|
rel: "noopener noreferrer",
|
|
2106
2092
|
className: r,
|
|
2107
|
-
children: [t, i && /* @__PURE__ */
|
|
2093
|
+
children: [t, i && /* @__PURE__ */ K(D, { size: n })]
|
|
2108
2094
|
}));
|
|
2109
2095
|
}
|
|
2110
|
-
function
|
|
2111
|
-
return /* @__PURE__ */
|
|
2112
|
-
src:
|
|
2096
|
+
function $t(e, t = 32) {
|
|
2097
|
+
return /* @__PURE__ */ K("img", {
|
|
2098
|
+
src: Kt(e, t),
|
|
2113
2099
|
className: "rounded"
|
|
2114
2100
|
});
|
|
2115
2101
|
}
|
|
2116
2102
|
// src/Components/Base/Badges/liveStatusHelper.ts
|
|
2117
|
-
function
|
|
2118
|
-
return e ?
|
|
2103
|
+
function en(e) {
|
|
2104
|
+
return e ? Zt(new Date(e)) : "";
|
|
2119
2105
|
}
|
|
2120
|
-
function
|
|
2121
|
-
let [r, i] =
|
|
2122
|
-
return
|
|
2106
|
+
function tn(e, t = !1, n = 2e3) {
|
|
2107
|
+
let [r, i] = Y(!1);
|
|
2108
|
+
return De(() => {
|
|
2123
2109
|
if (t) return;
|
|
2124
2110
|
let e = setTimeout(() => i(!0), 0), r = setTimeout(() => i(!1), n);
|
|
2125
2111
|
return () => {
|
|
@@ -2132,34 +2118,34 @@ function en(e, t = !1, n = 2e3) {
|
|
|
2132
2118
|
]), r;
|
|
2133
2119
|
}
|
|
2134
2120
|
// src/Components/Base/Badges/LiveStatusIndicator.tsx
|
|
2135
|
-
function
|
|
2136
|
-
let { t: f } =
|
|
2137
|
-
return ot(e ? h : p ? f("Loading…") : i ? `${f("Last Fetch")}: ${
|
|
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", {
|
|
2138
2124
|
className: c,
|
|
2139
2125
|
children: [
|
|
2140
|
-
/* @__PURE__ */
|
|
2126
|
+
/* @__PURE__ */ K("span", {
|
|
2141
2127
|
className: `aa-status-dot ${l}`.trim(),
|
|
2142
|
-
children: e ? /* @__PURE__ */
|
|
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" })] })
|
|
2143
2129
|
}),
|
|
2144
2130
|
d,
|
|
2145
|
-
a && /* @__PURE__ */
|
|
2131
|
+
a && /* @__PURE__ */ K("span", {
|
|
2146
2132
|
className: e ? "aa-status-text aa-status-text-error" : u,
|
|
2147
|
-
children: e ? f("Error") : p ? f("Loading…") : i ? `${o} ${
|
|
2133
|
+
children: e ? f("Error") : p ? f("Loading…") : i ? `${o} ${en(i)}` : f("No fetch yet")
|
|
2148
2134
|
})
|
|
2149
2135
|
]
|
|
2150
2136
|
}));
|
|
2151
2137
|
}
|
|
2152
2138
|
// src/Components/Base/Badges/SecurityBadge.tsx
|
|
2153
|
-
function
|
|
2154
|
-
return /* @__PURE__ */
|
|
2155
|
-
className: `sec-badge ${
|
|
2139
|
+
function rn({ sec: e, className: t = "" }) {
|
|
2140
|
+
return /* @__PURE__ */ K("span", {
|
|
2141
|
+
className: `sec-badge ${Xt(e)} ${t}`.trim(),
|
|
2156
2142
|
children: e.toFixed(1)
|
|
2157
2143
|
});
|
|
2158
2144
|
}
|
|
2159
2145
|
// src/Hooks/useCooldown.ts
|
|
2160
|
-
function
|
|
2161
|
-
let [e, t] =
|
|
2162
|
-
return
|
|
2146
|
+
function an() {
|
|
2147
|
+
let [e, t] = Y(0);
|
|
2148
|
+
return De(() => {
|
|
2163
2149
|
if (e <= 0) return;
|
|
2164
2150
|
let n = setInterval(() => {
|
|
2165
2151
|
t((e) => e > 0 ? e - 1 : 0);
|
|
@@ -2167,12 +2153,12 @@ function rn() {
|
|
|
2167
2153
|
return () => clearInterval(n);
|
|
2168
2154
|
}, [e]), {
|
|
2169
2155
|
seconds: e,
|
|
2170
|
-
start:
|
|
2156
|
+
start: J((e) => t(e), [])
|
|
2171
2157
|
};
|
|
2172
2158
|
}
|
|
2173
|
-
function
|
|
2174
|
-
let [e, t] =
|
|
2175
|
-
return
|
|
2159
|
+
function on() {
|
|
2160
|
+
let [e, t] = Y({});
|
|
2161
|
+
return De(() => {
|
|
2176
2162
|
if (!Object.values(e).some((e) => e > 0)) return;
|
|
2177
2163
|
let n = setInterval(() => {
|
|
2178
2164
|
t((e) => {
|
|
@@ -2184,23 +2170,23 @@ function an() {
|
|
|
2184
2170
|
return () => clearInterval(n);
|
|
2185
2171
|
}, [e]), {
|
|
2186
2172
|
cooldowns: e,
|
|
2187
|
-
start:
|
|
2173
|
+
start: J((e, n) => t((t) => ({
|
|
2188
2174
|
...t,
|
|
2189
2175
|
[e]: n
|
|
2190
2176
|
})), [])
|
|
2191
2177
|
};
|
|
2192
2178
|
}
|
|
2193
2179
|
// src/Hooks/useFeedback.ts
|
|
2194
|
-
function
|
|
2195
|
-
let [t, n] =
|
|
2180
|
+
function sn(e = 5e3) {
|
|
2181
|
+
let [t, n] = Y(null), r = ke(null), i = J(() => {
|
|
2196
2182
|
r.current && clearTimeout(r.current), r.current = null, n(null);
|
|
2197
|
-
}, []), a =
|
|
2183
|
+
}, []), a = J((t, i) => {
|
|
2198
2184
|
r.current && clearTimeout(r.current), n({
|
|
2199
2185
|
variant: t,
|
|
2200
2186
|
text: i
|
|
2201
2187
|
}), r.current = setTimeout(() => n(null), e);
|
|
2202
2188
|
}, [e]);
|
|
2203
|
-
return
|
|
2189
|
+
return De(() => () => {
|
|
2204
2190
|
r.current && clearTimeout(r.current);
|
|
2205
2191
|
}, []), {
|
|
2206
2192
|
feedback: t,
|
|
@@ -2209,11 +2195,11 @@ function on(e = 5e3) {
|
|
|
2209
2195
|
};
|
|
2210
2196
|
}
|
|
2211
2197
|
// src/Provider.tsx
|
|
2212
|
-
var
|
|
2213
|
-
function
|
|
2214
|
-
let i =
|
|
2215
|
-
|
|
2216
|
-
let a =
|
|
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(() => ({
|
|
2217
2203
|
projectName: e,
|
|
2218
2204
|
appName: t,
|
|
2219
2205
|
menuRefetchInterval: n
|
|
@@ -2222,31 +2208,31 @@ function cn({ projectName: e, appName: t, menuRefetchInterval: n, children: r })
|
|
|
2222
2208
|
t,
|
|
2223
2209
|
n
|
|
2224
2210
|
]);
|
|
2225
|
-
return /* @__PURE__ */
|
|
2211
|
+
return /* @__PURE__ */ K(cn.Provider, {
|
|
2226
2212
|
value: a,
|
|
2227
2213
|
children: r
|
|
2228
2214
|
});
|
|
2229
2215
|
}
|
|
2230
|
-
function
|
|
2231
|
-
let e =
|
|
2216
|
+
function un() {
|
|
2217
|
+
let e = Ee(cn);
|
|
2232
2218
|
if (!e) throw Error("useAaReact must be used inside <AaReactProvider projectName appName>.");
|
|
2233
2219
|
return e;
|
|
2234
2220
|
}
|
|
2235
2221
|
// src/Hooks/useUserData.ts
|
|
2236
|
-
function
|
|
2237
|
-
let { projectName: e } =
|
|
2238
|
-
return
|
|
2222
|
+
function dn() {
|
|
2223
|
+
let { projectName: e } = un();
|
|
2224
|
+
return Me({
|
|
2239
2225
|
queryKey: Z.User,
|
|
2240
2226
|
queryFn: () => Be(e),
|
|
2241
2227
|
staleTime: 3e5
|
|
2242
2228
|
});
|
|
2243
2229
|
}
|
|
2244
2230
|
// src/Hooks/useUserSettings.ts
|
|
2245
|
-
function
|
|
2246
|
-
let { projectName: e } =
|
|
2231
|
+
function fn() {
|
|
2232
|
+
let { projectName: e } = un(), t = Ne(), n = Me({
|
|
2247
2233
|
queryKey: Z.UserSettings,
|
|
2248
2234
|
queryFn: () => Ve(e)
|
|
2249
|
-
}), r =
|
|
2235
|
+
}), r = je({
|
|
2250
2236
|
mutationFn: (t) => He(e, t),
|
|
2251
2237
|
onMutate: async (e) => {
|
|
2252
2238
|
await t.cancelQueries({ queryKey: Z.UserSettings });
|
|
@@ -2269,9 +2255,9 @@ function dn() {
|
|
|
2269
2255
|
};
|
|
2270
2256
|
}
|
|
2271
2257
|
// src/i18nInit.ts
|
|
2272
|
-
function
|
|
2258
|
+
function pn(e, t) {
|
|
2273
2259
|
let n = typeof document < "u" ? document.getElementById(t)?.getAttribute("lang") ?? "en" : "en";
|
|
2274
|
-
return
|
|
2260
|
+
return Ae.use(Fe).use(Se).init({
|
|
2275
2261
|
lng: n,
|
|
2276
2262
|
fallbackLng: "en",
|
|
2277
2263
|
ns: [Ge],
|
|
@@ -2285,14 +2271,14 @@ function fn(e, t) {
|
|
|
2285
2271
|
});
|
|
2286
2272
|
}
|
|
2287
2273
|
// src/Menu/BaseMenu.tsx
|
|
2288
|
-
var
|
|
2274
|
+
var mn = (e, t) => {
|
|
2289
2275
|
let n = t.replace(/^\/+|\/+$/g, "");
|
|
2290
2276
|
return n ? `/${e}/${n}/` : `/${e}/`;
|
|
2291
|
-
},
|
|
2292
|
-
let { t: r } =
|
|
2293
|
-
return /* @__PURE__ */
|
|
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, {
|
|
2294
2280
|
as: "li",
|
|
2295
|
-
children: /* @__PURE__ */
|
|
2281
|
+
children: /* @__PURE__ */ q(U.Link, {
|
|
2296
2282
|
as: n,
|
|
2297
2283
|
to: {
|
|
2298
2284
|
pathname: t(e.link ?? ""),
|
|
@@ -2302,33 +2288,33 @@ var pn = (e, t) => {
|
|
|
2302
2288
|
active: o,
|
|
2303
2289
|
className: "aa-nav-danger d-flex align-items-center gap-1",
|
|
2304
2290
|
"data-testid": "administration-nav-link",
|
|
2305
|
-
children: [/* @__PURE__ */
|
|
2291
|
+
children: [/* @__PURE__ */ K(j, {
|
|
2306
2292
|
size: 15,
|
|
2307
2293
|
className: "text-danger flex-shrink-0"
|
|
2308
|
-
}), /* @__PURE__ */
|
|
2309
|
-
ns:
|
|
2294
|
+
}), /* @__PURE__ */ K("span", { children: r(e.name, {
|
|
2295
|
+
ns: gn,
|
|
2310
2296
|
defaultValue: e.name
|
|
2311
2297
|
}) })]
|
|
2312
2298
|
}, e.name)
|
|
2313
2299
|
});
|
|
2314
|
-
},
|
|
2315
|
-
let { t: r } =
|
|
2316
|
-
ns:
|
|
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,
|
|
2317
2303
|
defaultValue: e.name
|
|
2318
2304
|
});
|
|
2319
|
-
return e.is_external || e.link?.startsWith("http://") || e.link?.startsWith("https://") ? /* @__PURE__ */
|
|
2305
|
+
return e.is_external || e.link?.startsWith("http://") || e.link?.startsWith("https://") ? /* @__PURE__ */ K(U.Item, {
|
|
2320
2306
|
as: "li",
|
|
2321
|
-
children: /* @__PURE__ */
|
|
2307
|
+
children: /* @__PURE__ */ K(U.Link, {
|
|
2322
2308
|
href: e.link ?? "#",
|
|
2323
2309
|
id: e.name,
|
|
2324
2310
|
children: s
|
|
2325
2311
|
}, e.name)
|
|
2326
|
-
}) : e.link?.replace(/^\/+|\/+$/g, "") === "administration" || e.name.toLowerCase() === "administration" ? /* @__PURE__ */
|
|
2312
|
+
}) : e.link?.replace(/^\/+|\/+$/g, "") === "administration" || e.name.toLowerCase() === "administration" ? /* @__PURE__ */ K(_n, {
|
|
2327
2313
|
link: e,
|
|
2328
2314
|
toPath: t
|
|
2329
|
-
}) : /* @__PURE__ */
|
|
2315
|
+
}) : /* @__PURE__ */ K(U.Item, {
|
|
2330
2316
|
as: "li",
|
|
2331
|
-
children: /* @__PURE__ */
|
|
2317
|
+
children: /* @__PURE__ */ q(U.Link, {
|
|
2332
2318
|
as: n,
|
|
2333
2319
|
to: {
|
|
2334
2320
|
pathname: t(e.link ?? ""),
|
|
@@ -2336,23 +2322,23 @@ var pn = (e, t) => {
|
|
|
2336
2322
|
},
|
|
2337
2323
|
id: e.name,
|
|
2338
2324
|
active: o,
|
|
2339
|
-
children: [s, e.badge ? /* @__PURE__ */
|
|
2325
|
+
children: [s, e.badge ? /* @__PURE__ */ K("span", {
|
|
2340
2326
|
className: `badge bg-danger ms-1 ${e.has_errors ? "aa-menu-badge-pulse" : ""}`,
|
|
2341
2327
|
children: e.badge
|
|
2342
2328
|
}) : null]
|
|
2343
2329
|
}, e.name)
|
|
2344
2330
|
});
|
|
2345
|
-
},
|
|
2346
|
-
let { projectName: t } =
|
|
2347
|
-
return /* @__PURE__ */
|
|
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, {
|
|
2348
2334
|
link: e,
|
|
2349
2335
|
toPath: n
|
|
2350
2336
|
}, e.link)) });
|
|
2351
|
-
},
|
|
2337
|
+
}, bn = (e) => /* @__PURE__ */ K(yn, { ...e }), xn = (e) => /* @__PURE__ */ K(yn, { ...e });
|
|
2352
2338
|
// src/Menu/Hooks/useMenu.ts
|
|
2353
|
-
function
|
|
2354
|
-
let { projectName: e, menuRefetchInterval: t } =
|
|
2355
|
-
return
|
|
2339
|
+
function Sn() {
|
|
2340
|
+
let { projectName: e, menuRefetchInterval: t } = un();
|
|
2341
|
+
return Me({
|
|
2356
2342
|
queryKey: Z.Menu,
|
|
2357
2343
|
queryFn: () => ze(e),
|
|
2358
2344
|
staleTime: 3e5,
|
|
@@ -2362,58 +2348,58 @@ function xn() {
|
|
|
2362
2348
|
});
|
|
2363
2349
|
}
|
|
2364
2350
|
// src/Menu/AuthLeftMenuAsync.tsx
|
|
2365
|
-
var
|
|
2366
|
-
let e = typeof document < "u" ? document.getElementById("nav-left") : null, { data: t, isLoading: n, isError: r } =
|
|
2367
|
-
return !e || !t?.left_links ? /* @__PURE__ */
|
|
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, {
|
|
2368
2354
|
error: r,
|
|
2369
2355
|
isLoading: n,
|
|
2370
2356
|
data: t.left_links
|
|
2371
2357
|
}), e);
|
|
2372
|
-
},
|
|
2373
|
-
let e = typeof document < "u" ? document.getElementById("nav-right") : null, { data: t, isLoading: n, isError: r } =
|
|
2374
|
-
return !e || !t?.right_links ? /* @__PURE__ */
|
|
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, {
|
|
2375
2361
|
error: r,
|
|
2376
2362
|
isLoading: n,
|
|
2377
2363
|
data: t.right_links
|
|
2378
2364
|
}), e);
|
|
2379
|
-
},
|
|
2380
|
-
/* @__PURE__ */
|
|
2381
|
-
/* @__PURE__ */
|
|
2382
|
-
/* @__PURE__ */
|
|
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", {
|
|
2383
2369
|
className: `aa-react container mt-4${t ? " aa-container-fluid-small" : ""} ${e}`,
|
|
2384
|
-
children: /* @__PURE__ */
|
|
2370
|
+
children: /* @__PURE__ */ K(Nt, { children: n ?? /* @__PURE__ */ K(r, {}) })
|
|
2385
2371
|
}) })
|
|
2386
2372
|
] });
|
|
2387
2373
|
// src/Pages/404.tsx
|
|
2388
|
-
function
|
|
2389
|
-
let { t: e } =
|
|
2390
|
-
return /* @__PURE__ */
|
|
2374
|
+
function En() {
|
|
2375
|
+
let { t: e } = W(Q);
|
|
2376
|
+
return /* @__PURE__ */ K(R, { children: /* @__PURE__ */ K(R.Body, {
|
|
2391
2377
|
className: "p-0",
|
|
2392
|
-
children: /* @__PURE__ */
|
|
2378
|
+
children: /* @__PURE__ */ K(jt, {
|
|
2393
2379
|
title: e("Error 404"),
|
|
2394
2380
|
message: e("The page you are looking for does not exist.")
|
|
2395
2381
|
})
|
|
2396
2382
|
}) });
|
|
2397
2383
|
}
|
|
2398
2384
|
// src/Utils/general.tsx
|
|
2399
|
-
var
|
|
2385
|
+
var Dn = ({ url: e, text: t, children: n, external: r, className: i }) => /* @__PURE__ */ q("a", {
|
|
2400
2386
|
href: e,
|
|
2401
2387
|
className: `${i ?? ""}`,
|
|
2402
2388
|
target: r ? "_blank" : void 0,
|
|
2403
2389
|
rel: r ? "noopener noreferrer" : void 0,
|
|
2404
2390
|
children: [t, n]
|
|
2405
|
-
}),
|
|
2406
|
-
src:
|
|
2391
|
+
}), On = (e, t, n) => /* @__PURE__ */ K("img", {
|
|
2392
|
+
src: Gt(e, 128),
|
|
2407
2393
|
alt: t,
|
|
2408
2394
|
className: `${n ?? ""}`,
|
|
2409
2395
|
loading: "lazy",
|
|
2410
2396
|
onError: (t) => {
|
|
2411
|
-
t.target.src =
|
|
2397
|
+
t.target.src = Yt(e, 64);
|
|
2412
2398
|
}
|
|
2413
2399
|
});
|
|
2414
|
-
function
|
|
2415
|
-
return /* @__PURE__ */
|
|
2400
|
+
function kn(e) {
|
|
2401
|
+
return /* @__PURE__ */ K("span", { dangerouslySetInnerHTML: { __html: e } });
|
|
2416
2402
|
}
|
|
2417
|
-
export {
|
|
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 };
|
|
2418
2404
|
|
|
2419
2405
|
//# sourceMappingURL=index.js.map
|