@nar-bus/ui-kit 1.26.0 → 1.27.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/i18n/en.json.d.ts +61 -0
- package/dist/i18n/resources.d.ts +122 -0
- package/dist/i18n/resources.d.ts.map +1 -1
- package/dist/i18n/resources.js +1 -1
- package/dist/i18n/tr.json.d.ts +61 -0
- package/dist/index.js +336 -334
- package/dist/resources-Cs2Fu4e6.js +86 -0
- package/dist/templates/ListPageLayout.d.ts +10 -1
- package/dist/templates/ListPageLayout.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/resources-BmxyGni4.js +0 -84
package/dist/index.js
CHANGED
|
@@ -12,8 +12,8 @@ import Tn from "@tiptap/starter-kit";
|
|
|
12
12
|
import zn from "@tiptap/extension-link";
|
|
13
13
|
import Rn from "@tiptap/extension-placeholder";
|
|
14
14
|
import pt from "i18next";
|
|
15
|
-
import { e as Vr, t as Fr } from "./resources-
|
|
16
|
-
import { r as Xu, u as Uu } from "./resources-
|
|
15
|
+
import { e as Vr, t as Fr } from "./resources-Cs2Fu4e6.js";
|
|
16
|
+
import { r as Xu, u as Uu } from "./resources-Cs2Fu4e6.js";
|
|
17
17
|
const ka = fr(null), wa = "lena-theme", Aa = "lena-density", ar = "lena-motion", Hr = "dark", Wr = "comfortable";
|
|
18
18
|
function Ln() {
|
|
19
19
|
if (typeof window > "u") return Hr;
|
|
@@ -1033,9 +1033,9 @@ function ss(e, t, r = {}) {
|
|
|
1033
1033
|
], g = [];
|
|
1034
1034
|
for (let x = 0; x < s; x++)
|
|
1035
1035
|
g.push({ op: "equal", text: n[x], oldLine: x + 1, newLine: x + 1 });
|
|
1036
|
-
for (const [x, b,
|
|
1037
|
-
const N = s + b,
|
|
1038
|
-
x === "equal" ? g.push({ op: x, text: n[N], oldLine: N + 1, newLine:
|
|
1036
|
+
for (const [x, b, k] of m) {
|
|
1037
|
+
const N = s + b, w = s + k;
|
|
1038
|
+
x === "equal" ? g.push({ op: x, text: n[N], oldLine: N + 1, newLine: w + 1 }) : x === "delete" ? g.push({ op: x, text: n[N], oldLine: N + 1 }) : g.push({ op: x, text: o[w], newLine: w + 1 });
|
|
1039
1039
|
}
|
|
1040
1040
|
for (let x = i, b = l; x < n.length; x++, b++)
|
|
1041
1041
|
g.push({ op: "equal", text: n[x], oldLine: x + 1, newLine: b + 1 });
|
|
@@ -1076,8 +1076,8 @@ function ls(e, t, r = {}) {
|
|
|
1076
1076
|
const m = new Map(c.map((x, b) => [x, b])), g = new Map(u.map((x, b) => [x, b]));
|
|
1077
1077
|
for (const [x, b] of u.entries()) {
|
|
1078
1078
|
if (o.length >= n) return;
|
|
1079
|
-
const
|
|
1080
|
-
|
|
1079
|
+
const k = m.get(b);
|
|
1080
|
+
k === void 0 ? o.push({ path: `${d}/${x}`, kind: "added", after: l[x] }) : s(i[k], l[x], `${d}/${x}`);
|
|
1081
1081
|
}
|
|
1082
1082
|
for (const [x, b] of c.entries()) {
|
|
1083
1083
|
if (o.length >= n) return;
|
|
@@ -1929,7 +1929,7 @@ const Ji = [
|
|
|
1929
1929
|
disabled: c,
|
|
1930
1930
|
...u
|
|
1931
1931
|
}, f) => {
|
|
1932
|
-
const { t: m } = le(), [g, x] = W(!1), b = e === "password",
|
|
1932
|
+
const { t: m } = le(), [g, x] = W(!1), b = e === "password", k = e === "search", N = e === "number", w = b && g ? "text" : e, A = k ? ir : r, E = i === "sm" ? 14 : 16, D = d !== void 0 && d !== "", L = u["aria-invalid"] ?? (t ? !0 : void 0);
|
|
1933
1933
|
return /* @__PURE__ */ v(
|
|
1934
1934
|
"div",
|
|
1935
1935
|
{
|
|
@@ -1937,12 +1937,12 @@ const Ji = [
|
|
|
1937
1937
|
"data-invalid": L === !0 || L === "true" ? "" : void 0,
|
|
1938
1938
|
"data-disabled": c ? "" : void 0,
|
|
1939
1939
|
children: [
|
|
1940
|
-
|
|
1940
|
+
A && /* @__PURE__ */ a("span", { className: "input-console-icon absolute top-1/2 left-2 -translate-y-1/2 text-[var(--color-text-muted)]", children: /* @__PURE__ */ a(A, { size: E }) }),
|
|
1941
1941
|
/* @__PURE__ */ a(
|
|
1942
1942
|
"input",
|
|
1943
1943
|
{
|
|
1944
1944
|
ref: f,
|
|
1945
|
-
type:
|
|
1945
|
+
type: w,
|
|
1946
1946
|
value: d,
|
|
1947
1947
|
disabled: c,
|
|
1948
1948
|
"aria-invalid": L,
|
|
@@ -1950,7 +1950,7 @@ const Ji = [
|
|
|
1950
1950
|
"input-console-field",
|
|
1951
1951
|
N && "tabular-nums",
|
|
1952
1952
|
Ki[i],
|
|
1953
|
-
|
|
1953
|
+
A && "pl-8",
|
|
1954
1954
|
(n || b || o && D) && "pr-8",
|
|
1955
1955
|
l
|
|
1956
1956
|
),
|
|
@@ -1996,12 +1996,12 @@ function Gi({
|
|
|
1996
1996
|
onChange: o,
|
|
1997
1997
|
panelRef: s
|
|
1998
1998
|
}) {
|
|
1999
|
-
const [i, l] = W(!1), [d, c] = W(""), [u, f] = W(-1), m = K(null), g = K(null), x = K({ buffer: "", stamp: 0 }), b = Ee(),
|
|
1999
|
+
const [i, l] = W(!1), [d, c] = W(""), [u, f] = W(-1), m = K(null), g = K(null), x = K({ buffer: "", stamp: 0 }), b = Ee(), k = (h) => n && h ? e.filter((y) => Na(y.label, h)) : e, N = k(d), w = (h) => `${b}-option-${h}`, A = (h) => h.findIndex((y) => !y.disabled), E = (h, y) => {
|
|
2000
2000
|
var T;
|
|
2001
2001
|
for (let I = h + y; I >= 0 && I < N.length; I += y)
|
|
2002
2002
|
if (!((T = N[I]) != null && T.disabled)) return I;
|
|
2003
2003
|
return h >= 0 && h < N.length ? h : -1;
|
|
2004
|
-
}, D = () =>
|
|
2004
|
+
}, D = () => A(N), L = () => E(N.length, -1);
|
|
2005
2005
|
te(() => {
|
|
2006
2006
|
const h = (y) => {
|
|
2007
2007
|
const T = y.target;
|
|
@@ -2080,8 +2080,8 @@ function Gi({
|
|
|
2080
2080
|
z(h.key);
|
|
2081
2081
|
}
|
|
2082
2082
|
}, Z = (h) => {
|
|
2083
|
-
c(h), f(
|
|
2084
|
-
}, J = (h) => X(h, !1), ee = i && u >= 0 && N[u] ?
|
|
2083
|
+
c(h), f(A(k(h)));
|
|
2084
|
+
}, J = (h) => X(h, !1), ee = i && u >= 0 && N[u] ? w(u) : void 0;
|
|
2085
2085
|
return {
|
|
2086
2086
|
open: i,
|
|
2087
2087
|
search: d,
|
|
@@ -2089,7 +2089,7 @@ function Gi({
|
|
|
2089
2089
|
setActiveIndex: f,
|
|
2090
2090
|
filtered: N,
|
|
2091
2091
|
listboxId: b,
|
|
2092
|
-
optionId:
|
|
2092
|
+
optionId: w,
|
|
2093
2093
|
activeId: ee,
|
|
2094
2094
|
containerRef: m,
|
|
2095
2095
|
triggerRef: g,
|
|
@@ -2109,8 +2109,8 @@ function Yi(e, t, r, n = {}) {
|
|
|
2109
2109
|
minWidth: l = 0,
|
|
2110
2110
|
clampToContentWidth: d = !1
|
|
2111
2111
|
} = n, c = Math.max(e.width, l), u = i ? c : t.width, f = i && d ? Math.max(c, t.width) : u, m = r.height - s - (e.bottom + o), g = e.top - o - s, x = t.height > m && g > m ? "top" : "bottom";
|
|
2112
|
-
let b,
|
|
2113
|
-
x === "bottom" ? (b = e.bottom + o,
|
|
2112
|
+
let b, k;
|
|
2113
|
+
x === "bottom" ? (b = e.bottom + o, k = Math.max(0, m)) : (b = Math.max(s, e.top - o - t.height), k = Math.max(0, g));
|
|
2114
2114
|
const N = Math.max(
|
|
2115
2115
|
s,
|
|
2116
2116
|
Math.min(e.left, r.width - f - s)
|
|
@@ -2120,7 +2120,7 @@ function Yi(e, t, r, n = {}) {
|
|
|
2120
2120
|
left: N,
|
|
2121
2121
|
...i ? { width: c } : {},
|
|
2122
2122
|
placement: x,
|
|
2123
|
-
maxHeight:
|
|
2123
|
+
maxHeight: k
|
|
2124
2124
|
};
|
|
2125
2125
|
}
|
|
2126
2126
|
const Ra = 1e4, Kr = {
|
|
@@ -2197,9 +2197,9 @@ const Dt = se(
|
|
|
2197
2197
|
"aria-required": g,
|
|
2198
2198
|
id: x
|
|
2199
2199
|
}, b) => {
|
|
2200
|
-
const { t:
|
|
2201
|
-
open:
|
|
2202
|
-
search:
|
|
2200
|
+
const { t: k } = le(), N = K(null), {
|
|
2201
|
+
open: w,
|
|
2202
|
+
search: A,
|
|
2203
2203
|
activeIndex: E,
|
|
2204
2204
|
setActiveIndex: D,
|
|
2205
2205
|
filtered: L,
|
|
@@ -2215,7 +2215,7 @@ const Dt = se(
|
|
|
2215
2215
|
handleSearchChange: J,
|
|
2216
2216
|
handleSearchKeyDown: ee
|
|
2217
2217
|
} = Gi({ options: e, value: t, disabled: o, searchable: i, onChange: r, panelRef: N }), { style: h } = Nr({
|
|
2218
|
-
open:
|
|
2218
|
+
open: w,
|
|
2219
2219
|
triggerRef: U,
|
|
2220
2220
|
panelRef: N,
|
|
2221
2221
|
matchTriggerWidth: !0,
|
|
@@ -2229,7 +2229,7 @@ const Dt = se(
|
|
|
2229
2229
|
className: "input-console select-console",
|
|
2230
2230
|
"data-invalid": I ? "" : void 0,
|
|
2231
2231
|
"data-disabled": o ? "" : void 0,
|
|
2232
|
-
"data-open":
|
|
2232
|
+
"data-open": w ? "" : void 0,
|
|
2233
2233
|
"data-baseline": c ? void 0 : "off",
|
|
2234
2234
|
children: [
|
|
2235
2235
|
/* @__PURE__ */ v(
|
|
@@ -2240,7 +2240,7 @@ const Dt = se(
|
|
|
2240
2240
|
id: x,
|
|
2241
2241
|
role: "combobox",
|
|
2242
2242
|
"aria-haspopup": "listbox",
|
|
2243
|
-
"aria-expanded":
|
|
2243
|
+
"aria-expanded": w,
|
|
2244
2244
|
"aria-controls": O,
|
|
2245
2245
|
"aria-activedescendant": Q,
|
|
2246
2246
|
"aria-invalid": T,
|
|
@@ -2248,7 +2248,7 @@ const Dt = se(
|
|
|
2248
2248
|
"aria-required": g,
|
|
2249
2249
|
disabled: o,
|
|
2250
2250
|
onClick: () => {
|
|
2251
|
-
o || (
|
|
2251
|
+
o || (w ? X() : z());
|
|
2252
2252
|
},
|
|
2253
2253
|
onKeyDown: Z,
|
|
2254
2254
|
className: p(
|
|
@@ -2280,7 +2280,7 @@ const Dt = se(
|
|
|
2280
2280
|
size: d === "sm" ? 12 : 14,
|
|
2281
2281
|
className: p(
|
|
2282
2282
|
"input-console-icon shrink-0 text-[var(--color-text-muted)] transition-transform duration-[var(--motion-duration-base)] ease-[var(--motion-easing-in-out-cubic)]",
|
|
2283
|
-
|
|
2283
|
+
w && "rotate-180"
|
|
2284
2284
|
)
|
|
2285
2285
|
}
|
|
2286
2286
|
)
|
|
@@ -2288,7 +2288,7 @@ const Dt = se(
|
|
|
2288
2288
|
}
|
|
2289
2289
|
),
|
|
2290
2290
|
c && /* @__PURE__ */ a("span", { className: "input-console-baseline", "aria-hidden": !0 }),
|
|
2291
|
-
|
|
2291
|
+
w && We(
|
|
2292
2292
|
// Options panel — matte-glass console readout (--select-panel-* theme
|
|
2293
2293
|
// family). NB-POPOVER-01: portaled to document.body + fixed-positioned
|
|
2294
2294
|
// via useAnchoredPanel (width/maxHeight from the trigger measurement)
|
|
@@ -2308,10 +2308,10 @@ const Dt = se(
|
|
|
2308
2308
|
"input",
|
|
2309
2309
|
{
|
|
2310
2310
|
autoFocus: !0,
|
|
2311
|
-
value:
|
|
2311
|
+
value: A,
|
|
2312
2312
|
onChange: (B) => J(B.target.value),
|
|
2313
2313
|
onKeyDown: ee,
|
|
2314
|
-
placeholder:
|
|
2314
|
+
placeholder: k("common.ara"),
|
|
2315
2315
|
"aria-activedescendant": Q,
|
|
2316
2316
|
className: p(
|
|
2317
2317
|
"h-[var(--space-8)] w-full px-[var(--space-2)]",
|
|
@@ -2323,7 +2323,7 @@ const Dt = se(
|
|
|
2323
2323
|
)
|
|
2324
2324
|
}
|
|
2325
2325
|
) }),
|
|
2326
|
-
L.length === 0 ? /* @__PURE__ */ a("div", { className: "px-[var(--space-3)] py-[var(--space-2)] text-[length:var(--font-sm)] text-[var(--color-text-muted)]", children:
|
|
2326
|
+
L.length === 0 ? /* @__PURE__ */ a("div", { className: "px-[var(--space-3)] py-[var(--space-2)] text-[length:var(--font-sm)] text-[var(--color-text-muted)]", children: k("empty.sonuc_bulunamadi") }) : L.map((B, H) => {
|
|
2327
2327
|
const ce = !!B.disabled;
|
|
2328
2328
|
return (
|
|
2329
2329
|
// Active row follows keyboard + pointer (single highlight source);
|
|
@@ -2375,7 +2375,7 @@ const Dt = se(
|
|
|
2375
2375
|
"button",
|
|
2376
2376
|
{
|
|
2377
2377
|
type: "button",
|
|
2378
|
-
"aria-label":
|
|
2378
|
+
"aria-label": k("common.temizle"),
|
|
2379
2379
|
onClick: (B) => {
|
|
2380
2380
|
B.stopPropagation(), r == null || r("");
|
|
2381
2381
|
},
|
|
@@ -2961,13 +2961,13 @@ function Va({ content: e, children: t, side: r = "top", delay: n = 300, classNam
|
|
|
2961
2961
|
g.current = setTimeout(() => {
|
|
2962
2962
|
i(!0);
|
|
2963
2963
|
}, n);
|
|
2964
|
-
},
|
|
2964
|
+
}, k = () => {
|
|
2965
2965
|
clearTimeout(g.current), x.current !== void 0 && cancelAnimationFrame(x.current), u(!1), i(!1);
|
|
2966
2966
|
}, N = ae(() => {
|
|
2967
2967
|
if (!f.current || !m.current) return;
|
|
2968
|
-
const
|
|
2969
|
-
|
|
2970
|
-
{ width:
|
|
2968
|
+
const w = f.current.getBoundingClientRect(), A = m.current.getBoundingClientRect(), E = yl(
|
|
2969
|
+
w,
|
|
2970
|
+
{ width: A.width, height: A.height },
|
|
2971
2971
|
r,
|
|
2972
2972
|
{ width: window.innerWidth, height: window.innerHeight }
|
|
2973
2973
|
);
|
|
@@ -2979,8 +2979,8 @@ function Va({ content: e, children: t, side: r = "top", delay: n = 300, classNam
|
|
|
2979
2979
|
x.current !== void 0 && cancelAnimationFrame(x.current);
|
|
2980
2980
|
}), [s, N]), te(() => {
|
|
2981
2981
|
if (!s || !m.current || typeof ResizeObserver > "u") return;
|
|
2982
|
-
const
|
|
2983
|
-
return
|
|
2982
|
+
const w = new ResizeObserver(() => N());
|
|
2983
|
+
return w.observe(m.current), () => w.disconnect();
|
|
2984
2984
|
}, [s, N]), te(() => () => {
|
|
2985
2985
|
clearTimeout(g.current), x.current !== void 0 && cancelAnimationFrame(x.current);
|
|
2986
2986
|
}, []), /* @__PURE__ */ v(we, { children: [
|
|
@@ -2989,9 +2989,9 @@ function Va({ content: e, children: t, side: r = "top", delay: n = 300, classNam
|
|
|
2989
2989
|
{
|
|
2990
2990
|
ref: f,
|
|
2991
2991
|
onMouseEnter: b,
|
|
2992
|
-
onMouseLeave:
|
|
2992
|
+
onMouseLeave: k,
|
|
2993
2993
|
onFocus: b,
|
|
2994
|
-
onBlur:
|
|
2994
|
+
onBlur: k,
|
|
2995
2995
|
className: "inline-flex",
|
|
2996
2996
|
children: t
|
|
2997
2997
|
}
|
|
@@ -3332,15 +3332,15 @@ function Rl({
|
|
|
3332
3332
|
const l = Ee(), d = t ?? `${l}-control`, c = `${l}-error`, u = `${l}-hint`;
|
|
3333
3333
|
let f = s;
|
|
3334
3334
|
if (xn(s)) {
|
|
3335
|
-
const m = s, g = m.props, x = g.id ?? d, b = g["aria-invalid"] ?? (r ? !0 : void 0),
|
|
3335
|
+
const m = s, g = m.props, x = g.id ?? d, b = g["aria-invalid"] ?? (r ? !0 : void 0), k = g["aria-required"] ?? (n ? !0 : void 0), N = g.required ?? (n ? !0 : void 0), w = r ? c : o ? u : void 0, A = zl(
|
|
3336
3336
|
g["aria-describedby"],
|
|
3337
|
-
|
|
3337
|
+
w
|
|
3338
3338
|
);
|
|
3339
3339
|
f = kn(m, {
|
|
3340
3340
|
id: x,
|
|
3341
3341
|
"aria-invalid": b,
|
|
3342
|
-
"aria-describedby":
|
|
3343
|
-
"aria-required":
|
|
3342
|
+
"aria-describedby": A,
|
|
3343
|
+
"aria-required": k,
|
|
3344
3344
|
required: N
|
|
3345
3345
|
});
|
|
3346
3346
|
}
|
|
@@ -3541,11 +3541,11 @@ function iu({
|
|
|
3541
3541
|
isError: m,
|
|
3542
3542
|
errorMessage: g
|
|
3543
3543
|
}) {
|
|
3544
|
-
const x = i === "compact", b = jl[x ? "compact" : "default"], { i18n:
|
|
3544
|
+
const x = i === "compact", b = jl[x ? "compact" : "default"], { i18n: k } = le(), N = (k.resolvedLanguage ?? k.language ?? "").startsWith("tr") ? "tr-TR" : "en-US", w = !!d && !u && !m, A = f ?? (m && typeof g == "string" ? `${r}: ${g}` : void 0);
|
|
3545
3545
|
function E(O) {
|
|
3546
3546
|
(O.key === "Enter" || O.key === " ") && (O.preventDefault(), d == null || d());
|
|
3547
3547
|
}
|
|
3548
|
-
const D =
|
|
3548
|
+
const D = w ? {
|
|
3549
3549
|
role: "button",
|
|
3550
3550
|
tabIndex: 0,
|
|
3551
3551
|
onClick: d,
|
|
@@ -3557,7 +3557,7 @@ function iu({
|
|
|
3557
3557
|
"div",
|
|
3558
3558
|
{
|
|
3559
3559
|
"data-kpi-glass": "aurora",
|
|
3560
|
-
"aria-label":
|
|
3560
|
+
"aria-label": A,
|
|
3561
3561
|
"aria-disabled": u || void 0,
|
|
3562
3562
|
role: m ? "alert" : void 0,
|
|
3563
3563
|
"aria-live": m ? "polite" : void 0,
|
|
@@ -3566,7 +3566,7 @@ function iu({
|
|
|
3566
3566
|
"rounded-[var(--kpi-card-radius,var(--radius-lg))]",
|
|
3567
3567
|
x ? "p-[var(--kpi-card-padding-compact,var(--space-3))]" : "p-[var(--kpi-card-padding,var(--space-4))]",
|
|
3568
3568
|
Ol,
|
|
3569
|
-
|
|
3569
|
+
w && "cursor-pointer transition-shadow hover:shadow-[var(--elevation-2)] focus-visible:[box-shadow:0_0_0_1px_var(--color-border-focus),0_0_0_4px_color-mix(in_oklab,var(--color-border-focus)_30%,transparent)] focus-visible:outline-none",
|
|
3570
3570
|
u && "cursor-not-allowed opacity-60",
|
|
3571
3571
|
l
|
|
3572
3572
|
),
|
|
@@ -3716,26 +3716,26 @@ function Hl({
|
|
|
3716
3716
|
return x.current = r, te(() => {
|
|
3717
3717
|
if (!e) return;
|
|
3718
3718
|
g.current = document.activeElement;
|
|
3719
|
-
const b = Ir(m.current),
|
|
3719
|
+
const b = Ir(m.current), k = (w) => {
|
|
3720
3720
|
if (Dr(m.current)) {
|
|
3721
|
-
if (
|
|
3721
|
+
if (w.key === "Escape") {
|
|
3722
3722
|
x.current();
|
|
3723
3723
|
return;
|
|
3724
3724
|
}
|
|
3725
|
-
Zt(
|
|
3725
|
+
Zt(w, m.current);
|
|
3726
3726
|
}
|
|
3727
3727
|
};
|
|
3728
|
-
document.addEventListener("keydown",
|
|
3728
|
+
document.addEventListener("keydown", k);
|
|
3729
3729
|
const N = window.setTimeout(() => {
|
|
3730
|
-
var
|
|
3731
|
-
(
|
|
3730
|
+
var A;
|
|
3731
|
+
(A = ct(m.current)[0] ?? m.current) == null || A.focus();
|
|
3732
3732
|
}, 0);
|
|
3733
3733
|
return () => {
|
|
3734
|
-
b(), document.removeEventListener("keydown",
|
|
3735
|
-
const
|
|
3736
|
-
if (
|
|
3734
|
+
b(), document.removeEventListener("keydown", k), window.clearTimeout(N);
|
|
3735
|
+
const w = g.current;
|
|
3736
|
+
if (w && w.isConnected)
|
|
3737
3737
|
try {
|
|
3738
|
-
|
|
3738
|
+
w.focus();
|
|
3739
3739
|
} catch {
|
|
3740
3740
|
}
|
|
3741
3741
|
};
|
|
@@ -3909,8 +3909,8 @@ function Qa({
|
|
|
3909
3909
|
"aria-required": x,
|
|
3910
3910
|
id: b
|
|
3911
3911
|
}) {
|
|
3912
|
-
const { t:
|
|
3913
|
-
open:
|
|
3912
|
+
const { t: k, i18n: N } = le(), [w, A] = W(!1), [E, D] = W(e ?? /* @__PURE__ */ new Date()), [L, O] = W(e ?? /* @__PURE__ */ new Date()), [q, Q] = W("grid"), [V, U] = W(0), z = K(null), X = K(null), F = K(null), Z = (N.resolvedLanguage ?? N.language ?? "").startsWith("tr"), J = Z ? hr : pr, ee = Z ? "dd.MM.yyyy" : "MM/dd/yyyy", h = m ?? (i ? !0 : void 0), y = h === !0 || h === "true", { style: T } = Nr({
|
|
3913
|
+
open: w,
|
|
3914
3914
|
triggerRef: X,
|
|
3915
3915
|
panelRef: F,
|
|
3916
3916
|
matchTriggerWidth: !1,
|
|
@@ -3919,15 +3919,15 @@ function Qa({
|
|
|
3919
3919
|
te(() => {
|
|
3920
3920
|
const R = (me) => {
|
|
3921
3921
|
const xe = me.target;
|
|
3922
|
-
z.current && !z.current.contains(xe) && (!F.current || !F.current.contains(xe)) &&
|
|
3922
|
+
z.current && !z.current.contains(xe) && (!F.current || !F.current.contains(xe)) && A(!1);
|
|
3923
3923
|
};
|
|
3924
3924
|
return document.addEventListener("mousedown", R), () => document.removeEventListener("mousedown", R);
|
|
3925
3925
|
}, []), Ze(() => {
|
|
3926
3926
|
var me, xe;
|
|
3927
|
-
if (!
|
|
3927
|
+
if (!w) return;
|
|
3928
3928
|
const R = q === "time" ? "[data-time-input]" : q === "presets" ? '[data-preset-focused="true"]' : '[data-focused="true"]';
|
|
3929
3929
|
(xe = (me = F.current) == null ? void 0 : me.querySelector(R)) == null || xe.focus();
|
|
3930
|
-
}, [
|
|
3930
|
+
}, [w, L, q, V]);
|
|
3931
3931
|
const I = Vt(E), P = rr(E), B = kt(I, { locale: J }), H = qt(P, { locale: J }), ce = [];
|
|
3932
3932
|
let S = B;
|
|
3933
3933
|
for (; S <= H; )
|
|
@@ -3939,7 +3939,7 @@ function Qa({
|
|
|
3939
3939
|
t == null || t(Xe(Ft(R, e), Y, re));
|
|
3940
3940
|
return;
|
|
3941
3941
|
}
|
|
3942
|
-
t == null || t(R),
|
|
3942
|
+
t == null || t(R), A(!1), (me = X.current) == null || me.focus();
|
|
3943
3943
|
}
|
|
3944
3944
|
}, G = (R) => {
|
|
3945
3945
|
if (!R) return;
|
|
@@ -3955,14 +3955,14 @@ function Qa({
|
|
|
3955
3955
|
min: j,
|
|
3956
3956
|
max: ue,
|
|
3957
3957
|
"data-time-input": "single",
|
|
3958
|
-
"aria-label":
|
|
3958
|
+
"aria-label": k("date.saat"),
|
|
3959
3959
|
value: wt(e),
|
|
3960
3960
|
onChange: (R) => G(R.target.value),
|
|
3961
3961
|
onFocus: () => Q("time")
|
|
3962
3962
|
}
|
|
3963
3963
|
), fe = () => {
|
|
3964
3964
|
var R;
|
|
3965
|
-
|
|
3965
|
+
A(!1), (R = X.current) == null || R.focus();
|
|
3966
3966
|
}, ve = (R) => {
|
|
3967
3967
|
O(R), Ut(R, E) || D(R);
|
|
3968
3968
|
}, ke = (R) => {
|
|
@@ -4052,7 +4052,7 @@ function Qa({
|
|
|
4052
4052
|
className: p("input-console select-console", l),
|
|
4053
4053
|
"data-invalid": y ? "" : void 0,
|
|
4054
4054
|
"data-disabled": s ? "" : void 0,
|
|
4055
|
-
"data-open":
|
|
4055
|
+
"data-open": w ? "" : void 0,
|
|
4056
4056
|
children: [
|
|
4057
4057
|
/* @__PURE__ */ v(
|
|
4058
4058
|
"button",
|
|
@@ -4066,12 +4066,12 @@ function Qa({
|
|
|
4066
4066
|
"aria-required": x,
|
|
4067
4067
|
onClick: () => {
|
|
4068
4068
|
if (s) return;
|
|
4069
|
-
const R = !
|
|
4069
|
+
const R = !w;
|
|
4070
4070
|
if (R) {
|
|
4071
4071
|
const me = e ?? /* @__PURE__ */ new Date();
|
|
4072
4072
|
O(me), D(me), Q("grid"), U(0);
|
|
4073
4073
|
}
|
|
4074
|
-
|
|
4074
|
+
A(R);
|
|
4075
4075
|
},
|
|
4076
4076
|
className: p(
|
|
4077
4077
|
"input-console-field select-console-trigger",
|
|
@@ -4080,12 +4080,12 @@ function Qa({
|
|
|
4080
4080
|
),
|
|
4081
4081
|
children: [
|
|
4082
4082
|
/* @__PURE__ */ a(Ca, { size: 14, className: "input-console-icon shrink-0 text-[var(--color-text-muted)]" }),
|
|
4083
|
-
/* @__PURE__ */ a("span", { className: p(!e && "text-[var(--color-text-muted)]"), children: e ? De(e, c ? `${ee} HH:mm` : ee, { locale: J }) : r ??
|
|
4083
|
+
/* @__PURE__ */ a("span", { className: p(!e && "text-[var(--color-text-muted)]"), children: e ? De(e, c ? `${ee} HH:mm` : ee, { locale: J }) : r ?? k("date.tarih_sec") })
|
|
4084
4084
|
]
|
|
4085
4085
|
}
|
|
4086
4086
|
),
|
|
4087
4087
|
/* @__PURE__ */ a("span", { className: "input-console-baseline", "aria-hidden": !0 }),
|
|
4088
|
-
|
|
4088
|
+
w && We(
|
|
4089
4089
|
/* @__PURE__ */ v(
|
|
4090
4090
|
"div",
|
|
4091
4091
|
{
|
|
@@ -4107,7 +4107,7 @@ function Qa({
|
|
|
4107
4107
|
"div",
|
|
4108
4108
|
{
|
|
4109
4109
|
role: "group",
|
|
4110
|
-
"aria-label":
|
|
4110
|
+
"aria-label": k("date.hazir_araliklar"),
|
|
4111
4111
|
className: "flex shrink-0 flex-col gap-[var(--space-0-5)] border-r border-[var(--select-panel-border)] pr-[var(--space-2)]",
|
|
4112
4112
|
children: d.map((R, me) => /* @__PURE__ */ a(
|
|
4113
4113
|
"button",
|
|
@@ -4143,7 +4143,7 @@ function Qa({
|
|
|
4143
4143
|
{
|
|
4144
4144
|
type: "button",
|
|
4145
4145
|
tabIndex: -1,
|
|
4146
|
-
"aria-label":
|
|
4146
|
+
"aria-label": k("aria.onceki_ay"),
|
|
4147
4147
|
onClick: () => ve(rt(L, 1)),
|
|
4148
4148
|
className: p(
|
|
4149
4149
|
"rounded-[var(--radius-sm)] p-[var(--space-1)]",
|
|
@@ -4159,7 +4159,7 @@ function Qa({
|
|
|
4159
4159
|
{
|
|
4160
4160
|
type: "button",
|
|
4161
4161
|
tabIndex: -1,
|
|
4162
|
-
"aria-label":
|
|
4162
|
+
"aria-label": k("aria.sonraki_ay"),
|
|
4163
4163
|
onClick: () => ve(Xt(L, 1)),
|
|
4164
4164
|
className: p(
|
|
4165
4165
|
"rounded-[var(--radius-sm)] p-[var(--space-1)]",
|
|
@@ -4213,7 +4213,7 @@ function Qa({
|
|
|
4213
4213
|
"data-time-layout": "beside",
|
|
4214
4214
|
className: "flex shrink-0 flex-col gap-[var(--space-2)] border-l border-[var(--select-panel-border)] pl-[var(--space-2)]",
|
|
4215
4215
|
children: /* @__PURE__ */ v("label", { className: "flex flex-col gap-[var(--space-1)] text-[length:var(--font-xs)] text-[var(--color-text-secondary)]", children: [
|
|
4216
|
-
|
|
4216
|
+
k("date.saat"),
|
|
4217
4217
|
ne
|
|
4218
4218
|
] })
|
|
4219
4219
|
}
|
|
@@ -4225,7 +4225,7 @@ function Qa({
|
|
|
4225
4225
|
"data-time-layout": "below",
|
|
4226
4226
|
className: "mt-[var(--space-2)] flex shrink-0 items-center gap-[var(--space-2)] border-t border-[var(--select-panel-border)] pt-[var(--space-2)]",
|
|
4227
4227
|
children: [
|
|
4228
|
-
/* @__PURE__ */ a("span", { className: "text-[length:var(--font-xs)] text-[var(--color-text-secondary)]", children:
|
|
4228
|
+
/* @__PURE__ */ a("span", { className: "text-[length:var(--font-xs)] text-[var(--color-text-secondary)]", children: k("date.saat") }),
|
|
4229
4229
|
ne
|
|
4230
4230
|
]
|
|
4231
4231
|
}
|
|
@@ -4257,9 +4257,9 @@ function Ul({
|
|
|
4257
4257
|
"aria-required": g,
|
|
4258
4258
|
id: x
|
|
4259
4259
|
}) {
|
|
4260
|
-
const { t: b, i18n:
|
|
4260
|
+
const { t: b, i18n: k } = le(), [N, w] = W(!1), [A, E] = W(e.start ?? /* @__PURE__ */ new Date()), [D, L] = W(e.start ?? /* @__PURE__ */ new Date()), [O, q] = W(null), [Q, V] = W(null), [U, z] = W("grid"), [X, F] = W({ start: null, end: null }), [Z, J] = W(0), [ee, h] = W(0), y = !e.start && !e.end, [T, I] = W(y);
|
|
4261
4261
|
T !== y && (I(y), y && O !== null && (q(null), F({ start: null, end: null }), V(null)));
|
|
4262
|
-
const P = K(null), B = K(null), H = K(null), ce = (
|
|
4262
|
+
const P = K(null), B = K(null), H = K(null), ce = (k.resolvedLanguage ?? k.language ?? "").startsWith("tr"), S = ce ? hr : pr, _ = ce ? "dd.MM.yyyy" : "MM/dd/yyyy", C = f ?? (c ? !0 : void 0), G = C === !0 || C === "true", { style: Y } = Nr({
|
|
4263
4263
|
open: N,
|
|
4264
4264
|
triggerRef: B,
|
|
4265
4265
|
panelRef: H,
|
|
@@ -4274,7 +4274,7 @@ function Ul({
|
|
|
4274
4274
|
te(() => {
|
|
4275
4275
|
const M = (pe) => {
|
|
4276
4276
|
const oe = pe.target;
|
|
4277
|
-
P.current && !P.current.contains(oe) && (!H.current || !H.current.contains(oe)) &&
|
|
4277
|
+
P.current && !P.current.contains(oe) && (!H.current || !H.current.contains(oe)) && w(!1);
|
|
4278
4278
|
};
|
|
4279
4279
|
return document.addEventListener("mousedown", M), () => document.removeEventListener("mousedown", M);
|
|
4280
4280
|
}, []), Ze(() => {
|
|
@@ -4283,7 +4283,7 @@ function Ul({
|
|
|
4283
4283
|
const M = U === "time" ? `[data-time-input="${ee === 0 ? "start" : "end"}"]` : U === "presets" ? '[data-preset-focused="true"]' : '[data-focused="true"]';
|
|
4284
4284
|
(oe = (pe = H.current) == null ? void 0 : pe.querySelector(M)) == null || oe.focus();
|
|
4285
4285
|
}, [N, D, U, Z, ee]);
|
|
4286
|
-
const re = Vt(
|
|
4286
|
+
const re = Vt(A), j = rr(A), ue = kt(re, { locale: S }), ne = qt(j, { locale: S }), fe = [];
|
|
4287
4287
|
let ve = ue;
|
|
4288
4288
|
for (; ve <= ne; )
|
|
4289
4289
|
fe.push(ve), ve = je(ve, 1);
|
|
@@ -4291,9 +4291,9 @@ function Ul({
|
|
|
4291
4291
|
fe.push(ve), ve = je(ve, 1);
|
|
4292
4292
|
const ke = n ? qe(n) : void 0, ye = o ? Oe(o) : void 0, Re = (M) => !!(ke && M < ke || ye && M > ye), Ae = () => {
|
|
4293
4293
|
var M;
|
|
4294
|
-
|
|
4294
|
+
w(!1), (M = B.current) == null || M.focus();
|
|
4295
4295
|
}, R = (M) => {
|
|
4296
|
-
L(M), V(null), Ut(M,
|
|
4296
|
+
L(M), V(null), Ut(M, A) || E(M);
|
|
4297
4297
|
}, me = (M) => {
|
|
4298
4298
|
Le(M, D) || L(M);
|
|
4299
4299
|
}, xe = (M) => {
|
|
@@ -4492,7 +4492,7 @@ function Ul({
|
|
|
4492
4492
|
const pe = e.start ?? /* @__PURE__ */ new Date();
|
|
4493
4493
|
L(pe), E(pe), q(null), V(null), z("grid"), J(0);
|
|
4494
4494
|
}
|
|
4495
|
-
|
|
4495
|
+
w(M);
|
|
4496
4496
|
},
|
|
4497
4497
|
className: p(
|
|
4498
4498
|
"input-console-field select-console-trigger",
|
|
@@ -4590,7 +4590,7 @@ function Ul({
|
|
|
4590
4590
|
children: /* @__PURE__ */ a(xr, { size: 16 })
|
|
4591
4591
|
}
|
|
4592
4592
|
),
|
|
4593
|
-
/* @__PURE__ */ a("span", { className: "font-[family-name:var(--font-display)] text-[length:var(--font-sm)] font-semibold text-[var(--color-text-primary)]", children: De(
|
|
4593
|
+
/* @__PURE__ */ a("span", { className: "font-[family-name:var(--font-display)] text-[length:var(--font-sm)] font-semibold text-[var(--color-text-primary)]", children: De(A, "MMMM yyyy", { locale: S }) }),
|
|
4594
4594
|
/* @__PURE__ */ a(
|
|
4595
4595
|
"button",
|
|
4596
4596
|
{
|
|
@@ -4615,7 +4615,7 @@ function Ul({
|
|
|
4615
4615
|
children: [
|
|
4616
4616
|
fe.slice(0, 7).map((M) => /* @__PURE__ */ a("span", { className: "py-1 text-[length:var(--font-xs)] text-[var(--color-text-muted)]", children: De(M, "EEEEEE", { locale: S }) }, M.toISOString())),
|
|
4617
4617
|
fe.map((M, pe) => {
|
|
4618
|
-
const oe = !!Rt && Le(M, Rt) || !!Lt && Le(M, Lt), ze = !!Rt && !!Lt && !oe && M > Rt && M < Lt, Pe = xa(M), Ie = !Ut(M,
|
|
4618
|
+
const oe = !!Rt && Le(M, Rt) || !!Lt && Le(M, Lt), ze = !!Rt && !!Lt && !oe && M > Rt && M < Lt, Pe = xa(M), Ie = !Ut(M, A), Ye = Re(M), Or = Le(M, D);
|
|
4619
4619
|
return /* @__PURE__ */ a(
|
|
4620
4620
|
"button",
|
|
4621
4621
|
{
|
|
@@ -4712,12 +4712,12 @@ function cu({
|
|
|
4712
4712
|
t == null || t(null);
|
|
4713
4713
|
return;
|
|
4714
4714
|
}
|
|
4715
|
-
const
|
|
4716
|
-
e ?
|
|
4717
|
-
},
|
|
4715
|
+
const w = new Date(N);
|
|
4716
|
+
e ? w.setHours(e.getHours(), e.getMinutes(), 0, 0) : w.setHours(0, 0, 0, 0), t == null || t(Xe(w, f, m));
|
|
4717
|
+
}, k = (N) => {
|
|
4718
4718
|
if (!N) return;
|
|
4719
|
-
const
|
|
4720
|
-
|
|
4719
|
+
const w = Mr(e ?? /* @__PURE__ */ new Date(), N);
|
|
4720
|
+
w && (t == null || t(Xe(w, f, m)));
|
|
4721
4721
|
};
|
|
4722
4722
|
return /* @__PURE__ */ v("div", { className: p("flex items-center gap-[var(--space-2)]", d), children: [
|
|
4723
4723
|
/* @__PURE__ */ a("div", { className: "flex-1", children: /* @__PURE__ */ a(
|
|
@@ -4743,7 +4743,7 @@ function cu({
|
|
|
4743
4743
|
max: x,
|
|
4744
4744
|
disabled: i,
|
|
4745
4745
|
value: u,
|
|
4746
|
-
onChange: (N) =>
|
|
4746
|
+
onChange: (N) => k(N.target.value),
|
|
4747
4747
|
"aria-label": c("date.saat"),
|
|
4748
4748
|
error: l
|
|
4749
4749
|
}
|
|
@@ -4781,10 +4781,10 @@ const Kl = se(
|
|
|
4781
4781
|
te(() => {
|
|
4782
4782
|
b(e.replace(/^#/, ""));
|
|
4783
4783
|
}, [e]);
|
|
4784
|
-
const
|
|
4785
|
-
ra.test(
|
|
4786
|
-
},
|
|
4787
|
-
const E =
|
|
4784
|
+
const k = ra.test(e) ? e : Ql, N = (A) => {
|
|
4785
|
+
ra.test(A) && t(A);
|
|
4786
|
+
}, w = (A) => {
|
|
4787
|
+
const E = A.replace(/^#/, "");
|
|
4788
4788
|
b(E), N(`#${E}`);
|
|
4789
4789
|
};
|
|
4790
4790
|
return /* @__PURE__ */ v(
|
|
@@ -4798,18 +4798,18 @@ const Kl = se(
|
|
|
4798
4798
|
className: p("flex flex-col gap-[var(--space-3)]", l),
|
|
4799
4799
|
...u,
|
|
4800
4800
|
children: [
|
|
4801
|
-
/* @__PURE__ */ a("div", { className: "flex flex-wrap gap-[var(--space-2)]", children: g.map((
|
|
4802
|
-
const E = e.toLowerCase() ===
|
|
4801
|
+
/* @__PURE__ */ a("div", { className: "flex flex-wrap gap-[var(--space-2)]", children: g.map((A) => {
|
|
4802
|
+
const E = e.toLowerCase() === A.hex.toLowerCase();
|
|
4803
4803
|
return /* @__PURE__ */ a(
|
|
4804
4804
|
"button",
|
|
4805
4805
|
{
|
|
4806
4806
|
type: "button",
|
|
4807
4807
|
disabled: i,
|
|
4808
|
-
title:
|
|
4809
|
-
"aria-label":
|
|
4808
|
+
title: A.label ?? A.hex,
|
|
4809
|
+
"aria-label": A.label ?? A.hex,
|
|
4810
4810
|
"aria-pressed": E,
|
|
4811
|
-
onClick: () => N(
|
|
4812
|
-
style: { backgroundColor:
|
|
4811
|
+
onClick: () => N(A.hex),
|
|
4812
|
+
style: { backgroundColor: A.hex },
|
|
4813
4813
|
className: p(
|
|
4814
4814
|
"flex h-7 w-7 items-center justify-center rounded-[var(--radius-full)]",
|
|
4815
4815
|
"transition-transform duration-[var(--motion-duration-fast)] ease-[var(--motion-easing-out-quint)]",
|
|
@@ -4818,7 +4818,7 @@ const Kl = se(
|
|
|
4818
4818
|
),
|
|
4819
4819
|
children: E && /* @__PURE__ */ a(Je, { size: 14, className: "text-[var(--color-text-inverse)]" })
|
|
4820
4820
|
},
|
|
4821
|
-
|
|
4821
|
+
A.hex
|
|
4822
4822
|
);
|
|
4823
4823
|
}) }),
|
|
4824
4824
|
n && /* @__PURE__ */ v("div", { className: "flex items-center gap-[var(--space-2)]", children: [
|
|
@@ -4826,7 +4826,7 @@ const Kl = se(
|
|
|
4826
4826
|
"span",
|
|
4827
4827
|
{
|
|
4828
4828
|
"aria-hidden": !0,
|
|
4829
|
-
style: { backgroundColor:
|
|
4829
|
+
style: { backgroundColor: k },
|
|
4830
4830
|
className: "h-7 w-7 shrink-0 rounded-[var(--radius-full)] border border-[var(--color-border-subtle)]"
|
|
4831
4831
|
}
|
|
4832
4832
|
),
|
|
@@ -4839,7 +4839,7 @@ const Kl = se(
|
|
|
4839
4839
|
maxLength: 6,
|
|
4840
4840
|
disabled: i,
|
|
4841
4841
|
value: x,
|
|
4842
|
-
onChange: (
|
|
4842
|
+
onChange: (A) => w(A.target.value),
|
|
4843
4843
|
"aria-label": "Hex",
|
|
4844
4844
|
"aria-invalid": d,
|
|
4845
4845
|
"aria-describedby": c,
|
|
@@ -4851,7 +4851,7 @@ const Kl = se(
|
|
|
4851
4851
|
o !== void 0 && /* @__PURE__ */ a(
|
|
4852
4852
|
"span",
|
|
4853
4853
|
{
|
|
4854
|
-
style: { backgroundColor:
|
|
4854
|
+
style: { backgroundColor: k, color: "#ffffff" },
|
|
4855
4855
|
className: "inline-flex w-fit items-center rounded-[var(--radius-full)] px-[var(--space-3)] py-[var(--space-1)] text-[length:var(--font-xs)] font-medium",
|
|
4856
4856
|
children: o
|
|
4857
4857
|
}
|
|
@@ -5163,9 +5163,9 @@ function nc({
|
|
|
5163
5163
|
id: g,
|
|
5164
5164
|
"aria-invalid": x,
|
|
5165
5165
|
"aria-describedby": b,
|
|
5166
|
-
"aria-required":
|
|
5166
|
+
"aria-required": k
|
|
5167
5167
|
}) {
|
|
5168
|
-
const { t: N } = le(),
|
|
5168
|
+
const { t: N } = le(), w = x ?? (l ? !0 : void 0), A = w === !0 || w === "true", E = Ee(), [D, L] = W(!1), [O, q] = W(""), [Q, V] = W(0), [U, z] = W(null), X = K(null), F = K(null), Z = K(null), J = Ia(O, 300), ee = ae(() => {
|
|
5169
5169
|
if (!F.current) return null;
|
|
5170
5170
|
const S = F.current.getBoundingClientRect(), _ = window.innerHeight - S.bottom, C = S.top, G = _ < Gl && C > _, Y = G ? Math.min(Yt, C - 8) : Math.min(Yt, _ - 8);
|
|
5171
5171
|
return { top: G ? S.top - Math.min(Yt, C) - 4 : S.bottom + 4, left: S.left, width: S.width, maxHeight: Y, openUp: G };
|
|
@@ -5247,7 +5247,7 @@ function nc({
|
|
|
5247
5247
|
{
|
|
5248
5248
|
ref: X,
|
|
5249
5249
|
className: p("input-console select-console", u),
|
|
5250
|
-
"data-invalid":
|
|
5250
|
+
"data-invalid": A ? "" : void 0,
|
|
5251
5251
|
"data-disabled": i ? "" : void 0,
|
|
5252
5252
|
"data-open": D ? "" : void 0,
|
|
5253
5253
|
children: [
|
|
@@ -5258,9 +5258,9 @@ function nc({
|
|
|
5258
5258
|
open: D,
|
|
5259
5259
|
disabled: i,
|
|
5260
5260
|
id: g,
|
|
5261
|
-
ariaInvalid:
|
|
5261
|
+
ariaInvalid: w,
|
|
5262
5262
|
ariaDescribedBy: b,
|
|
5263
|
-
ariaRequired:
|
|
5263
|
+
ariaRequired: k,
|
|
5264
5264
|
multiple: s,
|
|
5265
5265
|
selectedLabels: y,
|
|
5266
5266
|
selectedValues: h,
|
|
@@ -5349,17 +5349,17 @@ const lc = se(
|
|
|
5349
5349
|
style: g,
|
|
5350
5350
|
...x
|
|
5351
5351
|
}, b) => {
|
|
5352
|
-
const
|
|
5352
|
+
const k = t ?? r, N = s ?? (i ? sc[i] : "default"), w = u != null, A = w ? { animationDelay: `${u}ms`, ...g } : g, E = ic(c), D = l ? aa[l.direction].Icon : null, L = !f && (l != null || d != null || E != null);
|
|
5353
5353
|
return /* @__PURE__ */ v(
|
|
5354
5354
|
"div",
|
|
5355
5355
|
{
|
|
5356
5356
|
ref: b,
|
|
5357
5357
|
className: p(
|
|
5358
5358
|
"flex flex-col gap-[var(--space-2)] rounded-[var(--radius-lg)] border border-[var(--color-border-default)] bg-[var(--color-bg-card)] p-[var(--space-4)]",
|
|
5359
|
-
|
|
5359
|
+
w && "metric-tile-enter",
|
|
5360
5360
|
m
|
|
5361
5361
|
),
|
|
5362
|
-
style:
|
|
5362
|
+
style: A,
|
|
5363
5363
|
...x,
|
|
5364
5364
|
children: [
|
|
5365
5365
|
/* @__PURE__ */ v("div", { className: "flex items-center gap-[var(--space-1)] text-[var(--color-text-muted)]", children: [
|
|
@@ -5368,7 +5368,7 @@ const lc = se(
|
|
|
5368
5368
|
"span",
|
|
5369
5369
|
{
|
|
5370
5370
|
className: "min-w-0 truncate text-[length:var(--font-xs)] font-medium tracking-[0.08em] uppercase",
|
|
5371
|
-
children:
|
|
5371
|
+
children: k
|
|
5372
5372
|
}
|
|
5373
5373
|
)
|
|
5374
5374
|
] }),
|
|
@@ -5469,13 +5469,13 @@ const mc = se(
|
|
|
5469
5469
|
hint: g,
|
|
5470
5470
|
error: x,
|
|
5471
5471
|
children: b,
|
|
5472
|
-
className:
|
|
5472
|
+
className: k,
|
|
5473
5473
|
id: N,
|
|
5474
|
-
"aria-label":
|
|
5475
|
-
},
|
|
5474
|
+
"aria-label": w
|
|
5475
|
+
}, A) => {
|
|
5476
5476
|
const E = K(null), [D, L] = W(!1), { t: O } = le(), q = u ?? O("common.kaldir", { defaultValue: "Kaldır" }), Q = i == null ? [] : Array.isArray(i) ? i : [i], U = (l ?? i !== void 0) && Q.length > 0;
|
|
5477
5477
|
function z(I) {
|
|
5478
|
-
E.current = I, typeof
|
|
5478
|
+
E.current = I, typeof A == "function" ? A(I) : A && (A.current = I);
|
|
5479
5479
|
}
|
|
5480
5480
|
function X(I) {
|
|
5481
5481
|
if (!I || I.length === 0) return;
|
|
@@ -5513,7 +5513,7 @@ const mc = se(
|
|
|
5513
5513
|
d ? d(I) : e([]);
|
|
5514
5514
|
}
|
|
5515
5515
|
const T = Q.length === 0 || r;
|
|
5516
|
-
return /* @__PURE__ */ v("div", { className: p("flex flex-col gap-[var(--space-2)]",
|
|
5516
|
+
return /* @__PURE__ */ v("div", { className: p("flex flex-col gap-[var(--space-2)]", k), children: [
|
|
5517
5517
|
U && c ? c(Q, y) : U && Q.map((I, P) => /* @__PURE__ */ v(
|
|
5518
5518
|
"div",
|
|
5519
5519
|
{
|
|
@@ -5545,7 +5545,7 @@ const mc = se(
|
|
|
5545
5545
|
id: N,
|
|
5546
5546
|
role: "button",
|
|
5547
5547
|
tabIndex: s ? -1 : 0,
|
|
5548
|
-
"aria-label":
|
|
5548
|
+
"aria-label": w,
|
|
5549
5549
|
"aria-disabled": s || void 0,
|
|
5550
5550
|
"data-drag-over": D || void 0,
|
|
5551
5551
|
onClick: F,
|
|
@@ -5675,10 +5675,10 @@ function uu({
|
|
|
5675
5675
|
}) {
|
|
5676
5676
|
const b = vc({ ...x });
|
|
5677
5677
|
if (b === "loading")
|
|
5678
|
-
return r !== void 0 ? /* @__PURE__ */ a(we, { children: r }) : e === "spinner" ? /* @__PURE__ */ a("div", { className: p("flex items-center justify-center py-[var(--space-8)]", g), children: /* @__PURE__ */ a(St, { size: "lg" }) }) : /* @__PURE__ */ a("div", { className: p("flex flex-col gap-[var(--space-2)]", g), children: Array.from({ length: Math.max(1, t) }).map((
|
|
5678
|
+
return r !== void 0 ? /* @__PURE__ */ a(we, { children: r }) : e === "spinner" ? /* @__PURE__ */ a("div", { className: p("flex items-center justify-center py-[var(--space-8)]", g), children: /* @__PURE__ */ a(St, { size: "lg" }) }) : /* @__PURE__ */ a("div", { className: p("flex flex-col gap-[var(--space-2)]", g), children: Array.from({ length: Math.max(1, t) }).map((k, N) => /* @__PURE__ */ a(st, { height: 16 }, N)) });
|
|
5679
5679
|
if (b === "error") {
|
|
5680
|
-
const
|
|
5681
|
-
return s === "alert" ? /* @__PURE__ */ a(Cl, { tone: "error", description:
|
|
5680
|
+
const k = n instanceof Error ? n.message : n || void 0, N = o ? /* @__PURE__ */ a(de, { variant: "outline", size: "sm", leftIcon: zi, onClick: o.onClick, children: o.label }) : void 0;
|
|
5681
|
+
return s === "alert" ? /* @__PURE__ */ a(Cl, { tone: "error", description: k, action: N, className: g }) : /* @__PURE__ */ v(
|
|
5682
5682
|
"div",
|
|
5683
5683
|
{
|
|
5684
5684
|
className: p(
|
|
@@ -5687,7 +5687,7 @@ function uu({
|
|
|
5687
5687
|
),
|
|
5688
5688
|
children: [
|
|
5689
5689
|
/* @__PURE__ */ a(i, { size: 40, strokeWidth: 1.5, className: "text-[var(--color-status-danger)]", "aria-hidden": "true" }),
|
|
5690
|
-
|
|
5690
|
+
k ? /* @__PURE__ */ a("p", { className: "max-w-sm text-center text-[length:var(--font-sm)] text-[var(--color-text-secondary)]", children: k }) : null,
|
|
5691
5691
|
N
|
|
5692
5692
|
]
|
|
5693
5693
|
}
|
|
@@ -5801,7 +5801,7 @@ function hu({
|
|
|
5801
5801
|
u(m), r({ ...t, [m]: g });
|
|
5802
5802
|
};
|
|
5803
5803
|
return /* @__PURE__ */ a("div", { className: p("flex flex-col gap-3", i), children: e.map((m) => {
|
|
5804
|
-
const g = t[m.name] ?? "", x = Ka(m), b = Za(m, g),
|
|
5804
|
+
const g = t[m.name] ?? "", x = Ka(m), b = Za(m, g), k = b && (o === "always" || d.has(m.name)) ? b === "required" ? l("parameter_form.zorunlu") : m.patternHint ? l("parameter_form.desen_ipucu", { hint: m.patternHint }) : l("parameter_form.desen_uyumsuz", { pattern: m.pattern }) : void 0, N = (n == null ? void 0 : n[m.name]) ?? k, w = m.defaultValue !== null && m.defaultValue !== void 0 && m.defaultValue !== "" ? l("parameter_form.varsayilan", { value: m.defaultValue }) : void 0, A = m.title || m.name, E = hc(m.pattern), D = `parameter-${m.name}`;
|
|
5805
5805
|
let L;
|
|
5806
5806
|
return E && E.length === 2 && E.includes("true") && E.includes("false") ? L = /* @__PURE__ */ a(
|
|
5807
5807
|
Pa,
|
|
@@ -5810,7 +5810,7 @@ function hu({
|
|
|
5810
5810
|
checked: g === "true",
|
|
5811
5811
|
onChange: (O) => f(m.name, O.target.checked ? "true" : "false"),
|
|
5812
5812
|
disabled: s,
|
|
5813
|
-
"aria-label":
|
|
5813
|
+
"aria-label": A
|
|
5814
5814
|
}
|
|
5815
5815
|
) : E ? L = /* @__PURE__ */ a(
|
|
5816
5816
|
Dt,
|
|
@@ -5836,7 +5836,7 @@ function hu({
|
|
|
5836
5836
|
spellCheck: !1,
|
|
5837
5837
|
autoComplete: "off"
|
|
5838
5838
|
}
|
|
5839
|
-
), /* @__PURE__ */ a(Rl, { name: D, label:
|
|
5839
|
+
), /* @__PURE__ */ a(Rl, { name: D, label: A, required: x, error: N, hint: w, children: L }, m.name);
|
|
5840
5840
|
}) });
|
|
5841
5841
|
}
|
|
5842
5842
|
let na = 0;
|
|
@@ -5889,17 +5889,17 @@ function yu({
|
|
|
5889
5889
|
valuePlaceholder: g,
|
|
5890
5890
|
addLabel: x,
|
|
5891
5891
|
emptyContent: b,
|
|
5892
|
-
maxEntries:
|
|
5892
|
+
maxEntries: k,
|
|
5893
5893
|
readOnly: N,
|
|
5894
|
-
disabled:
|
|
5895
|
-
className:
|
|
5894
|
+
disabled: w,
|
|
5895
|
+
className: A
|
|
5896
5896
|
}) {
|
|
5897
5897
|
const { t: E } = le(), D = Ee(), [L, O] = W(() => /* @__PURE__ */ new Set()), q = (y) => {
|
|
5898
5898
|
L.has(y) || O(new Set(L).add(y));
|
|
5899
|
-
}, Q = gc(e, { keyPattern: r, valueMinLength: o, valueMaxLength: s }), V = !N && !
|
|
5899
|
+
}, Q = gc(e, { keyPattern: r, valueMinLength: o, valueMaxLength: s }), V = !N && !w, U = V && (k === void 0 || e.length < k), z = u ?? E("key_value_editor.anahtar"), X = f ?? E("key_value_editor.deger"), F = (y, T) => {
|
|
5900
5900
|
q(y), t(e.map((I) => I.id === y ? { ...I, ...T } : I));
|
|
5901
5901
|
}, Z = () => t([...e, { id: Ga(), key: "", value: "" }]), J = (y) => t(e.filter((T) => T.id !== y)), ee = (y) => y.field === "key" ? y.kind === "required" ? E("key_value_editor.anahtar_zorunlu") : y.kind === "duplicate" ? E("key_value_editor.anahtar_tekrar") : n ? E("key_value_editor.anahtar_desen_ipucu", { hint: n }) : E("key_value_editor.anahtar_desen", { pattern: String(r instanceof RegExp ? r.source : r) }) : y.kind === "required" ? E("key_value_editor.deger_zorunlu") : y.kind === "too_short" ? E("key_value_editor.deger_kisa", { count: y.limit }) : E("key_value_editor.deger_uzun", { count: y.limit }), h = l == null ? void 0 : l.filter((y) => !e.some((T) => T.key === y));
|
|
5902
|
-
return /* @__PURE__ */ v("div", { className: p("flex flex-col gap-2",
|
|
5902
|
+
return /* @__PURE__ */ v("div", { className: p("flex flex-col gap-2", A), children: [
|
|
5903
5903
|
e.length === 0 ? /* @__PURE__ */ a("div", { className: "rounded-[var(--radius-md)] border border-dashed border-[var(--color-border-default)] px-3 py-4 text-center text-[length:var(--font-sm)] text-[var(--color-text-muted)]", children: b ?? E("key_value_editor.bos") }) : /* @__PURE__ */ v("div", { role: "table", "aria-label": `${z} / ${X}`, className: "flex flex-col gap-1", children: [
|
|
5904
5904
|
/* @__PURE__ */ v("div", { role: "row", className: "grid grid-cols-[minmax(0,2fr)_minmax(0,3fr)_auto] gap-2 px-0.5", children: [
|
|
5905
5905
|
/* @__PURE__ */ a("span", { role: "columnheader", className: "text-[length:var(--font-xs)] font-medium text-[var(--color-text-secondary)]", children: z }),
|
|
@@ -5919,7 +5919,7 @@ function yu({
|
|
|
5919
5919
|
onChange: (C) => F(y.id, { key: i ? i(C.target.value) : C.target.value }),
|
|
5920
5920
|
onBlur: () => q(y.id),
|
|
5921
5921
|
readOnly: N,
|
|
5922
|
-
disabled:
|
|
5922
|
+
disabled: w,
|
|
5923
5923
|
placeholder: m,
|
|
5924
5924
|
list: h && h.length > 0 ? `${D}-keys` : void 0,
|
|
5925
5925
|
"aria-label": `${z} ${T + 1}`,
|
|
@@ -5938,7 +5938,7 @@ function yu({
|
|
|
5938
5938
|
onChange: (C) => F(y.id, { value: C.target.value }),
|
|
5939
5939
|
onBlur: () => q(y.id),
|
|
5940
5940
|
readOnly: N,
|
|
5941
|
-
disabled:
|
|
5941
|
+
disabled: w,
|
|
5942
5942
|
placeholder: g,
|
|
5943
5943
|
"aria-label": `${X} ${T + 1}`,
|
|
5944
5944
|
"aria-invalid": H ? !0 : void 0,
|
|
@@ -5981,13 +5981,13 @@ function xu({ open: e, onClose: t, title: r, description: n, children: o, footer
|
|
|
5981
5981
|
return m.current = t, te(() => {
|
|
5982
5982
|
if (!e) return;
|
|
5983
5983
|
f.current = document.activeElement;
|
|
5984
|
-
const g = Ir(u.current), x = (
|
|
5984
|
+
const g = Ir(u.current), x = (k) => {
|
|
5985
5985
|
if (Dr(u.current)) {
|
|
5986
|
-
if (
|
|
5986
|
+
if (k.key === "Escape") {
|
|
5987
5987
|
m.current();
|
|
5988
5988
|
return;
|
|
5989
5989
|
}
|
|
5990
|
-
Zt(
|
|
5990
|
+
Zt(k, u.current);
|
|
5991
5991
|
}
|
|
5992
5992
|
};
|
|
5993
5993
|
document.addEventListener("keydown", x), document.body.style.overflow = "hidden";
|
|
@@ -5997,10 +5997,10 @@ function xu({ open: e, onClose: t, title: r, description: n, children: o, footer
|
|
|
5997
5997
|
}, 0);
|
|
5998
5998
|
return () => {
|
|
5999
5999
|
g(), document.removeEventListener("keydown", x), document.body.style.overflow = "", window.clearTimeout(b);
|
|
6000
|
-
const
|
|
6001
|
-
if (
|
|
6000
|
+
const k = f.current;
|
|
6001
|
+
if (k && k.isConnected)
|
|
6002
6002
|
try {
|
|
6003
|
-
|
|
6003
|
+
k.focus();
|
|
6004
6004
|
} catch {
|
|
6005
6005
|
}
|
|
6006
6006
|
};
|
|
@@ -6077,10 +6077,10 @@ function ku({
|
|
|
6077
6077
|
surface: g = "glass",
|
|
6078
6078
|
closeOnBackdropClick: x = !0,
|
|
6079
6079
|
closeOnEscape: b = !0,
|
|
6080
|
-
onInteractOutside:
|
|
6080
|
+
onInteractOutside: k,
|
|
6081
6081
|
onEscapeKeyDown: N
|
|
6082
6082
|
}) {
|
|
6083
|
-
const { t:
|
|
6083
|
+
const { t: w } = le(), A = Ee(), E = Ee(), D = K(null), L = K(null), [O, q] = W(!1), Q = n ?? (r === "left" ? "280px" : "30vw"), V = K({ onClose: t, onEscapeKeyDown: N, closeOnEscape: b });
|
|
6084
6084
|
if (V.current = { onClose: t, onEscapeKeyDown: N, closeOnEscape: b }, te(() => {
|
|
6085
6085
|
if (!e) return;
|
|
6086
6086
|
L.current = document.activeElement;
|
|
@@ -6118,13 +6118,13 @@ function ku({
|
|
|
6118
6118
|
return () => cancelAnimationFrame(J);
|
|
6119
6119
|
}, [e]), !e) return null;
|
|
6120
6120
|
const U = r === "left" ? "-translate-x-full" : "translate-x-full", X = r === "right" ? "sheet-glass-divider" : "border-b border-[var(--color-border-subtle)]", F = (J) => {
|
|
6121
|
-
|
|
6121
|
+
k == null || k(J), !(J.defaultPrevented || x === !1) && t("backdrop");
|
|
6122
6122
|
}, Z = /* @__PURE__ */ a(
|
|
6123
6123
|
de,
|
|
6124
6124
|
{
|
|
6125
6125
|
variant: "ghost",
|
|
6126
6126
|
size: "sm",
|
|
6127
|
-
"aria-label":
|
|
6127
|
+
"aria-label": w("common.kapat"),
|
|
6128
6128
|
onClick: () => t("close-button"),
|
|
6129
6129
|
className: p("shrink-0", m && "text-[var(--color-text-primary)]"),
|
|
6130
6130
|
children: /* @__PURE__ */ a(Be, { size: 16, "aria-hidden": "true" })
|
|
@@ -6147,9 +6147,9 @@ function ku({
|
|
|
6147
6147
|
ref: D,
|
|
6148
6148
|
role: "dialog",
|
|
6149
6149
|
"aria-modal": "true",
|
|
6150
|
-
"aria-labelledby": o ?
|
|
6150
|
+
"aria-labelledby": o ? A : void 0,
|
|
6151
6151
|
"aria-describedby": s ? E : void 0,
|
|
6152
|
-
"aria-label": o ? void 0 :
|
|
6152
|
+
"aria-label": o ? void 0 : w("aria.panel"),
|
|
6153
6153
|
tabIndex: -1,
|
|
6154
6154
|
className: p(
|
|
6155
6155
|
"flex flex-col outline-none",
|
|
@@ -6172,7 +6172,7 @@ function ku({
|
|
|
6172
6172
|
/* @__PURE__ */ a(
|
|
6173
6173
|
"h3",
|
|
6174
6174
|
{
|
|
6175
|
-
id:
|
|
6175
|
+
id: A,
|
|
6176
6176
|
className: "truncate font-[family-name:var(--font-display)] text-[length:var(--font-md)] font-semibold text-[var(--color-text-primary)]",
|
|
6177
6177
|
children: o
|
|
6178
6178
|
}
|
|
@@ -6224,10 +6224,10 @@ function kc(e, t) {
|
|
|
6224
6224
|
}
|
|
6225
6225
|
}
|
|
6226
6226
|
function Ya({ tabs: e, defaultTab: t, activeTab: r, onTabChange: n, className: o }) {
|
|
6227
|
-
var
|
|
6228
|
-
const [s, i] = W(t ?? ((
|
|
6229
|
-
r || i(
|
|
6230
|
-
}, f = (N = e.find((
|
|
6227
|
+
var k, N;
|
|
6228
|
+
const [s, i] = W(t ?? ((k = e[0]) == null ? void 0 : k.key) ?? ""), l = r ?? s, d = Ee(), c = K([]), u = (w) => {
|
|
6229
|
+
r || i(w), n == null || n(w);
|
|
6230
|
+
}, f = (N = e.find((w) => w.key === l)) == null ? void 0 : N.content, m = (w) => `${d}-tab-${w.replace(/\s+/g, "_")}`, g = (w) => `${d}-tabpanel-${w.replace(/\s+/g, "_")}`, x = m(l), b = g(l);
|
|
6231
6231
|
return /* @__PURE__ */ v("div", { className: p("flex flex-col", o), children: [
|
|
6232
6232
|
/* @__PURE__ */ a(
|
|
6233
6233
|
"div",
|
|
@@ -6235,13 +6235,13 @@ function Ya({ tabs: e, defaultTab: t, activeTab: r, onTabChange: n, className: o
|
|
|
6235
6235
|
role: "tablist",
|
|
6236
6236
|
"aria-orientation": "horizontal",
|
|
6237
6237
|
className: "flex overflow-x-auto border-b border-[var(--color-border-subtle)]",
|
|
6238
|
-
children: e.map((
|
|
6239
|
-
const E =
|
|
6238
|
+
children: e.map((w, A) => {
|
|
6239
|
+
const E = w.key === l, D = w.icon, L = m(w.key), O = g(w.key);
|
|
6240
6240
|
return /* @__PURE__ */ v(
|
|
6241
6241
|
"button",
|
|
6242
6242
|
{
|
|
6243
6243
|
ref: (q) => {
|
|
6244
|
-
c.current[
|
|
6244
|
+
c.current[A] = q;
|
|
6245
6245
|
},
|
|
6246
6246
|
type: "button",
|
|
6247
6247
|
role: "tab",
|
|
@@ -6249,7 +6249,7 @@ function Ya({ tabs: e, defaultTab: t, activeTab: r, onTabChange: n, className: o
|
|
|
6249
6249
|
"aria-selected": E,
|
|
6250
6250
|
"aria-controls": O,
|
|
6251
6251
|
tabIndex: E ? 0 : -1,
|
|
6252
|
-
onClick: () => u(
|
|
6252
|
+
onClick: () => u(w.key),
|
|
6253
6253
|
onKeyDown: (q) => kc(q, { tabs: e, activeKey: l, tabRefs: c, onSelect: u }),
|
|
6254
6254
|
className: p(
|
|
6255
6255
|
"relative flex shrink-0 items-center gap-1.5 px-[var(--space-3)] py-[var(--space-2)]",
|
|
@@ -6262,7 +6262,7 @@ function Ya({ tabs: e, defaultTab: t, activeTab: r, onTabChange: n, className: o
|
|
|
6262
6262
|
),
|
|
6263
6263
|
children: [
|
|
6264
6264
|
D && /* @__PURE__ */ a(D, { size: 14, "aria-hidden": "true" }),
|
|
6265
|
-
|
|
6265
|
+
w.label,
|
|
6266
6266
|
E && /* @__PURE__ */ a(
|
|
6267
6267
|
"span",
|
|
6268
6268
|
{
|
|
@@ -6275,7 +6275,7 @@ function Ya({ tabs: e, defaultTab: t, activeTab: r, onTabChange: n, className: o
|
|
|
6275
6275
|
)
|
|
6276
6276
|
]
|
|
6277
6277
|
},
|
|
6278
|
-
|
|
6278
|
+
w.key
|
|
6279
6279
|
);
|
|
6280
6280
|
})
|
|
6281
6281
|
}
|
|
@@ -6348,32 +6348,32 @@ function wu({
|
|
|
6348
6348
|
className: d
|
|
6349
6349
|
}) {
|
|
6350
6350
|
var V, U;
|
|
6351
|
-
const { t: c } = le(), u = Ee(), f = r ?? ((V = e.find((z) => !z.disabled)) == null ? void 0 : V.key) ?? ((U = e[0]) == null ? void 0 : U.key) ?? "", m = r ?? f, [g, x] = W(f), b = t !== void 0,
|
|
6351
|
+
const { t: c } = le(), u = Ee(), f = r ?? ((V = e.find((z) => !z.disabled)) == null ? void 0 : V.key) ?? ((U = e[0]) == null ? void 0 : U.key) ?? "", m = r ?? f, [g, x] = W(f), b = t !== void 0, k = b ? t : g, N = K({}), w = wc(s), A = K(!1), E = ae(
|
|
6352
6352
|
(z) => {
|
|
6353
|
-
z !==
|
|
6353
|
+
z !== k && (b || x(z), n == null || n(z));
|
|
6354
6354
|
},
|
|
6355
|
-
[
|
|
6355
|
+
[k, b, n]
|
|
6356
6356
|
);
|
|
6357
6357
|
te(() => {
|
|
6358
|
-
if (!
|
|
6358
|
+
if (!w || typeof window > "u") return;
|
|
6359
6359
|
const z = () => {
|
|
6360
|
-
const X = new URLSearchParams(window.location.search).get(
|
|
6361
|
-
X && e.some((F) => F.key === X && !F.disabled) && (
|
|
6360
|
+
const X = new URLSearchParams(window.location.search).get(w.param);
|
|
6361
|
+
X && e.some((F) => F.key === X && !F.disabled) && (A.current = !0, b ? n == null || n(X) : x(X));
|
|
6362
6362
|
};
|
|
6363
6363
|
return z(), window.addEventListener("popstate", z), () => window.removeEventListener("popstate", z);
|
|
6364
|
-
}, [
|
|
6365
|
-
if (!
|
|
6366
|
-
if (
|
|
6367
|
-
|
|
6364
|
+
}, [w == null ? void 0 : w.param]), te(() => {
|
|
6365
|
+
if (!w || typeof window > "u") return;
|
|
6366
|
+
if (A.current) {
|
|
6367
|
+
A.current = !1;
|
|
6368
6368
|
return;
|
|
6369
6369
|
}
|
|
6370
6370
|
const z = new URL(window.location.href);
|
|
6371
|
-
|
|
6371
|
+
k === m ? z.searchParams.delete(w.param) : z.searchParams.set(w.param, k);
|
|
6372
6372
|
const X = `${z.pathname}${z.search}${z.hash}`;
|
|
6373
|
-
|
|
6374
|
-
}, [
|
|
6373
|
+
w.history === "push" ? window.history.pushState(window.history.state, "", X) : window.history.replaceState(window.history.state, "", X);
|
|
6374
|
+
}, [k]);
|
|
6375
6375
|
const D = (z) => `${u}-tab-${z.replace(/\s+/g, "_")}`, L = (z) => `${u}-tabpanel-${z.replace(/\s+/g, "_")}`, O = (z) => l ? l(z.key) : z.count, q = (z, X) => {
|
|
6376
|
-
const F = z.key ===
|
|
6376
|
+
const F = z.key === k, Z = O(z);
|
|
6377
6377
|
return /* @__PURE__ */ v(
|
|
6378
6378
|
"button",
|
|
6379
6379
|
{
|
|
@@ -6389,7 +6389,7 @@ function wu({
|
|
|
6389
6389
|
disabled: z.disabled,
|
|
6390
6390
|
tabIndex: F ? 0 : -1,
|
|
6391
6391
|
onClick: () => !z.disabled && E(z.key),
|
|
6392
|
-
onKeyDown: (J) => Ac(J, { tabs: e, activeKey:
|
|
6392
|
+
onKeyDown: (J) => Ac(J, { tabs: e, activeKey: k, tabRefs: N, onSelect: E }),
|
|
6393
6393
|
className: p(
|
|
6394
6394
|
"relative flex shrink-0 items-center gap-1.5 text-[length:var(--font-sm)] font-medium",
|
|
6395
6395
|
"transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-easing-out-quint)]",
|
|
@@ -6449,7 +6449,7 @@ function wu({
|
|
|
6449
6449
|
{
|
|
6450
6450
|
label: c("common.daha_fazla"),
|
|
6451
6451
|
items: X,
|
|
6452
|
-
activeKey:
|
|
6452
|
+
activeKey: k,
|
|
6453
6453
|
onSelect: E,
|
|
6454
6454
|
resolveCount: O
|
|
6455
6455
|
}
|
|
@@ -6467,7 +6467,7 @@ function wu({
|
|
|
6467
6467
|
children: e.map((z) => q(z, !1))
|
|
6468
6468
|
}
|
|
6469
6469
|
);
|
|
6470
|
-
return /* @__PURE__ */ a(en.Provider, { value: { activeKey:
|
|
6470
|
+
return /* @__PURE__ */ a(en.Provider, { value: { activeKey: k }, children: /* @__PURE__ */ v("div", { className: p("flex flex-col", d), children: [
|
|
6471
6471
|
Q,
|
|
6472
6472
|
i != null && /* @__PURE__ */ a("div", { className: "pt-[var(--space-3)]", children: i })
|
|
6473
6473
|
] }) });
|
|
@@ -6605,8 +6605,8 @@ function an({
|
|
|
6605
6605
|
onOpenChange: s,
|
|
6606
6606
|
className: i
|
|
6607
6607
|
}) {
|
|
6608
|
-
const [l, d] = W(!1), c = o ?? l, u = K(null), f = K(null), m = K(null), [g, x] = W(null), b = (
|
|
6609
|
-
if (!
|
|
6608
|
+
const [l, d] = W(!1), c = o ?? l, u = K(null), f = K(null), m = K(null), [g, x] = W(null), b = (k) => {
|
|
6609
|
+
if (!k) {
|
|
6610
6610
|
x(null);
|
|
6611
6611
|
const N = m.current ?? u.current;
|
|
6612
6612
|
if (N && N.isConnected)
|
|
@@ -6615,7 +6615,7 @@ function an({
|
|
|
6615
6615
|
} catch {
|
|
6616
6616
|
}
|
|
6617
6617
|
}
|
|
6618
|
-
o === void 0 && d(
|
|
6618
|
+
o === void 0 && d(k), s == null || s(k);
|
|
6619
6619
|
};
|
|
6620
6620
|
return Ze(() => {
|
|
6621
6621
|
if (!c || !u.current) {
|
|
@@ -6623,55 +6623,55 @@ function an({
|
|
|
6623
6623
|
return;
|
|
6624
6624
|
}
|
|
6625
6625
|
m.current = document.activeElement, requestAnimationFrame(() => {
|
|
6626
|
-
const N = u.current,
|
|
6626
|
+
const N = u.current, w = f.current;
|
|
6627
6627
|
if (!N) return;
|
|
6628
|
-
const
|
|
6628
|
+
const A = N.getBoundingClientRect(), E = { top: 0, left: 0 };
|
|
6629
6629
|
switch (r) {
|
|
6630
6630
|
case "bottom":
|
|
6631
|
-
E.top =
|
|
6631
|
+
E.top = A.bottom + 4;
|
|
6632
6632
|
break;
|
|
6633
6633
|
case "top":
|
|
6634
|
-
E.top =
|
|
6634
|
+
E.top = A.top - 4;
|
|
6635
6635
|
break;
|
|
6636
6636
|
case "left":
|
|
6637
|
-
E.left =
|
|
6637
|
+
E.left = A.left - 4, E.top = A.top;
|
|
6638
6638
|
break;
|
|
6639
6639
|
case "right":
|
|
6640
|
-
E.left =
|
|
6640
|
+
E.left = A.right + 4, E.top = A.top;
|
|
6641
6641
|
break;
|
|
6642
6642
|
}
|
|
6643
6643
|
if (r === "bottom" || r === "top")
|
|
6644
6644
|
switch (n) {
|
|
6645
6645
|
case "start":
|
|
6646
|
-
E.left =
|
|
6646
|
+
E.left = A.left;
|
|
6647
6647
|
break;
|
|
6648
6648
|
case "center":
|
|
6649
|
-
E.left =
|
|
6649
|
+
E.left = A.left + A.width / 2;
|
|
6650
6650
|
break;
|
|
6651
6651
|
case "end":
|
|
6652
|
-
E.left =
|
|
6652
|
+
E.left = A.right;
|
|
6653
6653
|
break;
|
|
6654
6654
|
}
|
|
6655
|
-
if (
|
|
6656
|
-
const D =
|
|
6657
|
-
n === "end" ? E.left =
|
|
6655
|
+
if (w) {
|
|
6656
|
+
const D = w.getBoundingClientRect(), L = window.innerWidth, O = window.innerHeight;
|
|
6657
|
+
n === "end" ? E.left = A.right - D.width : n === "center" && (E.left = A.left + A.width / 2 - D.width / 2), E.left + D.width > L - 8 && (E.left = L - D.width - 8), E.left < 8 && (E.left = 8), r === "top" && (E.top = A.top - D.height - 4), E.top + D.height > O - 8 && (E.top = O - D.height - 8), E.top < 8 && (E.top = 8);
|
|
6658
6658
|
}
|
|
6659
6659
|
x(E);
|
|
6660
6660
|
});
|
|
6661
6661
|
}, [c, r, n]), te(() => {
|
|
6662
6662
|
if (!c) return;
|
|
6663
|
-
const
|
|
6664
|
-
u.current && !u.current.contains(
|
|
6665
|
-
}, N = (
|
|
6666
|
-
var
|
|
6667
|
-
if (
|
|
6663
|
+
const k = (w) => {
|
|
6664
|
+
u.current && !u.current.contains(w.target) && f.current && !f.current.contains(w.target) && b(!1);
|
|
6665
|
+
}, N = (w) => {
|
|
6666
|
+
var A;
|
|
6667
|
+
if (w.key === "Escape") {
|
|
6668
6668
|
b(!1);
|
|
6669
6669
|
return;
|
|
6670
6670
|
}
|
|
6671
|
-
|
|
6671
|
+
w.key === "Tab" && ((A = f.current) != null && A.contains(document.activeElement)) && (w.preventDefault(), b(!1));
|
|
6672
6672
|
};
|
|
6673
|
-
return document.addEventListener("mousedown",
|
|
6674
|
-
document.removeEventListener("mousedown",
|
|
6673
|
+
return document.addEventListener("mousedown", k), document.addEventListener("keydown", N), () => {
|
|
6674
|
+
document.removeEventListener("mousedown", k), document.removeEventListener("keydown", N);
|
|
6675
6675
|
};
|
|
6676
6676
|
}, [c]), /* @__PURE__ */ v(we, { children: [
|
|
6677
6677
|
/* @__PURE__ */ a("div", { ref: u, className: "inline-flex", onClick: () => b(!c), children: e }),
|
|
@@ -6723,15 +6723,15 @@ function Cc({
|
|
|
6723
6723
|
enableGlobalShortcut: g = !0,
|
|
6724
6724
|
placeholder: x,
|
|
6725
6725
|
inputSize: b = "sm",
|
|
6726
|
-
dropdownMinWidth:
|
|
6726
|
+
dropdownMinWidth: k = Ic,
|
|
6727
6727
|
gap: N = Sc,
|
|
6728
|
-
className:
|
|
6728
|
+
className: w
|
|
6729
6729
|
}) {
|
|
6730
|
-
const [
|
|
6730
|
+
const [A, E] = W(!1), [D, L] = W(-1), [O, q] = W({
|
|
6731
6731
|
top: 0,
|
|
6732
6732
|
left: 0,
|
|
6733
|
-
width:
|
|
6734
|
-
}), Q = K(null), V = K(null), U = K(null), z = K(null), X = Ee(), F = r.trim().length > 0, Z =
|
|
6733
|
+
width: k
|
|
6734
|
+
}), Q = K(null), V = K(null), U = K(null), z = K(null), X = Ee(), F = r.trim().length > 0, Z = A && (F || e.length > 0), J = be(() => {
|
|
6735
6735
|
const C = /* @__PURE__ */ new Map(), G = [];
|
|
6736
6736
|
for (const re of e) {
|
|
6737
6737
|
const j = re.group;
|
|
@@ -6761,9 +6761,9 @@ function Cc({
|
|
|
6761
6761
|
q({
|
|
6762
6762
|
top: C.bottom + N,
|
|
6763
6763
|
left: C.left,
|
|
6764
|
-
width: Math.max(C.width,
|
|
6764
|
+
width: Math.max(C.width, k)
|
|
6765
6765
|
});
|
|
6766
|
-
}, [N,
|
|
6766
|
+
}, [N, k]);
|
|
6767
6767
|
Ze(() => {
|
|
6768
6768
|
if (Z)
|
|
6769
6769
|
return y(), window.addEventListener("resize", y), window.addEventListener("scroll", y, !0), () => {
|
|
@@ -6833,7 +6833,7 @@ function Cc({
|
|
|
6833
6833
|
}
|
|
6834
6834
|
const S = ee.length === 0;
|
|
6835
6835
|
let _ = -1;
|
|
6836
|
-
return /* @__PURE__ */ v("div", { ref: Q, className: p("relative",
|
|
6836
|
+
return /* @__PURE__ */ v("div", { ref: Q, className: p("relative", w), children: [
|
|
6837
6837
|
/* @__PURE__ */ a(
|
|
6838
6838
|
Se,
|
|
6839
6839
|
{
|
|
@@ -7328,10 +7328,10 @@ function Iu({
|
|
|
7328
7328
|
sortBy: g,
|
|
7329
7329
|
sortDirection: x,
|
|
7330
7330
|
onSortChange: b,
|
|
7331
|
-
manualSorting:
|
|
7331
|
+
manualSorting: k,
|
|
7332
7332
|
rowSelection: N,
|
|
7333
|
-
onRowSelectionChange:
|
|
7334
|
-
page:
|
|
7333
|
+
onRowSelectionChange: w,
|
|
7334
|
+
page: A,
|
|
7335
7335
|
pageSize: E,
|
|
7336
7336
|
total: D,
|
|
7337
7337
|
pagination: L,
|
|
@@ -7353,7 +7353,7 @@ function Iu({
|
|
|
7353
7353
|
bulkActionsContent: P
|
|
7354
7354
|
}) {
|
|
7355
7355
|
var _e, Te;
|
|
7356
|
-
const B = L ? L.page + 1 :
|
|
7356
|
+
const B = L ? L.page + 1 : A, H = (L == null ? void 0 : L.size) ?? E, ce = (L == null ? void 0 : L.totalElements) ?? D, S = (ie) => {
|
|
7357
7357
|
O == null || O(L ? ie - 1 : ie);
|
|
7358
7358
|
}, _ = g !== void 0, C = be(
|
|
7359
7359
|
() => g ? [{ id: g, desc: x === "DESC" }] : ia,
|
|
@@ -7415,7 +7415,7 @@ function Iu({
|
|
|
7415
7415
|
ie = [...ie, Ne];
|
|
7416
7416
|
}
|
|
7417
7417
|
return ie;
|
|
7418
|
-
}, [e, l, ee]), R =
|
|
7418
|
+
}, [e, l, ee]), R = k ?? _, me = wn({
|
|
7419
7419
|
data: t,
|
|
7420
7420
|
columns: Ae,
|
|
7421
7421
|
state: {
|
|
@@ -7423,7 +7423,7 @@ function Iu({
|
|
|
7423
7423
|
rowSelection: N ?? _c
|
|
7424
7424
|
},
|
|
7425
7425
|
onSortingChange: Y,
|
|
7426
|
-
onRowSelectionChange:
|
|
7426
|
+
onRowSelectionChange: w,
|
|
7427
7427
|
getCoreRowModel: En(),
|
|
7428
7428
|
getSortedRowModel: re && !R ? Nn() : void 0,
|
|
7429
7429
|
manualSorting: R,
|
|
@@ -7931,9 +7931,9 @@ function Cu({
|
|
|
7931
7931
|
emptyOperators: l = !1,
|
|
7932
7932
|
showChips: d = !0
|
|
7933
7933
|
}) {
|
|
7934
|
-
const { t: c } = le(), u = K(null), f = Ee(), [m, g] = W(() => ua(e, t)), x = td(t), [b,
|
|
7934
|
+
const { t: c } = le(), u = K(null), f = Ee(), [m, g] = W(() => ua(e, t)), x = td(t), [b, k] = W(x);
|
|
7935
7935
|
if (b !== x) {
|
|
7936
|
-
|
|
7936
|
+
k(x);
|
|
7937
7937
|
const h = ua(e, t);
|
|
7938
7938
|
rd(m, h) || g(h);
|
|
7939
7939
|
}
|
|
@@ -7953,15 +7953,15 @@ function Cu({
|
|
|
7953
7953
|
var h;
|
|
7954
7954
|
(h = N.current) == null || h.call(N, Qc(m));
|
|
7955
7955
|
}, [m]);
|
|
7956
|
-
const
|
|
7956
|
+
const w = ae(
|
|
7957
7957
|
(h) => da(h, l),
|
|
7958
7958
|
[l]
|
|
7959
|
-
),
|
|
7959
|
+
), A = ae(
|
|
7960
7960
|
(h) => ed(h, da(h, l)),
|
|
7961
7961
|
[l]
|
|
7962
7962
|
), E = ae(
|
|
7963
|
-
(h) => m[h.key] ?? { operator:
|
|
7964
|
-
[m,
|
|
7963
|
+
(h) => m[h.key] ?? { operator: A(h), value: "" },
|
|
7964
|
+
[m, A]
|
|
7965
7965
|
), D = ae(
|
|
7966
7966
|
(h) => {
|
|
7967
7967
|
var y;
|
|
@@ -7971,10 +7971,10 @@ function Cu({
|
|
|
7971
7971
|
), L = ae((h, y) => {
|
|
7972
7972
|
g((T) => {
|
|
7973
7973
|
var B;
|
|
7974
|
-
const I = h.key, P = { ...T, [I]: { operator: ((B = T[I]) == null ? void 0 : B.operator) ??
|
|
7975
|
-
return ht(P, I, e,
|
|
7974
|
+
const I = h.key, P = { ...T, [I]: { operator: ((B = T[I]) == null ? void 0 : B.operator) ?? A(h), value: y } };
|
|
7975
|
+
return ht(P, I, e, A), P;
|
|
7976
7976
|
});
|
|
7977
|
-
}, [e,
|
|
7977
|
+
}, [e, A]), O = ae((h, y) => {
|
|
7978
7978
|
const { fromKey: T, toKey: I } = $e(h);
|
|
7979
7979
|
g((P) => {
|
|
7980
7980
|
var H, ce;
|
|
@@ -7989,9 +7989,9 @@ function Cu({
|
|
|
7989
7989
|
value: ((ce = y.end) == null ? void 0 : ce.toISOString()) ?? ""
|
|
7990
7990
|
}
|
|
7991
7991
|
};
|
|
7992
|
-
return mr(B, h.key), ht(B, h.key, e,
|
|
7992
|
+
return mr(B, h.key), ht(B, h.key, e, A), B;
|
|
7993
7993
|
});
|
|
7994
|
-
}, [e,
|
|
7994
|
+
}, [e, A]), q = ae((h) => {
|
|
7995
7995
|
var B, H;
|
|
7996
7996
|
const { fromKey: y, toKey: T } = $e(h), I = (B = m[y]) == null ? void 0 : B.value, P = (H = m[T]) == null ? void 0 : H.value;
|
|
7997
7997
|
return { start: I ? new Date(I) : null, end: P ? new Date(P) : null };
|
|
@@ -8006,25 +8006,25 @@ function Cu({
|
|
|
8006
8006
|
return mr(ue, T), ue;
|
|
8007
8007
|
}
|
|
8008
8008
|
const G = { ...P }, { fromKey: Y, toKey: re } = $e(h), j = !!((S = P[Y]) != null && S.value) || !!((_ = P[re]) != null && _.value);
|
|
8009
|
-
return G[Y] = { operator: Nt, value: "" }, G[re] = { operator: Et, value: "" }, G[T] = { operator: ur(y), value: "" }, j && ht(G, T, e,
|
|
8009
|
+
return G[Y] = { operator: Nt, value: "" }, G[re] = { operator: Et, value: "" }, G[T] = { operator: ur(y), value: "" }, j && ht(G, T, e, A), G;
|
|
8010
8010
|
}
|
|
8011
8011
|
const B = ((C = P[T]) == null ? void 0 : C.value) ?? "", H = {
|
|
8012
8012
|
...P,
|
|
8013
8013
|
[T]: { operator: ur(y), value: I ? "" : B }
|
|
8014
8014
|
};
|
|
8015
|
-
return I && B !== "" && ht(H, T, e,
|
|
8015
|
+
return I && B !== "" && ht(H, T, e, A), H;
|
|
8016
8016
|
});
|
|
8017
|
-
}, [e,
|
|
8017
|
+
}, [e, A]), V = ae((h) => {
|
|
8018
8018
|
if (h.type === "daterange") {
|
|
8019
8019
|
O(h, { start: null, end: null });
|
|
8020
8020
|
return;
|
|
8021
8021
|
}
|
|
8022
8022
|
g((y) => {
|
|
8023
8023
|
var B;
|
|
8024
|
-
const T = (B = y[h.key]) == null ? void 0 : B.operator, I = T && !Ue(T) ? T :
|
|
8025
|
-
return ht(P, h.key, e,
|
|
8024
|
+
const T = (B = y[h.key]) == null ? void 0 : B.operator, I = T && !Ue(T) ? T : A(h), P = { ...y, [h.key]: { operator: I, value: "" } };
|
|
8025
|
+
return ht(P, h.key, e, A), P;
|
|
8026
8026
|
});
|
|
8027
|
-
}, [e,
|
|
8027
|
+
}, [e, A, O]), U = K(/* @__PURE__ */ new Map()), z = K(/* @__PURE__ */ new Map()), X = (h) => {
|
|
8028
8028
|
V(h), setTimeout(() => {
|
|
8029
8029
|
var T, I;
|
|
8030
8030
|
const y = ((T = U.current.get(h.key)) == null ? void 0 : T.querySelector(cr)) ?? ((I = z.current.get(h.key)) == null ? void 0 : I.querySelector(cr));
|
|
@@ -8104,7 +8104,7 @@ function Cu({
|
|
|
8104
8104
|
}) }),
|
|
8105
8105
|
/* @__PURE__ */ a("div", { className: "flex-1 overflow-y-auto p-[var(--space-3)]", children: /* @__PURE__ */ a("div", { className: "flex flex-col gap-[var(--space-3)]", children: e.map((h) => {
|
|
8106
8106
|
var B;
|
|
8107
|
-
const y = E(h), T =
|
|
8107
|
+
const y = E(h), T = w(h), I = D(h), P = h.type === "daterange" ? I ?? sn.value : y.operator;
|
|
8108
8108
|
return /* @__PURE__ */ v("div", { className: "flex flex-col gap-[var(--space-1)]", children: [
|
|
8109
8109
|
/* @__PURE__ */ a(Er, { className: "text-[length:var(--font-xs)]", children: h.label }),
|
|
8110
8110
|
/* @__PURE__ */ v(
|
|
@@ -8217,9 +8217,9 @@ function Mu({
|
|
|
8217
8217
|
onProblemClick: l,
|
|
8218
8218
|
formView: d = !0
|
|
8219
8219
|
}) {
|
|
8220
|
-
const { t: c } = le(), u = Ee(), f = `${u}-tab-raw`, m = `${u}-tab-form`, g = `${u}-raw`, x = `${u}-form`, [b,
|
|
8220
|
+
const { t: c } = le(), u = Ee(), f = `${u}-tab-raw`, m = `${u}-tab-form`, g = `${u}-raw`, x = `${u}-form`, [b, k] = W("raw"), [N, w] = W(!1), A = K(null), E = K(null), D = K(null), L = ae(() => {
|
|
8221
8221
|
var C;
|
|
8222
|
-
const _ = `translateY(${-(((C =
|
|
8222
|
+
const _ = `translateY(${-(((C = A.current) == null ? void 0 : C.scrollTop) ?? 0)}px)`;
|
|
8223
8223
|
E.current && (E.current.style.transform = _), D.current && (D.current.style.transform = _);
|
|
8224
8224
|
}, []);
|
|
8225
8225
|
Ze(L);
|
|
@@ -8255,9 +8255,9 @@ function Mu({
|
|
|
8255
8255
|
_.line === void 0 || typeof C.message != "string" || S.set(_.line, [...S.get(_.line) ?? [], C.message]);
|
|
8256
8256
|
return S;
|
|
8257
8257
|
}, [F]), ee = (S) => {
|
|
8258
|
-
|
|
8258
|
+
w(!0), t == null || t(S);
|
|
8259
8259
|
}, h = () => {
|
|
8260
|
-
|
|
8260
|
+
w(!0);
|
|
8261
8261
|
try {
|
|
8262
8262
|
t == null || t(JSON.stringify(JSON.parse(O), null, 2));
|
|
8263
8263
|
} catch {
|
|
@@ -8273,8 +8273,8 @@ function Mu({
|
|
|
8273
8273
|
}, [O, c]), I = ae(
|
|
8274
8274
|
(S) => {
|
|
8275
8275
|
var ue;
|
|
8276
|
-
|
|
8277
|
-
const _ =
|
|
8276
|
+
k("raw");
|
|
8277
|
+
const _ = A.current;
|
|
8278
8278
|
if (!_) return;
|
|
8279
8279
|
const C = _.value.split(`
|
|
8280
8280
|
`), G = Math.min(Math.max(S, 1), C.length);
|
|
@@ -8312,7 +8312,7 @@ function Mu({
|
|
|
8312
8312
|
id: f,
|
|
8313
8313
|
"aria-selected": b === "raw",
|
|
8314
8314
|
"aria-controls": g,
|
|
8315
|
-
onClick: () =>
|
|
8315
|
+
onClick: () => k("raw"),
|
|
8316
8316
|
className: H(b === "raw"),
|
|
8317
8317
|
children: c("json_editor.ham_json")
|
|
8318
8318
|
}
|
|
@@ -8327,7 +8327,7 @@ function Mu({
|
|
|
8327
8327
|
"aria-controls": x,
|
|
8328
8328
|
"aria-disabled": !z,
|
|
8329
8329
|
disabled: !z,
|
|
8330
|
-
onClick: () =>
|
|
8330
|
+
onClick: () => k("form"),
|
|
8331
8331
|
className: p(H(b === "form"), !z && "cursor-not-allowed opacity-50"),
|
|
8332
8332
|
children: c("json_editor.form_gorunumu")
|
|
8333
8333
|
}
|
|
@@ -8402,7 +8402,7 @@ function Mu({
|
|
|
8402
8402
|
/* @__PURE__ */ a(
|
|
8403
8403
|
"textarea",
|
|
8404
8404
|
{
|
|
8405
|
-
ref:
|
|
8405
|
+
ref: A,
|
|
8406
8406
|
value: O,
|
|
8407
8407
|
onChange: (S) => ee(S.target.value),
|
|
8408
8408
|
onScroll: L,
|
|
@@ -8586,12 +8586,12 @@ function Tu({
|
|
|
8586
8586
|
emptyContent: f,
|
|
8587
8587
|
className: m
|
|
8588
8588
|
}) {
|
|
8589
|
-
const { t: g } = le(), [x, b] = W(s), [
|
|
8589
|
+
const { t: g } = le(), [x, b] = W(s), [k, N] = W({
|
|
8590
8590
|
entries: null,
|
|
8591
8591
|
ids: /* @__PURE__ */ new Set()
|
|
8592
|
-
}),
|
|
8593
|
-
() => E ? ls(
|
|
8594
|
-
[E,
|
|
8592
|
+
}), w = be(() => ma(e, l, d), [e, l, d]), A = be(() => ma(t, l, d), [t, l, d]), E = w.json && A.json, D = be(() => ss(w.text, A.text), [w.text, A.text]), L = be(() => is(D), [D]), O = be(() => sd(D, Math.max(0, c)), [D, c]), q = k.entries === D ? k.ids : /* @__PURE__ */ new Set(), Q = (y) => N({ entries: D, ids: new Set(q).add(y) }), V = be(
|
|
8593
|
+
() => E ? ls(w.value, A.value, { arrayKey: d }) : [],
|
|
8594
|
+
[E, w.value, A.value, d]
|
|
8595
8595
|
), U = o ?? x, z = U === "changes" && !E ? "unified" : U, X = (y) => {
|
|
8596
8596
|
o === void 0 && b(y), i == null || i(y);
|
|
8597
8597
|
}, F = L.added === 0 && L.removed === 0, Z = {
|
|
@@ -8875,20 +8875,20 @@ function ud({ editor: e, toolbar: t, labels: r, disabled: n }) {
|
|
|
8875
8875
|
},
|
|
8876
8876
|
"link"
|
|
8877
8877
|
);
|
|
8878
|
-
const
|
|
8879
|
-
if (!
|
|
8880
|
-
const N =
|
|
8878
|
+
const k = dd[x];
|
|
8879
|
+
if (!k) return null;
|
|
8880
|
+
const N = k.icon, w = ((E = k.isActive) == null ? void 0 : E.call(k, e)) ?? !1, A = k.canRun ? k.canRun(e) : !0;
|
|
8881
8881
|
return /* @__PURE__ */ a(
|
|
8882
8882
|
de,
|
|
8883
8883
|
{
|
|
8884
8884
|
type: "button",
|
|
8885
8885
|
variant: "ghost",
|
|
8886
8886
|
size: "sm",
|
|
8887
|
-
disabled: n || !
|
|
8887
|
+
disabled: n || !A,
|
|
8888
8888
|
"aria-label": u(x),
|
|
8889
|
-
"aria-pressed":
|
|
8890
|
-
onClick: () =>
|
|
8891
|
-
className: p(
|
|
8889
|
+
"aria-pressed": w,
|
|
8890
|
+
onClick: () => k.run(e),
|
|
8891
|
+
className: p(w && fa),
|
|
8892
8892
|
children: /* @__PURE__ */ a(N, { size: 15 })
|
|
8893
8893
|
},
|
|
8894
8894
|
x
|
|
@@ -8926,7 +8926,7 @@ function zu({
|
|
|
8926
8926
|
linkOptions: x,
|
|
8927
8927
|
labels: b
|
|
8928
8928
|
}) {
|
|
8929
|
-
const { t:
|
|
8929
|
+
const { t: k } = le(), N = !(n || o), w = K(!1), A = Cn({
|
|
8930
8930
|
editable: N,
|
|
8931
8931
|
autofocus: s,
|
|
8932
8932
|
extensions: [
|
|
@@ -8940,20 +8940,20 @@ function zu({
|
|
|
8940
8940
|
attributes: {
|
|
8941
8941
|
role: "textbox",
|
|
8942
8942
|
"aria-multiline": "true",
|
|
8943
|
-
"aria-label": d ??
|
|
8943
|
+
"aria-label": d ?? k("rich_text_editor.editor"),
|
|
8944
8944
|
...l ? { id: l } : {},
|
|
8945
8945
|
style: `min-height:${i}`
|
|
8946
8946
|
}
|
|
8947
8947
|
},
|
|
8948
8948
|
onUpdate: ({ editor: E }) => {
|
|
8949
|
-
|
|
8949
|
+
w.current || t(E.getHTML());
|
|
8950
8950
|
}
|
|
8951
8951
|
});
|
|
8952
8952
|
return te(() => {
|
|
8953
|
-
|
|
8954
|
-
}, [e,
|
|
8955
|
-
|
|
8956
|
-
}, [
|
|
8953
|
+
A && e !== A.getHTML() && (w.current = !0, A.commands.setContent(e), w.current = !1);
|
|
8954
|
+
}, [e, A]), te(() => {
|
|
8955
|
+
A && A.setEditable(N);
|
|
8956
|
+
}, [A, N]), /* @__PURE__ */ v("div", { className: p("lena-rte", u), children: [
|
|
8957
8957
|
/* @__PURE__ */ v(
|
|
8958
8958
|
"div",
|
|
8959
8959
|
{
|
|
@@ -8966,7 +8966,7 @@ function zu({
|
|
|
8966
8966
|
f !== !1 && /* @__PURE__ */ a(
|
|
8967
8967
|
ud,
|
|
8968
8968
|
{
|
|
8969
|
-
editor:
|
|
8969
|
+
editor: A,
|
|
8970
8970
|
toolbar: f,
|
|
8971
8971
|
labels: b,
|
|
8972
8972
|
disabled: o
|
|
@@ -8975,7 +8975,7 @@ function zu({
|
|
|
8975
8975
|
/* @__PURE__ */ a(
|
|
8976
8976
|
Mn,
|
|
8977
8977
|
{
|
|
8978
|
-
editor:
|
|
8978
|
+
editor: A,
|
|
8979
8979
|
className: "px-[var(--space-3)] py-[var(--space-2)] text-[length:var(--font-sm)] text-[var(--color-text-primary)]"
|
|
8980
8980
|
}
|
|
8981
8981
|
)
|
|
@@ -9047,14 +9047,14 @@ function un({
|
|
|
9047
9047
|
}) {
|
|
9048
9048
|
const l = cn(t), d = l === "object" || l === "array", [c, u] = W(!i && o), f = s !== "", m = n && c && !f, g = e !== void 0 ? /* @__PURE__ */ a("span", { className: "text-[var(--color-primary)]", children: va(e, s) }) : null;
|
|
9049
9049
|
if (!d) {
|
|
9050
|
-
const
|
|
9050
|
+
const w = l === "string" ? `"${String(t)}"` : String(t);
|
|
9051
9051
|
return /* @__PURE__ */ v("div", { className: "flex gap-1 leading-5", children: [
|
|
9052
9052
|
g,
|
|
9053
9053
|
g && /* @__PURE__ */ a("span", { className: "text-[var(--color-text-muted)]", children: ":" }),
|
|
9054
|
-
/* @__PURE__ */ a("span", { className: pd[l], children: va(
|
|
9054
|
+
/* @__PURE__ */ a("span", { className: pd[l], children: va(w, s) })
|
|
9055
9055
|
] });
|
|
9056
9056
|
}
|
|
9057
|
-
const x = l === "array" ? t.map((
|
|
9057
|
+
const x = l === "array" ? t.map((w, A) => [String(A), w]) : Object.entries(t), b = f ? x.filter(([w, A]) => dn(A, s, w)) : x, k = l === "array" ? "[" : "{", N = l === "array" ? "]" : "}";
|
|
9058
9058
|
return /* @__PURE__ */ v("div", { className: "leading-5", children: [
|
|
9059
9059
|
/* @__PURE__ */ v("div", { className: "flex items-center gap-1", children: [
|
|
9060
9060
|
n ? /* @__PURE__ */ a(
|
|
@@ -9063,7 +9063,7 @@ function un({
|
|
|
9063
9063
|
type: "button",
|
|
9064
9064
|
"aria-label": m ? "Expand" : "Collapse",
|
|
9065
9065
|
"aria-expanded": !m,
|
|
9066
|
-
onClick: () => u((
|
|
9066
|
+
onClick: () => u((w) => !w),
|
|
9067
9067
|
className: "flex h-4 w-4 shrink-0 items-center justify-center text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)]",
|
|
9068
9068
|
children: m ? /* @__PURE__ */ a(lt, { size: 12 }) : /* @__PURE__ */ a(it, { size: 12 })
|
|
9069
9069
|
}
|
|
@@ -9071,7 +9071,7 @@ function un({
|
|
|
9071
9071
|
g,
|
|
9072
9072
|
g && /* @__PURE__ */ a("span", { className: "text-[var(--color-text-muted)]", children: ":" }),
|
|
9073
9073
|
/* @__PURE__ */ v("span", { className: "text-[var(--color-text-secondary)]", children: [
|
|
9074
|
-
|
|
9074
|
+
k,
|
|
9075
9075
|
m && /* @__PURE__ */ v("span", { className: "text-[var(--color-text-muted)]", children: [
|
|
9076
9076
|
" ",
|
|
9077
9077
|
x.length,
|
|
@@ -9081,17 +9081,17 @@ function un({
|
|
|
9081
9081
|
] })
|
|
9082
9082
|
] }),
|
|
9083
9083
|
!m && /* @__PURE__ */ v(we, { children: [
|
|
9084
|
-
/* @__PURE__ */ a("div", { className: "flex flex-col border-l border-[var(--color-border-subtle)] pl-[var(--space-3)]", children: b.map(([
|
|
9084
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col border-l border-[var(--color-border-subtle)] pl-[var(--space-3)]", children: b.map(([w, A]) => /* @__PURE__ */ a(
|
|
9085
9085
|
un,
|
|
9086
9086
|
{
|
|
9087
|
-
nodeKey: l === "array" ? void 0 :
|
|
9088
|
-
value:
|
|
9087
|
+
nodeKey: l === "array" ? void 0 : w,
|
|
9088
|
+
value: A,
|
|
9089
9089
|
depth: r + 1,
|
|
9090
9090
|
collapsible: n,
|
|
9091
9091
|
defaultCollapsed: o,
|
|
9092
9092
|
query: s
|
|
9093
9093
|
},
|
|
9094
|
-
|
|
9094
|
+
w
|
|
9095
9095
|
)) }),
|
|
9096
9096
|
/* @__PURE__ */ a("span", { className: "text-[var(--color-text-secondary)]", children: N })
|
|
9097
9097
|
] })
|
|
@@ -9108,8 +9108,8 @@ function Ru({
|
|
|
9108
9108
|
className: l
|
|
9109
9109
|
}) {
|
|
9110
9110
|
const { t: d } = le(), [c, u] = W(""), f = be(() => fd(e), [e]), m = ae(() => {
|
|
9111
|
-
const
|
|
9112
|
-
navigator.clipboard.writeText(
|
|
9111
|
+
const k = typeof f == "string" ? f : JSON.stringify(f, null, 2);
|
|
9112
|
+
navigator.clipboard.writeText(k ?? "").then(() => {
|
|
9113
9113
|
rn.success(d("json_editor.kopyalandi"));
|
|
9114
9114
|
});
|
|
9115
9115
|
}, [f, d]), g = vd(e), x = n || o, b = s !== void 0 ? { maxHeight: typeof s == "number" ? `${s}px` : s, overflow: "auto" } : void 0;
|
|
@@ -9126,7 +9126,7 @@ function Ru({
|
|
|
9126
9126
|
Se,
|
|
9127
9127
|
{
|
|
9128
9128
|
value: c,
|
|
9129
|
-
onChange: (
|
|
9129
|
+
onChange: (k) => u(k.target.value),
|
|
9130
9130
|
placeholder: d("common.ara"),
|
|
9131
9131
|
inputSize: "sm",
|
|
9132
9132
|
"aria-label": d("common.ara"),
|
|
@@ -9229,29 +9229,29 @@ function Pu({
|
|
|
9229
9229
|
),
|
|
9230
9230
|
children: m === "completed" && !u.icon ? /* @__PURE__ */ a(Je, { size: 14, strokeWidth: 2.5 }) : u.icon ?? f + 1
|
|
9231
9231
|
}
|
|
9232
|
-
),
|
|
9232
|
+
), k = /* @__PURE__ */ v("span", { className: p("text-[length:var(--font-sm)]", gd[m], c && "text-center"), children: [
|
|
9233
9233
|
u.label,
|
|
9234
9234
|
u.optional && n != null && /* @__PURE__ */ a("span", { className: "ml-1 text-[length:var(--font-xs)] text-[var(--color-text-muted)]", children: n })
|
|
9235
9235
|
] }), N = c ? /* @__PURE__ */ v("span", { className: "flex flex-col items-center gap-[var(--space-1)]", children: [
|
|
9236
9236
|
b,
|
|
9237
|
-
|
|
9237
|
+
k
|
|
9238
9238
|
] }) : /* @__PURE__ */ v("span", { className: "flex items-center gap-[var(--space-2)]", children: [
|
|
9239
9239
|
b,
|
|
9240
|
-
|
|
9241
|
-
] }),
|
|
9240
|
+
k
|
|
9241
|
+
] }), w = {
|
|
9242
9242
|
"data-status": m,
|
|
9243
9243
|
"data-step-id": u.id,
|
|
9244
9244
|
"aria-current": m === "active" ? "step" : void 0
|
|
9245
|
-
},
|
|
9245
|
+
}, A = g ? /* @__PURE__ */ a(
|
|
9246
9246
|
"button",
|
|
9247
9247
|
{
|
|
9248
9248
|
type: "button",
|
|
9249
9249
|
onClick: () => r == null ? void 0 : r(u.id, f),
|
|
9250
9250
|
className: p("rounded-[var(--radius-sm)]", hd),
|
|
9251
|
-
...
|
|
9251
|
+
...w,
|
|
9252
9252
|
children: N
|
|
9253
9253
|
}
|
|
9254
|
-
) : /* @__PURE__ */ a("span", { ...
|
|
9254
|
+
) : /* @__PURE__ */ a("span", { ...w, children: N });
|
|
9255
9255
|
return d ? /* @__PURE__ */ v("div", { className: "flex flex-col gap-[var(--space-1)]", children: [
|
|
9256
9256
|
f > 0 && /* @__PURE__ */ a(
|
|
9257
9257
|
"span",
|
|
@@ -9263,7 +9263,7 @@ function Pu({
|
|
|
9263
9263
|
)
|
|
9264
9264
|
}
|
|
9265
9265
|
),
|
|
9266
|
-
|
|
9266
|
+
A
|
|
9267
9267
|
] }, u.id) : /* @__PURE__ */ v("div", { className: p("flex items-start", f > 0 && "flex-1"), children: [
|
|
9268
9268
|
f > 0 && /* @__PURE__ */ a(
|
|
9269
9269
|
"span",
|
|
@@ -9276,7 +9276,7 @@ function Pu({
|
|
|
9276
9276
|
)
|
|
9277
9277
|
}
|
|
9278
9278
|
),
|
|
9279
|
-
|
|
9279
|
+
A
|
|
9280
9280
|
] }, u.id);
|
|
9281
9281
|
}) });
|
|
9282
9282
|
}
|
|
@@ -9363,70 +9363,70 @@ function kd(e, t, r) {
|
|
|
9363
9363
|
l.current = r.ensureRowVisible;
|
|
9364
9364
|
const d = ae(
|
|
9365
9365
|
(g, x) => (b) => {
|
|
9366
|
-
const
|
|
9367
|
-
b ? n.current.set(
|
|
9366
|
+
const k = `${g}:${x}`;
|
|
9367
|
+
b ? n.current.set(k, b) : n.current.delete(k);
|
|
9368
9368
|
},
|
|
9369
9369
|
[]
|
|
9370
9370
|
), c = ae((g, x) => {
|
|
9371
|
-
var
|
|
9372
|
-
const b = `${g}:${x}`,
|
|
9373
|
-
const
|
|
9374
|
-
if (!
|
|
9375
|
-
if (
|
|
9371
|
+
var w;
|
|
9372
|
+
const b = `${g}:${x}`, k = () => {
|
|
9373
|
+
const A = n.current.get(b);
|
|
9374
|
+
if (!A) return !1;
|
|
9375
|
+
if (A.focus(), A instanceof HTMLInputElement)
|
|
9376
9376
|
try {
|
|
9377
|
-
|
|
9377
|
+
A.select();
|
|
9378
9378
|
} catch {
|
|
9379
9379
|
}
|
|
9380
9380
|
return !0;
|
|
9381
9381
|
};
|
|
9382
|
-
if (
|
|
9382
|
+
if (k()) return;
|
|
9383
9383
|
const N = o.current.indexOf(g);
|
|
9384
|
-
N >= 0 && ((
|
|
9385
|
-
|
|
9384
|
+
N >= 0 && ((w = l.current) == null || w.call(l, N)), requestAnimationFrame(() => {
|
|
9385
|
+
k() || requestAnimationFrame(k);
|
|
9386
9386
|
});
|
|
9387
9387
|
}, []), u = ae(
|
|
9388
9388
|
(g, x, b) => {
|
|
9389
|
-
const
|
|
9390
|
-
let
|
|
9391
|
-
for (let D = 0; D <
|
|
9392
|
-
if (E += b, E >= N.length ? (E = 0,
|
|
9393
|
-
if (
|
|
9389
|
+
const k = o.current, N = s.current, w = i.current;
|
|
9390
|
+
let A = g, E = x;
|
|
9391
|
+
for (let D = 0; D < k.length * N.length + N.length; D++) {
|
|
9392
|
+
if (E += b, E >= N.length ? (E = 0, A += 1) : E < 0 && (E = N.length - 1, A -= 1), A < 0 || A >= k.length) return;
|
|
9393
|
+
if (w(N[E])) return { rowId: k[A], colKey: N[E] };
|
|
9394
9394
|
}
|
|
9395
9395
|
},
|
|
9396
9396
|
[]
|
|
9397
9397
|
), f = ae(
|
|
9398
9398
|
(g, x, b) => {
|
|
9399
|
-
const
|
|
9400
|
-
for (let
|
|
9401
|
-
if (
|
|
9399
|
+
const k = o.current, N = s.current, w = i.current;
|
|
9400
|
+
for (let A = x + b; A >= 0 && A < N.length; A += b)
|
|
9401
|
+
if (w(N[A])) return { rowId: k[g], colKey: N[A] };
|
|
9402
9402
|
},
|
|
9403
9403
|
[]
|
|
9404
9404
|
), m = ae(
|
|
9405
9405
|
(g, x, b) => {
|
|
9406
|
-
const
|
|
9407
|
-
if (
|
|
9406
|
+
const k = o.current, N = s.current, w = k.indexOf(x), A = N.indexOf(b);
|
|
9407
|
+
if (w < 0 || A < 0) return;
|
|
9408
9408
|
const E = g.currentTarget.tagName === "SELECT", D = E ? null : g.currentTarget, L = !D || D.selectionStart === 0 && D.selectionEnd === 0, O = !D || D.selectionStart === D.value.length && D.selectionEnd === D.value.length, q = (V) => V ? (g.preventDefault(), c(V.rowId, V.colKey), !0) : !1, Q = (V) => {
|
|
9409
|
-
const U =
|
|
9409
|
+
const U = k[V];
|
|
9410
9410
|
U !== void 0 && (g.preventDefault(), c(U, b));
|
|
9411
9411
|
};
|
|
9412
9412
|
switch (g.key) {
|
|
9413
9413
|
case "Tab":
|
|
9414
|
-
q(u(
|
|
9414
|
+
q(u(w, A, g.shiftKey ? -1 : 1));
|
|
9415
9415
|
break;
|
|
9416
9416
|
case "Enter":
|
|
9417
|
-
Q(g.shiftKey ?
|
|
9417
|
+
Q(g.shiftKey ? w - 1 : w + 1);
|
|
9418
9418
|
break;
|
|
9419
9419
|
case "ArrowDown":
|
|
9420
|
-
E || Q(
|
|
9420
|
+
E || Q(w + 1);
|
|
9421
9421
|
break;
|
|
9422
9422
|
case "ArrowUp":
|
|
9423
|
-
E || Q(
|
|
9423
|
+
E || Q(w - 1);
|
|
9424
9424
|
break;
|
|
9425
9425
|
case "ArrowLeft":
|
|
9426
|
-
!E && L && q(f(
|
|
9426
|
+
!E && L && q(f(w, A, -1));
|
|
9427
9427
|
break;
|
|
9428
9428
|
case "ArrowRight":
|
|
9429
|
-
!E && O && q(f(
|
|
9429
|
+
!E && O && q(f(w, A, 1));
|
|
9430
9430
|
break;
|
|
9431
9431
|
}
|
|
9432
9432
|
},
|
|
@@ -9462,10 +9462,10 @@ const wd = se(
|
|
|
9462
9462
|
rowHeight: g = 40,
|
|
9463
9463
|
maxHeight: x = 480,
|
|
9464
9464
|
maxRows: b,
|
|
9465
|
-
onMaxRowsExceeded:
|
|
9465
|
+
onMaxRowsExceeded: k,
|
|
9466
9466
|
addRowLabel: N,
|
|
9467
|
-
emptyState:
|
|
9468
|
-
className:
|
|
9467
|
+
emptyState: w,
|
|
9468
|
+
className: A
|
|
9469
9469
|
}, E) => {
|
|
9470
9470
|
var Y, re;
|
|
9471
9471
|
const { t: D } = le(), L = K(null), O = K(/* @__PURE__ */ new Map()), q = be(() => e.map((j) => j.key), [e]), Q = be(() => t.map((j) => j.rowId), [t]), V = be(() => new Set(l ?? []), [l]), U = t.some((j) => j.status !== void 0), z = o && !i, X = e.length + (U ? 1 : 0) + (z ? 1 : 0), F = f ?? t.length > m, Z = ya({
|
|
@@ -9534,9 +9534,9 @@ const wd = se(
|
|
|
9534
9534
|
const Te = q[ye + _e];
|
|
9535
9535
|
Te !== void 0 && !V.has(Te) && (Ce.cells[Te] = Me);
|
|
9536
9536
|
});
|
|
9537
|
-
}), r(Re), Ae > 0 && (
|
|
9537
|
+
}), r(Re), Ae > 0 && (k == null || k(Ae));
|
|
9538
9538
|
},
|
|
9539
|
-
[i, t, q, V, b, P, B, r,
|
|
9539
|
+
[i, t, q, V, b, P, B, r, k]
|
|
9540
9540
|
);
|
|
9541
9541
|
te(() => {
|
|
9542
9542
|
var ue;
|
|
@@ -9622,7 +9622,7 @@ const wd = se(
|
|
|
9622
9622
|
// FIX-472: the surface fill is a GRADIENT token → needs the `image:` hint
|
|
9623
9623
|
// (bare `bg-[var(...)]` compiles to background-color and silently drops it).
|
|
9624
9624
|
"border border-[var(--data-table-surface-border)] bg-[image:var(--data-table-surface-bg)] shadow-[var(--data-table-surface-shadow)]",
|
|
9625
|
-
|
|
9625
|
+
A
|
|
9626
9626
|
),
|
|
9627
9627
|
style: {
|
|
9628
9628
|
backdropFilter: "blur(var(--data-table-surface-blur)) saturate(var(--data-table-surface-saturate))",
|
|
@@ -9667,7 +9667,7 @@ const wd = se(
|
|
|
9667
9667
|
{
|
|
9668
9668
|
colSpan: X,
|
|
9669
9669
|
className: "py-[var(--space-6)] text-center text-[var(--color-text-muted)]",
|
|
9670
|
-
children:
|
|
9670
|
+
children: w
|
|
9671
9671
|
}
|
|
9672
9672
|
) }) : F ? /* @__PURE__ */ v(we, { children: [
|
|
9673
9673
|
G.length > 0 && /* @__PURE__ */ a("tr", { "aria-hidden": !0, children: /* @__PURE__ */ a("td", { colSpan: X, style: { height: ((Y = G[0]) == null ? void 0 : Y.start) ?? 0 } }) }),
|
|
@@ -9891,16 +9891,17 @@ function Bu({
|
|
|
9891
9891
|
tabsSlot: c,
|
|
9892
9892
|
toolbarMeta: u,
|
|
9893
9893
|
secondaryActions: f,
|
|
9894
|
-
|
|
9895
|
-
|
|
9894
|
+
beforeFilterActions: m,
|
|
9895
|
+
children: g,
|
|
9896
|
+
className: x
|
|
9896
9897
|
}) {
|
|
9897
|
-
const { t:
|
|
9898
|
-
return yr(e), /* @__PURE__ */ v("div", { className: p("flex",
|
|
9898
|
+
const { t: b } = le();
|
|
9899
|
+
return yr(e), /* @__PURE__ */ v("div", { className: p("flex", x), children: [
|
|
9899
9900
|
d && /* @__PURE__ */ a(
|
|
9900
9901
|
"aside",
|
|
9901
9902
|
{
|
|
9902
9903
|
role: "complementary",
|
|
9903
|
-
"aria-label":
|
|
9904
|
+
"aria-label": b("aria.filtreler_kenar"),
|
|
9904
9905
|
className: p(
|
|
9905
9906
|
"w-[280px] shrink-0",
|
|
9906
9907
|
"bg-[var(--color-bg-card)]",
|
|
@@ -9924,9 +9925,10 @@ function Bu({
|
|
|
9924
9925
|
/* @__PURE__ */ v("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
9925
9926
|
u && /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: u }),
|
|
9926
9927
|
r && /* @__PURE__ */ a("div", { className: "max-w-md flex-1", children: r }),
|
|
9927
|
-
(o || f || t) && // The group wraps too (right-aligned) so a long secondaryActions
|
|
9928
|
+
(m || o || f || t) && // The group wraps too (right-aligned) so a long secondaryActions
|
|
9928
9929
|
// set cannot overflow on its own line either (NB-LISTLAYOUT-RESP-01).
|
|
9929
9930
|
/* @__PURE__ */ v("div", { className: "ml-auto flex flex-wrap items-center justify-end gap-2", children: [
|
|
9931
|
+
m,
|
|
9930
9932
|
o && /* @__PURE__ */ v(
|
|
9931
9933
|
de,
|
|
9932
9934
|
{
|
|
@@ -9934,7 +9936,7 @@ function Bu({
|
|
|
9934
9936
|
leftIcon: Pi,
|
|
9935
9937
|
onClick: o,
|
|
9936
9938
|
children: [
|
|
9937
|
-
|
|
9939
|
+
b("common.filtre"),
|
|
9938
9940
|
n !== void 0 && n > 0 && /* @__PURE__ */ a(He, { variant: "info", size: "sm", className: "ml-1", children: n })
|
|
9939
9941
|
]
|
|
9940
9942
|
}
|
|
@@ -9944,8 +9946,8 @@ function Bu({
|
|
|
9944
9946
|
] })
|
|
9945
9947
|
] }),
|
|
9946
9948
|
s && s.length > 0 && /* @__PURE__ */ v("div", { className: "flex flex-wrap items-center gap-1.5", children: [
|
|
9947
|
-
s.map((
|
|
9948
|
-
const
|
|
9949
|
+
s.map((k) => {
|
|
9950
|
+
const N = k.value === "" ? Xc(k.operator) : void 0, w = N ? `${k.label}: ${b(Ke[N].labelKey)}` : `${k.label}${k.operator ?? "="}${k.value}`;
|
|
9949
9951
|
return /* @__PURE__ */ v(
|
|
9950
9952
|
"span",
|
|
9951
9953
|
{
|
|
@@ -9956,17 +9958,17 @@ function Bu({
|
|
|
9956
9958
|
"text-[length:var(--font-xs)] text-[var(--color-primary)]"
|
|
9957
9959
|
),
|
|
9958
9960
|
children: [
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9961
|
+
N ? w : /* @__PURE__ */ v(we, { children: [
|
|
9962
|
+
k.label,
|
|
9963
|
+
k.operator ?? "=",
|
|
9964
|
+
k.value
|
|
9963
9965
|
] }),
|
|
9964
9966
|
/* @__PURE__ */ a(
|
|
9965
9967
|
"button",
|
|
9966
9968
|
{
|
|
9967
9969
|
type: "button",
|
|
9968
|
-
"aria-label":
|
|
9969
|
-
onClick: () => i == null ? void 0 : i(
|
|
9970
|
+
"aria-label": b("aria.filtreyi_kaldir", { name: w }),
|
|
9971
|
+
onClick: () => i == null ? void 0 : i(k.key),
|
|
9970
9972
|
className: p(
|
|
9971
9973
|
"hover:opacity-70",
|
|
9972
9974
|
"rounded-[var(--radius-xs)]",
|
|
@@ -9978,12 +9980,12 @@ function Bu({
|
|
|
9978
9980
|
)
|
|
9979
9981
|
]
|
|
9980
9982
|
},
|
|
9981
|
-
|
|
9983
|
+
k.key
|
|
9982
9984
|
);
|
|
9983
9985
|
}),
|
|
9984
|
-
/* @__PURE__ */ a(de, { variant: "ghost", size: "sm", onClick: l, children:
|
|
9986
|
+
/* @__PURE__ */ a(de, { variant: "ghost", size: "sm", onClick: l, children: b("common.temizle") })
|
|
9985
9987
|
] }),
|
|
9986
|
-
|
|
9988
|
+
g
|
|
9987
9989
|
] })
|
|
9988
9990
|
] });
|
|
9989
9991
|
}
|
|
@@ -10093,11 +10095,11 @@ function Hu({
|
|
|
10093
10095
|
loading: f,
|
|
10094
10096
|
className: m
|
|
10095
10097
|
}) {
|
|
10096
|
-
var
|
|
10098
|
+
var k;
|
|
10097
10099
|
const { t: g } = le();
|
|
10098
10100
|
yr(e);
|
|
10099
10101
|
const [x, b] = W(
|
|
10100
|
-
((
|
|
10102
|
+
((k = s == null ? void 0 : s[0]) == null ? void 0 : k.value) ?? ""
|
|
10101
10103
|
);
|
|
10102
10104
|
return /* @__PURE__ */ v(
|
|
10103
10105
|
"main",
|