@epam/ai-dial-projects 1.3.0-dev.290 → 1.3.0-dev.296

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { DeleteConfirmationDialog as e, MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as t, MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as n, MarkdownRenderer as r, PROHIBITED_CONVERSATION_NAME_CHARS_RE as i, PanelEmptyState as a, RequestStatus as o, TextRefinementField as s, buildCssVars as c, getAttachmentTypeFromMime as l, inferMimeTypeFromPath as u, mergeClasses as d, useAvailableHeightCap as f, useIsMobile as p, useTextRefinement as m } from "@epam/ai-dial-chat-shared";
2
- import { Button as h, ButtonAppearance as g, ButtonDropdown as _, ButtonVariant as v, CardShell as y, DIAL_ICON_SIZE as b, DIAL_KIT_ICON_STROKE as x, Dropdown as S, ElementSize as C, EllipsisTooltip as w, ErrorText as T, FileDropzone as ee, FolderPath as E, GhostButton as D, GhostIconButton as O, Highlight as k, Input as te, Label as A, LinkButton as j, LiveRegion as M, LiveRegionElement as N, LiveRegionPoliteness as P, MenuItemMark as F, NeutralButton as I, Popup as ne, PopupSize as re, Search as ie, Spinner as ae } from "@epam/ai-dial-ui-kit";
3
- import { IconArrowNarrowLeft as L, IconArrowsSort as R, IconDotsVertical as oe, IconDownload as se, IconPencilMinus as z, IconPin as B, IconPinFilled as V, IconPlus as ce, IconShare as le, IconTrashX as ue, IconWorldShare as H, createReactComponent as U } from "@tabler/icons-react";
4
- import { Suspense as de, lazy as W, memo as G, useCallback as K, useEffect as fe, useId as q, useMemo as J, useRef as pe, useState as Y } from "react";
2
+ import { Button as h, ButtonAppearance as g, ButtonDropdown as _, ButtonVariant as v, CardShell as y, DIAL_ICON_SIZE as b, DIAL_KIT_ICON_STROKE as x, Dropdown as S, ElementSize as C, EllipsisTooltip as w, ErrorText as T, FileDropzone as E, FolderPath as D, GhostButton as O, GhostIconButton as k, Highlight as A, Input as j, Label as M, LinkButton as N, LiveRegion as P, LiveRegionElement as ee, LiveRegionPoliteness as F, MenuItemMark as I, NeutralButton as L, Popup as te, PopupSize as ne, Search as re, Spinner as ie } from "@epam/ai-dial-ui-kit";
3
+ import { IconArrowNarrowLeft as R, IconArrowsSort as ae, IconDotsVertical as z, IconDownload as oe, IconPencilMinus as B, IconPin as V, IconPinFilled as H, IconPlus as se, IconShare as ce, IconTrashX as le, IconWorldShare as U, createReactComponent as ue } from "@tabler/icons-react";
4
+ import { Suspense as de, lazy as fe, memo as W, useCallback as G, useEffect as pe, useId as K, useMemo as q, useRef as J, useState as Y } from "react";
5
5
  import { Fragment as me, jsx as X, jsxs as Z } from "react/jsx-runtime";
6
6
  import { AttachmentCard as he, FileDndOverlay as ge } from "@epam/ai-dial-attachment-input";
7
7
  import { BuilderFormContainer as _e } from "@epam/ai-dial-builder-form";
