@epam/ai-dial-publish-panel 1.4.0-dev.115 → 1.4.0-dev.116

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,8 +1,8 @@
1
1
  import { useCallback as e, useEffect as t, useId as n, useMemo as r, useRef as i, useState as a } from "react";
2
- import { Badge as o, BottomSheet as s, ButtonVariant as c, Checkbox as l, ConfirmationPopupVariant as u, DIAL_ICON_SIZE as d, DIAL_KIT_ICON_STROKE as f, DialFileNodeType as p, DialItemType as m, ElementSize as h, EllipsisTooltip as g, ErrorText as _, FileIcon as v, FolderName as y, GhostButton as b, GhostIconButton as x, Highlight as S, Input as ee, LinkButton as C, LiveRegion as w, LiveRegionElement as T, LiveRegionPoliteness as E, NeutralButton as D, Notification as O, NotificationType as k, NotificationVariant as A, PrimaryButton as j, RadioGroup as te, Search as M, Select as N, SideDrawer as ne, Skeleton as P, SkeletonVariant as F, Spinner as I, Tag as L, TagInput as re } from "@epam/ai-dial-ui-kit";
3
- import { ConfirmationDialog as R, DeploymentIcon as z, ResourceSummary as ie, TAG_INPUT_TAG_CLASS_NAME as B, buildCssVars as V, mergeClasses as H, useIsMobile as ae } from "@epam/ai-dial-chat-shared";
4
- import { Fragment as oe, jsx as U, jsxs as W } from "react/jsx-runtime";
5
- import { IconFolder as se, IconFolderPlus as ce, IconPlus as le, IconTrashX as G } from "@tabler/icons-react";
2
+ import { Badge as o, BottomSheet as s, ButtonVariant as c, Checkbox as l, ConfirmationPopupVariant as u, DIAL_ICON_SIZE as d, DIAL_KIT_ICON_STROKE as f, DialFileNodeType as p, DialItemType as m, ElementSize as h, EllipsisTooltip as g, ErrorText as _, FileIcon as v, FolderName as y, GhostButton as b, GhostIconButton as x, Highlight as S, Input as ee, LinkButton as C, LiveRegion as w, LiveRegionElement as T, LiveRegionPoliteness as E, NeutralButton as D, Notification as O, NotificationType as k, NotificationVariant as A, PrimaryButton as j, RadioGroup as te, Search as M, Select as N, SideDrawer as ne, Skeleton as P, SkeletonVariant as F, Spinner as I, Tag as re, TagInput as ie } from "@epam/ai-dial-ui-kit";
3
+ import { ConfirmationDialog as L, DeploymentIcon as R, ResourceSummary as ae, TAG_INPUT_TAG_CLASS_NAME as z, buildCssVars as B, mergeClasses as V, useIsMobile as oe } from "@epam/ai-dial-chat-shared";
4
+ import { Fragment as se, jsx as H, jsxs as U } from "react/jsx-runtime";
5
+ import { IconFolder as W, IconFolderPlus as ce, IconPlus as le, IconTrashX as G } from "@tabler/icons-react";
6
6
  import { DialFileNodeType as ue, DialFoldersTree as de } from "@epam/ai-dial-react-file-manager";
7
7
  //#region src/models/publish.ts
