@epam/ai-dial-usage-dashboard 1.1.0-dev.475 → 1.1.0-dev.479
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,
|
|
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) => {
|
|
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
|
-
},
|
|
14
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
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, {
|
|
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
|
+
}, y = (e) => _.call(e, "module.exports") ? e["module.exports"] : re(h({}, "__esModule", { value: !0 }), e), b = /* @__PURE__ */ function(e) {
|
|
20
20
|
return e.Default = "default", e.RunningLow = "runningLow", e.LimitReached = "limitReached", e;
|
|
21
|
-
}({}),
|
|
21
|
+
}({}), x = {
|
|
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
|
+
}, ie = (e, t) => {
|
|
38
38
|
switch (e) {
|
|
39
|
-
case
|
|
40
|
-
case
|
|
41
|
-
case
|
|
39
|
+
case b.RunningLow: return t.runningLowBadgeLabel;
|
|
40
|
+
case b.LimitReached: return t.limitReachedBadgeLabel;
|
|
41
|
+
case b.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
|
+
}, 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({
|
|
45
45
|
"--uld-card-bg": i?.cardBackground,
|
|
46
46
|
"--uld-title": i?.titleColor,
|
|
47
47
|
"--uld-default-accent": i?.defaultAccentColor,
|
|
@@ -59,129 +59,64 @@ 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
|
+
}), _ = ie(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", x.card),
|
|
65
|
+
style: ee,
|
|
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, x.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 === b.Default && x.defaultBadge, e.status === b.RunningLow && x.warningBadge, e.status === b.LimitReached && x.errorBadge),
|
|
75
|
+
children: _
|
|
76
76
|
})]
|
|
77
77
|
}), /* @__PURE__ */ f("div", {
|
|
78
78
|
className: "flex flex-col gap-2",
|
|
79
79
|
children: [/* @__PURE__ */ f("p", {
|
|
80
80
|
className: "m-0 flex flex-wrap items-baseline gap-2",
|
|
81
81
|
children: [/* @__PURE__ */ d("span", {
|
|
82
|
-
className: a(p,
|
|
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
83
|
children: e.usedLabel
|
|
84
84
|
}), !e.isUnlimited && e.totalLabel != null && /* @__PURE__ */ d("span", {
|
|
85
|
-
className: a(m,
|
|
85
|
+
className: a(m, x.secondaryAmount),
|
|
86
86
|
children: t.usedOfTotalLabel({ total: e.totalLabel })
|
|
87
87
|
})]
|
|
88
88
|
}), !e.isUnlimited && e.usedPercent != null && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(c, {
|
|
89
89
|
value: Math.min(e.usedPercent, 100),
|
|
90
90
|
max: 100,
|
|
91
91
|
size: o.Small,
|
|
92
|
-
className: a("!h-1 w-full",
|
|
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
93
|
"aria-label": e.title,
|
|
94
94
|
"aria-valuetext": e.progressAriaLabel
|
|
95
95
|
}), /* @__PURE__ */ f("div", {
|
|
96
96
|
className: "flex items-center justify-between gap-2",
|
|
97
97
|
children: [e.remainingLabel != null && /* @__PURE__ */ d("span", {
|
|
98
|
-
className: a(m,
|
|
98
|
+
className: a(m, x.secondaryAmount),
|
|
99
99
|
children: t.remainingCaptionLabel({ remaining: e.remainingLabel })
|
|
100
100
|
}), /* @__PURE__ */ d("span", {
|
|
101
|
-
className: a("ms-auto", g,
|
|
101
|
+
className: a("ms-auto", g, x.usedPercentLabel),
|
|
102
102
|
children: t.usedPercentLabel({ percent: Math.min(Math.round(e.usedPercent), 100) })
|
|
103
103
|
})]
|
|
104
104
|
})] })]
|
|
105
105
|
})]
|
|
106
106
|
});
|
|
107
|
-
},
|
|
107
|
+
}, oe = ({ cards: e, labels: t, styles: n }) => e.length === 0 ? null : /* @__PURE__ */ d("div", {
|
|
108
108
|
className: "grid grid-cols-1 gap-4 desktop:grid-cols-[repeat(var(--uld-card-count),minmax(0,1fr))]",
|
|
109
109
|
style: { "--uld-card-count": e.length },
|
|
110
|
-
children: e.map((e) => /* @__PURE__ */ d(
|
|
110
|
+
children: e.map((e) => /* @__PURE__ */ d(ae, {
|
|
111
111
|
data: e,
|
|
112
112
|
labels: t,
|
|
113
113
|
styles: n
|
|
114
114
|
}, 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) {
|
|
115
|
+
}), S = /* @__PURE__ */ function(e) {
|
|
181
116
|
return e.WithinLimits = "within-limits", e.RunningLow = "running-low", e.LimitReached = "limit-reached", e.NoLimit = "no-limit", e.Unavailable = "unavailable", e;
|
|
182
|
-
}({}),
|
|
117
|
+
}({}), C = /* @__PURE__ */ function(e) {
|
|
183
118
|
return e.Finite = "finite", e.Unlimited = "unlimited", e.Unavailable = "unavailable", e;
|
|
184
|
-
}({}),
|
|
119
|
+
}({}), w = {
|
|
185
120
|
container: "_container_jkj20_1",
|
|
186
121
|
heading: "_heading_jkj20_5",
|
|
187
122
|
headingCount: "_headingCount_jkj20_9",
|
|
@@ -204,15 +139,15 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
204
139
|
warningBadge: "_warningBadge_jkj20_87",
|
|
205
140
|
errorBadge: "_errorBadge_jkj20_92",
|
|
206
141
|
neutralStatus: "_neutralStatus_jkj20_97"
|
|
207
|
-
},
|
|
142
|
+
}, se = (e) => {
|
|
208
143
|
switch (e) {
|
|
209
|
-
case
|
|
210
|
-
case
|
|
211
|
-
default: return
|
|
144
|
+
case S.RunningLow: return w.progressFillWarning;
|
|
145
|
+
case S.LimitReached: return w.progressFillError;
|
|
146
|
+
default: return w.progressFillDefault;
|
|
212
147
|
}
|
|
213
|
-
},
|
|
148
|
+
}, ce = ({ cell: e, label: t, progressAriaLabel: n, showProgress: r, labels: i, typography: s }) => {
|
|
214
149
|
let { valueClassName: l = "dial-small-text", secondaryValueClassName: u = "dial-tiny-text" } = s, p = /* @__PURE__ */ d("span", {
|
|
215
|
-
className: a(l,
|
|
150
|
+
className: a(l, w.value),
|
|
216
151
|
children: e.usedLabel
|
|
217
152
|
});
|
|
218
153
|
return /* @__PURE__ */ f("div", {
|
|
@@ -222,28 +157,28 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
222
157
|
className: "sr-only",
|
|
223
158
|
children: [t, ": "]
|
|
224
159
|
}),
|
|
225
|
-
e.kind ===
|
|
160
|
+
e.kind === C.Unlimited && /* @__PURE__ */ d("div", {
|
|
226
161
|
className: "flex min-w-0 items-start gap-2",
|
|
227
162
|
role: "group",
|
|
228
163
|
"aria-label": n,
|
|
229
164
|
children: /* @__PURE__ */ f("div", {
|
|
230
165
|
className: "flex min-w-0 flex-col gap-1",
|
|
231
166
|
children: [p, /* @__PURE__ */ d("span", {
|
|
232
|
-
className: a(u,
|
|
167
|
+
className: a(u, w.secondaryValue),
|
|
233
168
|
children: e.supportingLabel ?? i.noLimitLabel
|
|
234
169
|
})]
|
|
235
170
|
})
|
|
236
171
|
}),
|
|
237
|
-
e.kind ===
|
|
172
|
+
e.kind === C.Unavailable && /* @__PURE__ */ d("div", {
|
|
238
173
|
className: "flex min-w-0 items-baseline gap-2",
|
|
239
174
|
role: "group",
|
|
240
175
|
"aria-label": n,
|
|
241
176
|
children: /* @__PURE__ */ d("span", {
|
|
242
|
-
className: a(u,
|
|
177
|
+
className: a(u, w.secondaryValue),
|
|
243
178
|
children: i.unavailableLabel
|
|
244
179
|
})
|
|
245
180
|
}),
|
|
246
|
-
e.kind ===
|
|
181
|
+
e.kind === C.Finite && /* @__PURE__ */ f("div", {
|
|
247
182
|
className: "flex min-w-0 flex-col gap-2",
|
|
248
183
|
children: [/* @__PURE__ */ d("div", {
|
|
249
184
|
className: "flex min-w-0 items-baseline gap-2",
|
|
@@ -252,7 +187,7 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
252
187
|
children: /* @__PURE__ */ f("div", {
|
|
253
188
|
className: "flex min-w-0 items-baseline gap-1 whitespace-nowrap",
|
|
254
189
|
children: [p, /* @__PURE__ */ f("span", {
|
|
255
|
-
className: a(l,
|
|
190
|
+
className: a(l, w.secondaryValue),
|
|
256
191
|
children: ["/ ", e.totalLabel]
|
|
257
192
|
})]
|
|
258
193
|
})
|
|
@@ -260,17 +195,65 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
260
195
|
value: Math.min(e.usedPercent ?? 0, 100),
|
|
261
196
|
max: 100,
|
|
262
197
|
size: o.Small,
|
|
263
|
-
className: a("!h-1 w-full",
|
|
198
|
+
className: a("!h-1 w-full", w.progressTrack, se(e.status)),
|
|
264
199
|
"aria-label": n,
|
|
265
200
|
"aria-valuetext": e.ariaLabel
|
|
266
201
|
})]
|
|
267
202
|
})
|
|
268
203
|
]
|
|
269
204
|
});
|
|
270
|
-
},
|
|
205
|
+
}, le = {
|
|
206
|
+
outline: {
|
|
207
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
208
|
+
width: 24,
|
|
209
|
+
height: 24,
|
|
210
|
+
viewBox: "0 0 24 24",
|
|
211
|
+
fill: "none",
|
|
212
|
+
stroke: "currentColor",
|
|
213
|
+
strokeWidth: 2,
|
|
214
|
+
strokeLinecap: "round",
|
|
215
|
+
strokeLinejoin: "round"
|
|
216
|
+
},
|
|
217
|
+
filled: {
|
|
218
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
219
|
+
width: 24,
|
|
220
|
+
height: 24,
|
|
221
|
+
viewBox: "0 0 24 24",
|
|
222
|
+
fill: "currentColor",
|
|
223
|
+
stroke: "none"
|
|
224
|
+
}
|
|
225
|
+
}, ue = (e, t, n, r) => {
|
|
226
|
+
let i = m(({ color: n = "currentColor", size: i = 24, stroke: a = 2, title: o, className: s, children: c, ...l }, u) => p("svg", {
|
|
227
|
+
ref: u,
|
|
228
|
+
...le[e],
|
|
229
|
+
width: i,
|
|
230
|
+
height: i,
|
|
231
|
+
className: [
|
|
232
|
+
"tabler-icon",
|
|
233
|
+
`tabler-icon-${t}`,
|
|
234
|
+
s
|
|
235
|
+
].join(" "),
|
|
236
|
+
...e === "filled" ? { fill: n } : {
|
|
237
|
+
strokeWidth: a,
|
|
238
|
+
stroke: n
|
|
239
|
+
},
|
|
240
|
+
...l
|
|
241
|
+
}, [
|
|
242
|
+
o && p("title", { key: "svg-title" }, o),
|
|
243
|
+
...r.map(([e, t]) => p(e, t)),
|
|
244
|
+
...Array.isArray(c) ? c : [c]
|
|
245
|
+
]));
|
|
246
|
+
return i.displayName = `${n}`, i;
|
|
247
|
+
}, de = ue("filled", "alert-circle-filled", "AlertCircleFilled", [["path", {
|
|
248
|
+
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
|
+
key: "svg-0"
|
|
250
|
+
}]]), fe = ue("filled", "alert-triangle-filled", "AlertTriangleFilled", [["path", {
|
|
251
|
+
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
|
+
key: "svg-0"
|
|
253
|
+
}]]), pe = ({ periodStatus: e }) => {
|
|
271
254
|
let { status: t, tooltipLabel: n } = e;
|
|
272
|
-
if (n == null || t !==
|
|
273
|
-
let r = t ===
|
|
255
|
+
if (n == null || t !== S.RunningLow && t !== S.LimitReached) return null;
|
|
256
|
+
let r = t === S.LimitReached ? de : fe;
|
|
274
257
|
return /* @__PURE__ */ d(l, {
|
|
275
258
|
tooltip: n,
|
|
276
259
|
asChild: !0,
|
|
@@ -278,35 +261,35 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
278
261
|
role: "img",
|
|
279
262
|
"aria-label": n,
|
|
280
263
|
tabIndex: 0,
|
|
281
|
-
className: a("inline-flex size-11 shrink-0 items-center justify-center desktop:size-4", t ===
|
|
264
|
+
className: a("inline-flex size-11 shrink-0 items-center justify-center desktop:size-4", t === S.LimitReached ? w.errorIndicator : w.warningIndicator),
|
|
282
265
|
children: /* @__PURE__ */ d(r, {
|
|
283
266
|
"aria-hidden": !0,
|
|
284
267
|
size: 16
|
|
285
268
|
})
|
|
286
269
|
})
|
|
287
270
|
});
|
|
288
|
-
},
|
|
289
|
-
let { secondaryValueClassName: i = "dial-tiny-text" } = r, o = e.kind ===
|
|
271
|
+
}, me = ({ cell: e, label: t, unavailableLabel: n, typography: r }) => {
|
|
272
|
+
let { secondaryValueClassName: i = "dial-tiny-text" } = r, o = e.kind === C.Unavailable;
|
|
290
273
|
return /* @__PURE__ */ f("div", {
|
|
291
274
|
className: "flex min-w-0 items-baseline gap-1",
|
|
292
275
|
children: [/* @__PURE__ */ f("span", {
|
|
293
276
|
className: "sr-only",
|
|
294
277
|
children: [t, ": "]
|
|
295
278
|
}), /* @__PURE__ */ d("span", {
|
|
296
|
-
className: a("min-w-0 break-words", i,
|
|
279
|
+
className: a("min-w-0 break-words", i, w.secondaryValue),
|
|
297
280
|
title: o ? n : e.usedLabel,
|
|
298
281
|
children: o ? n : e.usedLabel
|
|
299
282
|
})]
|
|
300
283
|
});
|
|
301
|
-
},
|
|
284
|
+
}, T = ({ cell: e, periodLabel: t, periodStatus: n, labels: r, typography: i }) => /* @__PURE__ */ f("div", {
|
|
302
285
|
role: "cell",
|
|
303
286
|
className: "flex min-w-0 flex-col gap-2 py-2 desktop:py-0",
|
|
304
287
|
children: [
|
|
305
288
|
/* @__PURE__ */ f("div", {
|
|
306
|
-
className: a("dial-caption-lead-semi-text flex min-h-11 items-center justify-between gap-2 desktop:hidden",
|
|
307
|
-
children: [/* @__PURE__ */ d("span", { children: t }), /* @__PURE__ */ d(
|
|
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 })]
|
|
308
291
|
}),
|
|
309
|
-
/* @__PURE__ */ d(
|
|
292
|
+
/* @__PURE__ */ d(ce, {
|
|
310
293
|
cell: e.tokens,
|
|
311
294
|
label: r.tokensLabel,
|
|
312
295
|
progressAriaLabel: `${t} ${r.tokensLabel}`,
|
|
@@ -314,34 +297,34 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
314
297
|
labels: r,
|
|
315
298
|
typography: i
|
|
316
299
|
}),
|
|
317
|
-
/* @__PURE__ */ d(
|
|
300
|
+
/* @__PURE__ */ d(me, {
|
|
318
301
|
cell: e.cost,
|
|
319
302
|
label: r.costLabel,
|
|
320
303
|
unavailableLabel: r.unavailableLabel,
|
|
321
304
|
typography: i
|
|
322
305
|
})
|
|
323
306
|
]
|
|
324
|
-
}),
|
|
307
|
+
}), he = "desktop:grid-cols-[minmax(12rem,1.25fr)_repeat(3,minmax(0,1fr))_minmax(8rem,10rem)]", ge = (e) => {
|
|
325
308
|
switch (e) {
|
|
326
|
-
case
|
|
327
|
-
case
|
|
328
|
-
case
|
|
329
|
-
case
|
|
330
|
-
case
|
|
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;
|
|
331
314
|
}
|
|
332
|
-
},
|
|
315
|
+
}, _e = (e, t) => {
|
|
333
316
|
switch (e) {
|
|
334
|
-
case
|
|
335
|
-
case
|
|
336
|
-
case
|
|
337
|
-
case
|
|
338
|
-
case
|
|
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;
|
|
339
322
|
}
|
|
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, g = n.status !==
|
|
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;
|
|
342
325
|
return /* @__PURE__ */ f("div", {
|
|
343
326
|
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",
|
|
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),
|
|
345
328
|
children: [
|
|
346
329
|
/* @__PURE__ */ f("div", {
|
|
347
330
|
role: "cell",
|
|
@@ -363,36 +346,36 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
363
346
|
}), /* @__PURE__ */ f("div", {
|
|
364
347
|
className: "flex min-w-0 flex-1 flex-col gap-0.5 overflow-hidden",
|
|
365
348
|
children: [/* @__PURE__ */ d("span", {
|
|
366
|
-
className: a(u,
|
|
349
|
+
className: a(u, w.modelType),
|
|
367
350
|
children: r.modelTypeLabel
|
|
368
351
|
}), /* @__PURE__ */ f("div", {
|
|
369
352
|
className: "flex min-w-0 items-center gap-1 overflow-hidden",
|
|
370
353
|
children: [/* @__PURE__ */ d("span", {
|
|
371
|
-
className: a("min-w-0 flex-1 truncate", l,
|
|
354
|
+
className: a("min-w-0 flex-1 truncate", l, w.name),
|
|
372
355
|
title: n.name,
|
|
373
356
|
children: n.name
|
|
374
357
|
}), n.version != null && /* @__PURE__ */ d(s, {
|
|
375
358
|
text: n.version,
|
|
376
|
-
className: a("max-w-[30%] shrink-0", p,
|
|
359
|
+
className: a("max-w-[30%] shrink-0", p, w.version)
|
|
377
360
|
})]
|
|
378
361
|
})]
|
|
379
362
|
})]
|
|
380
363
|
}),
|
|
381
|
-
/* @__PURE__ */ d(
|
|
364
|
+
/* @__PURE__ */ d(T, {
|
|
382
365
|
cell: n.last24Hours,
|
|
383
366
|
periodLabel: r.last24HoursColumnLabel,
|
|
384
367
|
periodStatus: i.last24Hours,
|
|
385
368
|
labels: r,
|
|
386
369
|
typography: o
|
|
387
370
|
}),
|
|
388
|
-
/* @__PURE__ */ d(
|
|
371
|
+
/* @__PURE__ */ d(T, {
|
|
389
372
|
cell: n.last7Days,
|
|
390
373
|
periodLabel: r.last7DaysColumnLabel,
|
|
391
374
|
periodStatus: i.last7Days,
|
|
392
375
|
labels: r,
|
|
393
376
|
typography: o
|
|
394
377
|
}),
|
|
395
|
-
/* @__PURE__ */ d(
|
|
378
|
+
/* @__PURE__ */ d(T, {
|
|
396
379
|
cell: n.last30Days,
|
|
397
380
|
periodLabel: r.last30DaysColumnLabel,
|
|
398
381
|
periodStatus: i.last30Days,
|
|
@@ -403,133 +386,126 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
403
386
|
role: "cell",
|
|
404
387
|
className: "flex min-w-0 flex-col gap-2 py-2 desktop:py-0",
|
|
405
388
|
children: [/* @__PURE__ */ d("span", {
|
|
406
|
-
className: a("dial-caption-lead-semi-text block desktop:hidden",
|
|
389
|
+
className: a("dial-caption-lead-semi-text block desktop:hidden", w.mobileColumnLabel),
|
|
407
390
|
children: r.statusColumnLabel
|
|
408
391
|
}), g ? /* @__PURE__ */ d("span", {
|
|
409
|
-
className: a("inline-flex h-6 shrink-0 items-center self-start rounded-full px-2", h,
|
|
410
|
-
children:
|
|
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)
|
|
411
394
|
}) : /* @__PURE__ */ d("span", {
|
|
412
|
-
className: a(m,
|
|
413
|
-
children:
|
|
395
|
+
className: a(m, w.neutralStatus),
|
|
396
|
+
children: _e(n.status, r)
|
|
414
397
|
})]
|
|
415
398
|
})
|
|
416
399
|
]
|
|
417
400
|
});
|
|
418
|
-
},
|
|
401
|
+
}, ye = 40, E = ({ label: e, periodStatus: t, className: n }) => /* @__PURE__ */ f("span", {
|
|
419
402
|
role: "columnheader",
|
|
420
|
-
className: a("flex min-w-0 items-center justify-between gap-2", n,
|
|
403
|
+
className: a("flex min-w-0 items-center justify-between gap-2", n, w.columnHeader),
|
|
421
404
|
children: [/* @__PURE__ */ d("span", {
|
|
422
405
|
className: "min-w-0 truncate",
|
|
423
406
|
children: e
|
|
424
|
-
}), /* @__PURE__ */ d(
|
|
425
|
-
}),
|
|
426
|
-
let { colors:
|
|
427
|
-
"--mls-container-bg":
|
|
428
|
-
"--mls-heading":
|
|
429
|
-
"--mls-heading-count":
|
|
430
|
-
"--mls-column-header":
|
|
431
|
-
"--mls-row-divider":
|
|
432
|
-
"--mls-name":
|
|
433
|
-
"--mls-model-type":
|
|
434
|
-
"--mls-version":
|
|
435
|
-
"--mls-value":
|
|
436
|
-
"--mls-secondary-value":
|
|
437
|
-
"--mls-progress-track":
|
|
438
|
-
"--mls-progress-default":
|
|
439
|
-
"--mls-progress-warning":
|
|
440
|
-
"--mls-progress-error":
|
|
441
|
-
"--mls-indicator-warning":
|
|
442
|
-
"--mls-indicator-error":
|
|
443
|
-
"--mls-badge-default-bg":
|
|
444
|
-
"--mls-badge-default-text":
|
|
445
|
-
"--mls-badge-warning-bg":
|
|
446
|
-
"--mls-badge-warning-text":
|
|
447
|
-
"--mls-badge-error-bg":
|
|
448
|
-
"--mls-badge-error-text":
|
|
449
|
-
"--mls-badge-neutral-text":
|
|
450
|
-
}),
|
|
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({
|
|
410
|
+
"--mls-container-bg": s?.containerBackground,
|
|
411
|
+
"--mls-heading": s?.headingColor,
|
|
412
|
+
"--mls-heading-count": s?.headingCountColor,
|
|
413
|
+
"--mls-column-header": s?.columnHeaderColor,
|
|
414
|
+
"--mls-row-divider": s?.rowDividerColor,
|
|
415
|
+
"--mls-name": s?.nameColor,
|
|
416
|
+
"--mls-model-type": s?.modelTypeColor,
|
|
417
|
+
"--mls-version": s?.versionColor,
|
|
418
|
+
"--mls-value": s?.valueColor,
|
|
419
|
+
"--mls-secondary-value": s?.secondaryValueColor,
|
|
420
|
+
"--mls-progress-track": s?.progressTrackColor,
|
|
421
|
+
"--mls-progress-default": s?.defaultProgressColor,
|
|
422
|
+
"--mls-progress-warning": s?.warningProgressColor,
|
|
423
|
+
"--mls-progress-error": s?.errorProgressColor,
|
|
424
|
+
"--mls-indicator-warning": s?.warningIndicatorColor,
|
|
425
|
+
"--mls-indicator-error": s?.errorIndicatorColor,
|
|
426
|
+
"--mls-badge-default-bg": s?.defaultBadgeBackground,
|
|
427
|
+
"--mls-badge-default-text": s?.defaultBadgeColor,
|
|
428
|
+
"--mls-badge-warning-bg": s?.warningBadgeBackground,
|
|
429
|
+
"--mls-badge-warning-text": s?.warningBadgeColor,
|
|
430
|
+
"--mls-badge-error-bg": s?.errorBadgeBackground,
|
|
431
|
+
"--mls-badge-error-text": s?.errorBadgeColor,
|
|
432
|
+
"--mls-badge-neutral-text": s?.neutralBadgeColor
|
|
433
|
+
}), g = `${t.headingLabel} ${e.length}`;
|
|
451
434
|
return /* @__PURE__ */ f("div", {
|
|
452
435
|
className: "flex flex-col gap-4",
|
|
453
|
-
style:
|
|
436
|
+
style: h,
|
|
454
437
|
children: [/* @__PURE__ */ d("div", {
|
|
455
438
|
className: "flex min-h-10 items-center",
|
|
456
439
|
children: /* @__PURE__ */ f("h3", {
|
|
457
440
|
className: "m-0 flex items-center gap-2",
|
|
458
441
|
children: [/* @__PURE__ */ d("span", {
|
|
459
|
-
className: a(
|
|
442
|
+
className: a(l, w.heading),
|
|
460
443
|
children: t.headingLabel
|
|
461
444
|
}), /* @__PURE__ */ d("span", {
|
|
462
|
-
className: a(
|
|
445
|
+
className: a(p, w.headingCount),
|
|
463
446
|
children: e.length
|
|
464
447
|
})]
|
|
465
448
|
})
|
|
466
449
|
}), /* @__PURE__ */ d("div", {
|
|
467
450
|
role: "table",
|
|
468
|
-
"aria-label":
|
|
469
|
-
className: a("overflow-hidden rounded-xl shadow-md",
|
|
451
|
+
"aria-label": g,
|
|
452
|
+
className: a("overflow-hidden rounded-xl shadow-md", w.container),
|
|
470
453
|
children: e.length === 0 ? /* @__PURE__ */ d("div", {
|
|
471
454
|
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
|
-
})
|
|
455
|
+
children: /* @__PURE__ */ d(n, { label: t.emptyStateLabel })
|
|
480
456
|
}) : /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ f("div", {
|
|
481
457
|
role: "row",
|
|
482
|
-
className: a("hidden gap-4 px-6 py-3 desktop:grid desktop:items-center",
|
|
458
|
+
className: a("hidden gap-4 px-6 py-3 desktop:grid desktop:items-center", he, w.headerRow),
|
|
483
459
|
children: [
|
|
484
460
|
/* @__PURE__ */ d("span", {
|
|
485
461
|
role: "columnheader",
|
|
486
|
-
className: a(
|
|
462
|
+
className: a(m, w.columnHeader),
|
|
487
463
|
children: t.itemColumnLabel
|
|
488
464
|
}),
|
|
489
|
-
/* @__PURE__ */ d(
|
|
465
|
+
/* @__PURE__ */ d(E, {
|
|
490
466
|
label: t.last24HoursColumnLabel,
|
|
491
467
|
periodStatus: i.last24Hours,
|
|
492
|
-
className:
|
|
468
|
+
className: m
|
|
493
469
|
}),
|
|
494
|
-
/* @__PURE__ */ d(
|
|
470
|
+
/* @__PURE__ */ d(E, {
|
|
495
471
|
label: t.last7DaysColumnLabel,
|
|
496
472
|
periodStatus: i.last7Days,
|
|
497
|
-
className:
|
|
473
|
+
className: m
|
|
498
474
|
}),
|
|
499
|
-
/* @__PURE__ */ d(
|
|
475
|
+
/* @__PURE__ */ d(E, {
|
|
500
476
|
label: t.last30DaysColumnLabel,
|
|
501
477
|
periodStatus: i.last30Days,
|
|
502
|
-
className:
|
|
478
|
+
className: m
|
|
503
479
|
}),
|
|
504
480
|
/* @__PURE__ */ d("span", {
|
|
505
481
|
role: "columnheader",
|
|
506
|
-
className: a(
|
|
482
|
+
className: a(m, w.columnHeader),
|
|
507
483
|
children: t.statusColumnLabel
|
|
508
484
|
})
|
|
509
485
|
]
|
|
510
486
|
}), /* @__PURE__ */ d("div", {
|
|
511
487
|
role: "rowgroup",
|
|
512
|
-
children: e.map((e) => /* @__PURE__ */ d(
|
|
488
|
+
children: e.map((e) => /* @__PURE__ */ d(ve, {
|
|
513
489
|
row: e,
|
|
514
490
|
labels: t,
|
|
515
491
|
periodStatuses: i,
|
|
516
|
-
typography:
|
|
517
|
-
avatarSize:
|
|
492
|
+
typography: c,
|
|
493
|
+
avatarSize: ye
|
|
518
494
|
}, e.id))
|
|
519
495
|
})] })
|
|
520
496
|
})]
|
|
521
497
|
});
|
|
522
|
-
},
|
|
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) => {
|
|
523
499
|
let a = Math.max(0, e.used), o = i(a);
|
|
524
|
-
if (e.total >=
|
|
500
|
+
if (e.total >= xe) return {
|
|
525
501
|
title: t,
|
|
526
502
|
periodDescription: n,
|
|
527
503
|
used: a,
|
|
528
504
|
total: e.total,
|
|
529
505
|
usedLabel: o,
|
|
530
506
|
isUnlimited: !0,
|
|
531
|
-
status:
|
|
532
|
-
progressAriaLabel: r(
|
|
507
|
+
status: b.Default,
|
|
508
|
+
progressAriaLabel: r(D.unlimitedProgressAriaLabel, { used: o })
|
|
533
509
|
};
|
|
534
510
|
let s = Math.max(e.total, 0), c = Math.max(s - a, 0), l = s > 0 ? a / s * 100 : 100, u = i(s);
|
|
535
511
|
return {
|
|
@@ -541,14 +517,14 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
541
517
|
totalLabel: u,
|
|
542
518
|
remainingLabel: i(c),
|
|
543
519
|
usedPercent: l,
|
|
544
|
-
status:
|
|
545
|
-
progressAriaLabel: r(
|
|
520
|
+
status: we(l),
|
|
521
|
+
progressAriaLabel: r(D.progressAriaLabel, {
|
|
546
522
|
used: o,
|
|
547
523
|
total: u,
|
|
548
524
|
percent: Math.round(l)
|
|
549
525
|
})
|
|
550
526
|
};
|
|
551
|
-
},
|
|
527
|
+
}, D = {
|
|
552
528
|
todayTitle: "usage.todayTitle",
|
|
553
529
|
todayPeriodDescription: "usage.todayPeriodDescription",
|
|
554
530
|
thisWeekTitle: "usage.thisWeekTitle",
|
|
@@ -557,83 +533,83 @@ var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, _ = Object.g
|
|
|
557
533
|
thisMonthPeriodDescription: "usage.thisMonthPeriodDescription",
|
|
558
534
|
unlimitedProgressAriaLabel: "usage.unlimitedProgressAriaLabel",
|
|
559
535
|
progressAriaLabel: "usage.progressAriaLabel"
|
|
560
|
-
},
|
|
536
|
+
}, Ee = (e, t) => [
|
|
561
537
|
{
|
|
562
538
|
stats: e?.dayCostStats,
|
|
563
|
-
titleKey:
|
|
564
|
-
periodDescriptionKey:
|
|
539
|
+
titleKey: D.todayPeriodDescription,
|
|
540
|
+
periodDescriptionKey: D.todayPeriodDescription
|
|
565
541
|
},
|
|
566
542
|
{
|
|
567
543
|
stats: e?.weekCostStats,
|
|
568
|
-
titleKey:
|
|
569
|
-
periodDescriptionKey:
|
|
544
|
+
titleKey: D.thisWeekPeriodDescription,
|
|
545
|
+
periodDescriptionKey: D.thisWeekPeriodDescription
|
|
570
546
|
},
|
|
571
547
|
{
|
|
572
548
|
stats: e?.monthCostStats,
|
|
573
|
-
titleKey:
|
|
574
|
-
periodDescriptionKey:
|
|
549
|
+
titleKey: D.thisMonthPeriodDescription,
|
|
550
|
+
periodDescriptionKey: D.thisMonthPeriodDescription
|
|
575
551
|
}
|
|
576
|
-
].flatMap(({ stats: e, titleKey: n, periodDescriptionKey: r }) =>
|
|
577
|
-
__addDisposableResource: () =>
|
|
578
|
-
__assign: () =>
|
|
579
|
-
__asyncDelegator: () =>
|
|
580
|
-
__asyncGenerator: () =>
|
|
581
|
-
__asyncValues: () =>
|
|
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,
|
|
582
558
|
__await: () => z,
|
|
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: () =>
|
|
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,
|
|
600
576
|
__read: () => R,
|
|
601
|
-
__rest: () =>
|
|
602
|
-
__rewriteRelativeImportExtension: () =>
|
|
603
|
-
__runInitializers: () =>
|
|
604
|
-
__setFunctionName: () =>
|
|
605
|
-
__spread: () =>
|
|
606
|
-
__spreadArray: () =>
|
|
607
|
-
__spreadArrays: () =>
|
|
577
|
+
__rest: () => Oe,
|
|
578
|
+
__rewriteRelativeImportExtension: () => We,
|
|
579
|
+
__runInitializers: () => A,
|
|
580
|
+
__setFunctionName: () => M,
|
|
581
|
+
__spread: () => je,
|
|
582
|
+
__spreadArray: () => Ne,
|
|
583
|
+
__spreadArrays: () => Me,
|
|
608
584
|
__values: () => L,
|
|
609
|
-
default: () =>
|
|
585
|
+
default: () => qe
|
|
610
586
|
});
|
|
611
|
-
function
|
|
587
|
+
function De(e, t) {
|
|
612
588
|
if (typeof t != "function" && t !== null) throw TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
613
|
-
|
|
589
|
+
V(e, t);
|
|
614
590
|
function n() {
|
|
615
591
|
this.constructor = e;
|
|
616
592
|
}
|
|
617
593
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
618
594
|
}
|
|
619
|
-
function
|
|
595
|
+
function Oe(e, t) {
|
|
620
596
|
var n = {};
|
|
621
597
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
622
598
|
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
599
|
return n;
|
|
624
600
|
}
|
|
625
|
-
function
|
|
601
|
+
function ke(e, t, n, r) {
|
|
626
602
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
627
603
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
628
604
|
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
605
|
return i > 3 && a && Object.defineProperty(t, n, a), a;
|
|
630
606
|
}
|
|
631
|
-
function
|
|
607
|
+
function Ae(e, t) {
|
|
632
608
|
return function(n, r) {
|
|
633
609
|
t(n, r, e);
|
|
634
610
|
};
|
|
635
611
|
}
|
|
636
|
-
function
|
|
612
|
+
function k(e, t, n, r, i, a) {
|
|
637
613
|
function o(e) {
|
|
638
614
|
if (e !== void 0 && typeof e != "function") throw TypeError("Function expected");
|
|
639
615
|
return e;
|
|
@@ -658,23 +634,23 @@ function F(e, t, n, r, i, a) {
|
|
|
658
634
|
}
|
|
659
635
|
l && Object.defineProperty(l, r.name, u), f = !0;
|
|
660
636
|
}
|
|
661
|
-
function
|
|
637
|
+
function A(e, t, n) {
|
|
662
638
|
for (var r = arguments.length > 2, i = 0; i < t.length; i++) n = r ? t[i].call(e, n) : t[i].call(e);
|
|
663
639
|
return r ? n : void 0;
|
|
664
640
|
}
|
|
665
|
-
function
|
|
641
|
+
function j(e) {
|
|
666
642
|
return typeof e == "symbol" ? e : `${e}`;
|
|
667
643
|
}
|
|
668
|
-
function
|
|
644
|
+
function M(e, t, n) {
|
|
669
645
|
return typeof t == "symbol" && (t = t.description ? `[${t.description}]` : ""), Object.defineProperty(e, "name", {
|
|
670
646
|
configurable: !0,
|
|
671
647
|
value: n ? `${n} ${t}` : t
|
|
672
648
|
});
|
|
673
649
|
}
|
|
674
|
-
function
|
|
650
|
+
function N(e, t) {
|
|
675
651
|
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
|
|
676
652
|
}
|
|
677
|
-
function
|
|
653
|
+
function P(e, t, n, r) {
|
|
678
654
|
function i(e) {
|
|
679
655
|
return e instanceof n ? e : new n(function(t) {
|
|
680
656
|
t(e);
|
|
@@ -701,7 +677,7 @@ function ke(e, t, n, r) {
|
|
|
701
677
|
c((r = r.apply(e, t || [])).next());
|
|
702
678
|
});
|
|
703
679
|
}
|
|
704
|
-
function
|
|
680
|
+
function F(e, t) {
|
|
705
681
|
var n = {
|
|
706
682
|
label: 0,
|
|
707
683
|
sent: function() {
|
|
@@ -771,8 +747,8 @@ function Ae(e, t) {
|
|
|
771
747
|
};
|
|
772
748
|
}
|
|
773
749
|
}
|
|
774
|
-
function
|
|
775
|
-
for (var n in e) n !== "default" && !Object.prototype.hasOwnProperty.call(t, n) &&
|
|
750
|
+
function I(e, t) {
|
|
751
|
+
for (var n in e) n !== "default" && !Object.prototype.hasOwnProperty.call(t, n) && U(t, e, n);
|
|
776
752
|
}
|
|
777
753
|
function L(e) {
|
|
778
754
|
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
@@ -802,23 +778,23 @@ function R(e, t) {
|
|
|
802
778
|
}
|
|
803
779
|
return a;
|
|
804
780
|
}
|
|
805
|
-
function
|
|
781
|
+
function je() {
|
|
806
782
|
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(R(arguments[t]));
|
|
807
783
|
return e;
|
|
808
784
|
}
|
|
809
|
-
function
|
|
785
|
+
function Me() {
|
|
810
786
|
for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
|
|
811
787
|
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
788
|
return r;
|
|
813
789
|
}
|
|
814
|
-
function
|
|
790
|
+
function Ne(e, t, n) {
|
|
815
791
|
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
792
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
817
793
|
}
|
|
818
794
|
function z(e) {
|
|
819
795
|
return this instanceof z ? (this.v = e, this) : new z(e);
|
|
820
796
|
}
|
|
821
|
-
function
|
|
797
|
+
function Pe(e, t, n) {
|
|
822
798
|
if (!Symbol.asyncIterator) throw TypeError("Symbol.asyncIterator is not defined.");
|
|
823
799
|
var r = n.apply(e, t || []), i, a = [];
|
|
824
800
|
return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), s("next"), s("throw"), s("return", o), i[Symbol.asyncIterator] = function() {
|
|
@@ -861,7 +837,7 @@ function Fe(e, t, n) {
|
|
|
861
837
|
e(t), a.shift(), a.length && c(a[0][0], a[0][1]);
|
|
862
838
|
}
|
|
863
839
|
}
|
|
864
|
-
function
|
|
840
|
+
function Fe(e) {
|
|
865
841
|
var t, n;
|
|
866
842
|
return t = {}, r("next"), r("throw", function(e) {
|
|
867
843
|
throw e;
|
|
@@ -877,7 +853,7 @@ function Ie(e) {
|
|
|
877
853
|
} : i;
|
|
878
854
|
}
|
|
879
855
|
}
|
|
880
|
-
function
|
|
856
|
+
function Ie(e) {
|
|
881
857
|
if (!Symbol.asyncIterator) throw TypeError("Symbol.asyncIterator is not defined.");
|
|
882
858
|
var t = e[Symbol.asyncIterator], n;
|
|
883
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() {
|
|
@@ -899,34 +875,34 @@ function Le(e) {
|
|
|
899
875
|
}, t);
|
|
900
876
|
}
|
|
901
877
|
}
|
|
902
|
-
function
|
|
878
|
+
function Le(e, t) {
|
|
903
879
|
return Object.defineProperty ? Object.defineProperty(e, "raw", { value: t }) : e.raw = t, e;
|
|
904
880
|
}
|
|
905
|
-
function
|
|
881
|
+
function Re(e) {
|
|
906
882
|
if (e && e.__esModule) return e;
|
|
907
883
|
var t = {};
|
|
908
|
-
if (e != null) for (var n =
|
|
909
|
-
return
|
|
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;
|
|
910
886
|
}
|
|
911
|
-
function
|
|
887
|
+
function B(e) {
|
|
912
888
|
return e && e.__esModule ? e : { default: e };
|
|
913
889
|
}
|
|
914
|
-
function
|
|
890
|
+
function ze(e, t, n, r) {
|
|
915
891
|
if (n === "a" && !r) throw TypeError("Private accessor was defined without a getter");
|
|
916
892
|
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
893
|
return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
|
|
918
894
|
}
|
|
919
|
-
function
|
|
895
|
+
function Be(e, t, n, r, i) {
|
|
920
896
|
if (r === "m") throw TypeError("Private method is not writable");
|
|
921
897
|
if (r === "a" && !i) throw TypeError("Private accessor was defined without a setter");
|
|
922
898
|
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
899
|
return r === "a" ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
|
|
924
900
|
}
|
|
925
|
-
function
|
|
901
|
+
function Ve(e, t) {
|
|
926
902
|
if (t === null || typeof t != "object" && typeof t != "function") throw TypeError("Cannot use 'in' operator on non-object");
|
|
927
903
|
return typeof e == "function" ? t === e : e.has(t);
|
|
928
904
|
}
|
|
929
|
-
function
|
|
905
|
+
function He(e, t, n) {
|
|
930
906
|
if (t != null) {
|
|
931
907
|
if (typeof t != "object" && typeof t != "function") throw TypeError("Object expected.");
|
|
932
908
|
var r, i;
|
|
@@ -953,9 +929,9 @@ function We(e, t, n) {
|
|
|
953
929
|
} else n && e.stack.push({ async: !0 });
|
|
954
930
|
return t;
|
|
955
931
|
}
|
|
956
|
-
function
|
|
932
|
+
function Ue(e) {
|
|
957
933
|
function t(t) {
|
|
958
|
-
e.error = e.hasError ? new
|
|
934
|
+
e.error = e.hasError ? new Ke(t, e.error, "An error was suppressed during disposal.") : t, e.hasError = !0;
|
|
959
935
|
}
|
|
960
936
|
var n, r = 0;
|
|
961
937
|
function i() {
|
|
@@ -975,24 +951,24 @@ function Ge(e) {
|
|
|
975
951
|
}
|
|
976
952
|
return i();
|
|
977
953
|
}
|
|
978
|
-
function
|
|
954
|
+
function We(e, t) {
|
|
979
955
|
return typeof e == "string" && /^\.\.?\//.test(e) ? e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(e, n, r, i, a) {
|
|
980
956
|
return n ? t ? ".jsx" : ".js" : r && (!i || !a) ? e : r + i + "." + a.toLowerCase() + "js";
|
|
981
957
|
}) : e;
|
|
982
958
|
}
|
|
983
|
-
var
|
|
984
|
-
|
|
985
|
-
return
|
|
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) {
|
|
986
962
|
e.__proto__ = t;
|
|
987
963
|
} || function(e, t) {
|
|
988
964
|
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
989
|
-
},
|
|
990
|
-
},
|
|
991
|
-
return
|
|
965
|
+
}, V(e, t);
|
|
966
|
+
}, H = function() {
|
|
967
|
+
return H = Object.assign || function(e) {
|
|
992
968
|
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
969
|
return e;
|
|
994
|
-
},
|
|
995
|
-
},
|
|
970
|
+
}, H.apply(this, arguments);
|
|
971
|
+
}, U = Object.create ? (function(e, t, n, r) {
|
|
996
972
|
r === void 0 && (r = n);
|
|
997
973
|
var i = Object.getOwnPropertyDescriptor(t, n);
|
|
998
974
|
(!i || ("get" in i ? !t.__esModule : i.writable || i.configurable)) && (i = {
|
|
@@ -1003,57 +979,57 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1003
979
|
}), Object.defineProperty(e, r, i);
|
|
1004
980
|
}) : (function(e, t, n, r) {
|
|
1005
981
|
r === void 0 && (r = n), e[r] = t[n];
|
|
1006
|
-
}),
|
|
982
|
+
}), Ge = Object.create ? (function(e, t) {
|
|
1007
983
|
Object.defineProperty(e, "default", {
|
|
1008
984
|
enumerable: !0,
|
|
1009
985
|
value: t
|
|
1010
986
|
});
|
|
1011
987
|
}) : function(e, t) {
|
|
1012
988
|
e.default = t;
|
|
1013
|
-
},
|
|
1014
|
-
return
|
|
989
|
+
}, W = function(e) {
|
|
990
|
+
return W = Object.getOwnPropertyNames || function(e) {
|
|
1015
991
|
var t = [];
|
|
1016
992
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[t.length] = n);
|
|
1017
993
|
return t;
|
|
1018
|
-
},
|
|
1019
|
-
},
|
|
994
|
+
}, W(e);
|
|
995
|
+
}, Ke = typeof SuppressedError == "function" ? SuppressedError : function(e, t, n) {
|
|
1020
996
|
var r = Error(n);
|
|
1021
997
|
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:
|
|
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,
|
|
1037
1013
|
__values: L,
|
|
1038
1014
|
__read: R,
|
|
1039
|
-
__spread:
|
|
1040
|
-
__spreadArrays:
|
|
1041
|
-
__spreadArray:
|
|
1015
|
+
__spread: je,
|
|
1016
|
+
__spreadArrays: Me,
|
|
1017
|
+
__spreadArray: Ne,
|
|
1042
1018
|
__await: z,
|
|
1043
|
-
__asyncGenerator:
|
|
1044
|
-
__asyncDelegator:
|
|
1045
|
-
__asyncValues:
|
|
1046
|
-
__makeTemplateObject:
|
|
1047
|
-
__importStar:
|
|
1048
|
-
__importDefault:
|
|
1049
|
-
__classPrivateFieldGet:
|
|
1050
|
-
__classPrivateFieldSet:
|
|
1051
|
-
__classPrivateFieldIn:
|
|
1052
|
-
__addDisposableResource:
|
|
1053
|
-
__disposeResources:
|
|
1054
|
-
__rewriteRelativeImportExtension:
|
|
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
|
|
1055
1031
|
};
|
|
1056
|
-
})),
|
|
1032
|
+
})), K = /* @__PURE__ */ v(((e) => {
|
|
1057
1033
|
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
1034
|
var t = class {
|
|
1059
1035
|
configuration;
|
|
@@ -1268,9 +1244,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1268
1244
|
return await this.raw.text();
|
|
1269
1245
|
}
|
|
1270
1246
|
};
|
|
1271
|
-
})),
|
|
1247
|
+
})), Je = /* @__PURE__ */ v(((e) => {
|
|
1272
1248
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.AppConfigApi = void 0;
|
|
1273
|
-
var t =
|
|
1249
|
+
var t = K();
|
|
1274
1250
|
e.AppConfigApi = class extends t.BaseAPI {
|
|
1275
1251
|
async getClientConfigRaw(e, n) {
|
|
1276
1252
|
if (e.appId == null) throw new t.RequiredError("appId", "Required parameter \"appId\" was null or undefined when calling getClientConfig().");
|
|
@@ -1288,9 +1264,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1288
1264
|
return await (await this.getClientConfigRaw(e, t)).value();
|
|
1289
1265
|
}
|
|
1290
1266
|
};
|
|
1291
|
-
})),
|
|
1267
|
+
})), Ye = /* @__PURE__ */ v(((e) => {
|
|
1292
1268
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ApplicationsApi = void 0;
|
|
1293
|
-
var t =
|
|
1269
|
+
var t = K();
|
|
1294
1270
|
e.ApplicationsApi = class extends t.BaseAPI {
|
|
1295
1271
|
async createApplicationRaw(e, n) {
|
|
1296
1272
|
if (e.createApplicationBodyDto == null) throw new t.RequiredError("createApplicationBodyDto", "Required parameter \"createApplicationBodyDto\" was null or undefined when calling createApplication().");
|
|
@@ -1382,9 +1358,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1382
1358
|
return await (await this.updateApplicationRaw(e, t)).value();
|
|
1383
1359
|
}
|
|
1384
1360
|
};
|
|
1385
|
-
})),
|
|
1361
|
+
})), Xe = /* @__PURE__ */ v(((e) => {
|
|
1386
1362
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.AuthApi = void 0;
|
|
1387
|
-
var t =
|
|
1363
|
+
var t = K();
|
|
1388
1364
|
e.AuthApi = class extends t.BaseAPI {
|
|
1389
1365
|
async callbackRaw(e, n) {
|
|
1390
1366
|
if (e.providerId == null) throw new t.RequiredError("providerId", "Required parameter \"providerId\" was null or undefined when calling callback().");
|
|
@@ -1458,9 +1434,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1458
1434
|
await this.logoutRaw(e);
|
|
1459
1435
|
}
|
|
1460
1436
|
};
|
|
1461
|
-
})),
|
|
1437
|
+
})), Ze = /* @__PURE__ */ v(((e) => {
|
|
1462
1438
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ChatApi = void 0;
|
|
1463
|
-
var t =
|
|
1439
|
+
var t = K();
|
|
1464
1440
|
e.ChatApi = class extends t.BaseAPI {
|
|
1465
1441
|
async sendCompletionRaw(e, n) {
|
|
1466
1442
|
if (e.chatCompletionDto == null) throw new t.RequiredError("chatCompletionDto", "Required parameter \"chatCompletionDto\" was null or undefined when calling sendCompletion().");
|
|
@@ -1479,9 +1455,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1479
1455
|
return await (await this.sendCompletionRaw(e, t)).value();
|
|
1480
1456
|
}
|
|
1481
1457
|
};
|
|
1482
|
-
})),
|
|
1458
|
+
})), Qe = /* @__PURE__ */ v(((e) => {
|
|
1483
1459
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ClientChannelApi = void 0;
|
|
1484
|
-
var t =
|
|
1460
|
+
var t = K();
|
|
1485
1461
|
e.ClientChannelApi = class extends t.BaseAPI {
|
|
1486
1462
|
async reportClientChannelRaw(e, n) {
|
|
1487
1463
|
if (e.xDialClientChannelId == null) throw new t.RequiredError("xDialClientChannelId", "Required parameter \"xDialClientChannelId\" was null or undefined when calling reportClientChannel().");
|
|
@@ -1530,9 +1506,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1530
1506
|
await this.unsubscribeClientChannelRaw(e, t);
|
|
1531
1507
|
}
|
|
1532
1508
|
};
|
|
1533
|
-
})),
|
|
1509
|
+
})), $e = /* @__PURE__ */ v(((e) => {
|
|
1534
1510
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ConversationsApi = void 0;
|
|
1535
|
-
var t =
|
|
1511
|
+
var t = K();
|
|
1536
1512
|
e.ConversationsApi = class extends t.BaseAPI {
|
|
1537
1513
|
async attachToGenerationRaw(e, n) {
|
|
1538
1514
|
if (e.attachGenerationDto == null) throw new t.RequiredError("attachGenerationDto", "Required parameter \"attachGenerationDto\" was null or undefined when calling attachToGeneration().");
|
|
@@ -1842,9 +1818,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1842
1818
|
await this.watchConversationRaw(e, t);
|
|
1843
1819
|
}
|
|
1844
1820
|
};
|
|
1845
|
-
})),
|
|
1821
|
+
})), et = /* @__PURE__ */ v(((e) => {
|
|
1846
1822
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ListDeploymentsInterfaceTypeEnum = e.DeploymentsApi = void 0;
|
|
1847
|
-
var t =
|
|
1823
|
+
var t = K();
|
|
1848
1824
|
e.DeploymentsApi = class extends t.BaseAPI {
|
|
1849
1825
|
async getDeploymentConfigurationRaw(e, n) {
|
|
1850
1826
|
if (e.deployment == null) throw new t.RequiredError("deployment", "Required parameter \"deployment\" was null or undefined when calling getDeploymentConfiguration().");
|
|
@@ -1912,9 +1888,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1912
1888
|
CustomUi: "custom_ui",
|
|
1913
1889
|
All: "all"
|
|
1914
1890
|
};
|
|
1915
|
-
})),
|
|
1891
|
+
})), tt = /* @__PURE__ */ v(((e) => {
|
|
1916
1892
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ExternalServicesApi = void 0;
|
|
1917
|
-
var t =
|
|
1893
|
+
var t = K();
|
|
1918
1894
|
e.ExternalServicesApi = class extends t.BaseAPI {
|
|
1919
1895
|
async getExternalServiceRaw(e, n) {
|
|
1920
1896
|
if (e.appId == null) throw new t.RequiredError("appId", "Required parameter \"appId\" was null or undefined when calling getExternalService().");
|
|
@@ -1973,9 +1949,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
1973
1949
|
return await (await this.signOutExternalServiceRaw(e, t)).value();
|
|
1974
1950
|
}
|
|
1975
1951
|
};
|
|
1976
|
-
})),
|
|
1952
|
+
})), nt = /* @__PURE__ */ v(((e) => {
|
|
1977
1953
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.UploadFileUploadModeEnum = e.FilesApi = void 0;
|
|
1978
|
-
var t =
|
|
1954
|
+
var t = K();
|
|
1979
1955
|
e.FilesApi = class extends t.BaseAPI {
|
|
1980
1956
|
async copyFilesRaw(e, n) {
|
|
1981
1957
|
if (e.copyFilesDto == null) throw new t.RequiredError("copyFilesDto", "Required parameter \"copyFilesDto\" was null or undefined when calling copyFiles().");
|
|
@@ -2235,9 +2211,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2235
2211
|
Overwrite: "overwrite",
|
|
2236
2212
|
CreateOnly: "create-only"
|
|
2237
2213
|
};
|
|
2238
|
-
})),
|
|
2214
|
+
})), rt = /* @__PURE__ */ v(((e) => {
|
|
2239
2215
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.HealthApi = void 0;
|
|
2240
|
-
var t =
|
|
2216
|
+
var t = K();
|
|
2241
2217
|
e.HealthApi = class extends t.BaseAPI {
|
|
2242
2218
|
async checkRaw(e) {
|
|
2243
2219
|
let n = await this.request({
|
|
@@ -2252,9 +2228,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2252
2228
|
return await (await this.checkRaw(e)).value();
|
|
2253
2229
|
}
|
|
2254
2230
|
};
|
|
2255
|
-
})),
|
|
2231
|
+
})), it = /* @__PURE__ */ v(((e) => {
|
|
2256
2232
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ModelsApi = void 0;
|
|
2257
|
-
var t =
|
|
2233
|
+
var t = K();
|
|
2258
2234
|
e.ModelsApi = class extends t.BaseAPI {
|
|
2259
2235
|
async getModelRaw(e, n) {
|
|
2260
2236
|
if (e.modelName == null) throw new t.RequiredError("modelName", "Required parameter \"modelName\" was null or undefined when calling getModel().");
|
|
@@ -2284,9 +2260,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2284
2260
|
return await (await this.listModelsRaw(e)).value();
|
|
2285
2261
|
}
|
|
2286
2262
|
};
|
|
2287
|
-
})),
|
|
2263
|
+
})), at = /* @__PURE__ */ v(((e) => {
|
|
2288
2264
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.OfflineCredentialsApi = void 0;
|
|
2289
|
-
var t =
|
|
2265
|
+
var t = K();
|
|
2290
2266
|
e.OfflineCredentialsApi = class extends t.BaseAPI {
|
|
2291
2267
|
async getOfflineCredentialsRaw(e) {
|
|
2292
2268
|
let n = await this.request({
|
|
@@ -2317,9 +2293,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2317
2293
|
return await (await this.signInOfflineCredentialsRaw(e, t)).value();
|
|
2318
2294
|
}
|
|
2319
2295
|
};
|
|
2320
|
-
})),
|
|
2296
|
+
})), ot = /* @__PURE__ */ v(((e) => {
|
|
2321
2297
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.PromptsApi = void 0;
|
|
2322
|
-
var t =
|
|
2298
|
+
var t = K();
|
|
2323
2299
|
e.PromptsApi = class extends t.BaseAPI {
|
|
2324
2300
|
async createPromptRaw(e, n) {
|
|
2325
2301
|
if (e.createPromptDto == null) throw new t.RequiredError("createPromptDto", "Required parameter \"createPromptDto\" was null or undefined when calling createPrompt().");
|
|
@@ -2495,9 +2471,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2495
2471
|
return await (await this.updatePromptRaw(e, t)).value();
|
|
2496
2472
|
}
|
|
2497
2473
|
};
|
|
2498
|
-
})),
|
|
2474
|
+
})), st = /* @__PURE__ */ v(((e) => {
|
|
2499
2475
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.UnpublishCatalogEntityEntityTypeEnum = e.PublishCatalogEntityEntityTypeEnum = e.GetCatalogPublishHistoryEntityTypeEnum = e.PublishApi = void 0;
|
|
2500
|
-
var t =
|
|
2476
|
+
var t = K();
|
|
2501
2477
|
e.PublishApi = class extends t.BaseAPI {
|
|
2502
2478
|
async getCatalogPublishHistoryRaw(e, n) {
|
|
2503
2479
|
if (e.entityType == null) throw new t.RequiredError("entityType", "Required parameter \"entityType\" was null or undefined when calling getCatalogPublishHistory().");
|
|
@@ -2589,9 +2565,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2589
2565
|
Prompt: "prompt",
|
|
2590
2566
|
Skill: "skill"
|
|
2591
2567
|
};
|
|
2592
|
-
})),
|
|
2568
|
+
})), ct = /* @__PURE__ */ v(((e) => {
|
|
2593
2569
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.RateApi = void 0;
|
|
2594
|
-
var t =
|
|
2570
|
+
var t = K();
|
|
2595
2571
|
e.RateApi = class extends t.BaseAPI {
|
|
2596
2572
|
async rateMessageRaw(e, n) {
|
|
2597
2573
|
if (e.rateMessageDto == null) throw new t.RequiredError("rateMessageDto", "Required parameter \"rateMessageDto\" was null or undefined when calling rateMessage().");
|
|
@@ -2610,9 +2586,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2610
2586
|
await this.rateMessageRaw(e, t);
|
|
2611
2587
|
}
|
|
2612
2588
|
};
|
|
2613
|
-
})),
|
|
2589
|
+
})), lt = /* @__PURE__ */ v(((e) => {
|
|
2614
2590
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ListScheduledTasksSortEnum = e.ScheduledTasksApi = void 0;
|
|
2615
|
-
var t =
|
|
2591
|
+
var t = K();
|
|
2616
2592
|
e.ScheduledTasksApi = class extends t.BaseAPI {
|
|
2617
2593
|
async createScheduledTaskRaw(e, n) {
|
|
2618
2594
|
if (e.createScheduledTaskBodyDto == null) throw new t.RequiredError("createScheduledTaskBodyDto", "Required parameter \"createScheduledTaskBodyDto\" was null or undefined when calling createScheduledTask().");
|
|
@@ -2746,9 +2722,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2746
2722
|
Newest: "newest",
|
|
2747
2723
|
NameAz: "nameAZ"
|
|
2748
2724
|
};
|
|
2749
|
-
})),
|
|
2725
|
+
})), ut = /* @__PURE__ */ v(((e) => {
|
|
2750
2726
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ShareApi = void 0;
|
|
2751
|
-
var t =
|
|
2727
|
+
var t = K();
|
|
2752
2728
|
e.ShareApi = class extends t.BaseAPI {
|
|
2753
2729
|
async acceptInvitationRaw(e, n) {
|
|
2754
2730
|
if (e.invitationId == null) throw new t.RequiredError("invitationId", "Required parameter \"invitationId\" was null or undefined when calling acceptInvitation().");
|
|
@@ -2829,9 +2805,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
2829
2805
|
return await (await this.revokeSharedAccessRaw(e, t)).value();
|
|
2830
2806
|
}
|
|
2831
2807
|
};
|
|
2832
|
-
})),
|
|
2808
|
+
})), dt = /* @__PURE__ */ v(((e) => {
|
|
2833
2809
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.SkillsApi = void 0;
|
|
2834
|
-
var t =
|
|
2810
|
+
var t = K();
|
|
2835
2811
|
e.SkillsApi = class extends t.BaseAPI {
|
|
2836
2812
|
async createSkillRaw(e, n) {
|
|
2837
2813
|
if (e.bucket == null) throw new t.RequiredError("bucket", "Required parameter \"bucket\" was null or undefined when calling createSkill().");
|
|
@@ -3063,9 +3039,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3063
3039
|
return await (await this.uploadSkillFileRaw(e, t)).value();
|
|
3064
3040
|
}
|
|
3065
3041
|
};
|
|
3066
|
-
})),
|
|
3042
|
+
})), ft = /* @__PURE__ */ v(((e) => {
|
|
3067
3043
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ThemesApi = void 0;
|
|
3068
|
-
var t =
|
|
3044
|
+
var t = K();
|
|
3069
3045
|
e.ThemesApi = class extends t.BaseAPI {
|
|
3070
3046
|
async getThemeIconRaw(e, n) {
|
|
3071
3047
|
if (e.iconName == null) throw new t.RequiredError("iconName", "Required parameter \"iconName\" was null or undefined when calling getThemeIcon().");
|
|
@@ -3095,9 +3071,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3095
3071
|
return await (await this.getThemesRaw(e)).value();
|
|
3096
3072
|
}
|
|
3097
3073
|
};
|
|
3098
|
-
})),
|
|
3074
|
+
})), pt = /* @__PURE__ */ v(((e) => {
|
|
3099
3075
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ListMcpToolNamesKindEnum = e.ListMcpAppToolsKindEnum = e.ToolsetsApi = void 0;
|
|
3100
|
-
var t =
|
|
3076
|
+
var t = K();
|
|
3101
3077
|
e.ToolsetsApi = class extends t.BaseAPI {
|
|
3102
3078
|
async callToolsetMcpAppToolRaw(e, n) {
|
|
3103
3079
|
if (e.toolsetName == null) throw new t.RequiredError("toolsetName", "Required parameter \"toolsetName\" was null or undefined when calling callToolsetMcpAppTool().");
|
|
@@ -3290,9 +3266,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3290
3266
|
Toolset: "toolset",
|
|
3291
3267
|
Application: "application"
|
|
3292
3268
|
};
|
|
3293
|
-
})),
|
|
3269
|
+
})), mt = /* @__PURE__ */ v(((e) => {
|
|
3294
3270
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.TranscriptionApi = void 0;
|
|
3295
|
-
var t =
|
|
3271
|
+
var t = K();
|
|
3296
3272
|
e.TranscriptionApi = class extends t.BaseAPI {
|
|
3297
3273
|
async transcribeAudioRaw(e, n) {
|
|
3298
3274
|
if (e.transcribeAudioDto == null) throw new t.RequiredError("transcribeAudioDto", "Required parameter \"transcribeAudioDto\" was null or undefined when calling transcribeAudio().");
|
|
@@ -3311,9 +3287,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3311
3287
|
return await (await this.transcribeAudioRaw(e, t)).value();
|
|
3312
3288
|
}
|
|
3313
3289
|
};
|
|
3314
|
-
})),
|
|
3290
|
+
})), ht = /* @__PURE__ */ v(((e) => {
|
|
3315
3291
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.UserApi = void 0;
|
|
3316
|
-
var t =
|
|
3292
|
+
var t = K();
|
|
3317
3293
|
e.UserApi = class extends t.BaseAPI {
|
|
3318
3294
|
async getUserLimitsRaw(e) {
|
|
3319
3295
|
let n = await this.request({
|
|
@@ -3340,9 +3316,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3340
3316
|
return await (await this.getUserUsageRaw(e)).value();
|
|
3341
3317
|
}
|
|
3342
3318
|
};
|
|
3343
|
-
})),
|
|
3319
|
+
})), gt = /* @__PURE__ */ v(((e) => {
|
|
3344
3320
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.UserConfigApi = void 0;
|
|
3345
|
-
var t =
|
|
3321
|
+
var t = K();
|
|
3346
3322
|
e.UserConfigApi = class extends t.BaseAPI {
|
|
3347
3323
|
async getUserConfigRaw(e) {
|
|
3348
3324
|
let n = await this.request({
|
|
@@ -3453,11 +3429,11 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3453
3429
|
await this.updateSelectedDeploymentRaw(e, t);
|
|
3454
3430
|
}
|
|
3455
3431
|
};
|
|
3456
|
-
})),
|
|
3432
|
+
})), _t = /* @__PURE__ */ v(((e) => {
|
|
3457
3433
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3458
|
-
var t = (
|
|
3459
|
-
t.__exportStar(
|
|
3460
|
-
})),
|
|
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) => {
|
|
3461
3437
|
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
3438
|
Item: "item",
|
|
3463
3439
|
Folder: "folder"
|
|
@@ -3629,16 +3605,16 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3629
3605
|
Cron: "cron",
|
|
3630
3606
|
Date: "date"
|
|
3631
3607
|
};
|
|
3632
|
-
})),
|
|
3608
|
+
})), yt = /* @__PURE__ */ v(((e) => {
|
|
3633
3609
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
3634
|
-
var t = (
|
|
3635
|
-
t.__exportStar(
|
|
3636
|
-
})),
|
|
3637
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), (
|
|
3638
|
-
})))(),
|
|
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, {
|
|
3639
3615
|
notation: "compact",
|
|
3640
3616
|
maximumFractionDigits: 1
|
|
3641
|
-
}),
|
|
3617
|
+
}), q = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), J = {
|
|
3642
3618
|
todayPeriodDescription: "usage.todayPeriodDescription",
|
|
3643
3619
|
thisWeekPeriodDescription: "usage.thisWeekPeriodDescription",
|
|
3644
3620
|
thisMonthPeriodDescription: "usage.thisMonthPeriodDescription",
|
|
@@ -3651,7 +3627,7 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3651
3627
|
unlimitedProgressAriaLabel: "usage.unlimitedProgressAriaLabel",
|
|
3652
3628
|
progressAriaLabel: "usage.progressAriaLabel",
|
|
3653
3629
|
spentLabel: "usage.spentLabel"
|
|
3654
|
-
},
|
|
3630
|
+
}, Y = {
|
|
3655
3631
|
last24Hours: {
|
|
3656
3632
|
cost: "dayCostStats",
|
|
3657
3633
|
tokens: "dayTokenStats"
|
|
@@ -3664,82 +3640,82 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3664
3640
|
cost: "monthCostStats",
|
|
3665
3641
|
tokens: "monthTokenStats"
|
|
3666
3642
|
}
|
|
3667
|
-
},
|
|
3643
|
+
}, X = {
|
|
3668
3644
|
last24Hours: {
|
|
3669
3645
|
field: "dayCostStats",
|
|
3670
|
-
labelKey:
|
|
3646
|
+
labelKey: J.todayPeriodDescription
|
|
3671
3647
|
},
|
|
3672
3648
|
last7Days: {
|
|
3673
3649
|
field: "weekCostStats",
|
|
3674
|
-
labelKey:
|
|
3650
|
+
labelKey: J.thisWeekPeriodDescription
|
|
3675
3651
|
},
|
|
3676
3652
|
last30Days: {
|
|
3677
3653
|
field: "monthCostStats",
|
|
3678
|
-
labelKey:
|
|
3654
|
+
labelKey: J.thisMonthPeriodDescription
|
|
3679
3655
|
}
|
|
3680
|
-
},
|
|
3681
|
-
if (!
|
|
3682
|
-
if (e.total >=
|
|
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;
|
|
3683
3659
|
let t = Math.max(0, e.used), n = Math.max(0, e.total);
|
|
3684
|
-
return
|
|
3685
|
-
},
|
|
3686
|
-
let i =
|
|
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);
|
|
3687
3663
|
return {
|
|
3688
3664
|
status: i,
|
|
3689
|
-
tooltipLabel: i ===
|
|
3665
|
+
tooltipLabel: i === S.LimitReached ? r(J.overallCostLimitReachedTooltip, { period: a }) : i === S.RunningLow ? r(J.overallCostLimitRunningLowTooltip, { period: a }) : void 0
|
|
3690
3666
|
};
|
|
3691
|
-
},
|
|
3692
|
-
last24Hours: Q(e,
|
|
3693
|
-
last7Days: Q(e,
|
|
3694
|
-
last30Days: Q(e,
|
|
3695
|
-
}),
|
|
3696
|
-
kind:
|
|
3697
|
-
ariaLabel: e(
|
|
3698
|
-
}),
|
|
3699
|
-
if (!
|
|
3700
|
-
let r = Math.max(0, e.used), i =
|
|
3701
|
-
if (e.total >=
|
|
3702
|
-
let e =
|
|
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);
|
|
3703
3679
|
return {
|
|
3704
|
-
kind:
|
|
3680
|
+
kind: C.Unlimited,
|
|
3705
3681
|
usedLabel: i,
|
|
3706
|
-
supportingLabel: n(e ?
|
|
3707
|
-
ariaLabel: n(e ?
|
|
3682
|
+
supportingLabel: n(e ? J.followsCostLimitLabel : J.noLimitLabel),
|
|
3683
|
+
ariaLabel: n(e ? J.followsCostLimitAriaLabel : J.unlimitedProgressAriaLabel, { used: q.format(r) })
|
|
3708
3684
|
};
|
|
3709
3685
|
}
|
|
3710
|
-
let a = Math.max(e.total, 0), o =
|
|
3686
|
+
let a = Math.max(e.total, 0), o = Ct.format(a), s = a > 0 ? r / a * 100 : 100, c = wt(s);
|
|
3711
3687
|
return {
|
|
3712
|
-
kind:
|
|
3688
|
+
kind: C.Finite,
|
|
3713
3689
|
usedLabel: i,
|
|
3714
3690
|
totalLabel: o,
|
|
3715
3691
|
usedPercent: s,
|
|
3716
3692
|
status: c,
|
|
3717
|
-
ariaLabel: n(
|
|
3718
|
-
used:
|
|
3719
|
-
total:
|
|
3693
|
+
ariaLabel: n(J.progressAriaLabel, {
|
|
3694
|
+
used: q.format(r),
|
|
3695
|
+
total: q.format(a),
|
|
3720
3696
|
percent: Math.round(s)
|
|
3721
3697
|
})
|
|
3722
3698
|
};
|
|
3723
|
-
},
|
|
3724
|
-
if (!
|
|
3725
|
-
let n = i(Math.max(0, e.used)), r = t(
|
|
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 });
|
|
3726
3702
|
return {
|
|
3727
|
-
kind:
|
|
3703
|
+
kind: C.Unlimited,
|
|
3728
3704
|
usedLabel: r,
|
|
3729
3705
|
ariaLabel: r
|
|
3730
3706
|
};
|
|
3731
3707
|
}, $ = (e, t, n, r) => ({
|
|
3732
|
-
tokens:
|
|
3733
|
-
cost:
|
|
3734
|
-
}),
|
|
3735
|
-
let n = [...e.filter((e) => e.kind ===
|
|
3736
|
-
return n.includes(
|
|
3737
|
-
},
|
|
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) => {
|
|
3738
3714
|
let o = e?.deployments;
|
|
3739
3715
|
if (o == null) return [];
|
|
3740
|
-
let s = new Map(t.filter((e) => e.type ===
|
|
3716
|
+
let s = new Map(t.filter((e) => e.type === bt.DeploymentItemDtoTypeEnum.Model).map((e) => [e.id, e])), c = Dt(e, n, r);
|
|
3741
3717
|
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,
|
|
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]]);
|
|
3743
3719
|
return {
|
|
3744
3720
|
row: {
|
|
3745
3721
|
id: e,
|
|
@@ -3749,7 +3725,7 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3749
3725
|
last24Hours: f,
|
|
3750
3726
|
last7Days: p,
|
|
3751
3727
|
last30Days: m,
|
|
3752
|
-
status:
|
|
3728
|
+
status: jt([
|
|
3753
3729
|
f.tokens,
|
|
3754
3730
|
p.tokens,
|
|
3755
3731
|
m.tokens
|
|
@@ -3759,9 +3735,9 @@ var B, V, H, qe, U, Je, Ye, W = ee((() => {
|
|
|
3759
3735
|
c.last30Days.status
|
|
3760
3736
|
])
|
|
3761
3737
|
},
|
|
3762
|
-
hasUsage:
|
|
3738
|
+
hasUsage: Mt(h)
|
|
3763
3739
|
};
|
|
3764
3740
|
}).filter(({ hasUsage: e }) => e).map(({ row: e }) => e);
|
|
3765
3741
|
};
|
|
3766
3742
|
//#endregion
|
|
3767
|
-
export {
|
|
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 };
|