@i18n-micro/devtools-ui 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bridge/create-bridge.d.ts +3 -7
- package/dist/components/ui/Loader.vue.d.ts +1 -1
- package/dist/composables/useI18nState.d.ts +17 -9
- package/dist/devtools-ui.css +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.es.js +1297 -1293
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/util/Translator.d.ts +11 -11
- package/dist/vite/plugin.mjs +44 -34
- package/dist/vite/plugin.mjs.map +1 -1
- package/package.json +2 -2
- package/vite/plugin.ts +78 -74
package/dist/index.es.js
CHANGED
|
@@ -1089,7 +1089,7 @@ function kl(e, t, o = ce) {
|
|
|
1089
1089
|
"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
|
|
1090
1090
|
);
|
|
1091
1091
|
}, c = (M) => n ? M : Le(M) || n === !1 || n === 0 ? kt(M, 1) : kt(M);
|
|
1092
|
-
let d, p, w,
|
|
1092
|
+
let d, p, w, N, b = !1, F = !1;
|
|
1093
1093
|
if (Se(e) ? (p = () => e.value, b = Le(e)) : It(e) ? (p = () => c(e), b = !0) : L(e) ? (F = !0, b = e.some((M) => It(M) || Le(M)), p = () => e.map((M) => {
|
|
1094
1094
|
if (Se(M))
|
|
1095
1095
|
return M.value;
|
|
@@ -1110,7 +1110,7 @@ function kl(e, t, o = ce) {
|
|
|
1110
1110
|
const M = Ht;
|
|
1111
1111
|
Ht = d;
|
|
1112
1112
|
try {
|
|
1113
|
-
return l ? l(e, 3, [
|
|
1113
|
+
return l ? l(e, 3, [N]) : e(N);
|
|
1114
1114
|
} finally {
|
|
1115
1115
|
Ht = M;
|
|
1116
1116
|
}
|
|
@@ -1141,7 +1141,7 @@ function kl(e, t, o = ce) {
|
|
|
1141
1141
|
j,
|
|
1142
1142
|
// pass undefined as the old value when it's changed for the first time
|
|
1143
1143
|
U === Qo ? void 0 : F && U[0] === Qo ? [] : U,
|
|
1144
|
-
|
|
1144
|
+
N
|
|
1145
1145
|
];
|
|
1146
1146
|
U = j, l ? l(t, 3, H) : (
|
|
1147
1147
|
// @ts-expect-error
|
|
@@ -1154,7 +1154,7 @@ function kl(e, t, o = ce) {
|
|
|
1154
1154
|
} else
|
|
1155
1155
|
d.run();
|
|
1156
1156
|
};
|
|
1157
|
-
return s && s(fe), d = new ta(p), d.scheduler = a ? () => a(fe, !1) : fe,
|
|
1157
|
+
return s && s(fe), d = new ta(p), d.scheduler = a ? () => a(fe, !1) : fe, N = (M) => xl(M, !1, d), w = d.onStop = () => {
|
|
1158
1158
|
const M = hr.get(d);
|
|
1159
1159
|
if (M) {
|
|
1160
1160
|
if (l)
|
|
@@ -1672,7 +1672,7 @@ const Ta = /* @__PURE__ */ Symbol("_vte"), Da = (e) => e.__isTeleport, Jt = (e)
|
|
|
1672
1672
|
mc: c,
|
|
1673
1673
|
pc: d,
|
|
1674
1674
|
pbc: p,
|
|
1675
|
-
o: { insert: w, querySelector:
|
|
1675
|
+
o: { insert: w, querySelector: N, createText: b, createComment: F }
|
|
1676
1676
|
} = f, R = Jt(t.props);
|
|
1677
1677
|
let { shapeFlag: z, children: U, dynamicChildren: fe } = t;
|
|
1678
1678
|
if (v.NODE_ENV !== "production" && Ge && (l = !1, fe = null), e == null) {
|
|
@@ -1690,7 +1690,7 @@ const Ta = /* @__PURE__ */ Symbol("_vte"), Da = (e) => e.__isTeleport, Jt = (e)
|
|
|
1690
1690
|
l
|
|
1691
1691
|
);
|
|
1692
1692
|
}, H = () => {
|
|
1693
|
-
const _ = t.target = sn(t.props,
|
|
1693
|
+
const _ = t.target = sn(t.props, N), I = Aa(_, t, b, w);
|
|
1694
1694
|
_ ? (a !== "svg" && oi(_) ? a = "svg" : a !== "mathml" && ri(_) && (a = "mathml"), n && n.isCE && (n.ce._teleportTargets || (n.ce._teleportTargets = /* @__PURE__ */ new Set())).add(_), R || (q(_, I), sr(t, !1))) : v.NODE_ENV !== "production" && !R && O(
|
|
1695
1695
|
"Invalid Teleport target on mount:",
|
|
1696
1696
|
_,
|
|
@@ -1749,7 +1749,7 @@ const Ta = /* @__PURE__ */ Symbol("_vte"), Da = (e) => e.__isTeleport, Jt = (e)
|
|
|
1749
1749
|
else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
|
|
1750
1750
|
const P = t.target = sn(
|
|
1751
1751
|
t.props,
|
|
1752
|
-
|
|
1752
|
+
N
|
|
1753
1753
|
);
|
|
1754
1754
|
P ? er(
|
|
1755
1755
|
t,
|
|
@@ -1784,8 +1784,8 @@ const Ta = /* @__PURE__ */ Symbol("_vte"), Da = (e) => e.__isTeleport, Jt = (e)
|
|
|
1784
1784
|
} = e;
|
|
1785
1785
|
if (d && (n(f), n(c)), i && n(l), a & 16) {
|
|
1786
1786
|
const w = i || !Jt(p);
|
|
1787
|
-
for (let
|
|
1788
|
-
const b = s[
|
|
1787
|
+
for (let N = 0; N < s.length; N++) {
|
|
1788
|
+
const b = s[N];
|
|
1789
1789
|
r(
|
|
1790
1790
|
b,
|
|
1791
1791
|
t,
|
|
@@ -1829,11 +1829,11 @@ function Bl(e, t, o, r, n, i, {
|
|
|
1829
1829
|
const w = t.target = sn(
|
|
1830
1830
|
t.props,
|
|
1831
1831
|
l
|
|
1832
|
-
),
|
|
1832
|
+
), N = Jt(t.props);
|
|
1833
1833
|
if (w) {
|
|
1834
1834
|
const b = w._lpa || w.firstChild;
|
|
1835
1835
|
if (t.shapeFlag & 16)
|
|
1836
|
-
if (
|
|
1836
|
+
if (N)
|
|
1837
1837
|
p(
|
|
1838
1838
|
e,
|
|
1839
1839
|
t,
|
|
@@ -1864,8 +1864,8 @@ function Bl(e, t, o, r, n, i, {
|
|
|
1864
1864
|
i
|
|
1865
1865
|
);
|
|
1866
1866
|
}
|
|
1867
|
-
sr(t,
|
|
1868
|
-
} else
|
|
1867
|
+
sr(t, N);
|
|
1868
|
+
} else N && t.shapeFlag & 16 && p(e, t, e, a(e));
|
|
1869
1869
|
return t.anchor && a(t.anchor);
|
|
1870
1870
|
}
|
|
1871
1871
|
const Kl = Va;
|
|
@@ -1954,7 +1954,7 @@ const We = [Function, Array], Ma = {
|
|
|
1954
1954
|
return r.isLeaving = !0, d.afterLeave = () => {
|
|
1955
1955
|
r.isLeaving = !1, o.job.flags & 8 || o.update(), delete d.afterLeave, c = void 0;
|
|
1956
1956
|
}, Wr(i);
|
|
1957
|
-
s === "in-out" && l.type !== Ee ? d.delayLeave = (p, w,
|
|
1957
|
+
s === "in-out" && l.type !== Ee ? d.delayLeave = (p, w, N) => {
|
|
1958
1958
|
const b = ja(
|
|
1959
1959
|
r,
|
|
1960
1960
|
c
|
|
@@ -1962,7 +1962,7 @@ const We = [Function, Array], Ma = {
|
|
|
1962
1962
|
b[String(c.key)] = c, p[_t] = () => {
|
|
1963
1963
|
w(), p[_t] = void 0, delete f.delayedLeave, c = void 0;
|
|
1964
1964
|
}, f.delayedLeave = () => {
|
|
1965
|
-
|
|
1965
|
+
N(), delete f.delayedLeave, c = void 0;
|
|
1966
1966
|
};
|
|
1967
1967
|
} : c = void 0;
|
|
1968
1968
|
} else c && (c = void 0);
|
|
@@ -2004,7 +2004,7 @@ function ln(e, t, o, r, n) {
|
|
|
2004
2004
|
onEnterCancelled: d,
|
|
2005
2005
|
onBeforeLeave: p,
|
|
2006
2006
|
onLeave: w,
|
|
2007
|
-
onAfterLeave:
|
|
2007
|
+
onAfterLeave: N,
|
|
2008
2008
|
onLeaveCancelled: b,
|
|
2009
2009
|
onBeforeAppear: F,
|
|
2010
2010
|
onAppear: R,
|
|
@@ -2060,7 +2060,7 @@ function ln(e, t, o, r, n) {
|
|
|
2060
2060
|
j(p, [_]);
|
|
2061
2061
|
let $ = !1;
|
|
2062
2062
|
const se = _[_t] = (we) => {
|
|
2063
|
-
$ || ($ = !0, I(), we ? j(b, [_]) : j(
|
|
2063
|
+
$ || ($ = !0, I(), we ? j(b, [_]) : j(N, [_]), _[_t] = void 0, M[P] === e && delete M[P]);
|
|
2064
2064
|
};
|
|
2065
2065
|
M[P] = e, w ? q(w, [_, se]) : se();
|
|
2066
2066
|
},
|
|
@@ -2149,12 +2149,12 @@ function So(e, t, o, r, n = !1) {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
const f = t && t.r, c = s.refs === ce ? s.refs = {} : s.refs, d = s.setupState, p = X(d), w = d === ce ? Yi : (b) => v.NODE_ENV !== "production" && (ee(p, b) && !Se(p[b]) && O(
|
|
2151
2151
|
`Template ref "${b}" used on a non-ref value. It will not work in the production build.`
|
|
2152
|
-
), ii.has(p[b])) ? !1 : ee(p, b),
|
|
2152
|
+
), ii.has(p[b])) ? !1 : ee(p, b), N = (b) => v.NODE_ENV === "production" || !ii.has(b);
|
|
2153
2153
|
if (f != null && f !== l) {
|
|
2154
2154
|
if (ai(t), ve(f))
|
|
2155
2155
|
c[f] = null, w(f) && (d[f] = null);
|
|
2156
2156
|
else if (Se(f)) {
|
|
2157
|
-
|
|
2157
|
+
N(f) && (f.value = null);
|
|
2158
2158
|
const b = t;
|
|
2159
2159
|
b.k && (c[b.k] = null);
|
|
2160
2160
|
}
|
|
@@ -2166,7 +2166,7 @@ function So(e, t, o, r, n = !1) {
|
|
|
2166
2166
|
if (b || F) {
|
|
2167
2167
|
const R = () => {
|
|
2168
2168
|
if (e.f) {
|
|
2169
|
-
const z = b ? w(l) ? d[l] : c[l] :
|
|
2169
|
+
const z = b ? w(l) ? d[l] : c[l] : N(l) || !e.k ? l.value : c[e.k];
|
|
2170
2170
|
if (n)
|
|
2171
2171
|
L(z) && yn(z, i);
|
|
2172
2172
|
else if (L(z))
|
|
@@ -2175,9 +2175,9 @@ function So(e, t, o, r, n = !1) {
|
|
|
2175
2175
|
c[l] = [i], w(l) && (d[l] = c[l]);
|
|
2176
2176
|
else {
|
|
2177
2177
|
const U = [i];
|
|
2178
|
-
|
|
2178
|
+
N(l) && (l.value = U), e.k && (c[e.k] = U);
|
|
2179
2179
|
}
|
|
2180
|
-
} else b ? (c[l] = a, w(l) && (d[l] = a)) : F ? (
|
|
2180
|
+
} else b ? (c[l] = a, w(l) && (d[l] = a)) : F ? (N(l) && (l.value = a), e.k && (c[e.k] = a)) : v.NODE_ENV !== "production" && O("Invalid template ref type:", l, `(${typeof l})`);
|
|
2181
2181
|
};
|
|
2182
2182
|
if (a) {
|
|
2183
2183
|
const z = () => {
|
|
@@ -2542,7 +2542,7 @@ function dc(e) {
|
|
|
2542
2542
|
beforeMount: d,
|
|
2543
2543
|
mounted: p,
|
|
2544
2544
|
beforeUpdate: w,
|
|
2545
|
-
updated:
|
|
2545
|
+
updated: N,
|
|
2546
2546
|
activated: b,
|
|
2547
2547
|
deactivated: F,
|
|
2548
2548
|
beforeDestroy: R,
|
|
@@ -2630,7 +2630,7 @@ function dc(e) {
|
|
|
2630
2630
|
function xe(Z, Q) {
|
|
2631
2631
|
L(Q) ? Q.forEach((it) => Z(it.bind(o))) : Q && Z(Q.bind(o));
|
|
2632
2632
|
}
|
|
2633
|
-
if (xe(Zl, d), xe(Pt, p), xe(Ql, w), xe(ec,
|
|
2633
|
+
if (xe(Zl, d), xe(Pt, p), xe(Ql, w), xe(ec, N), xe(Gl, b), xe(Yl, F), xe(nc, H), xe(rc, j), xe(oc, q), xe(za, z), xe(An, fe), xe(tc, _), L(I))
|
|
2634
2634
|
if (I.length) {
|
|
2635
2635
|
const Z = e.exposed || (e.exposed = {});
|
|
2636
2636
|
I.forEach((Q) => {
|
|
@@ -2852,8 +2852,8 @@ function vc(e, t) {
|
|
|
2852
2852
|
);
|
|
2853
2853
|
const w = f._ceVNode || Y(r, n);
|
|
2854
2854
|
return w.appContext = i, p === !0 ? p = "svg" : p === !1 && (p = void 0), v.NODE_ENV !== "production" && (i.reload = () => {
|
|
2855
|
-
const
|
|
2856
|
-
|
|
2855
|
+
const N = wt(w);
|
|
2856
|
+
N.el = null, e(N, c, p);
|
|
2857
2857
|
}), e(w, c, p), l = !0, f._container = c, c.__vue_app__ = f, v.NODE_ENV !== "production" && (f._instance = w.component, Pl(f, xi)), Ir(w.component);
|
|
2858
2858
|
}
|
|
2859
2859
|
},
|
|
@@ -2945,12 +2945,12 @@ function Za(e, t, o = ce) {
|
|
|
2945
2945
|
}
|
|
2946
2946
|
}
|
|
2947
2947
|
const c = Ne;
|
|
2948
|
-
s.call = (w,
|
|
2948
|
+
s.call = (w, N, b) => nt(w, c, N, b);
|
|
2949
2949
|
let d = !1;
|
|
2950
2950
|
i === "post" ? s.scheduler = (w) => {
|
|
2951
2951
|
Pe(w, c && c.suspense);
|
|
2952
|
-
} : i !== "sync" && (d = !0, s.scheduler = (w,
|
|
2953
|
-
|
|
2952
|
+
} : i !== "sync" && (d = !0, s.scheduler = (w, N) => {
|
|
2953
|
+
N ? w() : Vr(w);
|
|
2954
2954
|
}), s.augmentJob = (w) => {
|
|
2955
2955
|
t && (w.flags |= 4), d && (w.flags |= 2, c && (w.id = c.uid, w.i = c));
|
|
2956
2956
|
};
|
|
@@ -3067,7 +3067,7 @@ function ui(e) {
|
|
|
3067
3067
|
props: d,
|
|
3068
3068
|
data: p,
|
|
3069
3069
|
setupState: w,
|
|
3070
|
-
ctx:
|
|
3070
|
+
ctx: N,
|
|
3071
3071
|
inheritAttrs: b
|
|
3072
3072
|
} = e, F = wr(e);
|
|
3073
3073
|
let R, z;
|
|
@@ -3091,7 +3091,7 @@ function ui(e) {
|
|
|
3091
3091
|
v.NODE_ENV !== "production" ? gt(d) : d,
|
|
3092
3092
|
w,
|
|
3093
3093
|
p,
|
|
3094
|
-
|
|
3094
|
+
N
|
|
3095
3095
|
)
|
|
3096
3096
|
), z = s;
|
|
3097
3097
|
} else {
|
|
@@ -3261,11 +3261,11 @@ function Cc(e, t, o, r) {
|
|
|
3261
3261
|
if (ee(i, p))
|
|
3262
3262
|
w !== i[p] && (i[p] = w, f = !0);
|
|
3263
3263
|
else {
|
|
3264
|
-
const
|
|
3265
|
-
n[
|
|
3264
|
+
const N = Ae(p);
|
|
3265
|
+
n[N] = pn(
|
|
3266
3266
|
l,
|
|
3267
3267
|
s,
|
|
3268
|
-
|
|
3268
|
+
N,
|
|
3269
3269
|
w,
|
|
3270
3270
|
e,
|
|
3271
3271
|
!1
|
|
@@ -3384,18 +3384,18 @@ function as(e, t, o = !1) {
|
|
|
3384
3384
|
for (const c in i) {
|
|
3385
3385
|
const d = Ae(c);
|
|
3386
3386
|
if (gi(d)) {
|
|
3387
|
-
const p = i[c], w = a[d] = L(p) || W(p) ? { type: p } : ge({}, p),
|
|
3387
|
+
const p = i[c], w = a[d] = L(p) || W(p) ? { type: p } : ge({}, p), N = w.type;
|
|
3388
3388
|
let b = !1, F = !0;
|
|
3389
|
-
if (L(
|
|
3390
|
-
for (let R = 0; R <
|
|
3391
|
-
const z =
|
|
3389
|
+
if (L(N))
|
|
3390
|
+
for (let R = 0; R < N.length; ++R) {
|
|
3391
|
+
const z = N[R], U = W(z) && z.name;
|
|
3392
3392
|
if (U === "Boolean") {
|
|
3393
3393
|
b = !0;
|
|
3394
3394
|
break;
|
|
3395
3395
|
} else U === "String" && (F = !1);
|
|
3396
3396
|
}
|
|
3397
3397
|
else
|
|
3398
|
-
b = W(
|
|
3398
|
+
b = W(N) && N.name === "Boolean";
|
|
3399
3399
|
w[
|
|
3400
3400
|
0
|
|
3401
3401
|
/* shouldCast */
|
|
@@ -3439,8 +3439,8 @@ function Vc(e, t, o, r, n) {
|
|
|
3439
3439
|
let f = !1;
|
|
3440
3440
|
const c = L(i) ? i : [i], d = [];
|
|
3441
3441
|
for (let p = 0; p < c.length && !f; p++) {
|
|
3442
|
-
const { valid: w, expectedType:
|
|
3443
|
-
d.push(
|
|
3442
|
+
const { valid: w, expectedType: N } = Mc(t, c[p]);
|
|
3443
|
+
d.push(N || ""), f = w;
|
|
3444
3444
|
}
|
|
3445
3445
|
if (!f) {
|
|
3446
3446
|
O(Ic(e, t, d));
|
|
@@ -3576,13 +3576,13 @@ function Hc(e, t) {
|
|
|
3576
3576
|
parentNode: d,
|
|
3577
3577
|
nextSibling: p,
|
|
3578
3578
|
setScopeId: w = De,
|
|
3579
|
-
insertStaticContent:
|
|
3579
|
+
insertStaticContent: N
|
|
3580
3580
|
} = e, b = (u, h, m, S = null, x = null, k = null, V = void 0, T = null, C = v.NODE_ENV !== "production" && Ge ? !1 : !!h.dynamicChildren) => {
|
|
3581
3581
|
if (u === h)
|
|
3582
3582
|
return;
|
|
3583
3583
|
u && !Ut(u, h) && (S = Yo(u), $t(u, x, k, !0), u = null), h.patchFlag === -2 && (C = !1, h.dynamicChildren = null);
|
|
3584
|
-
const { type:
|
|
3585
|
-
switch (
|
|
3584
|
+
const { type: E, ref: K, shapeFlag: A } = h;
|
|
3585
|
+
switch (E) {
|
|
3586
3586
|
case qo:
|
|
3587
3587
|
F(u, h, m, S);
|
|
3588
3588
|
break;
|
|
@@ -3626,7 +3626,7 @@ function Hc(e, t) {
|
|
|
3626
3626
|
V,
|
|
3627
3627
|
T,
|
|
3628
3628
|
C
|
|
3629
|
-
) : A & 64 || A & 128 ?
|
|
3629
|
+
) : A & 64 || A & 128 ? E.process(
|
|
3630
3630
|
u,
|
|
3631
3631
|
h,
|
|
3632
3632
|
m,
|
|
@@ -3637,7 +3637,7 @@ function Hc(e, t) {
|
|
|
3637
3637
|
T,
|
|
3638
3638
|
C,
|
|
3639
3639
|
vo
|
|
3640
|
-
) : v.NODE_ENV !== "production" && O("Invalid VNode type:",
|
|
3640
|
+
) : v.NODE_ENV !== "production" && O("Invalid VNode type:", E, `(${typeof E})`);
|
|
3641
3641
|
}
|
|
3642
3642
|
K != null && x ? So(K, u && u.ref, k, h || u, !h) : K == null && u && u.ref != null && So(u.ref, null, k, u, !0);
|
|
3643
3643
|
}, F = (u, h, m, S) => {
|
|
@@ -3658,7 +3658,7 @@ function Hc(e, t) {
|
|
|
3658
3658
|
S
|
|
3659
3659
|
) : h.el = u.el;
|
|
3660
3660
|
}, z = (u, h, m, S) => {
|
|
3661
|
-
[u.el, u.anchor] =
|
|
3661
|
+
[u.el, u.anchor] = N(
|
|
3662
3662
|
u.children,
|
|
3663
3663
|
h,
|
|
3664
3664
|
m,
|
|
@@ -3669,7 +3669,7 @@ function Hc(e, t) {
|
|
|
3669
3669
|
}, U = (u, h, m, S) => {
|
|
3670
3670
|
if (h.children !== u.children) {
|
|
3671
3671
|
const x = p(u.anchor);
|
|
3672
|
-
M(u), [h.el, h.anchor] =
|
|
3672
|
+
M(u), [h.el, h.anchor] = N(
|
|
3673
3673
|
h.children,
|
|
3674
3674
|
m,
|
|
3675
3675
|
x,
|
|
@@ -3700,9 +3700,9 @@ function Hc(e, t) {
|
|
|
3700
3700
|
C
|
|
3701
3701
|
);
|
|
3702
3702
|
else {
|
|
3703
|
-
const
|
|
3703
|
+
const E = u.el && u.el._isVueCE ? u.el : null;
|
|
3704
3704
|
try {
|
|
3705
|
-
|
|
3705
|
+
E && E._beginPatch(), I(
|
|
3706
3706
|
u,
|
|
3707
3707
|
h,
|
|
3708
3708
|
x,
|
|
@@ -3712,11 +3712,11 @@ function Hc(e, t) {
|
|
|
3712
3712
|
C
|
|
3713
3713
|
);
|
|
3714
3714
|
} finally {
|
|
3715
|
-
|
|
3715
|
+
E && E._endPatch();
|
|
3716
3716
|
}
|
|
3717
3717
|
}
|
|
3718
3718
|
}, q = (u, h, m, S, x, k, V, T) => {
|
|
3719
|
-
let C,
|
|
3719
|
+
let C, E;
|
|
3720
3720
|
const { props: K, shapeFlag: A, transition: B, dirs: J } = u;
|
|
3721
3721
|
if (C = u.el = a(
|
|
3722
3722
|
u.type,
|
|
@@ -3735,12 +3735,12 @@ function Hc(e, t) {
|
|
|
3735
3735
|
), J && jt(u, null, S, "created"), H(C, u, u.scopeId, V, S), K) {
|
|
3736
3736
|
for (const he in K)
|
|
3737
3737
|
he !== "value" && !Eo(he) && i(C, he, null, K[he], k, S);
|
|
3738
|
-
"value" in K && i(C, "value", null, K.value, k), (
|
|
3738
|
+
"value" in K && i(C, "value", null, K.value, k), (E = K.onVnodeBeforeMount) && ct(E, S, u);
|
|
3739
3739
|
}
|
|
3740
3740
|
v.NODE_ENV !== "production" && (fr(C, "__vnode", u, !0), fr(C, "__vueParentComponent", S, !0)), J && jt(u, null, S, "beforeMount");
|
|
3741
3741
|
const te = Uc(x, B);
|
|
3742
|
-
te && B.beforeEnter(C), r(C, h, m), ((
|
|
3743
|
-
|
|
3742
|
+
te && B.beforeEnter(C), r(C, h, m), ((E = K && K.onVnodeMounted) || te || J) && Pe(() => {
|
|
3743
|
+
E && ct(E, S, u), te && B.enter(C), J && jt(u, null, S, "mounted");
|
|
3744
3744
|
}, x);
|
|
3745
3745
|
}, H = (u, h, m, S, x) => {
|
|
3746
3746
|
if (m && w(u, m), S)
|
|
@@ -3760,8 +3760,8 @@ function Hc(e, t) {
|
|
|
3760
3760
|
}
|
|
3761
3761
|
}
|
|
3762
3762
|
}, _ = (u, h, m, S, x, k, V, T, C = 0) => {
|
|
3763
|
-
for (let
|
|
3764
|
-
const K = u[
|
|
3763
|
+
for (let E = C; E < u.length; E++) {
|
|
3764
|
+
const K = u[E] = T ? Vt(u[E]) : Je(u[E]);
|
|
3765
3765
|
b(
|
|
3766
3766
|
null,
|
|
3767
3767
|
K,
|
|
@@ -3777,13 +3777,13 @@ function Hc(e, t) {
|
|
|
3777
3777
|
}, I = (u, h, m, S, x, k, V) => {
|
|
3778
3778
|
const T = h.el = u.el;
|
|
3779
3779
|
v.NODE_ENV !== "production" && (T.__vnode = h);
|
|
3780
|
-
let { patchFlag: C, dynamicChildren:
|
|
3780
|
+
let { patchFlag: C, dynamicChildren: E, dirs: K } = h;
|
|
3781
3781
|
C |= u.patchFlag & 16;
|
|
3782
3782
|
const A = u.props || ce, B = h.props || ce;
|
|
3783
3783
|
let J;
|
|
3784
|
-
if (m && Lt(m, !1), (J = B.onVnodeBeforeUpdate) && ct(J, m, h, u), K && jt(h, u, m, "beforeUpdate"), m && Lt(m, !0), v.NODE_ENV !== "production" && Ge && (C = 0, V = !1,
|
|
3784
|
+
if (m && Lt(m, !1), (J = B.onVnodeBeforeUpdate) && ct(J, m, h, u), K && jt(h, u, m, "beforeUpdate"), m && Lt(m, !0), v.NODE_ENV !== "production" && Ge && (C = 0, V = !1, E = null), (A.innerHTML && B.innerHTML == null || A.textContent && B.textContent == null) && c(T, ""), E ? (P(
|
|
3785
3785
|
u.dynamicChildren,
|
|
3786
|
-
|
|
3786
|
+
E,
|
|
3787
3787
|
T,
|
|
3788
3788
|
m,
|
|
3789
3789
|
S,
|
|
@@ -3810,20 +3810,20 @@ function Hc(e, t) {
|
|
|
3810
3810
|
}
|
|
3811
3811
|
}
|
|
3812
3812
|
C & 1 && u.children !== h.children && c(T, h.children);
|
|
3813
|
-
} else !V &&
|
|
3813
|
+
} else !V && E == null && $(T, A, B, m, x);
|
|
3814
3814
|
((J = B.onVnodeUpdated) || K) && Pe(() => {
|
|
3815
3815
|
J && ct(J, m, h, u), K && jt(h, u, m, "updated");
|
|
3816
3816
|
}, S);
|
|
3817
3817
|
}, P = (u, h, m, S, x, k, V) => {
|
|
3818
3818
|
for (let T = 0; T < h.length; T++) {
|
|
3819
|
-
const C = u[T],
|
|
3819
|
+
const C = u[T], E = h[T], K = (
|
|
3820
3820
|
// oldVNode may be an errored async setup() component inside Suspense
|
|
3821
3821
|
// which will not have a mounted element
|
|
3822
3822
|
C.el && // - In the case of a Fragment, we need to provide the actual parent
|
|
3823
3823
|
// of the Fragment itself so it can move its children.
|
|
3824
3824
|
(C.type === re || // - In the case of different nodes, there is going to be a replacement
|
|
3825
3825
|
// which also requires the correct parent container
|
|
3826
|
-
!Ut(C,
|
|
3826
|
+
!Ut(C, E) || // - In the case of a component, it could contain anything.
|
|
3827
3827
|
C.shapeFlag & 198) ? d(C.el) : (
|
|
3828
3828
|
// In other cases, the parent container is not actually used so we
|
|
3829
3829
|
// just pass the block element here to avoid a DOM parentNode call.
|
|
@@ -3832,7 +3832,7 @@ function Hc(e, t) {
|
|
|
3832
3832
|
);
|
|
3833
3833
|
b(
|
|
3834
3834
|
C,
|
|
3835
|
-
|
|
3835
|
+
E,
|
|
3836
3836
|
K,
|
|
3837
3837
|
null,
|
|
3838
3838
|
S,
|
|
@@ -3862,10 +3862,10 @@ function Hc(e, t) {
|
|
|
3862
3862
|
"value" in m && i(u, "value", h.value, m.value, x);
|
|
3863
3863
|
}
|
|
3864
3864
|
}, se = (u, h, m, S, x, k, V, T, C) => {
|
|
3865
|
-
const
|
|
3865
|
+
const E = h.el = u ? u.el : s(""), K = h.anchor = u ? u.anchor : s("");
|
|
3866
3866
|
let { patchFlag: A, dynamicChildren: B, slotScopeIds: J } = h;
|
|
3867
3867
|
v.NODE_ENV !== "production" && // #5523 dev root fragment may inherit directives
|
|
3868
|
-
(Ge || A & 2048) && (A = 0, C = !1, B = null), J && (T = T ? T.concat(J) : J), u == null ? (r(
|
|
3868
|
+
(Ge || A & 2048) && (A = 0, C = !1, B = null), J && (T = T ? T.concat(J) : J), u == null ? (r(E, m, S), r(K, m, S), _(
|
|
3869
3869
|
// #10007
|
|
3870
3870
|
// such fragment like `<></>` will be compiled into
|
|
3871
3871
|
// a fragment which doesn't have a children.
|
|
@@ -4021,18 +4021,18 @@ function Hc(e, t) {
|
|
|
4021
4021
|
u.scope.on();
|
|
4022
4022
|
const C = u.effect = new ta(T);
|
|
4023
4023
|
u.scope.off();
|
|
4024
|
-
const
|
|
4025
|
-
K.i = u, K.id = u.uid, C.scheduler = () => Vr(K), Lt(u, !0), v.NODE_ENV !== "production" && (C.onTrack = u.rtc ? (A) => ro(u.rtc, A) : void 0, C.onTrigger = u.rtg ? (A) => ro(u.rtg, A) : void 0),
|
|
4024
|
+
const E = u.update = C.run.bind(C), K = u.job = C.runIfDirty.bind(C);
|
|
4025
|
+
K.i = u, K.id = u.uid, C.scheduler = () => Vr(K), Lt(u, !0), v.NODE_ENV !== "production" && (C.onTrack = u.rtc ? (A) => ro(u.rtc, A) : void 0, C.onTrigger = u.rtg ? (A) => ro(u.rtg, A) : void 0), E();
|
|
4026
4026
|
}, Q = (u, h, m) => {
|
|
4027
4027
|
h.component = u;
|
|
4028
4028
|
const S = u.vnode.props;
|
|
4029
4029
|
u.vnode = h, u.next = null, Cc(u, h.props, S, m), Fc(u, h.children, m), et(), Qn(u), tt();
|
|
4030
4030
|
}, it = (u, h, m, S, x, k, V, T, C = !1) => {
|
|
4031
|
-
const
|
|
4031
|
+
const E = u && u.children, K = u ? u.shapeFlag : 0, A = h.children, { patchFlag: B, shapeFlag: J } = h;
|
|
4032
4032
|
if (B > 0) {
|
|
4033
4033
|
if (B & 128) {
|
|
4034
4034
|
ho(
|
|
4035
|
-
|
|
4035
|
+
E,
|
|
4036
4036
|
A,
|
|
4037
4037
|
m,
|
|
4038
4038
|
S,
|
|
@@ -4045,7 +4045,7 @@ function Hc(e, t) {
|
|
|
4045
4045
|
return;
|
|
4046
4046
|
} else if (B & 256) {
|
|
4047
4047
|
jr(
|
|
4048
|
-
|
|
4048
|
+
E,
|
|
4049
4049
|
A,
|
|
4050
4050
|
m,
|
|
4051
4051
|
S,
|
|
@@ -4058,8 +4058,8 @@ function Hc(e, t) {
|
|
|
4058
4058
|
return;
|
|
4059
4059
|
}
|
|
4060
4060
|
}
|
|
4061
|
-
J & 8 ? (K & 16 && go(
|
|
4062
|
-
|
|
4061
|
+
J & 8 ? (K & 16 && go(E, x, k), A !== E && c(m, A)) : K & 16 ? J & 16 ? ho(
|
|
4062
|
+
E,
|
|
4063
4063
|
A,
|
|
4064
4064
|
m,
|
|
4065
4065
|
S,
|
|
@@ -4068,7 +4068,7 @@ function Hc(e, t) {
|
|
|
4068
4068
|
V,
|
|
4069
4069
|
T,
|
|
4070
4070
|
C
|
|
4071
|
-
) : go(
|
|
4071
|
+
) : go(E, x, k, !0) : (K & 8 && c(m, ""), J & 16 && _(
|
|
4072
4072
|
A,
|
|
4073
4073
|
m,
|
|
4074
4074
|
S,
|
|
@@ -4080,7 +4080,7 @@ function Hc(e, t) {
|
|
|
4080
4080
|
));
|
|
4081
4081
|
}, jr = (u, h, m, S, x, k, V, T, C) => {
|
|
4082
4082
|
u = u || io, h = h || io;
|
|
4083
|
-
const
|
|
4083
|
+
const E = u.length, K = h.length, A = Math.min(E, K);
|
|
4084
4084
|
let B;
|
|
4085
4085
|
for (B = 0; B < A; B++) {
|
|
4086
4086
|
const J = h[B] = C ? Vt(h[B]) : Je(h[B]);
|
|
@@ -4096,7 +4096,7 @@ function Hc(e, t) {
|
|
|
4096
4096
|
C
|
|
4097
4097
|
);
|
|
4098
4098
|
}
|
|
4099
|
-
|
|
4099
|
+
E > K ? go(
|
|
4100
4100
|
u,
|
|
4101
4101
|
x,
|
|
4102
4102
|
k,
|
|
@@ -4115,11 +4115,11 @@ function Hc(e, t) {
|
|
|
4115
4115
|
A
|
|
4116
4116
|
);
|
|
4117
4117
|
}, ho = (u, h, m, S, x, k, V, T, C) => {
|
|
4118
|
-
let
|
|
4118
|
+
let E = 0;
|
|
4119
4119
|
const K = h.length;
|
|
4120
4120
|
let A = u.length - 1, B = K - 1;
|
|
4121
|
-
for (;
|
|
4122
|
-
const J = u[
|
|
4121
|
+
for (; E <= A && E <= B; ) {
|
|
4122
|
+
const J = u[E], te = h[E] = C ? Vt(h[E]) : Je(h[E]);
|
|
4123
4123
|
if (Ut(J, te))
|
|
4124
4124
|
b(
|
|
4125
4125
|
J,
|
|
@@ -4134,9 +4134,9 @@ function Hc(e, t) {
|
|
|
4134
4134
|
);
|
|
4135
4135
|
else
|
|
4136
4136
|
break;
|
|
4137
|
-
|
|
4137
|
+
E++;
|
|
4138
4138
|
}
|
|
4139
|
-
for (;
|
|
4139
|
+
for (; E <= A && E <= B; ) {
|
|
4140
4140
|
const J = u[A], te = h[B] = C ? Vt(h[B]) : Je(h[B]);
|
|
4141
4141
|
if (Ut(J, te))
|
|
4142
4142
|
b(
|
|
@@ -4154,13 +4154,13 @@ function Hc(e, t) {
|
|
|
4154
4154
|
break;
|
|
4155
4155
|
A--, B--;
|
|
4156
4156
|
}
|
|
4157
|
-
if (
|
|
4158
|
-
if (
|
|
4157
|
+
if (E > A) {
|
|
4158
|
+
if (E <= B) {
|
|
4159
4159
|
const J = B + 1, te = J < K ? h[J].el : S;
|
|
4160
|
-
for (;
|
|
4160
|
+
for (; E <= B; )
|
|
4161
4161
|
b(
|
|
4162
4162
|
null,
|
|
4163
|
-
h[
|
|
4163
|
+
h[E] = C ? Vt(h[E]) : Je(h[E]),
|
|
4164
4164
|
m,
|
|
4165
4165
|
te,
|
|
4166
4166
|
x,
|
|
@@ -4168,28 +4168,28 @@ function Hc(e, t) {
|
|
|
4168
4168
|
V,
|
|
4169
4169
|
T,
|
|
4170
4170
|
C
|
|
4171
|
-
),
|
|
4171
|
+
), E++;
|
|
4172
4172
|
}
|
|
4173
|
-
} else if (
|
|
4174
|
-
for (;
|
|
4175
|
-
$t(u[
|
|
4173
|
+
} else if (E > B)
|
|
4174
|
+
for (; E <= A; )
|
|
4175
|
+
$t(u[E], x, k, !0), E++;
|
|
4176
4176
|
else {
|
|
4177
|
-
const J =
|
|
4178
|
-
for (
|
|
4179
|
-
const Me = h[
|
|
4177
|
+
const J = E, te = E, he = /* @__PURE__ */ new Map();
|
|
4178
|
+
for (E = te; E <= B; E++) {
|
|
4179
|
+
const Me = h[E] = C ? Vt(h[E]) : Je(h[E]);
|
|
4180
4180
|
Me.key != null && (v.NODE_ENV !== "production" && he.has(Me.key) && O(
|
|
4181
4181
|
"Duplicate keys found during update:",
|
|
4182
4182
|
JSON.stringify(Me.key),
|
|
4183
4183
|
"Make sure keys are unique."
|
|
4184
|
-
), he.set(Me.key,
|
|
4184
|
+
), he.set(Me.key, E));
|
|
4185
4185
|
}
|
|
4186
4186
|
let de, Re = 0;
|
|
4187
4187
|
const ze = B - te + 1;
|
|
4188
4188
|
let at = !1, st = 0;
|
|
4189
4189
|
const wo = new Array(ze);
|
|
4190
|
-
for (
|
|
4191
|
-
for (
|
|
4192
|
-
const Me = u[
|
|
4190
|
+
for (E = 0; E < ze; E++) wo[E] = 0;
|
|
4191
|
+
for (E = J; E <= A; E++) {
|
|
4192
|
+
const Me = u[E];
|
|
4193
4193
|
if (Re >= ze) {
|
|
4194
4194
|
$t(Me, x, k, !0);
|
|
4195
4195
|
continue;
|
|
@@ -4203,7 +4203,7 @@ function Hc(e, t) {
|
|
|
4203
4203
|
lt = de;
|
|
4204
4204
|
break;
|
|
4205
4205
|
}
|
|
4206
|
-
lt === void 0 ? $t(Me, x, k, !0) : (wo[lt - te] =
|
|
4206
|
+
lt === void 0 ? $t(Me, x, k, !0) : (wo[lt - te] = E + 1, lt >= st ? st = lt : at = !0, b(
|
|
4207
4207
|
Me,
|
|
4208
4208
|
h[lt],
|
|
4209
4209
|
m,
|
|
@@ -4216,12 +4216,12 @@ function Hc(e, t) {
|
|
|
4216
4216
|
), Re++);
|
|
4217
4217
|
}
|
|
4218
4218
|
const Kn = at ? Bc(wo) : io;
|
|
4219
|
-
for (de = Kn.length - 1,
|
|
4220
|
-
const Me = te +
|
|
4219
|
+
for (de = Kn.length - 1, E = ze - 1; E >= 0; E--) {
|
|
4220
|
+
const Me = te + E, lt = h[Me], Wn = h[Me + 1], qn = Me + 1 < K ? (
|
|
4221
4221
|
// #13559, fallback to el placeholder for unresolved async component
|
|
4222
4222
|
Wn.el || Wn.placeholder
|
|
4223
4223
|
) : S;
|
|
4224
|
-
wo[
|
|
4224
|
+
wo[E] === 0 ? b(
|
|
4225
4225
|
null,
|
|
4226
4226
|
lt,
|
|
4227
4227
|
m,
|
|
@@ -4231,20 +4231,20 @@ function Hc(e, t) {
|
|
|
4231
4231
|
V,
|
|
4232
4232
|
T,
|
|
4233
4233
|
C
|
|
4234
|
-
) : at && (de < 0 ||
|
|
4234
|
+
) : at && (de < 0 || E !== Kn[de] ? Qt(lt, m, qn, 2) : de--);
|
|
4235
4235
|
}
|
|
4236
4236
|
}
|
|
4237
4237
|
}, Qt = (u, h, m, S, x = null) => {
|
|
4238
|
-
const { el: k, type: V, transition: T, children: C, shapeFlag:
|
|
4239
|
-
if (
|
|
4238
|
+
const { el: k, type: V, transition: T, children: C, shapeFlag: E } = u;
|
|
4239
|
+
if (E & 6) {
|
|
4240
4240
|
Qt(u.component.subTree, h, m, S);
|
|
4241
4241
|
return;
|
|
4242
4242
|
}
|
|
4243
|
-
if (
|
|
4243
|
+
if (E & 128) {
|
|
4244
4244
|
u.suspense.move(h, m, S);
|
|
4245
4245
|
return;
|
|
4246
4246
|
}
|
|
4247
|
-
if (
|
|
4247
|
+
if (E & 64) {
|
|
4248
4248
|
V.move(u, h, m, vo);
|
|
4249
4249
|
return;
|
|
4250
4250
|
}
|
|
@@ -4259,7 +4259,7 @@ function Hc(e, t) {
|
|
|
4259
4259
|
fe(u, h, m);
|
|
4260
4260
|
return;
|
|
4261
4261
|
}
|
|
4262
|
-
if (S !== 2 &&
|
|
4262
|
+
if (S !== 2 && E & 1 && T)
|
|
4263
4263
|
if (S === 0)
|
|
4264
4264
|
T.beforeEnter(k), r(k, h, m), Pe(() => T.enter(k), x);
|
|
4265
4265
|
else {
|
|
@@ -4283,7 +4283,7 @@ function Hc(e, t) {
|
|
|
4283
4283
|
props: V,
|
|
4284
4284
|
ref: T,
|
|
4285
4285
|
children: C,
|
|
4286
|
-
dynamicChildren:
|
|
4286
|
+
dynamicChildren: E,
|
|
4287
4287
|
shapeFlag: K,
|
|
4288
4288
|
patchFlag: A,
|
|
4289
4289
|
dirs: B,
|
|
@@ -4308,14 +4308,14 @@ function Hc(e, t) {
|
|
|
4308
4308
|
m,
|
|
4309
4309
|
vo,
|
|
4310
4310
|
S
|
|
4311
|
-
) :
|
|
4311
|
+
) : E && // #5154
|
|
4312
4312
|
// when v-once is used inside a block, setBlockTracking(-1) marks the
|
|
4313
4313
|
// parent block with hasOnce: true
|
|
4314
4314
|
// so that it doesn't take the fast path during unmount - otherwise
|
|
4315
4315
|
// components nested in v-once are never unmounted.
|
|
4316
|
-
!
|
|
4316
|
+
!E.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments
|
|
4317
4317
|
(k !== re || A > 0 && A & 64) ? go(
|
|
4318
|
-
|
|
4318
|
+
E,
|
|
4319
4319
|
h,
|
|
4320
4320
|
m,
|
|
4321
4321
|
!1,
|
|
@@ -4352,8 +4352,8 @@ function Hc(e, t) {
|
|
|
4352
4352
|
n(h);
|
|
4353
4353
|
}, Ds = (u, h, m) => {
|
|
4354
4354
|
v.NODE_ENV !== "production" && u.type.__hmrId && Al(u);
|
|
4355
|
-
const { bum: S, scope: x, job: k, subTree: V, um: T, m: C, a:
|
|
4356
|
-
mi(C), mi(
|
|
4355
|
+
const { bum: S, scope: x, job: k, subTree: V, um: T, m: C, a: E } = u;
|
|
4356
|
+
mi(C), mi(E), S && ro(S), x.stop(), k && (k.flags |= 8, $t(V, u, h, m)), T && Pe(T, h), Pe(() => {
|
|
4357
4357
|
u.isUnmounted = !0;
|
|
4358
4358
|
}, h), v.NODE_ENV !== "production" && Rl(u);
|
|
4359
4359
|
}, go = (u, h, m, S = !1, x = !1, k = 0) => {
|
|
@@ -5064,8 +5064,8 @@ function cd() {
|
|
|
5064
5064
|
d.type.props && d.props && p.push(a("props", X(d.props))), d.setupState !== ce && p.push(a("setup", d.setupState)), d.data !== ce && p.push(a("data", X(d.data)));
|
|
5065
5065
|
const w = l(d, "computed");
|
|
5066
5066
|
w && p.push(a("computed", w));
|
|
5067
|
-
const
|
|
5068
|
-
return
|
|
5067
|
+
const N = l(d, "inject");
|
|
5068
|
+
return N && p.push(a("injected", N)), p.push([
|
|
5069
5069
|
"div",
|
|
5070
5070
|
{},
|
|
5071
5071
|
[
|
|
@@ -5110,14 +5110,14 @@ function cd() {
|
|
|
5110
5110
|
const w = d.type;
|
|
5111
5111
|
if (W(w))
|
|
5112
5112
|
return;
|
|
5113
|
-
const
|
|
5113
|
+
const N = {};
|
|
5114
5114
|
for (const b in d.ctx)
|
|
5115
|
-
f(w, b, p) && (
|
|
5116
|
-
return
|
|
5115
|
+
f(w, b, p) && (N[b] = d.ctx[b]);
|
|
5116
|
+
return N;
|
|
5117
5117
|
}
|
|
5118
5118
|
function f(d, p, w) {
|
|
5119
|
-
const
|
|
5120
|
-
if (L(
|
|
5119
|
+
const N = d[w];
|
|
5120
|
+
if (L(N) && N.includes(p) || ae(N) && p in N || d.extends && f(d.extends, p, w) || d.mixins && d.mixins.some((b) => f(b, p, w)))
|
|
5121
5121
|
return !0;
|
|
5122
5122
|
}
|
|
5123
5123
|
function c(d) {
|
|
@@ -5237,7 +5237,7 @@ function gd(e) {
|
|
|
5237
5237
|
leaveFromClass: d = `${o}-leave-from`,
|
|
5238
5238
|
leaveActiveClass: p = `${o}-leave-active`,
|
|
5239
5239
|
leaveToClass: w = `${o}-leave-to`
|
|
5240
|
-
} = e,
|
|
5240
|
+
} = e, N = vd(n), b = N && N[0], F = N && N[1], {
|
|
5241
5241
|
onBeforeEnter: R,
|
|
5242
5242
|
onEnter: z,
|
|
5243
5243
|
onEnterCancelled: U,
|
|
@@ -5332,7 +5332,7 @@ function Si(e, t, o, r) {
|
|
|
5332
5332
|
}, s + 1), e.addEventListener(f, p);
|
|
5333
5333
|
}
|
|
5334
5334
|
function md(e, t) {
|
|
5335
|
-
const o = window.getComputedStyle(e), r = (
|
|
5335
|
+
const o = window.getComputedStyle(e), r = (N) => (o[N] || "").split(", "), n = r(`${Ct}Delay`), i = r(`${Ct}Duration`), a = $i(n, i), s = r(`${yo}Delay`), l = r(`${yo}Duration`), f = $i(s, l);
|
|
5336
5336
|
let c = null, d = 0, p = 0;
|
|
5337
5337
|
t === Ct ? a > 0 && (c = Ct, d = a, p = i.length) : t === yo ? f > 0 && (c = yo, d = f, p = l.length) : (d = Math.max(a, f), c = d > 0 ? a > f ? Ct : yo : null, p = c ? c === Ct ? i.length : l.length : 0);
|
|
5338
5338
|
const w = c === Ct && /\b(?:transform|all)(?:,|$)/.test(
|
|
@@ -6053,22 +6053,151 @@ function Yd() {
|
|
|
6053
6053
|
cd();
|
|
6054
6054
|
}
|
|
6055
6055
|
Gd.NODE_ENV !== "production" && Yd();
|
|
6056
|
-
const
|
|
6057
|
-
|
|
6056
|
+
const Xd = ".icon[data-v-6fc289e2]{width:1em;height:1em;display:inline-block;vertical-align:middle}", be = (e, t) => {
|
|
6057
|
+
const o = e.__vccOpts || e;
|
|
6058
|
+
for (const [r, n] of t)
|
|
6059
|
+
o[r] = n;
|
|
6060
|
+
return o;
|
|
6061
|
+
}, Zd = {}, Qd = {
|
|
6062
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6063
|
+
viewBox: "0 0 24 24",
|
|
6064
|
+
fill: "none",
|
|
6065
|
+
stroke: "currentColor",
|
|
6066
|
+
"stroke-width": "2",
|
|
6067
|
+
"stroke-linecap": "round",
|
|
6068
|
+
"stroke-linejoin": "round",
|
|
6069
|
+
class: "icon"
|
|
6070
|
+
};
|
|
6071
|
+
function ef(e, t) {
|
|
6072
|
+
return y(), D("svg", Qd, [...t[0] || (t[0] = [
|
|
6073
|
+
g("circle", {
|
|
6074
|
+
cx: "12",
|
|
6075
|
+
cy: "12",
|
|
6076
|
+
r: "10"
|
|
6077
|
+
}, null, -1),
|
|
6078
|
+
g("line", {
|
|
6079
|
+
x1: "2",
|
|
6080
|
+
y1: "12",
|
|
6081
|
+
x2: "22",
|
|
6082
|
+
y2: "12"
|
|
6083
|
+
}, null, -1),
|
|
6084
|
+
g("path", { d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" }, null, -1)
|
|
6085
|
+
])]);
|
|
6086
|
+
}
|
|
6087
|
+
const Hn = /* @__PURE__ */ be(Zd, [["render", ef], ["styles", [Xd]], ["__scopeId", "data-v-6fc289e2"]]), tf = ".icon[data-v-4c3ea1ca]{width:1em;height:1em;display:inline-block;vertical-align:middle}", of = {}, rf = {
|
|
6088
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6089
|
+
viewBox: "0 0 24 24",
|
|
6090
|
+
fill: "none",
|
|
6091
|
+
stroke: "currentColor",
|
|
6092
|
+
"stroke-width": "2",
|
|
6093
|
+
"stroke-linecap": "round",
|
|
6094
|
+
"stroke-linejoin": "round",
|
|
6095
|
+
class: "icon"
|
|
6096
|
+
};
|
|
6097
|
+
function nf(e, t) {
|
|
6098
|
+
return y(), D("svg", rf, [...t[0] || (t[0] = [
|
|
6099
|
+
g("rect", {
|
|
6100
|
+
x: "3",
|
|
6101
|
+
y: "3",
|
|
6102
|
+
width: "18",
|
|
6103
|
+
height: "18",
|
|
6104
|
+
rx: "2",
|
|
6105
|
+
ry: "2"
|
|
6106
|
+
}, null, -1),
|
|
6107
|
+
g("line", {
|
|
6108
|
+
x1: "9",
|
|
6109
|
+
y1: "3",
|
|
6110
|
+
x2: "9",
|
|
6111
|
+
y2: "21"
|
|
6112
|
+
}, null, -1),
|
|
6113
|
+
g("line", {
|
|
6114
|
+
x1: "3",
|
|
6115
|
+
y1: "9",
|
|
6116
|
+
x2: "21",
|
|
6117
|
+
y2: "9"
|
|
6118
|
+
}, null, -1)
|
|
6119
|
+
])]);
|
|
6120
|
+
}
|
|
6121
|
+
const Ns = /* @__PURE__ */ be(of, [["render", nf], ["styles", [tf]], ["__scopeId", "data-v-4c3ea1ca"]]), af = ".icon[data-v-65e4a862]{width:1em;height:1em;display:inline-block;vertical-align:middle}", sf = {}, lf = {
|
|
6122
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6123
|
+
viewBox: "0 0 24 24",
|
|
6124
|
+
fill: "none",
|
|
6125
|
+
stroke: "currentColor",
|
|
6126
|
+
"stroke-width": "2",
|
|
6127
|
+
"stroke-linecap": "round",
|
|
6128
|
+
"stroke-linejoin": "round",
|
|
6129
|
+
class: "icon"
|
|
6130
|
+
};
|
|
6131
|
+
function cf(e, t) {
|
|
6132
|
+
return y(), D("svg", lf, [...t[0] || (t[0] = [
|
|
6133
|
+
g("circle", {
|
|
6134
|
+
cx: "12",
|
|
6135
|
+
cy: "12",
|
|
6136
|
+
r: "3"
|
|
6137
|
+
}, null, -1),
|
|
6138
|
+
g("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" }, null, -1)
|
|
6139
|
+
])]);
|
|
6140
|
+
}
|
|
6141
|
+
const Os = /* @__PURE__ */ be(sf, [["render", cf], ["styles", [af]], ["__scopeId", "data-v-65e4a862"]]), df = { class: "loader-container" }, ff = { class: "loader" }, uf = { class: "loader-text" }, pf = /* @__PURE__ */ _e({
|
|
6142
|
+
__name: "Loader",
|
|
6143
|
+
props: {
|
|
6144
|
+
message: { default: "Loading...", type: String },
|
|
6145
|
+
size: { default: "md", type: String }
|
|
6146
|
+
},
|
|
6147
|
+
setup(e) {
|
|
6148
|
+
return (t, o) => (y(), D("div", df, [
|
|
6149
|
+
g("div", ff, [
|
|
6150
|
+
o[0] || (o[0] = g("div", { class: "loader-circle" }, null, -1)),
|
|
6151
|
+
g("div", uf, G(e.message), 1)
|
|
6152
|
+
])
|
|
6153
|
+
]));
|
|
6154
|
+
}
|
|
6155
|
+
}), hf = ".loader-container[data-v-7b6a86d7]{display:flex;justify-content:center;align-items:center;min-height:100px;padding:20px}.loader[data-v-7b6a86d7]{text-align:center}.loader-circle[data-v-7b6a86d7]{display:inline-block;width:40px;height:40px;border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #3498db;animation:spin-7b6a86d7 1s linear infinite;margin-bottom:8px;transform-origin:center}.loader-text[data-v-7b6a86d7]{color:#666;font-size:14px}@keyframes spin-7b6a86d7{0%{transform:rotate(0)}to{transform:rotate(360deg)}}", Un = /* @__PURE__ */ be(pf, [["styles", [hf]], ["__scopeId", "data-v-7b6a86d7"]]), gf = { class: "tabs" }, vf = ["onClick"], wf = {
|
|
6156
|
+
key: 0,
|
|
6157
|
+
class: "tab-icon"
|
|
6158
|
+
}, mf = ["innerHTML"], bf = { class: "tab-label" }, yf = /* @__PURE__ */ _e({
|
|
6159
|
+
__name: "Tabs",
|
|
6160
|
+
props: {
|
|
6161
|
+
modelValue: { type: String },
|
|
6162
|
+
tabs: { type: Array }
|
|
6163
|
+
},
|
|
6164
|
+
emits: ["update:modelValue"],
|
|
6165
|
+
setup(e, { emit: t }) {
|
|
6166
|
+
const o = e, r = t, n = ne(o.modelValue);
|
|
6167
|
+
return Te(n, (i) => {
|
|
6168
|
+
r("update:modelValue", i);
|
|
6169
|
+
}), (i, a) => (y(), D("div", gf, [
|
|
6170
|
+
(y(!0), D(re, null, Fe(e.tabs, (s) => (y(), D("button", {
|
|
6171
|
+
key: s.value,
|
|
6172
|
+
class: ye(["tab", { active: n.value === s.value }]),
|
|
6173
|
+
onClick: (l) => n.value = s.value
|
|
6174
|
+
}, [
|
|
6175
|
+
s.icon ? (y(), D("span", wf, [
|
|
6176
|
+
typeof s.icon != "string" ? (y(), me(Ba(typeof s.icon == "string" ? "span" : s.icon), { key: 0 })) : (y(), D("span", {
|
|
6177
|
+
key: 1,
|
|
6178
|
+
innerHTML: s.icon
|
|
6179
|
+
}, null, 8, mf))
|
|
6180
|
+
])) : ie("", !0),
|
|
6181
|
+
g("span", bf, G(s.label), 1)
|
|
6182
|
+
], 10, vf))), 128))
|
|
6183
|
+
]));
|
|
6184
|
+
}
|
|
6185
|
+
}), _f = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-ce7b728f],[data-v-ce7b728f]:before,[data-v-ce7b728f]:after,[data-v-ce7b728f]::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-duration:initial}}}.tabs[data-v-ce7b728f]{top:calc(var(--spacing,.25rem)*0);z-index:10;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-slate-200,oklch(92.9% .013 255.508));background-color:var(--color-white,#fff);display:flex;position:sticky}.tab[data-v-ce7b728f]{align-items:center;gap:calc(var(--spacing,.25rem)*2);border-bottom-style:var(--tw-border-style);padding-inline:calc(var(--spacing,.25rem)*4);padding-block:calc(var(--spacing,.25rem)*2);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);color:var(--color-slate-600,oklch(44.6% .043 257.281));transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.2s;border-color:#0000;border-bottom-width:2px;transition-duration:.2s;display:flex}@media(hover:hover){.tab[data-v-ce7b728f]:hover{background-color:var(--color-slate-50,oklch(98.4% .003 247.858));color:var(--color-slate-800,oklch(27.9% .041 260.031))}}.tab.active[data-v-ce7b728f]{border-color:var(--color-blue-500,oklch(62.3% .214 259.815));background-color:var(--color-blue-50,oklch(97% .014 254.604));color:var(--color-blue-600,oklch(54.6% .245 262.881))}.tab-icon[data-v-ce7b728f]{font-size:var(--text-base,1rem);line-height:var(--tw-leading,var(--text-base--line-height, 1.5 ));align-items:center;width:16px;height:16px;display:flex}.tab-icon[data-v-ce7b728f] svg{width:100%;height:100%}.tab-label[data-v-ce7b728f]{white-space:nowrap}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}', xf = /* @__PURE__ */ be(yf, [["styles", [_f]], ["__scopeId", "data-v-ce7b728f"]]), Ss = /* @__PURE__ */ Symbol("i18n-state");
|
|
6186
|
+
function kf() {
|
|
6058
6187
|
const e = ne(!0), t = ne(""), o = ne({}), r = ne({}), n = ne({}), i = ne(null), a = (w) => {
|
|
6059
6188
|
i.value = w;
|
|
6060
6189
|
}, s = (w) => {
|
|
6061
|
-
const
|
|
6190
|
+
const N = w.replace(/^\/+/, "").replace(/\\/g, "/");
|
|
6062
6191
|
t.value = w;
|
|
6063
|
-
let b = o.value[
|
|
6064
|
-
b || (b = o.value[w]), !b && w.startsWith("/") && (b = o.value[w.slice(1)]), b ? n.value = { ...b } : (console.warn("[i18n-state] No content found for file:", w, "or normalized:",
|
|
6192
|
+
let b = o.value[N];
|
|
6193
|
+
b || (b = o.value[w]), !b && w.startsWith("/") && (b = o.value[w.slice(1)]), b ? n.value = { ...b } : (console.warn("[i18n-state] No content found for file:", w, "or normalized:", N), n.value = {});
|
|
6065
6194
|
}, l = async () => {
|
|
6066
|
-
const w = new Blob([JSON.stringify(n.value, null, 2)], { type: "application/json" }),
|
|
6067
|
-
b.href =
|
|
6195
|
+
const w = new Blob([JSON.stringify(n.value, null, 2)], { type: "application/json" }), N = URL.createObjectURL(w), b = document.createElement("a");
|
|
6196
|
+
b.href = N, b.download = "translations.json", b.click(), URL.revokeObjectURL(N);
|
|
6068
6197
|
}, f = (w) => {
|
|
6069
|
-
const
|
|
6070
|
-
if (
|
|
6071
|
-
const b =
|
|
6198
|
+
const N = w.target;
|
|
6199
|
+
if (N.files && N.files.length > 0) {
|
|
6200
|
+
const b = N.files[0];
|
|
6072
6201
|
if (b) {
|
|
6073
6202
|
const F = new FileReader();
|
|
6074
6203
|
F.onload = (R) => {
|
|
@@ -6099,11 +6228,8 @@ function Xd() {
|
|
|
6099
6228
|
}
|
|
6100
6229
|
try {
|
|
6101
6230
|
e.value = !0;
|
|
6102
|
-
const [w,
|
|
6103
|
-
|
|
6104
|
-
i.value.getConfigs()
|
|
6105
|
-
]);
|
|
6106
|
-
o.value = w, r.value = E, i.value.onLocalesUpdate((b) => {
|
|
6231
|
+
const [w, N] = await Promise.all([i.value.getLocalesAndTranslations(), i.value.getConfigs()]);
|
|
6232
|
+
o.value = w, r.value = N, i.value.onLocalesUpdate((b) => {
|
|
6107
6233
|
o.value = b, t.value && o.value[t.value] && (n.value = { ...o.value[t.value] });
|
|
6108
6234
|
});
|
|
6109
6235
|
} catch (w) {
|
|
@@ -6136,78 +6262,431 @@ function Xd() {
|
|
|
6136
6262
|
};
|
|
6137
6263
|
}
|
|
6138
6264
|
function Pr() {
|
|
6139
|
-
const e = $o(
|
|
6265
|
+
const e = $o(Ss);
|
|
6140
6266
|
if (!e)
|
|
6141
6267
|
throw new Error("I18n state not provided. Make sure to use createI18nState() and provide it in the root component.");
|
|
6142
6268
|
return e;
|
|
6143
6269
|
}
|
|
6144
|
-
const
|
|
6145
|
-
|
|
6146
|
-
class: "tab-icon"
|
|
6147
|
-
}, tf = ["innerHTML"], of = { class: "tab-label" }, rf = /* @__PURE__ */ _e({
|
|
6148
|
-
__name: "Tabs",
|
|
6270
|
+
const Ef = { class: "config-card" }, Nf = { class: "config-card__header" }, Of = { class: "config-card__icon" }, Sf = { key: 0 }, $f = { class: "config-card__title" }, Cf = { class: "config-card__content" }, Tf = /* @__PURE__ */ _e({
|
|
6271
|
+
__name: "ConfigCard",
|
|
6149
6272
|
props: {
|
|
6150
|
-
|
|
6151
|
-
|
|
6273
|
+
title: { type: String },
|
|
6274
|
+
icon: { type: String }
|
|
6152
6275
|
},
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
key: 1,
|
|
6167
|
-
innerHTML: s.icon
|
|
6168
|
-
}, null, 8, tf))
|
|
6169
|
-
])) : ie("", !0),
|
|
6170
|
-
g("span", of, G(s.label), 1)
|
|
6171
|
-
], 10, Qd))), 128))
|
|
6276
|
+
setup(e) {
|
|
6277
|
+
return (t, o) => (y(), D("div", Ef, [
|
|
6278
|
+
g("div", Nf, [
|
|
6279
|
+
g("span", Of, [
|
|
6280
|
+
vt(t.$slots, "icon", {}, () => [
|
|
6281
|
+
e.icon ? (y(), D("span", Sf, G(e.icon), 1)) : ie("", !0)
|
|
6282
|
+
])
|
|
6283
|
+
]),
|
|
6284
|
+
g("h3", $f, G(e.title), 1)
|
|
6285
|
+
]),
|
|
6286
|
+
g("div", Cf, [
|
|
6287
|
+
vt(t.$slots, "default", {}, void 0)
|
|
6288
|
+
])
|
|
6172
6289
|
]));
|
|
6173
6290
|
}
|
|
6174
|
-
}),
|
|
6175
|
-
|
|
6176
|
-
for (const [r, n] of t)
|
|
6177
|
-
o[r] = n;
|
|
6178
|
-
return o;
|
|
6179
|
-
}, af = /* @__PURE__ */ be(rf, [["styles", [nf]], ["__scopeId", "data-v-9a173138"]]), sf = { class: "loader-container" }, lf = { class: "loader" }, cf = { class: "loader-text" }, df = /* @__PURE__ */ _e({
|
|
6180
|
-
__name: "Loader",
|
|
6291
|
+
}), Df = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-3db26d7b],[data-v-3db26d7b]:before,[data-v-3db26d7b]:after,[data-v-3db26d7b]::backdrop{--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-font-weight:initial}}}.config-card[data-v-3db26d7b]{border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-slate-200,oklch(92.9% .013 255.508));background-color:var(--color-white,#fff);--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);overflow:hidden}.config-card__header[data-v-3db26d7b]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-slate-100,oklch(96.8% .007 247.896));background-color:var(--color-slate-50,oklch(98.4% .003 247.858));padding:calc(var(--spacing,.25rem)*4);padding-bottom:calc(var(--spacing,.25rem)*3);align-items:center;display:flex}.config-card__icon[data-v-3db26d7b]{margin-right:calc(var(--spacing,.25rem)*2);font-size:var(--text-lg,1.125rem);line-height:var(--tw-leading,var(--text-lg--line-height,calc(1.75/1.125)));align-items:center;display:flex}.config-card__title[data-v-3db26d7b]{font-size:var(--text-lg,1.125rem);line-height:var(--tw-leading,var(--text-lg--line-height,calc(1.75/1.125)));--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600);color:var(--color-slate-800,oklch(27.9% .041 260.031))}.config-card__content[data-v-3db26d7b]{padding:calc(var(--spacing,.25rem)*4)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-font-weight{syntax:"*";inherits:false}', Zr = /* @__PURE__ */ be(Tf, [["styles", [Df]], ["__scopeId", "data-v-3db26d7b"]]), Vf = { class: "status-indicator" }, Af = /* @__PURE__ */ _e({
|
|
6292
|
+
__name: "StatusIndicator",
|
|
6181
6293
|
props: {
|
|
6182
|
-
|
|
6294
|
+
status: { type: String },
|
|
6295
|
+
label: { type: String },
|
|
6183
6296
|
size: { default: "md", type: String }
|
|
6184
6297
|
},
|
|
6185
6298
|
setup(e) {
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6299
|
+
const t = e, o = oe(() => {
|
|
6300
|
+
const n = "status-indicator__dot", i = `status-indicator__dot--${t.size}`;
|
|
6301
|
+
switch (t.status) {
|
|
6302
|
+
case "active":
|
|
6303
|
+
case "enabled":
|
|
6304
|
+
case "success":
|
|
6305
|
+
return `${n} ${i} status-indicator__dot--success`;
|
|
6306
|
+
case "inactive":
|
|
6307
|
+
case "disabled":
|
|
6308
|
+
return `${n} ${i} status-indicator__dot--disabled`;
|
|
6309
|
+
case "warning":
|
|
6310
|
+
return `${n} ${i} status-indicator__dot--warning`;
|
|
6311
|
+
case "error":
|
|
6312
|
+
return `${n} ${i} status-indicator__dot--error`;
|
|
6313
|
+
case "info":
|
|
6314
|
+
return `${n} ${i} status-indicator__dot--info`;
|
|
6315
|
+
default:
|
|
6316
|
+
return `${n} ${i} status-indicator__dot--default`;
|
|
6317
|
+
}
|
|
6318
|
+
}), r = oe(() => {
|
|
6319
|
+
switch (t.status) {
|
|
6320
|
+
case "active":
|
|
6321
|
+
case "enabled":
|
|
6322
|
+
case "success":
|
|
6323
|
+
return "text-green-700";
|
|
6324
|
+
case "inactive":
|
|
6325
|
+
case "disabled":
|
|
6326
|
+
return "text-red-700";
|
|
6327
|
+
case "warning":
|
|
6328
|
+
return "text-yellow-700";
|
|
6329
|
+
case "error":
|
|
6330
|
+
return "text-red-700";
|
|
6331
|
+
case "info":
|
|
6332
|
+
return "text-blue-700";
|
|
6333
|
+
default:
|
|
6334
|
+
return "text-slate-700";
|
|
6335
|
+
}
|
|
6336
|
+
});
|
|
6337
|
+
return (n, i) => (y(), D("div", Vf, [
|
|
6338
|
+
g("div", {
|
|
6339
|
+
class: ye(["status-indicator__dot", o.value])
|
|
6340
|
+
}, null, 2),
|
|
6341
|
+
g("span", {
|
|
6342
|
+
class: ye(["status-indicator__text", r.value])
|
|
6343
|
+
}, G(e.label), 3)
|
|
6344
|
+
]));
|
|
6345
|
+
}
|
|
6346
|
+
}), Mf = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-ceddd4fb],[data-v-ceddd4fb]:before,[data-v-ceddd4fb]:after,[data-v-ceddd4fb]::backdrop{--tw-duration:initial;--tw-font-weight:initial}}}.status-indicator[data-v-ceddd4fb]{align-items:center;gap:calc(var(--spacing,.25rem)*2);display:flex}.status-indicator__dot[data-v-ceddd4fb]{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.2s;border-radius:3.40282e38px;transition-duration:.2s}.status-indicator__dot--sm[data-v-ceddd4fb]{height:calc(var(--spacing,.25rem)*2);width:calc(var(--spacing,.25rem)*2)}.status-indicator__dot--md[data-v-ceddd4fb]{height:calc(var(--spacing,.25rem)*3);width:calc(var(--spacing,.25rem)*3)}.status-indicator__dot--lg[data-v-ceddd4fb]{height:calc(var(--spacing,.25rem)*4);width:calc(var(--spacing,.25rem)*4)}.status-indicator__dot--success[data-v-ceddd4fb]{background-color:var(--color-green-500,oklch(72.3% .219 149.579));box-shadow:0 0 0 2px #22c55e33}.status-indicator__dot--disabled[data-v-ceddd4fb]{background-color:var(--color-red-500,oklch(63.7% .237 25.331));box-shadow:0 0 0 2px #ef444433}.status-indicator__dot--warning[data-v-ceddd4fb]{background-color:var(--color-yellow-500,oklch(79.5% .184 86.047));box-shadow:0 0 0 2px #eab30833}.status-indicator__dot--error[data-v-ceddd4fb]{background-color:var(--color-red-500,oklch(63.7% .237 25.331));box-shadow:0 0 0 2px #ef444433}.status-indicator__dot--info[data-v-ceddd4fb]{background-color:var(--color-blue-500,oklch(62.3% .214 259.815));box-shadow:0 0 0 2px #3b82f633}.status-indicator__dot--default[data-v-ceddd4fb]{background-color:var(--color-slate-500,oklch(55.4% .046 257.417));box-shadow:0 0 0 2px #64748b33}.status-indicator__text[data-v-ceddd4fb]{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}@property --tw-duration{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}', bn = /* @__PURE__ */ be(Af, [["styles", [Mf]], ["__scopeId", "data-v-ceddd4fb"]]), If = { class: "locale-table-container" }, Pf = { class: "locale-table-wrapper" }, jf = { class: "locale-table" }, Lf = { class: "locale-table__header" }, Ff = { class: "header-content" }, Rf = { class: "header-icon" }, zf = { key: 1 }, Hf = { class: "header-text" }, Uf = { class: "locale-table__body" }, Bf = { class: "locale-table__cell" }, Kf = { class: "locale-code" }, Wf = { class: "locale-code__text" }, qf = { class: "locale-table__cell" }, Jf = { class: "locale-name" }, Gf = { class: "locale-table__cell" }, Yf = { class: "locale-iso" }, Xf = { class: "locale-table__cell" }, Zf = { class: "direction-indicator" }, Qf = { class: "locale-table__cell" }, eu = { class: "base-url" }, tu = { class: "locale-table__cell" }, ou = /* @__PURE__ */ _e({
|
|
6347
|
+
__name: "LocaleTable",
|
|
6348
|
+
props: {
|
|
6349
|
+
locales: { type: Array }
|
|
6350
|
+
},
|
|
6351
|
+
setup(e) {
|
|
6352
|
+
const t = [
|
|
6353
|
+
{ key: "code", label: "Code", icon: "🏷️" },
|
|
6354
|
+
{ key: "name", label: "Display Name", icon: "📝" },
|
|
6355
|
+
{ key: "iso", label: "ISO Code", iconComponent: Hn },
|
|
6356
|
+
{ key: "dir", label: "Direction", icon: "↔️" },
|
|
6357
|
+
{ key: "baseUrl", label: "Base URL", icon: "🔗" },
|
|
6358
|
+
{ key: "status", label: "Status", icon: "⚡" }
|
|
6359
|
+
];
|
|
6360
|
+
return (o, r) => (y(), D("div", If, [
|
|
6361
|
+
g("div", Pf, [
|
|
6362
|
+
g("table", jf, [
|
|
6363
|
+
g("thead", Lf, [
|
|
6364
|
+
g("tr", null, [
|
|
6365
|
+
(y(), D(re, null, Fe(t, (n) => g("th", {
|
|
6366
|
+
key: n.key,
|
|
6367
|
+
class: "locale-table__header-cell"
|
|
6368
|
+
}, [
|
|
6369
|
+
g("div", Ff, [
|
|
6370
|
+
g("span", Rf, [
|
|
6371
|
+
n.iconComponent ? (y(), me(Ba(n.iconComponent), { key: 0 })) : (y(), D("span", zf, G(n.icon), 1))
|
|
6372
|
+
]),
|
|
6373
|
+
g("span", Hf, G(n.label), 1)
|
|
6374
|
+
])
|
|
6375
|
+
])), 64))
|
|
6376
|
+
])
|
|
6377
|
+
]),
|
|
6378
|
+
g("tbody", Uf, [
|
|
6379
|
+
(y(!0), D(re, null, Fe(e.locales, (n) => (y(), D("tr", {
|
|
6380
|
+
key: n.code,
|
|
6381
|
+
class: "locale-table__row"
|
|
6382
|
+
}, [
|
|
6383
|
+
g("td", Bf, [
|
|
6384
|
+
g("div", Kf, [
|
|
6385
|
+
g("span", Wf, G(n.code), 1)
|
|
6386
|
+
])
|
|
6387
|
+
]),
|
|
6388
|
+
g("td", qf, [
|
|
6389
|
+
g("span", Jf, G(n.displayName || "—"), 1)
|
|
6390
|
+
]),
|
|
6391
|
+
g("td", Gf, [
|
|
6392
|
+
g("span", Yf, G(n.iso || "—"), 1)
|
|
6393
|
+
]),
|
|
6394
|
+
g("td", Xf, [
|
|
6395
|
+
g("div", Zf, [
|
|
6396
|
+
g("span", {
|
|
6397
|
+
class: ye(["direction-badge", `direction-badge--${n.dir || "ltr"}`])
|
|
6398
|
+
}, G((n.dir || "ltr").toUpperCase()), 3)
|
|
6399
|
+
])
|
|
6400
|
+
]),
|
|
6401
|
+
g("td", Qf, [
|
|
6402
|
+
g("span", eu, G(n.baseUrl || "—"), 1)
|
|
6403
|
+
]),
|
|
6404
|
+
g("td", tu, [
|
|
6405
|
+
Y(bn, {
|
|
6406
|
+
status: n.disabled ? "disabled" : "active",
|
|
6407
|
+
label: n.disabled ? "Disabled" : "Active",
|
|
6408
|
+
size: "sm"
|
|
6409
|
+
}, null, 8, ["status", "label"])
|
|
6410
|
+
])
|
|
6411
|
+
]))), 128))
|
|
6412
|
+
])
|
|
6413
|
+
])
|
|
6190
6414
|
])
|
|
6191
6415
|
]));
|
|
6192
6416
|
}
|
|
6193
|
-
}),
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6417
|
+
}), ru = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-96ef3218],[data-v-96ef3218]:before,[data-v-96ef3218]:after,[data-v-96ef3218]::backdrop{--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-duration:initial}}}.locale-table-container[data-v-96ef3218]{border-radius:var(--radius-xl,.75rem);border-style:var(--tw-border-style);background-color:var(--color-white,#fff);--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-width:1px;overflow:hidden}.locale-table-wrapper[data-v-96ef3218]{overflow-x:auto}.locale-table[data-v-96ef3218]{border-collapse:collapse;width:100%}.locale-table__header[data-v-96ef3218]{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops));--tw-gradient-from:var(--color-slate-50,oklch(98.4% .003 247.858));--tw-gradient-to:var(--color-blue-50,oklch(97% .014 254.604));--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.locale-table__header-cell[data-v-96ef3218]{padding-inline:calc(var(--spacing,.25rem)*4);padding-block:calc(var(--spacing,.25rem)*4);text-align:left}.header-content[data-v-96ef3218]{align-items:center;gap:calc(var(--spacing,.25rem)*2);display:flex}.header-icon[data-v-96ef3218]{font-size:var(--text-lg,1.125rem);line-height:var(--tw-leading,var(--text-lg--line-height,calc(1.75/1.125)));align-items:center;display:flex}.header-text[data-v-96ef3218]{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600);color:var(--color-slate-700,oklch(37.2% .044 257.287))}.locale-table__row[data-v-96ef3218]{border-top-style:var(--tw-border-style);border-top-width:1px;border-color:var(--color-slate-100,oklch(96.8% .007 247.896));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.2s;transition-duration:.2s}@media(hover:hover){.locale-table__row[data-v-96ef3218]:hover{background-color:var(--color-slate-50,oklch(98.4% .003 247.858))}}.locale-table__cell[data-v-96ef3218]{padding-inline:calc(var(--spacing,.25rem)*4);padding-block:calc(var(--spacing,.25rem)*4);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)))}.locale-code[data-v-96ef3218]{align-items:center;display:inline-flex}.locale-code__text[data-v-96ef3218]{border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-blue-200,oklch(88.2% .059 254.128));background-color:var(--color-blue-50,oklch(97% .014 254.604));padding-inline:calc(var(--spacing,.25rem)*3);padding-block:calc(var(--spacing,.25rem)*1);font-family:var(--font-mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));color:var(--color-blue-700,oklch(48.8% .243 264.376))}.locale-name[data-v-96ef3218]{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);color:var(--color-slate-700,oklch(37.2% .044 257.287))}.locale-iso[data-v-96ef3218]{border-radius:var(--radius-sm,.25rem);background-color:var(--color-slate-100,oklch(96.8% .007 247.896));padding-inline:calc(var(--spacing,.25rem)*2);padding-block:calc(var(--spacing,.25rem)*1);font-family:var(--font-mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1/.75)));color:var(--color-slate-600,oklch(44.6% .043 257.281))}.direction-indicator[data-v-96ef3218]{align-items:center;display:flex}.direction-badge[data-v-96ef3218]{padding-inline:calc(var(--spacing,.25rem)*2);padding-block:calc(var(--spacing,.25rem)*1);font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1/.75)));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);border-radius:3.40282e38px}.direction-badge--ltr[data-v-96ef3218]{background-color:var(--color-purple-100,oklch(94.6% .033 307.174));color:var(--color-purple-800,oklch(43.8% .218 303.724))}.direction-badge--rtl[data-v-96ef3218]{background-color:var(--color-orange-100,oklch(95.4% .038 75.164));color:var(--color-orange-800,oklch(47% .157 37.304))}.base-url[data-v-96ef3218]{font-family:var(--font-mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1/.75)));color:var(--color-slate-600,oklch(44.6% .043 257.281))}.locale-table__row[data-v-96ef3218]{animation:.3s ease-out slideInLeft-96ef3218}@keyframes slideInLeft-96ef3218{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}.locale-table__row[data-v-96ef3218]:first-child{animation-delay:.1s}.locale-table__row[data-v-96ef3218]:nth-child(2){animation-delay:.2s}.locale-table__row[data-v-96ef3218]:nth-child(3){animation-delay:.3s}.locale-table__row[data-v-96ef3218]:nth-child(4){animation-delay:.4s}.locale-table__row[data-v-96ef3218]:nth-child(5){animation-delay:.5s}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}', nu = /* @__PURE__ */ be(ou, [["styles", [ru]], ["__scopeId", "data-v-96ef3218"]]), iu = { class: "config-view" }, au = {
|
|
6418
|
+
key: 1,
|
|
6419
|
+
class: "space-y-6"
|
|
6420
|
+
}, su = { class: "settings-grid" }, lu = { class: "config-row" }, cu = { class: "config-value" }, du = { class: "config-row" }, fu = { class: "config-value capitalize" }, uu = { class: "config-row" }, pu = { class: "config-value" }, hu = { class: "config-row" }, gu = { class: "settings-grid" }, vu = { class: "config-row" }, wu = { class: "config-row" }, mu = { class: "config-value font-mono text-sm" }, bu = { class: "config-row" }, yu = { class: "config-value font-mono text-sm text-blue-600" }, _u = { class: "config-row" }, xu = { class: "config-value font-mono text-sm" }, ku = /* @__PURE__ */ _e({
|
|
6421
|
+
__name: "ConfigView",
|
|
6422
|
+
setup(e) {
|
|
6423
|
+
const { isLoading: t, configs: o } = Pr();
|
|
6424
|
+
return (r, n) => (y(), D("div", iu, [
|
|
6425
|
+
ue(t) ? (y(), me(Un, { key: 0 })) : (y(), D("div", au, [
|
|
6426
|
+
Y(Zr, { title: "General Configuration" }, {
|
|
6427
|
+
icon: ke(() => [
|
|
6428
|
+
Y(Os)
|
|
6429
|
+
]),
|
|
6430
|
+
default: ke(() => [
|
|
6431
|
+
g("div", su, [
|
|
6432
|
+
g("div", lu, [
|
|
6433
|
+
n[0] || (n[0] = g("span", { class: "config-label" }, "Default Locale", -1)),
|
|
6434
|
+
g("span", cu, G(ue(o).defaultLocale || "—"), 1)
|
|
6435
|
+
]),
|
|
6436
|
+
g("div", du, [
|
|
6437
|
+
n[1] || (n[1] = g("span", { class: "config-label" }, "Routing Strategy", -1)),
|
|
6438
|
+
g("span", fu, G(ue(o).strategy || "—"), 1)
|
|
6439
|
+
]),
|
|
6440
|
+
g("div", uu, [
|
|
6441
|
+
n[2] || (n[2] = g("span", { class: "config-label" }, "Fallback Locale", -1)),
|
|
6442
|
+
g("span", pu, G(ue(o).fallbackLocale || "—"), 1)
|
|
6443
|
+
]),
|
|
6444
|
+
g("div", hu, [
|
|
6445
|
+
n[3] || (n[3] = g("span", { class: "config-label" }, "Debug Mode", -1)),
|
|
6446
|
+
Y(bn, {
|
|
6447
|
+
status: ue(o).debug ? "enabled" : "disabled",
|
|
6448
|
+
label: ue(o).debug ? "Active" : "Inactive"
|
|
6449
|
+
}, null, 8, ["status", "label"])
|
|
6450
|
+
])
|
|
6451
|
+
])
|
|
6452
|
+
]),
|
|
6453
|
+
_: 1
|
|
6454
|
+
}),
|
|
6455
|
+
Y(Zr, { title: "Configured Locales" }, {
|
|
6456
|
+
icon: ke(() => [
|
|
6457
|
+
Y(Hn)
|
|
6458
|
+
]),
|
|
6459
|
+
default: ke(() => [
|
|
6460
|
+
Y(nu, {
|
|
6461
|
+
locales: ue(o).locales || []
|
|
6462
|
+
}, null, 8, ["locales"])
|
|
6463
|
+
]),
|
|
6464
|
+
_: 1
|
|
6465
|
+
}),
|
|
6466
|
+
Y(Zr, { title: "Advanced Configuration" }, {
|
|
6467
|
+
icon: ke(() => [
|
|
6468
|
+
Y(Ns)
|
|
6469
|
+
]),
|
|
6470
|
+
default: ke(() => [
|
|
6471
|
+
g("div", gu, [
|
|
6472
|
+
g("div", vu, [
|
|
6473
|
+
n[4] || (n[4] = g("span", { class: "config-label" }, "Auto Language Detection", -1)),
|
|
6474
|
+
Y(bn, {
|
|
6475
|
+
status: ue(o).autoDetectLanguage ? "enabled" : "disabled",
|
|
6476
|
+
label: ue(o).autoDetectLanguage ? "Enabled" : "Disabled"
|
|
6477
|
+
}, null, 8, ["status", "label"])
|
|
6478
|
+
]),
|
|
6479
|
+
g("div", wu, [
|
|
6480
|
+
n[5] || (n[5] = g("span", { class: "config-label" }, "Translation Directory", -1)),
|
|
6481
|
+
g("span", mu, G(ue(o).translationDir || "—"), 1)
|
|
6482
|
+
]),
|
|
6483
|
+
g("div", bu, [
|
|
6484
|
+
n[6] || (n[6] = g("span", { class: "config-label" }, "API Base URL", -1)),
|
|
6485
|
+
g("span", yu, G(ue(o).apiBaseUrl || "—"), 1)
|
|
6486
|
+
]),
|
|
6487
|
+
g("div", _u, [
|
|
6488
|
+
n[7] || (n[7] = g("span", { class: "config-label" }, "Locale Cookie", -1)),
|
|
6489
|
+
g("span", xu, G(ue(o).localeCookie || "—"), 1)
|
|
6490
|
+
])
|
|
6491
|
+
])
|
|
6492
|
+
]),
|
|
6493
|
+
_: 1
|
|
6494
|
+
})
|
|
6495
|
+
]))
|
|
6496
|
+
]));
|
|
6497
|
+
}
|
|
6498
|
+
}), Eu = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-ce2afc6d],[data-v-ce2afc6d]:before,[data-v-ce2afc6d]:after,[data-v-ce2afc6d]::backdrop{--tw-font-weight:initial}}}.config-view[data-v-ce2afc6d]{height:100%;padding:calc(var(--spacing,.25rem)*4);overflow:auto}.settings-grid[data-v-ce2afc6d]{gap:calc(var(--spacing,.25rem)*3);display:grid}.config-row[data-v-ce2afc6d]{border-radius:var(--radius-lg,.5rem);background-color:var(--color-gray-50,oklch(98.5% .002 247.839));padding-inline:calc(var(--spacing,.25rem)*3);padding-block:calc(var(--spacing,.25rem)*2);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));justify-content:space-between;align-items:center;display:flex}@media(hover:hover){.config-row[data-v-ce2afc6d]:hover{background-color:var(--color-gray-100,oklch(96.7% .003 264.542))}}.config-label[data-v-ce2afc6d]{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);color:var(--color-gray-600,oklch(44.6% .03 256.802))}.config-value[data-v-ce2afc6d]{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));color:var(--color-gray-800,oklch(27.8% .033 256.848))}@property --tw-font-weight{syntax:"*";inherits:false}', Nu = /* @__PURE__ */ be(ku, [["styles", [Eu]], ["__scopeId", "data-v-ce2afc6d"]]), Ou = ["innerHTML"], Su = { key: 1 }, $u = { class: "chevron" }, Cu = {
|
|
6499
|
+
class: "icon",
|
|
6500
|
+
viewBox: "0 0 24 24"
|
|
6501
|
+
}, Tu = {
|
|
6502
|
+
key: 0,
|
|
6503
|
+
d: "M19 9l-7 7-7-7",
|
|
6504
|
+
fill: "none",
|
|
6505
|
+
stroke: "currentColor",
|
|
6506
|
+
"stroke-width": "2"
|
|
6507
|
+
}, Du = {
|
|
6508
|
+
key: 1,
|
|
6509
|
+
d: "M9 5l7 7-7 7",
|
|
6510
|
+
fill: "none",
|
|
6511
|
+
stroke: "currentColor",
|
|
6512
|
+
"stroke-width": "2"
|
|
6513
|
+
}, Vu = { class: "folder-name" }, Au = {
|
|
6514
|
+
key: 0,
|
|
6515
|
+
class: "folder-children"
|
|
6516
|
+
}, Mu = /* @__PURE__ */ _e({
|
|
6517
|
+
__name: "TreeItem",
|
|
6518
|
+
props: {
|
|
6519
|
+
node: { type: Object },
|
|
6520
|
+
depth: { type: Number },
|
|
6521
|
+
locale: { type: String },
|
|
6522
|
+
selectedFile: { type: String },
|
|
6523
|
+
defaultExpanded: { type: Boolean },
|
|
6524
|
+
selected: { type: Boolean }
|
|
6525
|
+
},
|
|
6526
|
+
emits: ["fileSelected"],
|
|
6527
|
+
setup(e, { emit: t }) {
|
|
6528
|
+
const o = e, r = t, n = ne(o.defaultExpanded || !1), i = oe(() => o.selectedFile === o.node.fullPath), a = oe(() => ({
|
|
6529
|
+
paddingLeft: `${o.depth * 20 + 8}px`
|
|
6530
|
+
}));
|
|
6531
|
+
function s() {
|
|
6532
|
+
n.value = !n.value;
|
|
6533
|
+
}
|
|
6534
|
+
function l() {
|
|
6535
|
+
r("fileSelected", o.node.fullPath, o.locale);
|
|
6536
|
+
}
|
|
6537
|
+
Te(
|
|
6538
|
+
() => o.defaultExpanded,
|
|
6539
|
+
(c) => {
|
|
6540
|
+
n.value = c === !0;
|
|
6541
|
+
},
|
|
6542
|
+
{ immediate: !0 }
|
|
6543
|
+
);
|
|
6544
|
+
function f(c, d) {
|
|
6545
|
+
r("fileSelected", c, d);
|
|
6546
|
+
}
|
|
6547
|
+
return (c, d) => {
|
|
6548
|
+
const p = ic("TreeItem", !0);
|
|
6549
|
+
return y(), D("div", null, [
|
|
6550
|
+
e.node.isFile ? (y(), D("div", {
|
|
6551
|
+
key: 0,
|
|
6552
|
+
class: ye(["file-item", { selected: i.value }]),
|
|
6553
|
+
style: Et(a.value),
|
|
6554
|
+
onClick: l
|
|
6555
|
+
}, [
|
|
6556
|
+
d[0] || (d[0] = Gc('<span class="file-icon" data-v-42ac6ca2><svg class="icon" viewBox="0 0 24 24" data-v-42ac6ca2><g transform="translate(4 4) scale(0.8)" data-v-42ac6ca2><circle cx="12" cy="12" r="10" fill="none" stroke="currentColor" stroke-width="1.5" data-v-42ac6ca2></circle><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" fill="none" stroke="currentColor" stroke-width="1" data-v-42ac6ca2></path><path d="M2 12h20M5 5.2l14 14M5 18.8l14-14" fill="none" stroke="currentColor" stroke-width="1" data-v-42ac6ca2></path></g></svg></span>', 1)),
|
|
6557
|
+
g("span", {
|
|
6558
|
+
class: "file-name",
|
|
6559
|
+
innerHTML: e.node.name
|
|
6560
|
+
}, null, 8, Ou)
|
|
6561
|
+
], 6)) : (y(), D("div", Su, [
|
|
6562
|
+
g("div", {
|
|
6563
|
+
class: ye(["folder-header", { expanded: n.value, selected: e.selected }]),
|
|
6564
|
+
style: Et(a.value),
|
|
6565
|
+
onClick: s
|
|
6566
|
+
}, [
|
|
6567
|
+
g("span", $u, [
|
|
6568
|
+
(y(), D("svg", Cu, [
|
|
6569
|
+
n.value ? (y(), D("path", Tu)) : (y(), D("path", Du))
|
|
6570
|
+
]))
|
|
6571
|
+
]),
|
|
6572
|
+
d[1] || (d[1] = g("span", { class: "folder-icon" }, [
|
|
6573
|
+
g("svg", {
|
|
6574
|
+
class: "icon",
|
|
6575
|
+
viewBox: "0 0 24 24"
|
|
6576
|
+
}, [
|
|
6577
|
+
g("path", {
|
|
6578
|
+
d: "M20 6a2 2 0 0 0-2-2h-8L10 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2z",
|
|
6579
|
+
fill: "none",
|
|
6580
|
+
stroke: "currentColor",
|
|
6581
|
+
"stroke-width": "2"
|
|
6582
|
+
})
|
|
6583
|
+
])
|
|
6584
|
+
], -1)),
|
|
6585
|
+
g("span", Vu, G(e.node.name), 1)
|
|
6586
|
+
], 6),
|
|
6587
|
+
n.value ? (y(), D("div", Au, [
|
|
6588
|
+
(y(!0), D(re, null, Fe(e.node.children, (w) => (y(), me(p, {
|
|
6589
|
+
key: w.fullPath,
|
|
6590
|
+
node: w,
|
|
6591
|
+
locale: e.locale,
|
|
6592
|
+
depth: e.depth + 1,
|
|
6593
|
+
"selected-file": e.selectedFile,
|
|
6594
|
+
"default-expanded": !1,
|
|
6595
|
+
onFileSelected: f
|
|
6596
|
+
}, null, 8, ["node", "locale", "depth", "selected-file"]))), 128))
|
|
6597
|
+
])) : ie("", !0)
|
|
6598
|
+
]))
|
|
6599
|
+
]);
|
|
6600
|
+
};
|
|
6601
|
+
}
|
|
6602
|
+
}), Iu = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-42ac6ca2],[data-v-42ac6ca2]:before,[data-v-42ac6ca2]:after,[data-v-42ac6ca2]::backdrop{--tw-border-style:solid;--tw-duration:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-font-weight:initial}}}.file-item[data-v-42ac6ca2]{margin-block:calc(var(--spacing,.25rem)*1);cursor:pointer;border-radius:var(--radius-md,.375rem);border-style:var(--tw-border-style);background-color:var(--color-white,#fff);padding-inline:calc(var(--spacing,.25rem)*2);padding-block:calc(var(--spacing,.25rem)*1);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));color:var(--color-slate-700,oklch(37.2% .044 257.287));transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.2s;border-width:1px;border-color:#0000;align-items:center;transition-duration:.2s;display:flex}.file-item[data-v-42ac6ca2]:hover{--tw-translate-x:calc(var(--spacing,.25rem)*1);translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);background-color:var(--color-slate-50,oklch(98.4% .003 247.858))}.file-item.selected[data-v-42ac6ca2]{border-color:var(--color-blue-200,oklch(88.2% .059 254.128));background-color:var(--color-blue-50,oklch(97% .014 254.604));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);color:var(--color-blue-700,oklch(48.8% .243 264.376))}.folder-header[data-v-42ac6ca2]{margin-block:calc(var(--spacing,.25rem)*1);cursor:pointer;border-radius:var(--radius-md,.375rem);border-style:var(--tw-border-style);background-color:var(--color-white,#fff);padding-inline:calc(var(--spacing,.25rem)*2);padding-block:calc(var(--spacing,.25rem)*1);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));color:var(--color-slate-700,oklch(37.2% .044 257.287));transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.2s;border-width:1px;border-color:#0000;align-items:center;transition-duration:.2s;display:flex}.folder-header[data-v-42ac6ca2]:hover{--tw-translate-x:calc(var(--spacing,.25rem)*1);translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);background-color:var(--color-slate-50,oklch(98.4% .003 247.858))}.folder-header.expanded[data-v-42ac6ca2]{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);color:var(--color-blue-700,oklch(48.8% .243 264.376))}.folder-header.selected[data-v-42ac6ca2]{border-color:var(--color-blue-200,oklch(88.2% .059 254.128));background-color:var(--color-blue-50,oklch(97% .014 254.604));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);color:var(--color-blue-700,oklch(48.8% .243 264.376))}.icon[data-v-42ac6ca2]{margin-right:calc(var(--spacing,.25rem)*2);height:calc(var(--spacing,.25rem)*4);width:calc(var(--spacing,.25rem)*4);flex-shrink:0}.chevron .icon[data-v-42ac6ca2]{margin-right:calc(var(--spacing,.25rem)*2);height:calc(var(--spacing,.25rem)*3);width:calc(var(--spacing,.25rem)*3)}.folder-children[data-v-42ac6ca2]{margin-left:calc(var(--spacing,.25rem)*3);border-left-style:var(--tw-border-style);border-left-width:2px;border-color:var(--color-slate-200,oklch(92.9% .013 255.508));padding-left:calc(var(--spacing,.25rem)*3)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}', Pu = /* @__PURE__ */ be(Mu, [["styles", [Iu]], ["__scopeId", "data-v-42ac6ca2"]]), ju = { class: "flex flex-col h-full w-full bg-slate-50 rounded-lg overflow-hidden" }, Lu = { class: "flex-1 min-h-0 overflow-y-auto overscroll-contain p-2" }, Fu = /* @__PURE__ */ _e({
|
|
6603
|
+
__name: "LocalesList",
|
|
6604
|
+
props: {
|
|
6605
|
+
locales: { type: Object },
|
|
6606
|
+
selectedFile: { type: String }
|
|
6607
|
+
},
|
|
6608
|
+
emits: ["fileSelected"],
|
|
6609
|
+
setup(e, { emit: t }) {
|
|
6610
|
+
const o = e, r = t, n = oe(() => {
|
|
6611
|
+
const l = Object.keys(o.locales), f = i(l), c = {
|
|
6612
|
+
name: a(f) || "/",
|
|
6613
|
+
fullPath: f || "/",
|
|
6614
|
+
children: []
|
|
6615
|
+
};
|
|
6616
|
+
l.forEach((p) => {
|
|
6617
|
+
const w = p.startsWith(f) ? p.slice(f.length).split("/").filter(Boolean) : p.split("/").filter(Boolean);
|
|
6618
|
+
let N = c;
|
|
6619
|
+
for (let b = 0; b < w.length; b++) {
|
|
6620
|
+
const F = w[b];
|
|
6621
|
+
if (!F) continue;
|
|
6622
|
+
const R = b === w.length - 1;
|
|
6623
|
+
let z = N.children.find((U) => U.name === F);
|
|
6624
|
+
z || (z = {
|
|
6625
|
+
name: F,
|
|
6626
|
+
fullPath: `${N.fullPath}/${F}`.replace(/\/+/g, "/"),
|
|
6627
|
+
isFile: R,
|
|
6628
|
+
children: []
|
|
6629
|
+
}, N.children.push(z)), z && (N = z);
|
|
6630
|
+
}
|
|
6631
|
+
});
|
|
6632
|
+
const d = (p) => {
|
|
6633
|
+
p.sort((w, N) => w.isFile === N.isFile ? w.name.localeCompare(N.name) : w.isFile ? 1 : -1);
|
|
6634
|
+
for (const w of p)
|
|
6635
|
+
d(w.children);
|
|
6636
|
+
};
|
|
6637
|
+
return d(c.children), c.children;
|
|
6638
|
+
});
|
|
6639
|
+
function i(l) {
|
|
6640
|
+
if (l.length === 0) return "";
|
|
6641
|
+
const f = l.map((p) => p.split("/")), c = [], d = Math.min(...f.map((p) => p.length));
|
|
6642
|
+
for (let p = 0; p < d; p++) {
|
|
6643
|
+
const w = f[0]?.[p];
|
|
6644
|
+
if (w && f.every((N) => N[p] === w))
|
|
6645
|
+
c.push(w);
|
|
6646
|
+
else
|
|
6647
|
+
break;
|
|
6648
|
+
}
|
|
6649
|
+
return c.join("/");
|
|
6650
|
+
}
|
|
6651
|
+
function a(l) {
|
|
6652
|
+
const f = l.split("/").filter((c) => c);
|
|
6653
|
+
return f[f.length - 1] || "";
|
|
6654
|
+
}
|
|
6655
|
+
function s(l) {
|
|
6656
|
+
r("fileSelected", l);
|
|
6657
|
+
}
|
|
6658
|
+
return (l, f) => (y(), D("div", ju, [
|
|
6659
|
+
g("div", Lu, [
|
|
6660
|
+
(y(!0), D(re, null, Fe(n.value, (c) => (y(), me(Pu, {
|
|
6661
|
+
key: c.fullPath,
|
|
6662
|
+
locale: c.name,
|
|
6663
|
+
node: c,
|
|
6664
|
+
depth: 0,
|
|
6665
|
+
"selected-file": e.selectedFile,
|
|
6666
|
+
"default-expanded": !1,
|
|
6667
|
+
onFileSelected: s
|
|
6668
|
+
}, null, 8, ["locale", "node", "selected-file"]))), 128))
|
|
6669
|
+
])
|
|
6670
|
+
]));
|
|
6671
|
+
}
|
|
6672
|
+
}), Ru = "", zu = /* @__PURE__ */ be(Fu, [["styles", [Ru]], ["__scopeId", "data-v-44e760cb"]]);
|
|
6673
|
+
function Xe(e, t = "", o = {}) {
|
|
6674
|
+
for (const r in e)
|
|
6675
|
+
if (Object.prototype.hasOwnProperty.call(e, r)) {
|
|
6676
|
+
const n = t ? `${t}.${r}` : r, i = e[r];
|
|
6677
|
+
typeof i == "object" && i !== null ? Array.isArray(i) ? i.forEach((a, s) => {
|
|
6678
|
+
Xe(a, `${n}.[]${s}`, o);
|
|
6679
|
+
}) : Xe(i, n, o) : o[n] = i?.toString() ?? "";
|
|
6680
|
+
}
|
|
6681
|
+
return o;
|
|
6682
|
+
}
|
|
6683
|
+
const $s = (e) => {
|
|
6684
|
+
const t = {};
|
|
6685
|
+
for (const o in e)
|
|
6686
|
+
if (Object.prototype.hasOwnProperty.call(e, o)) {
|
|
6687
|
+
const r = o.split(".");
|
|
6688
|
+
let n = t, i = null, a = null;
|
|
6689
|
+
for (let s = 0; s < r.length; s++) {
|
|
6211
6690
|
const l = r[s];
|
|
6212
6691
|
if (!l) continue;
|
|
6213
6692
|
const f = l.startsWith("[]"), c = f ? Number(l.slice(2)) : Number.NaN;
|
|
@@ -6233,44 +6712,261 @@ const Os = (e) => {
|
|
|
6233
6712
|
}
|
|
6234
6713
|
}
|
|
6235
6714
|
return t;
|
|
6236
|
-
}
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
return
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6715
|
+
}, Hu = { class: "diff-viewer" }, Uu = { class: "filters" }, Bu = ["value"], Ku = { class: "diff-list" }, Wu = { class: "key-row" }, qu = { class: "key-label" }, Ju = { class: "value-compare" }, Gu = { class: "value old" }, Yu = { class: "value-content" }, Xu = { class: "value new" }, Zu = { class: "value-content" }, Qu = { class: "value-content" }, ep = /* @__PURE__ */ _e({
|
|
6716
|
+
__name: "DiffViewer",
|
|
6717
|
+
props: {
|
|
6718
|
+
current: { type: Object },
|
|
6719
|
+
base: { type: Object }
|
|
6720
|
+
},
|
|
6721
|
+
setup(e) {
|
|
6722
|
+
const t = e, o = ne(["added", "modified", "removed"]), r = [
|
|
6723
|
+
{ type: "added", label: "Added", class: "bg-green-100 text-green-800" },
|
|
6724
|
+
{ type: "modified", label: "Modified", class: "bg-yellow-100 text-yellow-800" },
|
|
6725
|
+
{ type: "removed", label: "Removed", class: "bg-red-100 text-red-800" }
|
|
6726
|
+
], n = {
|
|
6727
|
+
added: "text-green-600",
|
|
6728
|
+
modified: "text-yellow-600",
|
|
6729
|
+
removed: "text-red-600"
|
|
6730
|
+
}, i = oe(() => {
|
|
6731
|
+
const l = Xe(t.current), f = Xe(t.base), c = /* @__PURE__ */ new Set([...Object.keys(l), ...Object.keys(f)]);
|
|
6732
|
+
return Array.from(c).map((d) => {
|
|
6733
|
+
const p = l[d], w = f[d];
|
|
6734
|
+
return !p && w ? { key: d, type: "removed", baseValue: w } : p && !w ? { key: d, type: "added", currentValue: p } : p !== w ? {
|
|
6735
|
+
key: d,
|
|
6736
|
+
type: "modified",
|
|
6737
|
+
baseValue: w,
|
|
6738
|
+
currentValue: p
|
|
6739
|
+
} : null;
|
|
6740
|
+
}).filter(Boolean);
|
|
6741
|
+
}), a = oe(() => ({
|
|
6742
|
+
added: i.value.filter((l) => l.type === "added").length,
|
|
6743
|
+
modified: i.value.filter((l) => l.type === "modified").length,
|
|
6744
|
+
removed: i.value.filter((l) => l.type === "removed").length
|
|
6745
|
+
})), s = oe(() => i.value.filter((l) => o.value.includes(l.type)));
|
|
6746
|
+
return (l, f) => (y(), D("div", Hu, [
|
|
6747
|
+
g("div", Uu, [
|
|
6748
|
+
(y(), D(re, null, Fe(r, (c) => g("label", {
|
|
6749
|
+
key: c.type,
|
|
6750
|
+
class: "filter-item"
|
|
6751
|
+
}, [
|
|
6752
|
+
ut(g("input", {
|
|
6753
|
+
"onUpdate:modelValue": f[0] || (f[0] = (d) => o.value = d),
|
|
6754
|
+
type: "checkbox",
|
|
6755
|
+
value: c.type,
|
|
6756
|
+
class: "sr-only"
|
|
6757
|
+
}, null, 8, Bu), [
|
|
6758
|
+
[Ld, o.value]
|
|
6759
|
+
]),
|
|
6760
|
+
g("span", {
|
|
6761
|
+
class: ye(["filter-badge", c.class])
|
|
6762
|
+
}, G(c.label) + " (" + G(a.value[c.type]) + ") ", 3)
|
|
6763
|
+
])), 64))
|
|
6764
|
+
]),
|
|
6765
|
+
g("div", Ku, [
|
|
6766
|
+
(y(!0), D(re, null, Fe(s.value, (c, d) => (y(), D("div", {
|
|
6767
|
+
key: d,
|
|
6768
|
+
class: "diff-item"
|
|
6769
|
+
}, [
|
|
6770
|
+
g("div", Wu, [
|
|
6771
|
+
g("span", qu, G(c.key), 1),
|
|
6772
|
+
c.type ? (y(), D("span", {
|
|
6773
|
+
key: 0,
|
|
6774
|
+
class: ye(["change-type", n[c.type]])
|
|
6775
|
+
}, G(c.type.toUpperCase()), 3)) : ie("", !0)
|
|
6776
|
+
]),
|
|
6777
|
+
g("div", Ju, [
|
|
6778
|
+
c.type === "modified" ? (y(), D(re, { key: 0 }, [
|
|
6779
|
+
g("div", Gu, [
|
|
6780
|
+
f[1] || (f[1] = g("span", { class: "value-label" }, "Default:", -1)),
|
|
6781
|
+
g("span", Yu, G(c.baseValue), 1)
|
|
6782
|
+
]),
|
|
6783
|
+
g("div", Xu, [
|
|
6784
|
+
f[2] || (f[2] = g("span", { class: "value-label" }, "Current:", -1)),
|
|
6785
|
+
g("span", Zu, G(c.currentValue), 1)
|
|
6786
|
+
])
|
|
6787
|
+
], 64)) : (y(), D("div", {
|
|
6788
|
+
key: 1,
|
|
6789
|
+
class: ye(["value", c.type])
|
|
6790
|
+
}, [
|
|
6791
|
+
g("span", Qu, G(c.currentValue || c.baseValue), 1)
|
|
6792
|
+
], 2))
|
|
6793
|
+
])
|
|
6794
|
+
]))), 128))
|
|
6795
|
+
])
|
|
6796
|
+
]));
|
|
6797
|
+
}
|
|
6798
|
+
}), tp = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-78082a66],[data-v-78082a66]:before,[data-v-78082a66]:after,[data-v-78082a66]::backdrop{--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-space-y-reverse:0;--tw-border-style:solid}}}.diff-viewer[data-v-78082a66]{gap:calc(var(--spacing,.25rem)*4);flex-direction:column;display:flex}.filters[data-v-78082a66]{gap:calc(var(--spacing,.25rem)*2);display:flex}.filter-item[data-v-78082a66]{cursor:pointer}.filter-badge[data-v-78082a66]{align-items:center;gap:calc(var(--spacing,.25rem)*2);padding-inline:calc(var(--spacing,.25rem)*3);padding-block:calc(var(--spacing,.25rem)*1);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));border-radius:3.40282e38px;display:inline-flex}.filter-item input:checked+.filter-badge[data-v-78082a66]{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-ring-color:#3080ff80}@supports (color:color-mix(in lab,red,red)){.filter-item input:checked+.filter-badge[data-v-78082a66]{--tw-ring-color:color-mix(in oklab,var(--color-blue-500,oklch(62.3% .214 259.815))50%,transparent)}}.filter-item input:checked+.filter-badge[data-v-78082a66]{--tw-ring-inset:inset}:where(.diff-list[data-v-78082a66]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing,.25rem)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing,.25rem)*4)*calc(1 - var(--tw-space-y-reverse)))}.diff-item[data-v-78082a66]{border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-100,oklch(96.7% .003 264.542));background-color:var(--color-white,#fff);padding:calc(var(--spacing,.25rem)*4);--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.key-row[data-v-78082a66]{margin-bottom:calc(var(--spacing,.25rem)*2);justify-content:space-between;align-items:center;display:flex}.key-label[data-v-78082a66]{text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));color:var(--color-gray-700,oklch(37.3% .034 259.733));overflow:hidden}.change-type[data-v-78082a66]{padding-inline:calc(var(--spacing,.25rem)*2);padding-block:calc(var(--spacing,.25rem)*1);font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1/.75)));--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600);border-radius:3.40282e38px}:where(.value-compare[data-v-78082a66]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing,.25rem)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing,.25rem)*2)*calc(1 - var(--tw-space-y-reverse)))}.value[data-v-78082a66]{border-radius:var(--radius-md,.375rem);border-style:var(--tw-border-style);padding:calc(var(--spacing,.25rem)*2);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));border-width:1px;border-color:#0000}.value-label[data-v-78082a66]{margin-right:calc(var(--spacing,.25rem)*2);font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1/.75)));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);color:var(--color-gray-500,oklch(55.1% .027 264.364))}.value-content[data-v-78082a66]{overflow-wrap:break-word}.old[data-v-78082a66]{border-color:var(--color-red-200,oklch(88.5% .062 18.334));background-color:var(--color-red-50,oklch(97.1% .013 17.38));color:var(--color-red-700,oklch(50.5% .213 27.518))}.new[data-v-78082a66]{border-color:var(--color-green-200,oklch(92.5% .084 155.995));background-color:var(--color-green-50,oklch(98.2% .018 155.826));color:var(--color-green-700,oklch(52.7% .154 150.069))}.added .value-content[data-v-78082a66]{color:var(--color-green-600,oklch(62.7% .194 149.214))}.removed .value-content[data-v-78082a66]{color:var(--color-red-600,oklch(57.7% .245 27.325));text-decoration-line:line-through}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}', op = /* @__PURE__ */ be(ep, [["styles", [tp]], ["__scopeId", "data-v-78082a66"]]), rp = { class: "text-sm font-medium text-gray-600 truncate" }, np = {
|
|
6799
|
+
key: 1,
|
|
6800
|
+
class: "flex flex-col"
|
|
6801
|
+
}, ip = { class: "text-sm font-medium text-gray-600" }, rr = /* @__PURE__ */ _e({
|
|
6802
|
+
__name: "StatItem",
|
|
6803
|
+
props: {
|
|
6804
|
+
label: String,
|
|
6805
|
+
value: [String, Number],
|
|
6806
|
+
trend: Number,
|
|
6807
|
+
stacked: {
|
|
6808
|
+
type: Boolean,
|
|
6809
|
+
default: !1
|
|
6810
|
+
}
|
|
6811
|
+
},
|
|
6812
|
+
setup(e) {
|
|
6813
|
+
const t = e, o = oe(() => typeof t.value == "number" ? t.value.toLocaleString() : t.value), r = oe(() => t.trend ? t.trend > 0 ? "text-green-500" : "text-red-500" : "");
|
|
6814
|
+
return (n, i) => (y(), D("div", {
|
|
6815
|
+
class: ye(["p-3 bg-gray-50 rounded-lg transition-all duration-200 hover:bg-gray-100", e.stacked ? "block" : "flex items-center justify-between"])
|
|
6816
|
+
}, [
|
|
6817
|
+
e.stacked ? (y(), D("div", np, [
|
|
6818
|
+
g("span", ip, G(e.label), 1),
|
|
6819
|
+
g("span", {
|
|
6820
|
+
class: ye(["font-semibold mt-1", n.$attrs.class])
|
|
6821
|
+
}, [
|
|
6822
|
+
qe(G(o.value) + " ", 1),
|
|
6823
|
+
e.trend ? (y(), D("span", {
|
|
6824
|
+
key: 0,
|
|
6825
|
+
class: ye(["ml-2 text-xs", r.value])
|
|
6826
|
+
}, G(e.trend) + "% ", 3)) : ie("", !0)
|
|
6827
|
+
], 2)
|
|
6828
|
+
])) : (y(), D(re, { key: 0 }, [
|
|
6829
|
+
g("span", rp, G(e.label), 1),
|
|
6830
|
+
g("span", {
|
|
6831
|
+
class: ye(["font-semibold min-w-[60px] text-right", n.$attrs.class])
|
|
6832
|
+
}, [
|
|
6833
|
+
qe(G(o.value) + " ", 1),
|
|
6834
|
+
e.trend ? (y(), D("span", {
|
|
6835
|
+
key: 0,
|
|
6836
|
+
class: ye(["ml-2 text-xs", r.value])
|
|
6837
|
+
}, G(e.trend) + "% ", 3)) : ie("", !0)
|
|
6838
|
+
], 2)
|
|
6839
|
+
], 64))
|
|
6840
|
+
], 2));
|
|
6841
|
+
}
|
|
6842
|
+
}), ap = { class: "space-y-4 p-4 bg-white rounded-lg shadow-sm" }, sp = { class: "grid grid-cols-2 gap-4" }, lp = {
|
|
6843
|
+
key: 0,
|
|
6844
|
+
class: "grid grid-cols-2 gap-4"
|
|
6845
|
+
}, cp = { class: "pt-4 mt-4 border-t border-gray-200" }, dp = { class: "grid grid-cols-2 gap-4" }, fp = /* @__PURE__ */ _e({
|
|
6846
|
+
__name: "Statistics",
|
|
6847
|
+
props: {
|
|
6848
|
+
content: { type: Object }
|
|
6849
|
+
},
|
|
6850
|
+
setup(e) {
|
|
6851
|
+
const { getDefaultLocaleTranslation: t } = Pr(), o = e, r = (_) => typeof _ == "string" ? _.trim() : "", n = (_) => typeof _ == "string", i = oe(() => Xe(o.content)), a = oe(() => Xe(t())), s = (_) => oe(() => Object.values(i.value).filter((I) => n(I) && _(I)).length), l = oe(() => Object.keys(i.value).length), f = oe(() => Object.values(i.value).filter((_) => n(_) && r(_) !== "").length), c = oe(() => l.value ? (f.value / l.value * 100).toFixed(2) : "0.00"), d = oe(() => {
|
|
6852
|
+
const _ = {};
|
|
6853
|
+
return Object.values(i.value).forEach((I) => {
|
|
6854
|
+
n(I) && (_[I] = (_[I] || 0) + 1);
|
|
6855
|
+
}), Object.values(_).filter((I) => I > 1).length;
|
|
6856
|
+
}), p = (_) => oe(() => {
|
|
6857
|
+
const I = Object.keys(i.value);
|
|
6858
|
+
return I.length < 2 ? null : I.reduce((P, $) => {
|
|
6859
|
+
const se = i.value[P], we = i.value[$], $e = n(se) ? se.length : 0, xe = n(we) ? we.length : 0;
|
|
6860
|
+
return _($e, xe) ? P : $;
|
|
6861
|
+
});
|
|
6862
|
+
}), w = oe(() => Object.keys(a.value).length), N = oe(
|
|
6863
|
+
() => Object.keys(a.value).filter((_) => {
|
|
6864
|
+
const I = i.value[_];
|
|
6865
|
+
return n(I) && r(I) !== "";
|
|
6866
|
+
}).length
|
|
6867
|
+
), b = oe(() => w.value ? (N.value / w.value * 100).toFixed(2) : "0.00"), F = oe(() => [
|
|
6868
|
+
{ label: "Total Keys", value: l.value, class: "text-blue-600" },
|
|
6869
|
+
{ label: "Translated Keys", value: `${f.value} (${c.value}%)`, class: "text-green-600" },
|
|
6870
|
+
{ label: "Missing Translations", value: l.value - f.value, class: "text-red-600" },
|
|
6871
|
+
{ label: "Duplicate Values", value: d.value, class: "text-orange-600" },
|
|
6872
|
+
{ label: "Long Translations (>100 chars)", value: z?.value ?? 0, class: "text-yellow-600" },
|
|
6873
|
+
{ label: "Short Translations (<3 chars)", value: U?.value ?? 0, class: "text-pink-600" },
|
|
6874
|
+
{ label: "Keys with Special Chars", value: fe?.value ?? 0, class: "text-indigo-600" },
|
|
6875
|
+
{ label: "Keys with HTML Tags", value: M?.value ?? 0, class: "text-teal-600" },
|
|
6876
|
+
{ label: "Keys with Placeholders", value: j?.value ?? 0, class: "text-cyan-600" }
|
|
6877
|
+
]), R = oe(() => [
|
|
6878
|
+
{ label: "Total Keys in Default", value: w.value, class: "text-blue-600" },
|
|
6879
|
+
{ label: "Translated vs Default", value: `${N.value} (${b.value}%)`, class: "text-green-600" },
|
|
6880
|
+
{ label: "Missing from Default", value: w.value - N.value, class: "text-red-600" },
|
|
6881
|
+
{ label: "Extra Keys", value: Math.max(l.value - w.value, 0), class: "text-orange-600" }
|
|
6882
|
+
]), [z, U, fe, M, j] = [
|
|
6883
|
+
(_) => _.length > 100,
|
|
6884
|
+
(_) => _.length < 3,
|
|
6885
|
+
(_) => /[@#{}[\]]/.test(_),
|
|
6886
|
+
(_) => /<[^>]+>/.test(_),
|
|
6887
|
+
(_) => /\{[^}]+\}/.test(_)
|
|
6888
|
+
].map((_) => s(_)), q = p((_, I) => _ > I), H = p((_, I) => _ < I);
|
|
6889
|
+
return (_, I) => (y(), D("div", ap, [
|
|
6890
|
+
g("div", sp, [
|
|
6891
|
+
(y(!0), D(re, null, Fe(F.value, (P, $) => (y(), me(rr, {
|
|
6892
|
+
key: $,
|
|
6893
|
+
label: P.label,
|
|
6894
|
+
value: P.value,
|
|
6895
|
+
class: ye(P.class)
|
|
6896
|
+
}, null, 8, ["label", "value", "class"]))), 128))
|
|
6897
|
+
]),
|
|
6898
|
+
ue(q) || ue(H) ? (y(), D("div", lp, [
|
|
6899
|
+
ue(q) ? (y(), me(rr, {
|
|
6900
|
+
key: 0,
|
|
6901
|
+
label: "Longest Key",
|
|
6902
|
+
value: ue(q),
|
|
6903
|
+
stacked: "",
|
|
6904
|
+
class: "text-purple-600 break-all"
|
|
6905
|
+
}, null, 8, ["value"])) : ie("", !0),
|
|
6906
|
+
ue(H) ? (y(), me(rr, {
|
|
6907
|
+
key: 1,
|
|
6908
|
+
label: "Shortest Key",
|
|
6909
|
+
value: ue(H),
|
|
6910
|
+
stacked: "",
|
|
6911
|
+
class: "text-purple-600 break-all"
|
|
6912
|
+
}, null, 8, ["value"])) : ie("", !0)
|
|
6913
|
+
])) : ie("", !0),
|
|
6914
|
+
g("div", cp, [
|
|
6915
|
+
I[0] || (I[0] = g("h3", { class: "text-lg font-semibold text-gray-800 mb-3" }, " Comparison with Default Locale ", -1)),
|
|
6916
|
+
g("div", dp, [
|
|
6917
|
+
(y(!0), D(re, null, Fe(R.value, (P, $) => (y(), me(rr, {
|
|
6918
|
+
key: "compare-" + $,
|
|
6919
|
+
label: P.label,
|
|
6920
|
+
value: P.value,
|
|
6921
|
+
class: ye(P.class)
|
|
6922
|
+
}, null, 8, ["label", "value", "class"]))), 128))
|
|
6923
|
+
])
|
|
6924
|
+
]),
|
|
6925
|
+
Y(op, {
|
|
6926
|
+
ref: "diffModal",
|
|
6927
|
+
current: e.content,
|
|
6928
|
+
base: a.value
|
|
6929
|
+
}, null, 8, ["current", "base"])
|
|
6930
|
+
]));
|
|
6931
|
+
}
|
|
6932
|
+
}), up = ".border-t[data-v-5a1d0272]{border-top-width:1px;border-top-color:#e5e7eb}.pt-4[data-v-5a1d0272]{padding-top:1rem}.mt-4[data-v-5a1d0272]{margin-top:1rem}.text-lg[data-v-5a1d0272]{font-size:1.125rem;line-height:1.75rem}.font-semibold[data-v-5a1d0272]{font-weight:600}.bg-white[data-v-5a1d0272]{background-color:#fff}.rounded-lg[data-v-5a1d0272]{border-radius:.5rem}.shadow[data-v-5a1d0272]{box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a}.grid[data-v-5a1d0272]{display:grid}.gap-4[data-v-5a1d0272]{gap:1rem}", pp = /* @__PURE__ */ be(fp, [["styles", [up]], ["__scopeId", "data-v-5a1d0272"]]);
|
|
6933
|
+
class Cs {
|
|
6934
|
+
// Buffer for storing replaced values
|
|
6935
|
+
constructor({ apiKey: t, driver: o, options: r = {} }) {
|
|
6936
|
+
if (this.clearBuffer = [], this.apiKey = t, this.driver = o, this.options = r, o === "yandex-cloud" && !r.folderId)
|
|
6937
|
+
throw new Error("Yandex Cloud Translator requires folderId in options.");
|
|
6938
|
+
}
|
|
6939
|
+
/**
|
|
6940
|
+
* Translates text from one language to another.
|
|
6941
|
+
*
|
|
6942
|
+
* @param text - Text to translate.
|
|
6943
|
+
* @param fromLang - Source language (e.g., "en").
|
|
6944
|
+
* @param toLang - Target language (e.g., "ru").
|
|
6945
|
+
* @returns Translated text.
|
|
6946
|
+
*/
|
|
6947
|
+
async translate(t, o, r) {
|
|
6948
|
+
if (console.debug("Translating text...", { text: t, fromLang: o, toLang: r }), t === "")
|
|
6949
|
+
return t;
|
|
6950
|
+
const n = this.clearText(t);
|
|
6951
|
+
let i;
|
|
6952
|
+
switch (this.driver) {
|
|
6953
|
+
case "google":
|
|
6954
|
+
i = await this.googleTranslate(n, o, r);
|
|
6955
|
+
break;
|
|
6956
|
+
case "yandex":
|
|
6957
|
+
i = await this.yandexTranslate(n, o, r);
|
|
6958
|
+
break;
|
|
6959
|
+
case "deepl":
|
|
6960
|
+
i = await this.deeplTranslate(n, o, r);
|
|
6961
|
+
break;
|
|
6962
|
+
case "openai":
|
|
6963
|
+
i = await this.openaiTranslate(t, o, r);
|
|
6964
|
+
break;
|
|
6965
|
+
case "deepseek":
|
|
6966
|
+
i = await this.deepseekTranslate(t, o, r);
|
|
6967
|
+
break;
|
|
6968
|
+
case "google-free":
|
|
6969
|
+
i = await this.googleFreeTranslate(n, o, r);
|
|
6274
6970
|
break;
|
|
6275
6971
|
case "yandex-cloud":
|
|
6276
6972
|
i = await this.yandexCloudTranslate(n, o, r);
|
|
@@ -6282,22 +6978,22 @@ class Ss {
|
|
|
6282
6978
|
return console.debug("Text was translated", { finalText: a }), a;
|
|
6283
6979
|
}
|
|
6284
6980
|
/**
|
|
6285
|
-
*
|
|
6286
|
-
*
|
|
6981
|
+
* Cleans text before translation.
|
|
6982
|
+
* Replaces special constructs with temporary markers.
|
|
6287
6983
|
*/
|
|
6288
6984
|
clearText(t) {
|
|
6289
6985
|
const o = /:[a-zA-Z0-9]+|<[^>]*>|\{['"][@$|{}]['"]\}/gu, r = t.match(o) || [];
|
|
6290
6986
|
return this.clearBuffer = r, r.reduce((n, i, a) => n.replace(i, ` _r${a}_`), t);
|
|
6291
6987
|
}
|
|
6292
6988
|
/**
|
|
6293
|
-
*
|
|
6294
|
-
*
|
|
6989
|
+
* Restores text after translation.
|
|
6990
|
+
* Replaces temporary markers with original values.
|
|
6295
6991
|
*/
|
|
6296
6992
|
revertText(t) {
|
|
6297
6993
|
return this.clearBuffer.reduce((r, n, i) => r.replace(`_r${i}_`, n), t).replace(/ {2,}|^ |^\xA0|\xA0{2,}|\xA0$/gmu, "").replace(/ /g, " ");
|
|
6298
6994
|
}
|
|
6299
6995
|
/**
|
|
6300
|
-
*
|
|
6996
|
+
* Google Translator (paid API).
|
|
6301
6997
|
*/
|
|
6302
6998
|
async googleTranslate(t, o, r) {
|
|
6303
6999
|
const n = "https://translation.googleapis.com/language/translate/v2", i = new URLSearchParams({
|
|
@@ -6312,7 +7008,7 @@ class Ss {
|
|
|
6312
7008
|
return s.data.translations[0].translatedText;
|
|
6313
7009
|
}
|
|
6314
7010
|
/**
|
|
6315
|
-
*
|
|
7011
|
+
* Yandex Translator (paid API).
|
|
6316
7012
|
*/
|
|
6317
7013
|
async yandexTranslate(t, o, r) {
|
|
6318
7014
|
const n = "https://translate.api.cloud.yandex.net/translate/v2/translate", i = {
|
|
@@ -6333,7 +7029,7 @@ class Ss {
|
|
|
6333
7029
|
return l.translations[0].text;
|
|
6334
7030
|
}
|
|
6335
7031
|
/**
|
|
6336
|
-
*
|
|
7032
|
+
* DeepL Translator (paid API).
|
|
6337
7033
|
*/
|
|
6338
7034
|
async deeplTranslate(t, o, r) {
|
|
6339
7035
|
const n = "https://api.deepl.com/v2/translate", i = new URLSearchParams({
|
|
@@ -6353,7 +7049,7 @@ class Ss {
|
|
|
6353
7049
|
return s.translations[0].text;
|
|
6354
7050
|
}
|
|
6355
7051
|
/**
|
|
6356
|
-
*
|
|
7052
|
+
* OpenAI Translator (GPT).
|
|
6357
7053
|
*/
|
|
6358
7054
|
async openaiTranslate(t, o, r) {
|
|
6359
7055
|
const n = "https://api.openai.com/v1/chat/completions", i = {
|
|
@@ -6381,7 +7077,7 @@ class Ss {
|
|
|
6381
7077
|
return l.choices[0].message.content;
|
|
6382
7078
|
}
|
|
6383
7079
|
/**
|
|
6384
|
-
*
|
|
7080
|
+
* DeepSeek Translator.
|
|
6385
7081
|
*/
|
|
6386
7082
|
async deepseekTranslate(t, o, r) {
|
|
6387
7083
|
const n = "https://api.deepseek.com/chat/completions", i = {
|
|
@@ -6410,7 +7106,7 @@ class Ss {
|
|
|
6410
7106
|
return l.choices[0].message.content;
|
|
6411
7107
|
}
|
|
6412
7108
|
/**
|
|
6413
|
-
*
|
|
7109
|
+
* Google Free Translator (unofficial API).
|
|
6414
7110
|
*/
|
|
6415
7111
|
async googleFreeTranslate(t, o, r) {
|
|
6416
7112
|
const n = "https://translate.google.com/translate_a/single", i = new URLSearchParams({
|
|
@@ -6429,7 +7125,7 @@ class Ss {
|
|
|
6429
7125
|
return s[0].map((l) => l[0] ? l[0] : "").join("");
|
|
6430
7126
|
}
|
|
6431
7127
|
/**
|
|
6432
|
-
*
|
|
7128
|
+
* Yandex Cloud Translator.
|
|
6433
7129
|
*/
|
|
6434
7130
|
async yandexCloudTranslate(t, o, r) {
|
|
6435
7131
|
const n = "https://translate.api.cloud.yandex.net/translate/v2/translate", i = {
|
|
@@ -6463,7 +7159,7 @@ class Ss {
|
|
|
6463
7159
|
const a = r[i];
|
|
6464
7160
|
a !== void 0 && (n += a, n = this.tokenTransform(n, "+-a^+6"));
|
|
6465
7161
|
}
|
|
6466
|
-
return n = this.tokenTransform(n, "+-3^+b+-f"), n ^= 0, n < 0 && (n = (n & 2147483647) + 2147483648), n %= 1e6, n.toString()
|
|
7162
|
+
return n = this.tokenTransform(n, "+-3^+b+-f"), n ^= 0, n < 0 && (n = (n & 2147483647) + 2147483648), n %= 1e6, `${n.toString()}.${n ^ 0}`;
|
|
6467
7163
|
}
|
|
6468
7164
|
tokenTransform(t, o) {
|
|
6469
7165
|
for (let r = 0; r < o.length - 2; r += 3) {
|
|
@@ -6473,13 +7169,13 @@ class Ss {
|
|
|
6473
7169
|
return t;
|
|
6474
7170
|
}
|
|
6475
7171
|
}
|
|
6476
|
-
const
|
|
7172
|
+
const hp = { class: "pagination" }, gp = ["disabled"], vp = ["onClick"], wp = {
|
|
6477
7173
|
key: 0,
|
|
6478
7174
|
class: "pagination-ellipsis"
|
|
6479
|
-
},
|
|
7175
|
+
}, mp = ["onClick"], bp = {
|
|
6480
7176
|
key: 0,
|
|
6481
7177
|
class: "pagination-ellipsis"
|
|
6482
|
-
},
|
|
7178
|
+
}, yp = ["onClick"], _p = ["disabled"], xp = /* @__PURE__ */ _e({
|
|
6483
7179
|
__name: "Pagination",
|
|
6484
7180
|
props: {
|
|
6485
7181
|
currentPage: { type: Number },
|
|
@@ -6495,647 +7191,152 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
6495
7191
|
}), s = (l) => {
|
|
6496
7192
|
l >= 1 && l <= o.totalPages && r("update:page", l);
|
|
6497
7193
|
};
|
|
6498
|
-
return (l, f) => (y(), D("div",
|
|
7194
|
+
return (l, f) => (y(), D("div", hp, [
|
|
6499
7195
|
g("button", {
|
|
6500
7196
|
disabled: e.currentPage === 1,
|
|
6501
7197
|
class: "pagination-button",
|
|
6502
|
-
onClick: f[0] || (f[0] = (c) => s(e.currentPage - 1))
|
|
6503
|
-
}, " Previous ", 8,
|
|
6504
|
-
e.currentPage > 3 ? (y(), D(re, { key: 0 }, [
|
|
6505
|
-
(y(!0), D(re, null, Fe(n.value, (c) => (y(), D("button", {
|
|
6506
|
-
key: c,
|
|
6507
|
-
class: "pagination-button",
|
|
6508
|
-
onClick: (d) => s(c)
|
|
6509
|
-
}, G(c), 9,
|
|
6510
|
-
e.currentPage > 4 ? (y(), D("span",
|
|
6511
|
-
], 64)) : ie("", !0),
|
|
6512
|
-
(y(!0), D(re, null, Fe(a.value, (c) => (y(), D("button", {
|
|
6513
|
-
key: c,
|
|
6514
|
-
class: ye(["pagination-button", { active: e.currentPage === c }]),
|
|
6515
|
-
onClick: (d) => s(c)
|
|
6516
|
-
}, G(c), 11,
|
|
6517
|
-
e.currentPage < e.totalPages - 2 ? (y(), D(re, { key: 1 }, [
|
|
6518
|
-
e.currentPage < e.totalPages - 3 ? (y(), D("span",
|
|
6519
|
-
(y(!0), D(re, null, Fe(i.value, (c) => (y(), D("button", {
|
|
6520
|
-
key: c,
|
|
6521
|
-
class: "pagination-button",
|
|
6522
|
-
onClick: (d) => s(c)
|
|
6523
|
-
}, G(c), 9,
|
|
6524
|
-
], 64)) : ie("", !0),
|
|
6525
|
-
g("button", {
|
|
6526
|
-
disabled: e.currentPage === e.totalPages || e.totalPages === 0,
|
|
6527
|
-
class: "pagination-button",
|
|
6528
|
-
onClick: f[1] || (f[1] = (c) => s(e.currentPage + 1))
|
|
6529
|
-
}, " Next ", 8,
|
|
6530
|
-
]));
|
|
6531
|
-
}
|
|
6532
|
-
}), _f = ".pagination[data-v-b4b1b64c]{display:flex;justify-content:center;align-items:center;gap:6px;margin-top:16px;flex-wrap:wrap}.pagination-button[data-v-b4b1b64c]{padding:6px 12px;min-width:32px;border:1px solid #ccc;border-radius:4px;background-color:#f8f9fa;cursor:pointer;font-size:13px;color:#333;text-align:center;transition:background-color .2s,border-color .2s}.pagination-button[data-v-b4b1b64c]:hover:not(:disabled){background-color:#e9ecef;border-color:#bbb}.pagination-button[data-v-b4b1b64c]:disabled{background-color:#e9ecef;cursor:not-allowed;color:#999}.pagination-button.active[data-v-b4b1b64c]{background-color:#007bff;border-color:#007bff;color:#fff}.pagination-ellipsis[data-v-b4b1b64c]{padding:6px 12px;font-size:13px;color:#666}", xf = /* @__PURE__ */ be(yf, [["styles", [_f]], ["__scopeId", "data-v-b4b1b64c"]]), kf = { class: "translation-editor" }, Ef = { class: "translation-list-container" }, Nf = { class: "search-box" }, Of = { class: "translation-list" }, Sf = { class: "key-header" }, $f = ["title"], Cf = ["onClick"], Tf = { class: "default-value" }, Df = ["onUpdate:modelValue", "placeholder"], Vf = { class: "pagination-wrapper" }, Zr = 30, Af = /* @__PURE__ */ _e({
|
|
6533
|
-
__name: "TranslationEditor",
|
|
6534
|
-
props: {
|
|
6535
|
-
modelValue: { type: Object }
|
|
6536
|
-
},
|
|
6537
|
-
emits: ["update:modelValue"],
|
|
6538
|
-
setup(e, { emit: t }) {
|
|
6539
|
-
const o = e, r = t, { selectedFile: n, configs: i, getDefaultLocaleTranslation: a } = Pr(), s = ne(Xe(o.modelValue)), l = ne({}), f = ne(""), c = ne(1), d = ne("disabled"), p = ne(""), w = ne({}), E = oe(() => {
|
|
6540
|
-
const j = Object.keys(l.value);
|
|
6541
|
-
if (!f.value.trim()) return F.value;
|
|
6542
|
-
const q = f.value.toLowerCase();
|
|
6543
|
-
return j.filter(
|
|
6544
|
-
(H) => H.toLowerCase().includes(q) || l.value[H]?.toLowerCase().includes(q)
|
|
6545
|
-
);
|
|
6546
|
-
}), b = oe(() => Math.ceil(Object.keys(l.value).length / Zr)), F = oe(() => {
|
|
6547
|
-
const j = (c.value - 1) * Zr, q = j + Zr;
|
|
6548
|
-
return Object.keys(l.value).slice(j, q);
|
|
6549
|
-
}), R = () => {
|
|
6550
|
-
const j = a();
|
|
6551
|
-
l.value = Xe(j);
|
|
6552
|
-
}, z = () => {
|
|
6553
|
-
r("update:modelValue", Os(s.value));
|
|
6554
|
-
}, U = (j) => {
|
|
6555
|
-
j >= 1 && j <= b.value && (c.value = j);
|
|
6556
|
-
}, fe = async (j, q) => {
|
|
6557
|
-
if (q)
|
|
6558
|
-
try {
|
|
6559
|
-
const H = i.value.defaultLocale, _ = new Ss({ apiKey: p.value, driver: d.value, options: w.value }), I = n.value.split("/").pop() ?? "";
|
|
6560
|
-
s.value[j] = await _.translate(q, H, I.replace(".json", "")), z();
|
|
6561
|
-
} catch (H) {
|
|
6562
|
-
console.error("Translation error:", H);
|
|
6563
|
-
}
|
|
6564
|
-
}, M = () => {
|
|
6565
|
-
const j = localStorage.getItem("translationSettings");
|
|
6566
|
-
if (j)
|
|
6567
|
-
try {
|
|
6568
|
-
const q = JSON.parse(j);
|
|
6569
|
-
d.value = q.driver || "disabled", p.value = q.token || "", w.value = q.options || {};
|
|
6570
|
-
} catch {
|
|
6571
|
-
localStorage.removeItem("translationSettings");
|
|
6572
|
-
}
|
|
6573
|
-
};
|
|
6574
|
-
return Pt(() => {
|
|
6575
|
-
R(), M();
|
|
6576
|
-
}), Te(() => o.modelValue, (j) => {
|
|
6577
|
-
s.value = Xe(j), R();
|
|
6578
|
-
}), Te(n, () => {
|
|
6579
|
-
R(), c.value = 1;
|
|
6580
|
-
}), Te(() => i.value.defaultLocale, () => {
|
|
6581
|
-
R();
|
|
6582
|
-
}), (j, q) => (y(), D("div", kf, [
|
|
6583
|
-
g("div", Ef, [
|
|
6584
|
-
g("div", Nf, [
|
|
6585
|
-
ut(g("input", {
|
|
6586
|
-
"onUpdate:modelValue": q[0] || (q[0] = (H) => f.value = H),
|
|
6587
|
-
placeholder: "Search keys or values...",
|
|
6588
|
-
class: "search-input"
|
|
6589
|
-
}, null, 512), [
|
|
6590
|
-
[Nr, f.value]
|
|
6591
|
-
])
|
|
6592
|
-
]),
|
|
6593
|
-
g("div", Of, [
|
|
6594
|
-
(y(!0), D(re, null, Fe(E.value, (H) => (y(), D("div", {
|
|
6595
|
-
key: H,
|
|
6596
|
-
class: ye(["translation-item", { missing: !s.value[H]?.trim() }])
|
|
6597
|
-
}, [
|
|
6598
|
-
g("div", Sf, [
|
|
6599
|
-
g("span", {
|
|
6600
|
-
class: "key-label",
|
|
6601
|
-
title: H
|
|
6602
|
-
}, G(H), 9, $f),
|
|
6603
|
-
d.value !== "disabled" ? (y(), D("button", {
|
|
6604
|
-
key: 0,
|
|
6605
|
-
class: "translate-btn",
|
|
6606
|
-
onClick: (_) => fe(H, l.value[H] || "")
|
|
6607
|
-
}, [...q[1] || (q[1] = [
|
|
6608
|
-
g("svg", {
|
|
6609
|
-
class: "translate-icon",
|
|
6610
|
-
viewBox: "0 0 24 24"
|
|
6611
|
-
}, [
|
|
6612
|
-
g("path", { d: "M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" })
|
|
6613
|
-
], -1)
|
|
6614
|
-
])], 8, Cf)) : ie("", !0)
|
|
6615
|
-
]),
|
|
6616
|
-
g("div", Tf, G(l.value[H] || "No default value"), 1),
|
|
6617
|
-
ut(g("textarea", {
|
|
6618
|
-
"onUpdate:modelValue": (_) => s.value[H] = _,
|
|
6619
|
-
class: "translation-input",
|
|
6620
|
-
placeholder: l.value[H],
|
|
6621
|
-
rows: "1",
|
|
6622
|
-
onInput: z
|
|
6623
|
-
}, null, 40, Df), [
|
|
6624
|
-
[Nr, s.value[H]]
|
|
6625
|
-
])
|
|
6626
|
-
], 2))), 128))
|
|
6627
|
-
])
|
|
6628
|
-
]),
|
|
6629
|
-
g("div", Vf, [
|
|
6630
|
-
f.value ? ie("", !0) : (y(), me(xf, {
|
|
6631
|
-
key: 0,
|
|
6632
|
-
"current-page": c.value,
|
|
6633
|
-
"total-pages": b.value,
|
|
6634
|
-
"onUpdate:page": U
|
|
6635
|
-
}, null, 8, ["current-page", "total-pages"]))
|
|
6636
|
-
])
|
|
6637
|
-
]));
|
|
6638
|
-
}
|
|
6639
|
-
}), Mf = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-22e198ae],[data-v-22e198ae]:before,[data-v-22e198ae]:after,[data-v-22e198ae]::backdrop{--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-space-y-reverse:0;--tw-font-weight:initial}}}.translation-editor[data-v-22e198ae]{background-color:var(--color-gray-50,oklch(98.5% .002 247.839));flex-direction:column;width:100%;height:100%;display:flex;overflow:hidden}.translation-list-container[data-v-22e198ae]{min-height:calc(var(--spacing,.25rem)*0);flex-direction:column;flex:1;display:flex;overflow:hidden}.search-box[data-v-22e198ae]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-gray-200,oklch(92.8% .006 264.531));background-color:var(--color-white,#fff);padding:calc(var(--spacing,.25rem)*2);flex-shrink:0}.search-input[data-v-22e198ae]{border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-300,oklch(87.2% .01 258.338));width:100%;padding:calc(var(--spacing,.25rem)*2);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)))}.search-input[data-v-22e198ae]:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-ring-color:var(--color-blue-500,oklch(62.3% .214 259.815));--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.search-input[data-v-22e198ae]:focus{outline-offset:2px;outline:2px solid #0000}}.translation-list[data-v-22e198ae]{flex:1}:where(.translation-list[data-v-22e198ae]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing,.25rem)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing,.25rem)*3)*calc(1 - var(--tw-space-y-reverse)))}.translation-list[data-v-22e198ae]{padding:calc(var(--spacing,.25rem)*2);overscroll-behavior:contain;overflow:hidden auto}.translation-item[data-v-22e198ae]{border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-200,oklch(92.8% .006 264.531));background-color:var(--color-white,#fff);padding:calc(var(--spacing,.25rem)*3);--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.translation-item.missing[data-v-22e198ae]{border-left-style:var(--tw-border-style);border-left-width:4px;border-left-color:var(--color-yellow-500,oklch(79.5% .184 86.047));background-color:#fefce84d}@supports (color:color-mix(in lab,red,red)){.translation-item.missing[data-v-22e198ae]{background-color:color-mix(in oklab,var(--color-yellow-50,oklch(98.7% .026 102.212))30%,transparent)}}.key-header[data-v-22e198ae]{margin-bottom:calc(var(--spacing,.25rem)*1);justify-content:space-between;align-items:center;display:flex}.key-label[data-v-22e198ae]{text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1/.75)));--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600);color:var(--color-slate-700,oklch(37.2% .044 257.287));-webkit-user-select:all;user-select:all;overflow:hidden}.default-value[data-v-22e198ae]{margin-bottom:calc(var(--spacing,.25rem)*2);text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1/.75)));color:var(--color-gray-500,oklch(55.1% .027 264.364));opacity:.8;overflow:hidden}.translation-input[data-v-22e198ae]{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-300,oklch(87.2% .01 258.338));width:100%;min-height:38px;padding:calc(var(--spacing,.25rem)*2);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));border-radius:.25rem}.translation-input[data-v-22e198ae]:focus{border-color:var(--color-blue-500,oklch(62.3% .214 259.815));--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-ring-color:var(--color-blue-500,oklch(62.3% .214 259.815));--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.translation-input[data-v-22e198ae]:focus{outline-offset:2px;outline:2px solid #0000}}.translate-btn[data-v-22e198ae]{padding:calc(var(--spacing,.25rem)*1);color:var(--color-gray-400,oklch(70.7% .022 261.325));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));border-radius:.25rem}@media(hover:hover){.translate-btn[data-v-22e198ae]:hover{background-color:var(--color-gray-100,oklch(96.7% .003 264.542));color:var(--color-blue-600,oklch(54.6% .245 262.881))}}.translate-icon[data-v-22e198ae]{height:calc(var(--spacing,.25rem)*4);width:calc(var(--spacing,.25rem)*4);fill:currentColor}.pagination-wrapper[data-v-22e198ae]{border-top-style:var(--tw-border-style);border-top-width:1px;border-color:var(--color-gray-200,oklch(92.8% .006 264.531));background-color:var(--color-white,#fff);padding:calc(var(--spacing,.25rem)*2);flex-shrink:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-font-weight{syntax:"*";inherits:false}', If = /* @__PURE__ */ be(Af, [["styles", [Mf]], ["__scopeId", "data-v-22e198ae"]]), Pf = ["innerHTML"], jf = { key: 1 }, Lf = { class: "chevron" }, Ff = {
|
|
6640
|
-
class: "icon",
|
|
6641
|
-
viewBox: "0 0 24 24"
|
|
6642
|
-
}, Rf = {
|
|
6643
|
-
key: 0,
|
|
6644
|
-
d: "M19 9l-7 7-7-7",
|
|
6645
|
-
fill: "none",
|
|
6646
|
-
stroke: "currentColor",
|
|
6647
|
-
"stroke-width": "2"
|
|
6648
|
-
}, zf = {
|
|
6649
|
-
key: 1,
|
|
6650
|
-
d: "M9 5l7 7-7 7",
|
|
6651
|
-
fill: "none",
|
|
6652
|
-
stroke: "currentColor",
|
|
6653
|
-
"stroke-width": "2"
|
|
6654
|
-
}, Hf = { class: "folder-name" }, Uf = {
|
|
6655
|
-
key: 0,
|
|
6656
|
-
class: "folder-children"
|
|
6657
|
-
}, Bf = /* @__PURE__ */ _e({
|
|
6658
|
-
__name: "TreeItem",
|
|
6659
|
-
props: {
|
|
6660
|
-
node: { type: Object },
|
|
6661
|
-
depth: { type: Number },
|
|
6662
|
-
locale: { type: String },
|
|
6663
|
-
selectedFile: { type: String },
|
|
6664
|
-
defaultExpanded: { type: Boolean },
|
|
6665
|
-
selected: { type: Boolean }
|
|
6666
|
-
},
|
|
6667
|
-
emits: ["fileSelected"],
|
|
6668
|
-
setup(e, { emit: t }) {
|
|
6669
|
-
const o = e, r = t, n = ne(o.defaultExpanded || !1), i = oe(() => o.selectedFile === o.node.fullPath), a = oe(() => ({
|
|
6670
|
-
paddingLeft: `${o.depth * 20 + 8}px`
|
|
6671
|
-
}));
|
|
6672
|
-
function s() {
|
|
6673
|
-
n.value = !n.value;
|
|
6674
|
-
}
|
|
6675
|
-
function l() {
|
|
6676
|
-
r("fileSelected", o.node.fullPath, o.locale);
|
|
6677
|
-
}
|
|
6678
|
-
Te(() => o.defaultExpanded, (c) => {
|
|
6679
|
-
n.value = c === !0;
|
|
6680
|
-
}, { immediate: !0 });
|
|
6681
|
-
function f(c, d) {
|
|
6682
|
-
r("fileSelected", c, d);
|
|
6683
|
-
}
|
|
6684
|
-
return (c, d) => {
|
|
6685
|
-
const p = ic("TreeItem", !0);
|
|
6686
|
-
return y(), D("div", null, [
|
|
6687
|
-
e.node.isFile ? (y(), D("div", {
|
|
6688
|
-
key: 0,
|
|
6689
|
-
class: ye(["file-item", { selected: i.value }]),
|
|
6690
|
-
style: Et(a.value),
|
|
6691
|
-
onClick: l
|
|
6692
|
-
}, [
|
|
6693
|
-
d[0] || (d[0] = Gc('<span class="file-icon" data-v-4d6079f7><svg class="icon" viewBox="0 0 24 24" data-v-4d6079f7><g transform="translate(4 4) scale(0.8)" data-v-4d6079f7><circle cx="12" cy="12" r="10" fill="none" stroke="currentColor" stroke-width="1.5" data-v-4d6079f7></circle><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" fill="none" stroke="currentColor" stroke-width="1" data-v-4d6079f7></path><path d="M2 12h20M5 5.2l14 14M5 18.8l14-14" fill="none" stroke="currentColor" stroke-width="1" data-v-4d6079f7></path></g></svg></span>', 1)),
|
|
6694
|
-
g("span", {
|
|
6695
|
-
class: "file-name",
|
|
6696
|
-
innerHTML: e.node.name
|
|
6697
|
-
}, null, 8, Pf)
|
|
6698
|
-
], 6)) : (y(), D("div", jf, [
|
|
6699
|
-
g("div", {
|
|
6700
|
-
class: ye(["folder-header", { expanded: n.value, selected: e.selected }]),
|
|
6701
|
-
style: Et(a.value),
|
|
6702
|
-
onClick: s
|
|
6703
|
-
}, [
|
|
6704
|
-
g("span", Lf, [
|
|
6705
|
-
(y(), D("svg", Ff, [
|
|
6706
|
-
n.value ? (y(), D("path", Rf)) : (y(), D("path", zf))
|
|
6707
|
-
]))
|
|
6708
|
-
]),
|
|
6709
|
-
d[1] || (d[1] = g("span", { class: "folder-icon" }, [
|
|
6710
|
-
g("svg", {
|
|
6711
|
-
class: "icon",
|
|
6712
|
-
viewBox: "0 0 24 24"
|
|
6713
|
-
}, [
|
|
6714
|
-
g("path", {
|
|
6715
|
-
d: "M20 6a2 2 0 0 0-2-2h-8L10 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2z",
|
|
6716
|
-
fill: "none",
|
|
6717
|
-
stroke: "currentColor",
|
|
6718
|
-
"stroke-width": "2"
|
|
6719
|
-
})
|
|
6720
|
-
])
|
|
6721
|
-
], -1)),
|
|
6722
|
-
g("span", Hf, G(e.node.name), 1)
|
|
6723
|
-
], 6),
|
|
6724
|
-
n.value ? (y(), D("div", Uf, [
|
|
6725
|
-
(y(!0), D(re, null, Fe(e.node.children, (w) => (y(), me(p, {
|
|
6726
|
-
key: w.fullPath,
|
|
6727
|
-
node: w,
|
|
6728
|
-
locale: e.locale,
|
|
6729
|
-
depth: e.depth + 1,
|
|
6730
|
-
"selected-file": e.selectedFile,
|
|
6731
|
-
"default-expanded": !1,
|
|
6732
|
-
onFileSelected: f
|
|
6733
|
-
}, null, 8, ["node", "locale", "depth", "selected-file"]))), 128))
|
|
6734
|
-
])) : ie("", !0)
|
|
6735
|
-
]))
|
|
6736
|
-
]);
|
|
6737
|
-
};
|
|
6738
|
-
}
|
|
6739
|
-
}), Kf = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-4d6079f7],[data-v-4d6079f7]:before,[data-v-4d6079f7]:after,[data-v-4d6079f7]::backdrop{--tw-border-style:solid;--tw-duration:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-font-weight:initial}}}.file-item[data-v-4d6079f7]{margin-block:calc(var(--spacing,.25rem)*1);cursor:pointer;border-radius:var(--radius-md,.375rem);border-style:var(--tw-border-style);background-color:var(--color-white,#fff);padding-inline:calc(var(--spacing,.25rem)*2);padding-block:calc(var(--spacing,.25rem)*1);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));color:var(--color-slate-700,oklch(37.2% .044 257.287));transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.2s;border-width:1px;border-color:#0000;align-items:center;transition-duration:.2s;display:flex}.file-item[data-v-4d6079f7]:hover{--tw-translate-x:calc(var(--spacing,.25rem)*1);translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);background-color:var(--color-slate-50,oklch(98.4% .003 247.858))}.file-item.selected[data-v-4d6079f7]{border-color:var(--color-blue-200,oklch(88.2% .059 254.128));background-color:var(--color-blue-50,oklch(97% .014 254.604));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);color:var(--color-blue-700,oklch(48.8% .243 264.376))}.folder-header[data-v-4d6079f7]{margin-block:calc(var(--spacing,.25rem)*1);cursor:pointer;border-radius:var(--radius-md,.375rem);border-style:var(--tw-border-style);background-color:var(--color-white,#fff);padding-inline:calc(var(--spacing,.25rem)*2);padding-block:calc(var(--spacing,.25rem)*1);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));color:var(--color-slate-700,oklch(37.2% .044 257.287));transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.2s;border-width:1px;border-color:#0000;align-items:center;transition-duration:.2s;display:flex}.folder-header[data-v-4d6079f7]:hover{--tw-translate-x:calc(var(--spacing,.25rem)*1);translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);background-color:var(--color-slate-50,oklch(98.4% .003 247.858))}.folder-header.expanded[data-v-4d6079f7]{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);color:var(--color-blue-700,oklch(48.8% .243 264.376))}.folder-header.selected[data-v-4d6079f7]{border-color:var(--color-blue-200,oklch(88.2% .059 254.128));background-color:var(--color-blue-50,oklch(97% .014 254.604));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);color:var(--color-blue-700,oklch(48.8% .243 264.376))}.icon[data-v-4d6079f7]{margin-right:calc(var(--spacing,.25rem)*2);height:calc(var(--spacing,.25rem)*4);width:calc(var(--spacing,.25rem)*4);flex-shrink:0}.chevron .icon[data-v-4d6079f7]{margin-right:calc(var(--spacing,.25rem)*2);height:calc(var(--spacing,.25rem)*3);width:calc(var(--spacing,.25rem)*3)}.folder-children[data-v-4d6079f7]{margin-left:calc(var(--spacing,.25rem)*3);border-left-style:var(--tw-border-style);border-left-width:2px;border-color:var(--color-slate-200,oklch(92.9% .013 255.508));padding-left:calc(var(--spacing,.25rem)*3)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}', Wf = /* @__PURE__ */ be(Bf, [["styles", [Kf]], ["__scopeId", "data-v-4d6079f7"]]), qf = { class: "flex flex-col h-full w-full bg-slate-50 rounded-lg overflow-hidden" }, Jf = { class: "flex-1 min-h-0 overflow-y-auto overscroll-contain p-2" }, Gf = /* @__PURE__ */ _e({
|
|
6740
|
-
__name: "LocalesList",
|
|
6741
|
-
props: {
|
|
6742
|
-
locales: { type: Object },
|
|
6743
|
-
selectedFile: { type: String }
|
|
6744
|
-
},
|
|
6745
|
-
emits: ["fileSelected"],
|
|
6746
|
-
setup(e, { emit: t }) {
|
|
6747
|
-
const o = e, r = t, n = oe(() => {
|
|
6748
|
-
const l = Object.keys(o.locales), f = i(l), c = {
|
|
6749
|
-
name: a(f) || "/",
|
|
6750
|
-
fullPath: f || "/",
|
|
6751
|
-
children: []
|
|
6752
|
-
};
|
|
6753
|
-
l.forEach((p) => {
|
|
6754
|
-
const w = p.startsWith(f) ? p.slice(f.length).split("/").filter(Boolean) : p.split("/").filter(Boolean);
|
|
6755
|
-
let E = c;
|
|
6756
|
-
for (let b = 0; b < w.length; b++) {
|
|
6757
|
-
const F = w[b];
|
|
6758
|
-
if (!F) continue;
|
|
6759
|
-
const R = b === w.length - 1;
|
|
6760
|
-
let z = E.children.find((U) => U.name === F);
|
|
6761
|
-
z || (z = {
|
|
6762
|
-
name: F,
|
|
6763
|
-
fullPath: `${E.fullPath}/${F}`.replace(/\/+/g, "/"),
|
|
6764
|
-
isFile: R,
|
|
6765
|
-
children: []
|
|
6766
|
-
}, E.children.push(z)), z && (E = z);
|
|
6767
|
-
}
|
|
6768
|
-
});
|
|
6769
|
-
const d = (p) => {
|
|
6770
|
-
p.sort((w, E) => w.isFile === E.isFile ? w.name.localeCompare(E.name) : w.isFile ? 1 : -1);
|
|
6771
|
-
for (const w of p)
|
|
6772
|
-
d(w.children);
|
|
6773
|
-
};
|
|
6774
|
-
return d(c.children), c.children;
|
|
6775
|
-
});
|
|
6776
|
-
function i(l) {
|
|
6777
|
-
if (l.length === 0) return "";
|
|
6778
|
-
const f = l.map((p) => p.split("/")), c = [], d = Math.min(...f.map((p) => p.length));
|
|
6779
|
-
for (let p = 0; p < d; p++) {
|
|
6780
|
-
const w = f[0]?.[p];
|
|
6781
|
-
if (w && f.every((E) => E[p] === w))
|
|
6782
|
-
c.push(w);
|
|
6783
|
-
else
|
|
6784
|
-
break;
|
|
6785
|
-
}
|
|
6786
|
-
return c.join("/");
|
|
6787
|
-
}
|
|
6788
|
-
function a(l) {
|
|
6789
|
-
const f = l.split("/").filter((c) => c);
|
|
6790
|
-
return f[f.length - 1] || "";
|
|
6791
|
-
}
|
|
6792
|
-
function s(l) {
|
|
6793
|
-
r("fileSelected", l);
|
|
6794
|
-
}
|
|
6795
|
-
return (l, f) => (y(), D("div", qf, [
|
|
6796
|
-
g("div", Jf, [
|
|
6797
|
-
(y(!0), D(re, null, Fe(n.value, (c) => (y(), me(Wf, {
|
|
6798
|
-
key: c.fullPath,
|
|
6799
|
-
locale: c.name,
|
|
6800
|
-
node: c,
|
|
6801
|
-
depth: 0,
|
|
6802
|
-
"selected-file": e.selectedFile,
|
|
6803
|
-
"default-expanded": !1,
|
|
6804
|
-
onFileSelected: s
|
|
6805
|
-
}, null, 8, ["locale", "node", "selected-file"]))), 128))
|
|
6806
|
-
])
|
|
6807
|
-
]));
|
|
6808
|
-
}
|
|
6809
|
-
}), Yf = "", Xf = /* @__PURE__ */ be(Gf, [["styles", [Yf]], ["__scopeId", "data-v-c66b5f7f"]]), Zf = { class: "header-content" }, Qf = { class: "modal-title" }, eu = { class: "modal-body" }, tu = {
|
|
6810
|
-
key: 0,
|
|
6811
|
-
class: "modal-footer"
|
|
6812
|
-
}, ou = /* @__PURE__ */ _e({
|
|
6813
|
-
__name: "Modal",
|
|
6814
|
-
props: {
|
|
6815
|
-
show: { type: Boolean },
|
|
6816
|
-
title: { type: String },
|
|
6817
|
-
size: { default: "md", type: String },
|
|
6818
|
-
width: { type: String },
|
|
6819
|
-
height: { type: String },
|
|
6820
|
-
disableOutsideClick: { type: Boolean, default: !1 },
|
|
6821
|
-
disableEsc: { type: Boolean, default: !1 },
|
|
6822
|
-
showCloseButton: { type: Boolean, default: !0 },
|
|
6823
|
-
headerClass: { type: String }
|
|
6824
|
-
},
|
|
6825
|
-
emits: ["update:show", "close"],
|
|
6826
|
-
setup(e, { emit: t }) {
|
|
6827
|
-
const o = e, r = t, n = {
|
|
6828
|
-
sm: { width: "400px", height: "auto" },
|
|
6829
|
-
md: { width: "600px", height: "70vh" },
|
|
6830
|
-
lg: { width: "800px", height: "80vh" },
|
|
6831
|
-
xl: { width: "90vw", height: "90vh" },
|
|
6832
|
-
custom: { width: o.width || "auto", height: o.height || "auto" }
|
|
6833
|
-
}, i = oe(
|
|
6834
|
-
() => o.size === "custom" ? o.width : null
|
|
6835
|
-
), a = oe(
|
|
6836
|
-
() => o.size === "custom" ? o.height : null
|
|
6837
|
-
), s = () => {
|
|
6838
|
-
r("update:show", !1), r("close");
|
|
6839
|
-
}, l = () => {
|
|
6840
|
-
o.disableOutsideClick || s();
|
|
6841
|
-
}, f = () => {
|
|
6842
|
-
o.disableEsc || s();
|
|
6843
|
-
}, c = (p) => {
|
|
6844
|
-
p.key === "Escape" && f();
|
|
6845
|
-
}, d = ne("");
|
|
6846
|
-
return Pt(() => {
|
|
6847
|
-
if (document.addEventListener("keydown", c), o.show) {
|
|
6848
|
-
const p = document.querySelector("i18n-devtools-ui");
|
|
6849
|
-
p && (d.value = p.style.overflow || "", p.style.overflow = "hidden");
|
|
6850
|
-
}
|
|
6851
|
-
}), An(() => {
|
|
6852
|
-
document.removeEventListener("keydown", c);
|
|
6853
|
-
const p = document.querySelector("i18n-devtools-ui");
|
|
6854
|
-
p && (p.style.overflow = d.value);
|
|
6855
|
-
}), Te(() => o.show, (p) => {
|
|
6856
|
-
const w = document.querySelector("i18n-devtools-ui");
|
|
6857
|
-
w && (p ? (d.value = w.style.overflow || "", w.style.overflow = "hidden") : w.style.overflow = d.value);
|
|
6858
|
-
}), (p, w) => (y(), me(Kl, { to: "body" }, [
|
|
6859
|
-
Y(mn, { name: "modal" }, {
|
|
6860
|
-
default: ke(() => [
|
|
6861
|
-
e.show ? (y(), D("div", {
|
|
6862
|
-
key: 0,
|
|
6863
|
-
class: "modal-overlay",
|
|
6864
|
-
onClick: ks(l, ["self"]),
|
|
6865
|
-
onKeydown: Hd(f, ["esc"])
|
|
6866
|
-
}, [
|
|
6867
|
-
g("div", {
|
|
6868
|
-
class: "modal-content",
|
|
6869
|
-
style: Et({
|
|
6870
|
-
width: i.value || n[e.size].width,
|
|
6871
|
-
height: a.value || n[e.size].height
|
|
6872
|
-
})
|
|
6873
|
-
}, [
|
|
6874
|
-
g("div", {
|
|
6875
|
-
class: ye(["modal-header", e.headerClass])
|
|
6876
|
-
}, [
|
|
6877
|
-
g("div", Zf, [
|
|
6878
|
-
vt(p.$slots, "header", {}, () => [
|
|
6879
|
-
g("h3", Qf, G(e.title), 1)
|
|
6880
|
-
], !0)
|
|
6881
|
-
]),
|
|
6882
|
-
e.showCloseButton ? (y(), D("button", {
|
|
6883
|
-
key: 0,
|
|
6884
|
-
class: "modal-close-button",
|
|
6885
|
-
"aria-label": "Close modal",
|
|
6886
|
-
onClick: s
|
|
6887
|
-
}, [...w[0] || (w[0] = [
|
|
6888
|
-
g("svg", {
|
|
6889
|
-
class: "close-icon",
|
|
6890
|
-
viewBox: "0 0 24 24"
|
|
6891
|
-
}, [
|
|
6892
|
-
g("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })
|
|
6893
|
-
], -1)
|
|
6894
|
-
])])) : ie("", !0)
|
|
6895
|
-
], 2),
|
|
6896
|
-
g("div", eu, [
|
|
6897
|
-
vt(p.$slots, "default", {}, void 0, !0)
|
|
6898
|
-
]),
|
|
6899
|
-
p.$slots.footer ? (y(), D("div", tu, [
|
|
6900
|
-
vt(p.$slots, "footer", {}, void 0, !0)
|
|
6901
|
-
])) : ie("", !0)
|
|
6902
|
-
], 4)
|
|
6903
|
-
], 32)) : ie("", !0)
|
|
6904
|
-
]),
|
|
6905
|
-
_: 3
|
|
6906
|
-
})
|
|
6907
|
-
]));
|
|
6908
|
-
}
|
|
6909
|
-
}), ru = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-4ae52707],[data-v-4ae52707]:before,[data-v-4ae52707]:after,[data-v-4ae52707]::backdrop{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-border-style:solid;--tw-font-weight:initial;--tw-space-x-reverse:0}}}.modal-overlay[data-v-4ae52707]{inset:calc(var(--spacing,.25rem)*0);z-index:1000;background-color:#00000080;justify-content:center;align-items:center;display:flex;position:fixed}@supports (color:color-mix(in lab,red,red)){.modal-overlay[data-v-4ae52707]{background-color:color-mix(in oklab,var(--color-black,#000)50%,transparent)}}.modal-overlay[data-v-4ae52707]{padding:calc(var(--spacing,.25rem)*4);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-content[data-v-4ae52707]{border-radius:var(--radius-xl,.75rem);background-color:var(--color-white,#fff);--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);flex-direction:column;max-height:calc(100vh - 2rem);display:flex}.modal-header[data-v-4ae52707]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-gray-100,oklch(96.7% .003 264.542));padding-inline:calc(var(--spacing,.25rem)*6);padding-block:calc(var(--spacing,.25rem)*4);flex-shrink:0;justify-content:space-between;align-items:center;display:flex}.header-content[data-v-4ae52707]{min-width:calc(var(--spacing,.25rem)*0);flex:1}.modal-title[data-v-4ae52707]{text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xl,1.25rem);line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75/1.25)));--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600);color:var(--color-gray-900,oklch(21% .034 264.665));overflow:hidden}.modal-close-button[data-v-4ae52707]{margin-right:calc(var(--spacing,.25rem)*-2);margin-left:calc(var(--spacing,.25rem)*4);padding:calc(var(--spacing,.25rem)*2);color:var(--color-gray-400,oklch(70.7% .022 261.325));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s))}@media(hover:hover){.modal-close-button[data-v-4ae52707]:hover{color:var(--color-gray-600,oklch(44.6% .03 256.802))}}.close-icon[data-v-4ae52707]{height:calc(var(--spacing,.25rem)*6);width:calc(var(--spacing,.25rem)*6);fill:currentColor}.modal-body[data-v-4ae52707]{padding:calc(var(--spacing,.25rem)*6);scrollbar-width:thin;scrollbar-color:oklch(87.2% .01 258.338) #fff;flex:1;overflow-y:auto}.modal-body[data-v-4ae52707]::-webkit-scrollbar{width:calc(var(--spacing,.25rem)*2)}.modal-body[data-v-4ae52707]::-webkit-scrollbar-track{border-radius:var(--radius-sm,.25rem);background-color:var(--color-gray-100,oklch(96.7% .003 264.542))}.modal-body[data-v-4ae52707]::-webkit-scrollbar-thumb{border-radius:var(--radius-sm,.25rem);background-color:var(--color-gray-300,oklch(87.2% .01 258.338))}@media(hover:hover){.modal-body[data-v-4ae52707]::-webkit-scrollbar-thumb:hover{background-color:var(--color-gray-400,oklch(70.7% .022 261.325))}}.modal-footer[data-v-4ae52707]{flex-shrink:0;justify-content:flex-end;align-items:center;display:flex}:where(.modal-footer[data-v-4ae52707]>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing,.25rem)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing,.25rem)*3)*calc(1 - var(--tw-space-x-reverse)))}.modal-footer[data-v-4ae52707]{border-top-style:var(--tw-border-style);border-top-width:1px;border-color:var(--color-gray-100,oklch(96.7% .003 264.542));padding-inline:calc(var(--spacing,.25rem)*6);padding-block:calc(var(--spacing,.25rem)*4)}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}', qi = /* @__PURE__ */ be(ou, [["styles", [ru]], ["__scopeId", "data-v-4ae52707"]]), nu = { class: "text-sm font-medium text-gray-600 truncate" }, iu = {
|
|
6910
|
-
key: 1,
|
|
6911
|
-
class: "flex flex-col"
|
|
6912
|
-
}, au = { class: "text-sm font-medium text-gray-600" }, rr = /* @__PURE__ */ _e({
|
|
6913
|
-
__name: "StatItem",
|
|
6914
|
-
props: {
|
|
6915
|
-
label: String,
|
|
6916
|
-
value: [String, Number],
|
|
6917
|
-
trend: Number,
|
|
6918
|
-
stacked: {
|
|
6919
|
-
type: Boolean,
|
|
6920
|
-
default: !1
|
|
6921
|
-
}
|
|
6922
|
-
},
|
|
6923
|
-
setup(e) {
|
|
6924
|
-
const t = e, o = oe(() => typeof t.value == "number" ? t.value.toLocaleString() : t.value), r = oe(() => t.trend ? t.trend > 0 ? "text-green-500" : "text-red-500" : "");
|
|
6925
|
-
return (n, i) => (y(), D("div", {
|
|
6926
|
-
class: ye(["p-3 bg-gray-50 rounded-lg transition-all duration-200 hover:bg-gray-100", e.stacked ? "block" : "flex items-center justify-between"])
|
|
6927
|
-
}, [
|
|
6928
|
-
e.stacked ? (y(), D("div", iu, [
|
|
6929
|
-
g("span", au, G(e.label), 1),
|
|
6930
|
-
g("span", {
|
|
6931
|
-
class: ye(["font-semibold mt-1", n.$attrs.class])
|
|
6932
|
-
}, [
|
|
6933
|
-
qe(G(o.value) + " ", 1),
|
|
6934
|
-
e.trend ? (y(), D("span", {
|
|
6935
|
-
key: 0,
|
|
6936
|
-
class: ye(["ml-2 text-xs", r.value])
|
|
6937
|
-
}, G(e.trend) + "% ", 3)) : ie("", !0)
|
|
6938
|
-
], 2)
|
|
6939
|
-
])) : (y(), D(re, { key: 0 }, [
|
|
6940
|
-
g("span", nu, G(e.label), 1),
|
|
6941
|
-
g("span", {
|
|
6942
|
-
class: ye(["font-semibold min-w-[60px] text-right", n.$attrs.class])
|
|
6943
|
-
}, [
|
|
6944
|
-
qe(G(o.value) + " ", 1),
|
|
6945
|
-
e.trend ? (y(), D("span", {
|
|
6946
|
-
key: 0,
|
|
6947
|
-
class: ye(["ml-2 text-xs", r.value])
|
|
6948
|
-
}, G(e.trend) + "% ", 3)) : ie("", !0)
|
|
6949
|
-
], 2)
|
|
6950
|
-
], 64))
|
|
6951
|
-
], 2));
|
|
6952
|
-
}
|
|
6953
|
-
}), su = { class: "diff-viewer" }, lu = { class: "filters" }, cu = ["value"], du = { class: "diff-list" }, fu = { class: "key-row" }, uu = { class: "key-label" }, pu = { class: "value-compare" }, hu = { class: "value old" }, gu = { class: "value-content" }, vu = { class: "value new" }, wu = { class: "value-content" }, mu = { class: "value-content" }, bu = /* @__PURE__ */ _e({
|
|
6954
|
-
__name: "DiffViewer",
|
|
6955
|
-
props: {
|
|
6956
|
-
current: { type: Object },
|
|
6957
|
-
base: { type: Object }
|
|
6958
|
-
},
|
|
6959
|
-
setup(e) {
|
|
6960
|
-
const t = e, o = ne(["added", "modified", "removed"]), r = [
|
|
6961
|
-
{ type: "added", label: "Added", class: "bg-green-100 text-green-800" },
|
|
6962
|
-
{ type: "modified", label: "Modified", class: "bg-yellow-100 text-yellow-800" },
|
|
6963
|
-
{ type: "removed", label: "Removed", class: "bg-red-100 text-red-800" }
|
|
6964
|
-
], n = {
|
|
6965
|
-
added: "text-green-600",
|
|
6966
|
-
modified: "text-yellow-600",
|
|
6967
|
-
removed: "text-red-600"
|
|
6968
|
-
}, i = oe(() => {
|
|
6969
|
-
const l = Xe(t.current), f = Xe(t.base), c = /* @__PURE__ */ new Set([...Object.keys(l), ...Object.keys(f)]);
|
|
6970
|
-
return Array.from(c).map((d) => {
|
|
6971
|
-
const p = l[d], w = f[d];
|
|
6972
|
-
return !p && w ? { key: d, type: "removed", baseValue: w } : p && !w ? { key: d, type: "added", currentValue: p } : p !== w ? {
|
|
6973
|
-
key: d,
|
|
6974
|
-
type: "modified",
|
|
6975
|
-
baseValue: w,
|
|
6976
|
-
currentValue: p
|
|
6977
|
-
} : null;
|
|
6978
|
-
}).filter(Boolean);
|
|
6979
|
-
}), a = oe(() => ({
|
|
6980
|
-
added: i.value.filter((l) => l.type === "added").length,
|
|
6981
|
-
modified: i.value.filter((l) => l.type === "modified").length,
|
|
6982
|
-
removed: i.value.filter((l) => l.type === "removed").length
|
|
6983
|
-
})), s = oe(
|
|
6984
|
-
() => i.value.filter((l) => o.value.includes(l.type))
|
|
6985
|
-
);
|
|
6986
|
-
return (l, f) => (y(), D("div", su, [
|
|
6987
|
-
g("div", lu, [
|
|
6988
|
-
(y(), D(re, null, Fe(r, (c) => g("label", {
|
|
6989
|
-
key: c.type,
|
|
6990
|
-
class: "filter-item"
|
|
6991
|
-
}, [
|
|
6992
|
-
ut(g("input", {
|
|
6993
|
-
"onUpdate:modelValue": f[0] || (f[0] = (d) => o.value = d),
|
|
6994
|
-
type: "checkbox",
|
|
6995
|
-
value: c.type,
|
|
6996
|
-
class: "sr-only"
|
|
6997
|
-
}, null, 8, cu), [
|
|
6998
|
-
[Ld, o.value]
|
|
6999
|
-
]),
|
|
7000
|
-
g("span", {
|
|
7001
|
-
class: ye(["filter-badge", c.class])
|
|
7002
|
-
}, G(c.label) + " (" + G(a.value[c.type]) + ") ", 3)
|
|
7003
|
-
])), 64))
|
|
7004
|
-
]),
|
|
7005
|
-
g("div", du, [
|
|
7006
|
-
(y(!0), D(re, null, Fe(s.value, (c, d) => (y(), D("div", {
|
|
7007
|
-
key: d,
|
|
7008
|
-
class: "diff-item"
|
|
7009
|
-
}, [
|
|
7010
|
-
g("div", fu, [
|
|
7011
|
-
g("span", uu, G(c.key), 1),
|
|
7012
|
-
c.type ? (y(), D("span", {
|
|
7013
|
-
key: 0,
|
|
7014
|
-
class: ye(["change-type", n[c.type]])
|
|
7015
|
-
}, G(c.type.toUpperCase()), 3)) : ie("", !0)
|
|
7016
|
-
]),
|
|
7017
|
-
g("div", pu, [
|
|
7018
|
-
c.type === "modified" ? (y(), D(re, { key: 0 }, [
|
|
7019
|
-
g("div", hu, [
|
|
7020
|
-
f[1] || (f[1] = g("span", { class: "value-label" }, "Default:", -1)),
|
|
7021
|
-
g("span", gu, G(c.baseValue), 1)
|
|
7022
|
-
]),
|
|
7023
|
-
g("div", vu, [
|
|
7024
|
-
f[2] || (f[2] = g("span", { class: "value-label" }, "Current:", -1)),
|
|
7025
|
-
g("span", wu, G(c.currentValue), 1)
|
|
7026
|
-
])
|
|
7027
|
-
], 64)) : (y(), D("div", {
|
|
7028
|
-
key: 1,
|
|
7029
|
-
class: ye(["value", c.type])
|
|
7030
|
-
}, [
|
|
7031
|
-
g("span", mu, G(c.currentValue || c.baseValue), 1)
|
|
7032
|
-
], 2))
|
|
7033
|
-
])
|
|
7034
|
-
]))), 128))
|
|
7035
|
-
])
|
|
7198
|
+
onClick: f[0] || (f[0] = (c) => s(e.currentPage - 1))
|
|
7199
|
+
}, " Previous ", 8, gp),
|
|
7200
|
+
e.currentPage > 3 ? (y(), D(re, { key: 0 }, [
|
|
7201
|
+
(y(!0), D(re, null, Fe(n.value, (c) => (y(), D("button", {
|
|
7202
|
+
key: c,
|
|
7203
|
+
class: "pagination-button",
|
|
7204
|
+
onClick: (d) => s(c)
|
|
7205
|
+
}, G(c), 9, vp))), 128)),
|
|
7206
|
+
e.currentPage > 4 ? (y(), D("span", wp, "...")) : ie("", !0)
|
|
7207
|
+
], 64)) : ie("", !0),
|
|
7208
|
+
(y(!0), D(re, null, Fe(a.value, (c) => (y(), D("button", {
|
|
7209
|
+
key: c,
|
|
7210
|
+
class: ye(["pagination-button", { active: e.currentPage === c }]),
|
|
7211
|
+
onClick: (d) => s(c)
|
|
7212
|
+
}, G(c), 11, mp))), 128)),
|
|
7213
|
+
e.currentPage < e.totalPages - 2 ? (y(), D(re, { key: 1 }, [
|
|
7214
|
+
e.currentPage < e.totalPages - 3 ? (y(), D("span", bp, "...")) : ie("", !0),
|
|
7215
|
+
(y(!0), D(re, null, Fe(i.value, (c) => (y(), D("button", {
|
|
7216
|
+
key: c,
|
|
7217
|
+
class: "pagination-button",
|
|
7218
|
+
onClick: (d) => s(c)
|
|
7219
|
+
}, G(c), 9, yp))), 128))
|
|
7220
|
+
], 64)) : ie("", !0),
|
|
7221
|
+
g("button", {
|
|
7222
|
+
disabled: e.currentPage === e.totalPages || e.totalPages === 0,
|
|
7223
|
+
class: "pagination-button",
|
|
7224
|
+
onClick: f[1] || (f[1] = (c) => s(e.currentPage + 1))
|
|
7225
|
+
}, " Next ", 8, _p)
|
|
7036
7226
|
]));
|
|
7037
7227
|
}
|
|
7038
|
-
}),
|
|
7039
|
-
|
|
7040
|
-
class: "grid grid-cols-2 gap-4"
|
|
7041
|
-
}, Nu = { class: "pt-4 mt-4 border-t border-gray-200" }, Ou = { class: "grid grid-cols-2 gap-4" }, Su = /* @__PURE__ */ _e({
|
|
7042
|
-
__name: "Statistics",
|
|
7228
|
+
}), kp = ".pagination[data-v-7a26b7d7]{display:flex;justify-content:center;align-items:center;gap:6px;margin-top:16px;flex-wrap:wrap}.pagination-button[data-v-7a26b7d7]{padding:6px 12px;min-width:32px;border:1px solid #ccc;border-radius:4px;background-color:#f8f9fa;cursor:pointer;font-size:13px;color:#333;text-align:center;transition:background-color .2s,border-color .2s}.pagination-button[data-v-7a26b7d7]:hover:not(:disabled){background-color:#e9ecef;border-color:#bbb}.pagination-button[data-v-7a26b7d7]:disabled{background-color:#e9ecef;cursor:not-allowed;color:#999}.pagination-button.active[data-v-7a26b7d7]{background-color:#007bff;border-color:#007bff;color:#fff}.pagination-ellipsis[data-v-7a26b7d7]{padding:6px 12px;font-size:13px;color:#666}", Ep = /* @__PURE__ */ be(xp, [["styles", [kp]], ["__scopeId", "data-v-7a26b7d7"]]), Np = { class: "translation-editor" }, Op = { class: "translation-list-container" }, Sp = { class: "search-box" }, $p = { class: "translation-list" }, Cp = { class: "key-header" }, Tp = ["title"], Dp = ["onClick"], Vp = { class: "default-value" }, Ap = ["onUpdate:modelValue", "placeholder"], Mp = { class: "pagination-wrapper" }, Qr = 30, Ip = /* @__PURE__ */ _e({
|
|
7229
|
+
__name: "TranslationEditor",
|
|
7043
7230
|
props: {
|
|
7044
|
-
|
|
7231
|
+
modelValue: { type: Object }
|
|
7045
7232
|
},
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
()
|
|
7051
|
-
|
|
7052
|
-
).
|
|
7053
|
-
),
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
(
|
|
7090
|
-
|
|
7091
|
-
(
|
|
7092
|
-
(
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
g("div",
|
|
7097
|
-
(
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7233
|
+
emits: ["update:modelValue"],
|
|
7234
|
+
setup(e, { emit: t }) {
|
|
7235
|
+
const o = e, r = t, { selectedFile: n, configs: i, getDefaultLocaleTranslation: a } = Pr(), s = ne(Xe(o.modelValue)), l = ne({}), f = ne(""), c = ne(1), d = ne("disabled"), p = ne(""), w = ne({}), N = oe(() => {
|
|
7236
|
+
const j = Object.keys(l.value);
|
|
7237
|
+
if (!f.value.trim()) return F.value;
|
|
7238
|
+
const q = f.value.toLowerCase();
|
|
7239
|
+
return j.filter((H) => H.toLowerCase().includes(q) || l.value[H]?.toLowerCase().includes(q));
|
|
7240
|
+
}), b = oe(() => Math.ceil(Object.keys(l.value).length / Qr)), F = oe(() => {
|
|
7241
|
+
const j = (c.value - 1) * Qr, q = j + Qr;
|
|
7242
|
+
return Object.keys(l.value).slice(j, q);
|
|
7243
|
+
}), R = () => {
|
|
7244
|
+
const j = a();
|
|
7245
|
+
l.value = Xe(j);
|
|
7246
|
+
}, z = () => {
|
|
7247
|
+
r("update:modelValue", $s(s.value));
|
|
7248
|
+
}, U = (j) => {
|
|
7249
|
+
j >= 1 && j <= b.value && (c.value = j);
|
|
7250
|
+
}, fe = async (j, q) => {
|
|
7251
|
+
if (q)
|
|
7252
|
+
try {
|
|
7253
|
+
const H = i.value.defaultLocale, _ = new Cs({ apiKey: p.value, driver: d.value, options: w.value }), I = n.value.split("/").pop() ?? "";
|
|
7254
|
+
s.value[j] = await _.translate(q, H, I.replace(".json", "")), z();
|
|
7255
|
+
} catch (H) {
|
|
7256
|
+
console.error("Translation error:", H);
|
|
7257
|
+
}
|
|
7258
|
+
}, M = () => {
|
|
7259
|
+
const j = localStorage.getItem("translationSettings");
|
|
7260
|
+
if (j)
|
|
7261
|
+
try {
|
|
7262
|
+
const q = JSON.parse(j);
|
|
7263
|
+
d.value = q.driver || "disabled", p.value = q.token || "", w.value = q.options || {};
|
|
7264
|
+
} catch {
|
|
7265
|
+
localStorage.removeItem("translationSettings");
|
|
7266
|
+
}
|
|
7267
|
+
};
|
|
7268
|
+
return Pt(() => {
|
|
7269
|
+
R(), M();
|
|
7270
|
+
}), Te(
|
|
7271
|
+
() => o.modelValue,
|
|
7272
|
+
(j) => {
|
|
7273
|
+
s.value = Xe(j), R();
|
|
7274
|
+
}
|
|
7275
|
+
), Te(n, () => {
|
|
7276
|
+
R(), c.value = 1;
|
|
7277
|
+
}), Te(
|
|
7278
|
+
() => i.value.defaultLocale,
|
|
7279
|
+
() => {
|
|
7280
|
+
R();
|
|
7281
|
+
}
|
|
7282
|
+
), (j, q) => (y(), D("div", Np, [
|
|
7283
|
+
g("div", Op, [
|
|
7284
|
+
g("div", Sp, [
|
|
7285
|
+
ut(g("input", {
|
|
7286
|
+
"onUpdate:modelValue": q[0] || (q[0] = (H) => f.value = H),
|
|
7287
|
+
placeholder: "Search keys or values...",
|
|
7288
|
+
class: "search-input"
|
|
7289
|
+
}, null, 512), [
|
|
7290
|
+
[Nr, f.value]
|
|
7291
|
+
])
|
|
7292
|
+
]),
|
|
7293
|
+
g("div", $p, [
|
|
7294
|
+
(y(!0), D(re, null, Fe(N.value, (H) => (y(), D("div", {
|
|
7295
|
+
key: H,
|
|
7296
|
+
class: ye(["translation-item", { missing: !s.value[H]?.trim() }])
|
|
7297
|
+
}, [
|
|
7298
|
+
g("div", Cp, [
|
|
7299
|
+
g("span", {
|
|
7300
|
+
class: "key-label",
|
|
7301
|
+
title: H
|
|
7302
|
+
}, G(H), 9, Tp),
|
|
7303
|
+
d.value !== "disabled" ? (y(), D("button", {
|
|
7304
|
+
key: 0,
|
|
7305
|
+
class: "translate-btn",
|
|
7306
|
+
onClick: (_) => fe(H, l.value[H] || "")
|
|
7307
|
+
}, [...q[1] || (q[1] = [
|
|
7308
|
+
g("svg", {
|
|
7309
|
+
class: "translate-icon",
|
|
7310
|
+
viewBox: "0 0 24 24"
|
|
7311
|
+
}, [
|
|
7312
|
+
g("path", { d: "M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" })
|
|
7313
|
+
], -1)
|
|
7314
|
+
])], 8, Dp)) : ie("", !0)
|
|
7315
|
+
]),
|
|
7316
|
+
g("div", Vp, G(l.value[H] || "No default value"), 1),
|
|
7317
|
+
ut(g("textarea", {
|
|
7318
|
+
"onUpdate:modelValue": (_) => s.value[H] = _,
|
|
7319
|
+
class: "translation-input",
|
|
7320
|
+
placeholder: l.value[H],
|
|
7321
|
+
rows: "1",
|
|
7322
|
+
onInput: z
|
|
7323
|
+
}, null, 40, Ap), [
|
|
7324
|
+
[Nr, s.value[H]]
|
|
7325
|
+
])
|
|
7326
|
+
], 2))), 128))
|
|
7129
7327
|
])
|
|
7130
7328
|
]),
|
|
7131
|
-
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7329
|
+
g("div", Mp, [
|
|
7330
|
+
f.value ? ie("", !0) : (y(), me(Ep, {
|
|
7331
|
+
key: 0,
|
|
7332
|
+
"current-page": c.value,
|
|
7333
|
+
"total-pages": b.value,
|
|
7334
|
+
"onUpdate:page": U
|
|
7335
|
+
}, null, 8, ["current-page", "total-pages"]))
|
|
7336
|
+
])
|
|
7136
7337
|
]));
|
|
7137
7338
|
}
|
|
7138
|
-
}),
|
|
7339
|
+
}), Pp = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-593b161e],[data-v-593b161e]:before,[data-v-593b161e]:after,[data-v-593b161e]::backdrop{--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-space-y-reverse:0;--tw-font-weight:initial}}}.translation-editor[data-v-593b161e]{background-color:var(--color-gray-50,oklch(98.5% .002 247.839));flex-direction:column;width:100%;height:100%;display:flex;overflow:hidden}.translation-list-container[data-v-593b161e]{min-height:calc(var(--spacing,.25rem)*0);flex-direction:column;flex:1;display:flex;overflow:hidden}.search-box[data-v-593b161e]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-gray-200,oklch(92.8% .006 264.531));background-color:var(--color-white,#fff);padding:calc(var(--spacing,.25rem)*2);flex-shrink:0}.search-input[data-v-593b161e]{border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-300,oklch(87.2% .01 258.338));width:100%;padding:calc(var(--spacing,.25rem)*2);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)))}.search-input[data-v-593b161e]:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-ring-color:var(--color-blue-500,oklch(62.3% .214 259.815));--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.search-input[data-v-593b161e]:focus{outline-offset:2px;outline:2px solid #0000}}.translation-list[data-v-593b161e]{flex:1}:where(.translation-list[data-v-593b161e]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing,.25rem)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing,.25rem)*3)*calc(1 - var(--tw-space-y-reverse)))}.translation-list[data-v-593b161e]{padding:calc(var(--spacing,.25rem)*2);overscroll-behavior:contain;overflow:hidden auto}.translation-item[data-v-593b161e]{border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-200,oklch(92.8% .006 264.531));background-color:var(--color-white,#fff);padding:calc(var(--spacing,.25rem)*3);--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.translation-item.missing[data-v-593b161e]{border-left-style:var(--tw-border-style);border-left-width:4px;border-left-color:var(--color-yellow-500,oklch(79.5% .184 86.047));background-color:#fefce84d}@supports (color:color-mix(in lab,red,red)){.translation-item.missing[data-v-593b161e]{background-color:color-mix(in oklab,var(--color-yellow-50,oklch(98.7% .026 102.212))30%,transparent)}}.key-header[data-v-593b161e]{margin-bottom:calc(var(--spacing,.25rem)*1);justify-content:space-between;align-items:center;display:flex}.key-label[data-v-593b161e]{text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1/.75)));--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600);color:var(--color-slate-700,oklch(37.2% .044 257.287));-webkit-user-select:all;user-select:all;overflow:hidden}.default-value[data-v-593b161e]{margin-bottom:calc(var(--spacing,.25rem)*2);text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1/.75)));color:var(--color-gray-500,oklch(55.1% .027 264.364));opacity:.8;overflow:hidden}.translation-input[data-v-593b161e]{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-300,oklch(87.2% .01 258.338));width:100%;min-height:38px;padding:calc(var(--spacing,.25rem)*2);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));border-radius:.25rem}.translation-input[data-v-593b161e]:focus{border-color:var(--color-blue-500,oklch(62.3% .214 259.815));--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-ring-color:var(--color-blue-500,oklch(62.3% .214 259.815));--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.translation-input[data-v-593b161e]:focus{outline-offset:2px;outline:2px solid #0000}}.translate-btn[data-v-593b161e]{padding:calc(var(--spacing,.25rem)*1);color:var(--color-gray-400,oklch(70.7% .022 261.325));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));border-radius:.25rem}@media(hover:hover){.translate-btn[data-v-593b161e]:hover{background-color:var(--color-gray-100,oklch(96.7% .003 264.542));color:var(--color-blue-600,oklch(54.6% .245 262.881))}}.translate-icon[data-v-593b161e]{height:calc(var(--spacing,.25rem)*4);width:calc(var(--spacing,.25rem)*4);fill:currentColor}.pagination-wrapper[data-v-593b161e]{border-top-style:var(--tw-border-style);border-top-width:1px;border-color:var(--color-gray-200,oklch(92.8% .006 264.531));background-color:var(--color-white,#fff);padding:calc(var(--spacing,.25rem)*2);flex-shrink:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-font-weight{syntax:"*";inherits:false}', jp = /* @__PURE__ */ be(Ip, [["styles", [Pp]], ["__scopeId", "data-v-593b161e"]]), Lp = ["disabled", "type"], Fp = /* @__PURE__ */ _e({
|
|
7139
7340
|
__name: "Button",
|
|
7140
7341
|
props: {
|
|
7141
7342
|
variant: { default: "primary", type: String },
|
|
@@ -7155,9 +7356,9 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7155
7356
|
onClick: n
|
|
7156
7357
|
}, [
|
|
7157
7358
|
vt(i.$slots, "default", {}, void 0)
|
|
7158
|
-
], 10,
|
|
7359
|
+
], 10, Lp));
|
|
7159
7360
|
}
|
|
7160
|
-
}),
|
|
7361
|
+
}), Rp = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-4f279bb7],[data-v-4f279bb7]:before,[data-v-4f279bb7]:after,[data-v-4f279bb7]::backdrop{--tw-font-weight:initial;--tw-duration:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}.btn[data-v-4f279bb7]{border-radius:var(--radius-md,.375rem);--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.2s;justify-content:center;align-items:center;transition-duration:.2s;display:inline-flex}.btn[data-v-4f279bb7]:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.btn[data-v-4f279bb7]:focus{outline-offset:2px;outline:2px solid #0000}}.btn[data-v-4f279bb7]:disabled{cursor:not-allowed;opacity:.5}.btn--sm[data-v-4f279bb7]{padding-inline:calc(var(--spacing,.25rem)*2);padding-block:calc(var(--spacing,.25rem)*1);font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1/.75)))}.btn--md[data-v-4f279bb7]{padding-inline:calc(var(--spacing,.25rem)*3);padding-block:calc(var(--spacing,.25rem)*1.5);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)))}.btn--lg[data-v-4f279bb7]{padding-inline:calc(var(--spacing,.25rem)*4);padding-block:calc(var(--spacing,.25rem)*2);font-size:var(--text-base,1rem);line-height:var(--tw-leading,var(--text-base--line-height, 1.5 ))}.btn--primary[data-v-4f279bb7]{background-color:var(--color-blue-600,oklch(54.6% .245 262.881));color:var(--color-white,#fff)}@media(hover:hover){.btn--primary[data-v-4f279bb7]:hover{background-color:var(--color-blue-700,oklch(48.8% .243 264.376))}}.btn--primary[data-v-4f279bb7]:focus{--tw-ring-color:var(--color-blue-500,oklch(62.3% .214 259.815))}.btn--secondary[data-v-4f279bb7]{background-color:var(--color-slate-200,oklch(92.9% .013 255.508));color:var(--color-slate-700,oklch(37.2% .044 257.287))}@media(hover:hover){.btn--secondary[data-v-4f279bb7]:hover{background-color:var(--color-slate-300,oklch(86.9% .022 252.894))}}.btn--secondary[data-v-4f279bb7]:focus{--tw-ring-color:var(--color-slate-500,oklch(55.4% .046 257.417))}.btn--danger[data-v-4f279bb7]{background-color:var(--color-red-600,oklch(57.7% .245 27.325));color:var(--color-white,#fff)}@media(hover:hover){.btn--danger[data-v-4f279bb7]:hover{background-color:var(--color-red-700,oklch(50.5% .213 27.518))}}.btn--danger[data-v-4f279bb7]:focus{--tw-ring-color:var(--color-red-500,oklch(63.7% .237 25.331))}.btn--ghost[data-v-4f279bb7]{color:var(--color-slate-700,oklch(37.2% .044 257.287));background-color:#0000}@media(hover:hover){.btn--ghost[data-v-4f279bb7]:hover{background-color:var(--color-slate-100,oklch(96.8% .007 247.896))}}.btn--ghost[data-v-4f279bb7]:focus{--tw-ring-color:var(--color-slate-500,oklch(55.4% .046 257.417))}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}', Bt = /* @__PURE__ */ be(Fp, [["styles", [Rp]], ["__scopeId", "data-v-4f279bb7"]]), zp = { class: "action-bar" }, Hp = { class: "action-bar__left" }, Up = /* @__PURE__ */ _e({
|
|
7161
7362
|
__name: "ActionBar",
|
|
7162
7363
|
props: {
|
|
7163
7364
|
showTranslateButton: { type: Boolean }
|
|
@@ -7165,8 +7366,8 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7165
7366
|
emits: ["export", "import", "show-stats", "translate-missing", "save"],
|
|
7166
7367
|
setup(e, { emit: t }) {
|
|
7167
7368
|
const o = t;
|
|
7168
|
-
return (r, n) => (y(), D("div",
|
|
7169
|
-
g("div",
|
|
7369
|
+
return (r, n) => (y(), D("div", zp, [
|
|
7370
|
+
g("div", Hp, [
|
|
7170
7371
|
Y(Bt, {
|
|
7171
7372
|
class: "action-btn action-btn--export",
|
|
7172
7373
|
title: "Export",
|
|
@@ -7226,10 +7427,10 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7226
7427
|
})
|
|
7227
7428
|
]));
|
|
7228
7429
|
}
|
|
7229
|
-
}),
|
|
7430
|
+
}), Bp = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-75c609c9],[data-v-75c609c9]:before,[data-v-75c609c9]:after,[data-v-75c609c9]::backdrop{--tw-border-style:solid}}}.action-bar[data-v-75c609c9]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-slate-200,oklch(92.9% .013 255.508));background-color:var(--color-white,#fff);padding:calc(var(--spacing,.25rem)*3);justify-content:space-between;align-items:center;display:flex}.action-bar__left[data-v-75c609c9]{align-items:center;gap:calc(var(--spacing,.25rem)*2);flex-wrap:wrap;display:flex}.action-btn[data-v-75c609c9]{align-items:center;gap:calc(var(--spacing,.25rem)*1.5);display:flex}.action-btn__icon[data-v-75c609c9]{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)))}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}', Kp = /* @__PURE__ */ be(Up, [["styles", [Bp]], ["__scopeId", "data-v-75c609c9"]]), Wp = {
|
|
7230
7431
|
key: 0,
|
|
7231
7432
|
class: "resize-overlay"
|
|
7232
|
-
},
|
|
7433
|
+
}, qp = /* @__PURE__ */ _e({
|
|
7233
7434
|
__name: "SplitPane",
|
|
7234
7435
|
props: {
|
|
7235
7436
|
storageKey: { type: String },
|
|
@@ -7278,16 +7479,115 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7278
7479
|
}, [
|
|
7279
7480
|
vt(s.$slots, "right", {}, void 0)
|
|
7280
7481
|
], 4),
|
|
7281
|
-
r.value ? (y(), D("div",
|
|
7482
|
+
r.value ? (y(), D("div", Wp)) : ie("", !0)
|
|
7282
7483
|
], 32));
|
|
7283
7484
|
}
|
|
7284
|
-
}),
|
|
7485
|
+
}), Jp = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-d964db95],[data-v-d964db95]:before,[data-v-d964db95]:after,[data-v-d964db95]::backdrop{--tw-border-style:solid}}}.split-pane[data-v-d964db95]{background-color:var(--color-white,#fff);width:100%;height:100%;position:relative;overflow:hidden}.split-pane__left[data-v-d964db95]{top:calc(var(--spacing,.25rem)*0);bottom:calc(var(--spacing,.25rem)*0);left:calc(var(--spacing,.25rem)*0);z-index:0;border-right-style:var(--tw-border-style);border-right-width:1px;border-color:var(--color-slate-200,oklch(92.9% .013 255.508));background-color:var(--color-white,#fff);position:absolute;overflow:hidden}.split-pane__divider[data-v-d964db95]{top:calc(var(--spacing,.25rem)*0);bottom:calc(var(--spacing,.25rem)*0);z-index:50;width:calc(var(--spacing,.25rem)*4);cursor:col-resize;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));justify-content:center;display:flex;position:absolute}@media(hover:hover){.split-pane__divider[data-v-d964db95]:hover{background-color:#eff6ff80}@supports (color:color-mix(in lab,red,red)){.split-pane__divider[data-v-d964db95]:hover{background-color:color-mix(in oklab,var(--color-blue-50,oklch(97% .014 254.604))50%,transparent)}}}.split-pane__divider[data-v-d964db95]{margin-left:-2px}.divider-handle[data-v-d964db95]{background-color:var(--color-slate-200,oklch(92.9% .013 255.508));width:1px;height:100%;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s))}.split-pane__divider:hover .divider-handle[data-v-d964db95],.split-pane__divider:active .divider-handle[data-v-d964db95]{background-color:var(--color-blue-500,oklch(62.3% .214 259.815));width:2px}.split-pane__right[data-v-d964db95]{top:calc(var(--spacing,.25rem)*0);right:calc(var(--spacing,.25rem)*0);bottom:calc(var(--spacing,.25rem)*0);z-index:0;background-color:var(--color-white,#fff);position:absolute;overflow:hidden}.resize-overlay[data-v-d964db95]{inset:calc(var(--spacing,.25rem)*0);z-index:100;cursor:col-resize;position:fixed}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}', Gp = /* @__PURE__ */ be(qp, [["styles", [Jp]], ["__scopeId", "data-v-d964db95"]]), Yp = { class: "header-content" }, Xp = { class: "modal-title" }, Zp = { class: "modal-body" }, Qp = {
|
|
7486
|
+
key: 0,
|
|
7487
|
+
class: "modal-footer"
|
|
7488
|
+
}, eh = /* @__PURE__ */ _e({
|
|
7489
|
+
__name: "Modal",
|
|
7490
|
+
props: {
|
|
7491
|
+
show: { type: Boolean },
|
|
7492
|
+
title: { type: String },
|
|
7493
|
+
size: { default: "md", type: String },
|
|
7494
|
+
width: { type: String },
|
|
7495
|
+
height: { type: String },
|
|
7496
|
+
disableOutsideClick: { type: Boolean, default: !1 },
|
|
7497
|
+
disableEsc: { type: Boolean, default: !1 },
|
|
7498
|
+
showCloseButton: { type: Boolean, default: !0 },
|
|
7499
|
+
headerClass: { type: String }
|
|
7500
|
+
},
|
|
7501
|
+
emits: ["update:show", "close"],
|
|
7502
|
+
setup(e, { emit: t }) {
|
|
7503
|
+
const o = e, r = t, n = {
|
|
7504
|
+
sm: { width: "400px", height: "auto" },
|
|
7505
|
+
md: { width: "600px", height: "70vh" },
|
|
7506
|
+
lg: { width: "800px", height: "80vh" },
|
|
7507
|
+
xl: { width: "90vw", height: "90vh" },
|
|
7508
|
+
custom: { width: o.width || "auto", height: o.height || "auto" }
|
|
7509
|
+
}, i = oe(() => o.size === "custom" ? o.width : null), a = oe(() => o.size === "custom" ? o.height : null), s = () => {
|
|
7510
|
+
r("update:show", !1), r("close");
|
|
7511
|
+
}, l = () => {
|
|
7512
|
+
o.disableOutsideClick || s();
|
|
7513
|
+
}, f = () => {
|
|
7514
|
+
o.disableEsc || s();
|
|
7515
|
+
}, c = (p) => {
|
|
7516
|
+
p.key === "Escape" && f();
|
|
7517
|
+
}, d = ne("");
|
|
7518
|
+
return Pt(() => {
|
|
7519
|
+
if (document.addEventListener("keydown", c), o.show) {
|
|
7520
|
+
const p = document.querySelector("i18n-devtools-ui");
|
|
7521
|
+
p && (d.value = p.style.overflow || "", p.style.overflow = "hidden");
|
|
7522
|
+
}
|
|
7523
|
+
}), An(() => {
|
|
7524
|
+
document.removeEventListener("keydown", c);
|
|
7525
|
+
const p = document.querySelector("i18n-devtools-ui");
|
|
7526
|
+
p && (p.style.overflow = d.value);
|
|
7527
|
+
}), Te(
|
|
7528
|
+
() => o.show,
|
|
7529
|
+
(p) => {
|
|
7530
|
+
const w = document.querySelector("i18n-devtools-ui");
|
|
7531
|
+
w && (p ? (d.value = w.style.overflow || "", w.style.overflow = "hidden") : w.style.overflow = d.value);
|
|
7532
|
+
}
|
|
7533
|
+
), (p, w) => (y(), me(Kl, { to: "body" }, [
|
|
7534
|
+
Y(mn, { name: "modal" }, {
|
|
7535
|
+
default: ke(() => [
|
|
7536
|
+
e.show ? (y(), D("div", {
|
|
7537
|
+
key: 0,
|
|
7538
|
+
class: "modal-overlay",
|
|
7539
|
+
onClick: ks(l, ["self"]),
|
|
7540
|
+
onKeydown: Hd(f, ["esc"])
|
|
7541
|
+
}, [
|
|
7542
|
+
g("div", {
|
|
7543
|
+
class: "modal-content",
|
|
7544
|
+
style: Et({
|
|
7545
|
+
width: i.value || n[e.size].width,
|
|
7546
|
+
height: a.value || n[e.size].height
|
|
7547
|
+
})
|
|
7548
|
+
}, [
|
|
7549
|
+
g("div", {
|
|
7550
|
+
class: ye(["modal-header", e.headerClass])
|
|
7551
|
+
}, [
|
|
7552
|
+
g("div", Yp, [
|
|
7553
|
+
vt(p.$slots, "header", {}, () => [
|
|
7554
|
+
g("h3", Xp, G(e.title), 1)
|
|
7555
|
+
], !0)
|
|
7556
|
+
]),
|
|
7557
|
+
e.showCloseButton ? (y(), D("button", {
|
|
7558
|
+
key: 0,
|
|
7559
|
+
class: "modal-close-button",
|
|
7560
|
+
"aria-label": "Close modal",
|
|
7561
|
+
onClick: s
|
|
7562
|
+
}, [...w[0] || (w[0] = [
|
|
7563
|
+
g("svg", {
|
|
7564
|
+
class: "close-icon",
|
|
7565
|
+
viewBox: "0 0 24 24"
|
|
7566
|
+
}, [
|
|
7567
|
+
g("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })
|
|
7568
|
+
], -1)
|
|
7569
|
+
])])) : ie("", !0)
|
|
7570
|
+
], 2),
|
|
7571
|
+
g("div", Zp, [
|
|
7572
|
+
vt(p.$slots, "default", {}, void 0, !0)
|
|
7573
|
+
]),
|
|
7574
|
+
p.$slots.footer ? (y(), D("div", Qp, [
|
|
7575
|
+
vt(p.$slots, "footer", {}, void 0, !0)
|
|
7576
|
+
])) : ie("", !0)
|
|
7577
|
+
], 4)
|
|
7578
|
+
], 32)) : ie("", !0)
|
|
7579
|
+
]),
|
|
7580
|
+
_: 3
|
|
7581
|
+
})
|
|
7582
|
+
]));
|
|
7583
|
+
}
|
|
7584
|
+
}), th = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-5cc833a6],[data-v-5cc833a6]:before,[data-v-5cc833a6]:after,[data-v-5cc833a6]::backdrop{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-border-style:solid;--tw-font-weight:initial;--tw-space-x-reverse:0}}}.modal-overlay[data-v-5cc833a6]{inset:calc(var(--spacing,.25rem)*0);z-index:1000;background-color:#00000080;justify-content:center;align-items:center;display:flex;position:fixed}@supports (color:color-mix(in lab,red,red)){.modal-overlay[data-v-5cc833a6]{background-color:color-mix(in oklab,var(--color-black,#000)50%,transparent)}}.modal-overlay[data-v-5cc833a6]{padding:calc(var(--spacing,.25rem)*4);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-content[data-v-5cc833a6]{border-radius:var(--radius-xl,.75rem);background-color:var(--color-white,#fff);--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);flex-direction:column;max-height:calc(100vh - 2rem);display:flex}.modal-header[data-v-5cc833a6]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-gray-100,oklch(96.7% .003 264.542));padding-inline:calc(var(--spacing,.25rem)*6);padding-block:calc(var(--spacing,.25rem)*4);flex-shrink:0;justify-content:space-between;align-items:center;display:flex}.header-content[data-v-5cc833a6]{min-width:calc(var(--spacing,.25rem)*0);flex:1}.modal-title[data-v-5cc833a6]{text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-xl,1.25rem);line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75/1.25)));--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600);color:var(--color-gray-900,oklch(21% .034 264.665));overflow:hidden}.modal-close-button[data-v-5cc833a6]{margin-right:calc(var(--spacing,.25rem)*-2);margin-left:calc(var(--spacing,.25rem)*4);padding:calc(var(--spacing,.25rem)*2);color:var(--color-gray-400,oklch(70.7% .022 261.325));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s))}@media(hover:hover){.modal-close-button[data-v-5cc833a6]:hover{color:var(--color-gray-600,oklch(44.6% .03 256.802))}}.close-icon[data-v-5cc833a6]{height:calc(var(--spacing,.25rem)*6);width:calc(var(--spacing,.25rem)*6);fill:currentColor}.modal-body[data-v-5cc833a6]{padding:calc(var(--spacing,.25rem)*6);scrollbar-width:thin;scrollbar-color:oklch(87.2% .01 258.338) #fff;flex:1;overflow-y:auto}.modal-body[data-v-5cc833a6]::-webkit-scrollbar{width:calc(var(--spacing,.25rem)*2)}.modal-body[data-v-5cc833a6]::-webkit-scrollbar-track{border-radius:var(--radius-sm,.25rem);background-color:var(--color-gray-100,oklch(96.7% .003 264.542))}.modal-body[data-v-5cc833a6]::-webkit-scrollbar-thumb{border-radius:var(--radius-sm,.25rem);background-color:var(--color-gray-300,oklch(87.2% .01 258.338))}@media(hover:hover){.modal-body[data-v-5cc833a6]::-webkit-scrollbar-thumb:hover{background-color:var(--color-gray-400,oklch(70.7% .022 261.325))}}.modal-footer[data-v-5cc833a6]{flex-shrink:0;justify-content:flex-end;align-items:center;display:flex}:where(.modal-footer[data-v-5cc833a6]>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing,.25rem)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing,.25rem)*3)*calc(1 - var(--tw-space-x-reverse)))}.modal-footer[data-v-5cc833a6]{border-top-style:var(--tw-border-style);border-top-width:1px;border-color:var(--color-gray-100,oklch(96.7% .003 264.542));padding-inline:calc(var(--spacing,.25rem)*6);padding-block:calc(var(--spacing,.25rem)*4)}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}', qi = /* @__PURE__ */ be(eh, [["styles", [th]], ["__scopeId", "data-v-5cc833a6"]]), oh = { class: "i18n-view" }, rh = { class: "pane-inner" }, nh = { class: "pane-inner bg-white" }, ih = {
|
|
7285
7585
|
key: 0,
|
|
7286
7586
|
class: "editor-layout"
|
|
7287
|
-
},
|
|
7587
|
+
}, ah = { class: "editor-header" }, sh = { class: "breadcrumbs" }, lh = { class: "breadcrumbs__path" }, ch = { class: "action-bar-wrapper" }, dh = { class: "editor-content-area" }, fh = { class: "editor-scroll-container" }, uh = {
|
|
7288
7588
|
key: 1,
|
|
7289
7589
|
class: "empty-state"
|
|
7290
|
-
},
|
|
7590
|
+
}, ph = { class: "flex justify-end gap-2 mt-4" }, hh = /* @__PURE__ */ _e({
|
|
7291
7591
|
__name: "I18nView",
|
|
7292
7592
|
setup(e) {
|
|
7293
7593
|
const t = ne("disabled"), o = ne(""), r = ne({}), {
|
|
@@ -7301,7 +7601,7 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7301
7601
|
importTranslations: d,
|
|
7302
7602
|
getDefaultLocaleTranslation: p,
|
|
7303
7603
|
saveCurrent: w
|
|
7304
|
-
} = Pr(),
|
|
7604
|
+
} = Pr(), N = ne(null), b = ne({});
|
|
7305
7605
|
Pt(() => {
|
|
7306
7606
|
_();
|
|
7307
7607
|
}), Te(
|
|
@@ -7312,7 +7612,7 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7312
7612
|
{ deep: !0, immediate: !0 }
|
|
7313
7613
|
);
|
|
7314
7614
|
const F = oe(() => a.value), R = () => {
|
|
7315
|
-
|
|
7615
|
+
N.value?.click();
|
|
7316
7616
|
}, z = async () => {
|
|
7317
7617
|
l.value = { ...b.value }, await w();
|
|
7318
7618
|
};
|
|
@@ -7334,7 +7634,7 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7334
7634
|
return;
|
|
7335
7635
|
}
|
|
7336
7636
|
try {
|
|
7337
|
-
const we = n.value.defaultLocale, $e = new
|
|
7637
|
+
const we = n.value.defaultLocale, $e = new Cs({
|
|
7338
7638
|
apiKey: o.value,
|
|
7339
7639
|
driver: t.value,
|
|
7340
7640
|
options: r.value
|
|
@@ -7346,7 +7646,7 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7346
7646
|
$[xe] = await $e.translate(Z, we, Q.replace(".json", ""));
|
|
7347
7647
|
}
|
|
7348
7648
|
}
|
|
7349
|
-
b.value =
|
|
7649
|
+
b.value = $s($), alert("Translated.");
|
|
7350
7650
|
} catch (we) {
|
|
7351
7651
|
console.error(we), alert("Error.");
|
|
7352
7652
|
}
|
|
@@ -7360,15 +7660,15 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7360
7660
|
localStorage.removeItem("translationSettings");
|
|
7361
7661
|
}
|
|
7362
7662
|
};
|
|
7363
|
-
return (I, P) => (y(), D("div",
|
|
7364
|
-
ue(i) ? (y(), me(
|
|
7663
|
+
return (I, P) => (y(), D("div", oh, [
|
|
7664
|
+
ue(i) ? (y(), me(Un, { key: 0 })) : (y(), me(Gp, {
|
|
7365
7665
|
key: 1,
|
|
7366
7666
|
"storage-key": "tab-i18n-locales",
|
|
7367
7667
|
"default-left-width": "280px"
|
|
7368
7668
|
}, {
|
|
7369
7669
|
left: ke(() => [
|
|
7370
|
-
g("div",
|
|
7371
|
-
Y(
|
|
7670
|
+
g("div", rh, [
|
|
7671
|
+
Y(zu, {
|
|
7372
7672
|
locales: F.value,
|
|
7373
7673
|
"selected-file": ue(s),
|
|
7374
7674
|
onFileSelected: ue(f)
|
|
@@ -7376,15 +7676,15 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7376
7676
|
])
|
|
7377
7677
|
]),
|
|
7378
7678
|
right: ke(() => [
|
|
7379
|
-
g("div",
|
|
7380
|
-
ue(s) ? (y(), D("div",
|
|
7381
|
-
g("div",
|
|
7382
|
-
g("div",
|
|
7679
|
+
g("div", nh, [
|
|
7680
|
+
ue(s) ? (y(), D("div", ih, [
|
|
7681
|
+
g("div", ah, [
|
|
7682
|
+
g("div", sh, [
|
|
7383
7683
|
P[5] || (P[5] = g("span", { class: "breadcrumbs__icon" }, "📄", -1)),
|
|
7384
|
-
g("span",
|
|
7684
|
+
g("span", lh, G(ue(s)), 1)
|
|
7385
7685
|
]),
|
|
7386
|
-
g("div",
|
|
7387
|
-
Y(
|
|
7686
|
+
g("div", ch, [
|
|
7687
|
+
Y(Kp, {
|
|
7388
7688
|
"show-translate-button": t.value !== "disabled",
|
|
7389
7689
|
onExport: ue(c),
|
|
7390
7690
|
onImport: R,
|
|
@@ -7394,16 +7694,16 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7394
7694
|
}, null, 8, ["show-translate-button", "onExport"])
|
|
7395
7695
|
])
|
|
7396
7696
|
]),
|
|
7397
|
-
g("div",
|
|
7398
|
-
g("div",
|
|
7399
|
-
Y(
|
|
7697
|
+
g("div", dh, [
|
|
7698
|
+
g("div", fh, [
|
|
7699
|
+
Y(jp, {
|
|
7400
7700
|
modelValue: b.value,
|
|
7401
7701
|
"onUpdate:modelValue": P[0] || (P[0] = ($) => b.value = $),
|
|
7402
7702
|
class: "h-full"
|
|
7403
7703
|
}, null, 8, ["modelValue"])
|
|
7404
7704
|
])
|
|
7405
7705
|
])
|
|
7406
|
-
])) : (y(), D("div",
|
|
7706
|
+
])) : (y(), D("div", uh, [...P[6] || (P[6] = [
|
|
7407
7707
|
g("div", { class: "empty-state__icon" }, " 📁 ", -1),
|
|
7408
7708
|
g("div", { class: "empty-state__title" }, " No File Selected ", -1),
|
|
7409
7709
|
g("div", { class: "empty-state__description" }, " Select a file from the tree to edit ", -1)
|
|
@@ -7420,7 +7720,7 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7420
7720
|
size: "lg"
|
|
7421
7721
|
}, {
|
|
7422
7722
|
default: ke(() => [
|
|
7423
|
-
b.value ? (y(), me(
|
|
7723
|
+
b.value ? (y(), me(pp, {
|
|
7424
7724
|
key: 0,
|
|
7425
7725
|
content: b.value
|
|
7426
7726
|
}, null, 8, ["content"])) : ie("", !0)
|
|
@@ -7436,7 +7736,7 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7436
7736
|
}, {
|
|
7437
7737
|
default: ke(() => [
|
|
7438
7738
|
P[9] || (P[9] = g("p", null, "Are you sure?", -1)),
|
|
7439
|
-
g("div",
|
|
7739
|
+
g("div", ph, [
|
|
7440
7740
|
Y(Bt, {
|
|
7441
7741
|
variant: "danger",
|
|
7442
7742
|
onClick: P[2] || (P[2] = ($) => M.value = !1)
|
|
@@ -7461,7 +7761,7 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7461
7761
|
}, 8, ["show"])) : ie("", !0),
|
|
7462
7762
|
ut(g("input", {
|
|
7463
7763
|
ref_key: "file",
|
|
7464
|
-
ref:
|
|
7764
|
+
ref: N,
|
|
7465
7765
|
type: "file",
|
|
7466
7766
|
accept: ".json",
|
|
7467
7767
|
onChange: P[4] || (P[4] = //@ts-ignore
|
|
@@ -7471,46 +7771,46 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7471
7771
|
])
|
|
7472
7772
|
]));
|
|
7473
7773
|
}
|
|
7474
|
-
}),
|
|
7774
|
+
}), gh = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-8f020ee0],[data-v-8f020ee0]:before,[data-v-8f020ee0]:after,[data-v-8f020ee0]::backdrop{--tw-border-style:solid;--tw-font-weight:initial}}}.i18n-view[data-v-8f020ee0]{width:100%;height:100%;position:relative;overflow:hidden}.pane-inner[data-v-8f020ee0],.editor-layout[data-v-8f020ee0]{flex-direction:column;width:100%;height:100%;display:flex;overflow:hidden}.editor-header[data-v-8f020ee0]{z-index:10;background-color:var(--color-white,#fff);flex-shrink:0}.breadcrumbs[data-v-8f020ee0]{align-items:center;gap:calc(var(--spacing,.25rem)*2);border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-slate-200,oklch(92.9% .013 255.508));background-color:var(--color-slate-50,oklch(98.4% .003 247.858));padding-inline:calc(var(--spacing,.25rem)*4);padding-block:calc(var(--spacing,.25rem)*2);font-family:var(--font-mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1/.75)));color:var(--color-slate-600,oklch(44.6% .043 257.281));display:flex}.breadcrumbs__icon[data-v-8f020ee0]{font-size:var(--text-base,1rem);line-height:var(--tw-leading,var(--text-base--line-height, 1.5 ))}.breadcrumbs__path[data-v-8f020ee0]{text-overflow:ellipsis;white-space:nowrap;--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);color:var(--color-slate-700,oklch(37.2% .044 257.287));overflow:hidden}.action-bar-wrapper[data-v-8f020ee0]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-slate-200,oklch(92.9% .013 255.508))}.editor-content-area[data-v-8f020ee0]{flex:1;position:relative;overflow:hidden}.editor-scroll-container[data-v-8f020ee0]{inset:calc(var(--spacing,.25rem)*0);position:absolute;overflow:hidden}.empty-state[data-v-8f020ee0],.welcome-card[data-v-8f020ee0]{height:100%;padding:calc(var(--spacing,.25rem)*8);text-align:center;color:var(--color-slate-500,oklch(55.4% .046 257.417));flex-direction:column;justify-content:center;align-items:center;display:flex}.empty-state__icon[data-v-8f020ee0],.welcome-card__icon[data-v-8f020ee0]{margin-bottom:calc(var(--spacing,.25rem)*4);font-size:var(--text-6xl,3.75rem);line-height:var(--tw-leading,var(--text-6xl--line-height,1));opacity:.5}.empty-state__title[data-v-8f020ee0],.welcome-card__title[data-v-8f020ee0]{margin-bottom:calc(var(--spacing,.25rem)*2);font-size:var(--text-xl,1.25rem);line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75/1.25)));--tw-font-weight:var(--font-weight-bold,700);font-weight:var(--font-weight-bold,700);color:var(--color-slate-700,oklch(37.2% .044 257.287))}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}', vh = /* @__PURE__ */ be(hh, [["styles", [gh]], ["__scopeId", "data-v-8f020ee0"]]), wh = { class: "settings-card" }, mh = { class: "settings-card__header" }, bh = { class: "settings-card__icon" }, yh = { key: 0 }, _h = { class: "settings-card__title" }, xh = { class: "settings-card__content" }, kh = /* @__PURE__ */ _e({
|
|
7475
7775
|
__name: "SettingsCard",
|
|
7476
7776
|
props: {
|
|
7477
7777
|
title: { type: String },
|
|
7478
7778
|
icon: { type: String }
|
|
7479
7779
|
},
|
|
7480
7780
|
setup(e) {
|
|
7481
|
-
return (t, o) => (y(), D("div",
|
|
7482
|
-
g("div",
|
|
7483
|
-
g("span",
|
|
7781
|
+
return (t, o) => (y(), D("div", wh, [
|
|
7782
|
+
g("div", mh, [
|
|
7783
|
+
g("span", bh, [
|
|
7484
7784
|
vt(t.$slots, "icon", {}, () => [
|
|
7485
|
-
e.icon ? (y(), D("span",
|
|
7785
|
+
e.icon ? (y(), D("span", yh, G(e.icon), 1)) : ie("", !0)
|
|
7486
7786
|
])
|
|
7487
7787
|
]),
|
|
7488
|
-
g("h3",
|
|
7788
|
+
g("h3", _h, G(e.title), 1)
|
|
7489
7789
|
]),
|
|
7490
|
-
g("div",
|
|
7790
|
+
g("div", xh, [
|
|
7491
7791
|
vt(t.$slots, "default", {}, void 0)
|
|
7492
7792
|
])
|
|
7493
7793
|
]));
|
|
7494
7794
|
}
|
|
7495
|
-
}),
|
|
7795
|
+
}), Eh = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-502b3f8f],[data-v-502b3f8f]:before,[data-v-502b3f8f]:after,[data-v-502b3f8f]::backdrop{--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-font-weight:initial;--tw-space-y-reverse:0}}}.settings-card[data-v-502b3f8f]{border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-slate-200,oklch(92.9% .013 255.508));background-color:var(--color-white,#fff);padding:calc(var(--spacing,.25rem)*4);--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.2s;transition-duration:.2s}@media(hover:hover){.settings-card[data-v-502b3f8f]:hover{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}.settings-card__header[data-v-502b3f8f]{margin-bottom:calc(var(--spacing,.25rem)*4);border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-slate-100,oklch(96.8% .007 247.896));padding-bottom:calc(var(--spacing,.25rem)*3);align-items:center;display:flex}.settings-card__icon[data-v-502b3f8f]{margin-right:calc(var(--spacing,.25rem)*2);font-size:var(--text-lg,1.125rem);line-height:var(--tw-leading,var(--text-lg--line-height,calc(1.75/1.125)));align-items:center;display:flex}.settings-card__title[data-v-502b3f8f]{font-size:var(--text-lg,1.125rem);line-height:var(--tw-leading,var(--text-lg--line-height,calc(1.75/1.125)));--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600);color:var(--color-slate-800,oklch(27.9% .041 260.031))}:where(.settings-card__content[data-v-502b3f8f]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing,.25rem)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing,.25rem)*4)*calc(1 - var(--tw-space-y-reverse)))}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}', Nh = /* @__PURE__ */ be(kh, [["styles", [Eh]], ["__scopeId", "data-v-502b3f8f"]]), Oh = { class: "translation-controls" }, Sh = { class: "translation-controls__content" }, $h = { class: "control-group" }, Ch = { class: "control-select" }, Th = ["value"], Dh = {
|
|
7496
7796
|
key: 0,
|
|
7497
7797
|
class: "control-group"
|
|
7498
|
-
},
|
|
7798
|
+
}, Vh = {
|
|
7499
7799
|
key: 0,
|
|
7500
7800
|
class: "driver-options"
|
|
7501
|
-
},
|
|
7801
|
+
}, Ah = {
|
|
7502
7802
|
key: 0,
|
|
7503
7803
|
class: "control-group"
|
|
7504
|
-
},
|
|
7804
|
+
}, Mh = {
|
|
7505
7805
|
key: 1,
|
|
7506
7806
|
class: "control-group"
|
|
7507
|
-
},
|
|
7807
|
+
}, Ih = { class: "control-select" }, Ph = {
|
|
7508
7808
|
key: 2,
|
|
7509
7809
|
class: "control-group"
|
|
7510
|
-
},
|
|
7810
|
+
}, jh = { class: "control-select" }, Lh = ["value"], Fh = {
|
|
7511
7811
|
key: 3,
|
|
7512
7812
|
class: "control-group"
|
|
7513
|
-
},
|
|
7813
|
+
}, Rh = { class: "control-select" }, zh = /* @__PURE__ */ _e({
|
|
7514
7814
|
__name: "TranslationControls",
|
|
7515
7815
|
props: {
|
|
7516
7816
|
driver: { type: String },
|
|
@@ -7520,19 +7820,33 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7520
7820
|
emits: ["update:driver", "update:apiToken", "update:options"],
|
|
7521
7821
|
setup(e, { emit: t }) {
|
|
7522
7822
|
const o = e, r = t, n = ne(o.driver), i = ne(o.apiToken), a = ne({ ...o.options });
|
|
7523
|
-
Te(
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7529
|
-
|
|
7823
|
+
Te(
|
|
7824
|
+
() => o.driver,
|
|
7825
|
+
async (f) => {
|
|
7826
|
+
f !== n.value && (await ft(), n.value = f);
|
|
7827
|
+
}
|
|
7828
|
+
), Te(
|
|
7829
|
+
() => o.apiToken,
|
|
7830
|
+
async (f) => {
|
|
7831
|
+
f !== i.value && (await ft(), i.value = f);
|
|
7832
|
+
}
|
|
7833
|
+
), Te(
|
|
7834
|
+
() => o.options,
|
|
7835
|
+
async (f) => {
|
|
7836
|
+
JSON.stringify(f) !== JSON.stringify(a.value) && (await ft(), a.value = { ...f });
|
|
7837
|
+
},
|
|
7838
|
+
{ deep: !0 }
|
|
7839
|
+
), Te(n, async (f) => {
|
|
7530
7840
|
f !== o.driver && (await ft(), r("update:driver", f));
|
|
7531
7841
|
}), Te(i, async (f) => {
|
|
7532
7842
|
f !== o.apiToken && (await ft(), r("update:apiToken", f));
|
|
7533
|
-
}), Te(
|
|
7534
|
-
|
|
7535
|
-
|
|
7843
|
+
}), Te(
|
|
7844
|
+
a,
|
|
7845
|
+
async (f) => {
|
|
7846
|
+
JSON.stringify(f) !== JSON.stringify(o.options) && (await ft(), r("update:options", { ...f }));
|
|
7847
|
+
},
|
|
7848
|
+
{ deep: !0 }
|
|
7849
|
+
);
|
|
7536
7850
|
const s = [
|
|
7537
7851
|
{ label: "Disabled", value: "disabled" },
|
|
7538
7852
|
{ label: "OpenAI", value: "openai" },
|
|
@@ -7623,14 +7937,14 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7623
7937
|
"gpt-3.5-turbo-1106",
|
|
7624
7938
|
"gpt-3.5-turbo-0125"
|
|
7625
7939
|
];
|
|
7626
|
-
return (f, c) => (y(), D("div",
|
|
7627
|
-
g("div",
|
|
7628
|
-
g("div",
|
|
7940
|
+
return (f, c) => (y(), D("div", Oh, [
|
|
7941
|
+
g("div", Sh, [
|
|
7942
|
+
g("div", $h, [
|
|
7629
7943
|
c[8] || (c[8] = g("label", { class: "control-label" }, [
|
|
7630
7944
|
g("span", { class: "control-icon" }, "🔧"),
|
|
7631
7945
|
qe(" Translation Service ")
|
|
7632
7946
|
], -1)),
|
|
7633
|
-
g("div",
|
|
7947
|
+
g("div", Ch, [
|
|
7634
7948
|
ut(g("select", {
|
|
7635
7949
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => n.value = d),
|
|
7636
7950
|
class: "select-input"
|
|
@@ -7643,7 +7957,7 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7643
7957
|
(y(), D(re, null, Fe(s, (d) => g("option", {
|
|
7644
7958
|
key: d.value,
|
|
7645
7959
|
value: d.value
|
|
7646
|
-
}, G(d.label), 9,
|
|
7960
|
+
}, G(d.label), 9, Th)), 64))
|
|
7647
7961
|
], 512), [
|
|
7648
7962
|
[or, n.value]
|
|
7649
7963
|
]),
|
|
@@ -7652,7 +7966,7 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7652
7966
|
]),
|
|
7653
7967
|
Y(mn, { name: "fade-slide" }, {
|
|
7654
7968
|
default: ke(() => [
|
|
7655
|
-
n.value !== "disabled" ? (y(), D("div",
|
|
7969
|
+
n.value !== "disabled" ? (y(), D("div", Dh, [
|
|
7656
7970
|
c[9] || (c[9] = g("label", { class: "control-label" }, [
|
|
7657
7971
|
g("span", { class: "control-icon" }, "🔑"),
|
|
7658
7972
|
qe(" API Authorization ")
|
|
@@ -7671,8 +7985,8 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7671
7985
|
}),
|
|
7672
7986
|
Y(mn, { name: "fade-slide" }, {
|
|
7673
7987
|
default: ke(() => [
|
|
7674
|
-
n.value !== "disabled" ? (y(), D("div",
|
|
7675
|
-
n.value === "yandex-cloud" ? (y(), D("div",
|
|
7988
|
+
n.value !== "disabled" ? (y(), D("div", Vh, [
|
|
7989
|
+
n.value === "yandex-cloud" ? (y(), D("div", Ah, [
|
|
7676
7990
|
c[10] || (c[10] = g("label", { class: "control-label" }, [
|
|
7677
7991
|
g("span", { class: "control-icon" }, "📁"),
|
|
7678
7992
|
qe(" Cloud Folder ID ")
|
|
@@ -7686,12 +8000,12 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7686
8000
|
[Nr, a.value.folderId]
|
|
7687
8001
|
])
|
|
7688
8002
|
])) : ie("", !0),
|
|
7689
|
-
n.value === "deepl" ? (y(), D("div",
|
|
8003
|
+
n.value === "deepl" ? (y(), D("div", Mh, [
|
|
7690
8004
|
c[13] || (c[13] = g("label", { class: "control-label" }, [
|
|
7691
8005
|
g("span", { class: "control-icon" }, "🎚️"),
|
|
7692
8006
|
qe(" Tone Formality ")
|
|
7693
8007
|
], -1)),
|
|
7694
|
-
g("div",
|
|
8008
|
+
g("div", Ih, [
|
|
7695
8009
|
ut(g("select", {
|
|
7696
8010
|
"onUpdate:modelValue": c[3] || (c[3] = (d) => a.value.formality = d),
|
|
7697
8011
|
class: "select-input"
|
|
@@ -7705,12 +8019,12 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7705
8019
|
c[12] || (c[12] = g("div", { class: "select-arrow" }, " ▼ ", -1))
|
|
7706
8020
|
])
|
|
7707
8021
|
])) : ie("", !0),
|
|
7708
|
-
n.value === "openai" ? (y(), D("div",
|
|
8022
|
+
n.value === "openai" ? (y(), D("div", Ph, [
|
|
7709
8023
|
c[15] || (c[15] = g("label", { class: "control-label" }, [
|
|
7710
8024
|
g("span", { class: "control-icon" }, "🤖"),
|
|
7711
8025
|
qe(" AI Model Selection ")
|
|
7712
8026
|
], -1)),
|
|
7713
|
-
g("div",
|
|
8027
|
+
g("div", jh, [
|
|
7714
8028
|
ut(g("select", {
|
|
7715
8029
|
"onUpdate:modelValue": c[4] || (c[4] = (d) => a.value.model = d),
|
|
7716
8030
|
class: "select-input"
|
|
@@ -7718,19 +8032,19 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7718
8032
|
(y(), D(re, null, Fe(l, (d) => g("option", {
|
|
7719
8033
|
key: d,
|
|
7720
8034
|
value: d
|
|
7721
|
-
}, G(d), 9,
|
|
8035
|
+
}, G(d), 9, Lh)), 64))
|
|
7722
8036
|
], 512), [
|
|
7723
8037
|
[or, a.value.model]
|
|
7724
8038
|
]),
|
|
7725
8039
|
c[14] || (c[14] = g("div", { class: "select-arrow" }, " ▼ ", -1))
|
|
7726
8040
|
])
|
|
7727
8041
|
])) : ie("", !0),
|
|
7728
|
-
n.value === "deepseek" ? (y(), D("div",
|
|
8042
|
+
n.value === "deepseek" ? (y(), D("div", Fh, [
|
|
7729
8043
|
c[18] || (c[18] = g("label", { class: "control-label" }, [
|
|
7730
8044
|
g("span", { class: "control-icon" }, "🧠"),
|
|
7731
8045
|
qe(" Reasoning Model ")
|
|
7732
8046
|
], -1)),
|
|
7733
|
-
g("div",
|
|
8047
|
+
g("div", Rh, [
|
|
7734
8048
|
ut(g("select", {
|
|
7735
8049
|
"onUpdate:modelValue": c[5] || (c[5] = (d) => a.value.model = d),
|
|
7736
8050
|
class: "select-input"
|
|
@@ -7750,7 +8064,7 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7750
8064
|
])
|
|
7751
8065
|
]));
|
|
7752
8066
|
}
|
|
7753
|
-
}),
|
|
8067
|
+
}), Hh = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-946f5883],[data-v-946f5883]:before,[data-v-946f5883]:after,[data-v-946f5883]::backdrop{--tw-space-y-reverse:0;--tw-font-weight:initial;--tw-border-style:solid;--tw-duration:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}:where(.translation-controls[data-v-946f5883]>:not(:last-child)),:where(.translation-controls__content[data-v-946f5883]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing,.25rem)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing,.25rem)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.control-group[data-v-946f5883]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing,.25rem)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing,.25rem)*2)*calc(1 - var(--tw-space-y-reverse)))}.control-label[data-v-946f5883]{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);color:var(--color-slate-600,oklch(44.6% .043 257.281));align-items:center;display:flex}.control-icon[data-v-946f5883]{margin-right:calc(var(--spacing,.25rem)*2)}.control-select[data-v-946f5883]{border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-slate-200,oklch(92.9% .013 255.508));transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.2s;transition-duration:.2s;position:relative}@media(hover:hover){.control-select[data-v-946f5883]:hover{border-color:var(--color-blue-400,oklch(70.7% .165 254.624))}}.select-input[data-v-946f5883]{appearance:none;border-radius:var(--radius-lg,.5rem);width:100%;padding-inline:calc(var(--spacing,.25rem)*3);padding-block:calc(var(--spacing,.25rem)*2);padding-right:calc(var(--spacing,.25rem)*8);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));color:var(--color-slate-700,oklch(37.2% .044 257.287));--tw-outline-style:none;background-color:#0000;outline-style:none}@media(forced-colors:active){.select-input[data-v-946f5883]{outline-offset:2px;outline:2px solid #0000}}.select-arrow[data-v-946f5883]{pointer-events:none;top:50%;right:calc(var(--spacing,.25rem)*2);--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1/.75)));color:var(--color-slate-400,oklch(70.4% .04 256.788));position:absolute}.styled-input[data-v-946f5883]{border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-slate-200,oklch(92.9% .013 255.508));width:100%;padding-inline:calc(var(--spacing,.25rem)*3);padding-block:calc(var(--spacing,.25rem)*2);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)))}.styled-input[data-v-946f5883]::placeholder{color:var(--color-slate-400,oklch(70.4% .04 256.788))}.styled-input[data-v-946f5883]{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.styled-input[data-v-946f5883]{outline-offset:2px;outline:2px solid #0000}}.styled-input[data-v-946f5883]{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.2s;transition-duration:.2s}.styled-input[data-v-946f5883]:focus{border-color:var(--color-blue-400,oklch(70.7% .165 254.624));--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-ring-color:var(--color-blue-200,oklch(88.2% .059 254.128))}.driver-options[data-v-946f5883]{margin-left:calc(var(--spacing,.25rem)*2)}:where(.driver-options[data-v-946f5883]>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing,.25rem)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing,.25rem)*3)*calc(1 - var(--tw-space-y-reverse)))}.driver-options[data-v-946f5883]{border-left-style:var(--tw-border-style);border-left-width:2px;border-color:var(--color-blue-100,oklch(93.2% .032 255.585));padding-left:calc(var(--spacing,.25rem)*4)}.fade-slide-enter-active[data-v-946f5883],.fade-slide-leave-active[data-v-946f5883]{transition:all .3s}.fade-slide-enter-from[data-v-946f5883],.fade-slide-leave-to[data-v-946f5883]{opacity:0;transform:translate(10px)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}', Uh = /* @__PURE__ */ be(zh, [["styles", [Hh]], ["__scopeId", "data-v-946f5883"]]), Bh = { class: "settings-view" }, Kh = { class: "space-y-6" }, Ji = "translationSettings", Wh = /* @__PURE__ */ _e({
|
|
7754
8068
|
__name: "SettingsView",
|
|
7755
8069
|
setup(e) {
|
|
7756
8070
|
const t = ne("disabled"), o = ne(""), r = ne({
|
|
@@ -7767,22 +8081,26 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7767
8081
|
const { driver: i, token: a, options: s } = JSON.parse(n);
|
|
7768
8082
|
t.value = i, o.value = a, r.value = s || {};
|
|
7769
8083
|
}
|
|
7770
|
-
}), Te(
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
8084
|
+
}), Te(
|
|
8085
|
+
[t, o, r],
|
|
8086
|
+
async () => {
|
|
8087
|
+
await ft();
|
|
8088
|
+
const n = {
|
|
8089
|
+
driver: t.value,
|
|
8090
|
+
token: o.value,
|
|
8091
|
+
options: r.value
|
|
8092
|
+
};
|
|
8093
|
+
localStorage.setItem(Ji, JSON.stringify(n));
|
|
8094
|
+
},
|
|
8095
|
+
{ deep: !0 }
|
|
8096
|
+
), (n, i) => (y(), D("div", Bh, [
|
|
8097
|
+
g("div", Kh, [
|
|
8098
|
+
Y(Nh, {
|
|
7781
8099
|
title: "Auto-Translation Engine",
|
|
7782
8100
|
icon: "🌐"
|
|
7783
8101
|
}, {
|
|
7784
8102
|
default: ke(() => [
|
|
7785
|
-
Y(
|
|
8103
|
+
Y(Uh, {
|
|
7786
8104
|
driver: t.value,
|
|
7787
8105
|
"onUpdate:driver": i[0] || (i[0] = (a) => t.value = a),
|
|
7788
8106
|
"api-token": o.value,
|
|
@@ -7796,318 +8114,7 @@ const uf = { class: "pagination" }, pf = ["disabled"], hf = ["onClick"], gf = {
|
|
|
7796
8114
|
])
|
|
7797
8115
|
]));
|
|
7798
8116
|
}
|
|
7799
|
-
}),
|
|
7800
|
-
__name: "ConfigCard",
|
|
7801
|
-
props: {
|
|
7802
|
-
title: { type: String },
|
|
7803
|
-
icon: { type: String }
|
|
7804
|
-
},
|
|
7805
|
-
setup(e) {
|
|
7806
|
-
return (t, o) => (y(), D("div", Ip, [
|
|
7807
|
-
g("div", Pp, [
|
|
7808
|
-
g("span", jp, [
|
|
7809
|
-
vt(t.$slots, "icon", {}, () => [
|
|
7810
|
-
e.icon ? (y(), D("span", Lp, G(e.icon), 1)) : ie("", !0)
|
|
7811
|
-
])
|
|
7812
|
-
]),
|
|
7813
|
-
g("h3", Fp, G(e.title), 1)
|
|
7814
|
-
]),
|
|
7815
|
-
g("div", Rp, [
|
|
7816
|
-
vt(t.$slots, "default", {}, void 0)
|
|
7817
|
-
])
|
|
7818
|
-
]));
|
|
7819
|
-
}
|
|
7820
|
-
}), Hp = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-3db26d7b],[data-v-3db26d7b]:before,[data-v-3db26d7b]:after,[data-v-3db26d7b]::backdrop{--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-font-weight:initial}}}.config-card[data-v-3db26d7b]{border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-slate-200,oklch(92.9% .013 255.508));background-color:var(--color-white,#fff);--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);overflow:hidden}.config-card__header[data-v-3db26d7b]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-slate-100,oklch(96.8% .007 247.896));background-color:var(--color-slate-50,oklch(98.4% .003 247.858));padding:calc(var(--spacing,.25rem)*4);padding-bottom:calc(var(--spacing,.25rem)*3);align-items:center;display:flex}.config-card__icon[data-v-3db26d7b]{margin-right:calc(var(--spacing,.25rem)*2);font-size:var(--text-lg,1.125rem);line-height:var(--tw-leading,var(--text-lg--line-height,calc(1.75/1.125)));align-items:center;display:flex}.config-card__title[data-v-3db26d7b]{font-size:var(--text-lg,1.125rem);line-height:var(--tw-leading,var(--text-lg--line-height,calc(1.75/1.125)));--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600);color:var(--color-slate-800,oklch(27.9% .041 260.031))}.config-card__content[data-v-3db26d7b]{padding:calc(var(--spacing,.25rem)*4)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-font-weight{syntax:"*";inherits:false}', Qr = /* @__PURE__ */ be(zp, [["styles", [Hp]], ["__scopeId", "data-v-3db26d7b"]]), Up = { class: "status-indicator" }, Bp = /* @__PURE__ */ _e({
|
|
7821
|
-
__name: "StatusIndicator",
|
|
7822
|
-
props: {
|
|
7823
|
-
status: { type: String },
|
|
7824
|
-
label: { type: String },
|
|
7825
|
-
size: { default: "md", type: String }
|
|
7826
|
-
},
|
|
7827
|
-
setup(e) {
|
|
7828
|
-
const t = e, o = oe(() => {
|
|
7829
|
-
const n = "status-indicator__dot", i = `status-indicator__dot--${t.size}`;
|
|
7830
|
-
switch (t.status) {
|
|
7831
|
-
case "active":
|
|
7832
|
-
case "enabled":
|
|
7833
|
-
case "success":
|
|
7834
|
-
return `${n} ${i} status-indicator__dot--success`;
|
|
7835
|
-
case "inactive":
|
|
7836
|
-
case "disabled":
|
|
7837
|
-
return `${n} ${i} status-indicator__dot--disabled`;
|
|
7838
|
-
case "warning":
|
|
7839
|
-
return `${n} ${i} status-indicator__dot--warning`;
|
|
7840
|
-
case "error":
|
|
7841
|
-
return `${n} ${i} status-indicator__dot--error`;
|
|
7842
|
-
case "info":
|
|
7843
|
-
return `${n} ${i} status-indicator__dot--info`;
|
|
7844
|
-
default:
|
|
7845
|
-
return `${n} ${i} status-indicator__dot--default`;
|
|
7846
|
-
}
|
|
7847
|
-
}), r = oe(() => {
|
|
7848
|
-
switch (t.status) {
|
|
7849
|
-
case "active":
|
|
7850
|
-
case "enabled":
|
|
7851
|
-
case "success":
|
|
7852
|
-
return "text-green-700";
|
|
7853
|
-
case "inactive":
|
|
7854
|
-
case "disabled":
|
|
7855
|
-
return "text-red-700";
|
|
7856
|
-
case "warning":
|
|
7857
|
-
return "text-yellow-700";
|
|
7858
|
-
case "error":
|
|
7859
|
-
return "text-red-700";
|
|
7860
|
-
case "info":
|
|
7861
|
-
return "text-blue-700";
|
|
7862
|
-
default:
|
|
7863
|
-
return "text-slate-700";
|
|
7864
|
-
}
|
|
7865
|
-
});
|
|
7866
|
-
return (n, i) => (y(), D("div", Up, [
|
|
7867
|
-
g("div", {
|
|
7868
|
-
class: ye(["status-indicator__dot", o.value])
|
|
7869
|
-
}, null, 2),
|
|
7870
|
-
g("span", {
|
|
7871
|
-
class: ye(["status-indicator__text", r.value])
|
|
7872
|
-
}, G(e.label), 3)
|
|
7873
|
-
]));
|
|
7874
|
-
}
|
|
7875
|
-
}), Kp = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-ceddd4fb],[data-v-ceddd4fb]:before,[data-v-ceddd4fb]:after,[data-v-ceddd4fb]::backdrop{--tw-duration:initial;--tw-font-weight:initial}}}.status-indicator[data-v-ceddd4fb]{align-items:center;gap:calc(var(--spacing,.25rem)*2);display:flex}.status-indicator__dot[data-v-ceddd4fb]{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.2s;border-radius:3.40282e38px;transition-duration:.2s}.status-indicator__dot--sm[data-v-ceddd4fb]{height:calc(var(--spacing,.25rem)*2);width:calc(var(--spacing,.25rem)*2)}.status-indicator__dot--md[data-v-ceddd4fb]{height:calc(var(--spacing,.25rem)*3);width:calc(var(--spacing,.25rem)*3)}.status-indicator__dot--lg[data-v-ceddd4fb]{height:calc(var(--spacing,.25rem)*4);width:calc(var(--spacing,.25rem)*4)}.status-indicator__dot--success[data-v-ceddd4fb]{background-color:var(--color-green-500,oklch(72.3% .219 149.579));box-shadow:0 0 0 2px #22c55e33}.status-indicator__dot--disabled[data-v-ceddd4fb]{background-color:var(--color-red-500,oklch(63.7% .237 25.331));box-shadow:0 0 0 2px #ef444433}.status-indicator__dot--warning[data-v-ceddd4fb]{background-color:var(--color-yellow-500,oklch(79.5% .184 86.047));box-shadow:0 0 0 2px #eab30833}.status-indicator__dot--error[data-v-ceddd4fb]{background-color:var(--color-red-500,oklch(63.7% .237 25.331));box-shadow:0 0 0 2px #ef444433}.status-indicator__dot--info[data-v-ceddd4fb]{background-color:var(--color-blue-500,oklch(62.3% .214 259.815));box-shadow:0 0 0 2px #3b82f633}.status-indicator__dot--default[data-v-ceddd4fb]{background-color:var(--color-slate-500,oklch(55.4% .046 257.417));box-shadow:0 0 0 2px #64748b33}.status-indicator__text[data-v-ceddd4fb]{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500)}@property --tw-duration{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}', bn = /* @__PURE__ */ be(Bp, [["styles", [Kp]], ["__scopeId", "data-v-ceddd4fb"]]), Wp = ".icon[data-v-6fc289e2]{width:1em;height:1em;display:inline-block;vertical-align:middle}", qp = {}, Jp = {
|
|
7876
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7877
|
-
viewBox: "0 0 24 24",
|
|
7878
|
-
fill: "none",
|
|
7879
|
-
stroke: "currentColor",
|
|
7880
|
-
"stroke-width": "2",
|
|
7881
|
-
"stroke-linecap": "round",
|
|
7882
|
-
"stroke-linejoin": "round",
|
|
7883
|
-
class: "icon"
|
|
7884
|
-
};
|
|
7885
|
-
function Gp(e, t) {
|
|
7886
|
-
return y(), D("svg", Jp, [...t[0] || (t[0] = [
|
|
7887
|
-
g("circle", {
|
|
7888
|
-
cx: "12",
|
|
7889
|
-
cy: "12",
|
|
7890
|
-
r: "10"
|
|
7891
|
-
}, null, -1),
|
|
7892
|
-
g("line", {
|
|
7893
|
-
x1: "2",
|
|
7894
|
-
y1: "12",
|
|
7895
|
-
x2: "22",
|
|
7896
|
-
y2: "12"
|
|
7897
|
-
}, null, -1),
|
|
7898
|
-
g("path", { d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" }, null, -1)
|
|
7899
|
-
])]);
|
|
7900
|
-
}
|
|
7901
|
-
const Un = /* @__PURE__ */ be(qp, [["render", Gp], ["styles", [Wp]], ["__scopeId", "data-v-6fc289e2"]]), Yp = { class: "locale-table-container" }, Xp = { class: "locale-table-wrapper" }, Zp = { class: "locale-table" }, Qp = { class: "locale-table__header" }, eh = { class: "header-content" }, th = { class: "header-icon" }, oh = { key: 1 }, rh = { class: "header-text" }, nh = { class: "locale-table__body" }, ih = { class: "locale-table__cell" }, ah = { class: "locale-code" }, sh = { class: "locale-code__text" }, lh = { class: "locale-table__cell" }, ch = { class: "locale-name" }, dh = { class: "locale-table__cell" }, fh = { class: "locale-iso" }, uh = { class: "locale-table__cell" }, ph = { class: "direction-indicator" }, hh = { class: "locale-table__cell" }, gh = { class: "base-url" }, vh = { class: "locale-table__cell" }, wh = /* @__PURE__ */ _e({
|
|
7902
|
-
__name: "LocaleTable",
|
|
7903
|
-
props: {
|
|
7904
|
-
locales: { type: Array }
|
|
7905
|
-
},
|
|
7906
|
-
setup(e) {
|
|
7907
|
-
const t = [
|
|
7908
|
-
{ key: "code", label: "Code", icon: "🏷️" },
|
|
7909
|
-
{ key: "name", label: "Display Name", icon: "📝" },
|
|
7910
|
-
{ key: "iso", label: "ISO Code", iconComponent: Un },
|
|
7911
|
-
{ key: "dir", label: "Direction", icon: "↔️" },
|
|
7912
|
-
{ key: "baseUrl", label: "Base URL", icon: "🔗" },
|
|
7913
|
-
{ key: "status", label: "Status", icon: "⚡" }
|
|
7914
|
-
];
|
|
7915
|
-
return (o, r) => (y(), D("div", Yp, [
|
|
7916
|
-
g("div", Xp, [
|
|
7917
|
-
g("table", Zp, [
|
|
7918
|
-
g("thead", Qp, [
|
|
7919
|
-
g("tr", null, [
|
|
7920
|
-
(y(), D(re, null, Fe(t, (n) => g("th", {
|
|
7921
|
-
key: n.key,
|
|
7922
|
-
class: "locale-table__header-cell"
|
|
7923
|
-
}, [
|
|
7924
|
-
g("div", eh, [
|
|
7925
|
-
g("span", th, [
|
|
7926
|
-
n.iconComponent ? (y(), me(Ba(n.iconComponent), { key: 0 })) : (y(), D("span", oh, G(n.icon), 1))
|
|
7927
|
-
]),
|
|
7928
|
-
g("span", rh, G(n.label), 1)
|
|
7929
|
-
])
|
|
7930
|
-
])), 64))
|
|
7931
|
-
])
|
|
7932
|
-
]),
|
|
7933
|
-
g("tbody", nh, [
|
|
7934
|
-
(y(!0), D(re, null, Fe(e.locales, (n) => (y(), D("tr", {
|
|
7935
|
-
key: n.code,
|
|
7936
|
-
class: "locale-table__row"
|
|
7937
|
-
}, [
|
|
7938
|
-
g("td", ih, [
|
|
7939
|
-
g("div", ah, [
|
|
7940
|
-
g("span", sh, G(n.code), 1)
|
|
7941
|
-
])
|
|
7942
|
-
]),
|
|
7943
|
-
g("td", lh, [
|
|
7944
|
-
g("span", ch, G(n.displayName || "—"), 1)
|
|
7945
|
-
]),
|
|
7946
|
-
g("td", dh, [
|
|
7947
|
-
g("span", fh, G(n.iso || "—"), 1)
|
|
7948
|
-
]),
|
|
7949
|
-
g("td", uh, [
|
|
7950
|
-
g("div", ph, [
|
|
7951
|
-
g("span", {
|
|
7952
|
-
class: ye(["direction-badge", `direction-badge--${n.dir || "ltr"}`])
|
|
7953
|
-
}, G((n.dir || "ltr").toUpperCase()), 3)
|
|
7954
|
-
])
|
|
7955
|
-
]),
|
|
7956
|
-
g("td", hh, [
|
|
7957
|
-
g("span", gh, G(n.baseUrl || "—"), 1)
|
|
7958
|
-
]),
|
|
7959
|
-
g("td", vh, [
|
|
7960
|
-
Y(bn, {
|
|
7961
|
-
status: n.disabled ? "disabled" : "active",
|
|
7962
|
-
label: n.disabled ? "Disabled" : "Active",
|
|
7963
|
-
size: "sm"
|
|
7964
|
-
}, null, 8, ["status", "label"])
|
|
7965
|
-
])
|
|
7966
|
-
]))), 128))
|
|
7967
|
-
])
|
|
7968
|
-
])
|
|
7969
|
-
])
|
|
7970
|
-
]));
|
|
7971
|
-
}
|
|
7972
|
-
}), mh = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-95aa1a18],[data-v-95aa1a18]:before,[data-v-95aa1a18]:after,[data-v-95aa1a18]::backdrop{--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-duration:initial}}}.locale-table-container[data-v-95aa1a18]{border-radius:var(--radius-xl,.75rem);border-style:var(--tw-border-style);background-color:var(--color-white,#fff);--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-width:1px;overflow:hidden}.locale-table-wrapper[data-v-95aa1a18]{overflow-x:auto}.locale-table[data-v-95aa1a18]{border-collapse:collapse;width:100%}.locale-table__header[data-v-95aa1a18]{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops));--tw-gradient-from:var(--color-slate-50,oklch(98.4% .003 247.858));--tw-gradient-to:var(--color-blue-50,oklch(97% .014 254.604));--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.locale-table__header-cell[data-v-95aa1a18]{padding-inline:calc(var(--spacing,.25rem)*4);padding-block:calc(var(--spacing,.25rem)*4);text-align:left}.header-content[data-v-95aa1a18]{align-items:center;gap:calc(var(--spacing,.25rem)*2);display:flex}.header-icon[data-v-95aa1a18]{font-size:var(--text-lg,1.125rem);line-height:var(--tw-leading,var(--text-lg--line-height,calc(1.75/1.125)));align-items:center;display:flex}.header-text[data-v-95aa1a18]{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600);color:var(--color-slate-700,oklch(37.2% .044 257.287))}.locale-table__row[data-v-95aa1a18]{border-top-style:var(--tw-border-style);border-top-width:1px;border-color:var(--color-slate-100,oklch(96.8% .007 247.896));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.2s;transition-duration:.2s}@media(hover:hover){.locale-table__row[data-v-95aa1a18]:hover{background-color:var(--color-slate-50,oklch(98.4% .003 247.858))}}.locale-table__cell[data-v-95aa1a18]{padding-inline:calc(var(--spacing,.25rem)*4);padding-block:calc(var(--spacing,.25rem)*4);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)))}.locale-code[data-v-95aa1a18]{align-items:center;display:inline-flex}.locale-code__text[data-v-95aa1a18]{border-radius:var(--radius-lg,.5rem);border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-blue-200,oklch(88.2% .059 254.128));background-color:var(--color-blue-50,oklch(97% .014 254.604));padding-inline:calc(var(--spacing,.25rem)*3);padding-block:calc(var(--spacing,.25rem)*1);font-family:var(--font-mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));color:var(--color-blue-700,oklch(48.8% .243 264.376))}.locale-name[data-v-95aa1a18]{--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);color:var(--color-slate-700,oklch(37.2% .044 257.287))}.locale-iso[data-v-95aa1a18]{border-radius:var(--radius-sm,.25rem);background-color:var(--color-slate-100,oklch(96.8% .007 247.896));padding-inline:calc(var(--spacing,.25rem)*2);padding-block:calc(var(--spacing,.25rem)*1);font-family:var(--font-mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1/.75)));color:var(--color-slate-600,oklch(44.6% .043 257.281))}.direction-indicator[data-v-95aa1a18]{align-items:center;display:flex}.direction-badge[data-v-95aa1a18]{padding-inline:calc(var(--spacing,.25rem)*2);padding-block:calc(var(--spacing,.25rem)*1);font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1/.75)));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);border-radius:3.40282e38px}.direction-badge--ltr[data-v-95aa1a18]{background-color:var(--color-purple-100,oklch(94.6% .033 307.174));color:var(--color-purple-800,oklch(43.8% .218 303.724))}.direction-badge--rtl[data-v-95aa1a18]{background-color:var(--color-orange-100,oklch(95.4% .038 75.164));color:var(--color-orange-800,oklch(47% .157 37.304))}.base-url[data-v-95aa1a18]{font-family:var(--font-mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:var(--text-xs,.75rem);line-height:var(--tw-leading,var(--text-xs--line-height,calc(1/.75)));color:var(--color-slate-600,oklch(44.6% .043 257.281))}.locale-table__row[data-v-95aa1a18]{animation:.3s ease-out slideInLeft-95aa1a18}@keyframes slideInLeft-95aa1a18{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}.locale-table__row[data-v-95aa1a18]:first-child{animation-delay:.1s}.locale-table__row[data-v-95aa1a18]:nth-child(2){animation-delay:.2s}.locale-table__row[data-v-95aa1a18]:nth-child(3){animation-delay:.3s}.locale-table__row[data-v-95aa1a18]:nth-child(4){animation-delay:.4s}.locale-table__row[data-v-95aa1a18]:nth-child(5){animation-delay:.5s}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}', bh = /* @__PURE__ */ be(wh, [["styles", [mh]], ["__scopeId", "data-v-95aa1a18"]]), yh = ".icon[data-v-65e4a862]{width:1em;height:1em;display:inline-block;vertical-align:middle}", _h = {}, xh = {
|
|
7973
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7974
|
-
viewBox: "0 0 24 24",
|
|
7975
|
-
fill: "none",
|
|
7976
|
-
stroke: "currentColor",
|
|
7977
|
-
"stroke-width": "2",
|
|
7978
|
-
"stroke-linecap": "round",
|
|
7979
|
-
"stroke-linejoin": "round",
|
|
7980
|
-
class: "icon"
|
|
7981
|
-
};
|
|
7982
|
-
function kh(e, t) {
|
|
7983
|
-
return y(), D("svg", xh, [...t[0] || (t[0] = [
|
|
7984
|
-
g("circle", {
|
|
7985
|
-
cx: "12",
|
|
7986
|
-
cy: "12",
|
|
7987
|
-
r: "3"
|
|
7988
|
-
}, null, -1),
|
|
7989
|
-
g("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" }, null, -1)
|
|
7990
|
-
])]);
|
|
7991
|
-
}
|
|
7992
|
-
const $s = /* @__PURE__ */ be(_h, [["render", kh], ["styles", [yh]], ["__scopeId", "data-v-65e4a862"]]), Eh = ".icon[data-v-4c3ea1ca]{width:1em;height:1em;display:inline-block;vertical-align:middle}", Nh = {}, Oh = {
|
|
7993
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7994
|
-
viewBox: "0 0 24 24",
|
|
7995
|
-
fill: "none",
|
|
7996
|
-
stroke: "currentColor",
|
|
7997
|
-
"stroke-width": "2",
|
|
7998
|
-
"stroke-linecap": "round",
|
|
7999
|
-
"stroke-linejoin": "round",
|
|
8000
|
-
class: "icon"
|
|
8001
|
-
};
|
|
8002
|
-
function Sh(e, t) {
|
|
8003
|
-
return y(), D("svg", Oh, [...t[0] || (t[0] = [
|
|
8004
|
-
g("rect", {
|
|
8005
|
-
x: "3",
|
|
8006
|
-
y: "3",
|
|
8007
|
-
width: "18",
|
|
8008
|
-
height: "18",
|
|
8009
|
-
rx: "2",
|
|
8010
|
-
ry: "2"
|
|
8011
|
-
}, null, -1),
|
|
8012
|
-
g("line", {
|
|
8013
|
-
x1: "9",
|
|
8014
|
-
y1: "3",
|
|
8015
|
-
x2: "9",
|
|
8016
|
-
y2: "21"
|
|
8017
|
-
}, null, -1),
|
|
8018
|
-
g("line", {
|
|
8019
|
-
x1: "3",
|
|
8020
|
-
y1: "9",
|
|
8021
|
-
x2: "21",
|
|
8022
|
-
y2: "9"
|
|
8023
|
-
}, null, -1)
|
|
8024
|
-
])]);
|
|
8025
|
-
}
|
|
8026
|
-
const Cs = /* @__PURE__ */ be(Nh, [["render", Sh], ["styles", [Eh]], ["__scopeId", "data-v-4c3ea1ca"]]), $h = { class: "config-view" }, Ch = {
|
|
8027
|
-
key: 1,
|
|
8028
|
-
class: "space-y-6"
|
|
8029
|
-
}, Th = { class: "settings-grid" }, Dh = { class: "config-row" }, Vh = { class: "config-value" }, Ah = { class: "config-row" }, Mh = { class: "config-value capitalize" }, Ih = { class: "config-row" }, Ph = { class: "config-value" }, jh = { class: "config-row" }, Lh = { class: "settings-grid" }, Fh = { class: "config-row" }, Rh = { class: "config-row" }, zh = { class: "config-value font-mono text-sm" }, Hh = { class: "config-row" }, Uh = { class: "config-value font-mono text-sm text-blue-600" }, Bh = { class: "config-row" }, Kh = { class: "config-value font-mono text-sm" }, Wh = /* @__PURE__ */ _e({
|
|
8030
|
-
__name: "ConfigView",
|
|
8031
|
-
setup(e) {
|
|
8032
|
-
const {
|
|
8033
|
-
isLoading: t,
|
|
8034
|
-
configs: o
|
|
8035
|
-
} = Pr();
|
|
8036
|
-
return (r, n) => (y(), D("div", $h, [
|
|
8037
|
-
ue(t) ? (y(), me(Hn, { key: 0 })) : (y(), D("div", Ch, [
|
|
8038
|
-
Y(Qr, { title: "General Configuration" }, {
|
|
8039
|
-
icon: ke(() => [
|
|
8040
|
-
Y($s)
|
|
8041
|
-
]),
|
|
8042
|
-
default: ke(() => [
|
|
8043
|
-
g("div", Th, [
|
|
8044
|
-
g("div", Dh, [
|
|
8045
|
-
n[0] || (n[0] = g("span", { class: "config-label" }, "Default Locale", -1)),
|
|
8046
|
-
g("span", Vh, G(ue(o).defaultLocale || "—"), 1)
|
|
8047
|
-
]),
|
|
8048
|
-
g("div", Ah, [
|
|
8049
|
-
n[1] || (n[1] = g("span", { class: "config-label" }, "Routing Strategy", -1)),
|
|
8050
|
-
g("span", Mh, G(ue(o).strategy || "—"), 1)
|
|
8051
|
-
]),
|
|
8052
|
-
g("div", Ih, [
|
|
8053
|
-
n[2] || (n[2] = g("span", { class: "config-label" }, "Fallback Locale", -1)),
|
|
8054
|
-
g("span", Ph, G(ue(o).fallbackLocale || "—"), 1)
|
|
8055
|
-
]),
|
|
8056
|
-
g("div", jh, [
|
|
8057
|
-
n[3] || (n[3] = g("span", { class: "config-label" }, "Debug Mode", -1)),
|
|
8058
|
-
Y(bn, {
|
|
8059
|
-
status: ue(o).debug ? "enabled" : "disabled",
|
|
8060
|
-
label: ue(o).debug ? "Active" : "Inactive"
|
|
8061
|
-
}, null, 8, ["status", "label"])
|
|
8062
|
-
])
|
|
8063
|
-
])
|
|
8064
|
-
]),
|
|
8065
|
-
_: 1
|
|
8066
|
-
}),
|
|
8067
|
-
Y(Qr, { title: "Configured Locales" }, {
|
|
8068
|
-
icon: ke(() => [
|
|
8069
|
-
Y(Un)
|
|
8070
|
-
]),
|
|
8071
|
-
default: ke(() => [
|
|
8072
|
-
Y(bh, {
|
|
8073
|
-
locales: ue(o).locales || []
|
|
8074
|
-
}, null, 8, ["locales"])
|
|
8075
|
-
]),
|
|
8076
|
-
_: 1
|
|
8077
|
-
}),
|
|
8078
|
-
Y(Qr, { title: "Advanced Configuration" }, {
|
|
8079
|
-
icon: ke(() => [
|
|
8080
|
-
Y(Cs)
|
|
8081
|
-
]),
|
|
8082
|
-
default: ke(() => [
|
|
8083
|
-
g("div", Lh, [
|
|
8084
|
-
g("div", Fh, [
|
|
8085
|
-
n[4] || (n[4] = g("span", { class: "config-label" }, "Auto Language Detection", -1)),
|
|
8086
|
-
Y(bn, {
|
|
8087
|
-
status: ue(o).autoDetectLanguage ? "enabled" : "disabled",
|
|
8088
|
-
label: ue(o).autoDetectLanguage ? "Enabled" : "Disabled"
|
|
8089
|
-
}, null, 8, ["status", "label"])
|
|
8090
|
-
]),
|
|
8091
|
-
g("div", Rh, [
|
|
8092
|
-
n[5] || (n[5] = g("span", { class: "config-label" }, "Translation Directory", -1)),
|
|
8093
|
-
g("span", zh, G(ue(o).translationDir || "—"), 1)
|
|
8094
|
-
]),
|
|
8095
|
-
g("div", Hh, [
|
|
8096
|
-
n[6] || (n[6] = g("span", { class: "config-label" }, "API Base URL", -1)),
|
|
8097
|
-
g("span", Uh, G(ue(o).apiBaseUrl || "—"), 1)
|
|
8098
|
-
]),
|
|
8099
|
-
g("div", Bh, [
|
|
8100
|
-
n[7] || (n[7] = g("span", { class: "config-label" }, "Locale Cookie", -1)),
|
|
8101
|
-
g("span", Kh, G(ue(o).localeCookie || "—"), 1)
|
|
8102
|
-
])
|
|
8103
|
-
])
|
|
8104
|
-
]),
|
|
8105
|
-
_: 1
|
|
8106
|
-
})
|
|
8107
|
-
]))
|
|
8108
|
-
]));
|
|
8109
|
-
}
|
|
8110
|
-
}), qh = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){[data-v-0a343554],[data-v-0a343554]:before,[data-v-0a343554]:after,[data-v-0a343554]::backdrop{--tw-font-weight:initial}}}.config-view[data-v-0a343554]{height:100%;padding:calc(var(--spacing,.25rem)*4);overflow:auto}.settings-grid[data-v-0a343554]{gap:calc(var(--spacing,.25rem)*3);display:grid}.config-row[data-v-0a343554]{border-radius:var(--radius-lg,.5rem);background-color:var(--color-gray-50,oklch(98.5% .002 247.839));padding-inline:calc(var(--spacing,.25rem)*3);padding-block:calc(var(--spacing,.25rem)*2);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));justify-content:space-between;align-items:center;display:flex}@media(hover:hover){.config-row[data-v-0a343554]:hover{background-color:var(--color-gray-100,oklch(96.7% .003 264.542))}}.config-label[data-v-0a343554]{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);color:var(--color-gray-600,oklch(44.6% .03 256.802))}.config-value[data-v-0a343554]{font-size:var(--text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25/.875)));color:var(--color-gray-800,oklch(27.8% .033 256.848))}@property --tw-font-weight{syntax:"*";inherits:false}', Jh = /* @__PURE__ */ be(Wh, [["styles", [qh]], ["__scopeId", "data-v-0a343554"]]), Gh = { class: "i18n-devtools" }, Yh = { class: "header" }, Xh = { class: "content-area" }, Zh = { class: "view-container" }, Qh = /* @__PURE__ */ _e({
|
|
8117
|
+
}), qh = ".settings-view[data-v-8ffb2606]{height:100%;padding:calc(var(--spacing,.25rem)*4);overflow:auto}", Jh = /* @__PURE__ */ be(Wh, [["styles", [qh]], ["__scopeId", "data-v-8ffb2606"]]), Gh = { class: "i18n-devtools" }, Yh = { class: "header" }, Xh = { class: "content-area" }, Zh = { class: "view-container" }, Qh = /* @__PURE__ */ _e({
|
|
8111
8118
|
__name: "App.ce",
|
|
8112
8119
|
props: {
|
|
8113
8120
|
bridge: {
|
|
@@ -8116,12 +8123,12 @@ const Cs = /* @__PURE__ */ be(Nh, [["render", Sh], ["styles", [Eh]], ["__scopeId
|
|
|
8116
8123
|
}
|
|
8117
8124
|
},
|
|
8118
8125
|
setup(e) {
|
|
8119
|
-
const t = e, o =
|
|
8120
|
-
Xa(
|
|
8126
|
+
const t = e, o = kf();
|
|
8127
|
+
Xa(Ss, o);
|
|
8121
8128
|
const r = ne("i18n"), n = [
|
|
8122
|
-
{ label: "i18n", value: "i18n", icon:
|
|
8123
|
-
{ label: "Settings", value: "settings", icon:
|
|
8124
|
-
{ label: "Server Info", value: "config", icon:
|
|
8129
|
+
{ label: "i18n", value: "i18n", icon: Hn },
|
|
8130
|
+
{ label: "Settings", value: "settings", icon: Os },
|
|
8131
|
+
{ label: "Server Info", value: "config", icon: Ns }
|
|
8125
8132
|
], i = async (s) => {
|
|
8126
8133
|
o.bridge.value || (console.log("[i18n-devtools] Bridge received, initializing..."), o.setBridge(s), await o.init());
|
|
8127
8134
|
};
|
|
@@ -8136,9 +8143,9 @@ const Cs = /* @__PURE__ */ be(Nh, [["render", Sh], ["styles", [Eh]], ["__scopeId
|
|
|
8136
8143
|
return Pt(() => {
|
|
8137
8144
|
t.bridge ? i(t.bridge) : console.log("[i18n-devtools] Waiting for bridge...");
|
|
8138
8145
|
}), (s, l) => (y(), D("div", Gh, [
|
|
8139
|
-
a.value ? (y(), me(
|
|
8146
|
+
a.value ? (y(), me(Un, { key: 0 })) : (y(), D(re, { key: 1 }, [
|
|
8140
8147
|
g("div", Yh, [
|
|
8141
|
-
Y(
|
|
8148
|
+
Y(xf, {
|
|
8142
8149
|
modelValue: r.value,
|
|
8143
8150
|
"onUpdate:modelValue": l[0] || (l[0] = (f) => r.value = f),
|
|
8144
8151
|
tabs: n
|
|
@@ -8146,29 +8153,26 @@ const Cs = /* @__PURE__ */ be(Nh, [["render", Sh], ["styles", [Eh]], ["__scopeId
|
|
|
8146
8153
|
]),
|
|
8147
8154
|
g("div", Xh, [
|
|
8148
8155
|
g("div", Zh, [
|
|
8149
|
-
r.value === "i18n" ? (y(), me(
|
|
8150
|
-
r.value === "settings" ? (y(), me(
|
|
8151
|
-
r.value === "config" ? (y(), me(
|
|
8156
|
+
r.value === "i18n" ? (y(), me(vh, { key: 0 })) : ie("", !0),
|
|
8157
|
+
r.value === "settings" ? (y(), me(Jh, { key: 1 })) : ie("", !0),
|
|
8158
|
+
r.value === "config" ? (y(), me(Nu, { key: 2 })) : ie("", !0)
|
|
8152
8159
|
])
|
|
8153
8160
|
])
|
|
8154
8161
|
], 64))
|
|
8155
8162
|
]));
|
|
8156
8163
|
}
|
|
8157
|
-
}), eg = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-600:oklch(64.6% .222 41.116);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-yellow-800:oklch(47.6% .114 61.907);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-teal-600:oklch(60% .118 184.704);--color-cyan-600:oklch(60.9% .126 221.723);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-indigo-600:oklch(51.1% .262 276.966);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-600:oklch(55.8% .288 302.321);--color-pink-600:oklch(59.2% .249 .584);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-1\\/2{top:50%}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-20{z-index:20}.z-50{z-index:50}.z-\\[100\\]{z-index:100}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.my-1{margin-block:calc(var(--spacing)*1)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-4{margin-top:calc(var(--spacing)*4)}.-mr-2{margin-right:calc(var(--spacing)*-2)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-6{height:calc(var(--spacing)*6)}.h-full{height:100%}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\\[38px\\]{min-height:38px}.w-2{width:calc(var(--spacing)*2)}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-\\[1px\\]{width:1px}.w-full{width:100%}.min-w-\\[60px\\]{min-width:60px}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-col-resize{cursor:col-resize}.cursor-pointer{cursor:pointer}.appearance-none{appearance:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-blue-100{border-color:var(--color-blue-100)}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-500{border-color:var(--color-blue-500)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-green-200{border-color:var(--color-green-200)}.border-red-200{border-color:var(--color-red-200)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-200{border-color:var(--color-slate-200)}.border-transparent{border-color:#0000}.border-l-yellow-500{border-left-color:var(--color-yellow-500)}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-orange-100{background-color:var(--color-orange-100)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-600{background-color:var(--color-red-600)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-slate-50{--tw-gradient-from:var(--color-slate-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-4{padding-block:calc(var(--spacing)*4)}.pt-4{padding-top:calc(var(--spacing)*4)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-all{word-break:break-all}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-cyan-600{color:var(--color-cyan-600)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-green-800{color:var(--color-green-800)}.text-indigo-600{color:var(--color-indigo-600)}.text-orange-600{color:var(--color-orange-600)}.text-pink-600{color:var(--color-pink-600)}.text-purple-600{color:var(--color-purple-600)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-slate-400{color:var(--color-slate-400)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-teal-600{color:var(--color-teal-600)}.text-white{color:var(--color-white)}.text-yellow-600{color:var(--color-yellow-600)}.text-yellow-700{color:var(--color-yellow-700)}.text-yellow-800{color:var(--color-yellow-800)}.capitalize{text-transform:capitalize}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-slate-400::placeholder{color:var(--color-slate-400)}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ring-inset{--tw-ring-inset:inset}@media(hover:hover){.hover\\:bg-blue-50\\/50:hover{background-color:#eff6ff80}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-blue-50\\/50:hover{background-color:color-mix(in oklab,var(--color-blue-50)50%,transparent)}}.hover\\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:bg-slate-300:hover{background-color:var(--color-slate-300)}.hover\\:text-blue-600:hover{color:var(--color-blue-600)}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-slate-800:hover{color:var(--color-slate-800)}}.focus\\:border-blue-400:focus{border-color:var(--color-blue-400)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-blue-200:focus{--tw-ring-color:var(--color-blue-200)}.focus\\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.disabled\\:opacity-50:disabled{opacity:.5}}.i18n-devtools{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}:host{width:100%;height:100vh;display:block;overflow:hidden}.i18n-devtools{background-color:var(--color-white);width:100%;height:100%;color:var(--color-slate-700);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;flex-direction:column;display:flex;overflow:hidden}.header{z-index:20;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-slate-200);background-color:var(--color-white);flex-shrink:0;position:relative}.content-area{flex:1;width:100%;height:100%;position:relative;overflow:hidden}.view-container{inset:calc(var(--spacing)*0);width:100%;height:100%;position:absolute;overflow:hidden}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}', tg = /* @__PURE__ */ be(Qh, [["styles", [eg]]]);
|
|
8164
|
+
}), eg = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-600:oklch(64.6% .222 41.116);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-yellow-800:oklch(47.6% .114 61.907);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-teal-600:oklch(60% .118 184.704);--color-cyan-600:oklch(60.9% .126 221.723);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-indigo-600:oklch(51.1% .262 276.966);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-600:oklch(55.8% .288 302.321);--color-pink-600:oklch(59.2% .249 .584);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-1\\/2{top:50%}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-20{z-index:20}.z-50{z-index:50}.z-\\[100\\]{z-index:100}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.my-1{margin-block:calc(var(--spacing)*1)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-4{margin-top:calc(var(--spacing)*4)}.-mr-2{margin-right:calc(var(--spacing)*-2)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-6{height:calc(var(--spacing)*6)}.h-full{height:100%}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\\[38px\\]{min-height:38px}.w-2{width:calc(var(--spacing)*2)}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-\\[1px\\]{width:1px}.w-full{width:100%}.min-w-\\[60px\\]{min-width:60px}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-col-resize{cursor:col-resize}.cursor-pointer{cursor:pointer}.resize{resize:both}.appearance-none{appearance:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-x-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-blue-100{border-color:var(--color-blue-100)}.border-blue-200{border-color:var(--color-blue-200)}.border-blue-500{border-color:var(--color-blue-500)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-green-200{border-color:var(--color-green-200)}.border-red-200{border-color:var(--color-red-200)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-200{border-color:var(--color-slate-200)}.border-transparent{border-color:#0000}.border-l-yellow-500{border-left-color:var(--color-yellow-500)}.bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-orange-100{background-color:var(--color-orange-100)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-600{background-color:var(--color-red-600)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-slate-50{--tw-gradient-from:var(--color-slate-50);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-4{padding-block:calc(var(--spacing)*4)}.pt-4{padding-top:calc(var(--spacing)*4)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-all{word-break:break-all}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-cyan-600{color:var(--color-cyan-600)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-green-800{color:var(--color-green-800)}.text-indigo-600{color:var(--color-indigo-600)}.text-orange-600{color:var(--color-orange-600)}.text-pink-600{color:var(--color-pink-600)}.text-purple-600{color:var(--color-purple-600)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-slate-400{color:var(--color-slate-400)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-teal-600{color:var(--color-teal-600)}.text-white{color:var(--color-white)}.text-yellow-600{color:var(--color-yellow-600)}.text-yellow-700{color:var(--color-yellow-700)}.text-yellow-800{color:var(--color-yellow-800)}.capitalize{text-transform:capitalize}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-slate-400::placeholder{color:var(--color-slate-400)}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ring-inset{--tw-ring-inset:inset}@media(hover:hover){.hover\\:bg-blue-50\\/50:hover{background-color:#eff6ff80}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-blue-50\\/50:hover{background-color:color-mix(in oklab,var(--color-blue-50)50%,transparent)}}.hover\\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\\:bg-slate-300:hover{background-color:var(--color-slate-300)}.hover\\:text-blue-600:hover{color:var(--color-blue-600)}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-slate-800:hover{color:var(--color-slate-800)}}.focus\\:border-blue-400:focus{border-color:var(--color-blue-400)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-blue-200:focus{--tw-ring-color:var(--color-blue-200)}.focus\\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.disabled\\:opacity-50:disabled{opacity:.5}}.i18n-devtools{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}:host{width:100%;height:100vh;display:block;overflow:hidden}.i18n-devtools{background-color:var(--color-white);width:100%;height:100%;color:var(--color-slate-700);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;flex-direction:column;display:flex;overflow:hidden}.header{z-index:20;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--color-slate-200);background-color:var(--color-white);flex-shrink:0;position:relative}.content-area{flex:1;width:100%;height:100%;position:relative;overflow:hidden}.view-container{inset:calc(var(--spacing)*0);width:100%;height:100%;position:absolute;overflow:hidden}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}', tg = /* @__PURE__ */ be(Qh, [["styles", [eg]]]);
|
|
8158
8165
|
function ig(e) {
|
|
8159
8166
|
const { adapter: t, locales: o = [], defaultLocale: r = "en", translationDir: n = "src/locales" } = e, i = () => {
|
|
8160
|
-
const a = {}, s = t.
|
|
8161
|
-
for (const [
|
|
8162
|
-
|
|
8163
|
-
const l = t.getRouteCache();
|
|
8164
|
-
for (const [f, c] of Object.entries(l)) {
|
|
8165
|
-
if (!c || typeof c != "object" || Array.isArray(c) || Object.keys(c).length === 0)
|
|
8167
|
+
const a = {}, s = t.getRouteCache();
|
|
8168
|
+
for (const [l, f] of Object.entries(s)) {
|
|
8169
|
+
if (!f || typeof f != "object" || Array.isArray(f) || Object.keys(f).length === 0)
|
|
8166
8170
|
continue;
|
|
8167
|
-
const
|
|
8168
|
-
if (
|
|
8171
|
+
const c = l.indexOf(":");
|
|
8172
|
+
if (c === -1)
|
|
8169
8173
|
continue;
|
|
8170
|
-
const
|
|
8171
|
-
a[
|
|
8174
|
+
const d = l.substring(0, c), p = l.substring(c + 1);
|
|
8175
|
+
p === "index" ? a[`${d}.json`] = f : a[`pages/${p}/${d}.json`] = f;
|
|
8172
8176
|
}
|
|
8173
8177
|
return a;
|
|
8174
8178
|
};
|