@epam/ai-dial-usage-dashboard 1.1.0-dev.479 → 1.1.0-dev.487

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 CHANGED
@@ -3,22 +3,22 @@ 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, ee = Object.getOwnPropertyNames, _ = Object.prototype.hasOwnProperty, te = (e, t) => () => (e && (t = e(e = 0)), t), v = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ne = (e, t) => {
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) => {
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
- }, re = (e, t, n, r) => {
14
- if (t && typeof t == "object" || typeof t == "function") for (var i = ee(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !_.call(e, s) && s !== n && h(e, s, {
13
+ }, te = (e, t, n, r) => {
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
- }, y = (e) => _.call(e, "module.exports") ? e["module.exports"] : re(h({}, "__esModule", { value: !0 }), e), b = /* @__PURE__ */ function(e) {
19
+ }, x = (e) => v.call(e, "module.exports") ? e["module.exports"] : te(h({}, "__esModule", { value: !0 }), e), S = /* @__PURE__ */ function(e) {
20
20
  return e.Default = "default", e.RunningLow = "runningLow", e.LimitReached = "limitReached", e;
21
- }({}), x = {
21
+ }({}), C = {
22
22
  card: "_card_97w0r_1",
23
23
  title: "_title_97w0r_5",
24
24
  secondaryAmount: "_secondaryAmount_97w0r_9",
@@ -34,14 +34,14 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, ee = Object.
34
34
  defaultBadge: "_defaultBadge_97w0r_54",
35
35
  warningBadge: "_warningBadge_97w0r_59",
36
36
  errorBadge: "_errorBadge_97w0r_64"
37
- }, ie = (e, t) => {
37
+ }, ne = (e, t) => {
38
38
  switch (e) {
39
- case b.RunningLow: return t.runningLowBadgeLabel;
40
- case b.LimitReached: return t.limitReachedBadgeLabel;
41
- case b.Default: return t.defaultBadgeLabel;
39
+ case S.RunningLow: return t.runningLowBadgeLabel;
40
+ case S.LimitReached: return t.limitReachedBadgeLabel;
41
+ case S.Default: return t.defaultBadgeLabel;
42
42
  }
43
- }, ae = ({ data: e, labels: t, styles: n }) => {
44
- 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" } = s ?? {}, ee = r({
43
+ }, re = ({ data: e, labels: t, styles: n }) => {
44
+ 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
45
  "--uld-card-bg": i?.cardBackground,
46
46
  "--uld-title": i?.titleColor,
47
47
  "--uld-default-accent": i?.defaultAccentColor,
@@ -59,64 +59,79 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, ee = Object.
59
59
  "--uld-error-badge-bg": i?.errorBadgeBackground,
60
60
  "--uld-error-badge-text": i?.errorBadgeColor,
61
61
  "--uld-used-percent-label": i?.usedPercentLabelColor
62
- }), _ = ie(e.status, t);
62
+ }), y = ne(e.status, t);
63
63
  return /* @__PURE__ */ f("div", {
64
- className: a("flex min-w-0 flex-col gap-4 rounded-xl px-6 py-5 shadow-md", x.card),
65
- style: ee,
64
+ className: a("flex min-w-0 flex-col gap-4 rounded-xl px-6 py-5 shadow-md", C.card),
65
+ style: v,
66
66
  role: "group",
67
67
  "aria-label": `${e.title}, ${e.periodDescription}`,
68
68
  children: [/* @__PURE__ */ f("div", {
69
69
  className: "flex items-center justify-between gap-2",
70
70
  children: [/* @__PURE__ */ d("p", {
71
- className: a("m-0", l, x.title),
71
+ className: a("m-0", l, C.title),
72
72
  children: e.title
73
73
  }), /* @__PURE__ */ d("span", {
74
- className: a("shrink-0 rounded-full px-2 py-1", h, e.status === b.Default && x.defaultBadge, e.status === b.RunningLow && x.warningBadge, e.status === b.LimitReached && x.errorBadge),
75
- children: _
74
+ 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
76
76
  })]
77
77
  }), /* @__PURE__ */ f("div", {
78
78
  className: "flex flex-col gap-2",
79
- children: [/* @__PURE__ */ f("p", {
80
- className: "m-0 flex flex-wrap items-baseline gap-2",
81
- children: [/* @__PURE__ */ d("span", {
82
- className: a(p, x.amount, e.status === b.Default && x.defaultAccent, e.status === b.RunningLow && x.warningAccent, e.status === b.LimitReached && x.errorAccent),
83
- children: e.usedLabel
84
- }), !e.isUnlimited && e.totalLabel != null && /* @__PURE__ */ d("span", {
85
- className: a(m, x.secondaryAmount),
86
- children: t.usedOfTotalLabel({ total: e.totalLabel })
87
- })]
88
- }), !e.isUnlimited && e.usedPercent != null && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(c, {
89
- value: Math.min(e.usedPercent, 100),
90
- max: 100,
91
- size: o.Small,
92
- className: a("!h-1 w-full", x.progressTrack, e.status === b.Default && x.progressFillDefault, e.status === b.RunningLow && x.progressFillWarning, e.status === b.LimitReached && x.progressFillDanger),
93
- "aria-label": e.title,
94
- "aria-valuetext": e.progressAriaLabel
95
- }), /* @__PURE__ */ f("div", {
96
- className: "flex items-center justify-between gap-2",
97
- children: [e.remainingLabel != null && /* @__PURE__ */ d("span", {
98
- className: a(m, x.secondaryAmount),
99
- children: t.remainingCaptionLabel({ remaining: e.remainingLabel })
100
- }), /* @__PURE__ */ d("span", {
101
- className: a("ms-auto", g, x.usedPercentLabel),
102
- children: t.usedPercentLabel({ percent: Math.min(Math.round(e.usedPercent), 100) })
103
- })]
104
- })] })]
79
+ children: [
80
+ /* @__PURE__ */ f("p", {
81
+ className: "m-0 flex flex-wrap items-baseline gap-2",
82
+ children: [/* @__PURE__ */ d("span", {
83
+ className: a(p, C.amount, e.status === S.Default && C.defaultAccent, e.status === S.RunningLow && C.warningAccent, e.status === S.LimitReached && C.errorAccent),
84
+ children: e.usedLabel
85
+ }), !e.isUnlimited && e.totalLabel != null && /* @__PURE__ */ d("span", {
86
+ className: a(m, C.secondaryAmount),
87
+ children: t.usedOfTotalLabel({ total: e.totalLabel })
88
+ })]
89
+ }),
90
+ !e.isUnlimited && e.usedPercent != null && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(c, {
91
+ value: Math.min(e.usedPercent, 100),
92
+ max: 100,
93
+ size: o.Small,
94
+ className: a("!h-1 w-full", C.progressTrack, e.status === S.Default && C.progressFillDefault, e.status === S.RunningLow && C.progressFillWarning, e.status === S.LimitReached && C.progressFillDanger),
95
+ "aria-label": e.title,
96
+ "aria-valuetext": e.progressAriaLabel
97
+ }), /* @__PURE__ */ f("div", {
98
+ className: "flex items-center justify-between gap-2",
99
+ children: [e.remainingLabel != null && /* @__PURE__ */ d("span", {
100
+ className: a(m, C.secondaryAmount),
101
+ children: t.remainingCaptionLabel({ remaining: e.remainingLabel })
102
+ }), /* @__PURE__ */ d("span", {
103
+ className: a("ms-auto", g, C.usedPercentLabel),
104
+ children: t.usedPercentLabel({ percent: Math.min(Math.round(e.usedPercent), 100) })
105
+ })]
106
+ })] }),
107
+ e.resetLabel != null && /* @__PURE__ */ f("span", {
108
+ className: "contents",
109
+ children: [/* @__PURE__ */ d("time", {
110
+ dateTime: e.resetIsoValue,
111
+ "aria-hidden": e.resetAriaLabel != null || void 0,
112
+ className: a("block break-words", _, C.secondaryAmount),
113
+ children: e.resetLabel
114
+ }), e.resetAriaLabel != null && /* @__PURE__ */ d("span", {
115
+ className: "sr-only",
116
+ children: e.resetAriaLabel
117
+ })]
118
+ })
119
+ ]
105
120
  })]
106
121
  });
