@epam/ai-dial-skill-editor 1.3.0-dev.253 → 1.3.0-dev.259

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 { MARKDOWN_EDITOR_FILL_HEIGHT_CLASS_NAME as e, MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as t, MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as n, RESIZABLE_TEXTAREA_CLASS_NAME as r, TAG_INPUT_TAG_CLASS_NAME as i, TextRefinementField as a, buildCssVars as o, formatFileSize as s, mergeClasses as c, useAvailableHeightCap as l, useControlErrorAssociation as u, useIsMobile as d, useTextRefinement as f } from "@epam/ai-dial-chat-shared";
2
- import { Accordion as p, BottomSheet as m, ButtonAppearance as h, ButtonDropdown as g, ButtonVariant as _, CaptionText as v, DIAL_ICON_SIZE as y, DIAL_KIT_ICON_STROKE as b, DangerIconButton as x, EditorThemes as S, ElementSize as C, ErrorMessageNotification as w, ErrorText as T, FileDropzone as E, FileName as D, GhostButton as O, GhostIconButton as ee, Input as k, Label as A, LinkButton as j, LiveRegion as M, LiveRegionElement as te, LiveRegionPoliteness as ne, NeutralButton as re, Popup as ie, PopupSize as ae, PrimaryButton as oe, RadioGroup as se, ResizeHandle as N, Select as ce, Spinner as le, TagInput as ue, Textarea as de, TextareaResize as fe } from "@epam/ai-dial-ui-kit";
3
- import { Fragment as P, jsx as F, jsxs as I } from "react/jsx-runtime";
4
- import { IconArrowNarrowLeft as pe, IconDatabase as me, IconFileZip as he, IconFolderPlus as ge, IconPhoto as _e, IconPlus as ve, IconTrashX as ye, IconUpload as be } from "@tabler/icons-react";
2
+ import { Accordion as p, BottomSheet as m, ButtonAppearance as h, ButtonDropdown as g, ButtonVariant as _, CaptionText as v, DIAL_ICON_SIZE as y, DIAL_KIT_ICON_STROKE as b, DangerIconButton as x, EditorThemes as S, ElementSize as C, ErrorMessageNotification as w, ErrorText as T, FileDropzone as E, FileName as D, GhostButton as O, GhostIconButton as ee, Input as k, Label as A, LinkButton as te, LiveRegion as ne, LiveRegionElement as re, LiveRegionPoliteness as ie, NeutralButton as j, Popup as ae, PopupSize as oe, PrimaryButton as se, RadioGroup as ce, ResizeHandle as M, Select as le, Spinner as ue, TagInput as de, Textarea as fe, TextareaResize as pe } from "@epam/ai-dial-ui-kit";
3
+ import { Fragment as N, jsx as P, jsxs as F } from "react/jsx-runtime";
4
+ import { IconArrowNarrowLeft as me, IconDatabase as he, IconFileZip as ge, IconFolderPlus as _e, IconPhoto as I, IconPlus as ve, IconTrashX as ye, IconUpload as be } from "@tabler/icons-react";
5
5
  import { Suspense as xe, lazy as Se, memo as Ce, useCallback as L, useEffect as R, useId as we, useMemo as z, useRef as B, useState as V } from "react";
6
6
  import { DialFileNodeType as Te, DialFoldersTree as Ee } from "@epam/ai-dial-react-file-manager";
7
7
  import { LazyMarkdownEditor as De } from "@epam/ai-dial-ui-kit/editors";
@@ -12,41 +12,41 @@ c("flex flex-col desktop:min-h-0 desktop:overflow-y-auto", {
12
12
  }.sideColumn);
13
13
  //#endregion
14
14
  //#region ../builder-form/src/constants/public-class-names.ts
