@epam/ai-dial-usage-dashboard 1.4.0-dev.151 → 1.4.0-dev.154
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/index.js +278 -269
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -41026,6 +41026,7 @@ var ML = S(""), NL = () => O(ML), PL = /* @__PURE__ */ ((e) => (e.Top = "top", e
|
|
|
41026
41026
|
spinner: "dial-kit-spinner",
|
|
41027
41027
|
progressBar: "dial-kit-progress-bar",
|
|
41028
41028
|
skeleton: "dial-kit-skeleton",
|
|
41029
|
+
skeletonShimmer: "dial-kit-skeleton-shimmer",
|
|
41029
41030
|
notification: "dial-kit-notification",
|
|
41030
41031
|
noDataContent: "dial-kit-no-data-content",
|
|
41031
41032
|
loginScreen: "dial-kit-login-screen",
|
|
@@ -41152,7 +41153,7 @@ var ML = S(""), NL = () => O(ML), PL = /* @__PURE__ */ ((e) => (e.Top = "top", e
|
|
|
41152
41153
|
"data-placement": C.placement,
|
|
41153
41154
|
style: S,
|
|
41154
41155
|
...E(),
|
|
41155
|
-
className: $("z-interactive-tooltip max-w-[320px] rounded-xl bg-
|
|
41156
|
+
className: $("z-interactive-tooltip max-w-[320px] rounded-xl bg-control-inverted p-4 dial-small-text text-control-inverted shadow-md", g, u, IL.interactiveTooltip),
|
|
41156
41157
|
children: e
|
|
41157
41158
|
})
|
|
41158
41159
|
})
|
|
@@ -41243,7 +41244,7 @@ var ML = S(""), NL = () => O(ML), PL = /* @__PURE__ */ ((e) => (e.Top = "top", e
|
|
|
41243
41244
|
size: rR.SM,
|
|
41244
41245
|
stroke: nR,
|
|
41245
41246
|
"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 = "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
|
+
}), 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.Inverted = "inverted", 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
41248
|
let e = O(CR);
|
|
41248
41249
|
if (e == null) throw Error("Tooltip components must be wrapped in <TooltipContainer />");
|
|
41249
41250
|
return e;
|
|
@@ -41270,7 +41271,8 @@ var ML = S(""), NL = () => O(ML), PL = /* @__PURE__ */ ((e) => (e.Top = "top", e
|
|
|
41270
41271
|
delay: {
|
|
41271
41272
|
open: 500,
|
|
41272
41273
|
close: 0
|
|
41273
|
-
}
|
|
41274
|
+
},
|
|
41275
|
+
handleClose: jL()
|
|
41274
41276
|
}),
|
|
41275
41277
|
CL(u.context, { enabled: r == null }),
|
|
41276
41278
|
yL(u.context),
|
|
@@ -41385,9 +41387,10 @@ var ML = S(""), NL = () => O(ML), PL = /* @__PURE__ */ ((e) => (e.Top = "top", e
|
|
|
41385
41387
|
},
|
|
41386
41388
|
[_R.Static]: { [vR.Solid]: "dial-kit-static-solid-button" },
|
|
41387
41389
|
[_R.Starter]: { [vR.Outlined]: "dial-kit-starter-outlined-button" },
|
|
41390
|
+
[_R.Inverted]: { [vR.Link]: "dial-kit-inverted-link-button" },
|
|
41391
|
+
[_R.Tertiary]: { [vR.Ghost]: "dial-kit-tertiary-ghost-button" },
|
|
41388
41392
|
[_R.Success]: {},
|
|
41389
|
-
[_R.Secondary]: {}
|
|
41390
|
-
[_R.Tertiary]: {}
|
|
41393
|
+
[_R.Secondary]: {}
|
|
41391
41394
|
}, PR = (e) => {
|
|
41392
41395
|
e.preventDefault();
|
|
41393
41396
|
}, FR = (e, t, n) => {
|
|
@@ -41468,30 +41471,34 @@ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
|
|
|
41468
41471
|
}, QR = (e) => {
|
|
41469
41472
|
e.forEach((e) => {
|
|
41470
41473
|
let t = GR.get(e.target);
|
|
41471
|
-
t &&
|
|
41474
|
+
t && (KR.delete(t), t());
|
|
41472
41475
|
});
|
|
41473
41476
|
}, $R = () => {
|
|
41474
41477
|
window.removeEventListener("resize", ZR), qR?.disconnect(), qR = null, KR.clear(), JR !== null && (cancelAnimationFrame(JR), JR = null);
|
|
41475
|
-
}, ez = (e, t) =>
|
|
41478
|
+
}, ez = (e, t) => {
|
|
41479
|
+
qR && GR.has(e) ? (qR.unobserve(e), qR.observe(e)) : XR(t);
|
|
41480
|
+
}, tz = (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
41481
|
GR.delete(e), qR?.unobserve(e), KR.delete(t), GR.size === 0 && $R();
|
|
41477
|
-
}),
|
|
41482
|
+
}), nz = (e) => {
|
|
41478
41483
|
let t = P(null), [n, r] = F(!1), [i, a] = F(""), o = P(!1), s = D(() => {
|
|
41479
41484
|
let e = t.current;
|
|
41480
41485
|
e && (o.current && a(e.textContent ?? ""), r(e.scrollWidth > e.clientWidth));
|
|
41481
41486
|
}, []), c = D(() => XR(s), [s]);
|
|
41482
41487
|
return k(() => {
|
|
41483
41488
|
let e = t.current;
|
|
41484
|
-
if (e) return
|
|
41489
|
+
if (e) return tz(e, s);
|
|
41485
41490
|
}, [s]), k(() => {
|
|
41486
|
-
o.current = typeof e != "string"
|
|
41487
|
-
|
|
41491
|
+
o.current = typeof e != "string";
|
|
41492
|
+
let n = t.current;
|
|
41493
|
+
n && ez(n, s);
|
|
41494
|
+
}, [e, s]), {
|
|
41488
41495
|
ref: t,
|
|
41489
41496
|
isTruncated: n,
|
|
41490
41497
|
textContent: i,
|
|
41491
41498
|
remeasure: c
|
|
41492
41499
|
};
|
|
41493
|
-
},
|
|
41494
|
-
let { ref: s, isTruncated: c, textContent: l, remeasure: u } =
|
|
41500
|
+
}, rz = ({ text: e, className: t, contentClassName: n, hideTooltip: r = !1, id: i, customTooltipContent: a, ...o }) => {
|
|
41501
|
+
let { ref: s, isTruncated: c, textContent: l, remeasure: u } = nz(e), d = typeof e == "string" ? e : l, f = N(() => r || !c ? null : a ?? d, [
|
|
41495
41502
|
a,
|
|
41496
41503
|
d,
|
|
41497
41504
|
r,
|
|
@@ -41515,12 +41522,12 @@ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
|
|
|
41515
41522
|
children: f
|
|
41516
41523
|
})]
|
|
41517
41524
|
});
|
|
41518
|
-
},
|
|
41525
|
+
}, iz = /* @__PURE__ */ m(VL, {
|
|
41519
41526
|
size: rR.SM,
|
|
41520
41527
|
stroke: nR,
|
|
41521
41528
|
className: `shrink-0 ${IL.menuItemCheck}`,
|
|
41522
41529
|
"aria-hidden": !0
|
|
41523
|
-
}),
|
|
41530
|
+
}), az = ({ 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", ..._ }) => {
|
|
41524
41531
|
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", {
|
|
41525
41532
|
type: g,
|
|
41526
41533
|
disabled: f,
|
|
@@ -41536,7 +41543,7 @@ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
|
|
|
41536
41543
|
icon: t,
|
|
41537
41544
|
className: b
|
|
41538
41545
|
}),
|
|
41539
|
-
c ? /* @__PURE__ */ m(
|
|
41546
|
+
c ? /* @__PURE__ */ m(rz, {
|
|
41540
41547
|
text: e,
|
|
41541
41548
|
className: $(b, l)
|
|
41542
41549
|
}) : /* @__PURE__ */ m("span", {
|
|
@@ -41547,7 +41554,7 @@ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
|
|
|
41547
41554
|
className: $("shrink-0 text-secondary dial-small-text", f && "text-control-disable-primary"),
|
|
41548
41555
|
children: n
|
|
41549
41556
|
}),
|
|
41550
|
-
i && r === RL.Check &&
|
|
41557
|
+
i && r === RL.Check && iz
|
|
41551
41558
|
] }), o && /* @__PURE__ */ m("span", {
|
|
41552
41559
|
className: $("ml-auto shrink-0", b),
|
|
41553
41560
|
children: o
|
|
@@ -41558,31 +41565,31 @@ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
|
|
|
41558
41565
|
className: $(x, "has-[[data-menu-item-row]:focus-visible]:outline", "has-[[data-menu-item-row]:focus-visible]:outline-focus"),
|
|
41559
41566
|
children: [S, s]
|
|
41560
41567
|
}) : S;
|
|
41561
|
-
},
|
|
41562
|
-
[
|
|
41563
|
-
[
|
|
41564
|
-
},
|
|
41568
|
+
}, oz = /* @__PURE__ */ ((e) => (e.Description = "description", e.Error = "error", e))(oz || {}), sz = /* @__PURE__ */ ((e) => (e.Polite = "polite", e.Assertive = "assertive", e))(sz || {}), cz = /* @__PURE__ */ ((e) => (e.Div = "div", e.Span = "span", e.P = "p", e))(cz || {}), lz = {
|
|
41569
|
+
[sz.Polite]: "status",
|
|
41570
|
+
[sz.Assertive]: "alert"
|
|
41571
|
+
}, uz = ({ politeness: e = sz.Polite, visuallyHidden: t = !1, atomic: n, as: r = cz.Div, className: i, children: a, ...o }) => C(r, {
|
|
41565
41572
|
...o,
|
|
41566
|
-
role:
|
|
41573
|
+
role: lz[e],
|
|
41567
41574
|
"aria-live": e,
|
|
41568
41575
|
"aria-atomic": n,
|
|
41569
41576
|
className: $(t ? "sr-only" : "empty:sr-only", i, IL.liveRegion)
|
|
41570
|
-
}, a),
|
|
41577
|
+
}, a), dz = ({ text: e, className: t, variant: n = oz.Description, announce: r, ...i }) => {
|
|
41571
41578
|
let a = e ? /* @__PURE__ */ m("span", {
|
|
41572
41579
|
...i,
|
|
41573
|
-
className: $("dial-tiny-text", n ===
|
|
41580
|
+
className: $("dial-tiny-text", n === oz.Error ? "text-error" : "text-secondary", t, IL.captionText, n === oz.Error && IL.errorText),
|
|
41574
41581
|
children: e
|
|
41575
41582
|
}) : null;
|
|
41576
|
-
return r ? /* @__PURE__ */ m(
|
|
41583
|
+
return r ? /* @__PURE__ */ m(uz, {
|
|
41577
41584
|
politeness: r,
|
|
41578
|
-
as:
|
|
41585
|
+
as: cz.Span,
|
|
41579
41586
|
atomic: !0,
|
|
41580
41587
|
children: a
|
|
41581
41588
|
}) : a;
|
|
41582
|
-
},
|
|
41589
|
+
}, fz = ({ ...e }) => /* @__PURE__ */ m(dz, {
|
|
41583
41590
|
...e,
|
|
41584
|
-
variant:
|
|
41585
|
-
}),
|
|
41591
|
+
variant: oz.Error
|
|
41592
|
+
}), pz = ({ caption: e, onClick: t, "aria-label": n }) => {
|
|
41586
41593
|
if (!e) return null;
|
|
41587
41594
|
let r = $("text-secondary hover:text-control-accent-hover active:text-control-accent-active", "focus-visible:outline focus-visible:outline-focus", IL.infoButton);
|
|
41588
41595
|
return /* @__PURE__ */ m(RR, {
|
|
@@ -41597,7 +41604,7 @@ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
|
|
|
41597
41604
|
size: gR.Small,
|
|
41598
41605
|
tooltipProps: { tooltip: e }
|
|
41599
41606
|
});
|
|
41600
|
-
},
|
|
41607
|
+
}, mz = ({ label: e, required: t, className: n, containerClassName: r, caption: i, size: a = gR.Small, ...o }) => e ? /* @__PURE__ */ h("span", {
|
|
41601
41608
|
className: $("flex items-center gap-0.5", r, IL.label),
|
|
41602
41609
|
children: [/* @__PURE__ */ h("label", {
|
|
41603
41610
|
...o,
|
|
@@ -41613,21 +41620,21 @@ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
|
|
|
41613
41620
|
className: "sr-only",
|
|
41614
41621
|
children: "(required)"
|
|
41615
41622
|
})] })]
|
|
41616
|
-
}), /* @__PURE__ */ m(
|
|
41617
|
-
}) : null,
|
|
41623
|
+
}), /* @__PURE__ */ m(pz, { caption: i })]
|
|
41624
|
+
}) : null, hz = "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", gz = {
|
|
41618
41625
|
[gR.Small]: "size-[24px]",
|
|
41619
41626
|
[gR.Standard]: "size-[40px]",
|
|
41620
41627
|
[gR.Large]: "size-[48px]"
|
|
41621
|
-
},
|
|
41622
|
-
className: $("border-l border-tertiary",
|
|
41628
|
+
}, _z = ({ icon: e, onClick: t, disabled: n, size: r = gR.Standard, className: i }) => /* @__PURE__ */ m("div", {
|
|
41629
|
+
className: $("border-l border-tertiary", gz[r]),
|
|
41623
41630
|
children: /* @__PURE__ */ m(RR, {
|
|
41624
|
-
className: $(
|
|
41631
|
+
className: $(hz, r === gR.Small && "p-1", i),
|
|
41625
41632
|
icon: e,
|
|
41626
41633
|
onClick: t,
|
|
41627
41634
|
disabled: n,
|
|
41628
41635
|
size: r
|
|
41629
41636
|
})
|
|
41630
|
-
}),
|
|
41637
|
+
}), vz = [
|
|
41631
41638
|
"ArrowLeft",
|
|
41632
41639
|
"ArrowRight",
|
|
41633
41640
|
"ArrowUp",
|
|
@@ -41640,8 +41647,8 @@ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
|
|
|
41640
41647
|
"Home",
|
|
41641
41648
|
"End",
|
|
41642
41649
|
"Insert"
|
|
41643
|
-
],
|
|
41644
|
-
if ((t === "number" || n !== void 0 || r !== void 0) && !
|
|
41650
|
+
], yz = (e, t, n, r) => {
|
|
41651
|
+
if ((t === "number" || n !== void 0 || r !== void 0) && !vz.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("."))) {
|
|
41645
41652
|
if (!/^[0-9]$/.test(e.key)) {
|
|
41646
41653
|
e.preventDefault();
|
|
41647
41654
|
return;
|
|
@@ -41654,7 +41661,7 @@ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
|
|
|
41654
41661
|
}
|
|
41655
41662
|
}
|
|
41656
41663
|
}
|
|
41657
|
-
},
|
|
41664
|
+
}, bz = {
|
|
41658
41665
|
[gR.Small]: {
|
|
41659
41666
|
field: "dial-kit-input-small gap-x-1",
|
|
41660
41667
|
paddingStart: "pl-2",
|
|
@@ -41676,17 +41683,17 @@ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
|
|
|
41676
41683
|
stackGap: "gap-2",
|
|
41677
41684
|
postfixText: "dial-body-text"
|
|
41678
41685
|
}
|
|
41679
|
-
},
|
|
41686
|
+
}, xz = ({ labelProps: e, error: t, caption: n, id: r, containerClassName: i, size: a = gR.Standard, "aria-describedby": o, "aria-invalid": s, ...c }) => {
|
|
41680
41687
|
let l = A(), u = r ?? l, d = t ? `${u}-error` : void 0, f = !t && n ? `${u}-caption` : void 0;
|
|
41681
41688
|
return /* @__PURE__ */ h("div", {
|
|
41682
|
-
className: $("flex flex-col",
|
|
41683
|
-
children: [e && /* @__PURE__ */ m(
|
|
41689
|
+
className: $("flex flex-col", bz[a].stackGap, i),
|
|
41690
|
+
children: [e && /* @__PURE__ */ m(mz, {
|
|
41684
41691
|
...e,
|
|
41685
41692
|
htmlFor: u
|
|
41686
41693
|
}), /* @__PURE__ */ h("div", {
|
|
41687
41694
|
className: "flex flex-col gap-1",
|
|
41688
41695
|
children: [
|
|
41689
|
-
/* @__PURE__ */ m(
|
|
41696
|
+
/* @__PURE__ */ m(Sz, {
|
|
41690
41697
|
id: u,
|
|
41691
41698
|
size: a,
|
|
41692
41699
|
"aria-describedby": [
|
|
@@ -41697,19 +41704,19 @@ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
|
|
|
41697
41704
|
"aria-invalid": s ?? (t || c.invalid ? !0 : void 0),
|
|
41698
41705
|
...c
|
|
41699
41706
|
}),
|
|
41700
|
-
/* @__PURE__ */ m(
|
|
41707
|
+
/* @__PURE__ */ m(fz, {
|
|
41701
41708
|
id: d,
|
|
41702
41709
|
text: t
|
|
41703
41710
|
}),
|
|
41704
|
-
!t && /* @__PURE__ */ m(
|
|
41711
|
+
!t && /* @__PURE__ */ m(dz, {
|
|
41705
41712
|
id: f,
|
|
41706
41713
|
text: n
|
|
41707
41714
|
})
|
|
41708
41715
|
]
|
|
41709
41716
|
})]
|
|
41710
41717
|
});
|
|
41711
|
-
},
|
|
41712
|
-
let S =
|
|
41718
|
+
}, Sz = ({ 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 }) => {
|
|
41719
|
+
let S = bz[b], C = P(null), w = $F([u, C]), T = l === "number" || p !== void 0 || _ !== void 0;
|
|
41713
41720
|
k(() => {
|
|
41714
41721
|
let e = C.current;
|
|
41715
41722
|
if (!e || !T || t) return;
|
|
@@ -41725,7 +41732,7 @@ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
|
|
|
41725
41732
|
l
|
|
41726
41733
|
]);
|
|
41727
41734
|
let E = (e) => {
|
|
41728
|
-
|
|
41735
|
+
yz(e, l, p, _);
|
|
41729
41736
|
}, D = (e) => {
|
|
41730
41737
|
let t = e.currentTarget.value;
|
|
41731
41738
|
if (T && t !== "") {
|
|
@@ -41740,7 +41747,7 @@ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
|
|
|
41740
41747
|
children: [
|
|
41741
41748
|
n && /* @__PURE__ */ m("div", {
|
|
41742
41749
|
className: "border-r border-secondary",
|
|
41743
|
-
children: /* @__PURE__ */ m(
|
|
41750
|
+
children: /* @__PURE__ */ m(Sz, {
|
|
41744
41751
|
wrapperClassName: "!rounded-r-none",
|
|
41745
41752
|
className: "truncate",
|
|
41746
41753
|
value: n,
|
|
@@ -41769,7 +41776,7 @@ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
|
|
|
41769
41776
|
children: [" ", i]
|
|
41770
41777
|
}),
|
|
41771
41778
|
/* @__PURE__ */ m(HR, { icon: s }),
|
|
41772
|
-
v && /* @__PURE__ */ m(
|
|
41779
|
+
v && /* @__PURE__ */ m(_z, {
|
|
41773
41780
|
size: b,
|
|
41774
41781
|
...v,
|
|
41775
41782
|
disabled: t
|
|
@@ -41780,15 +41787,15 @@ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
|
|
|
41780
41787
|
tooltip: f || d,
|
|
41781
41788
|
children: O()
|
|
41782
41789
|
}) : O();
|
|
41783
|
-
},
|
|
41790
|
+
}, Cz = {
|
|
41784
41791
|
[gR.Small]: rR.SM,
|
|
41785
41792
|
[gR.Standard]: rR.MD,
|
|
41786
41793
|
[gR.Large]: rR.MD
|
|
41787
|
-
},
|
|
41794
|
+
}, wz = ({ 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 }) => {
|
|
41788
41795
|
let u = P(null), d = $F([c, u]), f = !!a && !i, p = D(() => {
|
|
41789
41796
|
o?.(void 0), u.current?.focus();
|
|
41790
41797
|
}, [o]);
|
|
41791
|
-
return /* @__PURE__ */ m(
|
|
41798
|
+
return /* @__PURE__ */ m(xz, {
|
|
41792
41799
|
...l,
|
|
41793
41800
|
size: e,
|
|
41794
41801
|
value: a,
|
|
@@ -41798,7 +41805,7 @@ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
|
|
|
41798
41805
|
inputRef: d,
|
|
41799
41806
|
wrapperClassName: $(n && "dial-kit-input-borderless", s, IL.search),
|
|
41800
41807
|
iconBefore: /* @__PURE__ */ m(GL, {
|
|
41801
|
-
size:
|
|
41808
|
+
size: Cz[e],
|
|
41802
41809
|
stroke: nR,
|
|
41803
41810
|
className: "text-secondary",
|
|
41804
41811
|
"aria-hidden": "true"
|
|
@@ -41814,18 +41821,18 @@ var VR = ({ ariaLabel: e = "Close", className: t, size: n = gR.Small, onClose: r
|
|
|
41814
41821
|
onClick: p
|
|
41815
41822
|
}) : void 0
|
|
41816
41823
|
});
|
|
41817
|
-
},
|
|
41824
|
+
}, Tz = "[role=\"menuitem\"], [role=\"menuitemcheckbox\"], [role=\"menuitemradio\"], [role=\"option\"]", Ez = [
|
|
41818
41825
|
"ArrowDown",
|
|
41819
41826
|
"ArrowUp",
|
|
41820
41827
|
"Home",
|
|
41821
41828
|
"End"
|
|
41822
|
-
],
|
|
41829
|
+
], Dz = (e) => Array.from(e.querySelectorAll(Tz)).filter((e) => !e.hasAttribute("disabled") && e.getAttribute("aria-disabled") !== "true"), Oz = (e) => e.ownerDocument.defaultView?.getComputedStyle(e).direction === "rtl", kz = (e) => Oz(e) ? "ArrowLeft" : "ArrowRight", Az = (e) => Oz(e) ? "ArrowRight" : "ArrowLeft", jz = (e) => e instanceof HTMLElement && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable), Mz = (e, t, n) => {
|
|
41823
41830
|
if (e === "Home") return 0;
|
|
41824
41831
|
if (e === "End") return n - 1;
|
|
41825
41832
|
let r = e === "ArrowDown" ? 1 : -1;
|
|
41826
41833
|
return t === -1 ? r === 1 ? 0 : n - 1 : (t + r + n) % n;
|
|
41827
41834
|
};
|
|
41828
|
-
function
|
|
41835
|
+
function Nz(e, t = "menu", n = !1, r, i) {
|
|
41829
41836
|
let [a, o] = F(!1), s = i?.open ?? a, c = i?.onOpenChange, l = i?.open, u = D((e) => {
|
|
41830
41837
|
l === void 0 && o(e), c?.(e);
|
|
41831
41838
|
}, [l, c]), [d, f] = F(!1), p = wI(), { refs: m, elements: h, floatingStyles: g, context: _ } = xL({
|
|
@@ -41844,7 +41851,7 @@ function Mz(e, t = "menu", n = !1, r, i) {
|
|
|
41844
41851
|
]
|
|
41845
41852
|
});
|
|
41846
41853
|
k(() => {
|
|
41847
|
-
h.domReference && f(
|
|
41854
|
+
h.domReference && f(Oz(h.domReference));
|
|
41848
41855
|
}, [h.domReference, s]);
|
|
41849
41856
|
let { getReferenceProps: v, getFloatingProps: y } = TL([
|
|
41850
41857
|
MI(_, {
|
|
@@ -41867,26 +41874,26 @@ function Mz(e, t = "menu", n = !1, r, i) {
|
|
|
41867
41874
|
DL(_, { role: t })
|
|
41868
41875
|
]), [b, x] = F(!1), S = h.floating;
|
|
41869
41876
|
k(() => {
|
|
41870
|
-
!s || !b || S == null || (
|
|
41877
|
+
!s || !b || S == null || (Dz(S)[0]?.focus(), x(!1));
|
|
41871
41878
|
}, [
|
|
41872
41879
|
s,
|
|
41873
41880
|
b,
|
|
41874
41881
|
S
|
|
41875
41882
|
]);
|
|
41876
41883
|
let C = D((e) => {
|
|
41877
|
-
n || e.key !==
|
|
41884
|
+
n || e.key !== kz(e.currentTarget) && e.key !== "Enter" && e.key !== " " || (e.preventDefault(), e.stopPropagation(), u(!0), x(!0));
|
|
41878
41885
|
}, [n, u]), w = D((e) => {
|
|
41879
|
-
if (e.defaultPrevented ||
|
|
41880
|
-
if (e.key ===
|
|
41886
|
+
if (e.defaultPrevented || jz(e.target)) return;
|
|
41887
|
+
if (e.key === Az(e.currentTarget)) {
|
|
41881
41888
|
e.preventDefault(), e.stopPropagation(), u(!1), m.domReference.current?.focus();
|
|
41882
41889
|
return;
|
|
41883
41890
|
}
|
|
41884
|
-
if (!
|
|
41891
|
+
if (!Ez.includes(e.key)) return;
|
|
41885
41892
|
e.preventDefault(), e.stopPropagation();
|
|
41886
|
-
let t =
|
|
41893
|
+
let t = Dz(e.currentTarget);
|
|
41887
41894
|
if (t.length === 0) return;
|
|
41888
41895
|
let n = e.currentTarget.ownerDocument.activeElement, r = t.findIndex((e) => e === n);
|
|
41889
|
-
t[
|
|
41896
|
+
t[Mz(e.key, r, t.length)]?.focus();
|
|
41890
41897
|
}, [m.domReference, u]);
|
|
41891
41898
|
return {
|
|
41892
41899
|
isOpen: s,
|
|
@@ -41904,7 +41911,7 @@ function Mz(e, t = "menu", n = !1, r, i) {
|
|
|
41904
41911
|
}), [y, w])
|
|
41905
41912
|
};
|
|
41906
41913
|
}
|
|
41907
|
-
var
|
|
41914
|
+
var Pz = "rounded bg-layer-0 shadow", Fz = ({ refs: e, floatingStyles: t, context: n, getFloatingProps: r, role: i, surfaceClassName: a, className: o, initialFocus: s = -1, children: c }) => {
|
|
41908
41915
|
let l = NL();
|
|
41909
41916
|
return /* @__PURE__ */ m(eL, { children: /* @__PURE__ */ m(dL, {
|
|
41910
41917
|
context: n,
|
|
@@ -41915,13 +41922,13 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
41915
41922
|
ref: e.setFloating,
|
|
41916
41923
|
style: t,
|
|
41917
41924
|
role: i,
|
|
41918
|
-
className: (0, kM.default)("z-floating overflow-auto text-primary focus-visible:outline-hidden", a ??
|
|
41925
|
+
className: (0, kM.default)("z-floating overflow-auto text-primary focus-visible:outline-hidden", a ?? Pz, l, o),
|
|
41919
41926
|
...r(),
|
|
41920
41927
|
children: c
|
|
41921
41928
|
})
|
|
41922
41929
|
}) });
|
|
41923
|
-
},
|
|
41924
|
-
let n = P(e.subMenuOpen ? 0 : -1), { isOpen: r, nodeId: i, refs: a, floatingStyles: o, context: s, getReferenceProps: c, getFloatingProps: l } =
|
|
41930
|
+
}, Iz = (e) => e.mark ?? (e.selectable ? RL.Checkbox : RL.None), Lz = (e) => e.selectable ? "menuitemcheckbox" : Iz(e) === RL.Check ? "menuitemradio" : "menuitem", Rz = ({ item: e, onRootClose: t }) => {
|
|
41931
|
+
let n = P(e.subMenuOpen ? 0 : -1), { isOpen: r, nodeId: i, refs: a, floatingStyles: o, context: s, getReferenceProps: c, getFloatingProps: l } = Nz(mR, "menu", !!e.disabled, e.subMenuHoverOptions, {
|
|
41925
41932
|
open: e.subMenuOpen,
|
|
41926
41933
|
onOpenChange: e.onSubMenuOpenChange
|
|
41927
41934
|
}), u = D((e) => (n) => {
|
|
@@ -41929,7 +41936,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
41929
41936
|
key: e.key,
|
|
41930
41937
|
domEvent: n
|
|
41931
41938
|
}), e.selectable || t());
|
|
41932
|
-
}, [t]), d = /* @__PURE__ */ m(
|
|
41939
|
+
}, [t]), d = /* @__PURE__ */ m(az, {
|
|
41933
41940
|
ref: a.setReference,
|
|
41934
41941
|
role: "menuitem",
|
|
41935
41942
|
"aria-haspopup": "menu",
|
|
@@ -41951,7 +41958,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
41951
41958
|
content: e.interactiveTooltip.content,
|
|
41952
41959
|
contentClassName: e.interactiveTooltip.contentClassName,
|
|
41953
41960
|
children: d
|
|
41954
|
-
}) : d, r && /* @__PURE__ */ m(
|
|
41961
|
+
}) : d, r && /* @__PURE__ */ m(Fz, {
|
|
41955
41962
|
refs: a,
|
|
41956
41963
|
floatingStyles: o,
|
|
41957
41964
|
context: s,
|
|
@@ -41962,13 +41969,13 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
41962
41969
|
children: e.renderSubMenu ? e.renderSubMenu() : /* @__PURE__ */ h(p, { children: [
|
|
41963
41970
|
e.menuHeader && (typeof e.menuHeader == "function" ? e.menuHeader() : e.menuHeader),
|
|
41964
41971
|
e.children.map((e) => {
|
|
41965
|
-
let t =
|
|
41972
|
+
let t = Lz(e), n = /* @__PURE__ */ m(az, {
|
|
41966
41973
|
role: t,
|
|
41967
41974
|
"aria-checked": t === "menuitem" ? void 0 : !!e.checked,
|
|
41968
|
-
"aria-current":
|
|
41975
|
+
"aria-current": Iz(e) === RL.Highlight && e.checked ? !0 : void 0,
|
|
41969
41976
|
"aria-disabled": !!e.disabled,
|
|
41970
41977
|
disabled: e.disabled,
|
|
41971
|
-
mark:
|
|
41978
|
+
mark: Iz(e),
|
|
41972
41979
|
selected: !!e.checked,
|
|
41973
41980
|
danger: e.danger,
|
|
41974
41981
|
icon: e.icon,
|
|
@@ -41991,15 +41998,15 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
41991
41998
|
] })
|
|
41992
41999
|
})]
|
|
41993
42000
|
});
|
|
41994
|
-
},
|
|
42001
|
+
}, zz = {
|
|
41995
42002
|
2: "line-clamp-2",
|
|
41996
42003
|
3: "line-clamp-3",
|
|
41997
42004
|
4: "line-clamp-4",
|
|
41998
42005
|
5: "line-clamp-5",
|
|
41999
42006
|
6: "line-clamp-6"
|
|
42000
|
-
},
|
|
42001
|
-
let a = $(
|
|
42002
|
-
if (!t.trim()) return /* @__PURE__ */ m(
|
|
42007
|
+
}, Bz = (e) => e === 1 ? "!truncate !whitespace-nowrap" : `${zz[e] ?? zz[2]} !whitespace-normal`, Vz = ({ text: e, query: t, markClassName: n, className: r, maxLines: i = 2 }) => {
|
|
42008
|
+
let a = $(Bz(i), r, IL.highlight);
|
|
42009
|
+
if (!t.trim()) return /* @__PURE__ */ m(rz, {
|
|
42003
42010
|
className: a,
|
|
42004
42011
|
text: e
|
|
42005
42012
|
});
|
|
@@ -42011,50 +42018,50 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42011
42018
|
}),
|
|
42012
42019
|
e.slice(o + t.length)
|
|
42013
42020
|
] });
|
|
42014
|
-
return /* @__PURE__ */ m(
|
|
42021
|
+
return /* @__PURE__ */ m(rz, {
|
|
42015
42022
|
className: a,
|
|
42016
42023
|
text: s
|
|
42017
42024
|
});
|
|
42018
|
-
},
|
|
42025
|
+
}, Hz = (e, t) => typeof e.label == "string" && e.label.toLocaleLowerCase().includes(t), Uz = (e) => e.type === KA.Divider || e.type === KA.PlainText, Wz = (e, t, n) => {
|
|
42019
42026
|
if (!e.children?.length) return n(e, t) ? e : null;
|
|
42020
42027
|
if (n(e, t)) return e;
|
|
42021
|
-
let r =
|
|
42028
|
+
let r = Gz(e.children, t, n);
|
|
42022
42029
|
return r.length > 0 ? {
|
|
42023
42030
|
...e,
|
|
42024
42031
|
children: r
|
|
42025
42032
|
} : null;
|
|
42026
|
-
},
|
|
42033
|
+
}, Gz = (e, t, n) => {
|
|
42027
42034
|
let r = [], i = [];
|
|
42028
42035
|
return e.forEach((e) => {
|
|
42029
|
-
if (
|
|
42036
|
+
if (Uz(e)) {
|
|
42030
42037
|
e.type === KA.Divider && (i = []), i.push(e);
|
|
42031
42038
|
return;
|
|
42032
42039
|
}
|
|
42033
|
-
let a =
|
|
42040
|
+
let a = Wz(e, t, n);
|
|
42034
42041
|
if (a == null) return;
|
|
42035
42042
|
let o = r.length === 0 ? i.filter((e) => e.type !== KA.Divider) : i;
|
|
42036
42043
|
r.push(...o, a), i = [];
|
|
42037
42044
|
}), r;
|
|
42038
|
-
},
|
|
42045
|
+
}, Kz = (e, t, n = Hz) => {
|
|
42039
42046
|
let r = t.trim().toLocaleLowerCase();
|
|
42040
|
-
return r ?
|
|
42041
|
-
},
|
|
42047
|
+
return r ? Gz(e, r, n) : e;
|
|
42048
|
+
}, qz = (e, t) => {
|
|
42042
42049
|
let n = t.trim();
|
|
42043
|
-
return n ? e.map((e) =>
|
|
42050
|
+
return n ? e.map((e) => Uz(e) ? e : {
|
|
42044
42051
|
...e,
|
|
42045
|
-
label: typeof e.label == "string" ? /* @__PURE__ */ m(
|
|
42052
|
+
label: typeof e.label == "string" ? /* @__PURE__ */ m(Vz, {
|
|
42046
42053
|
text: e.label,
|
|
42047
42054
|
query: n,
|
|
42048
42055
|
maxLines: 1
|
|
42049
42056
|
}) : e.label,
|
|
42050
|
-
children: e.children ?
|
|
42057
|
+
children: e.children ? qz(e.children, n) : void 0
|
|
42051
42058
|
}) : e;
|
|
42052
|
-
},
|
|
42059
|
+
}, Jz = "[role=\"menuitem\"], [role=\"menuitemcheckbox\"], [role=\"menuitemradio\"], [role=\"option\"]", Yz = (e) => !e.hasAttribute("disabled") && e.getAttribute("aria-disabled") !== "true", Xz = [
|
|
42053
42060
|
"ArrowDown",
|
|
42054
42061
|
"ArrowUp",
|
|
42055
42062
|
"Home",
|
|
42056
42063
|
"End"
|
|
42057
|
-
],
|
|
42064
|
+
], Zz = [
|
|
42058
42065
|
"a[href]",
|
|
42059
42066
|
"button:not([disabled])",
|
|
42060
42067
|
"input:not([disabled]):not([type=\"hidden\"])",
|
|
@@ -42062,12 +42069,12 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42062
42069
|
"textarea:not([disabled])",
|
|
42063
42070
|
"[contenteditable=\"true\"]",
|
|
42064
42071
|
"[tabindex]"
|
|
42065
|
-
].map((e) => `${e}:not([tabindex^="-"])`).join(", "),
|
|
42072
|
+
].map((e) => `${e}:not([tabindex^="-"])`).join(", "), Qz = (e) => e.matches(Zz) ? e : e.querySelector(Zz), $z = (e, t, n) => {
|
|
42066
42073
|
if (e === "Home") return 0;
|
|
42067
42074
|
if (e === "End") return n - 1;
|
|
42068
42075
|
let r = e === "ArrowDown" ? 1 : -1;
|
|
42069
42076
|
return t === -1 ? r === 1 ? 0 : n - 1 : (t + r + n) % n;
|
|
42070
|
-
},
|
|
42077
|
+
}, eB = (e) => "clientWidth" in e ? e.clientWidth : e.getBoundingClientRect?.()?.width ?? 0, tB = ({ 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 }) => {
|
|
42071
42078
|
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) => {
|
|
42072
42079
|
oe === void 0 && ve(e), R?.(e);
|
|
42073
42080
|
}, [oe, R]), [B, xe] = F(!0), Se = D((e, t, n) => {
|
|
@@ -42099,7 +42106,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42099
42106
|
XF({
|
|
42100
42107
|
padding: mR,
|
|
42101
42108
|
apply({ availableWidth: e, availableHeight: t, elements: n }) {
|
|
42102
|
-
let r = n.floating, i =
|
|
42109
|
+
let r = n.floating, i = eB(n.reference);
|
|
42103
42110
|
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`;
|
|
42104
42111
|
let a = Math.floor(t);
|
|
42105
42112
|
r.style.maxHeight = `${I ? Math.min(a, I) : a}px`;
|
|
@@ -42171,10 +42178,10 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42171
42178
|
let t = e.currentTarget;
|
|
42172
42179
|
if (!(re ?? Ne)) {
|
|
42173
42180
|
if (!t.contains(e.target)) return;
|
|
42174
|
-
let n = Array.from(t.querySelectorAll(
|
|
42181
|
+
let n = Array.from(t.querySelectorAll(Zz)), r = e.shiftKey ? n[0] : n.at(-1), i = t.ownerDocument.activeElement;
|
|
42175
42182
|
if (r && i !== r && i !== t) return;
|
|
42176
42183
|
}
|
|
42177
|
-
let n = Ee.domReference.current, r = n ?
|
|
42184
|
+
let n = Ee.domReference.current, r = n ? Qz(n) : null;
|
|
42178
42185
|
r ? (r.focus({ preventScroll: !0 }), setTimeout(() => {
|
|
42179
42186
|
Ee.floating.current?.isConnected && Se(!1);
|
|
42180
42187
|
})) : (e.preventDefault(), Se(!1));
|
|
@@ -42190,12 +42197,12 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42190
42197
|
Ve(e);
|
|
42191
42198
|
return;
|
|
42192
42199
|
}
|
|
42193
|
-
if (!(re ?? Ne) || !
|
|
42194
|
-
let t = Array.from(e.currentTarget.querySelectorAll(
|
|
42200
|
+
if (!(re ?? Ne) || !Xz.includes(e.key) || !e.currentTarget.contains(e.target) || e.target instanceof HTMLInputElement && (e.key === "Home" || e.key === "End")) return;
|
|
42201
|
+
let t = Array.from(e.currentTarget.querySelectorAll(Jz)).filter(Yz);
|
|
42195
42202
|
if (t.length === 0) return;
|
|
42196
42203
|
e.preventDefault();
|
|
42197
42204
|
let n = e.currentTarget.ownerDocument.activeElement, r = t.findIndex((e) => e === n);
|
|
42198
|
-
t[
|
|
42205
|
+
t[$z(e.key, r, t.length)]?.focus();
|
|
42199
42206
|
}, [
|
|
42200
42207
|
Ne,
|
|
42201
42208
|
re,
|
|
@@ -42208,7 +42215,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42208
42215
|
key: e.key,
|
|
42209
42216
|
domEvent: t
|
|
42210
42217
|
}), e.selectable || Se(!1));
|
|
42211
|
-
}, [n, Se]), We = N(() => !t || !L ? t : Kz(
|
|
42218
|
+
}, [n, Se]), We = N(() => !t || !L ? t : qz(Kz(t, ye, ue), ye), [
|
|
42212
42219
|
t,
|
|
42213
42220
|
L,
|
|
42214
42221
|
ye,
|
|
@@ -42221,7 +42228,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42221
42228
|
r && /* @__PURE__ */ m(p, { children: typeof r == "function" ? r() : r }),
|
|
42222
42229
|
L && /* @__PURE__ */ m("div", {
|
|
42223
42230
|
className: $("shrink-0 px-1 pt-1", IL.dropdownSearch),
|
|
42224
|
-
children: /* @__PURE__ */ m(
|
|
42231
|
+
children: /* @__PURE__ */ m(wz, {
|
|
42225
42232
|
value: ye,
|
|
42226
42233
|
placeholder: se,
|
|
42227
42234
|
"aria-label": se,
|
|
@@ -42247,11 +42254,11 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42247
42254
|
className: $("px-3 py-2 text-secondary dial-caption-text", e.className),
|
|
42248
42255
|
children: e.label
|
|
42249
42256
|
}, e.key);
|
|
42250
|
-
if (e.children?.length || e.renderSubMenu) return /* @__PURE__ */ m(
|
|
42257
|
+
if (e.children?.length || e.renderSubMenu) return /* @__PURE__ */ m(Rz, {
|
|
42251
42258
|
item: e,
|
|
42252
42259
|
onRootClose: () => Se(!1)
|
|
42253
42260
|
}, e.key);
|
|
42254
|
-
let t =
|
|
42261
|
+
let t = Iz(e), n = Lz(e), r = /* @__PURE__ */ m(az, {
|
|
42255
42262
|
role: n,
|
|
42256
42263
|
"aria-checked": n === "menuitem" ? void 0 : !!e.checked,
|
|
42257
42264
|
"aria-current": t === RL.Highlight && e.checked ? !0 : void 0,
|
|
@@ -42364,11 +42371,11 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42364
42371
|
})
|
|
42365
42372
|
})]
|
|
42366
42373
|
}) });
|
|
42367
|
-
},
|
|
42374
|
+
}, nB = [
|
|
42368
42375
|
12,
|
|
42369
42376
|
40,
|
|
42370
42377
|
68
|
|
42371
|
-
],
|
|
42378
|
+
], rB = () => /* @__PURE__ */ h("svg", {
|
|
42372
42379
|
width: 121,
|
|
42373
42380
|
height: 97,
|
|
42374
42381
|
viewBox: "0 0 121 97",
|
|
@@ -42382,7 +42389,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42382
42389
|
height: 96,
|
|
42383
42390
|
rx: 16,
|
|
42384
42391
|
className: "fill-layer-0 stroke-tertiary"
|
|
42385
|
-
}),
|
|
42392
|
+
}), nB.map((e) => /* @__PURE__ */ h("g", { children: [
|
|
42386
42393
|
/* @__PURE__ */ m("circle", {
|
|
42387
42394
|
cx: 20.5,
|
|
42388
42395
|
cy: e + 8.5,
|
|
@@ -42406,11 +42413,11 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42406
42413
|
className: "fill-layer-2"
|
|
42407
42414
|
})
|
|
42408
42415
|
] }, e))]
|
|
42409
|
-
}),
|
|
42416
|
+
}), iB = ({ title: e, description: t, icon: n, action: r, live: i = !1, className: a, titleClassName: o, descriptionClassName: s }) => /* @__PURE__ */ h("div", {
|
|
42410
42417
|
role: i ? "status" : void 0,
|
|
42411
42418
|
className: $("flex size-full flex-col items-center justify-center px-4 text-center", a, IL.noDataContent),
|
|
42412
42419
|
children: [
|
|
42413
|
-
n ?? /* @__PURE__ */ m(
|
|
42420
|
+
n ?? /* @__PURE__ */ m(rB, {}),
|
|
42414
42421
|
/* @__PURE__ */ m("span", {
|
|
42415
42422
|
className: $("dial-small-semi-text mt-6 text-primary", o),
|
|
42416
42423
|
children: e
|
|
@@ -42424,7 +42431,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42424
42431
|
children: r
|
|
42425
42432
|
})
|
|
42426
42433
|
]
|
|
42427
|
-
}),
|
|
42434
|
+
}), aB = ["noRows", "noMatchingRows"], oB = ({ overlayType: e, empty: t, filtered: n }) => /* @__PURE__ */ m(iB, { ...e === "noMatchingRows" ? n : t }), sB = ({ overlayType: e }) => aB.includes(e) ? { component: oB } : void 0, cB = ({ id: e, labelProps: t, isSelected: n = !1, isIndeterminate: r = !1, invalid: i = !1, disabled: a, onChange: o, caption: s, className: c, boxClassName: l, ...u }) => {
|
|
42428
42435
|
let d = A(), f = e ?? d, p = s ? `${f}-caption` : void 0, g = D((e) => {
|
|
42429
42436
|
o?.(e.target.checked);
|
|
42430
42437
|
}, [o]), _ = D((e) => {
|
|
@@ -42457,7 +42464,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42457
42464
|
disabled: a,
|
|
42458
42465
|
className: l
|
|
42459
42466
|
}),
|
|
42460
|
-
t && /* @__PURE__ */ m(
|
|
42467
|
+
t && /* @__PURE__ */ m(mz, {
|
|
42461
42468
|
size: gR.Standard,
|
|
42462
42469
|
...t,
|
|
42463
42470
|
htmlFor: f,
|
|
@@ -42470,7 +42477,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42470
42477
|
children: s
|
|
42471
42478
|
})]
|
|
42472
42479
|
});
|
|
42473
|
-
},
|
|
42480
|
+
}, lB = ({ id: e, name: t, value: n, labelProps: r, isSelected: i = !1, disabled: a, onChange: o, caption: s, className: c, ...l }) => {
|
|
42474
42481
|
let u = A(), d = e ?? u, f = s ? `${d}-caption` : void 0, p = D((e) => {
|
|
42475
42482
|
e.target.checked && o?.(n);
|
|
42476
42483
|
}, [o, n]);
|
|
@@ -42497,7 +42504,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42497
42504
|
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")),
|
|
42498
42505
|
children: i && /* @__PURE__ */ m("span", { className: $("size-3 rounded-full", a ? "bg-control-disable-secondary" : "bg-control-accent") })
|
|
42499
42506
|
}),
|
|
42500
|
-
r && /* @__PURE__ */ m(
|
|
42507
|
+
r && /* @__PURE__ */ m(mz, {
|
|
42501
42508
|
size: gR.Standard,
|
|
42502
42509
|
...r,
|
|
42503
42510
|
htmlFor: d,
|
|
@@ -42510,16 +42517,16 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42510
42517
|
children: s
|
|
42511
42518
|
})]
|
|
42512
42519
|
});
|
|
42513
|
-
},
|
|
42520
|
+
}, uB = "dial-kit-grid", dB = "dial-kit-grid-row-select", fB = "dial-kit-grid-header-select", pB = "0.5px solid var(--stroke-tertiary, #E0E6F0)", mB = {
|
|
42514
42521
|
accentColor: "var(--bg-control-accent, #1D4ED8)",
|
|
42515
42522
|
backgroundColor: "var(--bg-layer-raised, #FCFCFC)",
|
|
42516
42523
|
oddRowBackgroundColor: "var(--bg-layer-sunken, #EEF1F7)",
|
|
42517
42524
|
selectedRowBackgroundColor: "var(--bg-control-accent-alpha-active-subtle, #2764D914)",
|
|
42518
42525
|
rowHoverColor: "var(--bg-control-accent-alpha-hover-subtle, #2764D90A)",
|
|
42519
42526
|
borderColor: "var(--stroke-tertiary, #E0E6F0)",
|
|
42520
|
-
rowBorder:
|
|
42527
|
+
rowBorder: pB,
|
|
42521
42528
|
headerRowBorder: !1,
|
|
42522
|
-
headerColumnBorder:
|
|
42529
|
+
headerColumnBorder: pB,
|
|
42523
42530
|
headerColumnBorderHeight: 12,
|
|
42524
42531
|
chromeBackgroundColor: "var(--bg-layer-base, #F5F7FA)",
|
|
42525
42532
|
headerBackgroundColor: "var(--bg-layer-raised, #FCFCFC)",
|
|
@@ -42534,31 +42541,31 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42534
42541
|
borderRadius: 4,
|
|
42535
42542
|
inputBorderRadius: 8,
|
|
42536
42543
|
wrapperBorderRadius: 8
|
|
42537
|
-
},
|
|
42538
|
-
let
|
|
42544
|
+
}, hB = /* @__PURE__ */ ((e) => (e.API = "api", e.ROW_DATA_CHANGED = "rowDataChanged", e.CHECKBOX_SELECTED = "checkboxSelected", e))(hB || {}), gB = ({ params: e, mode: t, label: n, radioName: r, rowId: i, disabled: a, hideWhenDisabled: o }) => {
|
|
42545
|
+
let s = e.node, [c, l] = F(() => !!s.isSelected()), [u, d] = F(() => s.selectable);
|
|
42539
42546
|
k(() => {
|
|
42540
|
-
let e = () =>
|
|
42541
|
-
return e(), t(),
|
|
42542
|
-
|
|
42547
|
+
let e = () => l(!!s.isSelected()), t = () => d(s.selectable);
|
|
42548
|
+
return e(), t(), s.addEventListener("rowSelected", e), s.addEventListener("selectableChanged", t), () => {
|
|
42549
|
+
s.removeEventListener("rowSelected", e), s.removeEventListener("selectableChanged", t);
|
|
42543
42550
|
};
|
|
42544
|
-
}, [
|
|
42545
|
-
let
|
|
42546
|
-
|
|
42551
|
+
}, [s]);
|
|
42552
|
+
let f = a || !u, p = (e) => {
|
|
42553
|
+
f || s.setSelected(e, t === WA.SINGLE, hB.CHECKBOX_SELECTED);
|
|
42547
42554
|
};
|
|
42548
|
-
return t === WA.SINGLE ? /* @__PURE__ */ m(
|
|
42555
|
+
return f && o ? null : t === WA.SINGLE ? /* @__PURE__ */ m(lB, {
|
|
42549
42556
|
name: r,
|
|
42550
42557
|
value: i,
|
|
42551
|
-
isSelected:
|
|
42552
|
-
disabled:
|
|
42558
|
+
isSelected: c,
|
|
42559
|
+
disabled: f,
|
|
42553
42560
|
"aria-label": n,
|
|
42554
|
-
onChange: () =>
|
|
42555
|
-
}) : /* @__PURE__ */ m(
|
|
42556
|
-
isSelected:
|
|
42557
|
-
disabled:
|
|
42561
|
+
onChange: () => p(!0)
|
|
42562
|
+
}) : /* @__PURE__ */ m(cB, {
|
|
42563
|
+
isSelected: c,
|
|
42564
|
+
disabled: f,
|
|
42558
42565
|
"aria-label": n,
|
|
42559
|
-
onChange:
|
|
42566
|
+
onChange: p
|
|
42560
42567
|
});
|
|
42561
|
-
},
|
|
42568
|
+
}, _B = (e) => {
|
|
42562
42569
|
let t = 0, n = 0;
|
|
42563
42570
|
return e.forEachNodeAfterFilter((e) => {
|
|
42564
42571
|
e.selectable !== !1 && (n++, e.isSelected() && t++);
|
|
@@ -42566,28 +42573,28 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42566
42573
|
selected: t,
|
|
42567
42574
|
selectable: n
|
|
42568
42575
|
};
|
|
42569
|
-
},
|
|
42570
|
-
let [{ selected: n, selectable: r }, i] = F(() =>
|
|
42576
|
+
}, vB = ({ api: e, label: t }) => {
|
|
42577
|
+
let [{ selected: n, selectable: r }, i] = F(() => _B(e));
|
|
42571
42578
|
k(() => {
|
|
42572
|
-
let t = () => i(
|
|
42579
|
+
let t = () => i(_B(e));
|
|
42573
42580
|
return t(), e.addEventListener("selectionChanged", t), e.addEventListener("modelUpdated", t), () => {
|
|
42574
42581
|
e.isDestroyed() || (e.removeEventListener("selectionChanged", t), e.removeEventListener("modelUpdated", t));
|
|
42575
42582
|
};
|
|
42576
42583
|
}, [e]);
|
|
42577
42584
|
let a = D((t) => {
|
|
42578
|
-
t ? e.selectAll("filtered",
|
|
42585
|
+
t ? e.selectAll("filtered", hB.CHECKBOX_SELECTED) : e.deselectAll("filtered", hB.CHECKBOX_SELECTED);
|
|
42579
42586
|
}, [e]);
|
|
42580
|
-
return /* @__PURE__ */ m(
|
|
42587
|
+
return /* @__PURE__ */ m(cB, {
|
|
42581
42588
|
isSelected: r > 0 && n === r,
|
|
42582
42589
|
isIndeterminate: n > 0 && n < r,
|
|
42583
42590
|
disabled: r === 0,
|
|
42584
42591
|
"aria-label": t,
|
|
42585
42592
|
onChange: a
|
|
42586
42593
|
});
|
|
42587
|
-
},
|
|
42588
|
-
minWidth:
|
|
42589
|
-
width:
|
|
42590
|
-
maxWidth:
|
|
42594
|
+
}, yB = 40, bB = {
|
|
42595
|
+
minWidth: yB,
|
|
42596
|
+
width: yB,
|
|
42597
|
+
maxWidth: yB,
|
|
42591
42598
|
resizable: !1,
|
|
42592
42599
|
sortable: !1,
|
|
42593
42600
|
filter: !1,
|
|
@@ -42596,7 +42603,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42596
42603
|
suppressHeaderMenuButton: !0,
|
|
42597
42604
|
suppressAutoSize: !0,
|
|
42598
42605
|
suppressSizeToFit: !0
|
|
42599
|
-
},
|
|
42606
|
+
}, xB = "dial-kit-grid-selection", SB = 150, CB = 100, wB = ["rightAligned", "numericColumn"], TB = (e) => [e?.type ?? []].flat().some((e) => wB.includes(e)), EB = ({ 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 }) => {
|
|
42600
42607
|
tj();
|
|
42601
42608
|
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({
|
|
42602
42609
|
getRowId: d,
|
|
@@ -42616,9 +42623,9 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42616
42623
|
let t = oe.current.getRowId;
|
|
42617
42624
|
return t ? t(e) : String(e.id ?? JSON.stringify(e));
|
|
42618
42625
|
}, []), se = !!r, ce = !!o, le = I === YA.Chat, ue = N(() => pg.withPart(M === JA.Dark ? Xh : Jh).withParams({
|
|
42619
|
-
...
|
|
42626
|
+
...mB,
|
|
42620
42627
|
browserColorScheme: M,
|
|
42621
|
-
oddRowBackgroundColor: f ?
|
|
42628
|
+
oddRowBackgroundColor: f ? mB.oddRowBackgroundColor : mB.backgroundColor,
|
|
42622
42629
|
...le ? {
|
|
42623
42630
|
wrapperBorder: !1,
|
|
42624
42631
|
rowBorder: !1,
|
|
@@ -42631,12 +42638,12 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42631
42638
|
le
|
|
42632
42639
|
]), de = D((e) => {
|
|
42633
42640
|
e.api.sizeColumnsToFit();
|
|
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(
|
|
42641
|
+
}, []), 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(tB, {
|
|
42635
42642
|
trigger: [GA.ContextMenu],
|
|
42636
42643
|
items: e.data ? oe.current.getContextMenuItems?.(e.data) ?? [] : [],
|
|
42637
42644
|
anchorToMouse: !0,
|
|
42638
42645
|
matchReferenceWidth: !0,
|
|
42639
|
-
className: $("size-full", n && "cursor-not-allowed opacity-75",
|
|
42646
|
+
className: $("size-full", n && "cursor-not-allowed opacity-75", TB(e.colDef) && "text-end"),
|
|
42640
42647
|
disabled: n && !T,
|
|
42641
42648
|
children: /* @__PURE__ */ m("span", {
|
|
42642
42649
|
className: "block min-w-0 max-w-full flex-1",
|
|
@@ -42645,33 +42652,34 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42645
42652
|
}) : t, [se, T]), z = D((e) => {
|
|
42646
42653
|
if (!e.data) return null;
|
|
42647
42654
|
let t = pe(e.data);
|
|
42648
|
-
return me(e, /* @__PURE__ */ m(
|
|
42655
|
+
return me(e, /* @__PURE__ */ m(rz, {
|
|
42649
42656
|
text: e.value == null ? "" : String(e.value),
|
|
42650
|
-
className: $("max-w-full dial-small-text text-primary",
|
|
42657
|
+
className: $("max-w-full dial-small-text text-primary", TB(e.colDef) && "text-end"),
|
|
42651
42658
|
hideTooltip: t
|
|
42652
42659
|
}), t);
|
|
42653
|
-
}, [pe, me]), he = D((e) => e ===
|
|
42660
|
+
}, [pe, me]), he = D((e) => e === hB.API || e === hB.ROW_DATA_CHANGED, []), ge = N(() => XA((e) => {
|
|
42654
42661
|
let t = (e.selectedNodes ?? []).map((e) => e.data), n = new Set(t.map(R));
|
|
42655
42662
|
ie.current = n, ae.current = e.source, !he(e.source) && oe.current.onSelectionChange?.(n, t);
|
|
42656
|
-
},
|
|
42663
|
+
}, CB), [he, R]), _e = typeof n?.rowSelection == "object" && n.rowSelection.hideDisabledCheckboxes === !0, ve = N(() => {
|
|
42657
42664
|
if (E) return {
|
|
42658
|
-
...
|
|
42659
|
-
colId:
|
|
42665
|
+
...bB,
|
|
42666
|
+
colId: xB,
|
|
42660
42667
|
headerName: "",
|
|
42661
|
-
headerClass:
|
|
42662
|
-
cellClass:
|
|
42663
|
-
headerComponent: E === WA.MULTIPLE ?
|
|
42668
|
+
headerClass: fB,
|
|
42669
|
+
cellClass: dB,
|
|
42670
|
+
headerComponent: E === WA.MULTIPLE ? vB : void 0,
|
|
42664
42671
|
headerComponentParams: { label: j },
|
|
42665
42672
|
cellRenderer: (e) => {
|
|
42666
42673
|
if (!e.data) return null;
|
|
42667
42674
|
let t = R(e.data);
|
|
42668
|
-
return /* @__PURE__ */ m(
|
|
42675
|
+
return /* @__PURE__ */ m(gB, {
|
|
42669
42676
|
params: e,
|
|
42670
42677
|
mode: E,
|
|
42671
42678
|
rowId: t,
|
|
42672
42679
|
radioName: L,
|
|
42673
42680
|
label: oe.current.selectRowLabel?.(e.data) ?? "Select row",
|
|
42674
|
-
disabled: s?.has(t)
|
|
42681
|
+
disabled: s?.has(t),
|
|
42682
|
+
hideWhenDisabled: _e
|
|
42675
42683
|
});
|
|
42676
42684
|
}
|
|
42677
42685
|
};
|
|
@@ -42680,8 +42688,9 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42680
42688
|
j,
|
|
42681
42689
|
R,
|
|
42682
42690
|
s,
|
|
42683
|
-
L
|
|
42684
|
-
|
|
42691
|
+
L,
|
|
42692
|
+
_e
|
|
42693
|
+
]), ye = D((e) => {
|
|
42685
42694
|
if (!e.cellRenderer) return {
|
|
42686
42695
|
...e,
|
|
42687
42696
|
cellRenderer: z
|
|
@@ -42700,16 +42709,16 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42700
42709
|
pe,
|
|
42701
42710
|
z,
|
|
42702
42711
|
me
|
|
42703
|
-
]),
|
|
42704
|
-
let t = ce ? (e ?? []).map(
|
|
42705
|
-
return
|
|
42712
|
+
]), be = N(() => {
|
|
42713
|
+
let t = ce ? (e ?? []).map(ye) : e ?? [];
|
|
42714
|
+
return ve ? [ve, ...t] : t;
|
|
42706
42715
|
}, [
|
|
42707
42716
|
e,
|
|
42708
42717
|
ce,
|
|
42709
|
-
|
|
42710
|
-
|
|
42711
|
-
]), { defaultColDef:
|
|
42712
|
-
minWidth:
|
|
42718
|
+
ye,
|
|
42719
|
+
ve
|
|
42720
|
+
]), { defaultColDef: B, rowSelection: xe, ...Se } = n ?? {}, Ce = N(() => ({
|
|
42721
|
+
minWidth: SB,
|
|
42713
42722
|
resizable: !0,
|
|
42714
42723
|
sortable: !0,
|
|
42715
42724
|
floatingFilter: !0,
|
|
@@ -42719,14 +42728,14 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42719
42728
|
buttons: ["reset"]
|
|
42720
42729
|
},
|
|
42721
42730
|
comparator: QA,
|
|
42722
|
-
...$A(
|
|
42723
|
-
}), [p,
|
|
42731
|
+
...$A(B)
|
|
42732
|
+
}), [p, B]), we = (e) => {
|
|
42724
42733
|
e.api.sizeColumnsToFit(), te(e.api), n?.onGridReady?.(e), u?.(e.api);
|
|
42725
42734
|
};
|
|
42726
42735
|
k(() => {
|
|
42727
42736
|
ee && t && ee.setGridOption("rowData", t);
|
|
42728
42737
|
}, [ee, t]);
|
|
42729
|
-
let
|
|
42738
|
+
let Te = N(() => ({
|
|
42730
42739
|
empty: {
|
|
42731
42740
|
title: g,
|
|
42732
42741
|
description: _,
|
|
@@ -42748,15 +42757,15 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42748
42757
|
y,
|
|
42749
42758
|
b,
|
|
42750
42759
|
x
|
|
42751
|
-
]),
|
|
42760
|
+
]), Ee = typeof xe == "object" ? xe : void 0, De = N(() => E ? {
|
|
42752
42761
|
isRowSelectable: (e) => !pe(e.data),
|
|
42753
|
-
...
|
|
42762
|
+
...Ee,
|
|
42754
42763
|
mode: E === WA.SINGLE ? "singleRow" : "multiRow",
|
|
42755
42764
|
checkboxes: !1,
|
|
42756
42765
|
headerCheckbox: !1
|
|
42757
|
-
} :
|
|
42758
|
-
|
|
42759
|
-
|
|
42766
|
+
} : xe, [
|
|
42767
|
+
xe,
|
|
42768
|
+
Ee,
|
|
42760
42769
|
pe,
|
|
42761
42770
|
E
|
|
42762
42771
|
]);
|
|
@@ -42764,19 +42773,19 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42764
42773
|
let e = c ?? ie.current;
|
|
42765
42774
|
ee && t && e.size && e.forEach((e) => {
|
|
42766
42775
|
let t = ee.getRowNode(e);
|
|
42767
|
-
t && !t.isSelected() && t.setSelected(!0, !1,
|
|
42776
|
+
t && !t.isSelected() && t.setSelected(!0, !1, hB.API);
|
|
42768
42777
|
});
|
|
42769
42778
|
}, [
|
|
42770
42779
|
ee,
|
|
42771
42780
|
t,
|
|
42772
42781
|
c
|
|
42773
42782
|
]), k(() => {
|
|
42774
|
-
ee && c && (ee.deselectAll("all",
|
|
42783
|
+
ee && c && (ee.deselectAll("all", hB.API), c.forEach((e) => {
|
|
42775
42784
|
let t = ee.getRowNode(e);
|
|
42776
|
-
t && !t.isSelected() && t.setSelected(!0, !1,
|
|
42785
|
+
t && !t.isSelected() && t.setSelected(!0, !1, hB.API);
|
|
42777
42786
|
}));
|
|
42778
42787
|
}, [ee, c]);
|
|
42779
|
-
let
|
|
42788
|
+
let Oe = D((e) => e.data ? R(e.data) : "", [R]);
|
|
42780
42789
|
return k(() => {
|
|
42781
42790
|
let e = he(ae.current);
|
|
42782
42791
|
if (ee && c?.size && e) {
|
|
@@ -42791,7 +42800,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42791
42800
|
he,
|
|
42792
42801
|
c
|
|
42793
42802
|
]), /* @__PURE__ */ m("div", {
|
|
42794
|
-
className: $(
|
|
42803
|
+
className: $(uB, "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),
|
|
42795
42804
|
role: "region",
|
|
42796
42805
|
"aria-label": a,
|
|
42797
42806
|
"aria-busy": S,
|
|
@@ -42804,24 +42813,24 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42804
42813
|
cellSelection: !1,
|
|
42805
42814
|
theme: ue,
|
|
42806
42815
|
autoSizeStrategy: { type: "fitGridWidth" },
|
|
42807
|
-
columnDefs:
|
|
42808
|
-
defaultColDef:
|
|
42816
|
+
columnDefs: be,
|
|
42817
|
+
defaultColDef: Ce,
|
|
42809
42818
|
onGridSizeChanged: de,
|
|
42810
|
-
onGridReady:
|
|
42819
|
+
onGridReady: we,
|
|
42811
42820
|
loading: S,
|
|
42812
42821
|
suppressCellFocus: !0,
|
|
42813
42822
|
suppressDragLeaveHidesColumns: !0,
|
|
42814
|
-
overlayComponentSelector:
|
|
42815
|
-
overlayComponentParams:
|
|
42823
|
+
overlayComponentSelector: sB,
|
|
42824
|
+
overlayComponentParams: Te,
|
|
42816
42825
|
rowData: t,
|
|
42817
|
-
rowSelection:
|
|
42826
|
+
rowSelection: De,
|
|
42818
42827
|
onSelectionChanged: ge,
|
|
42819
|
-
getRowId:
|
|
42820
|
-
...
|
|
42828
|
+
getRowId: Oe,
|
|
42829
|
+
...Se
|
|
42821
42830
|
})
|
|
42822
42831
|
})
|
|
42823
42832
|
});
|
|
42824
|
-
},
|
|
42833
|
+
}, DB = {
|
|
42825
42834
|
heading: "_heading_1w6it_2",
|
|
42826
42835
|
headingCount: "_headingCount_1w6it_6",
|
|
42827
42836
|
name: "_name_1w6it_10",
|
|
@@ -42840,7 +42849,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42840
42849
|
errorBadge: "_errorBadge_1w6it_67",
|
|
42841
42850
|
neutralStatus: "_neutralStatus_1w6it_72",
|
|
42842
42851
|
emptyGrid: "_emptyGrid_1w6it_83"
|
|
42843
|
-
},
|
|
42852
|
+
}, OB = 40, kB = ({ row: n, modelTypeLabel: i, typography: a }) => {
|
|
42844
42853
|
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;
|
|
42845
42854
|
return /* @__PURE__ */ h("div", {
|
|
42846
42855
|
className: "flex size-full min-w-0 items-center gap-3 overflow-hidden",
|
|
@@ -42848,11 +42857,11 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42848
42857
|
className: "shrink-0",
|
|
42849
42858
|
children: /* @__PURE__ */ m(e, {
|
|
42850
42859
|
src: n.avatarSrc,
|
|
42851
|
-
size:
|
|
42860
|
+
size: OB,
|
|
42852
42861
|
initialsName: n.name,
|
|
42853
42862
|
fallback: /* @__PURE__ */ m(t, {
|
|
42854
42863
|
name: n.name,
|
|
42855
|
-
size:
|
|
42864
|
+
size: OB,
|
|
42856
42865
|
className: "rounded-xl!",
|
|
42857
42866
|
textClassName: u
|
|
42858
42867
|
}),
|
|
@@ -42861,34 +42870,34 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42861
42870
|
}), /* @__PURE__ */ h("div", {
|
|
42862
42871
|
className: "flex min-w-0 flex-1 flex-col gap-0.5 overflow-hidden",
|
|
42863
42872
|
children: [/* @__PURE__ */ m("span", {
|
|
42864
|
-
className: r(c,
|
|
42873
|
+
className: r(c, DB.modelType),
|
|
42865
42874
|
children: n.typeLabel || i
|
|
42866
42875
|
}), /* @__PURE__ */ h("div", {
|
|
42867
42876
|
className: "flex min-w-0 items-center gap-1 overflow-hidden",
|
|
42868
42877
|
children: [/* @__PURE__ */ m("span", {
|
|
42869
|
-
className: r("min-w-0 truncate", o,
|
|
42878
|
+
className: r("min-w-0 truncate", o, DB.name),
|
|
42870
42879
|
title: n.name,
|
|
42871
42880
|
children: n.name
|
|
42872
42881
|
}), n.version != null && /* @__PURE__ */ m(s, {
|
|
42873
42882
|
text: n.version,
|
|
42874
|
-
className: r("max-w-[30%] shrink-0", l,
|
|
42883
|
+
className: r("max-w-[30%] shrink-0", l, DB.version)
|
|
42875
42884
|
})]
|
|
42876
42885
|
})]
|
|
42877
42886
|
})]
|
|
42878
42887
|
});
|
|
42879
|
-
},
|
|
42888
|
+
}, AB = /* @__PURE__ */ function(e) {
|
|
42880
42889
|
return e.WithinLimits = "within-limits", e.RunningLow = "running-low", e.LimitReached = "limit-reached", e.NoLimit = "no-limit", e.Unavailable = "unavailable", e;
|
|
42881
|
-
}({}),
|
|
42890
|
+
}({}), jB = /* @__PURE__ */ function(e) {
|
|
42882
42891
|
return e.Finite = "finite", e.Unlimited = "unlimited", e.Unavailable = "unavailable", e;
|
|
42883
|
-
}({}),
|
|
42892
|
+
}({}), MB = (e) => {
|
|
42884
42893
|
switch (e) {
|
|
42885
|
-
case
|
|
42886
|
-
case
|
|
42887
|
-
default: return
|
|
42894
|
+
case AB.RunningLow: return DB.progressFillWarning;
|
|
42895
|
+
case AB.LimitReached: return DB.progressFillError;
|
|
42896
|
+
default: return DB.progressFillDefault;
|
|
42888
42897
|
}
|
|
42889
|
-
},
|
|
42898
|
+
}, NB = ({ cell: e, label: t, progressAriaLabel: n, showProgress: i, labels: a, typography: s }) => {
|
|
42890
42899
|
let { valueClassName: c = "dial-small-text", secondaryValueClassName: l = "dial-tiny-text" } = s, u = /* @__PURE__ */ m("span", {
|
|
42891
|
-
className: r(c,
|
|
42900
|
+
className: r(c, DB.value),
|
|
42892
42901
|
children: e.usedLabel
|
|
42893
42902
|
});
|
|
42894
42903
|
return /* @__PURE__ */ h("div", {
|
|
@@ -42898,28 +42907,28 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42898
42907
|
className: "sr-only",
|
|
42899
42908
|
children: [t, ": "]
|
|
42900
42909
|
}),
|
|
42901
|
-
e.kind ===
|
|
42910
|
+
e.kind === jB.Unlimited && /* @__PURE__ */ m("div", {
|
|
42902
42911
|
className: "flex min-w-0 items-start gap-2",
|
|
42903
42912
|
role: "group",
|
|
42904
42913
|
"aria-label": n,
|
|
42905
42914
|
children: /* @__PURE__ */ h("div", {
|
|
42906
42915
|
className: "flex min-w-0 flex-col gap-1",
|
|
42907
42916
|
children: [u, /* @__PURE__ */ m("span", {
|
|
42908
|
-
className: r(l,
|
|
42917
|
+
className: r(l, DB.secondaryValue),
|
|
42909
42918
|
children: e.supportingLabel ?? a.noLimitLabel
|
|
42910
42919
|
})]
|
|
42911
42920
|
})
|
|
42912
42921
|
}),
|
|
42913
|
-
e.kind ===
|
|
42922
|
+
e.kind === jB.Unavailable && /* @__PURE__ */ m("div", {
|
|
42914
42923
|
className: "flex min-w-0 items-baseline gap-2",
|
|
42915
42924
|
role: "group",
|
|
42916
42925
|
"aria-label": n,
|
|
42917
42926
|
children: /* @__PURE__ */ m("span", {
|
|
42918
|
-
className: r(l,
|
|
42927
|
+
className: r(l, DB.secondaryValue),
|
|
42919
42928
|
children: a.unavailableLabel
|
|
42920
42929
|
})
|
|
42921
42930
|
}),
|
|
42922
|
-
e.kind ===
|
|
42931
|
+
e.kind === jB.Finite && /* @__PURE__ */ h("div", {
|
|
42923
42932
|
className: "flex min-w-0 flex-col gap-2",
|
|
42924
42933
|
children: [/* @__PURE__ */ m("div", {
|
|
42925
42934
|
className: "flex min-w-0 items-baseline gap-2",
|
|
@@ -42928,7 +42937,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42928
42937
|
children: /* @__PURE__ */ h("div", {
|
|
42929
42938
|
className: "flex min-w-0 items-baseline gap-1 whitespace-nowrap",
|
|
42930
42939
|
children: [u, /* @__PURE__ */ h("span", {
|
|
42931
|
-
className: r(c,
|
|
42940
|
+
className: r(c, DB.secondaryValue),
|
|
42932
42941
|
children: ["/ ", e.totalLabel]
|
|
42933
42942
|
})]
|
|
42934
42943
|
})
|
|
@@ -42936,21 +42945,21 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42936
42945
|
value: Math.min(e.usedPercent ?? 0, 100),
|
|
42937
42946
|
max: 100,
|
|
42938
42947
|
size: o.Small,
|
|
42939
|
-
className: r("h-1! w-full",
|
|
42948
|
+
className: r("h-1! w-full", DB.progressTrack, MB(e.status)),
|
|
42940
42949
|
"aria-label": n,
|
|
42941
42950
|
"aria-valuetext": e.ariaLabel
|
|
42942
42951
|
})]
|
|
42943
42952
|
})
|
|
42944
42953
|
]
|
|
42945
42954
|
});
|
|
42946
|
-
},
|
|
42947
|
-
let { secondaryValueClassName: a = "dial-tiny-text" } = i, o = e.kind ===
|
|
42955
|
+
}, PB = ({ cell: e, label: t, unavailableLabel: n, typography: i }) => {
|
|
42956
|
+
let { secondaryValueClassName: a = "dial-tiny-text" } = i, o = e.kind === jB.Unavailable, s = o ? void 0 : e.supportingLabel, c = /* @__PURE__ */ h("div", {
|
|
42948
42957
|
className: "flex min-w-0 items-baseline gap-1",
|
|
42949
42958
|
children: [/* @__PURE__ */ h("span", {
|
|
42950
42959
|
className: "sr-only",
|
|
42951
42960
|
children: [t, ": "]
|
|
42952
42961
|
}), /* @__PURE__ */ m("span", {
|
|
42953
|
-
className: r("min-w-0 wrap-break-word", a,
|
|
42962
|
+
className: r("min-w-0 wrap-break-word", a, DB.secondaryValue),
|
|
42954
42963
|
title: o ? n : e.usedLabel,
|
|
42955
42964
|
children: o ? n : e.usedLabel
|
|
42956
42965
|
})]
|
|
@@ -42958,26 +42967,26 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42958
42967
|
return s ? /* @__PURE__ */ h("div", {
|
|
42959
42968
|
className: "flex min-w-0 flex-col gap-0.5",
|
|
42960
42969
|
children: [c, /* @__PURE__ */ m("span", {
|
|
42961
|
-
className: r("min-w-0 wrap-break-word", a,
|
|
42970
|
+
className: r("min-w-0 wrap-break-word", a, DB.secondaryValue),
|
|
42962
42971
|
children: s
|
|
42963
42972
|
})]
|
|
42964
42973
|
}) : c;
|
|
42965
|
-
},
|
|
42974
|
+
}, FB = ({ cell: e, periodLabel: t, labels: n, typography: r }) => /* @__PURE__ */ h("div", {
|
|
42966
42975
|
className: "flex size-full min-w-0 flex-col justify-center gap-2",
|
|
42967
|
-
children: [/* @__PURE__ */ m(
|
|
42976
|
+
children: [/* @__PURE__ */ m(NB, {
|
|
42968
42977
|
cell: e.tokens,
|
|
42969
42978
|
label: n.tokensLabel,
|
|
42970
42979
|
progressAriaLabel: `${t} ${n.tokensLabel}`,
|
|
42971
42980
|
showProgress: !0,
|
|
42972
42981
|
labels: n,
|
|
42973
42982
|
typography: r
|
|
42974
|
-
}), /* @__PURE__ */ m(
|
|
42983
|
+
}), /* @__PURE__ */ m(PB, {
|
|
42975
42984
|
cell: e.cost,
|
|
42976
42985
|
label: n.costLabel,
|
|
42977
42986
|
unavailableLabel: n.unavailableLabel,
|
|
42978
42987
|
typography: r
|
|
42979
42988
|
})]
|
|
42980
|
-
}),
|
|
42989
|
+
}), IB = ({ periodStatus: e }) => {
|
|
42981
42990
|
let { resetLabel: t, resetIsoValue: n, resetAriaLabel: o } = e;
|
|
42982
42991
|
return t == null ? null : /* @__PURE__ */ m(f, {
|
|
42983
42992
|
tooltip: /* @__PURE__ */ m("time", {
|
|
@@ -42989,7 +42998,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42989
42998
|
role: "img",
|
|
42990
42999
|
"aria-label": o ?? t,
|
|
42991
43000
|
tabIndex: 0,
|
|
42992
|
-
className: r("inline-flex size-11 shrink-0 items-center justify-center desktop:size-4",
|
|
43001
|
+
className: r("inline-flex size-11 shrink-0 items-center justify-center desktop:size-4", DB.secondaryValue),
|
|
42993
43002
|
children: /* @__PURE__ */ m(UL, {
|
|
42994
43003
|
"aria-hidden": !0,
|
|
42995
43004
|
size: i.SM,
|
|
@@ -42997,10 +43006,10 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
42997
43006
|
})
|
|
42998
43007
|
})
|
|
42999
43008
|
});
|
|
43000
|
-
},
|
|
43009
|
+
}, LB = ({ periodStatus: e }) => {
|
|
43001
43010
|
let { status: t, tooltipLabel: n } = e;
|
|
43002
|
-
if (n == null || t !==
|
|
43003
|
-
let i = t ===
|
|
43011
|
+
if (n == null || t !== AB.RunningLow && t !== AB.LimitReached) return null;
|
|
43012
|
+
let i = t === AB.LimitReached ? qL : JL;
|
|
43004
43013
|
return /* @__PURE__ */ m(f, {
|
|
43005
43014
|
tooltip: n,
|
|
43006
43015
|
asChild: !0,
|
|
@@ -43008,51 +43017,51 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
43008
43017
|
role: "img",
|
|
43009
43018
|
"aria-label": n,
|
|
43010
43019
|
tabIndex: 0,
|
|
43011
|
-
className: r("inline-flex size-11 shrink-0 items-center justify-center desktop:size-4", t ===
|
|
43020
|
+
className: r("inline-flex size-11 shrink-0 items-center justify-center desktop:size-4", t === AB.LimitReached ? DB.errorIndicator : DB.warningIndicator),
|
|
43012
43021
|
children: /* @__PURE__ */ m(i, {
|
|
43013
43022
|
"aria-hidden": !0,
|
|
43014
43023
|
size: 16
|
|
43015
43024
|
})
|
|
43016
43025
|
})
|
|
43017
43026
|
});
|
|
43018
|
-
},
|
|
43027
|
+
}, RB = ({ label: e, periodStatus: t, className: n }) => /* @__PURE__ */ h("span", {
|
|
43019
43028
|
className: "flex size-full min-w-0 items-center justify-between gap-2",
|
|
43020
43029
|
children: [/* @__PURE__ */ h("span", {
|
|
43021
43030
|
className: "flex min-w-0 items-center gap-1",
|
|
43022
43031
|
children: [/* @__PURE__ */ m("span", {
|
|
43023
43032
|
className: r("min-w-0 truncate", n),
|
|
43024
43033
|
children: e
|
|
43025
|
-
}), /* @__PURE__ */ m(
|
|
43026
|
-
}), /* @__PURE__ */ m(
|
|
43027
|
-
}),
|
|
43034
|
+
}), /* @__PURE__ */ m(IB, { periodStatus: t })]
|
|
43035
|
+
}), /* @__PURE__ */ m(LB, { periodStatus: t })]
|
|
43036
|
+
}), zB = (e, t) => {
|
|
43028
43037
|
switch (e) {
|
|
43029
|
-
case
|
|
43030
|
-
case
|
|
43031
|
-
case
|
|
43032
|
-
case
|
|
43033
|
-
case
|
|
43038
|
+
case AB.WithinLimits: return t.defaultBadge;
|
|
43039
|
+
case AB.RunningLow: return t.warningBadge;
|
|
43040
|
+
case AB.LimitReached: return t.errorBadge;
|
|
43041
|
+
case AB.NoLimit:
|
|
43042
|
+
case AB.Unavailable: return;
|
|
43034
43043
|
}
|
|
43035
|
-
},
|
|
43044
|
+
}, BB = (e, t) => {
|
|
43036
43045
|
switch (e) {
|
|
43037
|
-
case
|
|
43038
|
-
case
|
|
43039
|
-
case
|
|
43040
|
-
case
|
|
43041
|
-
case
|
|
43042
|
-
}
|
|
43043
|
-
},
|
|
43044
|
-
let { valueClassName: i = "dial-small-text", badgeClassName: a = "dial-caption-lead-semi-text" } = n, o = e !==
|
|
43046
|
+
case AB.WithinLimits: return t.withinLimitsBadgeLabel;
|
|
43047
|
+
case AB.RunningLow: return t.runningLowBadgeLabel;
|
|
43048
|
+
case AB.LimitReached: return t.limitReachedBadgeLabel;
|
|
43049
|
+
case AB.NoLimit: return t.noLimitBadgeLabel;
|
|
43050
|
+
case AB.Unavailable: return t.unavailableBadgeLabel;
|
|
43051
|
+
}
|
|
43052
|
+
}, VB = ({ status: e, labels: t, typography: n }) => {
|
|
43053
|
+
let { valueClassName: i = "dial-small-text", badgeClassName: a = "dial-caption-lead-semi-text" } = n, o = e !== AB.NoLimit && e !== AB.Unavailable;
|
|
43045
43054
|
return /* @__PURE__ */ m("div", {
|
|
43046
43055
|
className: "flex size-full min-w-0 items-center",
|
|
43047
43056
|
children: o ? /* @__PURE__ */ m("span", {
|
|
43048
|
-
className: r("inline-flex h-6 shrink-0 items-center rounded-full px-2", a,
|
|
43049
|
-
children:
|
|
43057
|
+
className: r("inline-flex h-6 shrink-0 items-center rounded-full px-2", a, zB(e, DB)),
|
|
43058
|
+
children: BB(e, t)
|
|
43050
43059
|
}) : /* @__PURE__ */ m("span", {
|
|
43051
|
-
className: r(i,
|
|
43052
|
-
children:
|
|
43060
|
+
className: r(i, DB.neutralStatus),
|
|
43061
|
+
children: BB(e, t)
|
|
43053
43062
|
})
|
|
43054
43063
|
});
|
|
43055
|
-
},
|
|
43064
|
+
}, HB = {
|
|
43056
43065
|
domLayout: "autoHeight",
|
|
43057
43066
|
suppressColumnVirtualisation: !0,
|
|
43058
43067
|
headerHeight: 56,
|
|
@@ -43065,11 +43074,11 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
43065
43074
|
suppressSizeToFit: !0,
|
|
43066
43075
|
suppressMovable: !0
|
|
43067
43076
|
}
|
|
43068
|
-
},
|
|
43077
|
+
}, UB = [
|
|
43069
43078
|
"day",
|
|
43070
43079
|
"week",
|
|
43071
43080
|
"month"
|
|
43072
|
-
],
|
|
43081
|
+
], WB = (e) => e.id, GB = ({ rows: e, labels: t, periodStatuses: i, styles: a }) => {
|
|
43073
43082
|
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({
|
|
43074
43083
|
"--mls-heading": o?.headingColor,
|
|
43075
43084
|
"--mls-heading-count": o?.headingCountColor,
|
|
@@ -43107,16 +43116,16 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
43107
43116
|
headerComponent: n(t.itemColumnLabel),
|
|
43108
43117
|
flex: 1.25,
|
|
43109
43118
|
minWidth: 192,
|
|
43110
|
-
cellRenderer: ({ data: e }) => e ? /* @__PURE__ */ m(
|
|
43119
|
+
cellRenderer: ({ data: e }) => e ? /* @__PURE__ */ m(kB, {
|
|
43111
43120
|
row: e,
|
|
43112
43121
|
modelTypeLabel: t.modelTypeLabel,
|
|
43113
43122
|
typography: s
|
|
43114
43123
|
}) : null
|
|
43115
43124
|
},
|
|
43116
|
-
...
|
|
43125
|
+
...UB.map((n) => ({
|
|
43117
43126
|
colId: n,
|
|
43118
43127
|
headerName: e[n],
|
|
43119
|
-
headerComponent: () => /* @__PURE__ */ m(
|
|
43128
|
+
headerComponent: () => /* @__PURE__ */ m(RB, {
|
|
43120
43129
|
label: e[n],
|
|
43121
43130
|
periodStatus: i[n],
|
|
43122
43131
|
className: u
|
|
@@ -43125,7 +43134,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
43125
43134
|
minWidth: 160,
|
|
43126
43135
|
cellRenderer: ({ data: r }) => {
|
|
43127
43136
|
let i = r?.[n];
|
|
43128
|
-
return i ? /* @__PURE__ */ m(
|
|
43137
|
+
return i ? /* @__PURE__ */ m(FB, {
|
|
43129
43138
|
cell: i,
|
|
43130
43139
|
periodLabel: e[n],
|
|
43131
43140
|
labels: t,
|
|
@@ -43139,7 +43148,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
43139
43148
|
headerComponent: n(t.statusColumnLabel),
|
|
43140
43149
|
flex: .75,
|
|
43141
43150
|
minWidth: 128,
|
|
43142
|
-
cellRenderer: ({ data: e }) => e ? /* @__PURE__ */ m(
|
|
43151
|
+
cellRenderer: ({ data: e }) => e ? /* @__PURE__ */ m(VB, {
|
|
43143
43152
|
status: e.status,
|
|
43144
43153
|
labels: t,
|
|
43145
43154
|
typography: s
|
|
@@ -43160,33 +43169,33 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
43160
43169
|
children: /* @__PURE__ */ h("h3", {
|
|
43161
43170
|
className: "m-0 flex items-center gap-2",
|
|
43162
43171
|
children: [/* @__PURE__ */ m("span", {
|
|
43163
|
-
className: r(c,
|
|
43172
|
+
className: r(c, DB.heading),
|
|
43164
43173
|
children: t.headingLabel
|
|
43165
43174
|
}), /* @__PURE__ */ m("span", {
|
|
43166
|
-
className: r(l,
|
|
43175
|
+
className: r(l, DB.headingCount),
|
|
43167
43176
|
children: e.length
|
|
43168
43177
|
})]
|
|
43169
43178
|
})
|
|
43170
|
-
}), /* @__PURE__ */ m(
|
|
43179
|
+
}), /* @__PURE__ */ m(EB, {
|
|
43171
43180
|
appearance: YA.Chat,
|
|
43172
43181
|
columnDefs: f,
|
|
43173
43182
|
rowData: e,
|
|
43174
|
-
getRowId:
|
|
43183
|
+
getRowId: WB,
|
|
43175
43184
|
withoutHeaderBorders: !0,
|
|
43176
43185
|
wrapCustomCellRenderers: !1,
|
|
43177
43186
|
emptyStateTitle: t.emptyStateLabel,
|
|
43178
43187
|
emptyStateDescription: "",
|
|
43179
|
-
className: r(e.length === 0 &&
|
|
43180
|
-
additionalGridOptions:
|
|
43188
|
+
className: r(e.length === 0 && DB.emptyGrid),
|
|
43189
|
+
additionalGridOptions: HB,
|
|
43181
43190
|
ariaLabel: `${t.headingLabel} ${e.length}`
|
|
43182
43191
|
})]
|
|
43183
43192
|
});
|
|
43184
|
-
},
|
|
43193
|
+
}, KB = {
|
|
43185
43194
|
heading: "_heading_10wkl_1",
|
|
43186
43195
|
description: "_description_10wkl_5",
|
|
43187
43196
|
title: "_title_10wkl_9",
|
|
43188
43197
|
coverage: "_coverage_10wkl_13"
|
|
43189
|
-
},
|
|
43198
|
+
}, qB = ({ budget: e, titleClassName: t, coverageClassName: n, cardLabels: i, cardStyles: a }) => {
|
|
43190
43199
|
let o = A();
|
|
43191
43200
|
return /* @__PURE__ */ h("div", {
|
|
43192
43201
|
role: "group",
|
|
@@ -43196,10 +43205,10 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
43196
43205
|
className: "flex flex-col gap-0.5",
|
|
43197
43206
|
children: [/* @__PURE__ */ m("h3", {
|
|
43198
43207
|
id: o,
|
|
43199
|
-
className: r("m-0", t,
|
|
43208
|
+
className: r("m-0", t, KB.title),
|
|
43200
43209
|
children: e.title
|
|
43201
43210
|
}), e.coverageLabel != null && /* @__PURE__ */ m("p", {
|
|
43202
|
-
className: r("m-0", n,
|
|
43211
|
+
className: r("m-0", n, KB.coverage),
|
|
43203
43212
|
children: e.coverageLabel
|
|
43204
43213
|
})]
|
|
43205
43214
|
}), /* @__PURE__ */ m(me, {
|
|
@@ -43208,7 +43217,7 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
43208
43217
|
styles: a
|
|
43209
43218
|
})]
|
|
43210
43219
|
});
|
|
43211
|
-
},
|
|
43220
|
+
}, JB = ({ budgets: e, labels: t, cardLabels: i, styles: a }) => {
|
|
43212
43221
|
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 ?? {};
|
|
43213
43222
|
if (e.length === 0 && t.emptyStateLabel == null) return null;
|
|
43214
43223
|
let y = n({
|
|
@@ -43226,10 +43235,10 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
43226
43235
|
className: "flex flex-col gap-0.5",
|
|
43227
43236
|
children: [/* @__PURE__ */ m("h2", {
|
|
43228
43237
|
id: o,
|
|
43229
|
-
className: r("m-0", p,
|
|
43238
|
+
className: r("m-0", p, KB.heading),
|
|
43230
43239
|
children: t.headingLabel
|
|
43231
43240
|
}), t.descriptionLabel != null && /* @__PURE__ */ m("p", {
|
|
43232
|
-
className: r("m-0", g,
|
|
43241
|
+
className: r("m-0", g, KB.description),
|
|
43233
43242
|
children: t.descriptionLabel
|
|
43234
43243
|
})]
|
|
43235
43244
|
}),
|
|
@@ -43240,9 +43249,9 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
43240
43249
|
role: "note"
|
|
43241
43250
|
}),
|
|
43242
43251
|
e.length === 0 ? /* @__PURE__ */ m("p", {
|
|
43243
|
-
className: r("m-0", g,
|
|
43252
|
+
className: r("m-0", g, KB.description),
|
|
43244
43253
|
children: t.emptyStateLabel
|
|
43245
|
-
}) : e.map((e) => /* @__PURE__ */ m(
|
|
43254
|
+
}) : e.map((e) => /* @__PURE__ */ m(qB, {
|
|
43246
43255
|
budget: e,
|
|
43247
43256
|
titleClassName: _,
|
|
43248
43257
|
coverageClassName: v,
|
|
@@ -43253,4 +43262,4 @@ var Nz = "rounded bg-layer-0 shadow", Pz = ({ refs: e, floatingStyles: t, contex
|
|
|
43253
43262
|
});
|
|
43254
43263
|
};
|
|
43255
43264
|
//#endregion
|
|
43256
|
-
export {
|
|
43265
|
+
export { jB as ModelLimitMetricKind, AB as ModelLimitStatus, GB as ModelLimitsSection, JB as SpendingBudgetsSection, le as USAGE_DASHBOARD_CLASS, pe as UsageLimitCard, me as UsageLimitCardGroup, ue as UsageLimitStatus };
|