8
8
  var K = /* @__PURE__ */ function(e) {
@@ -11,7 +11,9 @@ var K = /* @__PURE__ */ function(e) {
11
11
  return e.None = "none", e.Info = "info", e.ReplaceWarning = "replaceWarning", e.TargetTaken = "targetTaken", e.NoAccess = "noAccess", e.SubmitError = "submitError", e;
12
12
  }({}), J = /* @__PURE__ */ function(e) {
13
13
  return e.Application = "application", e.Toolset = "toolset", e.Prompt = "prompt", e.Skill = "skill", e.File = "file", e;
14
- }({}), Y = (e) => e.isSubmitting ? {
14
+ }({}), Y = /* @__PURE__ */ function(e) {
15
+ return e.Warning = "warning", e.Published = "published", e;
16
+ }({}), fe = (e) => e.isSubmitting ? {
15
17
  calloutKind: q.None,
16
18
  isSubmitDisabled: !0,
17
19
  isSubmitLoading: !0
@@ -43,14 +45,14 @@ var K = /* @__PURE__ */ function(e) {
43
45
  calloutKind: q.None,
44
46
  isSubmitDisabled: !0,
45
47
  isSubmitLoading: !1
46
- }, fe = 864e5, X = (e, t = Date.now(), n) => {
47
- let r = Math.floor((t - e) / fe);
48
+ }, X = 864e5, pe = (e, t = Date.now(), n) => {
49
+ let r = Math.floor((t - e) / X);
48
50
  return r <= 0 ? "Today" : r === 1 ? "Yesterday" : r < 7 ? `${r} days ago` : new Date(e).toLocaleDateString(n, {
49
51
  month: "short",
50
52
  day: "numeric",
51
53
  year: "numeric"
52
54
  });
53
- }, pe = (e, t, n) => t.length === 0 ? [...e, {
55
+ }, Z = (e, t, n) => t.length === 0 ? [...e, {
54
56
  path: [n],
55
57
  name: n
56
58
  }] : e.map((e) => e.path.join("/") === t.join("/") ? {
@@ -61,17 +63,17 @@ var K = /* @__PURE__ */ function(e) {
61
63
  }]
62
64
  } : {
63
65
  ...e,
64
- children: e.children ? pe(e.children, t, n) : e.children
65
- }), Z = (e, t, n) => {
66
+ children: e.children ? Z(e.children, t, n) : e.children
67
+ }), me = (e, t, n) => {
66
68
  let r = [...t, n].join("/");
67
69
  return t.length === 0 ? e.filter((e) => e.path.join("/") !== r) : e.map((e) => e.path.join("/") === t.join("/") ? {
68
70
  ...e,
69
71
  children: (e.children ?? []).filter((e) => e.path.join("/") !== r)
70
72
  } : {
71
73
  ...e,
72
- children: e.children ? Z(e.children, t, n) : e.children
74
+ children: e.children ? me(e.children, t, n) : e.children
73
75
  });
74
- }, me = ({ item: n, history: o, folderItems: s, hasWriteAccess: c = () => !0, defaultAuthor: l = "", onCreateFolder: u, onPublish: d, onPublishSuccess: f, onPublishError: p, onFetchExistingRules: m, onCheckTargetExists: h, isTargetTakenError: g }) => {
76
+ }, he = ({ item: n, history: o, folderItems: s, hasWriteAccess: c = () => !0, defaultAuthor: l = "", onCreateFolder: u, onPublish: d, onPublishSuccess: f, onPublishError: p, onFetchExistingRules: m, onCheckTargetExists: h, isTargetTakenError: g }) => {
75
77
  let [_, v] = a(s);
76
78
  t(() => {
77
79
  v(s);
@@ -108,45 +110,45 @@ var K = /* @__PURE__ */ function(e) {
108
110
  o,
109
111
  n.version,
110
112
  y
111
- ]), I = i(/* @__PURE__ */ new Set()), [L, re] = a(), [R, z] = a(), [ie, B] = a(!1), V = y == null ? void 0 : `${n.id ?? ""}\u0000${y.join("/")}\u0000${n.version ?? ""}`, H = V != null && (L === V || R === V);
113
+ ]), I = i(/* @__PURE__ */ new Set()), [re, ie] = a(), [L, R] = a(), [ae, z] = a(!1), B = y == null ? void 0 : `${n.id ?? ""}\u0000${y.join("/")}\u0000${n.version ?? ""}`, V = B != null && (re === B || L === B);
112
114
  t(() => {
113
- if (y == null || V == null || !h || F) {
114
- B(!1);
115
+ if (y == null || B == null || !h || F) {
116
+ z(!1);
115
117
  return;
116
118
  }
117
119
  let e = y.join("/");
118
120
  if ([...I.current].some((t) => e === t || e.startsWith(`${t}/`))) {
119
- B(!1);
121
+ z(!1);
120
122
  return;
121
123
  }
122
124
  let t = !1;
123
- return B(!0), h(n, y).then((e) => {
124
- t || re((t) => e ? V : t === V ? void 0 : t);
125
+ return z(!0), h(n, y).then((e) => {
126
+ t || ie((t) => e ? B : t === B ? void 0 : t);
125
127
  }).catch(() => void 0).finally(() => {
126
- t || B(!1);
128
+ t || z(!1);
127
129
  }), () => {
128
130
  t = !0;
129
131
  };
130
132
  }, [
131
- V,
133
+ B,
132
134
  F,
133
135
  h == null
134
136
  ]);
135
- let ae = e(async (e, t) => {
137
+ let oe = e(async (e, t) => {
136
138
  let n = [...e, t].join("/");
137
- I.current.add(n), v((n) => pe(n, e, t));
139
+ I.current.add(n), v((n) => Z(n, e, t));
138
140
  try {
139
141
  await u?.(e, t);
140
142
  } catch {
141
- I.current.delete(n), v((n) => Z(n, e, t)), C(!0);
143
+ I.current.delete(n), v((n) => me(n, e, t)), C(!0);
142
144
  }
143
- }, [u]), oe = e(async () => {
145
+ }, [u]), se = e(async () => {
144
146
  if (!y) return !1;
145
147
  S(!0), C(!1);
146
148
  try {
147
149
  return await d(n, y, w, A.trim(), te), f?.(n, y), !0;
148
150
  } catch (e) {
149
- return g?.(e) && V != null ? z(V) : C(!0), p?.(n, y, e), !1;
151
+ return g?.(e) && B != null ? R(B) : C(!0), p?.(n, y, e), !1;
150
152
  } finally {
151
153
  S(!1);
152
154
  }
@@ -160,35 +162,35 @@ var K = /* @__PURE__ */ function(e) {
160
162
  te,
161
163
  w,
162
164
  y,
163
- V
164
- ]), U = e(() => {
165
- v(s), b(void 0), C(!1), T([]), k(!1), j(l), ne(!1), M(!1), I.current.clear(), re(void 0), z(void 0), B(!1);
165
+ B
166
+ ]), H = e(() => {
167
+ v(s), b(void 0), C(!1), T([]), k(!1), j(l), ne(!1), M(!1), I.current.clear(), ie(void 0), R(void 0), z(!1);
166
168
  }, [l, s]);
167
169
  return {
168
170
  folderItems: _,
169
171
  selectedFolderPath: y,
170
172
  setSelectedFolderPath: b,
171
- handleCreateFolder: ae,
173
+ handleCreateFolder: oe,
172
174
  hasExistingPublicationInFolder: F,
173
175
  hasWriteAccess: !y || c(y),
174
176
  isSubmitting: x,
175
177
  hasSubmitError: ee,
176
- handleSubmit: oe,
177
- reset: U,
178
+ handleSubmit: se,
179
+ reset: H,
178
180
  rules: w,
179
181
  setRules: T,
180
182
  author: A,
181
183
  setAuthor: P,
182
184
  publishCredentials: te,
183
185
  setPublishCredentials: M,
184
- isTargetTaken: H,
185
- isTargetChecking: ie,
186
+ isTargetTaken: V,
187
+ isTargetChecking: ae,
186
188
  isRulesLoading: E,
187
189
  hasRulesLoadError: O
188
190
  };
189
191
  }, Q = /* @__PURE__ */ function(e) {
190
192
  return e.Main = "main", e.ChangeFolder = "change-folder", e;
191
- }({}), he = ({ isOpen: e, selectedFolderPath: n, onSelectedFolderPathChange: r }) => {
193
+ }({}), ge = ({ isOpen: e, selectedFolderPath: n, onSelectedFolderPathChange: r }) => {
192
194
  let [i, o] = a(Q.Main), [s, c] = a();
193
195
  return t(() => {
194
196
  e && o(Q.Main);
@@ -204,52 +206,52 @@ var K = /* @__PURE__ */ function(e) {
204
206
  s != null && r(s), o(Q.Main);
205
207
  }
206
208
  };
207
- }, ge = (e, t) => {
209
+ }, _e = (e, t) => {
208
210
  let n = t.trim().toLowerCase();
209
211
  return n ? e.reduce((e, r) => {
210
- let i = r.children ? ge(r.children, t) : void 0;
212
+ let i = r.children ? _e(r.children, t) : void 0;
211
213
  return r.name.toLowerCase().includes(n) ? e.push(r) : i?.length && e.push({
212
214
  ...r,
213
215
  children: i
214
216
  }), e;
215
217
  }, []) : e;
216
- }, _e = (e, t) => e.localeCompare(t, void 0, {
218
+ }, ve = (e, t) => e.localeCompare(t, void 0, {
217
219
  sensitivity: "base",
218
220
  numeric: !0
219
- }), ve = (e) => [...e].sort((e, t) => _e(e.name, t.name)).map((e) => e.children ? {
221
+ }), ye = (e) => [...e].sort((e, t) => ve(e.name, t.name)).map((e) => e.children ? {
220
222
  ...e,
221
- children: ve(e.children)
222
- } : e), ye = (e, t, n) => {
223
+ children: ye(e.children)
224
+ } : e), be = (e, t, n) => {
223
225
  let [r, ...i] = t;
224
226
  if (r == null) return e;
225
227
  let a = [...n, r], o = e.find((e) => e.name === r);
226
228
  return o ? i.length ? e.map((e) => e === o ? {
227
229
  ...e,
228
- children: ye(e.children ?? [], i, a)
230
+ children: be(e.children ?? [], i, a)
229
231
  } : e) : e : [...e, {
230
232
  path: a,
231
233
  name: r,
232
- children: i.length ? ye([], i, a) : void 0
234
+ children: i.length ? be([], i, a) : void 0
233
235
  }];
234
- }, be = (e, t) => t.reduce((e, t) => t.length ? ye(e, t, []) : e, e), xe = (e) => e.flatMap((e) => [e.path.join("/"), ...e.children ? xe(e.children) : []]), $ = (e) => e.join("/"), Se = (e) => e.split("/").filter(Boolean), Ce = (e, t) => Se(e).at(-1) ?? t, we = (e) => e.map((e) => {
236
+ }, xe = (e, t) => t.reduce((e, t) => t.length ? be(e, t, []) : e, e), Se = (e) => e.flatMap((e) => [e.path.join("/"), ...e.children ? Se(e.children) : []]), $ = (e) => e.join("/"), Ce = (e) => e.split("/").filter(Boolean), we = (e, t) => Ce(e).at(-1) ?? t, Te = (e) => e.map((e) => {
235
237
  let t = $(e.path);
236
238
  return {
237
239
  path: t,
238
240
  name: e.name,
239
241
  folderId: t,
240
242
  nodeType: p.FOLDER,
241
- items: e.children ? we(e.children) : void 0
243
+ items: e.children ? Te(e.children) : void 0
242
244
  };
243
- }), Te = /[/\\:;,={}&"]/, Ee = (e, t, n, r) => {
245
+ }), Ee = /[/\\:;,={}&"]/, De = (e, t, n, r) => {
244
246
  let i = e.trim();
245
- return i ? i.includes("..") || Te.test(i) ? n.invalid : t.some((e) => e.toLowerCase() === i.toLowerCase()) ? n.duplicate : r?.toLowerCase() === i.toLowerCase() ? n.sameAsParent ?? n.duplicate : null : n.empty;
246
- }, De = (e, t) => {
247
+ return i ? i.includes("..") || Ee.test(i) ? n.invalid : t.some((e) => e.toLowerCase() === i.toLowerCase()) ? n.duplicate : r?.toLowerCase() === i.toLowerCase() ? n.sameAsParent ?? n.duplicate : null : n.empty;
248
+ }, Oe = (e, t) => {
247
249
  let n = new Set(t.map((e) => e.toLowerCase()));
248
250
  if (!n.has(e.toLowerCase())) return e;
249
251
  let r = 2;
250
252
  for (; n.has(`${e} ${r}`.toLowerCase());) r += 1;
251
253
  return `${e} ${r}`;
252
- }, Oe = (e, t) => {
254
+ }, ke = (e, t) => {
253
255
  if (t.length === 0) return e.map((e) => e.name);
254
256
  let n = $(t), r = (e) => {
255
257
  for (let t of e) {
@@ -259,22 +261,22 @@ var K = /* @__PURE__ */ function(e) {
259
261
  }
260
262
  };
261
263
  return (r(e)?.children ?? []).map((e) => e.name);
262
- }, ke = {
264
+ }, Ae = {
263
265
  sheet: "_sheet_1jbwn_3",
264
266
  inline: "_inline_1jbwn_7",
265
267
  selectField: "_selectField_1jbwn_21",
266
268
  selectFieldOpen: "_selectFieldOpen_1jbwn_33"
267
- }, Ae = 20, je = 200, Me = 8, Ne = (e) => {
269
+ }, je = 20, Me = 200, Ne = 8, Pe = (e) => {
268
270
  let t = e.trim();
269
- if (t.length === 0 || t.length > je) return !1;
271
+ if (t.length === 0 || t.length > Me) return !1;
270
272
  try {
271
273
  return new RegExp(t) instanceof RegExp;
272
274
  } catch {
273
275
  return !1;
274
276
  }
275
- }, Pe = ({ sourceOptions: e, onSave: o, onCancel: c, disabled: l = !1, maxTargets: u = Ae, labels: d = {}, styles: f = {} }) => {
276
- let p = ae(), m = {
277
- ...V({
277
+ }, Fe = ({ sourceOptions: e, onSave: o, onCancel: c, disabled: l = !1, maxTargets: u = je, labels: d = {}, styles: f = {} }) => {
278
+ let p = oe(), m = {
279
+ ...B({
278
280
  "--pare-mobile-bg": f.colors?.mobileBackground,
279
281
  "--pare-bg": f.colors?.background,
280
282
  "--pare-select-border": f.colors?.selectBorder,
@@ -283,14 +285,14 @@ var K = /* @__PURE__ */ function(e) {
283
285
  "--pare-select-border-focus": f.colors?.selectBorderFocus
284
286
  }),
285
287
  ...f.cssVars
286
- }, { sourceLabel: h = "Source", sourcePlaceholder: g = "Select...", functionLabel: _ = "Function", equalOptionLabel: v = "Equal", containOptionLabel: y = "Contain", regexOptionLabel: x = "Regex", targetsLabel: C = "Targets", targetsPlaceholder: w = "Add a target", targetsHintLabel: T = "Press Enter or comma to add a target.", patternLabel: E = "Pattern", patternPlaceholder: O = "Enter a regular expression", invalidRegexError: k = "Enter a valid regular expression.", requiredFieldError: A = "This field is required.", targetsRequiredError: j = "Add at least one target.", saveLabel: te = "Save", cancelLabel: M = "Cancel", dialogAriaLabel: ne = "Add access rule" } = d, P = n(), F = n(), I = n(), L = n(), R = i(null);
288
+ }, { sourceLabel: h = "Source", sourcePlaceholder: g = "Select...", functionLabel: _ = "Function", equalOptionLabel: v = "Equal", containOptionLabel: y = "Contain", regexOptionLabel: x = "Regex", targetsLabel: C = "Targets", targetsPlaceholder: w = "Add a target", targetsHintLabel: T = "Press Enter or comma to add a target.", patternLabel: E = "Pattern", patternPlaceholder: O = "Enter a regular expression", invalidRegexError: k = "Enter a valid regular expression.", requiredFieldError: A = "This field is required.", targetsRequiredError: j = "Add at least one target.", saveLabel: te = "Save", cancelLabel: M = "Cancel", dialogAriaLabel: ne = "Add access rule" } = d, P = n(), F = n(), I = n(), re = n(), L = i(null);
287
289
  t(() => {
288
- p || R.current?.focus();
290
+ p || L.current?.focus();
289
291
  }, [p]);
290
- let [z, ie] = a(), [se, ce] = a(), [le, G] = a([]), [ue, de] = a(""), [q, J] = a(!1), [Y, fe] = a(""), [X, pe] = a(!1), [Z, me] = a(!1), Q = H(ke.selectField, q && ke.selectFieldOpen), he = H(ke.selectField, X && ke.selectFieldOpen), ge = r(() => e.map((e) => ({
292
+ let [R, ae] = a(), [W, ce] = a(), [le, G] = a([]), [ue, de] = a(""), [q, J] = a(!1), [Y, fe] = a(""), [X, pe] = a(!1), [Z, me] = a(!1), he = V(Ae.selectField, q && Ae.selectFieldOpen), Q = V(Ae.selectField, X && Ae.selectFieldOpen), ge = r(() => e.map((e) => ({
291
293
  value: e,
292
294
  label: e,
293
- labelNode: Y.trim() ? /* @__PURE__ */ U(S, {
295
+ labelNode: Y.trim() ? /* @__PURE__ */ H(S, {
294
296
  text: e,
295
297
  query: Y,
296
298
  maxLines: 1
@@ -312,12 +314,12 @@ var K = /* @__PURE__ */ function(e) {
312
314
  v,
313
315
  y,
314
316
  x
315
- ]), ve = se === K.Regex, ye = Ne(ue), be = z != null && se != null && (ve ? ye : le.length > 0), xe = (e) => {
316
- ie(Array.isArray(e) ? e[0] : e), J(!1);
317
- }, $ = (e) => {
318
- let t = Array.isArray(e) ? e[0] : e;
319
- se === K.Regex != (t === K.Regex) && (G([]), de("")), ce(t), pe(!1);
317
+ ]), ve = W === K.Regex, ye = Pe(ue), be = R != null && W != null && (ve ? ye : le.length > 0), xe = (e) => {
318
+ ae(Array.isArray(e) ? e[0] : e), J(!1);
320
319
  }, Se = (e) => {
320
+ let t = Array.isArray(e) ? e[0] : e;
321
+ W === K.Regex != (t === K.Regex) && (G([]), de("")), ce(t), pe(!1);
322
+ }, $ = (e) => {
321
323
  let t = [];
322
324
  for (let n of e) {
323
325
  let e = n.trim();
@@ -325,46 +327,46 @@ var K = /* @__PURE__ */ function(e) {
325
327
  }
326
328
  G(t);
327
329
  }, Ce = () => {
328
- !be || z == null || se == null ? me(!0) : o({
329
- source: z,
330
- function: se,
330
+ !be || R == null || W == null ? me(!0) : o({
331
+ source: R,
332
+ function: W,
331
333
  targets: ve ? [ue.trim()] : le
332
334
  });
333
335
  }, we = (ue.length > 0 || Z) && !ye, Te = (e) => {
334
336
  e.key === "Escape" && (e.stopPropagation(), c());
335
- }, Ee = /* @__PURE__ */ W(oe, { children: [
336
- /* @__PURE__ */ U(N, {
337
+ }, Ee = /* @__PURE__ */ U(se, { children: [
338
+ /* @__PURE__ */ H(N, {
337
339
  id: F,
338
340
  labelProps: { label: h },
339
341
  options: ge,
340
- value: z,
342
+ value: R,
341
343
  onChange: xe,
342
344
  placeholder: g,
343
- searchable: e.length > Me,
345
+ searchable: e.length > Ne,
344
346
  searchPlaceholder: g,
345
347
  onSearchQueryChange: fe,
346
348
  disabled: l,
347
349
  open: q,
348
350
  onOpenChange: J,
349
- fieldClassName: Q,
350
- invalid: Z && z == null,
351
- error: Z && z == null ? A : void 0
351
+ fieldClassName: he,
352
+ invalid: Z && R == null,
353
+ error: Z && R == null ? A : void 0
352
354
  }),
353
- /* @__PURE__ */ U(N, {
355
+ /* @__PURE__ */ H(N, {
354
356
  labelProps: { label: _ },
355
357
  id: I,
356
358
  options: _e,
357
- value: se,
358
- onChange: $,
359
+ value: W,
360
+ onChange: Se,
359
361
  placeholder: _,
360
362
  disabled: l,
361
363
  open: X,
362
364
  onOpenChange: pe,
363
- fieldClassName: he,
364
- invalid: Z && se == null,
365
- error: Z && se == null ? A : void 0
365
+ fieldClassName: Q,
366
+ invalid: Z && W == null,
367
+ error: Z && W == null ? A : void 0
366
368
  }),
367
- ve ? /* @__PURE__ */ U(ee, {
369
+ ve ? /* @__PURE__ */ H(ee, {
368
370
  id: P,
369
371
  labelProps: { label: E },
370
372
  placeholder: O,
@@ -372,58 +374,58 @@ var K = /* @__PURE__ */ function(e) {
372
374
  onChange: (e) => de(e ?? ""),
373
375
  error: we ? k : void 0,
374
376
  disabled: l
375
- }) : /* @__PURE__ */ U(re, {
376
- id: L,
377
+ }) : /* @__PURE__ */ H(ie, {
378
+ id: re,
377
379
  labelProps: { label: C },
378
380
  placeholder: w,
379
381
  caption: Z && le.length === 0 ? void 0 : T,
380
382
  error: Z && le.length === 0 ? j : void 0,
381
383
  invalid: Z && le.length === 0,
382
384
  value: le,
383
- onChange: Se,
385
+ onChange: $,
384
386
  disabled: l,
385
- tagClassName: B
387
+ tagClassName: z
386
388
  }),
387
- /* @__PURE__ */ W("div", {
389
+ /* @__PURE__ */ U("div", {
388
390
  className: "mt-auto flex justify-end gap-2 desktop:mt-2",
389
- children: [/* @__PURE__ */ U(b, {
391
+ children: [/* @__PURE__ */ H(b, {
390
392
  label: M,
391
393
  onClick: c,
392
394
  disabled: l
393
- }), /* @__PURE__ */ U(D, {
395
+ }), /* @__PURE__ */ H(D, {
394
396
  label: te,
395
397
  onClick: Ce,
396
398
  disabled: l
397
399
  })]
398
400
  })
399
401
  ] });
400
- return p ? /* @__PURE__ */ U(s, {
402
+ return p ? /* @__PURE__ */ H(s, {
401
403
  open: !0,
402
404
  onClose: c,
403
405
  ariaLabel: ne,
404
406
  style: m,
405
- className: ke.sheet,
407
+ className: Ae.sheet,
406
408
  bodyClassName: "flex flex-col gap-3 p-4",
407
409
  children: Ee
408
- }) : /* @__PURE__ */ U("div", {
409
- ref: R,
410
+ }) : /* @__PURE__ */ H("div", {
411
+ ref: L,
410
412
  role: "group",
411
413
  "aria-label": ne,
412
414
  tabIndex: -1,
413
415
  onKeyDown: Te,
414
416
  style: m,
415
- className: H("flex flex-none flex-col gap-3 rounded-lg p-3", ke.inline),
417
+ className: V("flex flex-none flex-col gap-3 rounded-lg p-3", Ae.inline),
416
418
  children: Ee
417
419
  });
418
- }, Fe = {
420
+ }, Ie = {
419
421
  ruleRow: "_ruleRow_nx0en_1",
420
422
  heading: "_heading_nx0en_5",
421
423
  hint: "_hint_nx0en_9",
422
424
  loading: "_loading_nx0en_13",
423
425
  ruleText: "_ruleText_nx0en_17"
424
- }, Ie = 20, Le = (e, t) => e === K.Equal ? t.equal : e === K.Contain ? t.contain : t.regex, Re = ({ rules: e, onRulesChange: r, sourceOptions: o, folderName: s, disabled: l = !1, isLoading: u = !1, hasLoadError: p = !1, maxRules: m = Ie, maxTargetsPerRule: h, labels: g = {}, headingClassName: _ = "dial-body-semi-text", hintClassName: v = "dial-small-text", loadingClassName: y = "dial-small-text", ruleTextClassName: S = "dial-small-text", ruleSourceClassName: ee = "dial-small-semi-text", styles: C = {} }) => {
426
+ }, Le = 20, Re = (e, t) => e === K.Equal ? t.equal : e === K.Contain ? t.contain : t.regex, ze = ({ rules: e, onRulesChange: r, sourceOptions: o, folderName: s, disabled: l = !1, isLoading: u = !1, hasLoadError: p = !1, maxRules: m = Le, maxTargetsPerRule: h, labels: g = {}, headingClassName: _ = "dial-body-semi-text", hintClassName: v = "dial-small-text", loadingClassName: y = "dial-small-text", ruleTextClassName: S = "dial-small-text", ruleSourceClassName: ee = "dial-small-semi-text", styles: C = {} }) => {
425
427
  let E = {
426
- ...V({
428
+ ...B({
427
429
  "--par-rule-bg": C.colors?.ruleBackground,
428
430
  "--par-heading-text": C.colors?.headingText,
429
431
  "--par-hint-text": C.colors?.hintText,
@@ -431,7 +433,7 @@ var K = /* @__PURE__ */ function(e) {
431
433
  "--par-rule-text": C.colors?.ruleText
432
434
  }),
433
435
  ...C.cssVars
434
- }, { heading: D = "Allow access if all match", folderScopeHint: j = "These rules apply to \"{folder}\". Selecting another folder loads that folder's own rules instead.", noFolderScopeHint: te = "Access rules apply to the destination folder — pick a folder above to set its rules.", rulesWithoutFolderWarning: M = "These rules have no destination yet. Select a folder above to apply them.", maxRulesReachedLabel: N = "Rule limit reached ({max}). Remove a rule to add another.", addRuleLabel: ne = "Add rule", clearAllLabel: P = "Clear all", orSeparatorLabel: F = "Or", removeRuleAriaLabelTemplate: L = "Remove rule for {source}: {targets}", equalFunctionLabel: re = "Equal", containFunctionLabel: R = "Contain", regexFunctionLabel: z = "Regex", loadingLabel: ie = "Loading existing rules…", loadErrorLabel: B = "Couldn't load existing rules for this folder. You can still add rules manually.", ruleAddedAnnouncement: ae = "Rule added.", ruleRemovedAnnouncement: oe = "Rule removed.", rulesClearedAnnouncement: se = "All rules cleared.", rulesLoadedAnnouncement: ce = "Existing rules loaded for the selected folder.", editorLabels: ue } = g, de = n(), [K, q] = a(!1), [J, Y] = a(""), fe = i(null), X = i(u);
436
+ }, { heading: D = "Allow access if all match", folderScopeHint: j = "These rules apply to \"{folder}\". Selecting another folder loads that folder's own rules instead.", noFolderScopeHint: te = "Access rules apply to the destination folder — pick a folder above to set its rules.", rulesWithoutFolderWarning: M = "These rules have no destination yet. Select a folder above to apply them.", maxRulesReachedLabel: N = "Rule limit reached ({max}). Remove a rule to add another.", addRuleLabel: ne = "Add rule", clearAllLabel: P = "Clear all", orSeparatorLabel: F = "Or", removeRuleAriaLabelTemplate: re = "Remove rule for {source}: {targets}", equalFunctionLabel: ie = "Equal", containFunctionLabel: L = "Contain", regexFunctionLabel: R = "Regex", loadingLabel: ae = "Loading existing rules…", loadErrorLabel: z = "Couldn't load existing rules for this folder. You can still add rules manually.", ruleAddedAnnouncement: oe = "Rule added.", ruleRemovedAnnouncement: se = "Rule removed.", rulesClearedAnnouncement: W = "All rules cleared.", rulesLoadedAnnouncement: ce = "Existing rules loaded for the selected folder.", editorLabels: ue } = g, de = n(), [K, q] = a(!1), [J, Y] = a(""), fe = i(null), X = i(u);
435
437
  t(() => {
436
438
  X.current && !u && e.length > 0 && Y(ce), X.current = u;
437
439
  }, [
@@ -444,99 +446,99 @@ var K = /* @__PURE__ */ function(e) {
444
446
  }, Z = () => {
445
447
  q(!1), fe.current?.focus?.();
446
448
  }, me = (t) => {
447
- r([...e, t]), Y(ae), Z();
448
- }, Q = (t) => {
449
- r(e.filter((e, n) => n !== t)), Y(oe);
450
- }, he = () => {
451
- r([]), Y(se);
449
+ r([...e, t]), Y(oe), Z();
450
+ }, he = (t) => {
451
+ r(e.filter((e, n) => n !== t)), Y(se);
452
+ }, Q = () => {
453
+ r([]), Y(W);
452
454
  }, ge = {
453
- equal: re,
454
- contain: R,
455
- regex: z
455
+ equal: ie,
456
+ contain: L,
457
+ regex: R
456
458
  }, _e = e.length >= m, ve = l || _e, ye = s != null && s !== "";
457
- return /* @__PURE__ */ W("div", {
459
+ return /* @__PURE__ */ U("div", {
458
460
  role: "group",
459
461
  "aria-labelledby": de,
460
462
  style: E,
461
- className: H(l && "pointer-events-none opacity-60"),
463
+ className: V(l && "pointer-events-none opacity-60"),
462
464
  children: [
463
- /* @__PURE__ */ U(w, {
465
+ /* @__PURE__ */ H(w, {
464
466
  visuallyHidden: !0,
465
467
  as: T.Span,
466
468
  children: J
467
469
  }),
468
- /* @__PURE__ */ W("div", {
470
+ /* @__PURE__ */ U("div", {
469
471
  className: "mb-1 flex items-center justify-between gap-2",
470
- children: [/* @__PURE__ */ U("div", {
472
+ children: [/* @__PURE__ */ H("div", {
471
473
  id: de,
472
- className: H(_, Fe.heading),
474
+ className: V(_, Ie.heading),
473
475
  children: D
474
- }), e.length > 0 && /* @__PURE__ */ U(b, {
476
+ }), e.length > 0 && /* @__PURE__ */ H(b, {
475
477
  variant: c.Primary,
476
478
  label: P,
477
- onClick: he,
479
+ onClick: Q,
478
480
  disabled: l
479
481
  })]
480
482
  }),
481
- /* @__PURE__ */ U("p", {
482
- className: H("mb-2", v, Fe.hint),
483
+ /* @__PURE__ */ H("p", {
484
+ className: V("mb-2", v, Ie.hint),
483
485
  children: ye ? j.replace("{folder}", s) : te
484
486
  }),
485
- e.length > 0 && !ye && /* @__PURE__ */ U("div", {
487
+ e.length > 0 && !ye && /* @__PURE__ */ H("div", {
486
488
  className: "mb-2",
487
- children: /* @__PURE__ */ U(O, {
489
+ children: /* @__PURE__ */ H(O, {
488
490
  type: k.SectionMessage,
489
491
  variant: A.Warning,
490
492
  message: M
491
493
  })
492
494
  }),
493
- u && /* @__PURE__ */ W("div", {
494
- className: H("mb-2 flex items-center gap-2", y, Fe.loading),
495
- children: [/* @__PURE__ */ U(I, {
495
+ u && /* @__PURE__ */ U("div", {
496
+ className: V("mb-2 flex items-center gap-2", y, Ie.loading),
497
+ children: [/* @__PURE__ */ H(I, {
496
498
  size: 16,
497
- ariaLabel: ie
498
- }), /* @__PURE__ */ U("span", { children: ie })]
499
+ ariaLabel: ae
500
+ }), /* @__PURE__ */ H("span", { children: ae })]
499
501
  }),
500
- p && /* @__PURE__ */ U("div", {
502
+ p && /* @__PURE__ */ H("div", {
501
503
  className: "mb-2",
502
- children: /* @__PURE__ */ U(O, {
504
+ children: /* @__PURE__ */ H(O, {
503
505
  type: k.SectionMessage,
504
506
  variant: A.Warning,
505
- message: B
507
+ message: z
506
508
  })
507
509
  }),
508
- e.length > 0 && /* @__PURE__ */ U("ul", {
510
+ e.length > 0 && /* @__PURE__ */ H("ul", {
509
511
  className: "mb-3 flex flex-col gap-2",
510
512
  children: e.map((e, t) => {
511
- let n = e.targets.join(` ${F} `), r = L.replace("{source}", e.source).replace("{targets}", n);
512
- return /* @__PURE__ */ W("li", {
513
- className: H("flex items-center justify-between gap-2 rounded-lg px-3 py-2", Fe.ruleRow),
514
- children: [/* @__PURE__ */ W("span", {
515
- className: H("truncate", S, Fe.ruleText),
513
+ let n = e.targets.join(` ${F} `), r = re.replace("{source}", e.source).replace("{targets}", n);
514
+ return /* @__PURE__ */ U("li", {
515
+ className: V("flex items-center justify-between gap-2 rounded-lg px-3 py-2", Ie.ruleRow),
516
+ children: [/* @__PURE__ */ U("span", {
517
+ className: V("truncate", S, Ie.ruleText),
516
518
  children: [
517
- /* @__PURE__ */ U("span", {
519
+ /* @__PURE__ */ H("span", {
518
520
  className: ee,
519
521
  children: e.source
520
522
  }),
521
523
  " ",
522
- Le(e.function, ge),
524
+ Re(e.function, ge),
523
525
  ": ",
524
526
  n
525
527
  ]
526
- }), /* @__PURE__ */ U(x, {
527
- icon: /* @__PURE__ */ U(G, {
528
+ }), /* @__PURE__ */ H(x, {
529
+ icon: /* @__PURE__ */ H(G, {
528
530
  size: d.SM,
529
531
  "aria-hidden": !0,
530
532
  stroke: f
531
533
  }),
532
534
  "aria-label": r,
533
- onClick: () => Q(t),
535
+ onClick: () => he(t),
534
536
  disabled: l
535
537
  })]
536
538
  }, t);
537
539
  })
538
540
  }),
539
- K && /* @__PURE__ */ U(Pe, {
541
+ K && /* @__PURE__ */ H(Fe, {
540
542
  sourceOptions: o,
541
543
  onSave: me,
542
544
  onCancel: Z,
@@ -545,11 +547,11 @@ var K = /* @__PURE__ */ function(e) {
545
547
  labels: ue,
546
548
  styles: C.editor
547
549
  }),
548
- /* @__PURE__ */ U("div", {
550
+ /* @__PURE__ */ H("div", {
549
551
  className: "flex flex-wrap items-center gap-2",
550
- children: /* @__PURE__ */ U(b, {
552
+ children: /* @__PURE__ */ H(b, {
551
553
  label: ne,
552
- iconBefore: /* @__PURE__ */ U(le, {
554
+ iconBefore: /* @__PURE__ */ H(le, {
553
555
  size: d.SM,
554
556
  "aria-hidden": !0,
555
557
  stroke: f
@@ -558,22 +560,22 @@ var K = /* @__PURE__ */ function(e) {
558
560
  disabled: ve
559
561
  })
560
562
  }),
561
- _e && /* @__PURE__ */ U("p", {
562
- className: H("mt-2", v, Fe.hint),
563
+ _e && /* @__PURE__ */ H("p", {
564
+ className: V("mt-2", v, Ie.hint),
563
565
  children: N.replace("{max}", String(m))
564
566
  })
565
567
  ]
566
568
  });
567
- }, ze = /* @__PURE__ */ function(e) {
569
+ }, Be = /* @__PURE__ */ function(e) {
568
570
  return e.NotPublished = "not-published", e.InReview = "in-review", e.Published = "published", e.Unknown = "unknown", e;
569
- }({}), Be = {
571
+ }({}), Ve = {
570
572
  skeletonColor: "var(--pp-vh-skeleton, var(--bg-control-disable-primary, #dce0e8))",
571
573
  heading: "_heading_s0cgn_2",
572
574
  version: "_version_s0cgn_6",
573
575
  date: "_date_s0cgn_10",
574
576
  meta: "_meta_s0cgn_15",
575
577
  row: "_row_s0cgn_19"
576
- }, Ve = {
578
+ }, He = {
577
579
  heading: "Versions history",
578
580
  inReviewLabel: "In review",
579
581
  publishedLabel: "Published",
@@ -582,21 +584,21 @@ var K = /* @__PURE__ */ function(e) {
582
584
  emptyLabel: "No saved versions yet.",
583
585
  errorLabel: "Could not load publication statuses.",
584
586
  retryLabel: "Retry"
585
- }, He = (e, t) => {
587
+ }, Ue = (e, t) => {
586
588
  switch (e.status) {
587
- case ze.InReview: return t.inReviewLabel;
588
- case ze.Unknown: return t.unknownLabel;
589
- case ze.Published: return t.publishedLabel;
589
+ case Be.InReview: return t.inReviewLabel;
590
+ case Be.Unknown: return t.unknownLabel;
591
+ case Be.Published: return t.publishedLabel;
590
592
  default: return;
591
593
  }
592
- }, Ue = ({ rows: e, isLoading: r = !1, hasError: i = !1, onRetry: s, labels: c = {}, headingClassName: l = "dial-body-semi-text", versionClassName: u = "dial-small-semi-text", dateClassName: d = "dial-small-text", metaClassName: f = "dial-tiny-text", styles: p = {} }) => {
594
+ }, We = ({ rows: e, isLoading: r = !1, hasError: i = !1, onRetry: s, labels: c = {}, headingClassName: l = "dial-body-semi-text", versionClassName: u = "dial-small-semi-text", dateClassName: d = "dial-small-text", metaClassName: f = "dial-tiny-text", styles: p = {} }) => {
593
595
  let m = n(), [v, b] = a(!1);
594
596
  t(() => b(!0), []);
595
597
  let x = {
596
- ...Ve,
598
+ ...He,
597
599
  ...c
598
600
  }, { colors: S } = p, ee = {
599
- ...V({
601
+ ...B({
600
602
  "--pp-vh-heading-text": S?.headingText,
601
603
  "--pp-vh-version-text": S?.versionText,
602
604
  "--pp-vh-date-text": S?.dateText,
@@ -606,69 +608,69 @@ var K = /* @__PURE__ */ function(e) {
606
608
  }),
607
609
  ...p.cssVars
608
610
  };
609
- return /* @__PURE__ */ W("section", {
611
+ return /* @__PURE__ */ U("section", {
610
612
  "aria-labelledby": m,
611
613
  className: "flex flex-col gap-2",
612
614
  style: ee,
613
615
  children: [
614
- /* @__PURE__ */ U("h2", {
616
+ /* @__PURE__ */ H("h2", {
615
617
  id: m,
616
- className: H(l, Be.heading),
618
+ className: V(l, Ve.heading),
617
619
  children: x.heading
618
620
  }),
619
- /* @__PURE__ */ U(w, {
621
+ /* @__PURE__ */ H(w, {
620
622
  visuallyHidden: !0,
621
623
  politeness: E.Polite,
622
624
  children: v && r && !i ? x.loadingLabel : ""
623
625
  }),
624
- /* @__PURE__ */ U(w, {
626
+ /* @__PURE__ */ H(w, {
625
627
  politeness: E.Assertive,
626
- children: i && /* @__PURE__ */ W("div", {
628
+ children: i && /* @__PURE__ */ U("div", {
627
629
  className: "flex flex-wrap items-center gap-2",
628
- children: [/* @__PURE__ */ U(_, { text: x.errorLabel }), s && /* @__PURE__ */ U(C, {
630
+ children: [/* @__PURE__ */ H(_, { text: x.errorLabel }), s && /* @__PURE__ */ H(C, {
629
631
  label: x.retryLabel,
630
632
  size: h.Small,
631
633
  onClick: s
632
634
  })]
633
635
  })
634
636
  }),
635
- e.length === 0 ? /* @__PURE__ */ U("p", {
636
- className: H(f, Be.meta),
637
+ e.length === 0 ? /* @__PURE__ */ H("p", {
638
+ className: V(f, Ve.meta),
637
639
  children: x.emptyLabel
638
- }) : /* @__PURE__ */ U("ul", { children: e.map((e) => {
639
- let t = He(e, x), n = e.status == null && r && !i;
640
- return /* @__PURE__ */ W("li", {
641
- className: H("flex flex-col gap-1 py-2", Be.row),
642
- children: [/* @__PURE__ */ W("div", {
640
+ }) : /* @__PURE__ */ H("ul", { children: e.map((e) => {
641
+ let t = Ue(e, x), n = e.status == null && r && !i;
642
+ return /* @__PURE__ */ U("li", {
643
+ className: V("flex flex-col gap-1 py-2", Ve.row),
644
+ children: [/* @__PURE__ */ U("div", {
643
645
  className: "flex min-h-6 min-w-0 items-center gap-2",
644
646
  children: [
645
- /* @__PURE__ */ U(g, {
647
+ /* @__PURE__ */ H(g, {
646
648
  text: e.version,
647
- className: H("flex-initial!", u, Be.version)
649
+ className: V("flex-initial!", u, Ve.version)
648
650
  }),
649
- t && /* @__PURE__ */ U(o, { label: t }),
650
- n && /* @__PURE__ */ U("span", {
651
+ t && /* @__PURE__ */ H(o, { label: t }),
652
+ n && /* @__PURE__ */ H("span", {
651
653
  "aria-hidden": !0,
652
654
  className: "shrink-0",
653
- children: /* @__PURE__ */ U(P, {
655
+ children: /* @__PURE__ */ H(P, {
654
656
  variant: F.Text,
655
657
  width: "84px",
656
658
  height: "24px",
657
- color: Be.skeletonColor
659
+ color: Ve.skeletonColor
658
660
  })
659
661
  }),
660
- e.modifiedAt && /* @__PURE__ */ U("span", {
661
- className: H("ms-auto shrink-0", d, Be.date),
662
+ e.modifiedAt && /* @__PURE__ */ H("span", {
663
+ className: V("ms-auto shrink-0", d, Ve.date),
662
664
  children: e.modifiedAt
663
665
  })
664
666
  ]
665
- }), (e.folder || e.author) && /* @__PURE__ */ W("div", {
667
+ }), (e.folder || e.author) && /* @__PURE__ */ U("div", {
666
668
  className: "flex min-w-0 items-center justify-between gap-2",
667
- children: [e.folder && /* @__PURE__ */ U(y, {
669
+ children: [e.folder && /* @__PURE__ */ H(y, {
668
670
  name: e.folder,
669
- nameClassName: H(f, Be.meta)
670
- }), e.author && /* @__PURE__ */ U("span", {
671
- className: H("ms-auto shrink-0", f, Be.meta),
671
+ nameClassName: V(f, Ve.meta)
672
+ }), e.author && /* @__PURE__ */ H("span", {
673
+ className: V("ms-auto shrink-0", f, Ve.meta),
672
674
  children: e.author
673
675
  })]
674
676
  })]
@@ -676,87 +678,120 @@ var K = /* @__PURE__ */ function(e) {
676
678
  }) })
677
679
  ]
678
680
  });
679
- }, We = {
681
+ }, Ge = {
680
682
  panel: "dial-publish-panel-panel",
681
683
  dependencies: "dial-publish-panel-dependencies",
682
684
  dependenciesList: "dial-publish-panel-dependencies-list",
683
685
  dependenciesItem: "dial-publish-panel-dependencies-item"
684
- }, Ge = {
685
- heading: "_heading_k0m34_1",
686
- name: "_name_k0m34_5",
687
- meta: "_meta_k0m34_9"
688
686
  }, Ke = {
687
+ heading: "_heading_18b5e_1",
688
+ name: "_name_18b5e_5",
689
+ meta: "_meta_18b5e_9",
690
+ caption: "_caption_18b5e_13",
691
+ type: "_type_18b5e_17",
692
+ row: "_row_18b5e_21"
693
+ }, qe = {
689
694
  [J.Application]: "Application",
690
695
  [J.Toolset]: "Toolset",
691
696
  [J.Prompt]: "Prompt",
692
697
  [J.Skill]: "Skill",
693
698
  [J.File]: "File"
694
- }, qe = 32, Je = 24, Ye = (e) => /* @__PURE__ */ U("span", {
695
- "aria-hidden": "true",
696
- className: "shrink-0",
697
- children: e.type === J.File ? /* @__PURE__ */ U("span", {
698
- className: "flex items-center justify-center",
699
- style: {
700
- width: qe,
701
- height: qe
702
- },
703
- children: /* @__PURE__ */ U(v, {
704
- decorative: !0,
705
- size: Je,
706
- name: e.name,
707
- type: e.isFolder ? m.Folder : m.File
699
+ }, Je = 32, Ye = 24, Xe = 40, Ze = 32, Qe = (e, t) => {
700
+ let n = t ? Xe : Je;
701
+ return /* @__PURE__ */ H("span", {
702
+ "aria-hidden": "true",
703
+ className: "shrink-0",
704
+ children: e.type === J.File ? /* @__PURE__ */ H("span", {
705
+ className: "flex items-center justify-center",
706
+ style: {
707
+ width: n,
708
+ height: n
709
+ },
710
+ children: /* @__PURE__ */ H(v, {
711
+ decorative: !0,
712
+ size: t ? Ze : Ye,
713
+ name: e.name,
714
+ type: e.isFolder ? m.Folder : m.File
715
+ })
716
+ }) : /* @__PURE__ */ H(R, {
717
+ size: n,
718
+ src: e.iconUrl,
719
+ initialsName: e.name,
720
+ styles: { badgeClassName: t ? "rounded-xl" : "rounded-lg" }
708
721
  })
709
- }) : /* @__PURE__ */ U(z, {
710
- size: qe,
711
- src: e.iconUrl,
712
- initialsName: e.name,
713
- styles: { badgeClassName: "rounded-lg" }
714
- })
715
- }), Xe = "Private dependencies", Ze = "This item depends on personal private resources (listed below). After publishing, other users may not be able to use it fully, or may run into problems.", Qe = (e) => `${e} ${e === 1 ? "dependency is" : "dependencies are"} not public yet`, $e = ({ dependencies: e, labels: t = {}, headingClassName: r = "dial-body-semi-text", nameClassName: i = "dial-small-semi-text", metaClassName: a = "dial-small-text", styles: o = {} }) => {
716
- let s = n(), { title: c = Xe, description: l = Ze, typeLabels: u = {}, getAnnouncement: d = Qe } = t, { colors: f } = o, p = {
717
- ...V({
718
- "--pp-dependencies-heading-text": f?.headingText,
719
- "--pp-dependencies-name-text": f?.nameText,
720
- "--pp-dependencies-meta-text": f?.metaText
722
+ });
723
+ }, $e = "Private dependencies", et = "This item depends on personal private resources (listed below). After publishing, other users may not be able to use it fully, or may run into problems.", tt = (e) => `${e} ${e === 1 ? "dependency is" : "dependencies are"} not public yet`, nt = ({ dependencies: e, labels: t = {}, headingClassName: r = "dial-body-semi-text", nameClassName: i, metaClassName: a = "dial-small-text", captionClassName: o = "dial-tiny-text", typeClassName: s = "dial-tiny-lead-semi-text", styles: c = {} }) => {
724
+ let l = n(), { title: u = $e, description: d = et, appearance: f = Y.Warning, typeLabels: p = {}, getAnnouncement: m = tt } = t, h = f === Y.Published, g = i ?? (h ? "dial-body-semi-text" : "dial-small-semi-text"), { colors: _ } = c, v = {
725
+ ...B({
726
+ "--pp-dependencies-heading-text": _?.headingText,
727
+ "--pp-dependencies-name-text": _?.nameText,
728
+ "--pp-dependencies-meta-text": _?.metaText,
729
+ "--pp-dependencies-caption-text": _?.captionText,
730
+ "--pp-dependencies-type-text": _?.typeText,
731
+ "--pp-dependencies-divider": _?.divider
721
732
  }),
722
- ...o.cssVars
723
- }, m = e.length;
724
- return /* @__PURE__ */ W(oe, { children: [/* @__PURE__ */ U(w, {
733
+ ...c.cssVars
734
+ }, y = e.length;
735
+ return /* @__PURE__ */ U(se, { children: [/* @__PURE__ */ H(w, {
725
736
  visuallyHidden: !0,
726
737
  as: T.Span,
727
- children: m > 0 ? d(m) : ""
728
- }), m > 0 && /* @__PURE__ */ W("section", {
729
- "aria-labelledby": s,
730
- className: H("flex flex-col gap-3", We.dependencies),
731
- style: p,
738
+ children: y > 0 ? m(y) : ""
739
+ }), y > 0 && /* @__PURE__ */ U("section", {
740
+ "aria-labelledby": l,
741
+ className: V("flex flex-col", h ? "gap-2" : "gap-3", Ge.dependencies),
742
+ style: v,
732
743
  children: [
733
- /* @__PURE__ */ U("h2", {
734
- id: s,
735
- className: H(r, Ge.heading),
736
- children: c
744
+ /* @__PURE__ */ H("h2", {
745
+ id: l,
746
+ className: V(r, Ke.heading),
747
+ children: u
737
748
  }),
738
- /* @__PURE__ */ U(O, {
749
+ h ? /* @__PURE__ */ H("p", {
750
+ className: V(o, Ke.caption),
751
+ children: d
752
+ }) : /* @__PURE__ */ H(O, {
739
753
  type: k.SectionMessage,
740
754
  variant: A.Warning,
741
- message: l,
755
+ message: d,
742
756
  role: "note"
743
757
  }),
744
- /* @__PURE__ */ U("ul", {
745
- className: We.dependenciesList,
746
- children: e.map((e) => {
747
- let t = u[e.type] ?? Ke[e.type];
748
- return /* @__PURE__ */ W("li", {
749
- className: H("flex items-center gap-3 py-2", We.dependenciesItem),
750
- children: [Ye(e), /* @__PURE__ */ W("div", {
758
+ /* @__PURE__ */ H("ul", {
759
+ className: Ge.dependenciesList,
760
+ children: e.map(h ? (e) => {
761
+ let t = p[e.type] ?? qe[e.type];
762
+ return /* @__PURE__ */ U("li", {
763
+ className: V("flex items-center gap-3 py-3", Ke.row, Ge.dependenciesItem),
764
+ children: [Qe(e, !0), /* @__PURE__ */ U("div", {
751
765
  className: "flex min-w-0 flex-col",
752
- children: [/* @__PURE__ */ W("span", {
753
- className: H("truncate", i, Ge.name),
754
- children: [e.name, e.version != null && /* @__PURE__ */ U("span", {
755
- className: H("ms-2", a, Ge.meta),
756
- children: e.version
766
+ children: [/* @__PURE__ */ U("span", {
767
+ className: V("truncate", s, Ke.type),
768
+ children: [t, e.location && /* @__PURE__ */ H("span", {
769
+ className: V("ms-1 normal-case", a, Ke.meta),
770
+ children: `· ${e.location}`
757
771
  })]
758
772
  }), /* @__PURE__ */ U("span", {
759
- className: H("truncate", a, Ge.meta),
773
+ className: V("truncate", g, Ke.name),
774
+ children: [e.name, e.version != null && /* @__PURE__ */ H("span", {
775
+ className: V("ms-2", a, Ke.meta),
776
+ children: e.version
777
+ })]
778
+ })]
779
+ })]
780
+ }, e.id);
781
+ } : (e) => {
782
+ let t = p[e.type] ?? qe[e.type];
783
+ return /* @__PURE__ */ U("li", {
784
+ className: V("flex items-center gap-3 py-2", Ge.dependenciesItem),
785
+ children: [Qe(e, !1), /* @__PURE__ */ U("div", {
786
+ className: "flex min-w-0 flex-col",
787
+ children: [/* @__PURE__ */ U("span", {
788
+ className: V("truncate", g, Ke.name),
789
+ children: [e.name, e.version != null && /* @__PURE__ */ H("span", {
790
+ className: V("ms-2", a, Ke.meta),
791
+ children: e.version
792
+ })]
793
+ }), /* @__PURE__ */ H("span", {
794
+ className: V("truncate", a, Ke.meta),
760
795
  children: e.location ? `${t} · ${e.location}` : t
761
796
  })]
762
797
  })]
@@ -765,15 +800,15 @@ var K = /* @__PURE__ */ function(e) {
765
800
  })
766
801
  ]
767
802
  })] });
768
- }, et = {
803
+ }, rt = {
769
804
  currentBadge: "_currentBadge_d0adf_1",
770
805
  sharedCredentialsBadge: "_sharedCredentialsBadge_d0adf_7",
771
806
  version: "_version_d0adf_13",
772
807
  date: "_date_d0adf_17",
773
808
  emptyState: "_emptyState_d0adf_21",
774
809
  stripedRow: "_stripedRow_d0adf_25"
775
- }, tt = ({ entries: e, currentVersion: t, isLoading: n = !1, hasError: r = !1, versionPrefix: i = "Version", currentBadgeLabel: a = "Current", sharedCredentialsLabel: o = "Shared credentials", emptyStateLabel: s = "Not published to this folder yet — this will be the first version here.", loadingLabel: c = "Loading history…", errorLabel: l = "Failed to load publish history.", versionClassName: u = "dial-small-text", dateClassName: d = "dial-small-text", emptyStateClassName: f = "dial-small-text", colors: p }) => {
776
- let m = V({
810
+ }, it = ({ entries: e, currentVersion: t, isLoading: n = !1, hasError: r = !1, versionPrefix: i = "Version", currentBadgeLabel: a = "Current", sharedCredentialsLabel: o = "Shared credentials", emptyStateLabel: s = "Not published to this folder yet — this will be the first version here.", loadingLabel: c = "Loading history…", errorLabel: l = "Failed to load publish history.", versionClassName: u = "dial-small-text", dateClassName: d = "dial-small-text", emptyStateClassName: f = "dial-small-text", colors: p }) => {
811
+ let m = B({
777
812
  "--phl-badge-border": p?.currentBadgeBorder,
778
813
  "--phl-badge-bg": p?.currentBadgeBackground,
779
814
  "--phl-badge-text": p?.currentBadgeText,
@@ -784,151 +819,151 @@ var K = /* @__PURE__ */ function(e) {
784
819
  "--phl-date-text": p?.dateText,
785
820
  "--phl-empty-text": p?.emptyStateText,
786
821
  "--phl-striped-bg": p?.stripedBackground
787
- }), h = H(f, et.emptyState);
822
+ }), h = V(f, rt.emptyState);
788
823
  if (n || r || e.length === 0) {
789
824
  let e = s;
790
- return n ? e = c : r && (e = l), /* @__PURE__ */ U(w, {
825
+ return n ? e = c : r && (e = l), /* @__PURE__ */ H(w, {
791
826
  as: T.P,
792
827
  style: m,
793
828
  className: h,
794
829
  children: e
795
830
  });
796
831
  }
797
- return /* @__PURE__ */ U("ul", {
832
+ return /* @__PURE__ */ H("ul", {
798
833
  style: m,
799
- children: e.map((e, n) => /* @__PURE__ */ W("li", {
800
- className: H("flex items-center justify-between gap-2 rounded-lg px-3 py-[11px]", n % 2 == 0 && et.stripedRow),
801
- children: [/* @__PURE__ */ W("span", {
834
+ children: e.map((e, n) => /* @__PURE__ */ U("li", {
835
+ className: V("flex items-center justify-between gap-2 rounded-lg px-3 py-[11px]", n % 2 == 0 && rt.stripedRow),
836
+ children: [/* @__PURE__ */ U("span", {
802
837
  className: "flex min-w-0 items-center gap-2",
803
838
  style: m,
804
839
  children: [
805
- /* @__PURE__ */ W("span", {
806
- className: H(u, et.version),
840
+ /* @__PURE__ */ U("span", {
841
+ className: V(u, rt.version),
807
842
  children: [
808
843
  i,
809
844
  " ",
810
845
  e.version
811
846
  ]
812
847
  }),
813
- e.version === t && /* @__PURE__ */ U(L, {
848
+ e.version === t && /* @__PURE__ */ H(re, {
814
849
  label: a,
815
- className: H("shrink-0 whitespace-nowrap", et.currentBadge)
850
+ className: V("shrink-0 whitespace-nowrap", rt.currentBadge)
816
851
  }),
817
- e.publishCredentials === !0 && /* @__PURE__ */ U(L, {
852
+ e.publishCredentials === !0 && /* @__PURE__ */ H(re, {
818
853
  label: o,
819
- className: H("shrink-0 whitespace-nowrap", et.sharedCredentialsBadge)
854
+ className: V("shrink-0 whitespace-nowrap", rt.sharedCredentialsBadge)
820
855
  })
821
856
  ]
822
- }), /* @__PURE__ */ U("span", {
823
- className: H(d, et.date),
824
- children: X(e.publishedAt)
857
+ }), /* @__PURE__ */ H("span", {
858
+ className: V(d, rt.date),
859
+ children: pe(e.publishedAt)
825
860
  })]
826
861
  }, `${e.version}-${n}`))
827
862
  });
828
- }, nt = ":", rt = (e) => `${nt}${e}`, it = (e) => e?.startsWith(nt) ? e.slice(1) : void 0, at = (e) => [rt(e.rootKey), ...e.path], ot = (e) => {
829
- let [t, ...n] = e, r = it(t);
863
+ }, at = ":", ot = (e) => `${at}${e}`, st = (e) => e?.startsWith(at) ? e.slice(1) : void 0, ct = (e) => [ot(e.rootKey), ...e.path], lt = (e) => {
864
+ let [t, ...n] = e, r = st(t);
830
865
  return r == null ? void 0 : {
831
866
  rootKey: r,
832
867
  path: n
833
868
  };
834
- }, st = (e, t) => e.map((e) => ({
869
+ }, ut = (e, t) => e.map((e) => ({
835
870
  ...e,
836
871
  path: [t, ...e.path],
837
- children: e.children ? st(e.children, t) : void 0
838
- })), ct = (e) => e.map((e) => {
839
- let t = rt(e.key);
872
+ children: e.children ? ut(e.children, t) : void 0
873
+ })), dt = (e) => e.map((e) => {
874
+ let t = ot(e.key);
840
875
  return {
841
876
  path: [t],
842
877
  name: e.label,
843
- children: st(ve(e.items), t)
878
+ children: ut(ye(e.items), t)
844
879
  };
845
- }), lt = (e) => e.map((e) => rt(e.key)), ut = (e, t) => {
880
+ }), ft = (e) => e.map((e) => ot(e.key)), pt = (e, t) => {
846
881
  let n = /* @__PURE__ */ new Set();
847
882
  for (let r of e) {
848
- let e = rt(r.key);
883
+ let e = ot(r.key);
849
884
  for (let i of t(r) ?? []) n.add(i ? `${e}/${i}` : e);
850
885
  }
851
886
  return n;
852
- }, dt = (e, t) => {
887
+ }, mt = (e, t) => {
853
888
  let n = new Map(e.map((e) => [e.key, /* @__PURE__ */ new Set()]));
854
889
  for (let e of t) {
855
- let [t, ...r] = e.split("/"), i = it(t);
890
+ let [t, ...r] = e.split("/"), i = st(t);
856
891
  i != null && r.length !== 0 && n.get(i)?.add($(r));
857
892
  }
858
893
  return n;
859
- }, ft = {
894
+ }, ht = {
860
895
  divider: "_divider_1gs31_1",
861
896
  tree: "_tree_1gs31_17"
862
- }, pt = "data-cancel-creating-folder", mt = "", ht = [], gt = ({ items: e = ht, selectedPath: n, onSelectedPathChange: o, onCreateFolder: s, roots: c, destination: l, onDestinationChange: u, onCreateDestinationFolder: p, searchQuery: m, getDisabledReason: h, disabled: g = !1, createFolderLabel: _ = "Create new folder", cancelCreatingFolderLabel: v = "Cancel", addSiblingFolderLabel: y = "Add sibling", addChildFolderLabel: x = "Add child", newFolderDefaultName: S = "New folder", noResultsLabel: ee = "No folders match \"{query}\".", emptyFolderNameError: C = "Folder name cannot be empty.", invalidFolderNameError: w = "Folder name contains invalid characters.", duplicateFolderNameError: T = "A folder with this name already exists.", sameAsParentFolderNameError: E = "A folder cannot have the same name as its parent folder.", rootLabel: D = "Organization", expandedPaths: O, onExpandedPathsChange: k, loadingPaths: A, styles: j = {} }) => {
897
+ }, gt = "data-cancel-creating-folder", _t = "", vt = [], yt = ({ items: e = vt, selectedPath: n, onSelectedPathChange: o, onCreateFolder: s, roots: c, destination: l, onDestinationChange: u, onCreateDestinationFolder: p, searchQuery: m, getDisabledReason: h, disabled: g = !1, createFolderLabel: _ = "Create new folder", cancelCreatingFolderLabel: v = "Cancel", addSiblingFolderLabel: y = "Add sibling", addChildFolderLabel: x = "Add child", newFolderDefaultName: S = "New folder", noResultsLabel: ee = "No folders match \"{query}\".", emptyFolderNameError: C = "Folder name cannot be empty.", invalidFolderNameError: w = "Folder name contains invalid characters.", duplicateFolderNameError: T = "A folder with this name already exists.", sameAsParentFolderNameError: E = "A folder cannot have the same name as its parent folder.", rootLabel: D = "Organization", expandedPaths: O, onExpandedPathsChange: k, loadingPaths: A, styles: j = {} }) => {
863
898
  let te = {
864
- ...V({ "--pft-divider": j.colors?.divider }),
899
+ ...B({ "--pft-divider": j.colors?.divider }),
865
900
  ...j.cssVars
866
- }, M = c != null, N = r(() => c ? ct(c) : e, [c, e]), ne = i(N);
901
+ }, M = c != null, N = r(() => c ? dt(c) : e, [c, e]), ne = i(N);
867
902
  t(() => {
868
903
  ne.current = N;
869
904
  }, [N]);
870
- let P = r(() => c ? lt(c) : [mt], [c]), F = n;
871
- M && (F = l ? at(l) : void 0);
905
+ let P = r(() => c ? ft(c) : [_t], [c]), F = n;
906
+ M && (F = l ? ct(l) : void 0);
872
907
  let I = (e) => {
873
- M ? u?.(e ? ot(e) : void 0) : o?.(e);
874
- }, [L, re] = a(() => new Set(F?.map((e, t) => $(F.slice(0, t + 1))) ?? [])), R = r(() => c ? /* @__PURE__ */ new Set([...L, ...ut(c, (e) => e.expandedPaths)]) : void 0, [c, L]) ?? O ?? L, z = r(() => c ? ut(c, (e) => e.loadingPaths) : A, [c, A]), ie = (e) => {
908
+ M ? u?.(e ? lt(e) : void 0) : o?.(e);
909
+ }, [re, ie] = a(() => new Set(F?.map((e, t) => $(F.slice(0, t + 1))) ?? [])), L = r(() => c ? /* @__PURE__ */ new Set([...re, ...pt(c, (e) => e.expandedPaths)]) : void 0, [c, re]) ?? O ?? re, R = r(() => c ? pt(c, (e) => e.loadingPaths) : A, [c, A]), ae = (e) => {
875
910
  let t = new Set(e);
876
911
  for (let e of P) t.delete(e);
877
912
  if (c) {
878
- re(t);
879
- let e = dt(c, t);
913
+ ie(t);
914
+ let e = mt(c, t);
880
915
  for (let t of c) t.onExpandedPathsChange?.(e.get(t.key) ?? /* @__PURE__ */ new Set());
881
- } else k ? k(t) : re(t);
882
- }, [B, ae] = a(null), [oe, se] = a(S), G = i(null), K = i(!1);
916
+ } else k ? k(t) : ie(t);
917
+ }, [z, oe] = a(null), [se, W] = a(S), G = i(null), K = i(!1);
883
918
  t(() => {
884
919
  let e = (e) => {
885
- e.target instanceof Element && e.target.closest(`[${pt}]`) && (K.current = !0);
920
+ e.target instanceof Element && e.target.closest(`[${gt}]`) && (K.current = !0);
886
921
  };
887
922
  return document.addEventListener("pointerdown", e, !0), () => document.removeEventListener("pointerdown", e, !0);
888
923
  }, []);
889
- let q = m.trim(), J = B != null, Y = r(() => ge(N, m), [N, m]), fe = q.length > 0 && Y.length === 0, X = !J && q.length > 0, pe = r(() => {
924
+ let q = m.trim(), J = z != null, Y = r(() => _e(N, m), [N, m]), fe = q.length > 0 && Y.length === 0, X = !J && q.length > 0, pe = r(() => {
890
925
  let e = X ? Y : N;
891
- return M ? e : ve(e);
926
+ return M ? e : ye(e);
892
927
  }, [
893
928
  X,
894
929
  Y,
895
930
  N,
896
931
  M
897
- ]), Z = r(() => /* @__PURE__ */ new Set([...P, ...xe(pe)]), [P, pe]), me = r(() => /* @__PURE__ */ new Set([...P, ...X ? Z : R]), [
932
+ ]), Z = r(() => /* @__PURE__ */ new Set([...P, ...Se(pe)]), [P, pe]), me = r(() => /* @__PURE__ */ new Set([...P, ...X ? Z : L]), [
898
933
  P,
899
934
  X,
900
935
  Z,
901
- R
902
- ]), Q = r(() => we(pe), [pe]), he = r(() => X && Q.length === 0 ? [] : M ? Q : [{
903
- path: mt,
936
+ L
937
+ ]), he = r(() => Te(pe), [pe]), Q = r(() => X && he.length === 0 ? [] : M ? he : [{
938
+ path: _t,
904
939
  name: D,
905
- folderId: mt,
940
+ folderId: _t,
906
941
  nodeType: ue.FOLDER,
907
- items: Q
942
+ items: he
908
943
  }], [
909
- Q,
944
+ he,
910
945
  D,
911
946
  X,
912
947
  M
913
- ]), _e = B ? $(B) : null, ye = {
948
+ ]), ge = z ? $(z) : null, ve = {
914
949
  empty: C,
915
950
  invalid: w,
916
951
  duplicate: T,
917
952
  sameAsParent: E
918
- }, be = (e) => P.includes($(e)) ? void 0 : e.at(-1), Ce = (e) => c ? ot(e) : {
919
- rootKey: mt,
953
+ }, be = (e) => P.includes($(e)) ? void 0 : e.at(-1), xe = (e) => c ? lt(e) : {
954
+ rootKey: _t,
920
955
  path: e
921
- }, Te = (e) => {
956
+ }, we = (e) => {
922
957
  if (!h) return;
923
- let t = Ce(Se(e.path));
958
+ let t = xe(Ce(e.path));
924
959
  return t && h(t) || void 0;
925
- }, ke = (e) => {
926
- let t = Ce(e);
960
+ }, Ee = (e) => {
961
+ let t = xe(e);
927
962
  return t != null && !!h?.(t);
928
963
  }, Ae = (e) => {
929
- if (ke(e)) return !1;
964
+ if (Ee(e)) return !1;
930
965
  if (!c) return !0;
931
- let t = ot(e), n = c.find((e) => e.key === t?.rootKey);
966
+ let t = lt(e), n = c.find((e) => e.key === t?.rootKey);
932
967
  return n != null && n.canCreateFolders !== !1;
933
968
  }, je = (() => {
934
969
  if (!c) {
@@ -937,28 +972,28 @@ var K = /* @__PURE__ */ function(e) {
937
972
  }
938
973
  if (F && Ae(F)) return F;
939
974
  let e = c.find((e) => e.canCreateFolders !== !1);
940
- return e ? at({
975
+ return e ? ct({
941
976
  rootKey: e.key,
942
977
  path: []
943
978
  }) : void 0;
944
979
  })(), Me = (e) => {
945
- let t = fe && Ee(q, [], ye) == null, n = be(e);
946
- return De(t ? q : S, [...Oe(N, e), ...n ? [n] : []]);
980
+ let t = fe && De(q, [], ve) == null, n = be(e);
981
+ return Oe(t ? q : S, [...ke(N, e), ...n ? [n] : []]);
947
982
  }, [Ne, Pe] = a(null);
948
- Ne != null && !z?.has($(Ne)) && (Pe(null), ae(Ne), se(Me(Ne)));
983
+ Ne != null && !R?.has($(Ne)) && (Pe(null), oe(Ne), W(Me(Ne)));
949
984
  let Fe = (e) => {
950
- ae(null), Pe(e), G.current = null, K.current = !1;
985
+ oe(null), Pe(e), G.current = null, K.current = !1;
951
986
  let t = $(e);
952
- t && ie(new Set(R).add(t));
987
+ t && ae(new Set(L).add(t));
953
988
  }, Ie = () => {
954
989
  je && Fe(je);
955
990
  }, Le = (e) => {
956
- let t = Se(e.path);
991
+ let t = Ce(e.path);
957
992
  if (!Ae(t)) return [];
958
993
  let n = [{
959
994
  key: "add-child",
960
995
  label: x,
961
- icon: /* @__PURE__ */ U(ce, {
996
+ icon: /* @__PURE__ */ H(ce, {
962
997
  size: d.SM,
963
998
  "aria-hidden": !0,
964
999
  stroke: f
@@ -968,7 +1003,7 @@ var K = /* @__PURE__ */ function(e) {
968
1003
  return P.includes(e.path) || n.push({
969
1004
  key: "add-sibling",
970
1005
  label: y,
971
- icon: /* @__PURE__ */ U(le, {
1006
+ icon: /* @__PURE__ */ H(le, {
972
1007
  size: d.SM,
973
1008
  "aria-hidden": !0,
974
1009
  stroke: f
@@ -976,40 +1011,40 @@ var K = /* @__PURE__ */ function(e) {
976
1011
  onClick: () => Fe(t.slice(0, -1))
977
1012
  }), n;
978
1013
  }, Re = (e) => {
979
- if (!B) return null;
980
- let t = Ee(e, Oe(ne.current, B), ye, be(B));
1014
+ if (!z) return null;
1015
+ let t = De(e, ke(ne.current, z), ve, be(z));
981
1016
  return G.current = t, t;
982
1017
  }, ze = (e) => {
983
- if (!B || K.current) return;
1018
+ if (!z || K.current) return;
984
1019
  let t = e.trim(), n = G.current;
985
1020
  if (!(Re(e) ?? n)) {
986
- let e = c ? ot(B) : void 0;
987
- e ? p?.(e.rootKey, e.path, t) : s?.(B, t), I([...B, t]);
1021
+ let e = c ? lt(z) : void 0;
1022
+ e ? p?.(e.rootKey, e.path, t) : s?.(z, t), I([...z, t]);
988
1023
  }
989
- ae(null);
990
- }, Be = () => ae(null);
991
- return /* @__PURE__ */ W("div", {
1024
+ oe(null);
1025
+ }, Be = () => oe(null);
1026
+ return /* @__PURE__ */ U("div", {
992
1027
  style: te,
993
- className: H(g && "pointer-events-none opacity-60", j.className),
1028
+ className: V(g && "pointer-events-none opacity-60", j.className),
994
1029
  children: [
995
- /* @__PURE__ */ U("div", {
996
- className: H("w-full max-w-full min-w-0", ft.tree),
997
- children: /* @__PURE__ */ U(de, {
998
- items: he,
1030
+ /* @__PURE__ */ H("div", {
1031
+ className: V("w-full max-w-full min-w-0", ht.tree),
1032
+ children: /* @__PURE__ */ H(de, {
1033
+ items: Q,
999
1034
  showFiles: !1,
1000
1035
  selectedPath: F == null ? void 0 : $(F),
1001
1036
  expandedPaths: me,
1002
- onExpandedPathsChange: ie,
1003
- loadingPaths: z,
1037
+ onExpandedPathsChange: ae,
1038
+ loadingPaths: R,
1004
1039
  onItemClick: (e) => {
1005
- if (g || Te(e)) return;
1040
+ if (g || we(e)) return;
1006
1041
  let t = F != null && $(F) === e.path;
1007
- I(t ? void 0 : Se(e.path));
1042
+ I(t ? void 0 : Ce(e.path));
1008
1043
  },
1009
- getDisabledTooltip: h ? Te : void 0,
1044
+ getDisabledTooltip: h ? we : void 0,
1010
1045
  getContextMenuItems: Le,
1011
- createdFolderPath: _e,
1012
- newFolderDefaultName: oe,
1046
+ createdFolderPath: ge,
1047
+ newFolderDefaultName: se,
1013
1048
  onCreateFolderSave: ze,
1014
1049
  onCreateFolderCancel: Be,
1015
1050
  onRenameValidate: (e) => Re(e),
@@ -1017,37 +1052,37 @@ var K = /* @__PURE__ */ function(e) {
1017
1052
  emptyStateTitle: X ? ee.replace("{query}", q) : void 0
1018
1053
  })
1019
1054
  }),
1020
- /* @__PURE__ */ U("div", {
1021
- className: H("my-2 h-px", ft.divider),
1055
+ /* @__PURE__ */ H("div", {
1056
+ className: V("my-2 h-px", ht.divider),
1022
1057
  "aria-hidden": !0
1023
1058
  }),
1024
- /* @__PURE__ */ W("div", {
1059
+ /* @__PURE__ */ U("div", {
1025
1060
  className: "mb-4 flex flex-wrap items-center gap-2",
1026
- children: [/* @__PURE__ */ U(b, {
1061
+ children: [/* @__PURE__ */ H(b, {
1027
1062
  onClick: Ie,
1028
1063
  label: _,
1029
- iconBefore: /* @__PURE__ */ U(le, {
1064
+ iconBefore: /* @__PURE__ */ H(le, {
1030
1065
  size: d.SM,
1031
1066
  "aria-hidden": !0,
1032
1067
  stroke: f
1033
1068
  }),
1034
1069
  disabled: g || J || !je
1035
- }), J && /* @__PURE__ */ U(b, {
1070
+ }), J && /* @__PURE__ */ H(b, {
1036
1071
  label: v,
1037
1072
  onClick: Be,
1038
1073
  disabled: g,
1039
- [pt]: ""
1074
+ [gt]: ""
1040
1075
  })]
1041
1076
  })
1042
1077
  ]
1043
1078
  });
1044
- }, _t = {
1079
+ }, bt = {
1045
1080
  summaryTitle: "_summaryTitle_zj3gd_1",
1046
1081
  sectionHeading: "_sectionHeading_zj3gd_5",
1047
1082
  destination: "_destination_zj3gd_9"
1048
- }, vt = 200, yt = [], bt = [], xt = ({ view: e = Q.Main, onChangeFolderClick: o, resource: s, renderSummary: c, dependencies: u, versionHistory: p, folderItems: m, selectedFolderPath: g, pendingFolderPath: _, onPendingFolderPathChange: v, onCreateFolder: x, getDisabledReason: S, expandedPaths: C, onExpandedPathsChange: w, loadingPaths: T, hasExistingPublicationInFolder: E, hasWriteAccess: D, isSubmitting: j, hasSubmitError: te = !1, isTargetTaken: N = !1, isTargetChecking: ne = !1, allowReplace: P = !0, author: F = "", onAuthorChange: I, publishCredentials: L = !1, onPublishCredentialsChange: re, rules: R = yt, onRulesChange: z, ruleSourceOptions: B = bt, isRulesLoading: ae = !1, hasRulesLoadError: oe = !1, labels: ce = {}, summaryTitleClassName: le = "dial-body-semi-text", headingClassName: G = "dial-body-semi-text", destinationClassName: ue = "dial-small-semi-text", calloutFolderNameClassName: de = "dial-small-paragraph-semi-text", styles: K = {} }) => {
1049
- let { colors: J, folderTree: fe, accessRules: X, dependencies: pe } = K, Z = {
1050
- ...V({
1083
+ }, xt = 200, St = [], Ct = [], wt = ({ view: e = Q.Main, onChangeFolderClick: o, resource: s, renderSummary: c, dependencies: u, versionHistory: p, folderItems: m, selectedFolderPath: g, pendingFolderPath: _, onPendingFolderPathChange: v, onCreateFolder: x, getDisabledReason: S, expandedPaths: C, onExpandedPathsChange: w, loadingPaths: T, hasExistingPublicationInFolder: E, hasWriteAccess: D, isSubmitting: j, hasSubmitError: te = !1, isTargetTaken: N = !1, isTargetChecking: ne = !1, allowReplace: P = !0, author: F = "", onAuthorChange: I, publishCredentials: re = !1, onPublishCredentialsChange: ie, rules: L = St, onRulesChange: R, ruleSourceOptions: z = Ct, isRulesLoading: oe = !1, hasRulesLoadError: se = !1, labels: ce = {}, summaryTitleClassName: le = "dial-body-semi-text", headingClassName: G = "dial-body-semi-text", destinationClassName: ue = "dial-small-semi-text", calloutFolderNameClassName: de = "dial-small-paragraph-semi-text", styles: K = {} }) => {
1084
+ let { colors: J, folderTree: Y, accessRules: X, dependencies: pe } = K, Z = {
1085
+ ...B({
1051
1086
  "--pp-summary-title-text": J?.summaryTitleText,
1052
1087
  "--pp-heading-text": J?.headingText,
1053
1088
  "--pp-destination-text": J?.destinationText
@@ -1056,14 +1091,14 @@ var K = /* @__PURE__ */ function(e) {
1056
1091
  }, me = {
1057
1092
  border: J?.summaryBorder,
1058
1093
  background: J?.summaryBackground
1059
- }, { folderLabel: he = "Publish to folder", destinationAriaLabel: ge = "Destination folder", noFolderSelectedLabel: _e = "No folder selected", changeFolderLabel: ve = "Change", chooseFolderLabel: ye = "Choose", replaceWarning: be = "Version {version} is already published in {folder}. Publishing will replace it.", targetTakenLabel: xe = "A resource with this name already exists in {folder}. Rename it or choose another folder.", targetTakenVersionedLabel: $ = "Version {version} of a resource with this name already exists in {folder}. Rename it, change its version or choose another folder.", noAccessError: Se = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: Ce = "Publishing failed. Please try again.", adminApprovalTitle: we = "Admin approval required", adminApprovalMessage: Te = "We’ll send a request to your organization’s admin. If approved, it will appear in the folder.", folderEmptyStateLabel: Ee, addSiblingFolderLabel: De, addChildFolderLabel: Oe, cancelCreatingFolderLabel: ke, createFolderEmptyNameError: Ae, createFolderInvalidNameError: je, createFolderDuplicateNameError: Me, createFolderSameAsParentNameError: Ne, rootFolderLabel: Pe = "Organization", accessRulesLabels: Fe, dependenciesLabels: Ie, searchPlaceholder: Le, clearSearchAriaLabel: ze, authorLabel: Be = "Author", authorPlaceholder: Ve = "Author name", authorHint: He = "Shown as the publication’s author. Defaults to you — replace it to credit a team instead.", credentialsLabel: Ge = "Publish with my credentials", credentialsHint: Ke = "Members will use this without signing in themselves. Your credential itself is never shown to them." } = ce, [qe, Je] = a(""), Ye = n(), Xe = i(null), Ze = i(null), Qe = (e) => {
1094
+ }, { folderLabel: he = "Publish to folder", destinationAriaLabel: ge = "Destination folder", noFolderSelectedLabel: _e = "No folder selected", changeFolderLabel: ve = "Change", chooseFolderLabel: ye = "Choose", replaceWarning: be = "Version {version} is already published in {folder}. Publishing will replace it.", targetTakenLabel: xe = "A resource with this name already exists in {folder}. Rename it or choose another folder.", targetTakenVersionedLabel: Se = "Version {version} of a resource with this name already exists in {folder}. Rename it, change its version or choose another folder.", noAccessError: $ = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: Ce = "Publishing failed. Please try again.", adminApprovalTitle: we = "Admin approval required", adminApprovalMessage: Te = "We’ll send a request to your organization’s admin. If approved, it will appear in the folder.", folderEmptyStateLabel: Ee, addSiblingFolderLabel: De, addChildFolderLabel: Oe, cancelCreatingFolderLabel: ke, createFolderEmptyNameError: Ae, createFolderInvalidNameError: je, createFolderDuplicateNameError: Me, createFolderSameAsParentNameError: Ne, rootFolderLabel: Pe = "Organization", accessRulesLabels: Fe, dependenciesLabels: Ie, searchPlaceholder: Le, clearSearchAriaLabel: Re, authorLabel: Be = "Author", authorPlaceholder: Ve = "Author name", authorHint: He = "Shown as the publication’s author. Defaults to you — replace it to credit a team instead.", credentialsLabel: Ue = "Publish with my credentials", credentialsHint: Ke = "Members will use this without signing in themselves. Your credential itself is never shown to them." } = ce, [qe, Je] = a(""), Ye = n(), Xe = i(null), Ze = i(null), Qe = (e) => {
1060
1095
  Je(e ?? "");
1061
- }, et = i(e);
1096
+ }, $e = i(e);
1062
1097
  t(() => {
1063
- et.current !== e && (et.current = e, e === Q.ChangeFolder ? Ze.current?.focus({ preventScroll: !0 }) : Xe.current?.focus({ preventScroll: !0 }));
1098
+ $e.current !== e && ($e.current = e, e === Q.ChangeFolder ? Ze.current?.focus({ preventScroll: !0 }) : Xe.current?.focus({ preventScroll: !0 }));
1064
1099
  }, [e]);
1065
- let tt = g != null, nt = r(() => Y({
1066
- hasSelectedFolder: tt,
1100
+ let et = g != null, tt = r(() => fe({
1101
+ hasSelectedFolder: et,
1067
1102
  hasExistingPublicationInFolder: E,
1068
1103
  hasWriteAccess: D,
1069
1104
  isSubmitting: j,
@@ -1072,7 +1107,7 @@ var K = /* @__PURE__ */ function(e) {
1072
1107
  isTargetChecking: ne,
1073
1108
  allowReplace: P
1074
1109
  }), [
1075
- tt,
1110
+ et,
1076
1111
  E,
1077
1112
  D,
1078
1113
  j,
@@ -1080,27 +1115,27 @@ var K = /* @__PURE__ */ function(e) {
1080
1115
  N,
1081
1116
  ne,
1082
1117
  P
1083
- ]), rt = tt ? g[g.length - 1] ?? Pe : "", it = c ? c() : /* @__PURE__ */ U("span", {
1084
- className: H("truncate", le, _t.summaryTitle),
1118
+ ]), rt = et ? g[g.length - 1] ?? Pe : "", it = c ? c() : /* @__PURE__ */ H("span", {
1119
+ className: V("truncate", le, bt.summaryTitle),
1085
1120
  children: s?.title
1086
1121
  });
1087
- if (e === Q.ChangeFolder) return /* @__PURE__ */ W("div", {
1122
+ if (e === Q.ChangeFolder) return /* @__PURE__ */ U("div", {
1088
1123
  ref: Ze,
1089
1124
  tabIndex: -1,
1090
1125
  role: "group",
1091
1126
  "aria-label": he,
1092
- className: H("flex flex-col gap-3 outline-none", We.panel),
1127
+ className: V("flex flex-col gap-3 outline-none", Ge.panel),
1093
1128
  style: Z,
1094
- children: [/* @__PURE__ */ U("div", {
1129
+ children: [/* @__PURE__ */ H("div", {
1095
1130
  role: "search",
1096
- children: /* @__PURE__ */ U(M, {
1131
+ children: /* @__PURE__ */ H(M, {
1097
1132
  value: qe,
1098
1133
  onChange: Qe,
1099
1134
  placeholder: Le,
1100
- clearLabel: ze,
1135
+ clearLabel: Re,
1101
1136
  "aria-label": Le
1102
1137
  })
1103
- }), /* @__PURE__ */ U(gt, {
1138
+ }), /* @__PURE__ */ H(yt, {
1104
1139
  items: m,
1105
1140
  selectedPath: _,
1106
1141
  onSelectedPathChange: v,
@@ -1120,18 +1155,18 @@ var K = /* @__PURE__ */ function(e) {
1120
1155
  duplicateFolderNameError: Me,
1121
1156
  sameAsParentFolderNameError: Ne,
1122
1157
  rootLabel: Pe,
1123
- styles: fe
1158
+ styles: Y
1124
1159
  })]
1125
1160
  });
1126
- let at = H(ue, _t.destination);
1127
- return /* @__PURE__ */ W("div", {
1128
- className: H("flex flex-col gap-5", We.panel),
1161
+ let at = V(ue, bt.destination);
1162
+ return /* @__PURE__ */ U("div", {
1163
+ className: V("flex flex-col gap-5", Ge.panel),
1129
1164
  style: Z,
1130
1165
  children: [
1131
- s?.type == null ? /* @__PURE__ */ U(ie, {
1166
+ s?.type == null ? /* @__PURE__ */ H(ae, {
1132
1167
  colors: me,
1133
1168
  children: it
1134
- }) : /* @__PURE__ */ U(ie, {
1169
+ }) : /* @__PURE__ */ H(ae, {
1135
1170
  item: {
1136
1171
  type: s.type,
1137
1172
  name: s.title,
@@ -1141,29 +1176,29 @@ var K = /* @__PURE__ */ function(e) {
1141
1176
  hasVersionTag: !1,
1142
1177
  colors: me
1143
1178
  }),
1144
- /* @__PURE__ */ W("section", { children: [
1145
- /* @__PURE__ */ U("h2", {
1146
- className: H("mb-2", G, _t.sectionHeading),
1179
+ /* @__PURE__ */ U("section", { children: [
1180
+ /* @__PURE__ */ H("h2", {
1181
+ className: V("mb-2", G, bt.sectionHeading),
1147
1182
  children: he
1148
1183
  }),
1149
- /* @__PURE__ */ W("div", {
1184
+ /* @__PURE__ */ U("div", {
1150
1185
  className: "flex min-w-0 items-center gap-2",
1151
- children: [/* @__PURE__ */ U("div", {
1186
+ children: [/* @__PURE__ */ H("div", {
1152
1187
  role: "group",
1153
1188
  "aria-label": ge,
1154
1189
  className: "min-w-0 flex-1",
1155
- children: tt ? /* @__PURE__ */ U(y, {
1190
+ children: et ? /* @__PURE__ */ H(y, {
1156
1191
  name: [Pe, ...g].join(" / "),
1157
1192
  nameClassName: at
1158
- }) : /* @__PURE__ */ U("span", {
1159
- className: H("block truncate", at),
1193
+ }) : /* @__PURE__ */ H("span", {
1194
+ className: V("block truncate", at),
1160
1195
  children: _e
1161
1196
  })
1162
- }), /* @__PURE__ */ U(b, {
1197
+ }), /* @__PURE__ */ H(b, {
1163
1198
  ref: Xe,
1164
1199
  size: h.Small,
1165
- label: tt ? ve : ye,
1166
- iconBefore: /* @__PURE__ */ U(se, {
1200
+ label: et ? ve : ye,
1201
+ iconBefore: /* @__PURE__ */ H(W, {
1167
1202
  size: d.SM,
1168
1203
  stroke: f,
1169
1204
  "aria-hidden": !0
@@ -1172,24 +1207,24 @@ var K = /* @__PURE__ */ function(e) {
1172
1207
  onClick: o
1173
1208
  })]
1174
1209
  }),
1175
- nt.calloutKind === q.Info && /* @__PURE__ */ U("div", {
1210
+ tt.calloutKind === q.Info && /* @__PURE__ */ H("div", {
1176
1211
  className: "my-4",
1177
- children: /* @__PURE__ */ U(O, {
1212
+ children: /* @__PURE__ */ H(O, {
1178
1213
  type: k.SectionMessage,
1179
1214
  variant: A.Info,
1180
1215
  title: we,
1181
1216
  message: Te
1182
1217
  })
1183
1218
  }),
1184
- nt.calloutKind !== q.None && nt.calloutKind !== q.Info && /* @__PURE__ */ U("div", {
1219
+ tt.calloutKind !== q.None && tt.calloutKind !== q.Info && /* @__PURE__ */ H("div", {
1185
1220
  className: "mt-3",
1186
- children: /* @__PURE__ */ U(O, {
1221
+ children: /* @__PURE__ */ H(O, {
1187
1222
  type: k.SectionMessage,
1188
- variant: St(nt.calloutKind),
1189
- message: wt(nt.calloutKind, {
1223
+ variant: Tt(tt.calloutKind),
1224
+ message: Dt(tt.calloutKind, {
1190
1225
  replaceWarning: be,
1191
- targetTaken: s?.version ? $ : xe,
1192
- noAccessError: Se,
1226
+ targetTaken: s?.version ? Se : xe,
1227
+ noAccessError: $,
1193
1228
  submitError: Ce,
1194
1229
  folderName: rt,
1195
1230
  version: s?.version,
@@ -1197,111 +1232,111 @@ var K = /* @__PURE__ */ function(e) {
1197
1232
  })
1198
1233
  })
1199
1234
  }),
1200
- I != null && /* @__PURE__ */ U("div", {
1235
+ I != null && /* @__PURE__ */ H("div", {
1201
1236
  className: "mt-4",
1202
- children: /* @__PURE__ */ U(ee, {
1237
+ children: /* @__PURE__ */ H(ee, {
1203
1238
  id: Ye,
1204
1239
  labelProps: { label: Be },
1205
1240
  placeholder: Ve,
1206
1241
  caption: He,
1207
1242
  value: F,
1208
1243
  onChange: (e) => I(e ?? ""),
1209
- maxLength: vt,
1244
+ maxLength: xt,
1210
1245
  disabled: j
1211
1246
  })
1212
1247
  }),
1213
- re != null && /* @__PURE__ */ U("div", {
1248
+ ie != null && /* @__PURE__ */ H("div", {
1214
1249
  className: "mt-4",
1215
- children: /* @__PURE__ */ U(l, {
1216
- labelProps: { label: Ge },
1250
+ children: /* @__PURE__ */ H(l, {
1251
+ labelProps: { label: Ue },
1217
1252
  caption: Ke,
1218
- isSelected: L,
1219
- onChange: re,
1253
+ isSelected: re,
1254
+ onChange: ie,
1220
1255
  disabled: j
1221
1256
  })
1222
1257
  }),
1223
- z != null && /* @__PURE__ */ U("div", {
1258
+ R != null && /* @__PURE__ */ H("div", {
1224
1259
  className: "mt-4",
1225
- children: /* @__PURE__ */ U(Re, {
1226
- rules: R,
1227
- onRulesChange: z,
1228
- sourceOptions: B,
1229
- folderName: tt ? rt : void 0,
1260
+ children: /* @__PURE__ */ H(ze, {
1261
+ rules: L,
1262
+ onRulesChange: R,
1263
+ sourceOptions: z,
1264
+ folderName: et ? rt : void 0,
1230
1265
  disabled: j,
1231
- isLoading: ae,
1232
- hasLoadError: oe,
1266
+ isLoading: oe,
1267
+ hasLoadError: se,
1233
1268
  labels: Fe,
1234
1269
  styles: X
1235
1270
  })
1236
1271
  })
1237
1272
  ] }),
1238
- u != null && /* @__PURE__ */ U($e, {
1273
+ u != null && /* @__PURE__ */ H(nt, {
1239
1274
  dependencies: u,
1240
1275
  labels: Ie,
1241
1276
  headingClassName: G,
1242
1277
  styles: pe
1243
1278
  }),
1244
- p != null && /* @__PURE__ */ U(Ue, {
1279
+ p != null && /* @__PURE__ */ H(We, {
1245
1280
  headingClassName: G,
1246
1281
  ...p
1247
1282
  })
1248
1283
  ]
1249
1284
  });
1250
- }, St = (e) => e === q.ReplaceWarning || e === q.TargetTaken ? A.Warning : A.Error, Ct = (e, t, n) => {
1285
+ }, Tt = (e) => e === q.ReplaceWarning || e === q.TargetTaken ? A.Warning : A.Error, Et = (e, t, n) => {
1251
1286
  let [r, i, ...a] = e.split("{folder}");
1252
- return i === void 0 || a.length > 0 ? e : /* @__PURE__ */ W(oe, { children: [
1287
+ return i === void 0 || a.length > 0 ? e : /* @__PURE__ */ U(se, { children: [
1253
1288
  r,
1254
- /* @__PURE__ */ U("strong", {
1289
+ /* @__PURE__ */ H("strong", {
1255
1290
  className: n,
1256
1291
  children: t
1257
1292
  }),
1258
1293
  i
1259
1294
  ] });
1260
- }, wt = (e, t) => e === q.ReplaceWarning ? Ct(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName, t.folderNameClassName) : e === q.TargetTaken ? Ct(t.targetTaken.replace("{version}", t.version ?? ""), t.folderName, t.folderNameClassName) : e === q.NoAccess ? Ct(t.noAccessError, t.folderName, t.folderNameClassName) : t.submitError, Tt = { footer: "_footer_dks1v_1" }, Et = ({ version: e, hasExistingPublicationInFolder: t, allowReplace: n = !0, isSubmitDisabled: r, isSubmitLoading: i, onCancel: a, onSubmit: o, view: s = Q.Main, onSelectFolder: c, isSelectFolderDisabled: l = !1, labels: u = {}, colors: f }) => {
1261
- let p = V({ "--pf-border": f?.border }), { cancelLabel: m = "Cancel", publishDefaultLabel: h = "Publish", updateLabel: g = "Update version {version}", publishingInProgressLabel: _ = "Publishing…", selectFolderLabel: v = "Select" } = u, y = s === Q.ChangeFolder, x = i ? _ : n && t && e != null ? g.replace("{version}", e) : h;
1262
- return /* @__PURE__ */ W("div", {
1295
+ }, Dt = (e, t) => e === q.ReplaceWarning ? Et(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName, t.folderNameClassName) : e === q.TargetTaken ? Et(t.targetTaken.replace("{version}", t.version ?? ""), t.folderName, t.folderNameClassName) : e === q.NoAccess ? Et(t.noAccessError, t.folderName, t.folderNameClassName) : t.submitError, Ot = { footer: "_footer_dks1v_1" }, kt = ({ version: e, hasExistingPublicationInFolder: t, allowReplace: n = !0, isSubmitDisabled: r, isSubmitLoading: i, onCancel: a, onSubmit: o, view: s = Q.Main, onSelectFolder: c, isSelectFolderDisabled: l = !1, labels: u = {}, colors: f }) => {
1296
+ let p = B({ "--pf-border": f?.border }), { cancelLabel: m = "Cancel", publishDefaultLabel: h = "Publish", updateLabel: g = "Update version {version}", publishingInProgressLabel: _ = "Publishing…", selectFolderLabel: v = "Select" } = u, y = s === Q.ChangeFolder, x = i ? _ : n && t && e != null ? g.replace("{version}", e) : h;
1297
+ return /* @__PURE__ */ U("div", {
1263
1298
  style: p,
1264
- className: H("flex items-center justify-end gap-2 border-t px-4 py-4 rtl:flex-row-reverse rtl:justify-start desktop:px-3.5", Tt.footer),
1265
- children: [/* @__PURE__ */ U(b, {
1299
+ className: V("flex items-center justify-end gap-2 border-t px-4 py-4 rtl:flex-row-reverse rtl:justify-start desktop:px-3.5", Ot.footer),
1300
+ children: [/* @__PURE__ */ H(b, {
1266
1301
  label: m,
1267
1302
  className: "mobile:flex-1",
1268
1303
  disabled: i,
1269
1304
  onClick: a
1270
- }), y ? /* @__PURE__ */ U(D, {
1305
+ }), y ? /* @__PURE__ */ H(D, {
1271
1306
  label: v,
1272
1307
  className: "mobile:flex-1",
1273
1308
  disabled: l,
1274
1309
  onClick: c
1275
- }) : /* @__PURE__ */ U(j, {
1310
+ }) : /* @__PURE__ */ H(j, {
1276
1311
  label: x,
1277
1312
  className: "mobile:flex-1",
1278
1313
  disabled: r,
1279
- iconBefore: i ? /* @__PURE__ */ U("span", {
1314
+ iconBefore: i ? /* @__PURE__ */ H("span", {
1280
1315
  "aria-hidden": !0,
1281
- children: /* @__PURE__ */ U(I, { size: d.SM })
1316
+ children: /* @__PURE__ */ H(I, { size: d.SM })
1282
1317
  }) : void 0,
1283
1318
  onClick: o
1284
1319
  })]
1285
1320
  });
1286
- }, Dt = {
1321
+ }, At = {
1287
1322
  backdrop: "_backdrop_16jmd_6",
1288
1323
  panel: "_panel_16jmd_10",
1289
1324
  divider: "_divider_16jmd_15",
1290
1325
  content: "_content_16jmd_19",
1291
1326
  title: "_title_16jmd_24"
1292
- }, Ot = ({ isOpen: e, resource: n, renderSummary: i, dependencies: o, versionHistory: s, folderItems: c, selectedFolderPath: l, onSelectedFolderPathChange: u, onCreateFolder: d, getDisabledReason: f, expandedPaths: p, onExpandedPathsChange: m, loadingPaths: h, hasExistingPublicationInFolder: g, hasWriteAccess: _, isSubmitting: v, hasSubmitError: y = !1, isTargetTaken: b = !1, isTargetChecking: x = !1, allowReplace: S = !0, author: ee, onAuthorChange: C, rules: w, onRulesChange: T, ruleSourceOptions: E, isRulesLoading: D = !1, hasRulesLoadError: O = !1, onClose: k, returnFocusRef: A, onSubmit: j, panelLabels: te, panelStyles: M, panelSummaryTitleClassName: N, panelHeadingClassName: P, panelCalloutFolderNameClassName: F, footerLabels: I, labels: L = {}, titleClassName: re = "dial-body-semi-text", colors: R }) => {
1293
- let z = V({
1294
- "--spp-backdrop-bg": R?.backdropBackground,
1295
- "--spp-panel-bg": R?.panelBackground,
1296
- "--spp-panel-border": R?.panelBorder,
1297
- "--spp-divider-border": R?.dividerBorder,
1298
- "--spp-scrollbar-thumb": R?.scrollbarThumb,
1299
- "--spp-title-text": R?.titleText
1300
- }), [ie, B] = a(null), { title: ae = "Publish", changeFolderTitle: oe = "Change folder", backAriaLabel: se = "Back", ariaLabel: ce = "Publish", closeAriaLabel: le = "Close" } = L, G = he({
1327
+ }, jt = ({ isOpen: e, resource: n, renderSummary: i, dependencies: o, versionHistory: s, folderItems: c, selectedFolderPath: l, onSelectedFolderPathChange: u, onCreateFolder: d, getDisabledReason: f, expandedPaths: p, onExpandedPathsChange: m, loadingPaths: h, hasExistingPublicationInFolder: g, hasWriteAccess: _, isSubmitting: v, hasSubmitError: y = !1, isTargetTaken: b = !1, isTargetChecking: x = !1, allowReplace: S = !0, author: ee, onAuthorChange: C, rules: w, onRulesChange: T, ruleSourceOptions: E, isRulesLoading: D = !1, hasRulesLoadError: O = !1, onClose: k, returnFocusRef: A, onSubmit: j, panelLabels: te, panelStyles: M, panelSummaryTitleClassName: N, panelHeadingClassName: P, panelCalloutFolderNameClassName: F, footerLabels: I, labels: re = {}, titleClassName: ie = "dial-body-semi-text", colors: L }) => {
1328
+ let R = B({
1329
+ "--spp-backdrop-bg": L?.backdropBackground,
1330
+ "--spp-panel-bg": L?.panelBackground,
1331
+ "--spp-panel-border": L?.panelBorder,
1332
+ "--spp-divider-border": L?.dividerBorder,
1333
+ "--spp-scrollbar-thumb": L?.scrollbarThumb,
1334
+ "--spp-title-text": L?.titleText
1335
+ }), [ae, z] = a(null), { title: oe = "Publish", changeFolderTitle: se = "Change folder", backAriaLabel: W = "Back", ariaLabel: ce = "Publish", closeAriaLabel: le = "Close" } = re, G = ge({
1301
1336
  isOpen: e,
1302
1337
  selectedFolderPath: l,
1303
1338
  onSelectedFolderPathChange: u
1304
- }), ue = G.view === Q.ChangeFolder, de = r(() => Y({
1339
+ }), ue = G.view === Q.ChangeFolder, de = r(() => fe({
1305
1340
  hasSelectedFolder: l != null,
1306
1341
  hasExistingPublicationInFolder: g,
1307
1342
  hasWriteAccess: _,
@@ -1321,7 +1356,7 @@ var K = /* @__PURE__ */ function(e) {
1321
1356
  S
1322
1357
  ]);
1323
1358
  return t(() => {
1324
- let t = ie?.closest("[role=\"dialog\"]");
1359
+ let t = ae?.closest("[role=\"dialog\"]");
1325
1360
  if (!e || !t) return;
1326
1361
  let n = () => t.focus({ preventScroll: !0 });
1327
1362
  n();
@@ -1337,33 +1372,33 @@ var K = /* @__PURE__ */ function(e) {
1337
1372
  };
1338
1373
  }, [
1339
1374
  e,
1340
- ie,
1375
+ ae,
1341
1376
  A
1342
- ]), /* @__PURE__ */ W(ne, {
1377
+ ]), /* @__PURE__ */ U(ne, {
1343
1378
  open: e,
1344
1379
  onClose: k,
1345
- header: /* @__PURE__ */ U("span", {
1346
- className: H("block truncate text-center", re, Dt.title),
1347
- children: ue ? oe : ae
1380
+ header: /* @__PURE__ */ H("span", {
1381
+ className: V("block truncate text-center", ie, At.title),
1382
+ children: ue ? se : oe
1348
1383
  }),
1349
1384
  ariaLabel: ce,
1350
1385
  onBack: ue ? G.backToMain : void 0,
1351
- backAriaLabel: se,
1386
+ backAriaLabel: W,
1352
1387
  backDisabled: v,
1353
1388
  closeAriaLabel: le,
1354
1389
  closeDisabled: v,
1355
- style: z,
1356
- overlayStyle: z,
1357
- className: H(Dt.panel, "tablet:w-[540px]! tablet:max-w-[calc(100%-32px)]!"),
1358
- overlayClassName: Dt.backdrop,
1359
- headerClassName: H("px-[22px]", Dt.divider),
1390
+ style: R,
1391
+ overlayStyle: R,
1392
+ className: V(At.panel, "tablet:w-[540px]! tablet:max-w-[calc(100%-32px)]!"),
1393
+ overlayClassName: At.backdrop,
1394
+ headerClassName: V("px-[22px]", At.divider),
1360
1395
  bodyClassName: "flex flex-col overflow-hidden",
1361
- children: [/* @__PURE__ */ U("div", {
1362
- ref: B,
1363
- className: H("min-h-0 flex-1 overflow-y-auto", Dt.content),
1364
- children: /* @__PURE__ */ U("div", {
1396
+ children: [/* @__PURE__ */ H("div", {
1397
+ ref: z,
1398
+ className: V("min-h-0 flex-1 overflow-y-auto", At.content),
1399
+ children: /* @__PURE__ */ H("div", {
1365
1400
  className: "p-[22px]",
1366
- children: /* @__PURE__ */ U(xt, {
1401
+ children: /* @__PURE__ */ H(wt, {
1367
1402
  resource: n,
1368
1403
  renderSummary: i,
1369
1404
  dependencies: o,
@@ -1400,7 +1435,7 @@ var K = /* @__PURE__ */ function(e) {
1400
1435
  calloutFolderNameClassName: F
1401
1436
  })
1402
1437
  })
1403
- }), /* @__PURE__ */ U(Et, {
1438
+ }), /* @__PURE__ */ H(kt, {
1404
1439
  version: n?.version,
1405
1440
  hasExistingPublicationInFolder: g,
1406
1441
  allowReplace: S,
@@ -1414,9 +1449,9 @@ var K = /* @__PURE__ */ function(e) {
1414
1449
  labels: I
1415
1450
  })]
1416
1451
  });
1417
- }, kt = { option: "_option_skygm_1" }, At = (e, t) => `Unpublish "${e}" from "${t}"?`, jt = (e) => `Choose which folder to unpublish "${e}" from.`, Mt = ({ isOpen: e, name: t, folders: n, selectedFolder: r, onSelectedFolderChange: i, isLoading: a = !1, labels: o, optionClassName: s = "dial-small-text", colors: c, onConfirm: l, onClose: d }) => {
1418
- let { title: f = "Unpublish?", confirmLabel: p = "Unpublish", cancelLabel: m = "Cancel", rootFolderLabel: h = "Organization", folderGroupAriaLabel: g = "Published folders", loadingStatusLabel: _ = "Requesting unpublish…", confirmMessage: v = At, selectFolderMessage: y = jt } = o ?? {}, b = n.length > 1;
1419
- return /* @__PURE__ */ U(R, {
1452
+ }, Mt = { option: "_option_skygm_1" }, Nt = (e, t) => `Unpublish "${e}" from "${t}"?`, Pt = (e) => `Choose which folder to unpublish "${e}" from.`, Ft = ({ isOpen: e, name: t, folders: n, selectedFolder: r, onSelectedFolderChange: i, isLoading: a = !1, labels: o, optionClassName: s = "dial-small-text", colors: c, onConfirm: l, onClose: d }) => {
1453
+ let { title: f = "Unpublish?", confirmLabel: p = "Unpublish", cancelLabel: m = "Cancel", rootFolderLabel: h = "Organization", folderGroupAriaLabel: g = "Published folders", loadingStatusLabel: _ = "Requesting unpublish…", confirmMessage: v = Nt, selectFolderMessage: y = Pt } = o ?? {}, b = n.length > 1;
1454
+ return /* @__PURE__ */ H(L, {
1420
1455
  open: e,
1421
1456
  title: f,
1422
1457
  confirmLabel: p,
@@ -1425,38 +1460,38 @@ var K = /* @__PURE__ */ function(e) {
1425
1460
  isLoading: a,
1426
1461
  isConfirmDisabled: b && r == null,
1427
1462
  loadingStatusLabel: _,
1428
- message: /* @__PURE__ */ U("span", {
1463
+ message: /* @__PURE__ */ H("span", {
1429
1464
  className: "wrap-break-word",
1430
- children: b ? y(t) : v(t, Ce(n[0] ?? "", h))
1465
+ children: b ? y(t) : v(t, we(n[0] ?? "", h))
1431
1466
  }),
1432
1467
  onConfirm: l,
1433
1468
  onClose: d,
1434
- children: b && /* @__PURE__ */ U("div", {
1469
+ children: b && /* @__PURE__ */ H("div", {
1435
1470
  className: "mt-3",
1436
- style: V({ "--ucd-option-text": c?.optionText }),
1437
- children: /* @__PURE__ */ U(te, {
1471
+ style: B({ "--ucd-option-text": c?.optionText }),
1472
+ children: /* @__PURE__ */ H(te, {
1438
1473
  ariaLabel: g,
1439
1474
  value: r ?? void 0,
1440
1475
  onChange: i,
1441
1476
  disabled: a,
1442
1477
  items: n.map((e) => ({
1443
1478
  value: e,
1444
- label: Ce(e, h)
1479
+ label: we(e, h)
1445
1480
  })),
1446
- radioClassName: H(s, kt.option)
1481
+ radioClassName: V(s, Mt.option)
1447
1482
  })
1448
1483
  })
1449
1484
  });
1450
- }, Nt = /* @__PURE__ */ function(e) {
1485
+ }, It = /* @__PURE__ */ function(e) {
1451
1486
  return e.Keep = "keep", e.New = "new", e;
1452
- }({}), Pt = /* @__PURE__ */ function(e) {
1487
+ }({}), Lt = /* @__PURE__ */ function(e) {
1453
1488
  return e.Main = "main", e.ChangeFolder = "change-folder", e;
1454
- }({}), Ft = {
1489
+ }({}), Rt = {
1455
1490
  heading: "_heading_vk731_1",
1456
1491
  destination: "_destination_vk731_5"
1457
- }, It = ({ view: e, resource: t, roots: i, destination: o, onCreateFolder: s, getDisabledReason: c, onChangeFolderClick: l, changeFolderButtonRef: u, pendingDestination: p, onPendingDestinationChange: m, version: g, accessRules: v, versionHistory: x, isSubmitting: S = !1, submitError: T, foldersError: D, onRetryFolders: O, panelLabels: k = {}, panelStyles: A = {}, headingClassName: j = "dial-body-semi-text", destinationClassName: N = "dial-small-semi-text" }) => {
1458
- let { saveToFolderHeading: ne = "Save to folder", changeFolderLabel: P = "Change", destinationAriaLabel: F = "Destination folder", versionHeading: I = "Version", keepVersionLabel: L = "Keep version {version}", saveAsNewVersionLabel: re = "Save as new version", newVersionLabel: R = "Version", newVersionPlaceholder: z = "Enter new version", searchPlaceholder: B = "Search folders", clearSearchAriaLabel: ae = "Clear search", folderEmptyStateLabel: oe, createFolderLabel: ce, cancelCreatingFolderLabel: le, addSiblingFolderLabel: G, addChildFolderLabel: ue, createFolderEmptyNameError: de, createFolderInvalidNameError: K, createFolderDuplicateNameError: q, createFolderSameAsParentNameError: J, retryLabel: Y = "Retry" } = k, { colors: fe, folderTree: X } = A, pe = {
1459
- ...V({
1492
+ }, zt = ({ view: e, resource: t, roots: i, destination: o, onCreateFolder: s, getDisabledReason: c, onChangeFolderClick: l, changeFolderButtonRef: u, pendingDestination: p, onPendingDestinationChange: m, version: g, accessRules: v, versionHistory: x, isSubmitting: S = !1, submitError: T, foldersError: D, onRetryFolders: O, panelLabels: k = {}, panelStyles: A = {}, headingClassName: j = "dial-body-semi-text", destinationClassName: N = "dial-small-semi-text" }) => {
1493
+ let { saveToFolderHeading: ne = "Save to folder", changeFolderLabel: P = "Change", destinationAriaLabel: F = "Destination folder", versionHeading: I = "Version", keepVersionLabel: re = "Keep version {version}", saveAsNewVersionLabel: ie = "Save as new version", newVersionLabel: L = "Version", newVersionPlaceholder: R = "Enter new version", searchPlaceholder: z = "Search folders", clearSearchAriaLabel: oe = "Clear search", folderEmptyStateLabel: se, createFolderLabel: ce, cancelCreatingFolderLabel: le, addSiblingFolderLabel: G, addChildFolderLabel: ue, createFolderEmptyNameError: de, createFolderInvalidNameError: K, createFolderDuplicateNameError: q, createFolderSameAsParentNameError: J, retryLabel: Y = "Retry" } = k, { colors: fe, folderTree: X } = A, pe = {
1494
+ ...B({
1460
1495
  "--stf-heading-text": fe?.headingText,
1461
1496
  "--stf-destination-text": fe?.destinationText
1462
1497
  }),
@@ -1464,32 +1499,32 @@ var K = /* @__PURE__ */ function(e) {
1464
1499
  }, Z = {
1465
1500
  border: fe?.summaryBorder,
1466
1501
  background: fe?.summaryBackground
1467
- }, [me, Q] = a(""), he = n(), ge = n(), _e = r(() => [i.find((e) => e.key === o.rootKey)?.label ?? o.rootKey, ...o.path], [i, o]), ve = i.find((e) => e.key === p?.rootKey), ye = p ? p.path[p.path.length - 1] ?? ve?.label : void 0, be = H(j, Ft.heading), xe = c?.(o);
1468
- if (e === Pt.ChangeFolder) return /* @__PURE__ */ W("div", {
1502
+ }, [me, he] = a(""), Q = n(), ge = n(), _e = r(() => [i.find((e) => e.key === o.rootKey)?.label ?? o.rootKey, ...o.path], [i, o]), ve = i.find((e) => e.key === p?.rootKey), ye = p ? p.path[p.path.length - 1] ?? ve?.label : void 0, be = V(j, Rt.heading), xe = c?.(o);
1503
+ if (e === Lt.ChangeFolder) return /* @__PURE__ */ U("div", {
1469
1504
  className: "flex flex-col gap-3",
1470
1505
  style: pe,
1471
1506
  children: [
1472
- /* @__PURE__ */ U("div", {
1507
+ /* @__PURE__ */ H("div", {
1473
1508
  role: "search",
1474
- children: /* @__PURE__ */ U(M, {
1509
+ children: /* @__PURE__ */ H(M, {
1475
1510
  value: me,
1476
- onChange: (e) => Q(e ?? ""),
1477
- placeholder: B,
1478
- clearLabel: ae,
1479
- "aria-label": B
1511
+ onChange: (e) => he(e ?? ""),
1512
+ placeholder: z,
1513
+ clearLabel: oe,
1514
+ "aria-label": z
1480
1515
  })
1481
1516
  }),
1482
- /* @__PURE__ */ U(w, {
1517
+ /* @__PURE__ */ H(w, {
1483
1518
  politeness: E.Assertive,
1484
- children: D && /* @__PURE__ */ W("div", {
1519
+ children: D && /* @__PURE__ */ U("div", {
1485
1520
  className: "flex flex-wrap items-center gap-2",
1486
- children: [/* @__PURE__ */ U(_, { text: D }), O && /* @__PURE__ */ U(C, {
1521
+ children: [/* @__PURE__ */ H(_, { text: D }), O && /* @__PURE__ */ H(C, {
1487
1522
  label: Y,
1488
1523
  onClick: O
1489
1524
  })]
1490
1525
  })
1491
1526
  }),
1492
- /* @__PURE__ */ U(gt, {
1527
+ /* @__PURE__ */ H(yt, {
1493
1528
  roots: i,
1494
1529
  destination: p,
1495
1530
  onDestinationChange: m,
@@ -1497,7 +1532,7 @@ var K = /* @__PURE__ */ function(e) {
1497
1532
  getDisabledReason: c,
1498
1533
  searchQuery: me,
1499
1534
  disabled: S,
1500
- noResultsLabel: oe,
1535
+ noResultsLabel: se,
1501
1536
  createFolderLabel: ce,
1502
1537
  cancelCreatingFolderLabel: le,
1503
1538
  addSiblingFolderLabel: G,
@@ -1508,9 +1543,9 @@ var K = /* @__PURE__ */ function(e) {
1508
1543
  sameAsParentFolderNameError: J,
1509
1544
  styles: X
1510
1545
  }),
1511
- v && ve?.hasAccessRules && !(p && v.isHiddenFor?.(p)) && /* @__PURE__ */ U("div", {
1546
+ v && ve?.hasAccessRules && !(p && v.isHiddenFor?.(p)) && /* @__PURE__ */ H("div", {
1512
1547
  className: "mt-1",
1513
- children: /* @__PURE__ */ U(Re, {
1548
+ children: /* @__PURE__ */ H(ze, {
1514
1549
  rules: v.rules,
1515
1550
  onRulesChange: v.onRulesChange,
1516
1551
  sourceOptions: v.sourceOptions,
@@ -1524,38 +1559,38 @@ var K = /* @__PURE__ */ function(e) {
1524
1559
  })
1525
1560
  ]
1526
1561
  });
1527
- let $ = g ? [{
1528
- value: Nt.Keep,
1529
- label: L.replace("{version}", g.currentVersion)
1562
+ let Se = g ? [{
1563
+ value: It.Keep,
1564
+ label: re.replace("{version}", g.currentVersion)
1530
1565
  }, {
1531
- value: Nt.New,
1532
- label: re,
1533
- content: /* @__PURE__ */ U(ee, {
1534
- id: he,
1566
+ value: It.New,
1567
+ label: ie,
1568
+ content: /* @__PURE__ */ H(ee, {
1569
+ id: Q,
1535
1570
  value: g.newVersion,
1536
1571
  onChange: (e) => g.onNewVersionChange(e ?? ""),
1537
1572
  onBlur: g.onNewVersionBlur,
1538
1573
  labelProps: {
1539
- label: R,
1574
+ label: L,
1540
1575
  required: !0
1541
1576
  },
1542
- placeholder: z,
1577
+ placeholder: R,
1543
1578
  error: g.newVersionError,
1544
1579
  invalid: !!g.newVersionError,
1545
1580
  disabled: S
1546
1581
  })
1547
1582
  }] : [];
1548
- return /* @__PURE__ */ W("div", {
1583
+ return /* @__PURE__ */ U("div", {
1549
1584
  className: "flex flex-col gap-5",
1550
1585
  style: pe,
1551
1586
  children: [
1552
- t.type == null ? /* @__PURE__ */ U(ie, {
1587
+ t.type == null ? /* @__PURE__ */ H(ae, {
1553
1588
  colors: Z,
1554
- children: /* @__PURE__ */ U("span", {
1555
- className: H("truncate", be),
1589
+ children: /* @__PURE__ */ H("span", {
1590
+ className: V("truncate", be),
1556
1591
  children: t.title
1557
1592
  })
1558
- }) : /* @__PURE__ */ U(ie, {
1593
+ }) : /* @__PURE__ */ H(ae, {
1559
1594
  item: {
1560
1595
  type: t.type,
1561
1596
  name: t.title,
@@ -1565,27 +1600,27 @@ var K = /* @__PURE__ */ function(e) {
1565
1600
  hasVersionTag: !1,
1566
1601
  colors: Z
1567
1602
  }),
1568
- /* @__PURE__ */ W("section", {
1603
+ /* @__PURE__ */ U("section", {
1569
1604
  className: "flex flex-col gap-2",
1570
- children: [/* @__PURE__ */ U("h2", {
1605
+ children: [/* @__PURE__ */ H("h2", {
1571
1606
  className: be,
1572
1607
  children: ne
1573
- }), /* @__PURE__ */ W("div", {
1608
+ }), /* @__PURE__ */ U("div", {
1574
1609
  className: "flex min-w-0 items-center gap-2",
1575
- children: [/* @__PURE__ */ U("div", {
1610
+ children: [/* @__PURE__ */ H("div", {
1576
1611
  role: "group",
1577
1612
  "aria-label": F,
1578
1613
  "aria-describedby": xe ? ge : void 0,
1579
1614
  className: "min-w-0 flex-1",
1580
- children: /* @__PURE__ */ U(y, {
1615
+ children: /* @__PURE__ */ H(y, {
1581
1616
  name: _e.join(" / "),
1582
- nameClassName: H(N, Ft.destination)
1617
+ nameClassName: V(N, Rt.destination)
1583
1618
  })
1584
- }), /* @__PURE__ */ U(b, {
1619
+ }), /* @__PURE__ */ H(b, {
1585
1620
  ref: u,
1586
1621
  size: h.Small,
1587
1622
  label: P,
1588
- iconBefore: /* @__PURE__ */ U(se, {
1623
+ iconBefore: /* @__PURE__ */ H(W, {
1589
1624
  size: d.SM,
1590
1625
  stroke: f,
1591
1626
  "aria-hidden": !0
@@ -1595,122 +1630,122 @@ var K = /* @__PURE__ */ function(e) {
1595
1630
  })]
1596
1631
  })]
1597
1632
  }),
1598
- g && /* @__PURE__ */ W("section", {
1633
+ g && /* @__PURE__ */ U("section", {
1599
1634
  className: "flex flex-col gap-2",
1600
- children: [/* @__PURE__ */ U("h2", {
1635
+ children: [/* @__PURE__ */ H("h2", {
1601
1636
  className: be,
1602
1637
  children: I
1603
- }), /* @__PURE__ */ U(te, {
1638
+ }), /* @__PURE__ */ H(te, {
1604
1639
  ariaLabel: I,
1605
1640
  value: g.versionMode,
1606
1641
  onChange: (e) => g.onVersionModeChange(e),
1607
- items: $,
1642
+ items: Se,
1608
1643
  disabled: S
1609
1644
  })]
1610
1645
  }),
1611
- /* @__PURE__ */ W(w, {
1646
+ /* @__PURE__ */ U(w, {
1612
1647
  politeness: E.Assertive,
1613
- children: [xe && /* @__PURE__ */ U(_, {
1648
+ children: [xe && /* @__PURE__ */ H(_, {
1614
1649
  id: ge,
1615
1650
  text: xe
1616
- }), T && /* @__PURE__ */ U(_, { text: T })]
1651
+ }), T && /* @__PURE__ */ H(_, { text: T })]
1617
1652
  }),
1618
- x != null && /* @__PURE__ */ U(Ue, {
1653
+ x != null && /* @__PURE__ */ H(We, {
1619
1654
  headingClassName: j,
1620
1655
  ...x
1621
1656
  })
1622
1657
  ]
1623
1658
  });
1624
- }, Lt = {
1659
+ }, Bt = {
1625
1660
  backdrop: "_backdrop_1ie8s_6",
1626
1661
  panel: "_panel_1ie8s_10",
1627
1662
  divider: "_divider_1ie8s_15",
1628
1663
  footer: "_footer_1ie8s_19",
1629
1664
  content: "_content_1ie8s_23",
1630
1665
  title: "_title_1ie8s_28"
1631
- }, Rt = ({ isOpen: e, onClose: n, onSubmit: r, isSubmitDisabled: o = !1, returnFocusRef: s, labels: c = {}, colors: l, titleClassName: u = "dial-body-semi-text", destination: f, onDestinationChange: p, isSubmitting: m = !1, onPendingDestinationChange: h, ...g }) => {
1632
- let { title: _ = "Save", changeFolderTitle: v = "Change folder", closeAriaLabel: y = "Close", backAriaLabel: x = "Back", cancelLabel: S = "Cancel", saveLabel: ee = "Save", savingLabel: C = "Saving…", selectLabel: w = "Select" } = c, T = V({
1666
+ }, Vt = ({ isOpen: e, onClose: n, onSubmit: r, isSubmitDisabled: o = !1, returnFocusRef: s, labels: c = {}, colors: l, titleClassName: u = "dial-body-semi-text", destination: f, onDestinationChange: p, isSubmitting: m = !1, onPendingDestinationChange: h, ...g }) => {
1667
+ let { title: _ = "Save", changeFolderTitle: v = "Change folder", closeAriaLabel: y = "Close", backAriaLabel: x = "Back", cancelLabel: S = "Cancel", saveLabel: ee = "Save", savingLabel: C = "Saving…", selectLabel: w = "Select" } = c, T = B({
1633
1668
  "--sstf-backdrop-bg": l?.backdropBackground,
1634
1669
  "--sstf-panel-bg": l?.panelBackground,
1635
1670
  "--sstf-panel-border": l?.panelBorder,
1636
1671
  "--sstf-divider-border": l?.dividerBorder,
1637
1672
  "--sstf-scrollbar-thumb": l?.scrollbarThumb,
1638
1673
  "--sstf-title-text": l?.titleText
1639
- }), [E, O] = a(Pt.Main), [k, A] = a(f), te = i(null), M = i(null);
1674
+ }), [E, O] = a(Lt.Main), [k, A] = a(f), te = i(null), M = i(null);
1640
1675
  t(() => {
1641
- e && O(Pt.Main);
1676
+ e && O(Lt.Main);
1642
1677
  }, [e]);
1643
1678
  let N = i(E);
1644
1679
  t(() => {
1645
- N.current !== E && (N.current = E, E === Pt.ChangeFolder ? te.current?.focus({ preventScroll: !0 }) : M.current?.focus({ preventScroll: !0 }));
1680
+ N.current !== E && (N.current = E, E === Lt.ChangeFolder ? te.current?.focus({ preventScroll: !0 }) : M.current?.focus({ preventScroll: !0 }));
1646
1681
  }, [E]);
1647
1682
  let P = i(e);
1648
1683
  t(() => {
1649
1684
  let t = P.current;
1650
1685
  P.current = e, t && !e && s?.current?.isConnected && s.current.focus({ preventScroll: !0 });
1651
1686
  }, [e, s]);
1652
- let F = E === Pt.ChangeFolder, L = (e) => {
1687
+ let F = E === Lt.ChangeFolder, re = (e) => {
1653
1688
  A(e), h?.(e);
1654
- }, re = () => {
1655
- L(f), O(Pt.ChangeFolder);
1689
+ }, ie = () => {
1690
+ re(f), O(Lt.ChangeFolder);
1691
+ }, L = () => {
1692
+ h?.(f), O(Lt.Main);
1656
1693
  }, R = () => {
1657
- h?.(f), O(Pt.Main);
1658
- }, z = () => {
1659
- k && p(k), O(Pt.Main);
1694
+ k && p(k), O(Lt.Main);
1660
1695
  };
1661
- return /* @__PURE__ */ W(ne, {
1696
+ return /* @__PURE__ */ U(ne, {
1662
1697
  open: e,
1663
1698
  onClose: n,
1664
- header: /* @__PURE__ */ U("span", {
1699
+ header: /* @__PURE__ */ H("span", {
1665
1700
  ref: te,
1666
1701
  tabIndex: -1,
1667
- className: H("block truncate outline-none", u, Lt.title),
1702
+ className: V("block truncate outline-none", u, Bt.title),
1668
1703
  children: F ? v : _
1669
1704
  }),
1670
1705
  ariaLabel: _,
1671
- onBack: F ? R : void 0,
1706
+ onBack: F ? L : void 0,
1672
1707
  backAriaLabel: x,
1673
1708
  backDisabled: m,
1674
1709
  closeAriaLabel: y,
1675
1710
  closeDisabled: m,
1676
1711
  style: T,
1677
1712
  overlayStyle: T,
1678
- className: H(Lt.panel, "tablet:w-[540px]! tablet:max-w-[calc(100%-32px)]!"),
1679
- overlayClassName: Lt.backdrop,
1680
- headerClassName: H("px-[22px]", Lt.divider),
1713
+ className: V(Bt.panel, "tablet:w-[540px]! tablet:max-w-[calc(100%-32px)]!"),
1714
+ overlayClassName: Bt.backdrop,
1715
+ headerClassName: V("px-[22px]", Bt.divider),
1681
1716
  bodyClassName: "flex flex-col overflow-hidden",
1682
- children: [/* @__PURE__ */ U("div", {
1683
- className: H("min-h-0 flex-1 overflow-y-auto p-[22px]", Lt.content),
1684
- children: /* @__PURE__ */ U(It, {
1717
+ children: [/* @__PURE__ */ H("div", {
1718
+ className: V("min-h-0 flex-1 overflow-y-auto p-[22px]", Bt.content),
1719
+ children: /* @__PURE__ */ H(zt, {
1685
1720
  ...g,
1686
1721
  view: E,
1687
1722
  destination: f,
1688
1723
  onDestinationChange: p,
1689
1724
  isSubmitting: m,
1690
- onChangeFolderClick: re,
1725
+ onChangeFolderClick: ie,
1691
1726
  changeFolderButtonRef: M,
1692
1727
  pendingDestination: k,
1693
- onPendingDestinationChange: L
1728
+ onPendingDestinationChange: re
1694
1729
  })
1695
- }), /* @__PURE__ */ W("div", {
1696
- className: H("flex items-center justify-end gap-2 border-t px-4 py-4 desktop:px-3.5", Lt.footer),
1697
- children: [/* @__PURE__ */ U(b, {
1730
+ }), /* @__PURE__ */ U("div", {
1731
+ className: V("flex items-center justify-end gap-2 border-t px-4 py-4 desktop:px-3.5", Bt.footer),
1732
+ children: [/* @__PURE__ */ H(b, {
1698
1733
  label: S,
1699
1734
  className: "mobile:flex-1",
1700
1735
  disabled: m,
1701
- onClick: F ? R : n
1702
- }), F ? /* @__PURE__ */ U(D, {
1736
+ onClick: F ? L : n
1737
+ }), F ? /* @__PURE__ */ H(D, {
1703
1738
  label: w,
1704
1739
  className: "mobile:flex-1",
1705
1740
  disabled: k == null,
1706
- onClick: z
1707
- }) : /* @__PURE__ */ U(j, {
1741
+ onClick: R
1742
+ }) : /* @__PURE__ */ H(j, {
1708
1743
  label: m ? C : ee,
1709
1744
  className: "mobile:flex-1",
1710
1745
  disabled: o || m,
1711
- iconBefore: m ? /* @__PURE__ */ U("span", {
1746
+ iconBefore: m ? /* @__PURE__ */ H("span", {
1712
1747
  "aria-hidden": !0,
1713
- children: /* @__PURE__ */ U(I, { size: d.SM })
1748
+ children: /* @__PURE__ */ H(I, { size: d.SM })
1714
1749
  }) : void 0,
1715
1750
  onClick: r
1716
1751
  })]
@@ -1718,4 +1753,4 @@ var K = /* @__PURE__ */ function(e) {
1718
1753
  });
1719
1754
  };
1720
1755
  //#endregion
1721
- export { We as PUBLISH_PANEL_CLASS, K as PublicationRuleFunction, Pe as PublishAccessRuleEditor, Re as PublishAccessRules, q as PublishCalloutKind, $e as PublishDependenciesList, J as PublishDependencyType, gt as PublishFoldersTree, Et as PublishFooter, tt as PublishHistoryList, xt as PublishPanel, Q as PublishPanelView, It as SaveToFolderPanel, Pt as SaveToFolderView, Nt as SaveVersionMode, Ot as StandalonePublishPanel, Rt as StandaloneSaveToFolderPanel, Mt as UnpublishConfirmationDialog, Ue as VersionHistorySection, ze as VersionHistoryStatus, xe as collectFolderKeys, Y as derivePublishState, ge as filterFolderTree, X as formatPublishedDate, Se as fromFolderPathKey, Oe as getSiblingFolderNames, De as getUniqueFolderName, be as mergeFolderPaths, ve as sortFolderTree, we as toDialFileTree, $ as toFolderPathKey, me as usePublishFlow, he as usePublishFolderView, Ee as validateFolderName };
1756
+ export { Ge as PUBLISH_PANEL_CLASS, K as PublicationRuleFunction, Fe as PublishAccessRuleEditor, ze as PublishAccessRules, q as PublishCalloutKind, Y as PublishDependenciesAppearance, nt as PublishDependenciesList, J as PublishDependencyType, yt as PublishFoldersTree, kt as PublishFooter, it as PublishHistoryList, wt as PublishPanel, Q as PublishPanelView, zt as SaveToFolderPanel, Lt as SaveToFolderView, It as SaveVersionMode, jt as StandalonePublishPanel, Vt as StandaloneSaveToFolderPanel, Ft as UnpublishConfirmationDialog, We as VersionHistorySection, Be as VersionHistoryStatus, Se as collectFolderKeys, fe as derivePublishState, _e as filterFolderTree, pe as formatPublishedDate, Ce as fromFolderPathKey, ke as getSiblingFolderNames, Oe as getUniqueFolderName, xe as mergeFolderPaths, ye as sortFolderTree, Te as toDialFileTree, $ as toFolderPathKey, he as usePublishFlow, ge as usePublishFolderView, De as validateFolderName };