@@ -49,12 +49,17 @@ var ye = /* @__PURE__ */ function(e) {
49
49
  aboveLink: "_aboveLink_1gkfw_55",
50
50
  interactive: "_interactive_1gkfw_60"
51
51
  }, De = (e, t) => [e, ...(t ?? "").split("/").filter((e) => e.length > 0)], Oe = (e) => e.button === 0 && !e.metaKey && !e.ctrlKey && !e.shiftKey && !e.altKey, ke = ({ project: e, searchQuery: t, sourceLabel: n, folderPathLabel: r, pinnedLabel: i, pinLabel: a, onTogglePin: o, href: s, onOpen: c, now: l, locale: u, updatedAtClassName: f, titleClassName: p, pathLabelClassName: m, pathLeafClassName: h }) => {
52
- let g = /* @__PURE__ */ X(k, {
52
+ let g = /* @__PURE__ */ X(A, {
53
53
  text: e.name,
54
54
  query: t,
55
55
  maxLines: 1,
56
56
  className: d("min-w-0", p, Q.title, s != null && Q.aboveLink)
57
- });
57
+ }), _ = /* @__PURE__ */ X(D, {
58
+ segments: De(n, e.parentPath),
59
+ ariaLabel: r,
60
+ labelClassName: d(m, Q.path),
61
+ leafClassName: d(h, Q.path)
62
+ }), v = J(null);
58
63
  return /* @__PURE__ */ X("li", {
59
64
  className: "flex min-w-0",
60
65
  children: /* @__PURE__ */ Z(y, {
@@ -72,6 +77,7 @@ var ye = /* @__PURE__ */ function(e) {
72
77
  className: "min-w-0 flex-1",
73
78
  children: g
74
79
  }) : /* @__PURE__ */ X("a", {
80
+ ref: v,
75
81
  href: s,
76
82
  onClick: (t) => {
77
83
  c != null && Oe(t) && (t.preventDefault(), c(e.id));
@@ -80,19 +86,19 @@ var ye = /* @__PURE__ */ function(e) {
80
86
  children: g
81
87
  }), o == null ? e.isPinned && /* @__PURE__ */ Z("span", {
82
88
  className: d("absolute inset-e-5 top-5 flex", Q.pin),
83
- children: [/* @__PURE__ */ X(V, {
89
+ children: [/* @__PURE__ */ X(H, {
84
90
  size: b.SM,
85
91
  "aria-hidden": !0
86
92
  }), /* @__PURE__ */ X("span", {
87
93
  className: "sr-only",
88
94
  children: i
89
95
  })]
90
- }) : /* @__PURE__ */ X(O, {
96
+ }) : /* @__PURE__ */ X(k, {
91
97
  size: C.Small,
92
- icon: e.isPinned ? /* @__PURE__ */ X(V, {
98
+ icon: e.isPinned ? /* @__PURE__ */ X(H, {
93
99
  size: b.SM,
94
100
  "aria-hidden": !0
95
- }) : /* @__PURE__ */ X(B, {
101
+ }) : /* @__PURE__ */ X(V, {
96
102
  size: b.SM,
97
103
  "aria-hidden": !0,
98
104
  stroke: x
@@ -103,12 +109,20 @@ var ye = /* @__PURE__ */ function(e) {
103
109
  className: d("absolute inset-e-4 top-4", Q.pinToggle, !e.isPinned && Q.pinToggleIdle)
104
110
  })]
105
111
  }),
106
- /* @__PURE__ */ X(E, {
107
- segments: De(n, e.parentPath),
108
- ariaLabel: r,
109
- labelClassName: d(m, Q.path),
110
- leafClassName: d(h, Q.path),
111
- className: d(s != null && Q.aboveLink)
112
+ s == null ? _ : /* @__PURE__ */ X("div", {
113
+ className: Q.aboveLink,
114
+ onClick: (e) => {
115
+ v.current?.dispatchEvent(new window.MouseEvent("click", {
116
+ bubbles: !0,
117
+ cancelable: !0,
118
+ button: e.button,
119
+ ctrlKey: e.ctrlKey,
120
+ metaKey: e.metaKey,
121
+ shiftKey: e.shiftKey,
122
+ altKey: e.altKey
123
+ }));
124
+ },
125
+ children: _
112
126
  })
113
127
  ]
114
128
  })
@@ -117,46 +131,46 @@ var ye = /* @__PURE__ */ function(e) {
117
131
  container: "_container_4rer8_1",
118
132
  subtitle: "_subtitle_4rer8_5",
119
133
  sortButton: "_sortButton_4rer8_9"
120
- }, je = ({ projects: e, isLoading: t = !1, hasError: n = !1, incompleteSources: r = [], onRetry: i, onCreateProject: o, onTogglePin: s, onOpenProject: l, getProjectHref: u, searchQuery: f, onSearchQueryChange: m, sortKey: y, onSortKeyChange: S, labels: w, locale: T, styles: ee }) => {
121
- let { colors: E, typography: O } = ee ?? {}, k = O?.titleClassName ?? "dial-h1-text", te = O?.subtitleClassName ?? "dial-body-text", A = O?.cardTitleClassName ?? "dial-body-semi-text", j = O?.pathLabelClassName ?? "dial-tiny-text", P = O?.pathLeafClassName ?? "dial-tiny-semi-text", I = O?.updatedAtClassName ?? "dial-tiny-text", ne = O?.emptyStateDescriptionClassName ?? "dial-small-paragraph-text", re = c({
122
- "--pr-bg": E?.background,
123
- "--pr-subtitle-text": E?.subtitleText,
124
- "--pr-sort-text": E?.sortButtonText,
125
- "--pr-card-bg": E?.cardBackground,
126
- "--pr-card-title-text": E?.cardTitleText,
127
- "--pr-updated-at-text": E?.updatedAtText,
128
- "--pr-path-text": E?.pathText,
129
- "--pr-card-focus-outline": E?.cardFocusOutline
130
- }), L = p(), oe = J(() => Date.now(), [e]), se = f.trim(), z = r.length > 0, B = z && e.length === 0, V = J(() => xe(be(e, f), y, T), [
134
+ }, je = ({ projects: e, isLoading: t = !1, hasError: n = !1, incompleteSources: r = [], onRetry: i, onCreateProject: o, onTogglePin: s, onOpenProject: l, getProjectHref: u, searchQuery: f, onSearchQueryChange: m, sortKey: y, onSortKeyChange: S, labels: w, locale: T, styles: E }) => {
135
+ let { colors: D, typography: k } = E ?? {}, A = k?.titleClassName ?? "dial-h1-text", j = k?.subtitleClassName ?? "dial-body-text", M = k?.cardTitleClassName ?? "dial-body-semi-text", N = k?.pathLabelClassName ?? "dial-tiny-text", F = k?.pathLeafClassName ?? "dial-tiny-semi-text", L = k?.updatedAtClassName ?? "dial-tiny-text", te = k?.emptyStateDescriptionClassName ?? "dial-small-paragraph-text", ne = c({
136
+ "--pr-bg": D?.background,
137
+ "--pr-subtitle-text": D?.subtitleText,
138
+ "--pr-sort-text": D?.sortButtonText,
139
+ "--pr-card-bg": D?.cardBackground,
140
+ "--pr-card-title-text": D?.cardTitleText,
141
+ "--pr-updated-at-text": D?.updatedAtText,
142
+ "--pr-path-text": D?.pathText,
143
+ "--pr-card-focus-outline": D?.cardFocusOutline
144
+ }), R = p(), z = q(() => Date.now(), [e]), oe = f.trim(), B = r.length > 0, V = B && e.length === 0, H = q(() => xe(be(e, f), y, T), [
131
145
  e,
132
146
  f,
133
147
  y,
134
148
  T
135
- ]), le = w.sortOptions.find((e) => e.value === y)?.label ?? w.sortLabel, ue = J(() => w.sortOptions.map((e) => ({
149
+ ]), ce = w.sortOptions.find((e) => e.value === y)?.label ?? w.sortLabel, le = q(() => w.sortOptions.map((e) => ({
136
150
  key: e.value,
137
151
  label: e.label,
138
- mark: F.Check,
152
+ mark: I.Check,
139
153
  checked: e.value === y,
140
154
  onClick: () => S(e.value)
141
155
  })), [
142
156
  w.sortOptions,
143
157
  y,
144
158
  S
145
- ]), H = (e) => {
159
+ ]), U = (e) => {
146
160
  m(e ?? "");
147
- }, U = () => {
148
- if (!t) return n ? w.errorLabel : z ? w.incompleteLabel : e.length === 0 ? w.emptyStateLabel : V.length === 0 ? w.noResultsLabel : w.resultCountLabel(V.length);
161
+ }, ue = () => {
162
+ if (!t) return n ? w.errorLabel : B ? w.incompleteLabel : e.length === 0 ? w.emptyStateLabel : H.length === 0 ? w.noResultsLabel : w.resultCountLabel(H.length);
149
163
  }, de = (e, t) => o ? /* @__PURE__ */ X(h, {
150
164
  label: w.createProjectLabel,
151
165
  variant: e,
152
166
  onClick: o,
153
167
  className: d("shrink-0", t)
154
- }) : void 0, W = () => t ? /* @__PURE__ */ X(ae, {}) : n || B ? /* @__PURE__ */ Z("div", {
168
+ }) : void 0, fe = () => t ? /* @__PURE__ */ X(ie, {}) : n || V ? /* @__PURE__ */ Z("div", {
155
169
  className: "flex flex-col items-center gap-3",
156
170
  children: [/* @__PURE__ */ X("p", {
157
- className: d(te, Ae.subtitle),
171
+ className: d(j, Ae.subtitle),
158
172
  children: n ? w.errorLabel : w.incompleteLabel
159
- }), /* @__PURE__ */ X(D, {
173
+ }), /* @__PURE__ */ X(O, {
160
174
  label: w.retryLabel,
161
175
  onClick: i
162
176
  })]
@@ -164,18 +178,18 @@ var ye = /* @__PURE__ */ function(e) {
164
178
  label: w.emptyStateLabel,
165
179
  description: w.emptyStateDescription,
166
180
  action: de(v.Secondary, "mt-2"),
167
- containerClassName: K,
181
+ containerClassName: G,
168
182
  labelClassName: "mt-3",
169
- descriptionClassName: ne
170
- }) : V.length === 0 ? /* @__PURE__ */ X(a, {
183
+ descriptionClassName: te
184
+ }) : H.length === 0 ? /* @__PURE__ */ X(a, {
171
185
  label: w.noResultsLabel,
172
- containerClassName: K,
186
+ containerClassName: G,
173
187
  labelClassName: "mt-3"
174
188
  }) : /* @__PURE__ */ X("ul", {
175
189
  className: "m-0 grid w-full min-w-0 list-none grid-cols-1 gap-4 p-0 desktop:grid-cols-3 desktop:gap-5",
176
- children: V.map((e) => /* @__PURE__ */ X(ke, {
190
+ children: H.map((e) => /* @__PURE__ */ X(ke, {
177
191
  project: e,
178
- searchQuery: se,
192
+ searchQuery: oe,
179
193
  sourceLabel: w.sourceLabels[e.source],
180
194
  folderPathLabel: w.folderPathLabel,
181
195
  pinnedLabel: w.pinnedLabel ?? "Pinned",
@@ -183,21 +197,21 @@ var ye = /* @__PURE__ */ function(e) {
183
197
  onTogglePin: s,
184
198
  href: u?.(e.id),
185
199
  onOpen: l,
186
- now: oe,
200
+ now: z,
187
201
  locale: T,
188
- updatedAtClassName: I,
189
- titleClassName: A,
190
- pathLabelClassName: j,
191
- pathLeafClassName: P
202
+ updatedAtClassName: L,
203
+ titleClassName: M,
204
+ pathLabelClassName: N,
205
+ pathLeafClassName: F
192
206
  }, e.id))
193
- }), G = t || n || B, K = "mt-6 p-3 desktop:mt-0";
207
+ }), W = t || n || V, G = "mt-6 p-3 desktop:mt-0";
194
208
  return /* @__PURE__ */ Z("div", {
195
- style: re,
209
+ style: ne,
196
210
  className: d("relative flex h-full w-full min-w-0 flex-col", Ae.container),
197
211
  children: [/* @__PURE__ */ Z("div", {
198
212
  className: "flex min-h-0 w-full min-w-0 flex-1 flex-col overflow-y-auto",
199
213
  children: [
200
- L ? /* @__PURE__ */ X("h1", {
214
+ R ? /* @__PURE__ */ X("h1", {
201
215
  className: "sr-only",
202
216
  children: w.title
203
217
  }) : /* @__PURE__ */ Z("div", {
@@ -205,10 +219,10 @@ var ye = /* @__PURE__ */ function(e) {
205
219
  children: [/* @__PURE__ */ Z("div", {
206
220
  className: "flex min-h-10 min-w-0 flex-1 flex-col justify-center gap-0.5",
207
221
  children: [/* @__PURE__ */ X("h1", {
208
- className: d("wrap-break-word", k),
222
+ className: d("wrap-break-word", A),
209
223
  children: w.title
210
224
  }), w.subtitle && /* @__PURE__ */ X("p", {
211
- className: d(te, Ae.subtitle),
225
+ className: d(j, Ae.subtitle),
212
226
  children: w.subtitle
213
227
  })]
214
228
  }), de(v.Primary)]
@@ -218,26 +232,26 @@ var ye = /* @__PURE__ */ function(e) {
218
232
  children: [/* @__PURE__ */ X("div", {
219
233
  role: "search",
220
234
  className: "min-w-0 flex-1",
221
- children: /* @__PURE__ */ X(ie, {
235
+ children: /* @__PURE__ */ X(re, {
222
236
  value: f,
223
- onChange: H,
237
+ onChange: U,
224
238
  placeholder: w.searchPlaceholder,
225
239
  clearLabel: w.clearSearchLabel,
226
240
  "aria-label": w.searchAriaLabel,
227
- size: L ? C.Standard : C.Large
241
+ size: R ? C.Standard : C.Large
228
242
  })
229
243
  }), w.sortOptions.length > 0 && /* @__PURE__ */ X("div", {
230
244
  role: "group",
231
245
  "aria-label": w.sortLabel,
232
246
  className: "shrink-0",
233
247
  children: /* @__PURE__ */ X(_, {
234
- items: ue,
235
- label: le,
248
+ items: le,
249
+ label: ce,
236
250
  variant: v.Primary,
237
251
  appearance: g.Ghost,
238
- size: L ? C.Small : C.Standard,
239
- iconBefore: /* @__PURE__ */ X(R, {
240
- size: L ? b.SM : b.MD,
252
+ size: R ? C.Small : C.Standard,
253
+ iconBefore: /* @__PURE__ */ X(ae, {
254
+ size: R ? b.SM : b.MD,
241
255
  "aria-hidden": !0,
242
256
  stroke: x
243
257
  }),
@@ -245,31 +259,31 @@ var ye = /* @__PURE__ */ function(e) {
245
259
  })
246
260
  })]
247
261
  }),
248
- /* @__PURE__ */ X(M, {
262
+ /* @__PURE__ */ X(P, {
249
263
  visuallyHidden: !0,
250
- as: N.Span,
251
- children: U()
264
+ as: ee.Span,
265
+ children: ue()
252
266
  }),
253
267
  /* @__PURE__ */ Z("div", {
254
268
  className: "flex w-full min-w-0 flex-1 flex-col items-center gap-4 px-4 pb-20 desktop:gap-5 desktop:px-8 desktop:pt-6 desktop:pb-8",
255
- children: [z && !t && !n && !B && /* @__PURE__ */ Z("div", {
269
+ children: [B && !t && !n && !V && /* @__PURE__ */ Z("div", {
256
270
  className: "flex w-full max-w-[1116px] flex-wrap items-center gap-3",
257
271
  children: [/* @__PURE__ */ X("p", {
258
- className: d(te, Ae.subtitle),
272
+ className: d(j, Ae.subtitle),
259
273
  children: w.incompleteLabel
260
- }), /* @__PURE__ */ X(D, {
274
+ }), /* @__PURE__ */ X(O, {
261
275
  label: w.retryLabel,
262
276
  onClick: i
263
277
  })]
264
278
  }), /* @__PURE__ */ X("div", {
265
- className: d("flex w-full max-w-[1116px] min-w-0 flex-col items-center", G && "flex-1 justify-center"),
266
- children: W()
279
+ className: d("flex w-full max-w-[1116px] min-w-0 flex-col items-center", W && "flex-1 justify-center"),
280
+ children: fe()
267
281
  })]
268
282
  })
269
283
  ]
270
- }), L && o && /* @__PURE__ */ X(h, {
284
+ }), R && o && /* @__PURE__ */ X(h, {
271
285
  variant: v.Primary,
272
- iconBefore: /* @__PURE__ */ X(ce, {
286
+ iconBefore: /* @__PURE__ */ X(se, {
273
287
  size: b.LG,
274
288
  "aria-hidden": !0,
275
289
  stroke: x
@@ -282,20 +296,20 @@ var ye = /* @__PURE__ */ function(e) {
282
296
  }, Me = /* @__PURE__ */ function(e) {
283
297
  return e.Personal = "personal", e.Shared = "shared", e.Organization = "organization", e;
284
298
  }({}), Ne = (e) => !!e.dataTransfer?.types.includes("Files"), Pe = (e) => {
285
- let [t, n] = Y(!1), r = pe(0);
299
+ let [t, n] = Y(!1), r = J(0);
286
300
  return {
287
301
  isDragActive: t,
288
302
  handlers: {
289
- onDragEnter: K((e) => {
303
+ onDragEnter: G((e) => {
290
304
  Ne(e) && (e.preventDefault(), r.current += 1, n(!0));
291
305
  }, []),
292
- onDragLeave: K((e) => {
306
+ onDragLeave: G((e) => {
293
307
  Ne(e) && (--r.current, r.current <= 0 && (r.current = 0, n(!1)));
294
308
  }, []),
295
- onDragOver: K((e) => {
309
+ onDragOver: G((e) => {
296
310
  Ne(e) && e.preventDefault();
297
311
  }, []),
298
- onDrop: K((t) => {
312
+ onDrop: G((t) => {
299
313
  if (!Ne(t)) return;
300
314
  t.preventDefault(), r.current = 0, n(!1);
301
315
  let i = Array.from(t.dataTransfer?.files ?? []);
@@ -351,38 +365,38 @@ var ye = /* @__PURE__ */ function(e) {
351
365
  dropZone: "_dropZone_ub3na_11",
352
366
  label: "_label_ub3na_15",
353
367
  link: "_link_ub3na_19"
354
- }, et = W(async () => ({ default: (await ve()).MarkdownEditor })), tt = (e) => `Preview ${e}`, nt = ({ values: e, errors: r, onFieldChange: i, contextFiles: a, onContextFilesChange: o, onContextFileClick: l, selectedContextFileId: u, allowedExtensions: p, maxFileBytes: h, maxTotalBytes: g, onPickFromFileManager: _, onRefineInstructions: v, onBack: y, onCancel: S, onSubmit: C, isSubmitting: w = !1, labels: E, markdownEditorTheme: D, className: O, styles: k }) => {
355
- let j = q(), F = q(), I = q(), ne = q(), re = pe(null), ie = f(), [R, oe] = Y(!1), [se, z] = Y([]), [B, V] = Y(""), ce = m({
368
+ }, et = fe(async () => ({ default: (await ve()).MarkdownEditor })), tt = (e) => `Preview ${e}`, nt = ({ values: e, errors: r, onFieldChange: i, contextFiles: a, onContextFilesChange: o, onContextFileClick: l, selectedContextFileId: u, allowedExtensions: p, maxFileBytes: h, maxTotalBytes: g, onPickFromFileManager: _, onRefineInstructions: v, onBack: y, onCancel: S, onSubmit: C, isSubmitting: w = !1, labels: D, markdownEditorTheme: O, className: k, styles: A }) => {
369
+ let N = K(), I = K(), L = K(), te = K(), ne = J(null), re = f(), [ae, z] = Y(!1), [oe, B] = Y([]), [V, H] = Y(""), se = m({
356
370
  value: e.instructions,
357
371
  onChange: (e) => i("instructions", e),
358
372
  onRefine: v,
359
373
  disabled: w
360
- }), le = ce.isPending, ue = He(e.name), H = r.name ?? (R && ue != null ? E.nameErrors[ue] : void 0), U = ue != null || w || le;
361
- fe(() => {
362
- r.name && re.current?.focus();
374
+ }), ce = se.isPending, le = He(e.name), U = r.name ?? (ae && le != null ? D.nameErrors[le] : void 0), ue = le != null || w || ce;
375
+ pe(() => {
376
+ r.name && ne.current?.focus();
363
377
  }, [r.name]);
364
- let W = J(() => p.map((e) => `.${e}`).join(","), [p]), G = (e) => {
378
+ let fe = q(() => p.map((e) => `.${e}`).join(","), [p]), W = (e) => {
365
379
  if (e.length === 0) return;
366
380
  let { accepted: t, rejected: n } = Ze(e, a, {
367
381
  allowedExtensions: p,
368
382
  maxFileBytes: h,
369
383
  maxTotalBytes: g
370
384
  });
371
- z(n), t.length > 0 && o([...a, ...t]), V([t.length > 0 ? E.filesAddedStatus(t.length) : "", ...n.map(({ name: e, reason: t }) => E.fileRejections[t](e))].filter(Boolean).join(" "));
372
- }, { isDragActive: K, handlers: me } = Pe(G), ve = E.openFileLabel ?? tt, ye = (e) => {
385
+ B(n), t.length > 0 && o([...a, ...t]), H([t.length > 0 ? D.filesAddedStatus(t.length) : "", ...n.map(({ name: e, reason: t }) => D.fileRejections[t](e))].filter(Boolean).join(" "));
386
+ }, { isDragActive: G, handlers: me } = Pe(W), ve = D.openFileLabel ?? tt, ye = (e) => {
373
387
  let t = a.find((t) => t.id === e);
374
- o(a.filter((t) => t.id !== e)), z([]), t && V(E.fileRemovedStatus(t.name));
388
+ o(a.filter((t) => t.id !== e)), B([]), t && H(D.fileRemovedStatus(t.name));
375
389
  }, be = async (e) => {
376
390
  if (e.preventDefault(), e.stopPropagation(), _) try {
377
391
  let e = await _();
378
- e && G(e);
392
+ e && W(e);
379
393
  } catch {}
380
394
  }, xe = () => {
381
- U || C();
382
- }, { colors: Se, typography: Ce } = k ?? {}, we = Ce?.titleClassName ?? "dial-h1-text", Te = d(Ce?.labelClassName ?? "dial-tiny-semi-text", $e.label), Ee = Ce?.helperClassName ?? "dial-tiny-text", Q = c({
395
+ ue || C();
396
+ }, { colors: Se, typography: Ce } = A ?? {}, we = Ce?.titleClassName ?? "dial-h1-text", Te = d(Ce?.labelClassName ?? "dial-tiny-semi-text", $e.label), Ee = Ce?.helperClassName ?? "dial-tiny-text", Q = c({
383
397
  "--pcf-label-text": Se?.labelText,
384
398
  "--pcf-link-text": Se?.linkText
385
- }), De = E.refinement, Oe = r.context, ke = [...se.map(({ name: e, reason: t }) => E.fileRejections[t](e)), Oe].filter(Boolean).join("\n"), Ae = E.dropZoneLabel({
399
+ }), De = D.refinement, Oe = r.context, ke = [...oe.map(({ name: e, reason: t }) => D.fileRejections[t](e)), Oe].filter(Boolean).join("\n"), Ae = D.dropZoneLabel({
386
400
  fromDevice: /* @__PURE__ */ X("span", { className: $e.link }),
387
401
  fileManager: _ ? /* @__PURE__ */ X("button", {
388
402
  type: "button",
@@ -392,31 +406,31 @@ var ye = /* @__PURE__ */ function(e) {
392
406
  }) : void 0
393
407
  });
394
408
  return /* @__PURE__ */ Z("div", {
395
- className: d("relative flex h-full min-h-0 w-full", O),
409
+ className: d("relative flex h-full min-h-0 w-full", k),
396
410
  ...me,
397
411
  children: [
398
412
  /* @__PURE__ */ X(ge, {
399
- isVisible: K,
413
+ isVisible: G,
400
414
  labels: {
401
- title: E.dropOverlayTitle,
402
- subtitle: E.dropOverlaySubtitle
415
+ title: D.dropOverlayTitle,
416
+ subtitle: D.dropOverlaySubtitle
403
417
  }
404
418
  }),
405
419
  /* @__PURE__ */ X(_e, {
406
420
  labels: {
407
- title: E.title,
408
- backButtonLabel: E.backLabel,
409
- cancelButtonLabel: E.cancelLabel,
410
- submitButtonLabel: E.createLabel,
411
- submittingLabel: E.submittingLabel ?? E.createLabel
421
+ title: D.title,
422
+ backButtonLabel: D.backLabel,
423
+ cancelButtonLabel: D.cancelLabel,
424
+ submitButtonLabel: D.createLabel,
425
+ submittingLabel: D.submittingLabel ?? D.createLabel
412
426
  },
413
427
  onBack: y,
414
428
  onCancel: S,
415
429
  onSubmit: xe,
416
430
  isCancelDisabled: w,
417
- isSubmitDisabled: U,
431
+ isSubmitDisabled: ue,
418
432
  isSubmitting: w,
419
- backIcon: /* @__PURE__ */ X(L, {
433
+ backIcon: /* @__PURE__ */ X(R, {
420
434
  size: b.LG,
421
435
  stroke: x,
422
436
  "aria-hidden": !0,
@@ -436,93 +450,93 @@ var ye = /* @__PURE__ */ function(e) {
436
450
  /* @__PURE__ */ Z("div", {
437
451
  className: "flex flex-col gap-1",
438
452
  children: [
439
- /* @__PURE__ */ X(te, {
440
- id: j,
441
- inputRef: re,
453
+ /* @__PURE__ */ X(j, {
454
+ id: N,
455
+ inputRef: ne,
442
456
  value: e.name,
443
457
  onChange: (e) => i("name", e ?? ""),
444
- onBlur: () => oe(!0),
445
- placeholder: E.namePlaceholder,
458
+ onBlur: () => z(!0),
459
+ placeholder: D.namePlaceholder,
446
460
  labelProps: {
447
- label: E.nameLabel,
461
+ label: D.nameLabel,
448
462
  required: !0
449
463
  },
450
464
  required: !0,
451
465
  "aria-required": !0,
452
- invalid: !!H,
453
- "aria-invalid": !!H,
454
- "aria-describedby": H ? F : void 0
466
+ invalid: !!U,
467
+ "aria-invalid": !!U,
468
+ "aria-describedby": U ? I : void 0
455
469
  }),
456
470
  /* @__PURE__ */ X(T, {
457
- announce: P.Assertive,
458
- id: F,
471
+ announce: F.Assertive,
472
+ id: I,
459
473
  className: Ee,
460
474
  text: r.name ?? ""
461
475
  }),
462
- H && !r.name && /* @__PURE__ */ X(T, {
463
- id: F,
476
+ U && !r.name && /* @__PURE__ */ X(T, {
477
+ id: I,
464
478
  className: Ee,
465
- text: H
479
+ text: U
466
480
  })
467
481
  ]
468
482
  }),
469
483
  /* @__PURE__ */ X(s, {
470
484
  isEnabled: !!v,
471
- fieldId: I,
472
- label: E.instructionsLabel,
485
+ fieldId: L,
486
+ label: D.instructionsLabel,
473
487
  labelClassName: Te,
474
488
  labels: De,
475
- refinement: ce,
476
- disabled: w || le,
489
+ refinement: se,
490
+ disabled: w || ce,
477
491
  children: /* @__PURE__ */ Z("div", {
478
492
  className: "flex flex-1 flex-col gap-2",
479
- children: [!v && /* @__PURE__ */ X(A, {
480
- htmlFor: I,
493
+ children: [!v && /* @__PURE__ */ X(M, {
494
+ htmlFor: L,
481
495
  className: Te,
482
- label: E.instructionsLabel
496
+ label: D.instructionsLabel
483
497
  }), /* @__PURE__ */ X("div", {
484
- ref: ie,
498
+ ref: re,
485
499
  className: d("w-full", t, n),
486
500
  children: /* @__PURE__ */ X(de, {
487
- fallback: /* @__PURE__ */ X(ae, {}),
501
+ fallback: /* @__PURE__ */ X(ie, {}),
488
502
  children: /* @__PURE__ */ X(et, {
489
- id: I,
503
+ id: L,
490
504
  value: e.instructions,
491
505
  onChange: (e) => {
492
- ce.reset(), i("instructions", e);
506
+ se.reset(), i("instructions", e);
493
507
  },
494
508
  height: 176,
495
- theme: D,
496
- placeholder: E.instructionsPlaceholder
509
+ theme: O,
510
+ placeholder: D.instructionsPlaceholder
497
511
  })
498
512
  })
499
513
  })]
500
514
  })
501
515
  }),
502
516
  /* @__PURE__ */ Z("section", {
503
- "aria-labelledby": ne,
517
+ "aria-labelledby": te,
504
518
  className: "flex flex-col gap-2",
505
519
  children: [
506
520
  /* @__PURE__ */ X("h2", {
507
- id: ne,
521
+ id: te,
508
522
  className: Te,
509
- children: E.contextLabel
523
+ children: D.contextLabel
510
524
  }),
511
- /* @__PURE__ */ X(ee, {
525
+ /* @__PURE__ */ X(E, {
512
526
  label: Ae,
513
- ariaLabel: E.dropZoneAriaLabel,
514
- description: E.dropZoneHint,
515
- accept: W,
527
+ ariaLabel: D.dropZoneAriaLabel,
528
+ description: D.dropZoneHint,
529
+ accept: fe,
516
530
  multiple: !0,
517
531
  disabled: w,
518
- onChange: G,
519
- onReject: G,
532
+ onChange: W,
533
+ onReject: W,
520
534
  errorText: ke || void 0,
521
535
  className: $e.dropZone
522
536
  }),
523
- /* @__PURE__ */ X(M, {
537
+ /* @__PURE__ */ X(P, {
524
538
  visuallyHidden: !0,
525
- politeness: P.Assertive,
539
+ politeness: F.Assertive,
526
540
  children: Oe
527
541
  }),
528
542
  a.length > 0 && /* @__PURE__ */ X("ul", {
@@ -535,7 +549,7 @@ var ye = /* @__PURE__ */ function(e) {
535
549
  isSelected: l == null ? void 0 : e.id === u,
536
550
  onRemove: ye,
537
551
  labels: {
538
- removeLabel: E.removeFileLabel(e.name),
552
+ removeLabel: D.removeFileLabel(e.name),
539
553
  clickLabel: ve(e.name)
540
554
  }
541
555
  })
@@ -546,14 +560,14 @@ var ye = /* @__PURE__ */ function(e) {
546
560
  ]
547
561
  })
548
562
  }),
549
- /* @__PURE__ */ X(M, {
563
+ /* @__PURE__ */ X(P, {
550
564
  visuallyHidden: !0,
551
- as: N.Span,
552
- children: w ? E.creatingStatus : B
565
+ as: ee.Span,
566
+ children: w ? D.creatingStatus : V
553
567
  })
554
568
  ]
555
569
  });
556
- }, rt = U("outline", "pin-off", "PinOff", [
570
+ }, rt = ue("outline", "pin-off", "PinOff", [
557
571
  ["path", {
558
572
  d: "M3 3l18 18",
559
573
  key: "svg-0"
@@ -595,15 +609,15 @@ var ye = /* @__PURE__ */ function(e) {
595
609
  contentType: e.contentType,
596
610
  type: l(e.contentType),
597
611
  status: o.Idle
598
- }), at = G(({ project: e, isLoading: t = !1, hasError: n = !1, isNotFound: i = !1, isPinned: o, isPinPending: s = !1, contextSearchQuery: l, onContextSearchQueryChange: u, onBack: f, onTogglePin: p, onPublish: m, onEdit: h, onShare: g, onDelete: _, onDownload: v, onContextFileClick: y, selectedContextFileId: C, isDetailsStacked: T = !1, onRetry: ee, onBrowseProjects: E, mainContent: k, mainContentLabel: te = "Project content", labels: A, styles: j }) => {
599
- let { colors: P, typography: F } = j ?? {}, ne = F?.titleClassName ?? "dial-h2-text", re = F?.panelTitleClassName ?? "dial-body-semi-text", R = F?.sectionTitleClassName ?? "dial-tiny-text", V = F?.bodyClassName ?? "dial-small-text", ce = F?.helperClassName ?? "dial-tiny-text", U = F?.instructionsHeadingClassName ?? "dial-small-semi-text", de = c({
600
- "--pv-bg": P?.background,
601
- "--pv-border": P?.border,
602
- "--pv-heading-text": P?.headingText,
603
- "--pv-body-text": P?.bodyText,
604
- "--pv-secondary-text": P?.secondaryText
605
- }), W = J(() => e?.contextFiles ?? [], [e]), G = J(() => Qe(W, l), [W, l]), K = l.trim(), fe = q(), pe = J(() => {
606
- let e = d("mb-1 mt-3 first:mt-0", U);
612
+ }), at = W(({ project: e, isLoading: t = !1, hasError: n = !1, isNotFound: i = !1, isPinned: o, isPinPending: s = !1, contextSearchQuery: l, onContextSearchQueryChange: u, onBack: f, onTogglePin: p, onPublish: m, onEdit: h, onShare: g, onDelete: _, onDownload: v, onContextFileClick: y, selectedContextFileId: C, isDetailsStacked: T = !1, onRetry: E, onBrowseProjects: D, mainContent: A, mainContentLabel: j = "Project content", labels: M, styles: N }) => {
613
+ let { colors: F, typography: I } = N ?? {}, te = I?.titleClassName ?? "dial-h1-text", ne = I?.panelTitleClassName ?? "dial-body-semi-text", ae = I?.sectionTitleClassName ?? "dial-tiny-text", H = I?.bodyClassName ?? "dial-small-text", se = I?.helperClassName ?? "dial-tiny-text", ue = I?.instructionsHeadingClassName ?? "dial-small-semi-text", de = c({
614
+ "--pv-bg": F?.background,
615
+ "--pv-border": F?.border,
616
+ "--pv-heading-text": F?.headingText,
617
+ "--pv-body-text": F?.bodyText,
618
+ "--pv-secondary-text": F?.secondaryText
619
+ }), fe = q(() => e?.contextFiles ?? [], [e]), W = q(() => Qe(fe, l), [fe, l]), G = l.trim(), pe = K(), J = q(() => {
620
+ let e = d("mb-1 mt-3 first:mt-0", ue);
607
621
  return {
608
622
  h1: e,
609
623
  h2: e,
@@ -611,11 +625,11 @@ var ye = /* @__PURE__ */ function(e) {
611
625
  h4: e,
612
626
  h5: e,
613
627
  h6: e,
614
- p: V,
615
- ul: V,
616
- ol: V
628
+ p: H,
629
+ ul: H,
630
+ ol: H
617
631
  };
618
- }, [V, U]), Y = (e) => /* @__PURE__ */ X(e, {
632
+ }, [H, ue]), Y = (e) => /* @__PURE__ */ X(e, {
619
633
  size: b.SM,
620
634
  "aria-hidden": !0,
621
635
  stroke: x
@@ -623,28 +637,28 @@ var ye = /* @__PURE__ */ function(e) {
623
637
  let t = [];
624
638
  return e && m && t.push({
625
639
  key: "publish",
626
- label: A.publishLabel,
627
- icon: Y(H),
640
+ label: M.publishLabel,
641
+ icon: Y(U),
628
642
  onClick: m
629
643
  }), e && h && t.push({
630
644
  key: "edit",
631
- label: A.editLabel,
632
- icon: Y(z),
645
+ label: M.editLabel,
646
+ icon: Y(B),
633
647
  onClick: h
634
648
  }), g && t.push({
635
649
  key: "share",
636
- label: A.shareLabel,
637
- icon: Y(le),
650
+ label: M.shareLabel,
651
+ icon: Y(ce),
638
652
  onClick: g
639
653
  }), t.push({
640
654
  key: "download",
641
- label: A.downloadLabel,
642
- icon: Y(se),
655
+ label: M.downloadLabel,
656
+ icon: Y(oe),
643
657
  onClick: v
644
658
  }), _ && t.push({
645
659
  key: "delete",
646
- label: A.deleteLabel,
647
- icon: Y(ue),
660
+ label: M.deleteLabel,
661
+ icon: Y(le),
648
662
  danger: !0,
649
663
  onClick: _
650
664
  }), t;
@@ -654,75 +668,109 @@ var ye = /* @__PURE__ */ function(e) {
654
668
  items: ge(e),
655
669
  matchReferenceWidth: !1,
656
670
  listClassName: "w-[200px]",
657
- children: /* @__PURE__ */ X(O, {
658
- icon: /* @__PURE__ */ X(oe, {
671
+ children: /* @__PURE__ */ X(k, {
672
+ icon: /* @__PURE__ */ X(z, {
659
673
  size: b.MD,
660
674
  "aria-hidden": !0,
661
675
  stroke: x
662
676
  }),
663
- "aria-label": A.moreActionsLabel
677
+ "aria-label": M.moreActionsLabel
664
678
  })
665
679
  })
680
+ }), ve = () => {
681
+ s || p();
682
+ }, ye = () => t ? /* @__PURE__ */ X(ie, {}) : n ? /* @__PURE__ */ Z("div", {
683
+ className: "flex flex-col items-center gap-3",
684
+ children: [/* @__PURE__ */ X("p", {
685
+ role: "status",
686
+ className: d(H, $.body),
687
+ children: M.errorLabel
688
+ }), /* @__PURE__ */ X(O, {
689
+ label: M.retryLabel,
690
+ onClick: E
691
+ })]
692
+ }) : /* @__PURE__ */ Z("div", {
693
+ className: "flex flex-col items-center gap-3",
694
+ children: [/* @__PURE__ */ X("p", {
695
+ className: d(H, $.body),
696
+ children: M.notFoundLabel
697
+ }), /* @__PURE__ */ X(O, {
698
+ label: M.browseProjectsLabel,
699
+ onClick: D
700
+ })]
666
701
  });
667
- return t || n || i || e == null ? /* @__PURE__ */ X("div", {
702
+ if (t || n || i || e == null) return /* @__PURE__ */ X("div", {
668
703
  style: de,
669
704
  className: d("flex h-full w-full min-w-0 items-center justify-center p-4", $.container),
670
- children: t ? /* @__PURE__ */ X(ae, {}) : n ? /* @__PURE__ */ Z("div", {
671
- className: "flex flex-col items-center gap-3",
672
- children: [/* @__PURE__ */ X("p", {
673
- role: "status",
674
- className: d(V, $.body),
675
- children: A.errorLabel
676
- }), /* @__PURE__ */ X(D, {
677
- label: A.retryLabel,
678
- onClick: ee
679
- })]
680
- }) : /* @__PURE__ */ Z("div", {
681
- className: "flex flex-col items-center gap-3",
682
- children: [/* @__PURE__ */ X("p", {
683
- className: d(V, $.body),
684
- children: A.notFoundLabel
685
- }), /* @__PURE__ */ X(D, {
686
- label: A.browseProjectsLabel,
687
- onClick: E
688
- })]
705
+ children: ye()
706
+ });
707
+ let be = () => fe.length === 0 ? /* @__PURE__ */ X(a, { label: M.emptyContextLabel }) : /* @__PURE__ */ Z(me, { children: [
708
+ /* @__PURE__ */ X("div", {
709
+ role: "search",
710
+ children: /* @__PURE__ */ X(re, {
711
+ value: l,
712
+ onChange: (e) => u(e ?? ""),
713
+ placeholder: M.contextSearchPlaceholder,
714
+ clearLabel: M.clearSearchLabel,
715
+ "aria-label": M.contextSearchAriaLabel
716
+ })
717
+ }),
718
+ W.length === 0 ? /* @__PURE__ */ X("p", {
719
+ className: d(se, $.secondary),
720
+ children: M.noContextMatchesLabel
721
+ }) : /* @__PURE__ */ X("ul", {
722
+ className: "m-0 flex min-w-0 list-none flex-wrap gap-2 p-0 pt-2",
723
+ children: W.map((e) => /* @__PURE__ */ X("li", {
724
+ className: "min-w-0",
725
+ children: /* @__PURE__ */ X(he, {
726
+ attachment: it(e),
727
+ searchQuery: G,
728
+ onClick: y,
729
+ isSelected: e.name === C,
730
+ labels: { clickLabel: M.openFileLabel(e.name) }
731
+ })
732
+ }, e.name))
733
+ }),
734
+ /* @__PURE__ */ X(P, {
735
+ visuallyHidden: !0,
736
+ as: ee.Span,
737
+ children: G === "" ? "" : M.contextResultCountLabel(W.length)
689
738
  })
690
- }) : /* @__PURE__ */ Z("div", {
739
+ ] }), xe = !T;
740
+ return /* @__PURE__ */ Z("div", {
691
741
  style: de,
692
- className: d("flex h-full w-full min-w-0 flex-col overflow-y-auto", $.container),
742
+ className: d("flex h-full w-full min-w-0 flex-col", $.container),
693
743
  children: [/* @__PURE__ */ Z("header", {
694
- className: d("flex min-w-0 items-center gap-2 px-4 py-3 desktop:px-8", $.header),
744
+ className: d("flex min-w-0 shrink-0 items-center gap-2 px-4 py-3 desktop:px-8 desktop:py-4", $.header),
695
745
  children: [
696
- /* @__PURE__ */ X(O, {
697
- icon: /* @__PURE__ */ X(L, {
746
+ /* @__PURE__ */ X(k, {
747
+ icon: /* @__PURE__ */ X(R, {
698
748
  size: b.LG,
699
749
  className: "rtl:scale-x-[-1]",
700
750
  "aria-hidden": !0,
701
751
  stroke: x
702
752
  }),
703
- "aria-label": A.backLabel,
753
+ "aria-label": M.backLabel,
704
754
  onClick: f
705
755
  }),
706
756
  /* @__PURE__ */ X("h1", {
707
- className: d("min-w-0 flex-1", ne, $.title),
757
+ className: d("min-w-0 flex-1", te, $.title),
708
758
  children: /* @__PURE__ */ X(w, { text: e.name })
709
759
  }),
710
- /* @__PURE__ */ X(D, {
711
- label: o ? A.unpinLabel : A.pinLabel,
712
- iconBefore: X(o ? rt : B, {
760
+ /* @__PURE__ */ X(O, {
761
+ label: o ? M.unpinLabel : M.pinLabel,
762
+ iconBefore: X(o ? rt : V, {
713
763
  size: b.MD,
714
764
  "aria-hidden": !0,
715
765
  stroke: x
716
766
  }),
717
767
  "aria-disabled": s || void 0,
718
- onClick: () => {
719
- s || p();
720
- },
768
+ onClick: ve,
721
769
  className: "shrink-0"
722
770
  }),
723
- m && /* @__PURE__ */ X(I, {
724
- label: A.publishLabel,
725
- iconBefore: /* @__PURE__ */ X(H, {
771
+ m && /* @__PURE__ */ X(L, {
772
+ label: M.publishLabel,
773
+ iconBefore: /* @__PURE__ */ X(U, {
726
774
  size: b.MD,
727
775
  "aria-hidden": !0,
728
776
  stroke: x
@@ -730,9 +778,9 @@ var ye = /* @__PURE__ */ function(e) {
730
778
  onClick: m,
731
779
  className: "hidden shrink-0 desktop:inline-flex"
732
780
  }),
733
- h && /* @__PURE__ */ X(I, {
734
- label: A.editLabel,
735
- iconBefore: /* @__PURE__ */ X(z, {
781
+ h && /* @__PURE__ */ X(L, {
782
+ label: M.editLabel,
783
+ iconBefore: /* @__PURE__ */ X(B, {
736
784
  size: b.MD,
737
785
  "aria-hidden": !0,
738
786
  stroke: x
@@ -744,91 +792,63 @@ var ye = /* @__PURE__ */ function(e) {
744
792
  _e(!0, "desktop:hidden")
745
793
  ]
746
794
  }), /* @__PURE__ */ Z("div", {
747
- className: d("flex min-w-0 flex-1 flex-col", !T && "desktop:flex-row", k == null && !T && "desktop:justify-end"),
748
- children: [k != null && /* @__PURE__ */ X("section", {
749
- "aria-label": te,
750
- className: "flex min-w-0 flex-1 flex-col gap-6 px-4 py-6 desktop:px-8",
751
- children: k
795
+ className: d("flex min-h-0 min-w-0 flex-1 flex-col overflow-y-auto", xe && "desktop:flex-row desktop:overflow-hidden", A == null && xe && "desktop:justify-end"),
796
+ children: [A != null && /* @__PURE__ */ X("section", {
797
+ "aria-label": j,
798
+ className: d("flex min-w-0 flex-1 flex-col px-4 py-6 desktop:px-8", xe && "desktop:overflow-y-auto"),
799
+ children: /* @__PURE__ */ X("div", {
800
+ className: "mx-auto flex w-full max-w-[748px] min-w-0 flex-col gap-5",
801
+ children: A
802
+ })
752
803
  }), /* @__PURE__ */ Z("aside", {
753
- "aria-labelledby": fe,
754
- className: d("flex w-full min-w-0 flex-col gap-5 border-t px-4 py-6 desktop:px-8", !T && "desktop:w-[488px] desktop:shrink-0 desktop:border-s desktop:border-t-0", $.panel),
804
+ "aria-labelledby": pe,
805
+ className: d("flex w-full min-w-0 flex-col gap-5 border-t px-4 py-6 desktop:px-8", xe && "desktop:w-[488px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-s desktop:border-t-0", $.panel),
755
806
  children: [
756
807
  /* @__PURE__ */ X("h2", {
757
- id: fe,
758
- className: d(re, $.title),
759
- children: A.detailsLabel
808
+ id: pe,
809
+ className: d(ne, $.title),
810
+ children: M.detailsLabel
760
811
  }),
761
812
  e.description !== "" && /* @__PURE__ */ Z("section", {
762
813
  className: "flex min-w-0 flex-col gap-1",
763
814
  children: [/* @__PURE__ */ X("h3", {
764
- className: d(R, $.secondary),
765
- children: A.descriptionLabel
815
+ className: d(ae, $.secondary),
816
+ children: M.descriptionLabel
766
817
  }), /* @__PURE__ */ X("p", {
767
- className: d("wrap-break-word whitespace-pre-line", V, $.body),
818
+ className: d("wrap-break-word whitespace-pre-line", H, $.body),
768
819
  children: e.description
769
820
  })]
770
821
  }),
771
822
  e.instructions !== "" && /* @__PURE__ */ Z("section", {
772
823
  className: "flex min-w-0 flex-col gap-1",
773
824
  children: [/* @__PURE__ */ X("h3", {
774
- className: d(R, $.secondary),
775
- children: A.instructionsLabel
825
+ className: d(ae, $.secondary),
826
+ children: M.instructionsLabel
776
827
  }), /* @__PURE__ */ X("div", {
777
- className: d("min-w-0 wrap-break-word", V, $.body),
828
+ className: d("min-w-0 wrap-break-word", H, $.body),
778
829
  children: /* @__PURE__ */ X(r, {
779
830
  content: e.instructions,
780
- classNames: pe
831
+ classNames: J
781
832
  })
782
833
  })]
783
834
  }),
784
835
  /* @__PURE__ */ Z("section", {
785
836
  className: "flex min-w-0 flex-col gap-2",
786
837
  children: [/* @__PURE__ */ X("h3", {
787
- className: d(R, $.secondary),
788
- children: A.contextLabel
789
- }), W.length === 0 ? /* @__PURE__ */ X(a, { label: A.emptyContextLabel }) : /* @__PURE__ */ Z(me, { children: [
790
- /* @__PURE__ */ X("div", {
791
- role: "search",
792
- children: /* @__PURE__ */ X(ie, {
793
- value: l,
794
- onChange: (e) => u(e ?? ""),
795
- placeholder: A.contextSearchPlaceholder,
796
- clearLabel: A.clearSearchLabel,
797
- "aria-label": A.contextSearchAriaLabel
798
- })
799
- }),
800
- G.length === 0 ? /* @__PURE__ */ X("p", {
801
- className: d(ce, $.secondary),
802
- children: A.noContextMatchesLabel
803
- }) : /* @__PURE__ */ X("ul", {
804
- className: "m-0 flex min-w-0 list-none flex-wrap gap-2 p-0 pt-2",
805
- children: G.map((e) => /* @__PURE__ */ X("li", {
806
- className: "min-w-0",
807
- children: /* @__PURE__ */ X(he, {
808
- attachment: it(e),
809
- searchQuery: K,
810
- onClick: y,
811
- isSelected: e.name === C,
812
- labels: { clickLabel: A.openFileLabel(e.name) }
813
- })
814
- }, e.name))
815
- }),
816
- /* @__PURE__ */ X(M, {
817
- visuallyHidden: !0,
818
- as: N.Span,
819
- children: K === "" ? "" : A.contextResultCountLabel(G.length)
820
- })
821
- ] })]
838
+ className: d(ae, $.secondary),
839
+ children: M.contextLabel
840
+ }), be()]
822
841
  })
823
842
  ]
824
843
  })]
825
844
  })]
826
845
  });
827
846
  }), ot = {
828
- readDot: "_readDot_1pbwn_1",
829
- unreadDot: "_unreadDot_1pbwn_5"
847
+ row: "_row_1030u_1",
848
+ readDot: "_readDot_1030u_6",
849
+ unreadDot: "_unreadDot_1030u_10"
830
850
  }, st = ({ item: e, labels: t, rowTitleClassName: n, unreadRowTitleClassName: r, onOpen: i, onRename: a, onDelete: o }) => {
831
- let s = q(), [c, l] = Y(!1), u = e.isUnread === !0, f = J(() => [...a ? [{
851
+ let s = K(), [c, l] = Y(!1), u = e.isUnread === !0, f = q(() => [...a ? [{
832
852
  key: "rename",
833
853
  label: t.renameLabel,
834
854
  onClick: () => a(e.id)
@@ -845,7 +865,7 @@ var ye = /* @__PURE__ */ function(e) {
845
865
  a
846
866
  ]);
847
867
  return /* @__PURE__ */ Z("li", {
848
- className: "group/row flex min-w-0 items-center gap-1 rounded-xl focus-within:bg-(--bg-accent-primary-alpha,rgba(92,141,234,0.15)) hover:bg-(--bg-accent-primary-alpha,rgba(92,141,234,0.15))",
868
+ className: d("group/row flex min-w-0 items-center gap-1 rounded-xl", ot.row),
849
869
  children: [
850
870
  /* @__PURE__ */ Z("button", {
851
871
  type: "button",
@@ -871,11 +891,11 @@ var ye = /* @__PURE__ */ function(e) {
871
891
  items: f,
872
892
  placement: "bottom-end",
873
893
  onOpenChange: l,
874
- children: /* @__PURE__ */ X(O, {
894
+ children: /* @__PURE__ */ X(k, {
875
895
  "aria-label": t.moreActionsLabel(e.title),
876
896
  size: C.Small,
877
897
  className: d("me-2 shrink-0", !c && "desktop:opacity-0 desktop:group-focus-within/row:opacity-100 desktop:group-hover/row:opacity-100"),
878
- icon: /* @__PURE__ */ X(oe, {
898
+ icon: /* @__PURE__ */ X(z, {
879
899
  "aria-hidden": !0,
880
900
  size: b.SM,
881
901
  stroke: x
@@ -884,215 +904,288 @@ var ye = /* @__PURE__ */ function(e) {
884
904
  })
885
905
  ]
886
906
  });
887
- }, ct = G(({ items: e, isLoading: t = !1, hasError: n = !1, onRetry: r, hasMore: i = !1, isLoadingMore: o = !1, onLoadMore: s, onOpen: l, onRename: u, onDelete: f, labels: p, typography: m, colors: h }) => {
888
- let g = q(), _ = m?.titleClassName ?? "dial-body-semi-text", v = m?.rowTitleClassName ?? "dial-body-text", y = m?.unreadRowTitleClassName ?? "dial-body-semi-text", b = J(() => c({
889
- "--pcl-read-dot": h?.readDot,
890
- "--pcl-unread-dot": h?.unreadDot
891
- }), [h?.readDot, h?.unreadDot]), x = m?.messageClassName ?? "dial-small-text", S = !t && !n && e.length === 0;
892
- return /* @__PURE__ */ Z("section", {
893
- "aria-labelledby": S ? void 0 : g,
894
- "aria-label": S ? p.title : void 0,
907
+ }, ct = W(({ items: e, isLoading: t = !1, hasError: n = !1, onRetry: r, hasMore: i = !1, isLoadingMore: o = !1, onLoadMore: s, isEmptyStateShown: l = !0, onOpen: u, onRename: f, onDelete: p, labels: m, typography: h, colors: g }) => {
908
+ let _ = K(), v = h?.titleClassName ?? "dial-body-semi-text", y = h?.rowTitleClassName ?? "dial-body-text", b = h?.unreadRowTitleClassName ?? "dial-body-semi-text", x = q(() => c({
909
+ "--pcl-read-dot": g?.readDot,
910
+ "--pcl-unread-dot": g?.unreadDot,
911
+ "--pcl-row-hover": g?.rowHoverBackground
912
+ }), [
913
+ g?.readDot,
914
+ g?.unreadDot,
915
+ g?.rowHoverBackground
916
+ ]), S = h?.messageClassName ?? "dial-small-text", C = !t && !n && e.length === 0;
917
+ return C && !l ? null : /* @__PURE__ */ Z("section", {
918
+ "aria-labelledby": C ? void 0 : _,
919
+ "aria-label": C ? m.title : void 0,
895
920
  className: "flex min-w-0 flex-col gap-2 pt-3",
896
- style: b,
897
- children: [!S && /* @__PURE__ */ X("h2", {
898
- id: g,
899
- className: d("m-0", _),
900
- children: p.title
921
+ style: x,
922
+ children: [!C && /* @__PURE__ */ X("h2", {
923
+ id: _,
924
+ className: d("m-0", v),
925
+ children: m.title
901
926
  }), t ? /* @__PURE__ */ Z("div", {
902
927
  role: "status",
903
928
  className: "flex justify-center py-6",
904
929
  children: [/* @__PURE__ */ X("span", {
905
930
  "aria-hidden": !0,
906
- children: /* @__PURE__ */ X(ae, {})
931
+ children: /* @__PURE__ */ X(ie, {})
907
932
  }), /* @__PURE__ */ X("span", {
908
933
  className: "sr-only",
909
- children: p.loadingLabel
934
+ children: m.loadingLabel
910
935
  })]
911
936
  }) : n ? /* @__PURE__ */ Z("div", {
912
937
  role: "status",
913
938
  className: "flex flex-col items-center gap-3 py-6 text-center",
914
939
  children: [/* @__PURE__ */ X("p", {
915
- className: d("m-0", x),
916
- children: p.errorLabel
917
- }), /* @__PURE__ */ X(D, {
918
- label: p.retryLabel,
940
+ className: d("m-0", S),
941
+ children: m.errorLabel
942
+ }), /* @__PURE__ */ X(O, {
943
+ label: m.retryLabel,
919
944
  onClick: r
920
945
  })]
921
- }) : S ? /* @__PURE__ */ X("div", {
946
+ }) : C ? /* @__PURE__ */ X("div", {
922
947
  role: "status",
923
948
  children: /* @__PURE__ */ X(a, {
924
- label: p.emptyTitle,
925
- description: p.emptyDescription
949
+ label: m.emptyTitle,
950
+ description: m.emptyDescription
926
951
  })
927
952
  }) : /* @__PURE__ */ Z(me, { children: [/* @__PURE__ */ X("ul", {
928
953
  className: "m-0 flex min-w-0 list-none flex-col gap-2 p-0",
929
954
  children: e.map((e) => /* @__PURE__ */ X(st, {
930
955
  item: e,
931
- labels: p,
932
- rowTitleClassName: v,
933
- unreadRowTitleClassName: y,
934
- onOpen: l,
935
- onRename: u,
936
- onDelete: f
956
+ labels: m,
957
+ rowTitleClassName: y,
958
+ unreadRowTitleClassName: b,
959
+ onOpen: u,
960
+ onRename: f,
961
+ onDelete: p
937
962
  }, e.id))
938
- }), i && s && /* @__PURE__ */ X(j, {
963
+ }), i && s && /* @__PURE__ */ X(N, {
939
964
  className: "self-start",
940
- label: p.loadMoreLabel ?? "See more",
965
+ label: m.loadMoreLabel ?? "See more",
941
966
  disabled: o,
942
967
  onClick: s
943
968
  })] })]
944
969
  });
945
- }), lt = G(({ composer: t, items: n, isLoading: r = !1, hasError: i = !1, onRetry: a, hasMore: o, isLoadingMore: s, onLoadMore: c, onOpen: l, onRename: u, onDelete: d, labels: f, listTypography: p, listColors: m }) => {
946
- let h = q(), _ = pe(null), [y, b] = Y(null), [x, S] = Y(""), [C, w] = Y(), [T, ee] = Y(!1), [E, D] = Y(null), [O, k] = Y(!1), A = pe(null), j = K(() => {
947
- A.current = document.activeElement;
948
- }, []), M = K(() => {
949
- let e = A.current;
950
- A.current = null, e?.isConnected && window.setTimeout(() => e.focus(), 0);
951
- }, []), N = K((e) => {
952
- A.current = null, window.setTimeout(() => {
953
- let t = _.current;
970
+ }), lt = W(({ composer: t, outputs: n, hasOutputs: r = !1, items: i, isLoading: a = !1, hasError: o = !1, onRetry: s, hasMore: c, isLoadingMore: l, onLoadMore: u, onOpen: d, onRename: f, onDelete: p, labels: m, listTypography: h, listColors: _ }) => {
971
+ let y = K(), b = J(null), [x, S] = Y(null), [C, w] = Y(""), [T, E] = Y(), [D, O] = Y(!1), [k, A] = Y(null), [M, N] = Y(!1), P = J(null), ee = G(() => {
972
+ P.current = document.activeElement;
973
+ }, []), F = G(() => {
974
+ let e = P.current;
975
+ P.current = null, e?.isConnected && window.setTimeout(() => e.focus(), 0);
976
+ }, []), I = G((e) => {
977
+ P.current = null, window.setTimeout(() => {
978
+ let t = b.current;
954
979
  if (!t) return;
955
980
  let n = t.querySelectorAll("li > button"), r = n[Math.min(e, n.length - 1)] ?? t.querySelector("h2, section");
956
981
  r && !r.matches("button") && (r.tabIndex = -1), r?.focus();
957
982
  }, 0);
958
- }, []), P = K((e) => n.find((t) => t.id === e) ?? null, [n]);
959
- fe(() => {
960
- let e = (e) => e != null && n.some((t) => t.id === e.id);
961
- y && !T && !e(y) && (b(null), N(0)), E && !O && !e(E) && (D(null), N(0));
983
+ }, []), L = G((e) => i.find((t) => t.id === e) ?? null, [i]);
984
+ pe(() => {
985
+ let e = (e) => e != null && i.some((t) => t.id === e.id);
986
+ x && !D && !e(x) && (S(null), I(0)), k && !M && !e(k) && (A(null), I(0));
962
987
  }, [
963
- E,
964
- N,
965
- O,
966
- T,
967
- n,
968
- y
988
+ k,
989
+ I,
990
+ M,
991
+ D,
992
+ i,
993
+ x
969
994
  ]);
970
- let F = K((e) => {
971
- j();
972
- let t = P(e);
973
- b(t), S(t?.title ?? ""), w(void 0);
974
- }, [P, j]), I = K((e) => {
975
- j(), D(P(e));
976
- }, [P, j]), ie = K(() => {
977
- T || (b(null), M());
978
- }, [T, M]), ae = K(() => {
979
- O || (D(null), M());
980
- }, [O, M]), L = K(async () => {
981
- if (!y || !u || T) return;
982
- let e = x.trim();
983
- if (!e) w(f.renameEmptyError);
995
+ let re = G((e) => {
996
+ ee();
997
+ let t = L(e);
998
+ S(t), w(t?.title ?? ""), E(void 0);
999
+ }, [L, ee]), ie = G((e) => {
1000
+ ee(), A(L(e));
1001
+ }, [L, ee]), R = G(() => {
1002
+ D || (S(null), F());
1003
+ }, [D, F]), ae = G(() => {
1004
+ M || (A(null), F());
1005
+ }, [M, F]), z = G(async () => {
1006
+ if (!x || !f || D) return;
1007
+ let e = C.trim();
1008
+ if (!e) E(m.renameEmptyError);
984
1009
  else {
985
- ee(!0);
1010
+ O(!0);
986
1011
  try {
987
- await u(y.id, e), b(null), M();
1012
+ await f(x.id, e), S(null), F();
988
1013
  } catch {} finally {
989
- ee(!1);
1014
+ O(!1);
990
1015
  }
991
1016
  }
992
1017
  }, [
993
- T,
994
- f.renameEmptyError,
995
- u,
996
- y,
1018
+ D,
1019
+ m.renameEmptyError,
1020
+ f,
997
1021
  x,
998
- M
999
- ]), R = K((e) => {
1000
- e.key !== "Enter" || e.nativeEvent.isComposing || (e.preventDefault(), L());
1001
- }, [L]), oe = K(async () => {
1002
- if (!E || !d) return;
1003
- let e = n.findIndex((e) => e.id === E.id);
1004
- k(!0);
1022
+ C,
1023
+ F
1024
+ ]), oe = G((e) => {
1025
+ e.key !== "Enter" || e.nativeEvent.isComposing || (e.preventDefault(), z());
1026
+ }, [z]), B = G(async () => {
1027
+ if (!k || !p) return;
1028
+ let e = i.findIndex((e) => e.id === k.id);
1029
+ N(!0);
1005
1030
  try {
1006
- await d(E.id), D(null), N(Math.max(e, 0));
1031
+ await p(k.id), A(null), I(Math.max(e, 0));
1007
1032
  } catch {} finally {
1008
- k(!1);
1033
+ N(!1);
1009
1034
  }
1010
1035
  }, [
1011
- E,
1012
- N,
1013
- n,
1014
- d
1015
- ]), se = J(() => [{
1016
- label: f.renameCancelLabel ?? "Cancel",
1036
+ k,
1037
+ I,
1038
+ i,
1039
+ p
1040
+ ]), V = q(() => [{
1041
+ label: m.renameCancelLabel ?? "Cancel",
1017
1042
  variant: v.Primary,
1018
1043
  appearance: g.Ghost,
1019
- disabled: T,
1020
- onClick: ie
1044
+ disabled: D,
1045
+ onClick: R
1021
1046
  }, {
1022
- label: f.renameSaveLabel,
1047
+ label: m.renameSaveLabel,
1023
1048
  variant: v.Primary,
1024
- disabled: T,
1049
+ disabled: D,
1025
1050
  onClick: () => {
1026
- L();
1051
+ z();
1027
1052
  }
1028
1053
  }], [
1029
- ie,
1030
- L,
1031
- T,
1032
- f.renameCancelLabel,
1033
- f.renameSaveLabel
1054
+ R,
1055
+ z,
1056
+ D,
1057
+ m.renameCancelLabel,
1058
+ m.renameSaveLabel
1034
1059
  ]);
1035
1060
  return /* @__PURE__ */ Z(me, { children: [
1036
1061
  t,
1062
+ n,
1037
1063
  /* @__PURE__ */ X("div", {
1038
- ref: _,
1064
+ ref: b,
1039
1065
  className: "contents",
1040
1066
  children: /* @__PURE__ */ X(ct, {
1041
- items: n,
1042
- isLoading: r,
1043
- hasError: i,
1044
- onRetry: a,
1045
- hasMore: o,
1046
- isLoadingMore: s,
1047
- onLoadMore: c,
1048
- onOpen: l,
1049
- onRename: u ? F : void 0,
1050
- onDelete: d ? I : void 0,
1051
- labels: f.list,
1052
- typography: p,
1053
- colors: m
1067
+ items: i,
1068
+ isLoading: a,
1069
+ hasError: o,
1070
+ onRetry: s,
1071
+ hasMore: c,
1072
+ isLoadingMore: l,
1073
+ onLoadMore: u,
1074
+ isEmptyStateShown: !r,
1075
+ onOpen: d,
1076
+ onRename: f ? re : void 0,
1077
+ onDelete: p ? ie : void 0,
1078
+ labels: m.list,
1079
+ typography: h,
1080
+ colors: _
1054
1081
  })
1055
1082
  }),
1056
- y && /* @__PURE__ */ X(ne, {
1083
+ x && /* @__PURE__ */ X(te, {
1057
1084
  open: !0,
1058
- header: f.renameTitle,
1059
- size: re.Sm,
1060
- mainButtons: se,
1061
- onClose: ie,
1085
+ header: m.renameTitle,
1086
+ size: ne.Sm,
1087
+ mainButtons: V,
1088
+ onClose: R,
1062
1089
  children: /* @__PURE__ */ X("div", {
1063
1090
  className: "px-6 py-4",
1064
- children: /* @__PURE__ */ X(te, {
1065
- id: h,
1066
- value: x,
1067
- labelProps: { label: f.renameInputLabel },
1068
- error: C,
1069
- disabled: T,
1070
- onKeyDown: R,
1091
+ children: /* @__PURE__ */ X(j, {
1092
+ id: y,
1093
+ value: C,
1094
+ labelProps: { label: m.renameInputLabel },
1095
+ error: T,
1096
+ disabled: D,
1097
+ onKeyDown: oe,
1071
1098
  onChange: (e) => {
1072
- S(e ?? ""), w(void 0);
1099
+ w(e ?? ""), E(void 0);
1073
1100
  }
1074
1101
  })
1075
1102
  })
1076
1103
  }),
1077
- E && /* @__PURE__ */ X(e, {
1104
+ k && /* @__PURE__ */ X(e, {
1078
1105
  open: !0,
1079
- title: f.deleteTitle(E.title),
1080
- names: [E.title],
1081
- message: f.deleteDescription,
1082
- labels: f.deleteDialog,
1083
- isLoading: O,
1106
+ title: m.deleteTitle(k.title),
1107
+ names: [k.title],
1108
+ message: m.deleteDescription,
1109
+ labels: m.deleteDialog,
1110
+ isLoading: M,
1084
1111
  onConfirm: () => {
1085
- oe();
1112
+ B();
1086
1113
  },
1087
1114
  onClose: ae
1088
1115
  })
1089
1116
  ] });
1090
- }), ut = G(({ projectName: e, projectHref: t, onBack: n, onProjectLinkClick: r, backLabel: i, className: a, nameClassName: o = "dial-body-text" }) => /* @__PURE__ */ Z("nav", {
1117
+ }), ut = {
1118
+ title: "_title_17sbf_1",
1119
+ secondary: "_secondary_17sbf_5"
1120
+ }, dt = 6, ft = (e) => ({
1121
+ id: e.name,
1122
+ name: e.name,
1123
+ contentType: e.contentType,
1124
+ type: l(e.contentType),
1125
+ status: o.Idle
1126
+ }), pt = W(({ items: e, onOpenOutput: t, selectedOutputName: n, hasError: r = !1, onRetry: i, previewLimit: a = dt, labels: o, styles: s }) => {
1127
+ let l = K(), u = K(), f = J(null), p = J(!1), [m, h] = Y(!1), { colors: g, typography: _ } = s ?? {}, v = _?.titleClassName ?? "dial-body-semi-text", y = _?.helperClassName ?? "dial-tiny-text", b = o?.title ?? "Outputs", x = o?.errorLabel ?? "Could not load outputs", S = q(() => c({
1128
+ "--po-heading-text": g?.headingText,
1129
+ "--po-secondary-text": g?.secondaryText
1130
+ }), [g?.headingText, g?.secondaryText]), C = G(() => h((e) => !e), []), w = G(() => {
1131
+ p.current = !0, i?.();
1132
+ }, [i]);
1133
+ pe(() => {
1134
+ !r && p.current && (p.current = !1, f.current?.focus());
1135
+ }, [r]);
1136
+ let T = r || e.length > 0, E = e.length > a, D = m || !E ? e : e.slice(0, a), k = o?.openOutputLabel ?? ((e) => `Preview ${e}`), A = o?.seeAllLabel?.(e.length) ?? `See all (${e.length})`, j = o?.showLessLabel ?? "Show less";
1137
+ return /* @__PURE__ */ Z("div", {
1138
+ className: "contents",
1139
+ style: S,
1140
+ children: [T && /* @__PURE__ */ Z("section", {
1141
+ "aria-labelledby": l,
1142
+ className: "flex min-w-0 flex-col gap-2 pt-3",
1143
+ children: [/* @__PURE__ */ Z("div", {
1144
+ className: "flex min-w-0 items-center justify-between gap-2",
1145
+ children: [/* @__PURE__ */ X("h2", {
1146
+ ref: f,
1147
+ id: l,
1148
+ tabIndex: -1,
1149
+ className: d("m-0", ut.title, v),
1150
+ children: b
1151
+ }), !r && E && /* @__PURE__ */ X(N, {
1152
+ label: m ? j : A,
1153
+ "aria-expanded": m,
1154
+ "aria-controls": u,
1155
+ onClick: C
1156
+ })]
1157
+ }), r ? /* @__PURE__ */ Z(me, { children: [/* @__PURE__ */ X("p", {
1158
+ "aria-hidden": !0,
1159
+ className: d("m-0", ut.secondary, y),
1160
+ children: x
1161
+ }), i && /* @__PURE__ */ X(O, {
1162
+ className: "self-start",
1163
+ label: o?.retryLabel ?? "Retry",
1164
+ onClick: w
1165
+ })] }) : /* @__PURE__ */ X("ul", {
1166
+ id: u,
1167
+ className: d("m-0 flex min-w-0 list-none gap-2 p-0", m ? "flex-wrap" : "flex-nowrap overflow-x-auto"),
1168
+ children: D.map((e) => /* @__PURE__ */ X("li", {
1169
+ className: "shrink-0",
1170
+ children: /* @__PURE__ */ X(he, {
1171
+ attachment: ft(e),
1172
+ onClick: t,
1173
+ isSelected: e.name === n,
1174
+ labels: { clickLabel: k(e.name) }
1175
+ })
1176
+ }, e.name))
1177
+ })]
1178
+ }), /* @__PURE__ */ X(P, {
1179
+ visuallyHidden: !0,
1180
+ children: r ? x : ""
1181
+ })]
1182
+ });
1183
+ }), mt = W(({ projectName: e, projectHref: t, onBack: n, onProjectLinkClick: r, backLabel: i, className: a, nameClassName: o = "dial-body-text" }) => /* @__PURE__ */ Z("nav", {
1091
1184
  "aria-label": i,
1092
1185
  className: d("flex min-w-0 shrink-0 items-center gap-2 border-b px-4 py-2", a),
1093
- children: [/* @__PURE__ */ X(O, {
1186
+ children: [/* @__PURE__ */ X(k, {
1094
1187
  "aria-label": i,
1095
- icon: /* @__PURE__ */ X(L, {
1188
+ icon: /* @__PURE__ */ X(R, {
1096
1189
  "aria-hidden": !0,
1097
1190
  size: b.MD,
1098
1191
  stroke: x,
@@ -1110,4 +1203,4 @@ var ye = /* @__PURE__ */ function(e) {
1110
1203
  })]
1111
1204
  }));
1112
1205
  //#endregion
1113
- export { Fe as ContextFileRejection, Le as PROJECT_NAME_MAX_BYTES, ut as ProjectChatHeader, ct as ProjectConversationList, lt as ProjectConversationsPanel, nt as ProjectCreateForm, Ie as ProjectNameError, Me as ProjectSource, at as ProjectView, je as Projects, ye as ProjectsSortKey, Ze as checkContextFiles, Qe as filterContextFileItems, Ke as getContextFilesSize, We as isStoredContextFile, He as validateProjectName };
1206
+ export { Fe as ContextFileRejection, Le as PROJECT_NAME_MAX_BYTES, mt as ProjectChatHeader, ct as ProjectConversationList, lt as ProjectConversationsPanel, nt as ProjectCreateForm, Ie as ProjectNameError, pt as ProjectOutputs, Me as ProjectSource, at as ProjectView, je as Projects, ye as ProjectsSortKey, Ze as checkContextFiles, Qe as filterContextFileItems, Ke as getContextFilesSize, We as isStoredContextFile, He as validateProjectName };