@nar-bus/ui-kit 1.37.0 → 1.37.1

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/index.js CHANGED
@@ -5,7 +5,7 @@ import { createContext as Et, useState as J, useEffect as se, useCallback as ie,
5
5
  import { createPortal as st } from "react-dom";
6
6
  import { flexRender as $n, useReactTable as Cs, getFilteredRowModel as Ds, getSortedRowModel as Ts, getCoreRowModel as Ms } from "@tanstack/react-table";
7
7
  import { useVirtualizer as eo } from "@tanstack/react-virtual";
8
- import { format as Pe, formatDistanceToNow as Ls, startOfMonth as kr, endOfMonth as Gr, startOfWeek as Qt, endOfWeek as Cr, addDays as Xe, isSameDay as He, subMonths as Rt, addMonths as Dr, isToday as to, isSameMonth as Tr, startOfDay as $e, endOfDay as Be, subDays as kt, startOfYear as ja, endOfYear as Rs, subYears as Ba, endOfMinute as _s, subMinutes as zs, addMinutes as Os, startOfMinute as Ps } from "date-fns";
8
+ import { format as Pe, formatDistanceToNow as Ls, startOfMonth as kr, endOfMonth as Gr, startOfWeek as Qt, endOfWeek as Cr, addDays as Xe, isSameDay as Ve, subMonths as Rt, addMonths as Dr, isToday as to, isSameMonth as Tr, startOfDay as $e, endOfDay as He, subDays as kt, startOfYear as ja, endOfYear as Rs, subYears as Ba, endOfMinute as _s, subMinutes as zs, addMinutes as Os, startOfMinute as Ps } from "date-fns";
9
9
  import { Toaster as Fs, toast as Dt } from "sonner";
10
10
  import Nt from "i18next";
11
11
  import { useEditor as js, EditorContent as Bs } from "@tiptap/react";
@@ -4868,7 +4868,7 @@ function Ro({
4868
4868
  let Y = U;
4869
4869
  for (; Y <= K; )
4870
4870
  M.push(Y), Y = Xe(Y, 1);
4871
- const re = (L) => !!(n && L < $e(n) || o && L > Be(o)), $ = (L) => {
4871
+ const re = (L) => !!(n && L < $e(n) || o && L > He(o)), $ = (L) => {
4872
4872
  var oe;
4873
4873
  if (!re(L)) {
4874
4874
  if (d) {
@@ -4881,7 +4881,7 @@ function Ro({
4881
4881
  if (!L) return;
4882
4882
  const oe = Ca(e ?? /* @__PURE__ */ new Date(), L);
4883
4883
  oe && (t == null || t(ut(oe, ve, ce)));
4884
- }, { min: ve, max: ce } = d ? Ia(n, o) : { min: n, max: o }, Ne = ve && e && He(e, ve) ? Zt(ve) : void 0, Ie = ce && e && He(e, ce) ? Zt(ce) : void 0, Me = /* @__PURE__ */ a(
4884
+ }, { min: ve, max: ce } = d ? Ia(n, o) : { min: n, max: o }, Ne = ve && e && Ve(e, ve) ? Zt(ve) : void 0, Ie = ce && e && Ve(e, ce) ? Zt(ce) : void 0, Me = /* @__PURE__ */ a(
4885
4885
  _e,
4886
4886
  {
4887
4887
  type: "time",
@@ -4902,8 +4902,8 @@ function Ro({
4902
4902
  }, ge = (L) => {
4903
4903
  j(L), Tr(L, E) || T(L);
4904
4904
  }, Te = (L) => {
4905
- He(L, C) || j(L);
4906
- }, Se = !!c && c.length > 0, ee = () => Se ? B("presets") : d ? B("time") : he(), ue = (L) => {
4905
+ Ve(L, C) || j(L);
4906
+ }, Se = !!c && c.length > 0, te = () => Se ? B("presets") : d ? B("time") : he(), ue = (L) => {
4907
4907
  var oe;
4908
4908
  if (P === "time" && d) {
4909
4909
  L.key === "Escape" ? (L.preventDefault(), L.stopPropagation(), L.nativeEvent.stopImmediatePropagation(), he()) : L.key === "Tab" && (L.preventDefault(), L.stopPropagation(), L.nativeEvent.stopImmediatePropagation(), L.shiftKey ? B(Se ? "presets" : "grid") : he());
@@ -4970,7 +4970,7 @@ function Ro({
4970
4970
  break;
4971
4971
  case "Escape":
4972
4972
  case "Tab":
4973
- L.preventDefault(), L.stopPropagation(), L.nativeEvent.stopImmediatePropagation(), L.key === "Tab" && !L.shiftKey ? ee() : he();
4973
+ L.preventDefault(), L.stopPropagation(), L.nativeEvent.stopImmediatePropagation(), L.key === "Tab" && !L.shiftKey ? te() : he();
4974
4974
  break;
4975
4975
  }
4976
4976
  };
@@ -5109,7 +5109,7 @@ function Ro({
5109
5109
  /* @__PURE__ */ v("div", { className: "grid grid-cols-7 gap-[var(--space-0-5)] text-center", children: [
5110
5110
  M.slice(0, 7).map((L) => /* @__PURE__ */ a("span", { className: "py-1 text-[length:var(--font-xs)] text-[var(--color-text-muted)]", children: Pe(L, "EEEEEE", { locale: ne }) }, L.toISOString())),
5111
5111
  M.map((L, oe) => {
5112
- const fe = e && He(L, e), Le = to(L), Ve = !Tr(L, E), We = re(L), Ue = He(L, C);
5112
+ const fe = e && Ve(L, e), Le = to(L), je = !Tr(L, E), We = re(L), Ue = Ve(L, C);
5113
5113
  return /* @__PURE__ */ a(
5114
5114
  "button",
5115
5115
  {
@@ -5129,8 +5129,8 @@ function Ro({
5129
5129
  "rounded-[var(--radius-sm)] text-[length:var(--font-sm)]",
5130
5130
  "tabular-nums",
5131
5131
  "transition-[background-color,color,border-color] duration-[var(--motion-duration-fast)] ease-[var(--motion-easing-out-quint)]",
5132
- Ve && "text-[var(--color-text-muted)]",
5133
- !Ve && !fe && "text-[var(--color-text-primary)]",
5132
+ je && "text-[var(--color-text-muted)]",
5133
+ !je && !fe && "text-[var(--color-text-primary)]",
5134
5134
  !fe && !We && "hover:bg-[var(--color-bg-hover)]",
5135
5135
  fe && "bg-[var(--color-primary)] text-[var(--color-text-inverse)]",
5136
5136
  Le && !fe && "border border-[var(--color-primary)]",
@@ -5227,16 +5227,16 @@ function Iu({
5227
5227
  ge.push(Te), Te = Xe(Te, 1);
5228
5228
  for (; ge.length < 42; )
5229
5229
  ge.push(Te), Te = Xe(Te, 1);
5230
- const Se = n ? $e(n) : void 0, ee = o ? Be(o) : void 0, ue = (O) => !!(Se && O < Se || ee && O > ee), L = () => {
5230
+ const Se = n ? $e(n) : void 0, te = o ? He(o) : void 0, ue = (O) => !!(Se && O < Se || te && O > te), L = () => {
5231
5231
  var O;
5232
5232
  w(!1), (O = H.current) == null || O.focus();
5233
5233
  }, oe = (O) => {
5234
5234
  j(O), R(null), Tr(O, E) || T(O);
5235
5235
  }, fe = (O) => {
5236
- He(O, C) || j(O);
5236
+ Ve(O, C) || j(O);
5237
5237
  }, Le = (O) => {
5238
5238
  t(O), B(null), ae({ start: null, end: null }), R(null), s || L();
5239
- }, Ve = (O) => {
5239
+ }, je = (O) => {
5240
5240
  t(O), B(null), ae({ start: null, end: null }), R(null), O.start && (T(O.start), j(O.start));
5241
5241
  }, We = (O) => {
5242
5242
  if (ue(O)) return;
@@ -5247,11 +5247,11 @@ function Iu({
5247
5247
  });
5248
5248
  return;
5249
5249
  }
5250
- const [Ae, be] = O < P ? [O, P] : [P, O], Fe = e.start ?? Q.start, qe = e.end ?? Q.end ?? (l ? Be(be) : null), Oe = s ? {
5250
+ const [Ae, be] = O < P ? [O, P] : [P, O], Fe = e.start ?? Q.start, qe = e.end ?? Q.end ?? (l ? He(be) : null), Oe = s ? {
5251
5251
  start: ut(Ar(Ae, Fe), Qe, Re),
5252
5252
  end: ut(Ar(be, qe), Qe, Re)
5253
5253
  } : { start: Ae, end: be }, Ye = Oe.start && Oe.end && Oe.start.getTime() > Oe.end.getTime() ? { start: Oe.end, end: Oe.start } : Oe;
5254
- Le({ start: Ye.start, end: je(Ye.end) });
5254
+ Le({ start: Ye.start, end: Be(Ye.end) });
5255
5255
  }, Ue = (O, Ae) => {
5256
5256
  if (!Ae) return;
5257
5257
  const be = O === "start" ? e.start : e.end;
@@ -5260,15 +5260,15 @@ function Iu({
5260
5260
  if (!Fe) return;
5261
5261
  const qe = ut(Fe, Qe, Re), Oe = O === "start" ? e.end : e.start;
5262
5262
  if (O === "start") {
5263
- const Ye = Oe && qe.getTime() > Oe.getTime() ? je(new Date(qe)) : e.end;
5263
+ const Ye = Oe && qe.getTime() > Oe.getTime() ? Be(new Date(qe)) : e.end;
5264
5264
  t({ ...e, start: qe, end: Ye });
5265
5265
  } else {
5266
5266
  const Ye = Oe && qe.getTime() < Oe.getTime() ? new Date(qe) : e.start;
5267
- t({ ...e, start: Ye, end: je(qe) });
5267
+ t({ ...e, start: Ye, end: Be(qe) });
5268
5268
  }
5269
- }, { min: Qe, max: Re } = s ? Ia(n, o) : { min: n, max: o }, je = (O) => {
5269
+ }, { min: Qe, max: Re } = s ? Ia(n, o) : { min: n, max: o }, Be = (O) => {
5270
5270
  if (!O || !l) return O;
5271
- if (!s) return Be(O);
5271
+ if (!s) return He(O);
5272
5272
  const Ae = _s(O);
5273
5273
  return o && Ae.getTime() > o.getTime() ? new Date(o) : Ae;
5274
5274
  }, yt = /* @__PURE__ */ a(
@@ -5287,7 +5287,7 @@ function Iu({
5287
5287
  W("time"), G(0);
5288
5288
  }
5289
5289
  }
5290
- ), te = /* @__PURE__ */ a(
5290
+ ), ee = /* @__PURE__ */ a(
5291
5291
  _e,
5292
5292
  {
5293
5293
  type: "time",
@@ -5304,20 +5304,20 @@ function Iu({
5304
5304
  }
5305
5305
  }
5306
5306
  ), q = [
5307
- { label: k("date.bugun"), range: () => ({ start: $e(/* @__PURE__ */ new Date()), end: Be(/* @__PURE__ */ new Date()) }) },
5308
- { label: k("date.dun"), range: () => ({ start: $e(kt(/* @__PURE__ */ new Date(), 1)), end: Be(kt(/* @__PURE__ */ new Date(), 1)) }) },
5309
- { label: k("date.son_7_gun"), range: () => ({ start: $e(kt(/* @__PURE__ */ new Date(), 6)), end: Be(/* @__PURE__ */ new Date()) }) },
5310
- { label: k("date.bu_hafta"), range: () => ({ start: Qt(/* @__PURE__ */ new Date(), { locale: M }), end: Be(/* @__PURE__ */ new Date()) }) },
5311
- { label: k("date.son_30_gun"), range: () => ({ start: $e(kt(/* @__PURE__ */ new Date(), 29)), end: Be(/* @__PURE__ */ new Date()) }) },
5312
- { label: k("date.bu_ay"), range: () => ({ start: kr(/* @__PURE__ */ new Date()), end: Be(/* @__PURE__ */ new Date()) }) },
5307
+ { label: k("date.bugun"), range: () => ({ start: $e(/* @__PURE__ */ new Date()), end: He(/* @__PURE__ */ new Date()) }) },
5308
+ { label: k("date.dun"), range: () => ({ start: $e(kt(/* @__PURE__ */ new Date(), 1)), end: He(kt(/* @__PURE__ */ new Date(), 1)) }) },
5309
+ { label: k("date.son_7_gun"), range: () => ({ start: $e(kt(/* @__PURE__ */ new Date(), 6)), end: He(/* @__PURE__ */ new Date()) }) },
5310
+ { label: k("date.bu_hafta"), range: () => ({ start: Qt(/* @__PURE__ */ new Date(), { locale: M }), end: He(/* @__PURE__ */ new Date()) }) },
5311
+ { label: k("date.son_30_gun"), range: () => ({ start: $e(kt(/* @__PURE__ */ new Date(), 29)), end: He(/* @__PURE__ */ new Date()) }) },
5312
+ { label: k("date.bu_ay"), range: () => ({ start: kr(/* @__PURE__ */ new Date()), end: He(/* @__PURE__ */ new Date()) }) },
5313
5313
  { label: k("date.gecen_ay"), range: () => ({ start: kr(Rt(/* @__PURE__ */ new Date(), 1)), end: Gr(Rt(/* @__PURE__ */ new Date(), 1)) }) },
5314
- { label: k("date.son_90_gun"), range: () => ({ start: $e(kt(/* @__PURE__ */ new Date(), 89)), end: Be(/* @__PURE__ */ new Date()) }) },
5315
- { label: k("date.bu_yil"), range: () => ({ start: ja(/* @__PURE__ */ new Date()), end: Be(/* @__PURE__ */ new Date()) }) },
5314
+ { label: k("date.son_90_gun"), range: () => ({ start: $e(kt(/* @__PURE__ */ new Date(), 89)), end: He(/* @__PURE__ */ new Date()) }) },
5315
+ { label: k("date.bu_yil"), range: () => ({ start: ja(/* @__PURE__ */ new Date()), end: He(/* @__PURE__ */ new Date()) }) },
5316
5316
  { label: k("date.gecen_yil"), range: () => ({ start: ja(Ba(/* @__PURE__ */ new Date(), 1)), end: Rs(Ba(/* @__PURE__ */ new Date(), 1)) }) }
5317
5317
  ], le = r === !1 ? [] : Array.isArray(r) ? r : q, Ce = (O) => {
5318
5318
  const [Ae, be] = O.start && O.end && O.start > O.end ? [O.end, O.start] : [O.start, O.end];
5319
- if (Ae && ee && Ae > ee || be && Se && be < Se) return null;
5320
- const Fe = Ae && Se && Ae < Se ? Se : Ae, qe = be && ee && be > ee ? ee : be;
5319
+ if (Ae && te && Ae > te || be && Se && be < Se) return null;
5320
+ const Fe = Ae && Se && Ae < Se ? Se : Ae, qe = be && te && be > te ? te : be;
5321
5321
  return { start: Fe, end: qe };
5322
5322
  }, ye = le.map((O) => ({
5323
5323
  preset: O,
@@ -5353,7 +5353,7 @@ function Iu({
5353
5353
  O.preventDefault();
5354
5354
  {
5355
5355
  const be = (Ae = ye[ne]) == null ? void 0 : Ae.clamped;
5356
- be && Ve(be);
5356
+ be && je(be);
5357
5357
  }
5358
5358
  break;
5359
5359
  case "Escape":
@@ -5399,7 +5399,7 @@ function Iu({
5399
5399
  O.preventDefault(), O.stopPropagation(), O.nativeEvent.stopImmediatePropagation(), O.key === "Tab" && !O.shiftKey ? ys() : L();
5400
5400
  break;
5401
5401
  }
5402
- }, Ht = P ? e.start && He(e.start, P) ? e.start : P : e.start, Vt = P ? null : e.end, Pa = s ? `${Y} HH:mm` : Y, ks = !!Ht && !!Vt && He(Ht, Vt), Ns = s && ks ? "HH:mm" : Pa, sr = P ? Z ?? C : e.end, lr = P ?? e.start, [ir, cr] = lr && sr && sr < lr ? [sr, lr] : [lr, sr];
5402
+ }, Ht = P ? e.start && Ve(e.start, P) ? e.start : P : e.start, Vt = P ? null : e.end, Pa = s ? `${Y} HH:mm` : Y, ks = !!Ht && !!Vt && Ve(Ht, Vt), Ns = s && ks ? "HH:mm" : Pa, sr = P ? Z ?? C : e.end, lr = P ?? e.start, [ir, cr] = lr && sr && sr < lr ? [sr, lr] : [lr, sr];
5403
5403
  return (
5404
5404
  /* STORY-255 / D-251-D11b — "Konsol Hattı" console-baseline trigger riding
5405
5405
  * the SHARED .input-console* recipe (tokens.css §14, same as Input/Select/
@@ -5498,7 +5498,7 @@ function Iu({
5498
5498
  tabIndex: V === "presets" && ne === be ? 0 : -1,
5499
5499
  "data-preset-focused": V === "presets" && ne === be ? "true" : void 0,
5500
5500
  onClick: () => {
5501
- W("presets"), D(be), Ae && Ve(Ae);
5501
+ W("presets"), D(be), Ae && je(Ae);
5502
5502
  },
5503
5503
  onFocus: () => {
5504
5504
  V === "presets" && ne !== be && D(be);
@@ -5563,7 +5563,7 @@ function Iu({
5563
5563
  children: [
5564
5564
  ge.slice(0, 7).map((O) => /* @__PURE__ */ a("span", { className: "py-1 text-[length:var(--font-xs)] text-[var(--color-text-muted)]", children: Pe(O, "EEEEEE", { locale: M }) }, O.toISOString())),
5565
5565
  ge.map((O, Ae) => {
5566
- const be = !!ir && He(O, ir) || !!cr && He(O, cr), Fe = !!ir && !!cr && !be && O > ir && O < cr, qe = to(O), Oe = !Tr(O, E), Ye = ue(O), Fa = He(O, C);
5566
+ const be = !!ir && Ve(O, ir) || !!cr && Ve(O, cr), Fe = !!ir && !!cr && !be && O > ir && O < cr, qe = to(O), Oe = !Tr(O, E), Ye = ue(O), Fa = Ve(O, C);
5567
5567
  return /* @__PURE__ */ a(
5568
5568
  "button",
5569
5569
  {
@@ -5615,7 +5615,7 @@ function Iu({
5615
5615
  ] }),
5616
5616
  /* @__PURE__ */ v("label", { className: "flex flex-col gap-[var(--space-1)] text-[length:var(--font-xs)] text-[var(--color-text-secondary)]", children: [
5617
5617
  k("date.bitis_saati", { defaultValue: "Bitiş saati" }),
5618
- te
5618
+ ee
5619
5619
  ] })
5620
5620
  ]
5621
5621
  }
@@ -5630,7 +5630,7 @@ function Iu({
5630
5630
  /* @__PURE__ */ a("span", { className: "text-[length:var(--font-xs)] text-[var(--color-text-secondary)]", children: k("date.baslangic") }),
5631
5631
  yt,
5632
5632
  /* @__PURE__ */ a("span", { className: "text-[length:var(--font-xs)] text-[var(--color-text-secondary)]", children: k("date.bitis") }),
5633
- te
5633
+ ee
5634
5634
  ]
5635
5635
  }
5636
5636
  )
@@ -5659,7 +5659,7 @@ function xp({
5659
5659
  "aria-required": u,
5660
5660
  id: f
5661
5661
  }) {
5662
- const { t: h } = me(), b = e ? Pe(e, "HH:mm") : "", { min: x, max: N } = Ia(n, o), k = x && e && He(e, x) ? Pe(x, "HH:mm") : void 0, A = N && e && He(e, N) ? Pe(N, "HH:mm") : void 0, y = (E) => {
5662
+ const { t: h } = me(), b = e ? Pe(e, "HH:mm") : "", { min: x, max: N } = Ia(n, o), k = x && e && Ve(e, x) ? Pe(x, "HH:mm") : void 0, A = N && e && Ve(e, N) ? Pe(N, "HH:mm") : void 0, y = (E) => {
5663
5663
  if (!E) {
5664
5664
  t == null || t(null);
5665
5665
  return;
@@ -5679,7 +5679,7 @@ function xp({
5679
5679
  onChange: y,
5680
5680
  placeholder: r,
5681
5681
  min: n ? $e(n) : void 0,
5682
- max: o ? Be(o) : void 0,
5682
+ max: o ? He(o) : void 0,
5683
5683
  disabled: l,
5684
5684
  error: i,
5685
5685
  id: f,
@@ -6323,73 +6323,73 @@ function wn({
6323
6323
  }) {
6324
6324
  const { t: P } = me(), B = b ?? (i ? !0 : void 0), Z = B === !0 || B === "true", R = ke(), [V, W] = J(!1), [Q, ae] = J(""), [ne, D] = J(0), [S, G] = J(null), I = X(null), g = X(null), z = X(null), F = co(Q, A), H = A > 0 ? F : Q, U = ie(() => {
6325
6325
  if (!g.current) return null;
6326
- const ee = g.current.getBoundingClientRect(), ue = window.innerHeight - ee.bottom, L = ee.top, oe = ue < Xu && L > ue, fe = oe ? Math.min(Kr, L - 8) : Math.min(Kr, ue - 8);
6327
- return { top: oe ? ee.top - Math.min(Kr, L) - 4 : ee.bottom + 4, left: ee.left, width: ee.width, maxHeight: fe, openUp: oe };
6326
+ const ue = (g.current.closest("[data-field-group]") ?? g.current).getBoundingClientRect(), L = window.innerHeight - ue.bottom, oe = ue.top, fe = L < Xu && oe > L, Le = fe ? Math.min(Kr, oe - 8) : Math.min(Kr, L - 8);
6327
+ return { top: fe ? ue.top - Math.min(Kr, oe) - 4 : ue.bottom + 4, left: ue.left, width: ue.width, maxHeight: Le, openUp: fe };
6328
6328
  }, []), K = we(
6329
6329
  () => s ? Array.isArray(t) ? t : [] : typeof t == "string" ? [t] : [],
6330
6330
  [s, t]
6331
6331
  ), M = we(
6332
- () => K.flatMap((ee) => {
6332
+ () => K.flatMap((te) => {
6333
6333
  var L, oe;
6334
- const ue = ((L = e.find((fe) => fe.value === ee)) == null ? void 0 : L.label) ?? ((oe = T == null ? void 0 : T.find((fe) => fe.value === ee)) == null ? void 0 : oe.label) ?? (u ? ee : void 0);
6335
- return ue ? [{ value: ee, label: ue }] : [];
6334
+ const ue = ((L = e.find((fe) => fe.value === te)) == null ? void 0 : L.label) ?? ((oe = T == null ? void 0 : T.find((fe) => fe.value === te)) == null ? void 0 : oe.label) ?? (u ? te : void 0);
6335
+ return ue ? [{ value: te, label: ue }] : [];
6336
6336
  }),
6337
6337
  [K, e, T, u]
6338
- ), Y = we(() => M.map((ee) => ee.label), [M]), re = we(() => M.map((ee) => ee.value), [M]), $ = we(() => {
6339
- const ee = Q && k ? e.filter((fe) => so(fe.label, Q)) : e, ue = Q.trim(), L = ue ? e.some((fe) => fe.label.toLowerCase() === ue.toLowerCase()) : !1;
6340
- return u && ue.length > 0 && !L ? [...ee, { value: ue, label: ue, __creatable: !0 }] : ee;
6338
+ ), Y = we(() => M.map((te) => te.label), [M]), re = we(() => M.map((te) => te.value), [M]), $ = we(() => {
6339
+ const te = Q && k ? e.filter((fe) => so(fe.label, Q)) : e, ue = Q.trim(), L = ue ? e.some((fe) => fe.label.toLowerCase() === ue.toLowerCase()) : !1;
6340
+ return u && ue.length > 0 && !L ? [...te, { value: ue, label: ue, __creatable: !0 }] : te;
6341
6341
  }, [e, Q, u, k]);
6342
6342
  se(() => {
6343
- D((ee) => $.length === 0 ? 0 : Math.min(ee, $.length - 1));
6343
+ D((te) => $.length === 0 ? 0 : Math.min(te, $.length - 1));
6344
6344
  }, [$.length]), se(() => {
6345
6345
  V && D(0);
6346
6346
  }, [V]);
6347
- const _ = ie((ee) => {
6347
+ const _ = ie((te) => {
6348
6348
  var ue;
6349
- return ((ue = $[ee]) == null ? void 0 : ue.disabled) === !0;
6349
+ return ((ue = $[te]) == null ? void 0 : ue.disabled) === !0;
6350
6350
  }, [$]), ve = c ? 0 : $.length, ce = c ? -1 : Mu(ne, $.length, _), Ne = X(d), Ie = X(y);
6351
6351
  se(() => {
6352
6352
  Ne.current = d, Ie.current = y;
6353
6353
  }), se(() => {
6354
- var ee;
6355
- (ee = Ne.current) == null || ee.call(Ne, H);
6354
+ var te;
6355
+ (te = Ne.current) == null || te.call(Ne, H);
6356
6356
  }, [H]);
6357
6357
  const Me = X(Q);
6358
6358
  se(() => {
6359
- var ee;
6360
- Me.current !== Q && (Me.current = Q, (ee = Ie.current) == null || ee.call(Ie, Q));
6359
+ var te;
6360
+ Me.current !== Q && (Me.current = Q, (te = Ie.current) == null || te.call(Ie, Q));
6361
6361
  }, [Q]), se(() => {
6362
6362
  if (!V) {
6363
6363
  G(null);
6364
6364
  return;
6365
6365
  }
6366
- const ee = requestAnimationFrame(() => G(U())), ue = () => G(U());
6366
+ const te = requestAnimationFrame(() => G(U())), ue = () => G(U());
6367
6367
  return window.addEventListener("scroll", ue, { capture: !0, passive: !0 }), window.addEventListener("resize", ue, { passive: !0 }), () => {
6368
- cancelAnimationFrame(ee), window.removeEventListener("scroll", ue, { capture: !0 }), window.removeEventListener("resize", ue);
6368
+ cancelAnimationFrame(te), window.removeEventListener("scroll", ue, { capture: !0 }), window.removeEventListener("resize", ue);
6369
6369
  };
6370
6370
  }, [V, U]), se(() => {
6371
- const ee = (ue) => {
6372
- var Le, Ve;
6373
- const L = ue.target, oe = (Le = I.current) == null ? void 0 : Le.contains(L), fe = (Ve = z.current) == null ? void 0 : Ve.contains(L);
6371
+ const te = (ue) => {
6372
+ var Le, je;
6373
+ const L = ue.target, oe = (Le = I.current) == null ? void 0 : Le.contains(L), fe = (je = z.current) == null ? void 0 : je.contains(L);
6374
6374
  !oe && !fe && (W(!1), ae(""));
6375
6375
  };
6376
- return document.addEventListener("mousedown", ee), () => document.removeEventListener("mousedown", ee);
6376
+ return document.addEventListener("mousedown", te), () => document.removeEventListener("mousedown", te);
6377
6377
  }, []);
6378
- const he = ie((ee) => {
6378
+ const he = ie((te) => {
6379
6379
  var ue;
6380
6380
  if (s) {
6381
- const L = Array.isArray(t) ? t : [], oe = L.includes(ee) ? L.filter((fe) => fe !== ee) : [...L, ee];
6381
+ const L = Array.isArray(t) ? t : [], oe = L.includes(te) ? L.filter((fe) => fe !== te) : [...L, te];
6382
6382
  r == null || r(oe);
6383
6383
  } else {
6384
- r == null || r(ee), W(!1), ae("");
6384
+ r == null || r(te), W(!1), ae("");
6385
6385
  const L = document.activeElement, oe = g.current, fe = !L || L === document.body || ((ue = z.current) == null ? void 0 : ue.contains(L)) === !0;
6386
6386
  oe != null && oe.isConnected && fe && oe.focus();
6387
6387
  }
6388
- }, [s, t, r]), ge = ie((ee) => {
6388
+ }, [s, t, r]), ge = ie((te) => {
6389
6389
  var ue;
6390
- s && Array.isArray(t) && (r == null || r(t.filter((L) => L !== ee))), (ue = g.current) == null || ue.focus();
6391
- }, [s, t, r]), Te = ie((ee) => {
6392
- Lu(ee, {
6390
+ s && Array.isArray(t) && (r == null || r(t.filter((L) => L !== te))), (ue = g.current) == null || ue.focus();
6391
+ }, [s, t, r]), Te = ie((te) => {
6392
+ Lu(te, {
6393
6393
  open: V,
6394
6394
  disabled: l,
6395
6395
  optionsLen: ve,
@@ -6406,8 +6406,8 @@ function wn({
6406
6406
  buttonRef: g
6407
6407
  });
6408
6408
  }, [l, V, ve, $, ce, _, he]), Se = we(() => {
6409
- const ee = $[ce];
6410
- return ee ? _o(R, ee.value, ee.__creatable === !0) : void 0;
6409
+ const te = $[ce];
6410
+ return te ? _o(R, te.value, te.__creatable === !0) : void 0;
6411
6411
  }, [$, ce, R]);
6412
6412
  return (
6413
6413
  // Console wrapper scope — provides position/width + the per-element
@@ -6439,7 +6439,7 @@ function wn({
6439
6439
  listboxId: R,
6440
6440
  highlightedOptionId: Se,
6441
6441
  selectedSummary: P("aria.secili_sayisi", { count: Y.length }),
6442
- removeLabelFor: (ee) => P("aria.kaldir", { label: ee }),
6442
+ removeLabelFor: (te) => P("aria.kaldir", { label: te }),
6443
6443
  onToggle: () => {
6444
6444
  if (!V) {
6445
6445
  W(!0);
@@ -6465,7 +6465,7 @@ function wn({
6465
6465
  searchPlaceholder: o ?? P("common.ara"),
6466
6466
  searchAriaLabel: P("aria.filtrele"),
6467
6467
  emptyLabel: P("empty.sonuc_bulunamadi"),
6468
- createLabelFor: (ee) => P("common.olustur", { value: ee, defaultValue: `"${ee}" oluştur` }),
6468
+ createLabelFor: (te) => P("common.olustur", { value: te, defaultValue: `"${te}" oluştur` }),
6469
6469
  createHint: u ? f : void 0,
6470
6470
  displayOptions: $,
6471
6471
  selectedValues: K,
@@ -6477,8 +6477,8 @@ function wn({
6477
6477
  onSearchChange: ae,
6478
6478
  onSelect: he,
6479
6479
  onTabOut: () => {
6480
- var ee;
6481
- W(!1), ae(""), (ee = g.current) == null || ee.focus();
6480
+ var te;
6481
+ W(!1), ae(""), (te = g.current) == null || te.focus();
6482
6482
  },
6483
6483
  onListKeyDown: Te
6484
6484
  }
@@ -9516,7 +9516,7 @@ function Wp({
9516
9516
  bulkActionsLabel: U,
9517
9517
  bulkActionsContent: K
9518
9518
  }) {
9519
- var yt, te;
9519
+ var yt, ee;
9520
9520
  const M = C ? C.page + 1 : w, Y = (C == null ? void 0 : C.size) ?? E, re = (C == null ? void 0 : C.totalElements) ?? T, $ = (q) => {
9521
9521
  j == null || j(C ? q - 1 : q);
9522
9522
  }, _ = b !== void 0, ve = we(
@@ -9535,7 +9535,7 @@ function Wp({
9535
9535
  "[DataTable] `enableSorting` tek başına sıralama yapmaz — DataTable kendi sıralama durumunu tutmaz. `sorting` + `onSortingChange` (ör. `useDataTable()`) ya da `sortBy` + `onSortChange` bağlayın; bağlama yokken başlıklar tıklanabilir çizilmez."
9536
9536
  ));
9537
9537
  }, [he]);
9538
- const ge = H ? bf[H] : void 0, { t: Te } = me(), Se = X(null), ee = c !== void 0 ? c : t.length > 500, ue = we(() => {
9538
+ const ge = H ? bf[H] : void 0, { t: Te } = me(), Se = X(null), te = c !== void 0 ? c : t.length > 500, ue = we(() => {
9539
9539
  const q = G ? pf[G] : hf;
9540
9540
  if (typeof document > "u") return q;
9541
9541
  const le = getComputedStyle(document.documentElement).getPropertyValue("--data-table-row-height").trim();
@@ -9564,7 +9564,7 @@ function Wp({
9564
9564
  q = [...q, le];
9565
9565
  }
9566
9566
  return q;
9567
- }, [e, i, fe, oe]), Ve = k ?? _, We = Cs({
9567
+ }, [e, i, fe, oe]), je = k ?? _, We = Cs({
9568
9568
  data: t,
9569
9569
  columns: Le,
9570
9570
  state: {
@@ -9574,8 +9574,8 @@ function Wp({
9574
9574
  onSortingChange: Ne,
9575
9575
  onRowSelectionChange: y,
9576
9576
  getCoreRowModel: Ms(),
9577
- getSortedRowModel: Ie && !Ve ? Ts() : void 0,
9578
- manualSorting: Ve,
9577
+ getSortedRowModel: Ie && !je ? Ts() : void 0,
9578
+ manualSorting: je,
9579
9579
  getFilteredRowModel: Ds(),
9580
9580
  getRowId: R,
9581
9581
  enableRowSelection: i && ae ? (q) => ae(q.original) : i,
@@ -9601,12 +9601,12 @@ function Wp({
9601
9601
  }), { rows: Ue } = We.getRowModel(), Qe = Object.keys(A ?? {}).length, Re = we(
9602
9602
  () => ({ getRowSelectionLabel: W, getRowAriaLabel: V, getRowSelectionDisabledReason: ne }),
9603
9603
  [W, V, ne]
9604
- ), je = eo({
9605
- count: ee ? Ue.length : 0,
9604
+ ), Be = eo({
9605
+ count: te ? Ue.length : 0,
9606
9606
  getScrollElement: () => Se.current,
9607
9607
  estimateSize: () => ue,
9608
9608
  overscan: 10,
9609
- enabled: ee
9609
+ enabled: te
9610
9610
  });
9611
9611
  return r ? /* @__PURE__ */ a(
9612
9612
  "div",
@@ -9665,7 +9665,7 @@ function Wp({
9665
9665
  className: p(
9666
9666
  "overflow-auto rounded-[var(--radius-md)]",
9667
9667
  br,
9668
- ee && "max-h-[600px]"
9668
+ te && "max-h-[600px]"
9669
9669
  ),
9670
9670
  style: xr,
9671
9671
  children: /* @__PURE__ */ a(Zo.Provider, { value: Re, children: /* @__PURE__ */ v("table", { className: "w-full border-collapse", role: "grid", children: [
@@ -9678,15 +9678,15 @@ function Wp({
9678
9678
  sortingInteractive: Me
9679
9679
  }
9680
9680
  ),
9681
- /* @__PURE__ */ a("tbody", { children: ee ? /* @__PURE__ */ v(Ee, { children: [
9682
- je.getVirtualItems().length > 0 && /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a(
9681
+ /* @__PURE__ */ a("tbody", { children: te ? /* @__PURE__ */ v(Ee, { children: [
9682
+ Be.getVirtualItems().length > 0 && /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a(
9683
9683
  "td",
9684
9684
  {
9685
9685
  colSpan: Le.length,
9686
- style: { height: ((yt = je.getVirtualItems()[0]) == null ? void 0 : yt.start) ?? 0 }
9686
+ style: { height: ((yt = Be.getVirtualItems()[0]) == null ? void 0 : yt.start) ?? 0 }
9687
9687
  }
9688
9688
  ) }),
9689
- je.getVirtualItems().map((q) => {
9689
+ Be.getVirtualItems().map((q) => {
9690
9690
  const le = Ue[q.index];
9691
9691
  return /* @__PURE__ */ a(
9692
9692
  Ln,
@@ -9701,12 +9701,12 @@ function Wp({
9701
9701
  le.id
9702
9702
  );
9703
9703
  }),
9704
- je.getVirtualItems().length > 0 && /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a(
9704
+ Be.getVirtualItems().length > 0 && /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a(
9705
9705
  "td",
9706
9706
  {
9707
9707
  colSpan: Le.length,
9708
9708
  style: {
9709
- height: je.getTotalSize() - (((te = je.getVirtualItems().at(-1)) == null ? void 0 : te.end) ?? 0)
9709
+ height: Be.getTotalSize() - (((ee = Be.getVirtualItems().at(-1)) == null ? void 0 : ee.end) ?? 0)
9710
9710
  }
9711
9711
  }
9712
9712
  ) })
@@ -10642,10 +10642,10 @@ const Xf = pe(function({
10642
10642
  Is(y, () => Q.current, []);
10643
10643
  const ae = X(null), [ne, D] = J(null), [S, G] = J(null);
10644
10644
  De(() => {
10645
- const te = ae.current;
10645
+ const ee = ae.current;
10646
10646
  let q = null;
10647
- if (te && f !== void 0) {
10648
- const ye = te.getRootNode();
10647
+ if (ee && f !== void 0) {
10648
+ const ye = ee.getRootNode();
10649
10649
  q = Array.from(ye.querySelectorAll("label")).find((Ge) => Ge.htmlFor === f) ?? null;
10650
10650
  }
10651
10651
  const le = q ? qf(q) : null, Ce = (q == null ? void 0 : q.id) || null;
@@ -10658,7 +10658,7 @@ const Xf = pe(function({
10658
10658
  }, []);
10659
10659
  De(z);
10660
10660
  const F = t ?? "", H = F.split(`
10661
- `), U = V || ((i == null ? void 0 : i.some((te) => te.path !== void 0 && te.line === void 0)) ?? !1), K = we(() => U ? $a(F) : null, [U, F]), M = we(() => {
10661
+ `), U = V || ((i == null ? void 0 : i.some((ee) => ee.path !== void 0 && ee.line === void 0)) ?? !1), K = we(() => U ? $a(F) : null, [U, F]), M = we(() => {
10662
10662
  if (K) return K.ok ? K.value : null;
10663
10663
  try {
10664
10664
  return JSON.parse(F || "{}");
@@ -10666,52 +10666,52 @@ const Xf = pe(function({
10666
10666
  return null;
10667
10667
  }
10668
10668
  }, [K, F]), Y = Wf(M) ? M : null, re = V && K && !K.ok ? K.error : null, $ = we(
10669
- () => (i ?? []).map((te) => {
10670
- const q = te.severity ?? "error";
10671
- if (te.line !== void 0 && te.line >= 1)
10672
- return { problem: te, severity: q, location: { line: Math.floor(te.line), exact: !0 } };
10669
+ () => (i ?? []).map((ee) => {
10670
+ const q = ee.severity ?? "error";
10671
+ if (ee.line !== void 0 && ee.line >= 1)
10672
+ return { problem: ee, severity: q, location: { line: Math.floor(ee.line), exact: !0 } };
10673
10673
  let le = null;
10674
- return te.path !== void 0 && (K != null && K.ok) && (le = en(K.positions, te.path)), {
10675
- problem: te,
10674
+ return ee.path !== void 0 && (K != null && K.ok) && (le = en(K.positions, ee.path)), {
10675
+ problem: ee,
10676
10676
  severity: q,
10677
10677
  location: le ? { line: le.line, exact: le.exact, pointer: le.pointer } : { exact: !1 }
10678
10678
  };
10679
10679
  }),
10680
10680
  [i, K]
10681
10681
  ), _ = we(() => {
10682
- const te = /* @__PURE__ */ new Map();
10682
+ const ee = /* @__PURE__ */ new Map();
10683
10683
  for (const { location: q, severity: le } of $)
10684
- q.line !== void 0 && te.get(q.line) !== "error" && te.set(q.line, le);
10685
- return re && te.set(re.line, "error"), te;
10684
+ q.line !== void 0 && ee.get(q.line) !== "error" && ee.set(q.line, le);
10685
+ return re && ee.set(re.line, "error"), ee;
10686
10686
  }, [$, re]), ve = we(() => {
10687
- const te = /* @__PURE__ */ new Map();
10687
+ const ee = /* @__PURE__ */ new Map();
10688
10688
  for (const { location: q, problem: le } of $)
10689
- q.line === void 0 || typeof le.message != "string" || te.set(q.line, [...te.get(q.line) ?? [], le.message]);
10690
- return te;
10691
- }, [$]), ce = (te) => {
10692
- W(!0), r == null || r(te);
10689
+ q.line === void 0 || typeof le.message != "string" || ee.set(q.line, [...ee.get(q.line) ?? [], le.message]);
10690
+ return ee;
10691
+ }, [$]), ce = (ee) => {
10692
+ W(!0), r == null || r(ee);
10693
10693
  }, Ne = () => {
10694
10694
  W(!0);
10695
10695
  try {
10696
10696
  r == null || r(JSON.stringify(JSON.parse(F), null, 2));
10697
10697
  } catch {
10698
10698
  }
10699
- }, Ie = (te, q) => {
10699
+ }, Ie = (ee, q) => {
10700
10700
  if (!Y) return;
10701
- const le = { ...Y, [te]: Uf(Y[te], q) };
10701
+ const le = { ...Y, [ee]: Uf(Y[ee], q) };
10702
10702
  r == null || r(JSON.stringify(le, null, 2));
10703
10703
  }, Me = ie(() => {
10704
10704
  navigator.clipboard.writeText(F).then(() => {
10705
10705
  Ko.success(w("json_editor.kopyalandi"));
10706
10706
  });
10707
10707
  }, [F, w]), he = ie(
10708
- (te) => {
10708
+ (ee) => {
10709
10709
  var wt;
10710
10710
  R("raw");
10711
10711
  const q = Q.current;
10712
10712
  if (!q) return;
10713
10713
  const le = q.value.split(`
10714
- `), Ce = Math.min(Math.max(te, 1), le.length);
10714
+ `), Ce = Math.min(Math.max(ee, 1), le.length);
10715
10715
  let ye = 0;
10716
10716
  for (let Ct = 0; Ct < Ce - 1; Ct++) ye += le[Ct].length + 1;
10717
10717
  const Ge = ye + (((wt = le[Ce - 1]) == null ? void 0 : wt.length) ?? 0);
@@ -10724,10 +10724,10 @@ const Xf = pe(function({
10724
10724
  Z === "form" && (ge.current = !0, R("raw"));
10725
10725
  };
10726
10726
  De(() => {
10727
- var te;
10728
- !ge.current || Z !== "raw" || (ge.current = !1, (te = Q.current) == null || te.focus());
10727
+ var ee;
10728
+ !ge.current || Z !== "raw" || (ge.current = !1, (ee = Q.current) == null || ee.focus());
10729
10729
  });
10730
- const Se = X(null), ee = X(null), ue = X(u);
10730
+ const Se = X(null), te = X(null), ue = X(u);
10731
10731
  ue.current = u, De(() => {
10732
10732
  var le;
10733
10733
  if (m == null) {
@@ -10736,20 +10736,20 @@ const Xf = pe(function({
10736
10736
  }
10737
10737
  if (Se.current === m) return;
10738
10738
  Se.current = m;
10739
- const te = $a(F), q = te.ok ? en(te.positions, m) : null;
10740
- q && (Z === "raw" ? he(q.line) : (ee.current = q.line, R("raw"))), (le = ue.current) == null || le.call(ue, q ? { line: q.line, exact: q.exact, pointer: q.pointer } : { exact: !1 });
10739
+ const ee = $a(F), q = ee.ok ? en(ee.positions, m) : null;
10740
+ q && (Z === "raw" ? he(q.line) : (te.current = q.line, R("raw"))), (le = ue.current) == null || le.call(ue, q ? { line: q.line, exact: q.exact, pointer: q.pointer } : { exact: !1 });
10741
10741
  }, [m, F, Z, he]), De(() => {
10742
- if (ee.current === null || Z !== "raw") return;
10743
- const te = ee.current;
10744
- ee.current = null, he(te);
10742
+ if (te.current === null || Z !== "raw") return;
10743
+ const ee = te.current;
10744
+ te.current = null, he(ee);
10745
10745
  }, [Z, he]);
10746
- const L = (te) => {
10747
- te.location.line !== void 0 && he(te.location.line), c == null || c(te.problem, te.location);
10748
- }, oe = o ?? (re ? w("json_editor.sozdizimi_hatasi", { line: re.line, column: re.column }) : null), fe = (te) => p(
10746
+ const L = (ee) => {
10747
+ ee.location.line !== void 0 && he(ee.location.line), c == null || c(ee.problem, ee.location);
10748
+ }, oe = o ?? (re ? w("json_editor.sozdizimi_hatasi", { line: re.line, column: re.column }) : null), fe = (ee) => p(
10749
10749
  "rounded-[var(--radius-sm)] px-2 py-0.5 text-[length:var(--font-xs)]",
10750
10750
  "transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-easing-out-quint)]",
10751
- te ? "bg-[var(--color-primary-subtle)] text-[var(--color-primary)]" : "text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)]"
10752
- ), Le = $.filter((te) => te.severity === "error").length, We = !!oe || Le > 0 ? !0 : N === void 0 || N === !1 || N === "false" ? void 0 : N, Ue = [x, oe ? T : void 0].filter(Boolean).join(" ") || void 0, Qe = h !== void 0 || b !== void 0 || ne !== null, Re = d && Z === "form", je = Re ? b ?? (h === void 0 && S !== null ? S : void 0) : void 0, yt = Re && je === void 0 ? h ?? ne ?? w("json_editor.icerik") : void 0;
10751
+ ee ? "bg-[var(--color-primary-subtle)] text-[var(--color-primary)]" : "text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)]"
10752
+ ), Le = $.filter((ee) => ee.severity === "error").length, We = !!oe || Le > 0 ? !0 : N === void 0 || N === !1 || N === "false" ? void 0 : N, Ue = [x, oe ? T : void 0].filter(Boolean).join(" ") || void 0, Qe = h !== void 0 || b !== void 0 || ne !== null, Re = d && Z === "form", Be = Re ? b ?? (h === void 0 && S !== null ? S : void 0) : void 0, yt = Re && Be === void 0 ? h ?? ne ?? w("json_editor.icerik") : void 0;
10753
10753
  return /* @__PURE__ */ v(
10754
10754
  "div",
10755
10755
  {
@@ -10811,7 +10811,7 @@ const Xf = pe(function({
10811
10811
  {
10812
10812
  "aria-hidden": "true",
10813
10813
  className: "min-w-[3rem] shrink-0 overflow-hidden border-r border-[var(--color-border-subtle)] bg-[var(--color-bg-hover)] select-none",
10814
- children: /* @__PURE__ */ a("div", { ref: I, className: "flex flex-col items-end py-2 pr-2", children: H.map((te, q) => {
10814
+ children: /* @__PURE__ */ a("div", { ref: I, className: "flex flex-col items-end py-2 pr-2", children: H.map((ee, q) => {
10815
10815
  var Ce;
10816
10816
  const le = _.get(q + 1);
10817
10817
  return /* @__PURE__ */ v(
@@ -10846,23 +10846,23 @@ const Xf = pe(function({
10846
10846
  }
10847
10847
  ),
10848
10848
  /* @__PURE__ */ v("div", { className: "relative min-w-0 flex-1", children: [
10849
- _.size > 0 && /* @__PURE__ */ a("div", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 overflow-hidden", children: /* @__PURE__ */ a("div", { ref: g, className: "relative", children: Array.from(_, ([te, q]) => /* @__PURE__ */ a(
10849
+ _.size > 0 && /* @__PURE__ */ a("div", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 overflow-hidden", children: /* @__PURE__ */ a("div", { ref: g, className: "relative", children: Array.from(_, ([ee, q]) => /* @__PURE__ */ a(
10850
10850
  "div",
10851
10851
  {
10852
10852
  className: p(
10853
10853
  "absolute inset-x-0",
10854
10854
  q === "error" ? "bg-[var(--color-status-danger-bg)]" : "bg-[var(--color-status-warning-bg)]"
10855
10855
  ),
10856
- style: { top: `calc(0.5rem + ${te - 1} * ${gr})`, height: gr }
10856
+ style: { top: `calc(0.5rem + ${ee - 1} * ${gr})`, height: gr }
10857
10857
  },
10858
- te
10858
+ ee
10859
10859
  )) }) }),
10860
10860
  /* @__PURE__ */ a(
10861
10861
  "textarea",
10862
10862
  {
10863
10863
  ref: Q,
10864
10864
  value: F,
10865
- onChange: (te) => ce(te.target.value),
10865
+ onChange: (ee) => ce(ee.target.value),
10866
10866
  onScroll: z,
10867
10867
  readOnly: n,
10868
10868
  spellCheck: !1,
@@ -10909,35 +10909,35 @@ const Xf = pe(function({
10909
10909
  tabIndex: -1,
10910
10910
  id: Re ? f : void 0,
10911
10911
  "aria-label": yt,
10912
- "aria-labelledby": je,
10912
+ "aria-labelledby": Be,
10913
10913
  "aria-describedby": Re ? Ue : void 0,
10914
10914
  "aria-required": Re ? k ?? (A ? !0 : void 0) : void 0,
10915
10915
  "aria-invalid": Re ? We : void 0,
10916
10916
  className: "flex flex-col gap-2 outline-none",
10917
- children: Y && Object.entries(Y).map(([te, q]) => {
10917
+ children: Y && Object.entries(Y).map(([ee, q]) => {
10918
10918
  const le = typeof q == "object" && q !== null;
10919
10919
  return /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
10920
10920
  /* @__PURE__ */ a(
10921
10921
  "span",
10922
10922
  {
10923
10923
  className: "min-w-[120px] shrink-0 font-[family-name:var(--font-mono)] text-[length:var(--font-sm)] text-[var(--color-primary)]",
10924
- title: te,
10925
- children: te
10924
+ title: ee,
10925
+ children: ee
10926
10926
  }
10927
10927
  ),
10928
10928
  /* @__PURE__ */ a(
10929
10929
  _e,
10930
10930
  {
10931
10931
  value: le ? JSON.stringify(q) : String(q),
10932
- onChange: (Ce) => Ie(te, Ce.target.value),
10932
+ onChange: (Ce) => Ie(ee, Ce.target.value),
10933
10933
  readOnly: n || le,
10934
10934
  title: le ? w("json_editor.ic_ice_deger") : void 0,
10935
- "aria-label": te,
10935
+ "aria-label": ee,
10936
10936
  inputSize: "sm",
10937
10937
  style: { fontFamily: "var(--font-mono)" }
10938
10938
  }
10939
10939
  )
10940
- ] }, te);
10940
+ ] }, ee);
10941
10941
  })
10942
10942
  }
10943
10943
  )
@@ -10945,11 +10945,11 @@ const Xf = pe(function({
10945
10945
  ),
10946
10946
  $.length > 0 && /* @__PURE__ */ v("div", { className: "border-t border-[var(--color-border-subtle)]", children: [
10947
10947
  /* @__PURE__ */ a("div", { className: "px-2 pt-1 text-[length:var(--font-xs)] font-medium text-[var(--color-text-secondary)]", children: w("json_editor.sorunlar", { count: $.length }) }),
10948
- /* @__PURE__ */ a("ul", { className: "max-h-40 overflow-auto py-1", children: $.map((te, q) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ v(
10948
+ /* @__PURE__ */ a("ul", { className: "max-h-40 overflow-auto py-1", children: $.map((ee, q) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ v(
10949
10949
  "button",
10950
10950
  {
10951
10951
  type: "button",
10952
- onClick: () => L(te),
10952
+ onClick: () => L(ee),
10953
10953
  className: "flex w-full items-start gap-2 px-2 py-0.5 text-left text-[length:var(--font-xs)] hover:bg-[var(--color-bg-hover)]",
10954
10954
  children: [
10955
10955
  /* @__PURE__ */ a(
@@ -10957,7 +10957,7 @@ const Xf = pe(function({
10957
10957
  {
10958
10958
  className: p(
10959
10959
  "mt-1 inline-block size-1.5 shrink-0 rounded-full",
10960
- te.severity === "error" ? "bg-[var(--color-status-danger)]" : "bg-[var(--color-status-warning)]"
10960
+ ee.severity === "error" ? "bg-[var(--color-status-danger)]" : "bg-[var(--color-status-warning)]"
10961
10961
  ),
10962
10962
  "aria-hidden": "true"
10963
10963
  }
@@ -10966,11 +10966,11 @@ const Xf = pe(function({
10966
10966
  "span",
10967
10967
  {
10968
10968
  className: "w-16 shrink-0 text-[var(--color-text-muted)] tabular-nums",
10969
- title: te.location.line !== void 0 && !te.location.exact ? w("json_editor.yaklasik_konum") : void 0,
10970
- children: te.location.line !== void 0 ? `${te.location.exact ? "" : "≈ "}${w("json_editor.satir", { line: te.location.line })}` : w("json_editor.konumsuz")
10969
+ title: ee.location.line !== void 0 && !ee.location.exact ? w("json_editor.yaklasik_konum") : void 0,
10970
+ children: ee.location.line !== void 0 ? `${ee.location.exact ? "" : "≈ "}${w("json_editor.satir", { line: ee.location.line })}` : w("json_editor.konumsuz")
10971
10971
  }
10972
10972
  ),
10973
- /* @__PURE__ */ a("span", { className: "min-w-0 flex-1 break-words text-[var(--color-text-primary)]", children: te.problem.message })
10973
+ /* @__PURE__ */ a("span", { className: "min-w-0 flex-1 break-words text-[var(--color-text-primary)]", children: ee.problem.message })
10974
10974
  ]
10975
10975
  }
10976
10976
  ) }, q)) })
@@ -12204,8 +12204,8 @@ const vv = pe(
12204
12204
  }
12205
12205
  const ge = t.map((Se) => ({ ...Se, cells: { ...Se.cells } }));
12206
12206
  let Te = 0;
12207
- Ie.forEach((Se, ee) => {
12208
- const ue = Me + ee;
12207
+ Ie.forEach((Se, te) => {
12208
+ const ue = Me + te;
12209
12209
  let L = ge[ue];
12210
12210
  if (!L) {
12211
12211
  if (x !== void 0 && ge.length >= x) {
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../src/molecules/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4D,KAAK,SAAS,EAAsC,MAAM,OAAO,CAAC;AAWrI,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0EAA0E;IAC1E,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,UAAU,iBAAiB;IACzB,OAAO,EAAE,cAAc,EAAE,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IACtD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC5E;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;IAC5C,kBAAkB,CAAC,EAAE,MAAM,C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