@epam/ai-dial-usage-dashboard 1.1.0-dev.475 → 1.1.0-dev.481
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/components/ModelLimitsSection/ModelLimitsRow.d.ts.map +1 -1
- package/components/ModelLimitsSection/ModelLimitsSection.d.ts +1 -1
- package/components/ModelLimitsSection/ModelLimitsSection.d.ts.map +1 -1
- package/components/ModelLimitsSection/PeriodCell.d.ts +2 -1
- package/components/ModelLimitsSection/PeriodCell.d.ts.map +1 -1
- package/components/UsageLimitCard/UsageLimitCard.d.ts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +502 -451
- package/models/model-limits-props.d.ts +30 -21
- package/models/model-limits-props.d.ts.map +1 -1
- package/models/usage-limit-card-props.d.ts +9 -1
- package/models/usage-limit-card-props.d.ts.map +1 -1
- package/package.json +5 -5
- package/utils/map-usage-data-to-dashboard.d.ts +26 -8
- package/utils/map-usage-data-to-dashboard.d.ts.map +1 -1
- package/utils/map-user-usage-to-model-limits.d.ts +7 -2
- package/utils/map-user-usage-to-model-limits.d.ts.map +1 -1
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, _ = Object.getOwnPropertyNames, v = Object.prototype.hasOwnProperty,
|
|
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
|
-
},
|
|
13
|
+
}, te = (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
|
-
},
|
|
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
|
-
}({}),
|
|
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, _ = Object.g
|
|
|
34
34
|
defaultBadge: "_defaultBadge_97w0r_54",
|
|
35
35
|
warningBadge: "_warningBadge_97w0r_59",
|
|
36
36
|
errorBadge: "_errorBadge_97w0r_64"
|
|
37
|
-
},
|
|
37
|
+
}, ne = (e, t) => {
|
|
38
38
|
switch (e) {
|
|
39
|
-
case
|
|
40
|
-
case
|
|
41
|
-
case
|
|
39
|
+
case S.RunningLow: return t.runningLowBadgeLabel;
|
|
40
|
+
case S.LimitReached: return t.limitReachedBadgeLabel;
|
|
41
|
+
case S.Default: return t.defaultBadgeLabel;
|
|
42
42
|
}
|
|
43
|
-
},
|
|
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 ?? {},
|
|
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,125 +59,75 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
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
|
-
}),
|
|
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",
|
|
65
|
-
style:
|
|
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,
|
|
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 ===
|
|
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: [
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
className:
|
|
99
|
-
children:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
-
},
|
|
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(
|
|
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
|
-
}),
|
|
116
|
-
outline: {
|
|
117
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
118
|
-
width: 24,
|
|
119
|
-
height: 24,
|
|
120
|
-
viewBox: "0 0 24 24",
|
|
121
|
-
fill: "none",
|
|
122
|
-
stroke: "currentColor",
|
|
123
|
-
strokeWidth: 2,
|
|
124
|
-
strokeLinecap: "round",
|
|
125
|
-
strokeLinejoin: "round"
|
|
126
|
-
},
|
|
127
|
-
filled: {
|
|
128
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
129
|
-
width: 24,
|
|
130
|
-
height: 24,
|
|
131
|
-
viewBox: "0 0 24 24",
|
|
132
|
-
fill: "currentColor",
|
|
133
|
-
stroke: "none"
|
|
134
|
-
}
|
|
135
|
-
}, C = (e, t, n, r) => {
|
|
136
|
-
let i = m(({ color: n = "currentColor", size: i = 24, stroke: a = 2, title: o, className: s, children: c, ...l }, u) => p("svg", {
|
|
137
|
-
ref: u,
|
|
138
|
-
...oe[e],
|
|
139
|
-
width: i,
|
|
140
|
-
height: i,
|
|
141
|
-
className: [
|
|
142
|
-
"tabler-icon",
|
|
143
|
-
`tabler-icon-${t}`,
|
|
144
|
-
s
|
|
145
|
-
].join(" "),
|
|
146
|
-
...e === "filled" ? { fill: n } : {
|
|
147
|
-
strokeWidth: a,
|
|
148
|
-
stroke: n
|
|
149
|
-
},
|
|
150
|
-
...l
|
|
151
|
-
}, [
|
|
152
|
-
o && p("title", { key: "svg-title" }, o),
|
|
153
|
-
...r.map(([e, t]) => p(e, t)),
|
|
154
|
-
...Array.isArray(c) ? c : [c]
|
|
155
|
-
]));
|
|
156
|
-
return i.displayName = `${n}`, i;
|
|
157
|
-
}, se = C("outline", "chart-bar", "ChartBar", [
|
|
158
|
-
["path", {
|
|
159
|
-
d: "M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -6",
|
|
160
|
-
key: "svg-0"
|
|
161
|
-
}],
|
|
162
|
-
["path", {
|
|
163
|
-
d: "M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -10",
|
|
164
|
-
key: "svg-1"
|
|
165
|
-
}],
|
|
166
|
-
["path", {
|
|
167
|
-
d: "M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -14",
|
|
168
|
-
key: "svg-2"
|
|
169
|
-
}],
|
|
170
|
-
["path", {
|
|
171
|
-
d: "M4 20h14",
|
|
172
|
-
key: "svg-3"
|
|
173
|
-
}]
|
|
174
|
-
]), ce = C("filled", "alert-circle-filled", "AlertCircleFilled", [["path", {
|
|
175
|
-
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",
|
|
176
|
-
key: "svg-0"
|
|
177
|
-
}]]), le = C("filled", "alert-triangle-filled", "AlertTriangleFilled", [["path", {
|
|
178
|
-
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",
|
|
179
|
-
key: "svg-0"
|
|
180
|
-
}]]), w = /* @__PURE__ */ function(e) {
|
|
130
|
+
}), w = /* @__PURE__ */ function(e) {
|
|
181
131
|
return e.WithinLimits = "within-limits", e.RunningLow = "running-low", e.LimitReached = "limit-reached", e.NoLimit = "no-limit", e.Unavailable = "unavailable", e;
|
|
182
132
|
}({}), T = /* @__PURE__ */ function(e) {
|
|
183
133
|
return e.Finite = "finite", e.Unlimited = "unlimited", e.Unavailable = "unavailable", e;
|
|
@@ -204,13 +154,13 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
204
154
|
warningBadge: "_warningBadge_jkj20_87",
|
|
205
155
|
errorBadge: "_errorBadge_jkj20_92",
|
|
206
156
|
neutralStatus: "_neutralStatus_jkj20_97"
|
|
207
|
-
},
|
|
157
|
+
}, ae = (e) => {
|
|
208
158
|
switch (e) {
|
|
209
159
|
case w.RunningLow: return E.progressFillWarning;
|
|
210
160
|
case w.LimitReached: return E.progressFillError;
|
|
211
161
|
default: return E.progressFillDefault;
|
|
212
162
|
}
|
|
213
|
-
},
|
|
163
|
+
}, oe = ({ cell: e, label: t, progressAriaLabel: n, showProgress: r, labels: i, typography: s }) => {
|
|
214
164
|
let { valueClassName: l = "dial-small-text", secondaryValueClassName: u = "dial-tiny-text" } = s, p = /* @__PURE__ */ d("span", {
|
|
215
165
|
className: a(l, E.value),
|
|
216
166
|
children: e.usedLabel
|
|
@@ -260,17 +210,65 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
260
210
|
value: Math.min(e.usedPercent ?? 0, 100),
|
|
261
211
|
max: 100,
|
|
262
212
|
size: o.Small,
|
|
263
|
-
className: a("!h-1 w-full", E.progressTrack,
|
|
213
|
+
className: a("!h-1 w-full", E.progressTrack, ae(e.status)),
|
|
264
214
|
"aria-label": n,
|
|
265
215
|
"aria-valuetext": e.ariaLabel
|
|
266
216
|
})]
|
|
267
217
|
})
|
|
268
218
|
]
|
|
269
219
|
});
|
|
270
|
-
},
|
|
220
|
+
}, se = {
|
|
221
|
+
outline: {
|
|
222
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
223
|
+
width: 24,
|
|
224
|
+
height: 24,
|
|
225
|
+
viewBox: "0 0 24 24",
|
|
226
|
+
fill: "none",
|
|
227
|
+
stroke: "currentColor",
|
|
228
|
+
strokeWidth: 2,
|
|
229
|
+
strokeLinecap: "round",
|
|
230
|
+
strokeLinejoin: "round"
|
|
231
|
+
},
|
|
232
|
+
filled: {
|
|
233
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
234
|
+
width: 24,
|
|
235
|
+
height: 24,
|
|
236
|
+
viewBox: "0 0 24 24",
|
|
237
|
+
fill: "currentColor",
|
|
238
|
+
stroke: "none"
|
|
239
|
+
}
|
|
240
|
+
}, ce = (e, t, n, r) => {
|
|
241
|
+
let i = m(({ color: n = "currentColor", size: i = 24, stroke: a = 2, title: o, className: s, children: c, ...l }, u) => p("svg", {
|
|
242
|
+
ref: u,
|
|
243
|
+
...se[e],
|
|
244
|
+
width: i,
|
|
245
|
+
height: i,
|
|
246
|
+
className: [
|
|
247
|
+
"tabler-icon",
|
|
248
|
+
`tabler-icon-${t}`,
|
|
249
|
+
s
|
|
250
|
+
].join(" "),
|
|
251
|
+
...e === "filled" ? { fill: n } : {
|
|
252
|
+
strokeWidth: a,
|
|
253
|
+
stroke: n
|
|
254
|
+
},
|
|
255
|
+
...l
|
|
256
|
+
}, [
|
|
257
|
+
o && p("title", { key: "svg-title" }, o),
|
|
258
|
+
...r.map(([e, t]) => p(e, t)),
|
|
259
|
+
...Array.isArray(c) ? c : [c]
|
|
260
|
+
]));
|
|
261
|
+
return i.displayName = `${n}`, i;
|
|
262
|
+
}, le = ce("filled", "alert-circle-filled", "AlertCircleFilled", [["path", {
|
|
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",
|
|
264
|
+
key: "svg-0"
|
|
265
|
+
}]]), ue = ce("filled", "alert-triangle-filled", "AlertTriangleFilled", [["path", {
|
|
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",
|
|
267
|
+
key: "svg-0"
|
|
268
|
+
}]]), D = ({ periodStatus: e }) => {
|
|
271
269
|
let { status: t, tooltipLabel: n } = e;
|
|
272
270
|
if (n == null || t !== w.RunningLow && t !== w.LimitReached) return null;
|
|
273
|
-
let r = t === w.LimitReached ?
|
|
271
|
+
let r = t === w.LimitReached ? le : ue;
|
|
274
272
|
return /* @__PURE__ */ d(l, {
|
|
275
273
|
tooltip: n,
|
|
276
274
|
asChild: !0,
|
|
@@ -285,7 +283,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
285
283
|
})
|
|
286
284
|
})
|
|
287
285
|
});
|
|
288
|
-
},
|
|
286
|
+
}, de = ({ cell: e, label: t, unavailableLabel: n, typography: r }) => {
|
|
289
287
|
let { secondaryValueClassName: i = "dial-tiny-text" } = r, o = e.kind === T.Unavailable;
|
|
290
288
|
return /* @__PURE__ */ f("div", {
|
|
291
289
|
className: "flex min-w-0 items-baseline gap-1",
|
|
@@ -298,15 +296,26 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
298
296
|
children: o ? n : e.usedLabel
|
|
299
297
|
})]
|
|
300
298
|
});
|
|
301
|
-
},
|
|
299
|
+
}, O = ({ cell: e, periodLabel: t, periodStatus: n, labels: r, typography: i, resetLabelClassName: o }) => /* @__PURE__ */ f("div", {
|
|
302
300
|
role: "cell",
|
|
303
301
|
className: "flex min-w-0 flex-col gap-2 py-2 desktop:py-0",
|
|
304
302
|
children: [
|
|
305
303
|
/* @__PURE__ */ f("div", {
|
|
306
304
|
className: a("dial-caption-lead-semi-text flex min-h-11 items-center justify-between gap-2 desktop:hidden", E.mobileColumnLabel),
|
|
307
|
-
children: [/* @__PURE__ */
|
|
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 })]
|
|
308
317
|
}),
|
|
309
|
-
/* @__PURE__ */ d(
|
|
318
|
+
/* @__PURE__ */ d(oe, {
|
|
310
319
|
cell: e.tokens,
|
|
311
320
|
label: r.tokensLabel,
|
|
312
321
|
progressAriaLabel: `${t} ${r.tokensLabel}`,
|
|
@@ -314,14 +323,14 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
314
323
|
labels: r,
|
|
315
324
|
typography: i
|
|
316
325
|
}),
|
|
317
|
-
/* @__PURE__ */ d(
|
|
326
|
+
/* @__PURE__ */ d(de, {
|
|
318
327
|
cell: e.cost,
|
|
319
328
|
label: r.costLabel,
|
|
320
329
|
unavailableLabel: r.unavailableLabel,
|
|
321
330
|
typography: i
|
|
322
331
|
})
|
|
323
332
|
]
|
|
324
|
-
}),
|
|
333
|
+
}), fe = "desktop:grid-cols-[minmax(12rem,1.25fr)_repeat(3,minmax(0,1fr))_minmax(8rem,10rem)]", pe = (e) => {
|
|
325
334
|
switch (e) {
|
|
326
335
|
case w.WithinLimits: return E.defaultBadge;
|
|
327
336
|
case w.RunningLow: return E.warningBadge;
|
|
@@ -329,7 +338,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
329
338
|
case w.NoLimit:
|
|
330
339
|
case w.Unavailable: return;
|
|
331
340
|
}
|
|
332
|
-
},
|
|
341
|
+
}, me = (e, t) => {
|
|
333
342
|
switch (e) {
|
|
334
343
|
case w.WithinLimits: return t.withinLimitsBadgeLabel;
|
|
335
344
|
case w.RunningLow: return t.runningLowBadgeLabel;
|
|
@@ -337,11 +346,11 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
337
346
|
case w.NoLimit: return t.noLimitBadgeLabel;
|
|
338
347
|
case w.Unavailable: return t.unavailableBadgeLabel;
|
|
339
348
|
}
|
|
340
|
-
},
|
|
341
|
-
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,
|
|
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;
|
|
342
351
|
return /* @__PURE__ */ f("div", {
|
|
343
352
|
role: "row",
|
|
344
|
-
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",
|
|
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),
|
|
345
354
|
children: [
|
|
346
355
|
/* @__PURE__ */ f("div", {
|
|
347
356
|
role: "cell",
|
|
@@ -378,26 +387,29 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
378
387
|
})]
|
|
379
388
|
})]
|
|
380
389
|
}),
|
|
381
|
-
/* @__PURE__ */ d(
|
|
382
|
-
cell: n.
|
|
383
|
-
periodLabel: r.
|
|
384
|
-
periodStatus: i.
|
|
390
|
+
/* @__PURE__ */ d(O, {
|
|
391
|
+
cell: n.day,
|
|
392
|
+
periodLabel: r.dayColumnLabel,
|
|
393
|
+
periodStatus: i.day,
|
|
385
394
|
labels: r,
|
|
386
|
-
typography: o
|
|
395
|
+
typography: o,
|
|
396
|
+
resetLabelClassName: g
|
|
387
397
|
}),
|
|
388
|
-
/* @__PURE__ */ d(
|
|
389
|
-
cell: n.
|
|
390
|
-
periodLabel: r.
|
|
391
|
-
periodStatus: i.
|
|
398
|
+
/* @__PURE__ */ d(O, {
|
|
399
|
+
cell: n.week,
|
|
400
|
+
periodLabel: r.weekColumnLabel,
|
|
401
|
+
periodStatus: i.week,
|
|
392
402
|
labels: r,
|
|
393
|
-
typography: o
|
|
403
|
+
typography: o,
|
|
404
|
+
resetLabelClassName: g
|
|
394
405
|
}),
|
|
395
|
-
/* @__PURE__ */ d(
|
|
396
|
-
cell: n.
|
|
397
|
-
periodLabel: r.
|
|
398
|
-
periodStatus: i.
|
|
406
|
+
/* @__PURE__ */ d(O, {
|
|
407
|
+
cell: n.month,
|
|
408
|
+
periodLabel: r.monthColumnLabel,
|
|
409
|
+
periodStatus: i.month,
|
|
399
410
|
labels: r,
|
|
400
|
-
typography: o
|
|
411
|
+
typography: o,
|
|
412
|
+
resetLabelClassName: g
|
|
401
413
|
}),
|
|
402
414
|
/* @__PURE__ */ f("div", {
|
|
403
415
|
role: "cell",
|
|
@@ -405,48 +417,59 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
405
417
|
children: [/* @__PURE__ */ d("span", {
|
|
406
418
|
className: a("dial-caption-lead-semi-text block desktop:hidden", E.mobileColumnLabel),
|
|
407
419
|
children: r.statusColumnLabel
|
|
408
|
-
}),
|
|
409
|
-
className: a("inline-flex h-6 shrink-0 items-center self-start rounded-full px-2", h,
|
|
410
|
-
children:
|
|
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)
|
|
411
423
|
}) : /* @__PURE__ */ d("span", {
|
|
412
424
|
className: a(m, E.neutralStatus),
|
|
413
|
-
children:
|
|
425
|
+
children: me(n.status, r)
|
|
414
426
|
})]
|
|
415
427
|
})
|
|
416
428
|
]
|
|
417
429
|
});
|
|
418
|
-
},
|
|
430
|
+
}, ge = 40, k = ({ label: e, periodStatus: t, className: n, resetLabelClassName: r }) => /* @__PURE__ */ f("span", {
|
|
419
431
|
role: "columnheader",
|
|
420
432
|
className: a("flex min-w-0 items-center justify-between gap-2", n, E.columnHeader),
|
|
421
|
-
children: [/* @__PURE__ */
|
|
422
|
-
className: "min-w-0
|
|
423
|
-
children:
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
"
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
"--mls-
|
|
439
|
-
"--mls-
|
|
440
|
-
"--mls-
|
|
441
|
-
"--mls-
|
|
442
|
-
"--mls-
|
|
443
|
-
"--mls-
|
|
444
|
-
"--mls-
|
|
445
|
-
"--mls-
|
|
446
|
-
"--mls-
|
|
447
|
-
"--mls-
|
|
448
|
-
"--mls-
|
|
449
|
-
"--mls-
|
|
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({
|
|
450
|
+
"--mls-container-bg": s?.containerBackground,
|
|
451
|
+
"--mls-heading": s?.headingColor,
|
|
452
|
+
"--mls-heading-count": s?.headingCountColor,
|
|
453
|
+
"--mls-column-header": s?.columnHeaderColor,
|
|
454
|
+
"--mls-row-divider": s?.rowDividerColor,
|
|
455
|
+
"--mls-name": s?.nameColor,
|
|
456
|
+
"--mls-model-type": s?.modelTypeColor,
|
|
457
|
+
"--mls-version": s?.versionColor,
|
|
458
|
+
"--mls-value": s?.valueColor,
|
|
459
|
+
"--mls-secondary-value": s?.secondaryValueColor,
|
|
460
|
+
"--mls-progress-track": s?.progressTrackColor,
|
|
461
|
+
"--mls-progress-default": s?.defaultProgressColor,
|
|
462
|
+
"--mls-progress-warning": s?.warningProgressColor,
|
|
463
|
+
"--mls-progress-error": s?.errorProgressColor,
|
|
464
|
+
"--mls-indicator-warning": s?.warningIndicatorColor,
|
|
465
|
+
"--mls-indicator-error": s?.errorIndicatorColor,
|
|
466
|
+
"--mls-badge-default-bg": s?.defaultBadgeBackground,
|
|
467
|
+
"--mls-badge-default-text": s?.defaultBadgeColor,
|
|
468
|
+
"--mls-badge-warning-bg": s?.warningBadgeBackground,
|
|
469
|
+
"--mls-badge-warning-text": s?.warningBadgeColor,
|
|
470
|
+
"--mls-badge-error-bg": s?.errorBadgeBackground,
|
|
471
|
+
"--mls-badge-error-text": s?.errorBadgeColor,
|
|
472
|
+
"--mls-badge-neutral-text": s?.neutralBadgeColor
|
|
450
473
|
}), _ = `${t.headingLabel} ${e.length}`;
|
|
451
474
|
return /* @__PURE__ */ f("div", {
|
|
452
475
|
className: "flex flex-col gap-4",
|
|
@@ -456,10 +479,10 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
456
479
|
children: /* @__PURE__ */ f("h3", {
|
|
457
480
|
className: "m-0 flex items-center gap-2",
|
|
458
481
|
children: [/* @__PURE__ */ d("span", {
|
|
459
|
-
className: a(
|
|
482
|
+
className: a(l, E.heading),
|
|
460
483
|
children: t.headingLabel
|
|
461
484
|
}), /* @__PURE__ */ d("span", {
|
|
462
|
-
className: a(
|
|
485
|
+
className: a(p, E.headingCount),
|
|
463
486
|
children: e.length
|
|
464
487
|
})]
|
|
465
488
|
})
|
|
@@ -469,86 +492,88 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
469
492
|
className: a("overflow-hidden rounded-xl shadow-md", E.container),
|
|
470
493
|
children: e.length === 0 ? /* @__PURE__ */ d("div", {
|
|
471
494
|
className: "flex items-center justify-center px-6 py-10",
|
|
472
|
-
children: /* @__PURE__ */ d(n, {
|
|
473
|
-
icon: /* @__PURE__ */ d(se, {
|
|
474
|
-
"aria-hidden": !0,
|
|
475
|
-
size: s,
|
|
476
|
-
stroke: 1
|
|
477
|
-
}),
|
|
478
|
-
label: t.emptyStateLabel
|
|
479
|
-
})
|
|
495
|
+
children: /* @__PURE__ */ d(n, { label: t.emptyStateLabel })
|
|
480
496
|
}) : /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f("div", {
|
|
481
497
|
role: "row",
|
|
482
|
-
className: a("hidden gap-4 px-6 py-3 desktop:grid desktop:items-center",
|
|
498
|
+
className: a("hidden gap-4 px-6 py-3 desktop:grid desktop:items-center", fe, E.headerRow),
|
|
483
499
|
children: [
|
|
484
500
|
/* @__PURE__ */ d("span", {
|
|
485
501
|
role: "columnheader",
|
|
486
|
-
className: a(
|
|
502
|
+
className: a(m, E.columnHeader),
|
|
487
503
|
children: t.itemColumnLabel
|
|
488
504
|
}),
|
|
489
|
-
/* @__PURE__ */ d(
|
|
490
|
-
label: t.
|
|
491
|
-
periodStatus: i.
|
|
492
|
-
className:
|
|
505
|
+
/* @__PURE__ */ d(k, {
|
|
506
|
+
label: t.dayColumnLabel,
|
|
507
|
+
periodStatus: i.day,
|
|
508
|
+
className: m,
|
|
509
|
+
resetLabelClassName: h
|
|
493
510
|
}),
|
|
494
|
-
/* @__PURE__ */ d(
|
|
495
|
-
label: t.
|
|
496
|
-
periodStatus: i.
|
|
497
|
-
className:
|
|
511
|
+
/* @__PURE__ */ d(k, {
|
|
512
|
+
label: t.weekColumnLabel,
|
|
513
|
+
periodStatus: i.week,
|
|
514
|
+
className: m,
|
|
515
|
+
resetLabelClassName: h
|
|
498
516
|
}),
|
|
499
|
-
/* @__PURE__ */ d(
|
|
500
|
-
label: t.
|
|
501
|
-
periodStatus: i.
|
|
502
|
-
className:
|
|
517
|
+
/* @__PURE__ */ d(k, {
|
|
518
|
+
label: t.monthColumnLabel,
|
|
519
|
+
periodStatus: i.month,
|
|
520
|
+
className: m,
|
|
521
|
+
resetLabelClassName: h
|
|
503
522
|
}),
|
|
504
523
|
/* @__PURE__ */ d("span", {
|
|
505
524
|
role: "columnheader",
|
|
506
|
-
className: a(
|
|
525
|
+
className: a(m, E.columnHeader),
|
|
507
526
|
children: t.statusColumnLabel
|
|
508
527
|
})
|
|
509
528
|
]
|
|
510
529
|
}), /* @__PURE__ */ d("div", {
|
|
511
530
|
role: "rowgroup",
|
|
512
|
-
children: e.map((e) => /* @__PURE__ */ d(
|
|
531
|
+
children: e.map((e) => /* @__PURE__ */ d(he, {
|
|
513
532
|
row: e,
|
|
514
533
|
labels: t,
|
|
515
534
|
periodStatuses: i,
|
|
516
|
-
typography:
|
|
517
|
-
avatarSize:
|
|
535
|
+
typography: c,
|
|
536
|
+
avatarSize: ge
|
|
518
537
|
}, e.id))
|
|
519
538
|
})] })
|
|
520
539
|
})]
|
|
521
540
|
});
|
|
522
|
-
},
|
|
523
|
-
|
|
524
|
-
|
|
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 {
|
|
525
548
|
title: t,
|
|
526
549
|
periodDescription: n,
|
|
527
|
-
used:
|
|
550
|
+
used: o,
|
|
528
551
|
total: e.total,
|
|
529
|
-
usedLabel:
|
|
552
|
+
usedLabel: s,
|
|
530
553
|
isUnlimited: !0,
|
|
531
|
-
status:
|
|
532
|
-
progressAriaLabel: r(
|
|
554
|
+
status: S.Default,
|
|
555
|
+
progressAriaLabel: r(A.unlimitedProgressAriaLabel, { used: s }),
|
|
556
|
+
...c
|
|
533
557
|
};
|
|
534
|
-
let
|
|
558
|
+
let l = Math.max(e.total, 0), u = Math.max(l - o, 0), d = l > 0 ? o / l * 100 : 100, f = i(l);
|
|
535
559
|
return {
|
|
536
560
|
title: t,
|
|
537
561
|
periodDescription: n,
|
|
538
|
-
used:
|
|
539
|
-
total:
|
|
540
|
-
usedLabel:
|
|
541
|
-
totalLabel:
|
|
542
|
-
remainingLabel: i(
|
|
543
|
-
usedPercent:
|
|
544
|
-
status:
|
|
545
|
-
progressAriaLabel: r(
|
|
546
|
-
used:
|
|
547
|
-
total:
|
|
548
|
-
percent: Math.round(
|
|
549
|
-
})
|
|
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
|
|
550
575
|
};
|
|
551
|
-
},
|
|
576
|
+
}, A = {
|
|
552
577
|
todayTitle: "usage.todayTitle",
|
|
553
578
|
todayPeriodDescription: "usage.todayPeriodDescription",
|
|
554
579
|
thisWeekTitle: "usage.thisWeekTitle",
|
|
@@ -557,83 +582,83 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
557
582
|
thisMonthPeriodDescription: "usage.thisMonthPeriodDescription",
|
|
558
583
|
unlimitedProgressAriaLabel: "usage.unlimitedProgressAriaLabel",
|
|
559
584
|
progressAriaLabel: "usage.progressAriaLabel"
|
|
560
|
-
},
|
|
585
|
+
}, we = (e, t, n) => [
|
|
561
586
|
{
|
|
562
587
|
stats: e?.dayCostStats,
|
|
563
|
-
titleKey:
|
|
564
|
-
periodDescriptionKey:
|
|
588
|
+
titleKey: A.todayTitle,
|
|
589
|
+
periodDescriptionKey: A.todayPeriodDescription
|
|
565
590
|
},
|
|
566
591
|
{
|
|
567
592
|
stats: e?.weekCostStats,
|
|
568
|
-
titleKey:
|
|
569
|
-
periodDescriptionKey:
|
|
593
|
+
titleKey: A.thisWeekTitle,
|
|
594
|
+
periodDescriptionKey: A.thisWeekPeriodDescription
|
|
570
595
|
},
|
|
571
596
|
{
|
|
572
597
|
stats: e?.monthCostStats,
|
|
573
|
-
titleKey:
|
|
574
|
-
periodDescriptionKey:
|
|
598
|
+
titleKey: A.thisMonthTitle,
|
|
599
|
+
periodDescriptionKey: A.thisMonthPeriodDescription
|
|
575
600
|
}
|
|
576
|
-
].flatMap(({ stats: e, titleKey:
|
|
577
|
-
__addDisposableResource: () =>
|
|
578
|
-
__assign: () =>
|
|
579
|
-
__asyncDelegator: () =>
|
|
580
|
-
__asyncGenerator: () =>
|
|
581
|
-
__asyncValues: () =>
|
|
582
|
-
__await: () =>
|
|
583
|
-
__awaiter: () =>
|
|
584
|
-
__classPrivateFieldGet: () =>
|
|
585
|
-
__classPrivateFieldIn: () =>
|
|
586
|
-
__classPrivateFieldSet: () =>
|
|
587
|
-
__createBinding: () =>
|
|
588
|
-
__decorate: () =>
|
|
589
|
-
__disposeResources: () =>
|
|
590
|
-
__esDecorate: () =>
|
|
591
|
-
__exportStar: () =>
|
|
592
|
-
__extends: () =>
|
|
593
|
-
__generator: () =>
|
|
594
|
-
__importDefault: () =>
|
|
595
|
-
__importStar: () =>
|
|
596
|
-
__makeTemplateObject: () =>
|
|
597
|
-
__metadata: () =>
|
|
598
|
-
__param: () =>
|
|
599
|
-
__propKey: () =>
|
|
600
|
-
__read: () =>
|
|
601
|
-
__rest: () =>
|
|
602
|
-
__rewriteRelativeImportExtension: () =>
|
|
603
|
-
__runInitializers: () =>
|
|
604
|
-
__setFunctionName: () =>
|
|
605
|
-
__spread: () =>
|
|
606
|
-
__spreadArray: () =>
|
|
607
|
-
__spreadArrays: () =>
|
|
608
|
-
__values: () =>
|
|
609
|
-
default: () =>
|
|
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
|
|
610
635
|
});
|
|
611
|
-
function
|
|
636
|
+
function M(e, t) {
|
|
612
637
|
if (typeof t != "function" && t !== null) throw TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
613
|
-
|
|
638
|
+
R(e, t);
|
|
614
639
|
function n() {
|
|
615
640
|
this.constructor = e;
|
|
616
641
|
}
|
|
617
642
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
618
643
|
}
|
|
619
|
-
function
|
|
644
|
+
function N(e, t) {
|
|
620
645
|
var n = {};
|
|
621
646
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
622
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]]);
|
|
623
648
|
return n;
|
|
624
649
|
}
|
|
625
|
-
function
|
|
650
|
+
function P(e, t, n, r) {
|
|
626
651
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
627
652
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
628
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);
|
|
629
654
|
return i > 3 && a && Object.defineProperty(t, n, a), a;
|
|
630
655
|
}
|
|
631
|
-
function
|
|
656
|
+
function Te(e, t) {
|
|
632
657
|
return function(n, r) {
|
|
633
658
|
t(n, r, e);
|
|
634
659
|
};
|
|
635
660
|
}
|
|
636
|
-
function
|
|
661
|
+
function Ee(e, t, n, r, i, a) {
|
|
637
662
|
function o(e) {
|
|
638
663
|
if (e !== void 0 && typeof e != "function") throw TypeError("Function expected");
|
|
639
664
|
return e;
|
|
@@ -658,23 +683,23 @@ function F(e, t, n, r, i, a) {
|
|
|
658
683
|
}
|
|
659
684
|
l && Object.defineProperty(l, r.name, u), f = !0;
|
|
660
685
|
}
|
|
661
|
-
function
|
|
686
|
+
function De(e, t, n) {
|
|
662
687
|
for (var r = arguments.length > 2, i = 0; i < t.length; i++) n = r ? t[i].call(e, n) : t[i].call(e);
|
|
663
688
|
return r ? n : void 0;
|
|
664
689
|
}
|
|
665
|
-
function
|
|
690
|
+
function Oe(e) {
|
|
666
691
|
return typeof e == "symbol" ? e : `${e}`;
|
|
667
692
|
}
|
|
668
|
-
function
|
|
693
|
+
function ke(e, t, n) {
|
|
669
694
|
return typeof t == "symbol" && (t = t.description ? `[${t.description}]` : ""), Object.defineProperty(e, "name", {
|
|
670
695
|
configurable: !0,
|
|
671
696
|
value: n ? `${n} ${t}` : t
|
|
672
697
|
});
|
|
673
698
|
}
|
|
674
|
-
function
|
|
699
|
+
function Ae(e, t) {
|
|
675
700
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
|
|
676
701
|
}
|
|
677
|
-
function
|
|
702
|
+
function je(e, t, n, r) {
|
|
678
703
|
function i(e) {
|
|
679
704
|
return e instanceof n ? e : new n(function(t) {
|
|
680
705
|
t(e);
|
|
@@ -701,7 +726,7 @@ function ke(e, t, n, r) {
|
|
|
701
726
|
c((r = r.apply(e, t || [])).next());
|
|
702
727
|
});
|
|
703
728
|
}
|
|
704
|
-
function
|
|
729
|
+
function Me(e, t) {
|
|
705
730
|
var n = {
|
|
706
731
|
label: 0,
|
|
707
732
|
sent: function() {
|
|
@@ -771,10 +796,10 @@ function Ae(e, t) {
|
|
|
771
796
|
};
|
|
772
797
|
}
|
|
773
798
|
}
|
|
774
|
-
function
|
|
775
|
-
for (var n in e) n !== "default" && !Object.prototype.hasOwnProperty.call(t, n) &&
|
|
799
|
+
function Ne(e, t) {
|
|
800
|
+
for (var n in e) n !== "default" && !Object.prototype.hasOwnProperty.call(t, n) && B(t, e, n);
|
|
776
801
|
}
|
|
777
|
-
function
|
|
802
|
+
function F(e) {
|
|
778
803
|
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
779
804
|
if (n) return n.call(e);
|
|
780
805
|
if (e && typeof e.length == "number") return { next: function() {
|
|
@@ -785,7 +810,7 @@ function L(e) {
|
|
|
785
810
|
} };
|
|
786
811
|
throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
787
812
|
}
|
|
788
|
-
function
|
|
813
|
+
function I(e, t) {
|
|
789
814
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
790
815
|
if (!n) return e;
|
|
791
816
|
var r = n.call(e), i, a = [], o;
|
|
@@ -802,23 +827,23 @@ function R(e, t) {
|
|
|
802
827
|
}
|
|
803
828
|
return a;
|
|
804
829
|
}
|
|
805
|
-
function
|
|
806
|
-
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(
|
|
830
|
+
function Pe() {
|
|
831
|
+
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(I(arguments[t]));
|
|
807
832
|
return e;
|
|
808
833
|
}
|
|
809
|
-
function
|
|
834
|
+
function Fe() {
|
|
810
835
|
for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
|
|
811
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];
|
|
812
837
|
return r;
|
|
813
838
|
}
|
|
814
|
-
function
|
|
839
|
+
function Ie(e, t, n) {
|
|
815
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]);
|
|
816
841
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
817
842
|
}
|
|
818
|
-
function
|
|
819
|
-
return this instanceof
|
|
843
|
+
function L(e) {
|
|
844
|
+
return this instanceof L ? (this.v = e, this) : new L(e);
|
|
820
845
|
}
|
|
821
|
-
function
|
|
846
|
+
function Le(e, t, n) {
|
|
822
847
|
if (!Symbol.asyncIterator) throw TypeError("Symbol.asyncIterator is not defined.");
|
|
823
848
|
var r = n.apply(e, t || []), i, a = [];
|
|
824
849
|
return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), s("next"), s("throw"), s("return", o), i[Symbol.asyncIterator] = function() {
|
|
@@ -849,7 +874,7 @@ function Fe(e, t, n) {
|
|
|
849
874
|
}
|
|
850
875
|
}
|
|
851
876
|
function l(e) {
|
|
852
|
-
e.value instanceof
|
|
877
|
+
e.value instanceof L ? Promise.resolve(e.value.v).then(u, d) : f(a[0][2], e);
|
|
853
878
|
}
|
|
854
879
|
function u(e) {
|
|
855
880
|
c("next", e);
|
|
@@ -861,7 +886,7 @@ function Fe(e, t, n) {
|
|
|
861
886
|
e(t), a.shift(), a.length && c(a[0][0], a[0][1]);
|
|
862
887
|
}
|
|
863
888
|
}
|
|
864
|
-
function
|
|
889
|
+
function Re(e) {
|
|
865
890
|
var t, n;
|
|
866
891
|
return t = {}, r("next"), r("throw", function(e) {
|
|
867
892
|
throw e;
|
|
@@ -871,16 +896,16 @@ function Ie(e) {
|
|
|
871
896
|
function r(r, i) {
|
|
872
897
|
t[r] = e[r] ? function(t) {
|
|
873
898
|
return (n = !n) ? {
|
|
874
|
-
value:
|
|
899
|
+
value: L(e[r](t)),
|
|
875
900
|
done: !1
|
|
876
901
|
} : i ? i(t) : t;
|
|
877
902
|
} : i;
|
|
878
903
|
}
|
|
879
904
|
}
|
|
880
|
-
function
|
|
905
|
+
function ze(e) {
|
|
881
906
|
if (!Symbol.asyncIterator) throw TypeError("Symbol.asyncIterator is not defined.");
|
|
882
907
|
var t = e[Symbol.asyncIterator], n;
|
|
883
|
-
return t ? t.call(e) : (e = typeof
|
|
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() {
|
|
884
909
|
return this;
|
|
885
910
|
}, n);
|
|
886
911
|
function r(t) {
|
|
@@ -899,34 +924,34 @@ function Le(e) {
|
|
|
899
924
|
}, t);
|
|
900
925
|
}
|
|
901
926
|
}
|
|
902
|
-
function
|
|
927
|
+
function Be(e, t) {
|
|
903
928
|
return Object.defineProperty ? Object.defineProperty(e, "raw", { value: t }) : e.raw = t, e;
|
|
904
929
|
}
|
|
905
|
-
function
|
|
930
|
+
function Ve(e) {
|
|
906
931
|
if (e && e.__esModule) return e;
|
|
907
932
|
var t = {};
|
|
908
|
-
if (e != null) for (var n =
|
|
909
|
-
return
|
|
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;
|
|
910
935
|
}
|
|
911
|
-
function
|
|
936
|
+
function He(e) {
|
|
912
937
|
return e && e.__esModule ? e : { default: e };
|
|
913
938
|
}
|
|
914
|
-
function
|
|
939
|
+
function Ue(e, t, n, r) {
|
|
915
940
|
if (n === "a" && !r) throw TypeError("Private accessor was defined without a getter");
|
|
916
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");
|
|
917
942
|
return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
|
|
918
943
|
}
|
|
919
|
-
function
|
|
944
|
+
function We(e, t, n, r, i) {
|
|
920
945
|
if (r === "m") throw TypeError("Private method is not writable");
|
|
921
946
|
if (r === "a" && !i) throw TypeError("Private accessor was defined without a setter");
|
|
922
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");
|
|
923
948
|
return r === "a" ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
|
|
924
949
|
}
|
|
925
|
-
function
|
|
950
|
+
function Ge(e, t) {
|
|
926
951
|
if (t === null || typeof t != "object" && typeof t != "function") throw TypeError("Cannot use 'in' operator on non-object");
|
|
927
952
|
return typeof e == "function" ? t === e : e.has(t);
|
|
928
953
|
}
|
|
929
|
-
function
|
|
954
|
+
function Ke(e, t, n) {
|
|
930
955
|
if (t != null) {
|
|
931
956
|
if (typeof t != "object" && typeof t != "function") throw TypeError("Object expected.");
|
|
932
957
|
var r, i;
|
|
@@ -953,9 +978,9 @@ function We(e, t, n) {
|
|
|
953
978
|
} else n && e.stack.push({ async: !0 });
|
|
954
979
|
return t;
|
|
955
980
|
}
|
|
956
|
-
function
|
|
981
|
+
function qe(e) {
|
|
957
982
|
function t(t) {
|
|
958
|
-
e.error = e.hasError ? new
|
|
983
|
+
e.error = e.hasError ? new H(t, e.error, "An error was suppressed during disposal.") : t, e.hasError = !0;
|
|
959
984
|
}
|
|
960
985
|
var n, r = 0;
|
|
961
986
|
function i() {
|
|
@@ -975,24 +1000,24 @@ function Ge(e) {
|
|
|
975
1000
|
}
|
|
976
1001
|
return i();
|
|
977
1002
|
}
|
|
978
|
-
function
|
|
1003
|
+
function Je(e, t) {
|
|
979
1004
|
return typeof e == "string" && /^\.\.?\//.test(e) ? e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(e, n, r, i, a) {
|
|
980
1005
|
return n ? t ? ".jsx" : ".js" : r && (!i || !a) ? e : r + i + "." + a.toLowerCase() + "js";
|
|
981
1006
|
}) : e;
|
|
982
1007
|
}
|
|
983
|
-
var
|
|
984
|
-
|
|
985
|
-
return
|
|
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) {
|
|
986
1011
|
e.__proto__ = t;
|
|
987
1012
|
} || function(e, t) {
|
|
988
1013
|
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
989
|
-
},
|
|
990
|
-
},
|
|
991
|
-
return
|
|
1014
|
+
}, R(e, t);
|
|
1015
|
+
}, z = function() {
|
|
1016
|
+
return z = Object.assign || function(e) {
|
|
992
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]);
|
|
993
1018
|
return e;
|
|
994
|
-
},
|
|
995
|
-
},
|
|
1019
|
+
}, z.apply(this, arguments);
|
|
1020
|
+
}, B = Object.create ? (function(e, t, n, r) {
|
|
996
1021
|
r === void 0 && (r = n);
|
|
997
1022
|
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
998
1023
|
(!i || ("get" in i ? !t.__esModule : i.writable || i.configurable)) && (i = {
|
|
@@ -1003,57 +1028,57 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1003
1028
|
}), Object.defineProperty(e, r, i);
|
|
1004
1029
|
}) : (function(e, t, n, r) {
|
|
1005
1030
|
r === void 0 && (r = n), e[r] = t[n];
|
|
1006
|
-
}),
|
|
1031
|
+
}), Ye = Object.create ? (function(e, t) {
|
|
1007
1032
|
Object.defineProperty(e, "default", {
|
|
1008
1033
|
enumerable: !0,
|
|
1009
1034
|
value: t
|
|
1010
1035
|
});
|
|
1011
1036
|
}) : function(e, t) {
|
|
1012
1037
|
e.default = t;
|
|
1013
|
-
},
|
|
1014
|
-
return
|
|
1038
|
+
}, V = function(e) {
|
|
1039
|
+
return V = Object.getOwnPropertyNames || function(e) {
|
|
1015
1040
|
var t = [];
|
|
1016
1041
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[t.length] = n);
|
|
1017
1042
|
return t;
|
|
1018
|
-
},
|
|
1019
|
-
},
|
|
1043
|
+
}, V(e);
|
|
1044
|
+
}, H = typeof SuppressedError == "function" ? SuppressedError : function(e, t, n) {
|
|
1020
1045
|
var r = Error(n);
|
|
1021
1046
|
return r.name = "SuppressedError", r.error = e, r.suppressed = t, r;
|
|
1022
|
-
},
|
|
1023
|
-
__extends:
|
|
1024
|
-
__assign:
|
|
1025
|
-
__rest:
|
|
1026
|
-
__decorate:
|
|
1027
|
-
__param:
|
|
1028
|
-
__esDecorate:
|
|
1029
|
-
__runInitializers:
|
|
1030
|
-
__propKey:
|
|
1031
|
-
__setFunctionName:
|
|
1032
|
-
__metadata:
|
|
1033
|
-
__awaiter:
|
|
1034
|
-
__generator:
|
|
1035
|
-
__createBinding:
|
|
1036
|
-
__exportStar:
|
|
1037
|
-
__values:
|
|
1038
|
-
__read:
|
|
1039
|
-
__spread:
|
|
1040
|
-
__spreadArrays:
|
|
1041
|
-
__spreadArray:
|
|
1042
|
-
__await:
|
|
1043
|
-
__asyncGenerator:
|
|
1044
|
-
__asyncDelegator:
|
|
1045
|
-
__asyncValues:
|
|
1046
|
-
__makeTemplateObject:
|
|
1047
|
-
__importStar:
|
|
1048
|
-
__importDefault:
|
|
1049
|
-
__classPrivateFieldGet:
|
|
1050
|
-
__classPrivateFieldSet:
|
|
1051
|
-
__classPrivateFieldIn:
|
|
1052
|
-
__addDisposableResource:
|
|
1053
|
-
__disposeResources:
|
|
1054
|
-
__rewriteRelativeImportExtension:
|
|
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
|
|
1055
1080
|
};
|
|
1056
|
-
})),
|
|
1081
|
+
})), W = /* @__PURE__ */ b(((e) => {
|
|
1057
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(/\/+$/, "");
|
|
1058
1083
|
var t = class {
|
|
1059
1084
|
configuration;
|
|
@@ -1268,9 +1293,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1268
1293
|
return await this.raw.text();
|
|
1269
1294
|
}
|
|
1270
1295
|
};
|
|
1271
|
-
})),
|
|
1296
|
+
})), Ze = /* @__PURE__ */ b(((e) => {
|
|
1272
1297
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.AppConfigApi = void 0;
|
|
1273
|
-
var t =
|
|
1298
|
+
var t = W();
|
|
1274
1299
|
e.AppConfigApi = class extends t.BaseAPI {
|
|
1275
1300
|
async getClientConfigRaw(e, n) {
|
|
1276
1301
|
if (e.appId == null) throw new t.RequiredError("appId", "Required parameter \"appId\" was null or undefined when calling getClientConfig().");
|
|
@@ -1288,9 +1313,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1288
1313
|
return await (await this.getClientConfigRaw(e, t)).value();
|
|
1289
1314
|
}
|
|
1290
1315
|
};
|
|
1291
|
-
})),
|
|
1316
|
+
})), Qe = /* @__PURE__ */ b(((e) => {
|
|
1292
1317
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ApplicationsApi = void 0;
|
|
1293
|
-
var t =
|
|
1318
|
+
var t = W();
|
|
1294
1319
|
e.ApplicationsApi = class extends t.BaseAPI {
|
|
1295
1320
|
async createApplicationRaw(e, n) {
|
|
1296
1321
|
if (e.createApplicationBodyDto == null) throw new t.RequiredError("createApplicationBodyDto", "Required parameter \"createApplicationBodyDto\" was null or undefined when calling createApplication().");
|
|
@@ -1382,9 +1407,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1382
1407
|
return await (await this.updateApplicationRaw(e, t)).value();
|
|
1383
1408
|
}
|
|
1384
1409
|
};
|
|
1385
|
-
})),
|
|
1410
|
+
})), $e = /* @__PURE__ */ b(((e) => {
|
|
1386
1411
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.AuthApi = void 0;
|
|
1387
|
-
var t =
|
|
1412
|
+
var t = W();
|
|
1388
1413
|
e.AuthApi = class extends t.BaseAPI {
|
|
1389
1414
|
async callbackRaw(e, n) {
|
|
1390
1415
|
if (e.providerId == null) throw new t.RequiredError("providerId", "Required parameter \"providerId\" was null or undefined when calling callback().");
|
|
@@ -1458,9 +1483,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1458
1483
|
await this.logoutRaw(e);
|
|
1459
1484
|
}
|
|
1460
1485
|
};
|
|
1461
|
-
})),
|
|
1486
|
+
})), et = /* @__PURE__ */ b(((e) => {
|
|
1462
1487
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ChatApi = void 0;
|
|
1463
|
-
var t =
|
|
1488
|
+
var t = W();
|
|
1464
1489
|
e.ChatApi = class extends t.BaseAPI {
|
|
1465
1490
|
async sendCompletionRaw(e, n) {
|
|
1466
1491
|
if (e.chatCompletionDto == null) throw new t.RequiredError("chatCompletionDto", "Required parameter \"chatCompletionDto\" was null or undefined when calling sendCompletion().");
|
|
@@ -1479,9 +1504,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1479
1504
|
return await (await this.sendCompletionRaw(e, t)).value();
|
|
1480
1505
|
}
|
|
1481
1506
|
};
|
|
1482
|
-
})),
|
|
1507
|
+
})), tt = /* @__PURE__ */ b(((e) => {
|
|
1483
1508
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ClientChannelApi = void 0;
|
|
1484
|
-
var t =
|
|
1509
|
+
var t = W();
|
|
1485
1510
|
e.ClientChannelApi = class extends t.BaseAPI {
|
|
1486
1511
|
async reportClientChannelRaw(e, n) {
|
|
1487
1512
|
if (e.xDialClientChannelId == null) throw new t.RequiredError("xDialClientChannelId", "Required parameter \"xDialClientChannelId\" was null or undefined when calling reportClientChannel().");
|
|
@@ -1530,9 +1555,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1530
1555
|
await this.unsubscribeClientChannelRaw(e, t);
|
|
1531
1556
|
}
|
|
1532
1557
|
};
|
|
1533
|
-
})),
|
|
1558
|
+
})), nt = /* @__PURE__ */ b(((e) => {
|
|
1534
1559
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ConversationsApi = void 0;
|
|
1535
|
-
var t =
|
|
1560
|
+
var t = W();
|
|
1536
1561
|
e.ConversationsApi = class extends t.BaseAPI {
|
|
1537
1562
|
async attachToGenerationRaw(e, n) {
|
|
1538
1563
|
if (e.attachGenerationDto == null) throw new t.RequiredError("attachGenerationDto", "Required parameter \"attachGenerationDto\" was null or undefined when calling attachToGeneration().");
|
|
@@ -1842,9 +1867,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1842
1867
|
await this.watchConversationRaw(e, t);
|
|
1843
1868
|
}
|
|
1844
1869
|
};
|
|
1845
|
-
})),
|
|
1870
|
+
})), rt = /* @__PURE__ */ b(((e) => {
|
|
1846
1871
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ListDeploymentsInterfaceTypeEnum = e.DeploymentsApi = void 0;
|
|
1847
|
-
var t =
|
|
1872
|
+
var t = W();
|
|
1848
1873
|
e.DeploymentsApi = class extends t.BaseAPI {
|
|
1849
1874
|
async getDeploymentConfigurationRaw(e, n) {
|
|
1850
1875
|
if (e.deployment == null) throw new t.RequiredError("deployment", "Required parameter \"deployment\" was null or undefined when calling getDeploymentConfiguration().");
|
|
@@ -1912,9 +1937,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1912
1937
|
CustomUi: "custom_ui",
|
|
1913
1938
|
All: "all"
|
|
1914
1939
|
};
|
|
1915
|
-
})),
|
|
1940
|
+
})), it = /* @__PURE__ */ b(((e) => {
|
|
1916
1941
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ExternalServicesApi = void 0;
|
|
1917
|
-
var t =
|
|
1942
|
+
var t = W();
|
|
1918
1943
|
e.ExternalServicesApi = class extends t.BaseAPI {
|
|
1919
1944
|
async getExternalServiceRaw(e, n) {
|
|
1920
1945
|
if (e.appId == null) throw new t.RequiredError("appId", "Required parameter \"appId\" was null or undefined when calling getExternalService().");
|
|
@@ -1973,9 +1998,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1973
1998
|
return await (await this.signOutExternalServiceRaw(e, t)).value();
|
|
1974
1999
|
}
|
|
1975
2000
|
};
|
|
1976
|
-
})),
|
|
2001
|
+
})), at = /* @__PURE__ */ b(((e) => {
|
|
1977
2002
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.UploadFileUploadModeEnum = e.FilesApi = void 0;
|
|
1978
|
-
var t =
|
|
2003
|
+
var t = W();
|
|
1979
2004
|
e.FilesApi = class extends t.BaseAPI {
|
|
1980
2005
|
async copyFilesRaw(e, n) {
|
|
1981
2006
|
if (e.copyFilesDto == null) throw new t.RequiredError("copyFilesDto", "Required parameter \"copyFilesDto\" was null or undefined when calling copyFiles().");
|
|
@@ -2235,9 +2260,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2235
2260
|
Overwrite: "overwrite",
|
|
2236
2261
|
CreateOnly: "create-only"
|
|
2237
2262
|
};
|
|
2238
|
-
})),
|
|
2263
|
+
})), ot = /* @__PURE__ */ b(((e) => {
|
|
2239
2264
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.HealthApi = void 0;
|
|
2240
|
-
var t =
|
|
2265
|
+
var t = W();
|
|
2241
2266
|
e.HealthApi = class extends t.BaseAPI {
|
|
2242
2267
|
async checkRaw(e) {
|
|
2243
2268
|
let n = await this.request({
|
|
@@ -2252,9 +2277,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2252
2277
|
return await (await this.checkRaw(e)).value();
|
|
2253
2278
|
}
|
|
2254
2279
|
};
|
|
2255
|
-
})),
|
|
2280
|
+
})), st = /* @__PURE__ */ b(((e) => {
|
|
2256
2281
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ModelsApi = void 0;
|
|
2257
|
-
var t =
|
|
2282
|
+
var t = W();
|
|
2258
2283
|
e.ModelsApi = class extends t.BaseAPI {
|
|
2259
2284
|
async getModelRaw(e, n) {
|
|
2260
2285
|
if (e.modelName == null) throw new t.RequiredError("modelName", "Required parameter \"modelName\" was null or undefined when calling getModel().");
|
|
@@ -2284,9 +2309,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2284
2309
|
return await (await this.listModelsRaw(e)).value();
|
|
2285
2310
|
}
|
|
2286
2311
|
};
|
|
2287
|
-
})),
|
|
2312
|
+
})), ct = /* @__PURE__ */ b(((e) => {
|
|
2288
2313
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.OfflineCredentialsApi = void 0;
|
|
2289
|
-
var t =
|
|
2314
|
+
var t = W();
|
|
2290
2315
|
e.OfflineCredentialsApi = class extends t.BaseAPI {
|
|
2291
2316
|
async getOfflineCredentialsRaw(e) {
|
|
2292
2317
|
let n = await this.request({
|
|
@@ -2317,9 +2342,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2317
2342
|
return await (await this.signInOfflineCredentialsRaw(e, t)).value();
|
|
2318
2343
|
}
|
|
2319
2344
|
};
|
|
2320
|
-
})),
|
|
2345
|
+
})), lt = /* @__PURE__ */ b(((e) => {
|
|
2321
2346
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.PromptsApi = void 0;
|
|
2322
|
-
var t =
|
|
2347
|
+
var t = W();
|
|
2323
2348
|
e.PromptsApi = class extends t.BaseAPI {
|
|
2324
2349
|
async createPromptRaw(e, n) {
|
|
2325
2350
|
if (e.createPromptDto == null) throw new t.RequiredError("createPromptDto", "Required parameter \"createPromptDto\" was null or undefined when calling createPrompt().");
|
|
@@ -2495,9 +2520,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2495
2520
|
return await (await this.updatePromptRaw(e, t)).value();
|
|
2496
2521
|
}
|
|
2497
2522
|
};
|
|
2498
|
-
})),
|
|
2523
|
+
})), ut = /* @__PURE__ */ b(((e) => {
|
|
2499
2524
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.UnpublishCatalogEntityEntityTypeEnum = e.PublishCatalogEntityEntityTypeEnum = e.GetCatalogPublishHistoryEntityTypeEnum = e.PublishApi = void 0;
|
|
2500
|
-
var t =
|
|
2525
|
+
var t = W();
|
|
2501
2526
|
e.PublishApi = class extends t.BaseAPI {
|
|
2502
2527
|
async getCatalogPublishHistoryRaw(e, n) {
|
|
2503
2528
|
if (e.entityType == null) throw new t.RequiredError("entityType", "Required parameter \"entityType\" was null or undefined when calling getCatalogPublishHistory().");
|
|
@@ -2589,9 +2614,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2589
2614
|
Prompt: "prompt",
|
|
2590
2615
|
Skill: "skill"
|
|
2591
2616
|
};
|
|
2592
|
-
})),
|
|
2617
|
+
})), dt = /* @__PURE__ */ b(((e) => {
|
|
2593
2618
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.RateApi = void 0;
|
|
2594
|
-
var t =
|
|
2619
|
+
var t = W();
|
|
2595
2620
|
e.RateApi = class extends t.BaseAPI {
|
|
2596
2621
|
async rateMessageRaw(e, n) {
|
|
2597
2622
|
if (e.rateMessageDto == null) throw new t.RequiredError("rateMessageDto", "Required parameter \"rateMessageDto\" was null or undefined when calling rateMessage().");
|
|
@@ -2610,9 +2635,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2610
2635
|
await this.rateMessageRaw(e, t);
|
|
2611
2636
|
}
|
|
2612
2637
|
};
|
|
2613
|
-
})),
|
|
2638
|
+
})), ft = /* @__PURE__ */ b(((e) => {
|
|
2614
2639
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ListScheduledTasksSortEnum = e.ScheduledTasksApi = void 0;
|
|
2615
|
-
var t =
|
|
2640
|
+
var t = W();
|
|
2616
2641
|
e.ScheduledTasksApi = class extends t.BaseAPI {
|
|
2617
2642
|
async createScheduledTaskRaw(e, n) {
|
|
2618
2643
|
if (e.createScheduledTaskBodyDto == null) throw new t.RequiredError("createScheduledTaskBodyDto", "Required parameter \"createScheduledTaskBodyDto\" was null or undefined when calling createScheduledTask().");
|
|
@@ -2746,9 +2771,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2746
2771
|
Newest: "newest",
|
|
2747
2772
|
NameAz: "nameAZ"
|
|
2748
2773
|
};
|
|
2749
|
-
})),
|
|
2774
|
+
})), pt = /* @__PURE__ */ b(((e) => {
|
|
2750
2775
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ShareApi = void 0;
|
|
2751
|
-
var t =
|
|
2776
|
+
var t = W();
|
|
2752
2777
|
e.ShareApi = class extends t.BaseAPI {
|
|
2753
2778
|
async acceptInvitationRaw(e, n) {
|
|
2754
2779
|
if (e.invitationId == null) throw new t.RequiredError("invitationId", "Required parameter \"invitationId\" was null or undefined when calling acceptInvitation().");
|
|
@@ -2829,9 +2854,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2829
2854
|
return await (await this.revokeSharedAccessRaw(e, t)).value();
|
|
2830
2855
|
}
|
|
2831
2856
|
};
|
|
2832
|
-
})),
|
|
2857
|
+
})), mt = /* @__PURE__ */ b(((e) => {
|
|
2833
2858
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.SkillsApi = void 0;
|
|
2834
|
-
var t =
|
|
2859
|
+
var t = W();
|
|
2835
2860
|
e.SkillsApi = class extends t.BaseAPI {
|
|
2836
2861
|
async createSkillRaw(e, n) {
|
|
2837
2862
|
if (e.bucket == null) throw new t.RequiredError("bucket", "Required parameter \"bucket\" was null or undefined when calling createSkill().");
|
|
@@ -3063,9 +3088,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3063
3088
|
return await (await this.uploadSkillFileRaw(e, t)).value();
|
|
3064
3089
|
}
|
|
3065
3090
|
};
|
|
3066
|
-
})),
|
|
3091
|
+
})), ht = /* @__PURE__ */ b(((e) => {
|
|
3067
3092
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ThemesApi = void 0;
|
|
3068
|
-
var t =
|
|
3093
|
+
var t = W();
|
|
3069
3094
|
e.ThemesApi = class extends t.BaseAPI {
|
|
3070
3095
|
async getThemeIconRaw(e, n) {
|
|
3071
3096
|
if (e.iconName == null) throw new t.RequiredError("iconName", "Required parameter \"iconName\" was null or undefined when calling getThemeIcon().");
|
|
@@ -3095,9 +3120,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3095
3120
|
return await (await this.getThemesRaw(e)).value();
|
|
3096
3121
|
}
|
|
3097
3122
|
};
|
|
3098
|
-
})),
|
|
3123
|
+
})), gt = /* @__PURE__ */ b(((e) => {
|
|
3099
3124
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ListMcpToolNamesKindEnum = e.ListMcpAppToolsKindEnum = e.ToolsetsApi = void 0;
|
|
3100
|
-
var t =
|
|
3125
|
+
var t = W();
|
|
3101
3126
|
e.ToolsetsApi = class extends t.BaseAPI {
|
|
3102
3127
|
async callToolsetMcpAppToolRaw(e, n) {
|
|
3103
3128
|
if (e.toolsetName == null) throw new t.RequiredError("toolsetName", "Required parameter \"toolsetName\" was null or undefined when calling callToolsetMcpAppTool().");
|
|
@@ -3290,9 +3315,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3290
3315
|
Toolset: "toolset",
|
|
3291
3316
|
Application: "application"
|
|
3292
3317
|
};
|
|
3293
|
-
})),
|
|
3318
|
+
})), _t = /* @__PURE__ */ b(((e) => {
|
|
3294
3319
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.TranscriptionApi = void 0;
|
|
3295
|
-
var t =
|
|
3320
|
+
var t = W();
|
|
3296
3321
|
e.TranscriptionApi = class extends t.BaseAPI {
|
|
3297
3322
|
async transcribeAudioRaw(e, n) {
|
|
3298
3323
|
if (e.transcribeAudioDto == null) throw new t.RequiredError("transcribeAudioDto", "Required parameter \"transcribeAudioDto\" was null or undefined when calling transcribeAudio().");
|
|
@@ -3311,9 +3336,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3311
3336
|
return await (await this.transcribeAudioRaw(e, t)).value();
|
|
3312
3337
|
}
|
|
3313
3338
|
};
|
|
3314
|
-
})),
|
|
3339
|
+
})), vt = /* @__PURE__ */ b(((e) => {
|
|
3315
3340
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.UserApi = void 0;
|
|
3316
|
-
var t =
|
|
3341
|
+
var t = W();
|
|
3317
3342
|
e.UserApi = class extends t.BaseAPI {
|
|
3318
3343
|
async getUserLimitsRaw(e) {
|
|
3319
3344
|
let n = await this.request({
|
|
@@ -3340,9 +3365,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3340
3365
|
return await (await this.getUserUsageRaw(e)).value();
|
|
3341
3366
|
}
|
|
3342
3367
|
};
|
|
3343
|
-
})),
|
|
3368
|
+
})), yt = /* @__PURE__ */ b(((e) => {
|
|
3344
3369
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.UserConfigApi = void 0;
|
|
3345
|
-
var t =
|
|
3370
|
+
var t = W();
|
|
3346
3371
|
e.UserConfigApi = class extends t.BaseAPI {
|
|
3347
3372
|
async getUserConfigRaw(e) {
|
|
3348
3373
|
let n = await this.request({
|
|
@@ -3453,11 +3478,11 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3453
3478
|
await this.updateSelectedDeploymentRaw(e, t);
|
|
3454
3479
|
}
|
|
3455
3480
|
};
|
|
3456
|
-
})),
|
|
3481
|
+
})), bt = /* @__PURE__ */ b(((e) => {
|
|
3457
3482
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3458
|
-
var t = (
|
|
3459
|
-
t.__exportStar(
|
|
3460
|
-
})),
|
|
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) => {
|
|
3461
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 = {
|
|
3462
3487
|
Item: "item",
|
|
3463
3488
|
Folder: "folder"
|
|
@@ -3629,13 +3654,13 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3629
3654
|
Cron: "cron",
|
|
3630
3655
|
Date: "date"
|
|
3631
3656
|
};
|
|
3632
|
-
})),
|
|
3657
|
+
})), St = /* @__PURE__ */ b(((e) => {
|
|
3633
3658
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3634
|
-
var t = (
|
|
3635
|
-
t.__exportStar(
|
|
3636
|
-
})),
|
|
3637
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), (
|
|
3638
|
-
})))(),
|
|
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, {
|
|
3639
3664
|
notation: "compact",
|
|
3640
3665
|
maximumFractionDigits: 1
|
|
3641
3666
|
}), K = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), q = {
|
|
@@ -3652,54 +3677,59 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3652
3677
|
progressAriaLabel: "usage.progressAriaLabel",
|
|
3653
3678
|
spentLabel: "usage.spentLabel"
|
|
3654
3679
|
}, J = {
|
|
3655
|
-
|
|
3680
|
+
day: {
|
|
3656
3681
|
cost: "dayCostStats",
|
|
3657
3682
|
tokens: "dayTokenStats"
|
|
3658
3683
|
},
|
|
3659
|
-
|
|
3684
|
+
week: {
|
|
3660
3685
|
cost: "weekCostStats",
|
|
3661
3686
|
tokens: "weekTokenStats"
|
|
3662
3687
|
},
|
|
3663
|
-
|
|
3688
|
+
month: {
|
|
3664
3689
|
cost: "monthCostStats",
|
|
3665
3690
|
tokens: "monthTokenStats"
|
|
3666
3691
|
}
|
|
3667
3692
|
}, Y = {
|
|
3668
|
-
|
|
3693
|
+
day: {
|
|
3669
3694
|
field: "dayCostStats",
|
|
3670
3695
|
labelKey: q.todayPeriodDescription
|
|
3671
3696
|
},
|
|
3672
|
-
|
|
3697
|
+
week: {
|
|
3673
3698
|
field: "weekCostStats",
|
|
3674
3699
|
labelKey: q.thisWeekPeriodDescription
|
|
3675
3700
|
},
|
|
3676
|
-
|
|
3701
|
+
month: {
|
|
3677
3702
|
field: "monthCostStats",
|
|
3678
3703
|
labelKey: q.thisMonthPeriodDescription
|
|
3679
3704
|
}
|
|
3680
|
-
}, X = (e) => e != null && Number.isFinite(e.total) && Number.isFinite(e.used),
|
|
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) => {
|
|
3681
3706
|
if (!X(e)) return w.Unavailable;
|
|
3682
|
-
if (e.total >=
|
|
3707
|
+
if (e.total >= G) return w.NoLimit;
|
|
3683
3708
|
let t = Math.max(0, e.used), n = Math.max(0, e.total);
|
|
3684
|
-
return
|
|
3685
|
-
},
|
|
3686
|
-
let
|
|
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);
|
|
3687
3712
|
return {
|
|
3688
|
-
status:
|
|
3689
|
-
tooltipLabel:
|
|
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
|
+
} : {}
|
|
3690
3720
|
};
|
|
3691
|
-
}, Ot = (e, t, n) => ({
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
}),
|
|
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) => ({
|
|
3696
3726
|
kind: T.Unavailable,
|
|
3697
3727
|
ariaLabel: e(q.unavailableLabel)
|
|
3698
|
-
}),
|
|
3699
|
-
if (!X(e)) return
|
|
3728
|
+
}), jt = (e, t, n) => {
|
|
3729
|
+
if (!X(e)) return At(n);
|
|
3700
3730
|
let r = Math.max(0, e.used), i = Tt.format(r);
|
|
3701
|
-
if (e.total >=
|
|
3702
|
-
let e =
|
|
3731
|
+
if (e.total >= G) {
|
|
3732
|
+
let e = Dt(t);
|
|
3703
3733
|
return {
|
|
3704
3734
|
kind: T.Unlimited,
|
|
3705
3735
|
usedLabel: i,
|
|
@@ -3707,7 +3737,7 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3707
3737
|
ariaLabel: n(e ? q.followsCostLimitAriaLabel : q.unlimitedProgressAriaLabel, { used: K.format(r) })
|
|
3708
3738
|
};
|
|
3709
3739
|
}
|
|
3710
|
-
let a = Math.max(e.total, 0), o = Tt.format(a), s = a > 0 ? r / a * 100 : 100, c =
|
|
3740
|
+
let a = Math.max(e.total, 0), o = Tt.format(a), s = a > 0 ? r / a * 100 : 100, c = Z(s);
|
|
3711
3741
|
return {
|
|
3712
3742
|
kind: T.Finite,
|
|
3713
3743
|
usedLabel: i,
|
|
@@ -3720,48 +3750,69 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3720
3750
|
percent: Math.round(s)
|
|
3721
3751
|
})
|
|
3722
3752
|
};
|
|
3723
|
-
},
|
|
3724
|
-
if (!X(e)) return
|
|
3725
|
-
let n =
|
|
3726
|
-
return {
|
|
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 {
|
|
3727
3757
|
kind: T.Unlimited,
|
|
3728
3758
|
usedLabel: r,
|
|
3729
3759
|
ariaLabel: r
|
|
3730
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
|
+
};
|
|
3731
3774
|
}, $ = (e, t, n, r) => ({
|
|
3732
|
-
tokens:
|
|
3733
|
-
cost:
|
|
3734
|
-
}),
|
|
3735
|
-
let
|
|
3736
|
-
|
|
3737
|
-
|
|
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) => {
|
|
3738
3785
|
let o = e?.deployments;
|
|
3739
3786
|
if (o == null) return [];
|
|
3740
|
-
let s = new Map(t.filter((e) => e.type ===
|
|
3787
|
+
let s = new Map(t.filter((e) => e.type === Ct.DeploymentItemDtoTypeEnum.Model).map((e) => [e.id, e])), c = kt(e, n, r);
|
|
3741
3788
|
return Object.keys(o).map((e) => {
|
|
3742
|
-
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.
|
|
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]]);
|
|
3743
3790
|
return {
|
|
3744
3791
|
row: {
|
|
3745
3792
|
id: e,
|
|
3746
3793
|
name: l,
|
|
3747
3794
|
version: t?.displayVersion,
|
|
3748
3795
|
avatarSrc: d,
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
status:
|
|
3796
|
+
day: f,
|
|
3797
|
+
week: p,
|
|
3798
|
+
month: m,
|
|
3799
|
+
status: Pt([
|
|
3753
3800
|
f.tokens,
|
|
3754
3801
|
p.tokens,
|
|
3755
3802
|
m.tokens
|
|
3756
3803
|
], [
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3804
|
+
f.cost,
|
|
3805
|
+
p.cost,
|
|
3806
|
+
m.cost
|
|
3807
|
+
], [
|
|
3808
|
+
c.day.status,
|
|
3809
|
+
c.week.status,
|
|
3810
|
+
c.month.status
|
|
3760
3811
|
])
|
|
3761
3812
|
},
|
|
3762
|
-
hasUsage:
|
|
3813
|
+
hasUsage: Ft(h)
|
|
3763
3814
|
};
|
|
3764
3815
|
}).filter(({ hasUsage: e }) => e).map(({ row: e }) => e);
|
|
3765
3816
|
};
|
|
3766
3817
|
//#endregion
|
|
3767
|
-
export { T as ModelLimitMetricKind, w as ModelLimitStatus,
|
|
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 };
|