@epam/ai-dial-usage-dashboard 1.2.0-dev.46 → 1.2.0-dev.50

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.
@@ -1 +1 @@
1
- {"version":3,"file":"UsageLimitCard.d.ts","sourceRoot":"","sources":["../../../src/components/UsageLimitCard/UsageLimitCard.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EACL,mBAAmB,EAEpB,MAAM,qCAAqC,CAAC;AAiB7C,2NAA2N;AAC3N,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAoKlD,CAAC"}
1
+ {"version":3,"file":"UsageLimitCard.d.ts","sourceRoot":"","sources":["../../../src/components/UsageLimitCard/UsageLimitCard.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,OAAO,EACL,mBAAmB,EAEpB,MAAM,qCAAqC,CAAC;AAiB7C,2NAA2N;AAC3N,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAqKlD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UsageLimitCardGroup.d.ts","sourceRoot":"","sources":["../../../src/components/UsageLimitCardGroup/UsageLimitCardGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,EAAE,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAG/E,sJAAsJ;AACtJ,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAwB5D,CAAC"}
1
+ {"version":3,"file":"UsageLimitCardGroup.d.ts","sourceRoot":"","sources":["../../../src/components/UsageLimitCardGroup/UsageLimitCardGroup.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,EAAE,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAG/E,sJAAsJ;AACtJ,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CA2B5D,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const USAGE_DASHBOARD_CLASS: {
2
+ /** One usage-limit card, which carries the themed CSS variables. */
3
+ readonly card: "dial-usage-dashboard-card";
4
+ /** The responsive grid a `UsageLimitCardGroup` lays its cards out in. */
5
+ readonly cardGroup: "dial-usage-dashboard-card-group";
6
+ };
7
+ //# sourceMappingURL=public-class-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-class-names.d.ts","sourceRoot":"","sources":["../../src/constants/public-class-names.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,qBAAqB;IAChC,oEAAoE;;IAEpE,yEAAyE;;CAEjE,CAAC"}
package/index.d.ts CHANGED
@@ -8,4 +8,5 @@ export type { FormatResetTime, ResetTimeDisplayLike, } from './utils/map-usage-d
8
8
  export { USAGE_MODEL_LIMITS_I18N_KEYS, mapOverallCostLimitsToPeriodStatuses, mapUserUsageToModelLimits, } from './utils/map-user-usage-to-model-limits';
9
9
  export { ModelLimitMetricKind, ModelLimitStatus, } from './models/model-limits-props';
10
10
  export type { ModelLimitMetricCell, ModelLimitPeriodCell, ModelLimitPeriodStatus, ModelLimitPeriodStatuses, ModelLimitRow, ModelLimitsColors, ModelLimitsLabels, ModelLimitsSectionProps, ModelLimitsStyles, ModelLimitsTypography, } from './models/model-limits-props';
11
+ export { USAGE_DASHBOARD_CLASS } from './constants/public-class-names';
11
12
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,YAAY,EACV,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EACL,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,qCAAqC,CAAC;AAC7C,YAAY,EACV,eAAe,EACf,oBAAoB,GACrB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,4BAA4B,EAC5B,oCAAoC,EACpC,yBAAyB,GAC1B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,YAAY,EACV,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EACL,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,qCAAqC,CAAC;AAC7C,YAAY,EACV,eAAe,EACf,oBAAoB,GACrB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,4BAA4B,EAC5B,oCAAoC,EACpC,yBAAyB,GAC1B,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACV,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC"}
package/index.js CHANGED
@@ -3,20 +3,23 @@ import { ElementSize as o, EllipsisTooltip as s, ProgressBar as c, Tooltip as l
3
3
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
4
4
  import { createElement as p, forwardRef as m } from "react";
5
5
  //#region \0rolldown/runtime.js
6
- var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.getOwnPropertyNames, v = Object.prototype.hasOwnProperty, y = (e, t) => () => (e && (t = e(e = 0)), t), b = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ee = (e, t) => {
6
+ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.getOwnPropertyNames, v = Object.prototype.hasOwnProperty, ee = (e, t) => () => (e && (t = e(e = 0)), t), y = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), te = (e, t) => {
7
7
  let n = {};
8
8
  for (var r in e) h(n, r, {
9
9
  get: e[r],
10
10
  enumerable: !0
11
11
  });
12
12
  return t || h(n, Symbol.toStringTag, { value: "Module" }), n;
13
- }, te = (e, t, n, r) => {
13
+ }, ne = (e, t, n, r) => {
14
14
  if (t && typeof t == "object" || typeof t == "function") for (var i = _(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !v.call(e, s) && s !== n && h(e, s, {
15
15
  get: ((e) => t[e]).bind(null, s),
16
16
  enumerable: !(r = g(t, s)) || r.enumerable
17
17
  });
18
18
  return e;
19
- }, x = (e) => v.call(e, "module.exports") ? e["module.exports"] : te(h({}, "__esModule", { value: !0 }), e), S = /* @__PURE__ */ function(e) {
19
+ }, b = (e) => v.call(e, "module.exports") ? e["module.exports"] : ne(h({}, "__esModule", { value: !0 }), e), x = {
20
+ card: "dial-usage-dashboard-card",
21
+ cardGroup: "dial-usage-dashboard-card-group"
22
+ }, S = /* @__PURE__ */ function(e) {
20
23
  return e.Default = "default", e.RunningLow = "runningLow", e.LimitReached = "limitReached", e;
21
24
  }({}), C = {
22
25
  card: "_card_97w0r_1",
@@ -34,13 +37,13 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
34
37
  defaultBadge: "_defaultBadge_97w0r_54",
35
38
  warningBadge: "_warningBadge_97w0r_59",
36
39
  errorBadge: "_errorBadge_97w0r_64"
37
- }, ne = (e, t) => {
40
+ }, re = (e, t) => {
38
41
  switch (e) {
39
42
  case S.RunningLow: return t.runningLowBadgeLabel;
40
43
  case S.LimitReached: return t.limitReachedBadgeLabel;
41
44
  case S.Default: return t.defaultBadgeLabel;
42
45
  }
43
- }, re = ({ data: e, labels: t, styles: n }) => {
46
+ }, ie = ({ data: e, labels: t, styles: n }) => {
44
47
  let { colors: i, typography: s } = n ?? {}, { titleClassName: l = "dial-body-semi-text", amountClassName: p = "dial-display1-text", secondaryAmountClassName: m = "dial-small-text", badgeClassName: h = "dial-caption-lead-semi-text", usedPercentLabelClassName: g = "dial-small-text", resetLabelClassName: _ = "dial-tiny-text" } = s ?? {}, v = r({
45
48
  "--uld-card-bg": i?.cardBackground,
46
49
  "--uld-title": i?.titleColor,
@@ -59,9 +62,9 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
59
62
  "--uld-error-badge-bg": i?.errorBadgeBackground,
60
63
  "--uld-error-badge-text": i?.errorBadgeColor,
61
64
  "--uld-used-percent-label": i?.usedPercentLabelColor
62
- }), y = ne(e.status, t);
65
+ }), ee = re(e.status, t);
63
66
  return /* @__PURE__ */ f("div", {
64
- className: a("flex min-w-0 flex-col gap-4 rounded-xl px-6 py-5 shadow-md", C.card),
67
+ className: a("flex min-w-0 flex-col gap-4 rounded-xl px-6 py-5 shadow-md", C.card, x.card),
65
68
  style: v,
66
69
  role: "group",
67
70
  "aria-label": `${e.title}, ${e.periodDescription}`,
@@ -72,7 +75,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
72
75
  children: e.title
73
76
  }), /* @__PURE__ */ d("span", {
74
77
  className: a("shrink-0 rounded-full px-2 py-1", h, e.status === S.Default && C.defaultBadge, e.status === S.RunningLow && C.warningBadge, e.status === S.LimitReached && C.errorBadge),
75
- children: y
78
+ children: ee
76
79
  })]
77
80
  }), /* @__PURE__ */ f("div", {
78
81
  className: "flex flex-col gap-2",
@@ -119,10 +122,10 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
119
122
  ]
120
123
  })]
121
124
  });
