@epam/ai-dial-usage-dashboard 1.3.5 → 1.4.0-dev.101

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.
Files changed (2) hide show
  1. package/index.js +295 -287
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -41243,11 +41243,11 @@ var ML = S(""), NL = () => O(ML), PL = /* @__PURE__ */ ((e) => (e.Top = "top", e
41243
41243
  size: rR.SM,
41244
41244
  stroke: nR,
41245
41245
  "aria-hidden": "true"
41246
- }), gR = /* @__PURE__ */ ((e) => (e.Small = "small", e.Standard = "standard", e.Large = "large", e))(gR || {}), _R = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Neutral = "neutral", e.Danger = "danger", e.Static = "static", e.Starter = "starter", e.Success = "success", e.Secondary = "secondary", e.Tertiary = "tertiary", e))(_R || {}), vR = /* @__PURE__ */ ((e) => (e.Solid = "solid", e.Outlined = "outlined", e.Ghost = "ghost", e.Link = "link", e))(vR || {}), yR = (...e) => e.find((e) => typeof e == "string" && e.length > 0), bR = "fill-control-inverted", xR = "z-tooltip max-w-[376px] whitespace-pre-wrap break-words rounded-lg bg-control-inverted px-3 py-2 dial-small-text text-control-inverted shadow-xs", SR = S(null), CR = () => {
41247
- let e = O(SR);
41246
+ }), gR = /* @__PURE__ */ ((e) => (e.Small = "small", e.Standard = "standard", e.Large = "large", e))(gR || {}), _R = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Neutral = "neutral", e.Danger = "danger", e.Static = "static", e.Starter = "starter", e.Success = "success", e.Secondary = "secondary", e.Tertiary = "tertiary", e))(_R || {}), vR = /* @__PURE__ */ ((e) => (e.Solid = "solid", e.Outlined = "outlined", e.Ghost = "ghost", e.Link = "link", e))(vR || {}), yR = (...e) => e.find((e) => typeof e == "string" && e.length > 0), bR = "fill-control-inverted", xR = "z-tooltip max-w-[376px] whitespace-pre-wrap break-words rounded-lg bg-control-inverted px-3 py-2 dial-small-text text-control-inverted shadow-xs", SR = "max-h-[calc(max(50vh,240px)-1rem)] overflow-y-auto [scrollbar-color:theme(--background-color-control-neutral-active)_theme(--background-color-control-inverted)] [&::-webkit-scrollbar-thumb]:bg-control-neutral-active [&::-webkit-scrollbar-track]:bg-control-inverted", CR = S(null), wR = () => {
41247
+ let e = O(CR);
41248
41248
  if (e == null) throw Error("Tooltip components must be wrapped in <TooltipContainer />");
41249
41249
  return e;
41250
- }, wR = ({ initialOpen: e = !1, placement: t = PL.Bottom, isTriggerClickable: n = !1, open: r, onOpenChange: i } = {}) => {
41250
+ }, TR = ({ initialOpen: e = !1, placement: t = PL.Bottom, isTriggerClickable: n = !1, open: r, onOpenChange: i } = {}) => {
41251
41251
  let [a, o] = F(e), s = P(null), c = r ?? a, l = i ?? o, u = xL({
41252
41252
  placement: t,
41253
41253
  open: c,
@@ -41303,23 +41303,23 @@ var ML = S(""), NL = () => O(ML), PL = /* @__PURE__ */ ((e) => (e.Top = "top", e
41303
41303
  d,
41304
41304
  u
41305
41305
  ]);
41306
- }, TR = ({ children: e, ...t }) => {
41307
- let n = wR(t);
41308
- return /* @__PURE__ */ m(SR.Provider, {
41306
+ }, ER = ({ children: e, ...t }) => {
41307
+ let n = TR(t);
41308
+ return /* @__PURE__ */ m(CR.Provider, {
41309
41309
  value: n,
41310
41310
  children: e
41311
41311
  });
41312
- }, ER = "(hover: none)", DR = () => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(ER).matches, OR = () => {
41313
- let [e, t] = F(() => !DR());
41312
+ }, DR = "(hover: none)", OR = () => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(DR).matches, kR = () => {
41313
+ let [e, t] = F(() => !OR());
41314
41314
  return k(() => {
41315
41315
  if (typeof window > "u" || typeof window.matchMedia != "function") return;
41316
- let e = window.matchMedia(ER);
41316
+ let e = window.matchMedia(DR);
41317
41317
  if (t(!e.matches), typeof e.addEventListener != "function") return;
41318
41318
  let n = (e) => t(!e.matches);
41319
41319
  return e.addEventListener("change", n), () => e.removeEventListener("change", n);
41320
41320
  }, []), e;
41321
- }, kR = ({ style: e, ...t }) => {
41322
- let n = CR(), r = OR(), i = NL(), a = P(null), o = $F([n.refs.setFloating, a]);
41321
+ }, AR = ({ style: e, ...t }) => {
41322
+ let n = wR(), r = kR(), i = NL(), a = P(null), o = $F([n.refs.setFloating, a]);
41323
41323
  return !n.open || !r ? null : /* @__PURE__ */ m(eL, {
41324
41324
  id: "tooltip-portal",
41325
41325
  children: /* @__PURE__ */ h("div", {
@@ -41331,15 +41331,18 @@ var ML = S(""), NL = () => O(ML), PL = /* @__PURE__ */ ((e) => (e.Top = "top", e
41331
41331
  },
41332
41332
  ...n.getFloatingProps(t),
41333
41333
  className: (0, kM.default)(xR, i, n.getFloatingProps(t).className, IL.tooltip),
41334
- children: [t.children, /* @__PURE__ */ m(vI, {
41334
+ children: [/* @__PURE__ */ m("div", {
41335
+ className: SR,
41336
+ children: t.children
41337
+ }), /* @__PURE__ */ m(vI, {
41335
41338
  ref: n.arrowRef,
41336
41339
  context: n.context,
41337
41340
  className: bR
41338
41341
  })]
41339
41342
  })
41340
41343
  });
41341
- }, AR = ({ children: e, asChild: t = !1, ...n }) => {
41342
- let r = CR(), i = t && T(e), a = i ? e.props?.ref : null, o = $F([r.refs.setReference, ...a ? [a] : []]);
41344
+ }, jR = ({ children: e, asChild: t = !1, ...n }) => {
41345
+ let r = wR(), i = t && T(e), a = i ? e.props?.ref : null, o = $F([r.refs.setReference, ...a ? [a] : []]);
41343
41346
  if (i) {
41344
41347
  let t = e.props;
41345
41348
  return x(e, r.getReferenceProps({
@@ -41355,17 +41358,17 @@ var ML = S(""), NL = () => O(ML), PL = /* @__PURE__ */ ((e) => (e.Top = "top", e
41355
41358
  className: n.className ?? "text-start",
41356
41359
  children: e
41357
41360
  });
41358
- }, jR = ({ hideTooltip: e = !1, tooltip: t, children: n, asChild: r = !1, triggerClassName: i, contentClassName: a, ...o }) => /* @__PURE__ */ h(TR, {
41361
+ }, MR = ({ hideTooltip: e = !1, tooltip: t, children: n, asChild: r = !1, triggerClassName: i, contentClassName: a, ...o }) => /* @__PURE__ */ h(ER, {
41359
41362
  ...o,
41360
- children: [/* @__PURE__ */ m(AR, {
41363
+ children: [/* @__PURE__ */ m(jR, {
41361
41364
  asChild: r,
41362
41365
  className: i,
41363
41366
  children: n
41364
- }), !e && !!t && /* @__PURE__ */ m(kR, {
41367
+ }), !e && !!t && /* @__PURE__ */ m(AR, {
41365
41368
  className: a,
41366
41369
  children: t
41367
41370
  })]
41368
- }), MR = {
41371
+ }), NR = {
41369
41372
  [_R.Primary]: {
41370
41373
  [vR.Solid]: "dial-kit-primary-solid-button",
41371
41374
  [vR.Ghost]: "dial-kit-primary-ghost-button",
@@ -41385,47 +41388,47 @@ var ML = S(""), NL = () => O(ML), PL = /* @__PURE__ */ ((e) => (e.Top = "top", e
41385
41388
  [_R.Success]: {},
41386
41389
  [_R.Secondary]: {},
41387
41390
  [_R.Tertiary]: {}
41388
- }, NR = (e) => {
41391
+ }, PR = (e) => {
41389
41392
  e.preventDefault();
41390
- }, PR = (e, t, n) => {
41393
+ }, FR = (e, t, n) => {
41391
41394
  let r = t != null && !t.hideTooltip && t.tooltip != null && t.tooltip !== "";
41392
41395
  return e && r ? {
41393
41396
  disabled: void 0,
41394
41397
  "aria-disabled": !0,
41395
- onClick: NR
41398
+ onClick: PR
41396
41399
  } : {
41397
41400
  disabled: e,
41398
41401
  onClick: n
41399
41402
  };
41400
- }, FR = (e = _R.Primary, t = vR.Solid) => MR[e]?.[t] || (console.warn(`Could not find Button styles for variant: ${e} and appearance: ${t}. Using default primary solid button styles.`), MR[_R.Primary][vR.Solid]), IR = {
41403
+ }, IR = (e = _R.Primary, t = vR.Solid) => NR[e]?.[t] || (console.warn(`Could not find Button styles for variant: ${e} and appearance: ${t}. Using default primary solid button styles.`), NR[_R.Primary][vR.Solid]), LR = {
41401
41404
  [gR.Small]: "size-[24px]",
41402
41405
  [gR.Standard]: "size-[40px] dial-kit-enhanced-target",
41403
41406
  [gR.Large]: "size-[48px] dial-kit-enhanced-target"
41404
- }, LR = ({ variant: e, appearance: t = vR.Solid, size: n = gR.Standard, className: r, icon: i, tooltipProps: a, type: o = "button", disabled: s, ...c }) => {
41405
- let l = $("dial-kit-base-icon-button dial-kit-base-button", e && FR(e, t), IR[n], r), u = /* @__PURE__ */ m("button", {
41407
+ }, RR = ({ variant: e, appearance: t = vR.Solid, size: n = gR.Standard, className: r, icon: i, tooltipProps: a, type: o = "button", disabled: s, ...c }) => {
41408
+ let l = $("dial-kit-base-icon-button dial-kit-base-button", e && IR(e, t), LR[n], r), u = /* @__PURE__ */ m("button", {
41406
41409
  ...c,
41407
- ...PR(s, a, c.onClick),
41410
+ ...FR(s, a, c.onClick),
41408
41411
  type: o,
41409
41412
  className: l,
41410
41413
  "aria-label": yR(c["aria-label"], a?.tooltip),
41411
41414
  children: i
41412
41415
  });
41413
- return a ? /* @__PURE__ */ m(jR, {
41416
+ return a ? /* @__PURE__ */ m(MR, {
41414
41417
  asChild: !0,
41415
41418
  ...a,
41416
41419
  children: u
41417
41420
  }) : u;
41418
- }, RR = (e, t) => ({ variant: n, ...r }) => /* @__PURE__ */ m(LR, {
41421
+ }, zR = (e, t) => ({ variant: n, ...r }) => /* @__PURE__ */ m(RR, {
41419
41422
  ...r,
41420
41423
  variant: n || t,
41421
41424
  appearance: e
41422
41425
  });
41423
41426
  _R.Primary, vR.Solid, _R.Neutral, vR.Solid, _R.Danger, vR.Ghost;
41424
- var zR = RR(vR.Ghost, _R.Primary);
41427
+ var BR = zR(vR.Ghost, _R.Primary);
41425
41428
  vR.Solid, _R.Static;
41426
41429
  //#endregion
41427
41430
  //#region ../../node_modules/@epam/ai-dial-ui-kit/dist/components/New/CloseButton/CloseButton.js
41428
- var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r, ...i }) => /* @__PURE__ */ m(zR, {
41431
+ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r, ...i }) => /* @__PURE__ */ m(BR, {
41429
41432
  ...i,
41430
41433
  size: n,
41431
41434
  "aria-label": e,
@@ -41436,15 +41439,15 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41436
41439
  stroke: nR,
41437
41440
  "aria-hidden": "true"
41438
41441
  })
41439
- }), VR = ({ icon: e, className: t }) => e ? /* @__PURE__ */ m("span", {
41442
+ }), HR = ({ icon: e, className: t }) => e ? /* @__PURE__ */ m("span", {
41440
41443
  className: (0, kM.default)("flex-shrink-0", t),
41441
41444
  children: e
41442
- }) : null, HR = {
41445
+ }) : null, UR = {
41443
41446
  size: 14,
41444
41447
  stroke: 3,
41445
41448
  "aria-hidden": !0
41446
- }, UR = ({ isSelected: e = !1, isIndeterminate: t = !1, invalid: n = !1, disabled: r = !1, htmlFor: i, className: a }) => {
41447
- let o = t || e, s = !!i, c = $("grid size-[20px] shrink-0 place-items-center rounded border transition-colors duration-200", s && "dial-kit-minimum-target", s && "peer-focus-visible:outline peer-focus-visible:outline-focus", r ? "border-transparent bg-control-disable-primary text-control-disable-primary" : $(n && o && "border-transparent bg-control-error text-control-permanent", n && !o && "border-error bg-control-neutral", !n && o && "border-transparent bg-control-accent text-control-permanent", !n && !o && "border-default bg-control-neutral", !n && o && (s ? "group-has-[label:hover]/choice:bg-control-accent-hover" : "hover:bg-control-accent-hover"), !n && !o && (s ? "group-has-[label:hover]/choice:border-accent group-has-[label:hover]/choice:bg-control-accent-alpha-hover" : "hover:border-accent hover:bg-control-accent-alpha-hover")), r ? "cursor-not-allowed" : s && "cursor-pointer", a, IL.checkboxBox), l = t ? /* @__PURE__ */ m(WL, { ...HR }) : e && /* @__PURE__ */ m(VL, { ...HR });
41449
+ }, WR = ({ isSelected: e = !1, isIndeterminate: t = !1, invalid: n = !1, disabled: r = !1, htmlFor: i, className: a }) => {
41450
+ let o = t || e, s = !!i, c = $("grid size-[20px] shrink-0 place-items-center rounded border transition-colors duration-200", s && "dial-kit-minimum-target", s && "peer-focus-visible:outline peer-focus-visible:outline-focus", r ? "border-transparent bg-control-disable-primary text-control-disable-primary" : $(n && o && "border-transparent bg-control-error text-control-permanent", n && !o && "border-error bg-control-neutral", !n && o && "border-transparent bg-control-accent text-control-permanent", !n && !o && "border-default bg-control-neutral", !n && o && (s ? "group-has-[label:hover]/choice:bg-control-accent-hover" : "hover:bg-control-accent-hover"), !n && !o && (s ? "group-has-[label:hover]/choice:border-accent group-has-[label:hover]/choice:bg-control-accent-alpha-hover" : "hover:border-accent hover:bg-control-accent-alpha-hover")), r ? "cursor-not-allowed" : s && "cursor-pointer", a, IL.checkboxBox), l = t ? /* @__PURE__ */ m(WL, { ...UR }) : e && /* @__PURE__ */ m(VL, { ...UR });
41448
41451
  return s ? /* @__PURE__ */ m("label", {
41449
41452
  htmlFor: i,
41450
41453
  className: c,
@@ -41454,31 +41457,31 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41454
41457
  className: c,
41455
41458
  children: l
41456
41459
  });
41457
- }, WR = /* @__PURE__ */ new Map(), GR = /* @__PURE__ */ new Set(), KR = null, qR = null, JR = () => {
41458
- qR = null;
41459
- let e = Array.from(GR);
41460
- GR.clear(), e.forEach((e) => e());
41461
- }, YR = (e) => {
41462
- GR.add(e), qR === null && (qR = requestAnimationFrame(JR));
41463
- }, XR = () => {
41464
- WR.forEach(YR);
41465
- }, ZR = (e) => {
41460
+ }, GR = /* @__PURE__ */ new Map(), KR = /* @__PURE__ */ new Set(), qR = null, JR = null, YR = () => {
41461
+ JR = null;
41462
+ let e = Array.from(KR);
41463
+ KR.clear(), e.forEach((e) => e());
41464
+ }, XR = (e) => {
41465
+ KR.add(e), JR === null && (JR = requestAnimationFrame(YR));
41466
+ }, ZR = () => {
41467
+ GR.forEach(XR);
41468
+ }, QR = (e) => {
41466
41469
  e.forEach((e) => {
41467
- let t = WR.get(e.target);
41468
- t && YR(t);
41470
+ let t = GR.get(e.target);
41471
+ t && XR(t);
41469
41472
  });
41470
- }, QR = () => {
41471
- window.removeEventListener("resize", XR), KR?.disconnect(), KR = null, GR.clear(), qR !== null && (cancelAnimationFrame(qR), qR = null);
41472
- }, $R = (e, t) => (WR.size === 0 && window.addEventListener("resize", XR), WR.set(e, t), !KR && typeof ResizeObserver < "u" && (KR = new ResizeObserver(ZR)), KR?.observe(e), () => {
41473
- WR.delete(e), KR?.unobserve(e), GR.delete(t), WR.size === 0 && QR();
41474
- }), ez = (e) => {
41473
+ }, $R = () => {
41474
+ window.removeEventListener("resize", ZR), qR?.disconnect(), qR = null, KR.clear(), JR !== null && (cancelAnimationFrame(JR), JR = null);
41475
+ }, ez = (e, t) => (GR.size === 0 && window.addEventListener("resize", ZR), GR.set(e, t), !qR && typeof ResizeObserver < "u" && (qR = new ResizeObserver(QR)), qR?.observe(e), () => {
41476
+ GR.delete(e), qR?.unobserve(e), KR.delete(t), GR.size === 0 && $R();
41477
+ }), tz = (e) => {
41475
41478
  let t = P(null), [n, r] = F(!1), [i, a] = F(""), o = P(!1), s = D(() => {
41476
41479
  let e = t.current;
41477
41480
  e && (o.current && a(e.textContent ?? ""), r(e.scrollWidth > e.clientWidth));
41478
- }, []), c = D(() => YR(s), [s]);
41481
+ }, []), c = D(() => XR(s), [s]);
41479
41482
  return k(() => {
41480
41483
  let e = t.current;
41481
- if (e) return $R(e, s);
41484
+ if (e) return ez(e, s);
41482
41485
  }, [s]), k(() => {
41483
41486
  o.current = typeof e != "string", c();
41484
41487
  }, [e, c]), {
@@ -41487,16 +41490,16 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41487
41490
  textContent: i,
41488
41491
  remeasure: c
41489
41492
  };
41490
- }, tz = ({ text: e, className: t, contentClassName: n, hideTooltip: r = !1, id: i, customTooltipContent: a, ...o }) => {
41491
- let { ref: s, isTruncated: c, textContent: l, remeasure: u } = ez(e), d = typeof e == "string" ? e : l, f = N(() => r || !c ? null : a ?? d, [
41493
+ }, nz = ({ text: e, className: t, contentClassName: n, hideTooltip: r = !1, id: i, customTooltipContent: a, ...o }) => {
41494
+ let { ref: s, isTruncated: c, textContent: l, remeasure: u } = tz(e), d = typeof e == "string" ? e : l, f = N(() => r || !c ? null : a ?? d, [
41492
41495
  a,
41493
41496
  d,
41494
41497
  r,
41495
41498
  c
41496
41499
  ]);
41497
- return /* @__PURE__ */ h(TR, {
41500
+ return /* @__PURE__ */ h(ER, {
41498
41501
  ...o,
41499
- children: [/* @__PURE__ */ m(AR, {
41502
+ children: [/* @__PURE__ */ m(jR, {
41500
41503
  asChild: !0,
41501
41504
  onMouseEnter: u,
41502
41505
  onFocusCapture: u,
@@ -41507,17 +41510,17 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41507
41510
  className: $("block min-w-0 max-w-full flex-1 truncate text-start", t, IL.ellipsisTooltip),
41508
41511
  children: e
41509
41512
  })
41510
- }), !!f && /* @__PURE__ */ m(kR, {
41513
+ }), !!f && /* @__PURE__ */ m(AR, {
41511
41514
  className: n,
41512
41515
  children: f
41513
41516
  })]
41514
41517
  });
41515
- }, nz = /* @__PURE__ */ m(VL, {
41518
+ }, rz = /* @__PURE__ */ m(VL, {
41516
41519
  size: rR.SM,
41517
41520
  stroke: nR,
41518
41521
  className: `shrink-0 ${IL.menuItemCheck}`,
41519
41522
  "aria-hidden": !0
41520
- }), rz = ({ label: e, icon: t, description: n, mark: r = RL.None, selected: i = !1, danger: a = !1, trailing: o, rightControl: s, ellipsisLabel: c = !1, labelClassName: l, children: u, className: d, disabled: f = !1, type: g = "button", ..._ }) => {
41523
+ }), iz = ({ label: e, icon: t, description: n, mark: r = RL.None, selected: i = !1, danger: a = !1, trailing: o, rightControl: s, ellipsisLabel: c = !1, labelClassName: l, children: u, className: d, disabled: f = !1, type: g = "button", ..._ }) => {
41521
41524
  let v = i && r === RL.Highlight, y = i && (r === RL.Checkbox || r === RL.Tint), b = $(a && "text-error", f && "text-control-disable-primary"), x = $($L, "aria-expanded:bg-control-accent-alpha-hover", v && eR, y && "bg-control-accent-alpha", f && tR, a && "text-error", d, IL.menuItem), S = /* @__PURE__ */ h("button", {
41522
41525
  type: g,
41523
41526
  disabled: f,
@@ -41525,15 +41528,15 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41525
41528
  className: s ? "flex h-full min-w-0 flex-1 items-center gap-2 truncate text-start focus-visible:outline-hidden" : x,
41526
41529
  ..._,
41527
41530
  children: [u ?? /* @__PURE__ */ h(p, { children: [
41528
- r === RL.Checkbox && /* @__PURE__ */ m(UR, {
41531
+ r === RL.Checkbox && /* @__PURE__ */ m(WR, {
41529
41532
  isSelected: i,
41530
41533
  disabled: f
41531
41534
  }),
41532
- t && /* @__PURE__ */ m(VR, {
41535
+ t && /* @__PURE__ */ m(HR, {
41533
41536
  icon: t,
41534
41537
  className: b
41535
41538
  }),
41536
- c ? /* @__PURE__ */ m(tz, {
41539
+ c ? /* @__PURE__ */ m(nz, {
41537
41540
  text: e,
41538
41541
  className: $(b, l)
41539
41542
  }) : /* @__PURE__ */ m("span", {
@@ -41544,7 +41547,7 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41544
41547
  className: $("shrink-0 text-secondary dial-small-text", f && "text-control-disable-primary"),
41545
41548
  children: n
41546
41549
  }),
41547
- i && r === RL.Check && nz
41550
+ i && r === RL.Check && rz
41548
41551
  ] }), o && /* @__PURE__ */ m("span", {
41549
41552
  className: $("ml-auto shrink-0", b),
41550
41553
  children: o
@@ -41555,34 +41558,34 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41555
41558
  className: $(x, "has-[[data-menu-item-row]:focus-visible]:outline", "has-[[data-menu-item-row]:focus-visible]:outline-focus"),
41556
41559
  children: [S, s]
41557
41560
  }) : S;
41558
- }, iz = /* @__PURE__ */ ((e) => (e.Description = "description", e.Error = "error", e))(iz || {}), az = /* @__PURE__ */ ((e) => (e.Polite = "polite", e.Assertive = "assertive", e))(az || {}), oz = /* @__PURE__ */ ((e) => (e.Div = "div", e.Span = "span", e.P = "p", e))(oz || {}), sz = {
41559
- [az.Polite]: "status",
41560
- [az.Assertive]: "alert"
41561
- }, cz = ({ politeness: e = az.Polite, visuallyHidden: t = !1, atomic: n, as: r = oz.Div, className: i, children: a, ...o }) => C(r, {
41561
+ }, az = /* @__PURE__ */ ((e) => (e.Description = "description", e.Error = "error", e))(az || {}), oz = /* @__PURE__ */ ((e) => (e.Polite = "polite", e.Assertive = "assertive", e))(oz || {}), sz = /* @__PURE__ */ ((e) => (e.Div = "div", e.Span = "span", e.P = "p", e))(sz || {}), cz = {
41562
+ [oz.Polite]: "status",
41563
+ [oz.Assertive]: "alert"
41564
+ }, lz = ({ politeness: e = oz.Polite, visuallyHidden: t = !1, atomic: n, as: r = sz.Div, className: i, children: a, ...o }) => C(r, {
41562
41565
  ...o,
41563
- role: sz[e],
41566
+ role: cz[e],
41564
41567
  "aria-live": e,
41565
41568
  "aria-atomic": n,
41566
41569
  className: $(t ? "sr-only" : "empty:sr-only", i, IL.liveRegion)
41567
- }, a), lz = ({ text: e, className: t, variant: n = iz.Description, announce: r, ...i }) => {
41570
+ }, a), uz = ({ text: e, className: t, variant: n = az.Description, announce: r, ...i }) => {
41568
41571
  let a = e ? /* @__PURE__ */ m("span", {
41569
41572
  ...i,
41570
- className: $("dial-tiny-text", n === iz.Error ? "text-error" : "text-secondary", t, IL.captionText, n === iz.Error && IL.errorText),
41573
+ className: $("dial-tiny-text", n === az.Error ? "text-error" : "text-secondary", t, IL.captionText, n === az.Error && IL.errorText),
41571
41574
  children: e
41572
41575
  }) : null;
41573
- return r ? /* @__PURE__ */ m(cz, {
41576
+ return r ? /* @__PURE__ */ m(lz, {
41574
41577
  politeness: r,
41575
- as: oz.Span,
41578
+ as: sz.Span,
41576
41579
  atomic: !0,
41577
41580
  children: a
41578
41581
  }) : a;
41579
- }, uz = ({ ...e }) => /* @__PURE__ */ m(lz, {
41582
+ }, dz = ({ ...e }) => /* @__PURE__ */ m(uz, {
41580
41583
  ...e,
41581
- variant: iz.Error
41582
- }), dz = ({ caption: e, onClick: t, "aria-label": n }) => {
41584
+ variant: az.Error
41585
+ }), fz = ({ caption: e, onClick: t, "aria-label": n }) => {
41583
41586
  if (!e) return null;
41584
41587
  let r = $("text-secondary hover:text-control-accent-hover active:text-control-accent-active", "focus-visible:outline focus-visible:outline-focus", IL.infoButton);
41585
- return /* @__PURE__ */ m(LR, {
41588
+ return /* @__PURE__ */ m(RR, {
41586
41589
  "aria-label": n,
41587
41590
  className: r,
41588
41591
  icon: /* @__PURE__ */ m(UL, {
@@ -41594,7 +41597,7 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41594
41597
  size: gR.Small,
41595
41598
  tooltipProps: { tooltip: e }
41596
41599
  });
41597
- }, fz = ({ label: e, required: t, className: n, containerClassName: r, caption: i, size: a = gR.Small, ...o }) => e ? /* @__PURE__ */ h("span", {
41600
+ }, pz = ({ label: e, required: t, className: n, containerClassName: r, caption: i, size: a = gR.Small, ...o }) => e ? /* @__PURE__ */ h("span", {
41598
41601
  className: $("flex items-center gap-0.5", r, IL.label),
41599
41602
  children: [/* @__PURE__ */ h("label", {
41600
41603
  ...o,
@@ -41610,21 +41613,21 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41610
41613
  className: "sr-only",
41611
41614
  children: "(required)"
41612
41615
  })] })]
41613
- }), /* @__PURE__ */ m(dz, { caption: i })]
41614
- }) : null, pz = "bg-control-neutral-active flex items-center justify-center enabled:text-secondary enabled:hover:text-control-accent-hover enabled:active:bg-control-accent-alpha-active enabled:hover:bg-control-accent-alpha-hover enabled:active:text-control-accent-active", mz = {
41616
+ }), /* @__PURE__ */ m(fz, { caption: i })]
41617
+ }) : null, mz = "bg-control-neutral-active flex items-center justify-center enabled:text-secondary enabled:hover:text-control-accent-hover enabled:active:bg-control-accent-alpha-active enabled:hover:bg-control-accent-alpha-hover enabled:active:text-control-accent-active", hz = {
41615
41618
  [gR.Small]: "size-[24px]",
41616
41619
  [gR.Standard]: "size-[40px]",
41617
41620
  [gR.Large]: "size-[48px]"
41618
- }, hz = ({ icon: e, onClick: t, disabled: n, size: r = gR.Standard, className: i }) => /* @__PURE__ */ m("div", {
41619
- className: $("border-l border-tertiary", mz[r]),
41620
- children: /* @__PURE__ */ m(LR, {
41621
- className: $(pz, r === gR.Small && "p-1", i),
41621
+ }, gz = ({ icon: e, onClick: t, disabled: n, size: r = gR.Standard, className: i }) => /* @__PURE__ */ m("div", {
41622
+ className: $("border-l border-tertiary", hz[r]),
41623
+ children: /* @__PURE__ */ m(RR, {
41624
+ className: $(mz, r === gR.Small && "p-1", i),
41622
41625
  icon: e,
41623
41626
  onClick: t,
41624
41627
  disabled: n,
41625
41628
  size: r
41626
41629
  })
41627
- }), gz = [
41630
+ }), _z = [
41628
41631
  "ArrowLeft",
41629
41632
  "ArrowRight",
41630
41633
  "ArrowUp",
@@ -41637,8 +41640,8 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41637
41640
  "Home",
41638
41641
  "End",
41639
41642
  "Insert"
41640
- ], _z = (e, t, n, r) => {
41641
- if ((t === "number" || n !== void 0 || r !== void 0) && !gz.includes(e.key) && !(e.ctrlKey || e.metaKey) && (e.key !== "-" || (e.currentTarget.selectionStart ?? 0) !== 0 || e.currentTarget.value.includes("-")) && (e.key !== "." || t !== "number" || e.currentTarget.value.includes("."))) {
41643
+ ], vz = (e, t, n, r) => {
41644
+ if ((t === "number" || n !== void 0 || r !== void 0) && !_z.includes(e.key) && !(e.ctrlKey || e.metaKey) && (e.key !== "-" || (e.currentTarget.selectionStart ?? 0) !== 0 || e.currentTarget.value.includes("-")) && (e.key !== "." || t !== "number" || e.currentTarget.value.includes("."))) {
41642
41645
  if (!/^[0-9]$/.test(e.key)) {
41643
41646
  e.preventDefault();
41644
41647
  return;
@@ -41651,7 +41654,7 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41651
41654
  }
41652
41655
  }
41653
41656
  }
41654
- }, vz = {
41657
+ }, yz = {
41655
41658
  [gR.Small]: {
41656
41659
  field: "dial-kit-input-small gap-x-1",
41657
41660
  paddingStart: "pl-2",
@@ -41673,17 +41676,17 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41673
41676
  stackGap: "gap-2",
41674
41677
  postfixText: "dial-body-text"
41675
41678
  }
41676
- }, yz = ({ labelProps: e, error: t, caption: n, id: r, containerClassName: i, size: a = gR.Standard, "aria-describedby": o, "aria-invalid": s, ...c }) => {
41679
+ }, bz = ({ labelProps: e, error: t, caption: n, id: r, containerClassName: i, size: a = gR.Standard, "aria-describedby": o, "aria-invalid": s, ...c }) => {
41677
41680
  let l = A(), u = r ?? l, d = t ? `${u}-error` : void 0, f = !t && n ? `${u}-caption` : void 0;
41678
41681
  return /* @__PURE__ */ h("div", {
41679
- className: $("flex flex-col", vz[a].stackGap, i),
41680
- children: [e && /* @__PURE__ */ m(fz, {
41682
+ className: $("flex flex-col", yz[a].stackGap, i),
41683
+ children: [e && /* @__PURE__ */ m(pz, {
41681
41684
  ...e,
41682
41685
  htmlFor: u
41683
41686
  }), /* @__PURE__ */ h("div", {
41684
41687
  className: "flex flex-col gap-1",
41685
41688
  children: [
41686
- /* @__PURE__ */ m(bz, {
41689
+ /* @__PURE__ */ m(xz, {
41687
41690
  id: u,
41688
41691
  size: a,
41689
41692
  "aria-describedby": [
@@ -41694,19 +41697,19 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41694
41697
  "aria-invalid": s ?? (t || c.invalid ? !0 : void 0),
41695
41698
  ...c
41696
41699
  }),
41697
- /* @__PURE__ */ m(uz, {
41700
+ /* @__PURE__ */ m(dz, {
41698
41701
  id: d,
41699
41702
  text: t
41700
41703
  }),
41701
- !t && /* @__PURE__ */ m(lz, {
41704
+ !t && /* @__PURE__ */ m(uz, {
41702
41705
  id: f,
41703
41706
  text: n
41704
41707
  })
41705
41708
  ]
41706
41709
  })]
41707
41710
  });
41708
- }, bz = ({ invalid: e, disabled: t, prefix: n, className: r, postfix: i, children: a, iconBefore: o, iconAfter: s, wrapperClassName: c, type: l, inputRef: u, value: d, tooltipText: f, min: p, onChange: g, max: _, inputButtonProps: v, wrapperRef: y, size: b = gR.Standard, ...x }) => {
41709
- let S = vz[b], C = P(null), w = $F([u, C]), T = l === "number" || p !== void 0 || _ !== void 0;
41711
+ }, xz = ({ invalid: e, disabled: t, prefix: n, className: r, postfix: i, children: a, iconBefore: o, iconAfter: s, wrapperClassName: c, type: l, inputRef: u, value: d, tooltipText: f, min: p, onChange: g, max: _, inputButtonProps: v, wrapperRef: y, size: b = gR.Standard, ...x }) => {
41712
+ let S = yz[b], C = P(null), w = $F([u, C]), T = l === "number" || p !== void 0 || _ !== void 0;
41710
41713
  k(() => {
41711
41714
  let e = C.current;
41712
41715
  if (!e || !T || t) return;
@@ -41722,7 +41725,7 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41722
41725
  l
41723
41726
  ]);
41724
41727
  let E = (e) => {
41725
- _z(e, l, p, _);
41728
+ vz(e, l, p, _);
41726
41729
  }, D = (e) => {
41727
41730
  let t = e.currentTarget.value;
41728
41731
  if (T && t !== "") {
@@ -41737,7 +41740,7 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41737
41740
  children: [
41738
41741
  n && /* @__PURE__ */ m("div", {
41739
41742
  className: "border-r border-secondary",
41740
- children: /* @__PURE__ */ m(bz, {
41743
+ children: /* @__PURE__ */ m(xz, {
41741
41744
  wrapperClassName: "!rounded-r-none",
41742
41745
  className: "truncate",
41743
41746
  value: n,
@@ -41746,7 +41749,7 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41746
41749
  id: `${n}_textBefore`
41747
41750
  })
41748
41751
  }),
41749
- /* @__PURE__ */ m(VR, { icon: o }),
41752
+ /* @__PURE__ */ m(HR, { icon: o }),
41750
41753
  a,
41751
41754
  /* @__PURE__ */ m("input", {
41752
41755
  ref: w,
@@ -41765,27 +41768,27 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41765
41768
  className: $("text-secondary", S.postfixText),
41766
41769
  children: [" ", i]
41767
41770
  }),
41768
- /* @__PURE__ */ m(VR, { icon: s }),
41769
- v && /* @__PURE__ */ m(hz, {
41771
+ /* @__PURE__ */ m(HR, { icon: s }),
41772
+ v && /* @__PURE__ */ m(gz, {
41770
41773
  size: b,
41771
41774
  ...v,
41772
41775
  disabled: t
41773
41776
  })
41774
41777
  ]
41775
41778
  });
41776
- return t && l !== "password" ? /* @__PURE__ */ m(jR, {
41779
+ return t && l !== "password" ? /* @__PURE__ */ m(MR, {
41777
41780
  tooltip: f || d,
41778
41781
  children: O()
41779
41782
  }) : O();
41780
- }, xz = {
41783
+ }, Sz = {
41781
41784
  [gR.Small]: rR.SM,
41782
41785
  [gR.Standard]: rR.MD,
41783
41786
  [gR.Large]: rR.MD
41784
- }, Sz = ({ size: e = gR.Standard, placeholder: t = "Search...", withoutBorder: n = !1, clearLabel: r = "Clear search", disabled: i, value: a, onChange: o, wrapperClassName: s, inputRef: c, ...l }) => {
41787
+ }, Cz = ({ size: e = gR.Standard, placeholder: t = "Search...", withoutBorder: n = !1, clearLabel: r = "Clear search", disabled: i, value: a, onChange: o, wrapperClassName: s, inputRef: c, ...l }) => {
41785
41788
  let u = P(null), d = $F([c, u]), f = !!a && !i, p = D(() => {
41786
41789
  o?.(void 0), u.current?.focus();
41787
41790
  }, [o]);
41788
- return /* @__PURE__ */ m(yz, {
41791
+ return /* @__PURE__ */ m(bz, {
41789
41792
  ...l,
41790
41793
  size: e,
41791
41794
  value: a,
@@ -41795,12 +41798,12 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41795
41798
  inputRef: d,
41796
41799
  wrapperClassName: $(n && "dial-kit-input-borderless", s, IL.search),
41797
41800
  iconBefore: /* @__PURE__ */ m(GL, {
41798
- size: xz[e],
41801
+ size: Sz[e],
41799
41802
  stroke: nR,
41800
41803
  className: "text-secondary",
41801
41804
  "aria-hidden": "true"
41802
41805
  }),
41803
- iconAfter: f ? /* @__PURE__ */ m(zR, {
41806
+ iconAfter: f ? /* @__PURE__ */ m(BR, {
41804
41807
  size: gR.Small,
41805
41808
  "aria-label": r,
41806
41809
  icon: /* @__PURE__ */ m(KL, {
@@ -41811,18 +41814,18 @@ var BR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
41811
41814
  onClick: p
41812
41815
  }) : void 0
41813
41816
  });
41814
- }, Cz = "[role=\"menuitem\"], [role=\"menuitemcheckbox\"], [role=\"menuitemradio\"], [role=\"option\"]", wz = [
41817
+ }, wz = "[role=\"menuitem\"], [role=\"menuitemcheckbox\"], [role=\"menuitemradio\"], [role=\"option\"]", Tz = [
41815
41818
  "ArrowDown",
41816
41819
  "ArrowUp",
41817
41820
  "Home",
41818
41821
  "End"
41819
- ], Tz = (e) => Array.from(e.querySelectorAll(Cz)).filter((e) => !e.hasAttribute("disabled") && e.getAttribute("aria-disabled") !== "true"), Ez = (e) => e.ownerDocument.defaultView?.getComputedStyle(e).direction === "rtl", Dz = (e) => Ez(e) ? "ArrowLeft" : "ArrowRight", Oz = (e) => Ez(e) ? "ArrowRight" : "ArrowLeft", kz = (e) => e instanceof HTMLElement && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable), Az = (e, t, n) => {
41822
+ ], Ez = (e) => Array.from(e.querySelectorAll(wz)).filter((e) => !e.hasAttribute("disabled") && e.getAttribute("aria-disabled") !== "true"), Dz = (e) => e.ownerDocument.defaultView?.getComputedStyle(e).direction === "rtl", Oz = (e) => Dz(e) ? "ArrowLeft" : "ArrowRight", kz = (e) => Dz(e) ? "ArrowRight" : "ArrowLeft", Az = (e) => e instanceof HTMLElement && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable), jz = (e, t, n) => {
41820
41823
  if (e === "Home") return 0;
41821
41824
  if (e === "End") return n - 1;
41822
41825
  let r = e === "ArrowDown" ? 1 : -1;
41823
41826
  return t === -1 ? r === 1 ? 0 : n - 1 : (t + r + n) % n;
41824
41827
  };
41825
- function jz(e, t = "menu", n = !1, r, i) {
41828
+ function Mz(e, t = "menu", n = !1, r, i) {
41826
41829
  let [a, o] = F(!1), s = i?.open ?? a, c = i?.onOpenChange, l = i?.open, u = D((e) => {
41827
41830
  l === void 0 && o(e), c?.(e);
41828
41831
  }, [l, c]), [d, f] = F(!1), p = wI(), { refs: m, elements: h, floatingStyles: g, context: _ } = xL({
@@ -41841,7 +41844,7 @@ function jz(e, t = "menu", n = !1, r, i) {
41841
41844
  ]
41842
41845
  });
41843
41846
  k(() => {
41844
- h.domReference && f(Ez(h.domReference));
41847
+ h.domReference && f(Dz(h.domReference));
41845
41848
  }, [h.domReference, s]);
41846
41849
  let { getReferenceProps: v, getFloatingProps: y } = TL([
41847
41850
  MI(_, {
@@ -41864,26 +41867,26 @@ function jz(e, t = "menu", n = !1, r, i) {
41864
41867
  DL(_, { role: t })
41865
41868
  ]), [b, x] = F(!1), S = h.floating;
41866
41869
  k(() => {
41867
- !s || !b || S == null || (Tz(S)[0]?.focus(), x(!1));
41870
+ !s || !b || S == null || (Ez(S)[0]?.focus(), x(!1));
41868
41871
  }, [
41869
41872
  s,
41870
41873
  b,
41871
41874
  S
41872
41875
  ]);
41873
41876
  let C = D((e) => {
41874
- n || e.key !== Dz(e.currentTarget) && e.key !== "Enter" && e.key !== " " || (e.preventDefault(), e.stopPropagation(), u(!0), x(!0));
41877
+ n || e.key !== Oz(e.currentTarget) && e.key !== "Enter" && e.key !== " " || (e.preventDefault(), e.stopPropagation(), u(!0), x(!0));
41875
41878
  }, [n, u]), w = D((e) => {
41876
- if (e.defaultPrevented || kz(e.target)) return;
41877
- if (e.key === Oz(e.currentTarget)) {
41879
+ if (e.defaultPrevented || Az(e.target)) return;
41880
+ if (e.key === kz(e.currentTarget)) {
41878
41881
  e.preventDefault(), e.stopPropagation(), u(!1), m.domReference.current?.focus();
41879
41882
  return;
41880
41883
  }
41881
- if (!wz.includes(e.key)) return;
41884
+ if (!Tz.includes(e.key)) return;
41882
41885
  e.preventDefault(), e.stopPropagation();
41883
- let t = Tz(e.currentTarget);
41886
+ let t = Ez(e.currentTarget);
41884
41887
  if (t.length === 0) return;
41885
41888
  let n = e.currentTarget.ownerDocument.activeElement, r = t.findIndex((e) => e === n);
41886
- t[Az(e.key, r, t.length)]?.focus();
41889
+ t[jz(e.key, r, t.length)]?.focus();
41887
41890
  }, [m.domReference, u]);
41888
41891
  return {
41889
41892
  isOpen: s,
@@ -41901,7 +41904,7 @@ function jz(e, t = "menu", n = !1, r, i) {
41901
41904
  }), [y, w])
41902
41905
  };
41903
41906
  }
41904
- var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, context: n, getFloatingProps: r, role: i, surfaceClassName: a, className: o, initialFocus: s = -1, children: c }) => {
41907
+ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, context: n, getFloatingProps: r, role: i, surfaceClassName: a, className: o, initialFocus: s = -1, children: c }) => {
41905
41908
  let l = NL();
41906
41909
  return /* @__PURE__ */ m(eL, { children: /* @__PURE__ */ m(dL, {
41907
41910
  context: n,
@@ -41912,13 +41915,13 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
41912
41915
  ref: e.setFloating,
41913
41916
  style: t,
41914
41917
  role: i,
41915
- className: (0, kM.default)("z-floating overflow-auto text-primary focus-visible:outline-hidden", a ?? Mz, l, o),
41918
+ className: (0, kM.default)("z-floating overflow-auto text-primary focus-visible:outline-hidden", a ?? Nz, l, o),
41916
41919
  ...r(),
41917
41920
  children: c
41918
41921
  })
41919
41922
  }) });
41920
- }, Pz = (e) => e.mark ?? (e.selectable ? RL.Checkbox : RL.None), Fz = (e) => e.selectable ? "menuitemcheckbox" : Pz(e) === RL.Check ? "menuitemradio" : "menuitem", Iz = ({ item: e, onRootClose: t }) => {
41921
- let n = P(e.subMenuOpen ? 0 : -1), { isOpen: r, nodeId: i, refs: a, floatingStyles: o, context: s, getReferenceProps: c, getFloatingProps: l } = jz(mR, "menu", !!e.disabled, e.subMenuHoverOptions, {
41923
+ }, Fz = (e) => e.mark ?? (e.selectable ? RL.Checkbox : RL.None), Iz = (e) => e.selectable ? "menuitemcheckbox" : Fz(e) === RL.Check ? "menuitemradio" : "menuitem", Lz = ({ item: e, onRootClose: t }) => {
41924
+ let n = P(e.subMenuOpen ? 0 : -1), { isOpen: r, nodeId: i, refs: a, floatingStyles: o, context: s, getReferenceProps: c, getFloatingProps: l } = Mz(mR, "menu", !!e.disabled, e.subMenuHoverOptions, {
41922
41925
  open: e.subMenuOpen,
41923
41926
  onOpenChange: e.onSubMenuOpenChange
41924
41927
  }), u = D((e) => (n) => {
@@ -41926,7 +41929,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
41926
41929
  key: e.key,
41927
41930
  domEvent: n
41928
41931
  }), e.selectable || t());
41929
- }, [t]), d = /* @__PURE__ */ m(rz, {
41932
+ }, [t]), d = /* @__PURE__ */ m(iz, {
41930
41933
  ref: a.setReference,
41931
41934
  role: "menuitem",
41932
41935
  "aria-haspopup": "menu",
@@ -41948,7 +41951,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
41948
41951
  content: e.interactiveTooltip.content,
41949
41952
  contentClassName: e.interactiveTooltip.contentClassName,
41950
41953
  children: d
41951
- }) : d, r && /* @__PURE__ */ m(Nz, {
41954
+ }) : d, r && /* @__PURE__ */ m(Pz, {
41952
41955
  refs: a,
41953
41956
  floatingStyles: o,
41954
41957
  context: s,
@@ -41959,13 +41962,13 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
41959
41962
  children: e.renderSubMenu ? e.renderSubMenu() : /* @__PURE__ */ h(p, { children: [
41960
41963
  e.menuHeader && (typeof e.menuHeader == "function" ? e.menuHeader() : e.menuHeader),
41961
41964
  e.children.map((e) => {
41962
- let t = Fz(e), n = /* @__PURE__ */ m(rz, {
41965
+ let t = Iz(e), n = /* @__PURE__ */ m(iz, {
41963
41966
  role: t,
41964
41967
  "aria-checked": t === "menuitem" ? void 0 : !!e.checked,
41965
- "aria-current": Pz(e) === RL.Highlight && e.checked ? !0 : void 0,
41968
+ "aria-current": Fz(e) === RL.Highlight && e.checked ? !0 : void 0,
41966
41969
  "aria-disabled": !!e.disabled,
41967
41970
  disabled: e.disabled,
41968
- mark: Pz(e),
41971
+ mark: Fz(e),
41969
41972
  selected: !!e.checked,
41970
41973
  danger: e.danger,
41971
41974
  icon: e.icon,
@@ -41988,15 +41991,15 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
41988
41991
  ] })
41989
41992
  })]
41990
41993
  });
41991
- }, Lz = {
41994
+ }, Rz = {
41992
41995
  2: "line-clamp-2",
41993
41996
  3: "line-clamp-3",
41994
41997
  4: "line-clamp-4",
41995
41998
  5: "line-clamp-5",
41996
41999
  6: "line-clamp-6"
41997
- }, Rz = (e) => e === 1 ? "!truncate !whitespace-nowrap" : `${Lz[e] ?? Lz[2]} !whitespace-normal`, zz = ({ text: e, query: t, markClassName: n, className: r, maxLines: i = 2 }) => {
41998
- let a = $(Rz(i), r, IL.highlight);
41999
- if (!t.trim()) return /* @__PURE__ */ m(tz, {
42000
+ }, zz = (e) => e === 1 ? "!truncate !whitespace-nowrap" : `${Rz[e] ?? Rz[2]} !whitespace-normal`, Bz = ({ text: e, query: t, markClassName: n, className: r, maxLines: i = 2 }) => {
42001
+ let a = $(zz(i), r, IL.highlight);
42002
+ if (!t.trim()) return /* @__PURE__ */ m(nz, {
42000
42003
  className: a,
42001
42004
  text: e
42002
42005
  });
@@ -42008,50 +42011,50 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42008
42011
  }),
42009
42012
  e.slice(o + t.length)
42010
42013
  ] });
42011
- return /* @__PURE__ */ m(tz, {
42014
+ return /* @__PURE__ */ m(nz, {
42012
42015
  className: a,
42013
42016
  text: s
42014
42017
  });
42015
- }, Bz = (e, t) => typeof e.label == "string" && e.label.toLocaleLowerCase().includes(t), Vz = (e) => e.type === KA.Divider || e.type === KA.PlainText, Hz = (e, t, n) => {
42018
+ }, Vz = (e, t) => typeof e.label == "string" && e.label.toLocaleLowerCase().includes(t), Hz = (e) => e.type === KA.Divider || e.type === KA.PlainText, Uz = (e, t, n) => {
42016
42019
  if (!e.children?.length) return n(e, t) ? e : null;
42017
42020
  if (n(e, t)) return e;
42018
- let r = Uz(e.children, t, n);
42021
+ let r = Wz(e.children, t, n);
42019
42022
  return r.length > 0 ? {
42020
42023
  ...e,
42021
42024
  children: r
42022
42025
  } : null;
42023
- }, Uz = (e, t, n) => {
42026
+ }, Wz = (e, t, n) => {
42024
42027
  let r = [], i = [];
42025
42028
  return e.forEach((e) => {
42026
- if (Vz(e)) {
42029
+ if (Hz(e)) {
42027
42030
  e.type === KA.Divider && (i = []), i.push(e);
42028
42031
  return;
42029
42032
  }
42030
- let a = Hz(e, t, n);
42033
+ let a = Uz(e, t, n);
42031
42034
  if (a == null) return;
42032
42035
  let o = r.length === 0 ? i.filter((e) => e.type !== KA.Divider) : i;
42033
42036
  r.push(...o, a), i = [];
42034
42037
  }), r;
42035
- }, Wz = (e, t, n = Bz) => {
42038
+ }, Gz = (e, t, n = Vz) => {
42036
42039
  let r = t.trim().toLocaleLowerCase();
42037
- return r ? Uz(e, r, n) : e;
42038
- }, Gz = (e, t) => {
42040
+ return r ? Wz(e, r, n) : e;
42041
+ }, Kz = (e, t) => {
42039
42042
  let n = t.trim();
42040
- return n ? e.map((e) => Vz(e) ? e : {
42043
+ return n ? e.map((e) => Hz(e) ? e : {
42041
42044
  ...e,
42042
- label: typeof e.label == "string" ? /* @__PURE__ */ m(zz, {
42045
+ label: typeof e.label == "string" ? /* @__PURE__ */ m(Bz, {
42043
42046
  text: e.label,
42044
42047
  query: n,
42045
42048
  maxLines: 1
42046
42049
  }) : e.label,
42047
- children: e.children ? Gz(e.children, n) : void 0
42050
+ children: e.children ? Kz(e.children, n) : void 0
42048
42051
  }) : e;
42049
- }, Kz = "[role=\"menuitem\"], [role=\"menuitemcheckbox\"], [role=\"menuitemradio\"], [role=\"option\"]", qz = (e) => !e.hasAttribute("disabled") && e.getAttribute("aria-disabled") !== "true", Jz = [
42052
+ }, qz = "[role=\"menuitem\"], [role=\"menuitemcheckbox\"], [role=\"menuitemradio\"], [role=\"option\"]", Jz = (e) => !e.hasAttribute("disabled") && e.getAttribute("aria-disabled") !== "true", Yz = [
42050
42053
  "ArrowDown",
42051
42054
  "ArrowUp",
42052
42055
  "Home",
42053
42056
  "End"
42054
- ], Yz = [
42057
+ ], Xz = [
42055
42058
  "a[href]",
42056
42059
  "button:not([disabled])",
42057
42060
  "input:not([disabled]):not([type=\"hidden\"])",
@@ -42059,12 +42062,12 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42059
42062
  "textarea:not([disabled])",
42060
42063
  "[contenteditable=\"true\"]",
42061
42064
  "[tabindex]"
42062
- ].map((e) => `${e}:not([tabindex^="-"])`).join(", "), Xz = (e) => e.matches(Yz) ? e : e.querySelector(Yz), Zz = (e, t, n) => {
42065
+ ].map((e) => `${e}:not([tabindex^="-"])`).join(", "), Zz = (e) => e.matches(Xz) ? e : e.querySelector(Xz), Qz = (e, t, n) => {
42063
42066
  if (e === "Home") return 0;
42064
42067
  if (e === "End") return n - 1;
42065
42068
  let r = e === "ArrowDown" ? 1 : -1;
42066
42069
  return t === -1 ? r === 1 ? 0 : n - 1 : (t + r + n) % n;
42067
- }, Qz = (e) => "clientWidth" in e ? e.clientWidth : e.getBoundingClientRect?.()?.width ?? 0, $z = ({ children: e, items: t, onItemClick: n, menuHeader: r, menuFooter: i, renderOverlay: a, trigger: o = [GA.Click], placement: s, disabled: c = !1, open: l, defaultOpen: u = !1, onOpenChange: d, closable: f = !1, onClose: g, className: _, overlayContentClassName: v, separatorClassName: b, listClassName: S, listStyle: C, outsidePressIgnoreRef: w, outsideClosable: E = !0, allowedPlacements: O, anchorToMouse: j = !1, matchReferenceWidth: M = !0, maxDropdownHeight: I, initialFocus: ee, returnFocus: te = !0, overlayRole: ne = qA.Menu, optionArrowNavigation: re, overlayAriaLabel: ie, overlayAriaLabelledBy: ae, searchable: L = !1, searchValue: oe, onSearchChange: R, searchPlaceholder: se = "Search", searchClearLabel: ce = "Clear search", noResultsLabel: le = "No results found", filterItem: ue, maxVisibleItems: de }) => {
42070
+ }, $z = (e) => "clientWidth" in e ? e.clientWidth : e.getBoundingClientRect?.()?.width ?? 0, eB = ({ children: e, items: t, onItemClick: n, menuHeader: r, menuFooter: i, renderOverlay: a, trigger: o = [GA.Click], placement: s, disabled: c = !1, open: l, defaultOpen: u = !1, onOpenChange: d, closable: f = !1, onClose: g, className: _, overlayContentClassName: v, separatorClassName: b, listClassName: S, listStyle: C, outsidePressIgnoreRef: w, outsideClosable: E = !0, allowedPlacements: O, anchorToMouse: j = !1, matchReferenceWidth: M = !0, maxDropdownHeight: I, initialFocus: ee, returnFocus: te = !0, overlayRole: ne = qA.Menu, optionArrowNavigation: re, overlayAriaLabel: ie, overlayAriaLabelledBy: ae, searchable: L = !1, searchValue: oe, onSearchChange: R, searchPlaceholder: se = "Search", searchClearLabel: ce = "Clear search", noResultsLabel: le = "No results found", filterItem: ue, maxVisibleItems: de }) => {
42068
42071
  let fe = NL(), [pe, me] = F(u), z = l !== void 0, he = z ? !!l : pe, ge = P(null), [_e, ve] = F(""), ye = oe ?? _e, be = D((e) => {
42069
42072
  oe === void 0 && ve(e), R?.(e);
42070
42073
  }, [oe, R]), [B, xe] = F(!0), Se = D((e, t, n) => {
@@ -42096,7 +42099,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42096
42099
  XF({
42097
42100
  padding: mR,
42098
42101
  apply({ availableWidth: e, availableHeight: t, elements: n }) {
42099
- let r = n.floating, i = Qz(n.reference);
42102
+ let r = n.floating, i = $z(n.reference);
42100
42103
  r.style.setProperty("--fui-available-height", `${Math.floor(t)}px`), r.style.setProperty("--reference-width", M ? `${Math.round(i)}px` : "0px"), M ? r.style.minWidth = `${Math.round(i)}px` : r.style.removeProperty("min-width"), r.style.maxWidth = `${Math.floor(e)}px`;
42101
42104
  let a = Math.floor(t);
42102
42105
  r.style.maxHeight = `${I ? Math.min(a, I) : a}px`;
@@ -42168,10 +42171,10 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42168
42171
  let t = e.currentTarget;
42169
42172
  if (!(re ?? Ne)) {
42170
42173
  if (!t.contains(e.target)) return;
42171
- let n = Array.from(t.querySelectorAll(Yz)), r = e.shiftKey ? n[0] : n.at(-1), i = t.ownerDocument.activeElement;
42174
+ let n = Array.from(t.querySelectorAll(Xz)), r = e.shiftKey ? n[0] : n.at(-1), i = t.ownerDocument.activeElement;
42172
42175
  if (r && i !== r && i !== t) return;
42173
42176
  }
42174
- let n = Ee.domReference.current, r = n ? Xz(n) : null;
42177
+ let n = Ee.domReference.current, r = n ? Zz(n) : null;
42175
42178
  r ? (r.focus({ preventScroll: !0 }), setTimeout(() => {
42176
42179
  Ee.floating.current?.isConnected && Se(!1);
42177
42180
  })) : (e.preventDefault(), Se(!1));
@@ -42187,12 +42190,12 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42187
42190
  Ve(e);
42188
42191
  return;
42189
42192
  }
42190
- if (!(re ?? Ne) || !Jz.includes(e.key) || !e.currentTarget.contains(e.target) || e.target instanceof HTMLInputElement && (e.key === "Home" || e.key === "End")) return;
42191
- let t = Array.from(e.currentTarget.querySelectorAll(Kz)).filter(qz);
42193
+ if (!(re ?? Ne) || !Yz.includes(e.key) || !e.currentTarget.contains(e.target) || e.target instanceof HTMLInputElement && (e.key === "Home" || e.key === "End")) return;
42194
+ let t = Array.from(e.currentTarget.querySelectorAll(qz)).filter(Jz);
42192
42195
  if (t.length === 0) return;
42193
42196
  e.preventDefault();
42194
42197
  let n = e.currentTarget.ownerDocument.activeElement, r = t.findIndex((e) => e === n);
42195
- t[Zz(e.key, r, t.length)]?.focus();
42198
+ t[Qz(e.key, r, t.length)]?.focus();
42196
42199
  }, [
42197
42200
  Ne,
42198
42201
  re,
@@ -42205,7 +42208,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42205
42208
  key: e.key,
42206
42209
  domEvent: t
42207
42210
  }), e.selectable || Se(!1));
42208
- }, [n, Se]), We = N(() => !t || !L ? t : Gz(Wz(t, ye, ue), ye), [
42211
+ }, [n, Se]), We = N(() => !t || !L ? t : Kz(Gz(t, ye, ue), ye), [
42209
42212
  t,
42210
42213
  L,
42211
42214
  ye,
@@ -42218,7 +42221,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42218
42221
  r && /* @__PURE__ */ m(p, { children: typeof r == "function" ? r() : r }),
42219
42222
  L && /* @__PURE__ */ m("div", {
42220
42223
  className: $("shrink-0 px-1 pt-1", IL.dropdownSearch),
42221
- children: /* @__PURE__ */ m(Sz, {
42224
+ children: /* @__PURE__ */ m(Cz, {
42222
42225
  value: ye,
42223
42226
  placeholder: se,
42224
42227
  "aria-label": se,
@@ -42244,11 +42247,11 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42244
42247
  className: $("px-3 py-2 text-secondary dial-caption-text", e.className),
42245
42248
  children: e.label
42246
42249
  }, e.key);
42247
- if (e.children?.length || e.renderSubMenu) return /* @__PURE__ */ m(Iz, {
42250
+ if (e.children?.length || e.renderSubMenu) return /* @__PURE__ */ m(Lz, {
42248
42251
  item: e,
42249
42252
  onRootClose: () => Se(!1)
42250
42253
  }, e.key);
42251
- let t = Pz(e), n = Fz(e), r = /* @__PURE__ */ m(rz, {
42254
+ let t = Fz(e), n = Iz(e), r = /* @__PURE__ */ m(iz, {
42252
42255
  role: n,
42253
42256
  "aria-checked": n === "menuitem" ? void 0 : !!e.checked,
42254
42257
  "aria-current": t === RL.Highlight && e.checked ? !0 : void 0,
@@ -42350,7 +42353,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42350
42353
  ...$e(),
42351
42354
  children: [f && /* @__PURE__ */ m("div", {
42352
42355
  className: "flex items-center justify-between px-2 pt-2",
42353
- children: /* @__PURE__ */ m(BR, {
42356
+ children: /* @__PURE__ */ m(VR, {
42354
42357
  ariaLabel: "Close dropdown",
42355
42358
  onClose: (e) => {
42356
42359
  g?.(e), Se(!1);
@@ -42361,11 +42364,11 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42361
42364
  })
42362
42365
  })]
42363
42366
  }) });
42364
- }, eB = [
42367
+ }, tB = [
42365
42368
  12,
42366
42369
  40,
42367
42370
  68
42368
- ], tB = () => /* @__PURE__ */ h("svg", {
42371
+ ], nB = () => /* @__PURE__ */ h("svg", {
42369
42372
  width: 121,
42370
42373
  height: 97,
42371
42374
  viewBox: "0 0 121 97",
@@ -42379,7 +42382,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42379
42382
  height: 96,
42380
42383
  rx: 16,
42381
42384
  className: "fill-layer-0 stroke-tertiary"
42382
- }), eB.map((e) => /* @__PURE__ */ h("g", { children: [
42385
+ }), tB.map((e) => /* @__PURE__ */ h("g", { children: [
42383
42386
  /* @__PURE__ */ m("circle", {
42384
42387
  cx: 20.5,
42385
42388
  cy: e + 8.5,
@@ -42403,11 +42406,11 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42403
42406
  className: "fill-layer-2"
42404
42407
  })
42405
42408
  ] }, e))]
42406
- }), nB = ({ title: e, description: t, icon: n, action: r, live: i = !1, className: a, titleClassName: o, descriptionClassName: s }) => /* @__PURE__ */ h("div", {
42409
+ }), rB = ({ title: e, description: t, icon: n, action: r, live: i = !1, className: a, titleClassName: o, descriptionClassName: s }) => /* @__PURE__ */ h("div", {
42407
42410
  role: i ? "status" : void 0,
42408
42411
  className: $("flex size-full flex-col items-center justify-center px-4 text-center", a, IL.noDataContent),
42409
42412
  children: [
42410
- n ?? /* @__PURE__ */ m(tB, {}),
42413
+ n ?? /* @__PURE__ */ m(nB, {}),
42411
42414
  /* @__PURE__ */ m("span", {
42412
42415
  className: $("dial-small-semi-text mt-6 text-primary", o),
42413
42416
  children: e
@@ -42421,7 +42424,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42421
42424
  children: r
42422
42425
  })
42423
42426
  ]
42424
- }), rB = ["noRows", "noMatchingRows"], iB = ({ overlayType: e, empty: t, filtered: n }) => /* @__PURE__ */ m(nB, { ...e === "noMatchingRows" ? n : t }), aB = ({ overlayType: e }) => rB.includes(e) ? { component: iB } : void 0, oB = ({ id: e, labelProps: t, isSelected: n = !1, isIndeterminate: r = !1, invalid: i = !1, disabled: a, onChange: o, caption: s, className: c, boxClassName: l, ...u }) => {
42427
+ }), iB = ["noRows", "noMatchingRows"], aB = ({ overlayType: e, empty: t, filtered: n }) => /* @__PURE__ */ m(rB, { ...e === "noMatchingRows" ? n : t }), oB = ({ overlayType: e }) => iB.includes(e) ? { component: aB } : void 0, sB = ({ id: e, labelProps: t, isSelected: n = !1, isIndeterminate: r = !1, invalid: i = !1, disabled: a, onChange: o, caption: s, className: c, boxClassName: l, ...u }) => {
42425
42428
  let d = A(), f = e ?? d, p = s ? `${f}-caption` : void 0, g = D((e) => {
42426
42429
  o?.(e.target.checked);
42427
42430
  }, [o]), _ = D((e) => {
@@ -42446,7 +42449,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42446
42449
  "aria-describedby": p,
42447
42450
  className: "peer sr-only"
42448
42451
  }),
42449
- /* @__PURE__ */ m(UR, {
42452
+ /* @__PURE__ */ m(WR, {
42450
42453
  htmlFor: f,
42451
42454
  isSelected: n,
42452
42455
  isIndeterminate: r,
@@ -42454,7 +42457,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42454
42457
  disabled: a,
42455
42458
  className: l
42456
42459
  }),
42457
- t && /* @__PURE__ */ m(fz, {
42460
+ t && /* @__PURE__ */ m(pz, {
42458
42461
  size: gR.Standard,
42459
42462
  ...t,
42460
42463
  htmlFor: f,
@@ -42467,7 +42470,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42467
42470
  children: s
42468
42471
  })]
42469
42472
  });
42470
- }, sB = ({ id: e, name: t, value: n, labelProps: r, isSelected: i = !1, disabled: a, onChange: o, caption: s, className: c, ...l }) => {
42473
+ }, cB = ({ id: e, name: t, value: n, labelProps: r, isSelected: i = !1, disabled: a, onChange: o, caption: s, className: c, ...l }) => {
42471
42474
  let u = A(), d = e ?? u, f = s ? `${d}-caption` : void 0, p = D((e) => {
42472
42475
  e.target.checked && o?.(n);
42473
42476
  }, [o, n]);
@@ -42494,7 +42497,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42494
42497
  className: $("group grid size-[20px] shrink-0 place-items-center rounded-full border transition-colors duration-200", "dial-kit-minimum-target", "peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-focus", a ? "cursor-not-allowed border-default bg-control-disable-primary" : $("cursor-pointer group-has-[label:hover]/choice:bg-control-accent-alpha-hover", i ? "border border-accent bg-control-neutral" : "border-default bg-control-neutral")),
42495
42498
  children: i && /* @__PURE__ */ m("span", { className: $("size-3 rounded-full", a ? "bg-control-disable-secondary" : "bg-control-accent") })
42496
42499
  }),
42497
- r && /* @__PURE__ */ m(fz, {
42500
+ r && /* @__PURE__ */ m(pz, {
42498
42501
  size: gR.Standard,
42499
42502
  ...r,
42500
42503
  htmlFor: d,
@@ -42507,16 +42510,16 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42507
42510
  children: s
42508
42511
  })]
42509
42512
  });
42510
- }, cB = "dial-kit-grid", lB = "dial-kit-grid-row-select", uB = "dial-kit-grid-header-select", dB = "0.5px solid var(--stroke-tertiary, #E0E6F0)", fB = {
42513
+ }, lB = "dial-kit-grid", uB = "dial-kit-grid-row-select", dB = "dial-kit-grid-header-select", fB = "0.5px solid var(--stroke-tertiary, #E0E6F0)", pB = {
42511
42514
  accentColor: "var(--bg-control-accent, #1D4ED8)",
42512
42515
  backgroundColor: "var(--bg-layer-raised, #FCFCFC)",
42513
42516
  oddRowBackgroundColor: "var(--bg-layer-sunken, #EEF1F7)",
42514
42517
  selectedRowBackgroundColor: "var(--bg-control-accent-alpha-active-subtle, #2764D914)",
42515
42518
  rowHoverColor: "var(--bg-control-accent-alpha-hover-subtle, #2764D90A)",
42516
42519
  borderColor: "var(--stroke-tertiary, #E0E6F0)",
42517
- rowBorder: dB,
42520
+ rowBorder: fB,
42518
42521
  headerRowBorder: !1,
42519
- headerColumnBorder: dB,
42522
+ headerColumnBorder: fB,
42520
42523
  headerColumnBorderHeight: 12,
42521
42524
  chromeBackgroundColor: "var(--bg-layer-base, #F5F7FA)",
42522
42525
  headerBackgroundColor: "var(--bg-layer-raised, #FCFCFC)",
@@ -42531,7 +42534,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42531
42534
  borderRadius: 4,
42532
42535
  inputBorderRadius: 8,
42533
42536
  wrapperBorderRadius: 8
42534
- }, pB = /* @__PURE__ */ ((e) => (e.API = "api", e.ROW_DATA_CHANGED = "rowDataChanged", e.CHECKBOX_SELECTED = "checkboxSelected", e))(pB || {}), mB = ({ params: e, mode: t, label: n, radioName: r, rowId: i, disabled: a }) => {
42537
+ }, mB = /* @__PURE__ */ ((e) => (e.API = "api", e.ROW_DATA_CHANGED = "rowDataChanged", e.CHECKBOX_SELECTED = "checkboxSelected", e))(mB || {}), hB = ({ params: e, mode: t, label: n, radioName: r, rowId: i, disabled: a }) => {
42535
42538
  let o = e.node, [s, c] = F(() => !!o.isSelected()), [l, u] = F(() => o.selectable);
42536
42539
  k(() => {
42537
42540
  let e = () => c(!!o.isSelected()), t = () => u(o.selectable);
@@ -42540,22 +42543,22 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42540
42543
  };
42541
42544
  }, [o]);
42542
42545
  let d = a || !l, f = (e) => {
42543
- d || o.setSelected(e, t === WA.SINGLE, pB.CHECKBOX_SELECTED);
42546
+ d || o.setSelected(e, t === WA.SINGLE, mB.CHECKBOX_SELECTED);
42544
42547
  };
42545
- return t === WA.SINGLE ? /* @__PURE__ */ m(sB, {
42548
+ return t === WA.SINGLE ? /* @__PURE__ */ m(cB, {
42546
42549
  name: r,
42547
42550
  value: i,
42548
42551
  isSelected: s,
42549
42552
  disabled: d,
42550
42553
  "aria-label": n,
42551
42554
  onChange: () => f(!0)
42552
- }) : /* @__PURE__ */ m(oB, {
42555
+ }) : /* @__PURE__ */ m(sB, {
42553
42556
  isSelected: s,
42554
42557
  disabled: d,
42555
42558
  "aria-label": n,
42556
42559
  onChange: f
42557
42560
  });
42558
- }, hB = (e) => {
42561
+ }, gB = (e) => {
42559
42562
  let t = 0, n = 0;
42560
42563
  return e.forEachNodeAfterFilter((e) => {
42561
42564
  e.selectable !== !1 && (n++, e.isSelected() && t++);
@@ -42563,28 +42566,28 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42563
42566
  selected: t,
42564
42567
  selectable: n
42565
42568
  };
42566
- }, gB = ({ api: e, label: t }) => {
42567
- let [{ selected: n, selectable: r }, i] = F(() => hB(e));
42569
+ }, _B = ({ api: e, label: t }) => {
42570
+ let [{ selected: n, selectable: r }, i] = F(() => gB(e));
42568
42571
  k(() => {
42569
- let t = () => i(hB(e));
42572
+ let t = () => i(gB(e));
42570
42573
  return t(), e.addEventListener("selectionChanged", t), e.addEventListener("modelUpdated", t), () => {
42571
42574
  e.isDestroyed() || (e.removeEventListener("selectionChanged", t), e.removeEventListener("modelUpdated", t));
42572
42575
  };
42573
42576
  }, [e]);
42574
42577
  let a = D((t) => {
42575
- t ? e.selectAll("filtered", pB.CHECKBOX_SELECTED) : e.deselectAll("filtered", pB.CHECKBOX_SELECTED);
42578
+ t ? e.selectAll("filtered", mB.CHECKBOX_SELECTED) : e.deselectAll("filtered", mB.CHECKBOX_SELECTED);
42576
42579
  }, [e]);
42577
- return /* @__PURE__ */ m(oB, {
42580
+ return /* @__PURE__ */ m(sB, {
42578
42581
  isSelected: r > 0 && n === r,
42579
42582
  isIndeterminate: n > 0 && n < r,
42580
42583
  disabled: r === 0,
42581
42584
  "aria-label": t,
42582
42585
  onChange: a
42583
42586
  });
42584
- }, _B = 40, vB = {
42585
- minWidth: _B,
42586
- width: _B,
42587
- maxWidth: _B,
42587
+ }, vB = 40, yB = {
42588
+ minWidth: vB,
42589
+ width: vB,
42590
+ maxWidth: vB,
42588
42591
  resizable: !1,
42589
42592
  sortable: !1,
42590
42593
  filter: !1,
@@ -42593,7 +42596,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42593
42596
  suppressHeaderMenuButton: !0,
42594
42597
  suppressAutoSize: !0,
42595
42598
  suppressSizeToFit: !0
42596
- }, yB = "dial-kit-grid-selection", bB = 150, xB = 100, SB = ["rightAligned", "numericColumn"], CB = (e) => [e?.type ?? []].flat().some((e) => SB.includes(e)), wB = ({ columnDefs: e, rowData: t, additionalGridOptions: n, getContextMenuItems: r, className: i, ariaLabel: a = "Data grid", wrapCustomCellRenderers: o = !0, disabledRowIds: s, selectedRowIds: c, onSelectionChange: l, onGridApiChange: u, getRowId: d, alternateOddRowColors: f = !1, filterPlaceholder: p = "Enter value", emptyStateIcon: h, emptyStateTitle: g = "No items yet", emptyStateDescription: _ = "Items will appear here once they are added.", emptyStateAction: v, emptyStateLive: y = !1, filteredEmptyStateTitle: b = "No items found", filteredEmptyStateDescription: x = "Try a different search term or check your filters.", loading: S = !1, wrapperBorder: C = !0, withoutHeaderBorders: w = !1, allowDisabledContextMenu: T = !1, selectionMode: E, selectRowLabel: O, selectAllLabel: j = "Select all rows", colorScheme: M = JA.Light, appearance: I = YA.Default }) => {
42599
+ }, bB = "dial-kit-grid-selection", xB = 150, SB = 100, CB = ["rightAligned", "numericColumn"], wB = (e) => [e?.type ?? []].flat().some((e) => CB.includes(e)), TB = ({ columnDefs: e, rowData: t, additionalGridOptions: n, getContextMenuItems: r, className: i, ariaLabel: a = "Data grid", wrapCustomCellRenderers: o = !0, disabledRowIds: s, selectedRowIds: c, onSelectionChange: l, onGridApiChange: u, getRowId: d, alternateOddRowColors: f = !1, filterPlaceholder: p = "Enter value", emptyStateIcon: h, emptyStateTitle: g = "No items yet", emptyStateDescription: _ = "Items will appear here once they are added.", emptyStateAction: v, emptyStateLive: y = !1, filteredEmptyStateTitle: b = "No items found", filteredEmptyStateDescription: x = "Try a different search term or check your filters.", loading: S = !1, wrapperBorder: C = !0, withoutHeaderBorders: w = !1, allowDisabledContextMenu: T = !1, selectionMode: E, selectRowLabel: O, selectAllLabel: j = "Select all rows", colorScheme: M = JA.Light, appearance: I = YA.Default }) => {
42597
42600
  tj();
42598
42601
  let [ee, te] = F(), ne = HA(), re = UA(), ie = P(/* @__PURE__ */ new Set()), ae = P(void 0), L = `dial-kit-grid-selection-${A()}`, oe = P({
42599
42602
  getRowId: d,
@@ -42613,9 +42616,9 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42613
42616
  let t = oe.current.getRowId;
42614
42617
  return t ? t(e) : String(e.id ?? JSON.stringify(e));
42615
42618
  }, []), se = !!r, ce = !!o, le = I === YA.Chat, ue = N(() => pg.withPart(M === JA.Dark ? Xh : Jh).withParams({
42616
- ...fB,
42619
+ ...pB,
42617
42620
  browserColorScheme: M,
42618
- oddRowBackgroundColor: f ? fB.oddRowBackgroundColor : fB.backgroundColor,
42621
+ oddRowBackgroundColor: f ? pB.oddRowBackgroundColor : pB.backgroundColor,
42619
42622
  ...le ? {
42620
42623
  wrapperBorder: !1,
42621
42624
  rowBorder: !1,
@@ -42628,12 +42631,12 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42628
42631
  le
42629
42632
  ]), de = D((e) => {
42630
42633
  e.api.sizeColumnsToFit();
42631
- }, []), fe = ne || re || (c?.size ?? 0) > 0, pe = D((e) => !!e && !!s?.has(R(e)), [s, R]), me = D((e, t, n) => se ? /* @__PURE__ */ m($z, {
42634
+ }, []), fe = ne || re || (c?.size ?? 0) > 0, pe = D((e) => !!e && !!s?.has(R(e)), [s, R]), me = D((e, t, n) => se ? /* @__PURE__ */ m(eB, {
42632
42635
  trigger: [GA.ContextMenu],
42633
42636
  items: e.data ? oe.current.getContextMenuItems?.(e.data) ?? [] : [],
42634
42637
  anchorToMouse: !0,
42635
42638
  matchReferenceWidth: !0,
42636
- className: $("size-full", n && "cursor-not-allowed opacity-75", CB(e.colDef) && "text-end"),
42639
+ className: $("size-full", n && "cursor-not-allowed opacity-75", wB(e.colDef) && "text-end"),
42637
42640
  disabled: n && !T,
42638
42641
  children: /* @__PURE__ */ m("span", {
42639
42642
  className: "block min-w-0 max-w-full flex-1",
@@ -42642,27 +42645,27 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42642
42645
  }) : t, [se, T]), z = D((e) => {
42643
42646
  if (!e.data) return null;
42644
42647
  let t = pe(e.data);
42645
- return me(e, /* @__PURE__ */ m(tz, {
42648
+ return me(e, /* @__PURE__ */ m(nz, {
42646
42649
  text: e.value == null ? "" : String(e.value),
42647
- className: $("max-w-full dial-small-text text-primary", CB(e.colDef) && "text-end"),
42650
+ className: $("max-w-full dial-small-text text-primary", wB(e.colDef) && "text-end"),
42648
42651
  hideTooltip: t
42649
42652
  }), t);
42650
- }, [pe, me]), he = D((e) => e === pB.API || e === pB.ROW_DATA_CHANGED, []), ge = N(() => XA((e) => {
42653
+ }, [pe, me]), he = D((e) => e === mB.API || e === mB.ROW_DATA_CHANGED, []), ge = N(() => XA((e) => {
42651
42654
  let t = (e.selectedNodes ?? []).map((e) => e.data), n = new Set(t.map(R));
42652
42655
  ie.current = n, ae.current = e.source, !he(e.source) && oe.current.onSelectionChange?.(n, t);
42653
- }, xB), [he, R]), _e = N(() => {
42656
+ }, SB), [he, R]), _e = N(() => {
42654
42657
  if (E) return {
42655
- ...vB,
42656
- colId: yB,
42658
+ ...yB,
42659
+ colId: bB,
42657
42660
  headerName: "",
42658
- headerClass: uB,
42659
- cellClass: lB,
42660
- headerComponent: E === WA.MULTIPLE ? gB : void 0,
42661
+ headerClass: dB,
42662
+ cellClass: uB,
42663
+ headerComponent: E === WA.MULTIPLE ? _B : void 0,
42661
42664
  headerComponentParams: { label: j },
42662
42665
  cellRenderer: (e) => {
42663
42666
  if (!e.data) return null;
42664
42667
  let t = R(e.data);
42665
- return /* @__PURE__ */ m(mB, {
42668
+ return /* @__PURE__ */ m(hB, {
42666
42669
  params: e,
42667
42670
  mode: E,
42668
42671
  rowId: t,
@@ -42706,7 +42709,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42706
42709
  ve,
42707
42710
  _e
42708
42711
  ]), { defaultColDef: be, rowSelection: B, ...xe } = n ?? {}, Se = N(() => ({
42709
- minWidth: bB,
42712
+ minWidth: xB,
42710
42713
  resizable: !0,
42711
42714
  sortable: !0,
42712
42715
  floatingFilter: !0,
@@ -42758,14 +42761,19 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42758
42761
  E
42759
42762
  ]);
42760
42763
  k(() => {
42761
- ee && t && ie.current.size && ie.current.forEach((e) => {
42764
+ let e = c ?? ie.current;
42765
+ ee && t && e.size && e.forEach((e) => {
42762
42766
  let t = ee.getRowNode(e);
42763
- t && !t.isSelected() && t.setSelected(!0, !1, pB.API);
42767
+ t && !t.isSelected() && t.setSelected(!0, !1, mB.API);
42764
42768
  });
42765
- }, [ee, t]), k(() => {
42766
- ee && c && (ee.deselectAll("all", pB.API), c.forEach((e) => {
42769
+ }, [
42770
+ ee,
42771
+ t,
42772
+ c
42773
+ ]), k(() => {
42774
+ ee && c && (ee.deselectAll("all", mB.API), c.forEach((e) => {
42767
42775
  let t = ee.getRowNode(e);
42768
- t && !t.isSelected() && t.setSelected(!0, !1, pB.API);
42776
+ t && !t.isSelected() && t.setSelected(!0, !1, mB.API);
42769
42777
  }));
42770
42778
  }, [ee, c]);
42771
42779
  let De = D((e) => e.data ? R(e.data) : "", [R]);
@@ -42783,7 +42791,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42783
42791
  he,
42784
42792
  c
42785
42793
  ]), /* @__PURE__ */ m("div", {
42786
- className: $(cB, "size-full", E && "dial-kit-grid-with-selection", E && fe && "dial-kit-grid-selection-visible", w && "dial-kit-grid-without-header-borders", le && "dial-kit-grid-chat", i),
42794
+ className: $(lB, "size-full", E && "dial-kit-grid-with-selection", E && fe && "dial-kit-grid-selection-visible", w && "dial-kit-grid-without-header-borders", le && "dial-kit-grid-chat", i),
42787
42795
  role: "region",
42788
42796
  "aria-label": a,
42789
42797
  "aria-busy": S,
@@ -42803,7 +42811,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42803
42811
  loading: S,
42804
42812
  suppressCellFocus: !0,
42805
42813
  suppressDragLeaveHidesColumns: !0,
42806
- overlayComponentSelector: aB,
42814
+ overlayComponentSelector: oB,
42807
42815
  overlayComponentParams: we,
42808
42816
  rowData: t,
42809
42817
  rowSelection: Ee,
@@ -42813,7 +42821,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42813
42821
  })
42814
42822
  })
42815
42823
  });
42816
- }, TB = {
42824
+ }, EB = {
42817
42825
  heading: "_heading_1w6it_2",
42818
42826
  headingCount: "_headingCount_1w6it_6",
42819
42827
  name: "_name_1w6it_10",
@@ -42832,7 +42840,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42832
42840
  errorBadge: "_errorBadge_1w6it_67",
42833
42841
  neutralStatus: "_neutralStatus_1w6it_72",
42834
42842
  emptyGrid: "_emptyGrid_1w6it_83"
42835
- }, EB = 40, DB = ({ row: n, modelTypeLabel: i, typography: a }) => {
42843
+ }, DB = 40, OB = ({ row: n, modelTypeLabel: i, typography: a }) => {
42836
42844
  let { nameClassName: o = "dial-small-semi-text", modelTypeClassName: c = "dial-caption-lead-semi-text", versionClassName: l = "dial-small-text", avatarInitialsClassName: u = "dial-h2-text" } = a;
42837
42845
  return /* @__PURE__ */ h("div", {
42838
42846
  className: "flex size-full min-w-0 items-center gap-3 overflow-hidden",
@@ -42840,11 +42848,11 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42840
42848
  className: "shrink-0",
42841
42849
  children: /* @__PURE__ */ m(e, {
42842
42850
  src: n.avatarSrc,
42843
- size: EB,
42851
+ size: DB,
42844
42852
  initialsName: n.name,
42845
42853
  fallback: /* @__PURE__ */ m(t, {
42846
42854
  name: n.name,
42847
- size: EB,
42855
+ size: DB,
42848
42856
  className: "rounded-xl!",
42849
42857
  textClassName: u
42850
42858
  }),
@@ -42853,34 +42861,34 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42853
42861
  }), /* @__PURE__ */ h("div", {
42854
42862
  className: "flex min-w-0 flex-1 flex-col gap-0.5 overflow-hidden",
42855
42863
  children: [/* @__PURE__ */ m("span", {
42856
- className: r(c, TB.modelType),
42864
+ className: r(c, EB.modelType),
42857
42865
  children: n.typeLabel || i
42858
42866
  }), /* @__PURE__ */ h("div", {
42859
42867
  className: "flex min-w-0 items-center gap-1 overflow-hidden",
42860
42868
  children: [/* @__PURE__ */ m("span", {
42861
- className: r("min-w-0 truncate", o, TB.name),
42869
+ className: r("min-w-0 truncate", o, EB.name),
42862
42870
  title: n.name,
42863
42871
  children: n.name
42864
42872
  }), n.version != null && /* @__PURE__ */ m(s, {
42865
42873
  text: n.version,
42866
- className: r("max-w-[30%] shrink-0", l, TB.version)
42874
+ className: r("max-w-[30%] shrink-0", l, EB.version)
42867
42875
  })]
42868
42876
  })]
42869
42877
  })]
42870
42878
  });
42871
- }, OB = /* @__PURE__ */ function(e) {
42879
+ }, kB = /* @__PURE__ */ function(e) {
42872
42880
  return e.WithinLimits = "within-limits", e.RunningLow = "running-low", e.LimitReached = "limit-reached", e.NoLimit = "no-limit", e.Unavailable = "unavailable", e;
42873
- }({}), kB = /* @__PURE__ */ function(e) {
42881
+ }({}), AB = /* @__PURE__ */ function(e) {
42874
42882
  return e.Finite = "finite", e.Unlimited = "unlimited", e.Unavailable = "unavailable", e;
42875
- }({}), AB = (e) => {
42883
+ }({}), jB = (e) => {
42876
42884
  switch (e) {
42877
- case OB.RunningLow: return TB.progressFillWarning;
42878
- case OB.LimitReached: return TB.progressFillError;
42879
- default: return TB.progressFillDefault;
42885
+ case kB.RunningLow: return EB.progressFillWarning;
42886
+ case kB.LimitReached: return EB.progressFillError;
42887
+ default: return EB.progressFillDefault;
42880
42888
  }
42881
- }, jB = ({ cell: e, label: t, progressAriaLabel: n, showProgress: i, labels: a, typography: s }) => {
42889
+ }, MB = ({ cell: e, label: t, progressAriaLabel: n, showProgress: i, labels: a, typography: s }) => {
42882
42890
  let { valueClassName: c = "dial-small-text", secondaryValueClassName: l = "dial-tiny-text" } = s, u = /* @__PURE__ */ m("span", {
42883
- className: r(c, TB.value),
42891
+ className: r(c, EB.value),
42884
42892
  children: e.usedLabel
42885
42893
  });
42886
42894
  return /* @__PURE__ */ h("div", {
@@ -42890,28 +42898,28 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42890
42898
  className: "sr-only",
42891
42899
  children: [t, ": "]
42892
42900
  }),
42893
- e.kind === kB.Unlimited && /* @__PURE__ */ m("div", {
42901
+ e.kind === AB.Unlimited && /* @__PURE__ */ m("div", {
42894
42902
  className: "flex min-w-0 items-start gap-2",
42895
42903
  role: "group",
42896
42904
  "aria-label": n,
42897
42905
  children: /* @__PURE__ */ h("div", {
42898
42906
  className: "flex min-w-0 flex-col gap-1",
42899
42907
  children: [u, /* @__PURE__ */ m("span", {
42900
- className: r(l, TB.secondaryValue),
42908
+ className: r(l, EB.secondaryValue),
42901
42909
  children: e.supportingLabel ?? a.noLimitLabel
42902
42910
  })]
42903
42911
  })
42904
42912
  }),
42905
- e.kind === kB.Unavailable && /* @__PURE__ */ m("div", {
42913
+ e.kind === AB.Unavailable && /* @__PURE__ */ m("div", {
42906
42914
  className: "flex min-w-0 items-baseline gap-2",
42907
42915
  role: "group",
42908
42916
  "aria-label": n,
42909
42917
  children: /* @__PURE__ */ m("span", {
42910
- className: r(l, TB.secondaryValue),
42918
+ className: r(l, EB.secondaryValue),
42911
42919
  children: a.unavailableLabel
42912
42920
  })
42913
42921
  }),
42914
- e.kind === kB.Finite && /* @__PURE__ */ h("div", {
42922
+ e.kind === AB.Finite && /* @__PURE__ */ h("div", {
42915
42923
  className: "flex min-w-0 flex-col gap-2",
42916
42924
  children: [/* @__PURE__ */ m("div", {
42917
42925
  className: "flex min-w-0 items-baseline gap-2",
@@ -42920,7 +42928,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42920
42928
  children: /* @__PURE__ */ h("div", {
42921
42929
  className: "flex min-w-0 items-baseline gap-1 whitespace-nowrap",
42922
42930
  children: [u, /* @__PURE__ */ h("span", {
42923
- className: r(c, TB.secondaryValue),
42931
+ className: r(c, EB.secondaryValue),
42924
42932
  children: ["/ ", e.totalLabel]
42925
42933
  })]
42926
42934
  })
@@ -42928,21 +42936,21 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42928
42936
  value: Math.min(e.usedPercent ?? 0, 100),
42929
42937
  max: 100,
42930
42938
  size: o.Small,
42931
- className: r("h-1! w-full", TB.progressTrack, AB(e.status)),
42939
+ className: r("h-1! w-full", EB.progressTrack, jB(e.status)),
42932
42940
  "aria-label": n,
42933
42941
  "aria-valuetext": e.ariaLabel
42934
42942
  })]
42935
42943
  })
42936
42944
  ]
42937
42945
  });
42938
- }, MB = ({ cell: e, label: t, unavailableLabel: n, typography: i }) => {
42939
- let { secondaryValueClassName: a = "dial-tiny-text" } = i, o = e.kind === kB.Unavailable, s = o ? void 0 : e.supportingLabel, c = /* @__PURE__ */ h("div", {
42946
+ }, NB = ({ cell: e, label: t, unavailableLabel: n, typography: i }) => {
42947
+ let { secondaryValueClassName: a = "dial-tiny-text" } = i, o = e.kind === AB.Unavailable, s = o ? void 0 : e.supportingLabel, c = /* @__PURE__ */ h("div", {
42940
42948
  className: "flex min-w-0 items-baseline gap-1",
42941
42949
  children: [/* @__PURE__ */ h("span", {
42942
42950
  className: "sr-only",
42943
42951
  children: [t, ": "]
42944
42952
  }), /* @__PURE__ */ m("span", {
42945
- className: r("min-w-0 wrap-break-word", a, TB.secondaryValue),
42953
+ className: r("min-w-0 wrap-break-word", a, EB.secondaryValue),
42946
42954
  title: o ? n : e.usedLabel,
42947
42955
  children: o ? n : e.usedLabel
42948
42956
  })]
@@ -42950,26 +42958,26 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42950
42958
  return s ? /* @__PURE__ */ h("div", {
42951
42959
  className: "flex min-w-0 flex-col gap-0.5",
42952
42960
  children: [c, /* @__PURE__ */ m("span", {
42953
- className: r("min-w-0 wrap-break-word", a, TB.secondaryValue),
42961
+ className: r("min-w-0 wrap-break-word", a, EB.secondaryValue),
42954
42962
  children: s
42955
42963
  })]
42956
42964
  }) : c;
42957
- }, NB = ({ cell: e, periodLabel: t, labels: n, typography: r }) => /* @__PURE__ */ h("div", {
42965
+ }, PB = ({ cell: e, periodLabel: t, labels: n, typography: r }) => /* @__PURE__ */ h("div", {
42958
42966
  className: "flex size-full min-w-0 flex-col justify-center gap-2",
42959
- children: [/* @__PURE__ */ m(jB, {
42967
+ children: [/* @__PURE__ */ m(MB, {
42960
42968
  cell: e.tokens,
42961
42969
  label: n.tokensLabel,
42962
42970
  progressAriaLabel: `${t} ${n.tokensLabel}`,
42963
42971
  showProgress: !0,
42964
42972
  labels: n,
42965
42973
  typography: r
42966
- }), /* @__PURE__ */ m(MB, {
42974
+ }), /* @__PURE__ */ m(NB, {
42967
42975
  cell: e.cost,
42968
42976
  label: n.costLabel,
42969
42977
  unavailableLabel: n.unavailableLabel,
42970
42978
  typography: r
42971
42979
  })]
42972
- }), PB = ({ periodStatus: e }) => {
42980
+ }), FB = ({ periodStatus: e }) => {
42973
42981
  let { resetLabel: t, resetIsoValue: n, resetAriaLabel: o } = e;
42974
42982
  return t == null ? null : /* @__PURE__ */ m(f, {
42975
42983
  tooltip: /* @__PURE__ */ m("time", {
@@ -42981,7 +42989,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42981
42989
  role: "img",
42982
42990
  "aria-label": o ?? t,
42983
42991
  tabIndex: 0,
42984
- className: r("inline-flex size-11 shrink-0 items-center justify-center desktop:size-4", TB.secondaryValue),
42992
+ className: r("inline-flex size-11 shrink-0 items-center justify-center desktop:size-4", EB.secondaryValue),
42985
42993
  children: /* @__PURE__ */ m(UL, {
42986
42994
  "aria-hidden": !0,
42987
42995
  size: i.SM,
@@ -42989,10 +42997,10 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
42989
42997
  })
42990
42998
  })
42991
42999
  });
42992
- }, FB = ({ periodStatus: e }) => {
43000
+ }, IB = ({ periodStatus: e }) => {
42993
43001
  let { status: t, tooltipLabel: n } = e;
42994
- if (n == null || t !== OB.RunningLow && t !== OB.LimitReached) return null;
42995
- let i = t === OB.LimitReached ? qL : JL;
43002
+ if (n == null || t !== kB.RunningLow && t !== kB.LimitReached) return null;
43003
+ let i = t === kB.LimitReached ? qL : JL;
42996
43004
  return /* @__PURE__ */ m(f, {
42997
43005
  tooltip: n,
42998
43006
  asChild: !0,
@@ -43000,51 +43008,51 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
43000
43008
  role: "img",
43001
43009
  "aria-label": n,
43002
43010
  tabIndex: 0,
43003
- className: r("inline-flex size-11 shrink-0 items-center justify-center desktop:size-4", t === OB.LimitReached ? TB.errorIndicator : TB.warningIndicator),
43011
+ className: r("inline-flex size-11 shrink-0 items-center justify-center desktop:size-4", t === kB.LimitReached ? EB.errorIndicator : EB.warningIndicator),
43004
43012
  children: /* @__PURE__ */ m(i, {
43005
43013
  "aria-hidden": !0,
43006
43014
  size: 16
43007
43015
  })
43008
43016
  })
43009
43017
  });
43010
- }, IB = ({ label: e, periodStatus: t, className: n }) => /* @__PURE__ */ h("span", {
43018
+ }, LB = ({ label: e, periodStatus: t, className: n }) => /* @__PURE__ */ h("span", {
43011
43019
  className: "flex size-full min-w-0 items-center justify-between gap-2",
43012
43020
  children: [/* @__PURE__ */ h("span", {
43013
43021
  className: "flex min-w-0 items-center gap-1",
43014
43022
  children: [/* @__PURE__ */ m("span", {
43015
43023
  className: r("min-w-0 truncate", n),
43016
43024
  children: e
43017
- }), /* @__PURE__ */ m(PB, { periodStatus: t })]
43018
- }), /* @__PURE__ */ m(FB, { periodStatus: t })]
43019
- }), LB = (e, t) => {
43025
+ }), /* @__PURE__ */ m(FB, { periodStatus: t })]
43026
+ }), /* @__PURE__ */ m(IB, { periodStatus: t })]
43027
+ }), RB = (e, t) => {
43020
43028
  switch (e) {
43021
- case OB.WithinLimits: return t.defaultBadge;
43022
- case OB.RunningLow: return t.warningBadge;
43023
- case OB.LimitReached: return t.errorBadge;
43024
- case OB.NoLimit:
43025
- case OB.Unavailable: return;
43029
+ case kB.WithinLimits: return t.defaultBadge;
43030
+ case kB.RunningLow: return t.warningBadge;
43031
+ case kB.LimitReached: return t.errorBadge;
43032
+ case kB.NoLimit:
43033
+ case kB.Unavailable: return;
43026
43034
  }
43027
- }, RB = (e, t) => {
43035
+ }, zB = (e, t) => {
43028
43036
  switch (e) {
43029
- case OB.WithinLimits: return t.withinLimitsBadgeLabel;
43030
- case OB.RunningLow: return t.runningLowBadgeLabel;
43031
- case OB.LimitReached: return t.limitReachedBadgeLabel;
43032
- case OB.NoLimit: return t.noLimitBadgeLabel;
43033
- case OB.Unavailable: return t.unavailableBadgeLabel;
43034
- }
43035
- }, zB = ({ status: e, labels: t, typography: n }) => {
43036
- let { valueClassName: i = "dial-small-text", badgeClassName: a = "dial-caption-lead-semi-text" } = n, o = e !== OB.NoLimit && e !== OB.Unavailable;
43037
+ case kB.WithinLimits: return t.withinLimitsBadgeLabel;
43038
+ case kB.RunningLow: return t.runningLowBadgeLabel;
43039
+ case kB.LimitReached: return t.limitReachedBadgeLabel;
43040
+ case kB.NoLimit: return t.noLimitBadgeLabel;
43041
+ case kB.Unavailable: return t.unavailableBadgeLabel;
43042
+ }
43043
+ }, BB = ({ status: e, labels: t, typography: n }) => {
43044
+ let { valueClassName: i = "dial-small-text", badgeClassName: a = "dial-caption-lead-semi-text" } = n, o = e !== kB.NoLimit && e !== kB.Unavailable;
43037
43045
  return /* @__PURE__ */ m("div", {
43038
43046
  className: "flex size-full min-w-0 items-center",
43039
43047
  children: o ? /* @__PURE__ */ m("span", {
43040
- className: r("inline-flex h-6 shrink-0 items-center rounded-full px-2", a, LB(e, TB)),
43041
- children: RB(e, t)
43048
+ className: r("inline-flex h-6 shrink-0 items-center rounded-full px-2", a, RB(e, EB)),
43049
+ children: zB(e, t)
43042
43050
  }) : /* @__PURE__ */ m("span", {
43043
- className: r(i, TB.neutralStatus),
43044
- children: RB(e, t)
43051
+ className: r(i, EB.neutralStatus),
43052
+ children: zB(e, t)
43045
43053
  })
43046
43054
  });
43047
- }, BB = {
43055
+ }, VB = {
43048
43056
  domLayout: "autoHeight",
43049
43057
  suppressColumnVirtualisation: !0,
43050
43058
  headerHeight: 56,
@@ -43057,11 +43065,11 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
43057
43065
  suppressSizeToFit: !0,
43058
43066
  suppressMovable: !0
43059
43067
  }
43060
- }, VB = [
43068
+ }, HB = [
43061
43069
  "day",
43062
43070
  "week",
43063
43071
  "month"
43064
- ], HB = (e) => e.id, UB = ({ rows: e, labels: t, periodStatuses: i, styles: a }) => {
43072
+ ], UB = (e) => e.id, WB = ({ rows: e, labels: t, periodStatuses: i, styles: a }) => {
43065
43073
  let { colors: o, typography: s = {} } = a ?? {}, { headingClassName: c = "dial-body-semi-text", headingCountClassName: l = "dial-tiny-semi-text", columnHeaderClassName: u = "dial-caption-lead-semi-text" } = s, d = n({
43066
43074
  "--mls-heading": o?.headingColor,
43067
43075
  "--mls-heading-count": o?.headingCountColor,
@@ -43099,16 +43107,16 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
43099
43107
  headerComponent: n(t.itemColumnLabel),
43100
43108
  flex: 1.25,
43101
43109
  minWidth: 192,
43102
- cellRenderer: ({ data: e }) => e ? /* @__PURE__ */ m(DB, {
43110
+ cellRenderer: ({ data: e }) => e ? /* @__PURE__ */ m(OB, {
43103
43111
  row: e,
43104
43112
  modelTypeLabel: t.modelTypeLabel,
43105
43113
  typography: s
43106
43114
  }) : null
43107
43115
  },
43108
- ...VB.map((n) => ({
43116
+ ...HB.map((n) => ({
43109
43117
  colId: n,
43110
43118
  headerName: e[n],
43111
- headerComponent: () => /* @__PURE__ */ m(IB, {
43119
+ headerComponent: () => /* @__PURE__ */ m(LB, {
43112
43120
  label: e[n],
43113
43121
  periodStatus: i[n],
43114
43122
  className: u
@@ -43117,7 +43125,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
43117
43125
  minWidth: 160,
43118
43126
  cellRenderer: ({ data: r }) => {
43119
43127
  let i = r?.[n];
43120
- return i ? /* @__PURE__ */ m(NB, {
43128
+ return i ? /* @__PURE__ */ m(PB, {
43121
43129
  cell: i,
43122
43130
  periodLabel: e[n],
43123
43131
  labels: t,
@@ -43131,7 +43139,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
43131
43139
  headerComponent: n(t.statusColumnLabel),
43132
43140
  flex: .75,
43133
43141
  minWidth: 128,
43134
- cellRenderer: ({ data: e }) => e ? /* @__PURE__ */ m(zB, {
43142
+ cellRenderer: ({ data: e }) => e ? /* @__PURE__ */ m(BB, {
43135
43143
  status: e.status,
43136
43144
  labels: t,
43137
43145
  typography: s
@@ -43152,33 +43160,33 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
43152
43160
  children: /* @__PURE__ */ h("h3", {
43153
43161
  className: "m-0 flex items-center gap-2",
43154
43162
  children: [/* @__PURE__ */ m("span", {
43155
- className: r(c, TB.heading),
43163
+ className: r(c, EB.heading),
43156
43164
  children: t.headingLabel
43157
43165
  }), /* @__PURE__ */ m("span", {
43158
- className: r(l, TB.headingCount),
43166
+ className: r(l, EB.headingCount),
43159
43167
  children: e.length
43160
43168
  })]
43161
43169
  })
43162
- }), /* @__PURE__ */ m(wB, {
43170
+ }), /* @__PURE__ */ m(TB, {
43163
43171
  appearance: YA.Chat,
43164
43172
  columnDefs: f,
43165
43173
  rowData: e,
43166
- getRowId: HB,
43174
+ getRowId: UB,
43167
43175
  withoutHeaderBorders: !0,
43168
43176
  wrapCustomCellRenderers: !1,
43169
43177
  emptyStateTitle: t.emptyStateLabel,
43170
43178
  emptyStateDescription: "",
43171
- className: r(e.length === 0 && TB.emptyGrid),
43172
- additionalGridOptions: BB,
43179
+ className: r(e.length === 0 && EB.emptyGrid),
43180
+ additionalGridOptions: VB,
43173
43181
  ariaLabel: `${t.headingLabel} ${e.length}`
43174
43182
  })]
43175
43183
  });
43176
- }, WB = {
43184
+ }, GB = {
43177
43185
  heading: "_heading_10wkl_1",
43178
43186
  description: "_description_10wkl_5",
43179
43187
  title: "_title_10wkl_9",
43180
43188
  coverage: "_coverage_10wkl_13"
43181
- }, GB = ({ budget: e, titleClassName: t, coverageClassName: n, cardLabels: i, cardStyles: a }) => {
43189
+ }, KB = ({ budget: e, titleClassName: t, coverageClassName: n, cardLabels: i, cardStyles: a }) => {
43182
43190
  let o = A();
43183
43191
  return /* @__PURE__ */ h("div", {
43184
43192
  role: "group",
@@ -43188,10 +43196,10 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
43188
43196
  className: "flex flex-col gap-0.5",
43189
43197
  children: [/* @__PURE__ */ m("h3", {
43190
43198
  id: o,
43191
- className: r("m-0", t, WB.title),
43199
+ className: r("m-0", t, GB.title),
43192
43200
  children: e.title
43193
43201
  }), e.coverageLabel != null && /* @__PURE__ */ m("p", {
43194
- className: r("m-0", n, WB.coverage),
43202
+ className: r("m-0", n, GB.coverage),
43195
43203
  children: e.coverageLabel
43196
43204
  })]
43197
43205
  }), /* @__PURE__ */ m(me, {
@@ -43200,7 +43208,7 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
43200
43208
  styles: a
43201
43209
  })]
43202
43210
  });
43203
- }, KB = ({ budgets: e, labels: t, cardLabels: i, styles: a }) => {
43211
+ }, qB = ({ budgets: e, labels: t, cardLabels: i, styles: a }) => {
43204
43212
  let o = A(), { colors: s, typography: d, cards: f } = a ?? {}, { headingClassName: p = "dial-h3-text", descriptionClassName: g = "dial-small-text", titleClassName: _ = "dial-body-semi-text", coverageClassName: v = "dial-small-text" } = d ?? {};
43205
43213
  if (e.length === 0 && t.emptyStateLabel == null) return null;
43206
43214
  let y = n({
@@ -43218,10 +43226,10 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
43218
43226
  className: "flex flex-col gap-0.5",
43219
43227
  children: [/* @__PURE__ */ m("h2", {
43220
43228
  id: o,
43221
- className: r("m-0", p, WB.heading),
43229
+ className: r("m-0", p, GB.heading),
43222
43230
  children: t.headingLabel
43223
43231
  }), t.descriptionLabel != null && /* @__PURE__ */ m("p", {
43224
- className: r("m-0", g, WB.description),
43232
+ className: r("m-0", g, GB.description),
43225
43233
  children: t.descriptionLabel
43226
43234
  })]
43227
43235
  }),
@@ -43232,9 +43240,9 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
43232
43240
  role: "note"
43233
43241
  }),
43234
43242
  e.length === 0 ? /* @__PURE__ */ m("p", {
43235
- className: r("m-0", g, WB.description),
43243
+ className: r("m-0", g, GB.description),
43236
43244
  children: t.emptyStateLabel
43237
- }) : e.map((e) => /* @__PURE__ */ m(GB, {
43245
+ }) : e.map((e) => /* @__PURE__ */ m(KB, {
43238
43246
  budget: e,
43239
43247
  titleClassName: _,
43240
43248
  coverageClassName: v,
@@ -43245,4 +43253,4 @@ var Mz = "rounded bg-layer-0 shadow", Nz = ({ refs: e, floatingStyles: t, contex
43245
43253
  });
43246
43254
  };
43247
43255
  //#endregion
43248
- export { kB as ModelLimitMetricKind, OB as ModelLimitStatus, UB as ModelLimitsSection, KB as SpendingBudgetsSection, le as USAGE_DASHBOARD_CLASS, pe as UsageLimitCard, me as UsageLimitCardGroup, ue as UsageLimitStatus };
43256
+ export { AB as ModelLimitMetricKind, kB as ModelLimitStatus, WB as ModelLimitsSection, qB as SpendingBudgetsSection, le as USAGE_DASHBOARD_CLASS, pe as UsageLimitCard, me as UsageLimitCardGroup, ue as UsageLimitStatus };