@attraccess/plugins-frontend-ui 1.10.0 → 1.11.0-beta.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/README.md +40 -1
- package/index.js +1843 -2273
- package/lib/components/AlertStatusIcon.d.ts +6 -0
- package/lib/components/EmptyState.d.ts +5 -0
- package/lib/components/LabeledSwitch.d.ts +11 -0
- package/lib/components/StandardDrawer.d.ts +12 -0
- package/lib/components/StandardModal.d.ts +21 -0
- package/lib/components/StatusAlert.d.ts +9 -0
- package/lib/components/button/index.d.ts +3 -0
- package/lib/components/delete-confirmation-modal/index.d.ts +10 -0
- package/lib/components/index.d.ts +13 -0
- package/lib/components/loading-indicator/index.d.ts +4 -0
- package/lib/components/page-header/actions.d.ts +39 -0
- package/lib/components/page-header/index.d.ts +18 -0
- package/lib/components/password-input/PasswordInput.d.ts +15 -0
- package/lib/components/status-dialog/index.d.ts +33 -0
- package/lib/components/string-list-field/StringListField.d.ts +25 -0
- package/lib/components/user-search/UserSearch.d.ts +1 -2
- package/lib/hooks/dateTimePreferences.d.ts +5 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/useFormatDateTime.d.ts +1 -0
- package/lib/hooks/useFormatDuration.d.ts +2 -2
- package/lib/i18n.d.ts +17 -2
- package/package.json +6 -1
package/index.js
CHANGED
|
@@ -1,389 +1,70 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { Fragment as
|
|
5
|
-
import {
|
|
1
|
+
import e, { createContext as t, useCallback as n, useContext as r, useEffect as i, useId as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
2
|
+
import { Alert as l, AlertContent as u, AlertDescription as d, AlertDialog as f, AlertIndicator as p, AlertTitle as m, Avatar as h, AvatarFallback as g, AvatarImage as _, Button as v, Checkbox as y, Description as b, DrawerBackdrop as x, DrawerContent as S, DrawerDialog as C, Dropdown as w, DropdownItem as T, DropdownMenu as E, DropdownPopover as D, DropdownTrigger as O, FieldError as k, Header as A, Input as j, InputGroup as M, Label as N, ListBox as P, ListBoxItem as F, ListBoxSection as I, Modal as L, ModalBackdrop as R, ModalBody as z, ModalContainer as B, ModalDialog as V, ModalHeader as ee, ModalHeading as H, Popover as U, ProgressCircle as W, ProgressCircleFillCircle as G, ProgressCircleTrack as K, ProgressCircleTrackCircle as q, Spinner as te, Switch as J, TableBody as ne, TableCell as re, TableColumn as ie, TableContent as ae, TableHeader as oe, TableRoot as se, TableRow as ce, TableScrollContainer as le, Tag as ue, TagGroup as de, TextField as fe, Tooltip as pe, cn as me, useOverlayState as he } from "@heroui/react";
|
|
3
|
+
import { AlertCircleIcon as ge, AlertTriangleIcon as _e, ArrowLeft as ve, CheckCircle2Icon as ye, ChevronDownIcon as be, Eye as xe, EyeOff as Se, InfoIcon as Ce, MehIcon as we, MessageCircleIcon as Te, MoreVerticalIcon as Ee, SearchIcon as De, UserPlusIcon as Oe, XIcon as ke } from "lucide-react";
|
|
4
|
+
import { Fragment as Ae, jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
5
|
+
import { useLocation as je, useNavigate as Me } from "react-router-dom";
|
|
6
|
+
import { useResourcesServiceGetAllResources as Ne, useUsersServiceFindManyInfinite as Pe } from "@attraccess/react-query-client";
|
|
7
|
+
import { buttonVariants as Fe } from "@heroui/styles";
|
|
6
8
|
//#region \0rolldown/runtime.js
|
|
7
|
-
var
|
|
8
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
9
|
+
var Ie = Object.create, Le = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, ze = Object.getOwnPropertyNames, Be = Object.getPrototypeOf, Ve = Object.prototype.hasOwnProperty, Z = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), He = (e, t, n, r) => {
|
|
10
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = ze(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !Ve.call(e, s) && s !== n && Le(e, s, {
|
|
9
11
|
get: ((e) => t[e]).bind(null, s),
|
|
10
|
-
enumerable: !(r =
|
|
12
|
+
enumerable: !(r = Re(t, s)) || r.enumerable
|
|
11
13
|
});
|
|
12
14
|
return e;
|
|
13
|
-
},
|
|
15
|
+
}, Ue = (e, t, n) => (n = e == null ? {} : Ie(Be(e)), He(t || !e || !e.__esModule || !Ve.call(e, "default") ? Le(n, "default", {
|
|
14
16
|
value: e,
|
|
15
17
|
enumerable: !0
|
|
16
|
-
}) : n, e)),
|
|
18
|
+
}) : n, e)), We = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
17
19
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
18
20
|
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
19
|
-
}),
|
|
20
|
-
var t =
|
|
21
|
+
}), Ge = /* @__PURE__ */ Z(((e) => {
|
|
22
|
+
var t = We("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
21
23
|
e.c = function(e) {
|
|
22
24
|
return t.H.useMemoCache(e);
|
|
23
25
|
};
|
|
24
|
-
})),
|
|
26
|
+
})), Ke = /* @__PURE__ */ Z(((e) => {
|
|
25
27
|
process.env.NODE_ENV !== "production" && (function() {
|
|
26
|
-
var t =
|
|
28
|
+
var t = We("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
27
29
|
e.c = function(e) {
|
|
28
30
|
var n = t.H;
|
|
29
31
|
return n === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), n.useMemoCache(e);
|
|
30
32
|
};
|
|
31
33
|
})();
|
|
32
|
-
})),
|
|
33
|
-
t.exports = process.env.NODE_ENV === "production" ?
|
|
34
|
-
}))
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (!Object.is(i, t)) {
|
|
38
|
-
let e = t;
|
|
39
|
-
t = r ?? (typeof i != "object" || !i) ? i : Object.assign({}, t, i), n.forEach((n) => n(t, e));
|
|
40
|
-
}
|
|
41
|
-
}, i = () => t, a = {
|
|
42
|
-
setState: r,
|
|
43
|
-
getState: i,
|
|
44
|
-
getInitialState: () => o,
|
|
45
|
-
subscribe: (e) => (n.add(e), () => n.delete(e))
|
|
46
|
-
}, o = t = e(r, i, a);
|
|
47
|
-
return a;
|
|
48
|
-
}, pe = ((e) => e ? fe(e) : fe), J = (e) => e;
|
|
49
|
-
function me(e, n = J) {
|
|
50
|
-
let r = t.useSyncExternalStore(e.subscribe, t.useCallback(() => n(e.getState()), [e, n]), t.useCallback(() => n(e.getInitialState()), [e, n]));
|
|
51
|
-
return t.useDebugValue(r), r;
|
|
52
|
-
}
|
|
53
|
-
var he = (e) => {
|
|
54
|
-
let t = pe(e), n = (e) => me(t, e);
|
|
55
|
-
return Object.assign(n, t), n;
|
|
56
|
-
}, ge = ((e) => e ? he(e) : he), _e = typeof global == "object" && global && global.Object === Object && global, ve = typeof self == "object" && self && self.Object === Object && self, ye = _e || ve || Function("return this")(), be = ye.Symbol, xe = Object.prototype, Se = xe.hasOwnProperty, Ce = xe.toString, we = be ? be.toStringTag : void 0;
|
|
57
|
-
function Te(e) {
|
|
58
|
-
var t = Se.call(e, we), n = e[we];
|
|
34
|
+
})), Q = (/* @__PURE__ */ Z(((e, t) => {
|
|
35
|
+
t.exports = process.env.NODE_ENV === "production" ? Ge() : Ke();
|
|
36
|
+
})))();
|
|
37
|
+
function qe(e) {
|
|
38
|
+
if (typeof e != "string" || !e.trim() || e.length > 255) return { error: "invalid" };
|
|
59
39
|
try {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
} catch {
|
|
63
|
-
|
|
64
|
-
return r && (t ? e[we] = n : delete e[we]), i;
|
|
65
|
-
}
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
68
|
-
var Ee = Object.prototype.toString;
|
|
69
|
-
function De(e) {
|
|
70
|
-
return Ee.call(e);
|
|
71
|
-
}
|
|
72
|
-
//#endregion
|
|
73
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
74
|
-
var Oe = "[object Null]", ke = "[object Undefined]", Ae = be ? be.toStringTag : void 0;
|
|
75
|
-
function je(e) {
|
|
76
|
-
return e == null ? e === void 0 ? ke : Oe : Ae && Ae in Object(e) ? Te(e) : De(e);
|
|
77
|
-
}
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
80
|
-
function Me(e) {
|
|
81
|
-
return typeof e == "object" && !!e;
|
|
82
|
-
}
|
|
83
|
-
//#endregion
|
|
84
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
85
|
-
var Ne = "[object Symbol]";
|
|
86
|
-
function Pe(e) {
|
|
87
|
-
return typeof e == "symbol" || Me(e) && je(e) == Ne;
|
|
88
|
-
}
|
|
89
|
-
//#endregion
|
|
90
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
|
|
91
|
-
function Fe(e, t) {
|
|
92
|
-
for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
|
|
93
|
-
return i;
|
|
94
|
-
}
|
|
95
|
-
//#endregion
|
|
96
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
97
|
-
var Ie = Array.isArray, Le = 1 / 0, Re = be ? be.prototype : void 0, ze = Re ? Re.toString : void 0;
|
|
98
|
-
function Be(e) {
|
|
99
|
-
if (typeof e == "string") return e;
|
|
100
|
-
if (Ie(e)) return Fe(e, Be) + "";
|
|
101
|
-
if (Pe(e)) return ze ? ze.call(e) : "";
|
|
102
|
-
var t = e + "";
|
|
103
|
-
return t == "0" && 1 / e == -Le ? "-0" : t;
|
|
104
|
-
}
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
107
|
-
function Ve(e) {
|
|
108
|
-
var t = typeof e;
|
|
109
|
-
return e != null && (t == "object" || t == "function");
|
|
110
|
-
}
|
|
111
|
-
//#endregion
|
|
112
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
|
|
113
|
-
var He = "[object AsyncFunction]", Ue = "[object Function]", We = "[object GeneratorFunction]", Ge = "[object Proxy]";
|
|
114
|
-
function Ke(e) {
|
|
115
|
-
if (!Ve(e)) return !1;
|
|
116
|
-
var t = je(e);
|
|
117
|
-
return t == Ue || t == We || t == He || t == Ge;
|
|
118
|
-
}
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
|
|
121
|
-
var qe = ye["__core-js_shared__"], Je = function() {
|
|
122
|
-
var e = /[^.]+$/.exec(qe && qe.keys && qe.keys.IE_PROTO || "");
|
|
123
|
-
return e ? "Symbol(src)_1." + e : "";
|
|
124
|
-
}();
|
|
125
|
-
function Ye(e) {
|
|
126
|
-
return !!Je && Je in e;
|
|
127
|
-
}
|
|
128
|
-
//#endregion
|
|
129
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
|
|
130
|
-
var Xe = Function.prototype.toString;
|
|
131
|
-
function Ze(e) {
|
|
132
|
-
if (e != null) {
|
|
133
|
-
try {
|
|
134
|
-
return Xe.call(e);
|
|
135
|
-
} catch {}
|
|
136
|
-
try {
|
|
137
|
-
return e + "";
|
|
138
|
-
} catch {}
|
|
139
|
-
}
|
|
140
|
-
return "";
|
|
141
|
-
}
|
|
142
|
-
//#endregion
|
|
143
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
|
|
144
|
-
var Qe = /[\\^$.*+?()[\]{}|]/g, $e = /^\[object .+?Constructor\]$/, et = Function.prototype, tt = Object.prototype, nt = et.toString, rt = tt.hasOwnProperty, it = RegExp("^" + nt.call(rt).replace(Qe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
145
|
-
function at(e) {
|
|
146
|
-
return !Ve(e) || Ye(e) ? !1 : (Ke(e) ? it : $e).test(Ze(e));
|
|
147
|
-
}
|
|
148
|
-
//#endregion
|
|
149
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
|
|
150
|
-
function ot(e, t) {
|
|
151
|
-
return e?.[t];
|
|
152
|
-
}
|
|
153
|
-
//#endregion
|
|
154
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
|
|
155
|
-
function st(e, t) {
|
|
156
|
-
var n = ot(e, t);
|
|
157
|
-
return at(n) ? n : void 0;
|
|
158
|
-
}
|
|
159
|
-
//#endregion
|
|
160
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.js
|
|
161
|
-
function ct(e, t) {
|
|
162
|
-
return e === t || e !== e && t !== t;
|
|
163
|
-
}
|
|
164
|
-
//#endregion
|
|
165
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
|
|
166
|
-
var lt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ut = /^\w*$/;
|
|
167
|
-
function dt(e, t) {
|
|
168
|
-
if (Ie(e)) return !1;
|
|
169
|
-
var n = typeof e;
|
|
170
|
-
return n == "number" || n == "symbol" || n == "boolean" || e == null || Pe(e) ? !0 : ut.test(e) || !lt.test(e) || t != null && e in Object(t);
|
|
171
|
-
}
|
|
172
|
-
//#endregion
|
|
173
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
|
|
174
|
-
var ft = st(Object, "create");
|
|
175
|
-
//#endregion
|
|
176
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
|
|
177
|
-
function pt() {
|
|
178
|
-
this.__data__ = ft ? ft(null) : {}, this.size = 0;
|
|
179
|
-
}
|
|
180
|
-
//#endregion
|
|
181
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
|
|
182
|
-
function mt(e) {
|
|
183
|
-
var t = this.has(e) && delete this.__data__[e];
|
|
184
|
-
return this.size -= +!!t, t;
|
|
185
|
-
}
|
|
186
|
-
//#endregion
|
|
187
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
|
|
188
|
-
var ht = "__lodash_hash_undefined__", gt = Object.prototype.hasOwnProperty;
|
|
189
|
-
function _t(e) {
|
|
190
|
-
var t = this.__data__;
|
|
191
|
-
if (ft) {
|
|
192
|
-
var n = t[e];
|
|
193
|
-
return n === ht ? void 0 : n;
|
|
194
|
-
}
|
|
195
|
-
return gt.call(t, e) ? t[e] : void 0;
|
|
196
|
-
}
|
|
197
|
-
//#endregion
|
|
198
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
|
|
199
|
-
var vt = Object.prototype.hasOwnProperty;
|
|
200
|
-
function yt(e) {
|
|
201
|
-
var t = this.__data__;
|
|
202
|
-
return ft ? t[e] !== void 0 : vt.call(t, e);
|
|
203
|
-
}
|
|
204
|
-
//#endregion
|
|
205
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
|
|
206
|
-
var bt = "__lodash_hash_undefined__";
|
|
207
|
-
function xt(e, t) {
|
|
208
|
-
var n = this.__data__;
|
|
209
|
-
return this.size += +!this.has(e), n[e] = ft && t === void 0 ? bt : t, this;
|
|
210
|
-
}
|
|
211
|
-
//#endregion
|
|
212
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
|
|
213
|
-
function St(e) {
|
|
214
|
-
var t = -1, n = e == null ? 0 : e.length;
|
|
215
|
-
for (this.clear(); ++t < n;) {
|
|
216
|
-
var r = e[t];
|
|
217
|
-
this.set(r[0], r[1]);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
St.prototype.clear = pt, St.prototype.delete = mt, St.prototype.get = _t, St.prototype.has = yt, St.prototype.set = xt;
|
|
221
|
-
//#endregion
|
|
222
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
|
|
223
|
-
function Ct() {
|
|
224
|
-
this.__data__ = [], this.size = 0;
|
|
225
|
-
}
|
|
226
|
-
//#endregion
|
|
227
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
|
|
228
|
-
function wt(e, t) {
|
|
229
|
-
for (var n = e.length; n--;) if (ct(e[n][0], t)) return n;
|
|
230
|
-
return -1;
|
|
231
|
-
}
|
|
232
|
-
//#endregion
|
|
233
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
|
|
234
|
-
var Tt = Array.prototype.splice;
|
|
235
|
-
function Et(e) {
|
|
236
|
-
var t = this.__data__, n = wt(t, e);
|
|
237
|
-
return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : Tt.call(t, n, 1), --this.size, !0);
|
|
238
|
-
}
|
|
239
|
-
//#endregion
|
|
240
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
|
|
241
|
-
function Dt(e) {
|
|
242
|
-
var t = this.__data__, n = wt(t, e);
|
|
243
|
-
return n < 0 ? void 0 : t[n][1];
|
|
244
|
-
}
|
|
245
|
-
//#endregion
|
|
246
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
|
|
247
|
-
function Ot(e) {
|
|
248
|
-
return wt(this.__data__, e) > -1;
|
|
249
|
-
}
|
|
250
|
-
//#endregion
|
|
251
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
|
|
252
|
-
function kt(e, t) {
|
|
253
|
-
var n = this.__data__, r = wt(n, e);
|
|
254
|
-
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
255
|
-
}
|
|
256
|
-
//#endregion
|
|
257
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
|
|
258
|
-
function At(e) {
|
|
259
|
-
var t = -1, n = e == null ? 0 : e.length;
|
|
260
|
-
for (this.clear(); ++t < n;) {
|
|
261
|
-
var r = e[t];
|
|
262
|
-
this.set(r[0], r[1]);
|
|
40
|
+
let [t] = Intl.getCanonicalLocales(e.trim());
|
|
41
|
+
return t ? Intl.DateTimeFormat.supportedLocalesOf([t]).length ? { locale: t } : { error: "unsupported" } : { error: "invalid" };
|
|
42
|
+
} catch {
|
|
43
|
+
return { error: "invalid" };
|
|
263
44
|
}
|
|
264
45
|
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
|
|
268
|
-
var jt = st(ye, "Map");
|
|
269
|
-
//#endregion
|
|
270
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
|
|
271
|
-
function Mt() {
|
|
272
|
-
this.size = 0, this.__data__ = {
|
|
273
|
-
hash: new St(),
|
|
274
|
-
map: new (jt || At)(),
|
|
275
|
-
string: new St()
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
//#endregion
|
|
279
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
|
|
280
|
-
function Nt(e) {
|
|
281
|
-
var t = typeof e;
|
|
282
|
-
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
283
|
-
}
|
|
284
|
-
//#endregion
|
|
285
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
|
|
286
|
-
function Pt(e, t) {
|
|
287
|
-
var n = e.__data__;
|
|
288
|
-
return Nt(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
289
|
-
}
|
|
290
|
-
//#endregion
|
|
291
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
|
|
292
|
-
function Ft(e) {
|
|
293
|
-
var t = Pt(this, e).delete(e);
|
|
294
|
-
return this.size -= +!!t, t;
|
|
295
|
-
}
|
|
296
|
-
//#endregion
|
|
297
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
|
|
298
|
-
function It(e) {
|
|
299
|
-
return Pt(this, e).get(e);
|
|
300
|
-
}
|
|
301
|
-
//#endregion
|
|
302
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
|
|
303
|
-
function Lt(e) {
|
|
304
|
-
return Pt(this, e).has(e);
|
|
305
|
-
}
|
|
306
|
-
//#endregion
|
|
307
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
|
|
308
|
-
function Rt(e, t) {
|
|
309
|
-
var n = Pt(this, e), r = n.size;
|
|
310
|
-
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
46
|
+
function Je(e) {
|
|
47
|
+
return { dateTimeLocale: qe(e).locale ?? null };
|
|
311
48
|
}
|
|
312
49
|
//#endregion
|
|
313
|
-
//#region
|
|
314
|
-
function
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
50
|
+
//#region ../shared/src/lib/device-language.ts
|
|
51
|
+
function Ye(e) {
|
|
52
|
+
try {
|
|
53
|
+
let t = e ?? "", n = 0, r = t.length;
|
|
54
|
+
for (; n < r && " \r\n\v\f".includes(t[n]);) n++;
|
|
55
|
+
for (; r > n && " \r\n\v\f".includes(t[r - 1]);) r--;
|
|
56
|
+
let i = t.slice(n, r).replace(/_/g, "-"), a = i.split(/-x(?:-|$)/i)[0].match(/-u(?=-|$)((?:-[a-z0-9]{2,8})*)/i)?.[1];
|
|
57
|
+
if (a && !/^(?:-[a-z0-9]{3,8})*(?:-[a-z0-9][a-z](?:-[a-z0-9]{3,8})*)*$/i.test(a)) return;
|
|
58
|
+
let o = new Intl.Locale(i).language;
|
|
59
|
+
return o === "de" || o === "en" ? o : void 0;
|
|
60
|
+
} catch {
|
|
61
|
+
return;
|
|
319
62
|
}
|
|
320
63
|
}
|
|
321
|
-
|
|
322
|
-
//#endregion
|
|
323
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
|
|
324
|
-
var Bt = "Expected a function";
|
|
325
|
-
function Vt(e, t) {
|
|
326
|
-
if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(Bt);
|
|
327
|
-
var n = function() {
|
|
328
|
-
var r = arguments, i = t ? t.apply(this, r) : r[0], a = n.cache;
|
|
329
|
-
if (a.has(i)) return a.get(i);
|
|
330
|
-
var o = e.apply(this, r);
|
|
331
|
-
return n.cache = a.set(i, o) || a, o;
|
|
332
|
-
};
|
|
333
|
-
return n.cache = new (Vt.Cache || zt)(), n;
|
|
334
|
-
}
|
|
335
|
-
Vt.Cache = zt;
|
|
336
|
-
//#endregion
|
|
337
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
|
|
338
|
-
var Ht = 500;
|
|
339
|
-
function Ut(e) {
|
|
340
|
-
var t = Vt(e, function(e) {
|
|
341
|
-
return n.size === Ht && n.clear(), e;
|
|
342
|
-
}), n = t.cache;
|
|
343
|
-
return t;
|
|
344
|
-
}
|
|
345
|
-
//#endregion
|
|
346
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
|
|
347
|
-
var Wt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Gt = /\\(\\)?/g, Kt = Ut(function(e) {
|
|
348
|
-
var t = [];
|
|
349
|
-
return e.charCodeAt(0) === 46 && t.push(""), e.replace(Wt, function(e, n, r, i) {
|
|
350
|
-
t.push(r ? i.replace(Gt, "$1") : n || e);
|
|
351
|
-
}), t;
|
|
352
|
-
});
|
|
353
|
-
//#endregion
|
|
354
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.js
|
|
355
|
-
function qt(e) {
|
|
356
|
-
return e == null ? "" : Be(e);
|
|
357
|
-
}
|
|
358
|
-
//#endregion
|
|
359
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
|
|
360
|
-
function Jt(e, t) {
|
|
361
|
-
return Ie(e) ? e : dt(e, t) ? [e] : Kt(qt(e));
|
|
362
|
-
}
|
|
363
|
-
//#endregion
|
|
364
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
|
|
365
|
-
var Yt = 1 / 0;
|
|
366
|
-
function Xt(e) {
|
|
367
|
-
if (typeof e == "string" || Pe(e)) return e;
|
|
368
|
-
var t = e + "";
|
|
369
|
-
return t == "0" && 1 / e == -Yt ? "-0" : t;
|
|
370
|
-
}
|
|
371
|
-
//#endregion
|
|
372
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
|
|
373
|
-
function Zt(e, t) {
|
|
374
|
-
t = Jt(t, e);
|
|
375
|
-
for (var n = 0, r = t.length; e != null && n < r;) e = e[Xt(t[n++])];
|
|
376
|
-
return n && n == r ? e : void 0;
|
|
377
|
-
}
|
|
378
|
-
//#endregion
|
|
379
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.js
|
|
380
|
-
function Qt(e, t, n) {
|
|
381
|
-
var r = e == null ? void 0 : Zt(e, t);
|
|
382
|
-
return r === void 0 ? n : r;
|
|
383
|
-
}
|
|
64
|
+
new TextEncoder();
|
|
384
65
|
//#endregion
|
|
385
66
|
//#region ../../node_modules/.pnpm/handlebars@4.7.9/node_modules/handlebars/dist/cjs/handlebars/utils.js
|
|
386
|
-
var
|
|
67
|
+
var $ = /* @__PURE__ */ Z(((e) => {
|
|
387
68
|
e.__esModule = !0, e.extend = a, e.indexOf = l, e.escapeExpression = u, e.isEmpty = d, e.createFrame = f, e.blockParams = p, e.appendContextPath = m;
|
|
388
69
|
var t = {
|
|
389
70
|
"&": "&",
|
|
@@ -440,7 +121,7 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
440
121
|
function m(e, t) {
|
|
441
122
|
return (e ? e + "." : "") + t;
|
|
442
123
|
}
|
|
443
|
-
})),
|
|
124
|
+
})), Xe = /* @__PURE__ */ Z(((e, t) => {
|
|
444
125
|
e.__esModule = !0;
|
|
445
126
|
var n = [
|
|
446
127
|
"description",
|
|
@@ -469,9 +150,9 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
469
150
|
} catch {}
|
|
470
151
|
}
|
|
471
152
|
r.prototype = /* @__PURE__ */ Error(), e.default = r, t.exports = e.default;
|
|
472
|
-
})),
|
|
153
|
+
})), Ze = /* @__PURE__ */ Z(((e, t) => {
|
|
473
154
|
e.__esModule = !0;
|
|
474
|
-
var n =
|
|
155
|
+
var n = $();
|
|
475
156
|
e.default = function(e) {
|
|
476
157
|
e.registerHelper("blockHelperMissing", function(t, r) {
|
|
477
158
|
var i = r.inverse, a = r.fn;
|
|
@@ -485,13 +166,13 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
485
166
|
return a(t, r);
|
|
486
167
|
});
|
|
487
168
|
}, t.exports = e.default;
|
|
488
|
-
})),
|
|
169
|
+
})), Qe = /* @__PURE__ */ Z(((e, t) => {
|
|
489
170
|
e.__esModule = !0;
|
|
490
171
|
// istanbul ignore next
|
|
491
172
|
function n(e) {
|
|
492
173
|
return e && e.__esModule ? e : { default: e };
|
|
493
174
|
}
|
|
494
|
-
var r =
|
|
175
|
+
var r = $(), i = n(Xe());
|
|
495
176
|
e.default = function(e) {
|
|
496
177
|
e.registerHelper("each", function(e, t) {
|
|
497
178
|
if (!t) throw new i.default("Must pass iterator to #each");
|
|
@@ -519,25 +200,25 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
519
200
|
return o === 0 && (s = a(this)), s;
|
|
520
201
|
});
|
|
521
202
|
}, t.exports = e.default;
|
|
522
|
-
})),
|
|
203
|
+
})), $e = /* @__PURE__ */ Z(((e, t) => {
|
|
523
204
|
e.__esModule = !0;
|
|
524
205
|
// istanbul ignore next
|
|
525
206
|
function n(e) {
|
|
526
207
|
return e && e.__esModule ? e : { default: e };
|
|
527
208
|
}
|
|
528
|
-
var r = n(
|
|
209
|
+
var r = n(Xe());
|
|
529
210
|
e.default = function(e) {
|
|
530
211
|
e.registerHelper("helperMissing", function() {
|
|
531
212
|
if (arguments.length !== 1) throw new r.default("Missing helper: \"" + arguments[arguments.length - 1].name + "\"");
|
|
532
213
|
});
|
|
533
214
|
}, t.exports = e.default;
|
|
534
|
-
})),
|
|
215
|
+
})), et = /* @__PURE__ */ Z(((e, t) => {
|
|
535
216
|
e.__esModule = !0;
|
|
536
217
|
// istanbul ignore next
|
|
537
218
|
function n(e) {
|
|
538
219
|
return e && e.__esModule ? e : { default: e };
|
|
539
220
|
}
|
|
540
|
-
var r =
|
|
221
|
+
var r = $(), i = n(Xe());
|
|
541
222
|
e.default = function(e) {
|
|
542
223
|
e.registerHelper("if", function(e, t) {
|
|
543
224
|
if (arguments.length != 2) throw new i.default("#if requires exactly one argument");
|
|
@@ -551,7 +232,7 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
551
232
|
});
|
|
552
233
|
});
|
|
553
234
|
}, t.exports = e.default;
|
|
554
|
-
})),
|
|
235
|
+
})), tt = /* @__PURE__ */ Z(((e, t) => {
|
|
555
236
|
e.__esModule = !0, e.default = function(e) {
|
|
556
237
|
e.registerHelper("log", function() {
|
|
557
238
|
for (var t = [void 0], n = arguments[arguments.length - 1], r = 0; r < arguments.length - 1; r++) t.push(arguments[r]);
|
|
@@ -559,19 +240,19 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
559
240
|
n.hash.level == null ? n.data && n.data.level != null && (i = n.data.level) : i = n.hash.level, t[0] = i, e.log.apply(e, t);
|
|
560
241
|
});
|
|
561
242
|
}, t.exports = e.default;
|
|
562
|
-
})),
|
|
243
|
+
})), nt = /* @__PURE__ */ Z(((e, t) => {
|
|
563
244
|
e.__esModule = !0, e.default = function(e) {
|
|
564
245
|
e.registerHelper("lookup", function(e, t, n) {
|
|
565
246
|
return e && n.lookupProperty(e, t);
|
|
566
247
|
});
|
|
567
248
|
}, t.exports = e.default;
|
|
568
|
-
})),
|
|
249
|
+
})), rt = /* @__PURE__ */ Z(((e, t) => {
|
|
569
250
|
e.__esModule = !0;
|
|
570
251
|
// istanbul ignore next
|
|
571
252
|
function n(e) {
|
|
572
253
|
return e && e.__esModule ? e : { default: e };
|
|
573
254
|
}
|
|
574
|
-
var r =
|
|
255
|
+
var r = $(), i = n(Xe());
|
|
575
256
|
e.default = function(e) {
|
|
576
257
|
e.registerHelper("with", function(e, t) {
|
|
577
258
|
if (arguments.length != 2) throw new i.default("#with requires exactly one argument");
|
|
@@ -585,22 +266,22 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
585
266
|
});
|
|
586
267
|
});
|
|
587
268
|
}, t.exports = e.default;
|
|
588
|
-
})),
|
|
269
|
+
})), it = /* @__PURE__ */ Z(((e) => {
|
|
589
270
|
e.__esModule = !0, e.registerDefaultHelpers = l, e.moveHelperToHooks = u;
|
|
590
271
|
// istanbul ignore next
|
|
591
272
|
function t(e) {
|
|
592
273
|
return e && e.__esModule ? e : { default: e };
|
|
593
274
|
}
|
|
594
|
-
var n = t(
|
|
275
|
+
var n = t(Ze()), r = t(Qe()), i = t($e()), a = t(et()), o = t(tt()), s = t(nt()), c = t(rt());
|
|
595
276
|
function l(e) {
|
|
596
277
|
n.default(e), r.default(e), i.default(e), a.default(e), o.default(e), s.default(e), c.default(e);
|
|
597
278
|
}
|
|
598
279
|
function u(e, t, n) {
|
|
599
280
|
e.helpers[t] && (e.hooks[t] = e.helpers[t], n || (e.helpers[t] = void 0));
|
|
600
281
|
}
|
|
601
|
-
})),
|
|
282
|
+
})), at = /* @__PURE__ */ Z(((e, t) => {
|
|
602
283
|
e.__esModule = !0;
|
|
603
|
-
var n =
|
|
284
|
+
var n = $();
|
|
604
285
|
e.default = function(e) {
|
|
605
286
|
e.registerDecorator("inline", function(e, t, r, i) {
|
|
606
287
|
var a = e;
|
|
@@ -612,19 +293,19 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
612
293
|
}), t.partials[i.args[0]] = i.fn, a;
|
|
613
294
|
});
|
|
614
295
|
}, t.exports = e.default;
|
|
615
|
-
})),
|
|
296
|
+
})), ot = /* @__PURE__ */ Z(((e) => {
|
|
616
297
|
e.__esModule = !0, e.registerDefaultDecorators = r;
|
|
617
298
|
// istanbul ignore next
|
|
618
299
|
function t(e) {
|
|
619
300
|
return e && e.__esModule ? e : { default: e };
|
|
620
301
|
}
|
|
621
|
-
var n = t(
|
|
302
|
+
var n = t(at());
|
|
622
303
|
function r(e) {
|
|
623
304
|
n.default(e);
|
|
624
305
|
}
|
|
625
|
-
})),
|
|
306
|
+
})), st = /* @__PURE__ */ Z(((e, t) => {
|
|
626
307
|
e.__esModule = !0;
|
|
627
|
-
var n =
|
|
308
|
+
var n = $(), r = {
|
|
628
309
|
methodMap: [
|
|
629
310
|
"debug",
|
|
630
311
|
"info",
|
|
@@ -649,13 +330,13 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
649
330
|
}
|
|
650
331
|
};
|
|
651
332
|
e.default = r, t.exports = e.default;
|
|
652
|
-
})),
|
|
333
|
+
})), ct = /* @__PURE__ */ Z(((e) => {
|
|
653
334
|
e.__esModule = !0, e.createProtoAccessControl = a, e.resultIsAllowed = o, e.resetLoggedProperties = l;
|
|
654
335
|
// istanbul ignore next
|
|
655
336
|
function t(e) {
|
|
656
337
|
return e && e.__esModule ? e : { default: e };
|
|
657
338
|
}
|
|
658
|
-
var n =
|
|
339
|
+
var n = $(), r = t(st()), i = Object.create(null);
|
|
659
340
|
function a(e) {
|
|
660
341
|
var t = Object.create(null);
|
|
661
342
|
t.__proto__ = !1, n.extend(t, e.allowedProtoProperties);
|
|
@@ -685,13 +366,13 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
685
366
|
delete i[e];
|
|
686
367
|
});
|
|
687
368
|
}
|
|
688
|
-
})),
|
|
369
|
+
})), lt = /* @__PURE__ */ Z(((e) => {
|
|
689
370
|
e.__esModule = !0, e.HandlebarsEnvironment = l;
|
|
690
371
|
// istanbul ignore next
|
|
691
372
|
function t(e) {
|
|
692
373
|
return e && e.__esModule ? e : { default: e };
|
|
693
374
|
}
|
|
694
|
-
var n =
|
|
375
|
+
var n = $(), r = t(Xe()), i = it(), a = ot(), o = t(st()), s = ct();
|
|
695
376
|
e.VERSION = "4.7.9", e.COMPILER_REVISION = 8, e.LAST_COMPATIBLE_COMPILER_REVISION = 7, e.REVISION_CHANGES = {
|
|
696
377
|
1: "<= 1.0.rc.2",
|
|
697
378
|
2: "== 1.0.0-rc.3",
|
|
@@ -742,7 +423,7 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
742
423
|
s.resetLoggedProperties();
|
|
743
424
|
}
|
|
744
425
|
}, e.log = o.default.log, e.createFrame = n.createFrame, e.logger = o.default;
|
|
745
|
-
})),
|
|
426
|
+
})), ut = /* @__PURE__ */ Z(((e, t) => {
|
|
746
427
|
e.__esModule = !0;
|
|
747
428
|
function n(e) {
|
|
748
429
|
this.string = e;
|
|
@@ -750,7 +431,7 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
750
431
|
n.prototype.toString = n.prototype.toHTML = function() {
|
|
751
432
|
return "" + this.string;
|
|
752
433
|
}, e.default = n, t.exports = e.default;
|
|
753
|
-
})),
|
|
434
|
+
})), dt = /* @__PURE__ */ Z(((e) => {
|
|
754
435
|
e.__esModule = !0, e.wrapHelper = t;
|
|
755
436
|
function t(e, t) {
|
|
756
437
|
return typeof e == "function" ? function() {
|
|
@@ -758,7 +439,7 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
758
439
|
return arguments[arguments.length - 1] = t(n), e.apply(this, arguments);
|
|
759
440
|
} : e;
|
|
760
441
|
}
|
|
761
|
-
})),
|
|
442
|
+
})), ft = /* @__PURE__ */ Z(((e) => {
|
|
762
443
|
e.__esModule = !0, e.checkRevision = l, e.template = u, e.wrapProgram = d, e.resolvePartial = f, e.invokePartial = p, e.noop = m;
|
|
763
444
|
// istanbul ignore next
|
|
764
445
|
function t(e) {
|
|
@@ -771,7 +452,7 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
771
452
|
if (e != null) for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
|
|
772
453
|
return t.default = e, t;
|
|
773
454
|
}
|
|
774
|
-
var r = n(
|
|
455
|
+
var r = n($()), i = t(Xe()), a = lt(), o = it(), s = dt(), c = ct();
|
|
775
456
|
function l(e) {
|
|
776
457
|
var t = e && e[0] || 1, n = a.COMPILER_REVISION;
|
|
777
458
|
if (!(t >= a.LAST_COMPATIBLE_COMPILER_REVISION && t <= a.COMPILER_REVISION)) {
|
|
@@ -917,7 +598,7 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
917
598
|
return e.lookupProperty = n, e;
|
|
918
599
|
});
|
|
919
600
|
}
|
|
920
|
-
})),
|
|
601
|
+
})), pt = /* @__PURE__ */ Z(((e, t) => {
|
|
921
602
|
e.__esModule = !0, e.default = function(e) {
|
|
922
603
|
/* istanbul ignore next */
|
|
923
604
|
(function() {
|
|
@@ -931,7 +612,7 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
931
612
|
return globalThis.Handlebars === e && (globalThis.Handlebars = t), e;
|
|
932
613
|
};
|
|
933
614
|
}, t.exports = e.default;
|
|
934
|
-
})),
|
|
615
|
+
})), mt = /* @__PURE__ */ Z(((e, t) => {
|
|
935
616
|
e.__esModule = !0;
|
|
936
617
|
// istanbul ignore next
|
|
937
618
|
function n(e) {
|
|
@@ -944,7 +625,7 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
944
625
|
if (e != null) for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
|
|
945
626
|
return t.default = e, t;
|
|
946
627
|
}
|
|
947
|
-
var i = r(
|
|
628
|
+
var i = r(lt()), a = n(ut()), o = n(Xe()), s = r($()), c = r(ft()), l = n(pt());
|
|
948
629
|
function u() {
|
|
949
630
|
var e = new i.HandlebarsEnvironment();
|
|
950
631
|
return s.extend(e, i), e.SafeString = a.default, e.Exception = o.default, e.Utils = s, e.escapeExpression = s.escapeExpression, e.VM = c, e.template = function(t) {
|
|
@@ -953,7 +634,7 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
953
634
|
}
|
|
954
635
|
var d = u();
|
|
955
636
|
d.create = u, l.default(d), d.default = d, e.default = d, t.exports = e.default;
|
|
956
|
-
})),
|
|
637
|
+
})), ht = /* @__PURE__ */ Z(((e, t) => {
|
|
957
638
|
e.__esModule = !0;
|
|
958
639
|
var n = { helpers: {
|
|
959
640
|
helperExpression: function(e) {
|
|
@@ -967,7 +648,7 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
967
648
|
}
|
|
968
649
|
} };
|
|
969
650
|
e.default = n, t.exports = e.default;
|
|
970
|
-
})),
|
|
651
|
+
})), gt = /* @__PURE__ */ Z(((e, t) => {
|
|
971
652
|
e.__esModule = !0, e.default = (function() {
|
|
972
653
|
var e = {
|
|
973
654
|
trace: function() {},
|
|
@@ -3252,13 +2933,13 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
3252
2933
|
}
|
|
3253
2934
|
return t.prototype = e, e.Parser = t, new t();
|
|
3254
2935
|
})(), t.exports = e.default;
|
|
3255
|
-
})),
|
|
2936
|
+
})), _t = /* @__PURE__ */ Z(((e, t) => {
|
|
3256
2937
|
e.__esModule = !0;
|
|
3257
2938
|
// istanbul ignore next
|
|
3258
2939
|
function n(e) {
|
|
3259
2940
|
return e && e.__esModule ? e : { default: e };
|
|
3260
2941
|
}
|
|
3261
|
-
var r = n(
|
|
2942
|
+
var r = n(Xe());
|
|
3262
2943
|
function i() {
|
|
3263
2944
|
this.parents = [];
|
|
3264
2945
|
}
|
|
@@ -3325,13 +3006,13 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
3325
3006
|
this.acceptRequired(e, "name"), this.acceptArray(e.params), this.acceptKey(e, "hash");
|
|
3326
3007
|
}
|
|
3327
3008
|
e.default = i, t.exports = e.default;
|
|
3328
|
-
})),
|
|
3009
|
+
})), vt = /* @__PURE__ */ Z(((e, t) => {
|
|
3329
3010
|
e.__esModule = !0;
|
|
3330
3011
|
// istanbul ignore next
|
|
3331
3012
|
function n(e) {
|
|
3332
3013
|
return e && e.__esModule ? e : { default: e };
|
|
3333
3014
|
}
|
|
3334
|
-
var r = n(
|
|
3015
|
+
var r = n(_t());
|
|
3335
3016
|
function i() {
|
|
3336
3017
|
var e = arguments.length <= 0 || arguments[0] === void 0 ? {} : arguments[0];
|
|
3337
3018
|
this.options = e;
|
|
@@ -3400,13 +3081,13 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
3400
3081
|
}
|
|
3401
3082
|
}
|
|
3402
3083
|
e.default = i, t.exports = e.default;
|
|
3403
|
-
})),
|
|
3084
|
+
})), yt = /* @__PURE__ */ Z(((e) => {
|
|
3404
3085
|
e.__esModule = !0, e.SourceLocation = i, e.id = a, e.stripFlags = o, e.stripComment = s, e.preparePath = c, e.prepareMustache = l, e.prepareRawBlock = u, e.prepareBlock = d, e.prepareProgram = f, e.preparePartialBlock = p;
|
|
3405
3086
|
// istanbul ignore next
|
|
3406
3087
|
function t(e) {
|
|
3407
3088
|
return e && e.__esModule ? e : { default: e };
|
|
3408
3089
|
}
|
|
3409
|
-
var n = t(
|
|
3090
|
+
var n = t(Xe());
|
|
3410
3091
|
function r(e, t) {
|
|
3411
3092
|
if (t = t.path ? t.path.original : t, e.path.original !== t) {
|
|
3412
3093
|
var r = { loc: e.path.loc };
|
|
@@ -3541,7 +3222,7 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
3541
3222
|
loc: this.locInfo(i)
|
|
3542
3223
|
};
|
|
3543
3224
|
}
|
|
3544
|
-
})),
|
|
3225
|
+
})), bt = /* @__PURE__ */ Z(((e) => {
|
|
3545
3226
|
e.__esModule = !0, e.parseWithoutProcessing = l, e.parse = u;
|
|
3546
3227
|
// istanbul ignore next
|
|
3547
3228
|
function t(e) {
|
|
@@ -3554,7 +3235,7 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
3554
3235
|
function n(e) {
|
|
3555
3236
|
return e && e.__esModule ? e : { default: e };
|
|
3556
3237
|
}
|
|
3557
|
-
var r = n(
|
|
3238
|
+
var r = n(gt()), i = n(vt()), a = t(yt()), o = n(Xe()), s = $();
|
|
3558
3239
|
e.parser = r.default;
|
|
3559
3240
|
var c = {};
|
|
3560
3241
|
s.extend(c, a);
|
|
@@ -3593,13 +3274,13 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
3593
3274
|
function p(e) {
|
|
3594
3275
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && e >= 0;
|
|
3595
3276
|
}
|
|
3596
|
-
})),
|
|
3277
|
+
})), xt = /* @__PURE__ */ Z(((e) => {
|
|
3597
3278
|
e.__esModule = !0, e.Compiler = o, e.precompile = s, e.compile = c;
|
|
3598
3279
|
// istanbul ignore next
|
|
3599
3280
|
function t(e) {
|
|
3600
3281
|
return e && e.__esModule ? e : { default: e };
|
|
3601
3282
|
}
|
|
3602
|
-
var n = t(
|
|
3283
|
+
var n = t(Xe()), r = $(), i = t(ht()), a = [].slice;
|
|
3603
3284
|
function o() {}
|
|
3604
3285
|
o.prototype = {
|
|
3605
3286
|
compiler: o,
|
|
@@ -3817,7 +3498,7 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
3817
3498
|
};
|
|
3818
3499
|
}
|
|
3819
3500
|
}
|
|
3820
|
-
})),
|
|
3501
|
+
})), St = /* @__PURE__ */ Z(((e) => {
|
|
3821
3502
|
var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
|
|
3822
3503
|
e.encode = function(e) {
|
|
3823
3504
|
if (0 <= e && e < t.length) return t[e];
|
|
@@ -3826,8 +3507,8 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
3826
3507
|
var t = 65, n = 90, r = 97, i = 122, a = 48;
|
|
3827
3508
|
return t <= e && e <= n ? e - t : r <= e && e <= i ? e - r + 26 : a <= e && e <= 57 ? e - a + 52 : e == 43 ? 62 : e == 47 ? 63 : -1;
|
|
3828
3509
|
};
|
|
3829
|
-
})),
|
|
3830
|
-
var t =
|
|
3510
|
+
})), Ct = /* @__PURE__ */ Z(((e) => {
|
|
3511
|
+
var t = St(), n = 5, r = 1 << n, i = r - 1, a = r;
|
|
3831
3512
|
function o(e) {
|
|
3832
3513
|
return e < 0 ? (-e << 1) + 1 : (e << 1) + 0;
|
|
3833
3514
|
}
|
|
@@ -3850,7 +3531,7 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
3850
3531
|
} while (d);
|
|
3851
3532
|
o.value = s(l), o.rest = r;
|
|
3852
3533
|
};
|
|
3853
|
-
})),
|
|
3534
|
+
})), wt = /* @__PURE__ */ Z(((e) => {
|
|
3854
3535
|
function t(e, t, n) {
|
|
3855
3536
|
if (t in e) return e[t];
|
|
3856
3537
|
if (arguments.length === 3) return n;
|
|
@@ -3962,8 +3643,8 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
3962
3643
|
return o(t);
|
|
3963
3644
|
}
|
|
3964
3645
|
e.computeSourceURL = y;
|
|
3965
|
-
})),
|
|
3966
|
-
var t =
|
|
3646
|
+
})), Tt = /* @__PURE__ */ Z(((e) => {
|
|
3647
|
+
var t = wt(), n = Object.prototype.hasOwnProperty, r = typeof Map < "u";
|
|
3967
3648
|
function i() {
|
|
3968
3649
|
this._array = [], this._set = r ? /* @__PURE__ */ new Map() : Object.create(null);
|
|
3969
3650
|
}
|
|
@@ -3994,8 +3675,8 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
3994
3675
|
}, i.prototype.toArray = function() {
|
|
3995
3676
|
return this._array.slice();
|
|
3996
3677
|
}, e.ArraySet = i;
|
|
3997
|
-
})),
|
|
3998
|
-
var t =
|
|
3678
|
+
})), Et = /* @__PURE__ */ Z(((e) => {
|
|
3679
|
+
var t = wt();
|
|
3999
3680
|
function n(e, n) {
|
|
4000
3681
|
var r = e.generatedLine, i = n.generatedLine, a = e.generatedColumn, o = n.generatedColumn;
|
|
4001
3682
|
return i > r || i == r && o >= a || t.compareByGeneratedPositionsInflated(e, n) <= 0;
|
|
@@ -4013,8 +3694,8 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
4013
3694
|
}, r.prototype.toArray = function() {
|
|
4014
3695
|
return this._sorted ||= (this._array.sort(t.compareByGeneratedPositionsInflated), !0), this._array;
|
|
4015
3696
|
}, e.MappingList = r;
|
|
4016
|
-
})),
|
|
4017
|
-
var t =
|
|
3697
|
+
})), Dt = /* @__PURE__ */ Z(((e) => {
|
|
3698
|
+
var t = Ct(), n = wt(), r = Tt().ArraySet, i = Et().MappingList;
|
|
4018
3699
|
function a(e) {
|
|
4019
3700
|
e ||= {}, this._file = n.getArg(e, "file", null), this._sourceRoot = n.getArg(e, "sourceRoot", null), this._skipValidation = n.getArg(e, "skipValidation", !1), this._sources = new r(), this._names = new r(), this._mappings = new i(), this._sourcesContents = null;
|
|
4020
3701
|
}
|
|
@@ -4112,7 +3793,7 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
4112
3793
|
}, a.prototype.toString = function() {
|
|
4113
3794
|
return JSON.stringify(this.toJSON());
|
|
4114
3795
|
}, e.SourceMapGenerator = a;
|
|
4115
|
-
})),
|
|
3796
|
+
})), Ot = /* @__PURE__ */ Z(((e) => {
|
|
4116
3797
|
e.GREATEST_LOWER_BOUND = 1, e.LEAST_UPPER_BOUND = 2;
|
|
4117
3798
|
function t(n, r, i, a, o, s) {
|
|
4118
3799
|
var c = Math.floor((r - n) / 2) + n, l = o(i, a[c], !0);
|
|
@@ -4125,7 +3806,7 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
4125
3806
|
for (; o - 1 >= 0 && i(r[o], r[o - 1], !0) === 0;) --o;
|
|
4126
3807
|
return o;
|
|
4127
3808
|
};
|
|
4128
|
-
})),
|
|
3809
|
+
})), kt = /* @__PURE__ */ Z(((e) => {
|
|
4129
3810
|
function t(e, t, n) {
|
|
4130
3811
|
var r = e[t];
|
|
4131
3812
|
e[t] = e[n], e[n] = r;
|
|
@@ -4146,8 +3827,8 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
4146
3827
|
e.quickSort = function(e, t) {
|
|
4147
3828
|
r(e, t, 0, e.length - 1);
|
|
4148
3829
|
};
|
|
4149
|
-
})),
|
|
4150
|
-
var t =
|
|
3830
|
+
})), At = /* @__PURE__ */ Z(((e) => {
|
|
3831
|
+
var t = wt(), n = Ot(), r = Tt().ArraySet, i = Ct(), a = kt().quickSort;
|
|
4151
3832
|
function o(e, n) {
|
|
4152
3833
|
var r = e;
|
|
4153
3834
|
return typeof e == "string" && (r = t.parseSourceMapInput(e)), r.sections == null ? new s(r, n) : new l(r, n);
|
|
@@ -4438,8 +4119,8 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
4438
4119
|
}
|
|
4439
4120
|
a(this.__generatedMappings, t.compareByGeneratedPositionsDeflated), a(this.__originalMappings, t.compareByOriginalPositions);
|
|
4440
4121
|
}, e.IndexedSourceMapConsumer = l;
|
|
4441
|
-
})),
|
|
4442
|
-
var t =
|
|
4122
|
+
})), jt = /* @__PURE__ */ Z(((e) => {
|
|
4123
|
+
var t = Dt().SourceMapGenerator, n = wt(), r = /(\r?\n)/, i = 10, a = "$$$isSourceNode$$$";
|
|
4443
4124
|
function o(e, t, n, r, i) {
|
|
4444
4125
|
this.children = [], this.sourceContents = {}, this.line = e ?? null, this.column = t ?? null, this.source = n ?? null, this.name = i ?? null, this[a] = !0, r != null && this.add(r);
|
|
4445
4126
|
}
|
|
@@ -4556,14 +4237,14 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
4556
4237
|
map: r
|
|
4557
4238
|
};
|
|
4558
4239
|
}, e.SourceNode = o;
|
|
4559
|
-
})),
|
|
4560
|
-
e.SourceMapGenerator =
|
|
4561
|
-
})),
|
|
4240
|
+
})), Mt = /* @__PURE__ */ Z(((e) => {
|
|
4241
|
+
e.SourceMapGenerator = Dt().SourceMapGenerator, e.SourceMapConsumer = At().SourceMapConsumer, e.SourceNode = jt().SourceNode;
|
|
4242
|
+
})), Nt = /* @__PURE__ */ Z(((e, t) => {
|
|
4562
4243
|
e.__esModule = !0;
|
|
4563
|
-
var n =
|
|
4244
|
+
var n = $(), r = void 0;
|
|
4564
4245
|
try {
|
|
4565
4246
|
/* istanbul ignore next */
|
|
4566
|
-
(typeof define != "function" || !define.amd) && (r =
|
|
4247
|
+
(typeof define != "function" || !define.amd) && (r = Mt().SourceNode);
|
|
4567
4248
|
} catch {}
|
|
4568
4249
|
/* istanbul ignore if: tested but not covered in istanbul due to dist build */
|
|
4569
4250
|
r || (r = function(e, t, n, r) {
|
|
@@ -4657,13 +4338,13 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
4657
4338
|
return t.prepend("["), t.add("]"), t;
|
|
4658
4339
|
}
|
|
4659
4340
|
}, e.default = a, t.exports = e.default;
|
|
4660
|
-
})),
|
|
4341
|
+
})), Pt = /* @__PURE__ */ Z(((e, t) => {
|
|
4661
4342
|
e.__esModule = !0;
|
|
4662
4343
|
// istanbul ignore next
|
|
4663
4344
|
function n(e) {
|
|
4664
4345
|
return e && e.__esModule ? e : { default: e };
|
|
4665
4346
|
}
|
|
4666
|
-
var r =
|
|
4347
|
+
var r = lt(), i = n(Xe()), a = $(), o = n(Nt());
|
|
4667
4348
|
function s(e) {
|
|
4668
4349
|
this.value = e;
|
|
4669
4350
|
}
|
|
@@ -5147,13 +4828,13 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
5147
4828
|
] : a;
|
|
5148
4829
|
}
|
|
5149
4830
|
e.default = c, t.exports = e.default;
|
|
5150
|
-
})),
|
|
4831
|
+
})), Ft = /* @__PURE__ */ Z(((e, t) => {
|
|
5151
4832
|
e.__esModule = !0;
|
|
5152
4833
|
// istanbul ignore next
|
|
5153
4834
|
function n(e) {
|
|
5154
4835
|
return e && e.__esModule ? e : { default: e };
|
|
5155
4836
|
}
|
|
5156
|
-
var r = n(
|
|
4837
|
+
var r = n(mt()), i = n(ht()), a = bt(), o = xt(), s = n(Pt()), c = n(_t()), l = n(pt()), u = r.default.create;
|
|
5157
4838
|
function d() {
|
|
5158
4839
|
var e = u();
|
|
5159
4840
|
return e.compile = function(t, n) {
|
|
@@ -5164,83 +4845,464 @@ var Y = /* @__PURE__ */ G(((e) => {
|
|
|
5164
4845
|
}
|
|
5165
4846
|
var f = d();
|
|
5166
4847
|
f.create = d, l.default(f), f.Visitor = c.default, f.default = f, e.default = f, t.exports = e.default;
|
|
5167
|
-
})),
|
|
5168
|
-
|
|
5169
|
-
var
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
}
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
let t = (0, Z.c)(15), { language: n, setLanguage: r } = Vn(), [i] = d(e), a = i[n], o = i.en, c;
|
|
5177
|
-
t[0] !== a || t[1] !== o ? (c = (e) => {
|
|
5178
|
-
let t = Qt(o, e);
|
|
5179
|
-
return Qt(a, e, t);
|
|
5180
|
-
}, t[0] = a, t[1] = o, t[2] = c) : c = t[2];
|
|
5181
|
-
let l = c, u;
|
|
5182
|
-
t[3] === l ? u = t[4] : (u = (e, t) => {
|
|
5183
|
-
let n = `!!! ${e} !!!`, r = l(e);
|
|
5184
|
-
return Hn(r) && t && typeof t.count == "number" && (r = Un(r, t.count)), r === void 0 || typeof r != "string" ? (console.error(`Missing translation for key: ${e}`), n) : zn.compile(r)(t);
|
|
5185
|
-
}, t[3] = l, t[4] = u);
|
|
5186
|
-
let f = u, p;
|
|
5187
|
-
t[5] === l ? p = t[6] : (p = (e, t) => {
|
|
5188
|
-
let n = l(e);
|
|
5189
|
-
return n !== void 0 && (typeof n == "string" || Hn(n) || t?.succeedIfKeyIsObject && typeof n == "object");
|
|
5190
|
-
}, t[5] = l, t[6] = p);
|
|
5191
|
-
let m = p, h = Gn, g, _;
|
|
5192
|
-
t[7] === i ? (g = t[8], _ = t[9]) : (g = () => {
|
|
5193
|
-
if (process.env.NODE_ENV !== "development") return;
|
|
5194
|
-
let e = /* @__PURE__ */ new Map();
|
|
5195
|
-
Object.entries(i).forEach((t) => {
|
|
5196
|
-
let [n, r] = t;
|
|
5197
|
-
h(r).forEach((t) => {
|
|
5198
|
-
let r = e.get(t);
|
|
5199
|
-
r || (r = /* @__PURE__ */ new Set(), e.set(t, r)), r.add(n);
|
|
5200
|
-
});
|
|
5201
|
-
});
|
|
5202
|
-
let t = Object.keys(i);
|
|
5203
|
-
e.forEach((e, n) => {
|
|
5204
|
-
if (e.size === t.length) return;
|
|
5205
|
-
let r = t.filter((t) => !e.has(t));
|
|
5206
|
-
console.error("Missing i18n Translation Key:", n, "in languages:", r);
|
|
5207
|
-
});
|
|
5208
|
-
}, _ = [i], t[7] = i, t[8] = g, t[9] = _), s(g, _);
|
|
5209
|
-
let v;
|
|
5210
|
-
return t[10] !== n || t[11] !== r || t[12] !== f || t[13] !== m ? (v = {
|
|
5211
|
-
t: f,
|
|
5212
|
-
tExists: m,
|
|
5213
|
-
language: n,
|
|
5214
|
-
setLanguage: r
|
|
5215
|
-
}, t[10] = n, t[11] = r, t[12] = f, t[13] = m, t[14] = v) : v = t[14], v;
|
|
4848
|
+
})), It = typeof global == "object" && global && global.Object === Object && global, Lt = typeof self == "object" && self && self.Object === Object && self, Rt = It || Lt || Function("return this")(), zt = Rt.Symbol, Bt = Object.prototype, Vt = Bt.hasOwnProperty, Ht = Bt.toString, Ut = zt ? zt.toStringTag : void 0;
|
|
4849
|
+
function Wt(e) {
|
|
4850
|
+
var t = Vt.call(e, Ut), n = e[Ut];
|
|
4851
|
+
try {
|
|
4852
|
+
e[Ut] = void 0;
|
|
4853
|
+
var r = !0;
|
|
4854
|
+
} catch {}
|
|
4855
|
+
var i = Ht.call(e);
|
|
4856
|
+
return r && (t ? e[Ut] = n : delete e[Ut]), i;
|
|
5216
4857
|
}
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
});
|
|
5223
|
-
};
|
|
5224
|
-
return n(e, ""), t;
|
|
4858
|
+
//#endregion
|
|
4859
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
|
|
4860
|
+
var Gt = Object.prototype.toString;
|
|
4861
|
+
function Kt(e) {
|
|
4862
|
+
return Gt.call(e);
|
|
5225
4863
|
}
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
4864
|
+
//#endregion
|
|
4865
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
|
|
4866
|
+
var qt = "[object Null]", Jt = "[object Undefined]", Yt = zt ? zt.toStringTag : void 0;
|
|
4867
|
+
function Xt(e) {
|
|
4868
|
+
return e == null ? e === void 0 ? Jt : qt : Yt && Yt in Object(e) ? Wt(e) : Kt(e);
|
|
5231
4869
|
}
|
|
5232
4870
|
//#endregion
|
|
5233
|
-
//#region ../../node_modules/.pnpm/
|
|
5234
|
-
function
|
|
5235
|
-
return
|
|
4871
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
|
|
4872
|
+
function Zt(e) {
|
|
4873
|
+
return typeof e == "object" && !!e;
|
|
5236
4874
|
}
|
|
5237
|
-
|
|
5238
|
-
|
|
4875
|
+
//#endregion
|
|
4876
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
|
|
4877
|
+
var Qt = "[object Symbol]";
|
|
4878
|
+
function $t(e) {
|
|
4879
|
+
return typeof e == "symbol" || Zt(e) && Xt(e) == Qt;
|
|
5239
4880
|
}
|
|
5240
|
-
|
|
5241
|
-
|
|
4881
|
+
//#endregion
|
|
4882
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
|
|
4883
|
+
function en(e, t) {
|
|
4884
|
+
for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
|
|
4885
|
+
return i;
|
|
5242
4886
|
}
|
|
4887
|
+
//#endregion
|
|
4888
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
|
|
4889
|
+
var tn = Array.isArray, nn = 1 / 0, rn = zt ? zt.prototype : void 0, an = rn ? rn.toString : void 0;
|
|
4890
|
+
function on(e) {
|
|
4891
|
+
if (typeof e == "string") return e;
|
|
4892
|
+
if (tn(e)) return en(e, on) + "";
|
|
4893
|
+
if ($t(e)) return an ? an.call(e) : "";
|
|
4894
|
+
var t = e + "";
|
|
4895
|
+
return t == "0" && 1 / e == -nn ? "-0" : t;
|
|
4896
|
+
}
|
|
4897
|
+
//#endregion
|
|
4898
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
|
|
4899
|
+
function sn(e) {
|
|
4900
|
+
var t = typeof e;
|
|
4901
|
+
return e != null && (t == "object" || t == "function");
|
|
4902
|
+
}
|
|
4903
|
+
//#endregion
|
|
4904
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
|
|
4905
|
+
var cn = "[object AsyncFunction]", ln = "[object Function]", un = "[object GeneratorFunction]", dn = "[object Proxy]";
|
|
4906
|
+
function fn(e) {
|
|
4907
|
+
if (!sn(e)) return !1;
|
|
4908
|
+
var t = Xt(e);
|
|
4909
|
+
return t == ln || t == un || t == cn || t == dn;
|
|
4910
|
+
}
|
|
4911
|
+
//#endregion
|
|
4912
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
|
|
4913
|
+
var pn = Rt["__core-js_shared__"], mn = function() {
|
|
4914
|
+
var e = /[^.]+$/.exec(pn && pn.keys && pn.keys.IE_PROTO || "");
|
|
4915
|
+
return e ? "Symbol(src)_1." + e : "";
|
|
4916
|
+
}();
|
|
4917
|
+
function hn(e) {
|
|
4918
|
+
return !!mn && mn in e;
|
|
4919
|
+
}
|
|
4920
|
+
//#endregion
|
|
4921
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
|
|
4922
|
+
var gn = Function.prototype.toString;
|
|
4923
|
+
function _n(e) {
|
|
4924
|
+
if (e != null) {
|
|
4925
|
+
try {
|
|
4926
|
+
return gn.call(e);
|
|
4927
|
+
} catch {}
|
|
4928
|
+
try {
|
|
4929
|
+
return e + "";
|
|
4930
|
+
} catch {}
|
|
4931
|
+
}
|
|
4932
|
+
return "";
|
|
4933
|
+
}
|
|
4934
|
+
//#endregion
|
|
4935
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
|
|
4936
|
+
var vn = /[\\^$.*+?()[\]{}|]/g, yn = /^\[object .+?Constructor\]$/, bn = Function.prototype, xn = Object.prototype, Sn = bn.toString, Cn = xn.hasOwnProperty, wn = RegExp("^" + Sn.call(Cn).replace(vn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
4937
|
+
function Tn(e) {
|
|
4938
|
+
return !sn(e) || hn(e) ? !1 : (fn(e) ? wn : yn).test(_n(e));
|
|
4939
|
+
}
|
|
4940
|
+
//#endregion
|
|
4941
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
|
|
4942
|
+
function En(e, t) {
|
|
4943
|
+
return e?.[t];
|
|
4944
|
+
}
|
|
4945
|
+
//#endregion
|
|
4946
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
|
|
4947
|
+
function Dn(e, t) {
|
|
4948
|
+
var n = En(e, t);
|
|
4949
|
+
return Tn(n) ? n : void 0;
|
|
4950
|
+
}
|
|
4951
|
+
//#endregion
|
|
4952
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.js
|
|
4953
|
+
function On(e, t) {
|
|
4954
|
+
return e === t || e !== e && t !== t;
|
|
4955
|
+
}
|
|
4956
|
+
//#endregion
|
|
4957
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
|
|
4958
|
+
var kn = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, An = /^\w*$/;
|
|
4959
|
+
function jn(e, t) {
|
|
4960
|
+
if (tn(e)) return !1;
|
|
4961
|
+
var n = typeof e;
|
|
4962
|
+
return n == "number" || n == "symbol" || n == "boolean" || e == null || $t(e) ? !0 : An.test(e) || !kn.test(e) || t != null && e in Object(t);
|
|
4963
|
+
}
|
|
4964
|
+
//#endregion
|
|
4965
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
|
|
4966
|
+
var Mn = Dn(Object, "create");
|
|
4967
|
+
//#endregion
|
|
4968
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
|
|
4969
|
+
function Nn() {
|
|
4970
|
+
this.__data__ = Mn ? Mn(null) : {}, this.size = 0;
|
|
4971
|
+
}
|
|
4972
|
+
//#endregion
|
|
4973
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
|
|
4974
|
+
function Pn(e) {
|
|
4975
|
+
var t = this.has(e) && delete this.__data__[e];
|
|
4976
|
+
return this.size -= +!!t, t;
|
|
4977
|
+
}
|
|
4978
|
+
//#endregion
|
|
4979
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
|
|
4980
|
+
var Fn = "__lodash_hash_undefined__", In = Object.prototype.hasOwnProperty;
|
|
4981
|
+
function Ln(e) {
|
|
4982
|
+
var t = this.__data__;
|
|
4983
|
+
if (Mn) {
|
|
4984
|
+
var n = t[e];
|
|
4985
|
+
return n === Fn ? void 0 : n;
|
|
4986
|
+
}
|
|
4987
|
+
return In.call(t, e) ? t[e] : void 0;
|
|
4988
|
+
}
|
|
4989
|
+
//#endregion
|
|
4990
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
|
|
4991
|
+
var Rn = Object.prototype.hasOwnProperty;
|
|
4992
|
+
function zn(e) {
|
|
4993
|
+
var t = this.__data__;
|
|
4994
|
+
return Mn ? t[e] !== void 0 : Rn.call(t, e);
|
|
4995
|
+
}
|
|
4996
|
+
//#endregion
|
|
4997
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
|
|
4998
|
+
var Bn = "__lodash_hash_undefined__";
|
|
4999
|
+
function Vn(e, t) {
|
|
5000
|
+
var n = this.__data__;
|
|
5001
|
+
return this.size += +!this.has(e), n[e] = Mn && t === void 0 ? Bn : t, this;
|
|
5002
|
+
}
|
|
5003
|
+
//#endregion
|
|
5004
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
|
|
5005
|
+
function Hn(e) {
|
|
5006
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
5007
|
+
for (this.clear(); ++t < n;) {
|
|
5008
|
+
var r = e[t];
|
|
5009
|
+
this.set(r[0], r[1]);
|
|
5010
|
+
}
|
|
5011
|
+
}
|
|
5012
|
+
Hn.prototype.clear = Nn, Hn.prototype.delete = Pn, Hn.prototype.get = Ln, Hn.prototype.has = zn, Hn.prototype.set = Vn;
|
|
5013
|
+
//#endregion
|
|
5014
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
|
|
5015
|
+
function Un() {
|
|
5016
|
+
this.__data__ = [], this.size = 0;
|
|
5017
|
+
}
|
|
5018
|
+
//#endregion
|
|
5019
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
|
|
5020
|
+
function Wn(e, t) {
|
|
5021
|
+
for (var n = e.length; n--;) if (On(e[n][0], t)) return n;
|
|
5022
|
+
return -1;
|
|
5023
|
+
}
|
|
5024
|
+
//#endregion
|
|
5025
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
|
|
5026
|
+
var Gn = Array.prototype.splice;
|
|
5027
|
+
function Kn(e) {
|
|
5028
|
+
var t = this.__data__, n = Wn(t, e);
|
|
5029
|
+
return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : Gn.call(t, n, 1), --this.size, !0);
|
|
5030
|
+
}
|
|
5031
|
+
//#endregion
|
|
5032
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
|
|
5033
|
+
function qn(e) {
|
|
5034
|
+
var t = this.__data__, n = Wn(t, e);
|
|
5035
|
+
return n < 0 ? void 0 : t[n][1];
|
|
5036
|
+
}
|
|
5037
|
+
//#endregion
|
|
5038
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
|
|
5039
|
+
function Jn(e) {
|
|
5040
|
+
return Wn(this.__data__, e) > -1;
|
|
5041
|
+
}
|
|
5042
|
+
//#endregion
|
|
5043
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
|
|
5044
|
+
function Yn(e, t) {
|
|
5045
|
+
var n = this.__data__, r = Wn(n, e);
|
|
5046
|
+
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
5047
|
+
}
|
|
5048
|
+
//#endregion
|
|
5049
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
|
|
5243
5050
|
function Xn(e) {
|
|
5051
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
5052
|
+
for (this.clear(); ++t < n;) {
|
|
5053
|
+
var r = e[t];
|
|
5054
|
+
this.set(r[0], r[1]);
|
|
5055
|
+
}
|
|
5056
|
+
}
|
|
5057
|
+
Xn.prototype.clear = Un, Xn.prototype.delete = Kn, Xn.prototype.get = qn, Xn.prototype.has = Jn, Xn.prototype.set = Yn;
|
|
5058
|
+
//#endregion
|
|
5059
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
|
|
5060
|
+
var Zn = Dn(Rt, "Map");
|
|
5061
|
+
//#endregion
|
|
5062
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
|
|
5063
|
+
function Qn() {
|
|
5064
|
+
this.size = 0, this.__data__ = {
|
|
5065
|
+
hash: new Hn(),
|
|
5066
|
+
map: new (Zn || Xn)(),
|
|
5067
|
+
string: new Hn()
|
|
5068
|
+
};
|
|
5069
|
+
}
|
|
5070
|
+
//#endregion
|
|
5071
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
|
|
5072
|
+
function $n(e) {
|
|
5073
|
+
var t = typeof e;
|
|
5074
|
+
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
5075
|
+
}
|
|
5076
|
+
//#endregion
|
|
5077
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
|
|
5078
|
+
function er(e, t) {
|
|
5079
|
+
var n = e.__data__;
|
|
5080
|
+
return $n(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
5081
|
+
}
|
|
5082
|
+
//#endregion
|
|
5083
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
|
|
5084
|
+
function tr(e) {
|
|
5085
|
+
var t = er(this, e).delete(e);
|
|
5086
|
+
return this.size -= +!!t, t;
|
|
5087
|
+
}
|
|
5088
|
+
//#endregion
|
|
5089
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
|
|
5090
|
+
function nr(e) {
|
|
5091
|
+
return er(this, e).get(e);
|
|
5092
|
+
}
|
|
5093
|
+
//#endregion
|
|
5094
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
|
|
5095
|
+
function rr(e) {
|
|
5096
|
+
return er(this, e).has(e);
|
|
5097
|
+
}
|
|
5098
|
+
//#endregion
|
|
5099
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
|
|
5100
|
+
function ir(e, t) {
|
|
5101
|
+
var n = er(this, e), r = n.size;
|
|
5102
|
+
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
5103
|
+
}
|
|
5104
|
+
//#endregion
|
|
5105
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js
|
|
5106
|
+
function ar(e) {
|
|
5107
|
+
var t = -1, n = e == null ? 0 : e.length;
|
|
5108
|
+
for (this.clear(); ++t < n;) {
|
|
5109
|
+
var r = e[t];
|
|
5110
|
+
this.set(r[0], r[1]);
|
|
5111
|
+
}
|
|
5112
|
+
}
|
|
5113
|
+
ar.prototype.clear = Qn, ar.prototype.delete = tr, ar.prototype.get = nr, ar.prototype.has = rr, ar.prototype.set = ir;
|
|
5114
|
+
//#endregion
|
|
5115
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
|
|
5116
|
+
var or = "Expected a function";
|
|
5117
|
+
function sr(e, t) {
|
|
5118
|
+
if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(or);
|
|
5119
|
+
var n = function() {
|
|
5120
|
+
var r = arguments, i = t ? t.apply(this, r) : r[0], a = n.cache;
|
|
5121
|
+
if (a.has(i)) return a.get(i);
|
|
5122
|
+
var o = e.apply(this, r);
|
|
5123
|
+
return n.cache = a.set(i, o) || a, o;
|
|
5124
|
+
};
|
|
5125
|
+
return n.cache = new (sr.Cache || ar)(), n;
|
|
5126
|
+
}
|
|
5127
|
+
sr.Cache = ar;
|
|
5128
|
+
//#endregion
|
|
5129
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
|
|
5130
|
+
var cr = 500;
|
|
5131
|
+
function lr(e) {
|
|
5132
|
+
var t = sr(e, function(e) {
|
|
5133
|
+
return n.size === cr && n.clear(), e;
|
|
5134
|
+
}), n = t.cache;
|
|
5135
|
+
return t;
|
|
5136
|
+
}
|
|
5137
|
+
//#endregion
|
|
5138
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
|
|
5139
|
+
var ur = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, dr = /\\(\\)?/g, fr = lr(function(e) {
|
|
5140
|
+
var t = [];
|
|
5141
|
+
return e.charCodeAt(0) === 46 && t.push(""), e.replace(ur, function(e, n, r, i) {
|
|
5142
|
+
t.push(r ? i.replace(dr, "$1") : n || e);
|
|
5143
|
+
}), t;
|
|
5144
|
+
});
|
|
5145
|
+
//#endregion
|
|
5146
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.js
|
|
5147
|
+
function pr(e) {
|
|
5148
|
+
return e == null ? "" : on(e);
|
|
5149
|
+
}
|
|
5150
|
+
//#endregion
|
|
5151
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
|
|
5152
|
+
function mr(e, t) {
|
|
5153
|
+
return tn(e) ? e : jn(e, t) ? [e] : fr(pr(e));
|
|
5154
|
+
}
|
|
5155
|
+
//#endregion
|
|
5156
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
|
|
5157
|
+
var hr = 1 / 0;
|
|
5158
|
+
function gr(e) {
|
|
5159
|
+
if (typeof e == "string" || $t(e)) return e;
|
|
5160
|
+
var t = e + "";
|
|
5161
|
+
return t == "0" && 1 / e == -hr ? "-0" : t;
|
|
5162
|
+
}
|
|
5163
|
+
//#endregion
|
|
5164
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
|
|
5165
|
+
function _r(e, t) {
|
|
5166
|
+
t = mr(t, e);
|
|
5167
|
+
for (var n = 0, r = t.length; e != null && n < r;) e = e[gr(t[n++])];
|
|
5168
|
+
return n && n == r ? e : void 0;
|
|
5169
|
+
}
|
|
5170
|
+
//#endregion
|
|
5171
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.js
|
|
5172
|
+
function vr(e, t, n) {
|
|
5173
|
+
var r = e == null ? void 0 : _r(e, t);
|
|
5174
|
+
return r === void 0 ? n : r;
|
|
5175
|
+
}
|
|
5176
|
+
//#endregion
|
|
5177
|
+
//#region ../../node_modules/.pnpm/zustand@5.0.15_@types+react@19.2.18_immer@11.1.15_react@19.2.8_use-sync-external-store@1.7.0_react@19.2.8_/node_modules/zustand/esm/vanilla.mjs
|
|
5178
|
+
var yr = (e) => {
|
|
5179
|
+
let t, n = /* @__PURE__ */ new Set(), r = (e, r) => {
|
|
5180
|
+
let i = typeof e == "function" ? e(t) : e;
|
|
5181
|
+
if (!Object.is(i, t)) {
|
|
5182
|
+
let e = t;
|
|
5183
|
+
t = r ?? (typeof i != "object" || !i) ? i : Object.assign({}, t, i), n.forEach((n) => n(t, e));
|
|
5184
|
+
}
|
|
5185
|
+
}, i = () => t, a = {
|
|
5186
|
+
setState: r,
|
|
5187
|
+
getState: i,
|
|
5188
|
+
getInitialState: () => o,
|
|
5189
|
+
subscribe: (e) => (n.add(e), () => n.delete(e))
|
|
5190
|
+
}, o = t = e(r, i, a);
|
|
5191
|
+
return a;
|
|
5192
|
+
}, br = ((e) => e ? yr(e) : yr), xr = (e) => e;
|
|
5193
|
+
function Sr(t, n = xr) {
|
|
5194
|
+
let r = e.useSyncExternalStore(t.subscribe, e.useCallback(() => n(t.getState()), [t, n]), e.useCallback(() => n(t.getInitialState()), [t, n]));
|
|
5195
|
+
return e.useDebugValue(r), r;
|
|
5196
|
+
}
|
|
5197
|
+
var Cr = (e) => {
|
|
5198
|
+
let t = br(e), n = (e) => Sr(t, e);
|
|
5199
|
+
return Object.assign(n, t), n;
|
|
5200
|
+
}, wr = ((e) => e ? Cr(e) : Cr), Tr = /* @__PURE__ */ Ue(Ft(), 1), Er = (e) => typeof e == "object" && !!e && "one" in e && "many" in e && typeof e.one == "string" && typeof e.many == "string", Dr = (e, t) => t === 1 ? e.one : e.many;
|
|
5201
|
+
function Or(e) {
|
|
5202
|
+
let t = (0, Q.c)(3), n = kr, r, a;
|
|
5203
|
+
t[0] === e ? (r = t[1], a = t[2]) : (r = () => {
|
|
5204
|
+
if (process.env.NODE_ENV !== "development") return;
|
|
5205
|
+
let t = /* @__PURE__ */ new Map();
|
|
5206
|
+
Object.entries(e).forEach((e) => {
|
|
5207
|
+
let [r, i] = e;
|
|
5208
|
+
n(i).forEach((e) => {
|
|
5209
|
+
let n = t.get(e);
|
|
5210
|
+
n || (n = /* @__PURE__ */ new Set(), t.set(e, n)), n.add(r);
|
|
5211
|
+
});
|
|
5212
|
+
});
|
|
5213
|
+
let r = Object.keys(e);
|
|
5214
|
+
t.forEach((e, t) => {
|
|
5215
|
+
if (e.size === r.length) return;
|
|
5216
|
+
let n = r.filter((t) => !e.has(t));
|
|
5217
|
+
console.error("Missing i18n Translation Key:", t, "in languages:", n);
|
|
5218
|
+
});
|
|
5219
|
+
}, a = [e], t[0] = e, t[1] = r, t[2] = a), i(r, a);
|
|
5220
|
+
}
|
|
5221
|
+
function kr(e) {
|
|
5222
|
+
let t = [], n = (e, r) => {
|
|
5223
|
+
Object.entries(e).forEach((e) => {
|
|
5224
|
+
let [i, a] = e, o = r ? `${r}.${i}` : i;
|
|
5225
|
+
typeof a == "object" && a && !Array.isArray(a) && !Er(a) ? n(a, o) : t.push(o);
|
|
5226
|
+
});
|
|
5227
|
+
};
|
|
5228
|
+
return n(e, ""), t;
|
|
5229
|
+
}
|
|
5230
|
+
Tr.Utils.escapeExpression = (e) => String(e ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
5231
|
+
var Ar = "language", jr = wr((e) => ({
|
|
5232
|
+
language: "en",
|
|
5233
|
+
explicitLanguage: void 0,
|
|
5234
|
+
setLanguage: (t) => {
|
|
5235
|
+
let n = t === "de" ? "de" : "en";
|
|
5236
|
+
e({
|
|
5237
|
+
language: n,
|
|
5238
|
+
explicitLanguage: n
|
|
5239
|
+
});
|
|
5240
|
+
try {
|
|
5241
|
+
globalThis.localStorage?.setItem(Ar, n);
|
|
5242
|
+
} catch {}
|
|
5243
|
+
}
|
|
5244
|
+
}));
|
|
5245
|
+
function Mr(e, t) {
|
|
5246
|
+
let n = (0, Q.c)(18), r;
|
|
5247
|
+
n[0] === t ? r = n[1] : (r = t === void 0 ? {} : t, n[0] = t, n[1] = r);
|
|
5248
|
+
let i = r, { language: a, setLanguage: o } = jr(), [s] = c(e), l = s[a], u = s.en, d;
|
|
5249
|
+
n[2] !== l || n[3] !== u ? (d = (e) => {
|
|
5250
|
+
let t = vr(u, e);
|
|
5251
|
+
return vr(l, e, t);
|
|
5252
|
+
}, n[2] = l, n[3] = u, n[4] = d) : d = n[4];
|
|
5253
|
+
let f = d, p;
|
|
5254
|
+
n[5] !== f || n[6] !== i.escapeValues ? (p = (e, t) => {
|
|
5255
|
+
let n = `!!! ${e} !!!`, r = f(e);
|
|
5256
|
+
return Er(r) && t && typeof t.count == "number" && (r = Dr(r, t.count)), r === void 0 || typeof r != "string" ? (console.error(`Missing translation for key: ${e}`), n) : Tr.compile(r, { noEscape: i.escapeValues === !1 })(t);
|
|
5257
|
+
}, n[5] = f, n[6] = i.escapeValues, n[7] = p) : p = n[7];
|
|
5258
|
+
let m = p, h;
|
|
5259
|
+
n[8] === m ? h = n[9] : (h = (e) => typeof e == "string" ? e : m(e.key, e.data), n[8] = m, n[9] = h);
|
|
5260
|
+
let g = h, _;
|
|
5261
|
+
n[10] === f ? _ = n[11] : (_ = (e, t) => {
|
|
5262
|
+
let n = f(e);
|
|
5263
|
+
return n !== void 0 && (typeof n == "string" || Er(n) || t?.succeedIfKeyIsObject && typeof n == "object");
|
|
5264
|
+
}, n[10] = f, n[11] = _);
|
|
5265
|
+
let v = _;
|
|
5266
|
+
Or(s);
|
|
5267
|
+
let y;
|
|
5268
|
+
return n[12] !== a || n[13] !== o || n[14] !== m || n[15] !== v || n[16] !== g ? (y = {
|
|
5269
|
+
t: m,
|
|
5270
|
+
tMessage: g,
|
|
5271
|
+
tExists: v,
|
|
5272
|
+
language: a,
|
|
5273
|
+
setLanguage: o
|
|
5274
|
+
}, n[12] = a, n[13] = o, n[14] = m, n[15] = v, n[16] = g, n[17] = y) : y = n[17], y;
|
|
5275
|
+
}
|
|
5276
|
+
function Nr() {
|
|
5277
|
+
let e = jr.getState().explicitLanguage;
|
|
5278
|
+
if (e) return e;
|
|
5279
|
+
for (let e of ["localStorage", "sessionStorage"]) try {
|
|
5280
|
+
let t = Ye(globalThis[e]?.getItem(Ar));
|
|
5281
|
+
if (t) return t;
|
|
5282
|
+
} catch {}
|
|
5283
|
+
for (let e of navigator.languages ?? [navigator.language]) {
|
|
5284
|
+
let t = Ye(e);
|
|
5285
|
+
if (t) return t;
|
|
5286
|
+
}
|
|
5287
|
+
}
|
|
5288
|
+
function Pr(e = "en") {
|
|
5289
|
+
return Nr() ?? e;
|
|
5290
|
+
}
|
|
5291
|
+
function Fr() {
|
|
5292
|
+
jr.setState({ language: Pr() });
|
|
5293
|
+
}
|
|
5294
|
+
//#endregion
|
|
5295
|
+
//#region ../../node_modules/.pnpm/jdenticon@3.3.0/node_modules/jdenticon/dist/jdenticon-module.mjs
|
|
5296
|
+
function Ir(e, t, n) {
|
|
5297
|
+
return parseInt(e.substr(t, n), 16);
|
|
5298
|
+
}
|
|
5299
|
+
function Lr(e) {
|
|
5300
|
+
return e |= 0, e < 0 ? "00" : e < 16 ? "0" + e.toString(16) : e < 256 ? e.toString(16) : "ff";
|
|
5301
|
+
}
|
|
5302
|
+
function Rr(e, t, n) {
|
|
5303
|
+
return n = n < 0 ? n + 6 : n > 6 ? n - 6 : n, Lr(255 * (n < 1 ? e + (t - e) * n : n < 3 ? t : n < 4 ? e + (t - e) * (4 - n) : e));
|
|
5304
|
+
}
|
|
5305
|
+
function zr(e) {
|
|
5244
5306
|
if (/^#[0-9a-f]{3,8}$/i.test(e)) {
|
|
5245
5307
|
let t, n = e.length;
|
|
5246
5308
|
if (n < 6) {
|
|
@@ -5250,18 +5312,18 @@ function Xn(e) {
|
|
|
5250
5312
|
return (n == 7 || n > 8) && (t = e), t;
|
|
5251
5313
|
}
|
|
5252
5314
|
}
|
|
5253
|
-
function
|
|
5315
|
+
function Br(e, t, n) {
|
|
5254
5316
|
let r;
|
|
5255
5317
|
if (t == 0) {
|
|
5256
|
-
let e =
|
|
5318
|
+
let e = Lr(n * 255);
|
|
5257
5319
|
r = e + e + e;
|
|
5258
5320
|
} else {
|
|
5259
5321
|
let i = n <= .5 ? n * (t + 1) : n + t - n * t, a = n * 2 - i;
|
|
5260
|
-
r =
|
|
5322
|
+
r = Rr(a, i, e * 6 + 2) + Rr(a, i, e * 6) + Rr(a, i, e * 6 - 2);
|
|
5261
5323
|
}
|
|
5262
5324
|
return "#" + r;
|
|
5263
5325
|
}
|
|
5264
|
-
function
|
|
5326
|
+
function Vr(e, t, n) {
|
|
5265
5327
|
let r = [
|
|
5266
5328
|
.55,
|
|
5267
5329
|
.5,
|
|
@@ -5271,14 +5333,14 @@ function Qn(e, t, n) {
|
|
|
5271
5333
|
.55,
|
|
5272
5334
|
.55
|
|
5273
5335
|
][e * 6 + .5 | 0];
|
|
5274
|
-
return n = n < .5 ? n * r * 2 : r + (n - .5) * (1 - r) * 2,
|
|
5336
|
+
return n = n < .5 ? n * r * 2 : r + (n - .5) * (1 - r) * 2, Br(e, t, n);
|
|
5275
5337
|
}
|
|
5276
|
-
var
|
|
5338
|
+
var Hr = typeof window < "u" ? window : typeof self < "u" ? self : typeof global < "u" ? global : {}, Ur = {
|
|
5277
5339
|
V: "jdenticon_config",
|
|
5278
5340
|
n: "config"
|
|
5279
|
-
},
|
|
5280
|
-
function
|
|
5281
|
-
let n = typeof e == "object" && e ||
|
|
5341
|
+
}, Wr = {};
|
|
5342
|
+
function Gr(e, t) {
|
|
5343
|
+
let n = typeof e == "object" && e || Wr[Ur.n] || Hr[Ur.V] || {}, r = n.lightness || {}, i = n.saturation || {}, a = "color" in i ? i.color : i, o = i.grayscale, s = n.backColor, c = n.padding;
|
|
5282
5344
|
function l(e, t) {
|
|
5283
5345
|
let n = r[e];
|
|
5284
5346
|
return n && n.length > 1 || (n = t), function(e) {
|
|
@@ -5295,25 +5357,25 @@ function nr(e, t) {
|
|
|
5295
5357
|
D: typeof o == "number" ? o : 0,
|
|
5296
5358
|
p: l("color", [.4, .8]),
|
|
5297
5359
|
F: l("grayscale", [.3, .9]),
|
|
5298
|
-
G:
|
|
5360
|
+
G: zr(s),
|
|
5299
5361
|
X: typeof e == "number" ? e : typeof c == "number" ? c : t
|
|
5300
5362
|
};
|
|
5301
5363
|
}
|
|
5302
|
-
var
|
|
5364
|
+
var Kr = class {
|
|
5303
5365
|
constructor(e, t) {
|
|
5304
5366
|
this.x = e, this.y = t;
|
|
5305
5367
|
}
|
|
5306
|
-
},
|
|
5368
|
+
}, qr = class {
|
|
5307
5369
|
constructor(e, t, n, r) {
|
|
5308
5370
|
this.q = e, this.t = t, this.H = n, this.Y = r;
|
|
5309
5371
|
}
|
|
5310
5372
|
I(e, t, n, r) {
|
|
5311
5373
|
let i = this.q + this.H, a = this.t + this.H, o = this.Y;
|
|
5312
|
-
return o === 1 ? new
|
|
5374
|
+
return o === 1 ? new Kr(i - t - (r || 0), this.t + e) : o === 2 ? new Kr(i - e - (n || 0), a - t - (r || 0)) : o === 3 ? new Kr(this.q + t, a - e - (n || 0)) : new Kr(this.q + e, this.t + t);
|
|
5313
5375
|
}
|
|
5314
|
-
},
|
|
5376
|
+
}, Jr = new qr(0, 0, 0, 0), Yr = class {
|
|
5315
5377
|
constructor(e) {
|
|
5316
|
-
this.J = e, this.u =
|
|
5378
|
+
this.J = e, this.u = Jr;
|
|
5317
5379
|
}
|
|
5318
5380
|
g(e, t) {
|
|
5319
5381
|
let n = t ? -2 : 2, r = [];
|
|
@@ -5362,7 +5424,7 @@ var rr = class {
|
|
|
5362
5424
|
], i);
|
|
5363
5425
|
}
|
|
5364
5426
|
};
|
|
5365
|
-
function
|
|
5427
|
+
function Xr(e, t, n, r) {
|
|
5366
5428
|
e %= 14;
|
|
5367
5429
|
let i, a, o, s, c, l;
|
|
5368
5430
|
e ? e == 1 ? (o = 0 | n * .5, s = 0 | n * .8, t.j(n - o, 0, o, s, 2)) : e == 2 ? (o = 0 | n / 3, t.i(o, o, n - o, n - o)) : e == 3 ? (c = n * .1, l = n < 6 ? 1 : n < 8 ? 2 : 0 | n * .25, c = c > 1 ? 0 | c : c > .5 ? 1 : c, t.i(l, l, n - c - l, n - c - l)) : e == 4 ? (a = 0 | n * .15, o = 0 | n * .5, t.h(n - o - a, n - o - a, o)) : e == 5 ? (c = n * .1, l = c * 4, l > 3 && (l = 0 | l), t.i(0, 0, n, n), t.g([
|
|
@@ -5398,40 +5460,40 @@ function sr(e, t, n, r) {
|
|
|
5398
5460
|
n
|
|
5399
5461
|
]));
|
|
5400
5462
|
}
|
|
5401
|
-
function
|
|
5463
|
+
function Zr(e, t, n) {
|
|
5402
5464
|
e %= 4;
|
|
5403
5465
|
let r;
|
|
5404
5466
|
e ? e == 1 ? t.j(0, n / 2, n, n / 2, 0) : e == 2 ? t.K(0, 0, n, n) : (r = n / 6, t.h(r, r, n - 2 * r)) : t.j(0, 0, n, n, 0);
|
|
5405
5467
|
}
|
|
5406
|
-
function
|
|
5468
|
+
function Qr(e, t) {
|
|
5407
5469
|
return e = t.W(e), [
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5470
|
+
Vr(e, t.D, t.F(0)),
|
|
5471
|
+
Vr(e, t.o, t.p(.5)),
|
|
5472
|
+
Vr(e, t.D, t.F(1)),
|
|
5473
|
+
Vr(e, t.o, t.p(1)),
|
|
5474
|
+
Vr(e, t.o, t.p(0))
|
|
5413
5475
|
];
|
|
5414
5476
|
}
|
|
5415
|
-
function
|
|
5416
|
-
let r =
|
|
5477
|
+
function $r(e, t, n) {
|
|
5478
|
+
let r = Gr(n, .08);
|
|
5417
5479
|
r.G && e.m(r.G);
|
|
5418
5480
|
let i = e.k, a = .5 + i * r.X | 0;
|
|
5419
5481
|
i -= a * 2;
|
|
5420
|
-
let o = new
|
|
5482
|
+
let o = new Yr(e), s = 0 | i / 4, c = 0 | a + i / 2 - s * 2, l = 0 | a + i / 2 - s * 2;
|
|
5421
5483
|
function u(n, r, i, a, u) {
|
|
5422
|
-
let p =
|
|
5484
|
+
let p = Ir(t, i, 1), m = a ? Ir(t, a, 1) : 0;
|
|
5423
5485
|
e.L(d[f[n]]);
|
|
5424
|
-
for (let e = 0; e < u.length; e++) o.u = new
|
|
5486
|
+
for (let e = 0; e < u.length; e++) o.u = new qr(c + u[e][0] * s, l + u[e][1] * s, s, m++ % 4), r(p, o, s, e);
|
|
5425
5487
|
e.M();
|
|
5426
5488
|
}
|
|
5427
|
-
let d =
|
|
5489
|
+
let d = Qr(Ir(t, -7) / 268435455, r), f = [], p;
|
|
5428
5490
|
function m(e) {
|
|
5429
5491
|
if (e.indexOf(p) >= 0) {
|
|
5430
5492
|
for (let t = 0; t < e.length; t++) if (f.indexOf(e[t]) >= 0) return !0;
|
|
5431
5493
|
}
|
|
5432
5494
|
}
|
|
5433
|
-
for (let e = 0; e < 3; e++) p =
|
|
5434
|
-
u(0,
|
|
5495
|
+
for (let e = 0; e < 3; e++) p = Ir(t, 8 + e, 1) % d.length, (m([0, 4]) || m([2, 3])) && (p = 1), f.push(p);
|
|
5496
|
+
u(0, Zr, 2, 3, [
|
|
5435
5497
|
[1, 0],
|
|
5436
5498
|
[2, 0],
|
|
5437
5499
|
[2, 3],
|
|
@@ -5440,19 +5502,19 @@ function ur(e, t, n) {
|
|
|
5440
5502
|
[3, 1],
|
|
5441
5503
|
[3, 2],
|
|
5442
5504
|
[0, 2]
|
|
5443
|
-
]), u(1,
|
|
5505
|
+
]), u(1, Zr, 4, 5, [
|
|
5444
5506
|
[0, 0],
|
|
5445
5507
|
[3, 0],
|
|
5446
5508
|
[3, 3],
|
|
5447
5509
|
[0, 3]
|
|
5448
|
-
]), u(2,
|
|
5510
|
+
]), u(2, Xr, 1, null, [
|
|
5449
5511
|
[1, 1],
|
|
5450
5512
|
[2, 1],
|
|
5451
5513
|
[2, 2],
|
|
5452
5514
|
[1, 2]
|
|
5453
5515
|
]), e.finish();
|
|
5454
5516
|
}
|
|
5455
|
-
function
|
|
5517
|
+
function ei(e) {
|
|
5456
5518
|
var t = 0, n = 0, r = encodeURI(e) + "%80", i = [], a, o = [], s = 1732584193, c = 4023233417, l = ~s, u = ~c, d = 3285377520, f = [
|
|
5457
5519
|
s,
|
|
5458
5520
|
c,
|
|
@@ -5471,39 +5533,39 @@ function dr(e) {
|
|
|
5471
5533
|
for (t = 0; t < 40; t++) m += (f[t >> 3] >>> (7 - (t & 7)) * 4 & 15).toString(16);
|
|
5472
5534
|
return m;
|
|
5473
5535
|
}
|
|
5474
|
-
function
|
|
5536
|
+
function ti(e) {
|
|
5475
5537
|
return /^[0-9a-f]{11,}$/i.test(e) && e;
|
|
5476
5538
|
}
|
|
5477
|
-
function
|
|
5478
|
-
return
|
|
5539
|
+
function ni(e) {
|
|
5540
|
+
return ei(e == null ? "" : "" + e);
|
|
5479
5541
|
}
|
|
5480
5542
|
typeof document < "u" && document.querySelectorAll.bind(document);
|
|
5481
|
-
function
|
|
5543
|
+
function ri(e) {
|
|
5482
5544
|
return (e * 10 + .5 | 0) / 10;
|
|
5483
5545
|
}
|
|
5484
|
-
var
|
|
5546
|
+
var ii = class {
|
|
5485
5547
|
constructor() {
|
|
5486
5548
|
this.v = "";
|
|
5487
5549
|
}
|
|
5488
5550
|
g(e) {
|
|
5489
5551
|
let t = "";
|
|
5490
|
-
for (let n = 0; n < e.length; n++) t += (n ? "L" : "M") +
|
|
5552
|
+
for (let n = 0; n < e.length; n++) t += (n ? "L" : "M") + ri(e[n].x) + " " + ri(e[n].y);
|
|
5491
5553
|
this.v += t + "Z";
|
|
5492
5554
|
}
|
|
5493
5555
|
h(e, t, n) {
|
|
5494
|
-
let r = +!n, i =
|
|
5495
|
-
this.v += "M" +
|
|
5556
|
+
let r = +!n, i = ri(t / 2), a = ri(t), o = "a" + i + "," + i + " 0 1," + r + " ";
|
|
5557
|
+
this.v += "M" + ri(e.x) + " " + ri(e.y + t / 2) + o + a + ",0" + o + -a + ",0";
|
|
5496
5558
|
}
|
|
5497
|
-
},
|
|
5559
|
+
}, ai = class {
|
|
5498
5560
|
constructor(e) {
|
|
5499
5561
|
this.A, this.B = {}, this.O = e, this.k = e.k;
|
|
5500
5562
|
}
|
|
5501
5563
|
m(e) {
|
|
5502
|
-
let t = /^(#......)(..)?/.exec(e), n = t[2] ?
|
|
5564
|
+
let t = /^(#......)(..)?/.exec(e), n = t[2] ? Ir(t[2], 0) / 255 : 1;
|
|
5503
5565
|
this.O.m(t[1], n);
|
|
5504
5566
|
}
|
|
5505
5567
|
L(e) {
|
|
5506
|
-
this.A = this.B[e] || (this.B[e] = new
|
|
5568
|
+
this.A = this.B[e] || (this.B[e] = new ii());
|
|
5507
5569
|
}
|
|
5508
5570
|
M() {}
|
|
5509
5571
|
g(e) {
|
|
@@ -5516,13 +5578,13 @@ var hr = class {
|
|
|
5516
5578
|
let e = this.B;
|
|
5517
5579
|
for (let t in e) e.hasOwnProperty(t) && this.O.P(t, e[t].v);
|
|
5518
5580
|
}
|
|
5519
|
-
},
|
|
5581
|
+
}, oi = {
|
|
5520
5582
|
R: "http://www.w3.org/2000/svg",
|
|
5521
5583
|
S: "width",
|
|
5522
5584
|
T: "height"
|
|
5523
|
-
},
|
|
5585
|
+
}, si = class {
|
|
5524
5586
|
constructor(e) {
|
|
5525
|
-
this.k = e, this.C = "<svg xmlns=\"" +
|
|
5587
|
+
this.k = e, this.C = "<svg xmlns=\"" + oi.R + "\" width=\"" + e + "\" height=\"" + e + "\" viewBox=\"0 0 " + e + " " + e + "\">";
|
|
5526
5588
|
}
|
|
5527
5589
|
m(e, t) {
|
|
5528
5590
|
t && (this.C += "<rect width=\"100%\" height=\"100%\" fill=\"" + e + "\" opacity=\"" + t.toFixed(2) + "\"/>");
|
|
@@ -5534,126 +5596,31 @@ var hr = class {
|
|
|
5534
5596
|
return this.C + "</svg>";
|
|
5535
5597
|
}
|
|
5536
5598
|
};
|
|
5537
|
-
function
|
|
5538
|
-
let r = new
|
|
5539
|
-
return
|
|
5599
|
+
function ci(e, t, n) {
|
|
5600
|
+
let r = new si(t);
|
|
5601
|
+
return $r(new ai(r), ti(e) || ni(e), n), r.toString();
|
|
5540
5602
|
}
|
|
5541
5603
|
//#endregion
|
|
5542
|
-
//#region
|
|
5543
|
-
var
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
}, wr = {
|
|
5547
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5548
|
-
width: 24,
|
|
5549
|
-
height: 24,
|
|
5550
|
-
viewBox: "0 0 24 24",
|
|
5551
|
-
fill: "none",
|
|
5552
|
-
stroke: "currentColor",
|
|
5553
|
-
strokeWidth: 2,
|
|
5554
|
-
strokeLinecap: "round",
|
|
5555
|
-
strokeLinejoin: "round"
|
|
5556
|
-
}, Tr = (e) => {
|
|
5557
|
-
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
5558
|
-
return !1;
|
|
5559
|
-
}, Er = n({}), Dr = () => o(Er), Or = i(({ color: e, size: t, strokeWidth: n, absoluteStrokeWidth: i, className: a = "", children: o, iconNode: s, ...c }, l) => {
|
|
5560
|
-
let { size: u = 24, strokeWidth: d = 2, absoluteStrokeWidth: f = !1, color: p = "currentColor", className: m = "" } = Dr() ?? {}, h = i ?? f ? Number(n ?? d) * 24 / Number(t ?? u) : n ?? d;
|
|
5561
|
-
return r("svg", {
|
|
5562
|
-
ref: l,
|
|
5563
|
-
...wr,
|
|
5564
|
-
width: t ?? u ?? wr.width,
|
|
5565
|
-
height: t ?? u ?? wr.height,
|
|
5566
|
-
stroke: e ?? p,
|
|
5567
|
-
strokeWidth: h,
|
|
5568
|
-
className: br("lucide", m, a),
|
|
5569
|
-
...!o && !Tr(c) && { "aria-hidden": "true" },
|
|
5570
|
-
...c
|
|
5571
|
-
}, [...s.map(([e, t]) => r(e, t)), ...Array.isArray(o) ? o : [o]]);
|
|
5572
|
-
}), kr = (e, t) => {
|
|
5573
|
-
let n = i(({ className: n, ...i }, a) => r(Or, {
|
|
5574
|
-
ref: a,
|
|
5575
|
-
iconNode: t,
|
|
5576
|
-
className: br(`lucide-${xr(Cr(e))}`, `lucide-${e}`, n),
|
|
5577
|
-
...i
|
|
5578
|
-
}));
|
|
5579
|
-
return n.displayName = Cr(e), n;
|
|
5580
|
-
}, Ar = kr("chevron-down", [["path", {
|
|
5581
|
-
d: "m6 9 6 6 6-6",
|
|
5582
|
-
key: "qrunsl"
|
|
5583
|
-
}]]), jr = kr("message-circle", [["path", {
|
|
5584
|
-
d: "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",
|
|
5585
|
-
key: "1sd12s"
|
|
5586
|
-
}]]), Mr = kr("search", [["path", {
|
|
5587
|
-
d: "m21 21-4.34-4.34",
|
|
5588
|
-
key: "14j7rj"
|
|
5589
|
-
}], ["circle", {
|
|
5590
|
-
cx: "11",
|
|
5591
|
-
cy: "11",
|
|
5592
|
-
r: "8",
|
|
5593
|
-
key: "4ej97u"
|
|
5594
|
-
}]]), Nr = kr("triangle-alert", [
|
|
5595
|
-
["path", {
|
|
5596
|
-
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
5597
|
-
key: "wmoenq"
|
|
5598
|
-
}],
|
|
5599
|
-
["path", {
|
|
5600
|
-
d: "M12 9v4",
|
|
5601
|
-
key: "juzpu7"
|
|
5602
|
-
}],
|
|
5603
|
-
["path", {
|
|
5604
|
-
d: "M12 17h.01",
|
|
5605
|
-
key: "p32p05"
|
|
5606
|
-
}]
|
|
5607
|
-
]), Pr = kr("user-plus", [
|
|
5608
|
-
["path", {
|
|
5609
|
-
d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",
|
|
5610
|
-
key: "1yyitq"
|
|
5611
|
-
}],
|
|
5612
|
-
["circle", {
|
|
5613
|
-
cx: "9",
|
|
5614
|
-
cy: "7",
|
|
5615
|
-
r: "4",
|
|
5616
|
-
key: "nufk8"
|
|
5617
|
-
}],
|
|
5618
|
-
["line", {
|
|
5619
|
-
x1: "19",
|
|
5620
|
-
x2: "19",
|
|
5621
|
-
y1: "8",
|
|
5622
|
-
y2: "14",
|
|
5623
|
-
key: "1bvyxn"
|
|
5624
|
-
}],
|
|
5625
|
-
["line", {
|
|
5626
|
-
x1: "22",
|
|
5627
|
-
x2: "16",
|
|
5628
|
-
y1: "11",
|
|
5629
|
-
y2: "11",
|
|
5630
|
-
key: "1shjgl"
|
|
5631
|
-
}]
|
|
5632
|
-
]), Fr = kr("x", [["path", {
|
|
5633
|
-
d: "M18 6 6 18",
|
|
5634
|
-
key: "1bl5f8"
|
|
5635
|
-
}], ["path", {
|
|
5636
|
-
d: "m6 6 12 12",
|
|
5637
|
-
key: "d8bk6v"
|
|
5638
|
-
}]]), Ir = n({});
|
|
5639
|
-
function Lr(e) {
|
|
5640
|
-
let t = (0, Z.c)(5), { children: n, onStartDirectMessage: r } = e, i;
|
|
5604
|
+
//#region src/lib/components/attraccess-user/AttraccessUserActionsContext.tsx
|
|
5605
|
+
var li = t({});
|
|
5606
|
+
function ui(e) {
|
|
5607
|
+
let t = (0, Q.c)(5), { children: n, onStartDirectMessage: r } = e, i;
|
|
5641
5608
|
t[0] === r ? i = t[1] : (i = { onStartDirectMessage: r }, t[0] = r, t[1] = i);
|
|
5642
5609
|
let a;
|
|
5643
|
-
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */
|
|
5610
|
+
return t[2] !== n || t[3] !== i ? (a = /* @__PURE__ */ Y(li.Provider, {
|
|
5644
5611
|
value: i,
|
|
5645
5612
|
children: n
|
|
5646
5613
|
}), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
|
|
5647
5614
|
}
|
|
5648
|
-
function
|
|
5649
|
-
return
|
|
5615
|
+
function di() {
|
|
5616
|
+
return r(li);
|
|
5650
5617
|
}
|
|
5651
|
-
var
|
|
5618
|
+
var fi = {
|
|
5652
5619
|
unknown: "Unknown",
|
|
5653
5620
|
startDirectMessage: "Start direct message",
|
|
5654
5621
|
emailVerified: "Email verified",
|
|
5655
5622
|
emailUnverified: "Email not verified"
|
|
5656
|
-
},
|
|
5623
|
+
}, pi = {
|
|
5657
5624
|
unknown: "Gelöscht",
|
|
5658
5625
|
startDirectMessage: "Direktnachricht starten",
|
|
5659
5626
|
emailVerified: "E-Mail bestätigt",
|
|
@@ -5661,1289 +5628,206 @@ var zr = {
|
|
|
5661
5628
|
};
|
|
5662
5629
|
//#endregion
|
|
5663
5630
|
//#region src/lib/components/attraccess-user/AttraccessUser.tsx
|
|
5664
|
-
function
|
|
5665
|
-
let t = (0,
|
|
5631
|
+
function mi(e) {
|
|
5632
|
+
let t = (0, Q.c)(63), { user: n, description: r, className: i, onStartDirectMessage: a, variant: o, interactive: s } = e, c = o === void 0 ? "full" : o, l = s === void 0 || s, u;
|
|
5666
5633
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
5667
|
-
en:
|
|
5668
|
-
de:
|
|
5634
|
+
en: fi,
|
|
5635
|
+
de: pi
|
|
5669
5636
|
}, t[0] = u) : u = t[0];
|
|
5670
|
-
let { t: d } =
|
|
5637
|
+
let { t: d } = Mr(u), f = di(), p = !n || !!n?.deletedAt, m;
|
|
5671
5638
|
bb0: {
|
|
5672
|
-
if (
|
|
5673
|
-
|
|
5639
|
+
if (p) {
|
|
5640
|
+
m = void 0;
|
|
5674
5641
|
break bb0;
|
|
5675
5642
|
}
|
|
5676
5643
|
let e;
|
|
5677
5644
|
if (t[1] !== n?.id) {
|
|
5678
|
-
let r =
|
|
5645
|
+
let r = ci(n?.id || "unknown", 100);
|
|
5679
5646
|
e = btoa(r), t[1] = n?.id, t[2] = e;
|
|
5680
5647
|
} else e = t[2];
|
|
5681
|
-
|
|
5648
|
+
m = `data:image/svg+xml;base64,${e}`;
|
|
5682
5649
|
}
|
|
5683
|
-
let y =
|
|
5684
|
-
if (t[3] !==
|
|
5650
|
+
let y = m, b, x, S, C, w, T, E, D;
|
|
5651
|
+
if (t[3] !== f || t[4] !== y || t[5] !== l || t[6] !== p || t[7] !== a || t[8] !== d || t[9] !== n) {
|
|
5685
5652
|
C = n?.username || d("unknown");
|
|
5686
5653
|
let e;
|
|
5687
|
-
t[18] !==
|
|
5688
|
-
a ? a(n) :
|
|
5689
|
-
}, t[18] =
|
|
5654
|
+
t[18] !== f || t[19] !== a || t[20] !== n ? (e = () => {
|
|
5655
|
+
a ? a(n) : f.onStartDirectMessage(n);
|
|
5656
|
+
}, t[18] = f, t[19] = a, t[20] = n, t[21] = e) : e = t[21], w = e, S = l && !!n && !!w, x = h, D = y ? /* @__PURE__ */ Y(_, {
|
|
5690
5657
|
src: y,
|
|
5691
5658
|
alt: C
|
|
5692
|
-
}) : null, b =
|
|
5659
|
+
}) : null, b = g, T = p ? "warning" : void 0, E = p ? /* @__PURE__ */ Y(_e, { className: "w-4 h-4" }) : C.slice(0, 2).toUpperCase(), t[3] = f, t[4] = y, t[5] = l, t[6] = p, t[7] = a, t[8] = d, t[9] = n, t[10] = b, t[11] = x, t[12] = S, t[13] = C, t[14] = w, t[15] = T, t[16] = E, t[17] = D;
|
|
5693
5660
|
} else b = t[10], x = t[11], S = t[12], C = t[13], w = t[14], T = t[15], E = t[16], D = t[17];
|
|
5694
5661
|
let O;
|
|
5695
|
-
t[22] !== b || t[23] !== T || t[24] !== E ? (O = /* @__PURE__ */
|
|
5662
|
+
t[22] !== b || t[23] !== T || t[24] !== E ? (O = /* @__PURE__ */ Y(b, {
|
|
5696
5663
|
color: T,
|
|
5697
5664
|
children: E
|
|
5698
5665
|
}), t[22] = b, t[23] = T, t[24] = E, t[25] = O) : O = t[25];
|
|
5699
|
-
let
|
|
5700
|
-
t[26] !== x || t[27] !== D || t[28] !== O ? (
|
|
5701
|
-
let
|
|
5702
|
-
t[30] !==
|
|
5703
|
-
let
|
|
5704
|
-
t[33] ===
|
|
5666
|
+
let k;
|
|
5667
|
+
t[26] !== x || t[27] !== D || t[28] !== O ? (k = /* @__PURE__ */ X(x, { children: [D, O] }), t[26] = x, t[27] = D, t[28] = O, t[29] = k) : k = t[29];
|
|
5668
|
+
let A = k, j = `flex items-center gap-2 ${i ?? ""}`, M;
|
|
5669
|
+
t[30] !== p || t[31] !== C ? (M = p ? /* @__PURE__ */ Y("del", { children: C }) : C, t[30] = p, t[31] = C, t[32] = M) : M = t[32];
|
|
5670
|
+
let N;
|
|
5671
|
+
t[33] === M ? N = t[34] : (N = /* @__PURE__ */ Y("span", {
|
|
5705
5672
|
className: "text-sm font-medium group-hover:underline",
|
|
5706
|
-
children:
|
|
5707
|
-
}), t[33] =
|
|
5708
|
-
let
|
|
5709
|
-
t[35] === S ?
|
|
5673
|
+
children: M
|
|
5674
|
+
}), t[33] = M, t[34] = N);
|
|
5675
|
+
let P;
|
|
5676
|
+
t[35] === S ? P = t[36] : (P = S && /* @__PURE__ */ Y(be, {
|
|
5710
5677
|
className: "h-3 w-3 text-muted-foreground shrink-0",
|
|
5711
5678
|
"aria-hidden": "true",
|
|
5712
5679
|
focusable: "false"
|
|
5713
|
-
}), t[35] = S, t[36] =
|
|
5714
|
-
let
|
|
5715
|
-
t[37] !==
|
|
5680
|
+
}), t[35] = S, t[36] = P);
|
|
5681
|
+
let F;
|
|
5682
|
+
t[37] !== N || t[38] !== P ? (F = /* @__PURE__ */ X("div", {
|
|
5716
5683
|
className: "flex flex-row items-center gap-1",
|
|
5717
|
-
children: [
|
|
5718
|
-
}), t[37] =
|
|
5719
|
-
let
|
|
5720
|
-
t[40] !== r || t[41] !==
|
|
5684
|
+
children: [N, P]
|
|
5685
|
+
}), t[37] = N, t[38] = P, t[39] = F) : F = t[39];
|
|
5686
|
+
let I;
|
|
5687
|
+
t[40] !== r || t[41] !== p ? (I = r && /* @__PURE__ */ Y("span", {
|
|
5721
5688
|
className: "text-xs text-muted-foreground",
|
|
5722
|
-
children:
|
|
5723
|
-
}), t[40] = r, t[41] =
|
|
5724
|
-
let
|
|
5725
|
-
t[43] !==
|
|
5689
|
+
children: p ? /* @__PURE__ */ Y("del", { children: r }) : r
|
|
5690
|
+
}), t[40] = r, t[41] = p, t[42] = I) : I = t[42];
|
|
5691
|
+
let L;
|
|
5692
|
+
t[43] !== F || t[44] !== I ? (L = /* @__PURE__ */ X("div", {
|
|
5726
5693
|
className: "flex flex-col",
|
|
5727
|
-
children: [
|
|
5728
|
-
}), t[43] =
|
|
5729
|
-
let
|
|
5730
|
-
t[46] !==
|
|
5731
|
-
className:
|
|
5732
|
-
children: [
|
|
5733
|
-
}), t[46] =
|
|
5734
|
-
let
|
|
5735
|
-
if (!S) return
|
|
5736
|
-
let
|
|
5737
|
-
t[50] ===
|
|
5694
|
+
children: [F, I]
|
|
5695
|
+
}), t[43] = F, t[44] = I, t[45] = L) : L = t[45];
|
|
5696
|
+
let R;
|
|
5697
|
+
t[46] !== A || t[47] !== j || t[48] !== L ? (R = /* @__PURE__ */ X("div", {
|
|
5698
|
+
className: j,
|
|
5699
|
+
children: [A, L]
|
|
5700
|
+
}), t[46] = A, t[47] = j, t[48] = L, t[49] = R) : R = t[49];
|
|
5701
|
+
let z = R, B = c === "mini" ? A : z;
|
|
5702
|
+
if (!S) return B;
|
|
5703
|
+
let V;
|
|
5704
|
+
t[50] === B ? V = t[51] : (V = /* @__PURE__ */ Y(U.Trigger, {
|
|
5738
5705
|
className: "group inline-flex w-fit cursor-pointer rounded-md outline-none focus-visible:ring-2",
|
|
5739
|
-
children:
|
|
5740
|
-
}), t[50] =
|
|
5741
|
-
let
|
|
5742
|
-
t[52] !==
|
|
5706
|
+
children: B
|
|
5707
|
+
}), t[50] = B, t[51] = V);
|
|
5708
|
+
let ee;
|
|
5709
|
+
t[52] !== p || t[53] !== w || t[54] !== d ? (ee = !p && /* @__PURE__ */ X(v, {
|
|
5743
5710
|
variant: "primary",
|
|
5744
5711
|
size: "sm",
|
|
5745
5712
|
className: "w-full",
|
|
5746
5713
|
onPress: w,
|
|
5747
|
-
children: [/* @__PURE__ */
|
|
5748
|
-
}), t[52] =
|
|
5749
|
-
let
|
|
5750
|
-
t[56] !==
|
|
5714
|
+
children: [/* @__PURE__ */ Y(Te, { className: "h-4 w-4" }), d("startDirectMessage")]
|
|
5715
|
+
}), t[52] = p, t[53] = w, t[54] = d, t[55] = ee) : ee = t[55];
|
|
5716
|
+
let H;
|
|
5717
|
+
t[56] !== C || t[57] !== ee || t[58] !== z ? (H = /* @__PURE__ */ Y(U.Content, { children: /* @__PURE__ */ X(U.Dialog, {
|
|
5718
|
+
"aria-label": C,
|
|
5751
5719
|
className: "flex w-64 flex-col gap-3 p-4",
|
|
5752
|
-
children: [
|
|
5753
|
-
}) }), t[56] =
|
|
5754
|
-
let
|
|
5755
|
-
return t[
|
|
5720
|
+
children: [z, ee]
|
|
5721
|
+
}) }), t[56] = C, t[57] = ee, t[58] = z, t[59] = H) : H = t[59];
|
|
5722
|
+
let W;
|
|
5723
|
+
return t[60] !== V || t[61] !== H ? (W = /* @__PURE__ */ X(U, { children: [V, H] }), t[60] = V, t[61] = H, t[62] = W) : W = t[62], W;
|
|
5756
5724
|
}
|
|
5757
5725
|
//#endregion
|
|
5758
5726
|
//#region src/lib/hooks/useDebounce.ts
|
|
5759
|
-
function
|
|
5760
|
-
let n = (0,
|
|
5761
|
-
return n[0] !== t || n[1] !== e ? (
|
|
5727
|
+
function hi(e, t) {
|
|
5728
|
+
let n = (0, Q.c)(4), [r, a] = c(e), o, s;
|
|
5729
|
+
return n[0] !== t || n[1] !== e ? (o = () => {
|
|
5762
5730
|
let n = setTimeout(() => {
|
|
5763
|
-
|
|
5731
|
+
a(e);
|
|
5764
5732
|
}, t);
|
|
5765
5733
|
return () => {
|
|
5766
5734
|
clearTimeout(n);
|
|
5767
5735
|
};
|
|
5768
|
-
},
|
|
5736
|
+
}, s = [e, t], n[0] = t, n[1] = e, n[2] = o, n[3] = s) : (o = n[2], s = n[3]), i(o, s), r;
|
|
5737
|
+
}
|
|
5738
|
+
//#endregion
|
|
5739
|
+
//#region src/lib/hooks/dateTimePreferences.ts
|
|
5740
|
+
var gi = wr(() => ({
|
|
5741
|
+
dateTimeLocale: null,
|
|
5742
|
+
userId: null
|
|
5743
|
+
}));
|
|
5744
|
+
function _i(e) {
|
|
5745
|
+
let t = (0, Q.c)(4), { language: n } = jr(), r = gi(vi), i;
|
|
5746
|
+
return t[0] !== n || t[1] !== e || t[2] !== r ? (i = Je(e === void 0 ? r : e).dateTimeLocale ?? n, t[0] = n, t[1] = e, t[2] = r, t[3] = i) : i = t[3], i;
|
|
5747
|
+
}
|
|
5748
|
+
function vi(e) {
|
|
5749
|
+
return e.dateTimeLocale;
|
|
5769
5750
|
}
|
|
5770
5751
|
//#endregion
|
|
5771
5752
|
//#region src/lib/hooks/useFormatDateTime.tsx
|
|
5772
|
-
function
|
|
5773
|
-
let t = (0,
|
|
5753
|
+
function yi(e) {
|
|
5754
|
+
let t = (0, Q.c)(13), n;
|
|
5774
5755
|
t[0] === e ? n = t[1] : (n = e ?? {}, t[0] = e, t[1] = n);
|
|
5775
|
-
let { showTime: r, showDate: i, showSeconds: a } = n, o = r === void 0 || r, s = i === void 0 || i, c = a !== void 0 && a,
|
|
5756
|
+
let { showTime: r, showDate: i, showSeconds: a } = n, o = r === void 0 || r, s = i === void 0 || i, c = a !== void 0 && a, l = _i(e?.dateTimeLocale), u;
|
|
5776
5757
|
if (t[2] !== l || t[3] !== s || t[4] !== c || t[5] !== o) {
|
|
5777
5758
|
let e = {};
|
|
5778
|
-
o && (e.
|
|
5759
|
+
o && (e.hour = "2-digit", e.minute = "2-digit", c && (e.second = "2-digit")), s && (e.day = "2-digit", e.month = "2-digit", e.year = "numeric"), u = new Intl.DateTimeFormat(l, e), t[2] = l, t[3] = s, t[4] = c, t[5] = o, t[6] = u;
|
|
5779
5760
|
} else u = t[6];
|
|
5780
5761
|
let d = u, f;
|
|
5781
|
-
|
|
5762
|
+
t[7] !== d || t[8] !== s || t[9] !== o ? (f = (e) => !s && !o ? "" : d.format(e), t[7] = d, t[8] = s, t[9] = o, t[10] = f) : f = t[10];
|
|
5763
|
+
let p = f, m;
|
|
5764
|
+
return t[11] === p ? m = t[12] : (m = (e, t) => {
|
|
5782
5765
|
if (e == null) return t ?? "-";
|
|
5783
5766
|
let n = new Date(e);
|
|
5784
|
-
return isNaN(n.getTime()) ? t ?? "-" :
|
|
5785
|
-
}, t[
|
|
5767
|
+
return isNaN(n.getTime()) ? t ?? "-" : p(n);
|
|
5768
|
+
}, t[11] = p, t[12] = m), m;
|
|
5786
5769
|
}
|
|
5787
|
-
function
|
|
5788
|
-
let n = (0,
|
|
5770
|
+
function bi(e, t) {
|
|
5771
|
+
let n = (0, Q.c)(3), r = yi(t), i;
|
|
5789
5772
|
return n[0] !== e || n[1] !== r ? (i = r(e), n[0] = e, n[1] = r, n[2] = i) : i = n[2], i;
|
|
5790
5773
|
}
|
|
5791
5774
|
//#endregion
|
|
5792
5775
|
//#region src/lib/hooks/useFormatDuration.ts
|
|
5793
|
-
function
|
|
5794
|
-
let { language: t } =
|
|
5795
|
-
let n =
|
|
5796
|
-
try {
|
|
5797
|
-
if (typeof Intl.DurationFormat == "function") {
|
|
5798
|
-
let e = [];
|
|
5799
|
-
return r > 0 && e.push("days"), e.push("hours"), e.push("minutes"), new Intl.DurationFormat(t, {
|
|
5800
|
-
style: "narrow",
|
|
5801
|
-
fields: e,
|
|
5802
|
-
minutesDisplay: "always"
|
|
5803
|
-
}).format({
|
|
5804
|
-
days: r,
|
|
5805
|
-
hours: i,
|
|
5806
|
-
minutes: Math.round(a)
|
|
5807
|
-
});
|
|
5808
|
-
}
|
|
5809
|
-
throw Error("Intl.DurationFormat not supported");
|
|
5810
|
-
} catch (e) {
|
|
5811
|
-
return console.warn("Intl.DurationFormat not supported", e), t.startsWith("de") ? `${r}T ${i}Std. ${a}Min.` : `${r}T ${i}h ${a}m`;
|
|
5812
|
-
}
|
|
5813
|
-
}, [t]);
|
|
5814
|
-
return l(() => n(e), [e, n]);
|
|
5815
|
-
}
|
|
5816
|
-
//#endregion
|
|
5817
|
-
//#region ../../node_modules/.pnpm/react-router@7.18.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/development/chunk-62JRHF6Z.mjs
|
|
5818
|
-
var Kr = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, qr = /^[\\/]{2}/;
|
|
5819
|
-
function Jr(e, t) {
|
|
5820
|
-
return t + e.replace(/\\/g, "/");
|
|
5821
|
-
}
|
|
5822
|
-
function Q(e, t) {
|
|
5823
|
-
if (e === !1 || e == null) throw Error(t);
|
|
5824
|
-
}
|
|
5825
|
-
function Yr(e, t) {
|
|
5826
|
-
if (!e) {
|
|
5827
|
-
typeof console < "u" && console.warn(t);
|
|
5776
|
+
function xi(e) {
|
|
5777
|
+
let { language: t } = jr(), r = n((e) => {
|
|
5778
|
+
let n = Math.round(e * 60), r = Math.floor(n / 86400), i = Math.floor(n % 86400 / 3600), a = Math.floor(n % 3600 / 60), o = n % 60;
|
|
5828
5779
|
try {
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
}
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
let t = {};
|
|
5838
|
-
if (e) {
|
|
5839
|
-
let n = e.indexOf("#");
|
|
5840
|
-
n >= 0 && (t.hash = e.substring(n), e = e.substring(0, n));
|
|
5841
|
-
let r = e.indexOf("?");
|
|
5842
|
-
r >= 0 && (t.search = e.substring(r), e = e.substring(0, r)), e && (t.pathname = e);
|
|
5843
|
-
}
|
|
5844
|
-
return t;
|
|
5845
|
-
}
|
|
5846
|
-
function Qr(e, t, n = "/") {
|
|
5847
|
-
return $r(e, t, n, !1);
|
|
5848
|
-
}
|
|
5849
|
-
function $r(e, t, n, r, i) {
|
|
5850
|
-
let a = vi((typeof t == "string" ? Zr(t) : t).pathname || "/", n);
|
|
5851
|
-
if (a == null) return null;
|
|
5852
|
-
let o = i ?? ei(e), s = null, c = _i(a);
|
|
5853
|
-
for (let e = 0; s == null && e < o.length; ++e) s = pi(o[e], c, r);
|
|
5854
|
-
return s;
|
|
5855
|
-
}
|
|
5856
|
-
function ei(e) {
|
|
5857
|
-
let t = ti(e);
|
|
5858
|
-
return ri(t), t;
|
|
5859
|
-
}
|
|
5860
|
-
function ti(e, t = [], n = [], r = "", i = !1) {
|
|
5861
|
-
let a = (e, a, o = i, s) => {
|
|
5862
|
-
let c = {
|
|
5863
|
-
relativePath: s === void 0 ? e.path || "" : s,
|
|
5864
|
-
caseSensitive: e.caseSensitive === !0,
|
|
5865
|
-
childrenIndex: a,
|
|
5866
|
-
route: e
|
|
5867
|
-
};
|
|
5868
|
-
if (c.relativePath.startsWith("/")) {
|
|
5869
|
-
if (!c.relativePath.startsWith(r) && o) return;
|
|
5870
|
-
Q(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
|
|
5871
|
-
}
|
|
5872
|
-
let l = $([r, c.relativePath]), u = n.concat(c);
|
|
5873
|
-
e.children && e.children.length > 0 && (Q(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), ti(e.children, t, u, l, o)), !(e.path == null && !e.index) && t.push({
|
|
5874
|
-
path: l,
|
|
5875
|
-
score: di(l, e.index),
|
|
5876
|
-
routesMeta: u.map((e, t) => {
|
|
5877
|
-
let [n, r] = gi(e.relativePath, e.caseSensitive, t === u.length - 1);
|
|
5878
|
-
return {
|
|
5879
|
-
...e,
|
|
5880
|
-
matcher: n,
|
|
5881
|
-
compiledParams: r
|
|
5882
|
-
};
|
|
5883
|
-
})
|
|
5884
|
-
});
|
|
5885
|
-
};
|
|
5886
|
-
return e.forEach((e, t) => {
|
|
5887
|
-
if (e.path === "" || !e.path?.includes("?")) a(e, t);
|
|
5888
|
-
else for (let n of ni(e.path)) a(e, t, !0, n);
|
|
5889
|
-
}), t;
|
|
5890
|
-
}
|
|
5891
|
-
function ni(e) {
|
|
5892
|
-
let t = e.split("/");
|
|
5893
|
-
if (t.length === 0) return [];
|
|
5894
|
-
let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
|
|
5895
|
-
if (r.length === 0) return i ? [a, ""] : [a];
|
|
5896
|
-
let o = ni(r.join("/")), s = [];
|
|
5897
|
-
return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
|
|
5898
|
-
}
|
|
5899
|
-
function ri(e) {
|
|
5900
|
-
e.sort((e, t) => e.score === t.score ? fi(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
|
|
5901
|
-
}
|
|
5902
|
-
var ii = /^:[\w-]+$/, ai = 3, oi = 2, si = 1, ci = 10, li = -2, ui = (e) => e === "*";
|
|
5903
|
-
function di(e, t) {
|
|
5904
|
-
let n = e.split("/"), r = n.length;
|
|
5905
|
-
return n.some(ui) && (r += li), t && (r += oi), n.filter((e) => !ui(e)).reduce((e, t) => e + (ii.test(t) ? ai : t === "" ? si : ci), r);
|
|
5906
|
-
}
|
|
5907
|
-
function fi(e, t) {
|
|
5908
|
-
return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
|
|
5909
|
-
}
|
|
5910
|
-
function pi(e, t, n = !1) {
|
|
5911
|
-
let { routesMeta: r } = e, i = {}, a = "/", o = [];
|
|
5912
|
-
for (let e = 0; e < r.length; ++e) {
|
|
5913
|
-
let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
|
|
5914
|
-
path: s.relativePath,
|
|
5915
|
-
caseSensitive: s.caseSensitive,
|
|
5916
|
-
end: c
|
|
5917
|
-
}, d = s.matcher && s.compiledParams ? hi(u, l, s.matcher, s.compiledParams) : mi(u, l), f = s.route;
|
|
5918
|
-
if (!d && c && n && !r[r.length - 1].route.index && (d = mi({
|
|
5919
|
-
path: s.relativePath,
|
|
5920
|
-
caseSensitive: s.caseSensitive,
|
|
5921
|
-
end: !1
|
|
5922
|
-
}, l)), !d) return null;
|
|
5923
|
-
Object.assign(i, d.params), o.push({
|
|
5924
|
-
params: i,
|
|
5925
|
-
pathname: $([a, d.pathname]),
|
|
5926
|
-
pathnameBase: Di($([a, d.pathnameBase])),
|
|
5927
|
-
route: f
|
|
5928
|
-
}), d.pathnameBase !== "/" && (a = $([a, d.pathnameBase]));
|
|
5929
|
-
}
|
|
5930
|
-
return o;
|
|
5931
|
-
}
|
|
5932
|
-
function mi(e, t) {
|
|
5933
|
-
typeof e == "string" && (e = {
|
|
5934
|
-
path: e,
|
|
5935
|
-
caseSensitive: !1,
|
|
5936
|
-
end: !0
|
|
5937
|
-
});
|
|
5938
|
-
let [n, r] = gi(e.path, e.caseSensitive, e.end);
|
|
5939
|
-
return hi(e, t, n, r);
|
|
5940
|
-
}
|
|
5941
|
-
function hi(e, t, n, r) {
|
|
5942
|
-
let i = t.match(n);
|
|
5943
|
-
if (!i) return null;
|
|
5944
|
-
let a = i[0], o = a.replace(/(.)\/+$/, "$1"), s = i.slice(1);
|
|
5945
|
-
return {
|
|
5946
|
-
params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
|
|
5947
|
-
if (t === "*") {
|
|
5948
|
-
let e = s[r] || "";
|
|
5949
|
-
o = a.slice(0, a.length - e.length).replace(/(.)\/+$/, "$1");
|
|
5950
|
-
}
|
|
5951
|
-
let i = s[r];
|
|
5952
|
-
return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
|
|
5953
|
-
}, {}),
|
|
5954
|
-
pathname: a,
|
|
5955
|
-
pathnameBase: o,
|
|
5956
|
-
pattern: e
|
|
5957
|
-
};
|
|
5958
|
-
}
|
|
5959
|
-
function gi(e, t = !1, n = !0) {
|
|
5960
|
-
Yr(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
|
|
5961
|
-
let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
|
|
5962
|
-
if (r.push({
|
|
5963
|
-
paramName: t,
|
|
5964
|
-
isOptional: n != null
|
|
5965
|
-
}), n) {
|
|
5966
|
-
let t = a.charAt(i + e.length);
|
|
5967
|
-
return t && t !== "/" ? "/([^\\/]*)" : "(?:/([^\\/]*))?";
|
|
5968
|
-
}
|
|
5969
|
-
return "/([^\\/]+)";
|
|
5970
|
-
}).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
|
|
5971
|
-
return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
|
|
5972
|
-
}
|
|
5973
|
-
function _i(e) {
|
|
5974
|
-
try {
|
|
5975
|
-
return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
|
|
5976
|
-
} catch (t) {
|
|
5977
|
-
return Yr(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
|
|
5978
|
-
}
|
|
5979
|
-
}
|
|
5980
|
-
function vi(e, t) {
|
|
5981
|
-
if (t === "/") return e;
|
|
5982
|
-
if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
|
|
5983
|
-
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
|
|
5984
|
-
return r && r !== "/" ? null : e.slice(n) || "/";
|
|
5985
|
-
}
|
|
5986
|
-
function yi(e, t = "/") {
|
|
5987
|
-
let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? Zr(e) : e, a;
|
|
5988
|
-
return n ? (n = Ti(n), a = n.startsWith("/") ? bi(n.substring(1), "/") : bi(n, t)) : a = t, {
|
|
5989
|
-
pathname: a,
|
|
5990
|
-
search: Oi(r),
|
|
5991
|
-
hash: ki(i)
|
|
5992
|
-
};
|
|
5993
|
-
}
|
|
5994
|
-
function bi(e, t) {
|
|
5995
|
-
let n = Ei(t).split("/");
|
|
5996
|
-
return e.split("/").forEach((e) => {
|
|
5997
|
-
e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
|
|
5998
|
-
}), n.length > 1 ? n.join("/") : "/";
|
|
5999
|
-
}
|
|
6000
|
-
function xi(e, t, n, r) {
|
|
6001
|
-
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
6002
|
-
}
|
|
6003
|
-
function Si(e) {
|
|
6004
|
-
return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
|
|
6005
|
-
}
|
|
6006
|
-
function Ci(e) {
|
|
6007
|
-
let t = Si(e);
|
|
6008
|
-
return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
|
|
6009
|
-
}
|
|
6010
|
-
function wi(e, t, n, r = !1) {
|
|
6011
|
-
let i;
|
|
6012
|
-
typeof e == "string" ? i = Zr(e) : (i = { ...e }, Q(!i.pathname || !i.pathname.includes("?"), xi("?", "pathname", "search", i)), Q(!i.pathname || !i.pathname.includes("#"), xi("#", "pathname", "hash", i)), Q(!i.search || !i.search.includes("#"), xi("#", "search", "hash", i)));
|
|
6013
|
-
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
|
|
6014
|
-
if (o == null) s = n;
|
|
6015
|
-
else {
|
|
6016
|
-
let e = t.length - 1;
|
|
6017
|
-
if (!r && o.startsWith("..")) {
|
|
6018
|
-
let t = o.split("/");
|
|
6019
|
-
for (; t[0] === "..";) t.shift(), --e;
|
|
6020
|
-
i.pathname = t.join("/");
|
|
6021
|
-
}
|
|
6022
|
-
s = e >= 0 ? t[e] : "/";
|
|
6023
|
-
}
|
|
6024
|
-
let c = yi(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
|
|
6025
|
-
return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
|
|
6026
|
-
}
|
|
6027
|
-
var Ti = (e) => e.replace(/[\\/]{2,}/g, "/"), $ = (e) => Ti(e.join("/")), Ei = (e) => e.replace(/\/+$/, ""), Di = (e) => Ei(e).replace(/^\/*/, "/"), Oi = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, ki = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Ai = class {
|
|
6028
|
-
constructor(e, t, n, r = !1) {
|
|
6029
|
-
this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
|
|
6030
|
-
}
|
|
6031
|
-
};
|
|
6032
|
-
function ji(e) {
|
|
6033
|
-
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
6034
|
-
}
|
|
6035
|
-
function Mi(e) {
|
|
6036
|
-
return $(e.map((e) => e.route.path).filter(Boolean)) || "/";
|
|
6037
|
-
}
|
|
6038
|
-
var Ni = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
6039
|
-
function Pi(e, t) {
|
|
6040
|
-
let n = e;
|
|
6041
|
-
if (typeof n != "string" || !Kr.test(n)) return {
|
|
6042
|
-
absoluteURL: void 0,
|
|
6043
|
-
isExternal: !1,
|
|
6044
|
-
to: n
|
|
6045
|
-
};
|
|
6046
|
-
let r = n, i = !1;
|
|
6047
|
-
if (Ni) try {
|
|
6048
|
-
let e = new URL(window.location.href), r = qr.test(n) ? new URL(Jr(n, e.protocol)) : new URL(n), a = vi(r.pathname, t);
|
|
6049
|
-
r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
|
|
6050
|
-
} catch {
|
|
6051
|
-
Yr(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
|
|
6052
|
-
}
|
|
6053
|
-
return {
|
|
6054
|
-
absoluteURL: r,
|
|
6055
|
-
isExternal: i,
|
|
6056
|
-
to: n
|
|
6057
|
-
};
|
|
6058
|
-
}
|
|
6059
|
-
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
6060
|
-
var Fi = [
|
|
6061
|
-
"POST",
|
|
6062
|
-
"PUT",
|
|
6063
|
-
"PATCH",
|
|
6064
|
-
"DELETE"
|
|
6065
|
-
];
|
|
6066
|
-
new Set(Fi);
|
|
6067
|
-
var Ii = ["GET", ...Fi];
|
|
6068
|
-
new Set(Ii);
|
|
6069
|
-
var Li = [
|
|
6070
|
-
"about:",
|
|
6071
|
-
"blob:",
|
|
6072
|
-
"chrome:",
|
|
6073
|
-
"chrome-untrusted:",
|
|
6074
|
-
"content:",
|
|
6075
|
-
"data:",
|
|
6076
|
-
"devtools:",
|
|
6077
|
-
"file:",
|
|
6078
|
-
"filesystem:",
|
|
6079
|
-
"javascript:"
|
|
6080
|
-
];
|
|
6081
|
-
function Ri(e) {
|
|
6082
|
-
try {
|
|
6083
|
-
return Li.includes(new URL(e).protocol);
|
|
6084
|
-
} catch {
|
|
6085
|
-
return !1;
|
|
6086
|
-
}
|
|
6087
|
-
}
|
|
6088
|
-
var zi = e.createContext(null);
|
|
6089
|
-
zi.displayName = "DataRouter";
|
|
6090
|
-
var Bi = e.createContext(null);
|
|
6091
|
-
Bi.displayName = "DataRouterState";
|
|
6092
|
-
var Vi = e.createContext(!1);
|
|
6093
|
-
function Hi() {
|
|
6094
|
-
return e.useContext(Vi);
|
|
6095
|
-
}
|
|
6096
|
-
var Ui = e.createContext({ isTransitioning: !1 });
|
|
6097
|
-
Ui.displayName = "ViewTransition";
|
|
6098
|
-
var Wi = e.createContext(/* @__PURE__ */ new Map());
|
|
6099
|
-
Wi.displayName = "Fetchers";
|
|
6100
|
-
var Gi = e.createContext(null);
|
|
6101
|
-
Gi.displayName = "Await";
|
|
6102
|
-
var Ki = e.createContext(null);
|
|
6103
|
-
Ki.displayName = "Navigation";
|
|
6104
|
-
var qi = e.createContext(null);
|
|
6105
|
-
qi.displayName = "Location";
|
|
6106
|
-
var Ji = e.createContext({
|
|
6107
|
-
outlet: null,
|
|
6108
|
-
matches: [],
|
|
6109
|
-
isDataRoute: !1
|
|
6110
|
-
});
|
|
6111
|
-
Ji.displayName = "Route";
|
|
6112
|
-
var Yi = e.createContext(null);
|
|
6113
|
-
Yi.displayName = "RouteError";
|
|
6114
|
-
var Xi = "REACT_ROUTER_ERROR", Zi = "REDIRECT", Qi = "ROUTE_ERROR_RESPONSE";
|
|
6115
|
-
function $i(e) {
|
|
6116
|
-
if (e.startsWith(`${Xi}:${Zi}:{`)) try {
|
|
6117
|
-
let t = JSON.parse(e.slice(28));
|
|
6118
|
-
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
|
|
6119
|
-
} catch {}
|
|
6120
|
-
}
|
|
6121
|
-
function ea(e) {
|
|
6122
|
-
if (e.startsWith(`${Xi}:${Qi}:{`)) try {
|
|
6123
|
-
let t = JSON.parse(e.slice(40));
|
|
6124
|
-
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new Ai(t.status, t.statusText, t.data);
|
|
6125
|
-
} catch {}
|
|
6126
|
-
}
|
|
6127
|
-
function ta(t, { relative: n } = {}) {
|
|
6128
|
-
Q(na(), "useHref() may be used only in the context of a <Router> component.");
|
|
6129
|
-
let { basename: r, navigator: i } = e.useContext(Ki), { hash: a, pathname: o, search: s } = ca(t, { relative: n }), c = o;
|
|
6130
|
-
return r !== "/" && (c = o === "/" ? r : $([r, o])), i.createHref({
|
|
6131
|
-
pathname: c,
|
|
6132
|
-
search: s,
|
|
6133
|
-
hash: a
|
|
6134
|
-
});
|
|
6135
|
-
}
|
|
6136
|
-
function na() {
|
|
6137
|
-
return e.useContext(qi) != null;
|
|
6138
|
-
}
|
|
6139
|
-
function ra() {
|
|
6140
|
-
return Q(na(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(qi).location;
|
|
6141
|
-
}
|
|
6142
|
-
var ia = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
6143
|
-
function aa(t) {
|
|
6144
|
-
e.useContext(Ki).static || e.useLayoutEffect(t);
|
|
6145
|
-
}
|
|
6146
|
-
function oa() {
|
|
6147
|
-
let { isDataRoute: t } = e.useContext(Ji);
|
|
6148
|
-
return t ? wa() : sa();
|
|
6149
|
-
}
|
|
6150
|
-
function sa() {
|
|
6151
|
-
Q(na(), "useNavigate() may be used only in the context of a <Router> component.");
|
|
6152
|
-
let t = e.useContext(zi), { basename: n, navigator: r } = e.useContext(Ki), { matches: i } = e.useContext(Ji), { pathname: a } = ra(), o = JSON.stringify(Ci(i)), s = e.useRef(!1);
|
|
6153
|
-
return aa(() => {
|
|
6154
|
-
s.current = !0;
|
|
6155
|
-
}), e.useCallback((e, i = {}) => {
|
|
6156
|
-
if (Yr(s.current, ia), !s.current) return;
|
|
6157
|
-
if (typeof e == "number") {
|
|
6158
|
-
r.go(e);
|
|
6159
|
-
return;
|
|
6160
|
-
}
|
|
6161
|
-
let c = wi(e, JSON.parse(o), a, i.relative === "path");
|
|
6162
|
-
t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n : $([n, c.pathname])), (i.replace ? r.replace : r.push)(c, i.state, i);
|
|
6163
|
-
}, [
|
|
6164
|
-
n,
|
|
6165
|
-
r,
|
|
6166
|
-
o,
|
|
6167
|
-
a,
|
|
6168
|
-
t
|
|
6169
|
-
]);
|
|
6170
|
-
}
|
|
6171
|
-
e.createContext(null);
|
|
6172
|
-
function ca(t, { relative: n } = {}) {
|
|
6173
|
-
let { matches: r } = e.useContext(Ji), { pathname: i } = ra(), a = JSON.stringify(Ci(r));
|
|
6174
|
-
return e.useMemo(() => wi(t, JSON.parse(a), i, n === "path"), [
|
|
6175
|
-
t,
|
|
6176
|
-
a,
|
|
6177
|
-
i,
|
|
6178
|
-
n
|
|
6179
|
-
]);
|
|
6180
|
-
}
|
|
6181
|
-
function la(t, n, r) {
|
|
6182
|
-
Q(na(), "useRoutes() may be used only in the context of a <Router> component.");
|
|
6183
|
-
let { navigator: i } = e.useContext(Ki), { matches: a } = e.useContext(Ji), o = a[a.length - 1], s = o ? o.params : {}, c = o ? o.pathname : "/", l = o ? o.pathnameBase : "/", u = o && o.route;
|
|
6184
|
-
{
|
|
6185
|
-
let e = u && u.path || "";
|
|
6186
|
-
Ea(c, !u || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
6187
|
-
|
|
6188
|
-
Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" : `${e}/*`}">.`);
|
|
6189
|
-
}
|
|
6190
|
-
let d = ra(), f;
|
|
6191
|
-
if (n) {
|
|
6192
|
-
let e = typeof n == "string" ? Zr(n) : n;
|
|
6193
|
-
Q(l === "/" || e.pathname?.startsWith(l), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`), f = e;
|
|
6194
|
-
} else f = d;
|
|
6195
|
-
let p = f.pathname || "/", m = p;
|
|
6196
|
-
if (l !== "/") {
|
|
6197
|
-
let e = l.replace(/^\//, "").split("/");
|
|
6198
|
-
m = "/" + p.replace(/^\//, "").split("/").slice(e.length).join("/");
|
|
6199
|
-
}
|
|
6200
|
-
let h = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) : Qr(t, { pathname: m });
|
|
6201
|
-
Yr(u || h != null, `No routes matched location "${f.pathname}${f.search}${f.hash}" `), Yr(h == null || h[h.length - 1].route.element !== void 0 || h[h.length - 1].route.Component !== void 0 || h[h.length - 1].route.lazy !== void 0, `Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
|
|
6202
|
-
let g = ga(h && h.map((e) => Object.assign({}, e, {
|
|
6203
|
-
params: Object.assign({}, s, e.params),
|
|
6204
|
-
pathname: $([l, i.encodeLocation ? i.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
|
|
6205
|
-
pathnameBase: e.pathnameBase === "/" ? l : $([l, i.encodeLocation ? i.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
|
|
6206
|
-
})), a, r);
|
|
6207
|
-
return n && g ? /* @__PURE__ */ e.createElement(qi.Provider, { value: {
|
|
6208
|
-
location: {
|
|
6209
|
-
pathname: "/",
|
|
6210
|
-
search: "",
|
|
6211
|
-
hash: "",
|
|
6212
|
-
state: null,
|
|
6213
|
-
key: "default",
|
|
6214
|
-
mask: void 0,
|
|
6215
|
-
...f
|
|
6216
|
-
},
|
|
6217
|
-
navigationType: "POP"
|
|
6218
|
-
} }, g) : g;
|
|
6219
|
-
}
|
|
6220
|
-
function ua() {
|
|
6221
|
-
let t = Ca(), n = ji(t) ? `${t.status} ${t.statusText}` : t instanceof Error ? t.message : JSON.stringify(t), r = t instanceof Error ? t.stack : null, i = "rgba(200,200,200, 0.5)", a = {
|
|
6222
|
-
padding: "0.5rem",
|
|
6223
|
-
backgroundColor: i
|
|
6224
|
-
}, o = {
|
|
6225
|
-
padding: "2px 4px",
|
|
6226
|
-
backgroundColor: i
|
|
6227
|
-
}, s = null;
|
|
6228
|
-
return console.error("Error handled by React Router default ErrorBoundary:", t), s = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ e.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ e.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ e.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ e.createElement("h3", { style: { fontStyle: "italic" } }, n), r ? /* @__PURE__ */ e.createElement("pre", { style: a }, r) : null, s);
|
|
6229
|
-
}
|
|
6230
|
-
var da = /* @__PURE__ */ e.createElement(ua, null), fa = class extends e.Component {
|
|
6231
|
-
constructor(e) {
|
|
6232
|
-
super(e), this.state = {
|
|
6233
|
-
location: e.location,
|
|
6234
|
-
revalidation: e.revalidation,
|
|
6235
|
-
error: e.error
|
|
6236
|
-
};
|
|
6237
|
-
}
|
|
6238
|
-
static getDerivedStateFromError(e) {
|
|
6239
|
-
return { error: e };
|
|
6240
|
-
}
|
|
6241
|
-
static getDerivedStateFromProps(e, t) {
|
|
6242
|
-
return t.location !== e.location || t.revalidation !== "idle" && e.revalidation === "idle" ? {
|
|
6243
|
-
error: e.error,
|
|
6244
|
-
location: e.location,
|
|
6245
|
-
revalidation: e.revalidation
|
|
6246
|
-
} : {
|
|
6247
|
-
error: e.error === void 0 ? t.error : e.error,
|
|
6248
|
-
location: t.location,
|
|
6249
|
-
revalidation: e.revalidation || t.revalidation
|
|
6250
|
-
};
|
|
6251
|
-
}
|
|
6252
|
-
componentDidCatch(e, t) {
|
|
6253
|
-
this.props.onError ? this.props.onError(e, t) : console.error("React Router caught the following error during render", e);
|
|
6254
|
-
}
|
|
6255
|
-
render() {
|
|
6256
|
-
let t = this.state.error;
|
|
6257
|
-
if (this.context && typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
|
|
6258
|
-
let e = ea(t.digest);
|
|
6259
|
-
e && (t = e);
|
|
6260
|
-
}
|
|
6261
|
-
let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(Ji.Provider, { value: this.props.routeContext }, /* @__PURE__ */ e.createElement(Yi.Provider, {
|
|
6262
|
-
value: t,
|
|
6263
|
-
children: this.props.component
|
|
6264
|
-
}));
|
|
6265
|
-
return this.context ? /* @__PURE__ */ e.createElement(ma, { error: t }, n) : n;
|
|
6266
|
-
}
|
|
6267
|
-
};
|
|
6268
|
-
fa.contextType = Vi;
|
|
6269
|
-
var pa = /* @__PURE__ */ new WeakMap();
|
|
6270
|
-
function ma({ children: t, error: n }) {
|
|
6271
|
-
let { basename: r } = e.useContext(Ki);
|
|
6272
|
-
if (typeof n == "object" && n && "digest" in n && typeof n.digest == "string") {
|
|
6273
|
-
let t = $i(n.digest);
|
|
6274
|
-
if (t) {
|
|
6275
|
-
let i = pa.get(n);
|
|
6276
|
-
if (i) throw i;
|
|
6277
|
-
let a = Pi(t.location, r), o = a.absoluteURL || a.to;
|
|
6278
|
-
if (Ri(o)) throw Error("Invalid redirect location");
|
|
6279
|
-
if (Ni && !pa.get(n)) {
|
|
6280
|
-
if (a.isExternal || t.reloadDocument) window.location.href = o;
|
|
6281
|
-
else {
|
|
6282
|
-
let e = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: t.replace }));
|
|
6283
|
-
throw pa.set(n, e), e;
|
|
6284
|
-
}
|
|
6285
|
-
}
|
|
6286
|
-
return /* @__PURE__ */ e.createElement("meta", {
|
|
6287
|
-
httpEquiv: "refresh",
|
|
6288
|
-
content: `0;url=${o}`
|
|
5780
|
+
if (typeof Intl.DurationFormat == "function") return new Intl.DurationFormat(t, {
|
|
5781
|
+
style: "narrow",
|
|
5782
|
+
minutesDisplay: "always"
|
|
5783
|
+
}).format({
|
|
5784
|
+
days: r,
|
|
5785
|
+
hours: i,
|
|
5786
|
+
minutes: a,
|
|
5787
|
+
seconds: o
|
|
6289
5788
|
});
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
let e = a.findIndex((e) => e.route.id && o?.[e.route.id] !== void 0);
|
|
6309
|
-
Q(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`), a = a.slice(0, Math.min(a.length, e + 1));
|
|
6310
|
-
}
|
|
6311
|
-
let s = !1, c = -1;
|
|
6312
|
-
if (r && i) {
|
|
6313
|
-
s = i.renderFallback;
|
|
6314
|
-
for (let e = 0; e < a.length; e++) {
|
|
6315
|
-
let t = a[e];
|
|
6316
|
-
if ((t.route.HydrateFallback || t.route.hydrateFallbackElement) && (c = e), t.route.id) {
|
|
6317
|
-
let { loaderData: e, errors: n } = i, o = t.route.loader && !e.hasOwnProperty(t.route.id) && (!n || n[t.route.id] === void 0);
|
|
6318
|
-
if (t.route.lazy || o) {
|
|
6319
|
-
r.isStatic && (s = !0), a = c >= 0 ? a.slice(0, c + 1) : [a[0]];
|
|
6320
|
-
break;
|
|
5789
|
+
throw Error("Intl.DurationFormat not supported");
|
|
5790
|
+
} catch {
|
|
5791
|
+
let e = [
|
|
5792
|
+
{
|
|
5793
|
+
unit: "day",
|
|
5794
|
+
value: r
|
|
5795
|
+
},
|
|
5796
|
+
{
|
|
5797
|
+
unit: "hour",
|
|
5798
|
+
value: i
|
|
5799
|
+
},
|
|
5800
|
+
{
|
|
5801
|
+
unit: "minute",
|
|
5802
|
+
value: a
|
|
5803
|
+
},
|
|
5804
|
+
{
|
|
5805
|
+
unit: "second",
|
|
5806
|
+
value: o
|
|
6321
5807
|
}
|
|
6322
|
-
}
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
});
|
|
6332
|
-
} : void 0;
|
|
6333
|
-
return a.reduceRight((t, r, l) => {
|
|
6334
|
-
let d, f = !1, p = null, m = null;
|
|
6335
|
-
i && (d = o && r.route.id ? o[r.route.id] : void 0, p = r.route.errorElement || da, s && (c < 0 && l === 0 ? (Ea("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), f = !0, m = null) : c === l && (f = !0, m = r.route.hydrateFallbackElement || null)));
|
|
6336
|
-
let h = n.concat(a.slice(0, l + 1)), g = () => {
|
|
6337
|
-
let n;
|
|
6338
|
-
return n = d ? p : f ? m : r.route.Component ? /* @__PURE__ */ e.createElement(r.route.Component, null) : r.route.element ? r.route.element : t, /* @__PURE__ */ e.createElement(ha, {
|
|
6339
|
-
match: r,
|
|
6340
|
-
routeContext: {
|
|
6341
|
-
outlet: t,
|
|
6342
|
-
matches: h,
|
|
6343
|
-
isDataRoute: i != null
|
|
6344
|
-
},
|
|
6345
|
-
children: n
|
|
6346
|
-
});
|
|
6347
|
-
};
|
|
6348
|
-
return i && (r.route.ErrorBoundary || r.route.errorElement || l === 0) ? /* @__PURE__ */ e.createElement(fa, {
|
|
6349
|
-
location: i.location,
|
|
6350
|
-
revalidation: i.revalidation,
|
|
6351
|
-
component: p,
|
|
6352
|
-
error: d,
|
|
6353
|
-
children: g(),
|
|
6354
|
-
routeContext: {
|
|
6355
|
-
outlet: null,
|
|
6356
|
-
matches: h,
|
|
6357
|
-
isDataRoute: !0
|
|
6358
|
-
},
|
|
6359
|
-
onError: u
|
|
6360
|
-
}) : g();
|
|
6361
|
-
}, null);
|
|
6362
|
-
}
|
|
6363
|
-
function _a(e) {
|
|
6364
|
-
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
6365
|
-
}
|
|
6366
|
-
function va(t) {
|
|
6367
|
-
let n = e.useContext(zi);
|
|
6368
|
-
return Q(n, _a(t)), n;
|
|
6369
|
-
}
|
|
6370
|
-
function ya(t) {
|
|
6371
|
-
let n = e.useContext(Bi);
|
|
6372
|
-
return Q(n, _a(t)), n;
|
|
6373
|
-
}
|
|
6374
|
-
function ba(t) {
|
|
6375
|
-
let n = e.useContext(Ji);
|
|
6376
|
-
return Q(n, _a(t)), n;
|
|
6377
|
-
}
|
|
6378
|
-
function xa(e) {
|
|
6379
|
-
let t = ba(e), n = t.matches[t.matches.length - 1];
|
|
6380
|
-
return Q(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
|
|
6381
|
-
}
|
|
6382
|
-
function Sa() {
|
|
6383
|
-
return xa("useRouteId");
|
|
6384
|
-
}
|
|
6385
|
-
function Ca() {
|
|
6386
|
-
let t = e.useContext(Yi), n = ya("useRouteError"), r = xa("useRouteError");
|
|
6387
|
-
return t === void 0 ? n.errors?.[r] : t;
|
|
6388
|
-
}
|
|
6389
|
-
function wa() {
|
|
6390
|
-
let { router: t } = va("useNavigate"), n = xa("useNavigate"), r = e.useRef(!1);
|
|
6391
|
-
return aa(() => {
|
|
6392
|
-
r.current = !0;
|
|
6393
|
-
}), e.useCallback(async (e, i = {}) => {
|
|
6394
|
-
Yr(r.current, ia), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
|
|
6395
|
-
fromRouteId: n,
|
|
6396
|
-
...i
|
|
6397
|
-
}));
|
|
6398
|
-
}, [t, n]);
|
|
6399
|
-
}
|
|
6400
|
-
var Ta = {};
|
|
6401
|
-
function Ea(e, t, n) {
|
|
6402
|
-
!t && !Ta[e] && (Ta[e] = !0, Yr(!1, n));
|
|
6403
|
-
}
|
|
6404
|
-
e.memo(Da);
|
|
6405
|
-
function Da({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
|
|
6406
|
-
return la(e, void 0, {
|
|
6407
|
-
manifest: t,
|
|
6408
|
-
state: r,
|
|
6409
|
-
isStatic: i,
|
|
6410
|
-
onError: a,
|
|
6411
|
-
future: n
|
|
6412
|
-
});
|
|
6413
|
-
}
|
|
6414
|
-
e.Component;
|
|
6415
|
-
var Oa = "get", ka = "application/x-www-form-urlencoded";
|
|
6416
|
-
function Aa(e) {
|
|
6417
|
-
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
6418
|
-
}
|
|
6419
|
-
function ja(e) {
|
|
6420
|
-
return Aa(e) && e.tagName.toLowerCase() === "button";
|
|
6421
|
-
}
|
|
6422
|
-
function Ma(e) {
|
|
6423
|
-
return Aa(e) && e.tagName.toLowerCase() === "form";
|
|
6424
|
-
}
|
|
6425
|
-
function Na(e) {
|
|
6426
|
-
return Aa(e) && e.tagName.toLowerCase() === "input";
|
|
6427
|
-
}
|
|
6428
|
-
function Pa(e) {
|
|
6429
|
-
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
6430
|
-
}
|
|
6431
|
-
function Fa(e, t) {
|
|
6432
|
-
return e.button === 0 && (!t || t === "_self") && !Pa(e);
|
|
6433
|
-
}
|
|
6434
|
-
var Ia = null;
|
|
6435
|
-
function La() {
|
|
6436
|
-
if (Ia === null) try {
|
|
6437
|
-
new FormData(document.createElement("form"), 0), Ia = !1;
|
|
6438
|
-
} catch {
|
|
6439
|
-
Ia = !0;
|
|
6440
|
-
}
|
|
6441
|
-
return Ia;
|
|
6442
|
-
}
|
|
6443
|
-
var Ra = /* @__PURE__ */ new Set([
|
|
6444
|
-
"application/x-www-form-urlencoded",
|
|
6445
|
-
"multipart/form-data",
|
|
6446
|
-
"text/plain"
|
|
6447
|
-
]);
|
|
6448
|
-
function za(e) {
|
|
6449
|
-
return e != null && !Ra.has(e) ? (Yr(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ka}"`), null) : e;
|
|
6450
|
-
}
|
|
6451
|
-
function Ba(e, t) {
|
|
6452
|
-
let n, r, i, a, o;
|
|
6453
|
-
if (Ma(e)) {
|
|
6454
|
-
let o = e.getAttribute("action");
|
|
6455
|
-
r = o ? vi(o, t) : null, n = e.getAttribute("method") || Oa, i = za(e.getAttribute("enctype")) || ka, a = new FormData(e);
|
|
6456
|
-
} else if (ja(e) || Na(e) && (e.type === "submit" || e.type === "image")) {
|
|
6457
|
-
let o = e.form;
|
|
6458
|
-
if (o == null) throw Error("Cannot submit a <button> or <input type=\"submit\"> without a <form>");
|
|
6459
|
-
let s = e.getAttribute("formaction") || o.getAttribute("action");
|
|
6460
|
-
if (r = s ? vi(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || Oa, i = za(e.getAttribute("formenctype")) || za(o.getAttribute("enctype")) || ka, a = new FormData(o, e), !La()) {
|
|
6461
|
-
let { name: t, type: n, value: r } = e;
|
|
6462
|
-
if (n === "image") {
|
|
6463
|
-
let e = t ? `${t}.` : "";
|
|
6464
|
-
a.append(`${e}x`, "0"), a.append(`${e}y`, "0");
|
|
6465
|
-
} else t && a.append(t, r);
|
|
6466
|
-
}
|
|
6467
|
-
} else if (Aa(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
|
|
6468
|
-
else n = Oa, r = null, i = ka, o = e;
|
|
6469
|
-
return a && i === "text/plain" && (o = a, a = void 0), {
|
|
6470
|
-
action: r,
|
|
6471
|
-
method: n.toLowerCase(),
|
|
6472
|
-
encType: i,
|
|
6473
|
-
formData: a,
|
|
6474
|
-
body: o
|
|
6475
|
-
};
|
|
6476
|
-
}
|
|
6477
|
-
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
6478
|
-
function Va(e, t) {
|
|
6479
|
-
if (e === !1 || e == null) throw Error(t);
|
|
6480
|
-
}
|
|
6481
|
-
function Ha(e, t, n, r) {
|
|
6482
|
-
let i = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
|
|
6483
|
-
return i.pathname = n ? i.pathname.endsWith("/") ? `${i.pathname}_.${r}` : `${i.pathname}.${r}` : i.pathname === "/" ? `_root.${r}` : t && vi(i.pathname, t) === "/" ? `${Ei(t)}/_root.${r}` : `${Ei(i.pathname)}.${r}`, i;
|
|
6484
|
-
}
|
|
6485
|
-
async function Ua(e, t) {
|
|
6486
|
-
if (e.id in t) return t[e.id];
|
|
6487
|
-
try {
|
|
6488
|
-
let n = await import(
|
|
6489
|
-
/* @vite-ignore */
|
|
6490
|
-
/* webpackIgnore: true */
|
|
6491
|
-
e.module
|
|
6492
|
-
);
|
|
6493
|
-
return t[e.id] = n, n;
|
|
6494
|
-
} catch (t) {
|
|
6495
|
-
return console.error(`Error loading route module \`${e.module}\`, reloading page...`), console.error(t), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {});
|
|
6496
|
-
}
|
|
6497
|
-
}
|
|
6498
|
-
function Wa(e) {
|
|
6499
|
-
return e != null && typeof e.page == "string";
|
|
6500
|
-
}
|
|
6501
|
-
function Ga(e) {
|
|
6502
|
-
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
6503
|
-
}
|
|
6504
|
-
async function Ka(e, t, n) {
|
|
6505
|
-
return Za((await Promise.all(e.map(async (e) => {
|
|
6506
|
-
let r = t.routes[e.route.id];
|
|
6507
|
-
if (r) {
|
|
6508
|
-
let e = await Ua(r, n);
|
|
6509
|
-
return e.links ? e.links() : [];
|
|
6510
|
-
}
|
|
6511
|
-
return [];
|
|
6512
|
-
}))).flat(1).filter(Ga).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
|
|
6513
|
-
...e,
|
|
6514
|
-
rel: "prefetch",
|
|
6515
|
-
as: "style"
|
|
6516
|
-
} : {
|
|
6517
|
-
...e,
|
|
6518
|
-
rel: "prefetch"
|
|
6519
|
-
}));
|
|
6520
|
-
}
|
|
6521
|
-
function qa(e, t, n, r, i, a) {
|
|
6522
|
-
let o = (e, t) => !n[t] || e.route.id !== n[t].route.id, s = (e, t) => n[t].pathname !== e.pathname || n[t].route.path?.endsWith("*") && n[t].params["*"] !== e.params["*"];
|
|
6523
|
-
return a === "assets" ? t.filter((e, t) => o(e, t) || s(e, t)) : a === "data" ? t.filter((t, a) => {
|
|
6524
|
-
let c = r.routes[t.route.id];
|
|
6525
|
-
if (!c || !c.hasLoader) return !1;
|
|
6526
|
-
if (o(t, a) || s(t, a)) return !0;
|
|
6527
|
-
if (t.route.shouldRevalidate) {
|
|
6528
|
-
let r = t.route.shouldRevalidate({
|
|
6529
|
-
currentUrl: new URL(i.pathname + i.search + i.hash, window.origin),
|
|
6530
|
-
currentParams: n[0]?.params || {},
|
|
6531
|
-
nextUrl: new URL(e, window.origin),
|
|
6532
|
-
nextParams: t.params,
|
|
6533
|
-
defaultShouldRevalidate: !0
|
|
6534
|
-
});
|
|
6535
|
-
if (typeof r == "boolean") return r;
|
|
6536
|
-
}
|
|
6537
|
-
return !0;
|
|
6538
|
-
}) : [];
|
|
6539
|
-
}
|
|
6540
|
-
function Ja(e, t, { includeHydrateFallback: n } = {}) {
|
|
6541
|
-
return Ya(e.map((e) => {
|
|
6542
|
-
let r = t.routes[e.route.id];
|
|
6543
|
-
if (!r) return [];
|
|
6544
|
-
let i = [r.module];
|
|
6545
|
-
return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
|
|
6546
|
-
}).flat(1));
|
|
6547
|
-
}
|
|
6548
|
-
function Ya(e) {
|
|
6549
|
-
return [...new Set(e)];
|
|
6550
|
-
}
|
|
6551
|
-
function Xa(e) {
|
|
6552
|
-
let t = {}, n = Object.keys(e).sort();
|
|
6553
|
-
for (let r of n) t[r] = e[r];
|
|
6554
|
-
return t;
|
|
6555
|
-
}
|
|
6556
|
-
function Za(e, t) {
|
|
6557
|
-
let n = /* @__PURE__ */ new Set(), r = new Set(t);
|
|
6558
|
-
return e.reduce((e, i) => {
|
|
6559
|
-
if (t && !Wa(i) && i.as === "script" && i.href && r.has(i.href)) return e;
|
|
6560
|
-
let a = JSON.stringify(Xa(i));
|
|
6561
|
-
return n.has(a) || (n.add(a), e.push({
|
|
6562
|
-
key: a,
|
|
6563
|
-
link: i
|
|
6564
|
-
})), e;
|
|
6565
|
-
}, []);
|
|
6566
|
-
}
|
|
6567
|
-
function Qa() {
|
|
6568
|
-
let t = e.useContext(zi);
|
|
6569
|
-
return Va(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
|
|
6570
|
-
}
|
|
6571
|
-
function $a() {
|
|
6572
|
-
let t = e.useContext(Bi);
|
|
6573
|
-
return Va(t, "You must render this element inside a <DataRouterStateContext.Provider> element"), t;
|
|
6574
|
-
}
|
|
6575
|
-
var eo = e.createContext(void 0);
|
|
6576
|
-
eo.displayName = "FrameworkContext";
|
|
6577
|
-
function to() {
|
|
6578
|
-
let t = e.useContext(eo);
|
|
6579
|
-
return Va(t, "You must render this element inside a <HydratedRouter> element"), t;
|
|
6580
|
-
}
|
|
6581
|
-
function no(t, n) {
|
|
6582
|
-
let r = e.useContext(eo), [i, a] = e.useState(!1), [o, s] = e.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: d, onTouchStart: f } = n, p = e.useRef(null);
|
|
6583
|
-
e.useEffect(() => {
|
|
6584
|
-
if (t === "render" && s(!0), t === "viewport") {
|
|
6585
|
-
let e = new IntersectionObserver((e) => {
|
|
6586
|
-
e.forEach((e) => {
|
|
6587
|
-
s(e.isIntersecting);
|
|
6588
|
-
});
|
|
6589
|
-
}, { threshold: .5 });
|
|
6590
|
-
return p.current && e.observe(p.current), () => {
|
|
6591
|
-
e.disconnect();
|
|
6592
|
-
};
|
|
6593
|
-
}
|
|
6594
|
-
}, [t]), e.useEffect(() => {
|
|
6595
|
-
if (i) {
|
|
6596
|
-
let e = setTimeout(() => {
|
|
6597
|
-
s(!0);
|
|
6598
|
-
}, 100);
|
|
6599
|
-
return () => {
|
|
6600
|
-
clearTimeout(e);
|
|
6601
|
-
};
|
|
6602
|
-
}
|
|
6603
|
-
}, [i]);
|
|
6604
|
-
let m = () => {
|
|
6605
|
-
a(!0);
|
|
6606
|
-
}, h = () => {
|
|
6607
|
-
a(!1), s(!1);
|
|
6608
|
-
};
|
|
6609
|
-
return r ? t === "intent" ? [
|
|
6610
|
-
o,
|
|
6611
|
-
p,
|
|
6612
|
-
{
|
|
6613
|
-
onFocus: ro(c, m),
|
|
6614
|
-
onBlur: ro(l, h),
|
|
6615
|
-
onMouseEnter: ro(u, m),
|
|
6616
|
-
onMouseLeave: ro(d, h),
|
|
6617
|
-
onTouchStart: ro(f, m)
|
|
6618
|
-
}
|
|
6619
|
-
] : [
|
|
6620
|
-
o,
|
|
6621
|
-
p,
|
|
6622
|
-
{}
|
|
6623
|
-
] : [
|
|
6624
|
-
!1,
|
|
6625
|
-
p,
|
|
6626
|
-
{}
|
|
6627
|
-
];
|
|
6628
|
-
}
|
|
6629
|
-
function ro(e, t) {
|
|
6630
|
-
return (n) => {
|
|
6631
|
-
e && e(n), n.defaultPrevented || t(n);
|
|
6632
|
-
};
|
|
6633
|
-
}
|
|
6634
|
-
function io({ page: t, ...n }) {
|
|
6635
|
-
let r = Hi(), { nonce: i } = to(), { router: a } = Qa(), o = e.useMemo(() => Qr(a.routes, t, a.basename), [
|
|
6636
|
-
a.routes,
|
|
6637
|
-
t,
|
|
6638
|
-
a.basename
|
|
6639
|
-
]);
|
|
6640
|
-
return o ? (n.nonce == null && i && (n = {
|
|
6641
|
-
...n,
|
|
6642
|
-
nonce: i
|
|
6643
|
-
}), r ? /* @__PURE__ */ e.createElement(oo, {
|
|
6644
|
-
page: t,
|
|
6645
|
-
matches: o,
|
|
6646
|
-
...n
|
|
6647
|
-
}) : /* @__PURE__ */ e.createElement(so, {
|
|
6648
|
-
page: t,
|
|
6649
|
-
matches: o,
|
|
6650
|
-
...n
|
|
6651
|
-
})) : null;
|
|
6652
|
-
}
|
|
6653
|
-
function ao(t) {
|
|
6654
|
-
let { manifest: n, routeModules: r } = to(), [i, a] = e.useState([]);
|
|
6655
|
-
return e.useEffect(() => {
|
|
6656
|
-
let e = !1;
|
|
6657
|
-
return Ka(t, n, r).then((t) => {
|
|
6658
|
-
e || a(t);
|
|
6659
|
-
}), () => {
|
|
6660
|
-
e = !0;
|
|
6661
|
-
};
|
|
6662
|
-
}, [
|
|
6663
|
-
t,
|
|
6664
|
-
n,
|
|
6665
|
-
r
|
|
6666
|
-
]), i;
|
|
6667
|
-
}
|
|
6668
|
-
function oo({ page: t, matches: n, ...r }) {
|
|
6669
|
-
let i = ra(), { future: a } = to(), { basename: o } = Qa(), s = e.useMemo(() => {
|
|
6670
|
-
if (t === i.pathname + i.search + i.hash) return [];
|
|
6671
|
-
let e = Ha(t, o, a.v8_trailingSlashAwareDataRequests, "rsc"), r = !1, s = [];
|
|
6672
|
-
for (let e of n) typeof e.route.shouldRevalidate == "function" ? r = !0 : s.push(e.route.id);
|
|
6673
|
-
return r && s.length > 0 && e.searchParams.set("_routes", s.join(",")), [e.pathname + e.search];
|
|
6674
|
-
}, [
|
|
6675
|
-
o,
|
|
6676
|
-
a.v8_trailingSlashAwareDataRequests,
|
|
6677
|
-
t,
|
|
6678
|
-
i,
|
|
6679
|
-
n
|
|
6680
|
-
]);
|
|
6681
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, s.map((t) => /* @__PURE__ */ e.createElement("link", {
|
|
6682
|
-
key: t,
|
|
6683
|
-
rel: "prefetch",
|
|
6684
|
-
as: "fetch",
|
|
6685
|
-
href: t,
|
|
6686
|
-
...r
|
|
6687
|
-
})));
|
|
6688
|
-
}
|
|
6689
|
-
function so({ page: t, matches: n, ...r }) {
|
|
6690
|
-
let i = ra(), { future: a, manifest: o, routeModules: s } = to(), { basename: c } = Qa(), { loaderData: l, matches: u } = $a(), d = e.useMemo(() => qa(t, n, u, o, i, "data"), [
|
|
6691
|
-
t,
|
|
6692
|
-
n,
|
|
6693
|
-
u,
|
|
6694
|
-
o,
|
|
6695
|
-
i
|
|
6696
|
-
]), f = e.useMemo(() => qa(t, n, u, o, i, "assets"), [
|
|
6697
|
-
t,
|
|
6698
|
-
n,
|
|
6699
|
-
u,
|
|
6700
|
-
o,
|
|
6701
|
-
i
|
|
6702
|
-
]), p = e.useMemo(() => {
|
|
6703
|
-
if (t === i.pathname + i.search + i.hash) return [];
|
|
6704
|
-
let e = /* @__PURE__ */ new Set(), r = !1;
|
|
6705
|
-
if (n.forEach((t) => {
|
|
6706
|
-
let n = o.routes[t.route.id];
|
|
6707
|
-
!n || !n.hasLoader || (!d.some((e) => e.route.id === t.route.id) && t.route.id in l && s[t.route.id]?.shouldRevalidate || n.hasClientLoader ? r = !0 : e.add(t.route.id));
|
|
6708
|
-
}), e.size === 0) return [];
|
|
6709
|
-
let u = Ha(t, c, a.v8_trailingSlashAwareDataRequests, "data");
|
|
6710
|
-
return r && e.size > 0 && u.searchParams.set("_routes", n.filter((t) => e.has(t.route.id)).map((e) => e.route.id).join(",")), [u.pathname + u.search];
|
|
6711
|
-
}, [
|
|
6712
|
-
c,
|
|
6713
|
-
a.v8_trailingSlashAwareDataRequests,
|
|
6714
|
-
l,
|
|
6715
|
-
i,
|
|
6716
|
-
o,
|
|
6717
|
-
d,
|
|
6718
|
-
n,
|
|
6719
|
-
t,
|
|
6720
|
-
s
|
|
6721
|
-
]), m = e.useMemo(() => Ja(f, o), [f, o]), h = ao(f);
|
|
6722
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, p.map((t) => /* @__PURE__ */ e.createElement("link", {
|
|
6723
|
-
key: t,
|
|
6724
|
-
rel: "prefetch",
|
|
6725
|
-
as: "fetch",
|
|
6726
|
-
href: t,
|
|
6727
|
-
...r
|
|
6728
|
-
})), m.map((t) => /* @__PURE__ */ e.createElement("link", {
|
|
6729
|
-
key: t,
|
|
6730
|
-
rel: "modulepreload",
|
|
6731
|
-
href: t,
|
|
6732
|
-
...r
|
|
6733
|
-
})), h.map(({ key: t, link: n }) => /* @__PURE__ */ e.createElement("link", {
|
|
6734
|
-
key: t,
|
|
6735
|
-
nonce: r.nonce,
|
|
6736
|
-
...n,
|
|
6737
|
-
crossOrigin: n.crossOrigin ?? r.crossOrigin
|
|
6738
|
-
})));
|
|
6739
|
-
}
|
|
6740
|
-
function co(...e) {
|
|
6741
|
-
return (t) => {
|
|
6742
|
-
e.forEach((e) => {
|
|
6743
|
-
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
6744
|
-
});
|
|
6745
|
-
};
|
|
6746
|
-
}
|
|
6747
|
-
e.Component;
|
|
6748
|
-
var lo = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
6749
|
-
try {
|
|
6750
|
-
lo && (window.__reactRouterVersion = "7.18.2");
|
|
6751
|
-
} catch {}
|
|
6752
|
-
var uo = e.forwardRef(function({ onClick: t, discover: n = "render", prefetch: r = "none", relative: i, reloadDocument: a, replace: o, mask: s, state: c, target: l, to: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) {
|
|
6753
|
-
let { basename: g, navigator: _, useTransitions: v } = e.useContext(Ki), y = typeof u == "string" && Kr.test(u), b = Pi(u, g);
|
|
6754
|
-
u = b.to;
|
|
6755
|
-
let x = ta(u, { relative: i }), S = ra(), C = null;
|
|
6756
|
-
if (s) {
|
|
6757
|
-
let e = wi(s, [], S.mask ? S.mask.pathname : "/", !0);
|
|
6758
|
-
g !== "/" && (e.pathname = e.pathname === "/" ? g : $([g, e.pathname])), C = _.createHref(e);
|
|
6759
|
-
}
|
|
6760
|
-
let [w, T, E] = no(r, m), D = go(u, {
|
|
6761
|
-
replace: o,
|
|
6762
|
-
mask: s,
|
|
6763
|
-
state: c,
|
|
6764
|
-
target: l,
|
|
6765
|
-
preventScrollReset: d,
|
|
6766
|
-
relative: i,
|
|
6767
|
-
viewTransition: f,
|
|
6768
|
-
defaultShouldRevalidate: p,
|
|
6769
|
-
useTransitions: v
|
|
6770
|
-
});
|
|
6771
|
-
function O(e) {
|
|
6772
|
-
t && t(e), e.defaultPrevented || D(e);
|
|
6773
|
-
}
|
|
6774
|
-
let ee = !(b.isExternal || a), k = /* @__PURE__ */ e.createElement("a", {
|
|
6775
|
-
...m,
|
|
6776
|
-
...E,
|
|
6777
|
-
href: (ee ? C : void 0) || b.absoluteURL || x,
|
|
6778
|
-
onClick: ee ? O : t,
|
|
6779
|
-
ref: co(h, T),
|
|
6780
|
-
target: l,
|
|
6781
|
-
"data-discover": !y && n === "render" ? "true" : void 0
|
|
6782
|
-
});
|
|
6783
|
-
return w && !y ? /* @__PURE__ */ e.createElement(e.Fragment, null, k, /* @__PURE__ */ e.createElement(io, { page: x })) : k;
|
|
6784
|
-
});
|
|
6785
|
-
uo.displayName = "Link";
|
|
6786
|
-
var fo = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n = !1, className: r = "", end: i = !1, style: a, to: o, viewTransition: s, children: c, ...l }, u) {
|
|
6787
|
-
let d = ca(o, { relative: l.relative }), f = ra(), p = e.useContext(Bi), { navigator: m, basename: h } = e.useContext(Ki), g = p != null && xo(d) && s === !0, _ = m.encodeLocation ? m.encodeLocation(d).pathname : d.pathname, v = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
|
|
6788
|
-
n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y = vi(y, h) || y);
|
|
6789
|
-
let b = _ !== "/" && _.endsWith("/") ? _.length - 1 : _.length, x = v === _ || !i && v.startsWith(_) && v.charAt(b) === "/", S = y != null && (y === _ || !i && y.startsWith(_) && y.charAt(_.length) === "/"), C = {
|
|
6790
|
-
isActive: x,
|
|
6791
|
-
isPending: S,
|
|
6792
|
-
isTransitioning: g
|
|
6793
|
-
}, w = x ? t : void 0, T;
|
|
6794
|
-
T = typeof r == "function" ? r(C) : [
|
|
6795
|
-
r,
|
|
6796
|
-
x ? "active" : null,
|
|
6797
|
-
S ? "pending" : null,
|
|
6798
|
-
g ? "transitioning" : null
|
|
6799
|
-
].filter(Boolean).join(" ");
|
|
6800
|
-
let E = typeof a == "function" ? a(C) : a;
|
|
6801
|
-
return /* @__PURE__ */ e.createElement(uo, {
|
|
6802
|
-
...l,
|
|
6803
|
-
"aria-current": w,
|
|
6804
|
-
className: T,
|
|
6805
|
-
ref: u,
|
|
6806
|
-
style: E,
|
|
6807
|
-
to: o,
|
|
6808
|
-
viewTransition: s
|
|
6809
|
-
}, typeof c == "function" ? c(C) : c);
|
|
6810
|
-
});
|
|
6811
|
-
fo.displayName = "NavLink";
|
|
6812
|
-
var po = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, reloadDocument: i, replace: a, state: o, method: s = Oa, action: c, onSubmit: l, relative: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) => {
|
|
6813
|
-
let { useTransitions: g } = e.useContext(Ki), _ = yo(), v = bo(c, { relative: u }), y = s.toLowerCase() === "get" ? "get" : "post", b = typeof c == "string" && Kr.test(c);
|
|
6814
|
-
return /* @__PURE__ */ e.createElement("form", {
|
|
6815
|
-
ref: h,
|
|
6816
|
-
method: y,
|
|
6817
|
-
action: v,
|
|
6818
|
-
onSubmit: i ? l : (t) => {
|
|
6819
|
-
if (l && l(t), t.defaultPrevented) return;
|
|
6820
|
-
t.preventDefault();
|
|
6821
|
-
let i = t.nativeEvent.submitter, c = i?.getAttribute("formmethod") || s, m = () => _(i || t.currentTarget, {
|
|
6822
|
-
fetcherKey: n,
|
|
6823
|
-
method: c,
|
|
6824
|
-
navigate: r,
|
|
6825
|
-
replace: a,
|
|
6826
|
-
state: o,
|
|
6827
|
-
relative: u,
|
|
6828
|
-
preventScrollReset: d,
|
|
6829
|
-
viewTransition: f,
|
|
6830
|
-
defaultShouldRevalidate: p
|
|
6831
|
-
});
|
|
6832
|
-
g && r !== !1 ? e.startTransition(() => m()) : m();
|
|
6833
|
-
},
|
|
6834
|
-
...m,
|
|
6835
|
-
"data-discover": !b && t === "render" ? "true" : void 0
|
|
6836
|
-
});
|
|
6837
|
-
});
|
|
6838
|
-
po.displayName = "Form";
|
|
6839
|
-
function mo(e) {
|
|
6840
|
-
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
6841
|
-
}
|
|
6842
|
-
function ho(t) {
|
|
6843
|
-
let n = e.useContext(zi);
|
|
6844
|
-
return Q(n, mo(t)), n;
|
|
6845
|
-
}
|
|
6846
|
-
function go(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o, relative: s, viewTransition: c, defaultShouldRevalidate: l, useTransitions: u } = {}) {
|
|
6847
|
-
let d = oa(), f = ra(), p = ca(t, { relative: s });
|
|
6848
|
-
return e.useCallback((m) => {
|
|
6849
|
-
if (Fa(m, n)) {
|
|
6850
|
-
m.preventDefault();
|
|
6851
|
-
let n = r === void 0 ? Xr(f) === Xr(p) : r, h = () => d(t, {
|
|
6852
|
-
replace: n,
|
|
6853
|
-
mask: i,
|
|
6854
|
-
state: a,
|
|
6855
|
-
preventScrollReset: o,
|
|
6856
|
-
relative: s,
|
|
6857
|
-
viewTransition: c,
|
|
6858
|
-
defaultShouldRevalidate: l
|
|
6859
|
-
});
|
|
6860
|
-
u ? e.startTransition(() => h()) : h();
|
|
5808
|
+
].filter(({ unit: e, value: t }) => e === "minute" || t > 0).map(({ unit: e, value: n }) => new Intl.NumberFormat(t, {
|
|
5809
|
+
style: "unit",
|
|
5810
|
+
unit: e,
|
|
5811
|
+
unitDisplay: "narrow"
|
|
5812
|
+
}).format(n));
|
|
5813
|
+
return new Intl.ListFormat(t, {
|
|
5814
|
+
style: "narrow",
|
|
5815
|
+
type: "unit"
|
|
5816
|
+
}).format(e);
|
|
6861
5817
|
}
|
|
6862
|
-
}, [
|
|
6863
|
-
|
|
6864
|
-
d,
|
|
6865
|
-
p,
|
|
6866
|
-
r,
|
|
6867
|
-
i,
|
|
6868
|
-
a,
|
|
6869
|
-
n,
|
|
6870
|
-
t,
|
|
6871
|
-
o,
|
|
6872
|
-
s,
|
|
6873
|
-
c,
|
|
6874
|
-
l,
|
|
6875
|
-
u
|
|
6876
|
-
]);
|
|
6877
|
-
}
|
|
6878
|
-
var _o = 0, vo = () => `__${String(++_o)}__`;
|
|
6879
|
-
function yo() {
|
|
6880
|
-
let { router: t } = ho("useSubmit"), { basename: n } = e.useContext(Ki), r = Sa(), i = t.fetch, a = t.navigate;
|
|
6881
|
-
return e.useCallback(async (e, t = {}) => {
|
|
6882
|
-
let { action: o, method: s, encType: c, formData: l, body: u } = Ba(e, n);
|
|
6883
|
-
if (t.navigate === !1) {
|
|
6884
|
-
let e = t.fetcherKey || vo();
|
|
6885
|
-
await i(e, r, t.action || o, {
|
|
6886
|
-
defaultShouldRevalidate: t.defaultShouldRevalidate,
|
|
6887
|
-
preventScrollReset: t.preventScrollReset,
|
|
6888
|
-
formData: l,
|
|
6889
|
-
body: u,
|
|
6890
|
-
formMethod: t.method || s,
|
|
6891
|
-
formEncType: t.encType || c,
|
|
6892
|
-
flushSync: t.flushSync
|
|
6893
|
-
});
|
|
6894
|
-
} else await a(t.action || o, {
|
|
6895
|
-
defaultShouldRevalidate: t.defaultShouldRevalidate,
|
|
6896
|
-
preventScrollReset: t.preventScrollReset,
|
|
6897
|
-
formData: l,
|
|
6898
|
-
body: u,
|
|
6899
|
-
formMethod: t.method || s,
|
|
6900
|
-
formEncType: t.encType || c,
|
|
6901
|
-
replace: t.replace,
|
|
6902
|
-
state: t.state,
|
|
6903
|
-
fromRouteId: r,
|
|
6904
|
-
flushSync: t.flushSync,
|
|
6905
|
-
viewTransition: t.viewTransition
|
|
6906
|
-
});
|
|
6907
|
-
}, [
|
|
6908
|
-
i,
|
|
6909
|
-
a,
|
|
6910
|
-
n,
|
|
6911
|
-
r
|
|
6912
|
-
]);
|
|
6913
|
-
}
|
|
6914
|
-
function bo(t, { relative: n } = {}) {
|
|
6915
|
-
let { basename: r } = e.useContext(Ki), i = e.useContext(Ji);
|
|
6916
|
-
Q(i, "useFormAction must be used inside a RouteContext");
|
|
6917
|
-
let [a] = i.matches.slice(-1), o = { ...ca(t || ".", { relative: n }) }, s = ra();
|
|
6918
|
-
if (t == null) {
|
|
6919
|
-
o.search = s.search;
|
|
6920
|
-
let e = new URLSearchParams(o.search), t = e.getAll("index");
|
|
6921
|
-
if (t.some((e) => e === "")) {
|
|
6922
|
-
e.delete("index"), t.filter((e) => e).forEach((t) => e.append("index", t));
|
|
6923
|
-
let n = e.toString();
|
|
6924
|
-
o.search = n ? `?${n}` : "";
|
|
6925
|
-
}
|
|
6926
|
-
}
|
|
6927
|
-
return (!t || t === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : $([r, o.pathname])), Xr(o);
|
|
6928
|
-
}
|
|
6929
|
-
function xo(t, { relative: n } = {}) {
|
|
6930
|
-
let r = e.useContext(Ui);
|
|
6931
|
-
Q(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
|
|
6932
|
-
let { basename: i } = ho("useViewTransitionState"), a = ca(t, { relative: n });
|
|
6933
|
-
if (!r.isTransitioning) return !1;
|
|
6934
|
-
let o = vi(r.currentLocation.pathname, i) || r.currentLocation.pathname, s = vi(r.nextLocation.pathname, i) || r.nextLocation.pathname;
|
|
6935
|
-
return mi(a.pathname, s) != null || mi(a.pathname, o) != null;
|
|
5818
|
+
}, [t]);
|
|
5819
|
+
return o(() => r(e), [e, r]);
|
|
6936
5820
|
}
|
|
6937
5821
|
//#endregion
|
|
6938
5822
|
//#region src/lib/hooks/useUrlQuery.ts
|
|
6939
|
-
function
|
|
6940
|
-
let e = (0,
|
|
5823
|
+
function Si() {
|
|
5824
|
+
let e = (0, Q.c)(2), { search: t } = je(), n;
|
|
6941
5825
|
return e[0] === t ? n = e[1] : (n = new URLSearchParams(t), e[0] = t, e[1] = n), n;
|
|
6942
5826
|
}
|
|
6943
5827
|
//#endregion
|
|
6944
5828
|
//#region src/lib/hooks/useFormatNumber.ts
|
|
6945
|
-
function
|
|
6946
|
-
let t = (0,
|
|
5829
|
+
function Ci(e) {
|
|
5830
|
+
let t = (0, Q.c)(5), { language: n } = jr(), r;
|
|
6947
5831
|
t[0] !== n || t[1] !== e ? (r = new Intl.NumberFormat(n, e), t[0] = n, t[1] = e, t[2] = r) : r = t[2];
|
|
6948
5832
|
let i = r, a;
|
|
6949
5833
|
return t[3] === i ? a = t[4] : (a = (e) => {
|
|
@@ -6952,68 +5836,70 @@ function Co(e) {
|
|
|
6952
5836
|
return isNaN(t) ? "-" : i.format(t);
|
|
6953
5837
|
}, t[3] = i, t[4] = a), a;
|
|
6954
5838
|
}
|
|
6955
|
-
function
|
|
6956
|
-
let t = (0,
|
|
5839
|
+
function wi(e) {
|
|
5840
|
+
let t = (0, Q.c)(3), n = Ci(), r;
|
|
6957
5841
|
return t[0] !== n || t[1] !== e ? (r = n(e), t[0] = n, t[1] = e, t[2] = r) : r = t[2], r;
|
|
6958
5842
|
}
|
|
6959
5843
|
//#endregion
|
|
6960
5844
|
//#region src/lib/components/datetime-display/DateTimeDisplay.tsx
|
|
6961
|
-
function
|
|
6962
|
-
let t = (0,
|
|
5845
|
+
function Ti(e) {
|
|
5846
|
+
let t = (0, Q.c)(7), n, r, i;
|
|
6963
5847
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({date: n, options: r, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
6964
|
-
let a =
|
|
6965
|
-
return t[4] !== a || t[5] !== i ? (o = /* @__PURE__ */
|
|
5848
|
+
let a = bi(n, r), o;
|
|
5849
|
+
return t[4] !== a || t[5] !== i ? (o = /* @__PURE__ */ Y("span", {
|
|
6966
5850
|
...i,
|
|
6967
5851
|
children: a
|
|
6968
5852
|
}), t[4] = a, t[5] = i, t[6] = o) : o = t[6], o;
|
|
6969
5853
|
}
|
|
6970
5854
|
//#endregion
|
|
6971
5855
|
//#region src/lib/components/duration-display/DurationDisplay.tsx
|
|
6972
|
-
function
|
|
6973
|
-
let t = (0,
|
|
5856
|
+
function Ei(e) {
|
|
5857
|
+
let t = (0, Q.c)(10), n, r, i;
|
|
6974
5858
|
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({minutes: n, alternativeText: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
6975
|
-
let a = i === void 0 ? "" : i, o =
|
|
5859
|
+
let a = i === void 0 ? "" : i, o = xi(n ?? 0);
|
|
6976
5860
|
if (n == null) {
|
|
6977
5861
|
let e;
|
|
6978
|
-
return t[4] !== a || t[5] !== r ? (e = /* @__PURE__ */
|
|
5862
|
+
return t[4] !== a || t[5] !== r ? (e = /* @__PURE__ */ Y("span", {
|
|
6979
5863
|
...r,
|
|
6980
5864
|
children: a
|
|
6981
5865
|
}), t[4] = a, t[5] = r, t[6] = e) : e = t[6], e;
|
|
6982
5866
|
}
|
|
6983
5867
|
let s;
|
|
6984
|
-
return t[7] !== o || t[8] !== r ? (s = /* @__PURE__ */
|
|
5868
|
+
return t[7] !== o || t[8] !== r ? (s = /* @__PURE__ */ Y("span", {
|
|
6985
5869
|
...r,
|
|
6986
5870
|
children: o
|
|
6987
5871
|
}), t[7] = o, t[8] = r, t[9] = s) : s = t[9], s;
|
|
6988
5872
|
}
|
|
6989
5873
|
//#endregion
|
|
6990
|
-
//#region src/lib/components/
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
}));
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
},
|
|
5874
|
+
//#region src/lib/components/StandardModal.tsx
|
|
5875
|
+
var Di = "bg-overlay";
|
|
5876
|
+
function Oi(e) {
|
|
5877
|
+
let t = (0, Q.c)(21), n, r, i, a, o, s;
|
|
5878
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5], s = t[6]) : ({children: r, size: s, backdropProps: n, containerProps: i, dialogProps: a, ...o} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o, t[6] = s);
|
|
5879
|
+
let c = a?.className ? `${Di} ${a.className}` : Di, l;
|
|
5880
|
+
t[7] !== r || t[8] !== a || t[9] !== c ? (l = /* @__PURE__ */ Y(V, {
|
|
5881
|
+
...a,
|
|
5882
|
+
className: c,
|
|
5883
|
+
children: r
|
|
5884
|
+
}), t[7] = r, t[8] = a, t[9] = c, t[10] = l) : l = t[10];
|
|
5885
|
+
let u;
|
|
5886
|
+
t[11] !== i || t[12] !== s || t[13] !== l ? (u = /* @__PURE__ */ Y(B, {
|
|
5887
|
+
size: s,
|
|
5888
|
+
...i,
|
|
5889
|
+
children: l
|
|
5890
|
+
}), t[11] = i, t[12] = s, t[13] = l, t[14] = u) : u = t[14];
|
|
5891
|
+
let d;
|
|
5892
|
+
t[15] !== n || t[16] !== u ? (d = /* @__PURE__ */ Y(R, {
|
|
5893
|
+
...n,
|
|
5894
|
+
children: u
|
|
5895
|
+
}), t[15] = n, t[16] = u, t[17] = d) : d = t[17];
|
|
5896
|
+
let f;
|
|
5897
|
+
return t[18] !== o || t[19] !== d ? (f = /* @__PURE__ */ Y(L, {
|
|
5898
|
+
...o,
|
|
5899
|
+
children: d
|
|
5900
|
+
}), t[18] = o, t[19] = d, t[20] = f) : f = t[20], f;
|
|
5901
|
+
}
|
|
5902
|
+
var ki = {
|
|
7017
5903
|
label: "Benutzer",
|
|
7018
5904
|
chooseUser: "Benutzer auswählen",
|
|
7019
5905
|
modalTitle: "Benutzer auswählen",
|
|
@@ -7027,296 +5913,333 @@ var Oo = {
|
|
|
7027
5913
|
empty: "Keine Benutzer gefunden",
|
|
7028
5914
|
loadError: "Benutzer konnten nicht geladen werden.",
|
|
7029
5915
|
retry: "Erneut versuchen"
|
|
7030
|
-
},
|
|
7031
|
-
|
|
7032
|
-
|
|
5916
|
+
}, Ai = {
|
|
5917
|
+
label: "User",
|
|
5918
|
+
chooseUser: "Choose user",
|
|
5919
|
+
modalTitle: "Choose a user",
|
|
5920
|
+
searchPlaceholder: "Search by username or email",
|
|
5921
|
+
usersListLabel: "Users",
|
|
5922
|
+
clear: "Clear selection",
|
|
5923
|
+
resultCount: {
|
|
5924
|
+
one: "{{count}} user shown",
|
|
5925
|
+
many: "{{count}} users shown"
|
|
5926
|
+
},
|
|
5927
|
+
empty: "No users found",
|
|
5928
|
+
loadError: "Users could not be loaded.",
|
|
5929
|
+
retry: "Try again"
|
|
7033
5930
|
};
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
5931
|
+
//#endregion
|
|
5932
|
+
//#region src/lib/components/user-search/UserSearch.utils.ts
|
|
5933
|
+
function ji(e) {
|
|
5934
|
+
let t = /* @__PURE__ */ new Map();
|
|
5935
|
+
for (let n of e) {
|
|
5936
|
+
let e = (n.username?.[0] ?? "#").toUpperCase(), r = t.get(e);
|
|
5937
|
+
r ? r.push(n) : t.set(e, [n]);
|
|
5938
|
+
}
|
|
5939
|
+
return [...t.entries()].sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => ({
|
|
5940
|
+
letter: e,
|
|
5941
|
+
users: t
|
|
5942
|
+
}));
|
|
5943
|
+
}
|
|
5944
|
+
//#endregion
|
|
5945
|
+
//#region src/lib/components/user-search/UserSearch.tsx
|
|
5946
|
+
var Mi = 50, Ni = 300;
|
|
5947
|
+
function Pi(e) {
|
|
5948
|
+
let t = (0, Q.c)(50), { isOpen: n, open: r, close: a, resetSignal: o, onSelectionChange: l } = e, [u, d] = c(null), [f, p] = c(""), m = hi(f, Ni), h = s(!0), g;
|
|
5949
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (g = () => {
|
|
5950
|
+
if (h.current) {
|
|
5951
|
+
h.current = !1;
|
|
7044
5952
|
return;
|
|
7045
5953
|
}
|
|
7046
|
-
|
|
7047
|
-
}, t[
|
|
7048
|
-
let
|
|
7049
|
-
t[
|
|
7050
|
-
let
|
|
7051
|
-
t[
|
|
7052
|
-
let
|
|
7053
|
-
t[
|
|
7054
|
-
limit:
|
|
7055
|
-
search:
|
|
7056
|
-
}, t[
|
|
7057
|
-
let
|
|
7058
|
-
t[
|
|
7059
|
-
enabled:
|
|
5954
|
+
d(null), p("");
|
|
5955
|
+
}, t[0] = g) : g = t[0];
|
|
5956
|
+
let _;
|
|
5957
|
+
t[1] === o ? _ = t[2] : (_ = [o], t[1] = o, t[2] = _), i(g, _);
|
|
5958
|
+
let v;
|
|
5959
|
+
t[3] !== m || t[4] !== n || t[5] !== f ? (v = n && f.trim() && m.trim() || void 0, t[3] = m, t[4] = n, t[5] = f, t[6] = v) : v = t[6];
|
|
5960
|
+
let y;
|
|
5961
|
+
t[7] === v ? y = t[8] : (y = {
|
|
5962
|
+
limit: Mi,
|
|
5963
|
+
search: v
|
|
5964
|
+
}, t[7] = v, t[8] = y);
|
|
5965
|
+
let b;
|
|
5966
|
+
t[9] === n ? b = t[10] : (b = {
|
|
5967
|
+
enabled: n,
|
|
7060
5968
|
initialPageParam: 1,
|
|
7061
|
-
getNextPageParam:
|
|
7062
|
-
}, t[
|
|
7063
|
-
let { data:
|
|
7064
|
-
if (t[
|
|
5969
|
+
getNextPageParam: Fi
|
|
5970
|
+
}, t[9] = n, t[10] = b);
|
|
5971
|
+
let { data: x, fetchNextPage: S, hasNextPage: C, isFetchingNextPage: w, isFetching: T, isLoading: E, isError: D, refetch: O } = Pe(y, void 0, b), k;
|
|
5972
|
+
if (t[11] !== x?.pages) {
|
|
7065
5973
|
let e = /* @__PURE__ */ new Map();
|
|
7066
|
-
for (let t of
|
|
7067
|
-
|
|
7068
|
-
} else
|
|
7069
|
-
let
|
|
7070
|
-
t[
|
|
7071
|
-
let
|
|
7072
|
-
t[
|
|
7073
|
-
|
|
7074
|
-
},
|
|
7075
|
-
let
|
|
7076
|
-
t[
|
|
7077
|
-
|
|
7078
|
-
}, t[
|
|
7079
|
-
let
|
|
7080
|
-
t[
|
|
7081
|
-
e ?
|
|
7082
|
-
}, t[
|
|
7083
|
-
let
|
|
7084
|
-
t[
|
|
7085
|
-
hasNextPage:
|
|
7086
|
-
isFetchingNextPage:
|
|
7087
|
-
fetchNextPage:
|
|
7088
|
-
}, t[
|
|
7089
|
-
let
|
|
7090
|
-
t[
|
|
7091
|
-
|
|
7092
|
-
hasNextPage:
|
|
7093
|
-
isFetchingNextPage:
|
|
7094
|
-
fetchNextPage:
|
|
5974
|
+
for (let t of x?.pages ?? []) for (let n of t.data) e.set(n.id, n);
|
|
5975
|
+
k = [...e.values()], t[11] = x?.pages, t[12] = k;
|
|
5976
|
+
} else k = t[12];
|
|
5977
|
+
let A = k, j;
|
|
5978
|
+
t[13] === A ? j = t[14] : (j = ji(A), t[13] = A, t[14] = j);
|
|
5979
|
+
let M = j, N, P;
|
|
5980
|
+
t[15] !== l || t[16] !== u ? (N = () => {
|
|
5981
|
+
l?.(u);
|
|
5982
|
+
}, P = [u, l], t[15] = l, t[16] = u, t[17] = N, t[18] = P) : (N = t[17], P = t[18]), i(N, P);
|
|
5983
|
+
let F;
|
|
5984
|
+
t[19] === a ? F = t[20] : (F = (e) => {
|
|
5985
|
+
d(e), p(""), a();
|
|
5986
|
+
}, t[19] = a, t[20] = F);
|
|
5987
|
+
let I = F, L;
|
|
5988
|
+
t[21] !== a || t[22] !== r ? (L = (e) => {
|
|
5989
|
+
e ? r() : (p(""), a());
|
|
5990
|
+
}, t[21] = a, t[22] = r, t[23] = L) : L = t[23];
|
|
5991
|
+
let R = L, z = s(null), B = s(null), V;
|
|
5992
|
+
t[24] !== S || t[25] !== C || t[26] !== w ? (V = {
|
|
5993
|
+
hasNextPage: C,
|
|
5994
|
+
isFetchingNextPage: w,
|
|
5995
|
+
fetchNextPage: S
|
|
5996
|
+
}, t[24] = S, t[25] = C, t[26] = w, t[27] = V) : V = t[27];
|
|
5997
|
+
let ee = s(V), H;
|
|
5998
|
+
t[28] !== S || t[29] !== C || t[30] !== w ? (H = () => {
|
|
5999
|
+
ee.current = {
|
|
6000
|
+
hasNextPage: C,
|
|
6001
|
+
isFetchingNextPage: w,
|
|
6002
|
+
fetchNextPage: S
|
|
7095
6003
|
};
|
|
7096
|
-
}, t[
|
|
7097
|
-
let
|
|
7098
|
-
t[
|
|
7099
|
-
let e =
|
|
7100
|
-
if (!e || !t || !
|
|
7101
|
-
let
|
|
7102
|
-
let t =
|
|
6004
|
+
}, t[28] = S, t[29] = C, t[30] = w, t[31] = H) : H = t[31], i(H);
|
|
6005
|
+
let U;
|
|
6006
|
+
t[32] === n ? U = t[33] : (U = () => {
|
|
6007
|
+
let e = B.current, t = z.current;
|
|
6008
|
+
if (!e || !t || !n) return;
|
|
6009
|
+
let r = new IntersectionObserver((e) => {
|
|
6010
|
+
let t = ee.current;
|
|
7103
6011
|
e[0]?.isIntersecting && t.hasNextPage && !t.isFetchingNextPage && t.fetchNextPage();
|
|
7104
6012
|
}, {
|
|
7105
6013
|
root: t,
|
|
7106
6014
|
rootMargin: "200px"
|
|
7107
6015
|
});
|
|
7108
|
-
return
|
|
7109
|
-
}, t[
|
|
7110
|
-
let
|
|
7111
|
-
t[
|
|
7112
|
-
let
|
|
7113
|
-
t[38] !==
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7120
|
-
|
|
7121
|
-
|
|
6016
|
+
return r.observe(e), () => r.disconnect();
|
|
6017
|
+
}, t[32] = n, t[33] = U);
|
|
6018
|
+
let W;
|
|
6019
|
+
t[34] !== D || t[35] !== n ? (W = [n, D], t[34] = D, t[35] = n, t[36] = W) : W = t[36], i(U, W);
|
|
6020
|
+
let G;
|
|
6021
|
+
return t[37] !== S || t[38] !== M || t[39] !== R || t[40] !== I || t[41] !== D || t[42] !== T || t[43] !== w || t[44] !== E || t[45] !== O || t[46] !== f || t[47] !== u || t[48] !== A ? (G = {
|
|
6022
|
+
selectedUser: u,
|
|
6023
|
+
setSelectedUser: d,
|
|
6024
|
+
search: f,
|
|
6025
|
+
setSearch: p,
|
|
6026
|
+
users: A,
|
|
6027
|
+
groups: M,
|
|
6028
|
+
handleSelect: I,
|
|
6029
|
+
handleOpenChange: R,
|
|
6030
|
+
listRef: z,
|
|
6031
|
+
sentinelRef: B,
|
|
6032
|
+
isError: D,
|
|
6033
|
+
isLoading: E,
|
|
6034
|
+
isFetching: T,
|
|
6035
|
+
refetch: O,
|
|
6036
|
+
isFetchingNextPage: w,
|
|
6037
|
+
fetchNextPage: S
|
|
6038
|
+
}, t[37] = S, t[38] = M, t[39] = R, t[40] = I, t[41] = D, t[42] = T, t[43] = w, t[44] = E, t[45] = O, t[46] = f, t[47] = u, t[48] = A, t[49] = G) : G = t[49], G;
|
|
6039
|
+
}
|
|
6040
|
+
function Fi(e) {
|
|
6041
|
+
return e.nextPage;
|
|
6042
|
+
}
|
|
6043
|
+
function Ii(e) {
|
|
6044
|
+
let t = (0, Q.c)(12), { selectedUser: n, size: r, open: i, setSelectedUser: a, labelId: o, triggerId: s, t: c, afterAutocomplete: l, afterSelection: u } = e, d;
|
|
6045
|
+
t[0] !== o || t[1] !== i || t[2] !== n || t[3] !== a || t[4] !== r || t[5] !== c || t[6] !== s ? (d = n ? /* @__PURE__ */ X(Ae, { children: [/* @__PURE__ */ Y(v, {
|
|
7122
6046
|
variant: "ghost",
|
|
7123
|
-
size:
|
|
7124
|
-
onPress:
|
|
6047
|
+
size: r,
|
|
6048
|
+
onPress: i,
|
|
7125
6049
|
className: "justify-start px-2",
|
|
7126
|
-
id:
|
|
7127
|
-
"aria-labelledby": `${
|
|
6050
|
+
id: s,
|
|
6051
|
+
"aria-labelledby": `${o} ${s}`,
|
|
7128
6052
|
"data-cy": "user-picker-selected",
|
|
7129
|
-
children: /* @__PURE__ */
|
|
7130
|
-
user:
|
|
6053
|
+
children: /* @__PURE__ */ Y(mi, {
|
|
6054
|
+
user: n,
|
|
7131
6055
|
interactive: !1
|
|
7132
6056
|
})
|
|
7133
|
-
}), /* @__PURE__ */
|
|
6057
|
+
}), /* @__PURE__ */ Y(v, {
|
|
7134
6058
|
variant: "ghost",
|
|
7135
|
-
size:
|
|
6059
|
+
size: r ?? "sm",
|
|
7136
6060
|
isIconOnly: !0,
|
|
7137
|
-
onPress: () =>
|
|
7138
|
-
"aria-label":
|
|
6061
|
+
onPress: () => a(null),
|
|
6062
|
+
"aria-label": c("clear"),
|
|
7139
6063
|
"data-cy": "user-picker-clear",
|
|
7140
|
-
children: /* @__PURE__ */
|
|
7141
|
-
})] }) : /* @__PURE__ */
|
|
6064
|
+
children: /* @__PURE__ */ Y(ke, { className: "w-4 h-4" })
|
|
6065
|
+
})] }) : /* @__PURE__ */ X(v, {
|
|
7142
6066
|
variant: "secondary",
|
|
7143
|
-
size:
|
|
7144
|
-
onPress:
|
|
6067
|
+
size: r,
|
|
6068
|
+
onPress: i,
|
|
7145
6069
|
className: "flex-1 justify-start",
|
|
7146
|
-
id:
|
|
7147
|
-
"aria-labelledby": `${
|
|
6070
|
+
id: s,
|
|
6071
|
+
"aria-labelledby": `${o} ${s}`,
|
|
7148
6072
|
"data-cy": "user-picker-open",
|
|
7149
|
-
children: [/* @__PURE__ */
|
|
7150
|
-
}), t[
|
|
7151
|
-
let
|
|
7152
|
-
t[
|
|
6073
|
+
children: [/* @__PURE__ */ Y(Oe, { className: "w-4 h-4" }), c("chooseUser")]
|
|
6074
|
+
}), t[0] = o, t[1] = i, t[2] = n, t[3] = a, t[4] = r, t[5] = c, t[6] = s, t[7] = d) : d = t[7];
|
|
6075
|
+
let f;
|
|
6076
|
+
return t[8] !== l || t[9] !== u || t[10] !== d ? (f = /* @__PURE__ */ X("div", {
|
|
7153
6077
|
className: "flex gap-2 items-center",
|
|
7154
6078
|
children: [
|
|
7155
|
-
|
|
6079
|
+
d,
|
|
7156
6080
|
l,
|
|
7157
|
-
|
|
6081
|
+
u
|
|
7158
6082
|
]
|
|
7159
|
-
}), t[
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
let
|
|
7167
|
-
t[
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
t[
|
|
7179
|
-
let
|
|
7180
|
-
t[
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
t[
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
t[
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
}, t[83] = Ge) : Ge = t[83];
|
|
7209
|
-
let Ke;
|
|
7210
|
-
t[84] !== he || t[85] !== ye || t[86] !== q || t[87] !== ue || t[88] !== de || t[89] !== fe || t[90] !== g || t[91] !== J.length ? (Ke = q && J.length === 0 ? /* @__PURE__ */ R("div", {
|
|
7211
|
-
className: "flex flex-col items-center gap-3 py-10",
|
|
7212
|
-
"data-cy": "user-picker-error",
|
|
7213
|
-
children: [/* @__PURE__ */ L("p", {
|
|
7214
|
-
className: "text-sm text-muted",
|
|
7215
|
-
children: g("loadError")
|
|
7216
|
-
}), /* @__PURE__ */ L(h, {
|
|
7217
|
-
variant: "secondary",
|
|
7218
|
-
size: "sm",
|
|
7219
|
-
isPending: ue,
|
|
7220
|
-
onPress: () => fe(),
|
|
7221
|
-
children: g("retry")
|
|
7222
|
-
})]
|
|
7223
|
-
}) : he.length === 0 && !de ? /* @__PURE__ */ L("div", {
|
|
7224
|
-
className: "py-10 text-center text-sm text-muted",
|
|
7225
|
-
children: g("empty")
|
|
7226
|
-
}) : /* @__PURE__ */ L(b, {
|
|
7227
|
-
"aria-label": g("usersListLabel"),
|
|
7228
|
-
selectionMode: "none",
|
|
7229
|
-
children: he.map((e) => /* @__PURE__ */ R(S, {
|
|
7230
|
-
id: e.letter,
|
|
7231
|
-
children: [/* @__PURE__ */ L(_, {
|
|
7232
|
-
className: "sticky top-0 z-10 bg-surface-secondary px-2 py-1 text-xs font-semibold text-muted",
|
|
7233
|
-
children: e.letter
|
|
7234
|
-
}), e.users.map((e) => /* @__PURE__ */ L(x, {
|
|
7235
|
-
id: String(e.id),
|
|
7236
|
-
textValue: e.username,
|
|
7237
|
-
onAction: () => ye(e),
|
|
7238
|
-
"data-cy": `user-picker-item-${e.id}`,
|
|
7239
|
-
children: /* @__PURE__ */ L(Vr, {
|
|
7240
|
-
user: e,
|
|
7241
|
-
interactive: !1
|
|
7242
|
-
})
|
|
7243
|
-
}, e.id))]
|
|
7244
|
-
}, e.letter))
|
|
7245
|
-
}), t[84] = he, t[85] = ye, t[86] = q, t[87] = ue, t[88] = de, t[89] = fe, t[90] = g, t[91] = J.length, t[92] = Ke) : Ke = t[92];
|
|
7246
|
-
let qe;
|
|
7247
|
-
t[93] === q ? qe = t[94] : (qe = q ? null : /* @__PURE__ */ L("div", { ref: Ce }), t[93] = q, t[94] = qe);
|
|
7248
|
-
let Je;
|
|
7249
|
-
t[95] !== ce || t[96] !== q || t[97] !== K || t[98] !== g || t[99] !== J.length ? (Je = q && J.length > 0 ? /* @__PURE__ */ R("div", {
|
|
7250
|
-
className: "flex items-center justify-center gap-3 py-3",
|
|
7251
|
-
"data-cy": "user-picker-load-more-error",
|
|
7252
|
-
children: [/* @__PURE__ */ L("p", {
|
|
7253
|
-
className: "text-sm text-muted",
|
|
7254
|
-
children: g("loadError")
|
|
7255
|
-
}), /* @__PURE__ */ L(h, {
|
|
7256
|
-
variant: "secondary",
|
|
7257
|
-
size: "sm",
|
|
7258
|
-
isPending: K,
|
|
7259
|
-
onPress: () => ce(),
|
|
7260
|
-
children: g("retry")
|
|
7261
|
-
})]
|
|
7262
|
-
}) : null, t[95] = ce, t[96] = q, t[97] = K, t[98] = g, t[99] = J.length, t[100] = Je) : Je = t[100];
|
|
7263
|
-
let Ye;
|
|
7264
|
-
t[101] === K ? Ye = t[102] : (Ye = K ? /* @__PURE__ */ L("div", {
|
|
7265
|
-
className: "flex justify-center py-3",
|
|
7266
|
-
children: /* @__PURE__ */ L(te, { size: "sm" })
|
|
7267
|
-
}) : null, t[101] = K, t[102] = Ye);
|
|
7268
|
-
let Xe;
|
|
7269
|
-
t[103] !== Ke || t[104] !== qe || t[105] !== Je || t[106] !== Ye ? (Xe = /* @__PURE__ */ R("div", {
|
|
7270
|
-
ref: Se,
|
|
7271
|
-
className: "mt-2",
|
|
7272
|
-
style: Ge,
|
|
7273
|
-
"data-cy": "user-picker-list",
|
|
7274
|
-
children: [
|
|
7275
|
-
Ke,
|
|
7276
|
-
qe,
|
|
7277
|
-
Je,
|
|
7278
|
-
Ye
|
|
7279
|
-
]
|
|
7280
|
-
}), t[103] = Ke, t[104] = qe, t[105] = Je, t[106] = Ye, t[107] = Xe) : Xe = t[107];
|
|
7281
|
-
let Ze;
|
|
7282
|
-
t[108] !== He || t[109] !== We || t[110] !== Xe ? (Ze = /* @__PURE__ */ R(T, {
|
|
6083
|
+
}), t[8] = l, t[9] = u, t[10] = d, t[11] = f) : f = t[11], f;
|
|
6084
|
+
}
|
|
6085
|
+
var Li = {
|
|
6086
|
+
"--field-border": "var(--border-secondary)",
|
|
6087
|
+
"--border-width-field": "1px"
|
|
6088
|
+
};
|
|
6089
|
+
function Ri(e) {
|
|
6090
|
+
let t = (0, Q.c)(53), { label: n, placeholder: r, size: i, resetSignal: o, onSelectionChange: s, afterAutocomplete: c, wrapperProps: l, afterSelection: u } = e, d;
|
|
6091
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
6092
|
+
en: Ai,
|
|
6093
|
+
de: ki
|
|
6094
|
+
}, t[0] = d) : d = t[0];
|
|
6095
|
+
let { t: f } = Mr(d), p = a(), m = a(), { isOpen: h, open: g, close: _ } = he(), y;
|
|
6096
|
+
t[1] !== _ || t[2] !== h || t[3] !== s || t[4] !== g || t[5] !== o ? (y = {
|
|
6097
|
+
isOpen: h,
|
|
6098
|
+
open: g,
|
|
6099
|
+
close: _,
|
|
6100
|
+
resetSignal: o,
|
|
6101
|
+
onSelectionChange: s
|
|
6102
|
+
}, t[1] = _, t[2] = h, t[3] = s, t[4] = g, t[5] = o, t[6] = y) : y = t[6];
|
|
6103
|
+
let { selectedUser: b, setSelectedUser: x, search: S, setSearch: C, users: w, groups: T, handleSelect: E, handleOpenChange: D, listRef: O, sentinelRef: k, isError: j, isLoading: L, isFetching: R, refetch: B, isFetchingNextPage: V, fetchNextPage: U } = Pi(y), W;
|
|
6104
|
+
t[7] !== n || t[8] !== f ? (W = n ?? f("label"), t[7] = n, t[8] = f, t[9] = W) : W = t[9];
|
|
6105
|
+
let G;
|
|
6106
|
+
t[10] !== p || t[11] !== W ? (G = /* @__PURE__ */ Y(N, {
|
|
6107
|
+
id: p,
|
|
6108
|
+
className: "mb-1 block",
|
|
6109
|
+
children: W
|
|
6110
|
+
}), t[10] = p, t[11] = W, t[12] = G) : G = t[12];
|
|
6111
|
+
let K;
|
|
6112
|
+
t[13] !== c || t[14] !== u || t[15] !== p || t[16] !== g || t[17] !== b || t[18] !== x || t[19] !== i || t[20] !== f || t[21] !== m ? (K = /* @__PURE__ */ Y(Ii, {
|
|
6113
|
+
selectedUser: b,
|
|
6114
|
+
size: i,
|
|
6115
|
+
open: g,
|
|
6116
|
+
setSelectedUser: x,
|
|
6117
|
+
labelId: p,
|
|
6118
|
+
triggerId: m,
|
|
6119
|
+
t: f,
|
|
6120
|
+
afterAutocomplete: c,
|
|
6121
|
+
afterSelection: u
|
|
6122
|
+
}), t[13] = c, t[14] = u, t[15] = p, t[16] = g, t[17] = b, t[18] = x, t[19] = i, t[20] = f, t[21] = m, t[22] = K) : K = t[22];
|
|
6123
|
+
let q;
|
|
6124
|
+
t[23] === f ? q = t[24] : (q = f("modalTitle"), t[23] = f, t[24] = q);
|
|
6125
|
+
let J;
|
|
6126
|
+
t[25] === q ? J = t[26] : (J = {
|
|
6127
|
+
style: Li,
|
|
6128
|
+
"aria-label": q
|
|
6129
|
+
}, t[25] = q, t[26] = J);
|
|
6130
|
+
let ne;
|
|
6131
|
+
t[27] !== U || t[28] !== T || t[29] !== E || t[30] !== j || t[31] !== R || t[32] !== V || t[33] !== L || t[34] !== O || t[35] !== r || t[36] !== B || t[37] !== S || t[38] !== k || t[39] !== C || t[40] !== f || t[41] !== w.length ? (ne = () => /* @__PURE__ */ X(Ae, { children: [/* @__PURE__ */ Y(ee, { children: /* @__PURE__ */ Y(H, { children: f("modalTitle") }) }), /* @__PURE__ */ X(z, {
|
|
7283
6132
|
className: "px-0 pb-0",
|
|
7284
6133
|
children: [
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
6134
|
+
/* @__PURE__ */ Y("div", {
|
|
6135
|
+
className: "px-4",
|
|
6136
|
+
children: /* @__PURE__ */ Y(fe, {
|
|
6137
|
+
value: S,
|
|
6138
|
+
onChange: C,
|
|
6139
|
+
className: "w-full",
|
|
6140
|
+
"aria-label": f("searchPlaceholder"),
|
|
6141
|
+
children: /* @__PURE__ */ X(M, { children: [
|
|
6142
|
+
/* @__PURE__ */ Y(M.Prefix, { children: /* @__PURE__ */ Y(De, { className: "size-4 text-muted" }) }),
|
|
6143
|
+
/* @__PURE__ */ Y(M.Input, {
|
|
6144
|
+
placeholder: r ?? f("searchPlaceholder"),
|
|
6145
|
+
autoComplete: "off"
|
|
6146
|
+
}),
|
|
6147
|
+
L ? /* @__PURE__ */ Y(M.Suffix, { children: /* @__PURE__ */ Y(te, { size: "sm" }) }) : null
|
|
6148
|
+
] })
|
|
6149
|
+
})
|
|
6150
|
+
}),
|
|
6151
|
+
/* @__PURE__ */ Y("div", {
|
|
6152
|
+
"aria-live": "polite",
|
|
6153
|
+
className: "sr-only",
|
|
6154
|
+
children: f("resultCount", { count: w.length })
|
|
6155
|
+
}),
|
|
6156
|
+
/* @__PURE__ */ X("div", {
|
|
6157
|
+
ref: O,
|
|
6158
|
+
className: "mt-2",
|
|
6159
|
+
style: {
|
|
6160
|
+
maxHeight: "60vh",
|
|
6161
|
+
overflowY: "auto"
|
|
6162
|
+
},
|
|
6163
|
+
"data-cy": "user-picker-list",
|
|
6164
|
+
children: [
|
|
6165
|
+
j && w.length === 0 ? /* @__PURE__ */ X("div", {
|
|
6166
|
+
className: "flex flex-col items-center gap-3 py-10",
|
|
6167
|
+
"data-cy": "user-picker-error",
|
|
6168
|
+
children: [/* @__PURE__ */ Y("p", {
|
|
6169
|
+
className: "text-sm text-muted",
|
|
6170
|
+
children: f("loadError")
|
|
6171
|
+
}), /* @__PURE__ */ Y(v, {
|
|
6172
|
+
variant: "secondary",
|
|
6173
|
+
size: "sm",
|
|
6174
|
+
isPending: R,
|
|
6175
|
+
onPress: () => B(),
|
|
6176
|
+
children: f("retry")
|
|
6177
|
+
})]
|
|
6178
|
+
}) : T.length === 0 && !L ? /* @__PURE__ */ Y("div", {
|
|
6179
|
+
className: "py-10 text-center text-sm text-muted",
|
|
6180
|
+
children: f("empty")
|
|
6181
|
+
}) : /* @__PURE__ */ Y(P, {
|
|
6182
|
+
"aria-label": f("usersListLabel"),
|
|
6183
|
+
selectionMode: "none",
|
|
6184
|
+
children: T.map((e) => /* @__PURE__ */ X(I, {
|
|
6185
|
+
id: e.letter,
|
|
6186
|
+
children: [/* @__PURE__ */ Y(A, {
|
|
6187
|
+
className: "sticky top-0 z-10 bg-surface-secondary px-2 py-1 text-xs font-semibold text-muted",
|
|
6188
|
+
children: e.letter
|
|
6189
|
+
}), e.users.map((e) => /* @__PURE__ */ Y(F, {
|
|
6190
|
+
id: String(e.id),
|
|
6191
|
+
textValue: e.username,
|
|
6192
|
+
onAction: () => E(e),
|
|
6193
|
+
"data-cy": `user-picker-item-${e.id}`,
|
|
6194
|
+
children: /* @__PURE__ */ Y(mi, {
|
|
6195
|
+
user: e,
|
|
6196
|
+
interactive: !1
|
|
6197
|
+
})
|
|
6198
|
+
}, e.id))]
|
|
6199
|
+
}, e.letter))
|
|
6200
|
+
}),
|
|
6201
|
+
j ? null : /* @__PURE__ */ Y("div", { ref: k }),
|
|
6202
|
+
j && w.length > 0 ? /* @__PURE__ */ X("div", {
|
|
6203
|
+
className: "flex items-center justify-center gap-3 py-3",
|
|
6204
|
+
"data-cy": "user-picker-load-more-error",
|
|
6205
|
+
children: [/* @__PURE__ */ Y("p", {
|
|
6206
|
+
className: "text-sm text-muted",
|
|
6207
|
+
children: f("loadError")
|
|
6208
|
+
}), /* @__PURE__ */ Y(v, {
|
|
6209
|
+
variant: "secondary",
|
|
6210
|
+
size: "sm",
|
|
6211
|
+
isPending: V,
|
|
6212
|
+
onPress: () => U(),
|
|
6213
|
+
children: f("retry")
|
|
6214
|
+
})]
|
|
6215
|
+
}) : null,
|
|
6216
|
+
V ? /* @__PURE__ */ Y("div", {
|
|
6217
|
+
className: "flex justify-center py-3",
|
|
6218
|
+
children: /* @__PURE__ */ Y(te, { size: "sm" })
|
|
6219
|
+
}) : null
|
|
6220
|
+
]
|
|
6221
|
+
})
|
|
7288
6222
|
]
|
|
7289
|
-
}), t[
|
|
7290
|
-
let
|
|
7291
|
-
t[
|
|
6223
|
+
})] }), t[27] = U, t[28] = T, t[29] = E, t[30] = j, t[31] = R, t[32] = V, t[33] = L, t[34] = O, t[35] = r, t[36] = B, t[37] = S, t[38] = k, t[39] = C, t[40] = f, t[41] = w.length, t[42] = ne) : ne = t[42];
|
|
6224
|
+
let re;
|
|
6225
|
+
t[43] !== D || t[44] !== h || t[45] !== J || t[46] !== ne ? (re = /* @__PURE__ */ Y(Oi, {
|
|
6226
|
+
isOpen: h,
|
|
6227
|
+
onOpenChange: D,
|
|
7292
6228
|
size: "md",
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
}) }), t[112] = Ne, t[113] = Fe, t[114] = Ze, t[115] = Qe) : Qe = t[115];
|
|
7300
|
-
let $e;
|
|
7301
|
-
t[116] !== xe || t[117] !== A || t[118] !== Qe ? ($e = /* @__PURE__ */ L(C, {
|
|
7302
|
-
isOpen: A,
|
|
7303
|
-
onOpenChange: xe,
|
|
7304
|
-
children: Qe
|
|
7305
|
-
}), t[116] = xe, t[117] = A, t[118] = Qe, t[119] = $e) : $e = t[119];
|
|
7306
|
-
let et;
|
|
7307
|
-
return t[120] !== Ae || t[121] !== Me || t[122] !== $e || t[123] !== f ? (et = /* @__PURE__ */ R("div", {
|
|
7308
|
-
...f,
|
|
6229
|
+
dialogProps: J,
|
|
6230
|
+
children: ne
|
|
6231
|
+
}), t[43] = D, t[44] = h, t[45] = J, t[46] = ne, t[47] = re) : re = t[47];
|
|
6232
|
+
let ie;
|
|
6233
|
+
return t[48] !== G || t[49] !== K || t[50] !== re || t[51] !== l ? (ie = /* @__PURE__ */ X("div", {
|
|
6234
|
+
...l,
|
|
7309
6235
|
children: [
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
6236
|
+
G,
|
|
6237
|
+
K,
|
|
6238
|
+
re
|
|
7313
6239
|
]
|
|
7314
|
-
}), t[
|
|
7315
|
-
}
|
|
7316
|
-
function Po(e) {
|
|
7317
|
-
return e.nextPage;
|
|
6240
|
+
}), t[48] = G, t[49] = K, t[50] = re, t[51] = l, t[52] = ie) : ie = t[52], ie;
|
|
7318
6241
|
}
|
|
7319
|
-
var
|
|
6242
|
+
var zi = {
|
|
7320
6243
|
search: {
|
|
7321
6244
|
label: "Ressourcen suchen",
|
|
7322
6245
|
placeholder: "Tippe um zu suchen"
|
|
@@ -7326,7 +6249,7 @@ var Fo = {
|
|
|
7326
6249
|
columns: { name: { header: "Name" } }
|
|
7327
6250
|
},
|
|
7328
6251
|
list: { label: "Zugewiesen an" }
|
|
7329
|
-
},
|
|
6252
|
+
}, Bi = {
|
|
7330
6253
|
search: {
|
|
7331
6254
|
label: "Search resources",
|
|
7332
6255
|
placeholder: "Type to search"
|
|
@@ -7336,138 +6259,143 @@ var Fo = {
|
|
|
7336
6259
|
columns: { name: { header: "Name" } }
|
|
7337
6260
|
},
|
|
7338
6261
|
list: { label: "Assigned to" }
|
|
7339
|
-
},
|
|
7340
|
-
let t = (0,
|
|
7341
|
-
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */
|
|
7342
|
-
className: "border-
|
|
6262
|
+
}, Vi = (e) => {
|
|
6263
|
+
let t = (0, Q.c)(2), { children: n } = e, r;
|
|
6264
|
+
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ Y("div", {
|
|
6265
|
+
className: "border border-border px-1 py-2 rounded-lg",
|
|
7343
6266
|
children: n
|
|
7344
6267
|
}), t[0] = n, t[1] = r), r;
|
|
7345
6268
|
};
|
|
7346
|
-
function
|
|
7347
|
-
let t = (0,
|
|
7348
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
7349
|
-
de:
|
|
7350
|
-
en:
|
|
7351
|
-
}, t[0] =
|
|
7352
|
-
let { t: f } =
|
|
7353
|
-
t[1] ===
|
|
6269
|
+
function Hi(e) {
|
|
6270
|
+
let t = (0, Q.c)(60), { selection: n, onSelectionChange: r, multiple: i, listClassName: a } = e, o = i === void 0 || i, s = a === void 0 ? "" : a, [l, u] = c(""), d;
|
|
6271
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
6272
|
+
de: zi,
|
|
6273
|
+
en: Bi
|
|
6274
|
+
}, t[0] = d) : d = t[0];
|
|
6275
|
+
let { t: f } = Mr(d), p;
|
|
6276
|
+
t[1] === l ? p = t[2] : (p = {
|
|
7354
6277
|
limit: 15,
|
|
7355
6278
|
page: 1,
|
|
7356
|
-
search:
|
|
7357
|
-
}, t[1] =
|
|
7358
|
-
let { data: m, isLoading: h } =
|
|
7359
|
-
t[3] === f ?
|
|
6279
|
+
search: l
|
|
6280
|
+
}, t[1] = l, t[2] = p);
|
|
6281
|
+
let { data: m, isLoading: h } = Ne(p), g;
|
|
6282
|
+
t[3] === f ? g = t[4] : (g = f("search.label"), t[3] = f, t[4] = g);
|
|
6283
|
+
let _;
|
|
6284
|
+
t[5] === g ? _ = t[6] : (_ = /* @__PURE__ */ Y(N, { children: g }), t[5] = g, t[6] = _);
|
|
6285
|
+
let v;
|
|
6286
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ Y(M.Prefix, { children: /* @__PURE__ */ Y(De, { className: "size-4 text-muted" }) }), t[7] = v) : v = t[7];
|
|
7360
6287
|
let b;
|
|
7361
|
-
t[
|
|
6288
|
+
t[8] === f ? b = t[9] : (b = f("search.placeholder"), t[8] = f, t[9] = b);
|
|
7362
6289
|
let x;
|
|
7363
|
-
t[
|
|
6290
|
+
t[10] === b ? x = t[11] : (x = /* @__PURE__ */ Y(M.Input, { placeholder: b }), t[10] = b, t[11] = x);
|
|
7364
6291
|
let S;
|
|
7365
|
-
t[
|
|
6292
|
+
t[12] === h ? S = t[13] : (S = h ? /* @__PURE__ */ Y(M.Suffix, { children: /* @__PURE__ */ Y(te, { size: "sm" }) }) : null, t[12] = h, t[13] = S);
|
|
7366
6293
|
let C;
|
|
7367
|
-
t[
|
|
6294
|
+
t[14] !== x || t[15] !== S ? (C = /* @__PURE__ */ X(M, { children: [
|
|
6295
|
+
v,
|
|
6296
|
+
x,
|
|
6297
|
+
S
|
|
6298
|
+
] }), t[14] = x, t[15] = S, t[16] = C) : C = t[16];
|
|
7368
6299
|
let w;
|
|
7369
|
-
t[
|
|
6300
|
+
t[17] !== l || t[18] !== C || t[19] !== _ ? (w = /* @__PURE__ */ X(fe, {
|
|
6301
|
+
value: l,
|
|
6302
|
+
onChange: u,
|
|
6303
|
+
className: "w-full",
|
|
6304
|
+
children: [_, C]
|
|
6305
|
+
}), t[17] = l, t[18] = C, t[19] = _, t[20] = w) : w = t[20];
|
|
7370
6306
|
let T;
|
|
7371
|
-
t[
|
|
7372
|
-
x,
|
|
7373
|
-
C,
|
|
7374
|
-
w
|
|
7375
|
-
] }), t[14] = C, t[15] = w, t[16] = T) : T = t[16];
|
|
6307
|
+
t[21] === f ? T = t[22] : (T = f("table.ariaLabel"), t[21] = f, t[22] = T);
|
|
7376
6308
|
let E;
|
|
7377
|
-
t[
|
|
7378
|
-
value: c,
|
|
7379
|
-
onChange: l,
|
|
7380
|
-
className: "w-full",
|
|
7381
|
-
children: [b, T]
|
|
7382
|
-
}), t[17] = c, t[18] = T, t[19] = b, t[20] = E) : E = t[20];
|
|
7383
|
-
let D;
|
|
7384
|
-
t[21] === f ? D = t[22] : (D = f("table.ariaLabel"), t[21] = f, t[22] = D);
|
|
7385
|
-
let O;
|
|
7386
|
-
t[23] === Symbol.for("react.memo_cache_sentinel") ? (O = {
|
|
6309
|
+
t[23] === Symbol.for("react.memo_cache_sentinel") ? (E = {
|
|
7387
6310
|
maxHeight: 387,
|
|
7388
6311
|
overflowY: "auto"
|
|
7389
|
-
}, t[23] =
|
|
7390
|
-
let
|
|
7391
|
-
t[24] === n ?
|
|
7392
|
-
let
|
|
7393
|
-
t[26] !==
|
|
7394
|
-
|
|
7395
|
-
|
|
6312
|
+
}, t[23] = E) : E = t[23];
|
|
6313
|
+
let D = o ? "multiple" : "single", O;
|
|
6314
|
+
t[24] === n ? O = t[25] : (O = new Set(n.map(String)), t[24] = n, t[25] = O);
|
|
6315
|
+
let k;
|
|
6316
|
+
t[26] !== o || t[27] !== r || t[28] !== m?.data || t[29] !== n ? (k = (e) => {
|
|
6317
|
+
let t = (m?.data ?? []).map(Ki);
|
|
6318
|
+
if (!o) {
|
|
6319
|
+
r(e === "all" ? t : Array.from(e).map(Gi));
|
|
7396
6320
|
return;
|
|
7397
6321
|
}
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
6322
|
+
let i = new Set(t), a = n.filter((e) => !i.has(e)), s = e === "all" ? t : Array.from(e).map(Wi);
|
|
6323
|
+
r([.../* @__PURE__ */ new Set([...a, ...s])]);
|
|
6324
|
+
}, t[26] = o, t[27] = r, t[28] = m?.data, t[29] = n, t[30] = k) : k = t[30];
|
|
6325
|
+
let A;
|
|
6326
|
+
t[31] !== o || t[32] !== f ? (A = o ? /* @__PURE__ */ Y(y, {
|
|
7402
6327
|
"aria-label": f("table.ariaLabel"),
|
|
7403
6328
|
slot: "selection",
|
|
7404
|
-
children: /* @__PURE__ */
|
|
7405
|
-
}) : null, t[
|
|
7406
|
-
let
|
|
7407
|
-
t[
|
|
6329
|
+
children: /* @__PURE__ */ Y(y.Content, { children: /* @__PURE__ */ Y(y.Control, { children: /* @__PURE__ */ Y(y.Indicator, {}) }) })
|
|
6330
|
+
}) : null, t[31] = o, t[32] = f, t[33] = A) : A = t[33];
|
|
6331
|
+
let j;
|
|
6332
|
+
t[34] === A ? j = t[35] : (j = /* @__PURE__ */ Y(ie, {
|
|
7408
6333
|
className: "pr-0 w-0",
|
|
6334
|
+
children: A
|
|
6335
|
+
}), t[34] = A, t[35] = j);
|
|
6336
|
+
let P;
|
|
6337
|
+
t[36] === f ? P = t[37] : (P = f("table.columns.name.header"), t[36] = f, t[37] = P);
|
|
6338
|
+
let F;
|
|
6339
|
+
t[38] === P ? F = t[39] : (F = /* @__PURE__ */ Y(ie, {
|
|
6340
|
+
className: "w-full",
|
|
6341
|
+
isRowHeader: !0,
|
|
7409
6342
|
children: P
|
|
7410
|
-
}), t[
|
|
6343
|
+
}), t[38] = P, t[39] = F);
|
|
7411
6344
|
let I;
|
|
7412
|
-
t[
|
|
6345
|
+
t[40] !== j || t[41] !== F ? (I = /* @__PURE__ */ X(oe, { children: [j, F] }), t[40] = j, t[41] = F, t[42] = I) : I = t[42];
|
|
6346
|
+
let L;
|
|
6347
|
+
t[43] === m?.data ? L = t[44] : (L = m?.data ?? [], t[43] = m?.data, t[44] = L);
|
|
6348
|
+
let R;
|
|
6349
|
+
t[45] === L ? R = t[46] : (R = /* @__PURE__ */ Y(ne, {
|
|
6350
|
+
items: L,
|
|
6351
|
+
children: Ui
|
|
6352
|
+
}), t[45] = L, t[46] = R);
|
|
7413
6353
|
let z;
|
|
7414
|
-
t[
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
6354
|
+
t[47] !== D || t[48] !== O || t[49] !== k || t[50] !== I || t[51] !== R ? (z = /* @__PURE__ */ Y(le, { children: /* @__PURE__ */ X(ae, {
|
|
6355
|
+
selectionMode: D,
|
|
6356
|
+
selectedKeys: O,
|
|
6357
|
+
onSelectionChange: k,
|
|
6358
|
+
children: [I, R]
|
|
6359
|
+
}) }), t[47] = D, t[48] = O, t[49] = k, t[50] = I, t[51] = R, t[52] = z) : z = t[52];
|
|
7419
6360
|
let B;
|
|
7420
|
-
t[
|
|
7421
|
-
|
|
7422
|
-
t[41] === m?.data ? V = t[42] : (V = m?.data ?? [], t[41] = m?.data, t[42] = V);
|
|
7423
|
-
let H;
|
|
7424
|
-
t[43] === V ? H = t[44] : (H = /* @__PURE__ */ L(ne, {
|
|
7425
|
-
items: V,
|
|
7426
|
-
children: zo
|
|
7427
|
-
}), t[43] = V, t[44] = H);
|
|
7428
|
-
let U;
|
|
7429
|
-
t[45] !== ee || t[46] !== k || t[47] !== A || t[48] !== B || t[49] !== H ? (U = /* @__PURE__ */ L(ie, { children: /* @__PURE__ */ R(M, {
|
|
7430
|
-
selectionMode: ee,
|
|
7431
|
-
selectedKeys: k,
|
|
7432
|
-
onSelectionChange: A,
|
|
7433
|
-
children: [B, H]
|
|
7434
|
-
}) }), t[45] = ee, t[46] = k, t[47] = A, t[48] = B, t[49] = H, t[50] = U) : U = t[50];
|
|
7435
|
-
let W;
|
|
7436
|
-
t[51] !== s || t[52] !== D || t[53] !== U ? (W = /* @__PURE__ */ L(re, {
|
|
7437
|
-
"aria-label": D,
|
|
6361
|
+
t[53] !== s || t[54] !== T || t[55] !== z ? (B = /* @__PURE__ */ Y(se, {
|
|
6362
|
+
"aria-label": T,
|
|
7438
6363
|
className: s,
|
|
7439
|
-
style:
|
|
7440
|
-
children:
|
|
7441
|
-
}), t[
|
|
7442
|
-
let
|
|
7443
|
-
return t[
|
|
6364
|
+
style: E,
|
|
6365
|
+
children: z
|
|
6366
|
+
}), t[53] = s, t[54] = T, t[55] = z, t[56] = B) : B = t[56];
|
|
6367
|
+
let V;
|
|
6368
|
+
return t[57] !== w || t[58] !== B ? (V = /* @__PURE__ */ X("div", {
|
|
7444
6369
|
className: "flex flex-col gap-2",
|
|
7445
|
-
children: [
|
|
7446
|
-
}), t[
|
|
6370
|
+
children: [w, B]
|
|
6371
|
+
}), t[57] = w, t[58] = B, t[59] = V) : V = t[59], V;
|
|
7447
6372
|
}
|
|
7448
|
-
function
|
|
7449
|
-
return /* @__PURE__ */
|
|
6373
|
+
function Ui(e) {
|
|
6374
|
+
return /* @__PURE__ */ X(ce, {
|
|
7450
6375
|
id: String(e.id),
|
|
7451
|
-
children: [/* @__PURE__ */
|
|
6376
|
+
children: [/* @__PURE__ */ Y(re, {
|
|
7452
6377
|
className: "pr-0",
|
|
7453
|
-
children: /* @__PURE__ */
|
|
6378
|
+
children: /* @__PURE__ */ Y(y, {
|
|
7454
6379
|
"aria-label": e.name,
|
|
7455
6380
|
slot: "selection",
|
|
7456
6381
|
variant: "secondary",
|
|
7457
|
-
children: /* @__PURE__ */
|
|
6382
|
+
children: /* @__PURE__ */ Y(y.Content, { children: /* @__PURE__ */ Y(y.Control, { children: /* @__PURE__ */ Y(y.Indicator, {}) }) })
|
|
7458
6383
|
})
|
|
7459
|
-
}), /* @__PURE__ */
|
|
6384
|
+
}), /* @__PURE__ */ Y(re, { children: e.name })]
|
|
7460
6385
|
}, e.id);
|
|
7461
6386
|
}
|
|
7462
|
-
function
|
|
6387
|
+
function Wi(e) {
|
|
6388
|
+
return Number(e);
|
|
6389
|
+
}
|
|
6390
|
+
function Gi(e) {
|
|
7463
6391
|
return Number(e);
|
|
7464
6392
|
}
|
|
7465
|
-
function
|
|
6393
|
+
function Ki(e) {
|
|
7466
6394
|
return e.id;
|
|
7467
6395
|
}
|
|
7468
6396
|
//#endregion
|
|
7469
6397
|
//#region src/lib/components/Trans/index.tsx
|
|
7470
|
-
function
|
|
6398
|
+
function qi(e) {
|
|
7471
6399
|
let t = { children: [] }, n = [], r = /<\/?([a-zA-Z0-9_]+)\s*\/?\s*>/g, i = 0, a = () => n.length === 0 ? t.children : n[n.length - 1].children, o;
|
|
7472
6400
|
for (; (o = r.exec(e)) !== null;) {
|
|
7473
6401
|
let s = o[0], c = o[1], l = s.startsWith("</"), u = /\/>\s*$/.test(s) || !l && s.endsWith("/>");
|
|
@@ -7525,33 +6453,675 @@ function Ho(e) {
|
|
|
7525
6453
|
}
|
|
7526
6454
|
return t.children;
|
|
7527
6455
|
}
|
|
7528
|
-
function
|
|
6456
|
+
function Ji(t, n, r = "k") {
|
|
7529
6457
|
let i = [];
|
|
7530
|
-
return
|
|
6458
|
+
return t.forEach((t, a) => {
|
|
7531
6459
|
let o = `${r}-${a}`;
|
|
7532
|
-
if (
|
|
7533
|
-
i.push(
|
|
6460
|
+
if (t.type === "text") {
|
|
6461
|
+
i.push(t.text);
|
|
7534
6462
|
return;
|
|
7535
6463
|
}
|
|
7536
|
-
let s = n?.[
|
|
7537
|
-
if (
|
|
7538
|
-
if (
|
|
6464
|
+
let s = n?.[t.name];
|
|
6465
|
+
if (e.isValidElement(s)) {
|
|
6466
|
+
if (t.selfClosing) i.push(e.cloneElement(s, { key: o }));
|
|
7539
6467
|
else {
|
|
7540
|
-
let r =
|
|
7541
|
-
i.push(
|
|
6468
|
+
let r = Ji(t.children, n, o);
|
|
6469
|
+
i.push(e.cloneElement(s, { key: o }, r));
|
|
7542
6470
|
}
|
|
7543
6471
|
return;
|
|
7544
6472
|
}
|
|
7545
|
-
|
|
6473
|
+
t.selfClosing || i.push(...Ji(t.children, n, o));
|
|
7546
6474
|
}), i;
|
|
7547
6475
|
}
|
|
7548
|
-
function
|
|
7549
|
-
let t = (0,
|
|
6476
|
+
function Yi(e) {
|
|
6477
|
+
let t = (0, Q.c)(9), { i18nKey: n, values: r, components: i, t: a } = e, o;
|
|
7550
6478
|
t[0] !== n || t[1] !== a || t[2] !== r ? (o = a(n, r), t[0] = n, t[1] = a, t[2] = r, t[3] = o) : o = t[3];
|
|
7551
6479
|
let s = o, c;
|
|
7552
|
-
t[4] === s ? c = t[5] : (c =
|
|
6480
|
+
t[4] === s ? c = t[5] : (c = qi(s), t[4] = s, t[5] = c);
|
|
7553
6481
|
let l = c, u;
|
|
7554
|
-
return t[6] !== i || t[7] !== l ? (u =
|
|
6482
|
+
return t[6] !== i || t[7] !== l ? (u = Ji(l, i), t[6] = i, t[7] = l, t[8] = u) : u = t[8], u;
|
|
7555
6483
|
}
|
|
7556
6484
|
//#endregion
|
|
7557
|
-
|
|
6485
|
+
//#region src/lib/components/AlertStatusIcon.tsx
|
|
6486
|
+
var Xi = {
|
|
6487
|
+
default: Ce,
|
|
6488
|
+
accent: Ce,
|
|
6489
|
+
success: ye,
|
|
6490
|
+
warning: _e,
|
|
6491
|
+
danger: ge
|
|
6492
|
+
};
|
|
6493
|
+
function Zi(e) {
|
|
6494
|
+
let t = (0, Q.c)(2), { status: n } = e, r = Xi[n], i;
|
|
6495
|
+
return t[0] === r ? i = t[1] : (i = /* @__PURE__ */ Y(p, { children: /* @__PURE__ */ Y(r, {}) }), t[0] = r, t[1] = i), i;
|
|
6496
|
+
}
|
|
6497
|
+
//#endregion
|
|
6498
|
+
//#region src/lib/components/EmptyState.tsx
|
|
6499
|
+
function Qi(e) {
|
|
6500
|
+
let t = (0, Q.c)(7), { message: n } = e, r;
|
|
6501
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (r = {
|
|
6502
|
+
en: { message: "No entries found" },
|
|
6503
|
+
de: { message: "Keine Einträge gefunden" }
|
|
6504
|
+
}, t[0] = r) : r = t[0];
|
|
6505
|
+
let { t: i } = Mr(r), a;
|
|
6506
|
+
t[1] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Y(we, {
|
|
6507
|
+
size: 36,
|
|
6508
|
+
className: "text-default-300"
|
|
6509
|
+
}), t[1] = a) : a = t[1];
|
|
6510
|
+
let o;
|
|
6511
|
+
t[2] !== n || t[3] !== i ? (o = n ?? i("message"), t[2] = n, t[3] = i, t[4] = o) : o = t[4];
|
|
6512
|
+
let s;
|
|
6513
|
+
return t[5] === o ? s = t[6] : (s = /* @__PURE__ */ X("div", {
|
|
6514
|
+
className: "flex flex-col justify-center items-center py-6 px-4 gap-2",
|
|
6515
|
+
children: [a, /* @__PURE__ */ Y("p", {
|
|
6516
|
+
className: "text-sm text-default-500",
|
|
6517
|
+
children: o
|
|
6518
|
+
})]
|
|
6519
|
+
}), t[5] = o, t[6] = s), s;
|
|
6520
|
+
}
|
|
6521
|
+
//#endregion
|
|
6522
|
+
//#region src/lib/components/LabeledSwitch.tsx
|
|
6523
|
+
function $i(e) {
|
|
6524
|
+
let t = (0, Q.c)(11), n, r, i;
|
|
6525
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({children: n, contentClassName: r, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
|
|
6526
|
+
let a;
|
|
6527
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Y(J.Control, { children: /* @__PURE__ */ Y(J.Thumb, {}) }), t[4] = a) : a = t[4];
|
|
6528
|
+
let o;
|
|
6529
|
+
t[5] !== n || t[6] !== r ? (o = /* @__PURE__ */ X(J.Content, {
|
|
6530
|
+
className: r,
|
|
6531
|
+
children: [a, n]
|
|
6532
|
+
}), t[5] = n, t[6] = r, t[7] = o) : o = t[7];
|
|
6533
|
+
let s;
|
|
6534
|
+
return t[8] !== i || t[9] !== o ? (s = /* @__PURE__ */ Y(J, {
|
|
6535
|
+
...i,
|
|
6536
|
+
children: o
|
|
6537
|
+
}), t[8] = i, t[9] = o, t[10] = s) : s = t[10], s;
|
|
6538
|
+
}
|
|
6539
|
+
var ea = { loading: "Loading" }, ta = { loading: "Wird geladen" }, na = (e) => {
|
|
6540
|
+
let t = (0, Q.c)(7), { label: n } = e, r;
|
|
6541
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (r = {
|
|
6542
|
+
en: ea,
|
|
6543
|
+
de: ta
|
|
6544
|
+
}, t[0] = r) : r = t[0];
|
|
6545
|
+
let { t: i } = Mr(r), a;
|
|
6546
|
+
t[1] !== n || t[2] !== i ? (a = n ?? i("loading"), t[1] = n, t[2] = i, t[3] = a) : a = t[3];
|
|
6547
|
+
let o;
|
|
6548
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ X(K, { children: [/* @__PURE__ */ Y(q, {}), /* @__PURE__ */ Y(G, {})] }), t[4] = o) : o = t[4];
|
|
6549
|
+
let s;
|
|
6550
|
+
return t[5] === a ? s = t[6] : (s = /* @__PURE__ */ Y("div", {
|
|
6551
|
+
className: "flex justify-center items-center p-4",
|
|
6552
|
+
children: /* @__PURE__ */ Y(W, {
|
|
6553
|
+
isIndeterminate: !0,
|
|
6554
|
+
"aria-label": a,
|
|
6555
|
+
children: o
|
|
6556
|
+
})
|
|
6557
|
+
}), t[5] = a, t[6] = s), s;
|
|
6558
|
+
}, ra = "md:max-w-2xl bg-overlay", ia = `${ra} md:mx-auto`;
|
|
6559
|
+
function aa(e) {
|
|
6560
|
+
let t = (0, Q.c)(12), { isOpen: n, onOpenChange: r, children: i, backdropProps: a, contentProps: o, dialogProps: s } = e, c = o?.placement === "left" || o?.placement === "right" ? ra : ia, l = s?.className ? `${c} ${s.className}` : c, u;
|
|
6561
|
+
t[0] !== i || t[1] !== s || t[2] !== l ? (u = /* @__PURE__ */ Y(C, {
|
|
6562
|
+
...s,
|
|
6563
|
+
className: l,
|
|
6564
|
+
children: i
|
|
6565
|
+
}), t[0] = i, t[1] = s, t[2] = l, t[3] = u) : u = t[3];
|
|
6566
|
+
let d;
|
|
6567
|
+
t[4] !== o || t[5] !== u ? (d = /* @__PURE__ */ Y(S, {
|
|
6568
|
+
...o,
|
|
6569
|
+
children: u
|
|
6570
|
+
}), t[4] = o, t[5] = u, t[6] = d) : d = t[6];
|
|
6571
|
+
let f;
|
|
6572
|
+
return t[7] !== a || t[8] !== n || t[9] !== r || t[10] !== d ? (f = /* @__PURE__ */ Y(x, {
|
|
6573
|
+
...a,
|
|
6574
|
+
isOpen: n,
|
|
6575
|
+
onOpenChange: r,
|
|
6576
|
+
children: d
|
|
6577
|
+
}), t[7] = a, t[8] = n, t[9] = r, t[10] = d, t[11] = f) : f = t[11], f;
|
|
6578
|
+
}
|
|
6579
|
+
//#endregion
|
|
6580
|
+
//#region src/lib/components/StatusAlert.tsx
|
|
6581
|
+
function oa(e) {
|
|
6582
|
+
let t = (0, Q.c)(14), { status: n, title: r, children: i, "data-cy": a } = e, o;
|
|
6583
|
+
t[0] === n ? o = t[1] : (o = /* @__PURE__ */ Y(Zi, { status: n }), t[0] = n, t[1] = o);
|
|
6584
|
+
let s;
|
|
6585
|
+
t[2] === r ? s = t[3] : (s = r !== void 0 && /* @__PURE__ */ Y(m, { children: r }), t[2] = r, t[3] = s);
|
|
6586
|
+
let c;
|
|
6587
|
+
t[4] !== i || t[5] !== a ? (c = i !== void 0 && /* @__PURE__ */ Y(d, {
|
|
6588
|
+
"data-cy": a,
|
|
6589
|
+
children: i
|
|
6590
|
+
}), t[4] = i, t[5] = a, t[6] = c) : c = t[6];
|
|
6591
|
+
let f;
|
|
6592
|
+
t[7] !== s || t[8] !== c ? (f = /* @__PURE__ */ X(u, { children: [s, c] }), t[7] = s, t[8] = c, t[9] = f) : f = t[9];
|
|
6593
|
+
let p;
|
|
6594
|
+
return t[10] !== n || t[11] !== o || t[12] !== f ? (p = /* @__PURE__ */ X(l, {
|
|
6595
|
+
status: n,
|
|
6596
|
+
children: [o, f]
|
|
6597
|
+
}), t[10] = n, t[11] = o, t[12] = f, t[13] = p) : p = t[13], p;
|
|
6598
|
+
}
|
|
6599
|
+
//#endregion
|
|
6600
|
+
//#region src/lib/components/button/index.tsx
|
|
6601
|
+
function sa(e) {
|
|
6602
|
+
let t = (0, Q.c)(15), n, r, i, a;
|
|
6603
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4]) : ({children: n, isPending: i, isIconOnly: r, ...a} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a);
|
|
6604
|
+
let o = i ? r ? "opacity-0" : "pr-5" : "", s;
|
|
6605
|
+
t[5] !== n || t[6] !== r || t[7] !== i || t[8] !== o ? (s = (e) => /* @__PURE__ */ X(Ae, { children: [/* @__PURE__ */ Y("span", {
|
|
6606
|
+
className: `inline-flex items-center gap-2 ${o}`,
|
|
6607
|
+
children: typeof n == "function" ? n(e) : n
|
|
6608
|
+
}), i && /* @__PURE__ */ Y("span", {
|
|
6609
|
+
className: `absolute flex items-center ${r ? "inset-0 justify-center" : "right-3 inset-y-0"}`,
|
|
6610
|
+
"aria-hidden": "true",
|
|
6611
|
+
children: /* @__PURE__ */ Y(te, {
|
|
6612
|
+
color: "current",
|
|
6613
|
+
size: "sm"
|
|
6614
|
+
})
|
|
6615
|
+
})] }), t[5] = n, t[6] = r, t[7] = i, t[8] = o, t[9] = s) : s = t[9];
|
|
6616
|
+
let c;
|
|
6617
|
+
return t[10] !== r || t[11] !== i || t[12] !== a || t[13] !== s ? (c = /* @__PURE__ */ Y(v, {
|
|
6618
|
+
...a,
|
|
6619
|
+
isPending: i,
|
|
6620
|
+
isIconOnly: r,
|
|
6621
|
+
children: s
|
|
6622
|
+
}), t[10] = r, t[11] = i, t[12] = a, t[13] = s, t[14] = c) : c = t[14], c;
|
|
6623
|
+
}
|
|
6624
|
+
var ca = {
|
|
6625
|
+
close: "Close",
|
|
6626
|
+
cancel: "Cancel"
|
|
6627
|
+
}, la = {
|
|
6628
|
+
close: "Schließen",
|
|
6629
|
+
cancel: "Abbrechen"
|
|
6630
|
+
}, ua = {
|
|
6631
|
+
default: "default",
|
|
6632
|
+
info: "accent",
|
|
6633
|
+
success: "success",
|
|
6634
|
+
warning: "warning",
|
|
6635
|
+
error: "danger"
|
|
6636
|
+
}, da = (e) => {
|
|
6637
|
+
e.target === e.currentTarget && e.preventDefault();
|
|
6638
|
+
};
|
|
6639
|
+
function fa(e) {
|
|
6640
|
+
let t = (0, Q.c)(38), { isOpen: n, onClose: r, status: i, title: a, children: o, action: s, closeLabel: c, closeDataCy: l, "data-cy": u } = e, d;
|
|
6641
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
6642
|
+
en: ca,
|
|
6643
|
+
de: la
|
|
6644
|
+
}, t[0] = d) : d = t[0];
|
|
6645
|
+
let { t: p } = Mr(d), m = i === "error", h;
|
|
6646
|
+
t[1] !== s?.isPending || t[2] !== r ? (h = (e) => !e && !s?.isPending && r(), t[1] = s?.isPending, t[2] = r, t[3] = h) : h = t[3];
|
|
6647
|
+
let g = ua[i], _;
|
|
6648
|
+
t[4] === g ? _ = t[5] : (_ = /* @__PURE__ */ Y(f.Icon, { status: g }), t[4] = g, t[5] = _);
|
|
6649
|
+
let v;
|
|
6650
|
+
t[6] === a ? v = t[7] : (v = /* @__PURE__ */ Y(f.Heading, { children: a }), t[6] = a, t[7] = v);
|
|
6651
|
+
let y;
|
|
6652
|
+
t[8] !== _ || t[9] !== v ? (y = /* @__PURE__ */ X(f.Header, { children: [_, v] }), t[8] = _, t[9] = v, t[10] = y) : y = t[10];
|
|
6653
|
+
let b;
|
|
6654
|
+
t[11] === o ? b = t[12] : (b = o !== void 0 && /* @__PURE__ */ Y(f.Body, { children: typeof o == "string" ? /* @__PURE__ */ Y("p", {
|
|
6655
|
+
className: "break-words",
|
|
6656
|
+
children: o
|
|
6657
|
+
}) : o }), t[11] = o, t[12] = b);
|
|
6658
|
+
let x = s ? "tertiary" : "primary", S = s?.isPending, C = l ?? (u ? `${u}-close` : void 0), w;
|
|
6659
|
+
t[13] !== s || t[14] !== c || t[15] !== p ? (w = c ?? p(s ? "cancel" : "close"), t[13] = s, t[14] = c, t[15] = p, t[16] = w) : w = t[16];
|
|
6660
|
+
let T;
|
|
6661
|
+
t[17] !== r || t[18] !== w || t[19] !== x || t[20] !== S || t[21] !== C ? (T = /* @__PURE__ */ Y(sa, {
|
|
6662
|
+
variant: x,
|
|
6663
|
+
onPress: r,
|
|
6664
|
+
isDisabled: S,
|
|
6665
|
+
"data-cy": C,
|
|
6666
|
+
children: w
|
|
6667
|
+
}), t[17] = r, t[18] = w, t[19] = x, t[20] = S, t[21] = C, t[22] = T) : T = t[22];
|
|
6668
|
+
let E;
|
|
6669
|
+
t[23] !== s || t[24] !== m ? (E = s && /* @__PURE__ */ Y(sa, {
|
|
6670
|
+
variant: m ? "danger" : "primary",
|
|
6671
|
+
onPress: () => void s.onPress(),
|
|
6672
|
+
isPending: s.isPending,
|
|
6673
|
+
isDisabled: s.isDisabled,
|
|
6674
|
+
"data-cy": s["data-cy"],
|
|
6675
|
+
children: s.label
|
|
6676
|
+
}), t[23] = s, t[24] = m, t[25] = E) : E = t[25];
|
|
6677
|
+
let D;
|
|
6678
|
+
t[26] !== T || t[27] !== E ? (D = /* @__PURE__ */ X(f.Footer, { children: [T, E] }), t[26] = T, t[27] = E, t[28] = D) : D = t[28];
|
|
6679
|
+
let O;
|
|
6680
|
+
t[29] !== u || t[30] !== D || t[31] !== y || t[32] !== b ? (O = /* @__PURE__ */ Y(f.Container, { children: /* @__PURE__ */ X(f.Dialog, {
|
|
6681
|
+
className: "sm:max-w-[440px]",
|
|
6682
|
+
"data-cy": u,
|
|
6683
|
+
children: [
|
|
6684
|
+
y,
|
|
6685
|
+
b,
|
|
6686
|
+
D
|
|
6687
|
+
]
|
|
6688
|
+
}) }), t[29] = u, t[30] = D, t[31] = y, t[32] = b, t[33] = O) : O = t[33];
|
|
6689
|
+
let k;
|
|
6690
|
+
return t[34] !== n || t[35] !== h || t[36] !== O ? (k = /* @__PURE__ */ Y(f.Backdrop, {
|
|
6691
|
+
isOpen: n,
|
|
6692
|
+
onOpenChange: h,
|
|
6693
|
+
isDismissable: !1,
|
|
6694
|
+
isKeyboardDismissDisabled: !1,
|
|
6695
|
+
onMouseDown: da,
|
|
6696
|
+
children: O
|
|
6697
|
+
}), t[34] = n, t[35] = h, t[36] = O, t[37] = k) : k = t[37], k;
|
|
6698
|
+
}
|
|
6699
|
+
var pa = {
|
|
6700
|
+
title: "Confirm Deletion",
|
|
6701
|
+
message: "Are you sure you want to delete <bold>{{itemName}}</bold>?<alert>This action cannot be undone.</alert>",
|
|
6702
|
+
cancelButton: "Cancel",
|
|
6703
|
+
deleteButton: "Delete"
|
|
6704
|
+
}, ma = {
|
|
6705
|
+
title: "Löschen bestätigen",
|
|
6706
|
+
message: "Sind Sie sicher, dass Sie <bold>{{itemName}}</bold> löschen möchten?<alert>Diese Aktion kann nicht rückgängig gemacht werden.</alert>",
|
|
6707
|
+
cancelButton: "Abbrechen",
|
|
6708
|
+
deleteButton: "Löschen"
|
|
6709
|
+
};
|
|
6710
|
+
//#endregion
|
|
6711
|
+
//#region src/lib/components/delete-confirmation-modal/index.tsx
|
|
6712
|
+
function ha(e) {
|
|
6713
|
+
let t = (0, Q.c)(25), { isOpen: n, onClose: r, onConfirm: i, itemName: a, isDeleting: o, "data-cy": s } = e, c;
|
|
6714
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
6715
|
+
en: pa,
|
|
6716
|
+
de: ma
|
|
6717
|
+
}, t[0] = c) : c = t[0];
|
|
6718
|
+
let { t: l } = Mr(c), u;
|
|
6719
|
+
t[1] === l ? u = t[2] : (u = l("title"), t[1] = l, t[2] = u);
|
|
6720
|
+
let d;
|
|
6721
|
+
t[3] === l ? d = t[4] : (d = l("cancelButton"), t[3] = l, t[4] = d);
|
|
6722
|
+
let f;
|
|
6723
|
+
t[5] === l ? f = t[6] : (f = l("deleteButton"), t[5] = l, t[6] = f);
|
|
6724
|
+
let p;
|
|
6725
|
+
t[7] !== o || t[8] !== i || t[9] !== f ? (p = {
|
|
6726
|
+
label: f,
|
|
6727
|
+
onPress: i,
|
|
6728
|
+
isPending: o,
|
|
6729
|
+
"data-cy": "delete-button"
|
|
6730
|
+
}, t[7] = o, t[8] = i, t[9] = f, t[10] = p) : p = t[10];
|
|
6731
|
+
let m;
|
|
6732
|
+
t[11] === a ? m = t[12] : (m = { itemName: a }, t[11] = a, t[12] = m);
|
|
6733
|
+
let h;
|
|
6734
|
+
t[13] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
6735
|
+
bold: /* @__PURE__ */ Y("strong", {}),
|
|
6736
|
+
alert: /* @__PURE__ */ Y("span", { className: "block mt-2 text-danger" })
|
|
6737
|
+
}, t[13] = h) : h = t[13];
|
|
6738
|
+
let g;
|
|
6739
|
+
t[14] !== l || t[15] !== m ? (g = /* @__PURE__ */ Y("p", { children: /* @__PURE__ */ Y(Yi, {
|
|
6740
|
+
t: l,
|
|
6741
|
+
count: 1,
|
|
6742
|
+
i18nKey: "message",
|
|
6743
|
+
values: m,
|
|
6744
|
+
components: h
|
|
6745
|
+
}) }), t[14] = l, t[15] = m, t[16] = g) : g = t[16];
|
|
6746
|
+
let _;
|
|
6747
|
+
return t[17] !== s || t[18] !== n || t[19] !== r || t[20] !== u || t[21] !== d || t[22] !== p || t[23] !== g ? (_ = /* @__PURE__ */ Y(fa, {
|
|
6748
|
+
isOpen: n,
|
|
6749
|
+
onClose: r,
|
|
6750
|
+
status: "error",
|
|
6751
|
+
title: u,
|
|
6752
|
+
closeLabel: d,
|
|
6753
|
+
closeDataCy: "cancel-button",
|
|
6754
|
+
action: p,
|
|
6755
|
+
"data-cy": s,
|
|
6756
|
+
children: g
|
|
6757
|
+
}), t[17] = s, t[18] = n, t[19] = r, t[20] = u, t[21] = d, t[22] = p, t[23] = g, t[24] = _) : _ = t[24], _;
|
|
6758
|
+
}
|
|
6759
|
+
//#endregion
|
|
6760
|
+
//#region src/lib/components/page-header/actions.tsx
|
|
6761
|
+
var ga = 6;
|
|
6762
|
+
function _a(e) {
|
|
6763
|
+
return {
|
|
6764
|
+
variant: e.variant === "primary" ? "primary" : "outline",
|
|
6765
|
+
size: "sm",
|
|
6766
|
+
isDisabled: e.isDisabled,
|
|
6767
|
+
isPending: e.isPending,
|
|
6768
|
+
isIconOnly: e.isIconOnly,
|
|
6769
|
+
"aria-label": e.label,
|
|
6770
|
+
"data-cy": e.dataCy,
|
|
6771
|
+
children: e.isIconOnly ? e.icon : /* @__PURE__ */ X(Ae, { children: [e.icon, e.label] })
|
|
6772
|
+
};
|
|
6773
|
+
}
|
|
6774
|
+
function va(e) {
|
|
6775
|
+
let t = _a(e);
|
|
6776
|
+
return "renderTrigger" in e && e.renderTrigger ? /* @__PURE__ */ Y("span", { children: e.renderTrigger(t) }, e.key) : /* @__PURE__ */ Y(sa, {
|
|
6777
|
+
...t,
|
|
6778
|
+
onPress: e.onPress
|
|
6779
|
+
}, e.key);
|
|
6780
|
+
}
|
|
6781
|
+
function ya(e) {
|
|
6782
|
+
return /* @__PURE__ */ X(T, {
|
|
6783
|
+
id: e.key,
|
|
6784
|
+
onPress: e.onPress,
|
|
6785
|
+
isDisabled: e.isDisabled || e.isPending,
|
|
6786
|
+
"data-cy": e.dataCy,
|
|
6787
|
+
className: e.variant === "destructive" ? "text-danger" : void 0,
|
|
6788
|
+
children: [e.icon && /* @__PURE__ */ Y("span", {
|
|
6789
|
+
className: "inline-flex mr-2",
|
|
6790
|
+
children: e.icon
|
|
6791
|
+
}), e.label]
|
|
6792
|
+
}, e.key);
|
|
6793
|
+
}
|
|
6794
|
+
function ba(e) {
|
|
6795
|
+
let t = (0, Q.c)(10), { actions: n, maxVisible: r, moreLabel: i } = e, a = r === void 0 ? ga : r, o;
|
|
6796
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
6797
|
+
en: { more: "More actions" },
|
|
6798
|
+
de: { more: "Weitere Aktionen" }
|
|
6799
|
+
}, t[0] = o) : o = t[0];
|
|
6800
|
+
let { t: s } = Mr(o), c, l;
|
|
6801
|
+
if (t[1] !== n || t[2] !== a || t[3] !== i || t[4] !== s) {
|
|
6802
|
+
l = Symbol.for("react.early_return_sentinel");
|
|
6803
|
+
bb0: {
|
|
6804
|
+
let e = n.filter(wa);
|
|
6805
|
+
if (e.length === 0) {
|
|
6806
|
+
l = null;
|
|
6807
|
+
break bb0;
|
|
6808
|
+
}
|
|
6809
|
+
let r = e.filter(Ca), o = e.filter(Sa), u = o.filter(xa).length, d = r.length > 0 ? a === 0 ? 0 : Math.max(1, a - 1) : a, f = Math.max(0, d - u), p = [], m = [], h = 0;
|
|
6810
|
+
for (let e of o) "renderTrigger" in e && e.renderTrigger ? p.push(e) : h < f ? (p.push(e), h += 1) : m.push(e);
|
|
6811
|
+
let g = [...m, ...r], _ = g.length > 0, v;
|
|
6812
|
+
t[7] !== i || t[8] !== s ? (v = i ?? s("more"), t[7] = i, t[8] = s, t[9] = v) : v = t[9];
|
|
6813
|
+
let y = v;
|
|
6814
|
+
c = /* @__PURE__ */ X(Ae, { children: [p.map(va), _ && /* @__PURE__ */ X(w, { children: [/* @__PURE__ */ Y(O, {
|
|
6815
|
+
className: me(Fe({
|
|
6816
|
+
variant: "outline",
|
|
6817
|
+
size: "sm",
|
|
6818
|
+
isIconOnly: !0
|
|
6819
|
+
}), "inline-flex items-center justify-center"),
|
|
6820
|
+
"aria-label": y,
|
|
6821
|
+
"data-cy": "page-header-overflow-trigger",
|
|
6822
|
+
children: /* @__PURE__ */ Y(Ee, { className: "w-4 h-4" })
|
|
6823
|
+
}), /* @__PURE__ */ Y(D, { children: /* @__PURE__ */ Y(E, {
|
|
6824
|
+
"aria-label": y,
|
|
6825
|
+
children: g.map(ya)
|
|
6826
|
+
}) })] })] });
|
|
6827
|
+
}
|
|
6828
|
+
t[1] = n, t[2] = a, t[3] = i, t[4] = s, t[5] = c, t[6] = l;
|
|
6829
|
+
} else c = t[5], l = t[6];
|
|
6830
|
+
return l === Symbol.for("react.early_return_sentinel") ? c : l;
|
|
6831
|
+
}
|
|
6832
|
+
function xa(e) {
|
|
6833
|
+
return "renderTrigger" in e && e.renderTrigger;
|
|
6834
|
+
}
|
|
6835
|
+
function Sa(e) {
|
|
6836
|
+
return e.variant !== "destructive";
|
|
6837
|
+
}
|
|
6838
|
+
function Ca(e) {
|
|
6839
|
+
return e.variant === "destructive" && "onPress" in e;
|
|
6840
|
+
}
|
|
6841
|
+
function wa(e) {
|
|
6842
|
+
return !e.isHidden;
|
|
6843
|
+
}
|
|
6844
|
+
//#endregion
|
|
6845
|
+
//#region src/lib/components/page-header/index.tsx
|
|
6846
|
+
function Ta(e) {
|
|
6847
|
+
let t = (0, Q.c)(34), { title: n, subtitle: r, backTo: i, onBack: a, actions: o, maxVisibleActions: s, moreActionsLabel: c, icon: l, noMargin: u, thumbnailSrc: d, thumbnailAlt: f } = e, p = Me(), m;
|
|
6848
|
+
t[0] === o ? m = t[1] : (m = !!o && o.some(Ea), t[0] = o, t[1] = m);
|
|
6849
|
+
let h = m, g = u && "mb-0", _;
|
|
6850
|
+
t[2] === g ? _ = t[3] : (_ = me("flex items-center w-full justify-between mb-8 flex-wrap gap-4", g), t[2] = g, t[3] = _);
|
|
6851
|
+
let y;
|
|
6852
|
+
t[4] !== i || t[5] !== p || t[6] !== a ? (y = (i || a) && /* @__PURE__ */ Y(v, {
|
|
6853
|
+
variant: "ghost",
|
|
6854
|
+
onPress: () => i ? p(i) : a?.(),
|
|
6855
|
+
isIconOnly: !0,
|
|
6856
|
+
"aria-label": "Go back",
|
|
6857
|
+
className: "mr-4",
|
|
6858
|
+
"data-cy": "back-button",
|
|
6859
|
+
children: /* @__PURE__ */ Y(ve, { className: "w-6 h-6" })
|
|
6860
|
+
}), t[4] = i, t[5] = p, t[6] = a, t[7] = y) : y = t[7];
|
|
6861
|
+
let b;
|
|
6862
|
+
t[8] !== l || t[9] !== f || t[10] !== d ? (b = (l || d) && /* @__PURE__ */ X("div", {
|
|
6863
|
+
className: "mr-2",
|
|
6864
|
+
children: [l, d && /* @__PURE__ */ Y("img", {
|
|
6865
|
+
className: "object-contain rounded-lg",
|
|
6866
|
+
height: 48,
|
|
6867
|
+
width: 48,
|
|
6868
|
+
src: d,
|
|
6869
|
+
alt: f
|
|
6870
|
+
})]
|
|
6871
|
+
}), t[8] = l, t[9] = f, t[10] = d, t[11] = b) : b = t[11];
|
|
6872
|
+
let x;
|
|
6873
|
+
t[12] === b ? x = t[13] : (x = /* @__PURE__ */ Y("div", {
|
|
6874
|
+
className: "flex-shrink flex flex-col",
|
|
6875
|
+
children: b
|
|
6876
|
+
}), t[12] = b, t[13] = x);
|
|
6877
|
+
let S;
|
|
6878
|
+
t[14] === n ? S = t[15] : (S = /* @__PURE__ */ Y("div", {
|
|
6879
|
+
className: "flex items-start gap-2 ",
|
|
6880
|
+
children: /* @__PURE__ */ Y("h1", {
|
|
6881
|
+
className: "text-2xl font-semibold tracking-tight break-words",
|
|
6882
|
+
children: n
|
|
6883
|
+
})
|
|
6884
|
+
}), t[14] = n, t[15] = S);
|
|
6885
|
+
let C;
|
|
6886
|
+
t[16] === r ? C = t[17] : (C = r && Y(typeof r == "string" ? "p" : "div", {
|
|
6887
|
+
className: "mt-1 text-sm text-muted",
|
|
6888
|
+
children: r
|
|
6889
|
+
}), t[16] = r, t[17] = C);
|
|
6890
|
+
let w;
|
|
6891
|
+
t[18] !== S || t[19] !== C ? (w = /* @__PURE__ */ X("div", {
|
|
6892
|
+
className: "min-w-0",
|
|
6893
|
+
children: [S, C]
|
|
6894
|
+
}), t[18] = S, t[19] = C, t[20] = w) : w = t[20];
|
|
6895
|
+
let T;
|
|
6896
|
+
t[21] !== y || t[22] !== x || t[23] !== w ? (T = /* @__PURE__ */ X("div", {
|
|
6897
|
+
className: "flex items-center min-w-0",
|
|
6898
|
+
children: [
|
|
6899
|
+
y,
|
|
6900
|
+
x,
|
|
6901
|
+
w
|
|
6902
|
+
]
|
|
6903
|
+
}), t[21] = y, t[22] = x, t[23] = w, t[24] = T) : T = t[24];
|
|
6904
|
+
let E;
|
|
6905
|
+
t[25] !== o || t[26] !== h || t[27] !== s || t[28] !== c ? (E = h && /* @__PURE__ */ Y("div", {
|
|
6906
|
+
className: "flex items-center gap-2 flex-wrap",
|
|
6907
|
+
children: /* @__PURE__ */ Y(ba, {
|
|
6908
|
+
actions: o,
|
|
6909
|
+
maxVisible: s,
|
|
6910
|
+
moreLabel: c
|
|
6911
|
+
})
|
|
6912
|
+
}), t[25] = o, t[26] = h, t[27] = s, t[28] = c, t[29] = E) : E = t[29];
|
|
6913
|
+
let D;
|
|
6914
|
+
return t[30] !== T || t[31] !== E || t[32] !== _ ? (D = /* @__PURE__ */ X("div", {
|
|
6915
|
+
className: _,
|
|
6916
|
+
children: [T, E]
|
|
6917
|
+
}), t[30] = T, t[31] = E, t[32] = _, t[33] = D) : D = t[33], D;
|
|
6918
|
+
}
|
|
6919
|
+
function Ea(e) {
|
|
6920
|
+
return !e.isHidden;
|
|
6921
|
+
}
|
|
6922
|
+
var Da = {
|
|
6923
|
+
showPassword: "Show password",
|
|
6924
|
+
hidePassword: "Hide password"
|
|
6925
|
+
}, Oa = {
|
|
6926
|
+
showPassword: "Passwort anzeigen",
|
|
6927
|
+
hidePassword: "Passwort verbergen"
|
|
6928
|
+
}, ka = (e) => {
|
|
6929
|
+
let t = (0, Q.c)(58), n, r, i, a, o, s, l, u, d, f, p, m;
|
|
6930
|
+
t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5], s = t[6], l = t[7], u = t[8], d = t[9], f = t[10], p = t[11], m = t[12]) : ({label: l, description: i, errorMessage: a, onValueChange: f, onChange: d, id: s, name: u, required: m, placeholder: p, autoComplete: n, "data-cy": r, ...o} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o, t[6] = s, t[7] = l, t[8] = u, t[9] = d, t[10] = f, t[11] = p, t[12] = m);
|
|
6931
|
+
let [h, g] = c(!1), _;
|
|
6932
|
+
t[13] === Symbol.for("react.memo_cache_sentinel") ? (_ = {
|
|
6933
|
+
en: Da,
|
|
6934
|
+
de: Oa
|
|
6935
|
+
}, t[13] = _) : _ = t[13];
|
|
6936
|
+
let { t: y } = Mr(_), x;
|
|
6937
|
+
t[14] !== d || t[15] !== f ? (x = (e) => {
|
|
6938
|
+
d?.(e), f?.(e);
|
|
6939
|
+
}, t[14] = d, t[15] = f, t[16] = x) : x = t[16];
|
|
6940
|
+
let S = x, C;
|
|
6941
|
+
t[17] === l ? C = t[18] : (C = l && /* @__PURE__ */ Y(N, { children: l }), t[17] = l, t[18] = C);
|
|
6942
|
+
let w = h ? "text" : "password", T;
|
|
6943
|
+
t[19] !== n || t[20] !== r || t[21] !== s || t[22] !== u || t[23] !== p || t[24] !== m || t[25] !== w ? (T = /* @__PURE__ */ Y(M.Input, {
|
|
6944
|
+
type: w,
|
|
6945
|
+
id: s,
|
|
6946
|
+
name: u,
|
|
6947
|
+
required: m,
|
|
6948
|
+
placeholder: p,
|
|
6949
|
+
autoComplete: n,
|
|
6950
|
+
"data-cy": r
|
|
6951
|
+
}), t[19] = n, t[20] = r, t[21] = s, t[22] = u, t[23] = p, t[24] = m, t[25] = w, t[26] = T) : T = t[26];
|
|
6952
|
+
let E;
|
|
6953
|
+
t[27] === Symbol.for("react.memo_cache_sentinel") ? (E = () => g(Aa), t[27] = E) : E = t[27];
|
|
6954
|
+
let D;
|
|
6955
|
+
t[28] !== h || t[29] !== y ? (D = y(h ? "hidePassword" : "showPassword"), t[28] = h, t[29] = y, t[30] = D) : D = t[30];
|
|
6956
|
+
let O;
|
|
6957
|
+
t[31] === h ? O = t[32] : (O = Y(h ? Se : xe, { size: 16 }), t[31] = h, t[32] = O);
|
|
6958
|
+
let A;
|
|
6959
|
+
t[33] !== D || t[34] !== O ? (A = /* @__PURE__ */ Y(pe.Trigger, { children: /* @__PURE__ */ Y(v, {
|
|
6960
|
+
variant: "ghost",
|
|
6961
|
+
isIconOnly: !0,
|
|
6962
|
+
onPress: E,
|
|
6963
|
+
"aria-label": D,
|
|
6964
|
+
"data-cy": "password-input-toggle-button",
|
|
6965
|
+
children: O
|
|
6966
|
+
}) }), t[33] = D, t[34] = O, t[35] = A) : A = t[35];
|
|
6967
|
+
let j;
|
|
6968
|
+
t[36] !== h || t[37] !== y ? (j = y(h ? "hidePassword" : "showPassword"), t[36] = h, t[37] = y, t[38] = j) : j = t[38];
|
|
6969
|
+
let P;
|
|
6970
|
+
t[39] === j ? P = t[40] : (P = /* @__PURE__ */ Y(pe.Content, { children: j }), t[39] = j, t[40] = P);
|
|
6971
|
+
let F;
|
|
6972
|
+
t[41] !== P || t[42] !== A ? (F = /* @__PURE__ */ Y(M.Suffix, { children: /* @__PURE__ */ X(pe, { children: [A, P] }) }), t[41] = P, t[42] = A, t[43] = F) : F = t[43];
|
|
6973
|
+
let I;
|
|
6974
|
+
t[44] !== F || t[45] !== T ? (I = /* @__PURE__ */ X(M, { children: [T, F] }), t[44] = F, t[45] = T, t[46] = I) : I = t[46];
|
|
6975
|
+
let L;
|
|
6976
|
+
t[47] === i ? L = t[48] : (L = i && /* @__PURE__ */ Y(b, { children: i }), t[47] = i, t[48] = L);
|
|
6977
|
+
let R;
|
|
6978
|
+
t[49] === a ? R = t[50] : (R = a && /* @__PURE__ */ Y(k, { children: a }), t[49] = a, t[50] = R);
|
|
6979
|
+
let z;
|
|
6980
|
+
return t[51] !== o || t[52] !== S || t[53] !== I || t[54] !== L || t[55] !== R || t[56] !== C ? (z = /* @__PURE__ */ X(fe, {
|
|
6981
|
+
...o,
|
|
6982
|
+
onChange: S,
|
|
6983
|
+
children: [
|
|
6984
|
+
C,
|
|
6985
|
+
I,
|
|
6986
|
+
L,
|
|
6987
|
+
R
|
|
6988
|
+
]
|
|
6989
|
+
}), t[51] = o, t[52] = S, t[53] = I, t[54] = L, t[55] = R, t[56] = C, t[57] = z) : z = t[57], z;
|
|
6990
|
+
};
|
|
6991
|
+
function Aa(e) {
|
|
6992
|
+
return !e;
|
|
6993
|
+
}
|
|
6994
|
+
var ja = {
|
|
6995
|
+
add: "Add",
|
|
6996
|
+
remove: "Remove",
|
|
6997
|
+
empty: "Enter a value.",
|
|
6998
|
+
duplicate: "This value is already in the list.",
|
|
6999
|
+
comma: "Values cannot contain commas. Add each value separately.",
|
|
7000
|
+
control: "Values cannot contain control characters.",
|
|
7001
|
+
tooLong: "Values can be at most {{max}} characters long.",
|
|
7002
|
+
limitReached: "The list can have at most {{max}} entries."
|
|
7003
|
+
}, Ma = {
|
|
7004
|
+
add: "Hinzufügen",
|
|
7005
|
+
remove: "Entfernen",
|
|
7006
|
+
empty: "Bitte einen Wert eingeben.",
|
|
7007
|
+
duplicate: "Dieser Wert ist bereits in der Liste.",
|
|
7008
|
+
comma: "Werte dürfen keine Kommas enthalten. Jeden Wert einzeln hinzufügen.",
|
|
7009
|
+
control: "Werte dürfen keine Steuerzeichen enthalten.",
|
|
7010
|
+
tooLong: "Werte dürfen höchstens {{max}} Zeichen lang sein.",
|
|
7011
|
+
limitReached: "Die Liste darf höchstens {{max}} Einträge haben."
|
|
7012
|
+
}, Na = /[\u0000-\u001f\u007f]/;
|
|
7013
|
+
function Pa(e, t, { maxEntries: n, maxLength: r } = {}) {
|
|
7014
|
+
return n !== void 0 && t.length >= n ? "limitReached" : e.length === 0 ? "empty" : e.includes(",") ? "comma" : Na.test(e) ? "control" : r !== void 0 && e.length > r ? "tooLong" : t.includes(e) ? "duplicate" : null;
|
|
7015
|
+
}
|
|
7016
|
+
var Fa = (e) => {
|
|
7017
|
+
let t = (0, Q.c)(66), { label: n, description: r, values: i, onChange: a, placeholder: o, emptyHint: l, maxEntries: u, maxLength: d, isDisabled: f, "data-cy": p } = e, m;
|
|
7018
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (m = {
|
|
7019
|
+
en: ja,
|
|
7020
|
+
de: Ma
|
|
7021
|
+
}, t[0] = m) : m = t[0];
|
|
7022
|
+
let { t: h } = Mr(m), [g, _] = c(""), [y, x] = c(null), S = s(null), C = s(null), w = u !== void 0 && i.length >= u, T;
|
|
7023
|
+
t[1] !== l || t[2] !== y || t[3] !== w || t[4] !== u || t[5] !== h || t[6] !== i.length ? (T = w ? y ? null : h("limitReached", { max: u }) : i.length === 0 ? l : null, t[1] = l, t[2] = y, t[3] = w, t[4] = u, t[5] = h, t[6] = i.length, t[7] = T) : T = t[7];
|
|
7024
|
+
let E = T, D;
|
|
7025
|
+
t[8] !== g || t[9] !== u || t[10] !== d || t[11] !== a || t[12] !== i ? (D = () => {
|
|
7026
|
+
let e = g.trim(), t = Pa(e, i, {
|
|
7027
|
+
maxEntries: u,
|
|
7028
|
+
maxLength: d
|
|
7029
|
+
});
|
|
7030
|
+
if (t) {
|
|
7031
|
+
x(t);
|
|
7032
|
+
return;
|
|
7033
|
+
}
|
|
7034
|
+
a([...i, e]), _(""), x(null);
|
|
7035
|
+
}, t[8] = g, t[9] = u, t[10] = d, t[11] = a, t[12] = i, t[13] = D) : D = t[13];
|
|
7036
|
+
let O = D, A;
|
|
7037
|
+
t[14] !== a || t[15] !== i ? (A = (e) => {
|
|
7038
|
+
let t = i.filter((t, n) => !e.has(String(n)));
|
|
7039
|
+
a(t), x(null), t.length === 0 && S.current?.focus();
|
|
7040
|
+
}, t[14] = a, t[15] = i, t[16] = A) : A = t[16];
|
|
7041
|
+
let M = A, P = p ? `${p}-list` : void 0, F;
|
|
7042
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (F = (e) => {
|
|
7043
|
+
_(e), x(null);
|
|
7044
|
+
}, t[17] = F) : F = t[17];
|
|
7045
|
+
let I = y !== null, L;
|
|
7046
|
+
t[18] === n ? L = t[19] : (L = /* @__PURE__ */ Y(N, { children: n }), t[18] = n, t[19] = L);
|
|
7047
|
+
let R;
|
|
7048
|
+
t[20] !== O || t[21] !== g ? (R = (e) => {
|
|
7049
|
+
!g.trim() || !document.hasFocus() || C.current?.contains(e.relatedTarget) || O();
|
|
7050
|
+
}, t[20] = O, t[21] = g, t[22] = R) : R = t[22];
|
|
7051
|
+
let z;
|
|
7052
|
+
t[23] === O ? z = t[24] : (z = (e) => {
|
|
7053
|
+
e.key !== "Enter" || e.nativeEvent.isComposing || (e.preventDefault(), O());
|
|
7054
|
+
}, t[23] = O, t[24] = z);
|
|
7055
|
+
let B;
|
|
7056
|
+
t[25] !== p || t[26] !== o || t[27] !== z ? (B = /* @__PURE__ */ Y(j, {
|
|
7057
|
+
ref: S,
|
|
7058
|
+
className: "flex-1",
|
|
7059
|
+
placeholder: o,
|
|
7060
|
+
"data-cy": p,
|
|
7061
|
+
onKeyDown: z
|
|
7062
|
+
}), t[25] = p, t[26] = o, t[27] = z, t[28] = B) : B = t[28];
|
|
7063
|
+
let V = f || w, ee = p && `${p}-add`, H;
|
|
7064
|
+
t[29] === h ? H = t[30] : (H = h("add"), t[29] = h, t[30] = H);
|
|
7065
|
+
let U;
|
|
7066
|
+
t[31] !== O || t[32] !== V || t[33] !== ee || t[34] !== H ? (U = /* @__PURE__ */ Y(v, {
|
|
7067
|
+
variant: "secondary",
|
|
7068
|
+
onPress: O,
|
|
7069
|
+
isDisabled: V,
|
|
7070
|
+
"data-cy": ee,
|
|
7071
|
+
children: H
|
|
7072
|
+
}), t[31] = O, t[32] = V, t[33] = ee, t[34] = H, t[35] = U) : U = t[35];
|
|
7073
|
+
let W;
|
|
7074
|
+
t[36] !== B || t[37] !== U || t[38] !== R ? (W = /* @__PURE__ */ X("div", {
|
|
7075
|
+
ref: C,
|
|
7076
|
+
className: "flex gap-2",
|
|
7077
|
+
onBlur: R,
|
|
7078
|
+
children: [B, U]
|
|
7079
|
+
}), t[36] = B, t[37] = U, t[38] = R, t[39] = W) : W = t[39];
|
|
7080
|
+
let G;
|
|
7081
|
+
t[40] !== r || t[41] !== E ? (G = (r || E) && /* @__PURE__ */ X(b, { children: [r, E && /* @__PURE__ */ Y("span", {
|
|
7082
|
+
className: "block",
|
|
7083
|
+
children: E
|
|
7084
|
+
})] }), t[40] = r, t[41] = E, t[42] = G) : G = t[42];
|
|
7085
|
+
let K;
|
|
7086
|
+
t[43] !== y || t[44] !== u || t[45] !== d || t[46] !== h ? (K = y && /* @__PURE__ */ Y(k, { children: h(y, { max: y === "tooLong" ? d : u }) }), t[43] = y, t[44] = u, t[45] = d, t[46] = h, t[47] = K) : K = t[47];
|
|
7087
|
+
let q;
|
|
7088
|
+
t[48] !== g || t[49] !== f || t[50] !== W || t[51] !== G || t[52] !== K || t[53] !== I || t[54] !== L ? (q = /* @__PURE__ */ X(fe, {
|
|
7089
|
+
value: g,
|
|
7090
|
+
onChange: F,
|
|
7091
|
+
isDisabled: f,
|
|
7092
|
+
isInvalid: I,
|
|
7093
|
+
validationBehavior: "aria",
|
|
7094
|
+
children: [
|
|
7095
|
+
L,
|
|
7096
|
+
W,
|
|
7097
|
+
G,
|
|
7098
|
+
K
|
|
7099
|
+
]
|
|
7100
|
+
}), t[48] = g, t[49] = f, t[50] = W, t[51] = G, t[52] = K, t[53] = I, t[54] = L, t[55] = q) : q = t[55];
|
|
7101
|
+
let te;
|
|
7102
|
+
t[56] !== f || t[57] !== n || t[58] !== M || t[59] !== h || t[60] !== i ? (te = i.length > 0 && /* @__PURE__ */ Y(de, {
|
|
7103
|
+
size: "sm",
|
|
7104
|
+
"aria-label": n,
|
|
7105
|
+
onRemove: f ? void 0 : M,
|
|
7106
|
+
children: /* @__PURE__ */ Y(de.List, { children: i.map((e, t) => /* @__PURE__ */ Y(ue, {
|
|
7107
|
+
id: String(t),
|
|
7108
|
+
textValue: e,
|
|
7109
|
+
className: "max-w-full",
|
|
7110
|
+
children: (t) => /* @__PURE__ */ X(Ae, { children: [/* @__PURE__ */ Y("span", {
|
|
7111
|
+
className: "min-w-0 break-all",
|
|
7112
|
+
children: e
|
|
7113
|
+
}), t.allowsRemoving ? /* @__PURE__ */ Y(ue.RemoveButton, {
|
|
7114
|
+
"aria-label": h("remove"),
|
|
7115
|
+
className: "shrink-0"
|
|
7116
|
+
}) : null] })
|
|
7117
|
+
}, t)) })
|
|
7118
|
+
}), t[56] = f, t[57] = n, t[58] = M, t[59] = h, t[60] = i, t[61] = te) : te = t[61];
|
|
7119
|
+
let J;
|
|
7120
|
+
return t[62] !== q || t[63] !== te || t[64] !== P ? (J = /* @__PURE__ */ X("div", {
|
|
7121
|
+
className: "flex flex-col gap-2",
|
|
7122
|
+
"data-cy": P,
|
|
7123
|
+
children: [q, te]
|
|
7124
|
+
}), t[62] = q, t[63] = te, t[64] = P, t[65] = J) : J = t[65], J;
|
|
7125
|
+
};
|
|
7126
|
+
//#endregion
|
|
7127
|
+
export { Zi as AlertStatusIcon, mi as AttraccessUser, ui as AttraccessUserActionsProvider, sa as Button, Ti as DateTimeDisplay, ha as DeleteConfirmationModal, Ei as DurationDisplay, Qi as EmptyState, Ar as I18N_LANGUAGE_STORAGE_KEY, Yi as I18nTransComponent, $i as LabeledSwitch, Vi as ListboxWrapper, Ta as PageHeader, ba as PageHeaderActions, ka as PasswordInput, Hi as ResourceSelector, aa as StandardDrawer, Oi as StandardModal, oa as StatusAlert, fa as StatusDialog, Fa as StringListField, na as TableDataLoadingIndicator, Ri as UserSearch, Fr as detectAndSetLanguage, Pr as detectLanguage, Nr as detectPreferredLanguage, di as useAttraccessUserActions, yi as useDateTimeFormatter, _i as useDateTimeLocale, gi as useDateTimePreferences, hi as useDebounce, bi as useFormatDateTime, wi as useFormatNumber, xi as useFormatedDuration, Ci as useNumberFormatter, jr as useTranslationState, Mr as useTranslations, Si as useUrlQuery, Pa as validateStringListEntry };
|