122
- }, ie = ({ cards: e, labels: t, styles: n }) => e.length === 0 ? null : /* @__PURE__ */ d("div", {
123
- className: "grid grid-cols-1 gap-4 desktop:grid-cols-[repeat(var(--uld-card-count),minmax(0,1fr))]",
125
+ }, ae = ({ cards: e, labels: t, styles: n }) => e.length === 0 ? null : /* @__PURE__ */ d("div", {
126
+ className: a("grid grid-cols-1 gap-4 desktop:grid-cols-[repeat(var(--uld-card-count),minmax(0,1fr))]", x.cardGroup),
124
127
  style: { "--uld-card-count": e.length },
125
- children: e.map((e) => /* @__PURE__ */ d(re, {
128
+ children: e.map((e) => /* @__PURE__ */ d(ie, {
126
129
  data: e,
127
130
  labels: t,
128
131
  styles: n
@@ -154,13 +157,13 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
154
157
  warningBadge: "_warningBadge_jkj20_87",
155
158
  errorBadge: "_errorBadge_jkj20_92",
156
159
  neutralStatus: "_neutralStatus_jkj20_97"
157
- }, ae = (e) => {
160
+ }, oe = (e) => {
158
161
  switch (e) {
159
162
  case w.RunningLow: return E.progressFillWarning;
160
163
  case w.LimitReached: return E.progressFillError;
161
164
  default: return E.progressFillDefault;
162
165
  }
163
- }, oe = ({ cell: e, label: t, progressAriaLabel: n, showProgress: r, labels: i, typography: s }) => {
166
+ }, se = ({ cell: e, label: t, progressAriaLabel: n, showProgress: r, labels: i, typography: s }) => {
164
167
  let { valueClassName: l = "dial-small-text", secondaryValueClassName: u = "dial-tiny-text" } = s, p = /* @__PURE__ */ d("span", {
165
168
  className: a(l, E.value),
166
169
  children: e.usedLabel
@@ -210,14 +213,14 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
210
213
  value: Math.min(e.usedPercent ?? 0, 100),
211
214
  max: 100,
212
215
  size: o.Small,
213
- className: a("!h-1 w-full", E.progressTrack, ae(e.status)),
216
+ className: a("!h-1 w-full", E.progressTrack, oe(e.status)),
214
217
  "aria-label": n,
215
218
  "aria-valuetext": e.ariaLabel
216
219
  })]
217
220
  })
218
221
  ]
219
222
  });
220
- }, se = {
223
+ }, ce = {
221
224
  outline: {
222
225
  xmlns: "http://www.w3.org/2000/svg",
223
226
  width: 24,
@@ -237,10 +240,10 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
237
240
  fill: "currentColor",
238
241
  stroke: "none"
239
242
  }
240
- }, ce = (e, t, n, r) => {
243
+ }, le = (e, t, n, r) => {
241
244
  let i = m(({ color: n = "currentColor", size: i = 24, stroke: a = 2, title: o, className: s, children: c, ...l }, u) => p("svg", {
242
245
  ref: u,
243
- ...se[e],
246
+ ...ce[e],
244
247
  width: i,
245
248
  height: i,
246
249
  className: [
@@ -259,16 +262,16 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
259
262
  ...Array.isArray(c) ? c : [c]
260
263
  ]));
261
264
  return i.displayName = `${n}`, i;
262
- }, le = ce("filled", "alert-circle-filled", "AlertCircleFilled", [["path", {
265
+ }, ue = le("filled", "alert-circle-filled", "AlertCircleFilled", [["path", {
263
266
  d: "M12 2c5.523 0 10 4.477 10 10a10 10 0 0 1 -19.995 .324l-.005 -.324l.004 -.28c.148 -5.393 4.566 -9.72 9.996 -9.72zm.01 13l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-.01 -8a1 1 0 0 0 -.993 .883l-.007 .117v4l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-4l-.007 -.117a1 1 0 0 0 -.993 -.883z",
264
267
  key: "svg-0"
265
- }]]), ue = ce("filled", "alert-triangle-filled", "AlertTriangleFilled", [["path", {
268
+ }]]), de = le("filled", "alert-triangle-filled", "AlertTriangleFilled", [["path", {
266
269
  d: "M12 1.67c.955 0 1.845 .467 2.39 1.247l.105 .16l8.114 13.548a2.914 2.914 0 0 1 -2.307 4.363l-.195 .008h-16.225a2.914 2.914 0 0 1 -2.582 -4.2l.099 -.185l8.11 -13.538a2.914 2.914 0 0 1 2.491 -1.403zm.01 13.33l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007zm-.01 -7a1 1 0 0 0 -.993 .883l-.007 .117v4l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-4l-.007 -.117a1 1 0 0 0 -.993 -.883z",
267
270
  key: "svg-0"
268
- }]]), D = ({ periodStatus: e }) => {
271
+ }]]), fe = ({ periodStatus: e }) => {
269
272
  let { status: t, tooltipLabel: n } = e;
270
273
  if (n == null || t !== w.RunningLow && t !== w.LimitReached) return null;
271
- let r = t === w.LimitReached ? le : ue;
274
+ let r = t === w.LimitReached ? ue : de;
272
275
  return /* @__PURE__ */ d(l, {
273
276
  tooltip: n,
274
277
  asChild: !0,
@@ -283,7 +286,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
283
286
  })
284
287
  })
285
288
  });
286
- }, de = ({ cell: e, label: t, unavailableLabel: n, typography: r }) => {
289
+ }, pe = ({ cell: e, label: t, unavailableLabel: n, typography: r }) => {
287
290
  let { secondaryValueClassName: i = "dial-tiny-text" } = r, o = e.kind === T.Unavailable;
288
291
  return /* @__PURE__ */ f("div", {
289
292
  className: "flex min-w-0 items-baseline gap-1",
@@ -296,7 +299,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
296
299
  children: o ? n : e.usedLabel
297
300
  })]
298
301
  });
299
- }, O = ({ cell: e, periodLabel: t, periodStatus: n, labels: r, typography: i, resetLabelClassName: o }) => /* @__PURE__ */ f("div", {
302
+ }, D = ({ cell: e, periodLabel: t, periodStatus: n, labels: r, typography: i, resetLabelClassName: o }) => /* @__PURE__ */ f("div", {
300
303
  role: "cell",
301
304
  className: "flex min-w-0 flex-col gap-2 py-2 desktop:py-0",
302
305
  children: [
@@ -313,9 +316,9 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
313
316
  className: "sr-only",
314
317
  children: n.resetAriaLabel
315
318
  })] })]
316
- }), /* @__PURE__ */ d(D, { periodStatus: n })]
319
+ }), /* @__PURE__ */ d(fe, { periodStatus: n })]
317
320
  }),
318
- /* @__PURE__ */ d(oe, {
321
+ /* @__PURE__ */ d(se, {
319
322
  cell: e.tokens,
320
323
  label: r.tokensLabel,
321
324
  progressAriaLabel: `${t} ${r.tokensLabel}`,
@@ -323,14 +326,14 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
323
326
  labels: r,
324
327
  typography: i
325
328
  }),
326
- /* @__PURE__ */ d(de, {
329
+ /* @__PURE__ */ d(pe, {
327
330
  cell: e.cost,
328
331
  label: r.costLabel,
329
332
  unavailableLabel: r.unavailableLabel,
330
333
  typography: i
331
334
  })
332
335
  ]
333
- }), fe = "desktop:grid-cols-[minmax(12rem,1.25fr)_repeat(3,minmax(0,1fr))_minmax(8rem,10rem)]", pe = (e) => {
336
+ }), me = "desktop:grid-cols-[minmax(12rem,1.25fr)_repeat(3,minmax(0,1fr))_minmax(8rem,10rem)]", he = (e) => {
334
337
  switch (e) {
335
338
  case w.WithinLimits: return E.defaultBadge;
336
339
  case w.RunningLow: return E.warningBadge;
@@ -338,7 +341,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
338
341
  case w.NoLimit:
339
342
  case w.Unavailable: return;
340
343
  }
341
- }, me = (e, t) => {
344
+ }, ge = (e, t) => {
342
345
  switch (e) {
343
346
  case w.WithinLimits: return t.withinLimitsBadgeLabel;
344
347
  case w.RunningLow: return t.runningLowBadgeLabel;
@@ -346,11 +349,11 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
346
349
  case w.NoLimit: return t.noLimitBadgeLabel;
347
350
  case w.Unavailable: return t.unavailableBadgeLabel;
348
351
  }
349
- }, he = ({ row: n, labels: r, periodStatuses: i, typography: o, avatarSize: c }) => {
352
+ }, _e = ({ row: n, labels: r, periodStatuses: i, typography: o, avatarSize: c }) => {
350
353
  let { nameClassName: l = "dial-small-semi-text", modelTypeClassName: u = "dial-caption-lead-semi-text", versionClassName: p = "dial-small-text", valueClassName: m = "dial-small-text", badgeClassName: h = "dial-caption-lead-semi-text", resetLabelClassName: g = "dial-tiny-text" } = o, _ = n.status !== w.NoLimit && n.status !== w.Unavailable;
351
354
  return /* @__PURE__ */ f("div", {
352
355
  role: "row",
353
- className: a("grid grid-cols-1 gap-2 px-4 py-3 desktop:min-h-16 desktop:items-center desktop:gap-4 desktop:px-6", fe, E.row),
356
+ className: a("grid grid-cols-1 gap-2 px-4 py-3 desktop:min-h-16 desktop:items-center desktop:gap-4 desktop:px-6", me, E.row),
354
357
  children: [
355
358
  /* @__PURE__ */ f("div", {
356
359
  role: "cell",
@@ -387,7 +390,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
387
390
  })]
388
391
  })]
389
392
  }),
390
- /* @__PURE__ */ d(O, {
393
+ /* @__PURE__ */ d(D, {
391
394
  cell: n.day,
392
395
  periodLabel: r.dayColumnLabel,
393
396
  periodStatus: i.day,
@@ -395,7 +398,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
395
398
  typography: o,
396
399
  resetLabelClassName: g
397
400
  }),
398
- /* @__PURE__ */ d(O, {
401
+ /* @__PURE__ */ d(D, {
399
402
  cell: n.week,
400
403
  periodLabel: r.weekColumnLabel,
401
404
  periodStatus: i.week,
@@ -403,7 +406,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
403
406
  typography: o,
404
407
  resetLabelClassName: g
405
408
  }),
406
- /* @__PURE__ */ d(O, {
409
+ /* @__PURE__ */ d(D, {
407
410
  cell: n.month,
408
411
  periodLabel: r.monthColumnLabel,
409
412
  periodStatus: i.month,
@@ -418,16 +421,16 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
418
421
  className: a("dial-caption-lead-semi-text block desktop:hidden", E.mobileColumnLabel),
419
422
  children: r.statusColumnLabel
420
423
  }), _ ? /* @__PURE__ */ d("span", {
421
- className: a("inline-flex h-6 shrink-0 items-center self-start rounded-full px-2", h, pe(n.status)),
422
- children: me(n.status, r)
424
+ className: a("inline-flex h-6 shrink-0 items-center self-start rounded-full px-2", h, he(n.status)),
425
+ children: ge(n.status, r)
423
426
  }) : /* @__PURE__ */ d("span", {
424
427
  className: a(m, E.neutralStatus),
425
- children: me(n.status, r)
428
+ children: ge(n.status, r)
426
429
  })]
427
430
  })
428
431
  ]
429
432
  });
