@epam/ai-dial-catalog 1.3.0-dev.108 → 1.3.0-dev.110
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/Catalog/Catalog.d.ts.map +1 -1
- package/index.js +711 -711
- package/models/catalog-styles.d.ts +2 -0
- package/models/catalog-styles.d.ts.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { C as e, E as t, S as n, T as r, _ as i, a, b as o, c as s, d as c, f as l, g as u, h as d, i as f, l as p, m, n as h, o as g, p as _, r as v, s as y, t as b, u as x, v as S, w as C, x as w, y as T } from "./mapping-BcyG24Cg.js";
|
|
2
|
-
import { CatalogEntityType as E, ConfirmationFooter as D, ConfirmationView as O, DESKTOP_BREAKPOINT_PX as k, DeploymentIcon as A, EntityHeader as j, EntityTypeLabel as
|
|
3
|
-
import { Fragment as
|
|
2
|
+
import { CatalogEntityType as E, ConfirmationFooter as D, ConfirmationView as O, DESKTOP_BREAKPOINT_PX as k, DeploymentIcon as A, EntityHeader as j, EntityTypeLabel as M, FeaturedChip as ee, ItemHeader as te, MarkdownCodeBlock as N, MarkdownRenderer as ne, MarkdownWithPlaceholders as re, PanelEmptyState as ie, SELECT_LIST_MAX_HEIGHT_CLASS_NAME as ae, buildCssVars as oe, mergeClasses as P, useIsMobile as se } from "@epam/ai-dial-chat-shared";
|
|
3
|
+
import { Fragment as ce, createContext as le, memo as ue, startTransition as de, useCallback as F, useContext as fe, useEffect as I, useId as pe, useLayoutEffect as me, useMemo as L, useRef as R, useState as z } from "react";
|
|
4
4
|
import { Badge as he, BottomSheet as ge, Button as _e, ButtonAppearance as ve, ButtonDropdown as ye, ButtonVariant as be, CardShell as xe, Checkbox as Se, ConfirmationPopupVariant as Ce, DIAL_ICON_SIZE as B, DIAL_KIT_ICON_STROKE as V, DangerButton as we, Dropdown as Te, DropdownItemType as H, ElementSize as U, EllipsisTooltip as Ee, FolderPath as De, GhostButton as Oe, GhostIconButton as ke, Highlight as Ae, InlineSelect as je, InlineSelectTrigger as Me, Input as W, InteractiveTooltip as Ne, LinkButton as Pe, MenuItem as G, MenuItemMark as K, NeutralButton as Fe, NeutralIconButton as Ie, NoDataContent as Le, PrimaryButton as Re, ProgressBar as ze, RadioGroup as Be, Search as Ve, SegmentedControl as He, SideDrawer as Ue, Skeleton as We, SkeletonAvatarShape as q, Spinner as Ge, Tabs as Ke, ToggleIconButton as qe, Tooltip as Je, mergeClasses as Ye } from "@epam/ai-dial-ui-kit";
|
|
5
5
|
import { Fragment as Xe, jsx as J, jsxs as Y } from "react/jsx-runtime";
|
|
6
6
|
import { IconAdjustmentsHorizontal as Ze, IconAlertTriangleFilled as Qe, IconArrowRight as $e, IconBuildingCommunity as et, IconCheck as tt, IconChevronDown as nt, IconChevronLeft as rt, IconChevronRight as it, IconCircleCheckFilled as at, IconDots as ot, IconDownload as st, IconFilter as ct, IconFolder as lt, IconKey as ut, IconLayoutGrid as dt, IconLayoutList as ft, IconLogin as X, IconLogout as pt, IconPencil as mt, IconPlayerPlayFilled as ht, IconPlus as gt, IconShare as _t, IconStar as vt, IconStarFilled as yt, IconTrashX as bt, IconUser as xt, IconUserOff as St, IconWorldOff as Ct, IconWorldShare as wt } from "@tabler/icons-react";
|
|
7
7
|
import { PublishFooter as Tt, PublishPanel as Et, derivePublishState as Dt, usePublishFlow as Ot } from "@epam/ai-dial-publish-panel";
|
|
8
8
|
import { Grid as kt } from "@epam/ai-dial-ui-kit/grid";
|
|
9
9
|
//#region src/types/code-language.ts
|
|
10
|
-
var
|
|
10
|
+
var Z = /* @__PURE__ */ function(e) {
|
|
11
11
|
return e.Python = "python", e.Curl = "curl", e.JavaScript = "javascript", e;
|
|
12
|
-
}({}),
|
|
12
|
+
}({}), At = /* @__PURE__ */ function(e) {
|
|
13
13
|
return e.RunningLow = "runningLow", e.LimitReached = "limitReached", e;
|
|
14
|
-
}({}),
|
|
14
|
+
}({}), jt = /* @__PURE__ */ function(e) {
|
|
15
15
|
return e.Token = "token", e.Character = "character", e;
|
|
16
|
-
}({}),
|
|
16
|
+
}({}), Q = /* @__PURE__ */ function(e) {
|
|
17
17
|
return e.Delete = "delete", e.Logout = "logout", e.Unshare = "unshare", e.RevokeAccess = "revokeAccess", e.DeleteApiKey = "deleteApiKey", e.Unpublish = "unpublish", e;
|
|
18
|
-
}({}),
|
|
18
|
+
}({}), Mt = /* @__PURE__ */ function(e) {
|
|
19
19
|
return e.SM = "sm", e.LG = "lg", e;
|
|
20
|
-
}({}),
|
|
20
|
+
}({}), Nt = /* @__PURE__ */ function(e) {
|
|
21
21
|
return e.Grid = "grid", e.Cards = "cards", e;
|
|
22
|
-
}({}),
|
|
22
|
+
}({}), Pt = /* @__PURE__ */ function(e) {
|
|
23
23
|
return e.Single = "single", e.Multiple = "multiple", e;
|
|
24
|
-
}({}),
|
|
24
|
+
}({}), Ft = /* @__PURE__ */ function(e) {
|
|
25
25
|
return e.Inline = "inline", e.Stacked = "stacked", e;
|
|
26
|
-
}({}),
|
|
26
|
+
}({}), It = /* @__PURE__ */ function(e) {
|
|
27
27
|
return e.File = "file", e.Folder = "folder", e;
|
|
28
|
-
}({}),
|
|
28
|
+
}({}), Lt = /* @__PURE__ */ function(e) {
|
|
29
29
|
return e.Markdown = "markdown", e.Text = "text", e.Image = "image", e.Unsupported = "unsupported", e;
|
|
30
|
-
}({}),
|
|
30
|
+
}({}), Rt = () => {
|
|
31
31
|
let [e, t] = z(() => window.innerWidth);
|
|
32
|
-
return
|
|
32
|
+
return I(() => {
|
|
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
|
+
}, zt = {
|
|
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
|
+
}, Bt = (e) => e.type === H.Divider || e.type === H.PlainText, Vt = (e, t) => e.map((e) => Bt(e) ? e : {
|
|
43
43
|
...e,
|
|
44
44
|
label: typeof e.label == "string" ? /* @__PURE__ */ J(Ae, {
|
|
45
45
|
text: e.label,
|
|
46
46
|
query: t,
|
|
47
47
|
maxLines: 1
|
|
48
48
|
}) : e.label,
|
|
49
|
-
children: e.children ?
|
|
50
|
-
}),
|
|
49
|
+
children: e.children ? Vt(e.children, t) : void 0
|
|
50
|
+
}), Ht = (e) => {
|
|
51
51
|
if (e == null || e.options.length === 0) return;
|
|
52
52
|
let [t] = e.options;
|
|
53
53
|
return e.options.length === 1 && e.search == null && !t.children?.length ? {
|
|
@@ -61,34 +61,34 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
61
61
|
options: e.options,
|
|
62
62
|
search: e.search
|
|
63
63
|
};
|
|
64
|
-
},
|
|
64
|
+
}, Ut = (e) => ({
|
|
65
65
|
codeBlockCopyLabel: e?.copyCodeAriaLabel,
|
|
66
66
|
codeBlockCopiedLabel: e?.copiedCodeStatusLabel,
|
|
67
67
|
codeBlockDownloadLabel: e?.downloadCodeAriaLabel,
|
|
68
68
|
tableScrollRegionAriaLabel: e?.tableScrollRegionAriaLabel,
|
|
69
69
|
mathScrollRegionAriaLabel: e?.mathScrollRegionAriaLabel
|
|
70
|
-
}),
|
|
70
|
+
}), Wt = (e) => {
|
|
71
71
|
let { colors: t } = e ?? {};
|
|
72
|
-
return
|
|
72
|
+
return oe({
|
|
73
73
|
"--cat-bg": t?.background,
|
|
74
74
|
"--cat-heading-title-text": t?.headingTitleText
|
|
75
75
|
});
|
|
76
|
-
},
|
|
76
|
+
}, Gt = 1180, Kt = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, qt = (e) => {
|
|
77
77
|
if (!e || e === document.body) return document.documentElement;
|
|
78
78
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
79
|
-
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e :
|
|
80
|
-
},
|
|
79
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : qt(e.parentElement);
|
|
80
|
+
}, Jt = 10, Yt = 10, Xt = 30, Zt = (e, t, n = Jt) => {
|
|
81
81
|
let r = R(null), [i, a] = z({
|
|
82
82
|
start: 0,
|
|
83
|
-
end:
|
|
83
|
+
end: Xt
|
|
84
84
|
});
|
|
85
|
-
|
|
85
|
+
I(() => {
|
|
86
86
|
let i = r.current;
|
|
87
87
|
if (!i) return;
|
|
88
|
-
let o =
|
|
88
|
+
let o = qt(i.parentElement), s = () => {
|
|
89
89
|
let r = o.clientHeight;
|
|
90
90
|
if (r === 0 || i.clientWidth === 0 || getComputedStyle(i).visibility === "hidden") return;
|
|
91
|
-
let s = i.getBoundingClientRect().top, c = o.getBoundingClientRect().top, l = Math.max(0, c - s), u = Math.floor(l / t), d = Math.ceil(r / t), f = Math.max(0, Math.floor((u - n) /
|
|
91
|
+
let s = i.getBoundingClientRect().top, c = o.getBoundingClientRect().top, l = Math.max(0, c - s), u = Math.floor(l / t), d = Math.ceil(r / t), f = Math.max(0, Math.floor((u - n) / Yt) * Yt), p = Math.min(e, Math.ceil((u + d + n) / Yt) * Yt);
|
|
92
92
|
a((e) => e.start === f && e.end === p ? e : {
|
|
93
93
|
start: f,
|
|
94
94
|
end: p
|
|
@@ -104,28 +104,28 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
104
104
|
t,
|
|
105
105
|
n
|
|
106
106
|
]);
|
|
107
|
-
let o = Math.max(0, Math.floor((e - 1) /
|
|
107
|
+
let o = Math.max(0, Math.floor((e - 1) / Yt) * Yt), s = Math.min(i.start, o);
|
|
108
108
|
return {
|
|
109
109
|
containerRef: r,
|
|
110
110
|
startRow: s,
|
|
111
|
-
endRow: Math.min(e, Math.max(i.end, s +
|
|
111
|
+
endRow: Math.min(e, Math.max(i.end, s + Yt))
|
|
112
112
|
};
|
|
113
|
-
},
|
|
113
|
+
}, Qt = (e, { overscan: t = 3, isFullWidth: n = !1 } = {}) => {
|
|
114
114
|
let r = R(null), [i, a] = z(() => {
|
|
115
|
-
let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= k ? 60 : 0)), i =
|
|
115
|
+
let t = typeof window < "u" ? window.innerWidth : 1440, r = Math.max(0, t - (t >= k ? 60 : 0)), i = Kt((n ? r : Math.min(Gt, r)) - 64), a = Math.ceil(e / i);
|
|
116
116
|
return {
|
|
117
117
|
startRow: 0,
|
|
118
118
|
endRow: Math.min(a, 12),
|
|
119
119
|
columnCount: i
|
|
120
120
|
};
|
|
121
121
|
});
|
|
122
|
-
|
|
122
|
+
I(() => {
|
|
123
123
|
let n = r.current;
|
|
124
124
|
if (!n) return;
|
|
125
|
-
let i =
|
|
125
|
+
let i = qt(n.parentElement), o = () => {
|
|
126
126
|
let r = n.clientWidth, o = i.clientHeight;
|
|
127
127
|
if (r === 0 || o === 0) return;
|
|
128
|
-
let s = n.getBoundingClientRect(), c = i.getBoundingClientRect(), l =
|
|
128
|
+
let s = n.getBoundingClientRect(), c = i.getBoundingClientRect(), l = Kt(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);
|
|
129
129
|
a((e) => e.startRow === f && e.endRow === p && e.columnCount === l ? e : {
|
|
130
130
|
startRow: f,
|
|
131
131
|
endRow: p,
|
|
@@ -147,7 +147,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
147
147
|
rowCount: o,
|
|
148
148
|
totalHeight: o * 268
|
|
149
149
|
};
|
|
150
|
-
},
|
|
150
|
+
}, $t = {
|
|
151
151
|
skeletonColor: "var(--cg-skeleton-color, var(--bg-control-disable-primary, #dce0e8))",
|
|
152
152
|
card: "_card_3j04p_2",
|
|
153
153
|
emptyStarHidden: "_emptyStarHidden_3j04p_2",
|
|
@@ -156,12 +156,12 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
156
156
|
selectedCard: "_selectedCard_3j04p_25",
|
|
157
157
|
checkIcon: "_checkIcon_3j04p_30",
|
|
158
158
|
footer: "_footer_3j04p_34"
|
|
159
|
-
},
|
|
160
|
-
let t = R(null), [n, r] = z(!1), i =
|
|
159
|
+
}, en = 1, tn = (e) => e.scrollHeight - e.clientHeight > en, nn = (e) => {
|
|
160
|
+
let t = R(null), [n, r] = z(!1), i = F(() => {
|
|
161
161
|
let e = t.current;
|
|
162
|
-
e && r(
|
|
162
|
+
e && r(tn(e) || Array.from(e.children).some(tn));
|
|
163
163
|
}, []);
|
|
164
|
-
return
|
|
164
|
+
return me(() => {
|
|
165
165
|
i();
|
|
166
166
|
let e = t.current;
|
|
167
167
|
if (!e || typeof ResizeObserver > "u") return;
|
|
@@ -171,71 +171,71 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
171
171
|
ref: t,
|
|
172
172
|
isClamped: n
|
|
173
173
|
};
|
|
174
|
-
},
|
|
175
|
-
let { ref: r, isClamped: i } =
|
|
174
|
+
}, rn = ({ name: e, query: t = "", className: n }) => {
|
|
175
|
+
let { ref: r, isClamped: i } = nn(e);
|
|
176
176
|
return /* @__PURE__ */ J(Je, {
|
|
177
177
|
asChild: !0,
|
|
178
178
|
tooltip: e,
|
|
179
179
|
hideTooltip: !i,
|
|
180
180
|
children: /* @__PURE__ */ J("span", {
|
|
181
181
|
ref: r,
|
|
182
|
-
className:
|
|
182
|
+
className: P("line-clamp-2 min-w-0 break-words", n),
|
|
183
183
|
children: /* @__PURE__ */ J(Ae, {
|
|
184
184
|
text: e,
|
|
185
185
|
query: t
|
|
186
186
|
})
|
|
187
187
|
})
|
|
188
188
|
});
|
|
189
|
-
},
|
|
189
|
+
}, an = {
|
|
190
190
|
name: "_name_188yo_1",
|
|
191
191
|
lastUsed: "_lastUsed_188yo_5",
|
|
192
192
|
version: "_version_188yo_9"
|
|
193
|
-
},
|
|
194
|
-
let f = c?.colors, p = c?.typography ?? {}, m = a ===
|
|
193
|
+
}, on = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
|
|
194
|
+
let f = c?.colors, p = c?.typography ?? {}, m = a === Mt.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 = P(p?.versionClassName ?? "dial-tiny-text", an.version), b = oe({
|
|
195
195
|
"--ai-name-text": f?.nameColor,
|
|
196
196
|
"--ai-last-used-text": f?.lastUsedColor,
|
|
197
197
|
"--ai-version-text": f?.versionColor
|
|
198
198
|
});
|
|
199
199
|
return /* @__PURE__ */ Y("div", {
|
|
200
|
-
className:
|
|
200
|
+
className: P("flex min-w-0 items-start gap-3", s),
|
|
201
201
|
style: b,
|
|
202
202
|
children: [/* @__PURE__ */ Y("div", {
|
|
203
|
-
className:
|
|
203
|
+
className: P("relative flex-shrink-0", h, u),
|
|
204
204
|
children: [/* @__PURE__ */ J("div", {
|
|
205
205
|
className: "size-full overflow-hidden rounded-[inherit]",
|
|
206
206
|
children: /* @__PURE__ */ J(A, {
|
|
207
207
|
src: e ?? void 0,
|
|
208
208
|
size: g,
|
|
209
209
|
initialsName: n,
|
|
210
|
-
styles: { badgeClassName:
|
|
210
|
+
styles: { badgeClassName: P(m ? "rounded-[14px]" : "rounded-[12px]") }
|
|
211
211
|
})
|
|
212
212
|
}), d]
|
|
213
213
|
}), /* @__PURE__ */ Y("div", {
|
|
214
214
|
className: "flex min-w-0 flex-1 flex-col gap-1",
|
|
215
|
-
children: [/* @__PURE__ */ J(
|
|
215
|
+
children: [/* @__PURE__ */ J(M, {
|
|
216
216
|
type: t,
|
|
217
217
|
className: p?.typeClassName
|
|
218
218
|
}), /* @__PURE__ */ Y("div", {
|
|
219
219
|
className: "flex min-w-0 flex-col",
|
|
220
220
|
children: [/* @__PURE__ */ Y("div", {
|
|
221
221
|
className: "flex min-w-0 items-start gap-1 overflow-hidden",
|
|
222
|
-
children: [/* @__PURE__ */ J(
|
|
222
|
+
children: [/* @__PURE__ */ J(rn, {
|
|
223
223
|
name: n,
|
|
224
224
|
query: o,
|
|
225
|
-
className:
|
|
225
|
+
className: P(_ ? "max-w-max flex-[66_1_0%]" : "flex-1", p?.nameClassName ?? "dial-body-semi-text", an.name)
|
|
226
226
|
}), _ && /* @__PURE__ */ J(Ee, {
|
|
227
227
|
text: r,
|
|
228
|
-
className:
|
|
228
|
+
className: P("max-w-max min-w-0 flex-[34_1_0%] tabular-nums", y)
|
|
229
229
|
})]
|
|
230
230
|
}), v && /* @__PURE__ */ Y("div", {
|
|
231
231
|
className: "flex min-w-0 items-center gap-2",
|
|
232
232
|
children: [
|
|
233
233
|
r && /* @__PURE__ */ J(Ee, {
|
|
234
234
|
text: r,
|
|
235
|
-
className:
|
|
235
|
+
className: P("min-w-0 tabular-nums", y)
|
|
236
236
|
}),
|
|
237
237
|
i != null && /* @__PURE__ */ J("span", {
|
|
238
|
-
className:
|
|
238
|
+
className: P("shrink-0 tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", an.lastUsed),
|
|
239
239
|
children: i
|
|
240
240
|
}),
|
|
241
241
|
l != null && /* @__PURE__ */ J("div", {
|
|
@@ -247,29 +247,29 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
247
247
|
})]
|
|
248
248
|
})]
|
|
249
249
|
});
|
|
250
|
-
},
|
|
250
|
+
}, sn = { icon: "_icon_a0p4u_1" }, cn = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || h(e) == null ? null : /* @__PURE__ */ J(Je, {
|
|
251
251
|
tooltip: t,
|
|
252
252
|
asChild: !0,
|
|
253
253
|
children: /* @__PURE__ */ J("span", {
|
|
254
254
|
role: "img",
|
|
255
255
|
"aria-label": t,
|
|
256
|
-
style:
|
|
256
|
+
style: oe({
|
|
257
257
|
"--cat-cred-badge-halo": r?.halo,
|
|
258
258
|
"--cat-cred-badge-icon": r?.icon
|
|
259
259
|
}),
|
|
260
|
-
className:
|
|
260
|
+
className: P("absolute -end-1 -bottom-1 shrink-0", n),
|
|
261
261
|
children: /* @__PURE__ */ J(Qe, {
|
|
262
262
|
size: B.SM,
|
|
263
|
-
className:
|
|
263
|
+
className: sn.icon,
|
|
264
264
|
"aria-hidden": !0
|
|
265
265
|
})
|
|
266
266
|
})
|
|
267
|
-
}),
|
|
267
|
+
}), ln = {
|
|
268
268
|
starFilledIcon: "_starFilledIcon_po6zj_1",
|
|
269
269
|
starPop: "_starPop_po6zj_1"
|
|
270
|
-
},
|
|
270
|
+
}, un = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ J(qe, {
|
|
271
271
|
size: n,
|
|
272
|
-
style:
|
|
272
|
+
style: oe({ "--cat-star-filled": a }),
|
|
273
273
|
className: i,
|
|
274
274
|
isSelected: e,
|
|
275
275
|
icon: /* @__PURE__ */ J(vt, {
|
|
@@ -279,26 +279,26 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
279
279
|
}),
|
|
280
280
|
selectedIcon: /* @__PURE__ */ J(yt, {
|
|
281
281
|
size: B.SM,
|
|
282
|
-
className:
|
|
282
|
+
className: ln.starFilledIcon,
|
|
283
283
|
"aria-hidden": !0
|
|
284
284
|
}),
|
|
285
285
|
"aria-label": r,
|
|
286
286
|
onClick: t
|
|
287
|
-
}),
|
|
287
|
+
}), dn = { tag: "_tag_iqin5_3" }, fn = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ J(he, {
|
|
288
288
|
label: e,
|
|
289
289
|
textClassName: n,
|
|
290
|
-
style:
|
|
290
|
+
style: oe({
|
|
291
291
|
"--cat-card-tag-bg": r?.background,
|
|
292
292
|
"--cat-card-tag-text": r?.text,
|
|
293
293
|
"--cat-card-tag-border": r?.border
|
|
294
294
|
}),
|
|
295
|
-
className:
|
|
296
|
-
}),
|
|
295
|
+
className: P(dn.tag, t)
|
|
296
|
+
}), pn = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ J(fn, {
|
|
297
297
|
label: e,
|
|
298
298
|
badgeClassName: t,
|
|
299
299
|
colors: n
|
|
300
|
-
}),
|
|
301
|
-
let r = R(null), i = R([]), a = R([]), o = R(null), s = R(Infinity), [c, l] = z(e.length), u = e.join("\0"), d =
|
|
300
|
+
}), mn = 8, hn = ({ topics: e, overflowAriaLabel: t, className: n }) => {
|
|
301
|
+
let r = R(null), i = R([]), a = R([]), o = R(null), s = R(Infinity), [c, l] = z(e.length), u = e.join("\0"), d = F(() => {
|
|
302
302
|
let t = r.current;
|
|
303
303
|
if (!t || e.length === 0) return;
|
|
304
304
|
let n = t.clientWidth;
|
|
@@ -309,19 +309,19 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
309
309
|
let u = o.current?.offsetWidth ?? 0, d = 0, f = 0;
|
|
310
310
|
for (let t = 0; t < e.length; t++) {
|
|
311
311
|
let r = e.length - (t + 1) > 0;
|
|
312
|
-
if (d + (t > 0 ?
|
|
313
|
-
d += (t > 0 ?
|
|
312
|
+
if (d + (t > 0 ? mn : 0) + c[t] + (r ? mn + u : 0) > n) break;
|
|
313
|
+
d += (t > 0 ? mn : 0) + c[t], f = t + 1;
|
|
314
314
|
}
|
|
315
315
|
l(Math.min(f, s.current));
|
|
316
316
|
}, [e.length]);
|
|
317
|
-
if (
|
|
317
|
+
if (me(() => {
|
|
318
318
|
a.current = [], s.current = Infinity, l(e.length);
|
|
319
|
-
}, [u]),
|
|
319
|
+
}, [u]), me(() => {
|
|
320
320
|
d();
|
|
321
|
-
}),
|
|
321
|
+
}), me(() => {
|
|
322
322
|
let e = r.current;
|
|
323
323
|
!e || c === 0 || e.scrollWidth <= e.clientWidth || (s.current = c - 1, l(s.current));
|
|
324
|
-
}, [c]),
|
|
324
|
+
}, [c]), I(() => {
|
|
325
325
|
let e = r.current;
|
|
326
326
|
if (!e) return;
|
|
327
327
|
let t = new ResizeObserver(() => {
|
|
@@ -330,31 +330,31 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
330
330
|
return t.observe(e), () => t.disconnect();
|
|
331
331
|
}, [d]), e.length === 0) return /* @__PURE__ */ J("div", {
|
|
332
332
|
ref: r,
|
|
333
|
-
className:
|
|
333
|
+
className: P("relative flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n)
|
|
334
334
|
});
|
|
335
335
|
let f = e.length - c;
|
|
336
336
|
return /* @__PURE__ */ Y("div", {
|
|
337
337
|
ref: r,
|
|
338
|
-
className:
|
|
338
|
+
className: P("flex min-w-0 flex-1 flex-nowrap items-center gap-2 overflow-hidden", n),
|
|
339
339
|
children: [
|
|
340
340
|
e.slice(0, c).map((e, t) => /* @__PURE__ */ J("div", {
|
|
341
341
|
ref: (e) => {
|
|
342
342
|
i.current[t] = e;
|
|
343
343
|
},
|
|
344
|
-
children: /* @__PURE__ */ J(
|
|
344
|
+
children: /* @__PURE__ */ J(pn, { label: e })
|
|
345
345
|
}, e)),
|
|
346
346
|
f > 0 && /* @__PURE__ */ J(Je, {
|
|
347
347
|
tooltip: e.slice(c).join(", "),
|
|
348
348
|
children: /* @__PURE__ */ J("span", {
|
|
349
349
|
"aria-label": t?.(f) ?? `and ${f} more topics`,
|
|
350
|
-
children: /* @__PURE__ */ J(
|
|
350
|
+
children: /* @__PURE__ */ J(pn, { label: `+${f}` })
|
|
351
351
|
})
|
|
352
352
|
}),
|
|
353
353
|
/* @__PURE__ */ J("div", {
|
|
354
354
|
ref: o,
|
|
355
355
|
"aria-hidden": !0,
|
|
356
356
|
className: "invisible absolute inset-s-0 top-0",
|
|
357
|
-
children: /* @__PURE__ */ J(
|
|
357
|
+
children: /* @__PURE__ */ J(pn, { label: `+${e.length}` })
|
|
358
358
|
})
|
|
359
359
|
]
|
|
360
360
|
});
|
|
@@ -371,10 +371,10 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
371
371
|
strong: "dial-small-semi-text"
|
|
372
372
|
}, yn = (e) => e.target instanceof Element && e.target.closest("a") !== null, bn = (e) => !(e.target instanceof Node) || !e.currentTarget.contains(e.target), xn = ({ 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 }) => {
|
|
373
373
|
let [g, _] = z(r);
|
|
374
|
-
|
|
374
|
+
I(() => {
|
|
375
375
|
_(r);
|
|
376
376
|
}, [e.id, r]);
|
|
377
|
-
let { ref: v, isClamped: y } =
|
|
377
|
+
let { ref: v, isClamped: y } = nn(e.description), b = d?.typography?.descriptionClassName ?? "dial-small-paragraph-text", x = d?.typography?.featuredChipClassName, S = d?.typography?.folderLabelClassName ?? "dial-tiny-text", C = d?.typography?.folderLeafClassName ?? "dial-tiny-semi-text", w = oe({
|
|
378
378
|
"--cg-description-text": d?.colors?.textSecondary,
|
|
379
379
|
"--cg-selected-border": d?.colors?.selectedBorder,
|
|
380
380
|
"--cg-selected-bg": d?.colors?.selectedBackground,
|
|
@@ -382,9 +382,9 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
382
382
|
"--cg-footer-border": d?.colors?.footerBorder
|
|
383
383
|
}), T = !m && e.isFeatured === !0, E = !m && a?.(e) !== !1, D = !m || e.folder.length > 0, O = n ? (t) => {
|
|
384
384
|
!yn(t) && !bn(t) && n(e);
|
|
385
|
-
} : void 0, k =
|
|
385
|
+
} : void 0, k = F((t) => {
|
|
386
386
|
!n || yn(t) || bn(t) || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
|
|
387
|
-
}, [n, e]), A =
|
|
387
|
+
}, [n, e]), A = F((t) => {
|
|
388
388
|
t.stopPropagation();
|
|
389
389
|
let n = !g;
|
|
390
390
|
_(n), i?.(e.id, n);
|
|
@@ -402,11 +402,11 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
402
402
|
} : {},
|
|
403
403
|
"aria-label": e.name,
|
|
404
404
|
style: w,
|
|
405
|
-
className:
|
|
405
|
+
className: P("box-border cursor-pointer gap-3 p-3", $t.card, T ? $t.featuredCard : void 0, l ? $t.selectedCard : void 0, u, zt.card),
|
|
406
406
|
children: [
|
|
407
407
|
T && /* @__PURE__ */ J("div", {
|
|
408
408
|
className: "absolute inset-e-[22px] top-0 -translate-y-1/2",
|
|
409
|
-
children: /* @__PURE__ */ J(
|
|
409
|
+
children: /* @__PURE__ */ J(ee, {
|
|
410
410
|
label: o,
|
|
411
411
|
type: e.type,
|
|
412
412
|
className: x,
|
|
@@ -415,19 +415,19 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
415
415
|
}),
|
|
416
416
|
l && /* @__PURE__ */ J(tt, {
|
|
417
417
|
size: B.SM,
|
|
418
|
-
className:
|
|
418
|
+
className: P("absolute end-3 top-3 shrink-0", $t.checkIcon),
|
|
419
419
|
"aria-hidden": !0,
|
|
420
420
|
stroke: V
|
|
421
421
|
}),
|
|
422
|
-
/* @__PURE__ */ J(
|
|
422
|
+
/* @__PURE__ */ J(on, {
|
|
423
423
|
icon: e.iconUrl,
|
|
424
424
|
type: e.type,
|
|
425
425
|
name: e.name,
|
|
426
426
|
version: e.version,
|
|
427
|
-
size:
|
|
427
|
+
size: Mt.SM,
|
|
428
428
|
query: t,
|
|
429
|
-
iconClassName:
|
|
430
|
-
iconOverlay: /* @__PURE__ */ J(
|
|
429
|
+
iconClassName: $t.cardIcon,
|
|
430
|
+
iconOverlay: /* @__PURE__ */ J(cn, {
|
|
431
431
|
credentials: e.credentials,
|
|
432
432
|
loggedOutLabel: f
|
|
433
433
|
})
|
|
@@ -436,7 +436,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
436
436
|
asChild: !0,
|
|
437
437
|
hideTooltip: !y,
|
|
438
438
|
contentClassName: "max-h-[calc(100dvh-16px)] overflow-y-auto",
|
|
439
|
-
content: e.description && /* @__PURE__ */ J(
|
|
439
|
+
content: e.description && /* @__PURE__ */ J(ne, {
|
|
440
440
|
content: e.description,
|
|
441
441
|
classNames: vn,
|
|
442
442
|
components: gn,
|
|
@@ -444,8 +444,8 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
444
444
|
}),
|
|
445
445
|
children: /* @__PURE__ */ J("div", {
|
|
446
446
|
ref: v,
|
|
447
|
-
className:
|
|
448
|
-
children: e.description && /* @__PURE__ */ J(
|
|
447
|
+
className: P(e.topics.length > 0 ? "line-clamp-2 min-h-[2lh]" : "line-clamp-3 min-h-[3lh]", "break-words", $t.description),
|
|
448
|
+
children: e.description && /* @__PURE__ */ J(ne, {
|
|
449
449
|
content: e.description,
|
|
450
450
|
classNames: {
|
|
451
451
|
p: b,
|
|
@@ -468,7 +468,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
468
468
|
children: /* @__PURE__ */ J(hn, { topics: e.topics })
|
|
469
469
|
}),
|
|
470
470
|
D && /* @__PURE__ */ J("div", {
|
|
471
|
-
className:
|
|
471
|
+
className: P("pt-3", !m && P("border-t", $t.footer)),
|
|
472
472
|
children: /* @__PURE__ */ Y("div", {
|
|
473
473
|
className: "flex items-center gap-2",
|
|
474
474
|
children: [/* @__PURE__ */ J("div", {
|
|
@@ -478,21 +478,21 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
478
478
|
labelClassName: S,
|
|
479
479
|
leafClassName: C
|
|
480
480
|
}) : /* @__PURE__ */ J("span", {
|
|
481
|
-
className:
|
|
481
|
+
className: P(S, $t.description),
|
|
482
482
|
children: p
|
|
483
483
|
})
|
|
484
|
-
}), E && /* @__PURE__ */ J(
|
|
484
|
+
}), E && /* @__PURE__ */ J(un, {
|
|
485
485
|
isStarred: g,
|
|
486
486
|
size: U.Small,
|
|
487
487
|
onClick: A,
|
|
488
488
|
ariaLabel: g ? c : s,
|
|
489
|
-
className:
|
|
489
|
+
className: P(!g && $t.emptyStarHidden)
|
|
490
490
|
})]
|
|
491
491
|
})
|
|
492
492
|
})
|
|
493
493
|
]
|
|
494
494
|
});
|
|
495
|
-
}, Sn =
|
|
495
|
+
}, Sn = ue(({ 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 }) => {
|
|
496
496
|
let g = e * n, _ = t.slice(g, g + n);
|
|
497
497
|
return /* @__PURE__ */ J("div", {
|
|
498
498
|
style: {
|
|
@@ -525,8 +525,8 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
525
525
|
}, n?.id ?? `spacer-${t}`);
|
|
526
526
|
})
|
|
527
527
|
});
|
|
528
|
-
}), Cn =
|
|
529
|
-
let m = a?.noResultsTitle ?? "No results", h = a?.featuredLabel ?? "Featured", g = a?.addToFavoritesAriaLabel ?? "Add to favorites", _ = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", v = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", y = a?.noFolderLabel ?? "No folder", { containerRef: b, startRow: x, endRow: S, columnCount: C, totalHeight: w } =
|
|
528
|
+
}), Cn = ue(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = $t.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1, isFullWidth: d = !1, featuredChipStyle: f, markdownLabels: p }) => {
|
|
529
|
+
let m = a?.noResultsTitle ?? "No results", h = a?.featuredLabel ?? "Featured", g = a?.addToFavoritesAriaLabel ?? "Add to favorites", _ = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", v = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", y = a?.noFolderLabel ?? "No folder", { containerRef: b, startRow: x, endRow: S, columnCount: C, totalHeight: w } = Qt(e.length, { isFullWidth: d }), T = L(() => ({
|
|
530
530
|
items: e,
|
|
531
531
|
columnCount: C,
|
|
532
532
|
query: t,
|
|
@@ -563,10 +563,10 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
563
563
|
className: "grid gap-5 p-5",
|
|
564
564
|
style: {
|
|
565
565
|
gridTemplateColumns: `repeat(${C}, minmax(0, 1fr))`,
|
|
566
|
-
...
|
|
566
|
+
...oe({ "--cg-skeleton-card-bg": l })
|
|
567
567
|
},
|
|
568
568
|
children: Array.from({ length: C * 3 }, (e, t) => /* @__PURE__ */ J("div", {
|
|
569
|
-
className:
|
|
569
|
+
className: P("rounded-md border p-3", $t.skeletonCard),
|
|
570
570
|
style: { height: 248 },
|
|
571
571
|
children: /* @__PURE__ */ J(We, {
|
|
572
572
|
avatar: {
|
|
@@ -581,7 +581,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
581
581
|
}, t))
|
|
582
582
|
}) : e.length === 0 ? /* @__PURE__ */ J("div", {
|
|
583
583
|
className: "flex size-full flex-col items-center justify-center",
|
|
584
|
-
children: /* @__PURE__ */ J(
|
|
584
|
+
children: /* @__PURE__ */ J(ie, { label: m })
|
|
585
585
|
}) : /* @__PURE__ */ J("div", {
|
|
586
586
|
ref: b,
|
|
587
587
|
className: "relative",
|
|
@@ -594,15 +594,15 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
594
594
|
}, n);
|
|
595
595
|
})
|
|
596
596
|
});
|
|
597
|
-
}), wn = (e) => e.reduce((e, t) => t.type ===
|
|
597
|
+
}), wn = (e) => e.reduce((e, t) => t.type === It.File ? e + 1 : e + wn(t.items), 0), Tn = (e) => {
|
|
598
598
|
let t = /* @__PURE__ */ new Set(), n = (e) => {
|
|
599
|
-
for (let r of e) r.type ===
|
|
599
|
+
for (let r of e) r.type === It.Folder && (t.add(r.id), n(r.items));
|
|
600
600
|
};
|
|
601
601
|
return n(e), t;
|
|
602
602
|
}, En = (e, t) => {
|
|
603
603
|
if (t != null) for (let n of e) {
|
|
604
604
|
if (n.id === t) return n.name;
|
|
605
|
-
if (n.type ===
|
|
605
|
+
if (n.type === It.Folder) {
|
|
606
606
|
let e = En(n.items, t);
|
|
607
607
|
if (e != null) return e;
|
|
608
608
|
}
|
|
@@ -617,19 +617,19 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
617
617
|
valueText: "_valueText_jnq93_25"
|
|
618
618
|
}, On = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ Y(Xe, { children: [/* @__PURE__ */ J(at, {
|
|
619
619
|
size: B.MD,
|
|
620
|
-
className:
|
|
620
|
+
className: P(r, Dn.checkIcon)
|
|
621
621
|
}), /* @__PURE__ */ J("span", {
|
|
622
|
-
className:
|
|
622
|
+
className: P(n, Dn.valueTrue),
|
|
623
623
|
children: i
|
|
624
624
|
})] }) : e === !1 ? /* @__PURE__ */ J("span", {
|
|
625
|
-
className:
|
|
625
|
+
className: P(t, Dn.valueFalse),
|
|
626
626
|
children: a
|
|
627
627
|
}) : /* @__PURE__ */ J("span", {
|
|
628
|
-
className:
|
|
628
|
+
className: P("min-w-0 break-words", t, Dn.valueText),
|
|
629
629
|
children: e
|
|
630
630
|
}), kn = ({ 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 }) => /* @__PURE__ */ J("div", {
|
|
631
631
|
className: "flex flex-col",
|
|
632
|
-
style:
|
|
632
|
+
style: oe({
|
|
633
633
|
"--tv-section-heading": l?.sectionHeading,
|
|
634
634
|
"--tv-row-alt-bg": l?.rowAlt,
|
|
635
635
|
"--tv-label": l?.label,
|
|
@@ -639,14 +639,14 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
639
639
|
"--tv-value-text": l?.valueText
|
|
640
640
|
}),
|
|
641
641
|
children: t != null && t.length > 0 && /* @__PURE__ */ Y("section", { children: [/* @__PURE__ */ J("p", {
|
|
642
|
-
className:
|
|
642
|
+
className: P("mt-0 mb-3", o, Dn.sectionHeading),
|
|
643
643
|
children: e
|
|
644
644
|
}), /* @__PURE__ */ J("ul", {
|
|
645
645
|
className: "m-0 list-none p-0",
|
|
646
646
|
children: t.map((e, t) => /* @__PURE__ */ Y("li", {
|
|
647
|
-
className:
|
|
647
|
+
className: P("flex items-center rounded px-3 py-2", t % 2 == 0 ? Dn.rowAlt : void 0),
|
|
648
648
|
children: [/* @__PURE__ */ J("span", {
|
|
649
|
-
className:
|
|
649
|
+
className: P(n, Dn.label, "w-2/5 shrink-0"),
|
|
650
650
|
children: e.label
|
|
651
651
|
}), /* @__PURE__ */ J("div", {
|
|
652
652
|
className: "flex w-3/5 min-w-0 items-center gap-1",
|
|
@@ -662,17 +662,17 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
662
662
|
}, e.label))
|
|
663
663
|
})] })
|
|
664
664
|
}), An = { sectionHeading: "_sectionHeading_148lj_1" }, jn = {
|
|
665
|
-
[
|
|
666
|
-
[
|
|
667
|
-
[
|
|
665
|
+
[Z.Python]: "Python",
|
|
666
|
+
[Z.Curl]: "cURL",
|
|
667
|
+
[Z.JavaScript]: "JavaScript"
|
|
668
668
|
}, Mn = {
|
|
669
|
-
[
|
|
670
|
-
[
|
|
671
|
-
[
|
|
669
|
+
[Z.Python]: "python",
|
|
670
|
+
[Z.Curl]: "bash",
|
|
671
|
+
[Z.JavaScript]: "javascript"
|
|
672
672
|
}, Nn = ({ 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" }) => {
|
|
673
|
-
let [s, c] = z(e[0]?.language ??
|
|
674
|
-
|
|
675
|
-
c(e[0]?.language ??
|
|
673
|
+
let [s, c] = z(e[0]?.language ?? Z.Python);
|
|
674
|
+
I(() => {
|
|
675
|
+
c(e[0]?.language ?? Z.Python);
|
|
676
676
|
}, [e]);
|
|
677
677
|
let l = L(() => e.map((e) => ({
|
|
678
678
|
key: e.language,
|
|
@@ -680,9 +680,9 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
680
680
|
onClick: () => c(e.language)
|
|
681
681
|
})), [e]), u = e.find((e) => e.language === s)?.code ?? "", d = e.length > 1;
|
|
682
682
|
return /* @__PURE__ */ Y("section", { children: [t != null && /* @__PURE__ */ J("p", {
|
|
683
|
-
className:
|
|
683
|
+
className: P("mt-0 mb-3", o, An.sectionHeading),
|
|
684
684
|
children: t
|
|
685
|
-
}), /* @__PURE__ */ J(
|
|
685
|
+
}), /* @__PURE__ */ J(N, {
|
|
686
686
|
language: Mn[s] ?? s,
|
|
687
687
|
title: jn[s] ?? s,
|
|
688
688
|
value: u,
|
|
@@ -721,7 +721,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
721
721
|
valueClassName: d,
|
|
722
722
|
sectionClassName: m
|
|
723
723
|
}),
|
|
724
|
-
w != null && /* @__PURE__ */ J(
|
|
724
|
+
w != null && /* @__PURE__ */ J(N, {
|
|
725
725
|
language: a,
|
|
726
726
|
value: w,
|
|
727
727
|
copyLabel: c,
|
|
@@ -733,10 +733,10 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
733
733
|
}),
|
|
734
734
|
v && /* @__PURE__ */ Y("section", { children: [
|
|
735
735
|
/* @__PURE__ */ J("p", {
|
|
736
|
-
className:
|
|
736
|
+
className: P("mt-0 mb-3", m, An.sectionHeading),
|
|
737
737
|
children: n
|
|
738
738
|
}),
|
|
739
|
-
y != null && /* @__PURE__ */ J(
|
|
739
|
+
y != null && /* @__PURE__ */ J(N, {
|
|
740
740
|
language: y.label,
|
|
741
741
|
value: y.url,
|
|
742
742
|
copyLabel: c,
|
|
@@ -775,9 +775,9 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
775
775
|
sectionClassName: m
|
|
776
776
|
}),
|
|
777
777
|
E && /* @__PURE__ */ Y("section", { children: [/* @__PURE__ */ J("p", {
|
|
778
|
-
className:
|
|
778
|
+
className: P("mt-0 mb-3", m, An.sectionHeading),
|
|
779
779
|
children: o
|
|
780
|
-
}), /* @__PURE__ */ J(
|
|
780
|
+
}), /* @__PURE__ */ J(N, {
|
|
781
781
|
language: "bash",
|
|
782
782
|
value: e.requestExample ?? "",
|
|
783
783
|
copyLabel: c,
|
|
@@ -787,9 +787,9 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
787
787
|
hasContentTopPadding: !1
|
|
788
788
|
})] }),
|
|
789
789
|
D && /* @__PURE__ */ Y("section", { children: [/* @__PURE__ */ J("p", {
|
|
790
|
-
className:
|
|
790
|
+
className: P("mt-0 mb-3", m, An.sectionHeading),
|
|
791
791
|
children: s
|
|
792
|
-
}), /* @__PURE__ */ J(
|
|
792
|
+
}), /* @__PURE__ */ J(N, {
|
|
793
793
|
language: "json",
|
|
794
794
|
value: e.responseSchema ?? "",
|
|
795
795
|
copyLabel: c,
|
|
@@ -813,13 +813,13 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
813
813
|
className: "relative inline-flex shrink-0",
|
|
814
814
|
children: [
|
|
815
815
|
/* @__PURE__ */ J("span", {
|
|
816
|
-
className:
|
|
816
|
+
className: P("flex size-8 items-center justify-center rounded-lg", Ln[n]),
|
|
817
817
|
children: e
|
|
818
818
|
}),
|
|
819
819
|
t && /* @__PURE__ */ J(at, {
|
|
820
820
|
size: B.MD,
|
|
821
821
|
"aria-hidden": !0,
|
|
822
|
-
className:
|
|
822
|
+
className: P("absolute -end-2 -top-2", Fn.activeIcon)
|
|
823
823
|
}),
|
|
824
824
|
r != null && /* @__PURE__ */ J("span", {
|
|
825
825
|
role: "status",
|
|
@@ -835,19 +835,19 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
835
835
|
}, Bn = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ Y("div", {
|
|
836
836
|
role: "status",
|
|
837
837
|
"aria-live": "polite",
|
|
838
|
-
className:
|
|
838
|
+
className: P("flex items-center gap-3 rounded-xl p-3", zn.card),
|
|
839
839
|
children: [/* @__PURE__ */ J("span", {
|
|
840
|
-
className:
|
|
840
|
+
className: P("shrink-0", zn.icon, n != null && "mt-0.5"),
|
|
841
841
|
children: e
|
|
842
842
|
}), /* @__PURE__ */ Y("div", {
|
|
843
843
|
className: "flex min-w-0 flex-1 items-center justify-between gap-2",
|
|
844
844
|
children: [/* @__PURE__ */ Y("div", {
|
|
845
845
|
className: "flex min-w-0 flex-col gap-1",
|
|
846
846
|
children: [/* @__PURE__ */ J("span", {
|
|
847
|
-
className:
|
|
847
|
+
className: P(i, zn.title),
|
|
848
848
|
children: t
|
|
849
849
|
}), n != null && /* @__PURE__ */ J("span", {
|
|
850
|
-
className:
|
|
850
|
+
className: P(a, zn.description),
|
|
851
851
|
children: n
|
|
852
852
|
})]
|
|
853
853
|
}), r != null && /* @__PURE__ */ J("div", {
|
|
@@ -902,24 +902,24 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
902
902
|
rowDescription: "_rowDescription_1q3s8_9",
|
|
903
903
|
errorText: "_errorText_1q3s8_13"
|
|
904
904
|
}, Jn = ({ label: e, description: n, icon: r, status: i, isActive: a, authenticationType: o, apiKeyAddedWhen: s, 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: b = !1, renderLoginOptions: x, children: S }) => {
|
|
905
|
-
let C =
|
|
905
|
+
let C = pe(), [T, E] = z(), [D, O] = z(""), [k, A] = z(!1), [j, M] = z(!1), ee = i === w.SignedIn, te = F((e) => {
|
|
906
906
|
O(e ?? ""), A(!1), E(void 0);
|
|
907
|
-
}, []),
|
|
907
|
+
}, []), N = async () => {
|
|
908
908
|
if (j || y) return;
|
|
909
909
|
let e = o === t.ApiKey;
|
|
910
910
|
if (e && !D.trim()) {
|
|
911
911
|
A(!0);
|
|
912
912
|
return;
|
|
913
913
|
}
|
|
914
|
-
|
|
914
|
+
M(!0), E(void 0);
|
|
915
915
|
try {
|
|
916
916
|
await l?.(e ? D : void 0) !== !1 && O("");
|
|
917
917
|
} catch (e) {
|
|
918
918
|
E(e instanceof Error ? e.message : String(e));
|
|
919
919
|
} finally {
|
|
920
|
-
|
|
920
|
+
M(!1);
|
|
921
921
|
}
|
|
922
|
-
},
|
|
922
|
+
}, ne = f?.loginActionLabel ?? "Log in", re = f?.logoutActionLabel ?? "Log out", ie = f?.addApiKeyActionLabel ?? "Add", ae = f?.deleteActionLabel ?? "Delete", oe = f?.credentialsSignedInLabel ?? "Signed in", se = f?.credentialsSignedOutLabel ?? "Signed out", ce = f?.addingApiKeyStatusLabel ?? "Adding", le = f?.apiKeyConfiguredMessage ?? "Key has been configured", ue = `${C}-header-hint`, de = c ? (f?.apiKeyHeaderHint ?? ((e) => `Enter your API key value for "${e}" header`))(c) : void 0, fe = s == null ? void 0 : (f?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(s);
|
|
923
923
|
return /* @__PURE__ */ Y("div", {
|
|
924
924
|
role: "group",
|
|
925
925
|
"aria-label": e,
|
|
@@ -928,7 +928,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
928
928
|
children: [/* @__PURE__ */ J(Rn, {
|
|
929
929
|
icon: r,
|
|
930
930
|
isActive: a,
|
|
931
|
-
statusLabel: a ?
|
|
931
|
+
statusLabel: a ? oe : se
|
|
932
932
|
}), /* @__PURE__ */ Y("div", {
|
|
933
933
|
className: "flex min-w-0 flex-1 flex-col gap-1",
|
|
934
934
|
children: [
|
|
@@ -940,68 +940,68 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
940
940
|
className: p,
|
|
941
941
|
children: e
|
|
942
942
|
}), /* @__PURE__ */ J("span", {
|
|
943
|
-
className:
|
|
943
|
+
className: P(m, qn.rowDescription),
|
|
944
944
|
children: n
|
|
945
945
|
})]
|
|
946
|
-
}), o === t.OAuth && (
|
|
946
|
+
}), o === t.OAuth && (ee ? u && /* @__PURE__ */ J(we, {
|
|
947
947
|
appearance: ve.Ghost,
|
|
948
|
-
label:
|
|
948
|
+
label: re,
|
|
949
949
|
className: "min-h-11 min-w-28 shrink-0 justify-center whitespace-nowrap",
|
|
950
950
|
onClick: u,
|
|
951
951
|
disabled: j || y
|
|
952
952
|
}) : /* @__PURE__ */ J(Fe, {
|
|
953
|
-
label: j ? void 0 :
|
|
954
|
-
"aria-label":
|
|
953
|
+
label: j ? void 0 : ne,
|
|
954
|
+
"aria-label": ne,
|
|
955
955
|
iconBefore: j ? /* @__PURE__ */ J(Ge, {
|
|
956
956
|
size: B.SM,
|
|
957
|
-
ariaLabel:
|
|
957
|
+
ariaLabel: ne
|
|
958
958
|
}) : void 0,
|
|
959
959
|
disabled: j || y,
|
|
960
960
|
className: "min-h-11 min-w-28 shrink-0 justify-center whitespace-nowrap",
|
|
961
|
-
onClick:
|
|
961
|
+
onClick: N
|
|
962
962
|
}))]
|
|
963
963
|
}),
|
|
964
|
-
o === t.ApiKey && !
|
|
964
|
+
o === t.ApiKey && !ee && /* @__PURE__ */ Y("div", {
|
|
965
965
|
className: "flex animate-fadeIn flex-col gap-1 pt-1",
|
|
966
966
|
children: [
|
|
967
967
|
/* @__PURE__ */ Y("div", {
|
|
968
968
|
className: "flex items-end gap-2",
|
|
969
969
|
children: [/* @__PURE__ */ J(W, {
|
|
970
970
|
id: C,
|
|
971
|
-
"aria-describedby":
|
|
971
|
+
"aria-describedby": de ? ue : void 0,
|
|
972
972
|
type: "password",
|
|
973
973
|
autoComplete: "off",
|
|
974
974
|
value: D,
|
|
975
|
-
onChange:
|
|
975
|
+
onChange: te,
|
|
976
976
|
labelProps: { label: f?.apiKeyFieldLabel ?? "API key" },
|
|
977
977
|
invalid: k,
|
|
978
978
|
disabled: j || y,
|
|
979
979
|
containerClassName: "min-w-0 flex-1"
|
|
980
980
|
}), /* @__PURE__ */ J(Fe, {
|
|
981
|
-
label: j ? void 0 :
|
|
982
|
-
"aria-label": j ?
|
|
981
|
+
label: j ? void 0 : ie,
|
|
982
|
+
"aria-label": j ? ce : void 0,
|
|
983
983
|
iconBefore: j ? /* @__PURE__ */ J(Ge, {
|
|
984
984
|
size: B.SM,
|
|
985
|
-
ariaLabel:
|
|
985
|
+
ariaLabel: ce
|
|
986
986
|
}) : void 0,
|
|
987
987
|
className: "min-h-11 shrink-0 whitespace-nowrap",
|
|
988
|
-
onClick:
|
|
988
|
+
onClick: N,
|
|
989
989
|
disabled: j || y
|
|
990
990
|
})]
|
|
991
991
|
}),
|
|
992
|
-
|
|
993
|
-
id:
|
|
994
|
-
className:
|
|
995
|
-
children:
|
|
992
|
+
de && /* @__PURE__ */ J("span", {
|
|
993
|
+
id: ue,
|
|
994
|
+
className: P(m, qn.rowDescription),
|
|
995
|
+
children: de
|
|
996
996
|
}),
|
|
997
997
|
k && /* @__PURE__ */ J("span", {
|
|
998
998
|
role: "alert",
|
|
999
|
-
className:
|
|
999
|
+
className: P(h, qn.errorText),
|
|
1000
1000
|
children: f?.apiKeyRequiredErrorMessage ?? "API key is required."
|
|
1001
1001
|
})
|
|
1002
1002
|
]
|
|
1003
1003
|
}),
|
|
1004
|
-
o === t.ApiKey &&
|
|
1004
|
+
o === t.ApiKey && ee && /* @__PURE__ */ J("div", {
|
|
1005
1005
|
className: "animate-fadeIn pt-1",
|
|
1006
1006
|
children: /* @__PURE__ */ J(Bn, {
|
|
1007
1007
|
icon: /* @__PURE__ */ J(ut, {
|
|
@@ -1009,22 +1009,22 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1009
1009
|
"aria-hidden": !0,
|
|
1010
1010
|
stroke: V
|
|
1011
1011
|
}),
|
|
1012
|
-
title:
|
|
1013
|
-
description:
|
|
1012
|
+
title: le,
|
|
1013
|
+
description: fe,
|
|
1014
1014
|
titleClassName: g,
|
|
1015
1015
|
descriptionClassName: _,
|
|
1016
1016
|
action: d && /* @__PURE__ */ J(Pe, {
|
|
1017
|
-
label:
|
|
1018
|
-
className:
|
|
1017
|
+
label: ae,
|
|
1018
|
+
className: P("min-h-11", v),
|
|
1019
1019
|
onClick: d,
|
|
1020
1020
|
disabled: j || y
|
|
1021
1021
|
})
|
|
1022
1022
|
})
|
|
1023
1023
|
}),
|
|
1024
|
-
!
|
|
1024
|
+
!ee && x?.(j || y),
|
|
1025
1025
|
T && /* @__PURE__ */ J("p", {
|
|
1026
1026
|
role: "alert",
|
|
1027
|
-
className:
|
|
1027
|
+
className: P(h, qn.errorText),
|
|
1028
1028
|
children: T
|
|
1029
1029
|
}),
|
|
1030
1030
|
S
|
|
@@ -1040,7 +1040,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1040
1040
|
children: [/* @__PURE__ */ J("div", {
|
|
1041
1041
|
className: "px-6 py-4",
|
|
1042
1042
|
children: /* @__PURE__ */ J("div", {
|
|
1043
|
-
className:
|
|
1043
|
+
className: P("rounded-xl p-3", qn.surface),
|
|
1044
1044
|
children: /* @__PURE__ */ J(j, {
|
|
1045
1045
|
item: e,
|
|
1046
1046
|
iconSize: 40,
|
|
@@ -1050,7 +1050,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1050
1050
|
}), /* @__PURE__ */ Y("div", {
|
|
1051
1051
|
className: "flex flex-col gap-5 px-6 py-4",
|
|
1052
1052
|
children: [/* @__PURE__ */ J("span", {
|
|
1053
|
-
className:
|
|
1053
|
+
className: P(s, qn.description),
|
|
1054
1054
|
children: m
|
|
1055
1055
|
}), /* @__PURE__ */ Y("div", {
|
|
1056
1056
|
className: "flex flex-col",
|
|
@@ -1124,9 +1124,9 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1124
1124
|
divider: "_divider_1ae8j_1",
|
|
1125
1125
|
hint: "_hint_1ae8j_5"
|
|
1126
1126
|
}, er = 16, tr = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, apiKeyHeader: i, onLogin: a, onLogout: o, onClose: s, texts: c, colors: l, deleteActionClassName: u = "text-error" }) => {
|
|
1127
|
-
let [d, f] = z(""), [p, m] = z(!1), [h, g] = z(!1), [_, v] = z(!1), y = n === w.SignedIn, b =
|
|
1127
|
+
let [d, f] = z(""), [p, m] = z(!1), [h, g] = z(!1), [_, v] = z(!1), y = n === w.SignedIn, b = F((e) => {
|
|
1128
1128
|
f(e ?? ""), m(!1);
|
|
1129
|
-
}, []), x =
|
|
1129
|
+
}, []), x = F(async () => {
|
|
1130
1130
|
if (d.trim().length === 0) {
|
|
1131
1131
|
m(!0);
|
|
1132
1132
|
return;
|
|
@@ -1146,7 +1146,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1146
1146
|
d,
|
|
1147
1147
|
a,
|
|
1148
1148
|
s
|
|
1149
|
-
]), S =
|
|
1149
|
+
]), S = F(async () => {
|
|
1150
1150
|
v(!0);
|
|
1151
1151
|
try {
|
|
1152
1152
|
await o?.(e, { level: t }), s();
|
|
@@ -1158,10 +1158,10 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1158
1158
|
t,
|
|
1159
1159
|
o,
|
|
1160
1160
|
s
|
|
1161
|
-
]), C = c?.personalApiKeyPanelTitle ?? "Personal API key", T = c?.addApiKeyActionLabel ?? "Add", E = c?.deleteActionLabel ?? "Delete", D = c?.addingApiKeyStatusLabel ?? "Adding", O = c?.deletingStatusLabel ?? "Deleting", k = c?.apiKeyRequiredErrorMessage ?? "API key is required.", A = c?.personalApiKeyAddedMessage ?? "Personal key has been added", j = `catalog-item-${e.id}-${t}-api-key`,
|
|
1161
|
+
]), C = c?.personalApiKeyPanelTitle ?? "Personal API key", T = c?.addApiKeyActionLabel ?? "Add", E = c?.deleteActionLabel ?? "Delete", D = c?.addingApiKeyStatusLabel ?? "Adding", O = c?.deletingStatusLabel ?? "Deleting", k = c?.apiKeyRequiredErrorMessage ?? "API key is required.", A = c?.personalApiKeyAddedMessage ?? "Personal key has been added", j = `catalog-item-${e.id}-${t}-api-key`, M = `${j}-header-hint`, ee = i ? (c?.apiKeyHeaderHint ?? ((e) => `Enter your API key value for "${e}" header`))(i) : void 0, te = r == null ? void 0 : (c?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(r);
|
|
1162
1162
|
return /* @__PURE__ */ Y("div", {
|
|
1163
1163
|
className: "flex w-[418px] flex-col",
|
|
1164
|
-
style:
|
|
1164
|
+
style: oe({
|
|
1165
1165
|
"--cat-details-divider": l?.divider,
|
|
1166
1166
|
"--cat-cred-hint-text": l?.credentialsHintText,
|
|
1167
1167
|
"--cat-cred-card-bg": l?.credentialsCardBackground,
|
|
@@ -1177,7 +1177,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1177
1177
|
children: C
|
|
1178
1178
|
})
|
|
1179
1179
|
}),
|
|
1180
|
-
/* @__PURE__ */ J("div", { className:
|
|
1180
|
+
/* @__PURE__ */ J("div", { className: P("mx-4 h-px", $n.divider) }),
|
|
1181
1181
|
!y && /* @__PURE__ */ Y("div", {
|
|
1182
1182
|
className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
|
|
1183
1183
|
children: [
|
|
@@ -1185,7 +1185,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1185
1185
|
className: "flex items-end gap-2",
|
|
1186
1186
|
children: [/* @__PURE__ */ J(W, {
|
|
1187
1187
|
id: j,
|
|
1188
|
-
"aria-describedby":
|
|
1188
|
+
"aria-describedby": ee ? M : void 0,
|
|
1189
1189
|
type: "password",
|
|
1190
1190
|
autoComplete: "current-password",
|
|
1191
1191
|
value: d,
|
|
@@ -1205,10 +1205,10 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1205
1205
|
disabled: h
|
|
1206
1206
|
})]
|
|
1207
1207
|
}),
|
|
1208
|
-
|
|
1209
|
-
id:
|
|
1210
|
-
className:
|
|
1211
|
-
children:
|
|
1208
|
+
ee && /* @__PURE__ */ J("span", {
|
|
1209
|
+
id: M,
|
|
1210
|
+
className: P("dial-caption-text", $n.hint),
|
|
1211
|
+
children: ee
|
|
1212
1212
|
}),
|
|
1213
1213
|
p && /* @__PURE__ */ J("span", {
|
|
1214
1214
|
className: "dial-caption-text text-error",
|
|
@@ -1225,7 +1225,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1225
1225
|
stroke: V
|
|
1226
1226
|
}),
|
|
1227
1227
|
title: A,
|
|
1228
|
-
description:
|
|
1228
|
+
description: te,
|
|
1229
1229
|
action: /* @__PURE__ */ J(Pe, {
|
|
1230
1230
|
label: _ ? void 0 : E,
|
|
1231
1231
|
"aria-label": _ ? O : void 0,
|
|
@@ -1242,7 +1242,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1242
1242
|
]
|
|
1243
1243
|
});
|
|
1244
1244
|
}, nr = { name: "_name_gfs1p_1" }, rr = (e) => e.isMyApp === !0, ir = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
|
|
1245
|
-
let [a, o] = z(!1), s =
|
|
1245
|
+
let [a, o] = z(!1), s = F(() => {
|
|
1246
1246
|
if (n) {
|
|
1247
1247
|
o((e) => !e);
|
|
1248
1248
|
return;
|
|
@@ -1279,31 +1279,31 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1279
1279
|
children: c
|
|
1280
1280
|
}) : c;
|
|
1281
1281
|
}, ar = (e) => e === t.ApiKey ? "Manage API keys" : "Manage credentials", or = {
|
|
1282
|
-
[
|
|
1283
|
-
[
|
|
1282
|
+
[At.LimitReached]: "bg-error text-error",
|
|
1283
|
+
[At.RunningLow]: "bg-warning text-warning"
|
|
1284
1284
|
}, sr = ({ status: e, label: t }) => /* @__PURE__ */ J("div", {
|
|
1285
|
-
className:
|
|
1285
|
+
className: P("flex h-[24px] items-center justify-center gap-1 rounded-2xl px-2 whitespace-nowrap", "dial-caption-lead-semi-text", or[e]),
|
|
1286
1286
|
children: t
|
|
1287
|
-
}), cr = ({ item: e, onUseInChat: n, isPrimaryActionVisible: i, onShare: a, shareOverlay: o, isShareVisible: s, isSharePrimary: c, onEdit: l, onDownload: u, isDownloadVisible: d, isDownloadPrimary: p, onDelete: m, onUnshare: h, isUnshareVisible: g, onRevokeShare: _, onFetchRecipientsCount: v, isRevokeShareVisible: y, onLogin: b, onLogout: x, onOpenCredentialsManagement: S, onRequestLogout: w, texts: T, detailsStyles: D, isPublishVisible: O, isPublishPrimary: k, onOpenPublish: A, isUnpublishVisible:
|
|
1288
|
-
let { nameClassName:
|
|
1289
|
-
status:
|
|
1290
|
-
label:
|
|
1291
|
-
}),
|
|
1287
|
+
}), cr = ({ item: e, onUseInChat: n, isPrimaryActionVisible: i, onShare: a, shareOverlay: o, isShareVisible: s, isSharePrimary: c, onEdit: l, onDownload: u, isDownloadVisible: d, isDownloadPrimary: p, onDelete: m, onUnshare: h, isUnshareVisible: g, onRevokeShare: _, onFetchRecipientsCount: v, isRevokeShareVisible: y, onLogin: b, onLogout: x, onOpenCredentialsManagement: S, onRequestLogout: w, texts: T, detailsStyles: D, isPublishVisible: O, isPublishPrimary: k, onOpenPublish: A, isUnpublishVisible: M, hasPublishedFolders: ee = !1, isPublishHistoryResolved: te = !0, onRequestPublishHistory: N, onOpenUnpublish: ne, isReadonly: re = !1 }) => {
|
|
1288
|
+
let { nameClassName: ie = "dial-body-semi-text", folderLabelClassName: ae = "dial-tiny-text", folderLeafClassName: oe = "dial-tiny-semi-text" } = D?.typography ?? {}, se = e.details?.limits?.status, ce = se == null ? void 0 : /* @__PURE__ */ J(sr, {
|
|
1289
|
+
status: se,
|
|
1290
|
+
label: se === At.LimitReached ? T?.limitReachedLabel ?? "Limit reached" : T?.limitRunningLowLabel ?? "Running low"
|
|
1291
|
+
}), le = F(() => {
|
|
1292
1292
|
n?.(e);
|
|
1293
|
-
}, [e, n]),
|
|
1293
|
+
}, [e, n]), ue = F(() => {
|
|
1294
1294
|
l?.(e);
|
|
1295
|
-
}, [e, l]),
|
|
1295
|
+
}, [e, l]), de = F(() => {
|
|
1296
1296
|
A?.();
|
|
1297
|
-
}, [A]),
|
|
1298
|
-
|
|
1299
|
-
}, [
|
|
1297
|
+
}, [A]), fe = F(() => {
|
|
1298
|
+
ne?.();
|
|
1299
|
+
}, [ne]), pe = F(() => {
|
|
1300
1300
|
u?.(e);
|
|
1301
|
-
}, [e, u]), [
|
|
1302
|
-
|
|
1301
|
+
}, [e, u]), [me, he] = z(!1);
|
|
1302
|
+
I(() => {
|
|
1303
1303
|
he(!1);
|
|
1304
1304
|
}, [e.id]);
|
|
1305
|
-
let ge =
|
|
1306
|
-
|
|
1305
|
+
let ge = F(() => {
|
|
1306
|
+
me || (he(!0), (async () => {
|
|
1307
1307
|
try {
|
|
1308
1308
|
await u?.(e);
|
|
1309
1309
|
} catch {} finally {
|
|
@@ -1313,12 +1313,12 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1313
1313
|
}, [
|
|
1314
1314
|
e,
|
|
1315
1315
|
u,
|
|
1316
|
-
|
|
1316
|
+
me
|
|
1317
1317
|
]), [_e, ve] = z(!1);
|
|
1318
|
-
|
|
1318
|
+
I(() => {
|
|
1319
1319
|
ve(!1);
|
|
1320
1320
|
}, [e.id]);
|
|
1321
|
-
let ye =
|
|
1321
|
+
let ye = F(() => {
|
|
1322
1322
|
if (o) {
|
|
1323
1323
|
ve(!0);
|
|
1324
1324
|
return;
|
|
@@ -1328,19 +1328,19 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1328
1328
|
e,
|
|
1329
1329
|
a,
|
|
1330
1330
|
o
|
|
1331
|
-
]), be =
|
|
1331
|
+
]), be = F(() => {
|
|
1332
1332
|
ve(!1);
|
|
1333
|
-
}, []), xe =
|
|
1333
|
+
}, []), xe = F(() => {
|
|
1334
1334
|
h?.(e);
|
|
1335
|
-
}, [e, h]), Se =
|
|
1335
|
+
}, [e, h]), Se = F(() => {
|
|
1336
1336
|
m?.(e);
|
|
1337
|
-
}, [e, m]), Ce =
|
|
1337
|
+
}, [e, m]), Ce = F(() => {
|
|
1338
1338
|
_?.(e);
|
|
1339
1339
|
}, [e, _]), [H, U] = z(Qn.Idle), [Ee, Oe] = z(void 0), ke = R(null);
|
|
1340
|
-
|
|
1340
|
+
I(() => {
|
|
1341
1341
|
ke.current = null, U(Qn.Idle), Oe(void 0);
|
|
1342
1342
|
}, [e.id]);
|
|
1343
|
-
let Ae =
|
|
1343
|
+
let Ae = F(() => {
|
|
1344
1344
|
if (!v || ke.current === e.id || !_ || e.isMyApp !== !0 || y?.(e) === !1) return;
|
|
1345
1345
|
let t = e.id;
|
|
1346
1346
|
ke.current = t, U(Qn.Loading), (async () => {
|
|
@@ -1359,16 +1359,16 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1359
1359
|
_,
|
|
1360
1360
|
y
|
|
1361
1361
|
]), [je, Me] = z(!1);
|
|
1362
|
-
|
|
1362
|
+
I(() => {
|
|
1363
1363
|
Me(!1);
|
|
1364
1364
|
}, [e.id]);
|
|
1365
|
-
let W =
|
|
1366
|
-
Me(e), e && (Ae(),
|
|
1367
|
-
}, [Ae,
|
|
1368
|
-
Ae(),
|
|
1369
|
-
}, [Ae,
|
|
1370
|
-
|
|
1371
|
-
}, [
|
|
1365
|
+
let W = F((e) => {
|
|
1366
|
+
Me(e), e && (Ae(), N?.());
|
|
1367
|
+
}, [Ae, N]), Ne = F(() => {
|
|
1368
|
+
Ae(), N?.();
|
|
1369
|
+
}, [Ae, N]), Pe = F(() => {
|
|
1370
|
+
N?.();
|
|
1371
|
+
}, [N]), G = T?.hasPrimaryAction !== !1 && (i?.(e) ?? (e.type === E.Model || e.type === E.Agent || e.type === E.Prompt)), K = !re && !!ne && ee && (M?.(e) ?? !0), Le = !re && !!ne && !te && M?.(e) === !0, ze = !re && !K && (O?.(e) ?? (e.type === E.Model || e.type === E.Toolset || e.type === E.Agent)), Be = !re && !!l && !!e.isEditable, Ve = !re && e.isMyApp === !0 && (s?.(e) ?? !0), He = c?.(e) ?? !0, Ue = k?.(e) ?? !1, We = e.credentials?.authenticationType ?? t.None, q = e.credentials != null && We !== t.None ? f(e.credentials) : void 0, Ke = !re && q != null && (!!b || !!x), qe = e.type === E.Toolset && Ke, Je = !!u && (d?.(e) ?? !0), Ye = Je && !qe && (p?.(e) ?? (e.type === E.Skill && !G)), Ze = Je && !Ye, Qe = !re && e.isMyApp, et = !re && !!h && e.isMyApp !== !0 && e.sharedWithMe === !0 && (g?.(e) ?? !0), tt = !re && !!_ && e.isMyApp === !0 && (!v || H === Qn.Unknown || H === Qn.Resolved && (Ee ?? 0) > 0) && (y?.(e) ?? !0), rt = L(() => {
|
|
1372
1372
|
let e = [];
|
|
1373
1373
|
if (!He && Ve && e.push({
|
|
1374
1374
|
key: "share",
|
|
@@ -1381,25 +1381,25 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1381
1381
|
label: T?.editActionLabel ?? "Edit",
|
|
1382
1382
|
Icon: mt,
|
|
1383
1383
|
iconClassName: "text-secondary",
|
|
1384
|
-
onClick:
|
|
1384
|
+
onClick: ue
|
|
1385
1385
|
}), Ze && e.push({
|
|
1386
1386
|
key: "download",
|
|
1387
1387
|
label: T?.downloadActionLabel ?? "Download",
|
|
1388
1388
|
Icon: st,
|
|
1389
1389
|
iconClassName: "text-secondary",
|
|
1390
|
-
onClick:
|
|
1390
|
+
onClick: pe
|
|
1391
1391
|
}), !Ue && ze && e.push({
|
|
1392
1392
|
key: "publish",
|
|
1393
1393
|
label: T?.publishLabel ?? "Publish",
|
|
1394
1394
|
Icon: wt,
|
|
1395
1395
|
iconClassName: "text-secondary",
|
|
1396
|
-
onClick:
|
|
1396
|
+
onClick: de
|
|
1397
1397
|
}), !Ue && K && e.push({
|
|
1398
1398
|
key: "unpublish",
|
|
1399
1399
|
label: T?.unpublishLabel ?? "Unpublish",
|
|
1400
1400
|
Icon: Ct,
|
|
1401
1401
|
iconClassName: "text-secondary",
|
|
1402
|
-
onClick:
|
|
1402
|
+
onClick: fe
|
|
1403
1403
|
}), tt) {
|
|
1404
1404
|
let t = T?.revokeShareLabel ?? "Revoke access", n = T?.revokeShareLabelWithCount ?? ((e) => `${t} (${e})`);
|
|
1405
1405
|
e.push({
|
|
@@ -1436,10 +1436,10 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1436
1436
|
et,
|
|
1437
1437
|
T,
|
|
1438
1438
|
ye,
|
|
1439
|
+
ue,
|
|
1440
|
+
pe,
|
|
1439
1441
|
de,
|
|
1440
|
-
me,
|
|
1441
1442
|
fe,
|
|
1442
|
-
pe,
|
|
1443
1443
|
Se,
|
|
1444
1444
|
Ce,
|
|
1445
1445
|
xe
|
|
@@ -1454,7 +1454,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1454
1454
|
}),
|
|
1455
1455
|
danger: i,
|
|
1456
1456
|
onClick: a
|
|
1457
|
-
})), [rt]), at =
|
|
1457
|
+
})), [rt]), at = M?.(e), ct = !re && !!ne && (at == null || at && !te), lt = !re && !!_ && !!v && e.isMyApp === !0 && (y?.(e) ?? !0), dt = rt.length === 1 && !je && !ct && !lt ? rt[0] : void 0, [ft, gt] = z(!1), vt = We === t.ApiKey && q !== r.ManageCredentials, yt = We === t.ApiKey && q === r.LogOut, xt = We !== t.ApiKey && q !== r.ManageCredentials && q === r.LogOut, Tt = F(() => {
|
|
1458
1458
|
if (q === r.ManageCredentials) {
|
|
1459
1459
|
S?.();
|
|
1460
1460
|
return;
|
|
@@ -1521,7 +1521,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1521
1521
|
}),
|
|
1522
1522
|
children: n
|
|
1523
1523
|
});
|
|
1524
|
-
},
|
|
1524
|
+
}, Z = ({ key: t, label: n, Icon: r, danger: i, onClick: c }) => t === "share" ? /* @__PURE__ */ J(ir, {
|
|
1525
1525
|
item: e,
|
|
1526
1526
|
onShare: a,
|
|
1527
1527
|
shareOverlay: o,
|
|
@@ -1535,7 +1535,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1535
1535
|
stroke: V
|
|
1536
1536
|
}),
|
|
1537
1537
|
onClick: c
|
|
1538
|
-
}),
|
|
1538
|
+
}), jt = () => {
|
|
1539
1539
|
let t = /* @__PURE__ */ J(Te, {
|
|
1540
1540
|
items: it,
|
|
1541
1541
|
placement: "bottom-end",
|
|
@@ -1563,35 +1563,35 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1563
1563
|
renderOverlay: () => o(e, be),
|
|
1564
1564
|
children: t
|
|
1565
1565
|
});
|
|
1566
|
-
},
|
|
1566
|
+
}, Q = qe || G || Ye || He && Ve || Ue && K || Ue && ze || Ke && !qe || it.length > 0 || Le;
|
|
1567
1567
|
return /* @__PURE__ */ Y("div", {
|
|
1568
1568
|
className: "flex flex-col gap-3 px-6 py-4",
|
|
1569
1569
|
children: [/* @__PURE__ */ J(j, {
|
|
1570
1570
|
item: e,
|
|
1571
1571
|
iconSize: 52,
|
|
1572
|
-
nameClassName:
|
|
1572
|
+
nameClassName: P(ie, nr.name),
|
|
1573
1573
|
featuredLabel: T?.featuredLabel ?? "Featured",
|
|
1574
1574
|
typeLabel: T?.entityTypeLabels?.[e.type],
|
|
1575
1575
|
featuredChipStyle: D?.colors?.featuredChipStyle,
|
|
1576
|
-
statusBadge:
|
|
1576
|
+
statusBadge: ce,
|
|
1577
1577
|
footer: e.folder.length > 0 ? /* @__PURE__ */ J(De, {
|
|
1578
1578
|
segments: e.folder,
|
|
1579
|
-
labelClassName:
|
|
1580
|
-
leafClassName:
|
|
1579
|
+
labelClassName: ae,
|
|
1580
|
+
leafClassName: oe
|
|
1581
1581
|
}) : void 0
|
|
1582
|
-
}),
|
|
1582
|
+
}), Q && /* @__PURE__ */ Y("div", {
|
|
1583
1583
|
className: "flex flex-wrap items-center gap-2 ps-[60px]",
|
|
1584
1584
|
children: [
|
|
1585
1585
|
qe && kt(yt || xt ? Fe : Re),
|
|
1586
1586
|
G && /* @__PURE__ */ J(Re, {
|
|
1587
1587
|
label: T?.primaryActionLabel ?? "Use in chat",
|
|
1588
1588
|
iconBefore: /* @__PURE__ */ J(ht, { size: B.MD }),
|
|
1589
|
-
onClick:
|
|
1590
|
-
disabled:
|
|
1589
|
+
onClick: le,
|
|
1590
|
+
disabled: se === At.LimitReached
|
|
1591
1591
|
}),
|
|
1592
1592
|
Ye && /* @__PURE__ */ Y(Xe, { children: [/* @__PURE__ */ J(Re, {
|
|
1593
1593
|
label: T?.downloadActionLabel ?? "Download",
|
|
1594
|
-
iconBefore:
|
|
1594
|
+
iconBefore: me ? /* @__PURE__ */ J(Ge, {
|
|
1595
1595
|
size: B.MD,
|
|
1596
1596
|
"aria-hidden": !0
|
|
1597
1597
|
}) : /* @__PURE__ */ J(st, {
|
|
@@ -1600,9 +1600,9 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1600
1600
|
stroke: V
|
|
1601
1601
|
}),
|
|
1602
1602
|
onClick: ge,
|
|
1603
|
-
disabled:
|
|
1604
|
-
"aria-busy":
|
|
1605
|
-
}),
|
|
1603
|
+
disabled: me,
|
|
1604
|
+
"aria-busy": me
|
|
1605
|
+
}), me && /* @__PURE__ */ J("span", {
|
|
1606
1606
|
role: "status",
|
|
1607
1607
|
"aria-live": "polite",
|
|
1608
1608
|
className: "sr-only",
|
|
@@ -1622,7 +1622,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1622
1622
|
"aria-hidden": !0,
|
|
1623
1623
|
stroke: V
|
|
1624
1624
|
}),
|
|
1625
|
-
onClick:
|
|
1625
|
+
onClick: fe,
|
|
1626
1626
|
onMouseEnter: Pe,
|
|
1627
1627
|
onFocus: Pe
|
|
1628
1628
|
}),
|
|
@@ -1633,12 +1633,12 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1633
1633
|
"aria-hidden": !0,
|
|
1634
1634
|
stroke: V
|
|
1635
1635
|
}),
|
|
1636
|
-
onClick:
|
|
1636
|
+
onClick: de,
|
|
1637
1637
|
onMouseEnter: Pe,
|
|
1638
1638
|
onFocus: Pe
|
|
1639
1639
|
}),
|
|
1640
1640
|
Ke && !qe && kt(Fe),
|
|
1641
|
-
dt ?
|
|
1641
|
+
dt ? Z(dt) : (it.length > 0 || Le) && jt()
|
|
1642
1642
|
]
|
|
1643
1643
|
})]
|
|
1644
1644
|
});
|
|
@@ -1646,7 +1646,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1646
1646
|
let i = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", a = n?.typography?.contentClassName ?? "dial-small-text";
|
|
1647
1647
|
return /* @__PURE__ */ Y("div", {
|
|
1648
1648
|
className: "flex flex-col gap-5",
|
|
1649
|
-
children: [/* @__PURE__ */ J(
|
|
1649
|
+
children: [/* @__PURE__ */ J(ne, {
|
|
1650
1650
|
content: t,
|
|
1651
1651
|
classNames: {
|
|
1652
1652
|
h1: i,
|
|
@@ -1662,7 +1662,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1662
1662
|
...r
|
|
1663
1663
|
}), e && e.length > 0 && /* @__PURE__ */ J("div", {
|
|
1664
1664
|
className: "flex flex-wrap gap-2",
|
|
1665
|
-
children: e.map((e) => /* @__PURE__ */ J(
|
|
1665
|
+
children: e.map((e) => /* @__PURE__ */ J(pn, { label: e }, e))
|
|
1666
1666
|
})]
|
|
1667
1667
|
});
|
|
1668
1668
|
}, ur = {
|
|
@@ -1674,10 +1674,10 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1674
1674
|
node: e,
|
|
1675
1675
|
parentId: n
|
|
1676
1676
|
};
|
|
1677
|
-
return e.type ===
|
|
1677
|
+
return e.type === It.File || !t.has(e.id) ? [r] : [r, ...dr(e.items, t, e.id)];
|
|
1678
1678
|
}), fr = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
|
|
1679
1679
|
let c = L(() => dr(e, n), [e, n]), l = R({}), [u, d] = z(() => t ?? c[0]?.node.id);
|
|
1680
|
-
|
|
1680
|
+
I(() => {
|
|
1681
1681
|
u != null && l.current[u]?.focus();
|
|
1682
1682
|
}, []);
|
|
1683
1683
|
let f = (e) => {
|
|
@@ -1700,23 +1700,23 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1700
1700
|
break;
|
|
1701
1701
|
}
|
|
1702
1702
|
case "ArrowRight":
|
|
1703
|
-
e.preventDefault(), o.node.type ===
|
|
1703
|
+
e.preventDefault(), o.node.type === It.Folder && !n.has(o.node.id) && r(o.node.id);
|
|
1704
1704
|
break;
|
|
1705
1705
|
case "ArrowLeft":
|
|
1706
|
-
e.preventDefault(), o.node.type ===
|
|
1706
|
+
e.preventDefault(), o.node.type === It.Folder && n.has(o.node.id) ? r(o.node.id) : o.parentId != null && f(o.parentId);
|
|
1707
1707
|
break;
|
|
1708
1708
|
case "Enter":
|
|
1709
1709
|
case " ":
|
|
1710
|
-
e.preventDefault(), o.node.type ===
|
|
1710
|
+
e.preventDefault(), o.node.type === It.Folder ? r(o.node.id) : i(o.node.id);
|
|
1711
1711
|
break;
|
|
1712
1712
|
case "Escape":
|
|
1713
1713
|
e.preventDefault(), a();
|
|
1714
1714
|
break;
|
|
1715
1715
|
default: break;
|
|
1716
1716
|
}
|
|
1717
|
-
}, m = (e) =>
|
|
1717
|
+
}, m = (e) => P("flex h-10 shrink-0 cursor-pointer items-center gap-2 rounded-2 px-3 outline-hidden", "hover:bg-control-accent-alpha-hover focus-visible:bg-control-accent-alpha-hover", e && "bg-control-accent-alpha-hover"), h = (e) => {
|
|
1718
1718
|
let a = e.id === u;
|
|
1719
|
-
if (e.type ===
|
|
1719
|
+
if (e.type === It.File) {
|
|
1720
1720
|
let n = e.id === t;
|
|
1721
1721
|
return /* @__PURE__ */ J("div", {
|
|
1722
1722
|
ref: (t) => {
|
|
@@ -1725,11 +1725,11 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1725
1725
|
role: "treeitem",
|
|
1726
1726
|
"aria-selected": n,
|
|
1727
1727
|
tabIndex: a ? 0 : -1,
|
|
1728
|
-
className:
|
|
1728
|
+
className: P(m(a), n && "bg-control-accent-alpha-active"),
|
|
1729
1729
|
onClick: () => i(e.id),
|
|
1730
1730
|
onFocus: () => d(e.id),
|
|
1731
1731
|
children: /* @__PURE__ */ J("span", {
|
|
1732
|
-
className:
|
|
1732
|
+
className: P("min-w-0 flex-1 truncate", s),
|
|
1733
1733
|
children: e.name
|
|
1734
1734
|
})
|
|
1735
1735
|
}, e.id);
|
|
@@ -1753,12 +1753,12 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1753
1753
|
stroke: V
|
|
1754
1754
|
}),
|
|
1755
1755
|
/* @__PURE__ */ J("span", {
|
|
1756
|
-
className:
|
|
1756
|
+
className: P("min-w-0 flex-1 truncate", s),
|
|
1757
1757
|
children: e.name
|
|
1758
1758
|
}),
|
|
1759
1759
|
/* @__PURE__ */ J(nt, {
|
|
1760
1760
|
size: B.SM,
|
|
1761
|
-
className:
|
|
1761
|
+
className: P("shrink-0 transition-transform", !o && "-rotate-90 rtl:rotate-90"),
|
|
1762
1762
|
"aria-hidden": !0,
|
|
1763
1763
|
stroke: V
|
|
1764
1764
|
})
|
|
@@ -1776,7 +1776,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1776
1776
|
children: e.map((e) => h(e))
|
|
1777
1777
|
});
|
|
1778
1778
|
}, pr = () => void 0, mr = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = pr, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = pr, 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 }) => {
|
|
1779
|
-
let y = _?.typography?.contentClassName ?? "dial-small-text", b = _?.typography?.contentHeadingClassName ?? "dial-small-semi-text", x = _?.typography?.contentFileCountClassName ?? "dial-tiny-text", S =
|
|
1779
|
+
let y = _?.typography?.contentClassName ?? "dial-small-text", b = _?.typography?.contentHeadingClassName ?? "dial-small-semi-text", x = _?.typography?.contentFileCountClassName ?? "dial-tiny-text", S = pe(), C = t != null && t !== "", w = n ?? [], T = wn(w) > 1, E = En(w, r) ?? "", D = {
|
|
1780
1780
|
nodes: w,
|
|
1781
1781
|
selectedFileId: r,
|
|
1782
1782
|
expandedFolderIds: o,
|
|
@@ -1788,10 +1788,10 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1788
1788
|
ariaLabel: u,
|
|
1789
1789
|
rowNameClassName: y
|
|
1790
1790
|
}, O = a ? {
|
|
1791
|
-
type:
|
|
1791
|
+
type: Lt.Text,
|
|
1792
1792
|
text: ""
|
|
1793
1793
|
} : m ?? {
|
|
1794
|
-
type:
|
|
1794
|
+
type: Lt.Markdown,
|
|
1795
1795
|
text: e
|
|
1796
1796
|
};
|
|
1797
1797
|
return /* @__PURE__ */ Y("div", {
|
|
@@ -1815,18 +1815,18 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1815
1815
|
onClick: () => l(!c)
|
|
1816
1816
|
})
|
|
1817
1817
|
}), /* @__PURE__ */ J("span", {
|
|
1818
|
-
className:
|
|
1818
|
+
className: P("shrink-0", x, ur.fileCount),
|
|
1819
1819
|
children: d(wn(w))
|
|
1820
1820
|
})]
|
|
1821
1821
|
}),
|
|
1822
1822
|
C && /* @__PURE__ */ Y(Xe, { children: [/* @__PURE__ */ J("p", {
|
|
1823
|
-
className:
|
|
1823
|
+
className: P("m-0", y),
|
|
1824
1824
|
children: t
|
|
1825
|
-
}), /* @__PURE__ */ J("div", { className:
|
|
1825
|
+
}), /* @__PURE__ */ J("div", { className: P("shrink-0", ur.divider) })] }),
|
|
1826
1826
|
/* @__PURE__ */ Y("div", {
|
|
1827
1827
|
role: T ? "region" : void 0,
|
|
1828
1828
|
"aria-labelledby": T ? S : void 0,
|
|
1829
|
-
className:
|
|
1829
|
+
className: P("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && ur.body, h == null && y),
|
|
1830
1830
|
children: [a && /* @__PURE__ */ J("span", {
|
|
1831
1831
|
role: "status",
|
|
1832
1832
|
className: "sr-only",
|
|
@@ -1834,24 +1834,24 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1834
1834
|
}), (() => {
|
|
1835
1835
|
if (h != null) return h;
|
|
1836
1836
|
switch (O.type) {
|
|
1837
|
-
case
|
|
1837
|
+
case Lt.Markdown: return /* @__PURE__ */ J(re, {
|
|
1838
1838
|
content: O.text,
|
|
1839
1839
|
headingClassName: b,
|
|
1840
1840
|
...v
|
|
1841
1841
|
});
|
|
1842
|
-
case
|
|
1842
|
+
case Lt.Text: return /* @__PURE__ */ J(N, {
|
|
1843
1843
|
language: O.language ?? "",
|
|
1844
1844
|
value: O.text,
|
|
1845
1845
|
copyLabel: v?.codeBlockCopyLabel,
|
|
1846
1846
|
copiedLabel: v?.codeBlockCopiedLabel,
|
|
1847
1847
|
hideDownload: !0
|
|
1848
1848
|
});
|
|
1849
|
-
case
|
|
1849
|
+
case Lt.Image: return /* @__PURE__ */ J("img", {
|
|
1850
1850
|
src: O.url,
|
|
1851
1851
|
alt: E,
|
|
1852
1852
|
className: "max-w-full"
|
|
1853
1853
|
});
|
|
1854
|
-
case
|
|
1854
|
+
case Lt.Unsupported: return /* @__PURE__ */ J("p", {
|
|
1855
1855
|
className: "m-0",
|
|
1856
1856
|
children: p
|
|
1857
1857
|
});
|
|
@@ -1881,48 +1881,48 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1881
1881
|
value: _r(e),
|
|
1882
1882
|
max: vr(e.total),
|
|
1883
1883
|
size: U.Small,
|
|
1884
|
-
className:
|
|
1884
|
+
className: P("!h-1 w-full", $.progressTrack, c === gr.Default && $.progressFillDefault, c === gr.Warning && $.progressFillWarning, c === gr.Danger && $.progressFillDanger),
|
|
1885
1885
|
"aria-label": e.label,
|
|
1886
1886
|
"aria-valuetext": e.ariaLabel ?? s
|
|
1887
1887
|
}), u = e.captionLabel != null && /* @__PURE__ */ J("span", {
|
|
1888
|
-
className:
|
|
1888
|
+
className: P("break-words", r, $.label),
|
|
1889
1889
|
children: e.captionLabel
|
|
1890
1890
|
}), d = e.resetLabel != null && /* @__PURE__ */ Y(Xe, { children: [/* @__PURE__ */ J("time", {
|
|
1891
1891
|
dateTime: e.resetIsoValue,
|
|
1892
1892
|
"aria-hidden": e.resetAriaLabel != null || void 0,
|
|
1893
|
-
className:
|
|
1893
|
+
className: P("break-words", r, $.resetLabel),
|
|
1894
1894
|
children: e.resetLabel
|
|
1895
1895
|
}), e.resetAriaLabel != null && /* @__PURE__ */ J("span", {
|
|
1896
1896
|
className: "sr-only",
|
|
1897
1897
|
children: e.resetAriaLabel
|
|
1898
1898
|
})] });
|
|
1899
|
-
return t ===
|
|
1900
|
-
className:
|
|
1899
|
+
return t === Ft.Stacked ? /* @__PURE__ */ Y("li", {
|
|
1900
|
+
className: P("flex flex-col gap-2 border-b py-3 first:pt-0 last:border-b-0 last:pb-0", $.divider),
|
|
1901
1901
|
children: [
|
|
1902
1902
|
/* @__PURE__ */ Y("div", {
|
|
1903
1903
|
className: "flex items-baseline justify-between gap-3",
|
|
1904
1904
|
children: [/* @__PURE__ */ J("span", {
|
|
1905
|
-
className:
|
|
1905
|
+
className: P("min-w-0 break-words", n, $.valuePrimary),
|
|
1906
1906
|
children: e.label
|
|
1907
1907
|
}), /* @__PURE__ */ J("span", {
|
|
1908
|
-
className:
|
|
1908
|
+
className: P("shrink-0", i, c === gr.Danger ? $.valueDanger : $.valuePrimary),
|
|
1909
1909
|
children: s
|
|
1910
1910
|
})]
|
|
1911
1911
|
}),
|
|
1912
1912
|
u,
|
|
1913
1913
|
xr(e) ? l : e.noteLabel != null && /* @__PURE__ */ J("span", {
|
|
1914
|
-
className:
|
|
1914
|
+
className: P(o, $.label),
|
|
1915
1915
|
children: e.noteLabel
|
|
1916
1916
|
}),
|
|
1917
1917
|
d
|
|
1918
1918
|
]
|
|
1919
1919
|
}) : /* @__PURE__ */ Y("li", {
|
|
1920
|
-
className:
|
|
1920
|
+
className: P("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", $.divider),
|
|
1921
1921
|
children: [/* @__PURE__ */ Y("div", {
|
|
1922
1922
|
className: "flex min-w-0 flex-1 flex-col",
|
|
1923
1923
|
children: [
|
|
1924
1924
|
/* @__PURE__ */ J("span", {
|
|
1925
|
-
className:
|
|
1925
|
+
className: P("break-words", n, $.label),
|
|
1926
1926
|
children: e.label
|
|
1927
1927
|
}),
|
|
1928
1928
|
u,
|
|
@@ -1931,7 +1931,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1931
1931
|
}), xr(e) ? /* @__PURE__ */ Y("div", {
|
|
1932
1932
|
className: "flex w-32 shrink-0 flex-col items-end gap-2",
|
|
1933
1933
|
children: [/* @__PURE__ */ J("div", {
|
|
1934
|
-
className:
|
|
1934
|
+
className: P("flex gap-1", i),
|
|
1935
1935
|
children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ Y(Xe, { children: [/* @__PURE__ */ J("span", {
|
|
1936
1936
|
className: $.valuePrimary,
|
|
1937
1937
|
children: e.usedLabel
|
|
@@ -1946,16 +1946,16 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1946
1946
|
}) : /* @__PURE__ */ Y("div", {
|
|
1947
1947
|
className: "flex shrink-0 flex-col items-end",
|
|
1948
1948
|
children: [/* @__PURE__ */ J("span", {
|
|
1949
|
-
className:
|
|
1949
|
+
className: P(a, $.valuePrimary),
|
|
1950
1950
|
children: s
|
|
1951
1951
|
}), e.noteLabel != null && /* @__PURE__ */ J("span", {
|
|
1952
|
-
className:
|
|
1952
|
+
className: P(o, $.label),
|
|
1953
1953
|
children: e.noteLabel
|
|
1954
1954
|
})]
|
|
1955
1955
|
})]
|
|
1956
1956
|
});
|
|
1957
1957
|
}, Tr = ({ group: e, sectionClassName: t, layout: n, labelClassName: r, captionClassName: i, valueClassName: a, noteValueClassName: o, noteClassName: s }) => /* @__PURE__ */ Y("section", { children: [/* @__PURE__ */ J("p", {
|
|
1958
|
-
className:
|
|
1958
|
+
className: P("mt-0 mb-3", t, $.sectionHeading),
|
|
1959
1959
|
children: e.label
|
|
1960
1960
|
}), /* @__PURE__ */ J("ul", {
|
|
1961
1961
|
className: "m-0 flex list-none flex-col p-0",
|
|
@@ -1968,11 +1968,11 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1968
1968
|
noteValueClassName: o,
|
|
1969
1969
|
noteClassName: s
|
|
1970
1970
|
}, e.label))
|
|
1971
|
-
})] }), Er = ({ limits: e, layout: t =
|
|
1971
|
+
})] }), Er = ({ limits: e, layout: t = Ft.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 }) => {
|
|
1972
1972
|
let d = e?.groups.filter((e) => e.rows.length > 0);
|
|
1973
1973
|
return d == null || d.length === 0 ? null : /* @__PURE__ */ Y("div", {
|
|
1974
1974
|
className: "flex flex-col gap-6",
|
|
1975
|
-
style:
|
|
1975
|
+
style: oe({
|
|
1976
1976
|
"--lt-section-heading": u?.sectionHeading,
|
|
1977
1977
|
"--lt-label": u?.label,
|
|
1978
1978
|
"--lt-value-primary": u?.valuePrimary,
|
|
@@ -1993,7 +1993,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
1993
1993
|
noteValueClassName: a,
|
|
1994
1994
|
noteClassName: o
|
|
1995
1995
|
}, e.label)), l != null && /* @__PURE__ */ J("p", {
|
|
1996
|
-
className:
|
|
1996
|
+
className: P("m-0 border-t pt-4", c, $.divider, $.label),
|
|
1997
1997
|
children: l
|
|
1998
1998
|
})]
|
|
1999
1999
|
});
|
|
@@ -2001,7 +2001,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2001
2001
|
className: "flex flex-col gap-4",
|
|
2002
2002
|
children: e.map((e, c) => /* @__PURE__ */ Y("div", {
|
|
2003
2003
|
className: "flex flex-col gap-4",
|
|
2004
|
-
children: [c > 0 && /* @__PURE__ */ J("div", { className:
|
|
2004
|
+
children: [c > 0 && /* @__PURE__ */ J("div", { className: P("shrink-0 border-b", Zn.divider) }), /* @__PURE__ */ J("div", {
|
|
2005
2005
|
className: s,
|
|
2006
2006
|
children: /* @__PURE__ */ J(kn, {
|
|
2007
2007
|
sectionLabel: e.title,
|
|
@@ -2027,7 +2027,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2027
2027
|
return /* @__PURE__ */ Y("div", {
|
|
2028
2028
|
className: "flex flex-col gap-4",
|
|
2029
2029
|
children: [/* @__PURE__ */ J(kn, {
|
|
2030
|
-
sectionLabel: e.unit ===
|
|
2030
|
+
sectionLabel: e.unit === jt.Character ? n : t,
|
|
2031
2031
|
values: s ?? [],
|
|
2032
2032
|
labelClassName: i,
|
|
2033
2033
|
valueClassName: a,
|
|
@@ -2048,13 +2048,13 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2048
2048
|
}, Ar = ({ columns: e, rows: t, columnsTemplate: n, headingClassName: r = "dial-caption-lead-semi-text", cellClassName: i = "dial-tiny-text" }) => {
|
|
2049
2049
|
let a = n ?? `repeat(${e.length}, 1fr)`;
|
|
2050
2050
|
return /* @__PURE__ */ Y("div", {
|
|
2051
|
-
className:
|
|
2051
|
+
className: P(kr.container, "grid overflow-hidden rounded-md"),
|
|
2052
2052
|
style: { gridTemplateColumns: a },
|
|
2053
2053
|
children: [e.map((e) => /* @__PURE__ */ J("div", {
|
|
2054
|
-
className:
|
|
2054
|
+
className: P("px-2 py-1 text-start", r, kr.header),
|
|
2055
2055
|
children: e
|
|
2056
|
-
}, e)), t.map((e, t) => /* @__PURE__ */ J(
|
|
2057
|
-
className:
|
|
2056
|
+
}, e)), t.map((e, t) => /* @__PURE__ */ J(ce, { children: e.map((e, n) => /* @__PURE__ */ J("div", {
|
|
2057
|
+
className: P("px-2 py-1.5", i, kr.cell, t % 2 == 1 ? kr.evenRow : void 0),
|
|
2058
2058
|
children: e
|
|
2059
2059
|
}, n)) }, t))]
|
|
2060
2060
|
});
|
|
@@ -2095,13 +2095,13 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2095
2095
|
}), /* @__PURE__ */ J("span", {
|
|
2096
2096
|
role: "status",
|
|
2097
2097
|
"aria-live": "polite",
|
|
2098
|
-
className:
|
|
2098
|
+
className: P(a, jr.count),
|
|
2099
2099
|
children: s.toolCount(d.length)
|
|
2100
2100
|
})]
|
|
2101
2101
|
}),
|
|
2102
|
-
d.length === 0 && c.trim() !== "" && /* @__PURE__ */ J(
|
|
2102
|
+
d.length === 0 && c.trim() !== "" && /* @__PURE__ */ J(ie, { label: s.noResults }),
|
|
2103
2103
|
d.map((e, a) => /* @__PURE__ */ Y("div", {
|
|
2104
|
-
className:
|
|
2104
|
+
className: P("flex flex-col gap-3 px-[22px] py-4", a > 0 ? jr.divider : void 0),
|
|
2105
2105
|
children: [
|
|
2106
2106
|
/* @__PURE__ */ Y("div", {
|
|
2107
2107
|
className: "flex flex-col gap-1",
|
|
@@ -2112,7 +2112,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2112
2112
|
query: u
|
|
2113
2113
|
})
|
|
2114
2114
|
}), e.description != null && /* @__PURE__ */ J("p", {
|
|
2115
|
-
className:
|
|
2115
|
+
className: P("m-0", n, jr.description),
|
|
2116
2116
|
children: /* @__PURE__ */ J(Ae, {
|
|
2117
2117
|
text: e.description,
|
|
2118
2118
|
query: u,
|
|
@@ -2129,11 +2129,11 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2129
2129
|
columnsTemplate: "1fr 1fr auto",
|
|
2130
2130
|
rows: e.inputParams.map((e) => [
|
|
2131
2131
|
/* @__PURE__ */ J("code", {
|
|
2132
|
-
className:
|
|
2132
|
+
className: P("border-none bg-transparent p-0 text-inherit", jr.code),
|
|
2133
2133
|
children: e.name
|
|
2134
2134
|
}, "name"),
|
|
2135
2135
|
/* @__PURE__ */ J("code", {
|
|
2136
|
-
className:
|
|
2136
|
+
className: P("border-none bg-transparent p-0 text-inherit", jr.code),
|
|
2137
2137
|
children: e.type
|
|
2138
2138
|
}, "type"),
|
|
2139
2139
|
e.isRequired ? "✓" : "—"
|
|
@@ -2144,7 +2144,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2144
2144
|
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ J(Ar, {
|
|
2145
2145
|
columns: [s.annotationKey, s.annotationValue],
|
|
2146
2146
|
rows: e.annotations.map((e) => [/* @__PURE__ */ J("code", {
|
|
2147
|
-
className:
|
|
2147
|
+
className: P("border-none bg-transparent p-0 text-inherit", jr.code),
|
|
2148
2148
|
children: e.key
|
|
2149
2149
|
}, "key"), e.value]),
|
|
2150
2150
|
headingClassName: r,
|
|
@@ -2170,8 +2170,8 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2170
2170
|
"Everyone you shared it with loses access",
|
|
2171
2171
|
"Existing share links stop working",
|
|
2172
2172
|
"You keep full access — nothing is deleted"
|
|
2173
|
-
], Gr = (e) => e === t.ApiKey ? "Toolset API keys" : "Toolset credentials", Kr = (e) => e === C.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", qr = new Set([
|
|
2174
|
-
let { subViewTitleClassName: De = "dial-body-semi-text", overviewSectionClassName: Oe = "dial-caption-text", overviewLabelClassName: ke = "dial-small-semi-text", overviewValueClassName: Ae = "dial-small-text", overviewValueTrueClassName: je = "dial-small-text", confirmMessageClassName: Me = "dial-small-text" } = U?.typography ?? {}, W = U?.colors, Ne =
|
|
2173
|
+
], Gr = (e) => e === t.ApiKey ? "Toolset API keys" : "Toolset credentials", Kr = (e) => e === C.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", qr = new Set([Q.Delete, Q.Unshare]), Jr = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: o, onToggleFavorite: c, isFavoriteVisible: l, onUseInChat: u, isPrimaryActionVisible: d, onShare: f, isPublishVisible: m, isPublishPrimary: h, getPublishHistory: g, publishFolderItems: _ = zr, publishExpandedPaths: y, onPublishExpandedPathsChange: x, publishLoadingPaths: S, hasPublishWriteAccess: w, publishDefaultAuthor: k, onPublish: A, onPublishSuccess: j, onPublishError: M, onCreatePublishFolder: ee, publishLabels: te, ruleSourceOptions: N = Br, onFetchExistingRules: ne, shareOverlay: re, isShareVisible: ae, isSharePrimary: se, onEdit: ce, onDownload: le, isDownloadVisible: ue, isDownloadPrimary: de, onLoadContentFile: fe, onLoadContentFilePreview: pe, renderContentFilePreview: me, renderContentFileTree: he, renderCredentials: ge, onDelete: _e, onUnshare: ve, isUnshareVisible: ye, onRevokeShare: be, onFetchRecipientsCount: xe, isRevokeShareVisible: Se, onUnpublish: B, isUnpublishVisible: V, onLogin: we, onLogout: Te, texts: H, styles: U, limitsFooterNote: Ee }) => {
|
|
2174
|
+
let { subViewTitleClassName: De = "dial-body-semi-text", overviewSectionClassName: Oe = "dial-caption-text", overviewLabelClassName: ke = "dial-small-semi-text", overviewValueClassName: Ae = "dial-small-text", overviewValueTrueClassName: je = "dial-small-text", confirmMessageClassName: Me = "dial-small-text" } = U?.typography ?? {}, W = U?.colors, Ne = oe({
|
|
2175
2175
|
"--cat-details-backdrop": W?.backdrop,
|
|
2176
2176
|
"--cat-details-bg": W?.background,
|
|
2177
2177
|
"--cat-details-border": W?.border,
|
|
@@ -2203,28 +2203,28 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2203
2203
|
"--cat-cred-card-icon": W?.credentialsCardIcon,
|
|
2204
2204
|
"--cat-cred-card-title-text": W?.credentialsCardTitleText,
|
|
2205
2205
|
"--cat-cred-card-description-text": W?.credentialsCardDescriptionText
|
|
2206
|
-
}), [Pe, G] = z(n), [K, Fe] = z(""), [Ie, Le] = z(!1), [Re, ze] = z([]), [Ve, He] = z(!1), q = R(null), Ge = e.details?.promptContent, qe = Ge?.selectedFileId, [Je, Ye] = z(null), [Ze, Qe] = z(!1), [$e, et] = z(/* @__PURE__ */ new Set()), [tt, nt] = z(!1), rt = R(null), it = R(0), at =
|
|
2207
|
-
let t = rt.current, n = e?.preview?.type ===
|
|
2206
|
+
}), [Pe, G] = z(n), [K, Fe] = z(""), [Ie, Le] = z(!1), [Re, ze] = z([]), [Ve, He] = z(!1), q = R(null), Ge = e.details?.promptContent, qe = Ge?.selectedFileId, [Je, Ye] = z(null), [Ze, Qe] = z(!1), [$e, et] = z(/* @__PURE__ */ new Set()), [tt, nt] = z(!1), rt = R(null), it = R(0), at = F((e) => {
|
|
2207
|
+
let t = rt.current, n = e?.preview?.type === Lt.Image ? e.preview.url : null;
|
|
2208
2208
|
t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), rt.current = n, Ye(e);
|
|
2209
2209
|
}, []);
|
|
2210
|
-
|
|
2210
|
+
I(() => {
|
|
2211
2211
|
it.current += 1, at(null), Qe(!1), et(Tn(Ge?.files ?? [])), nt(!1);
|
|
2212
|
-
}, [e.id, qe]),
|
|
2212
|
+
}, [e.id, qe]), I(() => () => {
|
|
2213
2213
|
let e = rt.current;
|
|
2214
2214
|
e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
|
|
2215
2215
|
}, []);
|
|
2216
|
-
let ot =
|
|
2216
|
+
let ot = F((e) => {
|
|
2217
2217
|
et((t) => {
|
|
2218
2218
|
let n = new Set(t);
|
|
2219
2219
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
2220
2220
|
});
|
|
2221
|
-
}, []), st =
|
|
2221
|
+
}, []), st = F(async (e) => {
|
|
2222
2222
|
if (e === qe) {
|
|
2223
2223
|
it.current += 1, at(null), Qe(!1);
|
|
2224
2224
|
return;
|
|
2225
2225
|
}
|
|
2226
|
-
if (
|
|
2227
|
-
if (
|
|
2226
|
+
if (me == null && fe == null && pe == null) return;
|
|
2227
|
+
if (me != null) {
|
|
2228
2228
|
it.current += 1, at({
|
|
2229
2229
|
id: e,
|
|
2230
2230
|
preview: null
|
|
@@ -2237,12 +2237,12 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2237
2237
|
preview: null
|
|
2238
2238
|
}), Qe(!0);
|
|
2239
2239
|
try {
|
|
2240
|
-
let n =
|
|
2241
|
-
type:
|
|
2240
|
+
let n = pe == null ? await fe?.(e).then((e) => e == null ? void 0 : {
|
|
2241
|
+
type: Lt.Markdown,
|
|
2242
2242
|
text: e
|
|
2243
|
-
}) : await
|
|
2243
|
+
}) : await pe(e);
|
|
2244
2244
|
if (it.current !== t) {
|
|
2245
|
-
n?.type ===
|
|
2245
|
+
n?.type === Lt.Image && n.url.startsWith("blob:") && URL.revokeObjectURL(n.url);
|
|
2246
2246
|
return;
|
|
2247
2247
|
}
|
|
2248
2248
|
at({
|
|
@@ -2260,14 +2260,14 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2260
2260
|
}
|
|
2261
2261
|
}, [
|
|
2262
2262
|
qe,
|
|
2263
|
+
fe,
|
|
2263
2264
|
pe,
|
|
2264
2265
|
me,
|
|
2265
|
-
I,
|
|
2266
2266
|
at
|
|
2267
2267
|
]), ct = Je?.id ?? qe, lt = () => Je == null ? null : Je.preview == null ? {
|
|
2268
|
-
type:
|
|
2268
|
+
type: Lt.Text,
|
|
2269
2269
|
text: H?.contentFileErrorLabel ?? "Failed to load this file."
|
|
2270
|
-
} : Je.preview, ut = Je != null &&
|
|
2270
|
+
} : Je.preview, ut = Je != null && me != null ? me(Je.id, En(Ge?.files ?? [], Je.id) ?? "") : void 0, dt = F(() => {
|
|
2271
2271
|
if (!g || q.current === e.id) return;
|
|
2272
2272
|
let t = e.id;
|
|
2273
2273
|
q.current = t, (async () => {
|
|
@@ -2281,10 +2281,10 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2281
2281
|
}
|
|
2282
2282
|
})();
|
|
2283
2283
|
}, [g, e]);
|
|
2284
|
-
|
|
2284
|
+
I(() => {
|
|
2285
2285
|
Ie && dt();
|
|
2286
2286
|
}, [Ie, dt]);
|
|
2287
|
-
let ft =
|
|
2287
|
+
let ft = F((e, t) => {
|
|
2288
2288
|
q.current = null, He(!1), dt(), j?.(e, t);
|
|
2289
2289
|
}, [dt, j]), X = Ot({
|
|
2290
2290
|
item: e,
|
|
@@ -2292,11 +2292,11 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2292
2292
|
folderItems: _,
|
|
2293
2293
|
hasWriteAccess: w,
|
|
2294
2294
|
defaultAuthor: k,
|
|
2295
|
-
onCreateFolder:
|
|
2295
|
+
onCreateFolder: ee,
|
|
2296
2296
|
onPublish: A ?? Rr,
|
|
2297
2297
|
onPublishSuccess: ft,
|
|
2298
|
-
onPublishError:
|
|
2299
|
-
onFetchExistingRules:
|
|
2298
|
+
onPublishError: M,
|
|
2299
|
+
onFetchExistingRules: ne
|
|
2300
2300
|
}), pt = e.type === E.Toolset && b(e.credentials), mt = L(() => Dt({
|
|
2301
2301
|
hasSelectedFolder: X.selectedFolderPath != null,
|
|
2302
2302
|
hasExistingPublicationInFolder: X.hasExistingPublicationInFolder,
|
|
@@ -2310,25 +2310,25 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2310
2310
|
X.hasWriteAccess,
|
|
2311
2311
|
X.isSubmitting,
|
|
2312
2312
|
X.hasSubmitError
|
|
2313
|
-
]), [ht, gt] = z(!1), [_t, vt] = z(null), [yt, bt] = z(!1), [xt, St] = z(null), [Ct, wt] = z(null), [kt,
|
|
2314
|
-
|
|
2313
|
+
]), [ht, gt] = z(!1), [_t, vt] = z(null), [yt, bt] = z(!1), [xt, St] = z(null), [Ct, wt] = z(null), [kt, Z] = z(null);
|
|
2314
|
+
I(() => {
|
|
2315
2315
|
G(n);
|
|
2316
|
-
}, [e.id, n]),
|
|
2317
|
-
Fe(""), Le(!1), X.reset(), ze([]), He(!1), q.current = null,
|
|
2316
|
+
}, [e.id, n]), I(() => {
|
|
2317
|
+
Fe(""), Le(!1), X.reset(), ze([]), He(!1), q.current = null, Z(null), gt(!1), vt(null), bt(!1), St(null), wt(null);
|
|
2318
2318
|
}, [e.id]);
|
|
2319
|
-
let
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
}, [
|
|
2323
|
-
let
|
|
2324
|
-
vt(
|
|
2325
|
-
}, []),
|
|
2326
|
-
wt(t ?? (e.credentials == null ? null : a(e.credentials))), vt(
|
|
2327
|
-
}, [e.credentials]),
|
|
2328
|
-
vt(
|
|
2329
|
-
}, []),
|
|
2330
|
-
vt(
|
|
2331
|
-
}, []),
|
|
2319
|
+
let At = !i && !!B && V?.(e) === !0;
|
|
2320
|
+
I(() => {
|
|
2321
|
+
At && dt();
|
|
2322
|
+
}, [At, dt]);
|
|
2323
|
+
let jt = F(() => gt(!0), []), Mt = F(() => gt(!1), []), Nt = F(() => {
|
|
2324
|
+
vt(Q.Delete);
|
|
2325
|
+
}, []), Pt = F((t) => {
|
|
2326
|
+
wt(t ?? (e.credentials == null ? null : a(e.credentials))), vt(Q.Logout);
|
|
2327
|
+
}, [e.credentials]), Ft = F(() => {
|
|
2328
|
+
vt(Q.Unshare);
|
|
2329
|
+
}, []), It = F(() => {
|
|
2330
|
+
vt(Q.RevokeAccess);
|
|
2331
|
+
}, []), Rt = L(() => {
|
|
2332
2332
|
let e = /* @__PURE__ */ new Set(), t = [];
|
|
2333
2333
|
for (let n of Re) {
|
|
2334
2334
|
let r = n.folderPath.join("/");
|
|
@@ -2338,41 +2338,41 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2338
2338
|
}));
|
|
2339
2339
|
}
|
|
2340
2340
|
return t;
|
|
2341
|
-
}, [Re]),
|
|
2342
|
-
vt(
|
|
2343
|
-
}, []),
|
|
2344
|
-
St(e), vt(
|
|
2345
|
-
}, []),
|
|
2346
|
-
yt || (vt(null), St(null), wt(null),
|
|
2347
|
-
}, [yt]),
|
|
2341
|
+
}, [Re]), zt = Ve && Rt.length > 0, Bt = F((e) => e || (te?.rootFolderLabel ?? "Organization"), [te]), Vt = F(() => {
|
|
2342
|
+
vt(Q.Unpublish);
|
|
2343
|
+
}, []), Ht = F((e) => {
|
|
2344
|
+
St(e), vt(Q.DeleteApiKey);
|
|
2345
|
+
}, []), Wt = F(() => {
|
|
2346
|
+
yt || (vt(null), St(null), wt(null), Z(null));
|
|
2347
|
+
}, [yt]), Gt = F(async () => {
|
|
2348
2348
|
if (!(yt || _t == null)) {
|
|
2349
2349
|
bt(!0);
|
|
2350
2350
|
try {
|
|
2351
2351
|
switch (_t) {
|
|
2352
|
-
case
|
|
2352
|
+
case Q.Delete:
|
|
2353
2353
|
await _e?.(e);
|
|
2354
2354
|
break;
|
|
2355
|
-
case
|
|
2355
|
+
case Q.Unshare:
|
|
2356
2356
|
await ve?.(e);
|
|
2357
2357
|
break;
|
|
2358
|
-
case
|
|
2358
|
+
case Q.RevokeAccess:
|
|
2359
2359
|
await be?.(e);
|
|
2360
2360
|
break;
|
|
2361
|
-
case
|
|
2361
|
+
case Q.Logout:
|
|
2362
2362
|
Ct != null && await Te?.(e, { level: Ct });
|
|
2363
2363
|
break;
|
|
2364
|
-
case
|
|
2364
|
+
case Q.DeleteApiKey:
|
|
2365
2365
|
xt != null && await Te?.(e, { level: xt });
|
|
2366
2366
|
break;
|
|
2367
|
-
case
|
|
2368
|
-
let t = Ir(
|
|
2367
|
+
case Q.Unpublish: {
|
|
2368
|
+
let t = Ir(Rt, kt);
|
|
2369
2369
|
t != null && await B?.(e, t.segments);
|
|
2370
2370
|
break;
|
|
2371
2371
|
}
|
|
2372
2372
|
}
|
|
2373
|
-
vt(null), St(null), wt(null),
|
|
2373
|
+
vt(null), St(null), wt(null), Z(null), qr.has(_t) && o();
|
|
2374
2374
|
} catch {
|
|
2375
|
-
vt(null), St(null), wt(null),
|
|
2375
|
+
vt(null), St(null), wt(null), Z(null);
|
|
2376
2376
|
} finally {
|
|
2377
2377
|
bt(!1);
|
|
2378
2378
|
}
|
|
@@ -2388,33 +2388,33 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2388
2388
|
be,
|
|
2389
2389
|
B,
|
|
2390
2390
|
kt,
|
|
2391
|
-
|
|
2391
|
+
Rt,
|
|
2392
2392
|
Te,
|
|
2393
2393
|
o
|
|
2394
2394
|
]);
|
|
2395
|
-
|
|
2395
|
+
I(() => {
|
|
2396
2396
|
if (!t || _t == null) return;
|
|
2397
2397
|
let e = (e) => {
|
|
2398
|
-
e.key === "Escape" && (e.stopPropagation(),
|
|
2398
|
+
e.key === "Escape" && (e.stopPropagation(), Wt());
|
|
2399
2399
|
};
|
|
2400
2400
|
return document.addEventListener("keydown", e, !0), () => document.removeEventListener("keydown", e, !0);
|
|
2401
2401
|
}, [
|
|
2402
2402
|
t,
|
|
2403
2403
|
_t,
|
|
2404
|
-
|
|
2404
|
+
Wt
|
|
2405
2405
|
]);
|
|
2406
|
-
let
|
|
2406
|
+
let Kt = F(() => Le(!0), []), qt = F(() => {
|
|
2407
2407
|
Le(!1), X.reset();
|
|
2408
|
-
}, [X]),
|
|
2409
|
-
await X.handleSubmit() &&
|
|
2410
|
-
}, [X,
|
|
2408
|
+
}, [X]), Jt = F(async () => {
|
|
2409
|
+
await X.handleSubmit() && qt();
|
|
2410
|
+
}, [X, qt]), Yt = F(() => {
|
|
2411
2411
|
let t = !Pe;
|
|
2412
2412
|
G(t), c?.(e.id, t);
|
|
2413
2413
|
}, [
|
|
2414
2414
|
Pe,
|
|
2415
2415
|
e.id,
|
|
2416
2416
|
c
|
|
2417
|
-
]),
|
|
2417
|
+
]), Xt = L(() => {
|
|
2418
2418
|
let t = {
|
|
2419
2419
|
[T.About]: H?.tabAboutLabel ?? "About",
|
|
2420
2420
|
[T.Content]: H?.tabContentLabel ?? "Details",
|
|
@@ -2428,24 +2428,24 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2428
2428
|
id: e,
|
|
2429
2429
|
label: t[e]
|
|
2430
2430
|
}));
|
|
2431
|
-
}, [e, H]),
|
|
2432
|
-
|
|
2433
|
-
let t =
|
|
2434
|
-
|
|
2431
|
+
}, [e, H]), Zt = R(null);
|
|
2432
|
+
I(() => {
|
|
2433
|
+
let t = Zt.current !== e.id;
|
|
2434
|
+
Zt.current = e.id, (t || !Xt.some((e) => e.id === K)) && Fe(Xt[0]?.id ?? "");
|
|
2435
2435
|
}, [
|
|
2436
2436
|
e.id,
|
|
2437
|
-
|
|
2437
|
+
Xt,
|
|
2438
2438
|
K
|
|
2439
2439
|
]);
|
|
2440
|
-
let
|
|
2440
|
+
let Qt = L(() => Ut(H), [H]), $t = L(() => {
|
|
2441
2441
|
let e = {};
|
|
2442
2442
|
return H?.toolsSearchPlaceholder != null && (e.searchPlaceholder = H.toolsSearchPlaceholder), H?.toolsSearchClearLabel != null && (e.searchClearLabel = H.toolsSearchClearLabel), H?.toolsCountLabel != null && (e.toolCount = H.toolsCountLabel), H?.toolsNoResultsLabel != null && (e.noResults = H.toolsNoResultsLabel), e;
|
|
2443
|
-
}, [H]),
|
|
2443
|
+
}, [H]), en = H?.emptyTabLabel ?? "No data", tn = !e.description?.trim() && (e.topics?.length ?? 0) === 0, nn = !e.details?.overview?.sections?.length, rn = /* @__PURE__ */ J("div", {
|
|
2444
2444
|
className: "flex size-full items-center justify-center py-6",
|
|
2445
|
-
children: /* @__PURE__ */ J(
|
|
2446
|
-
}),
|
|
2445
|
+
children: /* @__PURE__ */ J(ie, { label: en })
|
|
2446
|
+
}), an = H?.overviewYesLabel ?? "Yes", on = H?.overviewNoLabel ?? "No", sn = H?.ariaLabel ?? "Item details", cn = H?.closeAriaLabel ?? "Close", ln = Pe ? H?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : H?.addToFavoritesAriaLabel ?? "Add to favorites", dn = H?.publishTitle ?? "Publish", fn = H?.backToDetailsAriaLabel ?? "Back", pn = H?.cancelLabel ?? "Cancel", mn = L(() => {
|
|
2447
2447
|
switch (_t) {
|
|
2448
|
-
case
|
|
2448
|
+
case Q.Delete: {
|
|
2449
2449
|
let t = H?.deleteActionLabel ?? "Delete";
|
|
2450
2450
|
return {
|
|
2451
2451
|
title: H?.deleteConfirmTitle ?? t,
|
|
@@ -2460,7 +2460,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2460
2460
|
variant: Ce.Danger
|
|
2461
2461
|
};
|
|
2462
2462
|
}
|
|
2463
|
-
case
|
|
2463
|
+
case Q.Unshare: {
|
|
2464
2464
|
let t = H?.unshareLabel ?? "Remove from My List";
|
|
2465
2465
|
return {
|
|
2466
2466
|
title: H?.unshareConfirmTitle ?? t,
|
|
@@ -2475,7 +2475,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2475
2475
|
variant: Ce.Info
|
|
2476
2476
|
};
|
|
2477
2477
|
}
|
|
2478
|
-
case
|
|
2478
|
+
case Q.RevokeAccess: {
|
|
2479
2479
|
let t = H?.revokeShareLabel ?? "Revoke access";
|
|
2480
2480
|
return {
|
|
2481
2481
|
title: H?.revokeShareConfirmTitle ?? t,
|
|
@@ -2490,8 +2490,8 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2490
2490
|
variant: Ce.Danger
|
|
2491
2491
|
};
|
|
2492
2492
|
}
|
|
2493
|
-
case
|
|
2494
|
-
let t = H?.unpublishLabel ?? "Unpublish", n =
|
|
2493
|
+
case Q.Unpublish: {
|
|
2494
|
+
let t = H?.unpublishLabel ?? "Unpublish", n = Rt.length === 1, r = n ? Bt(Rt[0].key) : "", i = H?.unpublishConfirmMessage?.(e.name, r) ?? /* @__PURE__ */ Y(Xe, { children: [
|
|
2495
2495
|
"Unpublish ",
|
|
2496
2496
|
/* @__PURE__ */ J("strong", { children: e.name }),
|
|
2497
2497
|
" from \"",
|
|
@@ -2511,7 +2511,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2511
2511
|
variant: Ce.Danger
|
|
2512
2512
|
};
|
|
2513
2513
|
}
|
|
2514
|
-
case
|
|
2514
|
+
case Q.Logout: {
|
|
2515
2515
|
let e = H?.logoutActionLabel ?? "Log out";
|
|
2516
2516
|
return {
|
|
2517
2517
|
title: e,
|
|
@@ -2522,7 +2522,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2522
2522
|
variant: Ce.Info
|
|
2523
2523
|
};
|
|
2524
2524
|
}
|
|
2525
|
-
case
|
|
2525
|
+
case Q.DeleteApiKey: {
|
|
2526
2526
|
let e = H?.deleteActionLabel ?? "Delete", t = xt ?? C.User;
|
|
2527
2527
|
return {
|
|
2528
2528
|
title: e,
|
|
@@ -2541,52 +2541,52 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2541
2541
|
e.name,
|
|
2542
2542
|
xt,
|
|
2543
2543
|
H,
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
]), hn =
|
|
2547
|
-
title:
|
|
2544
|
+
Rt,
|
|
2545
|
+
Bt
|
|
2546
|
+
]), hn = mn != null, gn = _t === Q.Unpublish && Ir(Rt, kt) == null, _n = hn || Ie || ht, vn = e.credentials == null ? "" : (H?.credentialsManagementTitle ?? Gr)(e.credentials.authenticationType), yn = hn ? {
|
|
2547
|
+
title: mn.title,
|
|
2548
2548
|
isBackDisabled: yt,
|
|
2549
|
-
onBack:
|
|
2549
|
+
onBack: Wt
|
|
2550
2550
|
} : Ie ? {
|
|
2551
|
-
title:
|
|
2551
|
+
title: dn,
|
|
2552
2552
|
isBackDisabled: X.isSubmitting,
|
|
2553
|
-
onBack:
|
|
2553
|
+
onBack: qt
|
|
2554
2554
|
} : ht ? {
|
|
2555
2555
|
title: vn,
|
|
2556
2556
|
isBackDisabled: !1,
|
|
2557
|
-
onBack:
|
|
2558
|
-
} : null, bn = yn?.title ??
|
|
2557
|
+
onBack: Mt
|
|
2558
|
+
} : null, bn = yn?.title ?? sn;
|
|
2559
2559
|
return /* @__PURE__ */ Y(Ue, {
|
|
2560
2560
|
open: t,
|
|
2561
2561
|
onClose: o,
|
|
2562
2562
|
header: yn?.title,
|
|
2563
2563
|
ariaLabel: bn,
|
|
2564
2564
|
onBack: yn?.onBack,
|
|
2565
|
-
backAriaLabel:
|
|
2565
|
+
backAriaLabel: fn,
|
|
2566
2566
|
backDisabled: yn?.isBackDisabled,
|
|
2567
2567
|
hideClose: yn != null,
|
|
2568
|
-
closeAriaLabel:
|
|
2569
|
-
headerActions: yn == null && !i && l?.(e) !== !1 ? /* @__PURE__ */ J(
|
|
2568
|
+
closeAriaLabel: cn,
|
|
2569
|
+
headerActions: yn == null && !i && l?.(e) !== !1 ? /* @__PURE__ */ J(un, {
|
|
2570
2570
|
isStarred: Pe,
|
|
2571
|
-
ariaLabel:
|
|
2572
|
-
onClick:
|
|
2571
|
+
ariaLabel: ln,
|
|
2572
|
+
onClick: Yt
|
|
2573
2573
|
}) : void 0,
|
|
2574
2574
|
style: Ne,
|
|
2575
2575
|
overlayStyle: Ne,
|
|
2576
2576
|
className: Zn.panel,
|
|
2577
2577
|
overlayClassName: Zn.backdrop,
|
|
2578
2578
|
headerClassName: Zn.divider,
|
|
2579
|
-
titleClassName:
|
|
2579
|
+
titleClassName: P(De, Zn.publishTitle),
|
|
2580
2580
|
bodyClassName: "flex flex-col overflow-hidden",
|
|
2581
2581
|
children: [
|
|
2582
2582
|
/* @__PURE__ */ Y("div", {
|
|
2583
|
-
className:
|
|
2583
|
+
className: P("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", Zn.content),
|
|
2584
2584
|
children: [
|
|
2585
2585
|
hn && /* @__PURE__ */ J(O, {
|
|
2586
2586
|
item: e,
|
|
2587
|
-
message:
|
|
2588
|
-
consequences:
|
|
2589
|
-
variant:
|
|
2587
|
+
message: mn.message,
|
|
2588
|
+
consequences: mn.consequences,
|
|
2589
|
+
variant: mn.cardVariant ?? mn.variant,
|
|
2590
2590
|
messageClassName: Me,
|
|
2591
2591
|
styles: { colors: {
|
|
2592
2592
|
messageText: W?.confirmMessageText,
|
|
@@ -2594,14 +2594,14 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2594
2594
|
cardBackground: W?.infoCardBackground,
|
|
2595
2595
|
cardDangerBackground: W?.infoCardDangerBackground
|
|
2596
2596
|
} },
|
|
2597
|
-
children: _t ===
|
|
2597
|
+
children: _t === Q.Unpublish && Rt.length > 1 && /* @__PURE__ */ J(Be, {
|
|
2598
2598
|
ariaLabel: H?.unpublishFolderGroupAriaLabel ?? "Published folders",
|
|
2599
2599
|
value: kt ?? void 0,
|
|
2600
|
-
onChange:
|
|
2600
|
+
onChange: Z,
|
|
2601
2601
|
disabled: yt,
|
|
2602
|
-
items:
|
|
2602
|
+
items: Rt.map((e) => ({
|
|
2603
2603
|
value: e.key,
|
|
2604
|
-
label:
|
|
2604
|
+
label: Bt(e.key)
|
|
2605
2605
|
})),
|
|
2606
2606
|
radioClassName: Me
|
|
2607
2607
|
})
|
|
@@ -2609,8 +2609,8 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2609
2609
|
!hn && !Ie && ht && /* @__PURE__ */ J(Xn, {
|
|
2610
2610
|
item: e,
|
|
2611
2611
|
onLogin: we,
|
|
2612
|
-
onRequestLogout:
|
|
2613
|
-
onRequestDeleteApiKey:
|
|
2612
|
+
onRequestLogout: Pt,
|
|
2613
|
+
onRequestDeleteApiKey: Ht,
|
|
2614
2614
|
texts: H,
|
|
2615
2615
|
detailsStyles: U
|
|
2616
2616
|
}),
|
|
@@ -2641,10 +2641,10 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2641
2641
|
onPublishCredentialsChange: pt ? X.setPublishCredentials : void 0,
|
|
2642
2642
|
rules: X.rules,
|
|
2643
2643
|
onRulesChange: X.setRules,
|
|
2644
|
-
ruleSourceOptions:
|
|
2644
|
+
ruleSourceOptions: N,
|
|
2645
2645
|
isRulesLoading: X.isRulesLoading,
|
|
2646
2646
|
hasRulesLoadError: X.hasRulesLoadError,
|
|
2647
|
-
labels:
|
|
2647
|
+
labels: te,
|
|
2648
2648
|
styles: { colors: {
|
|
2649
2649
|
summaryVersionTagBorder: W?.versionTagBorder,
|
|
2650
2650
|
summaryVersionTagBackground: W?.versionTagBackground,
|
|
@@ -2658,31 +2658,31 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2658
2658
|
onUseInChat: u,
|
|
2659
2659
|
isPrimaryActionVisible: d,
|
|
2660
2660
|
onShare: f,
|
|
2661
|
-
shareOverlay:
|
|
2662
|
-
isShareVisible:
|
|
2663
|
-
isSharePrimary:
|
|
2661
|
+
shareOverlay: re,
|
|
2662
|
+
isShareVisible: ae,
|
|
2663
|
+
isSharePrimary: se,
|
|
2664
2664
|
isPublishVisible: m,
|
|
2665
2665
|
isPublishPrimary: h,
|
|
2666
|
-
onOpenPublish:
|
|
2666
|
+
onOpenPublish: Kt,
|
|
2667
2667
|
isUnpublishVisible: V,
|
|
2668
|
-
hasPublishedFolders:
|
|
2668
|
+
hasPublishedFolders: zt,
|
|
2669
2669
|
isPublishHistoryResolved: g == null || Ve,
|
|
2670
2670
|
onRequestPublishHistory: dt,
|
|
2671
|
-
onOpenUnpublish: B ?
|
|
2672
|
-
onEdit:
|
|
2673
|
-
onDownload:
|
|
2674
|
-
isDownloadVisible:
|
|
2675
|
-
isDownloadPrimary:
|
|
2676
|
-
onDelete: _e ?
|
|
2677
|
-
onUnshare: ve ?
|
|
2671
|
+
onOpenUnpublish: B ? Vt : void 0,
|
|
2672
|
+
onEdit: ce,
|
|
2673
|
+
onDownload: le,
|
|
2674
|
+
isDownloadVisible: ue,
|
|
2675
|
+
isDownloadPrimary: de,
|
|
2676
|
+
onDelete: _e ? Nt : void 0,
|
|
2677
|
+
onUnshare: ve ? Ft : void 0,
|
|
2678
2678
|
isUnshareVisible: ye,
|
|
2679
|
-
onRevokeShare: be ?
|
|
2679
|
+
onRevokeShare: be ? It : void 0,
|
|
2680
2680
|
onFetchRecipientsCount: xe,
|
|
2681
2681
|
isRevokeShareVisible: Se,
|
|
2682
2682
|
onLogin: we,
|
|
2683
2683
|
onLogout: Te,
|
|
2684
|
-
onOpenCredentialsManagement:
|
|
2685
|
-
onRequestLogout:
|
|
2684
|
+
onOpenCredentialsManagement: jt,
|
|
2685
|
+
onRequestLogout: Pt,
|
|
2686
2686
|
texts: H,
|
|
2687
2687
|
detailsStyles: U,
|
|
2688
2688
|
isReadonly: i
|
|
@@ -2702,10 +2702,10 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2702
2702
|
/* @__PURE__ */ Y("div", {
|
|
2703
2703
|
className: "flex items-center px-6",
|
|
2704
2704
|
children: [/* @__PURE__ */ J(Ke, {
|
|
2705
|
-
tabs:
|
|
2705
|
+
tabs: Xt,
|
|
2706
2706
|
activeTabId: K,
|
|
2707
2707
|
onTabChange: Fe,
|
|
2708
|
-
className:
|
|
2708
|
+
className: P("min-w-0 flex-1 overflow-x-auto", Zn.tabsScroll),
|
|
2709
2709
|
tabClassName: "shrink-0"
|
|
2710
2710
|
}), r && /* @__PURE__ */ J("div", {
|
|
2711
2711
|
role: "status",
|
|
@@ -2723,14 +2723,14 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2723
2723
|
})]
|
|
2724
2724
|
}),
|
|
2725
2725
|
/* @__PURE__ */ Y("div", {
|
|
2726
|
-
className:
|
|
2726
|
+
className: P("min-h-0 flex-1 overflow-y-auto", K !== T.Overview && "px-6"),
|
|
2727
2727
|
children: [
|
|
2728
|
-
K === T.About &&
|
|
2729
|
-
K === T.About && !
|
|
2728
|
+
K === T.About && tn ? rn : null,
|
|
2729
|
+
K === T.About && !tn && /* @__PURE__ */ J(lr, {
|
|
2730
2730
|
content: e.description,
|
|
2731
2731
|
topics: e.topics,
|
|
2732
2732
|
detailsStyles: U,
|
|
2733
|
-
markdownLabels:
|
|
2733
|
+
markdownLabels: Qt
|
|
2734
2734
|
}),
|
|
2735
2735
|
K === T.Content && /* @__PURE__ */ J(mr, {
|
|
2736
2736
|
content: Ge?.content ?? "",
|
|
@@ -2751,17 +2751,17 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2751
2751
|
fileLoadingLabel: H?.contentFileLoadingLabel,
|
|
2752
2752
|
fileUnsupportedLabel: H?.contentFileUnsupportedLabel,
|
|
2753
2753
|
detailsStyles: U,
|
|
2754
|
-
markdownLabels:
|
|
2754
|
+
markdownLabels: Qt
|
|
2755
2755
|
}),
|
|
2756
|
-
K === T.Overview &&
|
|
2757
|
-
K === T.Overview && !
|
|
2756
|
+
K === T.Overview && nn ? rn : null,
|
|
2757
|
+
K === T.Overview && !nn && /* @__PURE__ */ J(Dr, {
|
|
2758
2758
|
sections: e.details?.overview?.sections,
|
|
2759
2759
|
sectionClassName: Oe,
|
|
2760
2760
|
labelClassName: ke,
|
|
2761
2761
|
valueClassName: Ae,
|
|
2762
2762
|
valueTrueClassName: je,
|
|
2763
|
-
yesLabel:
|
|
2764
|
-
noLabel:
|
|
2763
|
+
yesLabel: an,
|
|
2764
|
+
noLabel: on
|
|
2765
2765
|
}),
|
|
2766
2766
|
K === T.Pricing && /* @__PURE__ */ J(Or, {
|
|
2767
2767
|
pricing: e.details?.pricing,
|
|
@@ -2787,7 +2787,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2787
2787
|
}),
|
|
2788
2788
|
K === T.Tools && /* @__PURE__ */ J(Fr, {
|
|
2789
2789
|
tools: e.details?.tools,
|
|
2790
|
-
labels:
|
|
2790
|
+
labels: $t
|
|
2791
2791
|
})
|
|
2792
2792
|
]
|
|
2793
2793
|
})
|
|
@@ -2795,15 +2795,15 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2795
2795
|
]
|
|
2796
2796
|
}),
|
|
2797
2797
|
hn && /* @__PURE__ */ J(D, {
|
|
2798
|
-
confirmLabel:
|
|
2799
|
-
cancelLabel:
|
|
2800
|
-
variant:
|
|
2798
|
+
confirmLabel: mn.confirmLabel,
|
|
2799
|
+
cancelLabel: pn,
|
|
2800
|
+
variant: mn.variant,
|
|
2801
2801
|
isLoading: yt,
|
|
2802
2802
|
isConfirmDisabled: gn,
|
|
2803
|
-
loadingStatusLabel:
|
|
2803
|
+
loadingStatusLabel: mn.loadingStatusLabel,
|
|
2804
2804
|
styles: { colors: { border: W?.confirmFooterBorder } },
|
|
2805
|
-
onConfirm:
|
|
2806
|
-
onCancel:
|
|
2805
|
+
onConfirm: Gt,
|
|
2806
|
+
onCancel: Wt
|
|
2807
2807
|
}),
|
|
2808
2808
|
!hn && Ie && /* @__PURE__ */ J(Tt, {
|
|
2809
2809
|
version: e.version,
|
|
@@ -2811,9 +2811,9 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2811
2811
|
allowReplace: Lr,
|
|
2812
2812
|
isSubmitDisabled: mt.isSubmitDisabled,
|
|
2813
2813
|
isSubmitLoading: mt.isSubmitLoading,
|
|
2814
|
-
onCancel:
|
|
2815
|
-
onSubmit:
|
|
2816
|
-
labels:
|
|
2814
|
+
onCancel: qt,
|
|
2815
|
+
onSubmit: Jt,
|
|
2816
|
+
labels: te
|
|
2817
2817
|
})
|
|
2818
2818
|
]
|
|
2819
2819
|
});
|
|
@@ -2837,7 +2837,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2837
2837
|
t.stopPropagation();
|
|
2838
2838
|
let r = !m;
|
|
2839
2839
|
h(r), r ? n?.(e.id, r) : _(!0);
|
|
2840
|
-
}, y = i && !g ? () => i(e) : void 0, b =
|
|
2840
|
+
}, y = i && !g ? () => i(e) : void 0, b = F((t) => {
|
|
2841
2841
|
!i || g || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), i(e));
|
|
2842
2842
|
}, [
|
|
2843
2843
|
i,
|
|
@@ -2849,7 +2849,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2849
2849
|
role: y == null ? void 0 : "button",
|
|
2850
2850
|
tabIndex: y == null ? void 0 : 0,
|
|
2851
2851
|
"aria-label": e.name,
|
|
2852
|
-
className:
|
|
2852
|
+
className: P("box-border min-w-0 cursor-pointer flex-row items-start gap-1 p-3 text-start", g && Yr.cardLeaving, f && Yr.selectedCard, zt.favoriteCard),
|
|
2853
2853
|
onClick: y,
|
|
2854
2854
|
onKeyDown: b,
|
|
2855
2855
|
onAnimationEnd: g ? (t) => {
|
|
@@ -2857,16 +2857,16 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2857
2857
|
} : void 0,
|
|
2858
2858
|
children: [f && /* @__PURE__ */ J(tt, {
|
|
2859
2859
|
size: B.SM,
|
|
2860
|
-
className:
|
|
2860
|
+
className: P("absolute end-3 top-3 shrink-0", Yr.selectedCheck),
|
|
2861
2861
|
"aria-hidden": !0,
|
|
2862
2862
|
stroke: V
|
|
2863
|
-
}), /* @__PURE__ */ J(
|
|
2863
|
+
}), /* @__PURE__ */ J(on, {
|
|
2864
2864
|
icon: e.iconUrl,
|
|
2865
2865
|
type: e.type,
|
|
2866
2866
|
name: e.name,
|
|
2867
2867
|
version: e.version,
|
|
2868
2868
|
lastUsed: e.lastUsed,
|
|
2869
|
-
size:
|
|
2869
|
+
size: Mt.LG,
|
|
2870
2870
|
query: l,
|
|
2871
2871
|
className: "min-w-0 flex-1",
|
|
2872
2872
|
styles: {
|
|
@@ -2877,11 +2877,11 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2877
2877
|
lastUsedClassName: c
|
|
2878
2878
|
}
|
|
2879
2879
|
},
|
|
2880
|
-
iconOverlay: /* @__PURE__ */ J(
|
|
2880
|
+
iconOverlay: /* @__PURE__ */ J(cn, {
|
|
2881
2881
|
credentials: e.credentials,
|
|
2882
2882
|
loggedOutLabel: p
|
|
2883
2883
|
}),
|
|
2884
|
-
lastUsedTrailing: r?.(e) === !1 ? void 0 : /* @__PURE__ */ J(
|
|
2884
|
+
lastUsedTrailing: r?.(e) === !1 ? void 0 : /* @__PURE__ */ J(un, {
|
|
2885
2885
|
isStarred: m,
|
|
2886
2886
|
size: U.Small,
|
|
2887
2887
|
onClick: v,
|
|
@@ -2899,7 +2899,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2899
2899
|
return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
2900
2900
|
}
|
|
2901
2901
|
}, $r = ({ 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 }) => {
|
|
2902
|
-
let h = o?.typography?.titleClassName ?? "dial-body-semi-text", g = o?.typography?.countClassName ?? "dial-tiny-semi-text", _ =
|
|
2902
|
+
let h = o?.typography?.titleClassName ?? "dial-body-semi-text", g = o?.typography?.countClassName ?? "dial-tiny-semi-text", _ = oe({
|
|
2903
2903
|
"--cat-fav-title-text": o?.colors?.titleText,
|
|
2904
2904
|
"--cat-fav-count-text": o?.colors?.countText,
|
|
2905
2905
|
"--cat-fav-selected-check": o?.colors?.selectedCheckIcon,
|
|
@@ -2911,43 +2911,43 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2911
2911
|
"--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
|
|
2912
2912
|
"--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
|
|
2913
2913
|
"--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
|
|
2914
|
-
}), v = L(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = z(1), x =
|
|
2914
|
+
}), v = L(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [y, b] = z(1), x = Rt(), S = x * Zr, C = (y - 1) * S, w = L(() => v.slice(C, C + S), [
|
|
2915
2915
|
v,
|
|
2916
2916
|
C,
|
|
2917
2917
|
S
|
|
2918
|
-
]), T = Math.ceil(v.length / S), E = t ?? e.length, D = R(null), O = R(null), k = R(null), [A, j] = z(), [
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
}, [x]),
|
|
2918
|
+
]), T = Math.ceil(v.length / S), E = t ?? e.length, D = R(null), O = R(null), k = R(null), [A, j] = z(), [M, ee] = z(), N = R(x);
|
|
2919
|
+
I(() => {
|
|
2920
|
+
N.current !== x && (N.current = x, b(1), j(void 0), ee(void 0));
|
|
2921
|
+
}, [x]), I(() => {
|
|
2922
2922
|
y > T && T > 0 && b(T);
|
|
2923
|
-
}, [y, T]),
|
|
2924
|
-
T <= 1 && (A !== void 0 ||
|
|
2923
|
+
}, [y, T]), I(() => {
|
|
2924
|
+
T <= 1 && (A !== void 0 || M !== void 0) && (j(void 0), ee(void 0));
|
|
2925
2925
|
}, [
|
|
2926
2926
|
T,
|
|
2927
2927
|
A,
|
|
2928
|
-
|
|
2929
|
-
]),
|
|
2930
|
-
!k.current || !O.current || T <= 1 || y !== 1 || A !== void 0 || (j(k.current.offsetHeight),
|
|
2928
|
+
M
|
|
2929
|
+
]), me(() => {
|
|
2930
|
+
!k.current || !O.current || T <= 1 || y !== 1 || A !== void 0 || (j(k.current.offsetHeight), ee(O.current.offsetHeight));
|
|
2931
2931
|
}, [
|
|
2932
2932
|
T,
|
|
2933
2933
|
y,
|
|
2934
2934
|
A
|
|
2935
2935
|
]);
|
|
2936
|
-
let
|
|
2937
|
-
return
|
|
2936
|
+
let ne = R(/* @__PURE__ */ new Map()), re = R(y), ie = R(x), ae = R(0), se = R(!1);
|
|
2937
|
+
return me(() => {
|
|
2938
2938
|
if (!k.current || s) return;
|
|
2939
|
-
if (D.current && !
|
|
2939
|
+
if (D.current && !se.current) {
|
|
2940
2940
|
let e = D.current;
|
|
2941
2941
|
e.style.height = "", e.style.transition = "";
|
|
2942
2942
|
}
|
|
2943
|
-
let e =
|
|
2944
|
-
|
|
2943
|
+
let e = re.current !== y, t = ie.current !== x;
|
|
2944
|
+
re.current = y, ie.current = x;
|
|
2945
2945
|
let n = k.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
|
|
2946
2946
|
if (n.forEach((e) => {
|
|
2947
2947
|
let { cardId: t } = e.dataset;
|
|
2948
2948
|
t && r.set(t, Qr(e));
|
|
2949
2949
|
}), !e && !t) {
|
|
2950
|
-
let e = O.current, t =
|
|
2950
|
+
let e = O.current, t = ae.current, i = 0;
|
|
2951
2951
|
if (e) {
|
|
2952
2952
|
let t = e.style.height;
|
|
2953
2953
|
t && (e.style.height = ""), i = e.offsetHeight, t && (e.style.height = t);
|
|
@@ -2956,7 +2956,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2956
2956
|
if (n.forEach((e) => {
|
|
2957
2957
|
let t = e.dataset.cardId;
|
|
2958
2958
|
if (!t) return;
|
|
2959
|
-
let n =
|
|
2959
|
+
let n = ne.current.get(t), i = r.get(t);
|
|
2960
2960
|
if (!n || !i) return;
|
|
2961
2961
|
let o = n.left - i.left, c = n.top - i.top;
|
|
2962
2962
|
!a && Math.abs(c) > .5 || Math.abs(o) < .5 && Math.abs(c) < .5 || (e.style.transition = "none", e.style.transform = `translate(${o}px, ${c}px)`, s.push(e));
|
|
@@ -2972,30 +2972,30 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
2972
2972
|
e.addEventListener("transitionend", t);
|
|
2973
2973
|
}
|
|
2974
2974
|
}
|
|
2975
|
-
if (
|
|
2975
|
+
if (ne.current = r, O.current) {
|
|
2976
2976
|
let e = O.current, t = e.style.height ? parseFloat(e.style.height) : NaN;
|
|
2977
|
-
|
|
2977
|
+
ae.current = Number.isNaN(t) ? e.offsetHeight : t;
|
|
2978
2978
|
}
|
|
2979
2979
|
}, [
|
|
2980
2980
|
w,
|
|
2981
2981
|
y,
|
|
2982
2982
|
x,
|
|
2983
2983
|
s
|
|
2984
|
-
]),
|
|
2984
|
+
]), me(() => {
|
|
2985
2985
|
let e = D.current;
|
|
2986
2986
|
if (!e) return;
|
|
2987
2987
|
let t = e.offsetHeight;
|
|
2988
2988
|
if (t === 0) return;
|
|
2989
|
-
|
|
2989
|
+
se.current = !0, e.style.height = "0px", e.offsetHeight, e.style.transition = "height 300ms cubic-bezier(0, 0, 0.2, 1)", e.style.height = `${t}px`;
|
|
2990
2990
|
let n = (t) => {
|
|
2991
2991
|
t.target !== e || t.propertyName !== "height" || r();
|
|
2992
2992
|
}, r = () => {
|
|
2993
|
-
|
|
2993
|
+
se.current = !1, parseFloat(e.style.height || "0") > 0 && (e.style.height = "", e.style.transition = ""), clearTimeout(i), e.removeEventListener("transitionend", n);
|
|
2994
2994
|
}, i = setTimeout(r, 400);
|
|
2995
2995
|
return e.addEventListener("transitionend", n), () => {
|
|
2996
2996
|
clearTimeout(i), e.removeEventListener("transitionend", n);
|
|
2997
2997
|
};
|
|
2998
|
-
}, []),
|
|
2998
|
+
}, []), me(() => {
|
|
2999
2999
|
if (!s || !D.current) return;
|
|
3000
3000
|
let e = D.current, t = e.offsetHeight;
|
|
3001
3001
|
t !== 0 && (e.style.height = `${t}px`, e.offsetHeight, e.style.transition = "height 260ms ease-in", e.style.height = "0px");
|
|
@@ -3003,28 +3003,28 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3003
3003
|
ref: D,
|
|
3004
3004
|
children: /* @__PURE__ */ Y("section", {
|
|
3005
3005
|
ref: O,
|
|
3006
|
-
className:
|
|
3006
|
+
className: P("flex flex-shrink-0 flex-col gap-4 pt-2 pb-2", Yr.section, s && Yr.sectionLeaving),
|
|
3007
3007
|
style: {
|
|
3008
3008
|
..._,
|
|
3009
|
-
minHeight:
|
|
3009
|
+
minHeight: M
|
|
3010
3010
|
},
|
|
3011
3011
|
onAnimationEnd: (e) => {
|
|
3012
3012
|
e.target === O.current && s && c?.();
|
|
3013
3013
|
},
|
|
3014
|
-
children: [/* @__PURE__ */ J(
|
|
3014
|
+
children: [/* @__PURE__ */ J(te, {
|
|
3015
3015
|
title: n,
|
|
3016
3016
|
postfix: E,
|
|
3017
|
-
titleClassName:
|
|
3018
|
-
postfixClassName:
|
|
3017
|
+
titleClassName: P(h, Yr.titleText),
|
|
3018
|
+
postfixClassName: P(g, Yr.countText),
|
|
3019
3019
|
trailing: T > 1 ? /* @__PURE__ */ Y("div", {
|
|
3020
|
-
className:
|
|
3020
|
+
className: P("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", Yr.pageNav),
|
|
3021
3021
|
children: [
|
|
3022
3022
|
/* @__PURE__ */ J(ke, {
|
|
3023
3023
|
size: U.Small,
|
|
3024
3024
|
"aria-label": l,
|
|
3025
3025
|
disabled: y === 1,
|
|
3026
3026
|
onClick: () => b((e) => e - 1),
|
|
3027
|
-
className:
|
|
3027
|
+
className: P("rounded-full", Yr.navBtn),
|
|
3028
3028
|
icon: /* @__PURE__ */ J(rt, {
|
|
3029
3029
|
size: 14,
|
|
3030
3030
|
"aria-hidden": !0,
|
|
@@ -3033,7 +3033,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3033
3033
|
})
|
|
3034
3034
|
}),
|
|
3035
3035
|
/* @__PURE__ */ Y("span", {
|
|
3036
|
-
className:
|
|
3036
|
+
className: P("min-w-[32px] px-1 text-center select-none", g, Yr.countText),
|
|
3037
3037
|
children: [
|
|
3038
3038
|
y,
|
|
3039
3039
|
" / ",
|
|
@@ -3045,7 +3045,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3045
3045
|
"aria-label": u,
|
|
3046
3046
|
disabled: y === T,
|
|
3047
3047
|
onClick: () => b((e) => e + 1),
|
|
3048
|
-
className:
|
|
3048
|
+
className: P("rounded-full", Yr.navBtn),
|
|
3049
3049
|
icon: /* @__PURE__ */ J(it, {
|
|
3050
3050
|
size: 14,
|
|
3051
3051
|
"aria-hidden": !0,
|
|
@@ -3057,7 +3057,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3057
3057
|
}) : void 0
|
|
3058
3058
|
}), /* @__PURE__ */ J("div", {
|
|
3059
3059
|
ref: k,
|
|
3060
|
-
className:
|
|
3060
|
+
className: P("grid content-start gap-5", Yr.gridPage),
|
|
3061
3061
|
style: {
|
|
3062
3062
|
gridTemplateColumns: `repeat(${x}, minmax(0, 1fr))`,
|
|
3063
3063
|
minHeight: A
|
|
@@ -3096,7 +3096,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3096
3096
|
version: "_version_1cc13_76"
|
|
3097
3097
|
}, ri = ({ data: e }) => e ? /* @__PURE__ */ J("div", {
|
|
3098
3098
|
className: "flex h-full items-center",
|
|
3099
|
-
children: /* @__PURE__ */ J(
|
|
3099
|
+
children: /* @__PURE__ */ J(M, { type: e.type })
|
|
3100
3100
|
}) : null, ii = " / ", ai = ({ data: e, context: t }) => {
|
|
3101
3101
|
if (!e || e.folder.length === 0) return null;
|
|
3102
3102
|
let n = e.folder.join(ii), 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";
|
|
@@ -3106,7 +3106,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3106
3106
|
/* @__PURE__ */ J(lt, {
|
|
3107
3107
|
size: B.SM,
|
|
3108
3108
|
stroke: V,
|
|
3109
|
-
className:
|
|
3109
|
+
className: P("shrink-0", ni.folderIcon),
|
|
3110
3110
|
"aria-hidden": !0
|
|
3111
3111
|
}),
|
|
3112
3112
|
/* @__PURE__ */ J(Je, {
|
|
@@ -3139,7 +3139,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3139
3139
|
size: 36,
|
|
3140
3140
|
initialsName: e.name,
|
|
3141
3141
|
styles: { badgeClassName: "rounded-[10px]" }
|
|
3142
|
-
}), /* @__PURE__ */ J(
|
|
3142
|
+
}), /* @__PURE__ */ J(cn, {
|
|
3143
3143
|
credentials: e.credentials,
|
|
3144
3144
|
loggedOutLabel: t?.credentialsBadgeLoggedOutLabel
|
|
3145
3145
|
})]
|
|
@@ -3147,8 +3147,8 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3147
3147
|
className: "flex min-w-0 flex-1 items-baseline gap-1.5",
|
|
3148
3148
|
children: [
|
|
3149
3149
|
/* @__PURE__ */ J("h3", {
|
|
3150
|
-
className:
|
|
3151
|
-
children: /* @__PURE__ */ J(
|
|
3150
|
+
className: P("min-w-0 shrink", i, ni.name),
|
|
3151
|
+
children: /* @__PURE__ */ J(rn, {
|
|
3152
3152
|
name: e.name,
|
|
3153
3153
|
query: n,
|
|
3154
3154
|
className: "whitespace-normal"
|
|
@@ -3156,19 +3156,19 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3156
3156
|
}),
|
|
3157
3157
|
e.version && /* @__PURE__ */ J(Ee, {
|
|
3158
3158
|
text: e.version,
|
|
3159
|
-
className:
|
|
3159
|
+
className: P("max-w-[30%] shrink-0", a, ni.version)
|
|
3160
3160
|
}),
|
|
3161
3161
|
o && /* @__PURE__ */ J(tt, {
|
|
3162
3162
|
size: B.SM,
|
|
3163
|
-
className:
|
|
3163
|
+
className: P("ms-auto shrink-0", ni.selectedCheck),
|
|
3164
3164
|
"aria-hidden": !0,
|
|
3165
3165
|
stroke: V
|
|
3166
3166
|
})
|
|
3167
3167
|
]
|
|
3168
3168
|
})]
|
|
3169
3169
|
}) : null;
|
|
3170
|
-
}, si =
|
|
3171
|
-
let e =
|
|
3170
|
+
}, si = le(null), ci = () => {
|
|
3171
|
+
let e = fe(si);
|
|
3172
3172
|
if (e == null) throw Error("useListSelection must be used inside a ListView in multiple selection mode.");
|
|
3173
3173
|
return e;
|
|
3174
3174
|
}, li = ({ data: e }) => {
|
|
@@ -3195,11 +3195,11 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3195
3195
|
});
|
|
3196
3196
|
}, di = ({ data: e, context: t }) => {
|
|
3197
3197
|
let [n, r] = z(e?.isStarred ?? !1);
|
|
3198
|
-
return
|
|
3198
|
+
return I(() => {
|
|
3199
3199
|
r(e?.isStarred ?? !1);
|
|
3200
3200
|
}, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ J("div", {
|
|
3201
3201
|
className: "flex size-full items-center justify-end",
|
|
3202
|
-
children: /* @__PURE__ */ J(
|
|
3202
|
+
children: /* @__PURE__ */ J(un, {
|
|
3203
3203
|
isStarred: n,
|
|
3204
3204
|
onClick: (i) => {
|
|
3205
3205
|
i.stopPropagation();
|
|
@@ -3290,10 +3290,10 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3290
3290
|
}
|
|
3291
3291
|
];
|
|
3292
3292
|
}, vi = 60, yi = {}, bi = /* @__PURE__ */ new Set(), xi = "Select all", Si = (e) => e.id, Ci = (e) => `Select ${e.name}`, wi = (e) => e.items.length === 0 ? /* @__PURE__ */ J("div", {
|
|
3293
|
-
className: Ye("flex size-full flex-col items-center justify-center",
|
|
3294
|
-
children: /* @__PURE__ */ J(
|
|
3295
|
-
}) : /* @__PURE__ */ J(Ti, { ...e }), Ti = ({ items: e, type: t, query: n = "", ariaLabel: r = "Catalog", emptyStateTitle: i, styles: a, onToggleFavorite: o, isFavoriteVisible: s, onItemClick: c, stickyHeaderTop: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f = !1, columnVisibility: p, selectionMode: m =
|
|
3296
|
-
let y = m ===
|
|
3293
|
+
className: Ye("flex size-full flex-col items-center justify-center", zt.listView),
|
|
3294
|
+
children: /* @__PURE__ */ J(ie, { label: e.emptyStateTitle ?? "No results" })
|
|
3295
|
+
}) : /* @__PURE__ */ J(Ti, { ...e }), Ti = ({ items: e, type: t, query: n = "", ariaLabel: r = "Catalog", emptyStateTitle: i, styles: a, onToggleFavorite: o, isFavoriteVisible: s, onItemClick: c, stickyHeaderTop: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f = !1, columnVisibility: p, selectionMode: m = Pt.Single, selectedItemIds: h = bi, onSelectionChange: g, selectRowAriaLabel: _ = Ci, selectAllAriaLabel: v = xi }) => {
|
|
3296
|
+
let y = m === Pt.Multiple, b = y ? void 0 : u, x = a?.typography ?? yi, S = a?.colors, C = {
|
|
3297
3297
|
"--cat-list-bg": S?.background,
|
|
3298
3298
|
"--cat-list-border": S?.border,
|
|
3299
3299
|
"--cat-list-header-bg": S?.headerBackground,
|
|
@@ -3305,14 +3305,14 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3305
3305
|
"--cat-list-selected-bg": S?.selectedRowBackground,
|
|
3306
3306
|
"--cat-list-selected-check": S?.selectedRowCheckIcon,
|
|
3307
3307
|
...l == null ? {} : { "--list-header-sticky-top": `${l}px` }
|
|
3308
|
-
}, w = R(null), T =
|
|
3308
|
+
}, w = R(null), T = F((e) => {
|
|
3309
3309
|
w.current = e;
|
|
3310
3310
|
}, []), E = L(() => _i(t, f, p, y), [
|
|
3311
3311
|
t,
|
|
3312
3312
|
f,
|
|
3313
3313
|
p,
|
|
3314
3314
|
y
|
|
3315
|
-
]), D = L(() => e.map(Si), [e]), O = L(() => D.filter((e) => h.has(e)).length, [D, h]), k =
|
|
3315
|
+
]), D = L(() => e.map(Si), [e]), O = L(() => D.filter((e) => h.has(e)).length, [D, h]), k = F((e) => g?.(ei(h, e)), [g, h]), A = F(() => g?.(ti(h, D)), [
|
|
3316
3316
|
g,
|
|
3317
3317
|
h,
|
|
3318
3318
|
D
|
|
@@ -3334,15 +3334,15 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3334
3334
|
A,
|
|
3335
3335
|
_,
|
|
3336
3336
|
v
|
|
3337
|
-
]),
|
|
3338
|
-
|
|
3339
|
-
let
|
|
3340
|
-
e.clientWidth !==
|
|
3341
|
-
}, []),
|
|
3337
|
+
]), M = R(k);
|
|
3338
|
+
M.current = k;
|
|
3339
|
+
let ee = R(null), te = F((e) => {
|
|
3340
|
+
e.clientWidth !== ee.current && (ee.current = e.clientWidth, e.api.sizeColumnsToFit());
|
|
3341
|
+
}, []), N = F((e) => {
|
|
3342
3342
|
if (e.key !== " " || !(e.target instanceof Element) || e.target instanceof HTMLInputElement) return;
|
|
3343
3343
|
let t = e.target.closest("[row-id]")?.getAttribute("row-id");
|
|
3344
3344
|
t != null && (e.preventDefault(), k(t));
|
|
3345
|
-
}, [k]),
|
|
3345
|
+
}, [k]), ne = L(() => ({
|
|
3346
3346
|
domLayout: "autoHeight",
|
|
3347
3347
|
rowHeight: vi,
|
|
3348
3348
|
animateRows: !1,
|
|
@@ -3352,7 +3352,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3352
3352
|
filter: !1,
|
|
3353
3353
|
floatingFilter: !1
|
|
3354
3354
|
},
|
|
3355
|
-
onGridSizeChanged:
|
|
3355
|
+
onGridSizeChanged: te,
|
|
3356
3356
|
context: {
|
|
3357
3357
|
searchQuery: n,
|
|
3358
3358
|
typography: x,
|
|
@@ -3364,7 +3364,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3364
3364
|
},
|
|
3365
3365
|
onCellClicked: c || y ? (e) => {
|
|
3366
3366
|
let t = e.column.getColDef();
|
|
3367
|
-
t.field !== "isStarred" && t.colId !== "selection" && e.data && (y &&
|
|
3367
|
+
t.field !== "isStarred" && t.colId !== "selection" && e.data && (y && M.current(e.data.id), c?.(e.data));
|
|
3368
3368
|
} : void 0,
|
|
3369
3369
|
rowClass: c || y ? "cursor-pointer" : void 0,
|
|
3370
3370
|
getRowClass: (e) => e.data?.id === b ? ni.selectedRow : void 0
|
|
@@ -3378,44 +3378,44 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3378
3378
|
f,
|
|
3379
3379
|
c,
|
|
3380
3380
|
y,
|
|
3381
|
-
|
|
3382
|
-
]), { containerRef:
|
|
3381
|
+
te
|
|
3382
|
+
]), { containerRef: re, startRow: ie, endRow: ae } = Zt(e.length, vi), oe = L(() => e.slice(ie, ae), [
|
|
3383
3383
|
e,
|
|
3384
|
-
|
|
3385
|
-
|
|
3384
|
+
ie,
|
|
3385
|
+
ae
|
|
3386
3386
|
]);
|
|
3387
|
-
return
|
|
3387
|
+
return I(() => {
|
|
3388
3388
|
w.current?.refreshCells({ force: !0 });
|
|
3389
|
-
}, [n]),
|
|
3389
|
+
}, [n]), I(() => {
|
|
3390
3390
|
w.current?.redrawRows();
|
|
3391
3391
|
}, [b]), /* @__PURE__ */ J("div", {
|
|
3392
3392
|
style: C,
|
|
3393
|
-
className: Ye("w-full rounded-xl border", ni.listContainer,
|
|
3393
|
+
className: Ye("w-full rounded-xl border", ni.listContainer, zt.listView),
|
|
3394
3394
|
children: /* @__PURE__ */ Y("div", {
|
|
3395
|
-
ref:
|
|
3396
|
-
onKeyDown: y ?
|
|
3395
|
+
ref: re,
|
|
3396
|
+
onKeyDown: y ? N : void 0,
|
|
3397
3397
|
className: Ye("rounded-xl [&_.ag-cell.ag-column-first]:ps-4 [&_.ag-cell.ag-column-last]:pe-4 [&_.ag-header-cell.ag-column-first]:ps-4 [&_.ag-header-cell.ag-column-last]:pe-4", ni.gridClip),
|
|
3398
3398
|
children: [
|
|
3399
|
-
|
|
3400
|
-
style: { height:
|
|
3399
|
+
ie > 0 && /* @__PURE__ */ J("div", {
|
|
3400
|
+
style: { height: ie * vi },
|
|
3401
3401
|
"aria-hidden": !0
|
|
3402
3402
|
}),
|
|
3403
3403
|
/* @__PURE__ */ J(si.Provider, {
|
|
3404
3404
|
value: j,
|
|
3405
3405
|
children: /* @__PURE__ */ J(kt, {
|
|
3406
3406
|
columnDefs: E,
|
|
3407
|
-
rowData:
|
|
3407
|
+
rowData: oe,
|
|
3408
3408
|
getRowId: Si,
|
|
3409
3409
|
withoutHeaderBorders: !0,
|
|
3410
3410
|
wrapCustomCellRenderers: !1,
|
|
3411
3411
|
onGridApiChange: T,
|
|
3412
3412
|
emptyStateTitle: i,
|
|
3413
|
-
additionalGridOptions:
|
|
3413
|
+
additionalGridOptions: ne,
|
|
3414
3414
|
ariaLabel: r
|
|
3415
3415
|
})
|
|
3416
3416
|
}),
|
|
3417
|
-
|
|
3418
|
-
style: { height: (e.length -
|
|
3417
|
+
ae < e.length && /* @__PURE__ */ J("div", {
|
|
3418
|
+
style: { height: (e.length - ae) * vi },
|
|
3419
3419
|
"aria-hidden": !0
|
|
3420
3420
|
})
|
|
3421
3421
|
]
|
|
@@ -3425,7 +3425,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3425
3425
|
divider: "_divider_k154m_1",
|
|
3426
3426
|
sectionHeader: "_sectionHeader_k154m_5"
|
|
3427
3427
|
}, Oi = ({ open: e, onClose: t, title: n, options: r, search: i, searchPlaceholder: a, searchClearLabel: o, noResultsLabel: s, backLabel: c, closeLabel: l, colors: u, sectionHeaderClassName: d = "dial-caption-text" }) => {
|
|
3428
|
-
let [f, p] = z(null), m = f ? r.find((e) => e.key === f) : void 0, h = m?.children ?? r, g = i ?
|
|
3428
|
+
let [f, p] = z(null), m = f ? r.find((e) => e.key === f) : void 0, h = m?.children ?? r, g = i ? Vt(h, i.value) : h, _ = oe({
|
|
3429
3429
|
"--cat-create-menu-divider": u?.divider,
|
|
3430
3430
|
"--cat-create-menu-section-header-text": u?.sectionHeaderText
|
|
3431
3431
|
}), v = () => {
|
|
@@ -3463,10 +3463,10 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3463
3463
|
style: _,
|
|
3464
3464
|
children: g.map((e) => e.type === H.Divider ? /* @__PURE__ */ J("div", {
|
|
3465
3465
|
role: "separator",
|
|
3466
|
-
className:
|
|
3466
|
+
className: P("my-1", Di.divider, e.className)
|
|
3467
3467
|
}, e.key) : e.type === H.PlainText ? /* @__PURE__ */ J("div", {
|
|
3468
3468
|
role: "presentation",
|
|
3469
|
-
className:
|
|
3469
|
+
className: P("px-3 py-2", Di.sectionHeader, d, e.className),
|
|
3470
3470
|
children: e.label
|
|
3471
3471
|
}, e.key) : /* @__PURE__ */ J(G, {
|
|
3472
3472
|
role: "menuitem",
|
|
@@ -3490,11 +3490,11 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3490
3490
|
})]
|
|
3491
3491
|
});
|
|
3492
3492
|
}, ki = ({ 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 = be.Primary, colors: u, sectionHeaderClassName: d }) => {
|
|
3493
|
-
let f = R(null), [p, m] = z(!1), h =
|
|
3493
|
+
let f = R(null), [p, m] = z(!1), h = se(), g = /* @__PURE__ */ J(nt, {
|
|
3494
3494
|
size: B.SM,
|
|
3495
3495
|
stroke: V,
|
|
3496
3496
|
"aria-hidden": !0,
|
|
3497
|
-
className:
|
|
3497
|
+
className: P("transition-transform", p && "rotate-180")
|
|
3498
3498
|
});
|
|
3499
3499
|
if (h && (r || t?.length)) return /* @__PURE__ */ Y(Xe, { children: [/* @__PURE__ */ J(_e, {
|
|
3500
3500
|
label: e,
|
|
@@ -3613,7 +3613,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3613
3613
|
let a = e.size > 0;
|
|
3614
3614
|
return n && a ? `${r} · ${e.size}` : n ? r : a ? u(e, t, i) : i;
|
|
3615
3615
|
}, Pi = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: o = "Topics", defaultLabel: s = "From", clearLabel: c = "Clear", applyLabel: l = "Apply", typography: u, colors: d }) => {
|
|
3616
|
-
let f = (r ?? !1) || e.size > 0, [p, m] = z(!1), h =
|
|
3616
|
+
let f = (r ?? !1) || e.size > 0, [p, m] = z(!1), h = oe({
|
|
3617
3617
|
"--cat-filter-btn-bg": d?.buttonBackground,
|
|
3618
3618
|
"--cat-filter-btn-border": d?.buttonBorder,
|
|
3619
3619
|
"--cat-filter-btn-border-hover": d?.buttonBorderHover,
|
|
@@ -3630,18 +3630,18 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3630
3630
|
"--cat-filter-divider": d?.divider,
|
|
3631
3631
|
"--cat-filter-footer-border": d?.footerBorder
|
|
3632
3632
|
}), g = L(() => n == null ? [] : [...n].sort(), [n]), _ = Ni(e, n, r, a, s), [v, y] = z(() => new Set(e)), [b, x] = z(r ?? !1);
|
|
3633
|
-
|
|
3633
|
+
I(() => {
|
|
3634
3634
|
p && (y(new Set(e)), x(r ?? !1));
|
|
3635
3635
|
}, [
|
|
3636
3636
|
p,
|
|
3637
3637
|
e,
|
|
3638
3638
|
r
|
|
3639
3639
|
]);
|
|
3640
|
-
let C = g.length + 1, [w, T] = z(-1), E = R([]), D = R(null), O = R(null), k =
|
|
3640
|
+
let C = g.length + 1, [w, T] = z(-1), E = R([]), D = R(null), O = R(null), k = F((e) => {
|
|
3641
3641
|
let t = (e + C) % C;
|
|
3642
3642
|
T(t), E.current[t]?.focus();
|
|
3643
3643
|
}, [C]);
|
|
3644
|
-
|
|
3644
|
+
I(() => {
|
|
3645
3645
|
if (!p) {
|
|
3646
3646
|
T(-1);
|
|
3647
3647
|
return;
|
|
@@ -3653,12 +3653,12 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3653
3653
|
m(e), e || D.current?.focus();
|
|
3654
3654
|
}, j = (e) => {
|
|
3655
3655
|
e.key === "ArrowDown" && !p && (e.preventDefault(), m(!0));
|
|
3656
|
-
},
|
|
3656
|
+
}, M = (e) => {
|
|
3657
3657
|
let t = O.current?.contains(e.target) ?? !1;
|
|
3658
3658
|
e.key === "ArrowDown" && !t ? (e.preventDefault(), k(w + 1)) : e.key === "ArrowUp" && !t ? (e.preventDefault(), k(w - 1)) : e.key === "Escape" && (e.preventDefault(), m(!1), D.current?.focus());
|
|
3659
|
-
},
|
|
3659
|
+
}, ee = () => {
|
|
3660
3660
|
t(v), i?.(b), A(!1);
|
|
3661
|
-
},
|
|
3661
|
+
}, te = () => {
|
|
3662
3662
|
t(/* @__PURE__ */ new Set()), i?.(!1), A(!1);
|
|
3663
3663
|
};
|
|
3664
3664
|
return /* @__PURE__ */ J(Te, {
|
|
@@ -3675,8 +3675,8 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3675
3675
|
...h,
|
|
3676
3676
|
maxHeight: "calc(var(--fui-available-height, 9999px) - 8px)"
|
|
3677
3677
|
},
|
|
3678
|
-
className:
|
|
3679
|
-
onKeyDown:
|
|
3678
|
+
className: P("flex min-w-[360px] flex-col rounded-xl p-[6px]", Mi.overlay),
|
|
3679
|
+
onKeyDown: M,
|
|
3680
3680
|
children: [
|
|
3681
3681
|
/* @__PURE__ */ J(G, {
|
|
3682
3682
|
role: "menuitemcheckbox",
|
|
@@ -3684,7 +3684,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3684
3684
|
mark: K.Checkbox,
|
|
3685
3685
|
selected: b,
|
|
3686
3686
|
label: a,
|
|
3687
|
-
labelClassName:
|
|
3687
|
+
labelClassName: P(Mi.rowLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
3688
3688
|
className: "shrink-0",
|
|
3689
3689
|
tabIndex: w === 0 ? 0 : -1,
|
|
3690
3690
|
ref: (e) => {
|
|
@@ -3695,16 +3695,16 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3695
3695
|
g.length > 0 && /* @__PURE__ */ Y(Xe, { children: [
|
|
3696
3696
|
/* @__PURE__ */ J("div", {
|
|
3697
3697
|
role: "separator",
|
|
3698
|
-
className:
|
|
3698
|
+
className: P("my-1 h-px", Mi.divider),
|
|
3699
3699
|
"aria-hidden": !0
|
|
3700
3700
|
}),
|
|
3701
3701
|
/* @__PURE__ */ J("div", {
|
|
3702
|
-
className:
|
|
3702
|
+
className: P("px-[10px] pt-[10px] pb-1", u?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Mi.sectionLabel),
|
|
3703
3703
|
"aria-hidden": !0,
|
|
3704
3704
|
children: o
|
|
3705
3705
|
}),
|
|
3706
3706
|
/* @__PURE__ */ J("div", {
|
|
3707
|
-
className:
|
|
3707
|
+
className: P(ae, "flex min-h-0 flex-col gap-1 overflow-y-auto"),
|
|
3708
3708
|
children: g.map((e, t) => {
|
|
3709
3709
|
let n = v.has(e), r = t + 1;
|
|
3710
3710
|
return /* @__PURE__ */ J(G, {
|
|
@@ -3725,15 +3725,15 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3725
3725
|
})
|
|
3726
3726
|
] }),
|
|
3727
3727
|
/* @__PURE__ */ Y("div", {
|
|
3728
|
-
className:
|
|
3728
|
+
className: P("mt-1 flex shrink-0 items-center px-1 py-3", Mi.footer),
|
|
3729
3729
|
ref: O,
|
|
3730
3730
|
children: [/* @__PURE__ */ J(Oe, {
|
|
3731
3731
|
label: c,
|
|
3732
|
-
onClick:
|
|
3732
|
+
onClick: te
|
|
3733
3733
|
}), /* @__PURE__ */ J(Re, {
|
|
3734
3734
|
label: l,
|
|
3735
3735
|
className: "ms-auto",
|
|
3736
|
-
onClick:
|
|
3736
|
+
onClick: ee
|
|
3737
3737
|
})]
|
|
3738
3738
|
})
|
|
3739
3739
|
]
|
|
@@ -3747,18 +3747,18 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3747
3747
|
iconBefore: /* @__PURE__ */ J(ct, {
|
|
3748
3748
|
size: B.SM,
|
|
3749
3749
|
stroke: V,
|
|
3750
|
-
className:
|
|
3750
|
+
className: P("shrink-0", Mi.filterBtnFunnel),
|
|
3751
3751
|
"aria-hidden": !0
|
|
3752
3752
|
}),
|
|
3753
3753
|
label: _,
|
|
3754
|
-
textClassName:
|
|
3754
|
+
textClassName: P(Mi.filterBtnLabel, u?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
3755
3755
|
iconAfter: /* @__PURE__ */ J(nt, {
|
|
3756
3756
|
size: 14,
|
|
3757
3757
|
stroke: V,
|
|
3758
|
-
className:
|
|
3758
|
+
className: P("shrink-0 transition-transform duration-150", Mi.filterBtnChevron, p && "rotate-180"),
|
|
3759
3759
|
"aria-hidden": !0
|
|
3760
3760
|
}),
|
|
3761
|
-
className:
|
|
3761
|
+
className: P("h-12 shrink-0 gap-[7px] !rounded-lg px-[18px] whitespace-nowrap", Mi.filterBtn, f && Mi.filterBtnActive, p && Mi.filterBtnOpen)
|
|
3762
3762
|
})
|
|
3763
3763
|
});
|
|
3764
3764
|
}, Fi = /* @__PURE__ */ function(e) {
|
|
@@ -3778,11 +3778,11 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3778
3778
|
}, D = () => {
|
|
3779
3779
|
c(/* @__PURE__ */ new Set()), d?.(!1), w();
|
|
3780
3780
|
}, O = [{
|
|
3781
|
-
value:
|
|
3781
|
+
value: Nt.Grid,
|
|
3782
3782
|
label: f.gridView,
|
|
3783
3783
|
Icon: dt
|
|
3784
3784
|
}, {
|
|
3785
|
-
value:
|
|
3785
|
+
value: Nt.Cards,
|
|
3786
3786
|
label: f.listView,
|
|
3787
3787
|
Icon: ft
|
|
3788
3788
|
}], k = {
|
|
@@ -3798,7 +3798,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3798
3798
|
backAriaLabel: f.back,
|
|
3799
3799
|
closeAriaLabel: f.close,
|
|
3800
3800
|
onClose: w,
|
|
3801
|
-
bodyClassName:
|
|
3801
|
+
bodyClassName: P(A && "flex flex-col"),
|
|
3802
3802
|
children: [
|
|
3803
3803
|
m === Fi.Root && /* @__PURE__ */ Y("div", {
|
|
3804
3804
|
role: "menu",
|
|
@@ -3880,11 +3880,11 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3880
3880
|
}), b.length > 0 && /* @__PURE__ */ Y(Xe, { children: [
|
|
3881
3881
|
/* @__PURE__ */ J("div", {
|
|
3882
3882
|
role: "separator",
|
|
3883
|
-
className:
|
|
3883
|
+
className: P("my-1 h-px", Mi.divider),
|
|
3884
3884
|
"aria-hidden": !0
|
|
3885
3885
|
}),
|
|
3886
3886
|
/* @__PURE__ */ J("div", {
|
|
3887
|
-
className:
|
|
3887
|
+
className: P("px-[10px] pt-[10px] pb-1", p?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", Mi.sectionLabel),
|
|
3888
3888
|
"aria-hidden": !0,
|
|
3889
3889
|
children: f.topics
|
|
3890
3890
|
}),
|
|
@@ -3903,7 +3903,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3903
3903
|
})
|
|
3904
3904
|
] })]
|
|
3905
3905
|
}), /* @__PURE__ */ Y("div", {
|
|
3906
|
-
className:
|
|
3906
|
+
className: P("flex shrink-0 items-center gap-3 px-4 py-3", Mi.footer),
|
|
3907
3907
|
children: [/* @__PURE__ */ J(Oe, {
|
|
3908
3908
|
label: f.clear,
|
|
3909
3909
|
className: "flex-1",
|
|
@@ -3922,13 +3922,13 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3922
3922
|
settingsDot: "_settingsDot_mk15x_9",
|
|
3923
3923
|
searchField: "_searchField_mk15x_17"
|
|
3924
3924
|
}, zi = /* @__PURE__ */ new Set(), Bi = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", browseHeaderRenderer: i, styles: a, query: o, onQueryChange: s, searchPlaceholder: c, gridViewLabel: l = "Grid view", listViewLabel: u = "List view", viewToggleLabel: d = "View mode", sortKey: f, sortOptions: p, onSortChange: m, sortLabel: h = "Sort", filters: g, onFiltersChange: _, filterValues: v, isMyAppsActive: y, onMyAppsChange: b, filterFromLabel: x, filterMyAppsLabel: S, filterTopicsLabel: C, browseSettingsLabels: w }) => {
|
|
3925
|
-
let T =
|
|
3925
|
+
let T = se(), [E, D] = z(!1), O = (y ?? !1) || (g?.size ?? 0) > 0, k = {
|
|
3926
3926
|
...ji,
|
|
3927
3927
|
myApps: S ?? ji.myApps,
|
|
3928
3928
|
topics: C ?? ji.topics,
|
|
3929
3929
|
...w
|
|
3930
|
-
}, A = a?.typography?.titleClassName ?? "dial-body-semi-text", j = a?.typography?.countClassName ?? "dial-tiny-semi-text",
|
|
3931
|
-
value:
|
|
3930
|
+
}, A = a?.typography?.titleClassName ?? "dial-body-semi-text", j = a?.typography?.countClassName ?? "dial-tiny-semi-text", M = L(() => [{
|
|
3931
|
+
value: Nt.Grid,
|
|
3932
3932
|
icon: /* @__PURE__ */ J(dt, {
|
|
3933
3933
|
size: B.SM,
|
|
3934
3934
|
"aria-hidden": !0,
|
|
@@ -3936,16 +3936,16 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3936
3936
|
}),
|
|
3937
3937
|
"aria-label": l
|
|
3938
3938
|
}, {
|
|
3939
|
-
value:
|
|
3939
|
+
value: Nt.Cards,
|
|
3940
3940
|
icon: /* @__PURE__ */ J(ft, {
|
|
3941
3941
|
size: B.SM,
|
|
3942
3942
|
"aria-hidden": !0,
|
|
3943
3943
|
stroke: V
|
|
3944
3944
|
}),
|
|
3945
3945
|
"aria-label": u
|
|
3946
|
-
}], [l, u]),
|
|
3946
|
+
}], [l, u]), ee = (e) => {
|
|
3947
3947
|
s(e ?? "");
|
|
3948
|
-
},
|
|
3948
|
+
}, N = p?.find((e) => e.value === f)?.label ?? h, ne = L(() => (p ?? []).map((e) => ({
|
|
3949
3949
|
key: e.value,
|
|
3950
3950
|
label: e.label,
|
|
3951
3951
|
mark: K.Check,
|
|
@@ -3960,7 +3960,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3960
3960
|
className: "flex flex-col gap-3",
|
|
3961
3961
|
children: [/* @__PURE__ */ Y("div", {
|
|
3962
3962
|
className: "flex flex-wrap items-center gap-x-2 gap-y-3",
|
|
3963
|
-
children: [i ?? /* @__PURE__ */ J(
|
|
3963
|
+
children: [i ?? /* @__PURE__ */ J(te, {
|
|
3964
3964
|
title: r,
|
|
3965
3965
|
postfix: e,
|
|
3966
3966
|
titleClassName: A,
|
|
@@ -3977,10 +3977,10 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3977
3977
|
"aria-label": d,
|
|
3978
3978
|
value: t,
|
|
3979
3979
|
onChange: n,
|
|
3980
|
-
items:
|
|
3981
|
-
}), p != null && p.length > 0 && /* @__PURE__ */ Y(Xe, { children: [/* @__PURE__ */ J("div", { className:
|
|
3982
|
-
items:
|
|
3983
|
-
label:
|
|
3980
|
+
items: M
|
|
3981
|
+
}), p != null && p.length > 0 && /* @__PURE__ */ Y(Xe, { children: [/* @__PURE__ */ J("div", { className: P("h-4 w-px shrink-0", Ri.divider) }), /* @__PURE__ */ J(ye, {
|
|
3982
|
+
items: ne,
|
|
3983
|
+
label: N,
|
|
3984
3984
|
variant: be.Primary,
|
|
3985
3985
|
appearance: ve.Ghost
|
|
3986
3986
|
})] })]
|
|
@@ -3992,7 +3992,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
3992
3992
|
className: "flex-1",
|
|
3993
3993
|
children: /* @__PURE__ */ J(Ve, {
|
|
3994
3994
|
value: o,
|
|
3995
|
-
onChange:
|
|
3995
|
+
onChange: ee,
|
|
3996
3996
|
size: U.Large,
|
|
3997
3997
|
wrapperClassName: Ri.searchField,
|
|
3998
3998
|
placeholder: c,
|
|
@@ -4012,7 +4012,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4012
4012
|
"aria-hidden": !0
|
|
4013
4013
|
})
|
|
4014
4014
|
}), O && /* @__PURE__ */ J("span", {
|
|
4015
|
-
className:
|
|
4015
|
+
className: P("pointer-events-none absolute end-2.5 top-2.5 size-2 rounded-full", Ri.settingsDot),
|
|
4016
4016
|
"aria-hidden": !0
|
|
4017
4017
|
})]
|
|
4018
4018
|
}), /* @__PURE__ */ J(Li, {
|
|
@@ -4051,7 +4051,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4051
4051
|
"--cat-browse-settings-dot": r?.colors?.settingsActiveDot
|
|
4052
4052
|
};
|
|
4053
4053
|
return /* @__PURE__ */ J("section", {
|
|
4054
|
-
className:
|
|
4054
|
+
className: P("flex-shrink-0 px-4", Ri.section, zt.toolbar),
|
|
4055
4055
|
style: b,
|
|
4056
4056
|
children: /* @__PURE__ */ J(Bi, {
|
|
4057
4057
|
styles: r,
|
|
@@ -4080,8 +4080,8 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4080
4080
|
root: "_root_1h83l_1",
|
|
4081
4081
|
heading: "_heading_1h83l_5",
|
|
4082
4082
|
headingTitle: "_headingTitle_1h83l_9"
|
|
4083
|
-
}, Ui = 3, Wi = 300, Gi = ({ items: e, tabs: t, topicOptions: n, favorites: r, titles: a, browseHeaderRenderer: s, onToggleFavorite: u, isFavoriteVisible: f, columnVisibility: p, onUseInChat: h, isPrimaryActionVisible: v, onShare: b, isPublishVisible: S, isPublishPrimary: C, getPublishHistory: w, publishFolderItems: T, publishExpandedPaths: E, onPublishExpandedPathsChange: D, publishLoadingPaths: O, hasPublishWriteAccess: k, publishDefaultAuthor: A, onPublish: j, onPublishSuccess:
|
|
4084
|
-
let { typography: qe } = G ?? {},
|
|
4083
|
+
}, Ui = 3, Wi = 300, Gi = ({ items: e, tabs: t, topicOptions: n, favorites: r, titles: a, browseHeaderRenderer: s, onToggleFavorite: u, isFavoriteVisible: f, columnVisibility: p, onUseInChat: h, isPrimaryActionVisible: v, onShare: b, isPublishVisible: S, isPublishPrimary: C, getPublishHistory: w, publishFolderItems: T, publishExpandedPaths: E, onPublishExpandedPathsChange: D, publishLoadingPaths: O, hasPublishWriteAccess: k, publishDefaultAuthor: A, onPublish: j, onPublishSuccess: M, onPublishError: ee, onCreatePublishFolder: te, publishLabels: N, ruleSourceOptions: ne, onFetchExistingRules: re, shareOverlay: ie, isShareVisible: ae, isSharePrimary: oe, onFetchDetails: se, renderCredentials: ce, onEdit: le, onDownload: ue, isDownloadVisible: fe, isDownloadPrimary: pe, onLoadContentFile: me, onLoadContentFilePreview: he, renderContentFilePreview: ge, renderContentFileTree: _e, onDelete: ve, onUnshare: ye, isUnshareVisible: be, onRevokeShare: xe, onFetchRecipientsCount: Se, isRevokeShareVisible: Ce, onUnpublish: B, isUnpublishVisible: V, onLogin: we, onLogout: Te, onCreateClick: H, createOptions: U, createSearch: Ee, createMenuByTab: De, hideCreateButton: Oe = !1, hidePageTitle: ke = !1, isReadonly: Ae = !1, initialViewMode: je = Nt.Grid, isFullWidth: Me = !1, selectedItemId: W, onCardClick: Ne, isLoading: Pe, styles: G, detailsTexts: K, detailsLimitsFooterNote: Fe, initialDetailsItemId: Ie, sortKey: Le, onSortChange: Re, filterTopics: ze, onFilterTopicsChange: Be, isMyAppsActive: Ve, onMyAppsActiveChange: He, activeTab: Ue, onActiveTabChange: We, renderEmptyState: q }) => {
|
|
4084
|
+
let { typography: qe, headingRowClassName: Je = "h-[64px]" } = G ?? {}, Ye = Wt(G), Ze = a?.pageTitle ?? "Catalog", Qe = a?.createLabel ?? "Create", $e = a?.favoritesTitle ?? "Your favorites", et = a?.browseTitle ?? "Browse", tt = a?.searchPlaceholder ?? "Search models, tools, agents…", nt = a?.noResultsTitle ?? ((e) => `No results for "${e}"`), rt = a?.myAppsEmptyTitle ?? (() => "No personal items yet"), it = a?.myAppsEmptyDescription ?? "Create your first one, it'll show up right here.", at = a?.featuredLabel ?? "Featured", ot = a?.gridViewLabel ?? "Grid view", st = a?.listViewLabel ?? "List view", ct = a?.viewToggleLabel ?? "View mode", lt = a?.ariaLabel ?? "Catalog", ut = a?.sortLabel ?? "Sort", dt = [
|
|
4085
4085
|
{
|
|
4086
4086
|
value: o.RecentlyUpdated,
|
|
4087
4087
|
label: a?.sortRecentlyUpdatedLabel ?? "Recently Updated"
|
|
@@ -4094,52 +4094,52 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4094
4094
|
value: o.NameAZ,
|
|
4095
4095
|
label: a?.sortNameAZLabel ?? "Name A-Z"
|
|
4096
4096
|
}
|
|
4097
|
-
], [
|
|
4097
|
+
], [ft, X] = z(""), [pt, mt] = z(je), [ht, gt] = z(je === Nt.Cards ? "shown" : "unmounted"), [_t, vt] = z(o.RecentlyUpdated), [yt, bt] = z(/* @__PURE__ */ new Set()), [xt, St] = z(!1), Ct = Le ?? _t, wt = ze ?? yt, Tt = Ve ?? xt, Et = F((e) => {
|
|
4098
4098
|
let t = e;
|
|
4099
|
-
|
|
4100
|
-
}, [Re]),
|
|
4101
|
-
|
|
4102
|
-
}, [Be]),
|
|
4103
|
-
|
|
4104
|
-
}, [He]),
|
|
4099
|
+
vt(t), Re?.(t);
|
|
4100
|
+
}, [Re]), Dt = F((e) => {
|
|
4101
|
+
bt(e), Be?.(e);
|
|
4102
|
+
}, [Be]), Ot = F((e) => {
|
|
4103
|
+
St(e), He?.(e);
|
|
4104
|
+
}, [He]), kt = L(() => e.filter((e) => !e.isHidden), [e]), Z = L(() => r.filter((e) => !e.isHidden), [r]), At = L(() => n ?? i(kt), [n, kt]), jt = L(() => t ?? x(kt, a?.tabLabels), [
|
|
4105
4105
|
t,
|
|
4106
|
-
|
|
4106
|
+
kt,
|
|
4107
4107
|
a?.tabLabels
|
|
4108
|
-
]),
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
}, [
|
|
4112
|
-
let Ft = Ue ??
|
|
4113
|
-
|
|
4108
|
+
]), Q = jt[0]?.id ?? "", [Mt, Pt] = z(Q);
|
|
4109
|
+
I(() => {
|
|
4110
|
+
Pt((e) => e || Q);
|
|
4111
|
+
}, [Q]);
|
|
4112
|
+
let Ft = Ue ?? Mt, It = R(null);
|
|
4113
|
+
I(() => {
|
|
4114
4114
|
It.current != null && c(It.current);
|
|
4115
4115
|
}, [Ft, jt.length]);
|
|
4116
|
-
let Lt =
|
|
4117
|
-
|
|
4118
|
-
}, [We]), [Rt,
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
}, [
|
|
4122
|
-
let Vt =
|
|
4123
|
-
|
|
4124
|
-
}, []),
|
|
4116
|
+
let Lt = F((e) => {
|
|
4117
|
+
Pt(e), We?.(e);
|
|
4118
|
+
}, [We]), [Rt, Bt] = z(Z.length > 0);
|
|
4119
|
+
I(() => {
|
|
4120
|
+
Z.length > 0 && !Rt && Bt(!0);
|
|
4121
|
+
}, [Z.length, Rt]);
|
|
4122
|
+
let Vt = F(() => {
|
|
4123
|
+
Bt(!1);
|
|
4124
|
+
}, []), Gt = Rt && Z.length === 0, [Kt, qt] = z(null), [Jt, Yt] = z(!1), [Xt, Zt] = z(void 0), [Qt, $t] = z(!1), en = R(null), tn = R(0), nn = F(async (e) => {
|
|
4125
4125
|
en.current = e.id;
|
|
4126
4126
|
let t = ++tn.current;
|
|
4127
|
-
if (
|
|
4127
|
+
if (se) {
|
|
4128
4128
|
$t(!0);
|
|
4129
4129
|
try {
|
|
4130
|
-
let n = await
|
|
4130
|
+
let n = await se(e);
|
|
4131
4131
|
return tn.current === t && Zt(n), n;
|
|
4132
4132
|
} finally {
|
|
4133
4133
|
tn.current === t && $t(!1);
|
|
4134
4134
|
}
|
|
4135
4135
|
}
|
|
4136
|
-
}, [
|
|
4136
|
+
}, [se]), rn = F(async (e) => (qt(e), Zt(void 0), nn(e)), [nn]), an = F(async (e, t) => {
|
|
4137
4137
|
for (let n = 0; n < Ui; n++) {
|
|
4138
4138
|
if (en.current !== e.id || t(await nn(e))) return;
|
|
4139
4139
|
n < Ui - 1 && await y(Wi);
|
|
4140
4140
|
}
|
|
4141
4141
|
}, [nn]), on = R(null);
|
|
4142
|
-
|
|
4142
|
+
I(() => {
|
|
4143
4143
|
if (!Ie) {
|
|
4144
4144
|
on.current = null;
|
|
4145
4145
|
return;
|
|
@@ -4151,24 +4151,24 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4151
4151
|
Ie,
|
|
4152
4152
|
e,
|
|
4153
4153
|
rn
|
|
4154
|
-
]),
|
|
4154
|
+
]), I(() => {
|
|
4155
4155
|
if (Kt == null) return;
|
|
4156
4156
|
let t = e.find((e) => e.id === Kt.id);
|
|
4157
4157
|
t && t !== Kt && qt(t);
|
|
4158
4158
|
}, [e, Kt]);
|
|
4159
|
-
let sn =
|
|
4160
|
-
await we?.(e, t),
|
|
4159
|
+
let sn = F(async (e, t) => {
|
|
4160
|
+
await we?.(e, t), se && await an(e, (e) => g(e?.credentials, t.level));
|
|
4161
4161
|
}, [
|
|
4162
4162
|
we,
|
|
4163
|
-
|
|
4163
|
+
se,
|
|
4164
4164
|
an
|
|
4165
|
-
]), cn =
|
|
4166
|
-
await Te?.(e, t),
|
|
4165
|
+
]), cn = F(async (e, t) => {
|
|
4166
|
+
await Te?.(e, t), se && await an(e, (e) => !g(e?.credentials, t.level));
|
|
4167
4167
|
}, [
|
|
4168
4168
|
Te,
|
|
4169
|
-
|
|
4169
|
+
se,
|
|
4170
4170
|
an
|
|
4171
|
-
]), ln =
|
|
4171
|
+
]), ln = F(() => {
|
|
4172
4172
|
Yt(!1), en.current = null, tn.current += 1, setTimeout(() => {
|
|
4173
4173
|
qt(null), Zt(void 0), $t(!1);
|
|
4174
4174
|
}, 300);
|
|
@@ -4181,12 +4181,12 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4181
4181
|
details: t,
|
|
4182
4182
|
credentials: e ?? Kt.credentials
|
|
4183
4183
|
};
|
|
4184
|
-
}, [Kt, Xt]), dn = L(() => l(
|
|
4185
|
-
|
|
4186
|
-
if (
|
|
4184
|
+
}, [Kt, Xt]), dn = L(() => l(kt, Ct), [kt, Ct]), fn = L(() => d(dn, ft), [dn, ft]), pn = L(() => wt.size > 0 ? m(fn, wt) : fn, [fn, wt]), mn = L(() => Tt ? _(pn) : pn, [pn, Tt]), hn = L(() => Ft ? mn.filter((e) => e.type === Ft) : mn, [mn, Ft]);
|
|
4185
|
+
I(() => {
|
|
4186
|
+
if (ht !== "unmounted" || Pe || hn.length === 0) return;
|
|
4187
4187
|
let e = () => {
|
|
4188
|
-
|
|
4189
|
-
|
|
4188
|
+
de(() => {
|
|
4189
|
+
gt((e) => e === "unmounted" ? "prepared" : e);
|
|
4190
4190
|
});
|
|
4191
4191
|
};
|
|
4192
4192
|
if (typeof window.requestIdleCallback == "function") {
|
|
@@ -4196,47 +4196,47 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4196
4196
|
let t = window.setTimeout(e, 200);
|
|
4197
4197
|
return () => window.clearTimeout(t);
|
|
4198
4198
|
}, [
|
|
4199
|
-
|
|
4199
|
+
ht,
|
|
4200
4200
|
Pe,
|
|
4201
|
-
|
|
4201
|
+
hn.length
|
|
4202
4202
|
]);
|
|
4203
|
-
let
|
|
4204
|
-
|
|
4203
|
+
let gn = Kt != null && Z.some((e) => e.id === Kt.id);
|
|
4204
|
+
I(() => {
|
|
4205
4205
|
if (Kt == null) return;
|
|
4206
4206
|
let e = requestAnimationFrame(() => Yt(!0));
|
|
4207
4207
|
return () => cancelAnimationFrame(e);
|
|
4208
4208
|
}, [Kt]);
|
|
4209
|
-
let
|
|
4210
|
-
e ===
|
|
4211
|
-
}, []),
|
|
4212
|
-
copyCodeAriaLabel:
|
|
4213
|
-
copiedCodeStatusLabel:
|
|
4214
|
-
downloadCodeAriaLabel:
|
|
4215
|
-
tableScrollRegionAriaLabel:
|
|
4216
|
-
mathScrollRegionAriaLabel:
|
|
4209
|
+
let _n = F((e) => {
|
|
4210
|
+
e === Nt.Cards && gt("shown"), mt(e);
|
|
4211
|
+
}, []), vn = !Oe && !Ae, yn = Rt && !Ae, bn = ft ? nt(ft) : "No items", { copyCodeAriaLabel: xn, copiedCodeStatusLabel: Sn, downloadCodeAriaLabel: wn, tableScrollRegionAriaLabel: Tn, mathScrollRegionAriaLabel: En } = K ?? {}, Dn = L(() => Ut({
|
|
4212
|
+
copyCodeAriaLabel: xn,
|
|
4213
|
+
copiedCodeStatusLabel: Sn,
|
|
4214
|
+
downloadCodeAriaLabel: wn,
|
|
4215
|
+
tableScrollRegionAriaLabel: Tn,
|
|
4216
|
+
mathScrollRegionAriaLabel: En
|
|
4217
4217
|
}), [
|
|
4218
|
-
bn,
|
|
4219
4218
|
xn,
|
|
4220
4219
|
Sn,
|
|
4221
4220
|
wn,
|
|
4222
|
-
Tn
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4221
|
+
Tn,
|
|
4222
|
+
En
|
|
4223
|
+
]), On = L(() => ({
|
|
4224
|
+
noResultsTitle: bn,
|
|
4225
|
+
featuredLabel: at,
|
|
4226
4226
|
noFolderLabel: a?.noFolderLabel,
|
|
4227
4227
|
credentialsBadgeLoggedOutLabel: K?.credentialsBadgeLoggedOutLabel
|
|
4228
4228
|
}), [
|
|
4229
|
-
|
|
4230
|
-
|
|
4229
|
+
bn,
|
|
4230
|
+
at,
|
|
4231
4231
|
a?.noFolderLabel,
|
|
4232
4232
|
K?.credentialsBadgeLoggedOutLabel
|
|
4233
|
-
]),
|
|
4234
|
-
query:
|
|
4233
|
+
]), kn = !Pe && hn.length === 0, An = kn ? q?.({
|
|
4234
|
+
query: ft,
|
|
4235
4235
|
activeTab: Ft,
|
|
4236
|
-
hasTopicFilters:
|
|
4237
|
-
isMyAppsActive:
|
|
4238
|
-
}) : void 0,
|
|
4239
|
-
label:
|
|
4236
|
+
hasTopicFilters: wt.size > 0,
|
|
4237
|
+
isMyAppsActive: Tt
|
|
4238
|
+
}) : void 0, jn = kn && Tt && !ft && wt.size === 0 && (De == null || De[Ft] != null), Mn = {
|
|
4239
|
+
label: Qe,
|
|
4240
4240
|
options: U,
|
|
4241
4241
|
onClick: H,
|
|
4242
4242
|
search: Ee,
|
|
@@ -4247,41 +4247,41 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4247
4247
|
closeLabel: a?.createMenuCloseLabel,
|
|
4248
4248
|
colors: G?.colors?.createMenu,
|
|
4249
4249
|
sectionHeaderClassName: qe?.createMenuSectionHeaderClassName
|
|
4250
|
-
},
|
|
4251
|
-
...
|
|
4252
|
-
...
|
|
4250
|
+
}, Nn = De ? Ht(De[Ft]) : Mn, Pn = vn && Nn != null ? {
|
|
4251
|
+
...Mn,
|
|
4252
|
+
...Nn
|
|
4253
4253
|
} : void 0;
|
|
4254
4254
|
return Pe ? /* @__PURE__ */ J("div", {
|
|
4255
4255
|
className: "flex size-full min-h-0 flex-1 items-center justify-center",
|
|
4256
4256
|
children: /* @__PURE__ */ J(Ge, {})
|
|
4257
4257
|
}) : /* @__PURE__ */ Y("section", {
|
|
4258
|
-
"aria-label":
|
|
4259
|
-
className:
|
|
4260
|
-
style:
|
|
4258
|
+
"aria-label": lt,
|
|
4259
|
+
className: P("flex size-full min-h-0 flex-1 flex-col", Hi.root, zt.root),
|
|
4260
|
+
style: Ye,
|
|
4261
4261
|
children: [
|
|
4262
|
-
(!ke ||
|
|
4263
|
-
className:
|
|
4262
|
+
(!ke || vn) && /* @__PURE__ */ J("div", {
|
|
4263
|
+
className: P("shrink-0", Hi.heading),
|
|
4264
4264
|
children: /* @__PURE__ */ Y("div", {
|
|
4265
|
-
className: "flex
|
|
4265
|
+
className: P("flex w-full items-center justify-between px-4 desktop:px-8", Je),
|
|
4266
4266
|
children: [!ke && /* @__PURE__ */ J("h1", {
|
|
4267
|
-
className:
|
|
4268
|
-
children:
|
|
4269
|
-
}),
|
|
4267
|
+
className: P(qe?.pageHeadingFontClassName ?? "dial-display2-text", Hi.headingTitle),
|
|
4268
|
+
children: Ze
|
|
4269
|
+
}), vn && /* @__PURE__ */ J(ki, { ...Mn })]
|
|
4270
4270
|
})
|
|
4271
4271
|
}),
|
|
4272
4272
|
/* @__PURE__ */ Y("div", {
|
|
4273
4273
|
className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-x-hidden overflow-y-auto",
|
|
4274
4274
|
children: [
|
|
4275
|
-
|
|
4275
|
+
yn && /* @__PURE__ */ J("div", {
|
|
4276
4276
|
className: "w-full px-4 desktop:px-8",
|
|
4277
4277
|
children: /* @__PURE__ */ J($r, {
|
|
4278
|
-
items:
|
|
4279
|
-
totalCount:
|
|
4280
|
-
title:
|
|
4278
|
+
items: Z,
|
|
4279
|
+
totalCount: Z.length,
|
|
4280
|
+
title: $e,
|
|
4281
4281
|
onToggleFavorite: u,
|
|
4282
4282
|
isFavoriteVisible: f,
|
|
4283
4283
|
onItemClick: Ne ?? rn,
|
|
4284
|
-
isLeaving:
|
|
4284
|
+
isLeaving: Gt,
|
|
4285
4285
|
onExitComplete: Vt,
|
|
4286
4286
|
selectedItemId: W,
|
|
4287
4287
|
credentialsBadgeLoggedOutLabel: K?.credentialsBadgeLoggedOutLabel
|
|
@@ -4291,25 +4291,25 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4291
4291
|
className: "w-full pt-6 desktop:px-4",
|
|
4292
4292
|
children: /* @__PURE__ */ J(Vi, {
|
|
4293
4293
|
totalCount: mn.length,
|
|
4294
|
-
viewMode:
|
|
4295
|
-
onViewModeChange:
|
|
4296
|
-
sortKey:
|
|
4297
|
-
query:
|
|
4298
|
-
onQueryChange:
|
|
4299
|
-
title:
|
|
4294
|
+
viewMode: pt,
|
|
4295
|
+
onViewModeChange: _n,
|
|
4296
|
+
sortKey: Ct,
|
|
4297
|
+
query: ft,
|
|
4298
|
+
onQueryChange: X,
|
|
4299
|
+
title: et,
|
|
4300
4300
|
browseHeaderRenderer: s,
|
|
4301
|
-
searchPlaceholder:
|
|
4302
|
-
gridViewLabel:
|
|
4303
|
-
listViewLabel:
|
|
4304
|
-
viewToggleLabel:
|
|
4305
|
-
sortOptions:
|
|
4306
|
-
onSortChange:
|
|
4307
|
-
sortLabel:
|
|
4308
|
-
filters:
|
|
4309
|
-
onFiltersChange:
|
|
4301
|
+
searchPlaceholder: tt,
|
|
4302
|
+
gridViewLabel: ot,
|
|
4303
|
+
listViewLabel: st,
|
|
4304
|
+
viewToggleLabel: ct,
|
|
4305
|
+
sortOptions: dt,
|
|
4306
|
+
onSortChange: Et,
|
|
4307
|
+
sortLabel: ut,
|
|
4308
|
+
filters: wt,
|
|
4309
|
+
onFiltersChange: Dt,
|
|
4310
4310
|
filterValues: At,
|
|
4311
|
-
isMyAppsActive:
|
|
4312
|
-
onMyAppsChange:
|
|
4311
|
+
isMyAppsActive: Tt,
|
|
4312
|
+
onMyAppsChange: Ot,
|
|
4313
4313
|
filterFromLabel: a?.filterFromLabel,
|
|
4314
4314
|
filterMyAppsLabel: a?.filterMyAppsLabel,
|
|
4315
4315
|
filterTopicsLabel: a?.filterTopicsLabel,
|
|
@@ -4332,39 +4332,39 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4332
4332
|
})
|
|
4333
4333
|
}),
|
|
4334
4334
|
/* @__PURE__ */ Y("div", {
|
|
4335
|
-
className:
|
|
4335
|
+
className: P(hn.length > 0 ? ["w-full flex-1 px-4 py-6 desktop:px-8", !Me && "mx-auto max-w-[1180px]"] : "min-h-[180px] flex-1", hn.length === 0 && "px-4 py-6 desktop:px-8"),
|
|
4336
4336
|
children: [
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
title:
|
|
4340
|
-
description:
|
|
4341
|
-
createButton:
|
|
4337
|
+
An != null && An,
|
|
4338
|
+
An == null && jn && /* @__PURE__ */ J(Ai, {
|
|
4339
|
+
title: rt(Ft),
|
|
4340
|
+
description: it,
|
|
4341
|
+
createButton: Pn
|
|
4342
4342
|
}),
|
|
4343
|
-
|
|
4344
|
-
inert:
|
|
4345
|
-
className:
|
|
4343
|
+
An == null && !jn && /* @__PURE__ */ Y(Xe, { children: [/* @__PURE__ */ J("div", {
|
|
4344
|
+
inert: pt !== Nt.Grid,
|
|
4345
|
+
className: P(hn.length > 0 ? "pb-8" : "size-full flex-1", pt !== Nt.Grid && "hidden"),
|
|
4346
4346
|
children: /* @__PURE__ */ J(Cn, {
|
|
4347
|
-
items:
|
|
4348
|
-
query:
|
|
4347
|
+
items: hn,
|
|
4348
|
+
query: ft,
|
|
4349
4349
|
onToggleFavorite: u,
|
|
4350
4350
|
isFavoriteVisible: f,
|
|
4351
4351
|
onItemClick: Ne ?? rn,
|
|
4352
|
-
titles:
|
|
4352
|
+
titles: On,
|
|
4353
4353
|
selectedItemId: W,
|
|
4354
4354
|
isReadonly: Ae,
|
|
4355
4355
|
isFullWidth: Me,
|
|
4356
4356
|
featuredChipStyle: G?.colors?.featuredChipStyle,
|
|
4357
|
-
markdownLabels:
|
|
4357
|
+
markdownLabels: Dn
|
|
4358
4358
|
})
|
|
4359
|
-
}),
|
|
4360
|
-
inert:
|
|
4361
|
-
className:
|
|
4359
|
+
}), ht !== "unmounted" && /* @__PURE__ */ J("div", {
|
|
4360
|
+
inert: pt !== Nt.Cards,
|
|
4361
|
+
className: P("pb-8", pt !== Nt.Cards && (ht === "prepared" ? "invisible h-0 overflow-hidden p-0" : "hidden"), hn.length === 0 && pt === Nt.Cards && "h-full"),
|
|
4362
4362
|
children: /* @__PURE__ */ J(wi, {
|
|
4363
4363
|
type: Ft,
|
|
4364
|
-
items:
|
|
4365
|
-
query:
|
|
4366
|
-
ariaLabel:
|
|
4367
|
-
emptyStateTitle:
|
|
4364
|
+
items: hn,
|
|
4365
|
+
query: ft,
|
|
4366
|
+
ariaLabel: lt,
|
|
4367
|
+
emptyStateTitle: bn,
|
|
4368
4368
|
onToggleFavorite: u,
|
|
4369
4369
|
isFavoriteVisible: f,
|
|
4370
4370
|
columnVisibility: p,
|
|
@@ -4380,10 +4380,10 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4380
4380
|
]
|
|
4381
4381
|
}),
|
|
4382
4382
|
un != null && /* @__PURE__ */ J(Jr, {
|
|
4383
|
-
renderCredentials:
|
|
4383
|
+
renderCredentials: ce,
|
|
4384
4384
|
item: un,
|
|
4385
4385
|
isOpen: Jt,
|
|
4386
|
-
isStarred:
|
|
4386
|
+
isStarred: gn,
|
|
4387
4387
|
isDetailsLoading: Qt,
|
|
4388
4388
|
isReadonly: Ae,
|
|
4389
4389
|
onClose: ln,
|
|
@@ -4402,20 +4402,20 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4402
4402
|
hasPublishWriteAccess: k,
|
|
4403
4403
|
publishDefaultAuthor: A,
|
|
4404
4404
|
onPublish: j,
|
|
4405
|
-
onPublishSuccess:
|
|
4406
|
-
onPublishError:
|
|
4407
|
-
onCreatePublishFolder:
|
|
4408
|
-
publishLabels:
|
|
4409
|
-
ruleSourceOptions:
|
|
4410
|
-
onFetchExistingRules:
|
|
4411
|
-
shareOverlay:
|
|
4412
|
-
isShareVisible:
|
|
4413
|
-
isSharePrimary:
|
|
4414
|
-
onEdit:
|
|
4415
|
-
onDownload:
|
|
4416
|
-
isDownloadVisible:
|
|
4417
|
-
isDownloadPrimary:
|
|
4418
|
-
onLoadContentFile:
|
|
4405
|
+
onPublishSuccess: M,
|
|
4406
|
+
onPublishError: ee,
|
|
4407
|
+
onCreatePublishFolder: te,
|
|
4408
|
+
publishLabels: N,
|
|
4409
|
+
ruleSourceOptions: ne,
|
|
4410
|
+
onFetchExistingRules: re,
|
|
4411
|
+
shareOverlay: ie,
|
|
4412
|
+
isShareVisible: ae,
|
|
4413
|
+
isSharePrimary: oe,
|
|
4414
|
+
onEdit: le,
|
|
4415
|
+
onDownload: ue,
|
|
4416
|
+
isDownloadVisible: fe,
|
|
4417
|
+
isDownloadPrimary: pe,
|
|
4418
|
+
onLoadContentFile: me,
|
|
4419
4419
|
onLoadContentFilePreview: he,
|
|
4420
4420
|
renderContentFilePreview: ge,
|
|
4421
4421
|
renderContentFileTree: _e,
|
|
@@ -4447,7 +4447,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4447
4447
|
}, A = (e) => {
|
|
4448
4448
|
a(e), k();
|
|
4449
4449
|
}, j = _ ? _(k) : /* @__PURE__ */ Y("div", {
|
|
4450
|
-
className:
|
|
4450
|
+
className: P("w-full max-w-full min-w-0 p-3", h),
|
|
4451
4451
|
children: [
|
|
4452
4452
|
/* @__PURE__ */ J(Ve, {
|
|
4453
4453
|
value: T,
|
|
@@ -4497,7 +4497,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4497
4497
|
}
|
|
4498
4498
|
})
|
|
4499
4499
|
]
|
|
4500
|
-
}),
|
|
4500
|
+
}), M = /* @__PURE__ */ J(W, {
|
|
4501
4501
|
onFocus: (e) => {
|
|
4502
4502
|
D.current = e.currentTarget;
|
|
4503
4503
|
},
|
|
@@ -4518,14 +4518,14 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4518
4518
|
b && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), w(!C));
|
|
4519
4519
|
},
|
|
4520
4520
|
containerClassName: "w-full min-w-0",
|
|
4521
|
-
wrapperClassName:
|
|
4521
|
+
wrapperClassName: P("cursor-pointer", m),
|
|
4522
4522
|
className: "cursor-pointer",
|
|
4523
4523
|
iconAfter: g
|
|
4524
4524
|
});
|
|
4525
4525
|
return b ? /* @__PURE__ */ Y(Xe, { children: [/* @__PURE__ */ J("div", {
|
|
4526
4526
|
className: "w-full min-w-0",
|
|
4527
4527
|
onClick: () => w(!C),
|
|
4528
|
-
children:
|
|
4528
|
+
children: M
|
|
4529
4529
|
}), b(j, C, k)] }) : /* @__PURE__ */ J(Te, {
|
|
4530
4530
|
open: C,
|
|
4531
4531
|
onOpenChange: w,
|
|
@@ -4533,7 +4533,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4533
4533
|
className: "w-full",
|
|
4534
4534
|
listClassName: "w-[min(var(--reference-width),calc(100vw-2rem))] max-w-full",
|
|
4535
4535
|
renderOverlay: () => j,
|
|
4536
|
-
children:
|
|
4536
|
+
children: M
|
|
4537
4537
|
});
|
|
4538
4538
|
}, qi = ({ service: e, texts: n, onLogin: r, onLogout: i }) => {
|
|
4539
4539
|
let [a, o] = z(!1), [s, c] = z(!1), [l, u] = z(!1), [d, f] = z(), p = e.authenticationType === t.ApiKey, m = p ? n?.deleteActionLabel ?? "Delete" : n?.logoutActionLabel ?? "Log out", h = p ? n?.deleteApiKeyConfirmMessage?.(C.User) ?? "Are you sure you want to delete your personal API key?" : n?.logoutConfirmMessage ?? "Are you sure you want to log out?";
|
|
@@ -4572,7 +4572,7 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4572
4572
|
}) : void 0,
|
|
4573
4573
|
children: [
|
|
4574
4574
|
e.hint && /* @__PURE__ */ J("p", {
|
|
4575
|
-
className:
|
|
4575
|
+
className: P("dial-small-text break-words", qn.description),
|
|
4576
4576
|
children: e.hint
|
|
4577
4577
|
}),
|
|
4578
4578
|
e.hasSharedCredentials && /* @__PURE__ */ J(Bn, {
|
|
@@ -4658,4 +4658,4 @@ var At = /* @__PURE__ */ function(e) {
|
|
|
4658
4658
|
children: s?.empty ?? "No credentials required"
|
|
4659
4659
|
}) : null;
|
|
4660
4660
|
//#endregion
|
|
4661
|
-
export { lr as AboutTab, Pn as ApiTab,
|
|
4661
|
+
export { lr as AboutTab, Pn as ApiTab, on as AppIdentity, Ji as ApplicationCredentials, zt as CATALOG_CLASS, xn as Card, Cn as CardGrid, Sn as CardRowRenderer, Gi as Catalog, It as CatalogContentNodeType, Lt as CatalogContentPreviewType, T as CatalogDetailsTab, At as CatalogLimitStatus, jt as CatalogPricingUnit, Pt as CatalogSelectionMode, o as CatalogSortKey, Nt as CatalogViewMode, Z as CodeLanguage, mr as ContentTab, w as CredentialStatus, tr as CredentialsApiKeyOverlay, cn as CredentialsBadge, n as CredentialsBadgeState, Kn as CredentialsBanner, e as CredentialsBannerState, C as CredentialsLevel, Xn as CredentialsManagementPanel, r as CredentialsUiState, Ki as DeploymentSelectorField, Mt as DeploymentSize, Q as DetailsConfirmationKind, cr as DetailsHeader, Jr as DetailsPanel, Xr as FavoriteCard, $r as Favorites, Pi as Filter, Ft as LimitRowLayout, Er as LimitsTab, wi as ListView, Dr as OverviewTab, Or as PricingTab, Vi as Toolbar, Fr as ToolsTab, t as ToolsetAuthenticationType, pn as TopicTag, x as buildCatalogTabs, d as filterCatalogItems, s as getCatalogDetailsTabs, h as getCredentialsBadgeState, v as getCredentialsBannerState, f as getCredentialsUiState, a as getSignedInLevel, i as getTopicOptions, l as sortCatalogItems, Rt as useFavColumns, Qt as useScrollVirtualizer };
|