@epam/ai-dial-catalog 1.1.0-dev.315 → 1.1.0-dev.319
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +427 -425
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -61805,13 +61805,13 @@ var KF = ({ batchState: e, uploadProgressTitle: t, uploadProgressText: n, cancel
|
|
|
61805
61805
|
});
|
|
61806
61806
|
};
|
|
61807
61807
|
o(KF);
|
|
61808
|
-
var qF = (e
|
|
61808
|
+
var qF = (e, t) => {
|
|
61809
61809
|
if (e.isDownloading) return t.downloadingLabel;
|
|
61810
61810
|
if (e.isDeleting) return t.deletingLabel;
|
|
61811
61811
|
if (e.isRenaming && !e.isMoving) return t.renamingLabel;
|
|
61812
61812
|
if (e.isUnsharing) return t.unsharingLabel;
|
|
61813
61813
|
if (e.isRemovingAccess) return t.removingAccessLabel;
|
|
61814
|
-
},
|
|
61814
|
+
}, JF = ({ controller: e, labels: t, activeTab: n, tabs: r, onTabChange: i, selectedPaths: a, onSelectedPathsChange: o, variant: s, actionProfile: c, autoSelectUploadedItems: u = !1, allowedFileTypes: d, maxSelectableFileSize: f, isRowSelectable: m, getDisabledTooltip: g, unsupportedFileTypeTooltip: _ }) => {
|
|
61815
61815
|
let { items: v, isLoading: y, error: b, path: x, onPathChange: S, retry: C, onSearchFiles: w, isSearching: T, searchResults: E, clearSearchResults: ee, expandedPaths: D, loadedPaths: O, onExpandedPathsChange: k, onFolderPopupPathChange: A, folderPopupLoadingPaths: j, onUploadFiles: M, onUploadArchive: te, onValidateUpload: ne, uploadBatchState: N, cancelUpload: re, clearUploadBatch: ie, onCreateFolder: ae, onCreateFolderValidate: oe, onDownloadFiles: se, isDownloading: ce, onDeleteFiles: le, isDeleting: ue, onMoveToFiles: de, onRenameValidate: fe, isRenaming: pe, onCopyFiles: me, isCopying: he, isMoving: ge, cancelCopyMove: _e, uploadEnabled: ve, isNewButtonDisabled: ye, disabledNewButtonTooltip: be, visibleColumns: P, dateLocale: xe, dateOptions: Se, actionLabels: we, sharedWithMeIds: Te, sharedByMePaths: Ee, onUnshareFiles: De, isUnsharing: Oe, onRemoveFilesAccess: ke, isRemovingAccess: Ae, fileMetadata: je, isFileMetadataLoading: Ne, onGetInfo: Pe, clearMetadata: Fe } = e, [Ie, Le] = h(void 0), { handleGridApiChange: Re, reset: ze } = WF();
|
|
61816
61816
|
l(() => {
|
|
61817
61817
|
ze();
|
|
@@ -61867,6 +61867,7 @@ var qF = (e) => e.replace(/\/+$/, "") || "/", JF = (e, t) => {
|
|
|
61867
61867
|
header: t.treeHeaderByTab[n],
|
|
61868
61868
|
expandedPaths: D,
|
|
61869
61869
|
loadedPaths: O,
|
|
61870
|
+
loadingPaths: j,
|
|
61870
61871
|
onExpandedPathsChange: k,
|
|
61871
61872
|
actionLabels: Be
|
|
61872
61873
|
}), [
|
|
@@ -61874,6 +61875,7 @@ var qF = (e) => e.replace(/\/+$/, "") || "/", JF = (e, t) => {
|
|
|
61874
61875
|
n,
|
|
61875
61876
|
D,
|
|
61876
61877
|
O,
|
|
61878
|
+
j,
|
|
61877
61879
|
k,
|
|
61878
61880
|
Be
|
|
61879
61881
|
]), qe = s === IF.Standalone && c === LF.Full && n === $n.MyFiles && ve, Je = p(() => ({
|
|
@@ -61925,7 +61927,7 @@ var qF = (e) => e.replace(/\/+$/, "") || "/", JF = (e, t) => {
|
|
|
61925
61927
|
else if (e !== n) return;
|
|
61926
61928
|
}
|
|
61927
61929
|
return e;
|
|
61928
|
-
}, [a]), Qe = Ie != null && j.has(
|
|
61930
|
+
}, [a]), Qe = Ie != null && j.has(Ie), $e = Qe ? Ie : Ze, et = p(() => ({
|
|
61929
61931
|
copyLabel: t.copyLabel,
|
|
61930
61932
|
moveLabel: t.moveLabel,
|
|
61931
61933
|
addFolderLabel: t.addFolderLabel,
|
|
@@ -61975,7 +61977,7 @@ var qF = (e) => e.replace(/\/+$/, "") || "/", JF = (e, t) => {
|
|
|
61975
61977
|
t.metadataModifiedDateLabel,
|
|
61976
61978
|
t.metadataSizeLabel,
|
|
61977
61979
|
t.metadataAuthorLabel
|
|
61978
|
-
]), it =
|
|
61980
|
+
]), it = qF({
|
|
61979
61981
|
isDownloading: ce,
|
|
61980
61982
|
isDeleting: ue,
|
|
61981
61983
|
isRenaming: pe,
|
|
@@ -62088,8 +62090,8 @@ var qF = (e) => e.replace(/\/+$/, "") || "/", JF = (e, t) => {
|
|
|
62088
62090
|
})
|
|
62089
62091
|
] });
|
|
62090
62092
|
};
|
|
62091
|
-
o(
|
|
62092
|
-
var
|
|
62093
|
+
o(JF);
|
|
62094
|
+
var YF = o(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r, onCountLimitExceeded: i, controller: a, isAnyOperationInProgress: o, activeTab: c, tabs: l, onTabChange: u, labels: d, variant: f, actionProfile: m, selectedPaths: h, onSelectedPathsChange: g, resolveFolderPath: _, isFileTypeAllowed: v, maxSelectableFileSize: y, maximumAttachmentsAmount: b, existingAttachmentsAmount: x = 0, isRowSelectable: S, getDisabledTooltip: C, unsupportedFileTypeTooltip: w, allowedFileTypes: T, autoSelectUploadedItems: E = !1 }) => {
|
|
62093
62095
|
let { items: ee, isLoading: D, searchResults: O } = a, k = p(() => {
|
|
62094
62096
|
let e = /* @__PURE__ */ new Map(), t = (n) => {
|
|
62095
62097
|
n.forEach((n) => {
|
|
@@ -62152,7 +62154,7 @@ var XF = o(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r,
|
|
|
62152
62154
|
}),
|
|
62153
62155
|
children: /* @__PURE__ */ F("div", {
|
|
62154
62156
|
className: "flex min-h-0 flex-col",
|
|
62155
|
-
children: /* @__PURE__ */ F(
|
|
62157
|
+
children: /* @__PURE__ */ F(JF, {
|
|
62156
62158
|
controller: a,
|
|
62157
62159
|
labels: N,
|
|
62158
62160
|
activeTab: c,
|
|
@@ -62172,43 +62174,43 @@ var XF = o(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r,
|
|
|
62172
62174
|
})
|
|
62173
62175
|
});
|
|
62174
62176
|
});
|
|
62175
|
-
|
|
62177
|
+
YF.displayName = "FileManagerAttachModal";
|
|
62176
62178
|
//#endregion
|
|
62177
62179
|
//#region src/utils/catalog-tabs.ts
|
|
62178
|
-
var
|
|
62180
|
+
var XF = {
|
|
62179
62181
|
[Da.Model]: "Models",
|
|
62180
62182
|
[Da.Agent]: "Agents",
|
|
62181
62183
|
[Da.Toolset]: "Toolsets",
|
|
62182
62184
|
[Da.Prompt]: "Prompts",
|
|
62183
62185
|
[Da.Skill]: "Skills"
|
|
62184
|
-
},
|
|
62186
|
+
}, ZF = [
|
|
62185
62187
|
Da.Model,
|
|
62186
62188
|
Da.Agent,
|
|
62187
62189
|
Da.Toolset,
|
|
62188
62190
|
Da.Skill,
|
|
62189
62191
|
Da.Prompt
|
|
62190
|
-
],
|
|
62192
|
+
], QF = (e, t) => {
|
|
62191
62193
|
let n = {
|
|
62192
|
-
...
|
|
62194
|
+
...XF,
|
|
62193
62195
|
...t
|
|
62194
62196
|
}, r = new Set(e.map((e) => e.type));
|
|
62195
|
-
return
|
|
62197
|
+
return ZF.filter((e) => r.has(e)).map((e) => ({
|
|
62196
62198
|
id: e,
|
|
62197
62199
|
label: n[e] ?? e
|
|
62198
62200
|
}));
|
|
62199
|
-
},
|
|
62201
|
+
}, $F = (e) => {
|
|
62200
62202
|
let { colors: t } = e ?? {};
|
|
62201
62203
|
return os({
|
|
62202
62204
|
"--cat-bg": t?.background,
|
|
62203
62205
|
"--cat-heading-title-text": t?.headingTitleText
|
|
62204
62206
|
});
|
|
62205
|
-
},
|
|
62207
|
+
}, eI = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, tI = (e) => {
|
|
62206
62208
|
if (!e || e === document.body) return document.documentElement;
|
|
62207
62209
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
62208
|
-
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e :
|
|
62209
|
-
},
|
|
62210
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : tI(e.parentElement);
|
|
62211
|
+
}, nI = (e, t = 3) => {
|
|
62210
62212
|
let n = m(null), [r, i] = h(() => {
|
|
62211
|
-
let t = typeof window < "u" ? window.innerWidth : 1440, n =
|
|
62213
|
+
let t = typeof window < "u" ? window.innerWidth : 1440, n = eI(Math.min(1180, Math.max(0, t - (t > 768 ? 60 : 0))) - 64), r = Math.ceil(e / n);
|
|
62212
62214
|
return {
|
|
62213
62215
|
startRow: 0,
|
|
62214
62216
|
endRow: Math.min(r, 12),
|
|
@@ -62218,8 +62220,8 @@ var ZF = {
|
|
|
62218
62220
|
l(() => {
|
|
62219
62221
|
let r = n.current;
|
|
62220
62222
|
if (!r) return;
|
|
62221
|
-
let a =
|
|
62222
|
-
let n = r.getBoundingClientRect(), o = a.getBoundingClientRect(), s = a.clientHeight, c = r.clientWidth, l =
|
|
62223
|
+
let a = tI(r.parentElement), o = () => {
|
|
62224
|
+
let n = r.getBoundingClientRect(), o = a.getBoundingClientRect(), s = a.clientHeight, c = r.clientWidth, l = eI(c), u = Math.ceil(e / l), d = Math.max(0, o.top - n.top), f = Math.max(0, Math.floor(d / 268) - t);
|
|
62223
62225
|
i({
|
|
62224
62226
|
startRow: f,
|
|
62225
62227
|
endRow: Math.min(u, f + Math.ceil(s / 268) + 2 * t),
|
|
@@ -62241,7 +62243,7 @@ var ZF = {
|
|
|
62241
62243
|
rowCount: a,
|
|
62242
62244
|
totalHeight: a * 268
|
|
62243
62245
|
};
|
|
62244
|
-
},
|
|
62246
|
+
}, rI = {
|
|
62245
62247
|
skeletonColor: "var(--cg-skeleton-color, var(--bg-control-disable-primary, #dce0e8))",
|
|
62246
62248
|
card: "_card_18c2b_2",
|
|
62247
62249
|
emptyStarHidden: "_emptyStarHidden_18c2b_2",
|
|
@@ -62251,11 +62253,11 @@ var ZF = {
|
|
|
62251
62253
|
selectedCard: "_selectedCard_18c2b_37",
|
|
62252
62254
|
checkIcon: "_checkIcon_18c2b_42",
|
|
62253
62255
|
footer: "_footer_18c2b_46"
|
|
62254
|
-
},
|
|
62256
|
+
}, iI = {
|
|
62255
62257
|
name: "_name_188yo_1",
|
|
62256
62258
|
lastUsed: "_lastUsed_188yo_5",
|
|
62257
62259
|
version: "_version_188yo_9"
|
|
62258
|
-
},
|
|
62260
|
+
}, aI = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, styles: c, lastUsedTrailing: l, iconClassName: u, iconOverlay: d }) => {
|
|
62259
62261
|
let f = c?.colors, p = c?.typography ?? {}, m = a === mn.LG, h = m ? "size-[52px] rounded-[14px]" : "size-[44px] rounded-lg", g = m ? 54 : 44, _ = os({
|
|
62260
62262
|
"--ai-name-text": f?.nameColor,
|
|
62261
62263
|
"--ai-last-used-text": f?.lastUsedColor,
|
|
@@ -62285,26 +62287,26 @@ var ZF = {
|
|
|
62285
62287
|
children: [/* @__PURE__ */ I("div", {
|
|
62286
62288
|
className: "flex min-w-0 items-start gap-1 overflow-hidden",
|
|
62287
62289
|
children: [/* @__PURE__ */ F("span", {
|
|
62288
|
-
className: R("min-w-0 flex-1 truncate", p?.nameClassName ?? "dial-body-semi-text",
|
|
62290
|
+
className: R("min-w-0 flex-1 truncate", p?.nameClassName ?? "dial-body-semi-text", iI.name),
|
|
62289
62291
|
children: o ? /* @__PURE__ */ F(ye, {
|
|
62290
62292
|
text: n,
|
|
62291
62293
|
query: o
|
|
62292
62294
|
}) : n
|
|
62293
62295
|
}), r && /* @__PURE__ */ F(pe, {
|
|
62294
62296
|
text: r,
|
|
62295
|
-
className: R("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text",
|
|
62297
|
+
className: R("max-w-[30%] shrink-0 tabular-nums", p?.versionClassName ?? "dial-tiny-text", iI.version)
|
|
62296
62298
|
})]
|
|
62297
62299
|
}), m && i != null && /* @__PURE__ */ I("div", {
|
|
62298
62300
|
className: "flex items-center gap-2",
|
|
62299
62301
|
children: [/* @__PURE__ */ F("span", {
|
|
62300
|
-
className: R("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text",
|
|
62302
|
+
className: R("tabular-nums", p?.lastUsedClassName ?? "dial-tiny-text", iI.lastUsed),
|
|
62301
62303
|
children: i
|
|
62302
62304
|
}), l]
|
|
62303
62305
|
})]
|
|
62304
62306
|
})]
|
|
62305
62307
|
})]
|
|
62306
62308
|
});
|
|
62307
|
-
},
|
|
62309
|
+
}, oI = { icon: "_icon_a0p4u_1" }, sI = ({ credentials: e, loggedOutLabel: t = "Authorize to use this toolset.", className: n, colors: r }) => e == null || Nn(e) == null ? null : /* @__PURE__ */ F(Ke, {
|
|
62308
62310
|
tooltip: t,
|
|
62309
62311
|
asChild: !0,
|
|
62310
62312
|
children: /* @__PURE__ */ F("span", {
|
|
@@ -62317,39 +62319,39 @@ var ZF = {
|
|
|
62317
62319
|
className: R("absolute -bottom-1 -end-1 shrink-0", n),
|
|
62318
62320
|
children: /* @__PURE__ */ F(rt, {
|
|
62319
62321
|
size: k.SM,
|
|
62320
|
-
className:
|
|
62322
|
+
className: oI.icon,
|
|
62321
62323
|
"aria-hidden": !0
|
|
62322
62324
|
})
|
|
62323
62325
|
})
|
|
62324
|
-
}),
|
|
62326
|
+
}), cI = {
|
|
62325
62327
|
starFilledIcon: "_starFilledIcon_po6zj_1",
|
|
62326
62328
|
starPop: "_starPop_po6zj_1"
|
|
62327
|
-
},
|
|
62329
|
+
}, lI = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i, starFilledColor: a }) => /* @__PURE__ */ F(Ge, {
|
|
62328
62330
|
size: n,
|
|
62329
62331
|
style: os({ "--cat-star-filled": a }),
|
|
62330
62332
|
className: i,
|
|
62331
62333
|
icon: e ? /* @__PURE__ */ F(Bt, {
|
|
62332
62334
|
size: k.SM,
|
|
62333
|
-
className:
|
|
62335
|
+
className: cI.starFilledIcon
|
|
62334
62336
|
}) : /* @__PURE__ */ F(zt, {
|
|
62335
62337
|
size: k.SM,
|
|
62336
62338
|
stroke: A
|
|
62337
62339
|
}),
|
|
62338
62340
|
"aria-label": r,
|
|
62339
62341
|
onClick: t
|
|
62340
|
-
}),
|
|
62342
|
+
}), uI = { tag: "_tag_12518_1" }, dI = ({ label: e, className: t, badgeClassName: n = "dial-tiny-text", colors: r }) => /* @__PURE__ */ F("div", {
|
|
62341
62343
|
style: os({
|
|
62342
62344
|
"--cat-card-tag-bg": r?.background,
|
|
62343
62345
|
"--cat-card-tag-text": r?.text,
|
|
62344
62346
|
"--cat-card-tag-border": r?.border
|
|
62345
62347
|
}),
|
|
62346
|
-
className: R("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2",
|
|
62348
|
+
className: R("flex h-6 w-fit items-center justify-center whitespace-nowrap rounded-md border px-2", uI.tag, n, t),
|
|
62347
62349
|
children: e
|
|
62348
|
-
}),
|
|
62350
|
+
}), fI = ({ label: e, className: t = "dial-tiny-text", colors: n }) => /* @__PURE__ */ F(dI, {
|
|
62349
62351
|
label: e,
|
|
62350
62352
|
badgeClassName: t,
|
|
62351
62353
|
colors: n
|
|
62352
|
-
}),
|
|
62354
|
+
}), pI = 8, mI = ({ topics: e, overflowAriaLabel: t, className: n }) => {
|
|
62353
62355
|
let r = m(null), i = m([]), a = m([]), o = m(null), [c, u] = h(e.length), d = e.join("\0"), p = s(() => {
|
|
62354
62356
|
let t = r.current;
|
|
62355
62357
|
if (!t || e.length === 0) return;
|
|
@@ -62361,8 +62363,8 @@ var ZF = {
|
|
|
62361
62363
|
let c = o.current?.offsetWidth ?? 0, l = 0, d = 0;
|
|
62362
62364
|
for (let t = 0; t < e.length; t++) {
|
|
62363
62365
|
let r = e.length - (t + 1) > 0;
|
|
62364
|
-
if (l + (t > 0 ?
|
|
62365
|
-
l += (t > 0 ?
|
|
62366
|
+
if (l + (t > 0 ? pI : 0) + s[t] + (r ? pI + c : 0) > n) break;
|
|
62367
|
+
l += (t > 0 ? pI : 0) + s[t], d = t + 1;
|
|
62366
62368
|
}
|
|
62367
62369
|
u(d);
|
|
62368
62370
|
}, [e.length]);
|
|
@@ -62388,24 +62390,24 @@ var ZF = {
|
|
|
62388
62390
|
ref: (e) => {
|
|
62389
62391
|
i.current[t] = e;
|
|
62390
62392
|
},
|
|
62391
|
-
children: /* @__PURE__ */ F(
|
|
62393
|
+
children: /* @__PURE__ */ F(fI, { label: e })
|
|
62392
62394
|
}, e)),
|
|
62393
62395
|
g > 0 && /* @__PURE__ */ F(Ke, {
|
|
62394
62396
|
tooltip: e.slice(c).join(", "),
|
|
62395
62397
|
children: /* @__PURE__ */ F("span", {
|
|
62396
62398
|
"aria-label": t?.(g) ?? `and ${g} more topics`,
|
|
62397
|
-
children: /* @__PURE__ */ F(
|
|
62399
|
+
children: /* @__PURE__ */ F(fI, { label: `+${g}` })
|
|
62398
62400
|
})
|
|
62399
62401
|
}),
|
|
62400
62402
|
/* @__PURE__ */ F("div", {
|
|
62401
62403
|
ref: o,
|
|
62402
62404
|
"aria-hidden": !0,
|
|
62403
62405
|
className: "invisible absolute -left-full -top-full",
|
|
62404
|
-
children: /* @__PURE__ */ F(
|
|
62406
|
+
children: /* @__PURE__ */ F(fI, { label: `+${e.length}` })
|
|
62405
62407
|
})
|
|
62406
62408
|
]
|
|
62407
62409
|
});
|
|
62408
|
-
},
|
|
62410
|
+
}, hI = ({ item: e, query: t = "", onClick: n, initialIsStarred: r = !1, onToggle: i, isFavoriteVisible: a, featuredLabel: o = "Featured", addToFavoritesAriaLabel: c = "Add to favorites", removeFromFavoritesAriaLabel: u = "Remove from favorites", isSelected: d = !1, className: f, styles: p, credentialsBadgeLoggedOutLabel: m, isReadonly: g = !1 }) => {
|
|
62409
62411
|
let [_, v] = h(r);
|
|
62410
62412
|
l(() => {
|
|
62411
62413
|
v(r);
|
|
@@ -62436,7 +62438,7 @@ var ZF = {
|
|
|
62436
62438
|
} : {},
|
|
62437
62439
|
"aria-label": e.name,
|
|
62438
62440
|
style: T,
|
|
62439
|
-
className: R("box-border cursor-pointer gap-3",
|
|
62441
|
+
className: R("box-border cursor-pointer gap-3", rI.card, E ? rI.featuredCard : void 0, d ? rI.selectedCard : void 0, f),
|
|
62440
62442
|
children: [
|
|
62441
62443
|
E && /* @__PURE__ */ F("div", {
|
|
62442
62444
|
className: "absolute end-[22px] top-0 -translate-y-1/2",
|
|
@@ -62448,33 +62450,33 @@ var ZF = {
|
|
|
62448
62450
|
}),
|
|
62449
62451
|
d && /* @__PURE__ */ F(ct, {
|
|
62450
62452
|
size: k.SM,
|
|
62451
|
-
className: R("absolute end-3 top-3 shrink-0",
|
|
62453
|
+
className: R("absolute end-3 top-3 shrink-0", rI.checkIcon),
|
|
62452
62454
|
"aria-hidden": !0,
|
|
62453
62455
|
stroke: A
|
|
62454
62456
|
}),
|
|
62455
|
-
/* @__PURE__ */ F(
|
|
62457
|
+
/* @__PURE__ */ F(aI, {
|
|
62456
62458
|
icon: e.iconUrl,
|
|
62457
62459
|
type: e.type,
|
|
62458
62460
|
name: e.name,
|
|
62459
62461
|
version: e.version,
|
|
62460
62462
|
size: mn.SM,
|
|
62461
62463
|
query: t,
|
|
62462
|
-
iconClassName:
|
|
62463
|
-
iconOverlay: /* @__PURE__ */ F(
|
|
62464
|
+
iconClassName: rI.cardIcon,
|
|
62465
|
+
iconOverlay: /* @__PURE__ */ F(sI, {
|
|
62464
62466
|
credentials: e.credentials,
|
|
62465
62467
|
loggedOutLabel: m
|
|
62466
62468
|
})
|
|
62467
62469
|
}),
|
|
62468
62470
|
/* @__PURE__ */ F("p", {
|
|
62469
|
-
className: R(y, "line-clamp-2 min-h-[2lh] break-words", x,
|
|
62471
|
+
className: R(y, "line-clamp-2 min-h-[2lh] break-words", x, rI.description),
|
|
62470
62472
|
children: e.description
|
|
62471
62473
|
}),
|
|
62472
62474
|
/* @__PURE__ */ F("div", {
|
|
62473
62475
|
className: "mt-auto flex items-center gap-2",
|
|
62474
|
-
children: /* @__PURE__ */ F(
|
|
62476
|
+
children: /* @__PURE__ */ F(mI, { topics: e.topics })
|
|
62475
62477
|
}),
|
|
62476
62478
|
D && /* @__PURE__ */ F("div", {
|
|
62477
|
-
className: R("pt-3", !g && R("border-t",
|
|
62479
|
+
className: R("pt-3", !g && R("border-t", rI.footer)),
|
|
62478
62480
|
children: /* @__PURE__ */ I("div", {
|
|
62479
62481
|
className: "flex items-center gap-2",
|
|
62480
62482
|
children: [/* @__PURE__ */ F("div", {
|
|
@@ -62484,18 +62486,18 @@ var ZF = {
|
|
|
62484
62486
|
labelClassName: C,
|
|
62485
62487
|
leafClassName: w
|
|
62486
62488
|
})
|
|
62487
|
-
}), ee && /* @__PURE__ */ F(
|
|
62489
|
+
}), ee && /* @__PURE__ */ F(lI, {
|
|
62488
62490
|
isStarred: _,
|
|
62489
62491
|
size: fe.Small,
|
|
62490
62492
|
onClick: M,
|
|
62491
62493
|
ariaLabel: _ ? u : c,
|
|
62492
|
-
className: R(
|
|
62494
|
+
className: R(rI.starBtn, !_ && rI.emptyStarHidden)
|
|
62493
62495
|
})]
|
|
62494
62496
|
})
|
|
62495
62497
|
})
|
|
62496
62498
|
]
|
|
62497
62499
|
});
|
|
62498
|
-
},
|
|
62500
|
+
}, gI = ({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, isFavoriteVisible: a, onItemClick: o, featuredLabel: s, addToFavoritesAriaLabel: c, removeFromFavoritesAriaLabel: l, selectedItemId: u, credentialsBadgeLoggedOutLabel: d, isReadonly: f }) => {
|
|
62499
62501
|
let p = e * n, m = t.slice(p, p + n);
|
|
62500
62502
|
return /* @__PURE__ */ F("div", {
|
|
62501
62503
|
style: {
|
|
@@ -62507,7 +62509,7 @@ var ZF = {
|
|
|
62507
62509
|
let n = m[t];
|
|
62508
62510
|
return /* @__PURE__ */ F("div", {
|
|
62509
62511
|
className: "h-full min-w-0 flex-1",
|
|
62510
|
-
children: n && /* @__PURE__ */ F(
|
|
62512
|
+
children: n && /* @__PURE__ */ F(hI, {
|
|
62511
62513
|
item: n,
|
|
62512
62514
|
query: r,
|
|
62513
62515
|
initialIsStarred: n.isStarred,
|
|
@@ -62525,8 +62527,8 @@ var ZF = {
|
|
|
62525
62527
|
}, n?.id ?? `spacer-${t}`);
|
|
62526
62528
|
})
|
|
62527
62529
|
});
|
|
62528
|
-
},
|
|
62529
|
-
let d = a?.noResultsTitle ?? "No results", f = a?.featuredLabel ?? "Featured", m = a?.addToFavoritesAriaLabel ?? "Add to favorites", h = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", g = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: _, startRow: v, endRow: y, columnCount: b, totalHeight: x } =
|
|
62530
|
+
}, _I = o(({ items: e, query: t = "", onToggleFavorite: n, isFavoriteVisible: r, onItemClick: i, titles: a, isLoading: o, selectedItemId: s, skeletonColor: c = rI.skeletonColor, skeletonCardBackground: l, isReadonly: u = !1 }) => {
|
|
62531
|
+
let d = a?.noResultsTitle ?? "No results", f = a?.featuredLabel ?? "Featured", m = a?.addToFavoritesAriaLabel ?? "Add to favorites", h = a?.removeFromFavoritesAriaLabel ?? "Remove from favorites", g = a?.credentialsBadgeLoggedOutLabel ?? "Authorize to use this toolset.", { containerRef: _, startRow: v, endRow: y, columnCount: b, totalHeight: x } = nI(e.length), S = p(() => ({
|
|
62530
62532
|
items: e,
|
|
62531
62533
|
columnCount: b,
|
|
62532
62534
|
query: t,
|
|
@@ -62560,7 +62562,7 @@ var ZF = {
|
|
|
62560
62562
|
...os({ "--cg-skeleton-card-bg": l })
|
|
62561
62563
|
},
|
|
62562
62564
|
children: Array.from({ length: b * 3 }, (e, t) => /* @__PURE__ */ F("div", {
|
|
62563
|
-
className: R("rounded-md border p-4",
|
|
62565
|
+
className: R("rounded-md border p-4", rI.skeletonCard),
|
|
62564
62566
|
style: { height: 248 },
|
|
62565
62567
|
children: /* @__PURE__ */ F(Re, {
|
|
62566
62568
|
avatar: {
|
|
@@ -62582,41 +62584,41 @@ var ZF = {
|
|
|
62582
62584
|
style: { height: x },
|
|
62583
62585
|
children: Array.from({ length: y - v }, (e, t) => {
|
|
62584
62586
|
let n = v + t;
|
|
62585
|
-
return /* @__PURE__ */ F(
|
|
62587
|
+
return /* @__PURE__ */ F(gI, {
|
|
62586
62588
|
rowIndex: n,
|
|
62587
62589
|
...S
|
|
62588
62590
|
}, n);
|
|
62589
62591
|
})
|
|
62590
62592
|
});
|
|
62591
|
-
}),
|
|
62593
|
+
}), vI = /* @__PURE__ */ function(e) {
|
|
62592
62594
|
return e.Equal = "EQUAL", e.Contain = "CONTAIN", e.Regex = "REGEX", e;
|
|
62593
|
-
}({}),
|
|
62595
|
+
}({}), yI = /* @__PURE__ */ function(e) {
|
|
62594
62596
|
return e.None = "none", e.Info = "info", e.ReplaceWarning = "replaceWarning", e.NoAccess = "noAccess", e.SubmitError = "submitError", e;
|
|
62595
|
-
}({}),
|
|
62596
|
-
calloutKind:
|
|
62597
|
+
}({}), bI = (e) => e.isSubmitting ? {
|
|
62598
|
+
calloutKind: yI.None,
|
|
62597
62599
|
isSubmitDisabled: !0,
|
|
62598
62600
|
isSubmitLoading: !0
|
|
62599
62601
|
} : e.hasSelectedFolder ? e.hasWriteAccess ? e.hasSubmitError ? {
|
|
62600
|
-
calloutKind:
|
|
62602
|
+
calloutKind: yI.SubmitError,
|
|
62601
62603
|
isSubmitDisabled: !1,
|
|
62602
62604
|
isSubmitLoading: !1
|
|
62603
62605
|
} : e.hasExistingPublicationInFolder ? {
|
|
62604
|
-
calloutKind:
|
|
62606
|
+
calloutKind: yI.ReplaceWarning,
|
|
62605
62607
|
isSubmitDisabled: e.allowReplace === !1,
|
|
62606
62608
|
isSubmitLoading: !1
|
|
62607
62609
|
} : {
|
|
62608
|
-
calloutKind:
|
|
62610
|
+
calloutKind: yI.Info,
|
|
62609
62611
|
isSubmitDisabled: !1,
|
|
62610
62612
|
isSubmitLoading: !1
|
|
62611
62613
|
} : {
|
|
62612
|
-
calloutKind:
|
|
62614
|
+
calloutKind: yI.NoAccess,
|
|
62613
62615
|
isSubmitDisabled: !0,
|
|
62614
62616
|
isSubmitLoading: !1
|
|
62615
62617
|
} : {
|
|
62616
|
-
calloutKind:
|
|
62618
|
+
calloutKind: yI.None,
|
|
62617
62619
|
isSubmitDisabled: !0,
|
|
62618
62620
|
isSubmitLoading: !1
|
|
62619
|
-
},
|
|
62621
|
+
}, xI = (e, t, n) => t.length === 0 ? [...e, {
|
|
62620
62622
|
path: [n],
|
|
62621
62623
|
name: n
|
|
62622
62624
|
}] : e.map((e) => e.path.join("/") === t.join("/") ? {
|
|
@@ -62627,17 +62629,17 @@ var ZF = {
|
|
|
62627
62629
|
}]
|
|
62628
62630
|
} : {
|
|
62629
62631
|
...e,
|
|
62630
|
-
children: e.children ?
|
|
62631
|
-
}),
|
|
62632
|
+
children: e.children ? xI(e.children, t, n) : e.children
|
|
62633
|
+
}), SI = (e, t, n) => {
|
|
62632
62634
|
let r = [...t, n].join("/");
|
|
62633
62635
|
return t.length === 0 ? e.filter((e) => e.path.join("/") !== r) : e.map((e) => e.path.join("/") === t.join("/") ? {
|
|
62634
62636
|
...e,
|
|
62635
62637
|
children: (e.children ?? []).filter((e) => e.path.join("/") !== r)
|
|
62636
62638
|
} : {
|
|
62637
62639
|
...e,
|
|
62638
|
-
children: e.children ?
|
|
62640
|
+
children: e.children ? SI(e.children, t, n) : e.children
|
|
62639
62641
|
});
|
|
62640
|
-
},
|
|
62642
|
+
}, CI = ({ item: e, history: t, folderItems: n, hasWriteAccess: r = () => !0, onCreateFolder: i, onPublish: a, onPublishSuccess: o, onPublishError: c, onFetchExistingRules: u }) => {
|
|
62641
62643
|
let [d, f] = h(n);
|
|
62642
62644
|
l(() => {
|
|
62643
62645
|
f(n);
|
|
@@ -62669,11 +62671,11 @@ var ZF = {
|
|
|
62669
62671
|
e.version,
|
|
62670
62672
|
m
|
|
62671
62673
|
]), D = s(async (e, t) => {
|
|
62672
|
-
f((n) =>
|
|
62674
|
+
f((n) => xI(n, e, t));
|
|
62673
62675
|
try {
|
|
62674
62676
|
await i?.(e, t);
|
|
62675
62677
|
} catch {
|
|
62676
|
-
f((n) =>
|
|
62678
|
+
f((n) => SI(n, e, t)), b(!0);
|
|
62677
62679
|
}
|
|
62678
62680
|
}, [i]), O = s(async () => {
|
|
62679
62681
|
if (!m) return !1;
|
|
@@ -62711,63 +62713,63 @@ var ZF = {
|
|
|
62711
62713
|
isRulesLoading: C,
|
|
62712
62714
|
hasRulesLoadError: T
|
|
62713
62715
|
};
|
|
62714
|
-
},
|
|
62716
|
+
}, wI = (e, t) => {
|
|
62715
62717
|
let n = t.trim().toLowerCase();
|
|
62716
62718
|
return n ? e.reduce((e, r) => {
|
|
62717
|
-
let i = r.children ?
|
|
62719
|
+
let i = r.children ? wI(r.children, t) : void 0;
|
|
62718
62720
|
return r.name.toLowerCase().includes(n) ? e.push(r) : i?.length && e.push({
|
|
62719
62721
|
...r,
|
|
62720
62722
|
children: i
|
|
62721
62723
|
}), e;
|
|
62722
62724
|
}, []) : e;
|
|
62723
|
-
},
|
|
62725
|
+
}, TI = (e, t) => e.localeCompare(t, void 0, {
|
|
62724
62726
|
sensitivity: "base",
|
|
62725
62727
|
numeric: !0
|
|
62726
|
-
}),
|
|
62728
|
+
}), EI = (e) => [...e].sort((e, t) => TI(e.name, t.name)).map((e) => e.children ? {
|
|
62727
62729
|
...e,
|
|
62728
|
-
children:
|
|
62729
|
-
} : e),
|
|
62730
|
-
let t =
|
|
62730
|
+
children: EI(e.children)
|
|
62731
|
+
} : e), DI = (e) => e.flatMap((e) => [e.path.join("/"), ...e.children ? DI(e.children) : []]), OI = (e) => e.join("/"), kI = (e) => e.split("/").filter(Boolean), AI = (e) => e.map((e) => {
|
|
62732
|
+
let t = OI(e.path);
|
|
62731
62733
|
return {
|
|
62732
62734
|
path: t,
|
|
62733
62735
|
name: e.name,
|
|
62734
62736
|
folderId: t,
|
|
62735
62737
|
nodeType: re.FOLDER,
|
|
62736
|
-
items: e.children ?
|
|
62738
|
+
items: e.children ? AI(e.children) : void 0
|
|
62737
62739
|
};
|
|
62738
|
-
}),
|
|
62740
|
+
}), jI = /[/\\:;,={}&"]/, MI = (e, t, n) => {
|
|
62739
62741
|
let r = e.trim();
|
|
62740
|
-
return r ? r.includes("..") ||
|
|
62741
|
-
},
|
|
62742
|
+
return r ? r.includes("..") || jI.test(r) ? n.invalid : t.some((e) => e.toLowerCase() === r.toLowerCase()) ? n.duplicate : null : n.empty;
|
|
62743
|
+
}, NI = (e, t) => {
|
|
62742
62744
|
let n = new Set(t.map((e) => e.toLowerCase()));
|
|
62743
62745
|
if (!n.has(e.toLowerCase())) return e;
|
|
62744
62746
|
let r = 2;
|
|
62745
62747
|
for (; n.has(`${e} ${r}`.toLowerCase());) r += 1;
|
|
62746
62748
|
return `${e} ${r}`;
|
|
62747
|
-
},
|
|
62749
|
+
}, PI = (e, t) => {
|
|
62748
62750
|
if (t.length === 0) return e.map((e) => e.name);
|
|
62749
|
-
let n =
|
|
62751
|
+
let n = OI(t), r = (e) => {
|
|
62750
62752
|
for (let t of e) {
|
|
62751
|
-
if (
|
|
62753
|
+
if (OI(t.path) === n) return t;
|
|
62752
62754
|
let e = t.children ? r(t.children) : void 0;
|
|
62753
62755
|
if (e) return e;
|
|
62754
62756
|
}
|
|
62755
62757
|
};
|
|
62756
62758
|
return (r(e)?.children ?? []).map((e) => e.name);
|
|
62757
|
-
},
|
|
62759
|
+
}, FI = {
|
|
62758
62760
|
dialog: "_dialog_1chty_2",
|
|
62759
62761
|
error: "_error_1chty_11",
|
|
62760
62762
|
selectField: "_selectField_1chty_25",
|
|
62761
62763
|
selectFieldOpen: "_selectFieldOpen_1chty_37"
|
|
62762
|
-
},
|
|
62764
|
+
}, II = 20, LI = 200, RI = 8, zI = (e) => {
|
|
62763
62765
|
let t = e.trim();
|
|
62764
|
-
if (t.length === 0 || t.length >
|
|
62766
|
+
if (t.length === 0 || t.length > LI) return !1;
|
|
62765
62767
|
try {
|
|
62766
62768
|
return new RegExp(t) instanceof RegExp;
|
|
62767
62769
|
} catch {
|
|
62768
62770
|
return !1;
|
|
62769
62771
|
}
|
|
62770
|
-
},
|
|
62772
|
+
}, BI = ({ sourceOptions: e, onSave: t, onCancel: n, disabled: r = !1, maxTargets: i = II, labels: a = {}, errorClassName: o = "dial-small-text", styles: s = {} }) => {
|
|
62771
62773
|
let c = {
|
|
62772
62774
|
...os({
|
|
62773
62775
|
"--pare-mobile-bg": s.colors?.mobileBackground,
|
|
@@ -62783,27 +62785,27 @@ var ZF = {
|
|
|
62783
62785
|
l(() => {
|
|
62784
62786
|
ne.current?.focus();
|
|
62785
62787
|
}, []);
|
|
62786
|
-
let [N, re] = h(), [ie, ae] = h(), [oe, se] = h([]), [ce, le] = h(""), [ue, de] = h(!1), [fe, pe] = h(!1), [me, he] = h(!1), _e = R(
|
|
62788
|
+
let [N, re] = h(), [ie, ae] = h(), [oe, se] = h([]), [ce, le] = h(""), [ue, de] = h(!1), [fe, pe] = h(!1), [me, he] = h(!1), _e = R(FI.selectField, ue && FI.selectFieldOpen), ve = R(FI.selectField, fe && FI.selectFieldOpen), ye = p(() => e.map((e) => ({
|
|
62787
62789
|
value: e,
|
|
62788
62790
|
label: e
|
|
62789
62791
|
})), [e]), be = p(() => [
|
|
62790
62792
|
{
|
|
62791
|
-
value:
|
|
62793
|
+
value: vI.Equal,
|
|
62792
62794
|
label: _
|
|
62793
62795
|
},
|
|
62794
62796
|
{
|
|
62795
|
-
value:
|
|
62797
|
+
value: vI.Contain,
|
|
62796
62798
|
label: v
|
|
62797
62799
|
},
|
|
62798
62800
|
{
|
|
62799
|
-
value:
|
|
62801
|
+
value: vI.Regex,
|
|
62800
62802
|
label: y
|
|
62801
62803
|
}
|
|
62802
62804
|
], [
|
|
62803
62805
|
_,
|
|
62804
62806
|
v,
|
|
62805
62807
|
y
|
|
62806
|
-
]), P = ie ===
|
|
62808
|
+
]), P = ie === vI.Regex, Se = zI(ce), Ce = N != null && ie != null && (P ? Se : oe.length > 0);
|
|
62807
62809
|
return /* @__PURE__ */ I("div", {
|
|
62808
62810
|
ref: ne,
|
|
62809
62811
|
role: "dialog",
|
|
@@ -62814,7 +62816,7 @@ var ZF = {
|
|
|
62814
62816
|
e.key === "Escape" && (e.stopPropagation(), n());
|
|
62815
62817
|
},
|
|
62816
62818
|
style: c,
|
|
62817
|
-
className: R("fixed inset-0 z-[60] flex flex-col gap-3 overflow-y-auto p-4", "desktop:static desktop:z-auto desktop:flex-none desktop:overflow-visible desktop:rounded-lg desktop:p-3",
|
|
62819
|
+
className: R("fixed inset-0 z-[60] flex flex-col gap-3 overflow-y-auto p-4", "desktop:static desktop:z-auto desktop:flex-none desktop:overflow-visible desktop:rounded-lg desktop:p-3", FI.dialog),
|
|
62818
62820
|
children: [
|
|
62819
62821
|
/* @__PURE__ */ F(Le, {
|
|
62820
62822
|
id: j,
|
|
@@ -62825,7 +62827,7 @@ var ZF = {
|
|
|
62825
62827
|
re(Array.isArray(e) ? e[0] : e), de(!1);
|
|
62826
62828
|
},
|
|
62827
62829
|
placeholder: f,
|
|
62828
|
-
searchable: e.length >
|
|
62830
|
+
searchable: e.length > RI,
|
|
62829
62831
|
searchPlaceholder: f,
|
|
62830
62832
|
disabled: r,
|
|
62831
62833
|
open: ue,
|
|
@@ -62841,7 +62843,7 @@ var ZF = {
|
|
|
62841
62843
|
value: ie,
|
|
62842
62844
|
onChange: (e) => {
|
|
62843
62845
|
let t = Array.isArray(e) ? e[0] : e;
|
|
62844
|
-
ie ===
|
|
62846
|
+
ie === vI.Regex != (t === vI.Regex) && (se([]), le("")), ae(t), pe(!1);
|
|
62845
62847
|
},
|
|
62846
62848
|
placeholder: g,
|
|
62847
62849
|
disabled: r,
|
|
@@ -62863,7 +62865,7 @@ var ZF = {
|
|
|
62863
62865
|
}), (ce.length > 0 || me) && !Se && /* @__PURE__ */ F("span", {
|
|
62864
62866
|
id: A,
|
|
62865
62867
|
role: "alert",
|
|
62866
|
-
className: R("mt-1 block", o,
|
|
62868
|
+
className: R("mt-1 block", o, FI.error),
|
|
62867
62869
|
children: T
|
|
62868
62870
|
})] }) : /* @__PURE__ */ F(We, {
|
|
62869
62871
|
id: te,
|
|
@@ -62908,13 +62910,13 @@ var ZF = {
|
|
|
62908
62910
|
})
|
|
62909
62911
|
]
|
|
62910
62912
|
});
|
|
62911
|
-
},
|
|
62913
|
+
}, VI = {
|
|
62912
62914
|
ruleRow: "_ruleRow_nx0en_1",
|
|
62913
62915
|
heading: "_heading_nx0en_5",
|
|
62914
62916
|
hint: "_hint_nx0en_9",
|
|
62915
62917
|
loading: "_loading_nx0en_13",
|
|
62916
62918
|
ruleText: "_ruleText_nx0en_17"
|
|
62917
|
-
},
|
|
62919
|
+
}, HI = 20, UI = (e, t) => e === vI.Equal ? t.equal : e === vI.Contain ? t.contain : t.regex, WI = ({ rules: e, onRulesChange: t, sourceOptions: n, folderName: r, disabled: i = !1, isLoading: a = !1, hasLoadError: o = !1, maxRules: s = HI, maxTargetsPerRule: c, labels: d = {}, headingClassName: f = "dial-body-semi-text", hintClassName: p = "dial-small-text", loadingClassName: g = "dial-small-text", ruleTextClassName: _ = "dial-small-text", ruleSourceClassName: v = "dial-small-semi-text", styles: b = {} }) => {
|
|
62918
62920
|
let x = {
|
|
62919
62921
|
...os({
|
|
62920
62922
|
"--par-rule-bg": b.colors?.ruleBackground,
|
|
@@ -62963,7 +62965,7 @@ var ZF = {
|
|
|
62963
62965
|
className: "mb-1 flex items-center justify-between gap-2",
|
|
62964
62966
|
children: [/* @__PURE__ */ F("div", {
|
|
62965
62967
|
id: le,
|
|
62966
|
-
className: R(f,
|
|
62968
|
+
className: R(f, VI.heading),
|
|
62967
62969
|
children: S
|
|
62968
62970
|
}), e.length > 0 && /* @__PURE__ */ F(ge, {
|
|
62969
62971
|
variant: y.Primary,
|
|
@@ -62973,7 +62975,7 @@ var ZF = {
|
|
|
62973
62975
|
})]
|
|
62974
62976
|
}),
|
|
62975
62977
|
/* @__PURE__ */ F("p", {
|
|
62976
|
-
className: R("mb-2", p,
|
|
62978
|
+
className: R("mb-2", p, VI.hint),
|
|
62977
62979
|
children: Te ? C.replace("{folder}", r) : w
|
|
62978
62980
|
}),
|
|
62979
62981
|
e.length > 0 && !Te && /* @__PURE__ */ F("div", {
|
|
@@ -62985,7 +62987,7 @@ var ZF = {
|
|
|
62985
62987
|
})
|
|
62986
62988
|
}),
|
|
62987
62989
|
a && /* @__PURE__ */ I("div", {
|
|
62988
|
-
className: R("mb-2 flex items-center gap-2", g,
|
|
62990
|
+
className: R("mb-2 flex items-center gap-2", g, VI.loading),
|
|
62989
62991
|
children: [/* @__PURE__ */ F(Ve, {
|
|
62990
62992
|
size: 16,
|
|
62991
62993
|
ariaLabel: N
|
|
@@ -63004,16 +63006,16 @@ var ZF = {
|
|
|
63004
63006
|
children: e.map((e, t) => {
|
|
63005
63007
|
let n = e.targets.join(` ${O} `), r = j.replace("{source}", e.source).replace("{targets}", n);
|
|
63006
63008
|
return /* @__PURE__ */ I("li", {
|
|
63007
|
-
className: R("flex items-center justify-between gap-2 rounded-lg px-3 py-2",
|
|
63009
|
+
className: R("flex items-center justify-between gap-2 rounded-lg px-3 py-2", VI.ruleRow),
|
|
63008
63010
|
children: [/* @__PURE__ */ I("span", {
|
|
63009
|
-
className: R("truncate", _,
|
|
63011
|
+
className: R("truncate", _, VI.ruleText),
|
|
63010
63012
|
children: [
|
|
63011
63013
|
/* @__PURE__ */ F("span", {
|
|
63012
63014
|
className: v,
|
|
63013
63015
|
children: e.source
|
|
63014
63016
|
}),
|
|
63015
63017
|
" ",
|
|
63016
|
-
|
|
63018
|
+
UI(e.function, Se),
|
|
63017
63019
|
": ",
|
|
63018
63020
|
n
|
|
63019
63021
|
]
|
|
@@ -63030,7 +63032,7 @@ var ZF = {
|
|
|
63030
63032
|
}, t);
|
|
63031
63033
|
})
|
|
63032
63034
|
}),
|
|
63033
|
-
ue && /* @__PURE__ */ F(
|
|
63035
|
+
ue && /* @__PURE__ */ F(BI, {
|
|
63034
63036
|
sourceOptions: n,
|
|
63035
63037
|
onSave: be,
|
|
63036
63038
|
onCancel: ye,
|
|
@@ -63053,27 +63055,27 @@ var ZF = {
|
|
|
63053
63055
|
})
|
|
63054
63056
|
}),
|
|
63055
63057
|
Ce && /* @__PURE__ */ F("p", {
|
|
63056
|
-
className: R("mt-2", p,
|
|
63058
|
+
className: R("mt-2", p, VI.hint),
|
|
63057
63059
|
children: E.replace("{max}", String(s))
|
|
63058
63060
|
})
|
|
63059
63061
|
]
|
|
63060
63062
|
});
|
|
63061
|
-
},
|
|
63063
|
+
}, GI = { divider: "_divider_a8iz6_1" }, KI = ({ items: e, selectedPath: t, onSelectedPathChange: n, onCreateFolder: r, searchQuery: i, disabled: a = !1, createFolderLabel: o = "Create new folder", cancelCreatingFolderLabel: s = "Cancel", addSiblingFolderLabel: c = "Add sibling", addChildFolderLabel: l = "Add child", newFolderDefaultName: u = "New folder", noResultsLabel: d = "No folders match \"{query}\".", emptyFolderNameError: f = "Folder name cannot be empty.", invalidFolderNameError: g = "Folder name contains invalid characters.", duplicateFolderNameError: _ = "A folder with this name already exists.", rootLabel: v = "Organization", expandedPaths: y, onExpandedPathsChange: b, loadingPaths: x, styles: S = {} }) => {
|
|
63062
63064
|
let C = {
|
|
63063
63065
|
...os({ "--pft-divider": S.colors?.divider }),
|
|
63064
63066
|
...S.cssVars
|
|
63065
|
-
}, [w, T] = h(() => new Set(t?.map((e, n) =>
|
|
63067
|
+
}, [w, T] = h(() => new Set(t?.map((e, n) => OI(t.slice(0, n + 1))) ?? [])), E = y ?? w, ee = (e) => {
|
|
63066
63068
|
let t = new Set(e);
|
|
63067
63069
|
t.delete(""), b ? b(t) : T(t);
|
|
63068
|
-
}, [D, O] = h(null), [j, M] = h(u), te = m(null), ne = i.trim(), N = D != null, re = p(() =>
|
|
63070
|
+
}, [D, O] = h(null), [j, M] = h(u), te = m(null), ne = i.trim(), N = D != null, re = p(() => wI(e, i), [e, i]), ie = ne.length > 0 && re.length === 0, ae = !N && ne.length > 0, oe = p(() => EI(ae ? re : e), [
|
|
63069
63071
|
ae,
|
|
63070
63072
|
re,
|
|
63071
63073
|
e
|
|
63072
|
-
]), se = p(() => new Set(["", ...
|
|
63074
|
+
]), se = p(() => new Set(["", ...DI(oe)]), [oe]), ce = p(() => new Set(["", ...ae ? se : E]), [
|
|
63073
63075
|
ae,
|
|
63074
63076
|
se,
|
|
63075
63077
|
E
|
|
63076
|
-
]), le = p(() =>
|
|
63078
|
+
]), le = p(() => AI(oe), [oe]), ue = p(() => ae && le.length === 0 ? [] : [{
|
|
63077
63079
|
path: "",
|
|
63078
63080
|
name: v,
|
|
63079
63081
|
folderId: "",
|
|
@@ -63083,16 +63085,16 @@ var ZF = {
|
|
|
63083
63085
|
le,
|
|
63084
63086
|
v,
|
|
63085
63087
|
ae
|
|
63086
|
-
]), de = D ?
|
|
63088
|
+
]), de = D ? OI(D) : null, fe = {
|
|
63087
63089
|
empty: f,
|
|
63088
63090
|
invalid: g,
|
|
63089
63091
|
duplicate: _
|
|
63090
|
-
}, pe = (t) =>
|
|
63092
|
+
}, pe = (t) => NI(ie && MI(ne, [], fe) == null ? ne : u, PI(e, t)), me = (e) => {
|
|
63091
63093
|
O(e), M(pe(e)), te.current = null;
|
|
63092
|
-
let t =
|
|
63094
|
+
let t = OI(e);
|
|
63093
63095
|
t && ee(new Set(E).add(t));
|
|
63094
63096
|
}, he = () => me(t ?? []), _e = (e) => {
|
|
63095
|
-
let t =
|
|
63097
|
+
let t = kI(e.path), n = [{
|
|
63096
63098
|
key: "add-child",
|
|
63097
63099
|
label: l,
|
|
63098
63100
|
icon: /* @__PURE__ */ F(Dt, {
|
|
@@ -63114,7 +63116,7 @@ var ZF = {
|
|
|
63114
63116
|
}), n;
|
|
63115
63117
|
}, ve = (t) => {
|
|
63116
63118
|
if (!D) return null;
|
|
63117
|
-
let n =
|
|
63119
|
+
let n = MI(t, PI(e, D), fe);
|
|
63118
63120
|
return te.current = n, n;
|
|
63119
63121
|
}, ye = (e) => {
|
|
63120
63122
|
if (!D) return;
|
|
@@ -63130,12 +63132,12 @@ var ZF = {
|
|
|
63130
63132
|
children: /* @__PURE__ */ F(ia, {
|
|
63131
63133
|
items: ue,
|
|
63132
63134
|
showFiles: !1,
|
|
63133
|
-
selectedPath: t == null ? void 0 :
|
|
63135
|
+
selectedPath: t == null ? void 0 : OI(t),
|
|
63134
63136
|
expandedPaths: ce,
|
|
63135
63137
|
onExpandedPathsChange: ee,
|
|
63136
63138
|
loadingPaths: x,
|
|
63137
63139
|
onItemClick: (e) => {
|
|
63138
|
-
n(t != null &&
|
|
63140
|
+
n(t != null && OI(t) === e.path ? void 0 : kI(e.path));
|
|
63139
63141
|
},
|
|
63140
63142
|
getContextMenuItems: _e,
|
|
63141
63143
|
createdFolderPath: de,
|
|
@@ -63147,7 +63149,7 @@ var ZF = {
|
|
|
63147
63149
|
})
|
|
63148
63150
|
}),
|
|
63149
63151
|
/* @__PURE__ */ F("div", {
|
|
63150
|
-
className: R("my-2 h-px",
|
|
63152
|
+
className: R("my-2 h-px", GI.divider),
|
|
63151
63153
|
"aria-hidden": !0
|
|
63152
63154
|
}),
|
|
63153
63155
|
/* @__PURE__ */ I("div", {
|
|
@@ -63169,10 +63171,10 @@ var ZF = {
|
|
|
63169
63171
|
})
|
|
63170
63172
|
]
|
|
63171
63173
|
});
|
|
63172
|
-
},
|
|
63174
|
+
}, qI = {
|
|
63173
63175
|
summaryTitle: "_summaryTitle_tf20a_1",
|
|
63174
63176
|
sectionHeading: "_sectionHeading_tf20a_5"
|
|
63175
|
-
},
|
|
63177
|
+
}, JI = ({ resource: e, renderSummary: t, history: n, isHistoryLoading: r = !1, hasHistoryError: i = !1, folderItems: a, selectedFolderPath: o, onSelectedFolderPathChange: s, onCreateFolder: c, expandedPaths: l, onExpandedPathsChange: u, loadingPaths: d, hasExistingPublicationInFolder: f, hasWriteAccess: m, isSubmitting: g, hasSubmitError: _ = !1, allowReplace: v = !0, rules: y, onRulesChange: b, ruleSourceOptions: x, isRulesLoading: S = !1, hasRulesLoadError: C = !1, labels: w = {}, summaryTitleClassName: T = "dial-body-semi-text", headingClassName: E = "dial-body-semi-text", styles: ee = {} }) => {
|
|
63176
63178
|
let { colors: D, folderTree: O, accessRules: k } = ee, A = {
|
|
63177
63179
|
...os({
|
|
63178
63180
|
"--pp-summary-title-text": D?.summaryTitleText,
|
|
@@ -63187,7 +63189,7 @@ var ZF = {
|
|
|
63187
63189
|
versionTagText: D?.summaryVersionTagText
|
|
63188
63190
|
}, { folderLabel: M = "Publish to folder", replaceWarning: te = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: ne = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: N = "Publishing failed. Please try again.", folderEmptyStateLabel: re, addSiblingFolderLabel: ie, addChildFolderLabel: ae, cancelCreatingFolderLabel: oe, createFolderEmptyNameError: se, createFolderInvalidNameError: ce, createFolderDuplicateNameError: le, rootFolderLabel: ue = "Organization", summaryVersionLabel: de, accessRulesLabels: fe, searchPlaceholder: pe, clearSearchAriaLabel: me } = w, [he, ge] = h(""), _e = (e) => {
|
|
63189
63191
|
ge(e ?? "");
|
|
63190
|
-
}, ve = o != null, ye = p(() =>
|
|
63192
|
+
}, ve = o != null, ye = p(() => bI({
|
|
63191
63193
|
hasSelectedFolder: ve,
|
|
63192
63194
|
hasExistingPublicationInFolder: f,
|
|
63193
63195
|
hasWriteAccess: m,
|
|
@@ -63202,7 +63204,7 @@ var ZF = {
|
|
|
63202
63204
|
_,
|
|
63203
63205
|
v
|
|
63204
63206
|
]), be = ve ? o[o.length - 1] ?? ue : "", P = t ? t() : /* @__PURE__ */ F("span", {
|
|
63205
|
-
className: R("truncate", T,
|
|
63207
|
+
className: R("truncate", T, qI.summaryTitle),
|
|
63206
63208
|
children: e?.title
|
|
63207
63209
|
});
|
|
63208
63210
|
return /* @__PURE__ */ I("div", {
|
|
@@ -63222,7 +63224,7 @@ var ZF = {
|
|
|
63222
63224
|
colors: j
|
|
63223
63225
|
}), /* @__PURE__ */ I("div", { children: [
|
|
63224
63226
|
/* @__PURE__ */ F("div", {
|
|
63225
|
-
className: R("mb-2", E,
|
|
63227
|
+
className: R("mb-2", E, qI.sectionHeading),
|
|
63226
63228
|
children: M
|
|
63227
63229
|
}),
|
|
63228
63230
|
/* @__PURE__ */ F("div", {
|
|
@@ -63236,7 +63238,7 @@ var ZF = {
|
|
|
63236
63238
|
"aria-label": pe
|
|
63237
63239
|
})
|
|
63238
63240
|
}),
|
|
63239
|
-
/* @__PURE__ */ F(
|
|
63241
|
+
/* @__PURE__ */ F(KI, {
|
|
63240
63242
|
items: a,
|
|
63241
63243
|
selectedPath: o,
|
|
63242
63244
|
onSelectedPathChange: s,
|
|
@@ -63256,12 +63258,12 @@ var ZF = {
|
|
|
63256
63258
|
rootLabel: ue,
|
|
63257
63259
|
styles: O
|
|
63258
63260
|
}),
|
|
63259
|
-
ye.calloutKind !==
|
|
63261
|
+
ye.calloutKind !== yI.None && ye.calloutKind !== yI.Info && /* @__PURE__ */ F("div", {
|
|
63260
63262
|
className: "mt-3",
|
|
63261
63263
|
children: /* @__PURE__ */ F(De, {
|
|
63262
63264
|
type: Oe.SectionMessage,
|
|
63263
|
-
variant:
|
|
63264
|
-
message:
|
|
63265
|
+
variant: YI(ye.calloutKind),
|
|
63266
|
+
message: ZI(ye.calloutKind, {
|
|
63265
63267
|
replaceWarning: te,
|
|
63266
63268
|
noAccessError: ne,
|
|
63267
63269
|
submitError: N,
|
|
@@ -63272,7 +63274,7 @@ var ZF = {
|
|
|
63272
63274
|
}),
|
|
63273
63275
|
/* @__PURE__ */ F("div", {
|
|
63274
63276
|
className: "mt-4",
|
|
63275
|
-
children: /* @__PURE__ */ F(
|
|
63277
|
+
children: /* @__PURE__ */ F(WI, {
|
|
63276
63278
|
rules: y,
|
|
63277
63279
|
onRulesChange: b,
|
|
63278
63280
|
sourceOptions: x,
|
|
@@ -63286,7 +63288,7 @@ var ZF = {
|
|
|
63286
63288
|
})
|
|
63287
63289
|
] })]
|
|
63288
63290
|
});
|
|
63289
|
-
},
|
|
63291
|
+
}, YI = (e) => e === yI.ReplaceWarning ? ke.Warning : ke.Error, XI = (e, t) => {
|
|
63290
63292
|
let [n, r, ...i] = e.split("{folder}");
|
|
63291
63293
|
return r === void 0 || i.length > 0 ? e : /* @__PURE__ */ I(tt, { children: [
|
|
63292
63294
|
n,
|
|
@@ -63296,11 +63298,11 @@ var ZF = {
|
|
|
63296
63298
|
}),
|
|
63297
63299
|
r
|
|
63298
63300
|
] });
|
|
63299
|
-
},
|
|
63301
|
+
}, ZI = (e, t) => e === yI.ReplaceWarning ? XI(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === yI.NoAccess ? XI(t.noAccessError, t.folderName) : t.submitError, QI = { footer: "_footer_dks1v_1" }, $I = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, labels: o = {}, colors: s }) => {
|
|
63300
63302
|
let c = os({ "--pf-border": s?.border }), { cancelLabel: l = "Cancel", publishDefaultLabel: u = "Publish", updateLabel: d = "Update version {version}", publishingInProgressLabel: f = "Publishing…" } = o, p = r ? f : t && e != null ? d.replace("{version}", e) : u;
|
|
63301
63303
|
return /* @__PURE__ */ I("div", {
|
|
63302
63304
|
style: c,
|
|
63303
|
-
className: R("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start",
|
|
63305
|
+
className: R("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", QI.footer),
|
|
63304
63306
|
children: [/* @__PURE__ */ F(ge, {
|
|
63305
63307
|
label: l,
|
|
63306
63308
|
disabled: r,
|
|
@@ -63312,20 +63314,20 @@ var ZF = {
|
|
|
63312
63314
|
onClick: a
|
|
63313
63315
|
})]
|
|
63314
63316
|
});
|
|
63315
|
-
},
|
|
63317
|
+
}, eL = (e) => e.reduce((e, t) => t.type === Cn.File ? e + 1 : e + eL(t.items), 0), tL = (e) => {
|
|
63316
63318
|
let t = /* @__PURE__ */ new Set(), n = (e) => {
|
|
63317
63319
|
for (let r of e) r.type === Cn.Folder && (t.add(r.id), n(r.items));
|
|
63318
63320
|
};
|
|
63319
63321
|
return n(e), t;
|
|
63320
|
-
},
|
|
63322
|
+
}, nL = (e, t) => {
|
|
63321
63323
|
if (t != null) for (let n of e) {
|
|
63322
63324
|
if (n.id === t) return n.name;
|
|
63323
63325
|
if (n.type === Cn.Folder) {
|
|
63324
|
-
let e =
|
|
63326
|
+
let e = nL(n.items, t);
|
|
63325
63327
|
if (e != null) return e;
|
|
63326
63328
|
}
|
|
63327
63329
|
}
|
|
63328
|
-
},
|
|
63330
|
+
}, rL = {
|
|
63329
63331
|
sectionHeading: "_sectionHeading_jnq93_1",
|
|
63330
63332
|
rowAlt: "_rowAlt_jnq93_5",
|
|
63331
63333
|
label: "_label_jnq93_9",
|
|
@@ -63333,19 +63335,19 @@ var ZF = {
|
|
|
63333
63335
|
valueTrue: "_valueTrue_jnq93_17",
|
|
63334
63336
|
valueFalse: "_valueFalse_jnq93_21",
|
|
63335
63337
|
valueText: "_valueText_jnq93_25"
|
|
63336
|
-
},
|
|
63338
|
+
}, iL = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ I(tt, { children: [/* @__PURE__ */ F(ft, {
|
|
63337
63339
|
size: k.MD,
|
|
63338
|
-
className: R(r,
|
|
63340
|
+
className: R(r, rL.checkIcon)
|
|
63339
63341
|
}), /* @__PURE__ */ F("span", {
|
|
63340
|
-
className: R(n,
|
|
63342
|
+
className: R(n, rL.valueTrue),
|
|
63341
63343
|
children: i
|
|
63342
63344
|
})] }) : e === !1 ? /* @__PURE__ */ F("span", {
|
|
63343
|
-
className: R(t,
|
|
63345
|
+
className: R(t, rL.valueFalse),
|
|
63344
63346
|
children: a
|
|
63345
63347
|
}) : /* @__PURE__ */ F("span", {
|
|
63346
|
-
className: R("min-w-0 break-words", t,
|
|
63348
|
+
className: R("min-w-0 break-words", t, rL.valueText),
|
|
63347
63349
|
children: e
|
|
63348
|
-
}),
|
|
63350
|
+
}), aL = ({ 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__ */ F("div", {
|
|
63349
63351
|
className: "flex flex-col",
|
|
63350
63352
|
style: os({
|
|
63351
63353
|
"--tv-section-heading": l?.sectionHeading,
|
|
@@ -63357,18 +63359,18 @@ var ZF = {
|
|
|
63357
63359
|
"--tv-value-text": l?.valueText
|
|
63358
63360
|
}),
|
|
63359
63361
|
children: t != null && t.length > 0 && /* @__PURE__ */ I("section", { children: [/* @__PURE__ */ F("p", {
|
|
63360
|
-
className: R("mb-3 mt-0", o,
|
|
63362
|
+
className: R("mb-3 mt-0", o, rL.sectionHeading),
|
|
63361
63363
|
children: e
|
|
63362
63364
|
}), /* @__PURE__ */ F("ul", {
|
|
63363
63365
|
className: "m-0 list-none p-0",
|
|
63364
63366
|
children: t.map((e, t) => /* @__PURE__ */ I("li", {
|
|
63365
|
-
className: R("flex items-center rounded px-3 py-2", t % 2 == 0 ?
|
|
63367
|
+
className: R("flex items-center rounded px-3 py-2", t % 2 == 0 ? rL.rowAlt : void 0),
|
|
63366
63368
|
children: [/* @__PURE__ */ F("span", {
|
|
63367
|
-
className: R(n,
|
|
63369
|
+
className: R(n, rL.label, "w-2/5 shrink-0"),
|
|
63368
63370
|
children: e.label
|
|
63369
63371
|
}), /* @__PURE__ */ F("div", {
|
|
63370
63372
|
className: "flex w-3/5 min-w-0 items-center gap-1",
|
|
63371
|
-
children: /* @__PURE__ */ F(
|
|
63373
|
+
children: /* @__PURE__ */ F(iL, {
|
|
63372
63374
|
value: e.value,
|
|
63373
63375
|
valueClassName: r,
|
|
63374
63376
|
valueTrueClassName: i,
|
|
@@ -63379,30 +63381,30 @@ var ZF = {
|
|
|
63379
63381
|
})]
|
|
63380
63382
|
}, e.label))
|
|
63381
63383
|
})] })
|
|
63382
|
-
}),
|
|
63384
|
+
}), oL = { sectionHeading: "_sectionHeading_148lj_1" }, sL = {
|
|
63383
63385
|
[ln.Python]: "Python",
|
|
63384
63386
|
[ln.Curl]: "cURL",
|
|
63385
63387
|
[ln.JavaScript]: "JavaScript"
|
|
63386
|
-
},
|
|
63388
|
+
}, cL = {
|
|
63387
63389
|
[ln.Python]: "python",
|
|
63388
63390
|
[ln.Curl]: "bash",
|
|
63389
63391
|
[ln.JavaScript]: "javascript"
|
|
63390
|
-
},
|
|
63392
|
+
}, lL = ({ 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" }) => {
|
|
63391
63393
|
let [s, c] = h(e[0]?.language ?? ln.Python);
|
|
63392
63394
|
l(() => {
|
|
63393
63395
|
c(e[0]?.language ?? ln.Python);
|
|
63394
63396
|
}, [e]);
|
|
63395
63397
|
let u = p(() => e.map((e) => ({
|
|
63396
63398
|
key: e.language,
|
|
63397
|
-
label:
|
|
63399
|
+
label: sL[e.language] ?? e.language,
|
|
63398
63400
|
onClick: () => c(e.language)
|
|
63399
63401
|
})), [e]), d = e.find((e) => e.language === s)?.code ?? "", f = e.length > 1;
|
|
63400
63402
|
return /* @__PURE__ */ I("section", { children: [t != null && /* @__PURE__ */ F("p", {
|
|
63401
|
-
className: R("mb-3 mt-0", o,
|
|
63403
|
+
className: R("mb-3 mt-0", o, oL.sectionHeading),
|
|
63402
63404
|
children: t
|
|
63403
63405
|
}), /* @__PURE__ */ F(vF, {
|
|
63404
|
-
language:
|
|
63405
|
-
title:
|
|
63406
|
+
language: cL[s] ?? s,
|
|
63407
|
+
title: sL[s] ?? s,
|
|
63406
63408
|
value: d,
|
|
63407
63409
|
copyLabel: n,
|
|
63408
63410
|
copiedLabel: r,
|
|
@@ -63417,7 +63419,7 @@ var ZF = {
|
|
|
63417
63419
|
selectedKey: s
|
|
63418
63420
|
}) : void 0
|
|
63419
63421
|
})] });
|
|
63420
|
-
},
|
|
63422
|
+
}, uL = ({ api: e, resourceSectionLabel: t = "Resource", endpointSectionLabel: n = "Endpoint", snippetSectionLabel: r = "Code snippet", modelIdLabel: i = "Model ID", endpointLabel: a = "Endpoint", requestExampleLabel: o = "Request example", responseSchemaLabel: s = "Response schema", copyAriaLabel: c = "Copy", copiedStatusLabel: l = "Copied!", labelClassName: u = "dial-small-semi-text", valueClassName: d = "dial-small-text", codeClassName: f = "dial-code-text", codeTitleClassName: m = "dial-tiny-semi-text", sectionClassName: g = "dial-caption-text" }) => {
|
|
63421
63423
|
let [_, v] = h(0), y = p(() => e.endpoints ?? [], [e.endpoints]), b = y.length > 0, x = y[_] ?? null, S = p(() => y.map((e, t) => ({
|
|
63422
63424
|
key: e.url,
|
|
63423
63425
|
label: e.label,
|
|
@@ -63431,7 +63433,7 @@ var ZF = {
|
|
|
63431
63433
|
return /* @__PURE__ */ I("div", {
|
|
63432
63434
|
className: "flex flex-col gap-6",
|
|
63433
63435
|
children: [
|
|
63434
|
-
T && /* @__PURE__ */ F(
|
|
63436
|
+
T && /* @__PURE__ */ F(aL, {
|
|
63435
63437
|
sectionLabel: t,
|
|
63436
63438
|
values: C,
|
|
63437
63439
|
labelClassName: u,
|
|
@@ -63449,7 +63451,7 @@ var ZF = {
|
|
|
63449
63451
|
}),
|
|
63450
63452
|
b && /* @__PURE__ */ I("section", { children: [
|
|
63451
63453
|
/* @__PURE__ */ F("p", {
|
|
63452
|
-
className: R("mb-3 mt-0", g,
|
|
63454
|
+
className: R("mb-3 mt-0", g, oL.sectionHeading),
|
|
63453
63455
|
children: n
|
|
63454
63456
|
}),
|
|
63455
63457
|
x != null && /* @__PURE__ */ F(vF, {
|
|
@@ -63470,7 +63472,7 @@ var ZF = {
|
|
|
63470
63472
|
}, _),
|
|
63471
63473
|
x?.snippets != null && x.snippets.length > 0 && /* @__PURE__ */ F("div", {
|
|
63472
63474
|
className: "mt-4",
|
|
63473
|
-
children: /* @__PURE__ */ F(
|
|
63475
|
+
children: /* @__PURE__ */ F(lL, {
|
|
63474
63476
|
snippets: x.snippets,
|
|
63475
63477
|
copyAriaLabel: c,
|
|
63476
63478
|
copiedStatusLabel: l,
|
|
@@ -63480,7 +63482,7 @@ var ZF = {
|
|
|
63480
63482
|
}, _)
|
|
63481
63483
|
})
|
|
63482
63484
|
] }),
|
|
63483
|
-
!b && ee && /* @__PURE__ */ F(
|
|
63485
|
+
!b && ee && /* @__PURE__ */ F(lL, {
|
|
63484
63486
|
snippets: e.snippets ?? [],
|
|
63485
63487
|
sectionLabel: r,
|
|
63486
63488
|
copyAriaLabel: c,
|
|
@@ -63490,7 +63492,7 @@ var ZF = {
|
|
|
63490
63492
|
sectionClassName: g
|
|
63491
63493
|
}),
|
|
63492
63494
|
D && /* @__PURE__ */ I("section", { children: [/* @__PURE__ */ F("p", {
|
|
63493
|
-
className: R("mb-3 mt-0", g,
|
|
63495
|
+
className: R("mb-3 mt-0", g, oL.sectionHeading),
|
|
63494
63496
|
children: o
|
|
63495
63497
|
}), /* @__PURE__ */ F(vF, {
|
|
63496
63498
|
language: "bash",
|
|
@@ -63501,7 +63503,7 @@ var ZF = {
|
|
|
63501
63503
|
hideDownload: !0
|
|
63502
63504
|
})] }),
|
|
63503
63505
|
O && /* @__PURE__ */ I("section", { children: [/* @__PURE__ */ F("p", {
|
|
63504
|
-
className: R("mb-3 mt-0", g,
|
|
63506
|
+
className: R("mb-3 mt-0", g, oL.sectionHeading),
|
|
63505
63507
|
children: s
|
|
63506
63508
|
}), /* @__PURE__ */ F(vF, {
|
|
63507
63509
|
language: "json",
|
|
@@ -63513,11 +63515,11 @@ var ZF = {
|
|
|
63513
63515
|
})] })
|
|
63514
63516
|
]
|
|
63515
63517
|
});
|
|
63516
|
-
},
|
|
63518
|
+
}, dL = {
|
|
63517
63519
|
message: "_message_13mok_1",
|
|
63518
63520
|
consequences: "_consequences_13mok_5",
|
|
63519
63521
|
footer: "_footer_13mok_9"
|
|
63520
|
-
},
|
|
63522
|
+
}, fL = ({ confirmLabel: e, cancelLabel: t, variant: n = pn.Info, isLoading: r = !1, isConfirmDisabled: i = !1, loadingStatusLabel: a, onConfirm: o, onCancel: s }) => {
|
|
63521
63523
|
let c = n === pn.Danger, l = (() => {
|
|
63522
63524
|
if (r) return /* @__PURE__ */ F(Ve, { size: k.SM });
|
|
63523
63525
|
if (c) return /* @__PURE__ */ F(Ht, {
|
|
@@ -63527,7 +63529,7 @@ var ZF = {
|
|
|
63527
63529
|
});
|
|
63528
63530
|
})(), u = c ? j : we;
|
|
63529
63531
|
return /* @__PURE__ */ I("div", {
|
|
63530
|
-
className: R("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start",
|
|
63532
|
+
className: R("flex items-center justify-end gap-2 px-6 py-4 rtl:flex-row-reverse rtl:justify-start", dL.footer),
|
|
63531
63533
|
children: [
|
|
63532
63534
|
/* @__PURE__ */ F(ge, {
|
|
63533
63535
|
label: t,
|
|
@@ -63548,78 +63550,78 @@ var ZF = {
|
|
|
63548
63550
|
})
|
|
63549
63551
|
]
|
|
63550
63552
|
});
|
|
63551
|
-
},
|
|
63553
|
+
}, pL = {
|
|
63552
63554
|
info: "_info_lklha_1",
|
|
63553
63555
|
danger: "_danger_lklha_5"
|
|
63554
|
-
},
|
|
63556
|
+
}, mL = ({ item: e, variant: t = pn.Info, iconSize: n = 40 }) => /* @__PURE__ */ F(ky, {
|
|
63555
63557
|
item: e,
|
|
63556
63558
|
iconSize: n,
|
|
63557
63559
|
hasVersionTag: !1,
|
|
63558
|
-
className: t === pn.Danger ?
|
|
63559
|
-
}),
|
|
63560
|
+
className: t === pn.Danger ? pL.danger : pL.info
|
|
63561
|
+
}), hL = ({ item: e, message: t, consequences: n, variant: r = pn.Info, messageClassName: i = "dial-small-text", children: a }) => /* @__PURE__ */ I("div", {
|
|
63560
63562
|
className: "flex flex-col gap-4 px-6 py-4",
|
|
63561
63563
|
children: [
|
|
63562
|
-
/* @__PURE__ */ F(
|
|
63564
|
+
/* @__PURE__ */ F(mL, {
|
|
63563
63565
|
item: e,
|
|
63564
63566
|
variant: r
|
|
63565
63567
|
}),
|
|
63566
63568
|
/* @__PURE__ */ F("p", {
|
|
63567
|
-
className: R(i, "break-words",
|
|
63569
|
+
className: R(i, "break-words", dL.message),
|
|
63568
63570
|
children: t
|
|
63569
63571
|
}),
|
|
63570
63572
|
n != null && n.length > 0 && /* @__PURE__ */ F("ul", {
|
|
63571
|
-
className: R("flex list-disc flex-col gap-2 ps-5", i,
|
|
63573
|
+
className: R("flex list-disc flex-col gap-2 ps-5", i, dL.consequences),
|
|
63572
63574
|
children: n.map((e) => /* @__PURE__ */ F("li", { children: e }, e))
|
|
63573
63575
|
}),
|
|
63574
63576
|
a
|
|
63575
63577
|
]
|
|
63576
|
-
}),
|
|
63578
|
+
}), gL = {
|
|
63577
63579
|
sunkenBox: "_sunkenBox_1lqi3_1",
|
|
63578
63580
|
raisedBox: "_raisedBox_1lqi3_5",
|
|
63579
63581
|
activeIcon: "_activeIcon_1lqi3_9"
|
|
63580
|
-
},
|
|
63582
|
+
}, _L = /* @__PURE__ */ function(e) {
|
|
63581
63583
|
return e.Sunken = "sunken", e.Raised = "raised", e;
|
|
63582
|
-
}({}),
|
|
63583
|
-
sunken:
|
|
63584
|
-
raised:
|
|
63585
|
-
},
|
|
63584
|
+
}({}), vL = {
|
|
63585
|
+
sunken: gL.sunkenBox,
|
|
63586
|
+
raised: gL.raisedBox
|
|
63587
|
+
}, yL = ({ icon: e, isActive: t = !1, surface: n = "sunken", statusLabel: r }) => /* @__PURE__ */ I("span", {
|
|
63586
63588
|
className: "relative inline-flex shrink-0",
|
|
63587
63589
|
children: [
|
|
63588
63590
|
/* @__PURE__ */ F("span", {
|
|
63589
|
-
className: R("flex size-8 items-center justify-center rounded-lg",
|
|
63591
|
+
className: R("flex size-8 items-center justify-center rounded-lg", vL[n]),
|
|
63590
63592
|
children: e
|
|
63591
63593
|
}),
|
|
63592
63594
|
t && /* @__PURE__ */ F(ft, {
|
|
63593
63595
|
size: k.MD,
|
|
63594
63596
|
"aria-hidden": !0,
|
|
63595
|
-
className: R("absolute -end-2 -top-2",
|
|
63597
|
+
className: R("absolute -end-2 -top-2", gL.activeIcon)
|
|
63596
63598
|
}),
|
|
63597
63599
|
r != null && /* @__PURE__ */ F("span", {
|
|
63598
63600
|
className: "sr-only",
|
|
63599
63601
|
children: r
|
|
63600
63602
|
})
|
|
63601
63603
|
]
|
|
63602
|
-
}),
|
|
63604
|
+
}), bL = {
|
|
63603
63605
|
card: "_card_tqnz7_1",
|
|
63604
63606
|
icon: "_icon_tqnz7_6",
|
|
63605
63607
|
title: "_title_tqnz7_10",
|
|
63606
63608
|
description: "_description_tqnz7_14"
|
|
63607
|
-
},
|
|
63609
|
+
}, xL = ({ icon: e, title: t, description: n, action: r, titleClassName: i = "dial-small-semi-text", descriptionClassName: a = "dial-small-text" }) => /* @__PURE__ */ I("div", {
|
|
63608
63610
|
role: "status",
|
|
63609
63611
|
"aria-live": "polite",
|
|
63610
|
-
className: R("flex items-center gap-3 rounded-xl p-3",
|
|
63612
|
+
className: R("flex items-center gap-3 rounded-xl p-3", bL.card),
|
|
63611
63613
|
children: [/* @__PURE__ */ F("span", {
|
|
63612
|
-
className: R("shrink-0",
|
|
63614
|
+
className: R("shrink-0", bL.icon, n != null && "mt-0.5"),
|
|
63613
63615
|
children: e
|
|
63614
63616
|
}), /* @__PURE__ */ I("div", {
|
|
63615
63617
|
className: "flex min-w-0 flex-1 items-center justify-between gap-2",
|
|
63616
63618
|
children: [/* @__PURE__ */ I("div", {
|
|
63617
63619
|
className: "flex min-w-0 flex-col gap-1",
|
|
63618
63620
|
children: [/* @__PURE__ */ F("span", {
|
|
63619
|
-
className: R(i,
|
|
63621
|
+
className: R(i, bL.title),
|
|
63620
63622
|
children: t
|
|
63621
63623
|
}), n != null && /* @__PURE__ */ F("span", {
|
|
63622
|
-
className: R(a,
|
|
63624
|
+
className: R(a, bL.description),
|
|
63623
63625
|
children: n
|
|
63624
63626
|
})]
|
|
63625
63627
|
}), r != null && /* @__PURE__ */ F("div", {
|
|
@@ -63627,53 +63629,53 @@ var ZF = {
|
|
|
63627
63629
|
children: r
|
|
63628
63630
|
})]
|
|
63629
63631
|
})]
|
|
63630
|
-
}),
|
|
63632
|
+
}), SL = (e) => e === hn.ApiKey ? "You are currently using organization API key to access this toolset." : "You are currently using organization credentials to access this toolset.", CL = (e) => e === hn.ApiKey ? "Configure your personal API key to have access to your data." : "Login using personal account to have access to your data.", wL = (e) => e === hn.ApiKey ? "Signed in with organization API key." : "Signed in with organization credentials.", TL = (e) => e === hn.ApiKey ? "Signed in with personal API key." : "Signed in with personal credentials.", EL = 20, DL = ({ state: e, authenticationType: t, texts: n }) => {
|
|
63631
63633
|
let r = /* @__PURE__ */ F(ot, {
|
|
63632
|
-
size:
|
|
63634
|
+
size: EL,
|
|
63633
63635
|
"aria-hidden": !0,
|
|
63634
63636
|
stroke: A
|
|
63635
63637
|
});
|
|
63636
63638
|
if (e === bn.PersonalCredentialsActive) {
|
|
63637
|
-
let e = (n?.personalCredentialsActiveBannerTitle ??
|
|
63638
|
-
return /* @__PURE__ */ F(
|
|
63639
|
-
icon: /* @__PURE__ */ F(
|
|
63639
|
+
let e = (n?.personalCredentialsActiveBannerTitle ?? TL)(t);
|
|
63640
|
+
return /* @__PURE__ */ F(xL, {
|
|
63641
|
+
icon: /* @__PURE__ */ F(yL, {
|
|
63640
63642
|
icon: /* @__PURE__ */ F(Ut, {
|
|
63641
63643
|
size: k.SM,
|
|
63642
63644
|
"aria-hidden": !0,
|
|
63643
63645
|
stroke: A
|
|
63644
63646
|
}),
|
|
63645
63647
|
isActive: !0,
|
|
63646
|
-
surface:
|
|
63648
|
+
surface: _L.Raised
|
|
63647
63649
|
}),
|
|
63648
63650
|
title: e
|
|
63649
63651
|
});
|
|
63650
63652
|
}
|
|
63651
63653
|
if (e === bn.OrgCredentialsActive) {
|
|
63652
|
-
let e = (n?.orgCredentialsActiveBannerTitle ??
|
|
63653
|
-
return /* @__PURE__ */ F(
|
|
63654
|
-
icon: /* @__PURE__ */ F(
|
|
63654
|
+
let e = (n?.orgCredentialsActiveBannerTitle ?? wL)(t);
|
|
63655
|
+
return /* @__PURE__ */ F(xL, {
|
|
63656
|
+
icon: /* @__PURE__ */ F(yL, {
|
|
63655
63657
|
icon: /* @__PURE__ */ F(ot, {
|
|
63656
63658
|
size: k.SM,
|
|
63657
63659
|
"aria-hidden": !0,
|
|
63658
63660
|
stroke: A
|
|
63659
63661
|
}),
|
|
63660
63662
|
isActive: !0,
|
|
63661
|
-
surface:
|
|
63663
|
+
surface: _L.Raised
|
|
63662
63664
|
}),
|
|
63663
63665
|
title: e
|
|
63664
63666
|
});
|
|
63665
63667
|
}
|
|
63666
|
-
return /* @__PURE__ */ F(
|
|
63668
|
+
return /* @__PURE__ */ F(xL, {
|
|
63667
63669
|
icon: r,
|
|
63668
|
-
title: (n?.orgFallbackBannerTitle ??
|
|
63669
|
-
description: (n?.orgFallbackBannerDescription ??
|
|
63670
|
+
title: (n?.orgFallbackBannerTitle ?? SL)(t),
|
|
63671
|
+
description: (n?.orgFallbackBannerDescription ?? CL)(t)
|
|
63670
63672
|
});
|
|
63671
|
-
},
|
|
63673
|
+
}, OL = {
|
|
63672
63674
|
surface: "_surface_1q3s8_1",
|
|
63673
63675
|
description: "_description_1q3s8_5",
|
|
63674
63676
|
rowDescription: "_rowDescription_1q3s8_9",
|
|
63675
63677
|
errorText: "_errorText_1q3s8_13"
|
|
63676
|
-
},
|
|
63678
|
+
}, kL = ({ item: e, level: t, label: n, description: r, icon: i, status: a, isActive: o, authenticationType: c, apiKeyAddedWhen: l, onLogin: u, onRequestLogout: d, onRequestDeleteApiKey: f, texts: p, labelClassName: m, descriptionClassName: g, errorClassName: v, keyCardTitleClassName: y, keyCardDescriptionClassName: b, deleteActionClassName: x }) => {
|
|
63677
63679
|
let [S, C] = h(""), [w, T] = h(!1), [E, ee] = h(!1), D = a === gn.SignedIn, O = s(() => {
|
|
63678
63680
|
u?.(e, { level: t });
|
|
63679
63681
|
}, [
|
|
@@ -63708,7 +63710,7 @@ var ZF = {
|
|
|
63708
63710
|
}, [t, f]), re = p?.loginActionLabel ?? "Log in", ie = p?.logoutActionLabel ?? "Log out", ae = p?.addApiKeyActionLabel ?? "Add", oe = p?.deleteActionLabel ?? "Delete", se = p?.credentialsSignedInLabel ?? "Signed in", ce = p?.credentialsSignedOutLabel ?? "Signed out", le = p?.addingApiKeyStatusLabel ?? "Adding", ue = p?.apiKeyConfiguredMessage ?? "Key has been configured", de = l == null ? void 0 : (p?.apiKeyAddedLabel ?? ((e) => `Added ${e}`))(l);
|
|
63709
63711
|
return /* @__PURE__ */ I("div", {
|
|
63710
63712
|
className: "flex items-start gap-3 rounded-xl p-3",
|
|
63711
|
-
children: [/* @__PURE__ */ F(
|
|
63713
|
+
children: [/* @__PURE__ */ F(yL, {
|
|
63712
63714
|
icon: i,
|
|
63713
63715
|
isActive: o,
|
|
63714
63716
|
statusLabel: o ? se : ce
|
|
@@ -63723,7 +63725,7 @@ var ZF = {
|
|
|
63723
63725
|
className: m,
|
|
63724
63726
|
children: n
|
|
63725
63727
|
}), /* @__PURE__ */ F("span", {
|
|
63726
|
-
className: R(g,
|
|
63728
|
+
className: R(g, OL.rowDescription),
|
|
63727
63729
|
children: r
|
|
63728
63730
|
})]
|
|
63729
63731
|
}), c === hn.OAuth && (D ? /* @__PURE__ */ F(j, {
|
|
@@ -63763,13 +63765,13 @@ var ZF = {
|
|
|
63763
63765
|
disabled: E
|
|
63764
63766
|
})]
|
|
63765
63767
|
}), w && /* @__PURE__ */ F("span", {
|
|
63766
|
-
className: R(v,
|
|
63768
|
+
className: R(v, OL.errorText),
|
|
63767
63769
|
children: p?.apiKeyRequiredErrorMessage ?? "API key is required."
|
|
63768
63770
|
})]
|
|
63769
63771
|
}),
|
|
63770
63772
|
c === hn.ApiKey && D && /* @__PURE__ */ F("div", {
|
|
63771
63773
|
className: "animate-fadeIn pt-1",
|
|
63772
|
-
children: /* @__PURE__ */ F(
|
|
63774
|
+
children: /* @__PURE__ */ F(xL, {
|
|
63773
63775
|
icon: /* @__PURE__ */ F(kt, {
|
|
63774
63776
|
size: k.SM,
|
|
63775
63777
|
"aria-hidden": !0,
|
|
@@ -63789,16 +63791,16 @@ var ZF = {
|
|
|
63789
63791
|
]
|
|
63790
63792
|
})]
|
|
63791
63793
|
});
|
|
63792
|
-
},
|
|
63794
|
+
}, AL = (e) => e === hn.ApiKey ? "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default for toolset access." : "Select which account to use with this toolset — personal or organization. If both are configured, personal credentials will be used by default.", jL = ({ item: e, onLogin: t, onRequestLogout: n, onRequestDeleteApiKey: r, texts: i, detailsStyles: a, deleteActionClassName: o = "text-error" }) => {
|
|
63793
63795
|
let { credentialsDescriptionClassName: s = "dial-body-paragraph-text", credentialsRowLabelClassName: c = "dial-small-semi-text", credentialsRowDescriptionClassName: l = "dial-small-text", credentialsErrorClassName: u = "dial-caption-text", credentialsKeyCardTitleClassName: d = "dial-tiny-semi-text", credentialsKeyCardDescriptionClassName: f = "dial-tiny-text" } = a?.typography ?? {}, p = e.credentials;
|
|
63794
63796
|
if (p == null) return null;
|
|
63795
|
-
let m = (i?.credentialsManagementDescription ??
|
|
63797
|
+
let m = (i?.credentialsManagementDescription ?? AL)(p.authenticationType), h = p.userStatus === gn.SignedIn, g = !h && p.globalStatus === gn.SignedIn;
|
|
63796
63798
|
return /* @__PURE__ */ I("div", {
|
|
63797
63799
|
className: "flex flex-col",
|
|
63798
63800
|
children: [/* @__PURE__ */ F("div", {
|
|
63799
63801
|
className: "px-6 py-4",
|
|
63800
63802
|
children: /* @__PURE__ */ F("div", {
|
|
63801
|
-
className: R("rounded-xl p-3",
|
|
63803
|
+
className: R("rounded-xl p-3", OL.surface),
|
|
63802
63804
|
children: /* @__PURE__ */ F(Dy, {
|
|
63803
63805
|
item: e,
|
|
63804
63806
|
iconSize: 40,
|
|
@@ -63808,11 +63810,11 @@ var ZF = {
|
|
|
63808
63810
|
}), /* @__PURE__ */ I("div", {
|
|
63809
63811
|
className: "flex flex-col gap-5 px-6 py-4",
|
|
63810
63812
|
children: [/* @__PURE__ */ F("span", {
|
|
63811
|
-
className: R(s,
|
|
63813
|
+
className: R(s, OL.description),
|
|
63812
63814
|
children: m
|
|
63813
63815
|
}), /* @__PURE__ */ I("div", {
|
|
63814
63816
|
className: "flex flex-col",
|
|
63815
|
-
children: [/* @__PURE__ */ F(
|
|
63817
|
+
children: [/* @__PURE__ */ F(kL, {
|
|
63816
63818
|
item: e,
|
|
63817
63819
|
level: _n.User,
|
|
63818
63820
|
label: i?.personalCredentialsLabel ?? "Personal credentials",
|
|
@@ -63836,7 +63838,7 @@ var ZF = {
|
|
|
63836
63838
|
keyCardTitleClassName: d,
|
|
63837
63839
|
keyCardDescriptionClassName: f,
|
|
63838
63840
|
deleteActionClassName: o
|
|
63839
|
-
}), /* @__PURE__ */ F(
|
|
63841
|
+
}), /* @__PURE__ */ F(kL, {
|
|
63840
63842
|
item: e,
|
|
63841
63843
|
level: _n.Global,
|
|
63842
63844
|
label: i?.organizationCredentialsLabel ?? "Organization credentials",
|
|
@@ -63864,16 +63866,16 @@ var ZF = {
|
|
|
63864
63866
|
})]
|
|
63865
63867
|
})]
|
|
63866
63868
|
});
|
|
63867
|
-
},
|
|
63869
|
+
}, ML = {
|
|
63868
63870
|
skeletonColor: "var(--cat-details-skeleton, var(--bg-control-disable-primary, #dce0e8))",
|
|
63869
63871
|
backdrop: "_backdrop_16ka5_2",
|
|
63870
63872
|
panel: "_panel_16ka5_6",
|
|
63871
63873
|
divider: "_divider_16ka5_11",
|
|
63872
63874
|
content: "_content_16ka5_15",
|
|
63873
63875
|
publishTitle: "_publishTitle_16ka5_20"
|
|
63874
|
-
},
|
|
63876
|
+
}, NL = /* @__PURE__ */ function(e) {
|
|
63875
63877
|
return e.Idle = "idle", e.Loading = "loading", e.Resolved = "resolved", e.Unknown = "unknown", e;
|
|
63876
|
-
}({}),
|
|
63878
|
+
}({}), PL = { divider: "_divider_nhloi_1" }, FL = 16, IL = ({ item: e, level: t, status: n, apiKeyAddedWhen: r, onLogin: i, onLogout: a, onClose: o, texts: c, deleteActionClassName: l = "text-error" }) => {
|
|
63877
63879
|
let [u, d] = h(""), [f, p] = h(!1), [m, g] = h(!1), [_, v] = h(!1), y = n === gn.SignedIn, b = s((e) => {
|
|
63878
63880
|
d(e ?? ""), p(!1);
|
|
63879
63881
|
}, []), x = s(async () => {
|
|
@@ -63919,7 +63921,7 @@ var ZF = {
|
|
|
63919
63921
|
children: C
|
|
63920
63922
|
})
|
|
63921
63923
|
}),
|
|
63922
|
-
/* @__PURE__ */ F("div", { className: R("mx-4 h-px",
|
|
63924
|
+
/* @__PURE__ */ F("div", { className: R("mx-4 h-px", PL.divider) }),
|
|
63923
63925
|
!y && /* @__PURE__ */ I("div", {
|
|
63924
63926
|
className: "flex animate-fadeIn flex-col gap-1 px-4 py-3.5",
|
|
63925
63927
|
children: [/* @__PURE__ */ I("div", {
|
|
@@ -63938,7 +63940,7 @@ var ZF = {
|
|
|
63938
63940
|
label: m ? void 0 : w,
|
|
63939
63941
|
"aria-label": m ? E : void 0,
|
|
63940
63942
|
iconBefore: m ? /* @__PURE__ */ F(Ve, {
|
|
63941
|
-
size:
|
|
63943
|
+
size: FL,
|
|
63942
63944
|
ariaLabel: E
|
|
63943
63945
|
}) : void 0,
|
|
63944
63946
|
onClick: x,
|
|
@@ -63951,7 +63953,7 @@ var ZF = {
|
|
|
63951
63953
|
}),
|
|
63952
63954
|
y && /* @__PURE__ */ F("div", {
|
|
63953
63955
|
className: "animate-fadeIn px-4 py-3.5",
|
|
63954
|
-
children: /* @__PURE__ */ F(
|
|
63956
|
+
children: /* @__PURE__ */ F(xL, {
|
|
63955
63957
|
icon: /* @__PURE__ */ F(kt, {
|
|
63956
63958
|
size: 20,
|
|
63957
63959
|
"aria-hidden": !0,
|
|
@@ -63963,7 +63965,7 @@ var ZF = {
|
|
|
63963
63965
|
label: _ ? void 0 : T,
|
|
63964
63966
|
"aria-label": _ ? ee : void 0,
|
|
63965
63967
|
iconBefore: _ ? /* @__PURE__ */ F(Ve, {
|
|
63966
|
-
size:
|
|
63968
|
+
size: FL,
|
|
63967
63969
|
ariaLabel: ee
|
|
63968
63970
|
}) : void 0,
|
|
63969
63971
|
className: l,
|
|
@@ -63974,7 +63976,7 @@ var ZF = {
|
|
|
63974
63976
|
})
|
|
63975
63977
|
]
|
|
63976
63978
|
});
|
|
63977
|
-
},
|
|
63979
|
+
}, LL = { name: "_name_gfs1p_1" }, RL = (e) => e.isMyApp === !0, zL = ({ item: e, onShare: t, shareOverlay: n, isShareVisible: r, label: i = "Share" }) => {
|
|
63978
63980
|
let [a, o] = h(!1), c = s(() => {
|
|
63979
63981
|
if (n) {
|
|
63980
63982
|
o((e) => !e);
|
|
@@ -63986,7 +63988,7 @@ var ZF = {
|
|
|
63986
63988
|
t,
|
|
63987
63989
|
n
|
|
63988
63990
|
]);
|
|
63989
|
-
if (!
|
|
63991
|
+
if (!RL(e) || r && !r(e)) return null;
|
|
63990
63992
|
let l = /* @__PURE__ */ F(we, {
|
|
63991
63993
|
label: i,
|
|
63992
63994
|
iconBefore: /* @__PURE__ */ F(Rt, {
|
|
@@ -64011,14 +64013,14 @@ var ZF = {
|
|
|
64011
64013
|
renderOverlay: () => n(e, () => o(!1)),
|
|
64012
64014
|
children: l
|
|
64013
64015
|
}) : l;
|
|
64014
|
-
},
|
|
64016
|
+
}, BL = (e) => e === hn.ApiKey ? "Manage API keys" : "Manage credentials", VL = {
|
|
64015
64017
|
[dn.LimitReached]: "bg-error text-error",
|
|
64016
64018
|
[dn.RunningLow]: "bg-warning text-warning"
|
|
64017
|
-
},
|
|
64018
|
-
className: R("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text",
|
|
64019
|
+
}, HL = ({ status: e, label: t }) => /* @__PURE__ */ F("div", {
|
|
64020
|
+
className: R("flex h-[24px] items-center justify-center gap-1 whitespace-nowrap rounded-2xl px-2", "dial-caption-lead-semi-text", VL[e]),
|
|
64019
64021
|
children: t
|
|
64020
|
-
}),
|
|
64021
|
-
let { nameClassName: ie = "dial-body-semi-text", folderLabelClassName: ae = "dial-tiny-text", folderLeafClassName: oe = "dial-tiny-semi-text" } = ee?.typography ?? {}, se = e.details?.limits?.status, ce = se == null ? void 0 : /* @__PURE__ */ F(
|
|
64022
|
+
}), UL = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: i, isShareVisible: a, isSharePrimary: o, onEdit: c, onDownload: u, isDownloadVisible: d, isDownloadPrimary: f, onDelete: g, onUnshare: _, isUnshareVisible: v, onRevokeShare: y, onFetchRecipientsCount: b, isRevokeShareVisible: x, onLogin: S, onLogout: C, onOpenCredentialsManagement: w, onRequestLogout: T, texts: E, detailsStyles: ee, isPublishVisible: D, isPublishPrimary: O, onOpenPublish: j, isUnpublishVisible: M, hasPublishedFolders: te = !1, onRequestPublishHistory: ne, onOpenUnpublish: N, isReadonly: re = !1 }) => {
|
|
64023
|
+
let { nameClassName: ie = "dial-body-semi-text", folderLabelClassName: ae = "dial-tiny-text", folderLeafClassName: oe = "dial-tiny-semi-text" } = ee?.typography ?? {}, se = e.details?.limits?.status, ce = se == null ? void 0 : /* @__PURE__ */ F(HL, {
|
|
64022
64024
|
status: se,
|
|
64023
64025
|
label: se === dn.LimitReached ? E?.limitReachedLabel ?? "Limit reached" : E?.limitRunningLowLabel ?? "Running low"
|
|
64024
64026
|
}), ue = s(() => {
|
|
@@ -64069,21 +64071,21 @@ var ZF = {
|
|
|
64069
64071
|
g?.(e);
|
|
64070
64072
|
}, [e, g]), Ee = s(() => {
|
|
64071
64073
|
y?.(e);
|
|
64072
|
-
}, [e, y]), [De, Oe] = h(
|
|
64074
|
+
}, [e, y]), [De, Oe] = h(NL.Idle), [ke, Ae] = h(void 0), je = m(null);
|
|
64073
64075
|
l(() => {
|
|
64074
|
-
je.current = null, Oe(
|
|
64076
|
+
je.current = null, Oe(NL.Idle), Ae(void 0);
|
|
64075
64077
|
}, [e.id]);
|
|
64076
64078
|
let Ne = s(() => {
|
|
64077
64079
|
if (!b || je.current === e.id || !y || e.isMyApp !== !0 || x?.(e) === !1) return;
|
|
64078
64080
|
let t = e.id;
|
|
64079
|
-
je.current = t, Oe(
|
|
64081
|
+
je.current = t, Oe(NL.Loading), (async () => {
|
|
64080
64082
|
try {
|
|
64081
64083
|
let n = await b(e);
|
|
64082
64084
|
if (je.current !== t) return;
|
|
64083
|
-
Ae(n), Oe(n == null ?
|
|
64085
|
+
Ae(n), Oe(n == null ? NL.Unknown : NL.Resolved);
|
|
64084
64086
|
} catch {
|
|
64085
64087
|
if (je.current !== t) return;
|
|
64086
|
-
Ae(void 0), Oe(
|
|
64088
|
+
Ae(void 0), Oe(NL.Unknown);
|
|
64087
64089
|
}
|
|
64088
64090
|
})();
|
|
64089
64091
|
}, [
|
|
@@ -64097,7 +64099,7 @@ var ZF = {
|
|
|
64097
64099
|
Ne(), ne?.();
|
|
64098
64100
|
}, [Ne, ne]), Ie = s(() => {
|
|
64099
64101
|
ne?.();
|
|
64100
|
-
}, [ne]), Le = E?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === Da.Model || e.type === Da.Agent || e.type === Da.Prompt)), Re = !re && !!N && te && (M?.(e) ?? !0), ze = !re && !Re && (D?.(e) ?? (e.type === Da.Model || e.type === Da.Toolset || e.type === Da.Agent)), Be = !re && !!c && !!e.isEditable, He = !re && e.isMyApp === !0 && (a?.(e) ?? !0), Ue = o?.(e) ?? !0, We = O?.(e) ?? !1, Ge = e.credentials?.authenticationType ?? hn.None, Ke = e.credentials != null && Ge !== hn.None ? Mn(e.credentials) : void 0, qe = !re && Ke != null && (!!S || !!C), Je = e.type === Da.Toolset && qe, Ye = !!u && (d?.(e) ?? !0), Xe = Ye && !Je && (f?.(e) ?? e.type === Da.Skill), Ze = Ye && !Xe, Qe = !re && e.isMyApp, $e = !re && !!_ && e.isMyApp !== !0 && e.sharedWithMe === !0 && (v?.(e) ?? !0), et = !re && !!y && e.isMyApp === !0 && (!b || De ===
|
|
64102
|
+
}, [ne]), Le = E?.hasPrimaryAction !== !1 && (n?.(e) ?? (e.type === Da.Model || e.type === Da.Agent || e.type === Da.Prompt)), Re = !re && !!N && te && (M?.(e) ?? !0), ze = !re && !Re && (D?.(e) ?? (e.type === Da.Model || e.type === Da.Toolset || e.type === Da.Agent)), Be = !re && !!c && !!e.isEditable, He = !re && e.isMyApp === !0 && (a?.(e) ?? !0), Ue = o?.(e) ?? !0, We = O?.(e) ?? !1, Ge = e.credentials?.authenticationType ?? hn.None, Ke = e.credentials != null && Ge !== hn.None ? Mn(e.credentials) : void 0, qe = !re && Ke != null && (!!S || !!C), Je = e.type === Da.Toolset && qe, Ye = !!u && (d?.(e) ?? !0), Xe = Ye && !Je && (f?.(e) ?? e.type === Da.Skill), Ze = Ye && !Xe, Qe = !re && e.isMyApp, $e = !re && !!_ && e.isMyApp !== !0 && e.sharedWithMe === !0 && (v?.(e) ?? !0), et = !re && !!y && e.isMyApp === !0 && (!b || De === NL.Unknown || De === NL.Resolved && (ke ?? 0) > 0) && (x?.(e) ?? !0), nt = p(() => {
|
|
64101
64103
|
let e = [];
|
|
64102
64104
|
if (!Ue && He && e.push({
|
|
64103
64105
|
key: "share",
|
|
@@ -64225,7 +64227,7 @@ var ZF = {
|
|
|
64225
64227
|
S,
|
|
64226
64228
|
w,
|
|
64227
64229
|
T
|
|
64228
|
-
]), dt = Ke === vn.ManageCredentials ? (E?.manageCredentialsActionLabel ??
|
|
64230
|
+
]), dt = Ke === vn.ManageCredentials ? (E?.manageCredentialsActionLabel ?? BL)(Ge) : Ge === hn.ApiKey ? Ke === vn.LogOut ? E?.changeApiKeyActionLabel ?? "Change API key" : E?.apiKeyActionLabel ?? "API key" : Ke === vn.LogOut ? E?.logoutActionLabel ?? "Log out" : E?.loginActionLabel ?? "Log in", ft = Ke === vn.ManageCredentials || Ge === hn.ApiKey ? /* @__PURE__ */ F(kt, {
|
|
64229
64231
|
size: k.MD,
|
|
64230
64232
|
stroke: A
|
|
64231
64233
|
}) : Ke === vn.LogOut ? /* @__PURE__ */ F(Nt, {
|
|
@@ -64257,7 +64259,7 @@ var ZF = {
|
|
|
64257
64259
|
onOpenChange: it,
|
|
64258
64260
|
trigger: [],
|
|
64259
64261
|
outsideClosable: !0,
|
|
64260
|
-
renderOverlay: () => /* @__PURE__ */ F(
|
|
64262
|
+
renderOverlay: () => /* @__PURE__ */ F(IL, {
|
|
64261
64263
|
item: e,
|
|
64262
64264
|
level: _n.User,
|
|
64263
64265
|
status: e.credentials?.userStatus,
|
|
@@ -64275,7 +64277,7 @@ var ZF = {
|
|
|
64275
64277
|
children: [/* @__PURE__ */ F(Dy, {
|
|
64276
64278
|
item: e,
|
|
64277
64279
|
iconSize: 52,
|
|
64278
|
-
nameClassName: R(ie,
|
|
64280
|
+
nameClassName: R(ie, LL.name),
|
|
64279
64281
|
featuredLabel: E?.featuredLabel ?? "Featured",
|
|
64280
64282
|
statusBadge: ce,
|
|
64281
64283
|
footer: e.folder.length > 0 ? /* @__PURE__ */ F(he, {
|
|
@@ -64312,7 +64314,7 @@ var ZF = {
|
|
|
64312
64314
|
className: "sr-only",
|
|
64313
64315
|
children: E?.downloadingStatusLabel ?? "Downloading"
|
|
64314
64316
|
})] }),
|
|
64315
|
-
Ue && He && /* @__PURE__ */ F(
|
|
64317
|
+
Ue && He && /* @__PURE__ */ F(zL, {
|
|
64316
64318
|
item: e,
|
|
64317
64319
|
onShare: r,
|
|
64318
64320
|
shareOverlay: i,
|
|
@@ -64374,7 +64376,7 @@ var ZF = {
|
|
|
64374
64376
|
]
|
|
64375
64377
|
})]
|
|
64376
64378
|
});
|
|
64377
|
-
},
|
|
64379
|
+
}, WL = ({ topics: e, content: t, detailsStyles: n }) => {
|
|
64378
64380
|
let r = n?.typography?.contentHeadingClassName ?? "dial-small-semi-text", i = n?.typography?.contentClassName ?? "dial-small-text";
|
|
64379
64381
|
return /* @__PURE__ */ I("div", {
|
|
64380
64382
|
className: "flex flex-col gap-5",
|
|
@@ -64393,21 +64395,21 @@ var ZF = {
|
|
|
64393
64395
|
}
|
|
64394
64396
|
}), e && e.length > 0 && /* @__PURE__ */ F("div", {
|
|
64395
64397
|
className: "flex flex-wrap gap-2",
|
|
64396
|
-
children: e.map((e) => /* @__PURE__ */ F(
|
|
64398
|
+
children: e.map((e) => /* @__PURE__ */ F(fI, { label: e }, e))
|
|
64397
64399
|
})]
|
|
64398
64400
|
});
|
|
64399
|
-
},
|
|
64401
|
+
}, GL = {
|
|
64400
64402
|
divider: "_divider_1gzl9_1",
|
|
64401
64403
|
fileCount: "_fileCount_1gzl9_5",
|
|
64402
64404
|
body: "_body_1gzl9_9"
|
|
64403
|
-
},
|
|
64405
|
+
}, KL = (e, t, n = void 0) => e.flatMap((e) => {
|
|
64404
64406
|
let r = {
|
|
64405
64407
|
node: e,
|
|
64406
64408
|
parentId: n
|
|
64407
64409
|
};
|
|
64408
|
-
return e.type === Cn.File || !t.has(e.id) ? [r] : [r, ...
|
|
64409
|
-
}),
|
|
64410
|
-
let c = p(() =>
|
|
64410
|
+
return e.type === Cn.File || !t.has(e.id) ? [r] : [r, ...KL(e.items, t, e.id)];
|
|
64411
|
+
}), qL = ({ nodes: e, selectedFileId: t, expandedFolderIds: n, onToggleFolder: r, onSelectFile: i, onClose: a, ariaLabel: o = "Select file", rowNameClassName: s = "dial-small-text" }) => {
|
|
64412
|
+
let c = p(() => KL(e, n), [e, n]), u = m({}), [d, f] = h(() => t ?? c[0]?.node.id);
|
|
64411
64413
|
l(() => {
|
|
64412
64414
|
d != null && u.current[d]?.focus();
|
|
64413
64415
|
}, []);
|
|
@@ -64506,8 +64508,8 @@ var ZF = {
|
|
|
64506
64508
|
onKeyDown: _,
|
|
64507
64509
|
children: e.map((e) => y(e))
|
|
64508
64510
|
});
|
|
64509
|
-
},
|
|
64510
|
-
let _ = g?.typography?.contentClassName ?? "dial-small-text", v = g?.typography?.contentHeadingClassName ?? "dial-small-semi-text", y = g?.typography?.contentFileCountClassName ?? "dial-tiny-text", b = t != null && t !== "", x = n ?? [], S =
|
|
64511
|
+
}, JL = () => void 0, YL = ({ content: e, description: t, files: n, selectedFileId: r, onSelectFile: i, isFileLoading: a = !1, expandedFolderIds: o = /* @__PURE__ */ new Set(), onToggleFolder: s = JL, isFileSelectorOpen: c = !1, onFileSelectorOpenChange: l = JL, 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, detailsStyles: g }) => {
|
|
64512
|
+
let _ = g?.typography?.contentClassName ?? "dial-small-text", v = g?.typography?.contentHeadingClassName ?? "dial-small-semi-text", y = g?.typography?.contentFileCountClassName ?? "dial-tiny-text", b = t != null && t !== "", x = n ?? [], S = eL(x) > 1, C = nL(x, r) ?? "", w = (e) => {
|
|
64511
64513
|
i?.(e), l(!1);
|
|
64512
64514
|
}, T = a ? {
|
|
64513
64515
|
type: wn.Text,
|
|
@@ -64528,7 +64530,7 @@ var ZF = {
|
|
|
64528
64530
|
matchReferenceWidth: !1,
|
|
64529
64531
|
listClassName: "w-[280px]",
|
|
64530
64532
|
placement: "bottom-start",
|
|
64531
|
-
renderOverlay: () => /* @__PURE__ */ F(
|
|
64533
|
+
renderOverlay: () => /* @__PURE__ */ F(qL, {
|
|
64532
64534
|
nodes: x,
|
|
64533
64535
|
selectedFileId: r,
|
|
64534
64536
|
expandedFolderIds: o,
|
|
@@ -64545,16 +64547,16 @@ var ZF = {
|
|
|
64545
64547
|
onClick: () => l(!c)
|
|
64546
64548
|
})
|
|
64547
64549
|
}), /* @__PURE__ */ F("span", {
|
|
64548
|
-
className: R("shrink-0", y,
|
|
64549
|
-
children: d(
|
|
64550
|
+
className: R("shrink-0", y, GL.fileCount),
|
|
64551
|
+
children: d(eL(x))
|
|
64550
64552
|
})]
|
|
64551
64553
|
}),
|
|
64552
64554
|
b && /* @__PURE__ */ I(tt, { children: [/* @__PURE__ */ F("p", {
|
|
64553
64555
|
className: R("m-0", _),
|
|
64554
64556
|
children: t
|
|
64555
|
-
}), /* @__PURE__ */ F("div", { className: R("shrink-0",
|
|
64557
|
+
}), /* @__PURE__ */ F("div", { className: R("shrink-0", GL.divider) })] }),
|
|
64556
64558
|
/* @__PURE__ */ I("div", {
|
|
64557
|
-
className: R("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null &&
|
|
64559
|
+
className: R("min-h-0 flex-1 text-start", h == null ? "overflow-auto break-words" : "overflow-hidden", h == null && GL.body, h == null && _),
|
|
64558
64560
|
children: [a && /* @__PURE__ */ F("span", {
|
|
64559
64561
|
role: "status",
|
|
64560
64562
|
className: "sr-only",
|
|
@@ -64585,12 +64587,12 @@ var ZF = {
|
|
|
64585
64587
|
})
|
|
64586
64588
|
]
|
|
64587
64589
|
});
|
|
64588
|
-
},
|
|
64590
|
+
}, XL = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }), ZL = /* @__PURE__ */ function(e) {
|
|
64589
64591
|
return e.Default = "default", e.Warning = "warning", e.Danger = "danger", e;
|
|
64590
|
-
}({}),
|
|
64591
|
-
let t =
|
|
64592
|
+
}({}), QL = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), $L = (e) => Number.isFinite(e) && e > 0 ? e : 1, eR = ({ used: e, total: t, valueLabel: n }) => n ?? `${XL.format(e)} / ${XL.format(t)}`, tR = ({ total: e }) => Number.isFinite(e) && e > 0, nR = (e) => e.isUnlimited !== !0 && tR(e), rR = (e) => tR(e) ? Math.max(e.used, 0) / e.total : 0, iR = (e) => {
|
|
64593
|
+
let t = rR(e);
|
|
64592
64594
|
return t >= 1 ? "danger" : t >= .75 ? "warning" : "default";
|
|
64593
|
-
},
|
|
64595
|
+
}, aR = {
|
|
64594
64596
|
sectionHeading: "_sectionHeading_ltnqp_1",
|
|
64595
64597
|
label: "_label_ltnqp_5",
|
|
64596
64598
|
valuePrimary: "_valuePrimary_ltnqp_9",
|
|
@@ -64599,58 +64601,58 @@ var ZF = {
|
|
|
64599
64601
|
progressFillDefault: "_progressFillDefault_ltnqp_24",
|
|
64600
64602
|
progressFillWarning: "_progressFillWarning_ltnqp_28",
|
|
64601
64603
|
progressFillDanger: "_progressFillDanger_ltnqp_32"
|
|
64602
|
-
},
|
|
64603
|
-
let o =
|
|
64604
|
+
}, oR = ({ row: e, labelClassName: t, captionClassName: n, valueClassName: r, noteValueClassName: i, noteClassName: a }) => {
|
|
64605
|
+
let o = eR(e);
|
|
64604
64606
|
return /* @__PURE__ */ I("li", {
|
|
64605
|
-
className: R("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0",
|
|
64607
|
+
className: R("flex items-center justify-between gap-5 border-b py-4 first:pt-0 last:border-b-0 last:pb-0", aR.divider),
|
|
64606
64608
|
children: [/* @__PURE__ */ I("div", {
|
|
64607
64609
|
className: "flex min-w-0 flex-1 flex-col",
|
|
64608
64610
|
children: [/* @__PURE__ */ F("span", {
|
|
64609
|
-
className: R("break-words", t,
|
|
64611
|
+
className: R("break-words", t, aR.label),
|
|
64610
64612
|
children: e.label
|
|
64611
64613
|
}), e.captionLabel != null && /* @__PURE__ */ F("span", {
|
|
64612
|
-
className: R("break-words", n,
|
|
64614
|
+
className: R("break-words", n, aR.label),
|
|
64613
64615
|
children: e.captionLabel
|
|
64614
64616
|
})]
|
|
64615
|
-
}),
|
|
64617
|
+
}), nR(e) ? /* @__PURE__ */ I("div", {
|
|
64616
64618
|
className: "flex w-32 shrink-0 flex-col items-end gap-2",
|
|
64617
64619
|
children: [/* @__PURE__ */ F("div", {
|
|
64618
64620
|
className: R("flex gap-1", r),
|
|
64619
64621
|
children: e.usedLabel != null && e.totalLabel != null ? /* @__PURE__ */ I(tt, { children: [/* @__PURE__ */ F("span", {
|
|
64620
|
-
className:
|
|
64622
|
+
className: aR.valuePrimary,
|
|
64621
64623
|
children: e.usedLabel
|
|
64622
64624
|
}), /* @__PURE__ */ F("span", {
|
|
64623
|
-
className:
|
|
64625
|
+
className: aR.label,
|
|
64624
64626
|
children: ` / ${e.totalLabel}`
|
|
64625
64627
|
})] }) : /* @__PURE__ */ F("span", {
|
|
64626
|
-
className:
|
|
64628
|
+
className: aR.label,
|
|
64627
64629
|
children: o
|
|
64628
64630
|
})
|
|
64629
64631
|
}), /* @__PURE__ */ F(Ne, {
|
|
64630
|
-
value:
|
|
64631
|
-
max:
|
|
64632
|
+
value: QL(e),
|
|
64633
|
+
max: $L(e.total),
|
|
64632
64634
|
size: fe.Small,
|
|
64633
|
-
className: R("!h-1 w-full",
|
|
64635
|
+
className: R("!h-1 w-full", aR.progressTrack, iR(e) === ZL.Default && aR.progressFillDefault, iR(e) === ZL.Warning && aR.progressFillWarning, iR(e) === ZL.Danger && aR.progressFillDanger),
|
|
64634
64636
|
"aria-label": e.label,
|
|
64635
64637
|
"aria-valuetext": e.ariaLabel ?? o
|
|
64636
64638
|
})]
|
|
64637
64639
|
}) : /* @__PURE__ */ I("div", {
|
|
64638
64640
|
className: "flex shrink-0 flex-col items-end",
|
|
64639
64641
|
children: [/* @__PURE__ */ F("span", {
|
|
64640
|
-
className: R(i,
|
|
64642
|
+
className: R(i, aR.valuePrimary),
|
|
64641
64643
|
children: o
|
|
64642
64644
|
}), e.noteLabel != null && /* @__PURE__ */ F("span", {
|
|
64643
|
-
className: R(a,
|
|
64645
|
+
className: R(a, aR.label),
|
|
64644
64646
|
children: e.noteLabel
|
|
64645
64647
|
})]
|
|
64646
64648
|
})]
|
|
64647
64649
|
});
|
|
64648
|
-
},
|
|
64649
|
-
className: R("mb-3 mt-0", t,
|
|
64650
|
+
}, sR = ({ group: e, sectionClassName: t, labelClassName: n, captionClassName: r, valueClassName: i, noteValueClassName: a, noteClassName: o }) => /* @__PURE__ */ I("section", { children: [/* @__PURE__ */ F("p", {
|
|
64651
|
+
className: R("mb-3 mt-0", t, aR.sectionHeading),
|
|
64650
64652
|
children: e.label
|
|
64651
64653
|
}), /* @__PURE__ */ F("ul", {
|
|
64652
64654
|
className: "m-0 flex list-none flex-col p-0",
|
|
64653
|
-
children: e.rows.map((e) => /* @__PURE__ */ F(
|
|
64655
|
+
children: e.rows.map((e) => /* @__PURE__ */ F(oR, {
|
|
64654
64656
|
row: e,
|
|
64655
64657
|
labelClassName: n,
|
|
64656
64658
|
captionClassName: r,
|
|
@@ -64658,7 +64660,7 @@ var ZF = {
|
|
|
64658
64660
|
noteValueClassName: a,
|
|
64659
64661
|
noteClassName: o
|
|
64660
64662
|
}, e.label))
|
|
64661
|
-
})] }),
|
|
64663
|
+
})] }), cR = ({ limits: e, labelClassName: t = "dial-small-semi-text", captionClassName: n = "dial-caption-text", valueClassName: r = "dial-tiny-text", noteValueClassName: i = "dial-tiny-semi-text", noteClassName: a = "dial-caption-text", sectionClassName: o = "dial-caption-text", footerClassName: s = "dial-caption-text", footerNote: c, colors: l }) => {
|
|
64662
64664
|
let u = e?.groups.filter((e) => e.rows.length > 0);
|
|
64663
64665
|
return u == null || u.length === 0 ? null : /* @__PURE__ */ I("div", {
|
|
64664
64666
|
className: "flex flex-col gap-6",
|
|
@@ -64672,7 +64674,7 @@ var ZF = {
|
|
|
64672
64674
|
"--lt-progress-fill-warning": l?.progressFillWarning,
|
|
64673
64675
|
"--lt-progress-fill-danger": l?.progressFillDanger
|
|
64674
64676
|
}),
|
|
64675
|
-
children: [u.map((e) => /* @__PURE__ */ F(
|
|
64677
|
+
children: [u.map((e) => /* @__PURE__ */ F(sR, {
|
|
64676
64678
|
group: e,
|
|
64677
64679
|
sectionClassName: o,
|
|
64678
64680
|
labelClassName: t,
|
|
@@ -64681,17 +64683,17 @@ var ZF = {
|
|
|
64681
64683
|
noteValueClassName: i,
|
|
64682
64684
|
noteClassName: a
|
|
64683
64685
|
}, e.label)), c != null && /* @__PURE__ */ F("p", {
|
|
64684
|
-
className: R("m-0 border-t pt-4", s,
|
|
64686
|
+
className: R("m-0 border-t pt-4", s, aR.divider, aR.label),
|
|
64685
64687
|
children: c
|
|
64686
64688
|
})]
|
|
64687
64689
|
});
|
|
64688
|
-
},
|
|
64690
|
+
}, lR = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ F("div", {
|
|
64689
64691
|
className: "flex flex-col gap-4",
|
|
64690
64692
|
children: e.map((e, s) => /* @__PURE__ */ I("div", {
|
|
64691
64693
|
className: "flex flex-col gap-4",
|
|
64692
|
-
children: [s > 0 && /* @__PURE__ */ F("div", { className: R("shrink-0 border-b",
|
|
64694
|
+
children: [s > 0 && /* @__PURE__ */ F("div", { className: R("shrink-0 border-b", ML.divider) }), /* @__PURE__ */ F("div", {
|
|
64693
64695
|
className: "px-6",
|
|
64694
|
-
children: /* @__PURE__ */ F(
|
|
64696
|
+
children: /* @__PURE__ */ F(aL, {
|
|
64695
64697
|
sectionLabel: e.title,
|
|
64696
64698
|
values: e.specs,
|
|
64697
64699
|
sectionClassName: t,
|
|
@@ -64703,7 +64705,7 @@ var ZF = {
|
|
|
64703
64705
|
})
|
|
64704
64706
|
})]
|
|
64705
64707
|
}, s))
|
|
64706
|
-
}) : null,
|
|
64708
|
+
}) : null, uR = ({ pricing: e, pricesSectionLabel: t = "Token pricing", limitsSectionLabel: n = "Usage limits", labelClassName: r = "dial-small-semi-text", valueClassName: i = "dial-small-text", sectionClassName: a = "dial-caption-text" }) => {
|
|
64707
64709
|
if (e == null) return null;
|
|
64708
64710
|
let o = e.prices?.map((e) => ({
|
|
64709
64711
|
label: e.label,
|
|
@@ -64714,13 +64716,13 @@ var ZF = {
|
|
|
64714
64716
|
}));
|
|
64715
64717
|
return /* @__PURE__ */ I("div", {
|
|
64716
64718
|
className: "flex flex-col gap-4",
|
|
64717
|
-
children: [/* @__PURE__ */ F(
|
|
64719
|
+
children: [/* @__PURE__ */ F(aL, {
|
|
64718
64720
|
sectionLabel: t,
|
|
64719
64721
|
values: o ?? [],
|
|
64720
64722
|
labelClassName: r,
|
|
64721
64723
|
valueClassName: i,
|
|
64722
64724
|
sectionClassName: a
|
|
64723
|
-
}), /* @__PURE__ */ F(
|
|
64725
|
+
}), /* @__PURE__ */ F(aL, {
|
|
64724
64726
|
sectionLabel: n,
|
|
64725
64727
|
values: s ?? [],
|
|
64726
64728
|
labelClassName: r,
|
|
@@ -64728,32 +64730,32 @@ var ZF = {
|
|
|
64728
64730
|
sectionClassName: a
|
|
64729
64731
|
})]
|
|
64730
64732
|
});
|
|
64731
|
-
},
|
|
64733
|
+
}, dR = {
|
|
64732
64734
|
container: "_container_ddi3i_1",
|
|
64733
64735
|
header: "_header_ddi3i_5",
|
|
64734
64736
|
cell: "_cell_ddi3i_10",
|
|
64735
64737
|
evenRow: "_evenRow_ddi3i_17"
|
|
64736
|
-
},
|
|
64738
|
+
}, fR = ({ columns: e, rows: t, columnsTemplate: r, headingClassName: i = "dial-caption-lead-semi-text", cellClassName: a = "dial-tiny-text" }) => {
|
|
64737
64739
|
let o = r ?? `repeat(${e.length}, 1fr)`;
|
|
64738
64740
|
return /* @__PURE__ */ I("div", {
|
|
64739
|
-
className: R(
|
|
64741
|
+
className: R(dR.container, "grid overflow-hidden rounded-md"),
|
|
64740
64742
|
style: { gridTemplateColumns: o },
|
|
64741
64743
|
children: [e.map((e) => /* @__PURE__ */ F("div", {
|
|
64742
|
-
className: R("px-2 py-1 text-start", i,
|
|
64744
|
+
className: R("px-2 py-1 text-start", i, dR.header),
|
|
64743
64745
|
children: e
|
|
64744
64746
|
}, e)), t.map((e, t) => /* @__PURE__ */ F(n, { children: e.map((e, n) => /* @__PURE__ */ F("div", {
|
|
64745
|
-
className: R("px-2 py-1.5", a,
|
|
64747
|
+
className: R("px-2 py-1.5", a, dR.cell, t % 2 == 1 ? dR.evenRow : void 0),
|
|
64746
64748
|
children: e
|
|
64747
64749
|
}, n)) }, t))]
|
|
64748
64750
|
});
|
|
64749
|
-
},
|
|
64751
|
+
}, pR = {
|
|
64750
64752
|
divider: "_divider_1f796_1",
|
|
64751
64753
|
description: "_description_1f796_5",
|
|
64752
64754
|
code: "_code_1f796_9"
|
|
64753
|
-
},
|
|
64755
|
+
}, mR = ({ tools: e, toolNameClassName: t = "dial-small-semi-text", descriptionClassName: n = "dial-small-text", tableHeadingClassName: r = "dial-caption-text", tableCellClassName: i = "dial-tiny-text" }) => e == null ? null : /* @__PURE__ */ F("div", {
|
|
64754
64756
|
className: "flex flex-col",
|
|
64755
64757
|
children: e.tools.map((e, a) => /* @__PURE__ */ I("div", {
|
|
64756
|
-
className: R("flex flex-col gap-3 px-[22px] py-4", a > 0 ?
|
|
64758
|
+
className: R("flex flex-col gap-3 px-[22px] py-4", a > 0 ? pR.divider : void 0),
|
|
64757
64759
|
children: [
|
|
64758
64760
|
/* @__PURE__ */ I("div", {
|
|
64759
64761
|
className: "flex flex-col gap-1",
|
|
@@ -64761,11 +64763,11 @@ var ZF = {
|
|
|
64761
64763
|
className: t,
|
|
64762
64764
|
children: e.name
|
|
64763
64765
|
}), e.description != null && /* @__PURE__ */ F("p", {
|
|
64764
|
-
className: R("m-0", n,
|
|
64766
|
+
className: R("m-0", n, pR.description),
|
|
64765
64767
|
children: e.description
|
|
64766
64768
|
})]
|
|
64767
64769
|
}),
|
|
64768
|
-
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ F(
|
|
64770
|
+
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ F(fR, {
|
|
64769
64771
|
columns: [
|
|
64770
64772
|
"Name",
|
|
64771
64773
|
"Type",
|
|
@@ -64774,11 +64776,11 @@ var ZF = {
|
|
|
64774
64776
|
columnsTemplate: "1fr 1fr auto",
|
|
64775
64777
|
rows: e.inputParams.map((e) => [
|
|
64776
64778
|
/* @__PURE__ */ F("code", {
|
|
64777
|
-
className: R("text-inherit border-none bg-transparent p-0",
|
|
64779
|
+
className: R("text-inherit border-none bg-transparent p-0", pR.code),
|
|
64778
64780
|
children: e.name
|
|
64779
64781
|
}, "name"),
|
|
64780
64782
|
/* @__PURE__ */ F("code", {
|
|
64781
|
-
className: R("text-inherit border-none bg-transparent p-0",
|
|
64783
|
+
className: R("text-inherit border-none bg-transparent p-0", pR.code),
|
|
64782
64784
|
children: e.type
|
|
64783
64785
|
}, "type"),
|
|
64784
64786
|
e.isRequired ? "✓" : "—"
|
|
@@ -64786,10 +64788,10 @@ var ZF = {
|
|
|
64786
64788
|
headingClassName: r,
|
|
64787
64789
|
cellClassName: i
|
|
64788
64790
|
}),
|
|
64789
|
-
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ F(
|
|
64791
|
+
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ F(fR, {
|
|
64790
64792
|
columns: ["Key", "Value"],
|
|
64791
64793
|
rows: e.annotations.map((e) => [/* @__PURE__ */ F("code", {
|
|
64792
|
-
className: R("text-inherit border-none bg-transparent p-0",
|
|
64794
|
+
className: R("text-inherit border-none bg-transparent p-0", pR.code),
|
|
64793
64795
|
children: e.key
|
|
64794
64796
|
}, "key"), e.value]),
|
|
64795
64797
|
headingClassName: r,
|
|
@@ -64797,23 +64799,23 @@ var ZF = {
|
|
|
64797
64799
|
})
|
|
64798
64800
|
]
|
|
64799
64801
|
}, e.name))
|
|
64800
|
-
}),
|
|
64802
|
+
}), hR = new Set([Da.Prompt, Da.Skill]), gR = (e) => e?.resource?.endpointUrl != null || (e?.endpoints?.length ?? 0) > 0, _R = (e, t) => t == null ? e.length === 1 ? e[0] : void 0 : e.find((e) => e.key === t), vR = async () => void 0, yR = [], bR = [], xR = [
|
|
64801
64803
|
"All shared configurations will be lost",
|
|
64802
64804
|
"Users who rely on it will lose access",
|
|
64803
64805
|
"Cannot be undone"
|
|
64804
|
-
],
|
|
64806
|
+
], SR = [
|
|
64805
64807
|
"You will lose access to this item",
|
|
64806
64808
|
"Other people keep their access",
|
|
64807
64809
|
"You will need a new invitation to get it back"
|
|
64808
|
-
],
|
|
64810
|
+
], CR = [
|
|
64809
64811
|
"Everyone loses access to the published copy",
|
|
64810
64812
|
"Your own copy is not deleted",
|
|
64811
64813
|
"You can publish it again later"
|
|
64812
|
-
],
|
|
64814
|
+
], wR = [
|
|
64813
64815
|
"Everyone you shared it with loses access",
|
|
64814
64816
|
"Existing share links stop working",
|
|
64815
64817
|
"You keep full access — nothing is deleted"
|
|
64816
|
-
],
|
|
64818
|
+
], TR = (e) => e === hn.ApiKey ? "Toolset API keys" : "Toolset credentials", ER = (e) => e === _n.Global ? "Are you sure you want to delete the organization API key?" : "Are you sure you want to delete your personal API key?", DR = new Set([fn.Delete, fn.Unshare]), OR = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, isReadonly: i = !1, onClose: a, onToggleFavorite: o, isFavoriteVisible: c, onUseInChat: u, isPrimaryActionVisible: d, onShare: f, isPublishVisible: g, isPublishPrimary: _, getPublishHistory: v, publishFolderItems: y = yR, publishExpandedPaths: b, onPublishExpandedPathsChange: x, publishLoadingPaths: S, hasPublishWriteAccess: w, onPublish: T, onPublishSuccess: E, onPublishError: ee, onCreatePublishFolder: D, publishLabels: O, ruleSourceOptions: k = bR, onFetchExistingRules: j, shareOverlay: M, isShareVisible: te, isSharePrimary: ne, onEdit: N, onDownload: re, isDownloadVisible: ie, isDownloadPrimary: ae, onLoadContentFile: oe, onLoadContentFilePreview: se, renderContentFilePreview: ce, onDelete: le, onUnshare: ue, isUnshareVisible: de, onRevokeShare: pe, onFetchRecipientsCount: me, isRevokeShareVisible: he, onUnpublish: ge, isUnpublishVisible: ve, onLogin: ye, onLogout: be, texts: P, styles: xe, limitsFooterNote: Se }) => {
|
|
64817
64819
|
let { subViewTitleClassName: Ce = "dial-body-semi-text", overviewSectionClassName: we = "dial-caption-text", overviewLabelClassName: Te = "dial-small-semi-text", overviewValueClassName: Ee = "dial-small-text", overviewValueTrueClassName: De = "dial-small-text", confirmMessageClassName: Oe = "dial-small-text" } = xe?.typography ?? {}, ke = xe?.colors, Ae = os({
|
|
64818
64820
|
"--cat-details-backdrop": ke?.backdrop,
|
|
64819
64821
|
"--cat-details-bg": ke?.background,
|
|
@@ -64855,7 +64857,7 @@ var ZF = {
|
|
|
64855
64857
|
t != null && t !== n && t.startsWith("blob:") && URL.revokeObjectURL(t), ot.current = n, Qe(e);
|
|
64856
64858
|
}, []);
|
|
64857
64859
|
l(() => {
|
|
64858
|
-
st.current += 1, ct(null), et(!1), rt(
|
|
64860
|
+
st.current += 1, ct(null), et(!1), rt(tL(Ye?.files ?? [])), at(!1);
|
|
64859
64861
|
}, [e.id, Xe]), l(() => () => {
|
|
64860
64862
|
let e = ot.current;
|
|
64861
64863
|
e != null && e.startsWith("blob:") && URL.revokeObjectURL(e);
|
|
@@ -64914,7 +64916,7 @@ var ZF = {
|
|
|
64914
64916
|
]), ft = Ze?.id ?? Xe, pt = () => Ze == null ? null : Ze.preview == null ? {
|
|
64915
64917
|
type: wn.Text,
|
|
64916
64918
|
text: P?.contentFileErrorLabel ?? "Failed to load this file."
|
|
64917
|
-
} : Ze.preview, mt = Ze != null && ce != null ? ce(Ze.id,
|
|
64919
|
+
} : Ze.preview, mt = Ze != null && ce != null ? ce(Ze.id, nL(Ye?.files ?? [], Ze.id) ?? "") : void 0, ht = s(() => {
|
|
64918
64920
|
if (!v || Je.current === e.id) return;
|
|
64919
64921
|
let t = e.id;
|
|
64920
64922
|
Je.current = t, He(!0), Ge(!1), (async () => {
|
|
@@ -64933,17 +64935,17 @@ var ZF = {
|
|
|
64933
64935
|
}, [Ie, ht]);
|
|
64934
64936
|
let gt = s((e, t) => {
|
|
64935
64937
|
Je.current = null, qe(!1), ht(), E?.(e, t);
|
|
64936
|
-
}, [ht, E]), _t =
|
|
64938
|
+
}, [ht, E]), _t = CI({
|
|
64937
64939
|
item: e,
|
|
64938
64940
|
history: ze,
|
|
64939
64941
|
folderItems: y,
|
|
64940
64942
|
hasWriteAccess: w,
|
|
64941
64943
|
onCreateFolder: D,
|
|
64942
|
-
onPublish: T ??
|
|
64944
|
+
onPublish: T ?? vR,
|
|
64943
64945
|
onPublishSuccess: gt,
|
|
64944
64946
|
onPublishError: ee,
|
|
64945
64947
|
onFetchExistingRules: j
|
|
64946
|
-
}), vt = p(() =>
|
|
64948
|
+
}), vt = p(() => bI({
|
|
64947
64949
|
hasSelectedFolder: _t.selectedFolderPath != null,
|
|
64948
64950
|
hasExistingPublicationInFolder: _t.hasExistingPublicationInFolder,
|
|
64949
64951
|
hasWriteAccess: _t.hasWriteAccess,
|
|
@@ -65006,12 +65008,12 @@ var ZF = {
|
|
|
65006
65008
|
Tt != null && await be?.(e, { level: Tt });
|
|
65007
65009
|
break;
|
|
65008
65010
|
case fn.Unpublish: {
|
|
65009
|
-
let t =
|
|
65011
|
+
let t = _R(Lt, kt);
|
|
65010
65012
|
t != null && await ge?.(e, t.segments);
|
|
65011
65013
|
break;
|
|
65012
65014
|
}
|
|
65013
65015
|
}
|
|
65014
|
-
St(null), Et(null), Ot(null), At(null),
|
|
65016
|
+
St(null), Et(null), Ot(null), At(null), DR.has(xt) && a();
|
|
65015
65017
|
} catch {
|
|
65016
65018
|
St(null), Et(null), Ot(null), At(null);
|
|
65017
65019
|
} finally {
|
|
@@ -65063,7 +65065,7 @@ var ZF = {
|
|
|
65063
65065
|
e.id,
|
|
65064
65066
|
o
|
|
65065
65067
|
]), Jt = p(() => {
|
|
65066
|
-
let t = [], n =
|
|
65068
|
+
let t = [], n = hR.has(e.type);
|
|
65067
65069
|
return n || t.push({
|
|
65068
65070
|
id: un.About,
|
|
65069
65071
|
label: P?.tabAboutLabel ?? "About"
|
|
@@ -65082,7 +65084,7 @@ var ZF = {
|
|
|
65082
65084
|
}), e.details?.tools != null && t.push({
|
|
65083
65085
|
id: un.Tools,
|
|
65084
65086
|
label: P?.tabToolsLabel ?? "Tools"
|
|
65085
|
-
}),
|
|
65087
|
+
}), gR(e.details?.api) && t.push({
|
|
65086
65088
|
id: un.Api,
|
|
65087
65089
|
label: P?.tabConnectLabel ?? "Connect"
|
|
65088
65090
|
}), t;
|
|
@@ -65106,7 +65108,7 @@ var ZF = {
|
|
|
65106
65108
|
/* @__PURE__ */ F("strong", { children: e.name }),
|
|
65107
65109
|
"? This action is permanent and cannot be undone."
|
|
65108
65110
|
] }),
|
|
65109
|
-
consequences: P?.deleteConfirmConsequences ??
|
|
65111
|
+
consequences: P?.deleteConfirmConsequences ?? xR,
|
|
65110
65112
|
confirmLabel: t,
|
|
65111
65113
|
loadingStatusLabel: P?.deletingStatusLabel ?? "Deleting",
|
|
65112
65114
|
variant: pn.Danger
|
|
@@ -65121,7 +65123,7 @@ var ZF = {
|
|
|
65121
65123
|
/* @__PURE__ */ F("strong", { children: e.name }),
|
|
65122
65124
|
" from your list? You'll need a new invitation to access it again."
|
|
65123
65125
|
] }),
|
|
65124
|
-
consequences: P?.unshareConfirmConsequences ??
|
|
65126
|
+
consequences: P?.unshareConfirmConsequences ?? SR,
|
|
65125
65127
|
confirmLabel: t,
|
|
65126
65128
|
loadingStatusLabel: P?.unsharingStatusLabel ?? "Removing",
|
|
65127
65129
|
variant: pn.Info
|
|
@@ -65136,7 +65138,7 @@ var ZF = {
|
|
|
65136
65138
|
/* @__PURE__ */ F("strong", { children: e.name }),
|
|
65137
65139
|
"? Anyone you shared it with will lose access."
|
|
65138
65140
|
] }),
|
|
65139
|
-
consequences: P?.revokeShareConfirmConsequences ??
|
|
65141
|
+
consequences: P?.revokeShareConfirmConsequences ?? wR,
|
|
65140
65142
|
confirmLabel: t,
|
|
65141
65143
|
loadingStatusLabel: P?.revokingShareStatusLabel ?? "Revoking access",
|
|
65142
65144
|
variant: pn.Danger
|
|
@@ -65157,7 +65159,7 @@ var ZF = {
|
|
|
65157
65159
|
return {
|
|
65158
65160
|
title: P?.unpublishConfirmTitle ?? t,
|
|
65159
65161
|
message: n ? i : a,
|
|
65160
|
-
consequences: P?.unpublishConfirmConsequences ??
|
|
65162
|
+
consequences: P?.unpublishConfirmConsequences ?? CR,
|
|
65161
65163
|
confirmLabel: t,
|
|
65162
65164
|
loadingStatusLabel: P?.unpublishingStatusLabel ?? "Requesting unpublish",
|
|
65163
65165
|
variant: pn.Danger
|
|
@@ -65178,7 +65180,7 @@ var ZF = {
|
|
|
65178
65180
|
let e = P?.deleteActionLabel ?? "Delete", t = Tt ?? _n.User;
|
|
65179
65181
|
return {
|
|
65180
65182
|
title: e,
|
|
65181
|
-
message: (P?.deleteApiKeyConfirmMessage ??
|
|
65183
|
+
message: (P?.deleteApiKeyConfirmMessage ?? ER)(t),
|
|
65182
65184
|
consequences: void 0,
|
|
65183
65185
|
confirmLabel: e,
|
|
65184
65186
|
loadingStatusLabel: P?.deletingStatusLabel ?? "Deleting",
|
|
@@ -65195,7 +65197,7 @@ var ZF = {
|
|
|
65195
65197
|
P,
|
|
65196
65198
|
Lt,
|
|
65197
65199
|
zt
|
|
65198
|
-
]), on = an != null, sn = xt === fn.Unpublish &&
|
|
65200
|
+
]), on = an != null, sn = xt === fn.Unpublish && _R(Lt, kt) == null, cn = on || Ie || yt, ln = e.credentials == null ? "" : (P?.credentialsManagementTitle ?? TR)(e.credentials.authenticationType), dn = on ? {
|
|
65199
65201
|
title: an.title,
|
|
65200
65202
|
isBackDisabled: Ct,
|
|
65201
65203
|
onBack: Ht
|
|
@@ -65210,7 +65212,7 @@ var ZF = {
|
|
|
65210
65212
|
} : null, mn = dn?.title ?? Qt;
|
|
65211
65213
|
return /* @__PURE__ */ I(tt, { children: [/* @__PURE__ */ F("div", {
|
|
65212
65214
|
style: Ae,
|
|
65213
|
-
className: R("fixed inset-0 z-40 transition-opacity duration-300",
|
|
65215
|
+
className: R("fixed inset-0 z-40 transition-opacity duration-300", ML.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
|
|
65214
65216
|
onClick: a,
|
|
65215
65217
|
"aria-hidden": "true"
|
|
65216
65218
|
}), /* @__PURE__ */ I("div", {
|
|
@@ -65218,7 +65220,7 @@ var ZF = {
|
|
|
65218
65220
|
"aria-modal": "true",
|
|
65219
65221
|
"aria-label": mn,
|
|
65220
65222
|
style: Ae,
|
|
65221
|
-
className: R("fixed inset-y-0 end-0 z-50 flex w-full flex-col overflow-hidden", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300",
|
|
65223
|
+
className: R("fixed inset-y-0 end-0 z-50 flex w-full flex-col overflow-hidden", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", ML.panel, t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
|
|
65222
65224
|
children: [
|
|
65223
65225
|
/* @__PURE__ */ I("div", {
|
|
65224
65226
|
className: "flex shrink-0 items-center gap-2 px-6 py-3",
|
|
@@ -65231,11 +65233,11 @@ var ZF = {
|
|
|
65231
65233
|
disabled: dn.isBackDisabled,
|
|
65232
65234
|
onClick: dn.onBack
|
|
65233
65235
|
}), /* @__PURE__ */ F("span", {
|
|
65234
|
-
className: R("flex-1", Ce,
|
|
65236
|
+
className: R("flex-1", Ce, ML.publishTitle),
|
|
65235
65237
|
children: dn.title
|
|
65236
65238
|
})] }), dn == null && /* @__PURE__ */ I(tt, { children: [
|
|
65237
65239
|
/* @__PURE__ */ F("div", { className: "flex-1" }),
|
|
65238
|
-
!i && c?.(e) !== !1 && /* @__PURE__ */ F(
|
|
65240
|
+
!i && c?.(e) !== !1 && /* @__PURE__ */ F(lI, {
|
|
65239
65241
|
isStarred: je,
|
|
65240
65242
|
ariaLabel: en,
|
|
65241
65243
|
onClick: qt
|
|
@@ -65247,11 +65249,11 @@ var ZF = {
|
|
|
65247
65249
|
})
|
|
65248
65250
|
] })]
|
|
65249
65251
|
}),
|
|
65250
|
-
/* @__PURE__ */ F("div", { className: R("shrink-0",
|
|
65252
|
+
/* @__PURE__ */ F("div", { className: R("shrink-0", ML.divider) }),
|
|
65251
65253
|
/* @__PURE__ */ I("div", {
|
|
65252
|
-
className: R("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto",
|
|
65254
|
+
className: R("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto", ML.content),
|
|
65253
65255
|
children: [
|
|
65254
|
-
on && /* @__PURE__ */ F(
|
|
65256
|
+
on && /* @__PURE__ */ F(hL, {
|
|
65255
65257
|
item: e,
|
|
65256
65258
|
message: an.message,
|
|
65257
65259
|
consequences: an.consequences,
|
|
@@ -65269,7 +65271,7 @@ var ZF = {
|
|
|
65269
65271
|
radioClassName: Oe
|
|
65270
65272
|
})
|
|
65271
65273
|
}),
|
|
65272
|
-
!on && !Ie && yt && /* @__PURE__ */ F(
|
|
65274
|
+
!on && !Ie && yt && /* @__PURE__ */ F(jL, {
|
|
65273
65275
|
item: e,
|
|
65274
65276
|
onLogin: ye,
|
|
65275
65277
|
onRequestLogout: Pt,
|
|
@@ -65279,7 +65281,7 @@ var ZF = {
|
|
|
65279
65281
|
}),
|
|
65280
65282
|
!on && Ie && /* @__PURE__ */ F("div", {
|
|
65281
65283
|
className: "p-[22px]",
|
|
65282
|
-
children: /* @__PURE__ */ F(
|
|
65284
|
+
children: /* @__PURE__ */ F(JI, {
|
|
65283
65285
|
resource: {
|
|
65284
65286
|
title: e.name,
|
|
65285
65287
|
version: e.version,
|
|
@@ -65314,7 +65316,7 @@ var ZF = {
|
|
|
65314
65316
|
})
|
|
65315
65317
|
}),
|
|
65316
65318
|
!cn && /* @__PURE__ */ I(tt, { children: [
|
|
65317
|
-
/* @__PURE__ */ F(
|
|
65319
|
+
/* @__PURE__ */ F(UL, {
|
|
65318
65320
|
item: e,
|
|
65319
65321
|
onUseInChat: u,
|
|
65320
65322
|
isPrimaryActionVisible: d,
|
|
@@ -65351,7 +65353,7 @@ var ZF = {
|
|
|
65351
65353
|
let t = Fn(e.credentials);
|
|
65352
65354
|
return t != null && /* @__PURE__ */ F("div", {
|
|
65353
65355
|
className: "px-6",
|
|
65354
|
-
children: /* @__PURE__ */ F(
|
|
65356
|
+
children: /* @__PURE__ */ F(DL, {
|
|
65355
65357
|
state: t,
|
|
65356
65358
|
authenticationType: e.credentials.authenticationType,
|
|
65357
65359
|
texts: P
|
|
@@ -65375,19 +65377,19 @@ var ZF = {
|
|
|
65375
65377
|
width: "72px"
|
|
65376
65378
|
},
|
|
65377
65379
|
active: !0,
|
|
65378
|
-
color:
|
|
65380
|
+
color: ML.skeletonColor
|
|
65379
65381
|
})
|
|
65380
65382
|
})]
|
|
65381
65383
|
}),
|
|
65382
65384
|
/* @__PURE__ */ I("div", {
|
|
65383
65385
|
className: R("min-h-0 flex-1 overflow-y-auto", Ne !== un.Overview && "px-6"),
|
|
65384
65386
|
children: [
|
|
65385
|
-
Ne === un.About && /* @__PURE__ */ F(
|
|
65387
|
+
Ne === un.About && /* @__PURE__ */ F(WL, {
|
|
65386
65388
|
content: e.description,
|
|
65387
65389
|
topics: e.topics,
|
|
65388
65390
|
detailsStyles: xe
|
|
65389
65391
|
}),
|
|
65390
|
-
Ne === un.Content && /* @__PURE__ */ F(
|
|
65392
|
+
Ne === un.Content && /* @__PURE__ */ F(YL, {
|
|
65391
65393
|
content: Ye?.content ?? "",
|
|
65392
65394
|
filePreview: pt(),
|
|
65393
65395
|
filePreviewContent: mt,
|
|
@@ -65406,7 +65408,7 @@ var ZF = {
|
|
|
65406
65408
|
fileUnsupportedLabel: P?.contentFileUnsupportedLabel,
|
|
65407
65409
|
detailsStyles: xe
|
|
65408
65410
|
}),
|
|
65409
|
-
Ne === un.Overview && /* @__PURE__ */ F(
|
|
65411
|
+
Ne === un.Overview && /* @__PURE__ */ F(lR, {
|
|
65410
65412
|
sections: e.details?.overview?.sections,
|
|
65411
65413
|
sectionClassName: we,
|
|
65412
65414
|
labelClassName: Te,
|
|
@@ -65415,16 +65417,16 @@ var ZF = {
|
|
|
65415
65417
|
yesLabel: Xt,
|
|
65416
65418
|
noLabel: Zt
|
|
65417
65419
|
}),
|
|
65418
|
-
Ne === un.Pricing && /* @__PURE__ */ F(
|
|
65420
|
+
Ne === un.Pricing && /* @__PURE__ */ F(uR, {
|
|
65419
65421
|
pricing: e.details?.pricing,
|
|
65420
65422
|
pricesSectionLabel: P?.pricingPricesSectionLabel,
|
|
65421
65423
|
limitsSectionLabel: P?.pricingLimitsSectionLabel
|
|
65422
65424
|
}),
|
|
65423
|
-
Ne === un.Limits && /* @__PURE__ */ F(
|
|
65425
|
+
Ne === un.Limits && /* @__PURE__ */ F(cR, {
|
|
65424
65426
|
limits: e.details?.limits,
|
|
65425
65427
|
footerNote: Se
|
|
65426
65428
|
}),
|
|
65427
|
-
Ne === un.Api &&
|
|
65429
|
+
Ne === un.Api && gR(e.details?.api) && /* @__PURE__ */ F(uL, {
|
|
65428
65430
|
api: e.details?.api,
|
|
65429
65431
|
resourceSectionLabel: P?.apiResourceSectionLabel,
|
|
65430
65432
|
snippetSectionLabel: P?.apiSnippetSectionLabel,
|
|
@@ -65436,13 +65438,13 @@ var ZF = {
|
|
|
65436
65438
|
copyAriaLabel: P?.copyCodeAriaLabel,
|
|
65437
65439
|
copiedStatusLabel: P?.copiedCodeStatusLabel
|
|
65438
65440
|
}),
|
|
65439
|
-
Ne === un.Tools && /* @__PURE__ */ F(
|
|
65441
|
+
Ne === un.Tools && /* @__PURE__ */ F(mR, { tools: e.details?.tools })
|
|
65440
65442
|
]
|
|
65441
65443
|
})
|
|
65442
65444
|
] })
|
|
65443
65445
|
]
|
|
65444
65446
|
}),
|
|
65445
|
-
on && /* @__PURE__ */ F(
|
|
65447
|
+
on && /* @__PURE__ */ F(fL, {
|
|
65446
65448
|
confirmLabel: an.confirmLabel,
|
|
65447
65449
|
cancelLabel: rn,
|
|
65448
65450
|
variant: an.variant,
|
|
@@ -65452,7 +65454,7 @@ var ZF = {
|
|
|
65452
65454
|
onConfirm: Ut,
|
|
65453
65455
|
onCancel: Ht
|
|
65454
65456
|
}),
|
|
65455
|
-
!on && Ie && /* @__PURE__ */ F(
|
|
65457
|
+
!on && Ie && /* @__PURE__ */ F($I, {
|
|
65456
65458
|
version: e.version,
|
|
65457
65459
|
hasExistingPublicationInFolder: _t.hasExistingPublicationInFolder,
|
|
65458
65460
|
isSubmitDisabled: vt.isSubmitDisabled,
|
|
@@ -65463,7 +65465,7 @@ var ZF = {
|
|
|
65463
65465
|
})
|
|
65464
65466
|
]
|
|
65465
65467
|
})] });
|
|
65466
|
-
},
|
|
65468
|
+
}, kR = {
|
|
65467
65469
|
pageNav: "_pageNav_14qfn_1",
|
|
65468
65470
|
navBtn: "_navBtn_14qfn_6",
|
|
65469
65471
|
titleText: "_titleText_14qfn_23",
|
|
@@ -65478,7 +65480,7 @@ var ZF = {
|
|
|
65478
65480
|
favFadeIn: "_favFadeIn_14qfn_1",
|
|
65479
65481
|
cardLeaving: "_cardLeaving_14qfn_54",
|
|
65480
65482
|
cardFadeOut: "_cardFadeOut_14qfn_1"
|
|
65481
|
-
},
|
|
65483
|
+
}, AR = ({ item: e, initialIsStarred: t = !0, onToggle: n, isFavoriteVisible: r, onClick: i, nameClassName: a, colors: o, versionClassName: c, lastUsedClassName: l, query: u, addToFavoritesAriaLabel: d = "Add to favorites", removeFromFavoritesAriaLabel: f = "Remove from favorites", isSelected: p = !1, credentialsBadgeLoggedOutLabel: m }) => {
|
|
65482
65484
|
let [g, _] = h(t), [v, y] = h(!1), x = (t) => {
|
|
65483
65485
|
t.stopPropagation();
|
|
65484
65486
|
let r = !g;
|
|
@@ -65495,7 +65497,7 @@ var ZF = {
|
|
|
65495
65497
|
role: S == null ? void 0 : "button",
|
|
65496
65498
|
tabIndex: S == null ? void 0 : 0,
|
|
65497
65499
|
"aria-label": e.name,
|
|
65498
|
-
className: R("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", v &&
|
|
65500
|
+
className: R("box-border min-w-0 cursor-pointer flex-row items-start gap-1 text-start", v && kR.cardLeaving, p && kR.selectedCard),
|
|
65499
65501
|
onClick: S,
|
|
65500
65502
|
onKeyDown: C,
|
|
65501
65503
|
onAnimationEnd: v ? (t) => {
|
|
@@ -65504,13 +65506,13 @@ var ZF = {
|
|
|
65504
65506
|
children: [
|
|
65505
65507
|
p && /* @__PURE__ */ F(ct, {
|
|
65506
65508
|
size: k.SM,
|
|
65507
|
-
className: R("absolute end-3 top-3 shrink-0",
|
|
65509
|
+
className: R("absolute end-3 top-3 shrink-0", kR.selectedCheck),
|
|
65508
65510
|
"aria-hidden": !0,
|
|
65509
65511
|
stroke: A
|
|
65510
65512
|
}),
|
|
65511
65513
|
/* @__PURE__ */ F("div", {
|
|
65512
65514
|
className: "flex min-w-0 flex-1 flex-col items-start gap-1",
|
|
65513
|
-
children: /* @__PURE__ */ F(
|
|
65515
|
+
children: /* @__PURE__ */ F(aI, {
|
|
65514
65516
|
icon: e.iconUrl,
|
|
65515
65517
|
type: e.type,
|
|
65516
65518
|
name: e.name,
|
|
@@ -65527,13 +65529,13 @@ var ZF = {
|
|
|
65527
65529
|
lastUsedClassName: l
|
|
65528
65530
|
}
|
|
65529
65531
|
},
|
|
65530
|
-
iconOverlay: /* @__PURE__ */ F(
|
|
65532
|
+
iconOverlay: /* @__PURE__ */ F(sI, {
|
|
65531
65533
|
credentials: e.credentials,
|
|
65532
65534
|
loggedOutLabel: m
|
|
65533
65535
|
})
|
|
65534
65536
|
})
|
|
65535
65537
|
}),
|
|
65536
|
-
r?.(e) !== !1 && /* @__PURE__ */ F(
|
|
65538
|
+
r?.(e) !== !1 && /* @__PURE__ */ F(lI, {
|
|
65537
65539
|
isStarred: g,
|
|
65538
65540
|
size: fe.Small,
|
|
65539
65541
|
onClick: x,
|
|
@@ -65542,7 +65544,7 @@ var ZF = {
|
|
|
65542
65544
|
})
|
|
65543
65545
|
]
|
|
65544
65546
|
});
|
|
65545
|
-
},
|
|
65547
|
+
}, jR = 2, MR = (e) => {
|
|
65546
65548
|
let t = e.getBoundingClientRect(), n = window.scrollX, r = window.scrollY, i = window.getComputedStyle(e).transform;
|
|
65547
65549
|
if (!i || i === "none") return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
65548
65550
|
try {
|
|
@@ -65551,7 +65553,7 @@ var ZF = {
|
|
|
65551
65553
|
} catch {
|
|
65552
65554
|
return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
65553
65555
|
}
|
|
65554
|
-
},
|
|
65556
|
+
}, NR = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, isFavoriteVisible: i, onItemClick: a, styles: o, isLeaving: s, onExitComplete: c, prevPageAriaLabel: u = "Previous page", nextPageAriaLabel: d = "Next page", addToFavoritesAriaLabel: g, removeFromFavoritesAriaLabel: _, selectedItemId: v, credentialsBadgeLoggedOutLabel: y }) => {
|
|
65555
65557
|
let b = o?.typography?.titleClassName ?? "dial-body-semi-text", x = o?.typography?.countClassName ?? "dial-tiny-semi-text", S = os({
|
|
65556
65558
|
"--cat-fav-title-text": o?.colors?.titleText,
|
|
65557
65559
|
"--cat-fav-count-text": o?.colors?.countText,
|
|
@@ -65564,7 +65566,7 @@ var ZF = {
|
|
|
65564
65566
|
"--cat-fav-nav-btn-active-bg": o?.colors?.navButtonActiveBackground,
|
|
65565
65567
|
"--cat-fav-page-nav-border": o?.colors?.pageNavBorder,
|
|
65566
65568
|
"--cat-fav-page-nav-bg": o?.colors?.pageNavBackground
|
|
65567
|
-
}), C = p(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [w, T] = h(1), E = An(), ee = E *
|
|
65569
|
+
}), C = p(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [w, T] = h(1), E = An(), ee = E * jR, D = (w - 1) * ee, O = p(() => C.slice(D, D + ee), [
|
|
65568
65570
|
C,
|
|
65569
65571
|
D,
|
|
65570
65572
|
ee
|
|
@@ -65597,7 +65599,7 @@ var ZF = {
|
|
|
65597
65599
|
ce.current = w, le.current = E;
|
|
65598
65600
|
let n = ne.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
|
|
65599
65601
|
if (n.forEach((e) => {
|
|
65600
|
-
r.set(e.dataset.cardId,
|
|
65602
|
+
r.set(e.dataset.cardId, MR(e));
|
|
65601
65603
|
}), !e && !t) {
|
|
65602
65604
|
let e = te.current, t = ue.current, i = 0;
|
|
65603
65605
|
if (e) {
|
|
@@ -65653,7 +65655,7 @@ var ZF = {
|
|
|
65653
65655
|
ref: M,
|
|
65654
65656
|
children: /* @__PURE__ */ I("section", {
|
|
65655
65657
|
ref: te,
|
|
65656
|
-
className: R("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2",
|
|
65658
|
+
className: R("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", kR.section, s && kR.sectionLeaving),
|
|
65657
65659
|
style: {
|
|
65658
65660
|
...S,
|
|
65659
65661
|
minHeight: ie
|
|
@@ -65664,16 +65666,16 @@ var ZF = {
|
|
|
65664
65666
|
children: [/* @__PURE__ */ F(wy, {
|
|
65665
65667
|
title: n,
|
|
65666
65668
|
postfix: j,
|
|
65667
|
-
titleClassName: R(b,
|
|
65668
|
-
postfixClassName: R(x,
|
|
65669
|
+
titleClassName: R(b, kR.titleText),
|
|
65670
|
+
postfixClassName: R(x, kR.countText),
|
|
65669
65671
|
trailing: k > 1 ? /* @__PURE__ */ I("div", {
|
|
65670
|
-
className: R("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]",
|
|
65672
|
+
className: R("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", kR.pageNav),
|
|
65671
65673
|
children: [
|
|
65672
65674
|
/* @__PURE__ */ F("button", {
|
|
65673
65675
|
"aria-label": u,
|
|
65674
65676
|
disabled: w === 1,
|
|
65675
65677
|
onClick: () => T((e) => e - 1),
|
|
65676
|
-
className: R("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent",
|
|
65678
|
+
className: R("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", kR.navBtn),
|
|
65677
65679
|
children: /* @__PURE__ */ F(ut, {
|
|
65678
65680
|
size: 14,
|
|
65679
65681
|
className: "rtl:scale-x-[-1]",
|
|
@@ -65681,7 +65683,7 @@ var ZF = {
|
|
|
65681
65683
|
})
|
|
65682
65684
|
}),
|
|
65683
65685
|
/* @__PURE__ */ I("span", {
|
|
65684
|
-
className: R("min-w-[32px] select-none px-1 text-center", x,
|
|
65686
|
+
className: R("min-w-[32px] select-none px-1 text-center", x, kR.countText),
|
|
65685
65687
|
children: [
|
|
65686
65688
|
w,
|
|
65687
65689
|
" / ",
|
|
@@ -65692,7 +65694,7 @@ var ZF = {
|
|
|
65692
65694
|
"aria-label": d,
|
|
65693
65695
|
disabled: w === k,
|
|
65694
65696
|
onClick: () => T((e) => e + 1),
|
|
65695
|
-
className: R("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent",
|
|
65697
|
+
className: R("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", kR.navBtn),
|
|
65696
65698
|
children: /* @__PURE__ */ F(dt, {
|
|
65697
65699
|
size: 14,
|
|
65698
65700
|
className: "rtl:scale-x-[-1]",
|
|
@@ -65703,12 +65705,12 @@ var ZF = {
|
|
|
65703
65705
|
}) : void 0
|
|
65704
65706
|
}), /* @__PURE__ */ F("div", {
|
|
65705
65707
|
ref: ne,
|
|
65706
|
-
className: R("grid content-start gap-5",
|
|
65708
|
+
className: R("grid content-start gap-5", kR.gridPage),
|
|
65707
65709
|
style: {
|
|
65708
65710
|
gridTemplateColumns: `repeat(${E}, minmax(0, 1fr))`,
|
|
65709
65711
|
minHeight: N
|
|
65710
65712
|
},
|
|
65711
|
-
children: O.map((e) => /* @__PURE__ */ F(
|
|
65713
|
+
children: O.map((e) => /* @__PURE__ */ F(AR, {
|
|
65712
65714
|
item: e,
|
|
65713
65715
|
onToggle: r,
|
|
65714
65716
|
isFavoriteVisible: i,
|
|
@@ -65721,7 +65723,7 @@ var ZF = {
|
|
|
65721
65723
|
})]
|
|
65722
65724
|
})
|
|
65723
65725
|
});
|
|
65724
|
-
},
|
|
65726
|
+
}, PR = {
|
|
65725
65727
|
listContainer: "_listContainer_15cmz_1",
|
|
65726
65728
|
gridClip: "_gridClip_15cmz_6",
|
|
65727
65729
|
favHeader: "_favHeader_15cmz_43",
|
|
@@ -65729,14 +65731,14 @@ var ZF = {
|
|
|
65729
65731
|
selectedCheck: "_selectedCheck_15cmz_51",
|
|
65730
65732
|
starToggleOff: "_starToggleOff_15cmz_55",
|
|
65731
65733
|
selectedRow: "_selectedRow_15cmz_68"
|
|
65732
|
-
},
|
|
65734
|
+
}, FR = ({ data: e }) => e ? /* @__PURE__ */ F("div", {
|
|
65733
65735
|
className: "flex h-full items-center",
|
|
65734
65736
|
children: /* @__PURE__ */ F(Ty, { type: e.type })
|
|
65735
|
-
}) : null,
|
|
65737
|
+
}) : null, IR = ({ data: e, context: t }) => !e || e.folder.length === 0 ? null : /* @__PURE__ */ F(he, {
|
|
65736
65738
|
segments: e.folder,
|
|
65737
65739
|
labelClassName: t?.typography?.folderClassName,
|
|
65738
65740
|
leafClassName: t?.typography?.folderLastSegmentClassName
|
|
65739
|
-
}),
|
|
65741
|
+
}), LR = ({ data: e, context: t }) => {
|
|
65740
65742
|
let n = t?.searchQuery ?? "", r = t?.typography, i = r?.nameClassName ?? "dial-small-semi-text", a = r?.versionClassName ?? "dial-tiny-text", o = e != null && e.id === t?.selectedItemId;
|
|
65741
65743
|
return e ? /* @__PURE__ */ I("div", {
|
|
65742
65744
|
className: "flex h-full min-w-0 items-center gap-2.5",
|
|
@@ -65747,7 +65749,7 @@ var ZF = {
|
|
|
65747
65749
|
size: 36,
|
|
65748
65750
|
initialsName: e.name,
|
|
65749
65751
|
styles: { badgeClassName: "rounded-[10px]" }
|
|
65750
|
-
}), /* @__PURE__ */ F(
|
|
65752
|
+
}), /* @__PURE__ */ F(sI, {
|
|
65751
65753
|
credentials: e.credentials,
|
|
65752
65754
|
loggedOutLabel: t?.credentialsBadgeLoggedOutLabel
|
|
65753
65755
|
})]
|
|
@@ -65760,39 +65762,39 @@ var ZF = {
|
|
|
65760
65762
|
className: "min-w-0 items-baseline gap-1.5",
|
|
65761
65763
|
trailing: o ? /* @__PURE__ */ F(ct, {
|
|
65762
65764
|
size: k.SM,
|
|
65763
|
-
className: R("shrink-0",
|
|
65765
|
+
className: R("shrink-0", PR.selectedCheck),
|
|
65764
65766
|
"aria-hidden": !0,
|
|
65765
65767
|
stroke: A
|
|
65766
65768
|
}) : void 0
|
|
65767
65769
|
})]
|
|
65768
65770
|
}) : null;
|
|
65769
|
-
},
|
|
65771
|
+
}, RR = ({ data: e, context: t }) => {
|
|
65770
65772
|
let [n, r] = h(e?.isStarred ?? !1);
|
|
65771
65773
|
return l(() => {
|
|
65772
65774
|
r(e?.isStarred ?? !1);
|
|
65773
65775
|
}, [e?.id, e?.isStarred]), !e || t?.isFavoriteVisible?.(e) === !1 ? null : /* @__PURE__ */ F("div", {
|
|
65774
65776
|
className: "flex h-full items-center justify-end pe-4",
|
|
65775
|
-
children: /* @__PURE__ */ F(
|
|
65777
|
+
children: /* @__PURE__ */ F(lI, {
|
|
65776
65778
|
isStarred: n,
|
|
65777
65779
|
onClick: (i) => {
|
|
65778
65780
|
i.stopPropagation();
|
|
65779
65781
|
let a = !n;
|
|
65780
65782
|
r(a), t?.onToggleFavorite?.(e.id, a);
|
|
65781
65783
|
},
|
|
65782
|
-
className: n ? void 0 :
|
|
65784
|
+
className: n ? void 0 : PR.starToggleOff
|
|
65783
65785
|
})
|
|
65784
65786
|
});
|
|
65785
|
-
},
|
|
65787
|
+
}, zR = ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ F("div", {
|
|
65786
65788
|
className: "flex h-full items-center",
|
|
65787
|
-
children: /* @__PURE__ */ F(
|
|
65788
|
-
}),
|
|
65789
|
+
children: /* @__PURE__ */ F(mI, { topics: e.topics })
|
|
65790
|
+
}), BR = (e, t = !1) => [
|
|
65789
65791
|
{
|
|
65790
65792
|
headerName: "Name",
|
|
65791
65793
|
flex: 1,
|
|
65792
65794
|
minWidth: 220,
|
|
65793
65795
|
field: "name",
|
|
65794
65796
|
filter: !1,
|
|
65795
|
-
cellRenderer:
|
|
65797
|
+
cellRenderer: LR,
|
|
65796
65798
|
valueGetter: (e) => e.data?.name
|
|
65797
65799
|
},
|
|
65798
65800
|
{
|
|
@@ -65802,7 +65804,7 @@ var ZF = {
|
|
|
65802
65804
|
field: "type",
|
|
65803
65805
|
filter: !1,
|
|
65804
65806
|
sortable: !1,
|
|
65805
|
-
cellRenderer:
|
|
65807
|
+
cellRenderer: FR,
|
|
65806
65808
|
valueGetter: (e) => e.data?.type
|
|
65807
65809
|
},
|
|
65808
65810
|
{
|
|
@@ -65812,7 +65814,7 @@ var ZF = {
|
|
|
65812
65814
|
minWidth: 170,
|
|
65813
65815
|
filter: !1,
|
|
65814
65816
|
hide: e === Da.Model,
|
|
65815
|
-
cellRenderer:
|
|
65817
|
+
cellRenderer: IR,
|
|
65816
65818
|
valueGetter: (e) => e.data?.folder
|
|
65817
65819
|
},
|
|
65818
65820
|
{
|
|
@@ -65822,7 +65824,7 @@ var ZF = {
|
|
|
65822
65824
|
minWidth: 230,
|
|
65823
65825
|
filter: !1,
|
|
65824
65826
|
sortable: !1,
|
|
65825
|
-
cellRenderer:
|
|
65827
|
+
cellRenderer: zR,
|
|
65826
65828
|
valueGetter: (e) => e.data?.topics
|
|
65827
65829
|
},
|
|
65828
65830
|
{
|
|
@@ -65834,14 +65836,14 @@ var ZF = {
|
|
|
65834
65836
|
sortable: !1,
|
|
65835
65837
|
resizable: !1,
|
|
65836
65838
|
hide: t,
|
|
65837
|
-
headerClass:
|
|
65838
|
-
cellRenderer:
|
|
65839
|
+
headerClass: PR.favHeader,
|
|
65840
|
+
cellRenderer: RR
|
|
65839
65841
|
}
|
|
65840
|
-
],
|
|
65842
|
+
], VR = 50, HR = (e) => {
|
|
65841
65843
|
if (!e || e === document.body) return null;
|
|
65842
65844
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
65843
|
-
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e :
|
|
65844
|
-
},
|
|
65845
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : HR(e.parentElement);
|
|
65846
|
+
}, UR = ({ items: e, type: t, query: n = "", ariaLabel: r = "Catalog", emptyStateTitle: i, styles: a, onToggleFavorite: o, isFavoriteVisible: s, onItemClick: c, stickyHeaderTop: u, selectedItemId: d, credentialsBadgeLoggedOutLabel: f, isReadonly: g = !1 }) => {
|
|
65845
65847
|
if (e.length === 0) return /* @__PURE__ */ F("div", {
|
|
65846
65848
|
className: "flex size-full flex-col items-center justify-center",
|
|
65847
65849
|
children: /* @__PURE__ */ F(Sy, { label: i ?? "No results" })
|
|
@@ -65857,17 +65859,17 @@ var ZF = {
|
|
|
65857
65859
|
"--cat-list-selected-bg": v?.selectedRowBackground,
|
|
65858
65860
|
"--cat-list-selected-check": v?.selectedRowCheckIcon,
|
|
65859
65861
|
...u == null ? {} : { "--list-header-sticky-top": `${u}px` }
|
|
65860
|
-
}, b = m(null), x = m(null), [S, C] = h(() => Math.min(e.length,
|
|
65862
|
+
}, b = m(null), x = m(null), [S, C] = h(() => Math.min(e.length, VR)), w = m(e);
|
|
65861
65863
|
l(() => {
|
|
65862
|
-
w.current !== e && (w.current = e, C(Math.min(e.length,
|
|
65864
|
+
w.current !== e && (w.current = e, C(Math.min(e.length, VR)));
|
|
65863
65865
|
}, [e]), l(() => {
|
|
65864
65866
|
let t = x.current;
|
|
65865
65867
|
if (!t) return;
|
|
65866
|
-
let n =
|
|
65868
|
+
let n = HR(t.parentElement);
|
|
65867
65869
|
if (!n) return;
|
|
65868
65870
|
let r = () => {
|
|
65869
65871
|
let r = n.getBoundingClientRect(), i = t.getBoundingClientRect();
|
|
65870
|
-
i.top < r.bottom && i.bottom > r.top && C((t) => Math.min(e.length, t +
|
|
65872
|
+
i.top < r.bottom && i.bottom > r.top && C((t) => Math.min(e.length, t + VR));
|
|
65871
65873
|
};
|
|
65872
65874
|
return n.addEventListener("scroll", r, { passive: !0 }), r(), () => n.removeEventListener("scroll", r);
|
|
65873
65875
|
}, [e.length]);
|
|
@@ -65880,11 +65882,11 @@ var ZF = {
|
|
|
65880
65882
|
b.current?.setGridOption("domLayout", e.length > 0 ? "autoHeight" : "normal");
|
|
65881
65883
|
}, [e]), /* @__PURE__ */ F("div", {
|
|
65882
65884
|
style: y,
|
|
65883
|
-
className: $e("w-full rounded-xl border",
|
|
65885
|
+
className: $e("w-full rounded-xl border", PR.listContainer),
|
|
65884
65886
|
children: /* @__PURE__ */ I("div", {
|
|
65885
|
-
className: $e("rounded-xl",
|
|
65887
|
+
className: $e("rounded-xl", PR.gridClip),
|
|
65886
65888
|
children: [/* @__PURE__ */ F(ve, {
|
|
65887
|
-
columnDefs:
|
|
65889
|
+
columnDefs: BR(t, g),
|
|
65888
65890
|
rowData: T,
|
|
65889
65891
|
getRowId: (e) => e.id,
|
|
65890
65892
|
withoutHeaderBorders: !0,
|
|
@@ -65911,7 +65913,7 @@ var ZF = {
|
|
|
65911
65913
|
e.column.getColDef().field !== "isStarred" && e.data && c(e.data);
|
|
65912
65914
|
} : void 0,
|
|
65913
65915
|
rowClass: c ? "cursor-pointer" : void 0,
|
|
65914
|
-
getRowClass: (e) => e.data?.id === d ?
|
|
65916
|
+
getRowClass: (e) => e.data?.id === d ? PR.selectedRow : void 0
|
|
65915
65917
|
},
|
|
65916
65918
|
ariaLabel: r
|
|
65917
65919
|
}), S < e.length && /* @__PURE__ */ F("div", {
|
|
@@ -65921,7 +65923,7 @@ var ZF = {
|
|
|
65921
65923
|
})]
|
|
65922
65924
|
})
|
|
65923
65925
|
});
|
|
65924
|
-
},
|
|
65926
|
+
}, WR = {
|
|
65925
65927
|
filterBtn: "_filterBtn_ehf8i_1",
|
|
65926
65928
|
filterBtnActive: "_filterBtnActive_ehf8i_18",
|
|
65927
65929
|
filterBtnOpen: "_filterBtnOpen_ehf8i_22",
|
|
@@ -65935,13 +65937,13 @@ var ZF = {
|
|
|
65935
65937
|
divider: "_divider_ehf8i_74",
|
|
65936
65938
|
sectionLabel: "_sectionLabel_ehf8i_78",
|
|
65937
65939
|
footer: "_footer_ehf8i_82"
|
|
65938
|
-
},
|
|
65940
|
+
}, GR = (e, t, n, r, i) => {
|
|
65939
65941
|
let a = e.size > 0;
|
|
65940
65942
|
return n && a ? `${r} · ${e.size}` : n ? r : a ? Tn(e, t, i) : i;
|
|
65941
|
-
},
|
|
65943
|
+
}, KR = (e, t) => {
|
|
65942
65944
|
let n = new Set(t);
|
|
65943
65945
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
65944
|
-
},
|
|
65946
|
+
}, qR = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: a = "My", topicsLabel: o = "Topics", defaultLabel: c = "From", clearLabel: u = "Clear", applyLabel: d = "Apply", typography: f, colors: g }) => {
|
|
65945
65947
|
let _ = (r ?? !1) || e.size > 0, [v, y] = h(!1), b = os({
|
|
65946
65948
|
"--cat-filter-btn-bg": g?.buttonBackground,
|
|
65947
65949
|
"--cat-filter-btn-border": g?.buttonBorder,
|
|
@@ -65961,7 +65963,7 @@ var ZF = {
|
|
|
65961
65963
|
"--cat-filter-section-label": g?.sectionLabel,
|
|
65962
65964
|
"--cat-filter-divider": g?.divider,
|
|
65963
65965
|
"--cat-filter-footer-border": g?.footerBorder
|
|
65964
|
-
}), x = p(() => n == null ? [] : [...n].sort(), [n]), C =
|
|
65966
|
+
}), x = p(() => n == null ? [] : [...n].sort(), [n]), C = GR(e, n, r, a, c), [w, T] = h(() => new Set(e)), [E, ee] = h(r ?? !1);
|
|
65965
65967
|
l(() => {
|
|
65966
65968
|
v && (T(new Set(e)), ee(r ?? !1));
|
|
65967
65969
|
}, [
|
|
@@ -66005,7 +66007,7 @@ var ZF = {
|
|
|
66005
66007
|
"aria-label": c,
|
|
66006
66008
|
tabIndex: -1,
|
|
66007
66009
|
style: b,
|
|
66008
|
-
className: R("min-w-[360px] rounded-xl p-[6px]",
|
|
66010
|
+
className: R("min-w-[360px] rounded-xl p-[6px]", WR.overlay),
|
|
66009
66011
|
onKeyDown: ie,
|
|
66010
66012
|
children: [
|
|
66011
66013
|
/* @__PURE__ */ I("div", {
|
|
@@ -66015,32 +66017,32 @@ var ZF = {
|
|
|
66015
66017
|
ref: (e) => {
|
|
66016
66018
|
M.current[0] = e;
|
|
66017
66019
|
},
|
|
66018
|
-
className: R("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none",
|
|
66020
|
+
className: R("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", WR.row, E && WR.rowChecked),
|
|
66019
66021
|
onClick: () => ee(!E),
|
|
66020
66022
|
onKeyDown: ae(() => ee(!E)),
|
|
66021
66023
|
children: [/* @__PURE__ */ F(S, {
|
|
66022
66024
|
isSelected: E,
|
|
66023
66025
|
className: "shrink-0"
|
|
66024
66026
|
}), /* @__PURE__ */ F("span", {
|
|
66025
|
-
className: R(
|
|
66027
|
+
className: R(WR.rowLabel, f?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
66026
66028
|
children: a
|
|
66027
66029
|
})]
|
|
66028
66030
|
}),
|
|
66029
66031
|
x.length > 0 && /* @__PURE__ */ I(tt, { children: [
|
|
66030
66032
|
/* @__PURE__ */ F("div", {
|
|
66031
66033
|
role: "separator",
|
|
66032
|
-
className: R("my-1 h-px",
|
|
66034
|
+
className: R("my-1 h-px", WR.divider),
|
|
66033
66035
|
"aria-hidden": !0
|
|
66034
66036
|
}),
|
|
66035
66037
|
/* @__PURE__ */ F("div", {
|
|
66036
|
-
className: R("px-[10px] pb-1 pt-[10px]", f?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text",
|
|
66038
|
+
className: R("px-[10px] pb-1 pt-[10px]", f?.filterSectionLabelClassName ?? "dial-tiny-lead-semi-text", WR.sectionLabel),
|
|
66037
66039
|
"aria-hidden": !0,
|
|
66038
66040
|
children: o
|
|
66039
66041
|
}),
|
|
66040
66042
|
/* @__PURE__ */ F("div", {
|
|
66041
66043
|
className: "flex max-h-[220px] flex-col gap-1 overflow-y-auto",
|
|
66042
66044
|
children: x.map((e, t) => {
|
|
66043
|
-
let n = w.has(e), r = t + 1, i = () => T(
|
|
66045
|
+
let n = w.has(e), r = t + 1, i = () => T(KR(e, w));
|
|
66044
66046
|
return /* @__PURE__ */ I("div", {
|
|
66045
66047
|
role: "menuitemcheckbox",
|
|
66046
66048
|
"aria-checked": n,
|
|
@@ -66048,14 +66050,14 @@ var ZF = {
|
|
|
66048
66050
|
ref: (e) => {
|
|
66049
66051
|
M.current[r] = e;
|
|
66050
66052
|
},
|
|
66051
|
-
className: R("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none",
|
|
66053
|
+
className: R("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", WR.row, n && WR.rowChecked),
|
|
66052
66054
|
onClick: i,
|
|
66053
66055
|
onKeyDown: ae(i),
|
|
66054
66056
|
children: [/* @__PURE__ */ F(S, {
|
|
66055
66057
|
isSelected: n,
|
|
66056
66058
|
className: "shrink-0"
|
|
66057
66059
|
}), /* @__PURE__ */ F("span", {
|
|
66058
|
-
className:
|
|
66060
|
+
className: WR.rowLabel,
|
|
66059
66061
|
children: e
|
|
66060
66062
|
})]
|
|
66061
66063
|
}, e);
|
|
@@ -66063,7 +66065,7 @@ var ZF = {
|
|
|
66063
66065
|
})
|
|
66064
66066
|
] }),
|
|
66065
66067
|
/* @__PURE__ */ I("div", {
|
|
66066
|
-
className: R("mt-1 flex items-center px-1 py-3",
|
|
66068
|
+
className: R("mt-1 flex items-center px-1 py-3", WR.footer),
|
|
66067
66069
|
onKeyDown: (e) => {
|
|
66068
66070
|
(e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
|
|
66069
66071
|
},
|
|
@@ -66085,31 +66087,31 @@ var ZF = {
|
|
|
66085
66087
|
"aria-expanded": v,
|
|
66086
66088
|
onKeyDown: re,
|
|
66087
66089
|
style: b,
|
|
66088
|
-
className: R("flex h-[50px] shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-xl px-[18px]",
|
|
66090
|
+
className: R("flex h-[50px] shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-xl px-[18px]", WR.filterBtn, _ && WR.filterBtnActive, v && WR.filterBtnOpen),
|
|
66089
66091
|
children: [
|
|
66090
66092
|
/* @__PURE__ */ F(Tt, {
|
|
66091
66093
|
size: k.SM,
|
|
66092
66094
|
stroke: A,
|
|
66093
|
-
className: R("shrink-0",
|
|
66095
|
+
className: R("shrink-0", WR.filterBtnFunnel),
|
|
66094
66096
|
"aria-hidden": !0
|
|
66095
66097
|
}),
|
|
66096
66098
|
/* @__PURE__ */ F("span", {
|
|
66097
|
-
className: R(
|
|
66099
|
+
className: R(WR.filterBtnLabel, f?.filterButtonClassName ?? "dial-small-semi-text"),
|
|
66098
66100
|
children: C
|
|
66099
66101
|
}),
|
|
66100
66102
|
/* @__PURE__ */ F(lt, {
|
|
66101
66103
|
size: 14,
|
|
66102
66104
|
stroke: A,
|
|
66103
|
-
className: R("shrink-0 transition-transform duration-150",
|
|
66105
|
+
className: R("shrink-0 transition-transform duration-150", WR.filterBtnChevron, v && "rotate-180"),
|
|
66104
66106
|
"aria-hidden": !0
|
|
66105
66107
|
})
|
|
66106
66108
|
]
|
|
66107
66109
|
})
|
|
66108
66110
|
});
|
|
66109
|
-
},
|
|
66111
|
+
}, JR = {
|
|
66110
66112
|
section: "_section_mh952_1",
|
|
66111
66113
|
divider: "_divider_mh952_5"
|
|
66112
|
-
},
|
|
66114
|
+
}, YR = ({ totalCount: e, viewMode: t, onViewModeChange: n, title: r = "Browse", styles: i, query: a, onQueryChange: o, searchPlaceholder: s, gridViewLabel: c = "Grid view", listViewLabel: l = "List view", viewToggleLabel: u = "View mode", sortKey: d, sortOptions: f, filters: m, onFiltersChange: h, filterValues: g, isMyAppsActive: b, onMyAppsChange: x, filterFromLabel: S, filterMyAppsLabel: C, filterTopicsLabel: w }) => {
|
|
66113
66115
|
let T = i?.typography?.titleClassName ?? "dial-body-semi-text", E = i?.typography?.countClassName ?? "dial-tiny-semi-text", ee = p(() => [{
|
|
66114
66116
|
value: xn.Grid,
|
|
66115
66117
|
icon: /* @__PURE__ */ F(At, {
|
|
@@ -66149,7 +66151,7 @@ var ZF = {
|
|
|
66149
66151
|
value: t,
|
|
66150
66152
|
onChange: n,
|
|
66151
66153
|
items: ee
|
|
66152
|
-
}), f != null && f.length > 0 && /* @__PURE__ */ I(tt, { children: [/* @__PURE__ */ F("div", { className: R("h-4 w-px shrink-0",
|
|
66154
|
+
}), f != null && f.length > 0 && /* @__PURE__ */ I(tt, { children: [/* @__PURE__ */ F("div", { className: R("h-4 w-px shrink-0", JR.divider) }), /* @__PURE__ */ F(v, {
|
|
66153
66155
|
label: D,
|
|
66154
66156
|
variant: y.Primary,
|
|
66155
66157
|
appearance: _.Ghost,
|
|
@@ -66170,7 +66172,7 @@ var ZF = {
|
|
|
66170
66172
|
placeholder: s,
|
|
66171
66173
|
"aria-label": s
|
|
66172
66174
|
})
|
|
66173
|
-
}), /* @__PURE__ */ F(
|
|
66175
|
+
}), /* @__PURE__ */ F(qR, {
|
|
66174
66176
|
checked: m ?? /* @__PURE__ */ new Set(),
|
|
66175
66177
|
onChange: h ?? (() => void 0),
|
|
66176
66178
|
values: g,
|
|
@@ -66183,12 +66185,12 @@ var ZF = {
|
|
|
66183
66185
|
})]
|
|
66184
66186
|
})]
|
|
66185
66187
|
});
|
|
66186
|
-
},
|
|
66188
|
+
}, XR = ({ query: e, onQueryChange: t, searchPlaceholder: n = "Search models, tools, agents…", styles: r, filters: i, onFiltersChange: a, filterValues: o, isMyAppsActive: s, onMyAppsChange: c, filterFromLabel: l, filterMyAppsLabel: u, filterTopicsLabel: d, gridViewLabel: f, listViewLabel: p, viewToggleLabel: m, sortKey: h, sortOptions: g, ..._ }) => {
|
|
66187
66189
|
let v = { "--cat-browse-divider": r?.colors?.divider };
|
|
66188
66190
|
return /* @__PURE__ */ F("section", {
|
|
66189
|
-
className: R("flex-shrink-0 px-4",
|
|
66191
|
+
className: R("flex-shrink-0 px-4", JR.section),
|
|
66190
66192
|
style: v,
|
|
66191
|
-
children: /* @__PURE__ */ F(
|
|
66193
|
+
children: /* @__PURE__ */ F(YR, {
|
|
66192
66194
|
styles: r,
|
|
66193
66195
|
query: e,
|
|
66194
66196
|
onQueryChange: t,
|
|
@@ -66209,11 +66211,11 @@ var ZF = {
|
|
|
66209
66211
|
..._
|
|
66210
66212
|
})
|
|
66211
66213
|
});
|
|
66212
|
-
},
|
|
66214
|
+
}, ZR = {
|
|
66213
66215
|
root: "_root_1h83l_1",
|
|
66214
66216
|
heading: "_heading_1h83l_5",
|
|
66215
66217
|
headingTitle: "_headingTitle_1h83l_9"
|
|
66216
|
-
},
|
|
66218
|
+
}, QR = ({ label: e, options: t, onClick: n }) => {
|
|
66217
66219
|
let r = m(null);
|
|
66218
66220
|
return t?.length ? /* @__PURE__ */ F("div", {
|
|
66219
66221
|
ref: r,
|
|
@@ -66235,8 +66237,8 @@ var ZF = {
|
|
|
66235
66237
|
}),
|
|
66236
66238
|
onClick: n
|
|
66237
66239
|
});
|
|
66238
|
-
},
|
|
66239
|
-
let { typography: Fe } = Ce ?? {}, Ie =
|
|
66240
|
+
}, $R = ({ items: e, favorites: t, titles: n, onToggleFavorite: r, isFavoriteVisible: i, onUseInChat: a, isPrimaryActionVisible: o, onShare: c, isPublishVisible: u, isPublishPrimary: d, getPublishHistory: f, publishFolderItems: g, publishExpandedPaths: _, onPublishExpandedPathsChange: v, publishLoadingPaths: y, hasPublishWriteAccess: b, onPublish: x, onPublishSuccess: S, onPublishError: C, onCreatePublishFolder: w, publishLabels: T, ruleSourceOptions: E, onFetchExistingRules: ee, shareOverlay: D, isShareVisible: O, isSharePrimary: k, onFetchDetails: A, onEdit: j, onDownload: M, isDownloadVisible: te, isDownloadPrimary: ne, onLoadContentFile: N, onLoadContentFilePreview: re, renderContentFilePreview: ie, onDelete: ae, onUnshare: oe, isUnshareVisible: se, onRevokeShare: ce, onFetchRecipientsCount: le, isRevokeShareVisible: ue, onUnpublish: de, isUnpublishVisible: fe, onLogin: pe, onLogout: me, onCreateClick: he, createOptions: ge, hideCreateButton: _e = !1, hidePageTitle: ve = !1, isReadonly: ye = !1, initialViewMode: be = xn.List, selectedItemId: P, onCardClick: xe, isLoading: Se, styles: Ce, detailsTexts: we, detailsLimitsFooterNote: Te, initialDetailsItemId: Ee, sortKey: De, onSortChange: Oe, filterTopics: ke, onFilterTopicsChange: Ae, isMyAppsActive: je, onMyAppsActiveChange: Me, activeTab: Ne, onActiveTabChange: Pe }) => {
|
|
66241
|
+
let { typography: Fe } = Ce ?? {}, Ie = $F(Ce), Le = n?.pageTitle ?? "Catalog", Re = n?.createLabel ?? "Create", ze = n?.favoritesTitle ?? "Your favorites", Be = n?.browseTitle ?? "Browse", He = n?.searchPlaceholder ?? "Search models, tools, agents…", We = n?.noResultsTitle ?? ((e) => `No results for "${e}"`), Ge = n?.featuredLabel ?? "Featured", Ke = n?.gridViewLabel ?? "Grid view", qe = n?.listViewLabel ?? "List view", Je = n?.viewToggleLabel ?? "View mode", Ye = n?.ariaLabel ?? "Catalog", Xe = [
|
|
66240
66242
|
{
|
|
66241
66243
|
key: Sn.RecentlyUpdated,
|
|
66242
66244
|
label: n?.sortRecentlyUpdatedLabel ?? "Recently Updated",
|
|
@@ -66259,7 +66261,7 @@ var ZF = {
|
|
|
66259
66261
|
ot(e), Ae?.(e);
|
|
66260
66262
|
}, [Ae]), mt = s((e) => {
|
|
66261
66263
|
ct(e), Me?.(e);
|
|
66262
|
-
}, [Me]), ht = p(() => e.filter((e) => !e.isHidden), [e]), gt = p(() => new Set(ht.flatMap((e) => e.topics)), [ht]), _t = p(() =>
|
|
66264
|
+
}, [Me]), ht = p(() => e.filter((e) => !e.isHidden), [e]), gt = p(() => new Set(ht.flatMap((e) => e.topics)), [ht]), _t = p(() => QF(ht, n?.tabLabels), [ht, n?.tabLabels]), vt = _t[0]?.id ?? "", [yt, bt] = h(vt);
|
|
66263
66265
|
l(() => {
|
|
66264
66266
|
bt((e) => e || vt);
|
|
66265
66267
|
}, [vt]);
|
|
@@ -66339,17 +66341,17 @@ var ZF = {
|
|
|
66339
66341
|
children: /* @__PURE__ */ F(Ve, {})
|
|
66340
66342
|
}) : /* @__PURE__ */ I("section", {
|
|
66341
66343
|
"aria-label": Ye,
|
|
66342
|
-
className: R("flex size-full min-h-0 flex-1 flex-col",
|
|
66344
|
+
className: R("flex size-full min-h-0 flex-1 flex-col", ZR.root),
|
|
66343
66345
|
style: Ie,
|
|
66344
66346
|
children: [
|
|
66345
66347
|
(!ve || Yt) && /* @__PURE__ */ F("div", {
|
|
66346
|
-
className: R("shrink-0",
|
|
66348
|
+
className: R("shrink-0", ZR.heading),
|
|
66347
66349
|
children: /* @__PURE__ */ I("div", {
|
|
66348
66350
|
className: "flex h-[64px] w-full items-center justify-between px-8",
|
|
66349
66351
|
children: [!ve && /* @__PURE__ */ F("h1", {
|
|
66350
|
-
className: R(Fe?.pageHeadingFontClassName ?? "dial-display2-text",
|
|
66352
|
+
className: R(Fe?.pageHeadingFontClassName ?? "dial-display2-text", ZR.headingTitle),
|
|
66351
66353
|
children: Le
|
|
66352
|
-
}), Yt && /* @__PURE__ */ F(
|
|
66354
|
+
}), Yt && /* @__PURE__ */ F(QR, {
|
|
66353
66355
|
label: Re,
|
|
66354
66356
|
options: ge,
|
|
66355
66357
|
onClick: he
|
|
@@ -66361,7 +66363,7 @@ var ZF = {
|
|
|
66361
66363
|
children: [
|
|
66362
66364
|
Xt && /* @__PURE__ */ F("div", {
|
|
66363
66365
|
className: "w-full px-8",
|
|
66364
|
-
children: /* @__PURE__ */ F(
|
|
66366
|
+
children: /* @__PURE__ */ F(NR, {
|
|
66365
66367
|
items: t,
|
|
66366
66368
|
totalCount: t.length,
|
|
66367
66369
|
title: ze,
|
|
@@ -66376,7 +66378,7 @@ var ZF = {
|
|
|
66376
66378
|
}),
|
|
66377
66379
|
/* @__PURE__ */ F("div", {
|
|
66378
66380
|
className: "w-full px-4 pt-6",
|
|
66379
|
-
children: /* @__PURE__ */ F(
|
|
66381
|
+
children: /* @__PURE__ */ F(XR, {
|
|
66380
66382
|
totalCount: Gt.length,
|
|
66381
66383
|
viewMode: $e,
|
|
66382
66384
|
onViewModeChange: Jt,
|
|
@@ -66415,7 +66417,7 @@ var ZF = {
|
|
|
66415
66417
|
className: R(Kt.length > 0 ? "mx-auto min-h-full w-full max-w-[1180px] px-8 py-6" : "min-h-[180px] flex-1", Kt.length === 0 && "px-8 py-6"),
|
|
66416
66418
|
children: [/* @__PURE__ */ F("div", {
|
|
66417
66419
|
className: R(Kt.length > 0 ? "pb-8" : "size-full flex-1", $e !== xn.Grid && "hidden"),
|
|
66418
|
-
children: /* @__PURE__ */ F(
|
|
66420
|
+
children: /* @__PURE__ */ F(_I, {
|
|
66419
66421
|
items: Kt,
|
|
66420
66422
|
query: Ze,
|
|
66421
66423
|
onToggleFavorite: r,
|
|
@@ -66427,7 +66429,7 @@ var ZF = {
|
|
|
66427
66429
|
})
|
|
66428
66430
|
}), tt && /* @__PURE__ */ F("div", {
|
|
66429
66431
|
className: R("pb-8", $e !== xn.List && "hidden", Kt.length === 0 && "h-full"),
|
|
66430
|
-
children: /* @__PURE__ */ F(
|
|
66432
|
+
children: /* @__PURE__ */ F(UR, {
|
|
66431
66433
|
type: xt,
|
|
66432
66434
|
items: Kt,
|
|
66433
66435
|
query: Ze,
|
|
@@ -66445,7 +66447,7 @@ var ZF = {
|
|
|
66445
66447
|
})
|
|
66446
66448
|
]
|
|
66447
66449
|
}),
|
|
66448
|
-
Vt != null && /* @__PURE__ */ F(
|
|
66450
|
+
Vt != null && /* @__PURE__ */ F(OR, {
|
|
66449
66451
|
item: Vt,
|
|
66450
66452
|
isOpen: kt,
|
|
66451
66453
|
isStarred: qt,
|
|
@@ -66499,4 +66501,4 @@ var ZF = {
|
|
|
66499
66501
|
});
|
|
66500
66502
|
};
|
|
66501
66503
|
//#endregion
|
|
66502
|
-
export {
|
|
66504
|
+
export { aI as AppIdentity, hI as Card, _I as CardGrid, gI as CardRowRenderer, $R as Catalog, Cn as CatalogContentNodeType, wn as CatalogContentPreviewType, un as CatalogDetailsTab, dn as CatalogLimitStatus, Sn as CatalogSortKey, xn as CatalogViewMode, ln as CodeLanguage, YL as ContentTab, gn as CredentialStatus, sI as CredentialsBadge, yn as CredentialsBadgeState, _n as CredentialsLevel, vn as CredentialsUiState, mn as DeploymentSize, fn as DetailsConfirmationKind, pn as DetailsConfirmationVariant, AR as FavoriteCard, NR as Favorites, qR as Filter, mL as InfoCard, UR as ListView, XR as Toolbar, hn as ToolsetAuthenticationType, fI as TopicTag, On as filterCatalogItems, Nn as getCredentialsBadgeState, Mn as getCredentialsUiState, Pn as getSignedInLevel, kn as sortCatalogItems, An as useFavColumns, nI as useScrollVirtualizer };
|