430
- }, ge = 40, k = ({ label: e, periodStatus: t, className: n, resetLabelClassName: r }) => /* @__PURE__ */ f("span", {
433
+ }, ve = 40, O = ({ label: e, periodStatus: t, className: n, resetLabelClassName: r }) => /* @__PURE__ */ f("span", {
431
434
  role: "columnheader",
432
435
  className: a("flex min-w-0 items-center justify-between gap-2", n, E.columnHeader),
433
436
  children: [/* @__PURE__ */ f("span", {
@@ -444,8 +447,8 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
444
447
  className: "sr-only",
445
448
  children: t.resetAriaLabel
446
449
  })] })]
447
- }), /* @__PURE__ */ d(D, { periodStatus: t })]
448
- }), _e = ({ rows: e, labels: t, periodStatuses: i, styles: o }) => {
450
+ }), /* @__PURE__ */ d(fe, { periodStatus: t })]
451
+ }), ye = ({ rows: e, labels: t, periodStatuses: i, styles: o }) => {
449
452
  let { colors: s, typography: c = {} } = o ?? {}, { headingClassName: l = "dial-body-semi-text", headingCountClassName: p = "dial-tiny-semi-text", columnHeaderClassName: m = "dial-caption-lead-semi-text", resetLabelClassName: h = "dial-tiny-text" } = c, g = r({
450
453
  "--mls-container-bg": s?.containerBackground,
451
454
  "--mls-heading": s?.headingColor,
@@ -495,26 +498,26 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
495
498
  children: /* @__PURE__ */ d(n, { label: t.emptyStateLabel })
496
499
  }) : /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f("div", {
497
500
  role: "row",
498
- className: a("hidden gap-4 px-6 py-3 desktop:grid desktop:items-center", fe, E.headerRow),
501
+ className: a("hidden gap-4 px-6 py-3 desktop:grid desktop:items-center", me, E.headerRow),
499
502
  children: [
500
503
  /* @__PURE__ */ d("span", {
501
504
  role: "columnheader",
502
505
  className: a(m, E.columnHeader),
503
506
  children: t.itemColumnLabel
504
507
  }),
505
- /* @__PURE__ */ d(k, {
508
+ /* @__PURE__ */ d(O, {
506
509
  label: t.dayColumnLabel,
507
510
  periodStatus: i.day,
508
511
  className: m,
509
512
  resetLabelClassName: h
510
513
  }),
511
- /* @__PURE__ */ d(k, {
514
+ /* @__PURE__ */ d(O, {
512
515
  label: t.weekColumnLabel,
513
516
  periodStatus: i.week,
514
517
  className: m,
515
518
  resetLabelClassName: h
516
519
  }),
517
- /* @__PURE__ */ d(k, {
520
+ /* @__PURE__ */ d(O, {
518
521
  label: t.monthColumnLabel,
519
522
  periodStatus: i.month,
520
523
  className: m,
@@ -528,23 +531,23 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
528
531
  ]
529
532
  }), /* @__PURE__ */ d("div", {
530
533
  role: "rowgroup",
531
- children: e.map((e) => /* @__PURE__ */ d(he, {
534
+ children: e.map((e) => /* @__PURE__ */ d(_e, {
532
535
  row: e,
533
536
  labels: t,
534
537
  periodStatuses: i,
535
538
  typography: c,
536
- avatarSize: ge
539
+ avatarSize: ve
537
540
  }, e.id))
538
541
  })] })
539
542
  })]
540
543
  });
541
- }, ve = 2 ** 53, ye = 75, be = (e) => e != null && Number.isFinite(e.total) && Number.isFinite(e.used), xe = (e) => e >= 100 ? S.LimitReached : e >= ye ? S.RunningLow : S.Default, Se = (e) => e ? {
544
+ }, be = 2 ** 53, xe = 75, Se = (e) => e != null && Number.isFinite(e.total) && Number.isFinite(e.used), Ce = (e) => e >= 100 ? S.LimitReached : e >= xe ? S.RunningLow : S.Default, we = (e) => e ? {
542
545
  resetLabel: e.label,
543
546
  resetIsoValue: e.isoValue,
544
547
  resetAriaLabel: e.ariaLabel
545
- } : {}, Ce = (e, t, n, r, a) => {
546
- let o = Math.max(0, e.used), s = i(o), c = Se(a);
547
- if (e.total >= ve) return {
548
+ } : {}, Te = (e, t, n, r, a) => {
549
+ let o = Math.max(0, e.used), s = i(o), c = we(a);
550
+ if (e.total >= be) return {
548
551
  title: t,
549
552
  periodDescription: n,
550
553
  used: o,
@@ -552,7 +555,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
552
555
  usedLabel: s,
553
556
  isUnlimited: !0,
554
557
  status: S.Default,
555
- progressAriaLabel: r(A.unlimitedProgressAriaLabel, { used: s }),
558
+ progressAriaLabel: r(k.unlimitedProgressAriaLabel, { used: s }),
556
559
  ...c
557
560
  };
558
561
  let l = Math.max(e.total, 0), u = Math.max(l - o, 0), d = l > 0 ? o / l * 100 : 100, f = i(l);
@@ -565,15 +568,15 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
565
568
  totalLabel: f,
566
569
  remainingLabel: i(u),
567
570
  usedPercent: d,
568
- status: xe(d),
569
- progressAriaLabel: r(A.progressAriaLabel, {
571
+ status: Ce(d),
572
+ progressAriaLabel: r(k.progressAriaLabel, {
570
573
  used: s,
571
574
  total: f,
572
575
  percent: Math.round(d)
573
576
  }),
574
577
  ...c
575
578
  };
576
- }, A = {
579
+ }, k = {
577
580
  todayTitle: "usage.todayTitle",
578
581
  todayPeriodDescription: "usage.todayPeriodDescription",
579
582
  thisWeekTitle: "usage.thisWeekTitle",
@@ -582,58 +585,58 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
582
585
  thisMonthPeriodDescription: "usage.thisMonthPeriodDescription",
583
586
  unlimitedProgressAriaLabel: "usage.unlimitedProgressAriaLabel",
584
587
  progressAriaLabel: "usage.progressAriaLabel"
585
- }, we = (e, t, n) => [
588
+ }, Ee = (e, t, n) => [
586
589
  {
587
590
  stats: e?.dayCostStats,
588
- titleKey: A.todayTitle,
589
- periodDescriptionKey: A.todayPeriodDescription
591
+ titleKey: k.todayTitle,
592
+ periodDescriptionKey: k.todayPeriodDescription
590
593
  },
591
594
  {
592
595
  stats: e?.weekCostStats,
593
- titleKey: A.thisWeekTitle,
594
- periodDescriptionKey: A.thisWeekPeriodDescription
596
+ titleKey: k.thisWeekTitle,
597
+ periodDescriptionKey: k.thisWeekPeriodDescription
595
598
  },
596
599
  {
597
600
  stats: e?.monthCostStats,
598
- titleKey: A.thisMonthTitle,
599
- periodDescriptionKey: A.thisMonthPeriodDescription
601
+ titleKey: k.thisMonthTitle,
602
+ periodDescriptionKey: k.thisMonthPeriodDescription
600
603
  }
601
- ].flatMap(({ stats: e, titleKey: r, periodDescriptionKey: i }) => be(e) ? [Ce(e, t(r), t(i), t, n(e.resetsAt))] : []), j = /* @__PURE__ */ ee({
602
- __addDisposableResource: () => Ke,
604
+ ].flatMap(({ stats: e, titleKey: r, periodDescriptionKey: i }) => Se(e) ? [Te(e, t(r), t(i), t, n(e.resetsAt))] : []), A = /* @__PURE__ */ te({
605
+ __addDisposableResource: () => qe,
603
606
  __assign: () => z,
604
- __asyncDelegator: () => Re,
605
- __asyncGenerator: () => Le,
606
- __asyncValues: () => ze,
607
+ __asyncDelegator: () => ze,
608
+ __asyncGenerator: () => Re,
609
+ __asyncValues: () => Be,
607
610
  __await: () => L,
608
- __awaiter: () => je,
609
- __classPrivateFieldGet: () => Ue,
610
- __classPrivateFieldIn: () => Ge,
611
- __classPrivateFieldSet: () => We,
611
+ __awaiter: () => Me,
612
+ __classPrivateFieldGet: () => We,
613
+ __classPrivateFieldIn: () => Ke,
614
+ __classPrivateFieldSet: () => Ge,
612
615
  __createBinding: () => B,
613
- __decorate: () => P,
614
- __disposeResources: () => qe,
615
- __esDecorate: () => Ee,
616
- __exportStar: () => Ne,
617
- __extends: () => M,
618
- __generator: () => Me,
619
- __importDefault: () => He,
620
- __importStar: () => Ve,
621
- __makeTemplateObject: () => Be,
622
- __metadata: () => Ae,
623
- __param: () => Te,
624
- __propKey: () => Oe,
616
+ __decorate: () => N,
617
+ __disposeResources: () => Je,
618
+ __esDecorate: () => De,
619
+ __exportStar: () => Pe,
620
+ __extends: () => j,
621
+ __generator: () => Ne,
622
+ __importDefault: () => Ue,
623
+ __importStar: () => He,
624
+ __makeTemplateObject: () => Ve,
625
+ __metadata: () => je,
626
+ __param: () => P,
627
+ __propKey: () => ke,
625
628
  __read: () => I,
626
- __rest: () => N,
627
- __rewriteRelativeImportExtension: () => Je,
628
- __runInitializers: () => De,
629
- __setFunctionName: () => ke,
630
- __spread: () => Pe,
631
- __spreadArray: () => Ie,
632
- __spreadArrays: () => Fe,
629
+ __rest: () => M,
630
+ __rewriteRelativeImportExtension: () => Ye,
631
+ __runInitializers: () => Oe,
632
+ __setFunctionName: () => Ae,
633
+ __spread: () => Fe,
634
+ __spreadArray: () => Le,
635
+ __spreadArrays: () => Ie,
633
636
  __values: () => F,
634
- default: () => Xe
637
+ default: () => Qe
635
638
  });
636
- function M(e, t) {
639
+ function j(e, t) {
637
640
  if (typeof t != "function" && t !== null) throw TypeError("Class extends value " + String(t) + " is not a constructor or null");
638
641
  R(e, t);
639
642
  function n() {
@@ -641,24 +644,24 @@ function M(e, t) {
641
644
  }
642
645
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
643
646
  }
644
- function N(e, t) {
647
+ function M(e, t) {
645
648
  var n = {};
646
649
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
647
650
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
648
651
  return n;
649
652
  }
650
- function P(e, t, n, r) {
653
+ function N(e, t, n, r) {
651
654
  var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
652
655
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
653
656
  else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
654
657
  return i > 3 && a && Object.defineProperty(t, n, a), a;
655
658
  }
656
- function Te(e, t) {
659
+ function P(e, t) {
657
660
  return function(n, r) {
658
661
  t(n, r, e);
659
662
  };
660
663
  }
661
- function Ee(e, t, n, r, i, a) {
664
+ function De(e, t, n, r, i, a) {
662
665
  function o(e) {
663
666
  if (e !== void 0 && typeof e != "function") throw TypeError("Function expected");
664
667
  return e;
@@ -683,23 +686,23 @@ function Ee(e, t, n, r, i, a) {
683
686
  }
684
687
  l && Object.defineProperty(l, r.name, u), f = !0;
685
688
  }
686
- function De(e, t, n) {
689
+ function Oe(e, t, n) {
687
690
  for (var r = arguments.length > 2, i = 0; i < t.length; i++) n = r ? t[i].call(e, n) : t[i].call(e);
688
691
  return r ? n : void 0;
689
692
  }
690
- function Oe(e) {
693
+ function ke(e) {
691
694
  return typeof e == "symbol" ? e : `${e}`;
692
695
  }
693
- function ke(e, t, n) {
696
+ function Ae(e, t, n) {
694
697
  return typeof t == "symbol" && (t = t.description ? `[${t.description}]` : ""), Object.defineProperty(e, "name", {
695
698
  configurable: !0,
696
699
  value: n ? `${n} ${t}` : t
697
700
  });
698
701
  }
699
- function Ae(e, t) {
702
+ function je(e, t) {
700
703
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
701
704
  }
702
- function je(e, t, n, r) {
705
+ function Me(e, t, n, r) {
703
706
  function i(e) {
704
707
  return e instanceof n ? e : new n(function(t) {
705
708
  t(e);
@@ -726,7 +729,7 @@ function je(e, t, n, r) {
726
729
  c((r = r.apply(e, t || [])).next());
727
730
  });
728
731
  }
729
- function Me(e, t) {
732
+ function Ne(e, t) {
730
733
  var n = {
731
734
  label: 0,
732
735
  sent: function() {
@@ -796,7 +799,7 @@ function Me(e, t) {
796
799
  };
797
800
  }
798
801
  }
799
- function Ne(e, t) {
802
+ function Pe(e, t) {
800
803
  for (var n in e) n !== "default" && !Object.prototype.hasOwnProperty.call(t, n) && B(t, e, n);
801
804
  }
802
805
  function F(e) {
@@ -827,23 +830,23 @@ function I(e, t) {
827
830
  }
828
831
  return a;
829
832
  }
830
- function Pe() {
833
+ function Fe() {
831
834
  for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(I(arguments[t]));
832
835
  return e;
833
836
  }
834
- function Fe() {
837
+ function Ie() {
835
838
  for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
836
839
  for (var r = Array(e), i = 0, t = 0; t < n; t++) for (var a = arguments[t], o = 0, s = a.length; o < s; o++, i++) r[i] = a[o];
837
840
  return r;
838
841
  }
839
- function Ie(e, t, n) {
842
+ function Le(e, t, n) {
840
843
  if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
841
844
  return e.concat(a || Array.prototype.slice.call(t));
842
845
  }
843
846
  function L(e) {
844
847
  return this instanceof L ? (this.v = e, this) : new L(e);
845
848
  }
846
- function Le(e, t, n) {
849
+ function Re(e, t, n) {
847
850
  if (!Symbol.asyncIterator) throw TypeError("Symbol.asyncIterator is not defined.");
848
851
  var r = n.apply(e, t || []), i, a = [];
849
852
  return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), s("next"), s("throw"), s("return", o), i[Symbol.asyncIterator] = function() {
@@ -886,7 +889,7 @@ function Le(e, t, n) {
886
889
  e(t), a.shift(), a.length && c(a[0][0], a[0][1]);
887
890
  }
888
891
  }
889
- function Re(e) {
892
+ function ze(e) {
890
893
  var t, n;
891
894
  return t = {}, r("next"), r("throw", function(e) {
892
895
  throw e;
@@ -902,7 +905,7 @@ function Re(e) {
902
905
  } : i;
903
906
  }
904
907
  }
905
- function ze(e) {
908
+ function Be(e) {
906
909
  if (!Symbol.asyncIterator) throw TypeError("Symbol.asyncIterator is not defined.");
907
910
  var t = e[Symbol.asyncIterator], n;
908
911
  return t ? t.call(e) : (e = typeof F == "function" ? F(e) : e[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
@@ -924,34 +927,34 @@ function ze(e) {
924
927
  }, t);
925
928
  }
926
929
  }
927
- function Be(e, t) {
930
+ function Ve(e, t) {
928
931
  return Object.defineProperty ? Object.defineProperty(e, "raw", { value: t }) : e.raw = t, e;
929
932
  }
930
- function Ve(e) {
933
+ function He(e) {
931
934
  if (e && e.__esModule) return e;
932
935
  var t = {};
933
936
  if (e != null) for (var n = V(e), r = 0; r < n.length; r++) n[r] !== "default" && B(t, e, n[r]);
934
- return Ye(t, e), t;
937
+ return Xe(t, e), t;
935
938
  }
936
- function He(e) {
939
+ function Ue(e) {
937
940
  return e && e.__esModule ? e : { default: e };
938
941
  }
939
- function Ue(e, t, n, r) {
942
+ function We(e, t, n, r) {
940
943
  if (n === "a" && !r) throw TypeError("Private accessor was defined without a getter");
941
944
  if (typeof t == "function" ? e !== t || !r : !t.has(e)) throw TypeError("Cannot read private member from an object whose class did not declare it");
942
945
  return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
943
946
  }
944
- function We(e, t, n, r, i) {
947
+ function Ge(e, t, n, r, i) {
945
948
  if (r === "m") throw TypeError("Private method is not writable");
946
949
  if (r === "a" && !i) throw TypeError("Private accessor was defined without a setter");
947
950
  if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw TypeError("Cannot write private member to an object whose class did not declare it");
948
951
  return r === "a" ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
949
952
  }
950
- function Ge(e, t) {
953
+ function Ke(e, t) {
951
954
  if (t === null || typeof t != "object" && typeof t != "function") throw TypeError("Cannot use 'in' operator on non-object");
952
955
  return typeof e == "function" ? t === e : e.has(t);
953
956
  }
954
- function Ke(e, t, n) {
957
+ function qe(e, t, n) {
955
958
  if (t != null) {
956
959
  if (typeof t != "object" && typeof t != "function") throw TypeError("Object expected.");
957
960
  var r, i;
@@ -978,9 +981,9 @@ function Ke(e, t, n) {
978
981
  } else n && e.stack.push({ async: !0 });
979
982
  return t;
980
983
  }
981
- function qe(e) {
984
+ function Je(e) {
982
985
  function t(t) {
983
- e.error = e.hasError ? new H(t, e.error, "An error was suppressed during disposal.") : t, e.hasError = !0;
986
+ e.error = e.hasError ? new Ze(t, e.error, "An error was suppressed during disposal.") : t, e.hasError = !0;
984
987
  }
985
988
  var n, r = 0;
986
989
  function i() {
@@ -1000,12 +1003,12 @@ function qe(e) {
1000
1003
  }
1001
1004
  return i();
1002
1005
  }
1003
- function Je(e, t) {
1006
+ function Ye(e, t) {
1004
1007
  return typeof e == "string" && /^\.\.?\//.test(e) ? e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(e, n, r, i, a) {
1005
1008
  return n ? t ? ".jsx" : ".js" : r && (!i || !a) ? e : r + i + "." + a.toLowerCase() + "js";
1006
1009
  }) : e;
1007
1010
  }
1008
- var R, z, B, Ye, V, H, Xe, U = y((() => {
1011
+ var R, z, B, Xe, V, Ze, Qe, H = ee((() => {
1009
1012
  R = function(e, t) {
1010
1013
  return R = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
1011
1014
  e.__proto__ = t;
@@ -1028,7 +1031,7 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
1028
1031
  }), Object.defineProperty(e, r, i);
1029
1032
  }) : (function(e, t, n, r) {
1030
1033
  r === void 0 && (r = n), e[r] = t[n];
1031
- }), Ye = Object.create ? (function(e, t) {
1034
+ }), Xe = Object.create ? (function(e, t) {
1032
1035
  Object.defineProperty(e, "default", {
1033
1036
  enumerable: !0,
1034
1037
  value: t
@@ -1041,44 +1044,44 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
1041
1044
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[t.length] = n);
1042
1045
  return t;
1043
1046
  }, V(e);
1044
- }, H = typeof SuppressedError == "function" ? SuppressedError : function(e, t, n) {
1047
+ }, Ze = typeof SuppressedError == "function" ? SuppressedError : function(e, t, n) {
1045
1048
  var r = Error(n);
1046
1049
  return r.name = "SuppressedError", r.error = e, r.suppressed = t, r;
1047
- }, Xe = {
1048
- __extends: M,
1050
+ }, Qe = {
1051
+ __extends: j,
1049
1052
  __assign: z,
1050
- __rest: N,
1051
- __decorate: P,
1052
- __param: Te,
1053
- __esDecorate: Ee,
1054
- __runInitializers: De,
1055
- __propKey: Oe,
1056
- __setFunctionName: ke,
1057
- __metadata: Ae,
1058
- __awaiter: je,
1059
- __generator: Me,
1053
+ __rest: M,
1054
+ __decorate: N,
1055
+ __param: P,
1056
+ __esDecorate: De,
1057
+ __runInitializers: Oe,
1058
+ __propKey: ke,
1059
+ __setFunctionName: Ae,
1060
+ __metadata: je,
1061
+ __awaiter: Me,
1062
+ __generator: Ne,
1060
1063
  __createBinding: B,
1061
- __exportStar: Ne,
1064
+ __exportStar: Pe,
1062
1065
  __values: F,
1063
1066
  __read: I,
1064
- __spread: Pe,
1065
- __spreadArrays: Fe,
1066
- __spreadArray: Ie,
1067
+ __spread: Fe,
1068
+ __spreadArrays: Ie,
1069
+ __spreadArray: Le,
1067
1070
  __await: L,
1068
- __asyncGenerator: Le,
1069
- __asyncDelegator: Re,
1070
- __asyncValues: ze,
1071
- __makeTemplateObject: Be,
1072
- __importStar: Ve,
1073
- __importDefault: He,
1074
- __classPrivateFieldGet: Ue,
1075
- __classPrivateFieldSet: We,
1076
- __classPrivateFieldIn: Ge,
1077
- __addDisposableResource: Ke,
1078
- __disposeResources: qe,
1079
- __rewriteRelativeImportExtension: Je
1071
+ __asyncGenerator: Re,
1072
+ __asyncDelegator: ze,
1073
+ __asyncValues: Be,
1074
+ __makeTemplateObject: Ve,
1075
+ __importStar: He,
1076
+ __importDefault: Ue,
1077
+ __classPrivateFieldGet: We,
1078
+ __classPrivateFieldSet: Ge,
1079
+ __classPrivateFieldIn: Ke,
1080
+ __addDisposableResource: qe,
1081
+ __disposeResources: Je,
1082
+ __rewriteRelativeImportExtension: Ye
1080
1083
  };
1081
- })), W = /* @__PURE__ */ b(((e) => {
1084
+ })), U = /* @__PURE__ */ y(((e) => {
1082
1085
  Object.defineProperty(e, "__esModule", { value: !0 }), e.TextApiResponse = e.BlobApiResponse = e.VoidApiResponse = e.JSONApiResponse = e.COLLECTION_FORMATS = e.RequiredError = e.FetchError = e.ResponseError = e.BaseAPI = e.DefaultConfig = e.Configuration = e.BASE_PATH = void 0, e.querystring = o, e.exists = c, e.canConsumeForm = l, e.BASE_PATH = "http://localhost:5000".replace(/\/+$/, "");
1083
1086
  var t = class {
1084
1087
  configuration;
@@ -1293,9 +1296,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
1293
1296
  return await this.raw.text();
1294
1297
  }
1295
1298
  };
1296
- })), Ze = /* @__PURE__ */ b(((e) => {
1299
+ })), $e = /* @__PURE__ */ y(((e) => {
1297
1300
  Object.defineProperty(e, "__esModule", { value: !0 }), e.AppConfigApi = void 0;
1298
- var t = W();
1301
+ var t = U();
1299
1302
  e.AppConfigApi = class extends t.BaseAPI {
1300
1303
  async getClientConfigRaw(e, n) {
1301
1304
  if (e.appId == null) throw new t.RequiredError("appId", "Required parameter \"appId\" was null or undefined when calling getClientConfig().");
@@ -1313,9 +1316,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
1313
1316
  return await (await this.getClientConfigRaw(e, t)).value();
1314
1317
  }
1315
1318
  };
1316
- })), Qe = /* @__PURE__ */ b(((e) => {
1319
+ })), et = /* @__PURE__ */ y(((e) => {
1317
1320
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ApplicationsApi = void 0;
1318
- var t = W();
1321
+ var t = U();
1319
1322
  e.ApplicationsApi = class extends t.BaseAPI {
1320
1323
  async createApplicationRaw(e, n) {
1321
1324
  if (e.createApplicationBodyDto == null) throw new t.RequiredError("createApplicationBodyDto", "Required parameter \"createApplicationBodyDto\" was null or undefined when calling createApplication().");
@@ -1407,9 +1410,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
1407
1410
  return await (await this.updateApplicationRaw(e, t)).value();
1408
1411
  }
1409
1412
  };
1410
- })), $e = /* @__PURE__ */ b(((e) => {
1413
+ })), tt = /* @__PURE__ */ y(((e) => {
1411
1414
  Object.defineProperty(e, "__esModule", { value: !0 }), e.AuthApi = void 0;
1412
- var t = W();
1415
+ var t = U();
1413
1416
  e.AuthApi = class extends t.BaseAPI {
1414
1417
  async callbackRaw(e, n) {
1415
1418
  if (e.providerId == null) throw new t.RequiredError("providerId", "Required parameter \"providerId\" was null or undefined when calling callback().");
@@ -1483,9 +1486,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
1483
1486
  await this.logoutRaw(e);
1484
1487
  }
1485
1488
  };
1486
- })), et = /* @__PURE__ */ b(((e) => {
1489
+ })), nt = /* @__PURE__ */ y(((e) => {
1487
1490
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ChatApi = void 0;
1488
- var t = W();
1491
+ var t = U();
1489
1492
  e.ChatApi = class extends t.BaseAPI {
1490
1493
  async sendCompletionRaw(e, n) {
1491
1494
  if (e.chatCompletionDto == null) throw new t.RequiredError("chatCompletionDto", "Required parameter \"chatCompletionDto\" was null or undefined when calling sendCompletion().");
@@ -1504,9 +1507,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
1504
1507
  return await (await this.sendCompletionRaw(e, t)).value();
1505
1508
  }
1506
1509
  };
1507
- })), tt = /* @__PURE__ */ b(((e) => {
1510
+ })), rt = /* @__PURE__ */ y(((e) => {
1508
1511
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ClientChannelApi = void 0;
1509
- var t = W();
1512
+ var t = U();
1510
1513
  e.ClientChannelApi = class extends t.BaseAPI {
1511
1514
  async reportClientChannelRaw(e, n) {
1512
1515
  if (e.xDialClientChannelId == null) throw new t.RequiredError("xDialClientChannelId", "Required parameter \"xDialClientChannelId\" was null or undefined when calling reportClientChannel().");
@@ -1555,9 +1558,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
1555
1558
  await this.unsubscribeClientChannelRaw(e, t);
1556
1559
  }
1557
1560
  };
1558
- })), nt = /* @__PURE__ */ b(((e) => {
1561
+ })), it = /* @__PURE__ */ y(((e) => {
1559
1562
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ConversationsApi = void 0;
1560
- var t = W();
1563
+ var t = U();
1561
1564
  e.ConversationsApi = class extends t.BaseAPI {
1562
1565
  async attachToGenerationRaw(e, n) {
1563
1566
  if (e.attachGenerationDto == null) throw new t.RequiredError("attachGenerationDto", "Required parameter \"attachGenerationDto\" was null or undefined when calling attachToGeneration().");
@@ -1867,9 +1870,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
1867
1870
  await this.watchConversationRaw(e, t);
1868
1871
  }
1869
1872
  };
1870
- })), rt = /* @__PURE__ */ b(((e) => {
1873
+ })), at = /* @__PURE__ */ y(((e) => {
1871
1874
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ListDeploymentsInterfaceTypeEnum = e.DeploymentsApi = void 0;
1872
- var t = W();
1875
+ var t = U();
1873
1876
  e.DeploymentsApi = class extends t.BaseAPI {
1874
1877
  async getDeploymentConfigurationRaw(e, n) {
1875
1878
  if (e.deployment == null) throw new t.RequiredError("deployment", "Required parameter \"deployment\" was null or undefined when calling getDeploymentConfiguration().");
@@ -1937,9 +1940,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
1937
1940
  CustomUi: "custom_ui",
1938
1941
  All: "all"
1939
1942
  };
1940
- })), it = /* @__PURE__ */ b(((e) => {
1943
+ })), ot = /* @__PURE__ */ y(((e) => {
1941
1944
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ExternalServicesApi = void 0;
1942
- var t = W();
1945
+ var t = U();
1943
1946
  e.ExternalServicesApi = class extends t.BaseAPI {
1944
1947
  async getExternalServiceRaw(e, n) {
1945
1948
  if (e.appId == null) throw new t.RequiredError("appId", "Required parameter \"appId\" was null or undefined when calling getExternalService().");
@@ -1998,9 +2001,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
1998
2001
  return await (await this.signOutExternalServiceRaw(e, t)).value();
1999
2002
  }
2000
2003
  };
2001
- })), at = /* @__PURE__ */ b(((e) => {
2004
+ })), st = /* @__PURE__ */ y(((e) => {
2002
2005
  Object.defineProperty(e, "__esModule", { value: !0 }), e.UploadFileUploadModeEnum = e.FilesApi = void 0;
2003
- var t = W();
2006
+ var t = U();
2004
2007
  e.FilesApi = class extends t.BaseAPI {
2005
2008
  async copyFilesRaw(e, n) {
2006
2009
  if (e.copyFilesDto == null) throw new t.RequiredError("copyFilesDto", "Required parameter \"copyFilesDto\" was null or undefined when calling copyFiles().");
@@ -2260,9 +2263,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
2260
2263
  Overwrite: "overwrite",
2261
2264
  CreateOnly: "create-only"
2262
2265
  };
2263
- })), ot = /* @__PURE__ */ b(((e) => {
2266
+ })), ct = /* @__PURE__ */ y(((e) => {
2264
2267
  Object.defineProperty(e, "__esModule", { value: !0 }), e.HealthApi = void 0;
2265
- var t = W();
2268
+ var t = U();
2266
2269
  e.HealthApi = class extends t.BaseAPI {
2267
2270
  async checkRaw(e) {
2268
2271
  let n = await this.request({
@@ -2277,9 +2280,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
2277
2280
  return await (await this.checkRaw(e)).value();
2278
2281
  }
2279
2282
  };
2280
- })), st = /* @__PURE__ */ b(((e) => {
2283
+ })), lt = /* @__PURE__ */ y(((e) => {
2281
2284
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ModelsApi = void 0;
2282
- var t = W();
2285
+ var t = U();
2283
2286
  e.ModelsApi = class extends t.BaseAPI {
2284
2287
  async getModelRaw(e, n) {
2285
2288
  if (e.modelName == null) throw new t.RequiredError("modelName", "Required parameter \"modelName\" was null or undefined when calling getModel().");
@@ -2309,9 +2312,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
2309
2312
  return await (await this.listModelsRaw(e)).value();
2310
2313
  }
2311
2314
  };
2312
- })), ct = /* @__PURE__ */ b(((e) => {
2315
+ })), ut = /* @__PURE__ */ y(((e) => {
2313
2316
  Object.defineProperty(e, "__esModule", { value: !0 }), e.OfflineCredentialsApi = void 0;
2314
- var t = W();
2317
+ var t = U();
2315
2318
  e.OfflineCredentialsApi = class extends t.BaseAPI {
2316
2319
  async getOfflineCredentialsRaw(e) {
2317
2320
  let n = await this.request({
@@ -2342,9 +2345,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
2342
2345
  return await (await this.signInOfflineCredentialsRaw(e, t)).value();
2343
2346
  }
2344
2347
  };
2345
- })), lt = /* @__PURE__ */ b(((e) => {
2348
+ })), dt = /* @__PURE__ */ y(((e) => {
2346
2349
  Object.defineProperty(e, "__esModule", { value: !0 }), e.PromptsApi = void 0;
2347
- var t = W();
2350
+ var t = U();
2348
2351
  e.PromptsApi = class extends t.BaseAPI {
2349
2352
  async createPromptRaw(e, n) {
2350
2353
  if (e.createPromptDto == null) throw new t.RequiredError("createPromptDto", "Required parameter \"createPromptDto\" was null or undefined when calling createPrompt().");
@@ -2520,9 +2523,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
2520
2523
  return await (await this.updatePromptRaw(e, t)).value();
2521
2524
  }
2522
2525
  };
2523
- })), ut = /* @__PURE__ */ b(((e) => {
2526
+ })), ft = /* @__PURE__ */ y(((e) => {
2524
2527
  Object.defineProperty(e, "__esModule", { value: !0 }), e.UnpublishCatalogEntityEntityTypeEnum = e.PublishCatalogEntityEntityTypeEnum = e.GetCatalogPublishHistoryEntityTypeEnum = e.PublishApi = void 0;
2525
- var t = W();
2528
+ var t = U();
2526
2529
  e.PublishApi = class extends t.BaseAPI {
2527
2530
  async getCatalogPublishHistoryRaw(e, n) {
2528
2531
  if (e.entityType == null) throw new t.RequiredError("entityType", "Required parameter \"entityType\" was null or undefined when calling getCatalogPublishHistory().");
@@ -2614,9 +2617,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
2614
2617
  Prompt: "prompt",
2615
2618
  Skill: "skill"
2616
2619
  };
2617
- })), dt = /* @__PURE__ */ b(((e) => {
2620
+ })), pt = /* @__PURE__ */ y(((e) => {
2618
2621
  Object.defineProperty(e, "__esModule", { value: !0 }), e.RateApi = void 0;
2619
- var t = W();
2622
+ var t = U();
2620
2623
  e.RateApi = class extends t.BaseAPI {
2621
2624
  async rateMessageRaw(e, n) {
2622
2625
  if (e.rateMessageDto == null) throw new t.RequiredError("rateMessageDto", "Required parameter \"rateMessageDto\" was null or undefined when calling rateMessage().");
@@ -2635,9 +2638,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
2635
2638
  await this.rateMessageRaw(e, t);
2636
2639
  }
2637
2640
  };
2638
- })), ft = /* @__PURE__ */ b(((e) => {
2641
+ })), mt = /* @__PURE__ */ y(((e) => {
2639
2642
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ListScheduledTasksSortEnum = e.ScheduledTasksApi = void 0;
2640
- var t = W();
2643
+ var t = U();
2641
2644
  e.ScheduledTasksApi = class extends t.BaseAPI {
2642
2645
  async createScheduledTaskRaw(e, n) {
2643
2646
  if (e.createScheduledTaskBodyDto == null) throw new t.RequiredError("createScheduledTaskBodyDto", "Required parameter \"createScheduledTaskBodyDto\" was null or undefined when calling createScheduledTask().");
@@ -2771,9 +2774,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
2771
2774
  Newest: "newest",
2772
2775
  NameAz: "nameAZ"
2773
2776
  };
2774
- })), pt = /* @__PURE__ */ b(((e) => {
2777
+ })), ht = /* @__PURE__ */ y(((e) => {
2775
2778
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ShareApi = void 0;
2776
- var t = W();
2779
+ var t = U();
2777
2780
  e.ShareApi = class extends t.BaseAPI {
2778
2781
  async acceptInvitationRaw(e, n) {
2779
2782
  if (e.invitationId == null) throw new t.RequiredError("invitationId", "Required parameter \"invitationId\" was null or undefined when calling acceptInvitation().");
@@ -2854,9 +2857,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
2854
2857
  return await (await this.revokeSharedAccessRaw(e, t)).value();
2855
2858
  }
2856
2859
  };
2857
- })), mt = /* @__PURE__ */ b(((e) => {
2860
+ })), gt = /* @__PURE__ */ y(((e) => {
2858
2861
  Object.defineProperty(e, "__esModule", { value: !0 }), e.SkillsApi = void 0;
2859
- var t = W();
2862
+ var t = U();
2860
2863
  e.SkillsApi = class extends t.BaseAPI {
2861
2864
  async createSkillRaw(e, n) {
2862
2865
  if (e.bucket == null) throw new t.RequiredError("bucket", "Required parameter \"bucket\" was null or undefined when calling createSkill().");
@@ -3104,9 +3107,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
3104
3107
  return await (await this.uploadSkillFileRaw(e, t)).value();
3105
3108
  }
3106
3109
  };
3107
- })), ht = /* @__PURE__ */ b(((e) => {
3110
+ })), _t = /* @__PURE__ */ y(((e) => {
3108
3111
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ThemesApi = void 0;
3109
- var t = W();
3112
+ var t = U();
3110
3113
  e.ThemesApi = class extends t.BaseAPI {
3111
3114
  async getThemeIconRaw(e, n) {
3112
3115
  if (e.iconName == null) throw new t.RequiredError("iconName", "Required parameter \"iconName\" was null or undefined when calling getThemeIcon().");
@@ -3136,9 +3139,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
3136
3139
  return await (await this.getThemesRaw(e)).value();
3137
3140
  }
3138
3141
  };
3139
- })), gt = /* @__PURE__ */ b(((e) => {
3142
+ })), vt = /* @__PURE__ */ y(((e) => {
3140
3143
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ListMcpToolNamesKindEnum = e.ListMcpAppToolsKindEnum = e.ToolsetsApi = void 0;
3141
- var t = W();
3144
+ var t = U();
3142
3145
  e.ToolsetsApi = class extends t.BaseAPI {
3143
3146
  async callToolsetMcpAppToolRaw(e, n) {
3144
3147
  if (e.toolsetName == null) throw new t.RequiredError("toolsetName", "Required parameter \"toolsetName\" was null or undefined when calling callToolsetMcpAppTool().");
@@ -3331,9 +3334,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
3331
3334
  Toolset: "toolset",
3332
3335
  Application: "application"
3333
3336
  };
3334
- })), _t = /* @__PURE__ */ b(((e) => {
3337
+ })), yt = /* @__PURE__ */ y(((e) => {
3335
3338
  Object.defineProperty(e, "__esModule", { value: !0 }), e.TranscriptionApi = void 0;
3336
- var t = W();
3339
+ var t = U();
3337
3340
  e.TranscriptionApi = class extends t.BaseAPI {
3338
3341
  async transcribeAudioRaw(e, n) {
3339
3342
  if (e.transcribeAudioDto == null) throw new t.RequiredError("transcribeAudioDto", "Required parameter \"transcribeAudioDto\" was null or undefined when calling transcribeAudio().");
@@ -3352,9 +3355,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
3352
3355
  return await (await this.transcribeAudioRaw(e, t)).value();
3353
3356
  }
3354
3357
  };
3355
- })), vt = /* @__PURE__ */ b(((e) => {
3358
+ })), bt = /* @__PURE__ */ y(((e) => {
3356
3359
  Object.defineProperty(e, "__esModule", { value: !0 }), e.UserApi = void 0;
3357
- var t = W();
3360
+ var t = U();
3358
3361
  e.UserApi = class extends t.BaseAPI {
3359
3362
  async getUserLimitsRaw(e) {
3360
3363
  let n = await this.request({
@@ -3381,9 +3384,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
3381
3384
  return await (await this.getUserUsageRaw(e)).value();
3382
3385
  }
3383
3386
  };
3384
- })), yt = /* @__PURE__ */ b(((e) => {
3387
+ })), xt = /* @__PURE__ */ y(((e) => {
3385
3388
  Object.defineProperty(e, "__esModule", { value: !0 }), e.UserConfigApi = void 0;
3386
- var t = W();
3389
+ var t = U();
3387
3390
  e.UserConfigApi = class extends t.BaseAPI {
3388
3391
  async getUserConfigRaw(e) {
3389
3392
  let n = await this.request({
@@ -3494,11 +3497,11 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
3494
3497
  await this.updateSelectedDeploymentRaw(e, t);
3495
3498
  }
3496
3499
  };
3497
- })), bt = /* @__PURE__ */ b(((e) => {
3500
+ })), St = /* @__PURE__ */ y(((e) => {
3498
3501
  Object.defineProperty(e, "__esModule", { value: !0 });
3499
- var t = (U(), x(j));
3500
- t.__exportStar(Ze(), e), t.__exportStar(Qe(), e), t.__exportStar($e(), e), t.__exportStar(et(), e), t.__exportStar(tt(), e), t.__exportStar(nt(), e), t.__exportStar(rt(), e), t.__exportStar(it(), e), t.__exportStar(at(), e), t.__exportStar(ot(), e), t.__exportStar(st(), e), t.__exportStar(ct(), e), t.__exportStar(lt(), e), t.__exportStar(ut(), e), t.__exportStar(dt(), e), t.__exportStar(ft(), e), t.__exportStar(pt(), e), t.__exportStar(mt(), e), t.__exportStar(ht(), e), t.__exportStar(gt(), e), t.__exportStar(_t(), e), t.__exportStar(vt(), e), t.__exportStar(yt(), e);
3501
- })), xt = /* @__PURE__ */ b(((e) => {
3502
+ var t = (H(), b(A));
3503
+ t.__exportStar($e(), e), t.__exportStar(et(), e), t.__exportStar(tt(), e), t.__exportStar(nt(), e), t.__exportStar(rt(), e), t.__exportStar(it(), e), t.__exportStar(at(), e), t.__exportStar(ot(), e), t.__exportStar(st(), e), t.__exportStar(ct(), e), t.__exportStar(lt(), e), t.__exportStar(ut(), e), t.__exportStar(dt(), e), t.__exportStar(ft(), e), t.__exportStar(pt(), e), t.__exportStar(mt(), e), t.__exportStar(ht(), e), t.__exportStar(gt(), e), t.__exportStar(_t(), e), t.__exportStar(vt(), e), t.__exportStar(yt(), e), t.__exportStar(bt(), e), t.__exportStar(xt(), e);
3504
+ })), Ct = /* @__PURE__ */ y(((e) => {
3502
3505
  Object.defineProperty(e, "__esModule", { value: !0 }), e.UpdatedScheduledTaskDtoTriggerTypeEnum = e.UnpublishResultDtoEntityTypeEnum = e.ToolsetLogoutBodyDtoAuthenticationTypeEnum = e.ToolsetLogoutBodyDtoCredentialsLevelEnum = e.ToolsetLoginBodyDtoAuthenticationTypeEnum = e.ToolsetLoginBodyDtoCredentialsLevelEnum = e.ToolsetBodyDtoTransportEnum = e.ToolsetAuthSettingsDtoUserLevelAuthStatusEnum = e.ToolsetAuthSettingsDtoAppLevelAuthStatusEnum = e.ToolsetAuthSettingsDtoGlobalAuthStatusEnum = e.ToolsetAuthSettingsDtoAuthenticationTypeEnum = e.ToolsetAuthSettingsBodyDtoAuthenticationTypeEnum = e.SkillMetadataItemDtoNodeTypeEnum = e.ShareLinkResponseDtoAccessEnum = e.SendCompletionDtoModeEnum = e.ScheduledTaskRunDtoStatusEnum = e.ScheduledTaskDtoTriggerTypeEnum = e.ReportClientChannelDtoResultEnum = e.RenameItemDtoNodeTypeEnum = e.RateMessageDtoRateEnum = e.PublishRuleDtoFunctionEnum = e.PublishResultDtoEntityTypeEnum = e.PublishHistoryEntryDtoEntityTypeEnum = e.MoveItemDtoNodeTypeEnum = e.MessageDtoRoleEnum = e.McpAppToolCallRequestDtoKindEnum = e.ListFilesItemDtoNodeTypeEnum = e.GetExternalServiceResponseDtoAuthenticationTypeEnum = e.ExternalServiceSigninBodyDtoAuthenticationTypeEnum = e.ExternalServiceSigninBodyDtoCredentialsLevelEnum = e.ExternalServiceLogoutBodyDtoAuthenticationTypeEnum = e.ExternalServiceLogoutBodyDtoCredentialsLevelEnum = e.DialToolsetAuthSettingsDtoUserLevelAuthStatusEnum = e.DialToolsetAuthSettingsDtoGlobalAuthStatusEnum = e.DialToolsetAuthSettingsDtoAuthenticationTypeEnum = e.DeploymentItemDtoTypeEnum = e.DeploymentDetailsDtoTypeEnum = e.DeleteItemDtoNodeTypeEnum = e.CreatedScheduledTaskDtoTriggerTypeEnum = e.CreateShareLinkDtoAccessEnum = e.CopyItemDtoNodeTypeEnum = e.ConversationResponseDtoResponseFormatEnum = e.ConversationMessageDtoRoleEnum = e.ConversationMessageCustomContentDtoEventTypeEnum = e.ConversationDeletionFailureDtoCodeEnum = e.ClientConfigDtoMcpAppThemeEnum = e.ArchiveItemDtoNodeTypeEnum = void 0, e.ArchiveItemDtoNodeTypeEnum = {
3503
3506
  Item: "item",
3504
3507
  Folder: "folder"
@@ -3670,13 +3673,13 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
3670
3673
  Cron: "cron",
3671
3674
  Date: "date"
3672
3675
  };
3673
- })), St = /* @__PURE__ */ b(((e) => {
3676
+ })), wt = /* @__PURE__ */ y(((e) => {
3674
3677
  Object.defineProperty(e, "__esModule", { value: !0 });
3675
- var t = (U(), x(j));
3676
- t.__exportStar(W(), e), t.__exportStar(bt(), e), t.__exportStar(xt(), e);
3677
- })), Ct = (/* @__PURE__ */ b(((e) => {
3678
- Object.defineProperty(e, "__esModule", { value: !0 }), (U(), x(j)).__exportStar(St(), e);
3679
- })))(), G = 2 ** 53, wt = 75, Tt = new Intl.NumberFormat(void 0, {
3678
+ var t = (H(), b(A));
3679
+ t.__exportStar(U(), e), t.__exportStar(St(), e), t.__exportStar(Ct(), e);
3680
+ })), Tt = (/* @__PURE__ */ y(((e) => {
3681
+ Object.defineProperty(e, "__esModule", { value: !0 }), (H(), b(A)).__exportStar(wt(), e);
3682
+ })))(), W = 2 ** 53, Et = 75, G = new Intl.NumberFormat(void 0, {
3680
3683
  notation: "compact",
3681
3684
  maximumFractionDigits: 1
3682
3685
  }), K = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), q = {
@@ -3718,13 +3721,13 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
3718
3721
  field: "monthCostStats",
3719
3722
  labelKey: q.thisMonthPeriodDescription
3720
3723
  }
3721
- }, X = (e) => e != null && Number.isFinite(e.total) && Number.isFinite(e.used), Z = (e) => e >= 100 ? w.LimitReached : e >= wt ? w.RunningLow : w.WithinLimits, Et = (e) => {
3724
+ }, X = (e) => e != null && Number.isFinite(e.total) && Number.isFinite(e.used), Z = (e) => e >= 100 ? w.LimitReached : e >= Et ? w.RunningLow : w.WithinLimits, Dt = (e) => {
3722
3725
  if (!X(e)) return w.Unavailable;
3723
- if (e.total >= G) return w.NoLimit;
3726
+ if (e.total >= W) return w.NoLimit;
3724
3727
  let t = Math.max(0, e.used), n = Math.max(0, e.total);
3725
3728
  return Z(n > 0 ? t / n * 100 : 100);
3726
- }, Dt = (e) => e === w.WithinLimits || e === w.RunningLow || e === w.LimitReached, Q = (e, t, n, r, i) => {
3727
- let a = e?.[t.field], o = Et(a), s = i(a?.resetsAt), c = r(t.labelKey).toLocaleLowerCase(n);
3729
+ }, Ot = (e) => e === w.WithinLimits || e === w.RunningLow || e === w.LimitReached, Q = (e, t, n, r, i) => {
3730
+ let a = e?.[t.field], o = Dt(a), s = i(a?.resetsAt), c = r(t.labelKey).toLocaleLowerCase(n);
3728
3731
  return {
3729
3732
  status: o,
3730
3733
  tooltipLabel: o === w.LimitReached ? r(q.overallCostLimitReachedTooltip, { period: c }) : o === w.RunningLow ? r(q.overallCostLimitRunningLowTooltip, { period: c }) : void 0,
@@ -3734,18 +3737,18 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
3734
3737
  resetAriaLabel: s.ariaLabel
3735
3738
  } : {}
3736
3739
  };
3737
- }, Ot = () => void 0, kt = (e, t, n, r = Ot) => ({
3740
+ }, kt = () => void 0, At = (e, t, n, r = kt) => ({
3738
3741
  day: Q(e, Y.day, t, n, r),
3739
3742
  week: Q(e, Y.week, t, n, r),
3740
3743
  month: Q(e, Y.month, t, n, r)
3741
- }), At = (e) => ({
3744
+ }), jt = (e) => ({
3742
3745
  kind: T.Unavailable,
3743
3746
  ariaLabel: e(q.unavailableLabel)
3744
- }), jt = (e, t, n) => {
3745
- if (!X(e)) return At(n);
3746
- let r = Math.max(0, e.used), i = Tt.format(r);
3747
- if (e.total >= G) {
3748
- let e = Dt(t);
3747
+ }), Mt = (e, t, n) => {
3748
+ if (!X(e)) return jt(n);
3749
+ let r = Math.max(0, e.used), i = G.format(r);
3750
+ if (e.total >= W) {
3751
+ let e = Ot(t);
3749
3752
  return {
3750
3753
  kind: T.Unlimited,
3751
3754
  usedLabel: i,
@@ -3753,7 +3756,7 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
3753
3756
  ariaLabel: n(e ? q.followsCostLimitAriaLabel : q.unlimitedProgressAriaLabel, { used: K.format(r) })
3754
3757
  };
3755
3758
  }
3756
- let a = Math.max(e.total, 0), o = Tt.format(a), s = a > 0 ? r / a * 100 : 100, c = Z(s);
3759
+ let a = Math.max(e.total, 0), o = G.format(a), s = a > 0 ? r / a * 100 : 100, c = Z(s);
3757
3760
  return {
3758
3761
  kind: T.Finite,
3759
3762
  usedLabel: i,
@@ -3766,10 +3769,10 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
3766
3769
  percent: Math.round(s)
3767
3770
  })
3768
3771
  };
3769
- }, Mt = (e, t) => {
3770
- if (!X(e)) return At(t);
3772
+ }, Nt = (e, t) => {
3773
+ if (!X(e)) return jt(t);
3771
3774
  let n = Math.max(0, e.used), r = t(q.spentLabel, { amount: i(n) });
3772
- if (e.total >= G) return {
3775
+ if (e.total >= W) return {
3773
3776
  kind: T.Unlimited,
3774
3777
  usedLabel: r,
3775
3778
  ariaLabel: r
@@ -3788,19 +3791,19 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
3788
3791
  })
3789
3792
  };
3790
3793
  }, $ = (e, t, n, r) => ({
3791
- tokens: jt(e[t.tokens], n, r),
3792
- cost: Mt(e[t.cost], r)
3793
- }), Nt = (e) => e.filter((e) => e.kind === T.Finite).map((e) => e.status), Pt = (e, t, n) => {
3794
+ tokens: Mt(e[t.tokens], n, r),
3795
+ cost: Nt(e[t.cost], r)
3796
+ }), Pt = (e) => e.filter((e) => e.kind === T.Finite).map((e) => e.status), Ft = (e, t, n) => {
3794
3797
  let r = [
3795
- ...Nt(e),
3796
- ...Nt(t),
3798
+ ...Pt(e),
3799
+ ...Pt(t),
3797
3800
  ...n
3798
- ].filter((e) => e != null && Dt(e));
3801
+ ].filter((e) => e != null && Ot(e));
3799
3802
  return r.includes(w.LimitReached) ? w.LimitReached : r.includes(w.RunningLow) ? w.RunningLow : r.includes(w.WithinLimits) ? w.WithinLimits : e.some((e) => e.kind === T.Unlimited) || n.includes(w.NoLimit) ? w.NoLimit : w.Unavailable;
3800
- }, Ft = (e) => e.some((e) => X(e) && e.used > 0), It = (e, t, n, r, i, a) => {
3803
+ }, It = (e) => e.some((e) => X(e) && e.used > 0), Lt = (e, t, n, r, i, a) => {
3801
3804
  let o = e?.deployments;
3802
3805
  if (o == null) return [];
3803
- let s = new Map(t.filter((e) => e.type === Ct.DeploymentItemDtoTypeEnum.Model).map((e) => [e.id, e])), c = kt(e, n, r);
3806
+ let s = new Map(t.filter((e) => e.type === Tt.DeploymentItemDtoTypeEnum.Model).map((e) => [e.id, e])), c = At(e, n, r);
3804
3807
  return Object.keys(o).map((e) => {
3805
3808
  let t = s.get(e), l = t == null ? e : a(t.displayName, n) || t.id, u = o[e], d = i(t?.iconUrl), f = $(u, J.day, c.day.status, r), p = $(u, J.week, c.week.status, r), m = $(u, J.month, c.month.status, r), h = Object.values(J).flatMap(({ cost: e, tokens: t }) => [u[e], u[t]]);
3806
3809
  return {
@@ -3812,7 +3815,7 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
3812
3815
  day: f,
3813
3816
  week: p,
3814
3817
  month: m,
3815
- status: Pt([
3818
+ status: Ft([
3816
3819
  f.tokens,
3817
3820
  p.tokens,
3818
3821
  m.tokens
@@ -3826,9 +3829,9 @@ var R, z, B, Ye, V, H, Xe, U = y((() => {
3826
3829
  c.month.status
3827
3830
  ])
3828
3831
  },
3829
- hasUsage: Ft(h)
3832
+ hasUsage: It(h)
3830
3833
  };
3831
3834
  }).filter(({ hasUsage: e }) => e).map(({ row: e }) => e);
3832
3835
  };
3833
3836
  //#endregion
3834
- export { T as ModelLimitMetricKind, w as ModelLimitStatus, _e as ModelLimitsSection, A as USAGE_DATA_I18N_KEYS, q as USAGE_MODEL_LIMITS_I18N_KEYS, re as UsageLimitCard, ie as UsageLimitCardGroup, S as UsageLimitStatus, kt as mapOverallCostLimitsToPeriodStatuses, we as mapUsageDataToDashboard, It as mapUserUsageToModelLimits };
3837
+ export { T as ModelLimitMetricKind, w as ModelLimitStatus, ye as ModelLimitsSection, x as USAGE_DASHBOARD_CLASS, k as USAGE_DATA_I18N_KEYS, q as USAGE_MODEL_LIMITS_I18N_KEYS, ie as UsageLimitCard, ae as UsageLimitCardGroup, S as UsageLimitStatus, At as mapOverallCostLimitsToPeriodStatuses, Ee as mapUsageDataToDashboard, Lt as mapUserUsageToModelLimits };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-usage-dashboard",
3
3
  "description": "Presentational aggregate cost-limit cards for the Usage settings dashboard",
4
- "version": "1.2.0-dev.46",
4
+ "version": "1.2.0-dev.50",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -18,11 +18,11 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@tabler/icons-react": "^3.44.0",
21
- "@epam/ai-dial-chat-api-client": "1.2.0-dev.46"
21
+ "@epam/ai-dial-chat-api-client": "1.2.0-dev.50"
22
22
  },
23
23
  "peerDependencies": {
24
- "@epam/ai-dial-chat-shared": "1.2.0-dev.46",
25
- "@epam/ai-dial-ui-kit": "^0.14.2",
24
+ "@epam/ai-dial-chat-shared": "1.2.0-dev.50",
25
+ "@epam/ai-dial-ui-kit": "^0.15.0-dev.7",
26
26
  "react": "^19.2.8"
27
27
  },
28
28
  "repository": {