aa-geuthur-react 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,18 +3,16 @@ import t from "openapi-fetch";
3
3
  import { Link as n, Outlet as r, useLocation as i } from "react-router-dom";
4
4
  import { columnFacetingFeature as a, columnFilteringFeature as o, columnSizingFeature as s, columnVisibilityFeature as c, createColumnHelper as l, createFacetedMinMaxValues as u, createFacetedRowModel as d, createFacetedUniqueValues as f, createFilteredRowModel as p, createPaginatedRowModel as m, createSortedRowModel as h, filterFns as g, flexRender as _, functionalUpdate as v, rowPaginationFeature as y, rowSelectionFeature as b, rowSortingFeature as x, sortFns as S, tableFeatures as C, useTable as ee } from "@tanstack/react-table";
5
5
  import { ArrowUpDown as w, ChevronDown as T, ChevronFirst as E, ChevronLast as te, ChevronLeft as ne, ChevronRight as re, ChevronUp as ie, ExternalLink as D, Search as ae, ShieldAlert as O, SlidersHorizontal as oe, X as se } from "lucide-react";
6
- import { Alert as ce, Button as k, ButtonGroup as A, ButtonToolbar as le, Card as j, Col as M, Dropdown as N, Form as P, Modal as F, Nav as I, OverlayTrigger as L, Popover as ue } from "react-bootstrap";
7
- import { useTranslation as R, withTranslation as de } from "react-i18next";
8
- import { Fragment as z, jsx as B, jsxs as V } from "react/jsx-runtime";
9
- import { Component as H, createContext as fe, useCallback as U, useContext as pe, useEffect as W, useMemo as me, useRef as he, useState as G } from "react";
10
- import ge from "react-bootstrap/OverlayTrigger";
11
- import _e from "react-bootstrap/Tooltip";
12
- import ve from "i18next";
13
- import { useMutation as ye, useQuery as be, useQueryClient as xe } from "@tanstack/react-query";
14
- import { useQueryState as Se } from "nuqs";
15
- import Ce from "react-dom";
6
+ import { Alert as ce, Button as k, ButtonGroup as A, ButtonToolbar as le, Card as j, Col as M, Dropdown as N, Form as P, Modal as F, Nav as I, OverlayTrigger as L, Popover as ue, Tooltip as de } from "react-bootstrap";
7
+ import { useTranslation as R, withTranslation as z } from "react-i18next";
8
+ import { Fragment as B, jsx as V, jsxs as H } from "react/jsx-runtime";
9
+ import { Component as fe, createContext as pe, useCallback as U, useContext as me, useEffect as W, useMemo as he, useRef as ge, useState as G } from "react";
10
+ import _e from "i18next";
11
+ import { useMutation as ve, useQuery as ye, useQueryClient as be } from "@tanstack/react-query";
12
+ import { useQueryState as xe } from "nuqs";
13
+ import Se from "react-dom";
16
14
  // src/Api/Api.ts
