@epam/ai-dial-catalog 1.4.0-dev.101 → 1.4.0-dev.106
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 +1 -1
- package/components/SigninInterruptDialog/SigninInterruptDialog.d.ts.map +1 -1
- package/components/SigninInterruptDialog/SigninInterruptRow/SigninInterruptRow.d.ts +2 -2
- package/components/SigninInterruptDialog/SigninInterruptRow/SigninInterruptRow.d.ts.map +1 -1
- package/index.css +2 -2
- package/index.js +651 -648
- package/models/signin-interrupt-dialog.d.ts +13 -11
- package/models/signin-interrupt-dialog.d.ts.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -3,43 +3,43 @@ import { CatalogEntityType as P, ConfirmationFooter as ee, ConfirmationView as F
|
|
|
3
3
|
import { Fragment as fe, memo as pe, startTransition as me, useCallback as H, useEffect as U, useId as he, useImperativeHandle as ge, useLayoutEffect as _e, useMemo as W, useRef as G, useState as K } from "react";
|
|
4
4
|
import { Badge as ve, BottomSheet as q, Breadcrumbs as ye, Button as be, ButtonAppearance as xe, ButtonDropdown as Se, ButtonVariant as Ce, CaptionText as we, CardShell as Te, Checkbox as Ee, ConfirmationPopupVariant as De, DIAL_ICON_SIZE as J, DIAL_KIT_ICON_STROKE as Y, DangerButton as Oe, Dropdown as ke, DropdownItemType as Ae, DropdownOverlayRole as je, ElementSize as Me, 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, LinkButton as We, LiveRegion as Ge, LiveRegionElement as Ke, LiveRegionPoliteness as qe, MenuItem as Je, MenuItemMark as Ye, NeutralButton as Xe, NeutralIconButton as Ze, NoDataContent as Qe, Popup as $e, PopupSize as et, PrimaryButton as tt, ProgressBar as nt, RadioGroup as rt, Search as it, SegmentedControl as at, SideDrawer as ot, Skeleton as st, SkeletonAvatarShape as ct, Spinner as lt, Tabs as ut, ToggleIconButton as dt, Tooltip as ft, 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, IconAlertCircleFilled as ht, IconAlertTriangleFilled as gt, IconArrowNarrowUp as _t, IconArrowRight as vt, IconBuildingCommunity as yt, IconChevronDown as bt, IconChevronLeft as xt, IconChevronRight as St, IconCircleCheckFilled as Ct, IconDots as wt, IconDownload as Tt, IconFilter as Et, IconFolder as Dt, IconKey as Ot, IconLayoutGrid as kt, IconLayoutList as At, IconLogin as jt, IconLogout as Mt, IconPencil as Nt, IconPlayerPlayFilled as Pt, IconPlus as Ft, IconShare as It, IconStar as Lt, IconStarFilled as Rt, IconTrash as zt, IconTrashX as Bt, IconUser as Vt, IconUserOff as Ht, IconWorldOff as Ut, IconWorldShare as Wt } from "@tabler/icons-react";
|
|
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, IconChevronDown as bt, IconChevronLeft as xt, IconChevronRight as St, IconCircleCheckFilled as Ct, IconDots as wt, IconDownload as Tt, IconFilter as Et, IconFolder as Dt, IconKey as Ot, IconLayoutGrid as kt, IconLayoutList as At, IconLogin as jt, IconLogout as Mt, IconPencil as Nt, IconPlayerPlayFilled as Pt, IconPlus as Ft, IconShare as It, IconStar as Lt, IconStarFilled as Rt, IconTrash as zt, IconTrashX as Bt, IconUser as Vt, IconUserOff as Ht, IconWorldOff as Ut, IconWorldShare as Wt, IconX as Gt } from "@tabler/icons-react";
|
|
7
|
+
import { PublishFooter as Kt, PublishPanel as qt, PublishPanelView as Jt, derivePublishState as Yt, usePublishFlow as Xt, usePublishFolderView as Zt } from "@epam/ai-dial-publish-panel";
|
|
8
|
+
import { GRID_SELECTION_COLUMN_ID as Qt, Grid as $t, GridAppearance as en, GridSelectionMode as tn } from "@epam/ai-dial-ui-kit/grid";
|
|
9
9
|
//#region src/types/code-language.ts
|
|
10
|
-
var
|
|
10
|
+
var nn = /* @__PURE__ */ function(e) {
|
|
11
11
|
return e.Python = "python", e.Curl = "curl", e.JavaScript = "javascript", e;
|
|
12
|
-
}({}), nn = /* @__PURE__ */ function(e) {
|
|
13
|
-
return e.RunningLow = "runningLow", e.LimitReached = "limitReached", e;
|
|
14
12
|
}({}), rn = /* @__PURE__ */ function(e) {
|
|
13
|
+
return e.RunningLow = "runningLow", e.LimitReached = "limitReached", e;
|
|
14
|
+
}({}), an = /* @__PURE__ */ function(e) {
|
|
15
15
|
return e.Token = "token", e.Character = "character", e;
|
|
16
16
|
}({}), $ = /* @__PURE__ */ function(e) {
|
|
17
17
|
return e.Delete = "delete", e.Logout = "logout", e.Unshare = "unshare", e.RevokeAccess = "revokeAccess", e.DeleteApiKey = "deleteApiKey", e.Unpublish = "unpublish", e;
|
|
18
|
-
}({}), an = /* @__PURE__ */ function(e) {
|
|
19
|
-
return e.SM = "sm", e.LG = "lg", e;
|
|
20
18
|
}({}), on = /* @__PURE__ */ function(e) {
|
|
21
|
-
return e.
|
|
19
|
+
return e.SM = "sm", e.LG = "lg", e;
|
|
22
20
|
}({}), sn = /* @__PURE__ */ function(e) {
|
|
23
|
-
return e.
|
|
21
|
+
return e.Grid = "grid", e.Cards = "cards", e;
|
|
24
22
|
}({}), cn = /* @__PURE__ */ function(e) {
|
|
25
|
-
return e.
|
|
23
|
+
return e.Single = "single", e.Multiple = "multiple", e;
|
|
26
24
|
}({}), ln = /* @__PURE__ */ function(e) {
|
|
27
|
-
return e.
|
|
25
|
+
return e.Inline = "inline", e.Stacked = "stacked", e;
|
|
28
26
|
}({}), un = /* @__PURE__ */ function(e) {
|
|
27
|
+
return e.File = "file", e.Folder = "folder", e;
|
|
28
|
+
}({}), dn = /* @__PURE__ */ function(e) {
|
|
29
29
|
return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
|
|
30
|
-
}({}),
|
|
30
|
+
}({}), fn = () => {
|
|
31
31
|
let [e, t] = K(() => window.innerWidth);
|
|
32
32
|
return U(() => {
|
|
33
33
|
let e = () => t(window.innerWidth);
|
|
34
34
|
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
35
35
|
}, []), e >= 1024 ? 4 : e >= 640 ? 2 : 1;
|
|
36
|
-
},
|
|
36
|
+
}, pn = {
|
|
37
37
|
root: "dial-catalog-root",
|
|
38
38
|
toolbar: "dial-catalog-toolbar",
|
|
39
39
|
card: "dial-catalog-card",
|
|
40
40
|
favoriteCard: "dial-catalog-favorite-card",
|
|
41
41
|
listView: "dial-catalog-list-view"
|
|
42
|
-
},
|
|
42
|
+
}, mn = "(prefers-reduced-motion: reduce)", hn = () => typeof window.matchMedia == "function" && window.matchMedia(mn).matches ? "auto" : "smooth", gn = ({ scrollBody: e, searchInputRef: t, listViewRef: n, isListView: r }) => {
|
|
43
43
|
let [i, a] = K(!1), o = G(0), s = G(r), c = G(null), l = H(() => {
|
|
44
44
|
if (!e) return;
|
|
45
45
|
let t = s.current ? o.current : 0;
|
|
@@ -63,7 +63,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
63
63
|
scrollToTop: H(() => {
|
|
64
64
|
e?.scrollTo({
|
|
65
65
|
top: 0,
|
|
66
|
-
behavior:
|
|
66
|
+
behavior: hn()
|
|
67
67
|
}), s.current && n.current?.scrollToTop(), t.current?.focus({ preventScroll: !0 });
|
|
68
68
|
}, [
|
|
69
69
|
e,
|
|
@@ -71,15 +71,15 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
71
71
|
t
|
|
72
72
|
])
|
|
73
73
|
};
|
|
74
|
-
},
|
|
74
|
+
}, _n = (e) => e.type === Ae.Divider || e.type === Ae.PlainText, vn = (e, t) => e.map((e) => _n(e) ? e : {
|
|
75
75
|
...e,
|
|
76
76
|
label: typeof e.label == "string" ? /* @__PURE__ */ Z(Be, {
|
|
77
77
|
text: e.label,
|
|
78
78
|
query: t,
|
|
79
79
|
maxLines: 1
|
|
80
80
|
}) : e.label,
|
|
81
|
-
children: e.children ?
|
|
82
|
-
}),
|
|
81
|
+
children: e.children ? vn(e.children, t) : void 0
|
|
82
|
+
}), yn = (e) => {
|
|
83
83
|
if (e == null || e.options.length === 0) return;
|
|
84
84
|
let [t] = e.options;
|
|
85
85
|
return e.options.length === 1 && e.search == null && !t.children?.length ? {
|
|
@@ -93,28 +93,28 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
93
93
|
options: e.options,
|
|
94
94
|
search: e.search
|
|
95
95
|
};
|
|
96
|
-
},
|
|
96
|
+
}, bn = (e) => ({
|
|
97
97
|
codeBlockCopyLabel: e?.copyCodeAriaLabel,
|
|
98
98
|
codeBlockCopiedLabel: e?.copiedCodeStatusLabel,
|
|
99
99
|
codeBlockDownloadLabel: e?.downloadCodeAriaLabel,
|
|
100
100
|
tableScrollRegionAriaLabel: e?.tableScrollRegionAriaLabel,
|
|
101
101
|
mathScrollRegionAriaLabel: e?.mathScrollRegionAriaLabel
|
|
102
|
-
}),
|
|
102
|
+
}), xn = (e) => {
|
|
103
103
|
let { colors: t } = e ?? {};
|
|
104
104
|
return B({
|
|
105
105
|
"--cat-bg": t?.background,
|
|
106
106
|
"--cat-heading-title-text": t?.headingTitleText
|
|
107
107
|
});
|
|
108
|
-
},
|
|
108
|
+
}, Sn = 1180, Cn = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, wn = (e) => {
|
|
109
109
|
if (!e || e === document.body) return document.documentElement;
|
|
110
110
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
111
|
-
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e :
|
|
112
|
-
},
|
|
111
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : wn(e.parentElement);
|
|
112
|
+
}, Tn = (e, t) => {
|
|
113
113
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect();
|
|
114
114
|
r.top < n.top ? e.scrollTop -= n.top - r.top : r.bottom > n.bottom && (e.scrollTop += r.bottom - n.bottom);
|
|
115
|
-
},
|
|
115
|
+
}, En = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
|
|
116
116
|
let r = G(null), [i, a] = K(() => {
|
|
117
|
-
let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= I ? 60 : 0)), i =
|
|
117
|
+
let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= I ? 60 : 0)), i = Cn((n ? r : Math.min(Sn, r)) - 64), a = Math.ceil(e / i);
|
|
118
118
|
return {
|
|
119
119
|
startRow: 0,
|
|
120
120
|
endRow: Math.min(a, 12),
|
|
@@ -124,10 +124,10 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
124
124
|
U(() => {
|
|
125
125
|
let n = r.current;
|
|
126
126
|
if (!n) return;
|
|
127
|
-
let i =
|
|
127
|
+
let i = wn(n.parentElement), o = () => {
|
|
128
128
|
let r = n.clientWidth, o = i.clientHeight;
|
|
129
129
|
if (r === 0 || o === 0) return;
|
|
130
|
-
let s = n.getBoundingClientRect(), c = i.getBoundingClientRect(), l =
|
|
130
|
+
let s = n.getBoundingClientRect(), c = i.getBoundingClientRect(), l = Cn(r), u = Math.ceil(e / l), d = Math.max(0, c.top - s.top), f = Math.max(0, Math.floor(d / 268) - t), p = Math.min(u, f + Math.ceil(o / 268) + 2 * t);
|
|
131
131
|
a((e) => e.startRow === f && e.endRow === p && e.columnCount === l ? e : {
|
|
132
132
|
startRow: f,
|
|
133
133
|
endRow: p,
|
|
@@ -149,7 +149,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
149
149
|
rowCount: o,
|
|
150
150
|
totalHeight: o * 268
|
|
151
151
|
};
|
|
152
|
-
},
|
|
152
|
+
}, Dn = {
|
|
153
153
|
skeletonColor: "var(--cg-skeleton-color, var(--bg-control-disable-primary, #dce0e8))",
|
|
154
154
|
card: "_card_1ucf8_2",
|
|
155
155
|
emptyStarHidden: "_emptyStarHidden_1ucf8_2",
|
|
@@ -158,7 +158,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
158
158
|
selectedCard: "_selectedCard_1ucf8_32",
|
|
159
159
|
footer: "_footer_1ucf8_40",
|
|
160
160
|
cardButton: "_cardButton_1ucf8_50"
|
|
161
|
-
},
|
|
161
|
+
}, On = ({ name: e, query: t = "", className: n }) => {
|
|
162
162
|
let { ref: r, isClamped: i } = de(e);
|
|
163
163
|
return /* @__PURE__ */ Z(ft, {
|
|
164
164
|
asChild: !0,
|
|
@@ -173,12 +173,12 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
173
173
|
})
|
|
174
174
|
})
|
|
175
175
|
});
|
|
176
|
-
},
|
|
176
|
+
}, kn = {
|
|
177
177
|
name: "_name_188yo_1",
|
|
178
178
|
lastUsed: "_lastUsed_188yo_5",
|
|
179
179
|
version: "_version_188yo_9"
|
|
180
|
-
},
|
|
181
|
-
let f = c?.colors, p = c?.typography ?? {}, m = a ===
|
|
180
|
+
}, An = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
|
|
181
|
+
let f = c?.colors, p = c?.typography ?? {}, m = a === on.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = !m && !!r, v = m && (!!r || i != null || l != null), y = V(p?.versionClassName ?? "dial-tiny-text", kn.version), b = B({
|
|
182
182
|
"--ai-name-text": f?.nameColor,
|
|
183
183
|
"--ai-last-used-text": f?.lastUsedColor,
|
|
184
184
|
"--ai-version-text": f?.versionColor
|
|
@@ -206,10 +206,10 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
206
206
|
className: "flex min-w-0 flex-col",
|
|
207
207
|
children: [/* @__PURE__ */ Q("div", {
|
|
208
208
|
className: "flex min-w-0 items-start gap-1 overflow-hidden",
|
|
209
|
-
children: [/* @__PURE__ */ Z(
|
|
209
|
+
children: [/* @__PURE__ */ Z(On, {
|
|
210
210
|
name: n,
|
|
211
211
|
query: o,
|
|
212
|
-
className: V(_ ? "max-w-max flex-[66_1_0%]" : "flex-1", p?.nameClassName ?? "dial-body-semi-text",
|
|
212
|
+
className: V(_ ? "max-w-max flex-[66_1_0%]" : "flex-1", p?.nameClassName ?? "dial-body-semi-text", kn.name)
|
|
213
213
|
}), _ && /* @__PURE__ */ Z(Ne, {
|
|
214
214
|
text: r,
|
|
215
215
|
className: V("max-w-max min-w-0 flex-[34_1_0%] tabular-nums", y)
|
|
@@ -222,7 +222,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
222
222
|
className: V("min-w-0 tabular-nums", y)
|
|
223
223
|
}),
|
|
224
224
|
i != null && /* @__PURE__ */ Z("span", {
|
|
225
|
-
className: V("shrink-0 tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text",
|
|
225
|
+
className: V("shrink-0 tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", kn.lastUsed),
|
|
226
226
|
children: i
|
|
227
227
|
}),
|
|
228
228
|
l != null && /* @__PURE__ */ Z("div", {
|
|
@@ -234,7 +234,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
234
234
|
})]
|
|
235
235
|
})]
|
|
236
236
|
});
|
|
237
|
-
},
|
|
237
|
+
}, jn = { icon: "_icon_a0p4u_1" }, Mn = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => {
|
|
238
238
|
if (e == null || C(e) == null) return null;
|
|
239
239
|
let i = B({
|
|
240
240
|
"--cat-cred-badge-halo": r?.halo,
|
|
@@ -250,15 +250,15 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
250
250
|
className: V("absolute -inset-e-1 -bottom-1 shrink-0", n),
|
|
251
251
|
children: /* @__PURE__ */ Z(gt, {
|
|
252
252
|
size: J.SM,
|
|
253
|
-
className:
|
|
253
|
+
className: jn.icon,
|
|
254
254
|
"aria-hidden": !0
|
|
255
255
|
})
|
|
256
256
|
})
|
|
257
257
|
});
|
|
258
|
-
},
|
|
258
|
+
}, Nn = {
|
|
259
259
|
starFilledIcon: "_starFilledIcon_po6zj_1",
|
|
260
260
|
starPop: "_starPop_po6zj_1"
|
|
261
|
-
},
|
|
261
|
+
}, Pn = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ Z(dt, {
|
|
262
262
|
size: n,
|
|
263
263
|
style: B({ "--cat-star-filled": a }),
|
|
264
264
|
className: i,
|
|
@@ -270,12 +270,12 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
270
270
|
}),
|
|
271
271
|
selectedIcon: /* @__PURE__ */ Z(Rt, {
|
|
272
272
|
size: J.SM,
|
|
273
|
-
className:
|
|
273
|
+
className: Nn.starFilledIcon,
|
|
274
274
|
"aria-hidden": !0
|
|
275
275
|
}),
|
|
276
276
|
"aria-label": r,
|
|
277
277
|
onClick: t
|
|
278
|
-
}),
|
|
278
|
+
}), Fn = { tag: "_tag_iqin5_3" }, In = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ Z(ve, {
|
|
279
279
|
label: e,
|
|
280
280
|
textClassName: n,
|
|
281
281
|
style: B({
|
|
@@ -283,12 +283,12 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
283
283
|
"--cat-card-tag-text": r?.text,
|
|
284
284
|
"--cat-card-tag-border": r?.border
|
|
285
285
|
}),
|
|
286
|
-
className: V(
|
|
287
|
-
}),
|
|
286
|
+
className: V(Fn.tag, t)
|
|
287
|
+
}), Ln = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ Z(In, {
|
|
288
288
|
label: e,
|
|
289
289
|
badgeClassName: t,
|
|
290
290
|
colors: n
|
|
291
|
-
}),
|
|
291
|
+
}), Rn = 8, zn = ({ topics: e, overflowAriaLabel: t, className: n }) => {
|
|
292
292
|
let r = G(null), i = G([]), a = G([]), o = G(null), s = G(Infinity), [c, l] = K(e.length), u = e.join("\0"), d = H(() => {
|
|
293
293
|
let t = r.current;
|
|
294
294
|
if (!t || e.length === 0) return;
|
|
@@ -300,8 +300,8 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
300
300
|
let u = o.current?.offsetWidth ?? 0, d = 0, f = 0;
|
|
301
301
|
for (let t = 0; t < e.length; t++) {
|
|
302
302
|
let r = e.length - (t + 1) > 0;
|
|
303
|
-
if (d + (t > 0 ?
|
|
304
|
-
d += (t > 0 ?
|
|
303
|
+
if (d + (t > 0 ? Rn : 0) + c[t] + (r ? Rn + u : 0) > n) break;
|
|
304
|
+
d += (t > 0 ? Rn : 0) + c[t], f = t + 1;
|
|
305
305
|
}
|
|
306
306
|
l(Math.min(f, s.current));
|
|
307
307
|
}, [e.length]);
|
|
@@ -332,24 +332,24 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
332
332
|
ref: (e) => {
|
|
333
333
|
i.current[t] = e;
|
|
334
334
|
},
|
|
335
|
-
children: /* @__PURE__ */ Z(
|
|
335
|
+
children: /* @__PURE__ */ Z(Ln, { label: e })
|
|
336
336
|
}, e)),
|
|
337
337
|
f > 0 && /* @__PURE__ */ Z(ft, {
|
|
338
338
|
tooltip: e.slice(c).join(", "),
|
|
339
339
|
children: /* @__PURE__ */ Z("span", {
|
|
340
340
|
"aria-label": t?.(f) ?? `and ${f} more topics`,
|
|
341
|
-
children: /* @__PURE__ */ Z(
|
|
341
|
+
children: /* @__PURE__ */ Z(Ln, { label: `+${f}` })
|
|
342
342
|
})
|
|
343
343
|
}),
|
|
344
344
|
/* @__PURE__ */ Z("div", {
|
|
345
345
|
ref: o,
|
|
346
346
|
"aria-hidden": !0,
|
|
347
347
|
className: "invisible absolute inset-s-0 top-0",
|
|
348
|
-
children: /* @__PURE__ */ Z(
|
|
348
|
+
children: /* @__PURE__ */ Z(Ln, { label: `+${e.length}` })
|
|
349
349
|
})
|
|
350
350
|
]
|
|
351
351
|
});
|
|
352
|
-
},
|
|
352
|
+
}, Bn = { img: () => null }, Vn = (e) => e.target instanceof Element && e.target.closest("a") !== null, Hn = (e) => !(e.target instanceof Node) || !e.currentTarget.contains(e.target), Un = ({ 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 }) => {
|
|
353
353
|
let [_, v] = K(r), y = T(e, g);
|
|
354
354
|
U(() => {
|
|
355
355
|
v(r);
|
|
@@ -371,7 +371,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
371
371
|
"--cg-footer-border": d?.colors?.footerBorder,
|
|
372
372
|
"--cg-focus-outline": d?.colors?.focusOutline
|
|
373
373
|
}), D = !m && e.isFeatured === !0, O = !m && a?.(e) !== !1, k = !m || e.folder.length > 0, A = n ? (t) => {
|
|
374
|
-
!
|
|
374
|
+
!Vn(t) && !Hn(t) && n(e);
|
|
375
375
|
} : void 0, j = H((t) => {
|
|
376
376
|
t.stopPropagation();
|
|
377
377
|
let n = !_;
|
|
@@ -385,11 +385,11 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
385
385
|
onClick: A,
|
|
386
386
|
"aria-label": e.name,
|
|
387
387
|
style: E,
|
|
388
|
-
className: V("box-border cursor-pointer gap-3 p-3",
|
|
388
|
+
className: V("box-border cursor-pointer gap-3 p-3", Dn.card, D ? Dn.featuredCard : void 0, l ? Dn.selectedCard : void 0, u, pn.card),
|
|
389
389
|
children: [
|
|
390
390
|
n && /* @__PURE__ */ Z("button", {
|
|
391
391
|
type: "button",
|
|
392
|
-
className: V("sr-only",
|
|
392
|
+
className: V("sr-only", Dn.cardButton),
|
|
393
393
|
children: e.name
|
|
394
394
|
}),
|
|
395
395
|
D && /* @__PURE__ */ Z("div", {
|
|
@@ -401,35 +401,35 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
401
401
|
style: d?.colors?.featuredChipStyle
|
|
402
402
|
})
|
|
403
403
|
}),
|
|
404
|
-
/* @__PURE__ */ Z(
|
|
404
|
+
/* @__PURE__ */ Z(An, {
|
|
405
405
|
icon: e.iconUrl,
|
|
406
406
|
type: y,
|
|
407
407
|
name: e.name,
|
|
408
408
|
version: e.version,
|
|
409
|
-
size:
|
|
409
|
+
size: on.SM,
|
|
410
410
|
query: t,
|
|
411
|
-
iconClassName:
|
|
412
|
-
iconOverlay: /* @__PURE__ */ Z(
|
|
411
|
+
iconClassName: Dn.cardIcon,
|
|
412
|
+
iconOverlay: /* @__PURE__ */ Z(Mn, {
|
|
413
413
|
credentials: e.credentials,
|
|
414
414
|
loggedOutLabel: f
|
|
415
415
|
})
|
|
416
416
|
}),
|
|
417
417
|
/* @__PURE__ */ Z("div", {
|
|
418
|
-
className: V("line-clamp-3 min-h-[3lh]", "wrap-break-word",
|
|
418
|
+
className: V("line-clamp-3 min-h-[3lh]", "wrap-break-word", Dn.description),
|
|
419
419
|
children: e.description && /* @__PURE__ */ Z(z, {
|
|
420
420
|
content: e.description,
|
|
421
421
|
classNames: x,
|
|
422
|
-
components:
|
|
422
|
+
components: Bn,
|
|
423
423
|
isRawHtmlEnabled: e.description.includes("<"),
|
|
424
424
|
...h
|
|
425
425
|
})
|
|
426
426
|
}),
|
|
427
427
|
/* @__PURE__ */ Z("div", {
|
|
428
428
|
className: "mt-auto flex items-center gap-2",
|
|
429
|
-
children: /* @__PURE__ */ Z(
|
|
429
|
+
children: /* @__PURE__ */ Z(zn, { topics: e.topics })
|
|
430
430
|
}),
|
|
431
431
|
k && /* @__PURE__ */ Z("div", {
|
|
432
|
-
className: V("pt-3", !m && V("border-t",
|
|
432
|
+
className: V("pt-3", !m && V("border-t", Dn.footer)),
|
|
433
433
|
children: /* @__PURE__ */ Q("div", {
|
|
434
434
|
className: "flex items-center gap-2",
|
|
435
435
|
children: [/* @__PURE__ */ Z("div", {
|
|
@@ -439,21 +439,21 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
439
439
|
labelClassName: C,
|
|
440
440
|
leafClassName: w
|
|
441
441
|
}) : /* @__PURE__ */ Z("span", {
|
|
442
|
-
className: V(C,
|
|
442
|
+
className: V(C, Dn.description),
|
|
443
443
|
children: p
|
|
444
444
|
})
|
|
445
|
-
}), O && /* @__PURE__ */ Z(
|
|
445
|
+
}), O && /* @__PURE__ */ Z(Pn, {
|
|
446
446
|
isStarred: _,
|
|
447
447
|
size: Me.Small,
|
|
448
448
|
onClick: j,
|
|
449
449
|
ariaLabel: _ ? c : s,
|
|
450
|
-
className: V(!_ &&
|
|
450
|
+
className: V(!_ && Dn.emptyStarHidden)
|
|
451
451
|
})]
|
|
452
452
|
})
|
|
453
453
|
})
|
|
454
454
|
]
|
|
455
455
|
});
|
|
456
|
-
},
|
|
456
|
+
}, Wn = pe(({ 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 }) => {
|
|
457
457
|
let _ = e * n, v = t.slice(_, _ + n), y = {
|
|
458
458
|
top: e * 268,
|
|
459
459
|
height: 268
|
|
@@ -465,7 +465,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
465
465
|
let n = v[t];
|
|
466
466
|
return /* @__PURE__ */ Z("div", {
|
|
467
467
|
className: "h-full min-w-0 flex-1",
|
|
468
|
-
children: n && /* @__PURE__ */ Z(
|
|
468
|
+
children: n && /* @__PURE__ */ Z(Un, {
|
|
469
469
|
item: n,
|
|
470
470
|
query: r,
|
|
471
471
|
initialIsStarred: n.isStarred,
|
|
@@ -487,8 +487,8 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
487
487
|
}, n?.id ?? `spacer-${t}`);
|
|
488
488
|
})
|
|
489
489
|
});
|
|
490
|
-
}),
|
|
491
|
-
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 } =
|
|
490
|
+
}), Gn = pe(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = Dn.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f, markdownLabels: p, activeTab: m }) => {
|
|
491
|
+
let h = a?.noResultsTitle ?? "No results", g = a?.featuredLabel ?? "Featured", _ = a?.addToFavoritesAriaLabel ?? "Add to favorites", v = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", y = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", b = a?.noFolderLabel ?? "No folder", { containerRef: x, startRow: S, endRow: C, columnCount: w, totalHeight: T } = En(e.length, { isFullWidth: d }), E = W(() => ({
|
|
492
492
|
items: e,
|
|
493
493
|
columnCount: w,
|
|
494
494
|
query: t,
|
|
@@ -530,7 +530,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
530
530
|
...B({ "--cg-skeleton-card-bg": l })
|
|
531
531
|
},
|
|
532
532
|
children: Array.from({ length: w * 3 }, (e, t) => /* @__PURE__ */ Z("div", {
|
|
533
|
-
className: V("rounded-md border p-3",
|
|
533
|
+
className: V("rounded-md border p-3", Dn.skeletonCard),
|
|
534
534
|
style: { height: 248 },
|
|
535
535
|
children: /* @__PURE__ */ Z(st, {
|
|
536
536
|
avatar: {
|
|
@@ -555,29 +555,29 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
555
555
|
style: { height: T },
|
|
556
556
|
children: Array.from({ length: C - S }, (e, t) => {
|
|
557
557
|
let n = S + t;
|
|
558
|
-
return /* @__PURE__ */ Z(
|
|
558
|
+
return /* @__PURE__ */ Z(Wn, {
|
|
559
559
|
rowIndex: n,
|
|
560
560
|
...E
|
|
561
561
|
}, n);
|
|
562
562
|
})
|
|
563
563
|
});
|
|
564
|
-
}),
|
|
564
|
+
}), Kn = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), qn = async () => void 0, Jn = [], Yn = [], Xn = [], Zn = [
|
|
565
565
|
"All shared configurations will be lost",
|
|
566
566
|
"Users who rely on it will lose access",
|
|
567
567
|
"Cannot be undone"
|
|
568
|
-
],
|
|
568
|
+
], Qn = [
|
|
569
569
|
"You will lose access to this item",
|
|
570
570
|
"Other people keep their access",
|
|
571
571
|
"You will need a new invitation to get it back"
|
|
572
|
-
],
|
|
572
|
+
], $n = [
|
|
573
573
|
"Everyone loses access to the published copy",
|
|
574
574
|
"Your own copy is not deleted",
|
|
575
575
|
"You can publish it again later"
|
|
576
|
-
],
|
|
576
|
+
], er = [
|
|
577
577
|
"Everyone you shared it with loses access",
|
|
578
578
|
"Existing share links stop working",
|
|
579
579
|
"You keep full access — nothing is deleted"
|
|
580
|
-
],
|
|
580
|
+
], tr = (e) => e === s.ApiKey ? "Toolset API keys" : "Toolset credentials", nr = (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?", rr = /* @__PURE__ */ new Set([$.Delete, $.Unshare]), ir = (e) => B({
|
|
581
581
|
"--cat-details-backdrop": e?.backdrop,
|
|
582
582
|
"--cat-details-bg": e?.background,
|
|
583
583
|
"--cat-details-border": e?.border,
|
|
@@ -614,26 +614,26 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
614
614
|
"--cat-cred-card-icon": e?.credentialsCardIcon,
|
|
615
615
|
"--cat-cred-card-title-text": e?.credentialsCardTitleText,
|
|
616
616
|
"--cat-cred-card-description-text": e?.credentialsCardDescriptionText
|
|
617
|
-
}),
|
|
617
|
+
}), ar = {
|
|
618
618
|
sunkenBox: "_sunkenBox_1lqi3_1",
|
|
619
619
|
raisedBox: "_raisedBox_1lqi3_5",
|
|
620
620
|
activeIcon: "_activeIcon_1lqi3_9"
|
|
621
|
-
},
|
|
621
|
+
}, or = /* @__PURE__ */ function(e) {
|
|
622
622
|
return e.Sunken = "sunken", e.Raised = "raised", e;
|
|
623
|
-
}({}),
|
|
624
|
-
sunken:
|
|
625
|
-
raised:
|
|
626
|
-
},
|
|
623
|
+
}({}), sr = {
|
|
624
|
+
sunken: ar.sunkenBox,
|
|
625
|
+
raised: ar.raisedBox
|
|
626
|
+
}, cr = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ Q("span", {
|
|
627
627
|
className: "relative inline-flex shrink-0",
|
|
628
628
|
children: [
|
|
629
629
|
/* @__PURE__ */ Z("span", {
|
|
630
|
-
className: V("flex size-8 items-center justify-center rounded-lg",
|
|
630
|
+
className: V("flex size-8 items-center justify-center rounded-lg", sr[n]),
|
|
631
631
|
children: e
|
|
632
632
|
}),
|
|
633
633
|
t && /* @__PURE__ */ Z(Ct, {
|
|
634
634
|
size: J.MD,
|
|
635
635
|
"aria-hidden": !0,
|
|
636
|
-
className: V("absolute -inset-e-2 -top-2",
|
|
636
|
+
className: V("absolute -inset-e-2 -top-2", ar.activeIcon)
|
|
637
637
|
}),
|
|
638
638
|
r != null && /* @__PURE__ */ Z(Ge, {
|
|
639
639
|
visuallyHidden: !0,
|
|
@@ -641,25 +641,25 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
641
641
|
children: r
|
|
642
642
|
})
|
|
643
643
|
]
|
|
644
|
-
}),
|
|
644
|
+
}), lr = {
|
|
645
645
|
card: "_card_tqnz7_1",
|
|
646
646
|
icon: "_icon_tqnz7_6",
|
|
647
647
|
title: "_title_tqnz7_10",
|
|
648
648
|
description: "_description_tqnz7_14"
|
|
649
|
-
},
|
|
650
|
-
className: V("flex items-center gap-3 rounded-xl p-3",
|
|
649
|
+
}, ur = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ Q("div", {
|
|
650
|
+
className: V("flex items-center gap-3 rounded-xl p-3", lr.card),
|
|
651
651
|
children: [/* @__PURE__ */ Z("span", {
|
|
652
|
-
className: V("shrink-0",
|
|
652
|
+
className: V("shrink-0", lr.icon, n != null && "mt-0.5"),
|
|
653
653
|
children: e
|
|
654
654
|
}), /* @__PURE__ */ Q("div", {
|
|
655
655
|
className: "flex min-w-0 flex-1 items-center justify-between gap-2",
|
|
656
656
|
children: [/* @__PURE__ */ Q("div", {
|
|
657
657
|
className: "flex min-w-0 flex-col gap-1",
|
|
658
658
|
children: [/* @__PURE__ */ Z("span", {
|
|
659
|
-
className: V(i,
|
|
659
|
+
className: V(i, lr.title),
|
|
660
660
|
children: t
|
|
661
661
|
}), n != null && /* @__PURE__ */ Z("span", {
|
|
662
|
-
className: V(a,
|
|
662
|
+
className: V(a, lr.description),
|
|
663
663
|
children: n
|
|
664
664
|
})]
|
|
665
665
|
}), r != null && /* @__PURE__ */ Z("div", {
|
|
@@ -667,55 +667,55 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
667
667
|
children: r
|
|
668
668
|
})]
|
|
669
669
|
})]
|
|
670
|
-
}),
|
|
670
|
+
}), dr = (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.", fr = (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.", pr = (e) => e === s.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", mr = (e) => e === s.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", hr = 20, gr = ({ state: e, authenticationType: t, texts: n }) => {
|
|
671
671
|
let r = /* @__PURE__ */ Z(yt, {
|
|
672
|
-
size:
|
|
672
|
+
size: hr,
|
|
673
673
|
"aria-hidden": !0,
|
|
674
674
|
stroke: Y
|
|
675
675
|
});
|
|
676
676
|
if (e === y.PersonalCredentialsActive) {
|
|
677
|
-
let e = (n?.personalCredentialsActiveBannerTitle ??
|
|
678
|
-
return /* @__PURE__ */ Z(
|
|
679
|
-
icon: /* @__PURE__ */ Z(
|
|
677
|
+
let e = (n?.personalCredentialsActiveBannerTitle ?? mr)(t);
|
|
678
|
+
return /* @__PURE__ */ Z(ur, {
|
|
679
|
+
icon: /* @__PURE__ */ Z(cr, {
|
|
680
680
|
icon: /* @__PURE__ */ Z(Vt, {
|
|
681
681
|
size: J.SM,
|
|
682
682
|
"aria-hidden": !0,
|
|
683
683
|
stroke: Y
|
|
684
684
|
}),
|
|
685
685
|
isActive: !0,
|
|
686
|
-
surface:
|
|
686
|
+
surface: or.Raised
|
|
687
687
|
}),
|
|
688
688
|
title: e
|
|
689
689
|
});
|
|
690
690
|
}
|
|
691
691
|
if (e === y.OrgCredentialsActive) {
|
|
692
|
-
let e = (n?.orgCredentialsActiveBannerTitle ??
|
|
693
|
-
return /* @__PURE__ */ Z(
|
|
694
|
-
icon: /* @__PURE__ */ Z(
|
|
692
|
+
let e = (n?.orgCredentialsActiveBannerTitle ?? pr)(t);
|
|
693
|
+
return /* @__PURE__ */ Z(ur, {
|
|
694
|
+
icon: /* @__PURE__ */ Z(cr, {
|
|
695
695
|
icon: /* @__PURE__ */ Z(yt, {
|
|
696
696
|
size: J.SM,
|
|
697
697
|
"aria-hidden": !0,
|
|
698
698
|
stroke: Y
|
|
699
699
|
}),
|
|
700
700
|
isActive: !0,
|
|
701
|
-
surface:
|
|
701
|
+
surface: or.Raised
|
|
702
702
|
}),
|
|
703
703
|
title: e
|
|
704
704
|
});
|
|
705
705
|
}
|
|
706
|
-
let i = (n?.orgFallbackBannerTitle ??
|
|
707
|
-
return /* @__PURE__ */ Z(
|
|
706
|
+
let i = (n?.orgFallbackBannerTitle ?? dr)(t), a = (n?.orgFallbackBannerDescription ?? fr)(t);
|
|
707
|
+
return /* @__PURE__ */ Z(ur, {
|
|
708
708
|
icon: r,
|
|
709
709
|
title: i,
|
|
710
710
|
description: a
|
|
711
711
|
});
|
|
712
|
-
},
|
|
712
|
+
}, _r = {
|
|
713
713
|
surface: "_surface_qltis_1",
|
|
714
714
|
description: "_description_qltis_5",
|
|
715
715
|
rowDescription: "_rowDescription_qltis_9",
|
|
716
716
|
errorText: "_errorText_qltis_13",
|
|
717
717
|
deleteAction: "_deleteAction_qltis_18"
|
|
718
|
-
},
|
|
718
|
+
}, vr = ({ 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 }) => {
|
|
719
719
|
let w = he(), [T, E] = K(), [D, O] = K(""), [k, A] = K(!1), [j, M] = K(!1), N = r === b.SignedIn, P = H((e) => {
|
|
720
720
|
O(e ?? ""), A(!1), E(void 0);
|
|
721
721
|
}, []), ee = async () => {
|
|
@@ -738,7 +738,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
738
738
|
"aria-label": e,
|
|
739
739
|
"aria-busy": j || x,
|
|
740
740
|
className: "flex min-w-0 items-start gap-3 rounded-xl p-3",
|
|
741
|
-
children: [/* @__PURE__ */ Z(
|
|
741
|
+
children: [/* @__PURE__ */ Z(cr, {
|
|
742
742
|
icon: n,
|
|
743
743
|
isActive: i,
|
|
744
744
|
statusLabel: i ? ne : re
|
|
@@ -753,7 +753,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
753
753
|
className: p,
|
|
754
754
|
children: e
|
|
755
755
|
}), /* @__PURE__ */ Z("span", {
|
|
756
|
-
className: V(m,
|
|
756
|
+
className: V(m, _r.rowDescription),
|
|
757
757
|
children: t
|
|
758
758
|
})]
|
|
759
759
|
}), a === s.OAuth && (N ? u && /* @__PURE__ */ Z(Oe, {
|
|
@@ -807,18 +807,18 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
807
807
|
/* @__PURE__ */ Z(we, {
|
|
808
808
|
id: z,
|
|
809
809
|
text: oe,
|
|
810
|
-
className: V(m,
|
|
810
|
+
className: V(m, _r.rowDescription)
|
|
811
811
|
}),
|
|
812
812
|
k && /* @__PURE__ */ Z(Pe, {
|
|
813
813
|
id: ae,
|
|
814
|
-
className: V(h,
|
|
814
|
+
className: V(h, _r.errorText),
|
|
815
815
|
text: f?.apiKeyRequiredErrorMessage ?? "API key is required."
|
|
816
816
|
})
|
|
817
817
|
]
|
|
818
818
|
}),
|
|
819
819
|
a === s.ApiKey && /* @__PURE__ */ Z(Ge, { children: N && /* @__PURE__ */ Z("div", {
|
|
820
820
|
className: "animate-fadeIn pt-1",
|
|
821
|
-
children: /* @__PURE__ */ Z(
|
|
821
|
+
children: /* @__PURE__ */ Z(ur, {
|
|
822
822
|
icon: /* @__PURE__ */ Z(Ot, {
|
|
823
823
|
size: J.SM,
|
|
824
824
|
"aria-hidden": !0,
|
|
@@ -839,23 +839,23 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
839
839
|
!N && S?.(j || y),
|
|
840
840
|
/* @__PURE__ */ Z(Pe, {
|
|
841
841
|
announce: qe.Assertive,
|
|
842
|
-
className: V(h,
|
|
842
|
+
className: V(h, _r.errorText),
|
|
843
843
|
text: T ?? ""
|
|
844
844
|
}),
|
|
845
845
|
C
|
|
846
846
|
]
|
|
847
847
|
})]
|
|
848
848
|
});
|
|
849
|
-
},
|
|
850
|
-
let c = V(
|
|
849
|
+
}, yr = (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.", br = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: a, detailsStyles: o, deleteActionClassName: s }) => {
|
|
850
|
+
let c = V(_r.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;
|
|
851
851
|
if (h == null) return null;
|
|
852
|
-
let g = (a?.credentialsManagementDescription ??
|
|
852
|
+
let g = (a?.credentialsManagementDescription ?? yr)(h.authenticationType), _ = h.userStatus === b.SignedIn, v = !_ && h.globalStatus === b.SignedIn;
|
|
853
853
|
return /* @__PURE__ */ Q("div", {
|
|
854
854
|
className: "flex flex-col",
|
|
855
855
|
children: [/* @__PURE__ */ Z("div", {
|
|
856
856
|
className: "px-6 py-4",
|
|
857
857
|
children: /* @__PURE__ */ Z("div", {
|
|
858
|
-
className: V("rounded-xl p-3",
|
|
858
|
+
className: V("rounded-xl p-3", _r.surface),
|
|
859
859
|
children: /* @__PURE__ */ Z(te, {
|
|
860
860
|
item: e,
|
|
861
861
|
iconSize: 40,
|
|
@@ -865,11 +865,11 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
865
865
|
}), /* @__PURE__ */ Q("div", {
|
|
866
866
|
className: "flex flex-col gap-5 px-6 py-4",
|
|
867
867
|
children: [/* @__PURE__ */ Z("span", {
|
|
868
|
-
className: V(l,
|
|
868
|
+
className: V(l, _r.description),
|
|
869
869
|
children: g
|
|
870
870
|
}), /* @__PURE__ */ Q("div", {
|
|
871
871
|
className: "flex flex-col",
|
|
872
|
-
children: [/* @__PURE__ */ Z(
|
|
872
|
+
children: [/* @__PURE__ */ Z(vr, {
|
|
873
873
|
label: a?.personalCredentialsLabel ?? "Personal credentials",
|
|
874
874
|
description: a?.personalCredentialsDescription ?? "These credentials apply only to your account.",
|
|
875
875
|
icon: /* @__PURE__ */ Z(Vt, {
|
|
@@ -895,7 +895,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
895
895
|
keyCardTitleClassName: p,
|
|
896
896
|
keyCardDescriptionClassName: m,
|
|
897
897
|
deleteActionClassName: c
|
|
898
|
-
}), /* @__PURE__ */ Z(
|
|
898
|
+
}), /* @__PURE__ */ Z(vr, {
|
|
899
899
|
label: a?.organizationCredentialsLabel ?? "Organization credentials",
|
|
900
900
|
description: a?.organizationCredentialsDescription ?? "Once added, these credentials will grant all users in your organization access to this toolset.",
|
|
901
901
|
icon: /* @__PURE__ */ Z(yt, {
|
|
@@ -925,7 +925,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
925
925
|
})]
|
|
926
926
|
})]
|
|
927
927
|
});
|
|
928
|
-
},
|
|
928
|
+
}, xr = {
|
|
929
929
|
skeletonColor: "var(--cat-details-skeleton, var(--bg-control-disable-primary, #dce0e8))",
|
|
930
930
|
backdrop: "_backdrop_1nv0c_7",
|
|
931
931
|
panel: "_panel_1nv0c_11",
|
|
@@ -933,9 +933,9 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
933
933
|
content: "_content_1nv0c_20",
|
|
934
934
|
tabsScroll: "_tabsScroll_1nv0c_26",
|
|
935
935
|
publishTitle: "_publishTitle_1nv0c_33"
|
|
936
|
-
},
|
|
936
|
+
}, Sr = ({ item: e, publishFlow: t, publishDependencies: n, publishFolderView: r, isPublishCredentialsEligible: i, publishExpandedPaths: a, onPublishExpandedPathsChange: o, publishLoadingPaths: s, getPublishDisabledReason: c, ruleSourceOptions: l, publishLabels: u, resolvePublishDependenciesLabels: d, resolvePublishApprovalLabels: f, publishVersionHistory: p }) => /* @__PURE__ */ Z("div", {
|
|
937
937
|
className: "p-4 desktop:p-[22px]",
|
|
938
|
-
children: /* @__PURE__ */ Z(
|
|
938
|
+
children: /* @__PURE__ */ Z(qt, {
|
|
939
939
|
resource: {
|
|
940
940
|
title: e.name,
|
|
941
941
|
version: e.version,
|
|
@@ -978,7 +978,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
978
978
|
dependencies: n,
|
|
979
979
|
versionHistory: p
|
|
980
980
|
})
|
|
981
|
-
}),
|
|
981
|
+
}), Cr = {
|
|
982
982
|
sectionHeading: "_sectionHeading_jnq93_1",
|
|
983
983
|
rowAlt: "_rowAlt_jnq93_5",
|
|
984
984
|
label: "_label_jnq93_9",
|
|
@@ -986,19 +986,19 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
986
986
|
valueTrue: "_valueTrue_jnq93_17",
|
|
987
987
|
valueFalse: "_valueFalse_jnq93_21",
|
|
988
988
|
valueText: "_valueText_jnq93_25"
|
|
989
|
-
},
|
|
989
|
+
}, wr = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(Ct, {
|
|
990
990
|
size: J.MD,
|
|
991
|
-
className: V(r,
|
|
991
|
+
className: V(r, Cr.checkIcon)
|
|
992
992
|
}), /* @__PURE__ */ Z("span", {
|
|
993
|
-
className: V(n,
|
|
993
|
+
className: V(n, Cr.valueTrue),
|
|
994
994
|
children: i
|
|
995
995
|
})] }) : e === !1 ? /* @__PURE__ */ Z("span", {
|
|
996
|
-
className: V(t,
|
|
996
|
+
className: V(t, Cr.valueFalse),
|
|
997
997
|
children: a
|
|
998
998
|
}) : /* @__PURE__ */ Z("span", {
|
|
999
|
-
className: V("min-w-0 wrap-break-word", t,
|
|
999
|
+
className: V("min-w-0 wrap-break-word", t, Cr.valueText),
|
|
1000
1000
|
children: e
|
|
1001
|
-
}),
|
|
1001
|
+
}), Tr = ({ 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 }) => {
|
|
1002
1002
|
let u = B({
|
|
1003
1003
|
"--tv-section-heading": l?.sectionHeading,
|
|
1004
1004
|
"--tv-row-alt-bg": l?.rowAlt,
|
|
@@ -1012,18 +1012,18 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1012
1012
|
className: "flex flex-col",
|
|
1013
1013
|
style: u,
|
|
1014
1014
|
children: t != null && t.length > 0 && /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
|
|
1015
|
-
className: V("mt-0 mb-3", o,
|
|
1015
|
+
className: V("mt-0 mb-3", o, Cr.sectionHeading),
|
|
1016
1016
|
children: e
|
|
1017
1017
|
}), /* @__PURE__ */ Z("ul", {
|
|
1018
1018
|
className: "m-0 list-none p-0",
|
|
1019
1019
|
children: t.map((e, t) => /* @__PURE__ */ Q("li", {
|
|
1020
|
-
className: V("flex items-center rounded px-3 py-2", t % 2 == 0 ?
|
|
1020
|
+
className: V("flex items-center rounded px-3 py-2", t % 2 == 0 ? Cr.rowAlt : void 0),
|
|
1021
1021
|
children: [/* @__PURE__ */ Z("span", {
|
|
1022
|
-
className: V(n,
|
|
1022
|
+
className: V(n, Cr.label, "w-2/5 shrink-0"),
|
|
1023
1023
|
children: e.label
|
|
1024
1024
|
}), /* @__PURE__ */ Z("div", {
|
|
1025
1025
|
className: "flex w-3/5 min-w-0 items-center gap-1",
|
|
1026
|
-
children: /* @__PURE__ */ Z(
|
|
1026
|
+
children: /* @__PURE__ */ Z(wr, {
|
|
1027
1027
|
value: e.value,
|
|
1028
1028
|
valueClassName: r,
|
|
1029
1029
|
valueTrueClassName: i,
|
|
@@ -1035,30 +1035,30 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1035
1035
|
}, e.label))
|
|
1036
1036
|
})] })
|
|
1037
1037
|
});
|
|
1038
|
-
},
|
|
1039
|
-
[
|
|
1040
|
-
[
|
|
1041
|
-
[
|
|
1042
|
-
},
|
|
1043
|
-
[
|
|
1044
|
-
[
|
|
1045
|
-
[
|
|
1046
|
-
},
|
|
1047
|
-
let [s, c] = K(e[0]?.language ??
|
|
1038
|
+
}, Er = { sectionHeading: "_sectionHeading_148lj_1" }, Dr = {
|
|
1039
|
+
[nn.Python]: "Python",
|
|
1040
|
+
[nn.Curl]: "cURL",
|
|
1041
|
+
[nn.JavaScript]: "JavaScript"
|
|
1042
|
+
}, Or = {
|
|
1043
|
+
[nn.Python]: "python",
|
|
1044
|
+
[nn.Curl]: "bash",
|
|
1045
|
+
[nn.JavaScript]: "javascript"
|
|
1046
|
+
}, kr = ({ 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" }) => {
|
|
1047
|
+
let [s, c] = K(e[0]?.language ?? nn.Python);
|
|
1048
1048
|
U(() => {
|
|
1049
|
-
c(e[0]?.language ??
|
|
1049
|
+
c(e[0]?.language ?? nn.Python);
|
|
1050
1050
|
}, [e]);
|
|
1051
1051
|
let l = W(() => e.map((e) => ({
|
|
1052
1052
|
key: e.language,
|
|
1053
|
-
label:
|
|
1053
|
+
label: Dr[e.language] ?? e.language,
|
|
1054
1054
|
onClick: () => c(e.language)
|
|
1055
1055
|
})), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
|
|
1056
1056
|
return /* @__PURE__ */ Q("section", { children: [t != null && /* @__PURE__ */ Z("p", {
|
|
1057
|
-
className: V("mt-0 mb-3", o,
|
|
1057
|
+
className: V("mt-0 mb-3", o, Er.sectionHeading),
|
|
1058
1058
|
children: t
|
|
1059
1059
|
}), /* @__PURE__ */ Z(R, {
|
|
1060
|
-
language:
|
|
1061
|
-
title:
|
|
1060
|
+
language: Or[s] ?? s,
|
|
1061
|
+
title: Dr[s] ?? s,
|
|
1062
1062
|
value: u,
|
|
1063
1063
|
copyLabel: n,
|
|
1064
1064
|
copiedLabel: r,
|
|
@@ -1074,7 +1074,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1074
1074
|
selectedKey: s
|
|
1075
1075
|
}) : void 0
|
|
1076
1076
|
})] });
|
|
1077
|
-
},
|
|
1077
|
+
}, Ar = ({ api: e, resourceSectionLabel: t = "Resource", endpointSectionLabel: n = "Endpoint", snippetSectionLabel: r = "Code snippet", modelIdLabel: i = "Model ID", endpointLabel: a = "Endpoint", requestExampleLabel: o = "Request example", responseSchemaLabel: s = "Response schema", copyAriaLabel: c = "Copy", copiedStatusLabel: l = "Copied!", labelClassName: u = "dial-small-semi-text", valueClassName: d = "dial-small-text", codeClassName: f = "dial-code-text", codeTitleClassName: p = "dial-tiny-semi-text", sectionClassName: m = "dial-caption-text" }) => {
|
|
1078
1078
|
let [h, g] = K(0), _ = W(() => e.endpoints ?? [], [e.endpoints]), v = _.length > 0, y = _[h] ?? null, b = W(() => _.map((e, t) => ({
|
|
1079
1079
|
key: e.url,
|
|
1080
1080
|
label: e.label,
|
|
@@ -1088,7 +1088,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1088
1088
|
return /* @__PURE__ */ Q("div", {
|
|
1089
1089
|
className: "flex flex-col gap-6",
|
|
1090
1090
|
children: [
|
|
1091
|
-
C && /* @__PURE__ */ Z(
|
|
1091
|
+
C && /* @__PURE__ */ Z(Tr, {
|
|
1092
1092
|
sectionLabel: t,
|
|
1093
1093
|
values: x,
|
|
1094
1094
|
labelClassName: u,
|
|
@@ -1107,7 +1107,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1107
1107
|
}),
|
|
1108
1108
|
v && /* @__PURE__ */ Q("section", { children: [
|
|
1109
1109
|
/* @__PURE__ */ Z("p", {
|
|
1110
|
-
className: V("mt-0 mb-3", m,
|
|
1110
|
+
className: V("mt-0 mb-3", m, Er.sectionHeading),
|
|
1111
1111
|
children: n
|
|
1112
1112
|
}),
|
|
1113
1113
|
y != null && /* @__PURE__ */ Z(R, {
|
|
@@ -1129,7 +1129,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1129
1129
|
}, h),
|
|
1130
1130
|
y?.snippets != null && y.snippets.length > 0 && /* @__PURE__ */ Z("div", {
|
|
1131
1131
|
className: "mt-4",
|
|
1132
|
-
children: /* @__PURE__ */ Z(
|
|
1132
|
+
children: /* @__PURE__ */ Z(kr, {
|
|
1133
1133
|
snippets: y.snippets,
|
|
1134
1134
|
copyAriaLabel: c,
|
|
1135
1135
|
copiedStatusLabel: l,
|
|
@@ -1139,7 +1139,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1139
1139
|
}, h)
|
|
1140
1140
|
})
|
|
1141
1141
|
] }),
|
|
1142
|
-
!v && T && /* @__PURE__ */ Z(
|
|
1142
|
+
!v && T && /* @__PURE__ */ Z(kr, {
|
|
1143
1143
|
snippets: e.snippets ?? [],
|
|
1144
1144
|
sectionLabel: r,
|
|
1145
1145
|
copyAriaLabel: c,
|
|
@@ -1149,7 +1149,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1149
1149
|
sectionClassName: m
|
|
1150
1150
|
}),
|
|
1151
1151
|
E && /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
|
|
1152
|
-
className: V("mt-0 mb-3", m,
|
|
1152
|
+
className: V("mt-0 mb-3", m, Er.sectionHeading),
|
|
1153
1153
|
children: o
|
|
1154
1154
|
}), /* @__PURE__ */ Z(R, {
|
|
1155
1155
|
language: "bash",
|
|
@@ -1161,7 +1161,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1161
1161
|
hasContentTopPadding: !1
|
|
1162
1162
|
})] }),
|
|
1163
1163
|
D && /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
|
|
1164
|
-
className: V("mt-0 mb-3", m,
|
|
1164
|
+
className: V("mt-0 mb-3", m, Er.sectionHeading),
|
|
1165
1165
|
children: s
|
|
1166
1166
|
}), /* @__PURE__ */ Z(R, {
|
|
1167
1167
|
language: "json",
|
|
@@ -1174,7 +1174,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1174
1174
|
})] })
|
|
1175
1175
|
]
|
|
1176
1176
|
});
|
|
1177
|
-
},
|
|
1177
|
+
}, jr = ({ topics: e, content: t, detailsStyles: n, markdownLabels: r }) => {
|
|
1178
1178
|
let i = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", a = n?.typography?.contentClassName ?? "dial-small-text";
|
|
1179
1179
|
return /* @__PURE__ */ Q("div", {
|
|
1180
1180
|
className: "flex flex-col gap-5",
|
|
@@ -1194,42 +1194,42 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1194
1194
|
...r
|
|
1195
1195
|
}), e && e.length > 0 && /* @__PURE__ */ Z("div", {
|
|
1196
1196
|
className: "flex flex-wrap gap-2",
|
|
1197
|
-
children: e.map((e) => /* @__PURE__ */ Z(
|
|
1197
|
+
children: e.map((e) => /* @__PURE__ */ Z(Ln, { label: e }, e))
|
|
1198
1198
|
})]
|
|
1199
1199
|
});
|
|
1200
|
-
},
|
|
1200
|
+
}, Mr = (e) => e.reduce((e, t) => t.type === un.File ? e + 1 : e + Mr(t.items), 0), Nr = (e) => {
|
|
1201
1201
|
let t = /* @__PURE__ */ new Set(), n = (e) => {
|
|
1202
|
-
for (let r of e) r.type ===
|
|
1202
|
+
for (let r of e) r.type === un.Folder && (t.add(r.id), n(r.items));
|
|
1203
1203
|
};
|
|
1204
1204
|
return n(e), t;
|
|
1205
|
-
},
|
|
1205
|
+
}, Pr = (e, t) => {
|
|
1206
1206
|
if (t != null) for (let n of e) {
|
|
1207
1207
|
if (n.id === t) return n.name;
|
|
1208
|
-
if (n.type ===
|
|
1209
|
-
let e =
|
|
1208
|
+
if (n.type === un.Folder) {
|
|
1209
|
+
let e = Pr(n.items, t);
|
|
1210
1210
|
if (e != null) return e;
|
|
1211
1211
|
}
|
|
1212
1212
|
}
|
|
1213
|
-
},
|
|
1213
|
+
}, Fr = {
|
|
1214
1214
|
divider: "_divider_1ubvw_1",
|
|
1215
1215
|
fileCount: "_fileCount_1ubvw_5",
|
|
1216
1216
|
fileSelector: "_fileSelector_1ubvw_9",
|
|
1217
1217
|
body: "_body_1ubvw_13"
|
|
1218
|
-
},
|
|
1218
|
+
}, Ir = {
|
|
1219
1219
|
focusedRow: "_focusedRow_jyeta_2",
|
|
1220
1220
|
selectedRow: "_selectedRow_jyeta_6",
|
|
1221
1221
|
row: "_row_jyeta_10"
|
|
1222
|
-
},
|
|
1222
|
+
}, Lr = (e, t, n = void 0) => e.flatMap((e) => {
|
|
1223
1223
|
let r = {
|
|
1224
1224
|
node: e,
|
|
1225
1225
|
parentId: n
|
|
1226
1226
|
};
|
|
1227
|
-
return e.type ===
|
|
1228
|
-
}),
|
|
1227
|
+
return e.type === un.File || !t.has(e.id) ? [r] : [r, ...Lr(e.items, t, e.id)];
|
|
1228
|
+
}), Rr = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text", colors: c }) => {
|
|
1229
1229
|
let l = B({
|
|
1230
1230
|
"--cat-content-tree-row-hover-bg": c?.rowHoverBackground,
|
|
1231
1231
|
"--cat-content-tree-row-selected-bg": c?.rowSelectedBackground
|
|
1232
|
-
}), u = W(() =>
|
|
1232
|
+
}), u = W(() => Lr(e, n), [e, n]), d = G({}), [f, p] = K(() => t ?? u[0]?.node.id);
|
|
1233
1233
|
U(() => {
|
|
1234
1234
|
f != null && d.current[f]?.focus();
|
|
1235
1235
|
}, []);
|
|
@@ -1253,20 +1253,20 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1253
1253
|
break;
|
|
1254
1254
|
}
|
|
1255
1255
|
case "ArrowRight":
|
|
1256
|
-
e.preventDefault(), o.node.type ===
|
|
1256
|
+
e.preventDefault(), o.node.type === un.Folder && !n.has(o.node.id) && r(o.node.id);
|
|
1257
1257
|
break;
|
|
1258
1258
|
case "ArrowLeft":
|
|
1259
|
-
e.preventDefault(), o.node.type ===
|
|
1259
|
+
e.preventDefault(), o.node.type === un.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && m(o.parentId);
|
|
1260
1260
|
break;
|
|
1261
1261
|
case "Enter":
|
|
1262
1262
|
case " ":
|
|
1263
|
-
e.preventDefault(), o.node.type ===
|
|
1263
|
+
e.preventDefault(), o.node.type === un.Folder ? r(o.node.id) : i(o.node.id);
|
|
1264
1264
|
break;
|
|
1265
1265
|
case "Escape": e.preventDefault(), a();
|
|
1266
1266
|
}
|
|
1267
|
-
}, g = (e) => V("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-hidden",
|
|
1267
|
+
}, g = (e) => V("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-hidden", Ir.row, e && Ir.focusedRow), _ = (e) => {
|
|
1268
1268
|
let a = e.id === f;
|
|
1269
|
-
if (e.type ===
|
|
1269
|
+
if (e.type === un.File) {
|
|
1270
1270
|
let n = e.id === t;
|
|
1271
1271
|
return /* @__PURE__ */ Z("div", {
|
|
1272
1272
|
ref: (t) => {
|
|
@@ -1275,7 +1275,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1275
1275
|
role: "treeitem",
|
|
1276
1276
|
"aria-selected": n,
|
|
1277
1277
|
tabIndex: a ? 0 : -1,
|
|
1278
|
-
className: V(g(a), n &&
|
|
1278
|
+
className: V(g(a), n && Ir.selectedRow),
|
|
1279
1279
|
onClick: () => i(e.id),
|
|
1280
1280
|
onFocus: () => p(e.id),
|
|
1281
1281
|
children: /* @__PURE__ */ Z("span", {
|
|
@@ -1326,8 +1326,8 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1326
1326
|
onKeyDown: h,
|
|
1327
1327
|
children: e.map((e) => _(e))
|
|
1328
1328
|
});
|
|
1329
|
-
},
|
|
1330
|
-
let y = _?.typography?.contentClassName ?? "dial-small-text", b = _?.typography?.contentHeadingClassName ?? "dial-small-semi-text", x = _?.typography?.contentFileCountClassName ?? "dial-tiny-text", S = he(), C = t != null && t !== "", w = n ?? [], T =
|
|
1329
|
+
}, zr = () => void 0, Br = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = zr, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = zr, fileSelectorAriaLabel: u = "Select file", fileCountLabel: d = (e) => `${e} files`, fileLoadingLabel: f = "Loading file", fileUnsupportedLabel: p = "Preview is not supported for this file", filePreview: m, filePreviewContent: h, renderFileTree: g, detailsStyles: _, markdownLabels: v }) => {
|
|
1330
|
+
let y = _?.typography?.contentClassName ?? "dial-small-text", b = _?.typography?.contentHeadingClassName ?? "dial-small-semi-text", x = _?.typography?.contentFileCountClassName ?? "dial-tiny-text", S = he(), C = t != null && t !== "", w = n ?? [], T = Mr(w) > 1, E = Pr(w, r) ?? "", D = {
|
|
1331
1331
|
nodes: w,
|
|
1332
1332
|
selectedFileId: r,
|
|
1333
1333
|
expandedFolderIds: o,
|
|
@@ -1339,10 +1339,10 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1339
1339
|
ariaLabel: u,
|
|
1340
1340
|
rowNameClassName: y
|
|
1341
1341
|
}, O = a ? {
|
|
1342
|
-
type:
|
|
1342
|
+
type: dn.Text,
|
|
1343
1343
|
text: ""
|
|
1344
1344
|
} : m ?? {
|
|
1345
|
-
type:
|
|
1345
|
+
type: dn.Markdown,
|
|
1346
1346
|
text: e
|
|
1347
1347
|
};
|
|
1348
1348
|
return /* @__PURE__ */ Q("div", {
|
|
@@ -1352,9 +1352,9 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1352
1352
|
C && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("p", {
|
|
1353
1353
|
className: V("m-0 shrink-0 px-6 wrap-break-word", y),
|
|
1354
1354
|
children: t
|
|
1355
|
-
}), /* @__PURE__ */ Z("div", { className: V("shrink-0",
|
|
1355
|
+
}), /* @__PURE__ */ Z("div", { className: V("shrink-0", Fr.divider) })] }),
|
|
1356
1356
|
T && /* @__PURE__ */ Q("div", {
|
|
1357
|
-
className: V("sticky top-0 z-10 flex min-h-10 shrink-0 items-center gap-3 px-6",
|
|
1357
|
+
className: V("sticky top-0 z-10 flex min-h-10 shrink-0 items-center gap-3 px-6", Fr.fileSelector),
|
|
1358
1358
|
children: [/* @__PURE__ */ Z(ke, {
|
|
1359
1359
|
open: c,
|
|
1360
1360
|
onOpenChange: l,
|
|
@@ -1363,7 +1363,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1363
1363
|
listClassName: "w-[280px] shadow-md",
|
|
1364
1364
|
placement: "bottom-start",
|
|
1365
1365
|
overlayRole: je.None,
|
|
1366
|
-
renderOverlay: () => g ? g(D) : /* @__PURE__ */ Z(
|
|
1366
|
+
renderOverlay: () => g ? g(D) : /* @__PURE__ */ Z(Rr, {
|
|
1367
1367
|
...D,
|
|
1368
1368
|
colors: {
|
|
1369
1369
|
rowHoverBackground: _?.colors?.contentFileTreeRowHoverBackground,
|
|
@@ -1378,14 +1378,14 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1378
1378
|
onClick: () => l(!c)
|
|
1379
1379
|
})
|
|
1380
1380
|
}), /* @__PURE__ */ Z("span", {
|
|
1381
|
-
className: V("shrink-0", x,
|
|
1382
|
-
children: d(
|
|
1381
|
+
className: V("shrink-0", x, Fr.fileCount),
|
|
1382
|
+
children: d(Mr(w))
|
|
1383
1383
|
})]
|
|
1384
1384
|
}),
|
|
1385
1385
|
/* @__PURE__ */ Q("div", {
|
|
1386
1386
|
role: T ? "region" : void 0,
|
|
1387
1387
|
"aria-labelledby": T ? S : void 0,
|
|
1388
|
-
className: V("min-w-0 shrink-0 px-6 text-start", h != null && "min-h-full", h == null && "wrap-break-word", h == null &&
|
|
1388
|
+
className: V("min-w-0 shrink-0 px-6 text-start", h != null && "min-h-full", h == null && "wrap-break-word", h == null && Fr.body, h == null && y),
|
|
1389
1389
|
children: [/* @__PURE__ */ Z(Ge, {
|
|
1390
1390
|
visuallyHidden: !0,
|
|
1391
1391
|
as: Ke.Span,
|
|
@@ -1393,24 +1393,24 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1393
1393
|
}), (() => {
|
|
1394
1394
|
if (h != null) return h;
|
|
1395
1395
|
switch (O.type) {
|
|
1396
|
-
case
|
|
1396
|
+
case dn.Markdown: return /* @__PURE__ */ Z(ae, {
|
|
1397
1397
|
content: O.text,
|
|
1398
1398
|
headingClassName: b,
|
|
1399
1399
|
...v
|
|
1400
1400
|
});
|
|
1401
|
-
case
|
|
1401
|
+
case dn.Text: return /* @__PURE__ */ Z(R, {
|
|
1402
1402
|
language: O.language ?? "",
|
|
1403
1403
|
value: O.text,
|
|
1404
1404
|
copyLabel: v?.codeBlockCopyLabel,
|
|
1405
1405
|
copiedLabel: v?.codeBlockCopiedLabel,
|
|
1406
1406
|
hideDownload: !0
|
|
1407
1407
|
});
|
|
1408
|
-
case
|
|
1408
|
+
case dn.Image: return /* @__PURE__ */ Z("img", {
|
|
1409
1409
|
src: O.url,
|
|
1410
1410
|
alt: E,
|
|
1411
1411
|
className: "max-w-full"
|
|
1412
1412
|
});
|
|
1413
|
-
case
|
|
1413
|
+
case dn.Unsupported: return /* @__PURE__ */ Z("p", {
|
|
1414
1414
|
className: "m-0",
|
|
1415
1415
|
children: p
|
|
1416
1416
|
});
|
|
@@ -1419,12 +1419,12 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1419
1419
|
})
|
|
1420
1420
|
]
|
|
1421
1421
|
});
|
|
1422
|
-
},
|
|
1422
|
+
}, Vr = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), Hr = /* @__PURE__ */ function(e) {
|
|
1423
1423
|
return e.Default = "default", e.Warning = "warning", e.Danger = "danger", e;
|
|
1424
|
-
}({}),
|
|
1425
|
-
let t =
|
|
1424
|
+
}({}), Ur = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), Wr = (e) => Number.isFinite(e) && e > 0 ? e : 1, Gr = ({ used: e, total: t, valueLabel: n }) => n ?? `${Vr.format(e)} / ${Vr.format(t)}`, Kr = ({ total: e }) => Number.isFinite(e) && e > 0, qr = (e) => e.isUnlimited !== !0 && Kr(e), Jr = (e) => Kr(e) ? Math.max(e.used, 0) / e.total : 0, Yr = (e) => {
|
|
1425
|
+
let t = Jr(e);
|
|
1426
1426
|
return t >= 1 ? "danger" : t >= .75 ? "warning" : "default";
|
|
1427
|
-
},
|
|
1427
|
+
}, Xr = {
|
|
1428
1428
|
sectionHeading: "_sectionHeading_1v3yh_2",
|
|
1429
1429
|
label: "_label_1v3yh_6",
|
|
1430
1430
|
valuePrimary: "_valuePrimary_1v3yh_10",
|
|
@@ -1435,90 +1435,90 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1435
1435
|
progressFillDanger: "_progressFillDanger_1v3yh_33",
|
|
1436
1436
|
resetLabel: "_resetLabel_1v3yh_38",
|
|
1437
1437
|
valueDanger: "_valueDanger_1v3yh_43"
|
|
1438
|
-
},
|
|
1439
|
-
let s =
|
|
1440
|
-
value:
|
|
1441
|
-
max:
|
|
1438
|
+
}, Zr = ({ row: e, layout: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => {
|
|
1439
|
+
let s = Gr(e), c = Yr(e), l = /* @__PURE__ */ Z(nt, {
|
|
1440
|
+
value: Ur(e),
|
|
1441
|
+
max: Wr(e.total),
|
|
1442
1442
|
size: Me.Small,
|
|
1443
|
-
className: V("h-1! w-full",
|
|
1443
|
+
className: V("h-1! w-full", Xr.progressTrack, c === Hr.Default && Xr.progressFillDefault, c === Hr.Warning && Xr.progressFillWarning, c === Hr.Danger && Xr.progressFillDanger),
|
|
1444
1444
|
"aria-label": e.label,
|
|
1445
1445
|
"aria-valuetext": e.ariaLabel ?? s
|
|
1446
1446
|
}), u = e.captionLabel != null && /* @__PURE__ */ Z("span", {
|
|
1447
|
-
className: V("wrap-break-word", r,
|
|
1447
|
+
className: V("wrap-break-word", r, Xr.label),
|
|
1448
1448
|
children: e.captionLabel
|
|
1449
1449
|
}), d = e.resetLabel != null && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("time", {
|
|
1450
1450
|
dateTime: e.resetIsoValue,
|
|
1451
1451
|
"aria-hidden": e.resetAriaLabel != null || void 0,
|
|
1452
|
-
className: V("wrap-break-word", r,
|
|
1452
|
+
className: V("wrap-break-word", r, Xr.resetLabel),
|
|
1453
1453
|
children: e.resetLabel
|
|
1454
1454
|
}), e.resetAriaLabel != null && /* @__PURE__ */ Z("span", {
|
|
1455
1455
|
className: "sr-only",
|
|
1456
1456
|
children: e.resetAriaLabel
|
|
1457
1457
|
})] });
|
|
1458
|
-
return t ===
|
|
1459
|
-
className: V("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0",
|
|
1458
|
+
return t === ln.Stacked ? /* @__PURE__ */ Q("li", {
|
|
1459
|
+
className: V("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0", Xr.divider),
|
|
1460
1460
|
children: [
|
|
1461
1461
|
/* @__PURE__ */ Q("div", {
|
|
1462
1462
|
className: "flex items-baseline justify-between gap-3",
|
|
1463
1463
|
children: [/* @__PURE__ */ Z("span", {
|
|
1464
|
-
className: V("min-w-0 wrap-break-word", n,
|
|
1464
|
+
className: V("min-w-0 wrap-break-word", n, Xr.valuePrimary),
|
|
1465
1465
|
children: e.label
|
|
1466
1466
|
}), /* @__PURE__ */ Z("span", {
|
|
1467
|
-
className: V("shrink-0", i, c ===
|
|
1467
|
+
className: V("shrink-0", i, c === Hr.Danger ? Xr.valueDanger : Xr.valuePrimary),
|
|
1468
1468
|
children: s
|
|
1469
1469
|
})]
|
|
1470
1470
|
}),
|
|
1471
1471
|
u,
|
|
1472
|
-
|
|
1473
|
-
className: V(o,
|
|
1472
|
+
qr(e) ? l : e.noteLabel != null && /* @__PURE__ */ Z("span", {
|
|
1473
|
+
className: V(o, Xr.label),
|
|
1474
1474
|
children: e.noteLabel
|
|
1475
1475
|
}),
|
|
1476
1476
|
d
|
|
1477
1477
|
]
|
|
1478
1478
|
}) : /* @__PURE__ */ Q("li", {
|
|
1479
|
-
className: V("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0",
|
|
1479
|
+
className: V("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", Xr.divider),
|
|
1480
1480
|
children: [/* @__PURE__ */ Q("div", {
|
|
1481
1481
|
className: "flex min-w-0 flex-1 flex-col",
|
|
1482
1482
|
children: [
|
|
1483
1483
|
/* @__PURE__ */ Z("span", {
|
|
1484
|
-
className: V("wrap-break-word", n,
|
|
1484
|
+
className: V("wrap-break-word", n, Xr.label),
|
|
1485
1485
|
children: e.label
|
|
1486
1486
|
}),
|
|
1487
1487
|
u,
|
|
1488
1488
|
d
|
|
1489
1489
|
]
|
|
1490
|
-
}),
|
|
1490
|
+
}), qr(e) ? /* @__PURE__ */ Q("div", {
|
|
1491
1491
|
className: "flex w-32 shrink-0 flex-col items-end gap-2",
|
|
1492
1492
|
children: [/* @__PURE__ */ Z("div", {
|
|
1493
1493
|
className: V("flex gap-1", i),
|
|
1494
1494
|
children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("span", {
|
|
1495
|
-
className:
|
|
1495
|
+
className: Xr.valuePrimary,
|
|
1496
1496
|
children: e.usedLabel
|
|
1497
1497
|
}), /* @__PURE__ */ Z("span", {
|
|
1498
|
-
className:
|
|
1498
|
+
className: Xr.label,
|
|
1499
1499
|
children: ` / ${e.totalLabel}`
|
|
1500
1500
|
})] }) : /* @__PURE__ */ Z("span", {
|
|
1501
|
-
className:
|
|
1501
|
+
className: Xr.label,
|
|
1502
1502
|
children: s
|
|
1503
1503
|
})
|
|
1504
1504
|
}), l]
|
|
1505
1505
|
}) : /* @__PURE__ */ Q("div", {
|
|
1506
1506
|
className: "flex shrink-0 flex-col items-end",
|
|
1507
1507
|
children: [/* @__PURE__ */ Z("span", {
|
|
1508
|
-
className: V(a,
|
|
1508
|
+
className: V(a, Xr.valuePrimary),
|
|
1509
1509
|
children: s
|
|
1510
1510
|
}), e.noteLabel != null && /* @__PURE__ */ Z("span", {
|
|
1511
|
-
className: V(o,
|
|
1511
|
+
className: V(o, Xr.label),
|
|
1512
1512
|
children: e.noteLabel
|
|
1513
1513
|
})]
|
|
1514
1514
|
})]
|
|
1515
1515
|
});
|
|
1516
|
-
},
|
|
1517
|
-
className: V("mt-0 mb-3", t,
|
|
1516
|
+
}, Qr = ({ group: e, sectionClassName: t, layout: n, labelClassName: r, captionClassName: i, valueClassName: a, noteValueClassName: o, noteClassName: s }) => /* @__PURE__ */ Q("section", { children: [/* @__PURE__ */ Z("p", {
|
|
1517
|
+
className: V("mt-0 mb-3", t, Xr.sectionHeading),
|
|
1518
1518
|
children: e.label
|
|
1519
1519
|
}), /* @__PURE__ */ Z("ul", {
|
|
1520
1520
|
className: "m-0 flex list-none flex-col p-0",
|
|
1521
|
-
children: e.rows.map((e) => /* @__PURE__ */ Z(
|
|
1521
|
+
children: e.rows.map((e) => /* @__PURE__ */ Z(Zr, {
|
|
1522
1522
|
row: e,
|
|
1523
1523
|
layout: n,
|
|
1524
1524
|
labelClassName: r,
|
|
@@ -1527,7 +1527,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1527
1527
|
noteValueClassName: o,
|
|
1528
1528
|
noteClassName: s
|
|
1529
1529
|
}, e.label))
|
|
1530
|
-
})] }),
|
|
1530
|
+
})] }), $r = ({ limits: e, layout: t = ln.Inline, labelClassName: n = "dial-small-semi-text", captionClassName: r = "dial-caption-text", valueClassName: i = "dial-tiny-text", noteValueClassName: a = "dial-tiny-semi-text", noteClassName: o = "dial-caption-text", sectionClassName: s = "dial-caption-text", footerClassName: c = "dial-caption-text", footerNote: l, colors: u }) => {
|
|
1531
1531
|
let d = e?.groups.filter((e) => e.rows.length > 0);
|
|
1532
1532
|
if (d == null || d.length === 0) return null;
|
|
1533
1533
|
let f = B({
|
|
@@ -1544,7 +1544,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1544
1544
|
return /* @__PURE__ */ Q("div", {
|
|
1545
1545
|
className: "flex flex-col gap-6",
|
|
1546
1546
|
style: f,
|
|
1547
|
-
children: [d.map((e) => /* @__PURE__ */ Z(
|
|
1547
|
+
children: [d.map((e) => /* @__PURE__ */ Z(Qr, {
|
|
1548
1548
|
group: e,
|
|
1549
1549
|
layout: t,
|
|
1550
1550
|
sectionClassName: s,
|
|
@@ -1554,17 +1554,17 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1554
1554
|
noteValueClassName: a,
|
|
1555
1555
|
noteClassName: o
|
|
1556
1556
|
}, e.label)), l != null && /* @__PURE__ */ Z("p", {
|
|
1557
|
-
className: V("m-0 border-t pt-4", c,
|
|
1557
|
+
className: V("m-0 border-t pt-4", c, Xr.divider, Xr.label),
|
|
1558
1558
|
children: l
|
|
1559
1559
|
})]
|
|
1560
1560
|
});
|
|
1561
|
-
},
|
|
1561
|
+
}, ei = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o, sectionContainerClassName: s = "px-6" }) => e ? /* @__PURE__ */ Z("div", {
|
|
1562
1562
|
className: "flex flex-col gap-4",
|
|
1563
1563
|
children: e.map((e, c) => /* @__PURE__ */ Q("div", {
|
|
1564
1564
|
className: "flex flex-col gap-4",
|
|
1565
|
-
children: [c > 0 && /* @__PURE__ */ Z("div", { className: V("shrink-0 border-b",
|
|
1565
|
+
children: [c > 0 && /* @__PURE__ */ Z("div", { className: V("shrink-0 border-b", xr.divider) }), /* @__PURE__ */ Z("div", {
|
|
1566
1566
|
className: s,
|
|
1567
|
-
children: /* @__PURE__ */ Z(
|
|
1567
|
+
children: /* @__PURE__ */ Z(Tr, {
|
|
1568
1568
|
sectionLabel: e.title,
|
|
1569
1569
|
values: e.specs,
|
|
1570
1570
|
sectionClassName: t,
|
|
@@ -1576,7 +1576,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1576
1576
|
})
|
|
1577
1577
|
})]
|
|
1578
1578
|
}, c))
|
|
1579
|
-
}) : null,
|
|
1579
|
+
}) : null, ti = ({ pricing: e, pricesSectionLabel: t = "Token pricing", characterPricesSectionLabel: n = "Character pricing", limitsSectionLabel: r = "Usage limits", labelClassName: i = "dial-small-semi-text", valueClassName: a = "dial-small-text", sectionClassName: o = "dial-caption-text" }) => {
|
|
1580
1580
|
if (e == null) return null;
|
|
1581
1581
|
let s = e.prices?.map((e) => ({
|
|
1582
1582
|
label: e.label,
|
|
@@ -1587,13 +1587,13 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1587
1587
|
}));
|
|
1588
1588
|
return /* @__PURE__ */ Q("div", {
|
|
1589
1589
|
className: "flex flex-col gap-4",
|
|
1590
|
-
children: [/* @__PURE__ */ Z(
|
|
1591
|
-
sectionLabel: e.unit ===
|
|
1590
|
+
children: [/* @__PURE__ */ Z(Tr, {
|
|
1591
|
+
sectionLabel: e.unit === an.Character ? n : t,
|
|
1592
1592
|
values: s ?? [],
|
|
1593
1593
|
labelClassName: i,
|
|
1594
1594
|
valueClassName: a,
|
|
1595
1595
|
sectionClassName: o
|
|
1596
|
-
}), /* @__PURE__ */ Z(
|
|
1596
|
+
}), /* @__PURE__ */ Z(Tr, {
|
|
1597
1597
|
sectionLabel: r,
|
|
1598
1598
|
values: c ?? [],
|
|
1599
1599
|
labelClassName: i,
|
|
@@ -1601,29 +1601,29 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1601
1601
|
sectionClassName: o
|
|
1602
1602
|
})]
|
|
1603
1603
|
});
|
|
1604
|
-
},
|
|
1604
|
+
}, ni = {
|
|
1605
1605
|
container: "_container_ddi3i_1",
|
|
1606
1606
|
header: "_header_ddi3i_5",
|
|
1607
1607
|
cell: "_cell_ddi3i_10",
|
|
1608
1608
|
evenRow: "_evenRow_ddi3i_17"
|
|
1609
|
-
},
|
|
1609
|
+
}, ri = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
|
|
1610
1610
|
let a = n ?? `repeat(${e.length}, 1fr)`;
|
|
1611
1611
|
return /* @__PURE__ */ Q("div", {
|
|
1612
|
-
className: V(
|
|
1612
|
+
className: V(ni.container, "grid overflow-hidden rounded-md"),
|
|
1613
1613
|
style: { gridTemplateColumns: a },
|
|
1614
1614
|
children: [e.map((e) => /* @__PURE__ */ Z("div", {
|
|
1615
|
-
className: V("px-2 py-1 text-start", r,
|
|
1615
|
+
className: V("px-2 py-1 text-start", r, ni.header),
|
|
1616
1616
|
children: e
|
|
1617
1617
|
}, e)), t.map((e, t) => /* @__PURE__ */ Z(fe, { children: e.map((e, n) => /* @__PURE__ */ Z("div", {
|
|
1618
|
-
className: V("px-2 py-1.5", i,
|
|
1618
|
+
className: V("px-2 py-1.5", i, ni.cell, t % 2 == 1 ? ni.evenRow : void 0),
|
|
1619
1619
|
children: e
|
|
1620
1620
|
}, n)) }, t))]
|
|
1621
1621
|
});
|
|
1622
|
-
},
|
|
1622
|
+
}, ii = {
|
|
1623
1623
|
divider: "_divider_vloer_1",
|
|
1624
1624
|
count: "_count_vloer_5",
|
|
1625
1625
|
description: "_description_vloer_9"
|
|
1626
|
-
},
|
|
1626
|
+
}, ai = {
|
|
1627
1627
|
inputName: "Name",
|
|
1628
1628
|
inputType: "Type",
|
|
1629
1629
|
inputRequired: "Required",
|
|
@@ -1633,13 +1633,13 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1633
1633
|
searchClearLabel: "Clear search",
|
|
1634
1634
|
toolCount: (e) => `${e} tools`,
|
|
1635
1635
|
noResults: "No results found"
|
|
1636
|
-
},
|
|
1636
|
+
}, oi = 6, si = (e, t) => e.name.toLowerCase().includes(t) || (e.description?.toLowerCase().includes(t) ?? !1), ci = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text", countClassName: a = "dial-tiny-text", codeClassName: o = "dial-tiny-code-text", labels: s }) => {
|
|
1637
1637
|
let c = {
|
|
1638
|
-
...
|
|
1638
|
+
...ai,
|
|
1639
1639
|
...s
|
|
1640
1640
|
}, [l, u] = K(""), d = l.trim(), f = W(() => {
|
|
1641
1641
|
let t = l.trim().toLowerCase(), n = e?.tools ?? [];
|
|
1642
|
-
return t === "" ? n : n.filter((e) =>
|
|
1642
|
+
return t === "" ? n : n.filter((e) => si(e, t));
|
|
1643
1643
|
}, [e, l]);
|
|
1644
1644
|
return e == null ? null : /* @__PURE__ */ Q("div", {
|
|
1645
1645
|
className: "flex flex-col",
|
|
@@ -1654,13 +1654,13 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1654
1654
|
onChange: (e) => u(e ?? "")
|
|
1655
1655
|
}), /* @__PURE__ */ Z(Ge, {
|
|
1656
1656
|
as: Ke.Span,
|
|
1657
|
-
className: V(a,
|
|
1657
|
+
className: V(a, ii.count),
|
|
1658
1658
|
children: c.toolCount(f.length)
|
|
1659
1659
|
})]
|
|
1660
1660
|
}),
|
|
1661
1661
|
f.length === 0 && l.trim() !== "" && /* @__PURE__ */ Z(oe, { label: c.noResults }),
|
|
1662
1662
|
f.map((e, a) => /* @__PURE__ */ Q("div", {
|
|
1663
|
-
className: V("flex flex-col gap-3 px-[22px] py-4", a > 0 ?
|
|
1663
|
+
className: V("flex flex-col gap-3 px-[22px] py-4", a > 0 ? ii.divider : void 0),
|
|
1664
1664
|
children: [
|
|
1665
1665
|
/* @__PURE__ */ Q("div", {
|
|
1666
1666
|
className: "flex flex-col gap-1",
|
|
@@ -1671,15 +1671,15 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1671
1671
|
query: d
|
|
1672
1672
|
})
|
|
1673
1673
|
}), e.description != null && /* @__PURE__ */ Z("p", {
|
|
1674
|
-
className: V("m-0", n,
|
|
1674
|
+
className: V("m-0", n, ii.description),
|
|
1675
1675
|
children: /* @__PURE__ */ Z(Be, {
|
|
1676
1676
|
text: e.description,
|
|
1677
1677
|
query: d,
|
|
1678
|
-
maxLines:
|
|
1678
|
+
maxLines: oi
|
|
1679
1679
|
})
|
|
1680
1680
|
})]
|
|
1681
1681
|
}),
|
|
1682
|
-
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ Z(
|
|
1682
|
+
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ Z(ri, {
|
|
1683
1683
|
columns: [
|
|
1684
1684
|
c.inputName,
|
|
1685
1685
|
c.inputType,
|
|
@@ -1700,7 +1700,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1700
1700
|
headingClassName: r,
|
|
1701
1701
|
cellClassName: i
|
|
1702
1702
|
}),
|
|
1703
|
-
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ Z(
|
|
1703
|
+
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ Z(ri, {
|
|
1704
1704
|
columns: [c.annotationKey, c.annotationValue],
|
|
1705
1705
|
rows: e.annotations.map((e) => [/* @__PURE__ */ Z("code", {
|
|
1706
1706
|
className: V("border-none bg-transparent p-0 text-inherit", o),
|
|
@@ -1713,8 +1713,8 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1713
1713
|
}, e.name))
|
|
1714
1714
|
]
|
|
1715
1715
|
});
|
|
1716
|
-
},
|
|
1717
|
-
let { overviewSectionClassName: d = "dial-caption-text", overviewLabelClassName: f = "dial-small-semi-text", overviewValueClassName: p = "dial-small-text", overviewValueTrueClassName: m = "dial-small-text" } = l?.typography ?? {}, { promptContent: h, selectedFileId: g, isContentFileLoading: _, expandedFolderIds: v, isFileSelectorOpen: y, setIsFileSelectorOpen: b, handleToggleFolder: x, handleSelectContentFile: S, resolveContentFilePreview: C, renderedContentFilePreview: w } = o, T = W(() =>
|
|
1716
|
+
}, li = ({ item: e, tabs: t, activeTab: r, onTabChange: i, isDetailsLoading: a = !1, contentFile: o, renderContentFileTree: s, texts: c, detailsStyles: l, limitsFooterNote: u }) => {
|
|
1717
|
+
let { overviewSectionClassName: d = "dial-caption-text", overviewLabelClassName: f = "dial-small-semi-text", overviewValueClassName: p = "dial-small-text", overviewValueTrueClassName: m = "dial-small-text" } = l?.typography ?? {}, { promptContent: h, selectedFileId: g, isContentFileLoading: _, expandedFolderIds: v, isFileSelectorOpen: y, setIsFileSelectorOpen: b, handleToggleFolder: x, handleSelectContentFile: S, resolveContentFilePreview: C, renderedContentFilePreview: w } = o, T = W(() => bn(c), [c]), E = W(() => {
|
|
1718
1718
|
let e = {};
|
|
1719
1719
|
return c?.toolsSearchPlaceholder != null && (e.searchPlaceholder = c.toolsSearchPlaceholder), c?.toolsSearchClearLabel != null && (e.searchClearLabel = c.toolsSearchClearLabel), c?.toolsCountLabel != null && (e.toolCount = c.toolsCountLabel), c?.toolsNoResultsLabel != null && (e.noResults = c.toolsNoResultsLabel), e;
|
|
1720
1720
|
}, [c]), D = c?.emptyTabLabel ?? "No data", O = !e.description?.trim() && (e.topics?.length ?? 0) === 0, A = !e.details?.overview?.sections?.length, j = /* @__PURE__ */ Z("div", {
|
|
@@ -1728,7 +1728,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1728
1728
|
tabs: t,
|
|
1729
1729
|
activeTabId: r,
|
|
1730
1730
|
onTabChange: i,
|
|
1731
|
-
className: V("min-w-0 flex-1 overflow-x-auto",
|
|
1731
|
+
className: V("min-w-0 flex-1 overflow-x-auto", xr.tabsScroll),
|
|
1732
1732
|
tabClassName: "shrink-0"
|
|
1733
1733
|
}),
|
|
1734
1734
|
/* @__PURE__ */ Z(Ge, {
|
|
@@ -1746,7 +1746,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1746
1746
|
width: "72px"
|
|
1747
1747
|
},
|
|
1748
1748
|
active: !0,
|
|
1749
|
-
color:
|
|
1749
|
+
color: xr.skeletonColor
|
|
1750
1750
|
})
|
|
1751
1751
|
})
|
|
1752
1752
|
]
|
|
@@ -1754,13 +1754,13 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1754
1754
|
className: V("min-h-0 min-w-0 flex-1", r === n.Content ? "overflow-hidden" : "overflow-y-auto", r !== n.Overview && r !== n.Content && "px-6"),
|
|
1755
1755
|
children: [
|
|
1756
1756
|
r === n.About && O ? j : null,
|
|
1757
|
-
r === n.About && !O && /* @__PURE__ */ Z(
|
|
1757
|
+
r === n.About && !O && /* @__PURE__ */ Z(jr, {
|
|
1758
1758
|
content: e.description,
|
|
1759
1759
|
topics: e.topics,
|
|
1760
1760
|
detailsStyles: l,
|
|
1761
1761
|
markdownLabels: T
|
|
1762
1762
|
}),
|
|
1763
|
-
r === n.Content && /* @__PURE__ */ Z(
|
|
1763
|
+
r === n.Content && /* @__PURE__ */ Z(Br, {
|
|
1764
1764
|
content: h?.content ?? "",
|
|
1765
1765
|
filePreview: C(),
|
|
1766
1766
|
filePreviewContent: w,
|
|
@@ -1782,7 +1782,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1782
1782
|
markdownLabels: T
|
|
1783
1783
|
}),
|
|
1784
1784
|
r === n.Overview && A ? j : null,
|
|
1785
|
-
r === n.Overview && !A && /* @__PURE__ */ Z(
|
|
1785
|
+
r === n.Overview && !A && /* @__PURE__ */ Z(ei, {
|
|
1786
1786
|
sections: e.details?.overview?.sections,
|
|
1787
1787
|
sectionClassName: d,
|
|
1788
1788
|
labelClassName: f,
|
|
@@ -1791,17 +1791,17 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1791
1791
|
yesLabel: M,
|
|
1792
1792
|
noLabel: N
|
|
1793
1793
|
}),
|
|
1794
|
-
r === n.Pricing && /* @__PURE__ */ Z(
|
|
1794
|
+
r === n.Pricing && /* @__PURE__ */ Z(ti, {
|
|
1795
1795
|
pricing: e.details?.pricing,
|
|
1796
1796
|
pricesSectionLabel: c?.pricingPricesSectionLabel,
|
|
1797
1797
|
characterPricesSectionLabel: c?.pricingCharacterPricesSectionLabel,
|
|
1798
1798
|
limitsSectionLabel: c?.pricingLimitsSectionLabel
|
|
1799
1799
|
}),
|
|
1800
|
-
r === n.Limits && /* @__PURE__ */ Z(
|
|
1800
|
+
r === n.Limits && /* @__PURE__ */ Z($r, {
|
|
1801
1801
|
limits: e.details?.limits,
|
|
1802
1802
|
footerNote: u
|
|
1803
1803
|
}),
|
|
1804
|
-
r === n.Api && k(e.details?.api) && /* @__PURE__ */ Z(
|
|
1804
|
+
r === n.Api && k(e.details?.api) && /* @__PURE__ */ Z(Ar, {
|
|
1805
1805
|
api: e.details?.api,
|
|
1806
1806
|
resourceSectionLabel: c?.apiResourceSectionLabel,
|
|
1807
1807
|
snippetSectionLabel: c?.apiSnippetSectionLabel,
|
|
@@ -1813,16 +1813,16 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1813
1813
|
copyAriaLabel: c?.copyCodeAriaLabel,
|
|
1814
1814
|
copiedStatusLabel: c?.copiedCodeStatusLabel
|
|
1815
1815
|
}),
|
|
1816
|
-
r === n.Tools && /* @__PURE__ */ Z(
|
|
1816
|
+
r === n.Tools && /* @__PURE__ */ Z(ci, {
|
|
1817
1817
|
tools: e.details?.tools,
|
|
1818
1818
|
labels: E
|
|
1819
1819
|
})
|
|
1820
1820
|
]
|
|
1821
1821
|
})] });
|
|
1822
|
-
},
|
|
1822
|
+
}, ui = /* @__PURE__ */ function(e) {
|
|
1823
1823
|
return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
|
|
1824
|
-
}({}),
|
|
1825
|
-
let O = t?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === P.Model || e.type === P.Agent || e.type === P.Prompt)), k = !n && !!i && o && (c?.(e) ?? !0), A = !n && !!i && !l && c?.(e) === !0, j = !n && !k && (u?.(e) ?? (e.type === P.Model || e.type === P.Toolset || e.type === P.Agent)), M = !n && !!d && !!e.isEditable, N = !n && e.isMyApp === !0 && (f?.(e) ?? !0), ee = p?.(e) ?? !0, F = m?.(e) ?? !1, I = e.credentials?.authenticationType ?? s.None, L = e.credentials != null && I !== s.None ? v(e.credentials) : void 0, te = !n && L != null && (!!h || !!g), ne = e.type === P.Toolset && te, re = !!_ && (y?.(e) ?? !0), ie = re && !ne && (b?.(e) ?? (e.type === P.Skill && !O)), R = re && !ie, z = !n && e.isMyApp, ae = !n && !!x && e.isMyApp !== !0 && e.sharedWithMe === !0 && (S?.(e) ?? !0), oe = !n && !!C && e.isMyApp === !0 && (!w || E ===
|
|
1824
|
+
}({}), di = (e) => e === s.ApiKey ? "Manage API keys" : "Manage credentials", fi = ({ item: e, texts: t, isReadonly: n = !1, isPrimaryActionVisible: r, onOpenUnpublish: i, hasPublishedFolders: o = !1, isUnpublishVisible: c, isPublishHistoryResolved: l = !0, isPublishVisible: u, onEdit: d, isShareVisible: f, isSharePrimary: p, isPublishPrimary: m, onLogin: h, onLogout: g, onDownload: _, isDownloadVisible: y, isDownloadPrimary: b, onUnshare: x, isUnshareVisible: S, onRevokeShare: C, onFetchRecipientsCount: w, isRevokeShareVisible: T, recipientsCountStatus: E, recipientsCount: D }) => {
|
|
1825
|
+
let O = t?.hasPrimaryAction !== !1 && (r?.(e) ?? (e.type === P.Model || e.type === P.Agent || e.type === P.Prompt)), k = !n && !!i && o && (c?.(e) ?? !0), A = !n && !!i && !l && c?.(e) === !0, j = !n && !k && (u?.(e) ?? (e.type === P.Model || e.type === P.Toolset || e.type === P.Agent)), M = !n && !!d && !!e.isEditable, N = !n && e.isMyApp === !0 && (f?.(e) ?? !0), ee = p?.(e) ?? !0, F = m?.(e) ?? !1, I = e.credentials?.authenticationType ?? s.None, L = e.credentials != null && I !== s.None ? v(e.credentials) : void 0, te = !n && L != null && (!!h || !!g), ne = e.type === P.Toolset && te, re = !!_ && (y?.(e) ?? !0), ie = re && !ne && (b?.(e) ?? (e.type === P.Skill && !O)), R = re && !ie, z = !n && e.isMyApp, ae = !n && !!x && e.isMyApp !== !0 && e.sharedWithMe === !0 && (S?.(e) ?? !0), oe = !n && !!C && e.isMyApp === !0 && (!w || E === ui.Unknown || E === ui.Resolved && (D ?? 0) > 0) && (T?.(e) ?? !0), se = c?.(e);
|
|
1826
1826
|
return {
|
|
1827
1827
|
shouldShowPrimaryAction: O,
|
|
1828
1828
|
shouldShowUnpublish: k,
|
|
@@ -1846,16 +1846,16 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1846
1846
|
isApiKeyConfigured: I === s.ApiKey && L === a.LogOut,
|
|
1847
1847
|
isOAuthLogoutState: I !== s.ApiKey && L !== a.ManageCredentials && L === a.LogOut
|
|
1848
1848
|
};
|
|
1849
|
-
},
|
|
1849
|
+
}, pi = {
|
|
1850
1850
|
name: "_name_rnlwb_1",
|
|
1851
1851
|
limitReached: "_limitReached_rnlwb_5",
|
|
1852
1852
|
limitRunningLow: "_limitRunningLow_rnlwb_10",
|
|
1853
1853
|
manageMenuIcon: "_manageMenuIcon_rnlwb_16"
|
|
1854
|
-
},
|
|
1854
|
+
}, mi = {
|
|
1855
1855
|
divider: "_divider_1lu6m_1",
|
|
1856
1856
|
hint: "_hint_1lu6m_5",
|
|
1857
1857
|
deleteAction: "_deleteAction_1lu6m_10"
|
|
1858
|
-
},
|
|
1858
|
+
}, hi = 16, gi = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, apiKeyHeader: i, onLogin: a, onLogout: o, onClose: s, texts: c, colors: l, typography: u, deleteActionClassName: d }) => {
|
|
1859
1859
|
let { credentialsOverlayTitleClassName: f = "dial-small-semi-text", credentialsHintClassName: p = "dial-caption-text", credentialsErrorClassName: m = "dial-caption-text" } = u ?? {}, [h, g] = K(""), [_, v] = K(!1), [y, x] = K(!1), [S, C] = K(!1), w = n === b.SignedIn, T = H((e) => {
|
|
1860
1860
|
g(e ?? ""), v(!1);
|
|
1861
1861
|
}, []), E = H(async () => {
|
|
@@ -1909,7 +1909,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1909
1909
|
children: O
|
|
1910
1910
|
})
|
|
1911
1911
|
}),
|
|
1912
|
-
/* @__PURE__ */ Z("div", { className: V("mx-4 h-px",
|
|
1912
|
+
/* @__PURE__ */ Z("div", { className: V("mx-4 h-px", mi.divider) }),
|
|
1913
1913
|
!w && /* @__PURE__ */ Q("div", {
|
|
1914
1914
|
className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
|
|
1915
1915
|
children: [
|
|
@@ -1930,7 +1930,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1930
1930
|
label: y ? void 0 : k,
|
|
1931
1931
|
"aria-label": y ? j : void 0,
|
|
1932
1932
|
iconBefore: y ? /* @__PURE__ */ Z(lt, {
|
|
1933
|
-
size:
|
|
1933
|
+
size: hi,
|
|
1934
1934
|
ariaLabel: j
|
|
1935
1935
|
}) : void 0,
|
|
1936
1936
|
onClick: E,
|
|
@@ -1940,7 +1940,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1940
1940
|
/* @__PURE__ */ Z(we, {
|
|
1941
1941
|
id: F,
|
|
1942
1942
|
text: L,
|
|
1943
|
-
className: V(p,
|
|
1943
|
+
className: V(p, mi.hint)
|
|
1944
1944
|
}),
|
|
1945
1945
|
_ && /* @__PURE__ */ Z(Pe, {
|
|
1946
1946
|
id: I,
|
|
@@ -1951,7 +1951,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1951
1951
|
}),
|
|
1952
1952
|
/* @__PURE__ */ Z(Ge, { children: w && /* @__PURE__ */ Z("div", {
|
|
1953
1953
|
className: "animate-fadeIn px-4 py-3.5",
|
|
1954
|
-
children: /* @__PURE__ */ Z(
|
|
1954
|
+
children: /* @__PURE__ */ Z(ur, {
|
|
1955
1955
|
icon: /* @__PURE__ */ Z(Ot, {
|
|
1956
1956
|
size: 20,
|
|
1957
1957
|
"aria-hidden": !0,
|
|
@@ -1963,10 +1963,10 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1963
1963
|
label: S ? void 0 : A,
|
|
1964
1964
|
"aria-label": S ? M : void 0,
|
|
1965
1965
|
iconBefore: S ? /* @__PURE__ */ Z(lt, {
|
|
1966
|
-
size:
|
|
1966
|
+
size: hi,
|
|
1967
1967
|
ariaLabel: M
|
|
1968
1968
|
}) : void 0,
|
|
1969
|
-
className: V(
|
|
1969
|
+
className: V(mi.deleteAction, d),
|
|
1970
1970
|
onClick: D,
|
|
1971
1971
|
disabled: S
|
|
1972
1972
|
})
|
|
@@ -1974,7 +1974,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1974
1974
|
}) })
|
|
1975
1975
|
]
|
|
1976
1976
|
});
|
|
1977
|
-
},
|
|
1977
|
+
}, _i = ({ item: e, buttonComponent: t, authenticationType: n, credentialsUiState: r, onLogin: o, onLogout: c, onOpenCredentialsManagement: l, onRequestLogout: u, texts: f, detailsStyles: p }) => {
|
|
1978
1978
|
let [m, h] = K(!1), g = n === s.ApiKey && r !== a.ManageCredentials, _ = e.credentials == null ? i.User : d(e.credentials), v = H(() => {
|
|
1979
1979
|
r === a.ManageCredentials ? l?.() : g ? h((e) => !e) : r === a.LogOut ? u?.() : e.credentials != null && o?.(e, { level: d(e.credentials) });
|
|
1980
1980
|
}, [
|
|
@@ -1984,7 +1984,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
1984
1984
|
o,
|
|
1985
1985
|
l,
|
|
1986
1986
|
u
|
|
1987
|
-
]), y = r === a.ManageCredentials ? (f?.manageCredentialsActionLabel ??
|
|
1987
|
+
]), y = r === a.ManageCredentials ? (f?.manageCredentialsActionLabel ?? di)(n) : n === s.ApiKey ? r === a.LogOut ? f?.changeApiKeyActionLabel ?? "Change API key" : f?.apiKeyActionLabel ?? "API key" : r === a.LogOut ? f?.logoutActionLabel ?? "Log out" : f?.loginActionLabel ?? "Log in", b = r === a.ManageCredentials || n === s.ApiKey ? /* @__PURE__ */ Z(Ot, {
|
|
1988
1988
|
size: J.MD,
|
|
1989
1989
|
stroke: Y
|
|
1990
1990
|
}) : r === a.LogOut ? /* @__PURE__ */ Z(Mt, {
|
|
@@ -2016,7 +2016,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2016
2016
|
outsideClosable: !0,
|
|
2017
2017
|
overlayRole: je.Dialog,
|
|
2018
2018
|
overlayAriaLabel: f?.personalApiKeyPanelTitle ?? "Personal API key",
|
|
2019
|
-
renderOverlay: () => /* @__PURE__ */ Z(
|
|
2019
|
+
renderOverlay: () => /* @__PURE__ */ Z(gi, {
|
|
2020
2020
|
item: e,
|
|
2021
2021
|
level: _,
|
|
2022
2022
|
status: _ === i.User ? e.credentials?.userStatus : e.credentials?.globalStatus,
|
|
@@ -2031,7 +2031,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2031
2031
|
}),
|
|
2032
2032
|
children: S
|
|
2033
2033
|
});
|
|
2034
|
-
},
|
|
2034
|
+
}, vi = (e) => e.isMyApp === !0, yi = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
|
|
2035
2035
|
let [a, o] = K(!1), s = H(() => {
|
|
2036
2036
|
n ? o((e) => !e) : t?.(e);
|
|
2037
2037
|
}, [
|
|
@@ -2039,7 +2039,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2039
2039
|
t,
|
|
2040
2040
|
n
|
|
2041
2041
|
]);
|
|
2042
|
-
if (!
|
|
2042
|
+
if (!vi(e) || r && !r(e)) return null;
|
|
2043
2043
|
let c = /* @__PURE__ */ Z(Xe, {
|
|
2044
2044
|
label: i,
|
|
2045
2045
|
iconBefore: /* @__PURE__ */ Z(It, {
|
|
@@ -2065,7 +2065,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2065
2065
|
renderOverlay: () => n(e, () => o(!1)),
|
|
2066
2066
|
children: c
|
|
2067
2067
|
}) : c;
|
|
2068
|
-
},
|
|
2068
|
+
}, bi = ({ item: e, promotedManageAction: t, manageItems: n, onManageOpenChange: r, onManageTriggerIntent: i, isShareInActionRow: a, shouldShowShareAction: o, shareOverlay: s, isShareOverlayOpen: c, onShareOverlayOpenChange: l, onCloseShareOverlay: u, onShare: d, isShareVisible: f, texts: p }) => t ? (({ key: t, label: n, Icon: r, danger: i, onClick: a }) => t === "share" ? /* @__PURE__ */ Z(yi, {
|
|
2069
2069
|
item: e,
|
|
2070
2070
|
onShare: d,
|
|
2071
2071
|
shareOverlay: s,
|
|
@@ -2108,38 +2108,38 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2108
2108
|
renderOverlay: () => s(e, u),
|
|
2109
2109
|
children: t
|
|
2110
2110
|
});
|
|
2111
|
-
})() : null,
|
|
2111
|
+
})() : null, xi = ({ visibility: e, texts: t, detailsStyles: n, recipientsCount: r, isManageMenuOpen: i, handleShare: a, handleEdit: o, handleDownload: s, handleOpenPublish: c, handleOpenUnpublish: l, handleDelete: u, handleRevokeShare: d, handleUnshare: f }) => {
|
|
2112
2112
|
let { isShareInActionRow: p, shouldShowShareAction: m, shouldShowEditAction: h, shouldShowDownloadAction: g, isPublishInActionRow: _, shouldShowPublish: v, shouldShowUnpublish: y, shouldShowDeleteAction: b, shouldShowRevokeShareAction: x, shouldShowUnshareAction: S, mayGainUnpublishEntry: C, mayGainRevokeShareEntry: w } = e, T = W(() => {
|
|
2113
2113
|
let e = [];
|
|
2114
2114
|
if (!p && m && e.push({
|
|
2115
2115
|
key: "share",
|
|
2116
2116
|
label: t?.shareLabel ?? "Share",
|
|
2117
2117
|
Icon: It,
|
|
2118
|
-
iconClassName:
|
|
2118
|
+
iconClassName: pi.manageMenuIcon,
|
|
2119
2119
|
onClick: a
|
|
2120
2120
|
}), h && e.push({
|
|
2121
2121
|
key: "edit",
|
|
2122
2122
|
label: t?.editActionLabel ?? "Edit",
|
|
2123
2123
|
Icon: Nt,
|
|
2124
|
-
iconClassName:
|
|
2124
|
+
iconClassName: pi.manageMenuIcon,
|
|
2125
2125
|
onClick: o
|
|
2126
2126
|
}), g && e.push({
|
|
2127
2127
|
key: "download",
|
|
2128
2128
|
label: t?.downloadActionLabel ?? "Download",
|
|
2129
2129
|
Icon: Tt,
|
|
2130
|
-
iconClassName:
|
|
2130
|
+
iconClassName: pi.manageMenuIcon,
|
|
2131
2131
|
onClick: s
|
|
2132
2132
|
}), !_ && v && e.push({
|
|
2133
2133
|
key: "publish",
|
|
2134
2134
|
label: t?.publishLabel ?? "Publish",
|
|
2135
2135
|
Icon: Wt,
|
|
2136
|
-
iconClassName:
|
|
2136
|
+
iconClassName: pi.manageMenuIcon,
|
|
2137
2137
|
onClick: c
|
|
2138
2138
|
}), !_ && y && e.push({
|
|
2139
2139
|
key: "unpublish",
|
|
2140
2140
|
label: t?.unpublishLabel ?? "Unpublish",
|
|
2141
2141
|
Icon: Ut,
|
|
2142
|
-
iconClassName:
|
|
2142
|
+
iconClassName: pi.manageMenuIcon,
|
|
2143
2143
|
onClick: l
|
|
2144
2144
|
}), x) {
|
|
2145
2145
|
let n = t?.revokeShareLabel ?? "Revoke access", i = t?.revokeShareLabelWithCount ?? ((e) => `${n} (${e})`);
|
|
@@ -2201,24 +2201,24 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2201
2201
|
})), [T, D]),
|
|
2202
2202
|
promotedManageAction: T.length === 1 && !i && !C && !w ? T[0] : void 0
|
|
2203
2203
|
};
|
|
2204
|
-
},
|
|
2205
|
-
let [i, a] = K(
|
|
2204
|
+
}, Si = ({ item: e, onFetchRecipientsCount: t, onRevokeShare: n, isRevokeShareVisible: r }) => {
|
|
2205
|
+
let [i, a] = K(ui.Idle), [o, s] = K(void 0), c = G(null);
|
|
2206
2206
|
return U(() => {
|
|
2207
|
-
c.current = null, a(
|
|
2207
|
+
c.current = null, a(ui.Idle), s(void 0);
|
|
2208
2208
|
}, [e.id]), {
|
|
2209
2209
|
recipientsCountStatus: i,
|
|
2210
2210
|
recipientsCount: o,
|
|
2211
2211
|
requestRecipientsCount: H(() => {
|
|
2212
2212
|
if (!t || c.current === e.id || !n || e.isMyApp !== !0 || r?.(e) === !1) return;
|
|
2213
2213
|
let i = e.id;
|
|
2214
|
-
c.current = i, a(
|
|
2214
|
+
c.current = i, a(ui.Loading), (async () => {
|
|
2215
2215
|
try {
|
|
2216
2216
|
let n = await t(e);
|
|
2217
2217
|
if (c.current !== i) return;
|
|
2218
|
-
s(n), a(n == null ?
|
|
2218
|
+
s(n), a(n == null ? ui.Unknown : ui.Resolved);
|
|
2219
2219
|
} catch {
|
|
2220
2220
|
if (c.current !== i) return;
|
|
2221
|
-
s(void 0), a(
|
|
2221
|
+
s(void 0), a(ui.Unknown);
|
|
2222
2222
|
}
|
|
2223
2223
|
})();
|
|
2224
2224
|
}, [
|
|
@@ -2228,17 +2228,17 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2228
2228
|
r
|
|
2229
2229
|
])
|
|
2230
2230
|
};
|
|
2231
|
-
},
|
|
2232
|
-
[
|
|
2233
|
-
[
|
|
2234
|
-
},
|
|
2235
|
-
className: V("flex h-[24px] items-center justify-center gap-1 rounded-2xl px-2 whitespace-nowrap", n,
|
|
2231
|
+
}, Ci = {
|
|
2232
|
+
[rn.LimitReached]: pi.limitReached,
|
|
2233
|
+
[rn.RunningLow]: pi.limitRunningLow
|
|
2234
|
+
}, wi = ({ status: e, label: t, className: n }) => /* @__PURE__ */ Z("div", {
|
|
2235
|
+
className: V("flex h-[24px] items-center justify-center gap-1 rounded-2xl px-2 whitespace-nowrap", n, Ci[e]),
|
|
2236
2236
|
children: t
|
|
2237
|
-
}),
|
|
2238
|
-
let { nameClassName: M = "dial-body-semi-text", folderLabelClassName: N = "dial-tiny-text", folderLeafClassName: P = "dial-tiny-semi-text", limitStatusBadgeClassName: ee = "dial-caption-lead-semi-text" } = S?.typography ?? {}, F = e.details?.limits?.status, I = F == null ? void 0 : /* @__PURE__ */ Z(
|
|
2237
|
+
}), Ti = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: i, isShareVisible: a, isSharePrimary: o, onEdit: s, onDownload: c, isDownloadVisible: l, isDownloadPrimary: u, onDelete: d, onUnshare: f, isUnshareVisible: p, onRevokeShare: m, onFetchRecipientsCount: h, isRevokeShareVisible: g, onLogin: _, onLogout: v, onOpenCredentialsManagement: y, onRequestLogout: b, texts: x, detailsStyles: S, isPublishVisible: C, isPublishPrimary: w, onOpenPublish: T, isUnpublishVisible: E, hasPublishedFolders: D = !1, isPublishHistoryResolved: O = !0, onRequestPublishHistory: k, onOpenUnpublish: A, isReadonly: j = !1 }) => {
|
|
2238
|
+
let { nameClassName: M = "dial-body-semi-text", folderLabelClassName: N = "dial-tiny-text", folderLeafClassName: P = "dial-tiny-semi-text", limitStatusBadgeClassName: ee = "dial-caption-lead-semi-text" } = S?.typography ?? {}, F = e.details?.limits?.status, I = F == null ? void 0 : /* @__PURE__ */ Z(wi, {
|
|
2239
2239
|
status: F,
|
|
2240
2240
|
className: ee,
|
|
2241
|
-
label: F ===
|
|
2241
|
+
label: F === rn.LimitReached ? x?.limitReachedLabel ?? "Limit reached" : x?.limitRunningLowLabel ?? "Running low"
|
|
2242
2242
|
}), L = H(() => {
|
|
2243
2243
|
t?.(e);
|
|
2244
2244
|
}, [e, t]), ne = H(() => {
|
|
@@ -2283,7 +2283,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2283
2283
|
d?.(e);
|
|
2284
2284
|
}, [e, d]), fe = H(() => {
|
|
2285
2285
|
m?.(e);
|
|
2286
|
-
}, [e, m]), { recipientsCountStatus: pe, recipientsCount: me, requestRecipientsCount: he } =
|
|
2286
|
+
}, [e, m]), { recipientsCountStatus: pe, recipientsCount: me, requestRecipientsCount: he } = Si({
|
|
2287
2287
|
item: e,
|
|
2288
2288
|
onFetchRecipientsCount: h,
|
|
2289
2289
|
onRevokeShare: m,
|
|
@@ -2298,7 +2298,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2298
2298
|
he(), k?.();
|
|
2299
2299
|
}, [he, k]), ve = H(() => {
|
|
2300
2300
|
k?.();
|
|
2301
|
-
}, [k]), q =
|
|
2301
|
+
}, [k]), q = fi({
|
|
2302
2302
|
item: e,
|
|
2303
2303
|
texts: x,
|
|
2304
2304
|
isReadonly: j,
|
|
@@ -2324,7 +2324,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2324
2324
|
isRevokeShareVisible: g,
|
|
2325
2325
|
recipientsCountStatus: pe,
|
|
2326
2326
|
recipientsCount: me
|
|
2327
|
-
}), { shouldShowPrimaryAction: ye, shouldShowUnpublish: be, isUnpublishPending: xe, shouldShowPublish: Se, shouldShowShareAction: Ce, isShareInActionRow: we, isPublishInActionRow: Te, authenticationType: Ee, credentialsUiState: De, shouldShowCredentialsAction: Oe, isCredentialsActionPrimary: ke, isDownloadActionPrimary: Ae, isApiKeyConfigured: je, isOAuthLogoutState: Me } = q, { manageItems: Ne, promotedManageAction: Pe } =
|
|
2327
|
+
}), { shouldShowPrimaryAction: ye, shouldShowUnpublish: be, isUnpublishPending: xe, shouldShowPublish: Se, shouldShowShareAction: Ce, isShareInActionRow: we, isPublishInActionRow: Te, authenticationType: Ee, credentialsUiState: De, shouldShowCredentialsAction: Oe, isCredentialsActionPrimary: ke, isDownloadActionPrimary: Ae, isApiKeyConfigured: je, isOAuthLogoutState: Me } = q, { manageItems: Ne, promotedManageAction: Pe } = xi({
|
|
2328
2328
|
visibility: q,
|
|
2329
2329
|
texts: x,
|
|
2330
2330
|
detailsStyles: S,
|
|
@@ -2354,7 +2354,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2354
2354
|
children: [/* @__PURE__ */ Z(te, {
|
|
2355
2355
|
item: e,
|
|
2356
2356
|
iconSize: 52,
|
|
2357
|
-
nameClassName: V(M,
|
|
2357
|
+
nameClassName: V(M, pi.name),
|
|
2358
2358
|
featuredLabel: x?.featuredLabel ?? "Featured",
|
|
2359
2359
|
typeLabel: x?.entityTypeLabels?.[e.type],
|
|
2360
2360
|
featuredChipStyle: S?.colors?.featuredChipStyle,
|
|
@@ -2367,7 +2367,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2367
2367
|
}), Ie && /* @__PURE__ */ Q("div", {
|
|
2368
2368
|
className: "flex flex-wrap items-center gap-2 ps-[60px]",
|
|
2369
2369
|
children: [
|
|
2370
|
-
ke && /* @__PURE__ */ Z(
|
|
2370
|
+
ke && /* @__PURE__ */ Z(_i, {
|
|
2371
2371
|
buttonComponent: je || Me ? Xe : tt,
|
|
2372
2372
|
...Fe
|
|
2373
2373
|
}),
|
|
@@ -2375,7 +2375,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2375
2375
|
label: x?.primaryActionLabel ?? "Use in chat",
|
|
2376
2376
|
iconBefore: /* @__PURE__ */ Z(Pt, { size: J.MD }),
|
|
2377
2377
|
onClick: L,
|
|
2378
|
-
disabled: F ===
|
|
2378
|
+
disabled: F === rn.LimitReached
|
|
2379
2379
|
}),
|
|
2380
2380
|
Ae && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(tt, {
|
|
2381
2381
|
label: x?.downloadActionLabel ?? "Download",
|
|
@@ -2395,7 +2395,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2395
2395
|
as: Ke.Span,
|
|
2396
2396
|
children: z ? x?.downloadingStatusLabel ?? "Downloading" : ""
|
|
2397
2397
|
})] }),
|
|
2398
|
-
we && Ce && /* @__PURE__ */ Z(
|
|
2398
|
+
we && Ce && /* @__PURE__ */ Z(yi, {
|
|
2399
2399
|
item: e,
|
|
2400
2400
|
onShare: r,
|
|
2401
2401
|
shareOverlay: i,
|
|
@@ -2424,11 +2424,11 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2424
2424
|
onMouseEnter: ve,
|
|
2425
2425
|
onFocus: ve
|
|
2426
2426
|
}),
|
|
2427
|
-
Oe && !ke && /* @__PURE__ */ Z(
|
|
2427
|
+
Oe && !ke && /* @__PURE__ */ Z(_i, {
|
|
2428
2428
|
buttonComponent: Xe,
|
|
2429
2429
|
...Fe
|
|
2430
2430
|
}),
|
|
2431
|
-
!xe && /* @__PURE__ */ Z(
|
|
2431
|
+
!xe && /* @__PURE__ */ Z(bi, {
|
|
2432
2432
|
item: e,
|
|
2433
2433
|
promotedManageAction: Pe,
|
|
2434
2434
|
manageItems: Ne,
|
|
@@ -2447,7 +2447,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2447
2447
|
]
|
|
2448
2448
|
})]
|
|
2449
2449
|
});
|
|
2450
|
-
},
|
|
2450
|
+
}, Ei = ({ item: e, isOpen: t, onClose: n, onDelete: r, onUnshare: a, onRevokeShare: o, onLogout: s, onUnpublish: c, texts: l, publishedFolders: u, formatFolderLabel: d }) => {
|
|
2451
2451
|
let [f, p] = K(null), [m, h] = K(!1), [g, _] = K(null), [v, y] = K(null), [b, x] = K(null);
|
|
2452
2452
|
U(() => {
|
|
2453
2453
|
x(null), p(null), h(!1), _(null), y(null);
|
|
@@ -2487,12 +2487,12 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2487
2487
|
g != null && await s?.(e, { level: g });
|
|
2488
2488
|
break;
|
|
2489
2489
|
case $.Unpublish: {
|
|
2490
|
-
let t =
|
|
2490
|
+
let t = Kn(u, b);
|
|
2491
2491
|
t != null && await c?.(e, t.segments);
|
|
2492
2492
|
break;
|
|
2493
2493
|
}
|
|
2494
2494
|
}
|
|
2495
|
-
p(null), _(null), y(null), x(null),
|
|
2495
|
+
p(null), _(null), y(null), x(null), rr.has(f) && n();
|
|
2496
2496
|
} catch {
|
|
2497
2497
|
p(null), _(null), y(null), x(null);
|
|
2498
2498
|
} finally {
|
|
@@ -2548,7 +2548,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2548
2548
|
/* @__PURE__ */ Z("strong", { children: e.name }),
|
|
2549
2549
|
"? This action is permanent and cannot be undone."
|
|
2550
2550
|
] }),
|
|
2551
|
-
consequences: l?.deleteConfirmConsequences ??
|
|
2551
|
+
consequences: l?.deleteConfirmConsequences ?? Zn,
|
|
2552
2552
|
confirmLabel: t,
|
|
2553
2553
|
loadingStatusLabel: l?.deletingStatusLabel ?? "Deleting",
|
|
2554
2554
|
variant: De.Danger
|
|
@@ -2563,7 +2563,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2563
2563
|
/* @__PURE__ */ Z("strong", { children: e.name }),
|
|
2564
2564
|
" from your list? You'll need a new invitation to access it again."
|
|
2565
2565
|
] }),
|
|
2566
|
-
consequences: l?.unshareConfirmConsequences ??
|
|
2566
|
+
consequences: l?.unshareConfirmConsequences ?? Qn,
|
|
2567
2567
|
confirmLabel: t,
|
|
2568
2568
|
loadingStatusLabel: l?.unsharingStatusLabel ?? "Removing",
|
|
2569
2569
|
variant: De.Info
|
|
@@ -2578,7 +2578,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2578
2578
|
/* @__PURE__ */ Z("strong", { children: e.name }),
|
|
2579
2579
|
"? Anyone you shared it with will lose access."
|
|
2580
2580
|
] }),
|
|
2581
|
-
consequences: l?.revokeShareConfirmConsequences ??
|
|
2581
|
+
consequences: l?.revokeShareConfirmConsequences ?? er,
|
|
2582
2582
|
confirmLabel: t,
|
|
2583
2583
|
loadingStatusLabel: l?.revokingShareStatusLabel ?? "Revoking access",
|
|
2584
2584
|
variant: De.Danger
|
|
@@ -2599,7 +2599,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2599
2599
|
return {
|
|
2600
2600
|
title: l?.unpublishConfirmTitle ?? t,
|
|
2601
2601
|
message: n ? i : a,
|
|
2602
|
-
consequences: l?.unpublishConfirmConsequences ??
|
|
2602
|
+
consequences: l?.unpublishConfirmConsequences ?? $n,
|
|
2603
2603
|
confirmLabel: t,
|
|
2604
2604
|
loadingStatusLabel: l?.unpublishingStatusLabel ?? "Requesting unpublish",
|
|
2605
2605
|
variant: De.Danger
|
|
@@ -2620,7 +2620,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2620
2620
|
let e = l?.deleteActionLabel ?? "Delete", t = g ?? i.User;
|
|
2621
2621
|
return {
|
|
2622
2622
|
title: e,
|
|
2623
|
-
message: (l?.deleteApiKeyConfirmMessage ??
|
|
2623
|
+
message: (l?.deleteApiKeyConfirmMessage ?? nr)(t),
|
|
2624
2624
|
consequences: void 0,
|
|
2625
2625
|
confirmLabel: e,
|
|
2626
2626
|
loadingStatusLabel: l?.deletingStatusLabel ?? "Deleting",
|
|
@@ -2638,15 +2638,15 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2638
2638
|
u,
|
|
2639
2639
|
d
|
|
2640
2640
|
]),
|
|
2641
|
-
isConfirmDisabled: f === $.Unpublish &&
|
|
2641
|
+
isConfirmDisabled: f === $.Unpublish && Kn(u, b) == null
|
|
2642
2642
|
};
|
|
2643
|
-
},
|
|
2643
|
+
}, Di = ({ item: e, onLoadContentFile: t, onLoadContentFilePreview: n, renderContentFilePreview: r, texts: i }) => {
|
|
2644
2644
|
let a = e.details?.promptContent, o = a?.selectedFileId, [s, c] = K(null), [l, u] = K(!1), [d, f] = K(/* @__PURE__ */ new Set()), [p, m] = K(!1), h = G(null), g = G(0), _ = H((e) => {
|
|
2645
|
-
let t = h.current, n = e?.preview?.type ===
|
|
2645
|
+
let t = h.current, n = e?.preview?.type === dn.Image ? e.preview.url : null;
|
|
2646
2646
|
t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), h.current = n, c(e);
|
|
2647
2647
|
}, []);
|
|
2648
2648
|
U(() => {
|
|
2649
|
-
g.current += 1, _(null), u(!1), f(
|
|
2649
|
+
g.current += 1, _(null), u(!1), f(Nr(a?.files ?? [])), m(!1);
|
|
2650
2650
|
}, [e.id, o]), U(() => () => {
|
|
2651
2651
|
let e = h.current;
|
|
2652
2652
|
e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
|
|
@@ -2676,11 +2676,11 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2676
2676
|
}), u(!0);
|
|
2677
2677
|
try {
|
|
2678
2678
|
let r = n == null ? await t?.(e).then((e) => e == null ? void 0 : {
|
|
2679
|
-
type:
|
|
2679
|
+
type: dn.Markdown,
|
|
2680
2680
|
text: e
|
|
2681
2681
|
}) : await n(e);
|
|
2682
2682
|
if (g.current !== i) {
|
|
2683
|
-
r?.type ===
|
|
2683
|
+
r?.type === dn.Image && r.url.startsWith("blob:") && URL.revokeObjectURL(r.url);
|
|
2684
2684
|
return;
|
|
2685
2685
|
}
|
|
2686
2686
|
_({
|
|
@@ -2713,12 +2713,12 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2713
2713
|
handleToggleFolder: v,
|
|
2714
2714
|
handleSelectContentFile: y,
|
|
2715
2715
|
resolveContentFilePreview: () => s == null ? null : s.preview == null ? {
|
|
2716
|
-
type:
|
|
2716
|
+
type: dn.Text,
|
|
2717
2717
|
text: i?.contentFileErrorLabel ?? "Failed to load this file."
|
|
2718
2718
|
} : s.preview,
|
|
2719
|
-
renderedContentFilePreview: s != null && r != null ? r(s.id,
|
|
2719
|
+
renderedContentFilePreview: s != null && r != null ? r(s.id, Pr(a?.files ?? [], s.id) ?? "") : void 0
|
|
2720
2720
|
};
|
|
2721
|
-
},
|
|
2721
|
+
}, Oi = ({ item: e, isReadonly: t = !1, getPublishHistory: n, getPublishDependencies: r, publishFolderItems: i = Jn, hasPublishWriteAccess: a, publishDefaultAuthor: o, onPublish: s, onPublishSuccess: c, onPublishError: l, onCreatePublishFolder: u, onFetchExistingRules: d, onUnpublish: f, isUnpublishVisible: p, publishLabels: m }) => {
|
|
2722
2722
|
let [h, g] = K(!1), [_, v] = K([]), [y, b] = K(!1), x = G(null), S = H(() => {
|
|
2723
2723
|
if (!n || x.current === e.id) return;
|
|
2724
2724
|
let t = e.id;
|
|
@@ -2745,9 +2745,9 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2745
2745
|
if (!h || !D) return;
|
|
2746
2746
|
let e = !1;
|
|
2747
2747
|
return (async () => {
|
|
2748
|
-
let t =
|
|
2748
|
+
let t = Yn;
|
|
2749
2749
|
try {
|
|
2750
|
-
t = await T.current?.(E.current) ??
|
|
2750
|
+
t = await T.current?.(E.current) ?? Yn;
|
|
2751
2751
|
} catch {}
|
|
2752
2752
|
e || w({
|
|
2753
2753
|
itemId: k,
|
|
@@ -2762,21 +2762,21 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2762
2762
|
k
|
|
2763
2763
|
]);
|
|
2764
2764
|
let A;
|
|
2765
|
-
D && (A = C?.itemId === k ? C.dependencies :
|
|
2765
|
+
D && (A = C?.itemId === k ? C.dependencies : Yn);
|
|
2766
2766
|
let j = H((e, t) => {
|
|
2767
2767
|
x.current = null, b(!1), S(), c?.(e, t);
|
|
2768
|
-
}, [S, c]), M =
|
|
2768
|
+
}, [S, c]), M = Xt({
|
|
2769
2769
|
item: e,
|
|
2770
2770
|
history: _,
|
|
2771
2771
|
folderItems: i,
|
|
2772
2772
|
hasWriteAccess: a,
|
|
2773
2773
|
defaultAuthor: o,
|
|
2774
2774
|
onCreateFolder: u,
|
|
2775
|
-
onPublish: s ??
|
|
2775
|
+
onPublish: s ?? qn,
|
|
2776
2776
|
onPublishSuccess: j,
|
|
2777
2777
|
onPublishError: l,
|
|
2778
2778
|
onFetchExistingRules: d
|
|
2779
|
-
}), N = e.type === P.Toolset && O(e.credentials), ee = W(() =>
|
|
2779
|
+
}), N = e.type === P.Toolset && O(e.credentials), ee = W(() => Yt({
|
|
2780
2780
|
hasSelectedFolder: M.selectedFolderPath != null,
|
|
2781
2781
|
hasExistingPublicationInFolder: M.hasExistingPublicationInFolder,
|
|
2782
2782
|
hasWriteAccess: M.hasWriteAccess,
|
|
@@ -2809,11 +2809,11 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2809
2809
|
return t;
|
|
2810
2810
|
}, [_]), L = y && I.length > 0, te = H((e) => e || (m?.rootFolderLabel ?? "Organization"), [m]), ne = H(() => g(!0), []), re = H(() => {
|
|
2811
2811
|
g(!1), M.reset();
|
|
2812
|
-
}, [M]), ie =
|
|
2812
|
+
}, [M]), ie = Zt({
|
|
2813
2813
|
isOpen: h,
|
|
2814
2814
|
selectedFolderPath: M.selectedFolderPath,
|
|
2815
2815
|
onSelectedFolderPathChange: M.setSelectedFolderPath
|
|
2816
|
-
}), R = ie.view ===
|
|
2816
|
+
}), R = ie.view === Jt.ChangeFolder, z = H(async () => {
|
|
2817
2817
|
await M.handleSubmit() && re();
|
|
2818
2818
|
}, [M, re]);
|
|
2819
2819
|
return {
|
|
@@ -2833,14 +2833,14 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2833
2833
|
isPublishFolderView: R,
|
|
2834
2834
|
handleSubmitPublish: z
|
|
2835
2835
|
};
|
|
2836
|
-
},
|
|
2837
|
-
let { subViewTitleClassName: xe = "dial-body-semi-text", confirmMessageClassName: Se = "dial-small-text" } = ye?.typography ?? {}, Ce = ye?.colors, we =
|
|
2836
|
+
}, ki = ({ item: e, isOpen: t, isStarred: r = !1, isDetailsLoading: i = !1, isReadonly: a = !1, onClose: o, onToggleFavorite: s, isFavoriteVisible: c, onUseInChat: l, isPrimaryActionVisible: u, onShare: d, isPublishVisible: f, isPublishPrimary: p, getPublishHistory: m, getPublishDependencies: h, resolvePublishDependenciesLabels: g, resolvePublishApprovalLabels: _, publishVersionHistory: v, onPublishOpenChange: y, publishFolderItems: b = Jn, publishExpandedPaths: S, onPublishExpandedPathsChange: C, publishLoadingPaths: w, getPublishDisabledReason: T, hasPublishWriteAccess: D, publishDefaultAuthor: O, onPublish: k, onPublishSuccess: A, onPublishError: j, onCreatePublishFolder: M, publishLabels: N, ruleSourceOptions: P = Xn, onFetchExistingRules: I, shareOverlay: L, isShareVisible: te, isSharePrimary: ne, onEdit: re, onDownload: ie, isDownloadVisible: R, isDownloadPrimary: z, onLoadContentFile: ae, onLoadContentFilePreview: oe, renderContentFilePreview: se, renderContentFileTree: ce, renderCredentials: B, onDelete: le, onUnshare: ue, isUnshareVisible: de, onRevokeShare: fe, onFetchRecipientsCount: pe, isRevokeShareVisible: me, onUnpublish: he, isUnpublishVisible: ge, onLogin: _e, onLogout: ve, texts: q, styles: ye, limitsFooterNote: be }) => {
|
|
2837
|
+
let { subViewTitleClassName: xe = "dial-body-semi-text", confirmMessageClassName: Se = "dial-small-text" } = ye?.typography ?? {}, Ce = ye?.colors, we = ir(Ce), [Te, Ee] = K(r), [De, J] = K(""), Y = Di({
|
|
2838
2838
|
item: e,
|
|
2839
2839
|
onLoadContentFile: ae,
|
|
2840
2840
|
onLoadContentFilePreview: oe,
|
|
2841
2841
|
renderContentFilePreview: se,
|
|
2842
2842
|
texts: q
|
|
2843
|
-
}), { isPublishOpen: Oe, isPublishHistoryResolved: ke, requestPublishHistory: Ae, publishFlow: je, publishDependencies: Me, isPublishCredentialsEligible: Ne, publishDerived: Pe, publishedFolders: Fe, hasPublishedFolders: Ie, formatFolderLabel: Le, handleOpenPublish: Re, handleClosePublish: ze, publishFolderView: Be, isPublishFolderView: Ve, handleSubmitPublish: He } =
|
|
2843
|
+
}), { isPublishOpen: Oe, isPublishHistoryResolved: ke, requestPublishHistory: Ae, publishFlow: je, publishDependencies: Me, isPublishCredentialsEligible: Ne, publishDerived: Pe, publishedFolders: Fe, hasPublishedFolders: Ie, formatFolderLabel: Le, handleOpenPublish: Re, handleClosePublish: ze, publishFolderView: Be, isPublishFolderView: Ve, handleSubmitPublish: He } = Oi({
|
|
2844
2844
|
item: e,
|
|
2845
2845
|
isReadonly: a,
|
|
2846
2846
|
getPublishHistory: m,
|
|
@@ -2856,7 +2856,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2856
2856
|
onUnpublish: he,
|
|
2857
2857
|
isUnpublishVisible: ge,
|
|
2858
2858
|
publishLabels: N
|
|
2859
|
-
}), { confirmation: Ue, isConfirming: We, selectedUnpublishFolder: Ge, setSelectedUnpublishFolder: Ke, handleRequestDelete: qe, handleRequestLogout: Je, handleRequestUnshare: Ye, handleRequestRevokeShare: Xe, handleRequestUnpublish: Ze, handleRequestDeleteApiKey: Qe, handleCancelConfirmation: $e, handleConfirm: et, confirmationContent: tt, isConfirmDisabled: nt } =
|
|
2859
|
+
}), { confirmation: Ue, isConfirming: We, selectedUnpublishFolder: Ge, setSelectedUnpublishFolder: Ke, handleRequestDelete: qe, handleRequestLogout: Je, handleRequestUnshare: Ye, handleRequestRevokeShare: Xe, handleRequestUnpublish: Ze, handleRequestDeleteApiKey: Qe, handleCancelConfirmation: $e, handleConfirm: et, confirmationContent: tt, isConfirmDisabled: nt } = Ei({
|
|
2860
2860
|
item: e,
|
|
2861
2861
|
isOpen: t,
|
|
2862
2862
|
onClose: o,
|
|
@@ -2918,7 +2918,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2918
2918
|
dt,
|
|
2919
2919
|
De
|
|
2920
2920
|
]);
|
|
2921
|
-
let pt = q?.ariaLabel ?? "Item details", mt = q?.closeAriaLabel ?? "Close", ht = Te ? q?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : q?.addToFavoritesAriaLabel ?? "Add to favorites", gt = q?.publishTitle ?? "Publish", _t = q?.backToDetailsAriaLabel ?? "Back", vt = q?.cancelLabel ?? "Cancel", yt = tt != null, bt = yt || Oe || it, xt = e.credentials == null ? "" : (q?.credentialsManagementTitle ??
|
|
2921
|
+
let pt = q?.ariaLabel ?? "Item details", mt = q?.closeAriaLabel ?? "Close", ht = Te ? q?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : q?.addToFavoritesAriaLabel ?? "Add to favorites", gt = q?.publishTitle ?? "Publish", _t = q?.backToDetailsAriaLabel ?? "Back", vt = q?.cancelLabel ?? "Cancel", yt = tt != null, bt = yt || Oe || it, xt = e.credentials == null ? "" : (q?.credentialsManagementTitle ?? tr)(e.credentials.authenticationType), St = yt ? {
|
|
2922
2922
|
title: tt.title,
|
|
2923
2923
|
isBackDisabled: We,
|
|
2924
2924
|
onBack: $e
|
|
@@ -2941,21 +2941,21 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2941
2941
|
backDisabled: St?.isBackDisabled,
|
|
2942
2942
|
hideClose: St != null,
|
|
2943
2943
|
closeAriaLabel: mt,
|
|
2944
|
-
headerActions: St == null && !a && c?.(e) !== !1 ? /* @__PURE__ */ Z(
|
|
2944
|
+
headerActions: St == null && !a && c?.(e) !== !1 ? /* @__PURE__ */ Z(Pn, {
|
|
2945
2945
|
isStarred: Te,
|
|
2946
2946
|
ariaLabel: ht,
|
|
2947
2947
|
onClick: ut
|
|
2948
2948
|
}) : void 0,
|
|
2949
2949
|
style: we,
|
|
2950
2950
|
overlayStyle: we,
|
|
2951
|
-
className: V(
|
|
2952
|
-
overlayClassName:
|
|
2953
|
-
headerClassName:
|
|
2954
|
-
titleClassName: V(xe,
|
|
2951
|
+
className: V(xr.panel, "tablet:w-[540px]! tablet:max-w-[calc(100%-32px)]!"),
|
|
2952
|
+
overlayClassName: xr.backdrop,
|
|
2953
|
+
headerClassName: xr.divider,
|
|
2954
|
+
titleClassName: V(xe, xr.publishTitle),
|
|
2955
2955
|
bodyClassName: "flex flex-col overflow-hidden",
|
|
2956
2956
|
children: [
|
|
2957
2957
|
/* @__PURE__ */ Q("div", {
|
|
2958
|
-
className: V("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto",
|
|
2958
|
+
className: V("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", xr.content),
|
|
2959
2959
|
children: [
|
|
2960
2960
|
yt && /* @__PURE__ */ Z(F, {
|
|
2961
2961
|
item: e,
|
|
@@ -2981,7 +2981,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2981
2981
|
radioClassName: Se
|
|
2982
2982
|
})
|
|
2983
2983
|
}),
|
|
2984
|
-
!yt && !Oe && it && /* @__PURE__ */ Z(
|
|
2984
|
+
!yt && !Oe && it && /* @__PURE__ */ Z(br, {
|
|
2985
2985
|
item: e,
|
|
2986
2986
|
onLogin: _e,
|
|
2987
2987
|
onRequestLogout: Je,
|
|
@@ -2989,7 +2989,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
2989
2989
|
texts: q,
|
|
2990
2990
|
detailsStyles: ye
|
|
2991
2991
|
}),
|
|
2992
|
-
!yt && Oe && /* @__PURE__ */ Z(
|
|
2992
|
+
!yt && Oe && /* @__PURE__ */ Z(Sr, {
|
|
2993
2993
|
item: e,
|
|
2994
2994
|
publishFlow: je,
|
|
2995
2995
|
publishDependencies: Me,
|
|
@@ -3006,7 +3006,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3006
3006
|
publishVersionHistory: v
|
|
3007
3007
|
}),
|
|
3008
3008
|
!bt && /* @__PURE__ */ Q(X, { children: [
|
|
3009
|
-
/* @__PURE__ */ Z(
|
|
3009
|
+
/* @__PURE__ */ Z(Ti, {
|
|
3010
3010
|
item: e,
|
|
3011
3011
|
onUseInChat: l,
|
|
3012
3012
|
isPrimaryActionVisible: u,
|
|
@@ -3044,7 +3044,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3044
3044
|
let t = E(e.credentials);
|
|
3045
3045
|
return t != null && /* @__PURE__ */ Z("div", {
|
|
3046
3046
|
className: "px-6",
|
|
3047
|
-
children: /* @__PURE__ */ Z(
|
|
3047
|
+
children: /* @__PURE__ */ Z(gr, {
|
|
3048
3048
|
state: t,
|
|
3049
3049
|
authenticationType: e.credentials.authenticationType,
|
|
3050
3050
|
texts: q
|
|
@@ -3052,7 +3052,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3052
3052
|
});
|
|
3053
3053
|
})(),
|
|
3054
3054
|
!a && t && B?.(e),
|
|
3055
|
-
/* @__PURE__ */ Z(
|
|
3055
|
+
/* @__PURE__ */ Z(li, {
|
|
3056
3056
|
item: e,
|
|
3057
3057
|
tabs: dt,
|
|
3058
3058
|
activeTab: De,
|
|
@@ -3078,7 +3078,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3078
3078
|
onConfirm: et,
|
|
3079
3079
|
onCancel: $e
|
|
3080
3080
|
}),
|
|
3081
|
-
!yt && Oe && /* @__PURE__ */ Z(
|
|
3081
|
+
!yt && Oe && /* @__PURE__ */ Z(Kt, {
|
|
3082
3082
|
version: e.version,
|
|
3083
3083
|
hasExistingPublicationInFolder: je.hasExistingPublicationInFolder,
|
|
3084
3084
|
allowReplace: !1,
|
|
@@ -3093,18 +3093,18 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3093
3093
|
})
|
|
3094
3094
|
]
|
|
3095
3095
|
});
|
|
3096
|
-
},
|
|
3096
|
+
}, Ai = (e) => window.getComputedStyle(e).direction === "rtl", ji = (e, t) => {
|
|
3097
3097
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = window.getComputedStyle(e);
|
|
3098
|
-
return
|
|
3099
|
-
},
|
|
3098
|
+
return Ai(e) ? r.right - (n.right - parseFloat(i.paddingRight || "0")) : r.left - (n.left + parseFloat(i.paddingLeft || "0"));
|
|
3099
|
+
}, Mi = (e, t) => {
|
|
3100
3100
|
if (t.length === 0) return 0;
|
|
3101
3101
|
if (Math.abs(e.scrollLeft) + e.clientWidth >= e.scrollWidth - 1 && Math.abs(e.scrollLeft) > 0) return t.length - 1;
|
|
3102
3102
|
let n = 0, r = Infinity;
|
|
3103
3103
|
return t.forEach((t, i) => {
|
|
3104
|
-
let a = Math.abs(
|
|
3104
|
+
let a = Math.abs(ji(e, t));
|
|
3105
3105
|
a < r && (r = a, n = i);
|
|
3106
3106
|
}), n;
|
|
3107
|
-
},
|
|
3107
|
+
}, Ni = {
|
|
3108
3108
|
pageNav: "_pageNav_x89b2_1",
|
|
3109
3109
|
navBtn: "_navBtn_x89b2_6",
|
|
3110
3110
|
titleText: "_titleText_x89b2_23",
|
|
@@ -3120,7 +3120,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3120
3120
|
cardFadeOut: "_cardFadeOut_x89b2_1",
|
|
3121
3121
|
favoriteCard: "_favoriteCard_x89b2_107",
|
|
3122
3122
|
cardButton: "_cardButton_x89b2_107"
|
|
3123
|
-
},
|
|
3123
|
+
}, Pi = ({ 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 }) => {
|
|
3124
3124
|
let [h, g] = K(t), [_, v] = K(!1), y = (t) => {
|
|
3125
3125
|
t.stopPropagation();
|
|
3126
3126
|
let r = !h;
|
|
@@ -3130,22 +3130,22 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3130
3130
|
"data-card-id": e.id,
|
|
3131
3131
|
"aria-label": e.name,
|
|
3132
3132
|
style: B({ "--fc-focus-outline": m }),
|
|
3133
|
-
className: V("box-border min-w-0 cursor-pointer flex-row items-center gap-3 p-5 text-start",
|
|
3133
|
+
className: V("box-border min-w-0 cursor-pointer flex-row items-center gap-3 p-5 text-start", Ni.favoriteCard, _ && Ni.cardLeaving, f && Ni.selectedCard, pn.favoriteCard),
|
|
3134
3134
|
onClick: b,
|
|
3135
3135
|
onAnimationEnd: _ ? (t) => {
|
|
3136
3136
|
t.currentTarget === t.target && n?.(e.id, !1);
|
|
3137
3137
|
} : void 0,
|
|
3138
3138
|
children: [b != null && /* @__PURE__ */ Z("button", {
|
|
3139
3139
|
type: "button",
|
|
3140
|
-
className: V("sr-only",
|
|
3140
|
+
className: V("sr-only", Ni.cardButton),
|
|
3141
3141
|
children: e.name
|
|
3142
|
-
}), /* @__PURE__ */ Z(
|
|
3142
|
+
}), /* @__PURE__ */ Z(An, {
|
|
3143
3143
|
icon: e.iconUrl,
|
|
3144
3144
|
type: e.type,
|
|
3145
3145
|
name: e.name,
|
|
3146
3146
|
version: e.version,
|
|
3147
3147
|
lastUsed: e.lastUsed,
|
|
3148
|
-
size:
|
|
3148
|
+
size: on.LG,
|
|
3149
3149
|
query: l,
|
|
3150
3150
|
className: "min-w-0 flex-1 items-center",
|
|
3151
3151
|
styles: {
|
|
@@ -3156,11 +3156,11 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3156
3156
|
lastUsedClassName: c
|
|
3157
3157
|
}
|
|
3158
3158
|
},
|
|
3159
|
-
iconOverlay: /* @__PURE__ */ Z(
|
|
3159
|
+
iconOverlay: /* @__PURE__ */ Z(Mn, {
|
|
3160
3160
|
credentials: e.credentials,
|
|
3161
3161
|
loggedOutLabel: p
|
|
3162
3162
|
}),
|
|
3163
|
-
lastUsedTrailing: r?.(e) === !1 ? void 0 : /* @__PURE__ */ Z(
|
|
3163
|
+
lastUsedTrailing: r?.(e) === !1 ? void 0 : /* @__PURE__ */ Z(Pn, {
|
|
3164
3164
|
isStarred: h,
|
|
3165
3165
|
size: Me.Small,
|
|
3166
3166
|
onClick: y,
|
|
@@ -3168,7 +3168,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3168
3168
|
})
|
|
3169
3169
|
})]
|
|
3170
3170
|
});
|
|
3171
|
-
},
|
|
3171
|
+
}, Fi = 2, Ii = (e) => {
|
|
3172
3172
|
let t = e.getBoundingClientRect(), n = window.scrollX, r = window.scrollY, i = window.getComputedStyle(e).transform;
|
|
3173
3173
|
if (!i || i === "none") return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
3174
3174
|
try {
|
|
@@ -3177,7 +3177,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3177
3177
|
} catch {
|
|
3178
3178
|
return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
3179
3179
|
}
|
|
3180
|
-
},
|
|
3180
|
+
}, Li = ({ 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 }) => {
|
|
3181
3181
|
let g = o?.typography?.titleClassName ?? "dial-body-semi-text", _ = o?.typography?.countClassName ?? "dial-tiny-semi-text", v = B({
|
|
3182
3182
|
"--cat-fav-title-text": o?.colors?.titleText,
|
|
3183
3183
|
"--cat-fav-count-text": o?.colors?.countText,
|
|
@@ -3189,7 +3189,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3189
3189
|
"--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
|
|
3190
3190
|
"--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
|
|
3191
3191
|
"--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
|
|
3192
|
-
}), y = W(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [b, x] = K(1), S =
|
|
3192
|
+
}), y = W(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [b, x] = K(1), S = fn(), C = le(), w = !h && !C, T = S * Fi, E = (b - 1) * T, D = W(() => w ? y.slice(E, E + T) : y, [
|
|
3193
3193
|
w,
|
|
3194
3194
|
y,
|
|
3195
3195
|
E,
|
|
@@ -3227,7 +3227,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3227
3227
|
let n = M.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
|
|
3228
3228
|
if (n.forEach((e) => {
|
|
3229
3229
|
let { cardId: t } = e.dataset;
|
|
3230
|
-
t && r.set(t,
|
|
3230
|
+
t && r.set(t, Ii(e));
|
|
3231
3231
|
}), !e && !t) {
|
|
3232
3232
|
let e = j.current, t = R.current, i = 0;
|
|
3233
3233
|
if (e) {
|
|
@@ -3286,7 +3286,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3286
3286
|
se.current = null;
|
|
3287
3287
|
let e = M.current;
|
|
3288
3288
|
if (!e) return;
|
|
3289
|
-
let t =
|
|
3289
|
+
let t = Mi(e, ae()) + 1;
|
|
3290
3290
|
if (oe.current != null) {
|
|
3291
3291
|
if (t !== oe.current) return;
|
|
3292
3292
|
oe.current = null;
|
|
@@ -3303,7 +3303,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3303
3303
|
if (x(e), !C || !M.current) return;
|
|
3304
3304
|
let t = ae()[e - 1];
|
|
3305
3305
|
if (!t) return;
|
|
3306
|
-
let n =
|
|
3306
|
+
let n = ji(M.current, t);
|
|
3307
3307
|
Math.abs(n) < 1 || (oe.current = e, M.current.scrollBy({
|
|
3308
3308
|
left: n,
|
|
3309
3309
|
behavior: "smooth"
|
|
@@ -3313,7 +3313,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3313
3313
|
ref: A,
|
|
3314
3314
|
children: /* @__PURE__ */ Q("section", {
|
|
3315
3315
|
ref: j,
|
|
3316
|
-
className: V("flex shrink-0 flex-col gap-4 pt-2 pb-2",
|
|
3316
|
+
className: V("flex shrink-0 flex-col gap-4 pt-2 pb-2", Ni.section, s && Ni.sectionLeaving),
|
|
3317
3317
|
style: {
|
|
3318
3318
|
...v,
|
|
3319
3319
|
minHeight: ee
|
|
@@ -3324,17 +3324,17 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3324
3324
|
children: [/* @__PURE__ */ Z(ie, {
|
|
3325
3325
|
title: n,
|
|
3326
3326
|
postfix: k,
|
|
3327
|
-
titleClassName: V(g,
|
|
3328
|
-
postfixClassName: V(_,
|
|
3327
|
+
titleClassName: V(g, Ni.titleText),
|
|
3328
|
+
postfixClassName: V(_, Ni.countText),
|
|
3329
3329
|
trailing: O > 1 ? /* @__PURE__ */ Q("div", {
|
|
3330
|
-
className: V("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]",
|
|
3330
|
+
className: V("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Ni.pageNav),
|
|
3331
3331
|
children: [
|
|
3332
3332
|
/* @__PURE__ */ Z(ze, {
|
|
3333
3333
|
size: Me.Small,
|
|
3334
3334
|
"aria-label": l,
|
|
3335
3335
|
disabled: b === 1,
|
|
3336
3336
|
onClick: () => de(b - 1),
|
|
3337
|
-
className: V("rounded-full",
|
|
3337
|
+
className: V("rounded-full", Ni.navBtn),
|
|
3338
3338
|
icon: /* @__PURE__ */ Z(xt, {
|
|
3339
3339
|
size: 14,
|
|
3340
3340
|
"aria-hidden": !0,
|
|
@@ -3343,7 +3343,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3343
3343
|
})
|
|
3344
3344
|
}),
|
|
3345
3345
|
/* @__PURE__ */ Q("span", {
|
|
3346
|
-
className: V("min-w-[32px] px-1 text-center select-none", _,
|
|
3346
|
+
className: V("min-w-[32px] px-1 text-center select-none", _, Ni.countText),
|
|
3347
3347
|
children: [
|
|
3348
3348
|
b,
|
|
3349
3349
|
" / ",
|
|
@@ -3355,7 +3355,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3355
3355
|
"aria-label": u,
|
|
3356
3356
|
disabled: b === O,
|
|
3357
3357
|
onClick: () => de(b + 1),
|
|
3358
|
-
className: V("rounded-full",
|
|
3358
|
+
className: V("rounded-full", Ni.navBtn),
|
|
3359
3359
|
icon: /* @__PURE__ */ Z(St, {
|
|
3360
3360
|
size: 14,
|
|
3361
3361
|
"aria-hidden": !0,
|
|
@@ -3367,7 +3367,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3367
3367
|
}) : void 0
|
|
3368
3368
|
}), /* @__PURE__ */ Z("div", {
|
|
3369
3369
|
ref: M,
|
|
3370
|
-
className: V("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",
|
|
3370
|
+
className: V("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", Ni.gridPage),
|
|
3371
3371
|
style: {
|
|
3372
3372
|
gridTemplateColumns: C ? void 0 : `repeat(${S}, minmax(0, 1fr))`,
|
|
3373
3373
|
minHeight: N
|
|
@@ -3375,7 +3375,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3375
3375
|
onScroll: C ? ce : void 0,
|
|
3376
3376
|
onScrollEnd: C ? ue : void 0,
|
|
3377
3377
|
onPointerDown: C ? ue : void 0,
|
|
3378
|
-
children: D.map((e) => /* @__PURE__ */ Z(
|
|
3378
|
+
children: D.map((e) => /* @__PURE__ */ Z(Pi, {
|
|
3379
3379
|
item: e,
|
|
3380
3380
|
onToggle: r,
|
|
3381
3381
|
isFavoriteVisible: i,
|
|
@@ -3388,9 +3388,9 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3388
3388
|
})]
|
|
3389
3389
|
})
|
|
3390
3390
|
});
|
|
3391
|
-
},
|
|
3391
|
+
}, Ri = /* @__PURE__ */ function(e) {
|
|
3392
3392
|
return e.Folder = "folder", e.Tags = "tags", e.Favorite = "favorite", e;
|
|
3393
|
-
}({}),
|
|
3393
|
+
}({}), zi = {
|
|
3394
3394
|
favHeader: "_favHeader_7uzyn_2",
|
|
3395
3395
|
starFilledIcon: "_starFilledIcon_7uzyn_6",
|
|
3396
3396
|
folderIcon: "_folderIcon_7uzyn_10",
|
|
@@ -3398,19 +3398,19 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3398
3398
|
starToggleOff: "_starToggleOff_7uzyn_36",
|
|
3399
3399
|
name: "_name_7uzyn_50",
|
|
3400
3400
|
version: "_version_7uzyn_54"
|
|
3401
|
-
},
|
|
3401
|
+
}, Bi = ({ data: e, value: t }) => e ? /* @__PURE__ */ Z("div", {
|
|
3402
3402
|
className: "flex h-full items-center",
|
|
3403
3403
|
children: /* @__PURE__ */ Z(ne, { type: t ?? e.type })
|
|
3404
|
-
}) : null,
|
|
3404
|
+
}) : null, Vi = " / ", Hi = ({ data: e, context: t }) => {
|
|
3405
3405
|
if (!e || e.folder.length === 0) return null;
|
|
3406
|
-
let n = e.folder.join(
|
|
3406
|
+
let n = e.folder.join(Vi), 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";
|
|
3407
3407
|
return /* @__PURE__ */ Q("div", {
|
|
3408
3408
|
className: "flex h-full w-full min-w-0 items-center gap-1.5",
|
|
3409
3409
|
children: [
|
|
3410
3410
|
/* @__PURE__ */ Z(Dt, {
|
|
3411
3411
|
size: J.SM,
|
|
3412
3412
|
stroke: Y,
|
|
3413
|
-
className: V("shrink-0",
|
|
3413
|
+
className: V("shrink-0", zi.folderIcon),
|
|
3414
3414
|
"aria-hidden": !0
|
|
3415
3415
|
}),
|
|
3416
3416
|
/* @__PURE__ */ Z(ft, {
|
|
@@ -3432,7 +3432,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3432
3432
|
})
|
|
3433
3433
|
]
|
|
3434
3434
|
});
|
|
3435
|
-
},
|
|
3435
|
+
}, Ui = ({ data: e, context: t }) => {
|
|
3436
3436
|
let n = t?.searchQuery ?? "", r = t?.typography, i = r?.nameClassName ?? "dial-small-semi-text", a = r?.versionClassName ?? "dial-tiny-text";
|
|
3437
3437
|
return e ? /* @__PURE__ */ Q("div", {
|
|
3438
3438
|
className: "flex h-full w-full min-w-0 items-center gap-2.5",
|
|
@@ -3443,53 +3443,53 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3443
3443
|
size: 36,
|
|
3444
3444
|
initialsName: e.name,
|
|
3445
3445
|
styles: { badgeClassName: "rounded-[10px]" }
|
|
3446
|
-
}), /* @__PURE__ */ Z(
|
|
3446
|
+
}), /* @__PURE__ */ Z(Mn, {
|
|
3447
3447
|
credentials: e.credentials,
|
|
3448
3448
|
loggedOutLabel: t?.credentialsBadgeLoggedOutLabel
|
|
3449
3449
|
})]
|
|
3450
3450
|
}), /* @__PURE__ */ Q("div", {
|
|
3451
3451
|
className: "flex min-w-0 flex-1 items-baseline gap-1.5",
|
|
3452
3452
|
children: [/* @__PURE__ */ Z("h3", {
|
|
3453
|
-
className: V("min-w-0 shrink", i,
|
|
3454
|
-
children: /* @__PURE__ */ Z(
|
|
3453
|
+
className: V("min-w-0 shrink", i, zi.name),
|
|
3454
|
+
children: /* @__PURE__ */ Z(On, {
|
|
3455
3455
|
name: e.name,
|
|
3456
3456
|
query: n,
|
|
3457
3457
|
className: "whitespace-normal"
|
|
3458
3458
|
})
|
|
3459
3459
|
}), e.version && /* @__PURE__ */ Z(Ne, {
|
|
3460
3460
|
text: e.version,
|
|
3461
|
-
className: V("max-w-[30%] shrink-0", a,
|
|
3461
|
+
className: V("max-w-[30%] shrink-0", a, zi.version)
|
|
3462
3462
|
})]
|
|
3463
3463
|
})]
|
|
3464
3464
|
}) : null;
|
|
3465
|
-
},
|
|
3465
|
+
}, Wi = ({ data: e, context: t }) => {
|
|
3466
3466
|
let [n, r] = K(e?.isStarred ?? !1);
|
|
3467
3467
|
return U(() => {
|
|
3468
3468
|
r(e?.isStarred ?? !1);
|
|
3469
3469
|
}, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ Z("div", {
|
|
3470
3470
|
className: "flex size-full items-center justify-end",
|
|
3471
|
-
children: /* @__PURE__ */ Z(
|
|
3471
|
+
children: /* @__PURE__ */ Z(Pn, {
|
|
3472
3472
|
isStarred: n,
|
|
3473
3473
|
onClick: (i) => {
|
|
3474
3474
|
i.stopPropagation();
|
|
3475
3475
|
let a = !n;
|
|
3476
3476
|
r(a), t?.onToggleFavorite?.(e.id, a);
|
|
3477
3477
|
},
|
|
3478
|
-
className: n ? void 0 :
|
|
3478
|
+
className: n ? void 0 : zi.starToggleOff
|
|
3479
3479
|
})
|
|
3480
3480
|
});
|
|
3481
|
-
},
|
|
3481
|
+
}, Gi = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ Z("div", {
|
|
3482
3482
|
className: "flex h-full w-full min-w-0 items-center",
|
|
3483
|
-
children: /* @__PURE__ */ Z(
|
|
3484
|
-
}),
|
|
3483
|
+
children: /* @__PURE__ */ Z(zn, { topics: e.topics })
|
|
3484
|
+
}), Ki = {
|
|
3485
3485
|
folder: (e) => e !== P.Model,
|
|
3486
3486
|
tags: () => !0,
|
|
3487
3487
|
favorite: () => !0
|
|
3488
|
-
},
|
|
3489
|
-
let n = Object.values(
|
|
3490
|
-
return Object.fromEntries(n.map((n) => [n, (t?.[n] ??
|
|
3491
|
-
},
|
|
3492
|
-
let r =
|
|
3488
|
+
}, qi = (e, t) => {
|
|
3489
|
+
let n = Object.values(Ri);
|
|
3490
|
+
return Object.fromEntries(n.map((n) => [n, (t?.[n] ?? Ki[n])(e)]));
|
|
3491
|
+
}, Ji = (e, t = !1, n) => {
|
|
3492
|
+
let r = qi(e, n);
|
|
3493
3493
|
return [
|
|
3494
3494
|
{
|
|
3495
3495
|
headerName: "Name",
|
|
@@ -3497,7 +3497,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3497
3497
|
minWidth: 220,
|
|
3498
3498
|
field: "name",
|
|
3499
3499
|
filter: !1,
|
|
3500
|
-
cellRenderer:
|
|
3500
|
+
cellRenderer: Ui,
|
|
3501
3501
|
valueGetter: (e) => e.data?.name
|
|
3502
3502
|
},
|
|
3503
3503
|
{
|
|
@@ -3507,7 +3507,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3507
3507
|
field: "type",
|
|
3508
3508
|
filter: !1,
|
|
3509
3509
|
sortable: !1,
|
|
3510
|
-
cellRenderer:
|
|
3510
|
+
cellRenderer: Bi,
|
|
3511
3511
|
valueGetter: (t) => t.data && T(t.data, e)
|
|
3512
3512
|
},
|
|
3513
3513
|
{
|
|
@@ -3517,7 +3517,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3517
3517
|
minWidth: 170,
|
|
3518
3518
|
filter: !1,
|
|
3519
3519
|
hide: !r.folder,
|
|
3520
|
-
cellRenderer:
|
|
3520
|
+
cellRenderer: Hi,
|
|
3521
3521
|
valueGetter: (e) => e.data?.folder
|
|
3522
3522
|
},
|
|
3523
3523
|
{
|
|
@@ -3528,7 +3528,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3528
3528
|
filter: !1,
|
|
3529
3529
|
sortable: !1,
|
|
3530
3530
|
hide: !r.tags,
|
|
3531
|
-
cellRenderer:
|
|
3531
|
+
cellRenderer: Gi,
|
|
3532
3532
|
valueGetter: (e) => e.data?.topics
|
|
3533
3533
|
},
|
|
3534
3534
|
{
|
|
@@ -3540,20 +3540,20 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3540
3540
|
sortable: !1,
|
|
3541
3541
|
resizable: !1,
|
|
3542
3542
|
hide: t || !r.favorite,
|
|
3543
|
-
headerClass:
|
|
3544
|
-
cellRenderer:
|
|
3543
|
+
headerClass: zi.favHeader,
|
|
3544
|
+
cellRenderer: Wi
|
|
3545
3545
|
}
|
|
3546
3546
|
];
|
|
3547
|
-
},
|
|
3547
|
+
}, Yi = 60, Xi = "isStarred", Zi = {
|
|
3548
3548
|
filter: !1,
|
|
3549
3549
|
floatingFilter: !1,
|
|
3550
3550
|
suppressSizeToFit: !0
|
|
3551
|
-
},
|
|
3551
|
+
}, Qi = {
|
|
3552
3552
|
mode: "singleRow",
|
|
3553
3553
|
checkboxes: !1,
|
|
3554
3554
|
enableClickSelection: !1
|
|
3555
|
-
},
|
|
3556
|
-
let S = _ ===
|
|
3555
|
+
}, $i = {}, ea = /* @__PURE__ */ new Set(), ta = "Select all", na = "rowClicked", ra = (e) => e.id, ia = (e) => `Select ${e.name}`, aa = (e) => e.colDef.field === Xi, oa = ({ ref: e, onRowsScroll: t, items: n, type: r, query: i = "", ariaLabel: a = "Catalog", emptyStateTitle: o = "No results", emptyStateDescription: s, isEmptyStateLive: c = !1, styles: l, onToggleFavorite: u, isFavoriteVisible: d, onItemClick: f, selectedItemId: p, credentialsBadgeLoggedOutLabel: m, isReadonly: h = !1, columnVisibility: g, selectionMode: _ = cn.Single, selectedItemIds: v = ea, onSelectionChange: y, selectRowAriaLabel: b = ia, selectAllAriaLabel: x = ta }) => {
|
|
3556
|
+
let S = _ === cn.Multiple, C = S ? void 0 : p, w = l?.typography ?? $i, T = l?.colors, E = {
|
|
3557
3557
|
"--cat-card-star-filled": T?.starFilled,
|
|
3558
3558
|
"--cat-list-folder-icon": T?.folderIcon,
|
|
3559
3559
|
"--cat-list-name-text": T?.nameText,
|
|
@@ -3572,19 +3572,19 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3572
3572
|
let e = D.current;
|
|
3573
3573
|
e == null || e.isDestroyed() || e.getDisplayedRowCount() === 0 || e.ensureIndexVisible(0, "top");
|
|
3574
3574
|
} }), []);
|
|
3575
|
-
let N = W(() =>
|
|
3575
|
+
let N = W(() => Ji(r, h, g), [
|
|
3576
3576
|
r,
|
|
3577
3577
|
h,
|
|
3578
3578
|
g
|
|
3579
|
-
]), P = W(() => n.map(
|
|
3579
|
+
]), P = W(() => n.map(ra), [n]), ee = H((e) => y?.(A(v, e, P)), [
|
|
3580
3580
|
y,
|
|
3581
3581
|
v,
|
|
3582
3582
|
P
|
|
3583
3583
|
]), F = W(() => new Set(C == null ? [] : [C]), [C]), I = W(() => ({
|
|
3584
|
-
rowHeight:
|
|
3584
|
+
rowHeight: Yi,
|
|
3585
3585
|
suppressCellFocus: !1,
|
|
3586
|
-
defaultColDef:
|
|
3587
|
-
rowSelection: S ? void 0 :
|
|
3586
|
+
defaultColDef: Zi,
|
|
3587
|
+
rowSelection: S ? void 0 : Qi,
|
|
3588
3588
|
context: {
|
|
3589
3589
|
searchQuery: i,
|
|
3590
3590
|
typography: w,
|
|
@@ -3595,11 +3595,11 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3595
3595
|
isReadonly: h
|
|
3596
3596
|
},
|
|
3597
3597
|
onCellClicked: f || S ? (e) => {
|
|
3598
|
-
!
|
|
3598
|
+
!aa(e) && e.data && e.colDef.colId !== Qt && (S && e.node.setSelected(!e.node.isSelected(), !1, na), f?.(e.data));
|
|
3599
3599
|
} : void 0,
|
|
3600
3600
|
onCellKeyDown: f && !S ? (e) => {
|
|
3601
3601
|
let t = e.event?.key;
|
|
3602
|
-
(t === "Enter" || t === " ") && !
|
|
3602
|
+
(t === "Enter" || t === " ") && !aa(e) && e.data && (e.event?.preventDefault(), f(e.data));
|
|
3603
3603
|
} : void 0,
|
|
3604
3604
|
rowClass: f || S ? "cursor-pointer" : void 0
|
|
3605
3605
|
}), [
|
|
@@ -3617,12 +3617,12 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3617
3617
|
D.current?.refreshCells({ force: !0 });
|
|
3618
3618
|
}, [i, C]), /* @__PURE__ */ Z("div", {
|
|
3619
3619
|
style: E,
|
|
3620
|
-
className: pt("size-full", !S &&
|
|
3621
|
-
children: /* @__PURE__ */ Z(
|
|
3622
|
-
appearance:
|
|
3620
|
+
className: pt("size-full", !S && zi.singleSelect, pn.listView),
|
|
3621
|
+
children: /* @__PURE__ */ Z($t, {
|
|
3622
|
+
appearance: en.Chat,
|
|
3623
3623
|
columnDefs: N,
|
|
3624
3624
|
rowData: n,
|
|
3625
|
-
getRowId:
|
|
3625
|
+
getRowId: ra,
|
|
3626
3626
|
withoutHeaderBorders: !0,
|
|
3627
3627
|
wrapCustomCellRenderers: !1,
|
|
3628
3628
|
onGridApiChange: M,
|
|
@@ -3632,7 +3632,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3632
3632
|
additionalGridOptions: I,
|
|
3633
3633
|
ariaLabel: a,
|
|
3634
3634
|
...S ? {
|
|
3635
|
-
selectionMode:
|
|
3635
|
+
selectionMode: tn.MULTIPLE,
|
|
3636
3636
|
selectedRowIds: v,
|
|
3637
3637
|
onSelectionChange: ee,
|
|
3638
3638
|
selectRowLabel: b,
|
|
@@ -3640,11 +3640,11 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3640
3640
|
} : { selectedRowIds: F }
|
|
3641
3641
|
})
|
|
3642
3642
|
});
|
|
3643
|
-
},
|
|
3643
|
+
}, sa = "w-[320px]", ca = {
|
|
3644
3644
|
divider: "_divider_k154m_1",
|
|
3645
3645
|
sectionHeader: "_sectionHeader_k154m_5"
|
|
3646
|
-
},
|
|
3647
|
-
let [f, p] = K(null), m = f ? r.find((e) => e.key === f) : void 0, h = m?.children ?? r, g = i ?
|
|
3646
|
+
}, la = ({ 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" }) => {
|
|
3647
|
+
let [f, p] = K(null), m = f ? r.find((e) => e.key === f) : void 0, h = m?.children ?? r, g = i ? vn(h, i.value) : h, _ = B({
|
|
3648
3648
|
"--cat-create-menu-divider": u?.divider,
|
|
3649
3649
|
"--cat-create-menu-section-header-text": u?.sectionHeaderText
|
|
3650
3650
|
}), v = () => {
|
|
@@ -3680,10 +3680,10 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3680
3680
|
style: _,
|
|
3681
3681
|
children: g.map((e) => e.type === Ae.Divider ? /* @__PURE__ */ Z("div", {
|
|
3682
3682
|
role: "separator",
|
|
3683
|
-
className: V("my-1",
|
|
3683
|
+
className: V("my-1", ca.divider, e.className)
|
|
3684
3684
|
}, e.key) : e.type === Ae.PlainText ? /* @__PURE__ */ Z("div", {
|
|
3685
3685
|
role: "presentation",
|
|
3686
|
-
className: V("px-3 py-2",
|
|
3686
|
+
className: V("px-3 py-2", ca.sectionHeader, d, e.className),
|
|
3687
3687
|
children: e.label
|
|
3688
3688
|
}, e.key) : /* @__PURE__ */ Z(Je, {
|
|
3689
3689
|
role: "menuitem",
|
|
@@ -3708,7 +3708,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3708
3708
|
})
|
|
3709
3709
|
]
|
|
3710
3710
|
});
|
|
3711
|
-
},
|
|
3711
|
+
}, ua = ({ 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 = Ce.Primary, colors: u, sectionHeaderClassName: d, isFloating: f = !1 }) => {
|
|
3712
3712
|
let [p, m] = K(!1), h = ue(), g = /* @__PURE__ */ Z(bt, {
|
|
3713
3713
|
size: J.SM,
|
|
3714
3714
|
stroke: Y,
|
|
@@ -3737,7 +3737,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3737
3737
|
"aria-haspopup": "dialog",
|
|
3738
3738
|
"aria-expanded": p,
|
|
3739
3739
|
onClick: () => m(!0)
|
|
3740
|
-
}), /* @__PURE__ */ Z(
|
|
3740
|
+
}), /* @__PURE__ */ Z(la, {
|
|
3741
3741
|
open: p,
|
|
3742
3742
|
onClose: n,
|
|
3743
3743
|
title: e,
|
|
@@ -3778,7 +3778,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3778
3778
|
maxVisibleItems: 7,
|
|
3779
3779
|
placement: "bottom-end",
|
|
3780
3780
|
matchReferenceWidth: !1,
|
|
3781
|
-
listClassName:
|
|
3781
|
+
listClassName: sa
|
|
3782
3782
|
}
|
|
3783
3783
|
});
|
|
3784
3784
|
if (!t?.length) {
|
|
@@ -3806,16 +3806,16 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3806
3806
|
open: p,
|
|
3807
3807
|
onOpenChange: m
|
|
3808
3808
|
});
|
|
3809
|
-
},
|
|
3809
|
+
}, da = ({ title: e, description: t, createButton: n, titleClassName: r, descriptionClassName: i }) => /* @__PURE__ */ Z(Qe, {
|
|
3810
3810
|
title: e,
|
|
3811
3811
|
description: t,
|
|
3812
3812
|
titleClassName: r,
|
|
3813
3813
|
descriptionClassName: i,
|
|
3814
|
-
action: n == null ? void 0 : /* @__PURE__ */ Z(
|
|
3814
|
+
action: n == null ? void 0 : /* @__PURE__ */ Z(ua, {
|
|
3815
3815
|
variant: Ce.Secondary,
|
|
3816
3816
|
...n
|
|
3817
3817
|
})
|
|
3818
|
-
}),
|
|
3818
|
+
}), fa = ({ label: e, onClick: t, className: n }) => /* @__PURE__ */ Z(Fe, {
|
|
3819
3819
|
icon: /* @__PURE__ */ Z(_t, {
|
|
3820
3820
|
size: J.LG,
|
|
3821
3821
|
stroke: Y,
|
|
@@ -3825,7 +3825,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3825
3825
|
tooltipProps: { tooltip: e },
|
|
3826
3826
|
onClick: t,
|
|
3827
3827
|
className: n
|
|
3828
|
-
}),
|
|
3828
|
+
}), pa = {
|
|
3829
3829
|
title: "Browse settings",
|
|
3830
3830
|
view: "View",
|
|
3831
3831
|
sorting: "Sorting",
|
|
@@ -3839,7 +3839,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3839
3839
|
back: "Back",
|
|
3840
3840
|
close: "Close",
|
|
3841
3841
|
formatFilterCount: (e, t) => `${e} of ${t}`
|
|
3842
|
-
},
|
|
3842
|
+
}, ma = {
|
|
3843
3843
|
filterBtn: "_filterBtn_1brte_7",
|
|
3844
3844
|
filterBtnActive: "_filterBtnActive_1brte_24",
|
|
3845
3845
|
filterBtnOpen: "_filterBtnOpen_1brte_28",
|
|
@@ -3851,10 +3851,10 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3851
3851
|
divider: "_divider_1brte_63",
|
|
3852
3852
|
sectionLabel: "_sectionLabel_1brte_67",
|
|
3853
3853
|
footer: "_footer_1brte_71"
|
|
3854
|
-
},
|
|
3854
|
+
}, ha = (e, n, r, i, a) => {
|
|
3855
3855
|
let o = e.size > 0;
|
|
3856
3856
|
return r && o ? `${i} · ${e.size}` : r ? i : o ? t(e, n, a) : a;
|
|
3857
|
-
},
|
|
3857
|
+
}, ga = ({ 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 }) => {
|
|
3858
3858
|
let p = (r ?? !1) || e.size > 0, [m, h] = K(!1), g = B({
|
|
3859
3859
|
"--cat-filter-btn-bg": f?.buttonBackground,
|
|
3860
3860
|
"--cat-filter-btn-border": f?.buttonBorder,
|
|
@@ -3872,7 +3872,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3872
3872
|
"--cat-filter-section-label": f?.sectionLabel,
|
|
3873
3873
|
"--cat-filter-divider": f?.divider,
|
|
3874
3874
|
"--cat-filter-footer-border": f?.footerBorder
|
|
3875
|
-
}), _ = W(() => n == null ? [] : [...n].sort(), [n]), v =
|
|
3875
|
+
}), _ = W(() => n == null ? [] : [...n].sort(), [n]), v = ha(e, n, r, a, s), [y, b] = K(() => new Set(e)), [x, S] = K(r ?? !1);
|
|
3876
3876
|
U(() => {
|
|
3877
3877
|
m && (b(new Set(e)), S(r ?? !1));
|
|
3878
3878
|
}, [
|
|
@@ -3919,7 +3919,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3919
3919
|
...g,
|
|
3920
3920
|
maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)"
|
|
3921
3921
|
},
|
|
3922
|
-
className: V("flex min-w-[360px] flex-col rounded-xl p-[6px]",
|
|
3922
|
+
className: V("flex min-w-[360px] flex-col rounded-xl p-[6px]", ma.overlay),
|
|
3923
3923
|
onKeyDown: M,
|
|
3924
3924
|
children: [/* @__PURE__ */ Q("div", {
|
|
3925
3925
|
role: "menu",
|
|
@@ -3931,7 +3931,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3931
3931
|
mark: Ye.Checkbox,
|
|
3932
3932
|
selected: x,
|
|
3933
3933
|
label: a,
|
|
3934
|
-
labelClassName: V(
|
|
3934
|
+
labelClassName: V(ma.rowLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
3935
3935
|
className: "shrink-0",
|
|
3936
3936
|
tabIndex: w === 0 ? 0 : -1,
|
|
3937
3937
|
ref: (e) => {
|
|
@@ -3941,11 +3941,11 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3941
3941
|
}), _.length > 0 && /* @__PURE__ */ Q(X, { children: [
|
|
3942
3942
|
/* @__PURE__ */ Z("div", {
|
|
3943
3943
|
role: "separator",
|
|
3944
|
-
className: V("my-1 h-px",
|
|
3944
|
+
className: V("my-1 h-px", ma.divider),
|
|
3945
3945
|
"aria-hidden": !0
|
|
3946
3946
|
}),
|
|
3947
3947
|
/* @__PURE__ */ Z("div", {
|
|
3948
|
-
className: V("px-[10px] pt-[10px] pb-1", d?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text",
|
|
3948
|
+
className: V("px-[10px] pt-[10px] pb-1", d?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", ma.sectionLabel),
|
|
3949
3949
|
"aria-hidden": !0,
|
|
3950
3950
|
children: o
|
|
3951
3951
|
}),
|
|
@@ -3959,7 +3959,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3959
3959
|
mark: Ye.Checkbox,
|
|
3960
3960
|
selected: n,
|
|
3961
3961
|
label: e,
|
|
3962
|
-
labelClassName:
|
|
3962
|
+
labelClassName: ma.rowLabel,
|
|
3963
3963
|
className: "shrink-0",
|
|
3964
3964
|
tabIndex: w === r ? 0 : -1,
|
|
3965
3965
|
ref: (e) => {
|
|
@@ -3971,7 +3971,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3971
3971
|
})
|
|
3972
3972
|
] })]
|
|
3973
3973
|
}), /* @__PURE__ */ Q("div", {
|
|
3974
|
-
className: V("mt-1 flex shrink-0 items-center px-1 py-3",
|
|
3974
|
+
className: V("mt-1 flex shrink-0 items-center px-1 py-3", ma.footer),
|
|
3975
3975
|
ref: O,
|
|
3976
3976
|
children: [/* @__PURE__ */ Z(Re, {
|
|
3977
3977
|
label: c,
|
|
@@ -3991,60 +3991,60 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
3991
3991
|
iconBefore: /* @__PURE__ */ Z(Et, {
|
|
3992
3992
|
size: J.SM,
|
|
3993
3993
|
stroke: Y,
|
|
3994
|
-
className: V("shrink-0",
|
|
3994
|
+
className: V("shrink-0", ma.filterBtnFunnel),
|
|
3995
3995
|
"aria-hidden": !0
|
|
3996
3996
|
}),
|
|
3997
3997
|
label: v,
|
|
3998
|
-
textClassName: V(
|
|
3998
|
+
textClassName: V(ma.filterBtnLabel, d?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
3999
3999
|
iconAfter: /* @__PURE__ */ Z(bt, {
|
|
4000
4000
|
size: 14,
|
|
4001
4001
|
stroke: Y,
|
|
4002
|
-
className: V("shrink-0 transition-transform duration-150",
|
|
4002
|
+
className: V("shrink-0 transition-transform duration-150", ma.filterBtnChevron, m && "rotate-180"),
|
|
4003
4003
|
"aria-hidden": !0
|
|
4004
4004
|
}),
|
|
4005
|
-
className: V("h-12 shrink-0 gap-[7px] rounded-lg! px-[18px] whitespace-nowrap",
|
|
4005
|
+
className: V("h-12 shrink-0 gap-[7px] rounded-lg! px-[18px] whitespace-nowrap", ma.filterBtn, p && ma.filterBtnActive, m && ma.filterBtnOpen)
|
|
4006
4006
|
})
|
|
4007
4007
|
});
|
|
4008
|
-
},
|
|
4008
|
+
}, _a = /* @__PURE__ */ function(e) {
|
|
4009
4009
|
return e.Root = "root", e.View = "view", e.Sorting = "sorting", e.Filtering = "filtering", e;
|
|
4010
|
-
}({}),
|
|
4010
|
+
}({}), va = /* @__PURE__ */ Z(St, {
|
|
4011
4011
|
size: J.SM,
|
|
4012
4012
|
stroke: Y,
|
|
4013
4013
|
className: "rtl:scale-x-[-1]",
|
|
4014
4014
|
"aria-hidden": !0
|
|
4015
|
-
}),
|
|
4016
|
-
let [h, g] = K(
|
|
4017
|
-
g(
|
|
4015
|
+
}), ya = ({ 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 }) => {
|
|
4016
|
+
let [h, g] = K(_a.Root), [_, v] = K(() => /* @__PURE__ */ new Set()), [y, b] = K(!1), x = W(() => u == null ? [] : [...u].sort(), [u]), S = i != null && i.length > 0, C = s.size + +!!d, w = () => {
|
|
4017
|
+
g(_a.Root), t();
|
|
4018
4018
|
}, T = () => {
|
|
4019
|
-
v(new Set(s)), b(d ?? !1), g(
|
|
4019
|
+
v(new Set(s)), b(d ?? !1), g(_a.Filtering);
|
|
4020
4020
|
}, E = () => {
|
|
4021
4021
|
c(_), f?.(y), w();
|
|
4022
4022
|
}, D = () => {
|
|
4023
4023
|
c(/* @__PURE__ */ new Set()), f?.(!1), w();
|
|
4024
4024
|
}, O = [{
|
|
4025
|
-
value:
|
|
4025
|
+
value: sn.Grid,
|
|
4026
4026
|
label: p.gridView,
|
|
4027
4027
|
Icon: kt
|
|
4028
4028
|
}, {
|
|
4029
|
-
value:
|
|
4029
|
+
value: sn.Cards,
|
|
4030
4030
|
label: p.listView,
|
|
4031
4031
|
Icon: At
|
|
4032
4032
|
}], k = {
|
|
4033
|
-
[
|
|
4034
|
-
[
|
|
4035
|
-
[
|
|
4036
|
-
[
|
|
4037
|
-
}, A = h ===
|
|
4033
|
+
[_a.Root]: p.title,
|
|
4034
|
+
[_a.View]: p.view,
|
|
4035
|
+
[_a.Sorting]: p.sorting,
|
|
4036
|
+
[_a.Filtering]: p.filtering
|
|
4037
|
+
}, A = h === _a.Filtering;
|
|
4038
4038
|
return /* @__PURE__ */ Q(q, {
|
|
4039
4039
|
open: e,
|
|
4040
4040
|
title: k[h],
|
|
4041
|
-
onBack: h ===
|
|
4041
|
+
onBack: h === _a.Root ? void 0 : () => g(_a.Root),
|
|
4042
4042
|
backAriaLabel: p.back,
|
|
4043
4043
|
closeAriaLabel: p.close,
|
|
4044
4044
|
onClose: w,
|
|
4045
4045
|
bodyClassName: V(A && "flex flex-col"),
|
|
4046
4046
|
children: [
|
|
4047
|
-
h ===
|
|
4047
|
+
h === _a.Root && /* @__PURE__ */ Q("div", {
|
|
4048
4048
|
role: "menu",
|
|
4049
4049
|
"aria-label": p.title,
|
|
4050
4050
|
className: "p-2",
|
|
@@ -4053,27 +4053,27 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4053
4053
|
role: "menuitem",
|
|
4054
4054
|
"aria-haspopup": "menu",
|
|
4055
4055
|
label: p.view,
|
|
4056
|
-
trailing:
|
|
4057
|
-
onClick: () => g(
|
|
4056
|
+
trailing: va,
|
|
4057
|
+
onClick: () => g(_a.View)
|
|
4058
4058
|
}),
|
|
4059
4059
|
S && /* @__PURE__ */ Z(Je, {
|
|
4060
4060
|
role: "menuitem",
|
|
4061
4061
|
"aria-haspopup": "menu",
|
|
4062
4062
|
label: p.sorting,
|
|
4063
|
-
trailing:
|
|
4064
|
-
onClick: () => g(
|
|
4063
|
+
trailing: va,
|
|
4064
|
+
onClick: () => g(_a.Sorting)
|
|
4065
4065
|
}),
|
|
4066
4066
|
/* @__PURE__ */ Z(Je, {
|
|
4067
4067
|
role: "menuitem",
|
|
4068
4068
|
"aria-haspopup": "menu",
|
|
4069
4069
|
label: p.filtering,
|
|
4070
4070
|
description: C > 0 ? p.formatFilterCount(C, x.length + 1) : void 0,
|
|
4071
|
-
trailing:
|
|
4071
|
+
trailing: va,
|
|
4072
4072
|
onClick: T
|
|
4073
4073
|
})
|
|
4074
4074
|
]
|
|
4075
4075
|
}),
|
|
4076
|
-
h ===
|
|
4076
|
+
h === _a.View && /* @__PURE__ */ Z("div", {
|
|
4077
4077
|
role: "menu",
|
|
4078
4078
|
"aria-label": p.view,
|
|
4079
4079
|
className: "p-2",
|
|
@@ -4093,7 +4093,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4093
4093
|
}
|
|
4094
4094
|
}, e))
|
|
4095
4095
|
}),
|
|
4096
|
-
h ===
|
|
4096
|
+
h === _a.Sorting && S && /* @__PURE__ */ Z("div", {
|
|
4097
4097
|
role: "menu",
|
|
4098
4098
|
"aria-label": p.sorting,
|
|
4099
4099
|
className: "p-2",
|
|
@@ -4118,17 +4118,17 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4118
4118
|
mark: Ye.Checkbox,
|
|
4119
4119
|
selected: y,
|
|
4120
4120
|
label: p.myApps,
|
|
4121
|
-
labelClassName:
|
|
4121
|
+
labelClassName: ma.rowLabel,
|
|
4122
4122
|
className: "shrink-0",
|
|
4123
4123
|
onClick: () => b(!y)
|
|
4124
4124
|
}), x.length > 0 && /* @__PURE__ */ Q(X, { children: [
|
|
4125
4125
|
/* @__PURE__ */ Z("div", {
|
|
4126
4126
|
role: "separator",
|
|
4127
|
-
className: V("my-1 h-px",
|
|
4127
|
+
className: V("my-1 h-px", ma.divider),
|
|
4128
4128
|
"aria-hidden": !0
|
|
4129
4129
|
}),
|
|
4130
4130
|
/* @__PURE__ */ Z("div", {
|
|
4131
|
-
className: V("px-[10px] pt-[10px] pb-1", m?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text",
|
|
4131
|
+
className: V("px-[10px] pt-[10px] pb-1", m?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", ma.sectionLabel),
|
|
4132
4132
|
"aria-hidden": !0,
|
|
4133
4133
|
children: p.topics
|
|
4134
4134
|
}),
|
|
@@ -4140,14 +4140,14 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4140
4140
|
mark: Ye.Checkbox,
|
|
4141
4141
|
selected: t,
|
|
4142
4142
|
label: e,
|
|
4143
|
-
labelClassName:
|
|
4143
|
+
labelClassName: ma.rowLabel,
|
|
4144
4144
|
className: "shrink-0",
|
|
4145
4145
|
onClick: () => v(l(e, _))
|
|
4146
4146
|
}, e);
|
|
4147
4147
|
})
|
|
4148
4148
|
] })]
|
|
4149
4149
|
}), /* @__PURE__ */ Q("div", {
|
|
4150
|
-
className: V("flex shrink-0 items-center gap-3 px-4 py-3",
|
|
4150
|
+
className: V("flex shrink-0 items-center gap-3 px-4 py-3", ma.footer),
|
|
4151
4151
|
children: [/* @__PURE__ */ Z(Re, {
|
|
4152
4152
|
label: p.clear,
|
|
4153
4153
|
className: "flex-1",
|
|
@@ -4160,23 +4160,23 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4160
4160
|
})] })
|
|
4161
4161
|
]
|
|
4162
4162
|
});
|
|
4163
|
-
},
|
|
4163
|
+
}, ba = {
|
|
4164
4164
|
section: "_section_mk15x_1",
|
|
4165
4165
|
divider: "_divider_mk15x_5",
|
|
4166
4166
|
settingsDot: "_settingsDot_mk15x_9",
|
|
4167
4167
|
searchField: "_searchField_mk15x_17"
|
|
4168
|
-
},
|
|
4168
|
+
}, xa = /* @__PURE__ */ new Set(), Sa = ({ 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 }) => {
|
|
4169
4169
|
let E = ue(), D = G(null), O = G(null), k = G(null), A = G(!1), j = G(E), [M, N] = K(!1);
|
|
4170
4170
|
_e(() => {
|
|
4171
4171
|
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()));
|
|
4172
4172
|
}, [E, M]);
|
|
4173
4173
|
let P = (b ?? !1) || (_?.size ?? 0) > 0, ee = {
|
|
4174
|
-
...
|
|
4175
|
-
myApps: C ??
|
|
4176
|
-
topics: w ??
|
|
4174
|
+
...pa,
|
|
4175
|
+
myApps: C ?? pa.myApps,
|
|
4176
|
+
topics: w ?? pa.topics,
|
|
4177
4177
|
...T
|
|
4178
4178
|
}, F = a?.typography?.titleClassName ?? "dial-body-semi-text", I = a?.typography?.countClassName ?? "dial-tiny-semi-text", L = W(() => [{
|
|
4179
|
-
value:
|
|
4179
|
+
value: sn.Grid,
|
|
4180
4180
|
icon: /* @__PURE__ */ Z(kt, {
|
|
4181
4181
|
size: J.SM,
|
|
4182
4182
|
"aria-hidden": !0,
|
|
@@ -4184,7 +4184,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4184
4184
|
}),
|
|
4185
4185
|
"aria-label": u
|
|
4186
4186
|
}, {
|
|
4187
|
-
value:
|
|
4187
|
+
value: sn.Cards,
|
|
4188
4188
|
icon: /* @__PURE__ */ Z(At, {
|
|
4189
4189
|
size: J.SM,
|
|
4190
4190
|
"aria-hidden": !0,
|
|
@@ -4234,7 +4234,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4234
4234
|
value: t,
|
|
4235
4235
|
onChange: n,
|
|
4236
4236
|
items: L
|
|
4237
|
-
}), m != null && m.length > 0 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", { className: V("h-4 w-px shrink-0",
|
|
4237
|
+
}), m != null && m.length > 0 && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", { className: V("h-4 w-px shrink-0", ba.divider) }), /* @__PURE__ */ Z(Se, {
|
|
4238
4238
|
items: re,
|
|
4239
4239
|
label: ne,
|
|
4240
4240
|
variant: Ce.Primary,
|
|
@@ -4250,7 +4250,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4250
4250
|
value: o,
|
|
4251
4251
|
onChange: te,
|
|
4252
4252
|
size: Me.Large,
|
|
4253
|
-
wrapperClassName:
|
|
4253
|
+
wrapperClassName: ba.searchField,
|
|
4254
4254
|
placeholder: c,
|
|
4255
4255
|
"aria-label": c,
|
|
4256
4256
|
inputRef: l
|
|
@@ -4270,10 +4270,10 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4270
4270
|
"aria-hidden": !0
|
|
4271
4271
|
})
|
|
4272
4272
|
}), P && /* @__PURE__ */ Z("span", {
|
|
4273
|
-
className: V("pointer-events-none absolute inset-e-2.5 top-2.5 size-2 rounded-full",
|
|
4273
|
+
className: V("pointer-events-none absolute inset-e-2.5 top-2.5 size-2 rounded-full", ba.settingsDot),
|
|
4274
4274
|
"aria-hidden": !0
|
|
4275
4275
|
})]
|
|
4276
|
-
}), /* @__PURE__ */ Z(
|
|
4276
|
+
}), /* @__PURE__ */ Z(ya, {
|
|
4277
4277
|
open: M,
|
|
4278
4278
|
onClose: () => N(!1),
|
|
4279
4279
|
viewMode: t,
|
|
@@ -4281,15 +4281,15 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4281
4281
|
sortOptions: m,
|
|
4282
4282
|
sortKey: p,
|
|
4283
4283
|
onSortChange: h,
|
|
4284
|
-
filters: _ ??
|
|
4284
|
+
filters: _ ?? xa,
|
|
4285
4285
|
onFiltersChange: v ?? (() => void 0),
|
|
4286
4286
|
filterValues: y,
|
|
4287
4287
|
isMyAppsActive: b,
|
|
4288
4288
|
onMyAppsChange: x,
|
|
4289
4289
|
labels: ee,
|
|
4290
4290
|
typography: a?.typography
|
|
4291
|
-
})] }) : /* @__PURE__ */ Z(
|
|
4292
|
-
checked: _ ??
|
|
4291
|
+
})] }) : /* @__PURE__ */ Z(ga, {
|
|
4292
|
+
checked: _ ?? xa,
|
|
4293
4293
|
onChange: v ?? (() => void 0),
|
|
4294
4294
|
values: y,
|
|
4295
4295
|
isMyAppsActive: b,
|
|
@@ -4303,15 +4303,15 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4303
4303
|
})]
|
|
4304
4304
|
})]
|
|
4305
4305
|
});
|
|
4306
|
-
},
|
|
4306
|
+
}, Ca = ({ 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 }) => {
|
|
4307
4307
|
let b = {
|
|
4308
4308
|
"--cat-browse-divider": r?.colors?.divider,
|
|
4309
4309
|
"--cat-browse-settings-dot": r?.colors?.settingsActiveDot
|
|
4310
4310
|
};
|
|
4311
4311
|
return /* @__PURE__ */ Z("section", {
|
|
4312
|
-
className: V("shrink-0 px-4",
|
|
4312
|
+
className: V("shrink-0 px-4", ba.section, pn.toolbar),
|
|
4313
4313
|
style: b,
|
|
4314
|
-
children: /* @__PURE__ */ Z(
|
|
4314
|
+
children: /* @__PURE__ */ Z(Sa, {
|
|
4315
4315
|
styles: r,
|
|
4316
4316
|
query: e,
|
|
4317
4317
|
onQueryChange: t,
|
|
@@ -4334,12 +4334,12 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4334
4334
|
...y
|
|
4335
4335
|
})
|
|
4336
4336
|
});
|
|
4337
|
-
},
|
|
4337
|
+
}, wa = {
|
|
4338
4338
|
root: "_root_1h83l_1",
|
|
4339
4339
|
heading: "_heading_1h83l_5",
|
|
4340
4340
|
headingTitle: "_headingTitle_1h83l_9"
|
|
4341
|
-
},
|
|
4342
|
-
let { typography: $e, headingRowClassName: et = "h-[64px]" } = Be ?? {}, tt =
|
|
4341
|
+
}, Ta = 3, Ea = 300, Da = ({ 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, getPublishDependencies: C, resolvePublishDependenciesLabels: w, resolvePublishApprovalLabels: T, publishVersionHistory: E, onPublishOpenChange: O, publishFolderItems: k, publishExpandedPaths: A, onPublishExpandedPathsChange: P, publishLoadingPaths: ee, getPublishDisabledReason: F, hasPublishWriteAccess: I, publishDefaultAuthor: L, onPublish: te, onPublishSuccess: ne, onPublishError: re, onCreatePublishFolder: ie, publishLabels: R, ruleSourceOptions: z, onFetchExistingRules: ae, shareOverlay: oe, isShareVisible: se, isSharePrimary: ce, onFetchDetails: B, renderCredentials: le, onEdit: de, onDownload: fe, isDownloadVisible: pe, isDownloadPrimary: he, onLoadContentFile: ge, onLoadContentFilePreview: _e, renderContentFilePreview: ve, renderContentFileTree: q, onDelete: ye, onUnshare: be, isUnshareVisible: xe, onRevokeShare: Se, onFetchRecipientsCount: Ce, isRevokeShareVisible: we, onUnpublish: Te, isUnpublishVisible: Ee, onLogin: De, onLogout: J, onCreateClick: Y, createOptions: Oe, createSearch: ke, createMenuByTab: Ae, hideCreateButton: je = !1, hidePageTitle: Me = !1, isReadonly: Ne = !1, initialViewMode: Pe = sn.Grid, isFullWidth: Fe = !1, isFavoritesPaginationHidden: Ie = !1, selectedItemId: Le, onCardClick: Re, isLoading: ze, styles: Be, detailsTexts: Ve, detailsLimitsFooterNote: He, initialDetailsItemId: Ue, sortKey: We, onSortChange: Ge, filterTopics: Ke, onFilterTopicsChange: qe, isMyAppsActive: Je, onMyAppsActiveChange: Ye, activeTab: Xe, onActiveTabChange: Ze, renderEmptyState: Qe }) => {
|
|
4342
|
+
let { typography: $e, headingRowClassName: et = "h-[64px]" } = Be ?? {}, tt = xn(Be), nt = ue(), rt = a?.pageTitle ?? "Catalog", it = a?.createLabel ?? "Create", at = a?.favoritesTitle ?? "Your favorites", ot = a?.browseTitle ?? "Browse", st = a?.searchPlaceholder ?? "Search models, tools, agents…", ct = a?.noResultsTitle ?? (() => "No items found"), dt = a?.myAppsEmptyTitle ?? (() => "No personal items yet"), ft = a?.myAppsEmptyDescription ?? "Create your first one, it'll show up right here.", pt = a?.featuredLabel ?? "Featured", mt = a?.gridViewLabel ?? "Grid view", ht = a?.listViewLabel ?? "List view", gt = a?.viewToggleLabel ?? "View mode", _t = a?.ariaLabel ?? "Catalog", vt = a?.scrollToTopLabel ?? "Scroll to top", yt = a?.sortLabel ?? "Sort", bt = [
|
|
4343
4343
|
{
|
|
4344
4344
|
value: o.RecentlyUpdated,
|
|
4345
4345
|
label: a?.sortRecentlyUpdatedLabel ?? "Recently Updated"
|
|
@@ -4352,7 +4352,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4352
4352
|
value: o.NameAZ,
|
|
4353
4353
|
label: a?.sortNameAZLabel ?? "Name A-Z"
|
|
4354
4354
|
}
|
|
4355
|
-
], [xt, St] = K(""), [Ct, wt] = K(Pe), [Tt, Et] = K(Pe ===
|
|
4355
|
+
], [xt, St] = K(""), [Ct, wt] = K(Pe), [Tt, Et] = K(Pe === sn.Cards ? "shown" : "unmounted"), [Dt, Ot] = K(o.RecentlyUpdated), [kt, At] = K(/* @__PURE__ */ new Set()), [jt, Mt] = K(!1), Nt = We ?? Dt, Pt = Ke ?? kt, Ft = Je ?? jt, It = H((e) => {
|
|
4356
4356
|
let t = e;
|
|
4357
4357
|
Ot(t), Ge?.(t);
|
|
4358
4358
|
}, [Ge]), Lt = H((e) => {
|
|
@@ -4379,7 +4379,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4379
4379
|
}, [Bt.length, Yt]);
|
|
4380
4380
|
let Zt = H(() => {
|
|
4381
4381
|
Xt(!1);
|
|
4382
|
-
}, []), Qt = Yt && Bt.length === 0, [$t, en] = K(null), [tn, nn] = K(!1), [rn,
|
|
4382
|
+
}, []), Qt = Yt && Bt.length === 0, [$t, en] = K(null), [tn, nn] = K(!1), [rn, an] = K(void 0), [$, on] = K(!1), cn = G(null);
|
|
4383
4383
|
U(() => () => {
|
|
4384
4384
|
cn.current !== null && clearTimeout(cn.current);
|
|
4385
4385
|
}, []);
|
|
@@ -4387,32 +4387,32 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4387
4387
|
ln.current = e.id;
|
|
4388
4388
|
let t = ++un.current;
|
|
4389
4389
|
if (B) {
|
|
4390
|
-
|
|
4390
|
+
on(!0);
|
|
4391
4391
|
try {
|
|
4392
4392
|
let n = await B(e);
|
|
4393
|
-
return un.current === t &&
|
|
4393
|
+
return un.current === t && an(n), n;
|
|
4394
4394
|
} finally {
|
|
4395
|
-
un.current === t &&
|
|
4395
|
+
un.current === t && on(!1);
|
|
4396
4396
|
}
|
|
4397
4397
|
}
|
|
4398
|
-
}, [B]),
|
|
4399
|
-
for (let n = 0; n <
|
|
4398
|
+
}, [B]), fn = H(async (e) => (cn.current !== null && (clearTimeout(cn.current), cn.current = null, nn(!0)), en(e), an(void 0), dn(e)), [dn]), mn = H(async (e, t) => {
|
|
4399
|
+
for (let n = 0; n < Ta; n++) {
|
|
4400
4400
|
if (ln.current !== e.id || t(await dn(e))) return;
|
|
4401
|
-
n < 2 && await p(
|
|
4401
|
+
n < 2 && await p(Ea);
|
|
4402
4402
|
}
|
|
4403
|
-
}, [dn]),
|
|
4403
|
+
}, [dn]), hn = G(null);
|
|
4404
4404
|
U(() => {
|
|
4405
4405
|
if (!Ue) {
|
|
4406
|
-
|
|
4406
|
+
hn.current = null;
|
|
4407
4407
|
return;
|
|
4408
4408
|
}
|
|
4409
|
-
if (
|
|
4409
|
+
if (hn.current === Ue) return;
|
|
4410
4410
|
let t = e.find((e) => e.id === Ue);
|
|
4411
|
-
t && (
|
|
4411
|
+
t && (hn.current = Ue, fn(t));
|
|
4412
4412
|
}, [
|
|
4413
4413
|
Ue,
|
|
4414
4414
|
e,
|
|
4415
|
-
|
|
4415
|
+
fn
|
|
4416
4416
|
]), U(() => {
|
|
4417
4417
|
if ($t == null) return;
|
|
4418
4418
|
let t = e.find((e) => e.id === $t.id);
|
|
@@ -4424,7 +4424,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4424
4424
|
De,
|
|
4425
4425
|
B,
|
|
4426
4426
|
mn
|
|
4427
|
-
]),
|
|
4427
|
+
]), vn = H(async (e, t) => {
|
|
4428
4428
|
await J?.(e, t), B && await mn(e, (e) => !D(e?.credentials, t.level));
|
|
4429
4429
|
}, [
|
|
4430
4430
|
J,
|
|
@@ -4432,7 +4432,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4432
4432
|
mn
|
|
4433
4433
|
]), Sn = H(() => {
|
|
4434
4434
|
nn(!1), ln.current = null, un.current += 1, cn.current !== null && clearTimeout(cn.current), cn.current = setTimeout(() => {
|
|
4435
|
-
cn.current = null, en(null),
|
|
4435
|
+
cn.current = null, en(null), an(void 0), on(!1);
|
|
4436
4436
|
}, 300);
|
|
4437
4437
|
}, []), Cn = W(() => {
|
|
4438
4438
|
if ($t == null) return null;
|
|
@@ -4469,20 +4469,20 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4469
4469
|
return () => cancelAnimationFrame(e);
|
|
4470
4470
|
}, [$t]);
|
|
4471
4471
|
let An = H((e) => {
|
|
4472
|
-
e ===
|
|
4473
|
-
}, []), jn = !je && !Ne, Mn = jn && nt, [Nn, Pn] = K(null), Fn = G(null), In = G(null), { isVisible: Ln, handleRowsScroll: Rn, scrollToTop: zn } =
|
|
4472
|
+
e === sn.Cards && Et("shown"), wt(e);
|
|
4473
|
+
}, []), jn = !je && !Ne, Mn = jn && nt, [Nn, Pn] = K(null), Fn = G(null), In = G(null), { isVisible: Ln, handleRowsScroll: Rn, scrollToTop: zn } = gn({
|
|
4474
4474
|
scrollBody: Nn,
|
|
4475
4475
|
searchInputRef: Fn,
|
|
4476
4476
|
listViewRef: In,
|
|
4477
|
-
isListView: Ct ===
|
|
4478
|
-
}), Bn = Yt && !Ne, Vn = xt !== "" || Pt.size > 0, Hn = Vn ? ct(xt, Kt) : _(a?.emptyTitle, Kt) ?? "No items yet", Un = Vn ? a?.noResultsDescription ?? "Try a different search term or check your filters." : _(a?.emptyDescription, Kt), { copyCodeAriaLabel:
|
|
4479
|
-
copyCodeAriaLabel:
|
|
4477
|
+
isListView: Ct === sn.Cards
|
|
4478
|
+
}), Bn = Yt && !Ne, Vn = xt !== "" || Pt.size > 0, Hn = Vn ? ct(xt, Kt) : _(a?.emptyTitle, Kt) ?? "No items yet", Un = Vn ? a?.noResultsDescription ?? "Try a different search term or check your filters." : _(a?.emptyDescription, Kt), { copyCodeAriaLabel: Wn, copiedCodeStatusLabel: Kn, downloadCodeAriaLabel: qn, tableScrollRegionAriaLabel: Jn, mathScrollRegionAriaLabel: Yn } = Ve ?? {}, Xn = W(() => bn({
|
|
4479
|
+
copyCodeAriaLabel: Wn,
|
|
4480
4480
|
copiedCodeStatusLabel: Kn,
|
|
4481
4481
|
downloadCodeAriaLabel: qn,
|
|
4482
4482
|
tableScrollRegionAriaLabel: Jn,
|
|
4483
4483
|
mathScrollRegionAriaLabel: Yn
|
|
4484
4484
|
}), [
|
|
4485
|
-
|
|
4485
|
+
Wn,
|
|
4486
4486
|
Kn,
|
|
4487
4487
|
qn,
|
|
4488
4488
|
Jn,
|
|
@@ -4520,7 +4520,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4520
4520
|
closeLabel: a?.createMenuCloseLabel,
|
|
4521
4521
|
colors: Be?.colors?.createMenu,
|
|
4522
4522
|
sectionHeaderClassName: $e?.createMenuSectionHeaderClassName
|
|
4523
|
-
}, nr = Ae ?
|
|
4523
|
+
}, nr = Ae ? yn(Ae[Kt]) : tr, rr = jn && nr != null ? {
|
|
4524
4524
|
...tr,
|
|
4525
4525
|
...nr
|
|
4526
4526
|
} : void 0;
|
|
@@ -4529,19 +4529,19 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4529
4529
|
children: /* @__PURE__ */ Z(lt, { ariaLabel: a?.loadingLabel ?? "Loading…" })
|
|
4530
4530
|
}) : /* @__PURE__ */ Q("section", {
|
|
4531
4531
|
"aria-label": _t,
|
|
4532
|
-
className: V("relative flex size-full min-h-0 flex-1 flex-col",
|
|
4532
|
+
className: V("relative flex size-full min-h-0 flex-1 flex-col", wa.root, pn.root),
|
|
4533
4533
|
style: tt,
|
|
4534
4534
|
children: [
|
|
4535
4535
|
(!Me || jn) && /* @__PURE__ */ Z("div", {
|
|
4536
|
-
className: V("shrink-0",
|
|
4536
|
+
className: V("shrink-0", wa.heading),
|
|
4537
4537
|
children: /* @__PURE__ */ Q("div", {
|
|
4538
4538
|
className: V("flex w-full items-center justify-between px-4 desktop:px-8", !(Me && Mn) && et),
|
|
4539
4539
|
children: [!Me && /* @__PURE__ */ Z("h1", {
|
|
4540
|
-
className: V($e?.pageHeadingFontClassName ?? "dial-display2-text",
|
|
4540
|
+
className: V($e?.pageHeadingFontClassName ?? "dial-display2-text", wa.headingTitle),
|
|
4541
4541
|
children: rt
|
|
4542
4542
|
}), jn && /* @__PURE__ */ Z("div", {
|
|
4543
4543
|
className: Mn ? "absolute inset-e-4 bottom-4 z-10" : void 0,
|
|
4544
|
-
children: /* @__PURE__ */ Z(
|
|
4544
|
+
children: /* @__PURE__ */ Z(ua, {
|
|
4545
4545
|
...tr,
|
|
4546
4546
|
isFloating: Mn
|
|
4547
4547
|
})
|
|
@@ -4550,7 +4550,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4550
4550
|
}),
|
|
4551
4551
|
Ln && /* @__PURE__ */ Z("div", {
|
|
4552
4552
|
className: V("absolute inset-e-4 z-10", Mn ? "bottom-20" : "bottom-4"),
|
|
4553
|
-
children: /* @__PURE__ */ Z(
|
|
4553
|
+
children: /* @__PURE__ */ Z(fa, {
|
|
4554
4554
|
label: vt,
|
|
4555
4555
|
onClick: zn
|
|
4556
4556
|
})
|
|
@@ -4561,13 +4561,13 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4561
4561
|
children: [
|
|
4562
4562
|
Bn && /* @__PURE__ */ Z("div", {
|
|
4563
4563
|
className: "w-full px-4 desktop:px-8",
|
|
4564
|
-
children: /* @__PURE__ */ Z(
|
|
4564
|
+
children: /* @__PURE__ */ Z(Li, {
|
|
4565
4565
|
items: Bt,
|
|
4566
4566
|
totalCount: Bt.length,
|
|
4567
4567
|
title: at,
|
|
4568
4568
|
onToggleFavorite: c,
|
|
4569
4569
|
isFavoriteVisible: l,
|
|
4570
|
-
onItemClick: Re ??
|
|
4570
|
+
onItemClick: Re ?? fn,
|
|
4571
4571
|
isLeaving: Qt,
|
|
4572
4572
|
onExitComplete: Zt,
|
|
4573
4573
|
selectedItemId: Le,
|
|
@@ -4579,7 +4579,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4579
4579
|
}),
|
|
4580
4580
|
/* @__PURE__ */ Z("div", {
|
|
4581
4581
|
className: "w-full pt-6 desktop:px-4",
|
|
4582
|
-
children: /* @__PURE__ */ Z(
|
|
4582
|
+
children: /* @__PURE__ */ Z(Ca, {
|
|
4583
4583
|
totalCount: Dn.length,
|
|
4584
4584
|
viewMode: Ct,
|
|
4585
4585
|
onViewModeChange: An,
|
|
@@ -4626,20 +4626,20 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4626
4626
|
className: V(On.length > 0 ? ["w-full flex-1 px-4 py-6 desktop:px-8", !Fe && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", On.length === 0 && "px-4 py-6 desktop:px-8"),
|
|
4627
4627
|
children: [
|
|
4628
4628
|
$n != null && $n,
|
|
4629
|
-
$n == null && er && /* @__PURE__ */ Z(
|
|
4629
|
+
$n == null && er && /* @__PURE__ */ Z(da, {
|
|
4630
4630
|
title: dt(Kt),
|
|
4631
4631
|
description: ft,
|
|
4632
4632
|
createButton: rr
|
|
4633
4633
|
}),
|
|
4634
4634
|
$n == null && !er && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", {
|
|
4635
|
-
inert: Ct !==
|
|
4636
|
-
className: V(On.length > 0 ? "pb-8" : "size-full flex-1", Ct !==
|
|
4637
|
-
children: /* @__PURE__ */ Z(
|
|
4635
|
+
inert: Ct !== sn.Grid,
|
|
4636
|
+
className: V(On.length > 0 ? "pb-8" : "size-full flex-1", Ct !== sn.Grid && "hidden"),
|
|
4637
|
+
children: /* @__PURE__ */ Z(Gn, {
|
|
4638
4638
|
items: On,
|
|
4639
4639
|
query: xt,
|
|
4640
4640
|
onToggleFavorite: c,
|
|
4641
4641
|
isFavoriteVisible: l,
|
|
4642
|
-
onItemClick: Re ??
|
|
4642
|
+
onItemClick: Re ?? fn,
|
|
4643
4643
|
titles: Zn,
|
|
4644
4644
|
selectedItemId: Le,
|
|
4645
4645
|
isReadonly: Ne,
|
|
@@ -4649,9 +4649,9 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4649
4649
|
activeTab: Kt
|
|
4650
4650
|
})
|
|
4651
4651
|
}), Tt !== "unmounted" && /* @__PURE__ */ Z("div", {
|
|
4652
|
-
inert: Ct !==
|
|
4653
|
-
className: V(Ct ===
|
|
4654
|
-
children: /* @__PURE__ */ Z(
|
|
4652
|
+
inert: Ct !== sn.Cards,
|
|
4653
|
+
className: V(Ct === sn.Cards && "h-full min-h-[360px] pb-8", Ct !== sn.Cards && (Tt === "prepared" ? "invisible h-0 overflow-hidden" : "hidden")),
|
|
4654
|
+
children: /* @__PURE__ */ Z(oa, {
|
|
4655
4655
|
ref: In,
|
|
4656
4656
|
onRowsScroll: Rn,
|
|
4657
4657
|
type: Kt,
|
|
@@ -4664,7 +4664,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4664
4664
|
onToggleFavorite: c,
|
|
4665
4665
|
isFavoriteVisible: l,
|
|
4666
4666
|
columnVisibility: u,
|
|
4667
|
-
onItemClick: Re ??
|
|
4667
|
+
onItemClick: Re ?? fn,
|
|
4668
4668
|
selectedItemId: Le,
|
|
4669
4669
|
credentialsBadgeLoggedOutLabel: Ve?.credentialsBadgeLoggedOutLabel,
|
|
4670
4670
|
isReadonly: Ne
|
|
@@ -4674,12 +4674,12 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4674
4674
|
})
|
|
4675
4675
|
]
|
|
4676
4676
|
}),
|
|
4677
|
-
Cn != null && /* @__PURE__ */ Z(
|
|
4677
|
+
Cn != null && /* @__PURE__ */ Z(ki, {
|
|
4678
4678
|
renderCredentials: le,
|
|
4679
4679
|
item: Cn,
|
|
4680
4680
|
isOpen: tn,
|
|
4681
4681
|
isStarred: kn,
|
|
4682
|
-
isDetailsLoading:
|
|
4682
|
+
isDetailsLoading: $,
|
|
4683
4683
|
isReadonly: Ne,
|
|
4684
4684
|
onClose: Sn,
|
|
4685
4685
|
onToggleFavorite: c,
|
|
@@ -4729,22 +4729,22 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4729
4729
|
onUnpublish: Te,
|
|
4730
4730
|
isUnpublishVisible: Ee,
|
|
4731
4731
|
onLogin: _n,
|
|
4732
|
-
onLogout:
|
|
4732
|
+
onLogout: vn,
|
|
4733
4733
|
texts: Ve,
|
|
4734
4734
|
limitsFooterNote: He,
|
|
4735
4735
|
styles: { colors: { featuredChipStyle: Be?.colors?.featuredChipStyle } }
|
|
4736
4736
|
})
|
|
4737
4737
|
]
|
|
4738
4738
|
});
|
|
4739
|
-
},
|
|
4739
|
+
}, Oa = /* @__PURE__ */ function(e) {
|
|
4740
4740
|
return e.Loading = "loading", e.Ready = "ready", e.Error = "error", e;
|
|
4741
|
-
}({}),
|
|
4741
|
+
}({}), ka = { footer: "_footer_3lud6_1" }, Aa = {
|
|
4742
4742
|
overlayClassName: "p-4 max-[767px]:p-0 !overflow-hidden",
|
|
4743
4743
|
className: "rounded-xl max-[767px]:h-full max-[767px]:rounded-none",
|
|
4744
4744
|
headerClassName: "px-6 py-4 max-[767px]:px-4 max-[767px]:py-3",
|
|
4745
4745
|
footerClassName: "px-6 py-4 max-[767px]:px-4 max-[767px]:py-3"
|
|
4746
|
-
},
|
|
4747
|
-
let [h, g] = K(""), [_, v] = K(() => /* @__PURE__ */ new Set()), [y, b] = K(!1), [x, S] = K(o.RecentlyUpdated), [C, w] = K(null), T = G(null), E = G(null), { isVisible: D, handleRowsScroll: O, scrollToTop: k } =
|
|
4746
|
+
}, ja = ({ 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 }) => {
|
|
4747
|
+
let [h, g] = K(""), [_, v] = K(() => /* @__PURE__ */ new Set()), [y, b] = K(!1), [x, S] = K(o.RecentlyUpdated), [C, w] = K(null), T = G(null), E = G(null), { isVisible: D, handleRowsScroll: O, scrollToTop: k } = gn({
|
|
4748
4748
|
scrollBody: C,
|
|
4749
4749
|
searchInputRef: E,
|
|
4750
4750
|
listViewRef: T,
|
|
@@ -4757,7 +4757,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4757
4757
|
T.current = e, typeof N == "function" ? N(e) : N != null && (N.current = e);
|
|
4758
4758
|
}, [N]), ee = p?.onRowsScroll, F = H((e) => {
|
|
4759
4759
|
O(e), ee?.(e);
|
|
4760
|
-
}, [O, ee]), I = n ===
|
|
4760
|
+
}, [O, ee]), I = n === Oa.Ready, L = I && !a, te = t.cancel ?? "Cancel", ne = t.add ?? "Add", re = W(() => j(e), [e]), R = W(() => c(e, {
|
|
4761
4761
|
search: h,
|
|
4762
4762
|
topics: _,
|
|
4763
4763
|
isMyOnly: y,
|
|
@@ -4809,7 +4809,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4809
4809
|
L,
|
|
4810
4810
|
ce
|
|
4811
4811
|
]), le = s == null ? void 0 : /* @__PURE__ */ Q("div", {
|
|
4812
|
-
className: pt("flex flex-wrap items-center justify-between gap-2 border-t",
|
|
4812
|
+
className: pt("flex flex-wrap items-center justify-between gap-2 border-t", ka.footer, Aa.footerClassName),
|
|
4813
4813
|
style: B({ "--cat-picker-footer-border": l?.footerBorder }),
|
|
4814
4814
|
children: [/* @__PURE__ */ Z("div", {
|
|
4815
4815
|
className: "flex flex-wrap items-center gap-4",
|
|
@@ -4827,7 +4827,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4827
4827
|
})]
|
|
4828
4828
|
})]
|
|
4829
4829
|
}), ue = () => {
|
|
4830
|
-
if (n ===
|
|
4830
|
+
if (n === Oa.Loading) return /* @__PURE__ */ Z("div", {
|
|
4831
4831
|
className: "flex items-center justify-center py-16",
|
|
4832
4832
|
children: /* @__PURE__ */ Z(lt, {
|
|
4833
4833
|
size: 32,
|
|
@@ -4835,7 +4835,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4835
4835
|
ariaLabel: t.loading ?? "Loading"
|
|
4836
4836
|
})
|
|
4837
4837
|
});
|
|
4838
|
-
if (n ===
|
|
4838
|
+
if (n === Oa.Error) return /* @__PURE__ */ Q("div", {
|
|
4839
4839
|
className: "flex flex-col items-center justify-center gap-3 py-8",
|
|
4840
4840
|
children: [/* @__PURE__ */ Z(Qe, {
|
|
4841
4841
|
title: t.failedToLoad ?? "Failed to load",
|
|
@@ -4855,7 +4855,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4855
4855
|
return m ? m(R, h) : /* @__PURE__ */ Q("div", {
|
|
4856
4856
|
ref: M,
|
|
4857
4857
|
className: "relative min-h-0 flex-1",
|
|
4858
|
-
children: [/* @__PURE__ */ Z(
|
|
4858
|
+
children: [/* @__PURE__ */ Z(oa, {
|
|
4859
4859
|
ariaLabel: t.catalog,
|
|
4860
4860
|
...p,
|
|
4861
4861
|
ref: P,
|
|
@@ -4864,7 +4864,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4864
4864
|
query: h
|
|
4865
4865
|
}), D && /* @__PURE__ */ Z("div", {
|
|
4866
4866
|
className: "absolute inset-e-4 bottom-4 z-10",
|
|
4867
|
-
children: /* @__PURE__ */ Z(
|
|
4867
|
+
children: /* @__PURE__ */ Z(fa, {
|
|
4868
4868
|
label: t.scrollToTop ?? "Scroll to top",
|
|
4869
4869
|
onClick: k
|
|
4870
4870
|
})
|
|
@@ -4877,7 +4877,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4877
4877
|
headerDivider: !0,
|
|
4878
4878
|
footerDivider: !0,
|
|
4879
4879
|
size: et.Lg,
|
|
4880
|
-
...
|
|
4880
|
+
...Aa,
|
|
4881
4881
|
closeAriaLabel: t.closeDialog ?? "Close dialog",
|
|
4882
4882
|
bodyClassName: "flex min-h-0 flex-col overflow-hidden px-6 py-2 h-[70vh] max-[767px]:h-auto max-[767px]:px-4",
|
|
4883
4883
|
mainButtons: V,
|
|
@@ -4916,7 +4916,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4916
4916
|
clearLabel: t.clearSearch ?? "Clear search",
|
|
4917
4917
|
inputRef: E
|
|
4918
4918
|
})
|
|
4919
|
-
}), /* @__PURE__ */ Z(
|
|
4919
|
+
}), /* @__PURE__ */ Z(ga, {
|
|
4920
4920
|
checked: _,
|
|
4921
4921
|
onChange: v,
|
|
4922
4922
|
values: re,
|
|
@@ -4931,14 +4931,14 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4931
4931
|
})]
|
|
4932
4932
|
}), ue()]
|
|
4933
4933
|
});
|
|
4934
|
-
},
|
|
4934
|
+
}, Ma = ({ type: e, items: t, attachedIds: n, labels: r, status: i, error: a, onRetry: o, listProps: s, renderFooterStart: c, onConfirm: l, onClose: d, headingClassName: f }) => {
|
|
4935
4935
|
let [p, m] = K(() => new Set(n)), h = W(() => new Set(t.map((e) => e.id)), [t]), { selectRow: g } = r, _ = H((e) => g ? g(e.name) : `Select ${e.name}`, [g]), v = H(() => l(u(n, p, h)), [
|
|
4936
4936
|
l,
|
|
4937
4937
|
n,
|
|
4938
4938
|
p,
|
|
4939
4939
|
h
|
|
4940
4940
|
]);
|
|
4941
|
-
return /* @__PURE__ */ Z(
|
|
4941
|
+
return /* @__PURE__ */ Z(ja, {
|
|
4942
4942
|
items: t,
|
|
4943
4943
|
labels: r,
|
|
4944
4944
|
status: i,
|
|
@@ -4951,18 +4951,18 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4951
4951
|
listProps: {
|
|
4952
4952
|
...s,
|
|
4953
4953
|
type: e,
|
|
4954
|
-
selectionMode:
|
|
4954
|
+
selectionMode: cn.Multiple,
|
|
4955
4955
|
selectedItemIds: p,
|
|
4956
4956
|
onSelectionChange: m,
|
|
4957
4957
|
selectRowAriaLabel: _,
|
|
4958
4958
|
selectAllAriaLabel: r.selectAll ?? "Select all"
|
|
4959
4959
|
}
|
|
4960
4960
|
});
|
|
4961
|
-
},
|
|
4961
|
+
}, Na = {
|
|
4962
4962
|
row: "_row_xykcx_1",
|
|
4963
4963
|
focusable: "_focusable_xykcx_5",
|
|
4964
4964
|
description: "_description_xykcx_9"
|
|
4965
|
-
},
|
|
4965
|
+
}, Pa = "group relative flex min-w-0 items-center gap-1 rounded-[10px] pe-1", Fa = "outline-hidden focus-visible:outline", Ia = ({ 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 }) => {
|
|
4966
4966
|
let _ = he(), v = he(), y = o != null && o !== "", b = B({
|
|
4967
4967
|
"--cat-add-on-row-hover-bg": u?.rowHoverBackground,
|
|
4968
4968
|
"--cat-add-on-focus-outline": u?.focusOutline,
|
|
@@ -4987,17 +4987,17 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
4987
4987
|
src: n,
|
|
4988
4988
|
initialsName: e,
|
|
4989
4989
|
styles: { badgeClassName: "rounded-[10px]" }
|
|
4990
|
-
}), c && /* @__PURE__ */ Z(
|
|
4990
|
+
}), c && /* @__PURE__ */ Z(Mn, {
|
|
4991
4991
|
credentials: c,
|
|
4992
4992
|
loggedOutLabel: l?.credentialsBadge
|
|
4993
4993
|
})]
|
|
4994
4994
|
}), S = y && /* @__PURE__ */ Z("span", {
|
|
4995
4995
|
id: v,
|
|
4996
|
-
className: pt("truncate",
|
|
4996
|
+
className: pt("truncate", Na.description, p),
|
|
4997
4997
|
children: o
|
|
4998
4998
|
}), C = { "aria-describedby": y ? v : void 0 };
|
|
4999
4999
|
return /* @__PURE__ */ Q("div", {
|
|
5000
|
-
className: pt(
|
|
5000
|
+
className: pt(Pa, Na.row),
|
|
5001
5001
|
style: b,
|
|
5002
5002
|
children: [
|
|
5003
5003
|
a ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("button", {
|
|
@@ -5005,7 +5005,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5005
5005
|
"aria-label": e,
|
|
5006
5006
|
...C,
|
|
5007
5007
|
disabled: m,
|
|
5008
|
-
className: pt("absolute inset-0 rounded-[10px] bg-transparent",
|
|
5008
|
+
className: pt("absolute inset-0 rounded-[10px] bg-transparent", Fa, Na.focusable),
|
|
5009
5009
|
onClick: h
|
|
5010
5010
|
}), /* @__PURE__ */ Q("span", {
|
|
5011
5011
|
className: "pointer-events-none flex min-w-0 flex-1 items-center gap-2.5 py-1",
|
|
@@ -5021,7 +5021,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5021
5021
|
"aria-labelledby": _,
|
|
5022
5022
|
...C,
|
|
5023
5023
|
disabled: m,
|
|
5024
|
-
className: pt("flex min-w-0 flex-1 items-center gap-2.5 rounded-[10px] py-1 text-start",
|
|
5024
|
+
className: pt("flex min-w-0 flex-1 items-center gap-2.5 rounded-[10px] py-1 text-start", Fa, Na.focusable),
|
|
5025
5025
|
onClick: h,
|
|
5026
5026
|
children: [x, /* @__PURE__ */ Q("span", {
|
|
5027
5027
|
className: "flex min-w-0 flex-1 flex-col",
|
|
@@ -5060,7 +5060,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5060
5060
|
})
|
|
5061
5061
|
]
|
|
5062
5062
|
});
|
|
5063
|
-
},
|
|
5063
|
+
}, La = (e) => {
|
|
5064
5064
|
let t = G(null), n = G(e);
|
|
5065
5065
|
return U(() => {
|
|
5066
5066
|
let r = e < n.current;
|
|
@@ -5070,7 +5070,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5070
5070
|
let a = t.current;
|
|
5071
5071
|
(a?.querySelector("ul button") ?? a?.querySelector("button"))?.focus();
|
|
5072
5072
|
}, [e]), t;
|
|
5073
|
-
},
|
|
5073
|
+
}, Ra = ({ 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 }) => {
|
|
5074
5074
|
let [x, S] = K(!1), C = v ?? x, w = (e) => {
|
|
5075
5075
|
e && u || (v === void 0 && S(e), y?.(e));
|
|
5076
5076
|
}, [T, E] = K(""), D = G(null), O = W(() => [...s, ...t].filter((e) => e.label.toLocaleLowerCase().includes(T.toLocaleLowerCase())), [
|
|
@@ -5173,9 +5173,9 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5173
5173
|
renderOverlay: () => P,
|
|
5174
5174
|
children: ee
|
|
5175
5175
|
});
|
|
5176
|
-
},
|
|
5176
|
+
}, za = /* @__PURE__ */ function(e) {
|
|
5177
5177
|
return e.Sectioned = "sectioned", e.Flat = "flat", e;
|
|
5178
|
-
}({}),
|
|
5178
|
+
}({}), Ba = {
|
|
5179
5179
|
rowEnter: "_rowEnter_2utoo_3",
|
|
5180
5180
|
rowFadeIn: "_rowFadeIn_2utoo_1",
|
|
5181
5181
|
rowLeaving: "_rowLeaving_2utoo_7",
|
|
@@ -5187,11 +5187,11 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5187
5187
|
starFilledIcon: "_starFilledIcon_2utoo_56",
|
|
5188
5188
|
footer: "_footer_2utoo_60",
|
|
5189
5189
|
listContent: "_listContent_2utoo_68"
|
|
5190
|
-
},
|
|
5190
|
+
}, Va = 180, Ha = (e, t) => {
|
|
5191
5191
|
let n = t.toLowerCase();
|
|
5192
5192
|
return e.name.toLowerCase().includes(n) || e.topics.some((e) => e.toLowerCase().includes(n)) || e.folder.some((e) => e.toLowerCase().includes(n));
|
|
5193
|
-
},
|
|
5194
|
-
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 ===
|
|
5193
|
+
}, Ua = (e) => S(e).some((e) => e === P.Model || e === P.Agent), Wa = [], Ga = ({ searchQuery: e, onSearchQueryChange: t, favorites: n, extraOptions: r = Wa, pinnedItem: i, canFavoritePinnedItem: a = !0, selectedId: o, selectedItem: s, isSelectableItem: c = Ua, layout: l = za.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 }) => {
|
|
5194
|
+
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 === za.Sectioned, [j, M] = K(""), N = e ?? j, P = (e) => {
|
|
5195
5195
|
M(e ?? ""), t?.(e ?? "");
|
|
5196
5196
|
}, [ee, F] = K(/* @__PURE__ */ new Set()), I = G(/* @__PURE__ */ new Map());
|
|
5197
5197
|
U(() => {
|
|
@@ -5204,9 +5204,9 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5204
5204
|
n,
|
|
5205
5205
|
i,
|
|
5206
5206
|
c
|
|
5207
|
-
]), ne = W(() => new Set(n.map((e) => e.id)), [n]), re = N.trim(), ie = s != null && te.some((e) => e.id === s.id), R = s != null && c(s) && (A || !ie) && (!re ||
|
|
5207
|
+
]), ne = W(() => new Set(n.map((e) => e.id)), [n]), re = N.trim(), ie = s != null && te.some((e) => e.id === s.id), R = s != null && c(s) && (A || !ie) && (!re || Ha(s, N)), z = W(() => {
|
|
5208
5208
|
let e = A ? te.filter((e) => e.id !== s?.id) : te;
|
|
5209
|
-
return re ? e.filter((e) =>
|
|
5209
|
+
return re ? e.filter((e) => Ha(e, N)) : e;
|
|
5210
5210
|
}, [
|
|
5211
5211
|
te,
|
|
5212
5212
|
A,
|
|
@@ -5226,7 +5226,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5226
5226
|
]);
|
|
5227
5227
|
let fe = G(null), pe = G(null);
|
|
5228
5228
|
U(() => {
|
|
5229
|
-
pe.current && fe.current &&
|
|
5229
|
+
pe.current && fe.current && Tn(pe.current, fe.current);
|
|
5230
5230
|
}, []);
|
|
5231
5231
|
let me = ue(), H = G(null);
|
|
5232
5232
|
U(() => {
|
|
@@ -5243,7 +5243,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5243
5243
|
let n = new Set(t);
|
|
5244
5244
|
return n.delete(e), n;
|
|
5245
5245
|
}), I.current.delete(e);
|
|
5246
|
-
},
|
|
5246
|
+
}, Va);
|
|
5247
5247
|
I.current.set(e, n);
|
|
5248
5248
|
}, q = (e) => re ? /* @__PURE__ */ Z(Be, {
|
|
5249
5249
|
text: e,
|
|
@@ -5272,7 +5272,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5272
5272
|
return /* @__PURE__ */ Z("li", {
|
|
5273
5273
|
role: "none",
|
|
5274
5274
|
ref: n ? fe : void 0,
|
|
5275
|
-
className: l ?
|
|
5275
|
+
className: l ? Ba.rowLeaving : Ba.rowEnter,
|
|
5276
5276
|
children: /* @__PURE__ */ Z(Je, {
|
|
5277
5277
|
role: "menuitemradio",
|
|
5278
5278
|
"aria-checked": n,
|
|
@@ -5302,7 +5302,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5302
5302
|
}),
|
|
5303
5303
|
selectedIcon: /* @__PURE__ */ Z(Rt, {
|
|
5304
5304
|
size: J.SM,
|
|
5305
|
-
className:
|
|
5305
|
+
className: Ba.starFilledIcon,
|
|
5306
5306
|
"aria-hidden": !0
|
|
5307
5307
|
}),
|
|
5308
5308
|
isSelected: r,
|
|
@@ -5314,11 +5314,11 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5314
5314
|
})
|
|
5315
5315
|
}, e.id);
|
|
5316
5316
|
}, xe = () => /* @__PURE__ */ Z("p", {
|
|
5317
|
-
className: V(v, "px-4 py-4 text-center",
|
|
5317
|
+
className: V(v, "px-4 py-4 text-center", Ba.emptyHint),
|
|
5318
5318
|
children: C
|
|
5319
5319
|
}), Se = () => /* @__PURE__ */ Q(X, { children: [
|
|
5320
5320
|
R && s && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("p", {
|
|
5321
|
-
className: V(g, "px-3 pt-2 pb-2",
|
|
5321
|
+
className: V(g, "px-3 pt-2 pb-2", Ba.sectionHeading),
|
|
5322
5322
|
children: E
|
|
5323
5323
|
}), /* @__PURE__ */ Z("ul", {
|
|
5324
5324
|
role: "group",
|
|
@@ -5326,7 +5326,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5326
5326
|
children: be(s, !0)
|
|
5327
5327
|
})] }),
|
|
5328
5328
|
(R || z.length > 0) && /* @__PURE__ */ Z("p", {
|
|
5329
|
-
className: V(g, "sticky top-0 z-10 px-3 pt-2 pb-2 will-change-transform",
|
|
5329
|
+
className: V(g, "sticky top-0 z-10 px-3 pt-2 pb-2 will-change-transform", Ba.sectionHeading, Ba.stickyHeading),
|
|
5330
5330
|
children: S
|
|
5331
5331
|
}),
|
|
5332
5332
|
z.length > 0 ? /* @__PURE__ */ Z("ul", {
|
|
@@ -5361,7 +5361,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5361
5361
|
children: [
|
|
5362
5362
|
/* @__PURE__ */ Z("div", {
|
|
5363
5363
|
role: "search",
|
|
5364
|
-
className: V("sticky top-0 z-10 pt-2 pb-3",
|
|
5364
|
+
className: V("sticky top-0 z-10 pt-2 pb-3", Ba.searchHeader),
|
|
5365
5365
|
children: /* @__PURE__ */ Z(it, {
|
|
5366
5366
|
inputRef: H,
|
|
5367
5367
|
value: N,
|
|
@@ -5373,7 +5373,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5373
5373
|
}),
|
|
5374
5374
|
/* @__PURE__ */ Z("div", {
|
|
5375
5375
|
ref: pe,
|
|
5376
|
-
className: V(se, "min-h-0 flex-1 overflow-y-auto",
|
|
5376
|
+
className: V(se, "min-h-0 flex-1 overflow-y-auto", Ba.listContent),
|
|
5377
5377
|
style: { maxHeight: le },
|
|
5378
5378
|
children: /* @__PURE__ */ Q("div", {
|
|
5379
5379
|
role: "menu",
|
|
@@ -5387,7 +5387,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5387
5387
|
})
|
|
5388
5388
|
}),
|
|
5389
5389
|
/* @__PURE__ */ Z("div", {
|
|
5390
|
-
className: V("px-2 py-3",
|
|
5390
|
+
className: V("px-2 py-3", Ba.footer),
|
|
5391
5391
|
children: /* @__PURE__ */ Z(Re, {
|
|
5392
5392
|
label: w,
|
|
5393
5393
|
className: "w-full justify-center",
|
|
@@ -5396,9 +5396,9 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5396
5396
|
})
|
|
5397
5397
|
]
|
|
5398
5398
|
});
|
|
5399
|
-
},
|
|
5399
|
+
}, Ka = ({ service: e, texts: t, onLogin: n, onLogout: r, typography: a }) => {
|
|
5400
5400
|
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] = K(!1), [m, h] = K(!1), [g, _] = K(!1), [v, y] = K(), 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?";
|
|
5401
|
-
return /* @__PURE__ */ Q(
|
|
5401
|
+
return /* @__PURE__ */ Q(vr, {
|
|
5402
5402
|
label: e.name,
|
|
5403
5403
|
description: e.description,
|
|
5404
5404
|
icon: /* @__PURE__ */ Z(Vt, {
|
|
@@ -5423,7 +5423,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5423
5423
|
errorClassName: l,
|
|
5424
5424
|
keyCardTitleClassName: u,
|
|
5425
5425
|
keyCardDescriptionClassName: d,
|
|
5426
|
-
deleteActionClassName:
|
|
5426
|
+
deleteActionClassName: _r.deleteAction,
|
|
5427
5427
|
renderLoginOptions: e.canConsentToOfflineUsage ? (e) => /* @__PURE__ */ Z(Ee, {
|
|
5428
5428
|
isSelected: f,
|
|
5429
5429
|
onChange: p,
|
|
@@ -5433,10 +5433,10 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5433
5433
|
}) : void 0,
|
|
5434
5434
|
children: [
|
|
5435
5435
|
e.hint && /* @__PURE__ */ Z("p", {
|
|
5436
|
-
className: V(c, "wrap-break-word",
|
|
5436
|
+
className: V(c, "wrap-break-word", _r.description),
|
|
5437
5437
|
children: e.hint
|
|
5438
5438
|
}),
|
|
5439
|
-
e.hasSharedCredentials && /* @__PURE__ */ Z(
|
|
5439
|
+
e.hasSharedCredentials && /* @__PURE__ */ Z(ur, {
|
|
5440
5440
|
icon: /* @__PURE__ */ Z(yt, {
|
|
5441
5441
|
size: J.SM,
|
|
5442
5442
|
"aria-hidden": !0,
|
|
@@ -5450,7 +5450,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5450
5450
|
/* @__PURE__ */ Z("p", { children: C }),
|
|
5451
5451
|
/* @__PURE__ */ Z(Pe, {
|
|
5452
5452
|
announce: qe.Assertive,
|
|
5453
|
-
className:
|
|
5453
|
+
className: _r.errorText,
|
|
5454
5454
|
text: v ?? ""
|
|
5455
5455
|
}),
|
|
5456
5456
|
/* @__PURE__ */ Q("div", {
|
|
@@ -5484,7 +5484,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5484
5484
|
})
|
|
5485
5485
|
]
|
|
5486
5486
|
});
|
|
5487
|
-
},
|
|
5487
|
+
}, qa = ({ services: e, isLoading: t = !1, hasError: n = !1, showEmptyState: r = !1, onRetry: i, onLogin: a, onLogout: o, texts: s, typography: c }) => {
|
|
5488
5488
|
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 = "";
|
|
5489
5489
|
f ? m = l : p && (m = u);
|
|
5490
5490
|
let h = null;
|
|
@@ -5514,7 +5514,7 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5514
5514
|
children: s?.title ?? "Credentials"
|
|
5515
5515
|
}), /* @__PURE__ */ Z("div", {
|
|
5516
5516
|
className: "flex min-w-0 flex-col",
|
|
5517
|
-
children: e.map((e) => /* @__PURE__ */ Z(
|
|
5517
|
+
children: e.map((e) => /* @__PURE__ */ Z(Ka, {
|
|
5518
5518
|
service: e,
|
|
5519
5519
|
texts: s,
|
|
5520
5520
|
onLogin: a,
|
|
@@ -5526,26 +5526,55 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5526
5526
|
visuallyHidden: !0,
|
|
5527
5527
|
children: m
|
|
5528
5528
|
}), h] });
|
|
5529
|
-
},
|
|
5530
|
-
description: "
|
|
5531
|
-
row: "
|
|
5532
|
-
name: "
|
|
5533
|
-
error: "
|
|
5534
|
-
hint: "
|
|
5535
|
-
},
|
|
5536
|
-
let { id: c, isProcessing: l } = e;
|
|
5529
|
+
}, Ja = {
|
|
5530
|
+
description: "_description_1ru4y_1",
|
|
5531
|
+
row: "_row_1ru4y_6",
|
|
5532
|
+
name: "_name_1ru4y_11",
|
|
5533
|
+
error: "_error_1ru4y_15",
|
|
5534
|
+
hint: "_hint_1ru4y_19"
|
|
5535
|
+
}, Ya = ({ row: e, labels: t, nameClassName: n, errorClassName: r, hintClassName: i, onApiKeyChange: a, onLogin: o, onDecline: s }) => {
|
|
5536
|
+
let { id: c, isProcessing: l } = e, u = e.errorMessage ? t.retry : t.logIn;
|
|
5537
5537
|
return /* @__PURE__ */ Q("div", {
|
|
5538
5538
|
role: "group",
|
|
5539
5539
|
"aria-label": e.displayName,
|
|
5540
5540
|
"aria-busy": l,
|
|
5541
|
-
className: V("flex flex-col gap-2
|
|
5541
|
+
className: V("flex flex-col gap-2 rounded-lg px-3 py-2", Ja.row),
|
|
5542
5542
|
children: [
|
|
5543
|
-
/* @__PURE__ */
|
|
5544
|
-
className: "flex min-w-0 items-center
|
|
5545
|
-
children: /* @__PURE__ */ Q("span", {
|
|
5546
|
-
className:
|
|
5547
|
-
children: [
|
|
5548
|
-
|
|
5543
|
+
/* @__PURE__ */ Q("div", {
|
|
5544
|
+
className: "flex min-h-8 min-w-0 items-center gap-2",
|
|
5545
|
+
children: [/* @__PURE__ */ Q("span", {
|
|
5546
|
+
className: "flex min-w-0 flex-1 items-baseline gap-1.5",
|
|
5547
|
+
children: [/* @__PURE__ */ Z("span", {
|
|
5548
|
+
className: V("truncate", n, Ja.name),
|
|
5549
|
+
children: e.displayName
|
|
5550
|
+
}), e.displayVersion && /* @__PURE__ */ Z("span", {
|
|
5551
|
+
className: V("shrink-0", i, Ja.hint),
|
|
5552
|
+
children: e.displayVersion
|
|
5553
|
+
})]
|
|
5554
|
+
}), e.requiresNoCredentials ? /* @__PURE__ */ Z("span", {
|
|
5555
|
+
className: V("shrink-0", i, Ja.hint),
|
|
5556
|
+
children: t.noCredentialsRequired
|
|
5557
|
+
}) : /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(ze, {
|
|
5558
|
+
size: Me.Small,
|
|
5559
|
+
icon: /* @__PURE__ */ Z(Gt, {
|
|
5560
|
+
"aria-hidden": !0,
|
|
5561
|
+
size: J.SM,
|
|
5562
|
+
stroke: Y
|
|
5563
|
+
}),
|
|
5564
|
+
"aria-label": t.decline,
|
|
5565
|
+
disabled: l,
|
|
5566
|
+
onClick: () => s(c)
|
|
5567
|
+
}), /* @__PURE__ */ Z(tt, {
|
|
5568
|
+
size: Me.Small,
|
|
5569
|
+
label: l ? void 0 : u,
|
|
5570
|
+
"aria-label": l ? u : void 0,
|
|
5571
|
+
iconBefore: l ? /* @__PURE__ */ Z(lt, {
|
|
5572
|
+
size: 16,
|
|
5573
|
+
ariaLabel: u
|
|
5574
|
+
}) : void 0,
|
|
5575
|
+
disabled: l || !e.canSubmitLogin,
|
|
5576
|
+
onClick: () => o(c)
|
|
5577
|
+
})] })]
|
|
5549
5578
|
}),
|
|
5550
5579
|
e.requiresApiKey && /* @__PURE__ */ Z(Ue, {
|
|
5551
5580
|
id: `signin-interrupt-api-key-${c}`,
|
|
@@ -5558,54 +5587,22 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5558
5587
|
}),
|
|
5559
5588
|
/* @__PURE__ */ Z(Ge, {
|
|
5560
5589
|
politeness: qe.Assertive,
|
|
5561
|
-
className: V("flex
|
|
5562
|
-
children: e.errorMessage && /* @__PURE__ */ Q(X, { children: [
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
/* @__PURE__ */ Z("span", { children: e.errorMessage }),
|
|
5568
|
-
/* @__PURE__ */ Z(We, {
|
|
5569
|
-
className: "h-auto",
|
|
5570
|
-
label: t.retry,
|
|
5571
|
-
onClick: () => o(c)
|
|
5572
|
-
})
|
|
5573
|
-
] })
|
|
5590
|
+
className: V("flex items-start gap-1.5 wrap-break-word empty:hidden", r, Ja.error),
|
|
5591
|
+
children: e.errorMessage && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(ht, {
|
|
5592
|
+
className: "mt-0.5 shrink-0",
|
|
5593
|
+
size: J.SM,
|
|
5594
|
+
"aria-hidden": !0
|
|
5595
|
+
}), /* @__PURE__ */ Z("span", { children: e.errorMessage })] })
|
|
5574
5596
|
}),
|
|
5575
5597
|
e.showDialNativeHint && /* @__PURE__ */ Z("p", {
|
|
5576
|
-
className: V("wrap-break-word", i,
|
|
5598
|
+
className: V("wrap-break-word", i, Ja.hint),
|
|
5577
5599
|
children: t.dialNativeHint
|
|
5578
|
-
}),
|
|
5579
|
-
e.requiresNoCredentials ? /* @__PURE__ */ Z("div", {
|
|
5580
|
-
className: "flex justify-end",
|
|
5581
|
-
children: /* @__PURE__ */ Z("span", {
|
|
5582
|
-
className: V(i, qa.hint),
|
|
5583
|
-
children: t.noCredentialsRequired
|
|
5584
|
-
})
|
|
5585
|
-
}) : /* @__PURE__ */ Q("div", {
|
|
5586
|
-
className: "flex justify-end gap-2",
|
|
5587
|
-
children: [/* @__PURE__ */ Z(Re, {
|
|
5588
|
-
label: t.decline,
|
|
5589
|
-
className: "mobile:flex-1",
|
|
5590
|
-
disabled: l,
|
|
5591
|
-
onClick: () => s(c)
|
|
5592
|
-
}), /* @__PURE__ */ Z(tt, {
|
|
5593
|
-
label: l ? void 0 : t.logIn,
|
|
5594
|
-
"aria-label": l ? t.logIn : void 0,
|
|
5595
|
-
iconBefore: l ? /* @__PURE__ */ Z(lt, {
|
|
5596
|
-
size: 16,
|
|
5597
|
-
ariaLabel: t.logIn
|
|
5598
|
-
}) : void 0,
|
|
5599
|
-
className: "mobile:flex-1",
|
|
5600
|
-
disabled: l || !e.canSubmitLogin,
|
|
5601
|
-
onClick: () => o(c)
|
|
5602
|
-
})]
|
|
5603
5600
|
})
|
|
5604
5601
|
]
|
|
5605
5602
|
});
|
|
5606
|
-
},
|
|
5603
|
+
}, Xa = ({ 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" }) => {
|
|
5607
5604
|
if (e.length === 0) return null;
|
|
5608
|
-
let h = {
|
|
5605
|
+
let h = l?.title ?? "Sign-in required", g = l?.logInTo ?? ((e) => `Log in to ${e}`), _ = {
|
|
5609
5606
|
decline: l?.decline ?? "Decline",
|
|
5610
5607
|
logIn: l?.logIn ?? "Log in",
|
|
5611
5608
|
retry: l?.retry ?? "Retry",
|
|
@@ -5613,32 +5610,39 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5613
5610
|
apiKeyPlaceholder: l?.apiKeyPlaceholder ?? "Enter API key",
|
|
5614
5611
|
dialNativeHint: l?.dialNativeHint ?? "Connect your account for offline access. An administrator must separately approve this application's access.",
|
|
5615
5612
|
noCredentialsRequired: l?.noCredentialsRequired ?? "No credentials required"
|
|
5616
|
-
},
|
|
5617
|
-
className: "flex items-center justify-end gap-2 px-6 py-4",
|
|
5618
|
-
children: /* @__PURE__ */ Z(Xe, {
|
|
5619
|
-
label: l?.declineAll ?? "Decline all",
|
|
5620
|
-
onClick: c
|
|
5621
|
-
})
|
|
5622
|
-
}) : void 0;
|
|
5613
|
+
}, v = e.length > 1, y = v ? e.find((e) => !e.requiresNoCredentials && !e.isProcessing && e.canSubmitLogin) : void 0;
|
|
5623
5614
|
return /* @__PURE__ */ Z($e, {
|
|
5624
5615
|
open: !0,
|
|
5625
5616
|
hideClose: !0,
|
|
5626
5617
|
closeOnOutsideClick: !1,
|
|
5627
5618
|
size: et.Md,
|
|
5628
|
-
|
|
5629
|
-
|
|
5619
|
+
ariaLabel: h,
|
|
5620
|
+
header: /* @__PURE__ */ Q("span", {
|
|
5621
|
+
className: "flex items-center gap-2",
|
|
5622
|
+
children: [h, v && /* @__PURE__ */ Z(ve, { label: String(e.length) })]
|
|
5623
|
+
}),
|
|
5624
|
+
additionalButtonsOnLeft: !0,
|
|
5625
|
+
additionalButtons: v ? [{
|
|
5626
|
+
label: l?.declineAll ?? "Decline all",
|
|
5627
|
+
onClick: c
|
|
5628
|
+
}] : void 0,
|
|
5629
|
+
mainButtons: y ? [{
|
|
5630
|
+
label: g(y.displayName),
|
|
5631
|
+
variant: Ce.Primary,
|
|
5632
|
+
onClick: () => o(y.id)
|
|
5633
|
+
}] : void 0,
|
|
5630
5634
|
children: /* @__PURE__ */ Q("div", {
|
|
5631
|
-
className: "flex flex-col gap-
|
|
5635
|
+
className: "flex flex-col gap-3 px-6 py-4",
|
|
5632
5636
|
style: B({
|
|
5633
5637
|
"--cat-signin-description-text": u?.descriptionText,
|
|
5634
|
-
"--cat-signin-row-
|
|
5638
|
+
"--cat-signin-row-hover-background": u?.rowHoverBackground,
|
|
5635
5639
|
"--cat-signin-name-text": u?.nameText,
|
|
5636
5640
|
"--cat-signin-error-text": u?.errorText,
|
|
5637
5641
|
"--cat-signin-hint-text": u?.hintText
|
|
5638
5642
|
}),
|
|
5639
5643
|
children: [
|
|
5640
5644
|
/* @__PURE__ */ Z("p", {
|
|
5641
|
-
className: V(d,
|
|
5645
|
+
className: V(d, Ja.description),
|
|
5642
5646
|
children: l?.description ?? "One or more tools or services need you to sign in before the conversation can continue."
|
|
5643
5647
|
}),
|
|
5644
5648
|
/* @__PURE__ */ Z(Ge, {
|
|
@@ -5647,10 +5651,10 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5647
5651
|
children: t
|
|
5648
5652
|
}),
|
|
5649
5653
|
/* @__PURE__ */ Z("div", {
|
|
5650
|
-
className: "flex flex-col",
|
|
5651
|
-
children: e.map((e) => /* @__PURE__ */ Z(
|
|
5654
|
+
className: "-mx-3 flex flex-col gap-0.5",
|
|
5655
|
+
children: e.map((e) => /* @__PURE__ */ Z(Ya, {
|
|
5652
5656
|
row: e,
|
|
5653
|
-
labels:
|
|
5657
|
+
labels: _,
|
|
5654
5658
|
nameClassName: f,
|
|
5655
5659
|
errorClassName: p,
|
|
5656
5660
|
hintClassName: m,
|
|
@@ -5660,7 +5664,6 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5660
5664
|
}, e.id))
|
|
5661
5665
|
}),
|
|
5662
5666
|
n && /* @__PURE__ */ Z(Ee, {
|
|
5663
|
-
className: "mt-2",
|
|
5664
5667
|
isSelected: r,
|
|
5665
5668
|
onChange: i,
|
|
5666
5669
|
labelProps: { label: l?.offlineUsageConsent ?? "Allow offline use" },
|
|
@@ -5671,4 +5674,4 @@ var tn = /* @__PURE__ */ function(e) {
|
|
|
5671
5674
|
});
|
|
5672
5675
|
};
|
|
5673
5676
|
//#endregion
|
|
5674
|
-
export {
|
|
5677
|
+
export { jr as AboutTab, Ma as AddOnCatalogModal, Ia as AddOnListItem, Ar as ApiTab, An as AppIdentity, qa as ApplicationCredentials, pn as CATALOG_CLASS, m as CATALOG_TAB_ORDER, Un as Card, Gn as CardGrid, Wn as CardRowRenderer, Da as Catalog, un as CatalogContentNodeType, dn as CatalogContentPreviewType, n as CatalogDetailsTab, rn as CatalogLimitStatus, Oa as CatalogLoadStatus, ja as CatalogPickerModal, an as CatalogPricingUnit, cn as CatalogSelectionMode, o as CatalogSortKey, sn as CatalogViewMode, nn as CodeLanguage, Br as ContentTab, b as CredentialStatus, gi as CredentialsApiKeyOverlay, Mn as CredentialsBadge, e as CredentialsBadgeState, gr as CredentialsBanner, y as CredentialsBannerState, i as CredentialsLevel, br as CredentialsManagementPanel, a as CredentialsUiState, Ra as DeploymentSelectorField, za as DeploymentSelectorLayout, Ga as DeploymentSelectorPanel, on as DeploymentSize, $ as DetailsConfirmationKind, Ti as DetailsHeader, ki as DetailsPanel, Pi as FavoriteCard, Li as Favorites, ga as Filter, ln as LimitRowLayout, $r as LimitsTab, oa as ListView, Ri as ListViewColumnKey, ei as OverviewTab, ti as PricingTab, Xa as SigninInterruptDialog, Ca as Toolbar, ci as ToolsTab, s as ToolsetAuthenticationType, Ln as TopicTag, u as applyCatalogSelection, h as buildCatalogTabs, M as filterCatalogItems, c as filterCatalogItemsByQuery, x as getCatalogDetailsTabs, S as getCatalogItemTabs, C as getCredentialsBadgeState, E as getCredentialsBannerState, v as getCredentialsUiState, d as getDirectCredentialsLevel, w as getSignedInLevel, j as getTopicOptions, r as sortCatalogItems, fn as useFavColumns, La as useListRemoveFocus, En as useScrollVirtualizer };
|