15
- var Oe = {
15
+ var H = {
16
16
  layout: "dial-builder-form-layout",
17
17
  section: "dial-builder-form-section",
18
18
  metadataSection: "dial-builder-form-metadata-section",
19
19
  setupSection: "dial-builder-form-setup-section",
20
20
  asideSection: "dial-builder-form-aside-section"
21
- }, ke = {
21
+ }, Oe = {
22
22
  section: "_section_l1mnx_1",
23
23
  title: "_title_l1mnx_5"
24
- }, Ae = ({ title: e, children: t, styles: n, className: r }) => {
24
+ }, ke = ({ title: e, children: t, styles: n, className: r }) => {
25
25
  let i = o({
26
26
  "--es-border-color": n?.colors?.borderColor,
27
27
  "--es-title-color": n?.colors?.titleColor
28
28
  });
29
- return /* @__PURE__ */ I("section", {
30
- className: c("flex h-full flex-col gap-4 rounded border p-6", ke.section, r, Oe.section),
29
+ return /* @__PURE__ */ F("section", {
30
+ className: c("flex h-full flex-col gap-4 rounded border p-6", Oe.section, r, H.section),
31
31
  style: i,
32
- children: [e != null && /* @__PURE__ */ F("h2", {
33
- className: c("dial-h3-text", ke.title),
32
+ children: [e != null && /* @__PURE__ */ P("h2", {
33
+ className: c(n?.typography?.titleClassName ?? "dial-h3-text", Oe.title),
34
34
  children: e
35
35
  }), t]
36
36
  });
37
- }, H = (e, { min: t = 280, max: n = 640, containerWidth: r } = {}) => {
37
+ }, U = (e, { min: t = 280, max: n = 640, containerWidth: r } = {}) => {
38
38
  let i = r != null && r > 0 ? r - 360 : n;
39
39
  return Math.round(Math.min(Math.max(t, Math.min(n, i)), Math.max(t, Number.isFinite(e) ? e : t)));
40
- }, je = {
40
+ }, Ae = {
41
41
  headerBorder: "_headerBorder_1adw2_1",
42
42
  footerBorder: "_footerBorder_1adw2_5",
43
43
  columnBorder: "_columnBorder_1adw2_10"
44
- }, Me = ({ title: e, onBack: t, backAriaLabel: n = "Back", actions: r, leftContent: i, centerContent: a, rightContent: s, resizableLeftColumn: l, isSaving: u = !1, labels: d, styles: f, dir: p }) => {
44
+ }, je = ({ title: e, onBack: t, backAriaLabel: n = "Back", actions: r, leftContent: i, centerContent: a, rightContent: s, resizableLeftColumn: l, isSaving: u = !1, labels: d, styles: f, dir: p }) => {
45
45
  let m = we(), h = u ? d?.savingStatusLabel ?? "Saving" : "", g = B(null), [_, v] = V(), x = l != null && a != null, S = l?.minWidth, C = l?.maxWidth, w = {
46
46
  min: S,
47
47
  max: C,
48
48
  containerWidth: _
49
- }, T = x ? H(l.width, w) : void 0, E = H(C ?? 640, w);
49
+ }, T = x ? U(l.width, w) : void 0, E = U(C ?? 640, w);
50
50
  R(() => {
51
51
  let e = g.current;
52
52
  if (!x || e == null || typeof ResizeObserver > "u") return;
@@ -57,23 +57,23 @@ var Oe = {
57
57
  "--el-header-border-color": f?.colors?.headerBorderColor,
58
58
  "--el-sidebar-border-color": f?.colors?.sidebarBorderColor
59
59
  });
60
- return /* @__PURE__ */ I("div", {
60
+ return /* @__PURE__ */ F("div", {
61
61
  dir: p,
62
- className: c("flex min-h-0 flex-1 flex-col", Oe.layout),
62
+ className: c("flex min-h-0 flex-1 flex-col", H.layout),
63
63
  style: D,
64
64
  children: [
65
- /* @__PURE__ */ F(M, {
65
+ /* @__PURE__ */ P(ne, {
66
66
  visuallyHidden: !0,
67
- as: te.Span,
67
+ as: re.Span,
68
68
  id: m,
69
69
  children: h
70
70
  }),
71
- /* @__PURE__ */ I("div", {
72
- className: c("flex items-center justify-between gap-2 border-b px-4 py-2 desktop:px-8 desktop:pt-3 desktop:pb-3", je.headerBorder),
73
- children: [/* @__PURE__ */ I("div", {
71
+ /* @__PURE__ */ F("div", {
72
+ className: c("flex items-center justify-between gap-2 border-b px-4 py-2 desktop:px-8 desktop:pt-3 desktop:pb-3", Ae.headerBorder),
73
+ children: [/* @__PURE__ */ F("div", {
74
74
  className: "flex min-w-0 flex-1 items-center gap-2",
75
- children: [/* @__PURE__ */ F(ee, {
76
- icon: /* @__PURE__ */ F(pe, {
75
+ children: [/* @__PURE__ */ P(ee, {
76
+ icon: /* @__PURE__ */ P(me, {
77
77
  size: y.LG,
78
78
  stroke: b,
79
79
  "aria-hidden": !0,
@@ -81,27 +81,27 @@ var Oe = {
81
81
  }),
82
82
  "aria-label": n,
83
83
  onClick: t
84
- }), /* @__PURE__ */ F("h1", {
85
- className: "dial-h2-text min-w-0 truncate",
84
+ }), /* @__PURE__ */ P("h1", {
85
+ className: c(f?.typography?.titleClassName ?? "dial-h2-text", "min-w-0 truncate"),
86
86
  children: e
87
87
  })]
88
- }), r != null && /* @__PURE__ */ F("div", {
88
+ }), r != null && /* @__PURE__ */ P("div", {
89
89
  className: "hidden shrink-0 items-center gap-2 desktop:flex",
90
90
  children: r
91
91
  })]
92
92
  }),
93
- /* @__PURE__ */ I("div", {
93
+ /* @__PURE__ */ F("div", {
94
94
  ref: g,
95
95
  className: "flex flex-1 flex-col overflow-y-auto desktop:flex-row desktop:overflow-hidden",
96
96
  children: [
97
- /* @__PURE__ */ F("div", {
98
- className: c(a == null ? "desktop:flex-1" : "desktop:shrink-0 desktop:overflow-y-auto desktop:border-e", a != null && !x && "desktop:w-[400px]", x && "desktop:relative desktop:w-[var(--el-left-width)]", "desktop:overflow-y-auto", a == null ? void 0 : je.columnBorder),
97
+ /* @__PURE__ */ P("div", {
98
+ className: c(a == null ? "desktop:flex-1" : "desktop:shrink-0 desktop:overflow-y-auto desktop:border-e", a != null && !x && "desktop:w-[400px]", x && "desktop:relative desktop:w-(--el-left-width)", "desktop:overflow-y-auto", a == null ? void 0 : Ae.columnBorder),
99
99
  style: T == null ? void 0 : { "--el-left-width": `${T}px` },
100
100
  children: i
101
101
  }),
102
- x && T != null && /* @__PURE__ */ F("div", {
102
+ x && T != null && /* @__PURE__ */ P("div", {
103
103
  className: "relative hidden w-0 shrink-0 desktop:block",
104
- children: /* @__PURE__ */ F(N, {
104
+ children: /* @__PURE__ */ P(M, {
105
105
  width: T,
106
106
  minWidth: S ?? 280,
107
107
  maxWidth: E,
@@ -111,55 +111,55 @@ var Oe = {
111
111
  tooltip: d?.resizeHandleTooltip ?? "Drag to resize"
112
112
  })
113
113
  }),
114
- a != null && /* @__PURE__ */ F("div", {
114
+ a != null && /* @__PURE__ */ P("div", {
115
115
  className: "desktop:flex desktop:min-h-0 desktop:flex-1 desktop:flex-col desktop:overflow-y-auto",
116
116
  children: a
117
117
  }),
118
- s != null && /* @__PURE__ */ F("div", {
119
- className: c("desktop:w-[400px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-s", je.columnBorder),
118
+ s != null && /* @__PURE__ */ P("div", {
119
+ className: c("desktop:w-[400px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-s", Ae.columnBorder),
120
120
  children: s
121
121
  })
122
122
  ]
123
123
  }),
124
- r != null && /* @__PURE__ */ F("div", {
125
- className: c("flex shrink-0 flex-row-reverse items-center gap-2 border-t px-4 py-2 desktop:hidden [&>*]:flex-1", je.footerBorder),
124
+ r != null && /* @__PURE__ */ P("div", {
125
+ className: c("flex shrink-0 flex-row-reverse items-center gap-2 border-t px-4 py-2 *:flex-1 desktop:hidden", Ae.footerBorder),
126
126
  children: r
127
127
  })
128
128
  ]
129
129
  });
130
- }, Ne = {
130
+ }, Me = {
131
131
  box: "_box_c9as8_1",
132
132
  icon: "_icon_c9as8_6",
133
133
  caption: "_caption_c9as8_10"
134
- }, U = ({ label: e, avatarUrl: t, avatarAlt: n = "", addAvatarLabel: r = "Add avatar", captionText: i = "PNG, JPG or SVG (max 1 MB)", onAddAvatarClick: a, styles: s, className: l }) => {
135
- let u = o({
136
- "--aa-box-bg": s?.colors?.boxBackgroundColor,
137
- "--aa-box-border": s?.colors?.boxBorderColor,
138
- "--aa-icon": s?.colors?.placeholderIconColor,
139
- "--aa-caption": s?.colors?.captionColor
134
+ }, W = ({ label: e, avatarUrl: t, avatarAlt: n = "", addAvatarLabel: r = "Add avatar", captionText: i = "PNG, JPG or SVG (max 1 MB)", onAddAvatarClick: a, captionClassName: s = "dial-tiny-text", styles: l, className: u }) => {
135
+ let d = o({
136
+ "--aa-box-bg": l?.colors?.boxBackgroundColor,
137
+ "--aa-box-border": l?.colors?.boxBorderColor,
138
+ "--aa-icon": l?.colors?.placeholderIconColor,
139
+ "--aa-caption": l?.colors?.captionColor
140
140
  });
141
- return /* @__PURE__ */ I("div", {
142
- className: c("flex flex-col gap-2", l),
143
- style: u,
144
- children: [/* @__PURE__ */ F(A, { label: e }), /* @__PURE__ */ I("div", {
141
+ return /* @__PURE__ */ F("div", {
142
+ className: c("flex flex-col gap-2", u),
143
+ style: d,
144
+ children: [/* @__PURE__ */ P(A, { label: e }), /* @__PURE__ */ F("div", {
145
145
  className: "flex items-start gap-3",
146
- children: [/* @__PURE__ */ F("div", {
147
- className: c("flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-lg border", Ne.box),
148
- children: t ? /* @__PURE__ */ F("img", {
146
+ children: [/* @__PURE__ */ P("div", {
147
+ className: c("flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-lg border", Me.box),
148
+ children: t ? /* @__PURE__ */ P("img", {
149
149
  src: t,
150
150
  alt: n,
151
151
  className: "h-16 w-16 object-cover"
152
- }) : /* @__PURE__ */ F(_e, {
152
+ }) : /* @__PURE__ */ P(I, {
153
153
  size: y.LG,
154
154
  stroke: b,
155
155
  "aria-hidden": !0,
156
- className: Ne.icon
156
+ className: Me.icon
157
157
  })
158
- }), /* @__PURE__ */ I("div", {
158
+ }), /* @__PURE__ */ F("div", {
159
159
  className: "flex flex-col gap-3",
160
- children: [/* @__PURE__ */ F(O, {
160
+ children: [/* @__PURE__ */ P(O, {
161
161
  size: C.Small,
162
- iconBefore: /* @__PURE__ */ F(ve, {
162
+ iconBefore: /* @__PURE__ */ P(ve, {
163
163
  size: y.SM,
164
164
  stroke: b,
165
165
  "aria-hidden": !0
@@ -167,81 +167,91 @@ var Oe = {
167
167
  className: "w-fit",
168
168
  label: r,
169
169
  onClick: a
170
- }), /* @__PURE__ */ F("span", {
171
- className: c("dial-tiny-text", Ne.caption),
170
+ }), /* @__PURE__ */ P("span", {
171
+ className: c(s, Me.caption),
172
172
  children: i
173
173
  })]
174
174
  })]
175
175
  })]
176
176
  });
177
- }, Pe = ({ isOpen: e, onClose: t, onAttach: n, bucket: r, FileManagerModal: i, allowedMimeTypes: a, maxFileSizeBytes: o, labels: s }) => {
178
- let c = L((e) => e.length === 1 ? s.deleteConfirmTitleSingle : s.deleteConfirmTitleMultiple, [s.deleteConfirmTitleSingle, s.deleteConfirmTitleMultiple]), l = L((e) => /* @__PURE__ */ F("div", {
179
- className: "dial-small-text px-6 py-3",
180
- children: /* @__PURE__ */ F("p", {
181
- className: "mb-3 text-secondary",
182
- children: e.length === 1 ? /* @__PURE__ */ I(P, { children: [
183
- s.deleteConfirmSingleText,
177
+ }, Ne = {
178
+ confirmText: "_confirmText_19ec1_1",
179
+ confirmItem: "_confirmItem_19ec1_5"
180
+ }, Pe = ({ isOpen: e, onClose: t, onAttach: n, bucket: r, FileManagerModal: i, allowedMimeTypes: a, maxFileSizeBytes: s, labels: l, confirmBodyClassName: u = "dial-small-text", styles: d }) => {
181
+ let f = d?.colors?.confirmText, p = d?.colors?.confirmItemText, m = L((e) => e.length === 1 ? l.deleteConfirmTitleSingle : l.deleteConfirmTitleMultiple, [l.deleteConfirmTitleSingle, l.deleteConfirmTitleMultiple]), h = L((e) => /* @__PURE__ */ P("div", {
182
+ className: c(u, "px-6 py-3"),
183
+ style: o({
184
+ "--apm-confirm-text": f,
185
+ "--apm-confirm-item-text": p
186
+ }),
187
+ children: /* @__PURE__ */ P("p", {
188
+ className: c("mb-3", Ne.confirmText),
189
+ children: e.length === 1 ? /* @__PURE__ */ F(N, { children: [
190
+ l.deleteConfirmSingleText,
184
191
  " ",
185
- /* @__PURE__ */ I("span", {
186
- className: "wrap-break-word text-primary",
192
+ /* @__PURE__ */ F("span", {
193
+ className: c("wrap-break-word", Ne.confirmItem),
187
194
  children: [
188
195
  "\"",
189
196
  e[0].split("/").pop(),
190
197
  "\"?"
191
198
  ]
192
199
  })
193
- ] }) : /* @__PURE__ */ I(P, { children: [
194
- s.deleteConfirmMultipleText,
200
+ ] }) : /* @__PURE__ */ F(N, { children: [
201
+ l.deleteConfirmMultipleText,
195
202
  " ",
196
- /* @__PURE__ */ I("span", {
197
- className: "text-primary",
203
+ /* @__PURE__ */ F("span", {
204
+ className: Ne.confirmItem,
198
205
  children: [
199
206
  e.length,
200
207
  " ",
201
- s.deleteConfirmItemsLabel
208
+ l.deleteConfirmItemsLabel
202
209
  ]
203
210
  })
204
211
  ] })
205
212
  })
206
213
  }), [
207
- s.deleteConfirmSingleText,
208
- s.deleteConfirmMultipleText,
209
- s.deleteConfirmItemsLabel
214
+ l.deleteConfirmSingleText,
215
+ l.deleteConfirmMultipleText,
216
+ l.deleteConfirmItemsLabel,
217
+ f,
218
+ p,
219
+ u
210
220
  ]);
211
- return /* @__PURE__ */ F(xe, {
221
+ return /* @__PURE__ */ P(xe, {
212
222
  fallback: null,
213
- children: e && /* @__PURE__ */ F(i, {
223
+ children: e && /* @__PURE__ */ P(i, {
214
224
  isOpen: e,
215
225
  onClose: t,
216
226
  onAttach: n,
217
227
  bucket: r,
218
228
  allowedTypes: a,
219
- maxSelectableFileSize: o,
229
+ maxSelectableFileSize: s,
220
230
  maximumAttachmentsAmount: 1,
221
231
  canAttachFolders: !1,
222
- title: s.title,
223
- attachLabel: s.attachLabel,
224
- emptyTitle: s.emptyTitle,
225
- emptyDescription: s.emptyDescription,
226
- errorMessage: s.errorMessage,
227
- retryLabel: s.retryLabel,
228
- hiddenFilesLabel: s.hiddenFilesLabel,
229
- showHiddenFilesLabel: s.showHiddenFilesLabel,
230
- hideHiddenFilesLabel: s.hideHiddenFilesLabel,
231
- getSelectionLabel: s.getSelectionLabel,
232
- uploadFilesLabel: s.uploadFilesLabel,
233
- newFolderLabel: s.newFolderLabel,
234
- downloadLabel: s.downloadLabel,
235
- downloadingLabel: s.downloadingLabel,
236
- deleteLabel: s.deleteLabel,
237
- deletingLabel: s.deletingLabel,
238
- deleteConfirmTitle: c,
239
- deleteConfirmBody: l,
240
- deleteConfirmLabel: s.deleteConfirmLabel,
241
- deleteCancelLabel: s.deleteCancelLabel
232
+ title: l.title,
233
+ attachLabel: l.attachLabel,
234
+ emptyTitle: l.emptyTitle,
235
+ emptyDescription: l.emptyDescription,
236
+ errorMessage: l.errorMessage,
237
+ retryLabel: l.retryLabel,
238
+ hiddenFilesLabel: l.hiddenFilesLabel,
239
+ showHiddenFilesLabel: l.showHiddenFilesLabel,
240
+ hideHiddenFilesLabel: l.hideHiddenFilesLabel,
241
+ getSelectionLabel: l.getSelectionLabel,
242
+ uploadFilesLabel: l.uploadFilesLabel,
243
+ newFolderLabel: l.newFolderLabel,
244
+ downloadLabel: l.downloadLabel,
245
+ downloadingLabel: l.downloadingLabel,
246
+ deleteLabel: l.deleteLabel,
247
+ deletingLabel: l.deletingLabel,
248
+ deleteConfirmTitle: m,
249
+ deleteConfirmBody: h,
250
+ deleteConfirmLabel: l.deleteConfirmLabel,
251
+ deleteCancelLabel: l.deleteCancelLabel
242
252
  })
243
253
  });
244
- }, W = /* @__PURE__ */ function(e) {
254
+ }, G = /* @__PURE__ */ function(e) {
245
255
  return e.Avatar = "avatar", e.Name = "name", e.Version = "version", e.Description = "description", e.Locales = "locales", e.Tags = "tags", e;
246
256
  }({}), Fe = [
247
257
  "avatar",
@@ -250,99 +260,107 @@ var Oe = {
250
260
  "description",
251
261
  "locales",
252
262
  "tags"
253
- ], Ie = (e, t, n) => ({
263
+ ], Ie = {
264
+ summary: "_summary_1hlc9_1",
265
+ rowLabel: "_rowLabel_1hlc9_5"
266
+ }, Le = (e, t, n) => ({
254
267
  id: e,
255
268
  language: n.find((e) => !t.has(e.code))?.code ?? "",
256
269
  name: "",
257
270
  description: ""
258
- }), Le = ({ value: e, onChange: t, availableLocaleOptions: n = [], labels: i, className: a, summaryClassName: o = "dial-body-text text-secondary", rowLabelClassName: s = "dial-tiny-lead-text text-secondary" }) => {
259
- let { summaryLabel: l, addLabel: u, editLabel: d, popupTitle: f, addLocaleLabel: p, localeRowLabel: m = "Locale", languageLabel: g, nameLabel: v, namePlaceholder: S, descriptionLabel: w, descriptionPlaceholder: T, deleteAriaLabel: E, cancelLabel: D = "Cancel", saveLabel: O = "Save" } = i, [ee, A] = V(!1), [M, te] = V([]), ne = B(0);
271
+ }), Re = ({ value: e, onChange: t, availableLocaleOptions: n = [], labels: i, className: a, summaryClassName: s = "dial-body-text", rowLabelClassName: l = "dial-tiny-lead-text", colors: u }) => {
272
+ let d = o({
273
+ "--dlf-summary-text": u?.summaryText,
274
+ "--dlf-row-label-text": u?.rowLabelText
275
+ }), { summaryLabel: f, addLabel: p, editLabel: m, popupTitle: g, addLocaleLabel: v, localeRowLabel: S = "Locale", languageLabel: w, nameLabel: T, namePlaceholder: E, descriptionLabel: D, descriptionPlaceholder: O, deleteAriaLabel: ee, cancelLabel: A = "Cancel", saveLabel: ne = "Save" } = i, [re, ie] = V(!1), [j, oe] = V([]), se = B(0);
260
276
  R(() => {
261
- ee && te(e.length > 0 ? e : [Ie(`locale-row-${++ne.current}`, /* @__PURE__ */ new Set(), n)]);
277
+ re && oe(e.length > 0 ? e : [Le(`locale-row-${++se.current}`, /* @__PURE__ */ new Set(), n)]);
262
278
  }, [
263
- ee,
279
+ re,
264
280
  e,
265
281
  n
266
282
  ]);
267
- let re = () => A(!0), ae = () => A(!1), oe = () => {
268
- t(M.filter((e) => e.language && e.name)), A(!1);
269
- }, se = () => {
270
- let e = new Set(M.map((e) => e.language).filter(Boolean));
271
- te((t) => [...t, Ie(`locale-row-${++ne.current}`, e, n)]);
283
+ let ce = () => ie(!0), M = () => ie(!1), ue = () => {
284
+ t(j.filter((e) => e.language && e.name)), ie(!1);
285
+ }, de = () => {
286
+ let e = new Set(j.map((e) => e.language).filter(Boolean));
287
+ oe((t) => [...t, Le(`locale-row-${++se.current}`, e, n)]);
272
288
  }, N = (e, t) => {
273
- te((n) => n.map((n) => n.id === e ? {
289
+ oe((n) => n.map((n) => n.id === e ? {
274
290
  ...n,
275
291
  ...t
276
292
  } : n));
277
- }, le = (e) => {
278
- te((t) => t.filter((t) => t.id !== e));
279
- }, ue = (e) => n.find((t) => t.code === e)?.label ?? e.toUpperCase(), P = M.some((e) => !e.language || !e.name);
280
- return n.length === 0 ? null : /* @__PURE__ */ I("div", {
293
+ }, me = (e) => {
294
+ oe((t) => t.filter((t) => t.id !== e));
295
+ }, he = (e) => n.find((t) => t.code === e)?.label ?? e.toUpperCase(), ge = j.some((e) => !e.language || !e.name);
296
+ return n.length === 0 ? null : /* @__PURE__ */ F("div", {
281
297
  className: c("flex items-center gap-2", a),
298
+ style: d,
282
299
  children: [
283
- e.length > 0 && /* @__PURE__ */ F("span", {
284
- className: o,
285
- children: `${l}: ${e.map((e) => `[${ue(e.language)}]`).join(", ")}`
300
+ e.length > 0 && /* @__PURE__ */ P("span", {
301
+ className: c(Ie.summary, s),
302
+ children: `${f}: ${e.map((e) => `[${he(e.language)}]`).join(", ")}`
286
303
  }),
287
- /* @__PURE__ */ F(j, {
288
- label: e.length > 0 ? d : u,
289
- iconBefore: /* @__PURE__ */ F(ve, {
304
+ /* @__PURE__ */ P(te, {
305
+ label: e.length > 0 ? m : p,
306
+ iconBefore: /* @__PURE__ */ P(ve, {
290
307
  size: y.SM,
291
308
  "aria-hidden": !0,
292
309
  stroke: b
293
310
  }),
294
311
  className: "px-0!",
295
- onClick: re
312
+ onClick: ce
296
313
  }),
297
- /* @__PURE__ */ F(ie, {
298
- open: ee,
299
- header: f,
300
- onClose: ae,
314
+ /* @__PURE__ */ P(ae, {
315
+ open: re,
316
+ header: g,
317
+ onClose: M,
301
318
  mainButtons: [{
302
- label: D,
303
- onClick: ae
319
+ label: A,
320
+ onClick: M
304
321
  }, {
305
- label: O,
322
+ label: ne,
306
323
  variant: _.Primary,
307
- disabled: P,
308
- onClick: oe
324
+ disabled: ge,
325
+ onClick: ue
309
326
  }],
310
- children: /* @__PURE__ */ I("div", {
327
+ children: /* @__PURE__ */ F("div", {
311
328
  className: "flex flex-col gap-8 px-6 py-3",
312
- children: [M.map((e, t) => {
313
- let i = new Set(M.filter((t) => t.id !== e.id).map((e) => e.language).filter(Boolean));
314
- return /* @__PURE__ */ I("div", {
329
+ style: d,
330
+ children: [j.map((e, t) => {
331
+ let i = new Set(j.filter((t) => t.id !== e.id).map((e) => e.language).filter(Boolean));
332
+ return /* @__PURE__ */ F("div", {
315
333
  className: "flex flex-col gap-2",
316
- children: [/* @__PURE__ */ I("div", {
334
+ children: [/* @__PURE__ */ F("div", {
317
335
  className: "flex items-center justify-between",
318
- children: [/* @__PURE__ */ I("span", {
319
- className: s,
336
+ children: [/* @__PURE__ */ F("span", {
337
+ className: c(Ie.rowLabel, l),
320
338
  children: [
321
- m,
339
+ S,
322
340
  " ",
323
341
  t + 1
324
342
  ]
325
- }), /* @__PURE__ */ F(x, {
343
+ }), /* @__PURE__ */ P(x, {
326
344
  appearance: h.Ghost,
327
345
  size: C.Small,
328
- icon: /* @__PURE__ */ F(ye, {
346
+ icon: /* @__PURE__ */ P(ye, {
329
347
  size: y.SM,
330
348
  "aria-hidden": !0,
331
349
  stroke: b
332
350
  }),
333
- "aria-label": `${E} ${t + 1}`,
334
- onClick: () => le(e.id)
351
+ "aria-label": `${ee} ${t + 1}`,
352
+ onClick: () => me(e.id)
335
353
  })]
336
- }), /* @__PURE__ */ I("div", {
354
+ }), /* @__PURE__ */ F("div", {
337
355
  role: "group",
338
- "aria-label": `${m} ${t + 1}`,
356
+ "aria-label": `${S} ${t + 1}`,
339
357
  className: "flex flex-col gap-5",
340
- children: [/* @__PURE__ */ I("div", {
358
+ children: [/* @__PURE__ */ F("div", {
341
359
  className: "flex flex-col gap-5 desktop:flex-row desktop:items-start",
342
- children: [/* @__PURE__ */ F(ce, {
360
+ children: [/* @__PURE__ */ P(le, {
343
361
  id: `${e.id}-language`,
344
362
  labelProps: {
345
- label: g,
363
+ label: w,
346
364
  required: !0
347
365
  },
348
366
  className: "desktop:shrink-0 desktop:basis-40",
@@ -353,46 +371,46 @@ var Oe = {
353
371
  })),
354
372
  value: e.language,
355
373
  onChange: (t) => N(e.id, { language: t })
356
- }), /* @__PURE__ */ F(k, {
374
+ }), /* @__PURE__ */ P(k, {
357
375
  id: `${e.id}-name`,
358
376
  containerClassName: "min-w-0 flex-1",
359
377
  required: !0,
360
378
  value: e.name,
361
379
  onChange: (t) => N(e.id, { name: t ?? "" }),
362
380
  labelProps: {
363
- label: v,
381
+ label: T,
364
382
  required: !0
365
383
  },
366
- placeholder: S
384
+ placeholder: E
367
385
  })]
368
- }), /* @__PURE__ */ F(de, {
386
+ }), /* @__PURE__ */ P(fe, {
369
387
  id: `${e.id}-description`,
370
388
  className: r,
371
- resize: fe.Vertical,
389
+ resize: pe.Vertical,
372
390
  value: e.description,
373
391
  onChange: (t) => N(e.id, { description: t }),
374
- labelProps: { label: w },
375
- placeholder: T
392
+ labelProps: { label: D },
393
+ placeholder: O
376
394
  })]
377
395
  })]
378
396
  }, e.id);
379
- }), /* @__PURE__ */ F(j, {
380
- label: p,
381
- iconBefore: /* @__PURE__ */ F(ve, {
397
+ }), /* @__PURE__ */ P(te, {
398
+ label: v,
399
+ iconBefore: /* @__PURE__ */ P(ve, {
382
400
  size: y.SM,
383
401
  "aria-hidden": !0,
384
402
  stroke: b
385
403
  }),
386
404
  className: "self-start",
387
- onClick: se,
388
- disabled: M.length >= n.length
405
+ onClick: de,
406
+ disabled: j.length >= n.length
389
407
  })]
390
408
  })
391
409
  })
392
410
  ]
393
411
  });
394
- }, Re = "Add tags, comma separated", ze = "deployment-creation-form-description", Be = ({ values: e, errors: t, onChange: n, onNameBlur: a, onVersionBlur: o, iconPreviewUrl: s, onAddAvatarClick: l, labels: u, styles: d, availableLocaleOptions: f = [], fields: p = Fe, isNameReadOnly: m = !1, nameReadOnlyTooltip: h, nameCaption: g, isDescriptionRequired: _ = !1, descriptionCaption: v, renderDescription: y, focusRequestKey: b }) => {
395
- let x = B(null), S = B(null), C = B(null), w = B(!1), T = (e) => p.includes(e), E = T(W.Name), D = T(W.Version), O = !!(t.name || t.version || t.description), ee = B(b);
412
+ }, ze = "Add tags, comma separated", Be = "deployment-creation-form-description", Ve = ({ values: e, errors: t, onChange: n, onNameBlur: a, onVersionBlur: o, iconPreviewUrl: s, onAddAvatarClick: l, labels: u, styles: d, availableLocaleOptions: f = [], fields: p = Fe, isNameReadOnly: m = !1, nameReadOnlyTooltip: h, nameCaption: g, isDescriptionRequired: _ = !1, descriptionCaption: v, renderDescription: y, focusRequestKey: b }) => {
413
+ let x = B(null), S = B(null), C = B(null), w = B(!1), T = (e) => p.includes(e), E = T(G.Name), D = T(G.Version), O = !!(t.name || t.version || t.description), ee = B(b);
396
414
  R(() => {
397
415
  let e = () => {
398
416
  t.name ? x.current?.focus() : t.version ? S.current?.focus() : t.description && C.current?.focus();
@@ -405,8 +423,8 @@ var Oe = {
405
423
  t.version,
406
424
  t.description
407
425
  ]);
408
- let A = /* @__PURE__ */ F(de, {
409
- id: ze,
426
+ let A = /* @__PURE__ */ P(fe, {
427
+ id: Be,
410
428
  ref: C,
411
429
  value: e.description,
412
430
  onChange: (e) => n({ description: e }),
@@ -421,14 +439,14 @@ var Oe = {
421
439
  invalid: !!t.description,
422
440
  containerClassName: y ? void 0 : d?.field,
423
441
  className: r,
424
- resize: fe.Vertical
442
+ resize: pe.Vertical
425
443
  });
426
- return /* @__PURE__ */ I("div", {
444
+ return /* @__PURE__ */ F("div", {
427
445
  role: u.ariaLabel ? "group" : void 0,
428
446
  "aria-label": u.ariaLabel,
429
447
  className: c("flex flex-col gap-4", d?.root),
430
448
  children: [
431
- T(W.Avatar) && /* @__PURE__ */ F(U, {
449
+ T(G.Avatar) && /* @__PURE__ */ P(W, {
432
450
  label: u.iconUrl.label,
433
451
  avatarUrl: s,
434
452
  addAvatarLabel: u.iconUrl.addAvatarLabel,
@@ -436,9 +454,9 @@ var Oe = {
436
454
  onAddAvatarClick: l,
437
455
  className: d?.field
438
456
  }),
439
- (E || D) && /* @__PURE__ */ I("div", {
457
+ (E || D) && /* @__PURE__ */ F("div", {
440
458
  className: c("flex items-start gap-4", d?.field),
441
- children: [E && /* @__PURE__ */ F(k, {
459
+ children: [E && /* @__PURE__ */ P(k, {
442
460
  id: "deployment-creation-form-name",
443
461
  inputRef: x,
444
462
  value: e.name,
@@ -455,7 +473,7 @@ var Oe = {
455
473
  error: t.name || void 0,
456
474
  invalid: !!t.name,
457
475
  containerClassName: D ? "min-w-0 basis-0 grow-[2]" : "min-w-0 flex-1"
458
- }), D && /* @__PURE__ */ F(k, {
476
+ }), D && /* @__PURE__ */ P(k, {
459
477
  id: "deployment-creation-form-version",
460
478
  inputRef: S,
461
479
  value: e.version,
@@ -468,23 +486,24 @@ var Oe = {
468
486
  containerClassName: E ? "min-w-0 basis-0 grow-[1]" : "min-w-0 flex-1"
469
487
  })]
470
488
  }),
471
- T(W.Description) && (y ? /* @__PURE__ */ F("div", {
489
+ T(G.Description) && (y ? /* @__PURE__ */ P("div", {
472
490
  className: d?.field,
473
- children: y(A, ze)
491
+ children: y(A, Be)
474
492
  }) : A),
475
- T(W.Locales) && /* @__PURE__ */ F(Le, {
493
+ T(G.Locales) && /* @__PURE__ */ P(Re, {
476
494
  value: e.otherLocales,
477
495
  onChange: (e) => n({ otherLocales: e }),
478
496
  availableLocaleOptions: f,
479
497
  labels: u.otherLocales,
480
- className: d?.field
498
+ className: d?.field,
499
+ colors: d?.localesColors
481
500
  }),
482
- T(W.Tags) && /* @__PURE__ */ F("div", {
501
+ T(G.Tags) && /* @__PURE__ */ P("div", {
483
502
  className: d?.field,
484
- children: /* @__PURE__ */ F(ue, {
503
+ children: /* @__PURE__ */ P(de, {
485
504
  id: "deployment-creation-form-topics",
486
505
  labelProps: { label: u.topics.label },
487
- placeholder: u.topics.placeholder ?? Re,
506
+ placeholder: u.topics.placeholder ?? ze,
488
507
  value: e.topics,
489
508
  onChange: (e) => n({ topics: e }),
490
509
  tagClassName: i
@@ -492,13 +511,13 @@ var Oe = {
492
511
  })
493
512
  ]
494
513
  });
495
- }, Ve = "border-0 p-4 desktop:p-8", He = "desktop:flex-1", Ue = "px-4 pt-4 desktop:px-6 desktop:pt-6", We = Ce(({ title: e, onBack: t, onCancel: n, onSubmit: r, submitLabel: i, isSubmitting: a = !1, isSubmitDisabled: o = !1, extraActions: s, hideStandardActions: l = !1, metadata: u, metadataTitle: d, metadataFooter: f, setup: p, setupTitle: m, asideData: h, asideTitle: g, asideSectionClassName: _, alert: v, resizableLeftColumn: y, metadataSectionClassName: b, setupSectionClassName: x, labels: S, styles: C, dir: w }) => {
496
- let T = /* @__PURE__ */ F(M, {
497
- politeness: ne.Assertive,
498
- className: v == null ? void 0 : Ue,
514
+ }, He = "border-0 p-4 desktop:p-8", Ue = "desktop:flex-1", We = "px-4 pt-4 desktop:px-6 desktop:pt-6", Ge = Ce(({ title: e, onBack: t, onCancel: n, onSubmit: r, submitLabel: i, isSubmitting: a = !1, isSubmitDisabled: o = !1, extraActions: s, hideStandardActions: l = !1, metadata: u, metadataTitle: d, metadataFooter: f, setup: p, setupTitle: m, asideData: h, asideTitle: g, asideSectionClassName: _, alert: v, resizableLeftColumn: y, metadataSectionClassName: b, setupSectionClassName: x, labels: S, styles: C, dir: w }) => {
515
+ let T = /* @__PURE__ */ P(ne, {
516
+ politeness: ie.Assertive,
517
+ className: v == null ? void 0 : We,
499
518
  children: v
500
519
  }), E = p != null;
501
- return /* @__PURE__ */ F(Me, {
520
+ return /* @__PURE__ */ P(je, {
502
521
  title: e,
503
522
  onBack: t,
504
523
  backAriaLabel: S?.backAriaLabel ?? "Back",
@@ -509,41 +528,41 @@ var Oe = {
509
528
  resizeHandleLabel: S?.resizeHandleLabel,
510
529
  resizeHandleTooltip: S?.resizeHandleTooltip
511
530
  },
512
- rightContent: h == null ? void 0 : /* @__PURE__ */ F(Ae, {
531
+ rightContent: h == null ? void 0 : /* @__PURE__ */ P(ke, {
513
532
  title: g,
514
533
  styles: C?.section,
515
- className: c(Ve, _, Oe.asideSection),
534
+ className: c(He, _, H.asideSection),
516
535
  children: h
517
536
  }),
518
537
  styles: C?.layout,
519
538
  dir: w,
520
- actions: /* @__PURE__ */ I(P, { children: [s, !l && /* @__PURE__ */ I(P, { children: [/* @__PURE__ */ F(re, {
539
+ actions: /* @__PURE__ */ F(N, { children: [s, !l && /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(j, {
521
540
  label: S?.cancelLabel ?? "Cancel",
522
541
  disabled: a,
523
542
  onClick: n
524
- }), /* @__PURE__ */ F(oe, {
543
+ }), /* @__PURE__ */ P(se, {
525
544
  label: i,
526
545
  disabled: a || o,
527
546
  onClick: r
528
547
  })] })] }),
529
- leftContent: /* @__PURE__ */ I(P, { children: [
548
+ leftContent: /* @__PURE__ */ F(N, { children: [
530
549
  !E && T,
531
- /* @__PURE__ */ F(Ae, {
550
+ /* @__PURE__ */ P(ke, {
532
551
  title: d === null ? void 0 : d ?? S?.metadataTitle ?? "Metadata",
533
552
  styles: C?.section,
534
- className: c(Ve, b, Oe.metadataSection),
553
+ className: c(He, b, H.metadataSection),
535
554
  children: u
536
555
  }),
537
556
  f
538
557
  ] }),
539
- centerContent: E ? /* @__PURE__ */ I(P, { children: [T, /* @__PURE__ */ F(Ae, {
558
+ centerContent: E ? /* @__PURE__ */ F(N, { children: [T, /* @__PURE__ */ P(ke, {
540
559
  title: m === null ? void 0 : m ?? S?.setupTitle ?? "Setup",
541
560
  styles: C?.section,
542
- className: c(Ve, He, x, Oe.setupSection),
561
+ className: c(He, Ue, x, H.setupSection),
543
562
  children: p
544
563
  })] }) : void 0
545
564
  });
546
- }), Ge = {
565
+ }), Ke = {
547
566
  name: {
548
567
  label: "Name",
549
568
  placeholder: "Enter name"
@@ -582,7 +601,7 @@ var Oe = {
582
601
  saveLabel: "Save"
583
602
  },
584
603
  ariaLabel: "Metadata"
585
- }, Ke = {
604
+ }, qe = {
586
605
  title: "Add avatar",
587
606
  attachLabel: "Attach",
588
607
  emptyTitle: "This folder is empty",
@@ -606,12 +625,12 @@ var Oe = {
606
625
  deleteConfirmItemsLabel: "items?",
607
626
  deleteConfirmLabel: "Delete",
608
627
  deleteCancelLabel: "Cancel"
609
- }, qe = Ce(({ values: e, errors: t, onChange: n, onNameBlur: r, onVersionBlur: i, avatarPicker: a, availableLocaleOptions: o, fields: s = Fe, isNameReadOnly: c, nameReadOnlyTooltip: l, nameCaption: u, isDescriptionRequired: d, descriptionCaption: f, renderDescription: p, focusRequestKey: m, labels: h }) => {
610
- let [g, _] = V(!1), v = z(() => a ? s : s.filter((e) => e !== W.Avatar), [a, s]), y = e.iconUrl, b = a?.resolveIconUrl, x = z(() => b ? b(y) : void 0, [y, b]), S = L(() => _(!0), []), C = L(() => _(!1), []), w = a?.resolveAttachedIconUrl, T = L((e) => {
628
+ }, Je = Ce(({ values: e, errors: t, onChange: n, onNameBlur: r, onVersionBlur: i, avatarPicker: a, availableLocaleOptions: o, fields: s = Fe, isNameReadOnly: c, nameReadOnlyTooltip: l, nameCaption: u, isDescriptionRequired: d, descriptionCaption: f, renderDescription: p, focusRequestKey: m, labels: h }) => {
629
+ let [g, _] = V(!1), v = z(() => a ? s : s.filter((e) => e !== G.Avatar), [a, s]), y = e.iconUrl, b = a?.resolveIconUrl, x = z(() => b ? b(y) : void 0, [y, b]), S = L(() => _(!0), []), C = L(() => _(!1), []), w = a?.resolveAttachedIconUrl, T = L((e) => {
611
630
  let t = w?.(e);
612
631
  t && n({ iconUrl: t }), _(!1);
613
632
  }, [n, w]);
614
- return /* @__PURE__ */ I(P, { children: [/* @__PURE__ */ F(Be, {
633
+ return /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(Ve, {
615
634
  values: e,
616
635
  errors: t,
617
636
  onChange: n,
@@ -619,7 +638,7 @@ var Oe = {
619
638
  onVersionBlur: i,
620
639
  iconPreviewUrl: x,
621
640
  onAddAvatarClick: S,
622
- labels: h?.form ?? Ge,
641
+ labels: h?.form ?? Ke,
623
642
  availableLocaleOptions: o,
624
643
  fields: v,
625
644
  isNameReadOnly: c,
@@ -629,7 +648,7 @@ var Oe = {
629
648
  descriptionCaption: f,
630
649
  renderDescription: p,
631
650
  focusRequestKey: m
632
- }), a && /* @__PURE__ */ F(Pe, {
651
+ }), a && /* @__PURE__ */ P(Pe, {
633
652
  isOpen: g,
634
653
  onClose: C,
635
654
  onAttach: T,
@@ -637,51 +656,51 @@ var Oe = {
637
656
  FileManagerModal: a.FileManagerModal,
638
657
  allowedMimeTypes: a.allowedMimeTypes,
639
658
  maxFileSizeBytes: a.maxFileSizeBytes,
640
- labels: h?.avatarPicker ?? Ke
659
+ labels: h?.avatarPicker ?? qe
641
660
  })] });
642
- }), Je = /* @__PURE__ */ function(e) {
661
+ }), Ye = /* @__PURE__ */ function(e) {
643
662
  return e.Required = "required", e.InvalidFormat = "invalid-format", e.TooLong = "too-long", e.ControlCharacters = "control-characters", e;
644
663
  }({});
645
- Je.TooLong, Je.ControlCharacters;
664
+ Ye.TooLong, Ye.ControlCharacters;
646
665
  //#endregion
647
666
  //#region src/constants/public-class-names.ts
648
- var Ye = {
667
+ var Xe = {
649
668
  root: "dial-skill-editor-root",
650
669
  refineFeedback: "dial-skill-editor-refine-feedback"
651
- }, G = "SKILL.md", K = /* @__PURE__ */ function(e) {
670
+ }, K = "SKILL.md", q = /* @__PURE__ */ function(e) {
652
671
  return e.File = "file", e.Folder = "folder", e;
653
- }({}), Xe = /* @__PURE__ */ function(e) {
672
+ }({}), Ze = /* @__PURE__ */ function(e) {
654
673
  return e.Header = "header", e.Child = "child", e;
655
- }({}), Ze = (e) => {
674
+ }({}), Qe = (e) => {
656
675
  let t = e.lastIndexOf("/");
657
676
  return t === -1 ? null : e.slice(0, t);
658
- }, Qe = (e) => {
677
+ }, $e = (e) => {
659
678
  let t = e.lastIndexOf("/");
660
679
  return t === -1 ? e : e.slice(t + 1);
661
- }, $e = (e) => {
680
+ }, et = (e) => {
662
681
  let t = /* @__PURE__ */ new Map(), n = (e) => {
663
682
  let n = t.get(e);
664
683
  if (n) return n;
665
684
  let r = {
666
685
  path: e,
667
- name: Qe(e),
686
+ name: $e(e),
668
687
  nodeType: Te.FOLDER,
669
- parentPath: Ze(e),
688
+ parentPath: Qe(e),
670
689
  folderId: e,
671
690
  items: []
672
691
  };
673
692
  return t.set(e, r), r;
674
693
  };
675
- for (let r of e) r.kind === K.Folder ? n(r.path).name = r.name : t.set(r.path, {
694
+ for (let r of e) r.kind === q.Folder ? n(r.path).name = r.name : t.set(r.path, {
676
695
  path: r.path,
677
696
  name: r.name,
678
697
  nodeType: Te.ITEM,
679
- parentPath: Ze(r.path),
680
- folderId: Ze(r.path) ?? ""
698
+ parentPath: Qe(r.path),
699
+ folderId: Qe(r.path) ?? ""
681
700
  });
682
701
  for (let t of [...e]) {
683
- let e = Ze(t.path);
684
- for (; e != null;) n(e), e = Ze(e);
702
+ let e = Qe(t.path);
703
+ for (; e != null;) n(e), e = Qe(e);
685
704
  }
686
705
  let r = [];
687
706
  for (let e of t.values()) {
@@ -693,17 +712,17 @@ var Ye = {
693
712
  n ? n.items = [...n.items ?? [], e] : r.push(e);
694
713
  }
695
714
  return r;
696
- }, et = (e, t) => e ? `${e}/${t}` : t, tt = (e, t) => {
697
- let n = e.lastIndexOf("/"), r = n === -1 ? "" : e.slice(0, n), i = e.slice(n + 1), a = i.lastIndexOf("."), o = a > 0, s = o ? i.slice(0, a) : i, c = o ? i.slice(a) : "", l = 1, u = et(r, `${s} (${l})${c}`);
698
- for (; t.has(u);) l += 1, u = et(r, `${s} (${l})${c}`);
715
+ }, tt = (e, t) => e ? `${e}/${t}` : t, nt = (e, t) => {
716
+ let n = e.lastIndexOf("/"), r = n === -1 ? "" : e.slice(0, n), i = e.slice(n + 1), a = i.lastIndexOf("."), o = a > 0, s = o ? i.slice(0, a) : i, c = o ? i.slice(a) : "", l = 1, u = tt(r, `${s} (${l})${c}`);
717
+ for (; t.has(u);) l += 1, u = tt(r, `${s} (${l})${c}`);
699
718
  return u;
700
- }, nt = (e, t) => {
719
+ }, rt = (e, t) => {
701
720
  if (!t) return "";
702
721
  switch (e) {
703
- case Xe.Child: return t.path;
704
- case Xe.Header: return t.kind === K.Folder ? t.path : "";
722
+ case Ze.Child: return t.path;
723
+ case Ze.Header: return t.kind === q.Folder ? t.path : "";
705
724
  }
706
- }, rt = (e, t) => {
725
+ }, it = (e, t) => {
707
726
  let n = t ? `${t}/` : "", r = /* @__PURE__ */ new Set();
708
727
  for (let { path: i } of e) {
709
728
  if (!i.startsWith(n) || i === t) continue;
@@ -711,19 +730,19 @@ var Ye = {
711
730
  r.add(e.split("/")[0]);
712
731
  }
713
732
  return r;
714
- }, it = (e, t, n) => {
733
+ }, J = (e, t, n) => {
715
734
  let r = e.trim();
716
735
  if (!r) return n.required;
717
736
  if (/[/\\]/.test(r) || r === "." || r === "..") return n.invalid;
718
737
  if (t.has(r)) return n.duplicate;
719
738
  }, at = "\\new-folder", ot = ({ files: e, fileActions: t, defaultName: n, messages: r, onRevealFolder: i, onCreated: a }) => {
720
- let [o, s] = V(null), c = o?.parentPath ?? null, l = B([]), u = c == null ? void 0 : et(c, at), d = z(() => u == null ? void 0 : {
739
+ let [o, s] = V(null), c = o?.parentPath ?? null, l = B([]), u = c == null ? void 0 : tt(c, at), d = z(() => u == null ? void 0 : {
721
740
  path: u,
722
741
  name: n,
723
- kind: K.Folder
742
+ kind: q.Folder
724
743
  }, [u, n]), f = L((n, i) => {
725
- let a = rt(e, i);
726
- return i === "" && a.add(G), it(n, a, r) ?? t.validateFolderPath?.(et(i, n.trim()));
744
+ let a = it(e, i);
745
+ return i === "" && a.add(K), J(n, a, r) ?? t.validateFolderPath?.(tt(i, n.trim()));
727
746
  }, [
728
747
  e,
729
748
  r,
@@ -747,7 +766,7 @@ var Ye = {
747
766
  ]), h = L(() => {
748
767
  l.current = [], s(null);
749
768
  }, []), g = L((e, n) => {
750
- let r = et(n, e.trim());
769
+ let r = tt(n, e.trim());
751
770
  t.onCreateFolder?.(r), n !== "" && i(n), a(r);
752
771
  }, [
753
772
  t,
@@ -774,39 +793,40 @@ var Ye = {
774
793
  validateNewFolder: f,
775
794
  createFolder: g
776
795
  };
777
- }, q = (e) => !!e.dataTransfer?.types.includes("Files"), st = (e) => {
796
+ }, st = (e) => !!e.dataTransfer?.types.includes("Files"), ct = (e) => {
778
797
  let [t, n] = V(!1), r = B(0);
779
798
  return {
780
799
  isDragActive: t,
781
800
  dropZoneHandlers: {
782
801
  onDragEnter: L((e) => {
783
- q(e) && (e.preventDefault(), r.current += 1, n(!0));
802
+ st(e) && (e.preventDefault(), r.current += 1, n(!0));
784
803
  }, []),
785
804
  onDragLeave: L((e) => {
786
- q(e) && (--r.current, r.current <= 0 && (r.current = 0, n(!1)));
805
+ st(e) && (--r.current, r.current <= 0 && (r.current = 0, n(!1)));
787
806
  }, []),
788
807
  onDragOver: L((e) => {
789
- q(e) && e.preventDefault();
808
+ st(e) && e.preventDefault();
790
809
  }, []),
791
810
  onDrop: L((t) => {
792
- if (!q(t)) return;
811
+ if (!st(t)) return;
793
812
  t.preventDefault(), r.current = 0, n(!1);
794
813
  let i = Array.from(t.dataTransfer?.files ?? []);
795
814
  i.length > 0 && e(i);
796
815
  }, [e])
797
816
  }
798
817
  };
799
- }, ct = /* @__PURE__ */ function(e) {
818
+ }, lt = /* @__PURE__ */ function(e) {
800
819
  return e.Files = "files", e.Archive = "archive", e;
801
- }({}), J = /* @__PURE__ */ function(e) {
820
+ }({}), Y = /* @__PURE__ */ function(e) {
802
821
  return e.Mobile = "mobile", e.Desktop = "desktop", e;
803
- }({}), lt = (e, t, n = y.MD) => /* @__PURE__ */ F(e, {
822
+ }({}), ut = (e, t, n = y.MD, r) => /* @__PURE__ */ P(e, {
804
823
  size: n,
805
824
  className: t,
825
+ style: r,
806
826
  "aria-hidden": !0,
807
827
  stroke: b
808
- }), ut = { footer: "_footer_hn1ri_7" }, dt = ({ isOpen: e, title: t, closeAriaLabel: n, onClose: r, confirmLabel: i, onConfirm: a, cancelLabel: s, onCancel: l, isConfirmDisabled: u = !1, isConfirming: f = !1, children: p, colors: g }) => {
809
- let v = d(), y = f ? /* @__PURE__ */ F(le, {
828
+ }), dt = { footer: "_footer_hn1ri_7" }, ft = ({ isOpen: e, title: t, closeAriaLabel: n, onClose: r, confirmLabel: i, onConfirm: a, cancelLabel: s, onCancel: l, isConfirmDisabled: u = !1, isConfirming: f = !1, children: p, colors: g }) => {
829
+ let v = d(), y = f ? /* @__PURE__ */ P(ue, {
810
830
  size: 16,
811
831
  ariaLabel: ""
812
832
  }) : void 0;
@@ -815,21 +835,21 @@ var Ye = {
815
835
  "--se-dialog-footer-bg": g?.footerBackground,
816
836
  "--se-dialog-footer-border": g?.footerBorder
817
837
  });
818
- return /* @__PURE__ */ I(m, {
838
+ return /* @__PURE__ */ F(m, {
819
839
  open: e,
820
840
  title: t,
821
841
  closeAriaLabel: n,
822
842
  onClose: r,
823
- children: [p, /* @__PURE__ */ I("div", {
824
- className: c("sticky bottom-0 flex gap-3 border-t p-4", ut.footer),
843
+ children: [p, /* @__PURE__ */ F("div", {
844
+ className: c("sticky bottom-0 flex gap-3 border-t p-4", dt.footer),
825
845
  style: d,
826
- children: [/* @__PURE__ */ F(oe, {
846
+ children: [/* @__PURE__ */ P(se, {
827
847
  className: "flex-1",
828
848
  label: i,
829
849
  iconBefore: y,
830
850
  disabled: u,
831
851
  onClick: a
832
- }), /* @__PURE__ */ F(re, {
852
+ }), /* @__PURE__ */ P(j, {
833
853
  className: "flex-1",
834
854
  label: s,
835
855
  onClick: l
@@ -837,10 +857,10 @@ var Ye = {
837
857
  })]
838
858
  });
839
859
  }
840
- return /* @__PURE__ */ F(ie, {
860
+ return /* @__PURE__ */ P(ae, {
841
861
  open: e,
842
862
  header: t,
843
- size: ae.Sm,
863
+ size: oe.Sm,
844
864
  closeAriaLabel: n,
845
865
  onClose: r,
846
866
  mainButtons: [{
@@ -857,7 +877,7 @@ var Ye = {
857
877
  }],
858
878
  children: p
859
879
  });
860
- }, ft = ({ isOpen: e, onClose: t, validateName: n, onCreate: r, title: i, nameLabel: a, namePlaceholder: o, createLabel: s, cancelLabel: c, closeAriaLabel: l, dialogColors: u }) => {
880
+ }, pt = ({ isOpen: e, onClose: t, validateName: n, onCreate: r, title: i, nameLabel: a, namePlaceholder: o, createLabel: s, cancelLabel: c, closeAriaLabel: l, dialogColors: u }) => {
861
881
  let d = we(), [f, p] = V(""), [m, h] = V(!1);
862
882
  R(() => {
863
883
  e && (p(""), h(!1));
@@ -865,7 +885,7 @@ var Ye = {
865
885
  let g = m ? n(f) : void 0, _ = () => {
866
886
  h(!0), n(f) ?? (r(f), t());
867
887
  };
868
- return /* @__PURE__ */ F(dt, {
888
+ return /* @__PURE__ */ P(ft, {
869
889
  isOpen: e,
870
890
  title: i,
871
891
  closeAriaLabel: l,
@@ -875,12 +895,12 @@ var Ye = {
875
895
  cancelLabel: c,
876
896
  onCancel: t,
877
897
  colors: u,
878
- children: /* @__PURE__ */ F("form", {
898
+ children: /* @__PURE__ */ P("form", {
879
899
  className: "px-4 py-4 desktop:px-6",
880
900
  onSubmit: (e) => {
881
901
  e.preventDefault(), _();
882
902
  },
883
- children: /* @__PURE__ */ F(k, {
903
+ children: /* @__PURE__ */ P(k, {
884
904
  id: d,
885
905
  labelProps: {
886
906
  label: a,
@@ -895,385 +915,394 @@ var Ye = {
895
915
  })
896
916
  })
897
917
  });
898
- }, pt = ({ isVisible: e, labels: t }) => {
899
- let n = t ?? {}, r = n.dropOverlayTitle ?? "Upload files", i = n.dropOverlaySubtitle ?? "Drop files here to add them to this skill", a = /* @__PURE__ */ F(M, {
918
+ }, mt = { icon: "_icon_1p1f5_1" }, ht = ({ isVisible: e, labels: t, titleClassName: n = "dial-h3-text", subtitleClassName: r = "dial-small-text" }) => {
919
+ let i = t ?? {}, a = i.dropOverlayTitle ?? "Upload files", o = i.dropOverlaySubtitle ?? "Drop files here to add them to this skill", s = /* @__PURE__ */ P(ne, {
900
920
  visuallyHidden: !0,
901
- as: te.Span,
902
- children: e ? `${r}. ${i}` : ""
921
+ as: re.Span,
922
+ children: e ? `${a}. ${o}` : ""
903
923
  });
904
- return e ? /* @__PURE__ */ I(P, { children: [a, /* @__PURE__ */ F("div", {
905
- className: c("pointer-events-none absolute inset-0 z-[100] flex items-center justify-center backdrop-blur-sm"),
906
- children: /* @__PURE__ */ I("div", {
924
+ return e ? /* @__PURE__ */ F(N, { children: [s, /* @__PURE__ */ P("div", {
925
+ className: c("pointer-events-none absolute inset-0 z-100 flex items-center justify-center backdrop-blur-sm"),
926
+ children: /* @__PURE__ */ F("div", {
907
927
  "aria-hidden": !0,
908
928
  className: "flex flex-col items-center text-center",
909
929
  children: [
910
- /* @__PURE__ */ F(be, {
930
+ /* @__PURE__ */ P(be, {
911
931
  size: 100,
912
- className: "text-accent-primary",
932
+ className: mt.icon,
913
933
  "aria-hidden": !0,
914
934
  stroke: b
915
935
  }),
916
- /* @__PURE__ */ F("span", {
917
- className: "dial-h3-text mt-5",
918
- children: r
936
+ /* @__PURE__ */ P("span", {
937
+ className: c("mt-5", n),
938
+ children: a
919
939
  }),
920
- /* @__PURE__ */ F("span", {
921
- className: "dial-small-text mt-4",
922
- children: i
940
+ /* @__PURE__ */ P("span", {
941
+ className: c("mt-4", r),
942
+ children: o
923
943
  })
924
944
  ]
925
945
  })
926
- })] }) : a;
927
- }, mt = {
946
+ })] }) : s;
947
+ }, gt = {
928
948
  card: "_card_1tr87_2",
929
949
  label: "_label_1tr87_7",
930
950
  fileName: "_fileName_1tr87_11",
931
951
  header: "_header_1tr87_16"
932
- }, ht = ({ label: e, fileName: t, isExpanded: n, onToggle: r, children: i, labelClassName: a = "dial-tiny-lead-text", fileNameClassName: o = "dial-small-text" }) => /* @__PURE__ */ F(p, {
952
+ }, _t = ({ label: e, fileName: t, isExpanded: n, onToggle: r, children: i, labelClassName: a = "dial-tiny-lead-text", fileNameClassName: o = "dial-small-text" }) => /* @__PURE__ */ P(p, {
933
953
  expanded: n,
934
954
  onToggle: r,
935
- title: /* @__PURE__ */ F("span", {
936
- className: c("block", mt.label, a),
955
+ title: /* @__PURE__ */ P("span", {
956
+ className: c("block", gt.label, a),
937
957
  children: e
938
958
  }),
939
- description: /* @__PURE__ */ F(D, {
959
+ description: /* @__PURE__ */ P(D, {
940
960
  name: t,
941
- nameClassName: c(mt.fileName, o)
961
+ nameClassName: c(gt.fileName, o)
942
962
  }),
943
- className: c("rounded-lg border py-0 shadow-xs", mt.card),
944
- headerClassName: c("gap-4 rounded-lg py-2 ps-3 pe-2 text-start [&>span]:flex-1 [&>span]:gap-1 [&>svg]:size-6", n ? "[&>svg]:-rotate-90" : "[&>svg]:rotate-90", mt.header),
963
+ className: c("rounded-lg border py-0 shadow-xs", gt.card),
964
+ headerClassName: c("gap-4 rounded-lg py-2 ps-3 pe-2 text-start [&>span]:flex-1 [&>span]:gap-1 [&>svg]:size-6", n ? "[&>svg]:-rotate-90" : "[&>svg]:rotate-90", gt.header),
945
965
  contentClassName: "max-h-[416px] overflow-y-auto pt-4 pb-2 ps-3 pe-2",
946
966
  children: i
947
- }), gt = /* @__PURE__ */ function(e) {
967
+ }), vt = /* @__PURE__ */ function(e) {
948
968
  return e.SupportingFile = "supporting-file", e.Manifest = "manifest", e;
949
- }({}), Y = /* @__PURE__ */ function(e) {
969
+ }({}), yt = /* @__PURE__ */ function(e) {
950
970
  return e.Valid = "valid", e.Invalid = "invalid", e;
951
971
  }({}), X = /* @__PURE__ */ function(e) {
952
972
  return e.Replace = "replace", e.Duplicate = "duplicate", e;
953
- }({}), _t = (e) => (e.webkitRelativePath || e.name).replace(/\\/g, "/"), vt = ".zip,application/zip", yt = [], bt = 0, xt = () => `skill-file-candidate-${++bt}`, St = (e, t, n) => ({
954
- id: xt(),
973
+ }({}), bt = (e) => (e.webkitRelativePath || e.name).replace(/\\/g, "/"), xt = {
974
+ invalidDropZone: "_invalidDropZone_j9j9q_1",
975
+ row: "_row_j9j9q_5"
976
+ }, St = ".zip,application/zip", Ct = [], wt = 0, Tt = () => `skill-file-candidate-${++wt}`, Z = (e, t, n) => ({
977
+ id: Tt(),
955
978
  file: e,
956
- path: et(n, t.replace(/\\/g, "/"))
957
- }), Ct = ({ isOpen: e, onClose: t, fileActions: n, mode: r = ct.Files, targetFolderPath: i = "", initialFiles: a, initialEntries: o, existingFilePaths: l = yt, onCommitted: u, messageClassName: d = "dial-small-text", rowCaptionClassName: f, labels: p, dialogColors: m }) => {
958
- let h = p ?? {}, [g, _] = V([]), [y, x] = V([]), [S, C] = V(X.Replace), w = z(() => new Set(l), [l]), [O, k] = V(/* @__PURE__ */ new Map()), [A, j] = V([]), [re, ie] = V(!1), [ae, oe] = V(), [N, ce] = V(!1), [ue, de] = V(), [fe, pe] = V(0), me = B(0), he = r === ct.Archive, ge = h.uploadArchiveErrorMessage ?? "Couldn't read this archive", _e = we(), ve = we(), be = we(), xe = B(null), Se = B(!1), Ce = y[0]?.id;
979
+ path: tt(n, t.replace(/\\/g, "/"))
980
+ }), Et = ({ isOpen: e, onClose: t, fileActions: n, mode: r = lt.Files, targetFolderPath: i = "", initialFiles: a, initialEntries: l, existingFilePaths: u = Ct, onCommitted: d, messageClassName: f = "dial-small-text", rowCaptionClassName: p, labels: m, dialogColors: h, colors: g }) => {
981
+ let _ = m ?? {}, [y, x] = V([]), [S, C] = V([]), [w, O] = V(X.Replace), k = z(() => new Set(u), [u]), [A, te] = V(/* @__PURE__ */ new Map()), [j, ae] = V([]), [oe, se] = V(!1), [M, le] = V(), [de, fe] = V(!1), [pe, me] = V(), [he, ge] = V(0), _e = B(0), I = r === lt.Archive, ve = _.uploadArchiveErrorMessage ?? "Couldn't read this archive", be = we(), xe = we(), Se = we(), Ce = B(null), L = B(!1), Te = S[0]?.id;
959
982
  R(() => {
960
- e && (Ce == null ? Se.current && (Se.current = !1, document.getElementById(ve)?.focus()) : (Se.current = !0, xe.current?.focus()));
983
+ e && (Te == null ? L.current && (L.current = !1, document.getElementById(xe)?.focus()) : (L.current = !0, Ce.current?.focus()));
961
984
  }, [
962
- Ce,
985
+ Te,
963
986
  e,
964
- ve
987
+ xe
965
988
  ]);
966
- let L = (e) => e.path !== "SKILL.md" && w.has(e.path), Te = (e) => {
967
- oe(void 0), _((t) => [...t, ...e.filter((e) => !L(e))]), x((t) => [...t, ...e.filter(L)]);
968
- }, Ee = (e) => {
969
- let [t, ...n] = y;
970
- t && (x(n), C(X.Replace), e != null && (oe(void 0), _((r) => {
989
+ let Ee = (e) => e.path !== "SKILL.md" && k.has(e.path), De = (e) => {
990
+ le(void 0), x((t) => [...t, ...e.filter((e) => !Ee(e))]), C((t) => [...t, ...e.filter(Ee)]);
991
+ }, H = (e) => {
992
+ let [t, ...n] = S;
993
+ t && (C(n), O(X.Replace), e != null && (le(void 0), x((r) => {
971
994
  if (e === X.Replace) return [...r, {
972
995
  ...t,
973
996
  replacesExisting: !0
974
997
  }];
975
998
  let i = /* @__PURE__ */ new Set([
976
- ...l,
999
+ ...u,
977
1000
  ...r.map((e) => e.path),
978
1001
  ...n.map((e) => e.path)
979
1002
  ]);
980
1003
  return [...r, {
981
1004
  ...t,
982
- path: tt(t.path, i)
1005
+ path: nt(t.path, i)
983
1006
  }];
984
1007
  })));
985
- }, De = async (e) => {
1008
+ }, Oe = async (e) => {
986
1009
  let { extractArchive: t } = n;
987
1010
  if (!t) return;
988
- let r = me.current;
989
- de(void 0), pe((e) => e + 1);
1011
+ let r = _e.current;
1012
+ me(void 0), ge((e) => e + 1);
990
1013
  try {
991
1014
  let n = await Promise.all(e.map((e) => t(e)));
992
- if (r !== me.current) return;
1015
+ if (r !== _e.current) return;
993
1016
  let a = n.flat();
994
1017
  if (a.length === 0) {
995
- de(h.uploadArchiveEmptyMessage ?? "This archive has no files");
1018
+ me(_.uploadArchiveEmptyMessage ?? "This archive has no files");
996
1019
  return;
997
1020
  }
998
- Te(a.map((e) => St(e.file, e.path, i)));
1021
+ De(a.map((e) => Z(e.file, e.path, i)));
999
1022
  } catch {
1000
- if (r !== me.current) return;
1001
- de(ge);
1023
+ if (r !== _e.current) return;
1024
+ me(ve);
1002
1025
  } finally {
1003
- r === me.current && pe((e) => e - 1);
1026
+ r === _e.current && ge((e) => e - 1);
1004
1027
  }
1005
- }, Oe = (e) => {
1006
- he ? De(e) : Te(e.map((e) => St(e, _t(e), i)));
1007
1028
  }, ke = (e) => {
1008
- _((t) => t.filter((t) => t.id !== e));
1029
+ I ? Oe(e) : De(e.map((e) => Z(e, bt(e), i)));
1030
+ }, U = (e) => {
1031
+ x((t) => t.filter((t) => t.id !== e));
1009
1032
  };
1010
1033
  R(() => {
1011
1034
  if (!e) return;
1012
- me.current += 1;
1013
- let t = [...(a ?? []).map((e) => St(e, _t(e), i)), ...(o ?? []).map((e) => St(e.file, e.path, i))];
1014
- _(t.filter((e) => !L(e))), x(t.filter(L)), C(X.Replace), k(/* @__PURE__ */ new Map()), j([]), oe(void 0), de(void 0), pe(0);
1035
+ _e.current += 1;
1036
+ let t = [...(a ?? []).map((e) => Z(e, bt(e), i)), ...(l ?? []).map((e) => Z(e.file, e.path, i))];
1037
+ x(t.filter((e) => !Ee(e))), C(t.filter(Ee)), O(X.Replace), te(/* @__PURE__ */ new Map()), ae([]), le(void 0), me(void 0), ge(0);
1015
1038
  }, [e]), R(() => {
1016
1039
  if (!e) return;
1017
1040
  let t = !1;
1018
- if (g.length === 0) k(/* @__PURE__ */ new Map()), j([]);
1019
- else return ie(!0), n.validateBatch(g).then(({ results: e, batchErrors: n }) => {
1020
- t || (k(new Map(e.map((e) => [e.candidateId, e]))), j(n.map((e) => e.message)));
1041
+ if (y.length === 0) te(/* @__PURE__ */ new Map()), ae([]);
1042
+ else return se(!0), n.validateBatch(y).then(({ results: e, batchErrors: n }) => {
1043
+ t || (te(new Map(e.map((e) => [e.candidateId, e]))), ae(n.map((e) => e.message)));
1021
1044
  }).finally(() => {
1022
- t || ie(!1);
1045
+ t || se(!1);
1023
1046
  }), () => {
1024
1047
  t = !0;
1025
1048
  };
1026
- }, [g, e]);
1027
- let Ae = g.some((e) => O.get(e.id)?.status === Y.Invalid), H = g.length > 0 && g.every((e) => O.get(e.id)?.status === Y.Invalid), je = [...A, ...g.flatMap((e) => {
1028
- let t = O.get(e.id);
1029
- return t?.status === Y.Invalid && t.error ? [`${e.path}: ${t.error}`] : [];
1030
- })], Me = g.length > 0 && !Ae && A.length === 0 && !re && !N && fe === 0, Ne = async () => {
1031
- ce(!0), oe(void 0);
1049
+ }, [y, e]);
1050
+ let Ae = y.some((e) => A.get(e.id)?.status === yt.Invalid), je = y.length > 0 && y.every((e) => A.get(e.id)?.status === yt.Invalid), Me = [...j, ...y.flatMap((e) => {
1051
+ let t = A.get(e.id);
1052
+ return t?.status === yt.Invalid && t.error ? [`${e.path}: ${t.error}`] : [];
1053
+ })], W = y.length > 0 && !Ae && j.length === 0 && !oe && !de && he === 0, Ne = async () => {
1054
+ fe(!0), le(void 0);
1032
1055
  try {
1033
- let { results: e, batchErrors: r } = await n.validateBatch(g), i = new Map(e.map((e) => [e.candidateId, e]));
1034
- if (k(i), j(r.map((e) => e.message)), g.some((e) => i.get(e.id)?.status === Y.Invalid) || r.length > 0) return;
1035
- let a = await n.commitBatch(g);
1056
+ let { results: e, batchErrors: r } = await n.validateBatch(y), i = new Map(e.map((e) => [e.candidateId, e]));
1057
+ if (te(i), ae(r.map((e) => e.message)), y.some((e) => i.get(e.id)?.status === yt.Invalid) || r.length > 0) return;
1058
+ let a = await n.commitBatch(y);
1036
1059
  if (a.error) {
1037
- oe(a.error);
1060
+ le(a.error);
1038
1061
  return;
1039
1062
  }
1040
- u?.(g), t();
1063
+ d?.(y), t();
1041
1064
  } finally {
1042
- ce(!1);
1065
+ fe(!1);
1043
1066
  }
1044
- }, U = h.uploadDialogCloseAriaLabel ?? "Close", Pe = h.uploadCancelLabel ?? "Cancel", [W] = y;
1045
- if (W) {
1046
- let t = h.uploadConflictTitle ?? "Replace or duplicate it?";
1047
- return /* @__PURE__ */ F(dt, {
1067
+ }, Pe = _.uploadDialogCloseAriaLabel ?? "Close", G = _.uploadCancelLabel ?? "Cancel", [Fe] = S;
1068
+ if (Fe) {
1069
+ let t = _.uploadConflictTitle ?? "Replace or duplicate it?";
1070
+ return /* @__PURE__ */ P(ft, {
1048
1071
  isOpen: e,
1049
1072
  title: t,
1050
- closeAriaLabel: U,
1051
- onClose: () => Ee(null),
1052
- confirmLabel: h.uploadConflictConfirmLabel ?? "Confirm",
1053
- onConfirm: () => Ee(S),
1054
- cancelLabel: Pe,
1055
- onCancel: () => Ee(null),
1056
- colors: m,
1057
- children: /* @__PURE__ */ I("div", {
1073
+ closeAriaLabel: Pe,
1074
+ onClose: () => H(null),
1075
+ confirmLabel: _.uploadConflictConfirmLabel ?? "Confirm",
1076
+ onConfirm: () => H(w),
1077
+ cancelLabel: G,
1078
+ onCancel: () => H(null),
1079
+ colors: h,
1080
+ children: /* @__PURE__ */ F("div", {
1058
1081
  className: "flex flex-col gap-4 px-4 py-4 desktop:px-6",
1059
- children: [/* @__PURE__ */ F("p", {
1060
- ref: xe,
1082
+ children: [/* @__PURE__ */ P("p", {
1083
+ ref: Ce,
1061
1084
  tabIndex: -1,
1062
- className: c("outline-hidden", d),
1063
- children: h.uploadConflictMessage?.(W.path) ?? `Item with the same name "${W.path}" already exists.`
1064
- }), /* @__PURE__ */ F(se, {
1085
+ className: c("outline-hidden", f),
1086
+ children: _.uploadConflictMessage?.(Fe.path) ?? `Item with the same name "${Fe.path}" already exists.`
1087
+ }), /* @__PURE__ */ P(ce, {
1065
1088
  ariaLabel: t,
1066
- value: S,
1067
- onChange: (e) => C(e === X.Duplicate ? X.Duplicate : X.Replace),
1089
+ value: w,
1090
+ onChange: (e) => O(e === X.Duplicate ? X.Duplicate : X.Replace),
1068
1091
  items: [{
1069
1092
  value: X.Replace,
1070
- label: h.uploadConflictReplaceLabel ?? "Replace"
1093
+ label: _.uploadConflictReplaceLabel ?? "Replace"
1071
1094
  }, {
1072
1095
  value: X.Duplicate,
1073
- label: h.uploadConflictDuplicateLabel ?? "Duplicate"
1096
+ label: _.uploadConflictDuplicateLabel ?? "Duplicate"
1074
1097
  }]
1075
1098
  })]
1076
1099
  })
1077
1100
  });
1078
1101
  }
1079
- return /* @__PURE__ */ F(dt, {
1102
+ return /* @__PURE__ */ P(ft, {
1080
1103
  isOpen: e,
1081
- title: he ? h.uploadArchiveDialogTitle ?? "Upload archive from device" : h.uploadDialogTitle ?? "Upload files from device",
1082
- closeAriaLabel: U,
1104
+ title: I ? _.uploadArchiveDialogTitle ?? "Upload archive from device" : _.uploadDialogTitle ?? "Upload files from device",
1105
+ closeAriaLabel: Pe,
1083
1106
  onClose: t,
1084
- confirmLabel: h.uploadConfirmLabel ?? "Add",
1107
+ confirmLabel: _.uploadConfirmLabel ?? "Add",
1085
1108
  onConfirm: () => void Ne(),
1086
- isConfirmDisabled: !Me,
1087
- isConfirming: N,
1088
- cancelLabel: Pe,
1109
+ isConfirmDisabled: !W,
1110
+ isConfirming: de,
1111
+ cancelLabel: G,
1089
1112
  onCancel: t,
1090
- colors: m,
1091
- children: /* @__PURE__ */ I("div", {
1113
+ colors: h,
1114
+ children: /* @__PURE__ */ F("div", {
1092
1115
  className: "flex flex-col gap-4 px-4 py-4 desktop:px-6",
1116
+ style: o({
1117
+ "--se-upload-invalid-dropzone-border": g?.invalidDropZoneBorder,
1118
+ "--se-upload-row-border": g?.rowBorder
1119
+ }),
1093
1120
  children: [
1094
- /* @__PURE__ */ F(E, {
1095
- label: /* @__PURE__ */ I(P, { children: [/* @__PURE__ */ F("span", {
1121
+ /* @__PURE__ */ P(E, {
1122
+ label: /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P("span", {
1096
1123
  className: "desktop:hidden",
1097
- children: he ? h.uploadArchiveDropZoneMobileLabel ?? "Click here to upload a .zip archive" : h.uploadDropZoneMobileLabel ?? "Click here to upload"
1098
- }), /* @__PURE__ */ F("span", {
1124
+ children: I ? _.uploadArchiveDropZoneMobileLabel ?? "Click here to upload a .zip archive" : _.uploadDropZoneMobileLabel ?? "Click here to upload"
1125
+ }), /* @__PURE__ */ P("span", {
1099
1126
  className: "hidden desktop:inline",
1100
- children: he ? h.uploadArchiveDropZoneLabel ?? "Drag and drop a .zip archive or click here to upload" : h.uploadDropZoneLabel ?? "Drag and drop it or click here to upload"
1127
+ children: I ? _.uploadArchiveDropZoneLabel ?? "Drag and drop a .zip archive or click here to upload" : _.uploadDropZoneLabel ?? "Drag and drop it or click here to upload"
1101
1128
  })] }),
1102
- description: he ? h.uploadArchiveDropZoneDescription : h.uploadDropZoneDescription,
1103
- id: ve,
1104
- ariaLabel: h.uploadDropZoneAriaLabel ?? "Upload files",
1129
+ description: I ? _.uploadArchiveDropZoneDescription : _.uploadDropZoneDescription,
1130
+ id: xe,
1131
+ ariaLabel: _.uploadDropZoneAriaLabel ?? "Upload files",
1105
1132
  multiple: !0,
1106
- accept: he ? vt : void 0,
1107
- className: H ? "border-error hover:border-error" : void 0,
1108
- onChange: Oe,
1109
- onReject: he ? () => de(ge) : void 0
1133
+ accept: I ? St : void 0,
1134
+ className: je ? xt.invalidDropZone : void 0,
1135
+ onChange: ke,
1136
+ onReject: I ? () => me(ve) : void 0
1110
1137
  }),
1111
- fe > 0 && /* @__PURE__ */ F(le, { ariaLabel: h.uploadArchiveExtractingAriaLabel ?? "Reading archive" }),
1112
- /* @__PURE__ */ F(T, {
1113
- text: ue,
1114
- announce: ne.Assertive
1138
+ he > 0 && /* @__PURE__ */ P(ue, { ariaLabel: _.uploadArchiveExtractingAriaLabel ?? "Reading archive" }),
1139
+ /* @__PURE__ */ P(T, {
1140
+ text: pe,
1141
+ announce: ie.Assertive
1115
1142
  }),
1116
- /* @__PURE__ */ F(M, {
1143
+ /* @__PURE__ */ P(ne, {
1117
1144
  visuallyHidden: !0,
1118
- as: te.Span,
1119
- id: _e,
1120
- children: je.map((e) => `${h.uploadBatchErrorAriaPrefix ?? "Upload error: "}${e}`).join(" ")
1145
+ as: re.Span,
1146
+ id: be,
1147
+ children: Me.map((e) => `${_.uploadBatchErrorAriaPrefix ?? "Upload error: "}${e}`).join(" ")
1121
1148
  }),
1122
- A.map((e) => /* @__PURE__ */ F(T, { text: e }, e)),
1123
- g.length > 0 && /* @__PURE__ */ F("ul", {
1149
+ j.map((e) => /* @__PURE__ */ P(T, { text: e }, e)),
1150
+ y.length > 0 && /* @__PURE__ */ P("ul", {
1124
1151
  className: "flex flex-col gap-2",
1125
- children: g.map((e) => {
1126
- let t = O.get(e.id), n = t?.kind === gt.Manifest, r = t?.status === Y.Invalid, i = r ? t?.error : void 0, a = `${be}${e.id}`;
1127
- return /* @__PURE__ */ I("li", {
1128
- className: "flex items-center gap-2 rounded-lg border border-tertiary p-2",
1129
- children: [/* @__PURE__ */ F(D, {
1152
+ children: y.map((e) => {
1153
+ let t = A.get(e.id), n = t?.kind === vt.Manifest, r = t?.status === yt.Invalid, i = r ? t?.error : void 0, a = `${Se}${e.id}`;
1154
+ return /* @__PURE__ */ F("li", {
1155
+ className: c("flex items-center gap-2 rounded-lg border p-2", xt.row),
1156
+ children: [/* @__PURE__ */ P(D, {
1130
1157
  name: e.path,
1131
1158
  className: "min-w-0 flex-1",
1132
- details: /* @__PURE__ */ I(P, { children: [
1133
- /* @__PURE__ */ F(v, {
1134
- className: f,
1159
+ details: /* @__PURE__ */ F(N, { children: [
1160
+ /* @__PURE__ */ P(v, {
1161
+ className: p,
1135
1162
  text: s(e.file.size)
1136
1163
  }),
1137
- /* @__PURE__ */ F(T, {
1164
+ /* @__PURE__ */ P(T, {
1138
1165
  id: a,
1139
1166
  text: i
1140
1167
  }),
1141
- n && !r && /* @__PURE__ */ F(v, {
1142
- className: f,
1143
- text: h.uploadManifestRowNote ?? "Will replace this Skill's name, description, and instructions"
1168
+ n && !r && /* @__PURE__ */ P(v, {
1169
+ className: p,
1170
+ text: _.uploadManifestRowNote ?? "Will replace this Skill's name, description, and instructions"
1144
1171
  }),
1145
- e.replacesExisting && !r && /* @__PURE__ */ F(v, {
1146
- className: f,
1147
- text: h.uploadReplaceRowNote ?? "Will replace the existing file"
1172
+ e.replacesExisting && !r && /* @__PURE__ */ P(v, {
1173
+ className: p,
1174
+ text: _.uploadReplaceRowNote ?? "Will replace the existing file"
1148
1175
  })
1149
1176
  ] })
1150
- }), /* @__PURE__ */ F(ee, {
1151
- icon: /* @__PURE__ */ F(ye, {
1177
+ }), /* @__PURE__ */ P(ee, {
1178
+ icon: /* @__PURE__ */ P(ye, {
1152
1179
  size: 16,
1153
1180
  "aria-hidden": !0,
1154
1181
  stroke: b
1155
1182
  }),
1156
- "aria-label": h.uploadRemoveCandidateLabel?.(e.path) ?? `Remove ${e.path}`,
1183
+ "aria-label": _.uploadRemoveCandidateLabel?.(e.path) ?? `Remove ${e.path}`,
1157
1184
  "aria-describedby": i ? a : void 0,
1158
- onClick: () => ke(e.id)
1185
+ onClick: () => U(e.id)
1159
1186
  })]
1160
1187
  }, e.id);
1161
1188
  })
1162
1189
  }),
1163
- /* @__PURE__ */ F(T, {
1164
- text: ae,
1165
- announce: ne.Assertive
1190
+ /* @__PURE__ */ P(T, {
1191
+ text: M,
1192
+ announce: ie.Assertive
1166
1193
  })
1167
1194
  ]
1168
1195
  })
1169
1196
  });
1170
- }, wt = {
1171
- title: "_title_5md1a_1",
1172
- helperText: "_helperText_5md1a_5",
1173
- refineFeedback: "_refineFeedback_5md1a_9",
1174
- refineError: "_refineError_5md1a_13"
1175
- }, Tt = {
1176
- mode: ct.Files,
1197
+ }, Dt = {
1198
+ title: "_title_lgmx6_1",
1199
+ helperText: "_helperText_lgmx6_5",
1200
+ refineFeedback: "_refineFeedback_lgmx6_9",
1201
+ refineError: "_refineError_lgmx6_13",
1202
+ menuIcon: "_menuIcon_lgmx6_17"
1203
+ }, Ot = {
1204
+ mode: lt.Files,
1177
1205
  targetFolderPath: ""
1178
- }, Et = [W.Name, W.Description], Dt = 24, Ot = 300, kt = "pb-0 desktop:px-8 desktop:py-6", At = "desktop:px-8 desktop:py-6", jt = "gap-4 px-4 pt-5 pb-6 desktop:gap-5 desktop:px-8 desktop:py-6", Mt = Se(async () => {
1206
+ }, kt = [G.Name, G.Description], At = 24, jt = 300, Mt = "pb-0 desktop:px-8 desktop:py-6", Nt = "desktop:px-8 desktop:py-6", Pt = "gap-4 px-4 pt-5 pb-6 desktop:gap-5 desktop:px-8 desktop:py-6", Ft = Se(async () => {
1179
1207
  let { MarkdownEditor: e } = await De();
1180
1208
  return { default: e };
1181
- }), Nt = ({ initialValues: r, files: i, selectedPath: s, onSelectedPathChange: d, expandedPaths: p, onExpandedPathsChange: m, isLoading: x = !1, hasLoadError: E = !1, isSubmitting: D = !1, errors: k, submitError: j, conflict: M, onReloadLatest: te, isNameReadOnly: ne = !1, onDirtyChange: re, onValuesChange: ie, onRefineDescription: ae, onRefineInstructions: se, fileActions: N, supportingFileContent: ce, asideData: ue, onSubmit: de, onCancel: fe, onBack: pe, backAriaLabel: _e, title: ve, onRetry: Se, onRetrySubmit: Ce, labels: De, styles: Oe, dir: ke, instructionsEditorTheme: Ae = S.light }) => {
1182
- let [H, je] = V({
1209
+ }), Q = ({ initialValues: r, files: i, selectedPath: s, onSelectedPathChange: d, expandedPaths: p, onExpandedPathsChange: m, isLoading: x = !1, hasLoadError: E = !1, isSubmitting: D = !1, errors: k, submitError: te, conflict: ne, onReloadLatest: re, isNameReadOnly: ie = !1, onDirtyChange: j, onValuesChange: ae, onRefineDescription: oe, onRefineInstructions: ce, fileActions: M, supportingFileContent: le, asideData: de, onSubmit: fe, onCancel: pe, onBack: me, backAriaLabel: I, title: ve, onRetry: Se, onRetrySubmit: Ce, labels: De, styles: H, dir: Oe, instructionsEditorTheme: ke = S.light }) => {
1210
+ let [U, Ae] = V({
1183
1211
  name: r?.name ?? "",
1184
1212
  description: r?.description ?? "",
1185
1213
  instructions: r?.instructions ?? ""
1186
- }), Me = we(), Ne = we();
1187
- u(() => document.getElementById(Me), Ne, !!k?.instructions);
1188
- let U = B(void 0), Pe = l({
1189
- bottomGap: Dt,
1190
- minHeight: Ot
1191
- }), W = B(H), Fe = (e) => {
1214
+ }), je = we(), Me = we();
1215
+ u(() => document.getElementById(je), Me, !!k?.instructions);
1216
+ let W = B(void 0), Ne = l({
1217
+ bottomGap: At,
1218
+ minHeight: jt
1219
+ }), Pe = B(U), G = (e) => {
1192
1220
  let t = {
1193
- ...W.current,
1221
+ ...Pe.current,
1194
1222
  ...e
1195
1223
  };
1196
- W.current = t, je(t), ie?.(t);
1197
- }, Ie = (e) => e ? async (t, n) => {
1198
- if (U.current && !U.current.aborted) throw new DOMException("Busy", "AbortError");
1199
- U.current = n;
1224
+ Pe.current = t, Ae(t), ae?.(t);
1225
+ }, Fe = (e) => e ? async (t, n) => {
1226
+ if (W.current && !W.current.aborted) throw new DOMException("Busy", "AbortError");
1227
+ W.current = n;
1200
1228
  try {
1201
1229
  return await e(t, n);
1202
1230
  } finally {
1203
- U.current === n && (U.current = void 0);
1231
+ W.current === n && (W.current = void 0);
1204
1232
  }
1205
- } : void 0, Le = f({
1206
- value: H.description,
1207
- onChange: (e) => Fe({ description: e }),
1208
- onRefine: Ie(ae),
1233
+ } : void 0, Ie = f({
1234
+ value: U.description,
1235
+ onChange: (e) => G({ description: e }),
1236
+ onRefine: Fe(oe),
1209
1237
  disabled: D || x || E,
1210
1238
  resetKey: r
1211
- }), Re = f({
1212
- value: H.instructions,
1213
- onChange: (e) => Fe({ instructions: e }),
1214
- onRefine: Ie(se),
1239
+ }), Le = f({
1240
+ value: U.instructions,
1241
+ onChange: (e) => G({ instructions: e }),
1242
+ onRefine: Fe(ce),
1215
1243
  disabled: D || x || E,
1216
1244
  resetKey: r
1217
- }), ze = Le.isPending || Re.isPending, Be = () => {
1218
- Le.reset(), Re.reset();
1245
+ }), Re = Ie.isPending || Le.isPending, ze = () => {
1246
+ Ie.reset(), Le.reset();
1247
+ }, Be = () => {
1248
+ ze(), pe();
1219
1249
  }, Ve = () => {
1220
- Be(), fe();
1250
+ ze(), me();
1221
1251
  }, He = () => {
1222
- Be(), pe();
1223
- }, Ue = () => {
1224
- D || x || E || U.current && !U.current.aborted || de(H);
1225
- }, Ke = B(r), Je = Ke.current !== r, Ze = B(i), [Qe, et] = V(!1);
1252
+ D || x || E || W.current && !W.current.aborted || fe(U);
1253
+ }, Ue = B(r), We = Ue.current !== r, qe = B(i), [Ye, Qe] = V(!1);
1226
1254
  R(() => {
1227
- Ke.current = r;
1255
+ Ue.current = r;
1228
1256
  let e = {
1229
1257
  name: r?.name ?? "",
1230
1258
  description: r?.description ?? "",
1231
1259
  instructions: r?.instructions ?? ""
1232
1260
  };
1233
- W.current = e, je(e), Ze.current = i, et(!1);
1261
+ Pe.current = e, Ae(e), qe.current = i, Qe(!1);
1234
1262
  }, [r]);
1235
- let tt = (e) => JSON.stringify([...e].sort((e, t) => e.path.localeCompare(t.path))), rt = B(!1);
1263
+ let $e = (e) => JSON.stringify([...e].sort((e, t) => e.path.localeCompare(t.path))), tt = B(!1);
1236
1264
  R(() => {
1237
- if (Je) return;
1265
+ if (We) return;
1238
1266
  let e = {
1239
1267
  name: r?.name ?? "",
1240
1268
  description: r?.description ?? "",
1241
1269
  instructions: r?.instructions ?? ""
1242
- }, t = JSON.stringify(H) !== JSON.stringify(e) || tt(i) !== tt(Ze.current) || Qe;
1243
- t !== rt.current && (rt.current = t, re?.(t));
1270
+ }, t = JSON.stringify(U) !== JSON.stringify(e) || $e(i) !== $e(qe.current) || Ye;
1271
+ t !== tt.current && (tt.current = t, j?.(t));
1244
1272
  }, [
1245
- H,
1273
+ U,
1246
1274
  i,
1247
1275
  r,
1248
- Je,
1249
- Qe,
1250
- re
1276
+ We,
1277
+ Ye,
1278
+ j
1251
1279
  ]);
1252
- let [it, at] = V(G), q = s ?? it, ut = L((e) => {
1253
- at(e), d?.(e);
1254
- }, [d]), [dt, mt] = V([]), gt = p ?? dt, Y = z(() => new Set(gt), [gt]), X = L((e) => {
1280
+ let [nt, it] = V(K), J = s ?? nt, at = L((e) => {
1281
+ it(e), d?.(e);
1282
+ }, [d]), [st, dt] = V([]), ft = p ?? st, mt = z(() => new Set(ft), [ft]), gt = L((e) => {
1255
1283
  let t = [...e];
1256
- mt(t), m?.(t);
1257
- }, [m]), [_t, vt] = V(!1), [yt, bt] = V(Tt), xt = L((e) => {
1258
- bt(e), vt(!0);
1259
- }, []), [St, Nt] = V(!1), { isDragActive: Pt, dropZoneHandlers: Ft } = st(L((e) => {
1260
- _t || xt({
1261
- ...Tt,
1284
+ dt(t), m?.(t);
1285
+ }, [m]), [vt, yt] = V(!1), [X, bt] = V(Ot), xt = L((e) => {
1286
+ bt(e), yt(!0);
1287
+ }, []), [St, Ct] = V(!1), { isDragActive: wt, dropZoneHandlers: Tt } = ct(L((e) => {
1288
+ vt || xt({
1289
+ ...Ot,
1262
1290
  initialFiles: e
1263
1291
  });
1264
- }, [_t, xt])), Z = De ?? {}, Q = Oe?.colors, $ = Oe?.typography ?? {}, It = $.titleClassName ?? "dial-body-semi-text", Lt = $.helperTextClassName ?? "dial-tiny-semi-text", Rt = $.removeIconClassName, zt = $.menuIconClassName ?? "text-secondary", Bt = o({
1292
+ }, [vt, xt])), Z = De ?? {}, Q = H?.colors, $ = H?.typography ?? {}, It = $.titleClassName ?? "dial-body-semi-text", Lt = $.helperTextClassName ?? "dial-tiny-semi-text", Rt = $.removeIconClassName, zt = z(() => o({ "--se-menu-icon": Q?.menuIcon }), [Q?.menuIcon]), Bt = o({
1265
1293
  "--se-title-color": Q?.title,
1266
1294
  "--se-helper-text-color": Q?.helperText,
1267
1295
  "--se-refine-action-text": Q?.refineActionText,
1268
1296
  "--se-refine-error-text": Q?.refineErrorText,
1269
1297
  "--se-files-card-bg": Q?.filesCardBackground,
1270
- "--se-files-card-border": Q?.filesCardBorder
1298
+ "--se-files-card-border": Q?.filesCardBorder,
1299
+ "--se-drop-overlay-icon": Q?.dropOverlayIcon
1271
1300
  }), Vt = {
1272
1301
  footerBackground: Q?.dialogFooterBackground,
1273
1302
  footerBorder: Q?.dialogFooterBorder
1274
1303
  }, Ht = {
1275
- feedbackClassName: c(Q?.refineActionText && wt.refineFeedback, $.refineFeedbackClassName, Ye.refineFeedback),
1276
- errorClassName: wt.refineError
1304
+ feedbackClassName: c(Q?.refineActionText && Dt.refineFeedback, $.refineFeedbackClassName, Xe.refineFeedback),
1305
+ errorClassName: Dt.refineError
1277
1306
  }, Ut = {
1278
1307
  layout: Q?.border ? { colors: {
1279
1308
  headerBorderColor: Q.border,
@@ -1289,33 +1318,33 @@ var Ye = {
1289
1318
  Z.folderNameInvalidError,
1290
1319
  Z.folderNameDuplicateError
1291
1320
  ]), Gt = L((e) => {
1292
- Y.has(e) || X(/* @__PURE__ */ new Set([...Y, e]));
1293
- }, [Y, X]), Kt = yt.targetFolderPath, qt = z(() => ({
1294
- ...N,
1321
+ mt.has(e) || gt(/* @__PURE__ */ new Set([...mt, e]));
1322
+ }, [mt, gt]), Kt = X.targetFolderPath, qt = z(() => ({
1323
+ ...M,
1295
1324
  commitBatch: async (e) => {
1296
- let t = await N.commitBatch(e);
1325
+ let t = await M.commitBatch(e);
1297
1326
  return !t.error && Kt !== "" && Gt(Kt), t;
1298
1327
  }
1299
1328
  }), [
1300
- N,
1329
+ M,
1301
1330
  Kt,
1302
1331
  Gt
1303
1332
  ]), Jt = ot({
1304
1333
  files: i,
1305
- fileActions: N,
1334
+ fileActions: M,
1306
1335
  defaultName: Z.newFolderDefaultName ?? "New folder",
1307
1336
  messages: Wt,
1308
1337
  onRevealFolder: Gt,
1309
- onCreated: ut
1310
- }), { draftNode: Yt, draftPath: Xt, draftPane: Zt } = Jt, Qt = z(() => $e([{
1311
- path: G,
1312
- name: G,
1313
- kind: K.File
1314
- }, ...i]), [i]), $t = z(() => Yt ? $e([
1338
+ onCreated: at
1339
+ }), { draftNode: Yt, draftPath: Xt, draftPane: Zt } = Jt, Qt = z(() => et([{
1340
+ path: K,
1341
+ name: K,
1342
+ kind: q.File
1343
+ }, ...i]), [i]), $t = z(() => Yt ? et([
1315
1344
  {
1316
- path: G,
1317
- name: G,
1318
- kind: K.File
1345
+ path: K,
1346
+ name: K,
1347
+ kind: q.File
1319
1348
  },
1320
1349
  ...i,
1321
1350
  Yt
@@ -1323,51 +1352,51 @@ var Ye = {
1323
1352
  i,
1324
1353
  Yt,
1325
1354
  Qt
1326
- ]), en = z(() => i.find((e) => e.path === q), [i, q]), tn = L((e) => {
1327
- e.path !== Xt && ut(e.path);
1328
- }, [ut, Xt]), nn = L((e) => {
1329
- N.onRemoveNode(e), q === e && ut(G);
1355
+ ]), en = z(() => i.find((e) => e.path === J), [i, J]), tn = L((e) => {
1356
+ e.path !== Xt && at(e.path);
1357
+ }, [at, Xt]), nn = L((e) => {
1358
+ M.onRemoveNode(e), J === e && at(K);
1330
1359
  }, [
1331
- N,
1332
- q,
1333
- ut
1334
- ]), { startDraft: rn } = Jt, { onCreateFolder: an, extractArchive: on, pickFromFileSystem: sn } = N, [cn, ln] = V(null), un = L((e, t) => {
1335
- t === J.Mobile ? ln(e) : rn(e, t);
1336
- }, [rn]), dn = z(() => i.filter((e) => e.kind === K.File).map((e) => e.path), [i]), fn = L(async (e) => {
1360
+ M,
1361
+ J,
1362
+ at
1363
+ ]), { startDraft: rn } = Jt, { onCreateFolder: an, extractArchive: on, pickFromFileSystem: sn } = M, [cn, ln] = V(null), un = L((e, t) => {
1364
+ t === Y.Mobile ? ln(e) : rn(e, t);
1365
+ }, [rn]), dn = z(() => i.filter((e) => e.kind === q.File).map((e) => e.path), [i]), fn = L(async (e) => {
1337
1366
  if (!sn) return;
1338
1367
  let t = await sn();
1339
1368
  t?.length && xt({
1340
- mode: ct.Files,
1369
+ mode: lt.Files,
1341
1370
  targetFolderPath: e,
1342
1371
  initialEntries: t
1343
1372
  });
1344
1373
  }, [sn, xt]), pn = L((e, t) => {
1345
- let n = (e) => lt(e, zt), r = [];
1374
+ let n = (e) => ut(e, Dt.menuIcon, void 0, zt), r = [];
1346
1375
  return an && r.push({
1347
1376
  key: "create-folder",
1348
1377
  label: Z.createFolderLabel ?? "Create folder",
1349
- icon: n(ge),
1378
+ icon: n(_e),
1350
1379
  onClick: () => un(e, t)
1351
1380
  }), r.push({
1352
1381
  key: "upload-files",
1353
1382
  label: Z.uploadFilesLabel ?? "Upload files from device",
1354
1383
  icon: n(be),
1355
1384
  onClick: () => xt({
1356
- mode: ct.Files,
1385
+ mode: lt.Files,
1357
1386
  targetFolderPath: e
1358
1387
  })
1359
1388
  }), on && r.push({
1360
1389
  key: "upload-archive",
1361
1390
  label: Z.uploadArchiveLabel ?? "Upload archive from device",
1362
- icon: n(he),
1391
+ icon: n(ge),
1363
1392
  onClick: () => xt({
1364
- mode: ct.Archive,
1393
+ mode: lt.Archive,
1365
1394
  targetFolderPath: e
1366
1395
  })
1367
1396
  }), sn && r.push({
1368
1397
  key: "open-file-system",
1369
1398
  label: Z.openFileSystemLabel ?? "Open DIAL file system",
1370
- icon: n(me),
1399
+ icon: n(he),
1371
1400
  onClick: () => void fn(e)
1372
1401
  }), r;
1373
1402
  }, [
@@ -1383,27 +1412,27 @@ var Ye = {
1383
1412
  xt,
1384
1413
  fn
1385
1414
  ]), mn = z(() => {
1386
- let e = nt(Xe.Header, i.find((e) => e.path === q));
1415
+ let e = rt(Ze.Header, i.find((e) => e.path === J));
1387
1416
  return {
1388
- [J.Mobile]: pn(e, J.Mobile),
1389
- [J.Desktop]: pn(e, J.Desktop)
1417
+ [Y.Mobile]: pn(e, Y.Mobile),
1418
+ [Y.Desktop]: pn(e, Y.Desktop)
1390
1419
  };
1391
1420
  }, [
1392
1421
  pn,
1393
1422
  i,
1394
- q
1423
+ J
1395
1424
  ]), hn = L((e, t) => {
1396
1425
  if (e.path === Xt || e.nodeType !== Te.FOLDER) return [];
1397
1426
  let n = {
1398
1427
  path: e.path,
1399
1428
  name: e.name,
1400
- kind: K.Folder
1401
- }, r = pn(nt(Xe.Child, n), t);
1429
+ kind: q.Folder
1430
+ }, r = pn(rt(Ze.Child, n), t);
1402
1431
  return r.push({
1403
1432
  key: "delete",
1404
1433
  label: Z.deleteLabel ?? "Delete",
1405
1434
  danger: !0,
1406
- icon: lt(ye, Rt),
1435
+ icon: ut(ye, Rt),
1407
1436
  onClick: () => nn(e.path)
1408
1437
  }), r;
1409
1438
  }, [
@@ -1413,40 +1442,40 @@ var Ye = {
1413
1442
  pn,
1414
1443
  nn
1415
1444
  ]), gn = z(() => ({
1416
- [J.Mobile]: (e) => hn(e, J.Mobile),
1417
- [J.Desktop]: (e) => hn(e, J.Desktop)
1418
- }), [hn]), _n = L((e) => e.nodeType === Te.FOLDER || e.path === "SKILL.md" ? null : /* @__PURE__ */ F(ee, {
1445
+ [Y.Mobile]: (e) => hn(e, Y.Mobile),
1446
+ [Y.Desktop]: (e) => hn(e, Y.Desktop)
1447
+ }), [hn]), _n = L((e) => e.nodeType === Te.FOLDER || e.path === "SKILL.md" ? null : /* @__PURE__ */ P(ee, {
1419
1448
  size: C.Small,
1420
- icon: lt(ye, Rt, y.SM),
1449
+ icon: ut(ye, Rt, y.SM),
1421
1450
  "aria-label": Z.deleteLabel ?? "Delete",
1422
1451
  onClick: () => nn(e.path)
1423
1452
  }), [
1424
1453
  Z.deleteLabel,
1425
1454
  Rt,
1426
1455
  nn
1427
- ]), vn = (e) => /* @__PURE__ */ I("div", {
1456
+ ]), vn = (e) => /* @__PURE__ */ F("div", {
1428
1457
  className: "flex flex-col gap-2 desktop:gap-5",
1429
- children: [/* @__PURE__ */ I("div", {
1458
+ children: [/* @__PURE__ */ F("div", {
1430
1459
  className: "flex items-center justify-between",
1431
- children: [/* @__PURE__ */ F("span", {
1432
- className: c(wt.title, It),
1460
+ children: [/* @__PURE__ */ P("span", {
1461
+ className: c(Dt.title, It),
1433
1462
  children: Z.filesHeading ?? "Files"
1434
- }), /* @__PURE__ */ F(g, {
1463
+ }), /* @__PURE__ */ P(g, {
1435
1464
  label: Z.addLabel ?? "Add",
1436
1465
  variant: _.Neutral,
1437
1466
  appearance: h.Solid,
1438
1467
  size: C.Small,
1439
1468
  items: mn[e]
1440
1469
  })]
1441
- }), /* @__PURE__ */ F("div", {
1470
+ }), /* @__PURE__ */ P("div", {
1442
1471
  role: "tree",
1443
1472
  "aria-label": Z.filesTreeAriaLabel ?? "Skill files",
1444
- children: /* @__PURE__ */ F(Ee, {
1473
+ children: /* @__PURE__ */ P(Ee, {
1445
1474
  items: Zt === e ? $t : Qt,
1446
1475
  showFiles: !0,
1447
- selectedPath: q,
1448
- expandedPaths: Y,
1449
- onExpandedPathsChange: X,
1476
+ selectedPath: J,
1477
+ expandedPaths: mt,
1478
+ onExpandedPathsChange: gt,
1450
1479
  onItemClick: tn,
1451
1480
  getContextMenuItems: gn[e],
1452
1481
  renderItemActions: _n,
@@ -1458,17 +1487,17 @@ var Ye = {
1458
1487
  })
1459
1488
  })]
1460
1489
  }), yn = z(() => ({
1461
- name: H.name,
1462
- description: H.description,
1490
+ name: U.name,
1491
+ description: U.description,
1463
1492
  iconUrl: "",
1464
1493
  version: "",
1465
1494
  topics: [],
1466
1495
  otherLocales: []
1467
- }), [H.name, H.description]), bn = z(() => ({
1496
+ }), [U.name, U.description]), bn = z(() => ({
1468
1497
  name: k?.name,
1469
1498
  description: k?.description
1470
1499
  }), [k?.name, k?.description]), xn = z(() => ({ form: {
1471
- ...Ge,
1500
+ ...Ke,
1472
1501
  name: {
1473
1502
  label: Z.nameLabel ?? "Name",
1474
1503
  placeholder: Z.namePlaceholder ?? "good-morning-breakfast"
@@ -1484,54 +1513,54 @@ var Ye = {
1484
1513
  Z.descriptionLabel,
1485
1514
  Z.descriptionPlaceholder
1486
1515
  ]), Sn = (e) => {
1487
- e.name !== void 0 && Fe({ name: e.name }), e.description !== void 0 && (Le.reset(), Fe({ description: e.description }));
1488
- }, Cn = ae ? (e, t) => /* @__PURE__ */ F(a, {
1516
+ e.name !== void 0 && G({ name: e.name }), e.description !== void 0 && (Ie.reset(), G({ description: e.description }));
1517
+ }, Cn = oe ? (e, t) => /* @__PURE__ */ P(a, {
1489
1518
  isEnabled: !0,
1490
1519
  fieldId: t,
1491
1520
  required: !0,
1492
1521
  label: Z.descriptionLabel ?? "Description",
1493
1522
  labels: Z,
1494
- refinement: Le,
1495
- disabled: ze || D,
1523
+ refinement: Ie,
1524
+ disabled: Re || D,
1496
1525
  ...Ht,
1497
1526
  children: e
1498
1527
  }) : void 0, wn = {
1499
1528
  title: ve,
1500
- onBack: He,
1501
- onCancel: Ve,
1502
- onSubmit: Ue,
1529
+ onBack: Ve,
1530
+ onCancel: Be,
1531
+ onSubmit: He,
1503
1532
  submitLabel: Z.createLabel ?? "Create",
1504
- isSubmitDisabled: ze || x || E,
1533
+ isSubmitDisabled: Re || x || E,
1505
1534
  labels: {
1506
1535
  cancelLabel: Z.cancelLabel ?? "Cancel",
1507
- backAriaLabel: _e ?? "Back",
1536
+ backAriaLabel: I ?? "Back",
1508
1537
  savingStatusLabel: Z.savingStatusLabel ?? "Saving"
1509
1538
  },
1510
1539
  styles: Ut,
1511
1540
  metadataTitle: null
1512
1541
  };
1513
- if (x) return /* @__PURE__ */ F("div", {
1514
- dir: ke,
1542
+ if (x) return /* @__PURE__ */ P("div", {
1543
+ dir: Oe,
1515
1544
  className: "relative flex min-h-0 flex-1 flex-col",
1516
- children: /* @__PURE__ */ F(We, {
1545
+ children: /* @__PURE__ */ P(Ge, {
1517
1546
  ...wn,
1518
- metadata: /* @__PURE__ */ F("div", {
1547
+ metadata: /* @__PURE__ */ P("div", {
1519
1548
  className: "flex flex-1 items-center justify-center p-8",
1520
- children: /* @__PURE__ */ F(le, { ariaLabel: Z.loadingAriaLabel ?? "Loading skill" })
1549
+ children: /* @__PURE__ */ P(ue, { ariaLabel: Z.loadingAriaLabel ?? "Loading skill" })
1521
1550
  })
1522
1551
  })
1523
1552
  });
1524
- if (E) return /* @__PURE__ */ F("div", {
1525
- dir: ke,
1553
+ if (E) return /* @__PURE__ */ P("div", {
1554
+ dir: Oe,
1526
1555
  className: "relative flex min-h-0 flex-1 flex-col",
1527
- children: /* @__PURE__ */ F(We, {
1556
+ children: /* @__PURE__ */ P(Ge, {
1528
1557
  ...wn,
1529
- metadata: /* @__PURE__ */ F("div", {
1558
+ metadata: /* @__PURE__ */ P("div", {
1530
1559
  className: "p-8",
1531
- children: /* @__PURE__ */ F(w, {
1560
+ children: /* @__PURE__ */ P(w, {
1532
1561
  message: Z.loadErrorMessage ?? "Couldn't load this skill. Please try again.",
1533
1562
  iconStroke: b,
1534
- action: /* @__PURE__ */ F(oe, {
1563
+ action: /* @__PURE__ */ P(se, {
1535
1564
  label: Z.retryLabel ?? "Retry",
1536
1565
  onClick: Se
1537
1566
  })
@@ -1539,133 +1568,139 @@ var Ye = {
1539
1568
  })
1540
1569
  })
1541
1570
  });
1542
- let Tn = q === G, En = Tn ? G : Z.selectedFileHeading?.(en?.name ?? q) ?? en?.name ?? q, Dn = j != null || M != null ? /* @__PURE__ */ I("div", {
1571
+ let Tn = J === K, En = Tn ? K : Z.selectedFileHeading?.(en?.name ?? J) ?? en?.name ?? J, Dn = te != null || ne != null ? /* @__PURE__ */ F("div", {
1543
1572
  className: "flex flex-col gap-2",
1544
- children: [j != null && /* @__PURE__ */ I("div", {
1573
+ children: [te != null && /* @__PURE__ */ F("div", {
1545
1574
  className: "flex items-center gap-2",
1546
- children: [/* @__PURE__ */ F(T, { text: j }), Ce != null && /* @__PURE__ */ F(O, {
1575
+ children: [/* @__PURE__ */ P(T, { text: te }), Ce != null && /* @__PURE__ */ P(O, {
1547
1576
  label: Z.retryLabel ?? "Retry",
1548
1577
  onClick: Ce
1549
1578
  })]
1550
- }), M != null && /* @__PURE__ */ I("div", {
1579
+ }), ne != null && /* @__PURE__ */ F("div", {
1551
1580
  className: "flex items-center gap-2",
1552
- children: [/* @__PURE__ */ F(T, { text: M.message }), /* @__PURE__ */ F(O, {
1581
+ children: [/* @__PURE__ */ P(T, { text: ne.message }), /* @__PURE__ */ P(O, {
1553
1582
  label: Z.reloadLatestLabel ?? "Reload latest",
1554
- onClick: te
1583
+ onClick: re
1555
1584
  })]
1556
1585
  })]
1557
- }) : void 0, On = /* @__PURE__ */ F(a, {
1558
- isEnabled: !!se,
1559
- fieldId: Me,
1586
+ }) : void 0, On = /* @__PURE__ */ P(a, {
1587
+ isEnabled: !!ce,
1588
+ fieldId: je,
1560
1589
  required: !0,
1561
- labelClassName: c(wt.helperText, Lt),
1590
+ labelClassName: c(Dt.helperText, Lt),
1562
1591
  label: Z.instructionsLabel ?? "Instructions",
1563
1592
  labels: Z,
1564
- refinement: Re,
1565
- disabled: ze || D,
1593
+ refinement: Le,
1594
+ disabled: Re || D,
1566
1595
  ...Ht,
1567
- children: /* @__PURE__ */ I("div", {
1596
+ children: /* @__PURE__ */ F("div", {
1568
1597
  className: "flex flex-1 flex-col gap-2",
1569
1598
  children: [
1570
- !se && /* @__PURE__ */ F(A, {
1571
- htmlFor: Me,
1572
- className: c(wt.helperText, Lt),
1599
+ !ce && /* @__PURE__ */ P(A, {
1600
+ htmlFor: je,
1601
+ className: c(Dt.helperText, Lt),
1573
1602
  label: Z.instructionsLabel ?? "Instructions",
1574
1603
  required: !0
1575
1604
  }),
1576
- /* @__PURE__ */ F("div", {
1577
- ref: Pe,
1605
+ /* @__PURE__ */ P("div", {
1606
+ ref: Ne,
1578
1607
  className: c(t, e, n),
1579
- children: /* @__PURE__ */ F(xe, {
1580
- fallback: /* @__PURE__ */ F(le, { ariaLabel: Z.instructionsLoadingAriaLabel ?? "Loading" }),
1581
- children: /* @__PURE__ */ F(Mt, {
1582
- id: Me,
1608
+ children: /* @__PURE__ */ P(xe, {
1609
+ fallback: /* @__PURE__ */ P(ue, { ariaLabel: Z.instructionsLoadingAriaLabel ?? "Loading" }),
1610
+ children: /* @__PURE__ */ P(Ft, {
1611
+ id: je,
1583
1612
  ariaLabel: Z.instructionsLabel ?? "Instructions",
1584
- value: H.instructions,
1613
+ value: U.instructions,
1585
1614
  onChange: (e) => {
1586
- Re.reset(), Fe({ instructions: e });
1615
+ Le.reset(), G({ instructions: e });
1587
1616
  },
1588
- theme: Ae,
1617
+ theme: ke,
1589
1618
  showDragbar: !1,
1590
1619
  placeholder: Z.instructionsPlaceholder ?? "Write the skill instructions in Markdown"
1591
1620
  })
1592
1621
  })
1593
1622
  }),
1594
- k?.instructions != null && /* @__PURE__ */ F(T, {
1595
- id: Ne,
1623
+ k?.instructions != null && /* @__PURE__ */ P(T, {
1624
+ id: Me,
1596
1625
  text: k.instructions
1597
1626
  })
1598
1627
  ]
1599
1628
  })
1600
1629
  });
1601
- return /* @__PURE__ */ I("div", {
1602
- dir: ke,
1603
- className: c("relative flex min-h-0 min-w-0 flex-1 flex-col", Ye.root),
1630
+ return /* @__PURE__ */ F("div", {
1631
+ dir: Oe,
1632
+ className: c("relative flex min-h-0 min-w-0 flex-1 flex-col", Xe.root),
1604
1633
  style: Bt,
1605
- ...Ft,
1634
+ ...Tt,
1606
1635
  children: [
1607
- /* @__PURE__ */ F(pt, {
1608
- isVisible: Pt && !_t,
1609
- labels: De
1636
+ /* @__PURE__ */ P(ht, {
1637
+ isVisible: wt && !vt,
1638
+ labels: De,
1639
+ titleClassName: $.dropOverlayTitleClassName,
1640
+ subtitleClassName: $.dropOverlaySubtitleClassName
1610
1641
  }),
1611
- /* @__PURE__ */ F(We, {
1642
+ /* @__PURE__ */ P(Ge, {
1612
1643
  ...wn,
1613
- asideData: ue,
1614
- asideSectionClassName: At,
1644
+ asideData: de,
1645
+ asideSectionClassName: Nt,
1615
1646
  isSubmitting: D,
1616
- metadataSectionClassName: kt,
1617
- metadata: /* @__PURE__ */ I(P, { children: [/* @__PURE__ */ F("div", {
1647
+ metadataSectionClassName: Mt,
1648
+ metadata: /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P("div", {
1618
1649
  className: "desktop:hidden",
1619
- children: /* @__PURE__ */ F(ht, {
1650
+ children: /* @__PURE__ */ P(_t, {
1620
1651
  label: Z.editingFileLabel ?? "Editing file",
1621
1652
  fileName: en?.name ?? "SKILL.md",
1622
1653
  isExpanded: St,
1623
- onToggle: Nt,
1654
+ onToggle: Ct,
1624
1655
  labelClassName: $.editingFileLabelClassName,
1625
1656
  fileNameClassName: $.editingFileNameClassName,
1626
- children: vn(J.Mobile)
1657
+ children: vn(Y.Mobile)
1627
1658
  })
1628
- }), /* @__PURE__ */ F("div", {
1659
+ }), /* @__PURE__ */ P("div", {
1629
1660
  className: "hidden desktop:block",
1630
- children: vn(J.Desktop)
1661
+ children: vn(Y.Desktop)
1631
1662
  })] }),
1632
1663
  alert: Dn,
1633
1664
  setupTitle: En,
1634
- setupSectionClassName: jt,
1635
- setup: Tn ? /* @__PURE__ */ I(P, { children: [/* @__PURE__ */ F(qe, {
1665
+ setupSectionClassName: Pt,
1666
+ setup: Tn ? /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(Je, {
1636
1667
  values: yn,
1637
1668
  errors: bn,
1638
1669
  onChange: Sn,
1639
- fields: Et,
1670
+ fields: kt,
1640
1671
  isDescriptionRequired: !0,
1641
- isNameReadOnly: ne,
1672
+ isNameReadOnly: ie,
1642
1673
  nameReadOnlyTooltip: Z.nameReadOnlyTooltip ?? "The skill name can't be changed after creation",
1643
1674
  nameCaption: k?.name ? void 0 : Z.nameCaption ?? "Lowercase letters and hyphens only, no spaces. We'll reformat automatically if needed.",
1644
1675
  renderDescription: Cn,
1645
1676
  labels: xn
1646
- }), On] }) : /* @__PURE__ */ F(P, { children: en?.kind === K.File && /* @__PURE__ */ F("div", {
1677
+ }), On] }) : /* @__PURE__ */ P(N, { children: en?.kind === q.File && /* @__PURE__ */ P("div", {
1647
1678
  className: "flex h-[max(320px,60dvh)] min-h-0 min-w-0 flex-none flex-col desktop:h-auto desktop:flex-1",
1648
- children: ce ?? /* @__PURE__ */ F(v, { text: Z.supportingFileNote ?? "This supporting file is included in the skill package as-is. Remove it from the Files panel to replace its content." })
1679
+ children: le ?? /* @__PURE__ */ P(v, { text: Z.supportingFileNote ?? "This supporting file is included in the skill package as-is. Remove it from the Files panel to replace its content." })
1649
1680
  }) })
1650
1681
  }),
1651
- /* @__PURE__ */ F(Ct, {
1652
- isOpen: _t,
1653
- onClose: () => vt(!1),
1682
+ /* @__PURE__ */ P(Et, {
1683
+ isOpen: vt,
1684
+ onClose: () => yt(!1),
1654
1685
  fileActions: qt,
1655
- mode: yt.mode,
1656
- targetFolderPath: yt.targetFolderPath,
1657
- initialFiles: yt.initialFiles,
1658
- initialEntries: yt.initialEntries,
1686
+ mode: X.mode,
1687
+ targetFolderPath: X.targetFolderPath,
1688
+ initialFiles: X.initialFiles,
1689
+ initialEntries: X.initialEntries,
1659
1690
  existingFilePaths: dn,
1660
1691
  onCommitted: (e) => {
1661
- e.some((e) => e.replacesExisting) && et(!0);
1692
+ e.some((e) => e.replacesExisting) && Qe(!0);
1662
1693
  },
1663
1694
  messageClassName: $.uploadMessageClassName,
1664
1695
  rowCaptionClassName: $.uploadRowCaptionClassName,
1665
1696
  labels: De,
1666
- dialogColors: Vt
1697
+ dialogColors: Vt,
1698
+ colors: {
1699
+ invalidDropZoneBorder: Q?.uploadInvalidDropZoneBorder,
1700
+ rowBorder: Q?.uploadRowBorder
1701
+ }
1667
1702
  }),
1668
- /* @__PURE__ */ F(ft, {
1703
+ /* @__PURE__ */ P(pt, {
1669
1704
  isOpen: cn != null,
1670
1705
  onClose: () => ln(null),
1671
1706
  validateName: (e) => Jt.validateNewFolder(e, cn ?? ""),
@@ -1682,4 +1717,4 @@ var Ye = {
1682
1717
  });
1683
1718
  };
1684
1719
  //#endregion
1685
- export { Ye as SKILL_EDITOR_CLASS, Nt as SkillEditor, gt as SkillFileCandidateKind, K as SkillFileNodeKind, ct as SkillFileUploadMode, Y as SkillFileValidationStatus };
1720
+ export { Xe as SKILL_EDITOR_CLASS, Q as SkillEditor, vt as SkillFileCandidateKind, q as SkillFileNodeKind, lt as SkillFileUploadMode, yt as SkillFileValidationStatus };