17
- function we(n) {
15
+ function Ce(n) {
18
16
  let r = t({
19
17
  baseUrl: "/",
20
18
  credentials: "same-origin",
@@ -26,14 +24,14 @@ function we(n) {
26
24
  } }), r;
27
25
  }
28
26
  // src/Api/calls.ts
29
- var Te = we();
30
- async function Ee(e) {
31
- let { data: t, error: n } = await Te.GET("/{project}/api/menu/", { params: { path: { project: e } } });
27
+ var we = Ce();
28
+ async function Te(e) {
29
+ let { data: t, error: n } = await we.GET("/{project}/api/menu/", { params: { path: { project: e } } });
32
30
  if (n || !t) throw Error("Failed to load menu");
33
31
  return t;
34
32
  }
35
- async function De(e) {
36
- let { data: t, error: n } = await Te.GET("/{project}/api/user/", { params: { path: { project: e } } });
33
+ async function Ee(e) {
34
+ let { data: t, error: n } = await we.GET("/{project}/api/user/", { params: { path: { project: e } } });
37
35
  if (n || !t) throw Error("Failed to load user data");
38
36
  return { user: t };
39
37
  }
@@ -42,28 +40,28 @@ var K = {
42
40
  Menu: ["Menu"],
43
41
  User: ["User"],
44
42
  UserSettings: ["UserSettings"]
45
- }, q = "aa-geuthur-react", Oe = "translation", J = "position-relative w-100", Y = "position-absolute top-50 end-0 translate-middle-y me-2 pe-none text-muted", X = ({ onClick: e }) => {
43
+ }, q = "aa-geuthur-react", De = "translation", J = "position-relative w-100", Y = "position-absolute top-50 end-0 translate-middle-y me-2 pe-none text-muted", X = ({ onClick: e }) => {
46
44
  let { t } = R(q);
47
- return /* @__PURE__ */ B("button", {
45
+ return /* @__PURE__ */ V("button", {
48
46
  type: "button",
49
47
  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",
50
48
  onClick: e,
51
49
  title: t("Clear"),
52
- children: /* @__PURE__ */ B(se, { size: 12 })
50
+ children: /* @__PURE__ */ V(se, { size: 12 })
53
51
  });
54
- }, ke = RegExp.prototype.test.bind(/(<([^>]+)>)/i), Ae = ({ column: e }) => {
55
- let { t } = R(q), n = e.getFilterValue(), r = n?.[0] !== void 0 && n?.[0] !== "" || n?.[1] !== void 0 && n?.[1] !== "", i = /* @__PURE__ */ B(ue, {
52
+ }, Oe = RegExp.prototype.test.bind(/(<([^>]+)>)/i), ke = ({ column: e }) => {
53
+ let { t } = R(q), n = e.getFilterValue(), r = n?.[0] !== void 0 && n?.[0] !== "" || n?.[1] !== void 0 && n?.[1] !== "", i = /* @__PURE__ */ V(ue, {
56
54
  id: "popover-number-range",
57
55
  className: "aa-table-filter-popover",
58
- children: /* @__PURE__ */ B(ue.Body, {
56
+ children: /* @__PURE__ */ V(ue.Body, {
59
57
  className: "p-3",
60
- children: /* @__PURE__ */ V("div", {
58
+ children: /* @__PURE__ */ H("div", {
61
59
  className: "d-flex flex-column gap-2",
62
60
  children: [
63
- /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B(P.Label, {
61
+ /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V(P.Label, {
64
62
  className: "small text-muted mb-1",
65
63
  children: t("Min")
66
- }), /* @__PURE__ */ B(P.Control, {
64
+ }), /* @__PURE__ */ V(P.Control, {
67
65
  size: "sm",
68
66
  type: "number",
69
67
  value: n?.[0] ?? "",
@@ -71,10 +69,10 @@ var K = {
71
69
  placeholder: t("Min"),
72
70
  className: "aa-table-filter-input"
73
71
  })] }),
74
- /* @__PURE__ */ V("div", { children: [/* @__PURE__ */ B(P.Label, {
72
+ /* @__PURE__ */ H("div", { children: [/* @__PURE__ */ V(P.Label, {
75
73
  className: "small text-muted mb-1",
76
74
  children: t("Max")
77
- }), /* @__PURE__ */ B(P.Control, {
75
+ }), /* @__PURE__ */ V(P.Control, {
78
76
  size: "sm",
79
77
  type: "number",
80
78
  value: n?.[1] ?? "",
@@ -82,9 +80,9 @@ var K = {
82
80
  placeholder: t("Max"),
83
81
  className: "aa-table-filter-input"
84
82
  })] }),
85
- /* @__PURE__ */ V("div", {
83
+ /* @__PURE__ */ H("div", {
86
84
  className: "d-flex gap-2 mt-2",
87
- children: [/* @__PURE__ */ B(k, {
85
+ children: [/* @__PURE__ */ V(k, {
88
86
  variant: "outline-secondary",
89
87
  size: "sm",
90
88
  className: "w-50",
@@ -92,7 +90,7 @@ var K = {
92
90
  e.setFilterValue(() => [void 0, void 0]), document.body.click();
93
91
  },
94
92
  children: t("Reset")
95
- }), /* @__PURE__ */ B(k, {
93
+ }), /* @__PURE__ */ V(k, {
96
94
  variant: "primary",
97
95
  size: "sm",
98
96
  className: "w-50",
@@ -104,54 +102,54 @@ var K = {
104
102
  })
105
103
  })
106
104
  });
107
- return /* @__PURE__ */ B(L, {
105
+ return /* @__PURE__ */ V(L, {
108
106
  trigger: "click",
109
107
  placement: "bottom",
110
108
  rootClose: !0,
111
109
  overlay: i,
112
- children: /* @__PURE__ */ V("div", {
110
+ children: /* @__PURE__ */ H("div", {
113
111
  className: J,
114
- children: [/* @__PURE__ */ B(P.Control, {
112
+ children: [/* @__PURE__ */ V(P.Control, {
115
113
  size: "sm",
116
114
  className: "aa-table-filter-input",
117
115
  readOnly: !0,
118
116
  type: "text",
119
117
  placeholder: t("Range…"),
120
118
  value: r ? `${n?.[0] || "Min"} → ${n?.[1] || "Max"}` : ""
121
- }), r ? /* @__PURE__ */ B(X, { onClick: (t) => {
119
+ }), r ? /* @__PURE__ */ V(X, { onClick: (t) => {
122
120
  t.stopPropagation(), e.setFilterValue(() => [void 0, void 0]);
123
- } }) : /* @__PURE__ */ B(oe, {
121
+ } }) : /* @__PURE__ */ V(oe, {
124
122
  size: 12,
125
123
  className: Y
126
124
  })]
127
125
  })
128
126
  });
129
- }, je = ({ column: e }) => {
127
+ }, Ae = ({ column: e }) => {
130
128
  let { t } = R(q), n = e.getFilterValue(), r = n !== void 0;
131
- return /* @__PURE__ */ B(L, {
129
+ return /* @__PURE__ */ V(L, {
132
130
  trigger: "click",
133
131
  placement: "bottom-start",
134
132
  rootClose: !0,
135
- overlay: /* @__PURE__ */ B(N, {
133
+ overlay: /* @__PURE__ */ V(N, {
136
134
  show: !0,
137
135
  drop: "down-centered",
138
- children: /* @__PURE__ */ V(N.Menu, {
136
+ children: /* @__PURE__ */ H(N.Menu, {
139
137
  className: "aa-table-filter-dropdown overflow-y-auto",
140
138
  children: [
141
- /* @__PURE__ */ B(N.Item, {
139
+ /* @__PURE__ */ V(N.Item, {
142
140
  onClick: () => {
143
141
  e.setFilterValue(!0), document.body.click();
144
142
  },
145
143
  children: t("True")
146
144
  }),
147
- /* @__PURE__ */ B(N.Item, {
145
+ /* @__PURE__ */ V(N.Item, {
148
146
  onClick: () => {
149
147
  e.setFilterValue(!1), document.body.click();
150
148
  },
151
149
  children: t("False")
152
150
  }),
153
- /* @__PURE__ */ B(N.Divider, {}),
154
- /* @__PURE__ */ B(N.Item, {
151
+ /* @__PURE__ */ V(N.Divider, {}),
152
+ /* @__PURE__ */ V(N.Item, {
155
153
  onClick: () => {
156
154
  e.setFilterValue(void 0), document.body.click();
157
155
  },
@@ -160,28 +158,28 @@ var K = {
160
158
  ]
161
159
  })
162
160
  }),
163
- children: /* @__PURE__ */ V("div", {
161
+ children: /* @__PURE__ */ H("div", {
164
162
  className: J,
165
- children: [/* @__PURE__ */ B(P.Control, {
163
+ children: [/* @__PURE__ */ V(P.Control, {
166
164
  size: "sm",
167
165
  className: "aa-table-filter-input",
168
166
  readOnly: !0,
169
167
  type: "text",
170
168
  placeholder: t("All"),
171
169
  value: r ? t(n ? "True" : "False") : ""
172
- }), r ? /* @__PURE__ */ B(X, { onClick: (t) => {
170
+ }), r ? /* @__PURE__ */ V(X, { onClick: (t) => {
173
171
  t.stopPropagation(), e.setFilterValue(() => void 0);
174
- } }) : /* @__PURE__ */ B(T, {
172
+ } }) : /* @__PURE__ */ V(T, {
175
173
  size: 12,
176
174
  className: Y
177
175
  })]
178
176
  })
179
177
  });
180
- }, Me = ({ column: e }) => {
178
+ }, je = ({ column: e }) => {
181
179
  let { t } = R(q), n = e.getFilterValue() ?? "";
182
- return /* @__PURE__ */ V("div", {
180
+ return /* @__PURE__ */ H("div", {
183
181
  className: J,
184
- children: [/* @__PURE__ */ B(P.Control, {
182
+ children: [/* @__PURE__ */ V(P.Control, {
185
183
  size: "sm",
186
184
  className: "aa-table-filter-input",
187
185
  type: "text",
@@ -190,40 +188,40 @@ var K = {
190
188
  onChange: (t) => {
191
189
  e.setFilterValue(t.target.value ? t.target.value : "");
192
190
  }
193
- }), n ? /* @__PURE__ */ B(X, { onClick: () => e.setFilterValue("") }) : /* @__PURE__ */ B(ae, {
191
+ }), n ? /* @__PURE__ */ V(X, { onClick: () => e.setFilterValue("") }) : /* @__PURE__ */ V(ae, {
194
192
  size: 12,
195
193
  className: Y
196
194
  })]
197
195
  });
198
- }, Ne = ({ column: e }) => {
199
- let { t } = R(q), [n, r] = G(!1), i = Array.from(e.getFacetedUniqueValues().keys()).filter((e) => e != null).sort(), a = e.getFilterValue(), o = ke(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({
196
+ }, Me = ({ column: e }) => {
197
+ let { t } = R(q), [n, r] = G(!1), i = Array.from(e.getFacetedUniqueValues().keys()).filter((e) => e != null).sort(), a = e.getFilterValue(), o = Oe(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({
200
198
  value: t,
201
199
  label: s(t)
202
200
  })), e), []);
203
- return /* @__PURE__ */ B(L, {
201
+ return /* @__PURE__ */ V(L, {
204
202
  trigger: "click",
205
203
  placement: "bottom-start",
206
204
  rootClose: !0,
207
- overlay: /* @__PURE__ */ B(N, {
205
+ overlay: /* @__PURE__ */ V(N, {
208
206
  show: !0,
209
207
  drop: "down-centered",
210
- children: /* @__PURE__ */ B(N.Menu, {
208
+ children: /* @__PURE__ */ V(N.Menu, {
211
209
  className: "aa-table-filter-dropdown overflow-y-auto",
212
- children: c.length > 0 ? c.map((t) => /* @__PURE__ */ B(N.Item, {
210
+ children: c.length > 0 ? c.map((t) => /* @__PURE__ */ V(N.Item, {
213
211
  className: "text-capitalize",
214
212
  onClick: () => {
215
213
  e.setFilterValue(t.value ? t.value : ""), document.body.click();
216
214
  },
217
215
  children: t.label
218
- }, t.value)) : /* @__PURE__ */ B(N.Item, {
216
+ }, t.value)) : /* @__PURE__ */ V(N.Item, {
219
217
  disabled: !0,
220
218
  children: t("No matching options")
221
219
  })
222
220
  })
223
221
  }),
224
- children: /* @__PURE__ */ V("div", {
222
+ children: /* @__PURE__ */ H("div", {
225
223
  className: J,
226
- children: [/* @__PURE__ */ B(P.Control, {
224
+ children: [/* @__PURE__ */ V(P.Control, {
227
225
  size: "sm",
228
226
  className: "aa-table-filter-input",
229
227
  type: "text",
@@ -236,39 +234,39 @@ var K = {
236
234
  onChange: (t) => {
237
235
  e.setFilterValue(t.target.value ? t.target.value : "");
238
236
  }
239
- }), a ? /* @__PURE__ */ B(X, { onClick: (t) => {
237
+ }), a ? /* @__PURE__ */ V(X, { onClick: (t) => {
240
238
  t.stopPropagation(), r(!1), e.setFilterValue(() => void 0);
241
- } }) : /* @__PURE__ */ B(T, {
239
+ } }) : /* @__PURE__ */ V(T, {
242
240
  size: 12,
243
241
  className: Y
244
242
  })]
245
243
  })
246
244
  });
247
- }, Pe = ({ column: e, table: t }) => {
245
+ }, Ne = ({ column: e, table: t }) => {
248
246
  let n = t.getPreFilteredRowModel().flatRows[0]?.getValue(e.id);
249
- return B(typeof n == "number" ? Ae : typeof n == "boolean" ? je : typeof n == "object" ? Me : Ne, { column: e });
247
+ return V(typeof n == "number" ? ke : typeof n == "boolean" ? Ae : typeof n == "object" ? je : Me, { column: e });
250
248
  };
251
249
  // src/Components/Base/BaseTable/BaseTableHeader.tsx
252
- function Fe({ table: e, enableFilters: t = !0 }) {
253
- return /* @__PURE__ */ B(z, { children: e.getHeaderGroups().map((n) => {
250
+ function Pe({ table: e, enableFilters: t = !0 }) {
251
+ return /* @__PURE__ */ V(B, { children: e.getHeaderGroups().map((n) => {
254
252
  let r = t !== !1 && n.headers.some((e) => e.column.getCanFilter());
255
- return /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B("tr", { children: n.headers.map((e) => {
253
+ return /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("tr", { children: n.headers.map((e) => {
256
254
  let t = e.column.getCanSort(), n = e.column.getIsSorted(), r = e.column.columnDef.meta?.align === "right";
257
- return /* @__PURE__ */ B("th", {
255
+ return /* @__PURE__ */ V("th", {
258
256
  colSpan: e.colSpan,
259
257
  onClick: t ? e.column.getToggleSortingHandler() : void 0,
260
258
  className: `aa-table-heading-cell ${t ? "aa-table-sortable user-select-none" : ""} ${r ? "text-end" : ""}`,
261
- children: e.isPlaceholder ? null : /* @__PURE__ */ V("div", {
259
+ children: e.isPlaceholder ? null : /* @__PURE__ */ H("div", {
262
260
  className: `d-flex align-items-center gap-2 ${r ? "justify-content-end text-end" : ""}`,
263
- children: [_(e.column.columnDef.header, e.getContext()), t && /* @__PURE__ */ B("span", { children: n === "asc" ? /* @__PURE__ */ B(ie, { className: "aa-table-sort-icon aa-table-sort-icon-active" }) : n === "desc" ? /* @__PURE__ */ B(T, { className: "aa-table-sort-icon aa-table-sort-icon-active" }) : /* @__PURE__ */ B(w, { className: "aa-table-sort-icon" }) })]
261
+ children: [_(e.column.columnDef.header, e.getContext()), t && /* @__PURE__ */ V("span", { children: n === "asc" ? /* @__PURE__ */ V(ie, { className: "aa-table-sort-icon aa-table-sort-icon-active" }) : n === "desc" ? /* @__PURE__ */ V(T, { className: "aa-table-sort-icon aa-table-sort-icon-active" }) : /* @__PURE__ */ V(w, { className: "aa-table-sort-icon" }) })]
264
262
  })
265
263
  }, e.id);
266
- }) }), r && /* @__PURE__ */ B("tr", {
264
+ }) }), r && /* @__PURE__ */ V("tr", {
267
265
  className: "aa-table-filter-row",
268
- children: n.headers.map((t) => /* @__PURE__ */ B("th", {
266
+ children: n.headers.map((t) => /* @__PURE__ */ V("th", {
269
267
  colSpan: t.colSpan,
270
268
  className: "aa-table-filter-cell px-3 py-1",
271
- children: t.column.getCanFilter() ? /* @__PURE__ */ B(Pe, {
269
+ children: t.column.getCanFilter() ? /* @__PURE__ */ V(Ne, {
272
270
  column: t.column,
273
271
  table: e
274
272
  }) : null
@@ -277,7 +275,7 @@ function Fe({ table: e, enableFilters: t = !0 }) {
277
275
  }) });
278
276
  }
279
277
  // src/Components/Base/BaseTable/tableHelper.tsx
280
- var Ie = (e, t) => {
278
+ var Fe = (e, t) => {
281
279
  let { rows: n } = e.getFilteredRowModel(), r = t ?? "ExportedData.csv", i = e.getHeaderGroups().map((e) => e.headers.map((e) => typeof e.column.columnDef.header == "function" ? e.column.columnDef.accessorKey : e.column.columnDef.header)), a = n.map((e) => e.getVisibleCells().map((e) => e.getValue())), o = (e) => {
282
280
  if (e == null) return "";
283
281
  let t = String(e);
@@ -286,17 +284,17 @@ var Ie = (e, t) => {
286
284
  l.download = r, l.href = URL.createObjectURL(c), l.style.visibility = "hidden", document.body.appendChild(l), l.click(), document.body.removeChild(l);
287
285
  };
288
286
  // src/Utils/bootsTrap.tsx
289
- function Le(e) {
290
- return /* @__PURE__ */ B("div", {
287
+ function Ie(e) {
288
+ return /* @__PURE__ */ V("div", {
291
289
  className: "aa-tooltip-container",
292
- children: /* @__PURE__ */ B("span", { children: e })
290
+ children: /* @__PURE__ */ V("span", { children: e })
293
291
  });
294
292
  }
295
293
  function Z(e, t) {
296
- return /* @__PURE__ */ B(ge, {
294
+ return /* @__PURE__ */ V(L, {
297
295
  placement: "auto",
298
296
  trigger: ["hover", "focus"],
299
- overlay: /* @__PURE__ */ B(_e, {
297
+ overlay: /* @__PURE__ */ V(de, {
300
298
  id: "aa-react-tooltip",
301
299
  className: "aa-tooltip",
302
300
  children: e
@@ -305,9 +303,9 @@ function Z(e, t) {
305
303
  });
306
304
  }
307
305
  // src/Utils/format.ts
308
- function Re(e, t) {
306
+ function Le(e, t) {
309
307
  if (!e) return "N/A";
310
- let n = ve.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 = {
308
+ let n = _e.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 = {
311
309
  ...r || i ? {} : {
312
310
  dateStyle: "medium",
313
311
  timeStyle: "short"
@@ -316,7 +314,7 @@ function Re(e, t) {
316
314
  };
317
315
  return new Intl.DateTimeFormat(n, a).format(new Date(e));
318
316
  }
319
- function ze(e) {
317
+ function Re(e) {
320
318
  if (!e) return "N/A";
321
319
  let t = e instanceof Date ? e : new Date(e);
322
320
  if (isNaN(t.getTime())) return "N/A";
@@ -345,33 +343,33 @@ function ze(e) {
345
343
  unit: "second",
346
344
  seconds: 1
347
345
  }
348
- ], i = r.find((e) => Math.abs(n) >= e.seconds) ?? r[r.length - 1], a = Math.round(n / i.seconds), o = ve.language || "en";
346
+ ], i = r.find((e) => Math.abs(n) >= e.seconds) ?? r[r.length - 1], a = Math.round(n / i.seconds), o = _e.language || "en";
349
347
  return new Intl.RelativeTimeFormat(o, { numeric: "auto" }).format(a, i.unit);
350
348
  }
351
- function Be(e, t = "Done") {
349
+ function ze(e, t = "Done") {
352
350
  if (!e) return "N/A";
353
351
  let n = e instanceof Date ? e : new Date(e);
354
- return isNaN(n.getTime()) ? "N/A" : n.getTime() <= Date.now() ? t : ze(n);
352
+ return isNaN(n.getTime()) ? "N/A" : n.getTime() <= Date.now() ? t : Re(n);
355
353
  }
356
- function Ve(e, t, n) {
357
- let r = t || ve.language || "en";
354
+ function Be(e, t, n) {
355
+ let r = t || _e.language || "en";
358
356
  return new Intl.NumberFormat(r, n).format(e);
359
357
  }
360
- function He(e, t = "", n, r) {
358
+ function Ve(e, t = "", n, r) {
361
359
  let i = t ? ` ${t}` : "";
362
- return e >= 1e9 ? `${(e / 1e9).toFixed(2)}B${i}` : e >= 1e6 ? `${(e / 1e6).toFixed(1)}M${i}` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}K${i}` : `${Ve(e, n, r)}${i}`;
360
+ return e >= 1e9 ? `${(e / 1e9).toFixed(2)}B${i}` : e >= 1e6 ? `${(e / 1e6).toFixed(1)}M${i}` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}K${i}` : `${Be(e, n, r)}${i}`;
363
361
  }
364
- function Ue(e) {
365
- return `${Ve(Math.round(e), void 0, { maximumFractionDigits: 0 })} ISK`;
362
+ function He(e) {
363
+ return `${Be(Math.round(e), void 0, { maximumFractionDigits: 0 })} ISK`;
366
364
  }
367
365
  // src/Components/Base/BaseTable/BaseTablePages.tsx
368
- var We = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, showExport: i = !0 }) => {
366
+ var Ue = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, showExport: i = !0 }) => {
369
367
  let { t: a } = R(q), o = Math.max(1, e.getPageCount());
370
- return /* @__PURE__ */ B("div", { children: /* @__PURE__ */ V(A, {
368
+ return /* @__PURE__ */ V("div", { children: /* @__PURE__ */ H(A, {
371
369
  size: "sm",
372
370
  className: "z-0",
373
371
  children: [
374
- r && /* @__PURE__ */ B(k, {
372
+ r && /* @__PURE__ */ V(k, {
375
373
  size: "sm",
376
374
  variant: "primary",
377
375
  children: a("Page {{page}} of {{total}}", {
@@ -379,24 +377,24 @@ var We = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, s
379
377
  total: o
380
378
  })
381
379
  }),
382
- t ? Z(a("Refreshing Data"), /* @__PURE__ */ B(k, {
380
+ t ? Z(a("Refreshing Data"), /* @__PURE__ */ V(k, {
383
381
  size: "sm",
384
382
  variant: "primary",
385
- children: /* @__PURE__ */ B("i", { className: "fas fa-sync fa-spin" })
386
- })) : Z(a("Data Loaded: {{date}}", { date: Re((/* @__PURE__ */ new Date()).toISOString()) }), /* @__PURE__ */ B(k, {
383
+ children: /* @__PURE__ */ V("i", { className: "fas fa-sync fa-spin" })
384
+ })) : Z(a("Data Loaded: {{date}}", { date: Le((/* @__PURE__ */ new Date()).toISOString()) }), /* @__PURE__ */ V(k, {
387
385
  size: "sm",
388
386
  variant: "primary",
389
- children: /* @__PURE__ */ B("i", { className: "far fa-check-circle" })
387
+ children: /* @__PURE__ */ V("i", { className: "far fa-check-circle" })
390
388
  })),
391
- i && /* @__PURE__ */ B(k, {
389
+ i && /* @__PURE__ */ V(k, {
392
390
  size: "sm",
393
391
  variant: "primary",
394
- onClick: () => Ie(e, n ?? "ExportedData.csv"),
392
+ onClick: () => Fe(e, n ?? "ExportedData.csv"),
395
393
  children: a("Export Table to CSV")
396
394
  })
397
395
  ]
398
396
  }) });
399
- }, Ge = C({
397
+ }, We = C({
400
398
  columnFilteringFeature: o,
401
399
  columnFacetingFeature: a,
402
400
  columnSizingFeature: s,
@@ -412,17 +410,17 @@ var We = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, s
412
410
  facetedMinMaxValues: u(),
413
411
  filterFns: g,
414
412
  sortFns: S
415
- }), Ke = () => l(), qe = ({ message: e, className: t = "", spinnerClassName: n = "" } = {}) => /* @__PURE__ */ V("div", {
413
+ }), Ge = () => l(), Ke = ({ message: e, className: t = "", spinnerClassName: n = "" } = {}) => /* @__PURE__ */ H("div", {
416
414
  className: `d-flex flex-column align-items-center justify-content-center ${t}`,
417
- children: [/* @__PURE__ */ B("div", {
415
+ children: [/* @__PURE__ */ V("div", {
418
416
  className: `spinner-border text-info ${n}`,
419
417
  role: "status",
420
- children: /* @__PURE__ */ B("span", {
418
+ children: /* @__PURE__ */ V("span", {
421
419
  className: "visually-hidden",
422
420
  children: "Loading..."
423
421
  })
424
- }), e && /* @__PURE__ */ B("span", { children: e })]
425
- }), Je = "aa-table-message text-center py-5 px-3", Ye = ({ isFetching: e = !1, isLoading: t = !1, loadingText: n, serverPagination: r, isError: a = !1, debugTable: o = !1, data: s = [], columns: c, initialState: l = void 0, exportFileName: u = void 0, variant: d = "default", emptyText: f, emptyState: p, toolbar: m, footer: h, showFooter: g = !1, className: y, tableClassName: b, headerClassName: x, bodyClassName: S, rowClassName: C, footClassName: w, footerClassName: T, pageSizeOptions: ie = [
422
+ }), e && /* @__PURE__ */ V("span", { children: e })]
423
+ }), qe = "aa-table-message text-center py-5 px-3", Je = ({ isFetching: e = !1, isLoading: t = !1, loadingText: n, serverPagination: r, isError: a = !1, debugTable: o = !1, data: s = [], columns: c, initialState: l = void 0, exportFileName: u = void 0, variant: d = "default", emptyText: f, emptyState: p, toolbar: m, footer: h, showFooter: g = !1, className: y, tableClassName: b, headerClassName: x, bodyClassName: S, rowClassName: C, footClassName: w, footerClassName: T, pageSizeOptions: ie = [
426
424
  10,
427
425
  25,
428
426
  50,
@@ -432,7 +430,7 @@ var We = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, s
432
430
  pageIndex: r.page - 1,
433
431
  pageSize: r.pageSize
434
432
  }, N = ee({
435
- features: Ge,
433
+ features: We,
436
434
  data: s,
437
435
  columns: c,
438
436
  getRowId: ce,
@@ -461,55 +459,55 @@ var We = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, s
461
459
  ...l?.pagination
462
460
  }
463
461
  }
464
- }), { rows: F } = N.getRowModel(), I = u === void 0 ? `ExportedData_${le.pathname}` : u, L = d === "light", { pageIndex: ue, pageSize: de } = N.state.pagination, z = N.getPageCount(), H = N.getVisibleLeafColumns().length;
465
- return /* @__PURE__ */ V("div", {
462
+ }), { rows: F } = N.getRowModel(), I = u === void 0 ? `ExportedData_${le.pathname}` : u, L = d === "light", { pageIndex: ue, pageSize: de } = N.state.pagination, z = N.getPageCount(), B = N.getVisibleLeafColumns().length;
463
+ return /* @__PURE__ */ H("div", {
466
464
  className: `aa-table-shell mt-2 ${L ? "aa-table-shell-light aa-table-light" : ""} ${y ?? ""}`,
467
465
  children: [
468
466
  m,
469
- /* @__PURE__ */ B("div", {
467
+ /* @__PURE__ */ V("div", {
470
468
  className: `aa-table-scroll ${t && F.length > 0 ? "opacity-50 pe-none" : ""}`,
471
469
  "aria-busy": t,
472
- children: /* @__PURE__ */ V("table", {
470
+ children: /* @__PURE__ */ H("table", {
473
471
  className: `aa-table w-100 text-start ${L ? "aa-table-light" : ""} ${b ?? ""}`,
474
472
  children: [
475
- /* @__PURE__ */ B("thead", {
473
+ /* @__PURE__ */ V("thead", {
476
474
  className: `aa-table-head ${x ?? ""}`,
477
- children: /* @__PURE__ */ B(Fe, {
475
+ children: /* @__PURE__ */ V(Pe, {
478
476
  table: N,
479
477
  enableFilters: ae
480
478
  })
481
479
  }),
482
- /* @__PURE__ */ B("tbody", {
480
+ /* @__PURE__ */ V("tbody", {
483
481
  className: `aa-table-body ${S ?? ""}`,
484
- children: a ? /* @__PURE__ */ B("tr", { children: /* @__PURE__ */ B("td", {
485
- colSpan: H,
486
- className: Je,
482
+ children: a ? /* @__PURE__ */ V("tr", { children: /* @__PURE__ */ V("td", {
483
+ colSpan: B,
484
+ className: qe,
487
485
  children: j("Something went wrong.")
488
- }) }) : t && F.length === 0 ? /* @__PURE__ */ B("tr", { children: /* @__PURE__ */ B("td", {
489
- colSpan: H,
490
- className: Je,
491
- children: /* @__PURE__ */ B(qe, { message: n })
492
- }) }) : F.length === 0 ? /* @__PURE__ */ B("tr", { children: /* @__PURE__ */ B("td", {
493
- colSpan: H,
494
- className: Je,
486
+ }) }) : t && F.length === 0 ? /* @__PURE__ */ V("tr", { children: /* @__PURE__ */ V("td", {
487
+ colSpan: B,
488
+ className: qe,
489
+ children: /* @__PURE__ */ V(Ke, { message: n })
490
+ }) }) : F.length === 0 ? /* @__PURE__ */ V("tr", { children: /* @__PURE__ */ V("td", {
491
+ colSpan: B,
492
+ className: qe,
495
493
  children: p ?? f ?? j("No Data Available")
496
- }) }) : F.map((e) => /* @__PURE__ */ B("tr", {
494
+ }) }) : F.map((e) => /* @__PURE__ */ V("tr", {
497
495
  onClick: A ? () => A(e) : void 0,
498
496
  className: `aa-table-row ${D ? D(e) : "aa-table-row-hover"} ${C ?? ""}`,
499
497
  children: e.getVisibleCells().map((e) => {
500
498
  let t = e.column.columnDef.meta?.align === "right";
501
- return /* @__PURE__ */ B("td", {
499
+ return /* @__PURE__ */ V("td", {
502
500
  className: `aa-table-cell align-middle ${t ? "text-end" : ""}`,
503
501
  children: _(e.column.columnDef.cell, e.getContext())
504
502
  }, e.id);
505
503
  })
506
504
  }, e.id))
507
505
  }),
508
- g && !a && F.length > 0 && /* @__PURE__ */ B("tfoot", {
506
+ g && !a && F.length > 0 && /* @__PURE__ */ V("tfoot", {
509
507
  className: `aa-table-foot ${w ?? ""}`,
510
- children: N.getFooterGroups().map((e) => /* @__PURE__ */ B("tr", { children: e.headers.map((e) => {
508
+ children: N.getFooterGroups().map((e) => /* @__PURE__ */ V("tr", { children: e.headers.map((e) => {
511
509
  let t = e.column.columnDef.meta?.align === "right";
512
- return /* @__PURE__ */ B("td", {
510
+ return /* @__PURE__ */ V("td", {
513
511
  colSpan: e.colSpan,
514
512
  className: `aa-table-cell align-middle ${t ? "text-end" : ""}`,
515
513
  children: e.isPlaceholder ? null : _(e.column.columnDef.footer, e.getContext())
@@ -519,34 +517,34 @@ var We = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, s
519
517
  ]
520
518
  })
521
519
  }),
522
- /* @__PURE__ */ V("div", {
520
+ /* @__PURE__ */ H("div", {
523
521
  className: `aa-table-footer d-flex flex-column flex-md-row align-items-center justify-content-between gap-3 p-3 ${T ?? ""}`,
524
522
  children: [
525
- /* @__PURE__ */ V("div", {
523
+ /* @__PURE__ */ H("div", {
526
524
  className: "d-flex align-items-center justify-content-between gap-3 align-self-stretch align-self-md-auto",
527
- children: [/* @__PURE__ */ V("div", {
525
+ children: [/* @__PURE__ */ H("div", {
528
526
  className: "d-flex align-items-center gap-3",
529
- children: [/* @__PURE__ */ V("div", {
527
+ children: [/* @__PURE__ */ H("div", {
530
528
  className: "d-flex align-items-center gap-2",
531
- children: [/* @__PURE__ */ B("span", { children: j("Page Size:") }), /* @__PURE__ */ V(P.Select, {
529
+ children: [/* @__PURE__ */ V("span", { children: j("Page Size:") }), /* @__PURE__ */ H(P.Select, {
532
530
  size: "sm",
533
531
  value: de,
534
532
  disabled: t,
535
533
  onChange: (e) => N.setPageSize(Number(e.target.value)),
536
534
  className: "aa-table-select w-auto",
537
- children: [ie.map((e) => /* @__PURE__ */ B("option", {
535
+ children: [ie.map((e) => /* @__PURE__ */ V("option", {
538
536
  value: e,
539
537
  children: e
540
- }, e)), !r && /* @__PURE__ */ B("option", {
538
+ }, e)), !r && /* @__PURE__ */ V("option", {
541
539
  value: 1e6,
542
540
  children: j("Show All")
543
541
  })]
544
542
  })]
545
- }), r && /* @__PURE__ */ B("span", {
543
+ }), r && /* @__PURE__ */ V("span", {
546
544
  className: "aa-table-total",
547
545
  children: r.totalText ?? j("Total: {{total}}", { total: r.total.toLocaleString() })
548
546
  })]
549
- }), /* @__PURE__ */ B(We, {
547
+ }), /* @__PURE__ */ V(Ue, {
550
548
  table: N,
551
549
  isFetching: e,
552
550
  fileName: I,
@@ -554,72 +552,72 @@ var We = ({ table: e, isFetching: t = !1, fileName: n, showPageNumber: r = !1, s
554
552
  showExport: !r
555
553
  })]
556
554
  }),
557
- z > 1 && /* @__PURE__ */ V("div", {
555
+ z > 1 && /* @__PURE__ */ H("div", {
558
556
  className: "d-flex align-items-center gap-2",
559
557
  children: [
560
- /* @__PURE__ */ B(k, {
558
+ /* @__PURE__ */ V(k, {
561
559
  size: "sm",
562
560
  disabled: t || !N.getCanPreviousPage(),
563
561
  onClick: () => N.setPageIndex(0),
564
562
  className: "aa-table-page-button",
565
563
  title: j("First Page"),
566
- children: /* @__PURE__ */ B(E, { className: "aa-table-page-icon" })
564
+ children: /* @__PURE__ */ V(E, { className: "aa-table-page-icon" })
567
565
  }),
568
- /* @__PURE__ */ B(k, {
566
+ /* @__PURE__ */ V(k, {
569
567
  size: "sm",
570
568
  disabled: t || !N.getCanPreviousPage(),
571
569
  onClick: () => N.previousPage(),
572
570
  className: "aa-table-page-button",
573
571
  title: j("Previous Page"),
574
- children: /* @__PURE__ */ B(ne, { className: "aa-table-page-icon" })
572
+ children: /* @__PURE__ */ V(ne, { className: "aa-table-page-icon" })
575
573
  }),
576
- /* @__PURE__ */ B("span", {
574
+ /* @__PURE__ */ V("span", {
577
575
  className: "aa-table-page-number px-2 fw-bold",
578
576
  children: j("Page {{page}} of {{total}}", {
579
577
  page: ue + 1,
580
578
  total: z
581
579
  })
582
580
  }),
583
- /* @__PURE__ */ B(k, {
581
+ /* @__PURE__ */ V(k, {
584
582
  size: "sm",
585
583
  disabled: t || !N.getCanNextPage(),
586
584
  onClick: () => N.nextPage(),
587
585
  className: "aa-table-page-button",
588
586
  title: j("Next Page"),
589
- children: /* @__PURE__ */ B(re, { className: "aa-table-page-icon" })
587
+ children: /* @__PURE__ */ V(re, { className: "aa-table-page-icon" })
590
588
  }),
591
- /* @__PURE__ */ B(k, {
589
+ /* @__PURE__ */ V(k, {
592
590
  size: "sm",
593
591
  disabled: t || !N.getCanNextPage(),
594
592
  onClick: () => N.setPageIndex(z - 1),
595
593
  className: "aa-table-page-button",
596
594
  title: j("Last Page"),
597
- children: /* @__PURE__ */ B(te, { className: "aa-table-page-icon" })
595
+ children: /* @__PURE__ */ V(te, { className: "aa-table-page-icon" })
598
596
  })
599
597
  ]
600
598
  }),
601
- h && /* @__PURE__ */ B("div", {
599
+ h && /* @__PURE__ */ V("div", {
602
600
  className: "w-100",
603
601
  children: h
604
602
  })
605
603
  ]
606
604
  }),
607
- o && /* @__PURE__ */ V("div", {
605
+ o && /* @__PURE__ */ H("div", {
608
606
  className: "p-3",
609
- children: [/* @__PURE__ */ B("div", { children: j("{{count}} Rows", { count: N.getRowModel().rows.length }) }), /* @__PURE__ */ B("pre", { children: JSON.stringify(N.state, null, 2) })]
607
+ children: [/* @__PURE__ */ V("div", { children: j("{{count}} Rows", { count: N.getRowModel().rows.length }) }), /* @__PURE__ */ V("pre", { children: JSON.stringify(N.state, null, 2) })]
610
608
  })
611
609
  ]
612
610
  });
613
611
  };
614
612
  // src/Components/Base/BaseTable/BaseTableForm.tsx
615
- function Xe({ table: e }) {
613
+ function Ye({ table: e }) {
616
614
  let { t } = R(q);
617
- return /* @__PURE__ */ V("div", {
615
+ return /* @__PURE__ */ H("div", {
618
616
  className: "d-flex align-items-center ms-2",
619
- children: [/* @__PURE__ */ B(P.Label, {
617
+ children: [/* @__PURE__ */ V(P.Label, {
620
618
  className: "m-0 me-2 text-nowrap",
621
619
  children: t("Page Size:")
622
- }), /* @__PURE__ */ B(P.Select, {
620
+ }), /* @__PURE__ */ V(P.Select, {
623
621
  className: "w-auto",
624
622
  value: e.atoms.pagination.get().pageSize,
625
623
  onChange: (t) => e.setPageSize(Number(t.target.value)),
@@ -629,7 +627,7 @@ function Xe({ table: e }) {
629
627
  60,
630
628
  100,
631
629
  1e6
632
- ].map((e) => /* @__PURE__ */ B("option", {
630
+ ].map((e) => /* @__PURE__ */ V("option", {
633
631
  value: e,
634
632
  children: e === 1e6 ? t("Show All") : t("Show {{pageSize}}", { pageSize: e })
635
633
  }, e))
@@ -637,41 +635,41 @@ function Xe({ table: e }) {
637
635
  });
638
636
  }
639
637
  // src/Components/Base/BaseTable/BaseTableToolbar.tsx
640
- var Ze = ({ table: e }) => /* @__PURE__ */ V(le, { children: [/* @__PURE__ */ V(A, {
638
+ var Xe = ({ table: e }) => /* @__PURE__ */ H(le, { children: [/* @__PURE__ */ H(A, {
641
639
  className: "z-0",
642
640
  children: [
643
- /* @__PURE__ */ B(k, {
641
+ /* @__PURE__ */ V(k, {
644
642
  variant: "success",
645
643
  onClick: () => e.setPageIndex(0),
646
644
  disabled: !e.getCanPreviousPage(),
647
- children: /* @__PURE__ */ B("i", { className: "fas fa-angle-double-left" })
645
+ children: /* @__PURE__ */ V("i", { className: "fas fa-angle-double-left" })
648
646
  }),
649
- /* @__PURE__ */ B(k, {
647
+ /* @__PURE__ */ V(k, {
650
648
  variant: "success",
651
649
  onClick: () => e.previousPage(),
652
650
  disabled: !e.getCanPreviousPage(),
653
- children: /* @__PURE__ */ B("i", { className: "fas fa-caret-left" })
651
+ children: /* @__PURE__ */ V("i", { className: "fas fa-caret-left" })
654
652
  }),
655
- /* @__PURE__ */ B(k, {
653
+ /* @__PURE__ */ V(k, {
656
654
  variant: "success",
657
655
  onClick: () => e.nextPage(),
658
656
  disabled: !e.getCanNextPage(),
659
- children: /* @__PURE__ */ B("i", { className: "fas fa-caret-right" })
657
+ children: /* @__PURE__ */ V("i", { className: "fas fa-caret-right" })
660
658
  }),
661
- /* @__PURE__ */ B(k, {
659
+ /* @__PURE__ */ V(k, {
662
660
  variant: "success",
663
661
  onClick: () => e.setPageIndex(e.getPageCount() - 1),
664
662
  disabled: !e.getCanNextPage(),
665
- children: /* @__PURE__ */ B("i", { className: "fas fa-angle-double-right" })
663
+ children: /* @__PURE__ */ V("i", { className: "fas fa-angle-double-right" })
666
664
  })
667
665
  ]
668
- }), /* @__PURE__ */ B(Xe, { table: e })] }), Qe = {
666
+ }), /* @__PURE__ */ V(Ye, { table: e })] }), Ze = {
669
667
  small: "sm",
670
668
  medium: void 0,
671
669
  large: "lg",
672
670
  extraLarge: "xl"
673
671
  }, Q = {
674
- size: Qe.large,
672
+ size: Ze.large,
675
673
  centered: !0,
676
674
  scrollable: !1,
677
675
  backdrop: !0,
@@ -681,7 +679,7 @@ var Ze = ({ table: e }) => /* @__PURE__ */ V(le, { children: [/* @__PURE__ */ V(
681
679
  confirmVariant: "success"
682
680
  };
683
681
  // src/Components/Base/BaseModal/BaseModal.tsx
684
- function $e({ show: e, onHide: t, onEnter: n, onShow: r, onExited: i, title: a, footer: o, children: s, size: c = Q.size, centered: l = Q.centered, scrollable: u = Q.scrollable, backdrop: d = Q.backdrop, restoreFocus: f = Q.restoreFocus, closeButton: p = Q.closeButton, className: m, bodyClassName: h, titleClassName: g }) {
682
+ function Qe({ show: e, onHide: t, onEnter: n, onShow: r, onExited: i, title: a, footer: o, children: s, size: c = Q.size, centered: l = Q.centered, scrollable: u = Q.scrollable, backdrop: d = Q.backdrop, restoreFocus: f = Q.restoreFocus, closeButton: p = Q.closeButton, className: m, bodyClassName: h, titleClassName: g }) {
685
683
  let [_, v] = G({
686
684
  title: a,
687
685
  children: s,
@@ -693,7 +691,7 @@ function $e({ show: e, onHide: t, onEnter: n, onShow: r, onExited: i, title: a,
693
691
  footer: o === void 0 ? _.footer : o
694
692
  });
695
693
  let y = e ? a : _.title ?? a, b = e ? s : _.children ?? s, x = e ? o : _.footer ?? o;
696
- return /* @__PURE__ */ V(F, {
694
+ return /* @__PURE__ */ H(F, {
697
695
  show: e,
698
696
  size: c,
699
697
  onHide: t,
@@ -707,28 +705,28 @@ function $e({ show: e, onHide: t, onEnter: n, onShow: r, onExited: i, title: a,
707
705
  dialogClassName: m,
708
706
  contentClassName: "aa-react",
709
707
  children: [
710
- /* @__PURE__ */ B(F.Header, {
708
+ /* @__PURE__ */ V(F.Header, {
711
709
  closeButton: p,
712
- children: /* @__PURE__ */ B(F.Title, {
710
+ children: /* @__PURE__ */ V(F.Title, {
713
711
  className: g,
714
712
  children: y
715
713
  })
716
714
  }),
717
- /* @__PURE__ */ B(F.Body, {
715
+ /* @__PURE__ */ V(F.Body, {
718
716
  className: h,
719
717
  children: b
720
718
  }),
721
- x !== null && /* @__PURE__ */ B(F.Footer, { children: x })
719
+ x !== null && /* @__PURE__ */ V(F.Footer, { children: x })
722
720
  ]
723
721
  });
724
722
  }
725
- function et({ show: e, onHide: t, title: n, children: r, footer: i, hideFooter: a = !1, closeText: o, closeVariant: s = Q.closeVariant, ...c }) {
726
- let { t: l } = R(q), u = /* @__PURE__ */ B(k, {
723
+ function $e({ show: e, onHide: t, title: n, children: r, footer: i, hideFooter: a = !1, closeText: o, closeVariant: s = Q.closeVariant, ...c }) {
724
+ let { t: l } = R(q), u = /* @__PURE__ */ V(k, {
727
725
  variant: s,
728
726
  onClick: t,
729
727
  children: o ?? l("Close")
730
728
  });
731
- return /* @__PURE__ */ B($e, {
729
+ return /* @__PURE__ */ V(Qe, {
732
730
  ...c,
733
731
  show: e,
734
732
  onHide: t,
@@ -737,7 +735,7 @@ function et({ show: e, onHide: t, title: n, children: r, footer: i, hideFooter:
737
735
  children: r
738
736
  });
739
737
  }
740
- function tt({ 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 = Q.closeVariant, children: f, onEnter: p, onExited: m, ...h }) {
738
+ function et({ 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 = Q.closeVariant, children: f, onEnter: p, onExited: m, ...h }) {
741
739
  let { t: g } = R(q), [_, v] = G(null), [y, b] = G(o ?? {}), [x, S] = G(!1), [C, ee] = G(e);
742
740
  t && e && e !== C && ee(e);
743
741
  let w = t ? e : e ?? C, T = () => {
@@ -761,17 +759,17 @@ function tt({ data: e, showModal: t, setShowModal: n, onApprove: r, isPending: i
761
759
  }, ie = typeof f == "function" ? f({
762
760
  formData: y,
763
761
  onChange: b
764
- }) : f, D = /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B(k, {
762
+ }) : f, D = /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(k, {
765
763
  variant: l ?? w.color ?? Q.confirmVariant,
766
764
  disabled: i,
767
765
  onClick: re,
768
766
  children: i ? g("Loading…") : c || w.buttonText || g("Confirm")
769
- }), /* @__PURE__ */ B(k, {
767
+ }), /* @__PURE__ */ V(k, {
770
768
  variant: d,
771
769
  onClick: E,
772
770
  children: u ?? g("Close")
773
771
  })] });
774
- return /* @__PURE__ */ V($e, {
772
+ return /* @__PURE__ */ H(Qe, {
775
773
  ...h,
776
774
  show: t,
777
775
  onHide: E,
@@ -779,33 +777,33 @@ function tt({ data: e, showModal: t, setShowModal: n, onApprove: r, isPending: i
779
777
  onExited: ne,
780
778
  title: s ?? w.title,
781
779
  footer: D,
782
- children: [_ && /* @__PURE__ */ B(ce, {
780
+ children: [_ && /* @__PURE__ */ V(ce, {
783
781
  variant: "danger",
784
782
  onClose: () => v(null),
785
783
  dismissible: !0,
786
784
  children: _
787
- }), /* @__PURE__ */ B("div", {
785
+ }), /* @__PURE__ */ V("div", {
788
786
  className: x ? "was-validated" : "",
789
787
  children: ie
790
788
  })]
791
789
  });
792
790
  }
793
- function nt(e) {
794
- return e.variant === "confirm" || "showModal" in e || "data" in e ? /* @__PURE__ */ B(tt, { ...e }) : /* @__PURE__ */ B(et, { ...e });
791
+ function tt(e) {
792
+ return e.variant === "confirm" || "showModal" in e || "data" in e ? /* @__PURE__ */ V(et, { ...e }) : /* @__PURE__ */ V($e, { ...e });
795
793
  }
796
794
  // src/Components/Base/BaseModal/BaseModalQuery.tsx
797
- function rt() {
795
+ function nt() {
798
796
  let t = e.get("csrftoken");
799
797
  return t ? { "X-CSRFToken": t } : {};
800
798
  }
801
- function it(e) {
802
- let t = xe();
803
- return ye({
799
+ function rt(e) {
800
+ let t = be();
801
+ return ve({
804
802
  mutationFn: async (e) => {
805
803
  let t = await fetch(e, {
806
804
  method: "POST",
807
805
  credentials: "same-origin",
808
- headers: rt()
806
+ headers: nt()
809
807
  }), n = await t.json();
810
808
  if (!t.ok || n.success !== !0) throw Error(n.message ?? "Unknown error");
811
809
  return n;
@@ -821,9 +819,9 @@ function it(e) {
821
819
  }
822
820
  });
823
821
  }
824
- function at(e) {
825
- let t = xe();
826
- return ye({
822
+ function it(e) {
823
+ let t = be();
824
+ return ve({
827
825
  mutationFn: async ({ url: e, formData: t = {} }) => {
828
826
  let n = new URLSearchParams();
829
827
  for (let [e, r] of Object.entries(t)) typeof r == "boolean" ? r && n.append(e, "on") : n.append(e, r);
@@ -831,7 +829,7 @@ function at(e) {
831
829
  method: "POST",
832
830
  credentials: "same-origin",
833
831
  headers: {
834
- ...rt(),
832
+ ...nt(),
835
833
  "Content-Type": "application/x-www-form-urlencoded"
836
834
  },
837
835
  body: n.toString()
@@ -851,11 +849,11 @@ function at(e) {
851
849
  });
852
850
  }
853
851
  // src/Components/Base/BaseModal/useModalState.ts
854
- function ot(e = "modal", t = "id") {
855
- let [n, r] = Se(e, {
852
+ function at(e = "modal", t = "id") {
853
+ let [n, r] = xe(e, {
856
854
  clearOnDefault: !0,
857
855
  defaultValue: ""
858
- }), [i, a] = Se(t, {
856
+ }), [i, a] = xe(t, {
859
857
  clearOnDefault: !0,
860
858
  defaultValue: ""
861
859
  }), o = U((e, t) => {
@@ -872,17 +870,17 @@ function ot(e = "modal", t = "id") {
872
870
  };
873
871
  }
874
872
  // src/Components/Base/Loader/ErrorLoader.tsx
875
- var st = ({ message: e, title: t, className: n = "", iconClassName: r = "" } = {}) => /* @__PURE__ */ V("div", {
873
+ var ot = ({ message: e, title: t, className: n = "", iconClassName: r = "" } = {}) => /* @__PURE__ */ H("div", {
876
874
  className: `d-flex flex-column align-items-center justify-content-center ${n}`,
877
875
  children: [
878
- /* @__PURE__ */ B("span", {
876
+ /* @__PURE__ */ V("span", {
879
877
  className: "aa-shake d-inline-block",
880
- children: /* @__PURE__ */ B("i", { className: `fas fa-exclamation-triangle text-danger display-1 ${r}` })
878
+ children: /* @__PURE__ */ V("i", { className: `fas fa-exclamation-triangle text-danger display-1 ${r}` })
881
879
  }),
882
- t && /* @__PURE__ */ B("h3", { children: t }),
883
- e && /* @__PURE__ */ B("p", { children: e })
880
+ t && /* @__PURE__ */ V("h3", { children: t }),
881
+ e && /* @__PURE__ */ V("p", { children: e })
884
882
  ]
885
- }), ct = class extends H {
883
+ }), st = class extends fe {
886
884
  constructor(e) {
887
885
  super(e), this.state = {
888
886
  hasError: !1,
@@ -901,15 +899,15 @@ var st = ({ message: e, title: t, className: n = "", iconClassName: r = "" } = {
901
899
  render() {
902
900
  if (this.state.hasError) {
903
901
  let { t: e, traceClassName: t = "" } = this.props;
904
- return /* @__PURE__ */ V(z, { children: [
905
- /* @__PURE__ */ B(st, {
902
+ return /* @__PURE__ */ H(B, { children: [
903
+ /* @__PURE__ */ V(ot, {
906
904
  title: this.state.title,
907
905
  message: this.state.message
908
906
  }),
909
- /* @__PURE__ */ B("h1", { children: e("Something went wrong.") }),
910
- /* @__PURE__ */ B("div", {
907
+ /* @__PURE__ */ V("h1", { children: e("Something went wrong.") }),
908
+ /* @__PURE__ */ V("div", {
911
909
  className: "d-flex justify-content-center",
912
- children: /* @__PURE__ */ B("pre", {
910
+ children: /* @__PURE__ */ V("pre", {
913
911
  className: `border mw-100 overflow-auto p-2 ${t}`,
914
912
  "data-testid": "error-boundary-trace",
915
913
  children: this.state.trace
@@ -919,18 +917,18 @@ var st = ({ message: e, title: t, className: n = "", iconClassName: r = "" } = {
919
917
  }
920
918
  return this.props.children;
921
919
  }
922
- }, lt = de(q)(ct);
920
+ }, ct = z(q)(st);
923
921
  // src/Components/Base/BaseHeader.tsx
924
- function ut({ name: e = "Header", children: t }) {
925
- return /* @__PURE__ */ B(j, {
922
+ function lt({ name: e = "Header", children: t }) {
923
+ return /* @__PURE__ */ V(j, {
926
924
  className: "bg-dark border-secondary mb-3 shadow-sm",
927
- children: /* @__PURE__ */ V(j.Body, {
925
+ children: /* @__PURE__ */ H(j.Body, {
928
926
  className: "d-flex flex-wrap align-items-center justify-content-between p-3",
929
- children: [/* @__PURE__ */ B("h3", {
927
+ children: [/* @__PURE__ */ V("h3", {
930
928
  id: "section-heading",
931
929
  className: "h4 mb-0 fw-bold",
932
930
  children: e
933
- }), t && /* @__PURE__ */ B("div", {
931
+ }), t && /* @__PURE__ */ V("div", {
934
932
  className: "d-flex flex-wrap align-items-center gap-2",
935
933
  children: t
936
934
  })]
@@ -938,7 +936,7 @@ function ut({ name: e = "Header", children: t }) {
938
936
  });
939
937
  }
940
938
  // src/Hooks/useCooldown.ts
941
- function dt() {
939
+ function ut() {
942
940
  let [e, t] = G(0);
943
941
  return W(() => {
944
942
  if (e <= 0) return;
@@ -951,7 +949,7 @@ function dt() {
951
949
  start: U((e) => t(e), [])
952
950
  };
953
951
  }
954
- function ft() {
952
+ function dt() {
955
953
  let [e, t] = G({});
956
954
  return W(() => {
957
955
  if (!Object.values(e).some((e) => e > 0)) return;
@@ -972,8 +970,8 @@ function ft() {
972
970
  };
973
971
  }
974
972
  // src/Hooks/useFeedback.ts
975
- function pt(e = 5e3) {
976
- let [t, n] = G(null), r = he(null), i = U(() => {
973
+ function ft(e = 5e3) {
974
+ let [t, n] = G(null), r = ge(null), i = U(() => {
977
975
  r.current && clearTimeout(r.current), r.current = null, n(null);
978
976
  }, []), a = U((t, i) => {
979
977
  r.current && clearTimeout(r.current), n({
@@ -990,40 +988,40 @@ function pt(e = 5e3) {
990
988
  };
991
989
  }
992
990
  // src/Provider.tsx
993
- var mt = fe(null);
994
- function ht({ projectName: e, appName: t, children: n }) {
995
- let r = me(() => ({
991
+ var pt = pe(null);
992
+ function mt({ projectName: e, appName: t, children: n }) {
993
+ let r = he(() => ({
996
994
  projectName: e,
997
995
  appName: t
998
996
  }), [e, t]);
999
- return /* @__PURE__ */ B(mt.Provider, {
997
+ return /* @__PURE__ */ V(pt.Provider, {
1000
998
  value: r,
1001
999
  children: n
1002
1000
  });
1003
1001
  }
1004
1002
  function $() {
1005
- let e = pe(mt);
1003
+ let e = me(pt);
1006
1004
  if (!e) throw Error("useAaReact must be used inside <AaReactProvider projectName appName>.");
1007
1005
  return e;
1008
1006
  }
1009
1007
  // src/Hooks/useUserData.ts
1010
- function gt() {
1008
+ function ht() {
1011
1009
  let { projectName: e } = $();
1012
- return be({
1010
+ return ye({
1013
1011
  queryKey: K.User,
1014
- queryFn: () => De(e),
1012
+ queryFn: () => Ee(e),
1015
1013
  staleTime: 3e5
1016
1014
  });
1017
1015
  }
1018
1016
  // src/Menu/BaseMenu.tsx
1019
- var _t = (e, t) => {
1017
+ var gt = (e, t) => {
1020
1018
  let n = t.replace(/^\/+|\/+$/g, "");
1021
1019
  return n ? `/${e}/${n}/` : `/${e}/`;
1022
- }, vt = [q, Oe], yt = ({ link: e, toPath: t }) => {
1020
+ }, _t = [q, De], vt = ({ link: e, toPath: t }) => {
1023
1021
  let { t: r } = R(q), a = i(), o = a.pathname.endsWith(e.link ?? "");
1024
- return /* @__PURE__ */ B(I.Item, {
1022
+ return /* @__PURE__ */ V(I.Item, {
1025
1023
  as: "li",
1026
- children: /* @__PURE__ */ V(I.Link, {
1024
+ children: /* @__PURE__ */ H(I.Link, {
1027
1025
  as: n,
1028
1026
  to: {
1029
1027
  pathname: t(e.link ?? ""),
@@ -1033,33 +1031,33 @@ var _t = (e, t) => {
1033
1031
  active: o,
1034
1032
  className: "aa-nav-danger d-flex align-items-center gap-1",
1035
1033
  "data-testid": "administration-nav-link",
1036
- children: [/* @__PURE__ */ B(O, {
1034
+ children: [/* @__PURE__ */ V(O, {
1037
1035
  size: 15,
1038
1036
  className: "text-danger flex-shrink-0"
1039
- }), /* @__PURE__ */ B("span", { children: r(e.name, {
1040
- ns: vt,
1037
+ }), /* @__PURE__ */ V("span", { children: r(e.name, {
1038
+ ns: _t,
1041
1039
  defaultValue: e.name
1042
1040
  }) })]
1043
1041
  }, e.name)
1044
1042
  });
1045
- }, bt = ({ link: e, toPath: t }) => {
1043
+ }, yt = ({ link: e, toPath: t }) => {
1046
1044
  let { t: r } = R(q), a = i(), o = a.pathname.endsWith(e.link ?? ""), s = r(e.name, {
1047
- ns: vt,
1045
+ ns: _t,
1048
1046
  defaultValue: e.name
1049
1047
  });
1050
- return e.is_external || e.link?.startsWith("http://") || e.link?.startsWith("https://") ? /* @__PURE__ */ B(I.Item, {
1048
+ return e.is_external || e.link?.startsWith("http://") || e.link?.startsWith("https://") ? /* @__PURE__ */ V(I.Item, {
1051
1049
  as: "li",
1052
- children: /* @__PURE__ */ B(I.Link, {
1050
+ children: /* @__PURE__ */ V(I.Link, {
1053
1051
  href: e.link ?? "#",
1054
1052
  id: e.name,
1055
1053
  children: s
1056
1054
  }, e.name)
1057
- }) : e.link?.replace(/^\/+|\/+$/g, "") === "administration" || e.name.toLowerCase() === "administration" ? /* @__PURE__ */ B(yt, {
1055
+ }) : e.link?.replace(/^\/+|\/+$/g, "") === "administration" || e.name.toLowerCase() === "administration" ? /* @__PURE__ */ V(vt, {
1058
1056
  link: e,
1059
1057
  toPath: t
1060
- }) : /* @__PURE__ */ B(I.Item, {
1058
+ }) : /* @__PURE__ */ V(I.Item, {
1061
1059
  as: "li",
1062
- children: /* @__PURE__ */ V(I.Link, {
1060
+ children: /* @__PURE__ */ H(I.Link, {
1063
1061
  as: n,
1064
1062
  to: {
1065
1063
  pathname: t(e.link ?? ""),
@@ -1067,119 +1065,119 @@ var _t = (e, t) => {
1067
1065
  },
1068
1066
  id: e.name,
1069
1067
  active: o,
1070
- children: [s, e.badge ? /* @__PURE__ */ B("span", {
1068
+ children: [s, e.badge ? /* @__PURE__ */ V("span", {
1071
1069
  className: `badge bg-danger ms-1 ${e.has_errors ? "aa-menu-badge-pulse" : ""}`,
1072
1070
  children: e.badge
1073
1071
  }) : null]
1074
1072
  }, e.name)
1075
1073
  });
1076
- }, xt = ({ data: e }) => {
1077
- let { projectName: t } = $(), n = (e) => _t(t, e), r = Array.isArray(e) ? e.filter((e) => !!e.link) : [];
1078
- return /* @__PURE__ */ B(z, { children: r.map((e) => /* @__PURE__ */ B(bt, {
1074
+ }, bt = ({ data: e }) => {
1075
+ let { projectName: t } = $(), n = (e) => gt(t, e), r = Array.isArray(e) ? e.filter((e) => !!e.link) : [];
1076
+ return /* @__PURE__ */ V(B, { children: r.map((e) => /* @__PURE__ */ V(yt, {
1079
1077
  link: e,
1080
1078
  toPath: n
1081
1079
  }, e.link)) });
1082
- }, St = (e) => /* @__PURE__ */ B(xt, { ...e }), Ct = (e) => /* @__PURE__ */ B(xt, { ...e });
1080
+ }, xt = (e) => /* @__PURE__ */ V(bt, { ...e }), St = (e) => /* @__PURE__ */ V(bt, { ...e });
1083
1081
  // src/Menu/Hooks/useMenu.ts
1084
- function wt() {
1082
+ function Ct() {
1085
1083
  let { projectName: e } = $();
1086
- return be({
1084
+ return ye({
1087
1085
  queryKey: K.Menu,
1088
- queryFn: () => Ee(e),
1086
+ queryFn: () => Te(e),
1089
1087
  staleTime: 3e5,
1090
1088
  retry: 1,
1091
1089
  refetchOnWindowFocus: !1
1092
1090
  });
1093
1091
  }
1094
1092
  // src/Menu/AuthLeftMenuAsync.tsx
1095
- var Tt = () => {
1096
- let e = typeof document < "u" ? document.getElementById("nav-left") : null, { data: t, isLoading: n, isError: r } = wt();
1097
- return !e || !t?.left_links ? /* @__PURE__ */ B(z, {}) : Ce.createPortal(/* @__PURE__ */ B(St, {
1093
+ var wt = () => {
1094
+ let e = typeof document < "u" ? document.getElementById("nav-left") : null, { data: t, isLoading: n, isError: r } = Ct();
1095
+ return !e || !t?.left_links ? /* @__PURE__ */ V(B, {}) : Se.createPortal(/* @__PURE__ */ V(xt, {
1098
1096
  error: r,
1099
1097
  isLoading: n,
1100
1098
  data: t.left_links
1101
1099
  }), e);
1102
- }, Et = () => {
1103
- let e = typeof document < "u" ? document.getElementById("nav-right") : null, { data: t, isLoading: n, isError: r } = wt();
1104
- return !e || !t?.right_links ? /* @__PURE__ */ B(z, {}) : Ce.createPortal(/* @__PURE__ */ B(Ct, {
1100
+ }, Tt = () => {
1101
+ let e = typeof document < "u" ? document.getElementById("nav-right") : null, { data: t, isLoading: n, isError: r } = Ct();
1102
+ return !e || !t?.right_links ? /* @__PURE__ */ V(B, {}) : Se.createPortal(/* @__PURE__ */ V(St, {
1105
1103
  error: r,
1106
1104
  isLoading: n,
1107
1105
  data: t.right_links
1108
1106
  }), e);
1109
- }, Dt = ({ className: e = "", children: t }) => /* @__PURE__ */ V(z, { children: [
1110
- /* @__PURE__ */ B(Tt, {}),
1111
- /* @__PURE__ */ B(Et, {}),
1112
- /* @__PURE__ */ B(M, { children: /* @__PURE__ */ B("div", {
1107
+ }, Et = ({ className: e = "", children: t }) => /* @__PURE__ */ H(B, { children: [
1108
+ /* @__PURE__ */ V(wt, {}),
1109
+ /* @__PURE__ */ V(Tt, {}),
1110
+ /* @__PURE__ */ V(M, { children: /* @__PURE__ */ V("div", {
1113
1111
  className: `aa-react container mt-4 ${e}`,
1114
- children: /* @__PURE__ */ B(lt, { children: t ?? /* @__PURE__ */ B(r, {}) })
1112
+ children: /* @__PURE__ */ V(ct, { children: t ?? /* @__PURE__ */ V(r, {}) })
1115
1113
  }) })
1116
1114
  ] });
1117
1115
  // src/Pages/404.tsx
1118
- function Ot() {
1116
+ function Dt() {
1119
1117
  let { t: e } = R(q);
1120
- return /* @__PURE__ */ B(j, { children: /* @__PURE__ */ B(j.Body, {
1118
+ return /* @__PURE__ */ V(j, { children: /* @__PURE__ */ V(j.Body, {
1121
1119
  className: "p-0",
1122
- children: /* @__PURE__ */ B(st, {
1120
+ children: /* @__PURE__ */ V(ot, {
1123
1121
  title: e("Error 404"),
1124
1122
  message: e("The page you are looking for does not exist.")
1125
1123
  })
1126
1124
  }) });
1127
1125
  }
1128
1126
  // src/Utils/eveOnline.tsx
1129
- function kt(e, t = 512) {
1127
+ function Ot(e, t = 512) {
1130
1128
  return `https://images.evetech.net/types/${e}/render?size=${t}`;
1131
1129
  }
1132
- function At(e, t = 512) {
1130
+ function kt(e, t = 512) {
1133
1131
  return `https://images.evetech.net/characters/${e}/portrait?size=${t}`;
1134
1132
  }
1135
- function jt(e, t = 128) {
1133
+ function At(e, t = 128) {
1136
1134
  return `https://images.evetech.net/corporations/${e}/logo?size=${t}`;
1137
1135
  }
1138
- function Mt(e, t = 128) {
1136
+ function jt(e, t = 128) {
1139
1137
  return `https://images.evetech.net/alliances/${e}/logo?size=${t}`;
1140
1138
  }
1141
- function Nt(e, t = 32) {
1139
+ function Mt(e, t = 32) {
1142
1140
  return `https://images.evetech.net/types/${e}/icon?size=${t}`;
1143
1141
  }
1144
- var Pt = (e) => e >= .5 ? "aa-badge-hisec" : e > 0 ? "aa-badge-lowsec" : "aa-badge-nullsec", Ft = (e = /* @__PURE__ */ new Date()) => {
1142
+ var Nt = (e) => e >= .5 ? "aa-badge-hisec" : e > 0 ? "aa-badge-lowsec" : "aa-badge-nullsec", Pt = (e = /* @__PURE__ */ new Date()) => {
1145
1143
  let t = (e) => String(e).padStart(2, "0");
1146
1144
  return `${t(e.getUTCHours())}:${t(e.getUTCMinutes())}:${t(e.getUTCSeconds())} EVE`;
1147
1145
  };
1148
- function It({ id: e, name: t, size: n = 12, className: r = "", externalLink: i = !1 }) {
1146
+ function Ft({ id: e, name: t, size: n = 12, className: r = "", externalLink: i = !1 }) {
1149
1147
  let a = `https://zkillboard.com/kill/${e}/`;
1150
- return Z(t, /* @__PURE__ */ V("a", {
1148
+ return Z(t, /* @__PURE__ */ H("a", {
1151
1149
  href: a,
1152
1150
  target: "_blank",
1153
1151
  rel: "noopener noreferrer",
1154
1152
  className: r,
1155
- children: [t, i && /* @__PURE__ */ B(D, { size: n })]
1153
+ children: [t, i && /* @__PURE__ */ V(D, { size: n })]
1156
1154
  }));
1157
1155
  }
1158
- function Lt(e, t = 32) {
1159
- return /* @__PURE__ */ B("img", {
1160
- src: At(e, t),
1156
+ function It(e, t = 32) {
1157
+ return /* @__PURE__ */ V("img", {
1158
+ src: kt(e, t),
1161
1159
  className: "rounded"
1162
1160
  });
1163
1161
  }
1164
1162
  // src/Utils/general.tsx
1165
- var Rt = ({ url: e, text: t, children: n, external: r, className: i }) => /* @__PURE__ */ V("a", {
1163
+ var Lt = ({ url: e, text: t, children: n, external: r, className: i }) => /* @__PURE__ */ H("a", {
1166
1164
  href: e,
1167
1165
  className: `${i ?? ""}`,
1168
1166
  target: r ? "_blank" : void 0,
1169
1167
  rel: r ? "noopener noreferrer" : void 0,
1170
1168
  children: [t, n]
1171
- }), zt = (e, t, n) => /* @__PURE__ */ B("img", {
1172
- src: kt(e, 128),
1169
+ }), Rt = (e, t, n) => /* @__PURE__ */ V("img", {
1170
+ src: Ot(e, 128),
1173
1171
  alt: t,
1174
1172
  className: `${n ?? ""}`,
1175
1173
  loading: "lazy",
1176
1174
  onError: (t) => {
1177
- t.target.src = Nt(e, 64);
1175
+ t.target.src = Mt(e, 64);
1178
1176
  }
1179
1177
  });
1180
- function Bt(e) {
1181
- return /* @__PURE__ */ B("span", { dangerouslySetInnerHTML: { __html: e } });
1178
+ function zt(e) {
1179
+ return /* @__PURE__ */ V("span", { dangerouslySetInnerHTML: { __html: e } });
1182
1180
  }
1183
- export { ht as AaReactProvider, yt as AdministrationMenuItem, Dt as AuthBase, St as AuthLeftMenu, Tt as AuthLeftMenuAsync, Ct as AuthRightMenu, Et as AuthRightMenuAsync, nt as BaseModal, ut as BaseSectionHeader, Ye as BaseTable, Xe as BaseTableForm, Fe as BaseTableHeader, We as BaseTablePages, Ze as BaseToolbar, je as BoolFilter, lt as ErrorBoundary, st as ErrorLoader, Ot as ErrorPage, qe as FetchingLoader, Pe as Filter, Oe as I18N_FALLBACK_NAMESPACE, q as I18N_NAMESPACE, Q as MODAL_DEFAULTS, bt as MenuItem, xt as MenuList, Qe as ModalSize, Ae as NumberFilter, Ne as SelectFilter, Me as TextFilter, Mt as allianceImageUrl, Te as baseApiClient, Ge as baseTableFeatures, At as characterImageUrl, jt as corporationImageUrl, we as createApiClient, Ke as createBaseColumnHelper, Ie as exportToCSV, He as formatCompactNumber, Re as formatDate, Be as formatEta, Ft as formatEveTime, Ue as formatIsk, Ve as formatNumber, ze as formatRelativeTime, Pt as getSecColor, Nt as itemImageUrl, Ee as loadMenu, De as loadUserData, K as queryKeys, Lt as renderCharacterPortrait, Bt as renderHtml, Rt as renderLink, zt as renderShipImage, Z as renderTooltip, kt as shipImageUrl, _t as toProjectPath, Le as toolTipContainer, $ as useAaReact, it as useApproveMutation, dt as useCooldown, pt as useFeedback, at as useFormApproveMutation, wt as useMenu, ot as useModalQueryState, ft as useOwnerCooldowns, gt as useUserData, It as zKillboardLink };
1181
+ export { mt as AaReactProvider, vt as AdministrationMenuItem, Et as AuthBase, xt as AuthLeftMenu, wt as AuthLeftMenuAsync, St as AuthRightMenu, Tt as AuthRightMenuAsync, tt as BaseModal, lt as BaseSectionHeader, Je as BaseTable, Ye as BaseTableForm, Pe as BaseTableHeader, Ue as BaseTablePages, Xe as BaseToolbar, Ae as BoolFilter, ct as ErrorBoundary, ot as ErrorLoader, Dt as ErrorPage, Ke as FetchingLoader, Ne as Filter, De as I18N_FALLBACK_NAMESPACE, q as I18N_NAMESPACE, Q as MODAL_DEFAULTS, yt as MenuItem, bt as MenuList, Ze as ModalSize, ke as NumberFilter, Me as SelectFilter, je as TextFilter, jt as allianceImageUrl, we as baseApiClient, We as baseTableFeatures, kt as characterImageUrl, At as corporationImageUrl, Ce as createApiClient, Ge as createBaseColumnHelper, Fe as exportToCSV, Ve as formatCompactNumber, Le as formatDate, ze as formatEta, Pt as formatEveTime, He as formatIsk, Be as formatNumber, Re as formatRelativeTime, Nt as getSecColor, Mt as itemImageUrl, Te as loadMenu, Ee as loadUserData, K as queryKeys, It as renderCharacterPortrait, zt as renderHtml, Lt as renderLink, Rt as renderShipImage, Z as renderTooltip, Ot as shipImageUrl, gt as toProjectPath, Ie as toolTipContainer, $ as useAaReact, rt as useApproveMutation, ut as useCooldown, ft as useFeedback, it as useFormApproveMutation, Ct as useMenu, at as useModalQueryState, dt as useOwnerCooldowns, ht as useUserData, Ft as zKillboardLink };
1184
1182
 
1185
1183
  //# sourceMappingURL=index.js.map