@epam/ai-dial-catalog 1.3.0-dev.331 → 1.3.0-dev.342
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/DeploymentSelectorField/DeploymentSelectorField.d.ts +3 -1
- package/components/DeploymentSelectorField/DeploymentSelectorField.d.ts.map +1 -1
- package/components/Details/DetailsPanel.d.ts.map +1 -1
- package/components/Details/Header/Header.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.js +638 -629
- package/models/catalog-props.d.ts +2 -0
- package/models/catalog-props.d.ts.map +1 -1
- package/models/item-details-props.d.ts +2 -0
- package/models/item-details-props.d.ts.map +1 -1
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -4,42 +4,42 @@ import { Fragment as me, memo as he, startTransition as ge, useCallback as z, us
|
|
|
4
4
|
import { Badge as be, BottomSheet as xe, Breadcrumbs as Se, Button as W, ButtonAppearance as Ce, ButtonDropdown as we, ButtonVariant as Te, CaptionText as Ee, CardShell as De, Checkbox as Oe, ConfirmationPopupVariant as ke, DIAL_ICON_SIZE as G, DIAL_KIT_ICON_STROKE as K, DangerButton as q, Dropdown as Ae, DropdownItemType as je, DropdownOverlayRole as Me, ElementSize as J, EllipsisTooltip as Ne, ErrorText as Pe, FabButton as Fe, FileIcon as Ie, FolderPath as Le, GhostButton as Re, GhostIconButton as ze, Highlight as Be, InlineSelect as Ve, InlineSelectTrigger as He, Input as Ue, InteractiveTooltip as We, LinkButton as Ge, LiveRegion as Ke, LiveRegionElement as qe, LiveRegionPoliteness as Je, MenuItem as Ye, MenuItemMark as Xe, NeutralButton as Ze, NeutralIconButton as Qe, NoDataContent as $e, Popup as et, PopupSize as tt, PrimaryButton as nt, ProgressBar as rt, RadioGroup as it, Search as at, SegmentedControl as ot, SideDrawer as st, Skeleton as ct, SkeletonAvatarShape as lt, Spinner as ut, Tabs as dt, ToggleIconButton as ft, Tooltip as Y, mergeClasses as pt } from "@epam/ai-dial-ui-kit";
|
|
5
5
|
import { Fragment as X, jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
6
6
|
import { IconAdjustmentsHorizontal as mt, IconAlertCircleFilled as ht, IconAlertTriangleFilled as gt, IconArrowNarrowUp as _t, IconArrowRight as vt, IconBuildingCommunity as yt, IconCheck as bt, IconChevronDown as xt, IconChevronLeft as St, IconChevronRight as Ct, IconCircleCheckFilled as wt, IconDots as Tt, IconDownload as Et, IconFilter as Dt, IconFolder as Ot, IconKey as kt, IconLayoutGrid as At, IconLayoutList as jt, IconLogin as Mt, IconLogout as Nt, IconPencil as Pt, IconPlayerPlayFilled as Ft, IconPlus as It, IconShare as Lt, IconStar as Rt, IconStarFilled as zt, IconTrash as Bt, IconTrashX as Vt, IconUser as Ht, IconUserOff as Ut, IconWorldOff as Wt, IconWorldShare as Gt } from "@tabler/icons-react";
|
|
7
|
-
import { PublishFooter as Kt, PublishPanel as qt,
|
|
8
|
-
import { GRID_SELECTION_COLUMN_ID as
|
|
7
|
+
import { PublishFooter as Kt, PublishPanel as qt, PublishPanelView as Jt, derivePublishState as Yt, usePublishFlow as Xt, usePublishFolderView as Zt } from "@epam/ai-dial-publish-panel";
|
|
8
|
+
import { GRID_SELECTION_COLUMN_ID as Qt, Grid as $t, GridAppearance as en, GridSelectionMode as tn } from "@epam/ai-dial-ui-kit/grid";
|
|
9
9
|
//#region src/types/code-language.ts
|
|
10
|
-
var
|
|
10
|
+
var nn = /* @__PURE__ */ function(e) {
|
|
11
11
|
return e.Python = "python", e.Curl = "curl", e.JavaScript = "javascript", e;
|
|
12
|
-
}({}),
|
|
12
|
+
}({}), rn = /* @__PURE__ */ function(e) {
|
|
13
13
|
return e.RunningLow = "runningLow", e.LimitReached = "limitReached", e;
|
|
14
|
-
}({}),
|
|
14
|
+
}({}), an = /* @__PURE__ */ function(e) {
|
|
15
15
|
return e.Token = "token", e.Character = "character", e;
|
|
16
16
|
}({}), $ = /* @__PURE__ */ function(e) {
|
|
17
17
|
return e.Delete = "delete", e.Logout = "logout", e.Unshare = "unshare", e.RevokeAccess = "revokeAccess", e.DeleteApiKey = "deleteApiKey", e.Unpublish = "unpublish", e;
|
|
18
|
-
}({}),
|
|
18
|
+
}({}), on = /* @__PURE__ */ function(e) {
|
|
19
19
|
return e.SM = "sm", e.LG = "lg", e;
|
|
20
|
-
}({}),
|
|
20
|
+
}({}), sn = /* @__PURE__ */ function(e) {
|
|
21
21
|
return e.Grid = "grid", e.Cards = "cards", e;
|
|
22
|
-
}({}),
|
|
22
|
+
}({}), cn = /* @__PURE__ */ function(e) {
|
|
23
23
|
return e.Single = "single", e.Multiple = "multiple", e;
|
|
24
|
-
}({}),
|
|
24
|
+
}({}), ln = /* @__PURE__ */ function(e) {
|
|
25
25
|
return e.Inline = "inline", e.Stacked = "stacked", e;
|
|
26
|
-
}({}),
|
|
26
|
+
}({}), un = /* @__PURE__ */ function(e) {
|
|
27
27
|
return e.File = "file", e.Folder = "folder", e;
|
|
28
|
-
}({}),
|
|
28
|
+
}({}), dn = /* @__PURE__ */ function(e) {
|
|
29
29
|
return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
|
|
30
|
-
}({}),
|
|
30
|
+
}({}), fn = () => {
|
|
31
31
|
let [e, t] = U(() => window.innerWidth);
|
|
32
32
|
return B(() => {
|
|
33
33
|
let e = () => t(window.innerWidth);
|
|
34
34
|
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
35
35
|
}, []), e >= 1024 ? 4 : e >= 640 ? 2 : 1;
|
|
36
|
-
},
|
|
36
|
+
}, pn = {
|
|
37
37
|
root: "dial-catalog-root",
|
|
38
38
|
toolbar: "dial-catalog-toolbar",
|
|
39
39
|
card: "dial-catalog-card",
|
|
40
40
|
favoriteCard: "dial-catalog-favorite-card",
|
|
41
41
|
listView: "dial-catalog-list-view"
|
|
42
|
-
},
|
|
42
|
+
}, mn = "(prefers-reduced-motion: reduce)", hn = () => typeof window.matchMedia == "function" && window.matchMedia(mn).matches ? "auto" : "smooth", gn = ({ scrollBody: e, searchInputRef: t, listViewRef: n, isListView: r }) => {
|
|
43
43
|
let [i, a] = U(!1), o = H(0), s = H(r), c = H(null), l = z(() => {
|
|
44
44
|
if (!e) return;
|
|
45
45
|
let t = s.current ? o.current : 0;
|
|
@@ -63,7 +63,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
63
63
|
scrollToTop: z(() => {
|
|
64
64
|
e?.scrollTo({
|
|
65
65
|
top: 0,
|
|
66
|
-
behavior:
|
|
66
|
+
behavior: hn()
|
|
67
67
|
}), s.current && n.current?.scrollToTop(), t.current?.focus({ preventScroll: !0 });
|
|
68
68
|
}, [
|
|
69
69
|
e,
|
|
@@ -71,15 +71,15 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
71
71
|
t
|
|
72
72
|
])
|
|
73
73
|
};
|
|
74
|
-
},
|
|
74
|
+
}, _n = (e) => e.type === je.Divider || e.type === je.PlainText, vn = (e, t) => e.map((e) => _n(e) ? e : {
|
|
75
75
|
...e,
|
|
76
76
|
label: typeof e.label == "string" ? /* @__PURE__ */ Z(Be, {
|
|
77
77
|
text: e.label,
|
|
78
78
|
query: t,
|
|
79
79
|
maxLines: 1
|
|
80
80
|
}) : e.label,
|
|
81
|
-
children: e.children ?
|
|
82
|
-
}),
|
|
81
|
+
children: e.children ? vn(e.children, t) : void 0
|
|
82
|
+
}), yn = (e) => {
|
|
83
83
|
if (e == null || e.options.length === 0) return;
|
|
84
84
|
let [t] = e.options;
|
|
85
85
|
return e.options.length === 1 && e.search == null && !t.children?.length ? {
|
|
@@ -93,28 +93,28 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
93
93
|
options: e.options,
|
|
94
94
|
search: e.search
|
|
95
95
|
};
|
|
96
|
-
},
|
|
96
|
+
}, bn = (e) => ({
|
|
97
97
|
codeBlockCopyLabel: e?.copyCodeAriaLabel,
|
|
98
98
|
codeBlockCopiedLabel: e?.copiedCodeStatusLabel,
|
|
99
99
|
codeBlockDownloadLabel: e?.downloadCodeAriaLabel,
|
|
100
100
|
tableScrollRegionAriaLabel: e?.tableScrollRegionAriaLabel,
|
|
101
101
|
mathScrollRegionAriaLabel: e?.mathScrollRegionAriaLabel
|
|
102
|
-
}),
|
|
102
|
+
}), xn = (e) => {
|
|
103
103
|
let { colors: t } = e ?? {};
|
|
104
104
|
return de({
|
|
105
105
|
"--cat-bg": t?.background,
|
|
106
106
|
"--cat-heading-title-text": t?.headingTitleText
|
|
107
107
|
});
|
|
108
|
-
},
|
|
108
|
+
}, Sn = 1180, Cn = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, wn = (e) => {
|
|
109
109
|
if (!e || e === document.body) return document.documentElement;
|
|
110
110
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
111
|
-
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e :
|
|
112
|
-
},
|
|
111
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : wn(e.parentElement);
|
|
112
|
+
}, Tn = (e, t) => {
|
|
113
113
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
|
|
114
114
|
r.top < n.top ? e.scrollTop -= n.top - r.top : r.bottom > n.bottom && (e.scrollTop += r.bottom - n.bottom);
|
|
115
|
-
},
|
|
115
|
+
}, En = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
|
|
116
116
|
let r = H(null), [i, a] = U(() => {
|
|
117
|
-
let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= I ? 60 : 0)), i =
|
|
117
|
+
let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= I ? 60 : 0)), i = Cn((n ? r : Math.min(Sn, r)) - 64), a = Math.ceil(e / i);
|
|
118
118
|
return {
|
|
119
119
|
startRow: 0,
|
|
120
120
|
endRow: Math.min(a, 12),
|
|
@@ -124,10 +124,10 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
124
124
|
B(() => {
|
|
125
125
|
let n = r.current;
|
|
126
126
|
if (!n) return;
|
|
127
|
-
let i =
|
|
127
|
+
let i = wn(n.parentElement), o = () => {
|
|
128
128
|
let r = n.clientWidth, o = i.clientHeight;
|
|
129
129
|
if (r === 0 || o === 0) return;
|
|
130
|
-
let s = n.getBoundingClientRect(), c = i.getBoundingClientRect(), l =
|
|
130
|
+
let s = n.getBoundingClientRect(), c = i.getBoundingClientRect(), l = Cn(r), u = Math.ceil(e / l), d = Math.max(0, c.top - s.top), f = Math.max(0, Math.floor(d / 268) - t), p = Math.min(u, f + Math.ceil(o / 268) + 2 * t);
|
|
131
131
|
a((e) => e.startRow === f && e.endRow === p && e.columnCount === l ? e : {
|
|
132
132
|
startRow: f,
|
|
133
133
|
endRow: p,
|
|
@@ -149,7 +149,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
149
149
|
rowCount: o,
|
|
150
150
|
totalHeight: o * 268
|
|
151
151
|
};
|
|
152
|
-
},
|
|
152
|
+
}, Dn = {
|
|
153
153
|
skeletonColor: "var(--cg-skeleton-color, var(--bg-control-disable-primary, #dce0e8))",
|
|
154
154
|
card: "_card_tucta_2",
|
|
155
155
|
emptyStarHidden: "_emptyStarHidden_tucta_2",
|
|
@@ -159,10 +159,10 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
159
159
|
checkIcon: "_checkIcon_tucta_30",
|
|
160
160
|
footer: "_footer_tucta_34",
|
|
161
161
|
cardButton: "_cardButton_tucta_44"
|
|
162
|
-
},
|
|
162
|
+
}, On = 1, kn = (e) => e.scrollHeight - e.clientHeight > On, An = (e) => {
|
|
163
163
|
let t = H(null), [n, r] = U(!1), i = z(() => {
|
|
164
164
|
let e = t.current;
|
|
165
|
-
e && r(
|
|
165
|
+
e && r(kn(e) || Array.from(e.children).some(kn));
|
|
166
166
|
}, []);
|
|
167
167
|
return ye(() => {
|
|
168
168
|
i();
|
|
@@ -174,8 +174,8 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
174
174
|
ref: t,
|
|
175
175
|
isClamped: n
|
|
176
176
|
};
|
|
177
|
-
},
|
|
178
|
-
let { ref: r, isClamped: i } =
|
|
177
|
+
}, jn = ({ name: e, query: t = "", className: n }) => {
|
|
178
|
+
let { ref: r, isClamped: i } = An(e);
|
|
179
179
|
return /* @__PURE__ */ Z(Y, {
|
|
180
180
|
asChild: !0,
|
|
181
181
|
tooltip: e,
|
|
@@ -189,12 +189,12 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
189
189
|
})
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
|
-
},
|
|
192
|
+
}, Mn = {
|
|
193
193
|
name: "_name_188yo_1",
|
|
194
194
|
lastUsed: "_lastUsed_188yo_5",
|
|
195
195
|
version: "_version_188yo_9"
|
|
196
|
-
},
|
|
197
|
-
let f = c?.colors, p = c?.typography ?? {}, m = a ===
|
|
196
|
+
}, Nn = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
|
|
197
|
+
let f = c?.colors, p = c?.typography ?? {}, m = a === on.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = !m && !!r, v = m && (!!r || i != null || l != null), y = R(p?.versionClassName ?? "dial-tiny-text", Mn.version), b = de({
|
|
198
198
|
"--ai-name-text": f?.nameColor,
|
|
199
199
|
"--ai-last-used-text": f?.lastUsedColor,
|
|
200
200
|
"--ai-version-text": f?.versionColor
|
|
@@ -222,10 +222,10 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
222
222
|
className: "flex min-w-0 flex-col",
|
|
223
223
|
children: [/* @__PURE__ */ Q("div", {
|
|
224
224
|
className: "flex min-w-0 items-start gap-1 overflow-hidden",
|
|
225
|
-
children: [/* @__PURE__ */ Z(
|
|
225
|
+
children: [/* @__PURE__ */ Z(jn, {
|
|
226
226
|
name: n,
|
|
227
227
|
query: o,
|
|
228
|
-
className: R(_ ? "max-w-max flex-[66_1_0%]" : "flex-1", p?.nameClassName ?? "dial-body-semi-text",
|
|
228
|
+
className: R(_ ? "max-w-max flex-[66_1_0%]" : "flex-1", p?.nameClassName ?? "dial-body-semi-text", Mn.name)
|
|
229
229
|
}), _ && /* @__PURE__ */ Z(Ne, {
|
|
230
230
|
text: r,
|
|
231
231
|
className: R("max-w-max min-w-0 flex-[34_1_0%] tabular-nums", y)
|
|
@@ -238,7 +238,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
238
238
|
className: R("min-w-0 tabular-nums", y)
|
|
239
239
|
}),
|
|
240
240
|
i != null && /* @__PURE__ */ Z("span", {
|
|
241
|
-
className: R("shrink-0 tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text",
|
|
241
|
+
className: R("shrink-0 tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", Mn.lastUsed),
|
|
242
242
|
children: i
|
|
243
243
|
}),
|
|
244
244
|
l != null && /* @__PURE__ */ Z("div", {
|
|
@@ -250,7 +250,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
250
250
|
})]
|
|
251
251
|
})]
|
|
252
252
|
});
|
|
253
|
-
},
|
|
253
|
+
}, Pn = { icon: "_icon_a0p4u_1" }, Fn = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => {
|
|
254
254
|
if (e == null || C(e) == null) return null;
|
|
255
255
|
let i = de({
|
|
256
256
|
"--cat-cred-badge-halo": r?.halo,
|
|
@@ -266,15 +266,15 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
266
266
|
className: R("absolute -inset-e-1 -bottom-1 shrink-0", n),
|
|
267
267
|
children: /* @__PURE__ */ Z(gt, {
|
|
268
268
|
size: G.SM,
|
|
269
|
-
className:
|
|
269
|
+
className: Pn.icon,
|
|
270
270
|
"aria-hidden": !0
|
|
271
271
|
})
|
|
272
272
|
})
|
|
273
273
|
});
|
|
274
|
-
},
|
|
274
|
+
}, In = {
|
|
275
275
|
starFilledIcon: "_starFilledIcon_po6zj_1",
|
|
276
276
|
starPop: "_starPop_po6zj_1"
|
|
277
|
-
},
|
|
277
|
+
}, Ln = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ Z(ft, {
|
|
278
278
|
size: n,
|
|
279
279
|
style: de({ "--cat-star-filled": a }),
|
|
280
280
|
className: i,
|
|
@@ -286,12 +286,12 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
286
286
|
}),
|
|
287
287
|
selectedIcon: /* @__PURE__ */ Z(zt, {
|
|
288
288
|
size: G.SM,
|
|
289
|
-
className:
|
|
289
|
+
className: In.starFilledIcon,
|
|
290
290
|
"aria-hidden": !0
|
|
291
291
|
}),
|
|
292
292
|
"aria-label": r,
|
|
293
293
|
onClick: t
|
|
294
|
-
}),
|
|
294
|
+
}), Rn = { tag: "_tag_iqin5_3" }, zn = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ Z(be, {
|
|
295
295
|
label: e,
|
|
296
296
|
textClassName: n,
|
|
297
297
|
style: de({
|
|
@@ -299,12 +299,12 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
299
299
|
"--cat-card-tag-text": r?.text,
|
|
300
300
|
"--cat-card-tag-border": r?.border
|
|
301
301
|
}),
|
|
302
|
-
className: R(
|
|
303
|
-
}),
|
|
302
|
+
className: R(Rn.tag, t)
|
|
303
|
+
}), Bn = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ Z(zn, {
|
|
304
304
|
label: e,
|
|
305
305
|
badgeClassName: t,
|
|
306
306
|
colors: n
|
|
307
|
-
}),
|
|
307
|
+
}), Vn = 8, Hn = ({ topics: e, overflowAriaLabel: t, className: n }) => {
|
|
308
308
|
let r = H(null), i = H([]), a = H([]), o = H(null), s = H(Infinity), [c, l] = U(e.length), u = e.join("\0"), d = z(() => {
|
|
309
309
|
let t = r.current;
|
|
310
310
|
if (!t || e.length === 0) return;
|
|
@@ -316,8 +316,8 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
316
316
|
let u = o.current?.offsetWidth ?? 0, d = 0, f = 0;
|
|
317
317
|
for (let t = 0; t < e.length; t++) {
|
|
318
318
|
let r = e.length - (t + 1) > 0;
|
|
319
|
-
if (d + (t > 0 ?
|
|
320
|
-
d += (t > 0 ?
|
|
319
|
+
if (d + (t > 0 ? Vn : 0) + c[t] + (r ? Vn + u : 0) > n) break;
|
|
320
|
+
d += (t > 0 ? Vn : 0) + c[t], f = t + 1;
|
|
321
321
|
}
|
|
322
322
|
l(Math.min(f, s.current));
|
|
323
323
|
}, [e.length]);
|
|
@@ -348,29 +348,29 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
348
348
|
ref: (e) => {
|
|
349
349
|
i.current[t] = e;
|
|
350
350
|
},
|
|
351
|
-
children: /* @__PURE__ */ Z(
|
|
351
|
+
children: /* @__PURE__ */ Z(Bn, { label: e })
|
|
352
352
|
}, e)),
|
|
353
353
|
f > 0 && /* @__PURE__ */ Z(Y, {
|
|
354
354
|
tooltip: e.slice(c).join(", "),
|
|
355
355
|
children: /* @__PURE__ */ Z("span", {
|
|
356
356
|
"aria-label": t?.(f) ?? `and ${f} more topics`,
|
|
357
|
-
children: /* @__PURE__ */ Z(
|
|
357
|
+
children: /* @__PURE__ */ Z(Bn, { label: `+${f}` })
|
|
358
358
|
})
|
|
359
359
|
}),
|
|
360
360
|
/* @__PURE__ */ Z("div", {
|
|
361
361
|
ref: o,
|
|
362
362
|
"aria-hidden": !0,
|
|
363
363
|
className: "invisible absolute inset-s-0 top-0",
|
|
364
|
-
children: /* @__PURE__ */ Z(
|
|
364
|
+
children: /* @__PURE__ */ Z(Bn, { label: `+${e.length}` })
|
|
365
365
|
})
|
|
366
366
|
]
|
|
367
367
|
});
|
|
368
|
-
},
|
|
368
|
+
}, Un = { img: () => null }, Wn = (e) => e.target instanceof Element && e.target.closest("a") !== null, Gn = (e) => !(e.target instanceof Node) || !e.currentTarget.contains(e.target), Kn = ({ item: e, query: t = "", onClick: n, initialIsStarred: r = !1, onToggle: i, isFavoriteVisible: a, featuredLabel: o = "Featured", addToFavoritesAriaLabel: s = "Add to favorites", removeFromFavoritesAriaLabel: c = "Remove from favorites", isSelected: l = !1, className: u, styles: d, credentialsBadgeLoggedOutLabel: f, noFolderLabel: p = "No folder", isReadonly: m = !1, markdownLabels: h, activeTab: g }) => {
|
|
369
369
|
let [_, v] = U(r), y = T(e, g);
|
|
370
370
|
B(() => {
|
|
371
371
|
v(r);
|
|
372
372
|
}, [e.id, r]);
|
|
373
|
-
let { ref: b, isClamped: x } =
|
|
373
|
+
let { ref: b, isClamped: x } = An(e.description), S = d?.typography?.descriptionClassName ?? "dial-small-paragraph-text", C = d?.typography?.featuredChipClassName, w = d?.typography?.folderLabelClassName ?? "dial-tiny-text", E = d?.typography?.folderLeafClassName ?? "dial-tiny-semi-text", D = d?.typography?.descriptionTooltipClassName ?? "dial-small-text", O = d?.typography?.descriptionTooltipStrongClassName ?? "dial-small-semi-text", k = V(() => ({
|
|
374
374
|
p: D,
|
|
375
375
|
ul: D,
|
|
376
376
|
ol: D,
|
|
@@ -389,7 +389,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
389
389
|
"--cg-footer-border": d?.colors?.footerBorder,
|
|
390
390
|
"--cg-focus-outline": d?.colors?.focusOutline
|
|
391
391
|
}), j = !m && e.isFeatured === !0, M = !m && a?.(e) !== !1, N = !m || e.folder.length > 0, P = n ? (t) => {
|
|
392
|
-
!
|
|
392
|
+
!Wn(t) && !Gn(t) && n(e);
|
|
393
393
|
} : void 0, F = z((t) => {
|
|
394
394
|
t.stopPropagation();
|
|
395
395
|
let n = !_;
|
|
@@ -403,11 +403,11 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
403
403
|
onClick: P,
|
|
404
404
|
"aria-label": e.name,
|
|
405
405
|
style: A,
|
|
406
|
-
className: R("box-border cursor-pointer gap-3 p-3",
|
|
406
|
+
className: R("box-border cursor-pointer gap-3 p-3", Dn.card, j ? Dn.featuredCard : void 0, l ? Dn.selectedCard : void 0, u, pn.card),
|
|
407
407
|
children: [
|
|
408
408
|
n && /* @__PURE__ */ Z("button", {
|
|
409
409
|
type: "button",
|
|
410
|
-
className: R("sr-only",
|
|
410
|
+
className: R("sr-only", Dn.cardButton),
|
|
411
411
|
children: e.name
|
|
412
412
|
}),
|
|
413
413
|
j && /* @__PURE__ */ Z("div", {
|
|
@@ -421,19 +421,19 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
421
421
|
}),
|
|
422
422
|
l && /* @__PURE__ */ Z(bt, {
|
|
423
423
|
size: G.SM,
|
|
424
|
-
className: R("absolute inset-e-3 top-3 shrink-0",
|
|
424
|
+
className: R("absolute inset-e-3 top-3 shrink-0", Dn.checkIcon),
|
|
425
425
|
"aria-hidden": !0,
|
|
426
426
|
stroke: K
|
|
427
427
|
}),
|
|
428
|
-
/* @__PURE__ */ Z(
|
|
428
|
+
/* @__PURE__ */ Z(Nn, {
|
|
429
429
|
icon: e.iconUrl,
|
|
430
430
|
type: y,
|
|
431
431
|
name: e.name,
|
|
432
432
|
version: e.version,
|
|
433
|
-
size:
|
|
433
|
+
size: on.SM,
|
|
434
434
|
query: t,
|
|
435
|
-
iconClassName:
|
|
436
|
-
iconOverlay: /* @__PURE__ */ Z(
|
|
435
|
+
iconClassName: Dn.cardIcon,
|
|
436
|
+
iconOverlay: /* @__PURE__ */ Z(Fn, {
|
|
437
437
|
credentials: e.credentials,
|
|
438
438
|
loggedOutLabel: f
|
|
439
439
|
})
|
|
@@ -445,12 +445,12 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
445
445
|
content: e.description && /* @__PURE__ */ Z(oe, {
|
|
446
446
|
content: e.description,
|
|
447
447
|
classNames: k,
|
|
448
|
-
components:
|
|
448
|
+
components: Un,
|
|
449
449
|
...h
|
|
450
450
|
}),
|
|
451
451
|
children: /* @__PURE__ */ Z("div", {
|
|
452
452
|
ref: b,
|
|
453
|
-
className: R(e.topics.length > 0 ? "line-clamp-2 min-h-[2lh]" : "line-clamp-3 min-h-[3lh]", "wrap-break-word",
|
|
453
|
+
className: R(e.topics.length > 0 ? "line-clamp-2 min-h-[2lh]" : "line-clamp-3 min-h-[3lh]", "wrap-break-word", Dn.description),
|
|
454
454
|
children: e.description && /* @__PURE__ */ Z(oe, {
|
|
455
455
|
content: e.description,
|
|
456
456
|
classNames: {
|
|
@@ -464,17 +464,17 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
464
464
|
h5: S,
|
|
465
465
|
h6: S
|
|
466
466
|
},
|
|
467
|
-
components:
|
|
467
|
+
components: Un,
|
|
468
468
|
...h
|
|
469
469
|
})
|
|
470
470
|
})
|
|
471
471
|
}),
|
|
472
472
|
/* @__PURE__ */ Z("div", {
|
|
473
473
|
className: "mt-auto flex items-center gap-2",
|
|
474
|
-
children: /* @__PURE__ */ Z(
|
|
474
|
+
children: /* @__PURE__ */ Z(Hn, { topics: e.topics })
|
|
475
475
|
}),
|
|
476
476
|
N && /* @__PURE__ */ Z("div", {
|
|
477
|
-
className: R("pt-3", !m && R("border-t",
|
|
477
|
+
className: R("pt-3", !m && R("border-t", Dn.footer)),
|
|
478
478
|
children: /* @__PURE__ */ Q("div", {
|
|
479
479
|
className: "flex items-center gap-2",
|
|
480
480
|
children: [/* @__PURE__ */ Z("div", {
|
|
@@ -484,21 +484,21 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
484
484
|
labelClassName: w,
|
|
485
485
|
leafClassName: E
|
|
486
486
|
}) : /* @__PURE__ */ Z("span", {
|
|
487
|
-
className: R(w,
|
|
487
|
+
className: R(w, Dn.description),
|
|
488
488
|
children: p
|
|
489
489
|
})
|
|
490
|
-
}), M && /* @__PURE__ */ Z(
|
|
490
|
+
}), M && /* @__PURE__ */ Z(Ln, {
|
|
491
491
|
isStarred: _,
|
|
492
492
|
size: J.Small,
|
|
493
493
|
onClick: F,
|
|
494
494
|
ariaLabel: _ ? c : s,
|
|
495
|
-
className: R(!_ &&
|
|
495
|
+
className: R(!_ && Dn.emptyStarHidden)
|
|
496
496
|
})]
|
|
497
497
|
})
|
|
498
498
|
})
|
|
499
499
|
]
|
|
500
500
|
});
|
|
501
|
-
},
|
|
501
|
+
}, qn = he(({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, noFolderLabel: f, isReadonly: p, featuredChipStyle: m, markdownLabels: h, activeTab: g }) => {
|
|
502
502
|
let _ = e * n, v = t.slice(_, _ + n), y = {
|
|
503
503
|
top: e * 268,
|
|
504
504
|
height: 268
|
|
@@ -510,7 +510,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
510
510
|
let n = v[t];
|
|
511
511
|
return /* @__PURE__ */ Z("div", {
|
|
512
512
|
className: "h-full min-w-0 flex-1",
|
|
513
|
-
children: n && /* @__PURE__ */ Z(
|
|
513
|
+
children: n && /* @__PURE__ */ Z(Kn, {
|
|
514
514
|
item: n,
|
|
515
515
|
query: r,
|
|
516
516
|
initialIsStarred: n.isStarred,
|
|
@@ -532,8 +532,8 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
532
532
|
}, n?.id ?? `spacer-${t}`);
|
|
533
533
|
})
|
|
534
534
|
});
|
|
535
|
-
}),
|
|
536
|
-
let h = a?.noResultsTitle ?? "No results", g = a?.featuredLabel ?? "Featured", _ = a?.addToFavoritesAriaLabel ?? "Add to favorites", v = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", y = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", b = a?.noFolderLabel ?? "No folder", { containerRef: x, startRow: S, endRow: C, columnCount: w, totalHeight: T } =
|
|
535
|
+
}), Jn = he(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = Dn.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f, markdownLabels: p, activeTab: m }) => {
|
|
536
|
+
let h = a?.noResultsTitle ?? "No results", g = a?.featuredLabel ?? "Featured", _ = a?.addToFavoritesAriaLabel ?? "Add to favorites", v = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", y = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", b = a?.noFolderLabel ?? "No folder", { containerRef: x, startRow: S, endRow: C, columnCount: w, totalHeight: T } = En(e.length, { isFullWidth: d }), E = V(() => ({
|
|
537
537
|
items: e,
|
|
538
538
|
columnCount: w,
|
|
539
539
|
query: t,
|
|
@@ -575,7 +575,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
575
575
|
...de({ "--cg-skeleton-card-bg": l })
|
|
576
576
|
},
|
|
577
577
|
children: Array.from({ length: w * 3 }, (e, t) => /* @__PURE__ */ Z("div", {
|
|
578
|
-
className: R("rounded-md border p-3",
|
|
578
|
+
className: R("rounded-md border p-3", Dn.skeletonCard),
|
|
579
579
|
style: { height: 248 },
|
|
580
580
|
children: /* @__PURE__ */ Z(ct, {
|
|
581
581
|
avatar: {
|
|
@@ -600,26 +600,26 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
600
600
|
style: { height: T },
|
|
601
601
|
children: Array.from({ length: C - S }, (e, t) => {
|
|
602
602
|
let n = S + t;
|
|
603
|
-
return /* @__PURE__ */ Z(
|
|
603
|
+
return /* @__PURE__ */ Z(qn, {
|
|
604
604
|
rowIndex: n,
|
|
605
605
|
...E
|
|
606
606
|
}, n);
|
|
607
607
|
})
|
|
608
608
|
});
|
|
609
|
-
}),
|
|
609
|
+
}), Yn = (e) => e.reduce((e, t) => t.type === un.File ? e + 1 : e + Yn(t.items), 0), Xn = (e) => {
|
|
610
610
|
let t = /* @__PURE__ */ new Set(), n = (e) => {
|
|
611
|
-
for (let r of e) r.type ===
|
|
611
|
+
for (let r of e) r.type === un.Folder && (t.add(r.id), n(r.items));
|
|
612
612
|
};
|
|
613
613
|
return n(e), t;
|
|
614
|
-
},
|
|
614
|
+
}, Zn = (e, t) => {
|
|
615
615
|
if (t != null) for (let n of e) {
|
|
616
616
|
if (n.id === t) return n.name;
|
|
617
|
-
if (n.type ===
|
|
618
|
-
let e =
|
|
617
|
+
if (n.type === un.Folder) {
|
|
618
|
+
let e = Zn(n.items, t);
|
|
619
619
|
if (e != null) return e;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
},
|
|
622
|
+
}, Qn = {
|
|
623
623
|
sectionHeading: "_sectionHeading_jnq93_1",
|
|
624
624
|
rowAlt: "_rowAlt_jnq93_5",
|
|
625
625
|
label: "_label_jnq93_9",
|
|
@@ -627,19 +627,19 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
627
627
|
valueTrue: "_valueTrue_jnq93_17",
|
|
628
628
|
valueFalse: "_valueFalse_jnq93_21",
|
|
629
629
|
valueText: "_valueText_jnq93_25"
|
|
630
|
-
},
|
|
630
|
+
}, $n = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(wt, {
|
|
631
631
|
size: G.MD,
|
|
632
|
-
className: R(r,
|
|
632
|
+
className: R(r, Qn.checkIcon)
|
|
633
633
|
}), /* @__PURE__ */ Z("span", {
|
|
634
|
-
className: R(n,
|
|
634
|
+
className: R(n, Qn.valueTrue),
|
|
635
635
|
children: i
|
|
636
636
|
})] }) : e === !1 ? /* @__PURE__ */ Z("span", {
|
|
637
|
-
className: R(t,
|
|
637
|
+
className: R(t, Qn.valueFalse),
|
|
638
638
|
children: a
|
|
639
639
|
}) : /* @__PURE__ */ Z("span", {
|
|
640
|
-
className: R("min-w-0 wrap-break-word", t,
|
|
640
|
+
className: R("min-w-0 wrap-break-word", t, Qn.valueText),
|
|
641
641
|
children: e
|
|
642
|
-
}),
|
|
642
|
+
}), er = ({ sectionLabel: e = "Section", values: t, labelClassName: n = "dial-small-semi-text", valueClassName: r = "dial-small-text", valueTrueClassName: i = "dial-small-semi-text", checkIconClassName: a, sectionClassName: o = "dial-caption-text", yesLabel: s = "Yes", noLabel: c = "No", colors: l }) => {
|
|
643
643
|
let u = de({
|
|
644
644
|
"--tv-section-heading": l?.sectionHeading,
|
|
645
645
|
"--tv-row-alt-bg": l?.rowAlt,
|
|
@@ -653,18 +653,18 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
653
653
|
className: "flex flex-col",
|
|
654
654
|
style: u,
|
|
655
655
|
children: t != null && t.length > 0 && /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
|
|
656
|
-
className: R("mt-0 mb-3", o,
|
|
656
|
+
className: R("mt-0 mb-3", o, Qn.sectionHeading),
|
|
657
657
|
children: e
|
|
658
658
|
}), /* @__PURE__ */ Z("ul", {
|
|
659
659
|
className: "m-0 list-none p-0",
|
|
660
660
|
children: t.map((e, t) => /* @__PURE__ */ Q("li", {
|
|
661
|
-
className: R("flex items-center rounded px-3 py-2", t % 2 == 0 ?
|
|
661
|
+
className: R("flex items-center rounded px-3 py-2", t % 2 == 0 ? Qn.rowAlt : void 0),
|
|
662
662
|
children: [/* @__PURE__ */ Z("span", {
|
|
663
|
-
className: R(n,
|
|
663
|
+
className: R(n, Qn.label, "w-2/5 shrink-0"),
|
|
664
664
|
children: e.label
|
|
665
665
|
}), /* @__PURE__ */ Z("div", {
|
|
666
666
|
className: "flex w-3/5 min-w-0 items-center gap-1",
|
|
667
|
-
children: /* @__PURE__ */ Z(
|
|
667
|
+
children: /* @__PURE__ */ Z($n, {
|
|
668
668
|
value: e.value,
|
|
669
669
|
valueClassName: r,
|
|
670
670
|
valueTrueClassName: i,
|
|
@@ -676,30 +676,30 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
676
676
|
}, e.label))
|
|
677
677
|
})] })
|
|
678
678
|
});
|
|
679
|
-
},
|
|
680
|
-
[
|
|
681
|
-
[
|
|
682
|
-
[
|
|
683
|
-
},
|
|
684
|
-
[
|
|
685
|
-
[
|
|
686
|
-
[
|
|
687
|
-
},
|
|
688
|
-
let [s, c] = U(e[0]?.language ??
|
|
679
|
+
}, tr = { sectionHeading: "_sectionHeading_148lj_1" }, nr = {
|
|
680
|
+
[nn.Python]: "Python",
|
|
681
|
+
[nn.Curl]: "cURL",
|
|
682
|
+
[nn.JavaScript]: "JavaScript"
|
|
683
|
+
}, rr = {
|
|
684
|
+
[nn.Python]: "python",
|
|
685
|
+
[nn.Curl]: "bash",
|
|
686
|
+
[nn.JavaScript]: "javascript"
|
|
687
|
+
}, ir = ({ snippets: e, sectionLabel: t, copyAriaLabel: n = "Copy", copiedStatusLabel: r = "Copied!", codeClassName: i = "dial-code-text", codeTitleClassName: a = "dial-tiny-semi-text", sectionClassName: o = "dial-caption-text" }) => {
|
|
688
|
+
let [s, c] = U(e[0]?.language ?? nn.Python);
|
|
689
689
|
B(() => {
|
|
690
|
-
c(e[0]?.language ??
|
|
690
|
+
c(e[0]?.language ?? nn.Python);
|
|
691
691
|
}, [e]);
|
|
692
692
|
let l = V(() => e.map((e) => ({
|
|
693
693
|
key: e.language,
|
|
694
|
-
label:
|
|
694
|
+
label: nr[e.language] ?? e.language,
|
|
695
695
|
onClick: () => c(e.language)
|
|
696
696
|
})), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
|
|
697
697
|
return /* @__PURE__ */ Q("section", { children: [t != null && /* @__PURE__ */ Z("p", {
|
|
698
|
-
className: R("mt-0 mb-3", o,
|
|
698
|
+
className: R("mt-0 mb-3", o, tr.sectionHeading),
|
|
699
699
|
children: t
|
|
700
700
|
}), /* @__PURE__ */ Z(L, {
|
|
701
|
-
language:
|
|
702
|
-
title:
|
|
701
|
+
language: rr[s] ?? s,
|
|
702
|
+
title: nr[s] ?? s,
|
|
703
703
|
value: u,
|
|
704
704
|
copyLabel: n,
|
|
705
705
|
copiedLabel: r,
|
|
@@ -715,7 +715,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
715
715
|
selectedKey: s
|
|
716
716
|
}) : void 0
|
|
717
717
|
})] });
|
|
718
|
-
},
|
|
718
|
+
}, ar = ({ api: e, resourceSectionLabel: t = "Resource", endpointSectionLabel: n = "Endpoint", snippetSectionLabel: r = "Code snippet", modelIdLabel: i = "Model ID", endpointLabel: a = "Endpoint", requestExampleLabel: o = "Request example", responseSchemaLabel: s = "Response schema", copyAriaLabel: c = "Copy", copiedStatusLabel: l = "Copied!", labelClassName: u = "dial-small-semi-text", valueClassName: d = "dial-small-text", codeClassName: f = "dial-code-text", codeTitleClassName: p = "dial-tiny-semi-text", sectionClassName: m = "dial-caption-text" }) => {
|
|
719
719
|
let [h, g] = U(0), _ = V(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = V(() => _.map((e, t) => ({
|
|
720
720
|
key: e.url,
|
|
721
721
|
label: e.label,
|
|
@@ -729,7 +729,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
729
729
|
return /* @__PURE__ */ Q("div", {
|
|
730
730
|
className: "flex flex-col gap-6",
|
|
731
731
|
children: [
|
|
732
|
-
C && /* @__PURE__ */ Z(
|
|
732
|
+
C && /* @__PURE__ */ Z(er, {
|
|
733
733
|
sectionLabel: t,
|
|
734
734
|
values: x,
|
|
735
735
|
labelClassName: u,
|
|
@@ -748,7 +748,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
748
748
|
}),
|
|
749
749
|
v && /* @__PURE__ */ Q("section", { children: [
|
|
750
750
|
/* @__PURE__ */ Z("p", {
|
|
751
|
-
className: R("mt-0 mb-3", m,
|
|
751
|
+
className: R("mt-0 mb-3", m, tr.sectionHeading),
|
|
752
752
|
children: n
|
|
753
753
|
}),
|
|
754
754
|
y != null && /* @__PURE__ */ Z(L, {
|
|
@@ -770,7 +770,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
770
770
|
}, h),
|
|
771
771
|
y?.snippets != null && y.snippets.length > 0 && /* @__PURE__ */ Z("div", {
|
|
772
772
|
className: "mt-4",
|
|
773
|
-
children: /* @__PURE__ */ Z(
|
|
773
|
+
children: /* @__PURE__ */ Z(ir, {
|
|
774
774
|
snippets: y.snippets,
|
|
775
775
|
copyAriaLabel: c,
|
|
776
776
|
copiedStatusLabel: l,
|
|
@@ -780,7 +780,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
780
780
|
}, h)
|
|
781
781
|
})
|
|
782
782
|
] }),
|
|
783
|
-
!v && T && /* @__PURE__ */ Z(
|
|
783
|
+
!v && T && /* @__PURE__ */ Z(ir, {
|
|
784
784
|
snippets: e.snippets ?? [],
|
|
785
785
|
sectionLabel: r,
|
|
786
786
|
copyAriaLabel: c,
|
|
@@ -790,7 +790,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
790
790
|
sectionClassName: m
|
|
791
791
|
}),
|
|
792
792
|
E && /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
|
|
793
|
-
className: R("mt-0 mb-3", m,
|
|
793
|
+
className: R("mt-0 mb-3", m, tr.sectionHeading),
|
|
794
794
|
children: o
|
|
795
795
|
}), /* @__PURE__ */ Z(L, {
|
|
796
796
|
language: "bash",
|
|
@@ -802,7 +802,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
802
802
|
hasContentTopPadding: !1
|
|
803
803
|
})] }),
|
|
804
804
|
D && /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
|
|
805
|
-
className: R("mt-0 mb-3", m,
|
|
805
|
+
className: R("mt-0 mb-3", m, tr.sectionHeading),
|
|
806
806
|
children: s
|
|
807
807
|
}), /* @__PURE__ */ Z(L, {
|
|
808
808
|
language: "json",
|
|
@@ -815,26 +815,26 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
815
815
|
})] })
|
|
816
816
|
]
|
|
817
817
|
});
|
|
818
|
-
},
|
|
818
|
+
}, or = {
|
|
819
819
|
sunkenBox: "_sunkenBox_1lqi3_1",
|
|
820
820
|
raisedBox: "_raisedBox_1lqi3_5",
|
|
821
821
|
activeIcon: "_activeIcon_1lqi3_9"
|
|
822
|
-
},
|
|
822
|
+
}, sr = /* @__PURE__ */ function(e) {
|
|
823
823
|
return e.Sunken = "sunken", e.Raised = "raised", e;
|
|
824
|
-
}({}),
|
|
825
|
-
sunken:
|
|
826
|
-
raised:
|
|
827
|
-
},
|
|
824
|
+
}({}), cr = {
|
|
825
|
+
sunken: or.sunkenBox,
|
|
826
|
+
raised: or.raisedBox
|
|
827
|
+
}, lr = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ Q("span", {
|
|
828
828
|
className: "relative inline-flex shrink-0",
|
|
829
829
|
children: [
|
|
830
830
|
/* @__PURE__ */ Z("span", {
|
|
831
|
-
className: R("flex size-8 items-center justify-center rounded-lg",
|
|
831
|
+
className: R("flex size-8 items-center justify-center rounded-lg", cr[n]),
|
|
832
832
|
children: e
|
|
833
833
|
}),
|
|
834
834
|
t && /* @__PURE__ */ Z(wt, {
|
|
835
835
|
size: G.MD,
|
|
836
836
|
"aria-hidden": !0,
|
|
837
|
-
className: R("absolute -inset-e-2 -top-2",
|
|
837
|
+
className: R("absolute -inset-e-2 -top-2", or.activeIcon)
|
|
838
838
|
}),
|
|
839
839
|
r != null && /* @__PURE__ */ Z(Ke, {
|
|
840
840
|
visuallyHidden: !0,
|
|
@@ -842,25 +842,25 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
842
842
|
children: r
|
|
843
843
|
})
|
|
844
844
|
]
|
|
845
|
-
}),
|
|
845
|
+
}), ur = {
|
|
846
846
|
card: "_card_tqnz7_1",
|
|
847
847
|
icon: "_icon_tqnz7_6",
|
|
848
848
|
title: "_title_tqnz7_10",
|
|
849
849
|
description: "_description_tqnz7_14"
|
|
850
|
-
},
|
|
851
|
-
className: R("flex items-center gap-3 rounded-xl p-3",
|
|
850
|
+
}, dr = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ Q("div", {
|
|
851
|
+
className: R("flex items-center gap-3 rounded-xl p-3", ur.card),
|
|
852
852
|
children: [/* @__PURE__ */ Z("span", {
|
|
853
|
-
className: R("shrink-0",
|
|
853
|
+
className: R("shrink-0", ur.icon, n != null && "mt-0.5"),
|
|
854
854
|
children: e
|
|
855
855
|
}), /* @__PURE__ */ Q("div", {
|
|
856
856
|
className: "flex min-w-0 flex-1 items-center justify-between gap-2",
|
|
857
857
|
children: [/* @__PURE__ */ Q("div", {
|
|
858
858
|
className: "flex min-w-0 flex-col gap-1",
|
|
859
859
|
children: [/* @__PURE__ */ Z("span", {
|
|
860
|
-
className: R(i,
|
|
860
|
+
className: R(i, ur.title),
|
|
861
861
|
children: t
|
|
862
862
|
}), n != null && /* @__PURE__ */ Z("span", {
|
|
863
|
-
className: R(a,
|
|
863
|
+
className: R(a, ur.description),
|
|
864
864
|
children: n
|
|
865
865
|
})]
|
|
866
866
|
}), r != null && /* @__PURE__ */ Z("div", {
|
|
@@ -868,55 +868,55 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
868
868
|
children: r
|
|
869
869
|
})]
|
|
870
870
|
})]
|
|
871
|
-
}),
|
|
871
|
+
}), fr = (e) => e === s.ApiKey ? "You are currently using organization API key to access this toolset." : "You are currently using organization credentials to access this toolset.", pr = (e) => e === s.ApiKey ? "Configure your personal API key to have access to your data." : "Login using personal account to have access to your data.", mr = (e) => e === s.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", hr = (e) => e === s.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", gr = 20, _r = ({ state: e, authenticationType: t, texts: n }) => {
|
|
872
872
|
let r = /* @__PURE__ */ Z(yt, {
|
|
873
|
-
size:
|
|
873
|
+
size: gr,
|
|
874
874
|
"aria-hidden": !0,
|
|
875
875
|
stroke: K
|
|
876
876
|
});
|
|
877
877
|
if (e === y.PersonalCredentialsActive) {
|
|
878
|
-
let e = (n?.personalCredentialsActiveBannerTitle ??
|
|
879
|
-
return /* @__PURE__ */ Z(
|
|
880
|
-
icon: /* @__PURE__ */ Z(
|
|
878
|
+
let e = (n?.personalCredentialsActiveBannerTitle ?? hr)(t);
|
|
879
|
+
return /* @__PURE__ */ Z(dr, {
|
|
880
|
+
icon: /* @__PURE__ */ Z(lr, {
|
|
881
881
|
icon: /* @__PURE__ */ Z(Ht, {
|
|
882
882
|
size: G.SM,
|
|
883
883
|
"aria-hidden": !0,
|
|
884
884
|
stroke: K
|
|
885
885
|
}),
|
|
886
886
|
isActive: !0,
|
|
887
|
-
surface:
|
|
887
|
+
surface: sr.Raised
|
|
888
888
|
}),
|
|
889
889
|
title: e
|
|
890
890
|
});
|
|
891
891
|
}
|
|
892
892
|
if (e === y.OrgCredentialsActive) {
|
|
893
|
-
let e = (n?.orgCredentialsActiveBannerTitle ??
|
|
894
|
-
return /* @__PURE__ */ Z(
|
|
895
|
-
icon: /* @__PURE__ */ Z(
|
|
893
|
+
let e = (n?.orgCredentialsActiveBannerTitle ?? mr)(t);
|
|
894
|
+
return /* @__PURE__ */ Z(dr, {
|
|
895
|
+
icon: /* @__PURE__ */ Z(lr, {
|
|
896
896
|
icon: /* @__PURE__ */ Z(yt, {
|
|
897
897
|
size: G.SM,
|
|
898
898
|
"aria-hidden": !0,
|
|
899
899
|
stroke: K
|
|
900
900
|
}),
|
|
901
901
|
isActive: !0,
|
|
902
|
-
surface:
|
|
902
|
+
surface: sr.Raised
|
|
903
903
|
}),
|
|
904
904
|
title: e
|
|
905
905
|
});
|
|
906
906
|
}
|
|
907
|
-
let i = (n?.orgFallbackBannerTitle ??
|
|
908
|
-
return /* @__PURE__ */ Z(
|
|
907
|
+
let i = (n?.orgFallbackBannerTitle ?? fr)(t), a = (n?.orgFallbackBannerDescription ?? pr)(t);
|
|
908
|
+
return /* @__PURE__ */ Z(dr, {
|
|
909
909
|
icon: r,
|
|
910
910
|
title: i,
|
|
911
911
|
description: a
|
|
912
912
|
});
|
|
913
|
-
},
|
|
913
|
+
}, vr = {
|
|
914
914
|
surface: "_surface_qltis_1",
|
|
915
915
|
description: "_description_qltis_5",
|
|
916
916
|
rowDescription: "_rowDescription_qltis_9",
|
|
917
917
|
errorText: "_errorText_qltis_13",
|
|
918
918
|
deleteAction: "_deleteAction_qltis_18"
|
|
919
|
-
},
|
|
919
|
+
}, yr = ({ label: e, description: t, icon: n, status: r, isActive: i, authenticationType: a, apiKeyAddedWhen: o, apiKeyHeader: c, onLogin: l, onRequestLogout: u, onRequestDeleteApiKey: d, texts: f, labelClassName: p, descriptionClassName: m, errorClassName: h, keyCardTitleClassName: g, keyCardDescriptionClassName: _, deleteActionClassName: v, disabled: y = !1, isPending: x = !1, renderLoginOptions: S, children: C }) => {
|
|
920
920
|
let w = _e(), [T, E] = U(), [D, O] = U(""), [k, A] = U(!1), [j, M] = U(!1), N = r === b.SignedIn, P = z((e) => {
|
|
921
921
|
O(e ?? ""), A(!1), E(void 0);
|
|
922
922
|
}, []), F = async () => {
|
|
@@ -939,7 +939,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
939
939
|
"aria-label": e,
|
|
940
940
|
"aria-busy": j || x,
|
|
941
941
|
className: "flex min-w-0 items-start gap-3 rounded-xl p-3",
|
|
942
|
-
children: [/* @__PURE__ */ Z(
|
|
942
|
+
children: [/* @__PURE__ */ Z(lr, {
|
|
943
943
|
icon: n,
|
|
944
944
|
isActive: i,
|
|
945
945
|
statusLabel: i ? re : ie
|
|
@@ -954,7 +954,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
954
954
|
className: p,
|
|
955
955
|
children: e
|
|
956
956
|
}), /* @__PURE__ */ Z("span", {
|
|
957
|
-
className: R(m,
|
|
957
|
+
className: R(m, vr.rowDescription),
|
|
958
958
|
children: t
|
|
959
959
|
})]
|
|
960
960
|
}), a === s.OAuth && (N ? u && /* @__PURE__ */ Z(q, {
|
|
@@ -1008,18 +1008,18 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1008
1008
|
/* @__PURE__ */ Z(Ee, {
|
|
1009
1009
|
id: oe,
|
|
1010
1010
|
text: ce,
|
|
1011
|
-
className: R(m,
|
|
1011
|
+
className: R(m, vr.rowDescription)
|
|
1012
1012
|
}),
|
|
1013
1013
|
k && /* @__PURE__ */ Z(Pe, {
|
|
1014
1014
|
id: se,
|
|
1015
|
-
className: R(h,
|
|
1015
|
+
className: R(h, vr.errorText),
|
|
1016
1016
|
text: f?.apiKeyRequiredErrorMessage ?? "API key is required."
|
|
1017
1017
|
})
|
|
1018
1018
|
]
|
|
1019
1019
|
}),
|
|
1020
1020
|
a === s.ApiKey && /* @__PURE__ */ Z(Ke, { children: N && /* @__PURE__ */ Z("div", {
|
|
1021
1021
|
className: "animate-fadeIn pt-1",
|
|
1022
|
-
children: /* @__PURE__ */ Z(
|
|
1022
|
+
children: /* @__PURE__ */ Z(dr, {
|
|
1023
1023
|
icon: /* @__PURE__ */ Z(kt, {
|
|
1024
1024
|
size: G.SM,
|
|
1025
1025
|
"aria-hidden": !0,
|
|
@@ -1040,23 +1040,23 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1040
1040
|
!N && S?.(j || y),
|
|
1041
1041
|
/* @__PURE__ */ Z(Pe, {
|
|
1042
1042
|
announce: Je.Assertive,
|
|
1043
|
-
className: R(h,
|
|
1043
|
+
className: R(h, vr.errorText),
|
|
1044
1044
|
text: T ?? ""
|
|
1045
1045
|
}),
|
|
1046
1046
|
C
|
|
1047
1047
|
]
|
|
1048
1048
|
})]
|
|
1049
1049
|
});
|
|
1050
|
-
},
|
|
1051
|
-
let c = R(
|
|
1050
|
+
}, br = (e) => e === s.ApiKey ? "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default for toolset access." : "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default.", xr = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: a, detailsStyles: o, deleteActionClassName: s }) => {
|
|
1051
|
+
let c = R(vr.deleteAction, s), { credentialsDescriptionClassName: l = "dial-body-paragraph-text", credentialsRowLabelClassName: u = "dial-small-semi-text", credentialsRowDescriptionClassName: d = "dial-small-text", credentialsErrorClassName: f = "dial-caption-text", credentialsKeyCardTitleClassName: p = "dial-tiny-semi-text", credentialsKeyCardDescriptionClassName: m = "dial-tiny-text" } = o?.typography ?? {}, h = e.credentials;
|
|
1052
1052
|
if (h == null) return null;
|
|
1053
|
-
let g = (a?.credentialsManagementDescription ??
|
|
1053
|
+
let g = (a?.credentialsManagementDescription ?? br)(h.authenticationType), _ = h.userStatus === b.SignedIn, v = !_ && h.globalStatus === b.SignedIn;
|
|
1054
1054
|
return /* @__PURE__ */ Q("div", {
|
|
1055
1055
|
className: "flex flex-col",
|
|
1056
1056
|
children: [/* @__PURE__ */ Z("div", {
|
|
1057
1057
|
className: "px-6 py-4",
|
|
1058
1058
|
children: /* @__PURE__ */ Z("div", {
|
|
1059
|
-
className: R("rounded-xl p-3",
|
|
1059
|
+
className: R("rounded-xl p-3", vr.surface),
|
|
1060
1060
|
children: /* @__PURE__ */ Z(ne, {
|
|
1061
1061
|
item: e,
|
|
1062
1062
|
iconSize: 40,
|
|
@@ -1066,11 +1066,11 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1066
1066
|
}), /* @__PURE__ */ Q("div", {
|
|
1067
1067
|
className: "flex flex-col gap-5 px-6 py-4",
|
|
1068
1068
|
children: [/* @__PURE__ */ Z("span", {
|
|
1069
|
-
className: R(l,
|
|
1069
|
+
className: R(l, vr.description),
|
|
1070
1070
|
children: g
|
|
1071
1071
|
}), /* @__PURE__ */ Q("div", {
|
|
1072
1072
|
className: "flex flex-col",
|
|
1073
|
-
children: [/* @__PURE__ */ Z(
|
|
1073
|
+
children: [/* @__PURE__ */ Z(yr, {
|
|
1074
1074
|
label: a?.personalCredentialsLabel ?? "Personal credentials",
|
|
1075
1075
|
description: a?.personalCredentialsDescription ?? "These credentials apply only to your account.",
|
|
1076
1076
|
icon: /* @__PURE__ */ Z(Ht, {
|
|
@@ -1096,7 +1096,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1096
1096
|
keyCardTitleClassName: p,
|
|
1097
1097
|
keyCardDescriptionClassName: m,
|
|
1098
1098
|
deleteActionClassName: c
|
|
1099
|
-
}), /* @__PURE__ */ Z(
|
|
1099
|
+
}), /* @__PURE__ */ Z(yr, {
|
|
1100
1100
|
label: a?.organizationCredentialsLabel ?? "Organization credentials",
|
|
1101
1101
|
description: a?.organizationCredentialsDescription ?? "Once added, these credentials will grant all users in your organization access to this toolset.",
|
|
1102
1102
|
icon: /* @__PURE__ */ Z(yt, {
|
|
@@ -1126,7 +1126,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1126
1126
|
})]
|
|
1127
1127
|
})]
|
|
1128
1128
|
});
|
|
1129
|
-
},
|
|
1129
|
+
}, Sr = {
|
|
1130
1130
|
skeletonColor: "var(--cat-details-skeleton, var(--bg-control-disable-primary, #dce0e8))",
|
|
1131
1131
|
backdrop: "_backdrop_1nv0c_7",
|
|
1132
1132
|
panel: "_panel_1nv0c_11",
|
|
@@ -1134,13 +1134,13 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1134
1134
|
content: "_content_1nv0c_20",
|
|
1135
1135
|
tabsScroll: "_tabsScroll_1nv0c_26",
|
|
1136
1136
|
publishTitle: "_publishTitle_1nv0c_33"
|
|
1137
|
-
},
|
|
1137
|
+
}, Cr = /* @__PURE__ */ function(e) {
|
|
1138
1138
|
return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
|
|
1139
|
-
}({}),
|
|
1139
|
+
}({}), wr = {
|
|
1140
1140
|
divider: "_divider_1lu6m_1",
|
|
1141
1141
|
hint: "_hint_1lu6m_5",
|
|
1142
1142
|
deleteAction: "_deleteAction_1lu6m_10"
|
|
1143
|
-
},
|
|
1143
|
+
}, Tr = 16, Er = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, apiKeyHeader: i, onLogin: a, onLogout: o, onClose: s, texts: c, colors: l, typography: u, deleteActionClassName: d }) => {
|
|
1144
1144
|
let { credentialsOverlayTitleClassName: f = "dial-small-semi-text", credentialsHintClassName: p = "dial-caption-text", credentialsErrorClassName: m = "dial-caption-text" } = u ?? {}, [h, g] = U(""), [_, v] = U(!1), [y, x] = U(!1), [S, C] = U(!1), w = n === b.SignedIn, T = z((e) => {
|
|
1145
1145
|
g(e ?? ""), v(!1);
|
|
1146
1146
|
}, []), E = z(async () => {
|
|
@@ -1194,7 +1194,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1194
1194
|
children: O
|
|
1195
1195
|
})
|
|
1196
1196
|
}),
|
|
1197
|
-
/* @__PURE__ */ Z("div", { className: R("mx-4 h-px",
|
|
1197
|
+
/* @__PURE__ */ Z("div", { className: R("mx-4 h-px", wr.divider) }),
|
|
1198
1198
|
!w && /* @__PURE__ */ Q("div", {
|
|
1199
1199
|
className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
|
|
1200
1200
|
children: [
|
|
@@ -1215,7 +1215,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1215
1215
|
label: y ? void 0 : k,
|
|
1216
1216
|
"aria-label": y ? j : void 0,
|
|
1217
1217
|
iconBefore: y ? /* @__PURE__ */ Z(ut, {
|
|
1218
|
-
size:
|
|
1218
|
+
size: Tr,
|
|
1219
1219
|
ariaLabel: j
|
|
1220
1220
|
}) : void 0,
|
|
1221
1221
|
onClick: E,
|
|
@@ -1225,7 +1225,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1225
1225
|
/* @__PURE__ */ Z(Ee, {
|
|
1226
1226
|
id: ee,
|
|
1227
1227
|
text: te,
|
|
1228
|
-
className: R(p,
|
|
1228
|
+
className: R(p, wr.hint)
|
|
1229
1229
|
}),
|
|
1230
1230
|
_ && /* @__PURE__ */ Z(Pe, {
|
|
1231
1231
|
id: I,
|
|
@@ -1236,7 +1236,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1236
1236
|
}),
|
|
1237
1237
|
/* @__PURE__ */ Z(Ke, { children: w && /* @__PURE__ */ Z("div", {
|
|
1238
1238
|
className: "animate-fadeIn px-4 py-3.5",
|
|
1239
|
-
children: /* @__PURE__ */ Z(
|
|
1239
|
+
children: /* @__PURE__ */ Z(dr, {
|
|
1240
1240
|
icon: /* @__PURE__ */ Z(kt, {
|
|
1241
1241
|
size: 20,
|
|
1242
1242
|
"aria-hidden": !0,
|
|
@@ -1248,10 +1248,10 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1248
1248
|
label: S ? void 0 : A,
|
|
1249
1249
|
"aria-label": S ? M : void 0,
|
|
1250
1250
|
iconBefore: S ? /* @__PURE__ */ Z(ut, {
|
|
1251
|
-
size:
|
|
1251
|
+
size: Tr,
|
|
1252
1252
|
ariaLabel: M
|
|
1253
1253
|
}) : void 0,
|
|
1254
|
-
className: R(
|
|
1254
|
+
className: R(wr.deleteAction, d),
|
|
1255
1255
|
onClick: D,
|
|
1256
1256
|
disabled: S
|
|
1257
1257
|
})
|
|
@@ -1259,12 +1259,12 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1259
1259
|
}) })
|
|
1260
1260
|
]
|
|
1261
1261
|
});
|
|
1262
|
-
},
|
|
1262
|
+
}, Dr = {
|
|
1263
1263
|
name: "_name_rnlwb_1",
|
|
1264
1264
|
limitReached: "_limitReached_rnlwb_5",
|
|
1265
1265
|
limitRunningLow: "_limitRunningLow_rnlwb_10",
|
|
1266
1266
|
manageMenuIcon: "_manageMenuIcon_rnlwb_16"
|
|
1267
|
-
},
|
|
1267
|
+
}, Or = (e) => e.isMyApp === !0, kr = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
|
|
1268
1268
|
let [a, o] = U(!1), s = z(() => {
|
|
1269
1269
|
n ? o((e) => !e) : t?.(e);
|
|
1270
1270
|
}, [
|
|
@@ -1272,7 +1272,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1272
1272
|
t,
|
|
1273
1273
|
n
|
|
1274
1274
|
]);
|
|
1275
|
-
if (!
|
|
1275
|
+
if (!Or(e) || r && !r(e)) return null;
|
|
1276
1276
|
let c = /* @__PURE__ */ Z(Ze, {
|
|
1277
1277
|
label: i,
|
|
1278
1278
|
iconBefore: /* @__PURE__ */ Z(Lt, {
|
|
@@ -1298,17 +1298,17 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1298
1298
|
renderOverlay: () => n(e, () => o(!1)),
|
|
1299
1299
|
children: c
|
|
1300
1300
|
}) : c;
|
|
1301
|
-
},
|
|
1302
|
-
[
|
|
1303
|
-
[
|
|
1304
|
-
},
|
|
1305
|
-
className: R("flex h-[24px] items-center justify-center gap-1 rounded-2xl px-2 whitespace-nowrap", n,
|
|
1301
|
+
}, Ar = (e) => e === s.ApiKey ? "Manage API keys" : "Manage credentials", jr = {
|
|
1302
|
+
[rn.LimitReached]: Dr.limitReached,
|
|
1303
|
+
[rn.RunningLow]: Dr.limitRunningLow
|
|
1304
|
+
}, Mr = ({ status: e, label: t, className: n }) => /* @__PURE__ */ Z("div", {
|
|
1305
|
+
className: R("flex h-[24px] items-center justify-center gap-1 rounded-2xl px-2 whitespace-nowrap", n, jr[e]),
|
|
1306
1306
|
children: t
|
|
1307
|
-
}),
|
|
1308
|
-
let { nameClassName: te = "dial-body-semi-text", folderLabelClassName: re = "dial-tiny-text", folderLeafClassName: ie = "dial-tiny-semi-text", limitStatusBadgeClassName: ae = "dial-caption-lead-semi-text" } = D?.typography ?? {}, L = e.details?.limits?.status, oe = L == null ? void 0 : /* @__PURE__ */ Z(
|
|
1307
|
+
}), Nr = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: o, isShareVisible: c, isSharePrimary: l, onEdit: u, onDownload: f, isDownloadVisible: p, isDownloadPrimary: m, onDelete: h, onUnshare: g, isUnshareVisible: _, onRevokeShare: y, onFetchRecipientsCount: b, isRevokeShareVisible: x, onLogin: S, onLogout: C, onOpenCredentialsManagement: w, onRequestLogout: T, texts: E, detailsStyles: D, isPublishVisible: O, isPublishPrimary: k, onOpenPublish: A, isUnpublishVisible: j, hasPublishedFolders: M = !1, isPublishHistoryResolved: N = !0, onRequestPublishHistory: F, onOpenUnpublish: ee, isReadonly: I = !1 }) => {
|
|
1308
|
+
let { nameClassName: te = "dial-body-semi-text", folderLabelClassName: re = "dial-tiny-text", folderLeafClassName: ie = "dial-tiny-semi-text", limitStatusBadgeClassName: ae = "dial-caption-lead-semi-text" } = D?.typography ?? {}, L = e.details?.limits?.status, oe = L == null ? void 0 : /* @__PURE__ */ Z(Mr, {
|
|
1309
1309
|
status: L,
|
|
1310
1310
|
className: ae,
|
|
1311
|
-
label: L ===
|
|
1311
|
+
label: L === rn.LimitReached ? E?.limitReachedLabel ?? "Limit reached" : E?.limitRunningLowLabel ?? "Running low"
|
|
1312
1312
|
}), se = z(() => {
|
|
1313
1313
|
t?.(e);
|
|
1314
1314
|
}, [e, t]), ce = z(() => {
|
|
@@ -1353,21 +1353,21 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1353
1353
|
h?.(e);
|
|
1354
1354
|
}, [e, h]), Se = z(() => {
|
|
1355
1355
|
y?.(e);
|
|
1356
|
-
}, [e, y]), [W, Ce] = U(
|
|
1356
|
+
}, [e, y]), [W, Ce] = U(Cr.Idle), [we, Te] = U(void 0), Ee = H(null);
|
|
1357
1357
|
B(() => {
|
|
1358
|
-
Ee.current = null, Ce(
|
|
1358
|
+
Ee.current = null, Ce(Cr.Idle), Te(void 0);
|
|
1359
1359
|
}, [e.id]);
|
|
1360
1360
|
let De = z(() => {
|
|
1361
1361
|
if (!b || Ee.current === e.id || !y || e.isMyApp !== !0 || x?.(e) === !1) return;
|
|
1362
1362
|
let t = e.id;
|
|
1363
|
-
Ee.current = t, Ce(
|
|
1363
|
+
Ee.current = t, Ce(Cr.Loading), (async () => {
|
|
1364
1364
|
try {
|
|
1365
1365
|
let n = await b(e);
|
|
1366
1366
|
if (Ee.current !== t) return;
|
|
1367
|
-
Te(n), Ce(n == null ?
|
|
1367
|
+
Te(n), Ce(n == null ? Cr.Unknown : Cr.Resolved);
|
|
1368
1368
|
} catch {
|
|
1369
1369
|
if (Ee.current !== t) return;
|
|
1370
|
-
Te(void 0), Ce(
|
|
1370
|
+
Te(void 0), Ce(Cr.Unknown);
|
|
1371
1371
|
}
|
|
1372
1372
|
})();
|
|
1373
1373
|
}, [
|
|
@@ -1385,37 +1385,37 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1385
1385
|
De(), F?.();
|
|
1386
1386
|
}, [De, F]), Ne = z(() => {
|
|
1387
1387
|
F?.();
|
|
1388
|
-
}, [F]), Pe = E?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === P.Model || e.type === P.Agent || e.type === P.Prompt)), Fe = !I && !!ee && M && (j?.(e) ?? !0), Ie = !I && !!ee && !N && j?.(e) === !0, Re = !I && !Fe && (O?.(e) ?? (e.type === P.Model || e.type === P.Toolset || e.type === P.Agent)), ze = !I && !!u && !!e.isEditable, Be = !I && e.isMyApp === !0 && (c?.(e) ?? !0), Ve = l?.(e) ?? !0, He = k?.(e) ?? !1, Ue = e.credentials?.authenticationType ?? s.None, We = e.credentials != null && Ue !== s.None ? v(e.credentials) : void 0, Ge = !I && We != null && (!!S || !!C), Je = e.type === P.Toolset && Ge, Ye = !!f && (p?.(e) ?? !0), Xe = Ye && !Je && (m?.(e) ?? (e.type === P.Skill && !Pe)), $e = Ye && !Xe, et = !I && e.isMyApp, tt = !I && !!g && e.isMyApp !== !0 && e.sharedWithMe === !0 && (_?.(e) ?? !0), rt = !I && !!y && e.isMyApp === !0 && (!b || W ===
|
|
1388
|
+
}, [F]), Pe = E?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === P.Model || e.type === P.Agent || e.type === P.Prompt)), Fe = !I && !!ee && M && (j?.(e) ?? !0), Ie = !I && !!ee && !N && j?.(e) === !0, Re = !I && !Fe && (O?.(e) ?? (e.type === P.Model || e.type === P.Toolset || e.type === P.Agent)), ze = !I && !!u && !!e.isEditable, Be = !I && e.isMyApp === !0 && (c?.(e) ?? !0), Ve = l?.(e) ?? !0, He = k?.(e) ?? !1, Ue = e.credentials?.authenticationType ?? s.None, We = e.credentials != null && Ue !== s.None ? v(e.credentials) : void 0, Ge = !I && We != null && (!!S || !!C), Je = e.type === P.Toolset && Ge, Ye = !!f && (p?.(e) ?? !0), Xe = Ye && !Je && (m?.(e) ?? (e.type === P.Skill && !Pe)), $e = Ye && !Xe, et = !I && e.isMyApp, tt = !I && !!g && e.isMyApp !== !0 && e.sharedWithMe === !0 && (_?.(e) ?? !0), rt = !I && !!y && e.isMyApp === !0 && (!b || W === Cr.Unknown || W === Cr.Resolved && (we ?? 0) > 0) && (x?.(e) ?? !0), it = V(() => {
|
|
1389
1389
|
let e = [];
|
|
1390
1390
|
if (!Ve && Be && e.push({
|
|
1391
1391
|
key: "share",
|
|
1392
1392
|
label: E?.shareLabel ?? "Share",
|
|
1393
1393
|
Icon: Lt,
|
|
1394
|
-
iconClassName:
|
|
1394
|
+
iconClassName: Dr.manageMenuIcon,
|
|
1395
1395
|
onClick: ve
|
|
1396
1396
|
}), ze && e.push({
|
|
1397
1397
|
key: "edit",
|
|
1398
1398
|
label: E?.editActionLabel ?? "Edit",
|
|
1399
1399
|
Icon: Pt,
|
|
1400
|
-
iconClassName:
|
|
1400
|
+
iconClassName: Dr.manageMenuIcon,
|
|
1401
1401
|
onClick: ce
|
|
1402
1402
|
}), $e && e.push({
|
|
1403
1403
|
key: "download",
|
|
1404
1404
|
label: E?.downloadActionLabel ?? "Download",
|
|
1405
1405
|
Icon: Et,
|
|
1406
|
-
iconClassName:
|
|
1406
|
+
iconClassName: Dr.manageMenuIcon,
|
|
1407
1407
|
onClick: fe
|
|
1408
1408
|
}), !He && Re && e.push({
|
|
1409
1409
|
key: "publish",
|
|
1410
1410
|
label: E?.publishLabel ?? "Publish",
|
|
1411
1411
|
Icon: Gt,
|
|
1412
|
-
iconClassName:
|
|
1412
|
+
iconClassName: Dr.manageMenuIcon,
|
|
1413
1413
|
onClick: le
|
|
1414
1414
|
}), !He && Fe && e.push({
|
|
1415
1415
|
key: "unpublish",
|
|
1416
1416
|
label: E?.unpublishLabel ?? "Unpublish",
|
|
1417
1417
|
Icon: Wt,
|
|
1418
|
-
iconClassName:
|
|
1418
|
+
iconClassName: Dr.manageMenuIcon,
|
|
1419
1419
|
onClick: ue
|
|
1420
1420
|
}), rt) {
|
|
1421
1421
|
let t = E?.revokeShareLabel ?? "Revoke access", n = E?.revokeShareLabelWithCount ?? ((e) => `${t} (${e})`);
|
|
@@ -1481,7 +1481,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1481
1481
|
S,
|
|
1482
1482
|
w,
|
|
1483
1483
|
T
|
|
1484
|
-
]), bt = We === a.ManageCredentials ? (E?.manageCredentialsActionLabel ??
|
|
1484
|
+
]), bt = We === a.ManageCredentials ? (E?.manageCredentialsActionLabel ?? Ar)(Ue) : Ue === s.ApiKey ? We === a.LogOut ? E?.changeApiKeyActionLabel ?? "Change API key" : E?.apiKeyActionLabel ?? "API key" : We === a.LogOut ? E?.logoutActionLabel ?? "Log out" : E?.loginActionLabel ?? "Log in", St = We === a.ManageCredentials || Ue === s.ApiKey ? /* @__PURE__ */ Z(kt, {
|
|
1485
1485
|
size: G.MD,
|
|
1486
1486
|
stroke: K
|
|
1487
1487
|
}) : We === a.LogOut ? /* @__PURE__ */ Z(Nt, {
|
|
@@ -1503,7 +1503,6 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1503
1503
|
iconBefore: St,
|
|
1504
1504
|
iconAfter: Ct,
|
|
1505
1505
|
onClick: yt,
|
|
1506
|
-
"aria-haspopup": mt ? "dialog" : void 0,
|
|
1507
1506
|
"aria-expanded": mt ? Y : void 0
|
|
1508
1507
|
});
|
|
1509
1508
|
return !mt || e.credentials == null ? n : /* @__PURE__ */ Z(Ae, {
|
|
@@ -1513,7 +1512,9 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1513
1512
|
onOpenChange: pt,
|
|
1514
1513
|
trigger: [],
|
|
1515
1514
|
outsideClosable: !0,
|
|
1516
|
-
|
|
1515
|
+
overlayRole: Me.Dialog,
|
|
1516
|
+
overlayAriaLabel: E?.personalApiKeyPanelTitle ?? "Personal API key",
|
|
1517
|
+
renderOverlay: () => /* @__PURE__ */ Z(Er, {
|
|
1517
1518
|
item: e,
|
|
1518
1519
|
level: ht,
|
|
1519
1520
|
status: ht === i.User ? e.credentials?.userStatus : e.credentials?.globalStatus,
|
|
@@ -1528,7 +1529,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1528
1529
|
}),
|
|
1529
1530
|
children: n
|
|
1530
1531
|
});
|
|
1531
|
-
}, Dt = ({ key: t, label: n, Icon: i, danger: a, onClick: s }) => t === "share" ? /* @__PURE__ */ Z(
|
|
1532
|
+
}, Dt = ({ key: t, label: n, Icon: i, danger: a, onClick: s }) => t === "share" ? /* @__PURE__ */ Z(kr, {
|
|
1532
1533
|
item: e,
|
|
1533
1534
|
onShare: r,
|
|
1534
1535
|
shareOverlay: o,
|
|
@@ -1577,7 +1578,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1577
1578
|
children: [/* @__PURE__ */ Z(ne, {
|
|
1578
1579
|
item: e,
|
|
1579
1580
|
iconSize: 52,
|
|
1580
|
-
nameClassName: R(te,
|
|
1581
|
+
nameClassName: R(te, Dr.name),
|
|
1581
1582
|
featuredLabel: E?.featuredLabel ?? "Featured",
|
|
1582
1583
|
typeLabel: E?.entityTypeLabels?.[e.type],
|
|
1583
1584
|
featuredChipStyle: D?.colors?.featuredChipStyle,
|
|
@@ -1595,7 +1596,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1595
1596
|
label: E?.primaryActionLabel ?? "Use in chat",
|
|
1596
1597
|
iconBefore: /* @__PURE__ */ Z(Ft, { size: G.MD }),
|
|
1597
1598
|
onClick: se,
|
|
1598
|
-
disabled: L ===
|
|
1599
|
+
disabled: L === rn.LimitReached
|
|
1599
1600
|
}),
|
|
1600
1601
|
Xe && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(nt, {
|
|
1601
1602
|
label: E?.downloadActionLabel ?? "Download",
|
|
@@ -1615,7 +1616,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1615
1616
|
as: qe.Span,
|
|
1616
1617
|
children: pe ? E?.downloadingStatusLabel ?? "Downloading" : ""
|
|
1617
1618
|
})] }),
|
|
1618
|
-
Ve && Be && /* @__PURE__ */ Z(
|
|
1619
|
+
Ve && Be && /* @__PURE__ */ Z(kr, {
|
|
1619
1620
|
item: e,
|
|
1620
1621
|
onShare: r,
|
|
1621
1622
|
shareOverlay: o,
|
|
@@ -1649,7 +1650,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1649
1650
|
]
|
|
1650
1651
|
})]
|
|
1651
1652
|
});
|
|
1652
|
-
},
|
|
1653
|
+
}, Pr = ({ topics: e, content: t, detailsStyles: n, markdownLabels: r }) => {
|
|
1653
1654
|
let i = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", a = n?.typography?.contentClassName ?? "dial-small-text";
|
|
1654
1655
|
return /* @__PURE__ */ Q("div", {
|
|
1655
1656
|
className: "flex flex-col gap-5",
|
|
@@ -1669,28 +1670,28 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1669
1670
|
...r
|
|
1670
1671
|
}), e && e.length > 0 && /* @__PURE__ */ Z("div", {
|
|
1671
1672
|
className: "flex flex-wrap gap-2",
|
|
1672
|
-
children: e.map((e) => /* @__PURE__ */ Z(
|
|
1673
|
+
children: e.map((e) => /* @__PURE__ */ Z(Bn, { label: e }, e))
|
|
1673
1674
|
})]
|
|
1674
1675
|
});
|
|
1675
|
-
},
|
|
1676
|
+
}, Fr = {
|
|
1676
1677
|
divider: "_divider_1gzl9_1",
|
|
1677
1678
|
fileCount: "_fileCount_1gzl9_5",
|
|
1678
1679
|
body: "_body_1gzl9_9"
|
|
1679
|
-
},
|
|
1680
|
+
}, Ir = {
|
|
1680
1681
|
focusedRow: "_focusedRow_jyeta_2",
|
|
1681
1682
|
selectedRow: "_selectedRow_jyeta_6",
|
|
1682
1683
|
row: "_row_jyeta_10"
|
|
1683
|
-
},
|
|
1684
|
+
}, Lr = (e, t, n = void 0) => e.flatMap((e) => {
|
|
1684
1685
|
let r = {
|
|
1685
1686
|
node: e,
|
|
1686
1687
|
parentId: n
|
|
1687
1688
|
};
|
|
1688
|
-
return e.type ===
|
|
1689
|
-
}),
|
|
1689
|
+
return e.type === un.File || !t.has(e.id) ? [r] : [r, ...Lr(e.items, t, e.id)];
|
|
1690
|
+
}), Rr = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text", colors: c }) => {
|
|
1690
1691
|
let l = de({
|
|
1691
1692
|
"--cat-content-tree-row-hover-bg": c?.rowHoverBackground,
|
|
1692
1693
|
"--cat-content-tree-row-selected-bg": c?.rowSelectedBackground
|
|
1693
|
-
}), u = V(() =>
|
|
1694
|
+
}), u = V(() => Lr(e, n), [e, n]), d = H({}), [f, p] = U(() => t ?? u[0]?.node.id);
|
|
1694
1695
|
B(() => {
|
|
1695
1696
|
f != null && d.current[f]?.focus();
|
|
1696
1697
|
}, []);
|
|
@@ -1714,20 +1715,20 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1714
1715
|
break;
|
|
1715
1716
|
}
|
|
1716
1717
|
case "ArrowRight":
|
|
1717
|
-
e.preventDefault(), o.node.type ===
|
|
1718
|
+
e.preventDefault(), o.node.type === un.Folder && !n.has(o.node.id) && r(o.node.id);
|
|
1718
1719
|
break;
|
|
1719
1720
|
case "ArrowLeft":
|
|
1720
|
-
e.preventDefault(), o.node.type ===
|
|
1721
|
+
e.preventDefault(), o.node.type === un.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && m(o.parentId);
|
|
1721
1722
|
break;
|
|
1722
1723
|
case "Enter":
|
|
1723
1724
|
case " ":
|
|
1724
|
-
e.preventDefault(), o.node.type ===
|
|
1725
|
+
e.preventDefault(), o.node.type === un.Folder ? r(o.node.id) : i(o.node.id);
|
|
1725
1726
|
break;
|
|
1726
1727
|
case "Escape": e.preventDefault(), a();
|
|
1727
1728
|
}
|
|
1728
|
-
}, g = (e) => R("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-hidden",
|
|
1729
|
+
}, g = (e) => R("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-hidden", Ir.row, e && Ir.focusedRow), _ = (e) => {
|
|
1729
1730
|
let a = e.id === f;
|
|
1730
|
-
if (e.type ===
|
|
1731
|
+
if (e.type === un.File) {
|
|
1731
1732
|
let n = e.id === t;
|
|
1732
1733
|
return /* @__PURE__ */ Z("div", {
|
|
1733
1734
|
ref: (t) => {
|
|
@@ -1736,7 +1737,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1736
1737
|
role: "treeitem",
|
|
1737
1738
|
"aria-selected": n,
|
|
1738
1739
|
tabIndex: a ? 0 : -1,
|
|
1739
|
-
className: R(g(a), n &&
|
|
1740
|
+
className: R(g(a), n && Ir.selectedRow),
|
|
1740
1741
|
onClick: () => i(e.id),
|
|
1741
1742
|
onFocus: () => p(e.id),
|
|
1742
1743
|
children: /* @__PURE__ */ Z("span", {
|
|
@@ -1787,8 +1788,8 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1787
1788
|
onKeyDown: h,
|
|
1788
1789
|
children: e.map((e) => _(e))
|
|
1789
1790
|
});
|
|
1790
|
-
},
|
|
1791
|
-
let y = _?.typography?.contentClassName ?? "dial-small-text", b = _?.typography?.contentHeadingClassName ?? "dial-small-semi-text", x = _?.typography?.contentFileCountClassName ?? "dial-tiny-text", S = _e(), C = t != null && t !== "", w = n ?? [], T =
|
|
1791
|
+
}, zr = () => void 0, Br = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = zr, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = zr, fileSelectorAriaLabel: u = "Select file", fileCountLabel: d = (e) => `${e} files`, fileLoadingLabel: f = "Loading file", fileUnsupportedLabel: p = "Preview is not supported for this file", filePreview: m, filePreviewContent: h, renderFileTree: g, detailsStyles: _, markdownLabels: v }) => {
|
|
1792
|
+
let y = _?.typography?.contentClassName ?? "dial-small-text", b = _?.typography?.contentHeadingClassName ?? "dial-small-semi-text", x = _?.typography?.contentFileCountClassName ?? "dial-tiny-text", S = _e(), C = t != null && t !== "", w = n ?? [], T = Yn(w) > 1, E = Zn(w, r) ?? "", D = {
|
|
1792
1793
|
nodes: w,
|
|
1793
1794
|
selectedFileId: r,
|
|
1794
1795
|
expandedFolderIds: o,
|
|
@@ -1800,10 +1801,10 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1800
1801
|
ariaLabel: u,
|
|
1801
1802
|
rowNameClassName: y
|
|
1802
1803
|
}, O = a ? {
|
|
1803
|
-
type:
|
|
1804
|
+
type: dn.Text,
|
|
1804
1805
|
text: ""
|
|
1805
1806
|
} : m ?? {
|
|
1806
|
-
type:
|
|
1807
|
+
type: dn.Markdown,
|
|
1807
1808
|
text: e
|
|
1808
1809
|
};
|
|
1809
1810
|
return /* @__PURE__ */ Q("div", {
|
|
@@ -1819,7 +1820,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1819
1820
|
listClassName: "w-[280px] shadow-md",
|
|
1820
1821
|
placement: "bottom-start",
|
|
1821
1822
|
overlayRole: Me.None,
|
|
1822
|
-
renderOverlay: () => g ? g(D) : /* @__PURE__ */ Z(
|
|
1823
|
+
renderOverlay: () => g ? g(D) : /* @__PURE__ */ Z(Rr, {
|
|
1823
1824
|
...D,
|
|
1824
1825
|
colors: {
|
|
1825
1826
|
rowHoverBackground: _?.colors?.contentFileTreeRowHoverBackground,
|
|
@@ -1834,18 +1835,18 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1834
1835
|
onClick: () => l(!c)
|
|
1835
1836
|
})
|
|
1836
1837
|
}), /* @__PURE__ */ Z("span", {
|
|
1837
|
-
className: R("shrink-0", x,
|
|
1838
|
-
children: d(
|
|
1838
|
+
className: R("shrink-0", x, Fr.fileCount),
|
|
1839
|
+
children: d(Yn(w))
|
|
1839
1840
|
})]
|
|
1840
1841
|
}),
|
|
1841
1842
|
C && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("p", {
|
|
1842
1843
|
className: R("m-0", y),
|
|
1843
1844
|
children: t
|
|
1844
|
-
}), /* @__PURE__ */ Z("div", { className: R("shrink-0",
|
|
1845
|
+
}), /* @__PURE__ */ Z("div", { className: R("shrink-0", Fr.divider) })] }),
|
|
1845
1846
|
/* @__PURE__ */ Q("div", {
|
|
1846
1847
|
role: T ? "region" : void 0,
|
|
1847
1848
|
"aria-labelledby": T ? S : void 0,
|
|
1848
|
-
className: R("min-h-0 flex-1 text-start", h == null ? "overflow-auto wrap-break-word" : "overflow-hidden", h == null &&
|
|
1849
|
+
className: R("min-h-0 flex-1 text-start", h == null ? "overflow-auto wrap-break-word" : "overflow-hidden", h == null && Fr.body, h == null && y),
|
|
1849
1850
|
children: [/* @__PURE__ */ Z(Ke, {
|
|
1850
1851
|
visuallyHidden: !0,
|
|
1851
1852
|
as: qe.Span,
|
|
@@ -1853,24 +1854,24 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1853
1854
|
}), (() => {
|
|
1854
1855
|
if (h != null) return h;
|
|
1855
1856
|
switch (O.type) {
|
|
1856
|
-
case
|
|
1857
|
+
case dn.Markdown: return /* @__PURE__ */ Z(se, {
|
|
1857
1858
|
content: O.text,
|
|
1858
1859
|
headingClassName: b,
|
|
1859
1860
|
...v
|
|
1860
1861
|
});
|
|
1861
|
-
case
|
|
1862
|
+
case dn.Text: return /* @__PURE__ */ Z(L, {
|
|
1862
1863
|
language: O.language ?? "",
|
|
1863
1864
|
value: O.text,
|
|
1864
1865
|
copyLabel: v?.codeBlockCopyLabel,
|
|
1865
1866
|
copiedLabel: v?.codeBlockCopiedLabel,
|
|
1866
1867
|
hideDownload: !0
|
|
1867
1868
|
});
|
|
1868
|
-
case
|
|
1869
|
+
case dn.Image: return /* @__PURE__ */ Z("img", {
|
|
1869
1870
|
src: O.url,
|
|
1870
1871
|
alt: E,
|
|
1871
1872
|
className: "max-w-full"
|
|
1872
1873
|
});
|
|
1873
|
-
case
|
|
1874
|
+
case dn.Unsupported: return /* @__PURE__ */ Z("p", {
|
|
1874
1875
|
className: "m-0",
|
|
1875
1876
|
children: p
|
|
1876
1877
|
});
|
|
@@ -1879,12 +1880,12 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1879
1880
|
})
|
|
1880
1881
|
]
|
|
1881
1882
|
});
|
|
1882
|
-
},
|
|
1883
|
+
}, Vr = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), Hr = /* @__PURE__ */ function(e) {
|
|
1883
1884
|
return e.Default = "default", e.Warning = "warning", e.Danger = "danger", e;
|
|
1884
|
-
}({}),
|
|
1885
|
-
let t =
|
|
1885
|
+
}({}), Ur = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), Wr = (e) => Number.isFinite(e) && e > 0 ? e : 1, Gr = ({ used: e, total: t, valueLabel: n }) => n ?? `${Vr.format(e)} / ${Vr.format(t)}`, Kr = ({ total: e }) => Number.isFinite(e) && e > 0, qr = (e) => e.isUnlimited !== !0 && Kr(e), Jr = (e) => Kr(e) ? Math.max(e.used, 0) / e.total : 0, Yr = (e) => {
|
|
1886
|
+
let t = Jr(e);
|
|
1886
1887
|
return t >= 1 ? "danger" : t >= .75 ? "warning" : "default";
|
|
1887
|
-
},
|
|
1888
|
+
}, Xr = {
|
|
1888
1889
|
sectionHeading: "_sectionHeading_1v3yh_2",
|
|
1889
1890
|
label: "_label_1v3yh_6",
|
|
1890
1891
|
valuePrimary: "_valuePrimary_1v3yh_10",
|
|
@@ -1895,90 +1896,90 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1895
1896
|
progressFillDanger: "_progressFillDanger_1v3yh_33",
|
|
1896
1897
|
resetLabel: "_resetLabel_1v3yh_38",
|
|
1897
1898
|
valueDanger: "_valueDanger_1v3yh_43"
|
|
1898
|
-
},
|
|
1899
|
-
let s =
|
|
1900
|
-
value:
|
|
1901
|
-
max:
|
|
1899
|
+
}, Zr = ({ row: e, layout: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => {
|
|
1900
|
+
let s = Gr(e), c = Yr(e), l = /* @__PURE__ */ Z(rt, {
|
|
1901
|
+
value: Ur(e),
|
|
1902
|
+
max: Wr(e.total),
|
|
1902
1903
|
size: J.Small,
|
|
1903
|
-
className: R("h-1! w-full",
|
|
1904
|
+
className: R("h-1! w-full", Xr.progressTrack, c === Hr.Default && Xr.progressFillDefault, c === Hr.Warning && Xr.progressFillWarning, c === Hr.Danger && Xr.progressFillDanger),
|
|
1904
1905
|
"aria-label": e.label,
|
|
1905
1906
|
"aria-valuetext": e.ariaLabel ?? s
|
|
1906
1907
|
}), u = e.captionLabel != null && /* @__PURE__ */ Z("span", {
|
|
1907
|
-
className: R("wrap-break-word", r,
|
|
1908
|
+
className: R("wrap-break-word", r, Xr.label),
|
|
1908
1909
|
children: e.captionLabel
|
|
1909
1910
|
}), d = e.resetLabel != null && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("time", {
|
|
1910
1911
|
dateTime: e.resetIsoValue,
|
|
1911
1912
|
"aria-hidden": e.resetAriaLabel != null || void 0,
|
|
1912
|
-
className: R("wrap-break-word", r,
|
|
1913
|
+
className: R("wrap-break-word", r, Xr.resetLabel),
|
|
1913
1914
|
children: e.resetLabel
|
|
1914
1915
|
}), e.resetAriaLabel != null && /* @__PURE__ */ Z("span", {
|
|
1915
1916
|
className: "sr-only",
|
|
1916
1917
|
children: e.resetAriaLabel
|
|
1917
1918
|
})] });
|
|
1918
|
-
return t ===
|
|
1919
|
-
className: R("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0",
|
|
1919
|
+
return t === ln.Stacked ? /* @__PURE__ */ Q("li", {
|
|
1920
|
+
className: R("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0", Xr.divider),
|
|
1920
1921
|
children: [
|
|
1921
1922
|
/* @__PURE__ */ Q("div", {
|
|
1922
1923
|
className: "flex items-baseline justify-between gap-3",
|
|
1923
1924
|
children: [/* @__PURE__ */ Z("span", {
|
|
1924
|
-
className: R("min-w-0 wrap-break-word", n,
|
|
1925
|
+
className: R("min-w-0 wrap-break-word", n, Xr.valuePrimary),
|
|
1925
1926
|
children: e.label
|
|
1926
1927
|
}), /* @__PURE__ */ Z("span", {
|
|
1927
|
-
className: R("shrink-0", i, c ===
|
|
1928
|
+
className: R("shrink-0", i, c === Hr.Danger ? Xr.valueDanger : Xr.valuePrimary),
|
|
1928
1929
|
children: s
|
|
1929
1930
|
})]
|
|
1930
1931
|
}),
|
|
1931
1932
|
u,
|
|
1932
|
-
|
|
1933
|
-
className: R(o,
|
|
1933
|
+
qr(e) ? l : e.noteLabel != null && /* @__PURE__ */ Z("span", {
|
|
1934
|
+
className: R(o, Xr.label),
|
|
1934
1935
|
children: e.noteLabel
|
|
1935
1936
|
}),
|
|
1936
1937
|
d
|
|
1937
1938
|
]
|
|
1938
1939
|
}) : /* @__PURE__ */ Q("li", {
|
|
1939
|
-
className: R("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0",
|
|
1940
|
+
className: R("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", Xr.divider),
|
|
1940
1941
|
children: [/* @__PURE__ */ Q("div", {
|
|
1941
1942
|
className: "flex min-w-0 flex-1 flex-col",
|
|
1942
1943
|
children: [
|
|
1943
1944
|
/* @__PURE__ */ Z("span", {
|
|
1944
|
-
className: R("wrap-break-word", n,
|
|
1945
|
+
className: R("wrap-break-word", n, Xr.label),
|
|
1945
1946
|
children: e.label
|
|
1946
1947
|
}),
|
|
1947
1948
|
u,
|
|
1948
1949
|
d
|
|
1949
1950
|
]
|
|
1950
|
-
}),
|
|
1951
|
+
}), qr(e) ? /* @__PURE__ */ Q("div", {
|
|
1951
1952
|
className: "flex w-32 shrink-0 flex-col items-end gap-2",
|
|
1952
1953
|
children: [/* @__PURE__ */ Z("div", {
|
|
1953
1954
|
className: R("flex gap-1", i),
|
|
1954
1955
|
children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("span", {
|
|
1955
|
-
className:
|
|
1956
|
+
className: Xr.valuePrimary,
|
|
1956
1957
|
children: e.usedLabel
|
|
1957
1958
|
}), /* @__PURE__ */ Z("span", {
|
|
1958
|
-
className:
|
|
1959
|
+
className: Xr.label,
|
|
1959
1960
|
children: ` / ${e.totalLabel}`
|
|
1960
1961
|
})] }) : /* @__PURE__ */ Z("span", {
|
|
1961
|
-
className:
|
|
1962
|
+
className: Xr.label,
|
|
1962
1963
|
children: s
|
|
1963
1964
|
})
|
|
1964
1965
|
}), l]
|
|
1965
1966
|
}) : /* @__PURE__ */ Q("div", {
|
|
1966
1967
|
className: "flex shrink-0 flex-col items-end",
|
|
1967
1968
|
children: [/* @__PURE__ */ Z("span", {
|
|
1968
|
-
className: R(a,
|
|
1969
|
+
className: R(a, Xr.valuePrimary),
|
|
1969
1970
|
children: s
|
|
1970
1971
|
}), e.noteLabel != null && /* @__PURE__ */ Z("span", {
|
|
1971
|
-
className: R(o,
|
|
1972
|
+
className: R(o, Xr.label),
|
|
1972
1973
|
children: e.noteLabel
|
|
1973
1974
|
})]
|
|
1974
1975
|
})]
|
|
1975
1976
|
});
|
|
1976
|
-
},
|
|
1977
|
-
className: R("mt-0 mb-3", t,
|
|
1977
|
+
}, Qr = ({ group: e, sectionClassName: t, layout: n, labelClassName: r, captionClassName: i, valueClassName: a, noteValueClassName: o, noteClassName: s }) => /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
|
|
1978
|
+
className: R("mt-0 mb-3", t, Xr.sectionHeading),
|
|
1978
1979
|
children: e.label
|
|
1979
1980
|
}), /* @__PURE__ */ Z("ul", {
|
|
1980
1981
|
className: "m-0 flex list-none flex-col p-0",
|
|
1981
|
-
children: e.rows.map((e) => /* @__PURE__ */ Z(
|
|
1982
|
+
children: e.rows.map((e) => /* @__PURE__ */ Z(Zr, {
|
|
1982
1983
|
row: e,
|
|
1983
1984
|
layout: n,
|
|
1984
1985
|
labelClassName: r,
|
|
@@ -1987,7 +1988,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
1987
1988
|
noteValueClassName: o,
|
|
1988
1989
|
noteClassName: s
|
|
1989
1990
|
}, e.label))
|
|
1990
|
-
})] }),
|
|
1991
|
+
})] }), $r = ({ limits: e, layout: t = ln.Inline, labelClassName: n = "dial-small-semi-text", captionClassName: r = "dial-caption-text", valueClassName: i = "dial-tiny-text", noteValueClassName: a = "dial-tiny-semi-text", noteClassName: o = "dial-caption-text", sectionClassName: s = "dial-caption-text", footerClassName: c = "dial-caption-text", footerNote: l, colors: u }) => {
|
|
1991
1992
|
let d = e?.groups.filter((e) => e.rows.length > 0);
|
|
1992
1993
|
if (d == null || d.length === 0) return null;
|
|
1993
1994
|
let f = de({
|
|
@@ -2004,7 +2005,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2004
2005
|
return /* @__PURE__ */ Q("div", {
|
|
2005
2006
|
className: "flex flex-col gap-6",
|
|
2006
2007
|
style: f,
|
|
2007
|
-
children: [d.map((e) => /* @__PURE__ */ Z(
|
|
2008
|
+
children: [d.map((e) => /* @__PURE__ */ Z(Qr, {
|
|
2008
2009
|
group: e,
|
|
2009
2010
|
layout: t,
|
|
2010
2011
|
sectionClassName: s,
|
|
@@ -2014,17 +2015,17 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2014
2015
|
noteValueClassName: a,
|
|
2015
2016
|
noteClassName: o
|
|
2016
2017
|
}, e.label)), l != null && /* @__PURE__ */ Z("p", {
|
|
2017
|
-
className: R("m-0 border-t pt-4", c,
|
|
2018
|
+
className: R("m-0 border-t pt-4", c, Xr.divider, Xr.label),
|
|
2018
2019
|
children: l
|
|
2019
2020
|
})]
|
|
2020
2021
|
});
|
|
2021
|
-
},
|
|
2022
|
+
}, ei = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o, sectionContainerClassName: s = "px-6" }) => e ? /* @__PURE__ */ Z("div", {
|
|
2022
2023
|
className: "flex flex-col gap-4",
|
|
2023
2024
|
children: e.map((e, c) => /* @__PURE__ */ Q("div", {
|
|
2024
2025
|
className: "flex flex-col gap-4",
|
|
2025
|
-
children: [c > 0 && /* @__PURE__ */ Z("div", { className: R("shrink-0 border-b",
|
|
2026
|
+
children: [c > 0 && /* @__PURE__ */ Z("div", { className: R("shrink-0 border-b", Sr.divider) }), /* @__PURE__ */ Z("div", {
|
|
2026
2027
|
className: s,
|
|
2027
|
-
children: /* @__PURE__ */ Z(
|
|
2028
|
+
children: /* @__PURE__ */ Z(er, {
|
|
2028
2029
|
sectionLabel: e.title,
|
|
2029
2030
|
values: e.specs,
|
|
2030
2031
|
sectionClassName: t,
|
|
@@ -2036,7 +2037,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2036
2037
|
})
|
|
2037
2038
|
})]
|
|
2038
2039
|
}, c))
|
|
2039
|
-
}) : null,
|
|
2040
|
+
}) : null, ti = ({ pricing: e, pricesSectionLabel: t = "Token pricing", characterPricesSectionLabel: n = "Character pricing", limitsSectionLabel: r = "Usage limits", labelClassName: i = "dial-small-semi-text", valueClassName: a = "dial-small-text", sectionClassName: o = "dial-caption-text" }) => {
|
|
2040
2041
|
if (e == null) return null;
|
|
2041
2042
|
let s = e.prices?.map((e) => ({
|
|
2042
2043
|
label: e.label,
|
|
@@ -2047,13 +2048,13 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2047
2048
|
}));
|
|
2048
2049
|
return /* @__PURE__ */ Q("div", {
|
|
2049
2050
|
className: "flex flex-col gap-4",
|
|
2050
|
-
children: [/* @__PURE__ */ Z(
|
|
2051
|
-
sectionLabel: e.unit ===
|
|
2051
|
+
children: [/* @__PURE__ */ Z(er, {
|
|
2052
|
+
sectionLabel: e.unit === an.Character ? n : t,
|
|
2052
2053
|
values: s ?? [],
|
|
2053
2054
|
labelClassName: i,
|
|
2054
2055
|
valueClassName: a,
|
|
2055
2056
|
sectionClassName: o
|
|
2056
|
-
}), /* @__PURE__ */ Z(
|
|
2057
|
+
}), /* @__PURE__ */ Z(er, {
|
|
2057
2058
|
sectionLabel: r,
|
|
2058
2059
|
values: c ?? [],
|
|
2059
2060
|
labelClassName: i,
|
|
@@ -2061,29 +2062,29 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2061
2062
|
sectionClassName: o
|
|
2062
2063
|
})]
|
|
2063
2064
|
});
|
|
2064
|
-
},
|
|
2065
|
+
}, ni = {
|
|
2065
2066
|
container: "_container_ddi3i_1",
|
|
2066
2067
|
header: "_header_ddi3i_5",
|
|
2067
2068
|
cell: "_cell_ddi3i_10",
|
|
2068
2069
|
evenRow: "_evenRow_ddi3i_17"
|
|
2069
|
-
},
|
|
2070
|
+
}, ri = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
|
|
2070
2071
|
let a = n ?? `repeat(${e.length}, 1fr)`;
|
|
2071
2072
|
return /* @__PURE__ */ Q("div", {
|
|
2072
|
-
className: R(
|
|
2073
|
+
className: R(ni.container, "grid overflow-hidden rounded-md"),
|
|
2073
2074
|
style: { gridTemplateColumns: a },
|
|
2074
2075
|
children: [e.map((e) => /* @__PURE__ */ Z("div", {
|
|
2075
|
-
className: R("px-2 py-1 text-start", r,
|
|
2076
|
+
className: R("px-2 py-1 text-start", r, ni.header),
|
|
2076
2077
|
children: e
|
|
2077
2078
|
}, e)), t.map((e, t) => /* @__PURE__ */ Z(me, { children: e.map((e, n) => /* @__PURE__ */ Z("div", {
|
|
2078
|
-
className: R("px-2 py-1.5", i,
|
|
2079
|
+
className: R("px-2 py-1.5", i, ni.cell, t % 2 == 1 ? ni.evenRow : void 0),
|
|
2079
2080
|
children: e
|
|
2080
2081
|
}, n)) }, t))]
|
|
2081
2082
|
});
|
|
2082
|
-
},
|
|
2083
|
+
}, ii = {
|
|
2083
2084
|
divider: "_divider_vloer_1",
|
|
2084
2085
|
count: "_count_vloer_5",
|
|
2085
2086
|
description: "_description_vloer_9"
|
|
2086
|
-
},
|
|
2087
|
+
}, ai = {
|
|
2087
2088
|
inputName: "Name",
|
|
2088
2089
|
inputType: "Type",
|
|
2089
2090
|
inputRequired: "Required",
|
|
@@ -2093,13 +2094,13 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2093
2094
|
searchClearLabel: "Clear search",
|
|
2094
2095
|
toolCount: (e) => `${e} tools`,
|
|
2095
2096
|
noResults: "No results found"
|
|
2096
|
-
},
|
|
2097
|
+
}, oi = 6, si = (e, t) => e.name.toLowerCase().includes(t) || (e.description?.toLowerCase().includes(t) ?? !1), ci = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text", countClassName: a = "dial-tiny-text", codeClassName: o = "dial-tiny-code-text", labels: s }) => {
|
|
2097
2098
|
let c = {
|
|
2098
|
-
...
|
|
2099
|
+
...ai,
|
|
2099
2100
|
...s
|
|
2100
2101
|
}, [l, u] = U(""), d = l.trim(), f = V(() => {
|
|
2101
2102
|
let t = l.trim().toLowerCase(), n = e?.tools ?? [];
|
|
2102
|
-
return t === "" ? n : n.filter((e) =>
|
|
2103
|
+
return t === "" ? n : n.filter((e) => si(e, t));
|
|
2103
2104
|
}, [e, l]);
|
|
2104
2105
|
return e == null ? null : /* @__PURE__ */ Q("div", {
|
|
2105
2106
|
className: "flex flex-col",
|
|
@@ -2114,13 +2115,13 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2114
2115
|
onChange: (e) => u(e ?? "")
|
|
2115
2116
|
}), /* @__PURE__ */ Z(Ke, {
|
|
2116
2117
|
as: qe.Span,
|
|
2117
|
-
className: R(a,
|
|
2118
|
+
className: R(a, ii.count),
|
|
2118
2119
|
children: c.toolCount(f.length)
|
|
2119
2120
|
})]
|
|
2120
2121
|
}),
|
|
2121
2122
|
f.length === 0 && l.trim() !== "" && /* @__PURE__ */ Z(ce, { label: c.noResults }),
|
|
2122
2123
|
f.map((e, a) => /* @__PURE__ */ Q("div", {
|
|
2123
|
-
className: R("flex flex-col gap-3 px-[22px] py-4", a > 0 ?
|
|
2124
|
+
className: R("flex flex-col gap-3 px-[22px] py-4", a > 0 ? ii.divider : void 0),
|
|
2124
2125
|
children: [
|
|
2125
2126
|
/* @__PURE__ */ Q("div", {
|
|
2126
2127
|
className: "flex flex-col gap-1",
|
|
@@ -2131,15 +2132,15 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2131
2132
|
query: d
|
|
2132
2133
|
})
|
|
2133
2134
|
}), e.description != null && /* @__PURE__ */ Z("p", {
|
|
2134
|
-
className: R("m-0", n,
|
|
2135
|
+
className: R("m-0", n, ii.description),
|
|
2135
2136
|
children: /* @__PURE__ */ Z(Be, {
|
|
2136
2137
|
text: e.description,
|
|
2137
2138
|
query: d,
|
|
2138
|
-
maxLines:
|
|
2139
|
+
maxLines: oi
|
|
2139
2140
|
})
|
|
2140
2141
|
})]
|
|
2141
2142
|
}),
|
|
2142
|
-
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ Z(
|
|
2143
|
+
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ Z(ri, {
|
|
2143
2144
|
columns: [
|
|
2144
2145
|
c.inputName,
|
|
2145
2146
|
c.inputType,
|
|
@@ -2160,7 +2161,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2160
2161
|
headingClassName: r,
|
|
2161
2162
|
cellClassName: i
|
|
2162
2163
|
}),
|
|
2163
|
-
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ Z(
|
|
2164
|
+
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ Z(ri, {
|
|
2164
2165
|
columns: [c.annotationKey, c.annotationValue],
|
|
2165
2166
|
rows: e.annotations.map((e) => [/* @__PURE__ */ Z("code", {
|
|
2166
2167
|
className: R("border-none bg-transparent p-0 text-inherit", o),
|
|
@@ -2173,23 +2174,23 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2173
2174
|
}, e.name))
|
|
2174
2175
|
]
|
|
2175
2176
|
});
|
|
2176
|
-
},
|
|
2177
|
+
}, li = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), ui = !1, di = async () => void 0, fi = [], pi = [], mi = [
|
|
2177
2178
|
"All shared configurations will be lost",
|
|
2178
2179
|
"Users who rely on it will lose access",
|
|
2179
2180
|
"Cannot be undone"
|
|
2180
|
-
],
|
|
2181
|
+
], hi = [
|
|
2181
2182
|
"You will lose access to this item",
|
|
2182
2183
|
"Other people keep their access",
|
|
2183
2184
|
"You will need a new invitation to get it back"
|
|
2184
|
-
],
|
|
2185
|
+
], gi = [
|
|
2185
2186
|
"Everyone loses access to the published copy",
|
|
2186
2187
|
"Your own copy is not deleted",
|
|
2187
2188
|
"You can publish it again later"
|
|
2188
|
-
],
|
|
2189
|
+
], _i = [
|
|
2189
2190
|
"Everyone you shared it with loses access",
|
|
2190
2191
|
"Existing share links stop working",
|
|
2191
2192
|
"You keep full access — nothing is deleted"
|
|
2192
|
-
],
|
|
2193
|
+
], vi = (e) => e === s.ApiKey ? "Toolset API keys" : "Toolset credentials", yi = (e) => e === i.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", bi = /* @__PURE__ */ new Set([$.Delete, $.Unshare]), xi = ({ item: e, isOpen: t, isStarred: r = !1, isDetailsLoading: a = !1, isReadonly: o = !1, onClose: s, onToggleFavorite: c, isFavoriteVisible: l, onUseInChat: u, isPrimaryActionVisible: d, onShare: f, isPublishVisible: p, isPublishPrimary: m, getPublishHistory: h, publishFolderItems: g = fi, publishExpandedPaths: _, onPublishExpandedPathsChange: v, publishLoadingPaths: y, hasPublishWriteAccess: b, publishDefaultAuthor: S, onPublish: C, onPublishSuccess: T, onPublishError: D, onCreatePublishFolder: A, publishLabels: j, ruleSourceOptions: M = pi, onFetchExistingRules: N, shareOverlay: I, isShareVisible: te, isSharePrimary: ne, onEdit: re, onDownload: ie, isDownloadVisible: ae, isDownloadPrimary: L, onLoadContentFile: oe, onLoadContentFilePreview: se, renderContentFilePreview: le, renderContentFileTree: ue, renderCredentials: fe, onDelete: pe, onUnshare: me, isUnshareVisible: he, onRevokeShare: ge, onFetchRecipientsCount: _e, isRevokeShareVisible: ve, onUnpublish: ye, isUnpublishVisible: be, onLogin: xe, onLogout: Se, texts: W, styles: Ce, limitsFooterNote: we }) => {
|
|
2193
2194
|
let { subViewTitleClassName: Te = "dial-body-semi-text", overviewSectionClassName: Ee = "dial-caption-text", overviewLabelClassName: De = "dial-small-semi-text", overviewValueClassName: Oe = "dial-small-text", overviewValueTrueClassName: G = "dial-small-text", confirmMessageClassName: K = "dial-small-text" } = Ce?.typography ?? {}, q = Ce?.colors, Ae = de({
|
|
2194
2195
|
"--cat-details-backdrop": q?.backdrop,
|
|
2195
2196
|
"--cat-details-bg": q?.background,
|
|
@@ -2228,11 +2229,11 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2228
2229
|
"--cat-cred-card-title-text": q?.credentialsCardTitleText,
|
|
2229
2230
|
"--cat-cred-card-description-text": q?.credentialsCardDescriptionText
|
|
2230
2231
|
}), [je, Me] = U(r), [J, Ne] = U(""), [Pe, Fe] = U(!1), [Ie, Le] = U([]), [Re, ze] = U(!1), Be = H(null), Ve = e.details?.promptContent, He = Ve?.selectedFileId, [Ue, We] = U(null), [Ge, Je] = U(!1), [Ye, Xe] = U(/* @__PURE__ */ new Set()), [Ze, Qe] = U(!1), $e = H(null), et = H(0), tt = z((e) => {
|
|
2231
|
-
let t = $e.current, n = e?.preview?.type ===
|
|
2232
|
+
let t = $e.current, n = e?.preview?.type === dn.Image ? e.preview.url : null;
|
|
2232
2233
|
t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), $e.current = n, We(e);
|
|
2233
2234
|
}, []);
|
|
2234
2235
|
B(() => {
|
|
2235
|
-
et.current += 1, tt(null), Je(!1), Xe(
|
|
2236
|
+
et.current += 1, tt(null), Je(!1), Xe(Xn(Ve?.files ?? [])), Qe(!1);
|
|
2236
2237
|
}, [e.id, He]), B(() => () => {
|
|
2237
2238
|
let e = $e.current;
|
|
2238
2239
|
e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
|
|
@@ -2262,11 +2263,11 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2262
2263
|
}), Je(!0);
|
|
2263
2264
|
try {
|
|
2264
2265
|
let n = se == null ? await oe?.(e).then((e) => e == null ? void 0 : {
|
|
2265
|
-
type:
|
|
2266
|
+
type: dn.Markdown,
|
|
2266
2267
|
text: e
|
|
2267
2268
|
}) : await se(e);
|
|
2268
2269
|
if (et.current !== t) {
|
|
2269
|
-
n?.type ===
|
|
2270
|
+
n?.type === dn.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
|
|
2270
2271
|
return;
|
|
2271
2272
|
}
|
|
2272
2273
|
tt({
|
|
@@ -2289,9 +2290,9 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2289
2290
|
le,
|
|
2290
2291
|
tt
|
|
2291
2292
|
]), at = Ue?.id ?? He, ot = () => Ue == null ? null : Ue.preview == null ? {
|
|
2292
|
-
type:
|
|
2293
|
+
type: dn.Text,
|
|
2293
2294
|
text: W?.contentFileErrorLabel ?? "Failed to load this file."
|
|
2294
|
-
} : Ue.preview, lt = Ue != null && le != null ? le(Ue.id,
|
|
2295
|
+
} : Ue.preview, lt = Ue != null && le != null ? le(Ue.id, Zn(Ve?.files ?? [], Ue.id) ?? "") : void 0, ut = z(() => {
|
|
2295
2296
|
if (!h || Be.current === e.id) return;
|
|
2296
2297
|
let t = e.id;
|
|
2297
2298
|
Be.current = t, (async () => {
|
|
@@ -2310,24 +2311,24 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2310
2311
|
}, [Pe, ut]);
|
|
2311
2312
|
let ft = z((e, t) => {
|
|
2312
2313
|
Be.current = null, ze(!1), ut(), T?.(e, t);
|
|
2313
|
-
}, [ut, T]), Y =
|
|
2314
|
+
}, [ut, T]), Y = Xt({
|
|
2314
2315
|
item: e,
|
|
2315
2316
|
history: Ie,
|
|
2316
2317
|
folderItems: g,
|
|
2317
2318
|
hasWriteAccess: b,
|
|
2318
2319
|
defaultAuthor: S,
|
|
2319
2320
|
onCreateFolder: A,
|
|
2320
|
-
onPublish: C ??
|
|
2321
|
+
onPublish: C ?? di,
|
|
2321
2322
|
onPublishSuccess: ft,
|
|
2322
2323
|
onPublishError: D,
|
|
2323
2324
|
onFetchExistingRules: N
|
|
2324
|
-
}), pt = e.type === P.Toolset && O(e.credentials), mt = V(() =>
|
|
2325
|
+
}), pt = e.type === P.Toolset && O(e.credentials), mt = V(() => Yt({
|
|
2325
2326
|
hasSelectedFolder: Y.selectedFolderPath != null,
|
|
2326
2327
|
hasExistingPublicationInFolder: Y.hasExistingPublicationInFolder,
|
|
2327
2328
|
hasWriteAccess: Y.hasWriteAccess,
|
|
2328
2329
|
isSubmitting: Y.isSubmitting,
|
|
2329
2330
|
hasSubmitError: Y.hasSubmitError,
|
|
2330
|
-
allowReplace:
|
|
2331
|
+
allowReplace: ui
|
|
2331
2332
|
}), [
|
|
2332
2333
|
Y.selectedFolderPath,
|
|
2333
2334
|
Y.hasExistingPublicationInFolder,
|
|
@@ -2389,12 +2390,12 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2389
2390
|
xt != null && await Se?.(e, { level: xt });
|
|
2390
2391
|
break;
|
|
2391
2392
|
case $.Unpublish: {
|
|
2392
|
-
let t =
|
|
2393
|
+
let t = li(Pt, Tt);
|
|
2393
2394
|
t != null && await ye?.(e, t.segments);
|
|
2394
2395
|
break;
|
|
2395
2396
|
}
|
|
2396
2397
|
}
|
|
2397
|
-
vt(null), St(null), wt(null), Et(null),
|
|
2398
|
+
vt(null), St(null), wt(null), Et(null), bi.has(_t) && s();
|
|
2398
2399
|
} catch {
|
|
2399
2400
|
vt(null), St(null), wt(null), Et(null);
|
|
2400
2401
|
} finally {
|
|
@@ -2429,16 +2430,20 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2429
2430
|
]);
|
|
2430
2431
|
let Vt = z(() => Fe(!0), []), Ht = z(() => {
|
|
2431
2432
|
Fe(!1), Y.reset();
|
|
2432
|
-
}, [Y]), Ut =
|
|
2433
|
+
}, [Y]), Ut = Zt({
|
|
2434
|
+
isOpen: Pe,
|
|
2435
|
+
selectedFolderPath: Y.selectedFolderPath,
|
|
2436
|
+
onSelectedFolderPathChange: Y.setSelectedFolderPath
|
|
2437
|
+
}), Wt = Ut.view === Jt.ChangeFolder, Gt = z(async () => {
|
|
2433
2438
|
await Y.handleSubmit() && Ht();
|
|
2434
|
-
}, [Y, Ht]),
|
|
2439
|
+
}, [Y, Ht]), Qt = z(() => {
|
|
2435
2440
|
let t = !je;
|
|
2436
2441
|
Me(t), c?.(e.id, t);
|
|
2437
2442
|
}, [
|
|
2438
2443
|
je,
|
|
2439
2444
|
e.id,
|
|
2440
2445
|
c
|
|
2441
|
-
]),
|
|
2446
|
+
]), $t = V(() => {
|
|
2442
2447
|
let t = {
|
|
2443
2448
|
[n.About]: W?.tabAboutLabel ?? "About",
|
|
2444
2449
|
[n.Content]: W?.tabContentLabel ?? "Details",
|
|
@@ -2452,22 +2457,22 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2452
2457
|
id: e,
|
|
2453
2458
|
label: t[e]
|
|
2454
2459
|
}));
|
|
2455
|
-
}, [e, W]),
|
|
2460
|
+
}, [e, W]), en = H(null);
|
|
2456
2461
|
B(() => {
|
|
2457
|
-
let t =
|
|
2458
|
-
|
|
2462
|
+
let t = en.current !== e.id;
|
|
2463
|
+
en.current = e.id, (t || !$t.some((e) => e.id === J)) && Ne($t[0]?.id ?? "");
|
|
2459
2464
|
}, [
|
|
2460
2465
|
e.id,
|
|
2461
|
-
|
|
2466
|
+
$t,
|
|
2462
2467
|
J
|
|
2463
2468
|
]);
|
|
2464
|
-
let
|
|
2469
|
+
let tn = V(() => bn(W), [W]), nn = V(() => {
|
|
2465
2470
|
let e = {};
|
|
2466
2471
|
return W?.toolsSearchPlaceholder != null && (e.searchPlaceholder = W.toolsSearchPlaceholder), W?.toolsSearchClearLabel != null && (e.searchClearLabel = W.toolsSearchClearLabel), W?.toolsCountLabel != null && (e.toolCount = W.toolsCountLabel), W?.toolsNoResultsLabel != null && (e.noResults = W.toolsNoResultsLabel), e;
|
|
2467
|
-
}, [W]),
|
|
2472
|
+
}, [W]), rn = W?.emptyTabLabel ?? "No data", an = !e.description?.trim() && (e.topics?.length ?? 0) === 0, on = !e.details?.overview?.sections?.length, sn = /* @__PURE__ */ Z("div", {
|
|
2468
2473
|
className: "flex size-full items-center justify-center py-6",
|
|
2469
|
-
children: /* @__PURE__ */ Z(ce, { label:
|
|
2470
|
-
}),
|
|
2474
|
+
children: /* @__PURE__ */ Z(ce, { label: rn })
|
|
2475
|
+
}), cn = W?.overviewYesLabel ?? "Yes", ln = W?.overviewNoLabel ?? "No", un = W?.ariaLabel ?? "Item details", fn = W?.closeAriaLabel ?? "Close", pn = je ? W?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : W?.addToFavoritesAriaLabel ?? "Add to favorites", mn = W?.publishTitle ?? "Publish", hn = W?.backToDetailsAriaLabel ?? "Back", gn = W?.cancelLabel ?? "Cancel", _n = V(() => {
|
|
2471
2476
|
switch (_t) {
|
|
2472
2477
|
case $.Delete: {
|
|
2473
2478
|
let t = W?.deleteActionLabel ?? "Delete";
|
|
@@ -2478,7 +2483,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2478
2483
|
/* @__PURE__ */ Z("strong", { children: e.name }),
|
|
2479
2484
|
"? This action is permanent and cannot be undone."
|
|
2480
2485
|
] }),
|
|
2481
|
-
consequences: W?.deleteConfirmConsequences ??
|
|
2486
|
+
consequences: W?.deleteConfirmConsequences ?? mi,
|
|
2482
2487
|
confirmLabel: t,
|
|
2483
2488
|
loadingStatusLabel: W?.deletingStatusLabel ?? "Deleting",
|
|
2484
2489
|
variant: ke.Danger
|
|
@@ -2493,7 +2498,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2493
2498
|
/* @__PURE__ */ Z("strong", { children: e.name }),
|
|
2494
2499
|
" from your list? You'll need a new invitation to access it again."
|
|
2495
2500
|
] }),
|
|
2496
|
-
consequences: W?.unshareConfirmConsequences ??
|
|
2501
|
+
consequences: W?.unshareConfirmConsequences ?? hi,
|
|
2497
2502
|
confirmLabel: t,
|
|
2498
2503
|
loadingStatusLabel: W?.unsharingStatusLabel ?? "Removing",
|
|
2499
2504
|
variant: ke.Info
|
|
@@ -2508,7 +2513,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2508
2513
|
/* @__PURE__ */ Z("strong", { children: e.name }),
|
|
2509
2514
|
"? Anyone you shared it with will lose access."
|
|
2510
2515
|
] }),
|
|
2511
|
-
consequences: W?.revokeShareConfirmConsequences ??
|
|
2516
|
+
consequences: W?.revokeShareConfirmConsequences ?? _i,
|
|
2512
2517
|
confirmLabel: t,
|
|
2513
2518
|
loadingStatusLabel: W?.revokingShareStatusLabel ?? "Revoking access",
|
|
2514
2519
|
variant: ke.Danger
|
|
@@ -2529,7 +2534,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2529
2534
|
return {
|
|
2530
2535
|
title: W?.unpublishConfirmTitle ?? t,
|
|
2531
2536
|
message: n ? i : a,
|
|
2532
|
-
consequences: W?.unpublishConfirmConsequences ??
|
|
2537
|
+
consequences: W?.unpublishConfirmConsequences ?? gi,
|
|
2533
2538
|
confirmLabel: t,
|
|
2534
2539
|
loadingStatusLabel: W?.unpublishingStatusLabel ?? "Requesting unpublish",
|
|
2535
2540
|
variant: ke.Danger
|
|
@@ -2550,7 +2555,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2550
2555
|
let e = W?.deleteActionLabel ?? "Delete", t = xt ?? i.User;
|
|
2551
2556
|
return {
|
|
2552
2557
|
title: e,
|
|
2553
|
-
message: (W?.deleteApiKeyConfirmMessage ??
|
|
2558
|
+
message: (W?.deleteApiKeyConfirmMessage ?? yi)(t),
|
|
2554
2559
|
consequences: void 0,
|
|
2555
2560
|
confirmLabel: e,
|
|
2556
2561
|
loadingStatusLabel: W?.deletingStatusLabel ?? "Deleting",
|
|
@@ -2567,50 +2572,50 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2567
2572
|
W,
|
|
2568
2573
|
Pt,
|
|
2569
2574
|
It
|
|
2570
|
-
]),
|
|
2571
|
-
title:
|
|
2575
|
+
]), vn = _n != null, yn = _t === $.Unpublish && li(Pt, Tt) == null, xn = vn || Pe || ht, Sn = e.credentials == null ? "" : (W?.credentialsManagementTitle ?? vi)(e.credentials.authenticationType), Cn = vn ? {
|
|
2576
|
+
title: _n.title,
|
|
2572
2577
|
isBackDisabled: yt,
|
|
2573
2578
|
onBack: zt
|
|
2574
2579
|
} : Pe ? {
|
|
2575
|
-
title:
|
|
2580
|
+
title: Wt ? W?.publishChangeFolderTitle ?? "Change folder" : mn,
|
|
2576
2581
|
isBackDisabled: Y.isSubmitting,
|
|
2577
|
-
onBack: Ht
|
|
2582
|
+
onBack: Wt ? Ut.backToMain : Ht
|
|
2578
2583
|
} : ht ? {
|
|
2579
|
-
title:
|
|
2584
|
+
title: Sn,
|
|
2580
2585
|
isBackDisabled: !1,
|
|
2581
2586
|
onBack: kt
|
|
2582
|
-
} : null,
|
|
2587
|
+
} : null, wn = Cn?.title ?? un;
|
|
2583
2588
|
return /* @__PURE__ */ Q(st, {
|
|
2584
2589
|
open: t,
|
|
2585
2590
|
onClose: s,
|
|
2586
|
-
header:
|
|
2587
|
-
ariaLabel:
|
|
2588
|
-
onBack:
|
|
2589
|
-
backAriaLabel:
|
|
2590
|
-
backDisabled:
|
|
2591
|
-
hideClose:
|
|
2592
|
-
closeAriaLabel:
|
|
2593
|
-
headerActions:
|
|
2591
|
+
header: Cn?.title,
|
|
2592
|
+
ariaLabel: wn,
|
|
2593
|
+
onBack: Cn?.onBack,
|
|
2594
|
+
backAriaLabel: hn,
|
|
2595
|
+
backDisabled: Cn?.isBackDisabled,
|
|
2596
|
+
hideClose: Cn != null,
|
|
2597
|
+
closeAriaLabel: fn,
|
|
2598
|
+
headerActions: Cn == null && !o && l?.(e) !== !1 ? /* @__PURE__ */ Z(Ln, {
|
|
2594
2599
|
isStarred: je,
|
|
2595
|
-
ariaLabel:
|
|
2596
|
-
onClick:
|
|
2600
|
+
ariaLabel: pn,
|
|
2601
|
+
onClick: Qt
|
|
2597
2602
|
}) : void 0,
|
|
2598
2603
|
style: Ae,
|
|
2599
2604
|
overlayStyle: Ae,
|
|
2600
|
-
className: R(
|
|
2601
|
-
overlayClassName:
|
|
2602
|
-
headerClassName:
|
|
2603
|
-
titleClassName: R(Te,
|
|
2605
|
+
className: R(Sr.panel, "tablet:w-[540px]! tablet:max-w-[calc(100%-32px)]!"),
|
|
2606
|
+
overlayClassName: Sr.backdrop,
|
|
2607
|
+
headerClassName: Sr.divider,
|
|
2608
|
+
titleClassName: R(Te, Sr.publishTitle),
|
|
2604
2609
|
bodyClassName: "flex flex-col overflow-hidden",
|
|
2605
2610
|
children: [
|
|
2606
2611
|
/* @__PURE__ */ Q("div", {
|
|
2607
|
-
className: R("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto",
|
|
2612
|
+
className: R("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", Sr.content),
|
|
2608
2613
|
children: [
|
|
2609
|
-
|
|
2614
|
+
vn && /* @__PURE__ */ Z(ee, {
|
|
2610
2615
|
item: e,
|
|
2611
|
-
message:
|
|
2612
|
-
consequences:
|
|
2613
|
-
variant:
|
|
2616
|
+
message: _n.message,
|
|
2617
|
+
consequences: _n.consequences,
|
|
2618
|
+
variant: _n.cardVariant ?? _n.variant,
|
|
2614
2619
|
messageClassName: K,
|
|
2615
2620
|
styles: { colors: {
|
|
2616
2621
|
messageText: q?.confirmMessageText,
|
|
@@ -2630,7 +2635,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2630
2635
|
radioClassName: K
|
|
2631
2636
|
})
|
|
2632
2637
|
}),
|
|
2633
|
-
!
|
|
2638
|
+
!vn && !Pe && ht && /* @__PURE__ */ Z(xr, {
|
|
2634
2639
|
item: e,
|
|
2635
2640
|
onLogin: xe,
|
|
2636
2641
|
onRequestLogout: jt,
|
|
@@ -2638,7 +2643,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2638
2643
|
texts: W,
|
|
2639
2644
|
detailsStyles: Ce
|
|
2640
2645
|
}),
|
|
2641
|
-
!
|
|
2646
|
+
!vn && Pe && /* @__PURE__ */ Z("div", {
|
|
2642
2647
|
className: "p-4 desktop:p-[22px]",
|
|
2643
2648
|
children: /* @__PURE__ */ Z(qt, {
|
|
2644
2649
|
resource: {
|
|
@@ -2647,9 +2652,12 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2647
2652
|
type: e.type,
|
|
2648
2653
|
iconUrl: e.iconUrl
|
|
2649
2654
|
},
|
|
2655
|
+
view: Ut.view,
|
|
2656
|
+
onChangeFolderClick: Ut.openFolderView,
|
|
2650
2657
|
folderItems: Y.folderItems,
|
|
2651
2658
|
selectedFolderPath: Y.selectedFolderPath,
|
|
2652
|
-
|
|
2659
|
+
pendingFolderPath: Ut.pendingFolderPath,
|
|
2660
|
+
onPendingFolderPathChange: Ut.setPendingFolderPath,
|
|
2653
2661
|
onCreateFolder: Y.handleCreateFolder,
|
|
2654
2662
|
expandedPaths: _,
|
|
2655
2663
|
onExpandedPathsChange: v,
|
|
@@ -2658,7 +2666,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2658
2666
|
hasWriteAccess: Y.hasWriteAccess,
|
|
2659
2667
|
isSubmitting: Y.isSubmitting,
|
|
2660
2668
|
hasSubmitError: Y.hasSubmitError,
|
|
2661
|
-
allowReplace:
|
|
2669
|
+
allowReplace: ui,
|
|
2662
2670
|
author: Y.author,
|
|
2663
2671
|
onAuthorChange: Y.setAuthor,
|
|
2664
2672
|
publishCredentials: Y.publishCredentials,
|
|
@@ -2668,16 +2676,11 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2668
2676
|
ruleSourceOptions: M,
|
|
2669
2677
|
isRulesLoading: Y.isRulesLoading,
|
|
2670
2678
|
hasRulesLoadError: Y.hasRulesLoadError,
|
|
2671
|
-
labels: j
|
|
2672
|
-
styles: { colors: {
|
|
2673
|
-
summaryVersionTagBorder: q?.versionTagBorder,
|
|
2674
|
-
summaryVersionTagBackground: q?.versionTagBackground,
|
|
2675
|
-
summaryVersionTagText: q?.versionTagText
|
|
2676
|
-
} }
|
|
2679
|
+
labels: j
|
|
2677
2680
|
})
|
|
2678
2681
|
}),
|
|
2679
|
-
!
|
|
2680
|
-
/* @__PURE__ */ Z(
|
|
2682
|
+
!xn && /* @__PURE__ */ Q(X, { children: [
|
|
2683
|
+
/* @__PURE__ */ Z(Nr, {
|
|
2681
2684
|
item: e,
|
|
2682
2685
|
onUseInChat: u,
|
|
2683
2686
|
isPrimaryActionVisible: d,
|
|
@@ -2715,7 +2718,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2715
2718
|
let t = E(e.credentials);
|
|
2716
2719
|
return t != null && /* @__PURE__ */ Z("div", {
|
|
2717
2720
|
className: "px-6",
|
|
2718
|
-
children: /* @__PURE__ */ Z(
|
|
2721
|
+
children: /* @__PURE__ */ Z(_r, {
|
|
2719
2722
|
state: t,
|
|
2720
2723
|
authenticationType: e.credentials.authenticationType,
|
|
2721
2724
|
texts: W
|
|
@@ -2727,10 +2730,10 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2727
2730
|
className: "flex items-center px-6",
|
|
2728
2731
|
children: [
|
|
2729
2732
|
/* @__PURE__ */ Z(dt, {
|
|
2730
|
-
tabs:
|
|
2733
|
+
tabs: $t,
|
|
2731
2734
|
activeTabId: J,
|
|
2732
2735
|
onTabChange: Ne,
|
|
2733
|
-
className: R("min-w-0 flex-1 overflow-x-auto",
|
|
2736
|
+
className: R("min-w-0 flex-1 overflow-x-auto", Sr.tabsScroll),
|
|
2734
2737
|
tabClassName: "shrink-0"
|
|
2735
2738
|
}),
|
|
2736
2739
|
/* @__PURE__ */ Z(Ke, {
|
|
@@ -2748,7 +2751,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2748
2751
|
width: "72px"
|
|
2749
2752
|
},
|
|
2750
2753
|
active: !0,
|
|
2751
|
-
color:
|
|
2754
|
+
color: Sr.skeletonColor
|
|
2752
2755
|
})
|
|
2753
2756
|
})
|
|
2754
2757
|
]
|
|
@@ -2756,14 +2759,14 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2756
2759
|
/* @__PURE__ */ Q("div", {
|
|
2757
2760
|
className: R("min-h-0 flex-1 overflow-y-auto", J !== n.Overview && "px-6"),
|
|
2758
2761
|
children: [
|
|
2759
|
-
J === n.About &&
|
|
2760
|
-
J === n.About && !
|
|
2762
|
+
J === n.About && an ? sn : null,
|
|
2763
|
+
J === n.About && !an && /* @__PURE__ */ Z(Pr, {
|
|
2761
2764
|
content: e.description,
|
|
2762
2765
|
topics: e.topics,
|
|
2763
2766
|
detailsStyles: Ce,
|
|
2764
|
-
markdownLabels:
|
|
2767
|
+
markdownLabels: tn
|
|
2765
2768
|
}),
|
|
2766
|
-
J === n.Content && /* @__PURE__ */ Z(
|
|
2769
|
+
J === n.Content && /* @__PURE__ */ Z(Br, {
|
|
2767
2770
|
content: Ve?.content ?? "",
|
|
2768
2771
|
filePreview: ot(),
|
|
2769
2772
|
filePreviewContent: lt,
|
|
@@ -2782,29 +2785,29 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2782
2785
|
fileLoadingLabel: W?.contentFileLoadingLabel,
|
|
2783
2786
|
fileUnsupportedLabel: W?.contentFileUnsupportedLabel,
|
|
2784
2787
|
detailsStyles: Ce,
|
|
2785
|
-
markdownLabels:
|
|
2788
|
+
markdownLabels: tn
|
|
2786
2789
|
}),
|
|
2787
|
-
J === n.Overview &&
|
|
2788
|
-
J === n.Overview && !
|
|
2790
|
+
J === n.Overview && on ? sn : null,
|
|
2791
|
+
J === n.Overview && !on && /* @__PURE__ */ Z(ei, {
|
|
2789
2792
|
sections: e.details?.overview?.sections,
|
|
2790
2793
|
sectionClassName: Ee,
|
|
2791
2794
|
labelClassName: De,
|
|
2792
2795
|
valueClassName: Oe,
|
|
2793
2796
|
valueTrueClassName: G,
|
|
2794
|
-
yesLabel:
|
|
2795
|
-
noLabel:
|
|
2797
|
+
yesLabel: cn,
|
|
2798
|
+
noLabel: ln
|
|
2796
2799
|
}),
|
|
2797
|
-
J === n.Pricing && /* @__PURE__ */ Z(
|
|
2800
|
+
J === n.Pricing && /* @__PURE__ */ Z(ti, {
|
|
2798
2801
|
pricing: e.details?.pricing,
|
|
2799
2802
|
pricesSectionLabel: W?.pricingPricesSectionLabel,
|
|
2800
2803
|
characterPricesSectionLabel: W?.pricingCharacterPricesSectionLabel,
|
|
2801
2804
|
limitsSectionLabel: W?.pricingLimitsSectionLabel
|
|
2802
2805
|
}),
|
|
2803
|
-
J === n.Limits && /* @__PURE__ */ Z(
|
|
2806
|
+
J === n.Limits && /* @__PURE__ */ Z($r, {
|
|
2804
2807
|
limits: e.details?.limits,
|
|
2805
2808
|
footerNote: we
|
|
2806
2809
|
}),
|
|
2807
|
-
J === n.Api && k(e.details?.api) && /* @__PURE__ */ Z(
|
|
2810
|
+
J === n.Api && k(e.details?.api) && /* @__PURE__ */ Z(ar, {
|
|
2808
2811
|
api: e.details?.api,
|
|
2809
2812
|
resourceSectionLabel: W?.apiResourceSectionLabel,
|
|
2810
2813
|
snippetSectionLabel: W?.apiSnippetSectionLabel,
|
|
@@ -2816,50 +2819,53 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2816
2819
|
copyAriaLabel: W?.copyCodeAriaLabel,
|
|
2817
2820
|
copiedStatusLabel: W?.copiedCodeStatusLabel
|
|
2818
2821
|
}),
|
|
2819
|
-
J === n.Tools && /* @__PURE__ */ Z(
|
|
2822
|
+
J === n.Tools && /* @__PURE__ */ Z(ci, {
|
|
2820
2823
|
tools: e.details?.tools,
|
|
2821
|
-
labels:
|
|
2824
|
+
labels: nn
|
|
2822
2825
|
})
|
|
2823
2826
|
]
|
|
2824
2827
|
})
|
|
2825
2828
|
] })
|
|
2826
2829
|
]
|
|
2827
2830
|
}),
|
|
2828
|
-
|
|
2829
|
-
confirmLabel:
|
|
2830
|
-
cancelLabel:
|
|
2831
|
-
variant:
|
|
2831
|
+
vn && /* @__PURE__ */ Z(F, {
|
|
2832
|
+
confirmLabel: _n.confirmLabel,
|
|
2833
|
+
cancelLabel: gn,
|
|
2834
|
+
variant: _n.variant,
|
|
2832
2835
|
isLoading: yt,
|
|
2833
|
-
isConfirmDisabled:
|
|
2834
|
-
loadingStatusLabel:
|
|
2836
|
+
isConfirmDisabled: yn,
|
|
2837
|
+
loadingStatusLabel: _n.loadingStatusLabel,
|
|
2835
2838
|
styles: { colors: { border: q?.confirmFooterBorder } },
|
|
2836
2839
|
onConfirm: Bt,
|
|
2837
2840
|
onCancel: zt
|
|
2838
2841
|
}),
|
|
2839
|
-
!
|
|
2842
|
+
!vn && Pe && /* @__PURE__ */ Z(Kt, {
|
|
2840
2843
|
version: e.version,
|
|
2841
2844
|
hasExistingPublicationInFolder: Y.hasExistingPublicationInFolder,
|
|
2842
|
-
allowReplace:
|
|
2845
|
+
allowReplace: ui,
|
|
2843
2846
|
isSubmitDisabled: mt.isSubmitDisabled,
|
|
2844
2847
|
isSubmitLoading: mt.isSubmitLoading,
|
|
2845
|
-
onCancel: Ht,
|
|
2846
|
-
onSubmit:
|
|
2848
|
+
onCancel: Wt ? Ut.backToMain : Ht,
|
|
2849
|
+
onSubmit: Gt,
|
|
2850
|
+
view: Ut.view,
|
|
2851
|
+
onSelectFolder: Ut.selectFolder,
|
|
2852
|
+
isSelectFolderDisabled: Ut.pendingFolderPath == null,
|
|
2847
2853
|
labels: j
|
|
2848
2854
|
})
|
|
2849
2855
|
]
|
|
2850
2856
|
});
|
|
2851
|
-
},
|
|
2857
|
+
}, Si = (e) => window.getComputedStyle(e).direction === "rtl", Ci = (e, t) => {
|
|
2852
2858
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.getComputedStyle(e);
|
|
2853
|
-
return
|
|
2854
|
-
},
|
|
2859
|
+
return Si(e) ? r.right - (n.right - parseFloat(i.paddingRight || "0")) : r.left - (n.left + parseFloat(i.paddingLeft || "0"));
|
|
2860
|
+
}, wi = (e, t) => {
|
|
2855
2861
|
if (t.length === 0) return 0;
|
|
2856
2862
|
if (Math.abs(e.scrollLeft) + e.clientWidth >= e.scrollWidth - 1 && Math.abs(e.scrollLeft) > 0) return t.length - 1;
|
|
2857
2863
|
let n = 0, r = Infinity;
|
|
2858
2864
|
return t.forEach((t, i) => {
|
|
2859
|
-
let a = Math.abs(
|
|
2865
|
+
let a = Math.abs(Ci(e, t));
|
|
2860
2866
|
a < r && (r = a, n = i);
|
|
2861
2867
|
}), n;
|
|
2862
|
-
},
|
|
2868
|
+
}, Ti = {
|
|
2863
2869
|
pageNav: "_pageNav_iy8tl_1",
|
|
2864
2870
|
navBtn: "_navBtn_iy8tl_6",
|
|
2865
2871
|
titleText: "_titleText_iy8tl_23",
|
|
@@ -2876,7 +2882,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2876
2882
|
cardFadeOut: "_cardFadeOut_iy8tl_1",
|
|
2877
2883
|
favoriteCard: "_favoriteCard_iy8tl_101",
|
|
2878
2884
|
cardButton: "_cardButton_iy8tl_101"
|
|
2879
|
-
},
|
|
2885
|
+
}, Ei = ({ item: e, initialIsStarred: t = !0, onToggle: n, isFavoriteVisible: r, onClick: i, nameClassName: a, colors: o, versionClassName: s, lastUsedClassName: c, query: l, addToFavoritesAriaLabel: u = "Add to favorites", removeFromFavoritesAriaLabel: d = "Remove from favorites", isSelected: f = !1, credentialsBadgeLoggedOutLabel: p, focusOutlineColor: m }) => {
|
|
2880
2886
|
let [h, g] = U(t), [_, v] = U(!1), y = (t) => {
|
|
2881
2887
|
t.stopPropagation();
|
|
2882
2888
|
let r = !h;
|
|
@@ -2886,7 +2892,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2886
2892
|
"data-card-id": e.id,
|
|
2887
2893
|
"aria-label": e.name,
|
|
2888
2894
|
style: de({ "--fc-focus-outline": m }),
|
|
2889
|
-
className: R("box-border min-w-0 cursor-pointer flex-row items-center gap-3 p-5 text-start",
|
|
2895
|
+
className: R("box-border min-w-0 cursor-pointer flex-row items-center gap-3 p-5 text-start", Ti.favoriteCard, _ && Ti.cardLeaving, f && Ti.selectedCard, pn.favoriteCard),
|
|
2890
2896
|
onClick: b,
|
|
2891
2897
|
onAnimationEnd: _ ? (t) => {
|
|
2892
2898
|
t.currentTarget === t.target && n?.(e.id, !1);
|
|
@@ -2894,22 +2900,22 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2894
2900
|
children: [
|
|
2895
2901
|
b != null && /* @__PURE__ */ Z("button", {
|
|
2896
2902
|
type: "button",
|
|
2897
|
-
className: R("sr-only",
|
|
2903
|
+
className: R("sr-only", Ti.cardButton),
|
|
2898
2904
|
children: e.name
|
|
2899
2905
|
}),
|
|
2900
2906
|
f && /* @__PURE__ */ Z(bt, {
|
|
2901
2907
|
size: G.SM,
|
|
2902
|
-
className: R("absolute inset-e-3 top-3 shrink-0",
|
|
2908
|
+
className: R("absolute inset-e-3 top-3 shrink-0", Ti.selectedCheck),
|
|
2903
2909
|
"aria-hidden": !0,
|
|
2904
2910
|
stroke: K
|
|
2905
2911
|
}),
|
|
2906
|
-
/* @__PURE__ */ Z(
|
|
2912
|
+
/* @__PURE__ */ Z(Nn, {
|
|
2907
2913
|
icon: e.iconUrl,
|
|
2908
2914
|
type: e.type,
|
|
2909
2915
|
name: e.name,
|
|
2910
2916
|
version: e.version,
|
|
2911
2917
|
lastUsed: e.lastUsed,
|
|
2912
|
-
size:
|
|
2918
|
+
size: on.LG,
|
|
2913
2919
|
query: l,
|
|
2914
2920
|
className: "min-w-0 flex-1 items-center",
|
|
2915
2921
|
styles: {
|
|
@@ -2920,11 +2926,11 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2920
2926
|
lastUsedClassName: c
|
|
2921
2927
|
}
|
|
2922
2928
|
},
|
|
2923
|
-
iconOverlay: /* @__PURE__ */ Z(
|
|
2929
|
+
iconOverlay: /* @__PURE__ */ Z(Fn, {
|
|
2924
2930
|
credentials: e.credentials,
|
|
2925
2931
|
loggedOutLabel: p
|
|
2926
2932
|
}),
|
|
2927
|
-
lastUsedTrailing: r?.(e) === !1 ? void 0 : /* @__PURE__ */ Z(
|
|
2933
|
+
lastUsedTrailing: r?.(e) === !1 ? void 0 : /* @__PURE__ */ Z(Ln, {
|
|
2928
2934
|
isStarred: h,
|
|
2929
2935
|
size: J.Small,
|
|
2930
2936
|
onClick: y,
|
|
@@ -2933,7 +2939,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2933
2939
|
})
|
|
2934
2940
|
]
|
|
2935
2941
|
});
|
|
2936
|
-
},
|
|
2942
|
+
}, Di = 2, Oi = (e) => {
|
|
2937
2943
|
let t = e.getBoundingClientRect(), n = window.scrollX, r = window.scrollY, i = window.getComputedStyle(e).transform;
|
|
2938
2944
|
if (!i || i === "none") return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
2939
2945
|
try {
|
|
@@ -2942,7 +2948,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2942
2948
|
} catch {
|
|
2943
2949
|
return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
2944
2950
|
}
|
|
2945
|
-
},
|
|
2951
|
+
}, ki = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, isFavoriteVisible: i, onItemClick: a, styles: o, isLeaving: s, onExitComplete: c, prevPageAriaLabel: l = "Previous page", nextPageAriaLabel: u = "Next page", addToFavoritesAriaLabel: d, removeFromFavoritesAriaLabel: f, selectedItemId: p, credentialsBadgeLoggedOutLabel: m, isPaginationHidden: h = !1 }) => {
|
|
2946
2952
|
let g = o?.typography?.titleClassName ?? "dial-body-semi-text", _ = o?.typography?.countClassName ?? "dial-tiny-semi-text", v = de({
|
|
2947
2953
|
"--cat-fav-title-text": o?.colors?.titleText,
|
|
2948
2954
|
"--cat-fav-count-text": o?.colors?.countText,
|
|
@@ -2955,7 +2961,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2955
2961
|
"--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
|
|
2956
2962
|
"--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
|
|
2957
2963
|
"--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
|
|
2958
|
-
}), y = V(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [b, x] = U(1), S =
|
|
2964
|
+
}), y = V(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [b, x] = U(1), S = fn(), C = fe(), w = !h && !C, T = S * Di, E = (b - 1) * T, D = V(() => w ? y.slice(E, E + T) : y, [
|
|
2959
2965
|
w,
|
|
2960
2966
|
y,
|
|
2961
2967
|
E,
|
|
@@ -2993,7 +2999,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
2993
2999
|
let n = M.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
|
|
2994
3000
|
if (n.forEach((e) => {
|
|
2995
3001
|
let { cardId: t } = e.dataset;
|
|
2996
|
-
t && r.set(t,
|
|
3002
|
+
t && r.set(t, Oi(e));
|
|
2997
3003
|
}), !e && !t) {
|
|
2998
3004
|
let e = j.current, t = L.current, i = 0;
|
|
2999
3005
|
if (e) {
|
|
@@ -3052,7 +3058,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3052
3058
|
le.current = null;
|
|
3053
3059
|
let e = M.current;
|
|
3054
3060
|
if (!e) return;
|
|
3055
|
-
let t =
|
|
3061
|
+
let t = wi(e, se()) + 1;
|
|
3056
3062
|
if (ce.current != null) {
|
|
3057
3063
|
if (t !== ce.current) return;
|
|
3058
3064
|
ce.current = null;
|
|
@@ -3069,7 +3075,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3069
3075
|
if (x(e), !C || !M.current) return;
|
|
3070
3076
|
let t = se()[e - 1];
|
|
3071
3077
|
if (!t) return;
|
|
3072
|
-
let n =
|
|
3078
|
+
let n = Ci(M.current, t);
|
|
3073
3079
|
Math.abs(n) < 1 || (ce.current = e, M.current.scrollBy({
|
|
3074
3080
|
left: n,
|
|
3075
3081
|
behavior: "smooth"
|
|
@@ -3079,7 +3085,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3079
3085
|
ref: A,
|
|
3080
3086
|
children: /* @__PURE__ */ Q("section", {
|
|
3081
3087
|
ref: j,
|
|
3082
|
-
className: R("flex shrink-0 flex-col gap-4 pt-2 pb-2",
|
|
3088
|
+
className: R("flex shrink-0 flex-col gap-4 pt-2 pb-2", Ti.section, s && Ti.sectionLeaving),
|
|
3083
3089
|
style: {
|
|
3084
3090
|
...v,
|
|
3085
3091
|
minHeight: F
|
|
@@ -3090,17 +3096,17 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3090
3096
|
children: [/* @__PURE__ */ Z(ae, {
|
|
3091
3097
|
title: n,
|
|
3092
3098
|
postfix: k,
|
|
3093
|
-
titleClassName: R(g,
|
|
3094
|
-
postfixClassName: R(_,
|
|
3099
|
+
titleClassName: R(g, Ti.titleText),
|
|
3100
|
+
postfixClassName: R(_, Ti.countText),
|
|
3095
3101
|
trailing: O > 1 ? /* @__PURE__ */ Q("div", {
|
|
3096
|
-
className: R("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]",
|
|
3102
|
+
className: R("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Ti.pageNav),
|
|
3097
3103
|
children: [
|
|
3098
3104
|
/* @__PURE__ */ Z(ze, {
|
|
3099
3105
|
size: J.Small,
|
|
3100
3106
|
"aria-label": l,
|
|
3101
3107
|
disabled: b === 1,
|
|
3102
3108
|
onClick: () => me(b - 1),
|
|
3103
|
-
className: R("rounded-full",
|
|
3109
|
+
className: R("rounded-full", Ti.navBtn),
|
|
3104
3110
|
icon: /* @__PURE__ */ Z(St, {
|
|
3105
3111
|
size: 14,
|
|
3106
3112
|
"aria-hidden": !0,
|
|
@@ -3109,7 +3115,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3109
3115
|
})
|
|
3110
3116
|
}),
|
|
3111
3117
|
/* @__PURE__ */ Q("span", {
|
|
3112
|
-
className: R("min-w-[32px] px-1 text-center select-none", _,
|
|
3118
|
+
className: R("min-w-[32px] px-1 text-center select-none", _, Ti.countText),
|
|
3113
3119
|
children: [
|
|
3114
3120
|
b,
|
|
3115
3121
|
" / ",
|
|
@@ -3121,7 +3127,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3121
3127
|
"aria-label": u,
|
|
3122
3128
|
disabled: b === O,
|
|
3123
3129
|
onClick: () => me(b + 1),
|
|
3124
|
-
className: R("rounded-full",
|
|
3130
|
+
className: R("rounded-full", Ti.navBtn),
|
|
3125
3131
|
icon: /* @__PURE__ */ Z(Ct, {
|
|
3126
3132
|
size: 14,
|
|
3127
3133
|
"aria-hidden": !0,
|
|
@@ -3133,7 +3139,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3133
3139
|
}) : void 0
|
|
3134
3140
|
}), /* @__PURE__ */ Z("div", {
|
|
3135
3141
|
ref: M,
|
|
3136
|
-
className: R("grid content-start", C ? "-m-4 snap-x snap-mandatory scroll-p-4 scrollbar-none auto-cols-[328px] grid-flow-col gap-2 overflow-x-auto mask-[linear-gradient(to_bottom,transparent,black_16px,black_calc(100%-16px),transparent)] p-4 *:snap-start" : "gap-5",
|
|
3142
|
+
className: R("grid content-start", C ? "-m-4 snap-x snap-mandatory scroll-p-4 scrollbar-none auto-cols-[328px] grid-flow-col gap-2 overflow-x-auto mask-[linear-gradient(to_bottom,transparent,black_16px,black_calc(100%-16px),transparent)] p-4 *:snap-start" : "gap-5", Ti.gridPage),
|
|
3137
3143
|
style: {
|
|
3138
3144
|
gridTemplateColumns: C ? void 0 : `repeat(${S}, minmax(0, 1fr))`,
|
|
3139
3145
|
minHeight: N
|
|
@@ -3141,7 +3147,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3141
3147
|
onScroll: C ? ue : void 0,
|
|
3142
3148
|
onScrollEnd: C ? pe : void 0,
|
|
3143
3149
|
onPointerDown: C ? pe : void 0,
|
|
3144
|
-
children: D.map((e) => /* @__PURE__ */ Z(
|
|
3150
|
+
children: D.map((e) => /* @__PURE__ */ Z(Ei, {
|
|
3145
3151
|
item: e,
|
|
3146
3152
|
onToggle: r,
|
|
3147
3153
|
isFavoriteVisible: i,
|
|
@@ -3154,7 +3160,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3154
3160
|
})]
|
|
3155
3161
|
})
|
|
3156
3162
|
});
|
|
3157
|
-
},
|
|
3163
|
+
}, Ai = {
|
|
3158
3164
|
favHeader: "_favHeader_11hd6_2",
|
|
3159
3165
|
starFilledIcon: "_starFilledIcon_11hd6_6",
|
|
3160
3166
|
folderIcon: "_folderIcon_11hd6_10",
|
|
@@ -3162,19 +3168,19 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3162
3168
|
starToggleOff: "_starToggleOff_11hd6_18",
|
|
3163
3169
|
name: "_name_11hd6_32",
|
|
3164
3170
|
version: "_version_11hd6_36"
|
|
3165
|
-
},
|
|
3171
|
+
}, ji = ({ data: e, value: t }) => e ? /* @__PURE__ */ Z("div", {
|
|
3166
3172
|
className: "flex h-full items-center",
|
|
3167
3173
|
children: /* @__PURE__ */ Z(re, { type: t ?? e.type })
|
|
3168
|
-
}) : null,
|
|
3174
|
+
}) : null, Mi = " / ", Ni = ({ data: e, context: t }) => {
|
|
3169
3175
|
if (!e || e.folder.length === 0) return null;
|
|
3170
|
-
let n = e.folder.join(
|
|
3176
|
+
let n = e.folder.join(Mi), r = e.folder[e.folder.length - 1], i = e.folder.length > 1, a = t?.typography?.folderClassName ?? "dial-small-text", o = t?.typography?.folderLastSegmentClassName ?? "dial-small-semi-text";
|
|
3171
3177
|
return /* @__PURE__ */ Q("div", {
|
|
3172
3178
|
className: "flex h-full w-full min-w-0 items-center gap-1.5",
|
|
3173
3179
|
children: [
|
|
3174
3180
|
/* @__PURE__ */ Z(Ot, {
|
|
3175
3181
|
size: G.SM,
|
|
3176
3182
|
stroke: K,
|
|
3177
|
-
className: R("shrink-0",
|
|
3183
|
+
className: R("shrink-0", Ai.folderIcon),
|
|
3178
3184
|
"aria-hidden": !0
|
|
3179
3185
|
}),
|
|
3180
3186
|
/* @__PURE__ */ Z(Y, {
|
|
@@ -3196,7 +3202,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3196
3202
|
})
|
|
3197
3203
|
]
|
|
3198
3204
|
});
|
|
3199
|
-
},
|
|
3205
|
+
}, Pi = ({ data: e, context: t }) => {
|
|
3200
3206
|
let n = t?.searchQuery ?? "", r = t?.typography, i = r?.nameClassName ?? "dial-small-semi-text", a = r?.versionClassName ?? "dial-tiny-text", o = e != null && e.id === t?.selectedItemId;
|
|
3201
3207
|
return e ? /* @__PURE__ */ Q("div", {
|
|
3202
3208
|
className: "flex h-full w-full min-w-0 items-center gap-2.5",
|
|
@@ -3207,7 +3213,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3207
3213
|
size: 36,
|
|
3208
3214
|
initialsName: e.name,
|
|
3209
3215
|
styles: { badgeClassName: "rounded-[10px]" }
|
|
3210
|
-
}), /* @__PURE__ */ Z(
|
|
3216
|
+
}), /* @__PURE__ */ Z(Fn, {
|
|
3211
3217
|
credentials: e.credentials,
|
|
3212
3218
|
loggedOutLabel: t?.credentialsBadgeLoggedOutLabel
|
|
3213
3219
|
})]
|
|
@@ -3215,8 +3221,8 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3215
3221
|
className: "flex min-w-0 flex-1 items-baseline gap-1.5",
|
|
3216
3222
|
children: [
|
|
3217
3223
|
/* @__PURE__ */ Z("h3", {
|
|
3218
|
-
className: R("min-w-0 shrink", i,
|
|
3219
|
-
children: /* @__PURE__ */ Z(
|
|
3224
|
+
className: R("min-w-0 shrink", i, Ai.name),
|
|
3225
|
+
children: /* @__PURE__ */ Z(jn, {
|
|
3220
3226
|
name: e.name,
|
|
3221
3227
|
query: n,
|
|
3222
3228
|
className: "whitespace-normal"
|
|
@@ -3224,46 +3230,46 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3224
3230
|
}),
|
|
3225
3231
|
e.version && /* @__PURE__ */ Z(Ne, {
|
|
3226
3232
|
text: e.version,
|
|
3227
|
-
className: R("max-w-[30%] shrink-0", a,
|
|
3233
|
+
className: R("max-w-[30%] shrink-0", a, Ai.version)
|
|
3228
3234
|
}),
|
|
3229
3235
|
o && /* @__PURE__ */ Z(bt, {
|
|
3230
3236
|
size: G.SM,
|
|
3231
|
-
className: R("ms-auto shrink-0",
|
|
3237
|
+
className: R("ms-auto shrink-0", Ai.selectedCheck),
|
|
3232
3238
|
"aria-hidden": !0,
|
|
3233
3239
|
stroke: K
|
|
3234
3240
|
})
|
|
3235
3241
|
]
|
|
3236
3242
|
})]
|
|
3237
3243
|
}) : null;
|
|
3238
|
-
},
|
|
3244
|
+
}, Fi = ({ data: e, context: t }) => {
|
|
3239
3245
|
let [n, r] = U(e?.isStarred ?? !1);
|
|
3240
3246
|
return B(() => {
|
|
3241
3247
|
r(e?.isStarred ?? !1);
|
|
3242
3248
|
}, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ Z("div", {
|
|
3243
3249
|
className: "flex size-full items-center justify-end",
|
|
3244
|
-
children: /* @__PURE__ */ Z(
|
|
3250
|
+
children: /* @__PURE__ */ Z(Ln, {
|
|
3245
3251
|
isStarred: n,
|
|
3246
3252
|
onClick: (i) => {
|
|
3247
3253
|
i.stopPropagation();
|
|
3248
3254
|
let a = !n;
|
|
3249
3255
|
r(a), t?.onToggleFavorite?.(e.id, a);
|
|
3250
3256
|
},
|
|
3251
|
-
className: n ? void 0 :
|
|
3257
|
+
className: n ? void 0 : Ai.starToggleOff
|
|
3252
3258
|
})
|
|
3253
3259
|
});
|
|
3254
|
-
},
|
|
3260
|
+
}, Ii = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ Z("div", {
|
|
3255
3261
|
className: "flex h-full w-full min-w-0 items-center",
|
|
3256
|
-
children: /* @__PURE__ */ Z(
|
|
3257
|
-
}),
|
|
3262
|
+
children: /* @__PURE__ */ Z(Hn, { topics: e.topics })
|
|
3263
|
+
}), Li = {
|
|
3258
3264
|
folder: (e) => e !== P.Model,
|
|
3259
3265
|
tags: () => !0,
|
|
3260
3266
|
favorite: () => !0
|
|
3261
|
-
},
|
|
3267
|
+
}, Ri = (e, t) => Object.fromEntries([
|
|
3262
3268
|
"folder",
|
|
3263
3269
|
"tags",
|
|
3264
3270
|
"favorite"
|
|
3265
|
-
].map((n) => [n, (t?.[n] ??
|
|
3266
|
-
let r =
|
|
3271
|
+
].map((n) => [n, (t?.[n] ?? Li[n])(e)])), zi = (e, t = !1, n) => {
|
|
3272
|
+
let r = Ri(e, n);
|
|
3267
3273
|
return [
|
|
3268
3274
|
{
|
|
3269
3275
|
headerName: "Name",
|
|
@@ -3271,7 +3277,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3271
3277
|
minWidth: 220,
|
|
3272
3278
|
field: "name",
|
|
3273
3279
|
filter: !1,
|
|
3274
|
-
cellRenderer:
|
|
3280
|
+
cellRenderer: Pi,
|
|
3275
3281
|
valueGetter: (e) => e.data?.name
|
|
3276
3282
|
},
|
|
3277
3283
|
{
|
|
@@ -3281,7 +3287,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3281
3287
|
field: "type",
|
|
3282
3288
|
filter: !1,
|
|
3283
3289
|
sortable: !1,
|
|
3284
|
-
cellRenderer:
|
|
3290
|
+
cellRenderer: ji,
|
|
3285
3291
|
valueGetter: (t) => t.data && T(t.data, e)
|
|
3286
3292
|
},
|
|
3287
3293
|
{
|
|
@@ -3291,7 +3297,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3291
3297
|
minWidth: 170,
|
|
3292
3298
|
filter: !1,
|
|
3293
3299
|
hide: !r.folder,
|
|
3294
|
-
cellRenderer:
|
|
3300
|
+
cellRenderer: Ni,
|
|
3295
3301
|
valueGetter: (e) => e.data?.folder
|
|
3296
3302
|
},
|
|
3297
3303
|
{
|
|
@@ -3302,7 +3308,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3302
3308
|
filter: !1,
|
|
3303
3309
|
sortable: !1,
|
|
3304
3310
|
hide: !r.tags,
|
|
3305
|
-
cellRenderer:
|
|
3311
|
+
cellRenderer: Ii,
|
|
3306
3312
|
valueGetter: (e) => e.data?.topics
|
|
3307
3313
|
},
|
|
3308
3314
|
{
|
|
@@ -3314,20 +3320,20 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3314
3320
|
sortable: !1,
|
|
3315
3321
|
resizable: !1,
|
|
3316
3322
|
hide: t || !r.favorite,
|
|
3317
|
-
headerClass:
|
|
3318
|
-
cellRenderer:
|
|
3323
|
+
headerClass: Ai.favHeader,
|
|
3324
|
+
cellRenderer: Fi
|
|
3319
3325
|
}
|
|
3320
3326
|
];
|
|
3321
|
-
},
|
|
3327
|
+
}, Bi = 60, Vi = "isStarred", Hi = {
|
|
3322
3328
|
filter: !1,
|
|
3323
3329
|
floatingFilter: !1,
|
|
3324
3330
|
suppressSizeToFit: !0
|
|
3325
|
-
},
|
|
3331
|
+
}, Ui = {
|
|
3326
3332
|
mode: "singleRow",
|
|
3327
3333
|
checkboxes: !1,
|
|
3328
3334
|
enableClickSelection: !1
|
|
3329
|
-
},
|
|
3330
|
-
let S = _ ===
|
|
3335
|
+
}, Wi = {}, Gi = /* @__PURE__ */ new Set(), Ki = "Select all", qi = "rowClicked", Ji = (e) => e.id, Yi = (e) => `Select ${e.name}`, Xi = (e) => e.colDef.field === Vi, Zi = ({ ref: e, onRowsScroll: t, items: n, type: r, query: i = "", ariaLabel: a = "Catalog", emptyStateTitle: o = "No results", emptyStateDescription: s, isEmptyStateLive: c = !1, styles: l, onToggleFavorite: u, isFavoriteVisible: d, onItemClick: f, selectedItemId: p, credentialsBadgeLoggedOutLabel: m, isReadonly: h = !1, columnVisibility: g, selectionMode: _ = cn.Single, selectedItemIds: v = Gi, onSelectionChange: y, selectRowAriaLabel: b = Yi, selectAllAriaLabel: x = Ki }) => {
|
|
3336
|
+
let S = _ === cn.Multiple, C = S ? void 0 : p, w = l?.typography ?? Wi, T = l?.colors, E = {
|
|
3331
3337
|
"--cat-card-star-filled": T?.starFilled,
|
|
3332
3338
|
"--cat-list-folder-icon": T?.folderIcon,
|
|
3333
3339
|
"--cat-list-selected-check": T?.selectedRowCheckIcon,
|
|
@@ -3347,19 +3353,19 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3347
3353
|
let e = D.current;
|
|
3348
3354
|
e == null || e.isDestroyed() || e.getDisplayedRowCount() === 0 || e.ensureIndexVisible(0, "top");
|
|
3349
3355
|
} }), []);
|
|
3350
|
-
let N = V(() =>
|
|
3356
|
+
let N = V(() => zi(r, h, g), [
|
|
3351
3357
|
r,
|
|
3352
3358
|
h,
|
|
3353
3359
|
g
|
|
3354
|
-
]), P = V(() => n.map(
|
|
3360
|
+
]), P = V(() => n.map(Ji), [n]), F = z((e) => y?.(A(v, e, P)), [
|
|
3355
3361
|
y,
|
|
3356
3362
|
v,
|
|
3357
3363
|
P
|
|
3358
3364
|
]), ee = V(() => new Set(C == null ? [] : [C]), [C]), I = V(() => ({
|
|
3359
|
-
rowHeight:
|
|
3365
|
+
rowHeight: Bi,
|
|
3360
3366
|
suppressCellFocus: !1,
|
|
3361
|
-
defaultColDef:
|
|
3362
|
-
rowSelection: S ? void 0 :
|
|
3367
|
+
defaultColDef: Hi,
|
|
3368
|
+
rowSelection: S ? void 0 : Ui,
|
|
3363
3369
|
context: {
|
|
3364
3370
|
searchQuery: i,
|
|
3365
3371
|
typography: w,
|
|
@@ -3370,11 +3376,11 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3370
3376
|
isReadonly: h
|
|
3371
3377
|
},
|
|
3372
3378
|
onCellClicked: f || S ? (e) => {
|
|
3373
|
-
!
|
|
3379
|
+
!Xi(e) && e.data && e.colDef.colId !== Qt && (S && e.node.setSelected(!e.node.isSelected(), !1, qi), f?.(e.data));
|
|
3374
3380
|
} : void 0,
|
|
3375
3381
|
onCellKeyDown: f && !S ? (e) => {
|
|
3376
3382
|
let t = e.event?.key;
|
|
3377
|
-
(t === "Enter" || t === " ") && !
|
|
3383
|
+
(t === "Enter" || t === " ") && !Xi(e) && e.data && (e.event?.preventDefault(), f(e.data));
|
|
3378
3384
|
} : void 0,
|
|
3379
3385
|
rowClass: f || S ? "cursor-pointer" : void 0
|
|
3380
3386
|
}), [
|
|
@@ -3392,12 +3398,12 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3392
3398
|
D.current?.refreshCells({ force: !0 });
|
|
3393
3399
|
}, [i, C]), /* @__PURE__ */ Z("div", {
|
|
3394
3400
|
style: E,
|
|
3395
|
-
className: pt("size-full",
|
|
3396
|
-
children: /* @__PURE__ */ Z(
|
|
3397
|
-
appearance:
|
|
3401
|
+
className: pt("size-full", pn.listView),
|
|
3402
|
+
children: /* @__PURE__ */ Z($t, {
|
|
3403
|
+
appearance: en.Chat,
|
|
3398
3404
|
columnDefs: N,
|
|
3399
3405
|
rowData: n,
|
|
3400
|
-
getRowId:
|
|
3406
|
+
getRowId: Ji,
|
|
3401
3407
|
withoutHeaderBorders: !0,
|
|
3402
3408
|
wrapCustomCellRenderers: !1,
|
|
3403
3409
|
onGridApiChange: M,
|
|
@@ -3407,7 +3413,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3407
3413
|
additionalGridOptions: I,
|
|
3408
3414
|
ariaLabel: a,
|
|
3409
3415
|
...S ? {
|
|
3410
|
-
selectionMode:
|
|
3416
|
+
selectionMode: tn.MULTIPLE,
|
|
3411
3417
|
selectedRowIds: v,
|
|
3412
3418
|
onSelectionChange: F,
|
|
3413
3419
|
selectRowLabel: b,
|
|
@@ -3415,11 +3421,11 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3415
3421
|
} : { selectedRowIds: ee }
|
|
3416
3422
|
})
|
|
3417
3423
|
});
|
|
3418
|
-
},
|
|
3424
|
+
}, Qi = "w-[320px]", $i = {
|
|
3419
3425
|
divider: "_divider_k154m_1",
|
|
3420
3426
|
sectionHeader: "_sectionHeader_k154m_5"
|
|
3421
|
-
},
|
|
3422
|
-
let [f, p] = U(null), m = f ? r.find((e) => e.key === f) : void 0, h = m?.children ?? r, g = i ?
|
|
3427
|
+
}, ea = ({ open: e, onClose: t, title: n, options: r, search: i, searchPlaceholder: a, searchClearLabel: o, noResultsLabel: s, backLabel: c, closeLabel: l, colors: u, sectionHeaderClassName: d = "dial-caption-text" }) => {
|
|
3428
|
+
let [f, p] = U(null), m = f ? r.find((e) => e.key === f) : void 0, h = m?.children ?? r, g = i ? vn(h, i.value) : h, _ = de({
|
|
3423
3429
|
"--cat-create-menu-divider": u?.divider,
|
|
3424
3430
|
"--cat-create-menu-section-header-text": u?.sectionHeaderText
|
|
3425
3431
|
}), v = () => {
|
|
@@ -3455,10 +3461,10 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3455
3461
|
style: _,
|
|
3456
3462
|
children: g.map((e) => e.type === je.Divider ? /* @__PURE__ */ Z("div", {
|
|
3457
3463
|
role: "separator",
|
|
3458
|
-
className: R("my-1",
|
|
3464
|
+
className: R("my-1", $i.divider, e.className)
|
|
3459
3465
|
}, e.key) : e.type === je.PlainText ? /* @__PURE__ */ Z("div", {
|
|
3460
3466
|
role: "presentation",
|
|
3461
|
-
className: R("px-3 py-2",
|
|
3467
|
+
className: R("px-3 py-2", $i.sectionHeader, d, e.className),
|
|
3462
3468
|
children: e.label
|
|
3463
3469
|
}, e.key) : /* @__PURE__ */ Z(Ye, {
|
|
3464
3470
|
role: "menuitem",
|
|
@@ -3483,7 +3489,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3483
3489
|
})
|
|
3484
3490
|
]
|
|
3485
3491
|
});
|
|
3486
|
-
},
|
|
3492
|
+
}, ta = ({ label: e, options: t, onClick: n, search: r, searchPlaceholder: i = "Search", searchClearLabel: a = "Clear search", noResultsLabel: o = "No results found", backLabel: s = "Back", closeLabel: c = "Close", variant: l = Te.Primary, colors: u, sectionHeaderClassName: d, isFloating: f = !1 }) => {
|
|
3487
3493
|
let [p, m] = U(!1), h = pe(), g = /* @__PURE__ */ Z(xt, {
|
|
3488
3494
|
size: G.SM,
|
|
3489
3495
|
stroke: K,
|
|
@@ -3512,7 +3518,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3512
3518
|
"aria-haspopup": "dialog",
|
|
3513
3519
|
"aria-expanded": p,
|
|
3514
3520
|
onClick: () => m(!0)
|
|
3515
|
-
}), /* @__PURE__ */ Z(
|
|
3521
|
+
}), /* @__PURE__ */ Z(ea, {
|
|
3516
3522
|
open: p,
|
|
3517
3523
|
onClose: n,
|
|
3518
3524
|
title: e,
|
|
@@ -3553,7 +3559,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3553
3559
|
maxVisibleItems: 7,
|
|
3554
3560
|
placement: "bottom-end",
|
|
3555
3561
|
matchReferenceWidth: !1,
|
|
3556
|
-
listClassName:
|
|
3562
|
+
listClassName: Qi
|
|
3557
3563
|
}
|
|
3558
3564
|
});
|
|
3559
3565
|
if (!t?.length) {
|
|
@@ -3581,16 +3587,16 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3581
3587
|
open: p,
|
|
3582
3588
|
onOpenChange: m
|
|
3583
3589
|
});
|
|
3584
|
-
},
|
|
3590
|
+
}, na = ({ title: e, description: t, createButton: n, titleClassName: r, descriptionClassName: i }) => /* @__PURE__ */ Z($e, {
|
|
3585
3591
|
title: e,
|
|
3586
3592
|
description: t,
|
|
3587
3593
|
titleClassName: r,
|
|
3588
3594
|
descriptionClassName: i,
|
|
3589
|
-
action: n == null ? void 0 : /* @__PURE__ */ Z(
|
|
3595
|
+
action: n == null ? void 0 : /* @__PURE__ */ Z(ta, {
|
|
3590
3596
|
variant: Te.Secondary,
|
|
3591
3597
|
...n
|
|
3592
3598
|
})
|
|
3593
|
-
}),
|
|
3599
|
+
}), ra = ({ label: e, onClick: t, className: n }) => /* @__PURE__ */ Z(Fe, {
|
|
3594
3600
|
icon: /* @__PURE__ */ Z(_t, {
|
|
3595
3601
|
size: G.LG,
|
|
3596
3602
|
stroke: K,
|
|
@@ -3600,7 +3606,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3600
3606
|
tooltipProps: { tooltip: e },
|
|
3601
3607
|
onClick: t,
|
|
3602
3608
|
className: n
|
|
3603
|
-
}),
|
|
3609
|
+
}), ia = {
|
|
3604
3610
|
title: "Browse settings",
|
|
3605
3611
|
view: "View",
|
|
3606
3612
|
sorting: "Sorting",
|
|
@@ -3614,7 +3620,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3614
3620
|
back: "Back",
|
|
3615
3621
|
close: "Close",
|
|
3616
3622
|
formatFilterCount: (e, t) => `${e} of ${t}`
|
|
3617
|
-
},
|
|
3623
|
+
}, aa = {
|
|
3618
3624
|
filterBtn: "_filterBtn_1brte_7",
|
|
3619
3625
|
filterBtnActive: "_filterBtnActive_1brte_24",
|
|
3620
3626
|
filterBtnOpen: "_filterBtnOpen_1brte_28",
|
|
@@ -3626,10 +3632,10 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3626
3632
|
divider: "_divider_1brte_63",
|
|
3627
3633
|
sectionLabel: "_sectionLabel_1brte_67",
|
|
3628
3634
|
footer: "_footer_1brte_71"
|
|
3629
|
-
},
|
|
3635
|
+
}, oa = (e, n, r, i, a) => {
|
|
3630
3636
|
let o = e.size > 0;
|
|
3631
3637
|
return r && o ? `${i} · ${e.size}` : r ? i : o ? t(e, n, a) : a;
|
|
3632
|
-
},
|
|
3638
|
+
}, sa = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: o = "Topics", defaultLabel: s = "From", clearLabel: c = "Clear", applyLabel: u = "Apply", typography: d, colors: f }) => {
|
|
3633
3639
|
let p = (r ?? !1) || e.size > 0, [m, h] = U(!1), g = de({
|
|
3634
3640
|
"--cat-filter-btn-bg": f?.buttonBackground,
|
|
3635
3641
|
"--cat-filter-btn-border": f?.buttonBorder,
|
|
@@ -3647,7 +3653,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3647
3653
|
"--cat-filter-section-label": f?.sectionLabel,
|
|
3648
3654
|
"--cat-filter-divider": f?.divider,
|
|
3649
3655
|
"--cat-filter-footer-border": f?.footerBorder
|
|
3650
|
-
}), _ = V(() => n == null ? [] : [...n].sort(), [n]), v =
|
|
3656
|
+
}), _ = V(() => n == null ? [] : [...n].sort(), [n]), v = oa(e, n, r, a, s), [y, b] = U(() => new Set(e)), [x, S] = U(r ?? !1);
|
|
3651
3657
|
B(() => {
|
|
3652
3658
|
m && (b(new Set(e)), S(r ?? !1));
|
|
3653
3659
|
}, [
|
|
@@ -3694,7 +3700,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3694
3700
|
...g,
|
|
3695
3701
|
maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)"
|
|
3696
3702
|
},
|
|
3697
|
-
className: R("flex min-w-[360px] flex-col rounded-xl p-[6px]",
|
|
3703
|
+
className: R("flex min-w-[360px] flex-col rounded-xl p-[6px]", aa.overlay),
|
|
3698
3704
|
onKeyDown: M,
|
|
3699
3705
|
children: [/* @__PURE__ */ Q("div", {
|
|
3700
3706
|
role: "menu",
|
|
@@ -3706,7 +3712,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3706
3712
|
mark: Xe.Checkbox,
|
|
3707
3713
|
selected: x,
|
|
3708
3714
|
label: a,
|
|
3709
|
-
labelClassName: R(
|
|
3715
|
+
labelClassName: R(aa.rowLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
3710
3716
|
className: "shrink-0",
|
|
3711
3717
|
tabIndex: w === 0 ? 0 : -1,
|
|
3712
3718
|
ref: (e) => {
|
|
@@ -3716,11 +3722,11 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3716
3722
|
}), _.length > 0 && /* @__PURE__ */ Q(X, { children: [
|
|
3717
3723
|
/* @__PURE__ */ Z("div", {
|
|
3718
3724
|
role: "separator",
|
|
3719
|
-
className: R("my-1 h-px",
|
|
3725
|
+
className: R("my-1 h-px", aa.divider),
|
|
3720
3726
|
"aria-hidden": !0
|
|
3721
3727
|
}),
|
|
3722
3728
|
/* @__PURE__ */ Z("div", {
|
|
3723
|
-
className: R("px-[10px] pt-[10px] pb-1", d?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text",
|
|
3729
|
+
className: R("px-[10px] pt-[10px] pb-1", d?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", aa.sectionLabel),
|
|
3724
3730
|
"aria-hidden": !0,
|
|
3725
3731
|
children: o
|
|
3726
3732
|
}),
|
|
@@ -3734,7 +3740,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3734
3740
|
mark: Xe.Checkbox,
|
|
3735
3741
|
selected: n,
|
|
3736
3742
|
label: e,
|
|
3737
|
-
labelClassName:
|
|
3743
|
+
labelClassName: aa.rowLabel,
|
|
3738
3744
|
className: "shrink-0",
|
|
3739
3745
|
tabIndex: w === r ? 0 : -1,
|
|
3740
3746
|
ref: (e) => {
|
|
@@ -3746,7 +3752,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3746
3752
|
})
|
|
3747
3753
|
] })]
|
|
3748
3754
|
}), /* @__PURE__ */ Q("div", {
|
|
3749
|
-
className: R("mt-1 flex shrink-0 items-center px-1 py-3",
|
|
3755
|
+
className: R("mt-1 flex shrink-0 items-center px-1 py-3", aa.footer),
|
|
3750
3756
|
ref: O,
|
|
3751
3757
|
children: [/* @__PURE__ */ Z(Re, {
|
|
3752
3758
|
label: c,
|
|
@@ -3766,60 +3772,60 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3766
3772
|
iconBefore: /* @__PURE__ */ Z(Dt, {
|
|
3767
3773
|
size: G.SM,
|
|
3768
3774
|
stroke: K,
|
|
3769
|
-
className: R("shrink-0",
|
|
3775
|
+
className: R("shrink-0", aa.filterBtnFunnel),
|
|
3770
3776
|
"aria-hidden": !0
|
|
3771
3777
|
}),
|
|
3772
3778
|
label: v,
|
|
3773
|
-
textClassName: R(
|
|
3779
|
+
textClassName: R(aa.filterBtnLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
3774
3780
|
iconAfter: /* @__PURE__ */ Z(xt, {
|
|
3775
3781
|
size: 14,
|
|
3776
3782
|
stroke: K,
|
|
3777
|
-
className: R("shrink-0 transition-transform duration-150",
|
|
3783
|
+
className: R("shrink-0 transition-transform duration-150", aa.filterBtnChevron, m && "rotate-180"),
|
|
3778
3784
|
"aria-hidden": !0
|
|
3779
3785
|
}),
|
|
3780
|
-
className: R("h-12 shrink-0 gap-[7px] rounded-lg! px-[18px] whitespace-nowrap",
|
|
3786
|
+
className: R("h-12 shrink-0 gap-[7px] rounded-lg! px-[18px] whitespace-nowrap", aa.filterBtn, p && aa.filterBtnActive, m && aa.filterBtnOpen)
|
|
3781
3787
|
})
|
|
3782
3788
|
});
|
|
3783
|
-
},
|
|
3789
|
+
}, ca = /* @__PURE__ */ function(e) {
|
|
3784
3790
|
return e.Root = "root", e.View = "view", e.Sorting = "sorting", e.Filtering = "filtering", e;
|
|
3785
|
-
}({}),
|
|
3791
|
+
}({}), la = /* @__PURE__ */ Z(Ct, {
|
|
3786
3792
|
size: G.SM,
|
|
3787
3793
|
stroke: K,
|
|
3788
3794
|
className: "rtl:scale-x-[-1]",
|
|
3789
3795
|
"aria-hidden": !0
|
|
3790
|
-
}),
|
|
3791
|
-
let [h, g] = U(
|
|
3792
|
-
g(
|
|
3796
|
+
}), ua = ({ open: e, onClose: t, viewMode: n, onViewModeChange: r, sortOptions: i, sortKey: a, onSortChange: o, filters: s, onFiltersChange: c, filterValues: u, isMyAppsActive: d, onMyAppsChange: f, labels: p, typography: m }) => {
|
|
3797
|
+
let [h, g] = U(ca.Root), [_, v] = U(() => /* @__PURE__ */ new Set()), [y, b] = U(!1), x = V(() => u == null ? [] : [...u].sort(), [u]), S = i != null && i.length > 0, C = s.size + +!!d, w = () => {
|
|
3798
|
+
g(ca.Root), t();
|
|
3793
3799
|
}, T = () => {
|
|
3794
|
-
v(new Set(s)), b(d ?? !1), g(
|
|
3800
|
+
v(new Set(s)), b(d ?? !1), g(ca.Filtering);
|
|
3795
3801
|
}, E = () => {
|
|
3796
3802
|
c(_), f?.(y), w();
|
|
3797
3803
|
}, D = () => {
|
|
3798
3804
|
c(/* @__PURE__ */ new Set()), f?.(!1), w();
|
|
3799
3805
|
}, O = [{
|
|
3800
|
-
value:
|
|
3806
|
+
value: sn.Grid,
|
|
3801
3807
|
label: p.gridView,
|
|
3802
3808
|
Icon: At
|
|
3803
3809
|
}, {
|
|
3804
|
-
value:
|
|
3810
|
+
value: sn.Cards,
|
|
3805
3811
|
label: p.listView,
|
|
3806
3812
|
Icon: jt
|
|
3807
3813
|
}], k = {
|
|
3808
|
-
[
|
|
3809
|
-
[
|
|
3810
|
-
[
|
|
3811
|
-
[
|
|
3812
|
-
}, A = h ===
|
|
3814
|
+
[ca.Root]: p.title,
|
|
3815
|
+
[ca.View]: p.view,
|
|
3816
|
+
[ca.Sorting]: p.sorting,
|
|
3817
|
+
[ca.Filtering]: p.filtering
|
|
3818
|
+
}, A = h === ca.Filtering;
|
|
3813
3819
|
return /* @__PURE__ */ Q(xe, {
|
|
3814
3820
|
open: e,
|
|
3815
3821
|
title: k[h],
|
|
3816
|
-
onBack: h ===
|
|
3822
|
+
onBack: h === ca.Root ? void 0 : () => g(ca.Root),
|
|
3817
3823
|
backAriaLabel: p.back,
|
|
3818
3824
|
closeAriaLabel: p.close,
|
|
3819
3825
|
onClose: w,
|
|
3820
3826
|
bodyClassName: R(A && "flex flex-col"),
|
|
3821
3827
|
children: [
|
|
3822
|
-
h ===
|
|
3828
|
+
h === ca.Root && /* @__PURE__ */ Q("div", {
|
|
3823
3829
|
role: "menu",
|
|
3824
3830
|
"aria-label": p.title,
|
|
3825
3831
|
className: "p-2",
|
|
@@ -3828,27 +3834,27 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3828
3834
|
role: "menuitem",
|
|
3829
3835
|
"aria-haspopup": "menu",
|
|
3830
3836
|
label: p.view,
|
|
3831
|
-
trailing:
|
|
3832
|
-
onClick: () => g(
|
|
3837
|
+
trailing: la,
|
|
3838
|
+
onClick: () => g(ca.View)
|
|
3833
3839
|
}),
|
|
3834
3840
|
S && /* @__PURE__ */ Z(Ye, {
|
|
3835
3841
|
role: "menuitem",
|
|
3836
3842
|
"aria-haspopup": "menu",
|
|
3837
3843
|
label: p.sorting,
|
|
3838
|
-
trailing:
|
|
3839
|
-
onClick: () => g(
|
|
3844
|
+
trailing: la,
|
|
3845
|
+
onClick: () => g(ca.Sorting)
|
|
3840
3846
|
}),
|
|
3841
3847
|
/* @__PURE__ */ Z(Ye, {
|
|
3842
3848
|
role: "menuitem",
|
|
3843
3849
|
"aria-haspopup": "menu",
|
|
3844
3850
|
label: p.filtering,
|
|
3845
3851
|
description: C > 0 ? p.formatFilterCount(C, x.length + 1) : void 0,
|
|
3846
|
-
trailing:
|
|
3852
|
+
trailing: la,
|
|
3847
3853
|
onClick: T
|
|
3848
3854
|
})
|
|
3849
3855
|
]
|
|
3850
3856
|
}),
|
|
3851
|
-
h ===
|
|
3857
|
+
h === ca.View && /* @__PURE__ */ Z("div", {
|
|
3852
3858
|
role: "menu",
|
|
3853
3859
|
"aria-label": p.view,
|
|
3854
3860
|
className: "p-2",
|
|
@@ -3868,7 +3874,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3868
3874
|
}
|
|
3869
3875
|
}, e))
|
|
3870
3876
|
}),
|
|
3871
|
-
h ===
|
|
3877
|
+
h === ca.Sorting && S && /* @__PURE__ */ Z("div", {
|
|
3872
3878
|
role: "menu",
|
|
3873
3879
|
"aria-label": p.sorting,
|
|
3874
3880
|
className: "p-2",
|
|
@@ -3893,17 +3899,17 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3893
3899
|
mark: Xe.Checkbox,
|
|
3894
3900
|
selected: y,
|
|
3895
3901
|
label: p.myApps,
|
|
3896
|
-
labelClassName:
|
|
3902
|
+
labelClassName: aa.rowLabel,
|
|
3897
3903
|
className: "shrink-0",
|
|
3898
3904
|
onClick: () => b(!y)
|
|
3899
3905
|
}), x.length > 0 && /* @__PURE__ */ Q(X, { children: [
|
|
3900
3906
|
/* @__PURE__ */ Z("div", {
|
|
3901
3907
|
role: "separator",
|
|
3902
|
-
className: R("my-1 h-px",
|
|
3908
|
+
className: R("my-1 h-px", aa.divider),
|
|
3903
3909
|
"aria-hidden": !0
|
|
3904
3910
|
}),
|
|
3905
3911
|
/* @__PURE__ */ Z("div", {
|
|
3906
|
-
className: R("px-[10px] pt-[10px] pb-1", m?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text",
|
|
3912
|
+
className: R("px-[10px] pt-[10px] pb-1", m?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", aa.sectionLabel),
|
|
3907
3913
|
"aria-hidden": !0,
|
|
3908
3914
|
children: p.topics
|
|
3909
3915
|
}),
|
|
@@ -3915,14 +3921,14 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3915
3921
|
mark: Xe.Checkbox,
|
|
3916
3922
|
selected: t,
|
|
3917
3923
|
label: e,
|
|
3918
|
-
labelClassName:
|
|
3924
|
+
labelClassName: aa.rowLabel,
|
|
3919
3925
|
className: "shrink-0",
|
|
3920
3926
|
onClick: () => v(l(e, _))
|
|
3921
3927
|
}, e);
|
|
3922
3928
|
})
|
|
3923
3929
|
] })]
|
|
3924
3930
|
}), /* @__PURE__ */ Q("div", {
|
|
3925
|
-
className: R("flex shrink-0 items-center gap-3 px-4 py-3",
|
|
3931
|
+
className: R("flex shrink-0 items-center gap-3 px-4 py-3", aa.footer),
|
|
3926
3932
|
children: [/* @__PURE__ */ Z(Re, {
|
|
3927
3933
|
label: p.clear,
|
|
3928
3934
|
className: "flex-1",
|
|
@@ -3935,23 +3941,23 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3935
3941
|
})] })
|
|
3936
3942
|
]
|
|
3937
3943
|
});
|
|
3938
|
-
},
|
|
3944
|
+
}, da = {
|
|
3939
3945
|
section: "_section_mk15x_1",
|
|
3940
3946
|
divider: "_divider_mk15x_5",
|
|
3941
3947
|
settingsDot: "_settingsDot_mk15x_9",
|
|
3942
3948
|
searchField: "_searchField_mk15x_17"
|
|
3943
|
-
},
|
|
3949
|
+
}, fa = /* @__PURE__ */ new Set(), pa = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", browseHeaderRenderer: i, styles: a, query: o, onQueryChange: s, searchPlaceholder: c, searchInputRef: l, gridViewLabel: u = "Grid view", listViewLabel: d = "List view", viewToggleLabel: f = "View mode", sortKey: p, sortOptions: m, onSortChange: h, sortLabel: g = "Sort", filters: _, onFiltersChange: v, filterValues: y, isMyAppsActive: b, onMyAppsChange: x, filterFromLabel: S, filterMyAppsLabel: C, filterTopicsLabel: w, browseSettingsLabels: T }) => {
|
|
3944
3950
|
let E = pe(), D = H(null), O = H(null), k = H(null), A = H(!1), j = H(E), [M, N] = U(!1);
|
|
3945
3951
|
ye(() => {
|
|
3946
3952
|
j.current !== E && (j.current = E, (M || A.current && document.activeElement === document.body) && (N(!1), E ? O.current?.focus() : k.current?.querySelector("[role=\"radio\"]")?.focus()));
|
|
3947
3953
|
}, [E, M]);
|
|
3948
3954
|
let P = (b ?? !1) || (_?.size ?? 0) > 0, F = {
|
|
3949
|
-
...
|
|
3950
|
-
myApps: C ??
|
|
3951
|
-
topics: w ??
|
|
3955
|
+
...ia,
|
|
3956
|
+
myApps: C ?? ia.myApps,
|
|
3957
|
+
topics: w ?? ia.topics,
|
|
3952
3958
|
...T
|
|
3953
3959
|
}, ee = a?.typography?.titleClassName ?? "dial-body-semi-text", I = a?.typography?.countClassName ?? "dial-tiny-semi-text", te = V(() => [{
|
|
3954
|
-
value:
|
|
3960
|
+
value: sn.Grid,
|
|
3955
3961
|
icon: /* @__PURE__ */ Z(At, {
|
|
3956
3962
|
size: G.SM,
|
|
3957
3963
|
"aria-hidden": !0,
|
|
@@ -3959,7 +3965,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
3959
3965
|
}),
|
|
3960
3966
|
"aria-label": u
|
|
3961
3967
|
}, {
|
|
3962
|
-
value:
|
|
3968
|
+
value: sn.Cards,
|
|
3963
3969
|
icon: /* @__PURE__ */ Z(jt, {
|
|
3964
3970
|
size: G.SM,
|
|
3965
3971
|
"aria-hidden": !0,
|
|
@@ -4009,7 +4015,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4009
4015
|
value: t,
|
|
4010
4016
|
onChange: n,
|
|
4011
4017
|
items: te
|
|
4012
|
-
}), m != null && m.length > 0 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", { className: R("h-4 w-px shrink-0",
|
|
4018
|
+
}), m != null && m.length > 0 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", { className: R("h-4 w-px shrink-0", da.divider) }), /* @__PURE__ */ Z(we, {
|
|
4013
4019
|
items: ie,
|
|
4014
4020
|
label: re,
|
|
4015
4021
|
variant: Te.Primary,
|
|
@@ -4025,7 +4031,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4025
4031
|
value: o,
|
|
4026
4032
|
onChange: ne,
|
|
4027
4033
|
size: J.Large,
|
|
4028
|
-
wrapperClassName:
|
|
4034
|
+
wrapperClassName: da.searchField,
|
|
4029
4035
|
placeholder: c,
|
|
4030
4036
|
"aria-label": c,
|
|
4031
4037
|
inputRef: l
|
|
@@ -4045,10 +4051,10 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4045
4051
|
"aria-hidden": !0
|
|
4046
4052
|
})
|
|
4047
4053
|
}), P && /* @__PURE__ */ Z("span", {
|
|
4048
|
-
className: R("pointer-events-none absolute inset-e-2.5 top-2.5 size-2 rounded-full",
|
|
4054
|
+
className: R("pointer-events-none absolute inset-e-2.5 top-2.5 size-2 rounded-full", da.settingsDot),
|
|
4049
4055
|
"aria-hidden": !0
|
|
4050
4056
|
})]
|
|
4051
|
-
}), /* @__PURE__ */ Z(
|
|
4057
|
+
}), /* @__PURE__ */ Z(ua, {
|
|
4052
4058
|
open: M,
|
|
4053
4059
|
onClose: () => N(!1),
|
|
4054
4060
|
viewMode: t,
|
|
@@ -4056,15 +4062,15 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4056
4062
|
sortOptions: m,
|
|
4057
4063
|
sortKey: p,
|
|
4058
4064
|
onSortChange: h,
|
|
4059
|
-
filters: _ ??
|
|
4065
|
+
filters: _ ?? fa,
|
|
4060
4066
|
onFiltersChange: v ?? (() => void 0),
|
|
4061
4067
|
filterValues: y,
|
|
4062
4068
|
isMyAppsActive: b,
|
|
4063
4069
|
onMyAppsChange: x,
|
|
4064
4070
|
labels: F,
|
|
4065
4071
|
typography: a?.typography
|
|
4066
|
-
})] }) : /* @__PURE__ */ Z(
|
|
4067
|
-
checked: _ ??
|
|
4072
|
+
})] }) : /* @__PURE__ */ Z(sa, {
|
|
4073
|
+
checked: _ ?? fa,
|
|
4068
4074
|
onChange: v ?? (() => void 0),
|
|
4069
4075
|
values: y,
|
|
4070
4076
|
isMyAppsActive: b,
|
|
@@ -4078,15 +4084,15 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4078
4084
|
})]
|
|
4079
4085
|
})]
|
|
4080
4086
|
});
|
|
4081
|
-
},
|
|
4087
|
+
}, ma = ({ query: e, onQueryChange: t, searchPlaceholder: n = "Search models, tools, agents…", styles: r, filters: i, onFiltersChange: a, filterValues: o, isMyAppsActive: s, onMyAppsChange: c, filterFromLabel: l, filterMyAppsLabel: u, filterTopicsLabel: d, gridViewLabel: f, listViewLabel: p, viewToggleLabel: m, sortKey: h, sortOptions: g, onSortChange: _, sortLabel: v, ...y }) => {
|
|
4082
4088
|
let b = {
|
|
4083
4089
|
"--cat-browse-divider": r?.colors?.divider,
|
|
4084
4090
|
"--cat-browse-settings-dot": r?.colors?.settingsActiveDot
|
|
4085
4091
|
};
|
|
4086
4092
|
return /* @__PURE__ */ Z("section", {
|
|
4087
|
-
className: R("shrink-0 px-4",
|
|
4093
|
+
className: R("shrink-0 px-4", da.section, pn.toolbar),
|
|
4088
4094
|
style: b,
|
|
4089
|
-
children: /* @__PURE__ */ Z(
|
|
4095
|
+
children: /* @__PURE__ */ Z(pa, {
|
|
4090
4096
|
styles: r,
|
|
4091
4097
|
query: e,
|
|
4092
4098
|
onQueryChange: t,
|
|
@@ -4109,12 +4115,12 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4109
4115
|
...y
|
|
4110
4116
|
})
|
|
4111
4117
|
});
|
|
4112
|
-
},
|
|
4118
|
+
}, ha = {
|
|
4113
4119
|
root: "_root_1h83l_1",
|
|
4114
4120
|
heading: "_heading_1h83l_5",
|
|
4115
4121
|
headingTitle: "_headingTitle_1h83l_9"
|
|
4116
|
-
},
|
|
4117
|
-
let { typography: Je, headingRowClassName: Ye = "h-[64px]" } = Fe ?? {}, Xe =
|
|
4122
|
+
}, ga = 3, _a = 300, va = ({ items: e, tabs: t, topicOptions: n, favorites: i, titles: a, browseHeaderRenderer: s, onToggleFavorite: c, isFavoriteVisible: l, columnVisibility: u, onUseInChat: d, isPrimaryActionVisible: m, onShare: v, isPublishVisible: y, isPublishPrimary: b, getPublishHistory: x, publishFolderItems: C, publishExpandedPaths: w, onPublishExpandedPathsChange: T, publishLoadingPaths: E, hasPublishWriteAccess: O, publishDefaultAuthor: k, onPublish: A, onPublishSuccess: P, onPublishError: F, onCreatePublishFolder: ee, publishLabels: I, ruleSourceOptions: te, onFetchExistingRules: ne, shareOverlay: re, isShareVisible: ie, isSharePrimary: ae, onFetchDetails: L, renderCredentials: oe, onEdit: se, onDownload: ce, isDownloadVisible: le, isDownloadPrimary: ue, onLoadContentFile: de, onLoadContentFilePreview: fe, renderContentFilePreview: me, renderContentFileTree: he, onDelete: _e, onUnshare: ve, isUnshareVisible: ye, onRevokeShare: be, onFetchRecipientsCount: xe, isRevokeShareVisible: Se, onUnpublish: W, isUnpublishVisible: Ce, onLogin: we, onLogout: Te, onCreateClick: Ee, createOptions: De, createSearch: Oe, createMenuByTab: ke, hideCreateButton: G = !1, hidePageTitle: K = !1, isReadonly: q = !1, initialViewMode: Ae = sn.Grid, isFullWidth: je = !1, isFavoritesPaginationHidden: Me = !1, selectedItemId: J, onCardClick: Ne, isLoading: Pe, styles: Fe, detailsTexts: Ie, detailsLimitsFooterNote: Le, initialDetailsItemId: Re, sortKey: ze, onSortChange: Be, filterTopics: Ve, onFilterTopicsChange: He, isMyAppsActive: Ue, onMyAppsActiveChange: We, activeTab: Ge, onActiveTabChange: Ke, renderEmptyState: qe }) => {
|
|
4123
|
+
let { typography: Je, headingRowClassName: Ye = "h-[64px]" } = Fe ?? {}, Xe = xn(Fe), Ze = pe(), Qe = a?.pageTitle ?? "Catalog", $e = a?.createLabel ?? "Create", et = a?.favoritesTitle ?? "Your favorites", tt = a?.browseTitle ?? "Browse", nt = a?.searchPlaceholder ?? "Search models, tools, agents…", rt = a?.noResultsTitle ?? (() => "No items found"), it = a?.myAppsEmptyTitle ?? (() => "No personal items yet"), at = a?.myAppsEmptyDescription ?? "Create your first one, it'll show up right here.", ot = a?.featuredLabel ?? "Featured", st = a?.gridViewLabel ?? "Grid view", ct = a?.listViewLabel ?? "List view", lt = a?.viewToggleLabel ?? "View mode", ft = a?.ariaLabel ?? "Catalog", Y = a?.scrollToTopLabel ?? "Scroll to top", pt = a?.sortLabel ?? "Sort", mt = [
|
|
4118
4124
|
{
|
|
4119
4125
|
value: o.RecentlyUpdated,
|
|
4120
4126
|
label: a?.sortRecentlyUpdatedLabel ?? "Recently Updated"
|
|
@@ -4127,7 +4133,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4127
4133
|
value: o.NameAZ,
|
|
4128
4134
|
label: a?.sortNameAZLabel ?? "Name A-Z"
|
|
4129
4135
|
}
|
|
4130
|
-
], [ht, gt] = U(""), [_t, vt] = U(Ae), [yt, bt] = U(Ae ===
|
|
4136
|
+
], [ht, gt] = U(""), [_t, vt] = U(Ae), [yt, bt] = U(Ae === sn.Cards ? "shown" : "unmounted"), [xt, St] = U(o.RecentlyUpdated), [Ct, wt] = U(/* @__PURE__ */ new Set()), [Tt, Et] = U(!1), Dt = ze ?? xt, Ot = Ve ?? Ct, kt = Ue ?? Tt, At = z((e) => {
|
|
4131
4137
|
let t = e;
|
|
4132
4138
|
St(t), Be?.(t);
|
|
4133
4139
|
}, [Be]), jt = z((e) => {
|
|
@@ -4158,24 +4164,24 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4158
4164
|
B(() => () => {
|
|
4159
4165
|
tn.current !== null && clearTimeout(tn.current);
|
|
4160
4166
|
}, []);
|
|
4161
|
-
let nn = H(null),
|
|
4167
|
+
let nn = H(null), rn = H(0), an = z(async (e) => {
|
|
4162
4168
|
nn.current = e.id;
|
|
4163
|
-
let t =
|
|
4169
|
+
let t = ++rn.current;
|
|
4164
4170
|
if (L) {
|
|
4165
4171
|
en(!0);
|
|
4166
4172
|
try {
|
|
4167
4173
|
let n = await L(e);
|
|
4168
|
-
return
|
|
4174
|
+
return rn.current === t && Qt(n), n;
|
|
4169
4175
|
} finally {
|
|
4170
|
-
|
|
4176
|
+
rn.current === t && en(!1);
|
|
4171
4177
|
}
|
|
4172
4178
|
}
|
|
4173
|
-
}, [L]),
|
|
4174
|
-
for (let n = 0; n <
|
|
4175
|
-
if (nn.current !== e.id || t(await
|
|
4176
|
-
n < 2 && await p(
|
|
4179
|
+
}, [L]), $ = z(async (e) => (tn.current !== null && (clearTimeout(tn.current), tn.current = null, Xt(!0)), Jt(e), Qt(void 0), an(e)), [an]), on = z(async (e, t) => {
|
|
4180
|
+
for (let n = 0; n < ga; n++) {
|
|
4181
|
+
if (nn.current !== e.id || t(await an(e))) return;
|
|
4182
|
+
n < 2 && await p(_a);
|
|
4177
4183
|
}
|
|
4178
|
-
}, [
|
|
4184
|
+
}, [an]), cn = H(null);
|
|
4179
4185
|
B(() => {
|
|
4180
4186
|
if (!Re) {
|
|
4181
4187
|
cn.current = null;
|
|
@@ -4183,33 +4189,33 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4183
4189
|
}
|
|
4184
4190
|
if (cn.current === Re) return;
|
|
4185
4191
|
let t = e.find((e) => e.id === Re);
|
|
4186
|
-
t && (cn.current = Re,
|
|
4192
|
+
t && (cn.current = Re, $(t));
|
|
4187
4193
|
}, [
|
|
4188
4194
|
Re,
|
|
4189
4195
|
e,
|
|
4190
|
-
|
|
4196
|
+
$
|
|
4191
4197
|
]), B(() => {
|
|
4192
4198
|
if (qt == null) return;
|
|
4193
4199
|
let t = e.find((e) => e.id === qt.id);
|
|
4194
4200
|
t && t !== qt && Jt(t);
|
|
4195
4201
|
}, [e, qt]);
|
|
4196
4202
|
let ln = z(async (e, t) => {
|
|
4197
|
-
await we?.(e, t), L && await
|
|
4203
|
+
await we?.(e, t), L && await on(e, (e) => D(e?.credentials, t.level));
|
|
4198
4204
|
}, [
|
|
4199
4205
|
we,
|
|
4200
4206
|
L,
|
|
4201
|
-
|
|
4207
|
+
on
|
|
4202
4208
|
]), un = z(async (e, t) => {
|
|
4203
|
-
await Te?.(e, t), L && await
|
|
4209
|
+
await Te?.(e, t), L && await on(e, (e) => !D(e?.credentials, t.level));
|
|
4204
4210
|
}, [
|
|
4205
4211
|
Te,
|
|
4206
4212
|
L,
|
|
4207
|
-
|
|
4208
|
-
]),
|
|
4209
|
-
Xt(!1), nn.current = null,
|
|
4213
|
+
on
|
|
4214
|
+
]), dn = z(() => {
|
|
4215
|
+
Xt(!1), nn.current = null, rn.current += 1, tn.current !== null && clearTimeout(tn.current), tn.current = setTimeout(() => {
|
|
4210
4216
|
tn.current = null, Jt(null), Qt(void 0), en(!1);
|
|
4211
4217
|
}, 300);
|
|
4212
|
-
}, []),
|
|
4218
|
+
}, []), fn = V(() => {
|
|
4213
4219
|
if (qt == null) return null;
|
|
4214
4220
|
if (Zt == null) return qt;
|
|
4215
4221
|
let { credentials: e, ...t } = Zt;
|
|
@@ -4218,7 +4224,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4218
4224
|
details: t,
|
|
4219
4225
|
credentials: e ?? qt.credentials
|
|
4220
4226
|
};
|
|
4221
|
-
}, [qt, Zt]),
|
|
4227
|
+
}, [qt, Zt]), mn = V(() => r(Nt, Dt), [Nt, Dt]), hn = V(() => M(mn, ht), [mn, ht]), _n = V(() => Ot.size > 0 ? f(hn, Ot) : hn, [hn, Ot]), vn = V(() => kt ? N(_n) : _n, [_n, kt]), Sn = V(() => Bt ? vn.filter((e) => S(e).includes(Bt)) : vn, [vn, Bt]);
|
|
4222
4228
|
B(() => {
|
|
4223
4229
|
if (yt !== "unmounted" || Pe || Sn.length === 0) return;
|
|
4224
4230
|
let e = () => {
|
|
@@ -4244,13 +4250,13 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4244
4250
|
return () => cancelAnimationFrame(e);
|
|
4245
4251
|
}, [qt]);
|
|
4246
4252
|
let wn = z((e) => {
|
|
4247
|
-
e ===
|
|
4248
|
-
}, []), Tn = !G && !q, En = Tn && Ze, [Dn, On] = U(null), kn = H(null), An = H(null), { isVisible: jn, handleRowsScroll: Mn, scrollToTop: Nn } =
|
|
4253
|
+
e === sn.Cards && bt("shown"), vt(e);
|
|
4254
|
+
}, []), Tn = !G && !q, En = Tn && Ze, [Dn, On] = U(null), kn = H(null), An = H(null), { isVisible: jn, handleRowsScroll: Mn, scrollToTop: Nn } = gn({
|
|
4249
4255
|
scrollBody: Dn,
|
|
4250
4256
|
searchInputRef: kn,
|
|
4251
4257
|
listViewRef: An,
|
|
4252
|
-
isListView: _t ===
|
|
4253
|
-
}), Pn = Ut && !q, Fn = ht !== "" || Ot.size > 0, In = Fn ? rt(ht, Bt) : _(a?.emptyTitle, Bt) ?? "No items yet", Ln = Fn ? a?.noResultsDescription ?? "Try a different search term or check your filters." : _(a?.emptyDescription, Bt), { copyCodeAriaLabel: Rn, copiedCodeStatusLabel: zn, downloadCodeAriaLabel: Bn, tableScrollRegionAriaLabel: Vn, mathScrollRegionAriaLabel: Hn } = Ie ?? {}, Un = V(() =>
|
|
4258
|
+
isListView: _t === sn.Cards
|
|
4259
|
+
}), Pn = Ut && !q, Fn = ht !== "" || Ot.size > 0, In = Fn ? rt(ht, Bt) : _(a?.emptyTitle, Bt) ?? "No items yet", Ln = Fn ? a?.noResultsDescription ?? "Try a different search term or check your filters." : _(a?.emptyDescription, Bt), { copyCodeAriaLabel: Rn, copiedCodeStatusLabel: zn, downloadCodeAriaLabel: Bn, tableScrollRegionAriaLabel: Vn, mathScrollRegionAriaLabel: Hn } = Ie ?? {}, Un = V(() => bn({
|
|
4254
4260
|
copyCodeAriaLabel: Rn,
|
|
4255
4261
|
copiedCodeStatusLabel: zn,
|
|
4256
4262
|
downloadCodeAriaLabel: Bn,
|
|
@@ -4274,12 +4280,12 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4274
4280
|
ot,
|
|
4275
4281
|
a?.noFolderLabel,
|
|
4276
4282
|
Ie?.credentialsBadgeLoggedOutLabel
|
|
4277
|
-
]), Gn = !Pe && Sn.length === 0,
|
|
4283
|
+
]), Gn = !Pe && Sn.length === 0, Kn = Gn ? qe?.({
|
|
4278
4284
|
query: ht,
|
|
4279
4285
|
activeTab: Bt,
|
|
4280
4286
|
hasTopicFilters: Ot.size > 0,
|
|
4281
4287
|
isMyAppsActive: kt
|
|
4282
|
-
}) : void 0,
|
|
4288
|
+
}) : void 0, qn = Gn && kt && !ht && Ot.size === 0 && (ke == null || ke[Bt] != null), Yn = {
|
|
4283
4289
|
label: $e,
|
|
4284
4290
|
options: De,
|
|
4285
4291
|
onClick: Ee,
|
|
@@ -4291,28 +4297,28 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4291
4297
|
closeLabel: a?.createMenuCloseLabel,
|
|
4292
4298
|
colors: Fe?.colors?.createMenu,
|
|
4293
4299
|
sectionHeaderClassName: Je?.createMenuSectionHeaderClassName
|
|
4294
|
-
}, Xn = ke ?
|
|
4300
|
+
}, Xn = ke ? yn(ke[Bt]) : Yn, Zn = Tn && Xn != null ? {
|
|
4295
4301
|
...Yn,
|
|
4296
4302
|
...Xn
|
|
4297
4303
|
} : void 0;
|
|
4298
4304
|
return Pe ? /* @__PURE__ */ Z("div", {
|
|
4299
4305
|
className: "flex size-full min-h-0 flex-1 items-center justify-center",
|
|
4300
|
-
children: /* @__PURE__ */ Z(ut, {})
|
|
4306
|
+
children: /* @__PURE__ */ Z(ut, { ariaLabel: a?.loadingLabel ?? "Loading…" })
|
|
4301
4307
|
}) : /* @__PURE__ */ Q("section", {
|
|
4302
4308
|
"aria-label": ft,
|
|
4303
|
-
className: R("relative flex size-full min-h-0 flex-1 flex-col",
|
|
4309
|
+
className: R("relative flex size-full min-h-0 flex-1 flex-col", ha.root, pn.root),
|
|
4304
4310
|
style: Xe,
|
|
4305
4311
|
children: [
|
|
4306
4312
|
(!K || Tn) && /* @__PURE__ */ Z("div", {
|
|
4307
|
-
className: R("shrink-0",
|
|
4313
|
+
className: R("shrink-0", ha.heading),
|
|
4308
4314
|
children: /* @__PURE__ */ Q("div", {
|
|
4309
4315
|
className: R("flex w-full items-center justify-between px-4 desktop:px-8", !(K && En) && Ye),
|
|
4310
4316
|
children: [!K && /* @__PURE__ */ Z("h1", {
|
|
4311
|
-
className: R(Je?.pageHeadingFontClassName ?? "dial-display2-text",
|
|
4317
|
+
className: R(Je?.pageHeadingFontClassName ?? "dial-display2-text", ha.headingTitle),
|
|
4312
4318
|
children: Qe
|
|
4313
4319
|
}), Tn && /* @__PURE__ */ Z("div", {
|
|
4314
4320
|
className: En ? "absolute inset-e-4 bottom-4 z-10" : void 0,
|
|
4315
|
-
children: /* @__PURE__ */ Z(
|
|
4321
|
+
children: /* @__PURE__ */ Z(ta, {
|
|
4316
4322
|
...Yn,
|
|
4317
4323
|
isFloating: En
|
|
4318
4324
|
})
|
|
@@ -4321,7 +4327,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4321
4327
|
}),
|
|
4322
4328
|
jn && /* @__PURE__ */ Z("div", {
|
|
4323
4329
|
className: R("absolute inset-e-4 z-10", En ? "bottom-20" : "bottom-4"),
|
|
4324
|
-
children: /* @__PURE__ */ Z(
|
|
4330
|
+
children: /* @__PURE__ */ Z(ra, {
|
|
4325
4331
|
label: Y,
|
|
4326
4332
|
onClick: Nn
|
|
4327
4333
|
})
|
|
@@ -4332,13 +4338,13 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4332
4338
|
children: [
|
|
4333
4339
|
Pn && /* @__PURE__ */ Z("div", {
|
|
4334
4340
|
className: "w-full px-4 desktop:px-8",
|
|
4335
|
-
children: /* @__PURE__ */ Z(
|
|
4341
|
+
children: /* @__PURE__ */ Z(ki, {
|
|
4336
4342
|
items: Pt,
|
|
4337
4343
|
totalCount: Pt.length,
|
|
4338
4344
|
title: et,
|
|
4339
4345
|
onToggleFavorite: c,
|
|
4340
4346
|
isFavoriteVisible: l,
|
|
4341
|
-
onItemClick: Ne ??
|
|
4347
|
+
onItemClick: Ne ?? $,
|
|
4342
4348
|
isLeaving: Kt,
|
|
4343
4349
|
onExitComplete: Gt,
|
|
4344
4350
|
selectedItemId: J,
|
|
@@ -4348,8 +4354,8 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4348
4354
|
}),
|
|
4349
4355
|
/* @__PURE__ */ Z("div", {
|
|
4350
4356
|
className: "w-full pt-6 desktop:px-4",
|
|
4351
|
-
children: /* @__PURE__ */ Z(
|
|
4352
|
-
totalCount:
|
|
4357
|
+
children: /* @__PURE__ */ Z(ma, {
|
|
4358
|
+
totalCount: vn.length,
|
|
4353
4359
|
viewMode: _t,
|
|
4354
4360
|
onViewModeChange: wn,
|
|
4355
4361
|
sortKey: Dt,
|
|
@@ -4385,7 +4391,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4385
4391
|
tabs: It.map((e) => ({
|
|
4386
4392
|
id: e.id,
|
|
4387
4393
|
label: typeof e.label == "string" ? e.label : String(e.label),
|
|
4388
|
-
count:
|
|
4394
|
+
count: vn.filter((t) => S(t).includes(e.id)).length
|
|
4389
4395
|
})),
|
|
4390
4396
|
activeTabId: Bt,
|
|
4391
4397
|
onTabChange: Ht
|
|
@@ -4394,21 +4400,21 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4394
4400
|
/* @__PURE__ */ Q("div", {
|
|
4395
4401
|
className: R(Sn.length > 0 ? ["w-full flex-1 px-4 py-6 desktop:px-8", !je && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", Sn.length === 0 && "px-4 py-6 desktop:px-8"),
|
|
4396
4402
|
children: [
|
|
4397
|
-
|
|
4398
|
-
|
|
4403
|
+
Kn != null && Kn,
|
|
4404
|
+
Kn == null && qn && /* @__PURE__ */ Z(na, {
|
|
4399
4405
|
title: it(Bt),
|
|
4400
4406
|
description: at,
|
|
4401
4407
|
createButton: Zn
|
|
4402
4408
|
}),
|
|
4403
|
-
|
|
4404
|
-
inert: _t !==
|
|
4405
|
-
className: R(Sn.length > 0 ? "pb-8" : "size-full flex-1", _t !==
|
|
4406
|
-
children: /* @__PURE__ */ Z(
|
|
4409
|
+
Kn == null && !qn && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", {
|
|
4410
|
+
inert: _t !== sn.Grid,
|
|
4411
|
+
className: R(Sn.length > 0 ? "pb-8" : "size-full flex-1", _t !== sn.Grid && "hidden"),
|
|
4412
|
+
children: /* @__PURE__ */ Z(Jn, {
|
|
4407
4413
|
items: Sn,
|
|
4408
4414
|
query: ht,
|
|
4409
4415
|
onToggleFavorite: c,
|
|
4410
4416
|
isFavoriteVisible: l,
|
|
4411
|
-
onItemClick: Ne ??
|
|
4417
|
+
onItemClick: Ne ?? $,
|
|
4412
4418
|
titles: Wn,
|
|
4413
4419
|
selectedItemId: J,
|
|
4414
4420
|
isReadonly: q,
|
|
@@ -4418,9 +4424,9 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4418
4424
|
activeTab: Bt
|
|
4419
4425
|
})
|
|
4420
4426
|
}), yt !== "unmounted" && /* @__PURE__ */ Z("div", {
|
|
4421
|
-
inert: _t !==
|
|
4422
|
-
className: R(_t ===
|
|
4423
|
-
children: /* @__PURE__ */ Z(
|
|
4427
|
+
inert: _t !== sn.Cards,
|
|
4428
|
+
className: R(_t === sn.Cards && "h-full min-h-[360px] pb-8", _t !== sn.Cards && (yt === "prepared" ? "invisible h-0 overflow-hidden" : "hidden")),
|
|
4429
|
+
children: /* @__PURE__ */ Z(Zi, {
|
|
4424
4430
|
ref: An,
|
|
4425
4431
|
onRowsScroll: Mn,
|
|
4426
4432
|
type: Bt,
|
|
@@ -4433,7 +4439,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4433
4439
|
onToggleFavorite: c,
|
|
4434
4440
|
isFavoriteVisible: l,
|
|
4435
4441
|
columnVisibility: u,
|
|
4436
|
-
onItemClick: Ne ??
|
|
4442
|
+
onItemClick: Ne ?? $,
|
|
4437
4443
|
selectedItemId: J,
|
|
4438
4444
|
credentialsBadgeLoggedOutLabel: Ie?.credentialsBadgeLoggedOutLabel,
|
|
4439
4445
|
isReadonly: q
|
|
@@ -4443,14 +4449,14 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4443
4449
|
})
|
|
4444
4450
|
]
|
|
4445
4451
|
}),
|
|
4446
|
-
|
|
4452
|
+
fn != null && /* @__PURE__ */ Z(xi, {
|
|
4447
4453
|
renderCredentials: oe,
|
|
4448
|
-
item:
|
|
4454
|
+
item: fn,
|
|
4449
4455
|
isOpen: Yt,
|
|
4450
4456
|
isStarred: Cn,
|
|
4451
4457
|
isDetailsLoading: $t,
|
|
4452
4458
|
isReadonly: q,
|
|
4453
|
-
onClose:
|
|
4459
|
+
onClose: dn,
|
|
4454
4460
|
onToggleFavorite: c,
|
|
4455
4461
|
isFavoriteVisible: l,
|
|
4456
4462
|
onUseInChat: d,
|
|
@@ -4499,15 +4505,15 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4499
4505
|
})
|
|
4500
4506
|
]
|
|
4501
4507
|
});
|
|
4502
|
-
},
|
|
4508
|
+
}, ya = /* @__PURE__ */ function(e) {
|
|
4503
4509
|
return e.Loading = "loading", e.Ready = "ready", e.Error = "error", e;
|
|
4504
|
-
}({}),
|
|
4510
|
+
}({}), ba = { footer: "_footer_3lud6_1" }, xa = {
|
|
4505
4511
|
overlayClassName: "p-4 max-[767px]:p-0 !overflow-hidden",
|
|
4506
4512
|
className: "rounded-xl max-[767px]:h-full max-[767px]:rounded-none",
|
|
4507
4513
|
headerClassName: "px-6 py-4 max-[767px]:px-4 max-[767px]:py-3",
|
|
4508
4514
|
footerClassName: "px-6 py-4 max-[767px]:px-4 max-[767px]:py-3"
|
|
4509
|
-
},
|
|
4510
|
-
let [h, g] = U(""), [_, v] = U(() => /* @__PURE__ */ new Set()), [y, b] = U(!1), [x, S] = U(o.RecentlyUpdated), [C, w] = U(null), T = H(null), E = H(null), { isVisible: D, handleRowsScroll: O, scrollToTop: k } =
|
|
4515
|
+
}, Sa = ({ items: e, labels: t, status: n, error: r, onRetry: i, isConfirmDisabled: a = !1, footerStart: s, colors: l, headingClassName: u = "dial-body-semi-text", onConfirm: d, onClose: f, listProps: p, renderList: m }) => {
|
|
4516
|
+
let [h, g] = U(""), [_, v] = U(() => /* @__PURE__ */ new Set()), [y, b] = U(!1), [x, S] = U(o.RecentlyUpdated), [C, w] = U(null), T = H(null), E = H(null), { isVisible: D, handleRowsScroll: O, scrollToTop: k } = gn({
|
|
4511
4517
|
scrollBody: C,
|
|
4512
4518
|
searchInputRef: E,
|
|
4513
4519
|
listViewRef: T,
|
|
@@ -4520,7 +4526,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4520
4526
|
T.current = e, typeof N == "function" ? N(e) : N != null && (N.current = e);
|
|
4521
4527
|
}, [N]), F = p?.onRowsScroll, ee = z((e) => {
|
|
4522
4528
|
O(e), F?.(e);
|
|
4523
|
-
}, [O, F]), I = n ===
|
|
4529
|
+
}, [O, F]), I = n === ya.Ready, te = I && !a, ne = t.cancel ?? "Cancel", re = t.add ?? "Add", ie = V(() => j(e), [e]), L = V(() => c(e, {
|
|
4524
4530
|
search: h,
|
|
4525
4531
|
topics: _,
|
|
4526
4532
|
isMyOnly: y,
|
|
@@ -4572,7 +4578,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4572
4578
|
te,
|
|
4573
4579
|
ue
|
|
4574
4580
|
]), fe = s == null ? void 0 : /* @__PURE__ */ Q("div", {
|
|
4575
|
-
className: pt("flex flex-wrap items-center justify-between gap-2 border-t",
|
|
4581
|
+
className: pt("flex flex-wrap items-center justify-between gap-2 border-t", ba.footer, xa.footerClassName),
|
|
4576
4582
|
style: de({ "--cat-picker-footer-border": l?.footerBorder }),
|
|
4577
4583
|
children: [/* @__PURE__ */ Z("div", {
|
|
4578
4584
|
className: "flex flex-wrap items-center gap-4",
|
|
@@ -4590,7 +4596,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4590
4596
|
})]
|
|
4591
4597
|
})]
|
|
4592
4598
|
}), pe = () => {
|
|
4593
|
-
if (n ===
|
|
4599
|
+
if (n === ya.Loading) return /* @__PURE__ */ Z("div", {
|
|
4594
4600
|
className: "flex items-center justify-center py-16",
|
|
4595
4601
|
children: /* @__PURE__ */ Z(ut, {
|
|
4596
4602
|
size: 32,
|
|
@@ -4598,7 +4604,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4598
4604
|
ariaLabel: t.loading ?? "Loading"
|
|
4599
4605
|
})
|
|
4600
4606
|
});
|
|
4601
|
-
if (n ===
|
|
4607
|
+
if (n === ya.Error) return /* @__PURE__ */ Q("div", {
|
|
4602
4608
|
className: "flex flex-col items-center justify-center gap-3 py-8",
|
|
4603
4609
|
children: [/* @__PURE__ */ Z($e, {
|
|
4604
4610
|
title: t.failedToLoad ?? "Failed to load",
|
|
@@ -4618,7 +4624,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4618
4624
|
return m ? m(L, h) : /* @__PURE__ */ Q("div", {
|
|
4619
4625
|
ref: M,
|
|
4620
4626
|
className: "relative min-h-0 flex-1",
|
|
4621
|
-
children: [/* @__PURE__ */ Z(
|
|
4627
|
+
children: [/* @__PURE__ */ Z(Zi, {
|
|
4622
4628
|
ariaLabel: t.catalog,
|
|
4623
4629
|
...p,
|
|
4624
4630
|
ref: P,
|
|
@@ -4627,7 +4633,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4627
4633
|
query: h
|
|
4628
4634
|
}), D && /* @__PURE__ */ Z("div", {
|
|
4629
4635
|
className: "absolute inset-e-4 bottom-4 z-10",
|
|
4630
|
-
children: /* @__PURE__ */ Z(
|
|
4636
|
+
children: /* @__PURE__ */ Z(ra, {
|
|
4631
4637
|
label: t.scrollToTop ?? "Scroll to top",
|
|
4632
4638
|
onClick: k
|
|
4633
4639
|
})
|
|
@@ -4640,7 +4646,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4640
4646
|
headerDivider: !0,
|
|
4641
4647
|
footerDivider: !0,
|
|
4642
4648
|
size: tt.Lg,
|
|
4643
|
-
...
|
|
4649
|
+
...xa,
|
|
4644
4650
|
closeAriaLabel: t.closeDialog ?? "Close dialog",
|
|
4645
4651
|
bodyClassName: "flex min-h-0 flex-col overflow-hidden px-6 py-2 h-[70vh] max-[767px]:h-auto max-[767px]:px-4",
|
|
4646
4652
|
mainButtons: R,
|
|
@@ -4679,7 +4685,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4679
4685
|
clearLabel: t.clearSearch ?? "Clear search",
|
|
4680
4686
|
inputRef: E
|
|
4681
4687
|
})
|
|
4682
|
-
}), /* @__PURE__ */ Z(
|
|
4688
|
+
}), /* @__PURE__ */ Z(sa, {
|
|
4683
4689
|
checked: _,
|
|
4684
4690
|
onChange: v,
|
|
4685
4691
|
values: ie,
|
|
@@ -4694,14 +4700,14 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4694
4700
|
})]
|
|
4695
4701
|
}), pe()]
|
|
4696
4702
|
});
|
|
4697
|
-
},
|
|
4703
|
+
}, Ca = ({ type: e, items: t, attachedIds: n, labels: r, status: i, error: a, onRetry: o, listProps: s, renderFooterStart: c, onConfirm: l, onClose: d, headingClassName: f }) => {
|
|
4698
4704
|
let [p, m] = U(() => new Set(n)), h = V(() => new Set(t.map((e) => e.id)), [t]), { selectRow: g } = r, _ = z((e) => g ? g(e.name) : `Select ${e.name}`, [g]), v = z(() => l(u(n, p, h)), [
|
|
4699
4705
|
l,
|
|
4700
4706
|
n,
|
|
4701
4707
|
p,
|
|
4702
4708
|
h
|
|
4703
4709
|
]);
|
|
4704
|
-
return /* @__PURE__ */ Z(
|
|
4710
|
+
return /* @__PURE__ */ Z(Sa, {
|
|
4705
4711
|
items: t,
|
|
4706
4712
|
labels: r,
|
|
4707
4713
|
status: i,
|
|
@@ -4714,18 +4720,18 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4714
4720
|
listProps: {
|
|
4715
4721
|
...s,
|
|
4716
4722
|
type: e,
|
|
4717
|
-
selectionMode:
|
|
4723
|
+
selectionMode: cn.Multiple,
|
|
4718
4724
|
selectedItemIds: p,
|
|
4719
4725
|
onSelectionChange: m,
|
|
4720
4726
|
selectRowAriaLabel: _,
|
|
4721
4727
|
selectAllAriaLabel: r.selectAll ?? "Select all"
|
|
4722
4728
|
}
|
|
4723
4729
|
});
|
|
4724
|
-
},
|
|
4730
|
+
}, wa = {
|
|
4725
4731
|
row: "_row_xykcx_1",
|
|
4726
4732
|
focusable: "_focusable_xykcx_5",
|
|
4727
4733
|
description: "_description_xykcx_9"
|
|
4728
|
-
},
|
|
4734
|
+
}, Ta = "group relative flex min-w-0 items-center gap-1 rounded-[10px] pe-1", Ea = "outline-hidden focus-visible:outline", Da = ({ name: e, version: t, iconUrl: n, fileType: r, iconSize: i = 36, path: a, description: o, trailing: s, credentials: c, labels: l, colors: u, titleClassName: d = "dial-small-semi-text", versionClassName: f = "dial-tiny-text", descriptionClassName: p = "dial-tiny-text", isDisabled: m = !1, onOpen: h, onRemove: g }) => {
|
|
4729
4735
|
let _ = _e(), v = _e(), y = o != null && o !== "", b = de({
|
|
4730
4736
|
"--cat-add-on-row-hover-bg": u?.rowHoverBackground,
|
|
4731
4737
|
"--cat-add-on-focus-outline": u?.focusOutline,
|
|
@@ -4750,17 +4756,17 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4750
4756
|
src: n,
|
|
4751
4757
|
initialsName: e,
|
|
4752
4758
|
styles: { badgeClassName: "rounded-[10px]" }
|
|
4753
|
-
}), c && /* @__PURE__ */ Z(
|
|
4759
|
+
}), c && /* @__PURE__ */ Z(Fn, {
|
|
4754
4760
|
credentials: c,
|
|
4755
4761
|
loggedOutLabel: l?.credentialsBadge
|
|
4756
4762
|
})]
|
|
4757
4763
|
}), S = y && /* @__PURE__ */ Z("span", {
|
|
4758
4764
|
id: v,
|
|
4759
|
-
className: pt("truncate",
|
|
4765
|
+
className: pt("truncate", wa.description, p),
|
|
4760
4766
|
children: o
|
|
4761
4767
|
}), C = { "aria-describedby": y ? v : void 0 };
|
|
4762
4768
|
return /* @__PURE__ */ Q("div", {
|
|
4763
|
-
className: pt(
|
|
4769
|
+
className: pt(Ta, wa.row),
|
|
4764
4770
|
style: b,
|
|
4765
4771
|
children: [
|
|
4766
4772
|
a ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("button", {
|
|
@@ -4768,7 +4774,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4768
4774
|
"aria-label": e,
|
|
4769
4775
|
...C,
|
|
4770
4776
|
disabled: m,
|
|
4771
|
-
className: pt("absolute inset-0 rounded-[10px] bg-transparent",
|
|
4777
|
+
className: pt("absolute inset-0 rounded-[10px] bg-transparent", Ea, wa.focusable),
|
|
4772
4778
|
onClick: h
|
|
4773
4779
|
}), /* @__PURE__ */ Q("span", {
|
|
4774
4780
|
className: "pointer-events-none flex min-w-0 flex-1 items-center gap-2.5 py-1",
|
|
@@ -4784,7 +4790,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4784
4790
|
"aria-labelledby": _,
|
|
4785
4791
|
...C,
|
|
4786
4792
|
disabled: m,
|
|
4787
|
-
className: pt("flex min-w-0 flex-1 items-center gap-2.5 rounded-[10px] py-1 text-start",
|
|
4793
|
+
className: pt("flex min-w-0 flex-1 items-center gap-2.5 rounded-[10px] py-1 text-start", Ea, wa.focusable),
|
|
4788
4794
|
onClick: h,
|
|
4789
4795
|
children: [x, /* @__PURE__ */ Q("span", {
|
|
4790
4796
|
className: "flex min-w-0 flex-1 flex-col",
|
|
@@ -4823,7 +4829,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4823
4829
|
})
|
|
4824
4830
|
]
|
|
4825
4831
|
});
|
|
4826
|
-
},
|
|
4832
|
+
}, Oa = (e) => {
|
|
4827
4833
|
let t = H(null), n = H(e);
|
|
4828
4834
|
return B(() => {
|
|
4829
4835
|
let r = e < n.current;
|
|
@@ -4833,7 +4839,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4833
4839
|
let a = t.current;
|
|
4834
4840
|
(a?.querySelector("ul button") ?? a?.querySelector("button"))?.focus();
|
|
4835
4841
|
}, [e]), t;
|
|
4836
|
-
},
|
|
4842
|
+
}, ka = ({ selectedId: e, records: t, selectedLabel: n, placeholder: r, labels: i, onSelect: a, onBrowse: o, extraOptions: s = [], isLoading: c = !1, error: l, isDisabled: u = !1, isInvalid: d = !1, labelledById: f, ariaHasPopup: p = "listbox", className: m, panelClassName: h, iconAfter: g, renderPanel: _, open: v, onOpenChange: y, renderOverlay: b }) => {
|
|
4837
4843
|
let [x, S] = U(!1), C = v ?? x, w = (e) => {
|
|
4838
4844
|
e && u || (v === void 0 && S(e), y?.(e));
|
|
4839
4845
|
}, [T, E] = U(""), D = H(null), O = V(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
|
|
@@ -4905,7 +4911,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4905
4911
|
},
|
|
4906
4912
|
readOnly: !0,
|
|
4907
4913
|
role: "combobox",
|
|
4908
|
-
"aria-haspopup": p,
|
|
4914
|
+
"aria-haspopup": b ? p : void 0,
|
|
4909
4915
|
"aria-expanded": C,
|
|
4910
4916
|
"aria-labelledby": f,
|
|
4911
4917
|
disabled: u,
|
|
@@ -4930,12 +4936,15 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4930
4936
|
disabled: u,
|
|
4931
4937
|
className: "w-full",
|
|
4932
4938
|
listClassName: "w-[min(var(--reference-width),calc(100vw-2rem))] max-w-full",
|
|
4939
|
+
overlayRole: Me.Dialog,
|
|
4940
|
+
overlayAriaLabel: i.panelAriaLabel ?? "Select model",
|
|
4941
|
+
optionArrowNavigation: !0,
|
|
4933
4942
|
renderOverlay: () => P,
|
|
4934
4943
|
children: F
|
|
4935
4944
|
});
|
|
4936
|
-
},
|
|
4945
|
+
}, Aa = /* @__PURE__ */ function(e) {
|
|
4937
4946
|
return e.Sectioned = "sectioned", e.Flat = "flat", e;
|
|
4938
|
-
}({}),
|
|
4947
|
+
}({}), ja = {
|
|
4939
4948
|
rowEnter: "_rowEnter_2utoo_3",
|
|
4940
4949
|
rowFadeIn: "_rowFadeIn_2utoo_1",
|
|
4941
4950
|
rowLeaving: "_rowLeaving_2utoo_7",
|
|
@@ -4947,11 +4956,11 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4947
4956
|
starFilledIcon: "_starFilledIcon_2utoo_56",
|
|
4948
4957
|
footer: "_footer_2utoo_60",
|
|
4949
4958
|
listContent: "_listContent_2utoo_68"
|
|
4950
|
-
},
|
|
4959
|
+
}, Ma = 180, Na = (e, t) => {
|
|
4951
4960
|
let n = t.toLowerCase();
|
|
4952
4961
|
return e.name.toLowerCase().includes(n) || e.topics.some((e) => e.toLowerCase().includes(n)) || e.folder.some((e) => e.toLowerCase().includes(n));
|
|
4953
|
-
},
|
|
4954
|
-
let { searchPlaceholder: b = "Search models, agents…", clearSearchLabel: x = "Clear search", favoritesLabel: S = "Favorites", emptyHint: C = "Star a model or agent to pin it here.", browseCatalogLabel: w = "Catalog", removeFromFavoritesLabel: T = "Remove from favorites", currentlySelectedLabel: E = "Currently selected", addToFavoritesLabel: D = "Add to favorites", listAriaLabel: O = "Select model", unavailableLabel: k = "Unavailable" } = m, A = l ===
|
|
4962
|
+
}, Pa = (e) => S(e).some((e) => e === P.Model || e === P.Agent), Fa = [], Ia = ({ searchQuery: e, onSearchQueryChange: t, favorites: n, extraOptions: r = Fa, pinnedItem: i, canFavoritePinnedItem: a = !0, selectedId: o, selectedItem: s, isSelectableItem: c = Pa, layout: l = Aa.Sectioned, onSelect: u, onToggleFavorite: d, onBrowseCatalog: f, onClose: p, labels: m = {}, colors: h, sectionHeadingClassName: g = "dial-tiny-lead-semi-text", itemNameClassName: _ = "dial-small-text", emptyHintClassName: v = "dial-small-text", className: y }) => {
|
|
4963
|
+
let { searchPlaceholder: b = "Search models, agents…", clearSearchLabel: x = "Clear search", favoritesLabel: S = "Favorites", emptyHint: C = "Star a model or agent to pin it here.", browseCatalogLabel: w = "Catalog", removeFromFavoritesLabel: T = "Remove from favorites", currentlySelectedLabel: E = "Currently selected", addToFavoritesLabel: D = "Add to favorites", listAriaLabel: O = "Select model", unavailableLabel: k = "Unavailable" } = m, A = l === Aa.Sectioned, [j, M] = U(""), N = e ?? j, P = (e) => {
|
|
4955
4964
|
M(e ?? ""), t?.(e ?? "");
|
|
4956
4965
|
}, [F, ee] = U(/* @__PURE__ */ new Set()), I = H(/* @__PURE__ */ new Map());
|
|
4957
4966
|
B(() => {
|
|
@@ -4964,9 +4973,9 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4964
4973
|
n,
|
|
4965
4974
|
i,
|
|
4966
4975
|
c
|
|
4967
|
-
]), re = V(() => new Set(n.map((e) => e.id)), [n]), ie = N.trim(), ae = s != null && ne.some((e) => e.id === s.id), L = s != null && c(s) && (A || !ae) && (!ie ||
|
|
4976
|
+
]), re = V(() => new Set(n.map((e) => e.id)), [n]), ie = N.trim(), ae = s != null && ne.some((e) => e.id === s.id), L = s != null && c(s) && (A || !ae) && (!ie || Na(s, N)), oe = V(() => {
|
|
4968
4977
|
let e = A ? ne.filter((e) => e.id !== s?.id) : ne;
|
|
4969
|
-
return ie ? e.filter((e) =>
|
|
4978
|
+
return ie ? e.filter((e) => Na(e, N)) : e;
|
|
4970
4979
|
}, [
|
|
4971
4980
|
ne,
|
|
4972
4981
|
A,
|
|
@@ -4986,7 +4995,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
4986
4995
|
]);
|
|
4987
4996
|
let he = H(null), ge = H(null);
|
|
4988
4997
|
B(() => {
|
|
4989
|
-
ge.current && he.current &&
|
|
4998
|
+
ge.current && he.current && Tn(ge.current, he.current);
|
|
4990
4999
|
}, []);
|
|
4991
5000
|
let z = pe(), _e = H(null);
|
|
4992
5001
|
B(() => {
|
|
@@ -5003,7 +5012,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5003
5012
|
let n = new Set(t);
|
|
5004
5013
|
return n.delete(e), n;
|
|
5005
5014
|
}), I.current.delete(e);
|
|
5006
|
-
},
|
|
5015
|
+
}, Ma);
|
|
5007
5016
|
I.current.set(e, n);
|
|
5008
5017
|
}, Se = (e) => ie ? /* @__PURE__ */ Z(Be, {
|
|
5009
5018
|
text: e,
|
|
@@ -5032,7 +5041,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5032
5041
|
return /* @__PURE__ */ Z("li", {
|
|
5033
5042
|
role: "none",
|
|
5034
5043
|
ref: n ? he : void 0,
|
|
5035
|
-
className: l ?
|
|
5044
|
+
className: l ? ja.rowLeaving : ja.rowEnter,
|
|
5036
5045
|
children: /* @__PURE__ */ Z(Ye, {
|
|
5037
5046
|
role: "menuitemradio",
|
|
5038
5047
|
"aria-checked": n,
|
|
@@ -5062,7 +5071,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5062
5071
|
}),
|
|
5063
5072
|
selectedIcon: /* @__PURE__ */ Z(zt, {
|
|
5064
5073
|
size: G.SM,
|
|
5065
|
-
className:
|
|
5074
|
+
className: ja.starFilledIcon,
|
|
5066
5075
|
"aria-hidden": !0
|
|
5067
5076
|
}),
|
|
5068
5077
|
isSelected: r,
|
|
@@ -5074,11 +5083,11 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5074
5083
|
})
|
|
5075
5084
|
}, e.id);
|
|
5076
5085
|
}, we = () => /* @__PURE__ */ Z("p", {
|
|
5077
|
-
className: R(v, "px-4 py-4 text-center",
|
|
5086
|
+
className: R(v, "px-4 py-4 text-center", ja.emptyHint),
|
|
5078
5087
|
children: C
|
|
5079
5088
|
}), Te = () => /* @__PURE__ */ Q(X, { children: [
|
|
5080
5089
|
L && s && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("p", {
|
|
5081
|
-
className: R(g, "px-3 pt-2 pb-2",
|
|
5090
|
+
className: R(g, "px-3 pt-2 pb-2", ja.sectionHeading),
|
|
5082
5091
|
children: E
|
|
5083
5092
|
}), /* @__PURE__ */ Z("ul", {
|
|
5084
5093
|
role: "group",
|
|
@@ -5086,7 +5095,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5086
5095
|
children: Ce(s, !0)
|
|
5087
5096
|
})] }),
|
|
5088
5097
|
(L || oe.length > 0) && /* @__PURE__ */ Z("p", {
|
|
5089
|
-
className: R(g, "sticky top-0 z-10 px-3 pt-2 pb-2 will-change-transform",
|
|
5098
|
+
className: R(g, "sticky top-0 z-10 px-3 pt-2 pb-2 will-change-transform", ja.sectionHeading, ja.stickyHeading),
|
|
5090
5099
|
children: S
|
|
5091
5100
|
}),
|
|
5092
5101
|
oe.length > 0 ? /* @__PURE__ */ Z("ul", {
|
|
@@ -5121,7 +5130,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5121
5130
|
children: [
|
|
5122
5131
|
/* @__PURE__ */ Z("div", {
|
|
5123
5132
|
role: "search",
|
|
5124
|
-
className: R("sticky top-0 z-10 pt-2 pb-3",
|
|
5133
|
+
className: R("sticky top-0 z-10 pt-2 pb-3", ja.searchHeader),
|
|
5125
5134
|
children: /* @__PURE__ */ Z(at, {
|
|
5126
5135
|
inputRef: _e,
|
|
5127
5136
|
value: N,
|
|
@@ -5133,7 +5142,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5133
5142
|
}),
|
|
5134
5143
|
/* @__PURE__ */ Z("div", {
|
|
5135
5144
|
ref: ge,
|
|
5136
|
-
className: R(le, "min-h-0 flex-1 overflow-y-auto",
|
|
5145
|
+
className: R(le, "min-h-0 flex-1 overflow-y-auto", ja.listContent),
|
|
5137
5146
|
style: { maxHeight: fe },
|
|
5138
5147
|
children: /* @__PURE__ */ Q("div", {
|
|
5139
5148
|
role: "menu",
|
|
@@ -5147,7 +5156,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5147
5156
|
})
|
|
5148
5157
|
}),
|
|
5149
5158
|
/* @__PURE__ */ Z("div", {
|
|
5150
|
-
className: R("px-2 py-3",
|
|
5159
|
+
className: R("px-2 py-3", ja.footer),
|
|
5151
5160
|
children: /* @__PURE__ */ Z(Re, {
|
|
5152
5161
|
label: w,
|
|
5153
5162
|
className: "w-full justify-center",
|
|
@@ -5156,9 +5165,9 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5156
5165
|
})
|
|
5157
5166
|
]
|
|
5158
5167
|
});
|
|
5159
|
-
},
|
|
5168
|
+
}, La = ({ service: e, texts: t, onLogin: n, onLogout: r, typography: a }) => {
|
|
5160
5169
|
let { rowLabelClassName: o = "dial-small-semi-text", rowDescriptionClassName: c = "dial-small-text", errorClassName: l = "dial-caption-text", keyCardTitleClassName: u = "dial-tiny-semi-text", keyCardDescriptionClassName: d = "dial-tiny-text" } = a ?? {}, [f, p] = U(!1), [m, h] = U(!1), [g, _] = U(!1), [v, y] = U(), x = e.authenticationType === s.ApiKey, S = x ? t?.deleteActionLabel ?? "Delete" : t?.logoutActionLabel ?? "Log out", C = x ? t?.deleteApiKeyConfirmMessage?.(i.User) ?? "Are you sure you want to delete your personal API key?" : t?.logoutConfirmMessage ?? "Are you sure you want to log out?";
|
|
5161
|
-
return /* @__PURE__ */ Q(
|
|
5170
|
+
return /* @__PURE__ */ Q(yr, {
|
|
5162
5171
|
label: e.name,
|
|
5163
5172
|
description: e.description,
|
|
5164
5173
|
icon: /* @__PURE__ */ Z(Ht, {
|
|
@@ -5183,7 +5192,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5183
5192
|
errorClassName: l,
|
|
5184
5193
|
keyCardTitleClassName: u,
|
|
5185
5194
|
keyCardDescriptionClassName: d,
|
|
5186
|
-
deleteActionClassName:
|
|
5195
|
+
deleteActionClassName: vr.deleteAction,
|
|
5187
5196
|
renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ Z(Oe, {
|
|
5188
5197
|
isSelected: f,
|
|
5189
5198
|
onChange: p,
|
|
@@ -5193,10 +5202,10 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5193
5202
|
}) : void 0,
|
|
5194
5203
|
children: [
|
|
5195
5204
|
e.hint && /* @__PURE__ */ Z("p", {
|
|
5196
|
-
className: R(c, "wrap-break-word",
|
|
5205
|
+
className: R(c, "wrap-break-word", vr.description),
|
|
5197
5206
|
children: e.hint
|
|
5198
5207
|
}),
|
|
5199
|
-
e.hasSharedCredentials && /* @__PURE__ */ Z(
|
|
5208
|
+
e.hasSharedCredentials && /* @__PURE__ */ Z(dr, {
|
|
5200
5209
|
icon: /* @__PURE__ */ Z(yt, {
|
|
5201
5210
|
size: G.SM,
|
|
5202
5211
|
"aria-hidden": !0,
|
|
@@ -5210,7 +5219,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5210
5219
|
/* @__PURE__ */ Z("p", { children: C }),
|
|
5211
5220
|
/* @__PURE__ */ Z(Pe, {
|
|
5212
5221
|
announce: Je.Assertive,
|
|
5213
|
-
className:
|
|
5222
|
+
className: vr.errorText,
|
|
5214
5223
|
text: v ?? ""
|
|
5215
5224
|
}),
|
|
5216
5225
|
/* @__PURE__ */ Q("div", {
|
|
@@ -5244,7 +5253,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5244
5253
|
})
|
|
5245
5254
|
]
|
|
5246
5255
|
});
|
|
5247
|
-
},
|
|
5256
|
+
}, Ra = ({ services: e, isLoading: t = !1, hasError: n = !1, showEmptyState: r = !1, onRetry: i, onLogin: a, onLogout: o, texts: s, typography: c }) => {
|
|
5248
5257
|
let l = s?.loadError ?? "Unable to load credentials", u = s?.empty ?? "No credentials required", d = t && !e.length, f = !d && n, p = !d && !n && !e.length && r, m = "";
|
|
5249
5258
|
f ? m = l : p && (m = u);
|
|
5250
5259
|
let h = null;
|
|
@@ -5274,7 +5283,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5274
5283
|
children: s?.title ?? "Credentials"
|
|
5275
5284
|
}), /* @__PURE__ */ Z("div", {
|
|
5276
5285
|
className: "flex min-w-0 flex-col",
|
|
5277
|
-
children: e.map((e) => /* @__PURE__ */ Z(
|
|
5286
|
+
children: e.map((e) => /* @__PURE__ */ Z(La, {
|
|
5278
5287
|
service: e,
|
|
5279
5288
|
texts: s,
|
|
5280
5289
|
onLogin: a,
|
|
@@ -5286,24 +5295,24 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5286
5295
|
visuallyHidden: !0,
|
|
5287
5296
|
children: m
|
|
5288
5297
|
}), h] });
|
|
5289
|
-
},
|
|
5298
|
+
}, za = {
|
|
5290
5299
|
description: "_description_ni81_1",
|
|
5291
5300
|
row: "_row_ni81_5",
|
|
5292
5301
|
name: "_name_ni81_9",
|
|
5293
5302
|
error: "_error_ni81_13",
|
|
5294
5303
|
hint: "_hint_ni81_17"
|
|
5295
|
-
},
|
|
5304
|
+
}, Ba = ({ row: e, labels: t, nameClassName: n, errorClassName: r, hintClassName: i, onApiKeyChange: a, onLogin: o, onDecline: s }) => {
|
|
5296
5305
|
let { id: c, isProcessing: l } = e;
|
|
5297
5306
|
return /* @__PURE__ */ Q("div", {
|
|
5298
5307
|
role: "group",
|
|
5299
5308
|
"aria-label": e.displayName,
|
|
5300
5309
|
"aria-busy": l,
|
|
5301
|
-
className: R("flex flex-col gap-2 border-b py-3 last:border-b-0",
|
|
5310
|
+
className: R("flex flex-col gap-2 border-b py-3 last:border-b-0", za.row),
|
|
5302
5311
|
children: [
|
|
5303
5312
|
/* @__PURE__ */ Z("div", {
|
|
5304
5313
|
className: "flex min-w-0 items-center justify-between gap-2",
|
|
5305
5314
|
children: /* @__PURE__ */ Q("span", {
|
|
5306
|
-
className: R("min-w-0 flex-1 truncate", n,
|
|
5315
|
+
className: R("min-w-0 flex-1 truncate", n, za.name),
|
|
5307
5316
|
children: [e.displayName, e.displayVersion ? ` (${e.displayVersion})` : ""]
|
|
5308
5317
|
})
|
|
5309
5318
|
}),
|
|
@@ -5318,7 +5327,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5318
5327
|
}),
|
|
5319
5328
|
/* @__PURE__ */ Z(Ke, {
|
|
5320
5329
|
politeness: Je.Assertive,
|
|
5321
|
-
className: R("flex flex-wrap items-center gap-2 wrap-break-word", r,
|
|
5330
|
+
className: R("flex flex-wrap items-center gap-2 wrap-break-word", r, za.error),
|
|
5322
5331
|
children: e.errorMessage && /* @__PURE__ */ Q(X, { children: [
|
|
5323
5332
|
/* @__PURE__ */ Z(ht, {
|
|
5324
5333
|
size: G.SM,
|
|
@@ -5333,13 +5342,13 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5333
5342
|
] })
|
|
5334
5343
|
}),
|
|
5335
5344
|
e.showDialNativeHint && /* @__PURE__ */ Z("p", {
|
|
5336
|
-
className: R("wrap-break-word", i,
|
|
5345
|
+
className: R("wrap-break-word", i, za.hint),
|
|
5337
5346
|
children: t.dialNativeHint
|
|
5338
5347
|
}),
|
|
5339
5348
|
e.requiresNoCredentials ? /* @__PURE__ */ Z("div", {
|
|
5340
5349
|
className: "flex justify-end",
|
|
5341
5350
|
children: /* @__PURE__ */ Z("span", {
|
|
5342
|
-
className: R(i,
|
|
5351
|
+
className: R(i, za.hint),
|
|
5343
5352
|
children: t.noCredentialsRequired
|
|
5344
5353
|
})
|
|
5345
5354
|
}) : /* @__PURE__ */ Q("div", {
|
|
@@ -5363,7 +5372,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5363
5372
|
})
|
|
5364
5373
|
]
|
|
5365
5374
|
});
|
|
5366
|
-
},
|
|
5375
|
+
}, Va = ({ rows: e, statusMessage: t = "", isOfflineUsageConsentShown: n = !1, offlineUsageConsent: r, onOfflineUsageConsentChange: i, onApiKeyChange: a, onLogin: o, onDecline: s, onDeclineAll: c, labels: l, colors: u, descriptionClassName: d = "dial-small-text", nameClassName: f = "dial-body-semi-text", errorClassName: p = "dial-small-text", hintClassName: m = "dial-small-text" }) => {
|
|
5367
5376
|
if (e.length === 0) return null;
|
|
5368
5377
|
let h = {
|
|
5369
5378
|
decline: l?.decline ?? "Decline",
|
|
@@ -5398,7 +5407,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5398
5407
|
}),
|
|
5399
5408
|
children: [
|
|
5400
5409
|
/* @__PURE__ */ Z("p", {
|
|
5401
|
-
className: R(d,
|
|
5410
|
+
className: R(d, za.description),
|
|
5402
5411
|
children: l?.description ?? "One or more tools or services need you to sign in before the conversation can continue."
|
|
5403
5412
|
}),
|
|
5404
5413
|
/* @__PURE__ */ Z(Ke, {
|
|
@@ -5408,7 +5417,7 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5408
5417
|
}),
|
|
5409
5418
|
/* @__PURE__ */ Z("div", {
|
|
5410
5419
|
className: "flex flex-col",
|
|
5411
|
-
children: e.map((e) => /* @__PURE__ */ Z(
|
|
5420
|
+
children: e.map((e) => /* @__PURE__ */ Z(Ba, {
|
|
5412
5421
|
row: e,
|
|
5413
5422
|
labels: h,
|
|
5414
5423
|
nameClassName: f,
|
|
@@ -5431,4 +5440,4 @@ var en = /* @__PURE__ */ function(e) {
|
|
|
5431
5440
|
});
|
|
5432
5441
|
};
|
|
5433
5442
|
//#endregion
|
|
5434
|
-
export {
|
|
5443
|
+
export { Pr as AboutTab, Ca as AddOnCatalogModal, Da as AddOnListItem, ar as ApiTab, Nn as AppIdentity, Ra as ApplicationCredentials, pn as CATALOG_CLASS, m as CATALOG_TAB_ORDER, Kn as Card, Jn as CardGrid, qn as CardRowRenderer, va as Catalog, un as CatalogContentNodeType, dn as CatalogContentPreviewType, n as CatalogDetailsTab, rn as CatalogLimitStatus, ya as CatalogLoadStatus, Sa as CatalogPickerModal, an as CatalogPricingUnit, cn as CatalogSelectionMode, o as CatalogSortKey, sn as CatalogViewMode, nn as CodeLanguage, Br as ContentTab, b as CredentialStatus, Er as CredentialsApiKeyOverlay, Fn as CredentialsBadge, e as CredentialsBadgeState, _r as CredentialsBanner, y as CredentialsBannerState, i as CredentialsLevel, xr as CredentialsManagementPanel, a as CredentialsUiState, ka as DeploymentSelectorField, Aa as DeploymentSelectorLayout, Ia as DeploymentSelectorPanel, on as DeploymentSize, $ as DetailsConfirmationKind, Nr as DetailsHeader, xi as DetailsPanel, Ei as FavoriteCard, ki as Favorites, sa as Filter, ln as LimitRowLayout, $r as LimitsTab, Zi as ListView, ei as OverviewTab, ti as PricingTab, Va as SigninInterruptDialog, ma as Toolbar, ci as ToolsTab, s as ToolsetAuthenticationType, Bn as TopicTag, u as applyCatalogSelection, h as buildCatalogTabs, M as filterCatalogItems, c as filterCatalogItemsByQuery, x as getCatalogDetailsTabs, S as getCatalogItemTabs, C as getCredentialsBadgeState, E as getCredentialsBannerState, v as getCredentialsUiState, d as getDirectCredentialsLevel, w as getSignedInLevel, j as getTopicOptions, r as sortCatalogItems, fn as useFavColumns, Oa as useListRemoveFocus, En as useScrollVirtualizer };
|