@gentiq/admin 1.0.0-alpha.4 → 1.0.0-alpha.5
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.es.js +58 -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";
|
|
@@ -403,18 +403,18 @@ function P() {
|
|
|
403
403
|
return e;
|
|
404
404
|
}
|
|
405
405
|
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-
|
|
406
|
+
ar: () => import("./ar-BhSvGh_7.js").then((e) => e.default),
|
|
407
|
+
bn: () => import("./bn-DMxb0W3N.js").then((e) => e.default),
|
|
408
|
+
de: () => import("./de-D22ELk2j.js").then((e) => e.default),
|
|
409
|
+
es: () => import("./es-5IXkmYPo.js").then((e) => e.default),
|
|
410
|
+
fa: () => import("./fa-OOfVUI1k.js").then((e) => e.default),
|
|
411
|
+
fr: () => import("./fr-DaPe98w4.js").then((e) => e.default),
|
|
412
|
+
hi: () => import("./hi-CoBQdI0J.js").then((e) => e.default),
|
|
413
|
+
id: () => import("./id-Dpsl35fD.js").then((e) => e.default),
|
|
414
|
+
pt: () => import("./pt-atLGsxOr.js").then((e) => e.default),
|
|
415
|
+
ru: () => import("./ru-B7X8WL1t.js").then((e) => e.default),
|
|
416
|
+
ur: () => import("./ur-CR1nTT6C.js").then((e) => e.default),
|
|
417
|
+
zh: () => import("./zh-C-AOb6yG.js").then((e) => e.default)
|
|
418
418
|
}, Pt = /* @__PURE__ */ new Map();
|
|
419
419
|
function xs(e) {
|
|
420
420
|
const r = Wa[e];
|
|
@@ -1714,7 +1714,7 @@ function qi({ data: e, days: r }) {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
function Li(e, r) {
|
|
1716
1716
|
const { data: s, isLoading: n, error: o, refetch: a } = ai(e, r);
|
|
1717
|
-
return { data:
|
|
1717
|
+
return { data: ne(() => {
|
|
1718
1718
|
if (!s) return null;
|
|
1719
1719
|
const d = s;
|
|
1720
1720
|
return {
|
|
@@ -2332,7 +2332,7 @@ function Nr({
|
|
|
2332
2332
|
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
2333
|
const Q = p.toDate($);
|
|
2334
2334
|
N(hr(O).fromDate(Q)), n(O);
|
|
2335
|
-
}, S =
|
|
2335
|
+
}, S = ne(() => new Intl.NumberFormat(u, { useGrouping: !1 }), [u]), j = ut(u, s, { month: "long", year: "numeric" }).format(
|
|
2336
2336
|
p.toDate({ ...$, day: Math.min(15, p.daysInMonth($.year, $.month)) })
|
|
2337
2337
|
), 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
2338
|
{ length: 7 },
|
|
@@ -3862,13 +3862,13 @@ function No(e) {
|
|
|
3862
3862
|
}
|
|
3863
3863
|
const wo = 8e3;
|
|
3864
3864
|
function ko({ selectedThread: e }) {
|
|
3865
|
-
const { t: r } = w(["admin"]), s = ui(e?.id ?? ""), n =
|
|
3865
|
+
const { t: r } = w(["admin"]), s = ui(e?.id ?? ""), n = ne(() => s.data?.items ?? [], [s.data?.items]), [o, a] = ao(), c = ne(
|
|
3866
3866
|
() => ro(s.data?.events ?? []),
|
|
3867
3867
|
[s.data?.events]
|
|
3868
|
-
), d =
|
|
3868
|
+
), d = ne(
|
|
3869
3869
|
() => Yi(s.data?.events ?? []),
|
|
3870
3870
|
[s.data?.events]
|
|
3871
|
-
), l =
|
|
3871
|
+
), l = ne(
|
|
3872
3872
|
() => so(
|
|
3873
3873
|
No(n),
|
|
3874
3874
|
(g) => (g.kind === "subagent" ? g.items[0] : g.item).created_at ?? "",
|
|
@@ -4119,7 +4119,7 @@ function To() {
|
|
|
4119
4119
|
const A = setTimeout(() => o(r), 500);
|
|
4120
4120
|
return () => clearTimeout(A);
|
|
4121
4121
|
}, [r]);
|
|
4122
|
-
const C =
|
|
4122
|
+
const C = ne(
|
|
4123
4123
|
() => zt(a, n, d),
|
|
4124
4124
|
[a, n, d]
|
|
4125
4125
|
), y = di(C, h, 50);
|
|
@@ -5330,7 +5330,7 @@ function Uo({
|
|
|
5330
5330
|
onApplied: n,
|
|
5331
5331
|
onError: o
|
|
5332
5332
|
}) {
|
|
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 =
|
|
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 = ne(() => {
|
|
5334
5334
|
switch (l) {
|
|
5335
5335
|
case "everyone":
|
|
5336
5336
|
return {};
|
|
@@ -5966,7 +5966,7 @@ function Vo({
|
|
|
5966
5966
|
}
|
|
5967
5967
|
const Et = 25;
|
|
5968
5968
|
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 =
|
|
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 = ne(() => _t(x, l), [x, l]), me = qr(x), Ne = ne(
|
|
5970
5970
|
() => l.trim() || qr(x) > 0 ? Eo(x, l) : null,
|
|
5971
5971
|
[x, l]
|
|
5972
5972
|
), {
|
|
@@ -5974,7 +5974,7 @@ function Ho() {
|
|
|
5974
5974
|
isLoading: O,
|
|
5975
5975
|
isFetching: Q,
|
|
5976
5976
|
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 =
|
|
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 = ne(() => s?.userMetadataFields || [], [s?.userMetadataFields]);
|
|
5978
5978
|
X(() => {
|
|
5979
5979
|
const re = setTimeout(() => {
|
|
5980
5980
|
u(c);
|
|
@@ -8308,7 +8308,7 @@ function ue({ field: e }) {
|
|
|
8308
8308
|
)
|
|
8309
8309
|
] }) : /* @__PURE__ */ t("span", { className: "text-xs text-muted-foreground", children: r("app_settings.default_value") });
|
|
8310
8310
|
}
|
|
8311
|
-
function
|
|
8311
|
+
function se({
|
|
8312
8312
|
title: e,
|
|
8313
8313
|
help: r,
|
|
8314
8314
|
checked: s,
|
|
@@ -8455,7 +8455,7 @@ function Pl({
|
|
|
8455
8455
|
o("app_settings.general.language_help")
|
|
8456
8456
|
] }),
|
|
8457
8457
|
/* @__PURE__ */ t(
|
|
8458
|
-
|
|
8458
|
+
se,
|
|
8459
8459
|
{
|
|
8460
8460
|
title: o("app_settings.general.language_locked"),
|
|
8461
8461
|
help: o("app_settings.general.language_locked_help"),
|
|
@@ -8558,7 +8558,7 @@ function Pl({
|
|
|
8558
8558
|
)
|
|
8559
8559
|
] }),
|
|
8560
8560
|
/* @__PURE__ */ t(
|
|
8561
|
-
|
|
8561
|
+
se,
|
|
8562
8562
|
{
|
|
8563
8563
|
title: o("app_settings.general.user_bubble_accent"),
|
|
8564
8564
|
help: o("app_settings.general.user_bubble_accent_help"),
|
|
@@ -8754,7 +8754,7 @@ function Dl({
|
|
|
8754
8754
|
] }),
|
|
8755
8755
|
/* @__PURE__ */ i("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-6 pt-2", children: [
|
|
8756
8756
|
/* @__PURE__ */ t(
|
|
8757
|
-
|
|
8757
|
+
se,
|
|
8758
8758
|
{
|
|
8759
8759
|
title: a("app_settings.chat.show_tool_details"),
|
|
8760
8760
|
help: a("app_settings.chat.show_tool_details_help"),
|
|
@@ -8764,7 +8764,17 @@ function Dl({
|
|
|
8764
8764
|
}
|
|
8765
8765
|
),
|
|
8766
8766
|
/* @__PURE__ */ t(
|
|
8767
|
-
|
|
8767
|
+
se,
|
|
8768
|
+
{
|
|
8769
|
+
title: a("app_settings.chat.show_welcome_glow"),
|
|
8770
|
+
help: a("app_settings.chat.show_welcome_glow_help"),
|
|
8771
|
+
checked: e.show_welcome_glow,
|
|
8772
|
+
field: "show_welcome_glow",
|
|
8773
|
+
onCheckedChange: (l) => r({ ...e, show_welcome_glow: l })
|
|
8774
|
+
}
|
|
8775
|
+
),
|
|
8776
|
+
/* @__PURE__ */ t(
|
|
8777
|
+
se,
|
|
8768
8778
|
{
|
|
8769
8779
|
title: a("app_settings.chat.show_reasoning"),
|
|
8770
8780
|
help: a("app_settings.chat.show_reasoning_help"),
|
|
@@ -8774,7 +8784,7 @@ function Dl({
|
|
|
8774
8784
|
}
|
|
8775
8785
|
),
|
|
8776
8786
|
/* @__PURE__ */ t(
|
|
8777
|
-
|
|
8787
|
+
se,
|
|
8778
8788
|
{
|
|
8779
8789
|
title: a("app_settings.chat.show_settings"),
|
|
8780
8790
|
help: a("app_settings.chat.show_settings_help"),
|
|
@@ -8784,7 +8794,7 @@ function Dl({
|
|
|
8784
8794
|
}
|
|
8785
8795
|
),
|
|
8786
8796
|
/* @__PURE__ */ t(
|
|
8787
|
-
|
|
8797
|
+
se,
|
|
8788
8798
|
{
|
|
8789
8799
|
title: a("app_settings.chat.show_version_in_settings"),
|
|
8790
8800
|
help: a("app_settings.chat.show_version_in_settings_help"),
|
|
@@ -8794,7 +8804,7 @@ function Dl({
|
|
|
8794
8804
|
}
|
|
8795
8805
|
),
|
|
8796
8806
|
/* @__PURE__ */ t(
|
|
8797
|
-
|
|
8807
|
+
se,
|
|
8798
8808
|
{
|
|
8799
8809
|
title: a("app_settings.chat.signup_enabled"),
|
|
8800
8810
|
help: a("app_settings.chat.signup_enabled_help"),
|
|
@@ -8804,7 +8814,7 @@ function Dl({
|
|
|
8804
8814
|
}
|
|
8805
8815
|
),
|
|
8806
8816
|
/* @__PURE__ */ t(
|
|
8807
|
-
|
|
8817
|
+
se,
|
|
8808
8818
|
{
|
|
8809
8819
|
title: a("app_settings.chat.auth_page_enabled"),
|
|
8810
8820
|
help: a("app_settings.chat.auth_page_enabled_help"),
|
|
@@ -8815,7 +8825,7 @@ function Dl({
|
|
|
8815
8825
|
}
|
|
8816
8826
|
),
|
|
8817
8827
|
/* @__PURE__ */ t(
|
|
8818
|
-
|
|
8828
|
+
se,
|
|
8819
8829
|
{
|
|
8820
8830
|
title: a("app_settings.chat.composer_attachments"),
|
|
8821
8831
|
help: a("app_settings.chat.composer_attachments_help"),
|
|
@@ -8825,7 +8835,7 @@ function Dl({
|
|
|
8825
8835
|
}
|
|
8826
8836
|
),
|
|
8827
8837
|
/* @__PURE__ */ t(
|
|
8828
|
-
|
|
8838
|
+
se,
|
|
8829
8839
|
{
|
|
8830
8840
|
title: a("app_settings.chat.composer_voice"),
|
|
8831
8841
|
help: a(c ? "app_settings.chat.composer_voice_help" : "app_settings.chat.composer_voice_unavailable"),
|
|
@@ -8835,7 +8845,7 @@ function Dl({
|
|
|
8835
8845
|
}
|
|
8836
8846
|
),
|
|
8837
8847
|
/* @__PURE__ */ t(
|
|
8838
|
-
|
|
8848
|
+
se,
|
|
8839
8849
|
{
|
|
8840
8850
|
title: a("app_settings.chat.thread_actions_feedback"),
|
|
8841
8851
|
help: a("app_settings.chat.thread_actions_feedback_help"),
|
|
@@ -8845,7 +8855,7 @@ function Dl({
|
|
|
8845
8855
|
}
|
|
8846
8856
|
),
|
|
8847
8857
|
/* @__PURE__ */ t(
|
|
8848
|
-
|
|
8858
|
+
se,
|
|
8849
8859
|
{
|
|
8850
8860
|
title: a("app_settings.chat.thread_actions_retry"),
|
|
8851
8861
|
help: a("app_settings.chat.thread_actions_retry_help"),
|
|
@@ -8855,7 +8865,7 @@ function Dl({
|
|
|
8855
8865
|
}
|
|
8856
8866
|
),
|
|
8857
8867
|
/* @__PURE__ */ t(
|
|
8858
|
-
|
|
8868
|
+
se,
|
|
8859
8869
|
{
|
|
8860
8870
|
title: a("app_settings.chat.thread_actions_edit"),
|
|
8861
8871
|
help: a("app_settings.chat.thread_actions_edit_help"),
|
|
@@ -8865,7 +8875,7 @@ function Dl({
|
|
|
8865
8875
|
}
|
|
8866
8876
|
),
|
|
8867
8877
|
/* @__PURE__ */ t(
|
|
8868
|
-
|
|
8878
|
+
se,
|
|
8869
8879
|
{
|
|
8870
8880
|
title: a("app_settings.chat.history_enabled"),
|
|
8871
8881
|
help: a("app_settings.chat.history_enabled_help"),
|
|
@@ -8941,7 +8951,7 @@ function Dl({
|
|
|
8941
8951
|
/* @__PURE__ */ t(ue, { field: "header_actions" })
|
|
8942
8952
|
] }),
|
|
8943
8953
|
/* @__PURE__ */ t("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-6", children: n.map((l) => /* @__PURE__ */ t(
|
|
8944
|
-
|
|
8954
|
+
se,
|
|
8945
8955
|
{
|
|
8946
8956
|
title: a(l.label),
|
|
8947
8957
|
help: l.help && a(l.help),
|
|
@@ -9079,7 +9089,7 @@ const ge = "__app__", Ml = ["messages", "tokens", "cost"], El = ["gregorian", "p
|
|
|
9079
9089
|
"sunday"
|
|
9080
9090
|
], 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
9091
|
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 =
|
|
9092
|
+
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
9093
|
try {
|
|
9084
9094
|
return new Intl.DateTimeFormat(a.language, {
|
|
9085
9095
|
timeZone: u,
|
|
@@ -9246,7 +9256,7 @@ function Ol({ settings: e, setSettings: r, plans: s, isRtl: n }) {
|
|
|
9246
9256
|
] }),
|
|
9247
9257
|
/* @__PURE__ */ i("div", { className: "space-y-3", children: [
|
|
9248
9258
|
/* @__PURE__ */ t(
|
|
9249
|
-
|
|
9259
|
+
se,
|
|
9250
9260
|
{
|
|
9251
9261
|
title: o("app_settings.usage.show_usage_bar"),
|
|
9252
9262
|
help: o("app_settings.usage.show_usage_bar_help"),
|
|
@@ -9256,7 +9266,7 @@ function Ol({ settings: e, setSettings: r, plans: s, isRtl: n }) {
|
|
|
9256
9266
|
}
|
|
9257
9267
|
),
|
|
9258
9268
|
e.show_usage_bar && /* @__PURE__ */ t(
|
|
9259
|
-
|
|
9269
|
+
se,
|
|
9260
9270
|
{
|
|
9261
9271
|
title: o("app_settings.usage.show_usage_details"),
|
|
9262
9272
|
help: o("app_settings.usage.show_usage_details_help"),
|
|
@@ -9295,7 +9305,7 @@ function Qs(e) {
|
|
|
9295
9305
|
0
|
|
9296
9306
|
);
|
|
9297
9307
|
}
|
|
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 = {
|
|
9308
|
+
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
9309
|
select_placeholder: Il,
|
|
9300
9310
|
loading: Ul,
|
|
9301
9311
|
retry: zl,
|
|
@@ -9481,6 +9491,7 @@ function fd(e, r, s) {
|
|
|
9481
9491
|
welcome_subtitle: typeof o?.subtitle == "string" ? o.subtitle : "",
|
|
9482
9492
|
disclaimer: typeof a == "string" ? a : "",
|
|
9483
9493
|
show_tool_details: n?.showToolDetails ?? !0,
|
|
9494
|
+
show_welcome_glow: n?.showWelcomeGlow ?? !0,
|
|
9484
9495
|
show_reasoning: s?.show_reasoning ?? !0,
|
|
9485
9496
|
show_settings: n?.showSettings ?? !0,
|
|
9486
9497
|
show_version_in_settings: n?.showVersionInSettings ?? !0,
|
|
@@ -9857,22 +9868,22 @@ const Td = [
|
|
|
9857
9868
|
"integrations"
|
|
9858
9869
|
];
|
|
9859
9870
|
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 =
|
|
9871
|
+
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
9872
|
() => ({ ...m, ...h }),
|
|
9862
9873
|
[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 =
|
|
9874
|
+
), { 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
9875
|
() => fd(p, g, N.data?.defaults),
|
|
9865
9876
|
[p, g, N.data?.defaults]
|
|
9866
|
-
), [A, L] = v(null), T =
|
|
9877
|
+
), [A, L] = v(null), T = ne(
|
|
9867
9878
|
() => ({
|
|
9868
9879
|
overrides: _d(N.data?.settings),
|
|
9869
9880
|
translations: N.data?.settings.translations ?? {}
|
|
9870
9881
|
}),
|
|
9871
9882
|
[N.data]
|
|
9872
|
-
), { overrides: D, translations: F } = A ?? T, E =
|
|
9883
|
+
), { overrides: D, translations: F } = A ?? T, E = ne(() => bd(j, D), [j, D]), K = (U) => {
|
|
9873
9884
|
const Te = typeof U == "function" ? U(E) : U;
|
|
9874
9885
|
L({ overrides: xd(Te, j), translations: F });
|
|
9875
|
-
}, Ae =
|
|
9886
|
+
}, Ae = ne(
|
|
9876
9887
|
() => ({
|
|
9877
9888
|
isOverridden: (U) => U in D,
|
|
9878
9889
|
reset: (U) => {
|