@epam/ai-dial-catalog 1.3.0-dev.326 → 1.3.0-dev.331
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/SigninInterruptDialog/SigninInterruptDialog.d.ts +5 -0
- package/components/SigninInterruptDialog/SigninInterruptDialog.d.ts.map +1 -0
- package/components/SigninInterruptDialog/SigninInterruptRow/SigninInterruptRow.d.ts +18 -0
- package/components/SigninInterruptDialog/SigninInterruptRow/SigninInterruptRow.d.ts.map +1 -0
- package/index.css +2 -2
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +764 -621
- package/models/signin-interrupt-dialog.d.ts +97 -0
- package/models/signin-interrupt-dialog.d.ts.map +1 -0
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -3,43 +3,43 @@ import { CatalogEntityType as P, ConfirmationFooter as F, ConfirmationView as ee
|
|
|
3
3
|
import { Fragment as me, memo as he, startTransition as ge, useCallback as z, useEffect as B, useId as _e, useImperativeHandle as ve, useLayoutEffect as ye, useMemo as V, useRef as H, useState as U } from "react";
|
|
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
|
-
import { IconAdjustmentsHorizontal as mt,
|
|
7
|
-
import { PublishFooter as
|
|
8
|
-
import { GRID_SELECTION_COLUMN_ID as
|
|
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, derivePublishState as Jt, usePublishFlow as Yt } from "@epam/ai-dial-publish-panel";
|
|
8
|
+
import { GRID_SELECTION_COLUMN_ID as Xt, Grid as Zt, GridAppearance as Qt, GridSelectionMode as $t } from "@epam/ai-dial-ui-kit/grid";
|
|
9
9
|
//#region src/types/code-language.ts
|
|
10
|
-
var
|
|
10
|
+
var en = /* @__PURE__ */ function(e) {
|
|
11
11
|
return e.Python = "python", e.Curl = "curl", e.JavaScript = "javascript", e;
|
|
12
|
-
}({}), en = /* @__PURE__ */ function(e) {
|
|
13
|
-
return e.RunningLow = "runningLow", e.LimitReached = "limitReached", e;
|
|
14
12
|
}({}), tn = /* @__PURE__ */ function(e) {
|
|
13
|
+
return e.RunningLow = "runningLow", e.LimitReached = "limitReached", e;
|
|
14
|
+
}({}), nn = /* @__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
|
-
}({}), nn = /* @__PURE__ */ function(e) {
|
|
19
|
-
return e.SM = "sm", e.LG = "lg", e;
|
|
20
18
|
}({}), rn = /* @__PURE__ */ function(e) {
|
|
21
|
-
return e.
|
|
19
|
+
return e.SM = "sm", e.LG = "lg", e;
|
|
22
20
|
}({}), an = /* @__PURE__ */ function(e) {
|
|
23
|
-
return e.
|
|
21
|
+
return e.Grid = "grid", e.Cards = "cards", e;
|
|
24
22
|
}({}), on = /* @__PURE__ */ function(e) {
|
|
25
|
-
return e.
|
|
23
|
+
return e.Single = "single", e.Multiple = "multiple", e;
|
|
26
24
|
}({}), sn = /* @__PURE__ */ function(e) {
|
|
27
|
-
return e.
|
|
25
|
+
return e.Inline = "inline", e.Stacked = "stacked", e;
|
|
28
26
|
}({}), cn = /* @__PURE__ */ function(e) {
|
|
27
|
+
return e.File = "file", e.Folder = "folder", e;
|
|
28
|
+
}({}), ln = /* @__PURE__ */ function(e) {
|
|
29
29
|
return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
|
|
30
|
-
}({}),
|
|
30
|
+
}({}), un = () => {
|
|
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
|
+
}, dn = {
|
|
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
|
+
}, fn = "(prefers-reduced-motion: reduce)", pn = () => typeof window.matchMedia == "function" && window.matchMedia(fn).matches ? "auto" : "smooth", mn = ({ 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 $t = /* @__PURE__ */ function(e) {
|
|
|
63
63
|
scrollToTop: z(() => {
|
|
64
64
|
e?.scrollTo({
|
|
65
65
|
top: 0,
|
|
66
|
-
behavior:
|
|
66
|
+
behavior: pn()
|
|
67
67
|
}), s.current && n.current?.scrollToTop(), t.current?.focus({ preventScroll: !0 });
|
|
68
68
|
}, [
|
|
69
69
|
e,
|
|
@@ -71,15 +71,15 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
71
71
|
t
|
|
72
72
|
])
|
|
73
73
|
};
|
|
74
|
-
},
|
|
74
|
+
}, hn = (e) => e.type === je.Divider || e.type === je.PlainText, gn = (e, t) => e.map((e) => hn(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 ? gn(e.children, t) : void 0
|
|
82
|
+
}), _n = (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 $t = /* @__PURE__ */ function(e) {
|
|
|
93
93
|
options: e.options,
|
|
94
94
|
search: e.search
|
|
95
95
|
};
|
|
96
|
-
},
|
|
96
|
+
}, vn = (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
|
+
}), yn = (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
|
+
}, bn = 1180, xn = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, Sn = (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 : Sn(e.parentElement);
|
|
112
|
+
}, Cn = (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
|
+
}, wn = (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 = xn((n ? r : Math.min(bn, 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 $t = /* @__PURE__ */ function(e) {
|
|
|
124
124
|
B(() => {
|
|
125
125
|
let n = r.current;
|
|
126
126
|
if (!n) return;
|
|
127
|
-
let i =
|
|
127
|
+
let i = Sn(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 = xn(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 $t = /* @__PURE__ */ function(e) {
|
|
|
149
149
|
rowCount: o,
|
|
150
150
|
totalHeight: o * 268
|
|
151
151
|
};
|
|
152
|
-
},
|
|
152
|
+
}, Tn = {
|
|
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 $t = /* @__PURE__ */ function(e) {
|
|
|
159
159
|
checkIcon: "_checkIcon_tucta_30",
|
|
160
160
|
footer: "_footer_tucta_34",
|
|
161
161
|
cardButton: "_cardButton_tucta_44"
|
|
162
|
-
},
|
|
162
|
+
}, En = 1, Dn = (e) => e.scrollHeight - e.clientHeight > En, On = (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(Dn(e) || Array.from(e.children).some(Dn));
|
|
166
166
|
}, []);
|
|
167
167
|
return ye(() => {
|
|
168
168
|
i();
|
|
@@ -174,8 +174,8 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
174
174
|
ref: t,
|
|
175
175
|
isClamped: n
|
|
176
176
|
};
|
|
177
|
-
},
|
|
178
|
-
let { ref: r, isClamped: i } =
|
|
177
|
+
}, kn = ({ name: e, query: t = "", className: n }) => {
|
|
178
|
+
let { ref: r, isClamped: i } = On(e);
|
|
179
179
|
return /* @__PURE__ */ Z(Y, {
|
|
180
180
|
asChild: !0,
|
|
181
181
|
tooltip: e,
|
|
@@ -189,12 +189,12 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
189
189
|
})
|
|
190
190
|
})
|
|
191
191
|
});
|
|
192
|
-
},
|
|
192
|
+
}, An = {
|
|
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
|
+
}, jn = ({ 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 === rn.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", An.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 $t = /* @__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(kn, {
|
|
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", An.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 $t = /* @__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", An.lastUsed),
|
|
242
242
|
children: i
|
|
243
243
|
}),
|
|
244
244
|
l != null && /* @__PURE__ */ Z("div", {
|
|
@@ -250,7 +250,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
250
250
|
})]
|
|
251
251
|
})]
|
|
252
252
|
});
|
|
253
|
-
},
|
|
253
|
+
}, Mn = { icon: "_icon_a0p4u_1" }, Nn = ({ 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,
|
|
@@ -264,34 +264,34 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
264
264
|
"aria-label": t,
|
|
265
265
|
style: i,
|
|
266
266
|
className: R("absolute -inset-e-1 -bottom-1 shrink-0", n),
|
|
267
|
-
children: /* @__PURE__ */ Z(
|
|
267
|
+
children: /* @__PURE__ */ Z(gt, {
|
|
268
268
|
size: G.SM,
|
|
269
|
-
className:
|
|
269
|
+
className: Mn.icon,
|
|
270
270
|
"aria-hidden": !0
|
|
271
271
|
})
|
|
272
272
|
})
|
|
273
273
|
});
|
|
274
|
-
},
|
|
274
|
+
}, Pn = {
|
|
275
275
|
starFilledIcon: "_starFilledIcon_po6zj_1",
|
|
276
276
|
starPop: "_starPop_po6zj_1"
|
|
277
|
-
},
|
|
277
|
+
}, Fn = ({ 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,
|
|
281
281
|
isSelected: e,
|
|
282
|
-
icon: /* @__PURE__ */ Z(
|
|
282
|
+
icon: /* @__PURE__ */ Z(Rt, {
|
|
283
283
|
size: G.SM,
|
|
284
284
|
stroke: K,
|
|
285
285
|
"aria-hidden": !0
|
|
286
286
|
}),
|
|
287
|
-
selectedIcon: /* @__PURE__ */ Z(
|
|
287
|
+
selectedIcon: /* @__PURE__ */ Z(zt, {
|
|
288
288
|
size: G.SM,
|
|
289
|
-
className:
|
|
289
|
+
className: Pn.starFilledIcon,
|
|
290
290
|
"aria-hidden": !0
|
|
291
291
|
}),
|
|
292
292
|
"aria-label": r,
|
|
293
293
|
onClick: t
|
|
294
|
-
}),
|
|
294
|
+
}), In = { tag: "_tag_iqin5_3" }, Ln = ({ 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 $t = /* @__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(In.tag, t)
|
|
303
|
+
}), Rn = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ Z(Ln, {
|
|
304
304
|
label: e,
|
|
305
305
|
badgeClassName: t,
|
|
306
306
|
colors: n
|
|
307
|
-
}),
|
|
307
|
+
}), zn = 8, Bn = ({ 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 $t = /* @__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 ? zn : 0) + c[t] + (r ? zn + u : 0) > n) break;
|
|
320
|
+
d += (t > 0 ? zn : 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 $t = /* @__PURE__ */ function(e) {
|
|
|
348
348
|
ref: (e) => {
|
|
349
349
|
i.current[t] = e;
|
|
350
350
|
},
|
|
351
|
-
children: /* @__PURE__ */ Z(
|
|
351
|
+
children: /* @__PURE__ */ Z(Rn, { 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(Rn, { 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(Rn, { label: `+${e.length}` })
|
|
365
365
|
})
|
|
366
366
|
]
|
|
367
367
|
});
|
|
368
|
-
},
|
|
368
|
+
}, Vn = { img: () => null }, Hn = (e) => e.target instanceof Element && e.target.closest("a") !== null, Un = (e) => !(e.target instanceof Node) || !e.currentTarget.contains(e.target), Wn = ({ 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 } = On(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 $t = /* @__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
|
+
!Hn(t) && !Un(t) && n(e);
|
|
393
393
|
} : void 0, F = z((t) => {
|
|
394
394
|
t.stopPropagation();
|
|
395
395
|
let n = !_;
|
|
@@ -403,11 +403,11 @@ var $t = /* @__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", Tn.card, j ? Tn.featuredCard : void 0, l ? Tn.selectedCard : void 0, u, dn.card),
|
|
407
407
|
children: [
|
|
408
408
|
n && /* @__PURE__ */ Z("button", {
|
|
409
409
|
type: "button",
|
|
410
|
-
className: R("sr-only",
|
|
410
|
+
className: R("sr-only", Tn.cardButton),
|
|
411
411
|
children: e.name
|
|
412
412
|
}),
|
|
413
413
|
j && /* @__PURE__ */ Z("div", {
|
|
@@ -419,21 +419,21 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
419
419
|
style: d?.colors?.featuredChipStyle
|
|
420
420
|
})
|
|
421
421
|
}),
|
|
422
|
-
l && /* @__PURE__ */ Z(
|
|
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", Tn.checkIcon),
|
|
425
425
|
"aria-hidden": !0,
|
|
426
426
|
stroke: K
|
|
427
427
|
}),
|
|
428
|
-
/* @__PURE__ */ Z(
|
|
428
|
+
/* @__PURE__ */ Z(jn, {
|
|
429
429
|
icon: e.iconUrl,
|
|
430
430
|
type: y,
|
|
431
431
|
name: e.name,
|
|
432
432
|
version: e.version,
|
|
433
|
-
size:
|
|
433
|
+
size: rn.SM,
|
|
434
434
|
query: t,
|
|
435
|
-
iconClassName:
|
|
436
|
-
iconOverlay: /* @__PURE__ */ Z(
|
|
435
|
+
iconClassName: Tn.cardIcon,
|
|
436
|
+
iconOverlay: /* @__PURE__ */ Z(Nn, {
|
|
437
437
|
credentials: e.credentials,
|
|
438
438
|
loggedOutLabel: f
|
|
439
439
|
})
|
|
@@ -445,12 +445,12 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
445
445
|
content: e.description && /* @__PURE__ */ Z(oe, {
|
|
446
446
|
content: e.description,
|
|
447
447
|
classNames: k,
|
|
448
|
-
components:
|
|
448
|
+
components: Vn,
|
|
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", Tn.description),
|
|
454
454
|
children: e.description && /* @__PURE__ */ Z(oe, {
|
|
455
455
|
content: e.description,
|
|
456
456
|
classNames: {
|
|
@@ -464,17 +464,17 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
464
464
|
h5: S,
|
|
465
465
|
h6: S
|
|
466
466
|
},
|
|
467
|
-
components:
|
|
467
|
+
components: Vn,
|
|
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(Bn, { 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", Tn.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 $t = /* @__PURE__ */ function(e) {
|
|
|
484
484
|
labelClassName: w,
|
|
485
485
|
leafClassName: E
|
|
486
486
|
}) : /* @__PURE__ */ Z("span", {
|
|
487
|
-
className: R(w,
|
|
487
|
+
className: R(w, Tn.description),
|
|
488
488
|
children: p
|
|
489
489
|
})
|
|
490
|
-
}), M && /* @__PURE__ */ Z(
|
|
490
|
+
}), M && /* @__PURE__ */ Z(Fn, {
|
|
491
491
|
isStarred: _,
|
|
492
492
|
size: J.Small,
|
|
493
493
|
onClick: F,
|
|
494
494
|
ariaLabel: _ ? c : s,
|
|
495
|
-
className: R(!_ &&
|
|
495
|
+
className: R(!_ && Tn.emptyStarHidden)
|
|
496
496
|
})]
|
|
497
497
|
})
|
|
498
498
|
})
|
|
499
499
|
]
|
|
500
500
|
});
|
|
501
|
-
},
|
|
501
|
+
}, Gn = 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 $t = /* @__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(Wn, {
|
|
514
514
|
item: n,
|
|
515
515
|
query: r,
|
|
516
516
|
initialIsStarred: n.isStarred,
|
|
@@ -532,8 +532,8 @@ var $t = /* @__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
|
+
}), Kn = he(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = Tn.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 } = wn(e.length, { isFullWidth: d }), E = V(() => ({
|
|
537
537
|
items: e,
|
|
538
538
|
columnCount: w,
|
|
539
539
|
query: t,
|
|
@@ -575,7 +575,7 @@ var $t = /* @__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", Tn.skeletonCard),
|
|
579
579
|
style: { height: 248 },
|
|
580
580
|
children: /* @__PURE__ */ Z(ct, {
|
|
581
581
|
avatar: {
|
|
@@ -600,26 +600,26 @@ var $t = /* @__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(Gn, {
|
|
604
604
|
rowIndex: n,
|
|
605
605
|
...E
|
|
606
606
|
}, n);
|
|
607
607
|
})
|
|
608
608
|
});
|
|
609
|
-
}),
|
|
609
|
+
}), qn = (e) => e.reduce((e, t) => t.type === cn.File ? e + 1 : e + qn(t.items), 0), Jn = (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 === cn.Folder && (t.add(r.id), n(r.items));
|
|
612
612
|
};
|
|
613
613
|
return n(e), t;
|
|
614
|
-
},
|
|
614
|
+
}, Yn = (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 === cn.Folder) {
|
|
618
|
+
let e = Yn(n.items, t);
|
|
619
619
|
if (e != null) return e;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
},
|
|
622
|
+
}, Xn = {
|
|
623
623
|
sectionHeading: "_sectionHeading_jnq93_1",
|
|
624
624
|
rowAlt: "_rowAlt_jnq93_5",
|
|
625
625
|
label: "_label_jnq93_9",
|
|
@@ -627,19 +627,19 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
627
627
|
valueTrue: "_valueTrue_jnq93_17",
|
|
628
628
|
valueFalse: "_valueFalse_jnq93_21",
|
|
629
629
|
valueText: "_valueText_jnq93_25"
|
|
630
|
-
},
|
|
630
|
+
}, Zn = ({ 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, Xn.checkIcon)
|
|
633
633
|
}), /* @__PURE__ */ Z("span", {
|
|
634
|
-
className: R(n,
|
|
634
|
+
className: R(n, Xn.valueTrue),
|
|
635
635
|
children: i
|
|
636
636
|
})] }) : e === !1 ? /* @__PURE__ */ Z("span", {
|
|
637
|
-
className: R(t,
|
|
637
|
+
className: R(t, Xn.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, Xn.valueText),
|
|
641
641
|
children: e
|
|
642
|
-
}),
|
|
642
|
+
}), Qn = ({ 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 $t = /* @__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, Xn.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 ? Xn.rowAlt : void 0),
|
|
662
662
|
children: [/* @__PURE__ */ Z("span", {
|
|
663
|
-
className: R(n,
|
|
663
|
+
className: R(n, Xn.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(Zn, {
|
|
668
668
|
value: e.value,
|
|
669
669
|
valueClassName: r,
|
|
670
670
|
valueTrueClassName: i,
|
|
@@ -676,30 +676,30 @@ var $t = /* @__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
|
+
}, $n = { sectionHeading: "_sectionHeading_148lj_1" }, er = {
|
|
680
|
+
[en.Python]: "Python",
|
|
681
|
+
[en.Curl]: "cURL",
|
|
682
|
+
[en.JavaScript]: "JavaScript"
|
|
683
|
+
}, tr = {
|
|
684
|
+
[en.Python]: "python",
|
|
685
|
+
[en.Curl]: "bash",
|
|
686
|
+
[en.JavaScript]: "javascript"
|
|
687
|
+
}, nr = ({ 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 ?? en.Python);
|
|
689
689
|
B(() => {
|
|
690
|
-
c(e[0]?.language ??
|
|
690
|
+
c(e[0]?.language ?? en.Python);
|
|
691
691
|
}, [e]);
|
|
692
692
|
let l = V(() => e.map((e) => ({
|
|
693
693
|
key: e.language,
|
|
694
|
-
label:
|
|
694
|
+
label: er[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, $n.sectionHeading),
|
|
699
699
|
children: t
|
|
700
700
|
}), /* @__PURE__ */ Z(L, {
|
|
701
|
-
language:
|
|
702
|
-
title:
|
|
701
|
+
language: tr[s] ?? s,
|
|
702
|
+
title: er[s] ?? s,
|
|
703
703
|
value: u,
|
|
704
704
|
copyLabel: n,
|
|
705
705
|
copiedLabel: r,
|
|
@@ -715,7 +715,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
715
715
|
selectedKey: s
|
|
716
716
|
}) : void 0
|
|
717
717
|
})] });
|
|
718
|
-
},
|
|
718
|
+
}, rr = ({ 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 $t = /* @__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(Qn, {
|
|
733
733
|
sectionLabel: t,
|
|
734
734
|
values: x,
|
|
735
735
|
labelClassName: u,
|
|
@@ -748,7 +748,7 @@ var $t = /* @__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, $n.sectionHeading),
|
|
752
752
|
children: n
|
|
753
753
|
}),
|
|
754
754
|
y != null && /* @__PURE__ */ Z(L, {
|
|
@@ -770,7 +770,7 @@ var $t = /* @__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(nr, {
|
|
774
774
|
snippets: y.snippets,
|
|
775
775
|
copyAriaLabel: c,
|
|
776
776
|
copiedStatusLabel: l,
|
|
@@ -780,7 +780,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
780
780
|
}, h)
|
|
781
781
|
})
|
|
782
782
|
] }),
|
|
783
|
-
!v && T && /* @__PURE__ */ Z(
|
|
783
|
+
!v && T && /* @__PURE__ */ Z(nr, {
|
|
784
784
|
snippets: e.snippets ?? [],
|
|
785
785
|
sectionLabel: r,
|
|
786
786
|
copyAriaLabel: c,
|
|
@@ -790,7 +790,7 @@ var $t = /* @__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, $n.sectionHeading),
|
|
794
794
|
children: o
|
|
795
795
|
}), /* @__PURE__ */ Z(L, {
|
|
796
796
|
language: "bash",
|
|
@@ -802,7 +802,7 @@ var $t = /* @__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, $n.sectionHeading),
|
|
806
806
|
children: s
|
|
807
807
|
}), /* @__PURE__ */ Z(L, {
|
|
808
808
|
language: "json",
|
|
@@ -815,26 +815,26 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
815
815
|
})] })
|
|
816
816
|
]
|
|
817
817
|
});
|
|
818
|
-
},
|
|
818
|
+
}, ir = {
|
|
819
819
|
sunkenBox: "_sunkenBox_1lqi3_1",
|
|
820
820
|
raisedBox: "_raisedBox_1lqi3_5",
|
|
821
821
|
activeIcon: "_activeIcon_1lqi3_9"
|
|
822
|
-
},
|
|
822
|
+
}, ar = /* @__PURE__ */ function(e) {
|
|
823
823
|
return e.Sunken = "sunken", e.Raised = "raised", e;
|
|
824
|
-
}({}),
|
|
825
|
-
sunken:
|
|
826
|
-
raised:
|
|
827
|
-
},
|
|
824
|
+
}({}), or = {
|
|
825
|
+
sunken: ir.sunkenBox,
|
|
826
|
+
raised: ir.raisedBox
|
|
827
|
+
}, sr = ({ 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", or[n]),
|
|
832
832
|
children: e
|
|
833
833
|
}),
|
|
834
|
-
t && /* @__PURE__ */ Z(
|
|
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", ir.activeIcon)
|
|
838
838
|
}),
|
|
839
839
|
r != null && /* @__PURE__ */ Z(Ke, {
|
|
840
840
|
visuallyHidden: !0,
|
|
@@ -842,25 +842,25 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
842
842
|
children: r
|
|
843
843
|
})
|
|
844
844
|
]
|
|
845
|
-
}),
|
|
845
|
+
}), cr = {
|
|
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
|
+
}, lr = ({ 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", cr.card),
|
|
852
852
|
children: [/* @__PURE__ */ Z("span", {
|
|
853
|
-
className: R("shrink-0",
|
|
853
|
+
className: R("shrink-0", cr.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, cr.title),
|
|
861
861
|
children: t
|
|
862
862
|
}), n != null && /* @__PURE__ */ Z("span", {
|
|
863
|
-
className: R(a,
|
|
863
|
+
className: R(a, cr.description),
|
|
864
864
|
children: n
|
|
865
865
|
})]
|
|
866
866
|
}), r != null && /* @__PURE__ */ Z("div", {
|
|
@@ -868,55 +868,55 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
868
868
|
children: r
|
|
869
869
|
})]
|
|
870
870
|
})]
|
|
871
|
-
}),
|
|
872
|
-
let r = /* @__PURE__ */ Z(
|
|
873
|
-
size:
|
|
871
|
+
}), ur = (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.", dr = (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.", fr = (e) => e === s.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", pr = (e) => e === s.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", mr = 20, hr = ({ state: e, authenticationType: t, texts: n }) => {
|
|
872
|
+
let r = /* @__PURE__ */ Z(yt, {
|
|
873
|
+
size: mr,
|
|
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(
|
|
881
|
-
icon: /* @__PURE__ */ Z(
|
|
878
|
+
let e = (n?.personalCredentialsActiveBannerTitle ?? pr)(t);
|
|
879
|
+
return /* @__PURE__ */ Z(lr, {
|
|
880
|
+
icon: /* @__PURE__ */ Z(sr, {
|
|
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: ar.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(
|
|
896
|
-
icon: /* @__PURE__ */ Z(
|
|
893
|
+
let e = (n?.orgCredentialsActiveBannerTitle ?? fr)(t);
|
|
894
|
+
return /* @__PURE__ */ Z(lr, {
|
|
895
|
+
icon: /* @__PURE__ */ Z(sr, {
|
|
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: ar.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 ?? ur)(t), a = (n?.orgFallbackBannerDescription ?? dr)(t);
|
|
908
|
+
return /* @__PURE__ */ Z(lr, {
|
|
909
909
|
icon: r,
|
|
910
910
|
title: i,
|
|
911
911
|
description: a
|
|
912
912
|
});
|
|
913
|
-
},
|
|
913
|
+
}, gr = {
|
|
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
|
+
}, _r = ({ 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 $t = /* @__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(sr, {
|
|
943
943
|
icon: n,
|
|
944
944
|
isActive: i,
|
|
945
945
|
statusLabel: i ? re : ie
|
|
@@ -954,7 +954,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
954
954
|
className: p,
|
|
955
955
|
children: e
|
|
956
956
|
}), /* @__PURE__ */ Z("span", {
|
|
957
|
-
className: R(m,
|
|
957
|
+
className: R(m, gr.rowDescription),
|
|
958
958
|
children: t
|
|
959
959
|
})]
|
|
960
960
|
}), a === s.OAuth && (N ? u && /* @__PURE__ */ Z(q, {
|
|
@@ -1008,19 +1008,19 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1008
1008
|
/* @__PURE__ */ Z(Ee, {
|
|
1009
1009
|
id: oe,
|
|
1010
1010
|
text: ce,
|
|
1011
|
-
className: R(m,
|
|
1011
|
+
className: R(m, gr.rowDescription)
|
|
1012
1012
|
}),
|
|
1013
1013
|
k && /* @__PURE__ */ Z(Pe, {
|
|
1014
1014
|
id: se,
|
|
1015
|
-
className: R(h,
|
|
1015
|
+
className: R(h, gr.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(
|
|
1023
|
-
icon: /* @__PURE__ */ Z(
|
|
1022
|
+
children: /* @__PURE__ */ Z(lr, {
|
|
1023
|
+
icon: /* @__PURE__ */ Z(kt, {
|
|
1024
1024
|
size: G.SM,
|
|
1025
1025
|
"aria-hidden": !0,
|
|
1026
1026
|
stroke: K
|
|
@@ -1040,23 +1040,23 @@ var $t = /* @__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, gr.errorText),
|
|
1044
1044
|
text: T ?? ""
|
|
1045
1045
|
}),
|
|
1046
1046
|
C
|
|
1047
1047
|
]
|
|
1048
1048
|
})]
|
|
1049
1049
|
});
|
|
1050
|
-
},
|
|
1051
|
-
let c = R(
|
|
1050
|
+
}, vr = (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.", yr = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: a, detailsStyles: o, deleteActionClassName: s }) => {
|
|
1051
|
+
let c = R(gr.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 ?? vr)(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", gr.surface),
|
|
1060
1060
|
children: /* @__PURE__ */ Z(ne, {
|
|
1061
1061
|
item: e,
|
|
1062
1062
|
iconSize: 40,
|
|
@@ -1066,14 +1066,14 @@ var $t = /* @__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, gr.description),
|
|
1070
1070
|
children: g
|
|
1071
1071
|
}), /* @__PURE__ */ Q("div", {
|
|
1072
1072
|
className: "flex flex-col",
|
|
1073
|
-
children: [/* @__PURE__ */ Z(
|
|
1073
|
+
children: [/* @__PURE__ */ Z(_r, {
|
|
1074
1074
|
label: a?.personalCredentialsLabel ?? "Personal credentials",
|
|
1075
1075
|
description: a?.personalCredentialsDescription ?? "These credentials apply only to your account.",
|
|
1076
|
-
icon: /* @__PURE__ */ Z(
|
|
1076
|
+
icon: /* @__PURE__ */ Z(Ht, {
|
|
1077
1077
|
size: G.SM,
|
|
1078
1078
|
"aria-hidden": !0,
|
|
1079
1079
|
stroke: K
|
|
@@ -1096,10 +1096,10 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1096
1096
|
keyCardTitleClassName: p,
|
|
1097
1097
|
keyCardDescriptionClassName: m,
|
|
1098
1098
|
deleteActionClassName: c
|
|
1099
|
-
}), /* @__PURE__ */ Z(
|
|
1099
|
+
}), /* @__PURE__ */ Z(_r, {
|
|
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
|
-
icon: /* @__PURE__ */ Z(
|
|
1102
|
+
icon: /* @__PURE__ */ Z(yt, {
|
|
1103
1103
|
size: G.SM,
|
|
1104
1104
|
"aria-hidden": !0,
|
|
1105
1105
|
stroke: K
|
|
@@ -1126,7 +1126,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1126
1126
|
})]
|
|
1127
1127
|
})]
|
|
1128
1128
|
});
|
|
1129
|
-
},
|
|
1129
|
+
}, br = {
|
|
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 $t = /* @__PURE__ */ function(e) {
|
|
|
1134
1134
|
content: "_content_1nv0c_20",
|
|
1135
1135
|
tabsScroll: "_tabsScroll_1nv0c_26",
|
|
1136
1136
|
publishTitle: "_publishTitle_1nv0c_33"
|
|
1137
|
-
},
|
|
1137
|
+
}, xr = /* @__PURE__ */ function(e) {
|
|
1138
1138
|
return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
|
|
1139
|
-
}({}),
|
|
1139
|
+
}({}), Sr = {
|
|
1140
1140
|
divider: "_divider_1lu6m_1",
|
|
1141
1141
|
hint: "_hint_1lu6m_5",
|
|
1142
1142
|
deleteAction: "_deleteAction_1lu6m_10"
|
|
1143
|
-
},
|
|
1143
|
+
}, Cr = 16, wr = ({ 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 $t = /* @__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", Sr.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 $t = /* @__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: Cr,
|
|
1219
1219
|
ariaLabel: j
|
|
1220
1220
|
}) : void 0,
|
|
1221
1221
|
onClick: E,
|
|
@@ -1225,7 +1225,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1225
1225
|
/* @__PURE__ */ Z(Ee, {
|
|
1226
1226
|
id: ee,
|
|
1227
1227
|
text: te,
|
|
1228
|
-
className: R(p,
|
|
1228
|
+
className: R(p, Sr.hint)
|
|
1229
1229
|
}),
|
|
1230
1230
|
_ && /* @__PURE__ */ Z(Pe, {
|
|
1231
1231
|
id: I,
|
|
@@ -1236,8 +1236,8 @@ var $t = /* @__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(
|
|
1240
|
-
icon: /* @__PURE__ */ Z(
|
|
1239
|
+
children: /* @__PURE__ */ Z(lr, {
|
|
1240
|
+
icon: /* @__PURE__ */ Z(kt, {
|
|
1241
1241
|
size: 20,
|
|
1242
1242
|
"aria-hidden": !0,
|
|
1243
1243
|
stroke: K
|
|
@@ -1248,10 +1248,10 @@ var $t = /* @__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: Cr,
|
|
1252
1252
|
ariaLabel: M
|
|
1253
1253
|
}) : void 0,
|
|
1254
|
-
className: R(
|
|
1254
|
+
className: R(Sr.deleteAction, d),
|
|
1255
1255
|
onClick: D,
|
|
1256
1256
|
disabled: S
|
|
1257
1257
|
})
|
|
@@ -1259,12 +1259,12 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1259
1259
|
}) })
|
|
1260
1260
|
]
|
|
1261
1261
|
});
|
|
1262
|
-
},
|
|
1262
|
+
}, Tr = {
|
|
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
|
+
}, Er = (e) => e.isMyApp === !0, Dr = ({ 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,14 +1272,14 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1272
1272
|
t,
|
|
1273
1273
|
n
|
|
1274
1274
|
]);
|
|
1275
|
-
if (!
|
|
1275
|
+
if (!Er(e) || r && !r(e)) return null;
|
|
1276
1276
|
let c = /* @__PURE__ */ Z(Ze, {
|
|
1277
1277
|
label: i,
|
|
1278
|
-
iconBefore: /* @__PURE__ */ Z(
|
|
1278
|
+
iconBefore: /* @__PURE__ */ Z(Lt, {
|
|
1279
1279
|
size: G.MD,
|
|
1280
1280
|
stroke: K
|
|
1281
1281
|
}),
|
|
1282
|
-
iconAfter: /* @__PURE__ */ Z(
|
|
1282
|
+
iconAfter: /* @__PURE__ */ Z(xt, {
|
|
1283
1283
|
size: G.MD,
|
|
1284
1284
|
stroke: K
|
|
1285
1285
|
}),
|
|
@@ -1298,17 +1298,17 @@ var $t = /* @__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
|
+
}, Or = (e) => e === s.ApiKey ? "Manage API keys" : "Manage credentials", kr = {
|
|
1302
|
+
[tn.LimitReached]: Tr.limitReached,
|
|
1303
|
+
[tn.RunningLow]: Tr.limitRunningLow
|
|
1304
|
+
}, Ar = ({ 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, kr[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
|
+
}), jr = ({ 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(Ar, {
|
|
1309
1309
|
status: L,
|
|
1310
1310
|
className: ae,
|
|
1311
|
-
label: L ===
|
|
1311
|
+
label: L === tn.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 $t = /* @__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(xr.Idle), [we, Te] = U(void 0), Ee = H(null);
|
|
1357
1357
|
B(() => {
|
|
1358
|
-
Ee.current = null, Ce(
|
|
1358
|
+
Ee.current = null, Ce(xr.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(xr.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 ? xr.Unknown : xr.Resolved);
|
|
1368
1368
|
} catch {
|
|
1369
1369
|
if (Ee.current !== t) return;
|
|
1370
|
-
Te(void 0), Ce(
|
|
1370
|
+
Te(void 0), Ce(xr.Unknown);
|
|
1371
1371
|
}
|
|
1372
1372
|
})();
|
|
1373
1373
|
}, [
|
|
@@ -1385,44 +1385,44 @@ var $t = /* @__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 === xr.Unknown || W === xr.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
|
-
Icon:
|
|
1394
|
-
iconClassName:
|
|
1393
|
+
Icon: Lt,
|
|
1394
|
+
iconClassName: Tr.manageMenuIcon,
|
|
1395
1395
|
onClick: ve
|
|
1396
1396
|
}), ze && e.push({
|
|
1397
1397
|
key: "edit",
|
|
1398
1398
|
label: E?.editActionLabel ?? "Edit",
|
|
1399
|
-
Icon:
|
|
1400
|
-
iconClassName:
|
|
1399
|
+
Icon: Pt,
|
|
1400
|
+
iconClassName: Tr.manageMenuIcon,
|
|
1401
1401
|
onClick: ce
|
|
1402
1402
|
}), $e && e.push({
|
|
1403
1403
|
key: "download",
|
|
1404
1404
|
label: E?.downloadActionLabel ?? "Download",
|
|
1405
|
-
Icon:
|
|
1406
|
-
iconClassName:
|
|
1405
|
+
Icon: Et,
|
|
1406
|
+
iconClassName: Tr.manageMenuIcon,
|
|
1407
1407
|
onClick: fe
|
|
1408
1408
|
}), !He && Re && e.push({
|
|
1409
1409
|
key: "publish",
|
|
1410
1410
|
label: E?.publishLabel ?? "Publish",
|
|
1411
|
-
Icon:
|
|
1412
|
-
iconClassName:
|
|
1411
|
+
Icon: Gt,
|
|
1412
|
+
iconClassName: Tr.manageMenuIcon,
|
|
1413
1413
|
onClick: le
|
|
1414
1414
|
}), !He && Fe && e.push({
|
|
1415
1415
|
key: "unpublish",
|
|
1416
1416
|
label: E?.unpublishLabel ?? "Unpublish",
|
|
1417
|
-
Icon:
|
|
1418
|
-
iconClassName:
|
|
1417
|
+
Icon: Wt,
|
|
1418
|
+
iconClassName: Tr.manageMenuIcon,
|
|
1419
1419
|
onClick: ue
|
|
1420
1420
|
}), rt) {
|
|
1421
1421
|
let t = E?.revokeShareLabel ?? "Revoke access", n = E?.revokeShareLabelWithCount ?? ((e) => `${t} (${e})`);
|
|
1422
1422
|
e.push({
|
|
1423
1423
|
key: "revoke-share",
|
|
1424
1424
|
label: we == null ? t : n(we),
|
|
1425
|
-
Icon:
|
|
1425
|
+
Icon: Ut,
|
|
1426
1426
|
danger: !0,
|
|
1427
1427
|
onClick: Se
|
|
1428
1428
|
});
|
|
@@ -1430,12 +1430,12 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1430
1430
|
return tt && e.push({
|
|
1431
1431
|
key: "unshare",
|
|
1432
1432
|
label: E?.unshareLabel ?? "Remove from My List",
|
|
1433
|
-
Icon:
|
|
1433
|
+
Icon: Vt,
|
|
1434
1434
|
onClick: be
|
|
1435
1435
|
}), et && e.push({
|
|
1436
1436
|
key: "delete",
|
|
1437
1437
|
label: E?.deleteActionLabel ?? "Delete",
|
|
1438
|
-
Icon:
|
|
1438
|
+
Icon: Vt,
|
|
1439
1439
|
danger: !0,
|
|
1440
1440
|
onClick: xe
|
|
1441
1441
|
}), e;
|
|
@@ -1472,7 +1472,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1472
1472
|
}),
|
|
1473
1473
|
danger: i,
|
|
1474
1474
|
onClick: a
|
|
1475
|
-
})), [it, ot]), ct = j?.(e), lt = !I && !!ee && (ct == null || ct && !N), dt = !I && !!y && !!b && e.isMyApp === !0 && (x?.(e) ?? !0), ft = it.length === 1 && !Oe && !lt && !dt ? it[0] : void 0, [Y, pt] = U(!1), mt = Ue === s.ApiKey && We !== a.ManageCredentials, ht = e.credentials == null ? i.User : d(e.credentials), gt = Ue === s.ApiKey && We === a.LogOut,
|
|
1475
|
+
})), [it, ot]), ct = j?.(e), lt = !I && !!ee && (ct == null || ct && !N), dt = !I && !!y && !!b && e.isMyApp === !0 && (x?.(e) ?? !0), ft = it.length === 1 && !Oe && !lt && !dt ? it[0] : void 0, [Y, pt] = U(!1), mt = Ue === s.ApiKey && We !== a.ManageCredentials, ht = e.credentials == null ? i.User : d(e.credentials), gt = Ue === s.ApiKey && We === a.LogOut, _t = Ue !== s.ApiKey && We !== a.ManageCredentials && We === a.LogOut, yt = z(() => {
|
|
1476
1476
|
We === a.ManageCredentials ? w?.() : mt ? pt((e) => !e) : We === a.LogOut ? T?.() : e.credentials != null && S?.(e, { level: d(e.credentials) });
|
|
1477
1477
|
}, [
|
|
1478
1478
|
We,
|
|
@@ -1481,25 +1481,25 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1481
1481
|
S,
|
|
1482
1482
|
w,
|
|
1483
1483
|
T
|
|
1484
|
-
]),
|
|
1484
|
+
]), bt = We === a.ManageCredentials ? (E?.manageCredentialsActionLabel ?? Or)(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
|
-
}) : We === a.LogOut ? /* @__PURE__ */ Z(
|
|
1487
|
+
}) : We === a.LogOut ? /* @__PURE__ */ Z(Nt, {
|
|
1488
1488
|
size: G.MD,
|
|
1489
1489
|
stroke: K
|
|
1490
|
-
}) : /* @__PURE__ */ Z(
|
|
1490
|
+
}) : /* @__PURE__ */ Z(Mt, {
|
|
1491
1491
|
size: G.MD,
|
|
1492
1492
|
stroke: K
|
|
1493
|
-
}), Ct = We === a.ManageCredentials ? /* @__PURE__ */ Z(
|
|
1493
|
+
}), Ct = We === a.ManageCredentials ? /* @__PURE__ */ Z(vt, {
|
|
1494
1494
|
size: G.MD,
|
|
1495
1495
|
className: "rtl:scale-x-[-1]",
|
|
1496
1496
|
stroke: K
|
|
1497
|
-
}) : mt ? /* @__PURE__ */ Z(
|
|
1497
|
+
}) : mt ? /* @__PURE__ */ Z(xt, {
|
|
1498
1498
|
size: G.MD,
|
|
1499
1499
|
stroke: K
|
|
1500
|
-
}) : void 0,
|
|
1500
|
+
}) : void 0, wt = (t) => {
|
|
1501
1501
|
let n = /* @__PURE__ */ Z(t, {
|
|
1502
|
-
label:
|
|
1502
|
+
label: bt,
|
|
1503
1503
|
iconBefore: St,
|
|
1504
1504
|
iconAfter: Ct,
|
|
1505
1505
|
onClick: yt,
|
|
@@ -1513,7 +1513,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1513
1513
|
onOpenChange: pt,
|
|
1514
1514
|
trigger: [],
|
|
1515
1515
|
outsideClosable: !0,
|
|
1516
|
-
renderOverlay: () => /* @__PURE__ */ Z(
|
|
1516
|
+
renderOverlay: () => /* @__PURE__ */ Z(wr, {
|
|
1517
1517
|
item: e,
|
|
1518
1518
|
level: ht,
|
|
1519
1519
|
status: ht === i.User ? e.credentials?.userStatus : e.credentials?.globalStatus,
|
|
@@ -1528,7 +1528,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1528
1528
|
}),
|
|
1529
1529
|
children: n
|
|
1530
1530
|
});
|
|
1531
|
-
}, Dt = ({ key: t, label: n, Icon: i, danger: a, onClick: s }) => t === "share" ? /* @__PURE__ */ Z(
|
|
1531
|
+
}, Dt = ({ key: t, label: n, Icon: i, danger: a, onClick: s }) => t === "share" ? /* @__PURE__ */ Z(Dr, {
|
|
1532
1532
|
item: e,
|
|
1533
1533
|
onShare: r,
|
|
1534
1534
|
shareOverlay: o,
|
|
@@ -1542,14 +1542,14 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1542
1542
|
stroke: K
|
|
1543
1543
|
}),
|
|
1544
1544
|
onClick: s
|
|
1545
|
-
}),
|
|
1545
|
+
}), Ot = () => {
|
|
1546
1546
|
let t = /* @__PURE__ */ Z(Ae, {
|
|
1547
1547
|
items: st,
|
|
1548
1548
|
placement: "bottom-end",
|
|
1549
1549
|
matchReferenceWidth: !1,
|
|
1550
1550
|
onOpenChange: je,
|
|
1551
1551
|
children: /* @__PURE__ */ Z(Qe, {
|
|
1552
|
-
icon: /* @__PURE__ */ Z(
|
|
1552
|
+
icon: /* @__PURE__ */ Z(Tt, {
|
|
1553
1553
|
size: G.LG,
|
|
1554
1554
|
"aria-hidden": !0,
|
|
1555
1555
|
stroke: K
|
|
@@ -1577,7 +1577,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1577
1577
|
children: [/* @__PURE__ */ Z(ne, {
|
|
1578
1578
|
item: e,
|
|
1579
1579
|
iconSize: 52,
|
|
1580
|
-
nameClassName: R(te,
|
|
1580
|
+
nameClassName: R(te, Tr.name),
|
|
1581
1581
|
featuredLabel: E?.featuredLabel ?? "Featured",
|
|
1582
1582
|
typeLabel: E?.entityTypeLabels?.[e.type],
|
|
1583
1583
|
featuredChipStyle: D?.colors?.featuredChipStyle,
|
|
@@ -1590,19 +1590,19 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1590
1590
|
}), At && /* @__PURE__ */ Q("div", {
|
|
1591
1591
|
className: "flex flex-wrap items-center gap-2 ps-[60px]",
|
|
1592
1592
|
children: [
|
|
1593
|
-
Je &&
|
|
1593
|
+
Je && wt(gt || _t ? Ze : nt),
|
|
1594
1594
|
Pe && /* @__PURE__ */ Z(nt, {
|
|
1595
1595
|
label: E?.primaryActionLabel ?? "Use in chat",
|
|
1596
|
-
iconBefore: /* @__PURE__ */ Z(
|
|
1596
|
+
iconBefore: /* @__PURE__ */ Z(Ft, { size: G.MD }),
|
|
1597
1597
|
onClick: se,
|
|
1598
|
-
disabled: L ===
|
|
1598
|
+
disabled: L === tn.LimitReached
|
|
1599
1599
|
}),
|
|
1600
1600
|
Xe && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(nt, {
|
|
1601
1601
|
label: E?.downloadActionLabel ?? "Download",
|
|
1602
1602
|
iconBefore: pe ? /* @__PURE__ */ Z(ut, {
|
|
1603
1603
|
size: G.MD,
|
|
1604
1604
|
"aria-hidden": !0
|
|
1605
|
-
}) : /* @__PURE__ */ Z(
|
|
1605
|
+
}) : /* @__PURE__ */ Z(Et, {
|
|
1606
1606
|
size: G.MD,
|
|
1607
1607
|
"aria-hidden": !0,
|
|
1608
1608
|
stroke: K
|
|
@@ -1615,7 +1615,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1615
1615
|
as: qe.Span,
|
|
1616
1616
|
children: pe ? E?.downloadingStatusLabel ?? "Downloading" : ""
|
|
1617
1617
|
})] }),
|
|
1618
|
-
Ve && Be && /* @__PURE__ */ Z(
|
|
1618
|
+
Ve && Be && /* @__PURE__ */ Z(Dr, {
|
|
1619
1619
|
item: e,
|
|
1620
1620
|
onShare: r,
|
|
1621
1621
|
shareOverlay: o,
|
|
@@ -1624,7 +1624,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1624
1624
|
}),
|
|
1625
1625
|
He && Fe && /* @__PURE__ */ Z(Ze, {
|
|
1626
1626
|
label: E?.unpublishLabel ?? "Unpublish",
|
|
1627
|
-
iconBefore: /* @__PURE__ */ Z(
|
|
1627
|
+
iconBefore: /* @__PURE__ */ Z(Wt, {
|
|
1628
1628
|
size: G.MD,
|
|
1629
1629
|
"aria-hidden": !0,
|
|
1630
1630
|
stroke: K
|
|
@@ -1635,7 +1635,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1635
1635
|
}),
|
|
1636
1636
|
He && Re && /* @__PURE__ */ Z(Ze, {
|
|
1637
1637
|
label: E?.publishLabel ?? "Publish",
|
|
1638
|
-
iconBefore: /* @__PURE__ */ Z(
|
|
1638
|
+
iconBefore: /* @__PURE__ */ Z(Gt, {
|
|
1639
1639
|
size: G.MD,
|
|
1640
1640
|
"aria-hidden": !0,
|
|
1641
1641
|
stroke: K
|
|
@@ -1644,12 +1644,12 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1644
1644
|
onMouseEnter: Ne,
|
|
1645
1645
|
onFocus: Ne
|
|
1646
1646
|
}),
|
|
1647
|
-
Ge && !Je &&
|
|
1648
|
-
!Ie && (ft ? Dt(ft) : st.length > 0 &&
|
|
1647
|
+
Ge && !Je && wt(Ze),
|
|
1648
|
+
!Ie && (ft ? Dt(ft) : st.length > 0 && Ot())
|
|
1649
1649
|
]
|
|
1650
1650
|
})]
|
|
1651
1651
|
});
|
|
1652
|
-
},
|
|
1652
|
+
}, Mr = ({ topics: e, content: t, detailsStyles: n, markdownLabels: r }) => {
|
|
1653
1653
|
let i = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", a = n?.typography?.contentClassName ?? "dial-small-text";
|
|
1654
1654
|
return /* @__PURE__ */ Q("div", {
|
|
1655
1655
|
className: "flex flex-col gap-5",
|
|
@@ -1669,28 +1669,28 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1669
1669
|
...r
|
|
1670
1670
|
}), e && e.length > 0 && /* @__PURE__ */ Z("div", {
|
|
1671
1671
|
className: "flex flex-wrap gap-2",
|
|
1672
|
-
children: e.map((e) => /* @__PURE__ */ Z(
|
|
1672
|
+
children: e.map((e) => /* @__PURE__ */ Z(Rn, { label: e }, e))
|
|
1673
1673
|
})]
|
|
1674
1674
|
});
|
|
1675
|
-
},
|
|
1675
|
+
}, Nr = {
|
|
1676
1676
|
divider: "_divider_1gzl9_1",
|
|
1677
1677
|
fileCount: "_fileCount_1gzl9_5",
|
|
1678
1678
|
body: "_body_1gzl9_9"
|
|
1679
|
-
},
|
|
1679
|
+
}, Pr = {
|
|
1680
1680
|
focusedRow: "_focusedRow_jyeta_2",
|
|
1681
1681
|
selectedRow: "_selectedRow_jyeta_6",
|
|
1682
1682
|
row: "_row_jyeta_10"
|
|
1683
|
-
},
|
|
1683
|
+
}, Fr = (e, t, n = void 0) => e.flatMap((e) => {
|
|
1684
1684
|
let r = {
|
|
1685
1685
|
node: e,
|
|
1686
1686
|
parentId: n
|
|
1687
1687
|
};
|
|
1688
|
-
return e.type ===
|
|
1689
|
-
}),
|
|
1688
|
+
return e.type === cn.File || !t.has(e.id) ? [r] : [r, ...Fr(e.items, t, e.id)];
|
|
1689
|
+
}), Ir = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text", colors: c }) => {
|
|
1690
1690
|
let l = de({
|
|
1691
1691
|
"--cat-content-tree-row-hover-bg": c?.rowHoverBackground,
|
|
1692
1692
|
"--cat-content-tree-row-selected-bg": c?.rowSelectedBackground
|
|
1693
|
-
}), u = V(() =>
|
|
1693
|
+
}), u = V(() => Fr(e, n), [e, n]), d = H({}), [f, p] = U(() => t ?? u[0]?.node.id);
|
|
1694
1694
|
B(() => {
|
|
1695
1695
|
f != null && d.current[f]?.focus();
|
|
1696
1696
|
}, []);
|
|
@@ -1714,20 +1714,20 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1714
1714
|
break;
|
|
1715
1715
|
}
|
|
1716
1716
|
case "ArrowRight":
|
|
1717
|
-
e.preventDefault(), o.node.type ===
|
|
1717
|
+
e.preventDefault(), o.node.type === cn.Folder && !n.has(o.node.id) && r(o.node.id);
|
|
1718
1718
|
break;
|
|
1719
1719
|
case "ArrowLeft":
|
|
1720
|
-
e.preventDefault(), o.node.type ===
|
|
1720
|
+
e.preventDefault(), o.node.type === cn.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && m(o.parentId);
|
|
1721
1721
|
break;
|
|
1722
1722
|
case "Enter":
|
|
1723
1723
|
case " ":
|
|
1724
|
-
e.preventDefault(), o.node.type ===
|
|
1724
|
+
e.preventDefault(), o.node.type === cn.Folder ? r(o.node.id) : i(o.node.id);
|
|
1725
1725
|
break;
|
|
1726
1726
|
case "Escape": e.preventDefault(), a();
|
|
1727
1727
|
}
|
|
1728
|
-
}, g = (e) => R("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-hidden",
|
|
1728
|
+
}, g = (e) => R("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-hidden", Pr.row, e && Pr.focusedRow), _ = (e) => {
|
|
1729
1729
|
let a = e.id === f;
|
|
1730
|
-
if (e.type ===
|
|
1730
|
+
if (e.type === cn.File) {
|
|
1731
1731
|
let n = e.id === t;
|
|
1732
1732
|
return /* @__PURE__ */ Z("div", {
|
|
1733
1733
|
ref: (t) => {
|
|
@@ -1736,7 +1736,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1736
1736
|
role: "treeitem",
|
|
1737
1737
|
"aria-selected": n,
|
|
1738
1738
|
tabIndex: a ? 0 : -1,
|
|
1739
|
-
className: R(g(a), n &&
|
|
1739
|
+
className: R(g(a), n && Pr.selectedRow),
|
|
1740
1740
|
onClick: () => i(e.id),
|
|
1741
1741
|
onFocus: () => p(e.id),
|
|
1742
1742
|
children: /* @__PURE__ */ Z("span", {
|
|
@@ -1757,7 +1757,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1757
1757
|
onClick: () => r(e.id),
|
|
1758
1758
|
onFocus: () => p(e.id),
|
|
1759
1759
|
children: [
|
|
1760
|
-
/* @__PURE__ */ Z(
|
|
1760
|
+
/* @__PURE__ */ Z(Ot, {
|
|
1761
1761
|
size: G.SM,
|
|
1762
1762
|
className: "shrink-0",
|
|
1763
1763
|
"aria-hidden": !0,
|
|
@@ -1767,7 +1767,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1767
1767
|
className: R("min-w-0 flex-1 truncate", s),
|
|
1768
1768
|
children: e.name
|
|
1769
1769
|
}),
|
|
1770
|
-
/* @__PURE__ */ Z(
|
|
1770
|
+
/* @__PURE__ */ Z(xt, {
|
|
1771
1771
|
size: G.SM,
|
|
1772
1772
|
className: R("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
|
|
1773
1773
|
"aria-hidden": !0,
|
|
@@ -1787,8 +1787,8 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1787
1787
|
onKeyDown: h,
|
|
1788
1788
|
children: e.map((e) => _(e))
|
|
1789
1789
|
});
|
|
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 =
|
|
1790
|
+
}, Lr = () => void 0, Rr = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = Lr, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = Lr, 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 }) => {
|
|
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 = qn(w) > 1, E = Yn(w, r) ?? "", D = {
|
|
1792
1792
|
nodes: w,
|
|
1793
1793
|
selectedFileId: r,
|
|
1794
1794
|
expandedFolderIds: o,
|
|
@@ -1800,10 +1800,10 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1800
1800
|
ariaLabel: u,
|
|
1801
1801
|
rowNameClassName: y
|
|
1802
1802
|
}, O = a ? {
|
|
1803
|
-
type:
|
|
1803
|
+
type: ln.Text,
|
|
1804
1804
|
text: ""
|
|
1805
1805
|
} : m ?? {
|
|
1806
|
-
type:
|
|
1806
|
+
type: ln.Markdown,
|
|
1807
1807
|
text: e
|
|
1808
1808
|
};
|
|
1809
1809
|
return /* @__PURE__ */ Q("div", {
|
|
@@ -1819,7 +1819,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1819
1819
|
listClassName: "w-[280px] shadow-md",
|
|
1820
1820
|
placement: "bottom-start",
|
|
1821
1821
|
overlayRole: Me.None,
|
|
1822
|
-
renderOverlay: () => g ? g(D) : /* @__PURE__ */ Z(
|
|
1822
|
+
renderOverlay: () => g ? g(D) : /* @__PURE__ */ Z(Ir, {
|
|
1823
1823
|
...D,
|
|
1824
1824
|
colors: {
|
|
1825
1825
|
rowHoverBackground: _?.colors?.contentFileTreeRowHoverBackground,
|
|
@@ -1834,18 +1834,18 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1834
1834
|
onClick: () => l(!c)
|
|
1835
1835
|
})
|
|
1836
1836
|
}), /* @__PURE__ */ Z("span", {
|
|
1837
|
-
className: R("shrink-0", x,
|
|
1838
|
-
children: d(
|
|
1837
|
+
className: R("shrink-0", x, Nr.fileCount),
|
|
1838
|
+
children: d(qn(w))
|
|
1839
1839
|
})]
|
|
1840
1840
|
}),
|
|
1841
1841
|
C && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("p", {
|
|
1842
1842
|
className: R("m-0", y),
|
|
1843
1843
|
children: t
|
|
1844
|
-
}), /* @__PURE__ */ Z("div", { className: R("shrink-0",
|
|
1844
|
+
}), /* @__PURE__ */ Z("div", { className: R("shrink-0", Nr.divider) })] }),
|
|
1845
1845
|
/* @__PURE__ */ Q("div", {
|
|
1846
1846
|
role: T ? "region" : void 0,
|
|
1847
1847
|
"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 &&
|
|
1848
|
+
className: R("min-h-0 flex-1 text-start", h == null ? "overflow-auto wrap-break-word" : "overflow-hidden", h == null && Nr.body, h == null && y),
|
|
1849
1849
|
children: [/* @__PURE__ */ Z(Ke, {
|
|
1850
1850
|
visuallyHidden: !0,
|
|
1851
1851
|
as: qe.Span,
|
|
@@ -1853,24 +1853,24 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1853
1853
|
}), (() => {
|
|
1854
1854
|
if (h != null) return h;
|
|
1855
1855
|
switch (O.type) {
|
|
1856
|
-
case
|
|
1856
|
+
case ln.Markdown: return /* @__PURE__ */ Z(se, {
|
|
1857
1857
|
content: O.text,
|
|
1858
1858
|
headingClassName: b,
|
|
1859
1859
|
...v
|
|
1860
1860
|
});
|
|
1861
|
-
case
|
|
1861
|
+
case ln.Text: return /* @__PURE__ */ Z(L, {
|
|
1862
1862
|
language: O.language ?? "",
|
|
1863
1863
|
value: O.text,
|
|
1864
1864
|
copyLabel: v?.codeBlockCopyLabel,
|
|
1865
1865
|
copiedLabel: v?.codeBlockCopiedLabel,
|
|
1866
1866
|
hideDownload: !0
|
|
1867
1867
|
});
|
|
1868
|
-
case
|
|
1868
|
+
case ln.Image: return /* @__PURE__ */ Z("img", {
|
|
1869
1869
|
src: O.url,
|
|
1870
1870
|
alt: E,
|
|
1871
1871
|
className: "max-w-full"
|
|
1872
1872
|
});
|
|
1873
|
-
case
|
|
1873
|
+
case ln.Unsupported: return /* @__PURE__ */ Z("p", {
|
|
1874
1874
|
className: "m-0",
|
|
1875
1875
|
children: p
|
|
1876
1876
|
});
|
|
@@ -1879,12 +1879,12 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1879
1879
|
})
|
|
1880
1880
|
]
|
|
1881
1881
|
});
|
|
1882
|
-
},
|
|
1882
|
+
}, zr = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), Br = /* @__PURE__ */ function(e) {
|
|
1883
1883
|
return e.Default = "default", e.Warning = "warning", e.Danger = "danger", e;
|
|
1884
|
-
}({}),
|
|
1885
|
-
let t =
|
|
1884
|
+
}({}), Vr = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), Hr = (e) => Number.isFinite(e) && e > 0 ? e : 1, Ur = ({ used: e, total: t, valueLabel: n }) => n ?? `${zr.format(e)} / ${zr.format(t)}`, Wr = ({ total: e }) => Number.isFinite(e) && e > 0, Gr = (e) => e.isUnlimited !== !0 && Wr(e), Kr = (e) => Wr(e) ? Math.max(e.used, 0) / e.total : 0, qr = (e) => {
|
|
1885
|
+
let t = Kr(e);
|
|
1886
1886
|
return t >= 1 ? "danger" : t >= .75 ? "warning" : "default";
|
|
1887
|
-
},
|
|
1887
|
+
}, Jr = {
|
|
1888
1888
|
sectionHeading: "_sectionHeading_1v3yh_2",
|
|
1889
1889
|
label: "_label_1v3yh_6",
|
|
1890
1890
|
valuePrimary: "_valuePrimary_1v3yh_10",
|
|
@@ -1895,90 +1895,90 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1895
1895
|
progressFillDanger: "_progressFillDanger_1v3yh_33",
|
|
1896
1896
|
resetLabel: "_resetLabel_1v3yh_38",
|
|
1897
1897
|
valueDanger: "_valueDanger_1v3yh_43"
|
|
1898
|
-
},
|
|
1899
|
-
let s =
|
|
1900
|
-
value:
|
|
1901
|
-
max:
|
|
1898
|
+
}, Yr = ({ row: e, layout: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => {
|
|
1899
|
+
let s = Ur(e), c = qr(e), l = /* @__PURE__ */ Z(rt, {
|
|
1900
|
+
value: Vr(e),
|
|
1901
|
+
max: Hr(e.total),
|
|
1902
1902
|
size: J.Small,
|
|
1903
|
-
className: R("h-1! w-full",
|
|
1903
|
+
className: R("h-1! w-full", Jr.progressTrack, c === Br.Default && Jr.progressFillDefault, c === Br.Warning && Jr.progressFillWarning, c === Br.Danger && Jr.progressFillDanger),
|
|
1904
1904
|
"aria-label": e.label,
|
|
1905
1905
|
"aria-valuetext": e.ariaLabel ?? s
|
|
1906
1906
|
}), u = e.captionLabel != null && /* @__PURE__ */ Z("span", {
|
|
1907
|
-
className: R("wrap-break-word", r,
|
|
1907
|
+
className: R("wrap-break-word", r, Jr.label),
|
|
1908
1908
|
children: e.captionLabel
|
|
1909
1909
|
}), d = e.resetLabel != null && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("time", {
|
|
1910
1910
|
dateTime: e.resetIsoValue,
|
|
1911
1911
|
"aria-hidden": e.resetAriaLabel != null || void 0,
|
|
1912
|
-
className: R("wrap-break-word", r,
|
|
1912
|
+
className: R("wrap-break-word", r, Jr.resetLabel),
|
|
1913
1913
|
children: e.resetLabel
|
|
1914
1914
|
}), e.resetAriaLabel != null && /* @__PURE__ */ Z("span", {
|
|
1915
1915
|
className: "sr-only",
|
|
1916
1916
|
children: e.resetAriaLabel
|
|
1917
1917
|
})] });
|
|
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",
|
|
1918
|
+
return t === sn.Stacked ? /* @__PURE__ */ Q("li", {
|
|
1919
|
+
className: R("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0", Jr.divider),
|
|
1920
1920
|
children: [
|
|
1921
1921
|
/* @__PURE__ */ Q("div", {
|
|
1922
1922
|
className: "flex items-baseline justify-between gap-3",
|
|
1923
1923
|
children: [/* @__PURE__ */ Z("span", {
|
|
1924
|
-
className: R("min-w-0 wrap-break-word", n,
|
|
1924
|
+
className: R("min-w-0 wrap-break-word", n, Jr.valuePrimary),
|
|
1925
1925
|
children: e.label
|
|
1926
1926
|
}), /* @__PURE__ */ Z("span", {
|
|
1927
|
-
className: R("shrink-0", i, c ===
|
|
1927
|
+
className: R("shrink-0", i, c === Br.Danger ? Jr.valueDanger : Jr.valuePrimary),
|
|
1928
1928
|
children: s
|
|
1929
1929
|
})]
|
|
1930
1930
|
}),
|
|
1931
1931
|
u,
|
|
1932
|
-
|
|
1933
|
-
className: R(o,
|
|
1932
|
+
Gr(e) ? l : e.noteLabel != null && /* @__PURE__ */ Z("span", {
|
|
1933
|
+
className: R(o, Jr.label),
|
|
1934
1934
|
children: e.noteLabel
|
|
1935
1935
|
}),
|
|
1936
1936
|
d
|
|
1937
1937
|
]
|
|
1938
1938
|
}) : /* @__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",
|
|
1939
|
+
className: R("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", Jr.divider),
|
|
1940
1940
|
children: [/* @__PURE__ */ Q("div", {
|
|
1941
1941
|
className: "flex min-w-0 flex-1 flex-col",
|
|
1942
1942
|
children: [
|
|
1943
1943
|
/* @__PURE__ */ Z("span", {
|
|
1944
|
-
className: R("wrap-break-word", n,
|
|
1944
|
+
className: R("wrap-break-word", n, Jr.label),
|
|
1945
1945
|
children: e.label
|
|
1946
1946
|
}),
|
|
1947
1947
|
u,
|
|
1948
1948
|
d
|
|
1949
1949
|
]
|
|
1950
|
-
}),
|
|
1950
|
+
}), Gr(e) ? /* @__PURE__ */ Q("div", {
|
|
1951
1951
|
className: "flex w-32 shrink-0 flex-col items-end gap-2",
|
|
1952
1952
|
children: [/* @__PURE__ */ Z("div", {
|
|
1953
1953
|
className: R("flex gap-1", i),
|
|
1954
1954
|
children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("span", {
|
|
1955
|
-
className:
|
|
1955
|
+
className: Jr.valuePrimary,
|
|
1956
1956
|
children: e.usedLabel
|
|
1957
1957
|
}), /* @__PURE__ */ Z("span", {
|
|
1958
|
-
className:
|
|
1958
|
+
className: Jr.label,
|
|
1959
1959
|
children: ` / ${e.totalLabel}`
|
|
1960
1960
|
})] }) : /* @__PURE__ */ Z("span", {
|
|
1961
|
-
className:
|
|
1961
|
+
className: Jr.label,
|
|
1962
1962
|
children: s
|
|
1963
1963
|
})
|
|
1964
1964
|
}), l]
|
|
1965
1965
|
}) : /* @__PURE__ */ Q("div", {
|
|
1966
1966
|
className: "flex shrink-0 flex-col items-end",
|
|
1967
1967
|
children: [/* @__PURE__ */ Z("span", {
|
|
1968
|
-
className: R(a,
|
|
1968
|
+
className: R(a, Jr.valuePrimary),
|
|
1969
1969
|
children: s
|
|
1970
1970
|
}), e.noteLabel != null && /* @__PURE__ */ Z("span", {
|
|
1971
|
-
className: R(o,
|
|
1971
|
+
className: R(o, Jr.label),
|
|
1972
1972
|
children: e.noteLabel
|
|
1973
1973
|
})]
|
|
1974
1974
|
})]
|
|
1975
1975
|
});
|
|
1976
|
-
},
|
|
1977
|
-
className: R("mt-0 mb-3", t,
|
|
1976
|
+
}, Xr = ({ group: e, sectionClassName: t, layout: n, labelClassName: r, captionClassName: i, valueClassName: a, noteValueClassName: o, noteClassName: s }) => /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
|
|
1977
|
+
className: R("mt-0 mb-3", t, Jr.sectionHeading),
|
|
1978
1978
|
children: e.label
|
|
1979
1979
|
}), /* @__PURE__ */ Z("ul", {
|
|
1980
1980
|
className: "m-0 flex list-none flex-col p-0",
|
|
1981
|
-
children: e.rows.map((e) => /* @__PURE__ */ Z(
|
|
1981
|
+
children: e.rows.map((e) => /* @__PURE__ */ Z(Yr, {
|
|
1982
1982
|
row: e,
|
|
1983
1983
|
layout: n,
|
|
1984
1984
|
labelClassName: r,
|
|
@@ -1987,7 +1987,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
1987
1987
|
noteValueClassName: o,
|
|
1988
1988
|
noteClassName: s
|
|
1989
1989
|
}, e.label))
|
|
1990
|
-
})] }),
|
|
1990
|
+
})] }), Zr = ({ limits: e, layout: t = sn.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
1991
|
let d = e?.groups.filter((e) => e.rows.length > 0);
|
|
1992
1992
|
if (d == null || d.length === 0) return null;
|
|
1993
1993
|
let f = de({
|
|
@@ -2004,7 +2004,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2004
2004
|
return /* @__PURE__ */ Q("div", {
|
|
2005
2005
|
className: "flex flex-col gap-6",
|
|
2006
2006
|
style: f,
|
|
2007
|
-
children: [d.map((e) => /* @__PURE__ */ Z(
|
|
2007
|
+
children: [d.map((e) => /* @__PURE__ */ Z(Xr, {
|
|
2008
2008
|
group: e,
|
|
2009
2009
|
layout: t,
|
|
2010
2010
|
sectionClassName: s,
|
|
@@ -2014,17 +2014,17 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2014
2014
|
noteValueClassName: a,
|
|
2015
2015
|
noteClassName: o
|
|
2016
2016
|
}, e.label)), l != null && /* @__PURE__ */ Z("p", {
|
|
2017
|
-
className: R("m-0 border-t pt-4", c,
|
|
2017
|
+
className: R("m-0 border-t pt-4", c, Jr.divider, Jr.label),
|
|
2018
2018
|
children: l
|
|
2019
2019
|
})]
|
|
2020
2020
|
});
|
|
2021
|
-
},
|
|
2021
|
+
}, Qr = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o, sectionContainerClassName: s = "px-6" }) => e ? /* @__PURE__ */ Z("div", {
|
|
2022
2022
|
className: "flex flex-col gap-4",
|
|
2023
2023
|
children: e.map((e, c) => /* @__PURE__ */ Q("div", {
|
|
2024
2024
|
className: "flex flex-col gap-4",
|
|
2025
|
-
children: [c > 0 && /* @__PURE__ */ Z("div", { className: R("shrink-0 border-b",
|
|
2025
|
+
children: [c > 0 && /* @__PURE__ */ Z("div", { className: R("shrink-0 border-b", br.divider) }), /* @__PURE__ */ Z("div", {
|
|
2026
2026
|
className: s,
|
|
2027
|
-
children: /* @__PURE__ */ Z(
|
|
2027
|
+
children: /* @__PURE__ */ Z(Qn, {
|
|
2028
2028
|
sectionLabel: e.title,
|
|
2029
2029
|
values: e.specs,
|
|
2030
2030
|
sectionClassName: t,
|
|
@@ -2036,7 +2036,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2036
2036
|
})
|
|
2037
2037
|
})]
|
|
2038
2038
|
}, c))
|
|
2039
|
-
}) : null,
|
|
2039
|
+
}) : null, $r = ({ 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
2040
|
if (e == null) return null;
|
|
2041
2041
|
let s = e.prices?.map((e) => ({
|
|
2042
2042
|
label: e.label,
|
|
@@ -2047,13 +2047,13 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2047
2047
|
}));
|
|
2048
2048
|
return /* @__PURE__ */ Q("div", {
|
|
2049
2049
|
className: "flex flex-col gap-4",
|
|
2050
|
-
children: [/* @__PURE__ */ Z(
|
|
2051
|
-
sectionLabel: e.unit ===
|
|
2050
|
+
children: [/* @__PURE__ */ Z(Qn, {
|
|
2051
|
+
sectionLabel: e.unit === nn.Character ? n : t,
|
|
2052
2052
|
values: s ?? [],
|
|
2053
2053
|
labelClassName: i,
|
|
2054
2054
|
valueClassName: a,
|
|
2055
2055
|
sectionClassName: o
|
|
2056
|
-
}), /* @__PURE__ */ Z(
|
|
2056
|
+
}), /* @__PURE__ */ Z(Qn, {
|
|
2057
2057
|
sectionLabel: r,
|
|
2058
2058
|
values: c ?? [],
|
|
2059
2059
|
labelClassName: i,
|
|
@@ -2061,29 +2061,29 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2061
2061
|
sectionClassName: o
|
|
2062
2062
|
})]
|
|
2063
2063
|
});
|
|
2064
|
-
},
|
|
2064
|
+
}, ei = {
|
|
2065
2065
|
container: "_container_ddi3i_1",
|
|
2066
2066
|
header: "_header_ddi3i_5",
|
|
2067
2067
|
cell: "_cell_ddi3i_10",
|
|
2068
2068
|
evenRow: "_evenRow_ddi3i_17"
|
|
2069
|
-
},
|
|
2069
|
+
}, ti = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
|
|
2070
2070
|
let a = n ?? `repeat(${e.length}, 1fr)`;
|
|
2071
2071
|
return /* @__PURE__ */ Q("div", {
|
|
2072
|
-
className: R(
|
|
2072
|
+
className: R(ei.container, "grid overflow-hidden rounded-md"),
|
|
2073
2073
|
style: { gridTemplateColumns: a },
|
|
2074
2074
|
children: [e.map((e) => /* @__PURE__ */ Z("div", {
|
|
2075
|
-
className: R("px-2 py-1 text-start", r,
|
|
2075
|
+
className: R("px-2 py-1 text-start", r, ei.header),
|
|
2076
2076
|
children: e
|
|
2077
2077
|
}, 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,
|
|
2078
|
+
className: R("px-2 py-1.5", i, ei.cell, t % 2 == 1 ? ei.evenRow : void 0),
|
|
2079
2079
|
children: e
|
|
2080
2080
|
}, n)) }, t))]
|
|
2081
2081
|
});
|
|
2082
|
-
},
|
|
2082
|
+
}, ni = {
|
|
2083
2083
|
divider: "_divider_vloer_1",
|
|
2084
2084
|
count: "_count_vloer_5",
|
|
2085
2085
|
description: "_description_vloer_9"
|
|
2086
|
-
},
|
|
2086
|
+
}, ri = {
|
|
2087
2087
|
inputName: "Name",
|
|
2088
2088
|
inputType: "Type",
|
|
2089
2089
|
inputRequired: "Required",
|
|
@@ -2093,13 +2093,13 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2093
2093
|
searchClearLabel: "Clear search",
|
|
2094
2094
|
toolCount: (e) => `${e} tools`,
|
|
2095
2095
|
noResults: "No results found"
|
|
2096
|
-
},
|
|
2096
|
+
}, ii = 6, ai = (e, t) => e.name.toLowerCase().includes(t) || (e.description?.toLowerCase().includes(t) ?? !1), oi = ({ 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
2097
|
let c = {
|
|
2098
|
-
...
|
|
2098
|
+
...ri,
|
|
2099
2099
|
...s
|
|
2100
2100
|
}, [l, u] = U(""), d = l.trim(), f = V(() => {
|
|
2101
2101
|
let t = l.trim().toLowerCase(), n = e?.tools ?? [];
|
|
2102
|
-
return t === "" ? n : n.filter((e) =>
|
|
2102
|
+
return t === "" ? n : n.filter((e) => ai(e, t));
|
|
2103
2103
|
}, [e, l]);
|
|
2104
2104
|
return e == null ? null : /* @__PURE__ */ Q("div", {
|
|
2105
2105
|
className: "flex flex-col",
|
|
@@ -2114,13 +2114,13 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2114
2114
|
onChange: (e) => u(e ?? "")
|
|
2115
2115
|
}), /* @__PURE__ */ Z(Ke, {
|
|
2116
2116
|
as: qe.Span,
|
|
2117
|
-
className: R(a,
|
|
2117
|
+
className: R(a, ni.count),
|
|
2118
2118
|
children: c.toolCount(f.length)
|
|
2119
2119
|
})]
|
|
2120
2120
|
}),
|
|
2121
2121
|
f.length === 0 && l.trim() !== "" && /* @__PURE__ */ Z(ce, { label: c.noResults }),
|
|
2122
2122
|
f.map((e, a) => /* @__PURE__ */ Q("div", {
|
|
2123
|
-
className: R("flex flex-col gap-3 px-[22px] py-4", a > 0 ?
|
|
2123
|
+
className: R("flex flex-col gap-3 px-[22px] py-4", a > 0 ? ni.divider : void 0),
|
|
2124
2124
|
children: [
|
|
2125
2125
|
/* @__PURE__ */ Q("div", {
|
|
2126
2126
|
className: "flex flex-col gap-1",
|
|
@@ -2131,15 +2131,15 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2131
2131
|
query: d
|
|
2132
2132
|
})
|
|
2133
2133
|
}), e.description != null && /* @__PURE__ */ Z("p", {
|
|
2134
|
-
className: R("m-0", n,
|
|
2134
|
+
className: R("m-0", n, ni.description),
|
|
2135
2135
|
children: /* @__PURE__ */ Z(Be, {
|
|
2136
2136
|
text: e.description,
|
|
2137
2137
|
query: d,
|
|
2138
|
-
maxLines:
|
|
2138
|
+
maxLines: ii
|
|
2139
2139
|
})
|
|
2140
2140
|
})]
|
|
2141
2141
|
}),
|
|
2142
|
-
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ Z(
|
|
2142
|
+
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ Z(ti, {
|
|
2143
2143
|
columns: [
|
|
2144
2144
|
c.inputName,
|
|
2145
2145
|
c.inputType,
|
|
@@ -2160,7 +2160,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2160
2160
|
headingClassName: r,
|
|
2161
2161
|
cellClassName: i
|
|
2162
2162
|
}),
|
|
2163
|
-
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ Z(
|
|
2163
|
+
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ Z(ti, {
|
|
2164
2164
|
columns: [c.annotationKey, c.annotationValue],
|
|
2165
2165
|
rows: e.annotations.map((e) => [/* @__PURE__ */ Z("code", {
|
|
2166
2166
|
className: R("border-none bg-transparent p-0 text-inherit", o),
|
|
@@ -2173,23 +2173,23 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2173
2173
|
}, e.name))
|
|
2174
2174
|
]
|
|
2175
2175
|
});
|
|
2176
|
-
},
|
|
2176
|
+
}, si = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), ci = !1, li = async () => void 0, ui = [], di = [], fi = [
|
|
2177
2177
|
"All shared configurations will be lost",
|
|
2178
2178
|
"Users who rely on it will lose access",
|
|
2179
2179
|
"Cannot be undone"
|
|
2180
|
-
],
|
|
2180
|
+
], pi = [
|
|
2181
2181
|
"You will lose access to this item",
|
|
2182
2182
|
"Other people keep their access",
|
|
2183
2183
|
"You will need a new invitation to get it back"
|
|
2184
|
-
],
|
|
2184
|
+
], mi = [
|
|
2185
2185
|
"Everyone loses access to the published copy",
|
|
2186
2186
|
"Your own copy is not deleted",
|
|
2187
2187
|
"You can publish it again later"
|
|
2188
|
-
],
|
|
2188
|
+
], hi = [
|
|
2189
2189
|
"Everyone you shared it with loses access",
|
|
2190
2190
|
"Existing share links stop working",
|
|
2191
2191
|
"You keep full access — nothing is deleted"
|
|
2192
|
-
],
|
|
2192
|
+
], gi = (e) => e === s.ApiKey ? "Toolset API keys" : "Toolset credentials", _i = (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?", vi = /* @__PURE__ */ new Set([$.Delete, $.Unshare]), yi = ({ 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 = ui, publishExpandedPaths: _, onPublishExpandedPathsChange: v, publishLoadingPaths: y, hasPublishWriteAccess: b, publishDefaultAuthor: S, onPublish: C, onPublishSuccess: T, onPublishError: D, onCreatePublishFolder: A, publishLabels: j, ruleSourceOptions: M = di, 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
2193
|
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
2194
|
"--cat-details-backdrop": q?.backdrop,
|
|
2195
2195
|
"--cat-details-bg": q?.background,
|
|
@@ -2228,11 +2228,11 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2228
2228
|
"--cat-cred-card-title-text": q?.credentialsCardTitleText,
|
|
2229
2229
|
"--cat-cred-card-description-text": q?.credentialsCardDescriptionText
|
|
2230
2230
|
}), [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 ===
|
|
2231
|
+
let t = $e.current, n = e?.preview?.type === ln.Image ? e.preview.url : null;
|
|
2232
2232
|
t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), $e.current = n, We(e);
|
|
2233
2233
|
}, []);
|
|
2234
2234
|
B(() => {
|
|
2235
|
-
et.current += 1, tt(null), Je(!1), Xe(
|
|
2235
|
+
et.current += 1, tt(null), Je(!1), Xe(Jn(Ve?.files ?? [])), Qe(!1);
|
|
2236
2236
|
}, [e.id, He]), B(() => () => {
|
|
2237
2237
|
let e = $e.current;
|
|
2238
2238
|
e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
|
|
@@ -2262,11 +2262,11 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2262
2262
|
}), Je(!0);
|
|
2263
2263
|
try {
|
|
2264
2264
|
let n = se == null ? await oe?.(e).then((e) => e == null ? void 0 : {
|
|
2265
|
-
type:
|
|
2265
|
+
type: ln.Markdown,
|
|
2266
2266
|
text: e
|
|
2267
2267
|
}) : await se(e);
|
|
2268
2268
|
if (et.current !== t) {
|
|
2269
|
-
n?.type ===
|
|
2269
|
+
n?.type === ln.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
|
|
2270
2270
|
return;
|
|
2271
2271
|
}
|
|
2272
2272
|
tt({
|
|
@@ -2289,9 +2289,9 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2289
2289
|
le,
|
|
2290
2290
|
tt
|
|
2291
2291
|
]), at = Ue?.id ?? He, ot = () => Ue == null ? null : Ue.preview == null ? {
|
|
2292
|
-
type:
|
|
2292
|
+
type: ln.Text,
|
|
2293
2293
|
text: W?.contentFileErrorLabel ?? "Failed to load this file."
|
|
2294
|
-
} : Ue.preview, lt = Ue != null && le != null ? le(Ue.id,
|
|
2294
|
+
} : Ue.preview, lt = Ue != null && le != null ? le(Ue.id, Yn(Ve?.files ?? [], Ue.id) ?? "") : void 0, ut = z(() => {
|
|
2295
2295
|
if (!h || Be.current === e.id) return;
|
|
2296
2296
|
let t = e.id;
|
|
2297
2297
|
Be.current = t, (async () => {
|
|
@@ -2310,24 +2310,24 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2310
2310
|
}, [Pe, ut]);
|
|
2311
2311
|
let ft = z((e, t) => {
|
|
2312
2312
|
Be.current = null, ze(!1), ut(), T?.(e, t);
|
|
2313
|
-
}, [ut, T]), Y =
|
|
2313
|
+
}, [ut, T]), Y = Yt({
|
|
2314
2314
|
item: e,
|
|
2315
2315
|
history: Ie,
|
|
2316
2316
|
folderItems: g,
|
|
2317
2317
|
hasWriteAccess: b,
|
|
2318
2318
|
defaultAuthor: S,
|
|
2319
2319
|
onCreateFolder: A,
|
|
2320
|
-
onPublish: C ??
|
|
2320
|
+
onPublish: C ?? li,
|
|
2321
2321
|
onPublishSuccess: ft,
|
|
2322
2322
|
onPublishError: D,
|
|
2323
2323
|
onFetchExistingRules: N
|
|
2324
|
-
}), pt = e.type === P.Toolset && O(e.credentials), mt = V(() =>
|
|
2324
|
+
}), pt = e.type === P.Toolset && O(e.credentials), mt = V(() => Jt({
|
|
2325
2325
|
hasSelectedFolder: Y.selectedFolderPath != null,
|
|
2326
2326
|
hasExistingPublicationInFolder: Y.hasExistingPublicationInFolder,
|
|
2327
2327
|
hasWriteAccess: Y.hasWriteAccess,
|
|
2328
2328
|
isSubmitting: Y.isSubmitting,
|
|
2329
2329
|
hasSubmitError: Y.hasSubmitError,
|
|
2330
|
-
allowReplace:
|
|
2330
|
+
allowReplace: ci
|
|
2331
2331
|
}), [
|
|
2332
2332
|
Y.selectedFolderPath,
|
|
2333
2333
|
Y.hasExistingPublicationInFolder,
|
|
@@ -2389,12 +2389,12 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2389
2389
|
xt != null && await Se?.(e, { level: xt });
|
|
2390
2390
|
break;
|
|
2391
2391
|
case $.Unpublish: {
|
|
2392
|
-
let t =
|
|
2392
|
+
let t = si(Pt, Tt);
|
|
2393
2393
|
t != null && await ye?.(e, t.segments);
|
|
2394
2394
|
break;
|
|
2395
2395
|
}
|
|
2396
2396
|
}
|
|
2397
|
-
vt(null), St(null), wt(null), Et(null),
|
|
2397
|
+
vt(null), St(null), wt(null), Et(null), vi.has(_t) && s();
|
|
2398
2398
|
} catch {
|
|
2399
2399
|
vt(null), St(null), wt(null), Et(null);
|
|
2400
2400
|
} finally {
|
|
@@ -2438,7 +2438,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2438
2438
|
je,
|
|
2439
2439
|
e.id,
|
|
2440
2440
|
c
|
|
2441
|
-
]),
|
|
2441
|
+
]), Gt = V(() => {
|
|
2442
2442
|
let t = {
|
|
2443
2443
|
[n.About]: W?.tabAboutLabel ?? "About",
|
|
2444
2444
|
[n.Content]: W?.tabContentLabel ?? "Details",
|
|
@@ -2455,19 +2455,19 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2455
2455
|
}, [e, W]), Xt = H(null);
|
|
2456
2456
|
B(() => {
|
|
2457
2457
|
let t = Xt.current !== e.id;
|
|
2458
|
-
Xt.current = e.id, (t || !
|
|
2458
|
+
Xt.current = e.id, (t || !Gt.some((e) => e.id === J)) && Ne(Gt[0]?.id ?? "");
|
|
2459
2459
|
}, [
|
|
2460
2460
|
e.id,
|
|
2461
|
-
|
|
2461
|
+
Gt,
|
|
2462
2462
|
J
|
|
2463
2463
|
]);
|
|
2464
|
-
let Zt = V(() =>
|
|
2464
|
+
let Zt = V(() => vn(W), [W]), Qt = V(() => {
|
|
2465
2465
|
let e = {};
|
|
2466
2466
|
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
2467
|
}, [W]), $t = W?.emptyTabLabel ?? "No data", en = !e.description?.trim() && (e.topics?.length ?? 0) === 0, tn = !e.details?.overview?.sections?.length, nn = /* @__PURE__ */ Z("div", {
|
|
2468
2468
|
className: "flex size-full items-center justify-center py-6",
|
|
2469
2469
|
children: /* @__PURE__ */ Z(ce, { label: $t })
|
|
2470
|
-
}), rn = W?.overviewYesLabel ?? "Yes", an = W?.overviewNoLabel ?? "No", on = W?.ariaLabel ?? "Item details", sn = W?.closeAriaLabel ?? "Close",
|
|
2470
|
+
}), rn = W?.overviewYesLabel ?? "Yes", an = W?.overviewNoLabel ?? "No", on = W?.ariaLabel ?? "Item details", sn = W?.closeAriaLabel ?? "Close", cn = je ? W?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : W?.addToFavoritesAriaLabel ?? "Add to favorites", un = W?.publishTitle ?? "Publish", dn = W?.backToDetailsAriaLabel ?? "Back", fn = W?.cancelLabel ?? "Cancel", pn = V(() => {
|
|
2471
2471
|
switch (_t) {
|
|
2472
2472
|
case $.Delete: {
|
|
2473
2473
|
let t = W?.deleteActionLabel ?? "Delete";
|
|
@@ -2478,7 +2478,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2478
2478
|
/* @__PURE__ */ Z("strong", { children: e.name }),
|
|
2479
2479
|
"? This action is permanent and cannot be undone."
|
|
2480
2480
|
] }),
|
|
2481
|
-
consequences: W?.deleteConfirmConsequences ??
|
|
2481
|
+
consequences: W?.deleteConfirmConsequences ?? fi,
|
|
2482
2482
|
confirmLabel: t,
|
|
2483
2483
|
loadingStatusLabel: W?.deletingStatusLabel ?? "Deleting",
|
|
2484
2484
|
variant: ke.Danger
|
|
@@ -2493,7 +2493,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2493
2493
|
/* @__PURE__ */ Z("strong", { children: e.name }),
|
|
2494
2494
|
" from your list? You'll need a new invitation to access it again."
|
|
2495
2495
|
] }),
|
|
2496
|
-
consequences: W?.unshareConfirmConsequences ??
|
|
2496
|
+
consequences: W?.unshareConfirmConsequences ?? pi,
|
|
2497
2497
|
confirmLabel: t,
|
|
2498
2498
|
loadingStatusLabel: W?.unsharingStatusLabel ?? "Removing",
|
|
2499
2499
|
variant: ke.Info
|
|
@@ -2508,7 +2508,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2508
2508
|
/* @__PURE__ */ Z("strong", { children: e.name }),
|
|
2509
2509
|
"? Anyone you shared it with will lose access."
|
|
2510
2510
|
] }),
|
|
2511
|
-
consequences: W?.revokeShareConfirmConsequences ??
|
|
2511
|
+
consequences: W?.revokeShareConfirmConsequences ?? hi,
|
|
2512
2512
|
confirmLabel: t,
|
|
2513
2513
|
loadingStatusLabel: W?.revokingShareStatusLabel ?? "Revoking access",
|
|
2514
2514
|
variant: ke.Danger
|
|
@@ -2529,7 +2529,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2529
2529
|
return {
|
|
2530
2530
|
title: W?.unpublishConfirmTitle ?? t,
|
|
2531
2531
|
message: n ? i : a,
|
|
2532
|
-
consequences: W?.unpublishConfirmConsequences ??
|
|
2532
|
+
consequences: W?.unpublishConfirmConsequences ?? mi,
|
|
2533
2533
|
confirmLabel: t,
|
|
2534
2534
|
loadingStatusLabel: W?.unpublishingStatusLabel ?? "Requesting unpublish",
|
|
2535
2535
|
variant: ke.Danger
|
|
@@ -2550,7 +2550,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2550
2550
|
let e = W?.deleteActionLabel ?? "Delete", t = xt ?? i.User;
|
|
2551
2551
|
return {
|
|
2552
2552
|
title: e,
|
|
2553
|
-
message: (W?.deleteApiKeyConfirmMessage ??
|
|
2553
|
+
message: (W?.deleteApiKeyConfirmMessage ?? _i)(t),
|
|
2554
2554
|
consequences: void 0,
|
|
2555
2555
|
confirmLabel: e,
|
|
2556
2556
|
loadingStatusLabel: W?.deletingStatusLabel ?? "Deleting",
|
|
@@ -2567,7 +2567,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2567
2567
|
W,
|
|
2568
2568
|
Pt,
|
|
2569
2569
|
It
|
|
2570
|
-
]), mn = pn != null, hn = _t === $.Unpublish &&
|
|
2570
|
+
]), mn = pn != null, hn = _t === $.Unpublish && si(Pt, Tt) == null, gn = mn || Pe || ht, _n = e.credentials == null ? "" : (W?.credentialsManagementTitle ?? gi)(e.credentials.authenticationType), yn = mn ? {
|
|
2571
2571
|
title: pn.title,
|
|
2572
2572
|
isBackDisabled: yt,
|
|
2573
2573
|
onBack: zt
|
|
@@ -2576,7 +2576,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2576
2576
|
isBackDisabled: Y.isSubmitting,
|
|
2577
2577
|
onBack: Ht
|
|
2578
2578
|
} : ht ? {
|
|
2579
|
-
title:
|
|
2579
|
+
title: _n,
|
|
2580
2580
|
isBackDisabled: !1,
|
|
2581
2581
|
onBack: kt
|
|
2582
2582
|
} : null, bn = yn?.title ?? on;
|
|
@@ -2590,21 +2590,21 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2590
2590
|
backDisabled: yn?.isBackDisabled,
|
|
2591
2591
|
hideClose: yn != null,
|
|
2592
2592
|
closeAriaLabel: sn,
|
|
2593
|
-
headerActions: yn == null && !o && l?.(e) !== !1 ? /* @__PURE__ */ Z(
|
|
2593
|
+
headerActions: yn == null && !o && l?.(e) !== !1 ? /* @__PURE__ */ Z(Fn, {
|
|
2594
2594
|
isStarred: je,
|
|
2595
|
-
ariaLabel:
|
|
2595
|
+
ariaLabel: cn,
|
|
2596
2596
|
onClick: Wt
|
|
2597
2597
|
}) : void 0,
|
|
2598
2598
|
style: Ae,
|
|
2599
2599
|
overlayStyle: Ae,
|
|
2600
|
-
className: R(
|
|
2601
|
-
overlayClassName:
|
|
2602
|
-
headerClassName:
|
|
2603
|
-
titleClassName: R(Te,
|
|
2600
|
+
className: R(br.panel, "tablet:w-[540px]! tablet:max-w-[calc(100%-32px)]!"),
|
|
2601
|
+
overlayClassName: br.backdrop,
|
|
2602
|
+
headerClassName: br.divider,
|
|
2603
|
+
titleClassName: R(Te, br.publishTitle),
|
|
2604
2604
|
bodyClassName: "flex flex-col overflow-hidden",
|
|
2605
2605
|
children: [
|
|
2606
2606
|
/* @__PURE__ */ Q("div", {
|
|
2607
|
-
className: R("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto",
|
|
2607
|
+
className: R("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", br.content),
|
|
2608
2608
|
children: [
|
|
2609
2609
|
mn && /* @__PURE__ */ Z(ee, {
|
|
2610
2610
|
item: e,
|
|
@@ -2630,7 +2630,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2630
2630
|
radioClassName: K
|
|
2631
2631
|
})
|
|
2632
2632
|
}),
|
|
2633
|
-
!mn && !Pe && ht && /* @__PURE__ */ Z(
|
|
2633
|
+
!mn && !Pe && ht && /* @__PURE__ */ Z(yr, {
|
|
2634
2634
|
item: e,
|
|
2635
2635
|
onLogin: xe,
|
|
2636
2636
|
onRequestLogout: jt,
|
|
@@ -2640,7 +2640,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2640
2640
|
}),
|
|
2641
2641
|
!mn && Pe && /* @__PURE__ */ Z("div", {
|
|
2642
2642
|
className: "p-4 desktop:p-[22px]",
|
|
2643
|
-
children: /* @__PURE__ */ Z(
|
|
2643
|
+
children: /* @__PURE__ */ Z(qt, {
|
|
2644
2644
|
resource: {
|
|
2645
2645
|
title: e.name,
|
|
2646
2646
|
version: e.version,
|
|
@@ -2658,7 +2658,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2658
2658
|
hasWriteAccess: Y.hasWriteAccess,
|
|
2659
2659
|
isSubmitting: Y.isSubmitting,
|
|
2660
2660
|
hasSubmitError: Y.hasSubmitError,
|
|
2661
|
-
allowReplace:
|
|
2661
|
+
allowReplace: ci,
|
|
2662
2662
|
author: Y.author,
|
|
2663
2663
|
onAuthorChange: Y.setAuthor,
|
|
2664
2664
|
publishCredentials: Y.publishCredentials,
|
|
@@ -2677,7 +2677,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2677
2677
|
})
|
|
2678
2678
|
}),
|
|
2679
2679
|
!gn && /* @__PURE__ */ Q(X, { children: [
|
|
2680
|
-
/* @__PURE__ */ Z(
|
|
2680
|
+
/* @__PURE__ */ Z(jr, {
|
|
2681
2681
|
item: e,
|
|
2682
2682
|
onUseInChat: u,
|
|
2683
2683
|
isPrimaryActionVisible: d,
|
|
@@ -2715,7 +2715,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2715
2715
|
let t = E(e.credentials);
|
|
2716
2716
|
return t != null && /* @__PURE__ */ Z("div", {
|
|
2717
2717
|
className: "px-6",
|
|
2718
|
-
children: /* @__PURE__ */ Z(
|
|
2718
|
+
children: /* @__PURE__ */ Z(hr, {
|
|
2719
2719
|
state: t,
|
|
2720
2720
|
authenticationType: e.credentials.authenticationType,
|
|
2721
2721
|
texts: W
|
|
@@ -2727,10 +2727,10 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2727
2727
|
className: "flex items-center px-6",
|
|
2728
2728
|
children: [
|
|
2729
2729
|
/* @__PURE__ */ Z(dt, {
|
|
2730
|
-
tabs:
|
|
2730
|
+
tabs: Gt,
|
|
2731
2731
|
activeTabId: J,
|
|
2732
2732
|
onTabChange: Ne,
|
|
2733
|
-
className: R("min-w-0 flex-1 overflow-x-auto",
|
|
2733
|
+
className: R("min-w-0 flex-1 overflow-x-auto", br.tabsScroll),
|
|
2734
2734
|
tabClassName: "shrink-0"
|
|
2735
2735
|
}),
|
|
2736
2736
|
/* @__PURE__ */ Z(Ke, {
|
|
@@ -2748,7 +2748,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2748
2748
|
width: "72px"
|
|
2749
2749
|
},
|
|
2750
2750
|
active: !0,
|
|
2751
|
-
color:
|
|
2751
|
+
color: br.skeletonColor
|
|
2752
2752
|
})
|
|
2753
2753
|
})
|
|
2754
2754
|
]
|
|
@@ -2757,13 +2757,13 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2757
2757
|
className: R("min-h-0 flex-1 overflow-y-auto", J !== n.Overview && "px-6"),
|
|
2758
2758
|
children: [
|
|
2759
2759
|
J === n.About && en ? nn : null,
|
|
2760
|
-
J === n.About && !en && /* @__PURE__ */ Z(
|
|
2760
|
+
J === n.About && !en && /* @__PURE__ */ Z(Mr, {
|
|
2761
2761
|
content: e.description,
|
|
2762
2762
|
topics: e.topics,
|
|
2763
2763
|
detailsStyles: Ce,
|
|
2764
2764
|
markdownLabels: Zt
|
|
2765
2765
|
}),
|
|
2766
|
-
J === n.Content && /* @__PURE__ */ Z(
|
|
2766
|
+
J === n.Content && /* @__PURE__ */ Z(Rr, {
|
|
2767
2767
|
content: Ve?.content ?? "",
|
|
2768
2768
|
filePreview: ot(),
|
|
2769
2769
|
filePreviewContent: lt,
|
|
@@ -2785,7 +2785,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2785
2785
|
markdownLabels: Zt
|
|
2786
2786
|
}),
|
|
2787
2787
|
J === n.Overview && tn ? nn : null,
|
|
2788
|
-
J === n.Overview && !tn && /* @__PURE__ */ Z(
|
|
2788
|
+
J === n.Overview && !tn && /* @__PURE__ */ Z(Qr, {
|
|
2789
2789
|
sections: e.details?.overview?.sections,
|
|
2790
2790
|
sectionClassName: Ee,
|
|
2791
2791
|
labelClassName: De,
|
|
@@ -2794,17 +2794,17 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2794
2794
|
yesLabel: rn,
|
|
2795
2795
|
noLabel: an
|
|
2796
2796
|
}),
|
|
2797
|
-
J === n.Pricing && /* @__PURE__ */ Z(
|
|
2797
|
+
J === n.Pricing && /* @__PURE__ */ Z($r, {
|
|
2798
2798
|
pricing: e.details?.pricing,
|
|
2799
2799
|
pricesSectionLabel: W?.pricingPricesSectionLabel,
|
|
2800
2800
|
characterPricesSectionLabel: W?.pricingCharacterPricesSectionLabel,
|
|
2801
2801
|
limitsSectionLabel: W?.pricingLimitsSectionLabel
|
|
2802
2802
|
}),
|
|
2803
|
-
J === n.Limits && /* @__PURE__ */ Z(
|
|
2803
|
+
J === n.Limits && /* @__PURE__ */ Z(Zr, {
|
|
2804
2804
|
limits: e.details?.limits,
|
|
2805
2805
|
footerNote: we
|
|
2806
2806
|
}),
|
|
2807
|
-
J === n.Api && k(e.details?.api) && /* @__PURE__ */ Z(
|
|
2807
|
+
J === n.Api && k(e.details?.api) && /* @__PURE__ */ Z(rr, {
|
|
2808
2808
|
api: e.details?.api,
|
|
2809
2809
|
resourceSectionLabel: W?.apiResourceSectionLabel,
|
|
2810
2810
|
snippetSectionLabel: W?.apiSnippetSectionLabel,
|
|
@@ -2816,7 +2816,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2816
2816
|
copyAriaLabel: W?.copyCodeAriaLabel,
|
|
2817
2817
|
copiedStatusLabel: W?.copiedCodeStatusLabel
|
|
2818
2818
|
}),
|
|
2819
|
-
J === n.Tools && /* @__PURE__ */ Z(
|
|
2819
|
+
J === n.Tools && /* @__PURE__ */ Z(oi, {
|
|
2820
2820
|
tools: e.details?.tools,
|
|
2821
2821
|
labels: Qt
|
|
2822
2822
|
})
|
|
@@ -2836,10 +2836,10 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2836
2836
|
onConfirm: Bt,
|
|
2837
2837
|
onCancel: zt
|
|
2838
2838
|
}),
|
|
2839
|
-
!mn && Pe && /* @__PURE__ */ Z(
|
|
2839
|
+
!mn && Pe && /* @__PURE__ */ Z(Kt, {
|
|
2840
2840
|
version: e.version,
|
|
2841
2841
|
hasExistingPublicationInFolder: Y.hasExistingPublicationInFolder,
|
|
2842
|
-
allowReplace:
|
|
2842
|
+
allowReplace: ci,
|
|
2843
2843
|
isSubmitDisabled: mt.isSubmitDisabled,
|
|
2844
2844
|
isSubmitLoading: mt.isSubmitLoading,
|
|
2845
2845
|
onCancel: Ht,
|
|
@@ -2848,18 +2848,18 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2848
2848
|
})
|
|
2849
2849
|
]
|
|
2850
2850
|
});
|
|
2851
|
-
},
|
|
2851
|
+
}, bi = (e) => window.getComputedStyle(e).direction === "rtl", xi = (e, t) => {
|
|
2852
2852
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.getComputedStyle(e);
|
|
2853
|
-
return
|
|
2854
|
-
},
|
|
2853
|
+
return bi(e) ? r.right - (n.right - parseFloat(i.paddingRight || "0")) : r.left - (n.left + parseFloat(i.paddingLeft || "0"));
|
|
2854
|
+
}, Si = (e, t) => {
|
|
2855
2855
|
if (t.length === 0) return 0;
|
|
2856
2856
|
if (Math.abs(e.scrollLeft) + e.clientWidth >= e.scrollWidth - 1 && Math.abs(e.scrollLeft) > 0) return t.length - 1;
|
|
2857
2857
|
let n = 0, r = Infinity;
|
|
2858
2858
|
return t.forEach((t, i) => {
|
|
2859
|
-
let a = Math.abs(
|
|
2859
|
+
let a = Math.abs(xi(e, t));
|
|
2860
2860
|
a < r && (r = a, n = i);
|
|
2861
2861
|
}), n;
|
|
2862
|
-
},
|
|
2862
|
+
}, Ci = {
|
|
2863
2863
|
pageNav: "_pageNav_iy8tl_1",
|
|
2864
2864
|
navBtn: "_navBtn_iy8tl_6",
|
|
2865
2865
|
titleText: "_titleText_iy8tl_23",
|
|
@@ -2876,7 +2876,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2876
2876
|
cardFadeOut: "_cardFadeOut_iy8tl_1",
|
|
2877
2877
|
favoriteCard: "_favoriteCard_iy8tl_101",
|
|
2878
2878
|
cardButton: "_cardButton_iy8tl_101"
|
|
2879
|
-
},
|
|
2879
|
+
}, wi = ({ 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
2880
|
let [h, g] = U(t), [_, v] = U(!1), y = (t) => {
|
|
2881
2881
|
t.stopPropagation();
|
|
2882
2882
|
let r = !h;
|
|
@@ -2886,7 +2886,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2886
2886
|
"data-card-id": e.id,
|
|
2887
2887
|
"aria-label": e.name,
|
|
2888
2888
|
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",
|
|
2889
|
+
className: R("box-border min-w-0 cursor-pointer flex-row items-center gap-3 p-5 text-start", Ci.favoriteCard, _ && Ci.cardLeaving, f && Ci.selectedCard, dn.favoriteCard),
|
|
2890
2890
|
onClick: b,
|
|
2891
2891
|
onAnimationEnd: _ ? (t) => {
|
|
2892
2892
|
t.currentTarget === t.target && n?.(e.id, !1);
|
|
@@ -2894,22 +2894,22 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2894
2894
|
children: [
|
|
2895
2895
|
b != null && /* @__PURE__ */ Z("button", {
|
|
2896
2896
|
type: "button",
|
|
2897
|
-
className: R("sr-only",
|
|
2897
|
+
className: R("sr-only", Ci.cardButton),
|
|
2898
2898
|
children: e.name
|
|
2899
2899
|
}),
|
|
2900
|
-
f && /* @__PURE__ */ Z(
|
|
2900
|
+
f && /* @__PURE__ */ Z(bt, {
|
|
2901
2901
|
size: G.SM,
|
|
2902
|
-
className: R("absolute inset-e-3 top-3 shrink-0",
|
|
2902
|
+
className: R("absolute inset-e-3 top-3 shrink-0", Ci.selectedCheck),
|
|
2903
2903
|
"aria-hidden": !0,
|
|
2904
2904
|
stroke: K
|
|
2905
2905
|
}),
|
|
2906
|
-
/* @__PURE__ */ Z(
|
|
2906
|
+
/* @__PURE__ */ Z(jn, {
|
|
2907
2907
|
icon: e.iconUrl,
|
|
2908
2908
|
type: e.type,
|
|
2909
2909
|
name: e.name,
|
|
2910
2910
|
version: e.version,
|
|
2911
2911
|
lastUsed: e.lastUsed,
|
|
2912
|
-
size:
|
|
2912
|
+
size: rn.LG,
|
|
2913
2913
|
query: l,
|
|
2914
2914
|
className: "min-w-0 flex-1 items-center",
|
|
2915
2915
|
styles: {
|
|
@@ -2920,11 +2920,11 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2920
2920
|
lastUsedClassName: c
|
|
2921
2921
|
}
|
|
2922
2922
|
},
|
|
2923
|
-
iconOverlay: /* @__PURE__ */ Z(
|
|
2923
|
+
iconOverlay: /* @__PURE__ */ Z(Nn, {
|
|
2924
2924
|
credentials: e.credentials,
|
|
2925
2925
|
loggedOutLabel: p
|
|
2926
2926
|
}),
|
|
2927
|
-
lastUsedTrailing: r?.(e) === !1 ? void 0 : /* @__PURE__ */ Z(
|
|
2927
|
+
lastUsedTrailing: r?.(e) === !1 ? void 0 : /* @__PURE__ */ Z(Fn, {
|
|
2928
2928
|
isStarred: h,
|
|
2929
2929
|
size: J.Small,
|
|
2930
2930
|
onClick: y,
|
|
@@ -2933,7 +2933,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2933
2933
|
})
|
|
2934
2934
|
]
|
|
2935
2935
|
});
|
|
2936
|
-
},
|
|
2936
|
+
}, Ti = 2, Ei = (e) => {
|
|
2937
2937
|
let t = e.getBoundingClientRect(), n = window.scrollX, r = window.scrollY, i = window.getComputedStyle(e).transform;
|
|
2938
2938
|
if (!i || i === "none") return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
2939
2939
|
try {
|
|
@@ -2942,7 +2942,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2942
2942
|
} catch {
|
|
2943
2943
|
return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
2944
2944
|
}
|
|
2945
|
-
},
|
|
2945
|
+
}, Di = ({ 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
2946
|
let g = o?.typography?.titleClassName ?? "dial-body-semi-text", _ = o?.typography?.countClassName ?? "dial-tiny-semi-text", v = de({
|
|
2947
2947
|
"--cat-fav-title-text": o?.colors?.titleText,
|
|
2948
2948
|
"--cat-fav-count-text": o?.colors?.countText,
|
|
@@ -2955,7 +2955,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2955
2955
|
"--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
|
|
2956
2956
|
"--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
|
|
2957
2957
|
"--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 =
|
|
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 = un(), C = fe(), w = !h && !C, T = S * Ti, E = (b - 1) * T, D = V(() => w ? y.slice(E, E + T) : y, [
|
|
2959
2959
|
w,
|
|
2960
2960
|
y,
|
|
2961
2961
|
E,
|
|
@@ -2993,7 +2993,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
2993
2993
|
let n = M.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
|
|
2994
2994
|
if (n.forEach((e) => {
|
|
2995
2995
|
let { cardId: t } = e.dataset;
|
|
2996
|
-
t && r.set(t,
|
|
2996
|
+
t && r.set(t, Ei(e));
|
|
2997
2997
|
}), !e && !t) {
|
|
2998
2998
|
let e = j.current, t = L.current, i = 0;
|
|
2999
2999
|
if (e) {
|
|
@@ -3052,7 +3052,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3052
3052
|
le.current = null;
|
|
3053
3053
|
let e = M.current;
|
|
3054
3054
|
if (!e) return;
|
|
3055
|
-
let t =
|
|
3055
|
+
let t = Si(e, se()) + 1;
|
|
3056
3056
|
if (ce.current != null) {
|
|
3057
3057
|
if (t !== ce.current) return;
|
|
3058
3058
|
ce.current = null;
|
|
@@ -3069,7 +3069,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3069
3069
|
if (x(e), !C || !M.current) return;
|
|
3070
3070
|
let t = se()[e - 1];
|
|
3071
3071
|
if (!t) return;
|
|
3072
|
-
let n =
|
|
3072
|
+
let n = xi(M.current, t);
|
|
3073
3073
|
Math.abs(n) < 1 || (ce.current = e, M.current.scrollBy({
|
|
3074
3074
|
left: n,
|
|
3075
3075
|
behavior: "smooth"
|
|
@@ -3079,7 +3079,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3079
3079
|
ref: A,
|
|
3080
3080
|
children: /* @__PURE__ */ Q("section", {
|
|
3081
3081
|
ref: j,
|
|
3082
|
-
className: R("flex shrink-0 flex-col gap-4 pt-2 pb-2",
|
|
3082
|
+
className: R("flex shrink-0 flex-col gap-4 pt-2 pb-2", Ci.section, s && Ci.sectionLeaving),
|
|
3083
3083
|
style: {
|
|
3084
3084
|
...v,
|
|
3085
3085
|
minHeight: F
|
|
@@ -3090,18 +3090,18 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3090
3090
|
children: [/* @__PURE__ */ Z(ae, {
|
|
3091
3091
|
title: n,
|
|
3092
3092
|
postfix: k,
|
|
3093
|
-
titleClassName: R(g,
|
|
3094
|
-
postfixClassName: R(_,
|
|
3093
|
+
titleClassName: R(g, Ci.titleText),
|
|
3094
|
+
postfixClassName: R(_, Ci.countText),
|
|
3095
3095
|
trailing: O > 1 ? /* @__PURE__ */ Q("div", {
|
|
3096
|
-
className: R("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]",
|
|
3096
|
+
className: R("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Ci.pageNav),
|
|
3097
3097
|
children: [
|
|
3098
3098
|
/* @__PURE__ */ Z(ze, {
|
|
3099
3099
|
size: J.Small,
|
|
3100
3100
|
"aria-label": l,
|
|
3101
3101
|
disabled: b === 1,
|
|
3102
3102
|
onClick: () => me(b - 1),
|
|
3103
|
-
className: R("rounded-full",
|
|
3104
|
-
icon: /* @__PURE__ */ Z(
|
|
3103
|
+
className: R("rounded-full", Ci.navBtn),
|
|
3104
|
+
icon: /* @__PURE__ */ Z(St, {
|
|
3105
3105
|
size: 14,
|
|
3106
3106
|
"aria-hidden": !0,
|
|
3107
3107
|
className: "rtl:scale-x-[-1]",
|
|
@@ -3109,7 +3109,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3109
3109
|
})
|
|
3110
3110
|
}),
|
|
3111
3111
|
/* @__PURE__ */ Q("span", {
|
|
3112
|
-
className: R("min-w-[32px] px-1 text-center select-none", _,
|
|
3112
|
+
className: R("min-w-[32px] px-1 text-center select-none", _, Ci.countText),
|
|
3113
3113
|
children: [
|
|
3114
3114
|
b,
|
|
3115
3115
|
" / ",
|
|
@@ -3121,8 +3121,8 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3121
3121
|
"aria-label": u,
|
|
3122
3122
|
disabled: b === O,
|
|
3123
3123
|
onClick: () => me(b + 1),
|
|
3124
|
-
className: R("rounded-full",
|
|
3125
|
-
icon: /* @__PURE__ */ Z(
|
|
3124
|
+
className: R("rounded-full", Ci.navBtn),
|
|
3125
|
+
icon: /* @__PURE__ */ Z(Ct, {
|
|
3126
3126
|
size: 14,
|
|
3127
3127
|
"aria-hidden": !0,
|
|
3128
3128
|
className: "rtl:scale-x-[-1]",
|
|
@@ -3133,7 +3133,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3133
3133
|
}) : void 0
|
|
3134
3134
|
}), /* @__PURE__ */ Z("div", {
|
|
3135
3135
|
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",
|
|
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", Ci.gridPage),
|
|
3137
3137
|
style: {
|
|
3138
3138
|
gridTemplateColumns: C ? void 0 : `repeat(${S}, minmax(0, 1fr))`,
|
|
3139
3139
|
minHeight: N
|
|
@@ -3141,7 +3141,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3141
3141
|
onScroll: C ? ue : void 0,
|
|
3142
3142
|
onScrollEnd: C ? pe : void 0,
|
|
3143
3143
|
onPointerDown: C ? pe : void 0,
|
|
3144
|
-
children: D.map((e) => /* @__PURE__ */ Z(
|
|
3144
|
+
children: D.map((e) => /* @__PURE__ */ Z(wi, {
|
|
3145
3145
|
item: e,
|
|
3146
3146
|
onToggle: r,
|
|
3147
3147
|
isFavoriteVisible: i,
|
|
@@ -3154,7 +3154,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3154
3154
|
})]
|
|
3155
3155
|
})
|
|
3156
3156
|
});
|
|
3157
|
-
},
|
|
3157
|
+
}, Oi = {
|
|
3158
3158
|
favHeader: "_favHeader_11hd6_2",
|
|
3159
3159
|
starFilledIcon: "_starFilledIcon_11hd6_6",
|
|
3160
3160
|
folderIcon: "_folderIcon_11hd6_10",
|
|
@@ -3162,19 +3162,19 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3162
3162
|
starToggleOff: "_starToggleOff_11hd6_18",
|
|
3163
3163
|
name: "_name_11hd6_32",
|
|
3164
3164
|
version: "_version_11hd6_36"
|
|
3165
|
-
},
|
|
3165
|
+
}, ki = ({ data: e, value: t }) => e ? /* @__PURE__ */ Z("div", {
|
|
3166
3166
|
className: "flex h-full items-center",
|
|
3167
3167
|
children: /* @__PURE__ */ Z(re, { type: t ?? e.type })
|
|
3168
|
-
}) : null,
|
|
3168
|
+
}) : null, Ai = " / ", ji = ({ data: e, context: t }) => {
|
|
3169
3169
|
if (!e || e.folder.length === 0) return null;
|
|
3170
|
-
let n = e.folder.join(
|
|
3170
|
+
let n = e.folder.join(Ai), 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
3171
|
return /* @__PURE__ */ Q("div", {
|
|
3172
3172
|
className: "flex h-full w-full min-w-0 items-center gap-1.5",
|
|
3173
3173
|
children: [
|
|
3174
|
-
/* @__PURE__ */ Z(
|
|
3174
|
+
/* @__PURE__ */ Z(Ot, {
|
|
3175
3175
|
size: G.SM,
|
|
3176
3176
|
stroke: K,
|
|
3177
|
-
className: R("shrink-0",
|
|
3177
|
+
className: R("shrink-0", Oi.folderIcon),
|
|
3178
3178
|
"aria-hidden": !0
|
|
3179
3179
|
}),
|
|
3180
3180
|
/* @__PURE__ */ Z(Y, {
|
|
@@ -3196,7 +3196,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3196
3196
|
})
|
|
3197
3197
|
]
|
|
3198
3198
|
});
|
|
3199
|
-
},
|
|
3199
|
+
}, Mi = ({ data: e, context: t }) => {
|
|
3200
3200
|
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
3201
|
return e ? /* @__PURE__ */ Q("div", {
|
|
3202
3202
|
className: "flex h-full w-full min-w-0 items-center gap-2.5",
|
|
@@ -3207,7 +3207,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3207
3207
|
size: 36,
|
|
3208
3208
|
initialsName: e.name,
|
|
3209
3209
|
styles: { badgeClassName: "rounded-[10px]" }
|
|
3210
|
-
}), /* @__PURE__ */ Z(
|
|
3210
|
+
}), /* @__PURE__ */ Z(Nn, {
|
|
3211
3211
|
credentials: e.credentials,
|
|
3212
3212
|
loggedOutLabel: t?.credentialsBadgeLoggedOutLabel
|
|
3213
3213
|
})]
|
|
@@ -3215,8 +3215,8 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3215
3215
|
className: "flex min-w-0 flex-1 items-baseline gap-1.5",
|
|
3216
3216
|
children: [
|
|
3217
3217
|
/* @__PURE__ */ Z("h3", {
|
|
3218
|
-
className: R("min-w-0 shrink", i,
|
|
3219
|
-
children: /* @__PURE__ */ Z(
|
|
3218
|
+
className: R("min-w-0 shrink", i, Oi.name),
|
|
3219
|
+
children: /* @__PURE__ */ Z(kn, {
|
|
3220
3220
|
name: e.name,
|
|
3221
3221
|
query: n,
|
|
3222
3222
|
className: "whitespace-normal"
|
|
@@ -3224,46 +3224,46 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3224
3224
|
}),
|
|
3225
3225
|
e.version && /* @__PURE__ */ Z(Ne, {
|
|
3226
3226
|
text: e.version,
|
|
3227
|
-
className: R("max-w-[30%] shrink-0", a,
|
|
3227
|
+
className: R("max-w-[30%] shrink-0", a, Oi.version)
|
|
3228
3228
|
}),
|
|
3229
|
-
o && /* @__PURE__ */ Z(
|
|
3229
|
+
o && /* @__PURE__ */ Z(bt, {
|
|
3230
3230
|
size: G.SM,
|
|
3231
|
-
className: R("ms-auto shrink-0",
|
|
3231
|
+
className: R("ms-auto shrink-0", Oi.selectedCheck),
|
|
3232
3232
|
"aria-hidden": !0,
|
|
3233
3233
|
stroke: K
|
|
3234
3234
|
})
|
|
3235
3235
|
]
|
|
3236
3236
|
})]
|
|
3237
3237
|
}) : null;
|
|
3238
|
-
},
|
|
3238
|
+
}, Ni = ({ data: e, context: t }) => {
|
|
3239
3239
|
let [n, r] = U(e?.isStarred ?? !1);
|
|
3240
3240
|
return B(() => {
|
|
3241
3241
|
r(e?.isStarred ?? !1);
|
|
3242
3242
|
}, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ Z("div", {
|
|
3243
3243
|
className: "flex size-full items-center justify-end",
|
|
3244
|
-
children: /* @__PURE__ */ Z(
|
|
3244
|
+
children: /* @__PURE__ */ Z(Fn, {
|
|
3245
3245
|
isStarred: n,
|
|
3246
3246
|
onClick: (i) => {
|
|
3247
3247
|
i.stopPropagation();
|
|
3248
3248
|
let a = !n;
|
|
3249
3249
|
r(a), t?.onToggleFavorite?.(e.id, a);
|
|
3250
3250
|
},
|
|
3251
|
-
className: n ? void 0 :
|
|
3251
|
+
className: n ? void 0 : Oi.starToggleOff
|
|
3252
3252
|
})
|
|
3253
3253
|
});
|
|
3254
|
-
},
|
|
3254
|
+
}, Pi = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ Z("div", {
|
|
3255
3255
|
className: "flex h-full w-full min-w-0 items-center",
|
|
3256
|
-
children: /* @__PURE__ */ Z(
|
|
3257
|
-
}),
|
|
3256
|
+
children: /* @__PURE__ */ Z(Bn, { topics: e.topics })
|
|
3257
|
+
}), Fi = {
|
|
3258
3258
|
folder: (e) => e !== P.Model,
|
|
3259
3259
|
tags: () => !0,
|
|
3260
3260
|
favorite: () => !0
|
|
3261
|
-
},
|
|
3261
|
+
}, Ii = (e, t) => Object.fromEntries([
|
|
3262
3262
|
"folder",
|
|
3263
3263
|
"tags",
|
|
3264
3264
|
"favorite"
|
|
3265
|
-
].map((n) => [n, (t?.[n] ??
|
|
3266
|
-
let r =
|
|
3265
|
+
].map((n) => [n, (t?.[n] ?? Fi[n])(e)])), Li = (e, t = !1, n) => {
|
|
3266
|
+
let r = Ii(e, n);
|
|
3267
3267
|
return [
|
|
3268
3268
|
{
|
|
3269
3269
|
headerName: "Name",
|
|
@@ -3271,7 +3271,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3271
3271
|
minWidth: 220,
|
|
3272
3272
|
field: "name",
|
|
3273
3273
|
filter: !1,
|
|
3274
|
-
cellRenderer:
|
|
3274
|
+
cellRenderer: Mi,
|
|
3275
3275
|
valueGetter: (e) => e.data?.name
|
|
3276
3276
|
},
|
|
3277
3277
|
{
|
|
@@ -3281,7 +3281,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3281
3281
|
field: "type",
|
|
3282
3282
|
filter: !1,
|
|
3283
3283
|
sortable: !1,
|
|
3284
|
-
cellRenderer:
|
|
3284
|
+
cellRenderer: ki,
|
|
3285
3285
|
valueGetter: (t) => t.data && T(t.data, e)
|
|
3286
3286
|
},
|
|
3287
3287
|
{
|
|
@@ -3291,7 +3291,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3291
3291
|
minWidth: 170,
|
|
3292
3292
|
filter: !1,
|
|
3293
3293
|
hide: !r.folder,
|
|
3294
|
-
cellRenderer:
|
|
3294
|
+
cellRenderer: ji,
|
|
3295
3295
|
valueGetter: (e) => e.data?.folder
|
|
3296
3296
|
},
|
|
3297
3297
|
{
|
|
@@ -3302,7 +3302,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3302
3302
|
filter: !1,
|
|
3303
3303
|
sortable: !1,
|
|
3304
3304
|
hide: !r.tags,
|
|
3305
|
-
cellRenderer:
|
|
3305
|
+
cellRenderer: Pi,
|
|
3306
3306
|
valueGetter: (e) => e.data?.topics
|
|
3307
3307
|
},
|
|
3308
3308
|
{
|
|
@@ -3314,20 +3314,20 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3314
3314
|
sortable: !1,
|
|
3315
3315
|
resizable: !1,
|
|
3316
3316
|
hide: t || !r.favorite,
|
|
3317
|
-
headerClass:
|
|
3318
|
-
cellRenderer:
|
|
3317
|
+
headerClass: Oi.favHeader,
|
|
3318
|
+
cellRenderer: Ni
|
|
3319
3319
|
}
|
|
3320
3320
|
];
|
|
3321
|
-
},
|
|
3321
|
+
}, Ri = 60, zi = "isStarred", Bi = {
|
|
3322
3322
|
filter: !1,
|
|
3323
3323
|
floatingFilter: !1,
|
|
3324
3324
|
suppressSizeToFit: !0
|
|
3325
|
-
},
|
|
3325
|
+
}, Vi = {
|
|
3326
3326
|
mode: "singleRow",
|
|
3327
3327
|
checkboxes: !1,
|
|
3328
3328
|
enableClickSelection: !1
|
|
3329
|
-
},
|
|
3330
|
-
let S = _ ===
|
|
3329
|
+
}, Hi = {}, Ui = /* @__PURE__ */ new Set(), Wi = "Select all", Gi = "rowClicked", Ki = (e) => e.id, qi = (e) => `Select ${e.name}`, Ji = (e) => e.colDef.field === zi, Yi = ({ 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: _ = on.Single, selectedItemIds: v = Ui, onSelectionChange: y, selectRowAriaLabel: b = qi, selectAllAriaLabel: x = Wi }) => {
|
|
3330
|
+
let S = _ === on.Multiple, C = S ? void 0 : p, w = l?.typography ?? Hi, T = l?.colors, E = {
|
|
3331
3331
|
"--cat-card-star-filled": T?.starFilled,
|
|
3332
3332
|
"--cat-list-folder-icon": T?.folderIcon,
|
|
3333
3333
|
"--cat-list-selected-check": T?.selectedRowCheckIcon,
|
|
@@ -3347,19 +3347,19 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3347
3347
|
let e = D.current;
|
|
3348
3348
|
e == null || e.isDestroyed() || e.getDisplayedRowCount() === 0 || e.ensureIndexVisible(0, "top");
|
|
3349
3349
|
} }), []);
|
|
3350
|
-
let N = V(() =>
|
|
3350
|
+
let N = V(() => Li(r, h, g), [
|
|
3351
3351
|
r,
|
|
3352
3352
|
h,
|
|
3353
3353
|
g
|
|
3354
|
-
]), P = V(() => n.map(
|
|
3354
|
+
]), P = V(() => n.map(Ki), [n]), F = z((e) => y?.(A(v, e, P)), [
|
|
3355
3355
|
y,
|
|
3356
3356
|
v,
|
|
3357
3357
|
P
|
|
3358
3358
|
]), ee = V(() => new Set(C == null ? [] : [C]), [C]), I = V(() => ({
|
|
3359
|
-
rowHeight:
|
|
3359
|
+
rowHeight: Ri,
|
|
3360
3360
|
suppressCellFocus: !1,
|
|
3361
|
-
defaultColDef:
|
|
3362
|
-
rowSelection: S ? void 0 :
|
|
3361
|
+
defaultColDef: Bi,
|
|
3362
|
+
rowSelection: S ? void 0 : Vi,
|
|
3363
3363
|
context: {
|
|
3364
3364
|
searchQuery: i,
|
|
3365
3365
|
typography: w,
|
|
@@ -3370,11 +3370,11 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3370
3370
|
isReadonly: h
|
|
3371
3371
|
},
|
|
3372
3372
|
onCellClicked: f || S ? (e) => {
|
|
3373
|
-
!
|
|
3373
|
+
!Ji(e) && e.data && e.colDef.colId !== Xt && (S && e.node.setSelected(!e.node.isSelected(), !1, Gi), f?.(e.data));
|
|
3374
3374
|
} : void 0,
|
|
3375
3375
|
onCellKeyDown: f && !S ? (e) => {
|
|
3376
3376
|
let t = e.event?.key;
|
|
3377
|
-
(t === "Enter" || t === " ") && !
|
|
3377
|
+
(t === "Enter" || t === " ") && !Ji(e) && e.data && (e.event?.preventDefault(), f(e.data));
|
|
3378
3378
|
} : void 0,
|
|
3379
3379
|
rowClass: f || S ? "cursor-pointer" : void 0
|
|
3380
3380
|
}), [
|
|
@@ -3392,12 +3392,12 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3392
3392
|
D.current?.refreshCells({ force: !0 });
|
|
3393
3393
|
}, [i, C]), /* @__PURE__ */ Z("div", {
|
|
3394
3394
|
style: E,
|
|
3395
|
-
className: pt("size-full",
|
|
3396
|
-
children: /* @__PURE__ */ Z(
|
|
3397
|
-
appearance:
|
|
3395
|
+
className: pt("size-full", dn.listView),
|
|
3396
|
+
children: /* @__PURE__ */ Z(Zt, {
|
|
3397
|
+
appearance: Qt.Chat,
|
|
3398
3398
|
columnDefs: N,
|
|
3399
3399
|
rowData: n,
|
|
3400
|
-
getRowId:
|
|
3400
|
+
getRowId: Ki,
|
|
3401
3401
|
withoutHeaderBorders: !0,
|
|
3402
3402
|
wrapCustomCellRenderers: !1,
|
|
3403
3403
|
onGridApiChange: M,
|
|
@@ -3407,7 +3407,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3407
3407
|
additionalGridOptions: I,
|
|
3408
3408
|
ariaLabel: a,
|
|
3409
3409
|
...S ? {
|
|
3410
|
-
selectionMode:
|
|
3410
|
+
selectionMode: $t.MULTIPLE,
|
|
3411
3411
|
selectedRowIds: v,
|
|
3412
3412
|
onSelectionChange: F,
|
|
3413
3413
|
selectRowLabel: b,
|
|
@@ -3415,11 +3415,11 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3415
3415
|
} : { selectedRowIds: ee }
|
|
3416
3416
|
})
|
|
3417
3417
|
});
|
|
3418
|
-
},
|
|
3418
|
+
}, Xi = "w-[320px]", Zi = {
|
|
3419
3419
|
divider: "_divider_k154m_1",
|
|
3420
3420
|
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 ?
|
|
3421
|
+
}, Qi = ({ 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" }) => {
|
|
3422
|
+
let [f, p] = U(null), m = f ? r.find((e) => e.key === f) : void 0, h = m?.children ?? r, g = i ? gn(h, i.value) : h, _ = de({
|
|
3423
3423
|
"--cat-create-menu-divider": u?.divider,
|
|
3424
3424
|
"--cat-create-menu-section-header-text": u?.sectionHeaderText
|
|
3425
3425
|
}), v = () => {
|
|
@@ -3455,10 +3455,10 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3455
3455
|
style: _,
|
|
3456
3456
|
children: g.map((e) => e.type === je.Divider ? /* @__PURE__ */ Z("div", {
|
|
3457
3457
|
role: "separator",
|
|
3458
|
-
className: R("my-1",
|
|
3458
|
+
className: R("my-1", Zi.divider, e.className)
|
|
3459
3459
|
}, e.key) : e.type === je.PlainText ? /* @__PURE__ */ Z("div", {
|
|
3460
3460
|
role: "presentation",
|
|
3461
|
-
className: R("px-3 py-2",
|
|
3461
|
+
className: R("px-3 py-2", Zi.sectionHeader, d, e.className),
|
|
3462
3462
|
children: e.label
|
|
3463
3463
|
}, e.key) : /* @__PURE__ */ Z(Ye, {
|
|
3464
3464
|
role: "menuitem",
|
|
@@ -3467,7 +3467,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3467
3467
|
disabled: e.disabled,
|
|
3468
3468
|
danger: e.danger,
|
|
3469
3469
|
"aria-haspopup": e.children?.length ? "menu" : void 0,
|
|
3470
|
-
trailing: e.children?.length ? /* @__PURE__ */ Z(
|
|
3470
|
+
trailing: e.children?.length ? /* @__PURE__ */ Z(Ct, {
|
|
3471
3471
|
size: G.SM,
|
|
3472
3472
|
stroke: K,
|
|
3473
3473
|
className: "rtl:scale-x-[-1]",
|
|
@@ -3483,14 +3483,14 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3483
3483
|
})
|
|
3484
3484
|
]
|
|
3485
3485
|
});
|
|
3486
|
-
},
|
|
3487
|
-
let [p, m] = U(!1), h = pe(), g = /* @__PURE__ */ Z(
|
|
3486
|
+
}, $i = ({ 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
|
+
let [p, m] = U(!1), h = pe(), g = /* @__PURE__ */ Z(xt, {
|
|
3488
3488
|
size: G.SM,
|
|
3489
3489
|
stroke: K,
|
|
3490
3490
|
"aria-hidden": !0,
|
|
3491
3491
|
className: R("transition-transform", p && "rotate-180")
|
|
3492
3492
|
}), _ = {
|
|
3493
|
-
iconBefore: /* @__PURE__ */ Z(
|
|
3493
|
+
iconBefore: /* @__PURE__ */ Z(It, {
|
|
3494
3494
|
size: G.LG,
|
|
3495
3495
|
stroke: K,
|
|
3496
3496
|
"aria-hidden": !0
|
|
@@ -3512,7 +3512,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3512
3512
|
"aria-haspopup": "dialog",
|
|
3513
3513
|
"aria-expanded": p,
|
|
3514
3514
|
onClick: () => m(!0)
|
|
3515
|
-
}), /* @__PURE__ */ Z(
|
|
3515
|
+
}), /* @__PURE__ */ Z(Qi, {
|
|
3516
3516
|
open: p,
|
|
3517
3517
|
onClose: n,
|
|
3518
3518
|
title: e,
|
|
@@ -3553,11 +3553,11 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3553
3553
|
maxVisibleItems: 7,
|
|
3554
3554
|
placement: "bottom-end",
|
|
3555
3555
|
matchReferenceWidth: !1,
|
|
3556
|
-
listClassName:
|
|
3556
|
+
listClassName: Xi
|
|
3557
3557
|
}
|
|
3558
3558
|
});
|
|
3559
3559
|
if (!t?.length) {
|
|
3560
|
-
let t = /* @__PURE__ */ Z(
|
|
3560
|
+
let t = /* @__PURE__ */ Z(It, {
|
|
3561
3561
|
size: G.SM,
|
|
3562
3562
|
stroke: K
|
|
3563
3563
|
});
|
|
@@ -3581,17 +3581,17 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3581
3581
|
open: p,
|
|
3582
3582
|
onOpenChange: m
|
|
3583
3583
|
});
|
|
3584
|
-
},
|
|
3584
|
+
}, ea = ({ title: e, description: t, createButton: n, titleClassName: r, descriptionClassName: i }) => /* @__PURE__ */ Z($e, {
|
|
3585
3585
|
title: e,
|
|
3586
3586
|
description: t,
|
|
3587
3587
|
titleClassName: r,
|
|
3588
3588
|
descriptionClassName: i,
|
|
3589
|
-
action: n == null ? void 0 : /* @__PURE__ */ Z(
|
|
3589
|
+
action: n == null ? void 0 : /* @__PURE__ */ Z($i, {
|
|
3590
3590
|
variant: Te.Secondary,
|
|
3591
3591
|
...n
|
|
3592
3592
|
})
|
|
3593
|
-
}),
|
|
3594
|
-
icon: /* @__PURE__ */ Z(
|
|
3593
|
+
}), ta = ({ label: e, onClick: t, className: n }) => /* @__PURE__ */ Z(Fe, {
|
|
3594
|
+
icon: /* @__PURE__ */ Z(_t, {
|
|
3595
3595
|
size: G.LG,
|
|
3596
3596
|
stroke: K,
|
|
3597
3597
|
"aria-hidden": !0
|
|
@@ -3600,7 +3600,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3600
3600
|
tooltipProps: { tooltip: e },
|
|
3601
3601
|
onClick: t,
|
|
3602
3602
|
className: n
|
|
3603
|
-
}),
|
|
3603
|
+
}), na = {
|
|
3604
3604
|
title: "Browse settings",
|
|
3605
3605
|
view: "View",
|
|
3606
3606
|
sorting: "Sorting",
|
|
@@ -3614,7 +3614,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3614
3614
|
back: "Back",
|
|
3615
3615
|
close: "Close",
|
|
3616
3616
|
formatFilterCount: (e, t) => `${e} of ${t}`
|
|
3617
|
-
},
|
|
3617
|
+
}, ra = {
|
|
3618
3618
|
filterBtn: "_filterBtn_1brte_7",
|
|
3619
3619
|
filterBtnActive: "_filterBtnActive_1brte_24",
|
|
3620
3620
|
filterBtnOpen: "_filterBtnOpen_1brte_28",
|
|
@@ -3626,10 +3626,10 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3626
3626
|
divider: "_divider_1brte_63",
|
|
3627
3627
|
sectionLabel: "_sectionLabel_1brte_67",
|
|
3628
3628
|
footer: "_footer_1brte_71"
|
|
3629
|
-
},
|
|
3629
|
+
}, ia = (e, n, r, i, a) => {
|
|
3630
3630
|
let o = e.size > 0;
|
|
3631
3631
|
return r && o ? `${i} · ${e.size}` : r ? i : o ? t(e, n, a) : a;
|
|
3632
|
-
},
|
|
3632
|
+
}, aa = ({ 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
3633
|
let p = (r ?? !1) || e.size > 0, [m, h] = U(!1), g = de({
|
|
3634
3634
|
"--cat-filter-btn-bg": f?.buttonBackground,
|
|
3635
3635
|
"--cat-filter-btn-border": f?.buttonBorder,
|
|
@@ -3647,7 +3647,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3647
3647
|
"--cat-filter-section-label": f?.sectionLabel,
|
|
3648
3648
|
"--cat-filter-divider": f?.divider,
|
|
3649
3649
|
"--cat-filter-footer-border": f?.footerBorder
|
|
3650
|
-
}), _ = V(() => n == null ? [] : [...n].sort(), [n]), v =
|
|
3650
|
+
}), _ = V(() => n == null ? [] : [...n].sort(), [n]), v = ia(e, n, r, a, s), [y, b] = U(() => new Set(e)), [x, S] = U(r ?? !1);
|
|
3651
3651
|
B(() => {
|
|
3652
3652
|
m && (b(new Set(e)), S(r ?? !1));
|
|
3653
3653
|
}, [
|
|
@@ -3694,7 +3694,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3694
3694
|
...g,
|
|
3695
3695
|
maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)"
|
|
3696
3696
|
},
|
|
3697
|
-
className: R("flex min-w-[360px] flex-col rounded-xl p-[6px]",
|
|
3697
|
+
className: R("flex min-w-[360px] flex-col rounded-xl p-[6px]", ra.overlay),
|
|
3698
3698
|
onKeyDown: M,
|
|
3699
3699
|
children: [/* @__PURE__ */ Q("div", {
|
|
3700
3700
|
role: "menu",
|
|
@@ -3706,7 +3706,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3706
3706
|
mark: Xe.Checkbox,
|
|
3707
3707
|
selected: x,
|
|
3708
3708
|
label: a,
|
|
3709
|
-
labelClassName: R(
|
|
3709
|
+
labelClassName: R(ra.rowLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
3710
3710
|
className: "shrink-0",
|
|
3711
3711
|
tabIndex: w === 0 ? 0 : -1,
|
|
3712
3712
|
ref: (e) => {
|
|
@@ -3716,11 +3716,11 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3716
3716
|
}), _.length > 0 && /* @__PURE__ */ Q(X, { children: [
|
|
3717
3717
|
/* @__PURE__ */ Z("div", {
|
|
3718
3718
|
role: "separator",
|
|
3719
|
-
className: R("my-1 h-px",
|
|
3719
|
+
className: R("my-1 h-px", ra.divider),
|
|
3720
3720
|
"aria-hidden": !0
|
|
3721
3721
|
}),
|
|
3722
3722
|
/* @__PURE__ */ Z("div", {
|
|
3723
|
-
className: R("px-[10px] pt-[10px] pb-1", d?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text",
|
|
3723
|
+
className: R("px-[10px] pt-[10px] pb-1", d?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", ra.sectionLabel),
|
|
3724
3724
|
"aria-hidden": !0,
|
|
3725
3725
|
children: o
|
|
3726
3726
|
}),
|
|
@@ -3734,7 +3734,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3734
3734
|
mark: Xe.Checkbox,
|
|
3735
3735
|
selected: n,
|
|
3736
3736
|
label: e,
|
|
3737
|
-
labelClassName:
|
|
3737
|
+
labelClassName: ra.rowLabel,
|
|
3738
3738
|
className: "shrink-0",
|
|
3739
3739
|
tabIndex: w === r ? 0 : -1,
|
|
3740
3740
|
ref: (e) => {
|
|
@@ -3746,7 +3746,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3746
3746
|
})
|
|
3747
3747
|
] })]
|
|
3748
3748
|
}), /* @__PURE__ */ Q("div", {
|
|
3749
|
-
className: R("mt-1 flex shrink-0 items-center px-1 py-3",
|
|
3749
|
+
className: R("mt-1 flex shrink-0 items-center px-1 py-3", ra.footer),
|
|
3750
3750
|
ref: O,
|
|
3751
3751
|
children: [/* @__PURE__ */ Z(Re, {
|
|
3752
3752
|
label: c,
|
|
@@ -3763,63 +3763,63 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3763
3763
|
"aria-expanded": m,
|
|
3764
3764
|
onKeyDown: j,
|
|
3765
3765
|
style: g,
|
|
3766
|
-
iconBefore: /* @__PURE__ */ Z(
|
|
3766
|
+
iconBefore: /* @__PURE__ */ Z(Dt, {
|
|
3767
3767
|
size: G.SM,
|
|
3768
3768
|
stroke: K,
|
|
3769
|
-
className: R("shrink-0",
|
|
3769
|
+
className: R("shrink-0", ra.filterBtnFunnel),
|
|
3770
3770
|
"aria-hidden": !0
|
|
3771
3771
|
}),
|
|
3772
3772
|
label: v,
|
|
3773
|
-
textClassName: R(
|
|
3774
|
-
iconAfter: /* @__PURE__ */ Z(
|
|
3773
|
+
textClassName: R(ra.filterBtnLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
3774
|
+
iconAfter: /* @__PURE__ */ Z(xt, {
|
|
3775
3775
|
size: 14,
|
|
3776
3776
|
stroke: K,
|
|
3777
|
-
className: R("shrink-0 transition-transform duration-150",
|
|
3777
|
+
className: R("shrink-0 transition-transform duration-150", ra.filterBtnChevron, m && "rotate-180"),
|
|
3778
3778
|
"aria-hidden": !0
|
|
3779
3779
|
}),
|
|
3780
|
-
className: R("h-12 shrink-0 gap-[7px] rounded-lg! px-[18px] whitespace-nowrap",
|
|
3780
|
+
className: R("h-12 shrink-0 gap-[7px] rounded-lg! px-[18px] whitespace-nowrap", ra.filterBtn, p && ra.filterBtnActive, m && ra.filterBtnOpen)
|
|
3781
3781
|
})
|
|
3782
3782
|
});
|
|
3783
|
-
},
|
|
3783
|
+
}, oa = /* @__PURE__ */ function(e) {
|
|
3784
3784
|
return e.Root = "root", e.View = "view", e.Sorting = "sorting", e.Filtering = "filtering", e;
|
|
3785
|
-
}({}),
|
|
3785
|
+
}({}), sa = /* @__PURE__ */ Z(Ct, {
|
|
3786
3786
|
size: G.SM,
|
|
3787
3787
|
stroke: K,
|
|
3788
3788
|
className: "rtl:scale-x-[-1]",
|
|
3789
3789
|
"aria-hidden": !0
|
|
3790
|
-
}),
|
|
3791
|
-
let [h, g] = U(
|
|
3792
|
-
g(
|
|
3790
|
+
}), ca = ({ 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 }) => {
|
|
3791
|
+
let [h, g] = U(oa.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 = () => {
|
|
3792
|
+
g(oa.Root), t();
|
|
3793
3793
|
}, T = () => {
|
|
3794
|
-
v(new Set(s)), b(d ?? !1), g(
|
|
3794
|
+
v(new Set(s)), b(d ?? !1), g(oa.Filtering);
|
|
3795
3795
|
}, E = () => {
|
|
3796
3796
|
c(_), f?.(y), w();
|
|
3797
3797
|
}, D = () => {
|
|
3798
3798
|
c(/* @__PURE__ */ new Set()), f?.(!1), w();
|
|
3799
3799
|
}, O = [{
|
|
3800
|
-
value:
|
|
3800
|
+
value: an.Grid,
|
|
3801
3801
|
label: p.gridView,
|
|
3802
|
-
Icon:
|
|
3802
|
+
Icon: At
|
|
3803
3803
|
}, {
|
|
3804
|
-
value:
|
|
3804
|
+
value: an.Cards,
|
|
3805
3805
|
label: p.listView,
|
|
3806
|
-
Icon:
|
|
3806
|
+
Icon: jt
|
|
3807
3807
|
}], k = {
|
|
3808
|
-
[
|
|
3809
|
-
[
|
|
3810
|
-
[
|
|
3811
|
-
[
|
|
3812
|
-
}, A = h ===
|
|
3808
|
+
[oa.Root]: p.title,
|
|
3809
|
+
[oa.View]: p.view,
|
|
3810
|
+
[oa.Sorting]: p.sorting,
|
|
3811
|
+
[oa.Filtering]: p.filtering
|
|
3812
|
+
}, A = h === oa.Filtering;
|
|
3813
3813
|
return /* @__PURE__ */ Q(xe, {
|
|
3814
3814
|
open: e,
|
|
3815
3815
|
title: k[h],
|
|
3816
|
-
onBack: h ===
|
|
3816
|
+
onBack: h === oa.Root ? void 0 : () => g(oa.Root),
|
|
3817
3817
|
backAriaLabel: p.back,
|
|
3818
3818
|
closeAriaLabel: p.close,
|
|
3819
3819
|
onClose: w,
|
|
3820
3820
|
bodyClassName: R(A && "flex flex-col"),
|
|
3821
3821
|
children: [
|
|
3822
|
-
h ===
|
|
3822
|
+
h === oa.Root && /* @__PURE__ */ Q("div", {
|
|
3823
3823
|
role: "menu",
|
|
3824
3824
|
"aria-label": p.title,
|
|
3825
3825
|
className: "p-2",
|
|
@@ -3828,27 +3828,27 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3828
3828
|
role: "menuitem",
|
|
3829
3829
|
"aria-haspopup": "menu",
|
|
3830
3830
|
label: p.view,
|
|
3831
|
-
trailing:
|
|
3832
|
-
onClick: () => g(
|
|
3831
|
+
trailing: sa,
|
|
3832
|
+
onClick: () => g(oa.View)
|
|
3833
3833
|
}),
|
|
3834
3834
|
S && /* @__PURE__ */ Z(Ye, {
|
|
3835
3835
|
role: "menuitem",
|
|
3836
3836
|
"aria-haspopup": "menu",
|
|
3837
3837
|
label: p.sorting,
|
|
3838
|
-
trailing:
|
|
3839
|
-
onClick: () => g(
|
|
3838
|
+
trailing: sa,
|
|
3839
|
+
onClick: () => g(oa.Sorting)
|
|
3840
3840
|
}),
|
|
3841
3841
|
/* @__PURE__ */ Z(Ye, {
|
|
3842
3842
|
role: "menuitem",
|
|
3843
3843
|
"aria-haspopup": "menu",
|
|
3844
3844
|
label: p.filtering,
|
|
3845
3845
|
description: C > 0 ? p.formatFilterCount(C, x.length + 1) : void 0,
|
|
3846
|
-
trailing:
|
|
3846
|
+
trailing: sa,
|
|
3847
3847
|
onClick: T
|
|
3848
3848
|
})
|
|
3849
3849
|
]
|
|
3850
3850
|
}),
|
|
3851
|
-
h ===
|
|
3851
|
+
h === oa.View && /* @__PURE__ */ Z("div", {
|
|
3852
3852
|
role: "menu",
|
|
3853
3853
|
"aria-label": p.view,
|
|
3854
3854
|
className: "p-2",
|
|
@@ -3868,7 +3868,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3868
3868
|
}
|
|
3869
3869
|
}, e))
|
|
3870
3870
|
}),
|
|
3871
|
-
h ===
|
|
3871
|
+
h === oa.Sorting && S && /* @__PURE__ */ Z("div", {
|
|
3872
3872
|
role: "menu",
|
|
3873
3873
|
"aria-label": p.sorting,
|
|
3874
3874
|
className: "p-2",
|
|
@@ -3893,17 +3893,17 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3893
3893
|
mark: Xe.Checkbox,
|
|
3894
3894
|
selected: y,
|
|
3895
3895
|
label: p.myApps,
|
|
3896
|
-
labelClassName:
|
|
3896
|
+
labelClassName: ra.rowLabel,
|
|
3897
3897
|
className: "shrink-0",
|
|
3898
3898
|
onClick: () => b(!y)
|
|
3899
3899
|
}), x.length > 0 && /* @__PURE__ */ Q(X, { children: [
|
|
3900
3900
|
/* @__PURE__ */ Z("div", {
|
|
3901
3901
|
role: "separator",
|
|
3902
|
-
className: R("my-1 h-px",
|
|
3902
|
+
className: R("my-1 h-px", ra.divider),
|
|
3903
3903
|
"aria-hidden": !0
|
|
3904
3904
|
}),
|
|
3905
3905
|
/* @__PURE__ */ Z("div", {
|
|
3906
|
-
className: R("px-[10px] pt-[10px] pb-1", m?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text",
|
|
3906
|
+
className: R("px-[10px] pt-[10px] pb-1", m?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", ra.sectionLabel),
|
|
3907
3907
|
"aria-hidden": !0,
|
|
3908
3908
|
children: p.topics
|
|
3909
3909
|
}),
|
|
@@ -3915,14 +3915,14 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3915
3915
|
mark: Xe.Checkbox,
|
|
3916
3916
|
selected: t,
|
|
3917
3917
|
label: e,
|
|
3918
|
-
labelClassName:
|
|
3918
|
+
labelClassName: ra.rowLabel,
|
|
3919
3919
|
className: "shrink-0",
|
|
3920
3920
|
onClick: () => v(l(e, _))
|
|
3921
3921
|
}, e);
|
|
3922
3922
|
})
|
|
3923
3923
|
] })]
|
|
3924
3924
|
}), /* @__PURE__ */ Q("div", {
|
|
3925
|
-
className: R("flex shrink-0 items-center gap-3 px-4 py-3",
|
|
3925
|
+
className: R("flex shrink-0 items-center gap-3 px-4 py-3", ra.footer),
|
|
3926
3926
|
children: [/* @__PURE__ */ Z(Re, {
|
|
3927
3927
|
label: p.clear,
|
|
3928
3928
|
className: "flex-1",
|
|
@@ -3935,32 +3935,32 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
3935
3935
|
})] })
|
|
3936
3936
|
]
|
|
3937
3937
|
});
|
|
3938
|
-
},
|
|
3938
|
+
}, la = {
|
|
3939
3939
|
section: "_section_mk15x_1",
|
|
3940
3940
|
divider: "_divider_mk15x_5",
|
|
3941
3941
|
settingsDot: "_settingsDot_mk15x_9",
|
|
3942
3942
|
searchField: "_searchField_mk15x_17"
|
|
3943
|
-
},
|
|
3943
|
+
}, ua = /* @__PURE__ */ new Set(), da = ({ 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
3944
|
let E = pe(), D = H(null), O = H(null), k = H(null), A = H(!1), j = H(E), [M, N] = U(!1);
|
|
3945
3945
|
ye(() => {
|
|
3946
3946
|
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
3947
|
}, [E, M]);
|
|
3948
3948
|
let P = (b ?? !1) || (_?.size ?? 0) > 0, F = {
|
|
3949
|
-
...
|
|
3950
|
-
myApps: C ??
|
|
3951
|
-
topics: w ??
|
|
3949
|
+
...na,
|
|
3950
|
+
myApps: C ?? na.myApps,
|
|
3951
|
+
topics: w ?? na.topics,
|
|
3952
3952
|
...T
|
|
3953
3953
|
}, ee = a?.typography?.titleClassName ?? "dial-body-semi-text", I = a?.typography?.countClassName ?? "dial-tiny-semi-text", te = V(() => [{
|
|
3954
|
-
value:
|
|
3955
|
-
icon: /* @__PURE__ */ Z(
|
|
3954
|
+
value: an.Grid,
|
|
3955
|
+
icon: /* @__PURE__ */ Z(At, {
|
|
3956
3956
|
size: G.SM,
|
|
3957
3957
|
"aria-hidden": !0,
|
|
3958
3958
|
stroke: K
|
|
3959
3959
|
}),
|
|
3960
3960
|
"aria-label": u
|
|
3961
3961
|
}, {
|
|
3962
|
-
value:
|
|
3963
|
-
icon: /* @__PURE__ */ Z(
|
|
3962
|
+
value: an.Cards,
|
|
3963
|
+
icon: /* @__PURE__ */ Z(jt, {
|
|
3964
3964
|
size: G.SM,
|
|
3965
3965
|
"aria-hidden": !0,
|
|
3966
3966
|
stroke: K
|
|
@@ -4009,7 +4009,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4009
4009
|
value: t,
|
|
4010
4010
|
onChange: n,
|
|
4011
4011
|
items: te
|
|
4012
|
-
}), m != null && m.length > 0 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", { className: R("h-4 w-px shrink-0",
|
|
4012
|
+
}), m != null && m.length > 0 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", { className: R("h-4 w-px shrink-0", la.divider) }), /* @__PURE__ */ Z(we, {
|
|
4013
4013
|
items: ie,
|
|
4014
4014
|
label: re,
|
|
4015
4015
|
variant: Te.Primary,
|
|
@@ -4025,7 +4025,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4025
4025
|
value: o,
|
|
4026
4026
|
onChange: ne,
|
|
4027
4027
|
size: J.Large,
|
|
4028
|
-
wrapperClassName:
|
|
4028
|
+
wrapperClassName: la.searchField,
|
|
4029
4029
|
placeholder: c,
|
|
4030
4030
|
"aria-label": c,
|
|
4031
4031
|
inputRef: l
|
|
@@ -4045,10 +4045,10 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4045
4045
|
"aria-hidden": !0
|
|
4046
4046
|
})
|
|
4047
4047
|
}), P && /* @__PURE__ */ Z("span", {
|
|
4048
|
-
className: R("pointer-events-none absolute inset-e-2.5 top-2.5 size-2 rounded-full",
|
|
4048
|
+
className: R("pointer-events-none absolute inset-e-2.5 top-2.5 size-2 rounded-full", la.settingsDot),
|
|
4049
4049
|
"aria-hidden": !0
|
|
4050
4050
|
})]
|
|
4051
|
-
}), /* @__PURE__ */ Z(
|
|
4051
|
+
}), /* @__PURE__ */ Z(ca, {
|
|
4052
4052
|
open: M,
|
|
4053
4053
|
onClose: () => N(!1),
|
|
4054
4054
|
viewMode: t,
|
|
@@ -4056,15 +4056,15 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4056
4056
|
sortOptions: m,
|
|
4057
4057
|
sortKey: p,
|
|
4058
4058
|
onSortChange: h,
|
|
4059
|
-
filters: _ ??
|
|
4059
|
+
filters: _ ?? ua,
|
|
4060
4060
|
onFiltersChange: v ?? (() => void 0),
|
|
4061
4061
|
filterValues: y,
|
|
4062
4062
|
isMyAppsActive: b,
|
|
4063
4063
|
onMyAppsChange: x,
|
|
4064
4064
|
labels: F,
|
|
4065
4065
|
typography: a?.typography
|
|
4066
|
-
})] }) : /* @__PURE__ */ Z(
|
|
4067
|
-
checked: _ ??
|
|
4066
|
+
})] }) : /* @__PURE__ */ Z(aa, {
|
|
4067
|
+
checked: _ ?? ua,
|
|
4068
4068
|
onChange: v ?? (() => void 0),
|
|
4069
4069
|
values: y,
|
|
4070
4070
|
isMyAppsActive: b,
|
|
@@ -4078,15 +4078,15 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4078
4078
|
})]
|
|
4079
4079
|
})]
|
|
4080
4080
|
});
|
|
4081
|
-
},
|
|
4081
|
+
}, fa = ({ 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
4082
|
let b = {
|
|
4083
4083
|
"--cat-browse-divider": r?.colors?.divider,
|
|
4084
4084
|
"--cat-browse-settings-dot": r?.colors?.settingsActiveDot
|
|
4085
4085
|
};
|
|
4086
4086
|
return /* @__PURE__ */ Z("section", {
|
|
4087
|
-
className: R("shrink-0 px-4",
|
|
4087
|
+
className: R("shrink-0 px-4", la.section, dn.toolbar),
|
|
4088
4088
|
style: b,
|
|
4089
|
-
children: /* @__PURE__ */ Z(
|
|
4089
|
+
children: /* @__PURE__ */ Z(da, {
|
|
4090
4090
|
styles: r,
|
|
4091
4091
|
query: e,
|
|
4092
4092
|
onQueryChange: t,
|
|
@@ -4109,12 +4109,12 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4109
4109
|
...y
|
|
4110
4110
|
})
|
|
4111
4111
|
});
|
|
4112
|
-
},
|
|
4112
|
+
}, pa = {
|
|
4113
4113
|
root: "_root_1h83l_1",
|
|
4114
4114
|
heading: "_heading_1h83l_5",
|
|
4115
4115
|
headingTitle: "_headingTitle_1h83l_9"
|
|
4116
|
-
},
|
|
4117
|
-
let { typography: Je, headingRowClassName: Ye = "h-[64px]" } = Fe ?? {}, Xe =
|
|
4116
|
+
}, ma = 3, ha = 300, ga = ({ 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 = an.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 }) => {
|
|
4117
|
+
let { typography: Je, headingRowClassName: Ye = "h-[64px]" } = Fe ?? {}, Xe = yn(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
4118
|
{
|
|
4119
4119
|
value: o.RecentlyUpdated,
|
|
4120
4120
|
label: a?.sortRecentlyUpdatedLabel ?? "Recently Updated"
|
|
@@ -4127,7 +4127,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4127
4127
|
value: o.NameAZ,
|
|
4128
4128
|
label: a?.sortNameAZLabel ?? "Name A-Z"
|
|
4129
4129
|
}
|
|
4130
|
-
], [ht, gt] = U(""), [_t, vt] = U(Ae), [yt, bt] = U(Ae ===
|
|
4130
|
+
], [ht, gt] = U(""), [_t, vt] = U(Ae), [yt, bt] = U(Ae === an.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
4131
|
let t = e;
|
|
4132
4132
|
St(t), Be?.(t);
|
|
4133
4133
|
}, [Be]), jt = z((e) => {
|
|
@@ -4158,24 +4158,24 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4158
4158
|
B(() => () => {
|
|
4159
4159
|
tn.current !== null && clearTimeout(tn.current);
|
|
4160
4160
|
}, []);
|
|
4161
|
-
let
|
|
4162
|
-
|
|
4163
|
-
let t =
|
|
4161
|
+
let nn = H(null), $ = H(0), rn = z(async (e) => {
|
|
4162
|
+
nn.current = e.id;
|
|
4163
|
+
let t = ++$.current;
|
|
4164
4164
|
if (L) {
|
|
4165
4165
|
en(!0);
|
|
4166
4166
|
try {
|
|
4167
4167
|
let n = await L(e);
|
|
4168
|
-
return
|
|
4168
|
+
return $.current === t && Qt(n), n;
|
|
4169
4169
|
} finally {
|
|
4170
|
-
|
|
4170
|
+
$.current === t && en(!1);
|
|
4171
4171
|
}
|
|
4172
4172
|
}
|
|
4173
|
-
}, [L]), on = z(async (e) => (tn.current !== null && (clearTimeout(tn.current), tn.current = null, Xt(!0)), Jt(e), Qt(void 0),
|
|
4174
|
-
for (let n = 0; n <
|
|
4175
|
-
if (
|
|
4176
|
-
n < 2 && await p(
|
|
4173
|
+
}, [L]), on = z(async (e) => (tn.current !== null && (clearTimeout(tn.current), tn.current = null, Xt(!0)), Jt(e), Qt(void 0), rn(e)), [rn]), sn = z(async (e, t) => {
|
|
4174
|
+
for (let n = 0; n < ma; n++) {
|
|
4175
|
+
if (nn.current !== e.id || t(await rn(e))) return;
|
|
4176
|
+
n < 2 && await p(ha);
|
|
4177
4177
|
}
|
|
4178
|
-
}, [
|
|
4178
|
+
}, [rn]), cn = H(null);
|
|
4179
4179
|
B(() => {
|
|
4180
4180
|
if (!Re) {
|
|
4181
4181
|
cn.current = null;
|
|
@@ -4199,17 +4199,17 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4199
4199
|
we,
|
|
4200
4200
|
L,
|
|
4201
4201
|
sn
|
|
4202
|
-
]),
|
|
4202
|
+
]), un = z(async (e, t) => {
|
|
4203
4203
|
await Te?.(e, t), L && await sn(e, (e) => !D(e?.credentials, t.level));
|
|
4204
4204
|
}, [
|
|
4205
4205
|
Te,
|
|
4206
4206
|
L,
|
|
4207
4207
|
sn
|
|
4208
4208
|
]), fn = z(() => {
|
|
4209
|
-
Xt(!1),
|
|
4209
|
+
Xt(!1), nn.current = null, $.current += 1, tn.current !== null && clearTimeout(tn.current), tn.current = setTimeout(() => {
|
|
4210
4210
|
tn.current = null, Jt(null), Qt(void 0), en(!1);
|
|
4211
4211
|
}, 300);
|
|
4212
|
-
}, []),
|
|
4212
|
+
}, []), pn = V(() => {
|
|
4213
4213
|
if (qt == null) return null;
|
|
4214
4214
|
if (Zt == null) return qt;
|
|
4215
4215
|
let { credentials: e, ...t } = Zt;
|
|
@@ -4218,7 +4218,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4218
4218
|
details: t,
|
|
4219
4219
|
credentials: e ?? qt.credentials
|
|
4220
4220
|
};
|
|
4221
|
-
}, [qt, Zt]), hn = V(() => r(Nt, Dt), [Nt, Dt]),
|
|
4221
|
+
}, [qt, Zt]), hn = V(() => r(Nt, Dt), [Nt, Dt]), gn = V(() => M(hn, ht), [hn, ht]), bn = V(() => Ot.size > 0 ? f(gn, Ot) : gn, [gn, Ot]), xn = V(() => kt ? N(bn) : bn, [bn, kt]), Sn = V(() => Bt ? xn.filter((e) => S(e).includes(Bt)) : xn, [xn, Bt]);
|
|
4222
4222
|
B(() => {
|
|
4223
4223
|
if (yt !== "unmounted" || Pe || Sn.length === 0) return;
|
|
4224
4224
|
let e = () => {
|
|
@@ -4244,13 +4244,13 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4244
4244
|
return () => cancelAnimationFrame(e);
|
|
4245
4245
|
}, [qt]);
|
|
4246
4246
|
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 } =
|
|
4247
|
+
e === an.Cards && bt("shown"), vt(e);
|
|
4248
|
+
}, []), Tn = !G && !q, En = Tn && Ze, [Dn, On] = U(null), kn = H(null), An = H(null), { isVisible: jn, handleRowsScroll: Mn, scrollToTop: Nn } = mn({
|
|
4249
4249
|
scrollBody: Dn,
|
|
4250
4250
|
searchInputRef: kn,
|
|
4251
4251
|
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(() =>
|
|
4252
|
+
isListView: _t === an.Cards
|
|
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(() => vn({
|
|
4254
4254
|
copyCodeAriaLabel: Rn,
|
|
4255
4255
|
copiedCodeStatusLabel: zn,
|
|
4256
4256
|
downloadCodeAriaLabel: Bn,
|
|
@@ -4274,12 +4274,12 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4274
4274
|
ot,
|
|
4275
4275
|
a?.noFolderLabel,
|
|
4276
4276
|
Ie?.credentialsBadgeLoggedOutLabel
|
|
4277
|
-
]),
|
|
4277
|
+
]), Gn = !Pe && Sn.length === 0, qn = Gn ? qe?.({
|
|
4278
4278
|
query: ht,
|
|
4279
4279
|
activeTab: Bt,
|
|
4280
4280
|
hasTopicFilters: Ot.size > 0,
|
|
4281
4281
|
isMyAppsActive: kt
|
|
4282
|
-
}) : void 0, Jn =
|
|
4282
|
+
}) : void 0, Jn = Gn && kt && !ht && Ot.size === 0 && (ke == null || ke[Bt] != null), Yn = {
|
|
4283
4283
|
label: $e,
|
|
4284
4284
|
options: De,
|
|
4285
4285
|
onClick: Ee,
|
|
@@ -4291,7 +4291,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4291
4291
|
closeLabel: a?.createMenuCloseLabel,
|
|
4292
4292
|
colors: Fe?.colors?.createMenu,
|
|
4293
4293
|
sectionHeaderClassName: Je?.createMenuSectionHeaderClassName
|
|
4294
|
-
}, Xn = ke ?
|
|
4294
|
+
}, Xn = ke ? _n(ke[Bt]) : Yn, Zn = Tn && Xn != null ? {
|
|
4295
4295
|
...Yn,
|
|
4296
4296
|
...Xn
|
|
4297
4297
|
} : void 0;
|
|
@@ -4300,19 +4300,19 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4300
4300
|
children: /* @__PURE__ */ Z(ut, {})
|
|
4301
4301
|
}) : /* @__PURE__ */ Q("section", {
|
|
4302
4302
|
"aria-label": ft,
|
|
4303
|
-
className: R("relative flex size-full min-h-0 flex-1 flex-col",
|
|
4303
|
+
className: R("relative flex size-full min-h-0 flex-1 flex-col", pa.root, dn.root),
|
|
4304
4304
|
style: Xe,
|
|
4305
4305
|
children: [
|
|
4306
4306
|
(!K || Tn) && /* @__PURE__ */ Z("div", {
|
|
4307
|
-
className: R("shrink-0",
|
|
4307
|
+
className: R("shrink-0", pa.heading),
|
|
4308
4308
|
children: /* @__PURE__ */ Q("div", {
|
|
4309
4309
|
className: R("flex w-full items-center justify-between px-4 desktop:px-8", !(K && En) && Ye),
|
|
4310
4310
|
children: [!K && /* @__PURE__ */ Z("h1", {
|
|
4311
|
-
className: R(Je?.pageHeadingFontClassName ?? "dial-display2-text",
|
|
4311
|
+
className: R(Je?.pageHeadingFontClassName ?? "dial-display2-text", pa.headingTitle),
|
|
4312
4312
|
children: Qe
|
|
4313
4313
|
}), Tn && /* @__PURE__ */ Z("div", {
|
|
4314
4314
|
className: En ? "absolute inset-e-4 bottom-4 z-10" : void 0,
|
|
4315
|
-
children: /* @__PURE__ */ Z(
|
|
4315
|
+
children: /* @__PURE__ */ Z($i, {
|
|
4316
4316
|
...Yn,
|
|
4317
4317
|
isFloating: En
|
|
4318
4318
|
})
|
|
@@ -4321,7 +4321,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4321
4321
|
}),
|
|
4322
4322
|
jn && /* @__PURE__ */ Z("div", {
|
|
4323
4323
|
className: R("absolute inset-e-4 z-10", En ? "bottom-20" : "bottom-4"),
|
|
4324
|
-
children: /* @__PURE__ */ Z(
|
|
4324
|
+
children: /* @__PURE__ */ Z(ta, {
|
|
4325
4325
|
label: Y,
|
|
4326
4326
|
onClick: Nn
|
|
4327
4327
|
})
|
|
@@ -4332,7 +4332,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4332
4332
|
children: [
|
|
4333
4333
|
Pn && /* @__PURE__ */ Z("div", {
|
|
4334
4334
|
className: "w-full px-4 desktop:px-8",
|
|
4335
|
-
children: /* @__PURE__ */ Z(
|
|
4335
|
+
children: /* @__PURE__ */ Z(Di, {
|
|
4336
4336
|
items: Pt,
|
|
4337
4337
|
totalCount: Pt.length,
|
|
4338
4338
|
title: et,
|
|
@@ -4348,7 +4348,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4348
4348
|
}),
|
|
4349
4349
|
/* @__PURE__ */ Z("div", {
|
|
4350
4350
|
className: "w-full pt-6 desktop:px-4",
|
|
4351
|
-
children: /* @__PURE__ */ Z(
|
|
4351
|
+
children: /* @__PURE__ */ Z(fa, {
|
|
4352
4352
|
totalCount: xn.length,
|
|
4353
4353
|
viewMode: _t,
|
|
4354
4354
|
onViewModeChange: wn,
|
|
@@ -4395,15 +4395,15 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4395
4395
|
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
4396
|
children: [
|
|
4397
4397
|
qn != null && qn,
|
|
4398
|
-
qn == null && Jn && /* @__PURE__ */ Z(
|
|
4398
|
+
qn == null && Jn && /* @__PURE__ */ Z(ea, {
|
|
4399
4399
|
title: it(Bt),
|
|
4400
4400
|
description: at,
|
|
4401
4401
|
createButton: Zn
|
|
4402
4402
|
}),
|
|
4403
4403
|
qn == null && !Jn && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", {
|
|
4404
|
-
inert: _t !==
|
|
4405
|
-
className: R(Sn.length > 0 ? "pb-8" : "size-full flex-1", _t !==
|
|
4406
|
-
children: /* @__PURE__ */ Z(
|
|
4404
|
+
inert: _t !== an.Grid,
|
|
4405
|
+
className: R(Sn.length > 0 ? "pb-8" : "size-full flex-1", _t !== an.Grid && "hidden"),
|
|
4406
|
+
children: /* @__PURE__ */ Z(Kn, {
|
|
4407
4407
|
items: Sn,
|
|
4408
4408
|
query: ht,
|
|
4409
4409
|
onToggleFavorite: c,
|
|
@@ -4418,9 +4418,9 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4418
4418
|
activeTab: Bt
|
|
4419
4419
|
})
|
|
4420
4420
|
}), yt !== "unmounted" && /* @__PURE__ */ Z("div", {
|
|
4421
|
-
inert: _t !==
|
|
4422
|
-
className: R(_t ===
|
|
4423
|
-
children: /* @__PURE__ */ Z(
|
|
4421
|
+
inert: _t !== an.Cards,
|
|
4422
|
+
className: R(_t === an.Cards && "h-full min-h-[360px] pb-8", _t !== an.Cards && (yt === "prepared" ? "invisible h-0 overflow-hidden" : "hidden")),
|
|
4423
|
+
children: /* @__PURE__ */ Z(Yi, {
|
|
4424
4424
|
ref: An,
|
|
4425
4425
|
onRowsScroll: Mn,
|
|
4426
4426
|
type: Bt,
|
|
@@ -4443,9 +4443,9 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4443
4443
|
})
|
|
4444
4444
|
]
|
|
4445
4445
|
}),
|
|
4446
|
-
|
|
4446
|
+
pn != null && /* @__PURE__ */ Z(yi, {
|
|
4447
4447
|
renderCredentials: oe,
|
|
4448
|
-
item:
|
|
4448
|
+
item: pn,
|
|
4449
4449
|
isOpen: Yt,
|
|
4450
4450
|
isStarred: Cn,
|
|
4451
4451
|
isDetailsLoading: $t,
|
|
@@ -4492,22 +4492,22 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4492
4492
|
onUnpublish: W,
|
|
4493
4493
|
isUnpublishVisible: Ce,
|
|
4494
4494
|
onLogin: ln,
|
|
4495
|
-
onLogout:
|
|
4495
|
+
onLogout: un,
|
|
4496
4496
|
texts: Ie,
|
|
4497
4497
|
limitsFooterNote: Le,
|
|
4498
4498
|
styles: { colors: { featuredChipStyle: Fe?.colors?.featuredChipStyle } }
|
|
4499
4499
|
})
|
|
4500
4500
|
]
|
|
4501
4501
|
});
|
|
4502
|
-
},
|
|
4502
|
+
}, _a = /* @__PURE__ */ function(e) {
|
|
4503
4503
|
return e.Loading = "loading", e.Ready = "ready", e.Error = "error", e;
|
|
4504
|
-
}({}),
|
|
4504
|
+
}({}), va = { footer: "_footer_3lud6_1" }, ya = {
|
|
4505
4505
|
overlayClassName: "p-4 max-[767px]:p-0 !overflow-hidden",
|
|
4506
4506
|
className: "rounded-xl max-[767px]:h-full max-[767px]:rounded-none",
|
|
4507
4507
|
headerClassName: "px-6 py-4 max-[767px]:px-4 max-[767px]:py-3",
|
|
4508
4508
|
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 } =
|
|
4509
|
+
}, ba = ({ 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 }) => {
|
|
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 } = mn({
|
|
4511
4511
|
scrollBody: C,
|
|
4512
4512
|
searchInputRef: E,
|
|
4513
4513
|
listViewRef: T,
|
|
@@ -4520,7 +4520,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4520
4520
|
T.current = e, typeof N == "function" ? N(e) : N != null && (N.current = e);
|
|
4521
4521
|
}, [N]), F = p?.onRowsScroll, ee = z((e) => {
|
|
4522
4522
|
O(e), F?.(e);
|
|
4523
|
-
}, [O, F]), I = n ===
|
|
4523
|
+
}, [O, F]), I = n === _a.Ready, te = I && !a, ne = t.cancel ?? "Cancel", re = t.add ?? "Add", ie = V(() => j(e), [e]), L = V(() => c(e, {
|
|
4524
4524
|
search: h,
|
|
4525
4525
|
topics: _,
|
|
4526
4526
|
isMyOnly: y,
|
|
@@ -4572,7 +4572,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4572
4572
|
te,
|
|
4573
4573
|
ue
|
|
4574
4574
|
]), fe = s == null ? void 0 : /* @__PURE__ */ Q("div", {
|
|
4575
|
-
className: pt("flex flex-wrap items-center justify-between gap-2 border-t",
|
|
4575
|
+
className: pt("flex flex-wrap items-center justify-between gap-2 border-t", va.footer, ya.footerClassName),
|
|
4576
4576
|
style: de({ "--cat-picker-footer-border": l?.footerBorder }),
|
|
4577
4577
|
children: [/* @__PURE__ */ Z("div", {
|
|
4578
4578
|
className: "flex flex-wrap items-center gap-4",
|
|
@@ -4590,7 +4590,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4590
4590
|
})]
|
|
4591
4591
|
})]
|
|
4592
4592
|
}), pe = () => {
|
|
4593
|
-
if (n ===
|
|
4593
|
+
if (n === _a.Loading) return /* @__PURE__ */ Z("div", {
|
|
4594
4594
|
className: "flex items-center justify-center py-16",
|
|
4595
4595
|
children: /* @__PURE__ */ Z(ut, {
|
|
4596
4596
|
size: 32,
|
|
@@ -4598,7 +4598,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4598
4598
|
ariaLabel: t.loading ?? "Loading"
|
|
4599
4599
|
})
|
|
4600
4600
|
});
|
|
4601
|
-
if (n ===
|
|
4601
|
+
if (n === _a.Error) return /* @__PURE__ */ Q("div", {
|
|
4602
4602
|
className: "flex flex-col items-center justify-center gap-3 py-8",
|
|
4603
4603
|
children: [/* @__PURE__ */ Z($e, {
|
|
4604
4604
|
title: t.failedToLoad ?? "Failed to load",
|
|
@@ -4618,7 +4618,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4618
4618
|
return m ? m(L, h) : /* @__PURE__ */ Q("div", {
|
|
4619
4619
|
ref: M,
|
|
4620
4620
|
className: "relative min-h-0 flex-1",
|
|
4621
|
-
children: [/* @__PURE__ */ Z(
|
|
4621
|
+
children: [/* @__PURE__ */ Z(Yi, {
|
|
4622
4622
|
ariaLabel: t.catalog,
|
|
4623
4623
|
...p,
|
|
4624
4624
|
ref: P,
|
|
@@ -4627,7 +4627,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4627
4627
|
query: h
|
|
4628
4628
|
}), D && /* @__PURE__ */ Z("div", {
|
|
4629
4629
|
className: "absolute inset-e-4 bottom-4 z-10",
|
|
4630
|
-
children: /* @__PURE__ */ Z(
|
|
4630
|
+
children: /* @__PURE__ */ Z(ta, {
|
|
4631
4631
|
label: t.scrollToTop ?? "Scroll to top",
|
|
4632
4632
|
onClick: k
|
|
4633
4633
|
})
|
|
@@ -4640,7 +4640,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4640
4640
|
headerDivider: !0,
|
|
4641
4641
|
footerDivider: !0,
|
|
4642
4642
|
size: tt.Lg,
|
|
4643
|
-
...
|
|
4643
|
+
...ya,
|
|
4644
4644
|
closeAriaLabel: t.closeDialog ?? "Close dialog",
|
|
4645
4645
|
bodyClassName: "flex min-h-0 flex-col overflow-hidden px-6 py-2 h-[70vh] max-[767px]:h-auto max-[767px]:px-4",
|
|
4646
4646
|
mainButtons: R,
|
|
@@ -4679,7 +4679,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4679
4679
|
clearLabel: t.clearSearch ?? "Clear search",
|
|
4680
4680
|
inputRef: E
|
|
4681
4681
|
})
|
|
4682
|
-
}), /* @__PURE__ */ Z(
|
|
4682
|
+
}), /* @__PURE__ */ Z(aa, {
|
|
4683
4683
|
checked: _,
|
|
4684
4684
|
onChange: v,
|
|
4685
4685
|
values: ie,
|
|
@@ -4694,14 +4694,14 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4694
4694
|
})]
|
|
4695
4695
|
}), pe()]
|
|
4696
4696
|
});
|
|
4697
|
-
},
|
|
4697
|
+
}, xa = ({ 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
4698
|
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
4699
|
l,
|
|
4700
4700
|
n,
|
|
4701
4701
|
p,
|
|
4702
4702
|
h
|
|
4703
4703
|
]);
|
|
4704
|
-
return /* @__PURE__ */ Z(
|
|
4704
|
+
return /* @__PURE__ */ Z(ba, {
|
|
4705
4705
|
items: t,
|
|
4706
4706
|
labels: r,
|
|
4707
4707
|
status: i,
|
|
@@ -4714,18 +4714,18 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4714
4714
|
listProps: {
|
|
4715
4715
|
...s,
|
|
4716
4716
|
type: e,
|
|
4717
|
-
selectionMode:
|
|
4717
|
+
selectionMode: on.Multiple,
|
|
4718
4718
|
selectedItemIds: p,
|
|
4719
4719
|
onSelectionChange: m,
|
|
4720
4720
|
selectRowAriaLabel: _,
|
|
4721
4721
|
selectAllAriaLabel: r.selectAll ?? "Select all"
|
|
4722
4722
|
}
|
|
4723
4723
|
});
|
|
4724
|
-
},
|
|
4724
|
+
}, Sa = {
|
|
4725
4725
|
row: "_row_xykcx_1",
|
|
4726
4726
|
focusable: "_focusable_xykcx_5",
|
|
4727
4727
|
description: "_description_xykcx_9"
|
|
4728
|
-
},
|
|
4728
|
+
}, Ca = "group relative flex min-w-0 items-center gap-1 rounded-[10px] pe-1", wa = "outline-hidden focus-visible:outline", Ta = ({ 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
4729
|
let _ = _e(), v = _e(), y = o != null && o !== "", b = de({
|
|
4730
4730
|
"--cat-add-on-row-hover-bg": u?.rowHoverBackground,
|
|
4731
4731
|
"--cat-add-on-focus-outline": u?.focusOutline,
|
|
@@ -4750,17 +4750,17 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4750
4750
|
src: n,
|
|
4751
4751
|
initialsName: e,
|
|
4752
4752
|
styles: { badgeClassName: "rounded-[10px]" }
|
|
4753
|
-
}), c && /* @__PURE__ */ Z(
|
|
4753
|
+
}), c && /* @__PURE__ */ Z(Nn, {
|
|
4754
4754
|
credentials: c,
|
|
4755
4755
|
loggedOutLabel: l?.credentialsBadge
|
|
4756
4756
|
})]
|
|
4757
4757
|
}), S = y && /* @__PURE__ */ Z("span", {
|
|
4758
4758
|
id: v,
|
|
4759
|
-
className: pt("truncate",
|
|
4759
|
+
className: pt("truncate", Sa.description, p),
|
|
4760
4760
|
children: o
|
|
4761
4761
|
}), C = { "aria-describedby": y ? v : void 0 };
|
|
4762
4762
|
return /* @__PURE__ */ Q("div", {
|
|
4763
|
-
className: pt(
|
|
4763
|
+
className: pt(Ca, Sa.row),
|
|
4764
4764
|
style: b,
|
|
4765
4765
|
children: [
|
|
4766
4766
|
a ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("button", {
|
|
@@ -4768,7 +4768,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4768
4768
|
"aria-label": e,
|
|
4769
4769
|
...C,
|
|
4770
4770
|
disabled: m,
|
|
4771
|
-
className: pt("absolute inset-0 rounded-[10px] bg-transparent",
|
|
4771
|
+
className: pt("absolute inset-0 rounded-[10px] bg-transparent", wa, Sa.focusable),
|
|
4772
4772
|
onClick: h
|
|
4773
4773
|
}), /* @__PURE__ */ Q("span", {
|
|
4774
4774
|
className: "pointer-events-none flex min-w-0 flex-1 items-center gap-2.5 py-1",
|
|
@@ -4784,7 +4784,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4784
4784
|
"aria-labelledby": _,
|
|
4785
4785
|
...C,
|
|
4786
4786
|
disabled: m,
|
|
4787
|
-
className: pt("flex min-w-0 flex-1 items-center gap-2.5 rounded-[10px] py-1 text-start",
|
|
4787
|
+
className: pt("flex min-w-0 flex-1 items-center gap-2.5 rounded-[10px] py-1 text-start", wa, Sa.focusable),
|
|
4788
4788
|
onClick: h,
|
|
4789
4789
|
children: [x, /* @__PURE__ */ Q("span", {
|
|
4790
4790
|
className: "flex min-w-0 flex-1 flex-col",
|
|
@@ -4811,7 +4811,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4811
4811
|
}),
|
|
4812
4812
|
g && /* @__PURE__ */ Z(ze, {
|
|
4813
4813
|
size: J.Small,
|
|
4814
|
-
icon: /* @__PURE__ */ Z(
|
|
4814
|
+
icon: /* @__PURE__ */ Z(Bt, {
|
|
4815
4815
|
"aria-hidden": !0,
|
|
4816
4816
|
size: G.SM,
|
|
4817
4817
|
stroke: K
|
|
@@ -4823,7 +4823,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4823
4823
|
})
|
|
4824
4824
|
]
|
|
4825
4825
|
});
|
|
4826
|
-
},
|
|
4826
|
+
}, Ea = (e) => {
|
|
4827
4827
|
let t = H(null), n = H(e);
|
|
4828
4828
|
return B(() => {
|
|
4829
4829
|
let r = e < n.current;
|
|
@@ -4833,7 +4833,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4833
4833
|
let a = t.current;
|
|
4834
4834
|
(a?.querySelector("ul button") ?? a?.querySelector("button"))?.focus();
|
|
4835
4835
|
}, [e]), t;
|
|
4836
|
-
},
|
|
4836
|
+
}, Da = ({ 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
4837
|
let [x, S] = U(!1), C = v ?? x, w = (e) => {
|
|
4838
4838
|
e && u || (v === void 0 && S(e), y?.(e));
|
|
4839
4839
|
}, [T, E] = U(""), D = H(null), O = V(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
|
|
@@ -4933,9 +4933,9 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4933
4933
|
renderOverlay: () => P,
|
|
4934
4934
|
children: F
|
|
4935
4935
|
});
|
|
4936
|
-
},
|
|
4936
|
+
}, Oa = /* @__PURE__ */ function(e) {
|
|
4937
4937
|
return e.Sectioned = "sectioned", e.Flat = "flat", e;
|
|
4938
|
-
}({}),
|
|
4938
|
+
}({}), ka = {
|
|
4939
4939
|
rowEnter: "_rowEnter_2utoo_3",
|
|
4940
4940
|
rowFadeIn: "_rowFadeIn_2utoo_1",
|
|
4941
4941
|
rowLeaving: "_rowLeaving_2utoo_7",
|
|
@@ -4947,11 +4947,11 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4947
4947
|
starFilledIcon: "_starFilledIcon_2utoo_56",
|
|
4948
4948
|
footer: "_footer_2utoo_60",
|
|
4949
4949
|
listContent: "_listContent_2utoo_68"
|
|
4950
|
-
},
|
|
4950
|
+
}, Aa = 180, ja = (e, t) => {
|
|
4951
4951
|
let n = t.toLowerCase();
|
|
4952
4952
|
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 ===
|
|
4953
|
+
}, Ma = (e) => S(e).some((e) => e === P.Model || e === P.Agent), Na = [], Pa = ({ searchQuery: e, onSearchQueryChange: t, favorites: n, extraOptions: r = Na, pinnedItem: i, canFavoritePinnedItem: a = !0, selectedId: o, selectedItem: s, isSelectableItem: c = Ma, layout: l = Oa.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 }) => {
|
|
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 === Oa.Sectioned, [j, M] = U(""), N = e ?? j, P = (e) => {
|
|
4955
4955
|
M(e ?? ""), t?.(e ?? "");
|
|
4956
4956
|
}, [F, ee] = U(/* @__PURE__ */ new Set()), I = H(/* @__PURE__ */ new Map());
|
|
4957
4957
|
B(() => {
|
|
@@ -4964,9 +4964,9 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4964
4964
|
n,
|
|
4965
4965
|
i,
|
|
4966
4966
|
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 ||
|
|
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 || ja(s, N)), oe = V(() => {
|
|
4968
4968
|
let e = A ? ne.filter((e) => e.id !== s?.id) : ne;
|
|
4969
|
-
return ie ? e.filter((e) =>
|
|
4969
|
+
return ie ? e.filter((e) => ja(e, N)) : e;
|
|
4970
4970
|
}, [
|
|
4971
4971
|
ne,
|
|
4972
4972
|
A,
|
|
@@ -4986,7 +4986,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
4986
4986
|
]);
|
|
4987
4987
|
let he = H(null), ge = H(null);
|
|
4988
4988
|
B(() => {
|
|
4989
|
-
ge.current && he.current &&
|
|
4989
|
+
ge.current && he.current && Cn(ge.current, he.current);
|
|
4990
4990
|
}, []);
|
|
4991
4991
|
let z = pe(), _e = H(null);
|
|
4992
4992
|
B(() => {
|
|
@@ -5003,7 +5003,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
5003
5003
|
let n = new Set(t);
|
|
5004
5004
|
return n.delete(e), n;
|
|
5005
5005
|
}), I.current.delete(e);
|
|
5006
|
-
},
|
|
5006
|
+
}, Aa);
|
|
5007
5007
|
I.current.set(e, n);
|
|
5008
5008
|
}, Se = (e) => ie ? /* @__PURE__ */ Z(Be, {
|
|
5009
5009
|
text: e,
|
|
@@ -5032,7 +5032,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
5032
5032
|
return /* @__PURE__ */ Z("li", {
|
|
5033
5033
|
role: "none",
|
|
5034
5034
|
ref: n ? he : void 0,
|
|
5035
|
-
className: l ?
|
|
5035
|
+
className: l ? ka.rowLeaving : ka.rowEnter,
|
|
5036
5036
|
children: /* @__PURE__ */ Z(Ye, {
|
|
5037
5037
|
role: "menuitemradio",
|
|
5038
5038
|
"aria-checked": n,
|
|
@@ -5055,14 +5055,14 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
5055
5055
|
}),
|
|
5056
5056
|
onClick: () => ve(e.id),
|
|
5057
5057
|
rightControl: c ? /* @__PURE__ */ Z(ft, {
|
|
5058
|
-
icon: /* @__PURE__ */ Z(
|
|
5058
|
+
icon: /* @__PURE__ */ Z(Rt, {
|
|
5059
5059
|
size: G.SM,
|
|
5060
5060
|
"aria-hidden": !0,
|
|
5061
5061
|
stroke: K
|
|
5062
5062
|
}),
|
|
5063
|
-
selectedIcon: /* @__PURE__ */ Z(
|
|
5063
|
+
selectedIcon: /* @__PURE__ */ Z(zt, {
|
|
5064
5064
|
size: G.SM,
|
|
5065
|
-
className:
|
|
5065
|
+
className: ka.starFilledIcon,
|
|
5066
5066
|
"aria-hidden": !0
|
|
5067
5067
|
}),
|
|
5068
5068
|
isSelected: r,
|
|
@@ -5074,11 +5074,11 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
5074
5074
|
})
|
|
5075
5075
|
}, e.id);
|
|
5076
5076
|
}, we = () => /* @__PURE__ */ Z("p", {
|
|
5077
|
-
className: R(v, "px-4 py-4 text-center",
|
|
5077
|
+
className: R(v, "px-4 py-4 text-center", ka.emptyHint),
|
|
5078
5078
|
children: C
|
|
5079
5079
|
}), Te = () => /* @__PURE__ */ Q(X, { children: [
|
|
5080
5080
|
L && s && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("p", {
|
|
5081
|
-
className: R(g, "px-3 pt-2 pb-2",
|
|
5081
|
+
className: R(g, "px-3 pt-2 pb-2", ka.sectionHeading),
|
|
5082
5082
|
children: E
|
|
5083
5083
|
}), /* @__PURE__ */ Z("ul", {
|
|
5084
5084
|
role: "group",
|
|
@@ -5086,7 +5086,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
5086
5086
|
children: Ce(s, !0)
|
|
5087
5087
|
})] }),
|
|
5088
5088
|
(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",
|
|
5089
|
+
className: R(g, "sticky top-0 z-10 px-3 pt-2 pb-2 will-change-transform", ka.sectionHeading, ka.stickyHeading),
|
|
5090
5090
|
children: S
|
|
5091
5091
|
}),
|
|
5092
5092
|
oe.length > 0 ? /* @__PURE__ */ Z("ul", {
|
|
@@ -5121,7 +5121,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
5121
5121
|
children: [
|
|
5122
5122
|
/* @__PURE__ */ Z("div", {
|
|
5123
5123
|
role: "search",
|
|
5124
|
-
className: R("sticky top-0 z-10 pt-2 pb-3",
|
|
5124
|
+
className: R("sticky top-0 z-10 pt-2 pb-3", ka.searchHeader),
|
|
5125
5125
|
children: /* @__PURE__ */ Z(at, {
|
|
5126
5126
|
inputRef: _e,
|
|
5127
5127
|
value: N,
|
|
@@ -5133,7 +5133,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
5133
5133
|
}),
|
|
5134
5134
|
/* @__PURE__ */ Z("div", {
|
|
5135
5135
|
ref: ge,
|
|
5136
|
-
className: R(le, "min-h-0 flex-1 overflow-y-auto",
|
|
5136
|
+
className: R(le, "min-h-0 flex-1 overflow-y-auto", ka.listContent),
|
|
5137
5137
|
style: { maxHeight: fe },
|
|
5138
5138
|
children: /* @__PURE__ */ Q("div", {
|
|
5139
5139
|
role: "menu",
|
|
@@ -5147,7 +5147,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
5147
5147
|
})
|
|
5148
5148
|
}),
|
|
5149
5149
|
/* @__PURE__ */ Z("div", {
|
|
5150
|
-
className: R("px-2 py-3",
|
|
5150
|
+
className: R("px-2 py-3", ka.footer),
|
|
5151
5151
|
children: /* @__PURE__ */ Z(Re, {
|
|
5152
5152
|
label: w,
|
|
5153
5153
|
className: "w-full justify-center",
|
|
@@ -5156,12 +5156,12 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
5156
5156
|
})
|
|
5157
5157
|
]
|
|
5158
5158
|
});
|
|
5159
|
-
},
|
|
5159
|
+
}, Fa = ({ service: e, texts: t, onLogin: n, onLogout: r, typography: a }) => {
|
|
5160
5160
|
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(
|
|
5161
|
+
return /* @__PURE__ */ Q(_r, {
|
|
5162
5162
|
label: e.name,
|
|
5163
5163
|
description: e.description,
|
|
5164
|
-
icon: /* @__PURE__ */ Z(
|
|
5164
|
+
icon: /* @__PURE__ */ Z(Ht, {
|
|
5165
5165
|
size: G.SM,
|
|
5166
5166
|
"aria-hidden": !0,
|
|
5167
5167
|
stroke: K
|
|
@@ -5183,7 +5183,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
5183
5183
|
errorClassName: l,
|
|
5184
5184
|
keyCardTitleClassName: u,
|
|
5185
5185
|
keyCardDescriptionClassName: d,
|
|
5186
|
-
deleteActionClassName:
|
|
5186
|
+
deleteActionClassName: gr.deleteAction,
|
|
5187
5187
|
renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ Z(Oe, {
|
|
5188
5188
|
isSelected: f,
|
|
5189
5189
|
onChange: p,
|
|
@@ -5193,11 +5193,11 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
5193
5193
|
}) : void 0,
|
|
5194
5194
|
children: [
|
|
5195
5195
|
e.hint && /* @__PURE__ */ Z("p", {
|
|
5196
|
-
className: R(c, "wrap-break-word",
|
|
5196
|
+
className: R(c, "wrap-break-word", gr.description),
|
|
5197
5197
|
children: e.hint
|
|
5198
5198
|
}),
|
|
5199
|
-
e.hasSharedCredentials && /* @__PURE__ */ Z(
|
|
5200
|
-
icon: /* @__PURE__ */ Z(
|
|
5199
|
+
e.hasSharedCredentials && /* @__PURE__ */ Z(lr, {
|
|
5200
|
+
icon: /* @__PURE__ */ Z(yt, {
|
|
5201
5201
|
size: G.SM,
|
|
5202
5202
|
"aria-hidden": !0,
|
|
5203
5203
|
stroke: K
|
|
@@ -5210,7 +5210,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
5210
5210
|
/* @__PURE__ */ Z("p", { children: C }),
|
|
5211
5211
|
/* @__PURE__ */ Z(Pe, {
|
|
5212
5212
|
announce: Je.Assertive,
|
|
5213
|
-
className:
|
|
5213
|
+
className: gr.errorText,
|
|
5214
5214
|
text: v ?? ""
|
|
5215
5215
|
}),
|
|
5216
5216
|
/* @__PURE__ */ Q("div", {
|
|
@@ -5244,7 +5244,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
5244
5244
|
})
|
|
5245
5245
|
]
|
|
5246
5246
|
});
|
|
5247
|
-
},
|
|
5247
|
+
}, Ia = ({ services: e, isLoading: t = !1, hasError: n = !1, showEmptyState: r = !1, onRetry: i, onLogin: a, onLogout: o, texts: s, typography: c }) => {
|
|
5248
5248
|
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
5249
|
f ? m = l : p && (m = u);
|
|
5250
5250
|
let h = null;
|
|
@@ -5274,7 +5274,7 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
5274
5274
|
children: s?.title ?? "Credentials"
|
|
5275
5275
|
}), /* @__PURE__ */ Z("div", {
|
|
5276
5276
|
className: "flex min-w-0 flex-col",
|
|
5277
|
-
children: e.map((e) => /* @__PURE__ */ Z(
|
|
5277
|
+
children: e.map((e) => /* @__PURE__ */ Z(Fa, {
|
|
5278
5278
|
service: e,
|
|
5279
5279
|
texts: s,
|
|
5280
5280
|
onLogin: a,
|
|
@@ -5286,6 +5286,149 @@ var $t = /* @__PURE__ */ function(e) {
|
|
|
5286
5286
|
visuallyHidden: !0,
|
|
5287
5287
|
children: m
|
|
5288
5288
|
}), h] });
|
|
5289
|
+
}, La = {
|
|
5290
|
+
description: "_description_ni81_1",
|
|
5291
|
+
row: "_row_ni81_5",
|
|
5292
|
+
name: "_name_ni81_9",
|
|
5293
|
+
error: "_error_ni81_13",
|
|
5294
|
+
hint: "_hint_ni81_17"
|
|
5295
|
+
}, Ra = ({ row: e, labels: t, nameClassName: n, errorClassName: r, hintClassName: i, onApiKeyChange: a, onLogin: o, onDecline: s }) => {
|
|
5296
|
+
let { id: c, isProcessing: l } = e;
|
|
5297
|
+
return /* @__PURE__ */ Q("div", {
|
|
5298
|
+
role: "group",
|
|
5299
|
+
"aria-label": e.displayName,
|
|
5300
|
+
"aria-busy": l,
|
|
5301
|
+
className: R("flex flex-col gap-2 border-b py-3 last:border-b-0", La.row),
|
|
5302
|
+
children: [
|
|
5303
|
+
/* @__PURE__ */ Z("div", {
|
|
5304
|
+
className: "flex min-w-0 items-center justify-between gap-2",
|
|
5305
|
+
children: /* @__PURE__ */ Q("span", {
|
|
5306
|
+
className: R("min-w-0 flex-1 truncate", n, La.name),
|
|
5307
|
+
children: [e.displayName, e.displayVersion ? ` (${e.displayVersion})` : ""]
|
|
5308
|
+
})
|
|
5309
|
+
}),
|
|
5310
|
+
e.requiresApiKey && /* @__PURE__ */ Z(Ue, {
|
|
5311
|
+
id: `signin-interrupt-api-key-${c}`,
|
|
5312
|
+
type: "password",
|
|
5313
|
+
value: e.apiKey,
|
|
5314
|
+
placeholder: t.apiKeyPlaceholder,
|
|
5315
|
+
labelProps: { label: t.apiKeyLabel },
|
|
5316
|
+
disabled: l,
|
|
5317
|
+
onChange: (e) => a(c, e ?? "")
|
|
5318
|
+
}),
|
|
5319
|
+
/* @__PURE__ */ Z(Ke, {
|
|
5320
|
+
politeness: Je.Assertive,
|
|
5321
|
+
className: R("flex flex-wrap items-center gap-2 wrap-break-word", r, La.error),
|
|
5322
|
+
children: e.errorMessage && /* @__PURE__ */ Q(X, { children: [
|
|
5323
|
+
/* @__PURE__ */ Z(ht, {
|
|
5324
|
+
size: G.SM,
|
|
5325
|
+
"aria-hidden": !0
|
|
5326
|
+
}),
|
|
5327
|
+
/* @__PURE__ */ Z("span", { children: e.errorMessage }),
|
|
5328
|
+
/* @__PURE__ */ Z(Ge, {
|
|
5329
|
+
className: "h-auto",
|
|
5330
|
+
label: t.retry,
|
|
5331
|
+
onClick: () => o(c)
|
|
5332
|
+
})
|
|
5333
|
+
] })
|
|
5334
|
+
}),
|
|
5335
|
+
e.showDialNativeHint && /* @__PURE__ */ Z("p", {
|
|
5336
|
+
className: R("wrap-break-word", i, La.hint),
|
|
5337
|
+
children: t.dialNativeHint
|
|
5338
|
+
}),
|
|
5339
|
+
e.requiresNoCredentials ? /* @__PURE__ */ Z("div", {
|
|
5340
|
+
className: "flex justify-end",
|
|
5341
|
+
children: /* @__PURE__ */ Z("span", {
|
|
5342
|
+
className: R(i, La.hint),
|
|
5343
|
+
children: t.noCredentialsRequired
|
|
5344
|
+
})
|
|
5345
|
+
}) : /* @__PURE__ */ Q("div", {
|
|
5346
|
+
className: "flex justify-end gap-2",
|
|
5347
|
+
children: [/* @__PURE__ */ Z(Re, {
|
|
5348
|
+
label: t.decline,
|
|
5349
|
+
className: "mobile:flex-1",
|
|
5350
|
+
disabled: l,
|
|
5351
|
+
onClick: () => s(c)
|
|
5352
|
+
}), /* @__PURE__ */ Z(nt, {
|
|
5353
|
+
label: l ? void 0 : t.logIn,
|
|
5354
|
+
"aria-label": l ? t.logIn : void 0,
|
|
5355
|
+
iconBefore: l ? /* @__PURE__ */ Z(ut, {
|
|
5356
|
+
size: 16,
|
|
5357
|
+
ariaLabel: t.logIn
|
|
5358
|
+
}) : void 0,
|
|
5359
|
+
className: "mobile:flex-1",
|
|
5360
|
+
disabled: l || !e.canSubmitLogin,
|
|
5361
|
+
onClick: () => o(c)
|
|
5362
|
+
})]
|
|
5363
|
+
})
|
|
5364
|
+
]
|
|
5365
|
+
});
|
|
5366
|
+
}, za = ({ 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
|
+
if (e.length === 0) return null;
|
|
5368
|
+
let h = {
|
|
5369
|
+
decline: l?.decline ?? "Decline",
|
|
5370
|
+
logIn: l?.logIn ?? "Log in",
|
|
5371
|
+
retry: l?.retry ?? "Retry",
|
|
5372
|
+
apiKeyLabel: l?.apiKeyLabel ?? "API key",
|
|
5373
|
+
apiKeyPlaceholder: l?.apiKeyPlaceholder ?? "Enter API key",
|
|
5374
|
+
dialNativeHint: l?.dialNativeHint ?? "Connect your account for offline access. An administrator must separately approve this application's access.",
|
|
5375
|
+
noCredentialsRequired: l?.noCredentialsRequired ?? "No credentials required"
|
|
5376
|
+
}, g = e.length > 1 ? /* @__PURE__ */ Z("div", {
|
|
5377
|
+
className: "flex items-center justify-end gap-2 px-6 py-4",
|
|
5378
|
+
children: /* @__PURE__ */ Z(Ze, {
|
|
5379
|
+
label: l?.declineAll ?? "Decline all",
|
|
5380
|
+
onClick: c
|
|
5381
|
+
})
|
|
5382
|
+
}) : void 0;
|
|
5383
|
+
return /* @__PURE__ */ Z(et, {
|
|
5384
|
+
open: !0,
|
|
5385
|
+
hideClose: !0,
|
|
5386
|
+
closeOnOutsideClick: !1,
|
|
5387
|
+
size: tt.Md,
|
|
5388
|
+
header: l?.title ?? "Sign-in required",
|
|
5389
|
+
footer: g,
|
|
5390
|
+
children: /* @__PURE__ */ Q("div", {
|
|
5391
|
+
className: "flex flex-col gap-2 px-6 py-4",
|
|
5392
|
+
style: de({
|
|
5393
|
+
"--cat-signin-description-text": u?.descriptionText,
|
|
5394
|
+
"--cat-signin-row-border": u?.rowBorder,
|
|
5395
|
+
"--cat-signin-name-text": u?.nameText,
|
|
5396
|
+
"--cat-signin-error-text": u?.errorText,
|
|
5397
|
+
"--cat-signin-hint-text": u?.hintText
|
|
5398
|
+
}),
|
|
5399
|
+
children: [
|
|
5400
|
+
/* @__PURE__ */ Z("p", {
|
|
5401
|
+
className: R(d, La.description),
|
|
5402
|
+
children: l?.description ?? "One or more tools or services need you to sign in before the conversation can continue."
|
|
5403
|
+
}),
|
|
5404
|
+
/* @__PURE__ */ Z(Ke, {
|
|
5405
|
+
visuallyHidden: !0,
|
|
5406
|
+
as: qe.Span,
|
|
5407
|
+
children: t
|
|
5408
|
+
}),
|
|
5409
|
+
/* @__PURE__ */ Z("div", {
|
|
5410
|
+
className: "flex flex-col",
|
|
5411
|
+
children: e.map((e) => /* @__PURE__ */ Z(Ra, {
|
|
5412
|
+
row: e,
|
|
5413
|
+
labels: h,
|
|
5414
|
+
nameClassName: f,
|
|
5415
|
+
errorClassName: p,
|
|
5416
|
+
hintClassName: m,
|
|
5417
|
+
onApiKeyChange: a,
|
|
5418
|
+
onLogin: o,
|
|
5419
|
+
onDecline: s
|
|
5420
|
+
}, e.id))
|
|
5421
|
+
}),
|
|
5422
|
+
n && /* @__PURE__ */ Z(Oe, {
|
|
5423
|
+
className: "mt-2",
|
|
5424
|
+
isSelected: r,
|
|
5425
|
+
onChange: i,
|
|
5426
|
+
labelProps: { label: l?.offlineUsageConsent ?? "Allow offline use" },
|
|
5427
|
+
caption: l?.offlineUsageConsentHint ?? "Required for scheduled and background runs."
|
|
5428
|
+
})
|
|
5429
|
+
]
|
|
5430
|
+
})
|
|
5431
|
+
});
|
|
5289
5432
|
};
|
|
5290
5433
|
//#endregion
|
|
5291
|
-
export {
|
|
5434
|
+
export { Mr as AboutTab, xa as AddOnCatalogModal, Ta as AddOnListItem, rr as ApiTab, jn as AppIdentity, Ia as ApplicationCredentials, dn as CATALOG_CLASS, m as CATALOG_TAB_ORDER, Wn as Card, Kn as CardGrid, Gn as CardRowRenderer, ga as Catalog, cn as CatalogContentNodeType, ln as CatalogContentPreviewType, n as CatalogDetailsTab, tn as CatalogLimitStatus, _a as CatalogLoadStatus, ba as CatalogPickerModal, nn as CatalogPricingUnit, on as CatalogSelectionMode, o as CatalogSortKey, an as CatalogViewMode, en as CodeLanguage, Rr as ContentTab, b as CredentialStatus, wr as CredentialsApiKeyOverlay, Nn as CredentialsBadge, e as CredentialsBadgeState, hr as CredentialsBanner, y as CredentialsBannerState, i as CredentialsLevel, yr as CredentialsManagementPanel, a as CredentialsUiState, Da as DeploymentSelectorField, Oa as DeploymentSelectorLayout, Pa as DeploymentSelectorPanel, rn as DeploymentSize, $ as DetailsConfirmationKind, jr as DetailsHeader, yi as DetailsPanel, wi as FavoriteCard, Di as Favorites, aa as Filter, sn as LimitRowLayout, Zr as LimitsTab, Yi as ListView, Qr as OverviewTab, $r as PricingTab, za as SigninInterruptDialog, fa as Toolbar, oi as ToolsTab, s as ToolsetAuthenticationType, Rn 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, un as useFavColumns, Ea as useListRemoveFocus, wn as useScrollVirtualizer };
|