@gentiq/admin 1.0.0-alpha.4 → 1.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ar-BhSvGh_7.js +61 -0
- package/dist/bn-DMxb0W3N.js +61 -0
- package/dist/de-D22ELk2j.js +61 -0
- package/dist/es-5IXkmYPo.js +61 -0
- package/dist/fa-OOfVUI1k.js +61 -0
- package/dist/fr-DaPe98w4.js +61 -0
- package/dist/hi-CoBQdI0J.js +61 -0
- package/dist/id-Dpsl35fD.js +61 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.es.js +64 -47
- package/dist/pt-atLGsxOr.js +61 -0
- package/dist/ru-B7X8WL1t.js +61 -0
- package/dist/style.css +1 -1
- package/dist/ur-CR1nTT6C.js +61 -0
- package/dist/zh-C-AOb6yG.js +61 -0
- package/package.json +4 -4
- package/dist/ar-DkufWNA_.js +0 -61
- package/dist/bn-DWjOZwR1.js +0 -61
- package/dist/de-uSCjQxbX.js +0 -61
- package/dist/es-BxJyt3pB.js +0 -61
- package/dist/fa-CXbpDm4C.js +0 -61
- package/dist/fr-CN8pIfIN.js +0 -61
- package/dist/hi-5KnIf9oM.js +0 -61
- package/dist/id-pljdjdMb.js +0 -61
- package/dist/pt-VG47NIXx.js +0 -61
- package/dist/ru-DD2TFzvJ.js +0 -61
- package/dist/ur-DlkgjxDy.js +0 -61
- package/dist/zh-dPB6uZcb.js +0 -61
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as i, jsx as t, Fragment as Z } from "react/jsx-runtime";
|
|
3
|
-
import { useContext as Or, createContext as Ir, useEffect as X, useState as v, Suspense as an, useRef as Re, useMemo as
|
|
3
|
+
import { useContext as Or, createContext as Ir, useEffect as X, useState as v, Suspense as an, useRef as Re, useMemo as ne, useCallback as qe, Fragment as on, useLayoutEffect as Ur, useId as Ue, forwardRef as ve } from "react";
|
|
4
4
|
import { useLocation as ln, useParams as Gt, NavLink as dn, Routes as zr, Route as gt, Navigate as ur, useMatch as cn, Link as un, useNavigate as Kr, useInRouterContext as mn, BrowserRouter as hn } from "react-router-dom";
|
|
5
5
|
import { Tooltip as pn, TooltipTrigger as gn, TooltipContent as fn, QuotaWindows as Br, CreditsBar as Jr, useGentiqUIOptions as bn, GentiqRoot as mr } from "@gentiq/ui";
|
|
6
6
|
import { useGentiqOptions as he, useTheme as xn, useGentiqQueryClient as q, useGentiqTranslation as w, getLocalizedErrorMessage as Se, useGentiqLanguage as ee, useServerConfig as it } from "@gentiq/react";
|
|
@@ -9,6 +9,7 @@ import { createLocalStorageAuthAdapter as Tn, resolveAuthAdapter as jn, createHt
|
|
|
9
9
|
import { GentiqError as Vr, getAvailableLanguages as Hr, getLanguageNativeName as Gr, readStored as Dn, writeStored as Mn, createDateFormatter as ze, getTextDirection as En, evaluateCondition as Qr, SUPPORTED_LANGUAGES as Rn } from "@gentiq/core";
|
|
10
10
|
import { useQuery as G, useMutation as z, keepPreviousData as Zr } from "@tanstack/react-query";
|
|
11
11
|
import { gentiqLogo as On, DropdownMenu as In, DropdownMenuTrigger as Un, Button as oe, DropdownMenuContent as zn, DropdownMenuItem as Kn, ModeToggle as Bn, Select as J, SelectTrigger as W, SelectValue as V, SelectContent as H, SelectItem as M, cn as B, Sheet as Jn, SheetContent as Wn, SheetHeader as Vn, SheetTitle as Hn, SheetDescription as Gn, Collapsible as Yr, CollapsibleTrigger as Xr, CollapsibleContent as es, Switch as _e, formatQuotaDate as Ce, meterLabel as ye, formatQuotaAmount as ot, Checkbox as ts, describeDuration as tt, Dialog as yt, DialogContent as vt, DialogHeader as Nt, DialogTitle as wt, DialogDescription as kt, BUILT_IN_METERS as rs, QUOTA_PERIODS as Qn, describeWindow as ss, Label as I, Textarea as lt, Input as de, Badge as Ke, DialogFooter as ns, DialogClose as as, useSlots as Zn, DialogTrigger as Yn } from "@gentiq/ui/internal";
|
|
12
|
+
import { Select as mc, SelectContent as hc, SelectItem as pc, SelectTrigger as gc, SelectValue as fc } from "@gentiq/ui/internal";
|
|
12
13
|
import { ShieldAlert as Xn, LogOut as ea, Wrench as Ct, X as Qt, Search as is, SlidersHorizontal as os, ArrowDownUp as ta, Loader2 as fe, Check as ls, CalendarDays as ra, ChevronRight as gr, ChevronLeft as fr, Eye as sa, Share2 as na, Tablet as aa, Smartphone as ia, Monitor as oa, ChevronDown as St, Info as la, TriangleAlert as da, CircleX as ca, Copy as ds, Pause as ua, Play as dt, Download as cs, Mic as ma, Bot as br, Sparkles as ha, User as pa, RotateCw as ga, BarChart3 as fa, Gauge as ba, ArrowUpDown as xa, ArrowUp as _a, ArrowDown as ya, RotateCcw as At, Zap as va, Coins as Na, Infinity as wa, UsersRound as ka, Trash2 as us, Plus as ms, Pencil as Ca, ArchiveRestore as Sa, Archive as Aa, Users as Ta, FileWarning as ja, Paperclip as hs, FileX as $a, Terminal as Fa, Ban as qa, AlertTriangle as ps, Activity as La, CircleCheck as Pa, Power as Da, RefreshCcw as gs, Palette as Ma, Globe as xr, Hash as Ea, Settings2 as Ra } from "lucide-react";
|
|
13
14
|
import { toast as Y } from "sonner";
|
|
14
15
|
class Oa {
|
|
@@ -403,18 +404,18 @@ function P() {
|
|
|
403
404
|
return e;
|
|
404
405
|
}
|
|
405
406
|
const Wa = {
|
|
406
|
-
ar: () => import("./ar-
|
|
407
|
-
bn: () => import("./bn-
|
|
408
|
-
de: () => import("./de-
|
|
409
|
-
es: () => import("./es-
|
|
410
|
-
fa: () => import("./fa-
|
|
411
|
-
fr: () => import("./fr-
|
|
412
|
-
hi: () => import("./hi-
|
|
413
|
-
id: () => import("./id-
|
|
414
|
-
pt: () => import("./pt-
|
|
415
|
-
ru: () => import("./ru-
|
|
416
|
-
ur: () => import("./ur-
|
|
417
|
-
zh: () => import("./zh-
|
|
407
|
+
ar: () => import("./ar-BhSvGh_7.js").then((e) => e.default),
|
|
408
|
+
bn: () => import("./bn-DMxb0W3N.js").then((e) => e.default),
|
|
409
|
+
de: () => import("./de-D22ELk2j.js").then((e) => e.default),
|
|
410
|
+
es: () => import("./es-5IXkmYPo.js").then((e) => e.default),
|
|
411
|
+
fa: () => import("./fa-OOfVUI1k.js").then((e) => e.default),
|
|
412
|
+
fr: () => import("./fr-DaPe98w4.js").then((e) => e.default),
|
|
413
|
+
hi: () => import("./hi-CoBQdI0J.js").then((e) => e.default),
|
|
414
|
+
id: () => import("./id-Dpsl35fD.js").then((e) => e.default),
|
|
415
|
+
pt: () => import("./pt-atLGsxOr.js").then((e) => e.default),
|
|
416
|
+
ru: () => import("./ru-B7X8WL1t.js").then((e) => e.default),
|
|
417
|
+
ur: () => import("./ur-CR1nTT6C.js").then((e) => e.default),
|
|
418
|
+
zh: () => import("./zh-C-AOb6yG.js").then((e) => e.default)
|
|
418
419
|
}, Pt = /* @__PURE__ */ new Map();
|
|
419
420
|
function xs(e) {
|
|
420
421
|
const r = Wa[e];
|
|
@@ -1714,7 +1715,7 @@ function qi({ data: e, days: r }) {
|
|
|
1714
1715
|
}
|
|
1715
1716
|
function Li(e, r) {
|
|
1716
1717
|
const { data: s, isLoading: n, error: o, refetch: a } = ai(e, r);
|
|
1717
|
-
return { data:
|
|
1718
|
+
return { data: ne(() => {
|
|
1718
1719
|
if (!s) return null;
|
|
1719
1720
|
const d = s;
|
|
1720
1721
|
return {
|
|
@@ -2332,7 +2333,7 @@ function Nr({
|
|
|
2332
2333
|
const { t: l } = w("admin"), { language: u, dir: m } = ee(), h = m === "rtl", p = hr(s), g = e ? new Date(e) : null, x = g && !Number.isNaN(g.getTime()) ? g : null, f = x ? p.fromDate(x) : null, b = p.fromDate(/* @__PURE__ */ new Date()), [C, y] = x ? [x.getHours(), x.getMinutes()] : c === "end" ? [23, 59] : [0, 0], [_, N] = v(null), $ = _ ?? f ?? b, k = (O) => {
|
|
2333
2334
|
const Q = p.toDate($);
|
|
2334
2335
|
N(hr(O).fromDate(Q)), n(O);
|
|
2335
|
-
}, S =
|
|
2336
|
+
}, S = ne(() => new Intl.NumberFormat(u, { useGrouping: !1 }), [u]), j = ut(u, s, { month: "long", year: "numeric" }).format(
|
|
2336
2337
|
p.toDate({ ...$, day: Math.min(15, p.daysInMonth($.year, $.month)) })
|
|
2337
2338
|
), A = x ? ut(u, s, { dateStyle: "medium", timeStyle: "short" }).format(x) : null, L = Ln(u), T = ut(u, s, { weekday: "narrow" }), D = Array.from(
|
|
2338
2339
|
{ length: 7 },
|
|
@@ -3862,13 +3863,13 @@ function No(e) {
|
|
|
3862
3863
|
}
|
|
3863
3864
|
const wo = 8e3;
|
|
3864
3865
|
function ko({ selectedThread: e }) {
|
|
3865
|
-
const { t: r } = w(["admin"]), s = ui(e?.id ?? ""), n =
|
|
3866
|
+
const { t: r } = w(["admin"]), s = ui(e?.id ?? ""), n = ne(() => s.data?.items ?? [], [s.data?.items]), [o, a] = ao(), c = ne(
|
|
3866
3867
|
() => ro(s.data?.events ?? []),
|
|
3867
3868
|
[s.data?.events]
|
|
3868
|
-
), d =
|
|
3869
|
+
), d = ne(
|
|
3869
3870
|
() => Yi(s.data?.events ?? []),
|
|
3870
3871
|
[s.data?.events]
|
|
3871
|
-
), l =
|
|
3872
|
+
), l = ne(
|
|
3872
3873
|
() => so(
|
|
3873
3874
|
No(n),
|
|
3874
3875
|
(g) => (g.kind === "subagent" ? g.items[0] : g.item).created_at ?? "",
|
|
@@ -4119,7 +4120,7 @@ function To() {
|
|
|
4119
4120
|
const A = setTimeout(() => o(r), 500);
|
|
4120
4121
|
return () => clearTimeout(A);
|
|
4121
4122
|
}, [r]);
|
|
4122
|
-
const C =
|
|
4123
|
+
const C = ne(
|
|
4123
4124
|
() => zt(a, n, d),
|
|
4124
4125
|
[a, n, d]
|
|
4125
4126
|
), y = di(C, h, 50);
|
|
@@ -5330,7 +5331,7 @@ function Uo({
|
|
|
5330
5331
|
onApplied: n,
|
|
5331
5332
|
onError: o
|
|
5332
5333
|
}) {
|
|
5333
|
-
const { t: a, i18n: c } = w(["admin", "quota"]), d = ee().dir === "rtl", [l, u] = v(e ? "list" : "everyone"), [m, h] = v(""), [p, g] = v(r[0]?.key ?? ""), [x, f] = v(""), [b, C] = v(""), [y, _] = v({ ...Xe, mode: "plan" }), { bulkSetAccess: N } = or(), $ = N.isPending, { data: k } = qt(), S =
|
|
5334
|
+
const { t: a, i18n: c } = w(["admin", "quota"]), d = ee().dir === "rtl", [l, u] = v(e ? "list" : "everyone"), [m, h] = v(""), [p, g] = v(r[0]?.key ?? ""), [x, f] = v(""), [b, C] = v(""), [y, _] = v({ ...Xe, mode: "plan" }), { bulkSetAccess: N } = or(), $ = N.isPending, { data: k } = qt(), S = ne(() => {
|
|
5334
5335
|
switch (l) {
|
|
5335
5336
|
case "everyone":
|
|
5336
5337
|
return {};
|
|
@@ -5966,7 +5967,7 @@ function Vo({
|
|
|
5966
5967
|
}
|
|
5967
5968
|
const Et = 25;
|
|
5968
5969
|
function Ho() {
|
|
5969
|
-
const { t: e, i18n: r } = w(["admin"]), s = he((re) => re.app), n = ee().dir === "rtl", [o, a] = v(""), [c, d] = v(""), [l, u] = v(""), [m, h] = v("name"), [p, g] = v("asc"), [x, f] = v(Ge), [b, C] = v(!1), y = si().data, [_, N] = v(Et), [$, k] = v(!1), [S, j] = v(null), [A, L] = v(null), [T, D] = v(null), [F, E] = v(!1), K = ni(), { refreshToken: Ae } = or(), pe =
|
|
5970
|
+
const { t: e, i18n: r } = w(["admin"]), s = he((re) => re.app), n = ee().dir === "rtl", [o, a] = v(""), [c, d] = v(""), [l, u] = v(""), [m, h] = v("name"), [p, g] = v("asc"), [x, f] = v(Ge), [b, C] = v(!1), y = si().data, [_, N] = v(Et), [$, k] = v(!1), [S, j] = v(null), [A, L] = v(null), [T, D] = v(null), [F, E] = v(!1), K = ni(), { refreshToken: Ae } = or(), pe = ne(() => _t(x, l), [x, l]), me = qr(x), Ne = ne(
|
|
5970
5971
|
() => l.trim() || qr(x) > 0 ? Eo(x, l) : null,
|
|
5971
5972
|
[x, l]
|
|
5972
5973
|
), {
|
|
@@ -5974,7 +5975,7 @@ function Ho() {
|
|
|
5974
5975
|
isLoading: O,
|
|
5975
5976
|
isFetching: Q,
|
|
5976
5977
|
error: te
|
|
5977
|
-
} = ri(pe, _, m, p), be = R?.users ?? [], le = R?.count ?? 0, U = O || Q, Te = te ? te instanceof Error ? te.message : e("error_loading") : "", ct = o || Te, Qe =
|
|
5978
|
+
} = ri(pe, _, m, p), be = R?.users ?? [], le = R?.count ?? 0, U = O || Q, Te = te ? te instanceof Error ? te.message : e("error_loading") : "", ct = o || Te, Qe = ne(() => s?.userMetadataFields || [], [s?.userMetadataFields]);
|
|
5978
5979
|
X(() => {
|
|
5979
5980
|
const re = setTimeout(() => {
|
|
5980
5981
|
u(c);
|
|
@@ -8308,7 +8309,7 @@ function ue({ field: e }) {
|
|
|
8308
8309
|
)
|
|
8309
8310
|
] }) : /* @__PURE__ */ t("span", { className: "text-xs text-muted-foreground", children: r("app_settings.default_value") });
|
|
8310
8311
|
}
|
|
8311
|
-
function
|
|
8312
|
+
function se({
|
|
8312
8313
|
title: e,
|
|
8313
8314
|
help: r,
|
|
8314
8315
|
checked: s,
|
|
@@ -8455,7 +8456,7 @@ function Pl({
|
|
|
8455
8456
|
o("app_settings.general.language_help")
|
|
8456
8457
|
] }),
|
|
8457
8458
|
/* @__PURE__ */ t(
|
|
8458
|
-
|
|
8459
|
+
se,
|
|
8459
8460
|
{
|
|
8460
8461
|
title: o("app_settings.general.language_locked"),
|
|
8461
8462
|
help: o("app_settings.general.language_locked_help"),
|
|
@@ -8558,7 +8559,7 @@ function Pl({
|
|
|
8558
8559
|
)
|
|
8559
8560
|
] }),
|
|
8560
8561
|
/* @__PURE__ */ t(
|
|
8561
|
-
|
|
8562
|
+
se,
|
|
8562
8563
|
{
|
|
8563
8564
|
title: o("app_settings.general.user_bubble_accent"),
|
|
8564
8565
|
help: o("app_settings.general.user_bubble_accent_help"),
|
|
@@ -8754,7 +8755,7 @@ function Dl({
|
|
|
8754
8755
|
] }),
|
|
8755
8756
|
/* @__PURE__ */ i("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-6 pt-2", children: [
|
|
8756
8757
|
/* @__PURE__ */ t(
|
|
8757
|
-
|
|
8758
|
+
se,
|
|
8758
8759
|
{
|
|
8759
8760
|
title: a("app_settings.chat.show_tool_details"),
|
|
8760
8761
|
help: a("app_settings.chat.show_tool_details_help"),
|
|
@@ -8764,7 +8765,17 @@ function Dl({
|
|
|
8764
8765
|
}
|
|
8765
8766
|
),
|
|
8766
8767
|
/* @__PURE__ */ t(
|
|
8767
|
-
|
|
8768
|
+
se,
|
|
8769
|
+
{
|
|
8770
|
+
title: a("app_settings.chat.show_welcome_glow"),
|
|
8771
|
+
help: a("app_settings.chat.show_welcome_glow_help"),
|
|
8772
|
+
checked: e.show_welcome_glow,
|
|
8773
|
+
field: "show_welcome_glow",
|
|
8774
|
+
onCheckedChange: (l) => r({ ...e, show_welcome_glow: l })
|
|
8775
|
+
}
|
|
8776
|
+
),
|
|
8777
|
+
/* @__PURE__ */ t(
|
|
8778
|
+
se,
|
|
8768
8779
|
{
|
|
8769
8780
|
title: a("app_settings.chat.show_reasoning"),
|
|
8770
8781
|
help: a("app_settings.chat.show_reasoning_help"),
|
|
@@ -8774,7 +8785,7 @@ function Dl({
|
|
|
8774
8785
|
}
|
|
8775
8786
|
),
|
|
8776
8787
|
/* @__PURE__ */ t(
|
|
8777
|
-
|
|
8788
|
+
se,
|
|
8778
8789
|
{
|
|
8779
8790
|
title: a("app_settings.chat.show_settings"),
|
|
8780
8791
|
help: a("app_settings.chat.show_settings_help"),
|
|
@@ -8784,7 +8795,7 @@ function Dl({
|
|
|
8784
8795
|
}
|
|
8785
8796
|
),
|
|
8786
8797
|
/* @__PURE__ */ t(
|
|
8787
|
-
|
|
8798
|
+
se,
|
|
8788
8799
|
{
|
|
8789
8800
|
title: a("app_settings.chat.show_version_in_settings"),
|
|
8790
8801
|
help: a("app_settings.chat.show_version_in_settings_help"),
|
|
@@ -8794,7 +8805,7 @@ function Dl({
|
|
|
8794
8805
|
}
|
|
8795
8806
|
),
|
|
8796
8807
|
/* @__PURE__ */ t(
|
|
8797
|
-
|
|
8808
|
+
se,
|
|
8798
8809
|
{
|
|
8799
8810
|
title: a("app_settings.chat.signup_enabled"),
|
|
8800
8811
|
help: a("app_settings.chat.signup_enabled_help"),
|
|
@@ -8804,7 +8815,7 @@ function Dl({
|
|
|
8804
8815
|
}
|
|
8805
8816
|
),
|
|
8806
8817
|
/* @__PURE__ */ t(
|
|
8807
|
-
|
|
8818
|
+
se,
|
|
8808
8819
|
{
|
|
8809
8820
|
title: a("app_settings.chat.auth_page_enabled"),
|
|
8810
8821
|
help: a("app_settings.chat.auth_page_enabled_help"),
|
|
@@ -8815,7 +8826,7 @@ function Dl({
|
|
|
8815
8826
|
}
|
|
8816
8827
|
),
|
|
8817
8828
|
/* @__PURE__ */ t(
|
|
8818
|
-
|
|
8829
|
+
se,
|
|
8819
8830
|
{
|
|
8820
8831
|
title: a("app_settings.chat.composer_attachments"),
|
|
8821
8832
|
help: a("app_settings.chat.composer_attachments_help"),
|
|
@@ -8825,7 +8836,7 @@ function Dl({
|
|
|
8825
8836
|
}
|
|
8826
8837
|
),
|
|
8827
8838
|
/* @__PURE__ */ t(
|
|
8828
|
-
|
|
8839
|
+
se,
|
|
8829
8840
|
{
|
|
8830
8841
|
title: a("app_settings.chat.composer_voice"),
|
|
8831
8842
|
help: a(c ? "app_settings.chat.composer_voice_help" : "app_settings.chat.composer_voice_unavailable"),
|
|
@@ -8835,7 +8846,7 @@ function Dl({
|
|
|
8835
8846
|
}
|
|
8836
8847
|
),
|
|
8837
8848
|
/* @__PURE__ */ t(
|
|
8838
|
-
|
|
8849
|
+
se,
|
|
8839
8850
|
{
|
|
8840
8851
|
title: a("app_settings.chat.thread_actions_feedback"),
|
|
8841
8852
|
help: a("app_settings.chat.thread_actions_feedback_help"),
|
|
@@ -8845,7 +8856,7 @@ function Dl({
|
|
|
8845
8856
|
}
|
|
8846
8857
|
),
|
|
8847
8858
|
/* @__PURE__ */ t(
|
|
8848
|
-
|
|
8859
|
+
se,
|
|
8849
8860
|
{
|
|
8850
8861
|
title: a("app_settings.chat.thread_actions_retry"),
|
|
8851
8862
|
help: a("app_settings.chat.thread_actions_retry_help"),
|
|
@@ -8855,7 +8866,7 @@ function Dl({
|
|
|
8855
8866
|
}
|
|
8856
8867
|
),
|
|
8857
8868
|
/* @__PURE__ */ t(
|
|
8858
|
-
|
|
8869
|
+
se,
|
|
8859
8870
|
{
|
|
8860
8871
|
title: a("app_settings.chat.thread_actions_edit"),
|
|
8861
8872
|
help: a("app_settings.chat.thread_actions_edit_help"),
|
|
@@ -8865,7 +8876,7 @@ function Dl({
|
|
|
8865
8876
|
}
|
|
8866
8877
|
),
|
|
8867
8878
|
/* @__PURE__ */ t(
|
|
8868
|
-
|
|
8879
|
+
se,
|
|
8869
8880
|
{
|
|
8870
8881
|
title: a("app_settings.chat.history_enabled"),
|
|
8871
8882
|
help: a("app_settings.chat.history_enabled_help"),
|
|
@@ -8941,7 +8952,7 @@ function Dl({
|
|
|
8941
8952
|
/* @__PURE__ */ t(ue, { field: "header_actions" })
|
|
8942
8953
|
] }),
|
|
8943
8954
|
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-6", children: n.map((l) => /* @__PURE__ */ t(
|
|
8944
|
-
|
|
8955
|
+
se,
|
|
8945
8956
|
{
|
|
8946
8957
|
title: a(l.label),
|
|
8947
8958
|
help: l.help && a(l.help),
|
|
@@ -9079,7 +9090,7 @@ const ge = "__app__", Ml = ["messages", "tokens", "cost"], El = ["gregorian", "p
|
|
|
9079
9090
|
"sunday"
|
|
9080
9091
|
], De = "text-xs font-bold uppercase tracking-widest text-muted-foreground/60 ms-1", Me = "w-full bg-muted/20 border-transparent focus:bg-background h-11", Ee = "text-xs text-muted-foreground/60 ms-1";
|
|
9081
9092
|
function Ol({ settings: e, setSettings: r, plans: s, isRtl: n }) {
|
|
9082
|
-
const { t: o, i18n: a } = w(["admin", "quota"]), c = Ue(), d = n ? "rtl" : "ltr", l =
|
|
9093
|
+
const { t: o, i18n: a } = w(["admin", "quota"]), c = Ue(), d = n ? "rtl" : "ltr", l = ne(() => Intl.supportedValuesOf?.("timeZone") ?? [], []), u = e.quota_timezone || s?.timezone || "UTC", m = ne(() => {
|
|
9083
9094
|
try {
|
|
9084
9095
|
return new Intl.DateTimeFormat(a.language, {
|
|
9085
9096
|
timeZone: u,
|
|
@@ -9246,7 +9257,7 @@ function Ol({ settings: e, setSettings: r, plans: s, isRtl: n }) {
|
|
|
9246
9257
|
] }),
|
|
9247
9258
|
/* @__PURE__ */ i("div", { className: "space-y-3", children: [
|
|
9248
9259
|
/* @__PURE__ */ t(
|
|
9249
|
-
|
|
9260
|
+
se,
|
|
9250
9261
|
{
|
|
9251
9262
|
title: o("app_settings.usage.show_usage_bar"),
|
|
9252
9263
|
help: o("app_settings.usage.show_usage_bar_help"),
|
|
@@ -9256,7 +9267,7 @@ function Ol({ settings: e, setSettings: r, plans: s, isRtl: n }) {
|
|
|
9256
9267
|
}
|
|
9257
9268
|
),
|
|
9258
9269
|
e.show_usage_bar && /* @__PURE__ */ t(
|
|
9259
|
-
|
|
9270
|
+
se,
|
|
9260
9271
|
{
|
|
9261
9272
|
title: o("app_settings.usage.show_usage_details"),
|
|
9262
9273
|
help: o("app_settings.usage.show_usage_details_help"),
|
|
@@ -9295,7 +9306,7 @@ function Qs(e) {
|
|
|
9295
9306
|
0
|
|
9296
9307
|
);
|
|
9297
9308
|
}
|
|
9298
|
-
const Il = "Select an option", Ul = "Loading...", zl = "Retry", Kl = "Save", Bl = "Saving...", Jl = "Cancel", Wl = "Edit", Vl = "Search", Hl = "Search...", Gl = "No data available", Ql = "Loading more...", Zl = "Are you sure you want to delete?", Yl = "Error loading data", Xl = "Close", ed = { section_title: "Maintenance Operations", no_jobs: "No operations are registered for this deployment.", run: "Run", run_dry: "Dry run", run_started: 'Started "{{name}}"', run_failed: "Failed to start operation", history: "Run history", history_help: "Recent runs. Click a row to see its inputs and output.", inputs: "Inputs", no_runs: "No runs yet.", dry_run: "Dry run", dry_run_help: "Simulate the operation without writing any changes.", confirm_destructive: 'This is a destructive operation. Type "{{name}}" to confirm.', output: "Output", no_output: "(no output)", output_truncated: "...[output truncated]", result: "Result", cancel_run: "Cancel run", triggered_by: "Triggered by {{user}}", triggered_by_api: "Triggered via API key", danger: { safe: "safe", caution: "caution", destructive: "destructive" }, status: { queued: "Queued", processing: "Running", completed: "Completed", failed: "Failed", cancelled: "Cancelled" }, raw: { title: "Run raw Python", warning: "This executes arbitrary Python on the server with full process privileges. There is no sandbox — only access control and an audit log. Use only when you know exactly what you are doing.", confirm_label: 'Type "{{phrase}}" to enable running.', run: "Execute", files_hint: 'Assign a file to `result` to publish it for download, e.g. result = ctx.save_file(text, filename="export.csv").', name: "Raw Python" }, resolve: "Resolve", page_subtitle: "Run the maintenance operations this deployment registered, follow their output, and download the files they produce.", files: { title_one: "{{count}} file", title_other: "{{count}} files", download: "Download", download_failed: "Could not download the file", missing: "This file is no longer in storage.", none: "No files yet.", none_help: "An operation publishes a file by returning one from ctx.save_file(...); it shows up here once the run finishes." }, tabs: { jobs: "Operations", files: "Files", history: "History", raw: "Raw Python", status: "Status" }, showing_runs: "Showing {{from}}–{{to}} of {{total}}", previous: "Previous", next: "Next" }, td = { title: "Admin Panel", logout: "Logout", tabs: { analytics: "Analytics", chat_history: "Chats", users: "Users", admins: "Admins", operations: "Operations", settings: "Settings", plans: "Plans", integrations: "Integrations" }, language: "Change language", unavailable_title: "Admin panel unavailable", unavailable_message: "This server doesn't run the admin API. Add the AdminAPI plugin to the backend to use the panel." }, rd = { title: "System Settings", subtitle: "Manage global configuration for application appearance and behavior.", sections: { general: "Basic Information", chat: "Chat Experience", usage: "Usage & access" }, tabs: { general: "General", chat: "Chat", usage: "Usage & access", translations: "Translations" }, general: { app_name: "App Name", admin_title: "Admin Panel Title", language: "Default Language", language_help: "The language users see on their first visit (if not auto-detected).", language_locked: "Keep everyone on this language", language_locked_help: "Hide the language picker in users' settings, so everyone sees the default language.", appearance: "Default Appearance", appearance_help: "These values apply when a user has not saved their own appearance preferences.", default_theme: "Default Theme", default_accent: "Default Accent Color", default_accent_help: "Enter any browser-supported CSS color, such as #3b82f6, rgb(59 130 246), or oklch(0.623 0.214 259.815).", default_accent_invalid: "Enter a valid browser-supported CSS color.", default_radius_app: "App default", default_accent_preview: "Accent color preview", user_bubble_accent: "User bubble accent color", user_bubble_accent_help: "Style user message bubbles with the application's primary accent color instead of a neutral surface." }, chat: { welcome_greeting: "Welcome Greeting", welcome_subtitle: "Welcome Subtitle", disclaimer: "Disclaimer Text", show_tool_details: "Show technical tool details", show_tool_details_help: "Enable this to show professional technical details of AI tools to users.", show_reasoning: "Show Thinking", show_reasoning_help: "Show the model's thinking block in the chat. The admin panel always shows it.", show_settings: "Show settings icon for users", show_settings_help: "Show a settings gear icon in the chat interface for user customization.", show_version_in_settings: "Show app version in user settings", show_version_in_settings_help: "Show the app version at the bottom of the user settings dialog. This does not affect the admin settings page.", composer_attachments: "Enable File Attachments", composer_attachments_help: "Allow users to upload and attach files to their messages.", composer_voice: "Enable Voice Input", composer_voice_help: "Show a microphone in the composer so users can dictate their messages.", composer_voice_unavailable: "No transcriber is configured on the backend, so the microphone stays hidden until one is.", thread_actions_feedback: "Enable Feedback Buttons", thread_actions_feedback_help: "Show like/dislike buttons on AI responses.", thread_actions_retry: "Enable Retry Button", thread_actions_retry_help: "Show a retry button to regenerate the last AI response.", history_enabled: "Enable Chat History Sidebar", history_enabled_help: "Show the sidebar containing previous conversations.", history_show_delete: "Allow Deleting Conversations", history_show_rename: "Allow Renaming Conversations", history_show_share: "Allow Sharing Conversations", history_show_pin: "Allow Pinning Conversations", header_actions: "Top Bar Buttons", header_actions_help: "Show or hide the extra controls this app adds to the chat's top bar.", sections_modes: "Settings Tab Modes", sections_modes_help: "Control visibility and interactability of settings tabs for users.", mode_editable: "Enable (Editable)", mode_faded: "Fade (Readonly)", mode_hidden: "Hide (Disable)", general_tab: "General Tab", profile_tab: "Profile Tab", account_tab: "Account Tab", inner_fields_modes: "Inner Fields Visibility", inner_fields_modes_help: "Configure visibility for individual fields within each tab.", greeting_placeholder: "e.g. chat:welcome", signup_enabled: "Enable Signup", signup_enabled_help: "Allow new users to register via the signup tab on the auth page.", auth_page_enabled: "Enable Login/Signup Page", auth_page_enabled_help: "Show the login and signup forms to unauthenticated users.", thread_actions_edit: "Enable Edit Message Button", thread_actions_edit_help: "Show an edit button on user messages so users can modify and resend them." }, save_success: "Settings saved successfully", save_error: "Failed to save settings", save: "Save Changes", translations_management: "Translations Management", editor_tips: "All changes are saved automatically to local state. Don't forget to push 'Save Changes' to persist.", sync_from_code: "Sync from Code", reset_button: "Reset to Defaults", reset_confirm_title: "Reset Settings?", reset_confirm_description: "This will reset all fields to their original default values from the code. Current unsaved changes will be lost.", preview: "Preview", tips_label: "TIPS", usage: { default_access: "Default access", default_access_help: "What a user gets when they have no plan and no credits of their own.", from_app: "As set in the app's code", from_app_value: "As set in the app's code ({{value}})", unlimited: "Unlimited", plan: "A plan", credits: "Starting credits", default_plan: "Default plan", default_credits: "Starting credits ({{meter}})", default_credits_help: "Every user can spend this many before they are refused.", credits_meter: "One credit is", credits_meter_help: "Changing it changes what everyone's remaining credits mean.", quota_timezone: "Quota timezone", quota_timezone_help: "Daily limits reset at midnight here, weekly ones on the first day of the week, monthly ones on the 1st. Leave empty to use the app's setting.", quota_timezone_now: "It is {{time}} in {{timezone}} now.", quota_timezone_invalid: "Unknown timezone.", quota_calendar: "Calendar", quota_calendar_help: "The calendar monthly limits and plan lengths follow. A Persian month starts on 1 Farvardin, 1 Ordibehesht, and so on. Leave it to the app to follow the timezone: Persian in Iran and Afghanistan.", calendars: { gregorian: "Gregorian", persian: "Persian (Solar Hijri)" }, week_start: "Weeks start on", week_start_help: "When weekly limits reset.", weekdays: { monday: "Monday", tuesday: "Tuesday", wednesday: "Wednesday", thursday: "Thursday", friday: "Friday", saturday: "Saturday", sunday: "Sunday" }, show_usage_bar: "Show usage in the top bar", show_usage_bar_help: "A small bar in the chat's top bar showing how much of their allowance, or of their credits, a user has left. Hidden for unlimited users.", show_usage_details: "Show details on hover", show_usage_details_help: "Hovering over or tapping the usage bar opens a card with the percentage left of each limit. Exact amounts and reset times are shown in the user's settings. When off, it only shows the percentage left." }, default_value: "Default", overridden: "Changed", reset_field: "Reset to default", invalid_json: "This isn't valid JSON yet, so it hasn't been applied.", translations_default: "Every string in this namespace is the default.", translations_overridden_one: "{{count}} string changed from the default.", translations_overridden_other: "{{count}} strings changed from the default.", add_language: "Add Language", add_namespace: "Add Namespace", add_language_prompt: "Enter language code (e.g. en, fa, fr):", add_namespace_prompt: "Enter namespace (e.g. chat, admin):", json_editor: "JSON editor" }, sd = { title: "Analytics & Statistics", days: "{{count}} Days", time_range_label: "Last", days_unit: "days", total_users: "Total Users", total_threads: "Total Threads", total_messages: "Total Messages", total_token_usage: "Total Token Usage", usage_cost: "Usage & Cost", input: "Input", output: "Output", cost: "Cost", threads_chart: "Threads", messages_chart: "Messages", token_usage_chart: "Token Usage", cost_chart: "Cost Per Day", active_users: "Active Users", conversations: "conversations", threads: "threads", feedback: "User Feedback", total_feedback: "Total Feedback", positive: "Positive", negative: "Negative", loading_analytics: "Loading analytics...", error_loading: "Error loading data", source_human: "Users", source_service: "Service", source_all: "All", source_caption_human: "Showing real users only", source_caption_service: "Showing service traffic only", source_caption_all: "Showing all traffic" }, nd = { title: "Chat History Management", search_button: "Search", threads_list: "Threads List", thread_count: "{{count}}", no_thread_title: "Untitled conversation", messages: "Messages", messages_for: "Messages for: {{title}}", select_thread: "Select a conversation to view", no_threads: "No conversations found", empty_thread: "This conversation is empty", loading_threads: "Loading...", loading_messages: "Loading messages...", user_label: "User", assistant_label: "AI Assistant", subagent_label: "Subagent", input_tokens: "Input: {{value}}", output_tokens: "Output: {{value}}", total_tokens: "Total: {{value}}", cost: "Cost: {{value}}", unpriced: "Unpriced", voice_input: "Voice input", voice_input_help: "Dictated by the user. Transcribing it is included in this turn's input cost.", voice_seconds: "{{value}} s", voice_download: "Download recording", voice_play: "Play recording", voice_pause: "Pause recording", voice_seek: "Seek in the recording", voice_load_failed: "Couldn't play this recording.", detailed_view: "Detailed view", detailed_view_help: "Failures and retries between the messages, each answer's tokens and timings, and the user's device. Only admins can see them.", events: { turn_unfinished: "Turn never finished: the server may have restarted", turn_recovered: "Answered, after problems", turn_cancelled: "Turn cancelled: the connection closed", turn_empty: "Turn ended with no answer", turn_failed: "Turn failed", turn_failed_kind: "Turn failed: {{kind}}", error_kinds: { quota: "out of quota", rate_limit: "rate limited", auth: "API key rejected", timeout: "timed out", provider_5xx: "provider error", bad_response: "unusable response", other: "unknown error" }, stalled_model_first_output: "Waiting for the model's first output", stalled_model_streaming: "Waiting for more output from the model", stalled_tool: "Waiting for a tool", tool_failed: "Tool failed: {{tool}}", model_call_failed: "Model call failed", model_call_rejected: "Model refused the call (HTTP {{status}})", model_call_slow: "Model was slow to start answering", model_call_retried: "Retrying the model call (retry {{attempt}})", model_response_broke_off: "Model response broke off", message_retried: "User resent this message", turn_refused: "Message refused: {{reason}}", reason_quota_exceeded: "limit reached", reason_credits_exhausted: "out of credits", reason_plan_expired: "plan expired", reason_maintenance: "maintenance", save_failed: "Couldn't save {{stage}}", stage_user_message: "the user's message", stage_assistant_message: "the answer", seconds: "{{value}}s", first_output: "First output: {{value}}s", bytes: "Received: {{value}} bytes", removed_messages: "Later messages removed: {{value}}", request_id: "Request ID", copy_request_id: "Copy request ID", copied: "Request ID copied", total: "Total: {{value}}s", model_calls: "Model calls: {{value}}", step_model: "Model call", step_tool: "Tool: {{tool}}", step_failed: "Failed", took: "Took: {{value}}s", no_output: "No output", never_returned: "Never returned", used_of: "Used {{used}} of {{limit}}", plan_name: "Plan: {{value}}", resets_at: "Resets: {{value}}", ended_at: "Ended: {{value}}", reason_request_too_large: "message too large", reason_invalid_request: "invalid request", reason_internal_error: "server error", attachment_failed: "Attachment dropped: {{reason}}", attachment_too_large: "too large", attachment_unreadable: "unreadable", attachment_upload_failed: "couldn't be stored", device_mobile: "Mobile", device_tablet: "Tablet", device_desktop: "Desktop" }, all_feedbacks: "All Conversations", liked_feedbacks: "Liked 👍", disliked_feedbacks: "Disliked 👎", any_feedback: "With Feedback", output_available: "Output Available", running: "Running...", thinking: "Thinking", unnamed_file: "Unnamed File", download_file: "Download File", source_human: "Users", source_service: "Service", source_all: "All sources", external_user_id: "Service ref", view_conversation: "View conversation", plan: "Plan", loading_slow: "Still loading — the server is taking longer than usual.", load_failed: "This conversation couldn't be loaded.", retry: "Try again", searching: "Searching…", filters: { button: "Filters", title: "Filter conversations", help: "Every filter you set must match.", apply: "Apply", show_results: "Show results ({{n}})", reset: "Reset", clear_all: "Clear all", remove: "Remove filter", section_users: "Users", users_placeholder: "Search by name, username, phone or email…", users_none: "No users found", section_date: "Date", date_started: "Started", date_active: "Last active", from: "From", to: "To", preset_hour: "Last hour", preset_day: "Last 24 hours", preset_week: "Last 7 days", preset_month: "Last 30 days", section_plans: "Current plan", plans_help: "The plan each user is on right now.", section_groups: "Subscription group", groups_placeholder: "Search groups…", groups_none: "No groups found", section_profile: "Profile fields", profile_values_placeholder: "Exact values, comma-separated", any: "Any", yes: "Yes", no: "No", section_cost: "Cost ({{currency}})", min: "Min", max: "Max", section_feedback: "Feedback", feedback_all: "All", feedback_any: "Rated", feedback_none: "Not rated", voice_only: "With voice input", section_source: "Traffic", external_ref_placeholder: "Exact service reference", section_deleted: "Deleted conversations", deleted_include: "Show", deleted_exclude: "Hide", deleted_only: "Only deleted", deleted_exclude_chip: "Hiding deleted", deleted_only_chip: "Deleted only", chip_user: "User", chip_group: "Group", chip_cost: "Cost", sort: "Sort", sort_newest: "Newest first", sort_oldest: "Oldest first", sort_recent_activity: "Recently active", sort_cost: "Highest cost", sort_tokens: "Most tokens", invalid_date_range: "The start date must be before the end date.", invalid_cost: "Enter a cost of zero or more.", invalid_cost_range: "The minimum cost must not exceed the maximum.", since: "since {{date}}", until: "until {{date}}" }, search_messages_placeholder: "Search conversation titles and messages…", tool: "Tool", tool_input: "Input", tool_output: "Output", tool_error: "Error" }, ad = { title: "User Management", page_subtitle: "Accounts, what they may use, and how much they have used.", user_count: "User count: {{count}}", add_user: "Add New User", edit_user: "Edit User", phone: "Phone Number", phone_placeholder: "09123456789", name: "Name", surname: "Surname", actions: "Actions", copy_token: "Copy Token (auto-refresh)", token_copied: "Token copied successfully", no_token: "No token found for this user", updating: "Updating...", no_users: "No users found.", sort_ascending: "Sort ascending", sort_descending: "Sort descending", confirm_delete_user: "Are you sure you want to delete this user?", metadata: "Metadata (JSON)", custom_fields: "Additional Fields", metadata_raw: "Metadata (Raw JSON)", advanced_usage: "Advanced usage", invalid_json: "Invalid JSON format", source_human: "Users", source_service: "Service", source_all: "All", account_type: "Account type", account_type_human: "Human user", account_type_service: "Service (external API)", account_type_service_help: "External API consumer. Phone is optional; share this account’s token with the integrating service.", service_name: "Service name", service_name_placeholder: "e.g. Acme CRM integration", optional: "optional", username: "Username", username_placeholder: "username", email: "Email", email_placeholder: "you@example.com", at_least_one_login_field: "Please provide at least one login field.", plan_custom: "Custom limits", plan_until: "until {{date}}", credit_grants: "Credit grants", access: { title: "Access & usage", column: "Access", now: "In force now", mode_default: "Default", mode_plan: "Plan", mode_credits: "Credits", mode_unlimited: "Unlimited", default_is_unlimited: "What everyone gets: no limits", default_is_plan: "What everyone gets: the {{plan}} plan", default_is_credits: "What everyone gets: {{amount}} credits ({{meter}})", plan_hint: "Limits from the catalogue that reset every day, week or month", credits_hint: "A fixed number of credits that are spent and never reset", unlimited_hint: "No limits at all", default_badge: "default", pinned_default_plan: "This is the default plan. Picking it here keeps this user on {{plan}} even if you change the default later. To follow the default instead, choose Default.", via_resolver: "Set by the app", via_subscription: "Assigned", via_credits: "Own credits", via_default: "Default access", no_limits: "No usage limits", credits_left: "{{amount}} {{meter}} left", dormant_credits: "{{amount}} credits ({{meter}}) are kept for when this ends.", reset: "Reset this window", confirm_reset: "Give this user the full allowance for this window again?", change: "Change access", change_help: "A user has one kind of access. Applying a change replaces what they have now.", new_user_help: "Leave it on Default unless this user should get something else.", plan: "Plan", no_plans: "No plans yet. Create one on the Plans tab.", for_open: "until changed", credits_operation: "Credits", credits_set: "Set to", credits_add: "Add", credits_amount: "Amount ({{meter}})", summary_default: "Back to the default access", summary_plan: "The {{plan}} plan, {{length}}", summary_unlimited: "Unlimited, {{length}}", summary_credits_set: "Exactly {{amount}} credits ({{meter}}) left", summary_credits_add: "{{amount}} more credits ({{meter}})", incomplete: "Finish choosing the new access.", confirm: "Change this user's access to: {{change}}?", apply: "Apply", history: "History ({{count}})", no_history: "No plans assigned yet.", status_active: "Active", status_scheduled: "Scheduled", status_ended: "Ended", open_ended: "until changed", end_now: "End now", confirm_end: "End this now? The user goes back to their credits or the default access.", for_duration: "for {{length}}" }, bulk: { open: "Change access", title: "Change access for many users", help: "Pick the users, then what they get. Whatever they have now is replaced.", who: "Who", what: "What they get", target_everyone: "Every user", target_list: "The users the list shows", target_ids: "Specific users, by ID", target_plan: "Users on a plan", target_field: "Users by a profile field", field: "Field", field_values: "Values, separated by commas", plan: "Plan", who_incomplete: "Finish choosing who this applies to.", counting: "Counting users…", matched: "Users matched: {{count}}", summary: "{{change}} — for {{count}} users", summary_incomplete: "Choose who, and what they get.", confirm: "Apply to {{count}} users: {{change}}?", apply: "Apply to {{count}} users" }, analytics: { title: "Usage analytics", requests: "Requests", tokens: "Tokens", tokens_split: "{{input}} in · {{output}} out", cost: "Cost", unpriced: "Unpriced requests: {{value}}", threads: "Threads", threads_total: "{{value}} in total", tokens_chart: "Tokens per day", cost_chart: "Cost per day", allowance: "Allowance now", all_time: "All time", last_active: "Last active", never: "Never" }, group: { label: "Subscription group", help: "Users in the same group share one plan and one allowance", placeholder: "None: a group of their own", confirm_join: "Adding this user to a group ends their own plan and credits.", shared_one: "Shares group {{group}} with {{count}} other user. Changes here apply to both.", shared_other: "Shares group {{group}} with {{count}} others. Changes here apply to all {{total}}.", alone: "In group {{group}}, with no other members yet. Changes here apply to the whole group.", show_members: "Show this group's members", bulk_note: "A group's access changes once for all its members. Credits skip members of a group: groups take plans." }, search_placeholder: "Search by name, username, phone, email or group…", filters: { title: "Filter users", section_joined: "Joined" }, api_badge: "API" }, id = { title: "Admin Management", admin_count: "Admin count: {{count}}", add_admin: "Add New Admin", edit_admin: "Edit Admin", username: "Username", name: "Name", password: "Password", password_edit: "New Password (leave empty to keep current)", permissions: "Permissions", perm_chat_history: "Chat History", perm_admin_management: "Admin Management", perm_user_management: "User Management", perm_analytics: "Analytics", perm_settings: "Settings", perm_operations: "Operations", no_admins: "No admins found.", confirm_delete_admin: "Are you sure you want to delete this admin?", perm_integrations: "Integrations" }, od = { access_denied_title: "Access Denied", access_denied_message: "You don't have the necessary permissions to access this page. You can contact the administrator!", back_to_dashboard: "Back to Dashboard" }, ld = { title: "Admin Panel", setup_title: "Initial Setup", setup_description: "No admin account exists yet. Enter the setup token and choose a password for the default admin user.", set_password: "Set Password", set_password_placeholder: "Choose a strong password", confirm_password: "Confirm Password", confirm_password_placeholder: "Re-enter the password", passwords_mismatch: "Passwords do not match", password_too_short: "Password must be at least 4 characters", create_admin: "Create Admin & Login", setting_up: "Setting up...", username: "Username", username_placeholder: "Username", password: "Password", password_placeholder: "••••••••", submit: "Login", logging_in: "Logging in...", error: "Login failed", copyright: "© 2026 AI Chatbot Platform", setup_token: "Setup token", setup_token_help: "The value of ADMIN_SETUP_TOKEN in the server's environment.", setup_disabled: "No admin account exists yet. To create one here, set ADMIN_SETUP_TOKEN in the server's environment and restart it." }, dd = { title: "Plans", page_subtitle: "The plans users can be put on: their lengths and their limits.", timezone: "Daily limits reset at midnight in {{timezone}}.", add_plan: "New plan", edit_plan: "Edit plan", key: "Key", key_help: "Integrations send this key to assign the plan. It cannot be changed later.", name: "Name", description: "Description", limits: "Limits", limits_help: "A message is refused once any of these limits is reached. No limits means unlimited.", limits_clock: "Days start at 00:00 in {{timezone}}, including for limits counted from the subscription start.", add_limit: "Add limit", remove_limit: "Remove limit", meter: "Counts", custom_meter: "Custom meter…", amount: "Amount", amount_cost: "Amount (currency)", window: "Window", unit: { minute_one: "minute", minute_other: "minutes", hour_one: "hour", hour_other: "hours", day_one: "day", day_other: "days", week_one: "week", week_other: "weeks", month_one: "month", month_other: "months" }, anchor: "Counted from", anchor_calendar: "Calendar", anchor_subscription: "Subscription start", anchor_multi_help: "The calendar only has single minutes, hours, days, weeks and months to line up with, so a limit that resets {{window}} counts from the subscription start.", features: "Features", features_help: "What users on this plan get besides its limits. Users on no plan get each feature's default.", features_code_help: "Switches flipped here stay across redeploys; switched back to what the code says, a feature follows the code again.", feature_overridden: "Changed here", feature_builtin: "Built in", feature_names: { voice_input: "Voice input" }, feature_descriptions: { voice_input: "Dictate messages with the microphone in the composer." }, no_features: "None", custom_features: "Custom values (JSON)", custom_features_help: "Passed to your agent as-is. Gentiq does not read it.", unlimited: "Unlimited", subscribers: "Subscriptions", badge_code: "In code", badge_archived: "Archived", badge_default: "Default", archive: "Archive", unarchive: "Restore", delete_title: "Delete {{name}}", delete_unused: "Nobody is on this plan. Past subscriptions keep its key in their history.", delete_in_use: "Subscriptions on this plan now or scheduled: {{count}}.", delete_is_default: "It is also the default access.", replace_with: "Move them to", replace_with_help: "They are put on this plan as though you had assigned it: it starts today, or when a booked subscription would have, and lasts this plan's length with its limits. Nothing of the old subscription is kept. It also becomes the default access if this plan was.", no_replacement: "Create another plan first: the users on this one need a plan to move to.", read_only: "This plan is declared in the app's code. Change it there and redeploy.", no_plans: "No plans yet. Users get the default access until you create and assign one.", invalid_limits: "Each limit needs a meter, an amount of 0 or more, and a window of 1 or more whole units.", subtitle: "Users with nothing assigned get the default access. {{access}}.", duration: "Length", duration_help: "How long the plan lasts once assigned. Its limits apply inside that span — a yearly plan can still allow only so much per day and per week. Nothing renews on its own: assign the plan again when the user pays again.", duration_custom: "Custom…", duration_every: "Number of units", invalid_duration: "A custom length needs a whole number of 1 or more.", align: "Ends", align_day: "At the start of the day", align_calendar: "On the calendar", align_day_help: "Counted from the start of the day it is assigned: a month from 16 Sep ends on 16 Oct at 00:00 in {{timezone}}.", align_calendar_help: "The period it is assigned in counts as the first, so it ends at 00:00 in {{timezone}} on the first day of a month, week or year of the quota calendar: a month from 25 Shahrivar ends on 1 Mehr.", align_calendar_short: "ends on the calendar" }, cd = { title: "Integrations", subtitle: "API keys for platforms that sign their own users in to this chat.", add_key: "New API key", name: "Name", name_placeholder: "e.g. School portal", scopes: "Permissions", key: "Key", created: "Created {{datetime}}", last_used: "Last used", never_used: "Never", status: "Status", active: "Active", revoked: "Revoked", revoke: "Revoke", confirm_revoke: "Revoke this key? Requests that use it are refused immediately.", secret_title: "Copy your new key", secret_help: "This is the only time the key is shown. Keep it on the platform's server, never in a browser.", copy: "Copy", copied: "Copied", done: "Done", no_keys: "No API keys yet.", scope_required: "Choose at least one permission.", scope: { users_read: "Read users", users_write: "Create and update users", sessions_write: "Sign users in", subscriptions_read: "Read subscriptions", subscriptions_write: "Assign and end plans", credits_write: "Add credits", usage_read: "Read usage", plans_read: "Read plans" } }, ud = { banner: "Maintenance mode is on. Users can't send messages.", banner_manage: "Manage", maintenance: { title: "Maintenance mode", help: "Close the chat to new messages and show users a notice. Chat history stays readable.", unavailable: "Maintenance mode is turned off in this app's code.", operational: "Operational: the chat is open", active: "Under maintenance", scheduled: "Maintenance scheduled", by_rule: "Watch rule: {{rule}}", by_admin: "{{admin}}", display_banner: "Banner above the chat", display_fullscreen: "Full screen", started_by: "Started by", reason: "Reason", reason_placeholder: "For the incident log; users never see it", starts_at: "Starts", since: "Since", ends_at: "Ends", until_ended: "When an admin ends it", notice: "Notice", notice_title: "Title", notice_message: "Message", notice_help: "Leave empty to show the default notice in each user's language.", display: "Show as", schedule_help: "Leave Starts empty to start now, and Ends empty to keep it on until you end it.", start: "Start maintenance", schedule: "Schedule maintenance", end: "End maintenance", started: "Maintenance mode is on", scheduled_toast: "Maintenance scheduled", ended: "Maintenance mode is off" }, rules: { title: "Watch rules", help: "Checks the app runs on its own chat traffic. A rule that trips is logged below and can put the chat into maintenance by itself.", default_display: "Notice shown when a rule starts maintenance", default_display_help: "Rules use the default title and message.", tripped: "Tripped", action: "When it trips", action_notify: "Log and notify", action_maintenance: "Start maintenance", auto_resolve: "Auto-end after (s)", auto_resolve_never: "Never: an admin ends it", save: "Save", discard: "Discard", saved: "Watch rule saved", model_quota: { name: "Model quota reached", description: "The model provider says the account is out of quota or credit. Every answer fails until it is topped up." }, error_rate: { name: "Failed answers", description: "A large share of recent answers ended in an error or came back empty." }, hung_streams: { name: "Hung answers", description: "Answers that started but never finished. This is how a chat that silently stops responding shows up." } }, params: { window_s: "Window (s)", min_errors: "Quota errors", threshold: "Failure share (0–1)", min_samples: "Minimum answers", max_age_s: "Stuck after (s)", min_count: "Stuck answers" }, worker: { title: "Last {{minutes}} minutes on this server", help: "Only the server process that answered this page. Use Grafana for the whole deployment.", turns: "Answers", success_ratio: "Answered", errors: "Errors", empty: "Empty", inflight: "Streaming now", oldest_inflight: "Oldest stream" }, error_kinds: { quota: "Quota", rate_limit: "Rate limit", auth: "API key", timeout: "Timeout", provider_5xx: "Provider outage", bad_response: "Bad response", other: "Other" }, incidents: { title: "Incidents", help: "Watch rules that tripped and maintenance windows, newest first.", empty: "No incidents yet.", manual: "Maintenance by an admin", open: "Ongoing", resolved: "Resolved", resolved_at: "Resolved {{time}}" } }, md = { placeholder: "Pick a date and time", clear: "Clear", previous_month: "Previous month", next_month: "Next month", calendar_persian: "Solar Hijri", calendar_gregory: "Gregorian", time: "Time", hour: "Hour", minute: "Minute", now: "Now", done: "Done" }, Zs = {
|
|
9309
|
+
const Il = "Select an option", Ul = "Loading...", zl = "Retry", Kl = "Save", Bl = "Saving...", Jl = "Cancel", Wl = "Edit", Vl = "Search", Hl = "Search...", Gl = "No data available", Ql = "Loading more...", Zl = "Are you sure you want to delete?", Yl = "Error loading data", Xl = "Close", ed = { section_title: "Maintenance Operations", no_jobs: "No operations are registered for this deployment.", run: "Run", run_dry: "Dry run", run_started: 'Started "{{name}}"', run_failed: "Failed to start operation", history: "Run history", history_help: "Recent runs. Click a row to see its inputs and output.", inputs: "Inputs", no_runs: "No runs yet.", dry_run: "Dry run", dry_run_help: "Simulate the operation without writing any changes.", confirm_destructive: 'This is a destructive operation. Type "{{name}}" to confirm.', output: "Output", no_output: "(no output)", output_truncated: "...[output truncated]", result: "Result", cancel_run: "Cancel run", triggered_by: "Triggered by {{user}}", triggered_by_api: "Triggered via API key", danger: { safe: "safe", caution: "caution", destructive: "destructive" }, status: { queued: "Queued", processing: "Running", completed: "Completed", failed: "Failed", cancelled: "Cancelled" }, raw: { title: "Run raw Python", warning: "This executes arbitrary Python on the server with full process privileges. There is no sandbox — only access control and an audit log. Use only when you know exactly what you are doing.", confirm_label: 'Type "{{phrase}}" to enable running.', run: "Execute", files_hint: 'Assign a file to `result` to publish it for download, e.g. result = ctx.save_file(text, filename="export.csv").', name: "Raw Python" }, resolve: "Resolve", page_subtitle: "Run the maintenance operations this deployment registered, follow their output, and download the files they produce.", files: { title_one: "{{count}} file", title_other: "{{count}} files", download: "Download", download_failed: "Could not download the file", missing: "This file is no longer in storage.", none: "No files yet.", none_help: "An operation publishes a file by returning one from ctx.save_file(...); it shows up here once the run finishes." }, tabs: { jobs: "Operations", files: "Files", history: "History", raw: "Raw Python", status: "Status" }, showing_runs: "Showing {{from}}–{{to}} of {{total}}", previous: "Previous", next: "Next" }, td = { title: "Admin Panel", logout: "Logout", tabs: { analytics: "Analytics", chat_history: "Chats", users: "Users", admins: "Admins", operations: "Operations", settings: "Settings", plans: "Plans", integrations: "Integrations" }, language: "Change language", unavailable_title: "Admin panel unavailable", unavailable_message: "This server doesn't run the admin API. Add the AdminAPI plugin to the backend to use the panel." }, rd = { title: "System Settings", subtitle: "Manage global configuration for application appearance and behavior.", sections: { general: "Basic Information", chat: "Chat Experience", usage: "Usage & access" }, tabs: { general: "General", chat: "Chat", usage: "Usage & access", translations: "Translations" }, general: { app_name: "App Name", admin_title: "Admin Panel Title", language: "Default Language", language_help: "The language users see on their first visit (if not auto-detected).", language_locked: "Keep everyone on this language", language_locked_help: "Hide the language picker in users' settings, so everyone sees the default language.", appearance: "Default Appearance", appearance_help: "These values apply when a user has not saved their own appearance preferences.", default_theme: "Default Theme", default_accent: "Default Accent Color", default_accent_help: "Enter any browser-supported CSS color, such as #3b82f6, rgb(59 130 246), or oklch(0.623 0.214 259.815).", default_accent_invalid: "Enter a valid browser-supported CSS color.", default_radius_app: "App default", default_accent_preview: "Accent color preview", user_bubble_accent: "User bubble accent color", user_bubble_accent_help: "Style user message bubbles with the application's primary accent color instead of a neutral surface." }, chat: { welcome_greeting: "Welcome Greeting", welcome_subtitle: "Welcome Subtitle", disclaimer: "Disclaimer Text", show_tool_details: "Show technical tool details", show_tool_details_help: "Enable this to show professional technical details of AI tools to users.", show_welcome_glow: "Show welcome background glow", show_welcome_glow_help: "Display a subtle accent-tinted ambient glow behind the new-chat welcome screen.", show_reasoning: "Show Thinking", show_reasoning_help: "Show the model's thinking block in the chat. The admin panel always shows it.", show_settings: "Show settings icon for users", show_settings_help: "Show a settings gear icon in the chat interface for user customization.", show_version_in_settings: "Show app version in user settings", show_version_in_settings_help: "Show the app version at the bottom of the user settings dialog. This does not affect the admin settings page.", composer_attachments: "Enable File Attachments", composer_attachments_help: "Allow users to upload and attach files to their messages.", composer_voice: "Enable Voice Input", composer_voice_help: "Show a microphone in the composer so users can dictate their messages.", composer_voice_unavailable: "No transcriber is configured on the backend, so the microphone stays hidden until one is.", thread_actions_feedback: "Enable Feedback Buttons", thread_actions_feedback_help: "Show like/dislike buttons on AI responses.", thread_actions_retry: "Enable Retry Button", thread_actions_retry_help: "Show a retry button to regenerate the last AI response.", history_enabled: "Enable Chat History Sidebar", history_enabled_help: "Show the sidebar containing previous conversations.", history_show_delete: "Allow Deleting Conversations", history_show_rename: "Allow Renaming Conversations", history_show_share: "Allow Sharing Conversations", history_show_pin: "Allow Pinning Conversations", header_actions: "Top Bar Buttons", header_actions_help: "Show or hide the extra controls this app adds to the chat's top bar.", sections_modes: "Settings Tab Modes", sections_modes_help: "Control visibility and interactability of settings tabs for users.", mode_editable: "Enable (Editable)", mode_faded: "Fade (Readonly)", mode_hidden: "Hide (Disable)", general_tab: "General Tab", profile_tab: "Profile Tab", account_tab: "Account Tab", inner_fields_modes: "Inner Fields Visibility", inner_fields_modes_help: "Configure visibility for individual fields within each tab.", greeting_placeholder: "e.g. chat:welcome", signup_enabled: "Enable Signup", signup_enabled_help: "Allow new users to register via the signup tab on the auth page.", auth_page_enabled: "Enable Login/Signup Page", auth_page_enabled_help: "Show the login and signup forms to unauthenticated users.", thread_actions_edit: "Enable Edit Message Button", thread_actions_edit_help: "Show an edit button on user messages so users can modify and resend them." }, save_success: "Settings saved successfully", save_error: "Failed to save settings", save: "Save Changes", translations_management: "Translations Management", editor_tips: "All changes are saved automatically to local state. Don't forget to push 'Save Changes' to persist.", sync_from_code: "Sync from Code", reset_button: "Reset to Defaults", reset_confirm_title: "Reset Settings?", reset_confirm_description: "This will reset all fields to their original default values from the code. Current unsaved changes will be lost.", preview: "Preview", tips_label: "TIPS", usage: { default_access: "Default access", default_access_help: "What a user gets when they have no plan and no credits of their own.", from_app: "As set in the app's code", from_app_value: "As set in the app's code ({{value}})", unlimited: "Unlimited", plan: "A plan", credits: "Starting credits", default_plan: "Default plan", default_credits: "Starting credits ({{meter}})", default_credits_help: "Every user can spend this many before they are refused.", credits_meter: "One credit is", credits_meter_help: "Changing it changes what everyone's remaining credits mean.", quota_timezone: "Quota timezone", quota_timezone_help: "Daily limits reset at midnight here, weekly ones on the first day of the week, monthly ones on the 1st. Leave empty to use the app's setting.", quota_timezone_now: "It is {{time}} in {{timezone}} now.", quota_timezone_invalid: "Unknown timezone.", quota_calendar: "Calendar", quota_calendar_help: "The calendar monthly limits and plan lengths follow. A Persian month starts on 1 Farvardin, 1 Ordibehesht, and so on. Leave it to the app to follow the timezone: Persian in Iran and Afghanistan.", calendars: { gregorian: "Gregorian", persian: "Persian (Solar Hijri)" }, week_start: "Weeks start on", week_start_help: "When weekly limits reset.", weekdays: { monday: "Monday", tuesday: "Tuesday", wednesday: "Wednesday", thursday: "Thursday", friday: "Friday", saturday: "Saturday", sunday: "Sunday" }, show_usage_bar: "Show usage in the top bar", show_usage_bar_help: "A small bar in the chat's top bar showing how much of their allowance, or of their credits, a user has left. Hidden for unlimited users.", show_usage_details: "Show details on hover", show_usage_details_help: "Hovering over or tapping the usage bar opens a card with the percentage left of each limit. Exact amounts and reset times are shown in the user's settings. When off, it only shows the percentage left." }, default_value: "Default", overridden: "Changed", reset_field: "Reset to default", invalid_json: "This isn't valid JSON yet, so it hasn't been applied.", translations_default: "Every string in this namespace is the default.", translations_overridden_one: "{{count}} string changed from the default.", translations_overridden_other: "{{count}} strings changed from the default.", add_language: "Add Language", add_namespace: "Add Namespace", add_language_prompt: "Enter language code (e.g. en, fa, fr):", add_namespace_prompt: "Enter namespace (e.g. chat, admin):", json_editor: "JSON editor" }, sd = { title: "Analytics & Statistics", days: "{{count}} Days", time_range_label: "Last", days_unit: "days", total_users: "Total Users", total_threads: "Total Threads", total_messages: "Total Messages", total_token_usage: "Total Token Usage", usage_cost: "Usage & Cost", input: "Input", output: "Output", cost: "Cost", threads_chart: "Threads", messages_chart: "Messages", token_usage_chart: "Token Usage", cost_chart: "Cost Per Day", active_users: "Active Users", conversations: "conversations", threads: "threads", feedback: "User Feedback", total_feedback: "Total Feedback", positive: "Positive", negative: "Negative", loading_analytics: "Loading analytics...", error_loading: "Error loading data", source_human: "Users", source_service: "Service", source_all: "All", source_caption_human: "Showing real users only", source_caption_service: "Showing service traffic only", source_caption_all: "Showing all traffic" }, nd = { title: "Chat History Management", search_button: "Search", threads_list: "Threads List", thread_count: "{{count}}", no_thread_title: "Untitled conversation", messages: "Messages", messages_for: "Messages for: {{title}}", select_thread: "Select a conversation to view", no_threads: "No conversations found", empty_thread: "This conversation is empty", loading_threads: "Loading...", loading_messages: "Loading messages...", user_label: "User", assistant_label: "AI Assistant", subagent_label: "Subagent", input_tokens: "Input: {{value}}", output_tokens: "Output: {{value}}", total_tokens: "Total: {{value}}", cost: "Cost: {{value}}", unpriced: "Unpriced", voice_input: "Voice input", voice_input_help: "Dictated by the user. Transcribing it is included in this turn's input cost.", voice_seconds: "{{value}} s", voice_download: "Download recording", voice_play: "Play recording", voice_pause: "Pause recording", voice_seek: "Seek in the recording", voice_load_failed: "Couldn't play this recording.", detailed_view: "Detailed view", detailed_view_help: "Failures and retries between the messages, each answer's tokens and timings, and the user's device. Only admins can see them.", events: { turn_unfinished: "Turn never finished: the server may have restarted", turn_recovered: "Answered, after problems", turn_cancelled: "Turn cancelled: the connection closed", turn_empty: "Turn ended with no answer", turn_failed: "Turn failed", turn_failed_kind: "Turn failed: {{kind}}", error_kinds: { quota: "out of quota", rate_limit: "rate limited", auth: "API key rejected", timeout: "timed out", provider_5xx: "provider error", bad_response: "unusable response", other: "unknown error" }, stalled_model_first_output: "Waiting for the model's first output", stalled_model_streaming: "Waiting for more output from the model", stalled_tool: "Waiting for a tool", tool_failed: "Tool failed: {{tool}}", model_call_failed: "Model call failed", model_call_rejected: "Model refused the call (HTTP {{status}})", model_call_slow: "Model was slow to start answering", model_call_retried: "Retrying the model call (retry {{attempt}})", model_response_broke_off: "Model response broke off", message_retried: "User resent this message", turn_refused: "Message refused: {{reason}}", reason_quota_exceeded: "limit reached", reason_credits_exhausted: "out of credits", reason_plan_expired: "plan expired", reason_maintenance: "maintenance", save_failed: "Couldn't save {{stage}}", stage_user_message: "the user's message", stage_assistant_message: "the answer", seconds: "{{value}}s", first_output: "First output: {{value}}s", bytes: "Received: {{value}} bytes", removed_messages: "Later messages removed: {{value}}", request_id: "Request ID", copy_request_id: "Copy request ID", copied: "Request ID copied", total: "Total: {{value}}s", model_calls: "Model calls: {{value}}", step_model: "Model call", step_tool: "Tool: {{tool}}", step_failed: "Failed", took: "Took: {{value}}s", no_output: "No output", never_returned: "Never returned", used_of: "Used {{used}} of {{limit}}", plan_name: "Plan: {{value}}", resets_at: "Resets: {{value}}", ended_at: "Ended: {{value}}", reason_request_too_large: "message too large", reason_invalid_request: "invalid request", reason_internal_error: "server error", attachment_failed: "Attachment dropped: {{reason}}", attachment_too_large: "too large", attachment_unreadable: "unreadable", attachment_upload_failed: "couldn't be stored", device_mobile: "Mobile", device_tablet: "Tablet", device_desktop: "Desktop" }, all_feedbacks: "All Conversations", liked_feedbacks: "Liked 👍", disliked_feedbacks: "Disliked 👎", any_feedback: "With Feedback", output_available: "Output Available", running: "Running...", thinking: "Thinking", unnamed_file: "Unnamed File", download_file: "Download File", source_human: "Users", source_service: "Service", source_all: "All sources", external_user_id: "Service ref", view_conversation: "View conversation", plan: "Plan", loading_slow: "Still loading — the server is taking longer than usual.", load_failed: "This conversation couldn't be loaded.", retry: "Try again", searching: "Searching…", filters: { button: "Filters", title: "Filter conversations", help: "Every filter you set must match.", apply: "Apply", show_results: "Show results ({{n}})", reset: "Reset", clear_all: "Clear all", remove: "Remove filter", section_users: "Users", users_placeholder: "Search by name, username, phone or email…", users_none: "No users found", section_date: "Date", date_started: "Started", date_active: "Last active", from: "From", to: "To", preset_hour: "Last hour", preset_day: "Last 24 hours", preset_week: "Last 7 days", preset_month: "Last 30 days", section_plans: "Current plan", plans_help: "The plan each user is on right now.", section_groups: "Subscription group", groups_placeholder: "Search groups…", groups_none: "No groups found", section_profile: "Profile fields", profile_values_placeholder: "Exact values, comma-separated", any: "Any", yes: "Yes", no: "No", section_cost: "Cost ({{currency}})", min: "Min", max: "Max", section_feedback: "Feedback", feedback_all: "All", feedback_any: "Rated", feedback_none: "Not rated", voice_only: "With voice input", section_source: "Traffic", external_ref_placeholder: "Exact service reference", section_deleted: "Deleted conversations", deleted_include: "Show", deleted_exclude: "Hide", deleted_only: "Only deleted", deleted_exclude_chip: "Hiding deleted", deleted_only_chip: "Deleted only", chip_user: "User", chip_group: "Group", chip_cost: "Cost", sort: "Sort", sort_newest: "Newest first", sort_oldest: "Oldest first", sort_recent_activity: "Recently active", sort_cost: "Highest cost", sort_tokens: "Most tokens", invalid_date_range: "The start date must be before the end date.", invalid_cost: "Enter a cost of zero or more.", invalid_cost_range: "The minimum cost must not exceed the maximum.", since: "since {{date}}", until: "until {{date}}" }, search_messages_placeholder: "Search conversation titles and messages…", tool: "Tool", tool_input: "Input", tool_output: "Output", tool_error: "Error" }, ad = { title: "User Management", page_subtitle: "Accounts, what they may use, and how much they have used.", user_count: "User count: {{count}}", add_user: "Add New User", edit_user: "Edit User", phone: "Phone Number", phone_placeholder: "09123456789", name: "Name", surname: "Surname", actions: "Actions", copy_token: "Copy Token (auto-refresh)", token_copied: "Token copied successfully", no_token: "No token found for this user", updating: "Updating...", no_users: "No users found.", sort_ascending: "Sort ascending", sort_descending: "Sort descending", confirm_delete_user: "Are you sure you want to delete this user?", metadata: "Metadata (JSON)", custom_fields: "Additional Fields", metadata_raw: "Metadata (Raw JSON)", advanced_usage: "Advanced usage", invalid_json: "Invalid JSON format", source_human: "Users", source_service: "Service", source_all: "All", account_type: "Account type", account_type_human: "Human user", account_type_service: "Service (external API)", account_type_service_help: "External API consumer. Phone is optional; share this account’s token with the integrating service.", service_name: "Service name", service_name_placeholder: "e.g. Acme CRM integration", optional: "optional", username: "Username", username_placeholder: "username", email: "Email", email_placeholder: "you@example.com", at_least_one_login_field: "Please provide at least one login field.", plan_custom: "Custom limits", plan_until: "until {{date}}", credit_grants: "Credit grants", access: { title: "Access & usage", column: "Access", now: "In force now", mode_default: "Default", mode_plan: "Plan", mode_credits: "Credits", mode_unlimited: "Unlimited", default_is_unlimited: "What everyone gets: no limits", default_is_plan: "What everyone gets: the {{plan}} plan", default_is_credits: "What everyone gets: {{amount}} credits ({{meter}})", plan_hint: "Limits from the catalogue that reset every day, week or month", credits_hint: "A fixed number of credits that are spent and never reset", unlimited_hint: "No limits at all", default_badge: "default", pinned_default_plan: "This is the default plan. Picking it here keeps this user on {{plan}} even if you change the default later. To follow the default instead, choose Default.", via_resolver: "Set by the app", via_subscription: "Assigned", via_credits: "Own credits", via_default: "Default access", no_limits: "No usage limits", credits_left: "{{amount}} {{meter}} left", dormant_credits: "{{amount}} credits ({{meter}}) are kept for when this ends.", reset: "Reset this window", confirm_reset: "Give this user the full allowance for this window again?", change: "Change access", change_help: "A user has one kind of access. Applying a change replaces what they have now.", new_user_help: "Leave it on Default unless this user should get something else.", plan: "Plan", no_plans: "No plans yet. Create one on the Plans tab.", for_open: "until changed", credits_operation: "Credits", credits_set: "Set to", credits_add: "Add", credits_amount: "Amount ({{meter}})", summary_default: "Back to the default access", summary_plan: "The {{plan}} plan, {{length}}", summary_unlimited: "Unlimited, {{length}}", summary_credits_set: "Exactly {{amount}} credits ({{meter}}) left", summary_credits_add: "{{amount}} more credits ({{meter}})", incomplete: "Finish choosing the new access.", confirm: "Change this user's access to: {{change}}?", apply: "Apply", history: "History ({{count}})", no_history: "No plans assigned yet.", status_active: "Active", status_scheduled: "Scheduled", status_ended: "Ended", open_ended: "until changed", end_now: "End now", confirm_end: "End this now? The user goes back to their credits or the default access.", for_duration: "for {{length}}" }, bulk: { open: "Change access", title: "Change access for many users", help: "Pick the users, then what they get. Whatever they have now is replaced.", who: "Who", what: "What they get", target_everyone: "Every user", target_list: "The users the list shows", target_ids: "Specific users, by ID", target_plan: "Users on a plan", target_field: "Users by a profile field", field: "Field", field_values: "Values, separated by commas", plan: "Plan", who_incomplete: "Finish choosing who this applies to.", counting: "Counting users…", matched: "Users matched: {{count}}", summary: "{{change}} — for {{count}} users", summary_incomplete: "Choose who, and what they get.", confirm: "Apply to {{count}} users: {{change}}?", apply: "Apply to {{count}} users" }, analytics: { title: "Usage analytics", requests: "Requests", tokens: "Tokens", tokens_split: "{{input}} in · {{output}} out", cost: "Cost", unpriced: "Unpriced requests: {{value}}", threads: "Threads", threads_total: "{{value}} in total", tokens_chart: "Tokens per day", cost_chart: "Cost per day", allowance: "Allowance now", all_time: "All time", last_active: "Last active", never: "Never" }, group: { label: "Subscription group", help: "Users in the same group share one plan and one allowance", placeholder: "None: a group of their own", confirm_join: "Adding this user to a group ends their own plan and credits.", shared_one: "Shares group {{group}} with {{count}} other user. Changes here apply to both.", shared_other: "Shares group {{group}} with {{count}} others. Changes here apply to all {{total}}.", alone: "In group {{group}}, with no other members yet. Changes here apply to the whole group.", show_members: "Show this group's members", bulk_note: "A group's access changes once for all its members. Credits skip members of a group: groups take plans." }, search_placeholder: "Search by name, username, phone, email or group…", filters: { title: "Filter users", section_joined: "Joined" }, api_badge: "API" }, id = { title: "Admin Management", admin_count: "Admin count: {{count}}", add_admin: "Add New Admin", edit_admin: "Edit Admin", username: "Username", name: "Name", password: "Password", password_edit: "New Password (leave empty to keep current)", permissions: "Permissions", perm_chat_history: "Chat History", perm_admin_management: "Admin Management", perm_user_management: "User Management", perm_analytics: "Analytics", perm_settings: "Settings", perm_operations: "Operations", no_admins: "No admins found.", confirm_delete_admin: "Are you sure you want to delete this admin?", perm_integrations: "Integrations" }, od = { access_denied_title: "Access Denied", access_denied_message: "You don't have the necessary permissions to access this page. You can contact the administrator!", back_to_dashboard: "Back to Dashboard" }, ld = { title: "Admin Panel", setup_title: "Initial Setup", setup_description: "No admin account exists yet. Enter the setup token and choose a password for the default admin user.", set_password: "Set Password", set_password_placeholder: "Choose a strong password", confirm_password: "Confirm Password", confirm_password_placeholder: "Re-enter the password", passwords_mismatch: "Passwords do not match", password_too_short: "Password must be at least 4 characters", create_admin: "Create Admin & Login", setting_up: "Setting up...", username: "Username", username_placeholder: "Username", password: "Password", password_placeholder: "••••••••", submit: "Login", logging_in: "Logging in...", error: "Login failed", copyright: "© 2026 AI Chatbot Platform", setup_token: "Setup token", setup_token_help: "The value of ADMIN_SETUP_TOKEN in the server's environment.", setup_disabled: "No admin account exists yet. To create one here, set ADMIN_SETUP_TOKEN in the server's environment and restart it." }, dd = { title: "Plans", page_subtitle: "The plans users can be put on: their lengths and their limits.", timezone: "Daily limits reset at midnight in {{timezone}}.", add_plan: "New plan", edit_plan: "Edit plan", key: "Key", key_help: "Integrations send this key to assign the plan. It cannot be changed later.", name: "Name", description: "Description", limits: "Limits", limits_help: "A message is refused once any of these limits is reached. No limits means unlimited.", limits_clock: "Days start at 00:00 in {{timezone}}, including for limits counted from the subscription start.", add_limit: "Add limit", remove_limit: "Remove limit", meter: "Counts", custom_meter: "Custom meter…", amount: "Amount", amount_cost: "Amount (currency)", window: "Window", unit: { minute_one: "minute", minute_other: "minutes", hour_one: "hour", hour_other: "hours", day_one: "day", day_other: "days", week_one: "week", week_other: "weeks", month_one: "month", month_other: "months" }, anchor: "Counted from", anchor_calendar: "Calendar", anchor_subscription: "Subscription start", anchor_multi_help: "The calendar only has single minutes, hours, days, weeks and months to line up with, so a limit that resets {{window}} counts from the subscription start.", features: "Features", features_help: "What users on this plan get besides its limits. Users on no plan get each feature's default.", features_code_help: "Switches flipped here stay across redeploys; switched back to what the code says, a feature follows the code again.", feature_overridden: "Changed here", feature_builtin: "Built in", feature_names: { voice_input: "Voice input" }, feature_descriptions: { voice_input: "Dictate messages with the microphone in the composer." }, no_features: "None", custom_features: "Custom values (JSON)", custom_features_help: "Passed to your agent as-is. Gentiq does not read it.", unlimited: "Unlimited", subscribers: "Subscriptions", badge_code: "In code", badge_archived: "Archived", badge_default: "Default", archive: "Archive", unarchive: "Restore", delete_title: "Delete {{name}}", delete_unused: "Nobody is on this plan. Past subscriptions keep its key in their history.", delete_in_use: "Subscriptions on this plan now or scheduled: {{count}}.", delete_is_default: "It is also the default access.", replace_with: "Move them to", replace_with_help: "They are put on this plan as though you had assigned it: it starts today, or when a booked subscription would have, and lasts this plan's length with its limits. Nothing of the old subscription is kept. It also becomes the default access if this plan was.", no_replacement: "Create another plan first: the users on this one need a plan to move to.", read_only: "This plan is declared in the app's code. Change it there and redeploy.", no_plans: "No plans yet. Users get the default access until you create and assign one.", invalid_limits: "Each limit needs a meter, an amount of 0 or more, and a window of 1 or more whole units.", subtitle: "Users with nothing assigned get the default access. {{access}}.", duration: "Length", duration_help: "How long the plan lasts once assigned. Its limits apply inside that span — a yearly plan can still allow only so much per day and per week. Nothing renews on its own: assign the plan again when the user pays again.", duration_custom: "Custom…", duration_every: "Number of units", invalid_duration: "A custom length needs a whole number of 1 or more.", align: "Ends", align_day: "At the start of the day", align_calendar: "On the calendar", align_day_help: "Counted from the start of the day it is assigned: a month from 16 Sep ends on 16 Oct at 00:00 in {{timezone}}.", align_calendar_help: "The period it is assigned in counts as the first, so it ends at 00:00 in {{timezone}} on the first day of a month, week or year of the quota calendar: a month from 25 Shahrivar ends on 1 Mehr.", align_calendar_short: "ends on the calendar" }, cd = { title: "Integrations", subtitle: "API keys for platforms that sign their own users in to this chat.", add_key: "New API key", name: "Name", name_placeholder: "e.g. School portal", scopes: "Permissions", key: "Key", created: "Created {{datetime}}", last_used: "Last used", never_used: "Never", status: "Status", active: "Active", revoked: "Revoked", revoke: "Revoke", confirm_revoke: "Revoke this key? Requests that use it are refused immediately.", secret_title: "Copy your new key", secret_help: "This is the only time the key is shown. Keep it on the platform's server, never in a browser.", copy: "Copy", copied: "Copied", done: "Done", no_keys: "No API keys yet.", scope_required: "Choose at least one permission.", scope: { users_read: "Read users", users_write: "Create and update users", sessions_write: "Sign users in", subscriptions_read: "Read subscriptions", subscriptions_write: "Assign and end plans", credits_write: "Add credits", usage_read: "Read usage", plans_read: "Read plans" } }, ud = { banner: "Maintenance mode is on. Users can't send messages.", banner_manage: "Manage", maintenance: { title: "Maintenance mode", help: "Close the chat to new messages and show users a notice. Chat history stays readable.", unavailable: "Maintenance mode is turned off in this app's code.", operational: "Operational: the chat is open", active: "Under maintenance", scheduled: "Maintenance scheduled", by_rule: "Watch rule: {{rule}}", by_admin: "{{admin}}", display_banner: "Banner above the chat", display_fullscreen: "Full screen", started_by: "Started by", reason: "Reason", reason_placeholder: "For the incident log; users never see it", starts_at: "Starts", since: "Since", ends_at: "Ends", until_ended: "When an admin ends it", notice: "Notice", notice_title: "Title", notice_message: "Message", notice_help: "Leave empty to show the default notice in each user's language.", display: "Show as", schedule_help: "Leave Starts empty to start now, and Ends empty to keep it on until you end it.", start: "Start maintenance", schedule: "Schedule maintenance", end: "End maintenance", started: "Maintenance mode is on", scheduled_toast: "Maintenance scheduled", ended: "Maintenance mode is off" }, rules: { title: "Watch rules", help: "Checks the app runs on its own chat traffic. A rule that trips is logged below and can put the chat into maintenance by itself.", default_display: "Notice shown when a rule starts maintenance", default_display_help: "Rules use the default title and message.", tripped: "Tripped", action: "When it trips", action_notify: "Log and notify", action_maintenance: "Start maintenance", auto_resolve: "Auto-end after (s)", auto_resolve_never: "Never: an admin ends it", save: "Save", discard: "Discard", saved: "Watch rule saved", model_quota: { name: "Model quota reached", description: "The model provider says the account is out of quota or credit. Every answer fails until it is topped up." }, error_rate: { name: "Failed answers", description: "A large share of recent answers ended in an error or came back empty." }, hung_streams: { name: "Hung answers", description: "Answers that started but never finished. This is how a chat that silently stops responding shows up." } }, params: { window_s: "Window (s)", min_errors: "Quota errors", threshold: "Failure share (0–1)", min_samples: "Minimum answers", max_age_s: "Stuck after (s)", min_count: "Stuck answers" }, worker: { title: "Last {{minutes}} minutes on this server", help: "Only the server process that answered this page. Use Grafana for the whole deployment.", turns: "Answers", success_ratio: "Answered", errors: "Errors", empty: "Empty", inflight: "Streaming now", oldest_inflight: "Oldest stream" }, error_kinds: { quota: "Quota", rate_limit: "Rate limit", auth: "API key", timeout: "Timeout", provider_5xx: "Provider outage", bad_response: "Bad response", other: "Other" }, incidents: { title: "Incidents", help: "Watch rules that tripped and maintenance windows, newest first.", empty: "No incidents yet.", manual: "Maintenance by an admin", open: "Ongoing", resolved: "Resolved", resolved_at: "Resolved {{time}}" } }, md = { placeholder: "Pick a date and time", clear: "Clear", previous_month: "Previous month", next_month: "Next month", calendar_persian: "Solar Hijri", calendar_gregory: "Gregorian", time: "Time", hour: "Hour", minute: "Minute", now: "Now", done: "Done" }, Zs = {
|
|
9299
9310
|
select_placeholder: Il,
|
|
9300
9311
|
loading: Ul,
|
|
9301
9312
|
retry: zl,
|
|
@@ -9481,6 +9492,7 @@ function fd(e, r, s) {
|
|
|
9481
9492
|
welcome_subtitle: typeof o?.subtitle == "string" ? o.subtitle : "",
|
|
9482
9493
|
disclaimer: typeof a == "string" ? a : "",
|
|
9483
9494
|
show_tool_details: n?.showToolDetails ?? !0,
|
|
9495
|
+
show_welcome_glow: n?.showWelcomeGlow ?? !0,
|
|
9484
9496
|
show_reasoning: s?.show_reasoning ?? !0,
|
|
9485
9497
|
show_settings: n?.showSettings ?? !0,
|
|
9486
9498
|
show_version_in_settings: n?.showVersionInSettings ?? !0,
|
|
@@ -9857,22 +9869,22 @@ const Td = [
|
|
|
9857
9869
|
"integrations"
|
|
9858
9870
|
];
|
|
9859
9871
|
function jd({ tabs: e }) {
|
|
9860
|
-
const { t: r, i18n: s } = w(["admin", "settings"]), n = Kr(), o = jt(), c = (Gt()["*"] ?? "").replace(/\/+$/, "").split("/")[0], d = e.includes(c) ? c : e[0], l = e.some((U) => U !== "integrations"), u = he((U) => U.app), m = he((U) => U.configured), h = bn((U) => U.configured), p =
|
|
9872
|
+
const { t: r, i18n: s } = w(["admin", "settings"]), n = Kr(), o = jt(), c = (Gt()["*"] ?? "").replace(/\/+$/, "").split("/")[0], d = e.includes(c) ? c : e[0], l = e.some((U) => U !== "integrations"), u = he((U) => U.app), m = he((U) => U.configured), h = bn((U) => U.configured), p = ne(
|
|
9861
9873
|
() => ({ ...m, ...h }),
|
|
9862
9874
|
[m, h]
|
|
9863
|
-
), { headerActions: g } = Zn(), [x, f] = v(""), [b, C] = v(""), [y, _] = v(!1), N = vd(l), { data: $ } = qt(l), { updateSettings: k, resetSettings: S } = Nd(), j =
|
|
9875
|
+
), { headerActions: g } = Zn(), [x, f] = v(""), [b, C] = v(""), [y, _] = v(!1), N = vd(l), { data: $ } = qt(l), { updateSettings: k, resetSettings: S } = Nd(), j = ne(
|
|
9864
9876
|
() => fd(p, g, N.data?.defaults),
|
|
9865
9877
|
[p, g, N.data?.defaults]
|
|
9866
|
-
), [A, L] = v(null), T =
|
|
9878
|
+
), [A, L] = v(null), T = ne(
|
|
9867
9879
|
() => ({
|
|
9868
9880
|
overrides: _d(N.data?.settings),
|
|
9869
9881
|
translations: N.data?.settings.translations ?? {}
|
|
9870
9882
|
}),
|
|
9871
9883
|
[N.data]
|
|
9872
|
-
), { overrides: D, translations: F } = A ?? T, E =
|
|
9884
|
+
), { overrides: D, translations: F } = A ?? T, E = ne(() => bd(j, D), [j, D]), K = (U) => {
|
|
9873
9885
|
const Te = typeof U == "function" ? U(E) : U;
|
|
9874
9886
|
L({ overrides: xd(Te, j), translations: F });
|
|
9875
|
-
}, Ae =
|
|
9887
|
+
}, Ae = ne(
|
|
9876
9888
|
() => ({
|
|
9877
9889
|
isOverridden: (U) => U in D,
|
|
9878
9890
|
reset: (U) => {
|
|
@@ -10266,6 +10278,11 @@ export {
|
|
|
10266
10278
|
dc as ListItemText,
|
|
10267
10279
|
tr as PageHeader,
|
|
10268
10280
|
rr as PageTabs,
|
|
10281
|
+
mc as Select,
|
|
10282
|
+
hc as SelectContent,
|
|
10283
|
+
pc as SelectItem,
|
|
10284
|
+
gc as SelectTrigger,
|
|
10285
|
+
fc as SelectValue,
|
|
10269
10286
|
ht as StatTile,
|
|
10270
10287
|
Xd as Table,
|
|
10271
10288
|
tc as TableBody,
|