107
- }, oe = ({ cards: e, labels: t, styles: n }) => e.length === 0 ? null : /* @__PURE__ */ d("div", {
122
+ }, ie = ({ cards: e, labels: t, styles: n }) => e.length === 0 ? null : /* @__PURE__ */ d("div", {
108
123
  className: "grid grid-cols-1 gap-4 desktop:grid-cols-[repeat(var(--uld-card-count),minmax(0,1fr))]",
109
124
  style: { "--uld-card-count": e.length },
110
- children: e.map((e) => /* @__PURE__ */ d(ae, {
125
+ children: e.map((e) => /* @__PURE__ */ d(re, {
111
126
  data: e,
112
127
  labels: t,
113
128
  styles: n
114
129
  }, e.title))
115
- }), S = /* @__PURE__ */ function(e) {
130
+ }), w = /* @__PURE__ */ function(e) {
116
131
  return e.WithinLimits = "within-limits", e.RunningLow = "running-low", e.LimitReached = "limit-reached", e.NoLimit = "no-limit", e.Unavailable = "unavailable", e;
117
- }({}), C = /* @__PURE__ */ function(e) {
132
+ }({}), T = /* @__PURE__ */ function(e) {
118
133
  return e.Finite = "finite", e.Unlimited = "unlimited", e.Unavailable = "unavailable", e;
119
- }({}), w = {
134
+ }({}), E = {
120
135
  container: "_container_jkj20_1",
121
136
  heading: "_heading_jkj20_5",
122
137
  headingCount: "_headingCount_jkj20_9",
@@ -139,15 +154,15 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, ee = Object.
139
154
  warningBadge: "_warningBadge_jkj20_87",
140
155
  errorBadge: "_errorBadge_jkj20_92",
141
156
  neutralStatus: "_neutralStatus_jkj20_97"
142
- }, se = (e) => {
157
+ }, ae = (e) => {
143
158
  switch (e) {
144
- case S.RunningLow: return w.progressFillWarning;
145
- case S.LimitReached: return w.progressFillError;
146
- default: return w.progressFillDefault;
159
+ case w.RunningLow: return E.progressFillWarning;
160
+ case w.LimitReached: return E.progressFillError;
161
+ default: return E.progressFillDefault;
147
162
  }
148
- }, ce = ({ cell: e, label: t, progressAriaLabel: n, showProgress: r, labels: i, typography: s }) => {
163
+ }, oe = ({ cell: e, label: t, progressAriaLabel: n, showProgress: r, labels: i, typography: s }) => {
149
164
  let { valueClassName: l = "dial-small-text", secondaryValueClassName: u = "dial-tiny-text" } = s, p = /* @__PURE__ */ d("span", {
150
- className: a(l, w.value),
165
+ className: a(l, E.value),
151
166
  children: e.usedLabel
152
167
  });
153
168
  return /* @__PURE__ */ f("div", {
@@ -157,28 +172,28 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, ee = Object.
157
172
  className: "sr-only",
158
173
  children: [t, ": "]
159
174
  }),
160
- e.kind === C.Unlimited && /* @__PURE__ */ d("div", {
175
+ e.kind === T.Unlimited && /* @__PURE__ */ d("div", {
161
176
  className: "flex min-w-0 items-start gap-2",
162
177
  role: "group",
163
178
  "aria-label": n,
164
179
  children: /* @__PURE__ */ f("div", {
165
180
  className: "flex min-w-0 flex-col gap-1",
166
181
  children: [p, /* @__PURE__ */ d("span", {
167
- className: a(u, w.secondaryValue),
182
+ className: a(u, E.secondaryValue),
168
183
  children: e.supportingLabel ?? i.noLimitLabel
169
184
  })]
170
185
  })
171
186
  }),
172
- e.kind === C.Unavailable && /* @__PURE__ */ d("div", {
187
+ e.kind === T.Unavailable && /* @__PURE__ */ d("div", {
173
188
  className: "flex min-w-0 items-baseline gap-2",
174
189
  role: "group",
175
190
  "aria-label": n,
176
191
  children: /* @__PURE__ */ d("span", {
177
- className: a(u, w.secondaryValue),
192
+ className: a(u, E.secondaryValue),
178
193
  children: i.unavailableLabel
179
194
  })
180
195
  }),
181
- e.kind === C.Finite && /* @__PURE__ */ f("div", {
196
+ e.kind === T.Finite && /* @__PURE__ */ f("div", {
182
197
  className: "flex min-w-0 flex-col gap-2",
183
198
  children: [/* @__PURE__ */ d("div", {
184
199
  className: "flex min-w-0 items-baseline gap-2",
@@ -187,7 +202,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, ee = Object.
187
202
  children: /* @__PURE__ */ f("div", {
188
203
  className: "flex min-w-0 items-baseline gap-1 whitespace-nowrap",
189
204
  children: [p, /* @__PURE__ */ f("span", {
190
- className: a(l, w.secondaryValue),
205
+ className: a(l, E.secondaryValue),
191
206
  children: ["/ ", e.totalLabel]
192
207
  })]
193
208
  })
@@ -195,14 +210,14 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, ee = Object.
195
210
  value: Math.min(e.usedPercent ?? 0, 100),
196
211
  max: 100,
197
212
  size: o.Small,
198
- className: a("!h-1 w-full", w.progressTrack, se(e.status)),
213
+ className: a("!h-1 w-full", E.progressTrack, ae(e.status)),
199
214
  "aria-label": n,
200
215
  "aria-valuetext": e.ariaLabel
201
216
  })]
202
217
  })
203
218
  ]
204
219
  });
205
- }, le = {
220
+ }, se = {
206
221
  outline: {
207
222
  xmlns: "http://www.w3.org/2000/svg",
208
223
  width: 24,
@@ -222,10 +237,10 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, ee = Object.
222
237
  fill: "currentColor",
223
238
  stroke: "none"
224
239
  }
225
- }, ue = (e, t, n, r) => {
240
+ }, ce = (e, t, n, r) => {
226
241
  let i = m(({ color: n = "currentColor", size: i = 24, stroke: a = 2, title: o, className: s, children: c, ...l }, u) => p("svg", {
227
242
  ref: u,
228
- ...le[e],
243
+ ...se[e],
229
244
  width: i,
230
245
  height: i,
231
246
  className: [
@@ -244,16 +259,16 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, ee = Object.
244
259
  ...Array.isArray(c) ? c : [c]
245
260
  ]));
246
261
  return i.displayName = `${n}`, i;
247
- }, de = ue("filled", "alert-circle-filled", "AlertCircleFilled", [["path", {
262
+ }, le = ce("filled", "alert-circle-filled", "AlertCircleFilled", [["path", {
248
263
  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",
249
264
  key: "svg-0"
250
- }]]), fe = ue("filled", "alert-triangle-filled", "AlertTriangleFilled", [["path", {
265
+ }]]), ue = ce("filled", "alert-triangle-filled", "AlertTriangleFilled", [["path", {
251
266
  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",
252
267
  key: "svg-0"
253
- }]]), pe = ({ periodStatus: e }) => {
268
+ }]]), D = ({ periodStatus: e }) => {
254
269
  let { status: t, tooltipLabel: n } = e;
255
- if (n == null || t !== S.RunningLow && t !== S.LimitReached) return null;
256
- let r = t === S.LimitReached ? de : fe;
270
+ if (n == null || t !== w.RunningLow && t !== w.LimitReached) return null;
271
+ let r = t === w.LimitReached ? le : ue;
257
272
  return /* @__PURE__ */ d(l, {
258
273
  tooltip: n,
259
274
  asChild: !0,
@@ -261,35 +276,46 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, ee = Object.
261
276
  role: "img",
262
277
  "aria-label": n,
263
278
  tabIndex: 0,
264
- className: a("inline-flex size-11 shrink-0 items-center justify-center desktop:size-4", t === S.LimitReached ? w.errorIndicator : w.warningIndicator),
279
+ className: a("inline-flex size-11 shrink-0 items-center justify-center desktop:size-4", t === w.LimitReached ? E.errorIndicator : E.warningIndicator),
265
280
  children: /* @__PURE__ */ d(r, {
266
281
  "aria-hidden": !0,
267
282
  size: 16
268
283
  })
269
284
  })
270
285
  });
271
- }, me = ({ cell: e, label: t, unavailableLabel: n, typography: r }) => {
272
- let { secondaryValueClassName: i = "dial-tiny-text" } = r, o = e.kind === C.Unavailable;
286
+ }, de = ({ cell: e, label: t, unavailableLabel: n, typography: r }) => {
287
+ let { secondaryValueClassName: i = "dial-tiny-text" } = r, o = e.kind === T.Unavailable;
273
288
  return /* @__PURE__ */ f("div", {
274
289
  className: "flex min-w-0 items-baseline gap-1",
275
290
  children: [/* @__PURE__ */ f("span", {
276
291
  className: "sr-only",
277
292
  children: [t, ": "]
278
293
  }), /* @__PURE__ */ d("span", {
279
- className: a("min-w-0 break-words", i, w.secondaryValue),
294
+ className: a("min-w-0 break-words", i, E.secondaryValue),
280
295
  title: o ? n : e.usedLabel,
281
296
  children: o ? n : e.usedLabel
282
297
  })]
283
298
  });
284
- }, T = ({ cell: e, periodLabel: t, periodStatus: n, labels: r, typography: i }) => /* @__PURE__ */ f("div", {
299
+ }, O = ({ cell: e, periodLabel: t, periodStatus: n, labels: r, typography: i, resetLabelClassName: o }) => /* @__PURE__ */ f("div", {
285
300
  role: "cell",
286
301
  className: "flex min-w-0 flex-col gap-2 py-2 desktop:py-0",
287
302
  children: [
288
303
  /* @__PURE__ */ f("div", {
289
- className: a("dial-caption-lead-semi-text flex min-h-11 items-center justify-between gap-2 desktop:hidden", w.mobileColumnLabel),
290
- children: [/* @__PURE__ */ d("span", { children: t }), /* @__PURE__ */ d(pe, { periodStatus: n })]
304
+ className: a("dial-caption-lead-semi-text flex min-h-11 items-center justify-between gap-2 desktop:hidden", E.mobileColumnLabel),
305
+ children: [/* @__PURE__ */ f("span", {
306
+ className: "flex min-w-0 flex-col",
307
+ children: [/* @__PURE__ */ d("span", { children: t }), n.resetLabel != null && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("time", {
308
+ dateTime: n.resetIsoValue,
309
+ "aria-hidden": n.resetAriaLabel != null || void 0,
310
+ className: a("block break-words", o, E.secondaryValue),
311
+ children: n.resetLabel
312
+ }), n.resetAriaLabel != null && /* @__PURE__ */ d("span", {
313
+ className: "sr-only",
314
+ children: n.resetAriaLabel
315
+ })] })]
316
+ }), /* @__PURE__ */ d(D, { periodStatus: n })]
291
317
  }),
292
- /* @__PURE__ */ d(ce, {
318
+ /* @__PURE__ */ d(oe, {
293
319
  cell: e.tokens,
294
320
  label: r.tokensLabel,
295
321
  progressAriaLabel: `${t} ${r.tokensLabel}`,
@@ -297,34 +323,34 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, ee = Object.
297
323
  labels: r,
298
324
  typography: i
299
325
  }),
300
- /* @__PURE__ */ d(me, {
326
+ /* @__PURE__ */ d(de, {
301
327
  cell: e.cost,
302
328
  label: r.costLabel,
303
329
  unavailableLabel: r.unavailableLabel,
304
330
  typography: i
305
331
  })
306
332
  ]
307
- }), he = "desktop:grid-cols-[minmax(12rem,1.25fr)_repeat(3,minmax(0,1fr))_minmax(8rem,10rem)]", ge = (e) => {
333
+ }), fe = "desktop:grid-cols-[minmax(12rem,1.25fr)_repeat(3,minmax(0,1fr))_minmax(8rem,10rem)]", pe = (e) => {
308
334
  switch (e) {
309
- case S.WithinLimits: return w.defaultBadge;
310
- case S.RunningLow: return w.warningBadge;
311
- case S.LimitReached: return w.errorBadge;
312
- case S.NoLimit:
313
- case S.Unavailable: return;
335
+ case w.WithinLimits: return E.defaultBadge;
336
+ case w.RunningLow: return E.warningBadge;
337
+ case w.LimitReached: return E.errorBadge;
338
+ case w.NoLimit:
339
+ case w.Unavailable: return;
314
340
  }
315
- }, _e = (e, t) => {
341
+ }, me = (e, t) => {
316
342
  switch (e) {
317
- case S.WithinLimits: return t.withinLimitsBadgeLabel;
318
- case S.RunningLow: return t.runningLowBadgeLabel;
319
- case S.LimitReached: return t.limitReachedBadgeLabel;
320
- case S.NoLimit: return t.noLimitBadgeLabel;
321
- case S.Unavailable: return t.unavailableBadgeLabel;
343
+ case w.WithinLimits: return t.withinLimitsBadgeLabel;
344
+ case w.RunningLow: return t.runningLowBadgeLabel;
345
+ case w.LimitReached: return t.limitReachedBadgeLabel;
346
+ case w.NoLimit: return t.noLimitBadgeLabel;
347
+ case w.Unavailable: return t.unavailableBadgeLabel;
322
348
  }
323
- }, ve = ({ row: n, labels: r, periodStatuses: i, typography: o, avatarSize: c }) => {
324
- 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" } = o, g = n.status !== S.NoLimit && n.status !== S.Unavailable;
349
+ }, he = ({ row: n, labels: r, periodStatuses: i, typography: o, avatarSize: c }) => {
350
+ 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;
325
351
  return /* @__PURE__ */ f("div", {
326
352
  role: "row",
327
- 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", he, w.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),
328
354
  children: [
329
355
  /* @__PURE__ */ f("div", {
330
356
  role: "cell",
@@ -346,67 +372,81 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, ee = Object.
346
372
  }), /* @__PURE__ */ f("div", {
347
373
  className: "flex min-w-0 flex-1 flex-col gap-0.5 overflow-hidden",
348
374
  children: [/* @__PURE__ */ d("span", {
349
- className: a(u, w.modelType),
375
+ className: a(u, E.modelType),
350
376
  children: r.modelTypeLabel
351
377
  }), /* @__PURE__ */ f("div", {
352
378
  className: "flex min-w-0 items-center gap-1 overflow-hidden",
353
379
  children: [/* @__PURE__ */ d("span", {
354
- className: a("min-w-0 flex-1 truncate", l, w.name),
380
+ className: a("min-w-0 flex-1 truncate", l, E.name),
355
381
  title: n.name,
356
382
  children: n.name
357
383
  }), n.version != null && /* @__PURE__ */ d(s, {
358
384
  text: n.version,
359
- className: a("max-w-[30%] shrink-0", p, w.version)
385
+ className: a("max-w-[30%] shrink-0", p, E.version)
360
386
  })]
361
387
  })]
362
388
  })]
363
389
  }),
364
- /* @__PURE__ */ d(T, {
365
- cell: n.last24Hours,
366
- periodLabel: r.last24HoursColumnLabel,
367
- periodStatus: i.last24Hours,
390
+ /* @__PURE__ */ d(O, {
391
+ cell: n.day,
392
+ periodLabel: r.dayColumnLabel,
393
+ periodStatus: i.day,
368
394
  labels: r,
369
- typography: o
395
+ typography: o,
396
+ resetLabelClassName: g
370
397
  }),
371
- /* @__PURE__ */ d(T, {
372
- cell: n.last7Days,
373
- periodLabel: r.last7DaysColumnLabel,
374
- periodStatus: i.last7Days,
398
+ /* @__PURE__ */ d(O, {
399
+ cell: n.week,
400
+ periodLabel: r.weekColumnLabel,
401
+ periodStatus: i.week,
375
402
  labels: r,
376
- typography: o
403
+ typography: o,
404
+ resetLabelClassName: g
377
405
  }),
378
- /* @__PURE__ */ d(T, {
379
- cell: n.last30Days,
380
- periodLabel: r.last30DaysColumnLabel,
381
- periodStatus: i.last30Days,
406
+ /* @__PURE__ */ d(O, {
407
+ cell: n.month,
408
+ periodLabel: r.monthColumnLabel,
409
+ periodStatus: i.month,
382
410
  labels: r,
383
- typography: o
411
+ typography: o,
412
+ resetLabelClassName: g
384
413
  }),
385
414
  /* @__PURE__ */ f("div", {
386
415
  role: "cell",
387
416
  className: "flex min-w-0 flex-col gap-2 py-2 desktop:py-0",
388
417
  children: [/* @__PURE__ */ d("span", {
389
- className: a("dial-caption-lead-semi-text block desktop:hidden", w.mobileColumnLabel),
418
+ className: a("dial-caption-lead-semi-text block desktop:hidden", E.mobileColumnLabel),
390
419
  children: r.statusColumnLabel
391
- }), g ? /* @__PURE__ */ d("span", {
392
- className: a("inline-flex h-6 shrink-0 items-center self-start rounded-full px-2", h, ge(n.status)),
393
- children: _e(n.status, r)
420
+ }), _ ? /* @__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)
394
423
  }) : /* @__PURE__ */ d("span", {
395
- className: a(m, w.neutralStatus),
396
- children: _e(n.status, r)
424
+ className: a(m, E.neutralStatus),
425
+ children: me(n.status, r)
397
426
  })]
398
427
  })
399
428
  ]
400
429
  });
401
- }, ye = 40, E = ({ label: e, periodStatus: t, className: n }) => /* @__PURE__ */ f("span", {
430
+ }, ge = 40, k = ({ label: e, periodStatus: t, className: n, resetLabelClassName: r }) => /* @__PURE__ */ f("span", {
402
431
  role: "columnheader",
403
- className: a("flex min-w-0 items-center justify-between gap-2", n, w.columnHeader),
404
- children: [/* @__PURE__ */ d("span", {
405
- className: "min-w-0 truncate",
406
- children: e
407
- }), /* @__PURE__ */ d(pe, { periodStatus: t })]
408
- }), be = ({ rows: e, labels: t, periodStatuses: i, styles: o }) => {
409
- 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" } = c, h = r({
432
+ className: a("flex min-w-0 items-center justify-between gap-2", n, E.columnHeader),
433
+ children: [/* @__PURE__ */ f("span", {
434
+ className: "flex min-w-0 flex-col",
435
+ children: [/* @__PURE__ */ d("span", {
436
+ className: "min-w-0 truncate",
437
+ children: e
438
+ }), t.resetLabel != null && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("time", {
439
+ dateTime: t.resetIsoValue,
440
+ "aria-hidden": t.resetAriaLabel != null || void 0,
441
+ className: a("block break-words", r, E.secondaryValue),
442
+ children: t.resetLabel
443
+ }), t.resetAriaLabel != null && /* @__PURE__ */ d("span", {
444
+ className: "sr-only",
445
+ children: t.resetAriaLabel
446
+ })] })]
447
+ }), /* @__PURE__ */ d(D, { periodStatus: t })]
448
+ }), _e = ({ rows: e, labels: t, periodStatuses: i, styles: o }) => {
449
+ 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({
410
450
  "--mls-container-bg": s?.containerBackground,
411
451
  "--mls-heading": s?.headingColor,
412
452
  "--mls-heading-count": s?.headingCountColor,
@@ -430,101 +470,110 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, ee = Object.
430
470
  "--mls-badge-error-bg": s?.errorBadgeBackground,
431
471
  "--mls-badge-error-text": s?.errorBadgeColor,
432
472
  "--mls-badge-neutral-text": s?.neutralBadgeColor
433
- }), g = `${t.headingLabel} ${e.length}`;
473
+ }), _ = `${t.headingLabel} ${e.length}`;
434
474
  return /* @__PURE__ */ f("div", {
435
475
  className: "flex flex-col gap-4",
436
- style: h,
476
+ style: g,
437
477
  children: [/* @__PURE__ */ d("div", {
438
478
  className: "flex min-h-10 items-center",
439
479
  children: /* @__PURE__ */ f("h3", {
440
480
  className: "m-0 flex items-center gap-2",
441
481
  children: [/* @__PURE__ */ d("span", {
442
- className: a(l, w.heading),
482
+ className: a(l, E.heading),
443
483
  children: t.headingLabel
444
484
  }), /* @__PURE__ */ d("span", {
445
- className: a(p, w.headingCount),
485
+ className: a(p, E.headingCount),
446
486
  children: e.length
447
487
  })]
448
488
  })
449
489
  }), /* @__PURE__ */ d("div", {
450
490
  role: "table",
451
- "aria-label": g,
452
- className: a("overflow-hidden rounded-xl shadow-md", w.container),
491
+ "aria-label": _,
492
+ className: a("overflow-hidden rounded-xl shadow-md", E.container),
453
493
  children: e.length === 0 ? /* @__PURE__ */ d("div", {
454
494
  className: "flex items-center justify-center px-6 py-10",
455
495
  children: /* @__PURE__ */ d(n, { label: t.emptyStateLabel })
456
496
  }) : /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f("div", {
457
497
  role: "row",
458
- className: a("hidden gap-4 px-6 py-3 desktop:grid desktop:items-center", he, w.headerRow),
498
+ className: a("hidden gap-4 px-6 py-3 desktop:grid desktop:items-center", fe, E.headerRow),
459
499
  children: [
460
500
  /* @__PURE__ */ d("span", {
461
501
  role: "columnheader",
462
- className: a(m, w.columnHeader),
502
+ className: a(m, E.columnHeader),
463
503
  children: t.itemColumnLabel
464
504
  }),
465
- /* @__PURE__ */ d(E, {
466
- label: t.last24HoursColumnLabel,
467
- periodStatus: i.last24Hours,
468
- className: m
505
+ /* @__PURE__ */ d(k, {
506
+ label: t.dayColumnLabel,
507
+ periodStatus: i.day,
508
+ className: m,
509
+ resetLabelClassName: h
469
510
  }),
470
- /* @__PURE__ */ d(E, {
471
- label: t.last7DaysColumnLabel,
472
- periodStatus: i.last7Days,
473
- className: m
511
+ /* @__PURE__ */ d(k, {
512
+ label: t.weekColumnLabel,
513
+ periodStatus: i.week,
514
+ className: m,
515
+ resetLabelClassName: h
474
516
  }),
475
- /* @__PURE__ */ d(E, {
476
- label: t.last30DaysColumnLabel,
477
- periodStatus: i.last30Days,
478
- className: m
517
+ /* @__PURE__ */ d(k, {
518
+ label: t.monthColumnLabel,
519
+ periodStatus: i.month,
520
+ className: m,
521
+ resetLabelClassName: h
479
522
  }),
480
523
  /* @__PURE__ */ d("span", {
481
524
  role: "columnheader",
482
- className: a(m, w.columnHeader),
525
+ className: a(m, E.columnHeader),
483
526
  children: t.statusColumnLabel
484
527
  })
485
528
  ]
486
529
  }), /* @__PURE__ */ d("div", {
487
530
  role: "rowgroup",
488
- children: e.map((e) => /* @__PURE__ */ d(ve, {
531
+ children: e.map((e) => /* @__PURE__ */ d(he, {
489
532
  row: e,
490
533
  labels: t,
491
534
  periodStatuses: i,
492
535
  typography: c,
493
- avatarSize: ye
536
+ avatarSize: ge
494
537
  }, e.id))
495
538
  })] })
496
539
  })]
497
540
  });
498
- }, xe = 2 ** 53, Se = 75, Ce = (e) => e != null && Number.isFinite(e.total) && Number.isFinite(e.used), we = (e) => e >= 100 ? b.LimitReached : e >= Se ? b.RunningLow : b.Default, Te = (e, t, n, r) => {
499
- let a = Math.max(0, e.used), o = i(a);
500
- if (e.total >= xe) return {
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 ? {
542
+ resetLabel: e.label,
543
+ resetIsoValue: e.isoValue,
544
+ 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 {
501
548
  title: t,
502
549
  periodDescription: n,
503
- used: a,
550
+ used: o,
504
551
  total: e.total,
505
- usedLabel: o,
552
+ usedLabel: s,
506
553
  isUnlimited: !0,
507
- status: b.Default,
508
- progressAriaLabel: r(D.unlimitedProgressAriaLabel, { used: o })
554
+ status: S.Default,
555
+ progressAriaLabel: r(A.unlimitedProgressAriaLabel, { used: s }),
556
+ ...c
509
557
  };
510
- let s = Math.max(e.total, 0), c = Math.max(s - a, 0), l = s > 0 ? a / s * 100 : 100, u = i(s);
558
+ let l = Math.max(e.total, 0), u = Math.max(l - o, 0), d = l > 0 ? o / l * 100 : 100, f = i(l);
511
559
  return {
512
560
  title: t,
513
561
  periodDescription: n,
514
- used: a,
515
- total: s,
516
- usedLabel: o,
517
- totalLabel: u,
518
- remainingLabel: i(c),
519
- usedPercent: l,
520
- status: we(l),
521
- progressAriaLabel: r(D.progressAriaLabel, {
522
- used: o,
523
- total: u,
524
- percent: Math.round(l)
525
- })
562
+ used: o,
563
+ total: l,
564
+ usedLabel: s,
565
+ totalLabel: f,
566
+ remainingLabel: i(u),
567
+ usedPercent: d,
568
+ status: xe(d),
569
+ progressAriaLabel: r(A.progressAriaLabel, {
570
+ used: s,
571
+ total: f,
572
+ percent: Math.round(d)
573
+ }),
574
+ ...c
526
575
  };
527
- }, D = {
576
+ }, A = {
528
577
  todayTitle: "usage.todayTitle",
529
578
  todayPeriodDescription: "usage.todayPeriodDescription",
530
579
  thisWeekTitle: "usage.thisWeekTitle",
@@ -533,83 +582,83 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, ee = Object.
533
582
  thisMonthPeriodDescription: "usage.thisMonthPeriodDescription",
534
583
  unlimitedProgressAriaLabel: "usage.unlimitedProgressAriaLabel",
535
584
  progressAriaLabel: "usage.progressAriaLabel"
536
- }, Ee = (e, t) => [
585
+ }, we = (e, t, n) => [
537
586
  {
538
587
  stats: e?.dayCostStats,
539
- titleKey: D.todayPeriodDescription,
540
- periodDescriptionKey: D.todayPeriodDescription
588
+ titleKey: A.todayTitle,
589
+ periodDescriptionKey: A.todayPeriodDescription
541
590
  },
542
591
  {
543
592
  stats: e?.weekCostStats,
544
- titleKey: D.thisWeekPeriodDescription,
545
- periodDescriptionKey: D.thisWeekPeriodDescription
593
+ titleKey: A.thisWeekTitle,
594
+ periodDescriptionKey: A.thisWeekPeriodDescription
546
595
  },
547
596
  {
548
597
  stats: e?.monthCostStats,
549
- titleKey: D.thisMonthPeriodDescription,
550
- periodDescriptionKey: D.thisMonthPeriodDescription
598
+ titleKey: A.thisMonthTitle,
599
+ periodDescriptionKey: A.thisMonthPeriodDescription
551
600
  }
552
- ].flatMap(({ stats: e, titleKey: n, periodDescriptionKey: r }) => Ce(e) ? [Te(e, t(n), t(r), t)] : []), O = /* @__PURE__ */ ne({
553
- __addDisposableResource: () => He,
554
- __assign: () => H,
555
- __asyncDelegator: () => Fe,
556
- __asyncGenerator: () => Pe,
557
- __asyncValues: () => Ie,
558
- __await: () => z,
559
- __awaiter: () => P,
560
- __classPrivateFieldGet: () => ze,
561
- __classPrivateFieldIn: () => Ve,
562
- __classPrivateFieldSet: () => Be,
563
- __createBinding: () => U,
564
- __decorate: () => ke,
565
- __disposeResources: () => Ue,
566
- __esDecorate: () => k,
567
- __exportStar: () => I,
568
- __extends: () => De,
569
- __generator: () => F,
570
- __importDefault: () => B,
571
- __importStar: () => Re,
572
- __makeTemplateObject: () => Le,
573
- __metadata: () => N,
574
- __param: () => Ae,
575
- __propKey: () => j,
576
- __read: () => R,
577
- __rest: () => Oe,
578
- __rewriteRelativeImportExtension: () => We,
579
- __runInitializers: () => A,
580
- __setFunctionName: () => M,
581
- __spread: () => je,
582
- __spreadArray: () => Ne,
583
- __spreadArrays: () => Me,
584
- __values: () => L,
585
- default: () => qe
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,
603
+ __assign: () => z,
604
+ __asyncDelegator: () => Re,
605
+ __asyncGenerator: () => Le,
606
+ __asyncValues: () => ze,
607
+ __await: () => L,
608
+ __awaiter: () => je,
609
+ __classPrivateFieldGet: () => Ue,
610
+ __classPrivateFieldIn: () => Ge,
611
+ __classPrivateFieldSet: () => We,
612
+ __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,
625
+ __read: () => I,
626
+ __rest: () => N,
627
+ __rewriteRelativeImportExtension: () => Je,
628
+ __runInitializers: () => De,
629
+ __setFunctionName: () => ke,
630
+ __spread: () => Pe,
631
+ __spreadArray: () => Ie,
632
+ __spreadArrays: () => Fe,
633
+ __values: () => F,
634
+ default: () => Xe
586
635
  });
587
- function De(e, t) {
636
+ function M(e, t) {
588
637
  if (typeof t != "function" && t !== null) throw TypeError("Class extends value " + String(t) + " is not a constructor or null");
589
- V(e, t);
638
+ R(e, t);
590
639
  function n() {
591
640
  this.constructor = e;
592
641
  }
593
642
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
594
643
  }
595
- function Oe(e, t) {
644
+ function N(e, t) {
596
645
  var n = {};
597
646
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
598
647
  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]]);
599
648
  return n;
600
649
  }
601
- function ke(e, t, n, r) {
650
+ function P(e, t, n, r) {
602
651
  var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
603
652
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
604
653
  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);
605
654
  return i > 3 && a && Object.defineProperty(t, n, a), a;
606
655
  }
607
- function Ae(e, t) {
656
+ function Te(e, t) {
608
657
  return function(n, r) {
609
658
  t(n, r, e);
610
659
  };
611
660
  }
612
- function k(e, t, n, r, i, a) {
661
+ function Ee(e, t, n, r, i, a) {
613
662
  function o(e) {
614
663
  if (e !== void 0 && typeof e != "function") throw TypeError("Function expected");
615
664
  return e;
@@ -634,23 +683,23 @@ function k(e, t, n, r, i, a) {
634
683
  }
635
684
  l && Object.defineProperty(l, r.name, u), f = !0;
636
685
  }
637
- function A(e, t, n) {
686
+ function De(e, t, n) {
638
687
  for (var r = arguments.length > 2, i = 0; i < t.length; i++) n = r ? t[i].call(e, n) : t[i].call(e);
639
688
  return r ? n : void 0;
640
689
  }
641
- function j(e) {
690
+ function Oe(e) {
642
691
  return typeof e == "symbol" ? e : `${e}`;
643
692
  }
644
- function M(e, t, n) {
693
+ function ke(e, t, n) {
645
694
  return typeof t == "symbol" && (t = t.description ? `[${t.description}]` : ""), Object.defineProperty(e, "name", {
646
695
  configurable: !0,
647
696
  value: n ? `${n} ${t}` : t
648
697
  });
649
698
  }
650
- function N(e, t) {
699
+ function Ae(e, t) {
651
700
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
652
701
  }
653
- function P(e, t, n, r) {
702
+ function je(e, t, n, r) {
654
703
  function i(e) {
655
704
  return e instanceof n ? e : new n(function(t) {
656
705
  t(e);
@@ -677,7 +726,7 @@ function P(e, t, n, r) {
677
726
  c((r = r.apply(e, t || [])).next());
678
727
  });
679
728
  }
680
- function F(e, t) {
729
+ function Me(e, t) {
681
730
  var n = {
682
731
  label: 0,
683
732
  sent: function() {
@@ -747,10 +796,10 @@ function F(e, t) {
747
796
  };
748
797
  }
749
798
  }
750
- function I(e, t) {
751
- for (var n in e) n !== "default" && !Object.prototype.hasOwnProperty.call(t, n) && U(t, e, n);
799
+ function Ne(e, t) {
800
+ for (var n in e) n !== "default" && !Object.prototype.hasOwnProperty.call(t, n) && B(t, e, n);
752
801
  }
753
- function L(e) {
802
+ function F(e) {
754
803
  var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
755
804
  if (n) return n.call(e);
756
805
  if (e && typeof e.length == "number") return { next: function() {
@@ -761,7 +810,7 @@ function L(e) {
761
810
  } };
762
811
  throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
763
812
  }
764
- function R(e, t) {
813
+ function I(e, t) {
765
814
  var n = typeof Symbol == "function" && e[Symbol.iterator];
766
815
  if (!n) return e;
767
816
  var r = n.call(e), i, a = [], o;
@@ -778,23 +827,23 @@ function R(e, t) {
778
827
  }
779
828
  return a;
780
829
  }
781
- function je() {
782
- for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(R(arguments[t]));
830
+ function Pe() {
831
+ for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(I(arguments[t]));
783
832
  return e;
784
833
  }
785
- function Me() {
834
+ function Fe() {
786
835
  for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
787
836
  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];
788
837
  return r;
789
838
  }
790
- function Ne(e, t, n) {
839
+ function Ie(e, t, n) {
791
840
  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]);
792
841
  return e.concat(a || Array.prototype.slice.call(t));
793
842
  }
794
- function z(e) {
795
- return this instanceof z ? (this.v = e, this) : new z(e);
843
+ function L(e) {
844
+ return this instanceof L ? (this.v = e, this) : new L(e);
796
845
  }
797
- function Pe(e, t, n) {
846
+ function Le(e, t, n) {
798
847
  if (!Symbol.asyncIterator) throw TypeError("Symbol.asyncIterator is not defined.");
799
848
  var r = n.apply(e, t || []), i, a = [];
800
849
  return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), s("next"), s("throw"), s("return", o), i[Symbol.asyncIterator] = function() {
@@ -825,7 +874,7 @@ function Pe(e, t, n) {
825
874
  }
826
875
  }
827
876
  function l(e) {
828
- e.value instanceof z ? Promise.resolve(e.value.v).then(u, d) : f(a[0][2], e);
877
+ e.value instanceof L ? Promise.resolve(e.value.v).then(u, d) : f(a[0][2], e);
829
878
  }
830
879
  function u(e) {
831
880
  c("next", e);
@@ -837,7 +886,7 @@ function Pe(e, t, n) {
837
886
  e(t), a.shift(), a.length && c(a[0][0], a[0][1]);
838
887
  }
839
888
  }
840
- function Fe(e) {
889
+ function Re(e) {
841
890
  var t, n;
842
891
  return t = {}, r("next"), r("throw", function(e) {
843
892
  throw e;
@@ -847,16 +896,16 @@ function Fe(e) {
847
896
  function r(r, i) {
848
897
  t[r] = e[r] ? function(t) {
849
898
  return (n = !n) ? {
850
- value: z(e[r](t)),
899
+ value: L(e[r](t)),
851
900
  done: !1
852
901
  } : i ? i(t) : t;
853
902
  } : i;
854
903
  }
855
904
  }
856
- function Ie(e) {
905
+ function ze(e) {
857
906
  if (!Symbol.asyncIterator) throw TypeError("Symbol.asyncIterator is not defined.");
858
907
  var t = e[Symbol.asyncIterator], n;
859
- return t ? t.call(e) : (e = typeof L == "function" ? L(e) : e[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
908
+ 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() {
860
909
  return this;
861
910
  }, n);
862
911
  function r(t) {
@@ -875,34 +924,34 @@ function Ie(e) {
875
924
  }, t);
876
925
  }
877
926
  }
878
- function Le(e, t) {
927
+ function Be(e, t) {
879
928
  return Object.defineProperty ? Object.defineProperty(e, "raw", { value: t }) : e.raw = t, e;
880
929
  }
881
- function Re(e) {
930
+ function Ve(e) {
882
931
  if (e && e.__esModule) return e;
883
932
  var t = {};
884
- if (e != null) for (var n = W(e), r = 0; r < n.length; r++) n[r] !== "default" && U(t, e, n[r]);
885
- return Ge(t, e), t;
933
+ 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;
886
935
  }
887
- function B(e) {
936
+ function He(e) {
888
937
  return e && e.__esModule ? e : { default: e };
889
938
  }
890
- function ze(e, t, n, r) {
939
+ function Ue(e, t, n, r) {
891
940
  if (n === "a" && !r) throw TypeError("Private accessor was defined without a getter");
892
941
  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");
893
942
  return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
894
943
  }
895
- function Be(e, t, n, r, i) {
944
+ function We(e, t, n, r, i) {
896
945
  if (r === "m") throw TypeError("Private method is not writable");
897
946
  if (r === "a" && !i) throw TypeError("Private accessor was defined without a setter");
898
947
  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");
899
948
  return r === "a" ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
900
949
  }
901
- function Ve(e, t) {
950
+ function Ge(e, t) {
902
951
  if (t === null || typeof t != "object" && typeof t != "function") throw TypeError("Cannot use 'in' operator on non-object");
903
952
  return typeof e == "function" ? t === e : e.has(t);
904
953
  }
905
- function He(e, t, n) {
954
+ function Ke(e, t, n) {
906
955
  if (t != null) {
907
956
  if (typeof t != "object" && typeof t != "function") throw TypeError("Object expected.");
908
957
  var r, i;
@@ -929,9 +978,9 @@ function He(e, t, n) {
929
978
  } else n && e.stack.push({ async: !0 });
930
979
  return t;
931
980
  }
932
- function Ue(e) {
981
+ function qe(e) {
933
982
  function t(t) {
934
- e.error = e.hasError ? new Ke(t, e.error, "An error was suppressed during disposal.") : t, e.hasError = !0;
983
+ e.error = e.hasError ? new H(t, e.error, "An error was suppressed during disposal.") : t, e.hasError = !0;
935
984
  }
936
985
  var n, r = 0;
937
986
  function i() {
@@ -951,24 +1000,24 @@ function Ue(e) {
951
1000
  }
952
1001
  return i();
953
1002
  }
954
- function We(e, t) {
1003
+ function Je(e, t) {
955
1004
  return typeof e == "string" && /^\.\.?\//.test(e) ? e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(e, n, r, i, a) {
956
1005
  return n ? t ? ".jsx" : ".js" : r && (!i || !a) ? e : r + i + "." + a.toLowerCase() + "js";
957
1006
  }) : e;
958
1007
  }
959
- var V, H, U, Ge, W, Ke, qe, G = te((() => {
960
- V = function(e, t) {
961
- return V = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
1008
+ var R, z, B, Ye, V, H, Xe, U = y((() => {
1009
+ R = function(e, t) {
1010
+ return R = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
962
1011
  e.__proto__ = t;
963
1012
  } || function(e, t) {
964
1013
  for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
965
- }, V(e, t);
966
- }, H = function() {
967
- return H = Object.assign || function(e) {
1014
+ }, R(e, t);
1015
+ }, z = function() {
1016
+ return z = Object.assign || function(e) {
968
1017
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
969
1018
  return e;
970
- }, H.apply(this, arguments);
971
- }, U = Object.create ? (function(e, t, n, r) {
1019
+ }, z.apply(this, arguments);
1020
+ }, B = Object.create ? (function(e, t, n, r) {
972
1021
  r === void 0 && (r = n);
973
1022
  var i = Object.getOwnPropertyDescriptor(t, n);
974
1023
  (!i || ("get" in i ? !t.__esModule : i.writable || i.configurable)) && (i = {
@@ -979,57 +1028,57 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
979
1028
  }), Object.defineProperty(e, r, i);
980
1029
  }) : (function(e, t, n, r) {
981
1030
  r === void 0 && (r = n), e[r] = t[n];
982
- }), Ge = Object.create ? (function(e, t) {
1031
+ }), Ye = Object.create ? (function(e, t) {
983
1032
  Object.defineProperty(e, "default", {
984
1033
  enumerable: !0,
985
1034
  value: t
986
1035
  });
987
1036
  }) : function(e, t) {
988
1037
  e.default = t;
989
- }, W = function(e) {
990
- return W = Object.getOwnPropertyNames || function(e) {
1038
+ }, V = function(e) {
1039
+ return V = Object.getOwnPropertyNames || function(e) {
991
1040
  var t = [];
992
1041
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[t.length] = n);
993
1042
  return t;
994
- }, W(e);
995
- }, Ke = typeof SuppressedError == "function" ? SuppressedError : function(e, t, n) {
1043
+ }, V(e);
1044
+ }, H = typeof SuppressedError == "function" ? SuppressedError : function(e, t, n) {
996
1045
  var r = Error(n);
997
1046
  return r.name = "SuppressedError", r.error = e, r.suppressed = t, r;
998
- }, qe = {
999
- __extends: De,
1000
- __assign: H,
1001
- __rest: Oe,
1002
- __decorate: ke,
1003
- __param: Ae,
1004
- __esDecorate: k,
1005
- __runInitializers: A,
1006
- __propKey: j,
1007
- __setFunctionName: M,
1008
- __metadata: N,
1009
- __awaiter: P,
1010
- __generator: F,
1011
- __createBinding: U,
1012
- __exportStar: I,
1013
- __values: L,
1014
- __read: R,
1015
- __spread: je,
1016
- __spreadArrays: Me,
1017
- __spreadArray: Ne,
1018
- __await: z,
1019
- __asyncGenerator: Pe,
1020
- __asyncDelegator: Fe,
1021
- __asyncValues: Ie,
1022
- __makeTemplateObject: Le,
1023
- __importStar: Re,
1024
- __importDefault: B,
1025
- __classPrivateFieldGet: ze,
1026
- __classPrivateFieldSet: Be,
1027
- __classPrivateFieldIn: Ve,
1028
- __addDisposableResource: He,
1029
- __disposeResources: Ue,
1030
- __rewriteRelativeImportExtension: We
1047
+ }, Xe = {
1048
+ __extends: M,
1049
+ __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,
1060
+ __createBinding: B,
1061
+ __exportStar: Ne,
1062
+ __values: F,
1063
+ __read: I,
1064
+ __spread: Pe,
1065
+ __spreadArrays: Fe,
1066
+ __spreadArray: Ie,
1067
+ __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
1031
1080
  };
1032
- })), K = /* @__PURE__ */ v(((e) => {
1081
+ })), W = /* @__PURE__ */ b(((e) => {
1033
1082
  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(/\/+$/, "");
1034
1083
  var t = class {
1035
1084
  configuration;
@@ -1244,9 +1293,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
1244
1293
  return await this.raw.text();
1245
1294
  }
1246
1295
  };
1247
- })), Je = /* @__PURE__ */ v(((e) => {
1296
+ })), Ze = /* @__PURE__ */ b(((e) => {
1248
1297
  Object.defineProperty(e, "__esModule", { value: !0 }), e.AppConfigApi = void 0;
1249
- var t = K();
1298
+ var t = W();
1250
1299
  e.AppConfigApi = class extends t.BaseAPI {
1251
1300
  async getClientConfigRaw(e, n) {
1252
1301
  if (e.appId == null) throw new t.RequiredError("appId", "Required parameter \"appId\" was null or undefined when calling getClientConfig().");
@@ -1264,9 +1313,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
1264
1313
  return await (await this.getClientConfigRaw(e, t)).value();
1265
1314
  }
1266
1315
  };
1267
- })), Ye = /* @__PURE__ */ v(((e) => {
1316
+ })), Qe = /* @__PURE__ */ b(((e) => {
1268
1317
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ApplicationsApi = void 0;
1269
- var t = K();
1318
+ var t = W();
1270
1319
  e.ApplicationsApi = class extends t.BaseAPI {
1271
1320
  async createApplicationRaw(e, n) {
1272
1321
  if (e.createApplicationBodyDto == null) throw new t.RequiredError("createApplicationBodyDto", "Required parameter \"createApplicationBodyDto\" was null or undefined when calling createApplication().");
@@ -1358,9 +1407,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
1358
1407
  return await (await this.updateApplicationRaw(e, t)).value();
1359
1408
  }
1360
1409
  };
1361
- })), Xe = /* @__PURE__ */ v(((e) => {
1410
+ })), $e = /* @__PURE__ */ b(((e) => {
1362
1411
  Object.defineProperty(e, "__esModule", { value: !0 }), e.AuthApi = void 0;
1363
- var t = K();
1412
+ var t = W();
1364
1413
  e.AuthApi = class extends t.BaseAPI {
1365
1414
  async callbackRaw(e, n) {
1366
1415
  if (e.providerId == null) throw new t.RequiredError("providerId", "Required parameter \"providerId\" was null or undefined when calling callback().");
@@ -1434,9 +1483,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
1434
1483
  await this.logoutRaw(e);
1435
1484
  }
1436
1485
  };
1437
- })), Ze = /* @__PURE__ */ v(((e) => {
1486
+ })), et = /* @__PURE__ */ b(((e) => {
1438
1487
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ChatApi = void 0;
1439
- var t = K();
1488
+ var t = W();
1440
1489
  e.ChatApi = class extends t.BaseAPI {
1441
1490
  async sendCompletionRaw(e, n) {
1442
1491
  if (e.chatCompletionDto == null) throw new t.RequiredError("chatCompletionDto", "Required parameter \"chatCompletionDto\" was null or undefined when calling sendCompletion().");
@@ -1455,9 +1504,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
1455
1504
  return await (await this.sendCompletionRaw(e, t)).value();
1456
1505
  }
1457
1506
  };
1458
- })), Qe = /* @__PURE__ */ v(((e) => {
1507
+ })), tt = /* @__PURE__ */ b(((e) => {
1459
1508
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ClientChannelApi = void 0;
1460
- var t = K();
1509
+ var t = W();
1461
1510
  e.ClientChannelApi = class extends t.BaseAPI {
1462
1511
  async reportClientChannelRaw(e, n) {
1463
1512
  if (e.xDialClientChannelId == null) throw new t.RequiredError("xDialClientChannelId", "Required parameter \"xDialClientChannelId\" was null or undefined when calling reportClientChannel().");
@@ -1506,9 +1555,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
1506
1555
  await this.unsubscribeClientChannelRaw(e, t);
1507
1556
  }
1508
1557
  };
1509
- })), $e = /* @__PURE__ */ v(((e) => {
1558
+ })), nt = /* @__PURE__ */ b(((e) => {
1510
1559
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ConversationsApi = void 0;
1511
- var t = K();
1560
+ var t = W();
1512
1561
  e.ConversationsApi = class extends t.BaseAPI {
1513
1562
  async attachToGenerationRaw(e, n) {
1514
1563
  if (e.attachGenerationDto == null) throw new t.RequiredError("attachGenerationDto", "Required parameter \"attachGenerationDto\" was null or undefined when calling attachToGeneration().");
@@ -1818,9 +1867,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
1818
1867
  await this.watchConversationRaw(e, t);
1819
1868
  }
1820
1869
  };
1821
- })), et = /* @__PURE__ */ v(((e) => {
1870
+ })), rt = /* @__PURE__ */ b(((e) => {
1822
1871
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ListDeploymentsInterfaceTypeEnum = e.DeploymentsApi = void 0;
1823
- var t = K();
1872
+ var t = W();
1824
1873
  e.DeploymentsApi = class extends t.BaseAPI {
1825
1874
  async getDeploymentConfigurationRaw(e, n) {
1826
1875
  if (e.deployment == null) throw new t.RequiredError("deployment", "Required parameter \"deployment\" was null or undefined when calling getDeploymentConfiguration().");
@@ -1888,9 +1937,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
1888
1937
  CustomUi: "custom_ui",
1889
1938
  All: "all"
1890
1939
  };
1891
- })), tt = /* @__PURE__ */ v(((e) => {
1940
+ })), it = /* @__PURE__ */ b(((e) => {
1892
1941
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ExternalServicesApi = void 0;
1893
- var t = K();
1942
+ var t = W();
1894
1943
  e.ExternalServicesApi = class extends t.BaseAPI {
1895
1944
  async getExternalServiceRaw(e, n) {
1896
1945
  if (e.appId == null) throw new t.RequiredError("appId", "Required parameter \"appId\" was null or undefined when calling getExternalService().");
@@ -1949,9 +1998,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
1949
1998
  return await (await this.signOutExternalServiceRaw(e, t)).value();
1950
1999
  }
1951
2000
  };
1952
- })), nt = /* @__PURE__ */ v(((e) => {
2001
+ })), at = /* @__PURE__ */ b(((e) => {
1953
2002
  Object.defineProperty(e, "__esModule", { value: !0 }), e.UploadFileUploadModeEnum = e.FilesApi = void 0;
1954
- var t = K();
2003
+ var t = W();
1955
2004
  e.FilesApi = class extends t.BaseAPI {
1956
2005
  async copyFilesRaw(e, n) {
1957
2006
  if (e.copyFilesDto == null) throw new t.RequiredError("copyFilesDto", "Required parameter \"copyFilesDto\" was null or undefined when calling copyFiles().");
@@ -2211,9 +2260,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
2211
2260
  Overwrite: "overwrite",
2212
2261
  CreateOnly: "create-only"
2213
2262
  };
2214
- })), rt = /* @__PURE__ */ v(((e) => {
2263
+ })), ot = /* @__PURE__ */ b(((e) => {
2215
2264
  Object.defineProperty(e, "__esModule", { value: !0 }), e.HealthApi = void 0;
2216
- var t = K();
2265
+ var t = W();
2217
2266
  e.HealthApi = class extends t.BaseAPI {
2218
2267
  async checkRaw(e) {
2219
2268
  let n = await this.request({
@@ -2228,9 +2277,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
2228
2277
  return await (await this.checkRaw(e)).value();
2229
2278
  }
2230
2279
  };
2231
- })), it = /* @__PURE__ */ v(((e) => {
2280
+ })), st = /* @__PURE__ */ b(((e) => {
2232
2281
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ModelsApi = void 0;
2233
- var t = K();
2282
+ var t = W();
2234
2283
  e.ModelsApi = class extends t.BaseAPI {
2235
2284
  async getModelRaw(e, n) {
2236
2285
  if (e.modelName == null) throw new t.RequiredError("modelName", "Required parameter \"modelName\" was null or undefined when calling getModel().");
@@ -2260,9 +2309,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
2260
2309
  return await (await this.listModelsRaw(e)).value();
2261
2310
  }
2262
2311
  };
2263
- })), at = /* @__PURE__ */ v(((e) => {
2312
+ })), ct = /* @__PURE__ */ b(((e) => {
2264
2313
  Object.defineProperty(e, "__esModule", { value: !0 }), e.OfflineCredentialsApi = void 0;
2265
- var t = K();
2314
+ var t = W();
2266
2315
  e.OfflineCredentialsApi = class extends t.BaseAPI {
2267
2316
  async getOfflineCredentialsRaw(e) {
2268
2317
  let n = await this.request({
@@ -2293,9 +2342,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
2293
2342
  return await (await this.signInOfflineCredentialsRaw(e, t)).value();
2294
2343
  }
2295
2344
  };
2296
- })), ot = /* @__PURE__ */ v(((e) => {
2345
+ })), lt = /* @__PURE__ */ b(((e) => {
2297
2346
  Object.defineProperty(e, "__esModule", { value: !0 }), e.PromptsApi = void 0;
2298
- var t = K();
2347
+ var t = W();
2299
2348
  e.PromptsApi = class extends t.BaseAPI {
2300
2349
  async createPromptRaw(e, n) {
2301
2350
  if (e.createPromptDto == null) throw new t.RequiredError("createPromptDto", "Required parameter \"createPromptDto\" was null or undefined when calling createPrompt().");
@@ -2471,9 +2520,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
2471
2520
  return await (await this.updatePromptRaw(e, t)).value();
2472
2521
  }
2473
2522
  };
2474
- })), st = /* @__PURE__ */ v(((e) => {
2523
+ })), ut = /* @__PURE__ */ b(((e) => {
2475
2524
  Object.defineProperty(e, "__esModule", { value: !0 }), e.UnpublishCatalogEntityEntityTypeEnum = e.PublishCatalogEntityEntityTypeEnum = e.GetCatalogPublishHistoryEntityTypeEnum = e.PublishApi = void 0;
2476
- var t = K();
2525
+ var t = W();
2477
2526
  e.PublishApi = class extends t.BaseAPI {
2478
2527
  async getCatalogPublishHistoryRaw(e, n) {
2479
2528
  if (e.entityType == null) throw new t.RequiredError("entityType", "Required parameter \"entityType\" was null or undefined when calling getCatalogPublishHistory().");
@@ -2565,9 +2614,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
2565
2614
  Prompt: "prompt",
2566
2615
  Skill: "skill"
2567
2616
  };
2568
- })), ct = /* @__PURE__ */ v(((e) => {
2617
+ })), dt = /* @__PURE__ */ b(((e) => {
2569
2618
  Object.defineProperty(e, "__esModule", { value: !0 }), e.RateApi = void 0;
2570
- var t = K();
2619
+ var t = W();
2571
2620
  e.RateApi = class extends t.BaseAPI {
2572
2621
  async rateMessageRaw(e, n) {
2573
2622
  if (e.rateMessageDto == null) throw new t.RequiredError("rateMessageDto", "Required parameter \"rateMessageDto\" was null or undefined when calling rateMessage().");
@@ -2586,9 +2635,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
2586
2635
  await this.rateMessageRaw(e, t);
2587
2636
  }
2588
2637
  };
2589
- })), lt = /* @__PURE__ */ v(((e) => {
2638
+ })), ft = /* @__PURE__ */ b(((e) => {
2590
2639
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ListScheduledTasksSortEnum = e.ScheduledTasksApi = void 0;
2591
- var t = K();
2640
+ var t = W();
2592
2641
  e.ScheduledTasksApi = class extends t.BaseAPI {
2593
2642
  async createScheduledTaskRaw(e, n) {
2594
2643
  if (e.createScheduledTaskBodyDto == null) throw new t.RequiredError("createScheduledTaskBodyDto", "Required parameter \"createScheduledTaskBodyDto\" was null or undefined when calling createScheduledTask().");
@@ -2722,9 +2771,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
2722
2771
  Newest: "newest",
2723
2772
  NameAz: "nameAZ"
2724
2773
  };
2725
- })), ut = /* @__PURE__ */ v(((e) => {
2774
+ })), pt = /* @__PURE__ */ b(((e) => {
2726
2775
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ShareApi = void 0;
2727
- var t = K();
2776
+ var t = W();
2728
2777
  e.ShareApi = class extends t.BaseAPI {
2729
2778
  async acceptInvitationRaw(e, n) {
2730
2779
  if (e.invitationId == null) throw new t.RequiredError("invitationId", "Required parameter \"invitationId\" was null or undefined when calling acceptInvitation().");
@@ -2805,9 +2854,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
2805
2854
  return await (await this.revokeSharedAccessRaw(e, t)).value();
2806
2855
  }
2807
2856
  };
2808
- })), dt = /* @__PURE__ */ v(((e) => {
2857
+ })), mt = /* @__PURE__ */ b(((e) => {
2809
2858
  Object.defineProperty(e, "__esModule", { value: !0 }), e.SkillsApi = void 0;
2810
- var t = K();
2859
+ var t = W();
2811
2860
  e.SkillsApi = class extends t.BaseAPI {
2812
2861
  async createSkillRaw(e, n) {
2813
2862
  if (e.bucket == null) throw new t.RequiredError("bucket", "Required parameter \"bucket\" was null or undefined when calling createSkill().");
@@ -3039,9 +3088,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
3039
3088
  return await (await this.uploadSkillFileRaw(e, t)).value();
3040
3089
  }
3041
3090
  };
3042
- })), ft = /* @__PURE__ */ v(((e) => {
3091
+ })), ht = /* @__PURE__ */ b(((e) => {
3043
3092
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ThemesApi = void 0;
3044
- var t = K();
3093
+ var t = W();
3045
3094
  e.ThemesApi = class extends t.BaseAPI {
3046
3095
  async getThemeIconRaw(e, n) {
3047
3096
  if (e.iconName == null) throw new t.RequiredError("iconName", "Required parameter \"iconName\" was null or undefined when calling getThemeIcon().");
@@ -3071,9 +3120,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
3071
3120
  return await (await this.getThemesRaw(e)).value();
3072
3121
  }
3073
3122
  };
3074
- })), pt = /* @__PURE__ */ v(((e) => {
3123
+ })), gt = /* @__PURE__ */ b(((e) => {
3075
3124
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ListMcpToolNamesKindEnum = e.ListMcpAppToolsKindEnum = e.ToolsetsApi = void 0;
3076
- var t = K();
3125
+ var t = W();
3077
3126
  e.ToolsetsApi = class extends t.BaseAPI {
3078
3127
  async callToolsetMcpAppToolRaw(e, n) {
3079
3128
  if (e.toolsetName == null) throw new t.RequiredError("toolsetName", "Required parameter \"toolsetName\" was null or undefined when calling callToolsetMcpAppTool().");
@@ -3266,9 +3315,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
3266
3315
  Toolset: "toolset",
3267
3316
  Application: "application"
3268
3317
  };
3269
- })), mt = /* @__PURE__ */ v(((e) => {
3318
+ })), _t = /* @__PURE__ */ b(((e) => {
3270
3319
  Object.defineProperty(e, "__esModule", { value: !0 }), e.TranscriptionApi = void 0;
3271
- var t = K();
3320
+ var t = W();
3272
3321
  e.TranscriptionApi = class extends t.BaseAPI {
3273
3322
  async transcribeAudioRaw(e, n) {
3274
3323
  if (e.transcribeAudioDto == null) throw new t.RequiredError("transcribeAudioDto", "Required parameter \"transcribeAudioDto\" was null or undefined when calling transcribeAudio().");
@@ -3287,9 +3336,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
3287
3336
  return await (await this.transcribeAudioRaw(e, t)).value();
3288
3337
  }
3289
3338
  };
3290
- })), ht = /* @__PURE__ */ v(((e) => {
3339
+ })), vt = /* @__PURE__ */ b(((e) => {
3291
3340
  Object.defineProperty(e, "__esModule", { value: !0 }), e.UserApi = void 0;
3292
- var t = K();
3341
+ var t = W();
3293
3342
  e.UserApi = class extends t.BaseAPI {
3294
3343
  async getUserLimitsRaw(e) {
3295
3344
  let n = await this.request({
@@ -3316,9 +3365,9 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
3316
3365
  return await (await this.getUserUsageRaw(e)).value();
3317
3366
  }
3318
3367
  };
3319
- })), gt = /* @__PURE__ */ v(((e) => {
3368
+ })), yt = /* @__PURE__ */ b(((e) => {
3320
3369
  Object.defineProperty(e, "__esModule", { value: !0 }), e.UserConfigApi = void 0;
3321
- var t = K();
3370
+ var t = W();
3322
3371
  e.UserConfigApi = class extends t.BaseAPI {
3323
3372
  async getUserConfigRaw(e) {
3324
3373
  let n = await this.request({
@@ -3429,11 +3478,11 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
3429
3478
  await this.updateSelectedDeploymentRaw(e, t);
3430
3479
  }
3431
3480
  };
3432
- })), _t = /* @__PURE__ */ v(((e) => {
3481
+ })), bt = /* @__PURE__ */ b(((e) => {
3433
3482
  Object.defineProperty(e, "__esModule", { value: !0 });
3434
- var t = (G(), y(O));
3435
- t.__exportStar(Je(), e), t.__exportStar(Ye(), e), t.__exportStar(Xe(), e), 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);
3436
- })), vt = /* @__PURE__ */ v(((e) => {
3483
+ var t = (U(), x(j));
3484
+ 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);
3485
+ })), xt = /* @__PURE__ */ b(((e) => {
3437
3486
  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 = {
3438
3487
  Item: "item",
3439
3488
  Folder: "folder"
@@ -3605,16 +3654,16 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
3605
3654
  Cron: "cron",
3606
3655
  Date: "date"
3607
3656
  };
3608
- })), yt = /* @__PURE__ */ v(((e) => {
3657
+ })), St = /* @__PURE__ */ b(((e) => {
3609
3658
  Object.defineProperty(e, "__esModule", { value: !0 });
3610
- var t = (G(), y(O));
3611
- t.__exportStar(K(), e), t.__exportStar(_t(), e), t.__exportStar(vt(), e);
3612
- })), bt = (/* @__PURE__ */ v(((e) => {
3613
- Object.defineProperty(e, "__esModule", { value: !0 }), (G(), y(O)).__exportStar(yt(), e);
3614
- })))(), xt = 2 ** 53, St = 75, Ct = new Intl.NumberFormat(void 0, {
3659
+ var t = (U(), x(j));
3660
+ t.__exportStar(W(), e), t.__exportStar(bt(), e), t.__exportStar(xt(), e);
3661
+ })), Ct = (/* @__PURE__ */ b(((e) => {
3662
+ Object.defineProperty(e, "__esModule", { value: !0 }), (U(), x(j)).__exportStar(St(), e);
3663
+ })))(), G = 2 ** 53, wt = 75, Tt = new Intl.NumberFormat(void 0, {
3615
3664
  notation: "compact",
3616
3665
  maximumFractionDigits: 1
3617
- }), q = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), J = {
3666
+ }), K = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), q = {
3618
3667
  todayPeriodDescription: "usage.todayPeriodDescription",
3619
3668
  thisWeekPeriodDescription: "usage.thisWeekPeriodDescription",
3620
3669
  thisMonthPeriodDescription: "usage.thisMonthPeriodDescription",
@@ -3627,117 +3676,143 @@ var V, H, U, Ge, W, Ke, qe, G = te((() => {
3627
3676
  unlimitedProgressAriaLabel: "usage.unlimitedProgressAriaLabel",
3628
3677
  progressAriaLabel: "usage.progressAriaLabel",
3629
3678
  spentLabel: "usage.spentLabel"
3630
- }, Y = {
3631
- last24Hours: {
3679
+ }, J = {
3680
+ day: {
3632
3681
  cost: "dayCostStats",
3633
3682
  tokens: "dayTokenStats"
3634
3683
  },
3635
- last7Days: {
3684
+ week: {
3636
3685
  cost: "weekCostStats",
3637
3686
  tokens: "weekTokenStats"
3638
3687
  },
3639
- last30Days: {
3688
+ month: {
3640
3689
  cost: "monthCostStats",
3641
3690
  tokens: "monthTokenStats"
3642
3691
  }
3643
- }, X = {
3644
- last24Hours: {
3692
+ }, Y = {
3693
+ day: {
3645
3694
  field: "dayCostStats",
3646
- labelKey: J.todayPeriodDescription
3695
+ labelKey: q.todayPeriodDescription
3647
3696
  },
3648
- last7Days: {
3697
+ week: {
3649
3698
  field: "weekCostStats",
3650
- labelKey: J.thisWeekPeriodDescription
3699
+ labelKey: q.thisWeekPeriodDescription
3651
3700
  },
3652
- last30Days: {
3701
+ month: {
3653
3702
  field: "monthCostStats",
3654
- labelKey: J.thisMonthPeriodDescription
3703
+ labelKey: q.thisMonthPeriodDescription
3655
3704
  }
3656
- }, Z = (e) => e != null && Number.isFinite(e.total) && Number.isFinite(e.used), wt = (e) => e >= 100 ? S.LimitReached : e >= St ? S.RunningLow : S.WithinLimits, Tt = (e) => {
3657
- if (!Z(e)) return S.Unavailable;
3658
- if (e.total >= xt) return S.NoLimit;
3705
+ }, 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) => {
3706
+ if (!X(e)) return w.Unavailable;
3707
+ if (e.total >= G) return w.NoLimit;
3659
3708
  let t = Math.max(0, e.used), n = Math.max(0, e.total);
3660
- return wt(n > 0 ? t / n * 100 : 100);
3661
- }, Et = (e) => e === S.WithinLimits || e === S.RunningLow || e === S.LimitReached, Q = (e, t, n, r) => {
3662
- let i = Tt(e?.[t.field]), a = r(t.labelKey).toLocaleLowerCase(n);
3709
+ return Z(n > 0 ? t / n * 100 : 100);
3710
+ }, Dt = (e) => e === w.WithinLimits || e === w.RunningLow || e === w.LimitReached, Q = (e, t, n, r, i) => {
3711
+ let a = e?.[t.field], o = Et(a), s = i(a?.resetsAt), c = r(t.labelKey).toLocaleLowerCase(n);
3663
3712
  return {
3664
- status: i,
3665
- tooltipLabel: i === S.LimitReached ? r(J.overallCostLimitReachedTooltip, { period: a }) : i === S.RunningLow ? r(J.overallCostLimitRunningLowTooltip, { period: a }) : void 0
3713
+ status: o,
3714
+ tooltipLabel: o === w.LimitReached ? r(q.overallCostLimitReachedTooltip, { period: c }) : o === w.RunningLow ? r(q.overallCostLimitRunningLowTooltip, { period: c }) : void 0,
3715
+ ...s ? {
3716
+ resetLabel: s.label,
3717
+ resetIsoValue: s.isoValue,
3718
+ resetAriaLabel: s.ariaLabel
3719
+ } : {}
3666
3720
  };
3667
- }, Dt = (e, t, n) => ({
3668
- last24Hours: Q(e, X.last24Hours, t, n),
3669
- last7Days: Q(e, X.last7Days, t, n),
3670
- last30Days: Q(e, X.last30Days, t, n)
3671
- }), Ot = (e) => ({
3672
- kind: C.Unavailable,
3673
- ariaLabel: e(J.unavailableLabel)
3674
- }), kt = (e, t, n) => {
3675
- if (!Z(e)) return Ot(n);
3676
- let r = Math.max(0, e.used), i = Ct.format(r);
3677
- if (e.total >= xt) {
3678
- let e = Et(t);
3721
+ }, Ot = () => void 0, kt = (e, t, n, r = Ot) => ({
3722
+ day: Q(e, Y.day, t, n, r),
3723
+ week: Q(e, Y.week, t, n, r),
3724
+ month: Q(e, Y.month, t, n, r)
3725
+ }), At = (e) => ({
3726
+ kind: T.Unavailable,
3727
+ ariaLabel: e(q.unavailableLabel)
3728
+ }), jt = (e, t, n) => {
3729
+ if (!X(e)) return At(n);
3730
+ let r = Math.max(0, e.used), i = Tt.format(r);
3731
+ if (e.total >= G) {
3732
+ let e = Dt(t);
3679
3733
  return {
3680
- kind: C.Unlimited,
3734
+ kind: T.Unlimited,
3681
3735
  usedLabel: i,
3682
- supportingLabel: n(e ? J.followsCostLimitLabel : J.noLimitLabel),
3683
- ariaLabel: n(e ? J.followsCostLimitAriaLabel : J.unlimitedProgressAriaLabel, { used: q.format(r) })
3736
+ supportingLabel: n(e ? q.followsCostLimitLabel : q.noLimitLabel),
3737
+ ariaLabel: n(e ? q.followsCostLimitAriaLabel : q.unlimitedProgressAriaLabel, { used: K.format(r) })
3684
3738
  };
3685
3739
  }
3686
- let a = Math.max(e.total, 0), o = Ct.format(a), s = a > 0 ? r / a * 100 : 100, c = wt(s);
3740
+ let a = Math.max(e.total, 0), o = Tt.format(a), s = a > 0 ? r / a * 100 : 100, c = Z(s);
3687
3741
  return {
3688
- kind: C.Finite,
3742
+ kind: T.Finite,
3689
3743
  usedLabel: i,
3690
3744
  totalLabel: o,
3691
3745
  usedPercent: s,
3692
3746
  status: c,
3693
- ariaLabel: n(J.progressAriaLabel, {
3694
- used: q.format(r),
3695
- total: q.format(a),
3747
+ ariaLabel: n(q.progressAriaLabel, {
3748
+ used: K.format(r),
3749
+ total: K.format(a),
3696
3750
  percent: Math.round(s)
3697
3751
  })
3698
3752
  };
3699
- }, At = (e, t) => {
3700
- if (!Z(e)) return Ot(t);
3701
- let n = i(Math.max(0, e.used)), r = t(J.spentLabel, { amount: n });
3702
- return {
3703
- kind: C.Unlimited,
3753
+ }, Mt = (e, t) => {
3754
+ if (!X(e)) return At(t);
3755
+ let n = Math.max(0, e.used), r = t(q.spentLabel, { amount: i(n) });
3756
+ if (e.total >= G) return {
3757
+ kind: T.Unlimited,
3704
3758
  usedLabel: r,
3705
3759
  ariaLabel: r
3706
3760
  };
3761
+ let a = Math.max(e.total, 0), o = a > 0 ? n / a * 100 : 100;
3762
+ return {
3763
+ kind: T.Finite,
3764
+ usedLabel: r,
3765
+ totalLabel: i(a),
3766
+ usedPercent: o,
3767
+ status: Z(o),
3768
+ ariaLabel: t(q.progressAriaLabel, {
3769
+ used: i(n),
3770
+ total: i(a),
3771
+ percent: Math.round(o)
3772
+ })
3773
+ };
3707
3774
  }, $ = (e, t, n, r) => ({
3708
- tokens: kt(e[t.tokens], n, r),
3709
- cost: At(e[t.cost], r)
3710
- }), jt = (e, t) => {
3711
- let n = [...e.filter((e) => e.kind === C.Finite).map((e) => e.status), ...t].filter((e) => e != null && Et(e));
3712
- return n.includes(S.LimitReached) ? S.LimitReached : n.includes(S.RunningLow) ? S.RunningLow : n.includes(S.WithinLimits) ? S.WithinLimits : e.some((e) => e.kind === C.Unlimited) || t.includes(S.NoLimit) ? S.NoLimit : S.Unavailable;
3713
- }, Mt = (e) => e.some((e) => Z(e) && e.used > 0), Nt = (e, t, n, r, i, a) => {
3775
+ tokens: jt(e[t.tokens], n, r),
3776
+ cost: Mt(e[t.cost], r)
3777
+ }), Nt = (e) => e.filter((e) => e.kind === T.Finite).map((e) => e.status), Pt = (e, t, n) => {
3778
+ let r = [
3779
+ ...Nt(e),
3780
+ ...Nt(t),
3781
+ ...n
3782
+ ].filter((e) => e != null && Dt(e));
3783
+ 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;
3784
+ }, Ft = (e) => e.some((e) => X(e) && e.used > 0), It = (e, t, n, r, i, a) => {
3714
3785
  let o = e?.deployments;
3715
3786
  if (o == null) return [];
3716
- let s = new Map(t.filter((e) => e.type === bt.DeploymentItemDtoTypeEnum.Model).map((e) => [e.id, e])), c = Dt(e, n, r);
3787
+ let s = new Map(t.filter((e) => e.type === Ct.DeploymentItemDtoTypeEnum.Model).map((e) => [e.id, e])), c = kt(e, n, r);
3717
3788
  return Object.keys(o).map((e) => {
3718
- let t = s.get(e), l = t == null ? e : a(t.displayName, n) || t.id, u = o[e], d = i(t?.iconUrl), f = $(u, Y.last24Hours, c.last24Hours.status, r), p = $(u, Y.last7Days, c.last7Days.status, r), m = $(u, Y.last30Days, c.last30Days.status, r), h = Object.values(Y).flatMap(({ cost: e, tokens: t }) => [u[e], u[t]]);
3789
+ 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]]);
3719
3790
  return {
3720
3791
  row: {
3721
3792
  id: e,
3722
3793
  name: l,
3723
3794
  version: t?.displayVersion,
3724
3795
  avatarSrc: d,
3725
- last24Hours: f,
3726
- last7Days: p,
3727
- last30Days: m,
3728
- status: jt([
3796
+ day: f,
3797
+ week: p,
3798
+ month: m,
3799
+ status: Pt([
3729
3800
  f.tokens,
3730
3801
  p.tokens,
3731
3802
  m.tokens
3732
3803
  ], [
3733
- c.last24Hours.status,
3734
- c.last7Days.status,
3735
- c.last30Days.status
3804
+ f.cost,
3805
+ p.cost,
3806
+ m.cost
3807
+ ], [
3808
+ c.day.status,
3809
+ c.week.status,
3810
+ c.month.status
3736
3811
  ])
3737
3812
  },
3738
- hasUsage: Mt(h)
3813
+ hasUsage: Ft(h)
3739
3814
  };
3740
3815
  }).filter(({ hasUsage: e }) => e).map(({ row: e }) => e);
3741
3816
  };
3742
3817
  //#endregion
3743
- export { C as ModelLimitMetricKind, S as ModelLimitStatus, be as ModelLimitsSection, D as USAGE_DATA_I18N_KEYS, J as USAGE_MODEL_LIMITS_I18N_KEYS, ae as UsageLimitCard, oe as UsageLimitCardGroup, b as UsageLimitStatus, Dt as mapOverallCostLimitsToPeriodStatuses, Ee as mapUsageDataToDashboard, Nt as mapUserUsageToModelLimits };
3818
+ 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 };