@epam/ai-dial-publish-panel 1.4.0-dev.122 → 1.4.0-dev.126

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,5 +1,5 @@
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 re, TagInput as ie } from "@epam/ai-dial-ui-kit";
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 te, Notification as D, NotificationType as O, NotificationVariant as k, PrimaryButton as A, RadioGroup as ne, Search as j, Select as M, SideDrawer as re, Skeleton as N, SkeletonVariant as P, Spinner as F, Tag as I, TagInput as ie } from "@epam/ai-dial-ui-kit";
3
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
4
  import { Fragment as se, jsx as H, jsxs as U } from "react/jsx-runtime";
5
5
  import { IconFolder as W, IconFolderPlus as ce, IconPlus as le, IconTrashX as G } from "@tabler/icons-react";
@@ -78,31 +78,31 @@ var K = /* @__PURE__ */ function(e) {
78
78
  t(() => {
79
79
  v(s);
80
80
  }, [s]);
81
- let [y, b] = a(), [x, S] = a(!1), [ee, C] = a(!1), [w, T] = a([]), [E, D] = a(!1), [O, k] = a(!1), [A, j] = a(l), [te, M] = a(!1), [N, ne] = a(!1);
81
+ let [y, b] = a(), [x, S] = a(!1), [ee, C] = a(!1), [w, T] = a([]), [E, te] = a(!1), [D, O] = a(!1), [k, A] = a(l), [ne, j] = a(!1), [M, re] = a(!1);
82
82
  t(() => {
83
- N || j(l);
84
- }, [l, N]);
85
- let P = e((e) => {
86
- ne(!0), j(e);
83
+ M || A(l);
84
+ }, [l, M]);
85
+ let N = e((e) => {
86
+ re(!0), A(e);
87
87
  }, []);
88
88
  t(() => {
89
89
  if (y == null) {
90
- T([]), k(!1);
90
+ T([]), O(!1);
91
91
  return;
92
92
  }
93
93
  if (!m) return;
94
94
  let e = !1;
95
- return D(!0), k(!1), m(y).then((t) => {
95
+ return te(!0), O(!1), m(y).then((t) => {
96
96
  e || T(t);
97
97
  }).catch(() => {
98
- e || k(!0);
98
+ e || O(!0);
99
99
  }).finally(() => {
100
- e || D(!1);
100
+ e || te(!1);
101
101
  }), () => {
102
102
  e = !0;
103
103
  };
104
104
  }, [y]);
105
- let F = r(() => {
105
+ let P = r(() => {
106
106
  if (!y) return !1;
107
107
  let e = y.join("/");
108
108
  return o.some((t) => t.folderPath.join("/") === e ? n.version == null || t.version === n.version : !1);
@@ -110,14 +110,14 @@ var K = /* @__PURE__ */ function(e) {
110
110
  o,
111
111
  n.version,
112
112
  y
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);
113
+ ]), F = i(/* @__PURE__ */ new Set()), [I, 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 && (I === B || L === B);
114
114
  t(() => {
115
- if (y == null || B == null || !h || F) {
115
+ if (y == null || B == null || !h || P) {
116
116
  z(!1);
117
117
  return;
118
118
  }
119
119
  let e = y.join("/");
120
- if ([...I.current].some((t) => e === t || e.startsWith(`${t}/`))) {
120
+ if ([...F.current].some((t) => e === t || e.startsWith(`${t}/`))) {
121
121
  z(!1);
122
122
  return;
123
123
  }
@@ -131,47 +131,47 @@ var K = /* @__PURE__ */ function(e) {
131
131
  };
132
132
  }, [
133
133
  B,
134
- F,
134
+ P,
135
135
  h == null
136
136
  ]);
137
137
  let oe = e(async (e, t) => {
138
138
  let n = [...e, t].join("/");
139
- I.current.add(n), v((n) => Z(n, e, t));
139
+ F.current.add(n), v((n) => Z(n, e, t));
140
140
  try {
141
141
  await u?.(e, t);
142
142
  } catch {
143
- I.current.delete(n), v((n) => me(n, e, t)), C(!0);
143
+ F.current.delete(n), v((n) => me(n, e, t)), C(!0);
144
144
  }
145
145
  }, [u]), se = e(async () => {
146
146
  if (!y) return !1;
147
147
  S(!0), C(!1);
148
148
  try {
149
- return await d(n, y, w, A.trim(), te), f?.(n, y), !0;
149
+ return await d(n, y, w, k.trim(), ne), f?.(n, y), !0;
150
150
  } catch (e) {
151
151
  return g?.(e) && B != null ? R(B) : C(!0), p?.(n, y, e), !1;
152
152
  } finally {
153
153
  S(!1);
154
154
  }
155
155
  }, [
156
- A,
156
+ k,
157
157
  g,
158
158
  n,
159
159
  d,
160
160
  p,
161
161
  f,
162
- te,
162
+ ne,
163
163
  w,
164
164
  y,
165
165
  B
166
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);
167
+ v(s), b(void 0), C(!1), T([]), O(!1), A(l), re(!1), j(!1), F.current.clear(), ie(void 0), R(void 0), z(!1);
168
168
  }, [l, s]);
169
169
  return {
170
170
  folderItems: _,
171
171
  selectedFolderPath: y,
172
172
  setSelectedFolderPath: b,
173
173
  handleCreateFolder: oe,
174
- hasExistingPublicationInFolder: F,
174
+ hasExistingPublicationInFolder: P,
175
175
  hasWriteAccess: !y || c(y),
176
176
  isSubmitting: x,
177
177
  hasSubmitError: ee,
@@ -179,14 +179,14 @@ var K = /* @__PURE__ */ function(e) {
179
179
  reset: H,
180
180
  rules: w,
181
181
  setRules: T,
182
- author: A,
183
- setAuthor: P,
184
- publishCredentials: te,
185
- setPublishCredentials: M,
182
+ author: k,
183
+ setAuthor: N,
184
+ publishCredentials: ne,
185
+ setPublishCredentials: j,
186
186
  isTargetTaken: V,
187
187
  isTargetChecking: ae,
188
188
  isRulesLoading: E,
189
- hasRulesLoadError: O
189
+ hasRulesLoadError: D
190
190
  };
191
191
  }, Q = /* @__PURE__ */ function(e) {
192
192
  return e.Main = "main", e.ChangeFolder = "change-folder", e;
@@ -285,7 +285,7 @@ var K = /* @__PURE__ */ function(e) {
285
285
  "--pare-select-border-focus": f.colors?.selectBorderFocus
286
286
  }),
287
287
  ...f.cssVars
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);
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: D = "Enter a regular expression", invalidRegexError: O = "Enter a valid regular expression.", requiredFieldError: k = "This field is required.", targetsRequiredError: A = "Add at least one target.", saveLabel: ne = "Save", cancelLabel: j = "Cancel", dialogAriaLabel: re = "Add access rule" } = d, N = n(), P = n(), F = n(), I = n(), L = i(null);
289
289
  t(() => {
290
290
  p || L.current?.focus();
291
291
  }, [p]);
@@ -335,8 +335,8 @@ var K = /* @__PURE__ */ function(e) {
335
335
  }, we = (ue.length > 0 || Z) && !ye, Te = (e) => {
336
336
  e.key === "Escape" && (e.stopPropagation(), c());
337
337
  }, Ee = /* @__PURE__ */ U(se, { children: [
338
- /* @__PURE__ */ H(N, {
339
- id: F,
338
+ /* @__PURE__ */ H(M, {
339
+ id: P,
340
340
  labelProps: { label: h },
341
341
  options: ge,
342
342
  value: R,
@@ -350,11 +350,11 @@ var K = /* @__PURE__ */ function(e) {
350
350
  onOpenChange: J,
351
351
  fieldClassName: he,
352
352
  invalid: Z && R == null,
353
- error: Z && R == null ? A : void 0
353
+ error: Z && R == null ? k : void 0
354
354
  }),
355
- /* @__PURE__ */ H(N, {
355
+ /* @__PURE__ */ H(M, {
356
356
  labelProps: { label: _ },
357
- id: I,
357
+ id: F,
358
358
  options: _e,
359
359
  value: W,
360
360
  onChange: Se,
@@ -364,22 +364,22 @@ var K = /* @__PURE__ */ function(e) {
364
364
  onOpenChange: pe,
365
365
  fieldClassName: Q,
366
366
  invalid: Z && W == null,
367
- error: Z && W == null ? A : void 0
367
+ error: Z && W == null ? k : void 0
368
368
  }),
369
369
  ve ? /* @__PURE__ */ H(ee, {
370
- id: P,
370
+ id: N,
371
371
  labelProps: { label: E },
372
- placeholder: O,
372
+ placeholder: D,
373
373
  value: ue,
374
374
  onChange: (e) => de(e ?? ""),
375
- error: we ? k : void 0,
375
+ error: we ? O : void 0,
376
376
  disabled: l
377
377
  }) : /* @__PURE__ */ H(ie, {
378
- id: re,
378
+ id: I,
379
379
  labelProps: { label: C },
380
380
  placeholder: w,
381
381
  caption: Z && le.length === 0 ? void 0 : T,
382
- error: Z && le.length === 0 ? j : void 0,
382
+ error: Z && le.length === 0 ? A : void 0,
383
383
  invalid: Z && le.length === 0,
384
384
  value: le,
385
385
  onChange: $,
@@ -389,11 +389,11 @@ var K = /* @__PURE__ */ function(e) {
389
389
  /* @__PURE__ */ U("div", {
390
390
  className: "mt-auto flex justify-end gap-2 desktop:mt-2",
391
391
  children: [/* @__PURE__ */ H(b, {
392
- label: M,
392
+ label: j,
393
393
  onClick: c,
394
394
  disabled: l
395
- }), /* @__PURE__ */ H(D, {
396
- label: te,
395
+ }), /* @__PURE__ */ H(te, {
396
+ label: ne,
397
397
  onClick: Ce,
398
398
  disabled: l
399
399
  })]
@@ -402,7 +402,7 @@ var K = /* @__PURE__ */ function(e) {
402
402
  return p ? /* @__PURE__ */ H(s, {
403
403
  open: !0,
404
404
  onClose: c,
405
- ariaLabel: ne,
405
+ ariaLabel: re,
406
406
  style: m,
407
407
  className: Ae.sheet,
408
408
  bodyClassName: "flex flex-col gap-3 p-4",
@@ -410,7 +410,7 @@ var K = /* @__PURE__ */ function(e) {
410
410
  }) : /* @__PURE__ */ H("div", {
411
411
  ref: L,
412
412
  role: "group",
413
- "aria-label": ne,
413
+ "aria-label": re,
414
414
  tabIndex: -1,
415
415
  onKeyDown: Te,
416
416
  style: m,
@@ -433,7 +433,7 @@ var K = /* @__PURE__ */ function(e) {
433
433
  "--par-rule-text": C.colors?.ruleText
434
434
  }),
435
435
  ...C.cssVars
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);
436
+ }, { heading: te = "Allow access if all match", folderScopeHint: A = "These rules apply to \"{folder}\". Selecting another folder loads that folder's own rules instead.", noFolderScopeHint: ne = "Access rules apply to the destination folder — pick a folder above to set its rules.", rulesWithoutFolderWarning: j = "These rules have no destination yet. Select a folder above to apply them.", maxRulesReachedLabel: M = "Rule limit reached ({max}). Remove a rule to add another.", addRuleLabel: re = "Add rule", clearAllLabel: N = "Clear all", orSeparatorLabel: P = "Or", removeRuleAriaLabelTemplate: I = "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);
437
437
  t(() => {
438
438
  X.current && !u && e.length > 0 && Y(ce), X.current = u;
439
439
  }, [
@@ -472,45 +472,45 @@ var K = /* @__PURE__ */ function(e) {
472
472
  children: [/* @__PURE__ */ H("div", {
473
473
  id: de,
474
474
  className: V(_, Ie.heading),
475
- children: D
475
+ children: te
476
476
  }), e.length > 0 && /* @__PURE__ */ H(b, {
477
477
  variant: c.Primary,
478
- label: P,
478
+ label: N,
479
479
  onClick: Q,
480
480
  disabled: l
481
481
  })]
482
482
  }),
483
483
  /* @__PURE__ */ H("p", {
484
484
  className: V("mb-2", v, Ie.hint),
485
- children: ye ? j.replace("{folder}", s) : te
485
+ children: ye ? A.replace("{folder}", s) : ne
486
486
  }),
487
487
  e.length > 0 && !ye && /* @__PURE__ */ H("div", {
488
488
  className: "mb-2",
489
- children: /* @__PURE__ */ H(O, {
490
- type: k.SectionMessage,
491
- variant: A.Warning,
492
- message: M
489
+ children: /* @__PURE__ */ H(D, {
490
+ type: O.SectionMessage,
491
+ variant: k.Warning,
492
+ message: j
493
493
  })
494
494
  }),
495
495
  u && /* @__PURE__ */ U("div", {
496
496
  className: V("mb-2 flex items-center gap-2", y, Ie.loading),
497
- children: [/* @__PURE__ */ H(I, {
497
+ children: [/* @__PURE__ */ H(F, {
498
498
  size: 16,
499
499
  ariaLabel: ae
500
500
  }), /* @__PURE__ */ H("span", { children: ae })]
501
501
  }),
502
502
  p && /* @__PURE__ */ H("div", {
503
503
  className: "mb-2",
504
- children: /* @__PURE__ */ H(O, {
505
- type: k.SectionMessage,
506
- variant: A.Warning,
504
+ children: /* @__PURE__ */ H(D, {
505
+ type: O.SectionMessage,
506
+ variant: k.Warning,
507
507
  message: z
508
508
  })
509
509
  }),
510
510
  e.length > 0 && /* @__PURE__ */ H("ul", {
511
511
  className: "mb-3 flex flex-col gap-2",
512
512
  children: e.map((e, t) => {
513
- let n = e.targets.join(` ${F} `), r = re.replace("{source}", e.source).replace("{targets}", n);
513
+ let n = e.targets.join(` ${P} `), r = I.replace("{source}", e.source).replace("{targets}", n);
514
514
  return /* @__PURE__ */ U("li", {
515
515
  className: V("flex items-center justify-between gap-2 rounded-lg px-3 py-2", Ie.ruleRow),
516
516
  children: [/* @__PURE__ */ U("span", {
@@ -550,7 +550,7 @@ var K = /* @__PURE__ */ function(e) {
550
550
  /* @__PURE__ */ H("div", {
551
551
  className: "flex flex-wrap items-center gap-2",
552
552
  children: /* @__PURE__ */ H(b, {
553
- label: ne,
553
+ label: re,
554
554
  iconBefore: /* @__PURE__ */ H(le, {
555
555
  size: d.SM,
556
556
  "aria-hidden": !0,
@@ -562,7 +562,7 @@ var K = /* @__PURE__ */ function(e) {
562
562
  }),
563
563
  _e && /* @__PURE__ */ H("p", {
564
564
  className: V("mt-2", v, Ie.hint),
565
- children: N.replace("{max}", String(m))
565
+ children: M.replace("{max}", String(m))
566
566
  })
567
567
  ]
568
568
  });
@@ -652,8 +652,8 @@ var K = /* @__PURE__ */ function(e) {
652
652
  n && /* @__PURE__ */ H("span", {
653
653
  "aria-hidden": !0,
654
654
  className: "shrink-0",
655
- children: /* @__PURE__ */ H(P, {
656
- variant: F.Text,
655
+ children: /* @__PURE__ */ H(N, {
656
+ variant: P.Text,
657
657
  width: "84px",
658
658
  height: "24px",
659
659
  color: Ve.skeletonColor
@@ -683,21 +683,21 @@ var K = /* @__PURE__ */ function(e) {
683
683
  dependencies: "dial-publish-panel-dependencies",
684
684
  dependenciesList: "dial-publish-panel-dependencies-list",
685
685
  dependenciesItem: "dial-publish-panel-dependencies-item"
686
- }, Ke = {
686
+ }, Ke = "Private dependencies", qe = {
687
687
  heading: "_heading_18b5e_1",
688
688
  name: "_name_18b5e_5",
689
689
  meta: "_meta_18b5e_9",
690
690
  caption: "_caption_18b5e_13",
691
691
  type: "_type_18b5e_17",
692
692
  row: "_row_18b5e_21"
693
- }, qe = {
693
+ }, Je = {
694
694
  [J.Application]: "Application",
695
695
  [J.Toolset]: "Toolset",
696
696
  [J.Prompt]: "Prompt",
697
697
  [J.Skill]: "Skill",
698
698
  [J.File]: "File"
699
- }, Je = 32, Ye = 24, Xe = 40, Ze = 32, Qe = (e, t) => {
700
- let n = t ? Xe : Je;
699
+ }, Ye = 32, Xe = 24, Ze = 40, Qe = 32, $e = (e, t) => {
700
+ let n = t ? Ze : Ye;
701
701
  return /* @__PURE__ */ H("span", {
702
702
  "aria-hidden": "true",
703
703
  className: "shrink-0",
@@ -709,7 +709,7 @@ var K = /* @__PURE__ */ function(e) {
709
709
  },
710
710
  children: /* @__PURE__ */ H(v, {
711
711
  decorative: !0,
712
- size: t ? Ze : Ye,
712
+ size: t ? Qe : Xe,
713
713
  name: e.name,
714
714
  type: e.isFolder ? m.Folder : m.File
715
715
  })
@@ -720,8 +720,8 @@ var K = /* @__PURE__ */ function(e) {
720
720
  styles: { badgeClassName: t ? "rounded-xl" : "rounded-lg" }
721
721
  })
722
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 = {
723
+ }, 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 = Ke, 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
725
  ...B({
726
726
  "--pp-dependencies-heading-text": _?.headingText,
727
727
  "--pp-dependencies-name-text": _?.nameText,
@@ -743,55 +743,55 @@ var K = /* @__PURE__ */ function(e) {
743
743
  children: [
744
744
  /* @__PURE__ */ H("h2", {
745
745
  id: l,
746
- className: V(r, Ke.heading),
746
+ className: V(r, qe.heading),
747
747
  children: u
748
748
  }),
749
749
  h ? /* @__PURE__ */ H("p", {
750
- className: V(o, Ke.caption),
750
+ className: V(o, qe.caption),
751
751
  children: d
752
- }) : /* @__PURE__ */ H(O, {
753
- type: k.SectionMessage,
754
- variant: A.Warning,
752
+ }) : /* @__PURE__ */ H(D, {
753
+ type: O.SectionMessage,
754
+ variant: k.Warning,
755
755
  message: d,
756
756
  role: "note"
757
757
  }),
758
758
  /* @__PURE__ */ H("ul", {
759
759
  className: Ge.dependenciesList,
760
760
  children: e.map(h ? (e) => {
761
- let t = p[e.type] ?? qe[e.type];
761
+ let t = p[e.type] ?? Je[e.type];
762
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", {
763
+ className: V("flex items-center gap-3 py-3", qe.row, Ge.dependenciesItem),
764
+ children: [$e(e, !0), /* @__PURE__ */ U("div", {
765
765
  className: "flex min-w-0 flex-col",
766
766
  children: [/* @__PURE__ */ U("span", {
767
- className: V("truncate", s, Ke.type),
767
+ className: V("truncate", s, qe.type),
768
768
  children: [t, e.location && /* @__PURE__ */ H("span", {
769
- className: V("ms-1 normal-case", a, Ke.meta),
769
+ className: V("ms-1 normal-case", a, qe.meta),
770
770
  children: `· ${e.location}`
771
771
  })]
772
772
  }), /* @__PURE__ */ U("span", {
773
- className: V("truncate", g, Ke.name),
773
+ className: V("truncate", g, qe.name),
774
774
  children: [e.name, e.version != null && /* @__PURE__ */ H("span", {
775
- className: V("ms-2", a, Ke.meta),
775
+ className: V("ms-2", a, qe.meta),
776
776
  children: e.version
777
777
  })]
778
778
  })]
779
779
  })]
780
780
  }, e.id);
781
781
  } : (e) => {
782
- let t = p[e.type] ?? qe[e.type];
782
+ let t = p[e.type] ?? Je[e.type];
783
783
  return /* @__PURE__ */ U("li", {
784
784
  className: V("flex items-center gap-3 py-2", Ge.dependenciesItem),
785
- children: [Qe(e, !1), /* @__PURE__ */ U("div", {
785
+ children: [$e(e, !1), /* @__PURE__ */ U("div", {
786
786
  className: "flex min-w-0 flex-col",
787
787
  children: [/* @__PURE__ */ U("span", {
788
- className: V("truncate", g, Ke.name),
788
+ className: V("truncate", g, qe.name),
789
789
  children: [e.name, e.version != null && /* @__PURE__ */ H("span", {
790
- className: V("ms-2", a, Ke.meta),
790
+ className: V("ms-2", a, qe.meta),
791
791
  children: e.version
792
792
  })]
793
793
  }), /* @__PURE__ */ H("span", {
794
- className: V("truncate", a, Ke.meta),
794
+ className: V("truncate", a, qe.meta),
795
795
  children: e.location ? `${t} · ${e.location}` : t
796
796
  })]
797
797
  })]
@@ -845,11 +845,11 @@ var K = /* @__PURE__ */ function(e) {
845
845
  e.version
846
846
  ]
847
847
  }),
848
- e.version === t && /* @__PURE__ */ H(re, {
848
+ e.version === t && /* @__PURE__ */ H(I, {
849
849
  label: a,
850
850
  className: V("shrink-0 whitespace-nowrap", rt.currentBadge)
851
851
  }),
852
- e.publishCredentials === !0 && /* @__PURE__ */ H(re, {
852
+ e.publishCredentials === !0 && /* @__PURE__ */ H(I, {
853
853
  label: o,
854
854
  className: V("shrink-0 whitespace-nowrap", rt.sharedCredentialsBadge)
855
855
  })
@@ -894,26 +894,26 @@ var K = /* @__PURE__ */ function(e) {
894
894
  }, ht = {
895
895
  divider: "_divider_1gs31_1",
896
896
  tree: "_tree_1gs31_17"
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 = {} }) => {
898
- let te = {
899
- ...B({ "--pft-divider": j.colors?.divider }),
900
- ...j.cssVars
901
- }, M = c != null, N = r(() => c ? dt(c) : e, [c, e]), ne = i(N);
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: te = "Organization", expandedPaths: D, onExpandedPathsChange: O, loadingPaths: k, styles: A = {} }) => {
898
+ let ne = {
899
+ ...B({ "--pft-divider": A.colors?.divider }),
900
+ ...A.cssVars
901
+ }, j = c != null, M = r(() => c ? dt(c) : e, [c, e]), re = i(M);
902
902
  t(() => {
903
- ne.current = N;
904
- }, [N]);
905
- let P = r(() => c ? ft(c) : [_t], [c]), F = n;
906
- M && (F = l ? ct(l) : void 0);
907
- let I = (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) => {
903
+ re.current = M;
904
+ }, [M]);
905
+ let N = r(() => c ? ft(c) : [_t], [c]), P = n;
906
+ j && (P = l ? ct(l) : void 0);
907
+ let F = (e) => {
908
+ j ? u?.(e ? lt(e) : void 0) : o?.(e);
909
+ }, [I, ie] = a(() => new Set(P?.map((e, t) => $(P.slice(0, t + 1))) ?? [])), L = r(() => c ? /* @__PURE__ */ new Set([...I, ...pt(c, (e) => e.expandedPaths)]) : void 0, [c, I]) ?? D ?? I, R = r(() => c ? pt(c, (e) => e.loadingPaths) : k, [c, k]), ae = (e) => {
910
910
  let t = new Set(e);
911
- for (let e of P) t.delete(e);
911
+ for (let e of N) t.delete(e);
912
912
  if (c) {
913
913
  ie(t);
914
914
  let e = mt(c, t);
915
915
  for (let t of c) t.onExpandedPathsChange?.(e.get(t.key) ?? /* @__PURE__ */ new Set());
916
- } else k ? k(t) : ie(t);
916
+ } else O ? O(t) : ie(t);
917
917
  }, [z, oe] = a(null), [se, W] = a(S), G = i(null), K = i(!1);
918
918
  t(() => {
919
919
  let e = (e) => {
@@ -921,36 +921,36 @@ var K = /* @__PURE__ */ function(e) {
921
921
  };
922
922
  return document.addEventListener("pointerdown", e, !0), () => document.removeEventListener("pointerdown", e, !0);
923
923
  }, []);
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(() => {
925
- let e = X ? Y : N;
926
- return M ? e : ye(e);
924
+ let q = m.trim(), J = z != null, Y = r(() => _e(M, m), [M, m]), fe = q.length > 0 && Y.length === 0, X = !J && q.length > 0, pe = r(() => {
925
+ let e = X ? Y : M;
926
+ return j ? e : ye(e);
927
927
  }, [
928
928
  X,
929
929
  Y,
930
+ M,
931
+ j
932
+ ]), Z = r(() => /* @__PURE__ */ new Set([...N, ...Se(pe)]), [N, pe]), me = r(() => /* @__PURE__ */ new Set([...N, ...X ? Z : L]), [
930
933
  N,
931
- M
932
- ]), Z = r(() => /* @__PURE__ */ new Set([...P, ...Se(pe)]), [P, pe]), me = r(() => /* @__PURE__ */ new Set([...P, ...X ? Z : L]), [
933
- P,
934
934
  X,
935
935
  Z,
936
936
  L
937
- ]), he = r(() => Te(pe), [pe]), Q = r(() => X && he.length === 0 ? [] : M ? he : [{
937
+ ]), he = r(() => Te(pe), [pe]), Q = r(() => X && he.length === 0 ? [] : j ? he : [{
938
938
  path: _t,
939
- name: D,
939
+ name: te,
940
940
  folderId: _t,
941
941
  nodeType: ue.FOLDER,
942
942
  items: he
943
943
  }], [
944
944
  he,
945
- D,
945
+ te,
946
946
  X,
947
- M
947
+ j
948
948
  ]), ge = z ? $(z) : null, ve = {
949
949
  empty: C,
950
950
  invalid: w,
951
951
  duplicate: T,
952
952
  sameAsParent: E
953
- }, be = (e) => P.includes($(e)) ? void 0 : e.at(-1), xe = (e) => c ? lt(e) : {
953
+ }, be = (e) => N.includes($(e)) ? void 0 : e.at(-1), xe = (e) => c ? lt(e) : {
954
954
  rootKey: _t,
955
955
  path: e
956
956
  }, we = (e) => {
@@ -967,10 +967,10 @@ var K = /* @__PURE__ */ function(e) {
967
967
  return n != null && n.canCreateFolders !== !1;
968
968
  }, je = (() => {
969
969
  if (!c) {
970
- let e = F ?? [];
970
+ let e = P ?? [];
971
971
  return Ae(e) ? e : void 0;
972
972
  }
973
- if (F && Ae(F)) return F;
973
+ if (P && Ae(P)) return P;
974
974
  let e = c.find((e) => e.canCreateFolders !== !1);
975
975
  return e ? ct({
976
976
  rootKey: e.key,
@@ -978,7 +978,7 @@ var K = /* @__PURE__ */ function(e) {
978
978
  }) : void 0;
979
979
  })(), Me = (e) => {
980
980
  let t = fe && De(q, [], ve) == null, n = be(e);
981
- return Oe(t ? q : S, [...ke(N, e), ...n ? [n] : []]);
981
+ return Oe(t ? q : S, [...ke(M, e), ...n ? [n] : []]);
982
982
  }, [Ne, Pe] = a(null);
983
983
  Ne != null && !R?.has($(Ne)) && (Pe(null), oe(Ne), W(Me(Ne)));
984
984
  let Fe = (e) => {
@@ -1000,7 +1000,7 @@ var K = /* @__PURE__ */ function(e) {
1000
1000
  }),
1001
1001
  onClick: () => Fe(t)
1002
1002
  }];
1003
- return P.includes(e.path) || n.push({
1003
+ return N.includes(e.path) || n.push({
1004
1004
  key: "add-sibling",
1005
1005
  label: y,
1006
1006
  icon: /* @__PURE__ */ H(le, {
@@ -1012,34 +1012,34 @@ var K = /* @__PURE__ */ function(e) {
1012
1012
  }), n;
1013
1013
  }, Re = (e) => {
1014
1014
  if (!z) return null;
1015
- let t = De(e, ke(ne.current, z), ve, be(z));
1015
+ let t = De(e, ke(re.current, z), ve, be(z));
1016
1016
  return G.current = t, t;
1017
1017
  }, ze = (e) => {
1018
1018
  if (!z || K.current) return;
1019
1019
  let t = e.trim(), n = G.current;
1020
1020
  if (!(Re(e) ?? n)) {
1021
1021
  let e = c ? lt(z) : void 0;
1022
- e ? p?.(e.rootKey, e.path, t) : s?.(z, t), I([...z, t]);
1022
+ e ? p?.(e.rootKey, e.path, t) : s?.(z, t), F([...z, t]);
1023
1023
  }
1024
1024
  oe(null);
1025
1025
  }, Be = () => oe(null);
1026
1026
  return /* @__PURE__ */ U("div", {
1027
- style: te,
1028
- className: V(g && "pointer-events-none opacity-60", j.className),
1027
+ style: ne,
1028
+ className: V(g && "pointer-events-none opacity-60", A.className),
1029
1029
  children: [
1030
1030
  /* @__PURE__ */ H("div", {
1031
1031
  className: V("w-full max-w-full min-w-0", ht.tree),
1032
1032
  children: /* @__PURE__ */ H(de, {
1033
1033
  items: Q,
1034
1034
  showFiles: !1,
1035
- selectedPath: F == null ? void 0 : $(F),
1035
+ selectedPath: P == null ? void 0 : $(P),
1036
1036
  expandedPaths: me,
1037
1037
  onExpandedPathsChange: ae,
1038
1038
  loadingPaths: R,
1039
1039
  onItemClick: (e) => {
1040
1040
  if (g || we(e)) return;
1041
- let t = F != null && $(F) === e.path;
1042
- I(t ? void 0 : Ce(e.path));
1041
+ let t = P != null && $(P) === e.path;
1042
+ F(t ? void 0 : Ce(e.path));
1043
1043
  },
1044
1044
  getDisabledTooltip: h ? we : void 0,
1045
1045
  getContextMenuItems: Le,
@@ -1080,7 +1080,7 @@ var K = /* @__PURE__ */ function(e) {
1080
1080
  summaryTitle: "_summaryTitle_zj3gd_1",
1081
1081
  sectionHeading: "_sectionHeading_zj3gd_5",
1082
1082
  destination: "_destination_zj3gd_9"
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 = {} }) => {
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: te, isSubmitting: A, hasSubmitError: ne = !1, isTargetTaken: M = !1, isTargetChecking: re = !1, allowReplace: N = !0, author: P = "", onAuthorChange: F, publishCredentials: I = !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
1084
  let { colors: J, folderTree: Y, accessRules: X, dependencies: pe } = K, Z = {
1085
1085
  ...B({
1086
1086
  "--pp-summary-title-text": J?.summaryTitleText,
@@ -1100,21 +1100,21 @@ var K = /* @__PURE__ */ function(e) {
1100
1100
  let et = g != null, tt = r(() => fe({
1101
1101
  hasSelectedFolder: et,
1102
1102
  hasExistingPublicationInFolder: E,
1103
- hasWriteAccess: D,
1104
- isSubmitting: j,
1105
- hasSubmitError: te,
1106
- isTargetTaken: N,
1107
- isTargetChecking: ne,
1108
- allowReplace: P
1103
+ hasWriteAccess: te,
1104
+ isSubmitting: A,
1105
+ hasSubmitError: ne,
1106
+ isTargetTaken: M,
1107
+ isTargetChecking: re,
1108
+ allowReplace: N
1109
1109
  }), [
1110
1110
  et,
1111
1111
  E,
1112
- D,
1113
- j,
1114
1112
  te,
1115
- N,
1113
+ A,
1116
1114
  ne,
1117
- P
1115
+ M,
1116
+ re,
1117
+ N
1118
1118
  ]), rt = et ? g[g.length - 1] ?? Pe : "", it = c ? c() : /* @__PURE__ */ H("span", {
1119
1119
  className: V("truncate", le, bt.summaryTitle),
1120
1120
  children: s?.title
@@ -1128,7 +1128,7 @@ var K = /* @__PURE__ */ function(e) {
1128
1128
  style: Z,
1129
1129
  children: [/* @__PURE__ */ H("div", {
1130
1130
  role: "search",
1131
- children: /* @__PURE__ */ H(M, {
1131
+ children: /* @__PURE__ */ H(j, {
1132
1132
  value: qe,
1133
1133
  onChange: Qe,
1134
1134
  placeholder: Le,
@@ -1145,7 +1145,7 @@ var K = /* @__PURE__ */ function(e) {
1145
1145
  onExpandedPathsChange: w,
1146
1146
  loadingPaths: T,
1147
1147
  searchQuery: qe,
1148
- disabled: j,
1148
+ disabled: A,
1149
1149
  noResultsLabel: Ee,
1150
1150
  addSiblingFolderLabel: De,
1151
1151
  addChildFolderLabel: Oe,
@@ -1203,23 +1203,23 @@ var K = /* @__PURE__ */ function(e) {
1203
1203
  stroke: f,
1204
1204
  "aria-hidden": !0
1205
1205
  }),
1206
- disabled: j,
1206
+ disabled: A,
1207
1207
  onClick: o
1208
1208
  })]
1209
1209
  }),
1210
1210
  tt.calloutKind === q.Info && /* @__PURE__ */ H("div", {
1211
1211
  className: "my-4",
1212
- children: /* @__PURE__ */ H(O, {
1213
- type: k.SectionMessage,
1214
- variant: A.Info,
1212
+ children: /* @__PURE__ */ H(D, {
1213
+ type: O.SectionMessage,
1214
+ variant: k.Info,
1215
1215
  title: we,
1216
1216
  message: Te
1217
1217
  })
1218
1218
  }),
1219
1219
  tt.calloutKind !== q.None && tt.calloutKind !== q.Info && /* @__PURE__ */ H("div", {
1220
1220
  className: "mt-3",
1221
- children: /* @__PURE__ */ H(O, {
1222
- type: k.SectionMessage,
1221
+ children: /* @__PURE__ */ H(D, {
1222
+ type: O.SectionMessage,
1223
1223
  variant: Tt(tt.calloutKind),
1224
1224
  message: Dt(tt.calloutKind, {
1225
1225
  replaceWarning: be,
@@ -1232,17 +1232,17 @@ var K = /* @__PURE__ */ function(e) {
1232
1232
  })
1233
1233
  })
1234
1234
  }),
1235
- I != null && /* @__PURE__ */ H("div", {
1235
+ F != null && /* @__PURE__ */ H("div", {
1236
1236
  className: "mt-4",
1237
1237
  children: /* @__PURE__ */ H(ee, {
1238
1238
  id: Ye,
1239
1239
  labelProps: { label: Be },
1240
1240
  placeholder: Ve,
1241
1241
  caption: He,
1242
- value: F,
1243
- onChange: (e) => I(e ?? ""),
1242
+ value: P,
1243
+ onChange: (e) => F(e ?? ""),
1244
1244
  maxLength: xt,
1245
- disabled: j
1245
+ disabled: A
1246
1246
  })
1247
1247
  }),
1248
1248
  ie != null && /* @__PURE__ */ H("div", {
@@ -1250,9 +1250,9 @@ var K = /* @__PURE__ */ function(e) {
1250
1250
  children: /* @__PURE__ */ H(l, {
1251
1251
  labelProps: { label: Ue },
1252
1252
  caption: Ke,
1253
- isSelected: re,
1253
+ isSelected: I,
1254
1254
  onChange: ie,
1255
- disabled: j
1255
+ disabled: A
1256
1256
  })
1257
1257
  }),
1258
1258
  R != null && /* @__PURE__ */ H("div", {
@@ -1262,7 +1262,7 @@ var K = /* @__PURE__ */ function(e) {
1262
1262
  onRulesChange: R,
1263
1263
  sourceOptions: z,
1264
1264
  folderName: et ? rt : void 0,
1265
- disabled: j,
1265
+ disabled: A,
1266
1266
  isLoading: oe,
1267
1267
  hasLoadError: se,
1268
1268
  labels: Fe,
@@ -1282,7 +1282,7 @@ var K = /* @__PURE__ */ function(e) {
1282
1282
  })
1283
1283
  ]
1284
1284
  });
1285
- }, Tt = (e) => e === q.ReplaceWarning || e === q.TargetTaken ? A.Warning : A.Error, Et = (e, t, n) => {
1285
+ }, Tt = (e) => e === q.ReplaceWarning || e === q.TargetTaken ? k.Warning : k.Error, Et = (e, t, n) => {
1286
1286
  let [r, i, ...a] = e.split("{folder}");
1287
1287
  return i === void 0 || a.length > 0 ? e : /* @__PURE__ */ U(se, { children: [
1288
1288
  r,
@@ -1302,18 +1302,18 @@ var K = /* @__PURE__ */ function(e) {
1302
1302
  className: "mobile:flex-1",
1303
1303
  disabled: i,
1304
1304
  onClick: a
1305
- }), y ? /* @__PURE__ */ H(D, {
1305
+ }), y ? /* @__PURE__ */ H(te, {
1306
1306
  label: v,
1307
1307
  className: "mobile:flex-1",
1308
1308
  disabled: l,
1309
1309
  onClick: c
1310
- }) : /* @__PURE__ */ H(j, {
1310
+ }) : /* @__PURE__ */ H(A, {
1311
1311
  label: x,
1312
1312
  className: "mobile:flex-1",
1313
1313
  disabled: r,
1314
1314
  iconBefore: i ? /* @__PURE__ */ H("span", {
1315
1315
  "aria-hidden": !0,
1316
- children: /* @__PURE__ */ H(I, { size: d.SM })
1316
+ children: /* @__PURE__ */ H(F, { size: d.SM })
1317
1317
  }) : void 0,
1318
1318
  onClick: o
1319
1319
  })]
@@ -1324,7 +1324,7 @@ var K = /* @__PURE__ */ function(e) {
1324
1324
  divider: "_divider_16jmd_15",
1325
1325
  content: "_content_16jmd_19",
1326
1326
  title: "_title_16jmd_24"
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 }) => {
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: te = !1, hasRulesLoadError: D = !1, onClose: O, returnFocusRef: k, onSubmit: A, panelLabels: ne, panelStyles: j, panelSummaryTitleClassName: M, panelHeadingClassName: N, panelCalloutFolderNameClassName: P, footerLabels: F, labels: I = {}, titleClassName: ie = "dial-body-semi-text", colors: L }) => {
1328
1328
  let R = B({
1329
1329
  "--spp-backdrop-bg": L?.backdropBackground,
1330
1330
  "--spp-panel-bg": L?.panelBackground,
@@ -1332,7 +1332,7 @@ var K = /* @__PURE__ */ function(e) {
1332
1332
  "--spp-divider-border": L?.dividerBorder,
1333
1333
  "--spp-scrollbar-thumb": L?.scrollbarThumb,
1334
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({
1335
+ }), [ae, z] = a(null), { title: oe = "Publish", changeFolderTitle: se = "Change folder", backAriaLabel: W = "Back", ariaLabel: ce = "Publish", closeAriaLabel: le = "Close" } = I, G = ge({
1336
1336
  isOpen: e,
1337
1337
  selectedFolderPath: l,
1338
1338
  onSelectedFolderPathChange: u
@@ -1366,17 +1366,17 @@ var K = /* @__PURE__ */ function(e) {
1366
1366
  document.addEventListener("focusin", r);
1367
1367
  let i = requestAnimationFrame(() => {
1368
1368
  document.removeEventListener("focusin", r);
1369
- }), a = A?.current;
1369
+ }), a = k?.current;
1370
1370
  return () => {
1371
1371
  cancelAnimationFrame(i), document.removeEventListener("focusin", r), a?.isConnected && a.focus({ preventScroll: !0 });
1372
1372
  };
1373
1373
  }, [
1374
1374
  e,
1375
1375
  ae,
1376
- A
1377
- ]), /* @__PURE__ */ U(ne, {
1376
+ k
1377
+ ]), /* @__PURE__ */ U(re, {
1378
1378
  open: e,
1379
- onClose: k,
1379
+ onClose: O,
1380
1380
  header: /* @__PURE__ */ H("span", {
1381
1381
  className: V("block truncate text-center", ie, At.title),
1382
1382
  children: ue ? se : oe
@@ -1426,13 +1426,13 @@ var K = /* @__PURE__ */ function(e) {
1426
1426
  rules: w,
1427
1427
  onRulesChange: T,
1428
1428
  ruleSourceOptions: E,
1429
- isRulesLoading: D,
1430
- hasRulesLoadError: O,
1431
- labels: te,
1432
- styles: M,
1433
- summaryTitleClassName: N,
1434
- headingClassName: P,
1435
- calloutFolderNameClassName: F
1429
+ isRulesLoading: te,
1430
+ hasRulesLoadError: D,
1431
+ labels: ne,
1432
+ styles: j,
1433
+ summaryTitleClassName: M,
1434
+ headingClassName: N,
1435
+ calloutFolderNameClassName: P
1436
1436
  })
1437
1437
  })
1438
1438
  }), /* @__PURE__ */ H(kt, {
@@ -1441,12 +1441,12 @@ var K = /* @__PURE__ */ function(e) {
1441
1441
  allowReplace: S,
1442
1442
  isSubmitDisabled: de.isSubmitDisabled,
1443
1443
  isSubmitLoading: de.isSubmitLoading,
1444
- onCancel: ue ? G.backToMain : k,
1445
- onSubmit: j,
1444
+ onCancel: ue ? G.backToMain : O,
1445
+ onSubmit: A,
1446
1446
  view: G.view,
1447
1447
  onSelectFolder: G.selectFolder,
1448
1448
  isSelectFolderDisabled: G.pendingFolderPath == null,
1449
- labels: I
1449
+ labels: F
1450
1450
  })]
1451
1451
  });
1452
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 }) => {
@@ -1469,7 +1469,7 @@ var K = /* @__PURE__ */ function(e) {
1469
1469
  children: b && /* @__PURE__ */ H("div", {
1470
1470
  className: "mt-3",
1471
1471
  style: B({ "--ucd-option-text": c?.optionText }),
1472
- children: /* @__PURE__ */ H(te, {
1472
+ children: /* @__PURE__ */ H(ne, {
1473
1473
  ariaLabel: g,
1474
1474
  value: r ?? void 0,
1475
1475
  onChange: i,
@@ -1487,40 +1487,42 @@ var K = /* @__PURE__ */ function(e) {
1487
1487
  }({}), Lt = /* @__PURE__ */ function(e) {
1488
1488
  return e.Main = "main", e.ChangeFolder = "change-folder", e;
1489
1489
  }({}), Rt = {
1490
- heading: "_heading_vk731_1",
1491
- destination: "_destination_vk731_5"
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 = {
1490
+ heading: "_heading_1no2p_1",
1491
+ destination: "_destination_1no2p_5",
1492
+ note: "_note_1no2p_9"
1493
+ }, 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, dependencies: x, dependenciesLabels: S, dependenciesStyles: T, dependenciesNote: te, destinationNote: A, noteClassName: M = "dial-small-text", versionHistory: re, isSubmitting: N = !1, submitError: P, foldersError: F, onRetryFolders: I, panelLabels: ie = {}, panelStyles: L = {}, headingClassName: R = "dial-body-semi-text", destinationClassName: z = "dial-small-semi-text" }) => {
1494
+ let { saveToFolderHeading: oe = "Save to folder", changeFolderLabel: se = "Change", destinationAriaLabel: ce = "Destination folder", versionHeading: le = "Version", keepVersionLabel: G = "Keep version {version}", saveAsNewVersionLabel: ue = "Save as new version", newVersionLabel: de = "Version", newVersionPlaceholder: K = "Enter new version", searchPlaceholder: q = "Search folders", clearSearchAriaLabel: J = "Clear search", folderEmptyStateLabel: Y, createFolderLabel: fe, cancelCreatingFolderLabel: X, addSiblingFolderLabel: pe, addChildFolderLabel: Z, createFolderEmptyNameError: me, createFolderInvalidNameError: he, createFolderDuplicateNameError: Q, createFolderSameAsParentNameError: ge, retryLabel: _e = "Retry" } = ie, { colors: ve, folderTree: ye } = L, be = {
1494
1495
  ...B({
1495
- "--stf-heading-text": fe?.headingText,
1496
- "--stf-destination-text": fe?.destinationText
1496
+ "--stf-heading-text": ve?.headingText,
1497
+ "--stf-destination-text": ve?.destinationText,
1498
+ "--stf-note-text": ve?.noteText
1497
1499
  }),
1498
- ...A.cssVars
1499
- }, Z = {
1500
- border: fe?.summaryBorder,
1501
- background: fe?.summaryBackground
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);
1500
+ ...L.cssVars
1501
+ }, xe = {
1502
+ border: ve?.summaryBorder,
1503
+ background: ve?.summaryBackground
1504
+ }, [Se, $] = a(""), Ce = n(), we = n(), Te = n(), Ee = r(() => [i.find((e) => e.key === o.rootKey)?.label ?? o.rootKey, ...o.path], [i, o]), De = i.find((e) => e.key === p?.rootKey), Oe = p ? p.path[p.path.length - 1] ?? De?.label : void 0, ke = V(R, Rt.heading), Ae = c?.(o), je = !!te && (x?.length ?? 0) === 0;
1503
1505
  if (e === Lt.ChangeFolder) return /* @__PURE__ */ U("div", {
1504
1506
  className: "flex flex-col gap-3",
1505
- style: pe,
1507
+ style: be,
1506
1508
  children: [
1507
1509
  /* @__PURE__ */ H("div", {
1508
1510
  role: "search",
1509
- children: /* @__PURE__ */ H(M, {
1510
- value: me,
1511
- onChange: (e) => he(e ?? ""),
1512
- placeholder: z,
1513
- clearLabel: oe,
1514
- "aria-label": z
1511
+ children: /* @__PURE__ */ H(j, {
1512
+ value: Se,
1513
+ onChange: (e) => $(e ?? ""),
1514
+ placeholder: q,
1515
+ clearLabel: J,
1516
+ "aria-label": q
1515
1517
  })
1516
1518
  }),
1517
1519
  /* @__PURE__ */ H(w, {
1518
1520
  politeness: E.Assertive,
1519
- children: D && /* @__PURE__ */ U("div", {
1521
+ children: F && /* @__PURE__ */ U("div", {
1520
1522
  className: "flex flex-wrap items-center gap-2",
1521
- children: [/* @__PURE__ */ H(_, { text: D }), O && /* @__PURE__ */ H(C, {
1522
- label: Y,
1523
- onClick: O
1523
+ children: [/* @__PURE__ */ H(_, { text: F }), I && /* @__PURE__ */ H(C, {
1524
+ label: _e,
1525
+ onClick: I
1524
1526
  })]
1525
1527
  })
1526
1528
  }),
@@ -1530,27 +1532,27 @@ var K = /* @__PURE__ */ function(e) {
1530
1532
  onDestinationChange: m,
1531
1533
  onCreateDestinationFolder: s,
1532
1534
  getDisabledReason: c,
1533
- searchQuery: me,
1534
- disabled: S,
1535
- noResultsLabel: se,
1536
- createFolderLabel: ce,
1537
- cancelCreatingFolderLabel: le,
1538
- addSiblingFolderLabel: G,
1539
- addChildFolderLabel: ue,
1540
- emptyFolderNameError: de,
1541
- invalidFolderNameError: K,
1542
- duplicateFolderNameError: q,
1543
- sameAsParentFolderNameError: J,
1544
- styles: X
1535
+ searchQuery: Se,
1536
+ disabled: N,
1537
+ noResultsLabel: Y,
1538
+ createFolderLabel: fe,
1539
+ cancelCreatingFolderLabel: X,
1540
+ addSiblingFolderLabel: pe,
1541
+ addChildFolderLabel: Z,
1542
+ emptyFolderNameError: me,
1543
+ invalidFolderNameError: he,
1544
+ duplicateFolderNameError: Q,
1545
+ sameAsParentFolderNameError: ge,
1546
+ styles: ye
1545
1547
  }),
1546
- v && ve?.hasAccessRules && !(p && v.isHiddenFor?.(p)) && /* @__PURE__ */ H("div", {
1548
+ v && De?.hasAccessRules && !(p && v.isHiddenFor?.(p)) && /* @__PURE__ */ H("div", {
1547
1549
  className: "mt-1",
1548
1550
  children: /* @__PURE__ */ H(ze, {
1549
1551
  rules: v.rules,
1550
1552
  onRulesChange: v.onRulesChange,
1551
1553
  sourceOptions: v.sourceOptions,
1552
- folderName: ye,
1553
- disabled: S,
1554
+ folderName: Oe,
1555
+ disabled: N,
1554
1556
  isLoading: v.isLoading,
1555
1557
  hasLoadError: v.hasLoadError,
1556
1558
  labels: v.labels,
@@ -1559,35 +1561,35 @@ var K = /* @__PURE__ */ function(e) {
1559
1561
  })
1560
1562
  ]
1561
1563
  });
1562
- let Se = g ? [{
1564
+ let Me = g ? [{
1563
1565
  value: It.Keep,
1564
- label: re.replace("{version}", g.currentVersion)
1566
+ label: G.replace("{version}", g.currentVersion)
1565
1567
  }, {
1566
1568
  value: It.New,
1567
- label: ie,
1569
+ label: ue,
1568
1570
  content: /* @__PURE__ */ H(ee, {
1569
- id: Q,
1571
+ id: Ce,
1570
1572
  value: g.newVersion,
1571
1573
  onChange: (e) => g.onNewVersionChange(e ?? ""),
1572
1574
  onBlur: g.onNewVersionBlur,
1573
1575
  labelProps: {
1574
- label: L,
1576
+ label: de,
1575
1577
  required: !0
1576
1578
  },
1577
- placeholder: R,
1579
+ placeholder: K,
1578
1580
  error: g.newVersionError,
1579
1581
  invalid: !!g.newVersionError,
1580
- disabled: S
1582
+ disabled: N
1581
1583
  })
1582
1584
  }] : [];
1583
1585
  return /* @__PURE__ */ U("div", {
1584
1586
  className: "flex flex-col gap-5",
1585
- style: pe,
1587
+ style: be,
1586
1588
  children: [
1587
1589
  t.type == null ? /* @__PURE__ */ H(ae, {
1588
- colors: Z,
1590
+ colors: xe,
1589
1591
  children: /* @__PURE__ */ H("span", {
1590
- className: V("truncate", be),
1592
+ className: V("truncate", ke),
1591
1593
  children: t.title
1592
1594
  })
1593
1595
  }) : /* @__PURE__ */ H(ae, {
@@ -1598,61 +1600,95 @@ var K = /* @__PURE__ */ function(e) {
1598
1600
  iconUrl: t.iconUrl
1599
1601
  },
1600
1602
  hasVersionTag: !1,
1601
- colors: Z
1603
+ colors: xe
1602
1604
  }),
1603
1605
  /* @__PURE__ */ U("section", {
1604
1606
  className: "flex flex-col gap-2",
1605
- children: [/* @__PURE__ */ H("h2", {
1606
- className: be,
1607
- children: ne
1608
- }), /* @__PURE__ */ U("div", {
1609
- className: "flex min-w-0 items-center gap-2",
1610
- children: [/* @__PURE__ */ H("div", {
1611
- role: "group",
1612
- "aria-label": F,
1613
- "aria-describedby": xe ? ge : void 0,
1614
- className: "min-w-0 flex-1",
1615
- children: /* @__PURE__ */ H(y, {
1616
- name: _e.join(" / "),
1617
- nameClassName: V(N, Rt.destination)
1607
+ children: [
1608
+ /* @__PURE__ */ H("h2", {
1609
+ className: ke,
1610
+ children: oe
1611
+ }),
1612
+ /* @__PURE__ */ U("div", {
1613
+ className: "flex min-w-0 items-center gap-2",
1614
+ children: [/* @__PURE__ */ H("div", {
1615
+ role: "group",
1616
+ "aria-label": ce,
1617
+ "aria-describedby": Ae ? we : void 0,
1618
+ className: "min-w-0 flex-1",
1619
+ children: /* @__PURE__ */ H(y, {
1620
+ name: Ee.join(" / "),
1621
+ nameClassName: V(z, Rt.destination)
1622
+ })
1623
+ }), /* @__PURE__ */ H(b, {
1624
+ ref: u,
1625
+ size: h.Small,
1626
+ label: se,
1627
+ iconBefore: /* @__PURE__ */ H(W, {
1628
+ size: d.SM,
1629
+ stroke: f,
1630
+ "aria-hidden": !0
1631
+ }),
1632
+ disabled: N,
1633
+ onClick: l
1634
+ })]
1635
+ }),
1636
+ /* @__PURE__ */ H(w, {
1637
+ politeness: E.Assertive,
1638
+ children: Ae && /* @__PURE__ */ H("div", {
1639
+ id: we,
1640
+ children: /* @__PURE__ */ H(D, {
1641
+ type: O.SectionMessage,
1642
+ variant: k.Error,
1643
+ role: "none",
1644
+ message: Ae
1645
+ })
1618
1646
  })
1619
- }), /* @__PURE__ */ H(b, {
1620
- ref: u,
1621
- size: h.Small,
1622
- label: P,
1623
- iconBefore: /* @__PURE__ */ H(W, {
1624
- size: d.SM,
1625
- stroke: f,
1626
- "aria-hidden": !0
1627
- }),
1628
- disabled: S,
1629
- onClick: l
1630
- })]
1631
- })]
1647
+ }),
1648
+ A && /* @__PURE__ */ H("p", {
1649
+ className: V(M, Rt.note),
1650
+ children: A
1651
+ })
1652
+ ]
1632
1653
  }),
1633
1654
  g && /* @__PURE__ */ U("section", {
1634
1655
  className: "flex flex-col gap-2",
1635
1656
  children: [/* @__PURE__ */ H("h2", {
1636
- className: be,
1637
- children: I
1638
- }), /* @__PURE__ */ H(te, {
1639
- ariaLabel: I,
1657
+ className: ke,
1658
+ children: le
1659
+ }), /* @__PURE__ */ H(ne, {
1660
+ ariaLabel: le,
1640
1661
  value: g.versionMode,
1641
1662
  onChange: (e) => g.onVersionModeChange(e),
1642
- items: Se,
1643
- disabled: S
1663
+ items: Me,
1664
+ disabled: N
1644
1665
  })]
1645
1666
  }),
1646
- /* @__PURE__ */ U(w, {
1667
+ /* @__PURE__ */ H(w, {
1647
1668
  politeness: E.Assertive,
1648
- children: [xe && /* @__PURE__ */ H(_, {
1649
- id: ge,
1650
- text: xe
1651
- }), T && /* @__PURE__ */ H(_, { text: T })]
1669
+ children: P && /* @__PURE__ */ H(_, { text: P })
1670
+ }),
1671
+ je && /* @__PURE__ */ U("section", {
1672
+ className: "flex flex-col gap-2",
1673
+ "aria-labelledby": Te,
1674
+ children: [/* @__PURE__ */ H("h2", {
1675
+ id: Te,
1676
+ className: ke,
1677
+ children: S?.title ?? "Private dependencies"
1678
+ }), /* @__PURE__ */ H("p", {
1679
+ className: V(M, Rt.note),
1680
+ children: te
1681
+ })]
1682
+ }),
1683
+ !je && x != null && /* @__PURE__ */ H(nt, {
1684
+ dependencies: x,
1685
+ labels: S,
1686
+ headingClassName: R,
1687
+ styles: T
1652
1688
  }),
1653
- x != null && /* @__PURE__ */ H(We, {
1654
- headingClassName: j,
1655
- ...x
1689
+ re != null && /* @__PURE__ */ H(We, {
1690
+ headingClassName: R,
1691
+ ...re
1656
1692
  })
1657
1693
  ]
1658
1694
  });
@@ -1671,39 +1707,39 @@ var K = /* @__PURE__ */ function(e) {
1671
1707
  "--sstf-divider-border": l?.dividerBorder,
1672
1708
  "--sstf-scrollbar-thumb": l?.scrollbarThumb,
1673
1709
  "--sstf-title-text": l?.titleText
1674
- }), [E, O] = a(Lt.Main), [k, A] = a(f), te = i(null), M = i(null);
1710
+ }), [E, D] = a(Lt.Main), [O, k] = a(f), ne = i(null), j = i(null);
1675
1711
  t(() => {
1676
- e && O(Lt.Main);
1712
+ e && D(Lt.Main);
1677
1713
  }, [e]);
1678
- let N = i(E);
1714
+ let M = i(E);
1679
1715
  t(() => {
1680
- N.current !== E && (N.current = E, E === Lt.ChangeFolder ? te.current?.focus({ preventScroll: !0 }) : M.current?.focus({ preventScroll: !0 }));
1716
+ M.current !== E && (M.current = E, E === Lt.ChangeFolder ? ne.current?.focus({ preventScroll: !0 }) : j.current?.focus({ preventScroll: !0 }));
1681
1717
  }, [E]);
1682
- let P = i(e);
1718
+ let N = i(e);
1683
1719
  t(() => {
1684
- let t = P.current;
1685
- P.current = e, t && !e && s?.current?.isConnected && s.current.focus({ preventScroll: !0 });
1720
+ let t = N.current;
1721
+ N.current = e, t && !e && s?.current?.isConnected && s.current.focus({ preventScroll: !0 });
1686
1722
  }, [e, s]);
1687
- let F = E === Lt.ChangeFolder, re = (e) => {
1688
- A(e), h?.(e);
1723
+ let P = E === Lt.ChangeFolder, I = (e) => {
1724
+ k(e), h?.(e);
1689
1725
  }, ie = () => {
1690
- re(f), O(Lt.ChangeFolder);
1726
+ I(f), D(Lt.ChangeFolder);
1691
1727
  }, L = () => {
1692
- h?.(f), O(Lt.Main);
1728
+ h?.(f), D(Lt.Main);
1693
1729
  }, R = () => {
1694
- k && p(k), O(Lt.Main);
1730
+ O && p(O), D(Lt.Main);
1695
1731
  };
1696
- return /* @__PURE__ */ U(ne, {
1732
+ return /* @__PURE__ */ U(re, {
1697
1733
  open: e,
1698
1734
  onClose: n,
1699
1735
  header: /* @__PURE__ */ H("span", {
1700
- ref: te,
1736
+ ref: ne,
1701
1737
  tabIndex: -1,
1702
1738
  className: V("block truncate outline-none", u, Bt.title),
1703
- children: F ? v : _
1739
+ children: P ? v : _
1704
1740
  }),
1705
1741
  ariaLabel: _,
1706
- onBack: F ? L : void 0,
1742
+ onBack: P ? L : void 0,
1707
1743
  backAriaLabel: x,
1708
1744
  backDisabled: m,
1709
1745
  closeAriaLabel: y,
@@ -1723,9 +1759,9 @@ var K = /* @__PURE__ */ function(e) {
1723
1759
  onDestinationChange: p,
1724
1760
  isSubmitting: m,
1725
1761
  onChangeFolderClick: ie,
1726
- changeFolderButtonRef: M,
1727
- pendingDestination: k,
1728
- onPendingDestinationChange: re
1762
+ changeFolderButtonRef: j,
1763
+ pendingDestination: O,
1764
+ onPendingDestinationChange: I
1729
1765
  })
1730
1766
  }), /* @__PURE__ */ U("div", {
1731
1767
  className: V("flex items-center justify-end gap-2 border-t px-4 py-4 desktop:px-3.5", Bt.footer),
@@ -1733,19 +1769,19 @@ var K = /* @__PURE__ */ function(e) {
1733
1769
  label: S,
1734
1770
  className: "mobile:flex-1",
1735
1771
  disabled: m,
1736
- onClick: F ? L : n
1737
- }), F ? /* @__PURE__ */ H(D, {
1772
+ onClick: P ? L : n
1773
+ }), P ? /* @__PURE__ */ H(te, {
1738
1774
  label: w,
1739
1775
  className: "mobile:flex-1",
1740
- disabled: k == null,
1776
+ disabled: O == null,
1741
1777
  onClick: R
1742
- }) : /* @__PURE__ */ H(j, {
1778
+ }) : /* @__PURE__ */ H(A, {
1743
1779
  label: m ? C : ee,
1744
1780
  className: "mobile:flex-1",
1745
1781
  disabled: o || m,
1746
1782
  iconBefore: m ? /* @__PURE__ */ H("span", {
1747
1783
  "aria-hidden": !0,
1748
- children: /* @__PURE__ */ H(I, { size: d.SM })
1784
+ children: /* @__PURE__ */ H(F, { size: d.SM })
1749
1785
  }) : void 0,
1750
1786
  onClick: r
1751
1787
  })]