@epam/ai-dial-catalog 1.0.0-dev.512 → 1.0.0-dev.513
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/AppIdentity/AppIdentity.d.ts +4 -5
- package/components/AppIdentity/AppIdentity.d.ts.map +1 -1
- package/components/CardGrid/Card.d.ts.map +1 -1
- package/components/EntityTypeLabel/EntityTypeLabel.d.ts +16 -0
- package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +1 -0
- package/components/Favorites/FavoriteCard.d.ts.map +1 -1
- package/components/ListView/ListView.d.ts.map +1 -1
- package/components/ListView/Renders/NameCellRenderer.d.ts.map +1 -1
- package/components/ListView/Renders/StarCellRenderer.d.ts.map +1 -1
- package/components/ListView/Renders/TagsCellRenderer.d.ts.map +1 -1
- package/components/ListView/columns.d.ts.map +1 -1
- package/components/TopicTag/TopicTag.d.ts +9 -0
- package/components/TopicTag/TopicTag.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +495 -500
- package/models/list-props.d.ts +0 -4
- package/models/list-props.d.ts.map +1 -1
- package/package.json +4 -4
- package/components/EntityBadge/EntityBadge.d.ts +0 -12
- package/components/EntityBadge/EntityBadge.d.ts.map +0 -1
package/index.js
CHANGED
|
@@ -25889,9 +25889,9 @@ var gb = 2e3, _b = (e, t = gb) => {
|
|
|
25889
25889
|
})]
|
|
25890
25890
|
});
|
|
25891
25891
|
}), Eb = {
|
|
25892
|
-
thinking: "
|
|
25893
|
-
"cm-shimmer": "_cm-
|
|
25894
|
-
secondaryBorder: "
|
|
25892
|
+
thinking: "_thinking_1b9r7_9",
|
|
25893
|
+
"cm-shimmer": "_cm-shimmer_1b9r7_1",
|
|
25894
|
+
secondaryBorder: "_secondaryBorder_1b9r7_18"
|
|
25895
25895
|
}, Db = 1, Ob = () => {
|
|
25896
25896
|
let e = u(null), t = u(null), [n, r] = d(!1), [i, o] = d(!1), s = a(() => {
|
|
25897
25897
|
let n = e.current, i = t.current;
|
|
@@ -25913,29 +25913,38 @@ var gb = 2e3, _b = (e, t = gb) => {
|
|
|
25913
25913
|
handleScroll: s
|
|
25914
25914
|
};
|
|
25915
25915
|
}, kb = {
|
|
25916
|
-
|
|
25917
|
-
|
|
25918
|
-
|
|
25919
|
-
|
|
25920
|
-
|
|
25921
|
-
|
|
25916
|
+
tableContainer: "_tableContainer_g3hpg_1",
|
|
25917
|
+
tableContainerLight: "_tableContainerLight_g3hpg_6",
|
|
25918
|
+
scrollContainer: "_scrollContainer_g3hpg_10",
|
|
25919
|
+
tableHeaderCell: "_tableHeaderCell_g3hpg_25",
|
|
25920
|
+
sectionRow: "_sectionRow_g3hpg_29",
|
|
25921
|
+
row: "_row_g3hpg_33",
|
|
25922
|
+
rowDivider: "_rowDivider_g3hpg_37",
|
|
25923
|
+
tableScrollFadeEnd: "_tableScrollFadeEnd_g3hpg_45",
|
|
25924
|
+
tableScrollFadeStart: "_tableScrollFadeStart_g3hpg_53",
|
|
25925
|
+
tableScrollFadeBoth: "_tableScrollFadeBoth_g3hpg_61"
|
|
25926
|
+
}, Ab = i(({ children: e, classNames: t, colors: n, scrollRegionAriaLabel: r = "Scrollable table" }) => {
|
|
25927
|
+
let { scrollContainerRef: i, tableRef: a, hasContentBeyondStart: o, hasContentBeyondEnd: s, handleScroll: c } = Ob(), l = Zn({
|
|
25928
|
+
"--cm-markdown-border": n?.border,
|
|
25929
|
+
"--cm-table-scrollbar": n?.scrollbar,
|
|
25930
|
+
"--cm-table-fade": n?.fade
|
|
25931
|
+
}), u = o || s;
|
|
25922
25932
|
return /* @__PURE__ */ L("div", {
|
|
25923
|
-
style:
|
|
25924
|
-
|
|
25925
|
-
"--cm-table-scrollbar": n?.scrollbar,
|
|
25926
|
-
"--cm-table-fade": n?.fade
|
|
25927
|
-
}),
|
|
25928
|
-
className: G("relative w-full min-w-0 max-w-full overflow-hidden", t.tableWrapper),
|
|
25933
|
+
style: l,
|
|
25934
|
+
className: G("relative w-full min-w-0 max-w-full overflow-hidden rounded-xl border", kb.tableContainer, kb.tableContainerLight, t.tableWrapper),
|
|
25929
25935
|
children: /* @__PURE__ */ L("div", {
|
|
25930
|
-
ref:
|
|
25931
|
-
className: G("w-full min-w-0 max-w-full overflow-x-auto
|
|
25932
|
-
[kb.tableScrollFadeBoth]:
|
|
25933
|
-
[kb.tableScrollFadeStart]:
|
|
25934
|
-
[kb.tableScrollFadeEnd]: !
|
|
25936
|
+
ref: i,
|
|
25937
|
+
className: G("w-full min-w-0 max-w-full overflow-x-auto", kb.scrollContainer, {
|
|
25938
|
+
[kb.tableScrollFadeBoth]: o && s,
|
|
25939
|
+
[kb.tableScrollFadeStart]: o && !s,
|
|
25940
|
+
[kb.tableScrollFadeEnd]: !o && s
|
|
25935
25941
|
}),
|
|
25936
|
-
onScroll:
|
|
25942
|
+
onScroll: c,
|
|
25943
|
+
role: u ? "region" : void 0,
|
|
25944
|
+
"aria-label": u ? r : void 0,
|
|
25945
|
+
tabIndex: u ? 0 : void 0,
|
|
25937
25946
|
children: /* @__PURE__ */ L("table", {
|
|
25938
|
-
ref:
|
|
25947
|
+
ref: a,
|
|
25939
25948
|
className: G("w-max min-w-full border-collapse", t.tableFont ?? "text-sm"),
|
|
25940
25949
|
children: e
|
|
25941
25950
|
})
|
|
@@ -25951,7 +25960,7 @@ var gb = 2e3, _b = (e, t = gb) => {
|
|
|
25951
25960
|
}), Mb = [tp], Nb = {}, Pb = { li: ({ children: e }) => /* @__PURE__ */ L("li", {
|
|
25952
25961
|
className: "mb-1.5 last:mb-0",
|
|
25953
25962
|
children: e
|
|
25954
|
-
}) }, Fb = (e, t, n, r, i) => ({
|
|
25963
|
+
}) }, Fb = (e) => e ? e.type === "text" ? e.value ?? "" : (e.children ?? []).map(Fb).join("") : "", Ib = (e, t, n, r, i, a) => ({
|
|
25955
25964
|
h1: ({ children: t }) => /* @__PURE__ */ L("h1", {
|
|
25956
25965
|
className: e.h1,
|
|
25957
25966
|
children: t
|
|
@@ -26033,23 +26042,32 @@ var gb = 2e3, _b = (e, t = gb) => {
|
|
|
26033
26042
|
input: ({ type: e, checked: t }) => e === "checkbox" ? /* @__PURE__ */ L(jb, { checked: t ?? !1 }) : null,
|
|
26034
26043
|
table: ({ children: t }) => /* @__PURE__ */ L(Ab, {
|
|
26035
26044
|
classNames: e,
|
|
26045
|
+
scrollRegionAriaLabel: a,
|
|
26036
26046
|
children: t
|
|
26037
26047
|
}),
|
|
26048
|
+
tr: ({ children: e, node: t }) => {
|
|
26049
|
+
let n = t?.children.filter((e) => e.type === "element") ?? [], r = n.some((e) => e.tagName === "th"), i = n.filter((e) => Fb(e).trim().length > 0).length, a = !r && n.length > 1 && i === 1;
|
|
26050
|
+
return /* @__PURE__ */ L("tr", {
|
|
26051
|
+
className: G(kb.row, a && kb.sectionRow),
|
|
26052
|
+
children: e
|
|
26053
|
+
});
|
|
26054
|
+
},
|
|
26038
26055
|
th: ({ children: t }) => /* @__PURE__ */ L("th", {
|
|
26039
|
-
|
|
26056
|
+
scope: "col",
|
|
26057
|
+
className: G("sticky top-0 z-[2] max-w-96 whitespace-normal break-words border-b px-3 py-2.5 text-start [overflow-wrap:anywhere]", kb.rowDivider, kb.tableHeaderCell, e.tableHeaderFont ?? "dial-tiny-semi-text uppercase tracking-wider text-secondary", e.tableCell, e.tableHeader),
|
|
26040
26058
|
children: t
|
|
26041
26059
|
}),
|
|
26042
26060
|
td: ({ children: t }) => /* @__PURE__ */ L("td", {
|
|
26043
|
-
className: G("max-w-96 whitespace-normal break-words border-b px-3 py-2.5 align-top",
|
|
26061
|
+
className: G("max-w-96 whitespace-normal break-words border-b px-3 py-2.5 align-top [overflow-wrap:anywhere]", kb.rowDivider, e.tableBodyCell, e.tableCell),
|
|
26044
26062
|
children: t
|
|
26045
26063
|
})
|
|
26046
|
-
}),
|
|
26047
|
-
let
|
|
26064
|
+
}), Lb = i(({ content: e, isStreaming: t, streamCharactersPerSecond: n, classNames: r = Nb, components: i, thinkingLabel: a = "Thinking", codeBlockCopyLabel: o, codeBlockCopiedLabel: s, codeBlockTheme: c, colors: u, tableScrollRegionAriaLabel: d }) => {
|
|
26065
|
+
let f = cp(e, t, n), p = Zn({
|
|
26048
26066
|
"--cm-thinking-inverted": u?.thinkingPrimary,
|
|
26049
26067
|
"--cm-thinking-secondary": u?.thinkingSecondary,
|
|
26050
26068
|
"--cm-markdown-border": u?.border
|
|
26051
|
-
}),
|
|
26052
|
-
...
|
|
26069
|
+
}), m = l(() => ({
|
|
26070
|
+
...Ib(r, t, o, s, c, d),
|
|
26053
26071
|
...Pb,
|
|
26054
26072
|
...i
|
|
26055
26073
|
}), [
|
|
@@ -26058,21 +26076,22 @@ var gb = 2e3, _b = (e, t = gb) => {
|
|
|
26058
26076
|
o,
|
|
26059
26077
|
s,
|
|
26060
26078
|
c,
|
|
26079
|
+
d,
|
|
26061
26080
|
i
|
|
26062
26081
|
]);
|
|
26063
|
-
return t && !
|
|
26082
|
+
return t && !f ? /* @__PURE__ */ L("span", {
|
|
26064
26083
|
className: Eb.thinking,
|
|
26065
|
-
style:
|
|
26084
|
+
style: p,
|
|
26066
26085
|
children: a
|
|
26067
26086
|
}) : /* @__PURE__ */ L("div", {
|
|
26068
|
-
style:
|
|
26087
|
+
style: p,
|
|
26069
26088
|
children: /* @__PURE__ */ L(Xl, {
|
|
26070
26089
|
remarkPlugins: Mb,
|
|
26071
|
-
components:
|
|
26072
|
-
children:
|
|
26090
|
+
components: m,
|
|
26091
|
+
children: f
|
|
26073
26092
|
})
|
|
26074
26093
|
});
|
|
26075
|
-
}),
|
|
26094
|
+
}), Rb = {
|
|
26076
26095
|
h1: "dial-h1-text mb-3 mt-6 first:mt-0 [text-wrap:balance]",
|
|
26077
26096
|
h2: "dial-h2-text mb-2 mt-5 first:mt-0 [text-wrap:balance]",
|
|
26078
26097
|
h3: "dial-h3-text mb-2 mt-4 first:mt-0 [text-wrap:balance]",
|
|
@@ -26085,11 +26104,9 @@ var gb = 2e3, _b = (e, t = gb) => {
|
|
|
26085
26104
|
codeInline: "mx-0.5 bg-layer-3 px-1.5 text-[0.875em] text-primary break-words [overflow-wrap:anywhere]",
|
|
26086
26105
|
blockquote: "my-4",
|
|
26087
26106
|
link: "break-words [overflow-wrap:anywhere]",
|
|
26088
|
-
tableWrapper: "my-4"
|
|
26089
|
-
tableHeader: "bg-layer-3",
|
|
26090
|
-
tableBodyCell: "bg-layer-2"
|
|
26107
|
+
tableWrapper: "my-4"
|
|
26091
26108
|
};
|
|
26092
|
-
i(({ content: e, isStreaming: t, thinkingLabel: n, components: r, codeBlockCopyLabel: i, codeBlockCopiedLabel: a, codeBlockTheme: o }) => /* @__PURE__ */ L(
|
|
26109
|
+
i(({ content: e, isStreaming: t, thinkingLabel: n, components: r, codeBlockCopyLabel: i, codeBlockCopiedLabel: a, codeBlockTheme: o }) => /* @__PURE__ */ L(Lb, {
|
|
26093
26110
|
content: e,
|
|
26094
26111
|
isStreaming: t,
|
|
26095
26112
|
thinkingLabel: n,
|
|
@@ -26097,28 +26114,28 @@ i(({ content: e, isStreaming: t, thinkingLabel: n, components: r, codeBlockCopyL
|
|
|
26097
26114
|
codeBlockCopyLabel: i,
|
|
26098
26115
|
codeBlockCopiedLabel: a,
|
|
26099
26116
|
codeBlockTheme: o,
|
|
26100
|
-
classNames:
|
|
26117
|
+
classNames: Rb
|
|
26101
26118
|
}));
|
|
26102
|
-
var
|
|
26119
|
+
var zb = {
|
|
26103
26120
|
container: "_container_bc4pw_1",
|
|
26104
26121
|
icon: "_icon_bc4pw_16",
|
|
26105
26122
|
input: "_input_bc4pw_20"
|
|
26106
|
-
},
|
|
26123
|
+
}, Bb = ({ value: e, onChange: t, labels: n, iconSize: r = m.MD, iconStrokeWidth: i, styles: a }) => {
|
|
26107
26124
|
let { placeholder: o = "Search", ariaLabel: s, clearLabel: c = "Clear search" } = n ?? {}, { containerClassName: l, iconClassName: u, inputClassName: d, clearButtonClassName: f } = a ?? {}, p = s ?? o;
|
|
26108
26125
|
return /* @__PURE__ */ L("div", {
|
|
26109
26126
|
role: "search",
|
|
26110
26127
|
children: /* @__PURE__ */ R("div", {
|
|
26111
|
-
className: G(
|
|
26128
|
+
className: G(zb.container, "flex cursor-text items-center gap-3 rounded-xl border px-4 py-2 transition-[border-color,box-shadow] duration-150 ease-in-out", l),
|
|
26112
26129
|
children: [
|
|
26113
26130
|
/* @__PURE__ */ L(Te, {
|
|
26114
26131
|
size: r,
|
|
26115
26132
|
stroke: i,
|
|
26116
|
-
className: G(
|
|
26133
|
+
className: G(zb.icon, "shrink-0 transition-colors duration-150 ease-in-out", u),
|
|
26117
26134
|
"aria-hidden": !0
|
|
26118
26135
|
}),
|
|
26119
26136
|
/* @__PURE__ */ L("input", {
|
|
26120
26137
|
type: "text",
|
|
26121
|
-
className: G(
|
|
26138
|
+
className: G(zb.input, "min-w-0 flex-1 border-0 p-0 text-sm font-normal leading-5 outline-none", d),
|
|
26122
26139
|
value: e,
|
|
26123
26140
|
placeholder: o,
|
|
26124
26141
|
"aria-label": p,
|
|
@@ -26132,34 +26149,34 @@ var Rb = {
|
|
|
26132
26149
|
children: /* @__PURE__ */ L(Ae, {
|
|
26133
26150
|
size: r,
|
|
26134
26151
|
stroke: i,
|
|
26135
|
-
className: G(
|
|
26152
|
+
className: G(zb.icon, u),
|
|
26136
26153
|
"aria-hidden": !0
|
|
26137
26154
|
})
|
|
26138
26155
|
})
|
|
26139
26156
|
]
|
|
26140
26157
|
})
|
|
26141
26158
|
});
|
|
26142
|
-
},
|
|
26159
|
+
}, Vb = ({ isActive: e, styles: t, className: n, ...r }) => {
|
|
26143
26160
|
let { activeClassName: i = "!bg-layer-0 !text-accent-primary shadow-sm", inactiveClassName: a = "!text-secondary" } = t?.colors ?? {};
|
|
26144
26161
|
return /* @__PURE__ */ L(E, {
|
|
26145
26162
|
className: G("rounded-[6px]", e ? i : a, n),
|
|
26146
26163
|
...r
|
|
26147
26164
|
});
|
|
26148
|
-
},
|
|
26165
|
+
}, Hb = {
|
|
26149
26166
|
tabsRow: "_tabsRow_is040_1",
|
|
26150
26167
|
activeTab: "_activeTab_is040_5"
|
|
26151
|
-
},
|
|
26168
|
+
}, Ub = ({ tabs: e, activeTabId: t, onTabChange: n, styles: r }) => {
|
|
26152
26169
|
let { className: i, colors: a, typography: o } = r ?? {}, { activeTabClassName: s = "text-primary", inactiveTabClassName: c = "text-secondary hover:text-primary border-transparent", activeBadgeClassName: l = "bg-accent-primary-alpha text-accent-primary", inactiveBadgeClassName: u = "bg-layer-3 text-tertiary" } = a ?? {}, { tabLabelClassName: d = "dial-small-semi-text", badgeLabelClassName: f = "dial-tiny-semi-text" } = o ?? {};
|
|
26153
26170
|
return /* @__PURE__ */ L("div", {
|
|
26154
26171
|
role: "tablist",
|
|
26155
|
-
className: G("flex justify-start gap-1 border-b",
|
|
26172
|
+
className: G("flex justify-start gap-1 border-b", Hb.tabsRow, i),
|
|
26156
26173
|
children: e.map((e) => {
|
|
26157
26174
|
let r = t === e.id;
|
|
26158
26175
|
return /* @__PURE__ */ R("button", {
|
|
26159
26176
|
role: "tab",
|
|
26160
26177
|
"aria-selected": r,
|
|
26161
26178
|
onClick: () => n(e.id),
|
|
26162
|
-
className: G(d, "-mb-px flex items-center gap-1.5 border-b-2 px-3 py-2.5 text-start transition-colors", r ? G(
|
|
26179
|
+
className: G(d, "-mb-px flex items-center gap-1.5 border-b-2 px-3 py-2.5 text-start transition-colors", r ? G(Hb.activeTab, s) : c),
|
|
26163
26180
|
children: [/* @__PURE__ */ L("span", { children: e.label }), e.count != null && /* @__PURE__ */ L("span", {
|
|
26164
26181
|
className: G(f, "rounded-full px-1.5 py-0.5", r ? l : u),
|
|
26165
26182
|
children: e.count
|
|
@@ -26167,7 +26184,7 @@ var Rb = {
|
|
|
26167
26184
|
}, e.id);
|
|
26168
26185
|
})
|
|
26169
26186
|
});
|
|
26170
|
-
},
|
|
26187
|
+
}, Wb = {
|
|
26171
26188
|
tabContainer: "_tabContainer_rzv03_1",
|
|
26172
26189
|
tabActive: "_tabActive_rzv03_13"
|
|
26173
26190
|
};
|
|
@@ -26181,18 +26198,18 @@ i(({ tabs: e, activeTabId: t, onTabChange: n, styles: r }) => {
|
|
|
26181
26198
|
label: e.label,
|
|
26182
26199
|
selected: r,
|
|
26183
26200
|
onClick: () => n(e.id),
|
|
26184
|
-
className: G("box-border h-auto shrink-0 justify-center rounded-full p-2 text-center", i,
|
|
26201
|
+
className: G("box-border h-auto shrink-0 justify-center rounded-full p-2 text-center", i, Wb.tabContainer, r && Wb.tabActive)
|
|
26185
26202
|
}, e.id);
|
|
26186
26203
|
})
|
|
26187
26204
|
});
|
|
26188
26205
|
});
|
|
26189
26206
|
//#endregion
|
|
26190
26207
|
//#region ../ai-dial-kit/src/components/Button/Buttons.tsx
|
|
26191
|
-
var
|
|
26208
|
+
var Gb = (e) => /* @__PURE__ */ L(M, { ...e }), Kb = (e) => /* @__PURE__ */ L(_, {
|
|
26192
26209
|
...e,
|
|
26193
26210
|
variant: p.Neutral,
|
|
26194
26211
|
appearance: f.Outlined
|
|
26195
|
-
}),
|
|
26212
|
+
}), qb = (e) => /* @__PURE__ */ L(T, { ...e }), Jb = (e) => /* @__PURE__ */ L(k, { ...e }), Yb = {
|
|
26196
26213
|
[B.Model]: "Models",
|
|
26197
26214
|
[B.Application]: "Agents",
|
|
26198
26215
|
[B.Agent]: "Agents",
|
|
@@ -26200,7 +26217,7 @@ var Wb = (e) => /* @__PURE__ */ L(M, { ...e }), Gb = (e) => /* @__PURE__ */ L(_,
|
|
|
26200
26217
|
[B.Guardrail]: "Guardrails",
|
|
26201
26218
|
[B.Skill]: "Skills",
|
|
26202
26219
|
[B.Mcp]: "MCP"
|
|
26203
|
-
},
|
|
26220
|
+
}, Xb = [
|
|
26204
26221
|
B.Model,
|
|
26205
26222
|
B.Application,
|
|
26206
26223
|
B.Agent,
|
|
@@ -26208,16 +26225,16 @@ var Wb = (e) => /* @__PURE__ */ L(M, { ...e }), Gb = (e) => /* @__PURE__ */ L(_,
|
|
|
26208
26225
|
B.Guardrail,
|
|
26209
26226
|
B.Skill,
|
|
26210
26227
|
B.Mcp
|
|
26211
|
-
],
|
|
26228
|
+
], Zb = (e, t) => {
|
|
26212
26229
|
let n = {
|
|
26213
|
-
...
|
|
26230
|
+
...Yb,
|
|
26214
26231
|
...t
|
|
26215
26232
|
}, r = new Set(e.map((e) => e.type));
|
|
26216
|
-
return
|
|
26233
|
+
return Xb.filter((e) => r.has(e)).map((e) => ({
|
|
26217
26234
|
id: e,
|
|
26218
26235
|
label: n[e] ?? e
|
|
26219
26236
|
}));
|
|
26220
|
-
},
|
|
26237
|
+
}, Qb = {
|
|
26221
26238
|
[B.Model]: "#2764D9",
|
|
26222
26239
|
[B.Application]: "#059669",
|
|
26223
26240
|
[B.Agent]: "#7C3AED",
|
|
@@ -26225,7 +26242,7 @@ var Wb = (e) => /* @__PURE__ */ L(M, { ...e }), Gb = (e) => /* @__PURE__ */ L(_,
|
|
|
26225
26242
|
[B.Toolset]: "#B45309",
|
|
26226
26243
|
[B.Guardrail]: "#BE123C",
|
|
26227
26244
|
[B.Mcp]: "#0E7490"
|
|
26228
|
-
},
|
|
26245
|
+
}, $b = {
|
|
26229
26246
|
[B.Model]: "rgba(39, 100, 217, 0.12)",
|
|
26230
26247
|
[B.Application]: "rgba(5, 150, 105, 0.12)",
|
|
26231
26248
|
[B.Agent]: "rgba(124, 58, 237, 0.12)",
|
|
@@ -26233,12 +26250,12 @@ var Wb = (e) => /* @__PURE__ */ L(M, { ...e }), Gb = (e) => /* @__PURE__ */ L(_,
|
|
|
26233
26250
|
[B.Toolset]: "rgba(180, 83, 9, 0.12)",
|
|
26234
26251
|
[B.Guardrail]: "rgba(190, 18, 60, 0.12)",
|
|
26235
26252
|
[B.Mcp]: "rgba(14, 116, 144, 0.12)"
|
|
26236
|
-
},
|
|
26253
|
+
}, ex = (e) => {
|
|
26237
26254
|
if (e.isFeatured) return Zn({
|
|
26238
|
-
"--entity-color":
|
|
26239
|
-
"--entity-shadow":
|
|
26255
|
+
"--entity-color": Qb[e.type],
|
|
26256
|
+
"--entity-shadow": $b[e.type]
|
|
26240
26257
|
});
|
|
26241
|
-
},
|
|
26258
|
+
}, tx = (e) => {
|
|
26242
26259
|
let { colors: t } = e ?? {};
|
|
26243
26260
|
return Zn({
|
|
26244
26261
|
"--cat-bg": t?.background,
|
|
@@ -26252,13 +26269,13 @@ var Wb = (e) => /* @__PURE__ */ L(M, { ...e }), Gb = (e) => /* @__PURE__ */ L(_,
|
|
|
26252
26269
|
"--cat-no-results-title-text": t?.noResultsTitleText,
|
|
26253
26270
|
"--cat-no-results-description-text": t?.noResultsDescriptionText
|
|
26254
26271
|
});
|
|
26255
|
-
},
|
|
26272
|
+
}, nx = (e) => e >= 1280 ? 4 : e >= 966 ? 3 : e >= 620 ? 2 : 1, rx = (e) => {
|
|
26256
26273
|
if (!e || e === document.body) return document.documentElement;
|
|
26257
26274
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
26258
|
-
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e :
|
|
26259
|
-
},
|
|
26275
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : rx(e.parentElement);
|
|
26276
|
+
}, ix = (e, t = 3) => {
|
|
26260
26277
|
let n = u(null), [r, i] = d(() => {
|
|
26261
|
-
let t = typeof window < "u" ? window.innerWidth : 1440, n =
|
|
26278
|
+
let t = typeof window < "u" ? window.innerWidth : 1440, n = nx(Math.min(1180, Math.max(0, t - (t > 768 ? 60 : 0))) - 64), r = Math.ceil(e / n);
|
|
26262
26279
|
return {
|
|
26263
26280
|
startRow: 0,
|
|
26264
26281
|
endRow: Math.min(r, 12),
|
|
@@ -26268,8 +26285,8 @@ var Wb = (e) => /* @__PURE__ */ L(M, { ...e }), Gb = (e) => /* @__PURE__ */ L(_,
|
|
|
26268
26285
|
o(() => {
|
|
26269
26286
|
let r = n.current;
|
|
26270
26287
|
if (!r) return;
|
|
26271
|
-
let a =
|
|
26272
|
-
let n = r.getBoundingClientRect(), o = a.getBoundingClientRect(), s = a.clientHeight, c = r.clientWidth, l =
|
|
26288
|
+
let a = rx(r.parentElement), o = () => {
|
|
26289
|
+
let n = r.getBoundingClientRect(), o = a.getBoundingClientRect(), s = a.clientHeight, c = r.clientWidth, l = nx(c), u = Math.ceil(e / l), d = Math.max(0, o.top - n.top), f = Math.max(0, Math.floor(d / 268) - t);
|
|
26273
26290
|
i({
|
|
26274
26291
|
startRow: f,
|
|
26275
26292
|
endRow: Math.min(u, f + Math.ceil(s / 268) + 2 * t),
|
|
@@ -26291,67 +26308,70 @@ var Wb = (e) => /* @__PURE__ */ L(M, { ...e }), Gb = (e) => /* @__PURE__ */ L(_,
|
|
|
26291
26308
|
rowCount: a,
|
|
26292
26309
|
totalHeight: a * 268
|
|
26293
26310
|
};
|
|
26294
|
-
},
|
|
26311
|
+
}, ax = {
|
|
26295
26312
|
card: "_card_ymqsc_1",
|
|
26296
26313
|
emptyStarHidden: "_emptyStarHidden_ymqsc_11",
|
|
26297
26314
|
starBtn: "_starBtn_ymqsc_22",
|
|
26298
26315
|
description: "_description_ymqsc_44",
|
|
26299
26316
|
skeletonCard: "_skeletonCard_ymqsc_48"
|
|
26300
|
-
},
|
|
26301
|
-
|
|
26317
|
+
}, ox = ({ type: e, className: t = "dial-caption-text font-semibold" }) => /* @__PURE__ */ L("span", {
|
|
26318
|
+
className: G("uppercase tracking-[0.06em]", t),
|
|
26319
|
+
style: { color: Qb[e] },
|
|
26320
|
+
children: e
|
|
26321
|
+
}), sx = { numericText: "_numericText_uy8cg_2" }, cx = ({ icon: e, type: t, name: n, version: r, lastUsed: i, size: a, query: o, className: s, typeClassName: c, nameClassName: l = "dial-body-semi-text text-primary", versionClassName: u = "dial-tiny-text text-secondary", lastUsedClassName: d = "dial-tiny-text text-tertiary", lastUsedTrailing: f, iconClassName: p }) => {
|
|
26322
|
+
let m = a === "lg", h = m ? "h-[54px] w-[54px] rounded-[14px]" : "h-[44px] w-[44px] rounded-[12px]", g = m ? 54 : 44;
|
|
26302
26323
|
return /* @__PURE__ */ R("div", {
|
|
26303
26324
|
className: G("flex min-w-0 items-start gap-[14px]", s),
|
|
26304
26325
|
children: [/* @__PURE__ */ L("div", {
|
|
26305
|
-
className: G("flex-shrink-0 overflow-hidden",
|
|
26326
|
+
className: G("flex-shrink-0 overflow-hidden", h, p),
|
|
26306
26327
|
children: /* @__PURE__ */ L(dr, {
|
|
26307
26328
|
src: e ?? void 0,
|
|
26308
|
-
size:
|
|
26329
|
+
size: g,
|
|
26309
26330
|
initialsName: n,
|
|
26310
|
-
styles: { badgeClassName: G(
|
|
26331
|
+
styles: { badgeClassName: G(m ? "rounded-[14px]" : "rounded-[12px]") }
|
|
26311
26332
|
})
|
|
26312
26333
|
}), /* @__PURE__ */ R("div", {
|
|
26313
26334
|
className: "flex min-w-0 flex-1 flex-col gap-[5px]",
|
|
26314
|
-
children: [/* @__PURE__ */ L(
|
|
26315
|
-
|
|
26316
|
-
|
|
26317
|
-
children: t
|
|
26335
|
+
children: [/* @__PURE__ */ L(ox, {
|
|
26336
|
+
type: t,
|
|
26337
|
+
className: c
|
|
26318
26338
|
}), /* @__PURE__ */ R("div", {
|
|
26319
26339
|
className: "flex min-w-0 flex-col",
|
|
26320
26340
|
children: [/* @__PURE__ */ R("div", {
|
|
26321
26341
|
className: "flex min-w-0 items-start gap-1 overflow-hidden",
|
|
26322
26342
|
children: [/* @__PURE__ */ L("span", {
|
|
26323
|
-
className: G("flex-3 min-w-0 shrink truncate",
|
|
26343
|
+
className: G("flex-3 min-w-0 shrink truncate", l),
|
|
26324
26344
|
children: o ? /* @__PURE__ */ L(hr, {
|
|
26325
26345
|
text: n,
|
|
26326
26346
|
query: o
|
|
26327
26347
|
}) : n
|
|
26328
26348
|
}), r != null && /* @__PURE__ */ L(S, {
|
|
26329
26349
|
text: r,
|
|
26330
|
-
className: G("flex-1",
|
|
26350
|
+
className: G("flex-1", sx.numericText, u)
|
|
26331
26351
|
})]
|
|
26332
|
-
}),
|
|
26352
|
+
}), m && i != null && /* @__PURE__ */ R("div", {
|
|
26333
26353
|
className: "flex items-center gap-2",
|
|
26334
26354
|
children: [/* @__PURE__ */ L("span", {
|
|
26335
|
-
className: G(
|
|
26355
|
+
className: G(sx.numericText, d),
|
|
26336
26356
|
children: i
|
|
26337
|
-
}),
|
|
26357
|
+
}), f]
|
|
26338
26358
|
})]
|
|
26339
26359
|
})]
|
|
26340
26360
|
})]
|
|
26341
26361
|
});
|
|
26342
|
-
},
|
|
26362
|
+
}, lx = ({ credentials: e, loggedOutLabel: t = "LOGGED OUT", className: n, badgeClassName: r = "bg-error text-[10px] font-semibold uppercase tracking-[0.06em] text-error" }) => e == null || lt(e) == null ? null : /* @__PURE__ */ L(re, {
|
|
26343
26363
|
label: t,
|
|
26344
26364
|
className: G("border-none", r, n)
|
|
26345
|
-
}),
|
|
26365
|
+
}), ux = { featuredChip: "_featuredChip_zbis1_1" }, dx = ({ label: e, className: t }) => /* @__PURE__ */ L(re, {
|
|
26346
26366
|
label: e,
|
|
26347
|
-
className: G("rounded-2xl border-none text-[10px] font-semibold uppercase tracking-[0.06em]", t,
|
|
26348
|
-
}),
|
|
26367
|
+
className: G("rounded-2xl border-none text-[10px] font-semibold uppercase tracking-[0.06em]", t, ux.featuredChip)
|
|
26368
|
+
}), fx = {
|
|
26349
26369
|
icon: "_icon_182e4_1",
|
|
26350
26370
|
label: "_label_182e4_5"
|
|
26351
|
-
},
|
|
26371
|
+
}, px = ({ segments: e, labelClassName: t = "dial-small-text", leafClassName: n = "dial-small-semi-text", className: r }) => {
|
|
26352
26372
|
let i = /* @__PURE__ */ L(O, {
|
|
26353
26373
|
icon: /* @__PURE__ */ L(he, { size: m.SM }),
|
|
26354
|
-
className:
|
|
26374
|
+
className: fx.icon
|
|
26355
26375
|
}), a = e.map((t, r) => ({
|
|
26356
26376
|
label: r === e.length - 1 ? /* @__PURE__ */ L("span", {
|
|
26357
26377
|
className: n,
|
|
@@ -26367,56 +26387,56 @@ var Wb = (e) => /* @__PURE__ */ L(M, { ...e }), Gb = (e) => /* @__PURE__ */ L(_,
|
|
|
26367
26387
|
size: 14,
|
|
26368
26388
|
className: "rtl:scale-x-[-1]"
|
|
26369
26389
|
}),
|
|
26370
|
-
className:
|
|
26390
|
+
className: fx.icon
|
|
26371
26391
|
}),
|
|
26372
26392
|
pathItems: a,
|
|
26373
|
-
labelClassName: G(t,
|
|
26393
|
+
labelClassName: G(t, fx.label, "!cursor-default")
|
|
26374
26394
|
});
|
|
26375
|
-
},
|
|
26395
|
+
}, mx = {
|
|
26376
26396
|
starFilledIcon: "_starFilledIcon_po6zj_1",
|
|
26377
26397
|
starPop: "_starPop_po6zj_1"
|
|
26378
|
-
},
|
|
26398
|
+
}, hx = ({ isStarred: e, onClick: t, size: n, ariaLabel: r = "Toggle favorite", className: i }) => /* @__PURE__ */ L(E, {
|
|
26379
26399
|
size: n,
|
|
26380
26400
|
className: i,
|
|
26381
26401
|
icon: e ? /* @__PURE__ */ L(Oe, {
|
|
26382
26402
|
size: m.SM,
|
|
26383
|
-
className:
|
|
26403
|
+
className: mx.starFilledIcon
|
|
26384
26404
|
}) : /* @__PURE__ */ L(De, { size: m.SM }),
|
|
26385
26405
|
"aria-label": r,
|
|
26386
26406
|
onClick: t
|
|
26387
|
-
}),
|
|
26407
|
+
}), gx = { tag: "_tag_16t7g_1" }, _x = ({ label: e, className: t = "dial-tiny-text" }) => /* @__PURE__ */ L(re, {
|
|
26388
26408
|
label: e,
|
|
26389
|
-
className: G(t,
|
|
26390
|
-
}),
|
|
26391
|
-
let [
|
|
26409
|
+
className: G(t, gx.tag)
|
|
26410
|
+
}), vx = ({ topics: e, overflowAriaLabel: t, className: n }) => {
|
|
26411
|
+
let [r, i] = d(e.length), a = u(null);
|
|
26392
26412
|
c(() => {
|
|
26393
|
-
let t =
|
|
26413
|
+
let t = a.current;
|
|
26394
26414
|
if (!t || e.length === 0) {
|
|
26395
|
-
|
|
26415
|
+
i(e.length);
|
|
26396
26416
|
return;
|
|
26397
26417
|
}
|
|
26398
26418
|
let n = Array.from(t.children);
|
|
26399
26419
|
if (n.length === 0) return;
|
|
26400
|
-
let
|
|
26401
|
-
for (let e = 0; e < n.length; e++) if (n[e].
|
|
26420
|
+
let r = t.clientWidth, o = n.length;
|
|
26421
|
+
for (let e = 0; e < n.length; e++) if (n[e].offsetLeft + n[e].offsetWidth > r) {
|
|
26402
26422
|
o = e;
|
|
26403
26423
|
break;
|
|
26404
26424
|
}
|
|
26405
|
-
|
|
26425
|
+
i(o < n.length ? Math.max(0, o - 1) : n.length);
|
|
26406
26426
|
}, [e.join("\0"), e.length]);
|
|
26407
|
-
let
|
|
26427
|
+
let o = e.length - r;
|
|
26408
26428
|
return /* @__PURE__ */ R("div", {
|
|
26409
|
-
ref:
|
|
26410
|
-
className: "flex flex-
|
|
26411
|
-
children: [e.slice(0,
|
|
26412
|
-
tooltip: e.slice(
|
|
26429
|
+
ref: a,
|
|
26430
|
+
className: G("flex min-w-0 flex-nowrap items-center gap-2 overflow-hidden", n),
|
|
26431
|
+
children: [e.slice(0, r).map((e) => /* @__PURE__ */ L(_x, { label: e }, e)), o > 0 && /* @__PURE__ */ L(ie, {
|
|
26432
|
+
tooltip: e.slice(r).join(", "),
|
|
26413
26433
|
children: /* @__PURE__ */ L("span", {
|
|
26414
|
-
"aria-label": t?.(
|
|
26415
|
-
children: /* @__PURE__ */ L(
|
|
26434
|
+
"aria-label": t?.(o) ?? `and ${o} more topics`,
|
|
26435
|
+
children: /* @__PURE__ */ L(_x, { label: `+${o}` })
|
|
26416
26436
|
})
|
|
26417
26437
|
})]
|
|
26418
26438
|
});
|
|
26419
|
-
},
|
|
26439
|
+
}, yx = ({ item: e, query: t = "", onClick: n, initialIsStarred: r = !1, onToggle: i, featuredLabel: o = "Featured", addToFavoritesAriaLabel: s = "Add to favorites", removeFromFavoritesAriaLabel: c = "Remove from favorites", isSelected: l = !1, className: u, styles: f, credentialsBadgeLoggedOutLabel: p }) => {
|
|
26420
26440
|
let [h, g] = d(r), _ = f?.typography?.descriptionClassName ?? "dial-small-text text-secondary", v = f?.typography?.featuredChipClassName, y = f?.typography?.folderLabelClassName ?? "dial-tiny-text", b = f?.typography?.folderLeafClassName ?? "dial-tiny-semi-text", x = n ? () => n(e) : void 0, S = a((t) => {
|
|
26421
26441
|
n && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
|
|
26422
26442
|
}, [n, e]), C = a((t) => {
|
|
@@ -26436,12 +26456,12 @@ var Wb = (e) => /* @__PURE__ */ L(M, { ...e }), Gb = (e) => /* @__PURE__ */ L(_,
|
|
|
26436
26456
|
onKeyDown: S
|
|
26437
26457
|
} : {},
|
|
26438
26458
|
"aria-label": e.name,
|
|
26439
|
-
style:
|
|
26440
|
-
className: G("relative box-border flex cursor-pointer flex-col gap-[14px]", "rounded-[20px] border-2 p-[22px]",
|
|
26459
|
+
style: ex(e),
|
|
26460
|
+
className: G("relative box-border flex cursor-pointer flex-col gap-[14px]", "rounded-[20px] border-2 p-[22px]", ax.card, e.isFeatured ? ax.featuredCard : void 0, l ? "border-accent-primary !bg-accent-primary-alpha" : "border-transparent", u),
|
|
26441
26461
|
children: [
|
|
26442
26462
|
e.isFeatured && /* @__PURE__ */ L("div", {
|
|
26443
26463
|
className: "absolute end-[22px] top-0 -translate-y-1/2",
|
|
26444
|
-
children: /* @__PURE__ */ L(
|
|
26464
|
+
children: /* @__PURE__ */ L(dx, {
|
|
26445
26465
|
label: o,
|
|
26446
26466
|
className: v
|
|
26447
26467
|
})
|
|
@@ -26451,7 +26471,7 @@ var Wb = (e) => /* @__PURE__ */ L(M, { ...e }), Gb = (e) => /* @__PURE__ */ L(_,
|
|
|
26451
26471
|
className: "absolute end-3 top-3 shrink-0 text-accent-primary",
|
|
26452
26472
|
"aria-hidden": !0
|
|
26453
26473
|
}),
|
|
26454
|
-
/* @__PURE__ */ L(
|
|
26474
|
+
/* @__PURE__ */ L(cx, {
|
|
26455
26475
|
icon: e.iconUrl,
|
|
26456
26476
|
type: e.type,
|
|
26457
26477
|
name: e.name,
|
|
@@ -26459,16 +26479,15 @@ var Wb = (e) => /* @__PURE__ */ L(M, { ...e }), Gb = (e) => /* @__PURE__ */ L(_,
|
|
|
26459
26479
|
size: "sm",
|
|
26460
26480
|
query: t,
|
|
26461
26481
|
className: "min-w-0 flex-1",
|
|
26462
|
-
|
|
26463
|
-
iconClassName: ix.cardIcon
|
|
26482
|
+
iconClassName: ax.cardIcon
|
|
26464
26483
|
}),
|
|
26465
26484
|
/* @__PURE__ */ L("p", {
|
|
26466
|
-
className: G(_, "line-clamp-2 min-h-[44px] !leading-[22px]",
|
|
26485
|
+
className: G(_, "line-clamp-2 min-h-[44px] !leading-[22px]", ax.description),
|
|
26467
26486
|
children: e.description
|
|
26468
26487
|
}),
|
|
26469
26488
|
/* @__PURE__ */ R("div", {
|
|
26470
26489
|
className: "flex min-h-[28px] items-center justify-between gap-2",
|
|
26471
|
-
children: [/* @__PURE__ */ L(
|
|
26490
|
+
children: [/* @__PURE__ */ L(vx, { topics: e.topics }), /* @__PURE__ */ L(lx, {
|
|
26472
26491
|
credentials: e.credentials,
|
|
26473
26492
|
loggedOutLabel: p
|
|
26474
26493
|
})]
|
|
@@ -26479,23 +26498,23 @@ var Wb = (e) => /* @__PURE__ */ L(M, { ...e }), Gb = (e) => /* @__PURE__ */ L(_,
|
|
|
26479
26498
|
className: "flex items-center gap-2",
|
|
26480
26499
|
children: [/* @__PURE__ */ L("div", {
|
|
26481
26500
|
className: "min-w-0 flex-1",
|
|
26482
|
-
children: e.folder.length > 0 && /* @__PURE__ */ L(
|
|
26501
|
+
children: e.folder.length > 0 && /* @__PURE__ */ L(px, {
|
|
26483
26502
|
segments: e.folder,
|
|
26484
26503
|
labelClassName: y,
|
|
26485
26504
|
leafClassName: b
|
|
26486
26505
|
})
|
|
26487
|
-
}), /* @__PURE__ */ L(
|
|
26506
|
+
}), /* @__PURE__ */ L(hx, {
|
|
26488
26507
|
isStarred: h,
|
|
26489
26508
|
size: I.Small,
|
|
26490
26509
|
onClick: C,
|
|
26491
26510
|
ariaLabel: h ? c : s,
|
|
26492
|
-
className: G(
|
|
26511
|
+
className: G(ax.starBtn, !h && ax.emptyStarHidden)
|
|
26493
26512
|
})]
|
|
26494
26513
|
})
|
|
26495
26514
|
})
|
|
26496
26515
|
]
|
|
26497
26516
|
});
|
|
26498
|
-
},
|
|
26517
|
+
}, bx = ({ rowIndex: e, items: t, columnCount: n, query: r, onToggleFavorite: i, onItemClick: a, featuredLabel: o, addToFavoritesAriaLabel: s, removeFromFavoritesAriaLabel: c, selectedItemId: l, credentialsBadgeLoggedOutLabel: u }) => {
|
|
26499
26518
|
let d = e * n, f = t.slice(d, d + n);
|
|
26500
26519
|
return /* @__PURE__ */ L("div", {
|
|
26501
26520
|
style: {
|
|
@@ -26509,7 +26528,7 @@ var Wb = (e) => /* @__PURE__ */ L(M, { ...e }), Gb = (e) => /* @__PURE__ */ L(_,
|
|
|
26509
26528
|
let n = f[t];
|
|
26510
26529
|
return /* @__PURE__ */ L("div", {
|
|
26511
26530
|
className: "h-full min-w-0 flex-1",
|
|
26512
|
-
children: n && /* @__PURE__ */ L(
|
|
26531
|
+
children: n && /* @__PURE__ */ L(yx, {
|
|
26513
26532
|
item: n,
|
|
26514
26533
|
query: r,
|
|
26515
26534
|
initialIsStarred: n.isStarred,
|
|
@@ -26525,8 +26544,8 @@ var Wb = (e) => /* @__PURE__ */ L(M, { ...e }), Gb = (e) => /* @__PURE__ */ L(_,
|
|
|
26525
26544
|
}, n?.id ?? `spacer-${t}`);
|
|
26526
26545
|
})
|
|
26527
26546
|
});
|
|
26528
|
-
},
|
|
26529
|
-
let s = i?.noResultsTitle ?? "No results", c = i?.featuredLabel ?? "Featured", u = i?.addToFavoritesAriaLabel ?? "Add to favorites", d = i?.removeFromFavoritesAriaLabel ?? "Remove from favorites", f = i?.credentialsBadgeLoggedOutLabel ?? "LOGGED OUT", { containerRef: p, startRow: m, endRow: h, columnCount: g, totalHeight: _ } =
|
|
26547
|
+
}, xx = i(({ items: e, query: t = "", onToggleFavorite: n, onItemClick: r, titles: i, isLoading: a, selectedItemId: o }) => {
|
|
26548
|
+
let s = i?.noResultsTitle ?? "No results", c = i?.featuredLabel ?? "Featured", u = i?.addToFavoritesAriaLabel ?? "Add to favorites", d = i?.removeFromFavoritesAriaLabel ?? "Remove from favorites", f = i?.credentialsBadgeLoggedOutLabel ?? "LOGGED OUT", { containerRef: p, startRow: m, endRow: h, columnCount: g, totalHeight: _ } = ix(e.length), v = l(() => ({
|
|
26530
26549
|
items: e,
|
|
26531
26550
|
columnCount: g,
|
|
26532
26551
|
query: t,
|
|
@@ -26553,7 +26572,7 @@ var Wb = (e) => /* @__PURE__ */ L(M, { ...e }), Gb = (e) => /* @__PURE__ */ L(_,
|
|
|
26553
26572
|
className: "grid gap-5 p-5",
|
|
26554
26573
|
style: { gridTemplateColumns: `repeat(${g}, minmax(0, 1fr))` },
|
|
26555
26574
|
children: Array.from({ length: g * 3 }, (e, t) => /* @__PURE__ */ L("div", {
|
|
26556
|
-
className: G("rounded-[6px] border p-4",
|
|
26575
|
+
className: G("rounded-[6px] border p-4", ax.skeletonCard),
|
|
26557
26576
|
style: { height: 248 },
|
|
26558
26577
|
children: /* @__PURE__ */ L(F, {
|
|
26559
26578
|
avatar: {
|
|
@@ -26578,29 +26597,29 @@ var Wb = (e) => /* @__PURE__ */ L(M, { ...e }), Gb = (e) => /* @__PURE__ */ L(_,
|
|
|
26578
26597
|
style: { height: _ },
|
|
26579
26598
|
children: Array.from({ length: h - m }, (e, t) => {
|
|
26580
26599
|
let n = m + t;
|
|
26581
|
-
return /* @__PURE__ */ L(
|
|
26600
|
+
return /* @__PURE__ */ L(bx, {
|
|
26582
26601
|
rowIndex: n,
|
|
26583
26602
|
...v
|
|
26584
26603
|
}, n);
|
|
26585
26604
|
})
|
|
26586
26605
|
});
|
|
26587
|
-
}),
|
|
26606
|
+
}), Sx = { cancelButton: "_cancelButton_tjpsd_1" }, Cx = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, texts: o = {} }) => {
|
|
26588
26607
|
let { cancelLabel: s = "Cancel", publishDefaultLabel: c = "Publish", updateLabel: l = "Update version {version}", publishingInProgressLabel: u = "Publishing…" } = o, d = r ? u : t && e != null ? l.replace("{version}", e) : c;
|
|
26589
26608
|
return /* @__PURE__ */ R("div", {
|
|
26590
26609
|
className: "flex items-center justify-end gap-2 border-t border-tertiary px-3.5 py-4",
|
|
26591
|
-
children: [/* @__PURE__ */ L(
|
|
26610
|
+
children: [/* @__PURE__ */ L(qb, {
|
|
26592
26611
|
label: s,
|
|
26593
26612
|
disabled: r,
|
|
26594
26613
|
onClick: i,
|
|
26595
|
-
className:
|
|
26596
|
-
}), /* @__PURE__ */ L(
|
|
26614
|
+
className: Sx.cancelButton
|
|
26615
|
+
}), /* @__PURE__ */ L(Kb, {
|
|
26597
26616
|
label: d,
|
|
26598
26617
|
disabled: n,
|
|
26599
26618
|
iconBefore: r ? /* @__PURE__ */ L(ne, { size: m.SM }) : void 0,
|
|
26600
26619
|
onClick: a
|
|
26601
26620
|
})]
|
|
26602
26621
|
});
|
|
26603
|
-
},
|
|
26622
|
+
}, wx = {
|
|
26604
26623
|
wrapper: "_wrapper_oh1ub_1",
|
|
26605
26624
|
header: "_header_oh1ub_6",
|
|
26606
26625
|
divider: "_divider_oh1ub_10",
|
|
@@ -26610,7 +26629,7 @@ var Wb = (e) => /* @__PURE__ */ L(M, { ...e }), Gb = (e) => /* @__PURE__ */ L(_,
|
|
|
26610
26629
|
resizeHandler: "_resizeHandler_oh1ub_31"
|
|
26611
26630
|
};
|
|
26612
26631
|
i(({ title: e, titleClassName: t = "dial-h1-text", leftActions: n, className: r, rightActions: i }) => /* @__PURE__ */ R("div", {
|
|
26613
|
-
className: G("flex h-12 shrink-0 items-center gap-2 px-4", r,
|
|
26632
|
+
className: G("flex h-12 shrink-0 items-center gap-2 px-4", r, wx.header),
|
|
26614
26633
|
children: [
|
|
26615
26634
|
n && /* @__PURE__ */ L("div", {
|
|
26616
26635
|
className: "flex items-center gap-1",
|
|
@@ -26626,12 +26645,12 @@ i(({ title: e, titleClassName: t = "dial-h1-text", leftActions: n, className: r,
|
|
|
26626
26645
|
})
|
|
26627
26646
|
]
|
|
26628
26647
|
}));
|
|
26629
|
-
var
|
|
26630
|
-
let { colors: i, iconClassName: a =
|
|
26648
|
+
var Tx = { icon: "_icon_1b1ye_1" }, Ex = i(({ value: e, onChange: t, labels: n, styles: r }) => {
|
|
26649
|
+
let { colors: i, iconClassName: a = Tx.icon, wrapperClassName: o, rowClassName: s } = r ?? {}, c = l(() => Zn({ "--si-icon": i?.icon }), [i]);
|
|
26631
26650
|
return /* @__PURE__ */ L("div", {
|
|
26632
26651
|
className: G("px-3 py-2", o),
|
|
26633
26652
|
style: c,
|
|
26634
|
-
children: /* @__PURE__ */ L(
|
|
26653
|
+
children: /* @__PURE__ */ L(Bb, {
|
|
26635
26654
|
value: e,
|
|
26636
26655
|
onChange: t,
|
|
26637
26656
|
labels: {
|
|
@@ -26664,21 +26683,21 @@ i(({ label: e, icon: t = be, iconSize: n = 48 }) => /* @__PURE__ */ L(_r, {
|
|
|
26664
26683
|
}),
|
|
26665
26684
|
label: e
|
|
26666
26685
|
}));
|
|
26667
|
-
var
|
|
26686
|
+
var Dx = {
|
|
26668
26687
|
title: "_title_jw4lf_1",
|
|
26669
26688
|
count: "_count_jw4lf_5"
|
|
26670
|
-
},
|
|
26689
|
+
}, Ox = ({ title: e, postfix: t, titleClassName: n = "dial-h3-text", postfixClassName: r = "dial-tiny-text", className: i, query: a, trailing: o }) => /* @__PURE__ */ R("div", {
|
|
26671
26690
|
className: G("flex items-center gap-2", i),
|
|
26672
26691
|
children: [
|
|
26673
26692
|
/* @__PURE__ */ L("h3", {
|
|
26674
|
-
className: G("min-w-0", n,
|
|
26693
|
+
className: G("min-w-0", n, Dx.title),
|
|
26675
26694
|
children: a ? /* @__PURE__ */ L(hr, {
|
|
26676
26695
|
text: e,
|
|
26677
26696
|
query: a
|
|
26678
26697
|
}) : /* @__PURE__ */ L(S, { text: e })
|
|
26679
26698
|
}),
|
|
26680
26699
|
t != null && /* @__PURE__ */ L(S, {
|
|
26681
|
-
className: G(r,
|
|
26700
|
+
className: G(r, Dx.count),
|
|
26682
26701
|
text: t
|
|
26683
26702
|
}),
|
|
26684
26703
|
o != null && /* @__PURE__ */ L("div", {
|
|
@@ -26686,9 +26705,9 @@ var Ex = {
|
|
|
26686
26705
|
children: o
|
|
26687
26706
|
})
|
|
26688
26707
|
]
|
|
26689
|
-
}),
|
|
26708
|
+
}), kx = ({ item: e, nameClassName: t, versionClassName: n, showVersion: r = !0, typeClassName: i = "dial-caption-text font-semibold", iconBadgeClassName: a = "rounded-[14px]", featuredChipClassName: o, featuredLabel: s = "Featured", hasFeaturedTag: c = !0, iconSize: l = 48, query: u, footer: d }) => /* @__PURE__ */ R("div", {
|
|
26690
26709
|
className: "flex items-start gap-2",
|
|
26691
|
-
style:
|
|
26710
|
+
style: ex(e),
|
|
26692
26711
|
children: [/* @__PURE__ */ L(dr, {
|
|
26693
26712
|
src: e.iconUrl,
|
|
26694
26713
|
size: l,
|
|
@@ -26701,17 +26720,17 @@ var Ex = {
|
|
|
26701
26720
|
className: "relative flex flex-row items-center justify-between",
|
|
26702
26721
|
children: [/* @__PURE__ */ L("span", {
|
|
26703
26722
|
className: G("uppercase tracking-[0.06em]", i),
|
|
26704
|
-
style: { color:
|
|
26723
|
+
style: { color: Qb[e.type] },
|
|
26705
26724
|
children: e.type
|
|
26706
26725
|
}), c && e.isFeatured && /* @__PURE__ */ L("div", {
|
|
26707
26726
|
className: "absolute end-0 top-[-6px]",
|
|
26708
|
-
children: /* @__PURE__ */ L(
|
|
26727
|
+
children: /* @__PURE__ */ L(dx, {
|
|
26709
26728
|
label: s,
|
|
26710
26729
|
className: o
|
|
26711
26730
|
})
|
|
26712
26731
|
})]
|
|
26713
26732
|
}),
|
|
26714
|
-
/* @__PURE__ */ L(
|
|
26733
|
+
/* @__PURE__ */ L(Ox, {
|
|
26715
26734
|
title: e.name,
|
|
26716
26735
|
postfix: r ? e.version : void 0,
|
|
26717
26736
|
postfixClassName: n,
|
|
@@ -26724,7 +26743,7 @@ var Ex = {
|
|
|
26724
26743
|
})
|
|
26725
26744
|
]
|
|
26726
26745
|
})]
|
|
26727
|
-
}),
|
|
26746
|
+
}), Ax = ({ items: e, selectedPath: t, onSelectedPathChange: n, onCreateFolder: r, searchQuery: i, disabled: a = !1, createFolderLabel: o = "Create new folder", newFolderDefaultName: s = "New folder", noResultsText: c = "No folders match \"{query}\".", rootLabel: u = "Organization", expandedPaths: f, onExpandedPathsChange: p, loadingPaths: h }) => {
|
|
26728
26747
|
let [g, _] = d(() => new Set(t?.map((e, n) => nt(t.slice(0, n + 1))) ?? [])), v = f ?? g, y = (e) => {
|
|
26729
26748
|
let t = new Set(e);
|
|
26730
26749
|
t.delete(""), p ? p(t) : _(t);
|
|
@@ -26784,7 +26803,7 @@ var Ex = {
|
|
|
26784
26803
|
children: [/* @__PURE__ */ L(we, { size: m.SM }), o]
|
|
26785
26804
|
})]
|
|
26786
26805
|
});
|
|
26787
|
-
},
|
|
26806
|
+
}, jx = ({ entries: e, currentVersion: t, isLoading: n = !1, hasError: r = !1, versionPrefix: i = "Version", currentBadgeLabel: a = "Current", emptyStateText: o = "Not published to this folder yet — this will be the first version here.", loadingText: s = "Loading history…", errorText: c = "Failed to load publish history.", versionClassName: l = "dial-small-text text-primary", dateClassName: u = "dial-small-text text-secondary", emptyStateClassName: d = "dial-small-text text-secondary" }) => n ? /* @__PURE__ */ L("p", {
|
|
26788
26807
|
className: d,
|
|
26789
26808
|
children: s
|
|
26790
26809
|
}) : r ? /* @__PURE__ */ L("p", {
|
|
@@ -26813,7 +26832,7 @@ var Ex = {
|
|
|
26813
26832
|
className: u,
|
|
26814
26833
|
children: Xe(e.publishedAt)
|
|
26815
26834
|
})]
|
|
26816
|
-
}, `${e.version}-${n}`)) }),
|
|
26835
|
+
}, `${e.version}-${n}`)) }), Mx = ({ item: e, resource: t, history: n, isHistoryLoading: r = !1, hasHistoryError: i = !1, folderItems: a, selectedFolderPath: o, onSelectedFolderPathChange: s, onCreateFolder: c, expandedPaths: u, onExpandedPathsChange: f, loadingPaths: p, hasExistingPublicationInFolder: m, hasWriteAccess: h, isSubmitting: g, hasSubmitError: _ = !1, allowReplace: v = !0, texts: y = {} }) => {
|
|
26817
26836
|
let { currentVersionSuffix: b = "current", folderLabel: x = "Publish to folder", searchPlaceholder: S = "Search folders", clearSearchAriaLabel: C = "Clear search", historyLabel: w = "Versions history", replaceWarning: T = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: E = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: D = "Publishing failed. Please try again.", folderEmptyStateText: O, historyLoadingText: k, historyErrorText: ee, rootFolderLabel: A = "Organization" } = y, [M, N] = d(""), P = o != null, F = l(() => Je({
|
|
26818
26837
|
hasSelectedFolder: P,
|
|
26819
26838
|
hasExistingPublicationInFolder: m,
|
|
@@ -26842,7 +26861,7 @@ var Ex = {
|
|
|
26842
26861
|
children: [
|
|
26843
26862
|
/* @__PURE__ */ L("div", {
|
|
26844
26863
|
className: "flex items-center justify-between gap-3 rounded-xl border border-tertiary bg-layer-2 px-3.5 py-3",
|
|
26845
|
-
children: e ? /* @__PURE__ */ R(se, { children: [/* @__PURE__ */ L(
|
|
26864
|
+
children: e ? /* @__PURE__ */ R(se, { children: [/* @__PURE__ */ L(kx, {
|
|
26846
26865
|
item: e,
|
|
26847
26866
|
iconSize: 40,
|
|
26848
26867
|
hasFeaturedTag: !1,
|
|
@@ -26862,7 +26881,7 @@ var Ex = {
|
|
|
26862
26881
|
}),
|
|
26863
26882
|
/* @__PURE__ */ L("div", {
|
|
26864
26883
|
className: "mb-3",
|
|
26865
|
-
children: /* @__PURE__ */ L(
|
|
26884
|
+
children: /* @__PURE__ */ L(Ex, {
|
|
26866
26885
|
value: M,
|
|
26867
26886
|
onChange: N,
|
|
26868
26887
|
labels: {
|
|
@@ -26875,7 +26894,7 @@ var Ex = {
|
|
|
26875
26894
|
}
|
|
26876
26895
|
})
|
|
26877
26896
|
}),
|
|
26878
|
-
/* @__PURE__ */ L(
|
|
26897
|
+
/* @__PURE__ */ L(Ax, {
|
|
26879
26898
|
items: a,
|
|
26880
26899
|
selectedPath: o,
|
|
26881
26900
|
onSelectedPathChange: s,
|
|
@@ -26891,8 +26910,8 @@ var Ex = {
|
|
|
26891
26910
|
F.calloutKind !== Ve.None && F.calloutKind !== Ve.Info && /* @__PURE__ */ L("div", {
|
|
26892
26911
|
className: "mt-3",
|
|
26893
26912
|
children: /* @__PURE__ */ L(j, {
|
|
26894
|
-
variant:
|
|
26895
|
-
message:
|
|
26913
|
+
variant: Nx(F.calloutKind),
|
|
26914
|
+
message: Fx(F.calloutKind, {
|
|
26896
26915
|
replaceWarning: T,
|
|
26897
26916
|
noAccessError: E,
|
|
26898
26917
|
submitError: D,
|
|
@@ -26905,7 +26924,7 @@ var Ex = {
|
|
|
26905
26924
|
P && e && /* @__PURE__ */ R("div", { children: [/* @__PURE__ */ L("div", {
|
|
26906
26925
|
className: "dial-body-semi-text mb-2 text-primary",
|
|
26907
26926
|
children: w
|
|
26908
|
-
}), /* @__PURE__ */ L(
|
|
26927
|
+
}), /* @__PURE__ */ L(jx, {
|
|
26909
26928
|
entries: ne,
|
|
26910
26929
|
isLoading: r,
|
|
26911
26930
|
hasError: i,
|
|
@@ -26915,7 +26934,7 @@ var Ex = {
|
|
|
26915
26934
|
})] })
|
|
26916
26935
|
]
|
|
26917
26936
|
});
|
|
26918
|
-
},
|
|
26937
|
+
}, Nx = (e) => e === Ve.ReplaceWarning ? ae.Warning : ae.Error, Px = (e, t) => {
|
|
26919
26938
|
let [n, r, ...i] = e.split("{folder}");
|
|
26920
26939
|
return r === void 0 || i.length > 0 ? e : /* @__PURE__ */ R(se, { children: [
|
|
26921
26940
|
n,
|
|
@@ -26925,7 +26944,7 @@ var Ex = {
|
|
|
26925
26944
|
}),
|
|
26926
26945
|
r
|
|
26927
26946
|
] });
|
|
26928
|
-
},
|
|
26947
|
+
}, Fx = (e, t) => e === Ve.ReplaceWarning ? Px(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === Ve.NoAccess ? Px(t.noAccessError, t.folderName) : t.submitError, Ix = {
|
|
26929
26948
|
sectionHeading: "_sectionHeading_orno3_1",
|
|
26930
26949
|
rowAlt: "_rowAlt_orno3_5",
|
|
26931
26950
|
label: "_label_orno3_9",
|
|
@@ -26933,33 +26952,33 @@ var Ex = {
|
|
|
26933
26952
|
valueTrue: "_valueTrue_orno3_17",
|
|
26934
26953
|
valueFalse: "_valueFalse_orno3_21",
|
|
26935
26954
|
valueText: "_valueText_orno3_25"
|
|
26936
|
-
},
|
|
26955
|
+
}, Lx = ({ value: e, valueClassName: t, valueTrueClassName: n, checkIconClassName: r, yesLabel: i, noLabel: a }) => e === !0 ? /* @__PURE__ */ R(se, { children: [/* @__PURE__ */ L(fe, {
|
|
26937
26956
|
size: m.MD,
|
|
26938
|
-
className: G(r,
|
|
26957
|
+
className: G(r, Ix.checkIcon)
|
|
26939
26958
|
}), /* @__PURE__ */ L("span", {
|
|
26940
|
-
className: G(n,
|
|
26959
|
+
className: G(n, Ix.valueTrue),
|
|
26941
26960
|
children: i
|
|
26942
26961
|
})] }) : e === !1 ? /* @__PURE__ */ L("span", {
|
|
26943
|
-
className: G(t,
|
|
26962
|
+
className: G(t, Ix.valueFalse),
|
|
26944
26963
|
children: a
|
|
26945
26964
|
}) : /* @__PURE__ */ L("span", {
|
|
26946
|
-
className: G(t,
|
|
26965
|
+
className: G(t, Ix.valueText),
|
|
26947
26966
|
children: e
|
|
26948
|
-
}),
|
|
26967
|
+
}), Rx = ({ 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" }) => /* @__PURE__ */ L("div", {
|
|
26949
26968
|
className: "flex flex-col",
|
|
26950
26969
|
children: t != null && t.length > 0 && /* @__PURE__ */ R("section", { children: [/* @__PURE__ */ L("p", {
|
|
26951
|
-
className: G("mb-3 mt-0", o,
|
|
26970
|
+
className: G("mb-3 mt-0", o, Ix.sectionHeading),
|
|
26952
26971
|
children: e
|
|
26953
26972
|
}), /* @__PURE__ */ L("ul", {
|
|
26954
26973
|
className: "m-0 list-none p-0",
|
|
26955
26974
|
children: t.map((e, t) => /* @__PURE__ */ R("li", {
|
|
26956
|
-
className: G("flex items-center rounded px-3 py-2", t % 2 == 0 ?
|
|
26975
|
+
className: G("flex items-center rounded px-3 py-2", t % 2 == 0 ? Ix.rowAlt : void 0),
|
|
26957
26976
|
children: [/* @__PURE__ */ L("span", {
|
|
26958
|
-
className: G(n,
|
|
26977
|
+
className: G(n, Ix.label, "w-2/5 shrink-0"),
|
|
26959
26978
|
children: e.label
|
|
26960
26979
|
}), /* @__PURE__ */ L("div", {
|
|
26961
26980
|
className: "flex w-3/5 items-center gap-1",
|
|
26962
|
-
children: /* @__PURE__ */ L(
|
|
26981
|
+
children: /* @__PURE__ */ L(Lx, {
|
|
26963
26982
|
value: e.value,
|
|
26964
26983
|
valueClassName: r,
|
|
26965
26984
|
valueTrueClassName: i,
|
|
@@ -26970,7 +26989,7 @@ var Ex = {
|
|
|
26970
26989
|
})]
|
|
26971
26990
|
}, e.label))
|
|
26972
26991
|
})] })
|
|
26973
|
-
}),
|
|
26992
|
+
}), zx = {
|
|
26974
26993
|
sectionHeading: "_sectionHeading_1iv5f_1",
|
|
26975
26994
|
urlBox: "_urlBox_1iv5f_5",
|
|
26976
26995
|
snippetWrapper: "_snippetWrapper_1iv5f_9",
|
|
@@ -26978,18 +26997,18 @@ var Ex = {
|
|
|
26978
26997
|
codeBlock: "_codeBlock_1iv5f_17",
|
|
26979
26998
|
copyButton: "_copyButton_1iv5f_25",
|
|
26980
26999
|
pre: "_pre_1iv5f_34"
|
|
26981
|
-
},
|
|
27000
|
+
}, Bx = (e) => {
|
|
26982
27001
|
try {
|
|
26983
27002
|
let { protocol: t } = new URL(e);
|
|
26984
27003
|
return t === "https:" || t === "http:";
|
|
26985
27004
|
} catch {
|
|
26986
27005
|
return !1;
|
|
26987
27006
|
}
|
|
26988
|
-
},
|
|
27007
|
+
}, Vx = {
|
|
26989
27008
|
[Me.Python]: "Python",
|
|
26990
27009
|
[Me.Curl]: "cURL",
|
|
26991
27010
|
[Me.JavaScript]: "JavaScript"
|
|
26992
|
-
},
|
|
27011
|
+
}, Hx = ({ snippets: e, sectionLabel: t, copyAriaLabel: n = "Copy", codeClassName: r = "dial-code-text", sectionClassName: i = "dial-caption-text" }) => {
|
|
26993
27012
|
let [s, c] = d(e[0]?.language ?? Me.Python);
|
|
26994
27013
|
o(() => {
|
|
26995
27014
|
c(e[0]?.language ?? Me.Python);
|
|
@@ -26998,22 +27017,22 @@ var Ex = {
|
|
|
26998
27017
|
key: e.language,
|
|
26999
27018
|
label: /* @__PURE__ */ R("span", {
|
|
27000
27019
|
className: "flex w-full items-center justify-between gap-2",
|
|
27001
|
-
children: [
|
|
27020
|
+
children: [Vx[e.language] ?? e.language, e.language === s && /* @__PURE__ */ L(ce, {
|
|
27002
27021
|
size: m.SM,
|
|
27003
27022
|
"aria-hidden": !0
|
|
27004
27023
|
})]
|
|
27005
27024
|
}),
|
|
27006
27025
|
onClick: () => c(e.language)
|
|
27007
|
-
})), [e, s]), f =
|
|
27026
|
+
})), [e, s]), f = Vx[s] ?? s, p = e.find((e) => e.language === s)?.code ?? "", h = a(() => {
|
|
27008
27027
|
navigator.clipboard.writeText(p);
|
|
27009
27028
|
}, [p]);
|
|
27010
27029
|
return /* @__PURE__ */ R("section", { children: [t != null && /* @__PURE__ */ L("p", {
|
|
27011
|
-
className: G("mb-3 mt-0", i,
|
|
27030
|
+
className: G("mb-3 mt-0", i, zx.sectionHeading),
|
|
27012
27031
|
children: t
|
|
27013
27032
|
}), /* @__PURE__ */ R("div", {
|
|
27014
|
-
className: G("overflow-hidden rounded-lg",
|
|
27033
|
+
className: G("overflow-hidden rounded-lg", zx.snippetWrapper),
|
|
27015
27034
|
children: [/* @__PURE__ */ R("div", {
|
|
27016
|
-
className: G("flex items-center justify-end gap-2 px-3 py-[6px]",
|
|
27035
|
+
className: G("flex items-center justify-end gap-2 px-3 py-[6px]", zx.snippetTabs),
|
|
27017
27036
|
children: [/* @__PURE__ */ L(x, {
|
|
27018
27037
|
items: u,
|
|
27019
27038
|
matchReferenceWidth: !1,
|
|
@@ -27029,14 +27048,14 @@ var Ex = {
|
|
|
27029
27048
|
onClick: h
|
|
27030
27049
|
})]
|
|
27031
27050
|
}), /* @__PURE__ */ L("div", {
|
|
27032
|
-
className: G("relative rounded-lg p-3",
|
|
27051
|
+
className: G("relative rounded-lg p-3", zx.codeBlock),
|
|
27033
27052
|
children: /* @__PURE__ */ L("pre", {
|
|
27034
|
-
className: G("m-0 overflow-x-auto pe-8", r,
|
|
27053
|
+
className: G("m-0 overflow-x-auto pe-8", r, zx.pre),
|
|
27035
27054
|
children: /* @__PURE__ */ L("code", { children: p })
|
|
27036
27055
|
})
|
|
27037
27056
|
})]
|
|
27038
27057
|
})] });
|
|
27039
|
-
},
|
|
27058
|
+
}, Ux = ({ 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", labelClassName: u = "dial-small-semi-text", valueClassName: f = "dial-small-text", codeClassName: p = "dial-code-text", sectionClassName: h = "dial-caption-text" }) => {
|
|
27040
27059
|
let [g, _] = d(0), v = l(() => e.endpoints ?? [], [e.endpoints]), y = v.length > 0, b = v[g] ?? null, S = l(() => v.map((e, t) => ({
|
|
27041
27060
|
key: String(t),
|
|
27042
27061
|
label: /* @__PURE__ */ R("span", {
|
|
@@ -27059,7 +27078,7 @@ var Ex = {
|
|
|
27059
27078
|
return /* @__PURE__ */ R("div", {
|
|
27060
27079
|
className: "flex flex-col gap-6",
|
|
27061
27080
|
children: [
|
|
27062
|
-
w && /* @__PURE__ */ L(
|
|
27081
|
+
w && /* @__PURE__ */ L(Rx, {
|
|
27063
27082
|
sectionLabel: t,
|
|
27064
27083
|
values: C,
|
|
27065
27084
|
labelClassName: u,
|
|
@@ -27070,7 +27089,7 @@ var Ex = {
|
|
|
27070
27089
|
/* @__PURE__ */ R("div", {
|
|
27071
27090
|
className: "mb-3 flex items-center justify-between",
|
|
27072
27091
|
children: [/* @__PURE__ */ L("p", {
|
|
27073
|
-
className: G("m-0", h,
|
|
27092
|
+
className: G("m-0", h, zx.sectionHeading),
|
|
27074
27093
|
children: n
|
|
27075
27094
|
}), /* @__PURE__ */ L(x, {
|
|
27076
27095
|
items: S,
|
|
@@ -27084,8 +27103,8 @@ var Ex = {
|
|
|
27084
27103
|
})]
|
|
27085
27104
|
}),
|
|
27086
27105
|
b != null && /* @__PURE__ */ R("div", {
|
|
27087
|
-
className: G("mt-3 flex items-start gap-2 rounded-lg px-3 py-2.5",
|
|
27088
|
-
children: [
|
|
27106
|
+
className: G("mt-3 flex items-start gap-2 rounded-lg px-3 py-2.5", zx.urlBox),
|
|
27107
|
+
children: [Bx(b.url) ? /* @__PURE__ */ L("a", {
|
|
27089
27108
|
href: b.url,
|
|
27090
27109
|
target: "_blank",
|
|
27091
27110
|
rel: "noreferrer",
|
|
@@ -27102,7 +27121,7 @@ var Ex = {
|
|
|
27102
27121
|
}),
|
|
27103
27122
|
b?.snippets != null && b.snippets.length > 0 && /* @__PURE__ */ L("div", {
|
|
27104
27123
|
className: "mt-4",
|
|
27105
|
-
children: /* @__PURE__ */ L(
|
|
27124
|
+
children: /* @__PURE__ */ L(Hx, {
|
|
27106
27125
|
snippets: b.snippets,
|
|
27107
27126
|
copyAriaLabel: c,
|
|
27108
27127
|
codeClassName: p,
|
|
@@ -27110,7 +27129,7 @@ var Ex = {
|
|
|
27110
27129
|
}, g)
|
|
27111
27130
|
})
|
|
27112
27131
|
] }),
|
|
27113
|
-
!y && T && /* @__PURE__ */ L(
|
|
27132
|
+
!y && T && /* @__PURE__ */ L(Hx, {
|
|
27114
27133
|
snippets: e.snippets,
|
|
27115
27134
|
sectionLabel: r,
|
|
27116
27135
|
copyAriaLabel: c,
|
|
@@ -27118,42 +27137,42 @@ var Ex = {
|
|
|
27118
27137
|
sectionClassName: h
|
|
27119
27138
|
}),
|
|
27120
27139
|
D && /* @__PURE__ */ R("section", { children: [/* @__PURE__ */ L("p", {
|
|
27121
|
-
className: G("mb-3 mt-0", h,
|
|
27140
|
+
className: G("mb-3 mt-0", h, zx.sectionHeading),
|
|
27122
27141
|
children: o
|
|
27123
27142
|
}), /* @__PURE__ */ R("div", {
|
|
27124
|
-
className: G("relative rounded-lg p-3",
|
|
27143
|
+
className: G("relative rounded-lg p-3", zx.codeBlock),
|
|
27125
27144
|
children: [/* @__PURE__ */ L(E, {
|
|
27126
27145
|
icon: /* @__PURE__ */ L(pe, { size: m.SM }),
|
|
27127
27146
|
"aria-label": c,
|
|
27128
27147
|
onClick: () => {
|
|
27129
27148
|
navigator.clipboard.writeText(e.requestExample ?? "");
|
|
27130
27149
|
},
|
|
27131
|
-
className: G("absolute end-2 top-2 flex size-6 cursor-pointer items-center justify-center rounded border-none p-0",
|
|
27150
|
+
className: G("absolute end-2 top-2 flex size-6 cursor-pointer items-center justify-center rounded border-none p-0", zx.copyButton)
|
|
27132
27151
|
}), /* @__PURE__ */ L("pre", {
|
|
27133
|
-
className: G("m-0 overflow-x-auto pe-8", p,
|
|
27152
|
+
className: G("m-0 overflow-x-auto pe-8", p, zx.pre),
|
|
27134
27153
|
children: /* @__PURE__ */ L("code", { children: e.requestExample })
|
|
27135
27154
|
})]
|
|
27136
27155
|
})] }),
|
|
27137
27156
|
O && /* @__PURE__ */ R("section", { children: [/* @__PURE__ */ L("p", {
|
|
27138
|
-
className: G("mb-3 mt-0", h,
|
|
27157
|
+
className: G("mb-3 mt-0", h, zx.sectionHeading),
|
|
27139
27158
|
children: s
|
|
27140
27159
|
}), /* @__PURE__ */ R("div", {
|
|
27141
|
-
className: G("relative rounded-lg p-3",
|
|
27160
|
+
className: G("relative rounded-lg p-3", zx.codeBlock),
|
|
27142
27161
|
children: [/* @__PURE__ */ L(E, {
|
|
27143
27162
|
icon: /* @__PURE__ */ L(pe, { size: m.SM }),
|
|
27144
27163
|
"aria-label": c,
|
|
27145
27164
|
onClick: () => {
|
|
27146
27165
|
navigator.clipboard.writeText(e.responseSchema ?? "");
|
|
27147
27166
|
},
|
|
27148
|
-
className: G("absolute end-2 top-2 flex size-6 cursor-pointer items-center justify-center rounded border-none p-0",
|
|
27167
|
+
className: G("absolute end-2 top-2 flex size-6 cursor-pointer items-center justify-center rounded border-none p-0", zx.copyButton)
|
|
27149
27168
|
}), /* @__PURE__ */ L("pre", {
|
|
27150
|
-
className: G("m-0 overflow-x-auto pe-8", p,
|
|
27169
|
+
className: G("m-0 overflow-x-auto pe-8", p, zx.pre),
|
|
27151
27170
|
children: /* @__PURE__ */ L("code", { children: e.responseSchema })
|
|
27152
27171
|
})]
|
|
27153
27172
|
})] })
|
|
27154
27173
|
]
|
|
27155
27174
|
});
|
|
27156
|
-
},
|
|
27175
|
+
}, Wx = ({ item: e, level: t, status: n, authenticationType: r, apiKeyHeader: i, onLogin: o, onLogout: s, texts: c, statusLabelClassName: l = "dial-small-semi-text text-primary" }) => {
|
|
27157
27176
|
let [u, f] = d(""), [p, m] = d(!1), h = n === Le.SignedIn, g = a(() => {
|
|
27158
27177
|
o?.(e, {
|
|
27159
27178
|
level: t,
|
|
@@ -27190,7 +27209,7 @@ var Ex = {
|
|
|
27190
27209
|
}),
|
|
27191
27210
|
!h && r === Ie.ApiKey && /* @__PURE__ */ R("div", {
|
|
27192
27211
|
className: "flex items-end gap-2",
|
|
27193
|
-
children: [/* @__PURE__ */ L(
|
|
27212
|
+
children: [/* @__PURE__ */ L(Jb, {
|
|
27194
27213
|
id: `catalog-item-${e.id}-${t}-api-key`,
|
|
27195
27214
|
type: "password",
|
|
27196
27215
|
autoComplete: "current-password",
|
|
@@ -27199,17 +27218,17 @@ var Ex = {
|
|
|
27199
27218
|
labelProps: { label: c?.apiKeyFieldLabel ?? "API key" },
|
|
27200
27219
|
caption: T,
|
|
27201
27220
|
containerClassName: "min-w-0 flex-1"
|
|
27202
|
-
}), /* @__PURE__ */ L(
|
|
27221
|
+
}), /* @__PURE__ */ L(Gb, {
|
|
27203
27222
|
label: S,
|
|
27204
27223
|
onClick: g,
|
|
27205
27224
|
disabled: u.trim().length === 0
|
|
27206
27225
|
})]
|
|
27207
27226
|
}),
|
|
27208
|
-
!h && r === Ie.OAuth && /* @__PURE__ */ L(
|
|
27227
|
+
!h && r === Ie.OAuth && /* @__PURE__ */ L(Gb, {
|
|
27209
27228
|
label: S,
|
|
27210
27229
|
onClick: _
|
|
27211
27230
|
}),
|
|
27212
|
-
h && /* @__PURE__ */ L(
|
|
27231
|
+
h && /* @__PURE__ */ L(Kb, {
|
|
27213
27232
|
label: C,
|
|
27214
27233
|
onClick: v
|
|
27215
27234
|
}),
|
|
@@ -27224,7 +27243,7 @@ var Ex = {
|
|
|
27224
27243
|
})
|
|
27225
27244
|
]
|
|
27226
27245
|
});
|
|
27227
|
-
},
|
|
27246
|
+
}, Gx = ({ item: e, onLogin: t, onLogout: n, texts: r, statusLabelClassName: i }) => {
|
|
27228
27247
|
let [a, o] = d(Re.User), s = e.credentials;
|
|
27229
27248
|
if (s == null) return null;
|
|
27230
27249
|
if (s.isManageableByAdmin) return /* @__PURE__ */ R("div", {
|
|
@@ -27235,7 +27254,7 @@ var Ex = {
|
|
|
27235
27254
|
title: r?.myCredentialsSectionLabel ?? "My credentials",
|
|
27236
27255
|
expanded: a === Re.User,
|
|
27237
27256
|
onToggle: (e) => o(e ? Re.User : a),
|
|
27238
|
-
children: /* @__PURE__ */ L(
|
|
27257
|
+
children: /* @__PURE__ */ L(Wx, {
|
|
27239
27258
|
item: e,
|
|
27240
27259
|
level: Re.User,
|
|
27241
27260
|
status: s.userStatus,
|
|
@@ -27250,7 +27269,7 @@ var Ex = {
|
|
|
27250
27269
|
title: r?.organizationCredentialsSectionLabel ?? "Entire organization credentials",
|
|
27251
27270
|
expanded: a === Re.Global,
|
|
27252
27271
|
onToggle: (e) => o(e ? Re.Global : a),
|
|
27253
|
-
children: /* @__PURE__ */ L(
|
|
27272
|
+
children: /* @__PURE__ */ L(Wx, {
|
|
27254
27273
|
item: e,
|
|
27255
27274
|
level: Re.Global,
|
|
27256
27275
|
status: s.globalStatus,
|
|
@@ -27268,7 +27287,7 @@ var Ex = {
|
|
|
27268
27287
|
role: "region",
|
|
27269
27288
|
"aria-label": r?.loginActionLabel ?? "Log in",
|
|
27270
27289
|
className: "px-6 py-4 ps-[60px]",
|
|
27271
|
-
children: /* @__PURE__ */ L(
|
|
27290
|
+
children: /* @__PURE__ */ L(Wx, {
|
|
27272
27291
|
item: e,
|
|
27273
27292
|
level: l,
|
|
27274
27293
|
status: l === Re.User ? s.userStatus : s.globalStatus,
|
|
@@ -27280,7 +27299,7 @@ var Ex = {
|
|
|
27280
27299
|
statusLabelClassName: i
|
|
27281
27300
|
})
|
|
27282
27301
|
});
|
|
27283
|
-
},
|
|
27302
|
+
}, Kx = {
|
|
27284
27303
|
backdrop: "_backdrop_4qjfd_1",
|
|
27285
27304
|
panel: "_panel_4qjfd_5",
|
|
27286
27305
|
divider: "_divider_4qjfd_10",
|
|
@@ -27288,7 +27307,7 @@ var Ex = {
|
|
|
27288
27307
|
introCaption: "_introCaption_4qjfd_19",
|
|
27289
27308
|
tabsRow: "_tabsRow_4qjfd_23",
|
|
27290
27309
|
activeTab: "_activeTab_4qjfd_27"
|
|
27291
|
-
},
|
|
27310
|
+
}, qx = ({ item: e, connectOverlay: t, isConnectVisible: n, label: r = "Connect" }) => {
|
|
27292
27311
|
let [i, o] = d(!1), s = a(() => {
|
|
27293
27312
|
o((e) => !e);
|
|
27294
27313
|
}, []);
|
|
@@ -27301,7 +27320,7 @@ var Ex = {
|
|
|
27301
27320
|
outsideClosable: !0,
|
|
27302
27321
|
listClassName: "cp-dropdown-overlay",
|
|
27303
27322
|
renderOverlay: () => t(e, () => o(!1)),
|
|
27304
|
-
children: /* @__PURE__ */ L(
|
|
27323
|
+
children: /* @__PURE__ */ L(Kb, {
|
|
27305
27324
|
label: r,
|
|
27306
27325
|
iconBefore: /* @__PURE__ */ L(Ce, {
|
|
27307
27326
|
size: m.MD,
|
|
@@ -27313,7 +27332,7 @@ var Ex = {
|
|
|
27313
27332
|
"aria-expanded": i
|
|
27314
27333
|
})
|
|
27315
27334
|
});
|
|
27316
|
-
},
|
|
27335
|
+
}, Jx = (e) => e.isMyApp === !0 && (e.type === B.Application || e.type === B.Toolset), Yx = ({ item: e, onDelete: t, onDeleted: n, texts: r }) => {
|
|
27317
27336
|
let [i, o] = d(!1), s = a(async () => {
|
|
27318
27337
|
o(!0);
|
|
27319
27338
|
try {
|
|
@@ -27326,7 +27345,7 @@ var Ex = {
|
|
|
27326
27345
|
t,
|
|
27327
27346
|
n
|
|
27328
27347
|
]);
|
|
27329
|
-
return
|
|
27348
|
+
return Jx(e) ? /* @__PURE__ */ R(se, { children: [/* @__PURE__ */ L(Kb, {
|
|
27330
27349
|
label: r?.deleteActionLabel ?? "Delete",
|
|
27331
27350
|
iconBefore: i ? /* @__PURE__ */ L("span", {
|
|
27332
27351
|
"aria-hidden": "true",
|
|
@@ -27343,7 +27362,7 @@ var Ex = {
|
|
|
27343
27362
|
className: "sr-only",
|
|
27344
27363
|
children: r?.deletingStatusLabel ?? "Deleting"
|
|
27345
27364
|
})] }) : null;
|
|
27346
|
-
},
|
|
27365
|
+
}, Xx = (e) => e.isMyApp === !0 && e.type !== B.Guardrail && e.type !== B.Mcp, Zx = ({ item: e, onShare: t, shareOverlay: n, label: r = "Share" }) => {
|
|
27347
27366
|
let [i, o] = d(!1), s = a(() => {
|
|
27348
27367
|
if (n) {
|
|
27349
27368
|
o((e) => !e);
|
|
@@ -27355,8 +27374,8 @@ var Ex = {
|
|
|
27355
27374
|
t,
|
|
27356
27375
|
n
|
|
27357
27376
|
]);
|
|
27358
|
-
if (!
|
|
27359
|
-
let c = /* @__PURE__ */ L(
|
|
27377
|
+
if (!Xx(e)) return null;
|
|
27378
|
+
let c = /* @__PURE__ */ L(Kb, {
|
|
27360
27379
|
label: r,
|
|
27361
27380
|
iconBefore: /* @__PURE__ */ L(Ee, { size: m.MD }),
|
|
27362
27381
|
iconAfter: /* @__PURE__ */ L(le, { size: m.MD }),
|
|
@@ -27375,7 +27394,7 @@ var Ex = {
|
|
|
27375
27394
|
renderOverlay: () => n(e, () => o(!1)),
|
|
27376
27395
|
children: c
|
|
27377
27396
|
}) : c;
|
|
27378
|
-
},
|
|
27397
|
+
}, Qx = ({ item: e, onUseInChat: t, isPrimaryActionVisible: n, onShare: r, shareOverlay: i, connectOverlay: o, isConnectVisible: s, onEdit: c, onDelete: l, onCloseDetails: u, onLogin: d, onLogout: f, onToggleCredentials: p, onRequestLogout: h, texts: g, detailsStyles: _, isPublishVisible: v, onOpenPublish: y }) => {
|
|
27379
27398
|
let { nameClassName: b = "dial-body-semi-text text-primary", folderLabelClassName: x = "dial-tiny-text", folderLeafClassName: S = "dial-tiny-semi-text" } = _?.typography ?? {}, C = a(() => {
|
|
27380
27399
|
t?.(e);
|
|
27381
27400
|
}, [e, t]), w = a(() => {
|
|
@@ -27399,12 +27418,12 @@ var Ex = {
|
|
|
27399
27418
|
}[O ?? V.LogIn];
|
|
27400
27419
|
return /* @__PURE__ */ R("div", {
|
|
27401
27420
|
className: "flex flex-col gap-3 px-6 py-4",
|
|
27402
|
-
children: [/* @__PURE__ */ L(
|
|
27421
|
+
children: [/* @__PURE__ */ L(kx, {
|
|
27403
27422
|
item: e,
|
|
27404
27423
|
iconSize: 52,
|
|
27405
27424
|
nameClassName: b,
|
|
27406
27425
|
featuredLabel: g?.featuredLabel ?? "Featured",
|
|
27407
|
-
footer: e.folder.length > 0 ? /* @__PURE__ */ L(
|
|
27426
|
+
footer: e.folder.length > 0 ? /* @__PURE__ */ L(px, {
|
|
27408
27427
|
segments: e.folder,
|
|
27409
27428
|
labelClassName: x,
|
|
27410
27429
|
leafClassName: S
|
|
@@ -27412,38 +27431,38 @@ var Ex = {
|
|
|
27412
27431
|
}), /* @__PURE__ */ R("div", {
|
|
27413
27432
|
className: "flex flex-wrap items-center gap-2 ps-[60px]",
|
|
27414
27433
|
children: [
|
|
27415
|
-
T && /* @__PURE__ */ L(
|
|
27434
|
+
T && /* @__PURE__ */ L(Gb, {
|
|
27416
27435
|
label: g?.primaryActionLabel ?? "Use in chat",
|
|
27417
27436
|
iconBefore: /* @__PURE__ */ L(Se, { size: m.MD }),
|
|
27418
27437
|
onClick: C
|
|
27419
27438
|
}),
|
|
27420
|
-
D && /* @__PURE__ */ L(
|
|
27439
|
+
D && /* @__PURE__ */ L(Kb, {
|
|
27421
27440
|
label: g?.editActionLabel ?? "Edit",
|
|
27422
27441
|
iconBefore: /* @__PURE__ */ L(xe, { size: m.MD }),
|
|
27423
27442
|
onClick: w
|
|
27424
27443
|
}),
|
|
27425
|
-
/* @__PURE__ */ L(
|
|
27444
|
+
/* @__PURE__ */ L(Zx, {
|
|
27426
27445
|
item: e,
|
|
27427
27446
|
onShare: r,
|
|
27428
27447
|
shareOverlay: i,
|
|
27429
27448
|
label: g?.shareLabel
|
|
27430
27449
|
}),
|
|
27431
|
-
/* @__PURE__ */ L(
|
|
27450
|
+
/* @__PURE__ */ L(Yx, {
|
|
27432
27451
|
item: e,
|
|
27433
27452
|
onDelete: l,
|
|
27434
27453
|
onDeleted: u,
|
|
27435
27454
|
texts: g
|
|
27436
27455
|
}),
|
|
27437
|
-
E && /* @__PURE__ */ L(
|
|
27456
|
+
E && /* @__PURE__ */ L(Kb, {
|
|
27438
27457
|
label: g?.publishLabel ?? "Publish",
|
|
27439
27458
|
onClick: y
|
|
27440
27459
|
}),
|
|
27441
|
-
k && /* @__PURE__ */ L(
|
|
27460
|
+
k && /* @__PURE__ */ L(Kb, {
|
|
27442
27461
|
label: A,
|
|
27443
27462
|
iconBefore: j,
|
|
27444
27463
|
onClick: ee
|
|
27445
27464
|
}),
|
|
27446
|
-
/* @__PURE__ */ L(
|
|
27465
|
+
/* @__PURE__ */ L(qx, {
|
|
27447
27466
|
item: e,
|
|
27448
27467
|
connectOverlay: o,
|
|
27449
27468
|
isConnectVisible: s,
|
|
@@ -27452,7 +27471,7 @@ var Ex = {
|
|
|
27452
27471
|
]
|
|
27453
27472
|
})]
|
|
27454
27473
|
});
|
|
27455
|
-
},
|
|
27474
|
+
}, $x = (e) => e.trim().split(/\n\n+/).filter((e) => e.trim()).map((e) => {
|
|
27456
27475
|
let t = e.split("\n").filter((e) => e.trim()), n = t[0] ?? "", r = t.length > 1 && !n.trimStart().startsWith("•") && n.trim().length <= 60, i = r ? t.slice(1) : t, a = [];
|
|
27457
27476
|
for (let e of i) {
|
|
27458
27477
|
let t = e.trim();
|
|
@@ -27471,7 +27490,7 @@ var Ex = {
|
|
|
27471
27490
|
heading: r ? n.trim() : void 0,
|
|
27472
27491
|
runs: a
|
|
27473
27492
|
};
|
|
27474
|
-
}),
|
|
27493
|
+
}), eS = ({ run: e, contentClassName: t }) => e.kind === "bullets" ? /* @__PURE__ */ L("ul", {
|
|
27475
27494
|
className: "m-0 flex list-none flex-col gap-1 ps-0",
|
|
27476
27495
|
children: e.items.map((e, n) => /* @__PURE__ */ R("li", {
|
|
27477
27496
|
className: G("flex gap-2", t),
|
|
@@ -27483,22 +27502,22 @@ var Ex = {
|
|
|
27483
27502
|
}) : /* @__PURE__ */ L("p", {
|
|
27484
27503
|
className: G("m-0", t),
|
|
27485
27504
|
children: e.text
|
|
27486
|
-
}),
|
|
27505
|
+
}), tS = ({ content: e, detailsStyles: t }) => {
|
|
27487
27506
|
let { contentHeadingClassName: n = "dial-small-semi-text", contentClassName: r = "dial-small-text" } = t?.typography ?? {};
|
|
27488
27507
|
return /* @__PURE__ */ L("div", {
|
|
27489
27508
|
className: "flex flex-col gap-5",
|
|
27490
|
-
children: l(() =>
|
|
27509
|
+
children: l(() => $x(e), [e]).map((e, t) => /* @__PURE__ */ R("div", {
|
|
27491
27510
|
className: "flex flex-col gap-2",
|
|
27492
27511
|
children: [e.heading != null && /* @__PURE__ */ L("span", {
|
|
27493
27512
|
className: n,
|
|
27494
27513
|
children: e.heading
|
|
27495
|
-
}), e.runs.map((e, t) => /* @__PURE__ */ L(
|
|
27514
|
+
}), e.runs.map((e, t) => /* @__PURE__ */ L(eS, {
|
|
27496
27515
|
run: e,
|
|
27497
27516
|
contentClassName: r
|
|
27498
27517
|
}, t))]
|
|
27499
27518
|
}, t))
|
|
27500
27519
|
});
|
|
27501
|
-
},
|
|
27520
|
+
}, nS = {
|
|
27502
27521
|
"tag--FREE": "_tag--FREE_roky1_1",
|
|
27503
27522
|
"tag--FEATURED": "_tag--FEATURED_roky1_6",
|
|
27504
27523
|
"tag--BY_REQUEST": "_tag--BY_REQUEST_roky1_11",
|
|
@@ -27507,21 +27526,21 @@ var Ex = {
|
|
|
27507
27526
|
progressTrack: "_progressTrack_roky1_27",
|
|
27508
27527
|
progressFill: "_progressFill_roky1_31",
|
|
27509
27528
|
resetLabel: "_resetLabel_roky1_35"
|
|
27510
|
-
},
|
|
27529
|
+
}, rS = {
|
|
27511
27530
|
[Pe.Free]: "Free",
|
|
27512
27531
|
[Pe.Featured]: "Featured",
|
|
27513
27532
|
[Pe.ByRequest]: "By request",
|
|
27514
27533
|
[Pe.Beta]: "Beta",
|
|
27515
27534
|
[Pe.Deprecated]: "Deprecated"
|
|
27516
|
-
},
|
|
27535
|
+
}, iS = ({ summary: e, dailyLimitLabel: t = "Daily limit", tagClassName: n = "dial-tiny-text", limitLabelClassName: r = "dial-caption-text", limitResetClassName: i = "dial-tiny-text" }) => {
|
|
27517
27536
|
let { tag: a, dailyLimit: o } = e;
|
|
27518
27537
|
return /* @__PURE__ */ R("div", {
|
|
27519
27538
|
className: "flex flex-col gap-3",
|
|
27520
27539
|
children: [a != null && a !== Pe.Featured && /* @__PURE__ */ L("div", {
|
|
27521
27540
|
className: "flex flex-wrap items-center gap-2",
|
|
27522
27541
|
children: /* @__PURE__ */ L(re, {
|
|
27523
|
-
label:
|
|
27524
|
-
className: G(
|
|
27542
|
+
label: rS[a],
|
|
27543
|
+
className: G(nS.tag, nS[`tag--${a}`], n)
|
|
27525
27544
|
})
|
|
27526
27545
|
}), o != null && /* @__PURE__ */ R("div", {
|
|
27527
27546
|
className: "flex flex-col gap-1.5",
|
|
@@ -27531,23 +27550,23 @@ var Ex = {
|
|
|
27531
27550
|
className: r,
|
|
27532
27551
|
children: t
|
|
27533
27552
|
}), o.resetLabel != null && /* @__PURE__ */ L("span", {
|
|
27534
|
-
className: G(i,
|
|
27553
|
+
className: G(i, nS.resetLabel),
|
|
27535
27554
|
children: o.resetLabel
|
|
27536
27555
|
})]
|
|
27537
27556
|
}), /* @__PURE__ */ L("div", {
|
|
27538
|
-
className: G("h-1.5 overflow-hidden rounded-[3px]",
|
|
27557
|
+
className: G("h-1.5 overflow-hidden rounded-[3px]", nS.progressTrack),
|
|
27539
27558
|
role: "progressbar",
|
|
27540
27559
|
"aria-valuenow": o.used,
|
|
27541
27560
|
"aria-valuemin": 0,
|
|
27542
27561
|
"aria-valuemax": o.total,
|
|
27543
27562
|
children: /* @__PURE__ */ L("div", {
|
|
27544
|
-
className: G("h-full rounded-[3px] [transition:width_0.3s_ease]",
|
|
27563
|
+
className: G("h-full rounded-[3px] [transition:width_0.3s_ease]", nS.progressFill),
|
|
27545
27564
|
style: { width: `${Math.min(100, o.used / o.total * 100)}%` }
|
|
27546
27565
|
})
|
|
27547
27566
|
})]
|
|
27548
27567
|
})]
|
|
27549
27568
|
});
|
|
27550
|
-
},
|
|
27569
|
+
}, aS = ({ item: e, texts: t, detailsStyles: n }) => {
|
|
27551
27570
|
let { introCaptionClassName: r = "dial-caption-text" } = n?.typography ?? {};
|
|
27552
27571
|
return /* @__PURE__ */ R("div", {
|
|
27553
27572
|
className: "flex shrink-0 flex-col gap-5 px-[22px] py-4",
|
|
@@ -27555,27 +27574,27 @@ var Ex = {
|
|
|
27555
27574
|
/* @__PURE__ */ R("div", {
|
|
27556
27575
|
className: "flex flex-col gap-2.5",
|
|
27557
27576
|
children: [/* @__PURE__ */ L("span", {
|
|
27558
|
-
className: G(r,
|
|
27577
|
+
className: G(r, Kx.introCaption),
|
|
27559
27578
|
children: t?.introLabel ?? "Intro"
|
|
27560
|
-
}), /* @__PURE__ */ L(
|
|
27579
|
+
}), /* @__PURE__ */ L(tS, {
|
|
27561
27580
|
content: e.intro ?? e.description,
|
|
27562
27581
|
detailsStyles: n
|
|
27563
27582
|
})]
|
|
27564
27583
|
}),
|
|
27565
27584
|
e.topics.length > 0 && /* @__PURE__ */ L("div", {
|
|
27566
27585
|
className: "flex flex-wrap gap-2",
|
|
27567
|
-
children: e.topics.map((e) => /* @__PURE__ */ L(
|
|
27586
|
+
children: e.topics.map((e) => /* @__PURE__ */ L(_x, { label: e }, e))
|
|
27568
27587
|
}),
|
|
27569
|
-
e.summary != null && /* @__PURE__ */ L(
|
|
27588
|
+
e.summary != null && /* @__PURE__ */ L(iS, {
|
|
27570
27589
|
summary: e.summary,
|
|
27571
27590
|
dailyLimitLabel: t?.dailyLimitLabel ?? "Daily limit"
|
|
27572
27591
|
})
|
|
27573
27592
|
]
|
|
27574
27593
|
});
|
|
27575
|
-
},
|
|
27594
|
+
}, oS = (e) => !Number.isFinite(e.used) || !Number.isFinite(e.total) ? 0 : Math.min(Math.max(e.used, 0), Math.max(e.total, 0)), sS = (e) => Number.isFinite(e) && e > 0 ? e : 1, cS = ({ used: e, total: t, valueLabel: n }) => n ?? `${e} / ${t}`, lS = ({ total: e }) => Number.isFinite(e) && e > 0, uS = ({ limits: e, labelClassName: t = "dial-small-semi-text", valueClassName: n = "dial-small-text" }) => e == null || e.rows.length === 0 ? null : /* @__PURE__ */ L("ul", {
|
|
27576
27595
|
className: "m-0 flex list-none flex-col gap-3 p-0",
|
|
27577
27596
|
children: e.rows.map((e) => {
|
|
27578
|
-
let r =
|
|
27597
|
+
let r = cS(e), i = lS(e);
|
|
27579
27598
|
return /* @__PURE__ */ R("li", {
|
|
27580
27599
|
className: "flex flex-col gap-2 rounded px-3 py-2",
|
|
27581
27600
|
children: [/* @__PURE__ */ R("div", {
|
|
@@ -27588,19 +27607,19 @@ var Ex = {
|
|
|
27588
27607
|
children: r
|
|
27589
27608
|
})]
|
|
27590
27609
|
}), i && /* @__PURE__ */ L(N, {
|
|
27591
|
-
value:
|
|
27592
|
-
max:
|
|
27610
|
+
value: oS(e),
|
|
27611
|
+
max: sS(e.total),
|
|
27593
27612
|
size: P.Medium,
|
|
27594
27613
|
className: "w-full",
|
|
27595
27614
|
ariaLabel: e.ariaLabel ?? `${e.label}: ${r}`
|
|
27596
27615
|
})]
|
|
27597
27616
|
}, e.label);
|
|
27598
27617
|
})
|
|
27599
|
-
}),
|
|
27618
|
+
}), dS = ({ sections: e, sectionClassName: t, labelClassName: n, valueClassName: r, valueTrueClassName: i, yesLabel: a, noLabel: o }) => e ? /* @__PURE__ */ L("div", {
|
|
27600
27619
|
className: "flex flex-col",
|
|
27601
|
-
children: e.map((e, s) => /* @__PURE__ */ R("div", { children: [s > 0 && /* @__PURE__ */ L("div", { className: G("shrink-0 border-b",
|
|
27620
|
+
children: e.map((e, s) => /* @__PURE__ */ R("div", { children: [s > 0 && /* @__PURE__ */ L("div", { className: G("shrink-0 border-b", Kx.divider) }), /* @__PURE__ */ L("div", {
|
|
27602
27621
|
className: "px-[22px] py-4",
|
|
27603
|
-
children: /* @__PURE__ */ L(
|
|
27622
|
+
children: /* @__PURE__ */ L(Rx, {
|
|
27604
27623
|
sectionLabel: e.title,
|
|
27605
27624
|
values: e.specs,
|
|
27606
27625
|
sectionClassName: t,
|
|
@@ -27611,7 +27630,7 @@ var Ex = {
|
|
|
27611
27630
|
noLabel: o
|
|
27612
27631
|
})
|
|
27613
27632
|
})] }, s))
|
|
27614
|
-
}) : null,
|
|
27633
|
+
}) : null, fS = ({ 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" }) => {
|
|
27615
27634
|
if (e == null) return null;
|
|
27616
27635
|
let o = e.prices?.map((e) => ({
|
|
27617
27636
|
label: e.label,
|
|
@@ -27622,13 +27641,13 @@ var Ex = {
|
|
|
27622
27641
|
}));
|
|
27623
27642
|
return /* @__PURE__ */ R("div", {
|
|
27624
27643
|
className: "flex flex-col gap-6",
|
|
27625
|
-
children: [/* @__PURE__ */ L(
|
|
27644
|
+
children: [/* @__PURE__ */ L(Rx, {
|
|
27626
27645
|
sectionLabel: t,
|
|
27627
27646
|
values: o ?? [],
|
|
27628
27647
|
labelClassName: r,
|
|
27629
27648
|
valueClassName: i,
|
|
27630
27649
|
sectionClassName: a
|
|
27631
|
-
}), /* @__PURE__ */ L(
|
|
27650
|
+
}), /* @__PURE__ */ L(Rx, {
|
|
27632
27651
|
sectionLabel: n,
|
|
27633
27652
|
values: s ?? [],
|
|
27634
27653
|
labelClassName: r,
|
|
@@ -27636,32 +27655,32 @@ var Ex = {
|
|
|
27636
27655
|
sectionClassName: a
|
|
27637
27656
|
})]
|
|
27638
27657
|
});
|
|
27639
|
-
},
|
|
27658
|
+
}, pS = {
|
|
27640
27659
|
container: "_container_1aye5_1",
|
|
27641
27660
|
header: "_header_1aye5_5",
|
|
27642
27661
|
cell: "_cell_1aye5_12",
|
|
27643
27662
|
evenRow: "_evenRow_1aye5_17"
|
|
27644
|
-
},
|
|
27663
|
+
}, mS = ({ columns: e, rows: n, columnsTemplate: r, headingClassName: i = "dial-caption-text", cellClassName: a = "dial-tiny-text" }) => {
|
|
27645
27664
|
let o = r ?? `repeat(${e.length}, 1fr)`;
|
|
27646
27665
|
return /* @__PURE__ */ R("div", {
|
|
27647
|
-
className: G(
|
|
27666
|
+
className: G(pS.container, "grid overflow-hidden rounded-[6px]"),
|
|
27648
27667
|
style: { gridTemplateColumns: o },
|
|
27649
27668
|
children: [e.map((e) => /* @__PURE__ */ L("div", {
|
|
27650
|
-
className: G("px-2 py-1 text-start uppercase", i,
|
|
27669
|
+
className: G("px-2 py-1 text-start uppercase", i, pS.header),
|
|
27651
27670
|
children: e
|
|
27652
27671
|
}, e)), n.map((e, n) => /* @__PURE__ */ L(t, { children: e.map((e, t) => /* @__PURE__ */ L("div", {
|
|
27653
|
-
className: G("px-2 py-1.5", a,
|
|
27672
|
+
className: G("px-2 py-1.5", a, pS.cell, n % 2 == 1 ? pS.evenRow : void 0),
|
|
27654
27673
|
children: e
|
|
27655
27674
|
}, t)) }, n))]
|
|
27656
27675
|
});
|
|
27657
|
-
},
|
|
27676
|
+
}, hS = {
|
|
27658
27677
|
divider: "_divider_1e5ho_1",
|
|
27659
27678
|
description: "_description_1e5ho_5",
|
|
27660
27679
|
code: "_code_1e5ho_9"
|
|
27661
|
-
},
|
|
27680
|
+
}, gS = ({ 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__ */ L("div", {
|
|
27662
27681
|
className: "flex flex-col",
|
|
27663
27682
|
children: e.tools.map((e, a) => /* @__PURE__ */ R("div", {
|
|
27664
|
-
className: G("flex flex-col gap-3 px-[22px] py-4", a > 0 ?
|
|
27683
|
+
className: G("flex flex-col gap-3 px-[22px] py-4", a > 0 ? hS.divider : void 0),
|
|
27665
27684
|
children: [
|
|
27666
27685
|
/* @__PURE__ */ R("div", {
|
|
27667
27686
|
className: "flex flex-col gap-1",
|
|
@@ -27669,11 +27688,11 @@ var Ex = {
|
|
|
27669
27688
|
className: t,
|
|
27670
27689
|
children: e.name
|
|
27671
27690
|
}), e.description != null && /* @__PURE__ */ L("p", {
|
|
27672
|
-
className: G("m-0", n,
|
|
27691
|
+
className: G("m-0", n, hS.description),
|
|
27673
27692
|
children: e.description
|
|
27674
27693
|
})]
|
|
27675
27694
|
}),
|
|
27676
|
-
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ L(
|
|
27695
|
+
e.inputParams != null && e.inputParams.length > 0 && /* @__PURE__ */ L(mS, {
|
|
27677
27696
|
columns: [
|
|
27678
27697
|
"Name",
|
|
27679
27698
|
"Type",
|
|
@@ -27682,11 +27701,11 @@ var Ex = {
|
|
|
27682
27701
|
columnsTemplate: "1fr 1fr auto",
|
|
27683
27702
|
rows: e.inputParams.map((e) => [
|
|
27684
27703
|
/* @__PURE__ */ L("code", {
|
|
27685
|
-
className: G("text-inherit border-none bg-transparent p-0",
|
|
27704
|
+
className: G("text-inherit border-none bg-transparent p-0", hS.code),
|
|
27686
27705
|
children: e.name
|
|
27687
27706
|
}, "name"),
|
|
27688
27707
|
/* @__PURE__ */ L("code", {
|
|
27689
|
-
className: G("text-inherit border-none bg-transparent p-0",
|
|
27708
|
+
className: G("text-inherit border-none bg-transparent p-0", hS.code),
|
|
27690
27709
|
children: e.type
|
|
27691
27710
|
}, "type"),
|
|
27692
27711
|
e.isRequired ? "✓" : "—"
|
|
@@ -27694,10 +27713,10 @@ var Ex = {
|
|
|
27694
27713
|
headingClassName: r,
|
|
27695
27714
|
cellClassName: i
|
|
27696
27715
|
}),
|
|
27697
|
-
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ L(
|
|
27716
|
+
e.annotations != null && e.annotations.length > 0 && /* @__PURE__ */ L(mS, {
|
|
27698
27717
|
columns: ["Key", "Value"],
|
|
27699
27718
|
rows: e.annotations.map((e) => [/* @__PURE__ */ L("code", {
|
|
27700
|
-
className: G("text-inherit border-none bg-transparent p-0",
|
|
27719
|
+
className: G("text-inherit border-none bg-transparent p-0", hS.code),
|
|
27701
27720
|
children: e.key
|
|
27702
27721
|
}, "key"), e.value]),
|
|
27703
27722
|
headingClassName: r,
|
|
@@ -27705,7 +27724,7 @@ var Ex = {
|
|
|
27705
27724
|
})
|
|
27706
27725
|
]
|
|
27707
27726
|
}, e.name))
|
|
27708
|
-
}),
|
|
27727
|
+
}), _S = async () => void 0, vS = [], yS = ({ item: e, isOpen: t, isStarred: n = !1, isDetailsLoading: r = !1, onClose: i, onToggleFavorite: s, onUseInChat: c, isPrimaryActionVisible: u, onShare: f, isPublishVisible: p, getPublishHistory: m, publishFolderItems: h = vS, publishExpandedPaths: g, onPublishExpandedPathsChange: _, publishLoadingPaths: v, hasPublishWriteAccess: x, onPublish: S, onPublishSuccess: C, onCreatePublishFolder: w, publishTexts: T, shareOverlay: E, connectOverlay: D, isConnectVisible: O, onEdit: k, onDelete: ee, onLogin: A, onLogout: j, texts: M, styles: N }) => {
|
|
27709
27728
|
let { overviewSectionClassName: P = "dial-caption-text", overviewLabelClassName: te = "dial-small-semi-text", overviewValueClassName: ne = "dial-small-text", overviewValueTrueClassName: re = "dial-small-text", credentialsStatusLabelClassName: ie } = N?.typography ?? {}, [I, ae] = d(n), [oe, ce] = d(""), [le, de] = d(!1), [fe, pe] = d([]), [me, he] = d(!1), [ge, _e] = d(!1);
|
|
27710
27729
|
o(() => {
|
|
27711
27730
|
if (!le || !m) return;
|
|
@@ -27730,7 +27749,7 @@ var Ex = {
|
|
|
27730
27749
|
folderItems: h,
|
|
27731
27750
|
hasWriteAccess: x,
|
|
27732
27751
|
onCreateFolder: w,
|
|
27733
|
-
onPublish: S ??
|
|
27752
|
+
onPublish: S ?? _S,
|
|
27734
27753
|
onPublishSuccess: C
|
|
27735
27754
|
}), ve = l(() => Je({
|
|
27736
27755
|
hasSelectedFolder: z.selectedFolderPath != null,
|
|
@@ -27808,18 +27827,18 @@ var Ex = {
|
|
|
27808
27827
|
]);
|
|
27809
27828
|
let Me = M?.overviewYesLabel ?? "Yes", Pe = M?.overviewNoLabel ?? "No", B = M?.ariaLabel ?? "Item details", Fe = M?.closeAriaLabel ?? "Close", Ie = I ? M?.removeFromFavoritesAriaLabel ?? "Remove from favorites" : M?.addToFavoritesAriaLabel ?? "Add to favorites", Le = M?.publishTitle ?? "Publish", Re = M?.backToDetailsAriaLabel ?? "Back";
|
|
27810
27829
|
return /* @__PURE__ */ R(se, { children: [/* @__PURE__ */ L("div", {
|
|
27811
|
-
className: G("fixed inset-0 z-40 transition-opacity duration-300",
|
|
27830
|
+
className: G("fixed inset-0 z-40 transition-opacity duration-300", Kx.backdrop, t ? "opacity-100" : "pointer-events-none opacity-0"),
|
|
27812
27831
|
onClick: i,
|
|
27813
27832
|
"aria-hidden": "true"
|
|
27814
27833
|
}), /* @__PURE__ */ R("div", {
|
|
27815
27834
|
role: "dialog",
|
|
27816
27835
|
"aria-modal": "true",
|
|
27817
27836
|
"aria-label": B,
|
|
27818
|
-
className: G("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",
|
|
27837
|
+
className: G("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", Kx.panel, t ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
|
|
27819
27838
|
children: [
|
|
27820
27839
|
/* @__PURE__ */ R("div", {
|
|
27821
27840
|
className: "flex shrink-0 items-center gap-2 px-[22px] py-3",
|
|
27822
|
-
children: [le ? /* @__PURE__ */ R(se, { children: [/* @__PURE__ */ L(
|
|
27841
|
+
children: [le ? /* @__PURE__ */ R(se, { children: [/* @__PURE__ */ L(Vb, {
|
|
27823
27842
|
icon: /* @__PURE__ */ L(ue, { className: "rtl:scale-x-[-1]" }),
|
|
27824
27843
|
"aria-label": Re,
|
|
27825
27844
|
disabled: z.isSubmitting,
|
|
@@ -27827,7 +27846,7 @@ var Ex = {
|
|
|
27827
27846
|
}), /* @__PURE__ */ L("span", {
|
|
27828
27847
|
className: "dial-body-semi-text flex-1 text-primary",
|
|
27829
27848
|
children: Le
|
|
27830
|
-
})] }) : /* @__PURE__ */ R(se, { children: [/* @__PURE__ */ L("div", { className: "flex-1" }), /* @__PURE__ */ L(
|
|
27849
|
+
})] }) : /* @__PURE__ */ R(se, { children: [/* @__PURE__ */ L("div", { className: "flex-1" }), /* @__PURE__ */ L(hx, {
|
|
27831
27850
|
isStarred: I,
|
|
27832
27851
|
ariaLabel: Ie,
|
|
27833
27852
|
onClick: Ae
|
|
@@ -27836,12 +27855,12 @@ var Ex = {
|
|
|
27836
27855
|
ariaLabel: Fe
|
|
27837
27856
|
})]
|
|
27838
27857
|
}),
|
|
27839
|
-
/* @__PURE__ */ L("div", { className: G("shrink-0",
|
|
27858
|
+
/* @__PURE__ */ L("div", { className: G("shrink-0", Kx.divider) }),
|
|
27840
27859
|
/* @__PURE__ */ L("div", {
|
|
27841
|
-
className: G("min-h-0 flex-1 overflow-y-auto",
|
|
27860
|
+
className: G("min-h-0 flex-1 overflow-y-auto", Kx.content),
|
|
27842
27861
|
children: le ? /* @__PURE__ */ L("div", {
|
|
27843
27862
|
className: "p-[22px]",
|
|
27844
|
-
children: /* @__PURE__ */ L(
|
|
27863
|
+
children: /* @__PURE__ */ L(Mx, {
|
|
27845
27864
|
item: e,
|
|
27846
27865
|
history: fe,
|
|
27847
27866
|
isHistoryLoading: me,
|
|
@@ -27860,7 +27879,7 @@ var Ex = {
|
|
|
27860
27879
|
texts: T
|
|
27861
27880
|
})
|
|
27862
27881
|
}) : /* @__PURE__ */ R(se, { children: [
|
|
27863
|
-
/* @__PURE__ */ L(
|
|
27882
|
+
/* @__PURE__ */ L(Qx, {
|
|
27864
27883
|
item: e,
|
|
27865
27884
|
onUseInChat: c,
|
|
27866
27885
|
isPrimaryActionVisible: u,
|
|
@@ -27880,7 +27899,7 @@ var Ex = {
|
|
|
27880
27899
|
texts: M,
|
|
27881
27900
|
detailsStyles: N
|
|
27882
27901
|
}),
|
|
27883
|
-
ye && /* @__PURE__ */ L(
|
|
27902
|
+
ye && /* @__PURE__ */ L(Gx, {
|
|
27884
27903
|
item: e,
|
|
27885
27904
|
onLogin: A,
|
|
27886
27905
|
onLogout: j,
|
|
@@ -27896,15 +27915,15 @@ var Ex = {
|
|
|
27896
27915
|
onCancel: Te,
|
|
27897
27916
|
onClose: Te
|
|
27898
27917
|
}),
|
|
27899
|
-
/* @__PURE__ */ L("div", { className:
|
|
27900
|
-
/* @__PURE__ */ L(
|
|
27918
|
+
/* @__PURE__ */ L("div", { className: Kx.divider }),
|
|
27919
|
+
/* @__PURE__ */ L(aS, {
|
|
27901
27920
|
item: e,
|
|
27902
27921
|
texts: M,
|
|
27903
27922
|
detailsStyles: N
|
|
27904
27923
|
}),
|
|
27905
27924
|
/* @__PURE__ */ R("div", {
|
|
27906
27925
|
className: "flex items-center gap-2 px-[22px]",
|
|
27907
|
-
children: [/* @__PURE__ */ L(
|
|
27926
|
+
children: [/* @__PURE__ */ L(Ub, {
|
|
27908
27927
|
tabs: je,
|
|
27909
27928
|
activeTabId: oe,
|
|
27910
27929
|
onTabChange: ce,
|
|
@@ -27930,11 +27949,11 @@ var Ex = {
|
|
|
27930
27949
|
/* @__PURE__ */ R("div", {
|
|
27931
27950
|
className: G(oe !== Ne.Overview && "px-[22px] py-4"),
|
|
27932
27951
|
children: [
|
|
27933
|
-
oe === Ne.About && /* @__PURE__ */ L(
|
|
27952
|
+
oe === Ne.About && /* @__PURE__ */ L(tS, {
|
|
27934
27953
|
content: e.description,
|
|
27935
27954
|
detailsStyles: N
|
|
27936
27955
|
}),
|
|
27937
|
-
oe === Ne.Overview && /* @__PURE__ */ L(
|
|
27956
|
+
oe === Ne.Overview && /* @__PURE__ */ L(dS, {
|
|
27938
27957
|
sections: e.details?.overview?.sections,
|
|
27939
27958
|
sectionClassName: P,
|
|
27940
27959
|
labelClassName: te,
|
|
@@ -27943,13 +27962,13 @@ var Ex = {
|
|
|
27943
27962
|
yesLabel: Me,
|
|
27944
27963
|
noLabel: Pe
|
|
27945
27964
|
}),
|
|
27946
|
-
oe === Ne.Pricing && /* @__PURE__ */ L(
|
|
27965
|
+
oe === Ne.Pricing && /* @__PURE__ */ L(fS, {
|
|
27947
27966
|
pricing: e.details?.pricing,
|
|
27948
27967
|
pricesSectionLabel: M?.pricingPricesSectionLabel,
|
|
27949
27968
|
limitsSectionLabel: M?.pricingLimitsSectionLabel
|
|
27950
27969
|
}),
|
|
27951
|
-
oe === Ne.Limits && /* @__PURE__ */ L(
|
|
27952
|
-
oe === Ne.Api && e.details?.api != null && /* @__PURE__ */ L(
|
|
27970
|
+
oe === Ne.Limits && /* @__PURE__ */ L(uS, { limits: e.details?.limits }),
|
|
27971
|
+
oe === Ne.Api && e.details?.api != null && /* @__PURE__ */ L(Ux, {
|
|
27953
27972
|
api: e.details.api,
|
|
27954
27973
|
resourceSectionLabel: M?.apiResourceSectionLabel,
|
|
27955
27974
|
snippetSectionLabel: M?.apiSnippetSectionLabel,
|
|
@@ -27959,12 +27978,12 @@ var Ex = {
|
|
|
27959
27978
|
responseSchemaLabel: M?.apiResponseSchemaLabel,
|
|
27960
27979
|
copyAriaLabel: M?.copyCodeAriaLabel
|
|
27961
27980
|
}),
|
|
27962
|
-
oe === Ne.Tools && /* @__PURE__ */ L(
|
|
27981
|
+
oe === Ne.Tools && /* @__PURE__ */ L(gS, { tools: e.details?.tools })
|
|
27963
27982
|
]
|
|
27964
27983
|
})
|
|
27965
27984
|
] })
|
|
27966
27985
|
}),
|
|
27967
|
-
le && /* @__PURE__ */ L(
|
|
27986
|
+
le && /* @__PURE__ */ L(Cx, {
|
|
27968
27987
|
version: e.version,
|
|
27969
27988
|
hasExistingPublicationInFolder: z.hasExistingPublicationInFolder,
|
|
27970
27989
|
isSubmitDisabled: ve.isSubmitDisabled,
|
|
@@ -27975,7 +27994,7 @@ var Ex = {
|
|
|
27975
27994
|
})
|
|
27976
27995
|
]
|
|
27977
27996
|
})] });
|
|
27978
|
-
},
|
|
27997
|
+
}, bS = {
|
|
27979
27998
|
pageNav: "_pageNav_1b9kr_1",
|
|
27980
27999
|
navBtn: "_navBtn_1b9kr_6",
|
|
27981
28000
|
pageCounter: "_pageCounter_1b9kr_23",
|
|
@@ -27988,7 +28007,7 @@ var Ex = {
|
|
|
27988
28007
|
favFadeIn: "_favFadeIn_1b9kr_1",
|
|
27989
28008
|
cardLeaving: "_cardLeaving_1b9kr_64",
|
|
27990
28009
|
cardFadeOut: "_cardFadeOut_1b9kr_1"
|
|
27991
|
-
},
|
|
28010
|
+
}, xS = ({ item: e, initialIsStarred: t = !0, onToggle: n, onClick: r, nameClassName: i, versionClassName: o, lastUsedClassName: s, query: c, addToFavoritesAriaLabel: l = "Add to favorites", removeFromFavoritesAriaLabel: u = "Remove from favorites", isSelected: f = !1, credentialsBadgeLoggedOutLabel: p }) => {
|
|
27992
28011
|
let [h, g] = d(t), [_, v] = d(!1), y = (t) => {
|
|
27993
28012
|
t.stopPropagation();
|
|
27994
28013
|
let r = !h;
|
|
@@ -28005,7 +28024,7 @@ var Ex = {
|
|
|
28005
28024
|
role: b == null ? void 0 : "button",
|
|
28006
28025
|
tabIndex: b == null ? void 0 : 0,
|
|
28007
28026
|
"aria-label": e.name,
|
|
28008
|
-
className: G("relative box-border flex min-w-0 cursor-pointer items-start gap-1", "rounded-[20px] border-2 p-[22px] text-start",
|
|
28027
|
+
className: G("relative box-border flex min-w-0 cursor-pointer items-start gap-1", "rounded-[20px] border-2 p-[22px] text-start", bS.card, _ && bS.cardLeaving, f ? "border-accent-primary !bg-accent-primary-alpha" : "border-transparent"),
|
|
28009
28028
|
onClick: b,
|
|
28010
28029
|
onKeyDown: x,
|
|
28011
28030
|
onAnimationEnd: _ ? (t) => {
|
|
@@ -28019,7 +28038,7 @@ var Ex = {
|
|
|
28019
28038
|
}),
|
|
28020
28039
|
/* @__PURE__ */ R("div", {
|
|
28021
28040
|
className: "flex min-w-0 flex-1 flex-col items-start gap-1",
|
|
28022
|
-
children: [/* @__PURE__ */ L(
|
|
28041
|
+
children: [/* @__PURE__ */ L(cx, {
|
|
28023
28042
|
icon: e.iconUrl,
|
|
28024
28043
|
type: e.type,
|
|
28025
28044
|
name: e.name,
|
|
@@ -28028,16 +28047,15 @@ var Ex = {
|
|
|
28028
28047
|
size: "lg",
|
|
28029
28048
|
query: c,
|
|
28030
28049
|
className: "min-w-0 self-stretch",
|
|
28031
|
-
typeColor: Zb[e.type],
|
|
28032
28050
|
nameClassName: i,
|
|
28033
28051
|
versionClassName: o,
|
|
28034
28052
|
lastUsedClassName: s
|
|
28035
|
-
}), /* @__PURE__ */ L(
|
|
28053
|
+
}), /* @__PURE__ */ L(lx, {
|
|
28036
28054
|
credentials: e.credentials,
|
|
28037
28055
|
loggedOutLabel: p
|
|
28038
28056
|
})]
|
|
28039
28057
|
}),
|
|
28040
|
-
/* @__PURE__ */ L(
|
|
28058
|
+
/* @__PURE__ */ L(hx, {
|
|
28041
28059
|
isStarred: h,
|
|
28042
28060
|
size: I.Small,
|
|
28043
28061
|
onClick: y,
|
|
@@ -28046,7 +28064,7 @@ var Ex = {
|
|
|
28046
28064
|
})
|
|
28047
28065
|
]
|
|
28048
28066
|
});
|
|
28049
|
-
},
|
|
28067
|
+
}, SS = 2, CS = (e) => {
|
|
28050
28068
|
let t = e.getBoundingClientRect(), n = window.scrollX, r = window.scrollY, i = window.getComputedStyle(e).transform;
|
|
28051
28069
|
if (!i || i === "none") return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
28052
28070
|
try {
|
|
@@ -28055,8 +28073,8 @@ var Ex = {
|
|
|
28055
28073
|
} catch {
|
|
28056
28074
|
return new DOMRect(t.x + n, t.y + r, t.width, t.height);
|
|
28057
28075
|
}
|
|
28058
|
-
},
|
|
28059
|
-
let y = a?.typography?.titleClassName ?? "dial-body-semi-text text-primary", b = a?.typography?.countClassName ?? "dial-tiny-semi-text text-secondary", x = { "--cat-favorites-border": a?.colors?.border }, S = l(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [C, w] = d(1), T = qe(), E = T *
|
|
28076
|
+
}, wS = ({ items: e, totalCount: t, title: n = "Your Favorites", onToggleFavorite: r, onItemClick: i, styles: a, isLeaving: s, onExitComplete: f, prevPageAriaLabel: p = "Previous page", nextPageAriaLabel: m = "Next page", addToFavoritesAriaLabel: h, removeFromFavoritesAriaLabel: g, selectedItemId: _, credentialsBadgeLoggedOutLabel: v }) => {
|
|
28077
|
+
let y = a?.typography?.titleClassName ?? "dial-body-semi-text text-primary", b = a?.typography?.countClassName ?? "dial-tiny-semi-text text-secondary", x = { "--cat-favorites-border": a?.colors?.border }, S = l(() => [...e].sort((e, t) => (new Date(t.updatedAt || "").getTime() ?? 0) - (new Date(e.updatedAt || "").getTime() ?? 0)), [e]), [C, w] = d(1), T = qe(), E = T * SS, D = (C - 1) * E, O = l(() => S.slice(D, D + E), [
|
|
28060
28078
|
S,
|
|
28061
28079
|
D,
|
|
28062
28080
|
E
|
|
@@ -28089,7 +28107,7 @@ var Ex = {
|
|
|
28089
28107
|
ie.current = C, I.current = T;
|
|
28090
28108
|
let n = M.current.querySelectorAll("[data-card-id]"), r = /* @__PURE__ */ new Map();
|
|
28091
28109
|
if (n.forEach((e) => {
|
|
28092
|
-
r.set(e.dataset.cardId,
|
|
28110
|
+
r.set(e.dataset.cardId, CS(e));
|
|
28093
28111
|
}), !e && !t) {
|
|
28094
28112
|
let e = j.current, t = ae.current, i = 0;
|
|
28095
28113
|
if (e) {
|
|
@@ -28145,7 +28163,7 @@ var Ex = {
|
|
|
28145
28163
|
ref: A,
|
|
28146
28164
|
children: /* @__PURE__ */ R("section", {
|
|
28147
28165
|
ref: j,
|
|
28148
|
-
className: G("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2",
|
|
28166
|
+
className: G("flex flex-shrink-0 flex-col gap-4 pb-2 pt-2", bS.section, s && bS.sectionLeaving),
|
|
28149
28167
|
style: {
|
|
28150
28168
|
...x,
|
|
28151
28169
|
minHeight: F
|
|
@@ -28153,26 +28171,26 @@ var Ex = {
|
|
|
28153
28171
|
onAnimationEnd: (e) => {
|
|
28154
28172
|
e.target === j.current && s && f?.();
|
|
28155
28173
|
},
|
|
28156
|
-
children: [/* @__PURE__ */ L(
|
|
28174
|
+
children: [/* @__PURE__ */ L(Ox, {
|
|
28157
28175
|
title: n,
|
|
28158
28176
|
postfix: ee,
|
|
28159
28177
|
titleClassName: y,
|
|
28160
28178
|
postfixClassName: b,
|
|
28161
28179
|
trailing: k > 1 ? /* @__PURE__ */ R("div", {
|
|
28162
|
-
className: G("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]",
|
|
28180
|
+
className: G("inline-flex items-center gap-[2px] rounded-full px-[6px] py-[3px]", bS.pageNav),
|
|
28163
28181
|
children: [
|
|
28164
28182
|
/* @__PURE__ */ L("button", {
|
|
28165
28183
|
"aria-label": p,
|
|
28166
28184
|
disabled: C === 1,
|
|
28167
28185
|
onClick: () => w((e) => e - 1),
|
|
28168
|
-
className: G("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent",
|
|
28186
|
+
className: G("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", bS.navBtn),
|
|
28169
28187
|
children: /* @__PURE__ */ L(ue, {
|
|
28170
28188
|
size: 14,
|
|
28171
28189
|
className: "rtl:scale-x-[-1]"
|
|
28172
28190
|
})
|
|
28173
28191
|
}),
|
|
28174
28192
|
/* @__PURE__ */ R("span", {
|
|
28175
|
-
className: G("min-w-[32px] select-none px-1 text-center",
|
|
28193
|
+
className: G("min-w-[32px] select-none px-1 text-center", bS.pageCounter),
|
|
28176
28194
|
children: [
|
|
28177
28195
|
C,
|
|
28178
28196
|
" / ",
|
|
@@ -28183,7 +28201,7 @@ var Ex = {
|
|
|
28183
28201
|
"aria-label": m,
|
|
28184
28202
|
disabled: C === k,
|
|
28185
28203
|
onClick: () => w((e) => e + 1),
|
|
28186
|
-
className: G("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent",
|
|
28204
|
+
className: G("flex size-[22px] cursor-pointer items-center justify-center rounded-full border-none bg-transparent", bS.navBtn),
|
|
28187
28205
|
children: /* @__PURE__ */ L(de, {
|
|
28188
28206
|
size: 14,
|
|
28189
28207
|
className: "rtl:scale-x-[-1]"
|
|
@@ -28193,12 +28211,12 @@ var Ex = {
|
|
|
28193
28211
|
}) : void 0
|
|
28194
28212
|
}), /* @__PURE__ */ L("div", {
|
|
28195
28213
|
ref: M,
|
|
28196
|
-
className: G("grid content-start gap-5",
|
|
28214
|
+
className: G("grid content-start gap-5", bS.gridPage),
|
|
28197
28215
|
style: {
|
|
28198
28216
|
gridTemplateColumns: `repeat(${T}, minmax(0, 1fr))`,
|
|
28199
28217
|
minHeight: N
|
|
28200
28218
|
},
|
|
28201
|
-
children: O.map((e) => /* @__PURE__ */ L(
|
|
28219
|
+
children: O.map((e) => /* @__PURE__ */ L(xS, {
|
|
28202
28220
|
item: e,
|
|
28203
28221
|
onToggle: r,
|
|
28204
28222
|
onClick: i,
|
|
@@ -28210,78 +28228,45 @@ var Ex = {
|
|
|
28210
28228
|
})]
|
|
28211
28229
|
})
|
|
28212
28230
|
});
|
|
28213
|
-
}, wS = {
|
|
28214
|
-
model: "_model_et6cv_1",
|
|
28215
|
-
application: "_application_et6cv_6",
|
|
28216
|
-
agent: "_agent_et6cv_11",
|
|
28217
|
-
skill: "_skill_et6cv_16",
|
|
28218
|
-
toolset: "_toolset_et6cv_21",
|
|
28219
|
-
guardrail: "_guardrail_et6cv_26",
|
|
28220
|
-
mcp: "_mcp_et6cv_31",
|
|
28221
|
-
fallback: "_fallback_et6cv_36"
|
|
28222
28231
|
}, TS = {
|
|
28223
|
-
|
|
28224
|
-
|
|
28225
|
-
|
|
28226
|
-
|
|
28227
|
-
|
|
28228
|
-
|
|
28229
|
-
|
|
28230
|
-
}, ES = ({ type: e, className: t = "dial-caption-text" }) => /* @__PURE__ */ L("span", {
|
|
28231
|
-
className: G("inline-flex items-center rounded-full px-[7px] py-[2px] leading-[1.4]", "uppercase tracking-[0.06em]", t, TS[e] ?? wS.fallback),
|
|
28232
|
-
children: e
|
|
28233
|
-
}), DS = ({ data: e }) => e ? /* @__PURE__ */ L("div", {
|
|
28234
|
-
className: "flex h-full items-center",
|
|
28235
|
-
children: /* @__PURE__ */ L(ES, { type: e.type })
|
|
28236
|
-
}) : null, OS = ({ data: e, context: t }) => !e || e.folder.length === 0 ? null : /* @__PURE__ */ L(dx, {
|
|
28237
|
-
segments: e.folder,
|
|
28238
|
-
labelClassName: t?.typography?.folderClassName,
|
|
28239
|
-
leafClassName: t?.typography?.folderLastSegmentClassName
|
|
28240
|
-
}), kS = {
|
|
28241
|
-
secondaryText: "_secondaryText_1lje3_1",
|
|
28242
|
-
listContainer: "_listContainer_1lje3_5",
|
|
28243
|
-
starFilledIcon: "_starFilledIcon_1lje3_16",
|
|
28244
|
-
selectedRow: "_selectedRow_1lje3_20"
|
|
28245
|
-
}, AS = [
|
|
28232
|
+
listContainer: "_listContainer_n69ms_1",
|
|
28233
|
+
gridClip: "_gridClip_n69ms_6",
|
|
28234
|
+
favHeader: "_favHeader_n69ms_43",
|
|
28235
|
+
starFilledIcon: "_starFilledIcon_n69ms_47",
|
|
28236
|
+
starToggleOff: "_starToggleOff_n69ms_51",
|
|
28237
|
+
selectedRow: "_selectedRow_n69ms_64"
|
|
28238
|
+
}, ES = [
|
|
28246
28239
|
{
|
|
28247
28240
|
headerName: "Name",
|
|
28248
|
-
flex:
|
|
28241
|
+
flex: 1,
|
|
28242
|
+
minWidth: 220,
|
|
28249
28243
|
field: "name",
|
|
28250
28244
|
filter: !1,
|
|
28251
28245
|
cellRenderer: ({ data: e, context: t }) => {
|
|
28252
|
-
let n = t?.searchQuery ?? "", r = t?.typography, i = r?.nameClassName ?? "dial-
|
|
28246
|
+
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;
|
|
28253
28247
|
return e ? /* @__PURE__ */ R("div", {
|
|
28254
|
-
className: "flex h-full items-center gap-2.5",
|
|
28248
|
+
className: "flex h-full min-w-0 items-center gap-2.5",
|
|
28255
28249
|
children: [
|
|
28256
28250
|
/* @__PURE__ */ L(dr, {
|
|
28257
28251
|
src: e.iconUrl,
|
|
28258
|
-
size:
|
|
28259
|
-
initialsName: e.name
|
|
28252
|
+
size: 36,
|
|
28253
|
+
initialsName: e.name,
|
|
28254
|
+
styles: { badgeClassName: "rounded-[10px]" }
|
|
28260
28255
|
}),
|
|
28261
|
-
/* @__PURE__ */
|
|
28262
|
-
|
|
28263
|
-
|
|
28264
|
-
|
|
28265
|
-
|
|
28266
|
-
|
|
28267
|
-
|
|
28268
|
-
|
|
28269
|
-
|
|
28270
|
-
|
|
28271
|
-
|
|
28272
|
-
|
|
28273
|
-
"aria-hidden": !0
|
|
28274
|
-
}) : void 0
|
|
28275
|
-
}), /* @__PURE__ */ L("p", {
|
|
28276
|
-
className: G(o, kS.secondaryText),
|
|
28277
|
-
children: /* @__PURE__ */ L(hr, {
|
|
28278
|
-
text: e.description,
|
|
28279
|
-
query: n,
|
|
28280
|
-
maxLines: 2
|
|
28281
|
-
})
|
|
28282
|
-
})]
|
|
28256
|
+
/* @__PURE__ */ L(Ox, {
|
|
28257
|
+
title: e.name,
|
|
28258
|
+
postfix: e.version,
|
|
28259
|
+
postfixClassName: a,
|
|
28260
|
+
query: n,
|
|
28261
|
+
titleClassName: i,
|
|
28262
|
+
className: "min-w-0 items-baseline gap-1.5",
|
|
28263
|
+
trailing: o ? /* @__PURE__ */ L(ce, {
|
|
28264
|
+
size: m.SM,
|
|
28265
|
+
className: "shrink-0 text-accent-primary",
|
|
28266
|
+
"aria-hidden": !0
|
|
28267
|
+
}) : void 0
|
|
28283
28268
|
}),
|
|
28284
|
-
/* @__PURE__ */ L(
|
|
28269
|
+
/* @__PURE__ */ L(lx, {
|
|
28285
28270
|
credentials: e.credentials,
|
|
28286
28271
|
loggedOutLabel: t?.credentialsBadgeLoggedOutLabel,
|
|
28287
28272
|
className: "ms-2 shrink-0"
|
|
@@ -28293,124 +28278,134 @@ var Ex = {
|
|
|
28293
28278
|
},
|
|
28294
28279
|
{
|
|
28295
28280
|
headerName: "Type",
|
|
28296
|
-
|
|
28281
|
+
width: 110,
|
|
28297
28282
|
field: "type",
|
|
28298
28283
|
filter: !1,
|
|
28299
28284
|
sortable: !1,
|
|
28300
|
-
cellRenderer:
|
|
28285
|
+
cellRenderer: ({ data: e }) => e ? /* @__PURE__ */ L("div", {
|
|
28286
|
+
className: "flex h-full items-center",
|
|
28287
|
+
children: /* @__PURE__ */ L(ox, { type: e.type })
|
|
28288
|
+
}) : null,
|
|
28301
28289
|
valueGetter: (e) => e.data?.type
|
|
28302
28290
|
},
|
|
28303
28291
|
{
|
|
28304
28292
|
headerName: "Folder",
|
|
28305
28293
|
field: "folder",
|
|
28306
|
-
|
|
28294
|
+
width: 170,
|
|
28307
28295
|
filter: !1,
|
|
28308
|
-
cellRenderer:
|
|
28296
|
+
cellRenderer: ({ data: e, context: t }) => !e || e.folder.length === 0 ? null : /* @__PURE__ */ L(px, {
|
|
28297
|
+
segments: e.folder,
|
|
28298
|
+
labelClassName: t?.typography?.folderClassName,
|
|
28299
|
+
leafClassName: t?.typography?.folderLastSegmentClassName
|
|
28300
|
+
}),
|
|
28309
28301
|
valueGetter: (e) => e.data?.folder
|
|
28310
28302
|
},
|
|
28311
28303
|
{
|
|
28312
28304
|
headerName: "Tags",
|
|
28313
28305
|
field: "topics",
|
|
28314
|
-
|
|
28306
|
+
width: 230,
|
|
28315
28307
|
filter: !1,
|
|
28316
28308
|
sortable: !1,
|
|
28317
|
-
cellRenderer: ({ data: e }) => e ? /* @__PURE__ */ L("div", {
|
|
28318
|
-
className: "flex h-full
|
|
28319
|
-
children:
|
|
28320
|
-
})
|
|
28309
|
+
cellRenderer: ({ data: e }) => !e || e.topics.length === 0 ? null : /* @__PURE__ */ L("div", {
|
|
28310
|
+
className: "flex h-full items-center",
|
|
28311
|
+
children: /* @__PURE__ */ L(vx, { topics: e.topics })
|
|
28312
|
+
}),
|
|
28321
28313
|
valueGetter: (e) => e.data?.topics
|
|
28322
28314
|
},
|
|
28323
28315
|
{
|
|
28324
|
-
headerName: "",
|
|
28316
|
+
headerName: "Favorite",
|
|
28325
28317
|
field: "isStarred",
|
|
28326
28318
|
width: 72,
|
|
28327
|
-
flex: void 0,
|
|
28328
28319
|
filter: !1,
|
|
28329
28320
|
sortable: !1,
|
|
28330
28321
|
resizable: !1,
|
|
28322
|
+
headerClass: TS.favHeader,
|
|
28331
28323
|
cellRenderer: ({ data: e, context: t }) => {
|
|
28332
28324
|
let [n, r] = d(e?.isStarred ?? !1);
|
|
28333
28325
|
return e ? /* @__PURE__ */ L("div", {
|
|
28334
|
-
className: "flex h-full items-center justify-
|
|
28335
|
-
children: /* @__PURE__ */ L(
|
|
28326
|
+
className: "flex h-full items-center justify-end pe-4",
|
|
28327
|
+
children: /* @__PURE__ */ L(hx, {
|
|
28336
28328
|
isStarred: n,
|
|
28337
28329
|
onClick: (i) => {
|
|
28338
28330
|
i.stopPropagation();
|
|
28339
28331
|
let a = !n;
|
|
28340
28332
|
r(a), t?.onToggleFavorite?.(e.id, a);
|
|
28341
|
-
}
|
|
28333
|
+
},
|
|
28334
|
+
className: n ? void 0 : TS.starToggleOff
|
|
28342
28335
|
})
|
|
28343
28336
|
}) : null;
|
|
28344
28337
|
}
|
|
28345
28338
|
}
|
|
28346
|
-
],
|
|
28339
|
+
], DS = 50, OS = (e) => {
|
|
28347
28340
|
if (!e || e === document.body) return null;
|
|
28348
28341
|
let { overflow: t, overflowY: n } = getComputedStyle(e);
|
|
28349
|
-
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e :
|
|
28350
|
-
},
|
|
28351
|
-
let m = i?.typography ?? {}, h =
|
|
28352
|
-
"--cat-list-name-text":
|
|
28353
|
-
"--cat-list-secondary-text": h?.secondaryText,
|
|
28342
|
+
return t === "auto" || t === "scroll" || n === "auto" || n === "scroll" ? e : OS(e.parentElement);
|
|
28343
|
+
}, kS = ({ items: e, query: t = "", ariaLabel: n = "Catalog", emptyStateTitle: r, styles: i, onToggleFavorite: a, onItemClick: s, stickyHeaderTop: c, selectedItemId: f, credentialsBadgeLoggedOutLabel: p }) => {
|
|
28344
|
+
let m = i?.typography ?? {}, h = {
|
|
28345
|
+
"--cat-list-name-text": i?.colors?.nameText,
|
|
28354
28346
|
...c == null ? {} : { "--list-header-sticky-top": `${c}px` }
|
|
28355
|
-
},
|
|
28347
|
+
}, g = u(null), _ = u(null), [v, y] = d(() => Math.min(e.length, DS)), b = u(e);
|
|
28356
28348
|
o(() => {
|
|
28357
|
-
|
|
28349
|
+
b.current !== e && (b.current = e, y(Math.min(e.length, DS)));
|
|
28358
28350
|
}, [e]), o(() => {
|
|
28359
|
-
let t =
|
|
28351
|
+
let t = _.current;
|
|
28360
28352
|
if (!t) return;
|
|
28361
|
-
let n =
|
|
28353
|
+
let n = OS(t.parentElement);
|
|
28362
28354
|
if (!n) return;
|
|
28363
28355
|
let r = () => {
|
|
28364
28356
|
let r = n.getBoundingClientRect(), i = t.getBoundingClientRect();
|
|
28365
|
-
i.top < r.bottom && i.bottom > r.top &&
|
|
28357
|
+
i.top < r.bottom && i.bottom > r.top && y((t) => Math.min(e.length, t + DS));
|
|
28366
28358
|
};
|
|
28367
28359
|
return n.addEventListener("scroll", r, { passive: !0 }), r(), () => n.removeEventListener("scroll", r);
|
|
28368
28360
|
}, [e.length]);
|
|
28369
|
-
let
|
|
28361
|
+
let x = l(() => e.slice(0, v), [e, v]);
|
|
28370
28362
|
return o(() => {
|
|
28371
|
-
|
|
28363
|
+
g.current?.refreshCells({ force: !0 });
|
|
28372
28364
|
}, [t]), o(() => {
|
|
28373
|
-
|
|
28374
|
-
}, [f]), /* @__PURE__ */
|
|
28375
|
-
style:
|
|
28376
|
-
className: oe("w-full
|
|
28377
|
-
children:
|
|
28378
|
-
|
|
28379
|
-
|
|
28380
|
-
|
|
28381
|
-
|
|
28382
|
-
|
|
28383
|
-
|
|
28384
|
-
|
|
28385
|
-
|
|
28386
|
-
additionalGridOptions: {
|
|
28387
|
-
rowHeight: 90,
|
|
28388
|
-
domLayout: "autoHeight",
|
|
28389
|
-
defaultColDef: {
|
|
28390
|
-
filter: !1,
|
|
28391
|
-
floatingFilter: !1
|
|
28365
|
+
g.current?.redrawRows();
|
|
28366
|
+
}, [f]), /* @__PURE__ */ L("div", {
|
|
28367
|
+
style: h,
|
|
28368
|
+
className: oe("w-full rounded-xl border", TS.listContainer),
|
|
28369
|
+
children: /* @__PURE__ */ R("div", {
|
|
28370
|
+
className: oe("rounded-xl", TS.gridClip),
|
|
28371
|
+
children: [/* @__PURE__ */ L(D, {
|
|
28372
|
+
columnDefs: ES,
|
|
28373
|
+
rowData: x,
|
|
28374
|
+
getRowId: (e) => e.id,
|
|
28375
|
+
withoutHeaderBorders: !0,
|
|
28376
|
+
onGridApiChange: (e) => {
|
|
28377
|
+
g.current = e;
|
|
28392
28378
|
},
|
|
28393
|
-
|
|
28394
|
-
|
|
28395
|
-
|
|
28396
|
-
|
|
28397
|
-
|
|
28398
|
-
|
|
28379
|
+
emptyStateTitle: r,
|
|
28380
|
+
additionalGridOptions: {
|
|
28381
|
+
rowHeight: 60,
|
|
28382
|
+
domLayout: "autoHeight",
|
|
28383
|
+
defaultColDef: {
|
|
28384
|
+
filter: !1,
|
|
28385
|
+
floatingFilter: !1
|
|
28386
|
+
},
|
|
28387
|
+
context: {
|
|
28388
|
+
searchQuery: t,
|
|
28389
|
+
typography: m,
|
|
28390
|
+
onToggleFavorite: a,
|
|
28391
|
+
selectedItemId: f,
|
|
28392
|
+
credentialsBadgeLoggedOutLabel: p
|
|
28393
|
+
},
|
|
28394
|
+
onCellClicked: s ? (e) => {
|
|
28395
|
+
e.column.getColDef().field !== "isStarred" && e.data && s(e.data);
|
|
28396
|
+
} : void 0,
|
|
28397
|
+
rowClass: s ? "cursor-pointer" : void 0,
|
|
28398
|
+
getRowClass: (e) => e.data?.id === f ? TS.selectedRow : void 0
|
|
28399
28399
|
},
|
|
28400
|
-
|
|
28401
|
-
|
|
28402
|
-
|
|
28403
|
-
|
|
28404
|
-
|
|
28405
|
-
}
|
|
28406
|
-
|
|
28407
|
-
}), y < e.length && /* @__PURE__ */ L("div", {
|
|
28408
|
-
ref: v,
|
|
28409
|
-
className: "h-2",
|
|
28410
|
-
"aria-hidden": !0
|
|
28411
|
-
})]
|
|
28400
|
+
ariaLabel: n
|
|
28401
|
+
}), v < e.length && /* @__PURE__ */ L("div", {
|
|
28402
|
+
ref: _,
|
|
28403
|
+
className: "h-2",
|
|
28404
|
+
"aria-hidden": !0
|
|
28405
|
+
})]
|
|
28406
|
+
})
|
|
28412
28407
|
});
|
|
28413
|
-
},
|
|
28408
|
+
}, AS = {
|
|
28414
28409
|
filterBtn: "_filterBtn_6kwgr_5",
|
|
28415
28410
|
filterBtnActive: "_filterBtnActive_6kwgr_21",
|
|
28416
28411
|
filterBtnOpen: "_filterBtnOpen_6kwgr_25",
|
|
@@ -28426,14 +28421,14 @@ var Ex = {
|
|
|
28426
28421
|
divider: "_divider_6kwgr_117",
|
|
28427
28422
|
sectionLabel: "_sectionLabel_6kwgr_123",
|
|
28428
28423
|
footer: "_footer_6kwgr_131"
|
|
28429
|
-
},
|
|
28424
|
+
}, jS = (e, t, n, r, i) => {
|
|
28430
28425
|
let a = e.size > 0;
|
|
28431
28426
|
return n && a ? `${r} · ${e.size}` : n ? r : a ? He(e, t, i) : i;
|
|
28432
|
-
},
|
|
28427
|
+
}, MS = (e, t) => {
|
|
28433
28428
|
let n = new Set(t);
|
|
28434
28429
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
28435
|
-
},
|
|
28436
|
-
let g = (r ?? !1) || e.size > 0, [_, v] = d(!1), y = l(() => n == null ? [] : [...n].sort(), [n]), b =
|
|
28430
|
+
}, NS = ({ checked: e, onChange: t, values: n, isMyAppsActive: r, onMyAppsChange: i, myAppsLabel: s = "My", topicsLabel: c = "Topics", defaultLabel: f = "From", clearLabel: p = "Clear", applyLabel: h = "Apply" }) => {
|
|
28431
|
+
let g = (r ?? !1) || e.size > 0, [_, v] = d(!1), y = l(() => n == null ? [] : [...n].sort(), [n]), b = jS(e, n, r, s, f), [S, C] = d(() => new Set(e)), [w, T] = d(r ?? !1);
|
|
28437
28432
|
o(() => {
|
|
28438
28433
|
_ && (C(new Set(e)), T(r ?? !1));
|
|
28439
28434
|
}, [
|
|
@@ -28476,7 +28471,7 @@ var Ex = {
|
|
|
28476
28471
|
role: "menu",
|
|
28477
28472
|
"aria-label": f,
|
|
28478
28473
|
tabIndex: -1,
|
|
28479
|
-
className: G("min-w-[360px] rounded-xl p-[6px]",
|
|
28474
|
+
className: G("min-w-[360px] rounded-xl p-[6px]", AS.overlay),
|
|
28480
28475
|
onKeyDown: N,
|
|
28481
28476
|
children: [
|
|
28482
28477
|
/* @__PURE__ */ R("div", {
|
|
@@ -28486,32 +28481,32 @@ var Ex = {
|
|
|
28486
28481
|
ref: (e) => {
|
|
28487
28482
|
k.current[0] = e;
|
|
28488
28483
|
},
|
|
28489
|
-
className: G("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none",
|
|
28484
|
+
className: G("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", AS.row, w && AS.rowChecked),
|
|
28490
28485
|
onClick: () => T(!w),
|
|
28491
28486
|
onKeyDown: P(() => T(!w)),
|
|
28492
28487
|
children: [/* @__PURE__ */ L("span", {
|
|
28493
|
-
className: G("flex size-5 shrink-0 items-center justify-center rounded-[6px]",
|
|
28488
|
+
className: G("flex size-5 shrink-0 items-center justify-center rounded-[6px]", AS.checkbox, w && AS.checkboxChecked),
|
|
28494
28489
|
"aria-hidden": !0
|
|
28495
28490
|
}), /* @__PURE__ */ L("span", {
|
|
28496
|
-
className:
|
|
28491
|
+
className: AS.rowLabel,
|
|
28497
28492
|
children: s
|
|
28498
28493
|
})]
|
|
28499
28494
|
}),
|
|
28500
28495
|
y.length > 0 && /* @__PURE__ */ R(se, { children: [
|
|
28501
28496
|
/* @__PURE__ */ L("div", {
|
|
28502
28497
|
role: "separator",
|
|
28503
|
-
className: G("my-1 h-px",
|
|
28498
|
+
className: G("my-1 h-px", AS.divider),
|
|
28504
28499
|
"aria-hidden": !0
|
|
28505
28500
|
}),
|
|
28506
28501
|
/* @__PURE__ */ L("div", {
|
|
28507
|
-
className: G("px-[10px] pb-1 pt-[10px] uppercase tracking-[0.06em]",
|
|
28502
|
+
className: G("px-[10px] pb-1 pt-[10px] uppercase tracking-[0.06em]", AS.sectionLabel),
|
|
28508
28503
|
"aria-hidden": !0,
|
|
28509
28504
|
children: c
|
|
28510
28505
|
}),
|
|
28511
28506
|
/* @__PURE__ */ L("div", {
|
|
28512
28507
|
className: "flex max-h-[220px] flex-col gap-1 overflow-y-auto",
|
|
28513
28508
|
children: y.map((e, t) => {
|
|
28514
|
-
let n = S.has(e), r = t + 1, i = () => C(
|
|
28509
|
+
let n = S.has(e), r = t + 1, i = () => C(MS(e, S));
|
|
28515
28510
|
return /* @__PURE__ */ R("div", {
|
|
28516
28511
|
role: "menuitemcheckbox",
|
|
28517
28512
|
"aria-checked": n,
|
|
@@ -28519,14 +28514,14 @@ var Ex = {
|
|
|
28519
28514
|
ref: (e) => {
|
|
28520
28515
|
k.current[r] = e;
|
|
28521
28516
|
},
|
|
28522
|
-
className: G("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none",
|
|
28517
|
+
className: G("flex cursor-pointer select-none items-center gap-3 rounded-lg px-[10px] py-[9px] outline-none", AS.row, n && AS.rowChecked),
|
|
28523
28518
|
onClick: i,
|
|
28524
28519
|
onKeyDown: P(i),
|
|
28525
28520
|
children: [/* @__PURE__ */ L("span", {
|
|
28526
|
-
className: G("flex size-5 shrink-0 items-center justify-center rounded-[6px]",
|
|
28521
|
+
className: G("flex size-5 shrink-0 items-center justify-center rounded-[6px]", AS.checkbox, n && AS.checkboxChecked),
|
|
28527
28522
|
"aria-hidden": !0
|
|
28528
28523
|
}), /* @__PURE__ */ L("span", {
|
|
28529
|
-
className:
|
|
28524
|
+
className: AS.rowLabel,
|
|
28530
28525
|
children: e
|
|
28531
28526
|
})]
|
|
28532
28527
|
}, e);
|
|
@@ -28534,14 +28529,14 @@ var Ex = {
|
|
|
28534
28529
|
})
|
|
28535
28530
|
] }),
|
|
28536
28531
|
/* @__PURE__ */ R("div", {
|
|
28537
|
-
className: G("mt-1 flex items-center px-1 py-3",
|
|
28532
|
+
className: G("mt-1 flex items-center px-1 py-3", AS.footer),
|
|
28538
28533
|
onKeyDown: (e) => {
|
|
28539
28534
|
(e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
|
|
28540
28535
|
},
|
|
28541
|
-
children: [/* @__PURE__ */ L(
|
|
28536
|
+
children: [/* @__PURE__ */ L(qb, {
|
|
28542
28537
|
label: p,
|
|
28543
28538
|
onClick: te
|
|
28544
|
-
}), /* @__PURE__ */ L(
|
|
28539
|
+
}), /* @__PURE__ */ L(Gb, {
|
|
28545
28540
|
label: h,
|
|
28546
28541
|
className: "ms-auto",
|
|
28547
28542
|
onClick: F
|
|
@@ -28555,30 +28550,30 @@ var Ex = {
|
|
|
28555
28550
|
"aria-haspopup": "menu",
|
|
28556
28551
|
"aria-expanded": _,
|
|
28557
28552
|
onKeyDown: M,
|
|
28558
|
-
className: G("flex h-[50px] shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-xl px-[18px]",
|
|
28553
|
+
className: G("flex h-[50px] shrink-0 cursor-pointer items-center gap-[7px] whitespace-nowrap rounded-xl px-[18px]", AS.filterBtn, g && AS.filterBtnActive, _ && AS.filterBtnOpen),
|
|
28559
28554
|
children: [
|
|
28560
28555
|
/* @__PURE__ */ L(me, {
|
|
28561
28556
|
size: m.SM,
|
|
28562
28557
|
strokeWidth: 1.8,
|
|
28563
|
-
className: G("shrink-0",
|
|
28558
|
+
className: G("shrink-0", AS.filterBtnFunnel),
|
|
28564
28559
|
"aria-hidden": !0
|
|
28565
28560
|
}),
|
|
28566
28561
|
/* @__PURE__ */ L("span", {
|
|
28567
|
-
className:
|
|
28562
|
+
className: AS.filterBtnLabel,
|
|
28568
28563
|
children: b
|
|
28569
28564
|
}),
|
|
28570
28565
|
/* @__PURE__ */ L(le, {
|
|
28571
28566
|
size: 14,
|
|
28572
28567
|
strokeWidth: 2.2,
|
|
28573
|
-
className: G("shrink-0 transition-transform duration-150",
|
|
28568
|
+
className: G("shrink-0 transition-transform duration-150", AS.filterBtnChevron, _ && "rotate-180"),
|
|
28574
28569
|
"aria-hidden": !0
|
|
28575
28570
|
})
|
|
28576
28571
|
]
|
|
28577
28572
|
})
|
|
28578
28573
|
});
|
|
28579
|
-
},
|
|
28574
|
+
}, PS = ({ value: e, onChange: t, placeholder: n = "Search", ariaLabel: r, className: i, clearLabel: a }) => /* @__PURE__ */ L("div", {
|
|
28580
28575
|
className: "flex-1",
|
|
28581
|
-
children: /* @__PURE__ */ L(
|
|
28576
|
+
children: /* @__PURE__ */ L(Bb, {
|
|
28582
28577
|
value: e,
|
|
28583
28578
|
onChange: t,
|
|
28584
28579
|
labels: {
|
|
@@ -28594,13 +28589,13 @@ var Ex = {
|
|
|
28594
28589
|
clearButtonClassName: "size-11 desktop:size-auto"
|
|
28595
28590
|
}
|
|
28596
28591
|
})
|
|
28597
|
-
}),
|
|
28592
|
+
}), FS = ({ 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", sortKey: u, onSortChange: d, sortOptions: f, filters: p, onFiltersChange: h, filterValues: g, isMyAppsActive: _, onMyAppsChange: v, filterFromLabel: y, filterMyAppsLabel: b, filterTopicsLabel: S }) => {
|
|
28598
28593
|
let C = i?.typography?.titleClassName ?? "dial-body-semi-text", w = i?.typography?.countClassName ?? "dial-tiny-semi-text", T = f?.find((e) => e.value === u)?.label ?? "";
|
|
28599
28594
|
return /* @__PURE__ */ R("div", {
|
|
28600
28595
|
className: "flex flex-col gap-3",
|
|
28601
28596
|
children: [/* @__PURE__ */ R("div", {
|
|
28602
28597
|
className: "flex items-center gap-2",
|
|
28603
|
-
children: [/* @__PURE__ */ L(
|
|
28598
|
+
children: [/* @__PURE__ */ L(Ox, {
|
|
28604
28599
|
title: r,
|
|
28605
28600
|
postfix: e,
|
|
28606
28601
|
titleClassName: C,
|
|
@@ -28643,7 +28638,7 @@ var Ex = {
|
|
|
28643
28638
|
}),
|
|
28644
28639
|
onClick: () => d?.(e.value)
|
|
28645
28640
|
})),
|
|
28646
|
-
children: /* @__PURE__ */ L(
|
|
28641
|
+
children: /* @__PURE__ */ L(qb, {
|
|
28647
28642
|
label: T,
|
|
28648
28643
|
iconAfter: /* @__PURE__ */ L(le, {
|
|
28649
28644
|
size: m.SM,
|
|
@@ -28654,12 +28649,12 @@ var Ex = {
|
|
|
28654
28649
|
})]
|
|
28655
28650
|
}), /* @__PURE__ */ R("div", {
|
|
28656
28651
|
className: "mb-5 flex items-center gap-3",
|
|
28657
|
-
children: [/* @__PURE__ */ L(
|
|
28652
|
+
children: [/* @__PURE__ */ L(PS, {
|
|
28658
28653
|
value: a,
|
|
28659
28654
|
onChange: o,
|
|
28660
28655
|
placeholder: s,
|
|
28661
28656
|
className: "flex-1"
|
|
28662
|
-
}), /* @__PURE__ */ L(
|
|
28657
|
+
}), /* @__PURE__ */ L(NS, {
|
|
28663
28658
|
checked: p ?? /* @__PURE__ */ new Set(),
|
|
28664
28659
|
onChange: h ?? (() => void 0),
|
|
28665
28660
|
values: g,
|
|
@@ -28671,12 +28666,12 @@ var Ex = {
|
|
|
28671
28666
|
})]
|
|
28672
28667
|
})]
|
|
28673
28668
|
});
|
|
28674
|
-
},
|
|
28669
|
+
}, IS = {
|
|
28675
28670
|
section: "_section_qj3lh_1",
|
|
28676
28671
|
icon: "_icon_qj3lh_5",
|
|
28677
28672
|
divider: "_divider_qj3lh_9",
|
|
28678
28673
|
clearAll: "_clearAll_qj3lh_13"
|
|
28679
|
-
},
|
|
28674
|
+
}, LS = ({ 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, sortKey: m, onSortChange: h, sortOptions: g, ..._ }) => {
|
|
28680
28675
|
let v = {
|
|
28681
28676
|
"--cat-browse-bg": r?.colors?.background,
|
|
28682
28677
|
"--cat-browse-title-text": r?.colors?.titleText,
|
|
@@ -28686,9 +28681,9 @@ var Ex = {
|
|
|
28686
28681
|
"--cat-browse-clear-all": r?.colors?.clearAll
|
|
28687
28682
|
};
|
|
28688
28683
|
return /* @__PURE__ */ L("section", {
|
|
28689
|
-
className: G("flex-shrink-0 px-4",
|
|
28684
|
+
className: G("flex-shrink-0 px-4", IS.section),
|
|
28690
28685
|
style: v,
|
|
28691
|
-
children: /* @__PURE__ */ L(
|
|
28686
|
+
children: /* @__PURE__ */ L(FS, {
|
|
28692
28687
|
styles: r,
|
|
28693
28688
|
query: e,
|
|
28694
28689
|
onQueryChange: t,
|
|
@@ -28709,13 +28704,13 @@ var Ex = {
|
|
|
28709
28704
|
..._
|
|
28710
28705
|
})
|
|
28711
28706
|
});
|
|
28712
|
-
},
|
|
28707
|
+
}, RS = {
|
|
28713
28708
|
root: "_root_1jtp2_1",
|
|
28714
28709
|
heading: "_heading_1jtp2_5",
|
|
28715
28710
|
headingTitle: "_headingTitle_1jtp2_9",
|
|
28716
28711
|
tabsRow: "_tabsRow_1jtp2_13",
|
|
28717
28712
|
activeTab: "_activeTab_1jtp2_17"
|
|
28718
|
-
},
|
|
28713
|
+
}, zS = {
|
|
28719
28714
|
splitDivider: "_splitDivider_1efwg_1",
|
|
28720
28715
|
chevron: "_chevron_1efwg_10",
|
|
28721
28716
|
chevronOpen: "_chevronOpen_1efwg_14",
|
|
@@ -28727,7 +28722,7 @@ var Ex = {
|
|
|
28727
28722
|
itemText: "_itemText_1efwg_71",
|
|
28728
28723
|
itemLabel: "_itemLabel_1efwg_78",
|
|
28729
28724
|
itemDescription: "_itemDescription_1efwg_82"
|
|
28730
|
-
},
|
|
28725
|
+
}, BS = ({ label: e, options: t, onClick: n }) => {
|
|
28731
28726
|
let [r, i] = d(!1), o = u(null), s = u([]), c = a(() => {
|
|
28732
28727
|
o.current?.querySelector("button")?.focus();
|
|
28733
28728
|
}, []), l = a((e) => {
|
|
@@ -28751,11 +28746,11 @@ var Ex = {
|
|
|
28751
28746
|
matchReferenceWidth: !1,
|
|
28752
28747
|
placement: "bottom-end",
|
|
28753
28748
|
outsideClosable: !0,
|
|
28754
|
-
listClassName:
|
|
28749
|
+
listClassName: zS.dropdownWrapper,
|
|
28755
28750
|
renderOverlay: () => /* @__PURE__ */ L("div", {
|
|
28756
28751
|
role: "menu",
|
|
28757
28752
|
"aria-label": e,
|
|
28758
|
-
className:
|
|
28753
|
+
className: zS.menu,
|
|
28759
28754
|
onKeyDown: h,
|
|
28760
28755
|
children: t.map((e, t) => /* @__PURE__ */ R("button", {
|
|
28761
28756
|
ref: (e) => {
|
|
@@ -28763,7 +28758,7 @@ var Ex = {
|
|
|
28763
28758
|
},
|
|
28764
28759
|
role: "menuitem",
|
|
28765
28760
|
tabIndex: -1,
|
|
28766
|
-
className:
|
|
28761
|
+
className: zS.item,
|
|
28767
28762
|
onClick: () => {
|
|
28768
28763
|
e.onClick(), l(!1);
|
|
28769
28764
|
},
|
|
@@ -28771,44 +28766,44 @@ var Ex = {
|
|
|
28771
28766
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), e.onClick(), l(!1));
|
|
28772
28767
|
},
|
|
28773
28768
|
children: [e.icon && /* @__PURE__ */ L("div", {
|
|
28774
|
-
className: G(
|
|
28769
|
+
className: G(zS.itemIcon, e.iconContainerClassName),
|
|
28775
28770
|
children: e.icon
|
|
28776
28771
|
}), /* @__PURE__ */ R("div", {
|
|
28777
|
-
className:
|
|
28772
|
+
className: zS.itemText,
|
|
28778
28773
|
children: [/* @__PURE__ */ L("span", {
|
|
28779
|
-
className: G(
|
|
28774
|
+
className: G(zS.itemLabel, "dial-small-semi-text"),
|
|
28780
28775
|
children: e.label
|
|
28781
28776
|
}), e.description && /* @__PURE__ */ L("span", {
|
|
28782
|
-
className: G(
|
|
28777
|
+
className: G(zS.itemDescription, "dial-tiny-text"),
|
|
28783
28778
|
children: e.description
|
|
28784
28779
|
})]
|
|
28785
28780
|
})]
|
|
28786
28781
|
}, String(t)))
|
|
28787
28782
|
}),
|
|
28788
|
-
children: /* @__PURE__ */ L(
|
|
28783
|
+
children: /* @__PURE__ */ L(Gb, {
|
|
28789
28784
|
label: e,
|
|
28790
28785
|
iconBefore: /* @__PURE__ */ L(we, { size: m.SM }),
|
|
28791
28786
|
iconAfter: /* @__PURE__ */ R("span", {
|
|
28792
28787
|
className: "flex items-center gap-2",
|
|
28793
|
-
children: [/* @__PURE__ */ L("span", { className:
|
|
28788
|
+
children: [/* @__PURE__ */ L("span", { className: zS.splitDivider }), /* @__PURE__ */ L(le, {
|
|
28794
28789
|
size: m.SM,
|
|
28795
|
-
className: G(
|
|
28790
|
+
className: G(zS.chevron, r && zS.chevronOpen)
|
|
28796
28791
|
})]
|
|
28797
28792
|
}),
|
|
28798
|
-
className:
|
|
28793
|
+
className: zS.gradientBtn,
|
|
28799
28794
|
"aria-haspopup": "menu",
|
|
28800
28795
|
"aria-expanded": r,
|
|
28801
28796
|
onKeyDown: p
|
|
28802
28797
|
})
|
|
28803
28798
|
})
|
|
28804
|
-
}) : /* @__PURE__ */ L(
|
|
28799
|
+
}) : /* @__PURE__ */ L(Gb, {
|
|
28805
28800
|
label: e,
|
|
28806
28801
|
iconBefore: /* @__PURE__ */ L(we, { size: m.SM }),
|
|
28807
28802
|
onClick: n,
|
|
28808
|
-
className:
|
|
28803
|
+
className: zS.gradientBtn
|
|
28809
28804
|
});
|
|
28810
|
-
},
|
|
28811
|
-
let { typography: ae } = re ?? {}, oe =
|
|
28805
|
+
}, VS = ({ items: e, favorites: t, titles: n, onToggleFavorite: r, onUseInChat: i, isPrimaryActionVisible: s, onShare: c, isPublishVisible: f, getPublishHistory: p, publishFolderItems: m, publishExpandedPaths: h, onPublishExpandedPathsChange: g, publishLoadingPaths: _, hasPublishWriteAccess: v, onPublish: y, onPublishSuccess: b, onCreatePublishFolder: x, publishTexts: S, shareOverlay: C, connectOverlay: w, isConnectVisible: T, onFetchDetails: E, onEdit: D, onDelete: O, onLogin: k, onLogout: ee, onCreateClick: A, createOptions: j, hideCreateButton: M = !1, hidePageTitle: N = !1, selectedItemId: P, onCardClick: F, isLoading: te, styles: re, detailsTexts: ie, initialDetailsItemId: I }) => {
|
|
28806
|
+
let { typography: ae } = re ?? {}, oe = tx(re), se = n?.pageTitle ?? "Catalog", ce = n?.createLabel ?? "Create", le = n?.favoritesTitle ?? "Your favorites", ue = n?.browseTitle ?? "Browse", de = n?.searchPlaceholder ?? "Search models, tools, agents…", fe = n?.noResultsTitle ?? ((e) => `No results for "${e}"`), pe = n?.featuredLabel ?? "Featured", me = n?.gridViewLabel ?? "Grid view", he = n?.listViewLabel ?? "List view", ge = n?.ariaLabel ?? "Catalog", _e = [
|
|
28812
28807
|
{
|
|
28813
28808
|
value: Fe.RecentlyUpdated,
|
|
28814
28809
|
label: n?.sortRecentlyUpdatedLabel ?? "Recently Updated"
|
|
@@ -28821,7 +28816,7 @@ var Ex = {
|
|
|
28821
28816
|
value: Fe.NameAZ,
|
|
28822
28817
|
label: n?.sortNameAZLabel ?? "Name A-Z"
|
|
28823
28818
|
}
|
|
28824
|
-
], [z, ve] = d(""), [ye, be] = d(Be.Grid), [xe, Se] = d(!1), [Ce, we] = d(Fe.RecentlyUpdated), [Te, Ee] = d(/* @__PURE__ */ new Set()), [De, Oe] = d(!1), ke = l(() => e.filter((e) => !e.isHidden), [e]), Ae = l(() => new Set(ke.flatMap((e) => e.topics)), [ke]), je = l(() =>
|
|
28819
|
+
], [z, ve] = d(""), [ye, be] = d(Be.Grid), [xe, Se] = d(!1), [Ce, we] = d(Fe.RecentlyUpdated), [Te, Ee] = d(/* @__PURE__ */ new Set()), [De, Oe] = d(!1), ke = l(() => e.filter((e) => !e.isHidden), [e]), Ae = l(() => new Set(ke.flatMap((e) => e.topics)), [ke]), je = l(() => Zb(ke, n?.tabLabels), [ke, n?.tabLabels]), Me = je[0]?.id ?? "", [Ne, Pe] = d(Me);
|
|
28825
28820
|
o(() => {
|
|
28826
28821
|
Pe((e) => e || Me);
|
|
28827
28822
|
}, [Me]);
|
|
@@ -28891,17 +28886,17 @@ var Ex = {
|
|
|
28891
28886
|
children: /* @__PURE__ */ L(ne, {})
|
|
28892
28887
|
}) : /* @__PURE__ */ R("section", {
|
|
28893
28888
|
"aria-label": ge,
|
|
28894
|
-
className: G("flex size-full min-h-0 flex-1 flex-col",
|
|
28889
|
+
className: G("flex size-full min-h-0 flex-1 flex-col", RS.root),
|
|
28895
28890
|
style: oe,
|
|
28896
28891
|
children: [
|
|
28897
28892
|
(!N || !M) && /* @__PURE__ */ L("div", {
|
|
28898
|
-
className: G("shrink-0",
|
|
28893
|
+
className: G("shrink-0", RS.heading),
|
|
28899
28894
|
children: /* @__PURE__ */ R("div", {
|
|
28900
28895
|
className: "flex h-[64px] w-full items-center justify-between px-8",
|
|
28901
28896
|
children: [!N && /* @__PURE__ */ L("h1", {
|
|
28902
|
-
className: G(ae?.pageHeadingFontClassName ?? "dial-display2-text",
|
|
28897
|
+
className: G(ae?.pageHeadingFontClassName ?? "dial-display2-text", RS.headingTitle),
|
|
28903
28898
|
children: se
|
|
28904
|
-
}), !M && /* @__PURE__ */ L(
|
|
28899
|
+
}), !M && /* @__PURE__ */ L(BS, {
|
|
28905
28900
|
label: ce,
|
|
28906
28901
|
options: j,
|
|
28907
28902
|
onClick: A
|
|
@@ -28913,7 +28908,7 @@ var Ex = {
|
|
|
28913
28908
|
children: [
|
|
28914
28909
|
B && /* @__PURE__ */ L("div", {
|
|
28915
28910
|
className: "w-full px-8",
|
|
28916
|
-
children: /* @__PURE__ */ L(
|
|
28911
|
+
children: /* @__PURE__ */ L(wS, {
|
|
28917
28912
|
items: t,
|
|
28918
28913
|
totalCount: t.length,
|
|
28919
28914
|
title: le,
|
|
@@ -28927,7 +28922,7 @@ var Ex = {
|
|
|
28927
28922
|
}),
|
|
28928
28923
|
/* @__PURE__ */ L("div", {
|
|
28929
28924
|
className: "w-full px-4 pt-6",
|
|
28930
|
-
children: /* @__PURE__ */ L(
|
|
28925
|
+
children: /* @__PURE__ */ L(LS, {
|
|
28931
28926
|
totalCount: st.length,
|
|
28932
28927
|
viewMode: ye,
|
|
28933
28928
|
onViewModeChange: ut,
|
|
@@ -28952,7 +28947,7 @@ var Ex = {
|
|
|
28952
28947
|
}),
|
|
28953
28948
|
je.length > 0 && /* @__PURE__ */ L("div", {
|
|
28954
28949
|
className: "px-8",
|
|
28955
|
-
children: /* @__PURE__ */ L(
|
|
28950
|
+
children: /* @__PURE__ */ L(Ub, {
|
|
28956
28951
|
tabs: je.map((e) => ({
|
|
28957
28952
|
id: e.id,
|
|
28958
28953
|
label: typeof e.label == "string" ? e.label : String(e.label),
|
|
@@ -28972,7 +28967,7 @@ var Ex = {
|
|
|
28972
28967
|
className: "mx-auto min-h-full w-full max-w-[1180px] px-8 pt-6",
|
|
28973
28968
|
children: [/* @__PURE__ */ L("div", {
|
|
28974
28969
|
className: G("pb-8", ye !== Be.Grid && "hidden"),
|
|
28975
|
-
children: /* @__PURE__ */ L(
|
|
28970
|
+
children: /* @__PURE__ */ L(xx, {
|
|
28976
28971
|
items: ct,
|
|
28977
28972
|
query: z,
|
|
28978
28973
|
onToggleFavorite: r,
|
|
@@ -28982,7 +28977,7 @@ var Ex = {
|
|
|
28982
28977
|
})
|
|
28983
28978
|
}), xe && /* @__PURE__ */ L("div", {
|
|
28984
28979
|
className: G("pb-8", ye !== Be.List && "hidden"),
|
|
28985
|
-
children: /* @__PURE__ */ L(
|
|
28980
|
+
children: /* @__PURE__ */ L(kS, {
|
|
28986
28981
|
items: ct,
|
|
28987
28982
|
query: z,
|
|
28988
28983
|
ariaLabel: ge,
|
|
@@ -28997,7 +28992,7 @@ var Ex = {
|
|
|
28997
28992
|
})
|
|
28998
28993
|
]
|
|
28999
28994
|
}),
|
|
29000
|
-
rt != null && /* @__PURE__ */ L(
|
|
28995
|
+
rt != null && /* @__PURE__ */ L(yS, {
|
|
29001
28996
|
item: rt,
|
|
29002
28997
|
isOpen: Ve,
|
|
29003
28998
|
isStarred: lt,
|
|
@@ -29029,12 +29024,12 @@ var Ex = {
|
|
|
29029
29024
|
})
|
|
29030
29025
|
]
|
|
29031
29026
|
});
|
|
29032
|
-
},
|
|
29027
|
+
}, HS = {
|
|
29033
29028
|
backdrop: "_backdrop_4t085_1",
|
|
29034
29029
|
panel: "_panel_4t085_5",
|
|
29035
29030
|
divider: "_divider_4t085_10",
|
|
29036
29031
|
content: "_content_4t085_14"
|
|
29037
|
-
},
|
|
29032
|
+
}, US = ({ isOpen: e, item: t, resource: n, history: r, isHistoryLoading: i = !1, hasHistoryError: a = !1, folderItems: s, selectedFolderPath: c, onSelectedFolderPathChange: d, onCreateFolder: f, expandedPaths: p, onExpandedPathsChange: m, loadingPaths: h, hasExistingPublicationInFolder: g, hasWriteAccess: _, isSubmitting: v, hasSubmitError: b = !1, allowReplace: x = !0, onClose: S, returnFocusRef: C, onSubmit: w, panelTexts: T, footerTexts: E, texts: D = {} }) => {
|
|
29038
29033
|
let O = u(null), { title: k = "Publish", ariaLabel: ee = "Publish", closeAriaLabel: A = "Close" } = D, j = l(() => Je({
|
|
29039
29034
|
hasSelectedFolder: c != null,
|
|
29040
29035
|
hasExistingPublicationInFolder: g,
|
|
@@ -29066,7 +29061,7 @@ var Ex = {
|
|
|
29066
29061
|
document.removeEventListener("keydown", t);
|
|
29067
29062
|
};
|
|
29068
29063
|
}, [e, S]), /* @__PURE__ */ R(se, { children: [/* @__PURE__ */ L("div", {
|
|
29069
|
-
className: G("fixed inset-0 z-[55] transition-opacity duration-300",
|
|
29064
|
+
className: G("fixed inset-0 z-[55] transition-opacity duration-300", HS.backdrop, e ? "opacity-100" : "pointer-events-none opacity-0"),
|
|
29070
29065
|
onClick: S,
|
|
29071
29066
|
"aria-hidden": "true"
|
|
29072
29067
|
}), /* @__PURE__ */ R("div", {
|
|
@@ -29077,7 +29072,7 @@ var Ex = {
|
|
|
29077
29072
|
"aria-hidden": !e,
|
|
29078
29073
|
inert: !e,
|
|
29079
29074
|
tabIndex: -1,
|
|
29080
|
-
className: G("fixed inset-y-0 end-0 z-[60] 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",
|
|
29075
|
+
className: G("fixed inset-y-0 end-0 z-[60] 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", HS.panel, e ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
|
|
29081
29076
|
children: [
|
|
29082
29077
|
/* @__PURE__ */ R("div", {
|
|
29083
29078
|
className: "flex shrink-0 items-center gap-2 px-[22px] py-3",
|
|
@@ -29097,12 +29092,12 @@ var Ex = {
|
|
|
29097
29092
|
})
|
|
29098
29093
|
]
|
|
29099
29094
|
}),
|
|
29100
|
-
/* @__PURE__ */ L("div", { className: G("shrink-0",
|
|
29095
|
+
/* @__PURE__ */ L("div", { className: G("shrink-0", HS.divider) }),
|
|
29101
29096
|
/* @__PURE__ */ L("div", {
|
|
29102
|
-
className: G("min-h-0 flex-1 overflow-y-auto",
|
|
29097
|
+
className: G("min-h-0 flex-1 overflow-y-auto", HS.content),
|
|
29103
29098
|
children: /* @__PURE__ */ L("div", {
|
|
29104
29099
|
className: "p-[22px]",
|
|
29105
|
-
children: /* @__PURE__ */ L(
|
|
29100
|
+
children: /* @__PURE__ */ L(Mx, {
|
|
29106
29101
|
item: t,
|
|
29107
29102
|
resource: n,
|
|
29108
29103
|
history: r,
|
|
@@ -29124,7 +29119,7 @@ var Ex = {
|
|
|
29124
29119
|
})
|
|
29125
29120
|
})
|
|
29126
29121
|
}),
|
|
29127
|
-
/* @__PURE__ */ L(
|
|
29122
|
+
/* @__PURE__ */ L(Cx, {
|
|
29128
29123
|
version: t?.version ?? n?.version,
|
|
29129
29124
|
hasExistingPublicationInFolder: g,
|
|
29130
29125
|
isSubmitDisabled: j.isSubmitDisabled,
|
|
@@ -29137,4 +29132,4 @@ var Ex = {
|
|
|
29137
29132
|
})] });
|
|
29138
29133
|
};
|
|
29139
29134
|
//#endregion
|
|
29140
|
-
export {
|
|
29135
|
+
export { yx as Card, xx as CardGrid, bx as CardRowRenderer, VS as Catalog, Ne as CatalogDetailsTab, B as CatalogEntityType, Fe as CatalogSortKey, Be as CatalogViewMode, Me as CodeLanguage, Le as CredentialStatus, lx as CredentialsBadge, ze as CredentialsBadgeState, Re as CredentialsLevel, V as CredentialsUiState, Pe as EntityTag, ox as EntityTypeLabel, xS as FavoriteCard, wS as Favorites, NS as Filter, px as FolderPath, kS as ListView, Ve as PublishCalloutKind, Ax as PublishFoldersTree, Cx as PublishFooter, jx as PublishHistoryList, Mx as PublishPanel, US as StandalonePublishPanel, LS as Toolbar, Ie as ToolsetAuthenticationType, _x as TopicTag, tt as collectFolderKeys, Je as derivePublishState, Ge as filterCatalogItems, et as filterFolderTree, Xe as formatPublishedDate, lt as getCredentialsBadgeState, ct as getCredentialsUiState, ut as getSignedInLevel, Ke as sortCatalogItems, qe as useFavColumns, $e as usePublishFlow, ix as useScrollVirtualizer };
|