@nar-bus/ui-kit 1.33.0 → 1.34.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/index.js CHANGED
@@ -2136,10 +2136,10 @@ const Ql = pe(
2136
2136
  readOnly: y,
2137
2137
  ...g
2138
2138
  }, N) => {
2139
- const { i18n: x } = ve(), w = Xl(x.resolvedLanguage ?? x.language ?? "tr"), k = e === void 0 || e !== null && !Number.isFinite(e) ? null : e, I = i ?? !(r !== void 0 && r >= 0), D = Kl(I, s), [z, P] = X(() => Dt(k, w, s)), [B, _] = X(!1), [W, $] = X(!1), M = q(!1), [V, K] = X({ value: k, separator: w });
2140
- if (!Object.is(V.value, k) || V.separator !== w) {
2141
- const C = V.separator !== w;
2142
- K({ value: k, separator: w }), (!Gt(Zt(z), k) || C && !W) && (P(Dt(k, w, s)), _(!1));
2139
+ const { i18n: x } = ve(), w = Xl(x.resolvedLanguage ?? x.language ?? "tr"), k = e === void 0 || e !== null && !Number.isFinite(e) ? null : e, I = i ?? !(r !== void 0 && r >= 0), D = Kl(I, s), [z, P] = X(() => Dt(k, w, s)), [B, _] = X(!1), [V, $] = X(!1), M = q(!1), [H, K] = X({ value: k, separator: w });
2140
+ if (!Object.is(H.value, k) || H.separator !== w) {
2141
+ const C = H.separator !== w;
2142
+ K({ value: k, separator: w }), (!Gt(Zt(z), k) || C && !V) && (P(Dt(k, w, s)), _(!1));
2143
2143
  }
2144
2144
  return /* @__PURE__ */ a(
2145
2145
  Pe,
@@ -2230,7 +2230,7 @@ function Zl({
2230
2230
  }, _ = (C) => {
2231
2231
  var E;
2232
2232
  (E = e.find((p) => p.value === C)) != null && E.disabled || (o == null || o(C), B(!0));
2233
- }, W = (C) => m(I(u, C)), $ = (C) => {
2233
+ }, V = (C) => m(I(u, C)), $ = (C) => {
2234
2234
  C.preventDefault();
2235
2235
  const E = x[u];
2236
2236
  E && !E.disabled && _(E.value);
@@ -2242,13 +2242,13 @@ function Zl({
2242
2242
  (j) => !j.disabled && fr(j.label).startsWith(A)
2243
2243
  );
2244
2244
  S < 0 || (i ? m(S) : P(S));
2245
- }, V = (C, E) => {
2245
+ }, H = (C, E) => {
2246
2246
  switch (C.key) {
2247
2247
  case "ArrowDown":
2248
- C.preventDefault(), W(1);
2248
+ C.preventDefault(), V(1);
2249
2249
  return;
2250
2250
  case "ArrowUp":
2251
- C.preventDefault(), W(-1);
2251
+ C.preventDefault(), V(-1);
2252
2252
  return;
2253
2253
  case "Home":
2254
2254
  case "End":
@@ -2272,7 +2272,7 @@ function Zl({
2272
2272
  }, K = (C) => {
2273
2273
  if (!r) {
2274
2274
  if (i) {
2275
- V(C, !0);
2275
+ H(C, !0);
2276
2276
  return;
2277
2277
  }
2278
2278
  if (["ArrowDown", "ArrowUp", "Enter", " "].includes(C.key)) {
@@ -2288,7 +2288,7 @@ function Zl({
2288
2288
  B(!0);
2289
2289
  return;
2290
2290
  }
2291
- V(C, !1);
2291
+ H(C, !1);
2292
2292
  }, re = i && u >= 0 && x[u] ? w(u) : void 0;
2293
2293
  return {
2294
2294
  open: i,
@@ -2320,8 +2320,8 @@ function Nn(e, t, r, n = {}) {
2320
2320
  align: u = "start"
2321
2321
  } = n, m = Math.max(e.width, c), f = i ? m : t.width, v = i && l ? Math.max(m, t.width) : f, y = i ? { width: m } : {};
2322
2322
  if (d === "left" || d === "right") {
2323
- const z = r.width - s - (e.right + o), P = e.left - o - s, B = d === "right" ? v > z && P > z ? "left" : "right" : v > P && z > P ? "right" : "left", _ = B === "right" ? e.right + o : e.left - o - v, W = Math.max(s, Math.min(_, r.width - v - s)), $ = Math.max(0, r.height - 2 * s), M = Math.min(t.height, $), V = u === "center" ? e.top + e.height / 2 - M / 2 : u === "end" ? e.bottom - M : e.top;
2324
- return { top: Math.max(s, Math.min(V, r.height - M - s)), left: W, ...y, placement: B, maxHeight: $ };
2323
+ const z = r.width - s - (e.right + o), P = e.left - o - s, B = d === "right" ? v > z && P > z ? "left" : "right" : v > P && z > P ? "right" : "left", _ = B === "right" ? e.right + o : e.left - o - v, V = Math.max(s, Math.min(_, r.width - v - s)), $ = Math.max(0, r.height - 2 * s), M = Math.min(t.height, $), H = u === "center" ? e.top + e.height / 2 - M / 2 : u === "end" ? e.bottom - M : e.top;
2324
+ return { top: Math.max(s, Math.min(H, r.height - M - s)), left: V, ...y, placement: B, maxHeight: $ };
2325
2325
  }
2326
2326
  const g = r.height - s - (e.bottom + o), N = e.top - o - s, x = d === "top" ? t.height > N && g > N ? "bottom" : "top" : t.height > g && N > g ? "top" : "bottom";
2327
2327
  let w, k;
@@ -2421,10 +2421,10 @@ const Ht = pe(
2421
2421
  filtered: P,
2422
2422
  listboxId: B,
2423
2423
  optionId: _,
2424
- activeId: W,
2424
+ activeId: V,
2425
2425
  containerRef: $,
2426
2426
  triggerRef: M,
2427
- openPanel: V,
2427
+ openPanel: H,
2428
2428
  closePanel: K,
2429
2429
  handleSelect: J,
2430
2430
  handleTriggerKeyDown: ie,
@@ -2458,14 +2458,14 @@ const Ht = pe(
2458
2458
  "aria-haspopup": "listbox",
2459
2459
  "aria-expanded": k,
2460
2460
  "aria-controls": B,
2461
- "aria-activedescendant": W,
2461
+ "aria-activedescendant": V,
2462
2462
  "aria-invalid": A,
2463
2463
  "aria-describedby": f,
2464
2464
  "aria-required": v,
2465
2465
  "aria-labelledby": y,
2466
2466
  disabled: o,
2467
2467
  onClick: () => {
2468
- o || (k ? K() : V());
2468
+ o || (k ? K() : H());
2469
2469
  },
2470
2470
  onKeyDown: ie,
2471
2471
  className: b(
@@ -2529,7 +2529,7 @@ const Ht = pe(
2529
2529
  onChange: (O) => re(O.target.value),
2530
2530
  onKeyDown: C,
2531
2531
  placeholder: x("common.ara"),
2532
- "aria-activedescendant": W,
2532
+ "aria-activedescendant": V,
2533
2533
  className: b(
2534
2534
  "h-[var(--space-8)] w-full px-[var(--space-2)]",
2535
2535
  "rounded-[var(--radius-sm)]",
@@ -3194,13 +3194,13 @@ function Wt({
3194
3194
  clearTimeout(k.current), N(!1);
3195
3195
  }, P = se(() => {
3196
3196
  if (!x.current || !w.current) return;
3197
- const B = x.current.getBoundingClientRect(), _ = w.current.getBoundingClientRect(), W = bc(
3197
+ const B = x.current.getBoundingClientRect(), _ = w.current.getBoundingClientRect(), V = bc(
3198
3198
  B,
3199
3199
  { width: _.width, height: _.height },
3200
3200
  r,
3201
3201
  { width: window.innerWidth, height: window.innerHeight }
3202
3202
  );
3203
- m({ top: W.top, left: W.left });
3203
+ m({ top: V.top, left: V.left });
3204
3204
  }, [r]);
3205
3205
  return Oe(() => (d && x.current && w.current && (P(), I.current = requestAnimationFrame(() => {
3206
3206
  v(!0);
@@ -3928,7 +3928,7 @@ function Jm({
3928
3928
  pressed: y,
3929
3929
  hint: g
3930
3930
  }) {
3931
- const N = i === "compact", x = jc[N ? "compact" : "default"], { t: w, i18n: k } = ve(), I = (k.resolvedLanguage ?? k.language ?? "").startsWith("tr") ? "tr-TR" : "en-US", D = !!l && !u && !f, z = m ?? (f && typeof v == "string" ? `${r}: ${v}` : void 0), P = !!l && y === !0 && !f, B = Ee(), _ = g != null && g !== !1 && g !== "", W = _ && !!l, [$, M] = X(!1), [V, K] = X(!1), J = q(!1);
3931
+ const N = i === "compact", x = jc[N ? "compact" : "default"], { t: w, i18n: k } = ve(), I = (k.resolvedLanguage ?? k.language ?? "").startsWith("tr") ? "tr-TR" : "en-US", D = !!l && !u && !f, z = m ?? (f && typeof v == "string" ? `${r}: ${v}` : void 0), P = !!l && y === !0 && !f, B = Ee(), _ = g != null && g !== !1 && g !== "", V = _ && !!l, [$, M] = X(!1), [H, K] = X(!1), J = q(!1);
3932
3932
  function ie(A) {
3933
3933
  (A.key === "Enter" || A.key === " ") && (A.preventDefault(), l == null || l());
3934
3934
  }
@@ -3946,7 +3946,7 @@ function Jm({
3946
3946
  onClick: l,
3947
3947
  onKeyDown: ie,
3948
3948
  "aria-pressed": y,
3949
- ...W ? {
3949
+ ...V ? {
3950
3950
  onFocus: re,
3951
3951
  onBlur: C,
3952
3952
  onPointerDown: () => {
@@ -3962,7 +3962,7 @@ function Jm({
3962
3962
  "data-kpi-glass": "aurora",
3963
3963
  "data-pressed": P ? "" : void 0,
3964
3964
  "aria-label": z,
3965
- "aria-describedby": W ? B : void 0,
3965
+ "aria-describedby": V ? B : void 0,
3966
3966
  "aria-disabled": u || void 0,
3967
3967
  role: f ? "alert" : void 0,
3968
3968
  "aria-live": f ? "polite" : void 0,
@@ -4009,8 +4009,8 @@ function Jm({
4009
4009
  Wt,
4010
4010
  {
4011
4011
  content: g,
4012
- ...W ? { open: $ || D && V, onOpenChange: M } : {},
4013
- children: W ? /* @__PURE__ */ a("span", { "aria-hidden": "true", className: Pa, children: /* @__PURE__ */ a(Pr, { size: za, strokeWidth: 2 }) }) : /* @__PURE__ */ a(
4012
+ ...V ? { open: $ || D && H, onOpenChange: M } : {},
4013
+ children: V ? /* @__PURE__ */ a("span", { "aria-hidden": "true", className: Pa, children: /* @__PURE__ */ a(Pr, { size: za, strokeWidth: 2 }) }) : /* @__PURE__ */ a(
4014
4014
  "button",
4015
4015
  {
4016
4016
  type: "button",
@@ -4134,8 +4134,8 @@ function Uc({
4134
4134
  };
4135
4135
  document.addEventListener("keydown", z);
4136
4136
  const P = window.setTimeout(() => {
4137
- var W;
4138
- (W = tt(N.current)[0] ?? N.current) == null || W.focus();
4137
+ var V;
4138
+ (V = tt(N.current)[0] ?? N.current) == null || V.focus();
4139
4139
  }, 0);
4140
4140
  return () => {
4141
4141
  D(), document.removeEventListener("keydown", z), window.clearTimeout(P);
@@ -4320,7 +4320,7 @@ function Fn({
4320
4320
  id: g,
4321
4321
  describeValue: N = !1
4322
4322
  }) {
4323
- const { t: x, i18n: w } = ve(), [k, I] = X(!1), [D, z] = X(e ?? /* @__PURE__ */ new Date()), [P, B] = X(e ?? /* @__PURE__ */ new Date()), [_, W] = X("grid"), [$, M] = X(0), V = q(null), K = q(null), J = q(null), ie = (w.resolvedLanguage ?? w.language ?? "").startsWith("tr"), re = ie ? Vr : jr, C = ie ? "dd.MM.yyyy" : "MM/dd/yyyy", E = f ?? (i ? !0 : void 0), p = E === !0 || E === "true", A = Ee(), S = N ? [A, v].filter(Boolean).join(" ") : v, { style: j } = Zr({
4323
+ const { t: x, i18n: w } = ve(), [k, I] = X(!1), [D, z] = X(e ?? /* @__PURE__ */ new Date()), [P, B] = X(e ?? /* @__PURE__ */ new Date()), [_, V] = X("grid"), [$, M] = X(0), H = q(null), K = q(null), J = q(null), ie = (w.resolvedLanguage ?? w.language ?? "").startsWith("tr"), re = ie ? Vr : jr, C = ie ? "dd.MM.yyyy" : "MM/dd/yyyy", E = f ?? (i ? !0 : void 0), p = E === !0 || E === "true", A = Ee(), S = N ? [A, v].filter(Boolean).join(" ") : v, { style: j } = Zr({
4324
4324
  open: k,
4325
4325
  triggerRef: K,
4326
4326
  panelRef: J,
@@ -4330,7 +4330,7 @@ function Fn({
4330
4330
  ae(() => {
4331
4331
  const T = (Y) => {
4332
4332
  const me = Y.target;
4333
- V.current && !V.current.contains(me) && (!J.current || !J.current.contains(me)) && I(!1);
4333
+ H.current && !H.current.contains(me) && (!J.current || !J.current.contains(me)) && I(!1);
4334
4334
  };
4335
4335
  return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
4336
4336
  }, []), Oe(() => {
@@ -4340,9 +4340,9 @@ function Fn({
4340
4340
  (me = (Y = J.current) == null ? void 0 : Y.querySelector(T)) == null || me.focus();
4341
4341
  }, [k, P, _, $]);
4342
4342
  const O = or(D), U = Cr(D), G = zt(O, { locale: re }), ne = dr(U, { locale: re }), R = [];
4343
- let H = G;
4344
- for (; H <= ne; )
4345
- R.push(H), H = Ke(H, 1);
4343
+ let W = G;
4344
+ for (; W <= ne; )
4345
+ R.push(W), W = Ke(W, 1);
4346
4346
  const ee = (T) => !!(n && T < at(n) || o && T > We(o)), te = (T) => {
4347
4347
  var Y;
4348
4348
  if (!ee(T)) {
@@ -4369,7 +4369,7 @@ function Fn({
4369
4369
  "aria-label": x("date.saat"),
4370
4370
  value: Pt(e),
4371
4371
  onChange: (T) => F(T.target.value),
4372
- onFocus: () => W("time")
4372
+ onFocus: () => V("time")
4373
4373
  }
4374
4374
  ), ge = () => {
4375
4375
  var T;
@@ -4378,10 +4378,10 @@ function Fn({
4378
4378
  B(T), mr(T, D) || z(T);
4379
4379
  }, Ce = (T) => {
4380
4380
  Ue(T, P) || B(T);
4381
- }, Ae = !!l && l.length > 0, Z = () => Ae ? W("presets") : d ? W("time") : ge(), ue = (T) => {
4381
+ }, Ae = !!l && l.length > 0, Z = () => Ae ? V("presets") : d ? V("time") : ge(), ue = (T) => {
4382
4382
  var Y;
4383
4383
  if (_ === "time" && d) {
4384
- T.key === "Escape" ? (T.preventDefault(), T.stopPropagation(), T.nativeEvent.stopImmediatePropagation(), ge()) : T.key === "Tab" && (T.preventDefault(), T.stopPropagation(), T.nativeEvent.stopImmediatePropagation(), T.shiftKey ? W(Ae ? "presets" : "grid") : ge());
4384
+ T.key === "Escape" ? (T.preventDefault(), T.stopPropagation(), T.nativeEvent.stopImmediatePropagation(), ge()) : T.key === "Tab" && (T.preventDefault(), T.stopPropagation(), T.nativeEvent.stopImmediatePropagation(), T.shiftKey ? V(Ae ? "presets" : "grid") : ge());
4385
4385
  return;
4386
4386
  }
4387
4387
  if (_ === "presets" && l) {
@@ -4399,7 +4399,7 @@ function Fn({
4399
4399
  T.preventDefault(), M(l.length - 1);
4400
4400
  break;
4401
4401
  case "ArrowRight":
4402
- T.preventDefault(), W("grid");
4402
+ T.preventDefault(), V("grid");
4403
4403
  break;
4404
4404
  case "Enter":
4405
4405
  case " ":
@@ -4409,7 +4409,7 @@ function Fn({
4409
4409
  T.preventDefault(), T.stopPropagation(), T.nativeEvent.stopImmediatePropagation(), ge();
4410
4410
  break;
4411
4411
  case "Tab":
4412
- T.preventDefault(), T.stopPropagation(), T.nativeEvent.stopImmediatePropagation(), T.shiftKey ? W("grid") : d ? W("time") : ge();
4412
+ T.preventDefault(), T.stopPropagation(), T.nativeEvent.stopImmediatePropagation(), T.shiftKey ? V("grid") : d ? V("time") : ge();
4413
4413
  break;
4414
4414
  }
4415
4415
  return;
@@ -4459,7 +4459,7 @@ function Fn({
4459
4459
  /* @__PURE__ */ h(
4460
4460
  "div",
4461
4461
  {
4462
- ref: V,
4462
+ ref: H,
4463
4463
  className: b("input-console select-console", c),
4464
4464
  "data-invalid": p ? "" : void 0,
4465
4465
  "data-disabled": s ? "" : void 0,
@@ -4480,7 +4480,7 @@ function Fn({
4480
4480
  const T = !k;
4481
4481
  if (T) {
4482
4482
  const Y = e ?? /* @__PURE__ */ new Date();
4483
- B(Y), z(Y), W("grid"), M(0);
4483
+ B(Y), z(Y), V("grid"), M(0);
4484
4484
  }
4485
4485
  I(T);
4486
4486
  },
@@ -4594,10 +4594,10 @@ function Fn({
4594
4594
  "data-focused": Q ? "true" : void 0,
4595
4595
  "aria-selected": me ? !0 : void 0,
4596
4596
  onClick: () => {
4597
- W("grid"), te(T);
4597
+ V("grid"), te(T);
4598
4598
  },
4599
4599
  onFocus: () => {
4600
- W("grid"), Ce(T);
4600
+ V("grid"), Ce(T);
4601
4601
  },
4602
4602
  className: b(
4603
4603
  "flex h-[var(--space-8)] w-[var(--space-8)] items-center justify-center",
@@ -4670,9 +4670,9 @@ function Qc({
4670
4670
  id: g,
4671
4671
  describeValue: N = !1
4672
4672
  }) {
4673
- const { t: x, i18n: w } = ve(), [k, I] = X(!1), [D, z] = X(e.start ?? /* @__PURE__ */ new Date()), [P, B] = X(e.start ?? /* @__PURE__ */ new Date()), [_, W] = X(null), [$, M] = X(null), [V, K] = X("grid"), [J, ie] = X({ start: null, end: null }), [re, C] = X(0), [E, p] = X(0), A = !e.start && !e.end, [S, j] = X(A);
4674
- S !== A && (j(A), A && _ !== null && (W(null), ie({ start: null, end: null }), M(null)));
4675
- const O = q(null), U = q(null), G = q(null), ne = (w.resolvedLanguage ?? w.language ?? "").startsWith("tr"), R = ne ? Vr : jr, H = ne ? "dd.MM.yyyy" : "MM/dd/yyyy", ee = f ?? (u ? !0 : void 0), te = ee === !0 || ee === "true", F = Ee(), he = N ? [F, v].filter(Boolean).join(" ") : v, { style: le } = Zr({
4673
+ const { t: x, i18n: w } = ve(), [k, I] = X(!1), [D, z] = X(e.start ?? /* @__PURE__ */ new Date()), [P, B] = X(e.start ?? /* @__PURE__ */ new Date()), [_, V] = X(null), [$, M] = X(null), [H, K] = X("grid"), [J, ie] = X({ start: null, end: null }), [re, C] = X(0), [E, p] = X(0), A = !e.start && !e.end, [S, j] = X(A);
4674
+ S !== A && (j(A), A && _ !== null && (V(null), ie({ start: null, end: null }), M(null)));
4675
+ const O = q(null), U = q(null), G = q(null), ne = (w.resolvedLanguage ?? w.language ?? "").startsWith("tr"), R = ne ? Vr : jr, W = ne ? "dd.MM.yyyy" : "MM/dd/yyyy", ee = f ?? (u ? !0 : void 0), te = ee === !0 || ee === "true", F = Ee(), he = N ? [F, v].filter(Boolean).join(" ") : v, { style: le } = Zr({
4676
4676
  open: k,
4677
4677
  triggerRef: U,
4678
4678
  panelRef: G,
@@ -4693,9 +4693,9 @@ function Qc({
4693
4693
  }, []), Oe(() => {
4694
4694
  var Ne, be;
4695
4695
  if (!k) return;
4696
- const L = V === "time" ? `[data-time-input="${E === 0 ? "start" : "end"}"]` : V === "presets" ? '[data-preset-focused="true"]' : '[data-focused="true"]';
4696
+ const L = H === "time" ? `[data-time-input="${E === 0 ? "start" : "end"}"]` : H === "presets" ? '[data-preset-focused="true"]' : '[data-focused="true"]';
4697
4697
  (be = (Ne = G.current) == null ? void 0 : Ne.querySelector(L)) == null || be.focus();
4698
- }, [k, P, V, re, E]);
4698
+ }, [k, P, H, re, E]);
4699
4699
  const we = or(D), Se = Cr(D), De = zt(we, { locale: R }), ge = dr(Se, { locale: R }), ke = [];
4700
4700
  let Ce = De;
4701
4701
  for (; Ce <= ge; )
@@ -4710,13 +4710,13 @@ function Qc({
4710
4710
  }, me = (L) => {
4711
4711
  Ue(L, P) || B(L);
4712
4712
  }, Ie = (L) => {
4713
- t(L), W(null), ie({ start: null, end: null }), M(null), s || T();
4713
+ t(L), V(null), ie({ start: null, end: null }), M(null), s || T();
4714
4714
  }, Ve = (L) => {
4715
- t(L), W(null), ie({ start: null, end: null }), M(null), L.start && (z(L.start), B(L.start));
4715
+ t(L), V(null), ie({ start: null, end: null }), M(null), L.start && (z(L.start), B(L.start));
4716
4716
  }, qe = (L) => {
4717
4717
  if (ue(L)) return;
4718
4718
  if (_ === null) {
4719
- W(L), ie({ start: e.start, end: e.end }), t({
4719
+ V(L), ie({ start: e.start, end: e.end }), t({
4720
4720
  start: s ? ot(sr(L, e.start), oe, de) : L,
4721
4721
  end: null
4722
4722
  });
@@ -4802,11 +4802,11 @@ function Qc({
4802
4802
  ia() || T();
4803
4803
  }, lo = (L) => {
4804
4804
  var Ne;
4805
- if (V === "time" && oa) {
4805
+ if (H === "time" && oa) {
4806
4806
  L.key === "Escape" ? (L.preventDefault(), L.stopPropagation(), L.nativeEvent.stopImmediatePropagation(), T()) : L.key === "Tab" && (L.preventDefault(), L.stopPropagation(), L.nativeEvent.stopImmediatePropagation(), L.shiftKey ? E === 1 && ut[0] ? p(0) : K(ft ? "presets" : "grid") : E === 0 && ut[1] ? p(1) : T());
4807
4807
  return;
4808
4808
  }
4809
- if (V === "presets" && ft) {
4809
+ if (H === "presets" && ft) {
4810
4810
  switch (L.key) {
4811
4811
  case "ArrowDown":
4812
4812
  L.preventDefault(), C((be) => Math.min(be + 1, dt.length - 1));
@@ -4874,7 +4874,7 @@ function Qc({
4874
4874
  L.preventDefault(), L.stopPropagation(), L.nativeEvent.stopImmediatePropagation(), L.key === "Tab" && !L.shiftKey ? io() : T();
4875
4875
  break;
4876
4876
  }
4877
- }, Nt = _ ? e.start && Ue(e.start, _) ? e.start : _ : e.start, Et = _ ? null : e.end, la = s ? `${H} HH:mm` : H, co = !!Nt && !!Et && Ue(Nt, Et), uo = s && co ? "HH:mm" : la, qt = _ ? $ ?? P : e.end, Xt = _ ?? e.start, [Kt, Qt] = Xt && qt && qt < Xt ? [qt, Xt] : [Xt, qt];
4877
+ }, Nt = _ ? e.start && Ue(e.start, _) ? e.start : _ : e.start, Et = _ ? null : e.end, la = s ? `${W} HH:mm` : W, co = !!Nt && !!Et && Ue(Nt, Et), uo = s && co ? "HH:mm" : la, qt = _ ? $ ?? P : e.end, Xt = _ ?? e.start, [Kt, Qt] = Xt && qt && qt < Xt ? [qt, Xt] : [Xt, qt];
4878
4878
  return (
4879
4879
  /* STORY-255 / D-251-D11b — "Konsol Hattı" console-baseline trigger riding
4880
4880
  * the SHARED .input-console* recipe (tokens.css §14, same as Input/Select/
@@ -4906,7 +4906,7 @@ function Qc({
4906
4906
  const L = !k;
4907
4907
  if (L) {
4908
4908
  const Ne = e.start ?? /* @__PURE__ */ new Date();
4909
- B(Ne), z(Ne), W(null), M(null), K("grid"), C(0);
4909
+ B(Ne), z(Ne), V(null), M(null), K("grid"), C(0);
4910
4910
  }
4911
4911
  I(L);
4912
4912
  },
@@ -4970,13 +4970,13 @@ function Qc({
4970
4970
  {
4971
4971
  type: "button",
4972
4972
  "aria-disabled": He || void 0,
4973
- tabIndex: V === "presets" && re === be ? 0 : -1,
4974
- "data-preset-focused": V === "presets" && re === be ? "true" : void 0,
4973
+ tabIndex: H === "presets" && re === be ? 0 : -1,
4974
+ "data-preset-focused": H === "presets" && re === be ? "true" : void 0,
4975
4975
  onClick: () => {
4976
4976
  K("presets"), C(be), Ne && Ve(Ne);
4977
4977
  },
4978
4978
  onFocus: () => {
4979
- V === "presets" && re !== be && C(be);
4979
+ H === "presets" && re !== be && C(be);
4980
4980
  },
4981
4981
  className: b(
4982
4982
  // Compact rows on purpose: 10 shortcuts must stack no taller
@@ -5784,7 +5784,7 @@ function Fa({
5784
5784
  virtualize: P = !1,
5785
5785
  optionHeight: B
5786
5786
  }) {
5787
- const { t: _ } = ve(), W = y ?? (c ? !0 : void 0), $ = W === !0 || W === "true", M = Ee(), [V, K] = X(!1), [J, ie] = X(""), [re, C] = X(0), [E, p] = X(null), A = q(null), S = q(null), j = q(null), O = yn(J, w), U = w > 0 ? O : J, G = se(() => {
5787
+ const { t: _ } = ve(), V = y ?? (c ? !0 : void 0), $ = V === !0 || V === "true", M = Ee(), [H, K] = X(!1), [J, ie] = X(""), [re, C] = X(0), [E, p] = X(null), A = q(null), S = q(null), j = q(null), O = yn(J, w), U = w > 0 ? O : J, G = se(() => {
5788
5788
  if (!S.current) return null;
5789
5789
  const Z = S.current.getBoundingClientRect(), ue = window.innerHeight - Z.bottom, T = Z.top, Y = ue < fd && T > ue, me = Y ? Math.min(Er, T - 8) : Math.min(Er, ue - 8);
5790
5790
  return { top: Y ? Z.top - Math.min(Er, T) - 4 : Z.bottom + 4, left: Z.left, width: Z.width, maxHeight: me, openUp: Y };
@@ -5798,15 +5798,15 @@ function Fa({
5798
5798
  return ue ? [{ value: Z, label: ue }] : [];
5799
5799
  }),
5800
5800
  [ne, e, z, m]
5801
- ), H = xe(() => R.map((Z) => Z.label), [R]), ee = xe(() => R.map((Z) => Z.value), [R]), te = xe(() => {
5801
+ ), W = xe(() => R.map((Z) => Z.label), [R]), ee = xe(() => R.map((Z) => Z.value), [R]), te = xe(() => {
5802
5802
  const Z = J && x ? e.filter((me) => vn(me.label, J)) : e, ue = J.trim(), T = ue ? e.some((me) => me.label.toLowerCase() === ue.toLowerCase()) : !1;
5803
5803
  return m && ue.length > 0 && !T ? [...Z, { value: ue, label: ue, __creatable: !0 }] : Z;
5804
5804
  }, [e, J, m, x]);
5805
5805
  ae(() => {
5806
5806
  C((Z) => te.length === 0 ? 0 : Math.min(Z, te.length - 1));
5807
5807
  }, [te.length]), ae(() => {
5808
- V && C(0);
5809
- }, [V]);
5808
+ H && C(0);
5809
+ }, [H]);
5810
5810
  const F = se((Z) => {
5811
5811
  var ue;
5812
5812
  return ((ue = te[Z]) == null ? void 0 : ue.disabled) === !0;
@@ -5822,7 +5822,7 @@ function Fa({
5822
5822
  var Z;
5823
5823
  De.current !== J && (De.current = J, (Z = Se.current) == null || Z.call(Se, J));
5824
5824
  }, [J]), ae(() => {
5825
- if (!V) {
5825
+ if (!H) {
5826
5826
  p(null);
5827
5827
  return;
5828
5828
  }
@@ -5830,7 +5830,7 @@ function Fa({
5830
5830
  return window.addEventListener("scroll", ue, { capture: !0, passive: !0 }), window.addEventListener("resize", ue, { passive: !0 }), () => {
5831
5831
  cancelAnimationFrame(Z), window.removeEventListener("scroll", ue, { capture: !0 }), window.removeEventListener("resize", ue);
5832
5832
  };
5833
- }, [V, G]), ae(() => {
5833
+ }, [H, G]), ae(() => {
5834
5834
  const Z = (ue) => {
5835
5835
  var Ie, Ve;
5836
5836
  const T = ue.target, Y = (Ie = A.current) == null ? void 0 : Ie.contains(T), me = (Ve = j.current) == null ? void 0 : Ve.contains(T);
@@ -5853,7 +5853,7 @@ function Fa({
5853
5853
  s && Array.isArray(t) && (r == null || r(t.filter((T) => T !== Z))), (ue = S.current) == null || ue.focus();
5854
5854
  }, [s, t, r]), Ce = se((Z) => {
5855
5855
  $c(Z, {
5856
- open: V,
5856
+ open: H,
5857
5857
  disabled: i,
5858
5858
  optionsLen: he,
5859
5859
  highlightedIndex: le,
@@ -5868,7 +5868,7 @@ function Fa({
5868
5868
  },
5869
5869
  buttonRef: S
5870
5870
  });
5871
- }, [i, V, he, te, le, F, ge]), Ae = xe(() => {
5871
+ }, [i, H, he, te, le, F, ge]), Ae = xe(() => {
5872
5872
  const Z = te[le];
5873
5873
  return Z ? jn(M, Z.value, Z.__creatable === !0) : void 0;
5874
5874
  }, [te, le, M]);
@@ -5883,28 +5883,28 @@ function Fa({
5883
5883
  className: b("input-console select-console", u),
5884
5884
  "data-invalid": $ ? "" : void 0,
5885
5885
  "data-disabled": i ? "" : void 0,
5886
- "data-open": V ? "" : void 0,
5886
+ "data-open": H ? "" : void 0,
5887
5887
  children: [
5888
5888
  /* @__PURE__ */ a(
5889
5889
  hd,
5890
5890
  {
5891
5891
  buttonRef: S,
5892
- open: V,
5892
+ open: H,
5893
5893
  disabled: i,
5894
5894
  id: v,
5895
- ariaInvalid: W,
5895
+ ariaInvalid: V,
5896
5896
  ariaDescribedBy: g,
5897
5897
  ariaRequired: N,
5898
5898
  multiple: s,
5899
- selectedLabels: H,
5899
+ selectedLabels: W,
5900
5900
  selectedValues: ee,
5901
5901
  placeholder: n,
5902
5902
  listboxId: M,
5903
5903
  highlightedOptionId: Ae,
5904
- selectedSummary: _("aria.secili_sayisi", { count: H.length }),
5904
+ selectedSummary: _("aria.secili_sayisi", { count: W.length }),
5905
5905
  removeLabelFor: (Z) => _("aria.kaldir", { label: Z }),
5906
5906
  onToggle: () => {
5907
- if (!V) {
5907
+ if (!H) {
5908
5908
  K(!0);
5909
5909
  return;
5910
5910
  }
@@ -5915,7 +5915,7 @@ function Fa({
5915
5915
  }
5916
5916
  ),
5917
5917
  /* @__PURE__ */ a("span", { className: "input-console-baseline", "aria-hidden": !0 }),
5918
- V && E && typeof document < "u" && $e(
5918
+ H && E && typeof document < "u" && $e(
5919
5919
  /* @__PURE__ */ a(
5920
5920
  dd,
5921
5921
  {
@@ -6122,7 +6122,7 @@ const Ed = pe(
6122
6122
  function M(A) {
6123
6123
  I.current = A, typeof k == "function" ? k(A) : k && (k.current = A);
6124
6124
  }
6125
- function V(A) {
6125
+ function H(A) {
6126
6126
  if (!A || A.length === 0) return;
6127
6127
  const S = [], j = [];
6128
6128
  for (const O of Array.from(A)) {
@@ -6152,7 +6152,7 @@ const Ed = pe(
6152
6152
  A.preventDefault(), z(!1);
6153
6153
  }
6154
6154
  function C(A) {
6155
- s || (A.preventDefault(), z(!1), V(A.dataTransfer.files));
6155
+ s || (A.preventDefault(), z(!1), H(A.dataTransfer.files));
6156
6156
  }
6157
6157
  function E(A) {
6158
6158
  l ? l(A) : e([]);
@@ -6221,7 +6221,7 @@ const Ed = pe(
6221
6221
  className: "hidden",
6222
6222
  "aria-hidden": "true",
6223
6223
  onChange: (A) => {
6224
- V(A.target.files), A.target.value = "";
6224
+ H(A.target.files), A.target.value = "";
6225
6225
  }
6226
6226
  }
6227
6227
  )
@@ -6541,14 +6541,14 @@ function lf({
6541
6541
  }) {
6542
6542
  const { t: I } = ve(), D = Ee(), [z, P] = X(() => /* @__PURE__ */ new Set()), B = (E) => {
6543
6543
  z.has(E) || P(new Set(z).add(E));
6544
- }, _ = Md(e, { keyPattern: r, valueMinLength: o, valueMaxLength: s }), W = !x && !w, $ = W && (N === void 0 || e.length < N), M = u ?? I("key_value_editor.anahtar"), V = m ?? I("key_value_editor.deger"), K = (E, p) => {
6544
+ }, _ = Md(e, { keyPattern: r, valueMinLength: o, valueMaxLength: s }), V = !x && !w, $ = V && (N === void 0 || e.length < N), M = u ?? I("key_value_editor.anahtar"), H = m ?? I("key_value_editor.deger"), K = (E, p) => {
6545
6545
  B(E), t(e.map((A) => A.id === E ? { ...A, ...p } : A));
6546
6546
  }, J = () => t([...e, { id: Wn(), key: "", value: "" }]), ie = (E) => t(e.filter((p) => p.id !== E)), re = (E) => E.field === "key" ? E.kind === "required" ? I("key_value_editor.anahtar_zorunlu") : E.kind === "duplicate" ? I("key_value_editor.anahtar_tekrar") : n ? I("key_value_editor.anahtar_desen_ipucu", { hint: n }) : I("key_value_editor.anahtar_desen", { pattern: String(r instanceof RegExp ? r.source : r) }) : E.kind === "required" ? I("key_value_editor.deger_zorunlu") : E.kind === "too_short" ? I("key_value_editor.deger_kisa", { count: E.limit }) : I("key_value_editor.deger_uzun", { count: E.limit }), C = c == null ? void 0 : c.filter((E) => !e.some((p) => p.key === E));
6547
6547
  return /* @__PURE__ */ h("div", { className: b("flex flex-col gap-2", k), children: [
6548
- 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: g ?? I("key_value_editor.bos") }) : /* @__PURE__ */ h("div", { role: "table", "aria-label": `${M} / ${V}`, className: "flex flex-col gap-1", children: [
6548
+ 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: g ?? I("key_value_editor.bos") }) : /* @__PURE__ */ h("div", { role: "table", "aria-label": `${M} / ${H}`, className: "flex flex-col gap-1", children: [
6549
6549
  /* @__PURE__ */ h("div", { role: "row", className: "grid grid-cols-[minmax(0,2fr)_minmax(0,3fr)_auto] gap-2 px-0.5", children: [
6550
6550
  /* @__PURE__ */ a("span", { role: "columnheader", className: "text-[length:var(--font-xs)] font-medium text-[var(--color-text-secondary)]", children: M }),
6551
- /* @__PURE__ */ a("span", { role: "columnheader", className: "text-[length:var(--font-xs)] font-medium text-[var(--color-text-secondary)]", children: V }),
6551
+ /* @__PURE__ */ a("span", { role: "columnheader", className: "text-[length:var(--font-xs)] font-medium text-[var(--color-text-secondary)]", children: H }),
6552
6552
  /* @__PURE__ */ a("span", { role: "columnheader", className: "w-8", children: /* @__PURE__ */ a("span", { className: "sr-only", children: I("key_value_editor.islemler") }) })
6553
6553
  ] }),
6554
6554
  e.map((E, p) => {
@@ -6585,7 +6585,7 @@ function lf({
6585
6585
  readOnly: x,
6586
6586
  disabled: w,
6587
6587
  placeholder: v,
6588
- "aria-label": `${V} ${p + 1}`,
6588
+ "aria-label": `${H} ${p + 1}`,
6589
6589
  "aria-invalid": O ? !0 : void 0,
6590
6590
  "aria-describedby": ne.length > 0 ? G : void 0,
6591
6591
  inputSize: "sm",
@@ -6593,7 +6593,7 @@ function lf({
6593
6593
  autoComplete: "off"
6594
6594
  }
6595
6595
  ) }),
6596
- /* @__PURE__ */ a("div", { role: "cell", className: "w-8", children: W && /* @__PURE__ */ a(
6596
+ /* @__PURE__ */ a("div", { role: "cell", className: "w-8", children: V && /* @__PURE__ */ a(
6597
6597
  ye,
6598
6598
  {
6599
6599
  variant: "ghost",
@@ -6609,7 +6609,7 @@ function lf({
6609
6609
  })
6610
6610
  ] }),
6611
6611
  C && C.length > 0 && /* @__PURE__ */ a("datalist", { id: `${D}-keys`, children: C.map((E) => /* @__PURE__ */ a("option", { value: E }, E)) }),
6612
- W && /* @__PURE__ */ a("div", { children: /* @__PURE__ */ h(ye, { variant: "ghost", size: "sm", onClick: J, disabled: !$, children: [
6612
+ V && /* @__PURE__ */ a("div", { children: /* @__PURE__ */ h(ye, { variant: "ghost", size: "sm", onClick: J, disabled: !$, children: [
6613
6613
  /* @__PURE__ */ a(Kr, { size: 14 }),
6614
6614
  y ?? I("key_value_editor.ekle")
6615
6615
  ] }) })
@@ -6734,8 +6734,8 @@ function df({
6734
6734
  onInteractOutside: N,
6735
6735
  onEscapeKeyDown: x
6736
6736
  }) {
6737
- const { t: w } = ve(), k = Ee(), I = Ee(), D = q(null), z = q(null), [P, B] = X(!1), _ = n ?? (r === "left" ? "280px" : "30vw"), W = q({ onClose: t, onEscapeKeyDown: x, closeOnEscape: g });
6738
- W.current = { onClose: t, onEscapeKeyDown: x, closeOnEscape: g };
6737
+ const { t: w } = ve(), k = Ee(), I = Ee(), D = q(null), z = q(null), [P, B] = X(!1), _ = n ?? (r === "left" ? "280px" : "30vw"), V = q({ onClose: t, onEscapeKeyDown: x, closeOnEscape: g });
6738
+ V.current = { onClose: t, onEscapeKeyDown: x, closeOnEscape: g };
6739
6739
  const $ = rt(it), M = q($);
6740
6740
  if (M.current = $, ae(() => {
6741
6741
  var S;
@@ -6748,7 +6748,7 @@ function df({
6748
6748
  }), E = (j) => {
6749
6749
  if (wr(D.current, j)) {
6750
6750
  if (j.key === "Escape") {
6751
- const { onClose: O, onEscapeKeyDown: U, closeOnEscape: G } = W.current;
6751
+ const { onClose: O, onEscapeKeyDown: U, closeOnEscape: G } = V.current;
6752
6752
  return U == null || U(j), j.defaultPrevented || G === !1 ? void 0 : O("escape");
6753
6753
  }
6754
6754
  xr(j, D.current);
@@ -6776,7 +6776,7 @@ function df({
6776
6776
  const C = requestAnimationFrame(() => B(!0));
6777
6777
  return () => cancelAnimationFrame(C);
6778
6778
  }, [e]), !e) return null;
6779
- const V = r === "left" ? "-translate-x-full" : "translate-x-full", J = r === "right" ? "sheet-glass-divider" : "border-b border-[var(--color-border-subtle)]", ie = (C) => {
6779
+ const H = r === "left" ? "-translate-x-full" : "translate-x-full", J = r === "right" ? "sheet-glass-divider" : "border-b border-[var(--color-border-subtle)]", ie = (C) => {
6780
6780
  N == null || N(C), !(C.defaultPrevented || y === !1) && t("backdrop");
6781
6781
  }, re = /* @__PURE__ */ a(
6782
6782
  ye,
@@ -6815,7 +6815,7 @@ function df({
6815
6815
  "flex flex-col outline-none",
6816
6816
  "transition-transform duration-[var(--motion-duration-base)] ease-[var(--motion-easing-out-quint)]",
6817
6817
  r === "left" ? "border-r border-[var(--color-border-default)] bg-[var(--color-bg-card)] shadow-[var(--elevation-5)]" : b("sheet-glass-right border-l", v === "solid" && "sheet-glass-right--solid"),
6818
- P ? "translate-x-0" : V,
6818
+ P ? "translate-x-0" : H,
6819
6819
  i
6820
6820
  ),
6821
6821
  style: {
@@ -7007,8 +7007,8 @@ function uf({
7007
7007
  getCount: c,
7008
7008
  className: l
7009
7009
  }) {
7010
- var W, $;
7011
- const { t: d } = ve(), u = Ee(), m = r ?? ((W = e.find((M) => !M.disabled)) == null ? void 0 : W.key) ?? (($ = e[0]) == null ? void 0 : $.key) ?? "", f = r ?? m, [v, y] = X(m), g = t !== void 0, N = g ? t : v, x = q({}), w = Pd(s), k = q(!1), I = se(
7010
+ var V, $;
7011
+ const { t: d } = ve(), u = Ee(), m = r ?? ((V = e.find((M) => !M.disabled)) == null ? void 0 : V.key) ?? (($ = e[0]) == null ? void 0 : $.key) ?? "", f = r ?? m, [v, y] = X(m), g = t !== void 0, N = g ? t : v, x = q({}), w = Pd(s), k = q(!1), I = se(
7012
7012
  (M) => {
7013
7013
  M !== N && (g || y(M), n == null || n(M));
7014
7014
  },
@@ -7017,8 +7017,8 @@ function uf({
7017
7017
  ae(() => {
7018
7018
  if (!w || typeof window > "u") return;
7019
7019
  const M = () => {
7020
- const V = new URLSearchParams(window.location.search).get(w.param);
7021
- V && e.some((K) => K.key === V && !K.disabled) && (k.current = !0, g ? n == null || n(V) : y(V));
7020
+ const H = new URLSearchParams(window.location.search).get(w.param);
7021
+ H && e.some((K) => K.key === H && !K.disabled) && (k.current = !0, g ? n == null || n(H) : y(H));
7022
7022
  };
7023
7023
  return M(), window.addEventListener("popstate", M), () => window.removeEventListener("popstate", M);
7024
7024
  }, [w == null ? void 0 : w.param]), ae(() => {
@@ -7029,10 +7029,10 @@ function uf({
7029
7029
  }
7030
7030
  const M = new URL(window.location.href);
7031
7031
  N === f ? M.searchParams.delete(w.param) : M.searchParams.set(w.param, N);
7032
- const V = `${M.pathname}${M.search}${M.hash}`;
7033
- w.history === "push" ? window.history.pushState(window.history.state, "", V) : window.history.replaceState(window.history.state, "", V);
7032
+ const H = `${M.pathname}${M.search}${M.hash}`;
7033
+ w.history === "push" ? window.history.pushState(window.history.state, "", H) : window.history.replaceState(window.history.state, "", H);
7034
7034
  }, [N]);
7035
- const D = (M) => `${u}-tab-${M.replace(/\s+/g, "_")}`, z = (M) => `${u}-tabpanel-${M.replace(/\s+/g, "_")}`, P = (M) => c ? c(M.key) : M.count, B = (M, V) => {
7035
+ const D = (M) => `${u}-tab-${M.replace(/\s+/g, "_")}`, z = (M) => `${u}-tabpanel-${M.replace(/\s+/g, "_")}`, P = (M) => c ? c(M.key) : M.count, B = (M, H) => {
7036
7036
  const K = M.key === N, J = P(M);
7037
7037
  return /* @__PURE__ */ h(
7038
7038
  "button",
@@ -7056,7 +7056,7 @@ function uf({
7056
7056
  "focus-visible:outline-none",
7057
7057
  qn,
7058
7058
  M.disabled && "cursor-not-allowed opacity-50",
7059
- V ? b(
7059
+ H ? b(
7060
7060
  "rounded-[var(--radius-sm)] px-[var(--space-3)] py-[var(--space-1)]",
7061
7061
  K ? "bg-[var(--color-bg-card)] text-[var(--color-text-primary)] shadow-sm" : "text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)]"
7062
7062
  ) : b(
@@ -7069,7 +7069,7 @@ function uf({
7069
7069
  M.icon,
7070
7070
  M.label,
7071
7071
  typeof J == "number" && /* @__PURE__ */ a(Kn, { count: J, active: K }),
7072
- !V && K && /* @__PURE__ */ a(
7072
+ !H && K && /* @__PURE__ */ a(
7073
7073
  "span",
7074
7074
  {
7075
7075
  className: b(
@@ -7095,7 +7095,7 @@ function uf({
7095
7095
  }
7096
7096
  );
7097
7097
  else if (o === "overflow") {
7098
- const M = e.filter((K) => K.group !== "overflow"), V = e.filter((K) => K.group === "overflow");
7098
+ const M = e.filter((K) => K.group !== "overflow"), H = e.filter((K) => K.group === "overflow");
7099
7099
  _ = /* @__PURE__ */ h(
7100
7100
  "div",
7101
7101
  {
@@ -7104,11 +7104,11 @@ function uf({
7104
7104
  className: "flex items-center overflow-x-auto border-b border-[var(--color-border-subtle)]",
7105
7105
  children: [
7106
7106
  M.map((K) => B(K, !1)),
7107
- V.length > 0 && /* @__PURE__ */ a(
7107
+ H.length > 0 && /* @__PURE__ */ a(
7108
7108
  Od,
7109
7109
  {
7110
7110
  label: d("common.daha_fazla"),
7111
- items: V,
7111
+ items: H,
7112
7112
  activeKey: N,
7113
7113
  onSelect: I,
7114
7114
  resolveCount: P
@@ -7308,7 +7308,7 @@ function Jn({
7308
7308
  }) {
7309
7309
  const [y, g] = X(!1), N = o ?? y, x = q(null), w = q(null), k = Ee(), I = q(null), D = q(!1), z = q(!1), P = q(u);
7310
7310
  P.current = u;
7311
- const [B, _] = X(null), [W, $] = X(!1), M = m === "modal" || m === "auto" && W, V = nn(
7311
+ const [B, _] = X(null), [V, $] = X(!1), M = m === "modal" || m === "auto" && V, H = nn(
7312
7312
  Fo,
7313
7313
  () => N && jo(w.current, M ? qd : Ud),
7314
7314
  () => !1
@@ -7359,7 +7359,7 @@ function Jn({
7359
7359
  const p = () => {
7360
7360
  const ne = x.current, R = w.current;
7361
7361
  if (!ne || !R) return;
7362
- const H = ne.getBoundingClientRect(), ee = f ? Math.max(H.width, v) : void 0, te = R.style.width;
7362
+ const W = ne.getBoundingClientRect(), ee = f ? Math.max(W.width, v) : void 0, te = R.style.width;
7363
7363
  ee !== void 0 && (R.style.width = `${ee}px`);
7364
7364
  let F, he, le, we;
7365
7365
  try {
@@ -7372,7 +7372,7 @@ function Jn({
7372
7372
  width: ee !== void 0 && F <= 0 ? ee : F,
7373
7373
  height: we === null ? le : Math.min(le, we)
7374
7374
  }, De = Nn(
7375
- H,
7375
+ W,
7376
7376
  Se,
7377
7377
  { width: window.innerWidth, height: window.innerHeight },
7378
7378
  { gap: Bd, margin: Fd, side: r, align: n }
@@ -7471,7 +7471,7 @@ function Jn({
7471
7471
  "data-popover-layer": M ? "modal" : void 0,
7472
7472
  className: b(
7473
7473
  "fixed outline-none",
7474
- V ? Wd : M ? Hd : Vd,
7474
+ H ? Wd : M ? Hd : Vd,
7475
7475
  Xd,
7476
7476
  "border border-[var(--color-border-default)] bg-[var(--color-bg-card)]",
7477
7477
  "rounded-[var(--radius-md)] shadow-[var(--elevation-3)]",
@@ -7521,15 +7521,15 @@ function $d({
7521
7521
  top: 0,
7522
7522
  left: 0,
7523
7523
  width: N
7524
- }), _ = q(null), W = q(null), $ = q(null), M = q(null), V = Ee(), K = r.trim().length > 0, J = k && (K || e.length > 0), ie = xe(() => {
7525
- const R = /* @__PURE__ */ new Map(), H = [];
7524
+ }), _ = q(null), V = q(null), $ = q(null), M = q(null), H = Ee(), K = r.trim().length > 0, J = k && (K || e.length > 0), ie = xe(() => {
7525
+ const R = /* @__PURE__ */ new Map(), W = [];
7526
7526
  for (const te of e) {
7527
7527
  const F = te.group;
7528
- R.has(F) || (R.set(F, []), H.push(F)), R.get(F).push(te);
7528
+ R.has(F) || (R.set(F, []), W.push(F)), R.get(F).push(te);
7529
7529
  }
7530
- let ee = H;
7530
+ let ee = W;
7531
7531
  if (s && s.length > 0) {
7532
- const te = s.filter((he) => R.has(he)), F = H.filter(
7532
+ const te = s.filter((he) => R.has(he)), F = W.filter(
7533
7533
  (he) => he === void 0 || !s.includes(he)
7534
7534
  );
7535
7535
  ee = [...te, ...F];
@@ -7539,7 +7539,7 @@ function $d({
7539
7539
  () => ie.flatMap((R) => R.items),
7540
7540
  [ie]
7541
7541
  ), C = xe(
7542
- () => re.reduce((R, H, ee) => (H.disabled || R.push(ee), R), []),
7542
+ () => re.reduce((R, W, ee) => (W.disabled || R.push(ee), R), []),
7543
7543
  [re]
7544
7544
  );
7545
7545
  ae(() => {
@@ -7560,19 +7560,19 @@ function $d({
7560
7560
  window.removeEventListener("resize", E), window.removeEventListener("scroll", E, !0);
7561
7561
  };
7562
7562
  }, [J, E]), ae(() => {
7563
- var R, H;
7564
- D < 0 || !$.current || (H = (R = $.current.querySelector(`[data-index="${D}"]`)) == null ? void 0 : R.scrollIntoView) == null || H.call(R, { block: "nearest" });
7563
+ var R, W;
7564
+ D < 0 || !$.current || (W = (R = $.current.querySelector(`[data-index="${D}"]`)) == null ? void 0 : R.scrollIntoView) == null || W.call(R, { block: "nearest" });
7565
7565
  }, [D]), ae(() => {
7566
7566
  if (!v) return;
7567
- function R(H) {
7567
+ function R(W) {
7568
7568
  var ee;
7569
- (H.metaKey || H.ctrlKey) && H.key === "k" && (H.preventDefault(), (ee = W.current) == null || ee.focus());
7569
+ (W.metaKey || W.ctrlKey) && W.key === "k" && (W.preventDefault(), (ee = V.current) == null || ee.focus());
7570
7570
  }
7571
7571
  return document.addEventListener("keydown", R), () => document.removeEventListener("keydown", R);
7572
7572
  }, [v]), ae(() => {
7573
- function R(H) {
7573
+ function R(W) {
7574
7574
  var te, F;
7575
- const ee = H.target;
7575
+ const ee = W.target;
7576
7576
  !((te = _.current) != null && te.contains(ee)) && !((F = $.current) != null && F.contains(ee)) && I(!1);
7577
7577
  }
7578
7578
  return document.addEventListener("mousedown", R), () => document.removeEventListener("mousedown", R);
@@ -7581,8 +7581,8 @@ function $d({
7581
7581
  }, []);
7582
7582
  const p = se(
7583
7583
  (R) => {
7584
- C.length !== 0 && z((H) => {
7585
- const ee = C.indexOf(H);
7584
+ C.length !== 0 && z((W) => {
7585
+ const ee = C.indexOf(W);
7586
7586
  let te;
7587
7587
  return ee === -1 ? te = R > 0 ? 0 : C.length - 1 : (te = ee + R, te < 0 ? te = f ? C.length - 1 : 0 : te >= C.length && (te = f ? 0 : C.length - 1)), C[te];
7588
7588
  });
@@ -7590,7 +7590,7 @@ function $d({
7590
7590
  [C, f]
7591
7591
  ), A = se(() => {
7592
7592
  var R;
7593
- I(!1), z(-1), (R = W.current) == null || R.blur();
7593
+ I(!1), z(-1), (R = V.current) == null || R.blur();
7594
7594
  }, []), S = se(
7595
7595
  (R) => {
7596
7596
  R.disabled || t(R);
@@ -7627,13 +7627,13 @@ function $d({
7627
7627
  /* @__PURE__ */ a(
7628
7628
  Pe,
7629
7629
  {
7630
- ref: W,
7630
+ ref: V,
7631
7631
  type: "search",
7632
7632
  role: "combobox",
7633
7633
  "aria-autocomplete": "list",
7634
7634
  "aria-expanded": J,
7635
- "aria-controls": J ? V : void 0,
7636
- "aria-activedescendant": J && D >= 0 && D < re.length ? `${V}-opt-${D}` : void 0,
7635
+ "aria-controls": J ? H : void 0,
7636
+ "aria-activedescendant": J && D >= 0 && D < re.length ? `${H}-opt-${D}` : void 0,
7637
7637
  inputSize: g,
7638
7638
  placeholder: y,
7639
7639
  value: r,
@@ -7652,7 +7652,7 @@ function $d({
7652
7652
  "div",
7653
7653
  {
7654
7654
  ref: $,
7655
- id: V,
7655
+ id: H,
7656
7656
  role: "listbox",
7657
7657
  className: b(
7658
7658
  "fixed z-[60]",
@@ -7666,8 +7666,8 @@ function $d({
7666
7666
  style: { top: P.top, left: P.left, width: P.width },
7667
7667
  onMouseDown: (R) => R.preventDefault(),
7668
7668
  children: [
7669
- ie.map((R, H) => /* @__PURE__ */ h("div", { children: [
7670
- H > 0 && /* @__PURE__ */ a("div", { className: "border-t border-[var(--color-border-subtle)]" }),
7669
+ ie.map((R, W) => /* @__PURE__ */ h("div", { children: [
7670
+ W > 0 && /* @__PURE__ */ a("div", { className: "border-t border-[var(--color-border-subtle)]" }),
7671
7671
  R.group !== void 0 && o && /* @__PURE__ */ h(
7672
7672
  "div",
7673
7673
  {
@@ -7689,7 +7689,7 @@ function $d({
7689
7689
  return /* @__PURE__ */ h(
7690
7690
  "div",
7691
7691
  {
7692
- id: `${V}-opt-${te}`,
7692
+ id: `${H}-opt-${te}`,
7693
7693
  role: "option",
7694
7694
  "aria-selected": F,
7695
7695
  "aria-disabled": ee.disabled || void 0,
@@ -8230,10 +8230,10 @@ function hf({
8230
8230
  onPageChange: P,
8231
8231
  onPageSizeChange: B,
8232
8232
  pageSizeOptions: _,
8233
- stickyHeader: W,
8233
+ stickyHeader: V,
8234
8234
  getRowId: $,
8235
8235
  getRowAriaLabel: M,
8236
- getRowSelectionLabel: V,
8236
+ getRowSelectionLabel: H,
8237
8237
  isRowClickable: K,
8238
8238
  isRowSelectable: J,
8239
8239
  getRowSelectionDisabledReason: ie,
@@ -8249,7 +8249,7 @@ function hf({
8249
8249
  bulkActionsContent: G
8250
8250
  }) {
8251
8251
  var Re, _e;
8252
- const ne = z ? z.page + 1 : k, R = (z == null ? void 0 : z.size) ?? I, H = (z == null ? void 0 : z.totalElements) ?? D, ee = (fe) => {
8252
+ const ne = z ? z.page + 1 : k, R = (z == null ? void 0 : z.size) ?? I, W = (z == null ? void 0 : z.totalElements) ?? D, ee = (fe) => {
8253
8253
  P == null || P(z ? fe - 1 : fe);
8254
8254
  }, te = v !== void 0, F = xe(
8255
8255
  () => v ? [{ id: v, desc: y === "DESC" }] : Xa,
@@ -8331,8 +8331,8 @@ function hf({
8331
8331
  // override TanStack's Shift default in the `sorting` mode too.
8332
8332
  ...te ? vu : null
8333
8333
  }), { rows: qe } = Ve.getRowModel(), Q = Object.keys(x ?? {}).length, oe = xe(
8334
- () => ({ getRowSelectionLabel: V, getRowAriaLabel: M, getRowSelectionDisabledReason: ie }),
8335
- [V, M, ie]
8334
+ () => ({ getRowSelectionLabel: H, getRowAriaLabel: M, getRowSelectionDisabledReason: ie }),
8335
+ [H, M, ie]
8336
8336
  ), de = cn({
8337
8337
  count: Ae ? qe.length : 0,
8338
8338
  getScrollElement: () => Ce.current,
@@ -8406,7 +8406,7 @@ function hf({
8406
8406
  ou,
8407
8407
  {
8408
8408
  headerGroups: Ve.getHeaderGroups(),
8409
- stickyHeader: W,
8409
+ stickyHeader: V,
8410
8410
  sortingInteractive: Se
8411
8411
  }
8412
8412
  ),
@@ -8455,12 +8455,12 @@ function hf({
8455
8455
  ] }) })
8456
8456
  }
8457
8457
  ),
8458
- ne !== void 0 && H !== void 0 && P && /* @__PURE__ */ a(
8458
+ ne !== void 0 && W !== void 0 && P && /* @__PURE__ */ a(
8459
8459
  au,
8460
8460
  {
8461
8461
  page: ne,
8462
8462
  pageSize: R ?? 50,
8463
- total: H,
8463
+ total: W,
8464
8464
  onPageChange: ee,
8465
8465
  onPageSizeChange: B,
8466
8466
  pageSizeOptions: _,
@@ -8933,17 +8933,17 @@ function yf({
8933
8933
  var U, G;
8934
8934
  const { fromKey: A, toKey: S } = mt(p), j = (U = f[A]) == null ? void 0 : U.value, O = (G = f[S]) == null ? void 0 : G.value;
8935
8935
  return { start: j ? new Date(j) : null, end: O ? new Date(O) : null };
8936
- }, [f]), W = se((p, A) => {
8936
+ }, [f]), V = se((p, A) => {
8937
8937
  const S = p.key, j = et(A);
8938
8938
  v((O) => {
8939
- var R, H, ee, te;
8939
+ var R, W, ee, te;
8940
8940
  if (p.type === "daterange") {
8941
8941
  if (!j) {
8942
8942
  if (!et((R = O[S]) == null ? void 0 : R.operator)) return O;
8943
8943
  const Se = { ...O };
8944
8944
  return Br(Se, S), Se;
8945
8945
  }
8946
- const F = { ...O }, { fromKey: he, toKey: le } = mt(p), we = !!((H = O[he]) != null && H.value) || !!((ee = O[le]) != null && ee.value);
8946
+ const F = { ...O }, { fromKey: he, toKey: le } = mt(p), we = !!((W = O[he]) != null && W.value) || !!((ee = O[le]) != null && ee.value);
8947
8947
  return F[he] = { operator: Ot, value: "" }, F[le] = { operator: Bt, value: "" }, F[S] = { operator: yr(A), value: "" }, we && pt(F, S, e, k), F;
8948
8948
  }
8949
8949
  const U = ((te = O[S]) == null ? void 0 : te.value) ?? "", G = yr(A), ne = {
@@ -8962,10 +8962,10 @@ function yf({
8962
8962
  const S = (U = A[p.key]) == null ? void 0 : U.operator, j = S && !et(S) ? S : k(p), O = { ...A, [p.key]: Or(p, j) };
8963
8963
  return pt(O, p.key, e, k), O;
8964
8964
  });
8965
- }, [e, k, B]), M = q(/* @__PURE__ */ new Map()), V = q(/* @__PURE__ */ new Map()), K = (p) => {
8965
+ }, [e, k, B]), M = q(/* @__PURE__ */ new Map()), H = q(/* @__PURE__ */ new Map()), K = (p) => {
8966
8966
  $(p), setTimeout(() => {
8967
8967
  var S, j;
8968
- const A = ((S = M.current.get(p.key)) == null ? void 0 : S.querySelector(vr)) ?? ((j = V.current.get(p.key)) == null ? void 0 : j.querySelector(vr));
8968
+ const A = ((S = M.current.get(p.key)) == null ? void 0 : S.querySelector(vr)) ?? ((j = H.current.get(p.key)) == null ? void 0 : j.querySelector(vr));
8969
8969
  A == null || A.focus();
8970
8970
  }, 0);
8971
8971
  }, J = () => {
@@ -8986,8 +8986,8 @@ function yf({
8986
8986
  const { fromKey: U, toKey: G } = mt(A);
8987
8987
  [[U, Ot], [G, Bt]].forEach(
8988
8988
  ([ne, R]) => {
8989
- const H = f[ne];
8990
- !H || H.value === "" || p.push({ field: ne, operator: R, value: H.value });
8989
+ const W = f[ne];
8990
+ !W || W.value === "" || p.push({ field: ne, operator: R, value: W.value });
8991
8991
  }
8992
8992
  );
8993
8993
  return;
@@ -9009,8 +9009,8 @@ function yf({
9009
9009
  }, C = e.filter(re), E = (p) => {
9010
9010
  var ne;
9011
9011
  const A = I(p), S = ht(A).map((R) => {
9012
- var H, ee;
9013
- return ((ee = (H = p.options) == null ? void 0 : H.find((te) => te.value === R)) == null ? void 0 : ee.label) ?? R;
9012
+ var W, ee;
9013
+ return ((ee = (W = p.options) == null ? void 0 : W.find((te) => te.value === R)) == null ? void 0 : ee.label) ?? R;
9014
9014
  }), j = S.length - Za, O = S.slice(0, Za).join(", "), U = j > 0 ? `${O} ${d("filter.chip_more", { count: j, defaultValue: "+{{count}}" })}` : O;
9015
9015
  if (A.operator === "=") return `${p.label}: ${U}`;
9016
9016
  const G = ((ne = w(p).find((R) => R.value === A.operator)) == null ? void 0 : ne.symbol) ?? ku(A.operator);
@@ -9074,17 +9074,17 @@ function yf({
9074
9074
  /* @__PURE__ */ h(
9075
9075
  "div",
9076
9076
  {
9077
- ref: (H) => {
9078
- H ? V.current.set(p.key, H) : V.current.delete(p.key);
9077
+ ref: (W) => {
9078
+ W ? H.current.set(p.key, W) : H.current.delete(p.key);
9079
9079
  },
9080
9080
  className: "flex items-center gap-[var(--space-1)]",
9081
9081
  children: [
9082
- i && j.length > 1 && /* @__PURE__ */ a(Fu, { operators: j, value: U, onChange: (H) => W(p, H) }),
9082
+ i && j.length > 1 && /* @__PURE__ */ a(Fu, { operators: j, value: U, onChange: (W) => V(p, W) }),
9083
9083
  /* @__PURE__ */ a(
9084
9084
  "div",
9085
9085
  {
9086
- ref: (H) => {
9087
- H ? M.current.set(p.key, H) : M.current.delete(p.key);
9086
+ ref: (W) => {
9087
+ W ? M.current.set(p.key, W) : M.current.delete(p.key);
9088
9088
  },
9089
9089
  className: "min-w-0 flex-1",
9090
9090
  children: O ? (
@@ -9102,7 +9102,7 @@ function yf({
9102
9102
  id: G,
9103
9103
  options: p.options ?? [],
9104
9104
  value: ht(S),
9105
- onChange: (H) => P(p, H),
9105
+ onChange: (W) => P(p, W),
9106
9106
  placeholder: p.label,
9107
9107
  searchPlaceholder: p.label,
9108
9108
  onSearch: p.type === "combobox" ? p.onSearch : void 0,
@@ -9113,8 +9113,8 @@ function yf({
9113
9113
  // Async server-lookup filter field — the Combobox already
9114
9114
  // portals its panel to document.body (escapes this panel's
9115
9115
  // overflow) and debounces onSearch; consumer fetches + re-passes options.
9116
- /* @__PURE__ */ a(Fa, { id: G, options: p.options ?? [], value: S.value, onChange: (H) => z(p, H), placeholder: p.label, searchPlaceholder: p.label, onSearch: p.onSearch, loading: p.loading })
9117
- ) : p.type === "select" && p.options ? /* @__PURE__ */ a(Ht, { id: G, options: p.options, value: S.value, onChange: (H) => z(p, H), placeholder: p.label, searchable: p.searchable }) : p.type === "boolean" ? /* @__PURE__ */ a(
9116
+ /* @__PURE__ */ a(Fa, { id: G, options: p.options ?? [], value: S.value, onChange: (W) => z(p, W), placeholder: p.label, searchPlaceholder: p.label, onSearch: p.onSearch, loading: p.loading })
9117
+ ) : p.type === "select" && p.options ? /* @__PURE__ */ a(Ht, { id: G, options: p.options, value: S.value, onChange: (W) => z(p, W), placeholder: p.label, searchable: p.searchable }) : p.type === "boolean" ? /* @__PURE__ */ a(
9118
9118
  In,
9119
9119
  {
9120
9120
  direction: "horizontal",
@@ -9125,7 +9125,7 @@ function yf({
9125
9125
  { value: "false", label: d("filter.no") }
9126
9126
  ],
9127
9127
  value: S.value,
9128
- onChange: (H) => z(p, H)
9128
+ onChange: (W) => z(p, W)
9129
9129
  }
9130
9130
  ) : p.type === "daterange" ? (
9131
9131
  // NB-FILTER-DATERANGE-01 — hosts the existing DateRangePicker
@@ -9141,7 +9141,7 @@ function yf({
9141
9141
  id: G,
9142
9142
  describeValue: !0,
9143
9143
  value: _(p),
9144
- onChange: (H) => B(p, H),
9144
+ onChange: (W) => B(p, W),
9145
9145
  presets: p.presets ?? !1,
9146
9146
  showTime: p.showTime,
9147
9147
  inclusiveEnd: p.inclusiveEnd,
@@ -9149,7 +9149,7 @@ function yf({
9149
9149
  timeLayout: p.timeLayout
9150
9150
  }
9151
9151
  )
9152
- ) : p.type === "date" ? /* @__PURE__ */ a(Fn, { id: G, describeValue: !0, value: S.value ? new Date(S.value) : null, onChange: (H) => z(p, (H == null ? void 0 : H.toISOString()) ?? ""), showTime: p.showTime, minuteStep: p.minuteStep, timeLayout: p.timeLayout }) : /* @__PURE__ */ a(Pe, { id: G, type: p.type === "number" ? "number" : "text", value: S.value, onChange: (H) => z(p, H.target.value), placeholder: p.label, inputSize: "sm" })
9152
+ ) : p.type === "date" ? /* @__PURE__ */ a(Fn, { id: G, describeValue: !0, value: S.value ? new Date(S.value) : null, onChange: (W) => z(p, (W == null ? void 0 : W.toISOString()) ?? ""), showTime: p.showTime, minuteStep: p.minuteStep, timeLayout: p.timeLayout }) : /* @__PURE__ */ a(Pe, { id: G, type: p.type === "number" ? "number" : "text", value: S.value, onChange: (W) => z(p, W.target.value), placeholder: p.label, inputSize: "sm" })
9153
9153
  }
9154
9154
  ),
9155
9155
  p.clearable && (re(p) ? /* @__PURE__ */ a(
@@ -9214,8 +9214,8 @@ const gf = pe(function({
9214
9214
  "aria-required": g,
9215
9215
  required: N
9216
9216
  }, x) {
9217
- const { t: w } = ve(), k = Ee(), I = `${k}-error`, D = `${k}-tab-raw`, z = `${k}-tab-form`, P = `${k}-raw`, B = `${k}-form`, [_, W] = X("raw"), [$, M] = X(!1), V = q(null);
9218
- vo(x, () => V.current, []);
9217
+ const { t: w } = ve(), k = Ee(), I = `${k}-error`, D = `${k}-tab-raw`, z = `${k}-tab-form`, P = `${k}-raw`, B = `${k}-form`, [_, V] = X("raw"), [$, M] = X(!1), H = q(null);
9218
+ vo(x, () => H.current, []);
9219
9219
  const K = q(null), [J, ie] = X(null), [re, C] = X(null);
9220
9220
  Oe(() => {
9221
9221
  const Q = K.current;
@@ -9229,7 +9229,7 @@ const gf = pe(function({
9229
9229
  });
9230
9230
  const E = q(null), p = q(null), A = se(() => {
9231
9231
  var de;
9232
- const oe = `translateY(${-(((de = V.current) == null ? void 0 : de.scrollTop) ?? 0)}px)`;
9232
+ const oe = `translateY(${-(((de = H.current) == null ? void 0 : de.scrollTop) ?? 0)}px)`;
9233
9233
  E.current && (E.current.style.transform = oe), p.current && (p.current.style.transform = oe);
9234
9234
  }, []);
9235
9235
  Oe(A);
@@ -9241,7 +9241,7 @@ const gf = pe(function({
9241
9241
  } catch {
9242
9242
  return null;
9243
9243
  }
9244
- }, [U, S]), ne = ju(G) ? G : null, R = $ && U && !U.ok ? U.error : null, H = xe(
9244
+ }, [U, S]), ne = ju(G) ? G : null, R = $ && U && !U.ok ? U.error : null, W = xe(
9245
9245
  () => (c ?? []).map((Q) => {
9246
9246
  const oe = Q.severity ?? "error";
9247
9247
  if (Q.line !== void 0 && Q.line >= 1)
@@ -9256,15 +9256,15 @@ const gf = pe(function({
9256
9256
  [c, U]
9257
9257
  ), ee = xe(() => {
9258
9258
  const Q = /* @__PURE__ */ new Map();
9259
- for (const { location: oe, severity: de } of H)
9259
+ for (const { location: oe, severity: de } of W)
9260
9260
  oe.line !== void 0 && Q.get(oe.line) !== "error" && Q.set(oe.line, de);
9261
9261
  return R && Q.set(R.line, "error"), Q;
9262
- }, [H, R]), te = xe(() => {
9262
+ }, [W, R]), te = xe(() => {
9263
9263
  const Q = /* @__PURE__ */ new Map();
9264
- for (const { location: oe, problem: de } of H)
9264
+ for (const { location: oe, problem: de } of W)
9265
9265
  oe.line === void 0 || typeof de.message != "string" || Q.set(oe.line, [...Q.get(oe.line) ?? [], de.message]);
9266
9266
  return Q;
9267
- }, [H]), F = (Q) => {
9267
+ }, [W]), F = (Q) => {
9268
9268
  M(!0), r == null || r(Q);
9269
9269
  }, he = () => {
9270
9270
  M(!0);
@@ -9283,8 +9283,8 @@ const gf = pe(function({
9283
9283
  }, [S, w]), Se = se(
9284
9284
  (Q) => {
9285
9285
  var ze;
9286
- W("raw");
9287
- const oe = V.current;
9286
+ V("raw");
9287
+ const oe = H.current;
9288
9288
  if (!oe) return;
9289
9289
  const de = oe.value.split(`
9290
9290
  `), Re = Math.min(Math.max(Q, 1), de.length);
@@ -9297,11 +9297,11 @@ const gf = pe(function({
9297
9297
  },
9298
9298
  [A]
9299
9299
  ), De = q(!1), ge = () => {
9300
- _ === "form" && (De.current = !0, W("raw"));
9300
+ _ === "form" && (De.current = !0, V("raw"));
9301
9301
  };
9302
9302
  Oe(() => {
9303
9303
  var Q;
9304
- !De.current || _ !== "raw" || (De.current = !1, (Q = V.current) == null || Q.focus());
9304
+ !De.current || _ !== "raw" || (De.current = !1, (Q = H.current) == null || Q.focus());
9305
9305
  });
9306
9306
  const ke = (Q) => {
9307
9307
  Q.location.line !== void 0 && Se(Q.location.line), l == null || l(Q.problem, Q.location);
@@ -9309,7 +9309,7 @@ const gf = pe(function({
9309
9309
  "rounded-[var(--radius-sm)] px-2 py-0.5 text-[length:var(--font-xs)]",
9310
9310
  "transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-easing-out-quint)]",
9311
9311
  Q ? "bg-[var(--color-primary-subtle)] text-[var(--color-primary)]" : "text-[var(--color-text-secondary)] hover:text-[var(--color-text-primary)]"
9312
- ), Z = H.filter((Q) => Q.severity === "error").length, T = !!Ce || Z > 0 ? !0 : y === void 0 || y === !1 || y === "false" ? void 0 : y, Y = [v, Ce ? I : void 0].filter(Boolean).join(" ") || void 0, me = m !== void 0 || f !== void 0 || J !== null, Ie = d && _ === "form", Ve = Ie ? f ?? (m === void 0 && re !== null ? re : void 0) : void 0, qe = Ie && Ve === void 0 ? m ?? J ?? w("json_editor.icerik") : void 0;
9312
+ ), Z = W.filter((Q) => Q.severity === "error").length, T = !!Ce || Z > 0 ? !0 : y === void 0 || y === !1 || y === "false" ? void 0 : y, Y = [v, Ce ? I : void 0].filter(Boolean).join(" ") || void 0, me = m !== void 0 || f !== void 0 || J !== null, Ie = d && _ === "form", Ve = Ie ? f ?? (m === void 0 && re !== null ? re : void 0) : void 0, qe = Ie && Ve === void 0 ? m ?? J ?? w("json_editor.icerik") : void 0;
9313
9313
  return /* @__PURE__ */ h(
9314
9314
  "div",
9315
9315
  {
@@ -9330,7 +9330,7 @@ const gf = pe(function({
9330
9330
  id: D,
9331
9331
  "aria-selected": _ === "raw",
9332
9332
  "aria-controls": P,
9333
- onClick: () => W("raw"),
9333
+ onClick: () => V("raw"),
9334
9334
  className: Ae(_ === "raw"),
9335
9335
  children: w("json_editor.ham_json")
9336
9336
  }
@@ -9345,7 +9345,7 @@ const gf = pe(function({
9345
9345
  "aria-controls": B,
9346
9346
  "aria-disabled": !ne,
9347
9347
  disabled: !ne,
9348
- onClick: () => W("form"),
9348
+ onClick: () => V("form"),
9349
9349
  className: b(Ae(_ === "form"), !ne && "cursor-not-allowed opacity-50"),
9350
9350
  children: w("json_editor.form_gorunumu")
9351
9351
  }
@@ -9420,7 +9420,7 @@ const gf = pe(function({
9420
9420
  /* @__PURE__ */ a(
9421
9421
  "textarea",
9422
9422
  {
9423
- ref: V,
9423
+ ref: H,
9424
9424
  value: S,
9425
9425
  onChange: (Q) => F(Q.target.value),
9426
9426
  onScroll: A,
@@ -9503,9 +9503,9 @@ const gf = pe(function({
9503
9503
  )
9504
9504
  }
9505
9505
  ),
9506
- H.length > 0 && /* @__PURE__ */ h("div", { className: "border-t border-[var(--color-border-subtle)]", children: [
9507
- /* @__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: H.length }) }),
9508
- /* @__PURE__ */ a("ul", { className: "max-h-40 overflow-auto py-1", children: H.map((Q, oe) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ h(
9506
+ W.length > 0 && /* @__PURE__ */ h("div", { className: "border-t border-[var(--color-border-subtle)]", children: [
9507
+ /* @__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: W.length }) }),
9508
+ /* @__PURE__ */ a("ul", { className: "max-h-40 overflow-auto py-1", children: W.map((Q, oe) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ h(
9509
9509
  "button",
9510
9510
  {
9511
9511
  type: "button",
@@ -9628,10 +9628,10 @@ function xf({
9628
9628
  const { t: v } = ve(), [y, g] = X(s), [N, x] = X({
9629
9629
  entries: null,
9630
9630
  ids: /* @__PURE__ */ new Set()
9631
- }), w = xe(() => Ya(e, c, l), [e, c, l]), k = xe(() => Ya(t, c, l), [t, c, l]), I = w.json && k.json, D = xe(() => ai(w.text, k.text), [w.text, k.text]), z = xe(() => ni(D), [D]), P = xe(() => Wu(D, Math.max(0, d)), [D, d]), B = N.entries === D ? N.ids : /* @__PURE__ */ new Set(), _ = (E) => x({ entries: D, ids: new Set(B).add(E) }), W = xe(
9631
+ }), w = xe(() => Ya(e, c, l), [e, c, l]), k = xe(() => Ya(t, c, l), [t, c, l]), I = w.json && k.json, D = xe(() => ai(w.text, k.text), [w.text, k.text]), z = xe(() => ni(D), [D]), P = xe(() => Wu(D, Math.max(0, d)), [D, d]), B = N.entries === D ? N.ids : /* @__PURE__ */ new Set(), _ = (E) => x({ entries: D, ids: new Set(B).add(E) }), V = xe(
9632
9632
  () => I ? oi(w.value, k.value, { arrayKey: l }) : [],
9633
9633
  [I, w.value, k.value, l]
9634
- ), $ = o ?? y, M = $ === "changes" && !I ? "unified" : $, V = (E) => {
9634
+ ), $ = o ?? y, M = $ === "changes" && !I ? "unified" : $, H = (E) => {
9635
9635
  o === void 0 && g(E), i == null || i(E);
9636
9636
  }, K = z.added === 0 && z.removed === 0, J = {
9637
9637
  equal: "",
@@ -9654,7 +9654,7 @@ function xf({
9654
9654
  role: "tab",
9655
9655
  "aria-selected": M === E,
9656
9656
  disabled: A,
9657
- onClick: () => V(E),
9657
+ onClick: () => H(E),
9658
9658
  className: b(
9659
9659
  "rounded-[var(--radius-sm)] px-2 py-0.5 text-[length:var(--font-xs)]",
9660
9660
  "transition-colors duration-[var(--motion-duration-fast)] ease-[var(--motion-easing-out-quint)]",
@@ -9697,10 +9697,10 @@ function xf({
9697
9697
  /* @__PURE__ */ h("div", { className: "flex gap-1", role: "tablist", "aria-label": v("json_diff.gorunum"), children: [
9698
9698
  C("unified", v("json_diff.birlesik")),
9699
9699
  C("split", v("json_diff.yan_yana")),
9700
- C("changes", v("json_diff.alanlar", { count: W.length }), !I)
9700
+ C("changes", v("json_diff.alanlar", { count: V.length }), !I)
9701
9701
  ] })
9702
9702
  ] }),
9703
- /* @__PURE__ */ a("div", { className: "overflow-auto", style: { maxHeight: u }, role: "tabpanel", children: K ? /* @__PURE__ */ a("div", { className: "px-3 py-6 text-center text-[length:var(--font-sm)] text-[var(--color-text-muted)]", children: m ?? v("json_diff.fark_yok") }) : M === "changes" ? /* @__PURE__ */ a("ul", { className: "divide-y divide-[var(--color-border-subtle)] text-[length:var(--font-xs)]", children: W.map((E) => /* @__PURE__ */ h("li", { className: "flex flex-wrap items-baseline gap-x-2 gap-y-0.5 px-2 py-1", children: [
9703
+ /* @__PURE__ */ a("div", { className: "overflow-auto", style: { maxHeight: u }, role: "tabpanel", children: K ? /* @__PURE__ */ a("div", { className: "px-3 py-6 text-center text-[length:var(--font-sm)] text-[var(--color-text-muted)]", children: m ?? v("json_diff.fark_yok") }) : M === "changes" ? /* @__PURE__ */ a("ul", { className: "divide-y divide-[var(--color-border-subtle)] text-[length:var(--font-xs)]", children: V.map((E) => /* @__PURE__ */ h("li", { className: "flex flex-wrap items-baseline gap-x-2 gap-y-0.5 px-2 py-1", children: [
9704
9704
  /* @__PURE__ */ a(
9705
9705
  "span",
9706
9706
  {
@@ -10544,8 +10544,8 @@ function im(e, t, r) {
10544
10544
  (v, y, g) => {
10545
10545
  const N = o.current, x = s.current, w = N.indexOf(y), k = x.indexOf(g);
10546
10546
  if (w < 0 || k < 0) return;
10547
- const I = v.currentTarget.tagName === "SELECT", D = I ? null : v.currentTarget, z = !D || D.selectionStart === 0 && D.selectionEnd === 0, P = !D || D.selectionStart === D.value.length && D.selectionEnd === D.value.length, B = (W) => W ? (v.preventDefault(), d(W.rowId, W.colKey), !0) : !1, _ = (W) => {
10548
- const $ = N[W];
10547
+ const I = v.currentTarget.tagName === "SELECT", D = I ? null : v.currentTarget, z = !D || D.selectionStart === 0 && D.selectionEnd === 0, P = !D || D.selectionStart === D.value.length && D.selectionEnd === D.value.length, B = (V) => V ? (v.preventDefault(), d(V.rowId, V.colKey), !0) : !1, _ = (V) => {
10548
+ const $ = N[V];
10549
10549
  $ !== void 0 && (v.preventDefault(), d($, g));
10550
10550
  };
10551
10551
  switch (v.key) {
@@ -10607,15 +10607,15 @@ const lm = pe(
10607
10607
  className: k
10608
10608
  }, I) => {
10609
10609
  var ee, te;
10610
- const { t: D } = ve(), z = q(null), P = q(/* @__PURE__ */ new Map()), B = xe(() => e.map((F) => F.key), [e]), _ = xe(() => t.map((F) => F.rowId), [t]), W = xe(() => new Set(c ?? []), [c]), $ = t.some((F) => F.status !== void 0), M = o && !i, V = e.length + ($ ? 1 : 0) + (M ? 1 : 0), K = m ?? t.length > f, J = cn({
10610
+ const { t: D } = ve(), z = q(null), P = q(/* @__PURE__ */ new Map()), B = xe(() => e.map((F) => F.key), [e]), _ = xe(() => t.map((F) => F.rowId), [t]), V = xe(() => new Set(c ?? []), [c]), $ = t.some((F) => F.status !== void 0), M = o && !i, H = e.length + ($ ? 1 : 0) + (M ? 1 : 0), K = m ?? t.length > f, J = cn({
10611
10611
  count: K ? t.length : 0,
10612
10612
  getScrollElement: () => z.current,
10613
10613
  estimateSize: () => v,
10614
10614
  overscan: 10,
10615
10615
  enabled: K
10616
10616
  }), ie = se(
10617
- (F) => !i && !W.has(F),
10618
- [i, W]
10617
+ (F) => !i && !V.has(F),
10618
+ [i, V]
10619
10619
  ), { setCellRef: re, handleKeyDown: C } = im(_, B, {
10620
10620
  isColumnEditable: ie,
10621
10621
  ensureRowVisible: (F) => J.scrollToIndex(F)
@@ -10654,7 +10654,7 @@ const lm = pe(
10654
10654
  `).map((Ae) => Ae.split(" ")), De = t.findIndex((Ae) => Ae.rowId === he), ge = B.indexOf(le);
10655
10655
  if (De < 0 || ge < 0) return;
10656
10656
  if (Se.length === 1 && Se[0].length === 1) {
10657
- W.has(le) || j(he, le, Se[0][0]);
10657
+ V.has(le) || j(he, le, Se[0][0]);
10658
10658
  return;
10659
10659
  }
10660
10660
  const ke = t.map((Ae) => ({ ...Ae, cells: { ...Ae.cells } }));
@@ -10671,11 +10671,11 @@ const lm = pe(
10671
10671
  }
10672
10672
  Ae.forEach((Y, me) => {
10673
10673
  const Ie = B[ge + me];
10674
- Ie !== void 0 && !W.has(Ie) && (T.cells[Ie] = Y);
10674
+ Ie !== void 0 && !V.has(Ie) && (T.cells[Ie] = Y);
10675
10675
  });
10676
10676
  }), r(ke), Ce > 0 && (N == null || N(Ce));
10677
10677
  },
10678
- [i, t, B, W, g, S, j, r, N]
10678
+ [i, t, B, V, g, S, j, r, N]
10679
10679
  );
10680
10680
  ae(() => {
10681
10681
  var he;
@@ -10695,7 +10695,7 @@ const lm = pe(
10695
10695
  children: [
10696
10696
  e.map((le) => {
10697
10697
  var De;
10698
- const we = i || W.has(le.key), Se = (De = l == null ? void 0 : l[F.rowId]) == null ? void 0 : De[le.key];
10698
+ const we = i || V.has(le.key), Se = (De = l == null ? void 0 : l[F.rowId]) == null ? void 0 : De[le.key];
10699
10699
  return /* @__PURE__ */ a(Rt, { className: "p-1", children: /* @__PURE__ */ a(
10700
10700
  sm,
10701
10701
  {
@@ -10750,7 +10750,7 @@ const lm = pe(
10750
10750
  ]
10751
10751
  },
10752
10752
  F.rowId
10753
- ), H = J.getVirtualItems();
10753
+ ), W = J.getVirtualItems();
10754
10754
  return /* @__PURE__ */ h(
10755
10755
  "div",
10756
10756
  {
@@ -10805,19 +10805,19 @@ const lm = pe(
10805
10805
  /* @__PURE__ */ a(Yn, { children: t.length === 0 ? /* @__PURE__ */ a(ir, { children: /* @__PURE__ */ a(
10806
10806
  Rt,
10807
10807
  {
10808
- colSpan: V,
10808
+ colSpan: H,
10809
10809
  className: "py-[var(--space-6)] text-center text-[var(--color-text-muted)]",
10810
10810
  children: w
10811
10811
  }
10812
10812
  ) }) : K ? /* @__PURE__ */ h(Me, { children: [
10813
- H.length > 0 && /* @__PURE__ */ a("tr", { "aria-hidden": !0, children: /* @__PURE__ */ a("td", { colSpan: V, style: { height: ((ee = H[0]) == null ? void 0 : ee.start) ?? 0 } }) }),
10814
- H.map((F) => R(t[F.index], F.index)),
10815
- H.length > 0 && /* @__PURE__ */ a("tr", { "aria-hidden": !0, children: /* @__PURE__ */ a(
10813
+ W.length > 0 && /* @__PURE__ */ a("tr", { "aria-hidden": !0, children: /* @__PURE__ */ a("td", { colSpan: H, style: { height: ((ee = W[0]) == null ? void 0 : ee.start) ?? 0 } }) }),
10814
+ W.map((F) => R(t[F.index], F.index)),
10815
+ W.length > 0 && /* @__PURE__ */ a("tr", { "aria-hidden": !0, children: /* @__PURE__ */ a(
10816
10816
  "td",
10817
10817
  {
10818
- colSpan: V,
10818
+ colSpan: H,
10819
10819
  style: {
10820
- height: J.getTotalSize() - (((te = H.at(-1)) == null ? void 0 : te.end) ?? 0)
10820
+ height: J.getTotalSize() - (((te = W.at(-1)) == null ? void 0 : te.end) ?? 0)
10821
10821
  }
10822
10822
  }
10823
10823
  ) })
@@ -11232,25 +11232,27 @@ function Mf({
11232
11232
  exportOptions: l,
11233
11233
  onExport: d,
11234
11234
  exportLoading: u,
11235
- onExecute: m,
11236
- executeLabel: f,
11237
- executeDisabled: v,
11238
- loading: y,
11239
- className: g
11235
+ exportSlot: m,
11236
+ onExecute: f,
11237
+ executeLabel: v,
11238
+ executeDisabled: y,
11239
+ loading: g,
11240
+ className: N
11240
11241
  }) {
11241
- var z, P;
11242
- const { t: N } = ve();
11242
+ var B, _;
11243
+ const { t: x } = ve();
11243
11244
  Ur(n);
11244
- const x = Ee(), [w, k] = X(
11245
- ((z = l == null ? void 0 : l[0]) == null ? void 0 : z.value) ?? ""
11246
- ), I = l != null && l.some((B) => B.value === w) ? w : ((P = l == null ? void 0 : l[0]) == null ? void 0 : P.value) ?? "", D = /* @__PURE__ */ h(Me, { children: [
11247
- l && d && /* @__PURE__ */ h("div", { className: "flex items-center gap-1", children: [
11245
+ const w = Ee(), [k, I] = X(
11246
+ ((B = l == null ? void 0 : l[0]) == null ? void 0 : B.value) ?? ""
11247
+ ), D = l != null && l.some((V) => V.value === k) ? k : ((_ = l == null ? void 0 : l[0]) == null ? void 0 : _.value) ?? "", z = m != null && m !== !1, P = /* @__PURE__ */ h(Me, { children: [
11248
+ z && m,
11249
+ !z && l && d && /* @__PURE__ */ h("div", { className: "flex items-center gap-1", children: [
11248
11250
  /* @__PURE__ */ a(
11249
11251
  Ht,
11250
11252
  {
11251
11253
  options: l,
11252
- value: I,
11253
- onChange: (B) => k(B),
11254
+ value: D,
11255
+ onChange: (V) => I(V),
11254
11256
  className: "w-24"
11255
11257
  }
11256
11258
  ),
@@ -11259,20 +11261,20 @@ function Mf({
11259
11261
  {
11260
11262
  variant: "outline",
11261
11263
  leftIcon: u ? an : qi,
11262
- onClick: () => d(I),
11264
+ onClick: () => d(D),
11263
11265
  disabled: u,
11264
- children: N("common.disa_aktar")
11266
+ children: x("common.disa_aktar")
11265
11267
  }
11266
11268
  )
11267
11269
  ] }),
11268
- m && /* @__PURE__ */ a(
11270
+ f && /* @__PURE__ */ a(
11269
11271
  ye,
11270
11272
  {
11271
11273
  variant: "primary",
11272
- onClick: m,
11273
- loading: y,
11274
- disabled: v,
11275
- children: f ?? N("common.calistir")
11274
+ onClick: f,
11275
+ loading: g,
11276
+ disabled: y,
11277
+ children: v ?? x("common.calistir")
11276
11278
  }
11277
11279
  )
11278
11280
  ] });
@@ -11280,15 +11282,15 @@ function Mf({
11280
11282
  "main",
11281
11283
  {
11282
11284
  role: "main",
11283
- "aria-labelledby": t ? x : void 0,
11284
- className: b("flex flex-col gap-[var(--space-4)]", g),
11285
+ "aria-labelledby": t ? w : void 0,
11286
+ className: b("flex flex-col gap-[var(--space-4)]", N),
11285
11287
  children: [
11286
11288
  t ? /* @__PURE__ */ h("header", { className: "flex items-center justify-between gap-[var(--space-4)]", children: [
11287
11289
  /* @__PURE__ */ h("div", { className: "flex min-w-0 flex-col gap-[var(--space-0-5)]", children: [
11288
11290
  /* @__PURE__ */ a(
11289
11291
  "h1",
11290
11292
  {
11291
- id: x,
11293
+ id: w,
11292
11294
  className: "truncate text-[length:var(--font-xl)] font-bold tracking-tight text-[var(--color-text-primary)]",
11293
11295
  children: e
11294
11296
  }
@@ -11296,9 +11298,9 @@ function Mf({
11296
11298
  r != null && r !== "" && // --color-text-secondary, not -muted: body-size text must reach 4.5:1 (muted is 2.6:1 in light).
11297
11299
  /* @__PURE__ */ a("p", { className: "truncate text-[length:var(--font-sm)] text-[var(--color-text-secondary)]", children: r })
11298
11300
  ] }),
11299
- /* @__PURE__ */ a("div", { className: "flex shrink-0 items-center gap-2", children: D })
11300
- ] }) : /* @__PURE__ */ a("header", { className: "flex items-center justify-end gap-2", children: D }),
11301
- o && /* @__PURE__ */ a("section", { "aria-label": N("aria.rapor_kriterleri"), children: /* @__PURE__ */ a(
11301
+ /* @__PURE__ */ a("div", { className: "flex shrink-0 items-center gap-2", children: P })
11302
+ ] }) : /* @__PURE__ */ a("header", { className: "flex items-center justify-end gap-2", children: P }),
11303
+ o && /* @__PURE__ */ a("section", { "aria-label": x("aria.rapor_kriterleri"), children: /* @__PURE__ */ a(
11302
11304
  "div",
11303
11305
  {
11304
11306
  className: b(